var z8e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vqt=z8e((mf,Gl)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/** * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ca(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const wi={},tm=[],ka=()=>{},Kv=()=>!1,P0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),t5=e=>e.startsWith("onUpdate:"),ki=Object.assign,n5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},U8e=Object.prototype.hasOwnProperty,Ki=(e,t)=>U8e.call(e,t),Gn=Array.isArray,nm=e=>zm(e)==="[object Map]",R0=e=>zm(e)==="[object Set]",xj=e=>zm(e)==="[object Date]",kde=e=>zm(e)==="[object RegExp]",Ar=e=>typeof e=="function",Mr=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Xi=e=>e!==null&&typeof e=="object",r5=e=>(Xi(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),SU=Object.prototype.toString,zm=e=>SU.call(e),xde=e=>zm(e).slice(8,-1),B_=e=>zm(e)==="[object Object]",i5=e=>Mr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ah=Ca(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cde=Ca("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),o5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},H8e=/-\w/g,Oo=o5(e=>e.replace(H8e,t=>t.slice(1).toUpperCase())),W8e=/\B([A-Z])/g,_l=o5(e=>e.replace(W8e,"-$1").toLowerCase()),M0=o5(e=>e.charAt(0).toUpperCase()+e.slice(1)),rm=o5(e=>e?`on${M0(e)}`:""),yl=(e,t)=>!Object.is(e,t),im=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Fb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jb=e=>{const t=Mr(e)?Number(e):NaN;return isNaN(t)?e:t};let Ote;const N_=()=>Ote||(Ote=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),G8e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function K8e(e){return G8e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function q8e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const Y8e={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"},X8e={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"},Z8e={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"},J8e={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},Q8e={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},eTe="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(eTe),tTe=xU,$te=2;function wde(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-$te;c<=l+$te||n>a;c++){if(c<0||c>=r.length)continue;const d=c+1;s.push(`${d}${" ".repeat(Math.max(3-String(d).length,0))}| ${r[c]}`);const h=r[c].length,p=o[c]&&o[c].length||0;if(c===l){const m=t-(a-(h+p)),g=Math.max(1,n>a?h-m:n-t);s.push(" | "+" ".repeat(m)+"^".repeat(g))}else if(c>l){if(n>a){const m=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(m))}a+=h+p}}break}return s.join(` `)}function Ke(e){if(Gn(e)){const t={};for(let n=0;n{if(n){const r=n.split(rTe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function oTe(e){if(!e)return"";if(Mr(e))return e;let t="";for(const n in e){const r=e[n];if(Mr(r)||typeof r=="number"){const o=n.startsWith("--")?n:_l(n);t+=`${o}:${r};`}}return t}function ue(e){let t="";if(Mr(e))t=e;else if(Gn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,iP={};function fTe(e){if(iP.hasOwnProperty(e))return iP[e];const t=dTe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),iP[e]=!t}const hTe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},pTe=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"),vTe=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"),mTe=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 gTe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const yTe=/["'&<>]/;function bTe(e){const t=""+e,n=yTe.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function kTe(e,t){return e.replace(Pde,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function xTe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rBh(n,t))}const Rde=e=>!!(e&&e.__v_isRef===!0),Ue=e=>Mr(e)?e:e==null?"":Gn(e)||Xi(e)&&(e.toString===SU||!Ar(e.toString))?Rde(e)?Ue(e.value):JSON.stringify(e,Mde,2):String(e),Mde=(e,t)=>Rde(t)?Mde(e,t.value):nm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[oP(r,a)+" =>"]=o,n),{})}:R0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>oP(n))}:Jl(t)?oP(t):Xi(t)&&!Gn(t)&&!B_(t)?String(t):t,oP=(e,t="")=>{var n;return Jl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ode(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const CTe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:tm,EMPTY_OBJ:wi,NO:Kv,NOOP:ka,PatchFlagNames:X8e,PatchFlags:Y8e,ShapeFlags:Z8e,SlotFlags:J8e,camelize:Oo,capitalize:M0,cssVarNameEscapeSymbolsRE:Pde,def:kU,escapeHtml:bTe,escapeHtmlComment:STe,extend:ki,genCacheKey:q8e,genPropsAccessExp:K8e,generateCodeFrame:wde,getEscapedCssVarName:kTe,getGlobalThis:N_,hasChanged:yl,hasOwn:Ki,hyphenate:_l,includeBooleanAttr:wU,invokeArrayFns:im,isArray:Gn,isBooleanAttr:cTe,isBuiltInDirective:Cde,isDate:xj,isFunction:Ar,isGloballyAllowed:xU,isGloballyWhitelisted:tTe,isHTMLTag:Ede,isIntegerKey:i5,isKnownHtmlAttr:pTe,isKnownMathMLAttr:mTe,isKnownSvgAttr:vTe,isMap:nm,isMathMLTag:Ade,isModelListener:t5,isObject:Xi,isOn:P0,isPlainObject:B_,isPromise:r5,isRegExp:kde,isRenderableAttrValue:gTe,isReservedProp:Ah,isSSRSafeAttrName:fTe,isSVGTag:Tde,isSet:R0,isSpecialBooleanAttr:Dde,isString:Mr,isSymbol:Jl,isVoidTag:Ide,looseEqual:Bh,looseIndexOf:F_,looseToNumber:Fb,makeMap:Ca,normalizeClass:ue,normalizeCssVarValue:Ode,normalizeProps:qi,normalizeStyle:Ke,objectToString:SU,parseStringStyle:CU,propsToAttrMap:hTe,remove:n5,slotFlagsText:Q8e,stringifyStyle:oTe,toDisplayString:Ue,toHandlerKey:rm,toNumber:jb,toRawType:xde,toTypeString:zm},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(H4){let t=H4;for(H4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;U4;){let t=U4;for(U4=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 Nde(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fde(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),DU(r),wTe(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&&(jde(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jde(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zb)||(e.globalVersion=zb,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cj(e))))return;e.flags|=2;const t=e.dep,n=Po,r=Ad;Po=e,Ad=!0;try{Nde(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{Po=n,Ad=r,Fde(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 wTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function ETe(e,t){e.effect instanceof Vb&&(e=e.effect.fn);const n=new Vb(e);t&&ki(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function TTe(e){e.effect.stop()}let Ad=!0;const Vde=[];function Nh(){Vde.push(Ad),Ad=!1}function Fh(){const e=Vde.pop();Ad=e===void 0?!0:e}function Bte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Po;Po=void 0;try{t()}finally{Po=n}}}let zb=0,ATe=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 a5{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(!Po||!Ad||Po===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Po)n=this.activeLink=new ATe(Po,this),Po.deps?(n.prevDep=Po.depsTail,Po.depsTail.nextDep=n,Po.depsTail=n):Po.deps=Po.depsTail=n,zde(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=Po.depsTail,n.nextDep=void 0,Po.depsTail.nextDep=n,Po.depsTail=n,Po.deps===n&&(Po.deps=r)}return n}trigger(t){this.version++,zb++,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 zde(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)zde(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _8=new WeakMap,om=Symbol(""),wj=Symbol(""),Ub=Symbol("");function bl(e,t,n){if(Ad&&Po){let r=_8.get(e);r||_8.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new a5),o.map=r,o.key=n),o.track()}}function bh(e,t,n,r,o,a){const s=_8.get(e);if(!s){zb++;return}const l=c=>{c&&c.trigger()};if(IU(),t==="clear")s.forEach(l);else{const c=Gn(e),d=c&&i5(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,m)=>{(m==="length"||m===Ub||!Jl(m)&&m>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(Ub)),t){case"add":c?d&&l(s.get("length")):(l(s.get(om)),nm(e)&&l(s.get(wj)));break;case"delete":c||(l(s.get(om)),nm(e)&&l(s.get(wj)));break;case"set":nm(e)&&l(s.get(om));break}}LU()}function ITe(e,t){const n=_8.get(e);return n&&n.get(t)}function t1(e){const t=Oi(e);return t===e?t:(bl(t,"iterate",Ub),lc(e)?t:t.map(Fa))}function l5(e){return bl(e=Oi(e),"iterate",Ub),e}const LTe={__proto__:null,[Symbol.iterator](){return aP(this,Symbol.iterator,Fa)},concat(...e){return t1(this).concat(...e.map(t=>Gn(t)?t1(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 t1(this).join(e)},lastIndexOf(...e){return lP(this,"lastIndexOf",e)},map(e,t){return sh(this,"map",e,t,void 0,arguments)},pop(){return z2(this,"pop")},push(...e){return z2(this,"push",e)},reduce(e,...t){return Nte(this,"reduce",e,t)},reduceRight(e,...t){return Nte(this,"reduceRight",e,t)},shift(){return z2(this,"shift")},some(e,t){return sh(this,"some",e,t,void 0,arguments)},splice(...e){return z2(this,"splice",e)},toReversed(){return t1(this).toReversed()},toSorted(e){return t1(this).toSorted(e)},toSpliced(...e){return t1(this).toSpliced(...e)},unshift(...e){return z2(this,"unshift",e)},values(){return aP(this,"values",Fa)}};function aP(e,t,n){const r=l5(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 DTe=Array.prototype;function sh(e,t,n,r,o,a){const s=l5(e),l=s!==e&&!lc(e),c=s[t];if(c!==DTe[t]){const p=c.apply(e,a);return l?Fa(p):p}let d=n;s!==e&&(l?d=function(p,m){return n.call(this,Fa(p),m,e)}:n.length>2&&(d=function(p,m){return n.call(this,p,m,e)}));const h=c.call(s,d,r);return l&&o?o(h):h}function Nte(e,t,n,r){const o=l5(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=Oi(e);bl(r,"iterate",Ub);const o=r[t](...n);return(o===-1||o===!1)&&d5(n[0])?(n[0]=Oi(n[0]),r[t](...n)):o}function z2(e,t,n=[]){Nh(),IU();const r=Oi(e)[t].apply(e,n);return LU(),Fh(),r}const PTe=Ca("__proto__,__v_isRef,__isVue"),Ude=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jl));function RTe(e){Jl(e)||(e=String(e));const t=Oi(this);return bl(t,"has",e),t.hasOwnProperty(e)}class Hde{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?Xde:Yde:a?qde:Kde).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Gn(t);if(!o){let c;if(s&&(c=LTe[n]))return c;if(n==="hasOwnProperty")return RTe}const l=Reflect.get(t,n,$o(t)?t:r);if((Jl(n)?Ude.has(n):PTe(n))||(o||bl(t,"get",n),a))return l;if($o(l)){const c=s&&i5(n)?l:l.value;return o&&Xi(c)?Hb(c):c}return Xi(l)?o?Hb(l):qt(l):l}}class Wde extends Hde{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=jh(a);if(!lc(r)&&!jh(r)&&(a=Oi(a),r=Oi(r)),!Gn(t)&&$o(a)&&!$o(r))return c||(a.value=r),!0}const s=Gn(t)&&i5(n)?Number(n)e,tx=e=>Reflect.getPrototypeOf(e);function NTe(e,t,n){return function(...r){const o=this.__v_raw,a=Oi(o),s=nm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=o[e](...r),h=n?Ej:t?S8:Fa;return!t&&bl(a,"iterate",c?wj:om),{next(){const{value:p,done:m}=d.next();return m?{value:p,done:m}:{value:l?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function nx(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function FTe(e,t){const n={get(o){const a=this.__v_raw,s=Oi(a),l=Oi(o);e||(yl(o,l)&&bl(s,"get",o),bl(s,"get",l));const{has:c}=tx(s),d=t?Ej:e?S8: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(Oi(o),"iterate",om),o.size},has(o){const a=this.__v_raw,s=Oi(a),l=Oi(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=Oi(l),d=t?Ej:e?S8:Fa;return!e&&bl(c,"iterate",om),l.forEach((h,p)=>o.call(a,d(h),d(p),s))}};return ki(n,e?{add:nx("add"),set:nx("set"),delete:nx("delete"),clear:nx("clear")}:{add(o){!t&&!lc(o)&&!jh(o)&&(o=Oi(o));const a=Oi(this);return tx(a).has.call(a,o)||(a.add(o),bh(a,"add",o,o)),this},set(o,a){!t&&!lc(a)&&!jh(a)&&(a=Oi(a));const s=Oi(this),{has:l,get:c}=tx(s);let d=l.call(s,o);d||(o=Oi(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=Oi(this),{has:s,get:l}=tx(a);let c=s.call(a,o);c||(o=Oi(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=Oi(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]=NTe(o,e,t)}),n}function u5(e,t){const n=FTe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ki(n,o)&&o in r?n:r,o,a)}const jTe={get:u5(!1,!1)},VTe={get:u5(!1,!0)},zTe={get:u5(!0,!1)},UTe={get:u5(!0,!0)},Kde=new WeakMap,qde=new WeakMap,Yde=new WeakMap,Xde=new WeakMap;function HTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function WTe(e){return e.__v_skip||!Object.isExtensible(e)?0:HTe(xde(e))}function qt(e){return jh(e)?e:c5(e,!1,MTe,jTe,Kde)}function PU(e){return c5(e,!1,$Te,VTe,qde)}function Hb(e){return c5(e,!0,OTe,zTe,Yde)}function GTe(e){return c5(e,!0,BTe,UTe,Xde)}function c5(e,t,n,r,o){if(!Xi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=WTe(e);if(a===0)return e;const s=o.get(e);if(s)return s;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function gf(e){return jh(e)?gf(e.__v_raw):!!(e&&e.__v_isReactive)}function jh(e){return!!(e&&e.__v_isReadonly)}function lc(e){return!!(e&&e.__v_isShallow)}function d5(e){return e?!!e.__v_raw:!1}function Oi(e){const t=e&&e.__v_raw;return t?Oi(t):e}function f5(e){return!Ki(e,"__v_skip")&&Object.isExtensible(e)&&kU(e,"__v_skip",!0),e}const Fa=e=>Xi(e)?qt(e):e,S8=e=>Xi(e)?Hb(e):e;function $o(e){return e?e.__v_isRef===!0:!1}function fe(e){return Zde(e,!1)}function l0(e){return Zde(e,!0)}function Zde(e,t){return $o(e)?e:new KTe(e,t)}class KTe{constructor(t,n){this.dep=new a5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Oi(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)||jh(t);t=r?t:Oi(t),yl(t,n)&&(this._rawValue=t,this._value=r?t:Fa(t),this.dep.trigger())}}function qTe(e){e.dep&&e.dep.trigger()}function et(e){return $o(e)?e.value:e}function YTe(e){return Ar(e)?e():et(e)}const XTe={get:(e,t,n)=>t==="__v_raw"?e:et(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return $o(o)&&!$o(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function RU(e){return gf(e)?e:new Proxy(e,XTe)}class ZTe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new a5,{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 Jde(e){return new ZTe(e)}function en(e){const t=Gn(e)?new Array(e.length):{};for(const n in e)t[n]=Qde(e,n);return t}class JTe{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 ITe(Oi(this._object),this._key)}}class QTe{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 $o(e)?e:Ar(e)?new QTe(e):Xi(e)&&arguments.length>1?Qde(e,t,n):fe(e)}function Qde(e,t,n){const r=e[t];return $o(r)?r:new JTe(e,t,n)}class e5e{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new a5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zb-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Po!==this)return Bde(this,!0),!0}get value(){const t=this.dep.track();return jde(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function t5e(e,t,n=!1){let r,o;return Ar(e)?r=e:(r=e.get,o=e.set),new e5e(r,o,n)}const n5e={GET:"get",HAS:"has",ITERATE:"iterate"},r5e={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},rx={},k8=new WeakMap;let Hp;function i5e(){return Hp}function efe(e,t=!1,n=Hp){if(n){let r=k8.get(n);r||k8.set(n,r=[]),r.push(e)}}function o5e(e,t,n=wi){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,m,g,y=!1,S=!1;if($o(e)?(p=()=>e.value,y=lc(e)):gf(e)?(p=()=>d(e),y=!0):Gn(e)?(S=!0,y=e.some(_=>gf(_)||lc(_)),p=()=>e.map(_=>{if($o(_))return _.value;if(gf(_))return d(_);if(Ar(_))return c?c(_,2):_()})):Ar(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Nh();try{m()}finally{Fh()}}const _=Hp;Hp=h;try{return c?c(e,3,[g]):e(g)}finally{Hp=_}}:p=ka,t&&o){const _=p,T=o===!0?1/0:o;p=()=>_h(_(),T)}const k=s5(),C=()=>{h.stop(),k&&k.active&&n5(k.effects,h)};if(a&&t){const _=t;t=(...T)=>{_(...T),C()}}let x=S?new Array(e.length).fill(rx):rx;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))){m&&m();const D=Hp;Hp=h;try{const P=[T,x===rx?void 0:S&&x[0]===rx?[]:x,g];x=T,c?c(t,3,P):t(...P)}finally{Hp=D}}}else h.run()};return l&&l(E),h=new Vb(p),h.scheduler=s?()=>s(E,!1):E,g=_=>efe(_,!1,h),m=h.onStop=()=>{const _=k8.get(h);if(_){if(c)c(_,4);else for(const T of _)T();k8.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||!Xi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,$o(e))_h(e.value,t,n);else if(Gn(e))for(let r=0;r{_h(r,t,n)});else if(B_(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 tfe=[];function s5e(e){tfe.push(e)}function a5e(){tfe.pop()}function l5e(e,t){}const u5e={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"},c5e={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 e3(e,t,n,r){try{return r?e(...r):e()}catch(o){Um(o,t,n)}}function qc(e,t,n,r){if(Ar(e)){const o=e3(e,t,n,r);return o&&r5(o)&&o.catch(a=>{Um(a,t,n)}),o}if(Gn(e)){const o=[];for(let a=0;a>>1,o=Ul[r],a=Gb(o);a=Gb(n)?Ul.push(e):Ul.splice(f5e(t),0,e),e.flags|=1,rfe()}}function rfe(){x8||(x8=nfe.then(ife))}function Wb(e){Gn(e)?X1.push(...e):Wp&&e.id===-1?Wp.splice(L1+1,0,e):e.flags&1||(X1.push(e),e.flags|=1),rfe()}function Fte(e,t,n=nf+1){for(;nGb(n)-Gb(r));if(X1.length=0,Wp){Wp.push(...t);return}for(Wp=t,L1=0;L1e.id==null?e.flags&2?-1:1/0:e.id;function ife(e){try{for(nf=0;nfD1.emit(o,...a)),ix=[]):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=>{ofe(a,t)}),setTimeout(()=>{D1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ix=[])},3e3)):ix=[]}let Ha=null,h5=null;function Kb(e){const t=Ha;return Ha=e,h5=e&&e.type.__scopeId||null,t}function h5e(e){h5=e}function p5e(){h5=null}const v5e=e=>de;function de(e,t=Ha,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Xb(-1);const a=Kb(t);let s;try{s=e(...o)}finally{Kb(a),r._d&&Xb(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ei(e,t){if(Ha===null)return e;const n=z_(Ha),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,W4=e=>e&&(e.disabled||e.disabled===""),jte=e=>e&&(e.defer||e.defer===""),Vte=e=>typeof SVGElement<"u"&&e instanceof SVGElement,zte=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tj=(e,t)=>{const n=e&&e.to;return Mr(n)?t?t(n):null:n},lfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,d){const{mc:h,pc:p,pbc:m,o:{insert:g,querySelector:y,createText:S,createComment:k}}=d,C=W4(t.props);let{shapeFlag:x,children:E,dynamicChildren:_}=t;if(e==null){const T=t.el=S(""),D=t.anchor=S("");g(T,n,r),g(D,n,r);const P=($,I)=>{x&16&&h(E,$,I,o,a,s,l,c)},M=()=>{const $=t.target=Tj(t.props,y),I=ufe($,t,S,g);$&&(s!=="svg"&&Vte($)?s="svg":s!=="mathml"&&zte($)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add($),C||(P($,I),zC(t,!1)))};C&&(P(n,D),zC(t,!0)),jte(t.props)?(t.el.__isMounted=!1,la(()=>{M(),delete t.el.__isMounted},a)):M()}else{if(jte(t.props)&&e.el.__isMounted===!1){la(()=>{lfe.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=W4(e.props),$=M?n:D,I=M?T:P;if(s==="svg"||Vte(D)?s="svg":(s==="mathml"||zte(D))&&(s="mathml"),_?(m(e.dynamicChildren,_,$,o,a,s,l),KU(e,t,!0)):c||p(e,t,$,I,o,a,s,l,!1),C)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ox(t,n,T,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=Tj(t.props,y);N&&ox(t,N,null,d,0)}else M&&ox(t,D,P,d,1);zC(t,C)}},remove(e,t,n,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:d,targetAnchor:h,target:p,props:m}=e;if(p&&(o(d),o(h)),a&&o(c),s&16){const g=a||!W4(m);for(let y=0;y{e.isMounted=!0}),Ao(()=>{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},cfe=e=>{const t=e.subTree;return t.component?cfe(t.component):t},g5e={name:"BaseTransition",props:$U,setup(e,{slots:t}){const n=yo(),r=OU();return()=>{const o=t.default&&p5(t.default(),!0);if(!o||!o.length)return;const a=dfe(o),s=Oi(e),{mode:l}=s;if(r.isLeaving)return uP(a);const c=Ute(a);if(!c)return uP(a);let d=xy(c,s,r,n,p=>d=p);c.type!==Ss&&Vh(c,d);let h=n.subTree&&Ute(n.subTree);if(h&&h.type!==Ss&&!xd(h,c)&&cfe(n).type!==Ss){let p=xy(h,s,r,n);if(Vh(h,p),l==="out-in"&&c.type!==Ss)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},uP(a);l==="in-out"&&c.type!==Ss?p.delayLeave=(m,g,y)=>{const S=hfe(r,h);S[String(h.key)]=h,m[yh]=()=>{g(),m[yh]=void 0,delete d.delayedLeave,h=void 0},d.delayedLeave=()=>{y(),delete d.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function dfe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ss){t=n;break}}return t}const ffe=g5e;function hfe(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 xy(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:m,onLeave:g,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),T=hfe(n,e),D=($,I)=>{$&&qc($,r,9,I)},P=($,I)=>{const N=I[1];D($,I),Gn($)?$.every(F=>F.length<=1)&&N():$.length<=1&&N()},M={mode:s,persisted:l,beforeEnter($){let I=c;if(!n.isMounted)if(a)I=k||c;else return;$[yh]&&$[yh](!0);const N=T[_];N&&xd(e,N)&&N.el[yh]&&N.el[yh](),D(I,[$])},enter($){let I=d,N=h,F=p;if(!n.isMounted)if(a)I=C||d,N=x||h,F=E||p;else return;let W=!1;const U=$[sx]=G=>{W||(W=!0,G?D(F,[$]):D(N,[$]),M.delayedLeave&&M.delayedLeave(),$[sx]=void 0)};I?P(I,[$,U]):U()},leave($,I){const N=String(e.key);if($[sx]&&$[sx](!0),n.isUnmounting)return I();D(m,[$]);let F=!1;const W=$[yh]=U=>{F||(F=!0,I(),U?D(S,[$]):D(y,[$]),$[yh]=void 0,T[N]===e&&delete T[N])};T[N]=e,g?P(g,[$,W]):W()},clone($){const I=xy($,t,n,r,o);return o&&o(I),I}};return M}function uP(e){if(j_(e))return e=wl(e),e.children=null,e}function Ute(e){if(!j_(e))return afe(e.type)&&e.children?dfe(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&&Ar(n.default))return n.default()}}function Vh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vh(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function p5(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 w8=new WeakMap;function Z1(e,t,n,r,o=!1){if(Gn(e)){e.forEach((y,S)=>Z1(y,t&&(Gn(t)?t[S]:t),n,r,o));return}if(u0(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Z1(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?z_(r.component):r.el,s=o?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===wi?l.refs={}:l.refs,p=l.setupState,m=Oi(p),g=p===wi?Kv:y=>Ki(m,y);if(d!=null&&d!==c){if(Hte(t),Mr(d))h[d]=null,g(d)&&(p[d]=null);else if($o(d)){d.value=null;const y=t;y.k&&(h[y.k]=null)}}if(Ar(c))e3(c,l,12,[s,h]);else{const y=Mr(c),S=$o(c);if(y||S){const k=()=>{if(e.f){const C=y?g(c)?p[c]:h[c]:c.value;if(o)Gn(C)&&n5(C,a);else if(Gn(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(),w8.delete(e)};C.id=-1,w8.set(e,C),la(C,n)}else Hte(e),k()}}}function Hte(e){const t=w8.get(e);t&&(t.flags|=8,w8.delete(e))}let Wte=!1;const n1=()=>{Wte||(console.error("Hydration completed but contains mismatches."),Wte=!0)},_5e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",S5e=e=>e.namespaceURI.includes("MathML"),ax=e=>{if(e.nodeType===1){if(_5e(e))return"svg";if(S5e(e))return"mathml"}},N1=e=>e.nodeType===8;function k5e(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,_),C8(),_._vnode=E;return}p(_.firstChild,E,null,null,null),C8(),_._vnode=E},p=(E,_,T,D,P,M=!1)=>{M=M||!!_.dynamicChildren;const $=N1(E)&&E.data==="[",I=()=>S(E,_,T,D,P,$),{type:N,ref:F,shapeFlag:W,patchFlag:U}=_;let G=E.nodeType;_.el=E,U===-2&&(M=!1,_.dynamicChildren=null);let Z=null;switch(N){case c0:G!==3?_.children===""?(c(_.el=o(""),s(E),E),Z=E):Z=I():(E.data!==_.children&&(n1(),E.data=_.children),Z=a(E));break;case Ss:x(E)?(Z=a(E),C(_.el=E.content.firstChild,E,T)):G!==8||$?Z=I():Z=a(E);break;case am:if($&&(E=a(E),G=E.nodeType),G===1||G===3){Z=E;const oe=!_.children.length;for(let X=0;X<_.staticCount;X++)oe&&(_.children+=Z.nodeType===1?Z.outerHTML:Z.data),X===_.staticCount-1&&(_.anchor=Z),Z=a(Z);return $?a(Z):Z}else I();break;case Nt:$?Z=y(E,_,T,D,P,M):Z=I();break;default:if(W&1)(G!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?Z=I():Z=m(E,_,T,D,P,M);else if(W&6){_.slotScopeIds=P;const oe=s(E);if($?Z=k(E):N1(E)&&E.data==="teleport start"?Z=k(E,E.data,"teleport end"):Z=a(E),t(_,oe,null,T,D,ax(oe),M),u0(_)&&!_.type.__asyncResolved){let X;$?(X=O(Nt),X.anchor=Z?Z.previousSibling:oe.lastChild):X=E.nodeType===3?We(""):O("div"),X.el=E,_.component.subTree=X}}else W&64?G!==8?Z=I():Z=_.type.hydrate(E,_,T,D,P,M,e,g):W&128&&(Z=_.type.hydrate(E,_,T,D,ax(s(E)),P,M,e,p))}return F!=null&&Z1(F,null,D,_),Z},m=(E,_,T,D,P,M)=>{M=M||!!_.dynamicChildren;const{type:$,props:I,patchFlag:N,shapeFlag:F,dirs:W,transition:U}=_,G=$==="input"||$==="option";if(G||N!==-1){W&&of(_,null,T,"created");let Z=!1;if(x(E)){Z=$fe(null,U)&&T&&T.vnode.props&&T.vnode.props.appear;const X=E.content.firstChild;if(Z){const H=X.getAttribute("class");H&&(X.$cls=H),U.beforeEnter(X)}C(X,E,T),_.el=E=X}if(F&16&&!(I&&(I.innerHTML||I.textContent))){let X=g(E.firstChild,_,E,T,D,P,M);for(;X;){lx(E,1)||n1();const H=X;X=X.nextSibling,l(H)}}else if(F&8){let X=_.children;X[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(X=X.slice(1)),E.textContent!==X&&(lx(E,0)||n1(),E.textContent=_.children)}if(I){if(G||!M||N&48){const X=E.tagName.includes("-");for(const H in I)(G&&(H.endsWith("value")||H==="indeterminate")||P0(H)&&!Ah(H)||H[0]==="."||X)&&r(E,H,null,I[H],void 0,T)}else if(I.onClick)r(E,"onClick",null,I.onClick,void 0,T);else if(N&4&&gf(I.style))for(const X in I.style)I.style[X]}let oe;(oe=I&&I.onVnodeBeforeMount)&&mu(oe,T,_),W&&of(_,null,T,"beforeMount"),((oe=I&&I.onVnodeMounted)||W||Z)&&Wfe(()=>{oe&&mu(oe,T,_),Z&&U.enter(E),W&&of(_,null,T,"mounted")},D)}return E.nextSibling},g=(E,_,T,D,P,M,$)=>{$=$||!!_.dynamicChildren;const I=_.children,N=I.length;for(let F=0;F{const{slotScopeIds:$}=_;$&&(P=P?P.concat($):$);const I=s(E),N=g(a(E),_,I,T,D,P,M);return N&&N1(N)&&N.data==="]"?a(_.anchor=N):(n1(),c(_.anchor=d("]"),I,N),N)},S=(E,_,T,D,P,M)=>{if(lx(E.parentElement,1)||n1(),_.el=null,M){const N=k(E);for(;;){const F=a(E);if(F&&F!==N)l(F);else break}}const $=a(E),I=s(E);return l(E),n(null,_,I,$,T,D,ax(I),P),T&&(T.vnode.el=_.el,g5(T,_.el)),$},k=(E,_="[",T="]")=>{let D=0;for(;E;)if(E=a(E),E&&N1(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 Gte="data-allow-mismatch",x5e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function lx(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Gte);)e=e.parentElement;const n=e&&e.getAttribute(Gte);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(x5e[t])}}const C5e=N_().requestIdleCallback||(e=>setTimeout(e,1)),w5e=N_().cancelIdleCallback||(e=>clearTimeout(e)),E5e=(e=1e4)=>t=>{const n=C5e(t,{timeout:e});return()=>w5e(n)};function T5e(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(T5e(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},I5e=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},L5e=(e=[])=>(t,n)=>{Mr(e)&&(e=[e]);let r=!1;const o=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const l of e)s.removeEventListener(l,o)})};return n(s=>{for(const l of e)s.addEventListener(l,o,{once:!0})}),a};function D5e(e,t){if(N1(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(N1(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const u0=e=>!!e.type.__asyncLoader;function Wm(e){Ar(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:a,timeout:s,suspensible:l=!0,onError:c}=e;let d=null,h,p=0;const m=()=>(p++,d=null,g()),g=()=>{let y;return d||(y=d=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((k,C)=>{c(S,()=>k(m()),()=>C(S),p+1)});throw S}).then(S=>y!==d&&d?d:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return ke({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(y,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const x=()=>{C||k()},E=a?()=>{const _=a(x,T=>D5e(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,Um(E,y,13,!r)};if(l&&y.suspense||Cy)return g().then(E=>()=>cP(E,y)).catch(E=>(S(E),()=>r?O(r,{error:E}):null));const k=fe(!1),C=fe(),x=fe(!!o);return o&&setTimeout(()=>{x.value=!1},o),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const E=new Error(`Async component timed out after ${s}ms.`);S(E),C.value=E}},s),g().then(()=>{k.value=!0,y.parent&&j_(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 O(r,{error:C.value});if(n&&!x.value)return O(n)}}})}function cP(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,s=O(e,r,o);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const j_=e=>e.type.__isKeepAlive,P5e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=yo(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:d,um:h,o:{createElement:p}}}=r,m=p("div");r.activate=(x,E,_,T,D)=>{const P=x.component;d(x,E,_,0,l),c(P.vnode,x,E,_,P,l,T,x.slotScopeIds,D),la(()=>{P.isDeactivated=!1,P.a&&im(P.a);const M=x.props&&x.props.onVnodeMounted;M&&mu(M,P.parent,x)},l)},r.deactivate=x=>{const E=x.component;T8(E.m),T8(E.a),d(x,m,null,1,l),la(()=>{E.da&&im(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||!xd(E,s))?g(E):s&&dP(s),o.delete(x),a.delete(x)}Rt(()=>[e.include,e.exclude],([x,E])=>{x&&y(_=>x4(x,_)),E&&y(_=>!x4(E,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(A8(n.subTree.type)?la(()=>{o.set(k,ux(n.subTree))},n.subTree.suspense):o.set(k,ux(n.subTree)))};return mn(C),Qa(C),Ao(()=>{o.forEach(x=>{const{subTree:E,suspense:_}=n,T=ux(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(!Hi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=ux(E);if(_.type===Ss)return s=null,_;const T=_.type,D=Nj(u0(_)?_.type.__asyncResolved||{}:T),{include:P,exclude:M,max:$}=e;if(P&&(!D||!x4(P,D))||M&&D&&x4(M,D))return _.shapeFlag&=-257,s=_,E;const I=_.key==null?T:_.key,N=o.get(I);return _.el&&(_=wl(_),E.shapeFlag&128&&(E.ssContent=_)),k=I,N?(_.el=N.el,_.component=N.component,_.transition&&Vh(_,_.transition),_.shapeFlag|=512,a.delete(I),a.add(I)):(a.add(I),$&&a.size>parseInt($,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,A8(E.type)?E:_}}},R5e=P5e;function x4(e,t){return Gn(e)?e.some(n=>x4(n,t)):Mr(e)?e.split(",").includes(t):kde(e)?(e.lastIndex=0,e.test(t)):!1}function NU(e,t){pfe(e,"a",t)}function FU(e,t){pfe(e,"da",t)}function pfe(e,t,n=Ua){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(v5(t,r,n),n){let o=n.parent;for(;o&&o.parent;)j_(o.parent.vnode)&&M5e(r,t,n,o),o=o.parent}}function M5e(e,t,n,r){const o=v5(t,e,r,!0);mi(()=>{n5(r[t],o)},n)}function dP(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ux(e){return e.shapeFlag&128?e.ssContent:e}function v5(e,t,n=Ua,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Nh();const l=Cm(n),c=qc(t,n,e,s);return l(),Fh(),c});return r?o.unshift(a):o.push(a),a}}const Gh=e=>(t,n=Ua)=>{(!Cy||e==="sp")&&v5(e,(...r)=>t(...r),n)},vfe=Gh("bm"),mn=Gh("m"),jU=Gh("bu"),Qa=Gh("u"),Ao=Gh("bum"),mi=Gh("um"),mfe=Gh("sp"),gfe=Gh("rtg"),yfe=Gh("rtc");function bfe(e,t=Ua){v5("ec",e,t)}const VU="components",O5e="directives";function De(e,t){return zU(VU,e,!0,t)||e}const _fe=Symbol.for("v-ndc");function Wa(e){return Mr(e)?zU(VU,e,!1)||e:e||_fe}function t3(e){return zU(O5e,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===Oo(t)||l===M0(Oo(t))))return a}const s=Kte(o[e]||a[e],t)||Kte(o.appContext[e],t);return!s&&r?a:s}}function Kte(e,t){return e&&(e[t]||e[Oo(t)]||e[M0(Oo(t))])}function vn(e,t,n,r){let o;const a=n&&n[r],s=Gn(e);if(s||Mr(e)){const l=s&&gf(e);let c=!1,d=!1;l&&(c=!lc(e),d=jh(e),e=l5(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 pt(e,t,n={},r,o){if(Ha.ce||Ha.parent&&u0(Ha.parent)&&Ha.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),Ye(Nt,null,[O("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=Ye(Nt,{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=>Hi(t)?!(t.type===Ss||t.type===Nt&&!UU(t.children)):!0)?e:null}function $5e(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:rm(r)]=e[r];return n}const Aj=e=>e?Xfe(e)?z_(e):Aj(e.parent):null,G4=ki(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=Sn.bind(e.proxy)),$watch:e=>fAe.bind(e)}),fP=(e,t)=>e!==wi&&!e.__isScriptSetup&&Ki(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!==wi&&Ki(o,t))return s[t]=2,o[t];if((d=e.propsOptions[0])&&Ki(d,t))return s[t]=3,a[t];if(n!==wi&&Ki(n,t))return s[t]=4,n[t];Lj&&(s[t]=0)}}const h=G4[t];let p,m;if(h)return t==="$attrs"&&bl(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==wi&&Ki(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,Ki(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return fP(o,t)?(o[t]=n,!0):r!==wi&&Ki(r,t)?(r[t]=n,!0):Ki(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!==wi&&l[0]!=="$"&&Ki(e,l)||fP(t,l)||(c=a[0])&&Ki(c,l)||Ki(r,l)||Ki(G4,l)||Ki(o.config.globalProperties,l)||(d=s.__cssModules)&&d[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ki(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},B5e=ki({},Ij,{get(e,t){if(t!==Symbol.unscopables)return Ij.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xU(t)}});function N5e(){return null}function F5e(){return null}function j5e(e){}function V5e(e){}function z5e(){return null}function U5e(){}function H5e(e,t){return null}function W5e(){return Sfe().slots}function G5e(){return Sfe().attrs}function Sfe(e){const t=yo();return t.setupContext||(t.setupContext=Qfe(t))}function qb(e){return Gn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function K5e(e,t){const n=qb(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?Gn(o)||Ar(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 q5e(e,t){return!e||!t?e||t:Gn(e)&&Gn(t)?e.concat(t):ki({},qb(e),qb(t))}function Y5e(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function X5e(e){const t=yo();let n=e();return Oj(),r5(n)&&(n=n.catch(r=>{throw Cm(t),r})),[n,()=>Cm(t)]}let Lj=!0;function Z5e(e){const t=HU(e),n=e.proxy,r=e.ctx;Lj=!1,t.beforeCreate&&qte(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:m,beforeUpdate:g,updated:y,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:_,render:T,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:$,expose:I,inheritAttrs:N,components:F,directives:W,filters:U}=t;if(d&&J5e(d,r,null),s)for(const oe in s){const X=s[oe];Ar(X)&&(r[oe]=X.bind(n))}if(o){const oe=o.call(n,n);Xi(oe)&&(e.data=qt(oe))}if(Lj=!0,a)for(const oe in a){const X=a[oe],H=Ar(X)?X.bind(n,n):Ar(X.get)?X.get.bind(n,n):ka,q=!Ar(X)&&Ar(X.set)?X.set.bind(n):ka,Q=j({get:H,set:q});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ne=>Q.value=ne})}if(l)for(const oe in l)kfe(l[oe],r,n,oe);if(c){const oe=Ar(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(X=>{ti(X,oe[X])})}h&&qte(h,e,"c");function Z(oe,X){Gn(X)?X.forEach(H=>oe(H.bind(n))):X&&oe(X.bind(n))}if(Z(vfe,p),Z(mn,m),Z(jU,g),Z(Qa,y),Z(NU,S),Z(FU,k),Z(bfe,M),Z(yfe,D),Z(gfe,P),Z(Ao,x),Z(mi,_),Z(mfe,$),Gn(I))if(I.length){const oe=e.exposed||(e.exposed={});I.forEach(X=>{Object.defineProperty(oe,X,{get:()=>n[X],set:H=>n[X]=H,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ka&&(e.render=T),N!=null&&(e.inheritAttrs=N),F&&(e.components=F),W&&(e.directives=W),$&&BU(e)}function J5e(e,t,n=ka){Gn(e)&&(e=Dj(e));for(const r in e){const o=e[r];let a;Xi(o)?"default"in o?a=Rn(o.from||r,o.default,!0):a=Rn(o.from||r):a=Rn(o),$o(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function qte(e,t,n){qc(Gn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kfe(e,t,n,r){let o=r.includes(".")?Vfe(n,r):()=>n[r];if(Mr(e)){const a=t[e];Ar(a)&&Rt(o,a)}else if(Ar(e))Rt(o,e.bind(n));else if(Xi(e))if(Gn(e))e.forEach(a=>kfe(a,t,n,r));else{const a=Ar(e.handler)?e.handler.bind(n):t[e.handler];Ar(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=>E8(c,d,s,!0)),E8(c,t,s)),Xi(t)&&a.set(t,c),c}function E8(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&E8(e,a,n,!0),o&&o.forEach(s=>E8(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Q5e[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Q5e={data:Yte,props:Xte,emits:Xte,methods:C4,computed:C4,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:C4,directives:C4,watch:tAe,provide:Yte,inject:eAe};function Yte(e,t){return t?e?function(){return ki(Ar(e)?e.call(this,this):e,Ar(t)?t.call(this,this):t)}:t:e}function eAe(e,t){return C4(Dj(e),Dj(t))}function Dj(e){if(Gn(e)){const t={};for(let n=0;n1)return n&&Ar(t)?t.call(r&&r.proxy):t}}function Cfe(){return!!(yo()||sm)}const wfe={},Efe=()=>Object.create(wfe),Tfe=e=>Object.getPrototypeOf(e)===wfe;function iAe(e,t,n,r=!1){const o={},a=Efe();e.propsDefaults=Object.create(null),Afe(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:PU(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function oAe(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Oi(o),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[m,g]=Ife(p,t,!0);ki(s,m),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!a&&!c)return Xi(e)&&r.set(e,tm),tm;if(Gn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",GU=e=>Gn(e)?e.map(gu):[gu(e)],aAe=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>GU(t(...o)),n);return r._c=!1,r},Lfe=(e,t,n)=>{const r=e._ctx;for(const o in e){if(WU(o))continue;const a=e[o];if(Ar(a))t[o]=aAe(o,a,r);else if(a!=null){const s=GU(a);t[o]=()=>s}}},Dfe=(e,t)=>{const n=GU(t);e.slots.default=()=>n},Pfe=(e,t,n)=>{for(const r in t)(n||!WU(r))&&(e[r]=t[r])},lAe=(e,t,n)=>{const r=e.slots=Efe();if(e.vnode.shapeFlag&32){const o=t._;o?(Pfe(r,t,n),n&&kU(r,"_",o,!0)):Lfe(t,r)}else t&&Dfe(e,t)},uAe=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=wi;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Pfe(o,t,n):(a=!t.$stable,Lfe(t,o)),s=t}else t&&(Dfe(e,t),s={default:1});if(a)for(const l in o)!WU(l)&&s[l]==null&&delete o[l]},la=Wfe;function Rfe(e){return Ofe(e)}function Mfe(e){return Ofe(e,k5e)}function Ofe(e,t){const n=N_();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:m,setScopeId:g=ka,insertStaticContent:y}=e,S=(ge,_e,Fe,He=null,Qe=null,rt=null,ft=void 0,lt=null,Ct=!!_e.dynamicChildren)=>{if(ge===_e)return;ge&&!xd(ge,_e)&&(He=ve(ge),ne(ge,Qe,rt,!0),ge=null),_e.patchFlag===-2&&(Ct=!1,_e.dynamicChildren=null);const{type:St,ref:Wt,shapeFlag:Tt}=_e;switch(St){case c0:k(ge,_e,Fe,He);break;case Ss:C(ge,_e,Fe,He);break;case am:ge==null&&x(_e,Fe,He,ft);break;case Nt:F(ge,_e,Fe,He,Qe,rt,ft,lt,Ct);break;default:Tt&1?T(ge,_e,Fe,He,Qe,rt,ft,lt,Ct):Tt&6?W(ge,_e,Fe,He,Qe,rt,ft,lt,Ct):(Tt&64||Tt&128)&&St.process(ge,_e,Fe,He,Qe,rt,ft,lt,Ct,Je)}Wt!=null&&Qe?Z1(Wt,ge&&ge.ref,rt,_e||ge,!_e):Wt==null&&ge&&ge.ref!=null&&Z1(ge.ref,null,rt,ge,!0)},k=(ge,_e,Fe,He)=>{if(ge==null)r(_e.el=l(_e.children),Fe,He);else{const Qe=_e.el=ge.el;_e.children!==ge.children&&d(Qe,_e.children)}},C=(ge,_e,Fe,He)=>{ge==null?r(_e.el=c(_e.children||""),Fe,He):_e.el=ge.el},x=(ge,_e,Fe,He)=>{[ge.el,ge.anchor]=y(ge.children,_e,Fe,He,ge.el,ge.anchor)},E=({el:ge,anchor:_e},Fe,He)=>{let Qe;for(;ge&&ge!==_e;)Qe=m(ge),r(ge,Fe,He),ge=Qe;r(_e,Fe,He)},_=({el:ge,anchor:_e})=>{let Fe;for(;ge&&ge!==_e;)Fe=m(ge),o(ge),ge=Fe;o(_e)},T=(ge,_e,Fe,He,Qe,rt,ft,lt,Ct)=>{_e.type==="svg"?ft="svg":_e.type==="math"&&(ft="mathml"),ge==null?D(_e,Fe,He,Qe,rt,ft,lt,Ct):$(ge,_e,Qe,rt,ft,lt,Ct)},D=(ge,_e,Fe,He,Qe,rt,ft,lt)=>{let Ct,St;const{props:Wt,shapeFlag:Tt,transition:Mt,dirs:nn}=ge;if(Ct=ge.el=s(ge.type,rt,Wt&&Wt.is,Wt),Tt&8?h(Ct,ge.children):Tt&16&&M(ge.children,Ct,null,He,Qe,hP(ge,rt),ft,lt),nn&&of(ge,null,He,"created"),P(Ct,ge,ge.scopeId,ft,He),Wt){for(const Ne in Wt)Ne!=="value"&&!Ah(Ne)&&a(Ct,Ne,null,Wt[Ne],rt,He);"value"in Wt&&a(Ct,"value",null,Wt.value,rt),(St=Wt.onVnodeBeforeMount)&&mu(St,He,ge)}nn&&of(ge,null,He,"beforeMount");const ut=$fe(Qe,Mt);ut&&Mt.beforeEnter(Ct),r(Ct,_e,Fe),((St=Wt&&Wt.onVnodeMounted)||ut||nn)&&la(()=>{St&&mu(St,He,ge),ut&&Mt.enter(Ct),nn&&of(ge,null,He,"mounted")},Qe)},P=(ge,_e,Fe,He,Qe)=>{if(Fe&&g(ge,Fe),He)for(let rt=0;rt{for(let St=Ct;St{const lt=_e.el=ge.el;let{patchFlag:Ct,dynamicChildren:St,dirs:Wt}=_e;Ct|=ge.patchFlag&16;const Tt=ge.props||wi,Mt=_e.props||wi;let nn;if(Fe&&dv(Fe,!1),(nn=Mt.onVnodeBeforeUpdate)&&mu(nn,Fe,_e,ge),Wt&&of(_e,ge,Fe,"beforeUpdate"),Fe&&dv(Fe,!0),(Tt.innerHTML&&Mt.innerHTML==null||Tt.textContent&&Mt.textContent==null)&&h(lt,""),St?I(ge.dynamicChildren,St,lt,Fe,He,hP(_e,Qe),rt):ft||X(ge,_e,lt,null,Fe,He,hP(_e,Qe),rt,!1),Ct>0){if(Ct&16)N(lt,Tt,Mt,Fe,Qe);else if(Ct&2&&Tt.class!==Mt.class&&a(lt,"class",null,Mt.class,Qe),Ct&4&&a(lt,"style",Tt.style,Mt.style,Qe),Ct&8){const ut=_e.dynamicProps;for(let Ne=0;Ne{nn&&mu(nn,Fe,_e,ge),Wt&&of(_e,ge,Fe,"updated")},He)},I=(ge,_e,Fe,He,Qe,rt,ft)=>{for(let lt=0;lt<_e.length;lt++){const Ct=ge[lt],St=_e[lt],Wt=Ct.el&&(Ct.type===Nt||!xd(Ct,St)||Ct.shapeFlag&198)?p(Ct.el):Fe;S(Ct,St,Wt,null,He,Qe,rt,ft,!0)}},N=(ge,_e,Fe,He,Qe)=>{if(_e!==Fe){if(_e!==wi)for(const rt in _e)!Ah(rt)&&!(rt in Fe)&&a(ge,rt,_e[rt],null,Qe,He);for(const rt in Fe){if(Ah(rt))continue;const ft=Fe[rt],lt=_e[rt];ft!==lt&&rt!=="value"&&a(ge,rt,lt,ft,Qe,He)}"value"in Fe&&a(ge,"value",_e.value,Fe.value,Qe)}},F=(ge,_e,Fe,He,Qe,rt,ft,lt,Ct)=>{const St=_e.el=ge?ge.el:l(""),Wt=_e.anchor=ge?ge.anchor:l("");let{patchFlag:Tt,dynamicChildren:Mt,slotScopeIds:nn}=_e;nn&&(lt=lt?lt.concat(nn):nn),ge==null?(r(St,Fe,He),r(Wt,Fe,He),M(_e.children||[],Fe,Wt,Qe,rt,ft,lt,Ct)):Tt>0&&Tt&64&&Mt&&ge.dynamicChildren?(I(ge.dynamicChildren,Mt,Fe,Qe,rt,ft,lt),(_e.key!=null||Qe&&_e===Qe.subTree)&&KU(ge,_e,!0)):X(ge,_e,Fe,Wt,Qe,rt,ft,lt,Ct)},W=(ge,_e,Fe,He,Qe,rt,ft,lt,Ct)=>{_e.slotScopeIds=lt,ge==null?_e.shapeFlag&512?Qe.ctx.activate(_e,Fe,He,ft,Ct):U(_e,Fe,He,Qe,rt,ft,Ct):G(ge,_e,Ct)},U=(ge,_e,Fe,He,Qe,rt,ft)=>{const lt=ge.component=Yfe(ge,He,Qe);if(j_(ge)&&(lt.ctx.renderer=Je),Zfe(lt,!1,ft),lt.asyncDep){if(Qe&&Qe.registerDep(lt,Z,ft),!ge.el){const Ct=lt.subTree=O(Ss);C(null,Ct,_e,Fe),ge.placeholder=Ct.el}}else Z(lt,ge,_e,Fe,Qe,rt,ft)},G=(ge,_e,Fe)=>{const He=_e.component=ge.component;if(bAe(ge,_e,Fe))if(He.asyncDep&&!He.asyncResolved){oe(He,_e,Fe);return}else He.next=_e,He.update();else _e.el=ge.el,He.vnode=_e},Z=(ge,_e,Fe,He,Qe,rt,ft)=>{const lt=()=>{if(ge.isMounted){let{next:Tt,bu:Mt,u:nn,parent:ut,vnode:Ne}=ge;{const Lt=Bfe(ge);if(Lt){Tt&&(Tt.el=Ne.el,oe(ge,Tt,ft)),Lt.asyncDep.then(()=>{ge.isUnmounted||lt()});return}}let Ie=Tt,Oe;dv(ge,!1),Tt?(Tt.el=Ne.el,oe(ge,Tt,ft)):Tt=Ne,Mt&&im(Mt),(Oe=Tt.props&&Tt.props.onVnodeBeforeUpdate)&&mu(Oe,ut,Tt,Ne),dv(ge,!0);const Xe=UC(ge),ct=ge.subTree;ge.subTree=Xe,S(ct,Xe,p(ct.el),ve(ct),ge,Qe,rt),Tt.el=Xe.el,Ie===null&&g5(ge,Xe.el),nn&&la(nn,Qe),(Oe=Tt.props&&Tt.props.onVnodeUpdated)&&la(()=>mu(Oe,ut,Tt,Ne),Qe)}else{let Tt;const{el:Mt,props:nn}=_e,{bm:ut,m:Ne,parent:Ie,root:Oe,type:Xe}=ge,ct=u0(_e);if(dv(ge,!1),ut&&im(ut),!ct&&(Tt=nn&&nn.onVnodeBeforeMount)&&mu(Tt,Ie,_e),dv(ge,!0),Mt&&je){const Lt=()=>{ge.subTree=UC(ge),je(Mt,ge.subTree,ge,Qe,null)};ct&&Xe.__asyncHydrate?Xe.__asyncHydrate(Mt,ge,Lt):Lt()}else{Oe.ce&&Oe.ce._def.shadowRoot!==!1&&Oe.ce._injectChildStyle(Xe);const Lt=ge.subTree=UC(ge);S(null,Lt,Fe,He,ge,Qe,rt),_e.el=Lt.el}if(Ne&&la(Ne,Qe),!ct&&(Tt=nn&&nn.onVnodeMounted)){const Lt=_e;la(()=>mu(Tt,Ie,Lt),Qe)}(_e.shapeFlag&256||Ie&&u0(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&ge.a&&la(ge.a,Qe),ge.isMounted=!0,_e=Fe=He=null}};ge.scope.on();const Ct=ge.effect=new Vb(lt);ge.scope.off();const St=ge.update=Ct.run.bind(Ct),Wt=ge.job=Ct.runIfDirty.bind(Ct);Wt.i=ge,Wt.id=ge.uid,Ct.scheduler=()=>MU(Wt),dv(ge,!0),St()},oe=(ge,_e,Fe)=>{_e.component=ge;const He=ge.vnode.props;ge.vnode=_e,ge.next=null,oAe(ge,_e.props,He,Fe),uAe(ge,_e.children,Fe),Nh(),Fte(ge),Fh()},X=(ge,_e,Fe,He,Qe,rt,ft,lt,Ct=!1)=>{const St=ge&&ge.children,Wt=ge?ge.shapeFlag:0,Tt=_e.children,{patchFlag:Mt,shapeFlag:nn}=_e;if(Mt>0){if(Mt&128){q(St,Tt,Fe,He,Qe,rt,ft,lt,Ct);return}else if(Mt&256){H(St,Tt,Fe,He,Qe,rt,ft,lt,Ct);return}}nn&8?(Wt&16&&xe(St,Qe,rt),Tt!==St&&h(Fe,Tt)):Wt&16?nn&16?q(St,Tt,Fe,He,Qe,rt,ft,lt,Ct):xe(St,Qe,rt,!0):(Wt&8&&h(Fe,""),nn&16&&M(Tt,Fe,He,Qe,rt,ft,lt,Ct))},H=(ge,_e,Fe,He,Qe,rt,ft,lt,Ct)=>{ge=ge||tm,_e=_e||tm;const St=ge.length,Wt=_e.length,Tt=Math.min(St,Wt);let Mt;for(Mt=0;MtWt?xe(ge,Qe,rt,!0,!1,Tt):M(_e,Fe,He,Qe,rt,ft,lt,Ct,Tt)},q=(ge,_e,Fe,He,Qe,rt,ft,lt,Ct)=>{let St=0;const Wt=_e.length;let Tt=ge.length-1,Mt=Wt-1;for(;St<=Tt&&St<=Mt;){const nn=ge[St],ut=_e[St]=Ct?Gp(_e[St]):gu(_e[St]);if(xd(nn,ut))S(nn,ut,Fe,null,Qe,rt,ft,lt,Ct);else break;St++}for(;St<=Tt&&St<=Mt;){const nn=ge[Tt],ut=_e[Mt]=Ct?Gp(_e[Mt]):gu(_e[Mt]);if(xd(nn,ut))S(nn,ut,Fe,null,Qe,rt,ft,lt,Ct);else break;Tt--,Mt--}if(St>Tt){if(St<=Mt){const nn=Mt+1,ut=nnMt)for(;St<=Tt;)ne(ge[St],Qe,rt,!0),St++;else{const nn=St,ut=St,Ne=new Map;for(St=ut;St<=Mt;St++){const wt=_e[St]=Ct?Gp(_e[St]):gu(_e[St]);wt.key!=null&&Ne.set(wt.key,St)}let Ie,Oe=0;const Xe=Mt-ut+1;let ct=!1,Lt=0;const ht=new Array(Xe);for(St=0;St=Xe){ne(wt,Qe,rt,!0);continue}let Yt;if(wt.key!=null)Yt=Ne.get(wt.key);else for(Ie=ut;Ie<=Mt;Ie++)if(ht[Ie-ut]===0&&xd(wt,_e[Ie])){Yt=Ie;break}Yt===void 0?ne(wt,Qe,rt,!0):(ht[Yt-ut]=St+1,Yt>=Lt?Lt=Yt:ct=!0,S(wt,_e[Yt],Fe,null,Qe,rt,ft,lt,Ct),Oe++)}const Be=ct?cAe(ht):tm;for(Ie=Be.length-1,St=Xe-1;St>=0;St--){const wt=ut+St,Yt=_e[wt],Qt=_e[wt+1],Vt=wt+1{const{el:rt,type:ft,transition:lt,children:Ct,shapeFlag:St}=ge;if(St&6){Q(ge.component.subTree,_e,Fe,He);return}if(St&128){ge.suspense.move(_e,Fe,He);return}if(St&64){ft.move(ge,_e,Fe,Je);return}if(ft===Nt){r(rt,_e,Fe);for(let Tt=0;Ttlt.enter(rt),Qe);else{const{leave:Tt,delayLeave:Mt,afterLeave:nn}=lt,ut=()=>{ge.ctx.isUnmounted?o(rt):r(rt,_e,Fe)},Ne=()=>{rt._isLeaving&&rt[yh](!0),Tt(rt,()=>{ut(),nn&&nn()})};Mt?Mt(rt,ut,Ne):Ne()}else r(rt,_e,Fe)},ne=(ge,_e,Fe,He=!1,Qe=!1)=>{const{type:rt,props:ft,ref:lt,children:Ct,dynamicChildren:St,shapeFlag:Wt,patchFlag:Tt,dirs:Mt,cacheIndex:nn}=ge;if(Tt===-2&&(Qe=!1),lt!=null&&(Nh(),Z1(lt,null,Fe,ge,!0),Fh()),nn!=null&&(_e.renderCache[nn]=void 0),Wt&256){_e.ctx.deactivate(ge);return}const ut=Wt&1&&Mt,Ne=!u0(ge);let Ie;if(Ne&&(Ie=ft&&ft.onVnodeBeforeUnmount)&&mu(Ie,_e,ge),Wt&6)Se(ge.component,Fe,He);else{if(Wt&128){ge.suspense.unmount(Fe,He);return}ut&&of(ge,null,_e,"beforeUnmount"),Wt&64?ge.type.remove(ge,_e,Fe,Je,He):St&&!St.hasOnce&&(rt!==Nt||Tt>0&&Tt&64)?xe(St,_e,Fe,!1,!0):(rt===Nt&&Tt&384||!Qe&&Wt&16)&&xe(Ct,_e,Fe),He&&ae(ge)}(Ne&&(Ie=ft&&ft.onVnodeUnmounted)||ut)&&la(()=>{Ie&&mu(Ie,_e,ge),ut&&of(ge,null,_e,"unmounted")},Fe)},ae=ge=>{const{type:_e,el:Fe,anchor:He,transition:Qe}=ge;if(_e===Nt){re(Fe,He);return}if(_e===am){_(ge);return}const rt=()=>{o(Fe),Qe&&!Qe.persisted&&Qe.afterLeave&&Qe.afterLeave()};if(ge.shapeFlag&1&&Qe&&!Qe.persisted){const{leave:ft,delayLeave:lt}=Qe,Ct=()=>ft(Fe,rt);lt?lt(ge.el,rt,Ct):Ct()}else rt()},re=(ge,_e)=>{let Fe;for(;ge!==_e;)Fe=m(ge),o(ge),ge=Fe;o(_e)},Se=(ge,_e,Fe)=>{const{bum:He,scope:Qe,job:rt,subTree:ft,um:lt,m:Ct,a:St}=ge;T8(Ct),T8(St),He&&im(He),Qe.stop(),rt&&(rt.flags|=8,ne(ft,ge,_e,Fe)),lt&&la(lt,_e),la(()=>{ge.isUnmounted=!0},_e)},xe=(ge,_e,Fe,He=!1,Qe=!1,rt=0)=>{for(let ft=rt;ft{if(ge.shapeFlag&6)return ve(ge.component.subTree);if(ge.shapeFlag&128)return ge.suspense.next();const _e=m(ge.anchor||ge.el),Fe=_e&&_e[sfe];return Fe?m(Fe):_e};let be=!1;const Ve=(ge,_e,Fe)=>{ge==null?_e._vnode&&ne(_e._vnode,null,null,!0):S(_e._vnode||null,ge,_e,null,null,null,Fe),_e._vnode=ge,be||(be=!0,Fte(),C8(),be=!1)},Je={p:S,um:ne,m:Q,r:ae,mt:U,mc:M,pc:X,pbc:I,n:ve,o:e};let Me,je;return t&&([Me,je]=t(Je)),{render:Ve,hydrate:Me,createApp:rAe(Ve,Me)}}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 dv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $fe(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function KU(e,t,n=!1){const r=e.children,o=t.children;if(Gn(r)&&Gn(o))for(let a=0;a>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function Bfe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bfe(t)}function T8(e){if(e)for(let t=0;tRn(Nfe);function Os(e,t){return V_(e,null,t)}function dAe(e,t){return V_(e,null,{flush:"post"})}function jfe(e,t){return V_(e,null,{flush:"sync"})}function Rt(e,t,n){return V_(e,t,n)}function V_(e,t,n=wi){const{immediate:r,deep:o,flush:a,once:s}=n,l=ki({},n),c=t&&r||!t&&a!=="post";let d;if(Cy){if(a==="sync"){const g=Ffe();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ka,g.resume=ka,g.pause=ka,g}}const h=Ua;l.call=(g,y,S)=>qc(g,h,y,S);let p=!1;a==="post"?l.scheduler=g=>{la(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,y)=>{y?g():MU(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const m=o5e(e,t,l);return Cy&&(d?d.push(m):c&&m()),m}function fAe(e,t,n){const r=this.proxy,o=Mr(e)?e.includes(".")?Vfe(r,e):()=>r[e]:e.bind(r,r);let a;Ar(t)?a=t:(a=t.handler,n=t);const s=Cm(this),l=V_(o,a.bind(r),n);return s(),l}function Vfe(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=wi,m;return jfe(()=>{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!==wi&&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,m)&&d(),p=g,m=y}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||wi:l,done:!1}:{done:!0}}}},l}const zfe=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oo(t)}Modifiers`]||e[`${_l(t)}Modifiers`];function pAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||wi;let o=n;const a=t.startsWith("update:"),s=a&&zfe(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Mr(h)?h.trim():h)),s.number&&(o=n.map(Fb)));let l,c=r[l=rm(t)]||r[l=rm(Oo(t))];!c&&a&&(c=r[l=rm(_l(t))]),c&&qc(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,qc(d,e,6,o)}}const vAe=new WeakMap;function Ufe(e,t,n=!1){const r=n?vAe:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!Ar(e)){const c=d=>{const h=Ufe(d,t,!0);h&&(l=!0,ki(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Xi(e)&&r.set(e,null),null):(Gn(a)?a.forEach(c=>s[c]=null):ki(s,a),Xi(e)&&r.set(e,s),s)}function m5(e,t){return!e||!P0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ki(e,t[0].toLowerCase()+t.slice(1))||Ki(e,_l(t))||Ki(e,t))}function UC(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:h,props:p,data:m,setupState:g,ctx:y,inheritAttrs:S}=e,k=Kb(e);let C,x;try{if(n.shapeFlag&4){const _=o||r,T=_;C=gu(d.call(T,_,h,p,g,m,y)),x=l}else{const _=t;C=gu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:gAe(l)}}catch(_){K4.length=0,Um(_,e,1),C=O(Ss)}let E=C;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:T}=E;_.length&&T&7&&(a&&_.some(t5)&&(x=yAe(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&&Vh(E,n.transition),C=E,Kb(k),C}function mAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||P0(n))&&((t||(t={}))[n]=e[n]);return t},yAe=(e,t)=>{const n={};for(const r in e)(!t5(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function bAe(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?Jte(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let Rj=0;const _Ae={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,d){if(e==null)kAe(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}xAe(e,t,n,r,o,s,l,c,d)}},hydrate:CAe,normalize:wAe},SAe=_Ae;function Yb(e,t){const n=e.props&&e.props[t];Ar(n)&&n()}function kAe(e,t,n,r,o,a,s,l,c){const{p:d,o:{createElement:h}}=c,p=h("div"),m=e.suspense=Hfe(e,o,r,t,p,n,a,s,l,c);d(null,m.pendingBranch=e.ssContent,p,null,r,m,a,s),m.deps>0?(Yb(e,"onPending"),Yb(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,a,s),J1(m,e.ssFallback)):m.resolve(!1,!0)}function xAe(e,t,n,r,o,a,s,l,{p:c,um:d,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,g=t.ssFallback,{activeBranch:y,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=m,xd(S,m)?(c(S,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():k&&(C||(c(y,g,n,r,o,null,a,s,l),J1(p,g)))):(p.pendingId=Rj++,C?(p.isHydrating=!1,p.activeBranch=S):d(S,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),k?(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():(c(y,g,n,r,o,null,a,s,l),J1(p,g))):y&&xd(y,m)?(c(y,m,n,r,o,p,a,s,l),p.resolve(!0)):(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0&&p.resolve()));else if(y&&xd(y,m))c(y,m,n,r,o,p,a,s,l),J1(p,m);else if(Yb(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=Rj++,c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:x,pendingId:E}=p;x>0?setTimeout(()=>{p.pendingId===E&&p.fallback(g)},x):x===0&&p.fallback(g)}}function Hfe(e,t,n,r,o,a,s,l,c,d,h=!1){const{p,m,um:g,n:y,o:{parentNode:S,remove:k}}=d;let C;const x=EAe(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const E=e.props?jb(e.props.timeout):void 0,_=a,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Rj++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(D=!1,P=!1){const{vnode:M,activeBranch:$,pendingBranch:I,pendingId:N,effects:F,parentComponent:W,container:U}=T;let G=!1;T.isHydrating?T.isHydrating=!1:D||(G=$&&I.transition&&I.transition.mode==="out-in",G&&($.transition.afterLeave=()=>{N===T.pendingId&&(m(I,U,a===_?y($):a,0),Wb(F))}),$&&(S($.el)===U&&(a=y($)),g($,W,T,!0)),G||m(I,U,a,0)),J1(T,I),T.pendingBranch=null,T.isInFallback=!1;let Z=T.parent,oe=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...F),oe=!0;break}Z=Z.parent}!oe&&!G&&Wb(F),T.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Yb(M,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:P,activeBranch:M,parentComponent:$,container:I,namespace:N}=T;Yb(P,"onFallback");const F=y(M),W=()=>{T.isInFallback&&(p(null,D,I,F,$,null,N,l,c),J1(T,D))},U=D.transition&&D.transition.mode==="out-in";U&&(M.transition.afterLeave=W),T.isInFallback=!0,g(M,$,null,!0),U||W()},move(D,P,M){T.activeBranch&&m(T.activeBranch,D,P,M),T.container=D},next(){return T.activeBranch&&y(T.activeBranch)},registerDep(D,P,M){const $=!!T.pendingBranch;$&&T.deps++;const I=D.vnode.el;D.asyncDep.catch(N=>{Um(N,D,0)}).then(N=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:F}=D;$j(D,N,!1),I&&(F.el=I);const W=!I&&D.subTree.el;P(D,F,S(I||D.subTree.el),I?null:y(D.subTree),T,s,M),W&&k(W),g5(D,F.el),$&&--T.deps===0&&T.resolve()})},unmount(D,P){T.isUnmounted=!0,T.activeBranch&&g(T.activeBranch,n,D,P),T.pendingBranch&&g(T.pendingBranch,n,D,P)}};return T}function CAe(e,t,n,r,o,a,s,l,c){const d=t.suspense=Hfe(t,r,n,e.parentNode,document.createElement("div"),null,o,a,s,l,!0),h=c(e,d.pendingBranch=t.ssContent,n,d,a,s);return d.deps===0&&d.resolve(!1,!0),h}function wAe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Qte(r?n.default:n),e.ssFallback=r?Qte(n.fallback):O(Ss)}function Qte(e){let t;if(Ar(e)){const n=xm&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=xl,Gfe())}return Gn(e)&&(e=mAe(e)),e=gu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Wfe(e,t){t&&t.pendingBranch?Gn(e)?t.effects.push(...e):t.effects.push(e):Wb(e)}function J1(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,g5(r,o))}function EAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Nt=Symbol.for("v-fgt"),c0=Symbol.for("v-txt"),Ss=Symbol.for("v-cmt"),am=Symbol.for("v-stc"),K4=[];let xl=null;function z(e=!1){K4.push(xl=e?null:[])}function Gfe(){K4.pop(),xl=K4[K4.length-1]||null}let xm=1;function Xb(e,t=!1){xm+=e,e<0&&xl&&t&&(xl.hasOnce=!0)}function Kfe(e){return e.dynamicChildren=xm>0?xl||tm:null,Gfe(),xm>0&&xl&&xl.push(e),e}function ee(e,t,n,r,o,a){return Kfe(L(e,t,n,r,o,a,!0))}function Ye(e,t,n,r,o){return Kfe(O(e,t,n,r,o,!0))}function Hi(e){return e?e.__v_isVNode===!0:!1}function xd(e,t){return e.type===t.type&&e.key===t.key}function TAe(e){}const qfe=({key:e})=>e??null,HC=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mr(e)||$o(e)||Ar(e)?{i:Ha,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,o=null,a=e===Nt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qfe(t),ref:t&&HC(t),scopeId:h5,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|=Mr(n)?8:16),xm>0&&!s&&xl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&xl.push(c),c}const O=AAe;function AAe(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===_fe)&&(e=Ss),Hi(e)){const l=wl(e,t,!0);return n&&qU(l,n),xm>0&&!a&&xl&&(l.shapeFlag&6?xl[xl.indexOf(e)]=l:xl.push(l)),l.patchFlag=-2,l}if(OAe(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:l,style:c}=t;l&&!Mr(l)&&(t.class=ue(l)),Xi(c)&&(d5(c)&&!Gn(c)&&(c=ki({},c)),t.style=Ke(c))}const s=Mr(e)?1:A8(e)?128:afe(e)?64:Xi(e)?4:Ar(e)?2:0;return L(e,t,n,r,o,s,a,!0)}function Sa(e){return e?d5(e)||Tfe(e)?ki({},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?jt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&qfe(d),ref:t&&t.ref?n&&a?Gn(a)?a.concat(HC(t)):[a,HC(t)]:HC(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!==Nt?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&&Vh(h,c.clone(h)),h}function We(e=" ",t=0){return O(c0,null,e,t)}function xh(e,t){const n=O(am,null,e);return n.staticCount=t,n}function Pe(e="",t=!1){return t?(z(),Ye(Ss,null,e)):O(Ss,null,e)}function gu(e){return e==null||typeof e=="boolean"?O(Ss):Gn(e)?O(Nt,null,e.slice()):Hi(e)?Gp(e):O(c0,null,String(e))}function Gp(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(Gn(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&&!Tfe(t)?t._ctx=Ha:o===3&&Ha&&(Ha.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ar(t)?(t={default:t,_ctx:Ha},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function jt(...e){const t={};for(let n=0;nUa||Ha;let I8,Mj;{const e=N_(),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)}};I8=t("__VUE_INSTANCE_SETTERS__",n=>Ua=n),Mj=t("__VUE_SSR_SETTERS__",n=>Cy=n)}const Cm=e=>{const t=Ua;return I8(e),e.scope.on(),()=>{e.scope.off(),I8(t)}},Oj=()=>{Ua&&Ua.scope.off(),I8(null)};function Xfe(e){return e.vnode.shapeFlag&4}let Cy=!1;function Zfe(e,t=!1,n=!1){t&&Mj(t);const{props:r,children:o}=e.vnode,a=Xfe(e);iAe(e,r,a,t),lAe(e,o,n||t);const s=a?DAe(e,t):void 0;return t&&Mj(!1),s}function DAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ij);const{setup:r}=n;if(r){Nh();const o=e.setupContext=r.length>1?Qfe(e):null,a=Cm(e),s=e3(r,e,0,[e.props,o]),l=r5(s);if(Fh(),a(),(l||e.sp)&&!u0(e)&&BU(e),l){if(s.then(Oj,Oj),t)return s.then(c=>{$j(e,c,t)}).catch(c=>{Um(c,e,0)});e.asyncDep=s}else $j(e,s,t)}else Jfe(e,t)}function $j(e,t,n){Ar(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xi(t)&&(e.setupState=RU(t)),Jfe(e,n)}let L8,Bj;function PAe(e){L8=e,Bj=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,B5e))}}const RAe=()=>!L8;function Jfe(e,t,n){const r=e.type;if(!e.render){if(!t&&L8&&!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=ki(ki({isCustomElement:a,delimiters:l},s),c);r.render=L8(o,d)}}e.render=r.render||ka,Bj&&Bj(e)}{const o=Cm(e);Nh();try{Z5e(e)}finally{Fh(),o()}}}const MAe={get(e,t){return bl(e,"get",""),e[t]}};function Qfe(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,MAe),slots:e.slots,emit:e.emit,expose:t}}function z_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(RU(f5(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in G4)return G4[n](e)},has(t,n){return n in t||n in G4}})):e.proxy}function Nj(e,t=!0){return Ar(e)?e.displayName||e.name:e.name||t&&e.__name}function OAe(e){return Ar(e)&&"__vccOpts"in e}const j=(e,t)=>t5e(e,t,Cy);function da(e,t,n){try{Xb(-1);const r=arguments.length;return r===2?Xi(t)&&!Gn(t)?Hi(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Hi(n)&&(n=[n]),O(e,t,n))}finally{Xb(1)}}function $Ae(){}function BAe(e,t,n,r){const o=n[r];if(o&&ehe(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function ehe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&xl&&xl.push(e),!0}const the="3.5.22",NAe=ka,FAe=c5e,jAe=D1,VAe=ofe,zAe={createComponentInstance:Yfe,setupComponent:Zfe,renderComponentRoot:UC,setCurrentRenderingInstance:Kb,isVNode:Hi,normalizeVNode:gu,getComponentPublicInstance:z_,ensureValidVNode:UU,pushWarningContext:s5e,popWarningContext:a5e},UAe=zAe,HAe=null,WAe=null,GAe=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Fj;const ene=typeof window<"u"&&window.trustedTypes;if(ene)try{Fj=ene.createPolicy("vue",{createHTML:e=>e})}catch{}const nhe=Fj?e=>Fj.createHTML(e):e=>e,KAe="http://www.w3.org/2000/svg",qAe="http://www.w3.org/1998/Math/MathML",ph=typeof document<"u"?document:null,tne=ph&&ph.createElement("template"),YAe={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(KAe,e):t==="mathml"?ph.createElementNS(qAe,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{tne.innerHTML=nhe(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=tne.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kp="transition",U2="animation",wy=Symbol("_vtc"),rhe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ihe=ki({},$U,rhe),XAe=e=>(e.displayName="Transition",e.props=ihe,e),xs=XAe((e,{slots:t})=>da(ffe,ohe(e),t)),fv=(e,t=[])=>{Gn(e)?e.forEach(n=>n(...t)):e&&e(...t)},nne=e=>e?Gn(e)?e.some(t=>t.length>1):e.length>1:!1;function ohe(e){const t={};for(const F in e)F in rhe||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:d=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=ZAe(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,$=(F,W,U,G)=>{F._enterCancelled=G,Np(F,W?h:l),Np(F,W?d:s),U&&U()},I=(F,W)=>{F._isLeaving=!1,Np(F,p),Np(F,g),Np(F,m),W&&W()},N=F=>(W,U)=>{const G=F?P:x,Z=()=>$(W,F,U);fv(G,[W,Z]),rne(()=>{Np(W,F?c:a),tf(W,F?h:l),nne(G)||ine(W,r,S,Z)})};return ki(t,{onBeforeEnter(F){fv(C,[F]),tf(F,a),tf(F,s)},onBeforeAppear(F){fv(D,[F]),tf(F,c),tf(F,d)},onEnter:N(!1),onAppear:N(!0),onLeave(F,W){F._isLeaving=!0;const U=()=>I(F,W);tf(F,p),F._enterCancelled?(tf(F,m),jj(F)):(jj(F),tf(F,m)),rne(()=>{F._isLeaving&&(Np(F,p),tf(F,g),nne(_)||ine(F,r,k,U))}),fv(_,[F,U])},onEnterCancelled(F){$(F,!1,void 0,!0),fv(E,[F])},onAppearCancelled(F){$(F,!0,void 0,!0),fv(M,[F])},onLeaveCancelled(F){I(F),fv(T,[F])}})}function ZAe(e){if(e==null)return null;if(Xi(e))return[pP(e.enter),pP(e.leave)];{const t=pP(e);return[t,t]}}function pP(e){return jb(e)}function tf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wy]||(e[wy]=new Set)).add(t)}function Np(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[wy];n&&(n.delete(t),n.size||(e[wy]=void 0))}function rne(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let JAe=0;function ine(e,t,n,r){const o=e._endId=++JAe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=she(e,t);if(!s)return r();const d=s+"end";let h=0;const p=()=>{e.removeEventListener(d,m),a()},m=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[y]||"").split(", "),o=r(`${kp}Delay`),a=r(`${kp}Duration`),s=one(o,a),l=r(`${U2}Delay`),c=r(`${U2}Duration`),d=one(l,c);let h=null,p=0,m=0;t===kp?s>0&&(h=kp,p=s,m=a.length):t===U2?d>0&&(h=U2,p=d,m=c.length):(p=Math.max(s,d),h=p>0?s>d?kp:U2:null,m=h?h===kp?a.length:c.length:0);const g=h===kp&&/\b(?:transform|all)(?:,|$)/.test(r(`${kp}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:g}}function one(e,t){for(;e.lengthsne(n)+sne(e[r])))}function sne(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jj(e){return(e?e.ownerDocument:document).body.offsetHeight}function QAe(e,t,n){const r=e[wy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const D8=Symbol("_vod"),ahe=Symbol("_vsh"),Jo={name:"show",beforeMount(e,{value:t},{transition:n}){e[D8]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):H2(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),H2(e,!0),r.enter(e)):r.leave(e,()=>{H2(e,!1)}):H2(e,t))},beforeUnmount(e,{value:t}){H2(e,t)}};function H2(e,t){e.style.display=t?e[D8]:"none",e[ahe]=!t}function eIe(){Jo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const lhe=Symbol("");function uhe(e){const t=yo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>P8(a,o))},r=()=>{const o=e(t.proxy);t.ce?P8(t.ce,o):Vj(t.subTree,o),n(o)};jU(()=>{Wb(r)}),mn(()=>{Rt(r,ka,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),mi(()=>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)P8(e.el,t);else if(e.type===Nt)e.children.forEach(n=>Vj(n,t));else if(e.type===am){let{el:n,anchor:r}=e;for(;n&&(P8(n,t),n!==r);)n=n.nextSibling}}function P8(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Ode(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[lhe]=r}}const tIe=/(?:^|;)\s*display\s*:/;function nIe(e,t,n){const r=e.style,o=Mr(n);let a=!1;if(n&&!o){if(t)if(Mr(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&WC(r,l,"")}else for(const s in t)n[s]==null&&WC(r,s,"");for(const s in n)s==="display"&&(a=!0),WC(r,s,n[s])}else if(o){if(t!==n){const s=r[lhe];s&&(n+=";"+s),r.cssText=n,a=tIe.test(n)}}else t&&e.removeAttribute("style");D8 in e&&(e[D8]=a?r.display:"",e[ahe]&&(r.display="none"))}const ane=/\s*!important$/;function WC(e,t,n){if(Gn(n))n.forEach(r=>WC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rIe(e,t);ane.test(n)?e.setProperty(_l(r),n.replace(ane,""),"important"):e[r]=n}}const lne=["Webkit","Moz","ms"],vP={};function rIe(e,t){const n=vP[t];if(n)return n;let r=Oo(t);if(r!=="filter"&&r in e)return vP[t]=r;r=M0(r);for(let o=0;omP||(aIe.then(()=>mP=0),mP=Date.now());function uIe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qc(cIe(r,n.value),t,5,[r])};return n.value=e,n.attached=lIe(),n}function cIe(e,t){if(Gn(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 pne=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dIe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?QAe(e,r,s):t==="style"?nIe(e,n,r):P0(t)?t5(t)||oIe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fIe(e,t,r,s))?(dne(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&cne(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Mr(r))?dne(e,Oo(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),cne(e,t,r,s))};function fIe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&pne(t)&&Ar(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 pne(t)&&Mr(n)?!1:t in e}const vne={};function che(e,t,n){let r=ke(e,t);B_(r)&&(r=ki({},r,t));class o extends y5{constructor(s){super(r,s,n)}}return o.def=r,o}const hIe=((e,t)=>che(e,t,bhe)),pIe=typeof HTMLElement<"u"?HTMLElement:class{};class y5 extends pIe{constructor(t,n={},r=Ty){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!==Ty?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ki({},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 y5){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,Sn(()=>{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&&!Gn(a))for(const c in a){const d=a[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=jb(this._props[c])),(l||(l=Object.create(null)))[Oo(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)Ki(this,r)||Object.defineProperty(this,r,{get:()=>et(n[r])})}_resolveProps(t){const{props:n}=t,r=Gn(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(Oo))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):vne;const o=Oo(t);n&&this._numberProps&&this._numberProps[o]&&(r=jb(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===vne?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),Yc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,ki(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,B_(s[0])?ki({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 dhe(e){const t=yo(),n=t&&t.ce;return n||null}function vIe(){const e=dhe();return e&&e.shadowRoot}function mIe(e="$style"){{const t=yo();if(!t)return wi;const n=t.type.__cssModules;if(!n)return wi;const r=n[e];return r||wi}}const fhe=new WeakMap,hhe=new WeakMap,R8=Symbol("_moveCb"),mne=Symbol("_enterCb"),gIe=e=>(delete e.props.mode,e),yIe=gIe({name:"TransitionGroup",props:ki({},ihe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=yo(),r=OU();let o,a;return Qa(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!kIe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(bIe),o.forEach(_Ie);const l=o.filter(SIe);jj(n.vnode.el),l.forEach(c=>{const d=c.el,h=d.style;tf(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[R8]=m=>{m&&m.target!==d||(!m||m.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",p),d[R8]=null,Np(d,s))};d.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Oi(e),l=ohe(s);let c=s.tag||Nt;if(o=[],a)for(let d=0;d{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=she(r);return a.removeChild(r),s}const g0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Gn(t)?n=>im(t,n):t};function xIe(e){e.target.composing=!0}function gne(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]=g0(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=Fb(l)),e[Vc](l)}),n&&Sh(e,"change",()=>{e.value=e.value.trim()}),t||(Sh(e,"compositionstart",xIe),Sh(e,"compositionend",gne),Sh(e,"change",gne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Vc]=g0(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?Fb(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]=g0(n),Sh(e,"change",()=>{const r=e._modelValue,o=Ey(e),a=e.checked,s=e[Vc];if(Gn(r)){const l=F_(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(R0(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(phe(e,a))})},mounted:yne,beforeUpdate(e,t,n){e[Vc]=g0(n),yne(e,t,n)}};function yne(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Gn(t))o=F_(t,r.props.value)>-1;else if(R0(t))o=t.has(r.props.value);else{if(t===n)return;o=Bh(t,phe(e,!0))}e.checked!==o&&(e.checked=o)}const XU={created(e,{value:t},n){e.checked=Bh(t,n.props.value),e[Vc]=g0(n),Sh(e,"change",()=>{e[Vc](Ey(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Vc]=g0(r),t!==n&&(e.checked=Bh(t,r.props.value))}},ZU={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=R0(t);Sh(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Fb(Ey(s)):Ey(s));e[Vc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,Sn(()=>{e._assigning=!1})}),e[Vc]=g0(r)},mounted(e,{value:t}){bne(e,t)},beforeUpdate(e,t,n){e[Vc]=g0(n)},updated(e,{value:t}){e._assigning||bne(e,t)}};function bne(e,t){const n=e.multiple,r=Gn(t);if(!(n&&!r&&!R0(t))){for(let o=0,a=e.options.length;oString(d)===String(l)):s.selected=F_(t,l)>-1}else s.selected=t.has(l);else if(Bh(Ey(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ey(e){return"_value"in e?e._value:e.value}function phe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const b5={created(e,t,n){cx(e,t,n,null,"created")},mounted(e,t,n){cx(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){cx(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){cx(e,t,n,r,"updated")}};function vhe(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 cx(e,t,n,r,o){const s=vhe(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function CIe(){Ql.getSSRProps=({value:e})=>({value:e}),XU.getSSRProps=({value:e},t)=>{if(t.props&&Bh(t.props.value,e))return{checked:!0}},YU.getSSRProps=({value:e},t)=>{if(Gn(e)){if(t.props&&F_(e,t.props.value)>-1)return{checked:!0}}else if(R0(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},b5.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=vhe(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const wIe=["ctrl","shift","alt","meta"],EIe={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)=>wIe.some(n=>e[`${n}Key`]&&!t.includes(n))},ls=(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||TIe[s]===a))return e(o)}))},mhe=ki({patchProp:dIe},YAe);let q4,_ne=!1;function ghe(){return q4||(q4=Rfe(mhe))}function yhe(){return q4=_ne?q4:Mfe(mhe),_ne=!0,q4}const Yc=((...e)=>{ghe().render(...e)}),AIe=((...e)=>{yhe().hydrate(...e)}),Ty=((...e)=>{const t=ghe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=She(r);if(!o)return;const a=t._component;!Ar(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,_he(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),bhe=((...e)=>{const t=yhe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=She(r);if(o)return n(o,!0,_he(o))},t});function _he(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function She(e){return Mr(e)?document.querySelector(e):e}let Sne=!1;const IIe=()=>{Sne||(Sne=!0,CIe(),eIe())},LIe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ffe,BaseTransitionPropsValidators:$U,Comment:Ss,DeprecationTypes:GAe,EffectScope:EU,ErrorCodes:u5e,ErrorTypeStrings:FAe,Fragment:Nt,KeepAlive:R5e,ReactiveEffect:Vb,Static:am,Suspense:SAe,Teleport:Hm,Text:c0,TrackOpTypes:n5e,Transition:xs,TransitionGroup:n3,TriggerOpTypes:r5e,VueElement:y5,assertNumber:l5e,callWithAsyncErrorHandling:qc,callWithErrorHandling:e3,camelize:Oo,capitalize:M0,cloneVNode:wl,compatUtils:WAe,computed:j,createApp:Ty,createBlock:Ye,createCommentVNode:Pe,createElementBlock:ee,createElementVNode:L,createHydrationRenderer:Mfe,createPropsRestProxy:Y5e,createRenderer:Rfe,createSSRApp:bhe,createSlots:Eo,createStaticVNode:xh,createTextVNode:We,createVNode:O,customRef:Jde,defineAsyncComponent:Wm,defineComponent:ke,defineCustomElement:che,defineEmits:F5e,defineExpose:j5e,defineModel:U5e,defineOptions:V5e,defineProps:N5e,defineSSRCustomElement:hIe,defineSlots:z5e,devtools:jAe,effect:ETe,effectScope:TU,getCurrentInstance:yo,getCurrentScope:s5,getCurrentWatcher:i5e,getTransitionRawChildren:p5,guardReactiveProps:Sa,h:da,handleError:Um,hasInjectionContext:Cfe,hydrate:AIe,hydrateOnIdle:E5e,hydrateOnInteraction:L5e,hydrateOnMediaQuery:I5e,hydrateOnVisible:A5e,initCustomFormatter:$Ae,initDirectivesForSSR:IIe,inject:Rn,isMemoSame:ehe,isProxy:d5,isReactive:gf,isReadonly:jh,isRef:$o,isRuntimeOnly:RAe,isShallow:lc,isVNode:Hi,markRaw:f5,mergeDefaults:K5e,mergeModels:q5e,mergeProps:jt,nextTick:Sn,normalizeClass:ue,normalizeProps:qi,normalizeStyle:Ke,onActivated:NU,onBeforeMount:vfe,onBeforeUnmount:Ao,onBeforeUpdate:jU,onDeactivated:FU,onErrorCaptured:bfe,onMounted:mn,onRenderTracked:yfe,onRenderTriggered:gfe,onScopeDispose:AU,onServerPrefetch:mfe,onUnmounted:mi,onUpdated:Qa,onWatcherCleanup:efe,openBlock:z,popScopeId:p5e,provide:ti,proxyRefs:RU,pushScopeId:h5e,queuePostFlushCb:Wb,reactive:qt,readonly:Hb,ref:fe,registerRuntimeCompiler:PAe,render:Yc,renderList:vn,renderSlot:pt,resolveComponent:De,resolveDirective:t3,resolveDynamicComponent:Wa,resolveFilter:HAe,resolveTransitionHooks:xy,setBlockTracking:Xb,setDevtoolsHook:VAe,setTransitionHooks:Vh,shallowReactive:PU,shallowReadonly:GTe,shallowRef:l0,ssrContextKey:Nfe,ssrUtils:UAe,stop:TTe,toDisplayString:Ue,toHandlerKey:rm,toHandlers:$5e,toRaw:Oi,toRef:Lu,toRefs:en,toValue:YTe,transformVNodeArgs:TAe,triggerRef:qTe,unref:et,useAttrs:G5e,useCssModule:mIe,useCssVars:uhe,useHost:dhe,useId:y5e,useModel:hAe,useSSRContext:Ffe,useShadowRoot:vIe,useSlots:W5e,useTemplateRef:b5e,useTransitionState:OU,vModelCheckbox:YU,vModelDynamic:b5,vModelRadio:XU,vModelSelect:ZU,vModelText:Ql,vShow:Jo,version:the,warn:NAe,watch:Rt,watchEffect:Os,watchPostEffect:dAe,watchSyncEffect:jfe,withAsyncContext:X5e,withCtx:de,withDefaults:H5e,withDirectives:Ei,withKeys:Ch,withMemo:BAe,withModifiers:ls,withScopeId:v5e},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const P1=typeof document<"u";function khe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function DIe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&khe(e.default)}const oo=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 Y4=()=>{},Ld=Array.isArray,xhe=/#/g,PIe=/&/g,RIe=/\//g,MIe=/=/g,OIe=/\?/g,Che=/\+/g,$Ie=/%5B/g,BIe=/%5D/g,whe=/%5E/g,NIe=/%60/g,Ehe=/%7B/g,FIe=/%7C/g,The=/%7D/g,jIe=/%20/g;function JU(e){return encodeURI(""+e).replace(FIe,"|").replace($Ie,"[").replace(BIe,"]")}function VIe(e){return JU(e).replace(Ehe,"{").replace(The,"}").replace(whe,"^")}function zj(e){return JU(e).replace(Che,"%2B").replace(jIe,"+").replace(xhe,"%23").replace(PIe,"%26").replace(NIe,"`").replace(Ehe,"{").replace(The,"}").replace(whe,"^")}function zIe(e){return zj(e).replace(MIe,"%3D")}function UIe(e){return JU(e).replace(xhe,"%23").replace(OIe,"%3F")}function HIe(e){return e==null?"":UIe(e).replace(RIe,"%2F")}function Zb(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const WIe=/\/$/,GIe=e=>e.replace(WIe,"");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=XIe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:Zb(s)}}function KIe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kne(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qIe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ay(t.matched[r],n.matched[o])&&Ahe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ay(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ahe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!YIe(e[n],t[n]))return!1;return!0}function YIe(e,t){return Ld(e)?xne(e,t):Ld(t)?xne(t,e):e===t}function xne(e,t){return Ld(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function XIe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const xp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Jb;(function(e){e.pop="pop",e.push="push"})(Jb||(Jb={}));var X4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(X4||(X4={}));function ZIe(e){if(!e)if(P1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),GIe(e)}const JIe=/^[^#]+#/;function QIe(e,t){return e.replace(JIe,"#")+t}function eLe(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 _5=()=>({left:window.scrollX,top:window.scrollY});function tLe(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=eLe(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 Cne(e,t){return(history.state?history.state.position-t:-1)+e}const Uj=new Map;function nLe(e,t){Uj.set(e,t)}function rLe(e){const t=Uj.get(e);return Uj.delete(e),t}let iLe=()=>location.protocol+"//"+location.host;function Ihe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let l=o.includes(e.slice(a))?e.slice(a).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),kne(c,"")}return kne(n,e)+r+o}function oLe(e,t,n,r){let o=[],a=[],s=null;const l=({state:m})=>{const g=Ihe(e,location),y=n.value,S=t.value;let k=0;if(m){if(n.value=g,t.value=m,s&&s===y){s=null;return}k=S?m.position-S.position:0}else r(g);o.forEach(C=>{C(n.value,y,{delta:k,type:Jb.pop,direction:k?k>0?X4.forward:X4.back:X4.unknown})})};function c(){s=n.value}function d(m){o.push(m);const g=()=>{const y=o.indexOf(m);y>-1&&o.splice(y,1)};return a.push(g),g}function h(){const{history:m}=window;m.state&&m.replaceState(oo({},m.state,{scroll:_5()}),"")}function p(){for(const m of a)m();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:d,destroy:p}}function wne(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?_5():null}}function sLe(e){const{history:t,location:n}=window,r={value:Ihe(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,d,h){const p=e.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:iLe()+e+c;try{t[h?"replaceState":"pushState"](d,"",m),o.value=d}catch(g){console.error(g),n[h?"replace":"assign"](m)}}function s(c,d){const h=oo({},t.state,wne(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=oo({},o.value,t.state,{forward:c,scroll:_5()});a(h.current,h,!0);const p=oo({},wne(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 aLe(e){e=ZIe(e);const t=sLe(e),n=oLe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=oo({location:"",base:e,go:r,createHref:QIe.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 lLe(e){return typeof e=="string"||e&&typeof e=="object"}function Lhe(e){return typeof e=="string"||typeof e=="symbol"}const Dhe=Symbol("");var Ene;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ene||(Ene={}));function Iy(e,t){return oo(new Error,{type:e,[Dhe]:!0},t)}function ah(e,t){return e instanceof Error&&Dhe in e&&(t==null||!!(e.type&t))}const Tne="[^/]+?",uLe={sensitive:!1,strict:!1,start:!0,end:!0},cLe=/[.+*?^${}()[\]/\\]/g;function dLe(e,t){const n=oo({},uLe,t),r=[];let o=n.start?"^":"";const a=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(o+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Phe(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const hLe={type:0,value:""},pLe=/[a-zA-Z0-9_]/;function vLe(e){if(!e)return[[]];if(e==="/")return[[hLe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${d}": ${g}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let l=0,c,d="",h="";function p(){d&&(n===0?a.push({type:0,value:d}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;l{s(E)}:Y4}function s(p){if(Lhe(p)){const m=r.get(p);m&&(r.delete(p),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(p);m>-1&&(n.splice(m,1),p.record.name&&r.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function l(){return n}function c(p){const m=_Le(p,n);n.splice(m,0,p),p.record.name&&!Dne(p)&&r.set(p.record.name,p)}function d(p,m){let g,y={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw Iy(1,{location:p});k=g.record.name,y=oo(Ine(m.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Ine(p.params,g.keys.map(E=>E.name))),S=g.stringify(y)}else if(p.path!=null)S=p.path,g=n.find(E=>E.re.test(S)),g&&(y=g.parse(S),k=g.record.name);else{if(g=m.name?r.get(m.name):n.find(E=>E.re.test(m.path)),!g)throw Iy(1,{location:p,currentLocation:m});k=g.record.name,y=oo({},m.params,p.params),S=g.stringify(y)}const C=[];let x=g;for(;x;)C.unshift(x.record),x=x.parent;return{name:k,path:S,params:y,matched:C,meta:bLe(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 Ine(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Lne(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yLe(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 yLe(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 Dne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bLe(e){return e.reduce((t,n)=>oo(t,n.meta),{})}function Pne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function _Le(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Phe(e,t[a])<0?r=a:n=a+1}const o=SLe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function SLe(e){let t=e;for(;t=t.parent;)if(Rhe(t)&&Phe(e,t)===0)return t}function Rhe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function kLe(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 xLe(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 CLe=Symbol(""),Mne=Symbol(""),S5=Symbol(""),QU=Symbol(""),Hj=Symbol("");function W2(){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 Kp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const d=m=>{m===!1?c(Iy(4,{from:n,to:t})):m instanceof Error?c(m):lLe(m)?c(Iy(2,{from:t,to:m})):(s&&r.enterCallbacks[o]===s&&typeof m=="function"&&s.push(m),l())},h=a(()=>e.call(r&&r.instances[o],t,n,d));let p=Promise.resolve(h);e.length<3&&(p=p.then(d)),p.catch(m=>c(m))})}function 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(khe(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Kp(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=DIe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Kp(g,n,r,s,l,o)()}))}}return a}function One(e){const t=Rn(S5),n=Rn(QU),r=j(()=>{const c=et(e.to);return t.resolve(c)}),o=j(()=>{const{matched:c}=r.value,{length:d}=c,h=c[d-1],p=n.matched;if(!h||!p.length)return-1;const m=p.findIndex(Ay.bind(null,h));if(m>-1)return m;const g=$ne(c[d-2]);return d>1&&$ne(h)===g&&p[p.length-1].path!==g?p.findIndex(Ay.bind(null,c[d-2])):m}),a=j(()=>o.value>-1&&ILe(n.params,r.value.params)),s=j(()=>o.value>-1&&o.value===n.matched.length-1&&Ahe(n.params,r.value.params));function l(c={}){if(ALe(c)){const d=t[et(e.replace)?"replace":"push"](et(e.to)).catch(Y4);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function wLe(e){return e.length===1?e[0]:e}const ELe=ke({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:One,setup(e,{slots:t}){const n=qt(One(e)),{options:r}=Rn(S5),o=j(()=>({[Bne(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Bne(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&wLe(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)}}}),TLe=ELe;function ALe(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 ILe(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 $ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bne=(e,t,n)=>e??t??n,LLe=ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Rn(Hj),o=j(()=>e.route||r.value),a=Rn(Mne,0),s=j(()=>{let d=et(a);const{matched:h}=o.value;let p;for(;(p=h[d])&&!p.components;)d++;return d}),l=j(()=>o.value.matched[s.value]);ti(Mne,j(()=>s.value+1)),ti(CLe,l),ti(Hj,o);const c=fe();return Rt(()=>[c.value,l.value,e.name],([d,h,p],[m,g,y])=>{h&&(h.instances[p]=d,g&&g!==h&&d&&d===m&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),d&&h&&(!g||!Ay(h,g)||!m)&&(h.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=o.value,h=e.name,p=l.value,m=p&&p.components[h];if(!m)return Nne(n.default,{Component:m,route:d});const g=p.props[h],y=g?g===!0?d.params:typeof g=="function"?g(d):g:null,k=da(m,oo({},y,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Nne(n.default,{Component:k,route:d})||k}}});function Nne(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const DLe=LLe;function PLe(e){const t=gLe(e.routes,e),n=e.parseQuery||kLe,r=e.stringifyQuery||Rne,o=e.history,a=W2(),s=W2(),l=W2(),c=l0(xp);let d=xp;P1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=gP.bind(null,ve=>""+ve),p=gP.bind(null,HIe),m=gP.bind(null,Zb);function g(ve,be){let Ve,Je;return Lhe(ve)?(Ve=t.getRecordMatcher(ve),Je=be):Je=ve,t.addRoute(Je,Ve)}function y(ve){const be=t.getRecordMatcher(ve);be&&t.removeRoute(be)}function S(){return t.getRoutes().map(ve=>ve.record)}function k(ve){return!!t.getRecordMatcher(ve)}function C(ve,be){if(be=oo({},be||c.value),typeof ve=="string"){const _e=yP(n,ve,be.path),Fe=t.resolve({path:_e.path},be),He=o.createHref(_e.fullPath);return oo(_e,Fe,{params:m(Fe.params),hash:Zb(_e.hash),redirectedFrom:void 0,href:He})}let Ve;if(ve.path!=null)Ve=oo({},ve,{path:yP(n,ve.path,be.path).path});else{const _e=oo({},ve.params);for(const Fe in _e)_e[Fe]==null&&delete _e[Fe];Ve=oo({},ve,{params:p(_e)}),be.params=p(be.params)}const Je=t.resolve(Ve,be),Me=ve.hash||"";Je.params=h(m(Je.params));const je=KIe(r,oo({},ve,{hash:VIe(Me),path:Je.path})),ge=o.createHref(je);return oo({fullPath:je,hash:Me,query:r===Rne?xLe(ve.query):ve.query||{}},Je,{redirectedFrom:void 0,href:ge})}function x(ve){return typeof ve=="string"?yP(n,ve,c.value.path):oo({},ve)}function E(ve,be){if(d!==ve)return Iy(8,{from:be,to:ve})}function _(ve){return P(ve)}function T(ve){return _(oo(x(ve),{replace:!0}))}function D(ve){const be=ve.matched[ve.matched.length-1];if(be&&be.redirect){const{redirect:Ve}=be;let Je=typeof Ve=="function"?Ve(ve):Ve;return typeof Je=="string"&&(Je=Je.includes("?")||Je.includes("#")?Je=x(Je):{path:Je},Je.params={}),oo({query:ve.query,hash:ve.hash,params:Je.path!=null?{}:ve.params},Je)}}function P(ve,be){const Ve=d=C(ve),Je=c.value,Me=ve.state,je=ve.force,ge=ve.replace===!0,_e=D(Ve);if(_e)return P(oo(x(_e),{state:typeof _e=="object"?oo({},Me,_e.state):Me,force:je,replace:ge}),be||Ve);const Fe=Ve;Fe.redirectedFrom=be;let He;return!je&&qIe(r,Je,Ve)&&(He=Iy(16,{to:Fe,from:Je}),Q(Je,Je,!0,!1)),(He?Promise.resolve(He):I(Fe,Je)).catch(Qe=>ah(Qe)?ah(Qe,2)?Qe:q(Qe):X(Qe,Fe,Je)).then(Qe=>{if(Qe){if(ah(Qe,2))return P(oo({replace:ge},x(Qe.to),{state:typeof Qe.to=="object"?oo({},Me,Qe.to.state):Me,force:je}),be||Fe)}else Qe=F(Fe,Je,!0,ge,Me);return N(Fe,Je,Qe),Qe})}function M(ve,be){const Ve=E(ve,be);return Ve?Promise.reject(Ve):Promise.resolve()}function $(ve){const be=re.values().next().value;return be&&typeof be.runWithContext=="function"?be.runWithContext(ve):ve()}function I(ve,be){let Ve;const[Je,Me,je]=RLe(ve,be);Ve=bP(Je.reverse(),"beforeRouteLeave",ve,be);for(const _e of Je)_e.leaveGuards.forEach(Fe=>{Ve.push(Kp(Fe,ve,be))});const ge=M.bind(null,ve,be);return Ve.push(ge),xe(Ve).then(()=>{Ve=[];for(const _e of a.list())Ve.push(Kp(_e,ve,be));return Ve.push(ge),xe(Ve)}).then(()=>{Ve=bP(Me,"beforeRouteUpdate",ve,be);for(const _e of Me)_e.updateGuards.forEach(Fe=>{Ve.push(Kp(Fe,ve,be))});return Ve.push(ge),xe(Ve)}).then(()=>{Ve=[];for(const _e of je)if(_e.beforeEnter)if(Ld(_e.beforeEnter))for(const Fe of _e.beforeEnter)Ve.push(Kp(Fe,ve,be));else Ve.push(Kp(_e.beforeEnter,ve,be));return Ve.push(ge),xe(Ve)}).then(()=>(ve.matched.forEach(_e=>_e.enterCallbacks={}),Ve=bP(je,"beforeRouteEnter",ve,be,$),Ve.push(ge),xe(Ve))).then(()=>{Ve=[];for(const _e of s.list())Ve.push(Kp(_e,ve,be));return Ve.push(ge),xe(Ve)}).catch(_e=>ah(_e,8)?_e:Promise.reject(_e))}function N(ve,be,Ve){l.list().forEach(Je=>$(()=>Je(ve,be,Ve)))}function F(ve,be,Ve,Je,Me){const je=E(ve,be);if(je)return je;const ge=be===xp,_e=P1?history.state:{};Ve&&(Je||ge?o.replace(ve.fullPath,oo({scroll:ge&&_e&&_e.scroll},Me)):o.push(ve.fullPath,Me)),c.value=ve,Q(ve,be,Ve,ge),q()}let W;function U(){W||(W=o.listen((ve,be,Ve)=>{if(!Se.listening)return;const Je=C(ve),Me=D(Je);if(Me){P(oo(Me,{replace:!0,force:!0}),Je).catch(Y4);return}d=Je;const je=c.value;P1&&nLe(Cne(je.fullPath,Ve.delta),_5()),I(Je,je).catch(ge=>ah(ge,12)?ge:ah(ge,2)?(P(oo(x(ge.to),{force:!0}),Je).then(_e=>{ah(_e,20)&&!Ve.delta&&Ve.type===Jb.pop&&o.go(-1,!1)}).catch(Y4),Promise.reject()):(Ve.delta&&o.go(-Ve.delta,!1),X(ge,Je,je))).then(ge=>{ge=ge||F(Je,je,!1),ge&&(Ve.delta&&!ah(ge,8)?o.go(-Ve.delta,!1):Ve.type===Jb.pop&&ah(ge,20)&&o.go(-1,!1)),N(Je,je,ge)}).catch(Y4)}))}let G=W2(),Z=W2(),oe;function X(ve,be,Ve){q(ve);const Je=Z.list();return Je.length?Je.forEach(Me=>Me(ve,be,Ve)):console.error(ve),Promise.reject(ve)}function H(){return oe&&c.value!==xp?Promise.resolve():new Promise((ve,be)=>{G.add([ve,be])})}function q(ve){return oe||(oe=!ve,U(),G.list().forEach(([be,Ve])=>ve?Ve(ve):be()),G.reset()),ve}function Q(ve,be,Ve,Je){const{scrollBehavior:Me}=e;if(!P1||!Me)return Promise.resolve();const je=!Ve&&rLe(Cne(ve.fullPath,0))||(Je||!Ve)&&history.state&&history.state.scroll||null;return Sn().then(()=>Me(ve,be,je)).then(ge=>ge&&tLe(ge)).catch(ge=>X(ge,ve,be))}const ne=ve=>o.go(ve);let ae;const re=new Set,Se={currentRoute:c,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:T,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:Z.add,isReady:H,install(ve){const be=this;ve.component("RouterLink",TLe),ve.component("RouterView",DLe),ve.config.globalProperties.$router=be,Object.defineProperty(ve.config.globalProperties,"$route",{enumerable:!0,get:()=>et(c)}),P1&&!ae&&c.value===xp&&(ae=!0,_(o.location).catch(Me=>{}));const Ve={};for(const Me in xp)Object.defineProperty(Ve,Me,{get:()=>c.value[Me],enumerable:!0});ve.provide(S5,be),ve.provide(QU,PU(Ve)),ve.provide(Hj,c);const Je=ve.unmount;re.add(ve),ve.unmount=function(){re.delete(ve),re.size<1&&(d=xp,W&&W(),W=null,c.value=xp,ae=!1,oe=!1),Je()}}};function xe(ve){return ve.reduce((be,Ve)=>be.then(()=>$(Ve)),Promise.resolve())}return Se}function RLe(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sAy(d,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(d=>Ay(d,c))||o.push(c))}return[n,r,o]}function el(){return Rn(S5)}function k5(e){return Rn(QU)}const Gm=Object.prototype.toString;function nr(e){return Gm.call(e)==="[object Array]"}function Tl(e){return Gm.call(e)==="[object Null]"}function El(e){return Gm.call(e)==="[object Boolean]"}function mr(e){return Gm.call(e)==="[object Object]"}const wm=e=>Gm.call(e)==="[object Promise]";function us(e){return Gm.call(e)==="[object String]"}function Ze(e){return Gm.call(e)==="[object Number]"&&e===e}function En(e){return e===void 0}function Cn(e){return typeof e=="function"}function MLe(e){return mr(e)&&Object.keys(e).length===0}function Fne(e){return e||e===0}function GC(e){return e===window}const Mhe=e=>e?.$!==void 0,OLe=e=>/\[Q]Q/.test(e);function zc(e){return mr(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Ya=Symbol("ArcoConfigProvider"),dx={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:"日"}}},$Le={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:dx,datePicker:{view:dx.view,month:dx.month,week:dx.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"),M8=qt({"zh-CN":$Le}),BLe=(e,t)=>{for(const n of Object.keys(e))(!M8[n]||t?.overwrite)&&(M8[n]=e[n])},NLe=e=>{if(!M8[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}eH.value=e},FLe=()=>eH.value,Bo=()=>{const e=Rn(Ya,void 0),t=j(()=>{var o;return(o=e?.locale)!=null?o:M8[eH.value]}),n=j(()=>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 us(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,d)=>{var h;return(h=a[d])!=null?h:c}):l}}},jLe="A",VLe="arco",Wj="$arco",Kn=e=>{var t;return(t=e?.componentPrefix)!=null?t:jLe},qn=(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=yo(),a=Rn(Ya,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[Wj])==null?void 0:t.classPrefix)!=null?r:VLe;return e?`${s}-${e}`:s};var Ohe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o0},e.prototype.connect_=function(){!Gj||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),KLe?(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=GLe.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),$he=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ly(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new n7e(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 Ly(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 r7e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Nhe=typeof WeakMap<"u"?new WeakMap:new Ohe,Fhe=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=qLe.getInstance(),r=new i7e(t,n,this);Nhe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Fhe.prototype[e]=function(){var t;return(t=Nhe.get(this))[e].apply(t,arguments)}});var C5=(function(){return typeof O8.ResizeObserver<"u"?O8.ResizeObserver:Fhe})();const w5=e=>!!(e&&e.shapeFlag&1),U_=(e,t)=>!!(e&&e.shapeFlag&6),o7e=(e,t)=>!!(e&&e.shapeFlag&8),E5=(e,t)=>!!(e&&e.shapeFlag&16),T5=(e,t)=>!!(e&&e.shapeFlag&32),Q1=e=>{var t,n;if(e)for(const r of e){if(w5(r)||U_(r))return r;if(E5(r,r.children)){const o=Q1(r.children);if(o)return o}else if(T5(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=Q1(o);if(a)return a}}else if(nr(r)){const o=Q1(r);if(o)return o}}},s7e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},jhe=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&jhe(o,t))return!0}return!1},tH=e=>{if(E5(e,e.children))return e.children;if(nr(e))return e},Vhe=e=>{var t,n;if(w5(e))return e.el;if(U_(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Vhe(e.component.subTree);if(r)return r}}else{const r=tH(e);return zhe(r)}},zhe=e=>{if(e&&e.length>0)for(const t of e){const n=Vhe(t);if(n)return n}},yf=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])w5(a)||U_(a)||t&&o7e(a,a.children)?o.push(a):E5(a,a.children)?o.push(...yf(a.children,t)):T5(a,a.children)?o.push(...yf((r=(n=a.children).default)==null?void 0:r.call(n),t)):nr(a)&&o.push(...yf(a,t));return o};function a7e(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Hi(o)&&o.type===Nt?T5(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):E5(o,o.children)?r.push(...t(o.children)):us(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const Hl=e=>{if(e)return Cn(e)?e:()=>e},Uhe=(e,t)=>{var n;const r=[];if(U_(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...Uhe(e.component.subTree,t));else{const o=tH(e);o&&r.push(...Hhe(o,t))}return r},Hhe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...Uhe(r,t));return n};var Dd=ke({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=fe(),a=j(()=>Mhe(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new C5(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)}),mn(()=>{a.value&&s(a.value)}),mi(()=>{l()}),()=>{var c,d;const h=Q1((d=(c=n.default)==null?void 0:c.call(n))!=null?d:[]);return h?wl(h,{ref:o},!0):null}}});const Whe=typeof window>"u"?global:window,Ghe=Whe.requestAnimationFrame,B8=Whe.cancelAnimationFrame;function Em(e){let t=0;const n=(...r)=>{t&&B8(t),t=Ghe(()=>{e(...r),t=0})};return n.cancel=()=>{B8(t),t=0},n}const ey=()=>{},Khe=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,n?.scrollHeight||0,n?.clientHeight||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,n?.scrollWidth||0,n?.clientWidth||0)}},H_=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Pi=H_?ey:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},no=H_?ey:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},l7e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},A5=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},qhe=(e,t)=>{var n;return H_?ey():(n=(t??document).querySelector(e))!=null?n:void 0},af=(e,t)=>{if(us(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return qhe(n,t)}return e},u7e=(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}},c7e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,d7e=e=>e.tagName==="BODY"?window.innerWidth-Khe().width:e.offsetWidth-e.clientWidth;var ze=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function f7e(e){return GC(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const h7e=ke({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}=en(e),a=fe(),s=fe(),l=fe(!1),c=fe({}),d=fe({}),h=j(()=>({[n]:l.value})),p=Em(()=>{if(!a.value||!s.value)return;const{offsetTop:m,offsetBottom:g}=e,y=En(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=f7e(s.value);let C=!1,x={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};y==="top"?(C=S.top-k.top<(m||0),x=C?{position:"fixed",top:`${k.top+(m||0)}px`}:{}):(C=k.bottom-S.bottom<(g||0),x=C?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),C!==l.value&&(l.value=C,t("change",C)),c.value=E,d.value={...x,...C?E:{}}});return mn(()=>{Os(m=>{const g=r&&r.value!==window&&af(r.value)||window;s.value=g,g&&(Pi(g,"scroll",p),Pi(g,"resize",p),m(()=>{no(g,"scroll",p),no(g,"resize",p)}))}),Os(m=>{if(!s.value)return;const g=o&&o.value!==window&&af(o.value)||window;g&&(Pi(g,"scroll",p),Pi(g,"resize",p),m(()=>{no(g,"scroll",p),no(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:d,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),p7e={ref:"wrapperRef"};function v7e(e,t,n,r,o,a){const s=De("ResizeObserver");return z(),Ye(s,{onResize:e.updatePositionThrottle},{default:de(()=>[L("div",p7e,[e.isFixed?(z(),ee("div",{key:0,style:Ke(e.placeholderStyles)},null,4)):Pe("v-if",!0),L("div",{class:ue(e.classNames),style:Ke(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:de(()=>[pt(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var _P=ze(h7e,[["render",v7e]]);const m7e=Object.assign(_P,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+_P.name,_P)}}),g7e=ke({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Ae("icon-hover")}}});function y7e(e,t,n,r,o,a){return z(),ee("span",{class:ue([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[pt(e.$slots,"default")],2)}var Io=ze(g7e,[["render",y7e]]);const b7e=ke({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_7e=["stroke-width","stroke-linecap","stroke-linejoin"];function S7e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1)]),14,_7e)}var SP=ze(b7e,[["render",S7e]]);const cs=Object.assign(SP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SP.name,SP)}}),k7e=ke({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),x7e=["stroke-width","stroke-linecap","stroke-linejoin"];function C7e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1)]),14,x7e)}var kP=ze(k7e,[["render",C7e]]);const r3=Object.assign(kP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kP.name,kP)}}),w7e=ke({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),E7e=["stroke-width","stroke-linecap","stroke-linejoin"];function T7e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,E7e)}var xP=ze(w7e,[["render",T7e]]);const Kh=Object.assign(xP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xP.name,xP)}}),A7e=ke({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),I7e=["stroke-width","stroke-linecap","stroke-linejoin"];function L7e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,I7e)}var CP=ze(A7e,[["render",L7e]]);const If=Object.assign(CP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CP.name,CP)}}),D7e=ke({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),P7e=["stroke-width","stroke-linecap","stroke-linejoin"];function R7e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,P7e)}var wP=ze(D7e,[["render",R7e]]);const Km=Object.assign(wP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wP.name,wP)}}),M7e=ke({name:"Alert",components:{IconHover:Io,IconClose:cs,IconInfoCircleFill:r3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Km},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=j(()=>[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 O7e(e,t,n,r,o,a){const s=De("icon-info-circle-fill"),l=De("icon-check-circle-fill"),c=De("icon-exclamation-circle-fill"),d=De("icon-close-circle-fill"),h=De("icon-close"),p=De("icon-hover");return z(),Ye(xs,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(z(),ee("div",{key:0,role:"alert",class:ue(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Pe("v-if",!0)])],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2)],2),e.$slots.action?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-action`)},[pt(e.$slots,"action")],2)):Pe("v-if",!0),e.closable?(z(),ee("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[pt(e.$slots,"close-element",{},()=>[O(p,null,{default:de(()=>[O(h)]),_:1})])],2)):Pe("v-if",!0)],2)):Pe("v-if",!0)]),_:3},8,["onAfterLeave"])}var EP=ze(M7e,[["render",O7e]]);const Yhe=Object.assign(EP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+EP.name,EP)}});function Vne(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function zne(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(_e){return _e!==s};if(!Vne(e))throw new TypeError("Invalid target");for(var d,h,p=document.scrollingElement||document.documentElement,m=[],g=e;Vne(g)&&c(g);){if((g=(h=(d=g).parentElement)==null?d.getRootNode().host||null:h)===p){m.push(g);break}g!=null&&g===document.body&&TP(g)&&!TP(document.documentElement)||g!=null&&TP(g,l)&&m.push(g)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),E=x.height,_=x.width,T=x.top,D=x.right,P=x.bottom,M=x.left,$=o==="start"||o==="nearest"?T:o==="end"?P:T+E/2,I=a==="center"?M+_/2:a==="end"?D:M,N=[],F=0;F=0&&M>=0&&P<=S&&D<=y&&T>=oe&&P<=H&&M>=q&&D<=X)return N;var Q=getComputedStyle(W),ne=parseInt(Q.borderLeftWidth,10),ae=parseInt(Q.borderTopWidth,10),re=parseInt(Q.borderRightWidth,10),Se=parseInt(Q.borderBottomWidth,10),xe=0,ve=0,be="offsetWidth"in W?W.offsetWidth-W.clientWidth-ne-re:0,Ve="offsetHeight"in W?W.offsetHeight-W.clientHeight-ae-Se:0,Je="offsetWidth"in W?W.offsetWidth===0?0:Z/W.offsetWidth:0,Me="offsetHeight"in W?W.offsetHeight===0?0:G/W.offsetHeight:0;if(p===W)xe=o==="start"?$:o==="end"?$-S:o==="nearest"?fx(C,C+S,S,ae,Se,C+$,C+$+E,E):$-S/2,ve=a==="start"?I:a==="center"?I-y/2:a==="end"?I-y:fx(k,k+y,y,ne,re,k+I,k+I+_,_),xe=Math.max(0,xe+C),ve=Math.max(0,ve+k);else{xe=o==="start"?$-oe-ae:o==="end"?$-H+Se+Ve:o==="nearest"?fx(oe,H,G,ae,Se+Ve,$,$+E,E):$-(oe+G/2)+Ve/2,ve=a==="start"?I-q-ne:a==="center"?I-(q+Z/2)+be/2:a==="end"?I-X+re+be:fx(q,X,Z,ne,re+be,I,I+_,_);var je=W.scrollLeft,ge=W.scrollTop;$+=ge-(xe=Math.max(0,Math.min(ge+xe/Me,W.scrollHeight-G/Me+Ve))),I+=je-(ve=Math.max(0,Math.min(je+ve/Je,W.scrollWidth-Z/Je+be)))}N.push({el:W,top:xe,left:ve})}return N},W_=function(e){return function(t){return Math.pow(t,e)}},G_=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},I5=function(e){return function(t){return t<.5?W_(e)(t*2)/2:G_(e)(t*2-1)/2+.5}},$7e=function(e){return e},B7e=W_(2),N7e=G_(2),F7e=I5(2),j7e=W_(3),V7e=G_(3),z7e=I5(3),U7e=W_(4),H7e=G_(4),W7e=I5(4),G7e=W_(5),K7e=G_(5),q7e=I5(5),Y7e=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},X7e=function(e){return Math.sin(Math.PI/2*e)},Z7e=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)},Xhe=function(e){return 1-nH(1-e)},J7e=function(e){return e<.5?Xhe(e*2)*.5:nH(e*2-1)*.5+.5},Q7e=Object.freeze({linear:$7e,quadIn:B7e,quadOut:N7e,quadInOut:F7e,cubicIn:j7e,cubicOut:V7e,cubicInOut:z7e,quartIn:U7e,quartOut:H7e,quartInOut:W7e,quintIn:G7e,quintOut:K7e,quintInOut:q7e,sineIn:Y7e,sineOut:X7e,sineInOut:Z7e,bounceOut:nH,bounceIn:Xhe,bounceInOut:J7e}),qm=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={}};qm.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])*Q7e[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};qm.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()};qm.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function eDe(e,t,n){new qm({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{Cn(n)&&n()}}).start()}const Zhe=Symbol("ArcoAnchor"),tDe=["start","end","center","nearest"],nDe=ke({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ze(e)||tDe.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=qt({}),s=fe(""),l=fe(!1),c=fe(),d=fe(),h=(T,D)=>{T&&(a[T]=D)},p=T=>{delete a[T]},m=(T,D)=>{e.changeHash||T.preventDefault(),D&&(g(D),S(D)),t("select",D,s.value)},g=T=>{try{const D=af(T);if(!D)return;let P,M=0;Ze(e.boundary)?(P="start",M=e.boundary):P=e.boundary;const $=Kj(D,{block:P});if(!$.length)return;const{el:I,top:N}=$[0],F=N-M;eDe(I,F,()=>{l.value=!1}),l.value=!0}catch(D){console.error(D)}},y=Em(()=>{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=af(`a[data-href='${T}']`,r.value);if(!D)return;a[T]=D}T!==s.value&&(s.value=T,Sn(()=>{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=af(P);if(M){const{top:$}=M.getBoundingClientRect(),I=GC(c.value)?$-T:$-D.top-T;if(I>=0&&I<=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&&Pi(c.value,"scroll",y)},x=()=>{c.value&&no(c.value,"scroll",y)},E=()=>{e.scrollContainer?(c.value=GC(e.scrollContainer)?window:af(e.scrollContainer),d.value=GC(e.scrollContainer)?document.documentElement:af(e.scrollContainer)):(c.value=window,d.value=document.documentElement)};mn(()=>{E();const T=decodeURIComponent(window.location.hash);T?(g(T),S(T)):y(),C()}),Ao(()=>{x()}),ti(Zhe,qt({currentLink:s,addLink:h,removeLink:p,handleClick:m}));const _=j(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function rDe(e,t,n,r,o,a){return z(),ee("div",{ref:"anchorRef",class:ue(e.cls)},[e.lineLess?Pe("v-if",!0):(z(),ee("div",{key:0,ref:"lineSliderRef",class:ue(`${e.prefixCls}-line-slider`)},null,2)),L("ul",{class:ue(`${e.prefixCls}-list`)},[pt(e.$slots,"default")],2)],2)}var AP=ze(nDe,[["render",rDe]]);const iDe=ke({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Ae("anchor"),n=`${t}-link`,r=fe(),o=Rn(Zhe,void 0);mn(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=j(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),oDe=["href"];function sDe(e,t,n,r,o,a){return z(),ee("li",{ref:"linkRef",class:ue(e.cls)},[L("a",{class:ue(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[pt(e.$slots,"default",{},()=>[We(Ue(e.title),1)])],10,oDe),e.$slots.sublist?(z(),ee("ul",{key:0,class:ue(`${e.prefixCls}-sublist`)},[pt(e.$slots,"sublist")],2)):Pe("v-if",!0)],2)}var KC=ze(iDe,[["render",sDe]]);const aDe=Object.assign(AP,{Link:KC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+AP.name,AP),e.component(n+KC.name,KC)}}),L5=["info","success","warning","error"],y0=["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"],lDe=ke({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uDe=["stroke-width","stroke-linecap","stroke-linejoin"];function cDe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,uDe)}var IP=ze(lDe,[["render",cDe]]);const Xa=Object.assign(IP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IP.name,IP)}}),dDe=ke({name:"FeedbackIcon",components:{IconLoading:Xa,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Km},props:{type:{type:String}},setup(e){const t=Ae("feedback-icon");return{cls:j(()=>[t,`${t}-status-${e.type}`])}}});function fDe(e,t,n,r,o,a){const s=De("icon-loading"),l=De("icon-check-circle-fill"),c=De("icon-exclamation-circle-fill"),d=De("icon-close-circle-fill");return z(),ee("span",{class:ue(e.cls)},[e.type==="validating"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Pe("v-if",!0)],2)}var K_=ze(dDe,[["render",fDe]]);const rH={key:"Enter"},Jhe={key:"Backspace",code:"Backspace"},hDe={code:"ArrowLeft"},pDe={code:"ArrowRight"},xa=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function kf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const qj=Symbol("ArcoFormItemContext"),iH=Symbol("ArcoFormContext"),Lo=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:Rn(qj,{}),a=j(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=j(()=>t?.value||o.disabled),l=j(()=>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=Rn(Ya,void 0);return{mergedSize:j(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function Qhe(e){const t=fe();function n(){if(!e.value)return;const{selectionStart:o,selectionEnd:a,value:s}=e.value;if(o==null||a==null)return;const l=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,a));t.value={selectionStart:o,selectionEnd:a,value:s,beforeTxt:l,afterTxt:c}}function r(){if(!e.value||!t.value)return;const{value:o}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:l}=t.value;if(!a||!s||!l)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(a))c=a.length;else{const d=a[l-1],h=o.indexOf(d,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var Z4=ke({name:"Input",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},size:{type:String},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},placeholder:String,maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},wordLength:{type:Function},wordSlice:{type:Function},inputAttrs:{type:Object},type:{type:String,default:"text"},prepend:String,append:String},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,pressEnter:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:o,disabled:a,error:s,modelValue:l}=en(e),c=Ae("input"),d=fe(),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g,eventHandlers:y}=Lo({size:o,disabled:a,error:s}),{mergedSize:S}=wa(h),[k,C]=Qhe(d),x=fe(e.defaultValue),E=j(()=>{var ge;return(ge=e.modelValue)!=null?ge:x.value});let _=E.value;Rt(l,ge=>{(En(ge)||Tl(ge))&&(x.value="")}),Rt(E,(ge,_e)=>{_=_e});const T=fe(!1),D=j(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),P=fe(!1),M=fe(""),$=ge=>{var _e;return Cn(e.wordLength)?e.wordLength(ge):(_e=ge.length)!=null?_e:0},I=j(()=>$(E.value)),N=j(()=>m.value||!!(mr(e.maxLength)&&e.maxLength.errorOnly&&I.value>W.value)),F=j(()=>mr(e.maxLength)&&!!e.maxLength.errorOnly),W=j(()=>mr(e.maxLength)?e.maxLength.length:e.maxLength),U=j(()=>{const ge=$("a");return Math.floor(W.value/ge)}),G=ge=>{var _e,Fe;W.value&&!F.value&&$(ge)>W.value&&(ge=(Fe=(_e=e.wordSlice)==null?void 0:_e.call(e,ge,W.value))!=null?Fe:ge.slice(0,U.value)),x.value=ge,t("update:modelValue",ge)},Z=ge=>{d.value&&ge.target!==d.value&&(ge.preventDefault(),d.value.focus())},oe=(ge,_e)=>{var Fe,He;ge!==_&&(_=ge,t("change",ge,_e),(He=(Fe=y.value)==null?void 0:Fe.onChange)==null||He.call(Fe,_e))},X=ge=>{var _e,Fe;T.value=!0,t("focus",ge),(Fe=(_e=y.value)==null?void 0:_e.onFocus)==null||Fe.call(_e,ge)},H=ge=>{var _e,Fe;T.value=!1,oe(E.value,ge),t("blur",ge),(Fe=(_e=y.value)==null?void 0:_e.onBlur)==null||Fe.call(_e,ge)},q=ge=>{var _e,Fe,He;const{value:Qe,selectionStart:rt,selectionEnd:ft}=ge.target;if(ge.type==="compositionend"){if(P.value=!1,M.value="",W.value&&!F.value&&I.value>=W.value&&$(Qe)>W.value&&rt===ft){Q();return}G(Qe),t("input",Qe,ge),(Fe=(_e=y.value)==null?void 0:_e.onInput)==null||Fe.call(_e,ge),Q()}else P.value=!0,M.value=E.value+((He=ge.data)!=null?He:"")},Q=()=>{k(),Sn(()=>{d.value&&E.value!==d.value.value&&(d.value.value=E.value,C())})},ne=ge=>{var _e,Fe;const{value:He}=ge.target;if(!P.value){if(W.value&&!F.value&&I.value>=W.value&&$(He)>W.value&&ge.inputType==="insertText"){Q();return}G(He),t("input",He,ge),(Fe=(_e=y.value)==null?void 0:_e.onInput)==null||Fe.call(_e,ge),Q()}},ae=ge=>{G(""),oe("",ge),t("clear",ge)},re=ge=>{const _e=ge.key||ge.code;!P.value&&_e===rH.key&&(oe(E.value,ge),t("pressEnter",ge))},Se=j(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),xe=j(()=>[`${c}-wrapper`,{[`${c}-error`]:N.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:T.value}]),ve=j(()=>[c,`${c}-size-${S.value}`]),be=j(()=>xa(r,y0)),Ve=j(()=>kf(r,y0)),Je=j(()=>{const ge={...Ve.value,...e.inputAttrs};return N.value&&(ge["aria-invalid"]=!0),ge}),Me=ge=>{var _e;return O("span",jt({class:xe.value,onMousedown:Z},ge?void 0:be.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",jt({ref:d,class:ve.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ne,onKeydown:re,onFocus:X,onBlur:H,onCompositionstart:q,onCompositionupdate:q,onCompositionend:q},Je.value),null),D.value&&O(Io,{prefix:c,class:`${c}-clear-btn`,onClick:ae},{default:()=>[O(cs,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&O("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&O("span",{class:`${c}-word-limit`},[I.value,We("/"),W.value]),(_e=n.suffix)==null?void 0:_e.call(n),!!g.value&&O(K_,{type:g.value},null)])])};return{inputRef:d,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",jt({class:Se.value},be.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Me(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Me()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const vDe=ke({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mDe=["stroke-width","stroke-linecap","stroke-linejoin"];function gDe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)]),14,mDe)}var LP=ze(vDe,[["render",gDe]]);const Tm=Object.assign(LP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LP.name,LP)}}),epe=Symbol("ArcoButtonGroup"),yDe=ke({name:"Button",components:{IconLoading:Xa},props:{type:{type:String},shape:{type:String},status:{type:String},size:{type:String},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean},htmlType:{type:String,default:"button"},autofocus:{type:Boolean,default:!1},href:String},emits:{click:e=>!0},setup(e,{emit:t}){const{size:n,disabled:r}=en(e),o=Ae("btn"),a=Rn(epe,void 0),s=j(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=j(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:d}=Lo({size:s,disabled:l}),{mergedSize:h}=wa(c),p=j(()=>{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`]:us(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:d,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),bDe=["href"],_De=["type","disabled","autofocus"];function SDe(e,t,n,r,o,a){const s=De("icon-loading");return e.href?(z(),ee("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(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),Ye(s,{key:0,spin:"true"})):pt(e.$slots,"icon",{key:1})],2)):Pe("v-if",!0),pt(e.$slots,"default")],10,bDe)):(z(),ee("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(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),Ye(s,{key:0,spin:!0})):pt(e.$slots,"icon",{key:1})],2)):Pe("v-if",!0),pt(e.$slots,"default")],10,_De))}var DP=ze(yDe,[["render",SDe]]);const kDe=ke({name:"ButtonGroup",props:{type:{type:String},status:{type:String},shape:{type:String},size:{type:String},disabled:{type:Boolean}},setup(e){const{type:t,size:n,status:r,disabled:o,shape:a}=en(e),s=Ae("btn-group");return ti(epe,qt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function xDe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.prefixCls)},[pt(e.$slots,"default")],2)}var J4=ze(kDe,[["render",xDe]]);const Yo=Object.assign(DP,{Group:J4,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+DP.name,DP),e.component(n+J4.name,J4)}});var qC=ke({name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},buttonText:{type:String},buttonProps:{type:Object}},emits:{search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r}=en(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 O(Nt,null,[e.loading?O(Xa,null,null):O(Io,{onClick:l},{default:()=>[O(Tm,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},d=()=>{var p;let m={};return e.buttonText||n["button-default"]||n["button-icon"]?m={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:m={icon:()=>O(Tm,null,null)},O(Yo,jt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),m)};return{inputRef:s,render:()=>O(Z4,{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 CDe=ke({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wDe=["stroke-width","stroke-linecap","stroke-linejoin"];function EDe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),L("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,wDe)}var PP=ze(CDe,[["render",EDe]]);const b0=Object.assign(PP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PP.name,PP)}}),TDe=ke({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ADe=["stroke-width","stroke-linecap","stroke-linejoin"];function IDe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),L("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)]),14,ADe)}var RP=ze(TDe,[["render",IDe]]);const tpe=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}=en(t),[r,o]=Ga(En(n.value)?e:n.value);return Rt(n,s=>{En(s)&&o(void 0)}),[j(()=>En(n.value)?r.value:n.value),o,r]}const LDe=ke({name:"InputPassword",components:{IconEye:b0,IconEyeInvisible:tpe,AIconHover:Io,AInput:Z4},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}=en(e),o=fe(),a=()=>{c(!s.value)},[s,l]=fa(r.value,qt({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 DDe(e,t,n,r,o,a){const s=De("icon-eye"),l=De("icon-eye-invisible"),c=De("a-icon-hover"),d=De("a-input");return z(),Ye(d,{ref:"inputRef",type:e.mergedVisible?"password":"text"},Eo({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[pt(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[pt(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(z(),Ye(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=ls(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=ls(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(z(),Ye(l,{key:1})):(z(),Ye(s,{key:0}))]),_:1},8,["onClick"])):Pe("v-if",!0),pt(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[pt(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var YC=ze(LDe,[["render",DDe]]);const PDe=ke({name:"InputGroup",setup(){return{prefixCls:Ae("input-group")}}});function RDe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.prefixCls)},[pt(e.$slots,"default")],2)}var ty=ze(PDe,[["render",RDe]]);const O0=Object.assign(Z4,{Search:qC,Password:YC,Group:ty,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+Z4.name,Z4),e.component(n+ty.name,ty),e.component(n+qC.name,qC),e.component(n+YC.name,YC)}}),MDe=()=>{const{height:e,width:t}=Khe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},Une=(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}},ODe=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"}},hx=(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}},$De=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=ODe(e),c=MDe(),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=w4("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=hx(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=w4("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=hx(e,"top"),t.top=p.top)}if(l==="left"&&d.left<0)if(r.left>o.width)t.left=-n.left;else{const p=w4("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=hx(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=w4("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=hx(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}},w4=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=nr(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}}},BDe=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}`},NDe=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,d=w4(e,n,r,{offset:o,translate:a});if(l){const p=$De(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}},FDe=(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}},jDe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Hne=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)jDe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},npe=()=>{const e={},t=fe(),n=()=>{const r=zhe(e.value);r!==t.value&&(t.value=r)};return mn(()=>n()),Qa(()=>n()),{children:e,firstElement:t}};var _0=ke({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=npe();let a;const s=c=>{c&&(a=new C5(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)}),Ao(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function kd(e,t){const n=fe(e[t]);return Qa(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const Wne=Symbol("ArcoTrigger"),VDe=1e3,zDe=5e3,UDe=1;class HDe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||zDe:Array.from(this.popupStack.popup).pop()||VDe)+UDe,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 HDe;function i3(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&&(mn(()=>{o()}),Ao(()=>{a()})),{zIndex:Hb(r),open:o,close:a,isLastDialog:s}}const WDe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new C5(a=>{const s=a[0];Cn(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var oH=ke({name:"ClientOnly",setup(e,{slots:t}){const n=fe(!1);return mn(()=>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=af(e.value),c=l?e.value:n,d=l??(r?document.documentElement:af(n));c!==o.value&&(o.value=c),d!==a.value&&(a.value=d)};return mn(()=>s()),Rt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},GDe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var OP=ke({name:"Trigger",inheritAttrs:!1,props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:0},popupTranslate:{type:[Array,Object]},showArrow:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},popupHoverStay:{type:Boolean,default:!0},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupStyle:{type:Object},animationName:{type:String,default:"fade-in"},duration:{type:[Number,Object]},mouseEnterDelay:{type:Number,default:100},mouseLeaveDelay:{type:Number,default:100},focusDelay:{type:Number,default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},autoFixPosition:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},updateAtScroll:{type:Boolean,default:!1},autoFitTransformOrigin:{type:Boolean,default:!1},hideEmpty:{type:Boolean,default:!1},openedClass:{type:[String,Array,Object]},autoFitPosition:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},scrollToCloseDistance:{type:Number,default:0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,show:()=>!0,hide:()=>!0,resize:()=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{popupContainer:o}=en(e),a=Ae("trigger"),s=j(()=>xa(r,GDe)),l=Rn(Ya,void 0),c=j(()=>[].concat(e.trigger)),d=new Set,h=Rn(Wne,void 0),{children:p,firstElement:m}=npe(),g=fe(),y=fe(e.defaultPopupVisible),S=fe(e.position),k=fe({}),C=fe({}),x=fe({}),E=fe(),_=fe({top:0,left:0});let T=null,D=null;const P=j(()=>{var Ne;return(Ne=e.popupVisible)!=null?Ne:y.value}),{teleportContainer:M,containerRef:$}=sH({popupContainer:o,visible:P,documentContainer:!0}),{zIndex:I}=i3("popup",{visible:P});let N=0,F=!1,W=!1;const U=()=>{N&&(window.clearTimeout(N),N=0)},G=Ne=>{if(e.alignPoint){const{pageX:Ie,pageY:Oe}=Ne;_.value={top:Oe,left:Ie}}},Z=()=>{if(!m.value||!g.value||!$.value)return;const Ne=$.value.getBoundingClientRect(),Ie=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}:Une(m.value,Ne),Oe=()=>Une(g.value,Ne),Xe=Oe(),{style:ct,position:Lt}=NDe(e.position,Ne,Ie,Xe,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:BDe(Lt)}),e.autoFitPopupMinWidth?ct.minWidth=`${Ie.width}px`:e.autoFitPopupWidth&&(ct.width=`${Ie.width}px`),S.value!==Lt&&(S.value=Lt),k.value=ct,e.showArrow&&Sn(()=>{x.value=FDe(Lt,Ie,Oe(),{customStyle:e.arrowStyle})})},oe=(Ne,Ie)=>{if(Ne===P.value&&N===0)return;const Oe=()=>{y.value=Ne,t("update:popupVisible",Ne),t("popupVisibleChange",Ne),Ne&&Sn(()=>{Z()})};Ne||(T=null,D=null),Ie?(U(),Ne!==P.value&&(N=window.setTimeout(Oe,Ie))):Oe()},X=Ne=>{var Ie;(Ie=r.onClick)==null||Ie.call(r,Ne),!(e.disabled||P.value&&!e.clickToClose)&&(c.value.includes("click")?(G(Ne),oe(!P.value)):c.value.includes("contextMenu")&&P.value&&oe(!1))},H=Ne=>{var Ie;(Ie=r.onMouseenter)==null||Ie.call(r,Ne),!(e.disabled||!c.value.includes("hover"))&&(G(Ne),oe(!0,e.mouseEnterDelay))},q=Ne=>{h?.onMouseenter(Ne),H(Ne)},Q=Ne=>{var Ie;(Ie=r.onMouseleave)==null||Ie.call(r,Ne),!(e.disabled||!c.value.includes("hover"))&&oe(!1,e.mouseLeaveDelay)},ne=Ne=>{h?.onMouseleave(Ne),Q(Ne)},ae=Ne=>{var Ie;(Ie=r.onFocusin)==null||Ie.call(r,Ne),!(e.disabled||!c.value.includes("focus"))&&oe(!0,e.focusDelay)},re=Ne=>{var Ie;(Ie=r.onFocusout)==null||Ie.call(r,Ne),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&oe(!1)},Se=Ne=>{var Ie;(Ie=r.onContextmenu)==null||Ie.call(r,Ne),!(e.disabled||!c.value.includes("contextMenu")||P.value&&!e.clickToClose)&&(G(Ne),oe(!P.value),Ne.preventDefault())};ti(Wne,qt({onMouseenter:q,onMouseleave:ne,addChildRef:Ne=>{d.add(Ne),h?.addChildRef(Ne)},removeChildRef:Ne=>{d.delete(Ne),h?.removeChildRef(Ne)}}));const be=()=>{no(document.documentElement,"mousedown",Me),F=!1},Ve=kd(n,"content"),Je=j(()=>{var Ne;return e.hideEmpty&&s7e((Ne=Ve.value)==null?void 0:Ne.call(Ve))}),Me=Ne=>{var Ie,Oe,Xe;if(!((Ie=m.value)!=null&&Ie.contains(Ne.target)||(Oe=g.value)!=null&&Oe.contains(Ne.target))){for(const ct of d)if((Xe=ct.value)!=null&&Xe.contains(Ne.target))return;be(),oe(!1)}},je=(Ne,Ie)=>{const[Oe,Xe]=Ne,{scrollTop:ct,scrollLeft:Lt}=Ie;return Math.abs(ct-Oe)>=e.scrollToCloseDistance||Math.abs(Lt-Xe)>=e.scrollToCloseDistance},ge=Em(Ne=>{if(P.value)if(e.scrollToClose||l?.scrollToClose){const Ie=Ne.target;T||(T=[Ie.scrollTop,Ie.scrollLeft]),je(T,Ie)?oe(!1):Z()}else Z()}),_e=()=>{no(window,"scroll",Fe),W=!1},Fe=Em(Ne=>{const Ie=Ne.target.documentElement;D||(D=[Ie.scrollTop,Ie.scrollLeft]),je(D,Ie)&&(oe(!1),_e())}),He=()=>{P.value&&Z()},Qe=()=>{He(),t("resize")},rt=Ne=>{e.preventFocus&&Ne.preventDefault()};h?.addChildRef(g);const ft=j(()=>P.value?e.openedClass:void 0);let lt;Rt(P,Ne=>{if(e.clickOutsideToClose&&(!Ne&&F?be():Ne&&!F&&(Pi(document.documentElement,"mousedown",Me),F=!0)),(e.scrollToClose||l?.scrollToClose)&&(Pi(window,"scroll",Fe),W=!0),e.updateAtScroll||l?.updateAtScroll){if(Ne){lt=Hne(m.value);for(const Ie of lt)Ie.addEventListener("scroll",ge)}else if(lt){for(const Ie of lt)Ie.removeEventListener("scroll",ge);lt=void 0}}Ne&&(Wt.value=!0)}),Rt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{P.value&&Z()});const{createResizeObserver:Ct,destroyResizeObserver:St}=WDe({elementRef:$,onResize:He});mn(()=>{if(Ct(),P.value&&(Z(),e.clickOutsideToClose&&!F&&(Pi(document.documentElement,"mousedown",Me),F=!0),e.updateAtScroll||l?.updateAtScroll)){lt=Hne(m.value);for(const Ne of lt)Ne.addEventListener("scroll",ge)}}),Qa(()=>{P.value&&Z()}),FU(()=>{oe(!1)}),Ao(()=>{if(h?.removeChildRef(g),St(),F&&be(),W&&_e(),lt){for(const Ne of lt)Ne.removeEventListener("scroll",ge);lt=void 0}});const Wt=fe(P.value),Tt=fe(!1),Mt=()=>{Tt.value=!0},nn=()=>{Tt.value=!1,P.value&&t("show")},ut=()=>{Tt.value=!1,P.value||(Wt.value=!1,t("hide"))};return()=>{var Ne,Ie;return p.value=(Ie=(Ne=n.default)==null?void 0:Ne.call(n))!=null?Ie:[],jhe(p.value,{class:ft.value,onClick:X,onMouseenter:H,onMouseleave:Q,onFocusin:ae,onFocusout:re,onContextmenu:Se}),O(Nt,null,[e.autoFixPosition?O(_0,{onResize:Qe},{default:()=>[p.value]}):p.value,O(oH,null,{default:()=>[O(Hm,{to:M.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||P.value||Wt.value)&&!Je.value&&O(_0,{onResize:He},{default:()=>[O("div",jt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:I.value,pointerEvents:Tt.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:q,onMouseleave:ne,onMousedown:rt},s.value),[O(xs,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Mt,onAfterEnter:nn,onBeforeLeave:Mt,onAfterLeave:ut},{default:()=>{var Oe;return[Ei(O("div",{class:`${a}-popup-wrapper`,style:C.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Oe=n.content)==null?void 0:Oe.call(n)]),e.showArrow&&O("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[Jo,P.value]])]}})])]})]})]})])}}});const ha=Object.assign(OP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+OP.name,OP)}}),KDe=ke({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qDe=["stroke-width","stroke-linecap","stroke-linejoin"];function YDe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1)]),14,qDe)}var $P=ze(KDe,[["render",YDe]]);const aH=Object.assign($P,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$P.name,$P)}});var XC=ke({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}=Bo(),a=Rn(Ya,void 0);return()=>{var s,l,c,d;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):O("div",jt({class:r},n),[O("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?O("img",{src:e.imgSrc,alt:e.description||"empty"},null):O(aH,null,null)]),O("div",{class:`${r}-description`},[(d=(c=t.default)==null?void 0:c.call(t))!=null?d:e.description||o("empty.description")])])}}});const qh=Object.assign(XC,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+XC.name,XC)}}),XDe=5;var ZDe=ke({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 O("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(XDe).fill(1).map((r,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),BP=ke({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=Rn(Ya,void 0),o=j(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=Q1(t.icon());if(l)return wl(l,{spin:!0})}return t.element?t.element():e.dot?O(ZDe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(Xa,{spin:!0,size:e.size},null)},s=()=>{var l,c,d;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return O(Nt,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:h},[a()]),p&&O("div",{class:`${n}-tip`},[(d=(c=t.tip)==null?void 0:c.call(t))!=null?d:e.tip])])};return()=>O("div",{class:o.value},[t.default?O(Nt,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Pd=Object.assign(BP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+BP.name,BP)}}),JDe=ke({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=Ae("scrollbar"),r=fe(!1),o=fe(),a=fe(),s=j(()=>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=j(()=>{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,Pi(window,"mousemove",y),Pi(window,"mouseup",S),Pi(window,"contextmenu",S))},m=x=>{var E,_,T,D;if(x.preventDefault(),a.value){const P=g(x[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(E=e.data)==null?void 0:E.thumbSize)!=null?_:0):l.value-((D=(T=e.data)==null?void 0:T.thumbSize)!=null?D:0));P!==l.value&&(l.value=P,t("scroll",P))}},g=x=>x<0?0:e.data&&x>e.data.max?e.data.max:x,y=x=>{if(o.value&&a.value){const E=g(x[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-d.value);E!==l.value&&(l.value=E,t("scroll",E))}},S=()=>{c.value=!1,no(window,"mousemove",y),no(window,"mouseup",S)},k=x=>{c.value||(x=g(x),x!==l.value&&(l.value=x))},C=j(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:o,thumbRef:a,prefixCls:n,thumbCls:C,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:m,setOffset:k}}});function QDe(e,t,n,r,o,a){return z(),Ye(xs,null,{default:de(()=>[L("div",{ref:"trackRef",class:ue([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=ls((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[L("div",{ref:"thumbRef",class:ue(e.thumbCls),style:Ke(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[L("div",{class:ue(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var ePe=ze(JDe,[["render",QDe]]);const Gne=20,px=15,tPe=ke({name:"Scrollbar",components:{ResizeObserver:_0,Thumb:ePe},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=j(()=>c.value&&!e.disableHorizontal),p=j(()=>d.value&&!e.disableVertical),m=fe(!1),g=()=>{var _,T,D,P,M,$;if(r.value){const{clientWidth:I,clientHeight:N,offsetWidth:F,offsetHeight:W,scrollWidth:U,scrollHeight:G,scrollTop:Z,scrollLeft:oe}=r.value;c.value=U>I,d.value=G>N,m.value=h.value&&p.value;const X=e.type==="embed"&&m.value?F-px:F,H=e.type==="embed"&&m.value?W-px:W,q=Math.round(X/Math.min(U/I,X/Gne)),Q=X-q,ne=(U-I)/Q,ae=Math.round(H/Math.min(G/N,H/Gne)),re=H-ae,Se=(G-N)/re;if(o.value={ratio:ne,thumbSize:q,max:Q},a.value={ratio:Se,thumbSize:ae,max:re},Z>0){const xe=Math.round(Z/((T=(_=a.value)==null?void 0:_.ratio)!=null?T:1));(D=l.value)==null||D.setOffset(xe)}if(oe>0){const xe=Math.round(oe/((M=(P=a.value)==null?void 0:P.ratio)!=null?M:1));($=s.value)==null||$.setOffset(xe)}}};mn(()=>{g()});const y=()=>{g()},S=_=>{var T,D,P,M,$,I;if(r.value){if(h.value&&!e.disableHorizontal){const N=Math.round(r.value.scrollLeft/((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1));(P=s.value)==null||P.setOffset(N)}if(p.value&&!e.disableVertical){const N=Math.round(r.value.scrollTop/(($=(M=a.value)==null?void 0:M.ratio)!=null?$:1));(I=l.value)==null||I.setOffset(N)}}t("scroll",_)},k=_=>{var T,D;r.value&&r.value.scrollTo({left:_*((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1)})},C=_=>{var T,D;r.value&&r.value.scrollTo({top:_*((D=(T=a.value)==null?void 0:T.ratio)!=null?D:1)})},x=j(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${px}px`),p.value&&(_.paddingRight=`${px}px`)),[_,e.outerStyle]}),E=j(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:m.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:m,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:y,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;mr(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((r=this.$refs.containerRef)==null||r.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function nPe(e,t,n,r,o,a){const s=De("ResizeObserver"),l=De("thumb");return z(),ee("div",{class:ue(e.cls),style:Ke(e.style)},[O(s,{onResize:e.handleResize},{default:de(()=>[L("div",jt({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[O(s,{onResize:e.handleResize},{default:de(()=>[pt(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(z(),Ye(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Pe("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(z(),Ye(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Pe("v-if",!0)],6)}var NP=ze(tPe,[["render",nPe]]);const Rd=Object.assign(NP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+NP.name,NP)}}),F1=e=>{const t=fe(),n=()=>Mhe(t.value)?t.value.$refs[e]:t.value,r=fe();return mn(()=>{r.value=n()}),Rt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},D5=e=>{const t=j(()=>!!e.value),n=j(()=>{if(e.value)return{type:"embed",...El(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},rPe=ke({name:"SelectDropdown",components:{ScrollbarComponent:Rd,Empty:qh,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}=en(e),l=Ae("select-dropdown"),c=Rn(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}=F1("containerRef"),{displayScrollbar:m,scrollbarProps:g}=D5(s),y=k=>{const{scrollTop:C,scrollHeight:x,offsetHeight:E}=k.target;x-(C+E)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=j(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:d,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:y,displayScrollbar:m,scrollbarProps:g}}});function iPe(e,t,n,r,o,a){const s=De("spin");return z(),ee("div",{class:ue(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-header`)},[pt(e.$slots,"header")],2)):Pe("v-if",!0),e.loading?(z(),Ye(s,{key:1,class:ue(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-empty`)},[pt(e.$slots,"empty",{},()=>[(z(),Ye(Wa(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Pe("v-if",!0),e.virtualList&&!e.loading&&!e.empty?pt(e.$slots,"virtual-list",{key:3}):Pe("v-if",!0),e.virtualList?Pe("v-if",!0):Ei((z(),Ye(Wa(e.displayScrollbar?"ScrollbarComponent":"div"),jt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[L("ul",{class:ue(`${e.prefixCls}-list`)},[pt(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Jo,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(z(),ee("div",{key:5,class:ue(`${e.prefixCls}-footer`)},[pt(e.$slots,"footer")],2)):Pe("v-if",!0)],2)}var lH=ze(rPe,[["render",iPe]]),Kne=ke({name:"IconCheck",render(){return O("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[O("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"},null)])}});const rpe=Symbol("ArcoCheckboxGroup");var ZC=ke({name:"Checkbox",components:{IconCheck:Kne,IconHover:Io},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}=en(e),a=Ae("checkbox"),s=fe(),l=e.uninjectGroupContext?void 0:Rn(rpe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:d,eventHandlers:h}=Lo({disabled:r}),p=fe(e.defaultChecked),m=j(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=j(()=>{var _;return nr(m.value)?m.value.includes((_=e.value)!=null?_:!0):m.value}),y=j(()=>l?.disabled||d?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var T,D,P,M;const{checked:$}=_.target;let I=$;if(nr(m.value)){const N=new Set(m.value);$?N.add((T=e.value)!=null?T:!0):N.delete((D=e.value)!=null?D:!0),I=Array.from(N)}p.value=$,c&&nr(I)?l?.handleChange(I,_):(t("update:modelValue",I),t("change",I,_),(M=(P=h.value)==null?void 0:P.onChange)==null||M.call(P,_)),Sn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=j(()=>[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,_=>{(En(_)||Tl(_))&&(p.value=!1)}),Rt(m,_=>{var T;let D;nr(_)?D=_.includes((T=e.value)!=null?T:!0):D=_,p.value!==D&&(p.value=D),s.value&&s.value.checked!==D&&(s.value.checked=D)}),()=>{var _,T,D,P;return O("label",{"aria-disabled":y.value,class:C.value},[O("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:y.value,onClick:S,onChange:k,onFocus:x,onBlur:E},null),(P=(D=(T=n.checkbox)!=null?T:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:D({checked:g.value,disabled:y.value}))!=null?P:O(Io,{class:`${a}-icon-hover`,disabled:y.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(Kne,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),JC=ke({name:"CheckboxGroup",props:{modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},max:{type:Number},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r}=en(e),o=Ae("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=Lo({disabled:r}),l=fe(e.defaultValue),c=j(()=>nr(e.modelValue)?e.modelValue:l.value),d=j(()=>e.max===void 0?!1:c.value.length>=e.max),h=j(()=>{var y;return((y=e.options)!=null?y:[]).map(S=>us(S)||Ze(S)?{label:S,value:S}:S)});ti(rpe,qt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:d,slots:n,handleChange:(y,S)=>{var k,C;l.value=y,t("update:modelValue",y),t("change",y,S),(C=(k=s.value)==null?void 0:k.onChange)==null||C.call(k,S)}}));const m=j(()=>[o,`${o}-direction-${e.direction}`]);Rt(()=>e.modelValue,y=>{nr(y)?l.value=[...y]:l.value=[]});const g=()=>h.value.map(y=>{const S=c.value.includes(y.value);return O(ZC,{key:y.value,value:y.value,disabled:y.disabled||!S&&d.value,indeterminate:y.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:y}):Cn(y.label)?y.label():y.label]})});return()=>{var y;return O("span",{class:m.value},[h.value.length>0?g():(y=n.default)==null?void 0:y.call(n)])}}});const Id=Object.assign(ZC,{Group:JC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ZC.name,ZC),e.component(n+JC.name,JC)}}),ipe=Symbol("ArcoSelectContext"),oPe=e=>mr(e)&&"isGroup"in e,ope=e=>mr(e)&&"isGroup"in e,sPe=(e,t="value")=>String(mr(e)?e[t]:e),Am=(e,t="value")=>mr(e)?`__arco__option__object__${e[t]}`:e||Ze(e)||us(e)||El(e)?`__arco__option__${typeof e}-${e}`:"",aPe=e=>e.has("__arco__option__string-"),lPe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(mr(e)){const l=e[n.value];return{raw:e,index:o,key:Am(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:sPe(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:Am(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(oPe(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=lPe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},qne=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(ope(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else P5(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},P5=(e,{inputValue:t,filterOption:n})=>Cn(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,uPe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!o3(e[n],t[n]))return!1;return!0},cPe=(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]"?uPe(e,t):n==="[object Array]"?cPe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},dPe=ke({name:"Option",components:{Checkbox:Id},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}=en(e),o=Ae("select-option"),a=Rn(ipe,void 0),s=yo(),l=fe(),c=fe(n.value);Rt(n,(D,P)=>{o3(D,P)||(c.value=D)});const d=fe(""),h=j(()=>{var D,P;return(P=(D=e.value)!=null?D:e.label)!=null?P:d.value}),p=j(()=>{var D;return(D=e.label)!=null?D:d.value}),m=j(()=>Am(h.value,a?.valueKey)),g=j(()=>{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)}};mn(()=>y()),Qa(()=>y());const S=j(()=>{var D;return(D=a?.valueKeys.includes(m.value))!=null?D:!1}),k=j(()=>a?.activeKey===m.value);let C=fe(!0);if(!e.internal){const D=qt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:m,origin:"slot",value:h,label:p,disabled:t,tagProps:c});C=j(()=>P5(D,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,D),Ao(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=D=>{e.disabled||a?.onSelect(m.value,D)},E=()=>{e.disabled||a?.setActiveKey(m.value)},_=()=>{e.disabled||a?.setActiveKey()},T=j(()=>[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 fPe(e,t,n,r,o,a){const s=De("checkbox");return Ei((z(),Ye(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(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon")],2)):Pe("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(z(),Ye(s,{key:1,class:ue(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[pt(e.$slots,"default",{},()=>[We(Ue(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(z(),ee("span",{key:2,class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default",{},()=>[We(Ue(e.label),1)])],2)),e.$slots.suffix?(z(),ee("span",{key:3,class:ue(`${e.prefixCls}-suffix`)},[pt(e.$slots,"suffix")],2)):Pe("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Jo,e.isValid]])}var lm=ze(dPe,[["render",fPe]]);const hPe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},pPe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=j(()=>({...hPe,...s?.value})),c=qt(new Map),d=j(()=>Array.from(c.values()).sort((E,_)=>Ze(E.index)&&Ze(_.index)?E.index-_.index:0)),h=j(()=>{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=j(()=>{var E,_;const T=new Map;return{optionInfos:Yj((E=t?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:T}),optionInfoMap:T}}),m=qt(new Map);Rt([d,e??fe([]),t??fe([]),a??fe("value")],()=>{m.clear(),d.value.forEach((E,_)=>{m.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))})},{immediate:!0,deep:!0});const g=j(()=>{var E;const _=qne(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=o?.value)==null||E)&&_.push(...qne(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),y=j(()=>Array.from(m.values()).filter(E=>E.origin==="extraOptions"&&o?.value===!1?!1:P5(E,{inputValue:n?.value,filterOption:r?.value}))),S=j(()=>y.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:m,validOptionInfos:y,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},Uo={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Yne=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),R5=e=>{const t={};return e.forEach((n,r)=>{const o=us(r)?{key:r}:r;t[Yne(o)]=n}),n=>{const r=Yne({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:m,optionRefs:g,virtualListRef:y,onSelect:S,onPopupVisibleChange:k,enterToOpen:C=!0,defaultActiveFirstOption:x})=>{const{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$}=pPe({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),I=fe();Rt(D,G=>{(!I.value||!G.includes(I.value))&&(I.value=G[0])});const N=G=>{I.value=G},F=G=>{const Z=D.value.length;if(Z===0)return;if(!I.value)return G==="down"?D.value[0]:D.value[Z-1];const oe=D.value.indexOf(I.value),X=(Z+oe+(G==="up"?-1:1))%Z;return D.value[X]},W=G=>{var Z,oe;y?.value&&y.value.scrollTo({key:G});const X=_.get(G),H=(Z=m?.value)==null?void 0:Z.wrapperRef,q=(oe=g?.value[G])!=null?oe:X?.ref;if(!H||!q||H.scrollHeight===H.offsetHeight)return;const Q=u7e(q,H),ne=H.scrollTop;Q.top<0?H.scrollTo(0,ne+Q.top):Q.bottom<0&&H.scrollTo(0,ne-Q.bottom)};Rt(h,G=>{var Z;if(G){const oe=p.value[p.value.length-1];let X=(Z=x?.value)==null||Z?D.value[0]:void 0;D.value.includes(oe)&&(X=oe),X!==I.value&&(I.value=X),Sn(()=>{I.value&&W(I.value)})}});const U=R5(new Map([[Uo.ENTER,G=>{!d?.value&&!G.isComposing&&(h.value?I.value&&(S(I.value,G),G.preventDefault()):C&&(k(!0),G.preventDefault()))}],[Uo.ESC,G=>{h.value&&(k(!1),G.preventDefault())}],[Uo.ARROW_DOWN,G=>{if(h.value){const Z=F("down");Z&&(I.value=Z,W(Z)),G.preventDefault()}}],[Uo.ARROW_UP,G=>{if(h.value){const Z=F("up");Z&&(I.value=Z,W(Z)),G.preventDefault()}}]]));return ti(ipe,qt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:I,setActiveKey:N,onSelect:S,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$})),{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,activeKey:I,setActiveKey:N,addSlotOptionInfo:M,removeSlotOptionInfo:$,getNextActiveKey:F,scrollIntoView:W,handleKeyDown:U}},vPe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=fe(0),s=new Map,l=j(()=>e.value.length),c=fe(0),d=j(()=>{const P=c.value+o.value*3;return P>l.value?l.value:P}),h=j(()=>{const P=l.value-o.value*3;return P<0?0:P}),p=P=>{P<0?c.value=0:P>h.value?c.value=h.value:c.value=P},m=fe(n.value),g=j(()=>r.value!==30?r.value:a.value||r.value),y=(P,M)=>{s.set(P,M)},S=P=>{var M;if(m.value)return g.value;const $=e.value[P];return(M=s.get($))!=null?M:g.value},k=P=>s.has(P);mn(()=>{const P=Array.from(s.values()).reduce((M,$)=>M+$,0);P>0&&(a.value=P/s.size)});const C=P=>m.value?g.value*P:x(0,P),x=(P,M)=>{let $=0;for(let I=P;Im.value?g.value*c.value:x(0,c.value)),_=P=>{const M=P>=E.value;let $=Math.abs(P-E.value);const I=M?c.value:c.value-1;let N=0;for(;$>0;)$-=S(I+N),M?N++:N--;return N},T=P=>{const M=_(P),$=c.value+M-o.value;return $<0?0:$>h.value?h.value:$},D=j(()=>m.value?g.value*(l.value-d.value):x(d.value,l.value));return{frontPadding:E,behindPadding:D,start:c,end:d,getStartByScroll:T,setItemSize:y,hasItemSize:k,setStart:p,getScrollOffset:C}};var mPe=ke({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=yo())==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 mn(()=>a()),Ao(()=>a()),()=>{var s;const l=Q1((s=t.default)==null?void 0:s.call(t));return l?wl(l,{ref:o},!0):null}}});const gPe=ke({name:"VirtualList",components:{VirtualListItem:mPe},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}=en(e),c=Ae("virtual-list"),d=j(()=>mr(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=fe(),p=fe(),m=j(()=>({height:Ze(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=j(()=>n.value.map((I,N)=>{var F;return(F=I[r.value])!=null?F:N})),{frontPadding:y,behindPadding:S,start:k,end:C,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:T,getScrollOffset:D}=vPe({dataKeys:g,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),P=j(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),M=I=>{const{scrollTop:N,scrollHeight:F,offsetHeight:W}=I.target,U=x(N);U!==k.value&&(T(U),Sn(()=>{$(N)})),t("scroll",I),Math.floor(F-(N+W))<=0&&t("reachBottom",I)},$=I=>{var N,F;if(h.value)if(Ze(I))h.value.scrollTop=I;else{const W=(F=I.index)!=null?F:g.value.indexOf((N=I.key)!=null?N:"");T(W-s.value),h.value.scrollTop=D(W),Sn(()=>{if(h.value){const U=D(W);U!==h.value.scrollTop&&(h.value.scrollTop=U)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:y,currentList:P,behindPadding:S,onScroll:M,setItemSize:E,hasItemSize:_,start:k,scrollTo:$,style:m,mergedComponent:d}}});function yPe(e,t,n,r,o,a){const s=De("VirtualListItem");return z(),Ye(Wa(e.mergedComponent.container),{ref:"containerRef",class:ue(e.prefixCls),style:Ke(e.style),onScroll:e.onScroll},{default:de(()=>[(z(),Ye(Wa(e.mergedComponent.list),jt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(z(),Ye(Wa(e.mergedComponent.content),jt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(z(!0),ee(Nt,null,vn(e.currentList,(l,c)=>{var d;return z(),Ye(s,{key:(d=l[e.itemKey])!=null?d:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[pt(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 s3=ze(gPe,[["render",yPe]]),FP=ke({name:"AutoComplete",inheritAttrs:!1,props:{modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},disabled:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},popupContainer:{type:[String,Object]},strict:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},triggerProps:{type:Object},allowClear:{type:Boolean,default:!1},virtualListProps:{type:Object}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:e=>!0,select:e=>!0,clear:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const{modelValue:o}=en(e),a=Ae("auto-complete"),{mergedDisabled:s,eventHandlers:l}=Lo({disabled:Lu(e,"disabled")}),c=fe(e.defaultValue),d=fe(),h=j(()=>{var q;return(q=e.modelValue)!=null?q:c.value});Rt(o,q=>{(En(q)||Tl(q))&&(c.value="")});const p=j(()=>h.value?[Am(h.value)]:[]),{data:m}=en(e),g=fe(),y=fe({}),S=fe(!1),k=j(()=>S.value&&U.value.length>0),C=fe(),x=j(()=>e.virtualListProps?"div":"li"),E=q=>{S.value=q},_=(q,Q)=>{var ne;return!!((ne=Q.label)!=null&&ne.includes(q))},T=j(()=>Cn(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),D=q=>{var Q,ne;c.value=q,t("update:modelValue",q),t("change",q),(ne=(Q=l.value)==null?void 0:Q.onChange)==null||ne.call(Q)},P=q=>{var Q,ne;c.value="",t("update:modelValue",""),t("change",""),(ne=(Q=l.value)==null?void 0:Q.onChange)==null||ne.call(Q),t("clear",q)},M=(q,Q)=>{var ne,ae;const re=(ne=W.get(q))==null?void 0:ne.value;t("select",re),D(re),(ae=d.value)==null||ae.blur()},$=q=>{t("search",q),D(q)},I=q=>{t("dropdownScroll",q)},N=q=>{t("dropdownReachBottom",q)},{validOptions:F,optionInfoMap:W,validOptionInfos:U,handleKeyDown:G}=uH({options:m,inputValue:h,filterOption:T,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:y,onSelect:M,onPopupVisibleChange:E}),Z=q=>{if(Cn(r.option)&&q.value){const Q=W.get(q.key),ne=r.option;return()=>ne({data:Q})}return()=>q.label},oe=q=>O(lm,{ref:Q=>{Q?.$el&&(y.value[q.key]=Q.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:Z(q)}),X=()=>O(lH,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:I,onReachBottom:N},{default:()=>[...F.value.map(q=>oe(q))],"virtual-list":()=>O(s3,jt(e.virtualListProps,{ref:C,data:F.value}),{item:({item:q})=>oe(q)}),footer:r.footer});return{inputRef:d,render:()=>O(ha,jt({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:k.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:s.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:E}),{default:()=>[O(O0,jt({ref:d},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:$,onClear:P,onKeydown:G}),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 bPe=Object.assign(FP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+FP.name,FP)}}),cH=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=fe(-1),a=j(()=>{var d;return(d=n?.value)!=null?d:o.value}),s=fe(),l=()=>{var d,h,p;let m=(h=(d=e.value)==null?void 0:d.parentElement)!=null?h:void 0;if(r)for(;m&&!m.className.includes(r);)m=(p=m.parentElement)!=null?p:void 0;return m},c=()=>{if(En(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())}),mn(()=>{e.value&&(s.value=l()),c()}),Qa(()=>c()),{computedIndex:a}},spe=Symbol("ArcoAvatarGroup"),_Pe=ke({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SPe=["stroke-width","stroke-linecap","stroke-linejoin"];function kPe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.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,SPe)}var jP=ze(_Pe,[["render",kPe]]);const M5=Object.assign(jP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jP.name,jP)}}),xPe=ke({name:"Avatar",components:{ResizeObserver:_0,IconImageClose:M5,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}=en(e),d=Ae("avatar"),h=Rn(spe,void 0),p=fe(),m=fe(),g=j(()=>{var U;return(U=h?.shape)!=null?U:o.value}),y=j(()=>{var U;return(U=h?.size)!=null?U:a.value}),S=j(()=>{var U;return(U=h?.autoFixFontSize)!=null?U:s.value}),k=fe(!1),C=fe(!1),x=fe(!0),E=fe(!1),_=h?cH({itemRef:p,selector:`.${d}`}).computedIndex:fe(-1),T=j(()=>{var U;const G=Ze(y.value)?{width:`${y.value}px`,height:`${y.value}px`,fontSize:`${y.value/2}px`}:{};return h&&(G.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,G.marginLeft=_.value!==0?`-${((U=y.value)!=null?U:40)/4}px`:"0"),G}),D=CPe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),P=()=>{!k.value&&!e.imageUrl&&Sn(()=>{var U;if(!m.value||!p.value)return;const G=m.value.clientWidth,Z=(U=y.value)!=null?U:p.value.offsetWidth,oe=Z/(G+8);Z&&oe<1&&(m.value.style.transform=`scale(${oe}) translateX(-50%)`),x.value=!0})};mn(()=>{var U;(U=m.value)!=null&&U.firstElementChild&&["IMG","PICTURE"].includes(m.value.firstElementChild.tagName)&&(k.value=!0),S.value&&P()}),Rt(a,()=>{S.value&&P()});const M=j(()=>[d,`${d}-${g.value}`]),$=j(()=>k.value||e.imageUrl?`${d}-image`:`${d}-text`);return{prefixCls:d,itemRef:p,cls:M,outerStyle:T,wrapperRef:m,wrapperCls:$,computedTriggerIconStyle:D,isImage:k,shouldLoad:x,isLoaded:E,hasError:C,onClick:U=>{n("click",U)},handleResize:()=>{S.value&&P()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),CPe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},wPe=["src"];function EPe(e,t,n,r,o,a){const s=De("IconImageClose"),l=De("IconLoading"),c=De("resize-observer");return z(),ee("div",{ref:"itemRef",style:Ke(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))},[O(c,{onResize:e.handleResize},{default:de(()=>[L("span",{ref:"wrapperRef",class:ue(e.wrapperCls)},[e.imageUrl?(z(),ee(Nt,{key:0},[e.hasError?pt(e.$slots,"error",{key:0},()=>[L("div",{class:ue(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Pe("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?pt(e.$slots,"default",{key:1},()=>[L("div",{class:ue(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Pe("v-if",!0),e.hasError||!e.shouldLoad?Pe("v-if",!0):(z(),ee("img",{key:2,src:e.imageUrl,style:Ke({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,wPe))],64)):pt(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ke(e.computedTriggerIconStyle)},[pt(e.$slots,"trigger-icon")],6)):Pe("v-if",!0)],6)}var QC=ze(xPe,[["render",EPe]]);const TPe=ke({name:"Popover",components:{Trigger:ha},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Ae("popover"),r=fe(e.defaultPopupVisible),o=j(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=j(()=>[`${n}-popup-content`,e.contentClass]),l=j(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function APe(e,t,n,r,o,a){const s=De("trigger");return z(),Ye(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(()=>[L("div",{class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2),L("div",{class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"content",{},()=>[We(Ue(e.content),1)])],2)]),default:de(()=>[pt(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var VP=ze(TPe,[["render",APe]]);const dH=Object.assign(VP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+VP.name,VP)}}),ew=ke({name:"AvatarGroup",props:{shape:{type:String,default:"circle"},size:Number,autoFixFontSize:{type:Boolean,default:!0},maxCount:{type:Number,default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{type:Object},maxPopoverTriggerProps:{type:Object}},setup(e,{slots:t}){const{shape:n,size:r,autoFixFontSize:o,zIndexAscend:a}=en(e),s=Ae("avatar-group"),l=fe(0);return ti(spe,qt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,d;const h=yf((d=(c=t.default)==null?void 0:c.call(t))!=null?d:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,m=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),O("div",{class:s},[p,m.length>0&&O(dH,e.maxPopoverTriggerProps,{default:()=>[O(QC,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[We("+"),m.length]})],content:()=>O("div",null,[m])})])}}}),IPe=Object.assign(QC,{Group:ew,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+QC.name,QC),e.component(n+ew.name,ew)}}),LPe=ke({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DPe=["stroke-width","stroke-linecap","stroke-linejoin"];function PPe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),L("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,DPe)}var zP=ze(LPe,[["render",PPe]]);const ape=Object.assign(zP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zP.name,zP)}}),RPe=ke({name:"BackTop",components:{IconToTop:ape},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Ae("back-top"),n=fe(!1),r=fe(),o=!e.targetContainer,a=Em(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:d}=r.value;n.value=d>=c}}),s=c=>us(c)?document.querySelector(c):c;return mn(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(Pi(o?window:r.value,"scroll",a),a())}),mi(()=>{a.cancel(),r.value&&no(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new qm({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function MPe(e,t,n,r,o,a){const s=De("icon-to-top");return z(),Ye(xs,{name:"fade-in"},{default:de(()=>[e.visible?(z(),ee("div",{key:0,class:ue(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[pt(e.$slots,"default",{},()=>[L("button",{class:ue(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Pe("v-if",!0)]),_:3})}var UP=ze(RPe,[["render",MPe]]);const OPe=Object.assign(UP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+UP.name,UP)}}),$Pe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],BPe=["normal","processing","success","warning","danger"];var HP=ke({name:"Badge",props:{text:{type:String},dot:{type:Boolean},dotStyle:{type:Object},maxCount:{type:Number,default:99},offset:{type:Array,default:()=>[]},color:{type:String},status:{type:String,validator:e=>BPe.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}=en(e),h=Ae("badge"),p=NPe(h,n?.value,t?.default),m=j(()=>{const y={...o?.value||{}},[S,k]=a?.value||[];S&&(y.marginRight=`${-S}px`),k&&(y.marginTop=`${k}px`);const C=!r?.value||$Pe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...C,...y},computedDotStyle:y,computedColorStyle:C}}),g=()=>{const y=s?.value,S=r?.value,k=n?.value,C=l?.value,x=Number(d?.value),E=d?.value!=null,{computedDotStyle:_,mergedStyle:T}=m.value;return t.content?O("span",{class:`${h}-custom-dot`,style:_},[t.content()]):y&&!S&&!k?O("span",{class:`${h}-text`,style:_},[y]):k||S&&!E?O("span",{class:`${h}-status-wrapper`},[O("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:T},null),y&&O("span",{class:`${h}-status-text`},[y])]):(C||S)&&x>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:T},null):x===0?null:O("span",{class:`${h}-number`,style:T},[O("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const NPe=(e,t,n)=>j(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),FPe=Object.assign(HP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+HP.name,HP)}}),lpe=Symbol("ArcoBreadcrumb"),jPe=ke({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VPe=["stroke-width","stroke-linecap","stroke-linejoin"];function zPe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,VPe)}var WP=ze(jPe,[["render",zPe]]);const $0=Object.assign(WP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WP.name,WP)}}),UPe=ke({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HPe=["stroke-width","stroke-linecap","stroke-linejoin"];function WPe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,HPe)}var GP=ze(UPe,[["render",WPe]]);const Yh=Object.assign(GP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GP.name,GP)}}),GPe=ke({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KPe=["stroke-width","stroke-linecap","stroke-linejoin"];function qPe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,KPe)}var KP=ze(GPe,[["render",qPe]]);const upe=Object.assign(KP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KP.name,KP)}}),fH=Symbol("ArcoDropdown"),YPe=ke({name:"DropdownPanel",components:{Scrollbar:Rd,Empty:qh},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const r=Ae("dropdown"),o=Rn(fH,{}),a=fe(),s=d=>{const{scrollTop:h,scrollHeight:p,offsetHeight:m}=d.target;p-(h+m)<=e.bottomOffset&&t("reachBottom",d),t("scroll",d)},l=j(()=>{if(Ze(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=j(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function XPe(e,t,n,r,o,a){const s=De("empty"),l=De("Scrollbar");return z(),ee("div",{class:ue(e.cls)},[e.isEmpty?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-empty`)},[pt(e.$slots,"empty",{},()=>[O(s)])],2)):Pe("v-if",!0),O(l,{ref:"wrapperRef",class:ue(`${e.prefixCls}-list-wrapper`),style:Ke(e.style),onScroll:e.handleScroll},{default:de(()=>[L("ul",{class:ue(`${e.prefixCls}-list`)},[pt(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[pt(e.$slots,"footer")],2)):Pe("v-if",!0)],2)}var cpe=ze(YPe,[["render",XPe]]);const O5=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=fe((r=t?.value)!=null?r:!1),a=j(()=>{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}},ZPe=ke({name:"Dropdown",components:{Trigger:ha,DropdownPanel:cpe},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"bottom"},popupContainer:{type:[String,Object]},popupMaxHeight:{type:[Boolean,Number],default:!0},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r,popupMaxHeight:o}=en(e),a=Ae("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=O5({defaultPopupVisible:n,popupVisible:r,emit:t});return ti(fH,qt({popupMaxHeight:o,onOptionClick:(d,h)=>{t("select",d,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function JPe(e,t,n,r,o,a){const s=De("DropdownPanel"),l=De("Trigger");return z(),Ye(l,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(s,null,Eo({default:de(()=>[pt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[pt(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[pt(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var tw=ze(ZPe,[["render",JPe]]);const QPe=ke({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("dropdown-option"),r=fe(),o=j(()=>{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:Rn(fH,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=j(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function eRe(e,t,n,r,o,a){return z(),ee("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(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon")],2)):Pe("v-if",!0),L("span",{class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2),e.$slots.suffix?(z(),ee("span",{key:1,class:ue(`${e.prefixCls}-suffix`)},[pt(e.$slots,"suffix")],2)):Pe("v-if",!0)],2)}var ny=ze(QPe,[["render",eRe]]);const tRe=ke({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Ae("dropdown-group")}}});function nRe(e,t,n,r,o,a){return z(),ee(Nt,null,[L("li",{class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2),pt(e.$slots,"default")],64)}var nw=ze(tRe,[["render",nRe]]);const rRe=ke({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iRe=["stroke-width","stroke-linecap","stroke-linejoin"];function oRe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,iRe)}var qP=ze(rRe,[["render",oRe]]);const Ui=Object.assign(qP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qP.name,qP)}}),sRe=ke({name:"Dsubmenu",components:{Trigger:ha,DropdownPanel:cpe,DropdownOption:ny,IconRight:Ui},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}=en(e),o=Ae("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=O5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function aRe(e,t,n,r,o,a){const s=De("IconRight"),l=De("dropdown-option"),c=De("dropdown-panel"),d=De("Trigger");return z(),Ye(d,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(c,{class:ue(`${e.prefixCls}-submenu`)},Eo({default:de(()=>[pt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[pt(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[O(l,jt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),Eo({suffix:de(()=>[pt(e.$slots,"suffix",{},()=>[O(s)])]),default:de(()=>[pt(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[pt(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var rw=ze(sRe,[["render",aRe]]);const lRe=ke({name:"DropdownButton",components:{IconMore:$0,Button:Yo,ButtonGroup:J4,Dropdown:tw},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}=en(e),o=Ae("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=O5({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 uRe(e,t,n,r,o,a){const s=De("Button"),l=De("IconMore"),c=De("Dropdown"),d=De("ButtonGroup");return z(),Ye(d,null,{default:de(()=>[O(s,jt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[pt(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),O(c,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,"popup-container":e.popupContainer,"hide-on-select":e.hideOnSelect,onSelect:e.handleSelect,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[pt(e.$slots,"content")]),default:de(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[pt(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[O(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var iw=ze(lRe,[["render",uRe]]);const dpe=Object.assign(tw,{Option:ny,Group:nw,Submenu:rw,Button:iw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+tw.name,tw),e.component(n+ny.name,ny),e.component(n+nw.name,nw),e.component(n+rw.name,rw),e.component(n+iw.name,iw)}});var Q4=ke({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const r=Ae("breadcrumb-item"),o=Rn(lpe,void 0),a=fe(!1),s=j(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=j(()=>o&&o.needHide?e.index===1:!1),c=j(()=>o?e.index{a.value=y},h=()=>{var y,S,k,C,x,E,_;if(!c.value)return null;const T=(_=(E=(x=(S=(y=t.separator)==null?void 0:y.call(t))!=null?S:e.separator)!=null?x:(C=o==null?void 0:(k=o.slots).separator)==null?void 0:C.call(k))!=null?E:o?.separator)!=null?_:O(upe,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[T])},p=()=>{var y,S,k,C;return O("div",jt({role:"listitem",class:[r,{[`${r}-with-dropdown`]:e.droplist||t.droplist}]},l.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[l.value?(k=(S=o==null?void 0:(y=o.slots)["more-icon"])==null?void 0:S.call(y))!=null?k:O($0,null,null):(C=t.default)==null?void 0:C.call(t),(e.droplist||t.droplist)&&O("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[O(Yh,null,null)])])},m=()=>{var y,S,k;return(k=(y=t.droplist)==null?void 0:y.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(C=>O(ny,{value:C.path},{default:()=>[C.label]}))},g=()=>O(dpe,jt({popupVisible:a.value,onPopupVisibleChange:d},e.dropdownProps),{default:()=>[p()],content:m});return()=>s.value?O(Nt,null,[t.droplist||e.droplist?g():p(),h()]):null}}),YP=ke({name:"Breadcrumb",props:{maxCount:{type:Number,default:0},routes:{type:Array},separator:{type:[String,Number]},customUrl:{type:Function}},setup(e,{slots:t}){const{maxCount:n,separator:r,routes:o}=en(e),a=Ae("breadcrumb"),s=fe(0),l=j(()=>n.value>0&&s.value>n.value+1);ti(lpe,qt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,m,g)=>{var y,S;if(m.indexOf(p)===m.length-1)return O("span",null,[p.label]);const k=(S=(y=e.customUrl)==null?void 0:y.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return O("a",{href:k},[p.label])},d=()=>{var p;if(!((p=o.value)!=null&&p.length))return null;s.value!==o.value.length&&(s.value=o.value.length);const m=[];return o.value.map((g,y,S)=>{m.push((g.path||"").replace(/^\//,""));const k=[...m];return O(Q4,{key:g.path||g.label,index:y,droplist:g.children},{default:()=>{var C,x;return[(x=(C=t["item-render"])==null?void 0:C.call(t,{route:g,routes:S,paths:k}))!=null?x:c(g,S,k)]}})})},h=()=>{var p,m;const g=yf((m=(p=t.default)==null?void 0:p.call(t))!=null?m:[]);return s.value!==g.length&&(s.value=g.length),g.map((y,S)=>{var k;return y.props=jt((k=y.props)!=null?k:{},{index:S}),y})};return()=>O("div",{role:"list",class:a},[t.default?h():d()])}});const cRe=Object.assign(YP,{Item:Q4,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YP.name,YP),e.component(n+Q4.name,Q4)}});var ow=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ed(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q_(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 sw={exports:{}},dRe=sw.exports,Xne;function fpe(){return Xne||(Xne=1,(function(e,t){(function(n,r){e.exports=r()})(dRe,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",d="day",h="week",p="month",m="quarter",g="year",y="date",S="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var G=["th","st","nd","rd"],Z=U%100;return"["+U+(G[(Z-20)%10]||G[Z]||G[0])+"]"}},E=function(U,G,Z){var oe=String(U);return!oe||oe.length>=G?U:""+Array(G+1-oe.length).join(Z)+U},_={s:E,z:function(U){var G=-U.utcOffset(),Z=Math.abs(G),oe=Math.floor(Z/60),X=Z%60;return(G<=0?"+":"-")+E(oe,2,"0")+":"+E(X,2,"0")},m:function U(G,Z){if(G.date()1)return U(q[0])}else{var Q=G.name;D[Q]=G,X=Q}return!oe&&X&&(T=X),X||!oe&&T},I=function(U,G){if(M(U))return U.clone();var Z=typeof G=="object"?G:{};return Z.date=U,Z.args=arguments,new F(Z)},N=_;N.l=$,N.i=M,N.w=function(U,G){return I(U,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var F=(function(){function U(Z){this.$L=$(Z.locale,null,!0),this.parse(Z),this.$x=this.$x||Z.x||{},this[P]=!0}var G=U.prototype;return G.parse=function(Z){this.$d=(function(oe){var X=oe.date,H=oe.utc;if(X===null)return new Date(NaN);if(N.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 Q=q[2]-1||0,ne=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],Q,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)):new Date(q[1],Q,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)}}return new Date(X)})(Z),this.init()},G.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},G.$utils=function(){return N},G.isValid=function(){return this.$d.toString()!==S},G.isSame=function(Z,oe){var X=I(Z);return this.startOf(oe)<=X&&X<=this.endOf(oe)},G.isAfter=function(Z,oe){return I(Z)68?1900:2e3)},h=function(k){return function(C){this[k]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var x=C.match(/([+-]|\d\d)/g),E=60*x[1]+(+x[2]||0);return E===0?0:x[0]==="+"?-E:E})(k)}],m=function(k){var C=c[k];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(k,C){var x,E=c.meridiem;if(E){for(var _=1;_<=24;_+=1)if(k.indexOf(E(_,0,C))>-1){x=_>12;break}}else x=k===(C?"pm":"PM");return x},y={A:[l,function(k){this.afternoon=g(k,!1)}],a:[l,function(k){this.afternoon=g(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[a,h("day")],Do:[l,function(k){var C=c.ordinal,x=k.match(/\d+/);if(this.day=x[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var C=m("months"),x=(m("monthsShort")||C.map((function(E){return E.slice(0,3)}))).indexOf(k)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(k){var C=m("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function S(k){var C,x;C=k,x=c&&c.formats;for(var E=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,N,F){var W=F&&F.toUpperCase();return N||x[F]||n[F]||x[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(U,G,Z){return G||Z.slice(1)}))}))).match(r),_=E.length,T=0;T<_;T+=1){var D=E[T],P=y[D],M=P&&P[0],$=P&&P[1];E[T]=$?{regex:M,parser:$}:D.replace(/^\[|\]$/g,"")}return function(I){for(var N={},F=0,W=0;F<_;F+=1){var U=E[F];if(typeof U=="string")W+=U.length;else{var G=U.regex,Z=U.parser,oe=I.slice(W),X=G.exec(oe)[0];Z.call(N,X),I=I.replace(X,"")}}return(function(H){var q=H.afternoon;if(q!==void 0){var Q=H.hours;q?Q<12&&(H.hours+=12):Q===12&&(H.hours=0),delete H.afternoon}})(N),N}}return function(k,C,x){x.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var E=C.prototype,_=E.parse;E.parse=function(T){var D=T.date,P=T.utc,M=T.args;this.$u=P;var $=M[1];if(typeof $=="string"){var I=M[2]===!0,N=M[3]===!0,F=I||N,W=M[2];N&&(W=M[2]),c=this.$locale(),!I&&W&&(c=x.Ls[W]),this.$d=(function(oe,X,H,q){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*oe);var Q=S(X)(oe),ne=Q.year,ae=Q.month,re=Q.day,Se=Q.hours,xe=Q.minutes,ve=Q.seconds,be=Q.milliseconds,Ve=Q.zone,Je=Q.week,Me=new Date,je=re||(ne||ae?1:Me.getDate()),ge=ne||Me.getFullYear(),_e=0;ne&&!ae||(_e=ae>0?ae-1:Me.getMonth());var Fe,He=Se||0,Qe=xe||0,rt=ve||0,ft=be||0;return Ve?new Date(Date.UTC(ge,_e,je,He,Qe,rt,ft+60*Ve.offset*1e3)):H?new Date(Date.UTC(ge,_e,je,He,Qe,rt,ft)):(Fe=new Date(ge,_e,je,He,Qe,rt,ft),Je&&(Fe=q(Fe).week(Je).toDate()),Fe)}catch{return new Date("")}})(D,$,P,x),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),F&&D!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var U=$.length,G=1;G<=U;G+=1){M[1]=$[G-1];var Z=x.apply(this,M);if(Z.isValid()){this.$d=Z.$d,this.$L=Z.$L,this.init();break}G===U&&(this.$d=new Date(""))}else _.call(this,T)}}}))})(aw)),aw.exports}var vRe=pRe();const mRe=ed(vRe);var lw={exports:{}},gRe=lw.exports,Jne;function yRe(){return Jne||(Jne=1,(function(e,t){(function(n,r){e.exports=r()})(gRe,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var d=o(a),h=o(s),p=(c=c||"()")[0]==="(",m=c[1]===")";return(p?this.isAfter(d,l):!this.isBefore(d,l))&&(m?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(d,l):!this.isAfter(d,l))&&(m?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(lw)),lw.exports}var bRe=yRe();const _Re=ed(bRe);var uw={exports:{}},SRe=uw.exports,Qne;function kRe(){return Qne||(Qne=1,(function(e,t){(function(n,r){e.exports=r()})(SRe,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(d),p=s(this).endOf(n);if(h.isBefore(p))return 1}var m=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(uw)),uw.exports}var xRe=kRe();const CRe=ed(xRe);var cw={exports:{}},wRe=cw.exports,ere;function ERe(){return ere||(ere=1,(function(e,t){(function(n,r){e.exports=r()})(wRe,(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)}}}))})(cw)),cw.exports}var TRe=ERe();const ARe=ed(TRe);var dw={exports:{}},IRe=dw.exports,tre;function LRe(){return tre||(tre=1,(function(e,t){(function(n,r){e.exports=r()})(IRe,(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}}}))})(dw)),dw.exports}var DRe=LRe();const PRe=ed(DRe);var fw={exports:{}},RRe=fw.exports,nre;function MRe(){return nre||(nre=1,(function(e,t){(function(n,r){e.exports=r()})(RRe,(function(){var n="month",r="quarter";return function(o,a){var s=a.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var l=s.add;s.add=function(d,h){return d=Number(d),this.$utils().p(h)===r?this.add(3*d,n):l.bind(this)(d,h)};var c=s.startOf;s.startOf=function(d,h){var p=this.$utils(),m=!!p.u(h)||h;if(p.p(d)===r){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(d,h)}}}))})(fw)),fw.exports}var ORe=MRe();const $Re=ed(ORe);var hw={exports:{}},BRe=hw.exports,rre;function NRe(){return rre||(rre=1,(function(e,t){(function(n,r){e.exports=r(fpe())})(BRe,(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}))})(hw)),hw.exports}NRe();const FRe=(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(FRe);ml.extend(mRe);ml.extend(_Re);ml.extend(CRe);ml.extend(ARe);ml.extend(PRe);ml.extend($Re);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:nr(t)&&nr(e)?n(t[0],e[0])||n(t[1],e[1]):!nr(t)&&!nr(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(OLe(t))return Rs(n(o),t.replace(/\[Q]Q/,"MM"));if(Rs(o,t).isValid())return Rs(o,t)}return Rs(o)}};return nr(e)?e.map(r):r(e)}function xu(e){const t=n=>n?n.toDate():void 0;return nr(e)?e.map(t):t(e)}function hpe(e,t){Rs.locale({...Rs.Ls[e.toLocaleLowerCase()],weekStart:t})}function jRe(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 um(e,t,n=" "){const r=String(e),o=r.lengthO("div",{class:a},[l.map(c=>O("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||o.value==="year"?"short":"long"}.${c}`)]))])}});function vx(e,t){if(e&&nr(e))return e[t]}function ppe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,d){const h=vx(n,0),p=vx(n,1),m=vx(r,0),g=vx(r,1),y=!c.isPrev&&!c.isNext,S=y&&o,k=S,C=S;m&&h&&m.isBefore(h);const E=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Ka());return s==="year"&&(_=Ka().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:y,[`${e}-cell-today`]:_,[`${e}-cell-selected`]:t&&a(c.time,t),[`${e}-cell-range-start`]:k,[`${e}-cell-range-end`]:C,[`${e}-cell-in-range`]:S,[`${e}-cell-in-range-near-hover`]:E,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:d}]}}const ire=42,N8=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),zRe=e=>({start:N8(Ys.startOf(e,"month")),end:N8(Ys.endOf(e,"month")),days:e.daysInMonth()});function vpe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=zRe(e),o=Array(ire).fill(null).map(()=>({})),a=t===0?r.start.day:(r.start.day||7)-1;o[a]={...r.start,isCurrent:!0};for(let l=0;l=r.days-1};const s=Array(6).fill(null).map(()=>[]);for(let l=0;l<6;l++)if(s[l]=o.slice(l*7,7*(l+1)),n){const c=s[l][0].time,d=[...s[l]];s[l].unshift({weekRows:d,weekOfYear:c.week()})}return s}var mpe=ke({name:"Month",props:{cell:{type:Boolean},pageData:{type:Array},current:{type:Number},value:{type:Object,required:!0},selectHandler:{type:Function,required:!0},mode:{type:String},pageShowDate:{type:Object,required:!0},panel:{type:Boolean},dayStartOfWeek:{type:Number,required:!0},isWeek:{type:Boolean,required:!0}},setup(e,{slots:t}){const{pageData:n}=en(e),r=Ae("calendar"),o=e.pageShowDate.year(),a=j(()=>ppe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,d)=>c.isSame(d,"day")}));function s(c){return c.map((d,h)=>{var p;if(d.time){const m=()=>e.selectHandler(d.time,!1),g=e.isWeek?{onClick:m}:{},y=e.isWeek?{}:{onClick:m};return O("div",jt({key:h,class:a.value(d,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:d.year,month:d.month,date:d.date}):O("div",jt({class:`${r}-date`},y),[O("div",{class:`${r}-date-value`},[e.panel?d.date:O("div",{class:`${r}-date-circle`},[d.date])])])])}if("weekOfYear"in d){const m=e.value.year(),g=e.value.month()+1,y=e.value.week(),S=e.value&&d.weekRows.find(k=>k.year===m&&k.month===g)&&y===d.weekOfYear;return O("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:S,[`${r}-cell-in-range`]:S}]},[O("div",{class:`${r}-date`},[O("div",{class:`${r}-date-value`},[d.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=vpe(Rs(`${o}-${um(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(VRe,{value:e.value,selectHandler:e.selectHandler,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,panel:e.panel,mode:e.mode,pageShowData:e.pageShowDate,pageData:e.pageData},null),O("div",{class:`${r}-month-cell-body`},[l?.map((c,d)=>O("div",{key:d,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const gpe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),ype=Array(3);for(let e=0;e<3;e++)ype[e]=gpe.slice(e*4,4*(e+1));const bpe=Array(4);for(let e=0;e<4;e++)bpe[e]=gpe.slice(e*3,3*(e+1));var URe=ke({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=Ae("calendar"),n=j(()=>ppe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=Bo(),o=j(()=>e.pageShowData.year()),a=e.panel?bpe:ype;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const d=Rs(`${o.value}-${um(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(d,!1)}:{};return O("div",{key:c.value,class:n.value({...c,time:d},!1)},[e.panel?O("div",jt({class:`${t}-date`},h),[O("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):O("div",{class:`${t}-month-with-days`},[O("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),O(mpe,{pageShowDate:e.pageShowData,pageData:e.pageData,dayStartOfWeek:e.dayStartOfWeek,selectHandler:e.selectHandler,isWeek:e.isWeek,cell:!0,current:c.value,value:e.value,mode:e.mode},null)])])})]))])}});const HRe=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:o="update:modelValue",eventHandlers:a})=>{var s;const l=fe(),c=fe((s=e?.value)!=null?s:""),d=fe(!1),h=fe(!1),p=fe("");let m;const g=j(()=>{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),Sn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=D=>{r==="input"&&g.value!==m&&(m=g.value,n("change",g.value,D))},C=D=>{var P;const{value:M}=D.target;D.type==="compositionend"?(h.value=!1,p.value="",y(M,D),Sn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((P=D.data)!=null?P:""))},x=D=>{var P,M;d.value=!0,m=g.value,n("focus",D),(M=(P=a?.value)==null?void 0:P.onFocus)==null||M.call(P,D)},E=D=>{var P,M;d.value=!1,n("blur",D),(M=(P=a?.value)==null?void 0:P.onBlur)==null||M.call(P,D),k(D)},_=D=>{const P=D.key||D.code;!h.value&&P===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 WRe=ke({name:"InputLabel",inheritAttrs:!1,props:{modelValue:Object,inputValue:{type:String,default:""},enabledInput:Boolean,formatLabel:Function,placeholder:String,retainInputValue:Boolean,disabled:Boolean,baseCls:String,size:String,error:Boolean,focused:Boolean,uninjectFormItemContext:Boolean},emits:["update:inputValue","inputValueChange","focus","blur"],setup(e,{attrs:t,emit:n,slots:r}){var o;const{size:a,disabled:s,error:l,inputValue:c,uninjectFormItemContext:d}=en(e),h=(o=e.baseCls)!=null?o:Ae("input-label"),{mergedSize:p,mergedDisabled:m,mergedError:g,eventHandlers:y}=Lo({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}=HRe({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:y}),M=j(()=>{var oe;return(oe=e.focused)!=null?oe:C.value}),$=j(()=>e.enabledInput&&C.value||!e.modelValue),I=()=>{var oe,X;return e.modelValue?(X=(oe=e.formatLabel)==null?void 0:oe.call(e,e.modelValue))!=null?X:e.modelValue.label:""},N=j(()=>e.enabledInput&&e.modelValue?I():e.placeholder),F=()=>{var oe,X;return e.modelValue?(X=(oe=r.default)==null?void 0:oe.call(r,{data:e.modelValue}))!=null?X:I():null},W=j(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:M.value,[`${h}-disabled`]:m.value,[`${h}-error`]:g.value}]),U=j(()=>xa(t,y0)),G=j(()=>kf(t,y0));return{inputRef:k,render:()=>O("span",jt(U.value,{class:W.value,title:I(),onMousedown:P}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",jt(G.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!$.value}],value:x.value,readonly:!e.enabledInput,placeholder:N.value,disabled:m.value,onInput:E,onFocus:T,onBlur:D,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:$.value}]},[F()]),r.suffix&&O("span",{class:`${h}-suffix`},[r.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const GRe=(e,t)=>{const n=[];for(const r of e)if(mr(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||Ze(e)){const o={value:r,label:String(r),closable:!0};n.push({raw:o,...o})}return n},ore=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],KRe=ke({name:"Tag",components:{IconHover:Io,IconClose:cs,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}=en(e),r=Ae("tag"),o=j(()=>e.color&&ore.includes(e.color)),a=j(()=>e.color&&!ore.includes(e.color)),s=fe(e.defaultVisible),l=fe(e.defaultChecked),c=j(()=>{var k;return(k=e.visible)!=null?k:s.value}),d=j(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=wa(n),p=j(()=>h.value==="mini"?"small":h.value),m=k=>{s.value=!1,t("update:visible",!1),t("close",k)},g=k=>{if(e.checkable){const C=!d.value;l.value=C,t("update:checked",C),t("check",C,k)}},y=j(()=>[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=j(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:y,style:S,computedVisible:c,computedChecked:d,handleClick:g,handleClose:m}}});function qRe(e,t,n,r,o,a){const s=De("icon-close"),l=De("icon-hover"),c=De("icon-loading");return e.computedVisible?(z(),ee("span",{key:0,class:ue(e.cls),style:Ke(e.style),onClick:t[0]||(t[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.$slots.icon?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon")],2)):Pe("v-if",!0),e.nowrap?(z(),ee("span",{key:1,class:ue(`${e.prefixCls}-text`)},[pt(e.$slots,"default")],2)):pt(e.$slots,"default",{key:2}),e.closable?(z(),Ye(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:ue(`${e.prefixCls}-close-btn`),onClick:ls(e.handleClose,["stop"])},{default:de(()=>[pt(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Pe("v-if",!0),e.loading?(z(),ee("span",{key:4,class:ue(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Pe("v-if",!0)],6)):Pe("v-if",!0)}var XP=ze(KRe,[["render",qRe]]);const pH=Object.assign(XP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+XP.name,XP)}}),YRe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var ZP=ke({name:"InputTag",inheritAttrs:!1,props:{modelValue:{type:Array},defaultValue:{type:Array,default:()=>[]},inputValue:String,defaultInputValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{type:String},maxTagCount:{type:Number,default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{type:Function},uniqueValue:{type:Boolean,default:!1},fieldNames:{type:Object},tagNowrap:{type:Boolean,default:!1},baseCls:String,focused:Boolean,disabledInput:Boolean,uninjectFormItemContext:Boolean},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,change:(e,t)=>!0,inputValueChange:(e,t)=>!0,pressEnter:(e,t)=>!0,remove:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:o,disabled:a,error:s,uninjectFormItemContext:l,modelValue:c}=en(e),d=e.baseCls||Ae("input-tag"),h=fe(),p=fe(),{mergedSize:m,mergedDisabled:g,mergedError:y,feedback:S,eventHandlers:k}=Lo({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=wa(m),x=j(()=>({...YRe,...e.fieldNames})),E=fe(!1),_=fe(e.defaultValue),T=fe(e.defaultInputValue),D=fe(!1),P=fe(""),M=j(()=>mr(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),$=qt({width:"12px"}),I=j(()=>e.focused||E.value),N=(_e,Fe)=>{T.value=_e,t("update:inputValue",_e),t("inputValueChange",_e,Fe)},F=_e=>{var Fe;const{value:He}=_e.target;_e.type==="compositionend"?(D.value=!1,P.value="",N(He,_e),Sn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)})):(D.value=!0,P.value=U.value+((Fe=_e.data)!=null?Fe:""))},W=j(()=>{var _e;return(_e=e.modelValue)!=null?_e:_.value}),U=j(()=>{var _e;return(_e=e.inputValue)!=null?_e:T.value});Rt(c,_e=>{(En(_e)||Tl(_e))&&(_.value=[])});const G=_e=>{h.value&&_e.target!==h.value&&(_e.preventDefault(),h.value.focus())},Z=_e=>{const{value:Fe}=_e.target;D.value||(N(Fe,_e),Sn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)}))},oe=j(()=>GRe(W.value,x.value)),X=j(()=>{if(e.maxTagCount>0){const _e=oe.value.length-e.maxTagCount;if(_e>0){const Fe=oe.value.slice(0,e.maxTagCount),He={value:"__arco__more",label:`+${_e}...`,closable:!1};return Fe.push({raw:He,...He}),Fe}}return oe.value}),H=(_e,Fe)=>{var He,Qe;_.value=_e,t("update:modelValue",_e),t("change",_e,Fe),(Qe=(He=k.value)==null?void 0:He.onChange)==null||Qe.call(He,Fe)},q=(_e,Fe,He)=>{var Qe;const rt=(Qe=W.value)==null?void 0:Qe.filter((ft,lt)=>lt!==Fe);H(rt,He),t("remove",_e,He)},Q=_e=>{H([],_e),t("clear",_e)},ne=j(()=>!g.value&&!e.readonly&&e.allowClear&&!!W.value.length),ae=_e=>{var Fe;if(U.value){if(_e.preventDefault(),e.uniqueValue&&((Fe=W.value)!=null&&Fe.includes(U.value))){t("pressEnter",U.value,_e);return}const He=W.value.concat(U.value);H(He,_e),t("pressEnter",U.value,_e),M.value.create||N("",_e)}},re=_e=>{var Fe,He;E.value=!0,t("focus",_e),(He=(Fe=k.value)==null?void 0:Fe.onFocus)==null||He.call(Fe,_e)},Se=_e=>{var Fe,He;E.value=!1,!M.value.blur&&U.value&&N("",_e),t("blur",_e),(He=(Fe=k.value)==null?void 0:Fe.onBlur)==null||He.call(Fe,_e)},xe=()=>{for(let _e=oe.value.length-1;_e>=0;_e--)if(oe.value[_e].closable)return _e;return-1},ve=_e=>{if(g.value||e.readonly)return;const Fe=_e.key||_e.code;if(!D.value&&U.value&&Fe===rH.key&&ae(_e),!D.value&&X.value.length>0&&!U.value&&Fe===Jhe.key){const He=xe();He>=0&&q(oe.value[He].value,He,_e)}},be=_e=>{_e>12?$.width=`${_e}px`:$.width="12px"};mn(()=>{p.value&&be(p.value.offsetWidth)});const Ve=()=>{p.value&&be(p.value.offsetWidth)};Rt(U,_e=>{h.value&&!D.value&&_e!==h.value.value&&(h.value.value=_e)});const Je=j(()=>[d,`${d}-size-${C.value}`,{[`${d}-disabled`]:g.value,[`${d}-disabled-input`]:e.disabledInput,[`${d}-error`]:y.value,[`${d}-focus`]:I.value,[`${d}-readonly`]:e.readonly,[`${d}-has-tag`]:X.value.length>0,[`${d}-has-prefix`]:!!n.prefix,[`${d}-has-suffix`]:!!n.suffix||ne.value||S.value,[`${d}-has-placeholder`]:!W.value.length}]),Me=j(()=>xa(r,y0)),je=j(()=>kf(r,y0));return{inputRef:h,render:()=>{var _e;return O("span",jt({class:Je.value,onMousedown:G},Me.value),[O(Dd,{onResize:Ve},{default:()=>[O("span",{ref:p,class:`${d}-mirror`},[X.value.length>0?P.value||U.value:P.value||U.value||e.placeholder])]}),n.prefix&&O("span",{class:`${d}-prefix`},[n.prefix()]),O(n3,{tag:"span",name:"input-tag-zoom",class:[`${d}-inner`,{[`${d}-nowrap`]:e.tagNowrap}]},{default:()=>[X.value.map((Fe,He)=>O(pH,jt({key:`tag-${Fe.value}`,class:`${d}-tag`,closable:!g.value&&!e.readonly&&Fe.closable,visible:!0,nowrap:e.tagNowrap},Fe.tagProps,{onClose:Qe=>q(Fe.value,He,Qe)}),{default:()=>{var Qe,rt,ft,lt;return[(lt=(ft=(Qe=n.tag)==null?void 0:Qe.call(n,{data:Fe.raw}))!=null?ft:(rt=e.formatTag)==null?void 0:rt.call(e,Fe.raw))!=null?lt:Fe.label]}})),O("input",jt(je.value,{ref:h,key:"input-tag-input",class:`${d}-input`,style:$,placeholder:X.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:Z,onKeydown:ve,onFocus:re,onBlur:Se,onCompositionstart:F,onCompositionupdate:F,onCompositionend:F}),null)]}),ne.value&&O(Io,{class:`${d}-clear-btn`,onClick:Q,onMousedown:Fe=>Fe.stopPropagation()},{default:()=>[O(cs,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${d}-suffix`},[(_e=n.suffix)==null?void 0:_e.call(n),!!S.value&&O(K_,{type:S.value},null)])])}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const _pe=Object.assign(ZP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ZP.name,ZP)}});var F8=ke({name:"SelectView",props:{modelValue:{type:Array,required:!0},inputValue:String,placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},size:{type:String},bordered:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>nr(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}=en(e),s=Ae("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:d,mergedSize:h,mergedError:p}=Lo({size:r,disabled:o,error:a}),{mergedSize:m}=wa(h),{opened:g}=en(e),y=fe(),S=j(()=>{var N;return(N=y.value)==null?void 0:N.inputRef}),k=j(()=>e.modelValue.length===0),C=j(()=>e.allowSearch||e.allowCreate),x=j(()=>e.allowClear&&!e.disabled&&!k.value),E=N=>{var F,W;t("focus",N),(W=(F=c.value)==null?void 0:F.onFocus)==null||W.call(F,N)},_=N=>{var F,W;t("blur",N),(W=(F=c.value)==null?void 0:F.onBlur)==null||W.call(F,N)},T=N=>{t("remove",N)},D=N=>{t("clear",N)},P=()=>{var N,F,W,U;return e.loading?(F=(N=n["loading-icon"])==null?void 0:N.call(n))!=null?F:O(Xa,null,null):e.allowSearch&&e.opened?(U=(W=n["search-icon"])==null?void 0:W.call(n))!=null?U:O(Tm,null,null):n["arrow-icon"]?n["arrow-icon"]():O(Yh,{class:`${s}-arrow-icon`},null)},M=()=>O(Nt,null,[x.value&&O(Io,{class:`${s}-clear-btn`,onClick:D,onMousedown:N=>N.stopPropagation()},{default:()=>[O(cs,null,null)]}),O("span",{class:`${s}-icon`},[P()]),!!l.value&&O(K_,{type:l.value},null)]);Rt(g,N=>{!N&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const $=j(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?O(_pe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:m.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:T,onFocus:E,onBlur:_},{prefix:n.prefix,suffix:M,tag:n.label}):O(WRe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:m.value,error:p.value,enabledInput:C.value,uninjectFormItemContext:!0,onFocus:E,onBlur:_},{default:n.label,prefix:n.prefix,suffix:M})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const XRe=ke({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Ae("select-group")}}});function ZRe(e,t,n,r,o,a){return z(),ee(Nt,null,[L("li",{class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"label",{},()=>[We(Ue(e.label),1)])],2),pt(e.$slots,"default")],64)}var eb=ze(XRe,[["render",ZRe]]);const sre=typeof window>"u"?global:window;function e_(e,t){let n=0;return(...r)=>{n&&sre.clearTimeout(n),n=sre.setTimeout(()=>{n=0,e(...r)},t)}}function JRe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}const QRe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var JP=ke({name:"Select",components:{Trigger:ha,SelectView:F8},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=>En(e.multiple)?"":[]},inputValue:{type:String},defaultInputValue:{type:String,default:""},size:{type:String},placeholder:String,loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{type:Number,default:0},popupContainer:{type:[String,Object]},bordered:{type:Boolean,default:!0},defaultActiveFirstOption:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountOnClose:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},options:{type:Array,default:()=>[]},virtualListProps:{type:Object},triggerProps:{type:Object},formatLabel:{type:Function},fallbackOption:{type:[Boolean,Function],default:!0},showExtraOptions:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},searchDelay:{type:Number,default:500},limit:{type:Number,default:0},fieldNames:{type:Object},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,popupVisibleChange:e=>!0,clear:e=>!0,remove:e=>!0,search:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0,exceedLimit:(e,t)=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{size:o,disabled:a,error:s,options:l,filterOption:c,valueKey:d,multiple:h,popupVisible:p,defaultPopupVisible:m,showExtraOptions:g,modelValue:y,fieldNames:S,loading:k,defaultActiveFirstOption:C}=en(e),x=Ae("select"),{mergedSize:E,mergedDisabled:_,mergedError:T,eventHandlers:D}=Lo({size:o,disabled:a,error:s}),P=j(()=>e.virtualListProps?"div":"li"),M=j(()=>mr(e.allowSearch)&&!!e.allowSearch.retainInputValue);j(()=>{if(Cn(e.formatLabel))return ut=>{const Ne=rt.get(ut.value);return e.formatLabel(Ne)}});const $=fe(),I=fe({}),N=fe(),{computedPopupVisible:F,handlePopupVisibleChange:W}=O5({popupVisible:p,defaultPopupVisible:m,emit:n}),U=fe(e.defaultValue),G=j(()=>{var ut;const Ne=(ut=e.modelValue)!=null?ut:U.value;return(nr(Ne)?Ne:Ne||Ze(Ne)||us(Ne)||El(Ne)?[Ne]:[]).map(Oe=>({value:Oe,key:Am(Oe,e.valueKey)}))});Rt(y,ut=>{(En(ut)||Tl(ut))&&(U.value=h.value?[]:ut)});const Z=j(()=>G.value.map(ut=>ut.key)),oe=j(()=>({...QRe,...S?.value})),X=fe(),H=ut=>{const Ne={};return ut.forEach(Ie=>{Ne[Ie]=rt.get(Ie)}),Ne},q=ut=>{X.value=H(ut)},Q=ut=>Cn(e.fallbackOption)?e.fallbackOption(ut):{[oe.value.value]:ut,[oe.value.label]:String(mr(ut)?ut[d?.value]:ut)},ne=()=>{const ut=[],Ne=[];if(e.allowCreate||e.fallbackOption){for(const Ie of G.value)if(!Ne.includes(Ie.key)&&Ie.value!==""){const Oe=rt.get(Ie.key);(!Oe||Oe.origin==="extraOptions")&&(ut.push(Ie),Ne.push(Ie.key))}}if(e.allowCreate&&xe.value){const Ie=Am(xe.value);if(!Ne.includes(Ie)){const Oe=rt.get(Ie);(!Oe||Oe.origin==="extraOptions")&&ut.push({value:xe.value,key:Ie})}}return ut},ae=fe([]),re=j(()=>ae.value.map(ut=>{var Ne;let Ie=Q(ut.value);const Oe=(Ne=X.value)==null?void 0:Ne[ut.key];return!En(Oe)&&!MLe(Oe)&&(Ie={...Ie,...Oe}),Ie}));Sn(()=>{Os(()=>{var ut;const Ne=ne();if(Ne.length!==ae.value.length)ae.value=Ne;else if(Ne.length>0){for(let Ie=0;Ie{var ut;return(ut=e.inputValue)!=null?ut:Se.value});Rt(F,ut=>{!ut&&!M.value&&xe.value&&Ve("")});const ve=ut=>{var Ne,Ie;return e.multiple?ut.map(Oe=>{var Xe,ct;return(ct=(Xe=rt.get(Oe))==null?void 0:Xe.value)!=null?ct:""}):(Ie=(Ne=rt.get(ut[0]))==null?void 0:Ne.value)!=null?Ie:aPe(rt)?void 0:""},be=ut=>{var Ne,Ie;const Oe=ve(ut);U.value=Oe,n("update:modelValue",Oe),n("change",Oe),(Ie=(Ne=D.value)==null?void 0:Ne.onChange)==null||Ie.call(Ne),q(ut)},Ve=ut=>{Se.value=ut,n("update:inputValue",ut),n("inputValueChange",ut)},Je=(ut,Ne)=>{if(e.multiple){if(Z.value.includes(ut)){const Ie=Z.value.filter(Oe=>Oe!==ut);be(Ie)}else if(lt.value.includes(ut))if(e.limit>0&&Z.value.length>=e.limit){const Ie=rt.get(ut);n("exceedLimit",Ie?.value,Ne)}else{const Ie=Z.value.concat(ut);be(Ie)}M.value||Ve("")}else{if(ut!==Z.value[0]&&be([ut]),M.value){const Ie=rt.get(ut);Ie&&Ve(Ie.label)}W(!1)}},Me=e_(ut=>{n("search",ut)},e.searchDelay),je=ut=>{ut!==xe.value&&(F.value||W(!0),Ve(ut),e.allowSearch&&Me(ut))},ge=ut=>{const Ne=rt.get(ut),Ie=Z.value.filter(Oe=>Oe!==ut);be(Ie),n("remove",Ne?.value)},_e=ut=>{ut?.stopPropagation();const Ne=Z.value.filter(Ie=>{var Oe;return(Oe=rt.get(Ie))==null?void 0:Oe.disabled});be(Ne),Ve(""),n("clear",ut)},Fe=ut=>{n("dropdownScroll",ut)},He=ut=>{n("dropdownReachBottom",ut)},{validOptions:Qe,optionInfoMap:rt,validOptionInfos:ft,enabledOptionKeys:lt,handleKeyDown:Ct}=uH({multiple:h,options:l,extraOptions:re,inputValue:xe,filterOption:c,showExtraOptions:g,component:P,valueKey:d,fieldNames:S,loading:k,popupVisible:F,valueKeys:Z,dropdownRef:$,optionRefs:I,virtualListRef:N,defaultActiveFirstOption:C,onSelect:Je,onPopupVisibleChange:W}),St=j(()=>{var ut;const Ne=[];for(const Ie of G.value){const Oe=rt.get(Ie.key);Oe&&Ne.push({...Oe,value:Ie.key,label:(ut=Oe?.label)!=null?ut:String(mr(Ie.value)?Ie.value[d?.value]:Ie.value),closable:!Oe?.disabled,tagProps:Oe?.tagProps})}return Ne}),Wt=ut=>{if(Cn(t.option)){const Ne=t.option;return()=>Ne({data:ut.raw})}return Cn(ut.render)?ut.render:()=>ut.label},Tt=ut=>{if(ope(ut)){let Ne;return O(eb,{key:ut.key,label:ut.label},JRe(Ne=ut.options.map(Ie=>Tt(Ie)))?Ne:{default:()=>[Ne]})}return P5(ut,{inputValue:xe.value,filterOption:c?.value})?O(lm,{ref:Ne=>{Ne?.$el&&(I.value[ut.key]=Ne.$el)},key:ut.key,value:ut.value,label:ut.label,disabled:ut.disabled,internal:!0},{default:Wt(ut)}):null},Mt=()=>O(lH,{ref:$,loading:e.loading,empty:ft.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Fe,onReachBottom:He},{default:()=>{var ut,Ne;return[...(Ne=(ut=t.default)==null?void 0:ut.call(t))!=null?Ne:[],...Qe.value.map(Tt)]},"virtual-list":()=>O(s3,jt(e.virtualListProps,{ref:N,data:Qe.value}),{item:({item:ut})=>Tt(ut)}),empty:t.empty,header:t.header,footer:t.footer}),nn=({data:ut})=>{var Ne,Ie,Oe,Xe;if((t.label||Cn(e.formatLabel))&&ut){const ct=rt.get(ut.value);if(ct?.raw)return(Oe=(Ne=t.label)==null?void 0:Ne.call(t,{data:ct.raw}))!=null?Oe:(Ie=e.formatLabel)==null?void 0:Ie.call(e,ct.raw)}return(Xe=ut?.label)!=null?Xe:""};return()=>O(ha,jt({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:F.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:W},e.triggerProps),{default:()=>{var ut,Ne;return[(Ne=(ut=t.trigger)==null?void 0:ut.call(t))!=null?Ne:O(F8,jt({class:x,modelValue:St.value,inputValue:xe.value,multiple:e.multiple,disabled:_.value,error:T.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:F.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:je,onRemove:ge,onClear:_e,onKeydown:Ct},r),{label:nn,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Mt})}});const t_=Object.assign(JP,{Option:lm,OptGroup:eb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+JP.name,JP),e.component(n+lm.name,lm),e.component(n+eb.name,eb)}}),Spe=Symbol("RadioGroup");var pw=ke({name:"Radio",components:{IconHover:Io},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}=en(e),a=e.uninjectGroupContext?void 0:Rn(Spe,void 0),{mergedDisabled:s,eventHandlers:l}=Lo({disabled:Lu(e,"disabled")}),c=fe(null),d=fe(e.defaultChecked),h=j(()=>a?.name==="ArcoRadioGroup"),p=j(()=>{var _;return(_=a?.type)!=null?_:e.type}),m=j(()=>a?.disabled||s.value),g=j(()=>{var _,T;return h.value?a?.value===((_=e.value)!=null?_:!0):En(e.modelValue)?d.value:e.modelValue===((T=e.value)!=null?T:!0)});Rt(o,_=>{(En(_)||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,$;d.value=!0,h.value?a?.handleChange((T=e.value)!=null?T:!0,_):(t("update:modelValue",(D=e.value)!=null?D:!0),t("change",(P=e.value)!=null?P:!0,_),($=(M=l.value)==null?void 0:M.onChange)==null||$.call(M,_)),Sn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},x=j(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:m.value}]),E=()=>O(Nt,null,[O(De("icon-hover"),{class:`${r}-icon-hover`,disabled:m.value||g.value},{default:()=>[O("span",{class:`${r}-icon`},null)]}),n.default&&O("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,T,D,P;return O("label",{class:x.value},[O("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:m.value,onClick:k,onChange:C,onFocus:y,onBlur:S},null),p.value==="radio"?(P=(D=(T=n.radio)!=null?T:(_=a?.slots)==null?void 0:_.radio)==null?void 0:D({checked:g.value,disabled:m.value}))!=null?P:E():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),vw=ke({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Ae("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=en(e),{mergedDisabled:c,mergedSize:d,eventHandlers:h}=Lo({size:o,disabled:s}),{mergedSize:p}=wa(d),m=fe(e.defaultValue),g=j(()=>{var x;return(x=e.modelValue)!=null?x:m.value}),y=j(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>us(E)||Ze(E)?{label:E,value:E}:E)});ti(Spe,qt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,T;m.value=x,t("update:modelValue",x),t("change",x,E),(T=(_=h.value)==null?void 0:_.onChange)==null||T.call(_,E)}})),Rt(g,x=>{m.value!==x&&(m.value=x)}),Rt(l,x=>{(En(x)||Tl(x))&&(m.value="")});const k=j(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>y.value.map(x=>O(pw,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):Cn(x.label)?x.label():x.label]}));return()=>{var x;return O("span",{class:k.value},[y.value.length>0?C():(x=n.default)==null?void 0:x.call(n)])}}});const Dy=Object.assign(pw,{Group:vw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+pw.name,pw),e.component(n+vw.name,vw)}}),eMe=ke({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tMe=["stroke-width","stroke-linecap","stroke-linejoin"];function nMe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,tMe)}var QP=ze(eMe,[["render",nMe]]);const Al=Object.assign(QP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QP.name,QP)}});function rMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}function are(e){return e.parentElement}var iMe=ke({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=Ae("calendar"),{t:r}=Bo(),o=nr(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=j(()=>e.pageShowData.year()),l=j(()=>e.pageShowData.month()+1),c=j(()=>{const h=[s.value];for(let p=1;p<=10;p++)h.unshift(s.value-p);for(let p=1;p<10;p++)h.push(s.value+p);return h}),d=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let h;return O("div",{class:`${n}-header`},[O("div",{class:`${n}-header-left`},[a?O(Nt,null,[O(t_,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:are},null),e.mode==="month"&&O(t_,{size:"small",class:`${n}-header-value-month`,value:l,options:d,onChange:e.onMonthChange,getPopupContainer:are},null)]):O(Nt,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(Al,null,null)]),O("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),O("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[O(Ui,null,null)])]),O(Yo,{size:"small",onClick:()=>e.move(Ka())},rMe(h=r("datePicker.today"))?h:{default:()=>[h]})]),O("div",{class:`${n}-header-right`},[O(Dy.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function oMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var eR=ke({name:"Calendar",props:{modelValue:{type:Date,default:void 0},defaultValue:{type:Date},mode:{type:String},defaultMode:{type:String,default:"month"},modes:{type:Array,default:()=>["month","year"]},allowSelect:{type:Boolean,default:!0},panel:{type:Boolean,default:!1},panelWidth:{type:Number},panelTodayBtn:{type:Boolean,default:!1},dayStartOfWeek:{type:Number,default:0},isWeek:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,panelChange:e=>!0},setup(e,{emit:t,slots:n}){const{dayStartOfWeek:r,isWeek:o}=en(e),a=Ae("calendar"),s=fe(e.defaultMode),{t:l}=Bo(),c=j(()=>e.mode?e.mode:s.value),d=oMe(c.value,e.panel),h=fe(dc(e.defaultValue||Date.now(),d)),p=j(()=>e.modelValue?dc(e.modelValue,d):h.value),m=fe(p.value||Ka()),g=j(()=>vpe(m.value,{dayStartOfWeek:r.value,isWeek:o.value}));function y(M){m.value=M,t("panelChange",M.toDate())}function S(M){h.value=M,t("change",M.toDate()),t("update:modelValue",M.toDate()),y(M)}function k(M,$=!1){$||S(M)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function x(M,$){M==="prev"&&(m.value=Ys.subtract(m.value,1,$)),M==="next"&&(m.value=Ys.add(m.value,1,$)),t("panelChange",m.value.toDate())}function E(M){const $=Ys.set(m.value,"year",M);m.value=$,t("panelChange",$.toDate())}function _(M){const $=Ys.set(m.value,"month",M-1);m.value=$,t("panelChange",$.toDate())}function T(M){s.value=M}const D=j(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),P=e.panel?{width:e.panelWidth}:{};return()=>O("div",jt({class:D.value,style:P},jRe(e)),[O(iMe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:m.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:T,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(mpe,{key:m.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:m.value},{default:n.default})]),c.value==="year"&&O("div",{class:`${a}-body`},[O(URe,{key:m.value.year(),pageData:g.value,pageShowData:m.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:k},null)]),e.panel&&e.panelTodayBtn&&O("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const kpe=Object.assign(eR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+eR.name,eR)}}),vH=Symbol("ArcoCard");var tR=ke({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}=en(e),{mergedSize:o}=wa(r),a=j(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=d=>{const h=yf(d);return O("div",{class:`${n}-actions`},[O("div",{class:`${n}-actions-right`},[h.map((p,m)=>O("span",{key:`action-${m}`,class:`${n}-actions-item`},[p]))])])},l=qt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});ti(vH,l);const c=j(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var d,h,p,m,g,y,S;const k=!!((d=t.title)!=null?d:e.title),C=!!((h=t.extra)!=null?h:e.extra);return O("div",{class:c.value},[(k||C)&&O("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!k}],style:e.headerStyle},[k&&O("div",{class:`${n}-header-title`},[(m=(p=t.title)==null?void 0:p.call(t))!=null?m:e.title]),C&&O("div",{class:`${n}-header-extra`},[(y=(g=t.extra)==null?void 0:g.call(t))!=null?y:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(Pd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),mw=ke({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Ae("card-meta"),r=Rn(vH);return mn(()=>{r&&(r.hasMeta=!0)}),()=>{var o,a,s,l,c,d;const h=!!((o=t.title)!=null?o:e.title),p=!!((a=t.description)!=null?a:e.description);return O("div",{class:n},[(h||p)&&O("div",{class:`${n}-content`},[h&&O("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&O("div",{class:`${n}-description`},[(d=(c=t.description)==null?void 0:c.call(t))!=null?d:e.description])]),(t.avatar||r?.slots.actions)&&O("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&O("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const sMe=ke({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Ae("card-grid"),n=Rn(vH);return mn(()=>{n&&(n.hasGrid=!0)}),{cls:j(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function aMe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.cls)},[pt(e.$slots,"default")],2)}var gw=ze(sMe,[["render",aMe]]);const lMe=Object.assign(tR,{Meta:mw,Grid:gw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+tR.name,tR),e.component(n+mw.name,mw),e.component(n+gw.name,gw)}}),uMe=ke({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=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=j(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=j(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=j(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),cMe=["data-index"];function dMe(e,t,n,r,o,a){return z(),ee("div",jt({class:e.cls},e.eventHandlers),[e.type==="slider"?(z(),ee("span",{key:0,style:Ke(e.sliderStyle),class:ue([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(z(!0),ee(Nt,{key:1},vn(Array(e.count),(s,l)=>(z(),ee("span",{key:l,"data-index":l,class:ue([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,cMe))),128))],16)}var fMe=ze(uMe,[["render",dMe]]);const hMe=ke({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pMe=["stroke-width","stroke-linecap","stroke-linejoin"];function vMe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,pMe)}var nR=ze(hMe,[["render",vMe]]);const Y_=Object.assign(nR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nR.name,nR)}}),mMe=ke({name:"Arrow",components:{IconUp:Y_,IconDown:Yh,IconLeft:Al,IconRight:Ui},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=j(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function gMe(e,t,n,r,o,a){const s=De("IconLeft"),l=De("IconUp"),c=De("IconRight"),d=De("IconDown");return z(),ee("div",{class:ue(e.cls)},[L("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(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))],2),L("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(),Ye(c,{key:0})):(z(),Ye(d,{key:1}))],2)],2)}var yMe=ze(mMe,[["render",gMe]]);const xpe=Symbol("ArcoCarousel"),X_=e=>{const t={},n=fe([]),r=()=>{if(t.value){const o=Hhe(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return mn(()=>r()),Qa(()=>r()),{children:t,components:n}},lre={interval:3e3,hoverToPause:!0};function rR(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var iR=ke({name:"Carousel",props:{current:{type:Number},defaultCurrent:{type:Number,default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{type:Number,default:500},animationName:{type:String,default:"slide"},trigger:{type:String,default:"click"},direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"},arrowClass:{type:String,default:""},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"bottom"},indicatorClass:{type:String,default:""},transitionTimingFunction:{type:String,default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:{"update:current":e=>!0,change:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{current:r,animationName:o,moveSpeed:a,transitionTimingFunction:s}=en(e),l=Ae("carousel"),c=fe(!1),d=fe(),h=fe(),p=j(()=>mr(e.autoPlay)?{...lre,...e.autoPlay}:e.autoPlay?lre:{});let m=0,g=0;const{children:y,components:S}=X_("CarouselItem"),k=fe(e.defaultCurrent-1),C=j(()=>{const U=S.value.length,G=Ze(r.value)?rR(r.value-1,U):k.value,Z=rR(G-1,U),oe=rR(G+1,U);return{mergedIndex:G,mergedPrevIndex:Z,mergedNextIndex:oe}}),x=qt({items:S,slideTo:_,mergedIndexes:C,previousIndex:d,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});ti(xpe,x);const E=()=>{m&&window.clearInterval(m)};Os(()=>{var U;const{interval:G}=p.value||{},{mergedNextIndex:Z}=C.value,oe=((U=S.value)==null?void 0:U.length)>1&&!c.value&&!!G;E(),oe&&(m=window.setInterval(()=>{_({targetIndex:Z})},G))}),Ao(()=>{E()});function _({targetIndex:U,isNegative:G=!1,isManual:Z=!1}){!g&&U!==C.value.mergedIndex&&(d.value=k.value,k.value=U,h.value=G?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,d.value+1,Z))}const T=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),D=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),P=U=>_({targetIndex:U,isNegative:Up.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),$=j(()=>e.indicatorType!=="never"&&S.value.length>1),I=j(()=>e.showArrow!=="never"&&S.value.length>1),N=j(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),F=j(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),W=j(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var U;return y.value=(U=n.default)==null?void 0:U.call(n),O("div",jt({class:N.value},M.value),[O("div",{class:F.value},[y.value]),$.value&&O("div",{class:W.value},[O(fMe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:P},null)]),I.value&&O(yMe,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:T,onNextClick:D},null)])}}});const bMe=ke({name:"CarouselItem",setup(){const e=Ae("carousel-item"),t=yo(),n=Rn(xpe,{}),r=j(()=>{var l,c,d;return(d=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?d:-1}),o=j(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=j(()=>{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=j(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),_Me=["aria-hidden"];function SMe(e,t,n,r,o,a){return z(),ee("div",{"aria-hidden":!e.isCurrent,class:ue(e.cls),style:Ke(e.animationStyle)},[pt(e.$slots,"default")],14,_Me)}var yw=ze(bMe,[["render",SMe]]);const kMe=Object.assign(iR,{Item:yw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+iR.name,iR),e.component(n+yw.name,yw)}}),Cpe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:o,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:d,fieldNames:h})=>{let p=0;const m=(y,S,k)=>{var C;const x=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),y.map((E,_)=>{var T;const D=E[h.value],P={raw:E,value:D,label:(T=E[h.label])!=null?T:String(D),disabled:!!E[h.disabled],selectionDisabled:!1,render:E[h.render],tagProps:E[h.tagProps],isLeaf:E[h.isLeaf],level:x.length,index:_,key:"",valueKey:String(mr(D)?D[d.value]:D),parent:S,path:[],pathValue:[]},M=x.concat(P),$=[],I=M.map(N=>($.push(N.value),N.valueKey)).join("-");return P.path=M,P.pathValue=$,P.key=I,E[h.children]?(P.isLeaf=!1,P.children=m(E[h.children],P,(k??1)+1)):l&&!P.isLeaf?(P.isLeaf=!1,c[I]&&(P.children=m(c[I],P,(k??1)+1))):P.isLeaf=!0,P.children&&!P.disabled&&(P.totalLeafOptions=P.children.reduce((N,F)=>Ze(F.totalLeafOptions)?N+F.totalLeafOptions:F.disabled||F.selectionDisabled?N:N+(F.isLeaf?1:0),0),P.totalLeafOptions===0&&!s.value&&(P.selectionDisabled=!0)),t.set(P.key,P),(P.isLeaf||s.value)&&(r.add(P),n.set(P.key,P),o.has(P.valueKey)||o.set(P.valueKey,P.key)),P})},g=m(e);return a.value=p,g},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},wpe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(nr(e))return e.map(a=>mr(a)?a[t]:a).join("-");const o=mr(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Epe=(e,{multiple:t,pathMode:n})=>nr(e)?n&&!t&&e.length>0&&!nr(e[0])?[e]:e:En(e)||Tl(e)||e===""?[]:[e],Tpe=e=>e.path.map(t=>t.label).join(" / "),bH=Symbol("ArcoCascader");var Xj=ke({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Ae("cascader-option"),n=Rn(bH,{}),r=fe(!1),o={},a=h=>{var p;if(Cn(n.loadMore)&&!e.option.isLeaf){const{isLeaf:m,children:g,key:y}=e.option;!m&&!g&&(r.value=!0,new Promise(S=>{var k;(k=n.loadMore)==null||k.call(n,e.option.raw,S)}).then(S=>{var k;r.value=!1,S&&((k=n.addLazyLoadOptions)==null||k.call(n,S,y))}))}(p=n.setSelectedPath)==null||p.call(n,e.option.key)};e.option.disabled||(o.onMouseenter=[()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n,e.option.key)}],o.onMouseleave=()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n)},o.onClick=[],n.expandTrigger==="hover"?o.onMouseenter.push(h=>a()):o.onClick.push(h=>a()),e.option.isLeaf&&!e.multiple&&o.onClick.push(h=>{var p;a(),(p=n.onClickOption)==null||p.call(n,e.option)}));const s=j(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=j(()=>{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,m;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Tpe(e.option):(m=n.slots)!=null&&m.option?n.slots.option({data:e.option}):Cn(e.option.render)?e.option.render():e.option.label},d=()=>r.value?O(Xa,null,null):!e.searchOption&&!e.option.isLeaf?O(Ui,null,null):null;return()=>{var h;return O("li",jt({tabindex:"0",role:"menuitem","aria-disabled":e.option.disabled,"aria-haspopup":!e.option.isLeaf,"aria-expanded":!e.option.isLeaf&&e.active,title:e.option.label,class:s.value},o),[e.multiple&&O(Id,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,m)=>{var g;m.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&O(Dy,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,m)=>{var g;m.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),O("div",{class:`${t}-label`},[c(),d()])])}}}),xMe=ke({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Ae("cascader"),r=Rn(Ya,void 0),o=fe(),a=fe(!!e.virtualListProps),s=()=>{var l,c,d,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(d=r==null?void 0:(c=r.slots).empty)==null?void 0:d.call(c,{component:"cascader"}))!=null?p:O(qh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(Rd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(s3,jt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>O(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(Rd,{class:`${n}-column-content`},{default:()=>[O("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>O(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function CMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var Ape=ke({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Ae("cascader"),r=Rn(Ya,void 0),o=()=>{var s,l,c,d,h;return(h=(d=(s=t.empty)==null?void 0:s.call(t))!=null?d:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:O(qh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(Pd,null,null)]):e.displayColumns.length===0?O("div",{key:"panel-column-empty",class:`${n}-panel-column`},[O("div",{class:`${n}-list-empty`},[o()])]):e.displayColumns.map((s,l)=>O(xMe,{key:`column-${l}`,column:s,level:l,selectedPath:e.selectedPath,activeKey:e.activeKey,totalLevel:e.totalLevel,multiple:e.multiple,checkStrictly:e.checkStrictly,virtualListProps:e.virtualListProps},{empty:t.empty}));return()=>{let s;return O(n3,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},CMe(s=a())?s:{default:()=>[s]})}}});function wMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var EMe=ke({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Ae("cascader"),r=Rn(Ya,void 0),o=()=>{var a,s,l,c,d;return e.loading?O(Pd,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(d=(c=(a=t.empty)==null?void 0:a.call(t))!=null?c:(l=r==null?void 0:(s=r.slots).empty)==null?void 0:l.call(s,{component:"cascader"}))!=null?d:O(qh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(Xj,{key:h.key,class:`${n}-search-option`,option:h,active:h.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly,pathLabel:e.pathLabel,searchOption:!0},null))])};return()=>{let a;return O(Rd,{class:[`${n}-panel`,`${n}-search-panel`]},wMe(a=o())?a:{default:()=>[a]})}}});const Ipe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=fe(),s=j(()=>{if(a.value)return t.get(a.value)}),l=fe([]),c=j(()=>{const y=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&y.push(k.children)}return y}),d=y=>{var S;const k=m(y);l.value=(S=k?.path.map(C=>C.key))!=null?S:[]},h=y=>{a.value=y},p=j(()=>{var y;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(y=s.value.parent.children)==null?void 0:y.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),m=y=>{let S=y?t.get(y):void 0;if(o.value)for(;S&&S.children&&S.children.length>0;)S=S.children[0];return S};return{activeKey:a,activeOption:s,selectedPath:l,displayColumns:c,setActiveKey:h,setSelectedPath:d,getNextActiveNode:y=>{var S,k,C,x,E,_,T;const D=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const P=(x=(C=p.value)==null?void 0:C.findIndex(M=>M.key===a.value))!=null?x:0;return y==="next"?(E=p.value)==null?void 0:E[(D+P+1)%D]:(_=p.value)==null?void 0:_[(D+P-1)%D]}return(T=p.value)==null?void 0:T[0]}}},TMe=ke({name:"Cascader",components:{Trigger:ha,SelectView:F8,BaseCascaderPanel:Ape,CascaderSearchPanel:EMe},inheritAttrs:!1,props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{type:String},allowSearch:{type:Boolean,default:e=>!!e.multiple},allowClear:{type:Boolean,default:!1},inputValue:{type:String,default:void 0},defaultInputValue:{type:String,default:""},popupVisible:{type:Boolean,default:void 0},expandTrigger:{type:String,default:"click"},defaultPopupVisible:{type:Boolean,default:!1},placeholder:String,filterOption:{type:Function},popupContainer:{type:[String,Object]},maxTagCount:{type:Number,default:0},formatLabel:{type:Function},triggerProps:{type:Object},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{type:Number,default:500},fieldNames:{type:Object},valueKey:{type:String,default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},virtualListProps:{type:Object},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,clear:()=>!0,search:e=>!0,popupVisibleChange:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:o,loadMore:a,formatLabel:s,modelValue:l,disabled:c,valueKey:d,expandTrigger:h,expandChild:p,pathMode:m,multiple:g}=en(e),y=fe(e.defaultValue),S=fe(e.defaultInputValue),k=fe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:x}=Lo({disabled:c});Rt(l,ft=>{(En(ft)||Tl(ft))&&(y.value=e.multiple?[]:void 0)});const E=fe([]),_=fe(1),T=qt(new Map),D=qt(new Map),P=qt(new Map),M=qt(new Set),$=qt({}),I=(ft,lt)=>{$[lt]=ft},N={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},F=j(()=>({...N,...e.fieldNames}));Rt([r,$,F],([ft,lt,Ct])=>{T.clear(),D.clear(),P.clear(),M.clear(),E.value=Cpe(ft??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:$,optionMap:T,leafOptionSet:M,leafOptionMap:D,leafOptionValueMap:P,totalLevel:_,checkStrictly:o,valueKey:d,fieldNames:Ct})},{immediate:!0,deep:!0});const W=j(()=>{var ft;const lt=Epe((ft=e.modelValue)!=null?ft:y.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(lt.map(Ct=>[wpe(Ct,{valueKey:e.valueKey,leafOptionValueMap:P}),Ct]))}),U=j(()=>{var ft;return(ft=e.inputValue)!=null?ft:S.value}),G=j(()=>{var ft;return(ft=e.popupVisible)!=null?ft:k.value}),Z=ft=>{var lt;return ft?.toLocaleLowerCase().includes((lt=U.value)==null?void 0:lt.toLocaleLowerCase())},oe=j(()=>(e.checkStrictly?Array.from(T.values()):Array.from(M)).filter(lt=>{var Ct;return Cn(e.filterOption)?e.filterOption(U.value,lt.raw):e.checkStrictly?Z(lt.label):(Ct=lt.path)==null?void 0:Ct.find(St=>Z(St.label))})),X=ft=>{var lt,Ct,St;const Wt=e.multiple?ft:(lt=ft[0])!=null?lt:"";ft.length===0&&(Fe(),_e()),y.value=Wt,t("update:modelValue",Wt),t("change",Wt),(St=(Ct=x.value)==null?void 0:Ct.onChange)==null||St.call(Ct)};Rt([g,m],()=>{const ft=[];W.value.forEach((lt,Ct)=>{const St=D.get(Ct);St&&ft.push(m.value?St.pathValue:St.value)}),X(ft)});const H=ft=>{G.value!==ft&&(k.value=ft,t("popupVisibleChange",ft))},q=ft=>{if(e.multiple){const lt=D.get(ft);if(lt)ne(lt,!1);else{const Ct=[];W.value.forEach((St,Wt)=>{Wt!==ft&&Ct.push(St)}),X(Ct)}}},Q=ft=>{X([e.pathMode?ft.pathValue:ft.value]),H(!1)},ne=(ft,lt)=>{if(lt){const Ct=e.checkStrictly?[ft]:yH(ft);X([...W.value.values(),...Ct.filter(St=>!W.value.has(St.key)).map(St=>e.pathMode?St.pathValue:St.value)])}else{const Ct=e.checkStrictly?[ft.key]:gH(ft),St=[];W.value.forEach((Wt,Tt)=>{Ct.includes(Tt)||St.push(Wt)}),X(St)}Se("","optionChecked")},ae=(ft,lt)=>{e.multiple?ne(ft,lt??!0):Q(ft)},re=e_(ft=>{t("search",ft)},e.searchDelay),Se=(ft,lt)=>{ft!==U.value&&(lt==="manual"&&!G.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=ft,t("inputValueChange",ft),e.allowSearch&&re(ft))};Rt(G,ft=>{if(ft){if(W.value.size>0){const lt=Array.from(W.value.keys()),Ct=lt[lt.length-1],St=D.get(Ct);St&&St.key!==Je.value&&(Fe(St.key),_e(St.key))}}else W.value.size===0&&(Fe(),_e()),Se("","optionListHide")});const xe=ft=>{if(ft.stopPropagation(),e.multiple){const lt=[];W.value.forEach((Ct,St)=>{const Wt=D.get(St);Wt?.disabled&<.push(e.pathMode?Wt.pathValue:Wt.value)}),X(lt)}else X([]);Se("","manual"),t("clear")},ve=j(()=>e.allowSearch&&U.value.length>0),be=ft=>{t("focus",ft)},Ve=ft=>{t("blur",ft)},{activeKey:Je,activeOption:Me,selectedPath:je,displayColumns:ge,setActiveKey:_e,setSelectedPath:Fe,getNextActiveNode:He}=Ipe(E,{optionMap:T,filteredLeafOptions:oe,showSearchPanel:ve,expandChild:p});ti(bH,qt({onClickOption:ae,setActiveKey:_e,setSelectedPath:Fe,loadMore:a,expandTrigger:h,addLazyLoadOptions:I,formatLabel:s,slots:n,valueMap:W}));const Qe=R5(new Map([[Uo.ENTER,ft=>{if(G.value){if(Me.value){let lt;e.checkStrictly||Me.value.isLeaf?lt=!W.value.has(Me.value.key):lt=!mH(Me.value,W.value).checked,Fe(Me.value.key),ae(Me.value,lt)}}else H(!0)}],[Uo.ESC,ft=>{H(!1)}],[Uo.ARROW_DOWN,ft=>{ft.preventDefault();const lt=He("next");_e(lt?.key)}],[Uo.ARROW_UP,ft=>{ft.preventDefault();const lt=He("preview");_e(lt?.key)}],[Uo.ARROW_RIGHT,ft=>{var lt,Ct;ve.value||(ft.preventDefault(),(lt=Me.value)!=null&<.children&&(Fe(Me.value.key),_e((Ct=Me.value.children[0])==null?void 0:Ct.key)))}],[Uo.ARROW_LEFT,ft=>{var lt;ve.value||(ft.preventDefault(),(lt=Me.value)!=null&<.parent&&(Fe(Me.value.parent.key),_e(Me.value.parent.key)))}]])),rt=j(()=>{const ft=[];return W.value.forEach((lt,Ct)=>{var St,Wt;const Tt=D.get(Ct);if(Tt)ft.push({value:Ct,label:(Wt=(St=e.formatLabel)==null?void 0:St.call(e,Tt.path.map(Mt=>Mt.raw)))!=null?Wt:Tpe(Tt),closable:!Tt.disabled,tagProps:Tt.tagProps});else if(e.fallback){const Mt=Cn(e.fallback)?e.fallback(lt):nr(lt)?lt.join(" / "):String(lt);ft.push({value:Ct,label:Mt,closable:!0})}}),ft});return{optionInfos:E,filteredLeafOptions:oe,selectedPath:je,activeKey:Je,displayColumns:ge,computedInputValue:U,computedPopupVisible:G,handleClear:xe,selectViewValue:rt,handleInputValueChange:Se,showSearchPanel:ve,handlePopupVisibleChange:H,handleFocus:be,handleBlur:Ve,handleRemove:q,mergedDisabled:C,handleKeyDown:Qe,totalLevel:_}}});function AMe(e,t,n,r,o,a){const s=De("select-view"),l=De("cascader-search-panel"),c=De("base-cascader-panel"),d=De("trigger");return z(),Ye(d,jt(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(),Ye(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},Eo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[pt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(z(),Ye(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:""},Eo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[pt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:de(()=>[O(s,jt({"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}),Eo({_:2},[e.$slots.label?{name:"label",fn:de(h=>[pt(e.$slots,"label",qi(Sa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[pt(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[pt(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[pt(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[pt(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=ze(TMe,[["render",AMe]]);const IMe=ke({name:"CascaderPanel",components:{BaseCascaderPanel:Ape},props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},fieldNames:{type:Object},valueKey:{type:String,default:"value"},expandChild:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:o,loadMore:a,modelValue:s,valueKey:l,expandChild:c,expandTrigger:d}=en(e),h=fe(e.defaultValue);Rt(s,H=>{(En(H)||Tl(H))&&(h.value=e.multiple?[]:void 0)});const p=fe([]),m=fe(1),g=qt(new Map),y=qt(new Map),S=qt(new Map),k=qt(new Set),C=qt({}),x=(H,q)=>{C[q]=H},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=j(()=>({...E,...e.fieldNames}));Rt([r,C,_],([H,q,Q])=>{g.clear(),y.clear(),S.clear(),k.clear(),p.value=Cpe(H??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:q,optionMap:g,leafOptionSet:k,leafOptionMap:y,leafOptionValueMap:S,totalLevel:m,checkStrictly:o,fieldNames:Q,valueKey:l})},{immediate:!0});const T=j(()=>{var H;const q=Epe((H=e.modelValue)!=null?H:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(q.map(Q=>[wpe(Q,{valueKey:e.valueKey,leafOptionValueMap:S}),Q]))}),D=j(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),P=H=>{var q;const Q=e.multiple?H:(q=H[0])!=null?q:"";H.length===0&&(Z(),G()),h.value=Q,t("update:modelValue",Q),t("change",Q)},M=H=>{P([e.pathMode?H.pathValue:H.value])},$=(H,q)=>{if(q){const Q=e.checkStrictly?[H]:yH(H);P([...T.value.values(),...Q.filter(ne=>!T.value.has(ne.key)).map(ne=>e.pathMode?ne.pathValue:ne.value)])}else{const Q=e.checkStrictly?[H.key]:gH(H),ne=[];T.value.forEach((ae,re)=>{Q.includes(re)||ne.push(ae)}),P(ne)}},I=(H,q)=>{e.multiple?$(H,q??!0):M(H)},{activeKey:N,activeOption:F,selectedPath:W,displayColumns:U,setActiveKey:G,setSelectedPath:Z,getNextActiveNode:oe}=Ipe(p,{optionMap:g,filteredLeafOptions:D,expandChild:c});ti(bH,qt({onClickOption:I,setActiveKey:G,setSelectedPath:Z,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:T,expandTrigger:d}));const X=R5(new Map([[Uo.ENTER,H=>{if(F.value){let q;e.checkStrictly||F.value.isLeaf?q=!T.value.has(F.value.key):q=!mH(F.value,T.value).checked,Z(F.value.key),I(F.value,q)}}],[Uo.ARROW_DOWN,H=>{H.preventDefault();const q=oe("next");G(q?.key)}],[Uo.ARROW_UP,H=>{H.preventDefault();const q=oe("preview");G(q?.key)}],[Uo.ARROW_RIGHT,H=>{var q,Q;H.preventDefault(),(q=F.value)!=null&&q.children&&(Z(F.value.key),G((Q=F.value.children[0])==null?void 0:Q.key))}],[Uo.ARROW_LEFT,H=>{var q;H.preventDefault(),(q=F.value)!=null&&q.parent&&(Z(F.value.parent.key),G(F.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:D,selectedPath:W,activeKey:N,displayColumns:U,handleKeyDown:X,totalLevel:m}}});function LMe(e,t,n,r,o,a){const s=De("base-cascader-panel");return z(),Ye(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},Eo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[pt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var bw=ze(IMe,[["render",LMe]]);const DMe=Object.assign(oR,{CascaderPanel:bw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+oR.name,oR),e.component(n+bw.name,bw)}}),Lpe=Symbol("collapseCtx"),PMe=ke({name:"Collapse",props:{activeKey:{type:Array,default:void 0},defaultActiveKey:{type:Array,default:()=>[]},accordion:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},expandIconPosition:{type:String,default:"left"},bordered:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},emits:{"update:activeKey":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{expandIconPosition:r,destroyOnHide:o,showExpandIcon:a}=en(e),s=Ae("collapse"),l=fe(e.defaultActiveKey),c=j(()=>{var p;const m=(p=e.activeKey)!=null?p:l.value;return nr(m)?m:[m]});ti(Lpe,qt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:o,handleClick:(p,m)=>{let g=[];if(e.accordion)c.value.includes(p)||(g=[p]),l.value=g;else{g=[...c.value];const y=g.indexOf(p);y>-1?g.splice(y,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,m)}}));const h=j(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function RMe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.cls)},[pt(e.$slots,"default")],2)}var sR=ze(PMe,[["render",RMe]]);const MMe=ke({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OMe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Me(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1)]),14,OMe)}var aR=ze(MMe,[["render",$Me]]);const _H=Object.assign(aR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aR.name,aR)}}),BMe=ke({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NMe=["stroke-width","stroke-linecap","stroke-linejoin"];function FMe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,NMe)}var lR=ze(BMe,[["render",FMe]]);const SH=Object.assign(lR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lR.name,lR)}});var _w=ke({name:"CollapseItem",components:{IconHover:Io,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=yo(),o=Ae("collapse-item"),a=Rn(Lpe,{}),s=r&&Ze(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=j(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=j(()=>a.destroyOnHide||e.destroyOnHide),d=j(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=fe(c.value?l.value:!0),p=j(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),m=_=>{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=j(()=>[o,{[`${o}-active`]:l.value}]),S=j(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),k=j(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),C=j(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),x=()=>p.value==="right"?O(De("icon-caret-left"),{class:`${o}-expand-icon`},null):O(De("icon-caret-right"),{class:`${o}-expand-icon`},null),E=()=>d.value&&O(De("icon-hover"),{prefix:o,class:k.value,disabled:e.disabled},{default:()=>{var _,T,D,P;return[(P=(D=(T=t["expand-icon"])!=null?T:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:D({active:l.value,disabled:e.disabled,position:p.value}))!=null?P:x()]}});return()=>{var _,T,D;return O("div",{class:y.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:m},[E(),O("div",{class:`${o}-header-title`},[(T=(_=t.header)==null?void 0:_.call(t))!=null?T:e.header]),t.extra&&O("div",{class:`${o}-header-extra`},[(D=t.extra)==null?void 0:D.call(t)])]),O(xs,jt({name:"collapse-slider"},g),{default:()=>{var P;return[Ei(O("div",{role:"region",class:C.value},[h.value&&O("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(P=t.default)==null?void 0:P.call(t)])]),[[Jo,l.value]])]}})])}}});const jMe=Object.assign(sR,{Item:_w,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+sR.name,sR),e.component(n+_w.name,_w)}}),VMe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Dpe=(e,t,n)=>{const r=Math.floor(e*6),o=e*6-r,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,d=[n,s,a,a,l,n][c],h=[l,n,n,s,a,a][c],p=[a,a,l,n,n,s][c];return{r:Math.round(d*255),g:Math.round(h*255),b:Math.round(p*255)}},$5=(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),ure=e=>sa(e)/255,GMe=e=>{let t=qp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=qp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=qp.hex8.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3]),a:ure(t[4])}:(t=qp.hex6.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=qp.hex4.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3]),a:ure(t[4]+t[4])}:(t=qp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)))))},KMe=e=>{var t;const n=GMe(e);return n?{...$5(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Ppe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=qp.hex6.exec(e);return t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=qp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)},cre=(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(),qMe=(e,t,n,r)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(r*255).toString(16).padStart(2,"0")].join("").toUpperCase(),Rpe=({value:e,onChange:t})=>{const n=fe(!1),r=fe(),o=fe(),a=(h,p)=>h<0?0:h>p?1:h/p,s=h=>{if(!r.value)return;const{clientX:p,clientY:m}=h,g=r.value.getBoundingClientRect(),y=[a(p-g.x,g.width),a(m-g.y,g.height)];(y[0]!==e[0]||y[1]!==e[1])&&t?.(y)},l=()=>{n.value=!1,window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",d),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function d(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:o,onMouseDown:c}};var dre=ke({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=j(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Rpe({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>O("div",{ref:o,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?O("div",{class:`${t}-control-bar-bg`},[O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-alpha`],style:{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${n.value.r}, ${n.value.g}, ${n.value.b}))`},onMousedown:a},[s()])]):O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),YMe=ke({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Ae("color-picker"),n=j(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Rpe({value:[n.value.s,1-n.value.v],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0],1-l[1])}}),s=j(()=>{const l=Dpe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>O("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[O("div",{ref:o,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function kH(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function xf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function n_(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=xf(e);return t>0?kH(Number(e)*Math.pow(10,t)):Number(e)}function Zj(e){Ope&&(e>Number.MAX_SAFE_INTEGER||e["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),t9e=["stroke-width","stroke-linecap","stroke-linejoin"];function n9e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,t9e)}var uR=ze(e9e,[["render",n9e]]);const Cf=Object.assign(uR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uR.name,uR)}}),r9e=ke({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),i9e=["stroke-width","stroke-linecap","stroke-linejoin"];function o9e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 24h38"},null,-1)]),14,i9e)}var cR=ze(r9e,[["render",o9e]]);const Im=Object.assign(cR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cR.name,cR)}}),s9e=800,a9e=150;Xl.enableBoundaryChecking(!1);var dR=ke({name:"InputNumber",props:{modelValue:Number,defaultValue:Number,mode:{type:String,default:"embed"},precision:Number,step:{type:Number,default:1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},formatter:{type:Function},parser:{type:Function},placeholder:String,hideButton:{type:Boolean,default:!1},size:{type:String},allowClear:{type:Boolean,default:!1},modelEvent:{type:String,default:"change"},readOnly:{type:Boolean,default:!1},inputAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0,clear:e=>!0,input:(e,t,n)=>!0,keydown:e=>!0},setup(e,{emit:t,slots:n}){var r;const{size:o,disabled:a}=en(e),s=Ae("input-number"),l=fe(),{mergedSize:c,mergedDisabled:d,eventHandlers:h}=Lo({size:o,disabled:a}),{mergedSize:p}=wa(c),m=j(()=>{if(Ze(e.precision)){const Q=`${e.step}`.split(".")[1],ne=Q&&Q.length||0;return Math.max(ne,e.precision)}}),g=Q=>{var ne,ae;if(!Ze(Q))return"";const re=m.value?Q.toFixed(m.value):String(Q);return(ae=(ne=e.formatter)==null?void 0:ne.call(e,re))!=null?ae:re},y=fe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=j(()=>{var Q,ne;if(!y.value)return;const ae=Number((ne=(Q=e.parser)==null?void 0:Q.call(e,y.value))!=null?ne:y.value);return Number.isNaN(ae)?void 0:ae}),k=fe(Ze(S.value)&&S.value<=e.min),C=fe(Ze(S.value)&&S.value>=e.max);let x=0;const E=()=>{x&&(window.clearTimeout(x),x=0)},_=Q=>{if(!En(Q))return Ze(e.min)&&Qe.max&&(Q=e.max),Ze(m.value)?Xl.round(Q,m.value):Q},T=Q=>{let ne=!1,ae=!1;Ze(Q)&&(Q<=e.min&&(ne=!0),Q>=e.max&&(ae=!0)),C.value!==ae&&(C.value=ae),k.value!==ne&&(k.value=ne)},D=()=>{const Q=_(S.value),ne=g(Q);(Q!==S.value||y.value!==ne)&&(y.value=ne),t("update:modelValue",Q)};Rt(()=>[e.max,e.min],()=>{D(),T(S.value)});const P=(Q,ne)=>{if(d.value||Q==="plus"&&C.value||Q==="minus"&&k.value)return;let ae;Ze(S.value)?ae=_(Xl[Q](S.value,e.step)):ae=e.min===-1/0?0:e.min,y.value=g(ae),T(ae),t("update:modelValue",ae),t("change",ae,ne)},M=(Q,ne,ae=!1)=>{var re;Q.preventDefault(),!e.readOnly&&((re=l.value)==null||re.focus(),P(ne,Q),ae&&(x=window.setTimeout(()=>Q.target.dispatchEvent(Q),x?a9e:s9e)))},$=(Q,ne)=>{var ae,re,Se,xe;Q=Q.trim().replace(/。/g,"."),Q=(re=(ae=e.parser)==null?void 0:ae.call(e,Q))!=null?re:Q,(Ze(Number(Q))||/^(\.|-)$/.test(Q))&&(y.value=(xe=(Se=e.formatter)==null?void 0:Se.call(e,Q))!=null?xe:Q,T(S.value),t("input",S.value,y.value,ne),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,ne)))},I=Q=>{t("focus",Q)},N=(Q,ne)=>{ne instanceof MouseEvent&&!Q||(D(),t("change",S.value,ne))},F=Q=>{t("blur",Q)},W=Q=>{var ne,ae;y.value="",t("update:modelValue",void 0),t("change",void 0,Q),(ae=(ne=h.value)==null?void 0:ne.onChange)==null||ae.call(ne,Q),t("clear",Q)},U=R5(new Map([[Uo.ARROW_UP,Q=>{Q.preventDefault(),!e.readOnly&&P("plus",Q)}],[Uo.ARROW_DOWN,Q=>{Q.preventDefault(),!e.readOnly&&P("minus",Q)}]])),G=Q=>{t("keydown",Q),Q.defaultPrevented||U(Q)};Rt(()=>e.modelValue,Q=>{Q!==S.value&&(y.value=g(Q),T(Q))});const Z=()=>{var Q,ne,ae;return e.readOnly?null:O(Nt,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(Q=n.suffix)==null?void 0:Q.call(n)]),O("div",{class:`${s}-step`},[O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||C.value}],type:"button",tabindex:"-1",disabled:d.value||C.value,onMousedown:re=>M(re,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(ne=n.plus)==null?void 0:ne.call(n):O(Y_,null,null)]),O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||k.value}],type:"button",tabindex:"-1",disabled:d.value||k.value,onMousedown:re=>M(re,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(ae=n.minus)==null?void 0:ae.call(n):O(Yh,null,null)])])])},oe=j(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),X=()=>O(Yo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||k.value,onMousedown:Q=>M(Q,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Im,null,null)}),H=()=>O(Yo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||C.value,onMousedown:Q=>M(Q,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Cf,null,null)});return{inputRef:l,render:()=>{const Q=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:Z,append:n.append}:{prepend:e.hideButton?n.prepend:X,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:H};return O(O0,{key:`__arco__${e.mode}`,ref:l,class:oe.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:y.value,placeholder:e.placeholder,disabled:d.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":y.value,...e.inputAttrs},onInput:$,onFocus:I,onBlur:F,onClear:W,onChange:N,onKeydown:G},Q)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Z_=Object.assign(dR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+dR.name,dR)}});var $pe=ke({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Ae("color-picker");return()=>O(Z_,{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:()=>"%"})}}),l9e=ke({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Ae("color-picker"),{color:n}=en(e),r=o=>{var a;const s={...n.value.rgb,...o},l=$5(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>O(ty,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>O(Z_,{key:o,size:"mini",min:0,max:255,disabled:e.disabled,modelValue:n.value.rgb[o],hideButton:!0,onChange:(a=0)=>r({[o]:a})},null)),!e.disabledAlpha&&O($pe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),u9e=ke({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Ae("color-picker"),{color:n}=en(e),[r,o]=Ga(n.value.hex),a=c=>{var d;const h=Ppe(c)||{r:255,g:0,b:0},p=$5(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)}),()=>O(ty,{class:`${t}-input-group`},{default:()=>[O(O0,{class:`${t}-input-hex`,size:"mini",maxLength:6,disabled:e.disabled,modelValue:r.value,onInput:o,onChange:s,onBlur:()=>a,onPressEnter:()=>a,onPaste:l},{prefix:()=>"#"}),!e.disabledAlpha&&O($pe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),c9e=ke({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=Bo(),n=Ae("color-picker"),r=j(()=>e.color.hsv),[o,a]=Ga(e.format||"hex"),s=m=>{a(m)};fe(!1);const l=m=>{var g;const y=Ppe(m)||{r:255,g:0,b:0},S=$5(y.r,y.g,y.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const m={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return o.value==="rgb"?O(l9e,m,null):O(u9e,m,null)},d=m=>O("div",{key:m,class:`${n}-color-block`,style:{backgroundColor:m},onClick:()=>l(m)},[O("div",{class:`${n}-block`,style:{backgroundColor:m}},null)]),h=(m,g)=>O("div",{class:`${n}-colors-section`},[O("div",{class:`${n}-colors-text`},[m]),O("div",{class:`${n}-colors-wrapper`},[g?.length?O("div",{class:`${n}-colors-list`},[g.map(d)]):O("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?O("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>O("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[O(YMe,{color:e.color,onChange:(m,g)=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:r.value.h,s:m,v:g})}},null),O("div",{class:`${n}-panel-control`},[O("div",{class:`${n}-control-wrapper`},[O("div",null,[O(dre,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:m=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:m,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&O(dre,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),O("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),O("div",{class:`${n}-input-wrapper`},[O(t_,{class:`${n}-select`,size:"mini","trigger-props":{class:`${n}-select-popup`},options:[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"}],modelValue:o.value,onChange:s},null),O("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),fR=ke({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>VMe}},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=j(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=j(()=>KMe(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!==m.value&&(l(x.a),d({h:x.h,s:x.s,v:x.v}))});const h=j(()=>{const x=Dpe(c.value.h,c.value.s,c.value.v),E=cre(x.r,x.g,x.b);return{hsv:c.value,rgb:x,hex:E}}),p=j(()=>{const{r:x,g:E,b:_}=h.value.rgb;return`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`}),m=j(()=>{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?`#${qMe(x,E,_,s.value)}`:`#${cre(x,E,_)}`});Rt(m,x=>{t("update:modelValue",x),t("change",x)});const g=x=>{!e.disabled&&d(x)},y=x=>{!e.disabled&&l(x)},S=x=>{t("popup-visible-change",x,m.value)},k=()=>O("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[O("div",{class:`${r}-preview`,style:{backgroundColor:m.value}},null),e.showText&&O("div",{class:`${r}-value`},[m.value]),O("input",{class:`${r}-input`,value:m.value,disabled:e.disabled},null)]),C=()=>O(c9e,{color:h.value,alpha:s.value,colorString:p.value,historyColors:e.historyColors,presetColors:e.presetColors,showHistory:e.showHistory,showPreset:e.showPreset,disabled:e.disabled,disabledAlpha:e.disabledAlpha,format:e.format,onHsvChange:g,onAlphaChange:y},null);return()=>e.hideTrigger?C():O(ha,jt({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 d9e=Object.assign(fR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+fR.name,fR)}});function Bpe(e,t,n){return j(()=>!!(e[n]||t[n]))}const f9e=ke({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=Ae("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Bpe(e,t,c)),l=j(()=>{const{align:c}=e;return{...us(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),h9e=["src"],p9e={key:0},v9e={key:0},m9e={key:0};function g9e(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.prefixCls)},[e.hasAvatar?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-avatar`)},[e.avatar?(z(),ee("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,h9e)):pt(e.$slots,"avatar",{key:1})],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-inner`)},[L("div",{class:ue(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-author`)},[e.author?(z(),ee("span",p9e,Ue(e.author),1)):pt(e.$slots,"author",{key:1})],2)):Pe("v-if",!0),e.hasDatetime?(z(),ee("span",{key:1,class:ue(`${e.prefixCls}-datetime`)},[e.datetime?(z(),ee("span",v9e,Ue(e.datetime),1)):pt(e.$slots,"datetime",{key:1})],2)):Pe("v-if",!0)],2)):Pe("v-if",!0),e.hasContent?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-content`)},[e.content?(z(),ee("span",m9e,Ue(e.content),1)):pt(e.$slots,"content",{key:1})],2)):Pe("v-if",!0),e.$slots.actions?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[pt(e.$slots,"actions")],2)):Pe("v-if",!0)],2),e.$slots.default?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-inner-comment`)},[pt(e.$slots,"default")],2)):Pe("v-if",!0)],2)],2)}var hR=ze(f9e,[["render",g9e]]);const y9e=Object.assign(hR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+hR.name,hR)}}),b9e=ke({name:"ConfigProvider",props:{prefixCls:{type:String,default:"arco"},locale:{type:Object},size:{type:String},global:{type:Boolean,default:!1},updateAtScroll:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(e,{slots:t}){const{prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l}=en(e),c=qt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const d=yo();d&&d.appContext.app.provide(Ya,c)}else ti(Ya,c)}});function _9e(e,t,n,r,o,a){return pt(e.$slots,"default")}var pR=ze(b9e,[["render",_9e]]);const S9e=Object.assign(pR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+pR.name,pR)}});function k9e(e){const{modelValue:t,defaultValue:n,format:r}=en(e),o=j(()=>dc(t.value,r.value)),a=j(()=>dc(n.value,r.value)),[s,l]=Ga(En(o.value)?En(a.value)?void 0:a.value:o.value);return Rt(o,()=>{En(o.value)&&l(void 0)}),{value:j(()=>o.value||s.value),setValue:l}}const x9e=ke({name:"DateInput",components:{IconHover:Io,IconClose:cs,FeedbackIcon:K_},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}=en(e),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g}=Lo({size:s,disabled:a,error:r}),{mergedSize:y}=wa(h),S=Ae("picker"),k=j(()=>[S,`${S}-size-${y.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:m.value,[`${S}-has-prefix`]:n.prefix}]),C=j(()=>{if(d?.value)return d?.value;if(l?.value&&zc(l.value))return Cn(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()}}}),C9e=["disabled","placeholder","value"];function w9e(e,t,n,r,o,a){const s=De("IconClose"),l=De("IconHover"),c=De("FeedbackIcon");return z(),ee("div",{class:ue(e.classNames)},[e.$slots.prefix?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-prefix`)},[pt(e.$slots,"prefix")],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-input`)},[L("input",jt({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,C9e)],2),L("div",{class:ue(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(z(),Ye(l,{key:0,prefix:e.prefixCls,class:ue(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Pe("v-if",!0),L("span",{class:ue(`${e.prefixCls}-suffix-icon`)},[pt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Pe("v-if",!0)],2)],2)}var Npe=ze(x9e,[["render",w9e]]);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 fre=new Map;function E9e(e,t,n){const r=fre.get(e);En(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),fre.set(e,requestAnimationFrame(()=>{new qm({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function df(e,t){const n=r=>{if(nr(r))return r.map(o=>n(o));if(!En(r))return r.format(t)};return n(e)}function E4(e){return En(e)?!0:nr(e)?e.length===0||e.length===2&&zc(e[0])&&zc(e[1]):!1}function j8(e,t){return e?typeof e=="string"&&Rs(e,t).format(t)===e:!1}function T9e(e,{disabledHours:t,disabledMinutes:n,disabledSeconds:r}){if(!e)return!1;const o=e.hour(),a=e.minute(),s=e.second(),l=t?.()||[],c=n?.(o)||[],d=r?.(o,a)||[],h=(p,m)=>!En(p)&&m.includes(p);return h(o,l)||h(a,c)||h(s,d)}var Xh=ke({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Fpe=Symbol("PickerInjectionKey");function J_(){const{datePickerT:e}=Rn(Fpe)||{};return e||((t,...n)=>t)}const A9e=ke({name:"PanelShortcuts",components:{Button:Yo,RenderFunction:Xh},props:{prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},showNowBtn:{type:Boolean}},emits:["item-click","item-mouse-enter","item-mouse-leave","now-click"],setup(e,{emit:t}){return{datePickerT:J_(),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:Cn}}});function I9e(e,t,n,r,o,a){const s=De("Button"),l=De("RenderFunction");return z(),ee("div",{class:ue(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(z(),Ye(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[We(Ue(e.datePickerT("datePicker.now")),1)]),_:1})):Pe("v-if",!0),(z(!0),ee(Nt,null,vn(e.shortcuts,(c,d)=>(z(),Ye(s,{key:d,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(z(),Ye(l,{key:0,"render-func":c.label},null,8,["render-func"])):(z(),ee(Nt,{key:1},[We(Ue(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var jpe=ze(A9e,[["render",I9e]]);function Py(e){return[...Array(e)]}function Qj(e){if(!En(e))return nr(e)?e:[e,void 0]}function Fp(e){return!!e&&zc(e[0])&&zc(e[1])}function L9e(e){return En(e)||e.length===0||Fp(e)}function Vpe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const D9e=ke({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),P9e=["stroke-width","stroke-linecap","stroke-linejoin"];function R9e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1)]),14,P9e)}var vR=ze(D9e,[["render",R9e]]);const zpe=Object.assign(vR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vR.name,vR)}}),M9e=ke({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),O9e=["stroke-width","stroke-linecap","stroke-linejoin"];function $9e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1)]),14,O9e)}var mR=ze(M9e,[["render",$9e]]);const Upe=Object.assign(mR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mR.name,mR)}}),B9e=ke({name:"PanelHeader",components:{IconLeft:Al,IconRight:Ui,IconDoubleLeft:zpe,IconDoubleRight:Upe,RenderFunction:Xh},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:j(()=>Cn(e.onPrev)),showSuperPrev:j(()=>Cn(e.onSuperPrev)),showNext:j(()=>Cn(e.onNext)),showSuperNext:j(()=>Cn(e.onSuperNext)),year:j(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:j(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),N9e={key:1};function F9e(e,t,n,r,o,a){const s=De("RenderFunction"),l=De("IconDoubleLeft"),c=De("IconLeft"),d=De("IconRight"),h=De("IconDoubleRight");return z(),ee("div",{class:ue(`${e.prefixCls}-header`)},[L("div",{class:ue(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(z(),ee(Nt,{key:0},[e.icons&&e.icons.prevDouble?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(z(),Ye(l,{key:1}))],64)):Pe("v-if",!0)],2),L("div",{class:ue(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(z(),ee(Nt,{key:0},[e.icons&&e.icons.prev?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(z(),Ye(c,{key:1}))],64)):Pe("v-if",!0)],2),L("div",{class:ue(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(z(),ee(Nt,{key:0},[e.year?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},Ue(e.year),3)):Pe("v-if",!0),e.year&&e.month?(z(),ee("span",N9e,"-")):Pe("v-if",!0),e.month?(z(),ee("span",{key:2,class:ue(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},Ue(e.month),3)):Pe("v-if",!0)],64)):(z(),ee(Nt,{key:1},[We(Ue(e.title),1)],64))],2),L("div",{class:ue(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(z(),ee(Nt,{key:0},[e.icons&&e.icons.next?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(z(),Ye(d,{key:1}))],64)):Pe("v-if",!0)],2),L("div",{class:ue(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(z(),ee(Nt,{key:0},[e.icons&&e.icons.nextDouble?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(z(),Ye(h,{key:1}))],64)):Pe("v-if",!0)],2)],2)}var N5=ze(B9e,[["render",F9e]]);function j9e(e){const{rangeValues:t}=en(e),n=j(()=>t?.value&&t.value.every(zc)?Qb(t.value):t?.value),r=j(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=j(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:d,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,m=l&&c(a.value,l);let g=c(a.value,Ka());d==="week"&&(g=Ka().isSame(a.value,"date"));const y=p&&r.value&&c(a.value,r.value),S=p&&o.value&&c(a.value,o.value),k=p&&r.value&&o.value&&(y||S||a.value.isBetween(r.value,o.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:g,[`${h}-cell-selected`]:m,[`${h}-cell-range-start`]:y,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const V9e=ke({name:"PanelBody",components:{RenderFunction:Xh},props:{prefixCls:{type:String,required:!0},rows:{type:Array,default:()=>[]},value:{type:Object},disabledDate:{type:Function},isSameTime:{type:Function,required:!0},mode:{type:String},rangeValues:{type:Array},dateRender:{type:Function}},emits:["cell-click","cell-mouse-enter"],setup(e,{emit:t}){const{prefixCls:n,value:r,disabledDate:o,isSameTime:a,mode:s,rangeValues:l}=en(e),{getCellClassName:c}=j9e(qt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),d=h=>!!(Cn(o?.value)&&o?.value(xu(h.value)));return{isWeek:j(()=>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}}}),z9e=["onMouseenter","onMouseleave","onClick"];function U9e(e,t,n,r,o,a){const s=De("RenderFunction");return z(),ee("div",{class:ue(`${e.prefixCls}-body`)},[(z(!0),ee(Nt,null,vn(e.rows,(l,c)=>(z(),ee("div",{key:c,class:ue([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(z(!0),ee(Nt,null,vn(l,(d,h)=>(z(),ee(Nt,null,[Pe(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(z(),ee("div",{key:h,class:ue([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[L("div",{class:ue(`${e.prefixCls}-date`)},[L("div",{class:ue(`${e.prefixCls}-date-value`)},Ue(d.label),3)],2)],2)):(z(),ee("div",{key:h,class:ue(e.getCellClassName(d)),onMouseenter:()=>{e.onCellMouseEnter(d)},onMouseleave:()=>{e.onCellMouseLeave(d)},onClick:()=>{e.onCellClick(d)}},[e.dateRender?(z(),Ye(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(d.value)},null,8,["render-func","date"])):(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-date`)},[L("div",{class:ue(`${e.prefixCls}-date-value`)},Ue(d.label),3)],2))],42,z9e))],64))),256))],2))),128))],2)}var F5=ze(V9e,[["render",U9e]]);const H9e=ke({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=J_();return{labelList:j(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function W9e(e,t,n,r,o,a){return z(),ee("div",{class:ue(`${e.prefixCls}-week-list`)},[(z(!0),ee(Nt,null,vn(e.weekList,s=>(z(),ee("div",{key:s,class:ue(`${e.prefixCls}-week-list-item`)},Ue(e.labelList[s]||""),3))),128))],2)}var G9e=ze(H9e,[["render",W9e]]);const K9e=ke({name:"TimePickerColumn",props:{prefixCls:{type:String,required:!0},list:{type:Array,required:!0},value:{type:[Number,String]},visible:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const{visible:n,value:r}=en(e),o=fe(new Map),a=fe();function s(l=!1){if(!a.value||En(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&E9e(a.value,c.offsetTop,l?100:0)}return Rt([r,n],(l,[,c])=>{n.value!==c?Sn(()=>{s()}):s(!0)}),mn(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),q9e=["onClick"];function Y9e(e,t,n,r,o,a){return z(),ee("div",{ref:"refWrapper",class:ue(`${e.prefixCls}-column`)},[L("ul",null,[(z(!0),ee(Nt,null,vn(e.list,s=>(z(),ee("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)}},[L("div",{class:ue(`${e.prefixCls}-cell-inner`)},Ue(s.label),3)],10,q9e))),128))])],2)}var X9e=ze(K9e,[["render",Y9e]]);function Z9e(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:o,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:d,selectedSecond:h,selectedAmpm:p,disabled:m}=en(e),g=j(()=>{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:um(D,2,"0"),value:D,selected:c.value===D,disabled:m?.value||_.includes(D)}))}),y=j(()=>{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:um(D,2,"0"),value:D,selected:d.value===D,disabled:m?.value||_.includes(D)}))}),S=j(()=>{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:um(D,2,"0"),value:D,selected:h.value===D,disabled:m?.value||_.includes(D)}))}),k=["am","pm"],C=j(()=>{const x=Jj(t.value).list.includes("A");return k.map(E=>({label:x?E.toUpperCase():E,value:E,selected:p.value===E,disabled:m?.value}))});return{hours:g,minutes:y,seconds:S,ampmList:C}}function xH(e){const{format:t,use12Hours:n,defaultFormat:r}=en(e),o=j(()=>{let d=t?.value||r?.value;return(!d||!Jj(d).list.length)&&(d=n?.value?"hh:mm:ss a":"HH:mm:ss"),d}),a=j(()=>Jj(o.value)),s=j(()=>a.value.list),l=j(()=>a.value.use12Hours),c=j(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function Hpe(e){const t=n=>T9e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>nr(n)?n.some(r=>t(r)):t(n)}const J9e=ke({name:"TimePickerPanel",components:{TimeColumn:X9e,Button:Yo},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}=en(e),m=Ae("timepicker"),{t:g}=Bo(),{columns:y,use12Hours:S,format:k}=xH(qt({format:o,use12Hours:s})),C=fe(n?.value),x=Z=>{C.value=Z};Rt([r,n],()=>{r.value&&x(n?.value)});const E=j(()=>{var Z;const oe=(Z=C.value)==null?void 0:Z.hour();return En(oe)||!S.value?oe:oe>12?oe-12:oe===0?12:oe}),_=j(()=>{var Z;return(Z=C.value)==null?void 0:Z.minute()}),T=j(()=>{var Z;return(Z=C.value)==null?void 0:Z.second()}),D=j(()=>{var Z;const oe=(Z=C.value)==null?void 0:Z.hour();return!En(oe)&&oe>=12?"pm":"am"}),{hours:P,minutes:M,seconds:$,ampmList:I}=Z9e(qt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,disabled:p})),N=Hpe(qt({disabledHours:c,disabledMinutes:d,disabledSeconds:h})),F=j(()=>N(C.value));function W(Z){En(Z)||t("confirm",Z)}function U(Z){x(Z),t("select",Z)}function G(Z,oe="hour"){let X;const H=E.value||"00",q=_.value||"00",Q=T.value||"00",ne=D.value||"am";switch(oe){case"hour":X=`${Z}:${q}:${Q}`;break;case"minute":X=`${H}:${Z}:${Q}`;break;case"second":X=`${H}:${q}:${Z}`;break;case"ampm":X=`${H}:${q}:${Q} ${Z}`;break;default:X="00:00:00"}let ae="HH:mm:ss";S.value&&(ae="HH:mm:ss a",oe!=="ampm"&&(X=`${X} ${ne}`)),X=Rs(X,ae),U(X)}return{prefixCls:m,t:g,hours:P,minutes:M,seconds:$,ampmList:I,selectedValue:C,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,computedUse12Hours:S,confirmBtnDisabled:F,columns:y,onSelect:G,onSelectNow(){const Z=Rs(new Date);U(Z)},onConfirm(){W(C.value)}}}});function Q9e(e,t,n,r,o,a){const s=De("TimeColumn"),l=De("Button");return z(),ee(Nt,null,[L("div",{class:ue(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(z(),Ye(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"])):Pe("v-if",!0),e.columns.includes("m")?(z(),Ye(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"])):Pe("v-if",!0),e.columns.includes("s")?(z(),Ye(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"])):Pe("v-if",!0),e.computedUse12Hours?(z(),Ye(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"])):Pe("v-if",!0)],2),e.$slots["extra-footer"]?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-footer-extra-wrapper`)},[pt(e.$slots,"extra-footer")],2)):Pe("v-if",!0),e.hideFooter?Pe("v-if",!0):(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Pe("v-if",!0):(z(),Ye(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[We(Ue(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:de(()=>[We(Ue(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var V8=ze(J9e,[["render",Q9e]]);const eOe=ke({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tOe=["stroke-width","stroke-linecap","stroke-linejoin"];function nOe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1)]),14,tOe)}var gR=ze(eOe,[["render",nOe]]);const Q_=Object.assign(gR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gR.name,gR)}}),rOe=ke({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iOe=["stroke-width","stroke-linecap","stroke-linejoin"];function oOe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,iOe)}var yR=ze(rOe,[["render",oOe]]);const r_=Object.assign(yR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yR.name,yR)}}),Wpe=6,eV=7,sOe=Wpe*eV;function aOe(e){return{label:e.date(),value:e}}const lOe=ke({name:"DatePanel",components:{PanelHeader:N5,PanelBody:F5,PanelWeekList:G9e,TimePanel:V8,IconCalendar:Q_,IconClockCircle:r_},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}=en(e),p=J_(),m=j(()=>l?.value==="week"),g=j(()=>Ae(m.value?"panel-week":"panel-date")),y=Ae("picker"),[S,k]=fa("date",qt({value:d})),C=j(()=>c.value&&n.value),x=j(()=>!c.value||!C.value||S.value==="date"),E=j(()=>c.value&&(!C.value||S.value==="time")),_=j(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),T=j(()=>r.value.format("YYYY-MM")),D=j(()=>{var W;return c.value&&((W=h?.value)==null?void 0:W.call(h,xu(o?.value||Ka())))||{}}),P=j(()=>{const W=[0,1,2,3,4,5,6],U=Math.max(a.value%7,0);return[...W.slice(U),...W.slice(0,U)]}),M=j(()=>{const W=Ys.startOf(r.value,"month"),U=W.day(),G=W.daysInMonth(),Z=P.value.indexOf(U),oe=Py(sOe);for(let H=0;HZ+G-1};return Py(Wpe).map((H,q)=>{const Q=oe.slice(q*eV,(q+1)*eV);if(m.value){const ne=Q[0].value;Q.unshift({label:ne.week(),value:ne})}return Q})}),$=j(()=>s?.value||((W,U)=>W.isSame(U,"day")));function I(W){t("select",W.value)}function N(W){t("time-picker-select",W)}function F(W){t("cell-mouse-enter",W.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:y,headerTitle:T,rows:M,weekList:j(()=>m.value?[-1,...P.value]:P.value),mergedIsSameTime:$,disabledTimeProps:D,onCellClick:I,onCellMouseEnter:F,onTimePanelSelect:N,showViewTabs:C,showDateView:x,showTimeView:E,changeViewTo:W=>{t("current-view-change",W),t("update:currentView",W),k(W)},datePickerT:p}}});function uOe(e,t,n,r,o,a){const s=De("PanelHeader"),l=De("PanelWeekList"),c=De("PanelBody"),d=De("TimePanel"),h=De("IconCalendar"),p=De("IconClockCircle");return z(),ee("div",{class:ue(e.classNames)},[e.showDateView?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-inner`)},[O(s,jt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:e.mode,value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","mode","value","on-label-click"]),O(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),O(c,{mode:e.mode,"prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.isRange?void 0:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.mergedIsSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["mode","prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)):Pe("v-if",!0),e.showTimeView?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-timepicker`)},[L("header",{class:ue(`${e.prefixCls}-timepicker-title`)},Ue(e.datePickerT("datePicker.selectTime")),3),O(d,jt({...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)):Pe("v-if",!0),e.showViewTabs?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-footer`)},[L("div",{class:ue(`${e.prefixCls}-view-tabs`)},[L("div",{class:ue([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[O(h),L("span",{class:ue(`${e.prefixCls}-view-tab-pane-text`)},Ue(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),L("div",{class:ue([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[O(p),L("span",{class:ue(`${e.prefixCls}-view-tab-pane-text`)},Ue(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Pe("v-if",!0)],2)}var CH=ze(lOe,[["render",uOe]]);const cOe=ke({name:"WeekPanel",components:{DatePanel:CH},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return Bo(),{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 dOe(e,t,n,r,o,a){const s=De("DatePanel");return z(),Ye(s,jt(e.$attrs,{mode:"week","is-week":"","day-start-of-week":e.dayStartOfWeek,"is-same-time":e.isSameTime,onSelect:e.onSelect,onCellMouseEnter:e.onCellMouseEnter}),null,16,["day-start-of-week","is-same-time","onSelect","onCellMouseEnter"])}var Gpe=ze(cOe,[["render",dOe]]);const fOe=["January","February","March","April","May","June","July","August","September","October","November","December"],hOe=12,pOe=4,hre=3,vOe=ke({name:"MonthPanel",components:{PanelHeader:N5,PanelBody:F5},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=J_(),{headerValue:r}=en(e),o=j(()=>Ae("panel-month")),a=Ae("picker"),s=j(()=>r.value.format("YYYY")),l=j(()=>{const p=r.value.year(),m=e.abbreviation?"short":"long",g=Py(hOe).map((S,k)=>({label:n(`datePicker.month.${m}.${fOe[k]}`),value:Rs(`${p}-${k+1}`,"YYYY-M")}));return Py(pOe).map((S,k)=>g.slice(k*hre,(k+1)*hre))}),c=(p,m)=>p.isSame(m,"month");function d(p){t("select",p.value)}function h(p){t("cell-mouse-enter",p.value)}return{prefixCls:o,pickerPrefixCls:a,headerTitle:s,rows:l,isSameTime:c,onCellClick:d,onCellMouseEnter:h}}});function mOe(e,t,n,r,o,a){const s=De("PanelHeader"),l=De("PanelBody");return z(),ee("div",{class:ue(e.prefixCls)},[L("div",{class:ue(`${e.prefixCls}-inner`)},[O(s,jt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"month",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"month","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var Kpe=ze(vOe,[["render",mOe]]);const tV=4,Sw=3,gOe=tV*Sw,bR=10,yOe=ke({name:"YearPanel",components:{PanelHeader:N5,PanelBody:F5},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}=en(e),r=j(()=>Ae("panel-year")),o=Ae("picker"),a=j(()=>{const h=Math.floor(n.value.year()/bR)*bR-1,p=Py(gOe).map((g,y)=>({label:h+y,value:Rs(`${h+y}`,"YYYY"),isPrev:y<1,isNext:y>bR}));return Py(tV).map((g,y)=>p.slice(y*Sw,(y+1)*Sw))}),s=j(()=>`${a.value[0][1].label}-${a.value[tV-1][Sw-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 bOe(e,t,n,r,o,a){const s=De("PanelHeader"),l=De("PanelBody");return z(),ee("div",{class:ue(e.prefixCls)},[L("div",{class:ue(`${e.prefixCls}-inner`)},[O(s,jt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),O(l,{mode:"year","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var qpe=ze(yOe,[["render",bOe]]);const _Oe=ke({name:"QuarterPanel",components:{PanelHeader:N5,PanelBody:F5},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}=en(e),r=j(()=>Ae("panel-quarter")),o=Ae("picker"),a=j(()=>n.value.format("YYYY")),s=j(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Rs(`${h}-${um((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 SOe(e,t,n,r,o,a){const s=De("PanelHeader"),l=De("PanelBody");return z(),ee("div",{class:ue(e.prefixCls)},[L("div",{class:ue(`${e.prefixCls}-inner`)},[O(s,jt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"quarter",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"quarter","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var Ype=ze(_Oe,[["render",SOe]]);const kOe=ke({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xOe=["stroke-width","stroke-linecap","stroke-linejoin"];function COe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1)]),14,xOe)}var _R=ze(kOe,[["render",COe]]);const Mc=Object.assign(_R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_R.name,_R)}}),wOe=ke({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=Bpe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:j(()=>[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}}}),EOe=["href"];function TOe(e,t,n,r,o,a){const s=De("icon-loading"),l=De("icon-link");return z(),ee("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(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),Ye(s,{key:0})):pt(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Pe("v-if",!0),pt(e.$slots,"default")],10,EOe)}var SR=ze(wOe,[["render",TOe]]);const Xpe=Object.assign(SR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+SR.name,SR)}}),AOe=ke({name:"PanelFooter",components:{Link:Xpe,Button:Yo},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:J_(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function IOe(e,t,n,r,o,a){const s=De("Link"),l=De("Button");return z(),ee("div",{class:ue(`${e.prefixCls}-footer`)},[e.$slots.extra?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-footer-extra-wrapper`)},[pt(e.$slots,"extra")],2)):Pe("v-if",!0),e.showTodayBtn?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:de(()=>[We(Ue(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Pe("v-if",!0),e.$slots.btn||e.showConfirmBtn?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-footer-btn-wrapper`)},[pt(e.$slots,"btn"),e.showConfirmBtn?(z(),Ye(l,{key:0,class:ue(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[We(Ue(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Pe("v-if",!0)],2)):Pe("v-if",!0)],2)}var Zpe=ze(AOe,[["render",IOe]]);function Jpe(e){const{mode:t}=en(e),n=j(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=j(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function z8(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=en(e),l=j(()=>t?.value||"date"),{span:c,superSpan:d}=Jpe(qt({mode:l})),h=(T,D)=>{const P=l.value==="date"||l.value==="week"?"M":"y";return T.isSame(D,P)},p=j(()=>dc(n?.value,a.value)),m=j(()=>dc(r?.value,a.value)),g=fe(m.value||Ka()),y=j(()=>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||m.value||Ka()}function x(T=!0){const D=C();T?k(D):S(D)}const E=j(()=>c.value!==d.value),_=j(()=>({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 LOe=ke({name:"DatePikerPanel",components:{DatePanel:CH,PanelShortcuts:jpe,PanelFooter:Zpe,WeekPanel:Gpe,MonthPanel:Kpe,YearPanel:qpe,QuarterPanel:Ype,RenderFunction:Xh},props:{mode:{type:String},headerMode:{type:String},prefixCls:{type:String,required:!0},value:{type:Object},headerValue:{type:Object,required:!0},timePickerValue:{type:Object},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},confirmBtnDisabled:{type:Boolean},showNowBtn:{type:Boolean},headerIcons:{type:Object,default:()=>({})},headerOperations:{type:Object},abbreviation:{type:Boolean}},emits:["cell-click","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","today-btn-click","header-label-click","header-select","month-header-click"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:o,format:a,value:s,disabledDate:l,hideTrigger:c,showNowBtn:d,dateRender:h,showConfirmBtn:p,headerValue:m,headerIcons:g,headerOperations:y,headerMode:S}=en(e),k=j(()=>!!(r.value&&r.value.length)),C=j(()=>d.value&&p.value&&!k.value),x=j(()=>C.value||k.value),E=j(()=>x.value&&o.value==="left"),_=j(()=>x.value&&o.value==="right"),T=j(()=>x.value&&o.value==="bottom"),D=j(()=>[`${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=j(()=>s?.value||Ka()),{headerValue:M,setHeaderValue:$,headerOperations:I}=z8(qt({mode:S,format:a}));Rt(m,re=>{$(re)});function N(re){const{value:Se}=re;return dc(Cn(Se)?Se():Se,re.format||a.value)}function F(re){t("shortcut-click",N(re),re)}function W(re){t("shortcut-mouse-enter",N(re))}function U(re){t("shortcut-mouse-leave",N(re))}function G(re){t("cell-click",re)}function Z(re){t("time-picker-select",re)}function oe(){t("today-btn-click",Ka())}function X(){t("confirm")}function H(re){t("header-label-click",re)}function q(re){t("header-select",re)}function Q(){t("month-header-click")}const ne=qt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:F,onItemMouseEnter:W,onItemMouseLeave:U,onNowClick:oe}),ae=qt({value:s,headerValue:m,headerIcons:g,headerOperations:y,disabledDate:l,dateRender:h,onSelect:G,onHeaderLabelClick:H});return{classNames:D,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:T,shortcutsProps:ne,commonPanelProps:ae,footerValue:P,onTodayBtnClick:oe,onConfirmBtnClick:X,onTimePickerSelect:Z,onHeaderPanelSelect:q,headerPanelHeaderValue:M,headerPanelHeaderOperations:I,onMonthHeaderLabelClick:Q}}});function DOe(e,t,n,r,o,a){const s=De("PanelShortcuts"),l=De("YearPanel"),c=De("MonthPanel"),d=De("WeekPanel"),h=De("QuarterPanel"),p=De("DatePanel"),m=De("RenderFunction"),g=De("PanelFooter");return z(),ee("div",{class:ue(e.classNames)},[e.showShortcutsInLeft?(z(),Ye(s,qi(jt({key:0},e.shortcutsProps)),null,16)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(z(),ee(Nt,{key:0},[e.headerMode==="year"?(z(),Ye(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(),Ye(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"])):Pe("v-if",!0)],64)):(z(),ee(Nt,{key:1},[e.mode==="week"?(z(),Ye(d,jt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(z(),Ye(c,jt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(z(),Ye(l,qi(jt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(z(),Ye(h,qi(jt({key:3},e.commonPanelProps)),null,16)):(z(),Ye(p,jt({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},Eo({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(z(),Ye(m,{key:0,"render-func":e.extra},null,8,["render-func"])):Pe("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[O(s,qi(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(),Ye(s,qi(jt({key:1},e.shortcutsProps)),null,16)):Pe("v-if",!0)],2)}var POe=ze(LOe,[["render",DOe]]);function ROe(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 MOe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function Qpe(e){const{format:t,mode:n,showTime:r,valueFormat:o}=en(e),a=j(()=>!Cn(t?.value)&&t?.value||ROe(n?.value,r?.value)),s=j(()=>o?.value||MOe(n?.value,r?.value)),l=j(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function e0e(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=en(e),s=j(()=>t?.value==="date"&&n?.value),l=j(()=>(h,p)=>{if(!r?.value)return!1;const m=xu(h);return a?.value?r.value(m,p):r.value(m)}),c=(h,p)=>(p?.()||[]).includes(h),d=j(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const m=xu(h),g=a?.value?o.value(m,p):o.value(m);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,m){return p&&(l.value(p,m||"start")||d.value(p,m||"start"))}}const cm=(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 cm(t?.value||{},l)||r(a,...s)};return ti(Fpe,{datePickerT:o}),o}function nV(e){const{timePickerProps:t,selectedValue:n}=en(e),r=j(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=j(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=xH(qt({format:r,use12Hours:o})),s=j(()=>{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 n0e(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function OOe(e){const{format:t}=en(e);return n=>n0e(n,t.value)}function kR(e,t){return e.map(n=>n?n0e(n,t):void 0)}const $Oe=ke({name:"Picker",components:{DateInput:Npe,Trigger:ha,PickerPanel:POe,IconCalendar:Q_},inheritAttrs:!1,props:{locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean},placeholder:{type:String},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},pickerValue:{type:[Object,String,Number]},defaultPickerValue:{type:[Object,String,Number]},popupContainer:{type:[String,Object]},mode:{type:String,default:"date"},format:{type:[String,Function]},valueFormat:{type:String},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},showTime:{type:Boolean},timePickerProps:{type:Object},showNowBtn:{type:Boolean,default:!0},dayStartOfWeek:{type:Number,default:0},modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,modelValue:o,defaultValue:a,format:s,valueFormat:l,placeholder:c,popupVisible:d,defaultPopupVisible:h,disabled:p,showTime:m,timePickerProps:g,disabledDate:y,disabledTime:S,readonly:k,locale:C,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:T,showConfirmBtn:D}=en(e),{locale:P}=Bo();Os(()=>{hpe(P.value,_.value)});const{mergedDisabled:M,eventHandlers:$}=Lo({disabled:p}),I=t0e(qt({locale:C})),N=Ae("picker"),F=fe(),W=j(()=>c?.value||{date:I("datePicker.placeholder.date"),month:I("datePicker.placeholder.month"),year:I("datePicker.placeholder.year"),week:I("datePicker.placeholder.week"),quarter:I("datePicker.placeholder.quarter")}[r.value]||I("datePicker.placeholder.date")),{format:U,valueFormat:G,parseValueFormat:Z}=Qpe(qt({format:s,mode:r,showTime:m,valueFormat:l})),oe=j(()=>s&&Cn(s.value)?un=>{var kn;return(kn=s.value)==null?void 0:kn.call(s,xu(un))}:U.value),X=OOe(qt({format:G})),H=e0e(qt({mode:r,disabledDate:y,disabledTime:S,showTime:m})),q=j(()=>m.value||D.value),Q=j(()=>q.value&&(!Ve.value||H(Ve.value))),ne=j(()=>r.value==="date"&&m.value),{value:ae,setValue:re}=k9e(qt({modelValue:o,defaultValue:a,format:Z})),[Se,xe]=Ga(),[ve,be]=Ga(),Ve=j(()=>{var un;return(un=Se.value)!=null?un:ae.value}),Je=j(()=>{var un,kn;return(kn=(un=ve.value)!=null?un:Se.value)!=null?kn:ae.value}),[Me,je]=Ga(),[ge,_e]=fa(h.value,qt({value:d})),Fe=un=>{ge.value!==un&&(_e(un),t("popup-visible-change",un),t("update:popupVisible",un))},{headerValue:He,setHeaderValue:Qe,headerOperations:rt,resetHeaderValue:ft}=z8(qt({mode:r,value:x,defaultValue:E,selectedValue:Je,format:Z,onChange:un=>{const kn=X(un),ur=df(un,Z.value),ii=xu(un);t("picker-value-change",kn,ii,ur),t("update:pickerValue",kn)}})),[lt,,Ct]=nV(qt({timePickerProps:g,selectedValue:Je})),St=j(()=>!k.value&&!Cn(oe.value)),Wt=fe();Rt(ge,un=>{xe(void 0),be(void 0),Wt.value=void 0,un&&(ft(),Ct()),un||je(void 0)});function Tt(un,kn){var ur,ii;const kt=un?X(un):void 0,Ht=df(un,Z.value),cn=xu(un);hH(un,ae.value)&&(t("update:modelValue",kt),t("change",kt,cn,Ht),(ii=(ur=$.value)==null?void 0:ur.onChange)==null||ii.call(ur)),kn&&t("ok",kt,cn,Ht)}function Mt(un,kn,ur){H(un)||(Tt(un,ur),re(un),xe(void 0),be(void 0),je(void 0),Wt.value=void 0,El(kn)&&Fe(kn))}function nn(un,kn){if(xe(un),be(void 0),je(void 0),Wt.value=void 0,kn){const ur=un?X(un):void 0,ii=df(un,Z.value),kt=xu(un);t("select",ur,kt,ii)}}function ut(un){F.value&&F.value.focus&&F.value.focus(un)}function Ne(un,kn){return!ne.value&&!g.value?un:Vpe(Ka(),un,kn)}function Ie(un){M.value||Fe(un)}function Oe(un){un.stopPropagation(),Mt(void 0),t("clear")}function Xe(){var un,kn;(kn=(un=$.value)==null?void 0:un.onBlur)==null||kn.call(un)}function ct(un){Fe(!0);const kn=un.target.value;if(je(kn),!j8(kn,U.value))return;const ur=Rs(kn,U.value);H(ur)||(q.value?nn(ur):Mt(ur,!0))}function Lt(){Mt(Je.value,!1)}function ht(un){q.value?nn(un,!0):Mt(un,!1)}function Be(un){const kn=Ne(un,lt.value);ht(kn)}function wt(un){const kn=Ne(Je.value||Ka(),un);ht(kn)}function Yt(){Mt(Je.value,!1,!0)}function Qt(){e.disabledInput&&ut()}let Vt;mi(()=>{clearTimeout(Vt)});function tn(un){clearTimeout(Vt),be(un),je(void 0)}function Jn(){clearTimeout(Vt),Vt=setTimeout(()=>{be(void 0)},100)}function kr(un,kn){t("select-shortcut",kn),Mt(un,!1)}function Bi(un){Wt.value=un}function Cs(){Wt.value="year"}function Pt(un){let kn=He.value;if(kn=kn.set("year",un.year()),Wt.value==="month"&&(kn=kn.set("month",un.month())),Qe(kn),r.value==="quarter"||r.value==="month"){Wt.value=void 0;return}Wt.value=Wt.value==="year"?"month":void 0}const fn=j(()=>({format:U.value,...xa(g?.value||{},["defaultValue"]),visible:ge.value})),br=j(()=>({...kf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:N,format:Z.value,value:Je.value,visible:ge.value,showConfirmBtn:q.value,confirmBtnDisabled:Q.value,timePickerProps:fn.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:Be,onTimePickerSelect:wt,onConfirm:Yt,onShortcutClick:kr,onShortcutMouseEnter:T.value?tn:void 0,onShortcutMouseLeave:T.value?Jn:void 0,onTodayBtnClick:ht,onHeaderLabelClick:Bi,onHeaderSelect:Pt,onMonthHeaderClick:Cs}));return{prefixCls:N,refInput:F,panelProps:br,panelValue:Je,inputValue:Me,selectedValue:ae,inputFormat:oe,computedPlaceholder:W,panelVisible:ge,inputEditable:St,needConfirm:q,mergedDisabled:M,onPanelVisibleChange:Ie,onInputClear:Oe,onInputChange:ct,onInputPressEnter:Lt,onInputBlur:Xe,onPanelClick:Qt}}});function BOe(e,t,n,r,o,a){const s=De("IconCalendar"),l=De("DateInput"),c=De("PickerPanel"),d=De("Trigger");return e.hideTrigger?(z(),Ye(c,qi(jt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(z(),Ye(d,jt({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{position:e.position,disabled:e.mergedDisabled||e.readonly,"prevent-focus":!0,"popup-visible":e.panelVisible,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[O(c,jt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[pt(e.$slots,"default",{},()=>[O(l,jt(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}),Eo({"suffix-icon":de(()=>[pt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[pt(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 eS=ze($Oe,[["render",BOe]]),xR=ke({name:"DatePicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:[String,Function]},dayStartOfWeek:{type:Number,default:0},showTime:{type:Boolean},timePickerProps:{type:Object},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},showNowBtn:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){return()=>O(eS,jt(e,t,{mode:"date"}),n)}}),kw=ke({name:"WeekPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"gggg-wo"},valueFormat:{type:String,default:"YYYY-MM-DD"},dayStartOfWeek:{type:Number,default:0}},setup(e,{attrs:t,slots:n}){return()=>O(eS,jt(e,t,{mode:"week"}),n)}}),xw=ke({name:"MonthPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(eS,jt(e,t,{mode:"month"}),n)}}),Cw=ke({name:"YearPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY"}},setup(e,{attrs:t,slots:n}){return()=>O(eS,jt(e,t,{mode:"year"}),n)}}),ww=ke({name:"QuarterPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-[Q]Q"},valueFormat:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(eS,jt(e,t,{mode:"quarter"}),n)}});function NOe(e){const{modelValue:t,defaultValue:n,format:r}=en(e),o=j(()=>dc(Qj(t.value),r.value)),a=j(()=>dc(Qj(n.value),r.value)),[s,l]=Ga(En(o.value)?En(a.value)?[]:a.value:o.value);return Rt(o,()=>{En(o.value)&&l([])}),{value:j(()=>o.value||s.value),setValue:l}}function FOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=en(e),d=j(()=>["date","week"].includes(r.value)),h=j(()=>d.value?"M":"y"),p=(Se,xe)=>Se.isSame(xe,h.value),{span:m,superSpan:g}=Jpe(qt({mode:r})),y=j(()=>t?.value||r.value),S=j(()=>n?.value||r.value),k=j(()=>{var Se;return(Se=o.value)==null?void 0:Se[0]}),C=j(()=>{var Se;return(Se=o.value)==null?void 0:Se[1]}),x=j(()=>{var Se;return(Se=a.value)==null?void 0:Se[0]}),E=j(()=>{var Se;return(Se=a.value)==null?void 0:Se[1]}),_=Se=>{c?.value&&c.value(Se)},{headerValue:T,setHeaderValue:D,headerOperations:P,getDefaultLocalValue:M}=z8(qt({mode:y,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:Se=>{_([Se,$.value])}})),{headerValue:$,setHeaderValue:I,headerOperations:N,getDefaultLocalValue:F}=z8(qt({mode:S,value:C,defaultValue:E,selectedValue:void 0,format:l,onChange:Se=>{_([T.value,Se])}})),W=Se=>{const xe=p(T.value,Se[0]),ve=p($.value,Se[1]);D(Se[0],!1),I(Se[1],!1),(!xe||!ve)&&c?.value&&c?.value(Se)};function U(Se){let[xe,ve]=Qb(Se);const be=Ys.add(xe,m.value,"M");return ve.isBefore(be,h.value)&&(ve=be),[xe,ve]}function G(){var Se,xe;let ve=(Se=s.value)==null?void 0:Se[0],be=(xe=s.value)==null?void 0:xe[1];return ve&&be&&([ve,be]=Qb([ve,be])),[ve,be]}const[Z,oe]=G(),[X,H]=U([Z||T.value,oe||$.value]);D(X,!1),I(H,!1);const q=()=>{const Se=M(),xe=F();Sn(()=>{const[ve,be]=G(),[Ve,Je]=U([ve||Se,be||xe]);W([Ve,Je])})},Q=j(()=>Ys.add(T.value,m.value,"M").isBefore($.value,h.value)),ne=j(()=>Ys.add(T.value,g.value,"M").isBefore($.value,h.value)),ae=j(()=>{const Se=["onSuperPrev"];return d.value&&Se.push("onPrev"),Q.value&&d&&Se.push("onNext"),ne.value&&Se.push("onSuperNext"),kf(P.value,Se)}),re=j(()=>{const Se=["onSuperNext"];return d.value&&Se.push("onNext"),Q.value&&d.value&&Se.push("onPrev"),ne.value&&Se.push("onSuperPrev"),kf(N.value,Se)});return{startHeaderValue:T,endHeaderValue:$,startHeaderOperations:ae,endHeaderOperations:re,setHeaderValue:W,resetHeaderValue:q}}const jOe=ke({name:"DateInputRange",components:{IconHover:Io,IconClose:cs,FeedbackIcon:K_},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}=en(e),{mergedSize:p,mergedDisabled:m,mergedError:g,feedback:y}=Lo({size:s,error:r}),{mergedSize:S}=wa(p),k=fe(),C=fe(),x=Z=>m.value?m.value:nr(a.value)?a.value[Z]:a.value,E=j(()=>x(0)),_=j(()=>x(1)),T=Ae("picker"),D=j(()=>[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(Z){return[`${T}-input`,{[`${T}-input-active`]:Z===d?.value}]}function M(Z){var oe,X;if(h?.value)return(oe=h?.value)==null?void 0:oe[Z];const H=(X=l?.value)==null?void 0:X[Z];if(H&&zc(H))return Cn(c.value)?c.value(H):H.format(c.value)}const $=j(()=>M(0)),I=j(()=>M(1));function N(Z){t("focused-index-change",Z),t("update:focusedIndex",Z)}function F(Z){Z.stopPropagation(),t("change",Z)}function W(){t("press-enter")}function U(Z){Z.preventDefault()}function G(Z){t("clear",Z)}return{prefixCls:T,classNames:D,refInput0:k,refInput1:C,disabled0:E,disabled1:_,mergedDisabled:m,getDisabled:x,getInputWrapClassName:P,displayValue0:$,displayValue1:I,changeFocusedInput:N,onChange:F,onPressEnter:W,onPressTab:U,onClear:G,feedback:y}},methods:{focus(e){const t=Ze(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!En(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),VOe=["disabled","placeholder","value"],zOe=["disabled","placeholder","value"];function UOe(e,t,n,r,o,a){const s=De("IconClose"),l=De("IconHover"),c=De("FeedbackIcon");return z(),ee("div",{class:ue(e.classNames)},[e.$slots.prefix?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-prefix`)},[pt(e.$slots,"prefix")],2)):Pe("v-if",!0),L("div",{class:ue(e.getInputWrapClassName(0))},[L("input",jt({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,VOe)],2),L("span",{class:ue(`${e.prefixCls}-separator`)},[pt(e.$slots,"separator",{},()=>[t[8]||(t[8]=We(" - "))])],2),L("div",{class:ue(e.getInputWrapClassName(1))},[L("input",jt({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,zOe)],2),L("div",{class:ue(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(z(),Ye(l,{key:0,prefix:e.prefixCls,class:ue(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Pe("v-if",!0),L("span",{class:ue(`${e.prefixCls}-suffix-icon`)},[pt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Pe("v-if",!0)],2)],2)}var r0e=ze(jOe,[["render",UOe]]);const HOe=ke({name:"DateRangePikerPanel",components:{PanelShortcuts:jpe,PanelFooter:Zpe,RenderFunction:Xh,DatePanel:CH,WeekPanel:Gpe,MonthPanel:Kpe,YearPanel:qpe,QuarterPanel:Ype},props:{mode:{type:String,default:"date"},value:{type:Array,default:()=>[]},footerValue:{type:Array},timePickerValue:{type:Array},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},startHeaderProps:{type:Object,default:()=>({})},endHeaderProps:{type:Object,default:()=>({})},confirmBtnDisabled:{type:Boolean},disabled:{type:Array,default:()=>[!1,!1]},visible:{type:Boolean},startHeaderMode:{type:String},endHeaderMode:{type:String},abbreviation:{type:Boolean}},emits:["cell-click","cell-mouse-enter","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","start-header-label-click","end-header-label-click","start-header-select","end-header-select"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:o,format:a,hideTrigger:s,value:l,disabledDate:c,disabledTime:d,startHeaderProps:h,endHeaderProps:p,dateRender:m,visible:g,startHeaderMode:y,endHeaderMode:S}=en(e),k=j(()=>nr(r.value)&&r.value.length),C=j(()=>[`${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,(ne,ae)=>{ne&&!ae&&(x.value="date")});function E(ne){return dc(Qj(Cn(ne.value)?ne.value():ne.value),ne.format||a.value)}function _(ne){t("shortcut-click",E(ne),ne)}function T(ne){t("shortcut-mouse-enter",E(ne))}function D(ne){t("shortcut-mouse-leave",E(ne))}function P(ne){t("cell-click",ne)}function M(ne){t("cell-mouse-enter",ne)}function $(){t("confirm")}function I(ne){t("time-picker-select",ne,"start")}function N(ne){t("time-picker-select",ne,"end")}function F(ne){t("start-header-label-click",ne)}function W(ne){t("end-header-label-click",ne)}function U(ne){t("start-header-select",ne)}function G(ne){t("end-header-select",ne)}function Z(ne){return Cn(c?.value)?ae=>{var re;return((re=c?.value)==null?void 0:re.call(c,ae,ne===0?"start":"end"))||!1}:void 0}function oe(ne){return Cn(d?.value)?ae=>{var re;return((re=d?.value)==null?void 0:re.call(d,ae,ne===0?"start":"end"))||!1}:void 0}function X(ne){return Cn(m?.value)?ae=>{var re;const Se={...ae,type:ne===0?"start":"end"};return(re=m?.value)==null?void 0:re.call(m,Se)}:void 0}const H=qt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:T,onItemMouseLeave:D}),q=j(()=>({...h.value,rangeValues:l.value,disabledDate:Z(0),dateRender:X(0),onSelect:y.value?U:P,onCellMouseEnter:M,onHeaderLabelClick:F})),Q=j(()=>({...p.value,rangeValues:l.value,disabledDate:Z(1),dateRender:X(1),onSelect:S.value?G:P,onCellMouseEnter:M,onHeaderLabelClick:W}));return{pick:kf,classNames:C,showShortcuts:k,shortcutsProps:H,startPanelProps:q,endPanelProps:Q,getDisabledTimeFunc:oe,onConfirmBtnClick:$,currentDateView:x,onStartTimePickerSelect:I,onEndTimePickerSelect:N,onStartHeaderPanelSelect:U,onEndHeaderPanelSelect:G}}});function WOe(e,t,n,r,o,a){const s=De("PanelShortcuts"),l=De("YearPanel"),c=De("MonthPanel"),d=De("WeekPanel"),h=De("QuarterPanel"),p=De("DatePanel"),m=De("RenderFunction"),g=De("PanelFooter");return z(),ee("div",{class:ue(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(z(),Ye(s,qi(jt({key:0},e.shortcutsProps)),null,16)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-range-panel-wrapper`)},[Pe(" panel "),L("div",{class:ue(`${e.prefixCls}-range`)},[L("div",{class:ue(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(z(),ee(Nt,{key:0},[e.startHeaderMode==="year"?(z(),Ye(l,qi(jt({key:0},e.startPanelProps)),null,16)):Pe("v-if",!0),e.endHeaderMode==="year"?(z(),Ye(l,qi(jt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(z(),Ye(c,jt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(z(),Ye(c,jt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Pe("v-if",!0)],64)):(z(),ee(Nt,{key:1},[Pe(" week "),e.mode==="week"?(z(),ee(Nt,{key:0},[O(d,jt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(d,jt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(z(),ee(Nt,{key:1},[Pe(" month "),O(c,jt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,jt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(z(),ee(Nt,{key:2},[Pe(" year "),O(l,qi(Sa(e.startPanelProps)),null,16),O(l,qi(Sa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(z(),ee(Nt,{key:3},[Pe(" quarter "),O(h,qi(Sa(e.startPanelProps)),null,16),O(h,qi(Sa(e.endPanelProps)),null,16)],64)):(z(),ee(Nt,{key:4},[Pe(" date "),O(p,jt({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=y=>e.currentDateView=y)},e.startPanelProps,{"is-range":"",value:e.value&&e.value[0],"footer-value":e.footerValue&&e.footerValue[0],"time-picker-value":e.timePickerValue&&e.timePickerValue[0],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(0),disabled:e.disabled[0],onTimePickerSelect:e.onStartTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"]),O(p,jt({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),Pe(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},Eo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?pt(e.$slots,"extra",{key:0}):(z(),Ye(m,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:de(()=>[O(s,qi(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(),Ye(s,qi(jt({key:1},e.shortcutsProps)),null,16)):Pe("v-if",!0)],2)}var GOe=ze(HOe,[["render",WOe]]);function KOe(e){const{timePickerProps:t,selectedValue:n}=en(e),r=j(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),o=j(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=j(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=j(()=>nr(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=j(()=>nr(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,d,h]=nV(qt({timePickerProps:s,selectedValue:r})),[p,m,g]=nV(qt({timePickerProps:l,selectedValue:o})),y=j(()=>[c.value,p.value]);function S(C){C&&(d(C[0]),m(C[1]))}function k(){h(),g()}return[y,S,k]}const qOe=ke({name:"RangePicker",components:{RangePickerPanel:GOe,DateRangeInput:r0e,Trigger:ha,IconCalendar:Q_},inheritAttrs:!1,props:{mode:{type:String,default:"date"},modelValue:{type:Array},defaultValue:{type:Array},pickerValue:{type:Array},defaultPickerValue:{type:Array},disabled:{type:[Boolean,Array],default:!1},dayStartOfWeek:{type:Number,default:0},format:{type:String},valueFormat:{type:String},showTime:{type:Boolean},timePickerProps:{type:Object},placeholder:{type:Array},disabledDate:{type:Function},disabledTime:{type:Function},separator:{type:String},exchangeTime:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},triggerProps:{type:Object},unmountOnClose:{type:Boolean},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,showTime:o,format:a,modelValue:s,defaultValue:l,popupVisible:c,defaultPopupVisible:d,placeholder:h,timePickerProps:p,disabled:m,disabledDate:g,disabledTime:y,locale:S,pickerValue:k,defaultPickerValue:C,valueFormat:x,size:E,error:_,dayStartOfWeek:T,exchangeTime:D,previewShortcut:P,showConfirmBtn:M}=en(e),{locale:$}=Bo(),I=Rn(Ya,void 0);Os(()=>{hpe($.value,T.value)});const N=j(()=>{var nt;return!(!D.value||!((nt=I?.exchangeTime)==null||nt))}),{mergedSize:F,mergedDisabled:W,mergedError:U,eventHandlers:G}=Lo({size:E,error:_}),Z=t0e(qt({locale:S})),oe=Ae("picker"),X=j(()=>h?.value||{date:Z("datePicker.rangePlaceholder.date"),month:Z("datePicker.rangePlaceholder.month"),year:Z("datePicker.rangePlaceholder.year"),week:Z("datePicker.rangePlaceholder.week"),quarter:Z("datePicker.rangePlaceholder.quarter")}[r.value]||Z("datePicker.rangePlaceholder.date")),{format:H,valueFormat:q,parseValueFormat:Q}=Qpe(qt({mode:r,format:a,showTime:o,valueFormat:x})),ne=j(()=>{const nt=m.value===!0||W.value||nr(m.value)&&m.value[0]===!0,st=m.value===!0||W.value||nr(m.value)&&m.value[1]===!0;return[nt,st]}),ae=j(()=>ne.value[0]&&ne.value[1]);function re(nt=0){return ne.value[nt]?nt^1:nt}const Se=fe(),xe=fe(re()),ve=j(()=>{const nt=xe.value,st=nt^1;return ne.value[st]?nt:st}),be=j(()=>ne.value[xe.value^1]),{value:Ve,setValue:Je}=NOe(qt({modelValue:s,defaultValue:l,format:Q})),[Me,je]=Ga(),[ge,_e]=Ga(),Fe=j(()=>{var nt;return(nt=Me.value)!=null?nt:Ve.value}),He=j(()=>{var nt,st;return(st=(nt=ge.value)!=null?nt:Me.value)!=null?st:Ve.value}),[Qe,rt]=Ga(),ft=fe(),lt=fe(),[Ct,St]=fa(d.value,qt({value:c})),Wt=nt=>{Ct.value!==nt&&(St(nt),t("popup-visible-change",nt),t("update:popupVisible",nt))},{startHeaderValue:Tt,endHeaderValue:Mt,startHeaderOperations:nn,endHeaderOperations:ut,resetHeaderValue:Ne,setHeaderValue:Ie}=FOe(qt({mode:r,startHeaderMode:ft,endHeaderMode:lt,value:k,defaultValue:C,selectedValue:He,format:Q,onChange:nt=>{const st=kR(nt,q.value),Ot=df(nt,Q.value),Zt=xu(nt);t("picker-value-change",st,Zt,Ot),t("update:pickerValue",st)}}));function Oe(nt){ft.value=nt}function Xe(nt){lt.value=nt}function ct(nt){let st=Tt.value;st=st.set("year",nt.year()),ft.value==="month"&&(st=st.set("month",nt.month())),Ie([st,Mt.value]),ft.value=void 0}function Lt(nt){let st=Mt.value;st=st.set("year",nt.year()),lt.value==="month"&&(st=st.set("month",nt.month())),Ie([Tt.value,st]),lt.value=void 0}const ht=fe([He.value[0]||Ka(),He.value[1]||Ka()]);Rt(He,()=>{const[nt,st]=He.value;ht.value[0]=nt||ht.value[0],ht.value[1]=st||ht.value[1]});const[Be,wt,Yt]=KOe(qt({timePickerProps:p,selectedValue:He})),Qt=j(()=>r.value==="date"&&o.value),Vt=j(()=>Qt.value||p.value),tn=e0e(qt({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:y})),Jn=j(()=>Qt.value||M.value),kr=j(()=>Jn.value&&(!Fp(Fe.value)||tn(Fe.value[0],"start")||tn(Fe.value[1],"end")));Rt(Ct,nt=>{ft.value=void 0,lt.value=void 0,je(void 0),_e(void 0),nt&&(Ne(),Yt(),xe.value=re(xe.value),Sn(()=>kn(xe.value))),nt||rt(void 0)}),Rt(xe,()=>{e.disabledInput&&(kn(xe.value),rt(void 0))});function Bi(nt,st){var Ot,Zt;const Gt=nt?kR(nt,q.value):void 0,pn=df(nt,Q.value),yn=xu(nt);hH(nt,Ve.value)&&(t("update:modelValue",Gt),t("change",Gt,yn,pn),(Zt=(Ot=G.value)==null?void 0:Ot.onChange)==null||Zt.call(Ot)),st&&t("ok",Gt,yn,pn)}function Cs(nt){let st=Qb(nt);return Vt.value&&!N.value&&(st=[ur(st[0],nt[0]),ur(st[1],nt[1])]),st}function Pt(nt,st,Ot){if(tn(nt?.[0],"start")||tn(nt?.[1],"end"))return;let Zt=nt?[...nt]:void 0;Fp(Zt)&&(Zt=Cs(Zt)),Bi(Zt,Ot),Je(Zt||[]),je(void 0),_e(void 0),rt(void 0),ft.value=void 0,lt.value=void 0,El(st)&&Wt(st)}function fn(nt){const st=kR(nt,q.value),Ot=df(nt,Q.value),Zt=xu(nt);t("select",st,Zt,Ot)}function br(nt,st){const{emitSelect:Ot=!1,updateHeader:Zt=!1}=st||{};let Gt=[...nt];Fp(Gt)&&(Gt=Cs(Gt)),je(Gt),_e(void 0),rt(void 0),ft.value=void 0,lt.value=void 0,Ot&&fn(Gt),Zt&&Ne()}function un(nt,st){const{updateHeader:Ot=!1}=st||{};_e(nt),rt(void 0),Ot&&Ne()}function kn(nt){Se.value&&Se.value.focus&&Se.value.focus(nt)}function ur(nt,st){return Vt.value?Vpe(Ka(),nt,st):nt}function ii(nt){Wt(nt)}function kt(nt){if(Me.value&&He.value[ve.value]&&(!Jn.value||!Fp(Me.value))){const st=[...He.value],Ot=ur(nt,Be.value[xe.value]);st[xe.value]=Ot,un(st)}}function Ht(nt=!1){return be.value?[...Ve.value]:Me.value?nt||!Fp(Me.value)?[...Me.value]:[]:nt?[...Ve.value]:[]}function cn(nt){const st=Ht(),Ot=ur(nt,Be.value[xe.value]);st[xe.value]=Ot,fn(st),!Jn.value&&Fp(st)?Pt(st,!1):(br(st),Fp(st)?xe.value=0:xe.value=ve.value)}function hn(nt,st){const Ot=st==="start"?0:1,Zt=ur(Be.value[Ot],nt),Gt=[...Be.value];Gt[Ot]=Zt,wt(Gt);const pn=Ht(!0);pn[Ot]&&(pn[Ot]=Zt,br(pn,{emitSelect:!0}))}let on;mi(()=>{clearTimeout(on)});function le(nt){clearTimeout(on),un(nt,{updateHeader:!0})}function ie(){clearTimeout(on),on=setTimeout(()=>{_e(void 0),rt(void 0),Ne()},100)}function te(nt,st){t("select-shortcut",st),Pt(nt,!1)}function J(){Pt(He.value,!1,!0)}function he(nt){nt.stopPropagation(),Pt(void 0),t("clear")}function Ce(nt){Wt(!0);const st=nt.target.value;if(!st){rt(void 0);return}const Ot=df(He.value,H.value),Zt=nr(Qe.value)?[...Qe.value]:Ot||[];if(Zt[xe.value]=st,rt(Zt),!j8(st,H.value))return;const Gt=Rs(st,H.value);if(tn(Gt,xe.value===0?"start":"end"))return;const pn=nr(He.value)?[...He.value]:[];pn[xe.value]=Gt,br(pn,{updateHeader:!0})}function we(){L9e(He.value)?Pt(He.value,!1):xe.value=ve.value}const Re=j(()=>({format:H.value,...xa(p?.value||{},["defaultValue"]),visible:Ct.value})),at=j(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),it=qt({headerValue:Tt,headerOperations:nn,headerIcons:at}),mt=qt({headerValue:Mt,headerOperations:ut,headerIcons:at}),Ee=j(()=>({...kf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:oe,format:Q.value,value:He.value,showConfirmBtn:Jn.value,confirmBtnDisabled:kr.value,timePickerValue:Be.value,timePickerProps:Re.value,extra:n.extra,dateRender:n.cell,startHeaderProps:it,endHeaderProps:mt,footerValue:ht.value,disabled:ne.value,visible:Ct.value,onCellClick:cn,onCellMouseEnter:kt,onShortcutClick:te,onShortcutMouseEnter:P.value?le:void 0,onShortcutMouseLeave:P.value?ie:void 0,onConfirm:J,onTimePickerSelect:hn,startHeaderMode:ft.value,endHeaderMode:lt.value,onStartHeaderLabelClick:Oe,onEndHeaderLabelClick:Xe,onStartHeaderSelect:ct,onEndHeaderSelect:Lt}));return{prefixCls:oe,refInput:Se,computedFormat:H,computedPlaceholder:X,panelVisible:Ct,panelValue:He,inputValue:Qe,focusedIndex:xe,triggerDisabled:ae,mergedSize:F,mergedError:U,onPanelVisibleChange:ii,onInputClear:he,onInputChange:Ce,onInputPressEnter:we,rangePanelProps:Ee}}});function YOe(e,t,n,r,o,a){const s=De("IconCalendar"),l=De("DateRangeInput"),c=De("RangePickerPanel"),d=De("Trigger");return e.hideTrigger?(z(),Ye(c,qi(jt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(z(),Ye(d,jt({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{"unmount-on-close":e.unmountOnClose,position:e.position,disabled:e.triggerDisabled||e.readonly,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[O(c,qi(Sa(e.rangePanelProps)),null,16)]),default:de(()=>[pt(e.$slots,"default",{},()=>[O(l,jt({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}),Eo({"suffix-icon":de(()=>[pt(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:de(()=>[pt(e.$slots,"separator",{},()=>[We(Ue(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[pt(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 Ew=ze(qOe,[["render",YOe]]);const XOe=Object.assign(xR,{WeekPicker:kw,MonthPicker:xw,YearPicker:Cw,QuarterPicker:ww,RangePicker:Ew,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+xR.name,xR),e.component(n+Cw.name,Cw),e.component(n+ww.name,ww),e.component(n+xw.name,xw),e.component(n+kw.name,kw),e.component(n+Ew.name,Ew)}}),H8=["xxl","xl","lg","md","sm","xs"],mx={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 hv=[],ZOe=-1,gx={};const W8={matchHandlers:{},dispatch(e,t){return gx=e,hv.length<1?!1:(hv.forEach(n=>{n.func(gx,t)}),!0)},subscribe(e){hv.length===0&&this.register();const t=(++ZOe).toString();return hv.push({token:t,func:e}),e(gx,null),t},unsubscribe(e){hv=hv.filter(t=>t.token!==e),hv.length===0&&this.unregister()},unregister(){Object.keys(mx).forEach(e=>{const t=mx[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(mx).forEach(e=>{const t=mx[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...gx,[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 pre(e){return mr(e)}function Ih(e,t,n=!1){const r=fe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=j(()=>{let s=t;if(pre(e.value))for(let l=0;l{a=W8.subscribe(s=>{pre(e.value)&&(r.value=s)})}),mi(()=>{a&&W8.unsubscribe(a)}),o}var CR=ke({name:"Descriptions",props:{data:{type:Array,default:()=>[]},column:{type:[Number,Object],default:3},title:String,layout:{type:String,default:"horizontal"},align:{type:[String,Object],default:"left"},size:{type:String},bordered:{type:Boolean,default:!1},labelStyle:{type:Object},valueStyle:{type:Object},tableLayout:{type:String,default:"auto"}},setup(e,{slots:t}){const{column:n,size:r}=en(e),o=Ae("descriptions"),{mergedSize:a}=wa(r),s=Ih(n,3,!0),l=j(()=>{var T;return(T=mr(e.align)?e.align.label:e.align)!=null?T:"left"}),c=j(()=>{var T;return(T=mr(e.align)?e.align.value:e.align)!=null?T:"left"}),d=j(()=>({textAlign:l.value,...e.labelStyle})),h=j(()=>({textAlign:c.value,...e.valueStyle})),p=T=>{const D=[];let P=[],M=0;const $=()=>{if(P.length){const I=s.value-M;P[P.length-1].span+=I,D.push(P)}};return T.forEach(I=>{var N,F;const W=Math.min((F=Hi(I)?(N=I.props)==null?void 0:N.span:I.span)!=null?F:1,s.value);M+W>s.value&&($(),P=[],M=0),P.push({data:I,span:W}),M+=W}),$(),D},m=j(()=>{var T;return p((T=e.data)!=null?T:[])}),g=(T,D)=>{var P,M,$,I,N;return Hi(T)?T5(T,T.children)&&((M=(P=T.children).label)==null?void 0:M.call(P))||(($=T.props)==null?void 0:$.label):(N=(I=t.label)==null?void 0:I.call(t,{label:T.label,index:D,data:T}))!=null?N:Cn(T.label)?T.label():T.label},y=(T,D)=>{var P,M;return Hi(T)?T:(M=(P=t.value)==null?void 0:P.call(t,{value:T.value,index:D,data:T}))!=null?M:Cn(T.value)?T.value():T.value},S=T=>O(Nt,null,[O("tr",{class:`${o}-row`},[T.map((D,P)=>O("td",{key:`label-${P}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value,colspan:D.span},[g(D.data,P)]))]),O("tr",{class:`${o}-row`},[T.map((D,P)=>O("td",{key:`value-${P}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:D.span},[y(D.data,P)]))])]),k=(T,D)=>O("tr",{class:`${o}-row`,key:`tr-${D}`},[T.map(P=>O(Nt,null,[O("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value},[g(P.data,D)]),O("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:P.span*2-1},[y(P.data,D)])]))]),C=(T,D)=>O("tr",{class:`${o}-row`,key:`inline-${D}`},[T.map((P,M)=>O("td",{key:`item-${M}`,class:`${o}-item`,colspan:P.span},[O("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:d.value},[g(P.data,M)]),O("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:h.value},[y(P.data,M)])]))]),x=(T,D)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(T,D):e.layout==="vertical"?S(T):k(T,D),E=j(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${a.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var T,D;const P=(D=(T=t.title)==null?void 0:T.call(t))!=null?D:e.title;return P?O("div",{class:`${o}-title`},[P]):null};return()=>{const T=t.default?p(yf(t.default())):m.value;return O("div",{class:E.value},[_(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[T.map((D,P)=>x(D,P))])])])])}}});const JOe=ke({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Ae("descriptions")}}});function QOe(e,t,n,r,o,a){return pt(e.$slots,"default")}var Tw=ze(JOe,[["render",QOe]]);const e$e=Object.assign(CR,{DescriptionsItem:Tw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+CR.name,CR),e.component(n+Tw.name,Tw)}});var wR=ke({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=Ae("divider"),r=j(()=>e.direction==="horizontal"),o=j(()=>{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),!En(e.margin)){const s=Ze(e.margin)?`${e.margin}px`:e.margin;a.margin=r.value?`${s} 0`:`0 ${s}`}return a});return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t),l=[n,`${n}-${e.direction}`,{[`${n}-with-text`]:s}];return O("div",{role:"separator",class:l,style:o.value},[s&&e.direction==="horizontal"&&O("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const t$e=Object.assign(wR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+wR.name,wR)}}),i0e=e=>{const t=fe(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=d7e(a);(s>0||c7e(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}}}},n$e=["top","right","bottom","left"],r$e=ke({name:"Drawer",components:{ClientOnly:oH,ArcoButton:Yo,IconHover:Io,IconClose:cs},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>n$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}=en(e),r=Ae("drawer"),{t:o}=Bo(),a=fe(e.defaultVisible),s=j(()=>{var W;return(W=e.visible)!=null?W:a.value}),l=fe(!1),c=j(()=>e.okLoading||l.value),{teleportContainer:d,containerRef:h}=sH({popupContainer:n,visible:s}),p=fe(s.value);let m=!1;const g=W=>{e.escToClose&&W.key===Uo.ESC&&C()&&D(W)},y=()=>{e.escToClose&&!m&&(m=!0,Pi(document.documentElement,"keydown",g))},S=()=>{m&&(m=!1,no(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=i3("dialog",{visible:s}),x=j(()=>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 U=E,G=await new Promise(async Z=>{var oe;if(Cn(e.onBeforeOk)){let X=e.onBeforeOk((H=!0)=>Z(H));if((wm(X)||!El(X))&&(l.value=!0),wm(X))try{X=(oe=await X)!=null?oe:!0}catch(H){throw X=!1,H}El(X)&&Z(X)}else Z(!0)});U===E&&(G?(t("ok",W),_()):l.value&&(l.value=!1))},D=W=>{var U;let G=!0;Cn(e.onBeforeCancel)&&(G=(U=e.onBeforeCancel())!=null?U:!1),G&&(t("cancel",W),_())},P=W=>{e.maskClosable&&D(W)},M=()=>{s.value&&t("open")},$=()=>{s.value||(p.value=!1,N(),t("close"))},{setOverflowHidden:I,resetOverflow:N}=i0e(h);mn(()=>{s.value&&(p.value=!0,I(),y())}),Ao(()=>{N(),S()}),Rt(s,W=>{a.value!==W&&(a.value=W),W?(t("beforeOpen"),p.value=!0,I(),y()):(t("beforeClose"),S())});const F=j(()=>{var W;const U={[e.placement]:0,...(W=e.drawerStyle)!=null?W:{}};return["right","left"].includes(e.placement)?U.width=Ze(e.width)?`${e.width}px`:e.width:U.height=Ze(e.height)?`${e.height}px`:e.height,U});return{prefixCls:r,style:F,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:T,handleCancel:D,handleOpen:M,handleClose:$,handleMask:P,isFixed:x,teleportContainer:d}}});function i$e(e,t,n,r,o,a){const s=De("icon-close"),l=De("icon-hover"),c=De("arco-button"),d=De("client-only");return z(),Ye(d,null,{default:de(()=>[(z(),Ye(Hm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ei((z(),ee("div",jt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(xs,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?Ei((z(),ee("div",{key:0,class:ue(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Jo,e.computedVisible]]):Pe("v-if",!0)]),_:1}),O(xs,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ei(L("div",{class:ue(e.prefixCls),style:Ke(e.style)},[e.header?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-header`)},[pt(e.$slots,"header",{},()=>[e.$slots.title||e.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),e.closable?(z(),ee("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))},[O(l,null,{default:de(()=>[O(s)]),_:1})],2)):Pe("v-if",!0)])],2)):Pe("v-if",!0),L("div",{class:ue([`${e.prefixCls}-body`,e.bodyClass]),style:Ke(e.bodyStyle)},[pt(e.$slots,"default")],6),e.footer?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[pt(e.$slots,"footer",{},()=>[e.hideCancel?Pe("v-if",!0):(z(),Ye(c,jt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Ue(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,jt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[We(Ue(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Pe("v-if",!0)],6),[[Jo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Jo,e.computedVisible||e.mounted]]):Pe("v-if",!0)],8,["to","disabled"]))]),_:3})}var Aw=ze(r$e,[["render",i$e]]);const vre=(e,t)=>{let n=A5("drawer");const r=()=>{d.component&&(d.component.props.visible=!1),Cn(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),Cn(e.onCancel)&&e.onCancel()},a=async()=>{await Sn(),n&&(Yc(null,n),document.body.removeChild(n)),n=null,Cn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,m])=>{d.component.props[p]=m})},d=O(Aw,{...{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),Yc(d,n),document.body.appendChild(n),{close:s,update:l}},rV=Object.assign(Aw,{open:vre,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+Aw.name,Aw);const r={open:(o,a=e._context)=>vre(o,a)};e.config.globalProperties.$drawer=r},_context:null});function o0e(e){return e===Object(e)&&Object.keys(e).length!==0}function o$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 s$e(e){return e===!1?{block:"end",inline:"nearest"}:o0e(e)?e:{block:"start",inline:"nearest"}}function s0e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(o0e(t)&&typeof t.behavior=="function")return t.behavior(n?Kj(e,t):[]);if(n){var r=s$e(t);return o$e(Kj(e,r),r.behavior)}}const mre=["success","warning","error","validating"],a$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||mre.indexOf(r)>mre.indexOf(t))&&(t=e[n])}return t},l$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},a0e=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},u$e=ke({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=Ae("form"),r=fe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,size:g,rules:y}=en(e),{mergedSize:S}=wa(g),k=j(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],x=[],E=qt({}),_=j(()=>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(H=>{X[H.field]&&H.setField(X[H.field])})},M=(X,H)=>{H&&E[H]!==X&&(E[H]=X)},$=X=>{X&&delete E[X]},I=X=>{const H=X?[].concat(X):[];C.forEach(q=>{(H.length===0||H.includes(q.field))&&q.resetField()})},N=X=>{const H=X?[].concat(X):[];C.forEach(q=>{(H.length===0||H.includes(q.field))&&q.clearValidate()})},F=(X,H)=>{const Q=(r.value||document.body).querySelector(`#${a0e(e.id,X)}`);Q&&s0e(Q,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...H})},W=X=>{const H=El(e.scrollToFirstError)?void 0:e.scrollToFirstError;F(X,H)},U=X=>{const H=[];return C.forEach(q=>{H.push(q.validate())}),Promise.all(H).then(q=>{const Q={};let ne=!1;return q.forEach(ae=>{ae&&(ne=!0,Q[ae.field]=ae)}),ne&&e.scrollToFirstError&&W(Object.keys(Q)[0]),Cn(X)&&X(ne?Q:void 0),ne?Q:void 0})},G=(X,H)=>{const q=[];for(const Q of C)(nr(X)&&X.includes(Q.field)||X===Q.field)&&q.push(Q.validate());return Promise.all(q).then(Q=>{const ne={};let ae=!1;return Q.forEach(re=>{re&&(ae=!0,ne[re.field]=re)}),ae&&e.scrollToFirstError&&W(Object.keys(ne)[0]),Cn(H)&&H(ae?ne:void 0),ae?ne:void 0})},Z=X=>{const H=[];C.forEach(q=>{H.push(q.validate())}),Promise.all(H).then(q=>{const Q={};let ne=!1;q.forEach(ae=>{ae&&(ne=!0,Q[ae.field]=ae)}),ne?(e.scrollToFirstError&&W(Object.keys(Q)[0]),t("submitFailed",{values:a.value,errors:Q},X)):t("submitSuccess",a.value,X),t("submit",{values:a.value,errors:ne?Q:void 0},X)})};return ti(iH,qt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,model:a,size:S,rules:y,fields:C,touchedFields:x,addField:T,removeField:D,validateField:G,setLabelWidth:M,removeLabelWidth:$,maxLabelWidth:_,autoLabelWidth:k})),{cls:j(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:Z,innerValidate:U,innerValidateField:G,innerResetFields:I,innerClearValidate:N,innerSetFields:P,innerScrollToField:F}},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)}}}),c$e=["id"];function d$e(e,t,n,r,o,a){return z(),ee("form",{id:e.id,ref:"formRef",class:ue(e.cls),onSubmit:t[0]||(t[0]=ls((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[pt(e.$slots,"default")],42,c$e)}var ER=ze(u$e,[["render",d$e]]),a3=Object.prototype.toString;function j5(e){return a3.call(e)==="[object Array]"}function Lh(e){return a3.call(e)==="[object Object]"}function iV(e){return a3.call(e)==="[object String]"}function f$e(e){return a3.call(e)==="[object Number]"&&e===e}function h$e(e){return a3.call(e)==="[object Boolean]"}function oV(e){return a3.call(e)==="[object Function]"}function p$e(e){return Lh(e)&&Object.keys(e).length===0}function jv(e){return e==null||e===""}function l0e(e){return j5(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]=Lh(o)?Object.assign(Object.assign({},o),a):a||o}),n},v$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),y$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?f$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 jv(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return jv(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return jv(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return jv(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return jv(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return jv(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},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:"array"})),this.validate(o&&o.strict?j5(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(l0e(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})($d),_$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?Lh(this.obj):!0,this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(o){return this.obj?this.validate(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(p$e(this.obj),this.getValidateMsg("object.empty"))},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:"boolean"})),this.validate(o&&o.strict?h$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),k$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,}))$/,x$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"),C$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}$/,w$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||k$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||x$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||C$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})($d),E$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),G8=function(e,t){return new u0e(e,Object.assign({field:"value"},t))};G8.globalConfig={};G8.setGlobalConfig=function(e){G8.globalConfig=e||{}};var u0e=function(t,n){var r=G8.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:EH(r.validateMessages,n.validateMessages)});this.string=new g$e(t,o),this.number=new y$e(t,o),this.array=new b$e(t,o),this.object=new _$e(t,o),this.boolean=new S$e(t,o),this.type=new w$e(t,o),this.custom=new E$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(!Lh(t))return;var o=[],a=null;function s(l,c){a||(a={}),(!a[l]||c.requiredError)&&(a[l]=c)}this.schema&&Object.keys(this.schema).forEach(function(l){if(j5(r.schema[l]))for(var c=function(p){var m=r.schema[l][p],g=m.type,y=m.message;if(!g&&!m.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:y,field:l});"ignoreEmptyString"in m&&(S.ignoreEmptyString=m.ignoreEmptyString),"strict"in m&&(S.strict=m.strict);var k=new u0e(t[l],S),C=k.type[g]||null;if(!C)if(m.validator){C=k.custom.validate(m.validator),Object.prototype.toString.call(C)==="[object Array]"&&C[0].then?o.push({function:C[0],_this:C[1],key:l}):C&&s(l,C);return}else C=k[g];if(Object.keys(m).forEach(function(x){m.required&&(C=C.isRequired),x!=="message"&&C[x]&&m[x]&&typeof C[x]=="object"&&(C=C[x]),C[x]&&m[x]!==void 0&&typeof C[x]=="function"&&(C=C[x](m[x]))}),C.collect(function(x){x&&s(l,x)}),a)return"break"},d=0;d0?Promise.all(o.map(function(l){return l.function})).then(function(){o.forEach(function(l){l._this.error&&s(l.key,l._this.error)}),n&&n(a)}):n&&n(a)};const c0e=Symbol("RowContextInjectionKey"),d0e=Symbol("GridContextInjectionKey"),f0e=Symbol("GridDataCollectorInjectionKey"),T$e=ke({name:"Row",props:{gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},align:{type:String,default:"start"},div:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){const{gutter:t,align:n,justify:r,div:o,wrap:a}=en(e),s=Ae("row"),l=j(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=j(()=>Array.isArray(t.value)?t.value[0]:t.value),d=j(()=>Array.isArray(t.value)?t.value[1]:0),h=Ih(c,0),p=Ih(d,0),m=j(()=>{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=j(()=>[h.value,p.value]);return ti(c0e,qt({gutter:g,div:o})),{classNames:l,styles:m}}});function A$e(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.classNames),style:Ke(e.styles)},[pt(e.$slots,"default")],6)}var tb=ze(T$e,[["render",A$e]]);function I$e(e){return j(()=>{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 H8.forEach(p=>{const m=e.value[p];Ze(m)?h[p]=m:mr(m)&&Ze(m[r])&&(h[p]=m[r])}),h})}function L$e(e){if(us(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Ze(e))return e;if(us(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const D$e=ke({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=Ae("col"),n=Rn(c0e,{}),r=j(()=>L$e(e.flex)),o=j(()=>{const{div:p}=n,{span:m,offset:g,order:y,xs:S,sm:k,md:C,lg:x,xl:E,xxl:_}=e,T={[`${t}`]:!p,[`${t}-order-${y}`]:y,[`${t}-${m}`]:!p&&!S&&!k&&!C&&!x&&!E&&!_,[`${t}-offset-${g}`]:g&&g>0},D={xs:S,sm:k,md:C,lg:x,xl:E,xxl:_};return Object.keys(D).forEach(P=>{const M=D[P];M&&Ze(M)?T[`${t}-${P}-${M}`]=!0:M&&mr(M)&&(T[`${t}-${P}-${M.span}`]=M.span,T[`${t}-${P}-offset-${M.offset}`]=M.offset,T[`${t}-${P}-order-${M.order}`]=M.order)}),T}),a=j(()=>r.value?t:o.value),s=j(()=>{const{gutter:p,div:m}=n,g={};if(Array.isArray(p)&&!m){const y=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;y&&(g.paddingLeft=`${y}px`,g.paddingRight=`${y}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=j(()=>r.value?{flex:r.value}:{}),c=j(()=>kf(e,H8)),d=I$e(j(()=>({val:e.span,key:"span",...c.value}))),h=Ih(d,24,!0);return{visible:j(()=>!!h.value),classNames:a,styles:j(()=>({...s.value,...l.value}))}}});function P$e(e,t,n,r,o,a){return e.visible?(z(),ee("div",{key:0,class:ue(e.classNames),style:Ke(e.styles)},[pt(e.$slots,"default")],6)):Pe("v-if",!0)}var nb=ze(D$e,[["render",P$e]]);function R$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 M$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 O$e=ke({name:"Grid",props:{cols:{type:[Number,Object],default:24},rowGap:{type:[Number,Object],default:0},colGap:{type:[Number,Object],default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{type:Number,default:1}},setup(e){const{cols:t,rowGap:n,colGap:r,collapsedRows:o,collapsed:a}=en(e),s=Ih(t,24),l=Ih(r,0),c=Ih(n,0),d=Ae("grid"),h=j(()=>[d]),p=j(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),m=qt(new Map),g=j(()=>{const S=[];for(const[k,C]of m.entries())S[k]=C;return S}),y=qt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Os(()=>{y.cols=s.value,y.colGap=l.value}),Os(()=>{const S=M$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});y.overflow=S.overflow,y.displayIndexList=S.displayIndexList}),ti(d0e,y),ti(f0e,{collectItemData(S,k){m.set(S,k)},removeItemData(S){m.delete(S)}}),{classNames:h,style:p}}});function $$e(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.classNames),style:Ke(e.style)},[pt(e.$slots,"default")],6)}var TR=ze(O$e,[["render",$$e]]);const B$e=ke({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Ae("grid-item"),n=fe(),{computedIndex:r}=cH({itemRef:n,selector:`.${t}`}),o=Rn(d0e,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=Rn(f0e),s=j(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=en(e),d=Ih(l,1),h=Ih(c,0),p=j(()=>R$e(o.cols,{...e,span:d.value,offset:h.value})),m=j(()=>[t]),g=j(()=>{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=j(()=>{const{suffix:k,span:C}=p.value,{cols:x}=o;return k?`${x-C+1}`:`span ${C}`}),S=j(()=>{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)}),mi(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:m,style:S,domRef:n,overflow:j(()=>o.overflow)}}});function N$e(e,t,n,r,o,a){return z(),ee("div",{ref:"domRef",class:ue(e.classNames),style:Ke(e.style)},[pt(e.$slots,"default",{overflow:e.overflow})],6)}var Iw=ze(B$e,[["render",N$e]]);const T4=Object.assign(TR,{Row:tb,Col:nb,Item:Iw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+tb.name,tb),e.component(n+nb.name,nb),e.component(n+TR.name,TR),e.component(n+Iw.name,Iw)}}),F$e=ke({name:"Tooltip",components:{Trigger:ha},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Ae("tooltip"),r=fe(e.defaultPopupVisible),o=j(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=j(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=j(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=j(()=>[`${n}-popup-arrow`,e.arrowClass]),d=j(()=>{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 j$e(e,t,n,r,o,a){const s=De("Trigger");return z(),Ye(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(()=>[pt(e.$slots,"content",{},()=>[We(Ue(e.content),1)])]),default:de(()=>[pt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var AR=ze(F$e,[["render",j$e]]);const Xc=Object.assign(AR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+AR.name,AR)}}),V$e=ke({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),z$e=["stroke-width","stroke-linecap","stroke-linejoin"];function U$e(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),L("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1)]),14,z$e)}var IR=ze(V$e,[["render",U$e]]);const AH=Object.assign(IR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IR.name,IR)}}),H$e=ke({name:"FormItemLabel",components:{ResizeObserver:_0,Tooltip:Xc,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=Rn(iH,void 0),n=yo(),r=fe(),o=()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return mn(()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),Ao(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function W$e(e,t,n,r,o,a){const s=De("icon-question-circle"),l=De("Tooltip"),c=De("ResizeObserver");return z(),Ye(c,{onResize:e.handleResize},{default:de(()=>[(z(),Ye(Wa(e.component),jt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(z(),ee("strong",{key:0,class:ue(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[L("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[L("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Pe("v-if",!0),pt(e.$slots,"default"),e.tooltip?(z(),Ye(l,{key:1,content:e.tooltip},{default:de(()=>[O(s,{class:ue(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Pe("v-if",!0),e.required&&e.asteriskPosition==="end"?(z(),ee("strong",{key:2,class:ue(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[L("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[L("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Pe("v-if",!0),We(" "+Ue(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var G$e=ze(H$e,[["render",W$e]]);const K$e=ke({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Ae("form-item-message")}}});function q$e(e,t,n,r,o,a){return e.error.length>0?(z(!0),ee(Nt,{key:0},vn(e.error,s=>(z(),Ye(xs,{key:s,name:"form-blink",appear:""},{default:de(()=>[L("div",{role:"alert",class:ue([e.prefixCls])},Ue(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(z(),Ye(xs,{key:1,name:"form-blink",appear:""},{default:de(()=>[L("div",{class:ue([e.prefixCls,`${e.prefixCls}-help`])},[pt(e.$slots,"help",{},()=>[We(Ue(e.help),1)])],2)]),_:3})):Pe("v-if",!0)}var Y$e=ze(K$e,[["render",q$e]]);const X$e=ke({name:"FormItem",components:{ArcoRow:tb,ArcoCol:nb,FormItemLabel:G$e,FormItemMessage:Y$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}=en(e),r=Rn(iH,{}),{autoLabelWidth:o,layout:a}=en(r),{i18nMessage:s}=Bo(),l=j(()=>{var q;const Q={...(q=e.labelColProps)!=null?q:r.labelColProps};return e.labelColFlex?Q.flex=e.labelColFlex:r.autoLabelWidth&&(Q.flex=`${r.maxLabelWidth}px`),Q}),c=j(()=>{var q;const Q={...(q=e.wrapperColProps)!=null?q:r.wrapperColProps};return n.value&&(Q.id=a0e(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(Q.flex="auto"),Q}),d=j(()=>{var q;return(q=e.labelColStyle)!=null?q:r.labelColStyle}),h=j(()=>{var q;return(q=e.wrapperColStyle)!=null?q:r.wrapperColStyle}),p=cm(r.model,e.field),m=qt({}),g=qt({}),y=j(()=>a$e(m)),S=j(()=>l$e(g)),k=fe(!1),C=j(()=>cm(r.model,e.field)),x=j(()=>{var q;return!!((q=e.disabled)!=null?q:r?.disabled)}),E=j(()=>{var q;return(q=e.validateStatus)!=null?q:y.value}),_=j(()=>E.value==="error"),T=j(()=>{var q,Q,ne;const ae=[].concat((ne=(Q=e.rules)!=null?Q:(q=r?.rules)==null?void 0:q[e.field])!=null?ne:[]),re=ae.some(Se=>Se.required);return e.required&&!re?[{required:!0}].concat(ae):ae}),D=j(()=>T.value.some(q=>q.required)),P=e.noStyle?Rn(qj,void 0):void 0,M=(q,{status:Q,message:ne})=>{m[q]=Q,g[q]=ne,e.noStyle&&P?.updateValidateState(q,{status:Q,message:ne})},$=j(()=>e.feedback&&E.value?E.value:void 0),I=()=>{var q;if(k.value)return Promise.resolve();const Q=T.value;if(!n.value||Q.length===0)return y.value&&W(),Promise.resolve();const ne=n.value,ae=C.value;M(ne,{status:"",message:""});const re=new TH({[ne]:Q.map(({...Se})=>(!Se.type&&!Se.validator&&(Se.type="string"),Se))},{ignoreEmptyString:!0,validateMessages:(q=s.value.form)==null?void 0:q.validateMessages});return new Promise(Se=>{re.validate({[ne]:ae},xe=>{var ve;const be=!!xe?.[ne];M(ne,{status:be?"error":"",message:(ve=xe?.[ne].message)!=null?ve:""});const Ve=be?{label:e.label,field:n.value,value:xe[ne].value,type:xe[ne].type,isRequiredError:!!xe[ne].requiredError,message:xe[ne].message}:void 0;Se(Ve)})})},N=j(()=>[].concat(e.validateTrigger)),F=j(()=>N.value.reduce((q,Q)=>{switch(Q){case"change":return q.onChange=()=>{I()},q;case"input":return q.onInput=()=>{Sn(()=>{I()})},q;case"focus":return q.onFocus=()=>{I()},q;case"blur":return q.onBlur=()=>{I()},q;default:return q}},{}));ti(qj,qt({eventHandlers:F,size:r&&Lu(r,"size"),disabled:x,error:_,feedback:$,updateValidateState:M}));const W=()=>{n.value&&M(n.value,{status:"",message:""})},Z=qt({field:n,disabled:x,error:_,validate:I,clearValidate:W,resetField:()=>{W(),k.value=!0,r?.model&&n.value&&U8(r.model,n.value,p),Sn(()=>{k.value=!1})},setField:q=>{var Q,ne;n.value&&(k.value=!0,"value"in q&&r?.model&&n.value&&U8(r.model,n.value,q.value),(q.status||q.message)&&M(n.value,{status:(Q=q.status)!=null?Q:"",message:(ne=q.message)!=null?ne:""}),Sn(()=>{k.value=!1}))}});mn(()=>{var q;Z.field&&((q=r.addField)==null||q.call(r,Z))}),Ao(()=>{var q;Z.field&&((q=r.removeField)==null||q.call(r,Z))});const oe=j(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),X=j(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),H=j(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:oe,isRequired:D,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:X,autoLabelWidth:o,layout:a,mergedLabelStyle:d,wrapperColCls:H,mergedWrapperStyle:h}}});function Z$e(e,t,n,r,o,a){var s;const l=De("FormItemLabel"),c=De("ArcoCol"),d=De("FormItemMessage"),h=De("ArcoRow");return e.noStyle?pt(e.$slots,"default",{key:0}):(z(),Ye(h,jt({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?Pe("v-if",!0):(z(),Ye(c,jt({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:de(()=>[O(l,{required:e.hideAsterisk?!1:e.isRequired,"show-colon":e.showColon,"asterisk-position":e.asteriskPosition,component:e.labelComponent,attrs:e.labelAttrs,tooltip:e.tooltip},{default:de(()=>[e.$slots.label||e.label?pt(e.$slots,"label",{key:0},()=>[We(Ue(e.label),1)]):Pe("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,jt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[L("div",{class:ue(`${e.prefixCls}-content-wrapper`)},[L("div",{class:ue([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[pt(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(z(),Ye(d,{key:0,error:e.finalMessage,help:e.help},Eo({_:2},[e.$slots.help?{name:"help",fn:de(()=>[pt(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Pe("v-if",!0),e.$slots.extra||e.extra?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-extra`)},[pt(e.$slots,"extra",{},()=>[We(Ue(e.extra),1)])],2)):Pe("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var Lw=ze(X$e,[["render",Z$e]]);const J$e=Object.assign(ER,{Item:Lw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ER.name,ER),e.component(n+Lw.name,Lw)}}),Q$e=ke({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Ae("icon"),n=j(()=>{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:j(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function eBe(e,t,n,r,o,a){return z(),ee("svg",{class:ue(e.cls),style:Ke(e.innerStyle),fill:"currentColor"},[pt(e.$slots,"default")],6)}var Dw=ze(Q$e,[["render",eBe]]);function tBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}const gre=[],nBe=e=>{const{src:t,extraProps:n={}}=e;if(!H_&&t?.length&&!gre.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),gre.push(t),document.body.appendChild(r)}return ke({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:o}){return()=>{var a;const s=r.type?O("use",{"xlink:href":`#${r.type}`},null):(a=o.default)==null?void 0:a.call(o);return O(Dw,jt(r,n),tBe(s)?s:{default:()=>[s]})}}})},rBe=Object.assign(Dw,{addFromIconFontCn:nBe,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+Dw.name,Dw)}}),iBe=ke({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Ae("image-footer")}}}),oBe=["title"],sBe=["title"];function aBe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.prefixCls)},[e.title||e.description?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-caption`)},[e.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-caption-title`),title:e.title},Ue(e.title),11,oBe)):Pe("v-if",!0),e.description?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-caption-description`),title:e.description},Ue(e.description),11,sBe)):Pe("v-if",!0)],2)):Pe("v-if",!0),e.$slots.extra?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-extra`)},[pt(e.$slots,"extra")],2)):Pe("v-if",!0)],2)}var lBe=ze(iBe,[["render",aBe]]);const uBe=ke({name:"ImagePreviewArrow",components:{IconLeft:Al,IconRight:Ui},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Ae("image-preview-arrow")}}});function cBe(e,t,n,r,o,a){const s=De("icon-left"),l=De("icon-right");return z(),ee("div",{class:ue(e.prefixCls)},[L("div",{class:ue([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[O(s)],2),L("div",{class:ue([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[O(l)],2)],2)}var dBe=ze(uBe,[["render",cBe]]);function fBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var K8=ke({name:"ImagePreviewAction",components:{Tooltip:Xc},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=O("div",jt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:d=>{d.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(Xc,{class:`${r}-tooltip`,content:a},fBe(c)?c:{default:()=>[c]}):c}}}),hBe=ke({name:"ImagePreviewToolbar",components:{RenderFunction:Xh,PreviewAction:K8},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=en(e),r=Ae("image-preview-toolbar"),o=j(()=>{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 pBe(e,t,n,r,o,a){const s=De("RenderFunction"),l=De("PreviewAction");return z(),ee("div",{class:ue(e.prefixCls)},[(z(!0),ee(Nt,null,vn(e.resultActions,c=>(z(),Ye(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:de(()=>[O(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),pt(e.$slots,"default")],2)}var vBe=ze(hBe,[["render",pBe]]);function h0e(e){const t=fe("beforeLoad"),n=j(()=>t.value==="beforeLoad"),r=j(()=>t.value==="loading"),o=j(()=>t.value==="error"),a=j(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function mBe(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]=mBe(y,S,o.value[0],o.value[1],r.value);(k!==o.value[0]||C!==o.value[1])&&(o.value=[k,C])},h=y=>{y.preventDefault&&y.preventDefault();const S=c[0]+(y.pageX-s)/r.value,k=c[1]+(y.pageY-l)/r.value;o.value=[S,k]},p=y=>{y.preventDefault&&y.preventDefault(),a.value=!1,d(),g()},m=y=>{y.target===y.currentTarget&&(y.preventDefault&&y.preventDefault(),a.value=!0,s=y.pageX,l=y.pageY,c=[...o.value],Pi(window,"mousemove",h,!1),Pi(window,"mouseup",p,!1))};function g(){no(window,"mousemove",h,!1),no(window,"mouseup",p,!1)}return Os(y=>{n.value&&Pi(n.value,"mousedown",m),y(()=>{n.value&&no(n.value,"mousedown",m),g()})}),Rt([r],()=>{Sn(()=>d())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const yBe=ke({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bBe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Be(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1)]),14,bBe)}var LR=ze(yBe,[["render",_Be]]);const p0e=Object.assign(LR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LR.name,LR)}}),SBe=ke({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kBe=["stroke-width","stroke-linecap","stroke-linejoin"];function xBe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1)]),14,kBe)}var DR=ze(SBe,[["render",xBe]]);const v0e=Object.assign(DR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DR.name,DR)}}),CBe=ke({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wBe=["stroke-width","stroke-linecap","stroke-linejoin"];function EBe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1)]),14,wBe)}var PR=ze(CBe,[["render",EBe]]);const z5=Object.assign(PR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PR.name,PR)}}),TBe=ke({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ABe=["stroke-width","stroke-linecap","stroke-linejoin"];function IBe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1)]),14,ABe)}var RR=ze(TBe,[["render",IBe]]);const m0e=Object.assign(RR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RR.name,RR)}}),LBe=ke({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DBe=["stroke-width","stroke-linecap","stroke-linejoin"];function PBe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1)]),14,DBe)}var MR=ze(LBe,[["render",PBe]]);const g0e=Object.assign(MR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MR.name,MR)}}),RBe=ke({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MBe=["stroke-width","stroke-linecap","stroke-linejoin"];function OBe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),L("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,MBe)}var OR=ze(RBe,[["render",OBe]]);const y0e=Object.assign(OR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OR.name,OR)}});function $Be(e){const{container:t,hidden:n}=en(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 BBe(e,t){const{popupContainer:n}=en(t);return j(()=>(us(n.value)?qhe(n.value):n.value)||e)}const Cd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),b0e=Cd[0],_0e=Cd[Cd.length-1];function NBe(e=1,t="zoomIn"){let n=Cd.indexOf(e);return n===-1&&(n=jBe(e)),t==="zoomIn"?n===Cd.length-1?e:Cd[n+1]:n===0?e:Cd[n-1]}function FBe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(_0e,Math.max(b0e,o))}function jBe(e){let t=Cd.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}=Bo(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:d,zoomRate:h}=en(e),p=fe(),m=fe(),g=Ae("image-preview"),[y,S]=fa(s.value,qt({value:a})),k=j(()=>[g,{[`${g}-hide`]:!y.value}]),C=BBe(document.body,qt({popupContainer:o})),x=j(()=>C.value===document.body),{zIndex:E}=i3("dialog",{visible:y}),_=j(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:T,isLoaded:D,setLoadStatus:P}=h0e(),M=fe(0),$=fe(d.value),{translate:I,moving:N,resetTranslate:F}=gBe(qt({wrapperEl:p,imageEl:m,visible:y,scale:$})),W=fe(!1);let U=null;const G=()=>{!W.value&&(W.value=!0),U&&clearTimeout(U),U=setTimeout(()=>{W.value=!1},1e3)};$Be(qt({container:C,hidden:y}));function Z(){M.value=0,$.value=d.value,F()}const oe=Ve=>c.value.includes(Ve),X=Ve=>{switch(Ve.stopPropagation(),Ve.preventDefault(),Ve.key){case Uo.ESC:e.escToClose&&ae();break;case Uo.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Uo.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Uo.ARROW_UP:oe("zoomIn")&&be("zoomIn");break;case Uo.ARROW_DOWN:oe("zoomOut")&&be("zoomOut");break;case Uo.SPACE:oe("originalSize")&&Se(1);break}},H=Em(Ve=>{if(Ve.preventDefault(),Ve.stopPropagation(),!e.wheelZoom)return;const Me=(Ve.deltaY||Ve.deltaX)>0?"zoomOut":"zoomIn",je=FBe($.value,h.value,Me);Se(je)});let q=!1;const Q=()=>{Sn(()=>{var Ve;(Ve=p?.value)==null||Ve.focus()}),e.keyboard&&!q&&(q=!0,Pi(C.value,"keydown",X))},ne=()=>{q&&(q=!1,no(C.value,"keydown",X))};Rt([r,y],()=>{y.value?(Z(),P("loading"),Q()):ne()});function ae(){y.value&&(t("close"),t("update:visible",!1),S(!1))}function re(Ve){var Je;(Je=p?.value)==null||Je.focus(),l.value&&Ve.target===Ve.currentTarget&&ae()}function Se(Ve){$.value!==Ve&&($.value=Ve,G())}function xe(){const Ve=p.value.getBoundingClientRect(),Je=m.value.getBoundingClientRect(),Me=Ve.height/(Je.height/$.value),je=Ve.width/(Je.width/$.value),ge=Math.max(Me,je);Se(ge)}function ve(Ve){const Me=Ve==="clockwise"?(M.value+$R)%360:M.value===0?360-$R:M.value-$R;M.value=Me}function be(Ve){const Je=NBe($.value,Ve);Se(Je)}return Ao(()=>{ne()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:$,translate:I,rotate:M,moving:N,mergedVisible:y,isLoading:T,isLoaded:D,scaleValueVisible:W,refWrapper:p,refImage:m,onWheel:H,onMaskClick:re,onCloseClick:ae,onImgLoad(){P("loaded")},onImgError(){P("error")},actions:j(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>da(z5),onClick:()=>xe()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>da(g0e),onClick:()=>ve("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>da(m0e),onClick:()=>ve("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>da(v0e),onClick:()=>be("zoomIn"),disabled:$.value===_0e},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>da(p0e),onClick:()=>be("zoomOut"),disabled:$.value===b0e},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>da(y0e),onClick:()=>Se(1)}])}}});const zBe=["src"];function UBe(e,t,n,r,o,a){const s=De("IconLoading"),l=De("PreviewToolbar"),c=De("IconClose"),d=De("PreviewArrow");return z(),Ye(Hm,{to:e.container,disabled:!e.renderToBody},[L("div",{class:ue(e.classNames),style:Ke(e.wrapperStyles)},[O(xs,{name:"image-fade",onBeforeEnter:t[0]||(t[0]=h=>h.parentElement&&(h.parentElement.style.display="block")),onAfterLeave:t[1]||(t[1]=h=>h.parentElement&&(h.parentElement.style.display="")),persisted:""},{default:de(()=>[Ei(L("div",{class:ue(`${e.prefixCls}-mask`)},null,2),[[Jo,e.mergedVisible]])]),_:1}),e.mergedVisible?(z(),ee("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]=ls((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Pe(" img "),L("div",{class:ue(`${e.prefixCls}-img-container`),style:Ke({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(z(),ee("img",{ref:"refImage",key:e.src,src:e.src,class:ue([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Ke({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,zBe))],6),Pe(" loading "),e.isLoading?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-loading`)},[O(s)],2)):Pe("v-if",!0),Pe(" scale value "),O(xs,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-scale-value`)},Ue((e.scale*100).toFixed(0))+"% ",3)):Pe("v-if",!0)]),_:1}),Pe(" toolbar "),e.isLoaded&&e.actionsLayout.length?(z(),Ye(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[pt(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Pe("v-if",!0),Pe(" close btn "),e.closable?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Pe("v-if",!0),Pe(" group arrow "),e.inGroup?(z(),Ye(d,qi(jt({key:3},e.groupArrowProps)),null,16)):Pe("v-if",!0)],34)):Pe("v-if",!0)],6)],8,["to","disabled"])}var ry=ze(VBe,[["render",UBe]]);function yre(e){if(En(e))return;if(!Ze(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ze(t)?`${t}px`:void 0}const S0e=Symbol("PreviewGroupInjectionKey");let HBe=0;const WBe=ke({name:"Image",components:{IconImageClose:M5,IconLoading:Xa,ImageFooter:lBe,ImagePreview:ry},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}=Bo(),{height:a,width:s,hideFooter:l,title:c,description:d,src:h,footerPosition:p,defaultPreviewVisible:m,previewVisible:g,preview:y,previewProps:S}=en(e),k=Rn(S0e,void 0),C=Ae("image"),x=fe(),{isLoaded:E,isError:_,isLoading:T,setLoadStatus:D}=h0e(),P=j(()=>({width:yre(s?.value),height:yre(a?.value)})),M=j(()=>e.fit?{objectFit:e.fit}:{}),$=j(()=>[`${C}`,{[`${C}-loading`]:T.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:E&&N&&p.value==="inner",[`${C}-with-footer-outer`]:E&&N&&p.value==="outer"},t.class]),I=j(()=>[P.value,t.style]),N=j(()=>c?.value||d?.value||n.extra?El(l.value)?!l.value&&E.value:l.value==="never":!1),F=j(()=>xa(t,["class","style"])),[W,U]=fa(m.value,qt({value:g})),G=j(()=>!k?.preview&&y.value);Os(()=>{H_||!x.value||(x.value.src=h?.value,D("loading"))});const Z=HBe++;Os(Q=>{var ne,ae,re;const Se=(re=k?.registerImageUrl)==null?void 0:re.call(k,Z,((ae=(ne=S?.value)==null?void 0:ne.src)!=null?ae:h?.value)||"",y.value);Q(()=>{Se?.()})});function oe(){D("loaded")}function X(){D("error")}function H(){y.value&&(k?.preview?k.preview(Z):(r("preview-visible-change",!0),U(!0)))}function q(){r("preview-visible-change",!1),U(!1)}return{t:o,refImg:x,prefixCls:C,wrapperClassNames:$,wrapperStyles:I,showFooter:N,imgProps:F,imgStyle:P,isLoaded:E,isError:_,isLoading:T,mergedPreviewVisible:W,mergePreview:G,onImgLoaded:oe,onImgLoadError:X,onImgClick:H,onPreviewClose:q,fitStyle:M}}}),GBe=["title","alt"];function KBe(e,t,n,r,o,a){const s=De("IconImageClose"),l=De("IconLoading"),c=De("ImageFooter"),d=De("ImagePreview");return z(),ee("div",{class:ue(e.wrapperClassNames),style:Ke(e.wrapperStyles)},[L("img",jt({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,GBe),e.isLoaded?Pe("v-if",!0):(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-overlay`)},[e.isError?pt(e.$slots,"error",{key:0},()=>[L("div",{class:ue(`${e.prefixCls}-error`)},[L("div",{class:ue(`${e.prefixCls}-error-icon`)},[pt(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-error-alt`)},Ue(e.alt||e.description),3)):Pe("v-if",!0)],2)]):Pe("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?pt(e.$slots,"loader",{key:1},()=>[L("div",{class:ue([`${e.prefixCls}-loader`])},[L("div",{class:ue(`${e.prefixCls}-loader-spin`)},[O(l),L("div",{class:ue(`${e.prefixCls}-loader-spin-text`)},Ue(e.t("image.loading")),3)],2)],2)]):Pe("v-if",!0)],2)),e.showFooter?(z(),Ye(c,{key:1,class:ue(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},Eo({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[pt(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Pe("v-if",!0),e.isLoaded&&e.mergePreview?(z(),Ye(d,jt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[pt(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Pe("v-if",!0)],6)}var BR=ze(WBe,[["render",KBe]]),qBe=ke({name:"ImagePreviewGroup",components:{ImagePreview:ry},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}=en(e),[c,d]=fa(o.value,qt({value:r})),h=I=>{I!==c.value&&(t("visible-change",I),t("update:visible",I),d(I))},p=j(()=>new Map(nr(n?.value)?n?.value.map((I,N)=>[N,{url:I,canPreview:!0}]):[])),m=fe(new Map(p.value||[])),g=j(()=>Array.from(m.value.keys())),y=j(()=>g.value.length);function S(I,N,F){return p.value.has(I)||m.value.set(I,{url:N,canPreview:F}),function(){p.value.has(I)||m.value.delete(I)}}Rt(p,()=>{m.value=new Map(p.value||[])});const[k,C]=fa(s.value,qt({value:a})),x=I=>{I!==k.value&&(t("change",I),t("update:current",I),C(I))},E=j(()=>g.value[k.value]),_=I=>{const N=g.value.indexOf(I);N!==k.value&&x(N)},T=j(()=>{var I;return(I=m.value.get(E.value))==null?void 0:I.url});ti(S0e,qt({registerImageUrl:S,preview:I=>{h(!0),_(I)}}));const D=j(()=>{const I=(F,W)=>{var U;for(let G=F;G<=W;G++){const Z=g.value[G];if((U=m.value.get(Z))!=null&&U.canPreview)return G}},N=I(k.value+1,y.value-1);return En(N)&&l.value?I(0,k.value-1):N}),P=j(()=>{const I=(F,W)=>{var U;for(let G=F;G>=W;G--){const Z=g.value[G];if((U=m.value.get(Z))!=null&&U.canPreview)return G}},N=I(k.value-1,0);return En(N)&&l.value?I(y.value-1,k.value+1):N}),M=j(()=>En(P.value)?void 0:()=>{!En(P.value)&&x(P.value)}),$=j(()=>En(D.value)?void 0:()=>{!En(D.value)&&x(D.value)});return{mergedVisible:c,currentUrl:T,prevIndex:P,nextIndex:D,onClose(){h(!1)},groupArrowProps:qt({onPrev:M,onNext:$})}}});function YBe(e,t,n,r,o,a){const s=De("ImagePreview");return z(),ee(Nt,null,[pt(e.$slots,"default"),O(s,jt({...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}),Eo({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[pt(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 rb=ze(qBe,[["render",YBe]]);const XBe=Object.assign(BR,{Preview:ry,PreviewGroup:rb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+BR.name,BR),e.component(n+ry.name,ry),e.component(n+rb.name,rb),e.component(n+K8.name,K8)}}),k0e=Symbol("LayoutSiderInjectionKey"),x0e=Symbol("SiderInjectionKey");var ZBe=ke({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=fe([]),n=Ae("layout"),r=j(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return ti(k0e,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function JBe(e,t,n,r,o,a){return z(),ee("section",{class:ue(e.classNames)},[pt(e.$slots,"default")],2)}var NR=ze(ZBe,[["render",JBe]]);const QBe=ke({name:"LayoutHeader",setup(){return{classNames:[Ae("layout-header")]}}});function eNe(e,t,n,r,o,a){return z(),ee("header",{class:ue(e.classNames)},[pt(e.$slots,"default")],2)}var Pw=ze(QBe,[["render",eNe]]);const tNe=ke({name:"LayoutContent",setup(){return{classNames:[Ae("layout-content")]}}});function nNe(e,t,n,r,o,a){return z(),ee("main",{class:ue(e.classNames)},[pt(e.$slots,"default")],2)}var Rw=ze(tNe,[["render",nNe]]);const rNe=ke({name:"LayoutFooter",setup(){return{classNames:[Ae("layout-footer")]}}});function iNe(e,t,n,r,o,a){return z(),ee("footer",{class:ue(e.classNames)},[pt(e.$slots,"default")],2)}var Mw=ze(rNe,[["render",iNe]]);const oNe=ke({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sNe=["stroke-width","stroke-linecap","stroke-linejoin"];function aNe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,sNe)}var FR=ze(oNe,[["render",aNe]]);const C0e=Object.assign(FR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FR.name,FR)}}),lNe=ke({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uNe=["stroke-width","stroke-linecap","stroke-linejoin"];function cNe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,uNe)}var jR=ze(lNe,[["render",cNe]]);const U5=Object.assign(jR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jR.name,jR)}});var dNe=ke({name:"ResizeTrigger",components:{ResizeObserver:Dd,IconDragDot:C0e,IconDragDotVertical:U5},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=en(e),o=j(()=>n?.value==="horizontal");return{classNames:j(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function fNe(e,t,n,r,o,a){const s=De("IconDragDot"),l=De("IconDragDotVertical"),c=De("ResizeObserver");return z(),Ye(c,{onResize:e.onResize},{default:de(()=>[L("div",{class:ue(e.classNames)},[Pe(" @slot 自定义内容 "),pt(e.$slots,"default",{},()=>[L("div",{class:ue(`${e.prefixCls}-icon-wrapper`)},[Pe(" @slot 自定义 icon "),pt(e.$slots,"icon",{},()=>[e.isHorizontal?(z(),Ye(s,{key:0,class:ue(`${e.prefixCls}-icon`)},null,8,["class"])):(z(),Ye(l,{key:1,class:ue(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var w0e=ze(dNe,[["render",fNe]]);const E0e="left",T0e="right",IH="top",LH="bottom",hNe=[E0e,T0e,IH,LH];function bre(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 pNe=ke({name:"ResizeBox",components:{ResizeTrigger:w0e},inheritAttrs:!1,props:{width:{type:Number},height:{type:Number},component:{type:String,default:"div"},directions:{type:Array,default:()=>["right"]}},emits:{"update:width":e=>!0,"update:height":e=>!0,movingStart:e=>!0,moving:(e,t)=>!0,movingEnd:e=>!0},setup(e,{emit:t}){const{height:n,width:r,directions:o}=en(e),[a,s]=fa(null,qt({value:r})),[l,c]=fa(null,qt({value:n})),d=fe(),h=qt({}),p=Ae("resizebox"),m=j(()=>[p]),g=j(()=>({...Ze(a.value)?{width:`${a.value}px`}:{},...Ze(l.value)?{height:`${l.value}px`}:{},...h})),y=j(()=>o.value.filter(_=>hNe.includes(_))),S={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function k(_){if(!S.moving)return;const{startPageX:T,startPageY:D,startWidth:P,startHeight:M,direction:$}=S;let I=P,N=M;const F=_.pageX-T,W=_.pageY-D;switch($){case E0e:I=P-F,s(I),t("update:width",I);break;case T0e:I=P+F,s(I),t("update:width",I);break;case IH:N=M-W,c(N),t("update:height",N);break;case LH:N=M+W,c(N),t("update:height",N);break}t("moving",{width:I,height:N},_)}function C(_){S.moving=!1,no(window,"mousemove",k),no(window,"mouseup",C),no(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function x(_,T){var D,P;t("movingStart",T),S.moving=!0,S.startPageX=T.pageX,S.startPageY=T.pageY,S.direction=_;const{top:M,left:$,right:I,bottom:N}=S.padding;S.startWidth=bre(((D=d.value)==null?void 0:D.clientWidth)||0,$+I),S.startHeight=bre(((P=d.value)==null?void 0:P.clientHeight)||0,M+N),Pi(window,"mousemove",k),Pi(window,"mouseup",C),Pi(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:m,styles:g,wrapperRef:d,onMoveStart:x,isHorizontal:VR,allowDirections:y,onTiggerResize:E}}});function vNe(e,t,n,r,o,a){const s=De("ResizeTrigger");return z(),Ye(Wa(e.component),jt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[pt(e.$slots,"default"),(z(!0),ee(Nt,null,vn(e.allowDirections,l=>(z(),Ye(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)}},Eo({default:de(()=>[e.$slots["resize-trigger"]?pt(e.$slots,"resize-trigger",{key:0,direction:l}):Pe("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[pt(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=ze(pNe,[["render",vNe]]);const A0e=Object.assign(zR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+zR.name,zR)}});function I0e(e,t){const n=j(()=>$o(e)?e.value:e);let r="";mn(()=>{r=W8.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),mi(()=>{r&&W8.unsubscribe(r)})}const mNe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var gNe=ke({name:"LayoutSider",components:{IconLeft:Al,IconRight:Ui,ResizeBox:A0e},props:{theme:{type:String,default:"light"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsible:{type:Boolean},width:{type:Number,default:200},collapsedWidth:{type:Number,default:48},reverseArrow:{type:Boolean},breakpoint:{type:String},resizeDirections:{type:Array,default:void 0},hideTrigger:{type:Boolean}},emits:["collapse","update:collapsed","breakpoint"],setup(e,{emit:t}){const{theme:n,collapsed:r,defaultCollapsed:o,collapsible:a,hideTrigger:s,breakpoint:l,collapsedWidth:c,resizeDirections:d}=en(e),[h,p]=fa(o.value,qt({value:r})),m=j(()=>d.value?"ResizeBox":"div"),g=j(()=>a.value&&!s.value),y=Ae("layout-sider"),S=j(()=>[y,{[`${y}-light`]:n.value==="light",[`${y}-has-trigger`]:g.value,[`${y}-collapsed`]:r.value}]),k=j(()=>{const{width:T,collapsedWidth:D}=e,P=h.value?D:T;return Ze(P)?`${P}px`:String(P)}),C=j(()=>[`${y}-trigger`,{[`${y}-trigger-light`]:n.value==="light"}]),x=()=>{const T=!h.value;p(T),t("update:collapsed",T),t("collapse",T,"clickTrigger")};I0e(l,T=>{const D=!T;D!==h.value&&(p(D),t("update:collapsed",D),t("collapse",D,"responsive"),t("breakpoint",D))});const E=mNe("__arco_layout_sider"),_=Rn(k0e,void 0);return mn(()=>{var T;(T=_?.onSiderMount)==null||T.call(_,E)}),mi(()=>{var T;(T=_?.onSiderUnMount)==null||T.call(_,E)}),ti(x0e,qt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:m,prefixCls:y,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const yNe={key:0},bNe={key:1};function _Ne(e,t,n,r,o,a){const s=De("IconLeft"),l=De("IconRight");return z(),Ye(Wa(e.componentTag),jt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[L("div",{class:ue(`${e.prefixCls}-children`)},[pt(e.$slots,"default")],2),e.showTrigger?(z(),ee("div",{key:0,class:ue(e.triggerClassNames),style:Ke({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[pt(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(z(),ee("div",bNe,[e.localCollapsed?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))])):(z(),ee("div",yNe,[e.localCollapsed?(z(),Ye(l,{key:1})):(z(),Ye(s,{key:0}))]))])],6)):Pe("v-if",!0)]),_:3},16,["class","style"])}var Ow=ze(gNe,[["render",_Ne]]);const SNe=Object.assign(NR,{Header:Pw,Content:Rw,Footer:Mw,Sider:Ow,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+NR.name,NR),e.component(n+Pw.name,Pw),e.component(n+Rw.name,Rw),e.component(n+Mw.name,Mw),e.component(n+Ow.name,Ow)}}),kNe=ke({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=Ae("pagination-item"),r=j(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=j(()=>[n,{[`${n}-active`]:r.value}]),s=j(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function xNe(e,t,n,r,o,a){return z(),ee("li",{class:ue(e.cls),style:Ke(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[pt(e.$slots,"default",{page:e.pageNumber},()=>[We(Ue(e.pageNumber),1)])],6)}var CNe=ze(kNe,[["render",xNe]]);const L0e=(e,{min:t,max:n})=>en?n:e,wNe=ke({name:"StepPager",components:{IconLeft:Al,IconRight:Ui},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=j(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=j(()=>L0e(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=j(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function ENe(e,t,n,r,o,a){const s=De("icon-right"),l=De("icon-left");return z(),Ye(Wa(e.simple?"span":"li"),{class:ue(e.cls),onClick:e.handleClick},{default:de(()=>[pt(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))])]),_:3},8,["class","onClick"])}var _re=ze(wNe,[["render",ENe]]);const TNe=ke({name:"EllipsisPager",components:{IconMore:$0},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=j(()=>L0e(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=j(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function ANe(e,t,n,r,o,a){const s=De("icon-more");return z(),ee("li",{class:ue(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[pt(e.$slots,"default",{},()=>[O(s)])],2)}var INe=ze(TNe,[["render",ANe]]);const LNe=ke({name:"PageJumper",components:{InputNumber:Z_},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}=Bo(),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),Sn(()=>{e.simple||(o.value=void 0)})};Rt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=j(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function DNe(e,t,n,r,o,a){const s=De("input-number");return z(),ee("span",{class:ue(e.cls)},[e.simple?Pe("v-if",!0):(z(),ee("span",{key:0,class:ue([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[pt(e.$slots,"jumper-prepend",{},()=>[We(Ue(e.t("pagination.goto")),1)])],2)),O(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(),ee("span",{key:1,class:ue(`${e.prefixCls}-append`)},[pt(e.$slots,"jumper-append")],2)):Pe("v-if",!0),e.simple?(z(),ee(Nt,{key:2},[L("span",{class:ue(`${e.prefixCls}-separator`)},"/",2),L("span",{class:ue(`${e.prefixCls}-total-page`)},Ue(e.pages),3)],64)):Pe("v-if",!0)],2)}var Sre=ze(LNe,[["render",DNe]]);const PNe=ke({name:"PageOptions",components:{ArcoSelect:t_},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}=Bo(),o=j(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function RNe(e,t,n,r,o,a){const s=De("arco-select");return z(),ee("span",{class:ue(e.prefixCls)},[O(s,jt({"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 MNe=ze(PNe,[["render",RNe]]),UR=ke({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const r=Ae("pagination"),{t:o}=Bo(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=en(e),{mergedSize:d}=wa(c),h=fe(e.defaultCurrent),p=fe(e.defaultPageSize),m=j(()=>{var D;return(D=e.current)!=null?D:h.value}),g=j(()=>{var D;return(D=e.pageSize)!=null?D:p.value}),y=j(()=>Math.ceil(e.total/g.value)),S=D=>{D!==m.value&&Ze(D)&&!e.disabled&&(h.value=D,t("update:current",D),t("change",D))},k=D=>{p.value=D,t("update:pageSize",D),t("pageSizeChange",D)},C=qt({current:m,pages:y,disabled:a,style:s,activeStyle:l,onClick:S}),x=(D,P={})=>D==="more"?O(INe,jt(P,C),{default:n["page-item-ellipsis"]}):D==="previous"?O(_re,jt({type:"previous"},P,C),{default:n["page-item-step"]}):D==="next"?O(_re,jt({type:"next"},P,C),{default:n["page-item-step"]}):O(CNe,jt(P,C),{default:n["page-item"]}),E=j(()=>{const D=[];if(y.value2+e.bufferSize&&($=!0,P=Math.min(m.value-e.bufferSize,y.value-2*e.bufferSize)),m.valuee.simple?O("span",{class:`${r}-simple`},[x("previous",{simple:!0}),O(Sre,{disabled:e.disabled,current:m.value,size:d.value,pages:y.value,simple:!0,onChange:S},null),x("next",{simple:!0})]):O("ul",{class:`${r}-list`},[x("previous",{simple:!0}),E.value,e.showMore&&x("more",{key:"more",step:e.bufferSize*2+1}),x("next",{simple:!0})]);Rt(g,(D,P)=>{if(e.autoAdjust&&D!==P&&m.value>1){const M=P*(m.value-1)+1,$=Math.ceil(M/D);$!==m.value&&(h.value=$,t("update:current",$),t("change",$))}}),Rt(y,(D,P)=>{if(e.autoAdjust&&D!==P&&m.value>1&&m.value>D){const M=Math.max(D,1);h.value=M,t("update:current",M),t("change",M)}});const T=j(()=>[r,`${r}-size-${d.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var D,P;return e.hideOnSinglePage&&y.value<=1?null:O("div",{class:T.value},[e.showTotal&&O("span",{class:`${r}-total`},[(P=(D=n.total)==null?void 0:D.call(n,{total:e.total}))!=null?P:o("pagination.total",e.total)]),_(),e.showPageSize&&O(MNe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:d.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(Sre,{disabled:e.disabled,current:m.value,pages:y.value,size:d.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const DH=Object.assign(UR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+UR.name,UR)}}),ONe=(e,{emit:t})=>{var n,r;const o=fe(mr(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=fe(mr(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=j(()=>{var h;return mr(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=j(()=>{var h;return mr(e.paginationProps)&&(h=e.paginationProps.pageSize)!=null?h:a.value});return{current:s,pageSize:l,handlePageChange:h=>{o.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}};function kre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var HR=ke({name:"List",props:{data:{type:Array},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{type:Object},gridProps:{type:Object},maxHeight:{type:[String,Number],default:0},bottomOffset:{type:Number,default:0},virtualListProps:{type:Object},scrollbar:{type:[Object,Boolean],default:!0}},emits:{scroll:()=>!0,reachBottom:()=>!0,pageChange:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const{scrollbar:r}=en(e),o=Ae("list"),a=Rn(Ya,void 0),{componentRef:s,elementRef:l}=F1("containerRef"),c=j(()=>e.virtualListProps),{displayScrollbar:d,scrollbarProps:h}=D5(r);let p=0;const m=U=>{const{scrollTop:G,scrollHeight:Z,offsetHeight:oe}=U.target,X=Math.floor(Z-(G+oe));G>p&&X<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=G};mn(()=>{if(l.value){const{scrollTop:U,scrollHeight:G,offsetHeight:Z}=l.value;G<=U+Z&&t("reachBottom")}});const{current:g,pageSize:y,handlePageChange:S,handlePageSizeChange:k}=ONe(e,{emit:t}),C=U=>{if(!e.paginationProps)return U;if(e.paginationProps&&U.length>y.value){const G=(g.value-1)*y.value;return U.slice(G,G+y.value)}return U},x=U=>{let G;if(!e.gridProps)return null;const Z=C(U);if(e.gridProps.span){const oe=[],X=24/e.gridProps.span;for(let H=0;H{var Se;return O(T4.Col,{key:`${ne}-${re}`,class:`${o}-col`,span:(Se=e.gridProps)==null?void 0:Se.span},{default:()=>{var xe;return[Hi(ae)?ae:(xe=n.item)==null?void 0:xe.call(n,{item:ae,index:re})]}})}))?q:{default:()=>[q]}))}return oe}return O(T4.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},kre(G=Z.map((oe,X)=>O(T4.Col,jt({key:X,class:`${o}-col`},xa(e.gridProps,["gutter"])),{default:()=>{var H;return[Hi(oe)?oe:(H=n.item)==null?void 0:H.call(n,{item:oe,index:X})]}})))?G:{default:()=>[G]})},E=U=>C(U).map((Z,oe)=>{var X;return Hi(Z)?Z:(X=n.item)==null?void 0:X.call(n,{item:Z,index:oe})}),_=()=>{const U=n.default?yf(n.default()):e.data;return U&&U.length>0?e.gridProps?x(U):E(U):F()},T=()=>{if(!e.paginationProps)return null;const U=xa(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(DH,jt({class:`${o}-pagination`},U,{current:g.value,pageSize:y.value,onChange:S,onPageSizeChange:k}),null)},D=j(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),P=j(()=>{if(e.maxHeight)return{maxHeight:Ze(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),M=j(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),$=fe(),I=()=>{var U;const G=C((U=e.data)!=null?U:[]);return G.length?O(s3,jt({ref:$,class:M.value,data:G},e.virtualListProps,{onScroll:m}),{item:({item:Z,index:oe})=>{var X;return(X=n.item)==null?void 0:X.call(n,{item:Z,index:oe})}}):F()},N=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,F=()=>{var U,G,Z,oe,X;return n["scroll-loading"]?null:(X=(oe=(U=n.empty)==null?void 0:U.call(n))!=null?oe:(Z=a==null?void 0:(G=a.slots).empty)==null?void 0:Z.call(G,{component:"list"}))!=null?X:O(qh,null,null)};return{virtualListRef:$,render:()=>{const U=d.value?Rd:"div";return O("div",{class:`${o}-wrapper`},[O(Pd,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(U,jt({ref:s,class:D.value,style:P.value},h.value,{onScroll:m}),{default:()=>[O("div",{class:`${o}-content-wrapper`},[n.header&&O("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?O(Nt,null,[I(),N()]):O("div",{role:"list",class:M.value},[_(),N()]),n.footer&&O("div",{class:`${o}-footer`},[n.footer()])])]}),T()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),$w=ke({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:O("ul",{class:`${n}-action`},[a.map((s,l)=>O("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var o,a;return O("div",{role:"listitem",class:n},[O("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),O("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&O("div",{class:`${n}-extra`},[t.extra()])])}}});const $Ne=ke({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 BNe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.prefixCls)},[e.$slots.avatar?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-avatar`)},[pt(e.$slots,"avatar")],2)):Pe("v-if",!0),e.hasContent?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),e.$slots.description||e.description?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-description`)},[pt(e.$slots,"description",{},()=>[We(Ue(e.description),1)])],2)):Pe("v-if",!0)],2)):Pe("v-if",!0)],2)}var Bw=ze($Ne,[["render",BNe]]);const D0e=Object.assign(HR,{Item:Object.assign($w,{Meta:Bw}),install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+HR.name,HR),e.component(n+$w.name,$w),e.component(n+Bw.name,Bw)}}),NNe=["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 NNe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},FNe=ke({name:"Textarea",components:{ResizeObserver:Dd,IconHover:Io,IconClose:cs},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}=en(e),s=Ae("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:d}=Lo({disabled:r,error:o}),h=fe(),p=fe(),m=fe(),g=fe(),y=fe(e.defaultValue),S=j(()=>{var Fe;return(Fe=a.value)!=null?Fe:y.value}),[k,C]=Qhe(h);Rt(a,Fe=>{(En(Fe)||Tl(Fe))&&(y.value="")});const x=j(()=>mr(e.maxLength)&&!!e.maxLength.errorOnly),E=j(()=>mr(e.maxLength)?e.maxLength.length:e.maxLength),_=Fe=>{var He;return Cn(e.wordLength)?e.wordLength(Fe):(He=Fe.length)!=null?He:0},T=j(()=>_(S.value)),D=j(()=>c.value||!!(E.value&&x.value&&T.value>E.value)),P=fe(!1),M=fe(!1),$=j(()=>e.allowClear&&!l.value&&S.value),I=fe(!1),N=fe(""),F=()=>{k(),Sn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},W=(Fe,He=!0)=>{var Qe,rt;E.value&&!x.value&&_(Fe)>E.value&&(Fe=(rt=(Qe=e.wordSlice)==null?void 0:Qe.call(e,Fe,E.value))!=null?rt:Fe.slice(0,E.value)),y.value=Fe,He&&t("update:modelValue",Fe),F()};let U=S.value;const G=(Fe,He)=>{var Qe,rt;Fe!==U&&(U=Fe,t("change",Fe,He),(rt=(Qe=d.value)==null?void 0:Qe.onChange)==null||rt.call(Qe,He))},Z=Fe=>{var He,Qe;M.value=!0,U=S.value,t("focus",Fe),(Qe=(He=d.value)==null?void 0:He.onFocus)==null||Qe.call(He,Fe)},oe=Fe=>{var He,Qe;M.value=!1,t("blur",Fe),(Qe=(He=d.value)==null?void 0:He.onBlur)==null||Qe.call(He,Fe),G(S.value,Fe)},X=Fe=>{var He,Qe;const{value:rt}=Fe.target;if(Fe.type==="compositionend"){if(I.value=!1,N.value="",E.value&&!x.value&&S.value.length>=E.value&&_(rt)>E.value){F();return}t("input",rt,Fe),W(rt),(Qe=(He=d.value)==null?void 0:He.onInput)==null||Qe.call(He,Fe)}else I.value=!0},H=Fe=>{var He,Qe;const{value:rt}=Fe.target;if(I.value)N.value=rt;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(rt)>E.value&&Fe.inputType==="insertText"){F();return}t("input",rt,Fe),W(rt),(Qe=(He=d.value)==null?void 0:He.onInput)==null||Qe.call(He,Fe)}},q=Fe=>{W(""),G("",Fe),t("clear",Fe)};Rt(a,Fe=>{Fe!==S.value&&W(Fe??"",!1)});const Q=Fe=>xa(n,y0),ne=Fe=>kf(n,y0),ae=ne(),re=j(()=>{const Fe={...ae,...e.textareaAttrs};return D.value&&(Fe["aria-invalid"]=!0),Fe}),Se=j(()=>[`${s}-wrapper`,{[`${s}-focus`]:M.value,[`${s}-disabled`]:l.value,[`${s}-error`]:D.value,[`${s}-scroll`]:P.value}]);let xe;const ve=fe(0),be=fe(0),Ve=j(()=>!mr(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ve.value+be.value),Je=j(()=>!mr(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ve.value+be.value),Me=()=>{const Fe=sV(xe);ve.value=Number.parseInt(Fe["line-height"]||0,10),be.value=Number.parseInt(Fe["border-width"]||0,10)*2+Number.parseInt(Fe["padding-top"]||0,10)+Number.parseInt(Fe["padding-bottom"]||0,10),g.value=Fe,Sn(()=>{var He;const Qe=(He=m.value)==null?void 0:He.offsetHeight;let rt=Qe??0,ft="hidden";Ve.value&&rtJe.value&&(rt=Je.value,ft="auto"),p.value={height:`${rt}px`,resize:"none",overflow:ft}})};mn(()=>{h.value&&(xe=window.getComputedStyle(h.value),e.autoSize&&Me()),_e()});const je=()=>{e.autoSize&&m.value&&Me(),_e()},ge=Fe=>{h.value&&Fe.target!==h.value&&(Fe.preventDefault(),h.value.focus())},_e=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?P.value||(P.value=!0):P.value&&(P.value=!1))};return Rt(S,()=>{e.autoSize&&m.value&&Me(),_e()}),{prefixCls:s,wrapperCls:Se,textareaRef:h,textareaStyle:p,mirrorRef:m,mirrorStyle:g,computedValue:S,showClearBtn:$,valueLength:T,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:re,getWrapperAttrs:Q,getTextareaAttrs:ne,handleInput:H,handleFocus:Z,handleBlur:oe,handleComposition:X,handleClear:q,handleResize:je,handleMousedown:ge}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),jNe=["disabled","value","placeholder"];function VNe(e,t,n,r,o,a){const s=De("resize-observer"),l=De("icon-close"),c=De("icon-hover");return z(),ee("div",jt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...d)=>e.handleMousedown&&e.handleMousedown(...d))}),[e.autoSize?(z(),ee("div",{key:0,ref:"mirrorRef",class:ue(`${e.prefixCls}-mirror`),style:Ke(e.mirrorStyle)},Ue(`${e.computedValue} `),7)):Pe("v-if",!0),O(s,{onResize:e.handleResize},{default:de(()=>[L("textarea",jt({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,jNe)]),_:1},8,["onResize"]),pt(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-word-limit`)},Ue(e.valueLength)+"/"+Ue(e.computedMaxLength),3)):Pe("v-if",!0),e.showClearBtn?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...d)=>e.handleClear&&e.handleClear(...d))},[O(c,null,{default:de(()=>[O(l)]),_:1})],2)):Pe("v-if",!0)],16)}var WR=ze(FNe,[["render",VNe]]);const P0e=Object.assign(WR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+WR.name,WR)}}),zNe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},UNe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),HNe=(e,t)=>!t||!e.includes(t);function WNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var GR=ke({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=Ae("mention");let a;const{mergedDisabled:s,eventHandlers:l}=Lo({disabled:Lu(e,"disabled")}),{data:c,modelValue:d}=en(e),h=fe(),p=fe({}),m=fe(e.defaultValue),g=j(()=>{var ae;return(ae=e.modelValue)!=null?ae:m.value});Rt(d,ae=>{(En(ae)||Tl(ae))&&(m.value="")});const y=j(()=>g.value?[Am(g.value)]:[]),S=fe({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=fe(),x=j(()=>S.value.text),E=fe(!0),_=(ae,re)=>{var Se,xe;const ve=zNe(re.target),be=UNe(ve,e.prefix);if(be.location>-1){const Ve=ve.slice(be.location+be.prefix.length);HNe(Ve,e.split)?(D.value=!0,S.value={measuring:!0,text:Ve,...be},t("search",Ve,be.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();m.value=ae,t("update:modelValue",ae),t("change",ae),(xe=(Se=l.value)==null?void 0:Se.onChange)==null||xe.call(Se)},T=ae=>{var re,Se;m.value="",t("update:modelValue",""),t("change",""),(Se=(re=l.value)==null?void 0:re.onChange)==null||Se.call(re),t("clear",ae)},D=fe(!1),P=j(()=>D.value&&S.value.measuring&&W.value.length>0),M=()=>{G.value=sV(a)},$=ae=>{D.value=ae},I=(ae,re)=>{var Se,xe,ve;const{value:be}=(Se=F.get(ae))!=null?Se:{},Ve=S.value.location,Je=S.value.location+S.value.text.length;let Me=m.value.slice(0,Ve),je=m.value.slice(Je+1);Me+=!Me||Me.endsWith(e.split)||Me.endsWith(` `)?"":e.split,je=(!je||je.startsWith(e.split)||je.startsWith(` `)?"":e.split)+je;const ge=`${S.value.prefix}${be}`,_e=`${Me}${ge}${je}`;m.value=_e,t("select",be),t("update:modelValue",_e),t("change",_e),k(),(ve=(xe=l.value)==null?void 0:xe.onChange)==null||ve.call(xe)},{validOptions:N,optionInfoMap:F,validOptionInfos:W,handleKeyDown:U}=uH({options:c,inputValue:x,filterOption:E,popupVisible:P,valueKeys:y,dropdownRef:h,optionRefs:p,onSelect:I,onPopupVisibleChange:$,enterToOpen:!1}),G=fe();mn(()=>{var ae;e.type==="textarea"&&((ae=C.value)!=null&&ae.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),G.value=sV(a))});const Z=ae=>{if(Cn(r.option)&&ae.value){const re=F.get(ae.key),Se=r.option;return()=>Se({data:re})}return()=>ae.label},oe=ae=>O(lm,{ref:re=>{re?.$el&&(p.value[ae.key]=re.$el)},key:ae.key,value:ae.value,disabled:ae.disabled,internal:!0},{default:Z(ae)}),X=()=>{let ae;return O(lH,{ref:h},WNe(ae=N.value.map(re=>oe(re)))?ae:{default:()=>[ae]})},H=fe();Rt(P,ae=>{e.type==="textarea"&&ae&&Sn(()=>{var re,Se;(re=C.value)!=null&&re.textareaRef&&C.value.textareaRef.scrollTop>0&&((Se=H.value)==null||Se.scrollTo(0,C.value.textareaRef.scrollTop))})});const q=ae=>{t("focus",ae)},Q=ae=>{t("blur",ae)};return{inputRef:C,render:()=>{var ae;return e.type==="textarea"?O("div",{class:o},[O(Dd,{onResize:M},{default:()=>[O(P0e,jt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:Q,onKeydown:U}),null)]}),S.value.measuring&&W.value.length>0&&O("div",{ref:H,style:G.value,class:`${o}-measure`},[(ae=g.value)==null?void 0:ae.slice(0,S.value.location),O(ha,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,onPopupVisibleChange:$},{default:()=>[O("span",null,[We("@")])],content:X})])]):O(ha,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:$},{default:()=>[O(O0,jt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:Q,onKeydown:U}),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 GNe=Object.assign(GR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+GR.name,GR)}}),PH=Symbol("MenuInjectionKey"),RH=Symbol("LevelInjectionKey"),R0e=Symbol("DataCollectorInjectionKey"),KNe=ke({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qNe=["stroke-width","stroke-linecap","stroke-linejoin"];function YNe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,qNe)}var KR=ze(KNe,[["render",YNe]]);const M0e=Object.assign(KR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KR.name,KR)}}),XNe=ke({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZNe=["stroke-width","stroke-linecap","stroke-linejoin"];function JNe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,ZNe)}var qR=ze(XNe,[["render",JNe]]);const O0e=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=j(()=>$o(e)?e.value:e);ti(RH,qt({level:t}))}function tS(e){const{provideNextLevel:t}=e||{},n=Rn(RH),r=j(()=>n?.level||1);if(t){const o=j(()=>r.value+1);MH(o)}return{level:r}}function xre(e,t){const n=[],r=o=>{o.forEach(a=>{t(a)&&n.push(a.key),a.children&&r(a.children)})};return r(e),n}function $0e(e=!1){return e?void 0:Rn(R0e)}function B0e(e){const{key:t,type:n}=e,r=fe([]),o=$0e(n==="menu");return ti(R0e,{collectSubMenu(s,l,c=!1){const d={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(d)}else r.value=[...r.value,d];c&&(n==="popupMenu"?o?.reportMenuData(r.value):n==="subMenu"&&!En(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"&&!En(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!En(t)?(mn(()=>{o?.collectSubMenu(t,r.value)}),mi(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&mn(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:j(()=>xre(r.value,s=>!!s.children)),menuItemKeys:j(()=>xre(r.value,s=>!s.children))}}function QNe(e,t){const n=[],r=o=>{for(let a=0;a{d.value=y};Rt(t,()=>{En(t.value)&&h([])});let p=[];mn(()=>{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=>QNe(l.value,k));S.length&&(!r.value||c.value)&&(y=c.value?S[0]:[...new Set([].concat(...S))])}y.length&&h(y)});let m=!1;Rt(a,(y,S=[])=>{if(m||!eFe(y,p)){const k=g.value.filter(C=>y.includes(C));if(r.value){const C=y.filter(x=>!S.includes(x));k.push(...C)}h(c.value?k.slice(0,1):k)}m=!0});const g=j(()=>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 nFe=ke({name:"BaseMenu",components:{IconMenuFold:M0e,IconMenuUnfold:O0e},inheritAttrs:!1,props:{style:{type:Object},theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},levelIndent:{type:Number},autoOpen:{type:Boolean},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{type:Number},accordion:{type:Boolean},autoScrollIntoView:{type:Boolean},showCollapseButton:{type:Boolean},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array,default:()=>[]},openKeys:{type:Array},defaultOpenKeys:{type:Array,default:()=>[]},scrollConfig:{type:Object},triggerProps:{type:Object},tooltipProps:{type:Object},autoOpenSelected:{type:Boolean},breakpoint:{type:String},popupMaxHeight:{type:[Boolean,Number],default:!0},prefixCls:{type:String},inTrigger:{type:Boolean},siderCollapsed:{type:Boolean},isRoot:{type:Boolean}},emits:["update:collapsed","update:selectedKeys","update:openKeys","collapse","menu-item-click","sub-menu-click"],setup(e,{emit:t,slots:n}){const{style:r,mode:o,theme:a,levelIndent:s,accordion:l,showCollapseButton:c,scrollConfig:d,autoScrollIntoView:h,collapsedWidth:p,autoOpen:m,collapsed:g,defaultCollapsed:y,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:T,breakpoint:D,popupMaxHeight:P,prefixCls:M,inTrigger:$,siderCollapsed:I,isRoot:N}=en(e),{subMenuKeys:F,menuData:W}=B0e({type:N.value?"menu":"popupMenu"}),[U,G]=fa(k.value,qt({value:S})),{openKeys:Z,setOpenKeys:oe,open:X}=tFe(qt({modelValue:C,defaultValue:x,autoOpen:m,autoOpenSelected:T,selectedKeys:U,subMenuKeys:F,menuData:W,accordion:l})),[H,q]=fa(y.value,qt({value:g})),Q=j(()=>I.value||H.value||o.value==="popButton"),ne=j(()=>["horizontal","popButton"].indexOf(o.value)<0&&!$.value&&c.value),ae=(Me,je)=>{Me!==H.value&&(q(Me),t("update:collapsed",Me),t("collapse",Me,je))},re=()=>{ae(!H.value,"clickTrigger")};I0e(D,Me=>{ae(!Me,"responsive")});const Se=j(()=>M?.value||Ae("menu")),xe=j(()=>[Se.value,`${Se.value}-${a?.value}`,{[`${Se.value}-horizontal`]:o.value==="horizontal",[`${Se.value}-vertical`]:o.value!=="horizontal",[`${Se.value}-collapsed`]:Q.value,[`${Se.value}-pop`]:o.value==="pop"||Q.value,[`${Se.value}-pop-button`]:o.value==="popButton"}]),ve=j(()=>{const Me=Ze(p.value)?`${p.value}px`:void 0,je=mr(r.value)?r.value:void 0,ge=Q.value?Me:je?.width;return[je?xa(je,["width"]):r.value,{width:ge}]}),be=kd(n,"expand-icon-down"),Ve=kd(n,"expand-icon-right"),Je=qt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:U,openKeys:Z,prefixCls:Se,scrollConfig:d,inTrigger:$,collapsed:Q,triggerProps:E,tooltipProps:_,popupMaxHeight:P,expandIconDown:be,expandIconRight:Ve,onMenuItemClick:Me=>{G([Me]),t("update:selectedKeys",[Me]),t("menu-item-click",Me)},onSubMenuClick:(Me,je)=>{const ge=X(Me,je);oe(ge),t("update:openKeys",ge),t("sub-menu-click",Me,ge)}});return ti(PH,Je),MH(1),{computedPrefixCls:Se,classNames:xe,computedStyle:ve,computedCollapsed:Q,computedHasCollapseButton:ne,onCollapseBtnClick:re}}});function rFe(e,t,n,r,o,a){const s=De("IconMenuUnfold"),l=De("IconMenuFold");return z(),ee("div",jt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[L("div",{class:ue(`${e.computedPrefixCls}-inner`)},[pt(e.$slots,"default")],2),e.computedHasCollapseButton?(z(),ee("div",{key:0,class:ue(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[pt(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))])],2)):Pe("v-if",!0)],16)}var aV=ze(nFe,[["render",rFe]]);function Cre(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 Ym(){return Rn(PH)||{}}const iFe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function H5(){const e=yo();return{key:j(()=>e?.vnode.key||iFe("__arco_menu"))}}const oFe=ke({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Ae("menu"),t=Ym();return{prefixCls:e,levelIndent:Lu(t,"levelIndent")}}});function sFe(e,t,n,r,o,a){return e.level>1?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-indent-list`)},[(z(!0),ee(Nt,null,vn(e.level-1,s=>(z(),ee("span",{key:s,class:ue(`${e.prefixCls}-indent`),style:Ke(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Pe("v-if",!0)}var W5=ze(oFe,[["render",sFe]]);const aFe=ke({name:"ExpandTransition",setup(){return{onBeforeEnter(e){e.style.height="0"},onEnter(e){e.style.height=`${e.scrollHeight}px`},onAfterEnter(e){e.style.height=""},onBeforeLeave(e){e.style.height=`${e.scrollHeight}px`},onLeave(e){e.style.height="0"},onAfterLeave(e){e.style.height=""}}}});function lFe(e,t,n,r,o,a){return z(),Ye(xs,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[pt(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var uFe=ze(aFe,[["render",lFe]]);const cFe=ke({name:"SubMenuInline",components:{MenuIndent:W5,ExpandTransition:uFe},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=H5(),{level:n}=tS({provideNextLevel:!0}),r=Ym(),o=j(()=>r.prefixCls),a=j(()=>`${o.value}-inline`),s=j(()=>[a.value]),l=j(()=>e.isChildrenSelected),c=j(()=>(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 dFe(e,t,n,r,o,a){const s=De("MenuIndent"),l=De("ExpandTransition");return z(),ee("div",{class:ue(e.classNames)},[L("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))},[O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),ee(Nt,{key:0},[L("span",{class:ue(`${e.menuPrefixCls}-icon`)},[pt(e.$slots,"icon")],2),L("span",{class:ue(`${e.menuPrefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)],64)):pt(e.$slots,"title",{key:1},()=>[We(Ue(e.title),1)]),L("span",{class:ue([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[pt(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:de(()=>[Ei(L("div",{class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2),[[Jo,e.isOpen]])]),_:3})],2)}var fFe=ze(cFe,[["render",dFe]]);const hFe=ke({name:"SubMenuPop",components:{Menu:aV,Trigger:ha,MenuIndent:W5,RenderFunction:Xh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=H5(),{level:n}=tS(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=en(e),s=Ym(),{onSubMenuClick:l,onMenuItemClick:c}=s,d=j(()=>s.prefixCls),h=j(()=>s.mode),p=j(()=>s.selectedKeys||[]),m=j(()=>`${d.value}-pop`),g=j(()=>r.value&&p.value.includes(t.value)||o.value),y=j(()=>[`${m.value}`,`${m.value}-header`,{[`${d.value}-selected`]:g.value}]),S=j(()=>h.value==="horizontal"&&!s.inTrigger),k=fe(!1),C=T=>{k.value=T},x=Ae("trigger"),E=j(()=>{var T;return[`${m.value}-trigger`,{[`${m.value}-trigger-dark`]:s.theme==="dark"},(T=s.triggerProps)==null?void 0:T.class]}),_=j(()=>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:j(()=>{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 pFe(e,t,n,r,o,a){const s=De("MenuIndent"),l=De("RenderFunction"),c=De("Menu"),d=De("Trigger");return z(),Ye(d,jt({trigger:"hover",class:e.triggerClassNames,position:e.needPopOnBottom?"bl":"rt","show-arrow":"","animation-class":"fade-in","mouse-enter-delay":50,"mouse-leave-delay":50,"popup-offset":4,"auto-fit-popup-min-width":!0,duration:100},e.triggerProps,{"unmount-on-close":!1,"popup-visible":e.popVisible,onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[O(c,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:Ke(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},Eo({default:de(()=>[pt(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:de(()=>[O(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:de(()=>[O(l,{"render-func":e.menuContext.expandIconRight},null,8,["render-func"])]),key:"1"}:void 0]),1032,["prefix-cls","selected-keys","theme","trigger-props","style","onMenuItemClick"])]),default:de(()=>[L("div",jt({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))}),[Pe(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),ee(Nt,{key:0},[L("span",{class:ue(`${e.menuPrefixCls}-icon`)},[pt(e.$slots,"icon")],2),L("span",{class:ue(`${e.menuPrefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)],64)):pt(e.$slots,"title",{key:1},()=>[We(Ue(e.title),1)]),Pe(" suffix "),L("span",{class:ue(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?pt(e.$slots,"expand-icon-down",{key:0}):pt(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(z(),ee("div",{key:2,class:ue(`${e.menuPrefixCls}-selected-label`)},null,2)):Pe("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var vFe=ze(hFe,[["render",pFe]]),ib=ke({name:"SubMenu",props:{title:{type:String},selectable:{type:Boolean},popup:{type:[Boolean,Function],default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e,{attrs:t}){const{key:n}=H5(),{level:r}=tS(),{popup:o}=en(e),a=Ym(),s=j(()=>{const{mode:h,collapsed:p,inTrigger:m}=a;return!!(typeof o.value=="function"?o.value(r.value):o.value)||p||m||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=B0e({key:n.value,type:"subMenu"}),d=j(()=>{const h=a.selectedKeys||[],p=m=>{for(let g=0;g[O(Yh,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(Ui,null,null)])};return r?O(vFe,jt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(fFe,jt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const mFe=10;function wre(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Ere(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var gFe=ke({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${Ym().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=fe(),c=fe(null),d=fe();function h(){const p=l.value,m=wre(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=wre(x)+Ere(Cre(x,"marginLeft"))+Ere(Cre(x,"marginRight"));if(T){k=D;continue}if(S+=D,S+k+mFe>m){c.value=y-1;return}y++}c.value=null}return mn(()=>{h(),d.value=new C5(p=>{p.forEach(h)}),l.value&&d.value.observe(l.value)}),mi(()=>{d.value&&d.value.disconnect()}),()=>{const p=(g,y)=>{const{isMirror:S=!1,props:k={}}=y||{};return O(ib,jt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>O("span",null,[We("...")]),default:()=>g})},m=()=>{var g;const y=((g=t.default)==null?void 0:g.call(t))||[],S=a7e(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 O("div",{class:`${r}-wrap`,ref:l},[m()])}}}),YR=ke({name:"Menu",components:{BaseMenu:aV},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:o}=en(e),a=Rn(x0e,void 0),s=j(()=>a?.collapsed||!1),l=j(()=>r?.value||a?.theme||"light");return ti(PH,void 0),ti(RH,void 0),()=>O(aV,jt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>O(gFe,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),Nw=ke({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=H5(),{level:r}=tS(),o=Ym(),a=fe(),s=j(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=$0e();mn(()=>{l?.collectMenuItem(n.value)}),mi(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&s0e(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let d;return mn(()=>{d=setTimeout(()=>{c()},500)}),mi(()=>{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,m=c&&!d&&n===1,g=h==="vertical"&&n>1,y=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!d&&!c,k=this.$slots.icon&&this.$slots.icon(),C=[S&&O(W5,{level:n},null),k&&O("span",{class:`${l}-icon`},[k]),S||k?O("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[y]):y].filter(Boolean),x=O("div",jt({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:o,[`${l}-selected`]:a,[`${l}-has-icon`]:k}]},this.$attrs,{onClick:s}),[C,a&&h==="horizontal"&&O("div",{class:`${l}-selected-label`},null)]);if(m){const E=[`${l}-item-tooltip`,p?.class];return O(Xc,jt({trigger:"hover",position:"right",class:E},xa(p||{},["class"])),{default:()=>x,content:()=>y})}return x}});const yFe=ke({name:"MenuItemGroup",components:{MenuIndent:W5},props:{title:{type:String}},setup(){const{level:e}=tS(),t=j(()=>e.value===1?e.value+1:e.value);MH(t);const n=Ym(),r=j(()=>n.prefixCls),o=j(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function bFe(e,t,n,r,o,a){const s=De("MenuIndent");return z(),ee("div",{class:ue(e.classNames)},[L("div",{class:ue(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2),pt(e.$slots,"default")],2)}var Fw=ze(yFe,[["render",bFe]]);const _Fe=Object.assign(YR,{Item:Nw,ItemGroup:Fw,SubMenu:ib,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YR.name,YR),e.component(n+Nw.name,Nw),e.component(n+Fw.name,Fw),e.component(n+ib.name,ib)}}),SFe=ke({name:"Message",components:{AIconHover:Io,IconInfoCircleFill:r3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Km,IconClose:cs,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 mn(()=>{a()}),Qa(()=>{e.resetOnUpdate&&(s(),a())}),mi(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function kFe(e,t,n,r,o,a){const s=De("icon-info-circle-fill"),l=De("icon-check-circle-fill"),c=De("icon-exclamation-circle-fill"),d=De("icon-close-circle-fill"),h=De("icon-loading"),p=De("icon-close"),m=De("a-icon-hover");return z(),ee("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(),ee("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):e.type==="loading"?(z(),Ye(h,{key:4})):Pe("v-if",!0)])],2)):Pe("v-if",!0),L("span",{class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2),e.closable?(z(),ee("span",{key:1,class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(m,null,{default:de(()=>[O(p)]),_:1})],2)):Pe("v-if",!0)],34)}var xFe=ze(SFe,[["render",kFe]]);function CFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var wFe=ke({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}=i3("message",{runOnMounted:!0});return()=>{let o;return O(n3,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},CFe(o=e.messages.map(a=>{const s={default:Hl(a.content),icon:Hl(a.icon)};return O(xFe,{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 EFe{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=qt({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&&(Yc(null,this.container),document.body.removeChild(this.container),this.container=null,iy[this.position]=void 0)};const{position:r="top"}=t;this.container=A5("message"),this.messageIds=new Set,this.messages=fe([]),this.position=r;const o=O(wFe,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??xt._context)&&(o.appContext=n??xt._context),Yc(o,this.container),document.body.appendChild(this.container)}}const iy={},N0e=[...L5,"loading","normal"],jw=N0e.reduce((e,t)=>(e[t]=(n,r)=>{us(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return iy[a]||(iy[a]=new EFe(o,r)),iy[a].add(o)},e),{});jw.clear=e=>{var t;e?(t=iy[e])==null||t.clear():Object.values(iy).forEach(n=>n?.clear())};const xt={...jw,install:e=>{const t={clear:jw.clear};for(const n of N0e)t[n]=(r,o=e._context)=>jw[n](r,o);e.config.globalProperties.$message=t},_context:null},TFe=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const o=fe(!1),a=fe([0,0]),s=fe([0,0]),l=fe(),c=fe([0,0]),d=fe([0,0]),h=()=>{var y,S,k;if(t.value&&e.value){const{top:C,left:x}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:_}=t.value,{top:T,left:D,width:P,height:M}=e.value.getBoundingClientRect(),$=r.value?0:(y=e.value)==null?void 0:y.offsetTop,I=D-x,N=T-C-$;(I!==((S=s.value)==null?void 0:S[0])||N!==((k=s.value)==null?void 0:k[1]))&&(s.value=[I,N]);const F=E>P?E-P:0,W=_>M?_-M-$:0;(F!==d.value[0]||W!==d.value[1])&&(d.value=[F,W]),$&&(c.value=[0,0-$])}},p=y=>{n.value&&(y.preventDefault(),o.value=!0,h(),a.value=[y.x,y.y],Pi(window,"mousemove",m),Pi(window,"mouseup",g),Pi(window,"contextmenu",g))},m=y=>{if(o.value){const S=y.x-a.value[0],k=y.y-a.value[1];let C=s.value[0]+S,x=s.value[1]+k;Cd.value[0]&&(C=d.value[0]),xd.value[1]&&(x=d.value[1]),l.value=[C,x]}},g=()=>{o.value=!1,no(window,"mousemove",m),no(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var AFe=ke({name:"Modal",components:{ClientOnly:oH,ArcoButton:Yo,IconHover:Io,IconClose:cs,IconInfoCircleFill:r3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Km},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}=en(e),a=Ae("modal"),{t:s}=Bo(),l=fe(),c=fe(),d=fe(e.defaultVisible),h=j(()=>{var Se;return(Se=e.visible)!=null?Se:d.value}),p=fe(!1),m=j(()=>e.okLoading||p.value),g=j(()=>e.draggable&&!e.fullscreen),{teleportContainer:y,containerRef:S}=sH({popupContainer:r,visible:h}),k=fe(h.value),C=j(()=>e.okText||s("modal.okText")),x=j(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:_}=i3("dialog",{visible:h});let T=!1;const D=Se=>{e.escToClose&&Se.key===Uo.ESC&&_()&&U(Se)},P=()=>{e.escToClose&&!T&&(T=!0,Pi(document.documentElement,"keydown",D))},M=()=>{T=!1,no(document.documentElement,"keydown",D)};let $=0;const{position:I,handleMoveDown:N}=TFe({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),F=()=>{$++,p.value&&(p.value=!1),d.value=!1,t("update:visible",!1)},W=async Se=>{const xe=$,ve=await new Promise(async be=>{var Ve;if(Cn(e.onBeforeOk)){let Je=e.onBeforeOk((Me=!0)=>be(Me));if((wm(Je)||!El(Je))&&(p.value=!0),wm(Je))try{Je=(Ve=await Je)!=null?Ve:!0}catch(Me){throw Je=!1,Me}El(Je)&&be(Je)}else be(!0)});xe===$&&(ve?(t("ok",Se),F()):p.value&&(p.value=!1))},U=Se=>{var xe;let ve=!0;Cn(e.onBeforeCancel)&&(ve=(xe=e.onBeforeCancel())!=null?xe:!1),ve&&(t("cancel",Se),F())},G=fe(!1),Z=Se=>{Se.target===l.value&&(G.value=!0)},oe=Se=>{e.mask&&e.maskClosable&&G.value&&U(Se)},X=()=>{h.value&&(!l7e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},H=()=>{h.value||(g.value&&(I.value=void 0),k.value=!1,Q(),t("close"))},{setOverflowHidden:q,resetOverflow:Q}=i0e(S);mn(()=>{S.value=af(e.popupContainer),h.value&&(q(),e.escToClose&&P())}),Ao(()=>{Q(),M()}),Rt(h,Se=>{d.value!==Se&&(d.value=Se),Se?(t("beforeOpen"),k.value=!0,G.value=!1,q(),P()):(t("beforeClose"),M())}),Rt(n,()=>{I.value&&(I.value=void 0)});const ne=j(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!I.value}]),ae=j(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),re=j(()=>{var Se;const xe={...(Se=e.modalStyle)!=null?Se:{}};return e.width&&!e.fullscreen&&(xe.width=Ze(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(xe.top=Ze(e.top)?`${e.top}px`:e.top),I.value&&(xe.transform=`translate(${I.value[0]}px, ${I.value[1]}px)`),xe});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:re,okDisplayText:C,cancelDisplayText:x,zIndex:E,handleOk:W,handleCancel:U,handleMaskClick:oe,handleMaskMouseDown:Z,handleOpen:X,handleClose:H,mergedOkLoading:m,modalRef:c,wrapperCls:ne,modalCls:ae,teleportContainer:y,handleMoveDown:N}}});function IFe(e,t,n,r,o,a){const s=De("icon-info-circle-fill"),l=De("icon-check-circle-fill"),c=De("icon-exclamation-circle-fill"),d=De("icon-close-circle-fill"),h=De("icon-close"),p=De("icon-hover"),m=De("arco-button"),g=De("client-only");return z(),Ye(g,null,{default:de(()=>[(z(),Ye(Hm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ei((z(),ee("div",jt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(xs,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?Ei((z(),ee("div",{key:0,ref:"maskRef",class:ue(`${e.prefixCls}-mask`),style:Ke(e.maskStyle)},null,6)),[[Jo,e.computedVisible]]):Pe("v-if",!0)]),_:1},8,["name"]),L("div",{ref:"wrapperRef",class:ue(e.wrapperCls),onClick:t[2]||(t[2]=ls((...y)=>e.handleMaskClick&&e.handleMaskClick(...y),["self"])),onMousedown:t[3]||(t[3]=ls((...y)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...y),["self"]))},[O(xs,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ei(L("div",{ref:"modalRef",class:ue(e.modalCls),style:Ke(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(z(),ee("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(),ee("div",{key:0,class:ue([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(z(),Ye(s,{key:0})):Pe("v-if",!0),e.messageType==="success"?(z(),Ye(l,{key:1})):Pe("v-if",!0),e.messageType==="warning"?(z(),Ye(c,{key:2})):Pe("v-if",!0),e.messageType==="error"?(z(),Ye(d,{key:3})):Pe("v-if",!0)],2)):Pe("v-if",!0),pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),!e.simple&&e.closable?(z(),ee("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))},[O(p,null,{default:de(()=>[O(h)]),_:1})],2)):Pe("v-if",!0)],34)):Pe("v-if",!0),L("div",{class:ue([`${e.prefixCls}-body`,e.bodyClass]),style:Ke(e.bodyStyle)},[pt(e.$slots,"default")],6),e.footer?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[pt(e.$slots,"footer",{},()=>[e.hideCancel?Pe("v-if",!0):(z(),Ye(m,jt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Ue(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(m,jt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(Ue(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Pe("v-if",!0)],6),[[Jo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Jo,e.computedVisible||e.mounted]]):Pe("v-if",!0)],8,["to","disabled"]))]),_:3})}var Vw=ze(AFe,[["render",IFe]]);const XR=(e,t)=>{let n=A5("modal");const r=()=>{d.component&&(d.component.props.visible=!1),Cn(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),Cn(e.onCancel)&&e.onCancel()},a=async()=>{await Sn(),n&&(Yc(null,n),document.body.removeChild(n)),n=null,Cn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,m])=>{d.component.props[p]=m})},d=O(Vw,{...{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),Yc(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)},...L5.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return XR(o,r)},e),{})},Du=Object.assign(Vw,{...ZR,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+Vw.name,Vw);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}),LFe=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),DFe=ke({name:"Notification",components:{AIconHover:Io,IconInfoCircleFill:r3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Km,IconClose:cs},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 mn(()=>{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)))}),mi(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function PFe(e,t,n,r,o,a){const s=De("icon-info-circle-fill"),l=De("icon-check-circle-fill"),c=De("icon-exclamation-circle-fill"),d=De("icon-close-circle-fill"),h=De("icon-close"),p=De("a-icon-hover");return z(),ee("li",{role:"alert",class:ue([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-left`)},[L("div",{class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Pe("v-if",!0)])],2)],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-right`)},[e.$slots.default?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"default")],2)):Pe("v-if",!0),e.$slots.content?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"content")],2)):Pe("v-if",!0),e.$slots.footer?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-footer`)},[pt(e.$slots,"footer")],2)):Pe("v-if",!0)],2),e.closable?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[pt(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:de(()=>[pt(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Pe("v-if",!0)],2)}var RFe=ze(DFe,[["render",PFe]]);const MFe=["topLeft","topRight","bottomLeft","bottomRight"];function OFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var $Fe=ke({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>MFe.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Ae("notification-list"),r=LFe(e.position),{zIndex:o}=i3("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return O(n3,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},OFe(s=e.notifications.map(l=>{const c={default:Hl(l.title),content:Hl(l.content),icon:Hl(l.icon),footer:Hl(l.footer),closeIcon:Hl(l.closeIcon),closeIconElement:Hl(l.closeIconElement)};return O(RFe,{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 BFe{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=qt({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&&(Yc(null,this.container),document.body.removeChild(this.container),this.container=null,dm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=A5("notification"),this.notificationIds=new Set,this.notifications=fe([]),this.position=r;const o=O($Fe,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??lV._context)&&(o.appContext=n??lV._context),Yc(o,this.container),document.body.appendChild(this.container)}}const dm={},ob=L5.reduce((e,t)=>(e[t]=(n,r)=>{us(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return dm[a]||(dm[a]=new BFe(o,r)),dm[a].add(o)},e),{});ob.remove=e=>{e&&Object.values(dm).forEach(t=>t?.remove(e))};ob.clear=e=>{var t;e?(t=dm[e])==null||t.clear():Object.values(dm).forEach(n=>n?.clear())};const lV={...ob,install:e=>{const t={clear:ob.clear};for(const n of L5)t[n]=(r,o=e._context)=>ob[n](r,o);e.config.globalProperties.$notification=t},_context:null},NFe=ke({name:"PageHeader",components:{AIconHover:Io,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=j(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function FFe(e,t,n,r,o,a){const s=De("icon-left"),l=De("a-icon-hover");return z(),ee("div",{class:ue(e.cls)},[L("div",{class:ue(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-breadcrumb`)},[pt(e.$slots,"breadcrumb")],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-header`)},[L("span",{class:ue(`${e.prefixCls}-main`)},[e.showBack?(z(),Ye(l,{key:0,class:ue(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[pt(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Pe("v-if",!0),L("span",{class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(z(),ee("span",{key:1,class:ue(`${e.prefixCls}-divider`)},null,2)):Pe("v-if",!0),e.$slots.subtitle||e.subtitle?(z(),ee("span",{key:2,class:ue(`${e.prefixCls}-subtitle`)},[pt(e.$slots,"subtitle",{},()=>[We(Ue(e.subtitle),1)])],2)):Pe("v-if",!0)],2),e.$slots.extra?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-extra`)},[pt(e.$slots,"extra")],2)):Pe("v-if",!0)],2)],2),e.$slots.default?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2)):Pe("v-if",!0)],2)}var JR=ze(NFe,[["render",FFe]]);const jFe=Object.assign(JR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+JR.name,JR)}}),VFe=ke({name:"Popconfirm",components:{ArcoButton:Yo,Trigger:ha,IconInfoCircleFill:r3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Km},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}=Bo(),o=fe(e.defaultPopupVisible),a=j(()=>{var S;return(S=e.popupVisible)!=null?S:o.value}),s=fe(!1),l=j(()=>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(Cn(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>C(_));if((wm(E)||!El(E))&&(s.value=!0),wm(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))},m=()=>{var S;let k=!0;Cn(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),d())},g=j(()=>[`${n}-popup-content`,e.contentClass]),y=j(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:y,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:m,t:r}}});function zFe(e,t,n,r,o,a){const s=De("icon-info-circle-fill"),l=De("icon-check-circle-fill"),c=De("icon-exclamation-circle-fill"),d=De("icon-close-circle-fill"),h=De("arco-button"),p=De("trigger");return z(),Ye(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(()=>[L("div",{class:ue(`${e.prefixCls}-body`)},[L("span",{class:ue(`${e.prefixCls}-icon`)},[pt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Pe("v-if",!0)])],2),L("span",{class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"content",{},()=>[We(Ue(e.content),1)])],2)],2),L("div",{class:ue(`${e.prefixCls}-footer`)},[O(h,jt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Ue(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,jt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(Ue(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[pt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var QR=ze(VFe,[["render",zFe]]);const UFe=Object.assign(QR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+QR.name,QR)}}),HFe={small:3,medium:4,large:8},WFe=e=>{if(e)return mr(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},GFe=ke({name:"ProgressLine",components:{IconExclamationCircleFill:If},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=Ae("progress-line"),n=j(()=>e.strokeWidth!==4?e.strokeWidth:HFe[e.size]),r=j(()=>`${Xl.times(e.percent,100)}%`),o=j(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=j(()=>({width:`${e.percent*100}%`,...WFe(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),KFe=["aria-valuenow"];function qFe(e,t,n,r,o,a){const s=De("icon-exclamation-circle-fill");return z(),ee("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`)},[L("div",{class:ue(e.prefixCls),style:Ke(e.style)},[L("div",{class:ue(`${e.prefixCls}-bar-buffer`)},null,2),L("div",{class:ue([`${e.prefixCls}-bar`]),style:Ke(e.barStyle)},null,6)],6),e.showText?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-text`)},[pt(e.$slots,"text",{percent:e.percent},()=>[We(Ue(e.text)+" ",1),e.status==="danger"?(z(),Ye(s,{key:0})):Pe("v-if",!0)])],2)):Pe("v-if",!0)],10,KFe)}var YFe=ze(GFe,[["render",qFe]]);const XFe=ke({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZFe=["stroke-width","stroke-linecap","stroke-linejoin"];function JFe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23 9h2v21h-2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),L("path",{d:"M23 37h2v2h-2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,ZFe)}var eM=ze(XFe,[["render",JFe]]);const OH=Object.assign(eM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eM.name,eM)}}),QFe=ke({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eje=["stroke-width","stroke-linecap","stroke-linejoin"];function tje(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,eje)}var tM=ze(QFe,[["render",tje]]);const Xm=Object.assign(tM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tM.name,tM)}});let Tre=0;const nje={mini:16,small:48,medium:64,large:80},rje={mini:4,small:3,medium:4,large:4},ije=ke({name:"ProgressCircle",components:{IconExclamation:OH,IconCheck:Xm},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=mr(e.color),r=j(()=>{var p;return(p=e.width)!=null?p:nje[e.size]}),o=j(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:rje[e.size]}),a=j(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=j(()=>(r.value-o.value)/2),l=j(()=>Math.PI*2*s.value),c=j(()=>r.value/2),d=j(()=>(Tre+=1,`${t}-linear-gradient-${Tre}`)),h=j(()=>`${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}}}),oje=["aria-valuenow"],sje=["viewBox"],aje={key:0},lje=["id"],uje=["offset","stop-color"],cje=["cx","cy","r","stroke-width"],dje=["cx","cy","r","stroke-width"];function fje(e,t,n,r,o,a){const s=De("icon-check"),l=De("icon-exclamation");return z(),ee("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`),style:Ke({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(z(),Ye(s,{key:0,style:Ke({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(z(),ee("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:ue(`${e.prefixCls}-svg`)},[e.isLinearGradient?(z(),ee("defs",aje,[L("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(z(!0),ee(Nt,null,vn(Object.keys(e.color),c=>(z(),ee("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,uje))),128))],8,lje)])):Pe("v-if",!0),L("circle",{class:ue(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Ke({stroke:e.trackColor})},null,14,cje),L("circle",{class:ue(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Ke({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,dje)],10,sje)),e.showText&&e.size!=="mini"?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-text`)},[pt(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(z(),Ye(l,{key:0})):e.status==="success"?(z(),Ye(s,{key:1})):(z(),ee(Nt,{key:2},[We(Ue(e.text),1)],64))])],2)):Pe("v-if",!0)],14,oje)}var hje=ze(ije,[["render",fje]]);const pje=ke({name:"ProgressSteps",components:{IconExclamationCircleFill:If},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=Ae("progress-steps"),n=j(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=j(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=j(()=>`${Xl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),vje=["aria-valuenow"];function mje(e,t,n,r,o,a){const s=De("icon-exclamation-circle-fill");return z(),ee("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`)},[L("div",{class:ue(e.prefixCls),style:Ke({height:`${e.mergedStrokeWidth}px`})},[(z(!0),ee(Nt,null,vn(e.stepList,(l,c)=>(z(),ee("div",{key:c,class:ue([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ke({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-text`)},[pt(e.$slots,"text",{percent:e.percent},()=>[We(Ue(e.text)+" ",1),e.status==="danger"?(z(),Ye(s,{key:0})):Pe("v-if",!0)])],2)):Pe("v-if",!0)],10,vje)}var gje=ze(pje,[["render",mje]]);const yje=ke({name:"Progress",components:{ProgressLine:YFe,ProgressCircle:hje,ProgressSteps:gje},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}=en(e),r=j(()=>e.steps>0?"steps":e.type),o=j(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=wa(n);return{cls:j(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:a}}});function bje(e,t,n,r,o,a){const s=De("progress-steps"),l=De("progress-line"),c=De("progress-circle");return z(),ee("div",{class:ue(e.cls)},[e.steps>0?(z(),Ye(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},Eo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[pt(e.$slots,"text",qi(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(),Ye(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},Eo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[pt(e.$slots,"text",qi(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(z(),Ye(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},Eo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[pt(e.$slots,"text",qi(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=ze(yje,[["render",bje]]);const F0e=Object.assign(nM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+nM.name,nM)}}),_je=ke({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Sje)}var rM=ze(_je,[["render",kje]]);const $H=Object.assign(rM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rM.name,rM)}}),xje=ke({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Cje)}var iM=ze(xje,[["render",wje]]);const uV=Object.assign(iM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iM.name,iM)}}),Eje=ke({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Aje(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Tje)}var oM=ze(Eje,[["render",Aje]]);const j0e=Object.assign(oM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oM.name,oM)}}),Ije=ke({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Lje=["stroke-width","stroke-linecap","stroke-linejoin"];function Dje(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Lje)}var sM=ze(Ije,[["render",Dje]]);const V0e=Object.assign(sM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sM.name,sM)}});var aM=ke({name:"Rate",props:{count:{type:Number,default:5},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:[String,Object]}},emits:{"update:modelValue":e=>!0,change:e=>!0,hoverChange:e=>!0},setup(e,{emit:t,slots:n}){const{modelValue:r}=en(e),o=Ae("rate"),{mergedDisabled:a,eventHandlers:s}=Lo({disabled:Lu(e,"disabled")}),l=fe(e.defaultValue),c=fe(!1);Rt(r,M=>{(En(M)||Tl(M))&&(l.value=0)});const d=fe(0),h=j(()=>{var M;return(M=e.modelValue)!=null?M:l.value}),p=j(()=>{const M=e.allowHalf?Xl.times(Xl.round(Xl.divide(h.value,.5),0),.5):Math.round(h.value);return d.value||M}),m=j(()=>a.value||e.readonly),g=j(()=>[...Array(e.grading?5:e.count)]),y=j(()=>{var M;if(us(e.color))return g.value.map(()=>e.color);if(mr(e.color)){const $=Object.keys(e.color).map(N=>Number(N)).sort((N,F)=>F-N);let I=(M=$.pop())!=null?M:g.value.length;return g.value.map((N,F)=>{var W;return F+1>I&&(I=(W=$.pop())!=null?W:I),e.color[String(I)]})}}),S=()=>{d.value&&(d.value=0,t("hoverChange",0))},k=(M,$)=>{const I=$&&e.allowHalf?M+.5:M+1;I!==d.value&&(d.value=I,t("hoverChange",I))},C=(M,$)=>{var I,N,F,W;const U=$&&e.allowHalf?M+.5:M+1;c.value=!0,U!==h.value?(l.value=U,t("update:modelValue",U),t("change",U),(N=(I=s.value)==null?void 0:I.onChange)==null||N.call(I)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(W=(F=s.value)==null?void 0:F.onChange)==null||W.call(F))},x=M=>{c.value&&M+1>=h.value-1&&(c.value=!1)},E=(M,$)=>M>$?O(uV,null,null):$<=2?O(V0e,null,null):$<=3?O(uV,null,null):O(j0e,null,null),_=(M,$=!1)=>({role:"radio","aria-checked":M+($?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":M+($?.5:1)}),T=M=>e.grading?E(M,p.value):n.character?n.character({index:M}):O($H,null,null),D=M=>{const $=m.value?{}:{onMouseenter:()=>k(M,!0),onClick:()=>C(M,!0)},I=m.value?{}:{onMouseenter:()=>k(M,!1),onClick:()=>C(M,!1)},N=c.value?{animationDelay:`${50*M}ms`}:void 0,F=Math.ceil(p.value)-1,W=y.value&&e.allowHalf&&M+.5===p.value?{color:y.value[F]}:void 0,U=y.value&&M+1<=p.value?{color:y.value[F]}:void 0,G=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&M+.5===p.value,[`${o}-character-full`]:M+1<=p.value,[`${o}-character-scale`]:c.value&&M+1x(M)}),[O("div",jt({class:`${o}-character-left`,style:W},$,e.allowHalf?_(M,!0):void 0),[T(M)]),O("div",jt({class:`${o}-character-right`,style:U},I,e.allowHalf?_(M):void 0),[T(M)])])},P=j(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>O("div",{class:P.value,onMouseleave:S},[g.value.map((M,$)=>D($))])}});const Pje=Object.assign(aM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+aM.name,aM)}}),Rje=ke({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mje=["stroke-width","stroke-linecap","stroke-linejoin"];function Oje(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 39h-2V18h2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),L("path",{d:"M25 11h-2V9h2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,Mje)}var lM=ze(Rje,[["render",Oje]]);const z0e=Object.assign(lM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lM.name,lM)}});var $je=ke({name:"ResultForbidden",render(){return O("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[O("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[O("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[O("path",{d:"M1088.34,192.063C1089.79,191.209 1090.78,191.821 1090.78,191.821L1092.71,192.944C1092.71,192.944 1092.29,192.721 1091.7,192.763C1090.99,192.813 1090.34,193.215 1090.34,193.215C1090.34,193.215 1088.85,192.362 1088.34,192.063Z",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[O("path",{d:"M1164.02,805.247C1164.05,802.517 1165.64,799.379 1167.67,798.118L1169.67,799.272C1167.58,800.648 1166.09,803.702 1166.02,806.402L1164.02,805.247Z",style:{fill:"url(#_Linear1)"}},null)]),O("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[O("path",{d:"M1011.2,933.14C1009.31,932.075 1008.05,929.696 1007.83,926.324L1012.87,929.235C1012.87,929.235 1012.96,930.191 1013.04,930.698C1013.16,931.427 1013.42,932.344 1013.62,932.845C1013.79,933.255 1014.59,935.155 1016.22,936.046C1015.83,935.781 1011.19,933.139 1011.19,933.139L1011.2,933.14Z",style:{fill:"rgb(238, 238, 238)"}},null)]),O("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[O("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),O("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[O("path",{d:"M1062,297.556C1062,296.697 1061.61,296 1061.12,296L915.882,296C915.395,296 915,296.697 915,297.556L915,333.356C915,334.215 915.395,334.912 915.882,334.912L1061.12,334.912C1061.61,334.912 1062,334.215 1062,333.356L1062,297.556Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),O("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),O("defs",null,[O("linearGradient",{id:"_Linear1",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-2.64571,4.04098,-4.04098,-2.64571,1167.67,799.269)"},[O("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),O("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),Bje=ke({name:"ResultNotFound",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[O("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(1,0,0,1,275,-15)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",null,[O("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),O("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[O("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",null,[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),O("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),O("g",null,[O("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[O("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[O("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[O("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[We("?")])])])])])])])])}}),Nje=ke({name:"ResultServerError",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[O("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[O("clipPath",{id:"_clip1"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip1)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[O("clipPath",{id:"_clip3"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip3)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[O("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[O("clipPath",{id:"_clip5"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip5)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[O("clipPath",{id:"_clip6"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip6)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[O("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[O("clipPath",{id:"_clip8"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip8)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[O("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[O("clipPath",{id:"_clip9"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip9)"},[O("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[O("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),O("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[O("clipPath",{id:"_clip12"},[O("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),O("g",{"clip-path":"url(#_clip12)"},[O("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[O("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[O("clipPath",{id:"_clip14"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),O("g",{"clip-path":"url(#_clip14)"},[O("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[O("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),O("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[O("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),O("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[O("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[We("!")])])])]),O("defs",null,[O("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),O("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),O("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),O("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[O("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),O("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),O("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const Fje=["info","success","warning","error","403","404","500",null],jje=ke({name:"Result",components:{IconInfo:z0e,IconCheck:Xm,IconExclamation:OH,IconClose:cs,ResultForbidden:$je,ResultNotFound:Bje,ResultServerError:Nje},props:{status:{type:String,default:"info",validator:e=>Fje.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Ae("result")}}});function Vje(e,t,n,r,o,a){const s=De("icon-info"),l=De("icon-check"),c=De("icon-exclamation"),d=De("icon-close"),h=De("result-forbidden"),p=De("result-not-found"),m=De("result-server-error");return z(),ee("div",{class:ue(e.prefixCls)},[L("div",{class:ue([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[L("div",{class:ue(`${e.prefixCls}-icon-tip`)},[pt(e.$slots,"icon",{},()=>[e.status==="info"?(z(),Ye(s,{key:0})):e.status==="success"?(z(),Ye(l,{key:1})):e.status==="warning"?(z(),Ye(c,{key:2})):e.status==="error"?(z(),Ye(d,{key:3})):e.status==="403"?(z(),Ye(h,{key:4})):e.status==="404"?(z(),Ye(p,{key:5})):e.status==="500"?(z(),Ye(m,{key:6})):Pe("v-if",!0)])],2)],2),e.title||e.$slots.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),e.subtitle||e.$slots.subtitle?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-subtitle`)},[pt(e.$slots,"subtitle",{},()=>[We(Ue(e.subtitle),1)])],2)):Pe("v-if",!0),e.$slots.extra?(z(),ee("div",{key:2,class:ue(`${e.prefixCls}-extra`)},[pt(e.$slots,"extra")],2)):Pe("v-if",!0),e.$slots.default?(z(),ee("div",{key:3,class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2)):Pe("v-if",!0)],2)}var uM=ze(jje,[["render",Vje]]);const zje=Object.assign(uM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+uM.name,uM)}}),Uje=ke({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Ae("skeleton"),n=j(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function Hje(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.cls)},[e.loading?pt(e.$slots,"default",{key:0}):pt(e.$slots,"content",{key:1})],2)}var cM=ze(Uje,[["render",Hje]]);const Wje=ke({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=Ae("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function Gje(e,t,n,r,o,a){return z(!0),ee(Nt,null,vn(e.lines,(s,l)=>(z(),ee("ul",{key:l,class:ue(e.prefixCls)},[L("li",{class:ue(`${e.prefixCls}-row`),style:Ke(s)},null,6)],2))),128)}var zw=ze(Wje,[["render",Gje]]);const Kje=ke({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Ae("skeleton-shape"),n=j(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function qje(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.cls)},null,2)}var Uw=ze(Kje,[["render",qje]]);const Yje=Object.assign(cM,{Line:zw,Shape:Uw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+cM.name,cM),e.component(n+zw.name,zw),e.component(n+Uw.name,Uw)}}),Xje=ke({name:"SliderButton",components:{Tooltip:Xc},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,Pi(window,"mousemove",a),Pi(window,"touchmove",a),Pi(window,"mouseup",s),Pi(window,"contextmenu",s),Pi(window,"touchend",s),t("movestart"))},a=p=>{let m,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,m=p.touches[0].clientX):(g=p.clientY,m=p.clientX),t("moving",m,g)},s=()=>{r.value=!1,no(window,"mousemove",a),no(window,"mouseup",s),no(window,"touchend",s),t("moveend")},l=j(()=>[n]),c=j(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),d=j(()=>{var p,m;return(m=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?m:`${e.value}`}),h=j(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:d,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),Zje=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function Jje(e,t,n,r,o,a){const s=De("tooltip");return z(),Ye(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[L("div",jt(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]=ls(()=>{},["prevent"])),onClick:t[3]||(t[3]=ls(()=>{},["stop"]))}),null,16,Zje)]),_:1},8,["popup-visible","position","content"])}var Qje=ze(Xje,[["render",Jje]]);const Qp=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Xl.round(r*100,2)}%`},G5=(e,t)=>t==="vertical"?{bottom:e}:{left:e},eVe=ke({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Ae("slider"),getStyle:r=>G5(Qp(r,[e.min,e.max]),e.direction)}}});function tVe(e,t,n,r,o,a){return z(),ee("div",{class:ue(`${e.prefixCls}-dots`)},[(z(!0),ee(Nt,null,vn(e.data,(s,l)=>(z(),ee("div",{key:l,class:ue(`${e.prefixCls}-dot-wrapper`),style:Ke(e.getStyle(s.key))},[L("div",{class:ue([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var nVe=ze(eVe,[["render",tVe]]);const rVe=ke({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Ae("slider"),getStyle:r=>G5(Qp(r,[e.min,e.max]),e.direction)}}});function iVe(e,t,n,r,o,a){return z(),ee("div",{class:ue(`${e.prefixCls}-marks`)},[(z(!0),ee(Nt,null,vn(e.data,(s,l)=>(z(),ee("div",{key:l,"aria-hidden":"true",class:ue(`${e.prefixCls}-mark`),style:Ke(e.getStyle(s.key))},Ue(s.content),7))),128))],2)}var oVe=ze(rVe,[["render",iVe]]);const sVe=ke({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=Ae("slider"),n=j(()=>{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=>G5(Qp(o,[e.min,e.max]),e.direction)}}});function aVe(e,t,n,r,o,a){return z(),ee("div",{class:ue(`${e.prefixCls}-ticks`)},[(z(!0),ee(Nt,null,vn(e.steps,(s,l)=>(z(),ee("div",{key:l,class:ue([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ke(e.getStyle(s.key))},null,6))),128))],2)}var lVe=ze(sVe,[["render",aVe]]);const uVe=ke({name:"SliderInput",components:{InputNumber:Z_},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 cVe(e,t,n,r,o,a){const s=De("input-number");return z(),ee("div",{class:ue(`${e.prefixCls}-input`)},[e.range?(z(),ee(Nt,{key:0},[O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=l=>e.$emit("startChange",l))},null,8,["min","max","step","disabled","model-value"]),L("div",{class:ue(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Pe("v-if",!0),O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[1],"hide-button":"",onChange:t[1]||(t[1]=l=>e.$emit("endChange",l))},null,8,["min","max","step","disabled","model-value"])],2)}var dVe=ze(uVe,[["render",cVe]]);const fVe=ke({name:"Slider",components:{SliderButton:Qje,SliderDots:nVe,SliderMarks:oVe,SliderTicks:lVe,SliderInput:dVe},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}=en(e),r=Ae("slider"),{mergedDisabled:o,eventHandlers:a}=Lo({disabled:Lu(e,"disabled")}),s=fe(null),l=fe(),c=e.modelValue?e.modelValue:e.defaultValue,d=fe(nr(c)?c[0]:0),h=fe(nr(c)?c[1]:c);Rt(n,N=>{var F,W,U,G,Z;nr(N)?(d.value=(W=(F=N[0])!=null?F:e.min)!=null?W:0,h.value=(G=(U=N[1])!=null?U:e.min)!=null?G:0):h.value=(Z=N??e.min)!=null?Z:0});const p=()=>{var N,F;e.range?(t("update:modelValue",[d.value,h.value]),t("change",[d.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(F=(N=a.value)==null?void 0:N.onChange)==null||F.call(N)},m=N=>{N=N??e.min,d.value=N,p()},g=N=>{N=N??e.min,h.value=N,p()},y=j(()=>{var N,F,W;return e.range?nr(e.modelValue)?e.modelValue:[d.value,(N=e.modelValue)!=null?N:h.value]:En(e.modelValue)?[d.value,h.value]:nr(e.modelValue)?[(F=e.min)!=null?F:0,e.modelValue[1]]:[(W=e.min)!=null?W:0,e.modelValue]}),S=j(()=>Object.keys(e.marks||{}).map(N=>{var F;const W=Number(N);return{key:W,content:(F=e.marks)==null?void 0:F[W],isActive:W>=y.value[0]&&W<=y.value[1]}})),k=N=>G5(Qp(N,[e.min,e.max]),e.direction),C=fe(!1),x=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(N,F){if(!l.value)return 0;const{left:W,top:U,width:G,height:Z}=l.value,oe=e.direction==="horizontal"?G:Z,X=oe*e.step/(e.max-e.min);let H=e.direction==="horizontal"?N-W:U+Z-F;H<0&&(H=0),H>oe&&(H=oe);const q=Math.round(H/X);return Xl.plus(e.min,Xl.times(q,e.step))}const _=(N,F)=>{h.value=E(N,F),p()},T=N=>{if(o.value)return;const{clientX:F,clientY:W}=N;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(F,W),p()};function D([N,F]){return N>F&&([N,F]=[F,N]),e.direction==="vertical"?{bottom:Qp(N,[e.min,e.max]),top:Qp(e.max+e.min-F,[e.min,e.max])}:{left:Qp(N,[e.min,e.max]),right:Qp(e.max+e.min-F,[e.min,e.max])}}const P=(N,F)=>{d.value=E(N,F),p()},M=()=>{C.value=!1},$=j(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),I=j(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:$,trackCls:I,trackRef:s,computedValue:y,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:D,handleClick:T,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:M,handleStartMoving:P,handleStartChange:m,handleEndChange:g}}});function hVe(e,t,n,r,o,a){const s=De("slider-ticks"),l=De("slider-dots"),c=De("slider-marks"),d=De("slider-button"),h=De("slider-input");return z(),ee("div",{class:ue(e.cls)},[L("div",{ref:"trackRef",class:ue(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[L("div",{class:ue(`${e.prefixCls}-bar`),style:Ke(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(z(),Ye(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"])):Pe("v-if",!0),e.marks?(z(),Ye(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Pe("v-if",!0),e.marks?(z(),Ye(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Pe("v-if",!0),e.range?(z(),Ye(d,{key:3,style:Ke(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"])):Pe("v-if",!0),O(d,{style:Ke(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(),Ye(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"])):Pe("v-if",!0)],2)}var dM=ze(fVe,[["render",hVe]]);const pVe=Object.assign(dM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+dM.name,dM)}});var fM=ke({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=Ae("space"),r=j(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=j(()=>[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(nr(e.size)?e.size[0]:e.size)}px`,h=`${a(nr(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=d),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=yf((l=t.default)==null?void 0:l.call(t),!0).filter(d=>d.type!==Ss);return O("div",{class:o.value},[c.map((d,h)=>{var p,m;const g=t.split&&h>0;return O(Nt,{key:(p=d.key)!=null?p:`item-${h}`},[g&&O("div",{class:`${n}-item-split`,style:s(!1)},[(m=t.split)==null?void 0:m.call(t)]),O("div",{class:`${n}-item`,style:s(h===c.length-1)},[d])])})])}}});const vVe=Object.assign(fM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+fM.name,fM)}});function U0e(e){const t=us(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 yx({size:e,defaultSize:t,containerSize:n}){const r=U0e(e??t);return r.isPx?r.size:r.size*n}function mVe(e,t){return parseFloat(e)/parseFloat(t)}const gVe=ke({name:"Split",components:{ResizeTrigger:w0e},props:{component:{type:String,default:"div"},direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:void 0},defaultSize:{type:[Number,String],default:.5},min:{type:[Number,String]},max:{type:[Number,String]},disabled:{type:Boolean,default:!1}},emits:{moveStart:e=>!0,moving:e=>!0,moveEnd:e=>!0,"update:size":e=>!0},setup(e,{emit:t}){const{direction:n,size:r,defaultSize:o,min:a,max:s}=en(e),l=fe(0),c=fe(),d=Ae("split"),[h,p]=fa(o.value,qt({value:r})),m=j(()=>U0e(h.value)),g=j(()=>n.value==="horizontal"),y=j(()=>[d,{[`${d}-horizontal`]:g.value,[`${d}-vertical`]:!g.value}]),S=j(()=>{const{size:$,unit:I,isPx:N}=m.value;return{flex:`0 0 calc(${N?$:$*100}${I} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const $=()=>{var I,N;return g.value?(I=c.value)==null?void 0:I.clientWidth:((N=c.value)==null?void 0:N.clientHeight)||0};return(!c.value||$())&&await Sn(),$()}function x($,I){if(!I)return;const N=m.value.isPx?`${$}px`:mVe($,I);h.value!==N&&(p(N),t("update:size",N))}function E($,I){const N=yx({size:$,containerSize:I}),F=yx({size:a.value,defaultSize:"0px",containerSize:I}),W=yx({size:s.value,defaultSize:`${I}px`,containerSize:I});let U=N;return U=Math.max(U,F),U=Math.min(U,W),U}function _({startContainerSize:$,startSize:I,startPosition:N,endPosition:F}){const W=yx({size:I,containerSize:$});return E(`${W+(F-N)}px`,$)}function T($){t("moving",$);const I=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:$.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:$.pageY});x(I,k.startContainerSize)}function D($){no(window,"mousemove",T),no(window,"mouseup",D),no(window,"contextmenu",D),document.body.style.cursor="default",t("moveEnd",$)}async function P($){t("moveStart",$),k.startPageX=$.pageX,k.startPageY=$.pageY,k.startContainerSize=await C(),k.startSize=h.value,Pi(window,"mousemove",T),Pi(window,"mouseup",D),Pi(window,"contextmenu",D),document.body.style.cursor=g.value?"col-resize":"row-resize"}function M($){const{width:I,height:N}=$.contentRect;l.value=g.value?I:N}return mn(async()=>{const $=await C(),I=E(h.value,$);x(I,$)}),{prefixCls:d,classNames:y,isHorizontal:g,wrapperRef:c,onMoveStart:P,onTriggerResize:M,firstPaneStyles:S}}});function yVe(e,t,n,r,o,a){const s=De("ResizeTrigger");return z(),Ye(Wa(e.component),{ref:"wrapperRef",class:ue(e.classNames)},{default:de(()=>[L("div",{class:ue([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ke(e.firstPaneStyles)},[pt(e.$slots,"first")],6),e.disabled?Pe("v-if",!0):(z(),Ye(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[pt(e.$slots,"resize-trigger")]),icon:de(()=>[pt(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),L("div",{class:ue([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[pt(e.$slots,"second")],2)]),_:3},8,["class"])}var hM=ze(gVe,[["render",yVe]]);const bVe=Object.assign(hM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+hM.name,hM)}}),_Ve=ke({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=Ae("statistic"),r=j(()=>Ze(e.value)?e.value:0),o=fe((t=e.valueFrom)!=null?t:e.value),a=fe(null),{value:s}=en(e),l=j(()=>En(e.value)),c=(h=(m=>(m=e.valueFrom)!=null?m:0)(),p=r.value)=>{var m;h!==p&&(a.value=new qm({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{o.value=g.value},onFinish:()=>{o.value=p}}),(m=a.value)==null||m.start())},d=j(()=>{let h=o.value;if(Ze(h)){Ze(e.precision)&&(h=Xl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),m=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:m,decimal:g}}return e.format&&(h=ml(h).format(e.format)),{isNumber:!1,value:h}});return mn(()=>{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}}}),SVe={key:0};function kVe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.prefixCls)},[e.title||e.$slots.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-content`)},[L("div",{class:ue(`${e.prefixCls}-value`),style:Ke(e.valueStyle)},[e.showPlaceholder?(z(),ee("span",SVe,Ue(e.placeholder),1)):(z(),ee(Nt,{key:1},[e.$slots.prefix?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-prefix`)},[pt(e.$slots,"prefix")],2)):Pe("v-if",!0),e.formatValue.isNumber?(z(),ee(Nt,{key:1},[L("span",{class:ue(`${e.prefixCls}-value-integer`)},Ue(e.formatValue.integer),3),e.formatValue.decimal?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-value-decimal`)}," ."+Ue(e.formatValue.decimal),3)):Pe("v-if",!0)],64)):(z(),ee(Nt,{key:2},[We(Ue(e.formatValue.value),1)],64)),e.$slots.suffix?(z(),ee("span",{key:3,class:ue(`${e.prefixCls}-suffix`)},[pt(e.$slots,"suffix")],2)):Pe("v-if",!0)],64))],6),e.extra||e.$slots.extra?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-extra`)},[pt(e.$slots,"extra",{},()=>[We(Ue(e.extra),1)])],2)):Pe("v-if",!0)],2)],2)}var pM=ze(_Ve,[["render",kVe]]);const xVe=[["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 xVe.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 CVe=ke({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=Ae("statistic"),{start:r,value:o,now:a,format:s}=en(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 mn(()=>{e.start&&h()}),Ao(()=>{d()}),Rt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function wVe(e,t,n,r,o,a){return z(),ee("div",{class:ue([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"title",{},()=>[We(Ue(e.title),1)])],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-content`)},[L("div",{class:ue(`${e.prefixCls}-value`),style:Ke(e.valueStyle)},Ue(e.displayValue),7)],2)],2)}var Hw=ze(CVe,[["render",wVe]]);const EVe=Object.assign(pM,{Countdown:Hw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+pM.name,pM),e.component(n+Hw.name,Hw)}}),H0e=Symbol("ArcoSteps"),TVe=ke({name:"Steps",props:{type:{type:String,default:"default"},direction:{type:String,default:"horizontal"},labelPlacement:{type:String,default:"horizontal"},current:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},status:{type:String,default:"process"},lineLess:{type:Boolean,default:!1},small:{type:Boolean,default:!1},changeable:{type:Boolean,default:!1}},emits:{"update:current":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{type:r,lineLess:o}=en(e),a=Ae("steps"),s=fe(e.defaultCurrent),l=j(()=>{var C;return(C=e.current)!=null?C:s.value}),c=j(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),d=j(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=C=>Cl.value?"wait":e.status,p=(C,x)=>{e.changeable&&(s.value=C,t("update:current",C),t("change",C,x))},m=qt(new Map),g=j(()=>Array.from(m.values()).filter(C=>C.status==="error").map(C=>C.step)),y=(C,x)=>{m.set(C,x)},S=C=>{m.delete(C)},k=j(()=>[a,`${a}-${c.value}`,`${a}-label-${d.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:o.value}]);return ti(H0e,qt({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 AVe(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.cls)},[pt(e.$slots,"default")],2)}var mM=ze(TVe,[["render",AVe]]);const IVe=ke({name:"Step",components:{IconCheck:Xm,IconClose:cs},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Ae("steps-item"),n=yo(),r=Ae("steps-icon"),o=Rn(H0e,void 0),a=j(()=>{var y;return(y=o?.type)!=null?y:"default"}),s=fe(),{computedIndex:l}=cH({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=j(()=>l.value+1),d=j(()=>{var y,S;return(S=(y=e.status)!=null?y:o?.getStatus(c.value))!=null?S:"process"}),h=j(()=>{var y;return(y=o?.errorSteps.includes(c.value+1))!=null?y:!1});n&&o?.addItem(n.uid,qt({step:c,status:d})),Ao(()=>{n&&o?.removeItem(n.uid)});const p=j(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),m=y=>{e.disabled||o?.onClick(c.value,y)},g=j(()=>[t,`${t}-${d.value}`,{[`${t}-active`]:c.value===o?.current,[`${t}-next-error`]:h.value,[`${t}-disabled`]:e.disabled}]);return{prefixCls:t,iconCls:r,cls:g,itemRef:s,showTail:p,stepNumber:c,computedStatus:d,type:a,handleClick:m}}});function LVe(e,t,n,r,o,a){const s=De("icon-check"),l=De("icon-close");return z(),ee("div",{ref:"itemRef",class:ue(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-tail`)},null,2)):Pe("v-if",!0),e.type!=="arrow"?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-node`)},[pt(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(z(),ee("div",{key:0,class:ue(e.iconCls)},[pt(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(z(),Ye(s,{key:0})):e.computedStatus==="error"?(z(),Ye(l,{key:1})):(z(),ee(Nt,{key:2},[We(Ue(e.stepNumber),1)],64))])],2)):Pe("v-if",!0)])],2)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-content`)},[L("div",{class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"default",{},()=>[We(Ue(e.title),1)])],2),e.description||e.$slots.description?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-description`)},[pt(e.$slots,"description",{},()=>[We(Ue(e.description),1)])],2)):Pe("v-if",!0)],2)],2)}var Ww=ze(IVe,[["render",LVe]]);const DVe=Object.assign(mM,{Step:Ww,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+mM.name,mM),e.component(n+Ww.name,Ww)}}),PVe=ke({name:"Switch",components:{IconLoading:Xa},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"circle"},size:{type:String},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{type:String},uncheckedColor:{type:String},beforeChange:{type:Function},checkedText:{type:String},uncheckedText:{type:String}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t}){const{disabled:n,size:r,modelValue:o}=en(e),a=Ae("switch"),{mergedSize:s}=wa(r),{mergedDisabled:l,mergedSize:c,eventHandlers:d}=Lo({disabled:n,size:s}),h=fe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=j(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),m=fe(!1),g=j(()=>m.value||e.loading),y=(_,T)=>{var D,P;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,T),(P=(D=d.value)==null?void 0:D.onChange)==null||P.call(D,T)},S=async _=>{if(g.value||l.value)return;const T=!p.value,D=T?e.checkedValue:e.uncheckedValue,P=e.beforeChange;if(Cn(P)){m.value=!0;try{const M=await P(D);(M??!0)&&y(T,_)}finally{m.value=!1}}else y(T,_)},k=_=>{var T,D;t("focus",_),(D=(T=d.value)==null?void 0:T.onFocus)==null||D.call(T,_)},C=_=>{var T,D;t("blur",_),(D=(T=d.value)==null?void 0:T.onBlur)==null||D.call(T,_)};Rt(o,_=>{(En(_)||Tl(_))&&(h.value=e.uncheckedValue)});const x=j(()=>[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=j(()=>{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}}}),RVe=["aria-checked","disabled"];function MVe(e,t,n,r,o,a){const s=De("icon-loading");return z(),ee("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:ue(e.cls),style:Ke(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onBlur:t[2]||(t[2]=(...l)=>e.handleBlur&&e.handleBlur(...l))},[L("span",{class:ue(`${e.prefixCls}-handle`)},[L("span",{class:ue(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(z(),Ye(s,{key:0})):(z(),ee(Nt,{key:1},[e.computedCheck?pt(e.$slots,"checked-icon",{key:0}):pt(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Pe(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(z(),ee(Nt,{key:0},[L("span",{class:ue(`${e.prefixCls}-text-holder`)},[e.computedCheck?pt(e.$slots,"checked",{key:0},()=>[We(Ue(e.checkedText),1)]):pt(e.$slots,"unchecked",{key:1},()=>[We(Ue(e.uncheckedText),1)])],2),L("span",{class:ue(`${e.prefixCls}-text`)},[e.computedCheck?pt(e.$slots,"checked",{key:0},()=>[We(Ue(e.checkedText),1)]):pt(e.$slots,"unchecked",{key:1},()=>[We(Ue(e.uncheckedText),1)])],2)],64)):Pe("v-if",!0)],46,RVe)}var gM=ze(PVe,[["render",MVe]]);const OVe=Object.assign(gM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+gM.name,gM)}}),$Ve=e=>{let t=0;const n=r=>{if(nr(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},W0e=e=>{let t=0;if(nr(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=W0e(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Are=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},BVe=(e,t,n)=>{const r=W0e(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(d,{level:h=0,parent:p,fixed:m}={})=>{var g;for(const y of d){const S={...y,parent:p};if(nr(S.children)){const k=$Ve(S.children);k>1&&(S.colSpan=k),a[h].push(S),c(S.children,{level:h+1,parent:S,fixed:S.fixed})}else{const k=r-h;k>1&&(S.rowSpan=k),(m||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:m,S.fixed==="left"?s=o.length:En(l)&&(l=o.length)),(En(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),En(s)||(o[s].isLastLeftFixed=!0,Are(o[s],"left")),En(l)||(o[l].isFirstRightFixed=!0,Are(o[l],"right")),{dataColumns:o,groupColumns:a}},NVe=(e,t)=>{for(let n=0;n{var n;const r=NVe(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,jVe=e=>e.children&&e.children.length>0?BH(e.children[e.children.length-1]):e,VVe=(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=jVe(e);for(let c=t.length-1;c>0;c--){const d=t[c];if(l.dataIndex===d.dataIndex)break;d.fixed==="right"&&(s+=d.width)}return s},G0e=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],K0e=(e,t)=>t.fixed==="left"?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:t.fixed==="right"?[`${e}-col-fixed-right`,{[`${e}-col-fixed-right-first`]:t.isFirstRightFixed}]:[],q0e=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${VVe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},Y0e=(e,t)=>e.fixed?{left:`${FVe(e,t)}px`}:{};function X0e(e){return e.map(t=>{const n={...t};return n.children&&(n.children=X0e(n.children)),n})}function Z0e(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=Z0e(t.children)),t.raw})}const 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},zVe=(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}},G2=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),UVe=e=>{const t=[];for(let n=0;n{var s,l,c;const d=j(()=>{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=j(()=>{var E,_,T;return(T=(_=e.value)!=null?_:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?T:h.value}),m=j(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:d,selectedRowKeys:p,currentSelectedRowKeys:m,handleSelectAll:E=>{const _=G2(p.value,o.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const T=d.value?[_.key]:G2(p.value,[_.key],!E);h.value=T,a("select",T,_.key,_.raw),a("selectionChange",T),a("update:selectedKeys",T)},handleSelectAllLeafs:(E,_)=>{const T=G2(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:G2(p.value,T,!_);h.value=D,a("selectionChange",D),a("update:selectedKeys",D)},selectAll:(E=!0)=>{const _=G2(p.value,o.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},WVe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=fe((()=>{var m,g;return t.value?t.value:(m=r.value)!=null&&m.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...o.value]:[]})()),c=j(()=>{var m,g,y;return(y=(g=e.value)!=null?g:(m=r.value)==null?void 0:m.expandedRowKeys)!=null?y:l.value});return{expandedRowKeys:c,handleExpand:(m,g)=>{const S=c.value.includes(m)?c.value.filter(k=>m!==k):c.value.concat(m);l.value=S,a("expand",m,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(m,g=!0)=>{const y=[].concat(m),S=g?c.value.concat(y):c.value.filter(k=>!y.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(m=!0)=>{const g=m?[...o.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},GVe=(e,t)=>{var n,r;const o=fe(mr(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=fe(mr(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=j(()=>{var h;return mr(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:j(()=>{var h;return mr(e.pagination)&&(h=e.pagination.current)!=null?h:o.value}),pageSize:s,handlePageChange:h=>{o.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}},KVe=ke({name:"ColGroup",props:{dataColumns:{type:Array,required:!0},operations:{type:Array,required:!0},columnWidth:{type:Object}},setup(){return{fixedWidth:(t,n)=>{if(t){const r=Math.max(t,n||0);return{width:`${t}px`,minWidth:`${r}px`,maxWidth:`${t}px`}}if(n)return{minWidth:`${n}px`}}}}});function qVe(e,t,n,r,o,a){return z(),ee("colgroup",null,[(z(!0),ee(Nt,null,vn(e.operations,s=>(z(),ee("col",{key:`arco-col-${s.name}`,class:ue(`arco-table-${s.name}-col`),style:Ke(e.fixedWidth(s.width))},null,6))),128)),(z(!0),ee(Nt,null,vn(e.dataColumns,s=>(z(),ee("col",{key:`arco-col-${s.dataIndex}`,style:Ke(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var bx=ze(KVe,[["render",qVe]]),sb=ke({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),ab=ke({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),kh=ke({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Ae("table"),r=j(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var o,a,s;return O((s=(a=t.tr)==null?void 0:a.call(t,{rowIndex:e.rowIndex,record:(o=e.record)==null?void 0:o.raw})[0])!=null?s:"tr",{class:r.value},{default:t.default})}}});const YVe=ke({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XVe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZVe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1)]),14,XVe)}var yM=ze(YVe,[["render",ZVe]]);const FH=Object.assign(yM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yM.name,yM)}}),JVe=ke({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QVe=["stroke-width","stroke-linecap","stroke-linejoin"];function eze(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QVe)}var bM=ze(JVe,[["render",eze]]);const J0e=Object.assign(bM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bM.name,bM)}}),tze=ke({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1)]),14,nze)}var _M=ze(tze,[["render",rze]]);const jH=Object.assign(_M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_M.name,_M)}}),ize=({column:e,tableCtx:t})=>{const n=j(()=>{var d;if(e.value.dataIndex&&e.value.dataIndex===((d=t.sorter)==null?void 0:d.field))return t.sorter.direction}),r=j(()=>{var d,h,p;return(p=(h=(d=e.value)==null?void 0:d.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=j(()=>r.value.length>0),a=j(()=>r.value.includes("ascend")),s=j(()=>r.value.includes("descend")),l=j(()=>{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))}}},oze=({column:e,tableCtx:t})=>{const n=j(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=fe(!1),o=j(()=>n.value.length>0),a=j(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=fe(n.value);Rt(n,g=>{nr(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)}}},l3=Symbol("ArcoTable"),Ire=Symbol("ArcoTableColumn");function Lre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var Q0e=ke({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 m=a.value.offsetWidth>o.value.offsetWidth;m!==l.value&&(l.value=m)}},d=()=>{var m;(m=a.value)!=null&&m.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{d(),c()};mn(()=>{d(),c()}),Qa(()=>{d(),c()});const p=()=>O("span",jt({ref:o,class:r},t),[O(_0,{onResize:h},{default:()=>{var m;return[O("span",{ref:a,class:`${r}-content`},[(m=n.default)==null?void 0:m.call(n)])]}})]);return()=>{let m;if(l.value){let g;return O(Xc,jt({content:s.value,onResize:h},e.tooltipProps),Lre(g=p())?g:{default:()=>[g]})}return O(_0,{onResize:h},Lre(m=p())?m:{default:()=>[m]})}}});function SM(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var lb=ke({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=en(e),r=Ae("table"),{t:o}=Bo(),a=Rn(l3,{}),s=j(()=>{var oe;return((oe=e.column)==null?void 0:oe.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=j(()=>{var oe;if(mr((oe=e.column)==null?void 0:oe.tooltip))return e.column.tooltip}),c=j(()=>{var oe;return(oe=e.column)!=null&&oe.filterable&&El(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:d,hasSorter:h,hasAscendBtn:p,hasDescendBtn:m,nextSortOrder:g,handleClickSorter:y}=ize({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:T,handleRadioFilterChange:D,handleFilterConfirm:P,handleFilterReset:M}=oze({column:n,tableCtx:a}),$=()=>{var oe,X,H,q,Q;let ne,ae;const{filterable:re}=e.column;return(oe=e.column.slots)!=null&&oe["filter-content"]?(X=e.column.slots)==null?void 0:X["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.slotName?(q=(H=a?.slots)==null?void 0:H[re?.slotName])==null?void 0:q.call(H,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.renderContent?re.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(Q=re?.filters)==null?void 0:Q.map((Se,xe)=>{var ve;return O("li",{class:`${r}-filters-item`,key:xe},[C.value?O(Id,{value:Se.value,modelValue:x.value,uninjectGroupContext:!0,onChange:T},{default:()=>[Se.text]}):O(Dy,{value:Se.value,modelValue:(ve=x.value[0])!=null?ve:"",uninjectGroupContext:!0,onChange:D},{default:()=>[Se.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Yo,{size:"mini",onClick:M},SM(ne=o("table.resetText"))?ne:{default:()=>[ne]}),O(Yo,{type:"primary",size:"mini",onClick:P},SM(ae=o("table.okText"))?ae:{default:()=>[ae]})])])},I=()=>{const{filterable:oe}=e.column;return oe?O(ha,jt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},oe.triggerProps),{default:()=>[O(Io,{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,H,q,Q,ne;return[(ne=(Q=(H=(X=e.column.slots)==null?void 0:X["filter-icon"])==null?void 0:H.call(X))!=null?Q:(q=oe.icon)==null?void 0:q.call(oe))!=null?ne:O(jH,null,null)]}})],content:$}):null},N=j(()=>{var oe,X;const H=[`${r}-cell`,`${r}-cell-align-${(X=(oe=e.column)==null?void 0:oe.align)!=null?X:e.column.children?"center":"left"}`];return h.value&&H.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&H.push(`${r}-cell-with-filter`),H}),F=()=>{var oe,X,H,q,Q,ne;return t.default?t.default():(oe=e.column)!=null&&oe.titleSlotName&&((X=a.slots)!=null&&X[e.column.titleSlotName])?(q=(H=a.slots)[e.column.titleSlotName])==null?void 0:q.call(H,{column:e.column}):(ne=(Q=e.column)==null?void 0:Q.slots)!=null&&ne.title?e.column.slots.title():Cn(e.column.title)?e.column.title():e.column.title},W=()=>{var oe,X,H;let q;return O("span",{class:N.value,onClick:h.value?y:void 0},[(oe=e.column)!=null&&oe.ellipsis&&((X=e.column)!=null&&X.tooltip)?O(Q0e,{class:`${r}-th-title`,tooltipProps:l.value},SM(q=F())?q:{default:()=>[q]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(H=e.column)==null?void 0:H.ellipsis}]},[F()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="ascend"}]},[O(J0e,null,null)]),m.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="descend"}]},[O(FH,null,null)])]),c.value&&I()])},U=j(()=>{var oe,X;return{...q0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(oe=e.column)==null?void 0:oe.cellStyle,...(X=e.column)==null?void 0:X.headerCellStyle}}),G=j(()=>{var oe,X;return[`${r}-th`,{[`${r}-col-sorted`]:!!d.value,[`${r}-th-resizing`]:s.value},...K0e(r,e.column),(oe=e.column)==null?void 0:oe.cellClass,(X=e.column)==null?void 0:X.headerCellClass]}),Z=oe=>{var X,H,q;(X=e.column)!=null&&X.dataIndex&&((q=a.onThMouseDown)==null||q.call(a,(H=e.column)==null?void 0:H.dataIndex,oe))};return()=>{var oe,X,H,q;const Q=(oe=e.column.colSpan)!=null?oe:1,ne=(X=e.column.rowSpan)!=null?X:1;return O((q=(H=t.th)==null?void 0:H.call(t,{column:e.column})[0])!=null?q:"th",{class:G.value,style:U.value,colspan:Q>1?Q:void 0,rowspan:ne>1?ne:void 0},{default:()=>[W(),!c.value&&I(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:Z},null)]})}}});function sze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var t0=ke({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Ae("table"),r=j(()=>{var k;if(mr((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),o=j(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=j(()=>{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?Cn((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:Cn((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=j(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...K0e(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,x,E,_,T;return e.summary?Cn((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:Cn((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=j(()=>{var k;const C=q0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),x=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...x}}),h=j(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=Rn(l3,{}),m=()=>{var k,C,x,E,_,T,D,P;if(t.default)return t.default();const M={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1};return t.cell?t.cell(M):(x=e.column.slots)!=null&&x.cell?e.column.slots.cell(M):e.column.render?e.column.render(M):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(T=(_=p.slots)[e.column.slotName])==null?void 0:T.call(_,M):String((P=cm((D=e.record)==null?void 0:D.raw,e.column.dataIndex))!=null?P:"")},g=fe(!1),y=k=>{var C,x;Cn(p.loadMore)&&!((C=e.record)!=null&&C.isLeaf)&&!((x=e.record)!=null&&x.children)&&(g.value=!0,new Promise(E=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,E)}).then(E=>{var _;(_=p.addLazyLoadData)==null||_.call(p,E,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,C,x,E,_,T;let D;return O("span",{class:[`${n}-cell`,`${n}-cell-align-${(C=(k=e.column)==null?void 0:k.align)!=null?C:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:h.value},[e.indentSize>0&&O("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&O("span",{class:`${n}-cell-inline-icon`,onClick:y},[g.value?O(Xa,null,null):(x=e.renderExpandBtn)==null?void 0:x.call(e,e.record,!1)]),(E=e.column)!=null&&E.ellipsis&&((_=e.column)!=null&&_.tooltip)?O(Q0e,{class:`${n}-td-content`,tooltipProps:r.value},sze(D=m())?D:{default:()=>[D]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(T=e.column)==null?void 0:T.ellipsis}]},[m()])])};return()=>{var k,C,x,E;return O((E=(x=t.td)==null?void 0:x.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1})[0])!=null?E:"td",{class:l.value,style:d.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),aze=ke({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=Ae("table"),n=Rn(l3,{}),r=j(()=>{var l,c,d,h;let p=!1,m=!1;const y=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var C,x;return(x=(C=n.currentAllEnabledRowKeys)==null?void 0:C.includes(k))!=null?x:!0}))!=null?c:[]).length,S=(h=(d=n.currentAllEnabledRowKeys)==null?void 0:d.length)!=null?h:0;return y>0&&(y>=S?p=!0:m=!0),{checked:p,indeterminate:m}}),o=()=>e.selectAll?O(Id,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:Cn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?Cn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=j(()=>Y0e(e.operationColumn,e.operations)),s=j(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...G0e(t,e.operationColumn)]);return()=>O("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[O("span",{class:`${t}-cell`},[o()])])}}),Dre=ke({name:"OperationTd",components:{Checkbox:Id,Radio:Dy,IconPlus:Cf,IconMinus:Im},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=Rn(l3,{}),a=j(()=>Y0e(e.operationColumn,e.operations)),s=j(()=>[`${r}-td`,`${r}-operation`,{[`${r}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${r}-radio`]:e.operationColumn.name==="selection-radio",[`${r}-expand`]:e.operationColumn.name==="expand",[`${r}-drag-handle`]:e.operationColumn.name==="drag-handle"},...G0e(r,e.operationColumn)]),l=j(()=>NH(e.record)),c=j(()=>{var h;return zVe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),d=()=>{var h,p,m,g,y,S;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const k=e.record.key;return!o.checkStrictly&&!e.record.isLeaf?O(Id,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelectAllLeafs)==null?void 0:x.call(o,e.record,C)},onClick:C=>C.stopPropagation()},null):O(Id,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelect)==null?void 0:x.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const k=e.record.key;return O(Dy,{modelValue:(g=(m=e.selectedRowKeys)==null?void 0:m.includes(k))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelect)==null?void 0:x.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(S=(y=n["drag-handle-icon"])==null?void 0:y.call(n))!=null?S:O(U5,null,null):null};return()=>O("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[O("span",{class:`${r}-cell`},[d()])])}});const lze=e=>{const t=j(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=qt({dragging:!1,sourceKey:"",sourcePath:[],targetPath:[],data:{}}),r=()=>{n.dragging=!1,n.sourceKey="",n.sourcePath=[],n.targetPath=[],n.data={}};return{dragType:t,dragState:n,handleDragStart:(h,p,m,g)=>{if(h.dataTransfer&&(h.dataTransfer.effectAllowed="move",h.target&&h.target.tagName==="TD")){const{parentElement:y}=h.target;y&&y.tagName==="TR"&&h.dataTransfer.setDragImage(y,0,0)}n.dragging=!0,n.sourceKey=p,n.sourcePath=m,n.targetPath=[...m],n.data=g},handleDragEnter:(h,p)=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),n.targetPath.toString()!==p.toString()&&(n.targetPath=p),h.preventDefault()},handleDragLeave:h=>{},handleDragover:h=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),h.preventDefault()},handleDragEnd:h=>{var p;((p=h.dataTransfer)==null?void 0:p.dropEffect)==="none"&&r()},handleDrop:h=>{r(),h.preventDefault()}}},uze=(e,t)=>{const n=fe(""),r=qt({}),o=(l,c)=>{c.preventDefault(),n.value=l,Pi(window,"mousemove",s),Pi(window,"mouseup",a),Pi(window,"contextmenu",a)},a=()=>{n.value="",no(window,"mousemove",s),no(window,"mouseup",a),no(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}},cze=({columns:e,onFilterChange:t})=>{const n=fe(Pre(e.value));Rt(e,s=>{const l=Pre(s);o3(l,n.value)||(n.value=l)});const r=j(()=>{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}}},Pre=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},dze=({columns:e,onSorterChange:t})=>{const n=fe(Rre(e.value));Rt(e,s=>{const l=Rre(s);o3(l,n.value)||(n.value=l)});const r=j(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=us(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,"")}}},Rre=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}},Mre=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((d,h)=>{var p;d.hasSubtree&&((p=d.children)!=null&&p.length)&&r(d.children||[],c),n.value.forEach((m,g)=>{var y,S;const{rowspan:k=1,colspan:C=1}=(S=(y=e.value)==null?void 0:y.call(e,{record:d.raw,column:m,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||C>1)&&(c[`${h}-${g}-${d.key}`]=[k,C],Array.from({length:k}).forEach((x,E)=>{var _;if(h+E{g+P{const l={};return o.value={},e.value&&r(t.value,l),l}),s=j(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function fze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}const Ore={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var kM=ke({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=Rn(Ya,void 0))==null?void 0:e.size)!=null?t:"large"}},tableLayoutFixed:{type:Boolean,default:!1},loading:{type:[Boolean,Object],default:!1},rowSelection:{type:Object},expandable:{type:Object},scroll:{type:Object},pagination:{type:[Boolean,Object],default:!0},pagePosition:{type:String,default:"br"},indentSize:{type:Number,default:16},rowKey:{type:String,default:"key"},showHeader:{type:Boolean,default:!0},virtualListProps:{type:Object},spanMethod:{type:Function},spanAll:{type:Boolean,default:!1},components:{type:Object},loadMore:{type:Function},filterIconAlignLeft:{type:Boolean,default:!1},hideExpandButtonOnEmpty:{type:Boolean,default:!1},rowClass:{type:[String,Array,Object,Function]},draggable:{type:Object},rowNumber:{type:[Boolean,Object]},columnResizable:{type:Boolean},summary:{type:[Boolean,Function]},summaryText:{type:String,default:"Summary"},summarySpanMethod:{type:Function},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},expandedKeys:{type:Array},defaultExpandedKeys:{type:Array},defaultExpandAllRows:{type:Boolean,default:!1},stickyHeader:{type:[Boolean,Number],default:!1},scrollbar:{type:[Object,Boolean],default:!0},showEmptyTree:{type:Boolean,default:!1}},emits:{"update:selectedKeys":e=>!0,"update:expandedKeys":e=>!0,expand:(e,t)=>!0,expandedChange:e=>!0,select:(e,t,n)=>!0,selectAll:e=>!0,selectionChange:e=>!0,sorterChange:(e,t)=>!0,filterChange:(e,t)=>!0,pageChange:e=>!0,pageSizeChange:e=>!0,change:(e,t,n)=>!0,cellMouseEnter:(e,t,n)=>!0,cellMouseLeave:(e,t,n)=>!0,cellClick:(e,t,n)=>!0,rowClick:(e,t)=>!0,headerClick:(e,t)=>!0,columnResize:(e,t)=>!0,rowDblclick:(e,t)=>!0,cellDblclick:(e,t,n)=>!0,rowContextmenu:(e,t)=>!0,cellContextmenu:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{columns:r,rowKey:o,rowSelection:a,expandable:s,loadMore:l,filterIconAlignLeft:c,selectedKeys:d,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,spanMethod:y,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:x}=en(e),E=Ae("table"),_=Rn(Ya,void 0),T=j(()=>mr(e.bordered)?{...Ore,...e.bordered}:{...Ore,wrapper:e.bordered}),{children:D,components:P}=X_("TableColumn"),M=j(()=>{var It,Xt;return(Xt=(It=a.value)==null?void 0:It.checkStrictly)!=null?Xt:!0}),{displayScrollbar:$,scrollbarProps:I}=D5(C),N=j(()=>{var It,Xt,sn,dn;const In=!!((It=e.scroll)!=null&&It.x||(Xt=e.scroll)!=null&&Xt.minWidth),Xn=!!((sn=e.scroll)!=null&&sn.y||(dn=e.scroll)!=null&&dn.maxHeight);return{x:In,y:Xn}}),F=fe(),W=fe({}),{componentRef:U,elementRef:G}=F1("containerRef"),{componentRef:Z,elementRef:oe}=F1("containerRef"),{elementRef:X}=F1("viewportRef"),{componentRef:H,elementRef:q}=F1("containerRef"),Q=j(()=>ne.value?An.value?X.value:oe.value:G.value),ne=j(()=>N.value.y||e.stickyHeader||An.value||N.value.x&&he.value.length===0),ae=qt(new Map),re=fe();Rt([P,ae],([It,Xt])=>{if(It.length>0){const sn=[];It.forEach(dn=>{const In=Xt.get(dn);In&&sn.push(In)}),re.value=sn}else re.value=void 0});const Se=new Map,xe=fe([]),ve=fe([]),{resizingColumn:be,columnWidth:Ve,handleThMouseDown:Je}=uze(W,t);Rt([r,re,Ve],([It,Xt])=>{var sn;const dn=BVe((sn=Xt??It)!=null?sn:[],Se,Ve);xe.value=dn.dataColumns,ve.value=dn.groupColumns},{immediate:!0,deep:!0});const Me=j(()=>["tl","top","tr"].includes(e.pagePosition)),je=fe(!1),ge=fe(!1),_e=fe(!1);Os(()=>{var It,Xt,sn;let dn=!1,In=!1,Xn=!1;((It=e.rowSelection)!=null&&It.fixed||(Xt=e.expandable)!=null&&Xt.fixed||(sn=e.draggable)!=null&&sn.fixed)&&(dn=!0);for(const Er of xe.value)Er.fixed==="left"?(dn=!0,Xn=!0):Er.fixed==="right"&&(In=!0);dn!==je.value&&(je.value=dn),In!==ge.value&&(ge.value=In),Xn!==_e.value&&(_e.value=Xn)});const Fe=j(()=>{for(const It of xe.value)if(It.ellipsis)return!0;return!1}),He=It=>{const Xt={type:It,page:on.value,pageSize:le.value,sorter:Tt.value,filters:lt.value,dragTarget:It==="drag"?br.data:void 0};t("change",Ce.value,Xt,hn.value)},Qe=(It,Xt)=>{ft.value={...lt.value,[It]:Xt},t("filterChange",It,Xt),He("filter")},rt=(It,Xt)=>{Wt.value=Xt?{field:It,direction:Xt}:void 0,t("sorterChange",It,Xt),He("sorter")},{_filters:ft,computedFilters:lt,resetFilters:Ct,clearFilters:St}=cze({columns:xe,onFilterChange:Qe}),{_sorter:Wt,computedSorter:Tt,resetSorters:Mt,clearSorters:nn}=dze({columns:xe,onSorterChange:rt}),ut=new Set,Ne=j(()=>{const It=[];ut.clear();const Xt=sn=>{if(nr(sn)&&sn.length>0)for(const dn of sn)It.push(dn[o.value]),dn.disabled&&ut.add(dn[o.value]),dn.children&&Xt(dn.children)};return Xt(e.data),It}),Ie=j(()=>{const It=[],Xt=sn=>{for(const dn of sn)It.push(dn.key),dn.children&&Xt(dn.children)};return Xt(he.value),It}),Oe=j(()=>{const It=[],Xt=sn=>{for(const dn of sn)dn.disabled||It.push(dn.key),dn.children&&Xt(dn.children)};return Xt(he.value),It}),{selectedRowKeys:Xe,currentSelectedRowKeys:ct,handleSelect:Lt,handleSelectAllLeafs:ht,handleSelectAll:Be,select:wt,selectAll:Yt,clearSelected:Qt}=HVe({selectedKeys:d,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Ie,currentAllEnabledRowKeys:Oe,emit:t}),{expandedRowKeys:Vt,handleExpand:tn,expand:Jn,expandAll:kr}=WVe({expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,expandable:s,allRowKeys:Ne,emit:t}),Bi=qt({}),Cs=(It,Xt)=>{It&&(Bi[Xt.key]=It)},Pt=It=>{var Xt,sn;for(const dn of Object.keys(lt.value)){const In=lt.value[dn],Xn=Se.get(dn);if(Xn&&((Xt=Xn.filterable)!=null&&Xt.filter)&&In.length>0){const Er=(sn=Xn.filterable)==null?void 0:sn.filter(In,It.raw);if(!Er)return Er}}return!0},{dragType:fn,dragState:br,handleDragStart:un,handleDragEnter:kn,handleDragover:ur,handleDragEnd:ii,handleDrop:kt}=lze(S),Ht=j(()=>{var It;const Xt=sn=>{const dn=[];for(const In of sn){const Xn={raw:In,key:In[e.rowKey],disabled:In.disabled,expand:In.expand,isLeaf:In.isLeaf};In.children?(Xn.isLeaf=!1,Xn.children=Xt(In.children)):e.loadMore&&!In.isLeaf?(Xn.isLeaf=!1,Bi[Xn.key]&&(Xn.children=Xt(Bi[Xn.key]))):Xn.isLeaf=!0,Xn.hasSubtree=!!(Xn.children?!e.hideExpandButtonOnEmpty||Xn.children.length>0:e.loadMore&&!Xn.isLeaf),dn.push(Xn)}return dn};return Xt((It=e.data)!=null?It:[])}),cn=j(()=>{const It=Xt=>Xt.filter(sn=>Pt(sn)?(sn.children&&(sn.children=It(sn.children)),!0):!1);return Object.keys(lt.value).length>0?It(Ht.value):Ht.value}),hn=j(()=>{var It,Xt,sn;const dn=X0e(cn.value);if(dn.length>0){if((It=Tt.value)!=null&&It.field){const Er=Se.get(Tt.value.field);if(Er&&((Xt=Er.sortable)==null?void 0:Xt.sorter)!==!0){const{field:li,direction:Zi}=Tt.value;dn.sort((Ts,Bu)=>{var yc;const Nr=cm(Ts.raw,li),_r=cm(Bu.raw,li);if((yc=Er.sortable)!=null&&yc.sorter&&Cn(Er.sortable.sorter))return Er.sortable.sorter(Ts.raw,Bu.raw,{dataIndex:li,direction:Zi});const vo=Nr>_r?1:-1;return Zi==="descend"?-vo:vo})}}const{sourcePath:In,targetPath:Xn}=br;if(br.dragging&&Xn.length&&Xn.toString()!==In.toString()&&In.length===Xn.length&&In.slice(0,-1).toString()===Xn.slice(0,-1).toString()){let Er=dn;for(let li=0;li=In.length-1){const Bu=Er[Zi],yc=Xn[li];yc>Zi?(Er.splice(yc+1,0,Bu),Er.splice(Zi,1)):(Er.splice(yc,0,Bu),Er.splice(Zi+1,1))}else Er=(sn=Er[Zi].children)!=null?sn:[]}}}return dn}),{page:on,pageSize:le,handlePageChange:ie,handlePageSizeChange:te}=GVe(e,t),J=j(()=>{var It,Xt;return(Xt=(It=a.value)==null?void 0:It.onlyCurrent)!=null?Xt:!1});Rt(on,(It,Xt)=>{It!==Xt&&J.value&&Qt()});const he=j(()=>e.pagination&&hn.value.length>le.value?hn.value.slice((on.value-1)*le.value,on.value*le.value):hn.value),Ce=j(()=>Z0e(he.value)),we=()=>xe.value.reduce((It,Xt,sn)=>{if(Xt.dataIndex)if(sn===0)U8(It,Xt.dataIndex,e.summaryText,{addPath:!0});else{let dn=0,In=!1;he.value.forEach(Xn=>{if(Xt.dataIndex){const Er=cm(Xn.raw,Xt.dataIndex);Ze(Er)?dn+=Er:!En(Er)&&!Tl(Er)&&(In=!0)}}),U8(It,Xt.dataIndex,In?"":dn,{addPath:!0})}return It},{}),Re=It=>It&&It.length>0?It.map(Xt=>({raw:Xt,key:Xt[e.rowKey]})):[],at=j(()=>e.summary?Cn(e.summary)?Re(e.summary({columns:xe.value,data:Ce.value})):Re([we()]):[]),it=fe(0),mt=fe(!0),Ee=fe(!0),nt=()=>{let It=!0,Xt=!0;const sn=Q.value;sn&&(It=it.value===0,Xt=Math.ceil(it.value+sn.offsetWidth)>=sn.scrollWidth),It!==mt.value&&(mt.value=It),Xt!==Ee.value&&(Ee.value=Xt)},st=()=>mt.value&&Ee.value?`${E}-scroll-position-both`:mt.value?`${E}-scroll-position-left`:Ee.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Ot=()=>{const It=[];return je.value&&It.push(`${E}-has-fixed-col-left`),ge.value&&It.push(`${E}-has-fixed-col-right`),It},Zt=It=>{It.target.scrollLeft!==it.value&&(it.value=It.target.scrollLeft),nt()},Gt=It=>{Zt(It);const{scrollLeft:Xt}=It.target;q.value&&(q.value.scrollLeft=Xt),F.value&&(F.value.scrollLeft=Xt)},pn=(It,Xt)=>{t("rowClick",It.raw,Xt)},yn=(It,Xt)=>{t("rowDblclick",It.raw,Xt)},ln=(It,Xt)=>{t("rowContextmenu",It.raw,Xt)},cr=(It,Xt,sn)=>{t("cellClick",It.raw,Xt,sn)},tr=e_((It,Xt,sn)=>{t("cellMouseEnter",It.raw,Xt,sn)},30),xn=e_((It,Xt,sn)=>{t("cellMouseLeave",It.raw,Xt,sn)},30),Yn=(It,Xt,sn)=>{t("cellDblclick",It.raw,Xt,sn)},dr=(It,Xt,sn)=>{t("cellContextmenu",It.raw,Xt,sn)},rr=(It,Xt)=>{t("headerClick",It,Xt)},Pn=j(()=>{var It,Xt;const sn=[],dn=je.value||ge.value;let In,Xn,Er;((It=e.draggable)==null?void 0:It.type)==="handle"&&(In={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||dn},sn.push(In)),e.expandable&&(Xn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||dn},sn.push(Xn)),e.rowSelection&&(Er={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||dn},sn.push(Er)),!_e.value&&sn.length>0&&sn[sn.length-1].fixed&&(sn[sn.length-1].isLastLeftFixed=!0);const li=(Xt=e.components)==null?void 0:Xt.operations;return Cn(li)?li({dragHandle:In,expand:Xn,selection:Er}):sn}),or=j(()=>{var It,Xt,sn,dn;if(N.value.x){const In={width:Ze((It=e.scroll)==null?void 0:It.x)?`${(Xt=e.scroll)==null?void 0:Xt.x}px`:(sn=e.scroll)==null?void 0:sn.x};return(dn=e.scroll)!=null&&dn.minWidth&&(In.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),In}}),pr=j(()=>{var It,Xt,sn,dn;if(N.value.x&&he.value.length>0){const In={width:Ze((It=e.scroll)==null?void 0:It.x)?`${(Xt=e.scroll)==null?void 0:Xt.x}px`:(sn=e.scroll)==null?void 0:sn.x};return(dn=e.scroll)!=null&&dn.minWidth&&(In.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),In}});ti(l3,qt({loadMore:l,addLazyLoadData:Cs,slots:n,sorter:Tt,filters:lt,filterIconAlignLeft:c,resizingColumn:be,checkStrictly:M,currentAllEnabledRowKeys:Oe,currentSelectedRowKeys:ct,addColumn:(It,Xt)=>{ae.set(It,Xt)},removeColumn:It=>{ae.delete(It)},onSelectAll:Be,onSelect:Lt,onSelectAllLeafs:ht,onSorterChange:rt,onFilterChange:Qe,onThMouseDown:Je}));const gi=j(()=>[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`]:br.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&he.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||N.value.x||ne.value||Fe.value}]),si=j(()=>[`${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`]:Me.value}]),Ta=j(()=>{const It=Ot();return N.value.x&&It.push(st()),ne.value&&It.push(`${E}-scroll-y`),It}),An=j(()=>!!e.virtualListProps),Kr=fe({}),ws=()=>{const It={};for(const Xt of Object.keys(W.value))It[Xt]=W.value[Xt].offsetWidth;Kr.value=It},No=fe(!1),Wo=()=>oe.value?oe.value.offsetWidth>oe.value.clientWidth:!1,ai=()=>{const It=Wo();No.value!==It&&(No.value=It),nt(),ws()};mn(()=>{No.value=Wo(),ws()});const tu=j(()=>mr(e.loading)?e.loading:{loading:e.loading}),Il=()=>O(kh,{empty:!0},{default:()=>[O(t0,{colSpan:xe.value.length+Pn.value.length},{default:()=>{var It,Xt,sn,dn,In;return[(In=(dn=(It=n.empty)==null?void 0:It.call(n))!=null?dn:(sn=_==null?void 0:(Xt=_.slots).empty)==null?void 0:sn.call(Xt,{component:"table"}))!=null?In:O(qh,null,null)]}})]}),Fo=It=>{var Xt;if(It.expand)return Cn(It.expand)?It.expand():It.expand;if(n["expand-row"])return n["expand-row"]({record:It.raw});if((Xt=e.expandable)!=null&&Xt.expandedRowRender)return e.expandable.expandedRowRender(It.raw)},hc=j(()=>[].concat(Pn.value,xe.value)),tg=j(()=>e.spanAll?hc.value:xe.value),{tableSpan:$f,removedCells:nu}=Mre({spanMethod:y,data:he,columns:tg}),{tableSpan:pc,removedCells:ep}=Mre({spanMethod:k,data:at,columns:hc}),Bs=It=>{if(!(!An.value||!It||!Kr.value[It]))return{width:`${Kr.value[It]}px`}},Bf=(It,Xt)=>O(kh,{key:`table-summary-${Xt}`,class:[`${E}-tr-summary`,Cn(e.rowClass)?e.rowClass(It.raw,Xt):e.rowClass],onClick:sn=>pn(It,sn)},{default:()=>[Pn.value.map((sn,dn)=>{var In;const Xn=`${Xt}-${dn}-${It.key}`,[Er,li]=(In=pc.value[Xn])!=null?In:[1,1];if(ep.value.includes(Xn))return null;const Zi=Bs(sn.name);return O(Dre,{style:Zi,operationColumn:sn,operations:Pn.value,record:It,rowSpan:Er,colSpan:li,summary:!0},null)}),xe.value.map((sn,dn)=>{var In;const Xn=`${Xt}-${Pn.value.length+dn}-${It.key}`,[Er,li]=(In=pc.value[Xn])!=null?In:[1,1];if(ep.value.includes(Xn))return null;const Zi=Bs(sn.dataIndex);return O(t0,{key:`td-${Xn}`,style:Zi,rowIndex:Xt,record:It,column:sn,operations:Pn.value,dataColumns:xe.value,rowSpan:Er,colSpan:li,summary:!0,onClick:Ts=>cr(It,sn,Ts),onDblclick:Ts=>Yn(It,sn,Ts),onMouseenter:Ts=>tr(It,sn,Ts),onMouseleave:Ts=>xn(It,sn,Ts),onContextmenu:Ts=>dr(It,sn,Ts)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),rd=()=>at.value&&at.value.length>0?O("tfoot",null,[at.value.map((It,Xt)=>Bf(It,Xt))]):null,jd=(It,Xt=!0)=>{var sn,dn,In,Xn,Er;const li=It.key,Zi=Vt.value.includes(li);return O("button",{type:"button",class:`${E}-expand-btn`,onClick:Ts=>{tn(li,It.raw),Xt&&Ts.stopPropagation()}},[(Er=(Xn=(sn=n["expand-icon"])==null?void 0:sn.call(n,{expanded:Zi,record:It.raw}))!=null?Xn:(In=(dn=e.expandable)==null?void 0:dn.icon)==null?void 0:In.call(dn,Zi,It.raw))!=null?Er:O(Zi?Im:Cf,null,null)])},Ou=(It,{indentSize:Xt,indexPath:sn,allowDrag:dn,expandContent:In})=>{var Xn,Er;if(It.hasSubtree)return((Xn=It.children)==null?void 0:Xn.length)===0&&x.value?Il():(Er=It.children)==null?void 0:Er.map((li,Zi)=>tl(li,Zi,{indentSize:Xt,indexPath:sn,allowDrag:dn}));if(In){const li=Q.value;return O(kh,{key:`${It.key}-expand`,expand:!0},{default:()=>[O(t0,{isFixedExpand:je.value||ge.value,containerWidth:li?.clientWidth,colSpan:xe.value.length+Pn.value.length},fze(In)?In:{default:()=>[In]})]})}return null},tl=(It,Xt,{indentSize:sn=0,indexPath:dn,allowDrag:In=!0}={})=>{var Xn;const Er=It.key,li=(dn??[]).concat(Xt),Zi=Fo(It),Ts=Vt.value.includes(Er),Bu=br.sourceKey===It.key,yc=fn.value?{draggable:In,onDragstart:_r=>{In&&un(_r,It.key,li,It.raw)},onDragend:_r=>{In&&ii(_r)}}:{},Nr=fn.value?{onDragenter:_r=>{In&&kn(_r,li)},onDragover:_r=>{In&&ur(_r)},onDrop:_r=>{In&&(He("drag"),kt(_r))}}:{};return O(Nt,null,[O(kh,jt({key:Er,class:[{[`${E}-tr-draggable`]:fn.value==="row",[`${E}-tr-drag`]:Bu},Cn(e.rowClass)?e.rowClass(It.raw,Xt):e.rowClass],rowIndex:Xt,record:It,checked:e.rowSelection&&((Xn=Xe.value)==null?void 0:Xn.includes(Er)),onClick:_r=>pn(It,_r),onDblclick:_r=>yn(It,_r),onContextmenu:_r=>ln(It,_r)},fn.value==="row"?yc:{},Nr),{default:()=>[Pn.value.map((_r,vo)=>{var Aa;const oi=`${Xt}-${vo}-${It.key}`,[Ia,On]=e.spanAll?(Aa=$f.value[oi])!=null?Aa:[1,1]:[1,1];if(e.spanAll&&nu.value.includes(oi))return null;const Nu=Bs(_r.name);return O(Dre,jt({key:`operation-td-${vo}`,style:Nu,operationColumn:_r,operations:Pn.value,record:It,hasExpand:!!Zi,selectedRowKeys:ct.value,rowSpan:Ia,colSpan:On,renderExpandBtn:jd},fn.value==="handle"?yc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),xe.value.map((_r,vo)=>{var Aa;const oi=`${Xt}-${e.spanAll?Pn.value.length+vo:vo}-${It.key}`,[Ia,On]=(Aa=$f.value[oi])!=null?Aa:[1,1];if(nu.value.includes(oi))return null;const Nu=vo===0?{showExpandBtn:It.hasSubtree,indentSize:It.hasSubtree?sn-20:sn}:{},CS=Bs(_r.dataIndex);return O(t0,jt({key:`td-${vo}`,style:CS,rowIndex:Xt,record:It,column:_r,operations:Pn.value,dataColumns:xe.value,rowSpan:Ia,renderExpandBtn:jd,colSpan:On},Nu,{onClick:Ns=>cr(It,_r,Ns),onDblclick:Ns=>Yn(It,_r,Ns),onMouseenter:Ns=>tr(It,_r,Ns),onMouseleave:Ns=>xn(It,_r,Ns),onContextmenu:Ns=>dr(It,_r,Ns)}),{td:n.td})})],tr:n.tr}),Ts&&Ou(It,{indentSize:sn+e.indentSize,indexPath:li,allowDrag:In&&!Bu,expandContent:Zi})])},Es=()=>{const It=he.value.some(Xt=>!!Xt.hasSubtree);return O(ab,null,{default:()=>[he.value.length>0?he.value.map((Xt,sn)=>tl(Xt,sn,{indentSize:It?20:0})):Il()],tbody:n.tbody})},tp=()=>O(sb,null,{default:()=>[ve.value.map((It,Xt)=>O(kh,{key:`header-row-${Xt}`},{default:()=>[Xt===0&&Pn.value.map((sn,dn)=>{var In;return O(aze,{key:`operation-th-${dn}`,ref:Xn=>{Xn?.$el&&sn.name&&(W.value[sn.name]=Xn.$el)},operationColumn:sn,operations:Pn.value,selectAll:!!(sn.name==="selection-checkbox"&&((In=e.rowSelection)!=null&&In.showCheckedAll)),rowSpan:ve.value.length},null)}),It.map((sn,dn)=>{const In=e.columnResizable&&!!sn.dataIndex&&dn{Xn?.$el&&sn.dataIndex&&(W.value[sn.dataIndex]=Xn.$el)},column:sn,operations:Pn.value,dataColumns:xe.value,resizable:In,onClick:Xn=>rr(sn,Xn)},{th:n.th})})]}))],thead:n.thead}),vc=()=>{var It,Xt;if(ne.value){const sn=Ze(e.stickyHeader)?`${e.stickyHeader}px`:void 0,dn=[(It=I.value)==null?void 0:It.outerClass];e.stickyHeader&&dn.push(`${E}-header-sticky`);const In={top:sn,...(Xt=I.value)==null?void 0:Xt.outerStyle},Xn=$.value?Rd:"div";return O(Nt,null,[e.showHeader&&O(Xn,jt({ref:H,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!$.value}],style:{overflowY:No.value?"scroll":void 0,top:$.value?void 0:sn}},C.value?{hide:he.value.length!==0,disableVertical:!0,...I.value,outerClass:dn,outerStyle:In}:void 0),{default:()=>[O("table",{class:`${E}-element`,style:or.value,cellpadding:0,cellspacing:0},[O(bx,{dataColumns:xe.value,operations:Pn.value,columnWidth:Ve},null),tp()])]}),O(Dd,{onResize:ai},{default:()=>{var Er,li;return[An.value&&he.value.length?O(s3,jt({ref:Zi=>{Zi?.$el&&(oe.value=Zi.$el)},class:`${E}-body`,data:he.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:pr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Gt}),{item:({item:Zi,index:Ts})=>tl(Zi,Ts)}):O(Xn,jt({ref:Z,class:`${E}-body`,style:{maxHeight:Ze((Er=e.scroll)==null?void 0:Er.y)?`${(li=e.scroll)==null?void 0:li.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...I.value}:void 0,{onScroll:Gt}),{default:()=>[O("table",{class:`${E}-element`,style:pr.value,cellpadding:0,cellspacing:0},[he.value.length!==0&&O(bx,{dataColumns:xe.value,operations:Pn.value,columnWidth:Ve},null),Es()])]})]}}),at.value&&at.value.length>0&&O("div",{ref:F,class:`${E}-tfoot`,style:{overflowY:No.value?"scroll":"hidden"}},[O("table",{class:`${E}-element`,style:pr.value,cellpadding:0,cellspacing:0},[O(bx,{dataColumns:xe.value,operations:Pn.value,columnWidth:Ve},null),rd()])])])}return O(Dd,{onResize:()=>nt()},{default:()=>[O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:pr.value},[O(bx,{dataColumns:xe.value,operations:Pn.value,columnWidth:Ve},null),e.showHeader&&tp(),Es(),at.value&&at.value.length>0&&rd()])]})},mc=It=>{var Xt;const sn=(Xt=e.scroll)!=null&&Xt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,dn=$.value?Rd:"div";return O(Nt,null,[O("div",{class:[`${E}-container`,Ta.value]},[O(dn,jt({ref:U,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!ne.value}],style:sn},C.value?{outerStyle:{height:"100%"},...I.value}:void 0,{onScroll:Zt}),{default:()=>[It?O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[It()]):vc()]})]),n.footer&&O("div",{class:`${E}-footer`},[n.footer()])])},$u=()=>{var It,Xt;const sn=mr(e.pagination)?xa(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:si.value},[(It=n["pagination-left"])==null?void 0:It.call(n),O(DH,jt({total:cn.value.length,current:on.value,pageSize:le.value,onChange:dn=>{ie(dn),He("pagination")},onPageSizeChange:dn=>{te(dn),He("pagination")}},sn),null),(Xt=n["pagination-right"])==null?void 0:Xt.call(n)])},gc=j(()=>{var It,Xt;if(us((It=e.scroll)==null?void 0:It.y))return{height:(Xt=e.scroll)==null?void 0:Xt.y}});return{render:()=>{var It;return n.default?O("div",{class:gi.value},[mc(n.default)]):(D.value=(It=n.columns)==null?void 0:It.call(n),O("div",{class:gi.value,style:gc.value},[D.value,O(Pd,tu.value,{default:()=>[e.pagination!==!1&&(he.value.length>0||hn.value.length>0)&&Me.value&&$u(),mc(),e.pagination!==!1&&(he.value.length>0||hn.value.length>0)&&!Me.value&&$u()]})]))},selfExpand:Jn,selfExpandAll:kr,selfSelect:wt,selfSelectAll:Yt,selfResetFilters:Ct,selfClearFilters:St,selfResetSorters:Mt,selfClearSorters:nn}},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 ld=(e,t)=>{const n=Lu(e,t),r=fe(n.value);return Rt(n,(o,a)=>{o3(o,a)||(r.value=o)}),r};var Gw=ke({name:"TableColumn",props:{dataIndex:String,title:String,width:Number,minWidth:Number,align:{type:String},fixed:{type:String},ellipsis:{type:Boolean,default:!1},sortable:{type:Object,default:void 0},filterable:{type:Object,default:void 0},cellClass:{type:[String,Array,Object]},headerCellClass:{type:[String,Array,Object]},bodyCellClass:{type:[String,Array,Object,Function]},summaryCellClass:{type:[String,Array,Object,Function]},cellStyle:{type:Object},headerCellStyle:{type:Object},bodyCellStyle:{type:[Object,Function]},summaryCellStyle:{type:[Object,Function]},index:{type:Number},tooltip:{type:[Boolean,Object],default:!1}},setup(e,{slots:t}){var n;const{dataIndex:r,title:o,width:a,align:s,fixed:l,ellipsis:c,index:d,minWidth:h}=en(e),p=ld(e,"sortable"),m=ld(e,"filterable"),g=ld(e,"cellClass"),y=ld(e,"headerCellClass"),S=ld(e,"bodyCellClass"),k=ld(e,"summaryCellClass"),C=ld(e,"cellStyle"),x=ld(e,"headerCellStyle"),E=ld(e,"bodyCellStyle"),_=ld(e,"summaryCellStyle"),T=ld(e,"tooltip"),D=yo(),P=Rn(l3,{}),M=Rn(Ire,void 0),{children:$,components:I}=X_("TableColumn"),N=qt(new Map);ti(Ire,{addChild:(Z,oe)=>{N.set(Z,oe)},removeChild:Z=>{N.delete(Z)}});const U=fe();Rt([I,N],([Z,oe])=>{if(Z.length>0){const X=[];Z.forEach(H=>{const q=oe.get(H);q&&X.push(q)}),U.value=X}else U.value=void 0});const G=qt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:m,cellClass:g,headerCellClass:y,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:d,tooltip:T,children:U,slots:t});return D&&(M?M.addChild(D.uid,G):(n=P.addColumn)==null||n.call(P,D.uid,G)),Ao(()=>{var Z;D&&(M?M.removeChild(D.uid):(Z=P.removeColumn)==null||Z.call(P,D.uid))}),()=>{var Z;return $.value=(Z=t.default)==null?void 0:Z.call(t),$.value}}});const hze=Object.assign(kM,{Thead:sb,Tbody:ab,Tr:kh,Th:lb,Td:t0,Column:Gw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+kM.name,kM),e.component(n+sb.name,sb),e.component(n+ab.name,ab),e.component(n+kh.name,kh),e.component(n+lb.name,lb),e.component(n+t0.name,t0),e.component(n+Gw.name,Gw)}}),pze=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},vze=(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"),mze=ke({name:"TabsTab",components:{IconHover:Io,IconClose:cs},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Ae("tabs-tab"),r=Rn(VH,{}),o=d=>{e.tab.disabled||t("click",e.tab.key,d)},a=d=>{d.key==="Enter"&&o(d)},s=j(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=d=>{e.tab.disabled||t("delete",e.tab.key,d)},c=j(()=>[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 gze(e,t,n,r,o,a){const s=De("icon-close"),l=De("icon-hover");return z(),ee("div",jt({tabindex:"0",class:e.cls},e.eventHandlers),[L("span",{class:ue(`${e.prefixCls}-title`)},[pt(e.$slots,"default")],2),e.editable&&e.tab.closable?(z(),Ye(l,{key:0,class:ue(`${e.prefixCls}-close-btn`),onClick:ls(e.handleDelete,["stop"])},{default:de(()=>[O(s)]),_:1},8,["class","onClick"])):Pe("v-if",!0)],16)}var yze=ze(mze,[["render",gze]]);function bze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var $re=ke({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=Ae("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?O(Ui,null,null):O(Al,null,null):e.type==="next"?O(Yh,null,null):O(Y_,null,null),a=j(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let s;return O("div",{class:a.value,onClick:r},[O(Io,{disabled:e.disabled},bze(s=o())?s:{default:()=>[s]})])}}});const _ze=ke({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=en(e),n=Ae("tabs-nav-ink"),r=fe(0),o=fe(0),a=j(()=>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)}};mn(()=>{Sn(()=>s())}),Qa(()=>{s()});const l=j(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function Sze(e,t,n,r,o,a){return z(),ee("div",{class:ue(e.cls),style:Ke(e.style)},null,6)}var kze=ze(_ze,[["render",Sze]]),xze=ke({name:"TabsNav",props:{tabs:{type:Array,required:!0},direction:{type:String,required:!0},type:{type:String,required:!0},activeKey:{type:[String,Number]},activeIndex:{type:Number,required:!0},position:{type:String,required:!0},size:{type:String,required:!0},showAddButton:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},animation:{type:Boolean,required:!0},headerPadding:{type:Boolean,default:!0},scrollPosition:{type:String,default:"auto"}},emits:["click","add","delete"],setup(e,{emit:t,slots:n}){const{tabs:r,activeKey:o,activeIndex:a,direction:s,scrollPosition:l}=en(e),c=Ae("tabs-nav"),d=fe(),h=fe(),p=fe({}),m=j(()=>{if(!En(o.value))return p.value[o.value]}),g=fe(),y=j(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=fe(!1),k=fe(0),C=fe(0),x=fe(0),E=()=>{var H,q,Q;return(Q=s.value==="vertical"?(H=d.value)==null?void 0:H.offsetHeight:(q=d.value)==null?void 0:q.offsetWidth)!=null?Q:0},_=()=>!h.value||!d.value?0:s.value==="vertical"?h.value.offsetHeight-d.value.offsetHeight:h.value.offsetWidth-d.value.offsetWidth,T=()=>{S.value=D(),S.value?(k.value=E(),C.value=_(),x.value>C.value&&(x.value=C.value)):x.value=0},D=()=>d.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>d.value.offsetHeight:h.value.offsetWidth>d.value.offsetWidth:!1,P=H=>{(!d.value||!h.value||H<0)&&(H=0),x.value=Math.min(H,C.value)},M=()=>{if(!m.value||!d.value||!S.value)return;vze(d.value,s.value);const H=s.value==="horizontal",q=H?"offsetLeft":"offsetTop",Q=H?"offsetWidth":"offsetHeight",ne=m.value[q],ae=m.value[Q],re=d.value[Q],Se=window.getComputedStyle(m.value),xe=H?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ve=parseFloat(Se[xe])||0;l.value==="auto"?nex.value+re&&P(ne+ae-re+ve):l.value==="center"?P(ne+(ae-re+ve)/2):l.value==="start"?P(ne-ve):l.value==="end"?P(ne+ae-re+ve):Ze(l.value)&&P(ne-l.value)},$=H=>{if(!S.value)return;H.preventDefault();const{deltaX:q,deltaY:Q}=H;Math.abs(q)>Math.abs(Q)?P(x.value+q):P(x.value+Q)},I=(H,q)=>{t("click",H,q)},N=(H,q)=>{t("delete",H,q),Sn(()=>{delete p.value[H]})},F=H=>{const q=H==="previous"?x.value-k.value:x.value+k.value;P(q)},W=()=>{T(),g.value&&g.value.$forceUpdate()};Rt(r,()=>{Sn(()=>{T()})}),Rt([a,l],()=>{setTimeout(()=>{M()},0)}),mn(()=>{T(),d.value&&Pi(d.value,"wheel",$,{passive:!1})}),mi(()=>{d.value&&no(d.value,"wheel",$)});const U=()=>!y.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:H=>t("add",H)},[O(Io,null,{default:()=>[O(Cf,null,null)]})]),G=j(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),Z=j(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),oe=j(()=>pze({direction:e.direction,type:e.type,offset:x.value})),X=j(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var H;return O("div",{class:G.value},[S.value&&O($re,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:F},null),O(Dd,{onResize:()=>T()},{default:()=>[O("div",{class:X.value,ref:d},[O(Dd,{onResize:W},{default:()=>[O("div",{ref:h,class:Z.value,style:oe.value},[e.tabs.map((q,Q)=>O(yze,{key:q.key,ref:ne=>{ne?.$el&&(p.value[q.key]=ne.$el)},active:q.key===o.value,tab:q,editable:e.editable,onClick:I,onDelete:N},{default:()=>{var ne,ae,re;return[(re=(ae=(ne=q.slots).title)==null?void 0:ae.call(ne))!=null?re:q.title]}})),e.type==="line"&&m.value&&O(kze,{ref:g,activeTabRef:m.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&U()])]}),S.value&&O($re,{type:"next",direction:e.direction,disabled:x.value>=C.value,onClick:F},null),O("div",{class:`${c}-extra`},[S.value&&U(),(H=n.extra)==null?void 0:H.call(n)])])}}}),xM=ke({name:"Tabs",props:{activeKey:{type:[String,Number],default:void 0},defaultActiveKey:{type:[String,Number],default:void 0},position:{type:String,default:"top"},size:{type:String},type:{type:String,default:"line"},direction:{type:String,default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destroyOnHide:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{type:String,default:"click"},scrollPosition:{type:[String,Number],default:"auto"}},emits:{"update:activeKey":e=>!0,change:e=>!0,tabClick:(e,t)=>!0,add:e=>!0,delete:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r,lazyLoad:o,destroyOnHide:a,trigger:s}=en(e),l=Ae("tabs"),{mergedSize:c}=wa(r),d=j(()=>e.direction==="vertical"?"left":e.position),h=j(()=>["left","right"].includes(d.value)?"vertical":"horizontal"),{children:p,components:m}=X_("TabPane"),g=qt(new Map),y=j(()=>{const N=[];return m.value.forEach(F=>{const W=g.get(F);W&&N.push(W)}),N}),S=j(()=>y.value.map(N=>N.key)),k=(N,F)=>{g.set(N,F)},C=N=>{g.delete(N)},x=fe(e.defaultActiveKey),E=j(()=>{var N;const F=(N=e.activeKey)!=null?N:x.value;return En(F)?S.value[0]:F}),_=j(()=>{const N=S.value.indexOf(E.value);return N===-1?0:N});ti(VH,qt({lazyLoad:o,destroyOnHide:a,activeKey:E,addItem:k,removeItem:C,trigger:s}));const T=N=>{N!==E.value&&(x.value=N,t("update:activeKey",N),t("change",N))},D=(N,F)=>{T(N),t("tabClick",N,F)},P=N=>{t("add",N),e.autoSwitch&&Sn(()=>{const F=S.value[S.value.length-1];T(F)})},M=(N,F)=>{t("delete",N,F)},$=()=>O("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[O("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),I=j(()=>[l,`${l}-${h.value}`,`${l}-${d.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var N;return p.value=(N=n.default)==null?void 0:N.call(n),O("div",{class:I.value},[d.value==="bottom"&&$(),O(xze,{tabs:y.value,activeKey:E.value,activeIndex:_.value,direction:h.value,position:d.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:D,onAdd:P,onDelete:M},{extra:n.extra}),d.value!=="bottom"&&$()])}}});const Cze=ke({name:"TabPane",props:{title:String,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const{title:r,disabled:o,closable:a}=en(e),s=yo(),l=Ae("tabs"),c=Rn(VH,{}),d=fe(),h=j(()=>s?.vnode.key),p=j(()=>h.value===c.activeKey),m=fe(c.lazyLoad?p.value:!0),g=qt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),Ao(()=>{var y;s?.uid&&((y=c.removeItem)==null||y.call(c,s.uid))}),Rt(p,y=>{y?m.value||(m.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(m.value=!1)}),Qa(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:d,mounted:m}}});function wze(e,t,n,r,o,a){return z(),ee("div",{ref:"itemRef",class:ue([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-pane`)},[pt(e.$slots,"default")],2)):Pe("v-if",!0)],2)}var Kw=ze(Cze,[["render",wze]]);const Eze=Object.assign(xM,{TabPane:Kw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+xM.name,xM),e.component(n+Kw.name,Kw)}});function Tze(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=en(e);function a(){return o.value?[]:void 0}function s(k){if(!En(k))return o.value?nr(k)?k:[k,void 0]:k}const l=j(()=>{const k=s(t.value);return dc(k,r.value)}),c=j(()=>{const k=s(n.value);return dc(k,r.value)}),[d,h]=Ga(En(l.value)?En(c.value)?a():c.value:l.value);Rt(l,()=>{En(l.value)&&h(a())});const p=j(()=>l.value||d.value),[m,g]=Ga(p.value);Rt([p],()=>{g(p.value)});const[y,S]=Ga();return Rt([m],()=>{S(void 0)}),{computedValue:p,panelValue:m,inputValue:y,setValue:h,setPanelValue:g,setInputValue:S}}var Aze=ke({name:"TimePickerRangePanel",components:{Panel:V8},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}=en(e),o=fe(r.value);Rt(r,()=>{o.value=r.value});const a=j(()=>n?.value?n.value[o.value]:void 0);function s(c){const d=En(n)||En(n?.value)?[]:[...n.value];d[o.value]=c,t("select",d)}function l(){if(E4(n?.value))t("confirm",n?.value);else{const c=(o.value+1)%2;o.value=c,t("display-index-change",c),t("update:displayIndex",c)}}return{displayValue:a,onSelect:s,onConfirm:l}},render(){const e={...this.$attrs,isRange:!0,value:this.displayValue,onSelect:this.onSelect,onConfirm:this.onConfirm};return O(V8,e,this.$slots)}});const Ize=ke({name:"TimePicker",components:{Trigger:ha,DateInput:Npe,DateRangeInput:r0e,Panel:V8,RangePanel:Aze,IconClockCircle:r_},inheritAttrs:!1,props:{type:{type:String,default:"time"},modelValue:{type:[String,Number,Date,Array]},defaultValue:{type:[String,Number,Date,Array]},disabled:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Array]},size:{type:String},popupContainer:{type:[String,Object]},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},disableConfirm:{type:Boolean},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean}},emits:{change:(e,t)=>!0,"update:modelValue":e=>!0,select:(e,t)=>!0,clear:()=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0},setup(e,{emit:t}){const{type:n,format:r,use12Hours:o,modelValue:a,defaultValue:s,popupVisible:l,defaultPopupVisible:c,disabled:d,placeholder:h,disableConfirm:p,disabledHours:m,disabledMinutes:g,disabledSeconds:y}=en(e),{mergedDisabled:S,eventHandlers:k}=Lo({disabled:d}),C=j(()=>n.value==="time-range"),x=Ae("timepicker"),E=fe(),{format:_,use12Hours:T}=xH(qt({format:r,use12Hours:o})),{computedValue:D,panelValue:P,inputValue:M,setValue:$,setPanelValue:I,setInputValue:N}=Tze(qt({modelValue:a,defaultValue:s,isRange:C,format:_})),[F,W]=fa(c.value,qt({value:l})),U=_e=>{_e!==F.value&&(W(_e),t("popup-visible-change",_e),t("update:popupVisible",_e))},{t:G}=Bo(),[Z,oe]=Ga(0),X=j(()=>{const _e=h?.value;return C.value?En(_e)?G("datePicker.rangePlaceholder.time"):nr(_e)?_e:[_e,_e]:En(_e)?G("datePicker.placeholder.time"):_e}),H=Hpe(qt({disabledHours:m,disabledMinutes:g,disabledSeconds:y}));function q(_e){var Fe,He;if(hH(_e,D.value)){const Qe=df(_e,_.value),rt=xu(_e);t("update:modelValue",Qe),t("change",Qe,rt),(He=(Fe=k.value)==null?void 0:Fe.onChange)==null||He.call(Fe)}}function Q(_e,Fe){if(H(_e))return;let He=_e;if(nr(_e)){const Qe=Rs();He=_e.map(rt=>(rt&&(rt=rt.year(Qe.year()),rt=rt.month(Qe.month()),rt=rt.date(Qe.date())),rt)),E4(He)&&(He=Qb(He)),He?.length===0&&(He=void 0)}q(He),$(He),Fe!==F.value&&U(Fe)}function ne(_e,Fe){I(_e),Fe!==F.value&&U(Fe)}function ae(_e){E.value&&E.value.focus&&E.value.focus(_e)}function re(_e){S.value||(U(_e),_e&&Sn(()=>{ae(Z.value)}))}function Se(_e){const Fe=df(_e,_.value),He=xu(_e);t("select",Fe,He),p.value&&(!C.value||E4(_e))?Q(_e,!0):(ne(_e,!0),N(void 0))}function xe(_e){Q(_e,!1)}function ve(){Q(P.value||D.value,!1)}function be(){if(E4(P.value))Q(P.value,!1);else{const _e=(Z.value+1)%2;oe(_e),ae(_e)}}function Ve(_e){U(!0);const Fe=_e.target.value;if(N(Fe),!j8(Fe,_.value))return;const He=Rs(Fe,_.value);H(He)||(p.value?Q(He,!0):ne(He,!0))}function Je(_e){U(!0);const Fe=_e.target.value,He=nr(M.value)?[...M.value]:nr(P.value)&&df(P.value,_.value)||[];if(He[Z.value]=Fe,N(He),!j8(Fe,_.value))return;const Qe=Rs(Fe,_.value);if(H(Qe))return;const rt=nr(P.value)?[...P.value]:[];rt[Z.value]=Qe,p.value&&E4(rt)?Q(rt,!0):ne(rt,!0)}function Me(_e){_e.stopPropagation(),I(void 0),Q(void 0,C.value)}Rt(F,(_e,Fe)=>{_e!==Fe&&I(D.value),_e||N(void 0)});const je=j(()=>C.value?{focusedIndex:Z.value,onFocusedIndexChange:_e=>{oe(_e)},onChange:Je,onPressEnter:be}:{onChange:Ve,onPressEnter:ve}),ge=j(()=>C.value?{displayIndex:Z.value,onDisplayIndexChange:_e=>{oe(_e),ae(_e)}}:{});return{refInput:E,isRange:C,prefixCls:x,panelVisible:F,focusedInputIndex:Z,computedPlaceholder:X,panelValue:P,inputValue:M,computedFormat:_,computedUse12Hours:T,inputProps:je,panelProps:ge,mergedDisabled:S,onPanelVisibleChange:re,onInputClear:Me,onPanelSelect:Se,onPanelConfirm:xe,onPanelClick:()=>{ae(Z.value)}}}});function Lze(e,t,n,r,o,a){const s=De("IconClockCircle"),l=De("Trigger");return z(),Ye(l,jt({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},{...e.triggerProps},{onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[L("div",{class:ue(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(z(),Ye(Wa(e.isRange?"RangePanel":"Panel"),jt(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}),Eo({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[pt(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(),Ye(Wa(e.isRange?"DateRangeInput":"DateInput"),jt({...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}),Eo({"suffix-icon":de(()=>[pt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[pt(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=ze(Ize,[["render",Lze]]);const Dze=Object.assign(CM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+CM.name,CM)}}),eve=Symbol("ArcoTimeline"),Pze=(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]},Rze=ke({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=Ae("timeline-item"),n=yo(),r=Rn(eve,{}),o=j(()=>{var m,g,y;return(y=(g=r.items)==null?void 0:g.indexOf((m=n?.uid)!=null?m:-1))!=null?y:-1}),a=j(()=>{var m;return(m=r?.direction)!=null?m:"vertical"}),s=j(()=>{var m;return(m=r?.labelPosition)!=null?m:"same"}),l=j(()=>{const{items:m=[],reverse:g,labelPosition:y,mode:S="left"}=r,k=a.value,C=Pze(o.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${y}`]:y,[`${t}-last`]:o.value===(g===!0?0:m.length-1)}]}),c=j(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),d=j(()=>{const{direction:m}=r||{};return{[m==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=j(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=j(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:d,computedDotStyle:p,labelPosition:s}}});function Mze(e,t,n,r,o,a){return z(),ee("div",{role:"listitem",class:ue(e.cls)},[L("div",{class:ue(`${e.prefixCls}-dot-wrapper`)},[L("div",{class:ue(e.dotLineCls),style:Ke(e.computedDotLineStyle)},null,6),L("div",{class:ue(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-dot-custom`)},[pt(e.$slots,"dot")],2)):(z(),ee("div",{key:1,class:ue(e.dotTypeCls),style:Ke(e.computedDotStyle)},null,6))],2)],2),L("div",{class:ue(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-content`)},[pt(e.$slots,"default")],2)):Pe("v-if",!0),e.labelPosition!=="relative"?(z(),ee("div",{key:1,class:ue(`${e.prefixCls}-label`)},[e.$slots.label?pt(e.$slots,"label",{key:0}):(z(),ee(Nt,{key:1},[We(Ue(e.label),1)],64))],2)):Pe("v-if",!0)],2),e.labelPosition==="relative"?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-label`)},[e.$slots.label?pt(e.$slots,"label",{key:0}):(z(),ee(Nt,{key:1},[We(Ue(e.label),1)],64))],2)):Pe("v-if",!0)],2)}var oy=ze(Rze,[["render",Mze]]),wM=ke({name:"Timeline",components:{Item:oy,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=j(()=>e.pending||t.pending),{children:o,components:a}=X_("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:d}=en(e),h=qt({items:a,direction:l,reverse:s,labelPosition:c,mode:d});ti(eve,h);const p=j(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var m,g;return r.value?o.value=(m=t.default)==null?void 0:m.call(t).concat(O(oy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var y,S;return(S=(y=t.dot)==null?void 0:y.call(t))!=null?S:O(Pd,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[o.value])}}});const Oze=Object.assign(wM,{Item:oy,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+wM.name,wM),e.component(n+oy.name,oy)}}),$ze=ke({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Bze=["stroke-width","stroke-linecap","stroke-linejoin"];function Nze(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)]),14,Bze)}var EM=ze($ze,[["render",Nze]]);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 Fze=ke({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=Ae("transfer-list-item"),n=Rn(zH,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=j(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return O("div",{class:o.value,onClick:r},[e.allowClear||e.simple?O("span",{class:`${t}-content`},[(c=(l=n==null?void 0:(s=n.slots).item)==null?void 0:l.call(s,{label:e.data.label,value:e.data.value}))!=null?c:e.data.label]):O(Id,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:d=>n?.onSelect(d),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var d,h,p;return[(p=(h=n==null?void 0:(d=n.slots).item)==null?void 0:h.call(d,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&O(Io,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(cs,null,null)]})])}}});const jze=ke({name:"TransferView",components:{Empty:XC,Checkbox:Id,IconHover:Io,IconDelete:fc,InputSearch:O0.Search,List:D0e,TransferListItem:Fze,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=Rn(zH,void 0),a=j(()=>e.dataInfo.selected.length),s=j(()=>e.dataInfo.data.length),l=j(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=j(()=>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=j(()=>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 Vze(e,t,n,r,o,a){const s=De("checkbox"),l=De("icon-delete"),c=De("icon-hover"),d=De("input-search"),h=De("transfer-list-item"),p=De("list"),m=De("Scrollbar"),g=De("Empty");return z(),ee("div",{class:ue(e.prefixCls)},[L("div",{class:ue(`${e.prefixCls}-header`)},[pt(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[L("span",{class:ue(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(z(),ee("span",{key:0,class:ue(`${e.prefixCls}-header-title-simple`)},Ue(e.title),3)):(z(),Ye(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[We(Ue(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(z(),Ye(c,{key:0,disabled:e.disabled,class:ue(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Pe("v-if",!0):(z(),ee("span",{key:1,class:ue(`${e.prefixCls}-header-count`)},Ue(e.dataInfo.selected.length)+" / "+Ue(e.dataInfo.data.length),3))])],2),e.showSearch?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-search`)},[O(d,jt({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)):Pe("v-if",!0),L("div",{class:ue(`${e.prefixCls}-body`)},[e.filteredData.length>0?(z(),Ye(m,{key:0},{default:de(()=>{var y,S;return[pt(e.$slots,"default",{data:e.filteredData,selectedKeys:(y=e.transferCtx)==null?void 0:y.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[O(p,{class:ue(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(z(!0),ee(Nt,null,vn(e.filteredData,k=>(z(),Ye(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(),Ye(g,{key:1,class:ue(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var zze=ze(jze,[["render",Vze]]);const Uze=ke({name:"Transfer",components:{ArcoButton:Yo,TransferView:zze,IconLeft:Al,IconRight:Ui},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}=Lo({disabled:Lu(e,"disabled")}),a=Ae("transfer"),s=fe(e.defaultValue),l=j(()=>{var x;return(x=e.modelValue)!=null?x:s.value}),c=fe(e.defaultSelected),d=j(()=>{var x;return(x=e.selected)!=null?x:c.value}),h=j(()=>{var x;return(x=e.title)==null?void 0:x[0]}),p=j(()=>{var x;return(x=e.title)==null?void 0:x[1]}),m=j(()=>{const x={data:[],allValidValues:[],selected:[],validSelected:[]},E={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(E.data.push(_),_.disabled||E.allValidValues.push(_.value),d.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value))):(x.data.push(_),_.disabled||x.allValidValues.push(_.value),d.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value)));return{sourceInfo:x,targetInfo:E}}),g=(x,E)=>{t("search",x,E)},y=(x,E)=>{var _,T;const D=E==="target"?[...l.value,...x]:l.value.filter(P=>!x.includes(P));k(m.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=D,t("update:modelValue",D),t("change",D),(T=(_=o.value)==null?void 0:_.onChange)==null||T.call(_)},S=x=>{const E=x==="target"?m.value.sourceInfo.validSelected:m.value.targetInfo.validSelected;y(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};ti(zH,qt({selected:d,slots:n,moveTo:y,onSelect:k}));const C=j(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:C,dataInfo:m,computedSelected:d,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function Hze(e,t,n,r,o,a){const s=De("transfer-view"),l=De("icon-right"),c=De("arco-button"),d=De("icon-left");return z(),ee("div",{class:ue(e.cls)},[O(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},Eo({_:2},[e.$slots.source?{name:"default",fn:de(h=>[pt(e.$slots,"source",qi(Sa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[pt(e.$slots,"source-title",qi(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?Pe("v-if",!0):(z(),ee("div",{key:0,class:ue([`${e.prefixCls}-operations`])},[O(c,{tabindex:"-1","aria-label":"Move selected right",size:"small",shape:"round",disabled:e.dataInfo.sourceInfo.validSelected.length===0,onClick:t[0]||(t[0]=h=>e.handleClick("target"))},{icon:de(()=>[pt(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Pe("v-if",!0):(z(),Ye(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(()=>[pt(e.$slots,"to-source-icon",{},()=>[O(d)])]),_:3},8,["disabled"]))],2)),O(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},Eo({_:2},[e.$slots.target?{name:"default",fn:de(h=>[pt(e.$slots,"target",qi(Sa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[pt(e.$slots,"target-title",qi(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=ze(Uze,[["render",Hze]]);const Wze=Object.assign(TM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+TM.name,TM)}}),tve=Symbol("TreeInjectionKey");function Gze(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function Kze(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function cV(e){return e.selectable&&!e.disabled}function Bre(e){return!e.isLeaf&&e.children}function qze(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 fm(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function UH(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{fm(r)&&n.push(r.key,...UH(r))}),n}function nve(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(fm(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(fm))||[];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)),nve({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function Yze(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),nve({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function K5(){return Rn(tve)||{}}const Xze=ke({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zze=["stroke-width","stroke-linecap","stroke-linejoin"];function Jze(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)]),14,Zze)}var AM=ze(Xze,[["render",Jze]]);const q5=Object.assign(AM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AM.name,AM)}});var Qze=ke({name:"TreeNodeSwitcher",components:{IconLoading:Xa,RenderFunction:Xh},props:{prefixCls:String,loading:Boolean,showLine:Boolean,treeNodeData:{type:Object},icons:{type:Object},nodeStatus:{type:Object}},emits:["click"],setup(e,{slots:t,emit:n}){const{icons:r,nodeStatus:o,treeNodeData:a}=en(e),s=K5(),l=kd(t,"switcher-icon"),c=kd(t,"loading-icon");return{getSwitcherIcon:()=>{var d,h,p;const m=(h=(d=r?.value)==null?void 0:d.switcherIcon)!=null?h:l.value;return m?m(o.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,o.value)},getLoadingIcon:()=>{var d,h,p;const m=(h=(d=r?.value)==null?void 0:d.loadingIcon)!=null?h:c.value;return m?m(o.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,o.value)},onClick(d){n("click",d)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:o,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:d}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:da(Xa);let m=null,g=!1;if(p)d&&(m=(n=o())!=null?n:da(q5));else{const S=d?da("span",{class:`${r}-${h?"minus":"plus"}-icon`}):da(FH);m=(t=o())!=null?t:S,g=!d}if(!m)return null;const y=da("span",{class:`${r}-switcher-icon`,onClick:s},m);return g?da(Io,{class:`${r}-icon-hover`},()=>y):y}});const rve=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function eUe(e,t){return!!(En(e)?t:e)}function tUe(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 Nre({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return En(e)?Cn(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function nUe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=tUe(r,l),d=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...xa(c,["children"]),key:(n=c.key)!=null?n:rve(),selectable:Nre({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:d,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Nre({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:eUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function rUe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const d=nUe({treeNodeData:l,treeProps:t,parentNode:o,isTail:c===r.length-1});d.children=n(l[a?.children||"children"],d),s.push(d)}),s}return n(e)}function ive(){const e=yo(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:rve()},n=fe(t());return Qa(()=>{n.value=t()}),n}function iUe(e){const{key:t,refTitle:n}=en(e),r=K5(),o=fe(!1),a=fe(!1),s=fe(!1),l=fe(0),c=Em(d=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:m}=d,g=h.height/4,y=m-p;l.value=y[]}},setup(e){const t=ive(),n=Ae("tree-node"),r=K5(),o=j(()=>{var oe;return(oe=r.key2TreeNode)==null?void 0:oe.get(t.value)}),a=j(()=>o.value.treeNodeData),s=j(()=>o.value.children),l=j(()=>{var oe;const X=(oe=r.treeProps)==null?void 0:oe.actionOnNodeClick;return X?oUe(X):[]}),{isLeaf:c,isTail:d,selectable:h,disabled:p,disableCheckbox:m,draggable:g}=en(e),y=j(()=>{var oe;return[`${n}`,{[`${n}-selected`]:M.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:d.value,[`${n}-expanded`]:$.value,[`${n}-disabled-selectable`]:!h.value&&!((oe=r.treeProps)!=null&&oe.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=fe(),{isDragOver:k,isDragging:C,isAllowDrop:x,dropPosition:E,setDragStatus:_}=iUe(qt({key:t,refTitle:S})),T=j(()=>[`${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=j(()=>{var oe,X;return(X=(oe=r.checkedKeys)==null?void 0:oe.includes)==null?void 0:X.call(oe,t.value)}),P=j(()=>{var oe,X;return(X=(oe=r.indeterminateKeys)==null?void 0:oe.includes)==null?void 0:X.call(oe,t.value)}),M=j(()=>{var oe,X;return(X=(oe=r.selectedKeys)==null?void 0:oe.includes)==null?void 0:X.call(oe,t.value)}),$=j(()=>{var oe,X;return(X=(oe=r.expandedKeys)==null?void 0:oe.includes)==null?void 0:X.call(oe,t.value)}),I=j(()=>{var oe,X;return(X=(oe=r.loadingKeys)==null?void 0:oe.includes)==null?void 0:X.call(oe,t.value)}),N=j(()=>r.dragIcon),F=j(()=>r.nodeIcon);function W(oe){var X,H;c.value||(!((X=s.value)!=null&&X.length)&&Cn(r.onLoadMore)?r.onLoadMore(t.value):(H=r?.onExpand)==null||H.call(r,!$.value,t.value,oe))}const U=qt({loading:I,checked:D,selected:M,indeterminate:P,expanded:$,isLeaf:c}),G=j(()=>r.nodeTitle?()=>{var oe;return(oe=r.nodeTitle)==null?void 0:oe.call(r,a.value,U)}:void 0),Z=j(()=>r.nodeExtra?()=>{var oe;return(oe=r.nodeExtra)==null?void 0:oe.call(r,a.value,U)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:y,titleClassNames:T,indeterminate:P,checked:D,expanded:$,selected:M,treeTitle:G,treeNodeData:a,loading:I,treeDragIcon:N,treeNodeIcon:F,extra:Z,nodeStatus:U,onCheckboxChange(oe,X){var H;m.value||p.value||(H=r.onCheck)==null||H.call(r,oe,t.value,X)},onTitleClick(oe){var X;l.value.includes("expand")&&W(oe),!(!h.value||p.value)&&((X=r.onSelect)==null||X.call(r,t.value,oe))},onSwitcherClick:W,onDragStart(oe){var X;if(g.value){oe.stopPropagation(),_("dragStart",oe);try{(X=oe.dataTransfer)==null||X.setData("text/plain","")}catch{}}},onDragEnd(oe){g.value&&(oe.stopPropagation(),_("dragEnd",oe))},onDragOver(oe){g&&(oe.stopPropagation(),oe.preventDefault(),_("dragOver",oe))},onDragLeave(oe){g.value&&(oe.stopPropagation(),_("dragLeave",oe))},onDrop(oe){!g.value||!x.value||(oe.stopPropagation(),oe.preventDefault(),_("drop",oe))}}}}),aUe=["data-level","data-key"],lUe=["draggable"];function uUe(e,t,n,r,o,a){const s=De("NodeSwitcher"),l=De("Checkbox"),c=De("RenderFunction"),d=De("IconDragDotVertical");return z(),ee("div",{class:ue(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Pe(" 缩进 "),L("span",{class:ue(`${e.prefixCls}-indent`)},[(z(!0),ee(Nt,null,vn(e.level,h=>(z(),ee("span",{key:h,class:ue([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Pe(" switcher "),L("span",{class:ue([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[O(s,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},Eo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Pe(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),pt(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Pe(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),pt(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Pe(" checkbox "),e.checkable?(z(),Ye(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"])):Pe("v-if",!0),Pe(" 内容 "),L("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(),ee("span",{key:0,class:ue([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Pe(" 节点图标 "),e.$slots.icon?pt(e.$slots,"icon",qi(jt({key:0},e.nodeStatus))):e.icon?(z(),Ye(c,jt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(z(),Ye(c,jt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Pe("v-if",!0)],2)):Pe("v-if",!0),L("span",{class:ue(`${e.prefixCls}-title-text`)},[e.treeTitle?(z(),Ye(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(z(),ee(Nt,{key:1},[Pe(" 标题,treeTitle 优先级高于节点的 title "),pt(e.$slots,"title",{title:e.title},()=>[We(Ue(e.title),1)])],2112)),e.draggable?(z(),ee("span",{key:2,class:ue([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Pe(" 拖拽图标 "),e.$slots["drag-icon"]?pt(e.$slots,"drag-icon",qi(jt({key:0},e.nodeStatus))):e.dragIcon?(z(),Ye(c,jt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(z(),Ye(c,jt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(z(),Ye(d,{key:3}))],2)):Pe("v-if",!0)],2)],42,lUe),Pe(" 额外 "),e.extra?(z(),Ye(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Pe("v-if",!0)],10,aUe)}var pV=ze(sUe,[["render",uUe]]);const cUe=ke({name:"ExpandTransition",props:{expanded:Boolean},emits:["end"],setup(e,{emit:t}){return{onEnter(n){const r=`${n.scrollHeight}px`;n.style.height=e.expanded?"0":r,n.offsetHeight,n.style.height=e.expanded?r:"0"},onAfterEnter(n){n.style.height=e.expanded?"":"0",t("end")},onBeforeLeave(n){n.style.display="none"}}}});function dUe(e,t,n,r,o,a){return z(),Ye(xs,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[pt(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var fUe=ze(cUe,[["render",dUe]]);const hUe=ke({name:"TransitionNodeList",components:{ExpandTransition:fUe,BaseTreeNode:pV},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Ae("tree")}-node-list`],r=K5(),{nodeKey:o}=en(e),a=j(()=>{var c,d;return(d=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:d.call(c,o.value)}),s=j(()=>{var c;const d=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var m,g;return(m=p.pathParentKeys)!=null&&m.includes(o.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var m;if(a.value)return(m=p.pathParentKeys)==null?void 0:m.every(y=>d.has(y));const g=p.pathParentKeys.indexOf(o.value);return p.pathParentKeys.slice(g+1).every(y=>d.has(y))})}),l=j(()=>{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 pUe(e,t,n,r,o,a){const s=De("BaseTreeNode"),l=De("ExpandTransition");return z(),Ye(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(z(),ee("div",{key:0,class:ue(e.classNames)},[(z(!0),ee(Nt,null,vn(e.visibleNodeList,c=>(z(),Ye(s,jt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Pe("v-if",!0)]),_:1},8,["expanded","onEnd"])}var vUe=ze(hUe,[["render",pUe]]),mUe=ke({name:"TreeNode",inheritAttrs:!1,props:{...pV.props},setup(e,{slots:t,attrs:n}){const r=ive();return()=>O(Nt,null,[O(pV,jt(e,n,{key:r.value}),t),O(vUe,{key:r.value,nodeKey:r.value},null)])}});function gUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=en(e),l=fe(!1),c=fe([]),d=fe([]),h=fe(),p=fe(),m=y=>Yze({initCheckedKeys:y,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),g=y=>{const S=m(y);[c.value,d.value]=S};return g(n.value||t?.value||[]),Os(()=>{n.value?[h.value,p.value]=m(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],d.value=[]),l.value||(l.value=!0)}),{checkedKeys:j(()=>h.value||c.value),indeterminateKeys:j(()=>o.value&&a.value?a.value:p.value||d.value),setCheckedState(y,S,k=!1){return k?g(y):(c.value=y,d.value=S),[c.value,d.value]}}}function ove(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=en(e),d=fe([]);Os(()=>{var m,g;d.value=rUe(t.value||[],{selectable:(m=r?.value)!=null?m:!1,showLine:!!o?.value,blockNode:!!a?.value,checkable:(g=s?.value)!=null?g:!1,fieldNames:n?.value,loadMore:!!l?.value,draggable:!!c?.value})});const h=j(()=>Gze(d.value)),p=j(()=>Kze(h.value));return{treeData:d,flattenTreeData:h,key2TreeNode:p}}const yUe=ke({name:"Tree",components:{VirtualList:s3,TreeNode:mUe},props:{size:{type:String,default:"medium"},blockNode:{type:Boolean},defaultExpandAll:{type:Boolean,default:!0},multiple:{type:Boolean},checkable:{type:[Boolean,String,Function],default:!1},selectable:{type:[Boolean,Function],default:!0},checkStrictly:{type:Boolean},checkedStrategy:{type:String,default:"all"},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:Array},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},data:{type:Array,default:()=>[]},fieldNames:{type:Object},showLine:{type:Boolean},loadMore:{type:Function},draggable:{type:Boolean},allowDrop:{type:Function},filterTreeNode:{type:Function},searchValue:{type:String,default:""},virtualListProps:{type:Object},defaultExpandSelected:{type:Boolean},defaultExpandChecked:{type:Boolean},autoExpandParent:{type:Boolean,default:!0},halfCheckedKeys:{type:Array},onlyCheckLeaf:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},actionOnNodeClick:{type:String},disableSelectActionOnly:{type:Boolean,default:!1}},emits:{select:(e,t)=>!0,"update:selectedKeys":e=>!0,check:(e,t)=>!0,"update:checkedKeys":e=>!0,"update:halfCheckedKeys":e=>!0,expand:(e,t)=>!0,"update:expandedKeys":e=>!0,dragStart:(e,t)=>!0,dragEnd:(e,t)=>!0,dragOver:(e,t)=>!0,dragLeave:(e,t)=>!0,drop:e=>!0},setup(e,{emit:t,slots:n}){const{data:r,showLine:o,multiple:a,loadMore:s,checkStrictly:l,checkedKeys:c,defaultCheckedKeys:d,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:m,defaultExpandedKeys:g,checkedStrategy:y,selectable:S,checkable:k,blockNode:C,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:T,draggable:D,allowDrop:P,defaultExpandSelected:M,defaultExpandChecked:$,autoExpandParent:I,halfCheckedKeys:N,onlyCheckLeaf:F,animation:W}=en(e),U=Ae("tree"),G=j(()=>[`${U}`,{[`${U}-checkable`]:k.value,[`${U}-show-line`]:o.value},`${U}-size-${E.value}`]),Z=kd(n,"switcher-icon"),oe=kd(n,"loading-icon"),X=kd(n,"drag-icon"),H=kd(n,"icon"),q=kd(n,"title"),Q=kd(n,"extra"),{treeData:ne,flattenTreeData:ae,key2TreeNode:re}=ove(qt({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:x,loadMore:s,draggable:D})),{checkedKeys:Se,indeterminateKeys:xe,setCheckedState:ve}=gUe(qt({defaultCheckedKeys:d,checkedKeys:c,checkStrictly:l,key2TreeNode:re,halfCheckedKeys:N,onlyCheckLeaf:F})),[be,Ve]=fa(p?.value||[],qt({value:h})),Je=fe([]),Me=fe();function je(){if(g?.value){const ht=new Set([]);return g.value.forEach(Be=>{if(ht.has(Be))return;const wt=re.value.get(Be);wt&&[...I.value?wt.pathParentKeys:[],Be].forEach(Yt=>ht.add(Yt))}),[...ht]}if(_.value)return ae.value.filter(ht=>ht.children&&ht.children.length).map(ht=>ht.key);if(M.value||$.value){const ht=new Set([]),Be=wt=>{wt.forEach(Yt=>{const Qt=re.value.get(Yt);Qt&&(Qt.pathParentKeys||[]).forEach(Vt=>ht.add(Vt))})};return M.value&&Be(be.value),$.value&&Be(Se.value),[...ht]}return[]}const[ge,_e]=fa(je(),qt({value:m})),Fe=fe([]),He=j(()=>{const ht=new Set(ge.value),Be=new Set(Fe.value);return ae.value.filter(wt=>{var Yt;if(!(!T||!T.value||T?.value(wt.treeNodeData)))return!1;const Vt=En(wt.parentKey),tn=(Yt=wt.pathParentKeys)==null?void 0:Yt.every(Jn=>ht.has(Jn)&&!Be.has(Jn));return Vt||tn})});function Qe(ht,Be=y.value){let wt=[...ht];return Be==="parent"?wt=ht.filter(Yt=>{const Qt=re.value.get(Yt);return Qt&&!(!En(Qt.parentKey)&&ht.includes(Qt.parentKey))}):Be==="child"&&(wt=ht.filter(Yt=>{var Qt,Vt;return!((Vt=(Qt=re.value.get(Yt))==null?void 0:Qt.children)!=null&&Vt.length)})),wt}function rt(ht){return ht.map(Be=>{var wt;return((wt=re.value.get(Be))==null?void 0:wt.treeNodeData)||void 0}).filter(Boolean)}function ft(ht){const{targetKey:Be,targetChecked:wt,newCheckedKeys:Yt,newIndeterminateKeys:Qt,event:Vt}=ht,tn=Be?re.value.get(Be):void 0,Jn=Qe(Yt);t("update:checkedKeys",Jn),t("update:halfCheckedKeys",Qt),t("check",Jn,{checked:wt,node:tn?.treeNodeData,checkedNodes:rt(Jn),halfCheckedKeys:Qt,halfCheckedNodes:rt(Qt),e:Vt})}function lt(ht){const{targetKey:Be,targetSelected:wt,newSelectedKeys:Yt,event:Qt}=ht,Vt=Be?re.value.get(Be):void 0;t("update:selectedKeys",Yt),t("select",Yt,{selected:wt,node:Vt?.treeNodeData,selectedNodes:rt(Yt),e:Qt})}function Ct(ht){const{targetKey:Be,targetExpanded:wt,newExpandedKeys:Yt,event:Qt}=ht,Vt=Be?re.value.get(Be):void 0;t("expand",Yt,{expanded:wt,node:Vt?.treeNodeData,expandedNodes:rt(Yt),e:Qt}),t("update:expandedKeys",Yt)}function St(ht){const[Be,wt]=ve(ht,[],!0);ft({newCheckedKeys:Be,newIndeterminateKeys:wt})}function Wt(ht){let Be=ht;!a.value&&ht.length>1&&(Be=[ht[0]]),Ve(Be),lt({newSelectedKeys:Be})}function Tt(ht){Fe.value=[],_e(ht),Ct({newExpandedKeys:ht})}function Mt(ht,Be,wt){if(!ht.length)return;let Yt=[...Se.value],Qt=[...xe.value];ht.forEach(Vt=>{const tn=re.value.get(Vt);tn&&([Yt,Qt]=hV({node:tn,checked:Be,checkedKeys:[...Yt],indeterminateKeys:[...Qt],checkStrictly:l.value}))}),ve(Yt,Qt),ft({targetKey:wt,targetChecked:En(wt)?void 0:Be,newCheckedKeys:Yt,newIndeterminateKeys:Qt})}function nn(ht,Be,wt){if(!ht.length)return;let Yt;if(a.value){const Qt=new Set(be.value);ht.forEach(Vt=>{Be?Qt.add(Vt):Qt.delete(Vt)}),Yt=[...Qt]}else Yt=Be?[ht[0]]:[];Ve(Yt),lt({targetKey:wt,targetSelected:En(wt)?void 0:Be,newSelectedKeys:Yt})}function ut(ht,Be,wt){const Yt=new Set(ge.value);ht.forEach(Vt=>{Be?Yt.add(Vt):Yt.delete(Vt),Xe(Vt)});const Qt=[...Yt];_e(Qt),Ct({targetKey:wt,targetExpanded:En(wt)?void 0:Be,newExpandedKeys:Qt})}function Ne(ht,Be,wt){const Yt=re.value.get(Be);if(!Yt)return;const[Qt,Vt]=hV({node:Yt,checked:ht,checkedKeys:Se.value,indeterminateKeys:xe.value,checkStrictly:l.value});ve(Qt,Vt),ft({targetKey:Be,targetChecked:ht,newCheckedKeys:Qt,newIndeterminateKeys:Vt,event:wt})}function Ie(ht,Be){if(!re.value.get(ht))return;let Yt,Qt;if(a.value){const Vt=new Set(be.value);Qt=!Vt.has(ht),Qt?Vt.add(ht):Vt.delete(ht),Yt=[...Vt]}else Qt=!0,Yt=[ht];Ve(Yt),lt({targetKey:ht,targetSelected:Qt,newSelectedKeys:Yt,event:Be})}function Oe(ht,Be,wt){if(Fe.value.includes(Be)||!re.value.get(Be))return;const Qt=new Set(ge.value);ht?Qt.add(Be):Qt.delete(Be);const Vt=[...Qt];_e(Vt),W.value&&Fe.value.push(Be),Ct({targetKey:Be,targetExpanded:ht,newExpandedKeys:Vt,event:wt})}function Xe(ht){const Be=Fe.value.indexOf(ht);Fe.value.splice(Be,1)}const ct=j(()=>s?.value?async ht=>{if(!Cn(s.value))return;const Be=re.value.get(ht);if(!Be)return;const{treeNodeData:wt}=Be;Je.value=[...new Set([...Je.value,ht])];try{await s.value(wt),Je.value=Je.value.filter(Yt=>Yt!==ht),Oe(!0,ht),Se.value.includes(ht)&&Ne(!0,ht)}catch(Yt){Je.value=Je.value.filter(Qt=>Qt!==ht),console.error("[tree]load data error: ",Yt)}}:void 0),Lt=qt({treeProps:e,switcherIcon:Z,loadingIcon:oe,dragIcon:X,nodeIcon:H,nodeTitle:q,nodeExtra:Q,treeData:ne,flattenTreeData:ae,key2TreeNode:re,checkedKeys:Se,indeterminateKeys:xe,selectedKeys:be,expandedKeys:ge,loadingKeys:Je,currentExpandKeys:Fe,onLoadMore:ct,filterTreeNode:T,onCheck:Ne,onSelect:Ie,onExpand:Oe,onExpandEnd:Xe,allowDrop(ht,Be){const wt=re.value.get(ht);return wt&&Cn(P.value)?!!P.value({dropNode:wt.treeNodeData,dropPosition:Be}):!0},onDragStart(ht,Be){const wt=re.value.get(ht);Me.value=wt,wt&&t("dragStart",Be,wt.treeNodeData)},onDragEnd(ht,Be){const wt=re.value.get(ht);Me.value=void 0,wt&&t("dragEnd",Be,wt.treeNodeData)},onDragOver(ht,Be){const wt=re.value.get(ht);wt&&t("dragOver",Be,wt.treeNodeData)},onDragLeave(ht,Be){const wt=re.value.get(ht);wt&&t("dragLeave",Be,wt.treeNodeData)},onDrop(ht,Be,wt){const Yt=re.value.get(ht);Me.value&&Yt&&!(Yt.key===Me.value.key||Yt.pathParentKeys.includes(Me.value.key||""))&&t("drop",{e:wt,dragNode:Me.value.treeNodeData,dropNode:Yt.treeNodeData,dropPosition:Be})}});return ti(tve,Lt),{classNames:G,visibleTreeNodeList:He,treeContext:Lt,virtualListRef:fe(),computedSelectedKeys:be,computedExpandedKeys:ge,computedCheckedKeys:Se,computedIndeterminateKeys:xe,getPublicCheckedKeys:Qe,getNodes:rt,internalCheckNodes:Mt,internalSetCheckedKeys:St,internalSelectNodes:nn,internalSetSelectedKeys:Wt,internalExpandNodes:ut,internalSetExpandedKeys:Tt}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&fm(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&&fm(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=nr(e),l=(s?e:[e]).filter(c=>{const d=a.get(c);return d&&fm(d)&&(r||!n||qze(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=nr(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&&Bre(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=nr(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Bre(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function bUe(e,t,n,r,o,a){const s=De("TreeNode"),l=De("VirtualList");return z(),ee("div",{class:ue(e.classNames)},[e.virtualListProps?(z(),Ye(l,jt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(z(),Ye(s,jt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(z(!0),ee(Nt,{key:1},vn(e.visibleTreeNodeList,c=>(z(),Ye(s,jt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var IM=ze(yUe,[["render",bUe]]);const vV=Object.assign(IM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+IM.name,IM)}}),_Ue=ke({name:"Typography",setup(){return{classNames:[Ae("typography")]}}});function SUe(e,t,n,r,o,a){return z(),ee("article",{class:ue(e.classNames)},[pt(e.$slots,"default")],2)}var LM=ze(_Ue,[["render",SUe]]);const kUe=ke({name:"TypographyEditContent",components:{Input:O0},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 mn(()=>{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 xUe(e,t,n,r,o,a){const s=De("Input");return z(),ee("div",{class:ue(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:Ch(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var CUe=ze(kUe,[["render",xUe]]);const wUe=ke({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EUe=["stroke-width","stroke-linecap","stroke-linejoin"];function TUe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)]),14,EUe)}var DM=ze(wUe,[["render",TUe]]);const Y5=Object.assign(DM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DM.name,DM)}}),AUe=ke({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IUe=["stroke-width","stroke-linecap","stroke-linejoin"];function LUe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)]),14,IUe)}var PM=ze(AUe,[["render",LUe]]);const HH=Object.assign(PM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PM.name,PM)}}),DUe=ke({name:"TypographyOperations",components:{Tooltip:Xc,IconCheckCircleFill:Kh,IconCopy:Y5,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=j(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=Bo();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function PUe(e,t,n,r,o,a){const s=De("IconEdit"),l=De("Tooltip"),c=De("IconCheckCircleFill"),d=De("IconCopy");return z(),ee(Nt,null,[e.editable?(z(),Ye(l,jt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[L("span",{class:ue(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=ls((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Pe("v-if",!0),e.copyable?(z(),Ye(l,qi(jt({key:1},e.copyTooltipProps)),{content:de(()=>[pt(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[We(Ue(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[L("span",{class:ue({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=ls((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[pt(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(z(),Ye(c,{key:0})):(z(),Ye(d,{key:1}))])],2)]),_:3},16)):Pe("v-if",!0),e.showExpand?(z(),ee("a",{key:2,class:ue(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=ls((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[pt(e.$slots,"expand-node",{expanded:e.expanded},()=>[We(Ue(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Pe("v-if",!0)],64)}var Fre=ze(DUe,[["render",PUe]]);let Ws;function RUe(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 MUe=(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=RUe(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=Ty({render(){return O("span",null,[n])}});p.mount(Ws);const m=Array.prototype.slice.apply(Ws.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Ws.innerHTML="";const g=document.createTextNode(`${s}${a}`);Ws.appendChild(g),m.forEach(C=>{Ws.appendChild(C)});const y=document.createTextNode(r);Ws.insertBefore(y,g);function S(){return Ws.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,x=0,E=r.length,_=0){const T=Math.floor((x+E)/2),D=r.slice(0,T);if(C.textContent=D,x>=E-1)for(let P=E;P>=x;P-=1){const M=r.slice(0,P);if(C.textContent=M,S()||!M)return}S()?k(C,T,E,T):k(C,x,T,_)}return k(y),{text:y.textContent,ellipsis:!0}};const OUe=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 r1;function $Ue(e){if(!e)return"";r1||(r1=document.createElement("div"),r1.setAttribute("aria-hidden","true"),document.body.appendChild(r1));const t=Ty({render(){return O("div",null,[e])}});t.mount(r1);const n=r1.innerText;return t.unmount(),n}function sve(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}function BUe(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 jre(e,t){const{mark:n}=e,r=BUe(e),o=mr(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:o}:{},sve(a)?a:{default:()=>[a]}),t)}function NUe(e){const t=!!e.showTooltip,n=mr(e.showTooltip)&&e.showTooltip.type==="popover"?dH:Xc,r=mr(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...xa(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var WH=ke({name:"TypographyBase",inheritAttrs:!1,props:{component:{type:String,required:!0},type:{type:String},bold:{type:Boolean},mark:{type:[Boolean,Object],default:!1},underline:{type:Boolean},delete:{type:Boolean},code:{type:Boolean},disabled:{type:Boolean},editable:{type:Boolean},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean},editText:{type:String},copyable:{type:Boolean},copyText:{type:String},copyDelay:{type:Number,default:3e3},ellipsis:{type:[Boolean,Object],default:!1},editTooltipProps:{type:Object},copyTooltipProps:{type:Object}},emits:{editStart:()=>!0,change:e=>!0,"update:editText":e=>!0,editEnd:()=>!0,"update:editing":e=>!0,copy:e=>!0,ellipsis:e=>!0,expand:e=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{editing:o,defaultEditing:a,ellipsis:s,copyable:l,editable:c,copyText:d,editText:h,copyDelay:p,component:m}=en(e),g=Ae("typography"),y=j(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=fe(),k=fe(""),[C,x]=fa(a.value,qt({value:o})),E=j(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function T(Se){n("update:editText",Se),n("change",Se)}function D(){C.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const P=fe(!1);let M=null;function $(){var Se;const xe=(Se=d.value)!=null?Se:k.value;OUe(xe||""),P.value=!0,n("copy",xe),M=setTimeout(()=>{P.value=!1},p.value)}mi(()=>{M&&clearTimeout(M),M=null});const I=fe(!1),N=fe(!1),F=fe(""),W=j(()=>NUe(mr(s.value)&&s.value||{}));let U=null;function G(){const Se=!N.value;N.value=Se,n("expand",Se)}function Z(Se=!1){return W.value.css?O(Fre,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:P.value,isEllipsis:ne.value,expanded:N.value,forceRenderExpand:Se||N.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(Fre,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:P.value,isEllipsis:I.value,expanded:N.value,forceRenderExpand:Se,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function oe(){if(!S.value)return;const{ellipsis:Se,text:xe}=MUe(S.value,W.value,Z(!!W.value.expandable),k.value);I.value!==Se&&(I.value=Se,W.value.css||n("ellipsis",Se)),F.value!==xe&&(F.value=xe||"")}function X(){s.value&&!N.value&&(B8(U),U=Ghe(()=>{oe()}))}mi(()=>{B8(U)}),Rt(()=>W.value.rows,()=>{X()}),Rt(s,Se=>{Se?X():I.value=!1});let H=[];const q=()=>{if(s.value||l.value||c.value){const Se=$Ue(H);Se!==k.value&&(k.value=Se,X())}};mn(q),Qa(q);const Q=fe(),ne=fe(!1),ae=()=>{if(S.value&&Q.value){const Se=Q.value.offsetHeight>S.value.offsetHeight;Se!==ne.value&&(ne.value=Se,n("ellipsis",Se))}},re=j(()=>N.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":W.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Se,xe;if(H=((Se=t.default)==null?void 0:Se.call(t))||[],E.value){const He=(xe=h.value)!=null?xe:k.value;return O(CUe,{text:He,onChange:Qe=>{Qe!==He&&T(Qe)},onEnd:D},null)}const{suffix:ve,ellipsisStr:be,showTooltip:Ve,tooltipProps:Je,TooltipComponent:Me}=W.value,je=I.value&&!N.value,ge=je&&!Ve?{title:k.value}:{},_e=m.value;if(W.value.css){const He=jre(e,H),Qe=O(_e,jt({class:y.value,ref:S,style:re.value},ge,r),{default:()=>[O("span",{ref:Q},[He])]});return ne.value?O(Me,jt(Je,{onResize:()=>ae()}),{default:()=>[Qe],content:()=>k.value}):O(Dd,{onResize:()=>{ae()}},sve(Qe)?Qe:{default:()=>[Qe]})}const Fe=jre(e,je?F.value:H);return O(Dd,{onResize:()=>X()},{default:()=>[O(_e,jt({class:y.value,ref:S},ge,r),{default:()=>[je&&Ve?O(Me,Je,{default:()=>[O("span",null,[Fe])],content:()=>k.value}):Fe,je?be:null,ve,Z()]})]})}}}),qw=ke({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=en(e),r=Ae("typography"),o=j(()=>t?.value?"blockquote":"div"),a=j(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return O(WH,jt({class:t},this.$attrs,{component:e}),this.$slots)}}),Yw=ke({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=en(e);return{component:j(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(WH,jt(this.$attrs,{component:e}),this.$slots)}}),Xw=ke({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=en(e);return{component:j(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(WH,jt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const FUe=Object.assign(LM,{Paragraph:qw,Title:Yw,Text:Xw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+LM.name,LM),e.component(n+qw.name,qw),e.component(n+Yw.name,Yw),e.component(n+Xw.name,Xw)}}),Vre=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},jUe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},zre=(e,t)=>Cn(e)?e(t):e,VUe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=ey,onSuccess:l=ey,onError:c=ey})=>{const d=zre(n,e)||"file",h=zre(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(Vre(p));return}l(Vre(p))};const m=new FormData;if(h)for(const g of Object.keys(h))m.append(g,h[g]);e.file&&m.append(d,e.file),p.open("post",t??"",!0);for(const g of Object.keys(o))p.setRequestHeader(g,o[g]);return p.send(m),{abort(){p.abort()}}},ave=(e,t)=>{if(t&&e){const n=nr(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},zUe=(e,t,n)=>{const r=[];let o=0;const a=()=>{!o&&n(r)},s=l=>{if(o+=1,l?.isFile){l.file(c=>{o-=1,ave(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let d=!1;const h=()=>{c.readEntries(p=>{d||(o-=1,d=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}o-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},UUe=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=>ave(r,t)):n},HUe=ke({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WUe=["stroke-width","stroke-linecap","stroke-linejoin"];function GUe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,WUe)}var OM=ze(HUe,[["render",GUe]]);const k0=Object.assign(OM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OM.name,OM)}});var KUe=ke({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=Ae("upload"),{t:r}=Bo(),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(Cn(e.onButtonClick)){const C=e.onButtonClick(k);if(wm(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))zUe(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))}},m=k=>{k.preventDefault(),c("subtract"),l.value===0&&(o.value=!1,c("reset"))},g=k=>{k.preventDefault(),!e.disabled&&!o.value&&(o.value=!0)},y=()=>t.default?O("span",null,[t.default()]):e.listType==="picture-card"?O("div",{class:`${n}-picture-card`},[O("div",{class:`${n}-picture-card-text`},[O(Cf,null,null)]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):e.draggable?O("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:o.value}]},[O("div",null,[O(Cf,null,null)]),O("div",{class:`${n}-drag-text`},[o.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):O(Yo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(k0,null,null)}),S=j(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>O("span",{ref:s,class:S.value,onClick:d,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:m},[O("input",jt({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 qUe=ke({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YUe=["stroke-width","stroke-linecap","stroke-linejoin"];function XUe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,YUe)}var $M=ze(qUe,[["render",XUe]]);const lve=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),ZUe=ke({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JUe=["stroke-width","stroke-linecap","stroke-linejoin"];function QUe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JUe)}var BM=ze(ZUe,[["render",QUe]]);const uve=Object.assign(BM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BM.name,BM)}}),X5=Symbol("ArcoUpload");var cve=ke({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Ae("upload-progress"),{t:n}=Bo(),r=Rn(X5,void 0),o=()=>{var s,l,c,d,h,p,m,g,y,S,k;return e.file.status==="error"?O("span",{class:[r?.iconCls,`${r?.iconCls}-upload`],onClick:()=>r?.onUpload(e.file)},[r?.showRetryButton&&((h=(l=r==null?void 0:(s=r.slots)["retry-icon"])==null?void 0:l.call(s))!=null?h:(d=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&d.call(c))||e.listType==="picture-card"?O(k0,null,null):n("upload.retry")]):e.file.status==="done"?O("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(m=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:m.call(p))!=null?S:(y=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:y.call(g))!=null?k:O(Xm,null,null)]):e.file.status==="init"?O(Xc,{content:n("upload.start")},{default:()=>{var C,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:_.call(E))!=null?D:O(uve,null,null)])]}}):r?.showCancelButton&&O(Xc,{content:n("upload.cancel")},{default:()=>{var C,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:_.call(E))!=null?D:O(lve,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=jUe(e.file.status);return O(F0e,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),o()])}});const eHe=ke({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tHe=["stroke-width","stroke-linecap","stroke-linejoin"];function nHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),L("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1)]),14,tHe)}var NM=ze(eHe,[["render",nHe]]);const dve=Object.assign(NM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NM.name,NM)}}),rHe=ke({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iHe=["stroke-width","stroke-linecap","stroke-linejoin"];function oHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1)]),14,iHe)}var FM=ze(rHe,[["render",oHe]]);const fve=Object.assign(FM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FM.name,FM)}}),sHe=ke({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aHe=["stroke-width","stroke-linecap","stroke-linejoin"];function lHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),L("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,aHe)}var jM=ze(sHe,[["render",lHe]]);const hve=Object.assign(jM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jM.name,jM)}}),uHe=ke({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cHe=["stroke-width","stroke-linecap","stroke-linejoin"];function dHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),L("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1)]),14,cHe)}var VM=ze(uHe,[["render",dHe]]);const pve=Object.assign(VM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VM.name,VM)}});var Ure=ke({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Ae("upload-list")}-item`,{t:r}=Bo(),o=Rn(X5,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const d=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(d)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(d)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(d)&&(c="audio")}return c.includes("image")?O(fve,null,null):c.includes("pdf")?O(dve,null,null):c.includes("audio")?O(pve,null,null):c.includes("video")?O(hve,null,null):O(q5,null,null)};return()=>{var s,l,c,d,h,p,m,g,y,S,k,C,x,E,_,T,D,P,M,$,I,N,F;return O("div",{class:[n,`${n}-${e.file.status}`]},[O("div",{class:`${n}-content`},[o?.listType==="picture"&&O("span",{class:`${n}-thumbnail`},[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",jt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null)]),O("div",{class:`${n}-name`},[o?.listType==="text"&&O("span",{class:`${n}-file-icon`},[(y=(g=(h=o==null?void 0:(d=o.slots)["file-icon"])==null?void 0:h.call(d,{fileItem:e.file}))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.fileIcon)==null?void 0:m.call(p,e.file))!=null?y:a()]),o?.showLink&&e.file.url?O("a",jt({class:`${n}-name-link`,target:"_blank",href:e.file.url},o?.download?{download:e.file.name}:void 0),[(_=(E=(k=o==null?void 0:(S=o.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?E:(x=(C=o?.customIcon)==null?void 0:C.fileName)==null?void 0:x.call(C,e.file))!=null?_:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(I=($=(D=o==null?void 0:(T=o.slots)["file-name"])==null?void 0:D.call(T,{fileItem:e.file}))!=null?$:(M=(P=o?.customIcon)==null?void 0:P.fileName)==null?void 0:M.call(P,e.file))!=null?I:e.file.name]),e.file.status==="error"&&O(Xc,{content:r("upload.error")},{default:()=>{var W,U,G,Z,oe,X;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(X=(oe=(U=o==null?void 0:(W=o.slots)["error-icon"])==null?void 0:U.call(W))!=null?oe:(Z=(G=o?.customIcon)==null?void 0:G.errorIcon)==null?void 0:Z.call(G))!=null?X:O(If,null,null)])]}})]),O(cve,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(Io,{onClick:()=>{var W;return(W=o?.onRemove)==null?void 0:W.call(o,e.file)}},{default:()=>{var W,U,G,Z,oe,X;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(X=(oe=(U=o==null?void 0:(W=o.slots)["remove-icon"])==null?void 0:U.call(W))!=null?oe:(Z=(G=o?.customIcon)==null?void 0:G.removeIcon)==null?void 0:Z.call(G))!=null?X:O(fc,null,null)])]}})]),(F=o==null?void 0:(N=o.slots)["extra-button"])==null?void 0:F.call(N,{fileItem:e.file})])}}}),Hre=ke({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Ae("upload-list")}-picture`,r=j(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=Rn(X5,void 0),a=()=>{var s,l,c,d,h,p,m,g,y,S,k,C,x,E,_,T,D,P,M,$,I,N,F,W,U,G,Z,oe,X;return e.file.status==="uploading"?O(cve,{file:e.file,listType:"picture-card"},null):O(Nt,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",jt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null),O("div",{class:`${n}-mask`},[e.file.status==="error"&&o?.showCancelButton&&O("div",{class:`${n}-error-tip`},[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(y=(g=(h=o==null?void 0:(d=o.slots)["error-icon"])==null?void 0:h.call(d))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:m.call(p))!=null?y:O(M5,null,null)])]),O("div",{class:`${n}-operation`},[e.file.status!=="error"&&o?.showPreviewButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-preview`],onClick:()=>o?.onPreview(e.file)},[(_=(E=(k=o==null?void 0:(S=o.slots)["preview-icon"])==null?void 0:k.call(S))!=null?E:(x=(C=o?.customIcon)==null?void 0:C.previewIcon)==null?void 0:x.call(C))!=null?_:O(b0,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(I=($=(D=o==null?void 0:(T=o.slots)["retry-icon"])==null?void 0:D.call(T))!=null?$:(M=(P=o?.customIcon)==null?void 0:P.retryIcon)==null?void 0:M.call(P))!=null?I:O(k0,null,null)]),!o?.disabled&&o?.showRemoveButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(Z=(G=(F=o==null?void 0:(N=o.slots)["remove-icon"])==null?void 0:F.call(N))!=null?G:(U=(W=o?.customIcon)==null?void 0:W.removeIcon)==null?void 0:U.call(W))!=null?Z:O(fc,null,null)]),(X=o==null?void 0:(oe=o.slots)["extra-button"])==null?void 0:X.call(oe,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),fHe=ke({name:"UploadList",components:{UploadListItem:Ure,UploadPictureItem:Hre},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Ae("upload"),r=j(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>Cn(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(Hre,{file:a,key:`item-${s}`},null):O(Ure,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>O(n3,{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=ke({name:"Upload",props:{fileList:{type:Array,default:void 0},defaultFileList:{type:Array,default:()=>[]},accept:String,action:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tip:String,headers:{type:Object},data:{type:[Object,Function]},name:{type:[String,Function]},withCredentials:{type:Boolean,default:!1},customRequest:{type:Function},limit:{type:Number,default:0},autoUpload:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showRetryButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showUploadButton:{type:[Boolean,Object],default:!0},showPreviewButton:{type:Boolean,default:!0},download:{type:Boolean,default:!1},showLink:{type:Boolean,default:!0},imageLoading:{type:String},listType:{type:String,default:"text"},responseUrlKey:{type:[String,Function]},customIcon:{type:Object},imagePreview:{type:Boolean,default:!1},onBeforeUpload:{type:Function},onBeforeRemove:{type:Function},onButtonClick:{type:Function}},emits:{"update:fileList":e=>!0,exceedLimit:(e,t)=>!0,change:(e,t)=>!0,progress:(e,t)=>!0,preview:e=>!0,success:e=>!0,error:e=>!0},setup(e,{emit:t,slots:n}){const{fileList:r,disabled:o,listType:a,customIcon:s,showRetryButton:l,showCancelButton:c,showRemoveButton:d,showPreviewButton:h,imageLoading:p,download:m,showLink:g}=en(e),y=Ae("upload"),{mergedDisabled:S,eventHandlers:k}=Lo({disabled:o}),C=fe([]),x=new Map,E=new Map,_=j(()=>e.limit>0&&C.value.length>=e.limit),T=re=>{x.clear();const Se=re?.map((xe,ve)=>{var be,Ve,Je;const Me=(be=xe.status)!=null?be:"done",je=qt({...xe,uid:(Ve=xe.uid)!=null?Ve:`${Date.now()}${ve}`,status:Me,percent:(Je=xe.percent)!=null?Je:["error","init"].indexOf(Me)>-1?0:1});return x.set(je.uid,je),je});C.value=Se??[]};T(e.defaultFileList),Rt(r,re=>{re&&T(re)},{immediate:!0,deep:!0});const D=re=>{var Se,xe;t("update:fileList",C.value),t("change",C.value,re),(xe=(Se=k.value)==null?void 0:Se.onChange)==null||xe.call(Se)},P=(re,Se)=>{for(const xe of C.value)if(xe.uid===re){xe.file=Se,D(xe);break}},M=re=>{const Se=(Je,Me)=>{const je=x.get(re.uid);je&&(je.status="uploading",je.percent=Je,t("progress",je,Me),D(je))},xe=Je=>{const Me=x.get(re.uid);Me&&(Me.status="done",Me.percent=1,Me.response=Je,e.responseUrlKey&&(Cn(e.responseUrlKey)?Me.url=e.responseUrlKey(Me):Je[e.responseUrlKey]&&(Me.url=Je[e.responseUrlKey])),E.delete(Me.uid),t("success",Me),D(Me))},ve=Je=>{const Me=x.get(re.uid);Me&&(Me.status="error",Me.percent=0,Me.response=Je,E.delete(Me.uid),t("error",Me),D(Me))},be={fileItem:re,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Se,onSuccess:xe,onError:ve};re.status="uploading",re.percent=0;const Ve=Cn(e.customRequest)?e.customRequest(be):VUe(be);E.set(re.uid,Ve),D(re)},$=re=>{var Se;const xe=E.get(re.uid);if(xe){(Se=xe.abort)==null||Se.call(xe),E.delete(re.uid);const ve=x.get(re.uid);ve&&(ve.status="error",ve.percent=0,D(ve))}},I=re=>{if(re){const Se=x.get(re.uid);Se&&M(Se)}else for(const Se of C.value)Se.status==="init"&&M(Se)},N=async(re,Se)=>{const xe=`${Date.now()}-${Se}`,ve=UUe(re)?URL.createObjectURL(re):void 0,be=qt({uid:xe,file:re,url:ve,name:re.name,status:"init",percent:0});x.set(xe,be),C.value=[...C.value,be],D(be),e.autoUpload&&M(be)},F=re=>{if(e.limit>0&&C.value.length+re.length>e.limit){t("exceedLimit",C.value,re);return}for(let Se=0;Se{ve&&N(El(ve)?xe:ve,Se)}).catch(ve=>{console.error(ve)}):N(xe,Se)}},W=re=>{C.value=C.value.filter(Se=>Se.uid!==re.uid),D(re)},U=re=>{Cn(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(re)).then(Se=>{Se&&W(re)}).catch(Se=>{console.error(Se)}):W(re)},G=re=>{if(e.imagePreview&&re.url){const Se=ne.value.indexOf(re.url);Se>-1&&(H.value=Se,X.value=!0)}t("preview",re)};ti(X5,qt({disabled:S,listType:a,iconCls:`${y}-icon`,showRemoveButton:d,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:m,customIcon:s,slots:n,onUpload:M,onAbort:$,onRemove:U,onPreview:G}));const Z=j(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),oe=()=>{const re=O(KUe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:F,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(mr(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:Z.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[re,O("div",{class:`${y}-tip`},[e.tip])]):re},X=fe(!1),H=fe(0),q=re=>{H.value=re},Q=re=>{X.value=re},ne=j(()=>C.value.filter(re=>!!re.url).map(re=>re.url));return{prefixCls:y,render:()=>e.showFileList?O("div",{class:[`${y}-wrapper`,`${y}-wrapper-type-${e.listType}`]},[e.imagePreview&&ne.value.length>0&&O(rb,{srcList:ne.value,visible:X.value,current:H.value,onChange:q,onVisibleChange:Q},null),e.listType!=="picture-card"&&e.showUploadButton&&oe(),O(fHe,{fileList:C.value,listType:e.listType},{"upload-button":oe,"upload-item":n["upload-item"]})]):e.showUploadButton&&oe(),innerSubmit:I,innerAbort:$,innerUpdateFile:P,innerUpload:F}},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 hHe=Object.assign(zM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+zM.name,zM)}});var UM=ke({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const r=Ae("overflow-list"),o=fe(),a=fe(),s=fe(),l={},c=[],d=fe(0),h=fe(0),p=j(()=>h.value>0),m=fe(0),g=j(()=>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"}),mn(()=>{s.value&&s.value.offsetWidth<1&&y()});const S=()=>{var k,C;const x=g.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:a,class:`${r}-overflow`,style:x},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:O(pH,null,{default:()=>[We("+"),h.value]})])};return()=>{var k,C;l.value=yf((k=n.default)==null?void 0:k.call(n)),d.value!==l.value.length&&(d.value=l.value.length,c.length=d.value);let x=l.value;h.value>0&&(x=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const E=h.value===0||g.value?x.length-1:x.length;for(let _=0;_0&&S(),x,!g.value&&h.value>0&&S(),O(_0,{onResize:y},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const pHe=Object.assign(UM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+UM.name,UM)}});var HM=ke({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=Ae("verification-code"),r=Ae("input"),o=fe([]),a=j(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=j(()=>e.masked?"password":"text"),l=j(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=j(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,x)=>Fne(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),m()},p=k=>o?.value[k].focus(),m=k=>{if(!(Fne(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(Cn(e.formatter)){const D=e.formatter(_,C+T,d.value.join(""));if(D===!1){C-=1;return}us(D)&&(_=D.charAt(0))}d.value[C+T]=_}}),h())},y=(k,C)=>{const x=C.code||C.key;x===Jhe.code&&!d.value[k]?(C.preventDefault(),d.value[Math.max(k-1,0)]="",h()):x===hDe.code&&k>0?(C.preventDefault(),p(k-1)):x===pDe.code&&d.value[k]&&k{let E=(C||"").trim().charAt(C.length-1);if(t("input",E,k,x),Cn(e.formatter)){const _=e.formatter(E,k,d.value.join(""));if(_===!1)return;us(_)&&(E=_.charAt(0))}d.value[k]=E,h()};return()=>O("div",{class:n},[d.value.map((k,C)=>{var x;return O(Nt,null,[O(O0,{key:C,ref:E=>o.value[C]=E,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>m(C),onInput:(E,_)=>S(C,E,_),onKeydown:E=>y(C,E),onPaste:E=>g(E,C)},null),(x=e.separator)==null?void 0:x.call(e,C,k)])})])}});const vHe=Object.assign(HM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+HM.name,HM)}}),mHe=typeof window<"u"?window:void 0;function gHe(e){var t;const n=et(e);return(t=n?.$el)!=null?t:n}function yHe(e){return s5()?(AU(e),!0):!1}function vve(e,t,n={}){const{window:r=mHe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Rt(()=>gHe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{l(),c()};return yHe(d),{isSupported:a,stop:d}}const WM="arco-theme",_x={Dark:"dark",Light:"light"},bHe=e=>{const t=fe(_x.Light),n=o=>{t.value=o},r=o=>o.getAttribute(WM)===_x.Dark?_x.Dark:_x.Light;return vve(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 _He(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function SHe(e){return Object.entries(e).map(([t,n])=>`${_He(t)}:${n}`).join(";")}function kHe(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}=en(e),h=Ae("watermark"),p=window.devicePixelRatio||1,m=l0(),g=fe(new Map),y=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontSize)!=null?q:16}),S=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontWeight)!=null?q:"normal"}),k=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontStyle)!=null?q:"normal"}),C=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontFamily)!=null?q:"sans-serif"}),x=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.textAlign)!=null?q:"center"}),E=j(()=>nr(e.content)?e.content:[e.content]),_=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.color)!=null?q:X.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),T=j(()=>{var H,q;return(q=(H=e.gap)==null?void 0:H[0])!=null?q:90}),D=j(()=>{var H,q;return(q=(H=e.gap)==null?void 0:H[1])!=null?q:90}),P=j(()=>T.value/2),M=j(()=>D.value/2),$=j(()=>{var H,q;return(q=(H=e.offset)==null?void 0:H[0])!=null?q:P.value}),I=j(()=>{var H,q;return(q=(H=e.offset)==null?void 0:H[1])!=null?q:M.value}),N=j(()=>{var H;const q=$.value-P.value,Q=I.value-M.value;return{position:"absolute",left:q>0?`${q}px`:0,top:Q>0?`${Q}px`:0,width:q>0?`calc(100% - ${q}px)`:"100%",height:Q>0?`calc(100% - ${Q}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${q>0?0:q}px ${Q>0?0:Q}px`,zIndex:(H=e.zIndex)!=null?H:6}}),F=j(()=>e.repeat&&e.staggered),W=(H,q)=>{var Q;if(m.value){const ne=g.value.get(m.value);ne&&(m.value.contains(ne)&&m.value.removeChild(ne),g.value.delete(m.value));const ae=document.createElement("div");ae.setAttribute("style",SHe({...N.value,backgroundImage:`url('${H}')`,backgroundSize:`${q}px`})),(Q=m.value)==null||Q.append(ae),g.value.set(m.value,ae)}},U=H=>{var q,Q;let ne=120,ae=28;if(!a.value&&H.measureText){H.font=`${y.value}px ${C.value}`;const re=E.value.map(Se=>H.measureText(Se).width);ne=Math.ceil(Math.max(...re)),ae=y.value*E.value.length+(E.value.length-1)*3}return[(q=r.value)!=null?q:ne,(Q=o.value)!=null?Q:ae]},G=()=>{var H;const q=document.createElement("canvas"),Q=q.getContext("2d");if(!Q)return;const[ne,ae]=U(Q),re=ne*p,Se=ae*p,xe=(T.value+ne)*p,ve=(D.value+ae)*p,be=T.value/2*p,Ve=D.value/2*p,Je=xe/2,Me=ve/2,je=F.value?2:1,ge=(T.value+ne)*je;q.width=xe*je,q.height=ve*je,Q.globalAlpha=l.value,Q.save(),Q.translate(Je,Me),Q.rotate(Math.PI/180*s.value),Q.translate(-Je,-Me);const _e=()=>{Q.restore(),F.value&&Q.drawImage(q,0,0,xe,ve,xe,ve,xe,ve),d.value&&kHe(q),W(q.toDataURL(),ge)};if(a.value){const Fe=new Image;Fe.onload=()=>{Q.drawImage(Fe,be,Ve,re,Se),_e()},Fe.crossOrigin="anonymous",Fe.referrerPolicy="no-referrer",Fe.src=a.value}else{const Fe=Number(y.value)*p;Q.font=`${k.value} normal ${S.value} ${Fe}px/${ae}px ${C.value}`,Q.fillStyle=_.value,Q.textAlign=x.value,Q.textBaseline="top",Q.translate(re/2,0),(H=E.value)==null||H.forEach((He,Qe)=>{Q.fillText(He??"",be,Ve+Qe*(Fe+3*p))}),_e()}},Z=H=>Array.from(g.value.values()).includes(H),oe=H=>{if(e.antiTamper)for(const q of H){const Q=Array.from(q.removedNodes).some(ae=>Z(ae)),ne=q.type==="attributes"&&Z(q.target);if(Q||ne){G();break}}},{theme:X}=bHe(G);return mn(()=>{G(),vve(m.value,oe,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Rt(e,G,{deep:!0,flush:"post"}),()=>{var H;return O("div",jt({ref:m,class:h,style:{position:"relative",overflow:"hidden"}},n),[(H=t.default)==null?void 0:H.call(t)])}}});const xHe=Object.assign(GM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+GM.name,GM)}});function CHe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Hi(e)}var wHe=ke({name:"TreeSelectPanel",components:{Tree:vV},props:{treeProps:{type:Object,default:()=>({})},selectedKeys:{type:Array},showCheckable:{type:Boolean},treeSlots:{type:Object,default:()=>({})},scrollbar:{type:[Boolean,Object],default:!0}},emits:["change"],setup(e,{emit:t}){const{showCheckable:n,selectedKeys:r,treeProps:o,scrollbar:a}=en(e),{displayScrollbar:s,scrollbarProps:l}=D5(a),c=Ae("tree-select"),d=fe(),h=j(()=>({...o.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(y,S)=>{var k,C;n.value?(C=(k=d.value)==null?void 0:k.toggleCheck)==null||C.call(k,y[0],S):t("change",y)},m=y=>{t("change",y)},g=()=>O(vV,jt({ref:d},h.value,{onSelect:p,onCheck:m}),e.treeSlots);return()=>{if(s.value){let y;return O(Rd,jt({class:`${c}-tree-wrapper`},l.value),CHe(y=g())?y:{default:()=>[y]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function GH(e){return mr(e)}function mve(e){return e!=null&&e!==""}function KH(e){return GH(e)?e.value:e}function EHe(e){return GH(e)?e.label:void 0}function Wre(e){const t=KH(e);return mve(t)}function Gre(e){return e.map(KH).filter(mve)}function THe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=en(e);function d(_){const T=(nr(_)?_:[_]).filter(Wre);return a?.value||s?.value?T:T.slice(0,1)}function h(_,T){const D=[],P=_?_.filter(Wre):[];if(P.length){const M=new Map;T?.forEach($=>{M.set($.value,$)}),P.forEach($=>{var I,N,F,W,U;const G=KH($),Z=M.get(G),oe=o.value.get(G);let X=null;const H=((I=c?.value)==null?void 0:I.title)||"title";if(!oe){const q=Cn(l?.value)?l?.value(G):l?.value;if(q===!1)return;mr(q)&&(X=q)}D.push({...GH($)?$:{},...Z||{},value:G,label:(U=(W=(F=(N=EHe($))!=null?N:oe?.title)!=null?F:Z?.label)!=null?W:X?.[H])!=null?U:G})})}return D}const p=fe(),m=fe();Os(()=>{var _;const T=r?.value!==void 0,D=d((_=r?.value)!=null?_:[]),P=Gre(D);m.value=T?h(P,h(D)):void 0,p.value=T?P:void 0});const g=d((t=n?.value)!=null?t:[]),y=Gre(g),S=h(y,h(g)),k=fe(y||[]),C=fe(S);Rt(k,()=>{C.value=h(k.value,S)}),Rt([p,m],([_,T])=>{k.value=_||[],C.value=T||[]});const x=j(()=>{var _;return(_=p.value)!=null?_:k.value}),E=j(()=>{var _;return(_=m.value)!=null?_:C.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function AHe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=en(e),s=j(()=>{var y;return((y=a.value)==null?void 0:y.key)||"key"}),l=(y,S)=>{const k=S[s.value];return!En(k)&&String(k).indexOf(y)>-1},c=j(()=>r?.value||l),d=fe(),h=j(()=>!!t.value),p=j(()=>!o?.value&&h.value&&d.value&&d.value.size===0),m=j(()=>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=e_((y,S)=>{const k=y.filter(x=>c.value(S,x.treeNodeData)),C=new Set;k.forEach(x=>{C.add(x.key),x.pathParentKeys.forEach(E=>{C.add(E)})}),d.value=C},100);return Os(()=>{o?.value?d.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:m}}function IHe(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 LHe=ke({name:"TreeSelect",components:{Trigger:ha,SelectView:F8,Panel:wHe,Empty:qh,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:m,data:g,fieldNames:y,disabled:S,labelInValue:k,filterTreeNode:C,disableFilter:x,dropdownStyle:E,treeProps:_,fallbackOption:T,selectable:D,dropdownClassName:P}=en(e),{mergedDisabled:M,eventHandlers:$}=Lo({disabled:S}),I=Ae("tree-select"),N=Rn(Ya,void 0),F=(a=(o=N==null?void 0:(r=N.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],W=j(()=>c.value||p.value),U=(lt,Ct)=>{var St;return D.value==="leaf"?Ct.isLeaf:Cn(D.value)?D.value(lt,Ct):(St=D.value)!=null?St:!1},G=j(()=>p.value?U:!1),Z=j(()=>mr(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:oe,key2TreeNode:X}=ove(qt({treeData:g,fieldNames:y,selectable:U,checkable:G})),{selectedKeys:H,selectedValue:q,setLocalSelectedKeys:Q,localSelectedKeys:ne,localSelectedValue:ae}=THe(qt({defaultValue:s,modelValue:l,key2TreeNode:X,multiple:c,treeCheckable:p,treeCheckStrictly:m,fallbackOption:T,fieldNames:y}));function re(lt){return p.value?fm(lt):cV(lt)}const Se=j(()=>En(q.value)?[]:W.value&&!M.value?q.value.map(lt=>{const Ct=X.value.get(lt.value);return{...lt,closable:!Ct||re(Ct)}}):q.value),xe=lt=>{Q(lt),Sn(()=>{var Ct,St;const Wt=(k.value?ae.value:ne.value)||[],Tt=W.value?Wt:Wt[0];t("update:modelValue",Tt),t("change",Tt),(St=(Ct=$.value)==null?void 0:Ct.onChange)==null||St.call(Ct)})},ve=fe(e.defaultInputValue),be=j(()=>{var lt;return(lt=e.inputValue)!=null?lt:ve.value}),Ve=lt=>{ve.value=lt,t("update:inputValue",lt),t("inputValueChange",lt)},Je=lt=>{lt!==be.value&&(ge(!0),Ve(lt),e.allowSearch&&t("search",lt))},[Me,je]=fa(h.value,qt({value:d})),ge=lt=>{lt!==Me.value&&(je(lt),t("popup-visible-change",lt),t("update:popupVisible",lt)),lt||Qe.value&&Qe.value.blur&&Qe.value.blur()},{isEmptyFilterResult:_e,filterTreeNode:Fe}=AHe(qt({searchValue:be,flattenTreeData:oe,filterMethod:C,disableFilter:x,fieldNames:y})),He=j(()=>!oe.value.length||_e.value),Qe=fe(),rt=j(()=>{var lt;return[E?.value||{},(lt=_?.value)!=null&<.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Qe,prefixCls:I,TreeSelectEmpty:F,selectedValue:q,selectedKeys:H,mergedDisabled:M,searchValue:be,panelVisible:Me,isEmpty:He,computedFilterTreeNode:Fe,isMultiple:W,selectViewValue:Se,computedDropdownStyle:rt,onSearchValueChange:Je,onSelectChange(lt){xe(lt),!Z.value&&be.value&&Ve(""),W.value||ge(!1)},onVisibleChange:ge,onInnerClear(){xe([]),t("clear")},pickSubCompSlots:IHe,isSelectable:U,isCheckable:G,onBlur:()=>{!Z.value&&be.value&&Ve("")},onItemRemove(lt){if(M.value)return;const Ct=X.value.get(lt);if(p.value&&Ct){if(re(Ct)){const[St]=hV({node:Ct,checked:!1,checkedKeys:H.value,indeterminateKeys:[],checkStrictly:m.value});xe(St)}}else{const St=H.value.filter(Wt=>Wt!==lt);xe(St)}}}}});function DHe(e,t,n,r,o,a){const s=De("SelectView"),l=De("Spin"),c=De("Panel"),d=De("Trigger");return z(),Ye(d,jt({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[L("div",{class:ue([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Ke(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(z(),ee("div",{key:0,class:ue(`${e.prefixCls}-header`)},[pt(e.$slots,"header")],2)):Pe("v-if",!0),e.loading?pt(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?pt(e.$slots,"empty",{key:2},()=>[(z(),Ye(Wa(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(z(),Ye(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(),ee("div",{key:4,class:ue(`${e.prefixCls}-footer`)},[pt(e.$slots,"footer")],2)):Pe("v-if",!0)],6)]),default:de(()=>[pt(e.$slots,"trigger",{},()=>[O(s,jt({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}),Eo({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[pt(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[pt(e.$slots,"label",qi(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=ze(LHe,[["render",DHe]]);const PHe=Object.assign(KM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+KM.name,KM)}}),mV={Button:Yo,Link:Xpe,Typography:FUe,Divider:t$e,Grid:T4,Layout:SNe,Space:vVe,Avatar:IPe,Badge:FPe,Calendar:kpe,Card:lMe,Carousel:kMe,Collapse:jMe,Comment:y9e,ColorPicker:d9e,Descriptions:e$e,Empty:qh,Image:XBe,Scrollbar:Rd,List:D0e,Popover:dH,Statistic:EVe,Table:hze,Tabs:Eze,Tag:pH,Timeline:Oze,Tooltip:Xc,AutoComplete:bPe,Cascader:DMe,Checkbox:Id,DatePicker:XOe,Form:J$e,Input:O0,InputNumber:Z_,InputTag:_pe,Mention:GNe,Radio:Dy,Rate:Pje,Select:t_,Slider:pVe,Switch:OVe,Textarea:P0e,TimePicker:Dze,Transfer:Wze,Tree:vV,Upload:hHe,TreeSelect:PHe,Alert:Yhe,Drawer:rV,Message:xt,Modal:Du,Notification:lV,Popconfirm:UFe,Progress:F0e,Result:zje,Spin:Pd,Skeleton:Yje,Breadcrumb:cRe,Dropdown:dpe,Menu:_Fe,PageHeader:jFe,Pagination:DH,Steps:DVe,Affix:m7e,Anchor:aDe,BackTop:OPe,ConfigProvider:S9e,ResizeBox:A0e,Trigger:ha,Split:bVe,Icon:rBe,OverflowList:pHe,Watermark:xHe,VerificationCode:vHe},RHe=(e,t)=>{for(const n of Object.keys(mV))e.use(mV[n],t)},MHe={...mV,Alter:Yhe,AnchorLink:KC,AvatarGroup:ew,BreadcrumbItem:Q4,ButtonGroup:J4,Calendar:kpe,CardMeta:mw,CardGrid:gw,CarouselItem:yw,CascaderPanel:bw,CheckboxGroup:JC,CollapseItem:_w,DescriptionsItem:Tw,WeekPicker:kw,MonthPicker:xw,YearPicker:Cw,QuarterPicker:ww,RangePicker:Ew,Doption:ny,Dgroup:nw,Dsubmenu:rw,DropdownButton:iw,FormItem:Lw,Row:tb,Col:nb,GridItem:Iw,ImagePreview:ry,ImagePreviewAction:K8,ImagePreviewGroup:rb,InputGroup:ty,InputSearch:qC,InputPassword:YC,LayoutHeader:Pw,LayoutContent:Rw,LayoutFooter:Mw,LayoutSider:Ow,ListItem:$w,ListItemMeta:Bw,MenuItem:Nw,MenuItemGroup:Fw,SubMenu:ib,RadioGroup:vw,Option:lm,Optgroup:eb,SkeletonLine:zw,SkeletonShape:Uw,Countdown:Hw,Step:Ww,Thead:sb,Td:t0,Th:lb,Tr:kh,Tbody:ab,TableColumn:Gw,TabPane:Kw,TimelineItem:oy,TypographyParagraph:qw,TypographyTitle:Yw,TypographyText:Xw,install:RHe,addI18nMessages:BLe,useLocale:NLe,getLocale:FLe,useFormItem:Lo},OHe=ke({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$He=["stroke-width","stroke-linecap","stroke-linejoin"];function BHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,$He)}var qM=ze(OHe,[["render",BHe]]);const gV=Object.assign(qM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qM.name,qM)}}),NHe=ke({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FHe=["stroke-width","stroke-linecap","stroke-linejoin"];function jHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),L("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M22 6h4v26h-4z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,FHe)}var YM=ze(NHe,[["render",jHe]]);const VHe=Object.assign(YM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YM.name,YM)}}),zHe=ke({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UHe=["stroke-width","stroke-linecap","stroke-linejoin"];function HHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,UHe)}var XM=ze(zHe,[["render",HHe]]);const qH=Object.assign(XM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XM.name,XM)}}),WHe=ke({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GHe=["stroke-width","stroke-linecap","stroke-linejoin"];function KHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,GHe)}var ZM=ze(WHe,[["render",KHe]]);const qHe=Object.assign(ZM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZM.name,ZM)}}),YHe=ke({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XHe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZHe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),L("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M26 42h-4V16h4z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,XHe)}var JM=ze(YHe,[["render",ZHe]]);const JHe=Object.assign(JM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JM.name,JM)}}),QHe=ke({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eWe=["stroke-width","stroke-linecap","stroke-linejoin"];function tWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,eWe)}var QM=ze(QHe,[["render",tWe]]);const yV=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),nWe=ke({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rWe=["stroke-width","stroke-linecap","stroke-linejoin"];function iWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1)]),14,rWe)}var e9=ze(nWe,[["render",iWe]]);const oWe=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),sWe=ke({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aWe=["stroke-width","stroke-linecap","stroke-linejoin"];function lWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1)]),14,aWe)}var t9=ze(sWe,[["render",lWe]]);const uWe=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),cWe=ke({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 fWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),L("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,dWe)}var n9=ze(cWe,[["render",fWe]]);const hWe=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),pWe=ke({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vWe=["stroke-width","stroke-linecap","stroke-linejoin"];function mWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1)]),14,vWe)}var r9=ze(pWe,[["render",mWe]]);const gve=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),gWe=ke({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yWe=["stroke-width","stroke-linecap","stroke-linejoin"];function bWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,yWe)}var i9=ze(gWe,[["render",bWe]]);const _We=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),SWe=ke({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kWe=["stroke-width","stroke-linecap","stroke-linejoin"];function xWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,kWe)}var o9=ze(SWe,[["render",xWe]]);const CWe=Object.assign(o9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o9.name,o9)}}),wWe=ke({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EWe=["stroke-width","stroke-linecap","stroke-linejoin"];function TWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,EWe)}var s9=ze(wWe,[["render",TWe]]);const AWe=Object.assign(s9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s9.name,s9)}}),IWe=ke({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 DWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,LWe)}var a9=ze(IWe,[["render",DWe]]);const PWe=Object.assign(a9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a9.name,a9)}}),RWe=ke({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 OWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1)]),14,MWe)}var l9=ze(RWe,[["render",OWe]]);const yve=Object.assign(l9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l9.name,l9)}}),$We=ke({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 NWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),L("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BWe)}var u9=ze($We,[["render",NWe]]);const FWe=Object.assign(u9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u9.name,u9)}}),jWe=ke({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VWe=["stroke-width","stroke-linecap","stroke-linejoin"];function zWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),L("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VWe)}var c9=ze(jWe,[["render",zWe]]);const UWe=Object.assign(c9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c9.name,c9)}}),HWe=ke({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WWe=["stroke-width","stroke-linecap","stroke-linejoin"];function GWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),L("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WWe)}var d9=ze(HWe,[["render",GWe]]);const KWe=Object.assign(d9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d9.name,d9)}}),qWe=ke({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YWe=["stroke-width","stroke-linecap","stroke-linejoin"];function XWe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,YWe)}var f9=ze(qWe,[["render",XWe]]);const ZWe=Object.assign(f9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f9.name,f9)}}),JWe=ke({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QWe=["stroke-width","stroke-linecap","stroke-linejoin"];function eGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QWe)}var h9=ze(JWe,[["render",eGe]]);const tGe=Object.assign(h9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h9.name,h9)}}),nGe=ke({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 iGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rGe)}var p9=ze(nGe,[["render",iGe]]);const oGe=Object.assign(p9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p9.name,p9)}}),sGe=ke({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aGe=["stroke-width","stroke-linecap","stroke-linejoin"];function lGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,aGe)}var v9=ze(sGe,[["render",lGe]]);const uGe=Object.assign(v9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v9.name,v9)}}),cGe=ke({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dGe=["stroke-width","stroke-linecap","stroke-linejoin"];function fGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1)]),14,dGe)}var m9=ze(cGe,[["render",fGe]]);const hGe=Object.assign(m9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m9.name,m9)}}),pGe=ke({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 mGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,vGe)}var g9=ze(pGe,[["render",mGe]]);const nc=Object.assign(g9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g9.name,g9)}}),gGe=ke({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 bGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1)]),14,yGe)}var y9=ze(gGe,[["render",bGe]]);const _Ge=Object.assign(y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y9.name,y9)}}),SGe=ke({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kGe=["stroke-width","stroke-linecap","stroke-linejoin"];function xGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,kGe)}var b9=ze(SGe,[["render",xGe]]);const CGe=Object.assign(b9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b9.name,b9)}}),wGe=ke({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1)]),14,EGe)}var _9=ze(wGe,[["render",TGe]]);const _d=Object.assign(_9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_9.name,_9)}}),AGe=ke({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 LGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,IGe)}var S9=ze(AGe,[["render",LGe]]);const Pc=Object.assign(S9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S9.name,S9)}}),DGe=ke({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PGe=["stroke-width","stroke-linecap","stroke-linejoin"];function RGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,PGe)}var k9=ze(DGe,[["render",RGe]]);const MGe=Object.assign(k9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k9.name,k9)}}),OGe=ke({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ge=["stroke-width","stroke-linecap","stroke-linejoin"];function BGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,$Ge)}var x9=ze(OGe,[["render",BGe]]);const NGe=Object.assign(x9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x9.name,x9)}}),FGe=ke({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 VGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1)]),14,jGe)}var C9=ze(FGe,[["render",VGe]]);const zGe=Object.assign(C9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C9.name,C9)}}),UGe=ke({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HGe=["stroke-width","stroke-linecap","stroke-linejoin"];function WGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1)]),14,HGe)}var w9=ze(UGe,[["render",WGe]]);const GGe=Object.assign(w9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w9.name,w9)}}),KGe=ke({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qGe=["stroke-width","stroke-linecap","stroke-linejoin"];function YGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qGe)}var E9=ze(KGe,[["render",YGe]]);const YH=Object.assign(E9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E9.name,E9)}}),XGe=ke({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZGe=["stroke-width","stroke-linecap","stroke-linejoin"];function JGe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ZGe)}var T9=ze(XGe,[["render",JGe]]);const QGe=Object.assign(T9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T9.name,T9)}}),eKe=ke({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tKe=["stroke-width","stroke-linecap","stroke-linejoin"];function nKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1)]),14,tKe)}var A9=ze(eKe,[["render",nKe]]);const rKe=Object.assign(A9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A9.name,A9)}}),iKe=ke({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oKe=["stroke-width","stroke-linecap","stroke-linejoin"];function sKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1)]),14,oKe)}var I9=ze(iKe,[["render",sKe]]);const aKe=Object.assign(I9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I9.name,I9)}}),lKe=ke({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 cKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1)]),14,uKe)}var L9=ze(lKe,[["render",cKe]]);const dKe=Object.assign(L9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L9.name,L9)}}),fKe=ke({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hKe=["stroke-width","stroke-linecap","stroke-linejoin"];function pKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1)]),14,hKe)}var D9=ze(fKe,[["render",pKe]]);const bve=Object.assign(D9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D9.name,D9)}}),vKe=ke({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 gKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1)]),14,mKe)}var P9=ze(vKe,[["render",gKe]]);const yKe=Object.assign(P9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P9.name,P9)}}),bKe=ke({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Ke=["stroke-width","stroke-linecap","stroke-linejoin"];function SKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1)]),14,_Ke)}var R9=ze(bKe,[["render",SKe]]);const x0=Object.assign(R9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R9.name,R9)}}),kKe=ke({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xKe=["stroke-width","stroke-linecap","stroke-linejoin"];function CKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1)]),14,xKe)}var M9=ze(kKe,[["render",CKe]]);const wKe=Object.assign(M9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M9.name,M9)}}),EKe=ke({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TKe=["stroke-width","stroke-linecap","stroke-linejoin"];function AKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,TKe)}var O9=ze(EKe,[["render",AKe]]);const hm=Object.assign(O9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O9.name,O9)}}),IKe=ke({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LKe=["stroke-width","stroke-linecap","stroke-linejoin"];function DKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,LKe)}var $9=ze(IKe,[["render",DKe]]);const Z5=Object.assign($9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$9.name,$9)}}),PKe=ke({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RKe=["stroke-width","stroke-linecap","stroke-linejoin"];function MKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1)]),14,RKe)}var B9=ze(PKe,[["render",MKe]]);const J5=Object.assign(B9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B9.name,B9)}}),OKe=ke({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ke=["stroke-width","stroke-linecap","stroke-linejoin"];function BKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1)]),14,$Ke)}var N9=ze(OKe,[["render",BKe]]);const Ry=Object.assign(N9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N9.name,N9)}}),NKe=ke({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FKe=["stroke-width","stroke-linecap","stroke-linejoin"];function jKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),L("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,FKe)}var F9=ze(NKe,[["render",jKe]]);const u3=Object.assign(F9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F9.name,F9)}}),VKe=ke({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zKe=["stroke-width","stroke-linecap","stroke-linejoin"];function UKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,zKe)}var j9=ze(VKe,[["render",UKe]]);const Q5=Object.assign(j9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j9.name,j9)}}),HKe=ke({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WKe=["stroke-width","stroke-linecap","stroke-linejoin"];function GKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1)]),14,WKe)}var V9=ze(HKe,[["render",GKe]]);const _ve=Object.assign(V9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V9.name,V9)}}),KKe=ke({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qKe=["stroke-width","stroke-linecap","stroke-linejoin"];function YKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,qKe)}var z9=ze(KKe,[["render",YKe]]);const XH=Object.assign(z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z9.name,z9)}}),XKe=ke({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZKe=["stroke-width","stroke-linecap","stroke-linejoin"];function JKe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1)]),14,ZKe)}var U9=ze(XKe,[["render",JKe]]);const QKe=Object.assign(U9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U9.name,U9)}}),eqe=ke({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tqe=["stroke-width","stroke-linecap","stroke-linejoin"];function nqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1)]),14,tqe)}var H9=ze(eqe,[["render",nqe]]);const rqe=Object.assign(H9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H9.name,H9)}}),iqe=ke({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oqe=["stroke-width","stroke-linecap","stroke-linejoin"];function sqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,oqe)}var W9=ze(iqe,[["render",sqe]]);const aqe=Object.assign(W9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W9.name,W9)}}),lqe=ke({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function cqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1)]),14,uqe)}var G9=ze(lqe,[["render",cqe]]);const dqe=Object.assign(G9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G9.name,G9)}}),fqe=ke({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hqe=["stroke-width","stroke-linecap","stroke-linejoin"];function pqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1)]),14,hqe)}var K9=ze(fqe,[["render",pqe]]);const wd=Object.assign(K9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K9.name,K9)}}),vqe=ke({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mqe=["stroke-width","stroke-linecap","stroke-linejoin"];function gqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1)]),14,mqe)}var q9=ze(vqe,[["render",gqe]]);const yqe=Object.assign(q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q9.name,q9)}}),bqe=ke({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Sqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1)]),14,_qe)}var Y9=ze(bqe,[["render",Sqe]]);const jp=Object.assign(Y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y9.name,Y9)}}),kqe=ke({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,xqe)}var X9=ze(kqe,[["render",Cqe]]);const wqe=Object.assign(X9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X9.name,X9)}}),Eqe=ke({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1)]),14,Tqe)}var Z9=ze(Eqe,[["render",Aqe]]);const Iqe=Object.assign(Z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z9.name,Z9)}}),Lqe=ke({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,Dqe)}var J9=ze(Lqe,[["render",Pqe]]);const Rqe=Object.assign(J9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J9.name,J9)}}),Mqe=ke({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),L("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,Oqe)}var Q9=ze(Mqe,[["render",$qe]]);const Lf=Object.assign(Q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q9.name,Q9)}}),Bqe=ke({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Fqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1)]),14,Nqe)}var eO=ze(Bqe,[["render",Fqe]]);const jqe=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),Vqe=ke({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Uqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1)]),14,zqe)}var tO=ze(Vqe,[["render",Uqe]]);const Hqe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),Wqe=ke({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Kqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1)]),14,Gqe)}var nO=ze(Wqe,[["render",Kqe]]);const qqe=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),Yqe=ke({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Zqe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1)]),14,Xqe)}var rO=ze(Yqe,[["render",Zqe]]);const eA=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),Jqe=ke({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Qqe=["stroke-width","stroke-linecap","stroke-linejoin"];function eYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1)]),14,Qqe)}var iO=ze(Jqe,[["render",eYe]]);const tYe=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),nYe=ke({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rYe=["stroke-width","stroke-linecap","stroke-linejoin"];function iYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1)]),14,rYe)}var oO=ze(nYe,[["render",iYe]]);const oYe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),sYe=ke({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 lYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1)]),14,aYe)}var sO=ze(sYe,[["render",lYe]]);const uYe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),cYe=ke({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dYe=["stroke-width","stroke-linecap","stroke-linejoin"];function fYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1)]),14,dYe)}var aO=ze(cYe,[["render",fYe]]);const hYe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),pYe=ke({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vYe=["stroke-width","stroke-linecap","stroke-linejoin"];function mYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1)]),14,vYe)}var lO=ze(pYe,[["render",mYe]]);const gYe=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),yYe=ke({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bYe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ye(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,bYe)}var uO=ze(yYe,[["render",_Ye]]);const SYe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),kYe=ke({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xYe=["stroke-width","stroke-linecap","stroke-linejoin"];function CYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,xYe)}var cO=ze(kYe,[["render",CYe]]);const wYe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),EYe=ke({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TYe=["stroke-width","stroke-linecap","stroke-linejoin"];function AYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,TYe)}var dO=ze(EYe,[["render",AYe]]);const IYe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),LYe=ke({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DYe=["stroke-width","stroke-linecap","stroke-linejoin"];function PYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1)]),14,DYe)}var fO=ze(LYe,[["render",PYe]]);const RYe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),MYe=ke({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OYe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ye(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,OYe)}var hO=ze(MYe,[["render",$Ye]]);const Sve=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),BYe=ke({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NYe=["stroke-width","stroke-linecap","stroke-linejoin"];function FYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1)]),14,NYe)}var pO=ze(BYe,[["render",FYe]]);const jYe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),VYe=ke({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 UYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1)]),14,zYe)}var vO=ze(VYe,[["render",UYe]]);const HYe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),WYe=ke({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GYe=["stroke-width","stroke-linecap","stroke-linejoin"];function KYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1)]),14,GYe)}var mO=ze(WYe,[["render",KYe]]);const qYe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),YYe=ke({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XYe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZYe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1)]),14,XYe)}var gO=ze(YYe,[["render",ZYe]]);const JYe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),QYe=ke({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eXe=["stroke-width","stroke-linecap","stroke-linejoin"];function tXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1)]),14,eXe)}var yO=ze(QYe,[["render",tXe]]);const kve=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),nXe=ke({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rXe=["stroke-width","stroke-linecap","stroke-linejoin"];function iXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1)]),14,rXe)}var bO=ze(nXe,[["render",iXe]]);const oXe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),sXe=ke({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 lXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,aXe)}var _O=ze(sXe,[["render",lXe]]);const uXe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),cXe=ke({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dXe=["stroke-width","stroke-linecap","stroke-linejoin"];function fXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1)]),14,dXe)}var SO=ze(cXe,[["render",fXe]]);const hXe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),pXe=ke({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vXe=["stroke-width","stroke-linecap","stroke-linejoin"];function mXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1)]),14,vXe)}var kO=ze(pXe,[["render",mXe]]);const gXe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),yXe=ke({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bXe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Xe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,bXe)}var xO=ze(yXe,[["render",_Xe]]);const SXe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),kXe=ke({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xXe=["stroke-width","stroke-linecap","stroke-linejoin"];function CXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1)]),14,xXe)}var CO=ze(kXe,[["render",CXe]]);const wXe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),EXe=ke({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 AXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1)]),14,TXe)}var wO=ze(EXe,[["render",AXe]]);const IXe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),LXe=ke({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DXe=["stroke-width","stroke-linecap","stroke-linejoin"];function PXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,DXe)}var EO=ze(LXe,[["render",PXe]]);const RXe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),MXe=ke({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OXe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Xe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1)]),14,OXe)}var TO=ze(MXe,[["render",$Xe]]);const BXe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),NXe=ke({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 jXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,FXe)}var AO=ze(NXe,[["render",jXe]]);const VXe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),zXe=ke({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UXe=["stroke-width","stroke-linecap","stroke-linejoin"];function HXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),L("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,UXe)}var IO=ze(zXe,[["render",HXe]]);const WXe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),GXe=ke({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KXe=["stroke-width","stroke-linecap","stroke-linejoin"];function qXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1)]),14,KXe)}var LO=ze(GXe,[["render",qXe]]);const YXe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),XXe=ke({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZXe=["stroke-width","stroke-linecap","stroke-linejoin"];function JXe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),L("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,ZXe)}var DO=ze(XXe,[["render",JXe]]);const QXe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),eZe=ke({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tZe=["stroke-width","stroke-linecap","stroke-linejoin"];function nZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1)]),14,tZe)}var PO=ze(eZe,[["render",nZe]]);const rZe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),iZe=ke({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oZe=["stroke-width","stroke-linecap","stroke-linejoin"];function sZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1)]),14,oZe)}var RO=ze(iZe,[["render",sZe]]);const aZe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),lZe=ke({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uZe=["stroke-width","stroke-linecap","stroke-linejoin"];function cZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1)]),14,uZe)}var MO=ze(lZe,[["render",cZe]]);const dZe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),fZe=ke({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 pZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1)]),14,hZe)}var OO=ze(fZe,[["render",pZe]]);const xve=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),vZe=ke({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mZe=["stroke-width","stroke-linecap","stroke-linejoin"];function gZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1)]),14,mZe)}var $O=ze(vZe,[["render",gZe]]);const Cve=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),yZe=ke({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bZe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ze(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,bZe)}var BO=ze(yZe,[["render",_Ze]]);const SZe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),kZe=ke({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xZe=["stroke-width","stroke-linecap","stroke-linejoin"];function CZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1)]),14,xZe)}var NO=ze(kZe,[["render",CZe]]);const wZe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),EZe=ke({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TZe=["stroke-width","stroke-linecap","stroke-linejoin"];function AZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,TZe)}var FO=ze(EZe,[["render",AZe]]);const IZe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),LZe=ke({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DZe=["stroke-width","stroke-linecap","stroke-linejoin"];function PZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1)]),14,DZe)}var jO=ze(LZe,[["render",PZe]]);const RZe=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),MZe=ke({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OZe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ze(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,OZe)}var VO=ze(MZe,[["render",$Ze]]);const BZe=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),NZe=ke({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FZe=["stroke-width","stroke-linecap","stroke-linejoin"];function jZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,FZe)}var zO=ze(NZe,[["render",jZe]]);const VZe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),zZe=ke({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UZe=["stroke-width","stroke-linecap","stroke-linejoin"];function HZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1)]),14,UZe)}var UO=ze(zZe,[["render",HZe]]);const WZe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),GZe=ke({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KZe=["stroke-width","stroke-linecap","stroke-linejoin"];function qZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1)]),14,KZe)}var HO=ze(GZe,[["render",qZe]]);const YZe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),XZe=ke({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZZe=["stroke-width","stroke-linecap","stroke-linejoin"];function JZe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ZZe)}var WO=ze(XZe,[["render",JZe]]);const QZe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),eJe=ke({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,tJe)}var GO=ze(eJe,[["render",nJe]]);const rJe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),iJe=ke({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 sJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,oJe)}var KO=ze(iJe,[["render",sJe]]);const aJe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),lJe=ke({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uJe=["stroke-width","stroke-linecap","stroke-linejoin"];function cJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1)]),14,uJe)}var qO=ze(lJe,[["render",cJe]]);const dJe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),fJe=ke({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hJe=["stroke-width","stroke-linecap","stroke-linejoin"];function pJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1)]),14,hJe)}var YO=ze(fJe,[["render",pJe]]);const vJe=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),mJe=ke({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 yJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1)]),14,gJe)}var XO=ze(mJe,[["render",yJe]]);const ZH=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),bJe=ke({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 SJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1)]),14,_Je)}var ZO=ze(bJe,[["render",SJe]]);const i_=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),kJe=ke({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 CJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1)]),14,xJe)}var JO=ze(kJe,[["render",CJe]]);const wJe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),EJe=ke({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 AJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1)]),14,TJe)}var QO=ze(EJe,[["render",AJe]]);const IJe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),LJe=ke({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),L("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,DJe)}var e$=ze(LJe,[["render",PJe]]);const RJe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),MJe=ke({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1)]),14,OJe)}var t$=ze(MJe,[["render",$Je]]);const qa=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),BJe=ke({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 FJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),L("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,NJe)}var n$=ze(BJe,[["render",FJe]]);const My=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),jJe=ke({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VJe=["stroke-width","stroke-linecap","stroke-linejoin"];function zJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),L("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1)]),14,VJe)}var r$=ze(jJe,[["render",zJe]]);const UJe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),HJe=ke({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 GJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),L("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,WJe)}var i$=ze(HJe,[["render",GJe]]);const KJe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),qJe=ke({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 XJe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),L("path",{d:"M38 6v36"},null,-1)]),14,YJe)}var o$=ze(qJe,[["render",XJe]]);const ZJe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),JJe=ke({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QJe=["stroke-width","stroke-linecap","stroke-linejoin"];function eQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),L("path",{d:"M10 6v36"},null,-1)]),14,QJe)}var s$=ze(JJe,[["render",eQe]]);const tQe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),nQe=ke({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rQe=["stroke-width","stroke-linecap","stroke-linejoin"];function iQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),L("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1)]),14,rQe)}var a$=ze(nQe,[["render",iQe]]);const wve=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),oQe=ke({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),L("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),L("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),L("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,sQe)}var l$=ze(oQe,[["render",aQe]]);const lQe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),uQe=ke({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),L("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),L("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1)]),14,cQe)}var u$=ze(uQe,[["render",dQe]]);const fQe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),hQe=ke({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.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,pQe)}var c$=ze(hQe,[["render",vQe]]);const mQe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),gQe=ke({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yQe=["stroke-width","stroke-linecap","stroke-linejoin"];function bQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1)]),14,yQe)}var d$=ze(gQe,[["render",bQe]]);const _Qe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),SQe=ke({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 xQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,kQe)}var f$=ze(SQe,[["render",xQe]]);const CQe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),wQe=ke({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1)]),14,EQe)}var h$=ze(wQe,[["render",TQe]]);const AQe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),IQe=ke({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LQe=["stroke-width","stroke-linecap","stroke-linejoin"];function DQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,LQe)}var p$=ze(IQe,[["render",DQe]]);const PQe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),RQe=ke({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MQe=["stroke-width","stroke-linecap","stroke-linejoin"];function OQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1)]),14,MQe)}var v$=ze(RQe,[["render",OQe]]);const $Qe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),BQe=ke({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 FQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1)]),14,NQe)}var m$=ze(BQe,[["render",FQe]]);const jQe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),VQe=ke({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 UQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zQe)}var g$=ze(VQe,[["render",UQe]]);const HQe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),WQe=ke({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 KQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1)]),14,GQe)}var y$=ze(WQe,[["render",KQe]]);const qQe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),YQe=ke({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 ZQe(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,XQe)}var b$=ze(YQe,[["render",ZQe]]);const JQe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),QQe=ke({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,eet)}var _$=ze(QQe,[["render",tet]]);const net=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),ret=ke({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iet=["stroke-width","stroke-linecap","stroke-linejoin"];function oet(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1)]),14,iet)}var S$=ze(ret,[["render",oet]]);const set=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),aet=ke({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uet=["stroke-width","stroke-linecap","stroke-linejoin"];function cet(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,uet)}var k$=ze(aet,[["render",cet]]);const Eve=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),det=ke({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fet=["stroke-width","stroke-linecap","stroke-linejoin"];function het(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fet)}var x$=ze(det,[["render",het]]);const pet=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),vet=ke({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 get(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1)]),14,met)}var C$=ze(vet,[["render",get]]);const yet=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),bet=ke({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_et=["stroke-width","stroke-linecap","stroke-linejoin"];function ket(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1)]),14,_et)}var w$=ze(bet,[["render",ket]]);const xet=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),Cet=ke({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wet=["stroke-width","stroke-linecap","stroke-linejoin"];function Eet(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1)]),14,wet)}var E$=ze(Cet,[["render",Eet]]);const Tet=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),Aet=ke({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Iet=["stroke-width","stroke-linecap","stroke-linejoin"];function Let(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Iet)}var T$=ze(Aet,[["render",Let]]);const Det=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Pet=ke({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ret=["stroke-width","stroke-linecap","stroke-linejoin"];function Met(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Ret)}var A$=ze(Pet,[["render",Met]]);const Oet=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),$et=ke({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Bet=["stroke-width","stroke-linecap","stroke-linejoin"];function Net(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Bet)}var I$=ze($et,[["render",Net]]);const Fet=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),jet=ke({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Vet=["stroke-width","stroke-linecap","stroke-linejoin"];function zet(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Vet)}var L$=ze(jet,[["render",zet]]);const Uet=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),Het=ke({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Wet=["stroke-width","stroke-linecap","stroke-linejoin"];function Get(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Wet)}var D$=ze(Het,[["render",Get]]);const Ket=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),qet=ke({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Yet=["stroke-width","stroke-linecap","stroke-linejoin"];function Xet(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Yet)}var P$=ze(qet,[["render",Xet]]);const Zet=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),Jet=ke({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Qet=["stroke-width","stroke-linecap","stroke-linejoin"];function ett(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Qet)}var R$=ze(Jet,[["render",ett]]);const ttt=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),ntt=ke({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 itt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1)]),14,rtt)}var M$=ze(ntt,[["render",itt]]);const ott=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),stt=ke({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),att=["stroke-width","stroke-linecap","stroke-linejoin"];function ltt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,att)}var O$=ze(stt,[["render",ltt]]);const utt=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),ctt=ke({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dtt=["stroke-width","stroke-linecap","stroke-linejoin"];function ftt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,dtt)}var $$=ze(ctt,[["render",ftt]]);const Tve=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),htt=ke({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ptt=["stroke-width","stroke-linecap","stroke-linejoin"];function vtt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),L("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1)]),14,ptt)}var B$=ze(htt,[["render",vtt]]);const mtt=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),gtt=ke({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ytt=["stroke-width","stroke-linecap","stroke-linejoin"];function btt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,ytt)}var N$=ze(gtt,[["render",btt]]);const Ave=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),_tt=ke({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Stt=["stroke-width","stroke-linecap","stroke-linejoin"];function ktt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1)]),14,Stt)}var F$=ze(_tt,[["render",ktt]]);const tA=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),xtt=ke({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ctt=["stroke-width","stroke-linecap","stroke-linejoin"];function wtt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M16 16h16M16 24h8"},null,-1),L("path",{d:"M24 41H8V6h32v17"},null,-1),L("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,Ctt)}var j$=ze(xtt,[["render",wtt]]);const Ett=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),Ttt=ke({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Att=["stroke-width","stroke-linecap","stroke-linejoin"];function Itt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1)]),14,Att)}var V$=ze(Ttt,[["render",Itt]]);const Ltt=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),Dtt=ke({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ptt=["stroke-width","stroke-linecap","stroke-linejoin"];function Rtt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1)]),14,Ptt)}var z$=ze(Dtt,[["render",Rtt]]);const Oy=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),Mtt=ke({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ott=["stroke-width","stroke-linecap","stroke-linejoin"];function $tt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1)]),14,Ott)}var U$=ze(Mtt,[["render",$tt]]);const Btt=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),Ntt=ke({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 jtt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Ftt)}var H$=ze(Ntt,[["render",jtt]]);const Vtt=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),ztt=ke({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Utt=["stroke-width","stroke-linecap","stroke-linejoin"];function Htt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1)]),14,Utt)}var W$=ze(ztt,[["render",Htt]]);const Wtt=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),Gtt=ke({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 qtt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1)]),14,Ktt)}var G$=ze(Gtt,[["render",qtt]]);const Ytt=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),Xtt=ke({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ztt=["stroke-width","stroke-linecap","stroke-linejoin"];function Jtt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1)]),14,Ztt)}var K$=ze(Xtt,[["render",Jtt]]);const Qtt=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),ent=ke({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 nnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,tnt)}var q$=ze(ent,[["render",nnt]]);const rnt=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),int=ke({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 snt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),L("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1)]),14,ont)}var Y$=ze(int,[["render",snt]]);const ant=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),lnt=ke({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 cnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 7H7v22h34V7Z"},null,-1),L("path",{d:"M23.778 29v10"},null,-1),L("path",{d:"M16 39h16"},null,-1),L("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1)]),14,unt)}var X$=ze(lnt,[["render",cnt]]);const JH=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),dnt=ke({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 hnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,fnt)}var Z$=ze(dnt,[["render",hnt]]);const Ive=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),pnt=ke({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vnt=["stroke-width","stroke-linecap","stroke-linejoin"];function mnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),L("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,vnt)}var J$=ze(pnt,[["render",mnt]]);const gnt=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),ynt=ke({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bnt=["stroke-width","stroke-linecap","stroke-linejoin"];function _nt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1)]),14,bnt)}var Q$=ze(ynt,[["render",_nt]]);const q8=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),Snt=ke({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),knt=["stroke-width","stroke-linecap","stroke-linejoin"];function xnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.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,knt)}var eB=ze(Snt,[["render",xnt]]);const Cnt=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),wnt=ke({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ent=["stroke-width","stroke-linecap","stroke-linejoin"];function Tnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1)]),14,Ent)}var tB=ze(wnt,[["render",Tnt]]);const Ant=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Int=ke({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Lnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Dnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1)]),14,Lnt)}var nB=ze(Int,[["render",Dnt]]);const Pnt=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Rnt=ke({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Ont(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),L("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,Mnt)}var rB=ze(Rnt,[["render",Ont]]);const $nt=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Bnt=ke({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Fnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1)]),14,Nnt)}var iB=ze(Bnt,[["render",Fnt]]);const jnt=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),Vnt=ke({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),znt=["stroke-width","stroke-linecap","stroke-linejoin"];function Unt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1)]),14,znt)}var oB=ze(Vnt,[["render",Unt]]);const Lve=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Hnt=ke({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Wnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Gnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Wnt)}var sB=ze(Hnt,[["render",Gnt]]);const Knt=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),qnt=ke({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ynt=["stroke-width","stroke-linecap","stroke-linejoin"];function Xnt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Ynt)}var aB=ze(qnt,[["render",Xnt]]);const Znt=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),Jnt=ke({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Qnt=["stroke-width","stroke-linecap","stroke-linejoin"];function ert(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Qnt)}var lB=ze(Jnt,[["render",ert]]);const Dve=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),trt=ke({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nrt=["stroke-width","stroke-linecap","stroke-linejoin"];function rrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1)]),14,nrt)}var uB=ze(trt,[["render",rrt]]);const irt=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),ort=ke({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 art(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),L("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),L("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,srt)}var cB=ze(ort,[["render",art]]);const lrt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),urt=ke({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),crt=["stroke-width","stroke-linecap","stroke-linejoin"];function drt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),L("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,crt)}var dB=ze(urt,[["render",drt]]);const nA=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),frt=ke({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hrt=["stroke-width","stroke-linecap","stroke-linejoin"];function prt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1)]),14,hrt)}var fB=ze(frt,[["render",prt]]);const vrt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),mrt=ke({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),grt=["stroke-width","stroke-linecap","stroke-linejoin"];function yrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),L("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,grt)}var hB=ze(mrt,[["render",yrt]]);const Pve=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),brt=ke({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_rt=["stroke-width","stroke-linecap","stroke-linejoin"];function Srt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),L("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,_rt)}var pB=ze(brt,[["render",Srt]]);const krt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),xrt=ke({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Crt=["stroke-width","stroke-linecap","stroke-linejoin"];function wrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1)]),14,Crt)}var vB=ze(xrt,[["render",wrt]]);const Ert=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Trt=ke({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Irt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"19",r:"5"},null,-1),L("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1)]),14,Art)}var mB=ze(Trt,[["render",Irt]]);const Lrt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Drt=ke({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Rrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),L("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Prt)}var gB=ze(Drt,[["render",Rrt]]);const Mrt=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Ort=ke({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$rt=["stroke-width","stroke-linecap","stroke-linejoin"];function Brt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1)]),14,$rt)}var yB=ze(Ort,[["render",Brt]]);const Nrt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),Frt=ke({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Vrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1)]),14,jrt)}var bB=ze(Frt,[["render",Vrt]]);const zrt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),Urt=ke({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,Hrt)}var _B=ze(Urt,[["render",Wrt]]);const Rve=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Grt=ke({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Krt=["stroke-width","stroke-linecap","stroke-linejoin"];function qrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1)]),14,Krt)}var SB=ze(Grt,[["render",qrt]]);const Yrt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Xrt=ke({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Jrt(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),L("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,Zrt)}var kB=ze(Xrt,[["render",Jrt]]);const Mve=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),Qrt=ke({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eit=["stroke-width","stroke-linecap","stroke-linejoin"];function tit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1)]),14,eit)}var xB=ze(Qrt,[["render",tit]]);const nit=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),rit=ke({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iit=["stroke-width","stroke-linecap","stroke-linejoin"];function oit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1)]),14,iit)}var CB=ze(rit,[["render",oit]]);const sit=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),ait=ke({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lit=["stroke-width","stroke-linecap","stroke-linejoin"];function uit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,lit)}var wB=ze(ait,[["render",uit]]);const cit=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),dit=ke({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fit=["stroke-width","stroke-linecap","stroke-linejoin"];function hit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1)]),14,fit)}var EB=ze(dit,[["render",hit]]);const pit=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),vit=ke({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mit=["stroke-width","stroke-linecap","stroke-linejoin"];function git(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1)]),14,mit)}var TB=ze(vit,[["render",git]]);const yit=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),bit=ke({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Sit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.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,_it)}var AB=ze(bit,[["render",Sit]]);const QH=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),kit=ke({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xit=["stroke-width","stroke-linecap","stroke-linejoin"];function Cit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1)]),14,xit)}var IB=ze(kit,[["render",Cit]]);const wit=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Eit=ke({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Ait(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1)]),14,Tit)}var LB=ze(Eit,[["render",Ait]]);const Iit=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Lit=ke({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dit=["stroke-width","stroke-linecap","stroke-linejoin"];function Pit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1)]),14,Dit)}var DB=ze(Lit,[["render",Pit]]);const Rit=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Mit=ke({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 $it(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Oit)}var PB=ze(Mit,[["render",$it]]);const Bit=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Nit=ke({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Fit=["stroke-width","stroke-linecap","stroke-linejoin"];function jit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1)]),14,Fit)}var RB=ze(Nit,[["render",jit]]);const Vit=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),zit=ke({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Hit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1)]),14,Uit)}var MB=ze(zit,[["render",Hit]]);const Wit=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),Git=ke({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Kit=["stroke-width","stroke-linecap","stroke-linejoin"];function qit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),L("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1)]),14,Kit)}var OB=ze(Git,[["render",qit]]);const Yit=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),Xit=ke({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zit=["stroke-width","stroke-linecap","stroke-linejoin"];function Jit(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,Zit)}var $B=ze(Xit,[["render",Jit]]);const Qit=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),eot=ke({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tot=["stroke-width","stroke-linecap","stroke-linejoin"];function not(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,tot)}var BB=ze(eot,[["render",not]]);const rot=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),iot=ke({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oot=["stroke-width","stroke-linecap","stroke-linejoin"];function sot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1)]),14,oot)}var NB=ze(iot,[["render",sot]]);const bf=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),aot=ke({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lot=["stroke-width","stroke-linecap","stroke-linejoin"];function uot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,lot)}var FB=ze(aot,[["render",uot]]);const cot=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),dot=ke({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fot=["stroke-width","stroke-linecap","stroke-linejoin"];function hot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),L("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,fot)}var jB=ze(dot,[["render",hot]]);const pot=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),vot=ke({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mot=["stroke-width","stroke-linecap","stroke-linejoin"];function got(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1)]),14,mot)}var VB=ze(vot,[["render",got]]);const yot=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),bot=ke({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Sot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1)]),14,_ot)}var zB=ze(bot,[["render",Sot]]);const kot=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),xot=ke({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cot=["stroke-width","stroke-linecap","stroke-linejoin"];function wot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),L("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),L("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,Cot)}var UB=ze(xot,[["render",wot]]);const bV=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Eot=ke({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Tot=["stroke-width","stroke-linecap","stroke-linejoin"];function Aot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1)]),14,Tot)}var HB=ze(Eot,[["render",Aot]]);const Iot=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Lot=ke({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dot=["stroke-width","stroke-linecap","stroke-linejoin"];function Pot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1)]),14,Dot)}var WB=ze(Lot,[["render",Pot]]);const Rot=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Mot=ke({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Oot=["stroke-width","stroke-linecap","stroke-linejoin"];function $ot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1)]),14,Oot)}var GB=ze(Mot,[["render",$ot]]);const Bot=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Not=ke({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Fot=["stroke-width","stroke-linecap","stroke-linejoin"];function jot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"7"},null,-1),L("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1)]),14,Fot)}var KB=ze(Not,[["render",jot]]);const Vot=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),zot=ke({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Hot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),L("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),L("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Uot)}var qB=ze(zot,[["render",Hot]]);const Wot=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),Got=ke({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Kot=["stroke-width","stroke-linecap","stroke-linejoin"];function qot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),L("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Kot)}var YB=ze(Got,[["render",qot]]);const Yot=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Xot=ke({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zot=["stroke-width","stroke-linecap","stroke-linejoin"];function Jot(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1)]),14,Zot)}var XB=ze(Xot,[["render",Jot]]);const Qot=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),est=ke({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tst=["stroke-width","stroke-linecap","stroke-linejoin"];function nst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1)]),14,tst)}var ZB=ze(est,[["render",nst]]);const rst=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),ist=ke({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ost=["stroke-width","stroke-linecap","stroke-linejoin"];function sst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1)]),14,ost)}var JB=ze(ist,[["render",sst]]);const ast=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),lst=ke({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ust=["stroke-width","stroke-linecap","stroke-linejoin"];function cst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),L("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,ust)}var QB=ze(lst,[["render",cst]]);const dst=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),fst=ke({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hst=["stroke-width","stroke-linecap","stroke-linejoin"];function pst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1)]),14,hst)}var eN=ze(fst,[["render",pst]]);const vst=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),mst=ke({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gst=["stroke-width","stroke-linecap","stroke-linejoin"];function yst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"18",cy:"15",r:"7"},null,-1),L("circle",{cx:"34",cy:"19",r:"4"},null,-1),L("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1)]),14,gst)}var tN=ze(mst,[["render",yst]]);const bst=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),_st=ke({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 kst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),L("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,Sst)}var nN=ze(_st,[["render",kst]]);const xst=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),Cst=ke({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wst=["stroke-width","stroke-linecap","stroke-linejoin"];function Est(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1)]),14,wst)}var rN=ze(Cst,[["render",Est]]);const Ove=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),Tst=ke({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ast=["stroke-width","stroke-linecap","stroke-linejoin"];function Ist(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),L("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Ast)}var iN=ze(Tst,[["render",Ist]]);const Lst=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),Dst=ke({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Ae("icon"),r=j(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${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 Rst(e,t,n,r,o,a){return z(),ee("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1)]),14,Pst)}var oN=ze(Dst,[["render",Rst]]);const Mst=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:VHe,IconArrowLeft:qH,IconArrowRight:qHe,IconArrowRise:JHe,IconArrowUp:yV,IconCaretDown:FH,IconCaretLeft:SH,IconCaretRight:_H,IconCaretUp:J0e,IconDoubleDown:oWe,IconDoubleLeft:zpe,IconDoubleRight:Upe,IconDoubleUp:uWe,IconDownCircle:hWe,IconDown:Yh,IconDragArrow:gve,IconExpand:_We,IconLeftCircle:CWe,IconLeft:Al,IconMenuFold:M0e,IconMenuUnfold:O0e,IconRightCircle:AWe,IconRight:Ui,IconRotateLeft:m0e,IconRotateRight:g0e,IconShrink:PWe,IconSwap:yve,IconToBottom:FWe,IconToLeft:UWe,IconToRight:KWe,IconToTop:ape,IconUpCircle:ZWe,IconUp:Y_,IconCheckCircleFill:Kh,IconCloseCircleFill:Km,IconExclamationCircleFill:If,IconExclamationPolygonFill:tGe,IconInfoCircleFill:r3,IconMinusCircleFill:oGe,IconPlusCircleFill:uGe,IconQuestionCircleFill:hGe,IconCheckCircle:nc,IconCheckSquare:_Ge,IconCheck:Xm,IconClockCircle:r_,IconCloseCircle:CGe,IconClose:cs,IconExclamationCircle:_d,IconExclamation:OH,IconInfoCircle:Pc,IconInfo:z0e,IconMinusCircle:MGe,IconMinus:Im,IconPlusCircle:NGe,IconPlus:Cf,IconQuestionCircle:AH,IconQuestion:zGe,IconStop:GGe,IconHeartFill:YH,IconStarFill:$H,IconThumbDownFill:QGe,IconThumbUpFill:rKe,IconAt:aKe,IconCloudDownload:dKe,IconCodeBlock:bve,IconCodeSquare:yKe,IconCode:x0,IconCustomerService:wKe,IconDownload:hm,IconExport:Z5,IconEyeInvisible:tpe,IconEye:b0,IconHeart:J5,IconHistory:Ry,IconHome:u3,IconImport:Q5,IconLaunch:_ve,IconList:XH,IconMessageBanned:QKe,IconMessage:rqe,IconMoreVertical:aqe,IconMore:$0,IconPoweroff:dqe,IconRefresh:wd,IconReply:yqe,IconSave:jp,IconScan:wqe,IconSearch:Tm,IconSelectAll:Iqe,IconSend:Rqe,IconSettings:Lf,IconShareAlt:jqe,IconShareExternal:Hqe,IconShareInternal:qqe,IconStar:eA,IconSync:tYe,IconThumbDown:oYe,IconThumbUp:uYe,IconTranslate:hYe,IconUpload:k0,IconVoice:gYe,IconAlignCenter:SYe,IconAlignLeft:wYe,IconAlignRight:IYe,IconAttachment:RYe,IconBgColors:Sve,IconBold:jYe,IconBrush:HYe,IconCopy:Y5,IconDelete:fc,IconEdit:HH,IconEraser:qYe,IconFilter:jH,IconFindReplace:JYe,IconFontColors:kve,IconFormula:oXe,IconH1:uXe,IconH2:hXe,IconH3:gXe,IconH4:SXe,IconH5:wXe,IconH6:IXe,IconH7:RXe,IconHighlight:BXe,IconItalic:VXe,IconLineHeight:WXe,IconLink:Mc,IconObliqueLine:upe,IconOrderedList:YXe,IconOriginalSize:y0e,IconPaste:QXe,IconQuote:rZe,IconRedo:aZe,IconScissor:dZe,IconSortAscending:xve,IconSortDescending:Cve,IconSort:SZe,IconStrikethrough:wZe,IconUnderline:IZe,IconUndo:RZe,IconUnorderedList:BZe,IconZoomIn:v0e,IconZoomOut:p0e,IconMuteFill:VZe,IconPauseCircleFill:WZe,IconPlayArrowFill:uve,IconPlayCircleFill:YZe,IconSkipNextFill:QZe,IconSkipPreviousFill:rJe,IconSoundFill:aJe,IconBackward:dJe,IconForward:vJe,IconFullscreenExit:ZH,IconFullscreen:z5,IconLiveBroadcast:i_,IconMusic:wJe,IconMute:IJe,IconPauseCircle:RJe,IconPause:lve,IconPlayArrow:qa,IconPlayCircle:My,IconRecordStop:UJe,IconRecord:KJe,IconSkipNext:ZJe,IconSkipPrevious:tQe,IconSound:wve,IconBytedanceColor:lQe,IconLarkColor:fQe,IconTiktokColor:mQe,IconXiguaColor:_Qe,IconFaceBookCircleFill:CQe,IconFacebookSquareFill:AQe,IconGoogleCircleFill:PQe,IconQqCircleFill:$Qe,IconTwitterCircleFill:jQe,IconWeiboCircleFill:HQe,IconAlipayCircle:qQe,IconCodeSandbox:JQe,IconCodepen:net,IconFacebook:set,IconGithub:Eve,IconGitlab:pet,IconGoogle:yet,IconQqZone:xet,IconQq:Tet,IconTwitter:Det,IconWechat:Oet,IconWechatpay:Fet,IconWeibo:Uet,IconChineseFill:Ket,IconEnglishFill:Zet,IconFaceFrownFill:V0e,IconFaceMehFill:uV,IconFaceSmileFill:j0e,IconMoonFill:ttt,IconPenFill:ott,IconSunFill:utt,IconApps:Tve,IconArchive:mtt,IconBarChart:Ave,IconBook:tA,IconBookmark:Ett,IconBranch:Ltt,IconBug:Oy,IconBulb:Btt,IconCalendarClock:Vtt,IconCalendar:Q_,IconCamera:Wtt,IconCloud:Ytt,IconCommand:Qtt,IconCommon:rnt,IconCompass:ant,IconComputer:JH,IconCopyright:Ive,IconDashboard:gnt,IconDesktop:q8,IconDice:Cnt,IconDragDotVertical:U5,IconDragDot:C0e,IconDriveFile:Ant,IconEar:Pnt,IconEmail:$nt,IconEmpty:aH,IconExperiment:jnt,IconFileAudio:pve,IconFileImage:fve,IconFilePdf:dve,IconFileVideo:hve,IconFile:q5,IconFire:Lve,IconFolderAdd:Knt,IconFolderDelete:Znt,IconFolder:Dve,IconGift:irt,IconIdcard:lrt,IconImageClose:M5,IconImage:nA,IconInteraction:vrt,IconLanguage:Pve,IconLayers:krt,IconLayout:Ert,IconLoading:Xa,IconLocation:Lrt,IconLock:Mrt,IconLoop:Nrt,IconMan:zrt,IconMenu:Rve,IconMindMapping:Yrt,IconMobile:Mve,IconMoon:nit,IconMosaic:sit,IconNav:cit,IconNotificationClose:pit,IconNotification:yit,IconPalette:QH,IconPen:wit,IconPhone:Iit,IconPrinter:Rit,IconPublic:Bit,IconPushpin:Vit,IconQrcode:Wit,IconRelation:Yit,IconRobotAdd:Qit,IconRobot:rot,IconSafe:bf,IconSchedule:cot,IconShake:pot,IconSkin:yot,IconStamp:kot,IconStorage:bV,IconSubscribeAdd:Iot,IconSubscribe:Rot,IconSubscribed:Bot,IconSun:Vot,IconTag:Wot,IconTags:Yot,IconThunderbolt:Qot,IconTool:rst,IconTrophy:ast,IconUnlock:dst,IconUserAdd:vst,IconUserGroup:bst,IconUser:xst,IconVideoCamera:Ove,IconWifi:Lst,IconWoman:Mst},Ost=(e,t)=>{for(const n of Object.keys(_V))e.use(_V[n],t)},$st={..._V,install:Ost},Sr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Bst=ke({components:{},setup(){const e=fe(!1),t=()=>{try{const o=localStorage.getItem("appSettings");if(o)return JSON.parse(o).searchAggregation||!1}catch(o){console.error("获取聚搜状态失败:",o)}return!1},n=fe(t()),r=()=>{n.value=t()};return window.addEventListener("storage",r),setInterval(r,1e3),{showConfirmModal:e,searchAggregationEnabled:n}},methods:{goBack(){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()}}}),Nst={class:"header-left"},Fst={key:0,class:"header-center"},jst={class:"header-right"},Vst={class:"modal-header"},zst={class:"modal-footer"};function Ust(e,t,n,r,o,a){const s=De("icon-left"),l=De("a-button"),c=De("icon-right"),d=De("icon-refresh"),h=De("a-input-search"),p=De("icon-shrink"),m=De("icon-expand"),g=De("icon-close"),y=De("icon-exclamation-circle-fill"),S=De("a-layout-header");return z(),Ye(S,{class:"header"},{default:de(()=>[L("div",Nst,[O(l,{shape:"circle",onClick:e.goBack},{icon:de(()=>[O(s)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.goForward},{icon:de(()=>[O(c)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.refreshPage},{icon:de(()=>[O(d)]),_:1},8,["onClick"])]),e.searchAggregationEnabled?(z(),ee("div",Fst,[O(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])])):Pe("",!0),L("div",jst,[O(l,{shape:"circle",onClick:e.minimize},{icon:de(()=>[O(p)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.maximize},{icon:de(()=>[O(m)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:de(()=>[O(g)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),ee("div",{key:1,class:"confirm-modal-overlay",onClick:t[1]||(t[1]=(...k)=>e.hideCloseConfirm&&e.hideCloseConfirm(...k))},[L("div",{class:"confirm-modal",onClick:t[0]||(t[0]=ls(()=>{},["stop"]))},[L("div",Vst,[O(y,{class:"warning-icon"}),t[2]||(t[2]=L("h3",{class:"modal-title"},"确认关闭",-1))]),t[5]||(t[5]=L("div",{class:"modal-content"},[L("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),L("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),L("div",zst,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[We(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[We(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Pe("",!0)]),_:1})}const Hst=Sr(Bst,[["render",Ust],["__scopeId","data-v-98f3d1c0"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let $ve;const rA=e=>$ve=e,Bve=Symbol();function SV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ub;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ub||(ub={}));function Wst(){const e=TU(!0),t=e.run(()=>fe({}));let n=[],r=[];const o=f5({install(a){rA(o),o._a=a,a.provide(Bve,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 Nve=()=>{};function Kre(e,t,n,r=Nve){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&s5()&&AU(o),o}function i1(e,...t){e.slice().forEach(n=>{n(...t)})}const Gst=e=>e(),qre=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)&&!$o(r)&&!gf(r)?e[n]=kV(o,r):e[n]=r}return e}const Kst=Symbol();function qst(e){return!SV(e)||!e.hasOwnProperty(Kst)}const{assign:Vp}=Object;function Yst(e){return!!($o(e)&&e.effect)}function Xst(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=en(n.state.value[e]);return Vp(h,a,Object.keys(s||{}).reduce((p,m)=>(p[m]=f5(j(()=>{rA(n);const g=n._s.get(e);return s[m].call(g,g)})),p),{}))}return c=Fve(e,d,t,n,r,!0),c}function Fve(e,t,n={},r,o,a){let s;const l=Vp({actions:{}},n),c={deep:!0};let d,h,p=[],m=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),fe({});let S;function k(M){let $;d=h=!1,typeof M=="function"?(M(r.state.value[e]),$={type:ub.patchFunction,storeId:e,events:g}):(kV(r.state.value[e],M),$={type:ub.patchObject,payload:M,storeId:e,events:g});const I=S=Symbol();Sn().then(()=>{S===I&&(d=!0)}),h=!0,i1(p,$,r.state.value[e])}const C=a?function(){const{state:$}=n,I=$?$():{};this.$patch(N=>{Vp(N,I)})}:Nve;function x(){s.stop(),p=[],m=[],r._s.delete(e)}const E=(M,$="")=>{if(qre in M)return M[sN]=$,M;const I=function(){rA(r);const N=Array.from(arguments),F=[],W=[];function U(oe){F.push(oe)}function G(oe){W.push(oe)}i1(m,{args:N,name:I[sN],store:T,after:U,onError:G});let Z;try{Z=M.apply(this&&this.$id===e?this:T,N)}catch(oe){throw i1(W,oe),oe}return Z instanceof Promise?Z.then(oe=>(i1(F,oe),oe)).catch(oe=>(i1(W,oe),Promise.reject(oe))):(i1(F,Z),Z)};return I[qre]=!0,I[sN]=$,I},_={_p:r,$id:e,$onAction:Kre.bind(null,m),$patch:k,$reset:C,$subscribe(M,$={}){const I=Kre(p,M,$.detached,()=>N()),N=s.run(()=>Rt(()=>r.state.value[e],F=>{($.flush==="sync"?h:d)&&M({storeId:e,type:ub.direct,events:g},F)},Vp({},c,$)));return I},$dispose:x},T=qt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Gst)(()=>r._e.run(()=>(s=TU()).run(()=>t({action:E}))));for(const M in P){const $=P[M];if($o($)&&!Yst($)||gf($))a||(y&&qst($)&&($o($)?$.value=y[M]:kV($,y[M])),r.state.value[e][M]=$);else if(typeof $=="function"){const I=E($,M);P[M]=I,l.actions[M]=$}}return Vp(T,P),Vp(Oi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k($=>{Vp($,M)})}}),r._p.forEach(M=>{Vp(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 Zm(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function s(l,c){const d=Cfe();return l=l||(d?Rn(Bve,null):null),l&&rA(l),l=$ve,l._s.has(r)||(a?Fve(r,t,o,l):Xst(r,o,l)),l._s.get(r)}return s.$id=r,s}const nS=Zm("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"}}),Zst={class:"footer-content"},Jst={key:0,class:"pagination-stats"},Qst={class:"stats-text"},eat={key:1,class:"default-footer"},tat={class:"footer-info"},nat={class:"copyright-section"},rat={class:"copyright-text"},iat={class:"project-section"},oat={class:"license-section"},sat={__name:"Footer",setup(e){const t=nS(),n=j(()=>new Date().getFullYear()),r=()=>{xt.success("正在跳转到项目主页...")};return(o,a)=>(z(),ee("div",Zst,[et(t).shouldShow?(z(),ee("div",Jst,[L("span",Qst,Ue(et(t).statsText),1)])):(z(),ee("div",eat,[L("div",tat,[L("div",nat,[O(et(Ive),{class:"footer-icon"}),L("span",rat,Ue(n.value)+" DrPlayer",1)]),a[1]||(a[1]=L("div",{class:"separator"},"|",-1)),L("div",iat,[O(et(Eve),{class:"footer-icon"}),L("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=L("div",{class:"separator"},"|",-1)),L("div",oat,[O(et(bf),{class:"footer-icon"}),a[0]||(a[0]=L("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},aat=Sr(sat,[["__scopeId","data-v-3b2cc39c"]]),lat="/apps/drplayer/assets/logo-5LtmOeIe.png";window._iconfont_svg_string_5032989='',(e=>{var t=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,o,a,s,l,c=function(p,m){m.parentNode.insertBefore(p,m)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,m=document.createElement("div");m.innerHTML=e._iconfont_svg_string_5032989,(m=m.getElementsByTagName("svg")[0])&&(m.setAttribute("aria-hidden","true"),m.style.position="absolute",m.style.width=0,m.style.height=0,m.style.overflow="hidden",m=m,(p=document.body).firstChild?c(m,p.firstChild):p.appendChild(m))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),r()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=r,s=e.document,l=!1,h(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})}function d(){l||(l=!0,a())}function h(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}d()}})(window);const uat=ke({components:{IconCaretRight:_H,IconCaretLeft:SH,IconHome:u3,IconCalendar:Q_,Header:Hst,Footer:aat},setup(){const e=k5(),t=nS(),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(lat),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)}}}}),cat={class:"app-container"},dat={class:"fixed-header"},fat={class:"logo"},hat={style:{width:"20px",height:"20px","margin-right":"8px"}},pat=["href"],vat={class:"content-wrapper"},mat={class:"fixed-footer"};function gat(e,t,n,r,o,a){const s=De("Header"),l=De("a-image"),c=De("a-popover"),d=De("a-menu-item"),h=De("router-link"),p=De("a-menu"),m=De("IconCaretRight"),g=De("IconCaretLeft"),y=De("a-layout-sider"),S=De("Footer"),k=De("a-layout");return z(),ee("div",cat,[L("div",dat,[O(s)]),O(k,{class:"layout-demo"},{default:de(()=>[O(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:C})=>[C?(z(),Ye(m,{key:0})):(z(),Ye(g,{key:1}))]),default:de(()=>[L("div",fat,[O(c,{title:"道长: 您好!"},{content:de(()=>[L("p",null,Ue(e.logoDesc),1)]),default:de(()=>[O(l,{width:"100%",src:e.logoSrc,alt:e.logoDesc,preview:!1,onClick:t[0]||(t[0]=()=>this.$message.success("欢迎使用Hipy定制版壳子"))},null,8,["src","alt"])]),_:1})]),O(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:de(()=>[(z(!0),ee(Nt,null,vn(e.menuItems,(C,x)=>(z(),Ye(h,{key:x,to:C.route,class:"menu-item"},{default:de(()=>[(z(),Ye(d,{key:C.id},{default:de(()=>[(z(),ee("svg",hat,[L("use",{href:`#${C.icon}`},null,8,pat)])),We(" "+Ue(C.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),L("div",{class:ue(["main-content",{"sider-collapsed":e.siderCollapsed}])},[L("div",vat,[pt(e.$slots,"default",{},void 0,!0)]),L("div",mat,[O(S)])],2)]),_:3})])}const yat=Sr(uat,[["render",gat],["__scopeId","data-v-7cb7a4e5"]]),cb=fe({show:!1,message:"",type:"success",duration:3e3});function ir(e,t="success",n=3e3){cb.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{bat()},n)}function bat(){cb.value.show=!1}const _at={__name:"GlobalToast",setup(e){return(t,n)=>(z(),Ye(Hm,{to:"body"},[O(xs,{name:"action-toast"},{default:de(()=>[et(cb).show?(z(),ee("div",{key:0,class:ue(["action-toast",et(cb).type])},Ue(et(cb).message),3)):Pe("",!0)]),_:1})]))}},Sat=Sr(_at,[["__scopeId","data-v-0de7c39c"]]),iA=Zm("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()}}}}),kat={name:"App",components:{Layout:yat,GlobalToast:Sat},setup(){const e=iA();return mn(()=>{e.loadFromStorage()}),{}}};function xat(e,t,n,r,o,a){const s=De("router-view"),l=De("Layout"),c=De("GlobalToast");return z(),ee(Nt,null,[O(l,null,{default:de(()=>[O(s)]),_:1}),O(c)],64)}const Cat=Sr(kat,[["render",xat]]);/*! ***************************************************************************** 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 Fn(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 wat=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Eat=(function(){function e(){this.browser=new wat,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),Vr=new Eat;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vr.wxa=!0,Vr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Vr.worker=!0:!Vr.hasGlobalWindow||"Deno"in window?(Vr.node=!0,Vr.svgSupported=!0):Tat(navigator.userAgent,Vr);function Tat(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,Aat="sans-serif",Lm=eW+"px "+Aat,Iat=20,Lat=100,Dat="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Pat(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 nlt(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],a=t.srcCoords,s=[],l=[],c=!0,d=0;d<4;d++){var h=e[d].getBoundingClientRect(),p=2*d,m=h.left,g=h.top;s.push(m,g),c=c&&a&&m===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?Jre(l,s):Jre(s,l))}function Kve(e){return e.nodeName.toUpperCase()==="CANVAS"}var rlt=/([&<>"'])/g,ilt={"&":"&","<":"<",">":">",'"':""","'":"'"};function yu(e){return e==null?"":(e+"").replace(rlt,function(t,n){return ilt[n]})}var olt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cN=[],slt=Vr.browser.firefox&&+Vr.browser.version.split(".")[0]<39;function LV(e,t,n,r){return n=n||{},r?eie(e,t,n):slt&&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):eie(e,t,n),n}function eie(e,t,n){if(Vr.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(Kve(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=alt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&olt.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function alt(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 llt(e,t,n,r){e.addEventListener(t,n,r)}function ult(e,t,n,r){e.removeEventListener(t,n,r)}var qve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},clt=(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=tie(r)/tie(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=dlt(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function ay(){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 flt(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 ly(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 hlt(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 Hr=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,o){t.x=n.x+r.x*o,t.y=n.y+r.y*o},e.lerp=function(t,n,r,o){var a=1-o;t.x=a*n.x+o*r.x,t.y=a*n.y+o*r.y},e})(),kx=Math.min,xx=Math.max,pv=new Hr,vv=new Hr,mv=new Hr,gv=new Hr,K2=new Hr,q2=new Hr,ao=(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=kx(t.x,this.x),r=kx(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xx(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=xx(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=ay();return DV(a,a,[-n.x,-n.y]),hlt(a,a,[r,o]),DV(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,d=t.x+t.width,h=t.y,p=t.y+t.height,m=!(ay&&(y=E,Sy&&(y=_,C=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var o=r[0],a=r[3],s=r[4],l=r[5];t.x=n.x*o+s,t.y=n.y*a+l,t.width=n.width*o,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}pv.x=mv.x=n.x,pv.y=gv.y=n.y,vv.x=gv.x=n.x+n.width,vv.y=mv.y=n.y+n.height,pv.transform(r),gv.transform(r),vv.transform(r),mv.transform(r),t.x=kx(pv.x,vv.x,mv.x,gv.x),t.y=kx(pv.y,vv.y,mv.y,gv.y);var c=xx(pv.x,vv.x,mv.x,gv.x),d=xx(pv.y,vv.y,mv.y,gv.y);t.width=c-t.x,t.height=d-t.y},e})(),Yve="silent";function plt(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:vlt}}function vlt(){qve(this.event)}var mlt=(function(e){Fn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Pf),Y2=(function(){function e(t,n){this.x=t,this.y=n}return e})(),glt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fN=new ao(0,0,0,0),Xve=(function(e){Fn(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new Y2(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new mlt,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new Jat(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Et(glt,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=Zve(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 Y2(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 Y2(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=plt(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 Y2(n,r);if(nie(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new ao(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var m=a[p];m!==o&&!m.ignore&&!m.ignoreCoarsePointer&&(!m.parent||!m.parent.ignoreCoarsePointer)&&(fN.copy(m.getBoundingRect()),m.transform&&fN.applyTransform(m.transform),fN.intersect(h)&&l.push(m))}if(l.length)for(var g=4,y=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ylt(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?Yve:!0}return!1}function nie(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=ylt(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==Yve)){t.target=s;break}}}function Zve(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Jve=32,X2=7;function blt(e){for(var t=0;e>=Jve;)t|=e&1,e>>=1;return e+t}function rie(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 _lt(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 Slt(e,t){var n=X2,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]=X2||P>=X2);if(M)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),y===1){for(C=0;C=0;C--)e[D+C]=e[T+C];e[_]=s[E];return}for(var P=n;;){var M=0,$=0,I=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],M++,$=0,--y===0){I=!0;break}}else if(e[_--]=s[E--],$++,M=0,--k===1){I=!0;break}while((M|$)=0;C--)e[D+C]=e[T+C];if(y===0){I=!0;break}}if(e[_--]=s[E--],--k===1){I=!0;break}if($=k-hN(e[x],s,0,k,k-1,t),$!==0){for(_-=$,E-=$,k-=$,D=_+1,T=E+1,C=0;C<$;C++)e[D+C]=s[T+C];if(k<=1){I=!0;break}}if(e[_--]=e[x--],--y===0){I=!0;break}P--}while(M>=X2||$>=X2);if(I)break;P<0&&(P=0),P+=2}if(n=P,n<1&&(n=1),k===1){for(_-=y,x-=y,D=_+1,T=x+1,C=y-1;C>=0;C--)e[D+C]=e[T+C];e[_]=s[E]}else{if(k===0)throw new Error;for(T=_-(k-1),C=0;Cl&&(c=l),iie(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,A4=2,R1=4,oie=!1;function vN(){oie||(oie=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sie(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var klt=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sie}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 m=t.getTextGuideLine();m&&this._updateAndAddDisplayable(m,n,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(o,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),X8;X8=Vr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var hb={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-hb.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?hb.bounceIn(e*2)*.5:hb.bounceOut(e*2-1)*.5+.5}},Cx=Math.pow,d0=Math.sqrt,Z8=1e-8,Qve=1e-4,aie=d0(3),Ex=1/3,lf=d3(),Oc=d3(),uy=d3();function n0(e){return e>-Z8&&eZ8||e<-Z8}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 lie(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function J8(e,t,n,r,o,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),d=e-o,h=l*l-3*s*c,p=l*c-9*s*d,m=c*c-3*l*d,g=0;if(n0(h)&&n0(p))if(n0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*m;if(n0(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=d0(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-Cx(-E,Ex):E=Cx(E,Ex),_<0?_=-Cx(-_,Ex):_=Cx(_,Ex);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*d0(h*h*h)),D=Math.acos(T)/3,P=d0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),C=(-l+P*(M+aie*Math.sin(D)))/(3*s),$=(-l+P*(M-aie*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C),$>=0&&$<=1&&(a[g++]=$)}}return g}function tme(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(n0(s)){if(eme(a)){var d=-l/a;d>=0&&d<=1&&(o[c++]=d)}}else{var h=a*a-4*s*l;if(n0(h))o[0]=-a/(2*s);else if(h>0){var p=d0(h),d=(-a+p)/(2*s),m=(-a-p)/(2*s);d>=0&&d<=1&&(o[c++]=d),m>=0&&m<=1&&(o[c++]=m)}}return c}function Q8(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 xlt(e,t,n,r,o,a,s,l,c,d,h){var p,m=.005,g=1/0,y,S,k,C;lf[0]=c,lf[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=sy(lf,Oc),k=0&&k=0&&d<=1&&(o[c++]=d)}}else{var h=s*s-4*a*l;if(n0(h)){var d=-s/(2*a);d>=0&&d<=1&&(o[c++]=d)}else if(h>0){var p=d0(h),d=(-s+p)/(2*a),m=(-s-p)/(2*a);d>=0&&d<=1&&(o[c++]=d),m>=0&&m<=1&&(o[c++]=m)}}return c}function nme(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function eT(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 Elt(e,t,n,r,o,a,s,l,c){var d,h=.005,p=1/0;lf[0]=s,lf[1]=l;for(var m=0;m<1;m+=.05){Oc[0]=bu(e,n,o,m),Oc[1]=bu(t,r,a,m);var g=sy(lf,Oc);g=0&&g=1?1:J8(0,r,a,1,c,l)&&Va(0,o,s,1,l[0])}}}var Ilt=(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=ei(t)?t:hb[t]||rme(t)},e})(),ime=(function(){function e(t){this.value=t}return e})(),Llt=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new ime(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})(),iS=(function(){function e(t){this._list=new Llt,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 ime(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})(),cie={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 f0(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)==="%"?f0(parseFloat(t)/100*255):f0(parseInt(t,10))}function pb(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 Tx(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 ome=new iS(20),Ax=null;function s1(e,t){Ax&&RV(Ax,t),Ax=ome.put(e,Ax||t.slice())}function Dh(e,t){if(e){t=t||[];var n=ome.get(e);if(n)return RV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in cie)return RV(t,cie[r]),s1(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),s1(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),s1(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=pb(d.pop());case"rgb":if(d.length>=3)return Ic(t,mN(d[0]),mN(d[1]),mN(d[2]),d.length===3?h:pb(d[3])),s1(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]=pb(d[3]),die(d,t),s1(e,t),t;case"hsl":if(d.length!==3){Ic(t,0,0,0,1);return}return die(d,t),s1(e,t),t;default:return}}Ic(t,0,0,0,1)}}function die(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=pb(e[1]),o=pb(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Ic(t,f0(gN(s,a,n+1/3)*255),f0(gN(s,a,n)*255),f0(gN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function fie(e,t){var n=Dh(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return lA(n,n.length===4?"rgba":"rgb")}}function Dlt(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),o=Math.floor(r),a=Math.ceil(r),s=Dh(t[o]),l=Dh(t[a]),c=r-o,d=lA([f0(Tx(s[0],l[0],c)),f0(Tx(s[1],l[1],c)),f0(Tx(s[2],l[2],c)),PV(Tx(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:o,rightIndex:a,value:r}:d}}function lA(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 tT(e,t){var n=Dh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var hie=new iS(100);function pie(e){if(yr(e)){var t=hie.get(e);return t||(t=fie(e,-.1),hie.put(e,t)),t}else if(sA(e)){var n=_n({},e);return n.colorStops=wr(e.colorStops,function(r){return{offset:r.offset,color:fie(r.color,-.1)}}),n}return e}function Plt(e){return e.type==="linear"}function Rlt(e){return e.type==="radial"}(function(){return Vr.hasGlobalWindow&&ei(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var MV=Array.prototype.slice;function vh(e,t,n){return(t-e)*n+e}function 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=mie,c=n;if(Pu(n)){var d=Blt(n);l=d,(d===1&&!To(n[0])||d===2&&!To(n[0][0]))&&(s=!0)}else if(To(n)&&!Y8(n))l=Lx;else if(yr(n))if(!isNaN(+n))l=Lx;else{var h=Dh(n);h&&(c=h,l=I4)}else if(sA(n)){var p=_n({},c);p.colorStops=wr(n.colorStops,function(g){return{offset:g.offset,color:Dh(g.color)}}),Plt(n)?l=OV:Rlt(n)&&(l=$V),c=p}a===0?this.valType=l:(l!==this.valType||l===mie)&&(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=ei(r)?r:hb[r]||rme(r)),o.push(m),m},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,k){return S.time-k.time});for(var o=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=Dx(o),d=gie(o),h=0;h=0&&!(s[h].percent<=n);h--);h=m(h,l-2)}else{for(h=p;hn);h++);h=m(h-1,l-2)}y=s[h+1],g=s[h]}if(g&&y){this._lastFr=h,this._lastFrP=n;var k=y.percent-g.percent,C=k===0?1:m((n-g.percent)/k,1);y.easingFunc&&(C=y.easingFunc(C));var x=r?this._additiveValue:d?Z2:t[c];if((Dx(a)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:y.rawValue;else if(Dx(a))a===eE?yN(x,g[o],y[o],C):Mlt(x,g[o],y[o],C);else if(gie(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:wr(E.colorStops,function(P,M){var $=_.colorStops[M];return{offset:vh(P.offset,$.offset,C),color:Qw(yN([],P.color,$.color,C))}}),global:_.global},T?(t[c].x2=vh(E.x2,_.x2,C),t[c].y2=vh(E.y2,_.y2,C)):t[c].r=vh(E.r,_.r,C)}else if(d)yN(x,g[o],y[o],C),r||(t[c]=Qw(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===Lx?t[r]=t[r]+o:n===I4?(Dh(t[r],Z2),Ix(Z2,Z2,o,1),t[r]=Qw(Z2)):n===eE?Ix(t[r],t[r],o,1):n===sme&&vie(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,Qo(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,Jw(d),o),this._trackKeys.push(l)}c.addKeyframe(t,Jw(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 z1(){return new Date().getTime()}var Flt=(function(e){Fn(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=z1()-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&&(X8(r),!n._paused&&n.update())}X8(r)},t.prototype.start=function(){this._running||(this._time=z1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=z1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=z1()-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})(Pf),jlt=300,bN=Vr.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=wr(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),yie={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bie=!1;function BV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Vlt(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 zlt(e,t){return Lc(e.dom,new Ult(e,t),!0)}function ame(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 Ult=(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})(),md={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;ame(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){bie=!0,e=Lc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){bie||(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"),md.mousemove.call(this,e),md.mousedown.call(this,e)},touchmove:function(e){e=Lc(this.dom,e),SN(e),this.handler.processGesture(e,"change"),md.mousemove.call(this,e)},touchend:function(e){e=Lc(this.dom,e),SN(e),this.handler.processGesture(e,"end"),md.mouseup.call(this,e),+new Date-+this.__lastTouchMomentkie||e<-kie}var bv=[],a1=[],xN=ay(),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 yv(this.rotation)||yv(this.x)||yv(this.y)||yv(this.scaleX-1)||yv(this.scaleY-1)||yv(this.skewX)||yv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(Sie(r),this.invTransform=null);return}r=r||ay(),n?this.getLocalTransform(r):Sie(r),t&&(n?ly(r,t,r):flt(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(bv);var r=bv[0]<0?-1:1,o=bv[1]<0?-1:1,a=((bv[0]-r)*n+r)/bv[0]||0,s=((bv[1]-o)*n+o)/bv[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||ay(),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||ay(),ly(a1,t.invTransform,n),n=a1);var r=this.originX,o=this.originY;(r||o)&&(xN[4]=r,xN[5]=o,ly(a1,n,xN),a1[4]-=r,a1[5]-=o,n=a1),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&&Uc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Uc(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){qlt(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,o=t.originY||0,a=t.scaleX,s=t.scaleY,l=t.anchorX,c=t.anchorY,d=t.rotation||0,h=t.x,p=t.y,m=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||o||l||c){var y=r+l,S=o+c;n[4]=-y*a-m*S*s,n[5]=-S*s-g*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=m*s,d&&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})(),a_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qlt(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function rT(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+=w0(r[0],n.width),d+=w0(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=a_.concat(["ignore"]),Ylt=C0(a_,function(e,t){return e[t]=!0,e},{ignore:!1}),l1={},Xlt=new ao(0,0,0,0),uA=(function(){function e(t){this.id=zve(),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=Xlt;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(l1,r,h):rT(l1,r,h),a.x=l1.x,a.y=l1.y,s=l1.align,l=l1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var m=void 0,g=void 0;p==="center"?(m=h.width*.5,g=h.height*.5):(m=w0(p[0],h.width),g=w0(p[1],h.height)),d=!0,a.originX=-a.x+m+(o?0:h.x),a.originY=-a.y+g+(o?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],d||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),C=void 0,x=void 0,E=void 0;S&&this.canBeInsideText()?(C=r.insideFill,x=r.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(C),E=!0)):(C=r.outsideFill,x=r.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(C),E=!0)),C=C||"#000",(C!==k.fill||x!==k.stroke||E!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=C,k.stroke=x,k.autoStroke=E,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=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"&&Dh(n);r||(r=[255,255,255,1]);for(var o=r[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*o+(a?0:255)*(1-o);return r[3]=1,lA(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||{},_n(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(Ir(t))for(var r=t,o=Qo(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(!(mo(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,m=this._textGuide;return p&&p.useState(t,n,r,h),m&&m.useState(t,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~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,m),k&&k.useStates(t,n,m),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!m&&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=mo(o,t),s=mo(o,n)>=0;a>=0?s?o.splice(a,1):o[a]=n:r&&!s&&o.push(n),this.useStates(o)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,o=0;o=0&&a.splice(s,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,o=r.length,a=[],s=0;s0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var m=0;m0||o.force&&!s.length){var M=void 0,$=void 0,I=void 0;if(l){$={},m&&(M={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=mo(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=mo(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 Zo(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return yr(e)?out(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),dme),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 sut(e)}function sut(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 aut(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 lut(e,t){var n=C0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=wr(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=wr(o,function(g){return Math.floor(g)}),l=C0(s,function(g,y){return g+y},0),c=wr(o,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return wr(s,function(g){return g/r})}function uut(e,t){var n=Math.max(wh(e),wh(t)),r=e+t;return n>dme?r:Xs(r,n)}function fme(e){var t=Math.PI*2;return(e%t+t)%t}function iT(e){return e>-Eie&&e=10&&t++,t}function hme(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 oT(e){var t=parseFloat(e);return t==e&&(t!==0||!yr(e)||e.indexOf("x")<=0)?t:NaN}function fut(e){return!isNaN(oT(e))}function pme(){return Math.round(Math.random()*9)}function vme(e,t){return t===0?e:vme(t,e%t)}function Tie(e,t){return e==null?t:t==null?e:e*t/vme(e,t)}function _u(e){throw new Error(e)}function Aie(e,t,n){return(t-e)*n+e}var mme="series\0",hut="\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&&mo(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var $ut=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],But=u_($ut),Nut=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return But(this,t,n)},e})(),HV=new iS(50);function Fut(e){if(typeof e=="string"){var t=HV.get(e);return t&&t.image}else return e}function Sme(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,!dA(t)&&a.pending.push(s)):(t=c3.loadImage(e,Lie,Lie),t.__zrImageSrc=e,HV.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Lie(){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 xme(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?Vut(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 Vut(e,t,n,r){for(var o=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||m.length>S,m=m.slice(0,S)}if(e&&a&&p!=null)for(var k=kme(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=Cme(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 Kut=C0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function qut(e){return Gut(e)?!!Kut[e]:!0}function Cme(e,t,n,r,o){for(var a=[],s=[],l="",c="",d=0,h=0,p=0;pn:o+h+g>n){h?(l||c)&&(y?(l||(l=c,c="",d=0,h=d),a.push(l),s.push(h-d),c+=m,d+=g,l="",h=d):(c&&(l+=c,c="",d=0),a.push(l),s.push(h),l=m,h=g)):y?(a.push(c),s.push(d),c=m,d=g):(a.push(m),s.push(g));continue}h+=g,y?(c+=m,d+=g):(c&&(l+=c,c="",d=0),l+=m)}return!a.length&&!l&&(l=e,c="",d=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=o),{accumWidth:h,lines:a,linesWidths:s}}var WV="__zr_style_"+Math.round(Math.random()*10),pm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pm[WV]=!0;var Pie=["z","z2","invisible"],Yut=["invisible"],aS=(function(e){Fn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Qo(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Px[0]=ON(o)*n+e,Px[1]=MN(o)*r+t,Rx[0]=ON(a)*n+e,Rx[1]=MN(a)*r+t,d(l,Px,Rx),h(c,Px,Rx),o=o%Sv,o<0&&(o=o+Sv),a=a%Sv,a<0&&(a=a+Sv),o>a&&!s?a+=Sv:oo&&(Mx[0]=ON(g)*n+e,Mx[1]=MN(g)*r+t,d(l,Mx,l),h(c,Mx,c))}var io={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kv=[],xv=[],qd=[],wp=[],Yd=[],Xd=[],$N=Math.min,BN=Math.max,Cv=Math.cos,wv=Math.sin,lh=Math.abs,GV=Math.PI,zp=GV*2,NN=typeof Float32Array<"u",J2=[];function FN(e){var t=Math.round(e/GV*1e8)/1e8;return t%2*GV}function wme(e,t){var n=FN(e[0]);n<0&&(n+=zp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=zp?o=n+zp:t&&n-o>=zp?o=n-zp:!t&&n>o?o=n+(zp-FN(n-o)):t&&n0&&(this._ux=lh(r/nT/t)||0,this._uy=lh(r/nT/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(io.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(io.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(io.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(io.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(),J2[0]=o,J2[1]=a,wme(J2,s),o=J2[0],a=J2[1];var l=a-o;return this.addData(io.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=Cv(a)*r+t,this._yi=wv(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(io.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(io.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(){qd[0]=qd[1]=Yd[0]=Yd[1]=Number.MAX_VALUE,wp[0]=wp[1]=Xd[0]=Xd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||lh(E)>o||m===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=C);break}case io.C:{var _=t[m++],T=t[m++],k=t[m++],C=t[m++],D=t[m++],P=t[m++];S=Clt(a,s,_,T,k,C,D,P,10),a=D,s=P;break}case io.Q:{var _=t[m++],T=t[m++],k=t[m++],C=t[m++];S=Tlt(a,s,_,T,k,C,10),a=k,s=C;break}case io.A:var M=t[m++],$=t[m++],I=t[m++],N=t[m++],F=t[m++],W=t[m++],U=W+F;m+=1,y&&(l=Cv(F)*I+M,c=wv(F)*N+$),S=BN(I,N)*$N(zp,Math.abs(W)),a=Cv(U)*I+M,s=wv(U)*N+$;break;case io.R:{l=a=t[m++],c=s=t[m++];var G=t[m++],Z=t[m++];S=G*2+Z*2;break}case io.Z:{var x=l-a,E=c-s;S=Math.sqrt(x*x+E*E),a=l,s=c;break}}S>=0&&(d[p++]=S,h+=S)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,n){var r=this.data,o=this._ux,a=this._uy,s=this._len,l,c,d,h,p,m,g=n<1,y,S,k=0,C=0,x,E=0,_,T;if(!(g&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,S=this._pathLen,x=n*S,!x)))e:for(var D=0;D0&&(t.lineTo(_,T),E=0),P){case io.M:l=d=r[D++],c=h=r[D++],t.moveTo(d,h);break;case io.L:{p=r[D++],m=r[D++];var $=lh(p-d),I=lh(m-h);if($>o||I>a){if(g){var N=y[C++];if(k+N>x){var F=(x-k)/N;t.lineTo(d*(1-F)+p*F,h*(1-F)+m*F);break e}k+=N}t.lineTo(p,m),d=p,h=m,E=0}else{var W=$*$+I*I;W>E&&(_=p,T=m,E=W)}break}case io.C:{var U=r[D++],G=r[D++],Z=r[D++],oe=r[D++],X=r[D++],H=r[D++];if(g){var N=y[C++];if(k+N>x){var F=(x-k)/N;Q8(d,U,Z,X,F,kv),Q8(h,G,oe,H,F,xv),t.bezierCurveTo(kv[1],xv[1],kv[2],xv[2],kv[3],xv[3]);break e}k+=N}t.bezierCurveTo(U,G,Z,oe,X,H),d=X,h=H;break}case io.Q:{var U=r[D++],G=r[D++],Z=r[D++],oe=r[D++];if(g){var N=y[C++];if(k+N>x){var F=(x-k)/N;eT(d,U,Z,F,kv),eT(h,G,oe,F,xv),t.quadraticCurveTo(kv[1],xv[1],kv[2],xv[2]);break e}k+=N}t.quadraticCurveTo(U,G,Z,oe),d=Z,h=oe;break}case io.A:var q=r[D++],Q=r[D++],ne=r[D++],ae=r[D++],re=r[D++],Se=r[D++],xe=r[D++],ve=!r[D++],be=ne>ae?ne:ae,Ve=lh(ne-ae)>.001,Je=re+Se,Me=!1;if(g){var N=y[C++];k+N>x&&(Je=re+Se*(x-k)/N,Me=!0),k+=N}if(Ve&&t.ellipse?t.ellipse(q,Q,ne,ae,xe,re,Je,ve):t.arc(q,Q,be,re,Je,ve),Me)break e;M&&(l=Cv(re)*ne+q,c=wv(re)*ae+Q),d=Cv(Je)*ne+q,h=wv(Je)*ae+Q;break;case io.R:l=d=r[D],c=h=r[D+1],p=r[D++],m=r[D++];var je=r[D++],ge=r[D++];if(g){var N=y[C++];if(k+N>x){var _e=x-k;t.moveTo(p,m),t.lineTo(p+$N(_e,je),m),_e-=je,_e>0&&t.lineTo(p+je,m+$N(_e,ge)),_e-=ge,_e>0&&t.lineTo(p+BN(je-_e,0),m+ge),_e-=je,_e>0&&t.lineTo(p,m+BN(ge-_e,0));break e}k+=N}t.rect(p,m,je,ge);break;case io.Z:if(g){var N=y[C++];if(k+N>x){var F=(x-k)/N;t.lineTo(d*(1-F)+l*F,h*(1-F)+c*F);break e}k+=N}t.closePath(),d=l,h=c}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=io,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function u1(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+=Q2);var m=Math.atan2(c,l);return m<0&&(m+=Q2),m>=r&&m<=o||m+Q2>=r&&m+Q2<=o}function Ev(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var Ep=Rm.CMD,Tv=Math.PI*2,rct=1e-4;function ict(e,t){return Math.abs(e-t)t&&d>r&&d>a&&d>l||d1&&oct(),g=Va(t,r,a,l,Rc[0]),m>1&&(y=Va(t,r,a,l,Rc[1]))),m===2?kt&&l>r&&l>a||l=0&&d<=1){for(var h=0,p=bu(t,r,a,d),m=0;mn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);jl[0]=-c,jl[1]=c;var d=Math.abs(r-o);if(d<1e-4)return 0;if(d>=Tv-1e-4){r=0,o=Tv;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+=Tv,o+=Tv);for(var m=0,g=0;g<2;g++){var y=jl[g];if(y+e>s){var S=Math.atan2(l,y),h=a?1:-1;S<0&&(S=Tv+S),(S>=r&&S<=o||S+Tv>=r&&S+Tv<=o)&&(S>Math.PI/2&&S1&&(n||(l+=Ev(c,d,h,p,r,o))),k&&(c=a[y],d=a[y+1],h=c,p=d),S){case Ep.M:h=a[y++],p=a[y++],c=h,d=p;break;case Ep.L:if(n){if(u1(c,d,a[y],a[y+1],t,r,o))return!0}else l+=Ev(c,d,a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ep.C:if(n){if(ect(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=sct(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ep.Q:if(n){if(tct(c,d,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+1],r,o)||0;c=a[y++],d=a[y++];break;case Ep.A:var C=a[y++],x=a[y++],E=a[y++],_=a[y++],T=a[y++],D=a[y++];y+=1;var P=!!(1-a[y++]);m=Math.cos(T)*E+C,g=Math.sin(T)*_+x,k?(h=m,p=g):l+=Ev(c,d,m,g,r,o);var M=(r-C)*_/E+C;if(n){if(nct(C,x,_,T,T+D,P,t,M,o))return!0}else l+=lct(C,x,_,T,T+D,P,M,o);c=Math.cos(T+D)*E+C,d=Math.sin(T+D)*_+x;break;case Ep.R:h=c=a[y++],p=d=a[y++];var $=a[y++],I=a[y++];if(m=h+$,g=p+I,n){if(u1(h,p,m,p,t,r,o)||u1(m,p,m,g,t,r,o)||u1(m,g,h,g,t,r,o)||u1(h,g,h,p,t,r,o))return!0}else l+=Ev(m,p,m,g,r,o),l+=Ev(h,g,h,p,r,o);break;case Ep.Z:if(n){if(u1(c,d,h,p,t,r,o))return!0}else l+=Ev(c,d,h,p,r,o);c=h,d=p;break}}return!n&&!ict(d,p)&&(l+=Ev(c,d,h,p,r,o)||0),l!==0}function uct(e,t,n){return Eme(e,0,!1,t,n)}function cct(e,t,n,r){return Eme(e,t,!0,n,r)}var Tme=lo({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pm),dct={style:lo({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fA.style)},jN=a_.concat(["invisible","culling","z","z2","zlevel","parent"]),po=(function(e){Fn(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?Klt:VV}else if(n)return VV}return jV},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(yr(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=tT(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&R1)&&(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)),cct(l,c/d,n,r)))return!0}if(this.hasFill())return uct(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=R1,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:_n(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&R1)},t.prototype.createStyle=function(n){return aA(Tme,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=_n({},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=_n({},o.shape),_n(d,r.shape)):(d=_n({},a?this.shape:o.shape),_n(d,r.shape)):c&&(d=o.shape),d)if(s){this.shape=_n({},this.shape);for(var h={},p=Qo(d),m=0;m0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return aA(fct,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})(aS);sT.prototype.type="tspan";var hct=lo({x:0,y:0},pm),pct={style:lo({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fA.style)};function vct(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var B0=(function(e){Fn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return aA(hct,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=vct(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 pct},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ao(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(aS);B0.prototype.type="image";function mct(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 U1=Math.round;function Ame(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&&(U1(r*2)===U1(o*2)&&(e.x1=e.x2=Yv(r,l,!0)),U1(a*2)===U1(s*2)&&(e.y1=e.y2=Yv(a,l,!0))),e}}function Ime(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=Yv(r,l,!0),e.y=Yv(o,l,!0),e.width=Math.max(Yv(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(Yv(o+s,l,!1)-e.y,s===0?0:1)),e}}function Yv(e,t,n){if(!t)return e;var r=U1(e*2);return(r+U1(t))%2===0?r/2:(r+(n?1:-1))/2}var gct=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),yct={},Zs=(function(e){Fn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new gct},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Ime(yct,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?mct(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(po);Zs.prototype.type="rect";var Bie={fill:"#000"},Nie=2,bct={style:lo({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},fA.style)},Ja=(function(e){Fn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Bie,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,F=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),W=s.calculatedLineHeight,U=0;U=0&&(U=D[W],U.align==="right");)this._placeToken(U,n,M,C,F,"right",E),$-=U.width,F-=U.width,W--;for(N+=(a-(N-k)-(x-F)-$)/2;I<=W;)U=D[I],this._placeToken(U,n,M,C,N+U.width/2,"center",E),N+=U.width,I++;C+=M}},t.prototype._placeToken=function(n,r,o,a,s,l,c){var d=r.rich[n.styleName]||{};d.text=n.text;var h=n.verticalAlign,p=a+o/2;h==="top"?p=a+n.height/2:h==="bottom"&&(p=a+o-n.height/2);var m=!n.isLineHolder&&VN(d);m&&this._renderBackground(d,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!d.backgroundColor,y=n.textPadding;y&&(s=Hie(s,l,y),p-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(sT),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,x=!1,E=0,_=Uie("fill"in d?d.fill:"fill"in r?r.fill:(x=!0,C.fill)),T=zie("stroke"in d?d.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||x)?(E=Nie,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||Lm,k.opacity=db(d.opacity,r.opacity,1),jie(k,d),T&&(k.lineWidth=db(d.lineWidth,r.lineWidth,E),k.lineDash=vi(d.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=T),_&&(k.fill=_);var P=n.contentWidth,M=n.contentHeight;S.setBoundingRect(new ao(L4(k.x,P,k.textAlign),M1(k.y,M,k.textBaseline),P,M))},t.prototype._renderBackground=function(n,r,o,a,s,l){var c=n.backgroundColor,d=n.borderWidth,h=n.borderColor,p=c&&c.image,m=c&&!p,g=n.borderRadius,y=this,S,k;if(m||n.lineHeight||d&&h){S=this._getOrCreateChild(Zs),S.useStyle(S.createStyle()),S.style.fill=null;var C=S.shape;C.x=o,C.y=a,C.width=s,C.height=l,C.r=g,S.dirtyShape()}if(m){var x=S.style;x.fill=c||null,x.fillOpacity=vi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(B0),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=vi(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=db(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return xct(n)&&(r=[n.fontStyle,n.fontWeight,kct(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&ff(r)||n.textFont||n.font},t})(aS),_ct={left:!0,right:1,center:1},Sct={top:1,bottom:1,middle:1},Fie=["fontStyle","fontWeight","fontSize","fontFamily"];function kct(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 jie(e,t){for(var n=0;n=0,a=!1;if(e instanceof po){var s=Lme(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(c1(l)||c1(c)){r=r||{};var d=r.style||{};d.fill==="inherit"?(a=!0,r=_n({},r),d=_n({},d),d.fill=l):!c1(d.fill)&&c1(l)?(a=!0,r=_n({},r),d=_n({},d),d.fill=pie(l)):!c1(d.stroke)&&c1(c)&&(a||(r=_n({},r),d=_n({},d)),d.stroke=pie(c)),r.style=d}}if(r&&r.z2==null){a||(r=_n({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Ect)}return r}function Pct(e,t,n){if(n&&n.z2==null){n=_n({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Tct)}return n}function Rct(e,t,n){var r=mo(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:Lct(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=_n({},n),s=_n({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 Dct(this,e,t,n);if(e==="blur")return Rct(this,e,n);if(e==="select")return Pct(this,e,n)}return n}function Mct(e){e.stateProxy=zN;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=zN),n&&(n.stateProxy=zN)}function Xie(e,t){!Bme(e,t)&&!e.__highByOuter&&Zh(e,Dme)}function Zie(e,t){!Bme(e,t)&&!e.__highByOuter&&Zh(e,Pme)}function lT(e,t){e.__highByOuter|=1<<(t||0),Zh(e,Dme)}function uT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Zh(e,Pme)}function Oct(e){Zh(e,bW)}function Mme(e){Zh(e,Rme)}function Ome(e){Zh(e,Act)}function $me(e){Zh(e,Ict)}function Bme(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Nme(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){Rme(d)}),l&&n.push(a)),s.isBlured=!1}),Et(r,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function KV(e,t,n,r){var o=r.getModel();n=n||"coordinateSystem";function a(d,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function YV(e,t,n){Fme(e,!0),Zh(e,Mct),zct(e,t,n)}function Vct(e){Fme(e,!1)}function c_(e,t,n,r){r?Vct(e):YV(e,t,n)}function zct(e,t,n){var r=Yi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Qie=["emphasis","blur","select"],Uct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cT(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*(m*m))/(s*s*(g*g)+l*l*(m*m)))||0,k=S*s*g/l,C=S*-l*m/s,x=(e+n)/2+Bx(p)*k-$x(p)*C,E=(t+r)/2+$x(p)*k+Bx(p)*C,_=roe([1,0],[(m-k)/s,(g-C)/l]),T=[(m-k)/s,(g-C)/l],D=[(-1*m-k)/s,(-1*g-C)/l],P=roe(T,D);if(JV(T,D)<=-1&&(P=e4),JV(T,D)>=1&&(P=0),P<0){var M=Math.round(P/e4*1e6)/1e6;P=e4*2+M%2*e4}h.addData(d,x,E,s,l,_,P,p,a)}var Yct=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Xct=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zct(e){var t=new Rm;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=Rm.CMD,c=e.match(Yct);if(!c)return t;for(var d=0;dU*U+G*G&&(M=I,$=N),{cx:M,cy:$,x0:-h,y0:-p,x1:M*(o/T-1),y1:$*(o/T-1)}}function odt(e){var t;if(er(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 sdt(e,t){var n,r=D4(t.r,0),o=D4(t.r0||0,0),a=r>0,s=o>0;if(!(!a&&!s)){if(a||(r=o,o=0),o>r){var l=r;r=o,o=l}var c=t.startAngle,d=t.endAngle;if(!(isNaN(c)||isNaN(d))){var h=t.cx,p=t.cy,m=!!t.clockwise,g=ooe(d-c),y=g>HN&&g%HN;if(y>pd&&(g=y),!(r>pd))e.moveTo(h,p);else if(g>HN-pd)e.moveTo(h+r*f1(c),p+r*Av(c)),e.arc(h,p,r,c,d,!m),o>pd&&(e.moveTo(h+o*f1(d),p+o*Av(d)),e.arc(h,p,o,d,c,m));else{var S=void 0,k=void 0,C=void 0,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0,P=void 0,M=void 0,$=void 0,I=void 0,N=void 0,F=void 0,W=void 0,U=void 0,G=r*f1(c),Z=r*Av(c),oe=o*f1(d),X=o*Av(d),H=g>pd;if(H){var q=t.cornerRadius;q&&(n=odt(q),S=n[0],k=n[1],C=n[2],x=n[3]);var Q=ooe(r-o)/2;if(E=Zd(Q,C),_=Zd(Q,x),T=Zd(Q,S),D=Zd(Q,k),$=P=D4(E,_),I=M=D4(T,D),(P>pd||M>pd)&&(N=r*f1(d),F=r*Av(d),W=o*f1(c),U=o*Av(c),gpd){var Ve=Zd(C,$),Je=Zd(x,$),Me=Nx(W,U,G,Z,r,Ve,m),je=Nx(N,F,oe,X,r,Je,m);e.moveTo(h+Me.cx+Me.x0,p+Me.cy+Me.y0),$0&&e.arc(h+Me.cx,p+Me.cy,Ve,ll(Me.y0,Me.x0),ll(Me.y1,Me.x1),!m),e.arc(h,p,r,ll(Me.cy+Me.y1,Me.cx+Me.x1),ll(je.cy+je.y1,je.cx+je.x1),!m),Je>0&&e.arc(h+je.cx,p+je.cy,Je,ll(je.y1,je.x1),ll(je.y0,je.x0),!m))}else e.moveTo(h+G,p+Z),e.arc(h,p,r,c,d,!m);if(!(o>pd)||!H)e.lineTo(h+oe,p+X);else if(I>pd){var Ve=Zd(S,I),Je=Zd(k,I),Me=Nx(oe,X,N,F,o,-Je,m),je=Nx(G,Z,W,U,o,-Ve,m);e.lineTo(h+Me.cx+Me.x0,p+Me.cy+Me.y0),I0&&e.arc(h+Me.cx,p+Me.cy,Je,ll(Me.y0,Me.x0),ll(Me.y1,Me.x1),!m),e.arc(h,p,o,ll(Me.cy+Me.y1,Me.cx+Me.x1),ll(je.cy+je.y1,je.cx+je.x1),m),Ve>0&&e.arc(h+je.cx,p+je.cy,Ve,ll(je.y1,je.x1),ll(je.y0,je.x0),!m))}else e.lineTo(h+oe,p+X),e.arc(h,p,o,d,c,m)}e.closePath()}}}var adt=(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})(),N0=(function(e){Fn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new adt},t.prototype.buildPath=function(n,r){sdt(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(po);N0.prototype.type="sector";var ldt=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),kW=(function(e){Fn(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){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})(po);kW.prototype.type="ring";function udt(e,t,n,r){var o=[],a=[],s=[],l=[],c,d,h,p;if(r){h=[1/0,1/0],p=[-1/0,-1/0];for(var m=0,g=e.length;m=2){if(r){var a=udt(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;lLv[1]){if(l=!1,a)return l;var h=Math.abs(Lv[0]-Iv[1]),p=Math.abs(Iv[0]-Lv[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,m=h.delay,g=h.easing,y={duration:p,delay:m||0,easing:g,done:a,force:!!a||!!s,setToFinal:!d,scope:e,during:s};l?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function eu(e,t,n,r,o,a){wW("update",e,t,n,r,o,a)}function Hc(e,t,n,r,o,a){wW("enter",e,t,n,r,o,a)}function bb(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 loe(e){return!e.isGroup}function Ddt(e){return e.shape!=null}function Xme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){loe(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Ddt(s)&&(l.shape=_n({},s.shape)),l}var a=r(e);t.traverse(function(s){if(loe(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),eu(s,c,n,Yi(s).dataIndex)}}})}function Pdt(e,t){return wr(e,function(n){var r=n[0];r=pT(r,t.x),r=vT(r,t.x+t.width);var o=n[1];return o=pT(o,t.y),o=vT(o,t.y+t.height),[r,o]})}function Rdt(e,t){var n=pT(e.x,t.x),r=vT(e.x+e.width,t.x+t.width),o=pT(e.y,t.y),a=vT(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=_n({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),lo(o,n),new B0(r)):TW(e.replace("path://",""),r,n,"center")}function Mdt(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=WN(g,y,h,p)/m;return!(k<0||k>1)}function WN(e,t,n,r){return e*r-n*t}function Odt(e){return e<=1e-6&&e>=-1e-6}function yA(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=yr(t)?{formatter:t}:t,a=n.mainType,s=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=s;var c=e.formatterParamsExtra;c&&Et(Qo(c),function(h){Dm(l,h)||(l[h]=c[h],l.$vars.push(h))});var d=Yi(e.el);d.componentMainType=a,d.componentIndex=s,d.tooltipConfig={name:r,option:lo({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function uoe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function bA(e,t){if(e)if(er(e))for(var n=0;n=0&&l.push(c)}),l}}function ege(e,t){return so(so({},e,!0),t,!0)}const Zdt={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:". "}}}},Jdt={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 mT="ZH",LW="EN",cy=LW,oE={},DW={},tge=Vr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||cy).toUpperCase();return e.indexOf(mT)>-1?mT:cy})():cy;function nge(e,t){e=e.toUpperCase(),DW[e]=new ks(t),oE[e]=t}function Qdt(e){if(yr(e)){var t=oE[e.toUpperCase()]||{};return e===mT||e===LW?Vi(t):so(Vi(t),Vi(oE[cy]),!1)}else return so(Vi(e),Vi(oE[cy]),!1)}function eft(e){return DW[e]}function tft(){return DW[cy]}nge(LW,Zdt);nge(mT,Jdt);var PW=1e3,RW=PW*60,_b=RW*60,Fc=_b*24,moe=Fc*365,P4={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}"},Vx="{yyyy}-{MM}-{dd}",goe={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vx,hour:Vx+" "+P4.hour,minute:Vx+" "+P4.minute,second:Vx+" "+P4.second,millisecond:P4.none},qN=["year","month","day","hour","minute","second","millisecond"],rge=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Tp(e,t){return e+="","0000".substr(0,t-e.length)+e}function dy(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 nft(e){return e===dy(e)}function rft(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xA(e,t,n,r){var o=Uh(e),a=o[MW(n)](),s=o[fy(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[CA(n)](),d=o["get"+(n?"UTC":"")+"Day"](),h=o[f_(n)](),p=(h-1)%12+1,m=o[wA(n)](),g=o[EA(n)](),y=o[TA(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof ks?r:eft(r||tge)||tft(),x=C.getModel("time"),E=x.get("month"),_=x.get("monthAbbr"),T=x.get("dayOfWeek"),D=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Tp(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Tp(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Tp(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Tp(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Tp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Tp(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,Tp(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Tp(y,3)).replace(/{S}/g,y+"")}function ift(e,t,n,r,o){var a=null;if(yr(n))a=n;else if(ei(n))a=n(e.value,t,{level:e.level});else{var s=_n({},P4);if(e.level>0)for(var l=0;l=0;--l)if(c[d]){a=c[d];break}a=a||s.none}if(er(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 xA(new Date(e.value),a,o,r)}function ige(e,t){var n=Uh(e),r=n[fy(t)]()+1,o=n[CA(t)](),a=n[f_(t)](),s=n[wA(t)](),l=n[EA(t)](),c=n[TA(t)](),d=c===0,h=d&&l===0,p=h&&s===0,m=p&&a===0,g=m&&o===1,y=g&&r===1;return y?"year":g?"month":m?"day":p?"hour":h?"minute":d?"second":"millisecond"}function yoe(e,t,n){var r=To(e)?Uh(e):e;switch(t=t||ige(e,n),t){case"year":return r[MW(n)]();case"half-year":return r[fy(n)]()>=6?1:0;case"quarter":return Math.floor((r[fy(n)]()+1)/4);case"month":return r[fy(n)]();case"day":return r[CA(n)]();case"half-day":return r[f_(n)]()/24;case"hour":return r[f_(n)]();case"minute":return r[wA(n)]();case"second":return r[EA(n)]();case"millisecond":return r[TA(n)]()}}function MW(e){return e?"getUTCFullYear":"getFullYear"}function fy(e){return e?"getUTCMonth":"getMonth"}function CA(e){return e?"getUTCDate":"getDate"}function f_(e){return e?"getUTCHours":"getHours"}function wA(e){return e?"getUTCMinutes":"getMinutes"}function EA(e){return e?"getUTCSeconds":"getSeconds"}function TA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function oft(e){return e?"setUTCFullYear":"setFullYear"}function oge(e){return e?"setUTCMonth":"setMonth"}function sge(e){return e?"setUTCDate":"setDate"}function age(e){return e?"setUTCHours":"setHours"}function lge(e){return e?"setUTCMinutes":"setMinutes"}function uge(e){return e?"setUTCSeconds":"setSeconds"}function cge(e){return e?"setUTCMilliseconds":"setMilliseconds"}function dge(e){if(!fut(e))return yr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function fge(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 AA=Uve;function ez(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&ff(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var s=t==="time",l=e instanceof Date;if(s||l){var c=s?Uh(e):e;if(isNaN(+c)){if(l)return"-"}else return xA(c,r,n)}if(t==="ordinal")return CV(e)?o(e):To(e)&&a(e)?e+"":"-";var d=oT(e);return a(d)?dge(d):CV(e)?o(e):typeof e=="boolean"?e+"":"-"}var boe=["a","b","c","d","e","f","g"],YN=function(e,t){return"{"+e+(t??"")+"}"};function hge(e,t,n){er(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 Mm(e,t){return t=t||"transparent",yr(e)?e:Ir(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function _oe(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var sE=Et,aft=["left","right","top","bottom","width","height"],zx=[["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),m=p&&p.getBoundingRect(),g,y;if(e==="horizontal"){var S=h.width+(m?-m.x+h.x:0);g=a+S,g>r||c.newline?(a=0,g=S,s+=l+n,l=h.height):l=Math.max(l,h.height)}else{var k=h.height+(m?-m.y+h.y:0);y=s+k,y>o||c.newline?(a+=l+n,s=0,y=k,l=h.width):l=Math.max(l,h.width)}c.newline||(c.x=a,c.y=s,c.markRedraw(),e==="horizontal"?a=g+n:s=y+n)})}var Sb=OW;Ps(OW,"vertical");Ps(OW,"horizontal");function $y(e,t,n){n=AA(n||0);var r=t.width,o=t.height,a=Zo(e.left,r),s=Zo(e.top,o),l=Zo(e.right,r),c=Zo(e.bottom,o),d=Zo(e.width,r),h=Zo(e.height,o),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=r-l-m-a),isNaN(h)&&(h=o-c-p-s),g!=null&&(isNaN(d)&&isNaN(h)&&(g>r/o?d=r*.8:h=o*.8),isNaN(d)&&(d=g*h),isNaN(h)&&(h=d/g)),isNaN(a)&&(a=r-l-d-m),isNaN(s)&&(s=o-c-h-p),e.left||e.right){case"center":a=r/2-d/2-n[3];break;case"right":a=r-d-m;break}switch(e.top||e.bottom){case"middle":case"center":s=o/2-h/2-n[0];break;case"bottom":s=o-h-p;break}a=a||0,s=s||0,isNaN(d)&&(d=r-m-a-(l||0)),isNaN(h)&&(h=o-p-s-(c||0));var y=new ao(a+n[3],s+n[0],d,h);return y.margin=n,y}function h_(e){var t=e.layoutMode||e.constructor.layoutMode;return Ir(t)?t:t?{type:t}:null}function By(e,t,n){var r=n&&n.ignoreSize;!er(r)&&(r=[r,r]);var o=s(zx[0],0),a=s(zx[1],1);d(zx[0],e,o),d(zx[1],e,a);function s(h,p){var m={},g=0,y={},S=0,k=2;if(sE(h,function(E){y[E]=e[E]}),sE(h,function(E){l(t,E)&&(m[E]=y[E]=t[E]),c(m,E)&&g++,c(y,E)&&S++}),r[p])return c(t,h[1])?y[h[2]]=null:c(t,h[2])&&(y[h[1]]=null),y;if(S===k||!g)return y;if(g>=k)return m;for(var C=0;C=0;c--)l=so(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return sS(this.ecModel,n,{index:this.get(o,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(ks);_me(fo,ks);cA(fo);Ydt(fo);Xdt(fo,cft);function cft(e){var t=[];return Et(fo.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=wr(t,function(n){return hf(n).main}),e!=="dataset"&&mo(t,"dataset")<=0&&t.unshift("dataset"),t}var pge="";typeof navigator<"u"&&(pge=navigator.platform||"");var h1="rgba(0, 0, 0, 0.2)";const dft={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:h1,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:h1,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:h1,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:h1,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:h1,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:h1,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pge.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 vge=Si(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),td="original",Mu="arrayRows",Nd="objectRows",Rf="keyedColumns",h0="typedArray",mge="unknown",Ph="column",f3="row",$a={Must:1,Might:2,Not:3},gge=$s();function fft(e){gge(e).datasetMap=Si()}function hft(e,t,n){var r={},o=$W(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=gge(l).datasetMap,d=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),Et(e,function(S,k){var C=Ir(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=y(C)),r[C.name]=[]});var m=c.get(d)||c.set(d,{categoryWayDim:p,valueWayDim:0});Et(e,function(S,k){var C=S.name,x=y(S);if(h==null){var E=m.valueWayDim;g(r[C],E,x),g(s,E,x),m.valueWayDim+=x}else if(h===k)g(r[C],0,x),g(a,0,x);else{var E=m.categoryWayDim;g(r[C],E,x),g(s,E,x),m.categoryWayDim+=x}});function g(S,k,C){for(var x=0;xt)return e[r];return e[n-1]}function bft(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:yft(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 _ft(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ux,t4,koe,xoe="\0_ec_inner",Sft=1,NW=(function(e){Fn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,o,a,s,l){a=a||{},this.option=null,this._theme=new ks(a),this._locale=new ks(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=Eoe(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Eoe(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"?koe(this,s):(this.restoreData(),this._mergeOption(s,r)),o=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=a.getTimelineOption(this);l&&(o=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var c=a.getMediaOption(this);c.length&&Et(c,function(d){o=!0,this._mergeOption(d,r)},this)}return o},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var o=this.option,a=this._componentsMap,s=this._componentsCount,l=[],c=Si(),d=r&&r.replaceMergeMainTypeMap;fft(this),Et(n,function(p,m){p!=null&&(fo.hasClass(m)?m&&(l.push(m),c.set(m,!0)):o[m]=o[m]==null?Vi(p):so(o[m],p,!0))}),d&&d.each(function(p,m){fo.hasClass(m)&&!c.get(m)&&(l.push(m),c.set(m,!0))}),fo.topologicalTravel(l,fo.getAllClassMainTypes(),h,this);function h(p){var m=gft(this,p,Zl(n[p])),g=a.get(p),y=g?d&&d.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=vut(g,m,y);kut(S,p,fo),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],x=0,E;Et(S,function(_,T){var D=_.existing,P=_.newOption;if(!P)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var M=p==="series",$=fo.getClass(p,_.keyInfo.subType,!M);if(!$)return;if(p==="tooltip"){if(E)return;E=!0}if(D&&D.constructor===$)D.name=_.keyInfo.name,D.mergeOption(P,this),D.optionUpdated(P,!1);else{var I=_n({componentIndex:T},_.keyInfo);D=new $(P,this,this,I),_n(D,I),_.brandNew&&(D.__requireNewView=!0),D.init(P,this,this),D.optionUpdated(null,!0)}}D?(k.push(D.option),C.push(D),x++):(k.push(void 0),C.push(void 0))},this),o[p]=k,a.set(p,C),s.set(p,x),p==="series"&&Ux(this)}this._seriesIndices||Ux(this)},t.prototype.getOption=function(){var n=Vi(this.option);return Et(n,function(r,o){if(fo.hasClass(o)){for(var a=Zl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!l_(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[xoe],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 Lft(e,t){return e.join(",")===t.join(",")}var ud=Et,p_=Ir,Toe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ZN(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Toe.length;n=0;k--){var C=e[k];if(l||(y=C.data.rawIndexOf(C.stackedByDimension,g)),y>=0){var x=C.data.getByRawIndex(C.stackResultDimension,y);if(c==="all"||c==="positive"&&x>0||c==="negative"&&x<0||c==="samesign"&&m>=0&&x>0||c==="samesign"&&m<=0&&x<0){m=uut(m,x),S=x;break}}}return r[0]=m,r[1]=S,r})})}var LA=(function(){function e(t){this.data=t.data||(t.sourceFormat===Rf?{}:[]),this.sourceFormat=t.sourceFormat||mge,this.seriesLayoutBy=t.seriesLayoutBy||Ph,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rS&&(S=E)}g[0]=y,g[1]=S}},o=function(){return this._data?this._data.length/this._dimSize:0};Moe=(t={},t[Mu+"_"+Ph]={pure:!0,appendData:a},t[Mu+"_"+f3]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Nd]={pure:!0,appendData:a},t[Rf]={pure:!0,appendData:function(s){var l=this._data;Et(s,function(c,d){for(var h=l[d]||(l[d]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[td]={appendData:a},t[h0]={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 Ny(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Noe(e){var t,n;return Ir(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function kb(e){return new qft(e)}var qft=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var s=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),d=t&&t.modDataCount||0;(s!==c||l!==d)&&(a="reset");function h(x){return!(x>=1)&&(x=1),x}var p;(this._dirty||a==="reset")&&(this._dirty=!1,p=this._doReset(r)),this._modBy=c,this._modDataCount=d;var m=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,y=Math.min(m!=null?this._dueIndex+m:1/0,this._dueEnd);if(!r&&(p||g1&&r>0?l:s}};return a;function s(){return t=e?null:co?-this._resultLT:0},e})(),Xft=(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 aE(t,n)},e})();function Zft(e,t){var n=new Xft,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Ph&&_u(s);var l=[],c={},d=e.dimensionsDefine;if(d)Et(d,function(S,k){var C=S.name,x={index:k,name:C,displayName:S.displayName};if(l.push(x),C!=null){var E="";Dm(c,C)&&_u(E),c[C]=x}});else for(var h=0;h65535?oht:sht}function v1(){return[1/0,-1/0]}function aht(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Voe(e,t,n,r,o){var a=Pge[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=wr(s,function(x){return x.property}),h=0;hC[1]&&(C[1]=k)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)a=s-1;else return s}return-1},e.prototype.indicesOfNearest=function(t,n,r){var o=this._chunks,a=o[t],s=[];if(!a)return s;r==null&&(r=1/0);for(var l=1/0,c=-1,d=0,h=0,p=this.count();h=0&&c<0)&&(l=y,c=g,d=0),g===c&&(s[d++]=h))}return s.length=d,s},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,o=this._count;if(r===Array){t=new r(o);for(var a=0;a=p&&x<=m||isNaN(x))&&(c[d++]=S),S++}y=!0}else if(a===2){for(var k=g[o[0]],E=g[o[1]],_=t[o[1]][0],T=t[o[1]][1],C=0;C=p&&x<=m||isNaN(x))&&(D>=_&&D<=T||isNaN(D))&&(c[d++]=S),S++}y=!0}}if(!y)if(a===1)for(var C=0;C=p&&x<=m||isNaN(x))&&(c[d++]=P)}else for(var C=0;Ct[I][1])&&(M=!1)}M&&(c[d++]=n.getRawIndex(C))}return dC[1]&&(C[1]=k)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),o=r._chunks,a=o[t],s=this.count(),l=0,c=Math.floor(1/n),d=this.getRawIndex(0),h,p,m,g=new(p1(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=d;for(var y=1;yh&&(h=p,m=_)}N>0&&Nl&&(S=l-h);for(var k=0;ky&&(y=x,g=h+k)}var E=this.getRawIndex(p),_=this.getRawIndex(g);ph-y&&(c=h-y,l.length=c);for(var S=0;Sp[1]&&(p[1]=C),m[g++]=x}return a._count=g,a._indices=m,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,o=this._chunks,a=0,s=this.count();ac&&(c=p)}return s=[l,c],this._extent[t]=s,s},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],o=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,o,a){return aE(n[a],this._dimensions[a])}eF={arrayRows:t,objectRows:function(n,r,o,a){return aE(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return aE(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),lht=(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(Hx(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)?h0:td,a=[];var p=this._getSourceMetaRawOption()||{},m=d&&d.metaRawOption||{},g=vi(p.seriesLayoutBy,m.seriesLayoutBy)||null,y=vi(p.sourceHeader,m.sourceHeader),S=vi(p.dimensions,m.dimensions),k=g!==m.seriesLayoutBy||!!y!=!!m.sourceHeader||S;o=k?[tz(l,{seriesLayoutBy:g,sourceHeader:y,dimensions:S},c)]:[]}else{var C=t;if(r){var x=this._applyTransform(n);o=x.sourceList,a=x.upstreamSignList}else{var E=C.get("source",!0);o=[tz(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(o,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(o!=null){var a="";t.length!==1&&zoe(a)}var s,l=[],c=[];return Et(t,function(d){d.prepareSource();var h=d.getSource(o||0),p="";o!=null&&!h&&zoe(p),l.push(h),c.push(d._getVersionSign())}),r?s=rht(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[jft(l[0])]),{sourceList:s,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return Et(e.blocks,function(o){var a=$ge(o);a>=t&&(t=a+ +(r&&(!a||rz(o)&&!o.noHeader)))}),t}return 0}function fht(e,t,n,r){var o=t.noHeader,a=pht($ge(t)),s=[],l=t.blocks||[];zh(!l||er(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(Dm(d,c)){var h=new Yft(d[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}Et(l,function(S,k){var C=t.valueFormatter,x=Oge(S)(C?_n(_n({},e),{valueFormatter:C}):e,S,k>0?a.html:0,r);x!=null&&s.push(x)});var p=e.renderMode==="richText"?s.join(a.richText):iz(r,s.join(""),o?n:a.html);if(o)return p;var m=ez(t.header,"ordinal",e.useUTC),g=Mge(r,e.renderMode).nameStyle,y=Rge(r);return e.renderMode==="richText"?Bge(e,m,g)+a.richText+p:iz(r,'
'+yu(m)+"
"+p,n)}function hht(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 _=er(_)?_:[_],wr(_,function(T,D){return ez(T,er(g)?g[D]:g,d)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=a?"":ez(c,"ordinal",d),g=t.valueType,y=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=Mge(r,o),x=C.nameStyle,E=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":Bge(e,m,x))+(s?"":ght(e,y,S,k,E)):iz(r,(l?"":p)+(a?"":vht(m,!l,x))+(s?"":mht(y,S,k,E)),n)}}function Uoe(e,t,n,r,o,a){if(e){var s=Oge(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function pht(e){return{html:cht[e],richText:dht[e]}}function iz(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=Rge(e);return'
'+t+r+"
"}function vht(e,t,n){var r=t?"margin-left:2px":"";return''+yu(e)+""}function mht(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=er(e)?e:[e],''+wr(e,function(s){return yu(s)}).join("  ")+""}function Bge(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ght(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(er(t)?t.join(" "):t,a)}function yht(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Mm(r)}function Nge(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var tF=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=pme()}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=sft({color:n,type:t,renderMode:r,markerId:o});return yr(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};er(n)?Et(n,function(a){return _n(r,a)}):_n(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function bht(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=er(l),d=yht(t,n),h,p,m,g;if(s>1||c&&!s){var y=_ht(l,t,n,a,d);h=y.inlineValues,p=y.inlineValueTypes,m=y.blocks,g=y.inlineValues[0]}else if(s){var S=o.getDimensionInfo(a[0]);g=h=Ny(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 v_("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[v_("nameValue",{markerType:"item",markerColor:d,name:E,noName:!ff(E),value:h,valueType:p,dataIndex:n})].concat(m||[])})}function _ht(e,t,n,r,o){var a=t.getData(),s=C0(e,function(p,m,g){var y=a.getDimensionInfo(g);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],c=[],d=[];r.length?Et(r,function(p){h(Ny(a,n,p),p)}):Et(e,h);function h(p,m){var g=a.getDimensionInfo(m);!g||g.otherDims.tooltip===!1||(s?d.push(v_("nameValue",{markerType:"subItem",markerColor:o,name:g.displayName,value:p,valueType:g.type})):(l.push(p),c.push(g.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:d}}var Ap=$s();function Wx(e,t){return e.getName(t)||e.getId(t)}var Sht="__universalTransitionEnabled",Md=(function(e){Fn(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=kb({count:xht,reset:Cht}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=Ap(this).sourceManager=new lht(this);a.prepareSource();var s=this.getInitialData(n,o);Woe(s,this),this.dataTask.context.data=s,Ap(this).dataBeforeProcessed=s,Hoe(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=h_(this),a=o?IA(n):{},s=this.subType;fo.hasClass(s)&&(s+="Series"),so(n,r.getTheme().get(this.subType)),so(n,this.getDefaultOption()),UV(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&By(n,a,o)},t.prototype.mergeOption=function(n,r){n=so(this.option,n,!0),this.fillDataTextStyle(n.data);var o=h_(this);o&&By(this.option,n,o);var a=Ap(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);Woe(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Ap(this).dataBeforeProcessed=s,Hoe(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[Wx(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Sht])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"){Ir(s.selectedMap)||(s.selectedMap={});for(var d=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return fo.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})(fo);Df(Md,Kft);Df(Md,BW);_me(Md,fo);function Hoe(e){var t=e.name;pW(e)||(e.name=kht(e)||t)}function kht(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Et(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function xht(e){return e.model.getRawData().count()}function Cht(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),wht}function wht(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Woe(e,t){Et(Hat(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ps(Eht,t))})}function Eht(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=kA("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);cA(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 Fge=$s(),Tht=UW(),Wc=(function(){function e(){this.group=new Za,this.uid=kA("viewChart"),this.renderTask=kb({plan:Aht,reset:Iht}),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&&Koe(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Koe(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){bA(this.group,t)},e.markUpdateMethod=function(t,n){Fge(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Goe(e,t,n){e&&XV(e)&&(t==="emphasis"?lT:uT)(e,n)}function Koe(e,t,n){var r=Pm(e,t),o=t&&t.highlightKey!=null?Hct(t.highlightKey):null;r!=null?Et(Zl(r),function(a){Goe(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Goe(a,n,o)})}mW(Wc);cA(Wc);function Aht(e){return Tht(e.model)}function Iht(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&Fge(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),Lht[c]}var Lht={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)}}},gT="\0__throttleOriginMethod",qoe="\0__throttleRate",Yoe="\0__throttleType";function PA(e,t,n){var r,o=0,a=0,s=null,l,c,d,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,d||[])}var m=function(){for(var g=[],y=0;y=0?p():s=setTimeout(p,-l),o=r};return m.clear=function(){s&&(clearTimeout(s),s=null)},m.debounceNextCall=function(g){h=g},m}function jge(e,t,n,r){var o=e[t];if(o){var a=o[gT]||o,s=o[Yoe],l=o[qoe];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=PA(a,n,r==="debounce"),o[gT]=a,o[Yoe]=r,o[qoe]=n}return o}}function sz(e,t){var n=e[t];n&&n[gT]&&(n.clear&&n.clear(),e[t]=n[gT])}var Xoe=$s(),Zoe={itemStyle:u_(Qme,!0),lineStyle:u_(Jme,!0)},Dht={lineStyle:"stroke",itemStyle:"fill"};function Vge(e,t){var n=e.visualStyleMapper||Zoe[t];return n||(console.warn("Unknown style type '"+t+"'."),Zoe.itemStyle)}function zge(e,t){var n=e.visualDrawType||Dht[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Pht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=Vge(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=zge(e,r),d=s[c],h=ei(d)?d:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var m=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=m,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ei(s.fill)?m:s.fill,s.stroke=s.stroke==="auto"||ei(s.stroke)?m:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var S=e.getDataParams(y),k=_n({},s);k[c]=h(S),g.setItemVisual(y,"style",k)}}}},r4=new ks,Rht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=Vge(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){r4.option=c[r];var d=o(r4),h=s.ensureUniqueItemVisual(l,"style");_n(h,d),r4.option.decal&&(s.setItemVisual(l,"decal",r4.option.decal),r4.option.decal.dirty=!0),a in d&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Mht={performRawSeries:!0,overallReset:function(e){var t=Si();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)),Xoe(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=Xoe(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=zge(n,l);a.each(function(d){var h=a.getRawIndex(d);o[h]=d}),r.each(function(d){var h=o[d],p=a.getItemVisual(h,"colorFromPalette");if(p){var m=a.ensureUniqueItemVisual(h,"style"),g=r.getName(d)||d+"",y=r.count();m[c]=n.getColorFromPalette(g,s,y)}})}})}},Gx=Math.PI;function Oht(e,t){t=t||{},lo(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 gA({shape:{startAngle:-Gx/2,endAngle:-Gx/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:Gx*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:Gx*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 Uge=(function(){function e(t,n,r,o){this._stageTaskMap=Si(),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=Si();t.eachSeries(function(o){var a=o.getProgressive(),s=o.uid;r.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(o,o.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;Et(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";zh(!(o.reset&&o.overallReset),s),o.reset&&this._createSeriesStageTask(o,a,n,r),o.overallReset&&this._createOverallStageTask(o,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,o){var a=t.renderTask,s=a.context;s.model=n,s.ecModel=r,s.api=o,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,o){o=o||{};var a=!1,s=this;Et(t,function(c,d){if(!(o.visualType&&o.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,m=h.overallTask;if(m){var g,y=m.agentStubMap;y.each(function(k){l(o,k)&&(k.dirty(),g=!0)}),g&&m.dirty(),s.updatePayload(m,r);var S=s.getPerformArgs(m,o.block);y.each(function(k){k.perform(S)}),m.perform(S)&&(a=!0)}else p&&p.each(function(k,C){l(o,k)&&k.dirty();var x=s.getPerformArgs(k,o.block);x.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(x)&&(a=!0)})}});function l(c,d){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(d.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,o){var a=this,s=n.seriesTaskMap,l=n.seriesTaskMap=Si(),c=t.seriesType,d=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):d&&d(r,o).each(h);function h(p){var m=p.uid,g=l.set(m,s&&s.get(m)||kb({plan:jht,reset:Vht,count:Uht}));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||kb({reset:$ht});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=Si(),d=t.seriesType,h=t.getTargetSeries,p=!0,m=!1,g="";zh(!t.createOnAllSeries,g),d?r.eachRawSeriesByType(d,y):h?h(r,o).each(y):(p=!1,Et(r.getSeries(),y));function y(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(m=!0,kb({reset:Bht,onDirty:Fht})));C.context={model:S,overallProgress:p},C.agent=s,C.__block=p,a._pipe(S,C)}m&&s.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,o=this._pipelineMap.get(r);!o.head&&(o.head=n),o.tail&&o.tail.pipe(n),o.tail=n,n.__idxInPipeline=o.count++,n.__pipeline=o},e.wrapStageHandler=function(t,n){return ei(t)&&(t={overallReset:t,seriesType:Hht(t)}),t.uid=kA("stageHandler"),n&&(t.visualType=n),t},e})();function $ht(e){e.overallReset(e.ecModel,e.api,e.payload)}function Bht(e){return e.overallProgress&&Nht}function Nht(){this.agent.dirty(),this.getDownstream().dirty()}function Fht(){this.agent&&this.agent.dirty()}function jht(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Vht(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?wr(t,function(n,r){return Hge(r)}):zht}var zht=Hge(0);function Hge(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a0&&g===d.length-m.length){var y=d.slice(0,g);y!=="data"&&(n.mainType=y,n[m.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(d)&&(r[d]=c,h=!0),h||(o[d]=c)})}return{cptQuery:n,dataQuery:r,otherQuery:o}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var o=r.targetEl,a=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var c=n.cptQuery,d=n.dataQuery;return h(c,s,"mainType")&&h(c,s,"subType")&&h(c,s,"index","componentIndex")&&h(c,s,"name")&&h(c,s,"id")&&h(d,a,"name")&&h(d,a,"dataIndex")&&h(d,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,o,a));function h(p,m,g,y){return p[g]==null||m[y||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),az=["symbol","symbolSize","symbolRotate","symbolOffset"],tse=az.concat(["symbolKeepAspect"]),Kht={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&&Xv(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"?fpt(e,t,n):dpt(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:To(e)?[e]:er(e)?e:null}function Yge(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&ppt(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=wr(n,function(a){return a/o}),r/=o)}return[n,r]}var vpt=new Rm(!0);function bT(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function nse(e){return typeof e=="string"&&e!=="none"}function _T(e){var t=e.fill;return t!=null&&t!=="none"}function rse(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 ise(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=Sme(t.image,t.__image,n);if(dA(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)*Wat),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function mpt(e,t,n,r){var o,a=bT(n),s=_T(n),l=n.strokePercent,c=l<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||vpt,p=t.__dirty;if(!r){var m=n.fill,g=n.stroke,y=s&&!!m.colorStops,S=a&&!!g.colorStops,k=s&&!!m.image,C=a&&!!g.image,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0;(y||S)&&(D=t.getBoundingRect()),y&&(x=p?uz(e,m,D):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?uz(e,g,D):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?cz(e,m,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(T=p||!t.__canvasStrokePattern?cz(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),y?e.fillStyle=x:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=E:C&&(T?e.strokeStyle=T:a=!1)}var P=t.getGlobalScale();h.setScale(P[0],P[1],t.segmentIgnoreThreshold);var M,$;e.setLineDash&&n.lineDash&&(o=Yge(t),M=o[0],$=o[1]);var I=!0;(d||p&R1)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),I=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),I&&h.rebuildPath(e,c?l:1),M&&(e.setLineDash(M),e.lineDashOffset=$),r||(n.strokeFirst?(a&&ise(e,n),s&&rse(e,n)):(s&&rse(e,n),a&&ise(e,n))),M&&e.setLineDash([])}function gpt(e,t,n){var r=t.__image=Sme(n.image,t.__image,t,t.onload);if(!(!r||!dA(r))){var o=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(s==null&&l!=null?s=l*c:l==null&&s!=null?l=s/c:s==null&&l==null&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(r,d,h,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var d=n.sx,h=n.sy,p=s-d,m=l-h;e.drawImage(r,d,h,p,m,o,a,s,l)}else e.drawImage(r,o,a,s,l)}}function ypt(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||Lm,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=Yge(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(bT(n)&&e.strokeText(o,n.x,n.y),_T(n)&&e.fillText(o,n.x,n.y)):(_T(n)&&e.fillText(o,n.x,n.y),bT(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var ose=["shadowBlur","shadowOffsetX","shadowOffsetY"],sse=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xge(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)?pm.opacity:s}(r||t.blend!==n.blend)&&(a||(Su(e,o),a=!0),e.globalCompositeOperation=t.blend||pm.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(Ir(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 Eft(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{g1(this),Ip.update.call(this,null,p)}catch(m){throw this[du]=null,this[ul]=!1,m}this._ssr||this._zr.flush(),this[du]=null,this[ul]=!1,i4.call(this,a),o4.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Vr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Vr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Et(r,function(o){o.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,o=this._model,a=[],s=this;Et(r,function(c){o.eachComponent({mainType:c},function(d){var h=s._componentsMap[d.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Et(a,function(c){c.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",o=this.group,a=Math.min,s=Math.max,l=1/0;if(Sse[o]){var c=l,d=l,h=-l,p=-l,m=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();Et(Cb,function(E,_){if(E.group===o){var T=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(Vi(n)),D=E.getDom().getBoundingClientRect();c=a(D.left,c),d=a(D.top,d),h=s(D.right,h),p=s(D.bottom,p),m.push({dom:T,left:D.left,top:D.top})}}),c*=g,d*=g,h*=g,p*=g;var y=h-c,S=p-d,k=c3.createCanvas(),C=wie(k,{renderer:r?"svg":"canvas"});if(C.resize({width:y,height:S}),r){var x="";return Et(m,function(E){var _=E.left-c,T=E.top-d;x+=''+E.dom+""}),C.painter.getSvgRoot().innerHTML=x,n.connectedBackgroundColor&&C.painter.setBackgroundColor(n.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}else return n.connectedBackgroundColor&&C.add(new Zs({shape:{x:0,y:0,width:y,height:S},style:{fill:n.connectedBackgroundColor}})),Et(m,function(E){var _=new B0({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 Et(s,function(l,c){c.indexOf("Models")>=0&&Et(l,function(d){var h=d.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[d.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,d))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var o=this._model,a=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?Yht(l,c,r):Xht(l,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;Et(Upt,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,d=r==="globalout";if(d?c={}:l&&M4(l,function(y){var S=Yi(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=_n({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var m=h&&p!=null&&s.getComponent(h,p),g=m&&n[m.mainType==="series"?"_chartsMap":"_componentsMap"][m.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:m,view:g},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)}),Et(xb,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),Et(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),Jht(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&&yme(this.getDom(),GW,"");var r=this,o=r._api,a=r._model;Et(r._componentsViews,function(s){s.dispose(a,o)}),Et(r._chartsViews,function(s){s.dispose(a,o)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Cb[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&&g1(this),Ip.update.call(this,{type:"resize",animation:_n({duration:0},n&&n.animation)})}catch(s){throw this[ul]=!1,s}this[ul]=!1,i4.call(this,a),o4.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Ir(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=_n({},n);return r.type=xb[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Ir(r)||(r={silent:!!r}),!!ST[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&&Vr.browser.weChat&&this._throttledZrFlush(),i4.call(this,o),o4.call(this,o)}},t.prototype.updateLabelLayout=function(){gd.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(){g1=function(p){var m=p._scheduler;m.restorePipelines(p._model),m.prepareStageTasks(),oF(p,!0),oF(p,!1),m.plan()},oF=function(p,m){for(var g=p._model,y=p._scheduler,S=m?p._componentsViews:p._chartsViews,k=m?p._componentsMap:p._chartsMap,C=p._zr,x=p._api,E=0;Em.get("hoverLayerThreshold")&&!Vr.node&&!Vr.worker&&m.eachSeries(function(k){if(!k.preventUsingHoverLayer){var C=p._chartsMap[k.__viewId];C.__alive&&C.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function s(p,m){var g=p.get("blendMode")||null;m.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function l(p,m){if(!p.preventAutoZ){var g=p.get("z")||0,y=p.get("zlevel")||0;m.eachRendered(function(S){return c(S,g,y,-1/0),!0})}}function c(p,m,g,y){var S=p.getTextContent(),k=p.getTextGuideLine(),C=p.isGroup;if(C)for(var x=p.childrenRef(),E=0;E0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;m.eachRendered(function(C){if(C.states&&C.states.emphasis){if(bb(C))return;if(C instanceof po&&Wct(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)}})}bse=function(p){return new((function(m){Fn(g,m);function g(){return m!==null&&m.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){for(;y;){var S=y.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);y=y.parent}},g.prototype.enterEmphasis=function(y,S){lT(y,S),wc(p)},g.prototype.leaveEmphasis=function(y,S){uT(y,S),wc(p)},g.prototype.enterBlur=function(y){Oct(y),wc(p)},g.prototype.leaveBlur=function(y){Mme(y),wc(p)},g.prototype.enterSelect=function(y){Ome(y),wc(p)},g.prototype.leaveSelect=function(y){$me(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})(_ge))(p)},d1e=function(p){function m(g,y){for(var S=0;S=0)){kse.push(n);var a=Uge.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function g1e(e,t){pz[e]=t}function Zpt(e,t,n){var r=Apt("registerMap");r&&r(e,t,n)}var Jpt=nht;Jm(HW,Pht);Jm(RA,Rht);Jm(RA,Mht);Jm(HW,Kht);Jm(RA,qht);Jm(o1e,Ept);v1e(kge);m1e(Dpt,Nft);g1e("default",Oht);h3({type:vm,event:vm,update:vm},Tu);h3({type:rE,event:rE,update:rE},Tu);h3({type:mb,event:mb,update:mb},Tu);h3({type:iE,event:iE,update:iE},Tu);h3({type:gb,event:gb,update:gb},Tu);p1e("light",Wht);p1e("dark",Kge);function s4(e){return e==null?0:e.length||1}function xse(e){return e}var Qpt=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||xse,this._newKeyGetter=o||xse,this.context=a,this._diffModeMultiple=s==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},o=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,o,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s1){var h=c.shift();c.length===1&&(r[l]=c[0]),this._update&&this._update(h,s)}else d===1?(r[l]=null,this._update&&this._update(c,s)):this._remove&&this._remove(s)}this._performRestAdd(a,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},o={},a=[],s=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(n,o,s,"_newKeyGetter");for(var l=0;l1&&m===1)this._updateManyToOne&&this._updateManyToOne(h,d),o[c]=null;else if(p===1&&m>1)this._updateOneToMany&&this._updateOneToMany(h,d),o[c]=null;else if(p===1&&m===1)this._update&&this._update(h,d),o[c]=null;else if(p>1&&m>1)this._updateManyToMany&&this._updateManyToMany(h,d),o[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var a4=Ir,Lp=wr,s0t=typeof Int32Array>"u"?Array:Int32Array,a0t="e\0\0",Cse=-1,l0t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],u0t=["_approximateExtent"],wse,Jx,l4,u4,dF,c4,fF,x1e=(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;b1e(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===td;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),er(a)?a=a.slice():a4(a)&&(a=_n({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,a4(n)?_n(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){a4(t)?_n(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?_n(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;wct(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Et(this._graphicEls,function(r,o){r&&t&&t.call(n,r,o)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Lp(this.dimensions,this._getDimInfo,this),this.hostModel)),dF(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ei(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(iW(arguments)))})},e.internalField=(function(){wse=function(t){var n=t._invertedIndicesMap;Et(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new s0t(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function C1e(e,t){jW(e)||(e=xge(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=Si(),a=[],s=d0t(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&k1e(s),c=r===e.dimensionsDefine,d=c?S1e(e):_1e(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=Si(h),m=new Dge(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function d0t(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Et(t,function(a){var s;Ir(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function f0t(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 h0t=(function(){function e(t){this.coordSysDims=[],this.axisMap=Si(),this.categoryAxisMap=Si(),this.coordSysName=t}return e})();function p0t(e){var t=e.get("coordinateSystem"),n=new h0t(t),r=v0t[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var v0t={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",Ed).models[0],a=e.getReferringComponents("yAxis",Ed).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),y1(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),y1(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",Ed).models[0];t.coordSysDims=["single"],n.set("single",o),y1(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",Ed).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),y1(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),y1(s)&&(r.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,a=o.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();Et(a.parallelAxisIndex,function(l,c){var d=o.getComponent("parallelAxis",l),h=s[c];n.set(h,d),y1(d)&&(r.set(h,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function y1(e){return e.get("type")==="category"}function m0t(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;g0t(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),d,h,p,m;if(Et(a,function(x,E){yr(x)&&(a[E]=x={name:x}),c&&!x.isExtraCoord&&(!r&&!d&&x.ordinalMeta&&(d=x),!h&&x.type!=="ordinal"&&x.type!=="time"&&(!o||o===x.coordDim)&&(h=x))}),h&&!r&&!d&&(r=!0),h){p="__\0ecstackresult_"+e.id,m="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var g=h.coordDim,y=h.type,S=0;Et(a,function(x){x.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},C={name:m,coordDim:m,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(m,y),C.storeDimIndex=l.ensureCalculationDimension(p,y)),s.appendCalculationDimension(k),s.appendCalculationDimension(C)):(a.push(k),a.push(C))}return{stackedDimension:h&&h.name,stackedByDimension:d&&d.name,isStackedByIndex:r,stackedOverDimension:m,stackResultDimension:p}}function g0t(e){return!b1e(e.schema)}function jy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function y0t(e,t){return jy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function b0t(e,t){var n=e.get("coordinateSystem"),r=FW.get(n),o;return t&&t.coordSysDims&&(o=wr(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=n0t(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function _0t(e,t,n){var r,o;return n&&Et(e,function(a,s){var l=a.coordDim,c=n.categoryAxisMap.get(l);c&&(r==null&&(r=s),a.ordinalMeta=c.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(o=!0)}),!o&&r!=null&&(e[r].otherDims.itemName=0),r}function YW(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===td;var s=p0t(t),l=b0t(t,s),c=n.useEncodeDefaulter,d=ei(c)?c:c?Ps(hft,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!a},p=C1e(o,h),m=_0t(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),y=m0t(t,{schema:p,store:g}),S=new x1e(p,t);S.setCalculationInfo(y);var k=m!=null&&S0t(o)?function(C,x,E,_){return _===m?E:this.defaultDimValueGetter(C,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function S0t(e){if(e.sourceFormat===td){var t=k0t(e.data||[]);return!er(oS(t))}}function k0t(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})();cA(Mf);var x0t=0,vz=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++x0t}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&wr(r,C0t);return new e({categories:o,needCollect:!o,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!yr(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var o=this._getOrCreateMap();return n=o.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,o.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Si(this.categories))},e})();function C0t(e){return Ir(e)&&e.value!=null?e.value:e+""}function mz(e){return e.type==="interval"||e.type==="log"}function w0t(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=hme(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=w1e(s),c=o.niceTickExtent=[Xs(Math.ceil(e[0]/s)*s,l),Xs(Math.floor(e[1]/s)*s,l)];return E0t(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 w1e(e){return wh(e)+2}function Ese(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function E0t(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ese(e,0,t),Ese(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function MA(e,t){return e>=t[0]&&e<=t[1]}function OA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function $A(e,t){return e*(t[1]-t[0])+t[0]}var XW=(function(e){Fn(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({})),er(o)&&(o=new vz({categories:wr(o,function(a){return Ir(a)?a.value:a})})),r._ordinalMeta=o,r._extent=r.getSetting("extent")||[0,o.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:yr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),MA(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),OA(n,this._extent)},t.prototype.scale=function(n){return n=Math.round($A(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,o=r[0];o<=r[1];)n.push({value:o}),o++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,o=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,c=Math.min(l,r.length);s=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Mf);Mf.registerClass(XW);var Mv=Xs,p3=(function(e){Fn(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 MA(n,this._extent)},t.prototype.normalize=function(n){return OA(n,this._extent)},t.prototype.scale=function(n){return $A(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=w1e(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:Mv(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 I1e(e){var t=I0t(e),n=[];return Et(e,function(r){var o=r.coordinateSystem,a=o.getBaseAxis(),s=a.getExtent(),l;if(a.type==="category")l=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var c=a.dim+"_"+a.index,d=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),m=Math.abs(p[1]-p[0]);l=d?h/m*d:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var y=Zo(r.get("barWidth"),l),S=Zo(r.get("barMaxWidth"),l),k=Zo(r.get("barMinWidth")||(D1e(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:T1e(r)})}),L0t(n)}function L0t(e){var t={};Et(e,function(r,o){var a=r.axisKey,s=r.bandWidth,l=t[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;t[a]=l;var d=r.stackId;c[d]||l.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[d].width&&(c[d].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[d].maxWidth=p);var m=r.barMinWidth;m&&(c[d].minWidth=m);var g=r.barGap;g!=null&&(l.gap=g);var y=r.barCategoryGap;y!=null&&(l.categoryGap=y)});var n={};return Et(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=Qo(a).length;l=Math.max(35-c*4,15)+"%"}var d=Zo(l,s),h=Zo(r.gap,1),p=r.remainedWidth,m=r.autoWidthCount,g=(p-d)/(m+(m-1)*h);g=Math.max(g,0),Et(a,function(C){var x=C.maxWidth,E=C.minWidth;if(C.width){var _=C.width;x&&(_=Math.min(_,x)),E&&(_=Math.max(_,E)),C.width=_,p-=_+h*_,m--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(C.width=_,p-=_+h*_,m--)}}),g=(p-d)/(m+(m-1)*h),g=Math.max(g,0);var y=0,S;Et(a,function(C,x){C.width||(C.width=g),S=C,y+=C.width*(1+h)}),S&&(y-=S.width*h);var k=-y/2;Et(a,function(C,x){n[o][x]=n[o][x]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function D0t(e,t,n){if(e&&t){var r=e[ZW(t)];return r}}function P0t(e,t){var n=A1e(e,t),r=I1e(n);Et(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=T1e(o),d=r[ZW(l)][c],h=d.offset,p=d.width;a.setLayout({bandWidth:d.bandWidth,offset:h,size:p})})}function R0t(e){return{seriesType:e,plan:UW(),reset:function(t){if(L1e(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=jy(n,d)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),g=M0t(o,a),y=D1e(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),C=n.getLayout("size"),x=n.getLayout("offset");return{progress:function(E,_){for(var T=E.count,D=y&&Eh(T*3),P=y&&c&&Eh(T*3),M=y&&Eh(T),$=r.master.getRect(),I=m?$.width:$.height,N,F=_.getStore(),W=0;(N=E.next())!=null;){var U=F.get(p?k:s,N),G=F.get(l,N),Z=g,oe=void 0;p&&(oe=+U-F.get(s,N));var X=void 0,H=void 0,q=void 0,Q=void 0;if(m){var ne=r.dataToPoint([U,G]);if(p){var ae=r.dataToPoint([oe,G]);Z=ae[0]}X=Z,H=ne[1]+x,q=ne[0]-Z,Q=C,Math.abs(q)0?n:1:n))}var O0t=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=Qx.length,c=Math.min(O0t(Qx,this._approxInterval,0,l),l-1);this._interval=Qx[c][1],this._minLevelUnit=Qx[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return To(n)?n:+Uh(n)},t.prototype.contain=function(n){return MA(this.parse(n),this._extent)},t.prototype.normalize=function(n){return OA(this.parse(n),this._extent)},t.prototype.scale=function(n){return $A(n,this._extent)},t.type="time",t})(p3),Qx=[["second",PW],["minute",RW],["hour",_b],["quarter-day",_b*6],["half-day",_b*12],["day",Fc*1.2],["half-week",Fc*3.5],["week",Fc*7],["month",Fc*31],["quarter",Fc*95],["half-year",moe/2],["year",moe]];function $0t(e,t,n,r){var o=Uh(t),a=Uh(n),s=function(y){return yoe(o,y,r)===yoe(a,y,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},d=function(){return c()&&s("day")},h=function(){return d()&&s("hour")},p=function(){return h()&&s("minute")},m=function(){return p()&&s("second")},g=function(){return m()&&s("millisecond")};switch(e){case"year":return l();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return m();case"millisecond":return g()}}function B0t(e,t){return e/=Fc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function N0t(e){var t=30*Fc;return e/=t,e>6?6:e>3?3:e>2?2:1}function F0t(e){return e/=_b,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Tse(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 j0t(e){return hme(e)}function V0t(e,t,n){var r=new Date(e);switch(dy(t)){case"year":case"month":r[oge(n)](0);case"day":r[sge(n)](1);case"hour":r[age(n)](0);case"minute":r[lge(n)](0);case"second":r[uge(n)](0),r[cge(n)](0)}return r.getTime()}function z0t(e,t,n,r){var o=1e4,a=rge,s=0;function l(I,N,F,W,U,G,Z){for(var oe=new Date(N),X=N,H=oe[W]();X1&&G===0&&F.unshift({value:F[0].value-X})}}for(var G=0;G=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&m>E/1.5||(d.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=ja(wr(d,function(I){return ja(I,function(N){return N.value>=r[0]&&N.value<=r[1]&&!N.notAdd})}),function(I){return I.length>0}),T=[],D=_.length-1,g=0;g<_.length;++g)for(var P=_[g],M=0;M0;)a*=10;var l=[Xs(W0t(r[0]/a)*a),Xs(H0t(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){wb.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=cd(n)/cd(this.base),MA(n,this._extent)},t.prototype.normalize=function(n){return n=cd(n)/cd(this.base),OA(n,this._extent)},t.prototype.scale=function(n){return n=$A(n,this._extent),eC(this.base,n)},t.type="log",t})(Mf),R1e=JW.prototype;R1e.getMinorTicks=wb.getMinorTicks;R1e.getLabel=wb.getLabel;function tC(e,t){return U0t(e,wh(t))}Mf.registerClass(JW);var G0t=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!d&&(l=0),l<0&&c<0&&!h&&(c=0));var m=this._determinedMin,g=this._determinedMax;return m!=null&&(l=m,d=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:d,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[q0t[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=K0t[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),K0t={min:"_determinedMin",max:"_determinedMax"},q0t={min:"_dataMin",max:"_dataMax"};function Y0t(e,t,n){var r=e.rawExtentInfo;return r||(r=new G0t(e,t,n),e.rawExtentInfo=r,r)}function nC(e,t){return t==null?null:Y8(t)?NaN:e.parse(t)}function M1e(e,t){var n=e.type,r=Y0t(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=A1e("bar",s),c=!1;if(Et(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var d=I1e(l),h=X0t(o,a,t,d);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function X0t(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=D0t(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;Et(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;Et(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var d=l+c,h=t-e,p=1-(l+c)/a,m=h/p-h;return t+=m*(c/d),e-=m*(l/d),{min:e,max:t}}function Ise(e,t){var n=t,r=M1e(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 Z0t(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 P1e({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mf.getClass(t)||p3)}}function J0t(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function v3(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(o,a){return e.scale.getFormattedLabel(o,a,r)}})(t):yr(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):ei(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(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 Q0t(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=v3(e),c,d=1;o>40&&(d=Math.ceil(o/40));for(var h=0;h=0||(Lse.push(e),ei(e)&&(e={install:e}),e.install(rvt))}var y_=$s();function $1e(e,t){var n=wr(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 ivt(e){var t=e.getLabelModel().get("customValues");if(t){var n=v3(e),r=e.scale.getExtent(),o=$1e(e,t),a=ja(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:wr(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?svt(e):lvt(e)}function ovt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=$1e(e,n);return{ticks:ja(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?avt(e,t):{ticks:wr(e.scale.getTicks(),function(a){return a.value})}}function svt(e){var t=e.getLabelModel(),n=B1e(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function B1e(e,t){var n=N1e(e,"labels"),r=eG(t),o=F1e(n,r);if(o)return o;var a,s;return ei(r)?a=z1e(e,r):(s=r==="auto"?uvt(e):r,a=V1e(e,s)),j1e(n,r,{labels:a,labelCategoryInterval:s})}function avt(e,t){var n=N1e(e,"ticks"),r=eG(t),o=F1e(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ei(r))a=z1e(e,r,!0);else if(r==="auto"){var l=B1e(e,e.getLabelModel());s=l.labelCategoryInterval,a=wr(l.labels,function(c){return c.tickValue})}else s=r,a=V1e(e,s,!0);return j1e(n,r,{ticks:a,tickCategoryInterval:s})}function lvt(e){var t=e.scale.getTicks(),n=v3(e);return{labels:wr(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function N1e(e,t){return y_(e)[t]||(y_(e)[t]=[])}function F1e(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],d=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),m=0,g=0;c<=a[1];c+=l){var y=0,S=0,k=dW(n({value:c}),t.font,"center","top");y=k.width*1.3,S=k.height*1.3,m=Math.max(m,y,7),g=Math.max(g,S,7)}var C=m/h,x=g/p;isNaN(C)&&(C=1/0),isNaN(x)&&(x=1/0);var E=Math.max(0,Math.floor(Math.min(C,x))),_=y_(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 dvt(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 V1e(e,t,n){var r=v3(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=O1e(e),m=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;m&&d!==a[0]&&S(a[0]);for(var y=d;y<=a[1];y+=c)S(y);g&&y-c!==a[1]&&S(a[1]);function S(k){var C={value:k};l.push(n?k:{formattedLabel:r(C),rawLabel:o.getLabel(C),tickValue:k})}return l}function z1e(e,t,n){var r=e.scale,o=v3(e),a=[];return Et(r.getTicks(),function(s){var l=r.getLabel(s),c=s.value;t(s.value,l)&&a.push(n?c:{formattedLabel:o(s),rawLabel:l,tickValue:c})}),a}var Dse=[0,1],fvt=(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 aut(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(),Pse(r,o.count())),zV(t,Dse,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Pse(r,o.count()));var a=zV(t,r,Dse,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=ovt(this,n),o=r.ticks,a=wr(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return hvt(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=wr(r,function(a){return wr(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return ivt(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 cvt(this)},e})();function Pse(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function hvt(e,t,n,r){var o=t.length;if(!e.onBand||n||!o)return;var a=e.getExtent(),s,l;if(o===1)t[0].coord=a[0],s=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/c;Et(t,function(g){g.coord-=d/2});var h=e.scale.getExtent();l=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+d*l,tickValue:h[1]+1},t.push(s)}var p=a[0]>a[1];m(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&m(a[0],t[0].coord)&&t.unshift({coord:a[0]}),m(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&m(s.coord,a[1])&&t.push({coord:a[1]});function m(g,y){return g=Xs(g),y=Xs(y),p?g>y:g0){t=t/180*Math.PI,r0.fromArray(e[0]),gs.fromArray(e[1]),Na.fromArray(e[2]),Hr.sub(i0,r0,gs),Hr.sub(uf,Na,gs);var n=i0.len(),r=uf.len();if(!(n<.001||r<.001)){i0.scale(1/n),uf.scale(1/r);var o=i0.dot(uf),a=Math.cos(t);if(a1&&Hr.copy(Vl,Na),Vl.toArray(e[1])}}}}function vvt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,r0.fromArray(e[0]),gs.fromArray(e[1]),Na.fromArray(e[2]),Hr.sub(i0,gs,r0),Hr.sub(uf,Na,gs);var r=i0.len(),o=uf.len();if(!(r<.001||o<.001)){i0.scale(1/r),uf.scale(1/o);var a=i0.dot(t),s=Math.cos(n);if(a=c)Hr.copy(Vl,Na);else{Vl.scaleAndAdd(uf,l/Math.tan(Math.PI/2-h));var p=Na.x!==gs.x?(Vl.x-gs.x)/(Na.x-gs.x):(Vl.y-gs.y)/(Na.y-gs.y);if(isNaN(p))return;p<0?Hr.copy(Vl,gs):p>1&&Hr.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 mvt(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($*M,0,s);var I=$+D;I<0&&_(-I*M,1)}else _(-D*M,1)}}function E(D,P,M){D!==0&&(d=!0);for(var $=P;$0)for(var I=0;I0;I--){var U=M[I-1]*W;E(-U,I,s)}}}function T(D){var P=D<0?-1:1;D=Math.abs(D);for(var M=Math.ceil(D/(s-1)),$=0;$0?E(M,0,$+1):E(-M,s-$-1,s),D-=M,D<=0)return}return d}function Svt(e,t,n,r){return _vt(e,"y","height",t,n)}function kvt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new ao(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}}U.prevElClipPaths&&C.restore()};if(x)if(x.length===0)M=k.__endIndex;else for(var I=g.dpr,N=0;N0&&t>o[0]){for(c=0;ct);c++);l=r[o[c]]}if(o.splice(c+1,0,t),r[t]=n,!n.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(n.dom,d.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,o=0;o0?rC: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,m){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Et(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?so(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=Ny(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){Fn(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=Fy(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Avt,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(){lT(this.childAt(0))},t.prototype.downplay=function(){uT(this.childAt(0))},t.prototype.setZ=function(n,r){var o=this.childAt(0);o.zlevel=n,o.z=r},t.prototype.setDraggable=function(n,r){var o=this.childAt(0);o.draggable=n,o.cursor=!r&&n?"move":o.cursor},t.prototype.updateData=function(n,r,o,a){this.silent=!1;var s=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,c=t.getSymbolSize(n,r),d=s!==this._symbolType,h=a&&a.disableAnimation;if(d){var p=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,p)}else{var m=this.childAt(0);m.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?m.attr(g):eu(m,g,l,r),EW(m)}if(this._updateCommon(n,r,c,o,a),d){var m=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:m.style.opacity}};m.scaleX=m.scaleY=0,m.style.opacity=0,Hc(m,g,l,r)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,o,a,s){var l=this.childAt(0),c=n.hostModel,d,h,p,m,g,y,S,k,C;if(a&&(d=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,m=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,C=a.cursorStyle,y=a.emphasisDisabled),!a||n.hasItemOption){var x=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=x.getModel("emphasis");d=E.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),h=x.getModel(["blur","itemStyle"]).getItemStyle(),m=E.get("focus"),g=E.get("blurScope"),y=E.get("disabled"),S=cS(x),k=E.getShallow("scale"),C=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var T=qge(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 B0){var M=l.style;l.useStyle(_n({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},D))}else l.__isEmptyBrush?l.useStyle(_n({},D)):l.useStyle(D),l.style.decal=null,l.setColor(P,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var $=n.getItemVisual(r,"liftZ"),I=this._z2;$!=null?I==null&&(this._z2=l.z2,l.z2+=$):I!=null&&(l.z2=I,this._z2=null);var N=s&&s.useNameLabel;uS(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:F,inheritColor:P,defaultOpacity:D.opacity});function F(G){return N?n.getName(G):tG(n,G)}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 U=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;W.scaleX=this._sizeX*U,W.scaleY=this._sizeY*U,this.setSymbolScale(1),c_(this,m,g,y)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,o){var a=this.childAt(0),s=Yi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&fT(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();fT(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return cpt(n.getItemVisual(r,"symbolSize"))},t})(Za);function Avt(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 Ose(e){return e!=null&&!Ir(e)&&(e={isIgnore:e}),e||{}}function $se(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:cS(t),cursorStyle:t.get("cursor")}}var Ivt=(function(){function e(t){this.group=new Za,this._SymbolCtor=t||nG}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Ose(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=$se(t),d={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var m=h(p);if(mF(t,m,p,n)){var g=new s(t,p,c,d);g.setPosition(m),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,m){var g=a.getItemGraphicEl(m),y=h(p);if(!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 m=a.getItemGraphicEl(p);m&&m.fadeOut(function(){r.remove(m)},o)}).execute(),this._getSymbolPoint=h,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,o){var a=t._getSymbolPoint(o);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$se(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Ose(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 K1e(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 Dvt(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 Pvt(e,t,n,r,o,a,s,l){for(var c=Dvt(e,t),d=[],h=[],p=[],m=[],g=[],y=[],S=[],k=G1e(o,t,s),C=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=o||S<0)break;if(mm(C,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,x),p=C,m=x;else{var E=C-d,_=x-h;if(E*E+_*_<.5){S+=a;continue}if(s>0){for(var T=S+a,D=t[T*2],P=t[T*2+1];D===C&&P===x&&k=r||mm(D,P))g=C,y=x;else{I=D-d,N=P-h;var U=C-d,G=D-C,Z=x-h,oe=P-x,X=void 0,H=void 0;if(l==="x"){X=Math.abs(U),H=Math.abs(G);var q=I>0?1:-1;g=C-q*X*s,y=x,F=C+q*H*s,W=x}else if(l==="y"){X=Math.abs(Z),H=Math.abs(oe);var Q=N>0?1:-1;g=C,y=x-Q*X*s,F=C,W=x+Q*H*s}else X=Math.sqrt(U*U+Z*Z),H=Math.sqrt(G*G+oe*oe),$=H/(H+X),g=C-I*s*(1-$),y=x-N*s*(1-$),F=C+I*s*$,W=x+N*s*$,F=Dp(F,Pp(D,C)),W=Dp(W,Pp(P,x)),F=Pp(F,Dp(D,C)),W=Pp(W,Dp(P,x)),I=F-C,N=W-x,g=C-I*X/H,y=x-N*X/H,g=Dp(g,Pp(d,C)),y=Dp(y,Pp(h,x)),g=Pp(g,Dp(d,C)),y=Pp(y,Dp(h,x)),I=C-g,N=x-y,F=C+I*H/X,W=x+N*H/X}e.bezierCurveTo(p,m,g,y,C,x),p=F,m=W}else e.lineTo(C,x)}d=C,h=x,S+=a}return k}var q1e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Rvt=(function(e){Fn(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 q1e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&mm(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?J8(l,g,S,C,n,h):J8(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})(po),Mvt=(function(e){Fn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(q1e),Ovt=(function(e){Fn(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 Mvt},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&&mm(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 Fvt(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=wr(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=d.length,p=a.outerColors.slice();h&&d[0].coord>d[h-1].coord&&(d.reverse(),p.reverse());var m=Nvt(d,o==="x"?n.getWidth():n.getHeight()),g=m.length;if(!g&&h)return d[0].coord<0?p[1]?p[1]:d[h-1].color:p[0]?p[0]:d[0].color;var y=10,S=m[0].coord-y,k=m[g-1].coord+y,C=k-S;if(C<.001)return"transparent";Et(m,function(E){E.offset=(E.coord-S)/C}),m.push({offset:g?m[g-1].offset:.5,color:p[1]||"transparent"}),m.unshift({offset:g?m[0].offset:.5,color:p[0]||"transparent"});var x=new Gme(0,0,0,0,m,!0);return x[o]=S,x[o+"2"]=k,x}}}function jvt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&Vvt(a,t))){var s=t.mapDimension(a.dim),l={};return Et(a.getViewLabels(),function(c){var d=a.scale.getRawOrdinalNumber(c.tickValue);l[d]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function Vvt(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 zvt(e,t){return isNaN(e)||isNaN(t)}function Uvt(e){for(var t=e.length/2;t>0&&zvt(e[t*2-2],e[t*2-1]);t--);return t-1}function Vse(e,t){return[e[t*2],e[t*2+1]]}function Hvt(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 Z1e(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var H=y.getState("emphasis").style;H.lineWidth=+y.style.lineWidth+1}Yi(y).seriesIndex=n.seriesIndex,c_(y,Z,oe,X);var q=jse(n.get("smooth")),Q=n.get("smoothMonotone");if(y.setShape({smooth:q,smoothMonotone:Q,connectNulls:P}),S){var ne=l.getCalculationInfo("stackedOnSeries"),ae=0;S.useStyle(lo(d.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ne&&(ae=jse(ne.get("smooth"))),S.setShape({smooth:q,stackedOnSmooth:ae,smoothMonotone:Q,connectNulls:P}),cT(S,n,"areaStyle"),Yi(S).seriesIndex=n.seriesIndex,c_(S,Z,oe,X)}var re=this._changePolyState;l.eachItemGraphicEl(function(Se){Se&&(Se.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=I,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,y),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Yi(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=Pm(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),d=s.getItemGraphicEl(l);if(!d){var h=c[l*2],p=c[l*2+1];if(isNaN(h)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,p))return;var m=n.get("zlevel")||0,g=n.get("z")||0;d=new nG(s,l),d.x=h,d.y=p,d.setZ(m,g);var y=d.getSymbolPath().getTextContent();y&&(y.zlevel=m,y.z=g,y.z2=this._polyline.z2+1),d.__temp=!0,s.setItemGraphicEl(l,d),d.stopSymbolAnimation(!0),this.group.add(d)}d.highlight()}else Wc.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=Pm(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 Wc.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Yie(this._polyline,n),r&&Yie(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Rvt({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 Ovt({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},t.prototype._initSymbolLabelAnimation=function(n,r,o){var a,s,l=r.getBaseAxis(),c=l.inverse;r.type==="cartesian2d"?(a=l.isHorizontal(),s=!1):r.type==="polar"&&(a=l.dim==="angle",s=!0);var d=n.hostModel,h=d.get("animationDuration");ei(h)&&(h=h(null));var p=d.get("animationDelay")||0,m=ei(p)?p(null):p;n.eachItemGraphicEl(function(g,y){var S=g;if(S){var k=[g.x,g.y],C=void 0,x=void 0,E=void 0;if(o)if(s){var _=o,T=r.pointToCoord(k);a?(C=_.startAngle,x=_.endAngle,E=-T[1]/180*Math.PI):(C=_.r0,x=_.r,E=T[0])}else{var D=o;a?(C=D.x,x=D.x+D.width,E=g.x):(C=D.y+D.height,x=D.y,E=g.y)}var P=x===C?0:(E-C)/(x-C);c&&(P=1-P);var M=ei(p)?p(y):h*P+m,$=S.getSymbolPath(),I=$.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:M}),$.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(Z1e(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=Uvt(c);h>=0&&(uS(l,cS(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,m,g){return g!=null?W1e(s,g):tG(s,p)},enableTextSetter:!0},Wvt(a,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,o,a,s,l,c){var d=this._endLabel,h=this._polyline;if(d){n<1&&a.originalX==null&&(a.originalX=d.x,a.originalY=d.y);var p=o.getLayout("points"),m=o.hostModel,g=m.get("connectNulls"),y=l.get("precision"),S=l.get("distance")||0,k=c.getBaseAxis(),C=k.isHorizontal(),x=k.inverse,E=r.shape,_=x?C?E.x:E.y+E.height:C?E.x+E.width:E.y,T=(C?S:0)*(x?-1:1),D=(C?0:-S)*(x?-1:1),P=C?"x":"y",M=Hvt(p,_,P),$=M.range,I=$[1]-$[0],N=void 0;if(I>=1){if(I>1&&!g){var F=Vse(p,$[0]);d.attr({x:F[0]+T,y:F[1]+D}),s&&(N=m.getRawValue($[0]))}else{var F=h.getPointOn(_,P);F&&d.attr({x:F[0]+T,y:F[1]+D});var W=m.getRawValue($[0]),U=m.getRawValue($[1]);s&&(N=Tut(o,y,W,U,M.t))}a.lastFrameIndex=$[0]}else{var G=n===1||a.lastFrameIndex>0?$[0]:0,F=Vse(p,G);s&&(N=m.getRawValue(G)),d.attr({x:F[0]+T,y:F[1]+D})}if(s){var Z=SA(d);typeof Z.setLabelText=="function"&&Z.setLabelText(N)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var d=this._polyline,h=this._polygon,p=n.hostModel,m=Pvt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),g=m.current,y=m.stackedOnCurrent,S=m.next,k=m.stackedOnNext;if(s&&(y=Rp(m.stackedOnCurrent,m.current,o,s,c),g=Rp(m.current,null,o,s,c),k=Rp(m.stackedOnNext,m.next,o,s,c),S=Rp(m.next,null,o,s,c)),Fse(g,S)>3e3||h&&Fse(y,k)>3e3){d.stopAnimation(),d.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}d.shape.__points=m.current,d.shape.points=g;var C={shape:{points:S}};m.current!==g&&(C.shape.__points=m.next),d.stopAnimation(),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=m.status,_=0;_t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&s.type==="cartesian2d"&&a){var c=s.getBaseAxis(),d=s.getOtherAxis(c),h=c.getExtent(),p=r.getDevicePixelRatio(),m=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/m);if(isFinite(g)&&g>1){a==="lttb"?t.setData(o.lttbDownSample(o.mapDimension(d.dim),1/g)):a==="minmax"&&t.setData(o.minmaxDownSample(o.mapDimension(d.dim),1/g));var y=void 0;yr(a)?y=qvt[a]:ei(a)&&(y=a),y&&t.setData(o.downSample(o.mapDimension(d.dim),1/g,y,Yvt))}}}}}function Q1e(e){e.registerChartView(Gvt),e.registerSeriesModel(Tvt),e.registerLayout(Kvt("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,J1e("line"))}var yz=(function(e){Fn(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)Et(a.getAxes(),function(m,g){if(m.type==="category"&&r!=null){var y=m.getTicksCoords(),S=m.getTickModel().get("alignWithLabel"),k=s[g],C=r[g]==="x1"||r[g]==="y1";if(C&&!S&&(k+=1),y.length<2)return;if(y.length===2){l[g]=m.toGlobalCoord(m.getExtent()[C?1:0]);return}for(var x=void 0,E=void 0,_=1,T=0;Tk){E=(D+x)/2;break}T===1&&(_=P-y[0].tickValue)}E==null&&(x?x&&(E=y[y.length-1].coord):E=y[0].coord),l[g]=m.toGlobalCoord(E)}});else{var c=this.getData(),d=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=d+h/2}return l}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Md);Md.registerClass(yz);var Xvt=(function(e){Fn(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=ege(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),Zvt=(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})(),zse=(function(e){Fn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Zvt},t.prototype.buildPath=function(n,r){var o=r.cx,a=r.cy,s=Math.max(r.r0||0,0),l=Math.max(r.r,0),c=(l-s)*.5,d=s+c,h=r.startAngle,p=r.endAngle,m=r.clockwise,g=Math.PI*2,y=m?p-hMath.PI/2&&hl)return!0;l=p}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var o=r.scale,a=o.getExtent(),s=Math.max(0,a[0]),l=Math.min(a[1],o.getOrdinalMeta().categories.length-1);s<=l;++s)if(n.ordinalNumbers[s]!==o.getRawOrdinalNumber(s))return!0},t.prototype._updateSortWithinSameData=function(n,r,o,a){if(this._isOrderChangedWithinSameData(n,r,o)){var s=this._dataSort(n,o,r);this._isOrderDifferentInView(s,o)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:s}))}},t.prototype._dispatchInitSort=function(n,r,o){var a=r.baseAxis,s=this._dataSort(n,a,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:s})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,o=this._data;n&&n.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(a){hT(a,n,Yi(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})(Wc),Use={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}},Hse={cartesian2d:function(e,t,n,r,o,a,s,l,c){var d=new Zs({shape:_n({},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?zse:N0,h=new d({shape:r,z2:1});h.name="item";var p=eye(o);if(h.calculateTextPosition=Jvt(p,{isRoundCap:d===zse}),a){var m=h.shape,g=o?"r":"endAngle",y={};m[g]=o?r.r0:r.startAngle,y[g]=r[g],(l?eu:Hc)(h,{shape:y},a)}return h}};function nmt(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 Wse(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:Hc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?eu:Hc)(n,{shape:d},h,o)}function Gse(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 omt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function eye(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 qse(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=O4(r.getModel("itemStyle"),h,!0);_n(h,p),e.setShape(h)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var m=r.getShallow("cursor");m&&e.attr("cursor",m);var g=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",y=cS(r);uS(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,Qvt(e,k==="outside"?g:k,eye(s),r.get(["label","rotate"]))}Vdt(S,y,a.getRawValue(n),function(x){return W1e(t,x)});var C=r.getModel(["emphasis"]);c_(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),cT(e,r),omt(o)&&(e.style.fill="none",e.style.stroke="none",Et(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function smt(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 amt=(function(){function e(){}return e})(),Yse=(function(e){Fn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new amt},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 lmt(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 tye(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 umt(e,t,n){var r=e.type==="polar"?N0:Zs;return new r({shape:tye(t,n,e),silent:!0,z2:0})}function nye(e){e.registerChartView(tmt),e.registerSeriesModel(Xvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ps(P0t,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,R0t("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,J1e("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 Jse=Math.PI*2,aC=Math.PI/180;function rye(e,t){return $y(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function iye(e,t){var n=rye(e,t),r=e.get("center"),o=e.get("radius");er(o)||(o=[0,o]);var a=Zo(n.width,t.getWidth()),s=Zo(n.height,t.getHeight()),l=Math.min(a,s),c=Zo(o[0],l/2),d=Zo(o[1],l/2),h,p,m=e.coordinateSystem;if(m){var g=m.dataToPoint(r);h=g[0]||0,p=g[1]||0}else er(r)||(r=[r,r]),h=Zo(r[0],a)+n.x,p=Zo(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:d}}function cmt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=rye(r,n),l=iye(r,n),c=l.cx,d=l.cy,h=l.r,p=l.r0,m=-r.get("startAngle")*aC,g=r.get("endAngle"),y=r.get("padAngle")*aC;g=g==="auto"?m-Jse:-g*aC;var S=r.get("minAngle")*aC,k=S+y,C=0;o.each(a,function(oe){!isNaN(oe)&&C++});var x=o.getSum(a),E=Math.PI/(x||C)*2,_=r.get("clockwise"),T=r.get("roseType"),D=r.get("stillShowZeroSum"),P=o.getDataExtent(a);P[0]=0;var M=_?1:-1,$=[m,g],I=M*y/2;wme($,!_),m=$[0],g=$[1];var N=oye(r);N.startAngle=m,N.endAngle=g,N.clockwise=_;var F=Math.abs(g-m),W=F,U=0,G=m;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(oe,X){var H;if(isNaN(oe)){o.setItemLayout(X,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:d,r0:p,r:T?NaN:h});return}T!=="area"?H=x===0&&D?E:oe*E:H=F/C,HH?(Q=G+M*H/2,ne=Q):(Q=G+I,ne=q-I),o.setItemLayout(X,{angle:H,startAngle:Q,endAngle:ne,clockwise:_,cx:c,cy:d,r0:p,r:T?zV(oe,P,[p,h]):h}),G=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 pmt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*fmt,l=t.getLayout("viewRect"),c=t.getLayout("r"),d=l.width,h=l.x,p=l.y,m=l.height;function g(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var P in D.states)if(D.states[P].ignore===!1)return!0;return!1}t.each(function(D){var P=t.getItemGraphicEl(D),M=P.shape,$=P.getTextContent(),I=P.getTextGuideLine(),N=t.getItemModel(D),F=N.getModel("label"),W=F.get("position")||N.get(["emphasis","label","position"]),U=F.get("distanceToLabelLine"),G=F.get("alignTo"),Z=Zo(F.get("edgeDistance"),d),oe=F.get("bleedMargin"),X=N.getModel("labelLine"),H=X.get("length");H=Zo(H,d);var q=X.get("length2");if(q=Zo(q,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":ne>0?"left":"right"}var Fe=Math.PI,He=0,Qe=F.get("rotate");if(To(Qe))He=Qe*(Fe/180);else if(W==="center")He=0;else if(Qe==="radial"||Qe===!0){var rt=ne<0?-Q+Fe:-Q;He=rt}else if(Qe==="tangential"&&W!=="outside"&&W!=="outer"){var ft=Math.atan2(ne,ae);ft<0&&(ft=Fe*2+ft);var lt=ae>0;lt&&(ft=Fe+ft),He=ft-Fe}if(a=!!He,$.x=re,$.y=Se,$.rotation=He,$.setStyle({verticalAlign:"middle"}),be){$.setStyle({align:ve});var Wt=$.states.select;Wt&&(Wt.x+=$.x,Wt.y+=$.y)}else{var Ct=$.getBoundingRect().clone();Ct.applyTransform($.getComputedTransform());var St=($.style.margin||0)+2.1;Ct.y-=St/2,Ct.height+=St,n.push({label:$,labelLine:I,position:W,len:H,len2:q,minTurnAngle:X.get("minTurnAngle"),maxSurfaceAngle:X.get("maxSurfaceAngle"),surfaceNormal:new Hr(ne,ae),linePoints:xe,textAlign:ve,labelDistance:U,labelAlignTo:G,edgeDistance:Z,bleedMargin:oe,rect:Ct,unconstrainedWidth:Ct.width,labelStyleWidth:$.style.width})}P.setTextConfig({inside:be})}}),!a&&e.get("avoidLabelOverlap")&&hmt(n,r,o,c,d,m,h,p);for(var S=0;S0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p=a.r0}},t.type="pie",t})(Wc);function gmt(e,t,n){t=er(t)&&{coordDimensions:t}||_n({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=C1e(r,t).dimensions,a=new x1e(o,e);return a.initData(r,n),a}var ymt=(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})(),bmt=$s(),_mt=(function(e){Fn(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 ymt(Ro(this.getData,this),Ro(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return gmt(this,{coordDimensions:["value"],encodeDefaulter:Ps(pft,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=bmt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=lut(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 Smt(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!(To(s)&&!isNaN(s)&&s<0)})}}}function aye(e){e.registerChartView(mmt),e.registerSeriesModel(_mt),Zht("pie",e.registerAction),e.registerLayout(Ps(cmt,"pie")),e.registerProcessor(dmt("pie")),e.registerProcessor(Smt("pie"))}var kmt=(function(e){Fn(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})(fo),bz=(function(e){Fn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ed).models[0]},t.type="cartesian2dAxis",t})(fo);Df(bz,nvt);var lye={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)"]}}},xmt=so({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lye),iG=so({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}}},lye),Cmt=so({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iG),wmt=lo({logBase:10},iG);const Emt={category:xmt,value:iG,time:Cmt,log:wmt};var Tmt={value:1,category:1,time:1,log:1};function eae(e,t,n,r){Et(Tmt,function(o,a){var s=so(so({},Emt[a],!0),r,!0),l=(function(c){Fn(d,c);function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return d.prototype.mergeDefaultAndTheme=function(h,p){var m=h_(this),g=m?IA(h):{},y=p.getTheme();so(h,y.get(a+"Axis")),so(h,this.getDefaultOption()),h.type=tae(h),m&&By(h,g,m)},d.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=vz.createByAxisModel(this))},d.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},d.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},d.type=t+"Axis."+a,d.defaultOption=s,d})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",tae)}function tae(e){return e.type||(e.data?"category":"value")}var Amt=(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 wr(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 nae(e){return e.type==="interval"||e.type==="time"}var Imt=(function(e){Fn(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(!(!nae(n)||!nae(r))){var o=n.getExtent(),a=r.getExtent(),s=this.dataToPoint([o[0],a[0]]),l=this.dataToPoint([o[1],a[1]]),c=o[1]-o[0],d=a[1]-a[0];if(!(!c||!d)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/d,m=s[0]-o[0]*h,g=s[1]-a[0]*p,y=this._transform=[h,0,0,p,m,g];this._invTransform=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 ao(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 Uc(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 Uc(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 ao(a,s,l,c)},t})(Amt),Lmt=(function(e){Fn(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})(fvt);function Sz(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,c=s?"onZero":l,d=o.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],m={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,y=d==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));y[m.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[d==="y"?y[m[c]]:p[0],d==="x"?y[m[c]]:p[3]],a.rotation=Math.PI/2*(d==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?y[m[l]]-y[m.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),s_(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 rae(e){return e.get("coordinateSystem")==="cartesian2d"}function iae(e){var t={xAxisModel:null,yAxisModel:null};return Et(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,Ed).models[0];t[r]=a}),t}var SF=Math.log;function Dmt(e,t,n){var r=p3.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=M1e(e,t),d=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var m=SF(e.base);d=[SF(d[0])/m,SF(d[1])/m]}e.setExtent(d[0],d[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(d[0]=g[0]),p&&(d[1]=g[1]);var y=r.getInterval.call(e),S=d[0],k=d[1];if(h&&p)y=(k-S)/s;else if(h)for(k=d[0]+y*s;kd[0]&&isFinite(S)&&isFinite(d[0]);)y=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 Pmt=(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=Qo(s),d=c.length;if(d){for(var h=[],p=d-1;p>=0;p--){var m=+c[p],g=s[m],y=g.model,S=g.scale;mz(S)&&y.get("alignTicks")&&y.get("interval")==null?h.push(g):(Ise(S,y),mz(S)&&(l=g))}h.length&&(l||(l=h.pop(),Ise(l.scale,l.model)),Et(h,function(k){Dmt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};Et(r.x,function(s){oae(r,"y",s,a)}),Et(r.y,function(s){oae(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=$y(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(Et(l,function(d){if(!d.model.get(["axisLabel","inside"])){var h=Q0t(d);if(h){var p=d.isHorizontal()?"height":"width",m=d.model.get(["axisLabel","margin"]);s[p]-=h[p]+m,d.position==="top"?s.y+=h.height+m:d.position==="left"&&(s.x+=h.width+m)}}}),c()),Et(this._coordsList,function(d){d.calcAffineTransform()});function c(){Et(l,function(d){var h=d.isHorizontal(),p=h?[0,s.width]:[0,s.height],m=d.inverse?1:0;d.setExtent(p[m],p[1-m]),Rmt(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]}Ir(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):iT(o-o0)?(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})(),aae={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&&(Uc(l,l,s),Uc(c,c,s));var h=_n({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new E0({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});d_(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var m=t.get(["axisLine","symbol"]);if(m!=null){var g=t.get(["axisLine","symbolSize"]);yr(m)&&(m=[m,m]),(yr(g)||To(g))&&(g=[g,g]);var y=qge(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];Et([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(C,x){if(m[x]!=="none"&&m[x]!=null){var E=Fy(m[x],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,T=d?c:l;E.attr({rotation:C.rotate,x:T[0]+_*Math.cos(e.rotation),y:T[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var o=$mt(n,r,t,e),a=Nmt(n,r,t,e);if(Omt(t,a,o),Bmt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=bvt(wr(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));kvt(s)}},axisName:function(e,t,n,r){var o=s_(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,uae(a)?e.labelOffset+s*c:0],m,g=t.get("nameRotate");g!=null&&(g=g*o0/180);var y;uae(a)?m=p0.innerTextLayout(e.rotation,g??e.rotation,s):(m=Mmt(e.rotation,a,g||0,d),y=e.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(m.rotation)),!isFinite(y)&&(y=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,x=s_(e.nameTruncateMaxWidth,k.maxWidth,y),E=new Ja({x:p[0],y:p[1],rotation:m.rotation,silent:p0.isLabelSilent(t),style:T0(l,{text:o,font:S,overflow:"truncate",width:x,ellipsis:C,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||m.textAlign,verticalAlign:l.get("verticalAlign")||m.textVerticalAlign}),z2:1});if(yA({el:E,componentModel:t,itemName:o}),E.__fullText=o,E.anid="name",t.get("triggerEvent")){var _=p0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Yi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function Mmt(e,t,n,r){var o=fme(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return iT(o-o0/2)?(s=c?"bottom":"top",a="center"):iT(o-o0*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oo0/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function Omt(e,t,n){if(!O1e(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],s=t[1],l=t[t.length-1],c=t[t.length-2],d=n[0],h=n[1],p=n[n.length-1],m=n[n.length-2];r===!1?(Ec(a),Ec(d)):lae(a,s)&&(r?(Ec(s),Ec(h)):(Ec(a),Ec(d))),o===!1?(Ec(l),Ec(p)):lae(c,l)&&(o?(Ec(c),Ec(m)):(Ec(l),Ec(p)))}}function Ec(e){e&&(e.ignore=!0)}function lae(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(ly([],o,e.getLocalTransform())),r.applyTransform(ly([],o,t.getLocalTransform())),n.intersect(r)}}function uae(e){return e==="middle"||e==="center"}function uye(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Hmt(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=Hv(t).pointerEl=new $dt[a.type](fae(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=Hv(t).labelEl=new Ja(fae(n.label));t.add(a),pae(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=Hv(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=Hv(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),pae(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){qve(d.event)},onmousedown:CF(this._onHandleDragMove,this,0,0),drift:CF(this._onHandleDragMove,this),ondragend:CF(this._onHandleDragEnd,this)}),r.add(o)),vae(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");er(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,jge(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){hae(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)),Hv(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 hae(e,t,n,r){hye(Hv(n).lastProp,r)||(Hv(n).lastProp=r,t?eu(n,r,e):(n.stopAnimation(),n.attr(r)))}function hye(e,t){if(Ir(e)&&Ir(t)){var n=!0;return Et(t,function(r,o){n=n&&hye(e[o],r)}),!!n}else return e===t}function pae(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 vae(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 tgt(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 ngt(e,t,n,r,o){var a=n.get("value"),s=pye(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=AA(l.get("padding")||0),d=l.getFont(),h=dW(s,d),p=o.position,m=h.width+c[1]+c[3],g=h.height+c[0]+c[2],y=o.align;y==="right"&&(p[0]-=m),y==="center"&&(p[0]-=m/2);var S=o.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),rgt(p,m,g,r);var k=l.get("backgroundColor");(!k||k==="auto")&&(k=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:T0(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function rgt(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 pye(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:[]};Et(r,function(c){var d=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=d&&d.getDataParams(h);p&&l.seriesData.push(p)}),yr(s)?a=s.replace("{value}",a):ei(s)&&(a=s(l))}return a}function vye(e,t,n){var r=ay();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 igt(e,t,n,r,o,a){var s=p0.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),ngt(t,r,o,a,{position:vye(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function ogt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function sgt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var agt=(function(e){Fn(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=mae(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(d&&d!=="none"){var m=tgt(a),g=lgt[d](l,p,h);g.style=m,n.graphicKey=g.type,n.pointer=g}var y=Sz(c.model,o);igt(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=vye(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=mae(l,s).getOtherAxis(s).getGlobalExtent(),h=s.dim==="x"?0:1,p=[n.x,n.y];p[h]+=r[h],p[h]=Math.min(c[1],p[h]),p[h]=Math.max(c[0],p[h]);var m=(d[1]+d[0])/2,g=[m,m];g[h]=p[h];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:y[h]}},t})(egt);function mae(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var lgt={line:function(e,t,n){var r=ogt([t,n[0]],[t,n[1]],gae(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:sgt([t-r/2,n[0]],[r,o],gae(e))}}};function gae(e){return e.dim==="x"?0:1}var ugt=(function(e){Fn(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})(fo),Th=$s(),cgt=Et;function mye(e,t,n){if(!Vr.node){var r=t.getZr();Th(r).records||(Th(r).records={}),dgt(r,t);var o=Th(r).records[e]||(Th(r).records[e]={});o.handler=n}}function dgt(e,t){if(Th(e).initialized)return;Th(e).initialized=!0,n("click",Ps(yae,"click")),n("mousemove",Ps(yae,"mousemove")),n("globalout",hgt);function n(r,o){e.on(r,function(a){var s=pgt(t);cgt(Th(e).records,function(l){l&&o(l,a,s.dispatchAction)}),fgt(s.pendings,t)})}}function fgt(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 hgt(e,t,n){e.handler("leave",null,n)}function yae(e,t,n,r){t.handler(e,n,r)}function pgt(e){var t={showTip:[],hideTip:[]},n=function(r){var o=t[r.type];o?o.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Cz(e,t){if(!Vr.node){var n=t.getZr(),r=(Th(n).records||{})[e];r&&(Th(n).records[e]=null)}}var vgt=(function(e){Fn(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";mye("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 gye(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=Pm(a,e);if(s==null||s<0||er(s))return{point:[]};var l=a.getItemGraphicEl(s),c=o.coordinateSystem;if(o.getTooltipPosition)n=o.getTooltipPosition(s)||[];else if(c&&c.dataToPoint)if(e.isStacked){var d=c.getBaseAxis(),h=c.getOtherAxis(d),p=h.dim,m=d.dim,g=p==="x"||p==="radius"?1:0,y=a.mapDimension(m),S=[];S[g]=a.get(y,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(wr(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 bae=$s();function mgt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Ro(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){uE(o)&&(o=gye({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=uE(o),d=a.axesInfo,h=l.axesInfo,p=r==="leave"||uE(o),m={},g={},y={list:[],map:{}},S={showPointer:Ps(ygt,g),showTooltip:Ps(bgt,y)};Et(l.coordSysMap,function(C,x){var E=c||C.containPoint(o);Et(l.coordSysAxesInfo[x],function(_,T){var D=_.axis,P=xgt(d,_);if(!p&&E&&(!d||P)){var M=P&&P.value;M==null&&!c&&(M=D.pointToData(o)),M!=null&&_ae(_,M,S,!1,m)}})});var k={};return Et(h,function(C,x){var E=C.linkGroup;E&&!g[x]&&Et(E.axesInfo,function(_,T){var D=g[T];if(_!==C&&D){var P=D.value;E.mapper&&(P=C.axis.scale.parse(E.mapper(P,Sae(_),Sae(C)))),k[C.key]=P}})}),Et(k,function(C,x){_ae(h[x],C,S,!0,m)}),_gt(g,h,m),Sgt(y,o,e,s),kgt(h,s,n),m}}function _ae(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=ggt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&_n(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function ggt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return Et(t.seriesModels,function(c,d){var h=c.getData().mapDimensionsAll(r),p,m;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);m=g.dataIndices,p=g.nestestValue}else{if(m=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!m.length)return;p=c.getData().get(h[0],m[0])}if(!(p==null||!isFinite(p))){var y=e-p,S=Math.abs(y);S<=s&&((S=0&&l<0)&&(s=S,l=y,o=p,a.length=0),Et(m,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:o}}function ygt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function bgt(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=b_(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 _gt(e,t,n){var r=n.axesInfo=[];Et(t,function(o,a){var s=o.axisPointerModel.option,l=e[a];l?(!o.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!o.useHandle&&(s.status="hide"),s.status==="show"&&r.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:s.value})})}function Sgt(e,t,n,r){if(uE(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 kgt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=bae(r)[o]||{},s=bae(r)[o]={};Et(e,function(d,h){var p=d.axisPointerModel.option;p.status==="show"&&d.triggerEmphasis&&Et(p.seriesDataIndices,function(m){var g=m.seriesIndex+" | "+m.dataIndex;s[g]=m})});var l=[],c=[];Et(a,function(d,h){!s[h]&&c.push(d)}),Et(s,function(d,h){!a[h]&&l.push(d)}),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function xgt(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 Sae(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 uE(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function yye(e){cye.registerAxisPointerClass("CartesianAxisPointer",agt),e.registerComponentModel(ugt),e.registerComponentView(vgt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!er(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Fmt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mgt)}function bye(e){Hh(Qmt),Hh(yye)}function Cgt(e,t){var n=AA(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 wgt=(function(e){Fn(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})(fo);function _ye(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Sye(e){if(Vr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(d=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(d=a==="top"?225:45)+"deg)");var h=d*Math.PI/180,p=s+o,m=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((m-Math.SQRT2*o)/2+Math.SQRT2*o-(m-p)/2)*100)/100;l+=";"+a+":-"+g+"px";var y=t+" solid "+o+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'
'}function Pgt(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,o="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,o+=Vr.transformSupported?","+sG+r:",left"+r+",top"+r),Agt+":"+o}function kae(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!Vr.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=Vr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+sG+":"+s+";":[["top",0],["left",0],[kye,s]]}function Rgt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=vi(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+o+"px");var a=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&s&&t.push("text-shadow:"+l+"px "+c+"px "+s+"px "+a),Et(["decoration","align"],function(d){var h=e.get(d);h&&t.push("text-"+d+":"+h)}),t.join(";")}function Mgt(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=Nge(e,"html"),m=c+"px "+d+"px "+s+"px "+l;return r.push("box-shadow:"+m),t&&o&&r.push(Pgt(o,n)),a&&r.push("background-color:"+a),Et(["width","color","radius"],function(g){var y="border-"+g,S=fge(y),k=e.get(S);k!=null&&r.push(y+":"+k+(g==="color"?"":"px"))}),r.push(Rgt(h)),p!=null&&r.push("padding:"+AA(p).join("px ")+"px"),r.join(";")+";"}function xae(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&elt(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 Ogt=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Vr.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=t.getZr(),a=n.appendTo,s=a&&(yr(a)?document.querySelector(a):o_(a)?a:ei(a)&&a(t.getDom()));xae(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=Tgt(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=Igt+Mgt(t,!this._firstShow,this._longHide)+kae(a[0],a[1],!0)+("border-color:"+Mm(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,o,a){var s=this.el;if(t==null){s.innerHTML="";return}var l="";if(yr(a)&&r.get("trigger")==="item"&&!_ye(r)&&(l=Dgt(r,o,a)),yr(t))s.innerHTML=t+l;else if(t){s.innerHTML="",er(t)||(t=[t]);for(var c=0;c=0?this._tryShow(a,s):o==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,o=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&s.manuallyShowTip(n,r,o,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,o,a){if(!(a.from===this.uid||Vr.node||!o.getDom())){var s=Eae(a,o);this._ticket="";var l=a.dataByCoordSys,c=zgt(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=Bgt;h.x=a.x,h.y=a.y,h.update(),Yi(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=gye(a,r),m=p.point[0],g=p.point[1];m!=null&&g!=null&&this._tryShow({offsetX:m,offsetY:g,target:p.el,position:a.position,positionDefault:"bottom"},s)}else a.x!=null&&a.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:o.getZr().findHover(a.x,a.y).target},s))}},t.prototype.manuallyHideTip=function(n,r,o,a){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Eae(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=d4([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=Yi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,d;M4(o,function(h){if(Yi(h).dataIndex!=null)return c=h,!0;if(Yi(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=Ro(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=d4([r.tooltipOption],a),c=this._renderMode,d=[],h=v_("section",{blocks:[],noHeader:!0}),p=[],m=new tF;Et(n,function(x){Et(x.dataByAxis,function(E){var _=o.getComponent(E.axisDim+"Axis",E.axisIndex),T=E.value;if(!(!_||T==null)){var D=pye(T,_.axis,o,E.seriesDataIndices,E.valueLabelOpt),P=v_("section",{header:D,noHeader:!ff(D),sortBlocks:!0,blocks:[]});h.blocks.push(P),Et(E.seriesDataIndices,function(M){var $=o.getSeriesByIndex(M.seriesIndex),I=M.dataIndexInside,N=$.getDataParams(I);if(!(N.dataIndex<0)){N.axisDim=E.axisDim,N.axisIndex=E.axisIndex,N.axisType=E.axisType,N.axisId=E.axisId,N.axisValue=QW(_.axis,{value:T}),N.axisValueLabel=D,N.marker=m.makeTooltipMarker("item",Mm(N.color),c);var F=Noe($.formatTooltip(I,!0,null)),W=F.frag;if(W){var U=d4([$],a).get("valueFormatter");P.blocks.push(U?_n({valueFormatter:U},W):W)}F.text&&p.push(F.text),d.push(N)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,y=l.get("order"),S=Uoe(h,m,c,y,o.get("useUTC"),l.get("textStyle"));S&&p.unshift(S);var k=c==="richText"?` `:"
",C=p.join(k);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,d)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,d):this._showTooltipContent(l,C,d,Math.random()+"",s[0],s[1],g,null,m)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=Yi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),d=s.dataModel||c,h=s.dataIndex,p=s.dataType,m=d.getData(p),g=this._renderMode,y=n.positionDefault,S=d4([m.getItemModel(h),d,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var C=d.getDataParams(h,p),x=new tF;C.marker=x.makeTooltipMarker("item",Mm(C.color),g);var E=Noe(d.formatTooltip(h,!1,p)),_=S.get("order"),T=S.get("valueFormatter"),D=E.frag,P=D?Uoe(T?_n({valueFormatter:T},D):D,x,g,_,a.get("useUTC"),S.get("textStyle")):E.text,M="item_"+d.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,P,C,M,n.offsetX,n.offsetY,n.position,n.target,x)}),o({type:"showTip",dataIndexInside:h,dataIndex:m.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,o){var a=this._renderMode==="html",s=Yi(r),l=s.tooltipConfig,c=l.option||{},d=c.encodeHTMLContent;if(yr(c)){var h=c;c={content:h,formatter:h},d=!0}d&&a&&c.content&&(c=Vi(c),c.content=yu(c.content));var p=[c],m=this._ecModel.getComponent(s.componentMainType,s.componentIndex);m&&p.push(m),p.push({formatter:c.content});var g=n.positionDefault,y=d4(p,this._tooltipModel,g?{position:g}:null),S=y.get("content"),k=Math.random()+"",C=new tF;this._showOrMove(y,function(){var x=Vi(y.get("formatterParams")||{});this._showTooltipContent(y,S,x,k,n.offsetX,n.offsetY,n.position,r,C)}),o({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,o,a,s,l,c,d,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var p=this._tooltipContent;p.setEnterable(n.get("enterable"));var m=n.get("formatter");c=c||n.get("position");var g=r,y=this._getNearestPoint([s,l],o,n.get("trigger"),n.get("borderColor")),S=y.color;if(m)if(yr(m)){var k=n.ecModel.get("useUTC"),C=er(o)?o[0]:o,x=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=m,x&&(g=xA(C.axisValue,g,k)),g=hge(g,o,!0)}else if(ei(m)){var E=Ro(function(_,T){_===this._ticket&&(p.setContent(T,h,n,S,c),this._updatePosition(n,c,s,l,p,o,d))},this);this._ticket=a,g=m(o,a,E)}else g=m;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,o,d)}},t.prototype._getNearestPoint=function(n,r,o,a){if(o==="axis"||er(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!er(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,o,a,s,l,c){var d=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),m=n.get("align"),g=n.get("verticalAlign"),y=c&&c.getBoundingRect().clone();if(c&&y.applyTransform(c.transform),ei(r)&&(r=r([o,a],l,s.el,y,{viewSize:[d,h],contentSize:p.slice()})),er(r))o=Zo(r[0],d),a=Zo(r[1],h);else if(Ir(r)){var S=r;S.width=p[0],S.height=p[1];var k=$y(S,{width:d,height:h});o=k.x,a=k.y,m=null,g=null}else if(yr(r)&&c){var C=Vgt(r,y,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=Fgt(o,a,s,d,h,m?null:20,g?null:20);o=C[0],a=C[1]}if(m&&(o-=Tae(m)?p[0]/2:m==="right"?p[0]:0),g&&(a-=Tae(g)?p[1]/2:g==="bottom"?p[1]:0),_ye(n)){var C=jgt(o,a,s,d,h);o=C[0],a=C[1]}s.moveTo(o,a)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var o=this._lastDataByCoordSys,a=this._cbParamsList,s=!!o&&o.length===n.length;return s&&Et(o,function(l,c){var d=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&d.length===p.length,s&&Et(d,function(m,g){var y=p[g]||{},S=m.seriesDataIndices||[],k=y.seriesDataIndices||[];s=s&&m.value===y.value&&m.axisType===y.axisType&&m.axisId===y.axisId&&S.length===k.length,s&&Et(S,function(C,x){var E=k[x];s=s&&C.seriesIndex===E.seriesIndex&&C.dataIndex===E.dataIndex}),a&&Et(m.seriesDataIndices,function(C){var x=C.seriesIndex,E=r[x],_=a[x];E&&_&&_.data!==E.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Vr.node||!r.getDom()||(sz(this,"_updatePosition"),this._tooltipContent.dispose(),Cz("itemTooltip",r))},t.type="tooltip",t})(Od);function d4(e,t,n){var r=t.ecModel,o;n?(o=new ks(n,r,r),o=new ks(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof ks&&(s=s.get("tooltip",!0)),yr(s)&&(s={formatter:s}),s&&(o=new ks(s,o,r)))}return o}function Eae(e,t){return e.dispatchAction||Ro(t.dispatchAction,t)}function Fgt(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 jgt(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 Vgt(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 Tae(e){return e==="center"||e==="middle"}function zgt(e,t,n){var r=vW(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=sS(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=Yi(d).tooltipConfig;if(h&&h.name===e.name)return c=d,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function Cye(e){Hh(yye),e.registerComponentModel(wgt),e.registerComponentView(Ngt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tu),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tu)}var Ugt=(function(e){Fn(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})(fo),Hgt=(function(e){Fn(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=vi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new Ja({style:T0(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),m=n.get("subtext"),g=new Ja({style:T0(l,{text:m,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!y&&!k,g.silent=!S&&!k,y&&h.on("click",function(){_oe(y,"_"+n.get("target"))}),S&&g.on("click",function(){_oe(S,"_"+n.get("subtarget"))}),Yi(h).eventData=Yi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),m&&a.add(g);var C=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=C.width,x.height=C.height;var E=$y(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 wye(e){e.registerComponentModel(Ugt),e.registerComponentView(Hgt)}var Wgt=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){Fn(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"]),er(r)&&Et(r,function(a,s){yr(a)&&(a={type:a}),r[s]=so(a,Wgt(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})(fo),b1=Ps,Ez=Et,lC=Za,Eye=(function(e){Fn(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 lC),this.group.add(this._selectorGroup=new lC),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,o){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var c=n.get("selector",!0),d=n.get("selectorPosition",!0);c&&(!d||d==="auto")&&(d=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,o,c,l,d);var h=n.getBoxLayoutParams(),p={width:o.getWidth(),height:o.getHeight()},m=n.get("padding"),g=$y(h,p,m),y=this.layoutInner(n,s,g,a,c,d),S=$y(lo({width:y.width,height:y.height},h),p,m);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Cgt(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=Si(),p=r.get("selectedMode"),m=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&m.push(g.id)}),Ez(r.getData(),function(g,y){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new lC;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",b1(Aae,S,null,a,m)).on("mouseover",b1(Tz,C.name,null,a,m)).on("mouseout",b1(Az,C.name,null,a,m)),o.ssr&&D.eachChild(function(P){var M=Yi(P);M.seriesIndex=C.seriesIndex,M.dataIndex=y,M.ssrType="legend"}),h.set(S,!0)}else o.eachRawSeries(function(P){if(!h.get(S)&&P.legendVisualProvider){var M=P.legendVisualProvider;if(!M.containName(S))return;var $=M.indexOfName(S),I=M.getItemVisual($,"style"),N=M.getItemVisual($,"legendIcon"),F=Dh(I.fill);F&&F[3]===0&&(F[3]=.2,I=_n(_n({},I),{fill:lA(F,"rgba")}));var W=this._createItem(P,S,y,g,r,n,{},I,N,p,a);W.on("click",b1(Aae,null,S,a,m)).on("mouseover",b1(Tz,null,S,a,m)).on("mouseout",b1(Az,null,S,a,m)),o.ssr&&W.eachChild(function(U){var G=Yi(U);G.seriesIndex=P.seriesIndex,G.dataIndex=y,G.ssrType="legend"}),h.set(S,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,o,a,s){var l=this.getSelectorGroup();Ez(n,function(d){var h=d.type,p=new Ja({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});l.add(p);var m=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);uS(p,{normal:m,emphasis:g},{defaultText:d.title}),YV(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,d,h,p,m){var g=n.visualDrawType,y=s.get("itemWidth"),S=s.get("itemHeight"),k=s.isSelected(r),C=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),E=a.get("icon");h=E||h||"roundRect";var _=Ggt(h,a,c,d,g,k,m),T=new lC,D=a.getModel("textStyle");if(ei(n.getLegendIcon)&&(!E||E==="inherit"))T.add(n.getLegendIcon({itemWidth:y,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var P=E==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;T.add(Kgt({itemWidth:y,itemHeight:S,icon:h,iconRotate:P,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var M=l==="left"?y+5:-5,$=l,I=s.get("formatter"),N=r;yr(I)&&I?N=I.replace("{name}",r??""):ei(I)&&(N=I(r));var F=k?D.getTextColor():a.get("inactiveColor");T.add(new Ja({style:T0(D,{text:N,x:M,y:S/2,fill:F,align:$,verticalAlign:"middle"},{inheritColor:F})}));var W=new Zs({shape:T.getBoundingRect(),style:{fill:"transparent"}}),U=a.getModel("tooltip");return U.get("show")&&yA({el:W,componentModel:s,itemName:r,itemTooltipOption:U.option}),T.add(W),T.eachChild(function(G){G.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();Sb(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){Sb("horizontal",d,n.get("selectorItemGap",!0));var m=d.getBoundingRect(),g=[-m.x,-m.y],y=n.get("selectorButtonGap",!0),S=n.getOrient().index,k=S===0?"width":"height",C=S===0?"height":"width",x=S===0?"y":"x";l==="end"?g[S]+=h[k]+y:p[S]+=m[k]+y,g[1-S]+=h[C]/2-m[C]/2,d.x=g[0],d.y=g[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[k]=h[k]+y+m[k],E[C]=Math.max(h[C],m[C]),E[x]=Math.min(0,m[x]+g[1-S]),E}else return c.x=p[0],c.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Od);function Ggt(e,t,n,r,o,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),Ez(k,function(x,E){k[E]==="inherit"&&(k[E]=C[E])})}var c=t.getModel("itemStyle"),d=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");d.decal=!p||p==="inherit"?r.decal:dz(p,s),d.fill==="inherit"&&(d.fill=r[o]),d.stroke==="inherit"&&(d.stroke=r[h]),d.opacity==="inherit"&&(d.opacity=(o==="fill"?r:n).opacity),l(d,r);var m=t.getModel("lineStyle"),g=m.getLineStyle();if(l(g,n),d.fill==="auto"&&(d.fill=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var y=t.get("inactiveBorderWidth"),S=d[h];d.lineWidth=y==="auto"?r.lineWidth>0&&S?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),g.stroke=m.get("inactiveColor"),g.lineWidth=m.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function Kgt(e){var t=e.icon||"roundRect",n=Fy(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 Aae(e,t,n,r){Az(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Tz(e,t,n,r)}function Tye(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=vi(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?x[a]+=o[s]-y[s]:C[a]+=y[s]+E}x[1-a]+=g[l]/2-y[l]/2,h.setPosition(k),p.setPosition(C),m.setPosition(x);var T={x:0,y:0};if(T[s]=S?o[s]:g[s],T[l]=Math.max(g[l],y[l]),T[c]=Math.min(0,y[c]+x[1-a]),p.__rectSize=o[s],S){var D={x:0,y:0};D[s]=Math.max(o[s]-y[s]-E,0),D[l]=T[l],p.setClipPath(new Zs({shape:D})),p.__rectSize=D[s]}else m.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(n);return P.pageIndex!=null&&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;Et(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",m=r[p]!=null,g=o.childOfName(h);g&&(g.setStyle("fill",m?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=m?"pointer":"default")});var a=o.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,d=r.pageCount;a&&s&&a.setStyle("text",yr(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",d==null?"":d+""):s({current:c,total:d}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=EF[s],c=TF[s],d=this._findTargetItemIndex(r),h=o.children(),p=h[d],m=h.length,g=m?1:0,y={contentPosition:[o.x,o.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var S=_(p);y.contentPosition[s]=-S.s;for(var k=d+1,C=S,x=S,E=null;k<=m;++k)E=_(h[k]),(!E&&x.e>C.s+a||E&&!T(E,C.s))&&(x.i>C.i?C=x:C=E,C&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=C.i),++y.pageCount)),x=E;for(var k=d-1,C=S,x=S,E=null;k>=-1;--k)E=_(h[k]),(!E||!T(x,E.s))&&C.i=P&&D.s<=P+a}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,o=this.getContentGroup(),a;return o.eachChild(function(s,l){var c=s.__legendDataIndex;a==null&&c!=null&&(a=l),c===n&&(r=l)}),r??a},t.type="legend.scroll",t})(Eye);function Jgt(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 Qgt(e){Hh(Aye),e.registerComponentModel(Xgt),e.registerComponentView(Zgt),Jgt(e)}function Iye(e){Hh(Aye),Hh(Qgt)}const e1t=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function t1t(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 e1t.forEach(o=>{r[o]=t(o)}),r}return n()}function n1t(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:m=100,onResize:g}=p;let y=!1;const S=()=>{o.resize(),g?.()},k=m?PA(S,m):S;c=new ResizeObserver(()=>{!y&&(y=!0,r.offsetWidth===d&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const r1t={autoresize:[Boolean,Object]},i1t=/^on[^a-z]/,Lye=e=>i1t.test(e);function o1t(e){const t={};for(const n in e)Lye(n)||(t[n]=e[n]);return t}function cE(e,t){const n=$o(e)?et(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const s1t="ecLoadingOptions";function a1t(e,t,n){const r=Rn(s1t,{}),o=j(()=>({...cE(r,{}),...n?.value}));Os(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const l1t={loading:Boolean,loadingOptions:Object};let h4=null;const Dye="x-vue-echarts";function u1t(){if(h4!=null)return h4;if(typeof HTMLElement>"u"||typeof customElements>"u")return h4=!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);")(Dye)}catch{return h4=!1}return h4=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const c1t=u1t(),d1t="ecTheme",f1t="ecInitOptions",h1t="ecUpdateOptions",Pae=/(^&?~?!?)native:/;var Pye=ke({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...r1t,...l1t},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=l0(),r=l0(),o=l0(),a=Rn(d1t,null),s=Rn(f1t,null),l=Rn(h1t,null),{autoresize:c,manualUpdate:d,loading:h,loadingOptions:p}=en(e),m=j(()=>o.value||e.option||null),g=j(()=>e.theme||cE(a,{})),y=j(()=>e.initOptions||cE(s,{})),S=j(()=>e.updateOptions||cE(l,{})),k=j(()=>o1t(t)),C={},x=yo().proxy.$listeners,E={};x?Object.keys(x).forEach($=>{Pae.test($)?C[$.replace(Pae,"$1")]=x[$]:E[$]=x[$]}):Object.keys(t).filter($=>Lye($)).forEach($=>{let I=$.charAt(2).toLowerCase()+$.slice(3);if(I.indexOf("native:")===0){const N=`on${I.charAt(7).toUpperCase()}${I.slice(8)}`;C[N]=t[$];return}I.substring(I.length-4)==="Once"&&(I=`~${I.substring(0,I.length-4)}`),E[I]=t[$]});function _($){if(!n.value)return;const I=r.value=Wpt(n.value,g.value,y.value);e.group&&(I.group=e.group),Object.keys(E).forEach(W=>{let U=E[W];if(!U)return;let G=W.toLowerCase();G.charAt(0)==="~"&&(G=G.substring(1),U.__once__=!0);let Z=I;if(G.indexOf("zr:")===0&&(Z=I.getZr(),G=G.substring(3)),U.__once__){delete U.__once__;const oe=U;U=(...X)=>{oe(...X),Z.off(G,U)}}Z.on(G,U)});function N(){I&&!I.isDisposed()&&I.resize()}function F(){const W=$||m.value;W&&I.setOption(W,S.value)}c.value?Sn(()=>{N(),F()}):F()}function T($,I){e.manualUpdate&&(o.value=$),r.value?r.value.setOption($,I||{}):_($)}function D(){r.value&&(r.value.dispose(),r.value=void 0)}let P=null;Rt(d,$=>{typeof P=="function"&&(P(),P=null),$||(P=Rt(()=>e.option,(I,N)=>{I&&(r.value?r.value.setOption(I,{notMerge:I!==N,...S.value}):_())},{deep:!0}))},{immediate:!0}),Rt([g,y],()=>{D(),_()},{deep:!0}),Os(()=>{e.group&&r.value&&(r.value.group=e.group)});const M=t1t(r);return a1t(r,h,p),n1t(r,c,n),mn(()=>{_()}),Ao(()=>{c1t&&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(Dye,e)}});const Cu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},Rye=()=>new Date().toISOString().split("T")[0],p1t=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},v1t=()=>{const e=new Date,t=e.getDay(),n=new Date(e);n.setDate(e.getDate()-t);const r=[];for(let o=0;o<7;o++){const a=new Date(n);a.setDate(n.getDate()+o),r.push(a.toISOString().split("T")[0])}return r},wf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},CT=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},Mye=e=>{const t=Rye(),n=new Date().toISOString(),r=wf(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),CT(Cu.WATCH_HISTORY,r),aG(t),o},aG=e=>{const t=wf(Cu.DAILY_STATS,{}),n=wf(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()},CT(Cu.DAILY_STATS,t)},Oye=()=>{const e=Rye(),t=wf(Cu.DAILY_STATS,{});return t[e]?t[e]:(aG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},$ye=()=>{const e=p1t(),t=wf(Cu.DAILY_STATS,{});return t[e]?t[e]:(aG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},m1t=()=>{const e=v1t(),t=wf(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}})},g1t=()=>{const e=Oye(),t=$ye();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},y1t=(e=50)=>wf(Cu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),b1t=(e=10)=>{const t=wf(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)},_1t=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=wf(Cu.WATCH_HISTORY,[]).filter(l=>l.date>=n);CT(Cu.WATCH_HISTORY,o);const a=wf(Cu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),CT(Cu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},S1t=()=>{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:"🎉"}}),Nye=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),k1t=()=>Nc.sort((e,t)=>new Date(t.date)-new Date(e.date)),x1t=e=>Nc.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),C1t=e=>Nc.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),w1t=(e=5)=>Nc.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),E1t=(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))},T1t=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))},A1t=()=>{const e=Bye(),t=Nye(),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]}},I1t=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"})},L1t=(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(aDi,P1t=e=>Di[e]||[],R1t=(e=12)=>[...Di.movies,...Di.tvShows,...Di.anime,...Di.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),M1t=(e=8)=>[...Di.movies,...Di.tvShows,...Di.anime,...Di.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),O1t=(e,t=6)=>[...Di.movies,...Di.tvShows,...Di.anime,...Di.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),$1t=(e,t=6)=>[...Di.movies,...Di.tvShows,...Di.anime,...Di.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),B1t=e=>{const t=e.toLowerCase();return[...Di.movies,...Di.tvShows,...Di.anime,...Di.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)},N1t=()=>BA.sort((e,t)=>t.count-e.count),F1t=(e=10)=>BA.sort((t,n)=>n.count-t.count).slice(0,e),j1t=(e=5)=>BA.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),V1t=(e=[],t=8)=>{const n=z1t();return[...Di.movies,...Di.tvShows,...Di.anime,...Di.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)},z1t=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),U1t=()=>{const e=[...Di.movies,...Di.tvShows,...Di.anime,...Di.novels],t={};Object.keys(Di).forEach(a=>{t[a]=Di[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:BA.length}},H1t=(e=6)=>[...Di.movies,...Di.tvShows,...Di.anime,...Di.novels].sort(()=>.5-Math.random()).slice(0,e),v4={getAllRecommendations:D1t,getRecommendationsByType:P1t,getHotRecommendations:R1t,getTrendingRecommendations:M1t,getRecommendationsByCategory:O1t,getRecommendationsByTag:$1t,searchRecommendations:B1t,getAllKeywords:N1t,getHotKeywords:F1t,getTrendingUpKeywords:j1t,getPersonalizedRecommendations:V1t,getRecommendationStats:U1t,getRandomRecommendations:H1t},NA=Zm("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||{}}}),W1t="识别动作的路由ID或专项动作指令,必须。字符型。",G1t="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",K1t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",q1t="标题。字符型。",Y1t="宽度。整型。",X1t="高度。整型。",Z1t="文本消息内容。字符型。",J1t="msgbox类动作的简单html消息内容。字符型。",Q1t="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",eyt="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",tyt="图片URL。字符型。",nyt="图片高度。整型。",ryt="是否检测图片的点击坐标输入。逻辑型。",iyt="生成二维码的URL。字符型。",oyt="二维码的大小。整型。",syt="超时时间(秒)。超时自动关闭窗口。整型。",ayt="T4源的动作网络访问超时时间(秒)。",lyt="输入确认后,窗口是否保持。逻辑型。",uyt="窗口弹出时自动发送的初始化动作指令。字符型。",cyt="窗口弹出时自动发送的初始化指令值。字符型。",dyt="按窗口的取消键时发送的取消动作指令。字符型。",fyt="按窗口的取消键时发送的取消动作指令值。字符型。",hyt="单项输入的输入提示,单项输入时必须。字符型。",pyt="单项输入的初始化值。字符型。",vyt="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",myt=`多项输入的项目定义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。`,gyt="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",yyt="底部对齐和底边距。整型。",byt="单项选择或多项选择窗口的列数。整型。",_yt=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,Syt=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,kyt=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,xyt=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,Cyt="刷新当前分类的列表。无其它参数。",wyt="把返回的内容复制到剪贴板。content:复制的内容",Eyt=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,Tyt={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为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:W1t,type:G1t,canceledOnTouchOutside:K1t,title:q1t,width:Y1t,height:X1t,msg:Z1t,htmlMsg:J1t,help:Q1t,button:eyt,imageUrl:tyt,imageHeight:nyt,imageClickCoord:ryt,qrcode:iyt,qrcodeSize:oyt,timeout:syt,httpTimeout:ayt,keep:lyt,initAction:uyt,initValue:cyt,cancelAction:dyt,cancelValue:fyt,tip:hyt,value:pyt,selectData:vyt,input:myt,dimAmount:gyt,bottom:yyt,column:byt,option:_yt,单项输入:`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__:Syt,__detail__:kyt,__ktvplayer__:xyt,__refresh_list__:Cyt,__copy__:wyt,__keep__:Eyt,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的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'  }`},Ayt={class:"action-doc-card"},Iyt={class:"card-title"},Lyt={class:"card-content"},Dyt={class:"overview-section"},Pyt={class:"overview-item"},Ryt={class:"overview-value"},Myt={class:"overview-item"},Oyt={class:"overview-value"},$yt={class:"overview-item"},Byt={class:"overview-value"},Nyt={key:0,class:"quick-nav"},Fyt={key:1,class:"expanded-content"},jyt={class:"section",id:"basic-concepts"},Vyt={class:"section-title"},zyt={class:"concept-grid"},Uyt={class:"concept-title"},Hyt={class:"concept-desc"},Wyt={class:"section",id:"action-types"},Gyt={class:"section-title"},Kyt={class:"action-types-grid"},qyt={class:"action-type-header"},Yyt={class:"action-type-code"},Xyt={class:"action-type-desc"},Zyt={key:0,class:"action-type-usage"},Jyt={class:"section",id:"special-actions"},Qyt={class:"section-title"},e3t={class:"special-actions-list"},t3t={class:"special-action-header"},n3t={class:"action-id"},r3t={class:"action-name"},i3t={class:"special-action-desc"},o3t={key:0,class:"special-action-params"},s3t={class:"section",id:"config-params"},a3t={class:"section-title"},l3t={class:"params-grid"},u3t={class:"param-header"},c3t={class:"param-name"},d3t={class:"param-desc"},f3t={class:"section",id:"examples"},h3t={class:"section-title"},p3t={class:"code-block"},v3t={class:"code-block"},m3t={class:"code-block"},g3t={__name:"ActionDocCard",setup(e){const t=fe(!1),n=fe(Tyt),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};mn(()=>{});const a=j(()=>Object.keys(n.value).length),s=j(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=j(()=>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=j(()=>[{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=j(()=>[{key:"self_search",actionId:"__self_search__",name:"源内搜索",description:n.value.__self_search__?.split(` `)[0]||"",params:["skey","name","tid","flag","folder"]},{key:"detail",actionId:"__detail__",name:"详情页跳转",description:n.value.__detail__?.split(` `)[0]||"",params:["skey","ids"]},{key:"ktvplayer",actionId:"__ktvplayer__",name:"KTV播放",description:n.value.__ktvplayer__?.split(` `)[0]||"",params:["name","id"]},{key:"refresh_list",actionId:"__refresh_list__",name:"刷新列表",description:n.value.__refresh_list__||"",params:[]},{key:"copy",actionId:"__copy__",name:"复制内容",description:n.value.__copy__||"",params:["content"]},{key:"keep",actionId:"__keep__",name:"保持窗口",description:n.value.__keep__?.split(` `)[0]||"",params:["msg","reset"]}]),m=fe([{key:"actionId",name:"actionId",type:"字符型",typeColor:"blue",description:"识别动作的路由ID或专项动作指令,必须"},{key:"type",name:"type",type:"字符型",typeColor:"blue",description:"动作的类型"},{key:"title",name:"title",type:"字符型",typeColor:"blue",description:"标题"},{key:"width",name:"width",type:"整型",typeColor:"green",description:"宽度"},{key:"height",name:"height",type:"整型",typeColor:"green",description:"高度"},{key:"msg",name:"msg",type:"字符型",typeColor:"blue",description:"文本消息内容"},{key:"button",name:"button",type:"整型",typeColor:"green",description:"按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置"},{key:"timeout",name:"timeout",type:"整型",typeColor:"green",description:"超时时间(秒)。超时自动关闭窗口"},{key:"keep",name:"keep",type:"逻辑型",typeColor:"purple",description:"输入确认后,窗口是否保持"},{key:"tip",name:"tip",type:"字符型",typeColor:"blue",description:"单项输入的输入提示,单项输入时必须"}]),g=fe(`{ "vod_id": "hello world", "vod_name": "基础动作", "vod_tag": "action" }`),y=fe(`{ "actionId": "动作路由ID", "type": "input", "width": 450, "title": "输入窗口标题", "tip": "输入提示", "value": "输入初始值", "msg": "窗口文本说明", "button": 2, "selectData": "1:=快速输入一,2:=快速输入二,3:=快速输入三" }`),S=fe(`{ "actionId": "多项输入", "type": "multiInputX", "title": "多项输入(multiInputX)", "width": 716, "button": 3, "input": [ { "id": "item1", "name": "文件夹路径", "tip": "请输入文件夹路径", "selectData": "[folder]", "inputType": 0 }, { "id": "item2", "name": "多行输入", "tip": "请输入内容", "multiLine": 5 } ] }`);return(k,C)=>{const x=De("a-button"),E=De("a-tag"),_=De("a-card"),T=De("a-tab-pane"),D=De("a-tabs");return z(),ee("div",Ayt,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[L("div",Iyt,[O(et(tA),{class:"title-icon"}),C[0]||(C[0]=L("span",null,"Action 动作指令文档",-1))])]),extra:de(()=>[O(x,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:de(()=>[t.value?Pe("",!0):(z(),Ye(et(Yh),{key:0})),t.value?(z(),Ye(et(Y_),{key:1})):Pe("",!0),We(" "+Ue(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[L("div",Lyt,[L("div",Dyt,[L("div",Pyt,[C[1]||(C[1]=L("div",{class:"overview-label"},"总条目数",-1)),L("div",Ryt,Ue(a.value),1)]),L("div",Myt,[C[2]||(C[2]=L("div",{class:"overview-label"},"动作类型",-1)),L("div",Oyt,Ue(s.value.length),1)]),L("div",$yt,[C[3]||(C[3]=L("div",{class:"overview-label"},"专项动作",-1)),L("div",Byt,Ue(l.value.length),1)])]),t.value?Pe("",!0):(z(),ee("div",Nyt,[(z(!0),ee(Nt,null,vn(c.value,P=>(z(),Ye(E,{key:P.key,color:P.color,class:"nav-tag",onClick:M=>o(P.key)},{default:de(()=>[We(Ue(P.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(z(),ee("div",Fyt,[L("div",jyt,[L("h3",Vyt,[O(et(Pc),{class:"section-icon"}),C[4]||(C[4]=We(" 基础概念 ",-1))]),L("div",zyt,[(z(!0),ee(Nt,null,vn(d.value,P=>(z(),ee("div",{class:"concept-item",key:P.key},[L("div",Uyt,Ue(P.title),1),L("div",Hyt,Ue(P.description),1)]))),128))])]),L("div",Wyt,[L("h3",Gyt,[O(et(Lf),{class:"section-icon"}),C[5]||(C[5]=We(" 动作类型 ",-1))]),L("div",Kyt,[(z(!0),ee(Nt,null,vn(h.value,P=>(z(),Ye(_,{key:P.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[L("div",qyt,[O(E,{color:P.color},{default:de(()=>[We(Ue(P.name),1)]),_:2},1032,["color"]),L("span",Yyt,Ue(P.type),1)]),L("div",Xyt,Ue(P.description),1),P.usage?(z(),ee("div",Zyt,[C[6]||(C[6]=L("strong",null,"用途:",-1)),We(Ue(P.usage),1)])):Pe("",!0)]),_:2},1024))),128))])]),L("div",Jyt,[L("h3",Qyt,[O(et(eA),{class:"section-icon"}),C[7]||(C[7]=We(" 专项动作 ",-1))]),L("div",e3t,[(z(!0),ee(Nt,null,vn(p.value,P=>(z(),ee("div",{key:P.key,class:"special-action-item"},[L("div",t3t,[L("code",n3t,Ue(P.actionId),1),L("span",r3t,Ue(P.name),1)]),L("div",i3t,Ue(P.description),1),P.params?(z(),ee("div",o3t,[C[8]||(C[8]=L("strong",null,"参数:",-1)),(z(!0),ee(Nt,null,vn(P.params,M=>(z(),ee("span",{key:M,class:"param-tag"},Ue(M),1))),128))])):Pe("",!0)]))),128))])]),L("div",s3t,[L("h3",a3t,[O(et(x0),{class:"section-icon"}),C[9]||(C[9]=We(" 配置参数 ",-1))]),L("div",l3t,[(z(!0),ee(Nt,null,vn(m.value,P=>(z(),ee("div",{key:P.key,class:"param-item"},[L("div",u3t,[L("code",c3t,Ue(P.name),1),O(E,{size:"small",color:P.typeColor},{default:de(()=>[We(Ue(P.type),1)]),_:2},1032,["color"])]),L("div",d3t,Ue(P.description),1)]))),128))])]),L("div",f3t,[L("h3",h3t,[O(et(bve),{class:"section-icon"}),C[10]||(C[10]=We(" 示例代码 ",-1))]),O(D,{type:"card",class:"example-tabs"},{default:de(()=>[O(T,{key:"basic",title:"基础动作"},{default:de(()=>[L("pre",p3t,Ue(g.value),1)]),_:1}),O(T,{key:"input",title:"单项输入"},{default:de(()=>[L("pre",v3t,Ue(y.value),1)]),_:1}),O(T,{key:"multi",title:"多项输入"},{default:de(()=>[L("pre",m3t,Ue(S.value),1)]),_:1})]),_:1})])])):Pe("",!0)])]),_:1})])}}},y3t=Sr(g3t,[["__scopeId","data-v-d143db2b"]]),b3t={class:"home-container"},_3t={class:"dashboard-header"},S3t={class:"header-content"},k3t={class:"welcome-section"},x3t={class:"dashboard-title"},C3t={class:"quick-stats"},w3t={class:"stat-item"},E3t={class:"stat-value"},T3t={class:"stat-item"},A3t={class:"stat-value"},I3t={class:"stat-item"},L3t={class:"dashboard-content"},D3t={class:"content-grid"},P3t={class:"dashboard-card watch-stats-card"},R3t={class:"card-header"},M3t={class:"card-title"},O3t={class:"card-content"},$3t={class:"dashboard-card update-log-card"},B3t={class:"card-header"},N3t={class:"card-title"},F3t={class:"card-content"},j3t={class:"timeline-content"},V3t={class:"timeline-header"},z3t={class:"version-tag"},U3t={class:"update-date"},H3t={class:"update-title"},W3t={class:"update-description"},G3t={class:"update-changes"},K3t={key:0,class:"more-changes"},q3t={class:"dashboard-card recommend-card"},Y3t={class:"card-header"},X3t={class:"card-title"},Z3t={class:"card-content"},J3t={class:"recommend-grid"},Q3t=["onClick"],e2t={class:"recommend-poster"},t2t={class:"recommend-overlay"},n2t={key:0,class:"trending-badge"},r2t={class:"recommend-info"},i2t={class:"recommend-title"},o2t={class:"recommend-meta"},s2t={class:"recommend-rating"},a2t={class:"recommend-tags"},l2t={class:"dashboard-card keywords-card"},u2t={class:"card-header"},c2t={class:"card-title"},d2t={class:"card-content"},f2t={class:"keywords-list"},h2t=["onClick"],p2t={class:"keyword-content"},v2t={class:"keyword-text"},m2t={class:"keyword-meta"},g2t={class:"keyword-count"},y2t={class:"dashboard-card system-status-card"},b2t={class:"card-header"},_2t={class:"card-title"},S2t={class:"card-content"},k2t={class:"status-grid"},x2t={class:"status-item"},C2t={class:"status-icon online"},w2t={class:"status-item"},E2t={class:"status-icon online"},T2t={class:"status-item"},A2t={class:"status-icon warning"},I2t={class:"status-item"},L2t={class:"status-icon online"},D2t={class:"update-log-modal"},P2t={class:"timeline-content"},R2t={class:"timeline-header"},M2t={class:"version-tag"},O2t={class:"update-date"},$2t={class:"update-title"},B2t={class:"update-description"},N2t={class:"update-changes"},F2t={class:"keywords-modal"},j2t={class:"keywords-list"},V2t=["onClick"],z2t={class:"keyword-content"},U2t={class:"keyword-text"},H2t={class:"keyword-meta"},W2t={class:"keyword-count"},G2t={__name:"Home",setup(e){Hh([H1e,nye,Q1e,aye,bye,Cye,Iye,wye]);const t=NA(),n=k5(),r=el(),o=fe("week"),a=fe("hot"),s=fe({watchCount:0,totalWatchTime:0}),l=fe({watchCount:0,totalWatchTime:0}),c=fe([]),d=fe(0),h=fe([]),p=fe([]),m=fe([]),g=j(()=>{const X=c.value.map(q=>q.count),H=c.value.map(q=>q.day);return{title:{text:o.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(q){const Q=q[0];return`${Q.name}
${Q.seriesName}: ${Q.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:H,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:X,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),y=X=>p4.getUpdateTypeConfig()[X]?.color||"#86909c",S=()=>p4.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=>p4.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=v4.getHotRecommendations(8);break;case"trending":p.value=v4.getTrendingRecommendations(8);break;case"random":p.value=v4.getRandomRecommendations(8);break}},P=X=>{console.log("点击推荐内容:",X)},M=X=>{console.log("点击热搜关键词:",X)},$=fe(!1),I=fe(!1),N=fe([]),F=fe([]),W=()=>{N.value=p4.getAllUpdateLogs(),$.value=!0},U=()=>{F.value=v4.getAllKeywords(),I.value=!0},G=()=>{$.value=!1},Z=()=>{I.value=!1},oe=()=>{s.value=uC.getTodayStats(),l.value=uC.getYesterdayStats(),c.value=uC.getWeekStats(),d.value=uC.calculateGrowthRate(),h.value=p4.getRecentUpdateLogs(4),D(),m.value=v4.getHotKeywords(8)};return mn(()=>{if(n.query._restoreSearch==="true"){const H=t.getPageState("search");if(H&&H.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",H),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const q={...n.query};delete q._restoreSearch,r.replace({query:q})}oe(),console.log("主页看板加载完成")}),(X,H)=>{const q=De("a-option"),Q=De("a-select"),ne=De("a-link"),ae=De("a-tag"),re=De("a-timeline-item"),Se=De("a-timeline"),xe=De("a-modal");return z(),ee(Nt,null,[L("div",b3t,[L("div",_3t,[L("div",S3t,[L("div",k3t,[L("h1",x3t,[O(et(u3),{class:"title-icon"}),H[4]||(H[4]=We(" 数据看板 ",-1))]),H[5]||(H[5]=L("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),L("div",C3t,[L("div",w3t,[L("div",E3t,Ue(s.value.watchCount),1),H[6]||(H[6]=L("div",{class:"stat-label"},"今日观看",-1))]),L("div",T3t,[L("div",A3t,Ue(Math.round(s.value.totalWatchTime/60)),1),H[7]||(H[7]=L("div",{class:"stat-label"},"总时长(分钟)",-1))]),L("div",I3t,[L("div",{class:ue(["stat-value",{positive:d.value>0,negative:d.value<0}])},Ue(d.value>0?"+":"")+Ue(d.value)+"% ",3),H[8]||(H[8]=L("div",{class:"stat-label"},"增长率",-1))])])])]),L("div",L3t,[L("div",D3t,[L("div",P3t,[L("div",R3t,[L("h3",M3t,[O(et(Ave),{class:"card-icon"}),H[9]||(H[9]=We(" 最近观看统计 ",-1))]),O(Q,{modelValue:o.value,"onUpdate:modelValue":H[0]||(H[0]=ve=>o.value=ve),size:"small",style:{width:"100px"},onChange:T},{default:de(()=>[O(q,{value:"week"},{default:de(()=>[...H[10]||(H[10]=[We("本周",-1)])]),_:1}),O(q,{value:"month"},{default:de(()=>[...H[11]||(H[11]=[We("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),L("div",O3t,[O(et(Pye),{class:"chart",option:g.value},null,8,["option"])])]),L("div",$3t,[L("div",B3t,[L("h3",N3t,[O(et(Ry),{class:"card-icon"}),H[12]||(H[12]=We(" 更新日志 ",-1))]),O(ne,{onClick:W,size:"small"},{default:de(()=>[...H[13]||(H[13]=[We("查看全部",-1)])]),_:1})]),L("div",F3t,[O(Se,null,{default:de(()=>[(z(!0),ee(Nt,null,vn(h.value,ve=>(z(),Ye(re,{key:ve.id,"dot-color":y(ve.type)},{default:de(()=>[L("div",j3t,[L("div",V3t,[L("span",z3t,Ue(ve.version),1),L("span",U3t,Ue(E(ve.date)),1)]),L("h4",H3t,Ue(ve.title),1),L("p",W3t,Ue(ve.description),1),L("div",G3t,[(z(!0),ee(Nt,null,vn(ve.changes.slice(0,2),(be,Ve)=>(z(),Ye(ae,{key:Ve,size:"small",color:k(ve.type)},{default:de(()=>[We(Ue(be),1)]),_:2},1032,["color"]))),128)),ve.changes.length>2?(z(),ee("span",K3t," +"+Ue(ve.changes.length-2)+"项更新 ",1)):Pe("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),L("div",q3t,[L("div",Y3t,[L("h3",X3t,[O(et(J5),{class:"card-icon"}),H[14]||(H[14]=We(" 猜你喜欢 ",-1))]),O(Q,{modelValue:a.value,"onUpdate:modelValue":H[1]||(H[1]=ve=>a.value=ve),size:"small",style:{width:"80px"},onChange:D},{default:de(()=>[O(q,{value:"hot"},{default:de(()=>[...H[15]||(H[15]=[We("热门",-1)])]),_:1}),O(q,{value:"trending"},{default:de(()=>[...H[16]||(H[16]=[We("趋势",-1)])]),_:1}),O(q,{value:"random"},{default:de(()=>[...H[17]||(H[17]=[We("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),L("div",Z3t,[L("div",J3t,[(z(!0),ee(Nt,null,vn(p.value,ve=>(z(),ee("div",{key:ve.id,class:"recommend-item",onClick:be=>P(ve)},[L("div",e2t,[L("div",{class:"poster-placeholder",style:Ke({backgroundColor:C(ve.type)})},Ue(ve.title.substring(0,2)),5),L("div",t2t,[O(et(qa),{class:"play-icon"})]),ve.trending?(z(),ee("div",n2t," 🔥 热门 ")):Pe("",!0)]),L("div",r2t,[L("h4",i2t,Ue(ve.title),1),L("div",o2t,[O(ae,{size:"small",color:x(ve.type)},{default:de(()=>[We(Ue(ve.type),1)]),_:2},1032,["color"]),L("span",s2t,[O(et($H)),We(" "+Ue(ve.rating),1)])]),L("div",a2t,[(z(!0),ee(Nt,null,vn(ve.tags.slice(0,2),be=>(z(),Ye(ae,{key:be,size:"mini",color:"gray"},{default:de(()=>[We(Ue(be),1)]),_:2},1024))),128))])])],8,Q3t))),128))])])]),L("div",l2t,[L("div",u2t,[L("h3",c2t,[O(et(Lve),{class:"card-icon"}),H[18]||(H[18]=We(" 热搜关键词 ",-1))]),O(ne,{onClick:U,size:"small"},{default:de(()=>[...H[19]||(H[19]=[We("更多",-1)])]),_:1})]),L("div",d2t,[L("div",f2t,[(z(!0),ee(Nt,null,vn(m.value,(ve,be)=>(z(),ee("div",{key:ve.keyword,class:"keyword-item",onClick:Ve=>M(ve)},[L("div",{class:ue(["keyword-rank",{"top-three":be<3}])},Ue(be+1),3),L("div",p2t,[L("span",v2t,Ue(ve.keyword),1),L("div",m2t,[L("span",g2t,Ue(_(ve.count)),1),L("span",{class:ue(["keyword-trend",ve.trend])},[ve.trend==="up"?(z(),Ye(et(yV),{key:0})):ve.trend==="down"?(z(),Ye(et(gV),{key:1})):(z(),Ye(et(Im),{key:2}))],2)])])],8,h2t))),128))])])]),L("div",y2t,[L("div",b2t,[L("h3",_2t,[O(et(JH),{class:"card-icon"}),H[20]||(H[20]=We(" 系统状态 ",-1))])]),L("div",S2t,[L("div",k2t,[L("div",x2t,[L("div",C2t,[O(et(nc))]),H[21]||(H[21]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"播放服务"),L("div",{class:"status-value"},"正常")],-1))]),L("div",w2t,[L("div",E2t,[O(et(nc))]),H[22]||(H[22]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"数据同步"),L("div",{class:"status-value"},"正常")],-1))]),L("div",T2t,[L("div",A2t,[O(et(_d))]),H[23]||(H[23]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"存储空间"),L("div",{class:"status-value"},"85%")],-1))]),L("div",I2t,[L("div",L2t,[O(et(nc))]),H[24]||(H[24]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"网络连接"),L("div",{class:"status-value"},"良好")],-1))])])])]),O(y3t)])])]),O(xe,{visible:$.value,"onUpdate:visible":H[2]||(H[2]=ve=>$.value=ve),title:"更新日志",width:"800px",footer:!1,onCancel:G},{default:de(()=>[L("div",D2t,[O(Se,null,{default:de(()=>[(z(!0),ee(Nt,null,vn(N.value,ve=>(z(),Ye(re,{key:ve.id,"dot-color":y(ve.type)},{default:de(()=>[L("div",P2t,[L("div",R2t,[L("span",M2t,Ue(ve.version),1),L("span",O2t,Ue(E(ve.date)),1),O(ae,{size:"small",color:k(ve.type),class:"type-tag"},{default:de(()=>[We(Ue(S()[ve.type]?.label||ve.type),1)]),_:2},1032,["color"])]),L("h4",$2t,Ue(ve.title),1),L("p",B2t,Ue(ve.description),1),L("div",N2t,[(z(!0),ee(Nt,null,vn(ve.changes,(be,Ve)=>(z(),Ye(ae,{key:Ve,size:"small",color:k(ve.type),class:"change-tag"},{default:de(()=>[We(Ue(be),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O(xe,{visible:I.value,"onUpdate:visible":H[3]||(H[3]=ve=>I.value=ve),title:"热搜关键词",width:"600px",footer:!1,onCancel:Z},{default:de(()=>[L("div",F2t,[L("div",j2t,[(z(!0),ee(Nt,null,vn(F.value,(ve,be)=>(z(),ee("div",{key:ve.keyword,class:"keyword-item",onClick:Ve=>M(ve)},[L("div",{class:ue(["keyword-rank",{"top-three":be<3}])},Ue(be+1),3),L("div",z2t,[L("span",U2t,Ue(ve.keyword),1),L("div",H2t,[L("span",W2t,Ue(_(ve.count)),1),L("span",{class:ue(["keyword-trend",ve.trend])},[ve.trend==="up"?(z(),Ye(et(yV),{key:0})):ve.trend==="down"?(z(),Ye(et(gV),{key:1})):(z(),Ye(et(Im),{key:2}))],2)])])],8,V2t))),128))])])]),_:1},8,["visible"])],64)}}},K2t=Sr(G2t,[["__scopeId","data-v-217d9b8b"]]),q2t={class:"tag-container"},Y2t={class:"search-section"},X2t={class:"search-row"},Z2t={class:"source-count"},J2t={class:"sources-section"},Q2t={key:0,class:"empty-state"},e4t={key:1,class:"button-container"},t4t={class:"source-info"},n4t={class:"source-name"},r4t={key:0,class:"current-icon"},i4t={class:"dialog-footer"},o4t={class:"footer-left"},s4t={class:"footer-right"},a4t={__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=j(()=>{const E=n.sites.filter(T=>T.type===4).map(T=>c(T.name)).filter(T=>T!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?o.value="":d[E]?o.value=d[E]:o.value=`[${E}]`,l.value=!1},m=j(()=>{const E=o.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(E))}),g=j(()=>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=()=>{Sn(()=>{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(m,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&m.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const T=De("a-button"),D=De("a-modal"),P=De("a-input");return z(),ee(Nt,null,[O(D,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=M=>l.value=!1)},{default:de(()=>[L("div",q2t,[O(T,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=M=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[We(" 全部 ",-1)])]),_:1}),(z(!0),ee(Nt,null,vn(h.value,(M,$)=>(z(),Ye(T,{key:$,type:"secondary",class:"tag-item",onClick:I=>p(M)},{default:de(()=>[We(Ue(M),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),O(D,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:de(()=>[L("div",i4t,[L("div",o4t,[O(T,{type:"outline",status:"danger",onClick:S},{default:de(()=>[O(et(wd)),_[7]||(_[7]=We(" 清除缓存 ",-1))]),_:1})]),L("div",s4t,[O(T,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[We("取消",-1)])]),_:1}),O(T,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[We(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[L("div",Y2t,[L("div",X2t,[O(P,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=M=>o.value=M),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[O(et(Tm))]),_:1},8,["modelValue"]),O(T,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=M=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[We(" TAG ",-1)])]),_:1})]),L("div",Z2t," 共 "+Ue(m.value.length)+" 个可用数据源 ",1)]),L("div",J2t,[m.value.length===0?(z(),ee("div",Q2t,[O(et(aH)),_[6]||(_[6]=L("p",null,"未找到匹配的数据源",-1))])):(z(),ee("div",e4t,[(z(!0),ee(Nt,null,vn(m.value,(M,$)=>(z(),ee("div",{key:M.key||$,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}])},[O(T,{type:"primary",status:a.value.new_site.key===M.key?"success":"primary",size:"medium",onClick:I=>y(M),class:ue(["source-button",{"current-source-button":M.key===e.currentSiteKey}])},{default:de(()=>[L("div",t4t,[L("div",n4t,Ue(M.name),1),M.key===e.currentSiteKey?(z(),ee("div",r4t,[O(et(Kh))])):Pe("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},l4t=Sr(a4t,[["__scopeId","data-v-105ac4df"]]),u4t={class:"breadcrumb-container"},c4t={class:"header-left"},d4t={class:"navigation-title"},f4t={class:"header-center"},h4t={class:"header-right"},p4t={class:"push-modal-content"},v4t={class:"push-description"},m4t={class:"push-hint"},g4t={class:"hint-item"},y4t={class:"hint-item"},b4t={__name:"Breadcrumb",props:{navigation_title:{type:String,default:"Video"},now_site_title:String},emits:["handleOpenForm","refreshPage","onSearch","handlePush","minimize","maximize","closeWindow"],setup(e,{emit:t}){const n=t,r=fe(""),o=fe(!1),a=fe(""),s=()=>{n("handleOpenForm")},l=()=>{n("refreshPage")},c=g=>{const y=typeof g=="string"?g:r.value;y&&typeof y=="string"&&y.trim()&&n("onSearch",y.trim())},d=()=>{o.value=!0,a.value=""},h=()=>{xt.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){xt.error("推送内容不能为空");return}const g=a.value.split(` `).map(S=>S.trim()).filter(S=>S);if(g.length===0){xt.error("请输入有效的推送内容");return}const y=g[0];g.length>1&&xt.info(`检测到多行输入,将使用第一行内容: ${y}`),n("handlePush",y),o.value=!1,a.value=""},m=()=>{o.value=!1,a.value=""};return(g,y)=>{const S=De("icon-apps"),k=De("a-button"),C=De("icon-refresh"),x=De("a-input-search"),E=De("icon-send"),_=De("icon-thunderbolt"),T=De("a-textarea"),D=De("icon-info-circle"),P=De("icon-bulb"),M=De("a-modal");return z(),ee(Nt,null,[L("div",u4t,[L("div",c4t,[L("span",d4t,Ue(e.navigation_title),1),O(k,{type:"outline",status:"success",shape:"round",onClick:s},{icon:de(()=>[O(S)]),default:de(()=>[We(Ue(e.now_site_title),1)]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:l},{icon:de(()=>[O(C)]),default:de(()=>[...y[3]||(y[3]=[We("重载源",-1)])]),_:1})]),L("div",f4t,[O(x,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=$=>r.value=$),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),L("div",h4t,[O(k,{type:"outline",status:"success",shape:"round",onClick:d},{icon:de(()=>[O(E)]),default:de(()=>[...y[4]||(y[4]=[We("推送",-1)])]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:h},{icon:de(()=>[O(_)]),default:de(()=>[...y[5]||(y[5]=[We("全局动作",-1)])]),_:1}),pt(g.$slots,"default",{},void 0,!0)])]),O(M,{visible:o.value,"onUpdate:visible":y[2]||(y[2]=$=>o.value=$),title:"推送内容",width:600,onOk:p,onCancel:m,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:de(()=>[L("div",p4t,[L("div",v4t,[O(E,{class:"push-icon"}),y[6]||(y[6]=L("span",null,"请输入要推送的内容(vod_id):",-1))]),O(T,{modelValue:a.value,"onUpdate:modelValue":y[1]||(y[1]=$=>a.value=$),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),L("div",m4t,[L("div",g4t,[O(D,{class:"hint-icon"}),y[7]||(y[7]=L("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),L("div",y4t,[O(P,{class:"hint-icon"}),y[8]||(y[8]=L("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"])],64)}}},_4t=Sr(b4t,[["__scopeId","data-v-20e05b46"]]);function Fye(e,t){return function(){return e.apply(t,arguments)}}const{toString:S4t}=Object.prototype,{getPrototypeOf:lG}=Object,{iterator:FA,toStringTag:jye}=Symbol,jA=(e=>t=>{const n=S4t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fd=e=>(e=e.toLowerCase(),t=>jA(t)===e),VA=e=>t=>typeof t===e,{isArray:m3}=Array,Vy=VA("undefined");function dS(e){return e!==null&&!Vy(e)&&e.constructor!==null&&!Vy(e.constructor)&&Au(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vye=Fd("ArrayBuffer");function k4t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vye(e.buffer),t}const x4t=VA("string"),Au=VA("function"),zye=VA("number"),fS=e=>e!==null&&typeof e=="object",C4t=e=>e===!0||e===!1,dE=e=>{if(jA(e)!=="object")return!1;const t=lG(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(jye in e)&&!(FA in e)},w4t=e=>{if(!fS(e)||dS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},E4t=Fd("Date"),T4t=Fd("File"),A4t=Fd("Blob"),I4t=Fd("FileList"),L4t=e=>fS(e)&&Au(e.pipe),D4t=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Au(e.append)&&((t=jA(e))==="formdata"||t==="object"&&Au(e.toString)&&e.toString()==="[object FormData]"))},P4t=Fd("URLSearchParams"),[R4t,M4t,O4t,$4t]=["ReadableStream","Request","Response","Headers"].map(Fd),B4t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),m3(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Jv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hye=e=>!Vy(e)&&e!==Jv;function Iz(){const{caseless:e,skipUndefined:t}=Hye(this)&&this||{},n={},r=(o,a)=>{const s=e&&Uye(n,a)||a;dE(n[s])&&dE(o)?n[s]=Iz(n[s],o):dE(o)?n[s]=Iz({},o):m3(o)?n[s]=o.slice():(!t||!Vy(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(hS(t,(o,a)=>{n&&Au(o)?e[a]=Fye(o,n):e[a]=o},{allOwnKeys:r}),e),F4t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),j4t=(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)},V4t=(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&&lG(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},z4t=(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},U4t=e=>{if(!e)return null;if(m3(e))return e;let t=e.length;if(!zye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},H4t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&lG(Uint8Array)),W4t=(e,t)=>{const r=(e&&e[FA]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},G4t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},K4t=Fd("HTMLFormElement"),q4t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Rae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Y4t=Fd("RegExp"),Wye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hS(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},X4t=e=>{Wye(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+"'")})}})},Z4t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return m3(e)?r(e):r(String(e).split(t)),n},J4t=()=>{},Q4t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ebt(e){return!!(e&&Au(e.append)&&e[jye]==="FormData"&&e[FA])}const tbt=e=>{const t=new Array(10),n=(r,o)=>{if(fS(r)){if(t.indexOf(r)>=0)return;if(dS(r))return r;if(!("toJSON"in r)){t[o]=r;const a=m3(r)?[]:{};return hS(r,(s,l)=>{const c=n(s,o+1);!Vy(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},nbt=Fd("AsyncFunction"),rbt=e=>e&&(fS(e)||Au(e))&&Au(e.then)&&Au(e.catch),Gye=((e,t)=>e?setImmediate:t?((n,r)=>(Jv.addEventListener("message",({source:o,data:a})=>{o===Jv&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Jv.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Au(Jv.postMessage)),ibt=typeof queueMicrotask<"u"?queueMicrotask.bind(Jv):typeof process<"u"&&process.nextTick||Gye,obt=e=>e!=null&&Au(e[FA]),Jt={isArray:m3,isArrayBuffer:Vye,isBuffer:dS,isFormData:D4t,isArrayBufferView:k4t,isString:x4t,isNumber:zye,isBoolean:C4t,isObject:fS,isPlainObject:dE,isEmptyObject:w4t,isReadableStream:R4t,isRequest:M4t,isResponse:O4t,isHeaders:$4t,isUndefined:Vy,isDate:E4t,isFile:T4t,isBlob:A4t,isRegExp:Y4t,isFunction:Au,isStream:L4t,isURLSearchParams:P4t,isTypedArray:H4t,isFileList:I4t,forEach:hS,merge:Iz,extend:N4t,trim:B4t,stripBOM:F4t,inherits:j4t,toFlatObject:V4t,kindOf:jA,kindOfTest:Fd,endsWith:z4t,toArray:U4t,forEachEntry:W4t,matchAll:G4t,isHTMLForm:K4t,hasOwnProperty:Rae,hasOwnProp:Rae,reduceDescriptors:Wye,freezeMethods:X4t,toObjectSet:Z4t,toCamelCase:q4t,noop:J4t,toFiniteNumber:Q4t,findKey:Uye,global:Jv,isContextDefined:Hye,isSpecCompliantForm:ebt,toJSONObject:tbt,isAsyncFn:nbt,isThenable:rbt,setImmediate:Gye,asap:ibt,isIterable:obt};function Qr(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Jt.inherits(Qr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Jt.toJSONObject(this.config),code:this.code,status:this.status}}});const Kye=Qr.prototype,qye={};["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=>{qye[e]={value:e}});Object.defineProperties(Qr,qye);Object.defineProperty(Kye,"isAxiosError",{value:!0});Qr.from=(e,t,n,r,o,a)=>{const s=Object.create(Kye);Jt.toFlatObject(e,s,function(h){return h!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Qr.call(s,l,c,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const sbt=null;function Lz(e){return Jt.isPlainObject(e)||Jt.isArray(e)}function Yye(e){return Jt.endsWith(e,"[]")?e.slice(0,-2):e}function Mae(e,t,n){return e?e.concat(t).map(function(o,a){return o=Yye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function abt(e){return Jt.isArray(e)&&!e.some(Lz)}const lbt=Jt.toFlatObject(Jt,{},null,function(t){return/^is[A-Z]/.test(t)});function zA(e,t,n){if(!Jt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Jt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!Jt.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Jt.isSpecCompliantForm(t);if(!Jt.isFunction(o))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(Jt.isDate(y))return y.toISOString();if(Jt.isBoolean(y))return y.toString();if(!c&&Jt.isBlob(y))throw new Qr("Blob is not supported. Use a Buffer instead.");return Jt.isArrayBuffer(y)||Jt.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(Jt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(Jt.isArray(y)&&abt(y)||(Jt.isFileList(y)||Jt.endsWith(S,"[]"))&&(C=Jt.toArray(y)))return S=Yye(S),C.forEach(function(E,_){!(Jt.isUndefined(E)||E===null)&&t.append(s===!0?Mae([S],_,a):s===null?S:S+"[]",d(E))}),!1}return Lz(y)?!0:(t.append(Mae(k,S,a),d(y)),!1)}const p=[],m=Object.assign(lbt,{defaultVisitor:h,convertValue:d,isVisitable:Lz});function g(y,S){if(!Jt.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(y),Jt.forEach(y,function(C,x){(!(Jt.isUndefined(C)||C===null)&&o.call(t,C,Jt.isString(x)?x.trim():x,S,m))===!0&&g(C,S?S.concat(x):[x])}),p.pop()}}if(!Jt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Oae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uG(e,t){this._pairs=[],e&&zA(e,this,t)}const Xye=uG.prototype;Xye.append=function(t,n){this._pairs.push([t,n])};Xye.toString=function(t){const n=t?function(r){return t.call(this,r,Oae)}:Oae;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ubt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Zye(e,t,n){if(!t)return e;const r=n&&n.encode||ubt;Jt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Jt.isURLSearchParams(t)?t.toString():new uG(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $ae{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){Jt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cbt=typeof URLSearchParams<"u"?URLSearchParams:uG,dbt=typeof FormData<"u"?FormData:null,fbt=typeof Blob<"u"?Blob:null,hbt={isBrowser:!0,classes:{URLSearchParams:cbt,FormData:dbt,Blob:fbt},protocols:["http","https","file","blob","url","data"]},cG=typeof window<"u"&&typeof document<"u",Dz=typeof navigator=="object"&&navigator||void 0,pbt=cG&&(!Dz||["ReactNative","NativeScript","NS"].indexOf(Dz.product)<0),vbt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mbt=cG&&window.location.href||"http://localhost",gbt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cG,hasStandardBrowserEnv:pbt,hasStandardBrowserWebWorkerEnv:vbt,navigator:Dz,origin:mbt},Symbol.toStringTag,{value:"Module"})),Sl={...gbt,...hbt};function ybt(e,t){return zA(e,new Sl.classes.URLSearchParams,{visitor:function(n,r,o,a){return Sl.isNode&&Jt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function bbt(e){return Jt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _bt(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&Jt.isArray(o)?o.length:s,c?(Jt.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Jt.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Jt.isArray(o[s])&&(o[s]=_bt(o[s])),!l)}if(Jt.isFormData(e)&&Jt.isFunction(e.entries)){const n={};return Jt.forEachEntry(e,(r,o)=>{t(bbt(r),o,n,0)}),n}return null}function Sbt(e,t,n){if(Jt.isString(e))try{return(t||JSON.parse)(e),Jt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pS={transitional:Jye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Jt.isObject(t);if(a&&Jt.isHTMLForm(t)&&(t=new FormData(t)),Jt.isFormData(t))return o?JSON.stringify(Qye(t)):t;if(Jt.isArrayBuffer(t)||Jt.isBuffer(t)||Jt.isStream(t)||Jt.isFile(t)||Jt.isBlob(t)||Jt.isReadableStream(t))return t;if(Jt.isArrayBufferView(t))return t.buffer;if(Jt.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 ybt(t,this.formSerializer).toString();if((l=Jt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return zA(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Sbt(t)):t}],transformResponse:[function(t){const n=this.transitional||pS.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Jt.isResponse(t)||Jt.isReadableStream(t))return t;if(t&&Jt.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?Qr.from(l,Qr.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData: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}}};Jt.forEach(["delete","get","head","post","put","patch"],e=>{pS.headers[e]={}});const kbt=Jt.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"]),xbt=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]&&kbt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bae=Symbol("internals");function m4(e){return e&&String(e).trim().toLowerCase()}function fE(e){return e===!1||e==null?e:Jt.isArray(e)?e.map(fE):String(e)}function Cbt(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 wbt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AF(e,t,n,r,o){if(Jt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Jt.isString(t)){if(Jt.isString(r))return t.indexOf(r)!==-1;if(Jt.isRegExp(r))return r.test(t)}}function Ebt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Tbt(e,t){const n=Jt.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=m4(c);if(!h)throw new Error("header name must be a non-empty string");const p=Jt.findKey(o,h);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||c]=fE(l))}const s=(l,c)=>Jt.forEach(l,(d,h)=>a(d,h,c));if(Jt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Jt.isString(t)&&(t=t.trim())&&!wbt(t))s(xbt(t),n);else if(Jt.isObject(t)&&Jt.isIterable(t)){let l={},c,d;for(const h of t){if(!Jt.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[d=h[0]]=(c=l[d])?Jt.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=m4(t),t){const r=Jt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Cbt(o);if(Jt.isFunction(n))return n.call(this,o,r);if(Jt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=m4(t),t){const r=Jt.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=m4(s),s){const l=Jt.findKey(r,s);l&&(!n||AF(r,r[l],l,n))&&(delete r[l],o=!0)}}return Jt.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 Jt.forEach(this,(o,a)=>{const s=Jt.findKey(r,a);if(s){n[s]=fE(o),delete n[a];return}const l=t?Ebt(a):String(a).trim();l!==a&&delete n[a],n[l]=fE(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Jt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Jt.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[Bae]=this[Bae]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=m4(s);r[l]||(Tbt(o,s),r[l]=!0)}return Jt.isArray(t)?t.forEach(a):a(t),this}};Iu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Jt.reduceDescriptors(Iu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Jt.freezeMethods(Iu);function IF(e,t){const n=this||pS,r=t||n,o=Iu.from(r.headers);let a=r.data;return Jt.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function e3e(e){return!!(e&&e.__CANCEL__)}function g3(e,t,n){Qr.call(this,e??"canceled",Qr.ERR_CANCELED,t,n),this.name="CanceledError"}Jt.inherits(g3,Qr,{__CANCEL__:!0});function t3e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Qr("Request failed with status code "+n.status,[Qr.ERR_BAD_REQUEST,Qr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Abt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ibt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[a];s||(s=d),n[o]=c,r[o]=d;let p=a,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-s{n=h,o=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=r?s(d,h):(o=d,a||(a=setTimeout(()=>{a=null,s(o)},r-p)))},()=>o&&s(o)]}const wT=(e,t,n=3)=>{let r=0;const o=Ibt(50,250);return Lbt(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)},Nae=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fae=e=>(...t)=>Jt.asap(()=>e(...t)),Dbt=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,Pbt=Sl.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Jt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Jt.isString(r)&&s.push("path="+r),Jt.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 Rbt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mbt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function n3e(e,t,n){let r=!Rbt(t);return e&&(r||n==!1)?Mbt(e,t):t}const jae=e=>e instanceof Iu?{...e}:e;function Om(e,t){t=t||{};const n={};function r(d,h,p,m){return Jt.isPlainObject(d)&&Jt.isPlainObject(h)?Jt.merge.call({caseless:m},d,h):Jt.isPlainObject(h)?Jt.merge({},h):Jt.isArray(h)?h.slice():h}function o(d,h,p,m){if(Jt.isUndefined(h)){if(!Jt.isUndefined(d))return r(void 0,d,p,m)}else return r(d,h,p,m)}function a(d,h){if(!Jt.isUndefined(h))return r(void 0,h)}function s(d,h){if(Jt.isUndefined(h)){if(!Jt.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(jae(d),jae(h),p,!0)};return Jt.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,m=p(e[h],t[h],h);Jt.isUndefined(m)&&p!==l||(n[h]=m)}),n}const r3e=e=>{const t=Om({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Iu.from(s),t.url=Zye(n3e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Jt.isFormData(n)){if(Sl.hasStandardBrowserEnv||Sl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Jt.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&&Jt.isFunction(r)&&(r=r(t)),r||r!==!1&&Dbt(t.url))){const c=o&&a&&Pbt.read(a);c&&s.set(o,c)}return t},Obt=typeof XMLHttpRequest<"u",$bt=Obt&&function(e){return new Promise(function(n,r){const o=r3e(e);let a=o.data;const s=Iu.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,h,p,m,g,y;function S(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function C(){if(!k)return;const E=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};t3e(function(P){n(P),S()},function(P){r(P),S()},T),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(r(new Qr("Request aborted",Qr.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const T=_&&_.message?_.message:"Network Error",D=new Qr(T,Qr.ERR_NETWORK,e,k);D.event=_||null,r(D),k=null},k.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Jye;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new Qr(_,T.clarifyTimeoutError?Qr.ETIMEDOUT:Qr.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&Jt.forEach(s.toJSON(),function(_,T){k.setRequestHeader(T,_)}),Jt.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),d&&([m,y]=wT(d,!0),k.addEventListener("progress",m)),c&&k.upload&&([p,g]=wT(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=E=>{k&&(r(!E||E.type?new g3(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=Abt(o.url);if(x&&Sl.protocols.indexOf(x)===-1){r(new Qr("Unsupported protocol "+x+":",Qr.ERR_BAD_REQUEST,e));return}k.send(a||null)})},Bbt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,l();const h=d instanceof Error?d:this.reason;r.abort(h instanceof Qr?h:new g3(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new Qr(`timeout ${t} of ms exceeded`,Qr.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>Jt.asap(l),c}},Nbt=function*(e,t){let n=e.byteLength;if(n{const o=Fbt(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await o.next();if(d){l(),c.close();return}let p=h.byteLength;if(n){let m=a+=p;n(m)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},zae=64*1024,{isFunction:cC}=Jt,i3e=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(Jt.global),{ReadableStream:Uae,TextEncoder:Hae}=Jt.global,Wae=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vbt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},i3e,e),o=cC(t),a=cC(n),s=cC(r);if(!o)return!1;const l=o&&cC(Uae),c=o&&(typeof Hae=="function"?(y=>S=>y.encode(S))(new Hae):async y=>new Uint8Array(await new n(y).arrayBuffer())),d=a&&l&&Wae(()=>{let y=!1;const S=new n(Sl.origin,{body:new Uae,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),h=s&&l&&Wae(()=>Jt.isReadableStream(new r("").body)),p={stream:h&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(S,k)=>{let C=S&&S[y];if(C)return C.call(S);throw new Qr(`Response type '${y}' is not supported`,Qr.ERR_NOT_SUPPORT,k)})});const m=async y=>{if(y==null)return 0;if(Jt.isBlob(y))return y.size;if(Jt.isSpecCompliantForm(y))return(await new n(Sl.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(Jt.isArrayBufferView(y)||Jt.isArrayBuffer(y))return y.byteLength;if(Jt.isURLSearchParams(y)&&(y=y+""),Jt.isString(y))return(await c(y)).byteLength},g=async(y,S)=>{const k=Jt.toFiniteNumber(y.getContentLength());return k??m(S)};return async y=>{let{url:S,method:k,data:C,signal:x,cancelToken:E,timeout:_,onDownloadProgress:T,onUploadProgress:D,responseType:P,headers:M,withCredentials:$="same-origin",fetchOptions:I}=r3e(y);P=P?(P+"").toLowerCase():"text";let N=Bbt([x,E&&E.toAbortSignal()],_),F=null;const W=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let U;try{if(D&&d&&k!=="get"&&k!=="head"&&(U=await g(M,C))!==0){let q=new n(S,{method:"POST",body:C,duplex:"half"}),Q;if(Jt.isFormData(C)&&(Q=q.headers.get("content-type"))&&M.setContentType(Q),q.body){const[ne,ae]=Nae(U,wT(Fae(D)));C=Vae(q.body,zae,ne,ae)}}Jt.isString($)||($=$?"include":"omit");const G=a&&"credentials"in n.prototype,Z={...I,signal:N,method:k.toUpperCase(),headers:M.normalize().toJSON(),body:C,duplex:"half",credentials:G?$:void 0};F=a&&new n(S,Z);let oe=await(a?t(F,I):t(S,Z));const X=h&&(P==="stream"||P==="response");if(h&&(T||X&&W)){const q={};["status","statusText","headers"].forEach(re=>{q[re]=oe[re]});const Q=Jt.toFiniteNumber(oe.headers.get("content-length")),[ne,ae]=T&&Nae(Q,wT(Fae(T),!0))||[];oe=new r(Vae(oe.body,zae,ne,()=>{ae&&ae(),W&&W()}),q)}P=P||"text";let H=await p[Jt.findKey(p,P)||"text"](oe,y);return!X&&W&&W(),await new Promise((q,Q)=>{t3e(q,Q,{data:H,headers:Iu.from(oe.headers),status:oe.status,statusText:oe.statusText,config:y,request:F})})}catch(G){throw W&&W(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Qr("Network Error",Qr.ERR_NETWORK,y,F),{cause:G.cause||G}):Qr.from(G,G&&G.code,y,F)}}},zbt=new Map,o3e=e=>{let t=Jt.merge.call({skipUndefined:!0},i3e,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=zbt;for(;l--;)c=a[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:Vbt(t)),h=d;return d};o3e();const Pz={http:sbt,xhr:$bt,fetch:{get:o3e}};Jt.forEach(Pz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gae=e=>`- ${e}`,Ubt=e=>Jt.isFunction(e)||e===null||e===!1,s3e={getAdapter:(e,t)=>{e=Jt.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(Gae).join(` `):" "+Gae(s[0]):"as no adapter specified";throw new Qr("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:Pz};function LF(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new g3(null,e)}function Kae(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),s3e.getAdapter(e.adapter||pS.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 e3e(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 a3e="1.12.0",UA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{UA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qae={};UA.transitional=function(t,n,r){function o(a,s){return"[Axios v"+a3e+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Qr(o(s," has been removed"+(n?" in "+n:"")),Qr.ERR_DEPRECATED);return n&&!qae[s]&&(qae[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}};UA.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Hbt(e,t,n){if(typeof e!="object")throw new Qr("options must be an object",Qr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new Qr("option "+a+" must be "+c,Qr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Qr("Unknown option "+a,Qr.ERR_BAD_OPTION)}}const hE={assertOptions:Hbt,validators:UA},Jd=hE.validators;let gm=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $ae,response:new $ae}}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=Om(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&hE.assertOptions(r,{silentJSONParsing:Jd.transitional(Jd.boolean),forcedJSONParsing:Jd.transitional(Jd.boolean),clarifyTimeoutError:Jd.transitional(Jd.boolean)},!1),o!=null&&(Jt.isFunction(o)?n.paramsSerializer={serialize:o}:hE.assertOptions(o,{encode:Jd.function,serialize:Jd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),hE.assertOptions(n,{baseUrl:Jd.spelling("baseURL"),withXsrfToken:Jd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Jt.merge(a.common,a[n.method]);a&&Jt.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,m;if(!c){const y=[Kae.bind(this),void 0];for(y.unshift(...l),y.push(...d),m=y.length,h=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new g3(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 l3e(function(o){t=o}),cancel:t}}};function Gbt(e){return function(n){return e.apply(null,n)}}function Kbt(e){return Jt.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 u3e(e){const t=new gm(e),n=Fye(gm.prototype.request,t);return Jt.extend(n,gm.prototype,t,{allOwnKeys:!0}),Jt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return u3e(Om(e,o))},n}const uo=u3e(pS);uo.Axios=gm;uo.CanceledError=g3;uo.CancelToken=Wbt;uo.isCancel=e3e;uo.VERSION=a3e;uo.toFormData=zA;uo.AxiosError=Qr;uo.Cancel=uo.CanceledError;uo.all=function(t){return Promise.all(t)};uo.spread=Gbt;uo.isAxiosError=Kbt;uo.mergeConfig=Om;uo.AxiosHeaders=Iu;uo.formToJSON=e=>Qye(Jt.isHTMLForm(e)?new FormData(e):e);uo.getAdapter=s3e.getAdapter;uo.HttpStatusCode=Rz;uo.default=uo;const{Axios:qbt,AxiosError:Ybt,CanceledError:Xbt,isCancel:Zbt,CancelToken:Jbt,VERSION:Qbt,all:e_t,Cancel:t_t,isAxiosError:n_t,spread:r_t,toFormData:i_t,AxiosHeaders:o_t,HttpStatusCode:s_t,formToJSON:a_t,getAdapter:l_t,mergeConfig:u_t}=uo,c3e=Object.freeze(Object.defineProperty({__proto__:null,Axios:qbt,AxiosError:Ybt,AxiosHeaders:o_t,Cancel:t_t,CancelToken:Jbt,CanceledError:Xbt,HttpStatusCode:s_t,VERSION:Qbt,all:e_t,default:uo,formToJSON:a_t,getAdapter:l_t,isAxiosError:n_t,isCancel:Zbt,mergeConfig:u_t,spread:r_t,toFormData:i_t},Symbol.toStringTag,{value:"Module"})),c_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}},d3e=()=>{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}},v0={BASE_URL:"http://localhost:5707",get TIMEOUT(){return c_t()},HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},dG={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},HA={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},d_t={SUCCESS:200},f3e={DEFAULT_PAGE:1},fG=uo.create({baseURL:v0.BASE_URL,timeout:v0.TIMEOUT,headers:v0.HEADERS});fG.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)));fG.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!==d_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 WA=async(e,t={})=>{try{return await fG({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},F0=(e,t={})=>WA(e,{method:"GET",params:t}),h3e=(e,t={})=>WA(e,{method:"POST",data:t}),f_t=(e,t={})=>WA(e,{method:"PUT",data:t}),h_t=(e,t={})=>WA(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}},dC=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解析] 未知类型,返回空对象"),{}},A0=e=>{const t=encodeURIComponent(e);return`${dG.MODULE}/${t}`},y3=async(e,t={})=>{try{return(await uo.get(e,{params:t,timeout:v0.TIMEOUT,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},p_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?y3(o,a):F0(A0(e),a)},H1=async(e,t)=>{const{t:n,pg:r=f3e.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:HA.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=ua(a);return c&&(l.extend=c),s?y3(s,l):F0(A0(e),l)},v_t=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:HA.DETAIL,ids:n},s=ua(r);return s&&(a.extend=s),o?y3(o,a):F0(A0(e),a)},p3e=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:HA.PLAY,play:n};r&&(s.flag=r);const l=ua(o);return l&&(s.extend=l),a?y3(a,s):F0(A0(e),s)},m_t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await p3e(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=dC(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=dC(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=dC(n.headers||n.header),o.needSniff=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要嗅探才能播放,尽情期待"):(o.url=n.url||n.play_url||n,o.headers=dC(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||"未知错误")}}},g_t=async(e,t)=>{const{wd:n,pg:r=f3e.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=ua(o);return l&&(s.extend=l),a?y3(a,s):F0(A0(e),s)},GA=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:HA.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 uo.get(o,{timeout:v0.TIMEOUT,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",d.data),d.data}else{const d=await uo.post(o,s,{timeout:v0.TIMEOUT,headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}});return console.log("API响应 (POST):",d.data),d.data}console.log("使用代理方式调用:",A0(e),s);const c=await h3e(A0(e),s);return console.log("代理响应:",c),c},y_t=async(e,t,n)=>{const r={refresh:"1"},o=ua(t);return o&&(r.extend=o),n?y3(n,r):F0(A0(e),r)},b_t=e=>`${dG.PARSE}/${e}`,__t=async(e,t)=>{const{url:n,flag:r,headers:o,...a}=t;if(!n)throw new Error("视频URL不能为空");const s={url:n,...a};r&&(s.flag=r);const l={};return o&&(l.headers={...l.headers,...o}),F0(b_t(e),s)};var pE={exports:{}};function S_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 vE={exports:{}};const k_t={},x_t=Object.freeze(Object.defineProperty({__proto__:null,default:k_t},Symbol.toStringTag,{value:"Module"})),C_t=q_(x_t);var w_t=vE.exports,Yae;function $i(){return Yae||(Yae=1,(function(e,t){(function(n,r){e.exports=r()})(w_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 ow<"u"&&ow.crypto&&(a=ow.crypto),!a&&typeof S_t=="function")try{a=C_t}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||(function(){function x(){}return function(E){var _;return x.prototype=E,_=new x,x.prototype=null,_}})(),c={},d=c.lib={},h=d.Base=(function(){return{extend:function(x){var E=l(this);return x&&E.mixIn(x),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),p=d.WordArray=h.extend({init:function(x,E){x=this.words=x||[],E!=o?this.sigBytes=E:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var E=this.words,_=x.words,T=this.sigBytes,D=x.sigBytes;if(this.clamp(),T%4)for(var P=0;P>>2]>>>24-P%4*8&255;E[T+P>>>2]|=M<<24-(T+P)%4*8}else for(var $=0;$>>2]=_[$>>>2];return this.sigBytes+=D,this},clamp:function(){var x=this.words,E=this.sigBytes;x[E>>>2]&=4294967295<<32-E%4*8,x.length=r.ceil(E/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var E=[],_=0;_>>2]>>>24-D%4*8&255;T.push((P>>>4).toString(16)),T.push((P&15).toString(16))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>3]|=parseInt(x.substr(T,2),16)<<24-T%8*4;return new p.init(_,E/2)}},y=m.Latin1={stringify:function(x){for(var E=x.words,_=x.sigBytes,T=[],D=0;D<_;D++){var P=E[D>>>2]>>>24-D%4*8&255;T.push(String.fromCharCode(P))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>2]|=(x.charCodeAt(T)&255)<<24-T%4*8;return new p.init(_,E)}},S=m.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},k=d.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=S.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var E,_=this._data,T=_.words,D=_.sigBytes,P=this.blockSize,M=P*4,$=D/M;x?$=r.ceil($):$=r.max(($|0)-this._minBufferSize,0);var I=$*P,N=r.min(I*4,D);if(I){for(var F=0;F>>2]|=c[p]<<24-p%4*8;s.call(this,h,d)}else s.apply(this,arguments)};l.prototype=a}})(),n.lib.WordArray})})(gE)),gE.exports}var yE={exports:{}},I_t=yE.exports,Jae;function L_t(){return Jae||(Jae=1,(function(e,t){(function(n,r){e.exports=r($i())})(I_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],m=0;m>>2]>>>16-m%4*8&65535;p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=c.charCodeAt(p)<<16-p%2*16;return a.create(h,d*2)}},s.Utf16LE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],m=0;m>>2]>>>16-m%4*8&65535);p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=l(c.charCodeAt(p)<<16-p%2*16);return a.create(h,d*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}})(),n.enc.Utf16})})(yE)),yE.exports}var bE={exports:{}},D_t=bE.exports,Qae;function Qm(){return Qae||(Qae=1,(function(e,t){(function(n,r){e.exports=r($i())})(D_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,p=this._map;c.clamp();for(var m=[],g=0;g>>2]>>>24-g%4*8&255,S=d[g+1>>>2]>>>24-(g+1)%4*8&255,k=d[g+2>>>2]>>>24-(g+2)%4*8&255,C=y<<16|S<<8|k,x=0;x<4&&g+x*.75>>6*(3-x)&63));var E=p.charAt(64);if(E)for(;m.length%4;)m.push(E);return m.join("")},parse:function(c){var d=c.length,h=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m>>6-g%4*2,k=y|S;p[m>>>2]|=k<<24-m%4*8,m++}return a.create(p,m)}})(),n.enc.Base64})})(bE)),bE.exports}var _E={exports:{}},P_t=_E.exports,ele;function R_t(){return ele||(ele=1,(function(e,t){(function(n,r){e.exports=r($i())})(P_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Base64url={stringify:function(c,d){d===void 0&&(d=!0);var h=c.words,p=c.sigBytes,m=d?this._safe_map:this._map;c.clamp();for(var g=[],y=0;y>>2]>>>24-y%4*8&255,k=h[y+1>>>2]>>>24-(y+1)%4*8&255,C=h[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|k<<8|C,E=0;E<4&&y+E*.75>>6*(3-E)&63));var _=m.charAt(64);if(_)for(;g.length%4;)g.push(_);return g.join("")},parse:function(c,d){d===void 0&&(d=!0);var h=c.length,p=d?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var g=0;g>>6-g%4*2,k=y|S;p[m>>>2]|=k<<24-m%4*8,m++}return a.create(p,m)}})(),n.enc.Base64url})})(_E)),_E.exports}var SE={exports:{}},M_t=SE.exports,tle;function eg(){return tle||(tle=1,(function(e,t){(function(n,r){e.exports=r($i())})(M_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=[];(function(){for(var S=0;S<64;S++)d[S]=r.abs(r.sin(S+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(S,k){for(var C=0;C<16;C++){var x=k+C,E=S[x];S[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,T=S[k+0],D=S[k+1],P=S[k+2],M=S[k+3],$=S[k+4],I=S[k+5],N=S[k+6],F=S[k+7],W=S[k+8],U=S[k+9],G=S[k+10],Z=S[k+11],oe=S[k+12],X=S[k+13],H=S[k+14],q=S[k+15],Q=_[0],ne=_[1],ae=_[2],re=_[3];Q=p(Q,ne,ae,re,T,7,d[0]),re=p(re,Q,ne,ae,D,12,d[1]),ae=p(ae,re,Q,ne,P,17,d[2]),ne=p(ne,ae,re,Q,M,22,d[3]),Q=p(Q,ne,ae,re,$,7,d[4]),re=p(re,Q,ne,ae,I,12,d[5]),ae=p(ae,re,Q,ne,N,17,d[6]),ne=p(ne,ae,re,Q,F,22,d[7]),Q=p(Q,ne,ae,re,W,7,d[8]),re=p(re,Q,ne,ae,U,12,d[9]),ae=p(ae,re,Q,ne,G,17,d[10]),ne=p(ne,ae,re,Q,Z,22,d[11]),Q=p(Q,ne,ae,re,oe,7,d[12]),re=p(re,Q,ne,ae,X,12,d[13]),ae=p(ae,re,Q,ne,H,17,d[14]),ne=p(ne,ae,re,Q,q,22,d[15]),Q=m(Q,ne,ae,re,D,5,d[16]),re=m(re,Q,ne,ae,N,9,d[17]),ae=m(ae,re,Q,ne,Z,14,d[18]),ne=m(ne,ae,re,Q,T,20,d[19]),Q=m(Q,ne,ae,re,I,5,d[20]),re=m(re,Q,ne,ae,G,9,d[21]),ae=m(ae,re,Q,ne,q,14,d[22]),ne=m(ne,ae,re,Q,$,20,d[23]),Q=m(Q,ne,ae,re,U,5,d[24]),re=m(re,Q,ne,ae,H,9,d[25]),ae=m(ae,re,Q,ne,M,14,d[26]),ne=m(ne,ae,re,Q,W,20,d[27]),Q=m(Q,ne,ae,re,X,5,d[28]),re=m(re,Q,ne,ae,P,9,d[29]),ae=m(ae,re,Q,ne,F,14,d[30]),ne=m(ne,ae,re,Q,oe,20,d[31]),Q=g(Q,ne,ae,re,I,4,d[32]),re=g(re,Q,ne,ae,W,11,d[33]),ae=g(ae,re,Q,ne,Z,16,d[34]),ne=g(ne,ae,re,Q,H,23,d[35]),Q=g(Q,ne,ae,re,D,4,d[36]),re=g(re,Q,ne,ae,$,11,d[37]),ae=g(ae,re,Q,ne,F,16,d[38]),ne=g(ne,ae,re,Q,G,23,d[39]),Q=g(Q,ne,ae,re,X,4,d[40]),re=g(re,Q,ne,ae,T,11,d[41]),ae=g(ae,re,Q,ne,M,16,d[42]),ne=g(ne,ae,re,Q,N,23,d[43]),Q=g(Q,ne,ae,re,U,4,d[44]),re=g(re,Q,ne,ae,oe,11,d[45]),ae=g(ae,re,Q,ne,q,16,d[46]),ne=g(ne,ae,re,Q,P,23,d[47]),Q=y(Q,ne,ae,re,T,6,d[48]),re=y(re,Q,ne,ae,F,10,d[49]),ae=y(ae,re,Q,ne,H,15,d[50]),ne=y(ne,ae,re,Q,I,21,d[51]),Q=y(Q,ne,ae,re,oe,6,d[52]),re=y(re,Q,ne,ae,M,10,d[53]),ae=y(ae,re,Q,ne,G,15,d[54]),ne=y(ne,ae,re,Q,D,21,d[55]),Q=y(Q,ne,ae,re,W,6,d[56]),re=y(re,Q,ne,ae,q,10,d[57]),ae=y(ae,re,Q,ne,N,15,d[58]),ne=y(ne,ae,re,Q,X,21,d[59]),Q=y(Q,ne,ae,re,$,6,d[60]),re=y(re,Q,ne,ae,Z,10,d[61]),ae=y(ae,re,Q,ne,P,15,d[62]),ne=y(ne,ae,re,Q,U,21,d[63]),_[0]=_[0]+Q|0,_[1]=_[1]+ne|0,_[2]=_[2]+ae|0,_[3]=_[3]+re|0},_doFinalize:function(){var S=this._data,k=S.words,C=this._nDataBytes*8,x=S.sigBytes*8;k[x>>>5]|=128<<24-x%32;var E=r.floor(C/4294967296),_=C;k[(x+64>>>9<<4)+15]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,k[(x+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S.sigBytes=(k.length+1)*4,this._process();for(var T=this._hash,D=T.words,P=0;P<4;P++){var M=D[P];D[P]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return T},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S}});function p(S,k,C,x,E,_,T){var D=S+(k&C|~k&x)+E+T;return(D<<_|D>>>32-_)+k}function m(S,k,C,x,E,_,T){var D=S+(k&x|C&~x)+E+T;return(D<<_|D>>>32-_)+k}function g(S,k,C,x,E,_,T){var D=S+(k^C^x)+E+T;return(D<<_|D>>>32-_)+k}function y(S,k,C,x,E,_,T){var D=S+(C^(k|~x))+E+T;return(D<<_|D>>>32-_)+k}o.MD5=l._createHelper(h),o.HmacMD5=l._createHmacHelper(h)})(Math),n.MD5})})(SE)),SE.exports}var kE={exports:{}},O_t=kE.exports,nle;function v3e(){return nle||(nle=1,(function(e,t){(function(n,r){e.exports=r($i())})(O_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=o.Hasher,l=r.algo,c=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,p){for(var m=this._hash.words,g=m[0],y=m[1],S=m[2],k=m[3],C=m[4],x=0;x<80;x++){if(x<16)c[x]=h[p+x]|0;else{var E=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=E<<1|E>>>31}var _=(g<<5|g>>>27)+C+c[x];x<20?_+=(y&S|~y&k)+1518500249:x<40?_+=(y^S^k)+1859775393:x<60?_+=(y&S|y&k|S&k)-1894007588:_+=(y^S^k)-899497514,C=k,k=S,S=y<<30|y>>>2,y=g,g=_}m[0]=m[0]+g|0,m[1]=m[1]+y|0,m[2]=m[2]+S|0,m[3]=m[3]+k|0,m[4]=m[4]+C|0},_doFinalize:function(){var h=this._data,p=h.words,m=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(m/4294967296),p[(g+64>>>9<<4)+15]=m,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)})(),n.SHA1})})(kE)),kE.exports}var xE={exports:{}},$_t=xE.exports,rle;function hG(){return rle||(rle=1,(function(e,t){(function(n,r){e.exports=r($i())})($_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=[],h=[];(function(){function g(C){for(var x=r.sqrt(C),E=2;E<=x;E++)if(!(C%E))return!1;return!0}function y(C){return(C-(C|0))*4294967296|0}for(var S=2,k=0;k<64;)g(S)&&(k<8&&(d[k]=y(r.pow(S,1/2))),h[k]=y(r.pow(S,1/3)),k++),S++})();var p=[],m=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(g,y){for(var S=this._hash.words,k=S[0],C=S[1],x=S[2],E=S[3],_=S[4],T=S[5],D=S[6],P=S[7],M=0;M<64;M++){if(M<16)p[M]=g[y+M]|0;else{var $=p[M-15],I=($<<25|$>>>7)^($<<14|$>>>18)^$>>>3,N=p[M-2],F=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;p[M]=I+p[M-7]+F+p[M-16]}var W=_&T^~_&D,U=k&C^k&x^C&x,G=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),Z=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),oe=P+Z+W+h[M]+p[M],X=G+U;P=D,D=T,T=_,_=E+oe|0,E=x,x=C,C=k,k=oe+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(m),o.HmacSHA256=l._createHmacHelper(m)})(Math),n.SHA256})})(xE)),xE.exports}var CE={exports:{}},B_t=CE.exports,ile;function N_t(){return ile||(ile=1,(function(e,t){(function(n,r,o){e.exports=r($i(),hG())})(B_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})})(CE)),CE.exports}var wE={exports:{}},F_t=wE.exports,ole;function m3e(){return ole||(ole=1,(function(e,t){(function(n,r,o){e.exports=r($i(),KA())})(F_t,function(n){return(function(){var r=n,o=r.lib,a=o.Hasher,s=r.x64,l=s.Word,c=s.WordArray,d=r.algo;function h(){return l.create.apply(l,arguments)}var p=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],m=[];(function(){for(var y=0;y<80;y++)m[y]=h()})();var g=d.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,S){for(var k=this._hash.words,C=k[0],x=k[1],E=k[2],_=k[3],T=k[4],D=k[5],P=k[6],M=k[7],$=C.high,I=C.low,N=x.high,F=x.low,W=E.high,U=E.low,G=_.high,Z=_.low,oe=T.high,X=T.low,H=D.high,q=D.low,Q=P.high,ne=P.low,ae=M.high,re=M.low,Se=$,xe=I,ve=N,be=F,Ve=W,Je=U,Me=G,je=Z,ge=oe,_e=X,Fe=H,He=q,Qe=Q,rt=ne,ft=ae,lt=re,Ct=0;Ct<80;Ct++){var St,Wt,Tt=m[Ct];if(Ct<16)Wt=Tt.high=y[S+Ct*2]|0,St=Tt.low=y[S+Ct*2+1]|0;else{var Mt=m[Ct-15],nn=Mt.high,ut=Mt.low,Ne=(nn>>>1|ut<<31)^(nn>>>8|ut<<24)^nn>>>7,Ie=(ut>>>1|nn<<31)^(ut>>>8|nn<<24)^(ut>>>7|nn<<25),Oe=m[Ct-2],Xe=Oe.high,ct=Oe.low,Lt=(Xe>>>19|ct<<13)^(Xe<<3|ct>>>29)^Xe>>>6,ht=(ct>>>19|Xe<<13)^(ct<<3|Xe>>>29)^(ct>>>6|Xe<<26),Be=m[Ct-7],wt=Be.high,Yt=Be.low,Qt=m[Ct-16],Vt=Qt.high,tn=Qt.low;St=Ie+Yt,Wt=Ne+wt+(St>>>0>>0?1:0),St=St+ht,Wt=Wt+Lt+(St>>>0>>0?1:0),St=St+tn,Wt=Wt+Vt+(St>>>0>>0?1:0),Tt.high=Wt,Tt.low=St}var Jn=ge&Fe^~ge&Qe,kr=_e&He^~_e&rt,Bi=Se&ve^Se&Ve^ve&Ve,Cs=xe&be^xe&Je^be&Je,Pt=(Se>>>28|xe<<4)^(Se<<30|xe>>>2)^(Se<<25|xe>>>7),fn=(xe>>>28|Se<<4)^(xe<<30|Se>>>2)^(xe<<25|Se>>>7),br=(ge>>>14|_e<<18)^(ge>>>18|_e<<14)^(ge<<23|_e>>>9),un=(_e>>>14|ge<<18)^(_e>>>18|ge<<14)^(_e<<23|ge>>>9),kn=p[Ct],ur=kn.high,ii=kn.low,kt=lt+un,Ht=ft+br+(kt>>>0>>0?1:0),kt=kt+kr,Ht=Ht+Jn+(kt>>>0>>0?1:0),kt=kt+ii,Ht=Ht+ur+(kt>>>0>>0?1:0),kt=kt+St,Ht=Ht+Wt+(kt>>>0>>0?1:0),cn=fn+Cs,hn=Pt+Bi+(cn>>>0>>0?1:0);ft=Qe,lt=rt,Qe=Fe,rt=He,Fe=ge,He=_e,_e=je+kt|0,ge=Me+Ht+(_e>>>0>>0?1:0)|0,Me=Ve,je=Je,Ve=ve,Je=be,ve=Se,be=xe,xe=kt+cn|0,Se=Ht+hn+(xe>>>0>>0?1:0)|0}I=C.low=I+xe,C.high=$+Se+(I>>>0>>0?1:0),F=x.low=F+be,x.high=N+ve+(F>>>0>>0?1:0),U=E.low=U+Je,E.high=W+Ve+(U>>>0>>0?1:0),Z=_.low=Z+je,_.high=G+Me+(Z>>>0>>0?1:0),X=T.low=X+_e,T.high=oe+ge+(X>>>0<_e>>>0?1:0),q=D.low=q+He,D.high=H+Fe+(q>>>0>>0?1:0),ne=P.low=ne+rt,P.high=Q+Qe+(ne>>>0>>0?1:0),re=M.low=re+lt,M.high=ae+ft+(re>>>0>>0?1:0)},_doFinalize:function(){var y=this._data,S=y.words,k=this._nDataBytes*8,C=y.sigBytes*8;S[C>>>5]|=128<<24-C%32,S[(C+128>>>10<<5)+30]=Math.floor(k/4294967296),S[(C+128>>>10<<5)+31]=k,y.sigBytes=S.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=a._createHelper(g),r.HmacSHA512=a._createHmacHelper(g)})(),n.SHA512})})(wE)),wE.exports}var EE={exports:{}},j_t=EE.exports,sle;function V_t(){return sle||(sle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),KA(),m3e())})(j_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})})(EE)),EE.exports}var TE={exports:{}},z_t=TE.exports,ale;function U_t(){return ale||(ale=1,(function(e,t){(function(n,r,o){e.exports=r($i(),KA())})(z_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.x64,d=c.Word,h=o.algo,p=[],m=[],g=[];(function(){for(var k=1,C=0,x=0;x<24;x++){p[k+5*C]=(x+1)*(x+2)/2%64;var E=C%5,_=(2*k+3*C)%5;k=E,C=_}for(var k=0;k<5;k++)for(var C=0;C<5;C++)m[k+5*C]=C+(2*k+3*C)%5*5;for(var T=1,D=0;D<24;D++){for(var P=0,M=0,$=0;$<7;$++){if(T&1){var I=(1<<$)-1;I<32?M^=1<>>24)&16711935|(T<<24|T>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var P=x[_];P.high^=D,P.low^=T}for(var M=0;M<24;M++){for(var $=0;$<5;$++){for(var I=0,N=0,F=0;F<5;F++){var P=x[$+5*F];I^=P.high,N^=P.low}var W=y[$];W.high=I,W.low=N}for(var $=0;$<5;$++)for(var U=y[($+4)%5],G=y[($+1)%5],Z=G.high,oe=G.low,I=U.high^(Z<<1|oe>>>31),N=U.low^(oe<<1|Z>>>31),F=0;F<5;F++){var P=x[$+5*F];P.high^=I,P.low^=N}for(var X=1;X<25;X++){var I,N,P=x[X],H=P.high,q=P.low,Q=p[X];Q<32?(I=H<>>32-Q,N=q<>>32-Q):(I=q<>>64-Q,N=H<>>64-Q);var ne=y[m[X]];ne.high=I,ne.low=N}var ae=y[0],re=x[0];ae.high=re.high,ae.low=re.low;for(var $=0;$<5;$++)for(var F=0;F<5;F++){var X=$+5*F,P=x[X],Se=y[X],xe=y[($+1)%5+5*F],ve=y[($+2)%5+5*F];P.high=Se.high^~xe.high&ve.high,P.low=Se.low^~xe.low&ve.low}var P=x[0],be=g[M];P.high^=be.high,P.low^=be.low}},_doFinalize:function(){var k=this._data,C=k.words;this._nDataBytes*8;var x=k.sigBytes*8,E=this.blockSize*32;C[x>>>5]|=1<<24-x%32,C[(r.ceil((x+1)/E)*E>>>5)-1]|=128,k.sigBytes=C.length*4,this._process();for(var _=this._state,T=this.cfg.outputLength/8,D=T/8,P=[],M=0;M>>24)&16711935|(I<<24|I>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,P.push(N),P.push(I)}return new s.init(P,T)},clone:function(){for(var k=l.clone.call(this),C=k._state=this._state.slice(0),x=0;x<25;x++)C[x]=C[x].clone();return k}});o.SHA3=l._createHelper(S),o.HmacSHA3=l._createHmacHelper(S)})(Math),n.SHA3})})(TE)),TE.exports}var AE={exports:{}},H_t=AE.exports,lle;function W_t(){return lle||(lle=1,(function(e,t){(function(n,r){e.exports=r($i())})(H_t,function(n){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),m=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),S=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,P){for(var M=0;M<16;M++){var $=P+M,I=D[$];D[$]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var N=this._hash.words,F=g.words,W=y.words,U=d.words,G=h.words,Z=p.words,oe=m.words,X,H,q,Q,ne,ae,re,Se,xe,ve;ae=X=N[0],re=H=N[1],Se=q=N[2],xe=Q=N[3],ve=ne=N[4];for(var be,M=0;M<80;M+=1)be=X+D[P+U[M]]|0,M<16?be+=k(H,q,Q)+F[0]:M<32?be+=C(H,q,Q)+F[1]:M<48?be+=x(H,q,Q)+F[2]:M<64?be+=E(H,q,Q)+F[3]:be+=_(H,q,Q)+F[4],be=be|0,be=T(be,Z[M]),be=be+ne|0,X=ne,ne=Q,Q=T(q,10),q=H,H=be,be=ae+D[P+G[M]]|0,M<16?be+=_(re,Se,xe)+W[0]:M<32?be+=E(re,Se,xe)+W[1]:M<48?be+=x(re,Se,xe)+W[2]:M<64?be+=C(re,Se,xe)+W[3]:be+=k(re,Se,xe)+W[4],be=be|0,be=T(be,oe[M]),be=be+ve|0,ae=ve,ve=xe,xe=T(Se,10),Se=re,re=be;be=N[1]+q+xe|0,N[1]=N[2]+Q+ve|0,N[2]=N[3]+ne+ae|0,N[3]=N[4]+X+re|0,N[4]=N[0]+H+Se|0,N[0]=be},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,$=D.sigBytes*8;P[$>>>5]|=128<<24-$%32,P[($+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var I=this._hash,N=I.words,F=0;F<5;F++){var W=N[F];N[F]=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360}return I},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function k(D,P,M){return D^P^M}function C(D,P,M){return D&P|~D&M}function x(D,P,M){return(D|~P)^M}function E(D,P,M){return D&M|P&~M}function _(D,P,M){return D^(P|~M)}function T(D,P){return D<>>32-P}o.RIPEMD160=l._createHelper(S),o.HmacRIPEMD160=l._createHmacHelper(S)})(),n.RIPEMD160})})(AE)),AE.exports}var IE={exports:{}},G_t=IE.exports,ule;function pG(){return ule||(ule=1,(function(e,t){(function(n,r){e.exports=r($i())})(G_t,function(n){(function(){var r=n,o=r.lib,a=o.Base,s=r.enc,l=s.Utf8,c=r.algo;c.HMAC=a.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var p=d.blockSize,m=p*4;h.sigBytes>m&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),y=this._iKey=h.clone(),S=g.words,k=y.words,C=0;C>>2]&255;I.sigBytes-=N}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:x}),reset:function(){var I;g.reset.call(this);var N=this.cfg,F=N.iv,W=N.mode;this._xformMode==this._ENC_XFORM_MODE?I=W.createEncryptor:(I=W.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,F&&F.words):(this._mode=I.call(W,this,F&&F.words),this._mode.__creator=I)},_doProcessBlock:function(I,N){this._mode.processBlock(I,N)},_doFinalize:function(){var I,N=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(N.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),N.unpad(I)),I},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),_=o.format={},T=_.OpenSSL={stringify:function(I){var N,F=I.ciphertext,W=I.salt;return W?N=l.create([1398893684,1701076831]).concat(W).concat(F):N=F,N.toString(h)},parse:function(I){var N,F=h.parse(I),W=F.words;return W[0]==1398893684&&W[1]==1701076831&&(N=l.create(W.slice(2,4)),W.splice(0,4),F.sigBytes-=16),E.create({ciphertext:F,salt:N})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(I,N,F,W){W=this.cfg.extend(W);var U=I.createEncryptor(F,W),G=U.finalize(N),Z=U.cfg;return E.create({ciphertext:G,key:F,iv:Z.iv,algorithm:I,mode:Z.mode,padding:Z.padding,blockSize:I.blockSize,formatter:W.format})},decrypt:function(I,N,F,W){W=this.cfg.extend(W),N=this._parse(N,W.format);var U=I.createDecryptor(F,W).finalize(N.ciphertext);return U},_parse:function(I,N){return typeof I=="string"?N.parse(I,this):I}}),P=o.kdf={},M=P.OpenSSL={execute:function(I,N,F,W,U){if(W||(W=l.random(64/8)),U)var G=m.create({keySize:N+F,hasher:U}).compute(I,W);else var G=m.create({keySize:N+F}).compute(I,W);var Z=l.create(G.words.slice(N),F*4);return G.sigBytes=N*4,E.create({key:G,iv:Z,salt:W})}},$=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(I,N,F,W){W=this.cfg.extend(W);var U=W.kdf.execute(F,I.keySize,I.ivSize,W.salt,W.hasher);W.iv=U.iv;var G=D.encrypt.call(this,I,N,U.key,W);return G.mixIn(U),G},decrypt:function(I,N,F,W){W=this.cfg.extend(W),N=this._parse(N,W.format);var U=W.kdf.execute(F,I.keySize,I.ivSize,N.salt,W.hasher);W.iv=U.iv;var G=D.decrypt.call(this,I,N,U.key,W);return G}})})()})})(PE)),PE.exports}var RE={exports:{}},Z_t=RE.exports,hle;function J_t(){return hle||(hle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Ea())})(Z_t,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize;o.call(this,a,s,c,l),this._prevBlock=a.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize,d=a.slice(s,s+c);o.call(this,a,s,c,l),this._prevBlock=d}});function o(a,s,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var p=0;p>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function a(l){return(l[0]=o(l[0]))===0&&(l[1]=o(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,p=this._iv,m=this._counter;p&&(m=this._counter=p.slice(0),this._iv=void 0),a(m);var g=m.slice(0);d.encryptBlock(g,0);for(var y=0;y>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})})(NE)),NE.exports}var FE={exports:{}},uSt=FE.exports,ble;function cSt(){return ble||(ble=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Ea())})(uSt,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})})(FE)),FE.exports}var jE={exports:{}},dSt=jE.exports,_le;function fSt(){return _le||(_le=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Ea())})(dSt,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})})(jE)),jE.exports}var VE={exports:{}},hSt=VE.exports,Sle;function pSt(){return Sle||(Sle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Ea())})(hSt,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})})(VE)),VE.exports}var zE={exports:{}},vSt=zE.exports,kle;function mSt(){return kle||(kle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Ea())})(vSt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(zE)),zE.exports}var UE={exports:{}},gSt=UE.exports,xle;function ySt(){return xle||(xle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Ea())})(gSt,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})})(UE)),UE.exports}var HE={exports:{}},bSt=HE.exports,Cle;function _St(){return Cle||(Cle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Qm(),eg(),j0(),Ea())})(bSt,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],m=[],g=[],y=[],S=[],k=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var T=0,D=0,_=0;_<256;_++){var P=D^D<<1^D<<2^D<<3^D<<4;P=P>>>8^P&255^99,l[T]=P,c[P]=T;var M=E[T],$=E[M],I=E[$],N=E[P]*257^P*16843008;d[T]=N<<24|N>>>8,h[T]=N<<16|N>>>16,p[T]=N<<8|N>>>24,m[T]=N;var N=I*16843009^$*65537^M*257^T*16843008;g[P]=N<<24|N>>>8,y[P]=N<<16|N>>>16,S[P]=N<<8|N>>>24,k[P]=N,T?(T=M^E[E[E[I^M]]],D^=E[E[D]]):T=D=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=a.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,T=_.words,D=_.sigBytes/4,P=this._nRounds=D+6,M=(P+1)*4,$=this._keySchedule=[],I=0;I6&&I%D==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=C[I/D|0]<<24),$[I]=$[I-D]^E);for(var N=this._invKeySchedule=[],F=0;F>>24]]^y[l[E>>>16&255]]^S[l[E>>>8&255]]^k[l[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,d,h,p,m,l)},decryptBlock:function(E,_){var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T,this._doCryptBlock(E,_,this._invKeySchedule,g,y,S,k,c);var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T},_doCryptBlock:function(E,_,T,D,P,M,$,I){for(var N=this._nRounds,F=E[_]^T[0],W=E[_+1]^T[1],U=E[_+2]^T[2],G=E[_+3]^T[3],Z=4,oe=1;oe>>24]^P[W>>>16&255]^M[U>>>8&255]^$[G&255]^T[Z++],H=D[W>>>24]^P[U>>>16&255]^M[G>>>8&255]^$[F&255]^T[Z++],q=D[U>>>24]^P[G>>>16&255]^M[F>>>8&255]^$[W&255]^T[Z++],Q=D[G>>>24]^P[F>>>16&255]^M[W>>>8&255]^$[U&255]^T[Z++];F=X,W=H,U=q,G=Q}var X=(I[F>>>24]<<24|I[W>>>16&255]<<16|I[U>>>8&255]<<8|I[G&255])^T[Z++],H=(I[W>>>24]<<24|I[U>>>16&255]<<16|I[G>>>8&255]<<8|I[F&255])^T[Z++],q=(I[U>>>24]<<24|I[G>>>16&255]<<16|I[F>>>8&255]<<8|I[W&255])^T[Z++],Q=(I[G>>>24]<<24|I[F>>>16&255]<<16|I[W>>>8&255]<<8|I[U&255])^T[Z++];E[_]=X,E[_+1]=H,E[_+2]=q,E[_+3]=Q},keySize:256/32});r.AES=a._createHelper(x)})(),n.AES})})(HE)),HE.exports}var WE={exports:{}},SSt=WE.exports,wle;function kSt(){return wle||(wle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Qm(),eg(),j0(),Ea())})(SSt,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=o.BlockCipher,l=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var C=this._key,x=C.words,E=[],_=0;_<56;_++){var T=c[_]-1;E[_]=x[T>>>5]>>>31-T%32&1}for(var D=this._subKeys=[],P=0;P<16;P++){for(var M=D[P]=[],$=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+$)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+$)%28]<<31-_%6;M[0]=M[0]<<1|M[0]>>>31;for(var _=1;_<7;_++)M[_]=M[_]>>>(_-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var I=this._invSubKeys=[],_=0;_<16;_++)I[_]=D[15-_]},encryptBlock:function(C,x){this._doCryptBlock(C,x,this._subKeys)},decryptBlock:function(C,x){this._doCryptBlock(C,x,this._invSubKeys)},_doCryptBlock:function(C,x,E){this._lBlock=C[x],this._rBlock=C[x+1],y.call(this,4,252645135),y.call(this,16,65535),S.call(this,2,858993459),S.call(this,8,16711935),y.call(this,1,1431655765);for(var _=0;_<16;_++){for(var T=E[_],D=this._lBlock,P=this._rBlock,M=0,$=0;$<8;$++)M|=p[$][((P^T[$])&m[$])>>>0];this._lBlock=P,this._rBlock=D^M}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,y.call(this,1,1431655765),S.call(this,8,16711935),S.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),C[x]=this._lBlock,C[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(C,x){var E=(this._lBlock>>>C^this._rBlock)&x;this._rBlock^=E,this._lBlock^=E<>>C^this._lBlock)&x;this._lBlock^=E,this._rBlock^=E<192.");var E=x.slice(0,2),_=x.length<4?x.slice(0,2):x.slice(2,4),T=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=g.createEncryptor(a.create(E)),this._des2=g.createEncryptor(a.create(_)),this._des3=g.createEncryptor(a.create(T))},encryptBlock:function(C,x){this._des1.encryptBlock(C,x),this._des2.decryptBlock(C,x),this._des3.encryptBlock(C,x)},decryptBlock:function(C,x){this._des3.decryptBlock(C,x),this._des2.encryptBlock(C,x),this._des1.decryptBlock(C,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(k)})(),n.TripleDES})})(WE)),WE.exports}var GE={exports:{}},xSt=GE.exports,Ele;function CSt(){return Ele||(Ele=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Qm(),eg(),j0(),Ea())})(xSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=s.RC4=a.extend({_doReset:function(){for(var h=this._key,p=h.words,m=h.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,S=0;y<256;y++){var k=y%m,C=p[k>>>2]>>>24-k%4*8&255;S=(S+g[y]+C)%256;var x=g[y];g[y]=g[S],g[S]=x}this._i=this._j=0},_doProcessBlock:function(h,p){h[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,p=this._i,m=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,m=(m+h[p])%256;var S=h[p];h[p]=h[m],h[m]=S,g|=h[(h[p]+h[m])%256]<<24-y*8}return this._i=p,this._j=m,g}r.RC4=a._createHelper(l);var d=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=a._createHelper(d)})(),n.RC4})})(GE)),GE.exports}var KE={exports:{}},wSt=KE.exports,Tle;function ESt(){return Tle||(Tle=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Qm(),eg(),j0(),Ea())})(wSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.Rabbit=a.extend({_doReset:function(){for(var m=this._key.words,g=this.cfg.iv,y=0;y<4;y++)m[y]=(m[y]<<8|m[y]>>>24)&16711935|(m[y]<<24|m[y]>>>8)&4278255360;var S=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],k=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)k[y]^=S[y+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;k[0]^=_,k[1]^=D,k[2]^=T,k[3]^=P,k[4]^=_,k[5]^=D,k[6]^=T,k[7]^=P;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(m,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,m[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var m=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=m[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}m[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,m[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,m[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,m[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,m[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,m[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,m[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,m[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(KE)),KE.exports}var qE={exports:{}},TSt=qE.exports,Ale;function ASt(){return Ale||(Ale=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Qm(),eg(),j0(),Ea())})(TSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.RabbitLegacy=a.extend({_doReset:function(){var m=this._key.words,g=this.cfg.iv,y=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],S=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var k=0;k<4;k++)p.call(this);for(var k=0;k<8;k++)S[k]^=y[k+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;S[0]^=_,S[1]^=D,S[2]^=T,S[3]^=P,S[4]^=_,S[5]^=D,S[6]^=T,S[7]^=P;for(var k=0;k<4;k++)p.call(this)}},_doProcessBlock:function(m,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,m[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var m=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=m[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}m[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,m[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,m[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,m[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,m[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,m[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,m[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,m[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(qE)),qE.exports}var YE={exports:{}},ISt=YE.exports,Ile;function LSt(){return Ile||(Ile=1,(function(e,t){(function(n,r,o){e.exports=r($i(),Qm(),eg(),j0(),Ea())})(ISt,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function p(k,C){let x=C>>24&255,E=C>>16&255,_=C>>8&255,T=C&255,D=k.sbox[0][x]+k.sbox[1][E];return D=D^k.sbox[2][_],D=D+k.sbox[3][T],D}function m(k,C,x){let E=C,_=x,T;for(let D=0;D1;--D)E=E^k.pbox[D],_=p(k,E)^_,T=E,E=_,_=T;return T=E,E=_,_=T,_=_^k.pbox[1],E=E^k.pbox[0],{left:E,right:_}}function y(k,C,x){for(let P=0;P<4;P++){k.sbox[P]=[];for(let M=0;M<256;M++)k.sbox[P][M]=d[P][M]}let E=0;for(let P=0;P=x&&(E=0);let _=0,T=0,D=0;for(let P=0;PDle.enc.Base64.stringify(Dle.enc.Utf8.parse(e)),MSt=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Mz(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Mp=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),OSt=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},$St={NORMAL:"normal"},BSt=()=>({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:$St.NORMAL}),NSt=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),FSt=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:""});class jSt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!Mp(t))throw new Error("无效的模块名称");const{apiUrl:r,...o}=n,a=`home_${t}_${JSON.stringify(n)}`;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 p_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(!Mp(t))throw new Error("无效的模块名称");const{typeId:r,page:o=1,filters:a={},apiUrl:s,extend:l}=n;if(!r)throw new Error("分类ID不能为空");const c=`category_${t}_${r}_${o}_${JSON.stringify(a)}`,d=this.getFromCache(c);if(d)return d;try{const h={t:r,pg:o};Object.keys(a).length>0&&(h.ext=MSt(a));const p=ua(l);p&&(h.extend=p),s&&(h.apiUrl=s);const m=await H1(t,h),g={videos:(m.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(m,o),filters:m.filters||{},total:m.total||0};return this.setCache(c,g),g}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,o=!1,a=null){if(!Mp(t))throw new Error("无效的模块名称");if(!OSt(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 v_t(t,l);if(!d.list||d.list.length===0)throw new Error("视频不存在");const h=this.formatVideoInfo(d.list[0]);return h.vod_play_url&&(h.playList=this.parsePlayUrls(h.vod_play_url,h.vod_play_from)),this.setCache(s,h),h}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!Mp(t))throw new Error("无效的模块名称");const{keyword:r,page:o=1,extend:a,apiUrl:s}=n;if(!r||r.trim().length===0)throw new Error("搜索关键词不能为空");try{const l={wd:r.trim(),pg:o},c=ua(a);c&&(l.extend=c),s&&(l.apiUrl=s);const d=await g_t(t,l);return{videos:(d.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(d,o),keyword:r.trim(),total:d.total||0,rawResponse:d}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,o=null){if(!Mp(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r);const s=ua(o);s&&(a.extend=s);const l=await p3e(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 __t(t,{url:n,...r});return{url:o.url||n,type:o.type||"mp4",headers:o.headers||{},success:o.success!==!1}}catch(o){throw console.error("解析视频地址失败:",o),o}}async parseEpisodePlayUrl(t,n){if(!Mp(t))throw new Error("无效的模块名称");const{play:r,flag:o,apiUrl:a,extend:s}=n;if(!r)throw new Error("播放地址不能为空");try{console.log("VideoService: 开始解析选集播放地址",{module:t,params:n});const l={play:r,extend:ua(s)};o&&(l.flag=o),a&&(l.apiUrl=a);const c=await m_t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!Mp(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const o={action:n.trim(),value:r.value||"",extend:ua(r.extend),apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:o});const a=await GA(t,o);return console.log("T4 action执行结果:",a),a}catch(o){throw console.error("T4 action执行失败:",o),o}}async refreshModuleData(t,n=null,r=null){if(!Mp(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=ua(n),a=await y_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=BSt();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=NSt();r.page=n;const o=t.total||t.recordcount||0,a=t.pagecount||t.totalPages||0,s=t.limit||t.pagesize||20,l=t.list||[];return r.total=o,r.pageSize=s,a>0?(r.totalPages=a,r.hasNext=n0?(r.totalPages=Math.ceil(o/s),r.hasNext=nd.vod_id==="no_data"||d.vod_name==="no_data"||typeof d=="string"&&d.includes("no_data"))||l.length===0?(r.hasNext=!1,r.totalPages=n):(r.hasNext=!0,r.totalPages=n+1),r.hasPrev=n>1,r}getFromCache(t){const n=this.cache.get(t);return n&&Date.now()-n.timestamp{const n=`${dG.PROXY}/${e}`;return t?`${n}/${t}`:n},VSt=async(e,t="",n={})=>{const r=qA(e,t);return F0(r,n)},zSt=async(e,t="",n={})=>{const r=qA(e,t);return h3e(r,n)},USt=async(e,t="",n={})=>{const r=qA(e,t);return f_t(r,n)},HSt=async(e,t="",n={})=>{const r=qA(e,t);return h_t(r,n)},WSt=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return VSt(e,t,o);case"POST":return zSt(e,t,a);case"PUT":return USt(e,t,a);case"DELETE":return HSt(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};class GSt{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 uo.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 WSt(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=FSt();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 bs=new KSt,qSt={key:0,class:"filter-section"},YSt={class:"filter-content"},XSt={class:"filter-header-with-reset"},ZSt={class:"filter-group-row"},JSt={class:"filter-group-title"},QSt={class:"filter-options-container"},e6t={class:"filter-options"},t6t={__name:"FilterSection",props:{filters:{type:Array,default:null},selectedFilters:{type:Object,default:()=>({})},visible:{type:Boolean,default:!1}},emits:["update:visible","update:selectedFilters","toggle-filter","reset-filters"],setup(e,{emit:t}){const n=e,r=t,o=j(()=>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=De("a-button"),p=De("a-tag");return e.filters?(z(),ee("div",qSt,[O(xs,{name:"collapse"},{default:de(()=>[Ei(L("div",YSt,[L("div",XSt,[o.value?(z(),Ye(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[O(et(wd))]),_:1})):Pe("",!0)]),(z(!0),ee(Nt,null,vn(e.filters,m=>(z(),ee("div",{key:m.key,class:"filter-group"},[L("div",ZSt,[L("div",JSt,Ue(m.name),1),L("div",QSt,[L("div",e6t,[(z(!0),ee(Nt,null,vn(m.value,g=>(z(),Ye(p,{key:g.v,color:a(m.key,g.v)?"green":"",checkable:!0,checked:a(m.key,g.v),onCheck:y=>s(m.key,g.v,g.n),class:"filter-option-tag"},{default:de(()=>[We(Ue(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Jo,e.visible]])]),_:1})])):Pe("",!0)}}},n6t=Sr(t6t,[["__scopeId","data-v-90bc92fe"]]),r6t={class:"category-nav-container"},i6t={key:0,class:"special-category-header"},o6t={class:"special-category-title"},s6t={class:"category-name"},a6t=["onClick"],l6t={class:"category-name"},u6t={__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},m=C=>n.filters[C]||null,g=C=>{r("toggle-filter",C)},y=()=>{r("reset-filters")},S=()=>{r("open-category-modal")},k=()=>{console.log("关闭特殊分类"),r("close-special-category")};return mn(()=>{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))}),Ao(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&l&&x.removeEventListener("wheel",l)}),(C,x)=>{const E=De("a-tab-pane"),_=De("a-tabs");return z(),ee("div",r6t,[L("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(z(),ee("div",i6t,[L("div",o6t,[L("span",s6t,Ue(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=L("span",{class:"category-type"},"(源内搜索)",-1))])])):(z(),Ye(_,{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(),Ye(E,{key:"recommendTuijian404"},{title:de(()=>[...x[2]||(x[2]=[L("span",null,"推荐",-1)])]),_:1})):Pe("",!0),(z(!0),ee(Nt,null,vn(e.classList?.class||[],T=>(z(),Ye(E,{key:T.type_id},{title:de(()=>[L("div",{class:"category-tab-title",onClick:ls(D=>T.type_id===a.value&&p(T.type_id)?h(T.type_id):d(T.type_id),["stop"])},[L("span",l6t,Ue(T.type_name),1),T.type_id===a.value&&p(T.type_id)?(z(),Ye(et(jH),{key:0,class:ue(["filter-icon",{"filter-icon-active":e.filterVisible[T.type_id]}])},null,8,["class"])):Pe("",!0)],8,a6t)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(z(),ee("div",{key:2,class:"special-category-close",onClick:k},[O(et(cs)),x[3]||(x[3]=L("span",null,"返回",-1))])):(z(),ee("div",{key:3,class:"category-manage",onClick:S},[O(et(Tve))]))],512),m(a.value)&&n.filterVisible[a.value]?(z(),Ye(n6t,{key:0,filters:m(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:y},null,8,["filters","selectedFilters"])):Pe("",!0)])}}},c6t=Sr(u6t,[["__scopeId","data-v-9076ce57"]]),d6t="modulepreload",f6t=function(e){return"/apps/drplayer/"+e},Ple={},Of=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};var s=d;document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=d(n.map(h=>{if(h=f6t(h),h in Ple)return;Ple[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":d6t,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)})},h6t={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=j(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto",e.height&&e.height!=="auto"&&(p.maxHeight="85vh")):(e.width&&(p.width=typeof e.width=="number"?`${e.width}px`:e.width,p.maxWidth="90vw"),e.height&&e.height!=="auto"&&(p.height=typeof e.height=="number"?`${e.height}px`:e.height,p.maxHeight="90vh")),e.bottom>0&&(p.marginBottom=`${e.bottom}px`),p}),s=j(()=>{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(),Sn(()=>{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()}},p6t={key:1,class:"action-dialog-header"},v6t={class:"action-dialog-title"},m6t={key:2,class:"action-dialog-footer"};function g6t(e,t,n,r,o,a){return z(),Ye(Hm,{to:"body"},[O(xs,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(z(),ee("div",{key:0,class:ue(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ke({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(xs,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(z(),ee("div",{key:0,class:ue(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:Ke(r.dialogStyle),onClick:t[1]||(t[1]=ls(()=>{},["stop"]))},[t[4]||(t[4]=L("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(z(),ee("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[L("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Pe("",!0),n.title||e.$slots.header?(z(),ee("div",p6t,[pt(e.$slots,"header",{},()=>[L("h3",v6t,Ue(n.title),1)],!0)])):Pe("",!0),L("div",{class:"action-dialog-content",style:Ke(r.contentStyle)},[pt(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(z(),ee("div",m6t,[pt(e.$slots,"footer",{},void 0,!0)])):Pe("",!0)],6)):Pe("",!0)]),_:3})],6)):Pe("",!0)]),_:3})])}const Jh=Sr(h6t,[["render",g6t],["__scopeId","data-v-814adcb8"]]),Ci={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help"},hy={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},pi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Gc=e=>e==null?pi.OK_CANCEL:Object.values(pi).includes(e)?e:pi.CUSTOM,py=(e,t,n=null)=>({type:e,message:t,details:n}),vG=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw py(hy.PARSE_ERROR,"无法解析Action配置",t)}},g3e=e=>{if(!e||typeof e!="object")throw py(hy.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw py(hy.VALIDATION_ERROR,"actionId是必需的");if(!Object.values(Ci).includes(e.type))throw py(hy.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},Eb=e=>{if(!e)return[];try{return e.startsWith("[")||e.startsWith("{")?JSON.parse(e):e.includes(":=")?e.split(",").map(t=>{const n=t.trim(),[r,o]=n.split(":=");return{name:r?r.trim():n,value:o?o.trim():n}}).filter(t=>t.name):e.split("|").map(t=>{const[n,r]=t.split("=");return{name:n||t,value:r||t}})}catch(t){return console.warn("解析selectData失败:",t),[]}},y3e=(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)}`},b3e=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},y6t=Wm(()=>Of(()=>Promise.resolve().then(()=>JBt),void 0)),b6t=Wm(()=>Of(()=>Promise.resolve().then(()=>UNt),void 0)),_6t=Wm(()=>Of(()=>Promise.resolve().then(()=>UFt),void 0)),S6t=Wm(()=>Of(()=>Promise.resolve().then(()=>Mjt),void 0)),k6t=Wm(()=>Of(()=>Promise.resolve().then(()=>aVt),void 0)),x6t=Wm(()=>Of(()=>Promise.resolve().then(()=>dzt),void 0)),C6t={name:"ActionRenderer",components:{ActionDialog:Jh,InputAction:y6t,MultiInputAction:b6t,MenuAction:_6t,MsgBoxAction:S6t,WebViewAction:k6t,HelpAction:x6t},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={[Ci.INPUT]:"InputAction",[Ci.EDIT]:"InputAction",[Ci.MULTI_INPUT]:"MultiInputAction",[Ci.MULTI_INPUT_X]:"MultiInputAction",[Ci.MENU]:"MenuAction",[Ci.SELECT]:"MenuAction",[Ci.MSGBOX]:"MsgBoxAction",[Ci.WEBVIEW]:"WebViewAction",[Ci.HELP]:"HelpAction"},l=j(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const D=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:D,parsedConfig:n.value}),D}),c=D=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",D),!D){n.value=null;return}const P=vG(D);console.log("ActionRenderer parseConfig 解析后的配置:",P),g3e(P),d(P),n.value=P,r.value=null,console.log("ActionRenderer parseConfig 设置 parsedConfig.value:",n.value),e.autoShow?(a.value=!0,console.log("ActionRenderer parseConfig 设置 isVisible.value = true, autoShow:",e.autoShow)):console.log("ActionRenderer parseConfig autoShow 为 false,不自动显示")}catch(P){console.error("解析Action配置失败:",P),r.value=P,n.value=null}},d=D=>{const{actionId:P}=D},h=async D=>{const{actionId:P}=D;switch(P){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(D,null,2)),!D.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),ir("源内搜索参数不完整:缺少tid","error"),g();break}const M={tid:D.tid,type_id:D.tid,name:D.name,type_name:D.name||`搜索: ${D.tid}`,isSpecialCategory:!0,actionData:D};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(M,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),ir(D.msg||"执行源内搜索","info"),t("special-action","__self_search__",M),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),g();break;case"__detail__":ir("跳转到详情页","info"),t("special-action","detail",D),g();break;case"__ktvplayer__":ir("启动KTV播放","info"),t("special-action","ktv-player",D),g();break;case"__refresh_list__":ir("刷新列表","info"),t("special-action","refresh-list",D),g();break;case"__copy__":if(D.content)try{await navigator.clipboard.writeText(D.content),ir("已复制到剪贴板","success")}catch{ir("复制失败","error")}g();break;case"__keep__":D.msg&&ir(D.msg,"info"),D.reset&&(n.value=null);break;default:ir(`未知的专项动作: ${P}`,"warning"),g();break}},p=async D=>{if(n.value)try{o.value=!0;const P={action:n.value.actionId,value:typeof D=="object"?JSON.stringify(D):D};e.extend&&(P.extend=e.extend),e.apiUrl&&(P.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:P,apiUrl:e.apiUrl});let M=null;if(e.module?(M=await E(e.module,P),console.log("T4接口返回结果:",M)):(M=await t("action",n.value.actionId,D),console.log("父组件处理结果:",M)),M){if(typeof M=="string")try{M=JSON.parse(M)}catch{ir(M,"success"),t("success",D),g();return}if(typeof M=="object"){if(console.log("处理API返回的对象结果:",M),M.error)throw py(hy.NETWORK_ERROR,M.error);if(M.toast&&ir(M.toast,"success"),(M.message||M.msg)&&ir(M.message||M.msg,"success"),M.action){console.log("检测到动态action,重新解析:",M.action),c(M.action);return}if(M.actionId){console.log("检测到专项动作:",M.actionId),await h(M);return}if(M.code!==void 0)if(M.code===0||M.code===200){if(M.data&&typeof M.data=="object"){const $={...M.data};if($.action||$.actionId){if(console.log("在data字段中检测到action:",$),$.action){c($.action);return}if($.actionId){await h($);return}}}ir(M.message||M.msg||"操作成功","success")}else throw py(hy.NETWORK_ERROR,M.message||M.msg||`操作失败,错误码: ${M.code}`)}}t("success",D),g()}catch(P){console.error("执行Action失败:",P),r.value=P,ir(P.message||"操作失败","error")}finally{o.value=!1}},m=()=>{g()},g=()=>{a.value=!1,n.value=null,t("close")},y=async(D,P)=>{if(typeof D=="object"&&D.type){console.log("ActionRenderer接收到新的动作配置:",D),a.value=!1,await new Promise(M=>setTimeout(M,100)),c(D);return}await p({action:D,value:P})},S=()=>{r.value=null},k=(D,P)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",D),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(P,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",D,P),g()};Rt(()=>e.actionData,D=>{c(D)},{immediate:!0}),Rt(()=>e.visible,D=>{a.value=D});const C=D=>{D&&c(D),a.value=!0},x=()=>{a.value=!1},E=async(D,P)=>{try{return o.value=!0,await t("action",D,P)}catch(M){throw r.value=M,M}finally{o.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:o,isVisible:a,handleSubmit:p,handleCancel:m,handleClose:g,handleAction:y,handleToast:(D,P="success")=>{ir(D,P)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:k,clearError:S,show:C,hide:x,executeAction:E}}},w6t={class:"action-renderer"},E6t={class:"action-error"},T6t={key:0};function A6t(e,t,n,r,o,a){const s=De("ActionDialog");return z(),ee("div",w6t,[r.parsedConfig?(z(),Ye(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"])):Pe("",!0),r.error?(z(),Ye(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:de(()=>[L("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:de(()=>[L("div",E6t,[L("p",null,[L("strong",null,Ue(r.error.type),1)]),L("p",null,Ue(r.error.message),1),r.error.details?(z(),ee("pre",T6t,Ue(JSON.stringify(r.error.details,null,2)),1)):Pe("",!0)])]),_:1},8,["visible","onClose"])):Pe("",!0),r.isLoading?(z(),Ye(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:de(()=>[...t[1]||(t[1]=[L("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Pe("",!0)])}const vS=Sr(C6t,[["render",A6t],["__scopeId","data-v-86062fb2"]]);function _3e(e){if(!e||typeof e!="string")return"icon-file";const t=e.toLowerCase().split(".").pop(),n={doc:"icon-file_word",docx:"icon-file_word",xls:"icon-file_excel",xlsx:"icon-file_excel",ppt:"icon-file_ppt",pptx:"icon-file_ppt",pdf:"icon-file_pdf",txt:"icon-file_txt",rtf:"icon-file_txt",md:"icon-file_txt"},r={jpg:"icon-file_img",jpeg:"icon-file_img",png:"icon-file_img",gif:"icon-file_img",bmp:"icon-file_img",svg:"icon-file_img",webp:"icon-file_img",ico:"icon-file_img"},o={mp4:"icon-file_video",avi:"icon-file_video",mkv:"icon-file_video",mov:"icon-file_video",wmv:"icon-file_video",flv:"icon-file_video",webm:"icon-file_video",m4v:"icon-file_video",rmvb:"icon-file_video",rm:"icon-file_video"},a={mp3:"icon-file_music",wav:"icon-file_music",flac:"icon-file_music",aac:"icon-file_music",ogg:"icon-file_music",wma:"icon-file_music",m4a:"icon-file_music"},s={zip:"icon-file_zip",rar:"icon-file_zip","7z":"icon-file_zip",tar:"icon-file_zip",gz:"icon-file_zip",bz2:"icon-file_zip"},l={exe:"icon-file_exe",msi:"icon-file_exe",dmg:"icon-file_exe",pkg:"icon-file_exe",deb:"icon-file_exe",rpm:"icon-file_exe"},c={html:"icon-file_html",htm:"icon-file_html",css:"icon-file_code",js:"icon-file_code",ts:"icon-file_code",vue:"icon-file_code",jsx:"icon-file_code",tsx:"icon-file_code",php:"icon-file_code",py:"icon-file_code",java:"icon-file_code",cpp:"icon-file_code",c:"icon-file_code",cs:"icon-file_code",go:"icon-file_code",rs:"icon-file_code",swift:"icon-file_code",kt:"icon-file_code",rb:"icon-file_code",json:"icon-file_code",xml:"icon-file_code",yaml:"icon-file_code",yml:"icon-file_code"},d={ai:"icon-file_ai",psd:"icon-file_psd",sketch:"icon-file_psd",fig:"icon-file_psd",xd:"icon-file_psd"},h={dwg:"icon-file_cad",dxf:"icon-file_cad",step:"icon-file_cad",iges:"icon-file_cad"},p={swf:"icon-file_flash",fla:"icon-file_flash"},m={iso:"icon-file_iso",img:"icon-file_iso",bin:"icon-file_iso"},g={torrent:"icon-file_bt"},y={cloud:"icon-file_cloud",gdoc:"icon-file_cloud",gsheet:"icon-file_cloud",gslides:"icon-file_cloud"};return n[t]?n[t]:r[t]?r[t]:o[t]?o[t]:a[t]?a[t]:s[t]?s[t]:l[t]?l[t]:c[t]?c[t]:d[t]?d[t]:h[t]?h[t]:p[t]?p[t]:m[t]?m[t]:g[t]?g[t]:y[t]?y[t]:"icon-file"}function I6t(e){return e&&e.vod_tag&&e.vod_tag.includes("folder")}function L6t(e){return e&&e.vod_tag&&!e.vod_tag.includes("folder")}const D6t=["onClick"],P6t={class:"video_list_item_img"},R6t={key:1,class:"folder-icon-container"},M6t={key:2,class:"file-icon-container"},O6t={style:{width:"30%"}},$6t=["href"],B6t=["innerHTML"],N6t={class:"video_list_item_title"},F6t={class:"title-text"},j6t={key:0,class:"loading-container"},V6t={key:1,class:"no-more-data"},z6t={key:2,class:"empty-state"},U6t={__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=iA(),l=fe(null),c=fe(null);let d=600;const h=fe(0);let p=0,m=!1,g=null;const y=j(()=>(h.value,{height:d+"px",overflow:"auto"})),S=()=>{m||M||(m=!0,Sn(()=>{try{const X=l.value;if(!X)return;const H=X.querySelector(".arco-scrollbar-container");if(!H)return;p=H.scrollHeight;const q=H.clientHeight,Q=window.innerHeight||document.documentElement.clientHeight||600,ne=Math.max(Q-200,400);if(p<=q&&r.videos&&r.videos.length>0)if(r.hasMore!==!1){const re=Math.min(670,p-10);re>470&&d>re?(d=re,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=ne*.8&&(d=ne,h.value++,console.log("[DEBUG] 恢复容器高度到理想高度:",{contentHeight:p,clientHeight:q,idealHeight:ne,newContainerHeight:d}))}catch(X){console.error("checkContentHeight error:",X)}finally{m=!1}}))},k=()=>{if(!(M||$>=I))try{const X=l.value;if(!X)return;const H=X.querySelector(".arco-scrollbar-container");if(!H)return;const q=H.scrollHeight,Q=H.clientHeight;q<=Q&&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 H=X.querySelector(".arco-scrollbar-container");if(!H)return;const q=H.scrollHeight,Q=H.clientHeight,ne=window.innerHeight||document.documentElement.clientHeight||600,ae=Math.max(ne-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 H={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&&(H.folderState=JSON.stringify(r.folderState)),a.push({name:"VideoDetail",params:{id:X.vod_id},query:H})}},D=async X=>{try{const H=await Kl.executeT4Action(r.module||"default",X,{apiUrl:r.apiUrl,extend:r.extend.ext});H&&H.action?(_.value=H.action,E.value=!0):H?ir(H,"success"):xt.error({content:`无法获取动作配置: ${X}`,duration:3e3,closable:!0})}catch(H){console.error("T4 action执行失败:",H),xt.error({content:`动作执行失败: ${H.message}`,duration:3e3,closable:!0})}},P=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);let M=!1,$=0;const I=P?3:5;setInterval(()=>{$=0},1e3);const N=()=>{if(!(M||$>=I)){$++,M=!0;try{if(!l.value)return;const H=window.innerHeight||document.documentElement.clientHeight||600,q=Math.max(H-200,400);Math.abs(d-q)>50&&(d=q,h.value++)}catch(X){console.error("updateScrollAreaHeight error:",X)}finally{setTimeout(()=>{M=!1},100)}}},F=X=>{const H=X?.target||X?.srcElement,q=H?.closest?H.closest(".arco-scrollbar-container"):H;if(!q)return;const Q=q.scrollHeight-q.clientHeight,ne=q.scrollTop;Q-ne<50&&(o("scroll-bottom"),o("load-more"),setTimeout(()=>{C()},200))},W=()=>{if(!(M||$>=I))try{const X=document.querySelectorAll(".title-text");X&&X.length>0&&X.forEach(H=>{H&&H.scrollWidth&&H.clientWidth&&H.scrollWidth>H.clientWidth&&H.setAttribute("title",H.textContent||"")})}catch(X){console.error("checkTextOverflow error:",X)}};mn(()=>{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 Q=Math.max(window.innerHeight-200,400);Math.abs(d-Q)>50&&(d=Q,h.value++),setTimeout(()=>{S()},1e3)}}catch(Q){console.warn("Initial update failed:",Q)}},P?500:300)}});{let X=null,H=0;const q=()=>{const Q=Date.now();Q-H<1e3||(H=Q,X&&clearTimeout(X),X=setTimeout(()=>{!M&&l.value&&N()},800))};window.addEventListener("resize",q),Ao(()=>{window.removeEventListener("resize",q),X&&clearTimeout(X)})}Ao(()=>{window.removeEventListener("resize",N),g&&clearTimeout(g),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),Rt([()=>r.videos,()=>r.showStats],([X,H])=>{},{deep:!1,flush:"post"});const U=X=>{X&&c.value&&requestAnimationFrame(()=>{const H=c.value?.$el?.querySelector(".arco-scrollbar-container");H&&H.scrollTo({top:X,behavior:"smooth"})})},G=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,Z=()=>{E.value=!1,_.value=null},oe=(X,H)=>{o("special-action",X,H),E.value=!1,_.value=null};return t({checkTextOverflow:W,restoreScrollPosition:U,getCurrentScrollPosition:G,checkContentHeight:S,checkAutoLoadMore:k}),(X,H)=>{const q=De("a-image"),Q=De("a-grid-item"),ne=De("a-grid"),ae=De("a-spin"),re=De("a-scrollbar");return z(),ee("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(re,{onScroll:F,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ke(y.value)},{default:de(()=>[O(ne,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(z(!0),ee(Nt,null,vn(e.videos,Se=>(z(),Ye(Q,{key:Se.vod_id,class:"video_list_hover"},{default:de(()=>[L("div",{class:"video_list_item",onClick:xe=>T(Se)},[L("div",P6t,[Se.vod_pic&&Se.vod_pic.trim()!==""?(z(),Ye(q,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:Se.vod_pic},null,8,["src"])):Se.vod_tag&&Se.vod_tag.includes("folder")?(z(),ee("div",R6t,[...H[0]||(H[0]=[L("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):Se.vod_tag&&!Se.vod_tag.includes("folder")?(z(),ee("div",M6t,[(z(),ee("svg",O6t,[L("use",{href:`#${et(_3e)(Se.vod_name)}`},null,8,$6t)]))])):(z(),Ye(q,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:Se.vod_pic||"/default-poster.svg"},null,8,["src"])),Se.vod_remarks?(z(),ee("div",{key:4,class:"video_remarks_overlay",innerHTML:Se.vod_remarks},null,8,B6t)):Pe("",!0)]),L("div",N6t,[L("span",F6t,Ue(Se.vod_name),1)])],8,D6t)]),_:2},1024))),128))]),_:1}),e.loading?(z(),ee("div",j6t,[O(ae),H[1]||(H[1]=L("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),ee("div",V6t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(z(),ee("div",z6t," 暂无视频数据 ")):Pe("",!0),H[2]||(H[2]=L("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),E.value?(z(),Ye(vS,{key:0,ref_key:"actionRendererRef",ref:x,"action-data":_.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:Z,onSpecialAction:oe},null,8,["action-data","module","extend","api-url"])):Pe("",!0)],512)}}},$4=Sr(U6t,[["__scopeId","data-v-d8bcb43b"]]),H6t={class:"category-modal-content"},W6t=["onClick"],G6t={__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=De("a-modal");return z(),Ye(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[L("div",H6t,[e.hasRecommendVideos?(z(),ee("div",{key:0,class:ue(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Pe("",!0),(z(!0),ee(Nt,null,vn(e.classList.class,c=>(z(),ee("div",{key:c.type_id,class:ue(["category-item",{active:e.activeKey===c.type_id}]),onClick:d=>o(c.type_id)},Ue(c.type_name),11,W6t))),128))])]),_:1},8,["visible"])}}},K6t=Sr(G6t,[["__scopeId","data-v-14f43b3d"]]),q6t={key:0,class:"folder-breadcrumb"},Y6t={class:"breadcrumb-container"},X6t={key:0,class:"current-item"},Z6t=["onClick"],J6t={class:"breadcrumb-actions"},Q6t={__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=De("a-breadcrumb-item"),p=De("a-breadcrumb"),m=De("a-button");return e.breadcrumbs.length>0?(z(),ee("div",q6t,[L("div",Y6t,[O(p,{separator:">"},{default:de(()=>[(z(!0),ee(Nt,null,vn(e.breadcrumbs,(g,y)=>(z(),Ye(h,{key:g.vod_id,class:ue(["breadcrumb-item",{"is-current":y===e.breadcrumbs.length-1}])},{default:de(()=>[y===e.breadcrumbs.length-1?(z(),ee("span",X6t,Ue(g.vod_name),1)):(z(),ee("a",{key:1,onClick:S=>o(g,y),class:"breadcrumb-link"},Ue(g.vod_name),9,Z6t))]),_:2},1032,["class"]))),128))]),_:1})]),L("div",J6t,[O(m,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(et(Al))]),default:de(()=>[d[0]||(d[0]=We(" 返回上级 ",-1))]),_:1},8,["disabled"]),e.breadcrumbs.length>1?(z(),Ye(m,{key:0,size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(et(u3))]),default:de(()=>[d[1]||(d[1]=We(" 返回根目录 ",-1))]),_:1},8,["disabled"])):Pe("",!0),O(m,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:de(()=>[O(et(cs))]),default:de(()=>[d[2]||(d[2]=We(" 退出目录模式 ",-1))]),_:1})])])):Pe("",!0)}}},ekt=Sr(Q6t,[["__scopeId","data-v-670af4b8"]]),tkt={class:"video-list-container"},nkt={class:"content-area"},rkt={key:0,class:"tab-content"},ikt={key:1,class:"tab-content"},okt={key:0,class:"category-loading-container"},skt={key:2,class:"tab-content"},akt={key:0,class:"category-loading-container"},lkt={key:3,class:"tab-content"},ukt={key:0,class:"category-loading-container"},ckt=300,dkt={__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=nS();let l=null;const c=fe(!1);let d="",h=0;const p=(Ne,Ie=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(Xe){console.error("更新统计信息失败:",Xe)}finally{c.value=!1}}},Ie))},m=fe(""),g=qt({}),y=qt({}),S=qt({}),k=qt({}),C=qt({}),x=qt({}),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,Ie=a.currentRoute.value.query.filterVisible;if(Ne)try{const Oe=JSON.parse(Ne);Object.keys(x).forEach(Xe=>{delete x[Xe]}),Object.assign(x,Oe)}catch(Oe){console.error("解析URL中的筛选条件失败:",Oe)}if(Ie)try{const Oe=JSON.parse(Ie);Object.keys(C).forEach(Xe=>{delete C[Xe]}),Object.assign(C,Oe)}catch(Oe){console.error("解析URL中的筛选展开状态失败:",Oe)}},P=qt({}),M=qt({});let $=null;const I=Ne=>{$&&clearTimeout($),$=setTimeout(Ne,ckt)},N=j(()=>r.recommendVideos&&r.recommendVideos.length>0),F=j(()=>r.folderNavigationState?.isActive||!1),W=j(()=>r.folderNavigationState?.breadcrumbs||[]),U=j(()=>r.folderNavigationState?.currentData||[]),G=j(()=>r.folderNavigationState?.currentBreadcrumb||null),Z=j(()=>{const Ne=G.value?.vod_id;return r.folderNavigationState?.loading||M[Ne]||!1}),oe=j(()=>{const Ne=G.value?.vod_id;return P[Ne]?.hasNext||!1}),X=j(()=>ae({isActive:F.value,currentBreadcrumb:G.value,currentData:U.value})),H=()=>r.returnToActiveKey?r.returnToActiveKey:N.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",q=(Ne,Ie,Oe)=>{x[m.value]||(x[m.value]={}),x[m.value][Ne]===Ie?(delete x[m.value][Ne],Object.keys(x[m.value]).length===0&&delete x[m.value]):x[m.value][Ne]=Ie,T(),F.value&&G.value?Wt(G.value):ne(m.value)},Q=Ne=>{delete x[Ne],T(),F.value&&G.value?Wt(G.value):ne(Ne)},ne=Ne=>{delete g[Ne],delete y[Ne],S[Ne]=!1,m.value===Ne&&re(Ne,!0)},ae=(Ne,Ie=null)=>{const Oe=r.classList?.class?.find(Be=>Be.type_id===Ne)?.type_name||"",Xe=y[Ne]?.page||1,ct=g[Ne]?.length||0,Lt=y[Ne]?.total;let ht=`${Oe}:当前第 ${Xe} 页,已加载 ${ct} 条`;if(Lt&&(ht+=` / 共 ${Lt} 条`),Ie&&Ie.isActive&&Ie.currentBreadcrumb){const Be=Ie.currentBreadcrumb.vod_name||"未知目录",wt=Ie.currentData?.length||0;ht+=`,当前目录:${Be},项目数:${wt}`}return ht},re=async(Ne,Ie=!1)=>{if(console.log(Ne,"选中分类id"),k[Ne]&&!Ie){console.log(`分类 ${Ne} 正在加载中,跳过重复请求`);return}if(console.log("listData.hasOwnProperty(key):",g.hasOwnProperty(Ne)),console.log("forceReload:",Ie),console.log("listData keys:",Object.keys(g)),console.log("listData[key]:",g[Ne]),console.log("listData[key] length:",g[Ne]?.length),!g.hasOwnProperty(Ne)||Ie){k[Ne]=!0;try{const Oe=await bs.getCurrentSite();let Xe,ct;if(Ne==="recommendTuijian404")console.log("recommendTuijian404 recommendVideos:",r.recommendVideos),Xe=r.recommendVideos||[],ct={page:1,hasNext:!1};else{const Lt=x[Ne]||{},ht=await Kl.getCategoryVideos(Oe.key,{typeId:Ne,page:1,filters:Lt,extend:Oe.ext,apiUrl:Oe.api});Xe=ht.videos||[],ct=ht.pagination||{page:1,hasNext:!1},Xe.length>100&&(console.log(`检测到大数据集,分类 ${Ne} 包含 ${Xe.length} 条数据`),Xe.length>200&&console.warn(`超大数据集警告:分类 ${Ne} 包含 ${Xe.length} 条数据,可能影响性能`))}if(g[Ne]=[...Xe],y[Ne]=ct,S[Ne]=!1,Ne===m.value){const Lt=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Ne,Lt))}}catch(Oe){console.error("获取视频列表失败:",Oe),g[Ne]=[],y[Ne]={page:1,hasNext:!1},S[Ne]=!1}finally{k[Ne]=!1}}},Se=Ne=>!Ne||Ne.length===0?!0:Ne.some(Ie=>Ie.vod_id==="no_data"),xe=(Ne,Ie)=>{if(!Ie||Ie.length===0)return!0;if(!Ne||Ne.length===0)return!1;const Oe=Ne.slice(-Ie.length).map(ct=>ct.vod_id),Xe=Ie.map(ct=>ct.vod_id);return JSON.stringify(Oe)===JSON.stringify(Xe)},ve=async Ne=>{if(!(S[Ne]||!y[Ne]?.hasNext)){S[Ne]=!0;try{const Ie=await bs.getCurrentSite(),Oe=y[Ne].page+1;let Xe=[],ct={page:Oe,hasNext:!1};if(Ne==="recommendTuijian404")return;{const Lt=x[Ne]||{},ht=await Kl.getCategoryVideos(Ie.key,{typeId:Ne,page:Oe,filters:Lt,extend:Ie.ext,apiUrl:Ie.api});Xe=ht.videos||[],ct=ht.pagination||{page:Oe,hasNext:!1}}if(Se(Xe)||xe(g[Ne],Xe)){console.log("检测到无效数据或重复数据,停止翻页"),y[Ne]={...y[Ne],hasNext:!1};return}if(g[Ne]=[...g[Ne],...Xe],y[Ne]=ct,Ne===m.value){const Lt=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Ne,Lt))}}catch(Ie){console.error("加载更多数据失败:",Ie),y[Ne]={...y[Ne],hasNext:!1}}finally{S[Ne]=!1}}},be=async Ne=>{if(!(M[Ne]||!P[Ne]?.hasNext)){M[Ne]=!0;try{const Ie=P[Ne].page+1,Oe=await H1(r.module,{t:Ne,pg:Ie,extend:ua(r.extend),apiUrl:r.apiUrl});if(Oe&&Oe.list&&Oe.list.length>0){const Xe=Oe.list;if(Se(Xe)||xe(U.value,Xe)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),P[Ne]={...P[Ne],hasNext:!1};return}const ct=[...U.value,...Xe],Lt={isActive:F.value,breadcrumbs:W.value,currentBreadcrumb:G.value,currentData:ct,loading:!1,hasMore:!0};if(P[Ne]={page:Ie,hasNext:Oe.page{F.value&&nn(),m.value=Ne,re(Ne),o("activeKeyChange",Ne)},Je=Ne=>{const{filterKey:Ie,filterValue:Oe,filterName:Xe}=Ne;q(Ie,Oe)},Me=Ne=>{const{categoryId:Ie,visible:Oe}=Ne;C[Ie]=Oe,T()},je=()=>{Q(m.value)},ge=()=>{E.value=!0},_e=Ne=>{m.value=Ne,re(Ne),o("activeKeyChange",Ne);const Ie=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Ne,Ie),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),m.value==="recommendTuijian404"&&(console.log("[VideoList] 当前是推荐分类,强制更新界面"),m.value="recommendTuijian404")},{immediate:!0});let Fe=!1,He="";const Qe=Ne=>!Ne||!Ne.class?"":JSON.stringify(Ne.class.map(Ie=>Ie.type_id||Ie.id||""));Rt(()=>r.classList,(Ne,Ie)=>{if(Fe)return;const Oe=Qe(Ne);if(Oe!==He){console.log("🗂️ [DEBUG] ========== VideoList classList watch 触发 =========="),console.log("🗂️ [DEBUG] oldClassList:",Ie),console.log("🗂️ [DEBUG] newClassList:",Ne),console.log("🗂️ [DEBUG] classList是否发生变化:",Ne!==Ie),console.log("🗂️ [DEBUG] 当前activeKey.value:",m.value),console.log("🗂️ [DEBUG] 当前folderIsActive.value:",F.value),console.log("🗂️ [DEBUG] 当前folderNavigationState:",JSON.stringify(r.folderNavigationState,null,2)),Fe=!0,He=Oe;try{const Xe=a.currentRoute.value.query,ct=Xe.filters||Xe.filterVisible;if(Ne!==Ie&&!ct?(console.log("🗂️ [DEBUG] classList发生变化且URL中无筛选参数,清除筛选状态"),Object.keys(x).forEach(ht=>{delete x[ht]}),Object.keys(C).forEach(ht=>{delete C[ht]}),console.log("🗂️ [DEBUG] 筛选状态已清除")):ct&&console.log("🗂️ [DEBUG] URL中有筛选参数,跳过筛选状态清除"),F.value){console.log("🗂️ [DEBUG] 当前处于folder模式,跳过activeKey重置");return}const Lt=H();m.value!==Lt&&(m.value=Lt,re(Lt),o("activeKeyChange",Lt))}catch(Xe){console.error("classList watch处理失败:",Xe)}finally{Sn(()=>{Fe=!1})}}},{immediate:!0}),Rt(()=>r.folderNavigationState,(Ne,Ie)=>{},{deep:!0,immediate:!0}),Rt(()=>r.sourceRoute?.query?.activeKey,Ne=>{Ne&&Ne!==m.value&&(console.log("[DEBUG] sourceRoute activeKey changed:",Ne,"current:",m.value),m.value=Ne,(!g[Ne]||g[Ne].length===0)&&(console.log("[DEBUG] 重新加载分类数据:",Ne),re(Ne)),o("activeKeyChange",Ne))},{immediate:!0}),mn(async()=>{D();const Ne=r.sourceRoute?.query?.activeKey,Ie=Ne||H();await Sn(),m.value=Ie,await Sn(),D(),Ie==="recommendTuijian404"?(k[Ie]=!1,r.recommendVideos&&r.recommendVideos.length>0?(g[Ie]=[...r.recommendVideos],y[Ie]={page:1,hasNext:!1},S[Ie]=!1):re(m.value)):re(m.value),Ne||o("activeKeyChange",m.value)}),Ao(()=>{l&&clearTimeout(l)}),t({getCurrentState:()=>({activeKey:m.value,currentPage:y[m.value]?.page||1,videos:g[m.value]||[],hasMore:y[m.value]?.hasNext||!1,hasData:g[m.value]&&g[m.value].length>0,scrollPosition:_.value?_.value.getCurrentScrollPosition():0}),restoreState:Ne=>{Ne.activeKey&&Ne.activeKey!==m.value&&(m.value=Ne.activeKey,o("activeKeyChange",Ne.activeKey),(!g[Ne.activeKey]||g[Ne.activeKey].length===0)&&re(Ne.activeKey))},restoreFullState:Ne=>{if(Ne.activeKey){m.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} 没有保存的数据,重新加载`),re(Ne.activeKey)),o("activeKeyChange",Ne.activeKey);const Ie=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Ne.activeKey,Ie),100)}},refreshCurrentCategory:()=>{m.value&&(console.log("刷新当前分类:",m.value),g[m.value]=[],y[m.value]={page:1,hasNext:!0},S[m.value]=!1,re(m.value))},setSpecialCategoryData:(Ne,Ie,Oe)=>{console.log("设置特殊分类数据:",{categoryId:Ne,videosCount:Ie?.length,pagination:Oe}),g[Ne]=Ie||[],y[Ne]={page:Oe?.page||1,hasNext:Oe?.hasNext||!1,total:Oe?.total||0},S[Ne]=!1;const Xe=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Ne,Xe),100)}});const rt=async Ne=>{I(async()=>{await ft(Ne)})},ft=async Ne=>{let Ie=[];try{const Oe=F.value?W.value:[],Xe=Oe.findIndex(wt=>wt.vod_id===Ne.vod_id);Xe>=0?Ie=Oe.slice(0,Xe+1):Ie=[...Oe,{vod_id:Ne.vod_id,vod_name:Ne.vod_name}];const ct={isActive:!0,breadcrumbs:Ie,currentData:[],currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},loading:!0};o("folder-navigate",ct),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",ua(r.extend));const Lt=x[m.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",Lt);const ht={t:Ne.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Lt).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",ht.ext);const Be=await H1(r.module,ht);if(Be&&Be.list&&Be.list.length>0){const wt=Be.list;P[Ne.vod_id]={page:Be.page||1,hasNext:Be.page{const Oe=Ne;if(!Oe||!Oe.vod_id){console.error("handleFolderNavigate: 无效的breadcrumb参数",Oe);return}if(console.log("🗂️ [DEBUG] handleFolderNavigate 接收参数:",{breadcrumb:Oe,index:Ie}),lt){console.log("folder导航正在进行中,跳过重复调用");return}const Xe=Date.now();if(Xe-St<300){console.log("folder导航过于频繁,跳过");return}if(Ct===Oe.vod_id&&Xe-St<1e3){console.log("短时间内相同的folder导航目标,跳过重复处理");return}lt=!0,Ct=Oe.vod_id,St=Xe;try{const ct=W.value,Lt=ct.findIndex(Vt=>Vt.vod_id===Oe.vod_id),ht=Lt>=0?ct.slice(0,Lt+1):ct,Be={isActive:F.value,breadcrumbs:ht,currentBreadcrumb:Oe,currentData:U.value,loading:!0,hasMore:oe.value};o("folder-navigate",Be);const wt=x[m.value]||{},Yt={t:Oe.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(wt).length>0;const Qt=await H1(r.module,Yt);if(Qt&&Qt.list&&Qt.list.length>0){const Vt=Qt.list;if(P[Oe.vod_id]={page:Qt.page||1,hasNext:Qt.page{if(console.log("🗂️ [DEBUG] 返回上一级folder",{parentItem:Ne,parentIndex:Ie}),Ne&&Ne.vod_id){Wt(Ne,Ie);return}const Oe=W.value;if(Oe.length>1){const Xe=Oe.slice(0,-1),ct=Xe[Xe.length-1];Wt(ct)}else Mt()},Mt=async(Ne,Ie)=>{if(console.log("🗂️ [DEBUG] 返回folder根目录",{rootItem:Ne,rootIndex:Ie}),Ne&&Ne.vod_id){Wt(Ne,Ie);return}const Oe=W.value;if(Oe.length>0){const Xe=Oe[0];o("folder-navigate",{isActive:!0,breadcrumbs:[Xe],currentData:[],currentBreadcrumb:Xe,loading:!0});try{const Lt=x[m.value]||{};console.log("🗂️ [DEBUG] 返回根目录,应用筛选条件:",Lt);const ht={t:Xe.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Lt).length>0;const Be=await H1(r.module,ht);if(Be&&Be.list&&Be.list.length>0){const wt=Be.list;P[Xe.vod_id]={page:Be.page||1,hasNext:Be.page{if(o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),m.value&&g[m.value]){const Ie=ae(m.value,null);p(Ie)}},ut=()=>{m.value&&(g[m.value]=[],y[m.value]={page:1,hasNext:!0},S[m.value]=!1,re(m.value))};return(Ne,Ie)=>{const Oe=De("a-spin");return z(),ee("div",tkt,[O(c6t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:N.value,activeKey:m.value,filters:r.classList?.filters||{},selectedFilters:x,filterVisible:C,specialCategoryState:r.specialCategoryState,onTabChange:Ve,onOpenCategoryModal:ge,onToggleFilter:Je,onResetFilters:je,onFilterVisibleChange:Me,onCloseSpecialCategory:Ie[0]||(Ie[0]=()=>o("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","filterVisible","specialCategoryState"]),F.value?(z(),Ye(ekt,{key:0,breadcrumbs:W.value,onNavigate:Wt,onGoBack:Tt,onGoHome:Mt,onExitFolder:nn},null,8,["breadcrumbs"])):Pe("",!0),L("div",nkt,[F.value?(z(),ee("div",rkt,[O($4,{videos:U.value,loading:Z.value,hasMore:oe.value,statsText:X.value,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,folderState:e.folderNavigationState,onLoadMore:Ie[1]||(Ie[1]=Xe=>be(G.value?.vod_id)),onScrollBottom:Ie[2]||(Ie[2]=Xe=>be(G.value?.vod_id)),onRefreshList:ut,onSpecialAction:Ie[3]||(Ie[3]=(Xe,ct)=>o("special-action",Xe,ct)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url","folderState"])])):e.specialCategoryState.isActive?(z(),ee("div",ikt,[k[e.specialCategoryState.categoryData?.type_id]?(z(),ee("div",okt,[O(Oe,{size:24}),Ie[12]||(Ie[12]=L("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ye($4,{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:Ie[4]||(Ie[4]=Xe=>ve(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:Ie[5]||(Ie[5]=Xe=>ve(e.specialCategoryState.categoryData?.type_id)),onRefreshList:ut,onSpecialAction:Ie[6]||(Ie[6]=(Xe,ct)=>o("special-action",Xe,ct)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"]))])):m.value==="recommendTuijian404"?(z(),ee("div",skt,[k[m.value]?(z(),ee("div",akt,[O(Oe,{size:24}),Ie[13]||(Ie[13]=L("div",{class:"loading-text"},"正在加载分类数据...",-1))])):Pe("",!0),k[m.value]?Pe("",!0):(z(),Ye($4,{key:1,videos:g[m.value]||[],loading:S[m.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${g[m.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:ut,onSpecialAction:Ie[7]||(Ie[7]=(Xe,ct)=>o("special-action",Xe,ct))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"]))])):(z(),ee("div",lkt,[k[m.value]?(z(),ee("div",ukt,[O(Oe,{size:24}),Ie[14]||(Ie[14]=L("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ye($4,{key:1,ref_key:"videoGridRef",ref:_,videos:g[m.value]||[],loading:S[m.value]||!1,hasMore:y[m.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Ie[8]||(Ie[8]=Xe=>ve(m.value)),onScrollBottom:Ie[9]||(Ie[9]=Xe=>ve(m.value)),onRefreshList:ut,onSpecialAction:Ie[10]||(Ie[10]=(Xe,ct)=>o("special-action",Xe,ct)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"]))]))]),O(K6t,{visible:E.value,"onUpdate:visible":Ie[11]||(Ie[11]=Xe=>E.value=Xe),classList:e.classList,hasRecommendVideos:N.value,activeKey:m.value,onSelectCategory:_e},null,8,["visible","classList","hasRecommendVideos","activeKey"])])}}},fkt=Sr(dkt,[["__scopeId","data-v-3be42daf"]]),hkt={class:"search-results-container"},pkt={class:"search-header"},vkt={class:"search-info"},mkt={key:0,class:"search-keyword"},gkt={key:1,class:"search-count"},ykt={class:"search-actions"},bkt={key:0,class:"error-container"},_kt={class:"error-text"},Skt={key:1,class:"loading-container"},kkt=["onClick"],xkt={class:"video_list_item_img"},Ckt={key:1,class:"folder-icon-container"},wkt={key:2,class:"file-icon-container"},Ekt={style:{width:"30%"}},Tkt=["href"],Akt=["innerHTML"],Ikt={class:"video_list_item_title"},Lkt={class:"title-text"},Dkt={key:3,class:"empty-state"},Pkt={key:4,class:"loading-container"},Rkt={key:5,class:"no-more-data"},Mkt={__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=nS(),o=NA(),a=iA(),s=e,l=t,c=fe(null),d=fe(null),h=fe(0),p=fe(null),m=fe(!1),g=fe(null),y=P=>{const M=P?.target||P?.srcElement,$=M?.closest?M.closest(".arco-scrollbar-container"):M;if(!$)return;const I=$.scrollHeight-$.clientHeight,N=$.scrollTop;I-N<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{Sn(()=>{setTimeout(()=>{const P=c.value;if(!P)return;const M=P.closest(".content-area")||P.parentElement;let $=M?M.offsetHeight:0;$<=0&&($=Math.max(window.innerHeight-120,500));const I=document.querySelector(".search-header"),N=I?I.offsetHeight:60,F=s.videos?s.videos.length:0,W=P.offsetWidth||Math.max(window.innerWidth-240,800),G=Math.min(Math.floor(W/200),8),Z=328,oe=F>0?Math.ceil(F/Math.max(G,1)):0,X=oe*Z+80;let H=4;const q=$-N;if(F===0)H=Math.min(q*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${H}px`);else if(X{if(!s.keyword)return"";const P=s.videos.length,M=s.currentPage,$=s.hasMore;if(P===0)return`搜索"${s.keyword}":无结果`;let I=`搜索"${s.keyword}":第${M}页,共${P}条`;return $?I+=",可继续加载":I+=",已全部加载",I},C=()=>{const P=k();P&&r.updateStats(P)},x=()=>{Sn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(M=>{const I=M.parentElement.offsetWidth-16;M.scrollWidth>I?M.setAttribute("data-overflow","true"):M.removeAttribute("data-overflow")})},100)})},E=P=>{if(P&&P.vod_id){if(P.vod_tag==="action")try{const M=JSON.parse(P.vod_id);console.log("SearchResults解析action配置:",M),g.value=M,m.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",P.vod_id),xt.info({content:P.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(P.vod_id,P.vod_name),s.keyword){const $=d.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,$),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:$})}n.push({name:"VideoDetail",params:{id:P.vod_id},query:{name:P.vod_name,pic:P.vod_pic,year:P.vod_year,area:P.vod_area,type:P.vod_type,remarks:P.vod_remarks,content:P.vod_content,actor:P.vod_actor,director:P.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:P.vod_pic}})}},_=()=>{r.clearStats(),l("exit-search")};mn(()=>{x(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&Sn(()=>{requestAnimationFrame(()=>{const P=d.value?.$el?.querySelector(".arco-scrollbar-container");P&&(P.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),Ao(()=>{window.removeEventListener("resize",S)}),Rt(()=>s.videos,()=>{S(),x(),C()}),Rt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{C()});const T=()=>{m.value=!1,g.value=null},D=(P,M)=>{switch(console.log("处理专项动作:",P,M),P){case"__self_search__":console.log("执行源内搜索:",M);break;case"detail":console.log("跳转到详情页:",M);break;case"ktv-player":console.log("启动KTV播放:",M);break;case"refresh-list":console.log("刷新列表:",M),l("refresh-list");break;default:console.log("未知的专项动作:",P,M);break}};return(P,M)=>{const $=De("icon-close"),I=De("a-button"),N=De("icon-exclamation-circle"),F=De("a-spin"),W=De("a-image"),U=De("a-grid-item"),G=De("a-grid"),Z=De("icon-search"),oe=De("a-scrollbar");return z(),ee("div",hkt,[L("div",pkt,[L("div",vkt,[e.keyword?(z(),ee("span",mkt," 搜索结果:"+Ue(e.keyword),1)):Pe("",!0),e.videos.length>0?(z(),ee("span",gkt," 共找到 "+Ue(e.videos.length)+" 个结果 ",1)):Pe("",!0)]),L("div",ykt,[O(I,{type:"outline",size:"small",onClick:_},{icon:de(()=>[O($)]),default:de(()=>[M[0]||(M[0]=We(" 清除搜索 ",-1))]),_:1})])]),L("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(oe,{ref_key:"scrollbarRef",ref:d,onScroll:y,class:"search-scroll-container",style:Ke("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(z(),ee("div",bkt,[O(N,{class:"error-icon"}),L("p",_kt,Ue(e.error),1)])):e.loading&&e.videos.length===0?(z(),ee("div",Skt,[O(F,{size:32}),M[1]||(M[1]=L("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(z(),Ye(G,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(z(!0),ee(Nt,null,vn(e.videos,X=>(z(),Ye(U,{key:X.vod_id,class:"video_list_hover"},{default:de(()=>[L("div",{class:"video_list_item",onClick:H=>E(X)},[L("div",xkt,[X.vod_pic&&X.vod_pic.trim()!==""?(z(),Ye(W,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:X.vod_pic},null,8,["src"])):et(I6t)(X)?(z(),ee("div",Ckt,[...M[2]||(M[2]=[L("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):et(L6t)(X)?(z(),ee("div",wkt,[(z(),ee("svg",Ekt,[L("use",{href:`#${et(_3e)(X.vod_name)}`},null,8,Tkt)]))])):(z(),Ye(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(),ee("div",{key:4,class:"video_remarks_overlay",innerHTML:X.vod_remarks},null,8,Akt)):Pe("",!0)]),L("div",Ikt,[L("span",Lkt,Ue(X.vod_name),1)])],8,kkt)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(z(),ee("div",Dkt,[O(Z,{class:"empty-icon"}),M[3]||(M[3]=L("p",{class:"empty-text"},"没有找到相关内容",-1)),M[4]||(M[4]=L("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):Pe("",!0),e.loading&&e.videos.length>0?(z(),ee("div",Pkt,[O(F),M[5]||(M[5]=L("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),ee("div",Rkt," 没有更多数据了 ")):Pe("",!0),M[6]||(M[6]=L("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),m.value?(z(),Ye(vS,{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"])):Pe("",!0)])}}},S3e=Sr(Mkt,[["__scopeId","data-v-7a9e3b4a"]]),mS=Zm("site",()=>{const e=fe(bs.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&bs.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=bs.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}}),Okt={class:"current-time"},$kt={class:"main-container"},Bkt={key:0,class:"global-loading-overlay"},Nkt={class:"global-loading-content"},Fkt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=mS();nS();const r=NA(),o=k5(),a=el(),s=Me=>{const je=Me.getFullYear(),ge=String(Me.getMonth()+1).padStart(2,"0"),_e=String(Me.getDate()).padStart(2,"0"),Fe=String(Me.getHours()).padStart(2,"0"),He=String(Me.getMinutes()).padStart(2,"0"),Qe=String(Me.getSeconds()).padStart(2,"0");return`${je}-${ge}-${_e} ${Fe}:${He}:${Qe}`},l=fe(s(new Date)),c=fe(o.query.activeKey||""),d=fe(null),h=qt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=qt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),m=qt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=l0({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),y=fe(!1),S=qt({activeKey:null,scrollPosition:0,savedAt:null}),k=fe(null),C=async(Me=!1)=>{try{if(bs.getConfigStatus().hasConfigUrl)try{await bs.loadSitesFromConfig(Me)}catch(ge){console.error("从配置地址加载站点数据失败:",ge)}h.sites=bs.getAllSites(),h.sites.length}catch(je){console.error("获取站点配置失败:",je)}},x=()=>{const Me=bs.getCurrentSite();Me?(h.now_site=Me,h.now_site_title=Me.name,n(Me)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,bs.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},E=()=>{if(!h.now_site||!h.now_site.key){const Me=bs.getCurrentSite();if(Me)h.now_site=Me,h.now_site_title=Me.name;else if(h.sites.length>0){const je=h.sites.find(ge=>ge.type===4)||h.sites[0];h.now_site=je,h.now_site_title=je.name,bs.setCurrentSite(je.key)}}else if(!h.sites.some(je=>je.key===h.now_site.key)&&h.sites.length>0){const je=h.sites.find(ge=>ge.type===4)||h.sites[0];h.now_site=je,h.now_site_title=je.name,bs.setCurrentSite(je.key)}h.new_site=h.now_site},_=()=>{k.value=setInterval(()=>{l.value=s(new Date)},1e3)},T=()=>{window.location.reload()},D=Me=>{console.log("收到重载源事件:",Me.detail),T()},P=()=>{},M=()=>{},$=()=>{},I=Me=>h.new_site=Me,N=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,C(!0),E()},F=Me=>{h.now_site=Me,n(Me),h.now_site_title=Me.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(Me)},W=async Me=>{if(!(!Me||!Me.key)){y.value=!0,h.classList={class:[],filters:{}},h.recommendVideos=[];try{const je=h.sites.findIndex(_e=>_e.key===Me.key)===0;console.log("[Video.vue] 开始获取首页数据:",{siteKey:Me.key,siteName:Me.name,extend:Me.ext,apiUrl:Me.api,isFirstSite:je}),je&&(console.log("[Video.vue] 检测到第一个源,清除缓存"),Kl.clearModuleCache(Me.key));const ge=await Kl.getRecommendVideos(Me.key,{extend:Me.ext,apiUrl:Me.api});console.log("[Video.vue] 首页数据获取成功:",{siteKey:Me.key,categoriesCount:ge.categories?.length||0,videosCount:ge.videos?.length||0,hasVideos:!!(ge.videos&&ge.videos.length>0),firstVideo:ge.videos?.[0]}),h.classList={class:ge.categories,filters:ge.filters},h.recommendVideos=ge.videos||[],console.log("[Video.vue] 推荐数据已设置:",{siteKey:Me.key,recommendVideosLength:h.recommendVideos.length,isFirstSite:h.sites.findIndex(_e=>_e.key===Me.key)===0})}catch(je){console.error("获取分类列表失败:",je),h.classList={class:[],filters:{}},h.recommendVideos=[]}finally{y.value=!1}}},U=async Me=>{if(!Me||!Me.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const je=Me.trim();p.searchKeyword=je,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 ge=await Kl.searchVideo(h.now_site.key,{keyword:je,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=ge.videos||[],p.totalPages=ge.pagination?.totalPages||1,p.hasMore=ge.pagination?.hasNext||!1}catch(ge){console.error("搜索失败:",ge),p.searchError=ge.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},G=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const Me=p.currentPage+1;try{const je=await Kl.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:Me,extend:h.now_site.ext,apiUrl:h.now_site.api}),ge=je.videos||[],_e=new Set(p.searchResults.map(He=>He.vod_id)),Fe=ge.filter(He=>!_e.has(He.vod_id)&&He.vod_id!=="no_data"&&He.vod_name!=="no_data");Fe.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...Fe],p.hasMore=je.pagination?.hasNext!==!1),p.currentPage=Me,p.totalPages=je.pagination?.totalPages||p.totalPages}catch(je){console.error("搜索加载更多失败:",je),p.searchError=je.message||"加载失败,请重试"}finally{p.searchLoading=!1}},Z=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},oe=Me=>{c.value=Me;const je={...o.query};Me?je.activeKey=Me:delete je.activeKey,a.replace({name:o.name,params:o.params,query:je}),console.log("[DEBUG] 地址栏activeKey已更新:",Me)},X=Me=>{if(Me&&Me.vod_id){let je="false";p.isSearching?je="true":c.value&&r.saveVideoState(c.value,1,[],!0,!1,window.scrollY);const ge={name:Me.vod_name,pic:Me.vod_pic,year:Me.vod_year,area:Me.vod_area,type:Me.vod_type,remarks:Me.vod_remarks,content:Me.vod_content,actor:Me.vod_actor,director:Me.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:je,sourcePic:Me.vod_pic};g.value?.isActive&&(ge.folderState=JSON.stringify({isActive:g.value.isActive,breadcrumbs:g.value.breadcrumbs,currentBreadcrumb:g.value.currentBreadcrumb})),a.push({name:"VideoDetail",params:{id:Me.vod_id},query:ge})}},H=()=>{p.isSearching||d.value&&d.value.refreshCurrentCategory()},q=async(Me,je)=>{switch(Me){case"__self_search__":await Q(je);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",Me);break}},Q=async Me=>{try{m.isActive||(m.originalClassList=h.classList,m.originalRecommendVideos=h.recommendVideos);const je=Me.tid||Me.type_id||Me.actionData?.tid,ge=Me.name||Me.type_name||`搜索: ${je}`;if(!je){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),xt.error("源内搜索参数不完整:缺少tid");return}const _e=await Kl.getCategoryVideos(h.now_site?.key||t?.key,{typeId:je,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext}),Fe={class:[{type_id:je,type_name:ge}],filters:{}};m.isActive=!0,m.categoryData={type_id:je,type_name:ge,originalData:Me,videos:_e.videos||[],pagination:_e.pagination||{}},h.classList=Fe,h.recommendVideos=[],c.value=je,await Sn(),d.value&&_e.videos&&d.value.setSpecialCategoryData(je,_e.videos,_e.pagination)}catch(je){console.error("处理源内搜索失败:",je),xt.error(`源内搜索失败: ${je.message}`)}},ne=()=>{m.isActive&&(h.classList=m.originalClassList,h.recommendVideos=m.originalRecommendVideos,m.isActive=!1,m.categoryData=null,m.originalClassList=null,m.originalRecommendVideos=null,c.value="recommendTuijian404")};let ae=!1,re=null,Se=null,xe=0;const ve=async Me=>{if(!Me||typeof Me!="object"){console.error("navigationData 无效:",Me);return}if(ae){console.log("folder状态正在更新中,跳过重复调用");return}const je=Date.now();if(je-xe<200){console.log("folder导航更新过于频繁,跳过");return}const ge=JSON.stringify(Me);if(Se===ge){console.log("相同的folder导航数据,跳过重复处理");return}re&&(clearTimeout(re),re=null),ae=!0,Se=ge,xe=je;try{Me.isActive&&!g.value?.isActive&&(S.activeKey=c.value,S.scrollPosition=window.scrollY||0,S.savedAt=Date.now()),!Me.isActive&&g.value?.isActive&&(S.activeKey&&(c.value=S.activeKey),S.scrollPosition&&Sn(()=>{window.scrollTo(0,S.scrollPosition)}),S.activeKey=null,S.scrollPosition=0,S.savedAt=null),await Sn();const _e=He=>{if(He===null||typeof He!="object")return He;if(He instanceof Date)return new Date(He.getTime());if(He instanceof Array)return He.map(Qe=>_e(Qe));if(typeof He=="object"){const Qe={};return Object.keys(He).forEach(rt=>{Qe[rt]=_e(He[rt])}),Qe}return He},Fe={isActive:!!Me.isActive,breadcrumbs:_e(Me.breadcrumbs||[]),currentData:_e(Me.currentData||[]),currentBreadcrumb:_e(Me.currentBreadcrumb||null),loading:!!Me.loading};g.value=Fe}catch(_e){console.error("更新folder状态时出错:",_e)}finally{ae=!1,re=null}},be=()=>{h.visible=!0;const Me=h.sites.filter(je=>je.type===4);h.form_title=`请选择数据源(${Me.length})`,E()},Ve=()=>{y.value=!1},Je=async Me=>{if(!Me||!Me.trim()){xt.error("推送内容不能为空");return}const je=h.sites.find(ge=>ge.key==="push_agent");if(!je){xt.error("没有找到push_agent服务,请检查源配置");return}try{a.push({name:"VideoDetail",params:{id:Me.trim()},query:{name:`推送内容-${Me.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:je.name,tempSiteApi:je.api,tempSiteKey:je.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),xt.success(`正在推送内容: ${Me.trim()}`)}catch(ge){console.error("推送失败:",ge),xt.error("推送失败,请重试")}};return Rt(()=>o.query.activeKey,Me=>{Me&&Me!==c.value&&(console.log("[DEBUG] URL activeKey changed:",Me,"current:",c.value),c.value=Me)},{immediate:!0}),mn(async()=>{await C(),x(),E(),window.addEventListener("reloadSource",D);const Me=o.query._restoreSearch,je=o.query._returnToActiveKey,ge=o.query.folderState;if(Me==="true"){const rt=r.getPageState("search");if(rt&&rt.keyword&&!r.isStateExpired("search")){p.isSearching=!0,p.searchKeyword=rt.keyword,p.searchResults=rt.videos||[],p.currentPage=rt.currentPage||1,p.hasMore=rt.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=rt.scrollPosition||0;const ft={...o.query};delete ft._restoreSearch,a.replace({query:ft}),await W(h.now_site),_();return}}const _e=r.getPageState("video"),Fe=r.isStateExpired("video");let He=!1,Qe=!1;if(je){if(c.value=je,ge)try{const ft=JSON.parse(ge),lt={isActive:ft.isActive,breadcrumbs:ft.breadcrumbs||[],currentBreadcrumb:ft.currentBreadcrumb,currentData:[],loading:!1};if(g.value=lt,ft.currentBreadcrumb&&ft.currentBreadcrumb.vod_id){g.value={...g.value,loading:!0};try{const Ct={t:ft.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext},St=await H1(h.now_site?.key||t?.key,Ct);if(St&&St.list){const Wt={...g.value,currentData:St.list,loading:!1};g.value=Wt}else g.value={...g.value,loading:!1}}catch(Ct){console.error("获取folder数据失败:",Ct),g.value={...g.value,loading:!1}}}Qe=!0}catch(ft){console.error("解析folder状态失败:",ft)}Qe||(He=!0);const rt={...o.query};delete rt._returnToActiveKey,delete rt.folderState,a.replace({query:rt})}else _e&&_e.activeKey&&!Fe&&(c.value=_e.activeKey,He=!0);await W(h.now_site),_(),He&&!Qe&&setTimeout(()=>{d.value&&d.value.restoreFullState({activeKey:c.value,currentPage:_e?.currentPage||1,videos:_e?.videos||[],hasMore:_e?.hasMore||!0,scrollPosition:_e?.scrollPosition||0})},100)}),Ao(()=>{if(k.value&&clearInterval(k.value),window.removeEventListener("reloadSource",D),c.value&&d.value){const Me=d.value.getCurrentState();r.saveVideoState(c.value,Me.currentPage,Me.videos,Me.hasMore,!1,Me.scrollPosition)}}),(Me,je)=>{const ge=De("a-spin"),_e=De("a-button"),Fe=De("a-layout-content");return z(),ee(Nt,null,[O(_4t,{onHandleOpenForm:be,onRefreshPage:T,onMinimize:P,onMaximize:M,onCloseWindow:$,onOnSearch:U,onHandlePush:Je,now_site_title:h.now_site_title},{default:de(()=>[L("div",Okt,[L("span",null,Ue(l.value),1)])]),_:1},8,["now_site_title"]),L("div",$kt,[y.value?(z(),ee("div",Bkt,[L("div",Nkt,[O(ge,{size:32}),je[2]||(je[2]=L("div",{class:"loading-text"},"正在切换数据源...",-1)),O(_e,{type:"outline",size:"small",onClick:Ve,class:"close-loading-btn"},{default:de(()=>[...je[1]||(je[1]=[We(" 手动关闭 ",-1)])]),_:1})])])):Pe("",!0),O(Fe,{class:"content"},{default:de(()=>[p.isSearching?(z(),Ye(S3e,{key:0,keyword:p.searchKeyword,videos:p.searchResults,loading:p.searchLoading,error:p.searchError,currentPage:p.currentPage,totalPages:p.totalPages,hasMore:p.hasMore,scrollPosition:p.scrollPosition,sourceRoute:{name:et(o).name,params:et(o).params,query:et(o).query},module:h.now_site?.key||et(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,onLoadMore:G,onExitSearch:Z,onVideoClick:X,onRefreshList:H},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(z(),Ye(fkt,{key:1,ref_key:"videoListRef",ref:d,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:et(o).name,params:et(o).params,query:{...et(o).query,activeKey:c.value,folderState:g.value.value?.isActive?JSON.stringify({isActive:g.value.value.isActive,breadcrumbs:g.value.value.breadcrumbs,currentBreadcrumb:g.value.value.currentBreadcrumb}):void 0}},returnToActiveKey:et(o).query._returnToActiveKey,module:h.now_site?.key||et(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,specialCategoryState:m,folderNavigationState:g.value,onActiveKeyChange:oe,onSpecialAction:q,onCloseSpecialCategory:ne,onFolderNavigate:ve},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),O(l4t,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":je[0]||(je[0]=He=>h.visible=He),onConfirmClear:N,onConfirmChange:F,onChangeRule:I},null,8,["visible","title","sites","currentSiteKey"])],64)}}},jkt=Sr(Fkt,[["__scopeId","data-v-5f75d03d"]]),k3e=async(e,t={})=>{const{snifferUrl:n="http://localhost:57573/sniffer",timeout:r=10,mode:o="0",is_pc:a="0"}=t;if(!e)throw new Error("URL或解析数据参数不能为空");if(!n)throw new Error("嗅探器接口地址不能为空");try{let s;if(typeof e=="object"&&e.parse===1){const{url:p,js:m,parse_extra:g}=e;if(!p)throw new Error("T4解析数据中缺少URL");const y=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",y),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:y,mode:o,is_pc:a,timeout:(r*1e3).toString()});m&&S.set("script",m),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),m=new URLSearchParams({url:p,mode:o,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${m.toString()}`}console.log("嗅探请求URL:",s);const l=new AbortController,c=setTimeout(()=>l.abort(),r*1e3+5e3),d=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!d.ok)throw new Error(`嗅探请求失败: ${d.status} ${d.statusText}`);const h=await d.json();if(console.log("嗅探响应结果:",h),h.code!==200)throw new Error(h.msg||"嗅探失败");return{success:!0,data:h.data,message:h.msg||"嗅探成功",timestamp:h.timestamp}}catch(s){throw console.error("嗅探请求失败:",s),s.name==="AbortError"?new Error(`嗅探超时(${r}秒)`):s.message.includes("Failed to fetch")?new Error("无法连接到嗅探器服务,请检查嗅探器是否正常运行"):s}},mG=()=>{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}},ET=()=>{const e=mG();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},x3e=async(e,t={})=>{const n=mG();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await k3e(e,r)},Vkt=Object.freeze(Object.defineProperty({__proto__:null,getSnifferConfig:mG,isSnifferEnabled:ET,sniffVideo:k3e,sniffVideoWithConfig:x3e},Symbol.toStringTag,{value:"Module"}));class Rle{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:v0.TIMEOUT},h=await uo(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 uo({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:v0.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=Zm("favorite",()=>{const e=fe([]),t=()=>{try{const m=localStorage.getItem("drplayer-favorites");m&&(e.value=JSON.parse(m))}catch(m){console.error("加载收藏数据失败:",m),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(m){console.error("保存收藏数据失败:",m)}},r=m=>{const g={id:m.vod_id,name:m.vod_name,pic:m.vod_pic,year:m.vod_year,area:m.vod_area,type_name:m.type_name,remarks:m.vod_remarks,director:m.vod_director,actor:m.vod_actor,api_info:{module:m.module||"",api_url:m.api_url||"",site_name:m.site_name||"",ext:m.ext||null},created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url)===-1?(e.value.unshift(g),n(),!0):!1},o=(m,g)=>{const y=e.value.findIndex(S=>S.id===m&&S.api_info.api_url===g);return y!==-1?(e.value.splice(y,1),n(),!0):!1},a=(m,g)=>e.value.some(y=>y.id===m&&y.api_info.api_url===g),s=(m,g)=>e.value.find(y=>y.id===m&&y.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const m={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(m,null,2)],{type:"application/json"}),y=URL.createObjectURL(g),S=document.createElement("a");S.href=y,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(y)},d=m=>new Promise((g,y)=>{const S=new FileReader;S.onload=k=>{try{const C=JSON.parse(k.target.result);if(!C.favorites||!Array.isArray(C.favorites))throw new Error("无效的收藏数据格式");let x=0;C.favorites.forEach(E=>{e.value.some(T=>T.id===E.id&&T.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),x++)}),n(),g(x)}catch(C){y(C)}},S.onerror=()=>{y(new Error("文件读取失败"))},S.readAsText(m)}),h=j(()=>e.value.length),p=j(()=>{const m={};return e.value.forEach(g=>{const y=g.api_info?.site_name||"";let S="影视";y.includes("[书]")?S="小说":y.includes("[画]")?S="漫画":y.includes("[密]")?S="密":y.includes("[听]")?S="音频":y.includes("[儿]")&&(S="少儿"),m[S]||(m[S]=[]),m[S].push(g)}),m});return t(),{favorites:e,favoriteCount:h,favoritesByType:p,addFavorite:r,removeFavorite:o,isFavorited:a,getFavorite:s,clearFavorites:l,exportFavorites:c,importFavorites:d,loadFavorites:t,saveFavorites:n}}),gG=Zm("history",()=>{const e=fe([]),t=j(()=>e.value.length),n=j(()=>[...e.value].sort((g,y)=>new Date(y.updated_at)-new Date(g.updated_at))),r=j(()=>{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}}}),yG=Zm("parser",()=>{const e=fe([]),t=fe(!1),n=fe(null),r=j(()=>e.value.filter(_=>_.enabled!==!1)),o=j(()=>e.value.filter(_=>_.enabled===!1)),a=j(()=>e.value.length),s=async _=>{t.value=!0,n.value=null;try{const T=await fetch(_);if(!T.ok)throw new Error(`HTTP ${T.status}: ${T.statusText}`);const D=await T.json();if(D.parses&&Array.isArray(D.parses))return e.value=D.parses.map((P,M)=>({...P,id:P.id||`parser_${Date.now()}_${M}`,enabled:P.enabled!==!1,order:M})),c(),!0;throw new Error("配置数据格式错误:缺少parses字段")}catch(T){return n.value=T.message,console.error("加载解析配置失败:",T),!1}finally{t.value=!1}},l=()=>{try{const _=localStorage.getItem("drplayer_parsers");if(_){const T=JSON.parse(_);if(Array.isArray(T))return e.value=T,!0}}catch(_){console.error("从本地存储加载解析配置失败:",_)}return!1},c=()=>{try{localStorage.setItem("drplayer_parsers",JSON.stringify(e.value))}catch(_){console.error("保存解析配置到本地存储失败:",_)}},d=_=>{const T={..._,id:`parser_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,enabled:!0,order:e.value.length};return e.value.push(T),c(),T},h=(_,T)=>{const D=e.value.findIndex(P=>P.id===_);return D!==-1?(e.value[D]={...e.value[D],...T},c(),!0):!1},p=_=>{const T=e.value.findIndex(D=>D.id===_);return T!==-1?(e.value.splice(T,1),c(),!0):!1},m=_=>{const T=e.value.find(D=>D.id===_);return T?(T.enabled=!T.enabled,c(),T.enabled):!1},g=_=>{e.value=_.map((T,D)=>({...T,order:D})),c()},y=_=>{const T=[...e.value];T.forEach(D=>{_.has(D.id)&&(D.order=_.get(D.id))}),T.sort((D,P)=>D.order-P.order),T.forEach((D,P)=>{D.order=P}),e.value=T,c()},S=async(_,T)=>{try{const D=_.url.replace(/\{url\}/g,encodeURIComponent(T)),P=await fetch(D,{method:"GET",headers:_.header||{},timeout:1e4});if(!P.ok)throw new Error(`HTTP ${P.status}: ${P.statusText}`);const M=await P.text(),$=/https?:\/\/[^\s]+\.(mp4|m3u8|flv)/i.test(M);return{success:!0,hasVideoUrl:$,response:M,message:$?"解析成功,检测到视频链接":"解析完成,但未检测到视频链接"}}catch(D){return{success:!1,error:D.message,message:`解析失败: ${D.message}`}}},k=()=>{const _={parses:e.value.map(M=>({name:M.name,url:M.url,type:M.type,ext:M.ext,header:M.header})),exportTime:new Date().toISOString(),version:"1.0"},T=new Blob([JSON.stringify(_,null,2)],{type:"application/json"}),D=URL.createObjectURL(T),P=document.createElement("a");P.href=D,P.download=`drplayer_parsers_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(D)},C=async _=>{try{const T=await _.text(),D=JSON.parse(T);if(D.parses&&Array.isArray(D.parses)){const P=D.parses.map((M,$)=>({...M,id:`imported_${Date.now()}_${$}`,enabled:!0,order:e.value.length+$}));return e.value.push(...P),c(),{success:!0,count:P.length}}else throw new Error("导入文件格式错误:缺少parses字段")}catch(T){return{success:!1,error:T.message}}},x=()=>{e.value=[],c()};return l(),{parsers:e,loading:t,error:n,enabledParsers:r,disabledParsers:o,parserCount:a,loadParsers:()=>{l()},loadParsersFromConfig:s,loadFromLocalStorage:l,saveToLocalStorage:c,addParser:d,updateParser:h,deleteParser:p,toggleParser:m,reorderParsers:g,reorderParsersById:y,testParser:S,exportParsers:k,importParsers:C,clearAllParsers:x}}),Nn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},zkt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=Ukt},Ukt=Number.MAX_SAFE_INTEGER||9007199254740991;let lr=(function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e})({}),Ut=(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})({}),Te=(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 _i={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Qn={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class _1{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 Hkt{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 _1(t),this.fast_=new _1(n),this.defaultTTFB_=o,this.ttfb_=new _1(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new _1(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new _1(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new _1(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 Wkt(e,t,n){return(t=Kkt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Yp}function Ole(e,t,n){return t[e]?t[e].bind(t):Ykt(e,n)}const $z=Oz();function Xkt(e,t,n){const r=Oz();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Ole(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return Oz()}o.forEach(a=>{$z[a]=Ole(a,e)})}else go($z,r);return r}const ho=$z;function I0(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Zkt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function C3e(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(!Nn(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 ext extends E3e{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 T3e(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||T3e(n,t)}}function txt(e,t){const n=T3e(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Ble=Math.pow(2,32)-1,nxt=[].push,A3e={video:1,audio:2,id3:3,text:4};function aa(e){return String.fromCharCode.apply(null,e)}function I3e(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function $r(e,t){const n=L3e(e,t);return n<0?4294967296+n:n}function Nle(e,t){let n=$r(e,t);return n*=Math.pow(2,32),n+=$r(e,t+4),n}function L3e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function rxt(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 hi(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=hi(e.subarray(o+8,l),t.slice(1));c.length&&nxt.apply(n,c)}o=l}return n}function ixt(e){const t=[],n=e[0];let r=8;const o=$r(e,r);r+=4;let a=0,s=0;n===0?(a=$r(e,r),s=$r(e,r+4),r+=8):(a=Nle(e,r),s=Nle(e,r+8),r+=16),r+=2;let l=e.length+s;const c=I3e(e,r);r+=2;for(let d=0;d>>31===1)return ho.warn("SIDX has hierarchical references (not supported)"),null;const y=$r(e,h);h+=4,t.push({referenceSize:m,subsegmentDuration:y,info:{duration:y/o,start:l,end:l+m-1}}),l+=m,h+=4,r=h}return{earliestPresentationTime:a,timescale:o,version:n,referencesCount:c,references:t}}function D3e(e){const t=[],n=hi(e,["moov","trak"]);for(let o=0;o{const a=$r(o,4),s=t[a];s&&(s.default={duration:$r(o,12),flags:$r(o,20)})}),t}function oxt(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=hi(t,[r])[0].subarray(r==="enca"?28:78);hi(d,["sinf"]).forEach(p=>{const m=hi(p,["schm"])[0];if(m){const g=aa(m.subarray(4,8));if(g==="cbcs"||g==="cenc"){const y=hi(p,["frma"])[0];y&&(o=aa(y))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=hi(n,["avcC"])[0];c&&c.length>3&&(o+="."+hC(c[1])+hC(c[2])+hC(c[3]),a=fC(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=hi(t,[r])[0],d=hi(c.subarray(28),["esds"])[0];if(d&&d.length>7){let h=4;if(d[h++]!==3)break;h=RF(d,h),h+=2;const p=d[h++];if(p&128&&(h+=2),p&64&&(h+=d[h++]),d[h++]!==4)break;h=RF(d,h);const m=d[h++];if(m===64)o+="."+hC(m);else break;if(h+=12,d[h++]!==5)break;h=RF(d,h);const g=d[h++];let y=(g&248)>>3;y===31&&(y+=1+((g&7)<<3)+((d[h]&224)>>5)),o+="."+y}break}case"hvc1":case"hev1":{const c=hi(n,["hvcC"])[0];if(c&&c.length>12){const d=c[1],h=["","A","B","C"][d>>6],p=d&31,m=$r(c,2),g=(d&32)>>5?"H":"L",y=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+sxt(m).toString(16).toUpperCase(),o+="."+g+y;let k="";for(let C=S.length;C--;){const x=S[C];(x||k)&&(k="."+x.toString(16).toUpperCase()+k)}o+=k}a=fC(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=fC(o,n)||o;break}case"vp09":{const c=hi(n,["vpcC"])[0];if(c&&c.length>6){const d=c[4],h=c[5],p=c[6]>>4&15;o+="."+rf(d)+"."+rf(h)+"."+rf(p)}break}case"av01":{const c=hi(n,["av1C"])[0];if(c&&c.length>2){const d=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",m=(c[2]&64)>>6,g=(c[2]&32)>>5,y=d===2&&m?g?12:10:m?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,x=c[2]&3;o+="."+d+"."+rf(h)+p+"."+rf(y)+"."+S+"."+k+C+x+"."+rf(1)+"."+rf(1)+"."+rf(1)+"."+0,a=fC("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function fC(e,t){const n=hi(t,["dvvC"]),r=n.length?n[0]:hi(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+rf(o)+"."+rf(a)}}function sxt(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)||(ho.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${zl(a)} -> ${zl(n)}`),r.set(n,8))})}function lxt(e){const t=[];return P3e(e,n=>t.push(n.subarray(8,24))),t}function P3e(e,t){hi(e,["moov","trak"]).forEach(r=>{const o=hi(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=hi(a,["enca"]);const l=s.length>0;l||(s=hi(a,["encv"])),s.forEach(c=>{const d=l?c.subarray(28):c.subarray(78);hi(d,["sinf"]).forEach(p=>{const m=R3e(p);m&&t(m,l)})})})}function R3e(e){const t=hi(e,["schm"])[0];if(t){const n=aa(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=hi(e,["schi","tenc"])[0];if(r)return r}}}function uxt(e,t,n){const r={},o=hi(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=hi(e,["sidx"]);for(let c=0;cp+m.info.duration||0,0);s=Math.max(s,h+d.earliestPresentationTime/d.timescale)}}s&&Nn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function cxt(e){const t={valid:null,remainder:null},n=hi(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 Jc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Fle(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return hi(r,["moof"]).map(c=>{const d=c.byteOffset-8;hi(c,["traf"]).map(p=>{const m=hi(p,["tfdt"]).map(g=>{const y=g[0];let S=$r(g,4);return y===1&&(S*=Math.pow(2,32),S+=$r(g,8)),S/o})[0];return m!==void 0&&(e=m),hi(p,["tfhd"]).map(g=>{const y=$r(g,4),S=$r(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,x=(S&8)!==0;let E=0;const _=(S&16)!==0;let T=0;const D=(S&32)!==0;let P=8;y===a&&(k&&(P+=8),C&&(P+=4),x&&(E=$r(g,P),P+=4),_&&(T=$r(g,P),P+=4),D&&(P+=4),t.type==="video"&&(s=XA(t.codec)),hi(p,["trun"]).map(M=>{const $=M[0],I=$r(M,0)&16777215,N=(I&1)!==0;let F=0;const W=(I&4)!==0,U=(I&256)!==0;let G=0;const Z=(I&512)!==0;let oe=0;const X=(I&1024)!==0,H=(I&2048)!==0;let q=0;const Q=$r(M,4);let ne=8;N&&(F=$r(M,ne),ne+=4),W&&(ne+=4);let ae=F+d;for(let re=0;re>1&63;return n===39||n===40}else return(t&31)===6}function SG(e,t,n,r){const o=M3e(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){ho.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const m=I3e(o,h);if(h+=2,m===49){const g=$r(o,h);if(h+=4,g===1195456820){const y=o[h++];if(y===3){const S=o[h++],k=31&S,C=64&S,x=C?2+k*3:0,E=new Uint8Array(x);if(C){E[0]=S;for(let _=1;_16){const p=[];for(let y=0;y<16;y++){const S=o[h++].toString(16);p.push(S.length==1?"0"+S:S),(y===3||y===5||y===7||y===9)&&p.push("-")}const m=l-16,g=new Uint8Array(m);for(let y=0;y>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(e,4),o=0,r=8;o0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),hxt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function vxt(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32>>24;if(a!==0&&a!==1)return{offset:n,size:t};const s=e.buffer,l=zl(new Uint8Array(s,n+12,16));let c=null,d=null,h=0;if(a===0)h=28;else{const m=e.getUint32(28);if(!m||r<32+m*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),zy={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 kG(e,t){const n=zy[t];return!!n&&!!n[e.slice(0,4)]}function __(e,t,n=!0){return!e.split(",").some(r=>!xG(r,t,n))}function xG(e,t,n=!0){var r;const o=I0(n);return(r=o?.isTypeSupported(S_(e,t)))!=null?r:!1}function S_(e,t){return`${t}/mp4;codecs=${e}`}function jle(e){if(e){const t=e.substring(0,4);return zy.video[t]}return 2}function TT(e){const t=O3e();return e.split(",").reduce((n,r)=>{const a=t&&XA(r)?9:zy.video[r];return a?(a*2+n)/(n?3:2):(zy.audio[r]+n)/(n?2:1)},0)}const MF={};function gxt(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;ogxt(n.toLowerCase(),t))}function bxt(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)&&(Vle(e,"audio")||Vle(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 Vle(e,t){return kG(e,t)&&xG(e,t)}function _xt(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 Sxt(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 zle(e){const t=I0(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Bz(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const kxt={supported:!0,powerEfficient:!0,smooth:!0},xxt={supported:!1,smooth:!1,powerEfficient:!1},$3e={supported:!0,configurations:[],decodingInfoResults:[kxt]};function B3e(e,t){return{supported:!1,configurations:t,decodingInfoResults:[xxt],error:e}}function Cxt(e,t,n,r,o,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,d=a?.channels,h=d?parseInt(d):c?1/0:2;let p=null;if(l!=null&&l.length)try{l.length===1&&l[0]?p=t.groups[l[0]].channels:p=l.reduce((m,g)=>{if(g){const y=t.groups[g];if(!y)throw new Error(`Audio track group ${g} not found`);Object.keys(y.channels).forEach(S=>{m[S]=(m[S]||0)+y.channels[S]})}return m},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(m=>XA(m))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(o,8e6))||!!p&&Nn(h)&&Object.keys(p).some(m=>parseInt(m)>h)}function N3e(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve($3e);const a=[],s=wxt(e),l=s.length,c=Ext(e,t,l>0),d=c.length;for(let h=l||1*d||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),d){p.audio=c[h%d];const m=p.audio.bitrate;p.video&&m&&(p.video.bitrate-=m)}a.push(p)}if(o){const h=navigator.userAgent;if(o.split(",").some(p=>XA(p))&&O3e())return Promise.resolve(B3e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=Axt(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 wxt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=F3e(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:S_(Sxt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function Ext(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=F3e(e);return o&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const d=l?(c=t.groups[l])==null?void 0:c.tracks:null;return d?d.reduce((h,p)=>{if(p.groupId===l){const m=parseFloat(p.channels||"");o.forEach(g=>{const y={contentType:S_(g,"audio"),bitrate:n?Txt(g,a):a};m&&(y.channels=""+m),h.push(y)})}return h},s):s},[]):[]}function Txt(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 F3e(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function Axt(e){let t="";const{audio:n,video:r}=e;if(r){const o=Bz(r.contentType);t+=`${o}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){const o=Bz(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const Nz=["NONE","TYPE-0","TYPE-1",null];function Ixt(e){return Nz.indexOf(e)>-1}const IT=["SDR","PQ","HLG"];function Lxt(e){return!!e&&IT.indexOf(e)>-1}var ZE={No:"",Yes:"YES",v2:"v2"};function Ule(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 Wle(this._audioGroups,t)}hasSubtitleGroup(t){return Wle(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 Wle(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function Dxt(){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 Pxt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||IT.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&Dxt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const Rxt=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}},wo=(e,t)=>JSON.stringify(e,Rxt(t));function Mxt(e,t,n,r,o){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=o?.videoCodec,d=s&&parseInt(s)===2;let h=!1,p=!1,m=1/0,g=1/0,y=1/0,S=1/0,k=0,C=[];const{preferHDR:x,allowedVideoRanges:E}=Pxt(t,o);for(let M=a.length;M--;){const $=e[a[M]];h||(h=$.channels[2]>0),m=Math.min(m,$.minHeight),g=Math.min(g,$.minFramerate),y=Math.min(y,$.minBitrate),E.filter(N=>$.videoRanges[N]>0).length>0&&(p=!0)}m=Nn(m)?m:0,g=Nn(g)?g:0;const _=Math.max(1080,m),T=Math.max(30,g);y=Nn(y)?y:n,n=Math.max(y,n),p||(t=void 0);const D=a.length>1;return{codecSet:a.reduce((M,$)=>{const I=e[$];if($===M)return M;if(C=p?E.filter(N=>I.videoRanges[N]>0):[],D){if(I.minBitrate>n)return Qd($,`min bitrate of ${I.minBitrate} > current estimate of ${n}`),M;if(!I.hasDefaultAudio)return Qd($,"no renditions with default or auto-select sound found"),M;if(l&&$.indexOf(l.substring(0,4))%5!==0)return Qd($,`audio codec preference "${l}" not found`),M;if(s&&!d){if(!I.channels[s])return Qd($,`no renditions with ${s} channel sound found (channels options: ${Object.keys(I.channels)})`),M}else if((!l||d)&&h&&I.channels[2]===0)return Qd($,"no renditions with stereo sound found"),M;if(I.minHeight>_)return Qd($,`min resolution of ${I.minHeight} > maximum of ${_}`),M;if(I.minFramerate>T)return Qd($,`min framerate of ${I.minFramerate} > maximum of ${T}`),M;if(!C.some(N=>I.videoRanges[N]>0))return Qd($,`no variants with VIDEO-RANGE of ${wo(C)} found`),M;if(c&&$.indexOf(c.substring(0,4))%5!==0)return Qd($,`video codec preference "${c}" not found`),M;if(I.maxScore=TT(M)||I.fragmentError>e[M].fragmentError)?M:(S=I.minIndex,k=I.maxScore,$)},void 0),videoRanges:C,preferHDR:x,minFramerate:g,minBitrate:y,minIndex:S}}function Qd(e,t){ho.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function j3e(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 Oxt(e,t,n,r){return e.slice(n,r+1).reduce((o,a,s)=>{if(!a.codecSet)return o;const l=a.audioGroups;let c=o[a.codecSet];c||(o[a.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,a.bitrate);const d=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,d),c.minFramerate=Math.min(c.minFramerate,a.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,a.score),c.fragmentError+=a.fragmentError,c.videoRanges[a.videoRange]=(c.videoRanges[a.videoRange]||0)+1,l&&l.forEach(h=>{if(!h)return;const p=t.groups[h];p&&(c.hasDefaultAudio=c.hasDefaultAudio||t.hasDefaultAudio?p.hasDefault:p.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(p.channels).forEach(m=>{c.channels[m]=(c.channels[m]||0)+p.channels[m]}))}),o},{})}function Gle(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:o,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:o,audioCodec:a}}function pf(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;rr.indexOf(o)===-1)}function Vv(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 Nxt(e,t,n,r,o){const a=t[r],l=t.reduce((m,g,y)=>{const S=g.uri;return(m[S]||(m[S]=[])).push(y),m},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,d=a.frameRate,h=a.codecSet.substring(0,4),p=Kle(t,r,m=>{if(m.videoRange!==c||m.frameRate!==d||m.codecSet.substring(0,4)!==h)return!1;const g=m.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return pf(e,y,o)>-1});return p>-1?p:Kle(t,r,m=>{const g=m.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return pf(e,y,o)>-1})}function Kle(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r{var r;const{fragCurrent:o,partCurrent:a,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!o||!c)return;const d=performance.now(),h=a?a.stats:o.stats,p=a?a.duration:o.duration,m=d-h.loading.start,g=s.minAutoLevel,y=o.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||y<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==y,C=!!n||k;if(!C&&(c.paused||!c.playbackRate||!c.readyState))return;const x=s.mainForwardBufferInfo;if(!C&&x===null)return;const E=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(m<=Math.max(E,1e3*(p/(_*2))))return;const T=x?x.len/_:0,D=h.loading.first?h.loading.first-h.loading.start:-1,P=h.loaded&&D>-1,M=this.getBwEstimate(),$=s.levels,I=$[y],N=Math.max(h.loaded,Math.round(p*(o.bitrate||I.averageBitrate)/8));let F=P?m-D:m;F<1&&P&&(F=Math.min(m,h.loaded*8/M));const W=P?h.loaded*1e3/F:0,U=E/1e3,G=W?(N-h.loaded)/W:N*8/M+U;if(G<=T)return;const Z=W?W*8:M,oe=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,X=this.hls.config.abrBandWidthUpFactor;let H=Number.POSITIVE_INFINITY,q;for(q=y-1;q>g;q--){const re=$[q].maxBitrate,Se=!$[q].details||oe;if(H=this.getTimeToLoadFrag(U,Z,p*re,Se),H=G||H>p*10)return;P?this.bwEstimator.sample(m-Math.min(E,D),h.loaded):this.bwEstimator.sampleTTFB(m);const Q=$[q].maxBitrate;this.getBwEstimate()*X>Q&&this.resetEstimator(Q);const ne=this.findBestLevel(Q,g,q,0,T,1,1);ne>-1&&(q=ne),this.warn(`Fragment ${o.sn}${a?" part "+a.index:""} of level ${y} is loading too slowly; Fragment duration: ${o.duration.toFixed(3)} Time to underbuffer: ${T.toFixed(3)} s Estimated load time for current fragment: ${G.toFixed(3)} s Estimated load time for down switch fragment: ${H.toFixed(3)} s TTFB estimate: ${D|0} ms Current BW estimate: ${Nn(M)?M|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${q} @ ${Q|0} bps`),s.nextLoadLevel=s.nextAutoLevel=q,this.clearTimer();const ae=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===q&&q>0){const re=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${q>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${re.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,q>g){let Se=this.findBestLevel(this.hls.levels[g].bitrate,g,q,0,re,1,1);Se===-1&&(Se=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Se,this.resetEstimator(this.hls.levels[Se].bitrate)}}};k||G>H*2?ae():this.timer=self.setInterval(ae,H*1e3),s.trigger(Te.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 Hkt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.FRAG_LOADING,this.onFragLoading,this),t.on(Te.FRAG_LOADED,this.onFragLoaded,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.FRAG_LOADING,this.onFragLoading,this),t.off(Te.FRAG_LOADED,this.onFragLoaded,this),t.off(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Te.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 Ut.BUFFER_ADD_CODEC_ERROR:case Ut.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Ut.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;Nn(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===Qn.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(Te.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!==Qn.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),o=this.hls.config.maxStarvationDelay,a=this.findBestLevel(r,n,t,0,o,1,1);if(a>-1)return a;const s=this.hls.firstLevel,l=Math.min(Math.max(s,n),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),o=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!o||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const a=r&&o?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const s=this.hls.levels;if(s.length>Math.max(t,a)&&s[t].loadError<=s[a].loadError)return t}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:o,config:a,minAutoLevel:s}=r,l=n?n.duration:t?t.duration:0,c=this.getBwEstimate(),d=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(d){const k=this.findBestLevel(c,s,o,d,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let m=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!d){const k=this.bitrateTestDelay;k&&(m=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-k,this.info(`bitrate test took ${Math.round(1e3*k)}ms, set first fragment max fetchDuration to ${Math.round(1e3*m)} ms`),h=p=1)}const g=this.findBestLevel(c,s,o,d,m,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${d?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const y=r.levels[s],S=r.loadLevelObj;return S&&y?.bitrate=n;Z--){var G;const oe=y[Z],X=Z>p;if(!oe)continue;if(C.useMediaCapabilities&&!oe.supportedResult&&!oe.supportedPromise){const Se=navigator.mediaCapabilities;typeof Se?.decodingInfo=="function"&&Cxt(oe,I,D,P,t,M)?(oe.supportedPromise=N3e(oe,I,Se,this.supportedCache),oe.supportedPromise.then(xe=>{if(!this.hls)return;oe.supportedResult=xe;const ve=this.hls.levels,be=ve.indexOf(oe);xe.error?this.warn(`MediaCapabilities decodingInfo error: "${xe.error}" for level ${be} ${wo(xe)}`):xe.supported?xe.decodingInfoResults.some(Ve=>Ve.smooth===!1||Ve.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${be} not smooth or powerEfficient: ${wo(xe)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${be} ${wo(xe)}`),be>-1&&ve.length>1&&(this.log(`Removing unsupported level ${be}`),this.hls.removeLevel(be),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(xe=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${xe}`)})):oe.supportedResult=$3e}if((T&&oe.codecSet!==T||D&&oe.videoRange!==D||X&&P>oe.frameRate||!X&&P>0&&PSe.smooth===!1))&&(!_||Z!==N)){U.push(Z);continue}const H=oe.details,q=(g?H?.partTarget:H?.averagetargetduration)||F;let Q;X?Q=l*t:Q=s*t;const ne=F&&o>=F*2&&a===0?oe.averageBitrate:oe.maxBitrate,ae=this.getTimeToLoadFrag(W,Q,ne*q,H===void 0);if(Q>=ne&&(Z===h||oe.loadError===0&&oe.fragmentError===0)&&(ae<=W||!Nn(ae)||E&&!this.bitrateTestDelay||ae${Z} adjustedbw(${Math.round(Q)})-bitrate=${Math.round(Q-ne)} ttfb:${W.toFixed(1)} avgDuration:${q.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${ae.toFixed(1)} firstSelection:${_} codecSet:${oe.codecSet} videoRange:${oe.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=Z),Z}}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 V3e={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 jxt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Nn(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)&&qle(n,r,a)===0||Vxt(a,e,Math.min(o,r))))return a;const s=V3e.search(t,qle.bind(null,n,r));return s&&(s!==e||!a)?s:a}function Vxt(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 qle(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 zxt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function z3e(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 V3e.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function DT(e){switch(e.details){case Ut.FRAG_LOAD_TIMEOUT:case Ut.KEY_LOAD_TIMEOUT:case Ut.LEVEL_LOAD_TIMEOUT:case Ut.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function U3e(e){return e.details.startsWith("key")}function H3e(e){return U3e(e)&&!!e.frag&&!e.frag.decryptdata}function Yle(e,t){const n=DT(t);return e.default[`${n?"timeout":"error"}Retry`]}function CG(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function Xle(e){return co(co({},e),{errorRetry:null,timeoutRetry:null})}function PT(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function Fz(e){return e===0&&navigator.onLine===!1}var Ba={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},ec={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class Hxt extends nd{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(Te.ERROR,this.onError,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Te.ERROR,this.onError,this),t.off(Te.ERROR,this.onErrorOut,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Qn.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 Ut.FRAG_LOAD_ERROR:case Ut.FRAG_LOAD_TIMEOUT:case Ut.KEY_LOAD_ERROR:case Ut.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Ut.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=vy();return}case Ut.FRAG_GAP:case Ut.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Ba.SendAlternateToPenaltyBox;return}case Ut.LEVEL_EMPTY_ERROR:case Ut.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Qn.MAIN?n.level:o.loadLevel;n.details===Ut.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 Ut.LEVEL_LOAD_ERROR:case Ut.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case Ut.AUDIO_TRACK_LOAD_ERROR:case Ut.AUDIO_TRACK_LOAD_TIMEOUT:case Ut.SUBTITLE_LOAD_ERROR:case Ut.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===_i.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===_i.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 Ut.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingHDCP};return;case Ut.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Ut.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Ut.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingKey};return;case Ut.BUFFER_ADD_CODEC_ERROR:case Ut.REMUX_ALLOC_ERROR:case Ut.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case Ut.INTERNAL_EXCEPTION:case Ut.BUFFER_APPENDING_ERROR:case Ut.BUFFER_FULL_ERROR:case Ut.LEVEL_SWITCH_ERROR:case Ut.BUFFER_STALLED_ERROR:case Ut.BUFFER_SEEK_OVER_HOLE:case Ut.BUFFER_NUDGE_ON_STALL:n.errorAction=vy();return}n.type===lr.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=vy())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=Yle(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(PT(o,a,DT(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=Yle(U3e(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Ut.FRAG_GAP&&o.fragmentError++,!H3e(t)&&PT(l,c,DT(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===Ut.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:m,minAutoLevel:g,maxAutoLevel:y}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,C=(S===Qn.AUDIO&&d===Ut.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(d===Ut.BUFFER_ADD_CODEC_ERROR||d===Ut.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:D})=>o.audioCodec!==D),E=t.sourceBufferName==="video"&&(d===Ut.BUFFER_ADD_CODEC_ERROR||d===Ut.BUFFER_APPEND_ERROR)&&p.some(({codecSet:D,audioCodec:P})=>o.codecSet!==D&&o.audioCodec===P),{type:_,groupId:T}=(s=t.context)!=null?s:{};for(let D=p.length;D--;){const P=(D+m)%p.length;if(P!==m&&P>=g&&P<=y&&p[P].loadError===0){var l,c;const M=p[P];if(d===Ut.FRAG_GAP&&S===Qn.MAIN&&t.frag){const $=p[P].details;if($){const I=$m(t.frag,$.fragments,t.frag.start);if(I!=null&&I.gap)continue}}else{if(_===_i.AUDIO_TRACK&&M.hasAudioGroup(T)||_===_i.SUBTITLE_TRACK&&M.hasSubtitleGroup(T))continue;if(S===Qn.AUDIO&&(l=o.audioGroups)!=null&&l.some($=>M.hasAudioGroup($))||S===Qn.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some($=>M.hasSubtitleGroup($))||C&&o.audioCodec===M.audioCodec||E&&o.codecSet===M.codecSet||!C&&o.codecSet!==M.codecSet)continue}h=P;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:Ba.SendAlternateToPenaltyBox,flags: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!==Ut.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=Nz[Nz.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 m=h;m--;)if(this.variantHasKey(d[m],c)){var s,l;this.log(`Banned key found in level ${m} (${d[m].bitrate}bps) or audio group "${(s=d[m].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${zl(c.keyId||[])}`),d[m].fragmentError++,d[m].loadError++,this.log(`Removing level ${m} with key error (${t.error})`),this.hls.removeLevel(m)}const p=t.frag;if(this.hls.levels.length{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||a)){c.body.type===r&&this.removeFragment(c.body);return}const d=c.range[t];if(d){if(d.time.length===0){this.removeFragment(c.body);return}d.time.some(h=>{const p=!this.isTimeBuffered(h.startPTS,h.endPTS,n);return p&&this.removeFragment(c.body),p})}})}detectPartialFragments(t){const n=this.timeRanges;if(!n||t.frag.sn==="initSegment")return;const r=t.frag,o=S1(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),pC(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=Zle(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=S1(t);let o=this.fragments[r];!o&&n&&(o=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),o&&(o.loaded=null,o.buffered=!0)}getBufferedTimes(t,n,r,o){const a={time:[],partial:r},s=t.start,l=t.end,c=t.minEndPTS||l,d=t.maxStartPTS||s;for(let h=0;h=p&&c<=m){a.time.push({startPTS:Math.max(s,o.start(h)),endPTS:Math.min(l,o.end(h))});break}else if(sp){const g=Math.max(s,o.start(h)),y=Math.min(l,o.end(h));y>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:y}))}else if(l<=p)break}return a}getPartialFragment(t){let n=null,r,o,a,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(d=>{const h=c[d];h&&pC(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||pC(n))}getState(t){const n=S1(t),r=this.fragments[n];return r?r.buffered?pC(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=S1(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=S1(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=S1(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=Zle(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 pC(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 S1(e){return`${e.type}_${e.level}_${e.sn}`}function Zle(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var L0={cbc:0,ctr:1};class Gxt{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 L0.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case L0.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 Kxt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class qxt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let o=0;o<4;o++)r[o]=n.getUint32(o*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,o=r[0],a=r[1],s=r[2],l=r[3],c=this.invSubMix,d=c[0],h=c[1],p=c[2],m=c[3],g=new Uint32Array(256);let y=0,S=0,k=0;for(k=0;k<256;k++)k<128?g[k]=k<<1:g[k]=k<<1^283;for(k=0;k<256;k++){let C=S^S<<1^S<<2^S<<3^S<<4;C=C>>>8^C&255^99,t[y]=C,n[C]=y;const x=g[y],E=g[x],_=g[E];let T=g[C]*257^C*16843008;o[y]=T<<24|T>>>8,a[y]=T<<16|T>>>16,s[y]=T<<8|T>>>24,l[y]=T,T=_*16843009^E*65537^x*257^y*16843008,d[C]=T<<24|T>>>8,h[C]=T<<16|T>>>16,p[C]=T<<8|T>>>24,m[C]=T,y?(y=x^g[g[g[_^x]]],S^=g[g[S]]):y=S=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,o=0;for(;o{const l=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(l,n,r,o);const c=this.flush();c?a(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r,o)}softwareDecrypt(t,n,r,o){const{currentIV:a,currentResult:s,remainderData:l}=this;if(o!==L0.cbc||n.byteLength!==16)return ho.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=Jc(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 qxt),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 Yxt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Gxt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(ho.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%Zxt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(ho.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const Jle=Math.pow(2,17);class Jxt{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new mh({type:lr.NETWORK_ERROR,details:Ut.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(eue(t));return}else t.gap=!1;const d=this.loader=a?new a(o):new s(o),h=Qle(t);t.loader=d;const p=Xle(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:Jle};t.stats=d.stats;const g={onSuccess:(y,S,k,C)=>{this.resetLoader(t,d);let x=y.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(x.slice(0,16)),x=x.slice(16)),l({frag:t,part:null,payload:x,networkDetails:C})},onError:(y,S,k,C)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Ut.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:co({url:r,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:k,stats:C}))},onAbort:(y,S,k)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Ut.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:y}))},onTimeout:(y,S,k)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Ut.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:k,stats:y}))}};n&&(g.onProgress=(y,S,k,C)=>n({frag:t,part:null,payload:k,networkDetails:C})),d.load(h,m,g)})}loadPart(t,n,r){this.abort();const o=this.config,a=o.fLoader,s=o.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){c(eue(t,n));return}const d=this.loader=a?new a(o):new s(o),h=Qle(t,n);t.loader=d;const p=Xle(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Jle};n.stats=d.stats,d.load(h,m,{onSuccess:(g,y,S,k)=>{this.resetLoader(t,d),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:k};r(C),l(C)},onError:(g,y,S,k)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Ut.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:co({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,y,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Ut.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,y,S)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Ut.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:S,stats:g}))}})})}updateStatsFromPart(t,n){const r=t.stats,o=n.stats,a=o.total;if(r.loaded+=o.loaded,a){const c=Math.round(t.duration/n.duration),d=Math.min(Math.round(r.loaded/a),c),p=(c-d)*Math.round(r.loaded/d);r.total=r.loaded+p}else r.total=Math.max(r.loaded,r.total);const s=r.loading,l=o.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function Qle(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(Nn(o)&&Nn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&Qxt((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 eue(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:lr.MEDIA_ERROR,details:Ut.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new mh(r)}function Qxt(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 W3e extends nd{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 EG{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=vC(),this.buffering={audio:vC(),video:vC(),audiovideo:vC()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function vC(){return{start:0,executeStart:0,executeEnd:0,end:0}}const tue={length:0,start:()=>0,end:()=>0};class jr{static isBuffered(t,n){if(t){const r=jr.getBuffered(t);for(let o=r.length;o--;)if(n>=r.start(o)&&n<=r.end(o))return!0}return!1}static bufferedRanges(t){if(t){const n=jr.getBuffered(t);return jr.timeRangesToArray(n)}return[]}static timeRangesToArray(t){const n=[];for(let r=0;r1&&t.sort((h,p)=>h.start-p.start||p.end-h.end);let o=-1,a=[];if(r)for(let h=0;h=t[h].start&&n<=t[h].end&&(o=h);const p=a.length;if(p){const m=a[p-1].end;t[h].start-mm&&(a[p-1].end=t[h].end):a.push(t[h])}else a.push(t[h])}else a=t;let s=0,l,c=n,d=n;for(let h=0;h=p&&n<=m&&(o=h),n+r>=p&&n{const o=r.substring(2,r.length-1),a=n?.[o];return a===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${o}"`)),r):a})}return t}function rue(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 eCt(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 tCt=/^(\d+)x(\d+)$/,iue=/(.+?)=(".*?"|.*?)(?:,|$)/g;class is{constructor(t,n){typeof t=="string"&&(t=is.parseAttrList(t,n)),go(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=tCt.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(iue.lastIndex=0;(r=iue.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let d=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":d=!0}if(n&&(c||d))l=jz(n,l);else if(!d&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":ho.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const nCt="com.apple.hls.interstitial";function rCt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function iCt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class K3e{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]){ho.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=go(new is({}),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"]);Nn(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?(ho.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(Nn(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===nCt}get isValid(){return!!this.id&&!this._badValueForSameId&&Nn(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 oCt=10;class sCt{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?Nn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||oCt}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 RT(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function oue(e,t){return!e&&!t?!0:!e||!t?!1:RT(e,t)}function my(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function TG(e){switch(e){case"AES-128":case"AES-256":return L0.cbc;case"AES-256-CTR":return L0.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function AG(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function Vz(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function aCt(e){const t=Vz(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function q3e(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 Y3e(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=AG(s)):n=aCt(s)}}return n}const MT=typeof self<"u"?self:void 0;var as={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 JE(e){switch(e){case za.FAIRPLAY:return as.FAIRPLAY;case za.PLAYREADY:return as.PLAYREADY;case za.WIDEVINE:return as.WIDEVINE;case za.CLEARKEY:return as.CLEARKEY}}function OF(e){switch(e){case as.FAIRPLAY:return za.FAIRPLAY;case as.PLAYREADY:return za.PLAYREADY;case as.WIDEVINE:return za.WIDEVINE;case as.CLEARKEY:return za.CLEARKEY}}function B4(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[as.FAIRPLAY,as.WIDEVINE,as.PLAYREADY,as.CLEARKEY].filter(o=>!!t[o]):[];return!r[as.WIDEVINE]&&n&&r.push(as.WIDEVINE),r}const X3e=(function(e){return MT!=null&&(e=MT.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function lCt(e,t,n,r){let o;switch(e){case as.FAIRPLAY:o=["cenc","sinf"];break;case as.WIDEVINE:case as.PLAYREADY:o=["cenc"];break;case as.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return uCt(o,t,n,r)}function uCt(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 cCt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function Z3e(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=AG(l).subarray(0,16);return q3e(c),c}}return null}let mC={};class bm{static clearKeyUriToKeyIdMap(){mC={}}static setKeyIdForUri(t,n){mC[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&&!my(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(w3e(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&RT(t.keyFormatVersions,this.keyFormatVersions)&&oue(t.iv,this.iv)&&oue(t.keyId,this.keyId)}isSupported(){if(this.method){if(my(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(my(this.method)){let a=this.iv;return a||(typeof t!="number"&&(ho.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=fCt(t)),new bm(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=mC[this.uri];if(a&&!RT(this.keyId,a)&&bm.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=Y3e(this.uri);if(r)switch(this.keyFormat){case za.WIDEVINE:if(this.pssh=r,!this.keyId){const a=vxt(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=sue(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=pxt(a,null,r),this.keyId=Z3e(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=dCt(n),a||(a=sue(n),a||(a=mC[this.uri])),a&&(this.keyId=a,bm.setKeyIdForUri(this.uri,a))}return this}}function dCt(e){const t=e?.[za.WIDEVINE];return t?t.keyId:null}function sue(e){const t=e?.[za.PLAYREADY];if(t){const n=Y3e(t.uri);if(n)return Z3e(n)}return null}function fCt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const aue=/#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,lue=/#EXT-X-MEDIA:(.*)/g,hCt=/^#EXT(?:INF|-X-TARGETDURATION):/m,$F=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),pCt=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class vf{static findGroup(t,n){for(let r=0;r0&&a.length({id:d.attrs.AUDIO,audioCodec:d.audioCodec})),SUBTITLES:s.map(d=>({id:d.attrs.SUBTITLES,textCodec:d.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(lue.lastIndex=0;(o=lue.exec(t))!==null;){const d=new is(o[1],r),h=d.TYPE;if(h){const p=l[h],m=a[h]||[];a[h]=m;const g=d.LANGUAGE,y=d["ASSOC-LANGUAGE"],S=d.CHANNELS,k=d.CHARACTERISTICS,C=d["INSTREAM-ID"],x={attrs:d,bitrate:0,id:c++,groupId:d["GROUP-ID"]||"",name:d.NAME||g||"",type:h,default:d.bool("DEFAULT"),autoselect:d.bool("AUTOSELECT"),forced:d.bool("FORCED"),lang:g,url:d.URI?vf.resolve(d.URI,n):""};if(y&&(x.assocLang=y),S&&(x.channels=S),k&&(x.characteristics=k),C&&(x.instreamId=C),p!=null&&p.length){const E=vf.findGroup(p,x.groupId)||p[0];fue(x,E,"audioCodec"),fue(x,E,"textCodec")}m.push(x)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},d=new sCt(n),h=d.fragments,p=[];let m=null,g=0,y=0,S=0,k=0,C=0,x=null,E=new PF(o,c),_,T,D,P=-1,M=!1,$=null,I;if($F.lastIndex=0,d.m3u8=t,d.hasVariableRefs=nue(t),((l=$F.exec(t))==null?void 0:l[0])!=="#EXTM3U")return d.playlistParsingError=new Error("Missing format identifier #EXTM3U"),d;for(;(_=$F.exec(t))!==null;){M&&(M=!1,E=new PF(o,c),E.playlistOffset=S,E.setStart(S),E.sn=g,E.cc=k,C&&(E.bitrate=C),E.level=r,m&&(E.initSegment=m,m.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),$&&(E.setByteRange($),$=null)));const U=_[1];if(U){E.duration=parseFloat(U);const G=(" "+_[2]).slice(1);E.title=G||null,E.tagList.push(G?["INF",U,G]:["INF",U])}else if(_[3]){if(Nn(E.duration)){E.playlistOffset=S,E.setStart(S),D&&pue(E,D,d),E.sn=g,E.level=r,E.cc=k,h.push(E);const G=(" "+_[3]).slice(1);E.relurl=jz(d,G),zz(E,x,p),x=E,S+=E.duration,g++,y=0,M=!0}}else{if(_=_[0].match(pCt),!_){ho.warn("No matches on slow regex match for level playlist!");continue}for(T=1;T<_.length&&_[T]===void 0;T++);const G=(" "+_[T]).slice(1),Z=(" "+_[T+1]).slice(1),oe=_[T+2]?(" "+_[T+2]).slice(1):null;switch(G){case"BYTERANGE":x?E.setByteRange(Z,x):E.setByteRange(Z);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=Z,E.tagList.push(["PROGRAM-DATE-TIME",Z]),P===-1&&(P=h.length);break;case"PLAYLIST-TYPE":d.type&&ch(d,G,_),d.type=Z.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?ch(d,G,_):h.length>0&&vue(d,G,_),g=d.startSN=parseInt(Z);break;case"SKIP":{d.skippedSegments&&ch(d,G,_);const X=new is(Z,d),H=X.decimalInteger("SKIPPED-SEGMENTS");if(Nn(H)){d.skippedSegments+=H;for(let Q=H;Q--;)h.push(null);g+=H}const q=X.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(q.split(" ")));break}case"TARGETDURATION":d.targetduration!==0&&ch(d,G,_),d.targetduration=Math.max(parseInt(Z),1);break;case"VERSION":d.version!==null&&ch(d,G,_),d.version=parseInt(Z);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":d.live||ch(d,G,_),d.live=!1;break;case"#":(Z||oe)&&E.tagList.push(oe?[Z,oe]:[Z]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([G]);break;case"BITRATE":E.tagList.push([G,Z]),C=parseInt(Z)*1e3,Nn(C)?E.bitrate=C:C=0;break;case"DATERANGE":{const X=new is(Z,d),H=new K3e(X,d.dateRanges[X.ID],d.dateRangeTagCount);d.dateRangeTagCount++,H.isValid||d.skippedSegments?d.dateRanges[H.id]=H:ho.warn(`Ignoring invalid DATERANGE tag: "${Z}"`),E.tagList.push(["EXT-X-DATERANGE",Z]);break}case"DEFINE":{{const X=new is(Z,d);"IMPORT"in X?eCt(d,X,s):rue(d,X,n)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0?ch(d,G,_):h.length>0&&vue(d,G,_),d.startCC=k=parseInt(Z);break;case"KEY":{const X=uue(Z,n,d);if(X.isSupported()){if(X.method==="NONE"){D=void 0;break}D||(D={});const H=D[X.keyFormat];H!=null&&H.matches(X)||(H&&(D=go({},D)),D[X.keyFormat]=X)}else ho.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Z}"`);break}case"START":d.startTimeOffset=cue(Z);break;case"MAP":{const X=new is(Z,d);if(E.duration){const H=new PF(o,c);hue(H,X,r,D),m=H,E.initSegment=m,m.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime)}else{const H=E.byteRangeEndOffset;if(H){const q=E.byteRangeStartOffset;$=`${H-q}@${q}`}else $=null;hue(E,X,r,D),m=E,M=!0}m.cc=k;break}case"SERVER-CONTROL":{I&&ch(d,G,_),I=new is(Z),d.canBlockReload=I.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=I.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&I.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=I.optionalFloat("PART-HOLD-BACK",0),d.holdBack=I.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&ch(d,G,_);const X=new is(Z);d.partTarget=X.decimalFloatingPoint("PART-TARGET");break}case"PART":{let X=d.partList;X||(X=d.partList=[]);const H=y>0?X[X.length-1]:void 0,q=y++,Q=new is(Z,d),ne=new ext(Q,E,c,q,H);X.push(ne),E.duration+=ne.duration;break}case"PRELOAD-HINT":{const X=new is(Z,d);d.preloadHint=X;break}case"RENDITION-REPORT":{const X=new is(Z,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(X);break}default:ho.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,d.partList&&(d.fragmentHint=x)):d.partList&&(zz(E,x,p),E.cc=k,d.fragmentHint=E,D&&pue(E,D,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const N=h.length,F=h[0],W=h[N-1];if(S+=d.skippedSegments*d.targetduration,S>0&&N&&W){d.averagetargetduration=S/N;const U=W.sn;d.endSN=U!=="initSegment"?U:0,d.live||(W.endList=!0),P>0&&(mCt(h,P),F&&p.unshift(F))}return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,p.length&&d.dateRangeTagCount&&F&&J3e(p,d),d.endCC=k,d}}function J3e(e,t){let n=e.length;if(!n)if(t.hasProgramDateTime){const l=t.fragments[t.fragments.length-1];e.push(l),n++}else return;const r=e[n-1],o=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let l=a.length;l--;){const c=t.dateRanges[a[l]],d=c.startDate.getTime();c.tagAnchor=r.ref;for(let h=n;h--;){var s;if(((s=e[h])==null?void 0:s.sn)=l||r===0){var s;const c=(((s=n[r+1])==null?void 0:s.start)||o)-a.start;if(t<=l+c*1e3){const d=n[r].sn-e.startSN;if(d<0)return-1;const h=e.fragments;if(h.length>n.length){const m=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=m;g>d;g--){const y=h[g].programDateTime;if(t>=y&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>kG(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 fue(e,t,n){const r=t[n];r&&(e[n]=r)}function mCt(e,t){let n=e[t];for(let r=t;r--;){const o=e[r];if(!o)return;o.programDateTime=n.programDateTime-o.duration*1e3,n=o}}function zz(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function hue(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 pue(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 vue(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(Nn(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 Q3e(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(Nn(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}`):Nn(t.deltaPTS)?t.deltaPTS=Math.max(C,t.deltaPTS):t.deltaPTS=C,c=Math.max(n,h),n=Math.min(n,h),o=t.startDTS!==void 0?Math.min(o,t.startDTS):o,d=Math.min(r,p),r=Math.max(r,p),a=t.endDTS!==void 0?Math.max(a,t.endDTS):a}const m=n-t.start;t.start!==0&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=c,t.startDTS=o,t.endPTS=r,t.minEndPTS=d,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let y;const S=g-e.startSN,k=e.fragments;for(k[S]=t,y=S;y>0;y--)BF(k[y],k[y-1]);for(y=S;y=0;h--){const p=o[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;_Ct(e,t,(h,p,m,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const y=h.cc-p.cc;for(let S=m;S{var p;h&&(!h.initSegment||h.initSegment.relurl===((p=r)==null?void 0:p.relurl))&&(h.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=s.some(h=>!h),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let h=t.skippedSegments;h--;)s.shift();t.startSN=s[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=yCt(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?Q3e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):e2e(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 yCt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=go({},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 K3e(r[c].attr,d);h.isValid?(a[c]=h,d||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${wo(r[c].attr)}"`)}),a):r}function bCt(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 _Ct(e,t,n){const r=t.skippedSegments,o=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let d=o;d<=a;d++){const h=c[s+d];let p=l[d];if(r&&!p&&h&&(p=t.fragments[d]=h),h&&p){n(h,p,d,l);const m=h.relurl,g=p.relurl;if(m&&SCt(m,g)){t.playlistParsingError=mue(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=mue(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function mue(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function e2e(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 SCt(e,t){return e!==t&&t?yue(e)!==yue(t):!1}function yue(e){return e.replace(/\?[^?]*$/,"")}function Tb(e,t){for(let r=0,o=e.length;re.startCC)}function bue(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function o2e(e,t){const n=t.fragments;for(let r=0,o=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:d,state:h}=this,p=c?c.currentTime:0,m=jr.bufferInfo(d||c,p,s.maxBufferHole),g=!m.len;if(this.log(`Media seeking to ${Nn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===rn.ENDED)this.resetLoadingState();else if(l){const y=s.maxFragLookUpTolerance,S=l.start-y,k=l.start+l.duration+y;if(g||km.end){const C=p>k;(py&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(m.end,p),k=this.shouldLoadParts(this.getLevelDetails(),S);k&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${S.toFixed(2)}`),this.loadingParts=k)}}this.hls.hasEnoughToStart||(this.log(`Setting ${g?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,g&&(this.startPosition=p)),g&&this.state===rn.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 Jxt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new wG(t.config)}registerListeners(){const{hls:t}=this;t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===rn.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=rn.STOPPED}get startPositionValue(){const{nextLoadPosition:t,startPosition:n}=this;return n===-1&&t?t:n}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,n){if(n.live||!this.media)return!1;const r=t.end||0,o=this.config.timelineOffset||0;if(r<=o)return!1;const a=t.buffered;this.config.maxBufferHole&&a&&a.length>1&&(t=jr.bufferedInfo(a,t.start,0));const s=t.nextStart;if(s&&s>o&&s{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(t,n,r,o).then(a=>{if(!a)return;const s=this.state,l=a.frag;if(this.fragContextChanged(l)){(s===rn.FRAG_LOADING||!this.fragCurrent&&s===rn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=rn.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Te.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===rn.STOPPED||this.state===rn.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(Te.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&&my(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,TG(l.method)).catch(d=>{throw o.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:a}),d}).then(d=>{const h=self.performance.now();return o.trigger(Te.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===rn.STOPPED||this.state===rn.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!==rn.STOPPED&&(this.state=rn.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(Te.ERROR,{type:lr.KEY_SYSTEM_ERROR,details:Ut.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?CCt.toString(jr.getBuffered(r)):"(detached)"})`),Ks(t)){var o;if(t.type!==Qn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=rn.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=rn.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 EG(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=rn.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(m=>{if(!this.fragContextChanged(m.frag))return this.hls.trigger(Te.KEY_LOADED,m),this.state===rn.KEY_LOADING&&(this.state=rn.IDLE),m}),this.hls.trigger(Te.KEY_LOADING,{frag:t}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else t.encrypted||(l=this.keyLoader.loadClear(t,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(Ks(t)&&(!c||t.sn!==c.sn)){const m=this.shouldLoadParts(n.details,t.end);m!==this.loadingParts&&(this.log(`LL-Part loading ${m?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=m)}if(r=Math.max(t.start,r||0),this.loadingParts&&Ks(t)){const m=s.partList;if(m&&o){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(m,t,r);if(g>-1){const y=m[g];t=this.fragCurrent=y.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${y.index} (${g}/${m.length-1}) of ${this.fragInfo(t,!1,y)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=y.start+y.duration,this.state=rn.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(Te.FRAG_LOADING,{frag:t,part:y,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):S}else if(!t.url||this.loadedEndOfParts(m,r))return Promise.resolve(null)}}if(Ks(t)&&this.loadingParts){var d;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(d=s.partList)==null?void 0:d.filter(m=>m.loaded).map(m=>`[${m.start}-${m.end}]`)}`),this.loadingParts=!1}else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),Nn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=rn.FRAG_LOADING;const h=this.config.progressive;let p;return h&&l?p=l.then(m=>!m||this.fragContextChanged(m.frag)?null:this.fragmentLoader.load(t,o)).catch(m=>this.handleFragLoadError(m)):p=Promise.all([this.fragmentLoader.load(t,h?o:void 0),l]).then(([m])=>(!h&&o&&o(m),m)).catch(m=>this.handleFragLoadError(m)),this.hls.trigger(Te.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(t,n,r,o){return new Promise((a,s)=>{var l;const c=[],d=(l=r.details)==null?void 0:l.partList,h=p=>{this.fragmentLoader.loadPart(t,p,o).then(m=>{c[p.index]=m;const g=m.part;this.hls.trigger(Te.FRAG_LOADED,m);const y=gue(r.details,t.sn,p.index+1)||r2e(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===Ut.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===lr.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Te.ERROR,n)}else this.hls.trigger(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==rn.PARSING){!this.fragCurrent&&this.state!==rn.STOPPED&&this.state!==rn.ERROR&&(this.state=rn.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===Qn.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?gue(c,a,s):null,h=d?d.fragment:n2e(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!==rn.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=Jc(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(Te.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!jr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=jr.bufferInfo(n,r,0),a=t.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),l=Math.max(Math.min(t.start-s,o.end-s),r+s);t.start-l>s&&this.flushMainBuffer(l,t.start)}getFwdBufferInfo(t,n){var r;const o=this.getLoadPosition();if(!Nn(o))return null;const s=this.lastCurrentTime>o||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,o,n,s)}getFwdBufferInfoAtPos(t,n,r,o){const a=jr.bufferInfo(t,n,o);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(n,r);if(s&&(a.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(a.nextStart,s.end)-n,o);return jr.bufferInfo(t,n,l)}}return a}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,o=Math.max(Math.min(t-n,r.maxBufferLength),n),a=Math.max(t-n*3,r.maxMaxBufferLength/2,o);return a>=o?(r.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(t,n=Qn.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(t,n):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,o=r.length;if(!o)return null;const{config:a}=this,s=r[0].start,l=a.lowLatencyMode&&!!n.partList;let c=null;if(n.live){const p=a.initialLiveManifestSize;if(o=s?m:g)||c.start:t;this.log(`Setting startPosition to ${y} to match start frag at live edge. mainStart: ${m} liveSyncPosition: ${g} frag.start: ${(d=c)==null?void 0:d.start}`),this.startPosition=this.nextLoadPosition=y}}else t<=s&&(c=r[0]);if(!c){const p=this.loadingParts?n.partEnd:n.fragmentEnd;c=this.getFragmentAtPosition(t,p,n)}let h=this.filterReplacedPrimary(c,n);if(!h&&c){const p=c.sn-n.startSN;h=this.filterReplacedPrimary(r[p+1]||null,n)}return this.mapToInitFragWhenRequired(h)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===ca.OK||r===ca.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,o,a){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,n),s&&!s.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,o,0);if(l!==null&&r.len+l.len>=a){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${o}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(_ue(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(_ue(this.config)&&t.type!==Qn.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=jxt(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=z3e(t,r.cc,r.end),o&&this.log(`Live playlist, switching playlist, load frag with same CC: ${o.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(o=this.getFragmentAtPosition(a,this.bitrateTest?t.fragmentEnd:t.edge,t))}return o}getFragmentAtPosition(t,n,r){const{config:o}=this;let{fragPrevious:a}=this,{fragments:s,endSN:l}=r;const{fragmentHint:c}=r,{maxFragLookUpTolerance:d}=o,h=r.partList,p=!!(this.loadingParts&&h!=null&&h.length&&c);p&&!this.bitrateTest&&h[h.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let m;if(tn-d||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:d;m=$m(a,s,t,S)}else m=s[s.length-1];if(m){const y=m.sn-r.startSN,S=this.fragmentTracker.getState(m);if((S===ca.OK||S===ca.PARTIAL&&m.gap)&&(a=m),a&&m.sn===a.sn&&(!p||h[0].fragment.sn>m.sn||!r.live)&&m.level===a.level){const C=s[y+1];m.sn${t.startSN} fragments: ${o}`),c}return a}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;r=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(t,n){this.transmuxer&&t.type===this.playlistType&&Ks(t)&&t.stats.aborted&&(this.log(`Fragment ${t.sn}${n?" part "+n.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==rn.FRAG_LOADING_WAITING_RETRY)&&(this.state=rn.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===Ut.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(o,!0);const l=n.errorAction;if(!l){this.state=rn.ERROR;return}const{action:c,flags:d,retryCount:h=0,retryConfig:p}=l,m=!!p,g=m&&c===Ba.RetryRequest,y=m&&!l.resolved&&d===ec.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&y&&Ks(o)&&!o.endList&&S&&!H3e(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||y)&&h=n||r&&!Fz(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=rn.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===rn.PARSING||this.state===rn.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===Qn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==rn.STOPPED&&(this.state=rn.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=jr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===rn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==rn.STOPPED&&(this.state=rn.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=this.levelLastLoaded,n=t?t.details:null;n!=null&&n.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(n,n.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.log(`Loading context changed while buffering sn ${t.sn} of ${this.playlistLabel()} ${t.level===-1?"":t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,o){const a=r.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((c,d)=>{const h=t.elementaryStreams[d];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${d} duration reliably (${p})`),c||!1;const m=o?0:Q3e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Te.LEVEL_PTS_UPDATED,{details:a,level:r,drift:m,type:d,frag:t,start:h.startPTS,end:h.endPTS}),!0}return c},!1)){var l;if(r.fragmentError===0&&this.treatAsGap(t,r),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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=rn.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Te.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Qn.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 _ue(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class a2e{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=wCt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function wCt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function PCt(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(Te.ERROR,Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.FRAG_PARSING_ERROR,fatal:!0,error:g,reason:g.message});return}const l=(a>>6&3)+1,c=t[n+3]>>6&3|(a&1)<<2,d="mp4a.40."+l,h=o[s];let p=s;(l===5||l===29)&&(p-=3);const m=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return ho.log(`manifest codec:${r}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:m,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:r}}function u2e(e,t){return e[t]===255&&(e[t+1]&246)===240}function c2e(e,t){return e[t+1]&1?7:9}function PG(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function RCt(e,t){return t+5=e.length)return!1;const r=PG(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||$T(e,o)}return!1}function d2e(e,t,n,r,o){if(!e.samplerate){const a=PCt(t,n,r,o);if(!a)return;go(e,a)}}function f2e(e){return 1024*9e4/e}function $Ct(e,t){const n=c2e(e,t);if(t+n<=e.length){const r=PG(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function h2e(e,t,n,r,o){const a=f2e(e.samplerate),s=r+o*a,l=$Ct(t,n);let c;if(l){const{frameLength:p,headerLength:m}=l,g=m+p,y=Math.max(0,n+g-t.length);y?(c=new Uint8Array(g-m),c.set(t.subarray(n+m,t.length),0)):c=t.subarray(n+m,n+g);const S={unit:c,pts:s};return y||e.samples.push(S),{sample:S,length:g,missing:y}}const d=t.length-n;return c=new Uint8Array(d),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:d,missing:-1}}function BCt(e,t){return DG(e,t)&&ZA(e,t+6)+10<=e.length-t}function NCt(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 FCt(e,t,n,Uint8Array)}function FCt(e,t,n,r){const o=jCt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=VCt(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 jCt(e){return e instanceof ArrayBuffer?e:e.buffer}function VCt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function zCt(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=NCt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function UCt(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 HCt(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 WCt(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 GCt(e){return e.type==="PRIV"?UCt(e):e.type[0]==="W"?WCt(e):e.type==="APIC"?zCt(e):HCt(e)}function KCt(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 gC=10,qCt=10;function p2e(e){let t=0;const n=[];for(;DG(e,t);){const r=ZA(e,t+6);e[t+5]>>6&1&&(t+=gC),t+=gC;const o=t+r;for(;t+qCt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ic.audioId3,duration:Number.POSITIVE_INFINITY});o{if(Nn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let yC=null;const ZCt=[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],JCt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],QCt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ewt=[0,1,1,4];function m2e(e,t,n,r,o){if(n+24>t.length)return;const a=g2e(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 g2e(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=ZCt[c*14+o-1]*1e3,p=JCt[(n===3?0:n===2?1:2)*3+a],m=l===3?1:2,g=QCt[n][r],y=ewt[r],S=g*8*y,k=Math.floor(g*d/p+s)*y;if(yC===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);yC=E?parseInt(E[1]):0}return!!yC&&yC<=87&&r===2&&d>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:m,frameLength:k,samplesPerFrame:S}}}function OG(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function y2e(e,t){return t+1{let n=0,r=5;t+=r;const o=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const l=Math.min(r,8),c=8-l;a[0]=4278190080>>>24+c<>c,n=n?n<t.length||t[n]!==11||t[n+1]!==119)return-1;const a=t[n+4]>>6;if(a>=3)return-1;const l=[48e3,44100,32e3][a],c=t[n+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+a]*2;if(n+h>t.length)return-1;const p=t[n+6]>>5;let m=0;p===2?m+=2:(p&1&&p!==1&&(m+=2),p&4&&(m+=2));const g=(t[n+6]<<8|t[n+7])>>12-m&1,S=[2,1,2,3,3,4,4,5][p]+g,k=t[n+5]>>3,C=t[n+5]&7,x=new Uint8Array([a<<6|k<<1|C>>2,(C&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),E=1536/l*9e4,_=r+o*E,T=t.subarray(n,n+h);return e.config=x,e.channelCount=S,e.samplerate=l,e.samples.push({unit:T,pts:_}),h}class iwt extends MG{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=C_(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&RG(n)!==void 0&&_2e(t,r)<=16)return!1;for(let o=t.length;r{const s=fxt(a);if(owt.test(s.schemeIdUri)){const l=kue(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=kue(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 kue(e,t){return Nn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class awt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new wG(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,L0.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 k2e{constructor(){this.VideoSample=null}createVideoSample(t,n,r){return{key:t,frame:!1,pts:n,dts:r,units:[],length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,o;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const a=r.units;o=a[a.length-1]}return o}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,o=r.length;if(o){const a=r[o-1];t.pts=a.pts,t.dts=a.dts}else{n.dropped++;return}}n.samples.push(t)}}parseNALu(t,n,r){const o=n.byteLength;let a=t.naluState||0;const s=a,l=[];let c=0,d,h,p,m=-1,g=0;for(a===-1&&(m=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const y={data:n.subarray(m,h),type:g};l.push(y)}else{const y=this.getLastNalUnit(t.samples);y&&(s&&c<=4-s&&y.state&&(y.data=y.data.subarray(0,y.data.byteLength-s)),h>0&&(y.data=Jc(y.data,n.subarray(0,h)),y.state=0))}c=0&&a>=0){const y={data:n.subarray(m,o),type:g,state:a};l.push(y)}if(l.length===0){const y=this.getLastNalUnit(t.samples);y&&(y.data=Jc(y.data,n))}return t.naluState=a,l}}class Ab{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&&ho.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 lwt extends k2e{parsePES(t,n,r,o){const a=this.parseNALu(t,r.data,o);let s=this.VideoSample,l,c=!1;r.data=null,s&&a.length&&!t.audFound&&(this.pushAccessUnit(s,t),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),a.forEach(d=>{var h,p;switch(d.type){case 1:{let S=!1;l=!0;const k=d.data;if(c&&k.length>4){const C=this.readSliceType(k);(C===2||C===4||C===7||C===9)&&(S=!0)}if(S){var m;(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.frame=!0,s.key=S;break}case 5:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,SG(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 Ab(t);return n.readUByte(),n.readUEG(),n.readUEG()}skipScalingList(t,n){let r=8,o=8,a;for(let s=0;s{var h,p;switch(d.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var m;(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,SG(d.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=go(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 Ab(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 Ab(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.readBits(4);const r=n.readBits(3);n.readBoolean();const o=n.readBits(2),a=n.readBoolean(),s=n.readBits(5),l=n.readUByte(),c=n.readUByte(),d=n.readUByte(),h=n.readUByte(),p=n.readUByte(),m=n.readUByte(),g=n.readUByte(),y=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),x=[],E=[];for(let He=0;He0)for(let He=r;He<8;He++)n.readBits(2);for(let He=0;He1&&n.readEG();for(let Ct=0;Ct0&&St<16?(ne=Wt[St-1],ae=Tt[St-1]):St===255&&(ne=n.readBits(16),ae=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),ve=n.readBoolean(),ve&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(Se=n.readBits(32),xe=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Tt=n.readBoolean(),Mt=n.readBoolean();let nn=!1;(Tt||Mt)&&(nn=n.readBoolean(),nn&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),nn&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let ut=0;ut<=r;ut++){re=n.readBoolean();const Ne=re||n.readBoolean();let Ie=!1;Ne?n.readEG():Ie=n.readBoolean();const Oe=Ie?1:n.readUEG()+1;if(Tt)for(let Xe=0;Xe>He&1)<<31-He)>>>0;let _e=ge.toString(16);return s===1&&_e==="2"&&(_e="6"),{codecString:`hvc1.${Me}${s}.${_e}.${a?"H":"L"}${C}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:o,general_profile_compatibility_flags:[l,c,d,h],general_constraint_indicator_flags:[p,m,g,y,S,k],general_level_idc:C,bit_depth:F+8,bit_depth_luma_minus8:F,bit_depth_chroma_minus8:W,min_spatial_segmentation_idc:Q,chroma_format_idc:_,frame_rate:{fixed:re,fps:xe/Se}},width:Ve,height:Je,pixelRatio:[ne,ae]}}readPPS(t){const n=new Ab(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 Xp{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=Xp.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:A3e[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=Xp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=Xp.createTrack("audio",o),this._id3Track=Xp.createTrack("id3"),this._txtTrack=Xp.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,o=!1){r||(this.sampleAes=null);let a;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,d=this._txtTrack;let h=s.pid,p=s.pesData,m=l.pid,g=c.pid,y=l.pesData,S=c.pesData,k=null,C=this.pmtParsed,x=this._pmtId,E=t.length;if(this.remainderData&&(t=Jc(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let N;if(I>1){if(N=P+5+t[P+4],N===P+ba)continue}else N=P+4;switch($){case h:M&&(p&&(a=k1(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,d,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(N,P+ba)),p.size+=P+ba-N);break;case m:if(M){if(y&&(a=k1(y,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,a);break;case"mp3":this.parseMPEGPES(l,a);break;case"ac3":this.parseAC3PES(l,a);break}y={data:[],size:0}}y&&(y.data.push(t.subarray(N,P+ba)),y.size+=P+ba-N);break;case g:M&&(S&&(a=k1(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(N,P+ba)),S.size+=P+ba-N);break;case 0:M&&(N+=t[N]+1),x=this._pmtId=cwt(t,N);break;case x:{M&&(N+=t[N]+1);const F=dwt(t,N,this.typeSupported,r,this.observer,this.logger);h=F.videoPid,h>0&&(s.pid=h,s.segmentCodec=F.segmentVideoCodec),m=F.audioPid,m>0&&(l.pid=m,l.segmentCodec=F.segmentAudioCodec),g=F.id3Pid,g>0&&(c.pid=g),k!==null&&!C&&(this.logger.warn(`MPEG-TS PMT found at ${P} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,P=_-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=$;break}}else T++;T>0&&Wz(this.observer,new Error(`Found ${T} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=y,c.pesData=S;const D={audioTrack:l,videoTrack:s,id3Track:c,textTrack:d};return o&&this.extractRemainingSamples(D),D}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:o,textTrack:a}=t,s=r.pesData,l=n.pesData,c=o.pesData;let d;if(s&&(d=k1(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=k1(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=k1(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 awt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new lwt:t==="hevc"&&(this.videoParser=new uwt))}decrypt(t,n){return new Promise(r=>{const{audioTrack:o,videoTrack:a}=t;o.samples&&o.segmentCodec==="aac"?n.decryptAacSamples(o.samples,0,()=>{a.samples?n.decryptAvcSamples(a.samples,0,0,()=>{r(t)}):r(t)}):a.samples&&n.decryptAvcSamples(a.samples,0,0,()=>{r(t)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,n){let r=0;const o=this.aacOverFlow;let a=n.data;if(o){this.aacOverFlow=null;const p=o.missing,m=o.sample.unit.byteLength;if(p===-1)a=Jc(o.sample.unit,a);else{const g=m-p;o.sample.unit.set(a.subarray(0,p),g),t.samples.push(o.sample),r=o.missing}}let s,l;for(s=r,l=a.length;s0;)l+=c}}parseID3PES(t,n){if(n.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=go({},n,{type:this._videoTrack?ic.emsg:ic.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function Hz(e,t){return((e[t+1]&31)<<8)+e[t+2]}function cwt(e,t){return(e[t+10]&31)<<8|e[t+11]}function dwt(e,t,n,r,o,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(e[t+1]&15)<<8|e[t+2],c=t+3+l-4,d=(e[t+10]&15)<<8|e[t+11];for(t+=12+d;t0){let m=t+5,g=p;for(;g>2;){switch(e[m]){case 106:n.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=h,s.segmentAudioCodec="ac3");break}const S=e[m+1]+2;m+=S,g-=S}}break;case 194:case 135:return Wz(o,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=h,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}t+=p+5}return s}function Wz(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Te.ERROR,Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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 k1(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]=Jc(c[0],c[1]),c.splice(1,1);if(r=c[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(o=(r[4]<<8)+r[5],o&&o>e.size-6)return null;const h=r[7];h&192&&(s=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,h&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,s-l>60*9e4&&(t.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),a=r[8];let p=a+9;if(e.size<=p)return null;e.size-=p;const m=new Uint8Array(e.size);for(let g=0,y=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;m.set(r,n),n+=S}return o&&(o-=a+3),{data:m,pts:s,dts:l,len:o}}return null}class fwt{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Op=Math.pow(2,32)-1;class zt{static init(){zt.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 zt.types)zt.types.hasOwnProperty(t)&&(zt.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]);zt.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]);zt.STTS=zt.STSC=zt.STCO=a,zt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),zt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),zt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),zt.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]);zt.FTYP=zt.box(zt.types.ftyp,s,c,s,l),zt.DINF=zt.box(zt.types.dinf,zt.box(zt.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 zt.box(zt.types.mdia,zt.mdhd(t.timescale||0,t.duration||0),zt.hdlr(t.type),zt.minf(t))}static mfhd(t){return zt.box(zt.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"?zt.box(zt.types.minf,zt.box(zt.types.smhd,zt.SMHD),zt.DINF,zt.stbl(t)):zt.box(zt.types.minf,zt.box(zt.types.vmhd,zt.VMHD),zt.DINF,zt.stbl(t))}static moof(t,n,r){return zt.box(zt.types.moof,zt.mfhd(t),zt.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=zt.trak(t[n]);return zt.box.apply(null,[zt.types.moov,zt.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(zt.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=zt.trex(t[n]);return zt.box.apply(null,[zt.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Op+1)),o=Math.floor(n%(Op+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,o>>24,o>>16&255,o>>8&255,o&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return zt.box(zt.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=zt.box(zt.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 zt.box(zt.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,zt.box(zt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),zt.box(zt.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 zt.box(zt.types.mp4a,zt.audioStsd(t),zt.box(zt.types.esds,zt.esds(t)))}static mp3(t){return zt.box(zt.types[".mp3"],zt.audioStsd(t))}static ac3(t){return zt.box(zt.types["ac-3"],zt.audioStsd(t),zt.box(zt.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return zt.box(zt.types.stsd,zt.STSD,zt.mp4a(t));if(n==="ac3"&&t.config)return zt.box(zt.types.stsd,zt.STSD,zt.ac3(t));if(n==="mp3"&&t.codec==="mp3")return zt.box(zt.types.stsd,zt.STSD,zt.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return zt.box(zt.types.stsd,zt.STSD,zt.avc1(t));if(n==="hevc"&&t.vps)return zt.box(zt.types.stsd,zt.STSD,zt.hvc1(t))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${t.type} segment codec (${n}/${t.codec})`)}static tkhd(t){const n=t.id,r=(t.duration||0)*(t.timescale||0),o=t.width||0,a=t.height||0,s=Math.floor(r/(Op+1)),l=Math.floor(r%(Op+1));return zt.box(zt.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=zt.sdtp(t),o=t.id,a=Math.floor(n/(Op+1)),s=Math.floor(n%(Op+1));return zt.box(zt.types.traf,zt.box(zt.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),zt.box(zt.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])),zt.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,zt.box(zt.types.trak,zt.tkhd(t),zt.mdia(t))}static trex(t){const n=t.id;return zt.box(zt.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],o=r.length,a=12+16*o,s=new Uint8Array(a);let l,c,d,h,p,m;for(n+=8+a,s.set([t.type==="video"?1:0,0,15,1,o>>>24&255,o>>>16&255,o>>>8&255,o&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l>>24&255,d>>>16&255,d>>>8&255,d&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&61440,p.degradPrio&15,m>>>24&255,m>>>16&255,m>>>8&255,m&255],12+16*l);return zt.box(zt.types.trun,s)}static initSegment(t){zt.types||zt.init();const n=zt.moov(t);return Jc(zt.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=zt.box(zt.types.hvcC,l),h=t.width,p=t.height,m=t.pixelRatio[0],g=t.pixelRatio[1];return zt.box(zt.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,zt.box(zt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),zt.box(zt.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,g>>24,g>>16&255,g>>8&255,g&255])))}}zt.types=void 0;zt.HDLR_TYPES=void 0;zt.STTS=void 0;zt.STSC=void 0;zt.STCO=void 0;zt.STSZ=void 0;zt.VMHD=void 0;zt.SMHD=void 0;zt.STSD=void 0;zt.FTYP=void 0;zt.DINF=void 0;const x2e=9e4;function $G(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function hwt(e,t,n=1,r=!1){return $G(e,t,1/n,r)}function g4(e,t=!1){return $G(e,1e3,1/x2e,t)}function pwt(e,t=1){return $G(e,x2e,1/t)}function xue(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const vwt=10*1e3,mwt=1024,gwt=1152,ywt=1536;let x1=null,VF=null;function Cue(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 QE extends nd{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,x1===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);x1=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&&xue(n)} > ${t&&xue(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,m,g,y,S=a,k=a;const C=t.pid>-1,x=n.pid>-1,E=n.samples.length,_=t.samples.length>0,T=l&&E>0||E>1;if((!C||_)&&(!x||T)||this.ISGenerated||l){if(this.ISGenerated){var P,M,$,I;const U=this.videoTrackConfig;(U&&(n.width!==U.width||n.height!==U.height||((P=n.pixelRatio)==null?void 0:P[0])!==((M=U.pixelRatio)==null?void 0:M[0])||(($=n.pixelRatio)==null?void 0:$[1])!==((I=U.pixelRatio)==null?void 0:I[1]))||!U&&T||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const N=this.isVideoContiguous;let F=-1,W;if(T&&(F=bwt(n.samples),!N&&this.config.forceKeyFrameOnDiscontinuity))if(y=!0,F>0){this.warn(`Dropped ${F} out of ${E} video samples due to a missing keyframe`);const U=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(F),n.dropped+=F,k+=(n.samples[0].pts-U)/n.inputTimeScale,W=k}else F===-1&&(this.warn(`No keyframe found out of ${E} video samples`),y=!1);if(this.ISGenerated){if(_&&T){const U=this.getVideoStartPts(n.samples),Z=(tc(t.samples[0].pts,U)-U)/n.inputTimeScale;S+=Math.max(0,Z),k+=Math.max(0,-Z)}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===Qn.AUDIO?k:void 0),T){const U=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),d=this.remuxVideo(n,k,N,U)}}else T&&(d=this.remuxVideo(n,k,N,0));d&&(d.firstKeyFrame=F,d.independent=F!==-1,d.firstKeyFramePTS=W)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=C2e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(m=w2e(o,a,this._initPTS))),{audio:h,video:d,initSegment:p,independent:y,text:m,id3:g}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=tc(t,a);if(s0?Q-1:Q].dts&&(x=!0)}x&&s.sort(function(Q,ne){const ae=Q.dts-ne.dts,re=Q.pts-ne.pts;return ae||re}),y=s[0].dts,S=s[s.length-1].dts;const _=S-y,T=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const Q=y-E,ne=Q>T,ae=Q<-1;if((ne||ae)&&(ne?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${g4(Q,!0)} ms (${Q}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${g4(-Q,!0)} ms (${Q}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ae||E>=s[0].pts||x1)){y=E;const re=s[0].pts-Q;if(ne)s[0].dts=y,s[0].pts=re;else{let Se=!0;for(let xe=0;xere&&Se);xe++){const ve=s[xe].pts;if(s[xe].dts-=Q,s[xe].pts-=Q,xe0?ne.dts-s[Q-1].dts:T;if(Se=Q>0?ne.pts-s[Q-1].pts:T,ve.stretchShortVideoTrack&&this.nextAudioTs!==null){const Ve=Math.floor(ve.maxBufferHole*a),Je=(o?k+o*a:this.nextAudioTs+h)-ne.pts;Je>Ve?(g=Je-be,g<0?g=be:F=!0,this.log(`It is approximately ${Je/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=be}else g=be}const xe=Math.round(ne.pts-ne.dts);W=Math.min(W,g),G=Math.max(G,g),U=Math.min(U,Se),Z=Math.max(Z,Se),l.push(Cue(ne.key,g,re,xe))}if(l.length){if(x1){if(x1<70){const Q=l[0].flags;Q.dependsOn=2,Q.isNonSync=0}}else if(VF&&Z-U0&&(o&&Math.abs(E-(C+x))<9e3||Math.abs(tc(S[0].pts,E)-(C+x))<20*h),S.forEach(function(Z){Z.pts=tc(Z.pts,E)}),!r||C<0){const Z=S.length;if(S=S.filter(oe=>oe.pts>=0),Z!==S.length&&this.warn(`Removed ${S.length-Z} of ${Z} 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 Z=this.config.maxAudioFramesDrift;for(let oe=0,X=C+x;oe=Z*h&&ne0){P+=k;try{D=new Uint8Array(P)}catch(ne){this.observer.emit(Te.ERROR,Te.ERROR,{type:lr.MUX_ERROR,details:Ut.REMUX_ALLOC_ERROR,fatal:!1,error:ne,bytes:P,reason:`fail allocating audio mdat ${P}`});return}m||(new DataView(D.buffer).setUint32(0,P),D.set(zt.types.mdat,4))}else return;D.set(H,k);const Q=H.byteLength;k+=Q,g.push(Cue(!0,d,Q,0)),T=q}const $=g.length;if(!$)return;const I=g[g.length-1];C=T-x,this.nextAudioTs=C+c*I.duration;const N=m?new Uint8Array(0):zt.moof(t.sequenceNumber++,_/c,go({},t,{samples:g}));t.samples=[];const F=(_-x)/s,W=C/s,G={data1:N,data2:D,startPTS:F,endPTS:W,startDTS:F,endDTS:W,type:"audio",hasAudio:!0,hasVideo:!1,nb:$};return this.isAudioContiguous=!0,G}}function tc(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function bwt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class _wt extends nd{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=D3e(t);if(n)axt(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=wue(a,Co.AUDIO,this)),s&&(o=wue(s,Co.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};Nn(h)||(h=this.lastEndTime=a||0);const m=n.samples;if(!m.length)return p;const g={initPTS:void 0,timescale:void 0,trackId:void 0};let y=this.initData;if((l=y)!=null&&l.length||(this.generateInitSegment(m),y=this.initData),!((c=y)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=uxt(m,y,this),k=y.audio?S[y.audio.id]:null,C=y.video?S[y.video.id]:null,x=bC(C,1/0),E=bC(k,1/0),_=bC(C,0,!0),T=bC(k,0,!0);let D=a,P=0;const M=k&&(!C||!d&&E0?this.lastEndTime=N:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const F=!!y.audio,W=!!y.video;let U="";F&&(U+="audio"),W&&(U+="video");const G=(y.audio?y.audio.encrypted:!1)||(y.video?y.video.encrypted:!1),Z={data1:m,startPTS:I,startDTS:I,endPTS:N,endDTS:N,type:U,hasAudio:F,hasVideo:W,nb:1,dropped:0,encrypted:G};p.audio=F&&!W?Z:void 0,p.video=W?Z:void 0;const oe=C?.sampleCount;if(oe){const X=C.keyFrameIndex,H=X!==-1;Z.nb=oe,Z.dropped=X===0||this.isVideoContiguous?0:H?X:oe,Z.independent=H,Z.firstKeyFrame=X,H&&C.keyFrameStart&&(Z.firstKeyFramePTS=(C.keyFrameStart-d.baseTime)/d.timescale),this.isVideoContiguous||(p.independent=H),this.isVideoContiguous||(this.isVideoContiguous=H),Z.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${X}/${oe} dropped: ${Z.dropped} start: ${Z.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=C2e(r,a,d,d),o.samples.length&&(p.text=w2e(o,a,d)),p}}function bC(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function Swt(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 wue(e,t,n){const r=e.codec;return r&&r.length>4?r:t===Co.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?AT(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 e8=[{demux:swt,remux:_wt},{demux:Xp,remux:QE},{demux:nwt,remux:QE},{demux:iwt,remux:QE}];e8.splice(2,0,{demux:rwt,remux:QE});class Eue{constructor(t,n,r,o,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.id=a,this.logger=s}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,o){const a=r.transmuxing;a.executeStart=gh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;o&&(this.currentTransmuxState=o);const{contiguous:d,discontinuity:h,trackSwitch:p,accurateTimeOffset:m,timeOffset:g,initSegmentChange:y}=o||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:x,initSegmentData:E}=c,_=kwt(s,n);if(_&&my(_.method)){const M=this.getDecrypter(),$=TG(_.method);if(M.isSync()){let I=M.softwareDecrypt(s,_.key.buffer,_.iv.buffer,$);if(r.part>-1){const F=M.flush();I=F&&F.buffer}if(!I)return a.executeEnd=gh(),zF(r);s=new Uint8Array(I)}else return this.asyncResult=!0,this.decryptionPromise=M.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,$).then(I=>{const N=this.push(I,null,r);return this.decryptionPromise=null,N}),this.decryptionPromise}const T=this.needsProbing(h,p);if(T){const M=this.configureTransmuxer(s);if(M)return this.logger.warn(`[transmuxer] ${M.message}`),this.observer.emit(Te.ERROR,Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.FRAG_PARSING_ERROR,fatal:!1,error:M,reason:M.message}),a.executeEnd=gh(),zF(r)}(h||p||y||T)&&this.resetInitSegment(E,S,k,x,n),(h||y||T)&&this.resetInitialTimestamp(C),d||this.resetContiguity();const D=this.transmux(s,_,g,m,r);this.asyncResult=w_(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 w_(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===Qn.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(o,a,s,l,d,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=gh()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,o,a){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(t,n,r,o),l.resetInitSegment(t,n,r,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,o,a){let s;return n&&n.method==="SAMPLE-AES"?s=this.transmuxSampleAes(t,n,r,o,a):s=this.transmuxUnencrypted(t,r,o,a),s}transmuxUnencrypted(t,n,r,o){const{audioTrack:a,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,l,c,n,r,!1,this.id),chunkMeta:o}}transmuxSampleAes(t,n,r,o,a){return this.demuxer.demuxSampleAes(t,n,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,o,!1,this.id),chunkMeta:a}))}configureTransmuxer(t){const{config:n,observer:r,typeSupported:o}=this;let a;for(let p=0,m=e8.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const zF=e=>({remuxResult:{},chunkMeta:e});function w_(e){return"then"in e&&e.then instanceof Function}class xwt{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 Cwt{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 Tue=0;class E2e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Tue++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const d=c.data,h=this.hls;if(!(!h||!(d!=null&&d.event)||d.instanceNo!==this.instanceNo))switch(d.event){case"init":{var p;const m=(p=this.workerContext)==null?void 0:p.objectURL;m&&self.URL.revokeObjectURL(m);break}case"transmuxComplete":{this.handleTransmuxComplete(d.data);break}case"flush":{this.onFlush(d.data);break}case"workerLog":{h.logger[d.data.logType]&&h.logger[d.data.logType](d.data.message);break}default:{d.data=d.data||{},d.data.frag=this.frag,d.data.part=this.part,d.data.id=this.id,h.trigger(d.event,d.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const d=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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===Te.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(c,d)};this.observer=new LG,this.observer.on(Te.FRAG_DECRYPTED,s),this.observer.on(Te.ERROR,s);const l=zle(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||ACt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=LCt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=ICt());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:wo(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Eue(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Eue(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Tue++;const n=this.hls.config,r=zle(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:wo(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),DCt(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,n,r,o,a,s,l,c,d,h){var p,m;d.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:y}=this,S=s?s.start:a.start,k=a.decryptdata,C=this.frag,x=!(C&&a.cc===C.cc),E=!(C&&d.level===C.level),_=C?d.sn-C.sn:-1,T=this.part?d.part-this.part.index:-1,D=_===0&&d.id>1&&d.id===C?.stats.chunkCount,P=!E&&(_===1||_===0&&(T===1||D&&T<=0)),M=self.performance.now();(E||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=M),s&&(T||!P)&&(s.stats.parsing.start=M);const $=!(C&&((p=a.initSegment)==null?void 0:p.url)===((m=C.initSegment)==null?void 0:m.url)),I=new Cwt(x,P,c,E,S,$);if(!P||x||$){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id===Qn.MAIN?"level":"track"}: ${d.level} id: ${d.id} discontinuity: ${x} trackSwitch: ${E} contiguous: ${P} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${$}`);const N=new xwt(r,o,n,l,h);this.configureTransmuxer(N)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:d,state:I},t instanceof ArrayBuffer?[t]:[]);else if(y){const N=y.push(t,k,d,I);w_(N)?N.then(F=>{this.handleTransmuxComplete(F)}).catch(F=>{this.transmuxerError(F,d,"transmuxer-interface push error")}):this.handleTransmuxComplete(N)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const o=r.flush(t);w_(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(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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 Aue=100;class wwt extends IG{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Qn.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(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Te.BUFFER_RESET,this.onBufferReset,this),t.on(Te.BUFFER_CREATED,this.onBufferCreated,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Te.FRAG_LOADING,this.onFragLoading,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Te.BUFFER_RESET,this.onBufferReset,this),t.off(Te.BUFFER_CREATED,this.onBufferCreated,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Te.FRAG_LOADING,this.onFragLoading,this),t.off(Te.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===Qn.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===rn.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===rn.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=z3e(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===rn.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=rn.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Aue),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=rn.IDLE):this.state=rn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case rn.IDLE:this.doTickIdle();break;case rn.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=rn.WAITING_INIT_PTS}break}case rn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case rn.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=rn.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=rn.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=rn.WAITING_TRACK,this.startFragRequested=!1;return}const d=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&d&&(this.bufferFlushed=!1,this.afterBufferFlushed(d,Co.AUDIO,Qn.AUDIO));const h=this.getFwdBufferInfo(d,Qn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Te.BUFFER_EOS,{type:"audio"}),this.state=rn.ENDED;return}const p=h.len,m=n.maxBufferLength,g=c.fragments,y=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&o){const E=S;c.PTSKnown&&Ey||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=y+.05)}if(p>=m&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,Qn.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 k_(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!==rn.STOPPED&&(this.setInterval(Aue),this.state=rn.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(Te.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!==rn.STOPPED&&(this.state=rn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const h=o[s];let p=0;if(a.live||(r=h.details)!=null&&r.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(h.details){var m;p=this.alignPlaylists(a,h.details,(m=this.levelLastLoaded)==null?void 0:m.details)}a.alignedSliding||(s2e(a,d),a.alignedSliding||OT(a,d),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(d,p),this.hls.trigger(Te.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===rn.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=rn.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:o,payload:a}=t,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const d=c[l];if(!d){this.warn("Audio track is undefined on fragment load progress");return}const h=d.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||d.audioCodec||"mp4a.40.2";let m=this.transmuxer;m||(m=this.transmuxer=new E2e(this.hls,Qn.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 EG(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);m.push(a,y,p,"",r,o,h.totalduration,!1,x,g)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${h.startSN} ,${h.endSN}],track ${l}`);const{cache:S}=this.waitingData=this.waitingData||{frag:r,part:o,cache:new a2e,complete:!1};S.push(new Uint8Array(a)),this.state!==rn.STOPPED&&(this.state=rn.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===Qn.MAIN&&Ks(n.frag)&&(this.mainFragLoading=n,this.state===rn.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==Qn.AUDIO){!this.audioOnly&&r.type===Qn.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(Te.AUDIO_TRACK_SWITCHED,co({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=rn.ERROR;return}switch(n.details){case Ut.FRAG_GAP:case Ut.FRAG_PARSING_ERROR:case Ut.FRAG_DECRYPT_ERROR:case Ut.FRAG_LOAD_ERROR:case Ut.FRAG_LOAD_TIMEOUT:case Ut.KEY_LOAD_ERROR:case Ut.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qn.AUDIO,n);break;case Ut.AUDIO_TRACK_LOAD_ERROR:case Ut.AUDIO_TRACK_LOAD_TIMEOUT:case Ut.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===rn.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===_i.AUDIO_TRACK&&(this.state=rn.IDLE);break;case Ut.BUFFER_ADD_CODEC_ERROR:case Ut.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Ut.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Ut.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==Co.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==Co.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===rn.ENDED&&(this.state=rn.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Qn.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:o}=this,{remuxResult:a,chunkMeta:s}=t,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:d,level:h}=l,{details:p}=h,{audio:m,text:g,id3:y,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=rn.PARSING,this.switchingTrack&&m&&this.completeAudioSwitch(this.switchingTrack),S!=null&&S.tracks){const k=c.initSegment||c;if(this.unhandledEncryptionError(S,c))return;this._bufferInitSegment(h,S.tracks,k,s),o.trigger(Te.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(m){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=m;d&&(d.elementaryStreams[Co.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(Co.AUDIO,k,C,x,E),this.bufferFragmentData(m,c,d,s)}if(y!=null&&(n=y.samples)!=null&&n.length){const k=go({id:r,frag:c,details:p},y);o.trigger(Te.FRAG_PARSING_METADATA,k)}if(g){const k=go({id:r,frag:c,details:p},g);o.trigger(Te.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,o){if(this.state!==rn.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Qn.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(Te.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(Te.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=rn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&OT(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;ym({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,Vv)||(LT(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(Te.AUDIO_TRACK_SWITCHED,co({},t))}}class BG extends nd{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&&Ule(r);return new Hle(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){gCt(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(Te.ERROR,{type:lr.NETWORK_ERROR,details:Ut.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:x,reason:x.message,level:n.level||void 0,parent:(d=o.fragments[0])==null?void 0:d.type,networkDetails:_,stats:a});return}o.playlistParsingError=null}}o.requestScheduled===-1&&(o.requestScheduled=a.loading.start);const p=this.hls.mainForwardBufferInfo,m=p?p.end-p.len:0,g=(o.edge-m)*1e3,y=t2e(o,g);if(o.requestScheduled+y0){if($>o.targetduration*3)this.log(`Playlist last advanced ${M.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,C=void 0;else if(r!=null&&r.tuneInGoal&&$-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${I} with playlist age: ${o.age}`),I=0;else{const N=Math.floor(I/o.targetduration);if(k+=N,C!==void 0){const F=Math.round(I%o.targetduration/o.partTarget);C+=F}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${M.toFixed(2)}s goal: ${I} skip sn ${N} to part ${C}`)}o.tuneInGoal=I}if(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C),x||!P){o.requestScheduled=s,this.loadingPlaylist(h,S);return}}else(o.canBlockReload||o.canSkipUntil)&&(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C));S&&k!==void 0&&o.canBlockReload&&(o.requestScheduled=a.loading.first+Math.max(y-l*2,y/2)),this.scheduleLoading(h,S,o)}else this.clearTimer()}scheduleLoading(t,n,r){const o=r||t.details;if(!o){this.loadingPlaylist(t,n);return}const a=self.performance.now(),s=o.requestScheduled;if(a>=s){this.loadingPlaylist(t,n);return}const l=s-a;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(t,n),l)}getDeliveryDirectives(t,n,r,o){let a=Ule(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=ZE.No),new Hle(r,o,a)}checkRetry(t){const n=t.details,r=DT(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=CG(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 T2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function Gz(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Ewt extends BG{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVEL_LOADING,this.onLevelLoading,this),t.off(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Te.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:o,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==o){this.warn(`Audio track with id:${r} and group:${o} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${o} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,o=this.groupIds;let a=this.currentTrack;if(!r||o?.length!==r?.length||r!=null&&r.some(l=>o?.indexOf(l)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(m=>!r||r.indexOf(m.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(m=>m.default)&&(this.selectDefaultTrack=!1),l.forEach((m,g)=>{m.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const m=pf(c,l,Vv);if(m>-1)a=l[m];else{const g=pf(c,this.tracks);a=this.tracks[g]}}let d=this.findTrackId(a);d===-1&&a&&(d=this.findTrackId(null));const h={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r?.join(",")}`),this.hls.trigger(Te.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(d!==-1&&p===-1)this.setAudioTrack(d);else if(l.length&&p===-1){var s;const m=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(m.message),this.hls.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:m})}}}onError(t,n){n.fatal||!n.context||n.context.type===_i.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&&ym(t,o,Vv))return o;const a=pf(t,this.tracksInGroup,Vv);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=Nxt(t,n.levels,r,s,Vv);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=pf(t,r);if(s>-1)return r[s]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,o=n[t],a=o.details&&!o.details.live;if(t===this.trackId&&o===r&&a||(this.log(`Switching to audio-track ${t} "${o.name}" lang:${o.lang} group:${o.groupId} channels:${o.channels}`),this.trackId=t,this.currentTrack=o,this.hls.trigger(Te.AUDIO_TRACK_SWITCHING,co({},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 Iue=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,A2e="HlsJsTrackRemovedError";class Awt extends Error{constructor(t){super(t),this.name=A2e}}class Iwt extends nd{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(Te.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=Zkt(I0(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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.BUFFER_RESET,this.onBufferReset,this),t.on(Te.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Te.BUFFER_EOS,this.onBufferEos,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.FRAG_PARSED,this.onFragParsed,this),t.on(Te.FRAG_CHANGED,this.onFragChanged,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.BUFFER_RESET,this.onBufferReset,this),t.off(Te.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Te.BUFFER_EOS,this.onBufferEos,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.FRAG_PARSED,this.onFragParsed,this),t.off(Te.FRAG_CHANGED,this.onFragChanged,this),t.off(Te.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?go(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=go({},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=I0(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,Lue(r),Lwt(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: ${wo(r,(c,d)=>c==="initSegment"?void 0:d)}; transfer tracks: ${wo(o,(c,d)=>c==="initSegment"?void 0:d)}}`),!C3e(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(Te.MEDIA_DETACHING,{}),this.onMediaAttaching(Te.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const d=c,h=o[d];if(h){const p=h.buffer;if(p){const m=this.fragmentTracker,g=h.id;if(m.hasFragments(g)||m.hasParts(g)){const k=jr.getBuffered(p);m.detectEvictedFragments(d,k,g,null,!0)}const y=UF(d),S=[d,p];this.sourceBuffers[y]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(d),this.trackSourceBuffer(d,h)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var t;const n=(t=this.mediaSource)==null?void 0:t.readyState;return n==="open"||n==="ended"}onMediaDetaching(t,n){const r=!!n.transferMedia;this.transferData=this.overrides=void 0;const{media:o,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=a.readyState==="open";try{const c=a.sourceBuffers;for(let d=c.length;d--;)l&&c[d].abort(),a.removeSourceBuffer(c[d]);l&&a.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}o&&(o.removeEventListener("emptied",this._onMediaEmptied),r||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(o.removeAttribute("src"),this.appendSource&&Lue(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Te.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 Twt(this.tracks)}onBufferCodecs(t,n){var r;const o=this.tracks,a=Object.keys(n);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in n&&(o.audio||o.video)||o.audiovideo&&("audio"in n||"video"in n),l=!s&&this.sourceBufferCount&&this.media&&a.some(c=>!o[c]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(o)}" and "${a}" SourceBuffers`);return}a.forEach(c=>{var d,h;const p=n[c],{id:m,codec:g,levelCodec:y,container:S,metadata:k,supplemental:C}=p;let x=o[c];const E=(d=this.transferData)==null||(d=d.tracks)==null?void 0:d[c],_=E!=null&&E.buffer?E:x,T=_?.pendingCodec||_?.codec,D=_?.levelCodec;x||(x=o[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:y,metadata:k,id:m});const P=XE(T,D),M=P?.replace(Iue,"$1");let $=XE(g,y);const I=(h=$)==null?void 0:h.replace(Iue,"$1");$&&P&&M!==I&&(c.slice(0,5)==="audio"&&($=AT($,this.appendSource)),this.log(`switching codec ${T} to ${$}`),$!==(x.pendingCodec||x.codec)&&(x.pendingCodec=$),x.container=S,this.appendChangeType(c,S,$))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const o=`${n};codecs=${r}`,a={label:`change-type=${o}`,execute:()=>{const s=this.tracks[t];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${t} sourceBuffer type to ${o}`),l.changeType(o),s.codec=r,s.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${t} SourceBuffer type`,s)}};this.append(a,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,o=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,Qn.MAIN))==null?void 0:n.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>o||c!=null&&c.buffer&&jr.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,Qn.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:t},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:n}=this;t&&n&&(this.blockedAudioAppend=null,n.unblockAudio(t.op))}onBufferAppending(t,n){const{tracks:r}=this,{data:o,type:a,parent:s,frag:l,part:c,chunkMeta:d,offset:h}=n,p=d.buffering[a],{sn:m,cc:g}=l,y=self.performance.now();p.start=y;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=y),k&&k.start===0&&(k.start=y);const C=r.audio;let x=!1;a==="audio"&&C?.container==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||d.id===1||this.lastMpegAudioChunk.sn!==d.sn,this.lastMpegAudioChunk=d);const E=r.video,_=E?.buffer;if(_&&m!=="initSegment"){const P=c||l,M=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const I=P.start+P.duration*.05,N=_.buffered,F=this.currentOp("video");!N.length&&!F?this.blockAudio(P):!F&&!jr.isBuffered(_,I)&&this.lastVideoAppendEndI||${var P;p.executeStart=self.performance.now();const M=(P=this.tracks[a])==null?void 0:P.buffer;M&&(x?this.updateTimestampOffset(M,T,.1,a,m,g):h!==void 0&&Nn(h)&&this.updateTimestampOffset(M,h,1e-6,a,m,g)),this.appendExecutor(o,a)},onStart:()=>{},onComplete:()=>{const P=self.performance.now();p.executeEnd=p.end=P,S.first===0&&(S.first=P),k&&k.first===0&&(k.first=P);const M={};this.sourceBuffers.forEach(([$,I])=>{$&&(M[$]=jr.getBuffered(I))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Te.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:d,parent:l.type,timeRanges:M})},onError:P=>{var M;const $={type:lr.MEDIA_ERROR,parent:l.type,details:Ut.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:d,error:P,err:P,fatal:!1},I=(M=this.media)==null?void 0:M.error;if(P.code===DOMException.QUOTA_EXCEEDED_ERR||P.name=="QuotaExceededError"||"quota"in P)$.details=Ut.BUFFER_FULL_ERROR;else if(P.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!I)$.errorAction=vy(!0);else if(P.name===A2e&&this.sourceBufferCount===0)$.errorAction=vy(!0);else{const N=++this.appendErrors[a];this.warn(`Failed ${N}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${I||"no media error"})`),(N>=this.hls.config.appendErrorMaxRetry||I)&&($.fatal=!0)}this.hls.trigger(Te.ERROR,$)}};this.log(`queuing "${a}" append sn: ${m}${c?" p: "+c.index:""} of ${l.type===Qn.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(Te.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[Co.AUDIOVIDEO]?a.push("audiovideo"):(s[Co.AUDIO]&&a.push("audio"),s[Co.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(Te.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(Te.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Te.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===Ut.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;Nn(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(Nn(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(Nn(c)&&c>0){const d=Math.max(o.maxBufferLength,c),h=Math.max(d,s),p=Math.floor(a/s)*s+h;this.flushFrontBuffer(a,s,p)}}flushBackBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const l=jr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Te.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(Te.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(Te.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=jr.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),d=s.end(l-1);if(r>c||t>=c&&t<=d)return;this.hls.trigger(Te.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 Nn(a)?{duration:a}:null;const s=this.media.duration,l=Nn(r.duration)?r.duration:0;return o>l&&o>s||!Nn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(Nn(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}) ${wo(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(Te.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(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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":""} ${wo(l)}`);try{const h=r.addSourceBuffer(d),p=UF(s),m=[s,h];n[p]=m,l.buffer=h}catch(h){var o;this.error(`error while trying to add sourceBuffer: ${h.message}`),this.shiftAndExecuteNext(s),(o=this.operationQueue)==null||o.removeBlockers(),delete this.tracks[s],this.hls.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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")&&__(r,"video")&&(o=bxt(o,r));const a=XE(o,t.levelCodec);return a?n.slice(0,5)==="audio"?AT(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(Te.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(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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=Nn(o.duration)?o.duration:1/0,d=Nn(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 Awt(`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 Lue(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function Lwt(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 NG{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(Te.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Te.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Te.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&&Nn(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,NG.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 Dwt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},fu=Dwt,Pwt={HLS:"h"},Rwt=Pwt;class Ef{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Ef?r:new Ef(r))),this.value=t,this.params=n}}const Mwt="Dict";function Owt(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 $wt(e,t,n,r){return new Error(`failed to ${e} "${Owt(t)}" as ${n}`,{cause:r})}function Tf(e,t,n){return $wt("serialize",e,t,n)}class I2e{constructor(t){this.description=t}}const Due="Bare Item",Bwt="Boolean";function Nwt(e){if(typeof e!="boolean")throw Tf(e,Bwt);return e?"?1":"?0"}function Fwt(e){return btoa(String.fromCharCode(...e))}const jwt="Byte Sequence";function Vwt(e){if(ArrayBuffer.isView(e)===!1)throw Tf(e,jwt);return`:${Fwt(e)}:`}const zwt="Integer";function Uwt(e){return e<-999999999999999||99999999999999912)throw Tf(e,Wwt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const Kwt="String",qwt=/[\x00-\x1f\x7f]+/;function Ywt(e){if(qwt.test(e))throw Tf(e,Kwt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Xwt(e){return e.description||e.toString().slice(7,-1)}const Zwt="Token";function Pue(e){const t=Xwt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Tf(t,Zwt);return t}function Kz(e){switch(typeof e){case"number":if(!Nn(e))throw Tf(e,Due);return Number.isInteger(e)?L2e(e):Gwt(e);case"string":return Ywt(e);case"symbol":return Pue(e);case"boolean":return Nwt(e);case"object":if(e instanceof Date)return Hwt(e);if(e instanceof Uint8Array)return Vwt(e);if(e instanceof I2e)return Pue(e);default:throw Tf(e,Due)}}const Jwt="Key";function qz(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Tf(e,Jwt);return e}function FG(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${qz(t)}`:`;${qz(t)}=${Kz(n)}`).join("")}function P2e(e){return e instanceof Ef?`${Kz(e.value)}${FG(e.params)}`:Kz(e)}function Qwt(e){return`(${e.value.map(P2e).join(" ")})${FG(e.params)}`}function eEt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Tf(e,Mwt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof Ef||(a=new Ef(a));let s=qz(o);return a.value===!0?s+=FG(a.params):(s+="=",Array.isArray(a.value)?s+=Qwt(a):s+=P2e(a)),s}).join(`,${r}`)}function R2e(e,t){return eEt(e,t)}const ef="CMCD-Object",hs="CMCD-Request",$v="CMCD-Session",$p="CMCD-Status",tEt={br:ef,ab:ef,d:ef,ot:ef,tb:ef,tpb:ef,lb:ef,tab:ef,lab:ef,url:ef,pb:hs,bl:hs,tbl:hs,dl:hs,ltc:hs,mtp:hs,nor:hs,nrr:hs,rc:hs,sn:hs,sta:hs,su:hs,ttfb:hs,ttfbb:hs,ttlb:hs,cmsdd:hs,cmsds:hs,smrt:hs,df:hs,cs:hs,ts:hs,cid:$v,pr:$v,sf:$v,sid:$v,st:$v,v:$v,msd:$v,bs:$p,bsd:$p,cdn:$p,rtp:$p,bg:$p,pt:$p,ec:$p,e:$p},nEt={REQUEST:hs};function rEt(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 iEt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?rEt(t):{};return r.reduce((a,s)=>{var l;const c=tEt[s]||o[s]||nEt.REQUEST,d=(l=a[c])!==null&&l!==void 0?l:a[c]={};return d[s]=e[s],a},n)}function oEt(e){return["ot","sf","st","e","sta"].includes(e)}function sEt(e){return typeof e=="number"?Nn(e):e!=null&&e!==""&&e!==!1}const M2e="event";function aEt(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 t8=e=>Math.round(e),Yz=(e,t)=>Array.isArray(e)?e.map(n=>Yz(n,t)):e instanceof Ef&&typeof e.value=="string"?new Ef(Yz(e.value,t),e.params):(t.baseUrl&&(e=aEt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),_C=e=>t8(e/100)*100,lEt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Ef&&typeof e.value=="string"?n=new Ef([e]):typeof e=="string"&&(n=[e])),Yz(n,t)},uEt={br:t8,d:t8,bl:_C,dl:_C,mtp:_C,nor:lEt,rtp:_C,tb:t8},O2e="request",$2e="response",jG=["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"],cEt=["e"],dEt=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function JA(e){return dEt.test(e)}function fEt(e){return jG.includes(e)||cEt.includes(e)||JA(e)}const B2e=["d","dl","nor","ot","rtp","su"];function hEt(e){return jG.includes(e)||B2e.includes(e)||JA(e)}const pEt=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function vEt(e){return jG.includes(e)||B2e.includes(e)||pEt.includes(e)||JA(e)}const mEt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function gEt(e){return mEt.includes(e)||JA(e)}const yEt={[$2e]:vEt,[M2e]:fEt,[O2e]:hEt};function N2e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||O2e,a=r===1?gEt:yEt[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===$2e||o===M2e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const d=go({},uEt,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let m=e[p];const g=d[p];if(typeof g=="function"&&(m=g(m,h)),p==="v"){if(r===1)return;m=r}p=="pr"&&m===1||(c&&p==="ts"&&!Nn(m)&&(m=Date.now()),sEt(m)&&(oEt(p)&&typeof m=="string"&&(m=new I2e(m)),n[p]=m))}),n}function bEt(e,t={}){const n={};if(!e)return n;const r=N2e(e,t),o=iEt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=R2e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function _Et(e,t,n){return go(e,bEt(t,n))}const SEt="CMCD";function kEt(e,t={}){return e?R2e(N2e(e,t),{whitespace:!1}):""}function xEt(e,t={}){if(!e)return"";const n=kEt(e,t);return encodeURIComponent(n)}function CEt(e,t={}){if(!e)return"";const n=xEt(e,t);return`${SEt}=${n}`}const Rue=/CMCD=[^&#]+/;function wEt(e,t,n){const r=CEt(t,n);if(!r)return e;if(Rue.test(e))return e.replace(Rue,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class EEt{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(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Te.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Te.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:Rwt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){go(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={}),_Et(t.headers,n,a)):t.url=wEt(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:jr.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}}const TEt=3e5;class AEt extends nd{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.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===Ut.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: ${wo(a)} penalized: ${wo(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]>TEt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,i2e(n),this.hls.trigger(Te.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 is(h.attrs);p["PATHWAY-ID"]=s;const m=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;m&&(r[p.AUDIO]=m,p.AUDIO=m),g&&(o[p.SUBTITLES]=g,p.SUBTITLES=g);const y=F2e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new k_({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:y,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${o}"`);const y=h.data;if(y?.VERSION!==1){this.log(`Steering VERSION ${y.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=y.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":C}=y;if(S)try{this.uri=new self.URL(S,o).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${S}`);return}this.scheduleRefresh(this.uri||m.url),k&&this.clonePathways(k);const x={steeringManifest:y,url:o.toString()};this.hls.trigger(Te.STEERING_MANIFEST_LOADED,x),C&&this.updatePathwayPriority(C)},onError:(h,p,m,g)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${p.url})`),this.stopLoad(),h.code===410){this.enabled=!1,this.log(`Steering manifest ${p.url} no longer available`);return}let y=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(y=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,y)},onTimeout:(h,p,m)=>{this.log(`Timeout loading steering manifest (${p.url})`),this.scheduleRefresh(this.uri||p.url)}};this.log(`Requesting steering manifest: ${o}`),this.loader.load(a,c,d)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const o=(r=this.hls)==null?void 0:r.media;if(o&&!o.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function Mue(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=go({},s);return l.details=void 0,l.attrs=new is(l.attrs),l.url=l.attrs.URI=F2e(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 F2e(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 gy extends nd{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=gy.CDMCleanupPromise?[gy.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=B4(this.config));const l=s.map(OF).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=JE(s);if(r!=="sinf"||l!==as.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=AG(JSON.parse(g).sinf),S=R3e(y);if(!S)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(S.subarray(8,24))}catch(g){this.warn(`${a} Failed to parse sinf: ${g}`);return}const d=zl(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let m=h[d];for(let g=0;gthis.generateRequestWithPreferredKeySession(y,r,o,"encrypted-event-key-match")),m.catch(C=>this.handleError(C));break}}m||this.handleError(new Error(`Key ID ${d} not encountered in playlist. Key-system sessions ${p.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Te.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Te.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Te.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Te.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===as.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:lr.KEY_SYSTEM_ERROR,details:Ut.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 X3e===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=lCt(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: ${wo(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(d=>{this.log(`Failed to obtain access to key-system "${t}": ${d}`)}),l.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=d.createMediaKeys().then(m=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(m,t,g):m)));return p.catch(m=>{this.error(`Failed to create media-keys for "${t}"}: ${m}`)}),p})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${zl(t.keyId||[])} keyUri: ${t.uri}`);const o=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:o,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),o=SC(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=B4(this.config),r=t.map(JE).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=co({},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(Te.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Te.ERROR,{type:lr.KEY_SYSTEM_ERROR,details:Ut.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=SC(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=JE(t.keyFormat),a=o?[o]:B4(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=B4(this.config)),t.length===0)throw new Zu({type:lr.KEY_SYSTEM_ERROR,details:Ut.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${wo({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=SC(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 LG,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===as.FAIRPLAY&&this.updateKeySession(t,Vz("acknowledged")).then(()=>this.removeSession(t)).catch(x=>this.handleError(x)):this.warn(`unhandled media key message type "${k}"`)},p=(y,S)=>{S.keyStatus=y;let k;y.startsWith("usable")?d.emit("resolved"):y==="internal-error"||y==="output-restricted"||y==="output-downscaled"?k=Oue(y,S.decryptdata):y==="expired"?k=new Error(`key expired (keyId: ${l})`):y==="released"?k=new Error("key released"):y==="status-pending"||this.warn(`unhandled key status change "${y}" (keyId: ${l})`),k&&(d.eventNames().length?d.emit("error",k):this.handleError(k))},m=t._onkeystatuseschange=y=>{if(!t.mediaKeysSession){d.emit("error",new Error("invalid state"));return}const k=this.getKeyStatuses(t);if(!Object.keys(k).some(_=>k[_]!=="status-pending"))return;if(k[l]==="expired"){this.log(`Expired key ${wo(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} (${wo(k)}).`)}};ql(t.mediaKeysSession,"message",h),ql(t.mediaKeysSession,"keystatuseschange",m);const g=new Promise((y,S)=>{d.on("error",S),d.on("resolved",y)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(y=>{throw new Zu({type:lr.KEY_SYSTEM_ERROR,details:Ut.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===as.PLAYREADY&&a.length===16&&q3e(a);const s=zl(a);r==="internal-error"&&(this.bannedKeyIds[s]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${s} key-session "${t.mediaKeysSession.sessionId}"`),n[s]=r}),n}fetchServerCertificate(t){const n=this.config,r=n.loader,o=new r(n),a=this.getServerCertificateUrl(t);return a?(this.log(`Fetching server certificate for "${t}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:a},d=n.certLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,y,S)=>{s(m.data)},onError:(m,g,y,S)=>{l(new Zu({type:lr.KEY_SYSTEM_ERROR,details:Ut.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:co({url:c.url,data:void 0},m)},`"${t}" certificate request failed (${a}). Status: ${m.code} (${m.text})`))},onTimeout:(m,g,y)=>{l(new Zu({type:lr.KEY_SYSTEM_ERROR,details:Ut.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(m,g,y)=>{l(new Error("aborted"))}};o.load(c,h,p)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((o,a)=>{t.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r.byteLength}) on "${n}"`),o(t)}).catch(s=>{a(new Zu({type:lr.KEY_SYSTEM_ERROR,details:Ut.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:lr.KEY_SYSTEM_ERROR,details:Ut.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t.decryptdata,error:o,fatal:!1},o.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const o=new DOMParser().parseFromString(r,"application/xml"),a=o.querySelectorAll("HttpHeader");if(a.length>0){let h;for(let p=0,m=a.length;p in key message");return Vz(atob(d))}setupLicenseXHR(t,n,r,o){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return a.call(this.hls,t,n,r,o)}).catch(s=>{if(!r.decryptdata)throw s;return t.open("POST",n,!0),a.call(this.hls,t,n,r,o)}).then(s=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:s||o})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:o}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((o,a)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const d=this.config.licenseResponseCallback;if(d)try{c=d.call(this.hls,l,s,t)}catch(h){this.error(h)}o(c)}else{const c=r.errorRetry,d=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d||l.status>=400&&l.status<500)a(new Zu({type:lr.KEY_SYSTEM_ERROR,details:Ut.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==as.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,bm.clearKeyUriToKeyIdMap();const o=r.length;gy.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(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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(cCt(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(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${d}`)})})}return Promise.resolve()}}gy.CDMCleanupPromise=void 0;function SC(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 IEt(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 Oue(e,t){const n=e==="output-restricted",r=n?Ut.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Ut.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Zu({type:lr.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class LEt{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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Te.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(Te.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(Te.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 j2e(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 V2e(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){ho.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){ho.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function W1(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);n==="disabled"&&(e.mode=n)}function Xz(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=PEt(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 n8(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=n8(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVEL_LOADING,this.onLevelLoading,this),t.off(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Te.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;n8(r.textTracks).forEach(s=>{W1(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:o,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==o){this.warn(`Subtitle track with id:${r} and group:${o} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${o} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,o=this.groupIds;let a=this.currentTrack;if(!r||o?.length!==r?.length||r!=null&&r.some(s=>o?.indexOf(s)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(h=>!r||r.indexOf(h.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(h=>h.default)&&(this.selectDefaultTrack=!1),s.forEach((h,p)=>{h.id=p});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!a&&l){this.selectDefaultTrack=!1;const h=pf(l,s);if(h>-1)a=s[h];else{const p=pf(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const d={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Te.SUBTITLE_TRACKS_UPDATED,d),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let o=0;o-1){const a=this.tracksInGroup[o];return this.setSubtitleTrack(o),a}else{if(r)return null;{const a=pf(t,n);if(a>-1)return n[a]}}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,o=t.groupId,a=this.getUrlWithDirectives(t.url,n),s=t.details,l=s?.age;this.log(`Loading subtitle ${r} "${t.name}" lang:${t.lang} group:${o}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${a}`),this.hls.trigger(Te.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=n8(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>Gz(r,a))[0],o||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(a=>{a.mode!=="disabled"&&a!==o&&(a.mode="disabled")}),o){const a=this.subtitleDisplay?"showing":"hidden";o.mode!==a&&(o.mode=a)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!Nn(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(Te.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(Te.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 MEt(){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 Ib(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const yy=.025;let BT=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function OEt(e,t,n){return`${e.identifier}-${n+1}-${Ib(t)}`}class $Et{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=Nn(t)?t:this.duration;return this.cumulativeDuration+n}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const n=this.resumeAnchor;if(n)return HF(t,n)}return t}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)0||this.assetListResponse!==null}toString(){return BEt(this)}}function HF(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function O1(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class NEt{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(Te.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(Te.LEVEL_LOADED,s),a.once(Te.AUDIO_TRACK_LOADED,s),a.once(Te.SUBTITLE_TRACK_LOADED,s),a.on(Te.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Te.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Te.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=z2e(n,t.config.primarySessionId||"").href}catch{}t.loadSource(n)}}bufferedInPlaceToEnd(t){var n;if(!this.appendInPlace)return!1;if((n=this.hls)!=null&&n.bufferedToEnd)return!0;if(!t)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),o=this.timelineOffset,a=jr.bufferInfo(t,o,0);return this.getAssetTime(a.end)>=r-.02}reachedPlayout(t){const r=this.interstitial.playoutLimit;return this.startOffset+t>=r}get destroyed(){var t;return!((t=this.hls)!=null&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return((t=this.hls)==null?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const n=jr.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(n.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;if(!t)return 0;const n=this.interstitial.playoutLimit;if(n){const r=n-this.startOffset;if(r>0&&r1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const n=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,t-n),r)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var t;(t=this.hls)!=null&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){var n;this.loadSource(),(n=this.hls)==null||n.attachMedia(t)}detachMedia(){var t;this.removeMediaListeners(),this.mediaAttached=null,(t=this.hls)==null||t.detachMedia()}resumeBuffering(){var t;(t=this.hls)==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.hls)==null||t.pauseBuffering()}transferMedia(){var t;return this.bufferSnapShot(),((t=this.hls)==null?void 0:t.transferMedia())||null}resetDetails(){const t=this.hls;if(t&&this.hasDetails){t.stopLoad();const n=r=>delete r.details;t.levels.forEach(n),t.allAudioTracks.forEach(n),t.allSubtitleTracks.forEach(n),this.hasDetails=!1}}on(t,n,r){var o;(o=this.hls)==null||o.on(t,n)}once(t,n,r){var o;(o=this.hls)==null||o.once(t,n)}off(t,n,r){var o;(o=this.hls)==null||o.off(t,n)}toString(){var t;return`HlsAssetPlayer: ${O1(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const $ue=.033;class FEt extends nd{constructor(t,n){super("interstitials-sched",n),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(t=>t.reset()),this.events=this.items=null}resetErrorsInRange(t,n){return this.events?this.events.reduce((r,o)=>t<=o.startOffset&&n>o.startOffset?(delete o.error,r+1):r,0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,n){if(t.event)return this.findEventIndex(t.event.identifier);let r=-1;t.nextEvent?r=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(r=this.findEventIndex(t.previousEvent.identifier)+1);const o=this.items;if(o)for(o[r]||(n===void 0&&(n=t.start),r=this.findItemIndexAtTime(n));r>=0&&(a=o[r])!=null&&a.event;){var a;r--}return r}findItemIndexAtTime(t,n){const r=this.items;if(r)for(let o=0;oa.start&&t1)for(let a=0;al&&(n!l.includes(d.identifier)):[];s.length&&s.sort((d,h)=>{const p=d.cue.pre,m=d.cue.post,g=h.cue.pre,y=h.cue.post;if(p&&!g)return-1;if(g&&!p||m&&!y)return 1;if(y&&!m)return-1;if(!p&&!g&&!m&&!y){const S=d.startTime,k=h.startTime;if(S!==k)return S-k}return d.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(d=>{this.removeEvent(d)}),this.updateSchedule(t,c)}updateSchedule(t,n=[],r=!1){const o=this.events||[];if(o.length||n.length||this.length<2){const a=this.items,s=this.parseSchedule(o,t);(r||n.length||a?.length!==s.length||s.some((c,d)=>Math.abs(c.playout.start-a[d].playout.start)>.005||Math.abs(c.playout.end-a[d].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(n,a))}}parseDateRanges(t,n,r){const o=[],a=Object.keys(t);for(let s=0;s!c.error&&!(c.cue.once&&c.hasPlayed)),t.length){this.resolveOffsets(t,n);let c=0,d=0;if(t.forEach((h,p)=>{const m=h.cue.pre,g=h.cue.post,y=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,C=h.duration,x=h.timelineOccupancy===BT.Range?C:0,E=h.resumptionOffset,_=y?.startTime===k,T=k+h.cumulativeDuration;let D=S?T+C:k+E;if(m||!g&&k<=0){const M=d;d+=x,h.timelineStart=T;const $=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else if(k<=a){if(!_){const I=k-c;if(I>$ue){const N=c,F=d;d+=I;const W=s;s+=I;const U={previousEvent:t[p-1]||null,nextEvent:h,start:N,end:N+I,playout:{start:W,end:s},integrated:{start:F,end:d}};r.push(U)}else I>0&&y&&(y.cumulativeDuration+=I,r[r.length-1].end=k)}g&&(D=T),h.timelineStart=T;const M=d;d+=x;const $=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else return;const P=h.resumeTime;g||P>a?c=a:c=P}),c{const d=l.cue.pre,h=l.cue.post,p=d?0:h?o:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=$m(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+1yy?(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=$m(null,l.fragments,r);if(!d)return this.log(`"${t.identifier}" resumption ${r} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const h=s==="audio"?.175:0;return Math.abs(d.start-r){const k=m.data,C=k?.ASSETS;if(!Array.isArray(C)){const x=this.assignAssetListError(t,Ut.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),y.url,g,S);this.hls.trigger(Te.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Te.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(m,g,y,S)=>{const k=this.assignAssetListError(t,Ut.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${m.code} ${m.text} (${g.url})`),g.url,S,y);this.hls.trigger(Te.ERROR,k)},onTimeout:(m,g,y)=>{const S=this.assignAssetListError(t,Ut.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,m,y);this.hls.trigger(Te.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Te.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:lr.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Bue(e){e?.play().catch(()=>{})}function kC(e,t){return`[${e}] Advancing timeline position to ${t}`}class VEt extends nd{constructor(t,n){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const o=r-this.timelinePos;if(Math.abs(o)<1/7056e5)return;const s=o<=-.01;this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(r,r-o)&&this.updateSchedule(!0),this.checkBuffer(),s&&r=l.end){var c;const g=this.findItemIndex(l);let y=this.schedule.findItemIndexAtTime(r);if(y===-1&&(y=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${y})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&y>g){const S=this.schedule.findJumpRestrictedIndex(g+1,y);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(y);return}const d=this.playingAsset;if(!d){if(this.playingLastItem&&this.isInterstitial(l)){const g=l.event.assetList[0];g&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,g))}return}const h=d.timelineStart,p=d.duration||0;if(s&&r=h+p){var m;(m=l.event)!=null&&m.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,d)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const o=this.playingItem;if(!o||this.playingLastItem)return;if(r>=o.end){this.timelinePos=o.end;const l=this.findItemIndex(o);this.setSchedulePosition(l+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);r>=s&&this.setScheduleToAssetAtTime(r,a)},this.onScheduleUpdate=(r,o)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,l=a.events||[],c=a.items||[],d=a.durations,h=r.map(S=>S.identifier),p=!!(l.length||h.length);(p||o)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l} Schedule: ${c.map(S=>dd(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let m=null,g=null;s&&(m=this.updateItem(s,this.timelinePos),this.itemsMatch(s,m)?this.playingItem=m:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const y=this.bufferingItem;if(y&&(g=this.updateItem(y,this.bufferedPos),this.itemsMatch(y,g)?this.bufferingItem=g:y.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(y.event,null))),r.forEach(S=>{S.assetList.forEach(k=>{this.clearAssetPlayer(k.identifier,null)})}),this.playerQueue.forEach(S=>{if(S.interstitial.appendInPlace){const k=S.assetItem.timelineStart,C=S.timelineOffset-k;if(C)try{S.timelineOffset=k}catch(x){Math.abs(C)>yy&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(Te.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:d,removedIds:h}),this.isInterstitial(s)&&h.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(m,s),y&&g!==m&&this.trimInPlace(g,y),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new jEt(t),this.schedule=new FEt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Te.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Te.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Te.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Te.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Te.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Te.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Te.MEDIA_ENDED,this.onMediaEnded,this),t.on(Te.ERROR,this.onError,this),t.on(Te.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Te.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Te.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Te.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Te.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Te.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Te.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Te.MEDIA_ENDED,this.onMediaEnded,this),t.off(Te.ERROR,this.onError,this),t.off(Te.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,m,g,y,S)=>{if(p){let k=p[m].start;const C=p.event;if(C){if(m==="playout"||C.timelineOccupancy!==BT.Point){const x=r(g);x?.interstitial===C&&(k+=x.assetItem.startOffset+x[S])}}else{const x=y==="bufferedPos"?s():t[y];k+=x-p.start}return k}return 0},a=(p,m)=>{var g;if(p!==0&&m!=="primary"&&(g=t.schedule)!=null&&g.length){var y;const S=t.schedule.findItemIndexAtTime(p),k=(y=t.schedule.items)==null?void 0:y[S];if(k){const C=k[m].start-k.start;return p+C}}return p},s=()=>{const p=t.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var m,g;return(m=t.primaryDetails)!=null&&m.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,m)=>{var g,y;const S=t.effectivePlayingItem;if(S!=null&&(g=S.event)!=null&&g.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${m}"`);const k=t.effectivePlayingItem,C=t.schedule.findItemIndexAtTime(p,m),x=(y=t.schedule.items)==null?void 0:y[C],E=t.getBufferingPlayer(),_=E?.interstitial,T=_?.appendInPlace,D=k&&t.itemsMatch(k,x);if(k&&(T||D)){const P=r(t.playingAsset),M=P?.media||t.primaryMedia;if(M){const $=m==="primary"?M.currentTime:o(k,m,t.playingAsset,"timelinePos","currentTime"),I=p-$,N=(T?$:M.currentTime)+I;if(N>=0&&(!P||T||N<=P.duration)){M.currentTime=N;return}}}if(x){let P=p;if(m!=="primary"){const $=x[m].start,I=p-$;P=x.start+I}const M=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(M||x.event.appendInPlace)){const $=t.media||(T?E?.media:null);$&&($.currentTime=P)}else if(k){const $=t.findItemIndex(k);if(C>$){const N=t.schedule.findJumpRestrictedIndex($+1,C);if(N>$){t.setSchedulePosition(N);return}}let I=0;if(M)t.timelinePos=P,t.checkBuffer();else{const N=x.event.assetList,F=p-(x[m]||x).start;for(let W=N.length;W--;){const U=N[W];if(U.duration&&F>=U.startOffset&&F{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const m=n();return t.isInterstitial(m)?m:null},h={get bufferedEnd(){const p=n(),m=t.bufferingItem;if(m&&m===p){var g;return o(m,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-m.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=d(),m=t.effectivePlayingItem;return m&&m===p?o(m,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-m.playout.start:0},set currentTime(p){const m=d(),g=t.effectivePlayingItem;g&&g===m&&c(p+g.playout.start,"playout")},get duration(){const p=d();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const m=(p=d())==null?void 0:p.event.assetList;return m?m.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const m=(p=d())==null?void 0:p.event;return m&&t.effectivePlayingAsset?m.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return d()}};return this.manager={get events(){var p;return((p=t.schedule)==null||(p=p.events)==null?void 0:p.slice(0))||[]},get schedule(){var p;return((p=t.schedule)==null||(p=p.items)==null?void 0:p.slice(0))||[]},get interstitialPlayer(){return d()?h:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return n()},get bufferingIndex(){const p=n();return t.findItemIndex(p)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const p=t.effectivePlayingItem;return t.findItemIndex(p)},primary:{get bufferedEnd(){return s()},get currentTime(){const p=t.timelinePos;return p>0?p:0},set currentTime(p){c(p,"primary")},get duration(){return l("primary")},get seekableStart(){var p;return((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0}},integrated:{get bufferedEnd(){return o(n(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return o(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(p){c(p,"integrated")},get duration(){return l("integrated")},get seekableStart(){var p;return a(((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0,"integrated")}},skip:()=>{const p=t.effectivePlayingItem,m=p?.event;if(m&&!m.restrictions.skip){const g=t.findItemIndex(p);if(m.appendInPlace){const y=p.playout.start+p.event.duration;c(y+.001,"playout")}else t.advanceAfterAssetEnded(m,g,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const n=this.playingItem,r=(t=this.schedule)==null?void 0:t.items;return!this.playbackStarted||!n||!r?!1:this.findItemIndex(n)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let o=this.media;!o&&(t=this.bufferingItem)!=null&&(t=t.event)!=null&&t.appendInPlace&&(o=this.primaryMedia);const a=(n=o)==null?void 0:n.currentTime;if(!(a===void 0||!Nn(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} ${wo(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 ${wo(a)}`);else if(!this.detachedData||s.media===n){const y=this.playerQueue;y.length>1&&y.forEach(S=>{if(l&&S.interstitial.appendInPlace!==c){const k=S.interstitial;this.clearInterstitial(S.interstitial,null),k.appendInPlace=!1,k.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${k}`)}}),this.hls.detachMedia(),this.detachedData={media:n}}}const p=a&&"mediaSource"in a&&((o=a.mediaSource)==null?void 0:o.readyState)!=="closed",m=p&&a?a:n;this.log(`${p?"transfering MediaSource":"attaching media"} to ${l?t:"Primary"} from ${h} (media.currentTime: ${n.currentTime})`);const g=this.schedule;if(m===a&&g){const y=l&&t.assetId===g.assetIdAtEnd;m.overrides={duration:g.duration,endOfStream:!l||y,cueRemoval:!l}}t.attachMedia(m)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,n=t?.events;if(!n||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,o=this.effectivePlayingItem;if(r===-1){const a=this.hls.startPosition;if(this.log(kC("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&&dd(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,m=p?.identifier,g=m?this.getAssetPlayer(m):null;if(g&&m&&(!this.eventItemsMatch(s,a)||n!==void 0&&m!==h.assetList[n].identifier)){var c;const y=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${y+1}/${h.assetList.length} ${O1(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Te.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:y,event:h,schedule:o.slice(0),scheduleIndex:t,player:g}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),y);return}this.retreiveMediaSource(m,a),g.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&g.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${dd(s)}`),h.hasPlayed=!0,this.hls.trigger(Te.INTERSTITIAL_ENDED,{event:h,schedule:o.slice(0),scheduleIndex:t}),h.cue.once)){var d;this.updateSchedule();const y=(d=this.schedule)==null?void 0:d.items;if(a&&y){const S=this.findItemIndex(a);this.advanceSchedule(S,y,n,s,l)}return}}this.advanceSchedule(t,o,n,s,l)}advanceSchedule(t,n,r,o,a){const s=this.schedule;if(!s)return;const l=n[t]||null,c=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(h=>{const p=h.interstitial,m=s.findEventIndex(p.identifier);(mt+1)&&this.clearInterstitial(p,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const h=l.event;if(r===void 0){r=s.findAssetIndex(h,this.timelinePos);const y=WF(h,r-1);if(h.isAssetPastPlayoutLimit(y)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=y}const p=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let m=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||o)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${dd(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Te.INTERSTITIAL_STARTED,{event:h,schedule:n.slice(0),scheduleIndex:t})),!h.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${h}`);return}if(h.assetListLoader&&(h.assetListLoader.destroy(),h.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${h}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const g=h.assetList[r];if(!g){this.advanceAfterAssetEnded(h,t,r||0);return}if(m||(m=this.getAssetPlayer(g.identifier)),m===null||m.destroyed){const y=h.assetList.length;this.warn(`asset ${r+1}/${y} player destroyed ${h}`),m=this.createAssetPlayer(h,g,r),m.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(m,r,n,t,c),this.shouldPlay&&Bue(m.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Bue(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 ${dd(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(kC("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 ${dd(t)}`),this.hls.trigger(Te.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:n}),this.checkBuffer())}getPrimaryResumption(t,n){const r=t.start;if(this.primaryLive){const o=this.primaryDetails;if(n===0)return this.hls.startPosition;if(o&&(ro.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(t){const n=this.getAssetPlayer(t.identifier);return n!=null&&n.hls?n.hls.bufferedToEnd:jr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,n,r){n?this.setBufferingItem(n):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const o=this.primaryMedia;if(!o)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,o),r&&this.startLoadingPrimaryAt(t,r)),r||(this.log(kC("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(Te.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Te.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=co(co({},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=co(co({},this.altSelection),{},{audio:r});return}const a=co(co({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=co(co({},this.altSelection),{},{subtitles:r});return}const a=co(co({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=Gle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=Gle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setSubtitleOption(n)||n.id!==-1&&o.setSubtitleOption(r)))}onBufferCodecs(t,n){const r=n.tracks;r&&(this.requiredTracks=r)}onBufferAppended(t,n){this.checkBuffer()}onBufferFlushed(t,n){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const o=this.timelinePos;this.bufferedPos=o,this.checkBuffer()}}onBufferedToEnd(t){if(!this.schedule)return;const n=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach((a,s)=>{t.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const r=t.end+.25,o=jr.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${dd(t)} (was ${dd(n)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(t,n){return!!n&&(t===n||t.event&&n.event&&this.eventItemsMatch(t,n)||!t.event&&!n.event&&this.findItemIndex(t)===this.findItemIndex(n))}eventItemsMatch(t,n){var r;return!!n&&(t===n||t.event.identifier===((r=n.event)==null?void 0:r.identifier))}findItemIndex(t,n){return t&&this.schedule?this.schedule.findItemIndex(t,n):-1}updateSchedule(t=!1){var n;const r=this.mediaSelection;r&&((n=this.schedule)==null||n.updateSchedule(r,[],t))}checkBuffer(t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r)return;const o=jr.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=o.len<1),this.updateBufferedPos(o.end,r,t)}updateBufferedPos(t,n,r){const o=this.schedule,a=this.bufferingItem;if(this.bufferedPos>t||!o)return;if(n.length===1&&this.itemsMatch(n[0],a)){this.bufferedPos=t;return}const s=this.playingItem,l=this.findItemIndex(s);let c=o.findItemIndexAtTime(t);if(this.bufferedPos=a.end||(d=m.event)!=null&&d.appendInPlace&&t+.01>=m.start)&&(c=p),this.isInterstitial(a)){const g=a.event;if(p-l>1&&g.appendInPlace===!1||g.assetList.length===0&&g.assetListLoader)return}if(this.bufferedPos=t,c>h&&c>l)this.bufferedToItem(m);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&m.start{const a=this.getAssetPlayer(o.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(n))})}setBufferingItem(t){const n=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(t,n)&&r){const{items:o,events:a}=r;if(!o||!a)return n;const s=this.isInterstitial(t),l=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const c=l?l.remaining:n?n.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${dd(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const d=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const m=this.getAssetPlayer(h.identifier);m&&(p===d&&m.loadSource(),m.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(Te.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:o.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==t&&(this.bufferingItem=t);return n}bufferedToItem(t,n=0){const r=this.setBufferingItem(t);if(!this.playbackDisabled){if(this.isInterstitial(t))this.bufferedToEvent(t,n);else if(r!==null){this.bufferingAsset=null;const o=this.detachedData;o?o.mediaSource?this.attachPrimary(t.start,t,!0):this.preloadPrimary(t):this.preloadPrimary(t)}}}preloadPrimary(t){const n=this.findItemIndex(t),r=this.getPrimaryResumption(t,n);this.startLoadingPrimaryAt(r)}bufferedToEvent(t,n){const r=t.event,o=r.assetList.length===0&&!r.assetListLoader,a=r.cue.once;if(o||!a){const s=this.preloadAssets(r,n);if(s!=null&&s.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}preloadAssets(t,n){const r=t.assetUrl,o=t.assetList.length,a=o===0&&!t.assetListLoader,s=t.cue.once;if(a){const c=t.timelineStart;if(t.appendInPlace){var l;const m=this.playingItem;!this.isInterstitial(m)&&(m==null||(l=m.nextEvent)==null?void 0:l.identifier)===t.identifier&&this.flushFrontBuffer(c+.25)}let d,h=0;if(!this.playingItem&&this.primaryLive&&(h=this.hls.startPosition,h===-1&&(h=this.hls.liveSyncPosition||0)),h&&!(t.cue.pre||t.cue.post)){const m=h-c;m>0&&(d=Math.round(m*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:o} ${t}${d?` live-start: ${h} start-offset: ${d}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,d);p&&(t.assetListLoader=p)}else if(!s&&o){for(let d=n;d{this.hls.trigger(Te.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:o})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const T=n.duration;T&&_{if(_.live){var T;const M=new Error(`Interstitials MUST be VOD assets ${t}`),$={fatal:!0,type:lr.OTHER_ERROR,details:Ut.INTERSTITIAL_ASSET_ITEM_ERROR,error:M},I=((T=this.schedule)==null?void 0:T.findEventIndex(t.identifier))||-1;this.handleAssetItemError($,t,I,r,M.message);return}const D=_.edge-_.fragmentStart,P=n.duration;(S||P===null||D>P)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${P} > ${D}`),n.duration=D,this.updateSchedule())};y.on(Te.LEVEL_UPDATED,(_,{details:T})=>k(T)),y.on(Te.LEVEL_PTS_UPDATED,(_,{details:T})=>k(T)),y.on(Te.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,T)=>{const D=this.getAssetPlayer(p);if(D&&T.tracks){D.off(Te.BUFFER_CODECS,C),D.tracks=T.tracks;const P=this.primaryMedia;this.bufferingAsset===D.assetItem&&P&&!D.media&&this.bufferAssetPlayer(D,P)}};y.on(Te.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(Te.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(Te.MEDIA_ENDED,E(r)),y.once(Te.PLAYOUT_LIMIT_REACHED,E(1/0)),y.on(Te.ERROR,(_,T)=>{if(!this.schedule)return;const D=this.getAssetPlayer(p);if(T.details===Ut.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(Te.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const T=new Error(`Asset player destroyed unexpectedly ${p}`),D={fatal:!0,type:lr.OTHER_ERROR,details:Ut.INTERSTITIAL_ASSET_ITEM_ERROR,error:T};this.handleAssetItemError(D,t,this.schedule.findEventIndex(t.identifier),r,T.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${O1(n)}`),this.hls.trigger(Te.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&&dd(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} ${O1(l)}`),this.hls.trigger(Te.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&&!C3e(p,t.tracks)){const m=new Error(`Asset ${O1(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:lr.OTHER_ERROR,details:Ut.INTERSTITIAL_ASSET_ITEM_ERROR,error:m},y=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,y,m.message);return}}this.transferMediaTo(t,n)}handleInPlaceStall(t){const n=this.schedule,r=this.primaryMedia;if(!n||!r)return;const o=r.currentTime,a=n.findAssetIndex(t,o),s=t.assetList[a];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||o-s.timelineStart,d=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+d} in ${l} ${t} (media.currentTime: ${o})`),c&&(d/r.playbackRate<.5||l.bufferedInPlaceToEnd(r))&&l.hls){const h=n.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,h,a)}}}}advanceInPlace(t){const n=this.primaryMedia;n&&n.currentTime!S.error))n.error=y;else for(let S=o;S{const C=parseFloat(S.DURATION);this.createAsset(a,k,h,c+h,C,S.URI),h+=C}),a.duration=h,this.log(`Loaded asset-list with duration: ${h} (was: ${d}) ${a}`);const p=this.waitingItem,m=p?.event.identifier===s;this.updateSchedule();const g=(o=this.bufferingItem)==null?void 0:o.event;if(m){var y;const S=this.schedule.findEventIndex(s),k=(y=this.schedule.items)==null?void 0:y[S];if(k){if(!this.playingItem&&this.timelinePos>k.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==S){a.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(k)}this.setSchedulePosition(S)}else if(g?.identifier===s){const S=a.assetList[0];if(S){const k=this.getAssetPlayer(S.identifier);if(g.appendInPlace){const C=this.primaryMedia;k&&C&&this.bufferAssetPlayer(k,C)}else k&&k.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case Ut.ASSET_LIST_PARSING_ERROR:case Ut.ASSET_LIST_LOAD_ERROR:case Ut.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Ut.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 Nue=500;class zEt extends IG{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Qn.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(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Te.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Te.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=rn.IDLE,this.setInterval(Nue),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=rn.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 k_(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new k_(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Qn.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!==rn.STOPPED&&this.setInterval(Nue)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:o,levels:a}=this,{details:s,id:l}=n;if(!a){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=a[l];if(l>=a.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let d=0;if(s.live||(r=c.details)!=null&&r.live){if(s.deltaUpdateFailed)return;const p=this.mainDetails;if(!p){this.startFragRequested=!1;return}const m=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(OT(s,p),d=s.fragmentStart):m&&(d=m.start,Uz(s,d));else{var h;d=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),d===0&&m&&(d=m.start,Uz(s,d))}p&&!this.startFragRequested&&this.setStartPosition(p,d)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(Te.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===rn.IDLE&&($m(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&&my(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,TG(o.method)).catch(l=>{throw a.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Te.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=rn.IDLE})}}doTick(){if(!this.media){this.state=rn.IDLE;return}if(this.state===rn.IDLE){const{currentTrackId:t,levels:n}=this,r=n?.[t];if(!r||!n.length||!r.details||this.waitForLive(r))return;const{config:o}=this,a=this.getLoadPosition(),s=jr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,o.maxBufferHole),{end:l,len:c}=s,d=r.details,h=this.hls.maxBufferLength+d.levelTargetDuration;if(c>h)return;const p=d.fragments,m=p.length,g=d.edge;let y=null;const S=this.fragPrevious;if(lg-x?0:x;y=$m(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 HEt={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},U2e=e=>String.fromCharCode(HEt[e]||e),yd=15,dh=100,WEt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},GEt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},KEt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},qEt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},YEt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class XEt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;ho.log(`${this.time} [${t}] ${r}`)}}}const Bv=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=U2e(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 = "+wo(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+wo(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 Fue{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[yd-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[yd-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: "+wo(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 jue{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=e8t(),this.logger=void 0;const o=this.logger=new XEt;this.channels=[null,new Fue(t,n,o),new Fue(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"["+Bv([n[r],n[r+1]])+"] -> ("+Bv([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(QEt(o,a,c)){xC(null,null,c),this.logger.log(3,()=>"Repeated command ("+Bv([o,a])+") is dropped");continue}xC(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 xC(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 "+Bv([o,a])+" orig: "+Bv([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 ("+Bv([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?WEt[t]:KEt[t]:r=s===1?GEt[t]:qEt[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 '"+U2e(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 = "+Bv(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=YEt[a],n%2===1&&(s.background=s.background+"_semi")):n===45?s.background="transparent":(s.foreground="black",n===47&&(s.underline=!0));const l=t<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");D=I,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return P},set:function(I){const N=o(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");P=N,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return M},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");M=I,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return $},set:function(I){const N=o(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");$=N,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class t8t{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function W2e(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 n8t=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 G2e(e,t,n,r){const o=r?e.split(r):[e];for(const a in o){if(typeof o[a]!="string")continue;const s=o[a].split(n);if(s.length!==2)continue;const l=s[0],c=s[1];t(l,c)}}const Zz=new VG(0,0,""),CC=Zz.align==="middle"?"middle":"center";function r8t(e,t,n){const r=e;function o(){const l=W2e(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 n8t;G2e(l,function(m,g){let y;switch(m){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){d.set(m,n[S].region);break}break;case"vertical":d.alt(m,g,["rl","lr"]);break;case"line":y=g.split(","),d.integer(m,y[0]),d.percent(m,y[0])&&d.set("snapToLines",!1),d.alt(m,y[0],["auto"]),y.length===2&&d.alt("lineAlign",y[1],["start",CC,"end"]);break;case"position":y=g.split(","),d.percent(m,y[0]),y.length===2&&d.alt("positionAlign",y[1],["start",CC,"end","line-left","line-right","auto"]);break;case"size":d.percent(m,g);break;case"align":d.alt(m,g,["start",CC,"end","left","right"]);break}},/:/,/\s/),c.region=d.get("region",null),c.vertical=d.get("vertical","");let h=d.get("line","auto");h==="auto"&&Zz.line===-1&&(h=-1),c.line=h,c.lineAlign=d.get("lineAlign","start"),c.snapToLines=d.get("snapToLines",!0),c.size=d.get("size",100),c.align=d.get("align",CC);let p=d.get("position","auto");p==="auto"&&Zz.position===50&&(p=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=p}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=o(),s(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),s(),t.endTime=o(),s(),a(e,t)}function K2e(e){return e.replace(//gi,` `)}class i8t{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new t8t,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=K2e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{r8t(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 o8t=/\r\n|\n\r|\n|\r/g,KF=function(t,n,r=0){return t.slice(r,r+n.length)===n},s8t=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(!Nn(n)||!Nn(r)||!Nn(o)||!Nn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function zG(e,t,n){return Ib(e.toString())+Ib(t.toString())+Ib(n)}const a8t=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 l8t(e,t,n,r,o,a,s){const l=new i8t,c=cc(new Uint8Array(e)).trim().replace(o8t,` `).split(` `),d=[],h=t?pwt(t.baseTime,t.timescale):0;let p="00:00.000",m=0,g=0,y,S=!0;l.oncue=function(k){const C=n[r];let x=n.ccOffset;const E=(m-h)/9e4;if(C!=null&&C.new&&(g!==void 0?x=n.ccOffset=C.start:a8t(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=zG(k.startTime,k.endTime,D)),k.endTime>0&&d.push(k)},l.onparsingerror=function(k){y=k},l.onflush=function(){if(y){s(y);return}a(d)},c.forEach(k=>{if(S)if(KF(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{KF(C,"LOCAL:")?p=C.slice(6):KF(C,"MPEGTS:")&&(m=parseInt(C.slice(7)))});try{g=s8t(p)/1e3}catch(C){y=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const qF="stpp.ttml.im1t",q2e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Y2e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,u8t={left:"start",center:"center",right:"end",start:"start",end:"end"};function Vue(e,t,n,r){const o=hi(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=hwt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(c8t(l,s)))}catch(l){r(l)}}function c8t(e,t){const o=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!o)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((p,m)=>(p[m]=o.getAttribute(`ttp:${m}`)||a[m],p),{}),l=o.getAttribute("xml:space")!=="preserve",c=zue(YF(o,"styling","style")),d=zue(YF(o,"layout","region")),h=YF(o,"body","[begin]");return[].map.call(h,p=>{const m=X2e(p,l);if(!m||!p.hasAttribute("begin"))return null;const g=ZF(p.getAttribute("begin"),s),y=ZF(p.getAttribute("dur"),s);let S=ZF(p.getAttribute("end"),s);if(g===null)throw Uue(p);if(S===null){if(y===null)throw Uue(p);S=g+y}const k=new VG(g-t,S-t,m);k.id=zG(k.startTime,k.endTime,k.text);const C=d[p.getAttribute("region")],x=c[p.getAttribute("style")],E=d8t(C,x,c),{textAlign:_}=E;if(_){const T=u8t[_];T&&(k.lineAlign=T),k.align=_}return go(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 zue(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function X2e(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?X2e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function d8t(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 Uue(e){return new Error(`Could not parse ttml timestamp ${e}`)}function ZF(e,t){if(!e)return null;let n=W2e(e);return n===null&&(q2e.test(e)?n=f8t(e,t):Y2e.test(e)&&(n=h8t(e,t))),n}function f8t(e,t){const n=q2e.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 h8t(e,t){const n=Y2e.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 wC{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 p8t{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=Wue(),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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Te.FRAG_LOADING,this.onFragLoading,this),t.on(Te.FRAG_LOADED,this.onFragLoaded,this),t.on(Te.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Te.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Te.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Te.FRAG_LOADING,this.onFragLoading,this),t.off(Te.FRAG_LOADED,this.onFragLoaded,this),t.off(Te.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Te.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Te.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new wC(this,"textTrack1"),n=new wC(this,"textTrack2"),r=new wC(this,"textTrack3"),o=new wC(this,"textTrack4");this.cea608Parser1=new jue(1,t,n),this.cea608Parser2=new jue(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],d=v8t(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(Te.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===Qn.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(Te.FRAG_LOADED,c):this.hls.trigger(Te.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{W1(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Wue(),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(T2e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?n8(s.textTracks):null;if(this.tracks.forEach((c,d)=>{let h;if(l){let p=null;for(let m=0;md!==null).map(d=>d.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(Te.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===Qn.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===Qn.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(Te.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;Vue(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(Te.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(Te.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?Jc(r.initSegment.data,new Uint8Array(o)).buffer:o;l8t(d,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Te.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(Te.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||Vue(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=>V2e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(Te.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Qn.SUBTITLE&&this.onFragLoaded(Te.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===Qn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aXz(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>Xz(l[c],n,o))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let o=2;for(let a=0;a=16?c--:c++;const g=K2e(d.trim()),y=zG(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(y)||(s=new h(t,n,g),s.id=y,s.line=m+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),o.push(s))}return e&&o.length&&(o.sort((m,g)=>m.line==="auto"||g.line==="auto"?0:m.line>8&&g.line>8?g.line-m.line:m.line-g.line),o.forEach(m=>V2e(e,m))),o}};function y8t(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const b8t=/(\d+)-(\d+)\/(\d+)/;class Gue{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||x8t,this.controller=new self.AbortController,this.stats=new _G}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=_8t(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&&Nn(c)?c:d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(w_(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var m;this.response=this.loader=p;const g=Math.max(self.performance.now(),o.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},d-(g-o.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new C8t(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=k8t(p.headers)||o.total;const y=(m=this.callbacks)==null?void 0:m.onProgress;return y&&Nn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,y):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var m,g;const y=this.response;if(!y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),o.loading.end=Math.max(self.performance.now(),o.loading.first);const S=p[l];S&&(o.loaded=o.total=S);const k={url:y.url,data:p,code:y.status},C=(m=this.callbacks)==null?void 0:m.onProgress;C&&!Nn(n.highWaterMark)&&C(o,t,p,y),(g=this.callbacks)==null||g.onSuccess(k,o,t,y)}).catch(p=>{var m;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const g=p&&p.code||0,y=p?p.message:null;(m=this.callbacks)==null||m.onError({code:g,text:y},t,p?p.details:null,o)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,o=0,a){const s=new a2e,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 _8t(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(go({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function S8t(e){const t=b8t.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function k8t(e){const t=e.get("Content-Range");if(t){const r=S8t(t);if(Nn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function x8t(e,t){return new self.Request(e.url,t)}class C8t extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const w8t=/^age:\s*[\d.]+\s*$/im;class J2e{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 _G,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&&Nn(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const o=n.readyState,a=this.config;if(!r.aborted&&o>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),o===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const d=n.status,h=n.responseType==="text"?n.responseText:null;if(d>=200&&d<300){const y=h??n.response;if(y!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?y.byteLength:y.length;r.loaded=r.total=S,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const k=(s=this.callbacks)==null?void 0:s.onProgress;k&&k(r,t,y,n);const C={url:n.responseURL,data:y,code:d};(l=this.callbacks)==null||l.onSuccess(C,r,t,n);return}}const p=a.loadPolicy.errorRetry,m=r.retry,g={url:t.url,data:void 0,code:d};if(PT(p,m,!1,g))this.retry(p);else{var c;ho.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(PT(t,n,!0))this.retry(t);else{var r;ho.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=CG(t,r.retry),r.retry++,ho.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&&w8t.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 E8t={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},T8t=co(co({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:J2e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Fxt,bufferController:Iwt,capLevelController:NG,errorController:Hxt,fpsController:LEt,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:X3e,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:E8t},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},A8t()),{},{subtitleStreamController:zEt,subtitleTrackController:REt,timelineController:p8t,audioStreamController:wwt,audioTrackController:Ewt,emeController:gy,cmcdController:EEt,contentSteeringController:AEt,interstitialsController:VEt});function A8t(){return{cueHandler:g8t,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 I8t(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=Jz(e),o=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return o.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=t[l]===void 0,d=[];a.forEach(h=>{const p=`${s}Loading${h}`,m=t[p];if(m!==void 0&&c){d.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=m,g.maxTimeToFirstByteMs=m;break;case"MaxRetry":g.errorRetry.maxNumRetry=m,g.timeoutRetry.maxNumRetry=m;break;case"RetryDelay":g.errorRetry.retryDelayMs=m,g.timeoutRetry.retryDelayMs=m;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=m,g.timeoutRetry.maxRetryDelayMs=m;break}}}),d.length&&n.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${wo(t[l])}`)}),co(co({},r),t)}function Jz(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(Jz):Object.keys(e).reduce((t,n)=>(t[n]=Jz(e[n]),t),{}):e}function L8t(e,t){const n=e.loader;n!==Gue&&n!==J2e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):y8t()&&(e.loader=Gue,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const r8=2,D8t=.1,P8t=.05,R8t=100;class M8t extends W3e{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(Te.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.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(R8t),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(Te.MEDIA_ENDED,{stalled:!1}));return}if(!jr.getBuffered(s).length){this.nudgeRetry=0;return}const p=jr.bufferInfo(s,t,0),m=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const D=Kue(this.hls.inFlightFragments,t),P=p.len>r8,M=!m||D||m-t>r8&&!g.getPartialFragment(t);if(P||M)return;this.moved=!1}const y=(o=this.hls)==null?void 0:o.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!m)return;const P=Math.max(m,p.start||0)-t,$=!!(y!=null&&y.live)?y.targetduration*2:r8,I=EC(t,g);if(P>0&&(P<=$||I)){s.paused||this._trySkipBufferHole(I);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),C=this.waiting;let x=this.stalled;if(x===null)if(C>0&&k-C=S||C)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(y!=null&&y.live)&&Math.abs(t-(y?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Te.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const T=jr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(T,E,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Te.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var r;const o=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&o&&o.length>1&&t>o.end(0)){const a=jr.bufferedInfo(jr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=jr.timeRangesToArray(o),l=jr.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-d<1&&t-d<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${d} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let m=EC(t,this.fragmentTracker);m&&"fragment"in m?m=m.fragment:m||(m=void 0);const g=jr.bufferInfo(this.media,t,0);this.hls.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:m,buffer:g.len,bufferInfo:g})}}}}}_tryFixBufferStall(t,n,r){var o,a;const{fragmentTracker:s,media:l}=this,c=(o=this.hls)==null?void 0:o.config;if(!l||!s||!c)return;const d=(a=this.hls)==null?void 0:a.latestLevelDetails,h=EC(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,Qn.MAIN),s=r.getFragAtPos(o,Qn.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 (${wo(t)})`);this.warn(s.message),n.trigger(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:t.len,bufferInfo:t,stalled:{start:a}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:r,media:o}=this,a=(n=this.hls)==null?void 0:n.config;if(!o||!r||!a)return 0;const s=o.currentTime,l=jr.bufferInfo(o,s,0),c=s0&&l.len<1&&o.readyState<3,m=c-s;if(m>0&&(h||p)){if(m>a.maxBufferHole){let y=!1;if(s===0){const S=r.getAppendedFrag(0,Qn.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,wo(o?co({type:o},r):r))}return a}const TC=(()=>{const e=Qz();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class $8t{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(Te.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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.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&&W1(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;nTC&&(p=TC),p-h<=0&&(p=h+O8t);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,Xz(a,n,r,d)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:o,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const l=Qz();if(r&&o&&!s){const{fragmentStart:S,fragmentEnd:k}=t;let C=this.assetCue;C?(C.startTime=S,C.endTime=k):l&&(C=this.assetCue=JF(l,S,k,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),C&&(C.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(C),C.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:d}=t,h=Object.keys(d);let p=this.dateRangeCuesAppended;if(c&&n){var m;if((m=c.cues)!=null&&m.length){const S=Object.keys(p).filter(k=>!h.includes(k));for(let k=S.length;k--;){var g;const C=S[k],x=(g=p[C])==null?void 0:g.cues;delete p[C],x&&Object.keys(x).forEach(E=>{const _=x[E];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(_)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const y=t.fragments[t.fragments.length-1];if(!(h.length===0||!Nn(y?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(F!==C.id){const W=d[F];if(W.class===C.class&&W.startDate>C.startDate&&(!N||C.startDate.01&&(F.startTime=x,F.endTime=D);else if(l){let W=C.attr[N];iCt(N)&&(W=w3e(W));const G=JF(l,x,D,{key:N,data:W},ic.dateRange);G&&(G.id=k,this.id3Track.addCue(G),_[N]=G,s&&(N==="X-ASSET-LIST"||N==="X-ASSET-URL")&&G.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:T}}}}}class B8t{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,r=this.levelDetails;if(!n||!r)return;this.currentTime=n.currentTime;const o=this.computeLatency();if(o===null)return;this._latency=o;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!r.live)return;const l=this.targetLatency;if(l===null)return;const c=o-l,d=Math.min(this.maxLatency,l+r.targetduration);if(c.05&&this.forwardBufferLength>1){const p=Math.min(2,Math.max(1,s)),m=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,m));this.changeMediaPlaybackRate(n,g)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:r,targetduration:o}=t,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let d=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||d===0)&&(d=a!==void 0?a:s*o);const h=o;return d+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,h)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const r=this.levelDetails;if(r===null)return null;const o=r.edge,a=t-n-this.edgeStalled,s=o-r.totalduration,l=o-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,a),l)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.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===Ut.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 N8t extends BG{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Te.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Te.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,o=[],a={},s={};let l=!1,c=!1,d=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:m,videoCodec:g}=h;m&&(h.audioCodec=m=AT(m,r)||void 0),g&&(g=h.videoCodec=_xt(g));const{width:y,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(y&&S)),c||(c=!!g),d||(d=!!m),C||m&&!this.isAudioSupported(m)||g&&!this.isVideoSupported(g)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:x,"FRAME-RATE":E,"HDCP-LEVEL":_,"PATHWAY-ID":T,RESOLUTION:D,"VIDEO-RANGE":P}=p,$=`${`${T||"."}-`}${h.bitrate}-${D}-${E}-${x}-${P}-${_}`;if(a[$])if(a[$].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const I=s[$]+=1;h.attrs["PATHWAY-ID"]=new Array(I+1).join(".");const N=this.createLevel(h);a[$]=N,o.push(N)}else a[$].addGroupId("audio",p.AUDIO),a[$].addGroupId("text",p.SUBTITLES);else{const I=this.createLevel(h);a[$]=I,s[$]=1,o.push(I)}}),this.filterAndSortMediaOptions(o,n,l,c,d)}createLevel(t){const n=new k_(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=B3e(o,[])}return n}isAudioSupported(t){return __(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return __(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))&&Lxt(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: ${wo(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(Te.ERROR,{type:lr.MEDIA_ERROR,details:Ut.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)),Yue(l)),n.subtitles&&(c=n.subtitles,Yue(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 IT.indexOf(x.videoRange)-IT.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=jle(x.videoCodec),T=jle(E.videoCodec);if(_!==T)return T-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=TT(x.codecSet),T=TT(E.codecSet);if(_!==T)return T-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let m=p[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==p.length)){for(let x=0;x_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=T)}break}const y=a&&!o,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),C={levels:d,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:o,altAudio:k&&!y&&l.some(x=>!!x.url)};h.end=performance.now(),this.hls.trigger(Te.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(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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(Te.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===_i.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Qn.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(Te.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));i2e(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(Te.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(Te.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Yue(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function Q2e(){return self.SourceBuffer||self.WebKitSourceBuffer}function e4e(){if(!I0())return!1;const t=Q2e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function F8t(){if(!e4e())return!1;const e=I0();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(S_(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(S_(t,"audio"))))}function j8t(){var e;const t=Q2e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const V8t=100;class z8t extends IG{constructor(t,n,r){super(t,n,r,"stream-controller",Qn.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||!Nn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,Qn.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(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Te.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Te.BUFFER_CREATED,this.onBufferCreated,this),t.on(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Te.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Te.BUFFER_CREATED,this.onBufferCreated,this),t.off(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.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(V8t),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=rn.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=rn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case rn.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=rn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=rn.IDLE;break}break}case rn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===rn.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(Te.BUFFER_EOS,S),this.state=rn.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===rn.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=rn.WAITING_LEVEL,this.startFragRequested=!1;return}const h=l.len,p=this.getMaxBufferLength(s.maxBitrate);if(h>=p)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const m=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(m,d);if(this.couldBacktrack&&!this.fragPrevious&&g&&Ks(g)&&this.fragmentTracker.getState(g)!==ca.OK){var y;const k=((y=this.backtrackFragment)!=null?y:g).sn-d.startSN,C=d.fragments[k-1];C&&g.cc===C.cc&&(g=C,this.fragmentTracker.removeFragment(C))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,m)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?Co.AUDIO:Co.VIDEO,C=(k===Co.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,Qn.MAIN)}g=this.getNextFragmentLoopLoading(g,d,l,Qn.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,m))}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);o===ca.NOT_LOADED||o===ca.PARTIAL?Ks(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,r):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,Qn.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(Te.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Te.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Te.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=LT(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===Qn.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===rn.PARSED&&(this.state=rn.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Ks(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&jr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var r;if(n.fatal){this.state=rn.ERROR;return}switch(n.details){case Ut.FRAG_GAP:case Ut.FRAG_PARSING_ERROR:case Ut.FRAG_DECRYPT_ERROR:case Ut.FRAG_LOAD_ERROR:case Ut.FRAG_LOAD_TIMEOUT:case Ut.KEY_LOAD_ERROR:case Ut.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qn.MAIN,n);break;case Ut.LEVEL_LOAD_ERROR:case Ut.LEVEL_LOAD_TIMEOUT:case Ut.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===rn.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===_i.LEVEL&&(this.state=rn.IDLE);break;case Ut.BUFFER_ADD_CODEC_ERROR:case Ut.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Ut.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 Ut.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=rn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==Co.AUDIO||!this.altAudio){const r=(n===Co.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Qn.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=rn.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(Te.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===rn.STOPPED||this.state===rn.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:r}=this,{remuxResult:o,chunkMeta:a}=t,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:d}=s,{video:h,text:p,id3:m,initSegment:g}=o,{details:y}=d,S=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=rn.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(Te.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(Nn(C)&&(!E||E.baseTime!==C||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:x,trackId:_},r.trigger(Te.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:x,trackId:_})}}if(h&&y){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=y.fragments[l.sn-1-y.startSN],C=l.sn===y.startSN,x=!k||l.cc>k.cc;if(o.independent!==!1){const{startPTS:E,endPTS:_,startDTS:T,endDTS:D}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:_,startDTS:T,endDTS:D};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!x&&(this.couldBacktrack=!0),h.dropped&&h.independent){const P=this.getMainFwdBufferInfo(),M=(P?P.end:this.getLoadPosition())+this.config.maxBufferHole,$=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!C&&M<$-this.config.maxBufferHole&&!x){this.backtrack(l);return}else x&&(l.gap=!0);l.setElementaryStreamInfo(h.type,l.start,_,l.start,D,!0)}else C&&E-(y.appliedTimelineOffset||0)>r8&&(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[Co.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(Co.AUDIO,k,C,x,E),this.bufferFragmentData(S,l,c,a)}if(y&&m!=null&&m.samples.length){const k={id:n,frag:l,details:y,samples:m.samples};r.trigger(Te.FRAG_PARSING_METADATA,k)}if(y&&p){const k={id:n,frag:l,details:y,samples:p.samples};r.trigger(Te.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!==rn.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=XE(a.codec,d);h==="mp4a"&&(h="mp4a.40.5");const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const m=a.metadata;m&&"channelCount"in m&&(m.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),d&&d!==h&&this.log(`Swapping manifest audio codec "${d}" for "${h}"`),a.levelCodec=h,a.id=Qn.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=Qn.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(Te.BUFFER_CODECS,n),!this.hls)return;c.forEach(d=>{const p=n[d].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Te.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,Qn.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=rn.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(jr.isBuffered(t,r)?n=this.getAppendedFrag(r):jr.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const o=this.fragPlaying,a=n.level;(!o||n.sn!==o.sn||o.level!==a)&&(this.fragPlaying=n,this.hls.trigger(Te.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(Te.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 Nn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Nn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?$m(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 U8t extends nd{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=Ut.KEY_LOAD_ERROR,r,o,a){return new mh({type:lr.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:a,error:r,networkDetails:o})}loadClear(t,n,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let o=0,a=n.length;o{if(!this.emeController)return;s.setKeyFormat(l);const c=JE(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=B4(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,Ut.KEY_LOAD_ERROR,d))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Ut.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,Ut.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=lxt(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,bm.setKeyIdForUri(t.decryptdata.uri,l))}}const a=this.emeController.loadKey(r);return(t.keyLoadPromise=a.then(s=>(t.mediaKeySessionContext=s,r))).catch(s=>{throw t.keyLoadPromise=null,"data"in s&&(s.data.frag=n),s})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,o=r.loader,a=new o(r);return n.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},d=r.keyLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,y,S)=>{const{frag:k,keyInfo:C}=y,x=QF(C.decryptdata);if(!k.decryptdata||C!==this.keyIdToKeyInfo[x])return l(this.createKeyLoadError(k,Ut.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),S));C.decryptdata.key=k.decryptdata.key=new Uint8Array(m.data),k.keyLoader=null,C.loader=null,s({frag:k,keyInfo:C})},onError:(m,g,y,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ut.KEY_LOAD_ERROR,new Error(`HTTP Error ${m.code} loading key ${m.text}`),y,co({url:c.url,data:void 0},m)))},onTimeout:(m,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ut.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),y))},onAbort:(m,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ut.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 Xue(e){const{type:t}=e;switch(t){case _i.AUDIO_TRACK:return Qn.AUDIO;case _i.SUBTITLE_TRACK:return Qn.SUBTITLE;default:return Qn.MAIN}}function ej(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class H8t{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Te.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_LOADING,this.onLevelLoading,this),t.off(Te.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Te.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Te.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:_i.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:_i.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:_i.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:_i.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[_i.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[_i.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===_i.MANIFEST?a=r.manifestLoadPolicy.default:a=go({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),Nn((n=t.deliveryDirectives)==null?void 0:n.part)){let d;if(t.type===_i.LEVEL&&t.level!==null?d=this.hls.levels[t.level].details:t.type===_i.AUDIO_TRACK&&t.id!==null?d=this.hls.audioTracks[t.id].details:t.type===_i.SUBTITLE_TRACK&&t.id!==null&&(d=this.hls.subtitleTracks[t.id].details),d){const h=d.partTarget,p=d.targetduration;if(h&&p){const m=Math.max(h*3,p*.8)*1e3;a=go({},a,{maxTimeToFirstByteMs:Math.min(m,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(m,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(d,h,p,m)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const y=d.data;h.parsing.start=performance.now(),vf.isMediaPlaylist(y)||p.type!==_i.MANIFEST?this.handleTrackOrLevelPlaylist(d,h,p,m||null,g):this.handleMasterPlaylist(d,h,p,m)},onError:(d,h,p,m)=>{this.handleNetworkError(h,p,!1,d,m)},onTimeout:(d,h,p)=>{this.handleNetworkError(h,p,!0,void 0,d)}};o.load(t,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:r}=this.hls;(t||r)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,r,o){const a=this.hls,s=t.data,l=ej(t,r),c=vf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,o,n);return}const{contentSteering:d,levels:h,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:y}=c;this.variableList=y,h.forEach(x=>{const{unknownCodecs:E}=x;if(E){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:T,videoCodec:D}=x;for(let P=E.length;P--;){const M=E[P];__(M,"audio",_)?(x.audioCodec=T=T?`${T},${M}`:M,zy.audio[T.substring(0,4)]=2,E.splice(P,1)):__(M,"video",_)&&(x.videoCodec=D=D?`${D},${M}`:M,zy.video[D.substring(0,4)]=2,E.splice(P,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=vf.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(E=>!E.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new is({}),bitrate:0,url:""})),a.trigger(Te.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:d,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:y})}handleTrackOrLevelPlaylist(t,n,r,o,a){const s=this.hls,{id:l,level:c,type:d}=r,h=ej(t,r),p=Nn(c)?c:Nn(l)?l:0,m=Xue(r),g=vf.parseLevelPlaylist(t.data,h,p,m,0,this.variableList);if(d===_i.MANIFEST){const y={attrs:new is({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+t2e(g,0),s.trigger(Te.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(Te.ERROR,{type:lr.NETWORK_ERROR,details:Ut.MANIFEST_PARSING_ERROR,fatal:n.type===_i.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===_i.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===_i.AUDIO_TRACK||t.type===_i.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=Ut.UNKNOWN,d=!1;const h=this.getInternalLoader(t);switch(t.type){case _i.MANIFEST:c=r?Ut.MANIFEST_LOAD_TIMEOUT:Ut.MANIFEST_LOAD_ERROR,d=!0;break;case _i.LEVEL:c=r?Ut.LEVEL_LOAD_TIMEOUT:Ut.LEVEL_LOAD_ERROR,d=!1;break;case _i.AUDIO_TRACK:c=r?Ut.AUDIO_TRACK_LOAD_TIMEOUT:Ut.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case _i.SUBTITLE_TRACK:c=r?Ut.SUBTITLE_TRACK_LOAD_TIMEOUT:Ut.SUBTITLE_LOAD_ERROR,d=!1;break}h&&this.resetInternalLoader(t.type);const p={type:lr.NETWORK_ERROR,details:c,fatal:d,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(o){const m=n?.url||t.url;p.response=co({url:m,data:void 0},o)}this.hls.trigger(Te.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:d,levelOrTrack:h,id:p,groupId:m,deliveryDirectives:g}=o,y=ej(n,o),S=Xue(o);let k=typeof o.level=="number"&&S===Qn.MAIN?d:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Te.ERROR,{type:lr.NETWORK_ERROR,details:Ut.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(Te.ERROR,{type:lr.NETWORK_ERROR,details:Ut.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 _i.MANIFEST:case _i.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(Te.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===_i.MANIFEST});break;case _i.AUDIO_TRACK:l.trigger(Te.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case _i.SUBTITLE_TRACK:l.trigger(Te.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class ku{static get version(){return x_}static isMSESupported(){return e4e()}static isSupported(){return F8t()}static getMediaSource(){return I0()}static get Events(){return Te}static get MetadataSchema(){return ic}static get ErrorTypes(){return lr}static get ErrorDetails(){return Ut}static get DefaultConfig(){return ku.defaultConfig?ku.defaultConfig:T8t}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 LG,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=Xkt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=I8t(ku.DefaultConfig,t,n);this.userConfig=t,r.progressive&&L8t(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 Wxt(this),m=r.interstitialsController,g=m?this.interstitialsController=new m(this,ku):null,y=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new H8t(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new N8t(this,E),T=new $8t(this),D=new U8t(this.config,this.logger),P=this.streamController=new z8t(this,p,D),M=this.gapController=new M8t(this,p);S.setStreamController(P),k.setStreamController(P);const $=[C,_,P];g&&$.splice(1,0,g),E&&$.splice(1,0,E),this.networkControllers=$;const I=[h,y,M,S,k,T,p];this.audioTrackController=this.createController(r.audioTrackController,$);const N=r.audioStreamController;N&&$.push(this.audioStreamController=new N(this,p,D)),this.subtitleTrackController=this.createController(r.subtitleTrackController,$);const F=r.subtitleStreamController;F&&$.push(this.subtititleStreamController=new F(this,p,D)),this.createController(r.timelineController,I),D.emeController=this.emeController=this.createController(r.emeController,I),this.cmcdController=this.createController(r.cmcdController,I),this.latencyController=this.createController(B8t,I),this.coreComponents=I,$.push(d);const W=d.onErrorOut;typeof W=="function"&&this.on(Te.ERROR,W,d),this.on(Te.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===Te.ERROR;this.trigger(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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(Te.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(Te.ERROR,{type:lr.OTHER_ERROR,details:Ut.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(Te.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Te.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Te.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=bG.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(Te.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={[Qn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Qn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Qn.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=MEt()),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){Ixt(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=j3e(n);return N3e(t,r,navigator.mediaCapabilities)}}ku.defaultConfig=void 0;const W8t={class:"player-header"},G8t={class:"player-controls"},K8t={class:"compact-button-group"},q8t={key:3,class:"compact-btn selector-btn"},Y8t={key:0,style:{color:"#ff4d4f","font-size":"10px"}},X8t={class:"compact-btn selector-btn"},Z8t={key:4,class:"compact-btn selector-btn"},J8t={class:"compact-btn selector-btn"},Q8t={__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=yG(),l=fe(""),c=fe([]),d=fe(!1),h=fe(!1),p=E=>{if(!E)return"未知";const _=E.indexOf("#");return _!==-1&&_{try{const E=JSON.parse(localStorage.getItem("addressSettings")||"{}"),_=E.proxyPlayEnabled||!1,T=E.proxyPlay||"";if(a.value=[],g(),_&&T){const D=a.value.findIndex(P=>P.url===T);if(D!==-1){const P=a.value.splice(D,1)[0];a.value.unshift(P)}else{const P=p(T);a.value.unshift({value:T,label:`${P} (当前)`,url:T})}o.value=T}else o.value="disabled";console.log("代理播放配置加载完成:",{enabled:_,current:T,optionsCount:a.value.length,selected:o.value})}catch(E){console.error("加载代理播放配置失败:",E),o.value="disabled"}},g=()=>{try{JSON.parse(localStorage.getItem("address-history-proxy-play")||"[]").forEach(T=>{const D=T.url||T.value||"";if(!D)return;if(!a.value.some(M=>M.url===D)){const M=p(D);a.value.push({value:D,label:M,url:D})}}),console.log("已加载代理播放历史记录:",a.value.length,"个选项")}catch(E){console.error("加载代理播放历史记录失败:",E)}},y=E=>{if(!(!E||E==="disabled"))try{const _=p(E),T=Date.now(),D="address-history-proxy-play",P=JSON.parse(localStorage.getItem(D)||"[]"),M=P.findIndex($=>$.url===E);M!==-1&&P.splice(M,1),P.unshift({url:E,timestamp:T}),P.length>10&&P.splice(10),localStorage.setItem(D,JSON.stringify(P)),console.log("已保存代理播放地址到历史记录:",E)}catch(_){console.error("保存代理播放历史记录失败:",_)}},S=E=>{o.value=E,E!=="disabled"&&y(E),r("proxy-change",E)},k=async()=>{try{d.value=!0,c.value=s.enabledParsers.map(T=>({id:T.id,name:T.name,type:T.type,url:T.url,enabled:T.enabled})),h.value=ET();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("🚀 [自动解析] 触发默认解析器解析"),Sn(()=>{C(l.value)}))}catch(E){console.error("加载解析器配置失败:",E)}finally{d.value=!1}},C=E=>{l.value=E;const _=c.value.find(T=>T.id===E);_&&localStorage.setItem("selectedParser",JSON.stringify(_)),r("parser-change",{parserId:E,parser:_,parseData:n.parseData}),console.log("解析器已切换:",_)},x=E=>{E.key==="addressSettings"&&m()};return mn(()=>{m(),n.showParserSelector&&k(),window.addEventListener("storage",x),window.addEventListener("addressSettingsChanged",m)}),Rt(()=>n.showParserSelector,E=>{E&&k()}),mi(()=>{window.removeEventListener("storage",x),window.removeEventListener("addressSettingsChanged",m)}),(E,_)=>{const T=De("a-option"),D=De("a-select");return z(),ee("div",W8t,[L("h3",null,"正在播放: "+Ue(e.episodeName),1),L("div",G8t,[L("div",K8t,[e.showDebugButton?(z(),ee("div",{key:0,class:"compact-btn debug-btn",onClick:_[0]||(_[0]=P=>E.$emit("toggle-debug")),title:"调试信息"},[..._[8]||(_[8]=[xh('调试',2)])])):Pe("",!0),e.showAutoNext&&e.episodes.length>1?(z(),ee("div",{key:1,class:ue(["compact-btn",{active:e.autoNextEnabled}]),onClick:_[1]||(_[1]=P=>E.$emit("toggle-auto-next"))},[..._[9]||(_[9]=[L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),L("span",{class:"btn-text"},"自动连播",-1)])],2)):Pe("",!0),L("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(),ee("div",{key:2,class:ue(["compact-btn",{active:e.countdownEnabled}]),onClick:_[3]||(_[3]=P=>E.$emit("toggle-countdown"))},[..._[11]||(_[11]=[L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),L("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),L("span",{class:"btn-text"},"倒计时",-1)])],2)):Pe("",!0),e.showParserSelector?(z(),ee("div",q8t,[_[12]||(_[12]=L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":l.value,onChange:C,class:"compact-select",size:"small",loading:d.value,disabled:!c.value.length},{default:de(()=>[(z(!0),ee(Nt,null,vn(c.value,P=>(z(),Ye(T,{key:P.id,value:P.id,title:`${P.name} (${P.type==="1"?"JSON":"嗅探"})`,disabled:P.type==="0"&&!h.value},{default:de(()=>[We(" 解析:"+Ue(P.name)+" ",1),P.type==="0"&&!h.value?(z(),ee("span",Y8t," (需嗅探器) ")):Pe("",!0)]),_:2},1032,["value","title","disabled"]))),128))]),_:1},8,["model-value","loading","disabled"])])):Pe("",!0),L("div",X8t,[_[14]||(_[14]=L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":o.value,onChange:S,class:"compact-select",size:"small"},{default:de(()=>[O(T,{value:"disabled",title:"关闭代理播放功能"},{default:de(()=>[..._[13]||(_[13]=[We("代理播放:关闭",-1)])]),_:1}),(z(!0),ee(Nt,null,vn(a.value,P=>(z(),Ye(T,{key:P.value,value:P.value,title:`${P.label} 完整链接: ${P.url||P.value}`},{default:de(()=>[We(" 代理播放:"+Ue(P.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])]),e.qualities&&e.qualities.length>1?(z(),ee("div",Z8t,[_[15]||(_[15]=xh('HD',1)),O(D,{"model-value":e.currentQuality,onChange:_[4]||(_[4]=P=>E.$emit("quality-change",P)),class:"compact-select",size:"small"},{default:de(()=>[(z(!0),ee(Nt,null,vn(e.qualities,P=>(z(),Ye(T,{key:P.name,value:P.name,title:`切换到${P.name}画质`},{default:de(()=>[We(" 画质:"+Ue(P.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Pe("",!0),L("div",J8t,[_[18]||(_[18]=L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),L("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),O(D,{"model-value":e.playerType,onChange:_[5]||(_[5]=P=>E.$emit("player-change",P)),class:"compact-select",size:"small"},{default:de(()=>[O(T,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:de(()=>[..._[16]||(_[16]=[We("默认播放器",-1)])]),_:1}),O(T,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:de(()=>[..._[17]||(_[17]=[We("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),L("div",{class:ue(["compact-btn",{active:e.skipEnabled}]),onClick:_[6]||(_[6]=P=>E.$emit("open-skip-settings"))},[..._[19]||(_[19]=[xh('片头片尾',2)])],2),L("div",{class:"compact-btn close-btn",onClick:_[7]||(_[7]=P=>E.$emit("close"))},[..._[20]||(_[20]=[L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),L("span",{class:"btn-text"},"关闭",-1)])])])])])}}},t4e=Sr(Q8t,[["__scopeId","data-v-a0946e8b"]]),eTt={class:"dialog-header"},tTt={class:"dialog-content"},nTt={class:"setting-row"},rTt={class:"setting-control"},iTt={key:1,class:"unit"},oTt={class:"setting-row"},sTt={class:"setting-control"},aTt={key:1,class:"unit"},lTt={class:"dialog-footer"},uTt={__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 m=De("a-switch"),g=De("a-input-number"),y=De("a-button");return e.visible?(z(),ee("div",{key:0,class:"skip-settings-overlay",onClick:c},[L("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=ls(()=>{},["stop"]))},[L("div",eTt,[p[8]||(p[8]=L("h3",null,"片头片尾设置",-1)),L("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),L("div",tTt,[L("div",nTt,[p[9]||(p[9]=L("div",{class:"setting-label"},[L("span",null,"跳过片头"),L("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),L("div",rTt,[O(m,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(z(),Ye(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"])):Pe("",!0),o.value?(z(),ee("span",iTt,"秒")):Pe("",!0)])]),L("div",oTt,[p[10]||(p[10]=L("div",{class:"setting-label"},[L("span",null,"跳过片尾"),L("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),L("div",sTt,[O(m,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(z(),Ye(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"])):Pe("",!0),a.value?(z(),ee("span",aTt,"秒")):Pe("",!0)])]),p[11]||(p[11]=L("div",{class:"setting-hint-global"},[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),We(" 设置将自动保存并应用到所有播放器 ")],-1))]),L("div",lTt,[O(y,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[We(" 取消 ",-1)])]),_:1}),O(y,{type:"primary",onClick:d,size:"small"},{default:de(()=>[...p[13]||(p[13]=[We(" 保存 ",-1)])]),_:1})])])])):Pe("",!0)}}},n4e=Sr(uTt,[["__scopeId","data-v-c8c7504a"]]),cTt={class:"dialog-header"},dTt={class:"dialog-content"},fTt={class:"info-section"},hTt={class:"section-header"},pTt=["disabled"],vTt={class:"info-content"},mTt={class:"url-display"},gTt={key:0,class:"info-section"},yTt={class:"section-header"},bTt={class:"section-actions"},_Tt=["disabled"],STt=["disabled"],kTt=["disabled"],xTt={class:"info-content"},CTt={class:"url-display proxy-url"},wTt={class:"info-section"},ETt={class:"section-header"},TTt=["disabled"],ATt={class:"info-content"},ITt={class:"headers-display"},LTt={key:0,class:"no-data"},DTt={key:1,class:"headers-text"},PTt={class:"info-section"},RTt={class:"info-content"},MTt={class:"format-info"},OTt={class:"format-value"},$Tt={class:"info-section"},BTt={class:"info-content"},NTt={class:"player-info"},FTt={class:"player-value"},jTt={__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=j(()=>!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(m){console.error("复制失败:",m),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}`,m=document.createElement("iframe");m.style.display="none",m.src=p,document.body.appendChild(m),setTimeout(()=>{document.body.removeChild(m)},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}`,m=document.createElement("iframe");m.style.display="none",m.src=p,document.body.appendChild(m),setTimeout(()=>{document.body.removeChild(m)},1e3),xt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),xt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(z(),ee("div",{key:0,class:"debug-info-overlay",onClick:a},[L("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=ls(()=>{},["stop"]))},[L("div",cTt,[p[8]||(p[8]=L("h3",null,"🔧 视频调试信息",-1)),L("button",{class:"close-btn",onClick:p[0]||(p[0]=m=>h.$emit("close"))},[...p[7]||(p[7]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),L("div",dTt,[L("div",fTt,[L("div",hTt,[p[10]||(p[10]=L("h4",null,"📹 视频直链",-1)),L("button",{class:"copy-btn",onClick:p[1]||(p[1]=m=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...p[9]||(p[9]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,pTt)]),L("div",vTt,[L("div",mTt,Ue(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(z(),ee("div",gTt,[L("div",yTt,[p[14]||(p[14]=L("h4",null,"🔄 代理后链接",-1)),L("div",bTt,[L("button",{class:"copy-btn",onClick:p[2]||(p[2]=m=>s(e.proxyUrl,"代理后链接")),disabled:!e.proxyUrl},[...p[11]||(p[11]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,_Tt),L("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=m=>c(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用VLC播放器打开"},[...p[12]||(p[12]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("polygon",{points:"5,3 19,12 5,21",fill:"currentColor"})],-1),We(" VLC ",-1)])],8,STt),L("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=m=>d(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用MPV播放器打开"},[...p[13]||(p[13]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),L("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})],-1),We(" MPV ",-1)])],8,kTt)])]),L("div",xTt,[L("div",CTt,Ue(e.proxyUrl),1)])])):Pe("",!0),L("div",wTt,[L("div",ETt,[p[16]||(p[16]=L("h4",null,"📋 请求头信息",-1)),L("button",{class:"copy-btn",onClick:p[5]||(p[5]=m=>s(o.value,"请求头信息")),disabled:!o.value},[...p[15]||(p[15]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,TTt)]),L("div",ATt,[L("div",ITt,[o.value?(z(),ee("pre",DTt,Ue(o.value),1)):(z(),ee("div",LTt,"暂无请求头信息"))])])]),L("div",PTt,[p[18]||(p[18]=L("div",{class:"section-header"},[L("h4",null,"🎬 视频格式")],-1)),L("div",RTt,[L("div",MTt,[p[17]||(p[17]=L("span",{class:"format-label"},"检测格式:",-1)),L("span",OTt,Ue(e.detectedFormat||"未知"),1)])])]),L("div",$Tt,[p[20]||(p[20]=L("div",{class:"section-header"},[L("h4",null,"⚙️ 播放器信息")],-1)),L("div",BTt,[L("div",NTt,[p[19]||(p[19]=L("span",{class:"player-label"},"当前播放器:",-1)),L("span",FTt,Ue(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),L("div",{class:"action-section"},[L("button",{class:"copy-all-btn",onClick:l},[...p[21]||(p[21]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制所有调试信息 ",-1)])])])])])])):Pe("",!0)}},r4e=Sr(jTt,[["__scopeId","data-v-d9075ed4"]]);function i4e(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:o=()=>0}=e,a=fe(!1),s=fe(!1),l=fe(!1),c=fe(90),d=fe(90),h=fe(!1),p=fe(!1),m=fe(null),g=fe(0),y=fe(!1),S=fe(0),k=fe(!1),C=fe(0),x=j(()=>s.value||l.value),E="drplayer_skip_settings",_=()=>{try{const Q=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",Q),Q){const ne=JSON.parse(Q);s.value=ne.skipIntroEnabled||!1,l.value=ne.skipOutroEnabled||!1,c.value=ne.skipIntroSeconds||90,d.value=ne.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:d.value})}else console.log("没有找到保存的设置,使用默认值")}catch(Q){console.warn("加载片头片尾设置失败:",Q)}},T=Q=>{try{s.value=Q.skipIntroEnabled,l.value=Q.skipOutroEnabled,c.value=Q.skipIntroSeconds,d.value=Q.skipOutroSeconds;const ne={skipIntroEnabled:Q.skipIntroEnabled,skipOutroEnabled:Q.skipOutroEnabled,skipIntroSeconds:Q.skipIntroSeconds,skipOutroSeconds:Q.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(ne)),$()}catch(ne){console.warn("保存片头片尾设置失败:",ne)}},D=()=>{if(!s.value||h.value)return!1;const Q=n(),ne=Date.now();return y.value||S.value>0&&ne-S.value<3e3||k.value||C.value>0&&ne-C.value<2e3?!1:Q<=1&&Q<=c.value?(console.log(`立即跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ne,!0):!1},P=()=>{if(!s.value||h.value)return;const Q=n(),ne=Date.now();y.value||S.value>0&&ne-S.value<3e3||k.value||C.value>0&&ne-C.value<2e3||g.value>0&&ne-g.value<1e3||Q<=c.value&&(console.log(`已跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ne)},M=()=>{if(!l.value||p.value)return;const Q=o();if(Q<=0)return;const ne=n(),ae=Q-d.value,re=Date.now();re-g.value<2e3||ne>=ae&&ne{D()||P(),M()};let I=null;const N=()=>{I&&clearTimeout(I),I=setTimeout(()=>{s.value&&!h.value&&P(),l.value&&!p.value&&M()},200)},F=()=>{h.value=!1,p.value=!1,g.value=0,y.value=!1,S.value=0,k.value=!1,C.value=0,m.value&&(clearTimeout(m.value),m.value=null)},W=()=>{y.value=!0,console.log("用户开始拖动进度条")},U=()=>{y.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},G=()=>{k.value=!0,console.log("全屏状态开始变化")},Z=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},oe=()=>{F(),_()},X=()=>{a.value=!0},H=()=>{a.value=!1},q=()=>{m.value&&(clearTimeout(m.value),m.value=null)};return mi(()=>{q()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:d,skipIntroApplied:h,skipOutroTimer:m,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:T,applySkipSettings:$,applyIntroSkipImmediate:D,handleTimeUpdate:N,resetSkipState:F,initSkipSettings:oe,openSkipSettingsDialog:X,closeSkipSettingsDialog:H,cleanup:q,onUserSeekStart:W,onUserSeekEnd:U,onFullscreenChangeStart:G,onFullscreenChangeEnd:Z}}const Wv={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},o4e=[{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 UG(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function T_(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 NT(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function VTt(e,t=null){const n=Rh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=UG()||Wv.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),T_(r),t&&NT(t,r),r}const Zue={referrerPolicy:Wv.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Wv.NO_REFERRER,Wv.ORIGIN,Wv.SAME_ORIGIN,Wv.UNSAFE_URL]};function Rh(){const e=localStorage.getItem("csp_bypass_config");return e?{...Zue,...JSON.parse(e)}:Zue}function eU(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function HG(e,t){return Rh().autoBypass?VTt(e,t):UG()}var tj={exports:{}},Jue;function zTt(){return Jue||(Jue=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 Xe=typeof Oe;return Oe!==null&&(Xe==="object"||Xe==="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 m=p,g=0,y=void 0,S=void 0,k=function(Xe,ct){W[g]=Xe,W[g+1]=ct,g+=2,g===2&&(S?S(U):Z())};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(U)}}function $(){return typeof y<"u"?function(){y(U)}:F()}function I(){var Oe=0,Xe=new T(U),ct=document.createTextNode("");return Xe.observe(ct,{characterData:!0}),function(){ct.data=Oe=++Oe%2}}function N(){var Oe=new MessageChannel;return Oe.port1.onmessage=U,function(){return Oe.port2.postMessage(0)}}function F(){var Oe=setTimeout;return function(){return Oe(U,1)}}var W=new Array(1e3);function U(){for(var Oe=0;Oe0&&(oe=W[0]),oe instanceof Error)throw oe;var X=new Error("Unhandled error."+(oe?" ("+oe.message+")":""));throw X.context=oe,X}var H=Z[F];if(H===void 0)return!1;if(typeof H=="function")c(H,this,W);else for(var q=H.length,Q=T(H,q),U=0;U0&&oe.length>G&&!oe.warned){oe.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+oe.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=N,X.type=F,X.count=oe.length,h(X)}return N}m.prototype.addListener=function(F,W){return k(this,F,W,!1)},m.prototype.on=m.prototype.addListener,m.prototype.prependListener=function(F,W){return k(this,F,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(N,F,W){var U={fired:!1,wrapFn:void 0,target:N,type:F,listener:W},G=C.bind(U);return G.listener=W,U.wrapFn=G,G}m.prototype.once=function(F,W){return y(W),this.on(F,x(this,F,W)),this},m.prototype.prependOnceListener=function(F,W){return y(W),this.prependListener(F,x(this,F,W)),this},m.prototype.removeListener=function(F,W){var U,G,Z,oe,X;if(y(W),G=this._events,G===void 0)return this;if(U=G[F],U===void 0)return this;if(U===W||U.listener===W)--this._eventsCount===0?this._events=Object.create(null):(delete G[F],G.removeListener&&this.emit("removeListener",F,U.listener||W));else if(typeof U!="function"){for(Z=-1,oe=U.length-1;oe>=0;oe--)if(U[oe]===W||U[oe].listener===W){X=U[oe].listener,Z=oe;break}if(Z<0)return this;Z===0?U.shift():D(U,Z),U.length===1&&(G[F]=U[0]),G.removeListener!==void 0&&this.emit("removeListener",F,X||W)}return this},m.prototype.off=m.prototype.removeListener,m.prototype.removeAllListeners=function(F){var W,U,G;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[F]),this;if(arguments.length===0){var Z=Object.keys(U),oe;for(G=0;G=0;G--)this.removeListener(F,W[G]);return this};function E(N,F,W){var U=N._events;if(U===void 0)return[];var G=U[F];return G===void 0?[]:typeof G=="function"?W?[G.listener||G]:[G]:W?P(G):T(G,G.length)}m.prototype.listeners=function(F){return E(this,F,!0)},m.prototype.rawListeners=function(F){return E(this,F,!1)},m.listenerCount=function(N,F){return typeof N.listenerCount=="function"?N.listenerCount(F):_.call(N,F)},m.prototype.listenerCount=_;function _(N){var F=this._events;if(F!==void 0){var W=F[N];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}m.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function T(N,F){for(var W=new Array(F),U=0;U0},!1)}function k(C,x){for(var E={main:[x]},_={main:[]},T={main:{}};S(E);)for(var D=Object.keys(E),P=0;P=p[S]&&m0&&y[0].originalDts=S[x].dts&&yS[C].lastSample.originalDts&&y=S[C].lastSample.originalDts&&(C===S.length-1||C0&&(x=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=x,this._list.splice(x,0,k)},g.prototype.getLastSegmentBefore=function(y){var S=this._searchNearestSegmentBefore(y);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(y){var S=this.getLastSegmentBefore(y);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(y){for(var S=this._searchNearestSegmentBefore(y),k=this._list[S].syncPoints;k.length===0&&S>0;)S--,k=this._list[S].syncPoints;return k.length>0?k[k.length-1]:null},g})()}),"./src/core/mse-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),y=c("./src/core/media-segment-info.js"),S=c("./src/utils/exception.js"),k=(function(){function C(x){this.TAG="MSEController",this._config=x,this._emitter=new(h()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new y.IDRSampleList}return C.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},C.prototype.on=function(x,E){this._emitter.addListener(x,E)},C.prototype.off=function(x,E){this._emitter.removeListener(x,E)},C.prototype.attachMediaElement=function(x){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var E=this._mediaSource=new window.MediaSource;E.addEventListener("sourceopen",this.e.onSourceOpen),E.addEventListener("sourceended",this.e.onSourceEnded),E.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=x,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),x.src=this._mediaSourceObjectURL},C.prototype.detachMediaElement=function(){if(this._mediaSource){var x=this._mediaSource;for(var E in this._sourceBuffers){var _=this._pendingSegments[E];_.splice(0,_.length),this._pendingSegments[E]=null,this._pendingRemoveRanges[E]=null,this._lastInitSegments[E]=null;var T=this._sourceBuffers[E];if(T){if(x.readyState!=="closed"){try{x.removeSourceBuffer(T)}catch(D){p.default.e(this.TAG,D.message)}T.removeEventListener("error",this.e.onSourceBufferError),T.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(x.readyState==="open")try{x.endOfStream()}catch(D){p.default.e(this.TAG,D.message)}x.removeEventListener("sourceopen",this.e.onSourceOpen),x.removeEventListener("sourceended",this.e.onSourceEnded),x.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},C.prototype.appendInitSegment=function(x,E){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(x),this._pendingSegments[x.type].push(x);return}var _=x,T=""+_.container;_.codec&&_.codec.length>0&&(T+=";codecs="+_.codec);var D=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+T),this._lastInitSegments[_.type]=_,T!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+T);else{D=!0;try{var P=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(T);P.addEventListener("error",this.e.onSourceBufferError),P.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(M){p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message});return}}this._mimeTypes[_.type]=T}E||this._pendingSegments[_.type].push(_),D||this._sourceBuffers[_.type]&&!this._sourceBuffers[_.type].updating&&this._doAppendSegments(),m.default.safari&&_.container==="audio/mpeg"&&_.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=_.mediaDuration/1e3,this._updateMediaSourceDuration())},C.prototype.appendMediaSegment=function(x){var E=x;this._pendingSegments[E.type].push(E),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[E.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},C.prototype.seek=function(x){for(var E in this._sourceBuffers)if(this._sourceBuffers[E]){var _=this._sourceBuffers[E];if(this._mediaSource.readyState==="open")try{_.abort()}catch(I){p.default.e(this.TAG,I.message)}this._idrList.clear();var T=this._pendingSegments[E];if(T.splice(0,T.length),this._mediaSource.readyState!=="closed"){for(var D=0;D<_.buffered.length;D++){var P=_.buffered.start(D),M=_.buffered.end(D);this._pendingRemoveRanges[E].push({start:P,end:M})}if(_.updating||this._doRemoveRanges(),m.default.safari){var $=this._lastInitSegments[E];$&&(this._pendingSegments[E].push($),_.updating||this._doAppendSegments())}}}},C.prototype.endOfStream=function(){var x=this._mediaSource,E=this._sourceBuffers;if(!x||x.readyState!=="open"){x&&x.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}E.video&&E.video.updating||E.audio&&E.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,x.endOfStream())},C.prototype.getNearestKeyframe=function(x){return this._idrList.getLastSyncPointBeforeDts(x)},C.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){var T=_.buffered;if(T.length>=1&&x-T.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},C.prototype._doCleanupSourceBuffer=function(){var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){for(var T=_.buffered,D=!1,P=0;P=this._config.autoCleanupMaxBackwardDuration){D=!0;var I=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:M,end:I})}}else $0&&(isNaN(E)||_>E)&&(p.default.v(this.TAG,"Update MediaSource duration from "+E+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},C.prototype._doRemoveRanges=function(){for(var x in this._pendingRemoveRanges)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating))for(var E=this._sourceBuffers[x],_=this._pendingRemoveRanges[x];_.length&&!E.updating;){var T=_.shift();E.remove(T.start,T.end)}},C.prototype._doAppendSegments=function(){var x=this._pendingSegments;for(var E in x)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating)&&x[E].length>0){var _=x[E].shift();if(_.timestampOffset){var T=this._sourceBuffers[E].timestampOffset,D=_.timestampOffset/1e3,P=Math.abs(T-D);P>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+T+" to "+D),this._sourceBuffers[E].timestampOffset=D),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[E].appendBuffer(_.data),this._isBufferFull=!1,E==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(M){this._pendingSegments[E].unshift(_),M.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message}))}}},C.prototype._onSourceOpen=function(){if(p.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var x=this._pendingSourceBufferInit;x.length;){var E=x.shift();this.appendInitSegment(E,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(g.default.SOURCE_OPEN)},C.prototype._onSourceEnded=function(){p.default.v(this.TAG,"MediaSource onSourceEnded")},C.prototype._onSourceClose=function(){p.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},C.prototype._hasPendingSegments=function(){var x=this._pendingSegments;return x.video.length>0||x.audio.length>0},C.prototype._hasPendingRemoveRanges=function(){var x=this._pendingRemoveRanges;return x.video.length>0||x.audio.length>0},C.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(g.default.UPDATE_END)},C.prototype._onSourceBufferError=function(x){p.default.e(this.TAG,"SourceBuffer Error: "+x)},C})();l.default=k}),"./src/core/mse-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=d}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./node_modules/webworkify-webpack/index.js"),m=c.n(p),g=c("./src/utils/logger.js"),y=c("./src/utils/logging-control.js"),S=c("./src/core/transmuxing-controller.js"),k=c("./src/core/transmuxing-events.js"),C=c("./src/core/media-info.js"),x=(function(){function E(_,T){if(this.TAG="Transmuxer",this._emitter=new(h()),T.enableWorker&&typeof Worker<"u")try{this._worker=m()("./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_,T]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},y.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:y.default.getConfig()})}catch{g.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new S.default(_,T)}else this._controller=new S.default(_,T);if(this._controller){var D=this._controller;D.on(k.default.IO_ERROR,this._onIOError.bind(this)),D.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),D.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),D.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),D.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),D.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),D.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),D.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),D.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),D.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),D.on(k.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return E.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),y.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},E.prototype.on=function(_,T){this._emitter.addListener(_,T)},E.prototype.off=function(_,T){this._emitter.removeListener(_,T)},E.prototype.hasWorker=function(){return this._worker!=null},E.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},E.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},E.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},E.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},E.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},E.prototype._onInitSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.INIT_SEGMENT,_,T)})},E.prototype._onMediaSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.MEDIA_SEGMENT,_,T)})},E.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},E.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},E.prototype._onMediaInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.MEDIA_INFO,_)})},E.prototype._onMetaDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.METADATA_ARRIVED,_)})},E.prototype._onScriptDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},E.prototype._onStatisticsInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.STATISTICS_INFO,_)})},E.prototype._onIOError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.IO_ERROR,_,T)})},E.prototype._onDemuxError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.DEMUX_ERROR,_,T)})},E.prototype._onRecommendSeekpoint=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},E.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},E.prototype._onWorkerMessage=function(_){var T=_.data,D=T.data;if(T.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(T.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(T.msg,D.type,D.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(T.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(D,C.default.prototype),this._emitter.emit(T.msg,D);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(T.msg,D);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(T.msg,D.type,D.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(T.msg,D);break;case"logcat_callback":g.default.emitter.emit("log",D.type,D.logcat);break}},E})();l.default=x}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),y=c("./src/demux/flv-demuxer.js"),S=c("./src/remux/mp4-remuxer.js"),k=c("./src/demux/demux-errors.js"),C=c("./src/io/io-controller.js"),x=c("./src/core/transmuxing-events.js"),E=(function(){function _(T,D){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=D,T.segments||(T.segments=[{duration:T.duration,filesize:T.filesize,url:T.url}]),typeof T.cors!="boolean"&&(T.cors=!0),typeof T.withCredentials!="boolean"&&(T.withCredentials=!1),this._mediaDataSource=T,this._currentSegmentIndex=0;var P=0;this._mediaDataSource.segments.forEach(function(M){M.timestampBase=P,P+=M.duration,M.cors=T.cors,M.withCredentials=T.withCredentials,D.referrerPolicy&&(M.referrerPolicy=D.referrerPolicy)}),!isNaN(P)&&this._mediaDataSource.duration!==P&&(this._mediaDataSource.duration=P),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return _.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},_.prototype.on=function(T,D){this._emitter.addListener(T,D)},_.prototype.off=function(T,D){this._emitter.removeListener(T,D)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(T,D){this._currentSegmentIndex=T;var P=this._mediaDataSource.segments[T],M=this._ioctl=new C.default(P,this._config,T);M.onError=this._onIOException.bind(this),M.onSeeked=this._onIOSeeked.bind(this),M.onComplete=this._onIOComplete.bind(this),M.onRedirect=this._onIORedirect.bind(this),M.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),D?this._demuxer.bindDataSource(this._ioctl):M.onDataArrival=this._onInitChunkArrival.bind(this),M.open(D)},_.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},_.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},_.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},_.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},_.prototype.seek=function(T){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var D=this._searchSegmentIndexContains(T);if(D===this._currentSegmentIndex){var P=this._mediaInfo.segments[D];if(P==null)this._pendingSeekTime=T;else{var M=P.getNearestKeyframe(T);this._remuxer.seek(M.milliseconds),this._ioctl.seek(M.fileposition),this._pendingResolveSeekPoint=M.milliseconds}}else{var $=this._mediaInfo.segments[D];if($==null)this._pendingSeekTime=T,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(D);else{var M=$.getNearestKeyframe(T);this._internalAbort(),this._remuxer.seek(T),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[D].timestampBase,this._loadSegment(D,M.fileposition),this._pendingResolveSeekPoint=M.milliseconds,this._reportSegmentMediaInfo(D)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(T){for(var D=this._mediaDataSource.segments,P=D.length-1,M=0;M0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,$=this._demuxer.parseChunks(T,D);else if((M=y.default.probe(T)).match){this._demuxer=new y.default(M,this._config),this._remuxer||(this._remuxer=new S.default(this._config));var I=this._mediaDataSource;I.duration!=null&&!isNaN(I.duration)&&(this._demuxer.overridedDuration=I.duration),typeof I.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=I.hasAudio),typeof I.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=I.hasVideo),this._demuxer.timestampBase=I.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),$=this._demuxer.parseChunks(T,D)}else M=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){P._internalAbort()}),this._emitter.emit(x.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),$=0;return $},_.prototype._onMediaInfo=function(T){var D=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},T),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var P=Object.assign({},T);Object.setPrototypeOf(P,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=P,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var M=D._pendingSeekTime;D._pendingSeekTime=null,D.seek(M)})},_.prototype._onMetaDataArrived=function(T){this._emitter.emit(x.default.METADATA_ARRIVED,T)},_.prototype._onScriptDataArrived=function(T){this._emitter.emit(x.default.SCRIPTDATA_ARRIVED,T)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(T){var D=T,P=D+1;P0&&P[0].originalDts===M&&(M=P[0].pts),this._emitter.emit(x.default.RECOMMEND_SEEKPOINT,M)}},_.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},_.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},_.prototype._reportSegmentMediaInfo=function(T){var D=this._mediaInfo.segments[T],P=Object.assign({},D);P.duration=this._mediaInfo.duration,P.segmentCount=this._mediaInfo.segmentCount,delete P.segments,delete P.keyframesIndex,this._emitter.emit(x.default.MEDIA_INFO,P)},_.prototype._reportStatisticsInfo=function(){var T={};T.url=this._ioctl.currentURL,T.hasRedirect=this._ioctl.hasRedirect,T.hasRedirect&&(T.redirectedURL=this._ioctl.currentRedirectedURL),T.speed=this._ioctl.currentSpeed,T.loaderType=this._ioctl.loaderType,T.currentSegmentIndex=this._currentSegmentIndex,T.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(x.default.STATISTICS_INFO,T)},_})();l.default=E}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var d={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};l.default=d}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logging-control.js"),h=c("./src/utils/polyfill.js"),p=c("./src/core/transmuxing-controller.js"),m=c("./src/core/transmuxing-events.js"),g=function(y){var S=null,k=F.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(m.default.IO_ERROR,$.bind(this)),S.on(m.default.DEMUX_ERROR,I.bind(this)),S.on(m.default.INIT_SEGMENT,C.bind(this)),S.on(m.default.MEDIA_SEGMENT,x.bind(this)),S.on(m.default.LOADING_COMPLETE,E.bind(this)),S.on(m.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(m.default.MEDIA_INFO,T.bind(this)),S.on(m.default.METADATA_ARRIVED,D.bind(this)),S.on(m.default.SCRIPTDATA_ARRIVED,P.bind(this)),S.on(m.default.STATISTICS_INFO,M.bind(this)),S.on(m.default.RECOMMEND_SEEKPOINT,N.bind(this));break;case"destroy":S&&(S.destroy(),S=null),y.postMessage({msg:"destroyed"});break;case"start":S.start();break;case"stop":S.stop();break;case"seek":S.seek(W.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var U=W.data.param;d.default.applyConfig(U),U.enableCallback===!0?d.default.addLogListener(k):d.default.removeLogListener(k);break}}});function C(W,U){var G={msg:m.default.INIT_SEGMENT,data:{type:W,data:U}};y.postMessage(G,[U.data])}function x(W,U){var G={msg:m.default.MEDIA_SEGMENT,data:{type:W,data:U}};y.postMessage(G,[U.data])}function E(){var W={msg:m.default.LOADING_COMPLETE};y.postMessage(W)}function _(){var W={msg:m.default.RECOVERED_EARLY_EOF};y.postMessage(W)}function T(W){var U={msg:m.default.MEDIA_INFO,data:W};y.postMessage(U)}function D(W){var U={msg:m.default.METADATA_ARRIVED,data:W};y.postMessage(U)}function P(W){var U={msg:m.default.SCRIPTDATA_ARRIVED,data:W};y.postMessage(U)}function M(W){var U={msg:m.default.STATISTICS_INFO,data:W};y.postMessage(U)}function $(W,U){y.postMessage({msg:m.default.IO_ERROR,data:{type:W,info:U}})}function I(W,U){y.postMessage({msg:m.default.DEMUX_ERROR,data:{type:W,info:U}})}function N(W){y.postMessage({msg:m.default.RECOMMEND_SEEKPOINT,data:W})}function F(W,U){y.postMessage({msg:"logcat_callback",data:{type:W,logcat:U}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),m=(function(){var y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]===256})(),g=(function(){function y(){}return y.parseScriptData=function(S,k,C){var x={};try{var E=y.parseValue(S,k,C),_=y.parseValue(S,k+E.size,C-E.size);x[E.data]=_.data}catch(T){d.default.e("AMF",T.toString())}return x},y.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var x=y.parseString(S,k,C),E=y.parseValue(S,k+x.size,C-x.size),_=E.objectEnd;return{data:{name:x.data,value:E.data},size:x.size+E.size,objectEnd:_}},y.parseVariable=function(S,k,C){return y.parseObject(S,k,C)},y.parseString=function(S,k,C){if(C<2)throw new p.IllegalStateException("Data not enough when parse String");var x=new DataView(S,k,C),E=x.getUint16(0,!m),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+2,E)):_="",{data:_,size:2+E}},y.parseLongString=function(S,k,C){if(C<4)throw new p.IllegalStateException("Data not enough when parse LongString");var x=new DataView(S,k,C),E=x.getUint32(0,!m),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+4,E)):_="",{data:_,size:4+E}},y.parseDate=function(S,k,C){if(C<10)throw new p.IllegalStateException("Data size invalid when parse Date");var x=new DataView(S,k,C),E=x.getFloat64(0,!m),_=x.getInt16(8,!m);return E+=_*60*1e3,{data:new Date(E),size:10}},y.parseValue=function(S,k,C){if(C<1)throw new p.IllegalStateException("Data not enough when parse Value");var x=new DataView(S,k,C),E=1,_=x.getUint8(0),T,D=!1;try{switch(_){case 0:T=x.getFloat64(1,!m),E+=8;break;case 1:{var P=x.getUint8(1);T=!!P,E+=1;break}case 2:{var M=y.parseString(S,k+1,C-1);T=M.data,E+=M.size;break}case 3:{T={};var $=0;for((x.getUint32(C-4,!m)&16777215)===9&&($=3);E32)throw new d.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(m<=this._current_word_bits_left){var g=this._current_word>>>32-m;return this._current_word<<=m,this._current_word_bits_left-=m,g}var y=this._current_word_bits_left?this._current_word:0;y=y>>>32-this._current_word_bits_left;var S=m-this._current_word_bits_left;this._fillCurrentWord();var k=Math.min(S,this._current_word_bits_left),C=this._current_word>>>32-k;return this._current_word<<=k,this._current_word_bits_left-=k,y=y<>>m)!==0)return this._current_word<<=m,this._current_word_bits_left-=m,m;return this._fillCurrentWord(),m+this._skipLeadingZero()},p.prototype.readUEG=function(){var m=this._skipLeadingZero();return this.readBits(m+1)-1},p.prototype.readSEG=function(){var m=this.readUEG();return m&1?m+1>>>1:-1*(m>>>1)},p})();l.default=h}),"./src/demux/flv-demuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/demux/amf-parser.js"),p=c("./src/demux/sps-parser.js"),m=c("./src/demux/demux-errors.js"),g=c("./src/core/media-info.js"),y=c("./src/utils/exception.js");function S(C,x){return C[x]<<24|C[x+1]<<16|C[x+2]<<8|C[x+3]}var k=(function(){function C(x,E){this.TAG="FLVDemuxer",this._config=E,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=x.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=x.hasAudioTrack,this._hasVideo=x.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new g.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var _=new ArrayBuffer(2);return new DataView(_).setInt16(0,256,!0),new Int16Array(_)[0]===256})()}return C.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},C.probe=function(x){var E=new Uint8Array(x),_={match:!1};if(E[0]!==70||E[1]!==76||E[2]!==86||E[3]!==1)return _;var T=(E[4]&4)>>>2!==0,D=(E[4]&1)!==0,P=S(E,5);return P<9?_:{match:!0,consumed:P,dataOffset:P,hasAudioTrack:T,hasVideoTrack:D}},C.prototype.bindDataSource=function(x){return x.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(C.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(x){this._onTrackMetadata=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(x){this._onMediaInfo=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(x){this._onMetaDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(x){this._onScriptDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onError",{get:function(){return this._onError},set:function(x){this._onError=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(x){this._onDataAvailable=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(x){this._timestampBase=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedDuration",{get:function(){return this._duration},set:function(x){this._durationOverrided=!0,this._duration=x,this._mediaInfo.duration=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasAudio",{set:function(x){this._hasAudioFlagOverrided=!0,this._hasAudio=x,this._mediaInfo.hasAudio=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasVideo",{set:function(x){this._hasVideoFlagOverrided=!0,this._hasVideo=x,this._mediaInfo.hasVideo=x},enumerable:!1,configurable:!0}),C.prototype.resetMediaInfo=function(){this._mediaInfo=new g.default},C.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1},C.prototype.parseChunks=function(x,E){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new y.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,T=this._littleEndian;if(E===0)if(x.byteLength>13){var D=C.probe(x);_=D.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+_!==this._dataOffset&&d.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var P=new DataView(x,_),M=P.getUint32(0,!T);M!==0&&d.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_x.byteLength)break;var $=P.getUint8(0),I=P.getUint32(0,!T)&16777215;if(_+11+I+4>x.byteLength)break;if($!==8&&$!==9&&$!==18){d.default.w(this.TAG,"Unsupported tag type "+$+", skipped"),_+=11+I+4;continue}var N=P.getUint8(4),F=P.getUint8(5),W=P.getUint8(6),U=P.getUint8(7),G=W|F<<8|N<<16|U<<24,Z=P.getUint32(7,!T)&16777215;Z!==0&&d.default.w(this.TAG,"Meet tag which has StreamID != 0!");var oe=_+11;switch($){case 8:this._parseAudioData(x,oe,I,G);break;case 9:this._parseVideoData(x,oe,I,G,E+_);break;case 18:this._parseScriptData(x,oe,I);break}var X=P.getUint32(11+I,!T);X!==11+I&&d.default.w(this.TAG,"Invalid PrevTagSize "+X),_+=11+I+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},C.prototype._parseScriptData=function(x,E,_){var T=h.default.parseScriptData(x,E,_);if(T.hasOwnProperty("onMetaData")){if(T.onMetaData==null||typeof T.onMetaData!="object"){d.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=T;var D=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},D)),typeof D.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=D.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof D.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=D.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof D.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=D.audiodatarate),typeof D.videodatarate=="number"&&(this._mediaInfo.videoDataRate=D.videodatarate),typeof D.width=="number"&&(this._mediaInfo.width=D.width),typeof D.height=="number"&&(this._mediaInfo.height=D.height),typeof D.duration=="number"){if(!this._durationOverrided){var P=Math.floor(D.duration*this._timescale);this._duration=P,this._mediaInfo.duration=P}}else this._mediaInfo.duration=0;if(typeof D.framerate=="number"){var M=Math.floor(D.framerate*1e3);if(M>0){var $=M/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=$,this._referenceFrameRate.fps_num=M,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=$}}if(typeof D.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var I=D.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(I),D.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=D,d.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(T).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},T))},C.prototype._parseKeyframesIndex=function(x){for(var E=[],_=[],T=1;T>>4;if(M!==2&&M!==10){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+M);return}var $=0,I=(P&12)>>>2;if(I>=0&&I<=4)$=this._flvSoundRateTable[I];else{this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+I);return}var N=P&1,F=this._audioMetadata,W=this._audioTrack;if(F||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),F=this._audioMetadata={},F.type="audio",F.id=W.id,F.timescale=this._timescale,F.duration=this._duration,F.audioSampleRate=$,F.channelCount=N===0?1:2),M===10){var U=this._parseAACAudioData(x,E+1,_-1);if(U==null)return;if(U.packetType===0){F.config&&d.default.w(this.TAG,"Found another AudioSpecificConfig!");var G=U.data;F.audioSampleRate=G.samplingRate,F.channelCount=G.channelCount,F.codec=G.codec,F.originalCodec=G.originalCodec,F.config=G.config,F.refSampleDuration=1024/F.audioSampleRate*F.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",F);var Z=this._mediaInfo;Z.audioCodec=F.originalCodec,Z.audioSampleRate=F.audioSampleRate,Z.audioChannelCount=F.channelCount,Z.hasVideo?Z.videoCodec!=null&&(Z.mimeType='video/x-flv; codecs="'+Z.videoCodec+","+Z.audioCodec+'"'):Z.mimeType='video/x-flv; codecs="'+Z.audioCodec+'"',Z.isComplete()&&this._onMediaInfo(Z)}else if(U.packetType===1){var oe=this._timestampBase+T,X={unit:U.data,length:U.data.byteLength,dts:oe,pts:oe};W.samples.push(X),W.length+=U.data.length}else d.default.e(this.TAG,"Flv: Unsupported AAC data type "+U.packetType)}else if(M===2){if(!F.codec){var G=this._parseMP3AudioData(x,E+1,_-1,!0);if(G==null)return;F.audioSampleRate=G.samplingRate,F.channelCount=G.channelCount,F.codec=G.codec,F.originalCodec=G.originalCodec,F.refSampleDuration=1152/F.audioSampleRate*F.timescale,d.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",F);var Z=this._mediaInfo;Z.audioCodec=F.codec,Z.audioSampleRate=F.audioSampleRate,Z.audioChannelCount=F.channelCount,Z.audioDataRate=G.bitRate,Z.hasVideo?Z.videoCodec!=null&&(Z.mimeType='video/x-flv; codecs="'+Z.videoCodec+","+Z.audioCodec+'"'):Z.mimeType='video/x-flv; codecs="'+Z.audioCodec+'"',Z.isComplete()&&this._onMediaInfo(Z)}var H=this._parseMP3AudioData(x,E+1,_-1,!1);if(H==null)return;var oe=this._timestampBase+T,q={unit:H,length:H.byteLength,dts:oe,pts:oe};W.samples.push(q),W.length+=H.length}}},C.prototype._parseAACAudioData=function(x,E,_){if(_<=1){d.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var T={},D=new Uint8Array(x,E,_);return T.packetType=D[0],D[0]===0?T.data=this._parseAACAudioSpecificConfig(x,E+1,_-1):T.data=D.subarray(1),T},C.prototype._parseAACAudioSpecificConfig=function(x,E,_){var T=new Uint8Array(x,E,_),D=null,P=0,M=0,$=0,I=null;if(P=M=T[0]>>>3,$=(T[0]&7)<<1|T[1]>>>7,$<0||$>=this._mpegSamplingRates.length){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var N=this._mpegSamplingRates[$],F=(T[1]&120)>>>3;if(F<0||F>=8){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}P===5&&(I=(T[1]&7)<<1|T[2]>>>7,(T[2]&124)>>>2);var W=self.navigator.userAgent.toLowerCase();return W.indexOf("firefox")!==-1?$>=6?(P=5,D=new Array(4),I=$-3):(P=2,D=new Array(2),I=$):W.indexOf("android")!==-1?(P=2,D=new Array(2),I=$):(P=5,I=$,D=new Array(4),$>=6?I=$-3:F===1&&(P=2,D=new Array(2),I=$)),D[0]=P<<3,D[0]|=($&15)>>>1,D[1]=($&15)<<7,D[1]|=(F&15)<<3,P===5&&(D[1]|=(I&15)>>>1,D[2]=(I&1)<<7,D[2]|=8,D[3]=0),{config:D,samplingRate:N,channelCount:F,codec:"mp4a.40."+P,originalCodec:"mp4a.40."+M}},C.prototype._parseMP3AudioData=function(x,E,_,T){if(_<4){d.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var D=new Uint8Array(x,E,_),P=null;if(T){if(D[0]!==255)return;var M=D[1]>>>3&3,$=(D[1]&6)>>1,I=(D[2]&240)>>>4,N=(D[2]&12)>>>2,F=D[3]>>>6&3,W=F!==3?2:1,U=0,G=0,Z="mp3";switch(M){case 0:U=this._mpegAudioV25SampleRateTable[N];break;case 2:U=this._mpegAudioV20SampleRateTable[N];break;case 3:U=this._mpegAudioV10SampleRateTable[N];break}switch($){case 1:I>>4,$=P&15;if($!==7){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+$);return}this._parseAVCVideoPacket(x,E+1,_-1,T,D,M)}},C.prototype._parseAVCVideoPacket=function(x,E,_,T,D,P){if(_<4){d.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var M=this._littleEndian,$=new DataView(x,E,_),I=$.getUint8(0),N=$.getUint32(0,!M)&16777215,F=N<<8>>8;if(I===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(I===1)this._parseAVCVideoData(x,E+4,_-4,T,D,P,F);else if(I!==2){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+I);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(x,E,_){if(_<7){d.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var T=this._videoMetadata,D=this._videoTrack,P=this._littleEndian,M=new DataView(x,E,_);T?typeof T.avcc<"u"&&d.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),T=this._videoMetadata={},T.type="video",T.id=D.id,T.timescale=this._timescale,T.duration=this._duration);var $=M.getUint8(0),I=M.getUint8(1);if(M.getUint8(2),M.getUint8(3),$!==1||I===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(m.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var N=M.getUint8(5)&31;if(N===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else N>1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+N);for(var F=6,W=0;W1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+re);F++;for(var W=0;W=_){d.default.w(this.TAG,"Malformed Nalu near timestamp "+G+", offset = "+W+", dataSize = "+_);break}var oe=I.getUint32(W,!$);if(U===3&&(oe>>>=8),oe>_-U){d.default.w(this.TAG,"Malformed Nalus near timestamp "+G+", NaluSize > DataSize!");return}var X=I.getUint8(W+U)&31;X===5&&(Z=!0);var H=new Uint8Array(x,E+W,U+oe),q={type:X,data:H};N.push(q),F+=H.byteLength,W+=U+oe}if(N.length){var Q=this._videoTrack,ne={units:N,length:F,isKeyframe:Z,dts:G,cts:M,pts:G+M};Z&&(ne.fileposition=D),Q.samples.push(ne),Q.length+=F}},C})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var d=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(m){for(var g=m,y=g.byteLength,S=new Uint8Array(y),k=0,C=0;C=2&&g[C]===3&&g[C-1]===0&&g[C-2]===0||(S[k]=g[C],k++);return new Uint8Array(S.buffer,0,k)},p.parseSPS=function(m){var g=p._ebsp2rbsp(m),y=new d.default(g);y.readByte();var S=y.readByte();y.readByte();var k=y.readByte();y.readUEG();var C=p.getProfileString(S),x=p.getLevelString(k),E=1,_=420,T=[0,420,422,444],D=8;if((S===100||S===110||S===122||S===244||S===44||S===83||S===86||S===118||S===128||S===138||S===144)&&(E=y.readUEG(),E===3&&y.readBits(1),E<=3&&(_=T[E]),D=y.readUEG()+8,y.readUEG(),y.readBits(1),y.readBool()))for(var P=E!==3?8:12,M=0;M0&&ve<16?(q=be[ve-1],Q=Ve[ve-1]):ve===255&&(q=y.readByte()<<8|y.readByte(),Q=y.readByte()<<8|y.readByte())}if(y.readBool()&&y.readBool(),y.readBool()&&(y.readBits(4),y.readBool()&&y.readBits(24)),y.readBool()&&(y.readUEG(),y.readUEG()),y.readBool()){var Je=y.readBits(32),Me=y.readBits(32);ae=y.readBool(),re=Me,Se=Je*2,ne=re/Se}}var je=1;(q!==1||Q!==1)&&(je=q/Q);var ge=0,_e=0;if(E===0)ge=1,_e=2-U;else{var Fe=E===3?1:2,He=E===1?2:1;ge=Fe,_e=He*(2-U)}var Qe=(F+1)*16,rt=(2-U)*((W+1)*16);Qe-=(G+Z)*ge,rt-=(oe+X)*_e;var ft=Math.ceil(Qe*je);return y.destroy(),y=null,{profile_string:C,level_string:x,bit_depth:D,ref_frames:N,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:ae,fps:ne,fps_den:Se,fps_num:re},sar_ratio:{width:q,height:Q},codec_size:{width:Qe,height:rt},present_size:{width:ft,height:rt}}},p._skipScalingList=function(m,g){for(var y=8,S=8,k=0,C=0;C=15048,C=d.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&C}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){var x=this;this._dataSource=k,this._range=C;var E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var _=this._seekHandler.getConfig(E,C),T=new self.Headers;if(typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.append(P,D[P])}var M={method:"GET",headers:T,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var P in this._config.headers)T.append(P,this._config.headers[P]);k.cors===!1&&(M.mode="same-origin"),k.withCredentials&&(M.credentials="include"),k.referrerPolicy&&(M.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,M.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,M).then(function($){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,$.body.cancel();return}if($.ok&&$.status>=200&&$.status<=299){if($.url!==_.url&&x._onURLRedirect){var I=x._seekHandler.removeURLParameters($.url);x._onURLRedirect(I)}var N=$.headers.get("Content-Length");return N!=null&&(x._contentLength=parseInt(N),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,$.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:$.status,msg:$.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+$.status+" "+$.statusText)}).catch(function($){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:$.message});else throw $})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!d.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},S.prototype._pump=function(k){var C=this;return k.read().then(function(x){if(x.done)if(C._contentLength!==null&&C._receivedLength0&&(this._stashInitialSize=D.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,D.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=T,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(T.url),this._refTotalLength=T.filesize?T.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return _.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},_.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},_.prototype.isPaused=function(){return this._paused},Object.defineProperty(_.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"extraData",{get:function(){return this._extraData},set:function(T){this._extraData=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(T){this._onDataArrival=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(T){this._onSeeked=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(T){this._onError=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(T){this._onComplete=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(T){this._onRedirect=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(T){this._onRecoveredEarlyEof=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentSpeed",{get:function(){return this._loaderClass===y.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),_.prototype._selectSeekHandler=function(){var T=this._config;if(T.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(T.seekType==="param"){var D=T.seekParamStart||"bstart",P=T.seekParamEnd||"bend";this._seekHandler=new C.default(D,P)}else if(T.seekType==="custom"){if(typeof T.customSeekHandler!="function")throw new x.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new T.customSeekHandler}else throw new x.InvalidArgumentException("Invalid seekType in config: "+T.seekType)},_.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=S.default;else if(m.default.isSupported())this._loaderClass=m.default;else if(g.default.isSupported())this._loaderClass=g.default;else if(y.default.isSupported())this._loaderClass=y.default;else throw new x.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!")},_.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},_.prototype.open=function(T){this._currentRange={from:0,to:-1},T&&(this._currentRange.from=T),this._speedSampler.reset(),T||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},_.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},_.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},_.prototype.resume=function(){if(this._paused){this._paused=!1;var T=this._resumeFrom;this._resumeFrom=0,this._internalSeek(T,!0)}},_.prototype.seek=function(T){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(T,!0)},_.prototype._internalSeek=function(T,D){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(D),this._loader.destroy(),this._loader=null;var P={from:T,to:-1};this._currentRange={from:P.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,P),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(T){if(!T||typeof T!="string"||T.length===0)throw new x.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=T},_.prototype._expandBuffer=function(T){for(var D=this._stashSize;D+1024*1024*10){var M=new Uint8Array(this._stashBuffer,0,this._stashUsed),$=new Uint8Array(P,0,D);$.set(M,0)}this._stashBuffer=P,this._bufferSize=D}},_.prototype._normalizeSpeed=function(T){var D=this._speedNormalizeList,P=D.length-1,M=0,$=0,I=P;if(T=D[M]&&T=512&&T<=1024?D=Math.floor(T*1.5):D=T*2,D>8192&&(D=8192);var P=D*1024+1024*1024*1;this._bufferSize0){var U=this._stashBuffer.slice(0,this._stashUsed),I=this._dispatchChunks(U,this._stashByteStart);if(I0){var W=new Uint8Array(U,I);F.set(W,0),this._stashUsed=W.byteLength,this._stashByteStart+=I}}else this._stashUsed=0,this._stashByteStart+=I;this._stashUsed+T.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+T.byteLength),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength}else{var I=this._dispatchChunks(T,D);if(Ithis._bufferSize&&(this._expandBuffer(N),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(T,I),0),this._stashUsed+=N,this._stashByteStart=D+I}}}else if(this._stashUsed===0){var I=this._dispatchChunks(T,D);if(Ithis._bufferSize&&this._expandBuffer(N);var F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.set(new Uint8Array(T,I),0),this._stashUsed+=N,this._stashByteStart=D+I}}else{this._stashUsed+T.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+T.byteLength);var F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength;var I=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(I0){var W=new Uint8Array(this._stashBuffer,I);F.set(W,0)}this._stashUsed-=I,this._stashByteStart+=I}}},_.prototype._flushStashBuffer=function(T){if(this._stashUsed>0){var D=this._stashBuffer.slice(0,this._stashUsed),P=this._dispatchChunks(D,this._stashByteStart),M=D.byteLength-P;if(P0){var $=new Uint8Array(this._stashBuffer,0,this._bufferSize),I=new Uint8Array(D,P);$.set(I,0),this._stashUsed=I.byteLength,this._stashByteStart+=P}return 0}return this._stashUsed=0,this._stashByteStart=0,M}return 0},_.prototype._onLoaderComplete=function(T,D){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(T,D){switch(d.default.e(this.TAG,"Loader error, code = "+D.code+", msg = "+D.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,T=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),T){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var P=this._currentRange.to+1;P0)for(var k=g.split("&"),C=0;C0;x[0]!==this._startName&&x[0]!==this._endName&&(E&&(S+="&"),S+=k[C])}return S.length===0?m:m+"?"+S},h})();l.default=d}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var d=(function(){function h(p){this._zeroStart=p||!1}return h.prototype.getConfig=function(p,m){var g={};if(m.from!==0||m.to!==-1){var y=void 0;m.to!==-1?y="bytes="+m.from.toString()+"-"+m.to.toString():y="bytes="+m.from.toString()+"-",g.Range=y}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=d}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var d=(function(){function h(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return h.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},h.prototype.addBytes=function(p){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=p,this._totalBytes+=p):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=p,this._totalBytes+=p):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=p,this._totalBytes+=p,this._lastCheckpoint=this._now())},Object.defineProperty(h.prototype,"currentKBps",{get:function(){this.addBytes(0);var p=(this._now()-this._lastCheckpoint)/1e3;return p==0&&(p=1),this._intervalBytes/p/1024},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"averageKBps",{get:function(){var p=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/p/1024},enumerable:!1,configurable:!0}),h})();l.default=d}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var d=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(y,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,C){k.__proto__=C}||function(k,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(k[x]=C[x])},g(y,S)};return function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(y,S);function k(){this.constructor=y}y.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),m=(function(g){p(y,g);function y(){var S=g.call(this,"websocket-loader")||this;return S.TAG="WebSocketLoader",S._needStash=!0,S._ws=null,S._requestAbort=!1,S._receivedLength=0,S}return y.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},y.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},y.prototype.open=function(S){try{var k=this._ws=new self.WebSocket(S.url);k.binaryType="arraybuffer",k.onopen=this._onWebSocketOpen.bind(this),k.onclose=this._onWebSocketClose.bind(this),k.onmessage=this._onWebSocketMessage.bind(this),k.onerror=this._onWebSocketError.bind(this),this._status=d.LoaderStatus.kConnecting}catch(x){this._status=d.LoaderStatus.kError;var C={code:x.code,msg:x.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.msg)}},y.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=d.LoaderStatus.kComplete},y.prototype._onWebSocketOpen=function(S){this._status=d.LoaderStatus.kBuffering},y.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},y.prototype._onWebSocketMessage=function(S){var k=this;if(S.data instanceof ArrayBuffer)this._dispatchArrayBuffer(S.data);else if(S.data instanceof Blob){var C=new FileReader;C.onload=function(){k._dispatchArrayBuffer(C.result)},C.readAsArrayBuffer(S.data)}else{this._status=d.LoaderStatus.kError;var x={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},y.prototype._dispatchArrayBuffer=function(S){var k=S,C=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,C,this._receivedLength)},y.prototype._onWebSocketError=function(S){this._status=d.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},y})(d.BaseLoader);l.default=m}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),m=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),g=(function(y){m(S,y);function S(k,C){var x=y.call(this,"xhr-moz-chunked-loader")||this;return x.TAG="MozChunkedLoader",x._seekHandler=k,x._config=C,x._needStash=!0,x._xhr=null,x._requestAbort=!1,x._contentLength=null,x._receivedLength=0,x}return S.isSupported=function(){try{var k=new XMLHttpRequest;return k.open("GET","https://example.com",!0),k.responseType="moz-chunked-arraybuffer",k.responseType==="moz-chunked-arraybuffer"}catch(C){return d.default.w("MozChunkedLoader",C.message),!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){this._dataSource=k,this._range=C;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var E=this._seekHandler.getConfig(x,C);this._requestURL=E.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",E.url,!0),_.responseType="moz-chunked-arraybuffer",_.onreadystatechange=this._onReadyStateChange.bind(this),_.onprogress=this._onProgress.bind(this),_.onloadend=this._onLoadEnd.bind(this),_.onerror=this._onXhrError.bind(this),k.withCredentials&&(_.withCredentials=!0),typeof E.headers=="object"){var T=E.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}if(typeof this._config.headers=="object"){var T=this._config.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}this._status=h.LoaderStatus.kConnecting,_.send()},S.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete},S.prototype._onReadyStateChange=function(k){var C=k.target;if(C.readyState===2){if(C.responseURL!=null&&C.responseURL!==this._requestURL&&this._onURLRedirect){var x=this._seekHandler.removeURLParameters(C.responseURL);this._onURLRedirect(x)}if(C.status!==0&&(C.status<200||C.status>299))if(this._status=h.LoaderStatus.kError,this._onError)this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:C.status,msg:C.statusText});else throw new p.RuntimeException("MozChunkedLoader: Http code invalid, "+C.status+" "+C.statusText);else this._status=h.LoaderStatus.kBuffering}},S.prototype._onProgress=function(k){if(this._status!==h.LoaderStatus.kError){this._contentLength===null&&k.total!==null&&k.total!==0&&(this._contentLength=k.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var C=k.target.response,x=this._range.from+this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,x,this._receivedLength)}},S.prototype._onLoadEnd=function(k){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===h.LoaderStatus.kError)return;this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)},S.prototype._onXhrError=function(k){this._status=h.LoaderStatus.kError;var C=0,x=null;if(this._contentLength&&k.loaded=this._contentLength&&(E=this._range.from+this._contentLength-1),this._currentRequestRange={from:x,to:E},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(C,x){this._lastTimeLoaded=0;var E=C.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?E=this._currentRedirectedURL:C.redirectedURL!=null&&(E=C.redirectedURL));var _=this._seekHandler.getConfig(E,x);this._currentRequestURL=_.url;var T=this._xhr=new XMLHttpRequest;if(T.open("GET",_.url,!0),T.responseType="arraybuffer",T.onreadystatechange=this._onReadyStateChange.bind(this),T.onprogress=this._onProgress.bind(this),T.onload=this._onLoad.bind(this),T.onerror=this._onXhrError.bind(this),C.withCredentials&&(T.withCredentials=!0),typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}if(typeof this._config.headers=="object"){var D=this._config.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}T.send()},k.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=p.LoaderStatus.kComplete},k.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},k.prototype._onReadyStateChange=function(C){var x=C.target;if(x.readyState===2){if(x.responseURL!=null){var E=this._seekHandler.removeURLParameters(x.responseURL);x.responseURL!==this._currentRequestURL&&E!==this._currentRedirectedURL&&(this._currentRedirectedURL=E,this._onURLRedirect&&this._onURLRedirect(E))}if(x.status>=200&&x.status<=299){if(this._waitForTotalLength)return;this._status=p.LoaderStatus.kBuffering}else if(this._status=p.LoaderStatus.kError,this._onError)this._onError(p.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:x.status,msg:x.statusText});else throw new m.RuntimeException("RangeLoader: Http code invalid, "+x.status+" "+x.statusText)}},k.prototype._onProgress=function(C){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var x=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,x=!0;var E=C.total;this._internalAbort(),E!=null&E!==0&&(this._totalLength=E)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,x){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var _=C.loaded-this._lastTimeLoaded;this._lastTimeLoaded=C.loaded,this._speedSampler.addBytes(_)}},k.prototype._normalizeSpeed=function(C){var x=this._chunkSizeKBList,E=x.length-1,_=0,T=0,D=E;if(C=x[_]&&C=3&&(x=this._speedSampler.currentKBps)),x!==0){var E=this._normalizeSpeed(x);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}var _=C.target.response,T=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var D=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new y.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(M,$){P._msectl.appendInitSegment($)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(M,$){if(P._msectl.appendMediaSegment($),P._config.lazyLoad&&!P._config.isLive){var I=P._mediaElement.currentTime;$.info.endDts>=(I+P._config.lazyLoadMaxDuration)*1e3&&P._progressChecker==null&&(p.default.v(P.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),P._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){P._msectl.endOfStream(),P._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){P._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,M,$)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,M,{code:-1,msg:$})}),this._transmuxer.on(S.default.MEDIA_INFO,function(M){P._mediaInfo=M,P._emitter.emit(g.default.MEDIA_INFO,Object.assign({},M))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(M){P._emitter.emit(g.default.METADATA_ARRIVED,M)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(M){P._emitter.emit(g.default.SCRIPTDATA_ARRIVED,M)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(M){P._statisticsInfo=P._fillStatisticsInfo(M),P._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},P._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(M){P._mediaElement&&!P._config.accurateSeek&&(P._requestSetTime=!0,P._mediaElement.currentTime=M/1e3)}),this._transmuxer.open()}},D.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},D.prototype.play=function(){return this._mediaElement.play()},D.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(D.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(P){this._mediaElement.volume=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(P){this._mediaElement.muted=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(P){this._mediaElement?this._internalSeek(P):this._pendingSeekTime=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),D.prototype._fillStatisticsInfo=function(P){if(P.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return P;var M=!0,$=0,I=0;if(this._mediaElement.getVideoPlaybackQuality){var N=this._mediaElement.getVideoPlaybackQuality();$=N.totalVideoFrames,I=N.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,I=this._mediaElement.webkitDroppedFrameCount):M=!1;return M&&(P.decodedFrames=$,P.droppedFrames=I),P},D.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var P=this._mediaElement.buffered,M=this._mediaElement.currentTime,$=0,I=0;I=M+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},D.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},D.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},D.prototype._checkProgressAndResume=function(){for(var P=this._mediaElement.currentTime,M=this._mediaElement.buffered,$=!1,I=0;I=N&&P=F-this._config.lazyLoadRecoverDuration&&($=!0);break}}$&&(window.clearInterval(this._progressChecker),this._progressChecker=null,$&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},D.prototype._isTimepointBuffered=function(P){for(var M=this._mediaElement.buffered,$=0;$=I&&P0){var N=this._mediaElement.buffered.start(0);(N<1&&P0&&M.currentTime<$.start(0)&&(p.default.w(this.TAG,"Playback seems stuck at "+M.currentTime+", seek to "+$.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=$.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},D.prototype._onvLoadedMetadata=function(P){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},D.prototype._onvSeeking=function(P){var M=this._mediaElement.currentTime,$=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(M<1&&$.length>0){var I=$.start(0);if(I<1&&M0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},S.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},S.prototype.play=function(){return this._mediaElement.play()},S.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(S.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(k){this._mediaElement.volume=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(k){this._mediaElement.muted=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(k){this._mediaElement?this._mediaElement.currentTime=k:this._pendingSeekTime=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"mediaInfo",{get:function(){var k=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",C={mimeType:k+this._mediaDataSource.type};return this._mediaElement&&(C.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(C.width=this._mediaElement.videoWidth,C.height=this._mediaElement.videoHeight)),C},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statisticsInfo",{get:function(){var k={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return k;var C=!0,x=0,E=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();x=_.totalVideoFrames,E=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(x=this._mediaElement.webkitDecodedFrameCount,E=this._mediaElement.webkitDroppedFrameCount):C=!1;return C&&(k.decodedFrames=x,k.droppedFrames=E),k},enumerable:!1,configurable:!0}),S.prototype._onvLoadedMetadata=function(k){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(p.default.MEDIA_INFO,this.mediaInfo)},S.prototype._reportStatisticsInfo=function(){this._emitter.emit(p.default.STATISTICS_INFO,this.statisticsInfo)},S})();l.default=y}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return m}});var d=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},m={NETWORK_EXCEPTION:d.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.default.CODEC_UNSUPPORTED}}),"./src/player/player-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};l.default=d}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.getSilentFrame=function(p,m){if(p==="mp4a.40.2"){if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},h})();l.default=d}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.init=function(){h.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var p in h.types)h.types.hasOwnProperty(p)&&(h.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var m=h.constants={};m.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),m.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),m.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),m.STSC=m.STCO=m.STTS,m.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),m.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),m.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),m.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),m.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var m=8,g=null,y=Array.prototype.slice.call(arguments,1),S=y.length,k=0;k>>24&255,g[1]=m>>>16&255,g[2]=m>>>8&255,g[3]=m&255,g.set(p,4);for(var C=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},h.trak=function(p){return h.box(h.types.trak,h.tkhd(p),h.mdia(p))},h.tkhd=function(p){var m=p.id,g=p.duration,y=p.presentWidth,S=p.presentHeight;return h.box(h.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,y>>>8&255,y&255,0,0,S>>>8&255,S&255,0,0]))},h.mdia=function(p){return h.box(h.types.mdia,h.mdhd(p),h.hdlr(p),h.minf(p))},h.mdhd=function(p){var m=p.timescale,g=p.duration;return h.box(h.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var m=null;return p.type==="audio"?m=h.constants.HDLR_AUDIO:m=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,m)},h.minf=function(p){var m=null;return p.type==="audio"?m=h.box(h.types.smhd,h.constants.SMHD):m=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,m,h.dinf(),h.stbl(p))},h.dinf=function(){var p=h.box(h.types.dinf,h.box(h.types.dref,h.constants.DREF));return p},h.stbl=function(p){var m=h.box(h.types.stbl,h.stsd(p),h.box(h.types.stts,h.constants.STTS),h.box(h.types.stsc,h.constants.STSC),h.box(h.types.stsz,h.constants.STSZ),h.box(h.types.stco,h.constants.STCO));return m},h.stsd=function(p){return p.type==="audio"?p.codec==="mp3"?h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp3(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp4a(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.avc1(p))},h.mp3=function(p){var m=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types[".mp3"],y)},h.mp4a=function(p){var m=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types.mp4a,y,h.esds(p))},h.esds=function(p){var m=p.config||[],g=m.length,y=new Uint8Array([0,0,0,0,3,23+g,0,1,0,4,15+g,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([g]).concat(m).concat([6,1,2]));return h.box(h.types.esds,y)},h.avc1=function(p){var m=p.avcc,g=p.codecWidth,y=p.codecHeight,S=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,g>>>8&255,g&255,y>>>8&255,y&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return h.box(h.types.avc1,S,h.box(h.types.avcC,m))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var m=p.id,g=new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return h.box(h.types.trex,g)},h.moof=function(p,m){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,m))},h.mfhd=function(p){var m=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,m)},h.traf=function(p,m){var g=p.id,y=h.box(h.types.tfhd,new Uint8Array([0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255])),S=h.box(h.types.tfdt,new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255])),k=h.sdtp(p),C=h.trun(p,k.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,y,S,C,k)},h.sdtp=function(p){for(var m=p.samples||[],g=m.length,y=new Uint8Array(4+g),S=0;S>>24&255,y>>>16&255,y>>>8&255,y&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255],0);for(var C=0;C>>24&255,x>>>16&255,x>>>8&255,x&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.isNonSync,0,0,T>>>24&255,T>>>16&255,T>>>8&255,T&255],12+16*C)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();d.init(),l.default=d}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/remux/mp4-generator.js"),p=c("./src/remux/aac-silent.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-segment-info.js"),y=c("./src/utils/exception.js"),S=(function(){function k(C){this.TAG="MP4Remuxer",this._config=C,this._isLive=C.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new g.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new g.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(m.default.chrome&&(m.default.version.major<50||m.default.version.major===50&&m.default.version.build<2661)),this._fillSilentAfterSeek=m.default.msedge||m.default.msie,this._mp3UseMpegAudio=!m.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return k.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},k.prototype.bindDataSource=function(C){return C.onDataAvailable=this.remux.bind(this),C.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(k.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(C){this._onInitSegment=C},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(C){this._onMediaSegment=C},enumerable:!1,configurable:!0}),k.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},k.prototype.seek=function(C){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},k.prototype.remux=function(C,x){if(!this._onMediaSegment)throw new y.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(C,x),this._remuxVideo(x),this._remuxAudio(C)},k.prototype._onTrackMetadataReceived=function(C,x){var E=null,_="mp4",T=x.codec;if(C==="audio")this._audioMeta=x,x.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",T="",E=new Uint8Array):E=h.default.generateInitSegment(x);else if(C==="video")this._videoMeta=x,E=h.default.generateInitSegment(x);else return;if(!this._onInitSegment)throw new y.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:E.buffer,codec:T,container:C+"/"+_,mediaDuration:x.duration})},k.prototype._calculateDtsBase=function(C,x){this._dtsBaseInited||(C.samples&&C.samples.length&&(this._audioDtsBase=C.samples[0].dts),x.samples&&x.samples.length&&(this._videoDtsBase=x.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var C=this._videoStashedLastSample,x=this._audioStashedLastSample,E={type:"video",id:1,sequenceNumber:0,samples:[],length:0};C!=null&&(E.samples.push(C),E.length=C.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};x!=null&&(_.samples.push(x),_.length=x.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(E,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(C,x){if(this._audioMeta!=null){var E=C,_=E.samples,T=void 0,D=-1,P=-1,M=this._audioMeta.refSampleDuration,$=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,I=this._dtsBaseInited&&this._audioNextDts===void 0,N=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var F=0,W=null,U=0;$?(F=0,U=E.length):(F=8,U=8+E.length);var G=null;if(_.length>1&&(G=_.pop(),U-=G.length),this._audioStashedLastSample!=null){var Z=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(Z),U+=Z.length}G!=null&&(this._audioStashedLastSample=G);var oe=_[0].dts-this._dtsBase;if(this._audioNextDts)T=oe-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())T=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(N=!0);else{var X=this._audioSegmentInfoList.getLastSampleBefore(oe);if(X!=null){var H=oe-(X.originalDts+X.duration);H<=3&&(H=0);var q=X.dts+X.duration+H;T=oe-q}else T=0}if(N){var Q=oe-T,ne=this._videoSegmentInfoList.getLastSegmentBefore(oe);if(ne!=null&&ne.beginDts=_e*M&&this._fillAudioTimestampGap&&!m.default.safari){Je=!0;var Fe=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: "+Ve+" ms, curRefDts: "+ge+" ms, ")+("dtsCorrection: "+Math.round(T)+" ms, generate: "+Fe+" frames")),re=Math.floor(ge),je=Math.floor(ge+M)-re;var ae=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ae==null&&(d.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),ae=be),Me=[];for(var He=0;He=1?je=xe[xe.length-1].duration:je=Math.floor(M);this._audioNextDts=re+je}D===-1&&(D=re),xe.push({dts:re,pts:re,cts:0,unit:Z.unit,size:Z.unit.byteLength,duration:je,originalDts:Ve,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Je&&xe.push.apply(xe,Me)}}if(xe.length===0){E.samples=[],E.length=0;return}$?W=new Uint8Array(U):(W=new Uint8Array(U),W[0]=U>>>24&255,W[1]=U>>>16&255,W[2]=U>>>8&255,W[3]=U&255,W.set(h.default.types.mdat,4));for(var ve=0;ve1&&(W=_.pop(),F-=W.length),this._videoStashedLastSample!=null){var U=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(U),F+=U.length}W!=null&&(this._videoStashedLastSample=W);var G=_[0].dts-this._dtsBase;if(this._videoNextDts)T=G-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())T=0;else{var Z=this._videoSegmentInfoList.getLastSampleBefore(G);if(Z!=null){var oe=G-(Z.originalDts+Z.duration);oe<=3&&(oe=0);var X=Z.dts+Z.duration+oe;T=G-X}else T=0}for(var H=new g.MediaSegmentInfo,q=[],Q=0;Q<_.length;Q++){var U=_[Q],ne=U.dts-this._dtsBase,ae=U.isKeyframe,re=ne-T,Se=U.cts,xe=re+Se;D===-1&&(D=re,M=xe);var ve=0;if(Q!==_.length-1){var be=_[Q+1].dts-this._dtsBase-T;ve=be-re}else if(W!=null){var be=W.dts-this._dtsBase-T;ve=be-re}else q.length>=1?ve=q[q.length-1].duration:ve=Math.floor(this._videoMeta.refSampleDuration);if(ae){var Ve=new g.SampleInfo(re,xe,ve,U.dts,!0);Ve.fileposition=U.fileposition,H.appendSyncPoint(Ve)}q.push({dts:re,pts:xe,cts:Se,units:U.units,size:U.length,isKeyframe:ae,duration:ve,originalDts:ne,flags:{isLeading:0,dependsOn:ae?2:1,isDependedOn:ae?1:0,hasRedundancy:0,isNonSync:ae?0:1}})}N=new Uint8Array(F),N[0]=F>>>24&255,N[1]=F>>>16&255,N[2]=F>>>8&255,N[3]=F&255,N.set(h.default.types.mdat,4);for(var Q=0;Q=0&&/(rv)(?::| )([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(p)||[],g=/(ipad)/.exec(p)||/(ipod)/.exec(p)||/(windows phone)/.exec(p)||/(iphone)/.exec(p)||/(kindle)/.exec(p)||/(android)/.exec(p)||/(windows)/.exec(p)||/(mac)/.exec(p)||/(linux)/.exec(p)||/(cros)/.exec(p)||[],y={browser:m[5]||m[3]||m[1]||"",version:m[2]||m[4]||"0",majorVersion:m[4]||m[2]||"0",platform:g[0]||""},S={};if(y.browser){S[y.browser]=!0;var k=y.majorVersion.split(".");S.version={major:parseInt(y.majorVersion,10),string:y.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(y.platform&&(S[y.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var C="msie";y.browser=C,S[C]=!0}if(S.edge){delete S.edge;var x="msedge";y.browser=x,S[x]=!0}if(S.opr){var E="opera";y.browser=E,S[E]=!0}if(S.safari&&S.android){var _="android";y.browser=_,S[_]=!0}S.name=y.browser,S.platform=y.platform;for(var T in d)d.hasOwnProperty(T)&&delete d[T];Object.assign(d,S)}h(),l.default=d}),"./src/utils/exception.js":(function(s,l,c){c.r(l),c.d(l,{RuntimeException:function(){return h},IllegalStateException:function(){return p},InvalidArgumentException:function(){return m},NotImplementedException:function(){return g}});var d=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),h=(function(){function y(S){this._message=S}return Object.defineProperty(y.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),y.prototype.toString=function(){return this.name+": "+this.message},y})(),p=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),m=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),S})(h)}),"./src/utils/logger.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=(function(){function m(){}return m.e=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","error",S),m.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},m.i=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","info",S),m.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},m.w=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","warn",S),m.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},m.d=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","debug",S),m.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},m.v=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","verbose",S),m.ENABLE_VERBOSE&&console.log(S)},m})();p.GLOBAL_TAG="flv.js",p.FORCE_GLOBAL_TAG=!1,p.ENABLE_ERROR=!0,p.ENABLE_INFO=!0,p.ENABLE_WARN=!0,p.ENABLE_DEBUG=!0,p.ENABLE_VERBOSE=!0,p.ENABLE_CALLBACK=!1,p.emitter=new(h()),l.default=p}),"./src/utils/logging-control.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),m=(function(){function g(){}return Object.defineProperty(g,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(y){p.default.FORCE_GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(y){p.default.GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableAll",{get:function(){return p.default.ENABLE_VERBOSE&&p.default.ENABLE_DEBUG&&p.default.ENABLE_INFO&&p.default.ENABLE_WARN&&p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_VERBOSE=y,p.default.ENABLE_DEBUG=y,p.default.ENABLE_INFO=y,p.default.ENABLE_WARN=y,p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(y){p.default.ENABLE_DEBUG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(y){p.default.ENABLE_VERBOSE=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(y){p.default.ENABLE_INFO=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(y){p.default.ENABLE_WARN=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),g.getConfig=function(){return{globalTag:p.default.GLOBAL_TAG,forceGlobalTag:p.default.FORCE_GLOBAL_TAG,enableVerbose:p.default.ENABLE_VERBOSE,enableDebug:p.default.ENABLE_DEBUG,enableInfo:p.default.ENABLE_INFO,enableWarn:p.default.ENABLE_WARN,enableError:p.default.ENABLE_ERROR,enableCallback:p.default.ENABLE_CALLBACK}},g.applyConfig=function(y){p.default.GLOBAL_TAG=y.globalTag,p.default.FORCE_GLOBAL_TAG=y.forceGlobalTag,p.default.ENABLE_VERBOSE=y.enableVerbose,p.default.ENABLE_DEBUG=y.enableDebug,p.default.ENABLE_INFO=y.enableInfo,p.default.ENABLE_WARN=y.enableWarn,p.default.ENABLE_ERROR=y.enableError,p.default.ENABLE_CALLBACK=y.enableCallback},g._notifyChange=function(){var y=g.emitter;if(y.listenerCount("change")>0){var S=g.getConfig();y.emit("change",S)}},g.registerListener=function(y){g.emitter.addListener("change",y)},g.removeListener=function(y){g.emitter.removeListener("change",y)},g.addLogListener=function(y){p.default.emitter.addListener("log",y),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(y){p.default.emitter.removeListener("log",y),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,g._notifyChange())},g})();m.emitter=new(h()),l.default=m}),"./src/utils/polyfill.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(p),g=1;g=128){m.push(String.fromCharCode(k&65535)),y+=2;continue}}}else if(g[y]<240){if(d(g,y,2)){var k=(g[y]&15)<<12|(g[y+1]&63)<<6|g[y+2]&63;if(k>=2048&&(k&63488)!==55296){m.push(String.fromCharCode(k&65535)),y+=3;continue}}}else if(g[y]<248&&d(g,y,3)){var k=(g[y]&7)<<18|(g[y+1]&63)<<12|(g[y+2]&63)<<6|g[y+3]&63;if(k>65536&&k<1114112){k-=65536,m.push(String.fromCharCode(k>>>10|55296)),m.push(String.fromCharCode(k&1023|56320)),y+=4;continue}}}m.push("�"),++y}return m.join("")}l.default=h})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s].call(c.exports,c,c.exports,o),c.exports}o.m=n,(function(){o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,{a:l}),l}})(),(function(){o.d=function(s,l){for(var c in l)o.o(l,c)&&!o.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}})(),(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}})(),(function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var a=o("./src/index.js");return a})()})})(tj)),tj.exports}var UTt=zTt();const tU=ed(UTt);var nj={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var Que;function HTt(){return Que||(Que=1,(function(e){(function(){var t=typeof window<"u"?window:ow,n={};(function(o,a,s){var l,c=typeof Object.create=="function"?Object.create:function(i){function u(){}return u.prototype=i,new u},d=typeof Object.defineProperties=="function"?Object.defineProperty:function(i,u,f){return i==Array.prototype||i==Object.prototype||(i[u]=f.value),i};function h(i){i=[typeof globalThis=="object"&&globalThis,i,typeof o=="object"&&o,typeof self=="object"&&self,typeof a=="object"&&a];for(var u=0;u>>0)+"_",b=0;return u}),m("Symbol.iterator",function(i){if(i)return i;i=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"?!0:(typeof A=="function"?A=new A("unhandledrejection",{cancelable:!0}):typeof R=="function"?A=new R("unhandledrejection",{cancelable:!0}):(A=p.document.createEvent("CustomEvent"),A.initCustomEvent("unhandledrejection",!1,!0,A)),A.promise=this,A.reason=this.i,B(A))},u.prototype.B=function(){if(this.g!=null){for(var A=0;A1114111||b!==Math.floor(b))throw new RangeError("invalid_code_point "+b);b<=65535?f+=String.fromCharCode(b):(b-=65536,f+=String.fromCharCode(b>>>10&1023|55296),f+=String.fromCharCode(b&1023|56320))}return f}}),m("WeakSet",function(i){function u(f){if(this.g=new WeakMap,f){f=_(f);for(var v;!(v=f.next()).done;)this.add(v.value)}}return(function(){if(!i||!Object.seal)return!1;try{var f=Object.seal({}),v=Object.seal({}),b=new i([f]);return!b.has(f)||b.has(v)?!1:(b.delete(f),b.add(v),!b.has(f)&&b.has(v))}catch{return!1}})()?i:(u.prototype.add=function(f){return this.g.set(f,!0),this},u.prototype.has=function(f){return this.g.has(f)},u.prototype.delete=function(f){return this.g.delete(f)},u)}),m("Array.prototype.find",function(i){return i||function(u,f){return ve(this,u,f).v}}),m("String.prototype.startsWith",function(i){return i||function(u,f){var v=Ve(this,u,"startsWith"),b=v.length,w=u.length;f=Math.max(0,Math.min(f|0,v.length));for(var A=0;A=w}}),m("Object.entries",function(i){return i||function(u){var f=[],v;for(v in u)xe(u,v)&&f.push([v,u[v]]);return f}});var Je=typeof Object.assign=="function"?Object.assign:function(i,u){for(var f=1;f1342177279)throw new RangeError("Invalid count value");u|=0;for(var v="";u;)u&1&&(v+=f),(u>>>=1)&&(f+=f);return v}}),m("Number.EPSILON",function(){return 2220446049250313e-31}),m("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),m("Number.isFinite",function(i){return i||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),m("Object.values",function(i){return i||function(u){var f=[],v;for(v in u)xe(u,v)&&f.push(u[v]);return f}}),m("Math.log2",function(i){return i||function(u){return Math.log(u)/Math.LN2}}),m("String.prototype.endsWith",function(i){return i||function(u,f){var v=Ve(this,u,"endsWith");f===void 0&&(f=v.length),f=Math.max(0,Math.min(f|0,v.length));for(var b=u.length;b>0&&f>0;)if(v[--f]!=u[--b])return!1;return b<=0}}),m("Math.trunc",function(i){return i||function(u){if(u=Number(u),isNaN(u)||u===1/0||u===-1/0||u===0)return u;var f=Math.floor(Math.abs(u));return u<0?-f:f}});var Me=this||self;function je(i,u){i=i.split(".");var f=Me;i[0]in f||typeof f.execScript>"u"||f.execScript("var "+i[0]);for(var v;i.length&&(v=i.shift());)i.length||u===void 0?f[v]&&f[v]!==Object.prototype[v]?f=f[v]:f=f[v]={}:f[v]=u}function ge(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}ge.prototype.sample=function(i,u){var f=Math.pow(this.g,i);u=u*(1-f)+f*this.h,isNaN(u)||(this.h=u,this.i+=i)};function _e(i){return i.h/(1-Math.pow(i.g,i.i))}function Fe(){this.h=new ge(2),this.j=new ge(5),this.g=0,this.i=128e3,this.l=16e3}Fe.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)},Fe.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function nn(i,u,f){if(f||(f=Tt),i.length!=u.length)return!1;u=u.slice(),i=_(i);for(var v=i.next(),b={};!v.done;b={mi:void 0},v=i.next()){if(b.mi=v.value,v=u.findIndex((function(w){return function(A){return f(w.mi,A)}})(b)),v==-1)return!1;u[v]=u[u.length-1],u.pop()}return u.length==0}function ut(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 v=0;v0?v.i:v.h)(v.g,f,i,u)}function Jn(i,u,f,v){rt([f,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",v].join(" "))}function kr(i,u,f,v){Qe([f,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",v].join(" "))}var Bi=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Cs=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function Pt(i){var u;i instanceof Pt?(fn(this,i.bc),this.hd=i.hd,br(this,i.Db),un(this,i.Cd),this.Sb=i.Sb,kn(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Cs))?(fn(this,u[1]||"",!0),this.hd=ur(u[2]||""),br(this,u[3]||"",!0),un(this,u[4]),this.Sb=ur(u[5]||"",!0),kn(this,u[6]||"",!0),this.Rc=ur(u[7]||"")):this.g=new ie(null)}l=Pt.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(ii(u,Ht,!0),":"),u=this.Db){i.push("//");var f=this.hd;f&&i.push(ii(f,Ht,!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(ii(u,u.charAt(0)=="/"?hn:cn,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",ii(u,le)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new Pt);var f=!!i.bc;f?fn(u,i.bc):f=!!i.hd,f?u.hd=i.hd:f=!!i.Db,f?br(u,i.Db):f=i.Cd!=null;var v=i.Sb;if(f)un(u,i.Cd);else if(f=!!i.Sb){if(v.charAt(0)!="/")if(this.Db&&!this.Sb)v="/"+v;else{var b=u.Sb.lastIndexOf("/");b!=-1&&(v=u.Sb.substr(0,b+1)+v)}if(v==".."||v==".")v="";else if(v.indexOf("./")!=-1||v.indexOf("/.")!=-1){b=v.lastIndexOf("/",0)==0,v=v.split("/");for(var w=[],A=0;A1||w.length==1&&w[0]!="")&&w.pop(),b&&A==v.length&&w.push("")):(w.push(R),b=!0)}v=w.join("/")}}return f?u.Sb=v:f=i.g.toString()!=="",f?kn(u,i.g.clone()):f=!!i.Rc,f&&(u.Rc=i.Rc),u},l.clone=function(){return new Pt(this)};function fn(i,u,f){i.bc=f?ur(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function br(i,u,f){i.Db=f?ur(u,!0):u}function un(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 kn(i,u,f){u instanceof ie?i.g=u:(f||(u=ii(u,on)),i.g=new ie(u))}function ur(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function ii(i,u,f){return i!=null?(i=encodeURI(i).replace(u,kt),f&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function kt(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var Ht=/[#\/\?@]/g,cn=/[#\?:]/g,hn=/[#\?]/g,on=/[#\?@]/g,le=/#/g;function ie(i){this.g=i||null}function te(i){if(!i.eb&&(i.eb=new Map,i.Sd=0,i.g))for(var u=i.g.split("&"),f=0;f=0){var w=u[f].substring(0,v);b=u[f].substring(v+1)}else w=u[f];w=decodeURIComponent(w),b=b||"",i.add(w,decodeURIComponent(b))}}l=ie.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 v=f.value;f=encodeURIComponent(v),v=this.eb.get(v);for(var b=0;b=f+2&&(i[f]&224)==192&&(i[f+1]&192)==128?(v=(i[f]&31)<<6|i[f+1]&63,f+=1):i.length>=f+3&&(i[f]&240)==224&&(i[f+1]&192)==128&&(i[f+2]&192)==128?(v=(i[f]&15)<<12|(i[f+1]&63)<<6|i[f+2]&63,f+=2):i.length>=f+4&&(i[f]&241)==240&&(i[f+1]&192)==128&&(i[f+2]&192)==128&&(i[f+3]&192)==128&&(v=(i[f]&7)<<18|(i[f+1]&63)<<12|(i[f+2]&63)<<6|i[f+3]&63,f+=3),v<=65535)u+=String.fromCharCode(v);else{v-=65536;var b=v&1023;u+=String.fromCharCode(55296+(v>>10)),u+=String.fromCharCode(56320+b)}}return u}function Ot(i,u,f){if(!i)return"";if(!f&&i.byteLength%2!=0)throw new Ee(2,2,2004);f=Math.floor(i.byteLength/2);var v=new Uint16Array(f);i=it(i);for(var b=0;b=9&&f[v]<=126}if(!i)return"";var f=Re(i);if(f[0]==239&&f[1]==187&&f[2]==191)return st(f);if(f[0]==254&&f[1]==255)return 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 st(i);throw new Ee(2,2,2003)}function Gt(i){if(o.TextEncoder&&!Be().rh()){var u=new TextEncoder;return we(u.encode(i))}i=encodeURIComponent(i),i=unescape(i),u=new Uint8Array(i.length);for(var f=0;f",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},f=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,v=RegExp(f.source);return i&&v.test(i)?i.replace(f,function(b){return b[1]=="#"?(b=b[2]=="x"||b[2]=="X"?parseInt(b.substring(3),16):parseInt(b.substring(2),10),b>=0&&b<=1114111?String.fromCodePoint(b):""):u[b]||"'"}):i||""}je("shaka.util.StringUtils",nt),nt.resetFromCharCode=function(){cr.g=void 0},nt.toUTF16=pn,nt.toUTF8=Gt,nt.fromBytesAutoDetect=Zt,nt.fromUTF16=Ot,nt.fromUTF8=st;var cr=new ht(function(){function i(f){try{var v=new Uint8Array(f);return String.fromCharCode.apply(null,v).length>0}catch{return!1}}for(var u={Oc:65536};u.Oc>0;u={Oc:u.Oc},u.Oc/=2)if(i(u.Oc))return(function(f){return function(v){for(var b="",w=0;w"u"&&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,tn("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 ai(i,u,f,v){v.type!=="video"||i.o&&!v.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",v.id,-f,!i.o)}function tu(i){i.g&&i.i.classList.add("shaka-hidden")}Wo.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Il(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}je("shaka.lcevc.Dec",Wo),Wo.prototype.release=Wo.prototype.release;function Fo(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 tg(){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 ep(){}l=ep.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},je("shaka.media.IClosedCaptionParser",ep);function Bs(i){this.h=new Map,this.i=0,this.j=new pc,(i=rd(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 v=this.h.get(u);this.h.set(this.i,this.g),v?this.g=v:((v=Ou)&&(this.g=v()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(i),f!=-1&&(this.i=f)},l.xf=function(i){i=this.j.parse(i),i=_(i);for(var u=i.next();!u.done;u=i.next()){u=u.value;var f=Re(u.packet);f.length>0&&this.g.extract(f,u.pts)}return this.g.decode()},l.Nd=function(){this.g.clear()},l.remove=function(i){i=i===void 0?[]:i,i=new Set(i);for(var u=_(this.h.keys()),f=u.next();!f.done;f=u.next())if(f=f.value,!i.has(f)){var v=this.h.get(f);v&&v.clear(),this.h.delete(f)}},l.Vf=function(){return this.g.getStreams()};function Bf(i,u){jd.set(i,u)}function rd(i){return jd.get(i)}je("shaka.media.ClosedCaptionParser",Bs),Bs.findDecoder=function(){return Ou},Bs.unregisterDecoder=function(){Ou=null},Bs.registerDecoder=function(i){Ou=i},Bs.findParser=rd,Bs.unregisterParser=function(i){jd.delete(i)},Bs.registerParser=Bf;var jd=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=tp}je("shaka.text.CueRegion",tl);var Es=1;tl.units={PX:0,PERCENTAGE:Es,LINES:2};var tp="";tl.scrollMode={NONE:tp,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,Xt),i==null)return null;var u=Number(i[2]),f=Number(i[3]);return u>59||f>59?null:(Number(i[6])||0)/1e3+f+u*60+(Number(i[1])||0)*3600}function It(i){return i?Nf(new vc(i)):null}var Xt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function sn(){}function dn(i){function u(v){switch(typeof v){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return v;default:if(!v||ArrayBuffer.isView(v))return v;if(f.has(v))return null;var b=Array.isArray(v);if(v.constructor!=Object&&!b)return null;f.add(v);var w=b?[]:{},A;for(A in v)w[A]=u(v[A]);return b&&(w.length=v.length),w}}var f=new WeakSet;return u(i)}function In(i){var u={},f;for(f in i)u[f]=i[f];return u}function Xn(i){if(Array.isArray(i)){for(var u=[],f=0;f",b),A=i.substring(A,b);var B=A.indexOf(w);if(B==-1){var V=w.indexOf(".");V>0&&(B=A.indexOf(w.substring(0,V)))}if(B==-1)throw w=i.substring(0,b).split(` `),Error(`Unexpected close tag Line: `+(w.length-1)+` Column: `+(w[w.length-1].length+1)+` Char: `+i[b]);b+1&&(b+=1);break}else if(i.charCodeAt(b+1)===33){if(i.charCodeAt(b+2)==45){for(;b!==-1&&(i.charCodeAt(b)!==62||i.charCodeAt(b-1)!=45||i.charCodeAt(b-2)!=45||b==-1);)b=i.indexOf(">",b+1);b===-1&&(b=i.length)}else if(i.charCodeAt(b+2)===91&&i.charCodeAt(b+8)===91&&i.substr(b+3,5).toLowerCase()==="cdata"){B=i.indexOf("]]>",b),B==-1?(R.push(i.substr(b+9)),b=i.length):(R.push(i.substring(b+9,B)),b=B+3);continue}b++;continue}e:{V=A,b++;var K=v(),Y={};for(B=[];i.charCodeAt(b)!==62&&i[b];){var se=i.charCodeAt(b);if(se>64&&se<91||se>96&&se<123){se=v();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:K,attributes:Y,children:B,parent:null},u)for(K=0;K0&&R.push(B):(R.length&&B.length==1&&B[0]==` `||B.trim().length>0)&&R.push(B),b++;return R}function v(){for(var w=b;`\r >/= `.indexOf(i[b])===-1&&i[b];)b++;return i.slice(w,b)}var b=0;return f("")}function 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 Nr(i,u){var f=[];if(!i.children)return[];i=_(i.children);for(var v=i.next();!v.done;v=i.next())v=v.value,v.tagName===u&&f.push(v);return f}function _r(i){return typeof i=="string"?ln(i):(i=i.children.reduce(function(u,f){return typeof f=="string"?u+f:u},""),i===""?null:ln(i))}function vo(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=_r(i))&&(i=i.trim()),i):null}function Aa(i,u,f){if(f=f===void 0?[]:f,i.tagName===u&&f.push(i),i.children){i=_(i.children);for(var v=i.next();!v.done;v=i.next())Aa(v.value,u,f)}return f}function oi(i,u){return i=Nr(i,u),i.length!=1?null:i[0]}function Ia(i,u,f){return i=CS(i,u,f),i.length!=1?null:i[0]}function On(i,u,f,v){v=v===void 0?null:v;var b=null;return i=i.attributes[u],i!=null&&(b=f(i)),b??v}function Nu(i,u,f){return u=Zi(u),i.attributes[u+":"+f]||null}function CS(i,u,f){var v=Zi(u);if(u=[],i.children)for(f=v?v+":"+f:f,i=_(i.children),v=i.next();!v.done;v=i.next())(v=v.value)&&v.tagName===f&&u.push(v);return u}function Ns(i,u,f){u=_(u);for(var v=u.next();!v.done;v=u.next())if(v=Nu(i,v.value,f))return v;return null}function Ff(i){return i?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(i)&&(i+="Z"),i=Date.parse(i),isNaN(i)?null:i/1e3):null}function Vd(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 wS(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 zd(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 ES(i){return i=Number(i),isNaN(i)?null:i}function TS(i){return i?i.toLowerCase()==="true":!1}function Xbe(i){var u,f=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(f)?null:f}function AS(i){var u=[];i=ln(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var v=f.match(/^([\w]+)/);if(v){var b=f.match(/(@id='(.*?)')/),w=f.match(/(@t='(\d+)')/),A=f.match(/(@n='(\d+)')/),R=f.match(/\[(\d+)\]/);u.push({name:v[0],id:b?b[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:w?Number(w[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:A?Number(A[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:R?Number(R[1])-1:null,Cc:f.split("/@")[1]||null})}else f.startsWith("@")&&u.length&&(u[u.length-1].Cc=f.slice(1))}return u}function MK(i,u){var f=AS(u.attributes.sel||"");if(f.length){var v=f[f.length-1],b=u.attributes.pos||null;f=v.position,f==null&&(v.t!==null&&(f=OK(i,"t",v.t)),v.n!==null&&(f=OK(i,"n",v.n))),f===null?f=b==="prepend"?0:i.length:b==="prepend"?--f:b==="after"&&++f,b=u.tagName,(v=v.Cc)&&i[f]?$K(i[f],b,v,vo(u)||""):(b!=="remove"&&b!=="replace"||i.splice(f,1),b!=="add"&&b!=="replace"||i.splice.apply(i,[f,0].concat(T(u.children))))}}function OK(i,u,f){var v=0;i=_(i);for(var b=i.next();!b.done;b=i.next()){if(Number(b.value.attributes[u])===f)return v;v++}return null}function $K(i,u,f,v){u==="remove"?delete i.attributes[f]:(u==="add"||u==="replace")&&(i.attributes[f]=v)}function BK(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 v in i.attributes)u.setAttribute(v,i.attributes[v]);for(i=_(i.children),v=i.next();!v.done;v=i.next())v=v.value,f=void 0,typeof v=="string"?f=new Text(v):f=BK(v),u.appendChild(f);return u}function kI(i){if(!i)return null;var u={tagName:i.tagName,attributes:In(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 Ri(i,u,f){this.startTime=i,this.endTime=u,this.payload=f,this.region=new tl,this.position=null,this.positionAlign=DS,this.size=0,this.textAlign=Ud,this.direction=x3,this.writingMode=z0,this.lineInterpretation=C3,this.line=null,this.lineHeight="",this.lineAlign=U0,this.displayAlign=k3,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=HK,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 NK(i,u){return i=new Ri(i,u,""),i.lineBreak=!0,i}Ri.prototype.clone=function(){var i=new Ri(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function IS(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(!ut(i.nestedCues,u.nestedCues,IS))return!1}else if(f=="region"||f=="cellResolution"){for(var v in i[f])if(i[f][v]!=u[f][v])return!1}else if(Array.isArray(i[f])){if(!ut(i[f],u[f]))return!1}else if(i[f]!=u[f])return!1}return!0}function LS(i,u){u=u===void 0?new Map:u;var f=i.payload;if(f.includes("<")){u.size===0&&FK(u);var v=f;f=[];for(var b=-1,w=0;w"&&b>0&&(b=v.substr(b,w-b),b.match(Jbe)&&f.push(b),b=-1);for(f=_(f),w=f.next();!w.done;w=f.next())w=w.value,v=v.replace("<"+w+">",'
'),v+="
";e:{w=v,b=[];var A=-1;f="",v=!1;for(var R=0;R",R);if(B===-1){f=w;break e}if((B=w.substring(R+1,B))&&B=="v"){v=!0;var V=null;if(b.length&&(V=b[b.length-1]),V){if(V===B)f+="/"+B+">";else{if(!V.startsWith("v")){f+=w[R];continue}f+="/"+V+">"}R+=B.length+1}else f+=w[R]}else f+=w[R]}else w[R]==="<"?(A=R+1,w[A]!="v"&&(A=-1)):w[R]===">"&&A>0&&(b.push(w.substr(A,R-A)),A=-1),f+=w[R];for(w=_(b),b=w.next();!b.done;b=w.next())b=b.value,A=b.replace(" ",".voice-"),f=f.replace("<"+b+">","<"+A+">"),f=f.replace("",""),v||(f+="")}f=Zbe(f),i.payload="",v=""+f.replace(/\n/g,"
")+"
";try{var K=li(v,"span")}catch{}if(K)if(K=K.children,K.length!=1||K[0].tagName)for(K=_(K),f=K.next();!f.done;f=K.next())jK(f.value,i,u);else i.payload=ln(f);else i.payload=ln(f)}else i.payload=ln(f)}function FK(i){for(var u=_(Object.entries(zK)),f=u.next();!f.done;f=u.next()){var v=_(f.value);f=v.next().value,v=v.next().value;var b=new Ri(0,0,"");b.color=v,i.set("."+f,b)}for(u=_(Object.entries(UK)),f=u.next();!f.done;f=u.next())v=_(f.value),f=v.next().value,v=v.next().value,b=new Ri(0,0,""),b.backgroundColor=v,i.set("."+f,b)}function Zbe(i){var u={"< ":""," >":" >"},f=/(< +>|<\s|\s>)/g,v=RegExp(f.source);return i&&v.test(i)?i.replace(f,function(b){return u[b]||""}):i||""}function jK(i,u,f){var v=u.clone();if(v.nestedCues=[],v.payload="",v.rubyTag="",v.line=null,v.region=new tl,v.position=null,v.size=0,v.textAlign=Ud,i.tagName)for(var b=_(i.tagName.split(/(?=[ .])+/g)),w=b.next();!w.done;w=b.next()){var A=w=w.value;if(A.startsWith(".voice-")){var R=A.split("-").pop();A='v[voice="'+R+'"]',f.has(A)||(A="v[voice="+R+"]")}switch(f.has(A)&&(R=v,A=f.get(A))&&(R.backgroundColor=S3(A.backgroundColor,R.backgroundColor),R.color=S3(A.color,R.color),R.fontFamily=S3(A.fontFamily,R.fontFamily),R.fontSize=S3(A.fontSize,R.fontSize),R.textShadow=S3(A.textShadow,R.textShadow),R.fontWeight=A.fontWeight,R.fontStyle=A.fontStyle,R.opacity=A.opacity,R.rubyTag=A.rubyTag,R.textCombineUpright=A.textCombineUpright,R.wrapLine=A.wrapLine),w){case"br":v=NK(v.startTime,v.endTime),u.nestedCues.push(v);return;case"b":v.fontWeight=ng;break;case"i":v.fontStyle=rg;break;case"u":v.textDecoration.push(jf);break;case"font":(w=i.attributes.color)&&(v.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=It(w))&&(v.startTime=w);break;case"ruby":case"rp":case"rt":v.rubyTag=w}}if(b=i.children,Bu(i)||b.length==1&&Bu(b[0]))for(f=_r(i).split(` `),i=!0,f=_(f),b=f.next();!b.done;b=f.next())b=b.value,i||(i=NK(v.startTime,v.endTime),u.nestedCues.push(i)),b.length>0&&(i=v.clone(),i.payload=ln(b),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(v),u=_(b),i=u.next();!i.done;i=u.next())jK(i.value,v,f)}function S3(i,u){return i&&i.length>0?i:u}je("shaka.text.Cue",Ri),Ri.parseCuePayload=LS,Ri.equal=IS,Ri.prototype.clone=Ri.prototype.clone;var DS="auto";Ri.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:DS};var Ud="center",wI={LEFT:"left",RIGHT:"right",CENTER:Ud,START:"start",END:"end"};Ri.textAlign=wI;var k3="after",VK={BEFORE:"before",CENTER:"center",AFTER:k3};Ri.displayAlign=VK;var x3="ltr";Ri.direction={HORIZONTAL_LEFT_TO_RIGHT:x3,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var z0="horizontal-tb";Ri.writingMode={HORIZONTAL_TOP_TO_BOTTOM:z0,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var C3=0;Ri.lineInterpretation={LINE_NUMBER:C3,PERCENTAGE:1};var U0="start",EI={CENTER:"center",START:U0,END:"end"};Ri.lineAlign=EI;var zK={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ri.defaultTextColor=zK;var UK={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ri.defaultTextBackgroundColor=UK;var HK=400,ng=700;Ri.fontWeight={NORMAL:HK,BOLD:ng};var TI="normal",rg="italic",WK={NORMAL:TI,ITALIC:rg,OBLIQUE:"oblique"};Ri.fontStyle=WK;var jf="underline";Ri.textDecoration={UNDERLINE:jf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var Jbe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function np(){}np.prototype.destroy=function(){};function Vf(i,u,f){AI.set(i.toLowerCase().split(";")[0]+"-"+f,{priority:f,yf:u})}function ig(i,u){for(var f=i.toLowerCase().split(";")[0],v=_([GK,LI,II,rp]),b=v.next();!b.done;b=v.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}je("shaka.transmuxer.TransmuxerEngine",np),np.findTransmuxer=ig,np.unregisterTransmuxer=function(i,u){AI.delete(i.toLowerCase().split(";")[0]+"-"+u)},np.registerTransmuxer=Vf,np.prototype.destroy=np.prototype.destroy;var AI=new Map,rp=1,II=2,LI=3,GK=4;np.PluginPriority={FALLBACK:rp,PREFERRED_SECONDARY:II,PREFERRED:LI,APPLICATION:GK};function DI(){}function bo(i,u){var f=i;return u&&!zf.includes(i)&&(f+='; codecs="'+u+'"'),f}function PS(i,u){return u&&(i+='; codecs="'+u+'"'),i}function PI(i,u,f){var v=bo(i,u);return u=PS(i,u),ig(u)?(i=ig(u))?(i=i(),f=i.convertCodecs(f,u),i.destroy()):f=u:f=i!="video/mp2t"&&f=="audio"?v.replace("video","audio"):v,f}function w3(i){return i.split(";")[0].split("/")[1]}function Js(i){var u=KK(i);switch(i=u[0].toLowerCase(),u=u[1].toLowerCase(),!0){case(i==="mp4a"&&u==="69"):case(i==="mp4a"&&u==="6b"):case(i==="mp4a"&&u==="40.34"):return"mp3";case(i==="mp4a"&&u==="66"):case(i==="mp4a"&&u==="67"):case(i==="mp4a"&&u==="68"):case(i==="mp4a"&&u==="40.2"):case(i==="mp4a"&&u==="40.02"):case(i==="mp4a"&&u==="40.5"):case(i==="mp4a"&&u==="40.05"):case(i==="mp4a"&&u==="40.29"):case(i==="mp4a"&&u==="40.42"):return"aac";case(i==="mp4a"&&u==="a5"):case i==="ac3":case i==="ac-3":return"ac-3";case(i==="mp4a"&&u==="a6"):case i==="eac3":case i==="ec-3":return"ec-3";case i==="ac-4":return"ac-4";case(i==="mp4a"&&u==="b2"):return"dtsx";case(i==="mp4a"&&u==="a9"):return"dtsc";case i==="vp09":case i==="vp9":return"vp9";case i==="avc1":case i==="avc3":return"avc";case i==="hvc1":case i==="hev1":return"hevc";case i==="vvc1":case i==="vvi1":return"vvc";case i==="dvh1":case i==="dvhe":return u&&u.startsWith("05")?"dovi-p5":"dovi-hevc";case i==="dvav":case i==="dva1":return"dovi-avc";case i==="dav1":return"dovi-av1";case i==="dvc1":case i==="dvi1":return"dovi-vvc"}return i}function ip(i){var u=[];i=_(i.split(","));for(var f=i.next();!f.done;f=i.next())f=KK(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 E3(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function KK(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}je("shaka.util.MimeUtils",DI),DI.getFullTypeWithAllCodecs=PS,DI.getFullType=bo,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){I3.set(i,u)}function T3(i){return I3.get(i)}function A3(i){return I3.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 Qbe(i,u,f,v,b){var w,A,R,B,V,K,Y;return re(function(se){if(se.g==1)return I(se,Promise.resolve(),2);if(!i.i||!i.l)return se.return();if(f==null||v==null)return i.i.parseInit(Re(u)),se.return();for(w=i.C?f:i.u,A={periodStart:i.u,segmentStart:f,segmentEnd:v,vttOffset:w},R=i.i.parseMedia(Re(u),A,b,[]),B=_(R),V=B.next();!V.done;V=B.next())K=V.value,i.B(K,b||null,A);Y=R.filter(function(ce){return ce.startTime>=i.m&&ce.startTime=u)return b.return();f&&n_e(v,i,u),v.l&&v.l.remove(i,u)&&v.g!=null&&(u<=v.g||i>=v.h||(i<=v.g&&u>=v.h?v.g=v.h=null:i<=v.g&&uv.g&&u>=v.h&&(v.h=i)),XK(v)),N(b)})};function e_e(i,u,f){i.m=u,i.o=f}function qK(i,u,f){i.F=u,(u=i.j.get(u))&&(u=u.filter(function(v){return v.endTime<=f}),u.length&&i.l.append(u))}function YK(i,u,f){u.startTime+=f,u.endTime+=f,u=_(u.nestedCues);for(var v=u.next();!v.done;v=u.next())YK(i,v.value,f)}function t_e(i,u,f){var v=new Map;u=_(u);for(var b=u.next();!b.done;b=u.next()){var w=b.value;b=w.stream,w=w.cue,v.has(b)||v.set(b,[]),YK(i,w,f),w.startTime>=i.m&&w.startTime=f}),i.j.set(b,w)}}function XK(i){for(var u=1/0,f=-1/0,v=_(i.j.values()),b=v.next();!b.done;b=v.next()){b=_(b.value);for(var w=b.next();!w.done;w=b.next())w=w.value,u=Math.min(u,w.startTime),f=Math.max(f,w.endTime)}u!==1/0&&f!==-1/0&&(i.g=i.g==null?Math.max(u,i.m):Math.min(i.g,Math.max(u,i.m)),i.h=Math.max(i.h,Math.min(f,i.o)))}je("shaka.text.TextEngine",Uf),Uf.prototype.destroy=Uf.prototype.destroy,Uf.findParser=T3,Uf.unregisterParser=function(i){I3.delete(i)},Uf.registerParser=Vs;var I3=new Map;function L3(i){this.h=i,this.g=null}L3.prototype.ia=function(i){var u=this;this.stop();var f=!0,v=null;return this.g=function(){o.clearTimeout(v),f=!1},v=o.setTimeout(function(){f&&u.h()},i*1e3),this},L3.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function vr(i){this.h=i,this.g=null}vr.prototype.Jb=function(){return this.stop(),this.h(),this},vr.prototype.ia=function(i){var u=this;return this.stop(),this.g=new L3(function(){u.h()}).ia(i),this},vr.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new L3(function(){u.g.ia(i),u.h()}).ia(i),this},vr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},je("shaka.util.Timer",vr),vr.prototype.stop=vr.prototype.stop,vr.prototype.tickEvery=vr.prototype.Ea,vr.prototype.tickAfter=vr.prototype.ia,vr.prototype.tickNow=vr.prototype.Jb;function r_e(i,u){return i.concat(u)}function i_e(){}function op(i){return i!=null}function RS(i,u){return Promise.race([u,new Promise(function(f,v){new vr(v).ia(i)})])}function bc(){}function og(i,u){return i=qr(i),u=qr(u),i.split("-")[0]==u.split("-")[0]}function D3(i,u){return i=qr(i),u=qr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function RI(i,u){return i=qr(i),u=qr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function qr(i){i=_(i.split("-x-"));var u=i.next().value;u=u===void 0?"":u,i=i.next().value,i=i===void 0?"":i;var f=_(u.split("-"));return u=f.next().value,u=u===void 0?"":u,f=f.next().value,f=f===void 0?"":f,i=i?"x-"+i:"",u=u.toLowerCase(),u=ZK.get(u)||u,f=f.toUpperCase(),(f?u+"-"+f:u)+(i?"-"+i:"")}function H0(i,u){return i=qr(i),u=qr(u),u==i?4:D3(u,i)?3:RI(u,i)?2:D3(i,u)?1:0}function MS(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=ZK.get(i)||i}function MI(i){return i.language?qr(i.language):i.audio&&i.audio.language?qr(i.audio.language):i.video&&i.video.language?qr(i.video.language):"und"}function OS(i,u){i=qr(i);var f=new Set;u=_(u);for(var v=u.next();!v.done;v=u.next())f.add(qr(v.value));for(u=_(f),v=u.next();!v.done;v=u.next())if(v=v.value,v==i)return v;for(u=_(f),v=u.next();!v.done;v=u.next())if(v=v.value,D3(v,i))return v;for(u=_(f),v=u.next();!v.done;v=u.next())if(v=v.value,RI(v,i))return v;for(f=_(f),u=f.next();!u.done;u=f.next())if(u=u.value,D3(i,u))return u;return null}je("shaka.util.LanguageUtils",bc),bc.findClosestLocale=OS,bc.getLocaleForVariant=MI,bc.getLocaleForText=function(i){return qr(i.language||"und")},bc.getBase=MS,bc.relatedness=H0,bc.areSiblings=function(i,u){var f=MS(i),v=MS(u);return i!=f&&u!=v&&f==v},bc.normalize=qr,bc.isSiblingOf=RI,bc.isParentOf=D3,bc.areLanguageCompatible=og,bc.areLocaleCompatible=function(i,u){return i=qr(i),u=qr(u),i==u};var ZK=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 JK(){}function QK(i,u,f,v,b){function w($e){var Le=String($e.width||"")+String($e.height||"")+String(Math.round($e.frameRate||0))+($e.hdr||"")+$e.fastSwitching;return $e.dependencyStream&&(Le+=$e.dependencyStream.baseOriginalId||""),$e.roles&&(Le+=$e.roles.sort().join("_")),Le}function A($e){var Le=$e.language+($e.channelsCount||0)+($e.audioSamplingRate||0)+$e.roles.join(",")+$e.label+$e.groupId+$e.fastSwitching;return $e.dependencyStream&&(Le+=$e.dependencyStream.baseOriginalId||""),Le}if(b.length){var R=i.textStreams;b=_(b);for(var B=b.next(),V={};!B.done;V={Bh:void 0},B=b.next())if(V.Bh=B.value,B=R.filter((function($e){return function(Le){return!!(Le.codecs.startsWith($e.Bh)||Le.mimeType.startsWith($e.Bh))}})(V)),B.length){R=B;break}i.textStreams=R}if(R=i.variants,(u.length||f.length)&&(R=o_e(R,u,f)),v.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 K=[];u.forEach(function($e,Le){$e=0;var qe=[];Le=_(Le);for(var ot=Le.next(),yt={};!ot.done;yt={Tf:void 0},ot=Le.next())yt.Tf=ot.value,ot=v.filter((function(tt){return function(Ge){return tt.Tf.decodingInfos[0][Ge]}})(yt)).length,ot>$e?($e=ot,qe=[yt.Tf]):ot==$e&&qe.push(yt.Tf);K.push.apply(K,T(qe))}),R=K}for(f=new Set,u=new Set,R=_(R),b=R.next();!b.done;b=R.next())b=b.value,b.audio&&f.add(b.audio),b.video&&u.add(b.video);R=Array.from(f).sort(function($e,Le){return $e.bandwidth-Le.bandwidth});var Y=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,B=A(b),V=f.get(B)||[],V.length){var 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),Y.push(b.id))}else V.push(b),Y.push(b.id);f.set(B,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($e,Le){if(!$e.bandwidth||!Le.bandwidth||$e.bandwidth==Le.bandwidth){if($e.codecs&&Le.codecs&&$e.codecs!=Le.codecs&&$e.width==Le.width){var qe=Js($e.codecs),ot=Js(Le.codecs);if(qe!=ot)return(me[qe]||1)-(me[ot]||1)}return $e.width-Le.width}return $e.bandwidth-Le.bandwidth}),u=hc();var ye=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,B=w(b),V=f.get(B)||[],V.length){if(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(B,V)}i.variants=i.variants.filter(function($e){var Le=$e.audio;return $e=$e.video,!(Le&&!Y.includes(Le.id)||$e&&!ye.includes($e.id))})}function o_e(i,u,f){u=_(u);for(var v=u.next(),b={};!v.done;b={videoCodec:void 0},v=u.next())if(b.videoCodec=v.value,v=i.filter((function(w){return function(A){return A.video&&A.video.codecs.startsWith(w.videoCodec)}})(b)),v.length){i=v;break}for(f=_(f),u=f.next(),v={};!u.done;v={audioCodec:void 0},u=f.next())if(v.audioCodec=u.value,u=i.filter((function(w){return function(A){return A.audio&&A.audio.codecs.startsWith(w.audioCodec)}})(v)),u.length){i=u;break}return i}function s_e(i,u,f){i.variants=i.variants.filter(function(v){return $S(v,u,f)})}function $S(i,u,f){function v(R,B,V){return R>=B&&R<=V}var b=i.video;if(b&&b.width&&b.height){var w=b.width,A=b.height;if(A>w&&(A=_([A,w]),w=A.next().value,A=A.next().value),!v(w,u.minWidth,Math.min(u.maxWidth,f.width))||!v(A,u.minHeight,Math.min(u.maxHeight,f.height))||!v(b.width*b.height,u.minPixels,u.maxPixels))return!1}return!(i&&i.video&&i.video.frameRate&&!v(i.video.frameRate,u.minFrameRate,u.maxFrameRate)||i&&i.audio&&i.audio.channelsCount&&!v(i.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!v(i.bandwidth,u.minBandwidth,u.maxBandwidth))}function a_e(i,u,f,v){return f=f===void 0?[]:f,v=v===void 0?{}:v,re(function(b){return b.g==1?I(b,eq(i,u,u.offlineSessionIds.length>0,f,v),2):(d_e(u),I(b,f_e(u),0))})}function eq(i,u,f,v,b){var w,A;return re(function(R){if(R.g==1)return Be().Ui()&&l_e(u.variants),I(R,OI(u.variants,f,!1,v),2);w=null,i&&(A=i.g)&&(w=A.keySystem),u.variants=u.variants.filter(function(B){var V=u_e(B,w,b);if(!V){var K=[];B.audio&&K.push(aq(B.audio)),B.video&&K.push(aq(B.video))}return V}),N(R)})}function l_e(i){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),f=new Set;i=_(i);for(var v=i.next();!v.done;v=i.next())v=v.value,v.video&&f.add(v.video);for(f=_(f),i=f.next();!i.done;i=f.next()){i=i.value,v=_(u);for(var b=v.next();!b.done;b=v.next()){var w=_(b.value);if(b=w.next().value,w=w.next().value,i.codecs.includes(b)){i.codecs=i.codecs.replace(b,w);break}}}}function u_e(i,u,f){if(!i.decodingInfos.some(function(B){return!(!B.supported||u&&(B=B.keySystemAccess)&&(f[B.keySystem]||B.keySystem)!=u)}))return!1;var v=Be(),b=v.Nb()==="Xbox";v=v.Ua()==="MOBILE"&&v.Ha()==="GECKO";var w=i.video,A=w&&w.width||0,R=w&&w.height||0;return b&&w&&(A>1920||R>1080)&&(w.codecs.includes("avc1.")||w.codecs.includes("avc3."))||(b=w&&w.dependencyStream)&&!Il(b)?!1:(i=i.audio,!(v&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function tq(i,u){var f,v,b,w,A,R,B;return re(function(V){if(V.g==1){for(f=function(K,Y){if(K){var se=In(K);return se.supported=K.supported&&Y.supported,se.powerEfficient=K.powerEfficient&&Y.powerEfficient,se.smooth=K.smooth&&Y.smooth,Y.keySystemAccess&&!se.keySystemAccess&&(se.keySystemAccess=Y.keySystemAccess),se}return Y},v=null,b=[],w=_(u),A=w.next(),R={};!A.done;R={cache:void 0,Pe:void 0},A=w.next())B=A.value,R.Pe=Xn(B),R.cache=jS,R.cache.has(R.Pe)?v=f(v,R.cache.get(R.Pe)):b.push(c_e(B).then((function(K){return function(Y){var se=null;Y=_(Y||[]);for(var ce=Y.next();!ce.done;ce=Y.next())se=f(se,ce.value);se&&(K.cache.set(K.Pe,se),v=f(v,se))}})(R)));return I(V,Promise.all(b),2)}v&&i.decodingInfos.push(v),N(V)})}function c_e(i){var u=[""];i.video&&(u=nl(i.video.contentType).split(","));var f=[""];i.audio&&(f=nl(i.audio.contentType).split(","));var v=[];u=_(u);for(var b=u.next();!b.done;b=u.next()){b=b.value;for(var w=_(f),A=w.next(),R={};!A.done;R={Qc:void 0},A=w.next())A=A.value,R.Qc=dn(i),i.video&&(R.Qc.video.contentType=bo(Ll(R.Qc.video.contentType),b)),i.audio&&(R.Qc.audio.contentType=bo(Ll(R.Qc.audio.contentType),A)),v.push(new Promise((function(B){return function(V,K){(Be().Ua()=="MOBILE"?RS(5,navigator.mediaCapabilities.decodingInfo(B.Qc)):navigator.mediaCapabilities.decodingInfo(B.Qc)).then(function(Y){V(Y)}).catch(K)}})(R)))}return Promise.all(v).catch(function(){return JSON.stringify(i),null})}function OI(i,u,f,v){var b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe,ot,yt;return re(function(tt){switch(tt.g){case 1:if(i.some(function(Ge){return Ge.decodingInfos.length}))return tt.return();b=_(v),w=b.next(),A={};case 2:if(w.done){tt.A(4);break}A.Ci=w.value,R=!1,B=_(i),V=B.next();case 5:if(V.done){tt.A(7);break}K=V.value,Y=nq(K,u,f).filter((function(Ge){return function(dt){return dt=dt[0],(dt.keySystemConfiguration&&dt.keySystemConfiguration.keySystem)===Ge.Ci}})(A)),se=_(Y),ce=se.next();case 8:if(ce.done){tt.A(10);break}return pe=ce.value,I(tt,tq(K,pe),9);case 9:ce=se.next(),tt.A(8);break;case 10:K.decodingInfos.some(function(Ge){return Ge.supported})&&(R=!0),V=B.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}$e=ye.value,Le=nq($e,u,f).filter(function(Ge){return Ge=Ge[0],Ge=Ge.keySystemConfiguration&&Ge.keySystemConfiguration.keySystem,!Ge||!v.includes(Ge)}),qe=_(Le),ot=qe.next();case 15:if(ot.done){ye=me.next(),tt.A(12);break}return yt=ot.value,I(tt,tq($e,yt),16);case 16:ot=qe.next(),tt.A(15)}})}function nq(i,u,f){var v=i.audio,b=i.video,w=[],A=[];if(b)for(var R=_(b.fullMimeTypes),B=R.next();!B.done;B=R.next()){B=B.value;var V=nl(B);if(V.includes(",")&&!v){var K=V.split(","),Y=Ll(B);V=gi("video",K),K=gi("audio",K),K=P3(K,Y),Y=PI(Y,K,"audio"),A.push({contentType:Y,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=rq(V),B={contentType:PI(Ll(B),V,"video"),width:b.width||64,height:b.height||64,bitrate:b.bandwidth||i.bandwidth||1,framerate:b.frameRate||30},b.hdr)switch(b.hdr){case"PQ":B.transferFunction="pq";break;case"HLG":B.transferFunction="hlg"}b.colorGamut&&(B.colorGamut=b.colorGamut),w.push(B)}if(v)for(R=_(v.fullMimeTypes),B=R.next();!B.done;B=R.next())V=B.value,B=Ll(V),V=P3(nl(V),B),B=PI(B,V,"audio"),A.push({contentType:B,channels:v.channelsCount||2,bitrate:v.bandwidth||i.bandwidth||1,samplerate:v.audioSamplingRate||1,spatialRendering:v.spatialAudio});for(R=[],w.length==0&&w.push(null),A.length==0&&A.push(null),w=_(w),B=w.next();!B.done;B=w.next())for(B=B.value,V=_(A),Y=V.next();!Y.done;Y=V.next())Y=Y.value,K={type:f?"file":"media-source"},B&&(K.video=B),Y&&(K.audio=Y),R.push(K);if(A=(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]),!A.length)return[R];for(i=[],f=new Map,A=_(A),w=A.next();!w.done;w=A.next())w=w.value,f.get(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w);for(A=u?"required":"optional",u=u?["persistent-license"]:["temporary"],w=_(f.keys()),B=w.next();!B.done;B=w.next()){for(B=B.value,Y=f.get(B),V=new Map,Y=_(Y),K=Y.next();!K.done;K=Y.next()){K=K.value;var se=K.videoRobustness+","+K.audioRobustness;V.get(se)||V.set(se,[]),V.get(se).push(K)}for(V=_(V.values()),Y=V.next();!Y.done;Y=V.next()){Y=Y.value,K=[],se=_(R);for(var ce=se.next();!ce.done;ce=se.next()){ce=Object.assign({},ce.value);for(var pe={keySystem:B,initDataType:"cenc",persistentState:A,distinctiveIdentifier:"optional",sessionTypes:u},me=_(Y),ye=me.next();!ye.done;ye=me.next()){if(ye=ye.value,ye.initData&&ye.initData.length){for(var $e=new Set,Le=_(ye.initData),qe=Le.next();!qe.done;qe=Le.next())$e.add(qe.value.initDataType);pe.initDataType=ye.initData[0].initDataType}ye.distinctiveIdentifierRequired&&(pe.distinctiveIdentifier="required"),ye.persistentStateRequired&&(pe.persistentState="required"),ye.sessionType&&(pe.sessionTypes=[ye.sessionType]),v&&(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,K.push(ce)}i.push(K)}}return i}function P3(i,u){var f=Be();return i.toLowerCase()=="flac"?f.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?f.Ha()!="WEBKIT"?"opus":w3(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&f.oe()?"ec-3":i}function rq(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 d_e(i){i.textStreams=i.textStreams.filter(function(u){return u=bo(u.mimeType,u.codecs),A3(u)})}function f_e(i){var u,f,v,b,w,A,R;return re(function(B){switch(B.g){case 1:u=[],f=_(i.imageStreams),v=f.next();case 2:if(v.done){B.A(4);break}if(b=v.value,w=b.mimeType,w=="application/mp4"&&b.codecs=="mjpg"&&(w="image/jpg"),VS.has(w)){B.A(5);break}if(A=m_e.get(w),!A){VS.set(w,!1),B.A(5);break}return I(B,h_e(A),7);case 7:R=B.h,VS.set(w,R);case 5:VS.get(w)&&u.push(b),v=f.next(),B.A(2);break;case 4:i.imageStreams=u,N(B)}})}function h_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 W0(i){var u=i.audio,f=i.video,v=u?u.mimeType:null,b=f?f.mimeType:null,w=u?u.codecs:null,A=f?f.codecs:null,R=u?u.groupId:null,B=[];f&&B.push(f.mimeType),u&&B.push(u.mimeType),B=B[0]||null;var V=[];u&&V.push(u.kind),f&&V.push(f.kind),V=V[0]||null;var K=new Set;if(u)for(var Y=_(u.roles),se=Y.next();!se.done;se=Y.next())K.add(se.value);if(f)for(Y=_(f.roles),se=Y.next();!se.done;se=Y.next())K.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:B,audioMimeType:v,videoMimeType:b,codecs:"",audioCodec:w,videoCodec:A,primary:i.primary,roles:Array.from(K),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:R,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},f&&(i.videoId=f.id,i.originalVideoId=f.originalId,i.width=f.width||null,i.height=f.height||null,i.frameRate=f.frameRate||null,i.pixelAspectRatio=f.pixelAspectRatio||null,i.videoBandwidth=f.bandwidth||null,i.hdr=f.hdr||null,i.colorGamut=f.colorGamut||null,i.videoLayout=f.videoLayout||null,i.videoRoles=f.roles,i.videoLabel=f.label,(v=f.dependencyStream)&&(i.width=v.width||i.width,i.height=v.height||i.height,i.videoCodec=v.codecs||i.videoCodec,i.videoBandwidth&&v.bandwidth&&(i.videoBandwidth+=v.bandwidth)),A.includes(","))){i.channelsCount=f.channelsCount,i.audioSamplingRate=f.audioSamplingRate,i.spatialAudio=f.spatialAudio,i.originalLanguage=f.originalLanguage,i.audioMimeType=b,b=A.split(",");try{i.videoCodec=gi("video",b),i.audioCodec=gi("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 G0(i){return{id:i.id,active:!1,type:An,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,v=null;i.segmentIndex&&(v=id(i.segmentIndex));var b=i.tilesLayout;return v&&(b=v.tilesLayout||b),b&&u!=null&&(u/=Number(b.split("x")[0])),b&&f!=null&&(f/=Number(b.split("x")[1])),{id:i.id,type:"image",bandwidth:i.bandwidth||0,width:u,height:f,mimeType:i.mimeType,codecs:i.codecs||null,tilesLayout:b||null,originalImageId:i.originalId}}function BS(i){return i.__shaka_id||(i.__shaka_id=v_e++),i.__shaka_id}function iq(i){var u={id:BS(i),active:i.mode!="disabled",type:An,bandwidth:0,language:qr(i.language||"und"),label:i.label,kind:i.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:i.kind=="forced",originalTextId:i.id,originalLanguage:i.language};return i.kind=="captions"&&(u.mimeType="unknown"),i.kind=="subtitles"&&(u.mimeType="text/vtt"),i.kind&&(u.roles=[i.kind]),u}function NS(i,u){var f=i?i.language:null;if(f={id:BS(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:qr(f||"und"),label:i?i.label:null,videoLabel:null,kind:i?i.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:i?i.kind=="main":!1,roles:[],forced:!1,audioRoles:null,videoRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:u?u.id:null,originalAudioId:i?i.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:f},i&&i.kind&&(f.roles=[i.kind],f.audioRoles=[i.kind]),i&&i.configuration&&(i.configuration.codec&&(f.audioCodec=i.configuration.codec,f.codecs=f.audioCodec),i.configuration.bitrate&&(f.audioBandwidth=i.configuration.bitrate,f.bandwidth+=f.audioBandwidth),i.configuration.sampleRate&&(f.audioSamplingRate=i.configuration.sampleRate),i.configuration.numberOfChannels&&(f.channelsCount=i.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(f.videoCodec=u.configuration.codec,f.codecs=f.codecs?f.codecs+(","+f.videoCodec):f.videoCodec),u.configuration.bitrate&&(f.videoBandwidth=u.configuration.bitrate,f.bandwidth+=f.videoBandwidth),u.configuration.framerate&&(f.frameRate=u.configuration.framerate),u.configuration.width&&(f.width=u.configuration.width),u.configuration.height&&(f.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":f.hdr="PQ";break;case"hlg":f.hdr="HLG";break;case"bt709":f.hdr="SDR"}return f}function R3(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function FS(i){return i.filter(function(u){return R3(u)})}function sg(i,u,f,v){var b=i,w=i.filter(function(B){return B.primary});w.length&&(b=w);var A=b.length?b[0].language:"";if(b=b.filter(function(B){return B.language==A}),u){var R=OS(qr(u),i.map(function(B){return B.language}));R&&(b=i.filter(function(B){return qr(B.language)==R}))}if(b=b.filter(function(B){return B.forced==v}),f){if(i=oq(b,f),i.length)return i}else if(i=b.filter(function(B){return B.roles.length==0}),i.length)return i;return i=b.map(function(B){return B.roles}).reduce(r_e,[]),i.length?oq(b,i[0]):b}function oq(i,u){return i.filter(function(f){return f.roles.includes(u)})}function p_e(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function sq(i,u){u.length&&(u=u.filter(function(f){return Js(i.codecs)==Js(f.codecs)}).sort(function(f,v){return f.bandwidth&&v.bandwidth&&f.bandwidth!=v.bandwidth?f.bandwidth-v.bandwidth:(f.width||0)-(v.width||0)}),i.trickModeVideo=u[0],u.length>1&&(u=u.find(function(f){return i.width==f.width&&i.height==f.height})))&&(i.trickModeVideo=u)}function aq(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 lq(i,u,f){if(f.autoShowText==0)return!1;if(f.autoShowText==1)return!0;var v=qr(f.preferredTextLanguage);return u=qr(u.language),f.autoShowText==2?og(u,v):f.autoShowText==3?i?(i=qr(i.language),og(u,v)&&!og(i,u)):!1:(rt("Invalid autoShowText setting!"),!1)}function uq(i){var u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var v={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f?Ll(f):"",codecs:f?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};v.fullMimeTypes.add(bo(v.mimeType,v.codecs)),f.startsWith("audio/")?(v.type="audio",u.audio=v):u.video=v}return u}je("shaka.util.StreamUtils",JK),JK.meetsRestrictions=$S;var jS=new Map,v_e=0,VS=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),m_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 Ji(){var i=this;this.H=null,this.B=!1,this.u=new Fe,this.j=new Ie,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Fe,i.g&&i.u.configure(i.g.advanced);var u=i.chooseVariant();u&&navigator.onLine&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.o=[],this.I=1,this.J=!1,this.h=this.m=this.g=this.C=null,this.l=new vr(function(){if(i.B&&(i.g.restrictToElementSize||i.g.restrictToScreenSize)){var u=i.chooseVariant();u&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.F=o,"documentPictureInPicture"in o&&this.j.D(o.documentPictureInPicture,"enter",function(){i.F=o.documentPictureInPicture.window,i.l&&i.l.Jb(),i.j.Ba(i.F,"pagehide",function(){i.F=o,i.l&&i.l.Jb()})}),this.G=this.i=null}l=Ji.prototype,l.stop=function(){this.H=null,this.B=!1,this.o=[],this.I=1,this.m=this.C=null,this.h&&(this.h.disconnect(),this.h=null),this.l&&this.l.stop(),this.G=this.i=null},l.release=function(){this.stop(),this.j.release(),this.l=null},l.init=function(i){this.H=i},l.chooseVariant=function(i){i=i===void 0?!1:i;var u=1/0,f=1/0;if(this.g.restrictToScreenSize&&(f=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*f,f*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var v=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,b=this.m.clientHeight,w=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(b=this.i.height,w=this.i.width),u=Math.min(u,b*v),f=Math.min(f,w*v)}if(b=this.o.filter(function(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),b.length||(b=this.o),v=b,i&&b.length!=this.o.length&&(v=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),i=BI(this,this.g.restrictions,v,1/0,1/0),u!=1/0||f!=1/0){for(i=g_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,v,u,f)}for(u=this.getBandwidthEstimate(),v.length&&!i.length&&(i=BI(this,null,v,1/0,1/0),i=[i[0]]),f=i[0]||null,v=0;v=w&&u<=A&&(f.bandwidth!=b.bandwidth||f.bandwidth==b.bandwidth&&f.video&&b.video&&(f.video.width=this.g.cacheLoadThreshold&&this.u.sample(b,u),f&&this.C!=null&&this.B&&cq(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),cq(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 nn(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){f.l.ia(y_e)}var f=this;this.m=i,this.h&&(this.h.disconnect(),this.h=null),this.m&&"ResizeObserver"in o&&(this.h=new ResizeObserver(u),this.h.observe(this.m)),this.j.D(i,"enterpictureinpicture",function(v){v.pictureInPictureWindow&&(f.i=v.pictureInPictureWindow,f.j.D(f.i,"resize",u))}),this.j.D(i,"leavepictureinpicture",function(){f.i&&f.j.Ma(f.i,"resize",u),f.i=null})},l.setCmsdManager=function(i){this.G=i},l.configure=function(i){this.g=i,this.u&&this.g&&this.u.configure(this.g.advanced)};function cq(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 Ee(2,7,1010);return u=i.g,i.g++,u==0?v.return():(f=i.h*(1+(Math.random()*2-1)*i.o),I(v,new Promise(function(b){new vr(b).ia(f/1e3)}),2))}i.h*=i.m,N(v)})}function _c(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ui(){var i,u,f=new Promise(function(v,b){i=v,u=b});return f.resolve=i,f.reject=u,f}ui.prototype.resolve=function(){},ui.prototype.reject=function(){};function _o(i,u){this.promise=i,this.i=u,this.g=null}function sp(i){return new _o(Promise.reject(i),function(){return Promise.resolve()})}function FI(){var i=Promise.reject(new Ee(2,7,7001));return i.catch(function(){}),new _o(i,function(){return Promise.resolve()})}function lg(i){return new _o(Promise.resolve(i),function(){return Promise.resolve()})}function vq(i){return new _o(i,function(){return i.catch(function(){})})}_o.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function mq(i){return new _o(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}_o.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},_o.prototype.Xa=function(i,u){function f(R){return function(B){if(b.g&&R)w.reject(A);else{var V=R?i:u;V?v=b_e(V,B,w):(R?w.resolve:w.reject)(B)}}}function v(){return w.reject(A),b.abort()}var b=this,w=new ui;w.catch(function(){});var A=new Ee(2,7,7001);return this.promise.then(f(!0),f(!1)),new _o(w,function(){return v()})};function b_e(i,u,f){try{var v=i(u);return v&&v.promise&&v.abort?(f.resolve(v.promise),function(){return v.abort()}):(f.resolve(v),function(){return Promise.resolve(v).then(function(){},function(){})})}catch(b){return f.reject(b),function(){return Promise.resolve()}}}p.Object.defineProperties(_o.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),je("shaka.util.AbortableOperation",_o),_o.prototype.chain=_o.prototype.Xa,_o.prototype.finally=_o.prototype.finally,_o.all=mq,_o.prototype.abort=_o.prototype.abort,_o.notAbortable=vq,_o.completed=lg,_o.aborted=FI,_o.failed=sp;function wn(i,u){if(u)if(u instanceof Map)for(var f=_(u.keys()),v=f.next();!v.done;v=f.next())v=v.value,Object.defineProperty(this,v,{value:u.get(v),writable:!0,enumerable:!0});else for(f in u)Object.defineProperty(this,f,{value:u[f],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=o.performance&&o.performance.now?o.performance.now():Date.now(),this.type=i,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function gq(i){var u=new wn(i.type),f;for(f in i)Object.defineProperty(u,f,{value:i[f],writable:!0,enumerable:!0});return u}wn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},wn.prototype.stopImmediatePropagation=function(){this.g=!0},wn.prototype.stopPropagation=function(){},je("shaka.util.FakeEvent",wn);var WS={rl:"abrstatuschanged",ul:"adaptation",vl:"audiotrackchanged",wl:"audiotrackschanged",xl:"boundarycrossed",yl:"buffering",zl:"canupdatestarttime",Al:"complete",Bl:"currentitemchanged",Cl:"downloadcompleted",Dl:"downloadfailed",El:"downloadheadersreceived",Fl:"drmsessionupdate",Gl:"emsg",Ml:"itemsinserted",Nl:"itemsremoved",bm:"prft",Error:"error",Hl:"expirationupdated",Il:"firstquartile",Jl:"gapjumped",Ol:"keystatuschanged",Rl:"loaded",Sl:"loading",Ul:"manifestparsed",Vl:"manifestupdated",Wl:"mediaqualitychanged",Xl:"mediasourcerecovered",Yl:"metadataadded",Metadata:"metadata",Zl:"midpoint",$l:"nospatialvideoinfo",am:"onstatechange",dm:"ratechange",hm:"segmentappended",im:"sessiondata",jm:"spatialvideoinfo",lm:"stalldetected",nm:"started",om:"statechanged",pm:"streaming",qm:"textchanged",rm:"texttrackvisibility",sm:"thirdquartile",tm:"timelineregionadded",um:"timelineregionenter",vm:"timelineregionexit",wm:"trackschanged",ym:"unloading",Am:"variantchanged"};function Yr(){this.ab=new Ne,this.Fe=this}Yr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},Yr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},Yr.prototype.dispatchEvent=function(i){if(!this.ab)return!0;var u=this.ab.get(i.type)||[],f=this.ab.get("All");for(f&&(u=u.concat(f)),u=_(u),f=u.next();!f.done;f=u.next()){f=f.value,i.target=this.Fe,i.currentTarget=this.Fe;try{f.handleEvent?f.handleEvent(i):f.call(this,i)}catch{}if(i.g)break}return i.defaultPrevented},Yr.prototype.release=function(){this.ab=null};function ug(){this.g=[]}function K0(i,u){i.g.push(u.finally(function(){Mt(i.g,u)}))}ug.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 Ni(i,u,f,v,b,w,A){Yr.call(this),this.i=null,this.j=!1,this.u=new ug,this.g=new Set,this.h=new Set,this.o=i||null,this.m=u||null,this.B=f||null,this.C=v||null,this.F=b||null,this.H=w||null,this.G=A||null,this.l=new Map}x(Ni,Yr),l=Ni.prototype,l.configure=function(i){this.i=i};function Hf(i,u,f,v){v=v===void 0?!1:v,f=f||kq;var b=KS.get(i);(!b||f>=b.priority)&&KS.set(i,{priority:f,yf:u,Fk:v})}function yq(i,u){for(var f=_(i.g),v=f.next();!v.done;v=f.next())u.g.add(v.value);for(i=_(i.h),f=i.next();!f.done;f=i.next())u.h.add(f.value)}l.Ik=function(i){this.g.add(i)},l.hl=function(i){this.g.delete(i)},l.oj=function(){this.g.clear()},l.Jk=function(i){this.h.add(i)},l.il=function(i){this.h.delete(i)},l.pj=function(){this.h.clear()},l.Qh=function(){this.l.clear()};function jo(i,u,f){return{uris:i,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:f===void 0?null:f}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Yr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,f){var v=this,b=new Sq;if(this.j){var w=Promise.reject(new Ee(2,7,7001));return w.catch(function(){}),new GS(w,function(){return Promise.resolve()},b)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?dn(u.retryParameters):_c(),u.uris=dn(u.uris),w=__e(this,i,u,f);var A=w.Xa(function(){return bq(v,i,u,f,new hq(u.retryParameters,!1),0,null,b)}),R=A.Xa(function(se){return S_e(v,i,se,f)}),B=Date.now(),V=0;w.promise.then(function(){V=Date.now()-B},function(){});var K=0;A.promise.then(function(){K=Date.now()},function(){});var Y=R.Xa(function(se){var ce=Date.now()-K,pe=se.response;return pe.timeMs+=V,pe.timeMs+=ce,se.fk||!v.o||pe.fromCache||u.method=="HEAD"||i!=Fu||v.o(pe.timeMs,pe.data.byteLength,_q(f),u,f),v.G&&v.G(i,pe,f),pe},function(se){throw se&&(se.severity=2),se});return w=new GS(Y.promise,function(){return Y.abort()},b),K0(this.u,w),w};function __e(i,u,f,v){function b(R){w=w.Xa(function(){return f.body&&(f.body=we(f.body)),R(u,f,v)})}var w=lg(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 Ee&&R.code==7001?R:new Ee(2,1,1006,R)})}function bq(i,u,f,v,b,w,A,R){i.i.forceHTTP&&(f.uris[w]=f.uris[w].replace("https://","http://")),i.i.forceHTTPS&&(f.uris[w]=f.uris[w].replace("http://","https://")),w>0&&i.H&&i.H(u,v,f.uris[w],f.uris[w-1]);var B=new Pt(f.uris[w]),V=B.bc,K=!1;V||(V=location.protocol,V=V.slice(0,-1),fn(B,V),f.uris[w]=B.toString()),V=V.toLowerCase();var Y=(V=KS.get(V))?V.yf:null;if(!Y)return sp(new Ee(2,1,1e3,B));var se=V.Fk;(B=i.l.get(B.Db))&&(f.headers["common-access-token"]=B);var ce=null,pe=null,me=!1,ye=!1,$e;return vq(pq(b)).Xa(function(){if(i.j)return FI();$e=Date.now();var Le=0;f.requestStartTime=Date.now();var qe=Y(f.uris[w],f,u,function(tt,Ge,dt){ce&&ce.stop(),pe&&pe.ia(yt/1e3),i.o&&u==Fu&&(Le++,f.packetNumber=Le,i.o(tt,Ge,_q(v),f,v),K=!0,R.g=dt)},function(tt){ye=!0,f.timeToFirstByte=Date.now()-f.requestStartTime,i.m&&i.m(tt,f,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!se)return qe;var ot=f.retryParameters.connectionTimeout;ot&&(ce=new vr(function(){me=!0,qe.abort()}),ce.ia(ot/1e3));var yt=f.retryParameters.stallTimeout;return yt&&(pe=new vr(function(){me=!0,qe.abort()})),qe}).Xa(function(Le){ce&&ce.stop(),pe&&pe.stop(),Le.timeMs==null&&(Le.timeMs=Date.now()-$e);var qe=Le.headers["common-access-token"];if(qe){var ot=new Pt(Le.uri);i.l.set(ot.Db,qe)}return qe={response:Le,fk:K},!ye&&i.m&&i.m(Le.headers,f,u),i.B&&i.B(f,Le),qe},function(Le){if(ce&&ce.stop(),pe&&pe.stop(),i.C){var qe=null,ot=0;Le instanceof Ee&&(qe=Le,Le.code==1001&&(ot=Le.data[1])),i.C(f,qe,ot,me)}if(i.j)return FI();if(me&&(Le=new Ee(1,1,1003,f.uris[w],u)),Le instanceof Ee){if(Le.code==7001)throw Le;if(Le.code==1010)throw A;if(Le.severity==1){if(qe=new Map().set("error",Le),qe=new wn("retry",qe),qe.cancelable=!0,i.dispatchEvent(qe),qe.defaultPrevented)throw Le;return w=(w+1)%f.uris.length,bq(i,u,f,v,b,w,Le,R)}}throw Le})}function S_e(i,u,f,v){var b=lg(void 0);i=_(i.h);for(var w=i.next(),A={};!w.done;A={Ji:void 0},w=i.next())A.Ji=w.value,b=b.Xa((function(R){return function(){var B=f.response;return B.data&&(B.data=we(B.data)),(0,R.Ji)(u,B,v)}})(A));return b.Xa(function(){return f},function(R){var B=2;if(R instanceof Ee){if(R.code==7001)throw R;B=R.severity}throw new Ee(B,1,1007,R)})}function _q(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}je("shaka.net.NetworkingEngine",Ni),Ni.prototype.request=Ni.prototype.request,Ni.prototype.destroy=Ni.prototype.destroy,Ni.makeRequest=jo,Ni.defaultRetryParameters=function(){return _c()},Ni.prototype.clearCommonAccessTokenMap=Ni.prototype.Qh,Ni.prototype.clearAllResponseFilters=Ni.prototype.pj,Ni.prototype.unregisterResponseFilter=Ni.prototype.il,Ni.prototype.registerResponseFilter=Ni.prototype.Jk,Ni.prototype.clearAllRequestFilters=Ni.prototype.oj,Ni.prototype.unregisterRequestFilter=Ni.prototype.hl,Ni.prototype.registerRequestFilter=Ni.prototype.Ik,Ni.unregisterScheme=function(i){KS.delete(i)},Ni.registerScheme=Hf,Ni.prototype.configure=Ni.prototype.configure;function Sq(){this.g=0}Ni.NumBytesRemainingClass=Sq;function GS(i,u,f){_o.call(this,i,u),this.h=f}x(GS,_o),Ni.PendingRequest=GS;var Fu=1;Ni.RequestType={MANIFEST:0,SEGMENT:Fu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Ni.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 kq=3;Ni.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:kq};var KS=new Map;function cg(i){this.g=!1,this.h=new ui,this.i=i}cg.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 Ti(i,u){if(i.g)throw u instanceof Ee&&u.code==7003?u:new Ee(2,7,7003,u)}function jI(i,u){var f=[];i=_(i);for(var v=i.next();!v.done;v=i.next())f.push(u(v.value));return f}function k_e(i,u){i=_(i);for(var f=i.next();!f.done;f=i.next())if(!u(f.value))return!1;return!0}function dg(i){for(var u=new Map,f=_(Object.keys(i)),v=f.next();!v.done;v=f.next())v=v.value,u.set(v,i[v]);return u}function VI(i){var u={};return i.forEach(function(f,v){u[v]=f}),u}function Mi(i,u){this.h=it(i),this.i=u==xq,this.g=0}l=Mi.prototype,l.Ia=function(){return this.g2097151)throw new Ee(2,3,3001);return this.g+=8,u*4294967296+i},l.Tb=function(i,u){if(this.g+i>this.h.byteLength)throw Wf();var f=Re(this.h,this.g,i);return this.g+=i,u?new Uint8Array(f):f},l.skip=function(i){if(this.g+i>this.h.byteLength)throw Wf();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw Wf();this.g=i},l.Yc=function(){for(var i=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return i=Re(this.h,i,this.g-i),this.g+=1,st(i)};function Wf(){return new Ee(2,3,3e3)}je("shaka.util.DataViewReader",Mi),Mi.prototype.readTerminatedString=Mi.prototype.Yc,Mi.prototype.seek=Mi.prototype.seek,Mi.prototype.rewind=Mi.prototype.Ki,Mi.prototype.skip=Mi.prototype.skip,Mi.prototype.readBytes=Mi.prototype.Tb,Mi.prototype.readUint64=Mi.prototype.Dd,Mi.prototype.readInt32=Mi.prototype.Zg,Mi.prototype.readUint32=Mi.prototype.U,Mi.prototype.readUint16=Mi.prototype.Ca,Mi.prototype.readUint8=Mi.prototype.Y,Mi.prototype.getLength=Mi.prototype.getLength,Mi.prototype.getPosition=Mi.prototype.Oa,Mi.prototype.hasMoreData=Mi.prototype.Ia;var xq=1;Mi.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:xq};function ci(){this.i=new Map,this.h=new Map,this.g=!1}l=ci.prototype,l.box=function(i,u){return i=Cq(i),this.i.set(i,x_e),this.h.set(i,u),this},l.S=function(i,u){return i=Cq(i),this.i.set(i,wq),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,f){for(i=new Mi(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,f)},l.zd=function(i,u,f,v){var b=u.Oa();if(v&&b+8>u.getLength())this.g=!0;else{var w=u.U(),A=u.U(),R=YS(A),B=!1;switch(w){case 0:w=u.getLength()-b;break;case 1:if(v&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),B=!0}var V=this.h.get(A);if(V){var K=null,Y=null;if(this.i.get(A)==wq){if(v&&u.Oa()+4>u.getLength()){this.g=!0;return}Y=u.U(),K=Y>>>24,Y&=16777215}A=b+w,f&&A>u.getLength()&&(A=u.getLength()),v&&A>u.getLength()?this.g=!0:(A-=u.Oa(),u=A>0?u.Tb(A,!1):new Uint8Array(0),u=new Mi(u,0),V({name:R,parser:this,partialOkay:f||!1,stopOnPartial:v||!1,version:K,flags:Y,reader:u,size:w,start:b+i,has64BitSize:B}))}else u.skip(Math.min(b+w-u.Oa(),u.getLength()-u.Oa()))}};function sr(i){for(var u=ap(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function Gf(i){for(var u=ap(i),f=i.reader.U(),v=0;v>24&255,i>>16&255,i>>8&255,i&255)}function ap(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}je("shaka.util.Mp4Parser",ci),ci.headerSize=ap,ci.typeToString=YS,ci.allData=fg,ci.audioSampleEntry=qS,ci.visualSampleEntry=Dl,ci.sampleDescription=Gf,ci.children=sr,ci.prototype.parseNext=ci.prototype.zd,ci.prototype.parse=ci.prototype.parse,ci.prototype.stop=ci.prototype.stop,ci.prototype.fullBox=ci.prototype.S,ci.prototype.box=ci.prototype.box;var x_e=0,wq=1;function zI(i){var u=this;this.g=[],this.h=[],this.data=[],new ci().box("moov",sr).box("moof",sr).S("pssh",function(f){if(!(f.version>1)){var v=Re(f.reader.h,-12,f.size);if(u.data.push(v),v=f.reader.Tb(16,!1),u.g.push(Pn(v)),f.version>0){v=f.reader.U();for(var b=0;b0&&(w+=4+16*f.size);var A=new Uint8Array(w),R=it(A),B=0;if(R.setUint32(B,w),B+=4,R.setUint32(B,1886614376),B+=4,v<1?R.setUint32(B,0):R.setUint32(B,16777216),B+=4,A.set(u,B),B+=u.length,v>0)for(R.setUint32(B,f.size),B+=4,u=_(f),f=u.next();!f.done;f=u.next())f=rr(f.value),A.set(f,B),B+=f.length;return R.setUint32(B,b),A.set(i,B+4),A}function ZS(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 Ie,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new ui,this.h=null,this.u=function(f){f.severity==2&&u.m.reject(f),i.onError(f)},this.aa=new Map,this.ma=new Map,this.M=new vr(function(){return M_e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new vr(function(){$_e(u)}),this.m.catch(function(){}),this.l=new cg(function(){return C_e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=ZS.prototype,l.destroy=function(){return this.l.destroy()};function C_e(i){return re(function(u){switch(u.g){case 1:return i.o.release(),i.o=null,i.m.reject(),i.G.stop(),i.G=null,i.M.stop(),i.M=null,I(u,O3(i),2);case 2:if(!i.j){u.A(3);break}return F(u,4),I(u,i.j.setMediaKeys(null),6);case 6:U(u,5);break;case 4:G(u);case 5:i.j=null;case 3:i.g=null,i.B=null,i.C=new Map,i.h=null,i.u=function(){},i.F=null,i.O=!1,i.I=null,N(u)}})}l.configure=function(i,u){this.h=i,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function w_e(i,u,f){return i.qa=!0,i.C=new Map,i.R=f,Tq(i,u,!1)}function Eq(i,u,f,v){v=v===void 0?!0:v,i.C=new Map,f=_(f);for(var b=f.next();!b.done;b=f.next())i.C.set(b.value,{initData:null,initDataType:null});for(f=_(i.h.persistentSessionsMetadata),b=f.next();!b.done;b=f.next())b=b.value,i.C.set(b.sessionId,{initData:b.initData,initDataType:b.initDataType});return i.R=i.C.size>0,Tq(i,u,v)}function E_e(i,u,f,v,b,w){var A,R,B,V,K;return re(function(Y){return Y.g==1?(A=[],w.length&&A.push(w[0].contentType),b.length&&A.push(b[0].contentType),R=function(se){return se=fr(u,se,null),se.licenseServerUri=f,se.serverCertificate=v,se.persistentStateRequired=!0,se.sessionType="persistent-license",se},B=uq(A),B.video&&(V=R(w[0].encryptionScheme||""),B.video.drmInfos.push(V)),B.audio&&(K=R(b[0].encryptionScheme||""),B.audio.drmInfos.push(K)),I(Y,OI([B],!0,i.O,[]),2)):(Ti(i.l),Y.return(Dq(i,[B])))})}function Tq(i,u,f){var v,b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe,ot;return re(function(yt){if(yt.g==1){for(Bq(i.h.clearKeys,u),v=u.some(function(tt){return!!(tt.video&&tt.video.drmInfos.length||tt.audio&&tt.audio.drmInfos.length)}),b=dg(i.h.servers),w=dg(i.h.advanced||{}),!v&&f&&N_e(u,b),A=new WeakSet,R=_(u),B=R.next();!B.done;B=R.next())for(V=B.value,K=$q(V),Y=_(K),se=Y.next();!se.done;se=Y.next())ce=se.value,A.has(ce)||(A.add(ce),j_e(ce,b,w,i.h.keySystemsMapping));for(pe=function(tt,Ge){var dt=[];tt=_(tt);for(var gt=tt.next();!gt.done;gt=tt.next()){gt=gt.value;var vt=gt[Ge]||w.has(gt.keySystem)&&w.get(gt.keySystem)[Ge]||"",bt;if((bt=vt=="")&&(bt=(bt=gt.keySystem)?!!bt.match(/^com\.widevine\.alpha/):!1),bt&&(Ge=="audioRobustness"?vt=[i.h.defaultAudioRobustnessForWidevine]:Ge=="videoRobustness"&&(vt=[i.h.defaultVideoRobustnessForWidevine])),typeof vt=="string")dt.push(gt);else if(Array.isArray(vt))for(vt.length===0&&(vt=[""]),vt=_(vt),bt=vt.next();!bt.done;bt=vt.next()){var _t={};dt.push(Object.assign({},gt,(_t[Ge]=bt.value,_t)))}}return dt},me=new WeakSet,ye=_(u),$e=ye.next();!$e.done;$e=ye.next())Le=$e.value,Le.video&&!me.has(Le.video)&&(Le.video.drmInfos=pe(Le.video.drmInfos,"videoRobustness"),Le.video.drmInfos=pe(Le.video.drmInfos,"audioRobustness"),me.add(Le.video)),Le.audio&&!me.has(Le.audio)&&(Le.audio.drmInfos=pe(Le.audio.drmInfos,"videoRobustness"),Le.audio.drmInfos=pe(Le.audio.drmInfos,"audioRobustness"),me.add(Le.audio));return I(yt,OI(u,i.R,i.O,i.h.preferredKeySystems),2)}return Ti(i.l),qe=v||b.size>0,qe?(ot=Dq(i,u),yt.return(v?ot:ot.catch(function(){}))):(i.T=!0,yt.return(Promise.resolve()))})}function Aq(i){var u;return re(function(f){switch(f.g){case 1:if(i.j.mediaKeys)return f.return();if(!i.I){f.A(2);break}return I(f,i.I,3);case 3:return Ti(i.l),f.return();case 2:return F(f,4),i.I=i.j.setMediaKeys(i.B),I(f,i.I,6);case 6:U(f,5);break;case 4:u=G(f),i.u(new Ee(2,6,6003,u.message));case 5:Ti(i.l),N(f)}})}function T_e(i,u){return re(function(f){if(f.g==1)return I(f,Aq(i),2);M3(i,u.initDataType,Re(u.initData)),N(f)})}l.fc=function(i){var u=this,f,v;return re(function(b){if(b.g==1)return u.j===i?b.return():u.B?(u.j=i,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var w=_(u.N),A=w.next();!A.done;A=w.next())HI(u,A.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return O3(u)}),u.o.D(u.j.remote,"connecting",function(){return O3(u)}),u.o.D(u.j.remote,"disconnect",function(){return O3(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return O3(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,f=u.g.keySystem,(v=Be().Rg(f))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?b.A(2):I(b,Aq(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new Ee(2,6,6010))}),b.return());Iq(u).catch(function(){}),!v&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return T_e(u,w)}),N(b)})};function A_e(i){var u,f,v,b,w;return re(function(A){switch(A.g){case 1:if(!i.B||!i.g)return A.return();if(!i.g.serverCertificateUri||i.g.serverCertificate&&i.g.serverCertificate.length){A.A(2);break}return u=jo([i.g.serverCertificateUri],i.h.retryParameters),F(A,3),f=i.F.tc.request(5,u,{isPreload:i.V()}),I(A,f.promise,5);case 5:v=A.h,i.g.serverCertificate=Re(v.data),U(A,4);break;case 3:throw b=G(A),new Ee(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():(F(A,6),I(A,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:U(A,0);break;case 6:throw w=G(A),new Ee(2,6,6004,w.message)}})}function I_e(i,u){var f,v,b;return re(function(w){if(w.g==1)return I(w,Rq(i,u,{initData:null,initDataType:null}),2);if(w.g!=3)return f=w.h,f?(v=[],(b=i.i.get(f))&&(b.Kb=new ui,v.push(b.Kb)),v.push(f.remove()),I(w,Promise.all(v),3)):w.return();i.i.delete(f),N(w)})}function Iq(i){var u,f,v,b,w;return re(function(A){if(A.g==1)return i.C.size?(i.C.forEach(function(R,B){Rq(i,B,R)}),I(A,i.m,3)):A.A(2);if(A.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&B_e(i))return A.return(i.m);i.K=!1,i.m=new ui,i.m.catch(function(){})}for(f=(i.g?i.g.initData:[])||[],v=_(f),b=v.next();!b.done;b=v.next())w=b.value,M3(i,w.initDataType,w.initData);return $3(i)&&i.m.resolve(),A.return(i.m)})}function M3(i,u,f){if(f.length){if(i.h.ignoreDuplicateInitData){var v=i.i.values();v=_(v);for(var b=v.next();!b.done;b=v.next())if(Ce(f,b.value.initData))return;var w=!1;if(i.C.forEach(function(A){!w&&Ce(f,A.initData)&&(w=!0)}),w)return}i.K=!0,i.i.size>0&&$3(i)&&(i.m.resolve(),i.K=!1,i.m=new ui,i.m.catch(function(){})),P_e(i,u,f,i.g.sessionType)}}function Lq(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 v=i.i.get(f);return{sessionId:f.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType}}),Array.from(u)},l.Wd=function(){var i=1/0,u=this.i.keys();u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,isNaN(f.expiration)||(i=Math.min(i,f.expiration));return i};function L_e(i){return i.J?i.J:NaN}l.Xe=function(){return VI(this.ma)};function Dq(i,u){var f,v,b,w,A,R,B;return re(function(V){switch(V.g){case 1:if(f=new Map,v=D_e(i,u,f),!v)throw navigator.requestMediaKeySystemAccess?new Ee(2,6,6001):new Ee(2,6,6020);Ti(i.l),F(V,2),v.getConfiguration();var K=b=i.h.keySystemsMapping[v.keySystem]||v.keySystem,Y=f.get(b),se=[],ce=[],pe=[],me=[],ye=[],$e=new Set,Le=new Set;F_e(Y,se,ce,me,pe,ye,$e,Le);var qe=i.R?"persistent-license":"temporary";for(K={keySystem:K,encryptionScheme:se[0],licenseServerUri:ce[0],distinctiveIdentifierRequired:Y[0].distinctiveIdentifierRequired,persistentStateRequired:Y[0].persistentStateRequired,sessionType:Y[0].sessionType||qe,audioRobustness:Y[0].audioRobustness||"",videoRobustness:Y[0].videoRobustness||"",serverCertificate:me[0],serverCertificateUri:pe[0],initData:ye,keyIds:$e},Le.size>0&&(K.keySystemUris=Le),Y=_(Y),Le=Y.next();!Le.done;Le=Y.next())Le=Le.value,Le.distinctiveIdentifierRequired&&(K.distinctiveIdentifierRequired=Le.distinctiveIdentifierRequired),Le.persistentStateRequired&&(K.persistentStateRequired=Le.persistentStateRequired);if(i.g=K,!i.g.licenseServerUri)throw new Ee(2,6,6012,i.g.keySystem);return I(V,v.createMediaKeys(),4);case 4:if(w=V.h,Ti(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){V.A(5);break}return F(V,6),I(V,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(A=V.h,A!="usable")throw new Ee(2,6,6018);Ti(i.l),U(V,5,2);break;case 6:throw R=G(V,2),R instanceof Ee?R:new Ee(2,6,6019,R.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),I(V,A_e(i),9);case 9:Ti(i.l),U(V,0);break;case 2:throw B=G(V),Ti(i.l,B),i.g=null,B instanceof Ee?B:new Ee(2,6,6002,B.message)}})}function D_e(i,u,f){for(var v=_(u),b=v.next();!b.done;b=v.next()){b=_($q(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 Ee(2,6,6e3);v=i.h.preferredKeySystems,v.length||(b=dg(i.h.servers),b.size==1&&(v=Array.from(b.keys()))),b=_(v);var A=b.next();for(w={};!A.done;w={Di:void 0},A=b.next()){w.Di=A.value,A=_(u);for(var R=A.next();!R.done;R=A.next())if(R=R.value.decodingInfos.find((function(Y){return function(se){return se.supported&&se.keySystemAccess!=null&&se.keySystemAccess.keySystem==Y.Di}})(w)))return R.keySystemAccess}for(b=_([!0,!1]),w=b.next();!w.done;w=b.next())for(w=w.value,A=_(u),R=A.next();!R.done;R=A.next()){R=_(R.value.decodingInfos);for(var B=R.next();!B.done;B=R.next())if(B=B.value,B.supported&&B.keySystemAccess){var V=B.keySystemAccess.keySystem;if(!v.includes(V)){var K=f.get(V);for(!K&&i.h.keySystemsMapping[V]&&(K=f.get(i.h.keySystemsMapping[V])),V=_(K),K=V.next();!K.done;K=V.next())if(!!K.value.licenseServerUri==w)return B.keySystemAccess}}}return null}function UI(i){$3(i)&&i.m.resolve()}function Pq(i,u){new vr(function(){u.loaded=!0,UI(i)}).ia(z_e)}function Rq(i,u,f){var v,b,w,A,R,B,V;return re(function(K){switch(K.g){case 1:try{v=i.B.createSession("persistent-license")}catch(Y){return b=new Ee(2,6,6005,Y.message),i.u(b),K.return(Promise.reject(b))}return i.o.D(v,"message",function(Y){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(Y):HI(i,Y)}),i.o.D(v,"keystatuseschange",function(Y){return Mq(i,Y)}),w={initData:f.initData,initDataType:f.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(v,w),F(K,2),I(K,v.load(u),4);case 4:return A=K.h,Ti(i.l),A||(i.i.delete(v),R=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ee(R,6,6013)),w.loaded=!0),Pq(i,w),UI(i),K.return(v);case 2:B=G(K),Ti(i.l,B),i.i.delete(v),V=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ee(V,6,6005,B.message)),w.loaded=!0,UI(i);case 3:return K.return(Promise.resolve())}})}function P_e(i,u,f,v){try{var b=i.B.createSession(v)}catch(w){i.u(new Ee(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 Mq(i,w)}),i.i.set(b,{initData:f,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:v});try{f=i.h.initDataTransform(f,u,i.g)}catch(w){u=w,w instanceof Ee||(u=new Ee(2,6,6016,w)),i.u(u);return}i.h.logLicenseExchange&&Yn(f),b.generateRequest(u,f).catch(function(w){if(!i.l.g){i.i.delete(b);var A=w.errorCode;if(A&&A.systemCode){var R=A.systemCode;R<0&&(R+=4294967296),R="0x"+R.toString(16)}i.u(new Ee(2,6,6006,w.message,w,R))}})}function R_e(i){return re(function(u){return u.g==1?i.K?I(u,i.m,3):u.A(0):I(u,Promise.all(i.X.map(function(f){return f.promise})),0)})}function HI(i,u){var f,v,b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e;re(function(Le){switch(Le.g){case 1:if(f=u.target,i.h.logLicenseExchange&&Yn(u.message),v=i.i.get(f),b=i.g.licenseServerUri,w=i.h.advanced[i.g.keySystem],u.messageType=="individualization-request"&&w&&w.individualizationServer&&(b=w.individualizationServer),A=jo([b],i.h.retryParameters),A.body=u.message,A.method="POST",A.licenseRequestType=u.messageType,A.sessionId=f.sessionId,A.drmInfo=i.g,v&&(A.initData=v.initData,A.initDataType=v.initDataType),w&&w.headers)for(R in w.headers)A.headers[R]=w.headers[R];if(i.g.keySystem==="org.w3.clearkey"){var qe=A,ot=i.g;try{var yt=Zt(qe.body);if(yt){var tt=JSON.parse(yt);tt.type||(tt.type=ot.sessionType,qe.body=Gt(JSON.stringify(tt)))}}catch{}}if(NI(i.g.keySystem))if(qe=Ot(A.body,!0,!0),qe.includes("PlayReadyKeyMessage")){for(qe=li(qe,"PlayReadyKeyMessage"),ot=Aa(qe,"HttpHeader"),ot=_(ot),yt=ot.next();!yt.done;yt=ot.next())tt=yt.value,yt=Aa(tt,"name")[0],tt=Aa(tt,"value")[0],A.headers[_r(yt)]=_r(tt);qe=Aa(qe,"Challenge")[0],A.body=dr(_r(qe))}else A.headers["Content-Type"]="text/xml; charset=utf-8";return B=Date.now(),F(Le,2),K=i.F.tc.request(2,A,{isPreload:i.V()}),i.X.push(K),I(Le,K.promise,4);case 4:V=Le.h,Mt(i.X,K),U(Le,3);break;case 2:return Y=G(Le),i.l.g||(se={sessionId:f.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType},ce=new Ee(2,6,6007,Y,se),i.i.size==1?(i.u(ce),v&&v.Kb&&v.Kb.reject(ce)):(v&&v.Kb&&v.Kb.reject(ce),i.i.delete(f),$3(i)&&(i.m.resolve(),i.M.ia(.1)))),Le.return();case 3:return i.l.g?Le.return():(i.J+=(Date.now()-B)/1e3,i.h.logLicenseExchange&&Yn(V.data),F(Le,5),I(Le,f.update(V.data),7));case 7:U(Le,6);break;case 5:return me=(pe=G(Le))&&pe.message||String(pe),ye=new Ee(2,6,6008,me),i.u(ye),v&&v.Kb&&v.Kb.reject(ye),Le.return();case 6:if(i.l.g)return Le.return();$e=new wn("drmsessionupdate"),i.F.onEvent($e),v&&(v.Kb&&v.Kb.resolve(),Pq(i,v)),N(Le)}})}function Mq(i,u){u=u.target;var f=i.i.get(u),v=!1;u.keyStatuses.forEach(function(w,A){if(typeof A=="string"){var R=A;A=w,w=R}if(R=Be(),NI(i.g.keySystem)&&A.byteLength==16&&R.gh()){R=it(A);var B=R.getUint32(0,!0),V=R.getUint16(4,!0),K=R.getUint16(6,!0);R.setUint32(0,B,!1),R.setUint16(4,V,!1),R.setUint16(6,K,!1)}w!="status-pending"&&(f.loaded=!0),w=="expired"&&(v=!0),A=Pn(A).slice(0,32),i.aa.set(A,w)});var b=u.expiration-Date.now();(b<0||v&&b<1e3)&&f&&!f.Kb&&(i.i.delete(u),Oq(u)),$3(i)&&(i.m.resolve(),i.M.ia(U_e))}function M_e(i){var u=i.aa,f=i.ma;f.clear(),u.forEach(function(v,b){return f.set(b,v)}),u=Array.from(f.values()),u.length&&u.every(function(v){return v=="expired"})&&i.u(new Ee(2,6,6014)),i.F.vf(VI(f))}function O_e(){var i,u,f,v,b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe,ot,yt,tt,Ge,dt,gt,vt,bt,_t,Bt,Ft,At;return re(function(Dt){if(Dt.g==1){if(i="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(o.MediaKeys&&o.navigator&&o.navigator.requestMediaKeySystemAccess&&o.MediaKeySystemAccess&&o.MediaKeySystemAccess.prototype.getConfiguration)){for(u={},f=_(i),v=f.next();!v.done;v=f.next())b=v.value,u[b]=null;return Dt.return(u)}for(w="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),A=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],R=["150","2000","3000"],B={"com.widevine.alpha":A,"com.widevine.alpha.experiment":A,"com.microsoft.playready.recommendation":R},V=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],K=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Y={videoCapabilities:V,audioCapabilities:K,initDataTypes:["cenc","sinf","skd","keyids"]},se=[null,"cenc","cbcs"],ce=new Map,pe=Be(),me=function(Kt,an,Zn){var Tn,Lr,gr,Zr,xr,Bn,xi,Rr,Dr,hr,zi,ji,ro;return re(function(ri){switch(ri.g){case 1:return F(ri,2),I(ri,an.createMediaKeys(),5);case 5:Tn=ri.h;case 4:U(ri,3);break;case 2:return G(ri),ri.return();case 3:if(gr=(Lr=an.getConfiguration().sessionTypes)?Lr.includes("persistent-license"):!1,pe.ti()&&(gr=!1),Zr=an.getConfiguration().videoCapabilities,xr=an.getConfiguration().audioCapabilities,Bn={persistentState:gr,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},ce.get(Kt)?Bn=ce.get(Kt):ce.set(Kt,Bn),(xi=Zr[0].encryptionScheme)&&!Bn.encryptionSchemes.includes(xi)&&Bn.encryptionSchemes.push(xi),(Rr=Zr[0].robustness)&&!Bn.videoRobustnessLevels.includes(Rr)&&Bn.videoRobustnessLevels.push(Rr),(Dr=xr[0].robustness)&&!Bn.audioRobustnessLevels.includes(Dr)&&Bn.audioRobustnessLevels.push(Dr),!(Zn&&"getStatusForPolicy"in Tn)){ri.A(0);break}hr=_(w),zi=hr.next();case 7:if(zi.done){ri.A(0);break}if(ji=zi.value,Bn.minHdcpVersions.includes(ji)){ri.A(8);break}return I(ri,Tn.getStatusForPolicy({minHdcpVersion:ji}),10);case 10:if(ro=ri.h,ro=="usable")Bn.minHdcpVersions.includes(ji)||Bn.minHdcpVersions.push(ji);else{ri.A(0);break}case 8:zi=hr.next(),ri.A(7)}})},ye=function(Kt,an,Zn,Tn,Lr){Lr=Lr===void 0?!1:Lr;var gr,Zr,xr,Bn,xi,Rr,Dr,hr,zi,ji,ro;return re(function(ri){switch(ri.g){case 1:for(F(ri,2),gr=dn(Y),Zr=_(gr.videoCapabilities),xr=Zr.next();!xr.done;xr=Zr.next())Bn=xr.value,Bn.encryptionScheme=an,Bn.robustness=Zn;for(xi=_(gr.audioCapabilities),Rr=xi.next();!Rr.done;Rr=xi.next())Dr=Rr.value,Dr.encryptionScheme=an,Dr.robustness=Tn;return hr=dn(gr),hr.persistentState="required",hr.sessionTypes=["persistent-license"],zi=[hr,gr],ro=Be(),ro.Ua()=="MOBILE"?I(ri,RS(5,navigator.requestMediaKeySystemAccess(Kt,zi)),7):I(ri,navigator.requestMediaKeySystemAccess(Kt,zi),6);case 6:ji=ri.h,ri.A(5);break;case 7:ji=ri.h;case 5:return I(ri,me(Kt,ji,Lr),8);case 8:U(ri,0);break;case 2:G(ri),N(ri)}})},$e=_(i),Le=$e.next();!Le.done;Le=$e.next())qe=Le.value,ce.set(qe,null);for(ot=function(Kt){return!(Be().Ha()==="WEBKIT"&&Kt==="org.w3.clearkey")},yt=[],tt=_(i),Ge=tt.next();!Ge.done;Ge=tt.next())if(dt=Ge.value,ot(dt)){for(gt=!0,vt=_(se),bt=vt.next();!bt.done;bt=vt.next())_t=bt.value,yt.push(ye(dt,_t,"","",gt)),gt=!1;for(Bt=_(B[dt]||[]),Ft=Bt.next();!Ft.done;Ft=Bt.next())At=Ft.value,yt.push(ye(dt,null,At,"")),yt.push(ye(dt,null,"",At))}return I(Dt,Promise.all(yt),2)}return Dt.return(VI(ce))})}function Oq(i){return re(function(u){if(u.g==1)return F(u,2),I(u,RS(V_e,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return U(u,0);G(u),N(u)})}function O3(i){var u;return re(function(f){return u=Array.from(i.i.entries()),i.i.clear(),I(f,Promise.all(u.map(function(v){v=_(v);var b=v.next().value,w=v.next().value;return re(function(A){if(A.g==1)return F(A,2),i.qa||i.C.has(b.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?I(A,Oq(b),5):I(A,b.remove(),5);if(A.g!=2)return U(A,0);G(A),N(A)})})),0)})}function $q(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function $_e(i){i.i.forEach(function(u,f){var v=u.Ug,b=f.expiration;isNaN(b)&&(b=1/0),b!=v&&(i.F.onExpirationUpdated(f.sessionId,b),u.Ug=b)})}function $3(i){return i=i.i.values(),k_e(i,function(u){return u.loaded})}function B_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 N_e(i,u){var f=[];for(u.forEach(function(v,b){f.push({keySystem:b,licenseServerUri:v,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),i=_(i),u=i.next();!u.done;u=i.next())u=u.value,u.video&&(u.video.drmInfos=f),u.audio&&(u.audio.drmInfos=f)}function F_e(i,u,f,v,b,w,A,R){var B=[];i=_(i);for(var V=i.next(),K={};!V.done;K={Ka:void 0},V=i.next()){if(K.Ka=V.value,u.includes(K.Ka.encryptionScheme)||u.push(K.Ka.encryptionScheme),K.Ka.keySystem=="org.w3.clearkey"&&K.Ka.licenseServerUri.startsWith("data:application/json;base64,")?B.includes(K.Ka.licenseServerUri)||B.push(K.Ka.licenseServerUri):f.includes(K.Ka.licenseServerUri)||f.push(K.Ka.licenseServerUri),b.includes(K.Ka.serverCertificateUri)||b.push(K.Ka.serverCertificateUri),K.Ka.serverCertificate&&(v.some((function(ce){return function(pe){return Ce(pe,ce.Ka.serverCertificate)}})(K))||v.push(K.Ka.serverCertificate)),K.Ka.initData){V=_(K.Ka.initData);for(var Y=V.next(),se={};!Y.done;se={Lg:void 0},Y=V.next())se.Lg=Y.value,w.some((function(ce){return function(pe){var me=ce.Lg;return pe.keyId&&pe.keyId==me.keyId?!0:pe.initDataType==me.initDataType&&Ce(pe.initData,me.initData)}})(se))||w.push(se.Lg)}if(K.Ka.keyIds)for(V=_(K.Ka.keyIds),Y=V.next();!Y.done;Y=V.next())A.add(Y.value);if(K.Ka.keySystemUris&&R)for(K=_(K.Ka.keySystemUris),V=K.next();!V.done;V=K.next())R.add(V.value)}if(B.length==1)f.push(B[0]);else if(B.length>0){for(u=[],B=_(B),v=B.next();!v.done;v=B.next())v=o.atob(v.value.split("data:application/json;base64,").pop()),v=JSON.parse(v),u.push.apply(u,T(v.keys));B=JSON.stringify({keys:u}),f.push("data:application/json;base64,"+o.btoa(B))}}function j_e(i,u,f,v){var b=i.keySystem;b&&(b!="org.w3.clearkey"||!i.licenseServerUri)&&(u.size&&u.get(b)&&(u=u.get(b),i.licenseServerUri=u),i.keyIds||(i.keyIds=new Set),(f=f.get(b))&&(i.distinctiveIdentifierRequired||(i.distinctiveIdentifierRequired=f.distinctiveIdentifierRequired),i.persistentStateRequired||(i.persistentStateRequired=f.persistentStateRequired),i.serverCertificate||(i.serverCertificate=f.serverCertificate),f.sessionType&&(i.sessionType=f.sessionType),i.serverCertificateUri||(i.serverCertificateUri=f.serverCertificateUri)),v[b]&&(i.keySystem=v[b]),o.cast&&o.cast.__platform__&&b=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function Bq(i,u){if(i=dg(i),i.size!=0){i=Gr(i),u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.drmInfos=[i]),f.audio&&(f.audio.drmInfos=[i])}}var V_e=1,z_e=5,U_e=.5;function H_e(){this.g=hg,this.i=new Map().set(hg,2).set(q0,1),this.h=0}function WI(i,u){var f=i.g!==u;return i.g=u,f&&u===hg&&(i.h=Date.now()),f}var q0=0,hg=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 Nq(i,u){return re(function(f){if(f.g==1)return I(f,a_e(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||QK(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(R3))throw new Ee(2,4,4032);return f.return(jq(i,u))})}function Fq(i,u){var f=i.g.restrictions;i=i.i;var v=!1;u=_(u.variants);for(var b=u.next();!b.done;b=u.next()){b=b.value;var w=b.allowedByApplication;b.allowedByApplication=$S(b,f,i),w!=b.allowedByApplication&&(v=!0)}return v}function jq(i,u){var f=Fq(i,u);if(u){var v=i.h?i.h.g:null;if(v&&i.h.B){for(var b=new Set,w=_(u.variants),A=w.next();!A.done;A=w.next())A=A.value,A.audio&&b.add(A.audio),A.video&&b.add(A.video);for(b=_(b),w=b.next();!w.done;w=b.next())Vq(i,v.keySystem,w.value)}zq(i,u)}return f}function Vq(i,u,f){f=_(f.drmInfos);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v.keySystem==u){v=_(v.initData||[]);for(var b=v.next();!b.done;b=v.next())b=b.value,M3(i.h,b.initDataType,b.initData)}}function zq(i,u){i=i.h?i.h.Xe():{};var f=Object.keys(i);f=f.length&&f[0]=="00";var v=!1,b=!1,w=new Set,A=new Set,R=new Set;u=_(u.variants);for(var B=u.next();!B.done;B=u.next())B=B.value,B.audio&&R.add(B.audio),B.video&&R.add(B.video),B.allowedByApplication?B.allowedByKeySystem&&(v=!0):b=!0;for(R=_(R),u=R.next();!u.done;u=R.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),B=u.next();!B.done;B=u.next()){B=B.value;var V=i[f?"00":B];V?Uq.includes(V)&&A.add(V):w.add(B)}if(!v)throw i={hasAppRestrictions:b,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(A)},new Ee(2,4,4012,i)}var Uq=["output-restricted","internal-error"];function B3(){}function Y0(i,u){pg.set(i,u)}function W_e(){var i={};if(Be(),Wd())for(var u=_(pg.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]=Wd()?pg.has(f):Z0().canPlayType(f)!="";return i}function Hq(i,u){if(u){var f=pg.get(u.toLowerCase());if(f)return f}throw new Ee(2,4,4e3,i,u)}je("shaka.media.ManifestParser",B3),B3.unregisterParserByMime=function(i){pg.delete(i)},B3.registerParserByMime=Y0,B3.registerParserByExtension=function(){tn("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},B3.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var pg=new Map;je("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function JS(i,u){var f=null,v=null,b=null,w=null,A=i.U();return u&1&&(b=i.Dd()),u&2&&(w=i.U()),u&8&&(f=i.U()),u&16&&(v=i.U()),{trackId:A,Td:f,Ud:v,kj:b,Li:w}}function QS(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function e6(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 t6(i,u,f){var v=i.U(),b=[],w=null;f&1&&(w=i.Zg()),f&4&&i.skip(4);for(var A=0;A0)var b=Tr("avcC",i.Ra);else{b=Tr;for(var w=7,A=[],R=[],B=0,V=0,K=0,Y=0;Y0&&(B=A[0][1],K=A[0][2],V=A[0][3]),w=new Uint8Array(w),Y=0,w[Y++]=1,w[Y++]=B,w[Y++]=K,w[Y++]=V,w[Y++]=255,w[Y++]=224|A.length,B=0;B>8,w[Y++]=A[B].length&255,w.set(A[B],Y),Y+=A[B].length;for(w[Y++]=R.length,A=0;A>8,w[Y++]=R[A].length&255,w.set(R[A],Y),Y+=R[A].length;b=b("avcC",w)}f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Wi(f,2)),T(Wi(v,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),v="avc1",R=Kq(i),A=new Uint8Array([]),i.encrypted&&(A=X0(i.stream,i.codecs),v="encv"),v=Tr(v,f,b,R,A)}else i.codecs.includes("hvc1")&&(v=i.stream.width||0,b=i.stream.height||0,f=new Uint8Array([]),i.Ra.byteLength>0&&(f=Tr("hvcC",i.Ra)),v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Wi(v,2)),T(Wi(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=Kq(i),A=new Uint8Array([]),i.encrypted&&(A=X0(i.stream,i.codecs),b="encv"),v=Tr(b,v,f,R,A));break;case"audio":f=="mp3"?i=Tr(".mp3",F3(i)):f=="ac-3"?(f=Tr("dac3",i.Ga),v="ac-3",b=new Uint8Array([]),i.encrypted&&(b=X0(i.stream,i.codecs),v="enca"),i=Tr(v,F3(i),f,b)):f=="ec-3"?(f=Tr("dec3",i.Ga),v="ec-3",b=new Uint8Array([]),i.encrypted&&(b=X0(i.stream,i.codecs),v="enca"),i=Tr(v,F3(i),f,b)):f=="opus"?(f=Tr("dOps",i.Ga),v="Opus",b=new Uint8Array([]),i.encrypted&&(b=X0(i.stream,i.codecs),v="enca"),i=Tr(v,F3(i),f,b)):(i.Ga.byteLength>0?f=Tr("esds",i.Ga):(f=Tr,v=i.id+1,b=i.stream.channelsCount||2,A=i.stream.audioSamplingRate||44100,B=gi("audio",i.codecs.split(",")),V={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},R=V[A],(B==="mp4a.40.5"||B==="mp4a.40.29")&&(R=V[A*2]),A=parseInt(B.split(".").pop(),10),v=new Uint8Array([0,0,0,0,3,25].concat(T(Wi(v,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,A<<3|R>>>1,R<<7|b<<3,6,1,2])),f=f("esds",v)),v="mp4a",b=new Uint8Array([]),i.encrypted&&(b=X0(i.stream,i.codecs),v="enca"),i=Tr(v,F3(i),f,b)),v=i}return i=Tr("stsd",nSe.value(),v),u("stbl",i,Tr("stts",X_e.value()),Tr("stsc",Z_e.value()),Tr("stsz",Q_e.value()),Tr("stco",J_e.value()))}function Kq(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(T(Wi(i.Za,4)),T(Wi(u,4)))),Tr("pasp",i)}function F3(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(Wi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function X0(i,u){var f=Tr;u=new Uint8Array([].concat(T(Wi(Yq(u.split(".")[0]),4)))),u=Tr("frma",u);var v="cenc",b=i.drmInfos[0];b&&b.encryptionScheme&&(v=b.encryptionScheme),v=new Uint8Array([0,0,0,0].concat(T(Wi(Yq(v),4)),[0,1,0,0])),v=Tr("schm",v),b=Tr;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=qq(R.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=Tr("tenc",i,w),f("sinf",u,v,b("schi",w))}function j3(i){var u=[];i=_(i.g);for(var f=i.next();!f.done;f=i.next()){f=f.value;var v=u.push,b=v.apply,w=Tr,A=new Uint8Array([0,0,0,0].concat(T(Wi(f.data?f.data.sequenceNumber:0,4))));A=Tr("mfhd",A);var R,B=f.data?f.data.zb:[],V=new Uint8Array(4+B.length);for(R=0;R=0;u--)f.push(i>>8*u&255);return f}function qq(i){for(var u=new Uint8Array(i.length/2),f=0;f=0;b--)v+=u[b].byteLength;for(b=new Uint8Array(v),b[0]=v>>24&255,b[1]=v>>16&255,b[2]=v>>8&255,b[3]=v&255,b.set(f,4),f=0,v=8;f=0;K--)V.push(2>>8*K&255);for(i.set(new Uint8Array(V),R),i.set(B,R+4),R=_(A),B=R.next();!B.done;B=R.next())B=B.value,n6(i,B.start,B.size+4)}}return i}function lSe(i,u,f,v,b,w){var A=X0(i,v.name),R=u.subarray(v.start,v.start+v.size);for(i=new Uint8Array(v.size+A.byteLength),i.set(R,0),it(i).setUint32(4,w),i.set(A,v.size),n6(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),v=Be().df()?v.start:v.start+v.size,A=u.subarray(v),w.set(u.subarray(0,v)),w.set(i,v),w.set(A,v+i.byteLength),u=_(b),b=u.next();!b.done;b=u.next())b=b.value,n6(w,b.start,b.size+i.byteLength);return i=it(w,f.start),f=ap(f),u=i.getUint32(f),i.setUint32(f,u+1),w}function n6(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 uSe(i){function u(b){v.push({start:b.start,size:b.size}),sr(b)}var f=Re(i),v=[];return new ci().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(b){v.push({start:b.start,size:b.size});for(var w=it(f,b.start),A=0;A0)return u}if(i.g.length>0&&i.m)for(i=_(i.g),i=i.next();!i.done;i=i.next()){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=Qq},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?Qe("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 Jq(i,u){i.ba=u,i=_(i.g);for(var f=i.next();!f.done;f=i.next())Jq(f.value,u)}je("shaka.media.SegmentReference",jn),jn.prototype.getSegmentData=jn.prototype.Yb,jn.prototype.setSegmentData=jn.prototype.pe,jn.prototype.syncAgainst=jn.prototype.yh,jn.prototype.offset=jn.prototype.offset,jn.prototype.getThumbnailSprite=jn.prototype.Xj,jn.prototype.setThumbnailSprite=jn.prototype.If,jn.prototype.hasByterangeOptimization=jn.prototype.gk,jn.prototype.markAsByterangeOptimization=jn.prototype.oi,jn.prototype.isLastPartial=jn.prototype.lk,jn.prototype.markAsLastPartial=jn.prototype.pi,jn.prototype.isPartial=jn.prototype.nk,jn.prototype.markAsPartial=jn.prototype.ri,jn.prototype.isIndependent=jn.prototype.kk,jn.prototype.markAsNonIndependent=jn.prototype.wd,jn.prototype.isPreload=jn.prototype.isPreload,jn.prototype.markAsPreload=jn.prototype.Qg,jn.prototype.markAsUnavailable=jn.prototype.xk,jn.prototype.getStatus=jn.prototype.Jc,jn.prototype.getTileDuration=jn.prototype.Zj,jn.prototype.getTilesLayout=jn.prototype.$j,jn.prototype.getEndByte=jn.prototype.Gc,jn.prototype.getStartByte=jn.prototype.Ic,jn.prototype.getEndTime=jn.prototype.Ej,jn.prototype.getStartTime=jn.prototype.getStartTime,jn.prototype.getUris=jn.prototype.P;var Kf=0,Qq=1;jn.Status={ql:Kf,xm:Qq,Tl:2};function z3(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function eY(i){return!i||z3(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function r6(i){return!i||z3(i)?null:i.length?i.end(i.length-1):null}function YI(i,u){return!i||!i.length||z3(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function tY(i,u){if(!i||!i.length||z3(i))return 0;var f=0;i=_(qf(i));for(var v=i.next();!v.done;v=i.next()){var b=v.value;v=b.start,b=b.end,b>u&&(f+=b-Math.max(v,u))}return f}function cSe(i,u,f){return!i||!i.length||z3(i)?null:(i=qf(i).findIndex(function(v,b,w){return v.start>u&&(b==0||w[b-1].end-u<=f)}),i>=0?i:null)}function qf(i){if(!i)return[];for(var u=[],f=0;f=0;--v)i.removeChild(f[v]),u=!0;return i.src&&(i.removeAttribute("src"),u=!0),u}function U3(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Z0(){return gg||(ZI||(ZI=new vr(function(){gg=null})),(gg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(gg=document.createElement("video")),ZI.ia(1),gg)}function dSe(i,u){var f,v,b,w,A;return re(function(R){if(R.g==1)return"fonts"in document&&"FontFace"in o?I(R,document.fonts.ready,2):R.return();if(!("entries"in document.fonts))return R.return();for(f=function(B){B=B.entries();for(var V=[],K=B.next();K.done===!1;)V.push(K.value),K=B.next();return V},v=_(f(document.fonts)),b=v.next();!b.done;b=v.next())if(w=b.value,w.family===i&&w.display==="swap")return R.return();A=new FontFace(i,"url("+u+")",{display:"swap"}),document.fonts.add(A),N(R)})}je("shaka.util.Dom",XI),XI.removeAllChildren=U3,XI.clearSourceFromVideo=i6;var ZI=null,gg=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function JI(){}function rY(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 iY(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 fSe(i){var u={key:i.type,description:"",data:"",mimeType:null,pictureType:null};if(i.type==="APIC"){if(i.size<2||i.data[0]!==3)return null;var f=i.data.subarray(1).indexOf(0);if(f===-1)return null;var v=st(Re(i.data,1,f)),b=i.data[2+f],w=i.data.subarray(3+f).indexOf(0);if(w===-1)return null;var A=st(Re(i.data,3+f,w)),R;return v==="-->"?R=st(Re(i.data,4+f+w)):R=we(i.data.subarray(4+f+w)),u.mimeType=v,u.pictureType=b,u.description=A,u.data=R,u}return i.type==="TXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(f=st(Re(i.data,1,v)),i=st(Re(i.data,2+v)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="WXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(f=st(Re(i.data,1,v)),i=st(Re(i.data,2+v)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="PRIV"?i.size<2||(f=i.data.indexOf(0),f===-1)?null:(f=st(Re(i.data,0,f)),u.description=f,f=="com.apple.streaming.transportStreamTimestamp"?(f=i.data.subarray(f.length+1),i=f[3]&1,f=(f[4]<<23)+(f[5]<<15)+(f[6]<<7)+f[7],f/=45,i&&(f+=4772185884e-2),u.data=f):(i=we(i.data.subarray(f.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=st(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=st(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=we(i.data),u):null}function J0(i){for(var u=0,f=[];rY(i,u);){var v=QI(i,u+6);for(i[u+5]>>6&1&&(u+=10),u+=10,v=u+v;u+10>6&1&&(v+=10),v+=10,v+=QI(i,u+6),iY(i,u+10)&&(v+=10),u+=v;return v>0?i.subarray(f,f+v):new Uint8Array([])}je("shaka.util.Id3Utils",JI),JI.getID3Data=yg,JI.getID3Frames=J0;function oY(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function Yf(i,u){if(this.j=i,u!==void 0&&u){u=new Uint8Array(i.byteLength);for(var f=0,v=0;v=2&&i[v]==3&&i[v-1]==0&&i[v-2]==0||(u[f]=i[v],f++);this.j=Re(u,0,f)}this.i=this.j.byteLength,this.g=this.h=0}function eL(i){var u=i.j.byteLength-i.i,f=new Uint8Array(4),v=Math.min(4,i.i);v!==0&&(f.set(i.j.subarray(u,u+v)),i.h=new Mi(f,0).U(),i.g=v*8,i.i-=v)}function Rl(i,u){if(i.g<=u){u-=i.g;var f=Math.floor(u/8);u-=f*8,i.g-=f,eL(i)}i.h<<=u,i.g-=u}function Cr(i,u){var f=Math.min(i.g,u),v=i.h>>>32-f;return i.g-=f,i.g>0?i.h<<=f:i.i>0&&eL(i),f=u-f,f>0?v<>>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 bn(i){var u=tL(i);return Cr(i,u+1)-1}function bg(i){return i=bn(i),1&i?1+i>>>1:-1*(i>>>1)}function Mn(i){return Cr(i,1)===1}function Xr(i){return Cr(i,8)}function o6(i,u){for(var f=8,v=8,b=0;b>4>1){var R=b+5+i[b+4];if(R==b+188)continue}else R=b+4;switch(A){case 0:w&&(R+=i[R]+1),this.I=(i[R+10]&31)<<8|i[R+11];break;case 17:case 8191:break;case this.I:w&&(R+=i[R]+1),w=i,A={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var B=R+3+((w[R+1]&15)<<8|w[R+2])-4;for(R+=12+((w[R+10]&15)<<8|w[R+11]);R0)for(var Y=R+5,se=K;se>2;){var ce=w[Y+1]+2;switch(w[Y]){case 5:var pe=yn(w.subarray(Y+2,Y+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[Y+2]===128&&(pe=w[Y+3]),pe!=null&&(this.H={channelCount:(pe&15)===0?2:pe&15,nj:pe,sampleRate:48e3}))}Y+=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+=K+5}w=A,w.video!=-1&&(this.K=w.video,this.m=w.videoCodec),w.audio!=-1&&(this.F=w.audio,this.C=w.audioCodec),w.bf!=-1&&(this.G=w.bf),v&&!this.J&&(v=!1,b=u-188),this.J=!0;break;case this.K:R=i.subarray(R,b+188),w?this.j.push([R]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(R);break;case this.F:R=i.subarray(R,b+188),w?this.i.push([R]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(R);break;case this.G:R=i.subarray(R,b+188),w?this.l.push([R]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(R);break;default:v=!0}}return this};function 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 v=u[7];if(v&192){var b=(u[9]&14)*536870912+(u[10]&255)*4194304+(u[11]&254)*16384+(u[12]&255)*128+(u[13]&254)/2;i.u==null&&(i.u=b),f.pts=aY(b,i.u),i.u=f.pts,f.dts=f.pts,v&64&&(v=(u[14]&14)*536870912+(u[15]&255)*4194304+(u[16]&254)*16384+(u[17]&255)*128+(u[18]&254)/2,i.o==null&&(i.o=v),f.dts=f.pts!=b?aY(v,i.o):v),i.o=f.dts}return i=u[8]+9,u.byteLength<=i?null:(f.data=u.subarray(i),f)}l.Ek=function(i){return tn("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(i,{ge:null,state:null})},l.Wg=function(i,u){var f=i.pts?i.pts/9e4:null;i=i.data;var v=i.byteLength,b=1;this.m=="hvc"&&(b=2);var w=u.state||0,A=w,R=0,B=[],V=-1,K=0;for(w==-1&&(V=0,K=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,R=1);R=0?B.push({data:i.subarray(V+b,Y),fullData:i.subarray(V,Y),type:K,time:f,state:null}):(w=B.length?B[B.length-1]:u.ge)&&(A&&R<=4-A&&w.state&&(w.data=w.data.subarray(0,w.data.byteLength-A),w.fullData=w.fullData.subarray(0,w.fullData.byteLength-A)),Y>0&&(Y=i.subarray(0,Y),w.data=or(w.data,Y),w.fullData=or(w.fullData,Y),w.state=0)),R>1&63:i[R]&31,V=R,w=0):w=-1):w=0:w=3:w=Y?0:1}return V>=0&&w>=0&&B.push({data:i.subarray(V+b,v),fullData:i.subarray(V,v),type:K,time:f,state:w}),!B.length&&u.ge&&(f=B.length?B[B.length-1]:u.ge)&&(f.data=or(f.data,i),f.fullData=or(f.fullData,i)),u.state=w,B},l.getMetadata=function(){for(var i=[],u=_(this.l),f=u.next();!f.done;f=u.next())f=or.apply(tr,T(f.value)),(f=nL(this,f))&&i.push({cueTime:f.pts?f.pts/9e4:null,data:f.data,frames:J0(f.data),dts:f.dts,pts:f.pts});return i},l.ub=function(){if(this.i.length&&!this.h.length)for(var i=_(this.i),u=i.next();!u.done;u=i.next()){var f=or.apply(tr,T(u.value)),v=nL(this,f);u=this.h.length?this.h[this.h.length-1]:null,v&&v.pts!=null&&v.dts!=null&&(!u||u.pts!=v.pts&&u.dts!=v.dts)?this.h.push(v):this.h.length&&(f=v?v.data:f)&&(u=this.h.pop(),u.data=or(u.data,f),this.h.push(u))}return this.h},l.ud=function(i){if(i=i===void 0?!0:i,this.j.length&&!this.g.length){for(var u=_(this.j),f=u.next();!f.done;f=u.next()){var v=or.apply(tr,T(f.value)),b=nL(this,v);f=this.g.length?this.g[this.g.length-1]:null,b&&b.pts!=null&&b.dts!=null&&(!f||f.pts!=b.pts&&f.dts!=b.dts)?this.g.push(b):this.g.length&&(v=b?b.data:v)&&(f=this.g.pop(),f.data=or(f.data,v),this.g.push(f))}if(i){for(u={ge:null,state:null},f=[],v=_(this.g),b=v.next();!b.done;b=v.next())b=b.value,b.nalus=this.Wg(b,u),b.nalus.length&&(f.push(b),u.ge=b.nalus[b.nalus.length-1]);this.g=f}}return i?this.g:(i=this.g,this.g=[],i)},l.getStartTime=function(i){if(i=="audio"){i=null;var u=this.ub();return u.length&&(i=u[0],i=Math.min(i.dts,i.pts)/9e4),i}return i=="video"?(i=null,u=this.ud(!1),u.length&&(i=u[0],i=Math.min(i.dts,i.pts)/9e4),i):null},l.Vd=function(){return{audio:this.C,video:this.m}},l.$e=function(){for(var i=[],u=_(this.ud()),f=u.next();!f.done;f=u.next())i.push.apply(i,T(f.value.nalus));return i},l.dk=function(){tn("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"?vSe(this):pSe(this)};function sY(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 pSe(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 v=Xr(f),b=Xr(f),w=Xr(f);if(zs(f),mSe.includes(v)){var A=bn(f);if(A===3&&Rl(f,1),zs(f),zs(f),Rl(f,1),Mn(f)){A=A!==3?8:12;for(var R=0;R0)for($e=b;$e<8;$e++)Cr(v,2);for($e=0;$e>Ge&1)<<31-Ge;return tt>>>0})(B),A=A==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+R),w+="."+v.toString(16).toUpperCase(),w+="."+A+pe,ce&&(w+="."+ce.toString(16).toUpperCase()),se&&(w+="."+se.toString(16).toUpperCase()),Y&&(w+="."+Y.toString(16).toUpperCase()),K&&(w+="."+K.toString(16).toUpperCase()),V&&(w+="."+V.toString(16).toUpperCase()),f&&(w+="."+f.toString(16).toUpperCase()),u.codec=w,u.frameRate=sY(i),u}function aY(i,u){var f=1;for(i>u&&(f=-1);Math.abs(u-i)>4294967296;)i+=f*8589934592;return i}function _g(i){return!(rL(i)<0)}function rL(i){for(var u=Math.min(1e3,i.length-564),f=0;f0||i.B.dispatchAllEmsgBoxes;K&&V.S("emsg",function(pe){var me=b.emsgSchemeIdUris;if(pe.version===0)var ye=pe.reader.Yc(),$e=pe.reader.Yc(),Le=pe.reader.U(),qe=pe.reader.U(),ot=pe.reader.U(),yt=pe.reader.U(),tt=v.startTime+qe/Le;else Le=pe.reader.U(),tt=pe.reader.Dd()/Le+v.timestampOffset,qe=tt-v.startTime,ot=pe.reader.U(),yt=pe.reader.U(),ye=pe.reader.Yc(),$e=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/Le,i.O.Bk({startTime:tt,endTime:me,schemeIdUri:ye,value:$e,timescale:Le,presentationTimeDelta:qe,eventDuration:ot,id:yt,messageData:pe}),(ye=="https://aomedia.org/emsg/ID3"||ye=="https://developer.apple.com/streaming/emsg-id3")&&(Le=J0(pe),Le.length&&i.O.onMetadata([{cueTime:tt,data:pe,frames:Le,dts:tt,pts:tt}],0,me))))});var Y=v.ba.timescale;u=Y&&!isNaN(Y);var se=0,ce=!1;u&&V.S("prft",function(pe){var me=pe.reader,ye=pe.version;me.U(),pe=me.U();var $e=me.U();pe=pe*1e3+$e/4294967296*1e3,ye===0?me=me.U():(ye=me.U(),me=me.U(),me=ye*4294967296+me),pe=oY(pe),me=new Map().set("detail",{wallClockTime:pe,programStartDate:new Date(pe-me/Y*1e3)}),me=new wn("prft",me),i.O.onEvent(me)}).box("moof",sr).box("traf",sr).S("tfdt",function(pe){ce||(se=QS(pe.reader,pe.version).baseMediaDecodeTime/Y,ce=!0,K||pe.parser.stop())}),(K||u)&&V.parse(f,!1,A),ce&&v.timestampOffset==0&&(R=se)}else w.includes("/mp4")||w.includes("/webm")||!_g(V)||(i.$.has(u)||i.$.set(u,new Ai),B=i.$.get(u),B.clearData(),B.Gf(v.i),B.parse(V),V=B.getStartTime(u),V!=null&&(R=V),B=B.getMetadata());return{timestamp:R,metadata:B}}function l6(i,u,f,v,b,w,A,R,B,V,K){A=A===void 0?!1:A,R=R===void 0?!1:R,B=B===void 0?!1:B,V=V===void 0?!1:V;var Y,se,ce,pe,me,ye,$e,Le,qe,ot,yt,tt,Ge,dt,gt,vt,bt,_t,Bt,Ft;return re(function(At){switch(At.g){case 1:if(Y=Kr,u!=Y.Na){At.A(2);break}if(i.X!="HLS"){At.A(3);break}return I(At,i.Ta,4);case 4:se=At.h,i.h.u=se;case 3:return I(At,Qbe(i.h,f,v?v.startTime:null,v?v.endTime:null,v?v.P()[0]:null),5);case 5:return At.return();case 2:if(V||!i.m){At.A(6);break}return I(At,l6(i,Y.ka,f,v,b,w,A,R,B,!0),7);case 7:return I(At,l6(i,Y.Aa,f,v,b,w,A,R,B,!0),8);case 8:return At.return();case 6:if(!i.l.has(u))return At.return();if(ce=i.l.get(u).timestampOffset,pe=i.F.get(u),i.j.has(u)&&(pe=i.j.get(u).getOriginalMimeType()),v&&(me=SSe(i,u,f,v,b,pe,B),ye=me.timestamp,$e=me.metadata,ye!=null&&(i.V==null&&u==Y.Aa&&(i.V=ye,i.wa=v.startTime,i.T!=null&&(Le=0,i.wa==i.qa&&(Le=i.V-i.T),i.ma.resolve(Le))),i.T==null&&u==Y.ka&&(i.T=ye,i.qa=v.startTime,i.V!=null&&(qe=0,i.wa==i.qa&&(qe=i.V-i.T),i.ma.resolve(qe))),ot=ye,yt=zf,!i.I&&yt.includes(i.F.get(u))&&(ot=0),tt=v.startTime-ot,Ge=Math.abs(ce-tt),(Ge>=.001||A||R)&&(!B||tt>0||!ce)&&(ce=tt,i.ib&&(es(i,u,function(){return kg(i,u)},null),es(i,u,function(){return xg(i,u,ce)},null))),(u==Y.Aa||!i.l.has(Y.Aa))&&i.Ta.resolve(ce)),$e.length)&&i.O.onMetadata($e,ce,v?v.endTime:null),w&&u==Y.Aa&&(i.h||a6(i,"application/cea-608",i.I,!1),i.J||(dt=pe.split(";",1)[0],i.J=new Bs(dt)),v?(gt=i.J.xf(f),gt.length&&t_e(i.h,gt,ce)):i.J.init(f,R,K)),!i.j.has(u)){At.A(9);break}return I(At,i.j.get(u).transmux(f,b,v,i.i.duration,u),10);case 10:vt=At.h,ArrayBuffer.isView(vt)?f=vt:(bt=vt,bt.init!=null&&(_t=bt.init,es(i,u,function(){i.H&&ai(i.H,_t,ce,b),i.l.get(u).appendBuffer(_t)},v?v.P()[0]:null)),f=bt.data);case 9:if(f=TSe(i,b,f,v,u),!v||!i.I||u==Y.Na){At.A(11);break}if(!A&&!R){At.A(11);break}if(Bt=v.startTime,i.X!="HLS"||i.m||u!=Y.ka||!i.l.has(Y.Aa)){At.A(13);break}return I(At,i.ma,14);case 14:Ft=At.h,Math.abs(Ft)>.15&&(Bt-=Ft);case 13:es(i,u,function(){return kg(i,u)},null),es(i,u,function(){return xg(i,u,Bt)},null);case 11:return I(At,es(i,u,function(){var Dt=f;i.H&&ai(i.H,Dt,ce,b),i.l.get(u).appendBuffer(Dt)},v?v.P()[0]:null),15);case 15:N(At)}})}function kSe(i,u){var f=tv(i,"video")||0;qK(i.h,u,f)}function xSe(i){i.h&&qK(i.h,"",0)}l.remove=function(i,u,f,v){var b=this,w,A;return re(function(R){return R.g==1?(w=Kr,i==w.Aa&&b.J&&(b.J.remove(v),A=b.h.g||0,b.h.remove(A,f,!0)),i==w.Na?I(R,b.h.remove(u,f),0):f>u?I(R,es(b,i,function(){return u6(b,i,u,f)},null),5):R.A(0)):b.m?I(R,es(b,w.ka,function(){return u6(b,w.ka,u,f)},null),0):R.A(0)})};function cY(i,u){var f;return re(function(v){return v.g==1?(f=Kr,u==f.Na?i.h?I(v,i.h.remove(0,1/0),0):v.return():u===f.Aa&&i.J&&i.h?I(v,i.h.remove(0,1/0,!0),4):v.A(4)):v.g!=6?I(v,es(i,u,function(){return u6(i,u,0,i.i.duration)},null),6):i.m?I(v,es(i,f.ka,function(){return u6(i,f.ka,0,i.i.duration)},null),0):v.A(0)})}l.flush=function(i){var u=this,f;return re(function(v){return v.g==1?(f=Kr,i==f.Na?v.return():I(v,es(u,i,function(){u.g.currentTime-=.001,up(u,i)},null),2)):u.m?I(v,es(u,f.ka,function(){var b=f.ka;u.g.currentTime-=.001,up(u,b)},null),0):v.A(0)})};function dY(i,u,f,v,b,w,A,R,B){var V,K,Y;return re(function(se){return se.g==1?(V=Kr,u==V.Na?(w||(i.h.u=f),e_e(i.h,v,b),se.return()):(K=[],I(se,LSe(i,u,A,R,B),2))):(Y=se.h,Y||(K.push(es(i,u,function(){return kg(i,u)},null)),i.m&&K.push(es(i,V.ka,function(){return kg(i,V.ka)},null))),w||(K.push(es(i,u,function(){return xg(i,u,f)},null)),i.m&&K.push(es(i,V.ka,function(){return xg(i,V.ka,f)},null))),(v!=0||b!=1/0)&&(K.push(es(i,u,function(){return fY(i,u,v,b)},null)),i.m&&K.push(es(i,V.ka,function(){return fY(i,V.ka,v,b)},null))),K.length?I(se,Promise.all(K),0):se.A(0))})}function CSe(i,u,f){var v,b;return re(function(w){return w.g==1?(v=Kr,u==v.Na||(u==v.Aa&&(i.Ta=new ui),!i.I||(b=tv(i,u))&&Math.abs(b-f)<.15)?w.return():(es(i,u,function(){return kg(i,u)},null),i.m&&es(i,v.ka,function(){return kg(i,v.ka)},null),I(w,es(i,u,function(){return xg(i,u,f)},null),2))):i.m?I(w,es(i,v.ka,function(){return xg(i,v.ka,f)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return re(function(f){return I(f,H3(u,function(){Q0(u)||ev(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return re(function(f){return I(f,H3(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&v&&!u.i)&&(u.j&&u.j(u.g,b),u.i=!0,u.g=f.g.currentTime),u=!v}u&&(u=i.g.currentTime,f=i.g.buffered,v=cSe(f,u,i.h.gapDetectionThreshold),v==null||v==0&&!i.B||(b=f.start(v),(w=i.h.gapPadding)&&(b=Math.ceil((b+w)*100)/100),b>=i.F.Gb()||b-u<.001||(v!=0&&f.end(v-1),RSe(i,b),u==i.l&&(i.l=b),i.G++,i.u(new wn("gapjumped")))))}}}function RSe(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function MSe(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,f=i.h.stallSkip;return new yY(new bY(i.g),u,function(){var v;return re(function(b){if(b.g==1)return v=qf(i.g.buffered),v.length?f?(i.g.currentTime+=f,b.A(2)):I(b,i.g.play(),3):b.return();if(b.g!=2){if(!i.g)return b.return();i.g.pause(),i.g.play()}i.H++,i.u(new wn("stalldetected")),N(b)})})}function yY(i,u,f){this.h=i,this.m=_Y(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=f}yY.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function bY(i){var u=this;this.g=i,this.h=new Ie,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 _Y(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}bY.prototype.release=function(){this.h&&this.h.release(),this.h=null};function Cg(i,u,f,v){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?v():(u=OSe.value().get(u),f.Ba(i,u,v))}var OSe=new ht(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function SY(i,u,f,v){var b=this;this.g=i,this.m=u,this.u=f,this.l=null,this.j=function(){return b.l==null&&(b.l=v()),b.l},this.o=!1,this.h=new Ie,this.i=new wY(i),Cg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){xY(b,b.j())})}SY.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 kY(i,u){i.g.readyState>0?EY(i.i,u):Cg(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){xY(i,i.j())})}function xY(i,u){Math.abs(i.g.currentTime-u)<.001?CY(i):(i.h.Ba(i.g,"seeking",function(){CY(i)}),EY(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function CY(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function wY(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new vr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}wY.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function EY(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function TY(i){this.g=i,this.i=!1,this.h=null,this.j=new Ie}l=TY.prototype,l.ready=function(){function i(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var f=u.g.currentTime,v=null;if(typeof u.h=="number")v=u.h;else if(u.h instanceof Date){var b=AY(u);b!==null&&(v=u.h.getTime()/1e3-b,v=IY(u,v))}v==null?u.i=!0:(v<0&&(v=Math.max(0,f+v)),f!=v?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=v):u.i=!0)}}var u=this;Cg(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-(AY(this)||0),i=IY(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=r6(this.g.buffered);return i!=null&&i>=this.g.duration-1};function AY(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function IY(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 LY(i,u,f,v,b,w){var A=this;this.h=i,this.g=u.presentationTimeline,this.l=f,this.u=b,this.o=null,this.i=new dL(i,u.presentationTimeline,f,w),this.j=new SY(i,function(){e:{var R=A.i;R.m=!0,R.B=!1,R.i&&R.i.Ea(R.h.gapJumpTimerTime),W3(R);var B=fL(A.j);if(R=RY(A,B),!tg()&&Math.abs(R-B)>.001){B=!1;var V=Be().Mi();if(V){var K=Date.now()/1e3;(!A.o||A.o0&&!this.h.paused?MY(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 DY(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),PY(i,MY(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=r6(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function PY(i,u){var f=i.g.getDuration();return u>=f?f-i.l.durationBackoff:u}function RY(i,u){var f=i.l.rebufferingGoal,v=i.l.safeSeekOffset,b=i.g.Xb(),w=i.g.Gb(),A=i.g.getDuration();w-b<3&&(b=w-3);var R=i.g.Xd(f),B=i.g.Xd(v);return f=i.g.Xd(f+v),u>=A?PY(i,u):u>w?w-i.l.safeSeekEndOffset:u=R||YI(i.h.buffered,u)?u:f}function MY(i,u){var f=i.g.Xb();return ui?i:u)}function Or(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=Or.prototype,l.getNumReferences=function(){return this.g.length},l.getNumEvicted=function(){return this.i},l.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},l.yk=function(){this.o=!0},l.Fb=function(i){for(var u=_(this.g),f=u.next();!f.done;f=u.next())i(f.value)};function id(i){return i.g[0]||null}l.find=function(i){for(var u=this.g.length-1,f=u;f>=0;--f){var v=this.g[f],b=f=v.startTime&&i=this.g.length?null:this.g[i])},l.offset=function(i){if(!this.o)for(var u=_(this.g),f=u.next();!f.done;f=u.next())f.value.offset(i)},l.nf=function(i){if(!this.o&&i.length){var u=Math.round(i[0].startTime*1e3)/1e3;this.g=this.g.filter(function(f){return Math.round(f.startTime*1e3)/1e3u&&(f.g.length==0||v.endTime>f.g[0].startTime)}),this.nf(i),this.Ya(u)},l.Ya=function(i){if(!this.o){var u=this.g.length;this.g=this.g.filter(function(f){return f.endTime>i}),this.i+=u-this.g.length}},l.pd=function(i,u,f){if(f=f===void 0?!1:f,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=u;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=i;)this.g.shift(),f||this.i++;this.g.length!=0&&(i=this.g[this.g.length-1],u=new jn(i.startTime,u,i.C,i.startByte,i.endByte,i.ba,i.timestampOffset,i.appendWindowStart,i.appendWindowEnd,i.g,i.tilesLayout,i.B,i.h,i.status,i.aesKey),u.mimeType=i.mimeType,u.codecs=i.codecs,u.i=i.i,this.g[this.g.length-1]=u)}},l.Nf=function(i,u){var f=this;this.o||(this.m&&this.m.stop(),this.m=new vr(function(){var v=u();v?f.g.push.apply(f.g,T(v)):(f.m.stop(),f.m=null)}),this.m.Ea(i))},Or.prototype[Symbol.iterator]=function(){return this.Vb(0)},Or.prototype.Vb=function(i,u,f){u=u===void 0?!1:u,f=f===void 0?!1:f;var v=this.find(i);if(v==null)return null;var b=this.get(v);f?v++:v--;var w=-1;if(b&&b.g.length>0)for(var A=b.g.length-1;A>=0;--A){var R=b.g[A];if(i>=R.startTime&&i0&&i.m&&this.g>=i.g.length&&(this.h++,this.g=0,i=this.i.get(this.h)),i&&i.g.length>0?i.g[this.g]:i},l.next=function(){var i=this.i.get(this.h);return this.reverse?i&&i.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(i=this.i.get(this.h))&&i.g.length>0?i.g.length-1:0)):(this.h--,this.g=0):i&&i.g.length>0?(this.g++,i.m&&this.g==i.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),i=this.current(),{value:i,done:!i}},l.eh=function(){var i=this.current();if(i&&i.Xc&&!i.l&&(i=this.i.get(this.h))&&i.g.length>0)for(var u=i.g[this.g];u.l&&!(this.g<=0);)this.g--,u=i.g[this.g]},je("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 Qi(){Or.call(this,[]),this.h=[]}x(Qi,Or),l=Qi.prototype,l.clone=function(){var i=new Qi;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 $Se(i,u){i=_(i.h);for(var f=i.next();!f.done;f=i.next())u(f.value)}l.find=function(i){for(var u=this.i,f=_(this.h),v=f.next();!v.done;v=f.next()){v=v.value;var b=v.find(i);if(b!=null)return b+u;u+=v.getNumEvicted()+v.getNumReferences()}return null};function BSe(i,u){i=_(i.h);for(var f=i.next();!f.done;f=i.next())if(f=f.value,f.find(u)!=null)return f.Te();return-1}l.get=function(i){for(var u=this.i,f=_(this.h),v=f.next();!v.done;v=f.next()){v=v.value;var b=v.get(i-u);if(b)return b;b=v.getNumReferences(),u+=v.getNumEvicted()+b}return null},l.offset=function(){},l.nf=function(){},l.Ya=function(i){if(this.h.length){var u=this.h[0];u.Ya(i),u.getNumReferences()==0&&(this.h.shift(),this.i+=u.getNumEvicted(),u.release(),this.Ya(i))}},l.fe=function(){},l.pd=function(){},l.Nf=function(){},je("shaka.media.MetaSegmentIndex",Qi),Qi.prototype.updateEvery=Qi.prototype.Nf,Qi.prototype.fit=Qi.prototype.pd,Qi.prototype.mergeAndEvict=Qi.prototype.fe,Qi.prototype.evict=Qi.prototype.Ya,Qi.prototype.merge=Qi.prototype.nf,Qi.prototype.offset=Qi.prototype.offset,Qi.prototype.get=Qi.prototype.get,Qi.prototype.find=Qi.prototype.find,Qi.prototype.forEachTopLevelReference=Qi.prototype.Fb,Qi.prototype.release=Qi.prototype.release;function G3(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new vr(function(){u.g.ui(u.i*.25)})}G3.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},G3.prototype.set=function(i){this.i=i,hL(this)},G3.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 Ie,this.g=new Set,this.i=new vr(function(){OY(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 OY(i,u){var f=i.j.currentTime;i=_(i.g);for(var v=i.next();!v.done;v=i.next())v.value.j(f,u)}function d6(i){Yr.call(this),this.g=new Map,this.h=i}x(d6,Yr),d6.prototype.release=function(){this.g.clear(),Yr.prototype.release.call(this)};function NSe(i,u){var f=i.g.get(u);return f||(f={me:[],lg:null,contentType:u},i.g.set(u,f)),f}function FSe(i,u,f){var v=NSe(i,u.contentType);jSe(i,v),i={xd:u,position:f},v=v.me,u=v.findIndex(function(b){return b.position>=f}),u>=0?v.splice(u,v[u].position==f?1:0,i):v.push(i)}d6.prototype.j=function(i){for(var u=_(this.g.values()),f=u.next();!f.done;f=u.next()){f=f.value;var v=f.lg;e:{for(var b=f.me,w=b.length-1;w>=0;w--){var A=b[w];if(A.position<=i){b=A.xd;break e}}b=null}w=b&&!(v===b||v&&b&&v.bandwidth==b.bandwidth&&v.audioSamplingRate==b.audioSamplingRate&&v.codecs==b.codecs&&v.contentType==b.contentType&&v.frameRate==b.frameRate&&v.height==b.height&&v.mimeType==b.mimeType&&v.channelsCount==b.channelsCount&&v.pixelAspectRatio==b.pixelAspectRatio&&v.width==b.width),A=b&&v&&b.label&&v.label&&v.label!==b.label;var R=b&&v&&b.language&&v.language&&v.language!==b.language;v=b&&v&&b.roles&&v.roles&&!ut(v.roles,b.roles),(A||R||v)&&$Y(this,i,b.contentType)&&(f.lg=b,v=new wn("audiotrackchange",new Map([["quality",b],["position",i]])),this.dispatchEvent(v)),w&&$Y(this,i,b.contentType)&&(f.lg=b,JSON.stringify(b),f=new wn("qualitychange",new Map([["quality",b],["position",i]])),this.dispatchEvent(f))}};function $Y(i,u,f){return!!((i=i.h()[f])&&i.length>0&&(f=i[i.length-1].end,u>=i[0].start&&u0){var f=i[0].start,v=i[i.length-1].end,b=u.me;u.me=b.filter(function(w,A){return!(w.position<=f&&A+1=v)})}else u.me=[]}function f6(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 K3(i){Yr.call(this),this.h=new Map,this.i=i,this.g=null}x(K3,Yr),K3.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Yr.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 wn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),VSe(i))}function VSe(i){i.g||(i.g=new vr(function(){for(var u=i.i(),f=_(i.h),v=f.next();!v.done;v=f.next()){var b=_(v.value);v=b.next().value,b=b.next().value,b.endTimev.endTime&&Y3(this,v);u&&mL(this)},h6.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()),v=f.next(),b={};!v.done;b={Mg:void 0},v=f.next())b.Mg=v.value,u.some((function(w){return function(A){return V3(A.ba,w.Mg)}})(b))||Y3(i,b.Mg)}function FY(i,u){i.m=u;for(var f=Array.from(i.g.keys());f.length>u;){var v=f.pop();v&&Y3(i,v)}mL(i)}function USe(i,u){u&&u!==i.i&&(od(i),i.i=u)}function Y3(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 jY(i,u,f){var v=new Uint8Array(0);return i.je=i.g(u,f,function(b){return re(function(w){if(w.g==1)return v.byteLength>0?v=or(v,b):v=b,i.wh?I(w,i.wh(v),3):w.A(0);v=new Uint8Array(0),N(w)})}),i.je.promise.catch(function(b){return b instanceof Ee&&b.code==7001?Promise.resolve():Promise.reject(b)})}gL.prototype.abort=function(){this.je&&this.je.abort()},je("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 HSe(i,u,f){function v(Ge){$e=Ge.name;var dt=Ge.reader;dt.skip(24);var gt=dt.Ca(),vt=dt.Ca();dt.skip(50),se=String(gt),Y=String(vt),Ge.reader.Ia()&&sr(Ge)}function b(Ge){var dt=Wq(Ge.reader);ce=dt.channelCount,pe=dt.sampleRate,w(Ge.name)}function w(Ge){switch(Ge=Ge.toLowerCase(),Ge){case"avc1":case"avc3":R.push(Ge+".42E01E"),V=!0;break;case"hev1":case"hvc1":R.push(Ge+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":R.push(Ge+".05.04"),V=!0;break;case"vp09":R.push(Ge+".00.10.08"),V=!0;break;case"av01":R.push(Ge+".0.01M.08"),V=!0;break;case"mp4a":A.push("mp4a.40.2"),B=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":A.push(Ge),B=!0;break;case"apac":A.push("apac.31.00"),B=!0}}var A=[],R=[],B=!1,V=!1,K=null,Y=null,se=null,ce=null,pe=null,me=null,ye=null,$e;if(new ci().box("moov",sr).box("trak",sr).box("mdia",sr).S("mdhd",function(Ge){K=e6(Ge.reader,Ge.version).language}).box("minf",sr).box("stbl",sr).S("stsd",Gf).box("mp4a",function(Ge){var dt=Wq(Ge.reader);ce=dt.channelCount,pe=dt.sampleRate,Ge.reader.Ia()?sr(Ge):w(Ge.name)}).box("esds",function(Ge){Ge=Ge.reader;for(var dt="mp4a",gt,vt;Ge.Ia();){gt=Ge.Y();for(var bt=Ge.Y();bt&128;)bt=Ge.Y();if(gt==3)Ge.Ca(),bt=Ge.Y(),bt&128&&Ge.Ca(),bt&64&&Ge.skip(Ge.Y()),bt&32&&Ge.Ca();else if(gt==4)vt=Ge.Y(),Ge.skip(12);else if(gt==5)break}vt&&(dt+="."+N3(vt),gt==5&&Ge.Ia()&&(gt=Ge.Y(),vt=(gt&248)>>3,vt===31&&Ge.Ia()&&(vt=32+((gt&7)<<3)+((Ge.Y()&224)>>5)),dt+="."+vt)),A.push(dt),B=!0}).box("ac-3",b).box("ec-3",b).box("ac-4",b).box("Opus",b).box("fLaC",b).box("apac",b).box("avc1",v).box("avc3",v).box("hev1",v).box("hvc1",v).box("dva1",v).box("dvav",v).box("dvh1",v).box("dvhe",v).box("vp09",v).box("av01",v).box("avcC",function(Ge){var dt=$e||"";switch($e){case"dvav":dt="avc3";break;case"dva1":dt="avc1"}Ge=Ge.reader,Ge.skip(1),Ge=dt+"."+N3(Ge.Y())+N3(Ge.Y())+N3(Ge.Y()),R.push(Ge),V=!0}).box("hvcC",function(Ge){var dt=$e||"";switch($e){case"dvh1":dt="hvc1";break;case"dvhe":dt="hev1"}var gt=Ge.reader;gt.skip(1),Ge=gt.Y();var vt=["","A","B","C"][Ge>>6],bt=Ge&31,_t=gt.U(),Bt=(Ge&32)>>5?"H":"L";Ge=[gt.Y(),gt.Y(),gt.Y(),gt.Y(),gt.Y(),gt.Y()],gt=gt.Y();for(var Ft=0,At=0;At<32&&(Ft|=_t&1,At!=31);At++)Ft<<=1,_t>>=1;for(dt=dt+("."+vt+bt)+("."+N3(Ft,!0)),dt+="."+Bt+gt,vt="",bt=Ge.length;bt--;)((Bt=Ge[bt])||vt)&&(vt="."+Bt.toString(16).toUpperCase()+vt);dt+=vt,R.push(dt),V=!0}).box("dvcC",function(Ge){var dt=$e||"";switch($e){case"hvc1":dt="dvh1";break;case"hev1":dt="dvhe";break;case"avc1":dt="dva1";break;case"avc3":dt="dvav";break;case"av01":dt="dav1"}var gt=Ge.reader;gt.skip(2),Ge=gt.Y(),gt=gt.Y(),R.push(dt+"."+Pl(Ge>>1&127)+"."+Pl(Ge<<5&32|gt>>3&31)),V=!0}).box("dvvC",function(Ge){var dt=$e||"";switch($e){case"hvc1":dt="dvh1";break;case"hev1":dt="dvhe";break;case"avc1":dt="dva1";break;case"avc3":dt="dvav";break;case"av01":dt="dav1"}var gt=Ge.reader;gt.skip(2),Ge=gt.Y(),gt=gt.Y(),R.push(dt+"."+Pl(Ge>>1&127)+"."+Pl(Ge<<5&32|gt>>3&31)),V=!0}).S("vpcC",function(Ge){var dt=$e||"",gt=Ge.reader;Ge=gt.Y();var vt=gt.Y();gt=gt.Y()>>4&15,R.push(dt+"."+Pl(Ge)+"."+Pl(vt)+"."+Pl(gt)),V=!0}).box("av1C",function(Ge){var dt=$e||"";switch($e){case"dav1":dt="av01"}var gt=Ge.reader;gt.skip(1),Ge=gt.Y(),gt=gt.Y();var vt=Ge>>>5,bt=(gt&64)>>6;R.push(dt+"."+vt+"."+Pl(Ge&31)+(gt>>>7?"H":"M")+"."+Pl(vt===2&&bt?(gt&32)>>5?12:10:bt?10:8)+"."+((gt&16)>>4)+"."+((gt&8)>>3)+((gt&4)>>2)+(gt&3)+"."+Pl(1)+"."+Pl(1)+"."+Pl(1)+".0"),V=!0}).box("enca",qS).box("encv",Dl).box("sinf",sr).box("frma",function(Ge){Ge=KI(Ge.reader).codec,w(Ge)}).box("colr",function(Ge){R=R.map(function(vt){if(vt.startsWith("av01.")){var bt=Ge.reader,_t=bt.Oa(),Bt=bt.Tb(4,!1),Ft=String.fromCharCode(Bt[0]);if(Ft+=String.fromCharCode(Bt[1]),Ft+=String.fromCharCode(Bt[2]),Ft+=String.fromCharCode(Bt[3]),Ft==="nclx"){Bt=bt.Ca(),Ft=bt.Ca();var At=bt.Ca(),Dt=bt.Y()>>7,Kt=vt.split(".");Kt.length==10&&(Kt[6]=Pl(Bt),Kt[7]=Pl(Ft),Kt[8]=Pl(At),Kt[9]=String(Dt),vt=Kt.join("."))}bt.seek(_t)}return vt});var dt=G_e(Ge.reader),gt=dt.colorGamut;me=dt.ve,ye=gt}).parse(i||u,!0,!0),!A.length&&!R.length)return null;var Le=B&&!V,qe=new Map;if(V&&!f){f=new Bs("video/mp4"),i&&f.init(i);try{f.xf(u);for(var ot=_(f.Vf()),yt=ot.next();!yt.done;yt=ot.next()){var tt=yt.value;qe.set(tt,tt)}}catch{}f.Nd()}return{type:Le?"audio":"video",mimeType:Le?"audio/mp4":"video/mp4",codecs:bL(A.concat(R)).join(", "),language:K,height:Y,width:se,channelCount:ce,sampleRate:pe,closedCaptions:qe,ve:me,colorGamut:ye,frameRate:null}}function bL(i){var u=new Set,f=[];i=_(i);for(var v=i.next();!v.done;v=i.next()){v=v.value;var b=ip(v);u.has(b)||(f.push(v),u.add(b))}return u=Ta("audio",f),v=Ta("video",f),i=Ta(An,f),v=WSe(v),u=u.concat(v).concat(i),f.length&&!u.length?f:u}function WSe(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?Fo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(f){return f!=u}):i}function GSe(i){var u=null;return new ci().box("moov",sr).box("trak",sr).box("mdia",sr).box("minf",sr).box("stbl",sr).S("stsd",Gf).box("encv",Dl).box("enca",qS).box("sinf",sr).box("schi",sr).S("tenc",function(f){f=f.reader,f.Y(),f.Y(),f.Y(),f.Y(),f=f.Tb(16,!1),u=Pn(f)}).parse(i,!0),u}function _L(i,u,f){var v,b,w,A,R;return re(function(B){if(B.g==1)return v=u,v.cryptoKey?B.A(2):I(B,v.fetchKey(),3);if(b=v.iv,!b)for(b=Re(new ArrayBuffer(16)),w=v.firstMediaSequenceNumber+f,A=b.byteLength-1;A>=0;A--)b[A]=w&255,w>>=8;return u.blockCipherMode=="CBC"?R={name:"AES-CBC",iv:b}:R={name:"AES-CTR",counter:b,length:64},B.return(o.crypto.subtle.decrypt(R,v.cryptoKey,i))})}function X3(i,u,f,v,b){return i=jo(i,v,b),(u!=0||f!=null)&&(i.headers.Range=f?"bytes="+u+"-"+f:"bytes="+u+"-"),i}function VY(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 cg(function(){return KSe(f)}),this.R=Date.now()/1e3,this.m=new Map,this.T={projection:null,hfov:null},this.aa=0,this.$=1/0,this.H=null,this.O=[],this.u=new vr(function(){if(f.j&&f.g)if(f.j.presentationTimeline.W()){var v=f.j.presentationTimeline.Xb(),b=f.j.presentationTimeline.Gb();b-v>1?wSe(f.g.Z,v,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 vr(function(){var v=f.g.video;!v.ended&&f.I&&(f.J=!0,v.currentTime=f.I,f.I=null)}),this.G=new Ie}l=VY.prototype,l.destroy=function(){return this.l.destroy()};function KSe(i){var u,f,v,b,w,A,R;return re(function(B){if(B.g==1){for(i.u&&i.u.stop(),i.u=null,i.K&&i.K.stop(),i.K=null,i.G&&(i.G.release(),i.G=null),u=[],f=_(i.h.values()),v=f.next();!v.done;v=f.next())b=v.value,Xf(b),u.push(y6(b)),b.ha&&(od(b.ha),b.ha=null);for(w=_(i.m.values()),A=w.next();!A.done;A=w.next())R=A.value,od(R);return I(B,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,N(B)})}l.configure=function(i){if(this.i=i,this.X=new hq({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&&(od(u.ha),u.ha=null),u=_(this.m.keys());for(var f=u.next();!f.done;f=u.next())f=f.value,od(this.m.get(f)),this.m.delete(f)}for(i.disableTextPrefetch&&(u=this.h.get(An))&&u.ha&&(od(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(od(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?(FY(f.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(od(f.ha),f.ha=null)):i.segmentPrefetchLimit>0&&(f.ha=kL(this,f.stream));i.disableAudioPrefetch||e6e(this)};function qSe(i,u,f){i.j.presentationTimeline.W()||(i.aa=u,i.$=f)}l.start=function(i){var u=this;return re(function(f){if(f.g==1)return I(f,QSe(u,i||new Map),2);Ti(u.l),u.N=!0,N(f)})};function YSe(i,u){var f,v,b,w,A,R;re(function(B){switch(B.g){case 1:return f=Kr,i.V++,v=i.V,F(B,2),I(B,cY(i.g.Z,f.Na),4);case 4:U(B,3);break;case 2:b=G(B),i.g&&i.g.onError(b);case 3:w=bo(u.mimeType,u.codecs),a6(i.g.Z,w,i.j.sequenceMode,u.external),A=i.g.Z.aa,(A.isTextVisible()||i.i.alwaysStreamText)&&i.V==v&&(R=v6(i,u),i.h.set(f.Na,R),va(i,R,0)),N(B)}})}function XSe(i){var u=i.h.get(An);u&&(Xf(u),y6(u).catch(function(){}),i.H=i.h.get(An),i.h.delete(An),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function zY(i,u){for(var f=i.g.Ob()<0,v=_(i.h.values()),b=v.next();!b.done;b=v.next())b=b.value,b.ua&&b.ua.Id(f),b.ha&&b.ha.Id(f);for(v=_(i.m.values()),b=v.next();!b.done;b=v.next())b.value.Id(f);(f=i.h.get("video"))&&(v=f.stream)&&(u?(u=v.trickModeVideo)&&!f.Mc&&(wg(i,u,!1,0,!1),f.Mc=v):(u=f.Mc)&&(f.Mc=null,wg(i,u,!0,0,!1)))}function UY(i,u,f,v,b,w){f=f===void 0?!1:f,v=v===void 0?0:v,b=b===void 0?!1:b,w=w===void 0?!1:w,i.o=u,i.N&&(u.video&&wg(i,u.video,f,v,b,w),u.audio&&wg(i,u.audio,f,v,b,w))}function p6(i,u){re(function(f){if(f.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?f.A(2):I(f,u.createSegmentIndex(),2):f.return();wg(i,u,!0,0,!1),N(f)})}function ZSe(i){var u=i.h.get(An);u&&wg(i,u.stream,!0,0,!0)}function JSe(i,u){for(var f=_(i.M.entries()),v=f.next();!v.done;v=f.next()){var b=_(v.value);v=b.next().value,b=b.next().value,v.includes(u.type)&&(b(),i.M.delete(v))}}function wg(i,u,f,v,b,w){var A=i.h.get(u.type);A||u.type!=An?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&&USe(A.ha,u),u.type==An&&A.stream!=u&&(b=bo(u.mimeType,u.codecs),a6(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=v6(i,u.dependencyStream):A.Ec=null,qY(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&&(y6(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,SL(i,u),HY(i,u).catch(function(R){i.g&&i.g.onError(R)})))),f?A.Ub?A.Kd=!0:A.Ja?(A.ec=!0,A.ld=v,A.Kd=!0):(Xf(A),wL(i,A,!0,v).catch(function(R){i.g&&i.g.onError(R)})):A.Ja||A.qb||va(i,A,0),HY(i,A).catch(function(R){i.g&&i.g.onError(R)})):YSe(i,u)}function HY(i,u){var f,v,b;return re(function(w){if(w.g==1)return u.Va?(f=u.stream,v=u.Va,f.segmentIndex?w.A(2):I(w,f.createSegmentIndex(),2)):w.return();if(w.g!=4)return b=f.dependencyStream,!b||b.segmentIndex?w.A(4):I(w,b.createSegmentIndex(),4);if(u.Va!=v||u.stream!=f)return w.return();var A=i.g.lc(),R=tv(i.g.Z,u.type),B=u.stream.segmentIndex.find(u.La?u.La.endTime:A),V=B==null?null:u.stream.segmentIndex.get(B);B=V?qI(V):null,V&&!B&&(B=(V.endTime-V.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),B?((V=V.ba)&&(B+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=i.g.getBandwidthEstimate(),A=B*8/V<(R||0)-A-i.i.rebufferingGoal||u.Va.h.g>B):A=!0,A&&u.Va.abort(),N(w)})}l.bd=function(){if(this.g){for(var i=this.g.lc(),u=_(this.h.keys()),f=u.next();!f.done;f=u.next()){var v=f.value;f=this.h.get(v);var b;if((b=!this.J)&&(b=this.g.Z,v==An?(b=b.h,b=b.g==null||b.h==null?!1:i>=b.g&&i0?new h6(i.i.segmentPrefetchLimit,u,function(v,b,w){return g6(v,b,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function e6e(i){for(var u=i.i.segmentPrefetchLimit,f=i.i.prefetchAudioLanguages,v=_(i.j.variants),b=v.next(),w={};!b.done;w={Mb:void 0},b=v.next())if(w.Mb=b.value,w.Mb.audio)if(i.m.has(w.Mb.audio)){if(b=i.m.get(w.Mb.audio),FY(b,u),!(u>0&&f.some((function(R){return function(B){return og(R.Mb.audio.language,B)}})(w)))){var A=i.h.get(w.Mb.audio.type);b!==(A&&A.ha)&&od(b),i.m.delete(w.Mb.audio)}}else u<=0||!f.some((function(R){return function(B){return og(R.Mb.audio.language,B)}})(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=tg(),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 t6e(i,u){var f,v,b,w,A,R,B,V,K;return re(function(Y){switch(Y.g){case 1:if(Ti(i.l),f=Kr,u.Ja||u.qb==null||u.Ub)return Y.return();if(u.qb=null,!u.ec){Y.A(2);break}return I(Y,wL(i,u,u.Kd,u.ld),3);case 3:return Y.return();case 2:if(JSe(i,u),u.stream.segmentIndex){Y.A(4);break}return v=u.stream,F(Y,5),I(Y,u.stream.createSegmentIndex(),7);case 7:U(Y,6);break;case 5:return b=G(Y),I(Y,EL(i,u,b),8);case 8:return Y.return();case 6:if(v!=u.stream)return v.closeSegmentIndex&&v.closeSegmentIndex(),u.Ja||u.qb||va(i,u,0),Y.return();case 4:if(!u.Ec){Y.A(9);break}if(u.Ec.stream.segmentIndex){Y.A(9);break}return F(Y,11),I(Y,u.Ec.stream.createSegmentIndex(),13);case 13:U(Y,9);break;case 11:G(Y);case 9:F(Y,14),w=n6e(i,u),w!=null&&(va(i,u,w),u.Zd=!1),U(Y,15);break;case 14:return A=G(Y),I(Y,EL(i,u,A),16);case 16:return Y.return();case 15:if(u.type===f.Na)return Y.return();if(R=[u],B=u.type===f.ka?f.Aa:f.ka,(V=i.h.get(B))&&R.push(V),!i.N||!R.every(function(se){return se.endOfStream})){Y.A(0);break}return I(Y,i.g.Z.endOfStream(),18);case 18:Ti(i.l),K=i.g.Z.getDuration(),K!=0&&K=w)return f/2;if(R=!u.ua,B=WY(i,u,v,B),!B)return f;A=u.pb;var V=B.ba;A&&V&&V3(V,A)&&(A.g=V.g),A=!1,R&&u.cg&&(A=!0,u.cg=!1),R=1/0,V=Array.from(i.h.values()),V=_(V);for(var K=V.next();!K.done;K=V.next())K=K.value,CL(K)||K.ua&&!K.ua.current()||(R=Math.min(R,K.La?K.La.endTime:v));return b>=R+i.j.presentationTimeline.h?f:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya(B.startTime+.001),q3(u.ha,B.startTime).catch(function(){})),J3(i)&&a6e(i,u,B)||(r6e(i,u,v,B,A).catch(function(){}),u.Ec&&GY(i,u.Ec,v,w)),null)}function WY(i,u,f,v){if(u.ua)return(f=u.ua.current())&&u.La&&Math.abs(u.La.startTime-f.startTime)<.001&&(f=u.ua.next().value),f;if(u.La||v)return f=u.La?u.La.endTime:v,i=i.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),u.ua&&u.ua.next().value;v=i.j.sequenceMode||J3(i)?0:i.i.inaccurateManifestTolerance;var b=Math.max(f-v,0);i=i.g.Ob()<0;var w=null;return v&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(b,!1,i)),w=u.ua&&u.ua.next().value),w||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),w=u.ua&&u.ua.next().value),w}function r6e(i,u,f,v,b){var w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe,ot,yt;return re(function(tt){switch(tt.g){case 1:if(w=Kr,A=u.stream,R=u.ua,u.Ja=!0,F(tt,2),v.Jc()==2)throw new Ee(1,1,1011);return I(tt,o6e(i,u,v,b),4);case 4:return Ti(i.l),i.F?tt.return():(B=A.mimeType=="video/mp4"||A.mimeType=="audio/mp4",V=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&V&&B&&(i.j.type!="HLS"||v.o)?(se=new Uint8Array(0),pe=ce=!1,ye=function(Ge){var dt,gt,vt;return re(function(bt){switch(bt.g){case 1:if(ce||(pe=!0,Ti(i.l),i.F))return bt.return();if(F(bt,2),se=or(se,Ge),dt=!1,gt=0,new ci().box("mdat",function(_t){gt=_t.size+_t.start,dt=!0}).parse(se,!1,!0),!dt){bt.A(4);break}return vt=se.subarray(0,gt),se=se.subarray(gt),I(bt,xL(i,u,f,A,v,vt,!0,b),5);case 5:u.ha&&u.ua&&q3(u.ha,v.startTime,!0);case 4:U(bt,0);break;case 2:me=G(bt),N(bt)}})},I(tt,Z3(i,u,v,ye),9)):(K=Z3(i,u,v),I(tt,K,7)));case 7:return Y=tt.h,Ti(i.l),i.F?tt.return():(Ti(i.l),u.ec?(u.Ja=!1,va(i,u,0),tt.return()):I(tt,xL(i,u,f,A,v,Y,!1,b),6));case 9:if($e=tt.h,me)throw me;if(pe){tt.A(10);break}return ce=!0,Ti(i.l),i.F?tt.return():u.ec?(u.Ja=!1,va(i,u,0),tt.return()):I(tt,xL(i,u,f,A,v,$e,!1,b),10);case 10:u.ha&&u.ua&&q3(u.ha,v.startTime,!0);case 6:if(Ti(i.l),i.F)return tt.return();u.La=v,R.next(),u.Ja=!1,u.ah=!1,Le=i.g.Z.Fc(),qe=Le[u.type],JSON.stringify(qe),u.ec||(ot=null,u.type===w.Aa?ot=i.h.get(w.ka):u.type===w.ka&&(ot=i.h.get(w.Aa)),ot&&ot.type==w.ka?i.g.wf(v,u.stream,ot.stream.isAudioMuxedInVideo):i.g.wf(v,u.stream,u.stream.codecs.includes(","))),Xf(u),va(i,u,0),U(tt,0);break;case 2:if(yt=G(tt),Ti(i.l,yt),i.F)return tt.return();if(u.Ja=!1,yt.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 yt.code==3017?I(tt,i6e(i,u,yt),0):(u.Zd=!0,yt.category==1&&u.ha&&Y3(u.ha,v),yt.severity=2,I(tt,EL(i,u,yt),0))}})}function GY(i,u,f,v){var b,w,A,R,B,V,K,Y,se,ce,pe;return re(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(B=R.ba,!B||V3(B,u.pb)){me.A(3);break}return u.pb=B,F(me,4),I(me,Z3(i,u,B),6);case 6:V=me.h;var ye=i.g.Z;ye.H&&ai(ye.H,V,0,b),i.O=[],U(me,3);break;case 4:throw K=G(me),u.pb=null,K;case 3:if(u.La&&u.La==R){me.A(0);break}return u.La=R,F(me,8),I(me,Z3(i,u,R),10);case 10:Y=me.h,ye=i.g.Z,ye.H&&ai(ye.H,Y,0,b),i.O.push(R.startTime),U(me,9);break;case 8:throw se=G(me),u.La=null,se;case 9:if(ce=Math.max.apply(Math,[0].concat(T(i.O))),pe=i.g.lc(),pe+v>ce)return I(me,GY(i,u,R.startTime,v),0);me.A(0)}})}function i6e(i,u,f){var v,b,w,A,R,B,V;return re(function(K){switch(K.g){case 1:if(v=Array.from(i.h.values()),v.some(function(Y){return Y!=u&&Y.ah})){K.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return b=TL(i,f),i.g.disableStream(u.stream,b)||va(i,u,4),K.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,K.A(3);break}if(w>4){i.C-=.04,K.A(3);break}if(A=TL(i,f),R=i.g.disableStream(u.stream,A),!R){u.Zd=!0,i.F=!0,i.g.onError(f),K.A(5);break}return i.C=1,B=i.g.lc(),I(K,m6(i,u,B),5);case 5:return K.return();case 3:return u.ah=!0,V=i.g.lc(),I(K,m6(i,u,V),2);case 2:va(i,u,4),N(K)}})}function o6e(i,u,f,v){var b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe;return re(function(ot){switch(ot.g){case 1:if(b=Kr,w=u.La==null,A=[],R=Math.max(0,Math.max(f.appendWindowStart,i.aa)-.1),B=Math.min(f.appendWindowEnd,i.$)+.1,V=f.codecs||u.stream.codecs,K=ip(V),Y=Ll(f.mimeType||u.stream.mimeType),se=f.timestampOffset,se==u.kf&&R==u.qc&&B==u.nc&&K==u.hf&&Y==u.jf){ot.A(2);break}if(ce=u.hf&&u.jf&&DSe(i.g.Z,u.type,Y,V,_6(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 I(ot,y6(pe).catch(function(){}),5);case 5:pe.pb=null,pe.qc=null,pe.nc=null,SL(i,pe);case 3:return I(ot,KY(i,u,se,R,B,f,K,Y),2);case 2:return V3(f.ba,u.pb)||(u.pb=f.ba,f.l&&f.ba&&(me=Z3(i,u,f.ba),ye=function(){var yt,tt,Ge,dt,gt,vt,bt,_t,Bt,Ft,At;return re(function(Dt){switch(Dt.g){case 1:return F(Dt,2),I(Dt,me,4);case 4:return yt=Dt.h,Ti(i.l),tt=null,Ge=new Map,dt={projection:null,hfov:null},u.stream&&(gt=u.stream.videoLayout)&&(vt=gt.split("/"),vt.includes("PROJ-RECT")?dt.projection="rect":vt.includes("PROJ-EQUI")?dt.projection="equi":vt.includes("PROJ-HEQU")?dt.projection="hequ":vt.includes("PROJ-PRIM")?dt.projection="prim":vt.includes("PROJ-AIV")&&(dt.projection="hequ")),bt=new ci,bt.box("moov",sr).box("trak",sr).box("mdia",sr).S("mdhd",function(Kt){tt=e6(Kt.reader,Kt.version).timescale}).box("hdlr",function(Kt){switch(Kt=Kt.reader,Kt.skip(8),Kt.Yc()){case"soun":Ge.set(b.ka,tt);break;case"vide":Ge.set(b.Aa,tt)}tt=null}),u.type!==b.Aa||dt.projection||bt.box("minf",sr).box("stbl",sr).S("stsd",Gf).box("encv",Dl).box("avc1",Dl).box("avc3",Dl).box("hev1",Dl).box("hvc1",Dl).box("dvav",Dl).box("dva1",Dl).box("dvh1",Dl).box("dvhe",Dl).box("dvc1",Dl).box("dvi1",Dl).box("vexu",sr).box("proj",sr).S("prji",function(Kt){Kt=Kt.reader.Yc(),dt.projection=Kt}).box("hfov",function(Kt){Kt=Kt.reader.U()/1e3,dt.hfov=Kt}),bt.parse(yt,!0,!0),u.type===b.Aa&&s6e(i,dt),Ge.has(u.type)?f.ba.timescale=Ge.get(u.type):tt!=null&&(f.ba.timescale=tt),_t=u.stream.segmentIndex,_t instanceof Qi&&(Bt=BSe(_t,f.startTime)),Ft=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,I(Dt,i.g.Oh(u.type,yt),5);case 5:return I(Dt,l6(i.g.Z,u.type,yt,null,u.stream,Ft,u.bd,v,!1,!1,Bt),6);case 6:U(Dt,0);break;case 2:throw At=G(Dt),u.pb=null,At}})},$e=f.startTime,w&&(Le=tv(i.g.Z,u.type),Le!=null&&($e=Le)),i.g.Ck($e,f.ba),A.push(ye()))),qe=u.La?u.La.i:-1,f.i!=qe&&A.push(CSe(i.g.Z,u.type,f.startTime)),I(ot,Promise.all(A),0)}})}function KY(i,u,f,v,b,w,A,R){var B,V,K,Y,se;return re(function(ce){switch(ce.g){case 1:if(B=Kr,V=_6(i),F(ce,2),u.qc=v,u.nc=b,A&&(u.hf=A),R&&(u.jf=R),u.kf=f,K=i.j.sequenceMode||i.j.type=="HLS",Y=null,u.type===B.Aa?Y=i.h.get(B.ka):u.type===B.ka&&(Y=i.h.get(B.Aa)),!(Y&&Y.stream&&Y.stream.isAudioMuxedInVideo)){ce.A(4);break}return I(ce,dY(i.g.Z,Y.type,f,v,b,K,Y.stream.mimeType,Y.stream.codecs,V),4);case 4:return I(ce,dY(i.g.Z,u.type,f,v,b,K,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,V),6);case 6:U(ce,0);break;case 2:throw se=G(ce),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,se}})}function xL(i,u,f,v,b,w,A,R){A=A===void 0?!1:A,R=R===void 0?!1:R;var B,V,K,Y;return re(function(se){switch(se.g){case 1:return B=v.closedCaptions&&v.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(V=v.mimeType=="video/mp4"||v.mimeType=="audio/mp4",K=null,b.ba&&(K=b.ba.timescale),V&&K&&v.type==="video"&&i.j.type=="DASH"&&new ci().box("moof",sr).box("traf",sr).S("tfdt",function(ce){var pe,me,ye,$e,Le,qe;return re(function(ot){return pe=QS(ce.reader,ce.version),me=pe.baseMediaDecodeTime,me?(ye=-me/K,$e=Number(u.kf)||0,$eB&&(Y=Math.max(R-w,V-B-A)),Y<=B?se.return():I(se,i.g.Z.remove(u.type,A,A+Y,b),2));if(se.g!=4)return Ti(i.l),i.H?I(se,m6(i,i.H,f),4):se.A(0);Ti(i.l),N(se)})}function CL(i){return i&&i.type==An&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function Z3(i,u,f,v){var b,w,A,R,B;return re(function(V){switch(V.g){case 1:if(b=f.Yb())return V.return(b);if(w=null,u.ha){var K=u.ha,Y=K.g;f instanceof rl&&(Y=K.j),Y.has(f)?(K=Y.get(f),v&&(K.wh=v),w=K.je):w=null}return w||(w=g6(f,u.stream,v||null,i.i.retryParameters,i.g.tc)),A=0,u.ua&&(A=u.ua.h),u.Va=w,I(V,w.promise,2);case 2:if(R=V.h,u.Va=null,B=R.data,!f.aesKey){V.A(3);break}return I(V,_L(B,f.aesKey,A),4);case 4:B=V.h;case 3:return V.return(B)}})}function g6(i,u,f,v,b,w){w=w===void 0?!1:w;var A=i instanceof jn?i:void 0,R=A?1:0;return i=X3(i.P(),i.startByte,i.endByte,v,f),i.contentType=u.type,b.request(Fu,i,{type:R,stream:u,segment:A,isPreload:w})}function wL(i,u,f,v){var b,w;return re(function(A){if(A.g==1)return u.ec=!1,u.Kd=!1,u.ld=0,u.Ub=!0,u.La=null,u.ua=null,u.ha&&!i.m.has(u.stream)&&od(u.ha),v?(b=i.g.lc(),w=i.g.Z.getDuration(),I(A,i.g.Z.remove(u.type,b+v,w),3)):I(A,cY(i.g.Z,u.type),4);if(A.g!=3)return Ti(i.l),f?I(A,i.g.Z.flush(u.type),3):A.A(3);Ti(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||va(i,u,0),N(A)})}function va(i,u,f){var v=u.type;(v!=An||i.h.has(v))&&(u.qb=new L3(function(){var b;return re(function(w){if(w.g==1)return F(w,2),I(w,t6e(i,u),4);if(w.g!=2)return U(w,0);b=G(w),i.g&&i.g.onError(b),N(w)})}).ia(f))}function Xf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function y6(i){return re(function(u){return i.Va?I(u,i.Va.abort(),0):u.A(0)})}function EL(i,u,f){var v;return re(function(b){if(b.g==1)return f.code==3024?(u.Ja=!1,Xf(u),va(i,u,0),b.return()):I(b,pq(i.X),2);if(Ti(i.l),f.category===1&&f.code!=1003){if(u.Mc)return zY(i,!1),b.return();v=TL(i,f),f.handled=i.g.disableStream(u.stream,v),f.handled&&(f.severity=1)}(!f.handled||f.code!=1011)&&i.g.onError(f),f.handled||i.i.failureCallback(f),N(b)})}function TL(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function b6(i,u){u=u===void 0?!1:u;var f,v,b,w,A,R;return re(function(B){if(B.g==1){if(f=Date.now()/1e3,v=i.i.minTimeBetweenRecoveries,!u){if(!i.i.allowMediaSourceRecoveries||f-i.R1)return!0}else if(!u.Jf()){for(u=_(i.h.keys()),f=u.next();!f.done;f=u.next())if(f=i.h.get(f.value),f.type!==Kr.Na&&(f=f.stream)&&f.fullMimeTypes&&f.fullMimeTypes.size>1){for(i=new Set,u=_(f.fullMimeTypes),f=u.next();!f.done;f=u.next())i.add(w3(f.value));return i.size>1}}return!1}function qY(i){i.G.Pa(),J3(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(J3(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 a6e(i,u,f){if(u.type===An)return!1;var v=u.pb;if(!v)return!1;var b=f.ba;if(f=v.g!==b.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(v.encrypted||b.encrypted||(f=!1),v.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&v.encrypted==b.encrypted&&(f=!1),i.i.crossBoundaryStrategy==="keep"&&v.mimeType&&b.mimeType){var w=Js(nl(v.mimeType)),A=Js(nl(v.mimeType));v.mimeType==b.mimeType&&w==A&&(f=!1)}return f&&(i.J||u.bd)&&(i.J=!1,b6(i,!0).then(function(){var R=new Map().set("oldEncrypted",v.encrypted).set("newEncrypted",b.encrypted);i.g.onEvent(new wn("boundarycrossed",R))})),f}function _6(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=tv(i.g.Z,A.type),B=i.g.lc();(A=WY(i,A,B,R))&&A.codecs&&A.mimeType&&(w.codecs=A.codecs,w.mimeType=A.mimeType)}}u=u===void 0?!1:u;var v=new Map,b=i.o.audio;return b&&(f(b),v.set("audio",b)),(b=i.o.video)&&(f(b),v.set("video",b)),u&&i.B&&v.set(An,i.B),v}function S6(){}function IL(i,u,f,v,b){var w=b in v,A=w?f.constructor==Object&&Object.keys(v).length==0:f.constructor==Object&&Object.keys(f).length==0,R=w||A,B=!0,V;for(V in u){var K=b+"."+V,Y=w?v[b]:f[V];R||V in f?u[V]===void 0?Y===void 0||R?delete i[V]:i[V]=dn(Y):A?i[V]=u[V]:Y.constructor==Object&&u[V]&&u[V].constructor==Object?(i[V]||(i[V]=dn(Y)),K=IL(i[V],u[V],Y,v,K),B=B&&K):typeof u[V]!=typeof Y||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=Y.constructor?(Qe("Invalid config, wrong type for "+K),B=!1):typeof f[V]=="function"&&f[V].length!=u[V].length?(rt("Unexpected number of arguments for "+K),i[V]=u[V]):i[V]=Array.isArray(i[V])?u[V].slice():u[V]:(Qe("Invalid config, unrecognized key "+K),B=!1)}return B}function k6(i,u){for(var f={},v=f,b=0,w=0;b=i.indexOf(".",b),!(b<0);)(b==0||i[b-1]!="\\")&&(w=i.substring(w,b).replace(/\\\./g,"."),v[w]={},v=v[w],w=b+1),b+=1;return v[i.substring(w).replace(/\\\./g,".")]=u,f}function Eg(i,u){return i&&u}function YY(i,u){function f(w){for(var A=_(Object.keys(w)),R=A.next();!R.done;R=A.next())if(R=R.value,!(w[R]instanceof HTMLElement))if(b(w[R])&&Object.keys(w[R]).length===0)delete w[R];else{var B=w[R];Array.isArray(B)&&B.length===0||typeof w[R]=="function"?delete w[R]:b(w[R])&&(f(w[R]),Object.keys(w[R]).length===0&&delete w[R])}}function v(w,A){return Object.keys(w).reduce(function(R,B){var V=w[B];return A.hasOwnProperty(B)?V instanceof HTMLElement&&A[B]instanceof HTMLElement?V.isEqualNode(A[B])||(R[B]=V):b(V)&&b(A[B])?(V=v(V,A[B]),(Object.keys(V).length>0||!b(V))&&(R[B]=V)):Array.isArray(V)&&Array.isArray(A[B])?nn(V,A[B])||(R[B]=V):Number.isNaN(V)&&Number.isNaN(A[B])||V!==A[B]&&(R[B]=V):R[B]=V,R},{})}function b(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=v(i,u),f(i),i}je("shaka.util.ConfigUtils",S6),S6.getDifferenceFromConfigObjects=YY,S6.convertToConfigObject=k6,S6.mergeConfigObjects=IL,je("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function il(){}function XY(i){return i=Zt(i),new Pt(i).Db}function Q3(i,u,f){function v(R){it(w).setUint32(A,R.byteLength,!0),A+=4,w.set(Re(R),A),A+=R.byteLength}if(!f||!f.byteLength)throw new Ee(2,6,6015);var b;typeof u=="string"?b=pn(u,!0):b=u,i=Zt(i),i=pn(i,!0);var w=new Uint8Array(12+i.byteLength+b.byteLength+f.byteLength),A=0;return v(i),v(b),v(f),w}function LL(i,u,f){return u!=="skd"?i:(u=f.serverCertificate,f=Zt(i).split("skd://").pop(),Q3(i,f,u))}function x6(i,u){i===2&&(i=u.drmInfo)&&zS(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}je("shaka.drm.FairPlay",il),il.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&zS(i.keySystem)){try{var f=st(u.data)}catch{return}if(i=!1,f=f.trim(),f.substr(0,5)===""&&f.substr(-6)===""&&(f=f.slice(5,-6),i=!0),!i)try{var v=JSON.parse(f);v.ckc&&(f=v.ckc,i=!0),v.CkcMessage&&(f=v.CkcMessage,i=!0),v.License&&(f=v.License,i=!0)}catch{}i&&(u.data=we(dr(f)))}},il.muxFairPlayRequest=function(i,u){x6(i,u)},il.expressplayFairPlayRequest=function(i,u){if(i===2){var f=u.drmInfo;f&&zS(f.keySystem)&&x6(i,u)}},il.conaxFairPlayRequest=function(i,u){x6(i,u)},il.ezdrmFairPlayRequest=function(i,u){x6(i,u)},il.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&zS(i.keySystem)&&(i=Re(u.body),i=Yn(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Gt("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=Zt(i).split("skd://").pop().split("?").shift(),f=o.atob(f);var v=new ArrayBuffer(f.length*2);v=at(v);for(var b=0,w=f.length;b2||b.channelsCount>2)&&v.channelsCount!=b.channelsCount||v.spatialAudio!==b.spatialAudio||u&&!ZY(v,b))&&JY(v.roles,b.roles)&&v.groupId===b.groupId)}return!v&&(v=f.video&&i.video)&&(f=f.video,v=i.video,v=!((!u||ZY(f,v))&&JY(f.roles,v.roles))),v?!1:(this.g.add(i),!0)},C6.prototype.values=function(){return this.g.values()};function ZY(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(v){return ip(v)}),u=u.codecs.split(",").map(function(v){return ip(v)}),i.length!=u.length))return!1;i.sort(),u.sort();for(var f=0;fu)}).sort(function(f,v){return f.audio||v.audio?f.audio?v.audio?(v.audio.channelsCount||0)-(f.audio.channelsCount||0):1:-1:0})}function p6e(i,u){if(u=="AUTO"){var f=i.some(function(v){return!!(v.video&&v.video.hdr&&v.video.hdr=="HLG")});u=Be().sd(f)}return i.filter(function(v){return!(v.video&&v.video.hdr&&v.video.hdr!=u)})}function v6e(i,u){return i.filter(function(f){return!(f.video&&f.video.videoLayout&&f.video.videoLayout!=u)})}function m6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.spatialAudio!=u)})}function g6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.codecs!=u)})}function w6(){}function Tg(){var i=1/0,u=Be();navigator.connection&&navigator.connection.saveData&&(i=360);var f={retryParameters:_c(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(R,B,V){return o.shakaMediaKeysPolyfill==="apple"&&B=="skd"&&(B=V.serverCertificate,V=XY(R),R=Q3(R,V,B)),R},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},v="reload";hc()&&u.Pc()&&(v="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:E6,manifestPreprocessorTXml:T6,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:E6,manifestPreprocessorTXml:T6,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(R){return re(function(B){return B.return(R)})},downloadSizeCallback:function(R){var B;return re(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?I(V,navigator.storage.estimate(),3):V.return(!0):(B=V.h,V.return(B.usage+R0?I(A,Promise.all(f),0):A.A(0)})}function D6e(i){var u,f,v,b,w;return re(function(A){return!i.o&&(u=iX(i))&&(i.o=u),i.o?(f=i.h.presentationTimeline.W(),v=[],b=i.o,b.video&&v.push(ML(i,b.video,f)),b.audio&&v.push(ML(i,b.audio,f)),(w=sg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&lq(b.audio,w,i.g)&&(v.push(ML(i,w,f)),i.T=w),I(A,Promise.all(v),0)):A.A(0)})}function iX(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=FS(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 v,b,w,A,R;return re(function(B){return B.g==1?(v=i.g.streaming.segmentPrefetchLimit||2,b=new h6(v,u,function(V,K,Y){return g6(V,K,Y||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,b),u.segmentIndex?B.A(2):I(B,u.createSegmentIndex(),2)):(w=typeof i.m=="number"?i.m:0,A=u.segmentIndex.Vb(w),R=null,A&&(R=A.current(),R||(R=A.next().value)),R||(R=id(u.segmentIndex)),R?f?R.ba?I(B,BY(b,R.ba),0):B.A(0):I(B,q3(b,R.startTime),0):B.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,f,v;return re(function(b){if(b.g==1)return i.j=!0,!i.l||i.qa?b.A(2):I(b,i.l.stop(),2);if(b.g!=4)return i.u&&i.u.release(),i.I&&!i.wa&&i.I.release(),!i.i||i.aa?b.A(4):I(b,i.i.destroy(),4);if(i.M.size>0&&!i.xa)for(u=_(i.M.values()),f=u.next();!f.done;f=u.next())v=f.value,od(v);N(b)})};function oX(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))}je("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 rv(i,u){Yr.call(this);var f=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:Ag,Uc:function(v,b){return Jf(f,"enter",v,b)}},{kd:n2,jd:Ag,Uc:function(v,b){return Jf(f,"enter",v,b)}},{kd:r2,jd:Ag,Uc:function(v,b){return Jf(f,"enter",v,b)}},{kd:Ag,jd:n2,Uc:function(v,b){return Jf(f,"exit",v,b)}},{kd:Ag,jd:r2,Uc:function(v,b){return Jf(f,"exit",v,b)}},{kd:n2,jd:r2,Uc:function(v,b){b?Jf(f,"skip",v,b):(Jf(f,"enter",v,b),Jf(f,"exit",v,b))}},{kd:r2,jd:n2,Uc:function(v,b){return Jf(f,"skip",v,b)}}],this.h=new Ie,this.h.D(this.i,"regionremove",function(v){f.g.delete(v.region)})}x(rv,Yr),rv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Yr.prototype.release.call(this)},rv.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var f=_(this.i.h.values()),v=f.next();!v.done;v=f.next()){v=v.value;var b=this.g.get(v),w=iv.endTime?r2:Ag;this.g.set(v,w);for(var A=_(this.m),R=A.next();!R.done;R=A.next())R=R.value,R.kd==b&&R.jd==w&&R.Uc(v,u)}}};function Jf(i,u,f,v){u=new wn(u,new Map([["region",f],["seeking",v]])),i.dispatchEvent(u)}var n2=1,Ag=2,r2=3;function iv(i,u,f){var v,b,w,A,R,B,V;return re(function(K){switch(K.g){case 1:return v=Ig(i),(b=P6e.get(v))?K.return(b):(w=0,A=jo([i],f),F(K,2),A.method="HEAD",I(K,u.request(w,A).promise,4));case 4:R=K.h,b=R.headers["content-type"],U(K,3);break;case 2:if(B=G(K),!B||B.code!=1002&&B.code!=1001){K.A(3);break}return A.method="GET",I(K,u.request(w,A).promise,6);case 6:V=K.h,b=V.headers["content-type"];case 3:return K.return(b?b.toLowerCase().split(";").shift():"")}})}function Ig(i){return i=new Pt(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var P6e=new Map().set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* @license Copyright 2013 Ali Al Dallal Licensed under the MIT license. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */for(var cp={ach:"Lwo",ady:"Адыгэбзэ",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"Tɕɥi",ar:"العربية","ar-AR":"العربية","ar-MA":"العربية","ar-SA":"العربية (السعودية)","ay-BO":"Aymar aru",az:"Azərbaycan dili","az-AZ":"Azərbaycan dili","be-BY":"Беларуская",bg:"Български","bg-BG":"Български",bn:"বাংলা","bn-IN":"বাংলা (ভারত)","bn-BD":"বাংলা(বাংলাদেশ)","bs-BA":"Bosanski",ca:"Català","ca-ES":"Català",cak:"Maya Kaqchikel","ck-US":"ᏣᎳᎩ (tsalagi)",cs:"Čeština","cs-CZ":"Čeština",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (Österreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserbšćina",el:"Ελληνικά","el-GR":"Ελληνικά",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)","en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Español","es-AR":"Español (Argentine)","es-419":"Español (Latinoamérica)","es-CL":"Español (Chile)","es-CO":"Español (Colombia)","es-EC":"Español (Ecuador)","es-ES":"Español (España)","es-LA":"Español (Latinoamérica)","es-NI":"Español (Nicaragua)","es-MX":"Español (México)","es-US":"Español (Estados Unidos)","es-VE":"Español (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"فارسی","fa-IR":"فارسی","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"Føroyskt",fr:"Français","fr-CA":"Français (Canada)","fr-FR":"Français (France)","fr-BE":"Français (Belgique)","fr-CH":"Français (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",gl:"Galego","gl-ES":"Galego","gn-PY":"Avañe'ẽ","gu-IN":"ગુજરાતી","gx-GR":"Ἑλληνική ἀρχαία",he:"עברית‏","he-IL":"עברית‏",hi:"हिन्दी","hi-IN":"हिन्दी",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserbšćina",ht:"Kreyòl",hu:"Magyar","hu-HU":"Magyar","hy-AM":"Հայերեն",id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"Íslenska","is-IS":"Íslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"日本語","ja-JP":"日本語","jv-ID":"Basa Jawa","ka-GE":"ქართული","kk-KZ":"Қазақша",km:"ភាសាខ្មែរ","km-KH":"ភាសាខ្មែរ",kab:"Taqbaylit",kn:"ಕನ್ನಡ","kn-IN":"ಕನ್ನಡ (India)",ko:"한국어","ko-KR":"한국어 (韩国)",ku:"Kurdî","ku-TR":"Kurdî",la:"Latin","la-VA":"Latin",lb:"Lëtzebuergesch","li-NL":"Lèmbörgs",lt:"Lietuvių","lt-LT":"Lietuvių",lv:"Latviešu","lv-LV":"Latviešu",mai:"मैथिली, মৈথিলী","mg-MG":"Malagasy",mk:"Македонски","mk-MK":"Македонски (Македонски)",ml:"മലയാളം","ml-IN":"മലയാളം","mn-MN":"Монгол",mr:"मराठी","mr-IN":"मराठी",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"ဗမာစကာ",nb:"Norsk (bokmål)","nb-NO":"Norsk (bokmål)",ne:"नेपाली","ne-NP":"नेपाली",nl:"Nederlands","nl-BE":"Nederlands (België)","nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"ଓଡ଼ିଆ",pa:"ਪੰਜਾਬੀ","pa-IN":"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",pl:"Polski","pl-PL":"Polski","ps-AF":"پښتو",pt:"Português","pt-BR":"Português (Brasil)","pt-PT":"Português (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Română","ro-RO":"Română",ru:"Русский","ru-RU":"Русский","sa-IN":"संस्कृतम्","se-NO":"Davvisámegiella","si-LK":"පළාත",sk:"Slovenčina","sk-SK":"Slovenčina (Slovakia)",sl:"Slovenščina","sl-SI":"Slovenščina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"Српски","sr-RS":"Српски (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili","sw-KE":"Kiswahili",ta:"தமிழ்","ta-IN":"தமிழ்",te:"తెలుగు","te-IN":"తెలుగు",tg:"забо́ни тоҷикӣ́","tg-TJ":"тоҷикӣ",th:"ภาษาไทย","th-TH":"ภาษาไทย (ประเทศไทย)",tl:"Filipino","tl-PH":"Filipino",tlh:"tlhIngan-Hol",tr:"Türkçe","tr-TR":"Türkçe","tt-RU":"татарча",uk:"Українська","uk-UA":"Українська",ur:"اردو","ur-PK":"اردو",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Tiếng Việt","vi-VN":"Tiếng Việt","xh-ZA":"isiXhosa",yi:"ייִדיש","yi-DE":"ייִדיש (German)",zh:"中文","zh-HANS":"中文简体","zh-HANT":"中文繁體","zh-CN":"中文(中国)","zh-HK":"中文(香港)","zh-SG":"中文(新加坡)","zh-TW":"中文(台灣)","zu-ZA":"isiZulu"},sX=_(Object.keys(cp)),OL=sX.next();!OL.done;OL=sX.next()){var aX=OL.value;cp[aX.toLowerCase()]=cp[aX]}function lX(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(A){return lX(A,i)}).join("");if(!i.payload)return i.payload;var f=[],v=i.fontWeight>=ng,b=i.fontStyle==rg,w=i.textDecoration.includes(jf);return v&&f.push(["b"]),b&&f.push(["i"]),w&&f.push(["u"]),b=i.color,b==""&&u&&(b=u.color),v="",(b=uX(b))&&(v+="."+b),b=i.backgroundColor,b==""&&u&&(b=u.backgroundColor),(u=uX(b))&&(v+=".bg_"+u),v&&f.push(["c",v]),f.reduceRight(function(A,R){var B=_(R);return R=B.next().value,B=B.next().value,"<"+R+(B===void 0?"":B)+">"+A+""},i.payload)}function uX(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=_(cX(i));for(var v=i.next();!v.done;v=i.next())if(v=v.value,v.isContainer)f.push.apply(f,T($L(v.nestedCues,v)));else{var b=v.clone();b.nestedCues=[],b.payload=lX(v,u),f.push(b)}return f}function cX(i){var u=[];i=_(i);for(var f=i.next(),v={};!f.done;v={ig:void 0},f=i.next())v.ig=f.value,u.some((function(b){return function(w){return IS(b.ig,w)}})(v))||u.push(v.ig);return u}function R6e(i){function u(v){for(var b=5381,w=v.length;w;)b=b*33^v.charCodeAt(--w);return(b>>>0).toString()}if(i.startTime>=i.endTime)return null;var f=new VTTCue(i.startTime,i.endTime,i.payload);f.id=u(i.startTime.toString())+u(i.endTime.toString())+u(i.payload),f.lineAlign=i.lineAlign,f.positionAlign=i.positionAlign,i.size&&(f.size=i.size);try{f.align=i.textAlign}catch{}return i.textAlign=="center"&&f.align!="center"&&(f.align="middle"),i.writingMode=="vertical-lr"?f.vertical="lr":i.writingMode=="vertical-rl"&&(f.vertical="rl"),i.lineInterpretation==1&&(f.snapToLines=!1),i.line!=null&&(f.line=i.line),i.position!=null&&(f.position=i.position),f}function dX(i,u){var f=$L(u),v=[];u=i.cues?Array.from(i.cues):[],f=_(f);for(var b=f.next(),w={};!b.done;w={vd:void 0},b=f.next())w.vd=b.value,!u.some((function(A){return function(R){return R.startTime==A.vd.startTime&&R.endTime==A.vd.endTime&&R.text==A.vd.payload}})(w))&&w.vd.payload&&(b=R6e(w.vd))&&v.push(b);for(u=v.slice().sort(function(A,R){return A.startTime!=R.startTime?A.startTime-R.startTime:A.endTime!=R.endTime?A.endTime-R.startTime:"line"in VTTCue.prototype?v.indexOf(R)-v.indexOf(A):v.indexOf(A)-v.indexOf(R)}),u=_(u),f=u.next();!f.done;f=u.next())i.addCue(f.value)}function BL(i,u){var f=!1;i.mode==="disabled"&&(f=!0,i.mode="hidden");for(var v=0;v-1&&(f.has(u.g)?(v=f.get(u.g).track,v.mode==="disabled"&&(v.mode=u.u?"showing":"hidden")):u.g=-1),u.h=f},this.B=function(){if(!u.o){var f=u.j;u.o=new vr(function(){if(u.o=null,u.j===f){var v=-1,b=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(v=u.g,b=!0):w.track.mode==="hidden"&&(v=u.g)}if(!b)for(b=_(u.h),w=b.next();!w.done;w=b.next()){var A=_(w.value);if(w=A.next().value,A=A.next().value,A.track.mode==="showing"){v=w;break}else v<0&&A.track.mode==="hidden"&&(v=w)}for(b=_(u.h),w=b.next();!w.done;w=b.next())A=_(w.value),w=A.next().value,A=A.next().value,w!==v&&A.track.mode!=="disabled"&&(A.track.mode="disabled");u.g!==v&&(u.g=v,v>-1&&u.i.kh({id:v})),u.i.qh(v>-1&&u.h.get(v).track.mode==="showing")}}).ia(0)}},this.l.D(i,"loaded",function(){return u.enableTextDisplayer()}),this.enableTextDisplayer()}l=ts.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)&&dX(this.h.get(this.g).track,i)},l.destroy=function(){return this.i&&(this.j&&this.C(),this.i=null),this.l&&(this.l.release(),this.l=null),Promise.resolve()},l.isTextVisible=function(){return this.u},l.setTextVisibility=function(i){if(this.u=i,this.h.has(this.g)){var u=this.h.get(this.g).track;u.mode!=="disabled"&&(i=i?"showing":"hidden",u.mode!==i&&(u.mode=i))}else if(this.i&&this.i.m===3)if(u=Array.from(this.i.h.textTracks).filter(function(v){return["captions","subtitles","forced"].includes(v.kind)}),i){i=null,u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value,f.mode==="showing"){i=null;break}else i||f.mode!=="hidden"||(i=f);i&&(i.mode="showing")}else for(i=_(u),u=i.next();!u.done;u=i.next())u=u.value,u.mode==="showing"&&(u.mode="hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){!this.j&&this.i&&this.i.m===2&&(this.j=this.i.h,this.l.Ba(this.i,"unloading",this.C),this.l.D(this.i,"textchanged",this.m),this.l.D(this.j.textTracks,"change",this.B),this.m())};function M6e(i){var u=Be();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"}je("shaka.text.NativeTextDisplayer",ts),ts.prototype.enableTextDisplayer=ts.prototype.enableTextDisplayer,ts.prototype.setTextLanguage=ts.prototype.setTextLanguage,ts.prototype.setTextVisibility=ts.prototype.setTextVisibility,ts.prototype.isTextVisible=ts.prototype.isTextVisible,ts.prototype.destroy=ts.prototype.destroy,ts.prototype.append=ts.prototype.append,ts.prototype.remove=ts.prototype.remove,ts.prototype.configure=ts.prototype.configure;function Qs(i,u){for(tn("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&&dX(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&&fX(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){fX(this)};function fX(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}je("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(){},je("shaka.text.StubTextDisplayer",ea),ea.prototype.enableTextDisplayer=ea.prototype.enableTextDisplayer,ea.prototype.setTextLanguage=ea.prototype.setTextLanguage,ea.prototype.setTextVisibility=ea.prototype.setTextVisibility,ea.prototype.isTextVisible=ea.prototype.isTextVisible,ea.prototype.destroy=ea.prototype.destroy,ea.prototype.append=ea.prototype.append,ea.prototype.remove=ea.prototype.remove,ea.prototype.configure=ea.prototype.configure;function ta(i,u){var f=this;this.m=!1,this.h=[],this.j=i,this.o=u,this.C=this.u=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.B=new vr(function(){f.j.paused||dp(f)}),i2(this),this.l=new Map,this.i=new Ie,this.i.D(document,"fullscreenchange",function(){dp(f,!0)}),this.i.D(this.j,"seeking",function(){dp(f,!0)}),this.i.D(this.j,"ratechange",function(){i2(f)}),this.i.D(this.j,"resize",function(){var v=f.j,b=v.videoWidth;v=v.videoHeight,b&&v?f.u=b/v:f.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){dp(f,!0)}),this.F.observe(this.g)),this.G=new Map}l=ta.prototype,l.configure=function(i){this.C=i,i2(this),dp(this,!0)},l.append=function(i){var u=[].concat(T(this.h));i=_(cX(i));for(var f=i.next(),v={};!f.done;v={jg:void 0},f=i.next())v.jg=f.value,u.some((function(b){return function(w){return IS(w,b.jg)}})(v))||this.h.push(v.jg);this.h.length&&i2(this),dp(this)},l.destroy=function(){return this.g&&(this.g.parentElement&&this.o.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.B&&(this.B.stop(),this.B=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.F&&(this.F.disconnect(),this.F=null)),Promise.resolve()},l.remove=function(i,u){if(!this.g)return!1;var f=this.h.length;return this.h=this.h.filter(function(v){return v.startTime=u}),dp(this,f>this.h.length),this.h.length||i2(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),dp(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)},l.setTextLanguage=function(i){i&&i!="und"?this.g.setAttribute("lang",i):this.g.setAttribute("lang","")},l.enableTextDisplayer=function(){};function i2(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 O6e(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function hX(i,u,f,v,b){var w=!1,A=[],R=[];u=_(u);for(var B=u.next();!B.done;B=u.next()){B=B.value,b.push(B);var V=i.l.get(B),K=B.startTime<=v&&B.endTime>v,Y=V?V.gj:null;V&&(A.push(V.kg),V.$c&&A.push(V.$c),K||(w=!0,i.l.delete(B),V=null)),K&&(R.push(B),V?O6e(i,Y)||(w=!0):($6e(i,B,b),V=i.l.get(B),Y=V.gj,w=!0)),B.nestedCues.length>0&&Y&&hX(i,B.nestedCues,Y,v,b),b.pop()}if(w){for(v=_(A),b=v.next();!b.done;b=v.next())b=b.value,b.parentElement&&b.parentElement.removeChild(b);for(R.sort(function(se,ce){return se.startTime!=ce.startTime?se.startTime-ce.startTime:se.endTime-ce.endTime}),R=_(R),v=R.next();!v.done;v=R.next())v=i.l.get(v.value),v.$c?(v.$c.contains(f)&&v.$c.removeChild(f),f.appendChild(v.$c),v.$c.appendChild(v.kg)):f.appendChild(v.kg)}}function dp(i,u){if(i.g){var f=i.j.currentTime;if(!i.m||u!==void 0&&u){u=_(i.G.values());for(var v=u.next();!v.done;v=u.next())U3(v.value);U3(i.g),i.l.clear(),i.G.clear()}i.m&&hX(i,i.h,i.g,f,[])}}function $6e(i,u,f){var v=f.length>1,b=v?"span":"div";u.lineBreak&&(b="br"),u.rubyTag&&(b=u.rubyTag),v=!v&&u.nestedCues.length>0;var w=document.createElement(b);if(b!="br"&&N6e(i,w,u,f,v),f=null,u.region&&u.region.id){var A=u.region,R=i.u===4/3?2.5:1.9;if(f=A.id+"_"+A.width+"x"+A.height+(A.heightUnits==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 B=A.heightUnits==Es?"%":"px",V=A.widthUnits==Es?"%":"px",K=A.viewportAnchorUnits==Es?"%":"px";b.id="shaka-text-region---"+f,b.classList.add("shaka-text-region"),b.style.position="absolute";var Y=A.height,se=A.width;A.heightUnits===2&&(Y=A.height*5.33,B="%"),A.widthUnits===2&&(se=A.width*R,V="%"),b.style.height=Y+B,b.style.width=se+V,A.viewportAnchorUnits===2?(R=A.viewportAnchorY/75*100,B=A.viewportAnchorX/(i.u===4/3?160:210)*100,R-=A.regionAnchorY*Y/100,B-=A.regionAnchorX*se/100,b.style.top=R+"%",b.style.left=B+"%"):(b.style.top=A.viewportAnchorY-A.regionAnchorY*Y/100+K,b.style.left=A.viewportAnchorX-A.regionAnchorX*se/100+K),A.heightUnits!==0&&A.widthUnits!==0&&A.viewportAnchorUnits!==0&&(A=Math.max(0,Math.min(100-(parseInt(b.style.width.slice(0,-1),10)||0),parseInt(b.style.left.slice(0,-1),10)||0)),b.style.top=Math.max(0,Math.min(100-(parseInt(b.style.height.slice(0,-1),10)||0),parseInt(b.style.top.slice(0,-1),10)||0))+"%",b.style.left=A+"%"),b.style.display="flex",b.style.flexDirection="column",b.style.alignItems="center",b.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",i.G.set(f,b),f=b}}b=w,v&&(b=document.createElement("span"),b.classList.add("shaka-text-wrapper"),b.style.backgroundColor=u.backgroundColor,b.style.lineHeight="normal",w.appendChild(b)),i.l.set(u,{kg:w,gj:b,$c:f})}function B6e(i){var u=i.direction,f=i.positionAlign;return i=i.textAlign,f!==DS?f:i==="left"||i==="start"&&u===x3||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===x3?"line-right":"center"}function N6e(i,u,f,v,b){var w=u.style,A=f.nestedCues.length==0,R=v.length>1;w.whiteSpace="pre-wrap";var B=f.payload.replace(/\s+$/g,function(K){return" ".repeat(K.length)});if(w.webkitTextStrokeColor=f.textStrokeColor,w.webkitTextStrokeWidth=f.textStrokeWidth,w.color=f.color,w.direction=f.direction,w.opacity=f.opacity,w.paddingLeft=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=F6e(v,function(K){return K.backgroundColor}))?V.style.backgroundColor=u:B&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),B&&(V.setAttribute("translate","no"),V.textContent=B)}R&&!v[v.length-1].isContainer?w.display="inline":(w.display="flex",w.flexDirection="column",w.alignItems="center",f.textAlign=="left"||f.textAlign=="start"?(w.width="100%",w.alignItems="start"):(f.textAlign=="right"||f.textAlign=="end")&&(w.width="100%",w.alignItems="end"),w.justifyContent=f.displayAlign=="before"?"flex-start":f.displayAlign=="center"?"center":"flex-end"),A||(w.margin="0"),w.fontFamily=f.fontFamily,w.fontWeight=f.fontWeight.toString(),w.fontStyle=f.fontStyle,w.letterSpacing=f.letterSpacing,v=i.C?i.C.fontScaleFactor:1,(v!==1||f.fontSize)&&(w.fontSize=NL(f.fontSize||"1em",f,i.o,v)),v=f.line,v!=null&&(A=f.lineInterpretation,A==C3&&(A=1,R=16,i.u&&i.u<1&&(R=32),v=v<0?100+v/R*100:v/R*100),A==1&&(w.position="absolute",f.writingMode==z0?(w.width="100%",f.lineAlign==U0?w.top=v+"%":f.lineAlign=="end"&&(w.bottom=100-v+"%")):f.writingMode=="vertical-lr"?(w.height="100%",f.lineAlign==U0?w.left=v+"%":f.lineAlign=="end"&&(w.right=100-v+"%")):(w.height="100%",f.lineAlign==U0?w.right=v+"%":f.lineAlign=="end"&&(w.left=100-v+"%")))),w.lineHeight=f.lineHeight,i=B6e(f),i=="line-left"?(w.cssFloat="left",f.position!==null&&(w.position="absolute",f.writingMode==z0?(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==z0?(w.right=100-f.position+"%",w.width="auto"):w.bottom=f.position+"%")):f.position!==null&&f.position!=50&&(w.position="absolute",f.writingMode==z0?(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==z0?w.width=f.size+"%":w.height=f.size+"%")}function NL(i,u,f,v){v=v===void 0?1:v;var b=(b=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(i))?{value:Number(b[1]),unit:b[2]}:null;if(!b)return i;switch(i=b.unit,v*=b.value,i){case"%":return v/100*f.clientHeight/u.cellResolution.rows+"px";case"c":return f.clientHeight*v/u.cellResolution.rows+"px";default:return v+i}}function F6e(i,u){for(var f=i.length-1;f>=0;f--){var v=u(i[f]);if(v||v===0)return v}return null}je("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 j6e(i,u){function f(w){for(var A=w,R=_(u),B=R.next();!B.done;B=R.next())B=B.value,B.end&&B.start "+f(b.endTime)+(function(w){var A=[];switch(w.textAlign){case"left":A.push("align:left");break;case"right":A.push("align:right");break;case Ud: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}je("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 Ie,this.G=[],this.h=null}FL.prototype.setMediaElement=function(i){this.h=i,W6e(this)},FL.prototype.configure=function(i){this.g=i,G6e(this)};function V6e(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},pX(i),i.m={},i.h=null,i.i.Pa()}function z6e(i,u){i.o=u,i.o?i.l==M6?i.l=O6:i.l==$6&&(i.l=B6):i.l==O6?i.l=M6:i.l==B6&&(i.l=$6)}function U6e(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 H6e(i,u,f){try{if(!i.g.enabled)return u;var v=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=L6;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":b=P6;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=kX;break e}b=void 0}v.ot=b,v.su=!0;var w=o2(v);return I6(u,w)}catch(A){return ft("CMCD_SRC_ERROR","Could not generate src CMCD data.",A),u}}function W6e(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 G6e(i){pX(i);var u=vX(i);u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value.timeInterval,f===void 0&&(f=oke),f>=1){var v=new vr(function(){return na(i,ske)});v.Ea(f),i.G.push(v)}}function pX(i){if(i.G)for(var u=_(i.G),f=u.next();!f.done;f=u.next())f.value.stop();i.G=[]}function vX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===TX&&u.enabled}):[]}function mX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===EX&&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,TX),f=i.g.targets,!(i.g.version0&&!A.includes(R))||gX(i,w,b)}}}function Lg(i,u,f){if(i.g.enabled){f=UL(i,f,wX);var v=yX({mode:wX,useHeaders:i.g.useHeaders,includeKeys:i.g.includeKeys||[]});i.m[v]||(i.m[v]={request:1,response:1}),f.sn=i.m[v].request++,v=i.g.includeKeys||[];var b=i.g.version==WL?Array.from(new Set([].concat(T(GL),T(eke)))):xX;v=VL(v,b),f=zL(f,v),K6e(f,u,i.g.useHeaders)}}function gX(i,u,f,v){var b=_c(),w=f.url;if(f.useHeaders){if(u=SX(u),!Object.keys(u).length)return;v&&Object.assign(v.headers,u),v=jo([w],b),Object.assign(v.headers,u)}else{if(u=o2(u),!u)return;w=I6(w,u),v&&(v.uri=w),v=jo([w],b)}i.j.Wb().request(9,v)}function K6e(i,u,f){if(f)i=SX(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var v=o2(i);v&&(u.uris=u.uris.map(function(b){return I6(b,v)}))}}function VL(i,u){if(!i||i.length===0)return u;for(var f=_(i),v=f.next();!v.done;v=f.next())u.includes(v.value);return i=i.filter(function(b){return u.includes(b)})}function zL(i,u){return Object.keys(i).reduce(function(f,v){return u.includes(v)&&(f[v]=i[v]),f},{})}function q6e(i){if(i.type===0)return Z6e;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?P6:D6;if(u=="audio")return L6;if(u=="text")return i.mimeType==="application/mp4"?R6:HL}}function yX(i){var u=Object.keys(i).sort().reduce(function(f,v){return v!=="enabled"&&(f[v]=i[v]),f},{});return JSON.stringify(u)}function Y6e(i,u){if(u=i.j.Fc()[u],!u.length)return NaN;var f=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=f&&v.end>=f}))?(i.end-f)*1e3:NaN}function bX(i,u){if(u=i.j.Fc()[u],!u.length)return 0;var f=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=f&&v.end>=f}))?(i.end-f)*1e3:0}function X6e(i,u){var f=i.j.mc();if(!f.length)return NaN;i=f[0],f=_(f);for(var v=f.next();!v.done;v=f.next())v=v.value,v.type==="variant"&&v.bandwidth>i.bandwidth&&(i=v);switch(u){case D6:return i.videoBandwidth||NaN;case L6:return i.audioBandwidth||NaN;default:return i.bandwidth}}function _X(i,u,f){var v=u.segment,b=0;v&&(b=v.endTime-v.startTime),b={d:b*1e3,st:i.j.W()?Q6e:J6e},b.ot=q6e(u);var w=b.ot===D6||b.ot===L6||b.ot===P6||b.ot===R6;if(u=u.stream){var A=i.j.Ob();if(w&&(b.bl=Y6e(i,u.type),b.ot!==R6)){var R=bX(i,u.type);b.dl=A?R/Math.abs(A):R}if(u.bandwidth&&(b.br=u.bandwidth/1e3),u.segmentIndex&&v){if((A=u.segmentIndex.Vb(v.endTime,!0,A<0))&&(A=A.next().value)&&A!=v){if(f&&!ut(v.P(),A.P())){var B=A.P()[0];R=new URL(B);var V=new URL(f);if(R.origin!==V.origin)f=B;else{f=R.pathname.split("/").slice(1),B=V.pathname.split("/").slice(1,-1),V=Math.min(f.length,B.length);for(var K=0;K0&&f<=1?i*(1-f)+u*f:i};function AX(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}je("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 IX="etp",LX="mb",DX="rd",PX="rtt";function RX(){this.g=null,this.h=[]}function KL(i,u){return re(function(f){if(f.g==1)return i.g?I(f,new Promise(function(v){return i.h.push(v)}),2):f.A(2);i.g=u,N(f)})}RX.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function $t(i,u,f){u=u===void 0?null:u,Yr.call(this);var v=this;this.m=U6,this.h=null,this.xe=u,this.$=!1,this.Ie=new Ie,this.ye=new Ie,this.j=new Ie,this.ac=new Ie,this.yc=new Ie,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new RX,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=sd(this),this.Zf=QY(),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=jX(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new vr(function(){return re(function(b){if(b.g==1)return v.qa?I(b,v.fc(v.Jd,!0),3):b.A(0);if(b.g!=4)return I(b,v.load(v.qa),4);v.ag?v.Jd.pause():v.Jd.play(),v.qa=null,v.ag=!1,N(b)})}),H6&&(this.C=H6(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(b){var w;return re(function(A){if(A.g==1)return v.$f.stop(),v.qa?A.A(0):(v.Jd=v.h,v.ag=v.be(),w=b.saveLivePosition||!1,I(A,v.Uh(!0,w),3));v.qa=A.h,N(A)})}),this.yc.D(this.C,"ad-content-resume-requested",function(b){if(b=b.offset||0,v.qa){var w=v.qa;w.m&&b&&(typeof w.m=="number"?w.m+=b:w.m.setTime(w.m.getTime()+b*1e3))}v.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return re(function(b){return v.h||!v.Jd?b.A(0):I(b,v.fc(v.Jd,!0),0)})})),W6&&(this.Da=W6(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){t7(v),v.fh()}),this.De=new vr(function(){for(var b=Date.now()/1e3,w=!1,A=!0,R=_(v.i.variants),B=R.next();!B.done;B=R.next())B=B.value,B.disabledUntilTime>0&&B.disabledUntilTime<=b&&(B.disabledUntilTime=0,w=!0),B.disabledUntilTime>0&&(A=!1);A&&v.De.stop(),w&&fp(v,!1,void 0,!1,!1)}),this.Ta=null,i&&(tn("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,Yr);function N6(i){i.T!=null&&(tu(i.T),i.T.release(),i.T=null)}function ake(i,u,f){f||u.lcevc.enabled?(N6(i),i.T==null&&(i.T=new Wo(i.h,i.Kh,u.lcevc,f),i.H&&(i.H.H=i.T))):N6(i)}function yi(i,u){return new wn(i,u)}l=$t.prototype,l.destroy=function(){var i=this,u;return re(function(f){switch(f.g){case 1:return i.m==Sc?f.return():(N6(i),u=i.detach(),i.m=Sc,I(f,u,2));case 2:return I(f,i.ng(),3);case 3:if(i.Ie&&(i.Ie.release(),i.Ie=null),i.ye&&(i.ye.release(),i.ye=null),i.j&&(i.j.release(),i.j=null),i.ac&&(i.ac.release(),i.ac=null),i.yc&&(i.yc.release(),i.yc=null),i.Ce=null,i.g=null,i.B=null,i.xe=null,i.M=null,i.wa=null,!i.J){f.A(4);break}return I(f,i.J.destroy(),5);case 5:i.J=null;case 4:i.o&&(i.o.release(),i.o=null),i.Da&&(i.Da.destroy(),i.Da=null),Yr.prototype.release.call(i),N(f)}})};function MX(i,u){uZ.set(i,u)}function Dg(i,u){i.dispatchEvent(yi("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var f=this,v,b,w;return re(function(A){switch(A.g){case 1:if(f.m==Sc)throw new Ee(2,7,7e3);if(v=f.h&&f.h==i,!f.h||f.h==i){A.A(2);break}return I(A,f.detach(),2);case 2:return I(A,qL(f,"attach"),4);case 4:if(A.h)return A.return();if(F(A,5,6),v||(Dg(f,"attach"),b=function(){var R=n7(f,!1);R&&Pg(f,R)},f.ye.D(i,"error",b),f.h=i,f.M&&f.M.setMediaElement(i)),Be(),!u||!Wd()||f.H){A.A(6);break}return I(A,YL(f),6);case 6:Z(A),f.ma.release(),oe(A,0);break;case 5:return w=G(A),I(A,f.detach(),10);case 10:throw w}})},l.jj=function(i){this.Kh=i},l.detach=function(i){i=i===void 0?!1:i;var u=this;return re(function(f){if(f.g==1){if(u.m==Sc)throw new Ee(2,7,7e3);return I(f,u.Bc(!1,i),2)}if(f.g!=3)return I(f,qL(u,"detach"),3);if(f.h)return f.return();try{u.h&&(u.ye.Pa(),u.h=null),Dg(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}N(f)})};function qL(i,u){var f;return re(function(v){return v.g==1?(f=++i.Je,I(v,KL(i.ma,u),2)):f!=i.Je?(i.ma.release(),v.return(!0)):v.return(!1)})}l.Bc=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,v,b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le;return re(function(qe){switch(qe.g){case 1:return f.m!=Sc&&(f.m=U6),I(qe,qL(f,"unload"),2);case 2:return qe.h?qe.return():(W(qe,3),f.Sa=!1,Dg(f,"unload"),N6(f),v=f.ze.map(function(ot){return ot()}),f.ze=[],I(qe,Promise.all(v),5));case 5:if(f.dispatchEvent(yi("unloading")),f.we&&(f.we.release(),f.we=null),f.ya&&(f.ya.release(),f.ya=null),f.ib&&(f.ib.release(),f.ib=null),f.h&&(f.j.Pa(),f.ac.Pa()),f.De.stop(),f.ob&&(f.ob.release(),f.ob=null),f.Fa&&(f.Fa.stop(),f.Fa=null),!f.I){qe.A(6);break}return I(qe,f.I.stop(),7);case 7:f.I=null,f.xc=null;case 6:if(f.o&&f.o.stop(),!f.l){qe.A(8);break}return I(qe,f.l.destroy(),9);case 9:f.l=null;case 8:if(f.N&&(f.N.release(),f.N=null),f.G&&(f.G.release(),f.G=null),o.shakaMediaKeysPolyfill!=="webkit"||!f.F){qe.A(10);break}return I(qe,f.F.destroy(),11);case 11:f.F=null;case 10:if(!f.H){qe.A(12);break}return I(qe,f.H.destroy(),13);case 13:f.H=null;case 12:if(f.C&&!u&&f.C.onAssetUnload(),f.qa&&!u&&(f.qa.destroy(),f.qa=null),u||f.$f.stop(),f.M&&V6e(f.M),f.wa&&(f.wa.g=null),!f.u){qe.A(14);break}return I(qe,f.u.destroy(),15);case 15:f.u=null;case 14:if(f.$=!1,f.h){for(b=_(f.Yf),w=b.next();!w.done;w=b.next())A=w.value,A.src.startsWith("blob:")&&URL.revokeObjectURL(A.src),A.remove();f.Yf=[],i6(f.h)&&f.h.load()}if(!f.F){qe.A(16);break}return I(qe,f.F.destroy(),17);case 17:f.F=null;case 16:if(f.Ta&&f.X!=f.Ta.rd()&&(f.Ta.j||f.Ta.destroy(),f.Ta=null),f.X=null,f.aa=null,f.R=null,f.i){for(R=_(f.i.variants),B=R.next();!B.done;B=R.next())for(V=B.value,K=_([V.audio,V.video]),Y=K.next();!Y.done;Y=K.next())(se=Y.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&&(jS.clear(),ag.clear()),f.i=null,f.B=new A6,f.Jh=null,f.Zb=null,f.V=null,f.Ke=-1,f.Ge=[],ye=_(f.uc.values()),$e=ye.next();!$e.done;$e=ye.next())Le=$e.value,Le.stop();f.uc.clear(),f.kb=[],f.Xf=-1,f.J&&f.J.Qh(),s2(f);case 3:Z(qe),f.ma.release(),oe(qe,4);break;case 4:if(Be(),i&&Wd()&&!f.H&&f.h)return I(qe,YL(f),0);qe.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,f){u=u===void 0?null:u;var v=this,b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e;return re(function(Le){switch(Le.g){case 1:if(v.m==Sc)throw new Ee(2,7,7e3);if(b=null,w="",i instanceof Vu){if(i.j)throw new Ee(2,7,7006);b=i,w=b.rd()||""}else w=i||"";return I(Le,KL(v.ma,"load"),2);case 2:if(v.ma.release(),!v.h)throw new Ee(2,7,7002);if(!v.X){Le.A(3);break}return v.X=w,I(Le,v.Bc(!1),3);case 3:if(A=++v.Je,R=function(){return re(function(qe){if(qe.g==1)return v.Je==A?qe.A(0):b?I(qe,b.destroy(),3):qe.A(3);throw new Ee(2,7,7e3)})},B=function(qe,ot){return re(function(yt){switch(yt.g){case 1:return W(yt,2),I(yt,KL(v.ma,ot),4);case 4:return I(yt,R(),5);case 5:return I(yt,qe(),6);case 6:return I(yt,R(),7);case 7:b&&v.g&&(b.g=v.g);case 2:Z(yt),v.ma.release(),oe(yt,0)}})},F(Le,5,6),u==null&&b&&(u=b.getStartTime()),v.O=u,v.Sa=!1,v.dispatchEvent(yi("loading")),b){f=b.V,Le.A(8);break}if(f){Le.A(8);break}return I(Le,B(function(){return re(function(qe){if(qe.g==1)return I(qe,NX(v,w),2);f=qe.h,N(qe)})},"guessMimeType_"),8);case 8:if(V=!!b,b){nX(b,v),v.B=b.getStats(),Le.A(11);break}return I(Le,$X(v,w,u,f,!0,v.g),12);case 12:(b=Le.h)?(b.F=!1,nX(b,v),v.B=b.getStats(),b.start(),b.B.catch(function(){})):v.B=new A6;case 11:return K=!b,Y=Date.now()/1e3,v.B=b?b.getStats():new A6,v.X=w,v.aa=f||null,s2(v),se=function(){var qe=v.h?v.h.buffered:null;return{start:eY(qe)||0,end:r6(qe)||0}},v.ya=new K3(se),v.ya.addEventListener("regionadd",function(qe){XL(v,qe.region,"metadataadded")}),K?I(Le,B(function(){return re(function(qe){return I(qe,dke(v,f),0)})},"initializeSrcEqualsDrmInner_"),23):(v.ib=new K3(se),I(Le,B(function(){return re(function(qe){if(qe.g==1)return I(qe,Promise.race([b.ma,b.B]),2);v.xc=b.H;var ot=b;ot.qa=!0,v.I=ot.l,v.i=b.Hg(),N(qe)})},"waitForFinish"),15));case 15:if(v.H){Le.A(16);break}return I(Le,B(function(){return re(function(qe){return I(qe,YL(v),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return v.i&&v.i.textStreams.length&&(v.u.enableTextDisplayer?v.u.enableTextDisplayer():tn("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),I(Le,B(function(){return re(function(qe){return I(qe,b.B,0)})},"waitForFinish"),18);case 18:if(v.g=b.getConfiguration(),v.Ae=b.G,v.I&&v.I.setMediaElement&&v.h&&v.I.setMediaElement(v.h),v.we=E6e(b),v.ue=b.Fa,(ce=b.C)&&(v.K=ce),V&&v.h&&v.h.nodeName==="AUDIO"&&(lke(v),v.configure("manifest.disableVideo",!0)),b.i){Le.A(19);break}return I(Le,B(function(){return re(function(qe){return I(qe,rX(b,v.h),0)})},"drmEngine_.init"),19);case 19:return v.F=T6e(b),I(Le,B(function(){return re(function(qe){return I(qe,v.F.fc(v.h),0)})},"drmEngine_.attach"),21);case 21:return pe=v.g.abrFactory,v.o&&v.Ce==pe||(v.Ce=pe,v.o&&v.o.release(),v.o=pe(),typeof v.o.setMediaElement!="function"&&(tn("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),v.o.setMediaElement=function(){}),typeof v.o.setCmsdManager!="function"&&(tn("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),v.o.setCmsdManager=function(){}),typeof v.o.trySuggestStreams!="function"&&(tn("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),v.o.trySuggestStreams=function(){}),v.o.configure(v.g.abr)),me=A6e(b),ye=b.o,I(Le,B(function(){return re(function(qe){return I(qe,cke(v,Y,ye,me),0)})},"loadInner_"),22);case 22:w6e(b),v.aa&&Be().aj()&&E3(v.aa)&&gSe(v.H,v.X,v.aa),Le.A(14);break;case 23:return I(Le,B(function(){return re(function(qe){return I(qe,fke(v,Y,f),0)})},"srcEqualsInner_"),14);case 14:v.dispatchEvent(yi("loaded"));case 6:if(Z(Le),!b){Le.A(25);break}return I(Le,b.destroy(),25);case 25:v.Ta=null,oe(Le,0);break;case 5:if($e=G(Le),!$e||$e.code==7e3){Le.A(27);break}return I(Le,v.Bc(!1),27);case 27:throw $e}})};function lke(i){for(var u=_(i.i.variants),f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.closeSegmentIndex(),f.video=null),f.bandwidth=f.audio&&f.audio.bandwidth?f.audio.bandwidth:0;i.i.variants=i.i.variants.filter(function(v){return v.audio})}l.dj=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,v;return re(function(b){return b.g==1?I(b,OX(f),2):b.g!=3?(v=b.h,I(b,f.Bc(i,u),3)):b.return(v)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var f=this,v;return re(function(b){return b.g==1?I(b,OX(f,u),2):b.g!=3?(v=b.h,I(b,f.detach(i),3)):b.return(v)})};function OX(i,u){u=u===void 0?!1:u;var f,v,b;return re(function(w){if(w.g==1)return f=null,i.i&&i.I&&i.xc&&i.X&&i.g?(v=i.h.currentTime,i.W()&&!u&&(v=null),I(w,BX(i,i.X,v,i.aa,i.g,!0,!1),3)):w.A(2);if(w.g!=2){f=w.h,i.Ee.push(f),i.I&&i.I.setMediaElement&&i.I.setMediaElement(null),(b=i.l?i.l.o:null)&&(f.o=b);var A=f,R=i.I,B=i.xc;A.h=i.i,A.l=R,A.H=B,f.C=i.K,f.start(),i.i=null,i.I=null,i.xc=null,i.o=null,i.Ce=null}return w.return(f)})}l.preload=function(i,u,f,v){u=u===void 0?null:u;var b=this,w,A;return re(function(R){return R.g==1?(w=sd(b),Zf(w,v||b.g,sd(b)),I(R,$X(b,i,u,f,!1,w),2)):((A=R.h)?A.start():Pg(b,new Ee(2,7,7005)),R.return(A))})},l.ng=function(){var i=this,u,f,v,b;return re(function(w){for(u=[],f=_(i.Ee),v=f.next();!v.done;v=f.next())b=v.value,b.j||u.push(b.destroy());return i.Ee=[],I(w,Promise.all(u),0)})};function $X(i,u,f,v,b,w){b=b===void 0?!1:b;var A,R,B;return re(function(V){return V.g==1?v?V.A(2):I(V,NX(i,u),3):(V.g!=2&&(v=V.h),uke(i,v)?V.return(null):(A=w||i.g,R=!1,b&&i.h&&i.h.nodeName==="AUDIO"&&(R=!0),B=BX(i,u,f,v||null,A,!b,R),B=b?B.then(function(K){return K.F=!1,K}):B.then(function(K){return i.Ee.push(K),K}),V.return(B)))})}function BX(i,u,f,v,b,w,A){w=w===void 0?!0:w,A=A===void 0?!1:A;var R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe,ot,yt;return re(function(tt){return tt.g==1?(R=null,B=dn(b),A&&(B.manifest.disableVideo=!0),V=function(){return R.R&&R.j?null:R},K=function(){return V()?V().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?tt.A(2):(Y=Be(),I(tt,Y.jc(),3))):(tt.g!=2&&(se=tt.h,i.xa.width=se.width,i.xa.height=se.height),ce=new GI(B,i.xa,null),pe={networkingEngine:i.J,filter:function(Ge){var dt,gt;return re(function(vt){if(vt.g==1)return I(vt,Nq(ce,Ge),2);if(vt.g!=4)return dt=vt.h,dt?(gt=yi("trackschanged"),I(vt,Promise.resolve(),4)):vt.A(0);R.dispatchEvent(gt),N(vt)})},makeTextStreamsForClosedCaptions:function(Ge){return wke(i,Ge)},onTimelineRegionAdded:function(Ge){vL(R.I,Ge)},onEvent:function(Ge){return R.dispatchEvent(Ge)},onError:function(Ge){return R.onError(Ge)},isLowLatencyMode:function(){return K().streaming.lowLatencyMode},updateDuration:function(){i.l&&R.R&&i.l.updateDuration()},newDrmInfo:function(Ge){var dt=R.i,gt=dt?dt.g:null;gt&&dt.B&&Vq(ce,gt.keySystem,Ge)},onManifestUpdated:function(){var Ge=new Map().set("isLive",i.W());R.dispatchEvent(yi("manifestupdated",Ge)),t2(R,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(Ge,dt,gt,vt){var bt=Ge;(Ge=="com.apple.hls.interstitial"||Ge=="com.apple.hls.overlay")&&(bt="com.apple.quicktime.HLS",Ge={startTime:dt,endTime:gt,values:vt},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,Ge)),vt=_(vt),Ge=vt.next();for(var _t={};!Ge.done;_t={Yg:void 0},Ge=vt.next())_t.Yg=Ge.value,_t.Yg.name!="ID"&&t2(R,!1,(function(Bt){return function(){ZL(i,dt,gt,bt,Bt.Yg)}})(_t))},disableStream:function(Ge){return i.disableStream(Ge,i.g.streaming.maxDisabledTime)},addFont:function(Ge,dt){return i.addFont(Ge,dt)}},me=new K3(function(){return i.Qa()}),me.addEventListener("regionadd",function(Ge){var dt=Ge.region;u2(i,"timelineregionadded",dt,R),t2(R,!1,function(){i.C&&(i.C.onDashTimedMetadata(dt),i.C.onDASHInterstitialMetadata(i,i.h,dt))})}),ye=null,B.streaming.observeQualityChanges&&(ye=new d6(function(){return i.Fc()}),ye.addEventListener("qualitychange",function(Ge){oZ(i,Ge.quality,Ge.position)}),ye.addEventListener("audiotrackchange",function(Ge){oZ(i,Ge.quality,Ge.position,!0)})),$e=!0,Le={tc:i.J,onError:function(Ge){return R.onError(Ge)},vf:function(Ge){t2(R,!0,function(){i.F&&Tke(i,Ge)})},onExpirationUpdated:function(Ge,dt){var gt=yi("expirationupdated");R.dispatchEvent(gt),(gt=R.l)&>.onExpirationUpdated&>.onExpirationUpdated(Ge,dt)},onEvent:function(Ge){R.dispatchEvent(Ge),Ge.type=="drmsessionupdate"&&$e&&($e=!1,Ge=Date.now()/1e3-R.ya,(i.B||R.getStats()).m=Ge,i.T&&tu(i.T))}},qe=jX(i,V),yq(i.J,qe),ot=function(){return i.md(Le)},yt={config:B,wk:pe,Hk:me,Gk:ye,md:ot,vk:ce,networkingEngine:qe,ij:w},R=new Vu(u,v,f,yt),tt.return(R))})}function NX(i,u){var f,v,b,w;return re(function(A){return A.g==1?(f=i.g.manifest.retryParameters,I(A,iv(u,i.J,f),2)):(v=A.h,v=="application/x-mpegurl"&&(b=Be(),b.Ha()==="WEBKIT"&&(v="application/vnd.apple.mpegurl")),v=="video/quicktime"&&(w=Be(),w.Ha()==="CHROMIUM"&&(v="video/mp4")),A.return(v))})}function uke(i,u){if(!Wd(Be()))return!0;if(u){if((i.h||Z0()).canPlayType(u)=="")return!1;if(!Wd(Be())||!pg.has(u))return!0;if(E3(u))return Be().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 F6(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):tn("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||tn("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&&ESe(i.H,i.u),i.Jh=f,i.l&&ZSe(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function YL(i){var u,f,v;return re(function(b){if(b.g==1)return Be(),Dg(i,"media-source"),i.g.mediaSource.useSourceElements&&i6(i.h),F6(i),u=_ke(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,A,R){w=_(w);for(var B=w.next();!B.done;B=w.next())if(B=B.value,B.data&&typeof B.cueTime=="number"&&B.frames){var V=B.cueTime+A,K=R;K&&V>K&&(K=V);for(var Y=_(B.frames),se=Y.next();!se.done;se=Y.next())ZL(i,V,K,"org.id3",se.value);i.C&&i.C.onHlsTimedMetadata(B,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,v=f.segmentRelativeVttTiming,u.Fa=v,I(b,u.M,2);i.H=u,N(b)})}function FX(i,u,f){function v(){return QL(i)}if(i.j.D(u,"playing",v),i.j.D(u,"pause",v),i.j.D(u,"ended",v),i.j.D(u,"ratechange",function(){var w=i.h.playbackRate;w!=0&&(i.N&&(i.N.set(w),i.m==Us&&i.o.playbackRateChanged(w),XX(i,w)),w=yi("ratechange"),i.dispatchEvent(w))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&Qf(i),La(i)}),i.j.D(u.remote,"connecting",function(){return La(i)}),i.j.D(u.remote,"disconnect",function(){return re(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?I(w,b6(i.l),3):w.A(2);w.g!=2&&Qf(i),La(i),N(w)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return La(i)}),i.j.D(u.audioTracks,"removetrack",function(){return La(i)}),i.j.D(u.audioTracks,"change",function(){return La(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return La(i)}),i.j.D(u.videoTracks,"removetrack",function(){return La(i)}),i.j.D(u.videoTracks,"change",function(){return La(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&F6(i,!0)}),u.textTracks){var b=function(){i.m===Ml&&i.u instanceof ts&&Qf(i),La(i)};i.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":vke(i,w);break;case"chapters":mke(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 cke(i,u,f,v){var b,w,A,R,B,V,K,Y,se,ce,pe,me,ye,$e,Le,qe,ot,yt,tt,Ge,dt,gt,vt,bt,_t,Bt,Ft,At;return re(function(Dt){switch(Dt.g){case 1:for(Dg(i,"load"),b=i.h,i.N=new G3({Ye:function(){return b.playbackRate},Tc:function(){return b.defaultPlaybackRate},ph:function(Kt){b.playbackRate=Kt},ui:function(Kt){b.currentTime+=Kt}}),FX(i,b,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var Kt=i.K.getConfiguration();Kt.hdrLevel=="AUTO"?ov(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(Kt.hdrLevel="AUTO",i.K.configure(Kt),ov(i))}}),w=!1,A=_(i.i.variants),R=A.next();!R.done;R=A.next())B=R.value,(V=B.video&&B.video.dependencyStream)&&(w=Il(V));ake(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(Kt,an,Zn){i.i&&i.l&&Kt!=i.l.o&&a2(i,Kt,!0,an===void 0?!1:an,Zn===void 0?0:Zn)}),i.o.setMediaElement(b),i.o.setCmsdManager(i.wa),i.l=Ske(i),i.l.configure(i.g.streaming),i.m=Us,i.dispatchEvent(yi("streaming")),K=f;case 2:for((se=i.l.o)||K||(K=JX(i,!0)),ce=[],Y=se||K,pe=_([Y.video,Y.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)){Dt.A(4);break}return I(Dt,Promise.all(ce),4);case 4:if(!Y||Y.disabledUntilTime!=0){Dt.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(Y),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&&(z6e(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),U6e(i.M,u*1e3)),r7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),qSe(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(yi("canupdatestarttime")),$e=function(Kt){i.G=gke(i,Kt),i.ob=yke(i,Kt),VX(i,b,!1)},i.g.streaming.startAtSegmentBoundary||(Le=i.O,Le==null&&i.i.startTime&&(Le=i.i.startTime),$e(Le)),se){Dt.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){Dt.A(8);break}return qe=i.i.presentationTimeline,i.O instanceof Date&&(yt=qe.m||qe.i,tt=i.O.getTime()/1e3-yt,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),Ge=qe.Xb(),dt=qe.Gb(),otdt&&(ot=dt),I(Dt,Eke(K,ot),9);case 9:gt=Dt.h,$e(gt);case 8:a2(i,K,!0,!1,0);case 7:return i.G.ready(),vt=i.Kc().find(function(Kt){return Kt.active}),vt||((bt=sg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&PL(i.B.h,bt,!0),K&&(bt?(lq(K.audio,bt,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),rZ(i)),bt&&(i.g.streaming.alwaysStreamText||i.Og())&&(p6(i.l,bt),l2(i))),I(Dt,i.l.start(v),10);case 10:i.g.abr.enabled&&(i.o.enable(),iZ(i)),La(i),i.i.variants.some(function(Kt){return Kt.primary}),((_t=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&(Bt=function(){return ZX(i)},i.j.D(b,"timeupdate",Bt)),_t||(Ft=function(){return z6(i)},i.j.D(b,"timeupdate",Ft),z6(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(At=function(){var Kt;return re(function(an){if(an.g==1)return Kt=i.Qa().end-i.h.currentTime,isNaN(Kt)||!(Kt<=i.g.streaming.preloadNextUrlWindow)?an.A(0):(i.j.Ma(b,"timeupdate",At),I(an,i.preload(i.i.nextUrl),4));i.Ta=an.h,N(an)})},i.j.D(b,"timeupdate",At)),i.j.D(b,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(_t),N(Dt)}})}function dke(i,u){var f,v,b;return re(function(w){return w.g==1?(f=Date.now()/1e3,v=!0,i.F=i.md({tc:i.J,onError:function(A){Pg(i,A)},vf:function(){},onExpirationUpdated:function(){var A=yi("expirationupdated");i.dispatchEvent(A)},onEvent:function(A){i.dispatchEvent(A),A.type=="drmsessionupdate"&&v&&(v=!1,i.B.m=Date.now()/1e3-f)}}),i.F.configure(i.g.drm),b=uq([u]),i.F.O=!0,I(w,Eq(i.F,[b],[]),2)):I(w,i.F.fc(i.h),0)})}function fke(i,u,f){var v,b,w,A,R,B,V,K,Y,se,ce,pe;return re(function(me){switch(me.g){case 1:if(Dg(i,"src-equals"),v=i.h,i.G=new TY(v),b=!1,i.ze.push(function(){b=!0}),i.dispatchEvent(yi("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=bke(i,i.O||0),i.N=new G3({Ye:function(){return v.playbackRate},Tc:function(){return v.defaultPlaybackRate},ph:function(ye){v.playbackRate=ye},ui:function(ye){v.currentTime+=ye}}),VX(i,v,!0),v.textTracks&&(F6(i),w=function(ye){if(!(i.u instanceof ts)){var $e=j6(i).find(function(Le){return Le.mode!=="disabled"});$e&&($e.mode=ye?"showing":"hidden"),i.u instanceof Qs&&($e=kke(i))&&($e.mode=!ye&&i.u.isTextVisible()?"showing":"hidden")}},i.j.D(v,"enterpictureinpicture",function(){return w(!0)}),i.j.D(v,"leavepictureinpicture",function(){return w(!1)}),v.remote?(i.j.D(v.remote,"connect",function(){return w(!1)}),i.j.D(v.remote,"connecting",function(){return w(!1)}),i.j.D(v.remote,"disconnect",function(){return w(!1)})):"webkitCurrentPlaybackTargetIsWireless"in v&&i.j.D(v,"webkitcurrentplaybacktargetiswirelesschanged",function(){return w(!1)}),A=v,(A.webkitPresentationMode||A.webkitSupportsFullscreen)&&i.j.D(A,"webkitpresentationmodechanged",function(){A.webkitPresentationMode?w(A.webkitPresentationMode!=="inline"):A.webkitSupportsFullscreen&&w(A.webkitDisplayingFullscreen)})),FX(i,v,u),R=H6e(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 I(me,i.H.destroy(),3);case 3:i.H=null;case 2:return i6(v),v.src=R,B=Be(),B.Ua()=="TV"&&v.load(),v.preload!="none"&&!v.autoplay&&E3(f)&&B.Ha()==="WEBKIT"&&v.load(),i.m=Ml,i.dispatchEvent(yi("streaming")),V=new ui,Cg(v,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&E3(i.aa)||V.resolve()}),K=function(){return new Promise(function(ye){var $e=new vr(ye);i.j.D(v.textTracks,"change",function(){return $e.ia(.5)}),$e.ia(.5)})},Cg(v,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ye,$e,Le,qe,ot;return re(function(yt){if(yt.g==1)return I(yt,K(),2);if(b)return yt.return();if(hke(i),ye=j6(i),ye.some(function(tt){return tt.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof ts))for(ye.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():tn("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),$e=!1,Le=_(ye),qe=Le.next();!qe.done;qe=Le.next())ot=qe.value,ot.mode!=="disabled"&&($e?(ot.mode="disabled",rt("Found more than one enabled text track, disabling it",ot)):(KX(i,ot),$e=!0));pke(i),i.aa&&E3(i.aa)&&V.resolve(),N(yt)})}),v.error?V.reject(n7(i)):v.preload=="none"&&(rt('With