var G4e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oHt=G4e((af,$l)=>{(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 va(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const mi={},Km=[],ha=()=>{},Fm=()=>!1,kv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),QI=e=>e.startsWith("onUpdate:"),fi=Object.assign,e3=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},K4e=Object.prototype.hasOwnProperty,$i=(e,t)=>K4e.call(e,t),Fn=Array.isArray,qm=e=>Og(e)==="[object Map]",wv=e=>Og(e)==="[object Set]",kF=e=>Og(e)==="[object Date]",Pue=e=>Og(e)==="[object RegExp]",yr=e=>typeof e=="function",Cr=e=>typeof e=="string",Vl=e=>typeof e=="symbol",Fi=e=>e!==null&&typeof e=="object",t3=e=>(Fi(e)||yr(e))&&yr(e.then)&&yr(e.catch),bU=Object.prototype.toString,Og=e=>bU.call(e),Rue=e=>Og(e).slice(8,-1),_k=e=>Og(e)==="[object Object]",n3=e=>Cr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_h=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mue=va("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),r3=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},q4e=/-\w/g,xo=r3(e=>e.replace(q4e,t=>t.slice(1).toUpperCase())),Y4e=/\B([A-Z])/g,cl=r3(e=>e.replace(Y4e,"-$1").toLowerCase()),Cv=r3(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ym=r3(e=>e?`on${Cv(e)}`:""),ll=(e,t)=>!Object.is(e,t),Xm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},C2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E2=e=>{const t=Cr(e)?Number(e):NaN;return isNaN(t)?e:t};let Aee;const Sk=()=>Aee||(Aee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),X4e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Z4e(e){return X4e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function J4e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const Q4e={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"},eAe={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"},tAe={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"},nAe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},rAe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},iAe="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",SU=va(iAe),oAe=SU,Iee=2;function Due(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-Iee;c<=l+Iee||n>a;c++){if(c<0||c>=r.length)continue;const f=c+1;s.push(`${f}${" ".repeat(Math.max(3-String(f).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 je(e){if(Fn(e)){const t={};for(let n=0;n{if(n){const r=n.split(aAe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function uAe(e){if(!e)return"";if(Cr(e))return e;let t="";for(const n in e){const r=e[n];if(Cr(r)||typeof r=="number"){const o=n.startsWith("--")?n:cl(n);t+=`${o}:${r};`}}return t}function se(e){let t="";if(Cr(e))t=e;else if(Fn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,n8={};function mAe(e){if(n8.hasOwnProperty(e))return n8[e];const t=vAe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),n8[e]=!t}const gAe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},yAe=va("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"),bAe=va("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"),_Ae=va("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 SAe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const kAe=/["'&<>]/;function wAe(e){const t=""+e,n=kAe.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function xAe(e,t){return e.replace(Vue,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function TAe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rLh(n,t))}const Uue=e=>!!(e&&e.__v_isRef===!0),Ne=e=>Cr(e)?e:e==null?"":Fn(e)||Fi(e)&&(e.toString===bU||!yr(e.toString))?Uue(e)?Ne(e.value):JSON.stringify(e,zue,2):String(e),zue=(e,t)=>Uue(t)?zue(e,t.value):qm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[r8(r,a)+" =>"]=o,n),{})}:wv(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>r8(n))}:Vl(t)?r8(t):Fi(t)&&!Fn(t)&&!_k(t)?String(t):t,r8=(e,t="")=>{var n;return Vl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Hue(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const AAe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Km,EMPTY_OBJ:mi,NO:Fm,NOOP:ha,PatchFlagNames:eAe,PatchFlags:Q4e,ShapeFlags:tAe,SlotFlags:nAe,camelize:xo,capitalize:Cv,cssVarNameEscapeSymbolsRE:Vue,def:_U,escapeHtml:wAe,escapeHtmlComment:EAe,extend:fi,genCacheKey:J4e,genPropsAccessExp:Z4e,generateCodeFrame:Due,getEscapedCssVarName:xAe,getGlobalThis:Sk,hasChanged:ll,hasOwn:$i,hyphenate:cl,includeBooleanAttr:wU,invokeArrayFns:Xm,isArray:Fn,isBooleanAttr:pAe,isBuiltInDirective:Mue,isDate:kF,isFunction:yr,isGloballyAllowed:SU,isGloballyWhitelisted:oAe,isHTMLTag:Oue,isIntegerKey:n3,isKnownHtmlAttr:yAe,isKnownMathMLAttr:_Ae,isKnownSvgAttr:bAe,isMap:qm,isMathMLTag:Nue,isModelListener:QI,isObject:Fi,isOn:kv,isPlainObject:_k,isPromise:t3,isRegExp:Pue,isRenderableAttrValue:SAe,isReservedProp:_h,isSSRSafeAttrName:mAe,isSVGTag:$ue,isSet:wv,isSpecialBooleanAttr:jue,isString:Cr,isSymbol:Vl,isVoidTag:Bue,looseEqual:Lh,looseIndexOf:kk,looseToNumber:C2,makeMap:va,normalizeClass:se,normalizeCssVarValue:Hue,normalizeProps:Ni,normalizeStyle:je,objectToString:bU,parseStringStyle:kU,propsToAttrMap:gAe,remove:e3,slotFlagsText:rAe,stringifyStyle:uAe,toDisplayString:Ne,toHandlerKey:Ym,toNumber:E2,toRawType:Rue,toTypeString:Og},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let rl;class CU{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=rl,!t&&rl&&(this.index=(rl.scopes||(rl.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&&(rl=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(LS){let t=LS;for(LS=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;IS;){let t=IS;for(IS=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 Kue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function que(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),IU(r),IAe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function wF(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yue(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yue(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===T2)||(e.globalVersion=T2,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!wF(e))))return;e.flags|=2;const t=e.dep,n=wo,r=gd;wo=e,gd=!0;try{Kue(e);const o=e.fn(e._value);(t.version===0||ll(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{wo=n,gd=r,que(e),e.flags&=-3}}function IU(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)IU(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function IAe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function LAe(e,t){e.effect instanceof x2&&(e=e.effect.fn);const n=new x2(e);t&&fi(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function PAe(e){e.effect.stop()}let gd=!0;const Xue=[];function Ph(){Xue.push(gd),gd=!1}function Rh(){const e=Xue.pop();gd=e===void 0?!0:e}function Lee(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=wo;wo=void 0;try{t()}finally{wo=n}}}let T2=0,RAe=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 o3{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(!wo||!gd||wo===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==wo)n=this.activeLink=new RAe(wo,this),wo.deps?(n.prevDep=wo.depsTail,wo.depsTail.nextDep=n,wo.depsTail=n):wo.deps=wo.depsTail=n,Zue(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=wo.depsTail,n.nextDep=void 0,wo.depsTail.nextDep=n,wo.depsTail=n,wo.deps===n&&(wo.deps=r)}return n}trigger(t){this.version++,T2++,this.notify(t)}notify(t){TU();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{AU()}}}function Zue(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)Zue(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yA=new WeakMap,Zm=Symbol(""),CF=Symbol(""),A2=Symbol("");function ul(e,t,n){if(gd&&wo){let r=yA.get(e);r||yA.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new o3),o.map=r,o.key=n),o.track()}}function fh(e,t,n,r,o,a){const s=yA.get(e);if(!s){T2++;return}const l=c=>{c&&c.trigger()};if(TU(),t==="clear")s.forEach(l);else{const c=Fn(e),f=c&&n3(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,m)=>{(m==="length"||m===A2||!Vl(m)&&m>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),f&&l(s.get(A2)),t){case"add":c?f&&l(s.get("length")):(l(s.get(Zm)),qm(e)&&l(s.get(CF)));break;case"delete":c||(l(s.get(Zm)),qm(e)&&l(s.get(CF)));break;case"set":qm(e)&&l(s.get(Zm));break}}AU()}function MAe(e,t){const n=yA.get(e);return n&&n.get(t)}function G0(e){const t=Ti(e);return t===e?t:(ul(t,"iterate",A2),Qu(e)?t:t.map(La))}function s3(e){return ul(e=Ti(e),"iterate",A2),e}const DAe={__proto__:null,[Symbol.iterator](){return o8(this,Symbol.iterator,La)},concat(...e){return G0(this).concat(...e.map(t=>Fn(t)?G0(t):t))},entries(){return o8(this,"entries",e=>(e[1]=La(e[1]),e))},every(e,t){return Zf(this,"every",e,t,void 0,arguments)},filter(e,t){return Zf(this,"filter",e,t,n=>n.map(La),arguments)},find(e,t){return Zf(this,"find",e,t,La,arguments)},findIndex(e,t){return Zf(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Zf(this,"findLast",e,t,La,arguments)},findLastIndex(e,t){return Zf(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Zf(this,"forEach",e,t,void 0,arguments)},includes(...e){return s8(this,"includes",e)},indexOf(...e){return s8(this,"indexOf",e)},join(e){return G0(this).join(e)},lastIndexOf(...e){return s8(this,"lastIndexOf",e)},map(e,t){return Zf(this,"map",e,t,void 0,arguments)},pop(){return I_(this,"pop")},push(...e){return I_(this,"push",e)},reduce(e,...t){return Pee(this,"reduce",e,t)},reduceRight(e,...t){return Pee(this,"reduceRight",e,t)},shift(){return I_(this,"shift")},some(e,t){return Zf(this,"some",e,t,void 0,arguments)},splice(...e){return I_(this,"splice",e)},toReversed(){return G0(this).toReversed()},toSorted(e){return G0(this).toSorted(e)},toSpliced(...e){return G0(this).toSpliced(...e)},unshift(...e){return I_(this,"unshift",e)},values(){return o8(this,"values",La)}};function o8(e,t,n){const r=s3(e),o=r[t]();return r!==e&&!Qu(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const OAe=Array.prototype;function Zf(e,t,n,r,o,a){const s=s3(e),l=s!==e&&!Qu(e),c=s[t];if(c!==OAe[t]){const p=c.apply(e,a);return l?La(p):p}let f=n;s!==e&&(l?f=function(p,m){return n.call(this,La(p),m,e)}:n.length>2&&(f=function(p,m){return n.call(this,p,m,e)}));const h=c.call(s,f,r);return l&&o?o(h):h}function Pee(e,t,n,r){const o=s3(e);let a=n;return o!==e&&(Qu(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,La(l),c,e)}),o[t](a,...r)}function s8(e,t,n){const r=Ti(e);ul(r,"iterate",A2);const o=r[t](...n);return(o===-1||o===!1)&&u3(n[0])?(n[0]=Ti(n[0]),r[t](...n)):o}function I_(e,t,n=[]){Ph(),TU();const r=Ti(e)[t].apply(e,n);return AU(),Rh(),r}const $Ae=va("__proto__,__v_isRef,__isVue"),Jue=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vl));function NAe(e){Vl(e)||(e=String(e));const t=Ti(this);return ul(t,"has",e),t.hasOwnProperty(e)}class Que{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?oce:ice:a?rce:nce).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Fn(t);if(!o){let c;if(s&&(c=DAe[n]))return c;if(n==="hasOwnProperty")return NAe}const l=Reflect.get(t,n,To(t)?t:r);if((Vl(n)?Jue.has(n):$Ae(n))||(o||ul(t,"get",n),a))return l;if(To(l)){const c=s&&n3(n)?l:l.value;return o&&Fi(c)?I2(c):c}return Fi(l)?o?I2(l):Wt(l):l}}class ece extends Que{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=Mh(a);if(!Qu(r)&&!Mh(r)&&(a=Ti(a),r=Ti(r)),!Fn(t)&&To(a)&&!To(r))return c||(a.value=r),!0}const s=Fn(t)&&n3(n)?Number(n)e,NE=e=>Reflect.getPrototypeOf(e);function UAe(e,t,n){return function(...r){const o=this.__v_raw,a=Ti(o),s=qm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,f=o[e](...r),h=n?EF:t?bA:La;return!t&&ul(a,"iterate",c?CF:Zm),{next(){const{value:p,done:m}=f.next();return m?{value:p,done:m}:{value:l?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function BE(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zAe(e,t){const n={get(o){const a=this.__v_raw,s=Ti(a),l=Ti(o);e||(ll(o,l)&&ul(s,"get",o),ul(s,"get",l));const{has:c}=NE(s),f=t?EF:e?bA:La;if(c.call(s,o))return f(a.get(o));if(c.call(s,l))return f(a.get(l));a!==s&&a.get(o)},get size(){const o=this.__v_raw;return!e&&ul(Ti(o),"iterate",Zm),o.size},has(o){const a=this.__v_raw,s=Ti(a),l=Ti(o);return e||(ll(o,l)&&ul(s,"has",o),ul(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=Ti(l),f=t?EF:e?bA:La;return!e&&ul(c,"iterate",Zm),l.forEach((h,p)=>o.call(a,f(h),f(p),s))}};return fi(n,e?{add:BE("add"),set:BE("set"),delete:BE("delete"),clear:BE("clear")}:{add(o){!t&&!Qu(o)&&!Mh(o)&&(o=Ti(o));const a=Ti(this);return NE(a).has.call(a,o)||(a.add(o),fh(a,"add",o,o)),this},set(o,a){!t&&!Qu(a)&&!Mh(a)&&(a=Ti(a));const s=Ti(this),{has:l,get:c}=NE(s);let f=l.call(s,o);f||(o=Ti(o),f=l.call(s,o));const h=c.call(s,o);return s.set(o,a),f?ll(a,h)&&fh(s,"set",o,a):fh(s,"add",o,a),this},delete(o){const a=Ti(this),{has:s,get:l}=NE(a);let c=s.call(a,o);c||(o=Ti(o),c=s.call(a,o)),l&&l.call(a,o);const f=a.delete(o);return c&&fh(a,"delete",o,void 0),f},clear(){const o=Ti(this),a=o.size!==0,s=o.clear();return a&&fh(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=UAe(o,e,t)}),n}function a3(e,t){const n=zAe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get($i(n,o)&&o in r?n:r,o,a)}const HAe={get:a3(!1,!1)},WAe={get:a3(!1,!0)},GAe={get:a3(!0,!1)},KAe={get:a3(!0,!0)},nce=new WeakMap,rce=new WeakMap,ice=new WeakMap,oce=new WeakMap;function qAe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function YAe(e){return e.__v_skip||!Object.isExtensible(e)?0:qAe(Rue(e))}function Wt(e){return Mh(e)?e:l3(e,!1,BAe,HAe,nce)}function LU(e){return l3(e,!1,jAe,WAe,rce)}function I2(e){return l3(e,!0,FAe,GAe,ice)}function XAe(e){return l3(e,!0,VAe,KAe,oce)}function l3(e,t,n,r,o){if(!Fi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=YAe(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 lf(e){return Mh(e)?lf(e.__v_raw):!!(e&&e.__v_isReactive)}function Mh(e){return!!(e&&e.__v_isReadonly)}function Qu(e){return!!(e&&e.__v_isShallow)}function u3(e){return e?!!e.__v_raw:!1}function Ti(e){const t=e&&e.__v_raw;return t?Ti(t):e}function c3(e){return!$i(e,"__v_skip")&&Object.isExtensible(e)&&_U(e,"__v_skip",!0),e}const La=e=>Fi(e)?Wt(e):e,bA=e=>Fi(e)?I2(e):e;function To(e){return e?e.__v_isRef===!0:!1}function pe(e){return sce(e,!1)}function Jm(e){return sce(e,!0)}function sce(e,t){return To(e)?e:new ZAe(e,t)}class ZAe{constructor(t,n){this.dep=new o3,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ti(t),this._value=n?t:La(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qu(t)||Mh(t);t=r?t:Ti(t),ll(t,n)&&(this._rawValue=t,this._value=r?t:La(t),this.dep.trigger())}}function JAe(e){e.dep&&e.dep.trigger()}function ot(e){return To(e)?e.value:e}function QAe(e){return yr(e)?e():ot(e)}const eIe={get:(e,t,n)=>t==="__v_raw"?e:ot(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return To(o)&&!To(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function PU(e){return lf(e)?e:new Proxy(e,eIe)}class tIe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new o3,{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 ace(e){return new tIe(e)}function Jt(e){const t=Fn(e)?new Array(e.length):{};for(const n in e)t[n]=lce(e,n);return t}class nIe{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 MAe(Ti(this._object),this._key)}}class rIe{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 ku(e,t,n){return To(e)?e:yr(e)?new rIe(e):Fi(e)&&arguments.length>1?lce(e,t,n):pe(e)}function lce(e,t,n){const r=e[t];return To(r)?r:new nIe(e,t,n)}class iIe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new o3(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=T2-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&wo!==this)return Gue(this,!0),!0}get value(){const t=this.dep.track();return Yue(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function oIe(e,t,n=!1){let r,o;return yr(e)?r=e:(r=e.get,o=e.set),new iIe(r,o,n)}const sIe={GET:"get",HAS:"has",ITERATE:"iterate"},aIe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},FE={},_A=new WeakMap;let $p;function lIe(){return $p}function uce(e,t=!1,n=$p){if(n){let r=_A.get(n);r||_A.set(n,r=[]),r.push(e)}}function uIe(e,t,n=mi){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,f=_=>o?_:Qu(_)||o===!1||o===0?hh(_,1):hh(_);let h,p,m,g,b=!1,S=!1;if(To(e)?(p=()=>e.value,b=Qu(e)):lf(e)?(p=()=>f(e),b=!0):Fn(e)?(S=!0,b=e.some(_=>lf(_)||Qu(_)),p=()=>e.map(_=>{if(To(_))return _.value;if(lf(_))return f(_);if(yr(_))return c?c(_,2):_()})):yr(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Ph();try{m()}finally{Rh()}}const _=$p;$p=h;try{return c?c(e,3,[g]):e(g)}finally{$p=_}}:p=ha,t&&o){const _=p,A=o===!0?1/0:o;p=()=>hh(_(),A)}const k=i3(),C=()=>{h.stop(),k&&k.active&&e3(k.effects,h)};if(a&&t){const _=t;t=(...A)=>{_(...A),C()}}let E=S?new Array(e.length).fill(FE):FE;const x=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const A=h.run();if(o||b||(S?A.some((R,M)=>ll(R,E[M])):ll(A,E))){m&&m();const R=$p;$p=h;try{const M=[A,E===FE?void 0:S&&E[0]===FE?[]:E,g];E=A,c?c(t,3,M):t(...M)}finally{$p=R}}}else h.run()};return l&&l(x),h=new x2(p),h.scheduler=s?()=>s(x,!1):x,g=_=>uce(_,!1,h),m=h.onStop=()=>{const _=_A.get(h);if(_){if(c)c(_,4);else for(const A of _)A();_A.delete(h)}},t?r?x(!0):E=h.run():s?s(x.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function hh(e,t=1/0,n){if(t<=0||!Fi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,To(e))hh(e.value,t,n);else if(Fn(e))for(let r=0;r{hh(r,t,n)});else if(_k(e)){for(const r in e)hh(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&hh(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const cce=[];function cIe(e){cce.push(e)}function dIe(){cce.pop()}function fIe(e,t){}const hIe={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"},pIe={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 V1(e,t,n,r){try{return r?e(...r):e()}catch(o){$g(o,t,n)}}function Bc(e,t,n,r){if(yr(e)){const o=V1(e,t,n,r);return o&&t3(o)&&o.catch(a=>{$g(a,t,n)}),o}if(Fn(e)){const o=[];for(let a=0;a>>1,o=Ml[r],a=P2(o);a=P2(n)?Ml.push(e):Ml.splice(mIe(t),0,e),e.flags|=1,fce()}}function fce(){SA||(SA=dce.then(hce))}function L2(e){Fn(e)?Fy.push(...e):Np&&e.id===-1?Np.splice(_y+1,0,e):e.flags&1||(Fy.push(e),e.flags|=1),fce()}function Ree(e,t,n=Gd+1){for(;nP2(n)-P2(r));if(Fy.length=0,Np){Np.push(...t);return}for(Np=t,_y=0;_ye.id==null?e.flags&2?-1:1/0:e.id;function hce(e){try{for(Gd=0;GdSy.emit(o,...a)),jE=[]):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=>{pce(a,t)}),setTimeout(()=>{Sy||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jE=[])},3e3)):jE=[]}let Oa=null,d3=null;function R2(e){const t=Oa;return Oa=e,d3=e&&e.type.__scopeId||null,t}function gIe(e){d3=e}function yIe(){d3=null}const bIe=e=>de;function de(e,t=Oa,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&O2(-1);const a=R2(t);let s;try{s=e(...o)}finally{R2(a),r._d&&O2(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function hi(e,t){if(Oa===null)return e;const n=Ek(Oa),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,PS=e=>e&&(e.disabled||e.disabled===""),Mee=e=>e&&(e.defer||e.defer===""),Dee=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Oee=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,xF=(e,t)=>{const n=e&&e.to;return Cr(n)?t?t(n):null:n},gce={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,f){const{mc:h,pc:p,pbc:m,o:{insert:g,querySelector:b,createText:S,createComment:k}}=f,C=PS(t.props);let{shapeFlag:E,children:x,dynamicChildren:_}=t;if(e==null){const A=t.el=S(""),R=t.anchor=S("");g(A,n,r),g(R,n,r);const M=(N,L)=>{E&16&&h(x,N,L,o,a,s,l,c)},D=()=>{const N=t.target=xF(t.props,b),L=yce(N,t,S,g);N&&(s!=="svg"&&Dee(N)?s="svg":s!=="mathml"&&Oee(N)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(N),C||(M(N,L),wT(t,!1)))};C&&(M(n,R),wT(t,!0)),Mee(t.props)?(t.el.__isMounted=!1,ta(()=>{D(),delete t.el.__isMounted},a)):D()}else{if(Mee(t.props)&&e.el.__isMounted===!1){ta(()=>{gce.process(e,t,n,r,o,a,s,l,c,f)},a);return}t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,R=t.target=e.target,M=t.targetAnchor=e.targetAnchor,D=PS(e.props),N=D?n:R,L=D?A:M;if(s==="svg"||Dee(R)?s="svg":(s==="mathml"||Oee(R))&&(s="mathml"),_?(m(e.dynamicChildren,_,N,o,a,s,l),HU(e,t,!0)):c||p(e,t,N,L,o,a,s,l,!1),C)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):VE(t,n,A,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=xF(t.props,b);B&&VE(t,B,null,f,0)}else D&&VE(t,R,M,f,1);wT(t,C)}},remove(e,t,n,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:f,targetAnchor:h,target:p,props:m}=e;if(p&&(o(f),o(h)),a&&o(c),s&16){const g=a||!PS(m);for(let b=0;b{e.isMounted=!0}),No(()=>{e.isUnmounting=!0}),e}const mc=[Function,Array],DU={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mc,onEnter:mc,onAfterEnter:mc,onEnterCancelled:mc,onBeforeLeave:mc,onLeave:mc,onAfterLeave:mc,onLeaveCancelled:mc,onBeforeAppear:mc,onAppear:mc,onAfterAppear:mc,onAppearCancelled:mc},bce=e=>{const t=e.subTree;return t.component?bce(t.component):t},SIe={name:"BaseTransition",props:DU,setup(e,{slots:t}){const n=uo(),r=MU();return()=>{const o=t.default&&f3(t.default(),!0);if(!o||!o.length)return;const a=_ce(o),s=Ti(e),{mode:l}=s;if(r.isLeaving)return a8(a);const c=$ee(a);if(!c)return a8(a);let f=f1(c,s,r,n,p=>f=p);c.type!==ds&&Dh(c,f);let h=n.subTree&&$ee(n.subTree);if(h&&h.type!==ds&&!hd(h,c)&&bce(n).type!==ds){let p=f1(h,s,r,n);if(Dh(h,p),l==="out-in"&&c.type!==ds)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},a8(a);l==="in-out"&&c.type!==ds?p.delayLeave=(m,g,b)=>{const S=kce(r,h);S[String(h.key)]=h,m[ch]=()=>{g(),m[ch]=void 0,delete f.delayedLeave,h=void 0},f.delayedLeave=()=>{b(),delete f.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function _ce(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ds){t=n;break}}return t}const Sce=SIe;function kce(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 f1(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:m,onLeave:g,onAfterLeave:b,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:E,onAppearCancelled:x}=t,_=String(e.key),A=kce(n,e),R=(N,L)=>{N&&Bc(N,r,9,L)},M=(N,L)=>{const B=L[1];R(N,L),Fn(N)?N.every(F=>F.length<=1)&&B():N.length<=1&&B()},D={mode:s,persisted:l,beforeEnter(N){let L=c;if(!n.isMounted)if(a)L=k||c;else return;N[ch]&&N[ch](!0);const B=A[_];B&&hd(e,B)&&B.el[ch]&&B.el[ch](),R(L,[N])},enter(N){let L=f,B=h,F=p;if(!n.isMounted)if(a)L=C||f,B=E||h,F=x||p;else return;let j=!1;const z=N[UE]=q=>{j||(j=!0,q?R(F,[N]):R(B,[N]),D.delayedLeave&&D.delayedLeave(),N[UE]=void 0)};L?M(L,[N,z]):z()},leave(N,L){const B=String(e.key);if(N[UE]&&N[UE](!0),n.isUnmounting)return L();R(m,[N]);let F=!1;const j=N[ch]=z=>{F||(F=!0,L(),z?R(S,[N]):R(b,[N]),N[ch]=void 0,A[B]===e&&delete A[B])};A[B]=e,g?M(g,[N,j]):j()},clone(N){const L=f1(N,t,n,r,o);return o&&o(L),L}};return D}function a8(e){if(wk(e))return e=ml(e),e.children=null,e}function $ee(e){if(!wk(e))return mce(e.type)&&e.children?_ce(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&&yr(n.default))return n.default()}}function Dh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Dh(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 f3(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 wA=new WeakMap;function jy(e,t,n,r,o=!1){if(Fn(e)){e.forEach((b,S)=>jy(b,t&&(Fn(t)?t[S]:t),n,r,o));return}if(ev(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&jy(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Ek(r.component):r.el,s=o?null:a,{i:l,r:c}=e,f=t&&t.r,h=l.refs===mi?l.refs={}:l.refs,p=l.setupState,m=Ti(p),g=p===mi?Fm:b=>$i(m,b);if(f!=null&&f!==c){if(Nee(t),Cr(f))h[f]=null,g(f)&&(p[f]=null);else if(To(f)){f.value=null;const b=t;b.k&&(h[b.k]=null)}}if(yr(c))V1(c,l,12,[s,h]);else{const b=Cr(c),S=To(c);if(b||S){const k=()=>{if(e.f){const C=b?g(c)?p[c]:h[c]:c.value;if(o)Fn(C)&&e3(C,a);else if(Fn(C))C.includes(a)||C.push(a);else if(b)h[c]=[a],g(c)&&(p[c]=h[c]);else{const E=[a];c.value=E,e.k&&(h[e.k]=E)}}else b?(h[c]=s,g(c)&&(p[c]=s)):S&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const C=()=>{k(),wA.delete(e)};C.id=-1,wA.set(e,C),ta(C,n)}else Nee(e),k()}}}function Nee(e){const t=wA.get(e);t&&(t.flags|=8,wA.delete(e))}let Bee=!1;const K0=()=>{Bee||(console.error("Hydration completed but contains mismatches."),Bee=!0)},CIe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",EIe=e=>e.namespaceURI.includes("MathML"),zE=e=>{if(e.nodeType===1){if(CIe(e))return"svg";if(EIe(e))return"mathml"}},Ay=e=>e.nodeType===8;function xIe(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:f}}=e,h=(x,_)=>{if(!_.hasChildNodes()){n(null,x,_),kA(),_._vnode=x;return}p(_.firstChild,x,null,null,null),kA(),_._vnode=x},p=(x,_,A,R,M,D=!1)=>{D=D||!!_.dynamicChildren;const N=Ay(x)&&x.data==="[",L=()=>S(x,_,A,R,M,N),{type:B,ref:F,shapeFlag:j,patchFlag:z}=_;let q=x.nodeType;_.el=x,z===-2&&(D=!1,_.dynamicChildren=null);let G=null;switch(B){case tv:q!==3?_.children===""?(c(_.el=o(""),s(x),x),G=x):G=L():(x.data!==_.children&&(K0(),x.data=_.children),G=a(x));break;case ds:E(x)?(G=a(x),C(_.el=x.content.firstChild,x,A)):q!==8||N?G=L():G=a(x);break;case eg:if(N&&(x=a(x),q=x.nodeType),q===1||q===3){G=x;const ee=!_.children.length;for(let Q=0;Q<_.staticCount;Q++)ee&&(_.children+=G.nodeType===1?G.outerHTML:G.data),Q===_.staticCount-1&&(_.anchor=G),G=a(G);return N?a(G):G}else L();break;case Ft:N?G=b(x,_,A,R,M,D):G=L();break;default:if(j&1)(q!==1||_.type.toLowerCase()!==x.tagName.toLowerCase())&&!E(x)?G=L():G=m(x,_,A,R,M,D);else if(j&6){_.slotScopeIds=M;const ee=s(x);if(N?G=k(x):Ay(x)&&x.data==="teleport start"?G=k(x,x.data,"teleport end"):G=a(x),t(_,ee,null,A,R,zE(ee),D),ev(_)&&!_.type.__asyncResolved){let Q;N?(Q=O(Ft),Q.anchor=G?G.previousSibling:ee.lastChild):Q=x.nodeType===3?He(""):O("div"),Q.el=x,_.component.subTree=Q}}else j&64?q!==8?G=L():G=_.type.hydrate(x,_,A,R,M,D,e,g):j&128&&(G=_.type.hydrate(x,_,A,R,zE(s(x)),M,D,e,p))}return F!=null&&jy(F,null,R,_),G},m=(x,_,A,R,M,D)=>{D=D||!!_.dynamicChildren;const{type:N,props:L,patchFlag:B,shapeFlag:F,dirs:j,transition:z}=_,q=N==="input"||N==="option";if(q||B!==-1){j&&qd(_,null,A,"created");let G=!1;if(E(x)){G=Gce(null,z)&&A&&A.vnode.props&&A.vnode.props.appear;const Q=x.content.firstChild;if(G){const X=Q.getAttribute("class");X&&(Q.$cls=X),z.beforeEnter(Q)}C(Q,x,A),_.el=x=Q}if(F&16&&!(L&&(L.innerHTML||L.textContent))){let Q=g(x.firstChild,_,x,A,R,M,D);for(;Q;){HE(x,1)||K0();const X=Q;Q=Q.nextSibling,l(X)}}else if(F&8){let Q=_.children;Q[0]===` `&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(Q=Q.slice(1)),x.textContent!==Q&&(HE(x,0)||K0(),x.textContent=_.children)}if(L){if(q||!D||B&48){const Q=x.tagName.includes("-");for(const X in L)(q&&(X.endsWith("value")||X==="indeterminate")||kv(X)&&!_h(X)||X[0]==="."||Q)&&r(x,X,null,L[X],void 0,A)}else if(L.onClick)r(x,"onClick",null,L.onClick,void 0,A);else if(B&4&&lf(L.style))for(const Q in L.style)L.style[Q]}let ee;(ee=L&&L.onVnodeBeforeMount)&&lu(ee,A,_),j&&qd(_,null,A,"beforeMount"),((ee=L&&L.onVnodeMounted)||j||G)&&tde(()=>{ee&&lu(ee,A,_),G&&z.enter(x),j&&qd(_,null,A,"mounted")},R)}return x.nextSibling},g=(x,_,A,R,M,D,N)=>{N=N||!!_.dynamicChildren;const L=_.children,B=L.length;for(let F=0;F{const{slotScopeIds:N}=_;N&&(M=M?M.concat(N):N);const L=s(x),B=g(a(x),_,L,A,R,M,D);return B&&Ay(B)&&B.data==="]"?a(_.anchor=B):(K0(),c(_.anchor=f("]"),L,B),B)},S=(x,_,A,R,M,D)=>{if(HE(x.parentElement,1)||K0(),_.el=null,D){const B=k(x);for(;;){const F=a(x);if(F&&F!==B)l(F);else break}}const N=a(x),L=s(x);return l(x),n(null,_,L,N,A,R,zE(L),M),A&&(A.vnode.el=_.el,v3(A,_.el)),N},k=(x,_="[",A="]")=>{let R=0;for(;x;)if(x=a(x),x&&Ay(x)&&(x.data===_&&R++,x.data===A)){if(R===0)return a(x);R--}return x},C=(x,_,A)=>{const R=_.parentNode;R&&R.replaceChild(x,_);let M=A;for(;M;)M.vnode.el===_&&(M.vnode.el=M.subTree.el=x),M=M.parent},E=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[h,p]}const Fee="data-allow-mismatch",TIe={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function HE(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Fee);)e=e.parentElement;const n=e&&e.getAttribute(Fee);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(TIe[t])}}const AIe=Sk().requestIdleCallback||(e=>setTimeout(e,1)),IIe=Sk().cancelIdleCallback||(e=>clearTimeout(e)),LIe=(e=1e4)=>t=>{const n=AIe(t,{timeout:e});return()=>IIe(n)};function PIe(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(PIe(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},MIe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},DIe=(e=[])=>(t,n)=>{Cr(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 OIe(e,t){if(Ay(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ay(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const ev=e=>!!e.type.__asyncLoader;function Ev(e){yr(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 f=null,h,p=0;const m=()=>(p++,f=null,g()),g=()=>{let b;return f||(b=f=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=>b!==f&&f?f:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return be({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(b,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const E=()=>{C||k()},x=a?()=>{const _=a(E,A=>OIe(b,A));_&&(S.bum||(S.bum=[])).push(_)}:E;h?x():g().then(()=>!S.isUnmounted&&x())},get __asyncResolved(){return h},setup(){const b=Da;if(OU(b),h)return()=>l8(h,b);const S=x=>{f=null,$g(x,b,13,!r)};if(l&&b.suspense||h1)return g().then(x=>()=>l8(x,b)).catch(x=>(S(x),()=>r?O(r,{error:x}):null));const k=pe(!1),C=pe(),E=pe(!!o);return o&&setTimeout(()=>{E.value=!1},o),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const x=new Error(`Async component timed out after ${s}ms.`);S(x),C.value=x}},s),g().then(()=>{k.value=!0,b.parent&&wk(b.parent.vnode)&&b.parent.update()}).catch(x=>{S(x),C.value=x}),()=>{if(k.value&&h)return l8(h,b);if(C.value&&r)return O(r,{error:C.value});if(n&&!E.value)return O(n)}}})}function l8(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 wk=e=>e.type.__isKeepAlive,$Ie={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=uo(),r=n.ctx;if(!r.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:f,um:h,o:{createElement:p}}}=r,m=p("div");r.activate=(E,x,_,A,R)=>{const M=E.component;f(E,x,_,0,l),c(M.vnode,E,x,_,M,l,A,E.slotScopeIds,R),ta(()=>{M.isDeactivated=!1,M.a&&Xm(M.a);const D=E.props&&E.props.onVnodeMounted;D&&lu(D,M.parent,E)},l)},r.deactivate=E=>{const x=E.component;EA(x.m),EA(x.a),f(E,m,null,1,l),ta(()=>{x.da&&Xm(x.da);const _=E.props&&E.props.onVnodeUnmounted;_&&lu(_,x.parent,E),x.isDeactivated=!0},l)};function g(E){u8(E),h(E,n,l,!0)}function b(E){o.forEach((x,_)=>{const A=NF(x.type);A&&!E(A)&&S(_)})}function S(E){const x=o.get(E);x&&(!s||!hd(x,s))?g(x):s&&u8(s),o.delete(E),a.delete(E)}Dt(()=>[e.include,e.exclude],([E,x])=>{E&&b(_=>cS(E,_)),x&&b(_=>!cS(x,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(xA(n.subTree.type)?ta(()=>{o.set(k,WE(n.subTree))},n.subTree.suspense):o.set(k,WE(n.subTree)))};return ln(C),Ha(C),No(()=>{o.forEach(E=>{const{subTree:x,suspense:_}=n,A=WE(x);if(E.type===A.type&&E.key===A.key){u8(A);const R=A.component.da;R&&ta(R,_);return}g(E)})}),()=>{if(k=null,!t.default)return s=null;const E=t.default(),x=E[0];if(E.length>1)return s=null,E;if(!Di(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return s=null,x;let _=WE(x);if(_.type===ds)return s=null,_;const A=_.type,R=NF(ev(_)?_.type.__asyncResolved||{}:A),{include:M,exclude:D,max:N}=e;if(M&&(!R||!cS(M,R))||D&&R&&cS(D,R))return _.shapeFlag&=-257,s=_,x;const L=_.key==null?A:_.key,B=o.get(L);return _.el&&(_=ml(_),x.shapeFlag&128&&(x.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Dh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),N&&a.size>parseInt(N,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,xA(x.type)?x:_}}},NIe=$Ie;function cS(e,t){return Fn(e)?e.some(n=>cS(n,t)):Cr(e)?e.split(",").includes(t):Pue(e)?(e.lastIndex=0,e.test(t)):!1}function wce(e,t){Cce(e,"a",t)}function $U(e,t){Cce(e,"da",t)}function Cce(e,t,n=Da){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(h3(t,r,n),n){let o=n.parent;for(;o&&o.parent;)wk(o.parent.vnode)&&BIe(r,t,n,o),o=o.parent}}function BIe(e,t,n,r){const o=h3(t,e,r,!0);si(()=>{e3(r[t],o)},n)}function u8(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function WE(e){return e.shapeFlag&128?e.ssContent:e}function h3(e,t,n=Da,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Ph();const l=gg(n),c=Bc(t,n,e,s);return l(),Rh(),c});return r?o.unshift(a):o.push(a),a}}const Fh=e=>(t,n=Da)=>{(!h1||e==="sp")&&h3(e,(...r)=>t(...r),n)},Ece=Fh("bm"),ln=Fh("m"),NU=Fh("bu"),Ha=Fh("u"),No=Fh("bum"),si=Fh("um"),xce=Fh("sp"),Tce=Fh("rtg"),Ace=Fh("rtc");function Ice(e,t=Da){h3("ec",e,t)}const BU="components",FIe="directives";function Pe(e,t){return FU(BU,e,!0,t)||e}const Lce=Symbol.for("v-ndc");function $a(e){return Cr(e)?FU(BU,e,!1)||e:e||Lce}function U1(e){return FU(FIe,e)}function FU(e,t,n=!0,r=!1){const o=Oa||Da;if(o){const a=o.type;if(e===BU){const l=NF(a,!1);if(l&&(l===t||l===xo(t)||l===Cv(xo(t))))return a}const s=jee(o[e]||a[e],t)||jee(o.appContext[e],t);return!s&&r?a:s}}function jee(e,t){return e&&(e[t]||e[xo(t)]||e[Cv(xo(t))])}function fn(e,t,n,r){let o;const a=n&&n[r],s=Fn(e);if(s||Cr(e)){const l=s&&lf(e);let c=!1,f=!1;l&&(c=!Qu(e),f=Mh(e),e=s3(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,f=l.length;c{const a=r.fn(...o);return a&&(a.key=r.key),a}:r.fn)}return e}function ft(e,t,n={},r,o){if(Oa.ce||Oa.parent&&ev(Oa.parent)&&Oa.parent.ce){const f=Object.keys(n).length>0;return t!=="default"&&(n.name=t),H(),Ye(Ft,null,[O("slot",n,r&&r())],f?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),H();const s=a&&jU(a(n)),l=n.key||s&&s.key,c=Ye(Ft,{key:(l&&!Vl(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 jU(e){return e.some(t=>Di(t)?!(t.type===ds||t.type===Ft&&!jU(t.children)):!0)?e:null}function jIe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Ym(r)]=e[r];return n}const TF=e=>e?sde(e)?Ek(e):TF(e.parent):null,RS=fi(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=>TF(e.parent),$root:e=>TF(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>VU(e),$forceUpdate:e=>e.f||(e.f=()=>{RU(e.update)}),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>m3e.bind(e)}),c8=(e,t)=>e!==mi&&!e.__isScriptSetup&&$i(e,t),AF={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 f;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(c8(r,t))return s[t]=1,r[t];if(o!==mi&&$i(o,t))return s[t]=2,o[t];if((f=e.propsOptions[0])&&$i(f,t))return s[t]=3,a[t];if(n!==mi&&$i(n,t))return s[t]=4,n[t];IF&&(s[t]=0)}}const h=RS[t];let p,m;if(h)return t==="$attrs"&&ul(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==mi&&$i(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,$i(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return c8(o,t)?(o[t]=n,!0):r!==mi&&$i(r,t)?(r[t]=n,!0):$i(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,f;return!!(n[l]||e!==mi&&l[0]!=="$"&&$i(e,l)||c8(t,l)||(c=a[0])&&$i(c,l)||$i(r,l)||$i(RS,l)||$i(o.config.globalProperties,l)||(f=s.__cssModules)&&f[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$i(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},VIe=fi({},AF,{get(e,t){if(t!==Symbol.unscopables)return AF.get(e,t,e)},has(e,t){return t[0]!=="_"&&!SU(t)}});function UIe(){return null}function zIe(){return null}function HIe(e){}function WIe(e){}function GIe(){return null}function KIe(){}function qIe(e,t){return null}function YIe(){return Pce().slots}function XIe(){return Pce().attrs}function Pce(e){const t=uo();return t.setupContext||(t.setupContext=ude(t))}function M2(e){return Fn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ZIe(e,t){const n=M2(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?Fn(o)||yr(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 JIe(e,t){return!e||!t?e||t:Fn(e)&&Fn(t)?e.concat(t):fi({},M2(e),M2(t))}function QIe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function e3e(e){const t=uo();let n=e();return DF(),t3(n)&&(n=n.catch(r=>{throw gg(t),r})),[n,()=>gg(t)]}let IF=!0;function t3e(e){const t=VU(e),n=e.proxy,r=e.ctx;IF=!1,t.beforeCreate&&Vee(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:f,created:h,beforeMount:p,mounted:m,beforeUpdate:g,updated:b,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:E,destroyed:x,unmounted:_,render:A,renderTracked:R,renderTriggered:M,errorCaptured:D,serverPrefetch:N,expose:L,inheritAttrs:B,components:F,directives:j,filters:z}=t;if(f&&n3e(f,r,null),s)for(const ee in s){const Q=s[ee];yr(Q)&&(r[ee]=Q.bind(n))}if(o){const ee=o.call(n,n);Fi(ee)&&(e.data=Wt(ee))}if(IF=!0,a)for(const ee in a){const Q=a[ee],X=yr(Q)?Q.bind(n,n):yr(Q.get)?Q.get.bind(n,n):ha,K=!yr(Q)&&yr(Q.set)?Q.set.bind(n):ha,te=V({get:X,set:K});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>te.value,set:oe=>te.value=oe})}if(l)for(const ee in l)Rce(l[ee],r,n,ee);if(c){const ee=yr(c)?c.call(n):c;Reflect.ownKeys(ee).forEach(Q=>{Wr(Q,ee[Q])})}h&&Vee(h,e,"c");function G(ee,Q){Fn(Q)?Q.forEach(X=>ee(X.bind(n))):Q&&ee(Q.bind(n))}if(G(Ece,p),G(ln,m),G(NU,g),G(Ha,b),G(wce,S),G($U,k),G(Ice,D),G(Ace,R),G(Tce,M),G(No,E),G(si,_),G(xce,N),Fn(L))if(L.length){const ee=e.exposed||(e.exposed={});L.forEach(Q=>{Object.defineProperty(ee,Q,{get:()=>n[Q],set:X=>n[Q]=X,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===ha&&(e.render=A),B!=null&&(e.inheritAttrs=B),F&&(e.components=F),j&&(e.directives=j),N&&OU(e)}function n3e(e,t,n=ha){Fn(e)&&(e=LF(e));for(const r in e){const o=e[r];let a;Fi(o)?"default"in o?a=xn(o.from||r,o.default,!0):a=xn(o.from||r):a=xn(o),To(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function Vee(e,t,n){Bc(Fn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rce(e,t,n,r){let o=r.includes(".")?Zce(n,r):()=>n[r];if(Cr(e)){const a=t[e];yr(a)&&Dt(o,a)}else if(yr(e))Dt(o,e.bind(n));else if(Fi(e))if(Fn(e))e.forEach(a=>Rce(a,t,n,r));else{const a=yr(e.handler)?e.handler.bind(n):t[e.handler];yr(a)&&Dt(o,a,e)}}function VU(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(f=>CA(c,f,s,!0)),CA(c,t,s)),Fi(t)&&a.set(t,c),c}function CA(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&CA(e,a,n,!0),o&&o.forEach(s=>CA(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=r3e[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const r3e={data:Uee,props:zee,emits:zee,methods:dS,computed:dS,beforeCreate:Al,created:Al,beforeMount:Al,mounted:Al,beforeUpdate:Al,updated:Al,beforeDestroy:Al,beforeUnmount:Al,destroyed:Al,unmounted:Al,activated:Al,deactivated:Al,errorCaptured:Al,serverPrefetch:Al,components:dS,directives:dS,watch:o3e,provide:Uee,inject:i3e};function Uee(e,t){return t?e?function(){return fi(yr(e)?e.call(this,this):e,yr(t)?t.call(this,this):t)}:t:e}function i3e(e,t){return dS(LF(e),LF(t))}function LF(e){if(Fn(e)){const t={};for(let n=0;n1)return n&&yr(t)?t.call(r&&r.proxy):t}}function Dce(){return!!(uo()||Qm)}const Oce={},$ce=()=>Object.create(Oce),Nce=e=>Object.getPrototypeOf(e)===Oce;function l3e(e,t,n,r=!1){const o={},a=$ce();e.propsDefaults=Object.create(null),Bce(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:LU(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function u3e(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Ti(o),[c]=e.propsOptions;let f=!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]=Fce(p,t,!0);fi(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 Fi(e)&&r.set(e,Km),Km;if(Fn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",zU=e=>Fn(e)?e.map(uu):[uu(e)],d3e=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>zU(t(...o)),n);return r._c=!1,r},jce=(e,t,n)=>{const r=e._ctx;for(const o in e){if(UU(o))continue;const a=e[o];if(yr(a))t[o]=d3e(o,a,r);else if(a!=null){const s=zU(a);t[o]=()=>s}}},Vce=(e,t)=>{const n=zU(t);e.slots.default=()=>n},Uce=(e,t,n)=>{for(const r in t)(n||!UU(r))&&(e[r]=t[r])},f3e=(e,t,n)=>{const r=e.slots=$ce();if(e.vnode.shapeFlag&32){const o=t._;o?(Uce(r,t,n),n&&_U(r,"_",o,!0)):jce(t,r)}else t&&Vce(e,t)},h3e=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=mi;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Uce(o,t,n):(a=!t.$stable,jce(t,o)),s=t}else t&&(Vce(e,t),s={default:1});if(a)for(const l in o)!UU(l)&&s[l]==null&&delete o[l]},ta=tde;function zce(e){return Wce(e)}function Hce(e){return Wce(e,xIe)}function Wce(e,t){const n=Sk();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:f,setElementText:h,parentNode:p,nextSibling:m,setScopeId:g=ha,insertStaticContent:b}=e,S=(_e,ye,Me,We=null,qe=null,st=null,gt=void 0,ct=null,Tt=!!ye.dynamicChildren)=>{if(_e===ye)return;_e&&!hd(_e,ye)&&(We=ge(_e),oe(_e,qe,st,!0),_e=null),ye.patchFlag===-2&&(Tt=!1,ye.dynamicChildren=null);const{type:xt,ref:qt,shapeFlag:Gt}=ye;switch(xt){case tv:k(_e,ye,Me,We);break;case ds:C(_e,ye,Me,We);break;case eg:_e==null&&E(ye,Me,We,gt);break;case Ft:F(_e,ye,Me,We,qe,st,gt,ct,Tt);break;default:Gt&1?A(_e,ye,Me,We,qe,st,gt,ct,Tt):Gt&6?j(_e,ye,Me,We,qe,st,gt,ct,Tt):(Gt&64||Gt&128)&&xt.process(_e,ye,Me,We,qe,st,gt,ct,Tt,Xe)}qt!=null&&qe?jy(qt,_e&&_e.ref,st,ye||_e,!ye):qt==null&&_e&&_e.ref!=null&&jy(_e.ref,null,st,_e,!0)},k=(_e,ye,Me,We)=>{if(_e==null)r(ye.el=l(ye.children),Me,We);else{const qe=ye.el=_e.el;ye.children!==_e.children&&f(qe,ye.children)}},C=(_e,ye,Me,We)=>{_e==null?r(ye.el=c(ye.children||""),Me,We):ye.el=_e.el},E=(_e,ye,Me,We)=>{[_e.el,_e.anchor]=b(_e.children,ye,Me,We,_e.el,_e.anchor)},x=({el:_e,anchor:ye},Me,We)=>{let qe;for(;_e&&_e!==ye;)qe=m(_e),r(_e,Me,We),_e=qe;r(ye,Me,We)},_=({el:_e,anchor:ye})=>{let Me;for(;_e&&_e!==ye;)Me=m(_e),o(_e),_e=Me;o(ye)},A=(_e,ye,Me,We,qe,st,gt,ct,Tt)=>{ye.type==="svg"?gt="svg":ye.type==="math"&&(gt="mathml"),_e==null?R(ye,Me,We,qe,st,gt,ct,Tt):N(_e,ye,qe,st,gt,ct,Tt)},R=(_e,ye,Me,We,qe,st,gt,ct)=>{let Tt,xt;const{props:qt,shapeFlag:Gt,transition:Qt,dirs:Pt}=_e;if(Tt=_e.el=s(_e.type,st,qt&&qt.is,qt),Gt&8?h(Tt,_e.children):Gt&16&&D(_e.children,Tt,null,We,qe,d8(_e,st),gt,ct),Pt&&qd(_e,null,We,"created"),M(Tt,_e,_e.scopeId,gt,We),qt){for(const bt in qt)bt!=="value"&&!_h(bt)&&a(Tt,bt,null,qt[bt],st,We);"value"in qt&&a(Tt,"value",null,qt.value,st),(xt=qt.onVnodeBeforeMount)&&lu(xt,We,_e)}Pt&&qd(_e,null,We,"beforeMount");const at=Gce(qe,Qt);at&&Qt.beforeEnter(Tt),r(Tt,ye,Me),((xt=qt&&qt.onVnodeMounted)||at||Pt)&&ta(()=>{xt&&lu(xt,We,_e),at&&Qt.enter(Tt),Pt&&qd(_e,null,We,"mounted")},qe)},M=(_e,ye,Me,We,qe)=>{if(Me&&g(_e,Me),We)for(let st=0;st{for(let xt=Tt;xt<_e.length;xt++){const qt=_e[xt]=ct?Bp(_e[xt]):uu(_e[xt]);S(null,qt,ye,Me,We,qe,st,gt,ct)}},N=(_e,ye,Me,We,qe,st,gt)=>{const ct=ye.el=_e.el;let{patchFlag:Tt,dynamicChildren:xt,dirs:qt}=ye;Tt|=_e.patchFlag&16;const Gt=_e.props||mi,Qt=ye.props||mi;let Pt;if(Me&&nm(Me,!1),(Pt=Qt.onVnodeBeforeUpdate)&&lu(Pt,Me,ye,_e),qt&&qd(ye,_e,Me,"beforeUpdate"),Me&&nm(Me,!0),(Gt.innerHTML&&Qt.innerHTML==null||Gt.textContent&&Qt.textContent==null)&&h(ct,""),xt?L(_e.dynamicChildren,xt,ct,Me,We,d8(ye,qe),st):gt||Q(_e,ye,ct,null,Me,We,d8(ye,qe),st,!1),Tt>0){if(Tt&16)B(ct,Gt,Qt,Me,qe);else if(Tt&2&&Gt.class!==Qt.class&&a(ct,"class",null,Qt.class,qe),Tt&4&&a(ct,"style",Gt.style,Qt.style,qe),Tt&8){const at=ye.dynamicProps;for(let bt=0;bt{Pt&&lu(Pt,Me,ye,_e),qt&&qd(ye,_e,Me,"updated")},We)},L=(_e,ye,Me,We,qe,st,gt)=>{for(let ct=0;ct{if(ye!==Me){if(ye!==mi)for(const st in ye)!_h(st)&&!(st in Me)&&a(_e,st,ye[st],null,qe,We);for(const st in Me){if(_h(st))continue;const gt=Me[st],ct=ye[st];gt!==ct&&st!=="value"&&a(_e,st,ct,gt,qe,We)}"value"in Me&&a(_e,"value",ye.value,Me.value,qe)}},F=(_e,ye,Me,We,qe,st,gt,ct,Tt)=>{const xt=ye.el=_e?_e.el:l(""),qt=ye.anchor=_e?_e.anchor:l("");let{patchFlag:Gt,dynamicChildren:Qt,slotScopeIds:Pt}=ye;Pt&&(ct=ct?ct.concat(Pt):Pt),_e==null?(r(xt,Me,We),r(qt,Me,We),D(ye.children||[],Me,qt,qe,st,gt,ct,Tt)):Gt>0&&Gt&64&&Qt&&_e.dynamicChildren?(L(_e.dynamicChildren,Qt,Me,qe,st,gt,ct),(ye.key!=null||qe&&ye===qe.subTree)&&HU(_e,ye,!0)):Q(_e,ye,Me,qt,qe,st,gt,ct,Tt)},j=(_e,ye,Me,We,qe,st,gt,ct,Tt)=>{ye.slotScopeIds=ct,_e==null?ye.shapeFlag&512?qe.ctx.activate(ye,Me,We,gt,Tt):z(ye,Me,We,qe,st,gt,Tt):q(_e,ye,Tt)},z=(_e,ye,Me,We,qe,st,gt)=>{const ct=_e.component=ode(_e,We,qe);if(wk(_e)&&(ct.ctx.renderer=Xe),ade(ct,!1,gt),ct.asyncDep){if(qe&&qe.registerDep(ct,G,gt),!_e.el){const Tt=ct.subTree=O(ds);C(null,Tt,ye,Me),_e.placeholder=Tt.el}}else G(ct,_e,ye,Me,qe,st,gt)},q=(_e,ye,Me)=>{const We=ye.component=_e.component;if(w3e(_e,ye,Me))if(We.asyncDep&&!We.asyncResolved){ee(We,ye,Me);return}else We.next=ye,We.update();else ye.el=_e.el,We.vnode=ye},G=(_e,ye,Me,We,qe,st,gt)=>{const ct=()=>{if(_e.isMounted){let{next:Gt,bu:Qt,u:Pt,parent:at,vnode:bt}=_e;{const ut=Kce(_e);if(ut){Gt&&(Gt.el=bt.el,ee(_e,Gt,gt)),ut.asyncDep.then(()=>{_e.isUnmounted||ct()});return}}let Ue=Gt,Be;nm(_e,!1),Gt?(Gt.el=bt.el,ee(_e,Gt,gt)):Gt=bt,Qt&&Xm(Qt),(Be=Gt.props&&Gt.props.onVnodeBeforeUpdate)&&lu(Be,at,Gt,bt),nm(_e,!0);const lt=CT(_e),kt=_e.subTree;_e.subTree=lt,S(kt,lt,p(kt.el),ge(kt),_e,qe,st),Gt.el=lt.el,Ue===null&&v3(_e,lt.el),Pt&&ta(Pt,qe),(Be=Gt.props&&Gt.props.onVnodeUpdated)&&ta(()=>lu(Be,at,Gt,bt),qe)}else{let Gt;const{el:Qt,props:Pt}=ye,{bm:at,m:bt,parent:Ue,root:Be,type:lt}=_e,kt=ev(ye);if(nm(_e,!1),at&&Xm(at),!kt&&(Gt=Pt&&Pt.onVnodeBeforeMount)&&lu(Gt,Ue,ye),nm(_e,!0),Qt&&Ke){const ut=()=>{_e.subTree=CT(_e),Ke(Qt,_e.subTree,_e,qe,null)};kt&<.__asyncHydrate?lt.__asyncHydrate(Qt,_e,ut):ut()}else{Be.ce&&Be.ce._def.shadowRoot!==!1&&Be.ce._injectChildStyle(lt);const ut=_e.subTree=CT(_e);S(null,ut,Me,We,_e,qe,st),ye.el=ut.el}if(bt&&ta(bt,qe),!kt&&(Gt=Pt&&Pt.onVnodeMounted)){const ut=ye;ta(()=>lu(Gt,Ue,ut),qe)}(ye.shapeFlag&256||Ue&&ev(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&_e.a&&ta(_e.a,qe),_e.isMounted=!0,ye=Me=We=null}};_e.scope.on();const Tt=_e.effect=new x2(ct);_e.scope.off();const xt=_e.update=Tt.run.bind(Tt),qt=_e.job=Tt.runIfDirty.bind(Tt);qt.i=_e,qt.id=_e.uid,Tt.scheduler=()=>RU(qt),nm(_e,!0),xt()},ee=(_e,ye,Me)=>{ye.component=_e;const We=_e.vnode.props;_e.vnode=ye,_e.next=null,u3e(_e,ye.props,We,Me),h3e(_e,ye.children,Me),Ph(),Ree(_e),Rh()},Q=(_e,ye,Me,We,qe,st,gt,ct,Tt=!1)=>{const xt=_e&&_e.children,qt=_e?_e.shapeFlag:0,Gt=ye.children,{patchFlag:Qt,shapeFlag:Pt}=ye;if(Qt>0){if(Qt&128){K(xt,Gt,Me,We,qe,st,gt,ct,Tt);return}else if(Qt&256){X(xt,Gt,Me,We,qe,st,gt,ct,Tt);return}}Pt&8?(qt&16&&$e(xt,qe,st),Gt!==xt&&h(Me,Gt)):qt&16?Pt&16?K(xt,Gt,Me,We,qe,st,gt,ct,Tt):$e(xt,qe,st,!0):(qt&8&&h(Me,""),Pt&16&&D(Gt,Me,We,qe,st,gt,ct,Tt))},X=(_e,ye,Me,We,qe,st,gt,ct,Tt)=>{_e=_e||Km,ye=ye||Km;const xt=_e.length,qt=ye.length,Gt=Math.min(xt,qt);let Qt;for(Qt=0;Qtqt?$e(_e,qe,st,!0,!1,Gt):D(ye,Me,We,qe,st,gt,ct,Tt,Gt)},K=(_e,ye,Me,We,qe,st,gt,ct,Tt)=>{let xt=0;const qt=ye.length;let Gt=_e.length-1,Qt=qt-1;for(;xt<=Gt&&xt<=Qt;){const Pt=_e[xt],at=ye[xt]=Tt?Bp(ye[xt]):uu(ye[xt]);if(hd(Pt,at))S(Pt,at,Me,null,qe,st,gt,ct,Tt);else break;xt++}for(;xt<=Gt&&xt<=Qt;){const Pt=_e[Gt],at=ye[Qt]=Tt?Bp(ye[Qt]):uu(ye[Qt]);if(hd(Pt,at))S(Pt,at,Me,null,qe,st,gt,ct,Tt);else break;Gt--,Qt--}if(xt>Gt){if(xt<=Qt){const Pt=Qt+1,at=PtQt)for(;xt<=Gt;)oe(_e[xt],qe,st,!0),xt++;else{const Pt=xt,at=xt,bt=new Map;for(xt=at;xt<=Qt;xt++){const yt=ye[xt]=Tt?Bp(ye[xt]):uu(ye[xt]);yt.key!=null&&bt.set(yt.key,xt)}let Ue,Be=0;const lt=Qt-at+1;let kt=!1,ut=0;const et=new Array(lt);for(xt=0;xt=lt){oe(yt,qe,st,!0);continue}let Lt;if(yt.key!=null)Lt=bt.get(yt.key);else for(Ue=at;Ue<=Qt;Ue++)if(et[Ue-at]===0&&hd(yt,ye[Ue])){Lt=Ue;break}Lt===void 0?oe(yt,qe,st,!0):(et[Lt-at]=xt+1,Lt>=ut?ut=Lt:kt=!0,S(yt,ye[Lt],Me,null,qe,st,gt,ct,Tt),Be++)}const Le=kt?p3e(et):Km;for(Ue=Le.length-1,xt=lt-1;xt>=0;xt--){const yt=at+xt,Lt=ye[yt],Ht=ye[yt+1],It=yt+1{const{el:st,type:gt,transition:ct,children:Tt,shapeFlag:xt}=_e;if(xt&6){te(_e.component.subTree,ye,Me,We);return}if(xt&128){_e.suspense.move(ye,Me,We);return}if(xt&64){gt.move(_e,ye,Me,Xe);return}if(gt===Ft){r(st,ye,Me);for(let Gt=0;Gtct.enter(st),qe);else{const{leave:Gt,delayLeave:Qt,afterLeave:Pt}=ct,at=()=>{_e.ctx.isUnmounted?o(st):r(st,ye,Me)},bt=()=>{st._isLeaving&&st[ch](!0),Gt(st,()=>{at(),Pt&&Pt()})};Qt?Qt(st,at,bt):bt()}else r(st,ye,Me)},oe=(_e,ye,Me,We=!1,qe=!1)=>{const{type:st,props:gt,ref:ct,children:Tt,dynamicChildren:xt,shapeFlag:qt,patchFlag:Gt,dirs:Qt,cacheIndex:Pt}=_e;if(Gt===-2&&(qe=!1),ct!=null&&(Ph(),jy(ct,null,Me,_e,!0),Rh()),Pt!=null&&(ye.renderCache[Pt]=void 0),qt&256){ye.ctx.deactivate(_e);return}const at=qt&1&&Qt,bt=!ev(_e);let Ue;if(bt&&(Ue=gt&>.onVnodeBeforeUnmount)&&lu(Ue,ye,_e),qt&6)xe(_e.component,Me,We);else{if(qt&128){_e.suspense.unmount(Me,We);return}at&&qd(_e,null,ye,"beforeUnmount"),qt&64?_e.type.remove(_e,ye,Me,Xe,We):xt&&!xt.hasOnce&&(st!==Ft||Gt>0&&Gt&64)?$e(xt,ye,Me,!1,!0):(st===Ft&&Gt&384||!qe&&qt&16)&&$e(Tt,ye,Me),We&&ue(_e)}(bt&&(Ue=gt&>.onVnodeUnmounted)||at)&&ta(()=>{Ue&&lu(Ue,ye,_e),at&&qd(_e,null,ye,"unmounted")},Me)},ue=_e=>{const{type:ye,el:Me,anchor:We,transition:qe}=_e;if(ye===Ft){ae(Me,We);return}if(ye===eg){_(_e);return}const st=()=>{o(Me),qe&&!qe.persisted&&qe.afterLeave&&qe.afterLeave()};if(_e.shapeFlag&1&&qe&&!qe.persisted){const{leave:gt,delayLeave:ct}=qe,Tt=()=>gt(Me,st);ct?ct(_e.el,st,Tt):Tt()}else st()},ae=(_e,ye)=>{let Me;for(;_e!==ye;)Me=m(_e),o(_e),_e=Me;o(ye)},xe=(_e,ye,Me)=>{const{bum:We,scope:qe,job:st,subTree:gt,um:ct,m:Tt,a:xt}=_e;EA(Tt),EA(xt),We&&Xm(We),qe.stop(),st&&(st.flags|=8,oe(gt,_e,ye,Me)),ct&&ta(ct,ye),ta(()=>{_e.isUnmounted=!0},ye)},$e=(_e,ye,Me,We=!1,qe=!1,st=0)=>{for(let gt=st;gt<_e.length;gt++)oe(_e[gt],ye,Me,We,qe)},ge=_e=>{if(_e.shapeFlag&6)return ge(_e.component.subTree);if(_e.shapeFlag&128)return _e.suspense.next();const ye=m(_e.anchor||_e.el),Me=ye&&ye[vce];return Me?m(Me):ye};let Oe=!1;const Fe=(_e,ye,Me)=>{_e==null?ye._vnode&&oe(ye._vnode,null,null,!0):S(ye._vnode||null,_e,ye,null,null,null,Me),ye._vnode=_e,Oe||(Oe=!0,Ree(),kA(),Oe=!1)},Xe={p:S,um:oe,m:te,r:ue,mt:z,mc:D,pc:Q,pbc:L,n:ge,o:e};let Je,Ke;return t&&([Je,Ke]=t(Xe)),{render:Fe,hydrate:Je,createApp:a3e(Fe,Je)}}function d8({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 nm({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gce(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function HU(e,t,n=!1){const r=e.children,o=t.children;if(Fn(r)&&Fn(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 Kce(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Kce(t)}function EA(e){if(e)for(let t=0;txn(qce);function Cs(e,t){return Ck(e,null,t)}function v3e(e,t){return Ck(e,null,{flush:"post"})}function Xce(e,t){return Ck(e,null,{flush:"sync"})}function Dt(e,t,n){return Ck(e,t,n)}function Ck(e,t,n=mi){const{immediate:r,deep:o,flush:a,once:s}=n,l=fi({},n),c=t&&r||!t&&a!=="post";let f;if(h1){if(a==="sync"){const g=Yce();f=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ha,g.resume=ha,g.pause=ha,g}}const h=Da;l.call=(g,b,S)=>Bc(g,h,b,S);let p=!1;a==="post"?l.scheduler=g=>{ta(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,b)=>{b?g():RU(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const m=uIe(e,t,l);return h1&&(f?f.push(m):c&&m()),m}function m3e(e,t,n){const r=this.proxy,o=Cr(e)?e.includes(".")?Zce(r,e):()=>r[e]:e.bind(r,r);let a;yr(t)?a=t:(a=t.handler,n=t);const s=gg(this),l=Ck(o,a.bind(r),n);return s(),l}function Zce(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=mi,m;return Xce(()=>{const g=e[o];ll(h,g)&&(h=g,f())}),{get(){return c(),n.get?n.get(h):h},set(g){const b=n.set?n.set(g):g;if(!ll(b,h)&&!(p!==mi&&ll(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,f()),r.emit(`update:${t}`,b),ll(g,b)&&ll(g,p)&&!ll(b,m)&&f(),p=g,m=b}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||mi:l,done:!1}:{done:!0}}}},l}const Jce=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xo(t)}Modifiers`]||e[`${cl(t)}Modifiers`];function y3e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||mi;let o=n;const a=t.startsWith("update:"),s=a&&Jce(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Cr(h)?h.trim():h)),s.number&&(o=n.map(C2)));let l,c=r[l=Ym(t)]||r[l=Ym(xo(t))];!c&&a&&(c=r[l=Ym(cl(t))]),c&&Bc(c,e,6,o);const f=r[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Bc(f,e,6,o)}}const b3e=new WeakMap;function Qce(e,t,n=!1){const r=n?b3e:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!yr(e)){const c=f=>{const h=Qce(f,t,!0);h&&(l=!0,fi(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Fi(e)&&r.set(e,null),null):(Fn(a)?a.forEach(c=>s[c]=null):fi(s,a),Fi(e)&&r.set(e,s),s)}function p3(e,t){return!e||!kv(t)?!1:(t=t.slice(2).replace(/Once$/,""),$i(e,t[0].toLowerCase()+t.slice(1))||$i(e,cl(t))||$i(e,t))}function CT(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:f,renderCache:h,props:p,data:m,setupState:g,ctx:b,inheritAttrs:S}=e,k=R2(e);let C,E;try{if(n.shapeFlag&4){const _=o||r,A=_;C=uu(f.call(A,_,h,p,g,m,b)),E=l}else{const _=t;C=uu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),E=t.props?l:S3e(l)}}catch(_){MS.length=0,$g(_,e,1),C=O(ds)}let x=C;if(E&&S!==!1){const _=Object.keys(E),{shapeFlag:A}=x;_.length&&A&7&&(a&&_.some(QI)&&(E=k3e(E,a)),x=ml(x,E,!1,!0))}return n.dirs&&(x=ml(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Dh(x,n.transition),C=x,R2(k),C}function _3e(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||kv(n))&&((t||(t={}))[n]=e[n]);return t},k3e=(e,t)=>{const n={};for(const r in e)(!QI(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function w3e(e,t,n){const{props:r,children:o,component:a}=e,{props:s,children:l,patchFlag:c}=t,f=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Wee(r,s,f):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let RF=0;const C3e={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,f){if(e==null)x3e(t,n,r,o,a,s,l,c,f);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}T3e(e,t,n,r,o,s,l,c,f)}},hydrate:A3e,normalize:I3e},E3e=C3e;function D2(e,t){const n=e.props&&e.props[t];yr(n)&&n()}function x3e(e,t,n,r,o,a,s,l,c){const{p:f,o:{createElement:h}}=c,p=h("div"),m=e.suspense=ede(e,o,r,t,p,n,a,s,l,c);f(null,m.pendingBranch=e.ssContent,p,null,r,m,a,s),m.deps>0?(D2(e,"onPending"),D2(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,a,s),Vy(m,e.ssFallback)):m.resolve(!1,!0)}function T3e(e,t,n,r,o,a,s,l,{p:c,um:f,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,g=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=m,hd(S,m)?(c(S,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():k&&(C||(c(b,g,n,r,o,null,a,s,l),Vy(p,g)))):(p.pendingId=RF++,C?(p.isHydrating=!1,p.activeBranch=S):f(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(b,g,n,r,o,null,a,s,l),Vy(p,g))):b&&hd(b,m)?(c(b,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(b&&hd(b,m))c(b,m,n,r,o,p,a,s,l),Vy(p,m);else if(D2(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=RF++,c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:E,pendingId:x}=p;E>0?setTimeout(()=>{p.pendingId===x&&p.fallback(g)},E):E===0&&p.fallback(g)}}function ede(e,t,n,r,o,a,s,l,c,f,h=!1){const{p,m,um:g,n:b,o:{parentNode:S,remove:k}}=f;let C;const E=L3e(e);E&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const x=e.props?E2(e.props.timeout):void 0,_=a,A={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:RF++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(R=!1,M=!1){const{vnode:D,activeBranch:N,pendingBranch:L,pendingId:B,effects:F,parentComponent:j,container:z}=A;let q=!1;A.isHydrating?A.isHydrating=!1:R||(q=N&&L.transition&&L.transition.mode==="out-in",q&&(N.transition.afterLeave=()=>{B===A.pendingId&&(m(L,z,a===_?b(N):a,0),L2(F))}),N&&(S(N.el)===z&&(a=b(N)),g(N,j,A,!0)),q||m(L,z,a,0)),Vy(A,L),A.pendingBranch=null,A.isInFallback=!1;let G=A.parent,ee=!1;for(;G;){if(G.pendingBranch){G.effects.push(...F),ee=!0;break}G=G.parent}!ee&&!q&&L2(F),A.effects=[],E&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!M&&t.resolve()),D2(D,"onResolve")},fallback(R){if(!A.pendingBranch)return;const{vnode:M,activeBranch:D,parentComponent:N,container:L,namespace:B}=A;D2(M,"onFallback");const F=b(D),j=()=>{A.isInFallback&&(p(null,R,L,F,N,null,B,l,c),Vy(A,R))},z=R.transition&&R.transition.mode==="out-in";z&&(D.transition.afterLeave=j),A.isInFallback=!0,g(D,N,null,!0),z||j()},move(R,M,D){A.activeBranch&&m(A.activeBranch,R,M,D),A.container=R},next(){return A.activeBranch&&b(A.activeBranch)},registerDep(R,M,D){const N=!!A.pendingBranch;N&&A.deps++;const L=R.vnode.el;R.asyncDep.catch(B=>{$g(B,R,0)}).then(B=>{if(R.isUnmounted||A.isUnmounted||A.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:F}=R;OF(R,B,!1),L&&(F.el=L);const j=!L&&R.subTree.el;M(R,F,S(L||R.subTree.el),L?null:b(R.subTree),A,s,D),j&&k(j),v3(R,F.el),N&&--A.deps===0&&A.resolve()})},unmount(R,M){A.isUnmounted=!0,A.activeBranch&&g(A.activeBranch,n,R,M),A.pendingBranch&&g(A.pendingBranch,n,R,M)}};return A}function A3e(e,t,n,r,o,a,s,l,c){const f=t.suspense=ede(t,r,n,e.parentNode,document.createElement("div"),null,o,a,s,l,!0),h=c(e,f.pendingBranch=t.ssContent,n,f,a,s);return f.deps===0&&f.resolve(!1,!0),h}function I3e(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Gee(r?n.default:n),e.ssFallback=r?Gee(n.fallback):O(ds)}function Gee(e){let t;if(yr(e)){const n=vg&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=hl,nde())}return Fn(e)&&(e=_3e(e)),e=uu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function tde(e,t){t&&t.pendingBranch?Fn(e)?t.effects.push(...e):t.effects.push(e):L2(e)}function Vy(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,v3(r,o))}function L3e(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ft=Symbol.for("v-fgt"),tv=Symbol.for("v-txt"),ds=Symbol.for("v-cmt"),eg=Symbol.for("v-stc"),MS=[];let hl=null;function H(e=!1){MS.push(hl=e?null:[])}function nde(){MS.pop(),hl=MS[MS.length-1]||null}let vg=1;function O2(e,t=!1){vg+=e,e<0&&hl&&t&&(hl.hasOnce=!0)}function rde(e){return e.dynamicChildren=vg>0?hl||Km:null,nde(),vg>0&&hl&&hl.push(e),e}function J(e,t,n,r,o,a){return rde(I(e,t,n,r,o,a,!0))}function Ye(e,t,n,r,o){return rde(O(e,t,n,r,o,!0))}function Di(e){return e?e.__v_isVNode===!0:!1}function hd(e,t){return e.type===t.type&&e.key===t.key}function P3e(e){}const ide=({key:e})=>e??null,ET=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Cr(e)||To(e)||yr(e)?{i:Oa,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,a=e===Ft?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ide(t),ref:t&&ET(t),scopeId:d3,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:Oa};return l?(WU(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Cr(n)?8:16),vg>0&&!s&&hl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&hl.push(c),c}const O=R3e;function R3e(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===Lce)&&(e=ds),Di(e)){const l=ml(e,t,!0);return n&&WU(l,n),vg>0&&!a&&hl&&(l.shapeFlag&6?hl[hl.indexOf(e)]=l:hl.push(l)),l.patchFlag=-2,l}if(F3e(e)&&(e=e.__vccOpts),t){t=fa(t);let{class:l,style:c}=t;l&&!Cr(l)&&(t.class=se(l)),Fi(c)&&(u3(c)&&!Fn(c)&&(c=fi({},c)),t.style=je(c))}const s=Cr(e)?1:xA(e)?128:mce(e)?64:Fi(e)?4:yr(e)?2:0;return I(e,t,n,r,o,s,a,!0)}function fa(e){return e?u3(e)||Nce(e)?fi({},e):e:null}function ml(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,f=t?Bt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&ide(f),ref:t&&t.ref?n&&a?Fn(a)?a.concat(ET(t)):[a,ET(t)]:ET(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ft?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ml(e.ssContent),ssFallback:e.ssFallback&&ml(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Dh(h,c.clone(h)),h}function He(e=" ",t=0){return O(tv,null,e,t)}function mg(e,t){const n=O(eg,null,e);return n.staticCount=t,n}function Ae(e="",t=!1){return t?(H(),Ye(ds,null,e)):O(ds,null,e)}function uu(e){return e==null||typeof e=="boolean"?O(ds):Fn(e)?O(Ft,null,e.slice()):Di(e)?Bp(e):O(tv,null,String(e))}function Bp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ml(e)}function WU(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Fn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),WU(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Nce(t)?t._ctx=Oa:o===3&&Oa&&(Oa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else yr(t)?(t={default:t,_ctx:Oa},n=32):(t=String(t),r&64?(n=16,t=[He(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bt(...e){const t={};for(let n=0;nDa||Oa;let TA,MF;{const e=Sk(),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)}};TA=t("__VUE_INSTANCE_SETTERS__",n=>Da=n),MF=t("__VUE_SSR_SETTERS__",n=>h1=n)}const gg=e=>{const t=Da;return TA(e),e.scope.on(),()=>{e.scope.off(),TA(t)}},DF=()=>{Da&&Da.scope.off(),TA(null)};function sde(e){return e.vnode.shapeFlag&4}let h1=!1;function ade(e,t=!1,n=!1){t&&MF(t);const{props:r,children:o}=e.vnode,a=sde(e);l3e(e,r,a,t),f3e(e,o,n||t);const s=a?O3e(e,t):void 0;return t&&MF(!1),s}function O3e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,AF);const{setup:r}=n;if(r){Ph();const o=e.setupContext=r.length>1?ude(e):null,a=gg(e),s=V1(r,e,0,[e.props,o]),l=t3(s);if(Rh(),a(),(l||e.sp)&&!ev(e)&&OU(e),l){if(s.then(DF,DF),t)return s.then(c=>{OF(e,c,t)}).catch(c=>{$g(c,e,0)});e.asyncDep=s}else OF(e,s,t)}else lde(e,t)}function OF(e,t,n){yr(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fi(t)&&(e.setupState=PU(t)),lde(e,n)}let AA,$F;function $3e(e){AA=e,$F=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,VIe))}}const N3e=()=>!AA;function lde(e,t,n){const r=e.type;if(!e.render){if(!t&&AA&&!r.render){const o=r.template||VU(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,f=fi(fi({isCustomElement:a,delimiters:l},s),c);r.render=AA(o,f)}}e.render=r.render||ha,$F&&$F(e)}{const o=gg(e);Ph();try{t3e(e)}finally{Rh(),o()}}}const B3e={get(e,t){return ul(e,"get",""),e[t]}};function ude(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,B3e),slots:e.slots,emit:e.emit,expose:t}}function Ek(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(PU(c3(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in RS)return RS[n](e)},has(t,n){return n in t||n in RS}})):e.proxy}function NF(e,t=!0){return yr(e)?e.displayName||e.name:e.name||t&&e.__name}function F3e(e){return yr(e)&&"__vccOpts"in e}const V=(e,t)=>oIe(e,t,h1);function ra(e,t,n){try{O2(-1);const r=arguments.length;return r===2?Fi(t)&&!Fn(t)?Di(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Di(n)&&(n=[n]),O(e,t,n))}finally{O2(1)}}function j3e(){}function V3e(e,t,n,r){const o=n[r];if(o&&cde(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function cde(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&hl&&hl.push(e),!0}const dde="3.5.22",U3e=ha,z3e=pIe,H3e=Sy,W3e=pce,G3e={createComponentInstance:ode,setupComponent:ade,renderComponentRoot:CT,setCurrentRenderingInstance:R2,isVNode:Di,normalizeVNode:uu,getComponentPublicInstance:Ek,ensureValidVNode:jU,pushWarningContext:cIe,popWarningContext:dIe},K3e=G3e,q3e=null,Y3e=null,X3e=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let BF;const Kee=typeof window<"u"&&window.trustedTypes;if(Kee)try{BF=Kee.createPolicy("vue",{createHTML:e=>e})}catch{}const fde=BF?e=>BF.createHTML(e):e=>e,Z3e="http://www.w3.org/2000/svg",J3e="http://www.w3.org/1998/Math/MathML",oh=typeof document<"u"?document:null,qee=oh&&oh.createElement("template"),Q3e={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"?oh.createElementNS(Z3e,e):t==="mathml"?oh.createElementNS(J3e,e):n?oh.createElement(e,{is:n}):oh.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>oh.createTextNode(e),createComment:e=>oh.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>oh.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{qee.innerHTML=fde(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=qee.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]}},vp="transition",L_="animation",p1=Symbol("_vtc"),hde={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},pde=fi({},DU,hde),eLe=e=>(e.displayName="Transition",e.props=pde,e),Es=eLe((e,{slots:t})=>ra(Sce,vde(e),t)),rm=(e,t=[])=>{Fn(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yee=e=>e?Fn(e)?e.some(t=>t.length>1):e.length>1:!1;function vde(e){const t={};for(const F in e)F in hde||(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:f=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,b=tLe(o),S=b&&b[0],k=b&&b[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:x,onLeave:_,onLeaveCancelled:A,onBeforeAppear:R=C,onAppear:M=E,onAppearCancelled:D=x}=t,N=(F,j,z,q)=>{F._enterCancelled=q,Pp(F,j?h:l),Pp(F,j?f:s),z&&z()},L=(F,j)=>{F._isLeaving=!1,Pp(F,p),Pp(F,g),Pp(F,m),j&&j()},B=F=>(j,z)=>{const q=F?M:E,G=()=>N(j,F,z);rm(q,[j,G]),Xee(()=>{Pp(j,F?c:a),Wd(j,F?h:l),Yee(q)||Zee(j,r,S,G)})};return fi(t,{onBeforeEnter(F){rm(C,[F]),Wd(F,a),Wd(F,s)},onBeforeAppear(F){rm(R,[F]),Wd(F,c),Wd(F,f)},onEnter:B(!1),onAppear:B(!0),onLeave(F,j){F._isLeaving=!0;const z=()=>L(F,j);Wd(F,p),F._enterCancelled?(Wd(F,m),FF(F)):(FF(F),Wd(F,m)),Xee(()=>{F._isLeaving&&(Pp(F,p),Wd(F,g),Yee(_)||Zee(F,r,k,z))}),rm(_,[F,z])},onEnterCancelled(F){N(F,!1,void 0,!0),rm(x,[F])},onAppearCancelled(F){N(F,!0,void 0,!0),rm(D,[F])},onLeaveCancelled(F){L(F),rm(A,[F])}})}function tLe(e){if(e==null)return null;if(Fi(e))return[f8(e.enter),f8(e.leave)];{const t=f8(e);return[t,t]}}function f8(e){return E2(e)}function Wd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[p1]||(e[p1]=new Set)).add(t)}function Pp(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[p1];n&&(n.delete(t),n.size||(e[p1]=void 0))}function Xee(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nLe=0;function Zee(e,t,n,r){const o=e._endId=++nLe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=mde(e,t);if(!s)return r();const f=s+"end";let h=0;const p=()=>{e.removeEventListener(f,m),a()},m=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[b]||"").split(", "),o=r(`${vp}Delay`),a=r(`${vp}Duration`),s=Jee(o,a),l=r(`${L_}Delay`),c=r(`${L_}Duration`),f=Jee(l,c);let h=null,p=0,m=0;t===vp?s>0&&(h=vp,p=s,m=a.length):t===L_?f>0&&(h=L_,p=f,m=c.length):(p=Math.max(s,f),h=p>0?s>f?vp:L_:null,m=h?h===vp?a.length:c.length:0);const g=h===vp&&/\b(?:transform|all)(?:,|$)/.test(r(`${vp}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:g}}function Jee(e,t){for(;e.lengthQee(n)+Qee(e[r])))}function Qee(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function FF(e){return(e?e.ownerDocument:document).body.offsetHeight}function rLe(e,t,n){const r=e[p1];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const IA=Symbol("_vod"),gde=Symbol("_vsh"),es={name:"show",beforeMount(e,{value:t},{transition:n}){e[IA]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):P_(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),P_(e,!0),r.enter(e)):r.leave(e,()=>{P_(e,!1)}):P_(e,t))},beforeUnmount(e,{value:t}){P_(e,t)}};function P_(e,t){e.style.display=t?e[IA]:"none",e[gde]=!t}function iLe(){es.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const yde=Symbol("");function oLe(e){const t=uo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>LA(a,o))},r=()=>{const o=e(t.proxy);t.ce?LA(t.ce,o):jF(t.subTree,o),n(o)};NU(()=>{L2(r)}),ln(()=>{Dt(r,ha,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),si(()=>o.disconnect())})}function jF(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{jF(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)LA(e.el,t);else if(e.type===Ft)e.children.forEach(n=>jF(n,t));else if(e.type===eg){let{el:n,anchor:r}=e;for(;n&&(LA(n,t),n!==r);)n=n.nextSibling}}function LA(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Hue(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[yde]=r}}const sLe=/(?:^|;)\s*display\s*:/;function aLe(e,t,n){const r=e.style,o=Cr(n);let a=!1;if(n&&!o){if(t)if(Cr(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&xT(r,l,"")}else for(const s in t)n[s]==null&&xT(r,s,"");for(const s in n)s==="display"&&(a=!0),xT(r,s,n[s])}else if(o){if(t!==n){const s=r[yde];s&&(n+=";"+s),r.cssText=n,a=sLe.test(n)}}else t&&e.removeAttribute("style");IA in e&&(e[IA]=a?r.display:"",e[gde]&&(r.display="none"))}const ete=/\s*!important$/;function xT(e,t,n){if(Fn(n))n.forEach(r=>xT(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=lLe(e,t);ete.test(n)?e.setProperty(cl(r),n.replace(ete,""),"important"):e[r]=n}}const tte=["Webkit","Moz","ms"],h8={};function lLe(e,t){const n=h8[t];if(n)return n;let r=xo(t);if(r!=="filter"&&r in e)return h8[t]=r;r=Cv(r);for(let o=0;op8||(fLe.then(()=>p8=0),p8=Date.now());function pLe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Bc(vLe(r,n.value),t,5,[r])};return n.value=e,n.attached=hLe(),n}function vLe(e,t){if(Fn(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 ate=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mLe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?rLe(e,r,s):t==="style"?aLe(e,n,r):kv(t)?QI(t)||cLe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gLe(e,t,r,s))?(ite(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rte(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Cr(r))?ite(e,xo(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rte(e,t,r,s))};function gLe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ate(t)&&yr(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 ate(t)&&Cr(n)?!1:t in e}const lte={};function bde(e,t,n){let r=be(e,t);_k(r)&&(r=fi({},r,t));class o extends m3{constructor(s){super(r,s,n)}}return o.def=r,o}const yLe=((e,t)=>bde(e,t,Ade)),bLe=typeof HTMLElement<"u"?HTMLElement:class{};class m3 extends bLe{constructor(t,n={},r=m1){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!==m1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(fi({},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 m3){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,kn(()=>{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&&!Fn(a))for(const c in a){const f=a[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=E2(this._props[c])),(l||(l=Object.create(null)))[xo(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)$i(this,r)||Object.defineProperty(this,r,{get:()=>ot(n[r])})}_resolveProps(t){const{props:n}=t,r=Fn(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(xo))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):lte;const o=xo(t);n&&this._numberProps&&this._numberProps[o]&&(r=E2(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===lte?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(cl(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(cl(t),n+""):n||this.removeAttribute(cl(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Fc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,fi(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,_k(s[0])?fi({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),cl(a)!==a&&o(cl(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 _de(e){const t=uo(),n=t&&t.ce;return n||null}function _Le(){const e=_de();return e&&e.shadowRoot}function SLe(e="$style"){{const t=uo();if(!t)return mi;const n=t.type.__cssModules;if(!n)return mi;const r=n[e];return r||mi}}const Sde=new WeakMap,kde=new WeakMap,PA=Symbol("_moveCb"),ute=Symbol("_enterCb"),kLe=e=>(delete e.props.mode,e),wLe=kLe({name:"TransitionGroup",props:fi({},pde,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=uo(),r=MU();let o,a;return Ha(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!TLe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(CLe),o.forEach(ELe);const l=o.filter(xLe);FF(n.vnode.el),l.forEach(c=>{const f=c.el,h=f.style;Wd(f,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=f[PA]=m=>{m&&m.target!==f||(!m||m.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",p),f[PA]=null,Pp(f,s))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Ti(e),l=vde(s);let c=s.tag||Ft;if(o=[],a)for(let f=0;f{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}=mde(r);return a.removeChild(r),s}const lv=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fn(t)?n=>Xm(t,n):t};function ALe(e){e.target.composing=!0}function cte(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rc=Symbol("_assign"),Fa={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Rc]=lv(o);const a=r||o.props&&o.props.type==="number";ph(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=C2(l)),e[Rc](l)}),n&&ph(e,"change",()=>{e.value=e.value.trim()}),t||(ph(e,"compositionstart",ALe),ph(e,"compositionend",cte),ph(e,"change",cte))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Rc]=lv(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?C2(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))}},GU={deep:!0,created(e,t,n){e[Rc]=lv(n),ph(e,"change",()=>{const r=e._modelValue,o=v1(e),a=e.checked,s=e[Rc];if(Fn(r)){const l=kk(r,o),c=l!==-1;if(a&&!c)s(r.concat(o));else if(!a&&c){const f=[...r];f.splice(l,1),s(f)}}else if(wv(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(wde(e,a))})},mounted:dte,beforeUpdate(e,t,n){e[Rc]=lv(n),dte(e,t,n)}};function dte(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Fn(t))o=kk(t,r.props.value)>-1;else if(wv(t))o=t.has(r.props.value);else{if(t===n)return;o=Lh(t,wde(e,!0))}e.checked!==o&&(e.checked=o)}const KU={created(e,{value:t},n){e.checked=Lh(t,n.props.value),e[Rc]=lv(n),ph(e,"change",()=>{e[Rc](v1(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Rc]=lv(r),t!==n&&(e.checked=Lh(t,r.props.value))}},qU={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=wv(t);ph(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?C2(v1(s)):v1(s));e[Rc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,kn(()=>{e._assigning=!1})}),e[Rc]=lv(r)},mounted(e,{value:t}){fte(e,t)},beforeUpdate(e,t,n){e[Rc]=lv(n)},updated(e,{value:t}){e._assigning||fte(e,t)}};function fte(e,t){const n=e.multiple,r=Fn(t);if(!(n&&!r&&!wv(t))){for(let o=0,a=e.options.length;oString(f)===String(l)):s.selected=kk(t,l)>-1}else s.selected=t.has(l);else if(Lh(v1(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function v1(e){return"_value"in e?e._value:e.value}function wde(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const g3={created(e,t,n){GE(e,t,n,null,"created")},mounted(e,t,n){GE(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){GE(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){GE(e,t,n,r,"updated")}};function Cde(e,t){switch(e){case"SELECT":return qU;case"TEXTAREA":return Fa;default:switch(t){case"checkbox":return GU;case"radio":return KU;default:return Fa}}}function GE(e,t,n,r,o){const s=Cde(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function ILe(){Fa.getSSRProps=({value:e})=>({value:e}),KU.getSSRProps=({value:e},t)=>{if(t.props&&Lh(t.props.value,e))return{checked:!0}},GU.getSSRProps=({value:e},t)=>{if(Fn(e)){if(t.props&&kk(e,t.props.value)>-1)return{checked:!0}}else if(wv(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},g3.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Cde(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const LLe=["ctrl","shift","alt","meta"],PLe={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)=>LLe.some(n=>e[`${n}Key`]&&!t.includes(n))},$o=(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=cl(o.key);if(t.some(s=>s===a||RLe[s]===a))return e(o)}))},Ede=fi({patchProp:mLe},Q3e);let DS,hte=!1;function xde(){return DS||(DS=zce(Ede))}function Tde(){return DS=hte?DS:Hce(Ede),hte=!0,DS}const Fc=((...e)=>{xde().render(...e)}),MLe=((...e)=>{Tde().hydrate(...e)}),m1=((...e)=>{const t=xde().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Lde(r);if(!o)return;const a=t._component;!yr(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Ide(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),Ade=((...e)=>{const t=Tde().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Lde(r);if(o)return n(o,!0,Ide(o))},t});function Ide(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Lde(e){return Cr(e)?document.querySelector(e):e}let pte=!1;const DLe=()=>{pte||(pte=!0,ILe(),iLe())},OLe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Sce,BaseTransitionPropsValidators:DU,Comment:ds,DeprecationTypes:X3e,EffectScope:CU,ErrorCodes:hIe,ErrorTypeStrings:z3e,Fragment:Ft,KeepAlive:NIe,ReactiveEffect:x2,Static:eg,Suspense:E3e,Teleport:Ng,Text:tv,TrackOpTypes:sIe,Transition:Es,TransitionGroup:z1,TriggerOpTypes:aIe,VueElement:m3,assertNumber:fIe,callWithAsyncErrorHandling:Bc,callWithErrorHandling:V1,camelize:xo,capitalize:Cv,cloneVNode:ml,compatUtils:Y3e,computed:V,createApp:m1,createBlock:Ye,createCommentVNode:Ae,createElementBlock:J,createElementVNode:I,createHydrationRenderer:Hce,createPropsRestProxy:QIe,createRenderer:zce,createSSRApp:Ade,createSlots:yo,createStaticVNode:mg,createTextVNode:He,createVNode:O,customRef:ace,defineAsyncComponent:Ev,defineComponent:be,defineCustomElement:bde,defineEmits:zIe,defineExpose:HIe,defineModel:KIe,defineOptions:WIe,defineProps:UIe,defineSSRCustomElement:yLe,defineSlots:GIe,devtools:H3e,effect:LAe,effectScope:EU,getCurrentInstance:uo,getCurrentScope:i3,getCurrentWatcher:lIe,getTransitionRawChildren:f3,guardReactiveProps:fa,h:ra,handleError:$g,hasInjectionContext:Dce,hydrate:MLe,hydrateOnIdle:LIe,hydrateOnInteraction:DIe,hydrateOnMediaQuery:MIe,hydrateOnVisible:RIe,initCustomFormatter:j3e,initDirectivesForSSR:DLe,inject:xn,isMemoSame:cde,isProxy:u3,isReactive:lf,isReadonly:Mh,isRef:To,isRuntimeOnly:N3e,isShallow:Qu,isVNode:Di,markRaw:c3,mergeDefaults:ZIe,mergeModels:JIe,mergeProps:Bt,nextTick:kn,normalizeClass:se,normalizeProps:Ni,normalizeStyle:je,onActivated:wce,onBeforeMount:Ece,onBeforeUnmount:No,onBeforeUpdate:NU,onDeactivated:$U,onErrorCaptured:Ice,onMounted:ln,onRenderTracked:Ace,onRenderTriggered:Tce,onScopeDispose:xU,onServerPrefetch:xce,onUnmounted:si,onUpdated:Ha,onWatcherCleanup:uce,openBlock:H,popScopeId:yIe,provide:Wr,proxyRefs:PU,pushScopeId:gIe,queuePostFlushCb:L2,reactive:Wt,readonly:I2,ref:pe,registerRuntimeCompiler:$3e,render:Fc,renderList:fn,renderSlot:ft,resolveComponent:Pe,resolveDirective:U1,resolveDynamicComponent:$a,resolveFilter:q3e,resolveTransitionHooks:f1,setBlockTracking:O2,setDevtoolsHook:W3e,setTransitionHooks:Dh,shallowReactive:LU,shallowReadonly:XAe,shallowRef:Jm,ssrContextKey:qce,ssrUtils:K3e,stop:PAe,toDisplayString:Ne,toHandlerKey:Ym,toHandlers:jIe,toRaw:Ti,toRef:ku,toRefs:Jt,toValue:QAe,transformVNodeArgs:P3e,triggerRef:JAe,unref:ot,useAttrs:XIe,useCssModule:SLe,useCssVars:oLe,useHost:_de,useId:kIe,useModel:g3e,useSSRContext:Yce,useShadowRoot:_Le,useSlots:YIe,useTemplateRef:wIe,useTransitionState:MU,vModelCheckbox:GU,vModelDynamic:g3,vModelRadio:KU,vModelSelect:qU,vModelText:Fa,vShow:es,version:dde,warn:U3e,watch:Dt,watchEffect:Cs,watchPostEffect:v3e,watchSyncEffect:Xce,withAsyncContext:e3e,withCtx:de,withDefaults:qIe,withDirectives:hi,withKeys:mh,withMemo:V3e,withModifiers:$o,withScopeId:bIe},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const ky=typeof document<"u";function Pde(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $Le(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Pde(e.default)}const Xi=Object.assign;function v8(e,t){const n={};for(const r in t){const o=t[r];n[r]=bd(o)?o.map(e):e(o)}return n}const OS=()=>{},bd=Array.isArray,Rde=/#/g,NLe=/&/g,BLe=/\//g,FLe=/=/g,jLe=/\?/g,Mde=/\+/g,VLe=/%5B/g,ULe=/%5D/g,Dde=/%5E/g,zLe=/%60/g,Ode=/%7B/g,HLe=/%7C/g,$de=/%7D/g,WLe=/%20/g;function YU(e){return encodeURI(""+e).replace(HLe,"|").replace(VLe,"[").replace(ULe,"]")}function GLe(e){return YU(e).replace(Ode,"{").replace($de,"}").replace(Dde,"^")}function VF(e){return YU(e).replace(Mde,"%2B").replace(WLe,"+").replace(Rde,"%23").replace(NLe,"%26").replace(zLe,"`").replace(Ode,"{").replace($de,"}").replace(Dde,"^")}function KLe(e){return VF(e).replace(FLe,"%3D")}function qLe(e){return YU(e).replace(Rde,"%23").replace(jLe,"%3F")}function YLe(e){return e==null?"":qLe(e).replace(BLe,"%2F")}function $2(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const XLe=/\/$/,ZLe=e=>e.replace(XLe,"");function m8(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=t5e(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:$2(s)}}function JLe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function vte(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function QLe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&g1(t.matched[r],n.matched[o])&&Nde(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function g1(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Nde(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!e5e(e[n],t[n]))return!1;return!0}function e5e(e,t){return bd(e)?mte(e,t):bd(t)?mte(t,e):e===t}function mte(e,t){return bd(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function t5e(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 mp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var N2;(function(e){e.pop="pop",e.push="push"})(N2||(N2={}));var $S;(function(e){e.back="back",e.forward="forward",e.unknown=""})($S||($S={}));function n5e(e){if(!e)if(ky){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ZLe(e)}const r5e=/^[^#]+#/;function i5e(e,t){return e.replace(r5e,"#")+t}function o5e(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 y3=()=>({left:window.scrollX,top:window.scrollY});function s5e(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=o5e(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 gte(e,t){return(history.state?history.state.position-t:-1)+e}const UF=new Map;function a5e(e,t){UF.set(e,t)}function l5e(e){const t=UF.get(e);return UF.delete(e),t}let u5e=()=>location.protocol+"//"+location.host;function Bde(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),vte(c,"")}return vte(n,e)+r+o}function c5e(e,t,n,r){let o=[],a=[],s=null;const l=({state:m})=>{const g=Bde(e,location),b=n.value,S=t.value;let k=0;if(m){if(n.value=g,t.value=m,s&&s===b){s=null;return}k=S?m.position-S.position:0}else r(g);o.forEach(C=>{C(n.value,b,{delta:k,type:N2.pop,direction:k?k>0?$S.forward:$S.back:$S.unknown})})};function c(){s=n.value}function f(m){o.push(m);const g=()=>{const b=o.indexOf(m);b>-1&&o.splice(b,1)};return a.push(g),g}function h(){const{history:m}=window;m.state&&m.replaceState(Xi({},m.state,{scroll:y3()}),"")}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:f,destroy:p}}function yte(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?y3():null}}function d5e(e){const{history:t,location:n}=window,r={value:Bde(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,f,h){const p=e.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:u5e()+e+c;try{t[h?"replaceState":"pushState"](f,"",m),o.value=f}catch(g){console.error(g),n[h?"replace":"assign"](m)}}function s(c,f){const h=Xi({},t.state,yte(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});a(c,h,!0),r.value=c}function l(c,f){const h=Xi({},o.value,t.state,{forward:c,scroll:y3()});a(h.current,h,!0);const p=Xi({},yte(r.value,c,null),{position:h.position+1},f);a(c,p,!1),r.value=c}return{location:r,state:o,push:l,replace:s}}function f5e(e){e=n5e(e);const t=d5e(e),n=c5e(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=Xi({location:"",base:e,go:r,createHref:i5e.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 h5e(e){return typeof e=="string"||e&&typeof e=="object"}function Fde(e){return typeof e=="string"||typeof e=="symbol"}const jde=Symbol("");var bte;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(bte||(bte={}));function y1(e,t){return Xi(new Error,{type:e,[jde]:!0},t)}function Jf(e,t){return e instanceof Error&&jde in e&&(t==null||!!(e.type&t))}const _te="[^/]+?",p5e={sensitive:!1,strict:!1,start:!0,end:!0},v5e=/[.+*?^${}()[\]/\\]/g;function m5e(e,t){const n=Xi({},p5e,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Vde(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const y5e={type:0,value:""},b5e=/[a-zA-Z0-9_]/;function _5e(e){if(!e)return[[]];if(e==="/")return[[y5e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let l=0,c,f="",h="";function p(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=c}for(;l{s(x)}:OS}function s(p){if(Fde(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=E5e(p,n);n.splice(m,0,p),p.record.name&&!Cte(p)&&r.set(p.record.name,p)}function f(p,m){let g,b={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw y1(1,{location:p});k=g.record.name,b=Xi(kte(m.params,g.keys.filter(x=>!x.optional).concat(g.parent?g.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),p.params&&kte(p.params,g.keys.map(x=>x.name))),S=g.stringify(b)}else if(p.path!=null)S=p.path,g=n.find(x=>x.re.test(S)),g&&(b=g.parse(S),k=g.record.name);else{if(g=m.name?r.get(m.name):n.find(x=>x.re.test(m.path)),!g)throw y1(1,{location:p,currentLocation:m});k=g.record.name,b=Xi({},m.params,p.params),S=g.stringify(b)}const C=[];let E=g;for(;E;)C.unshift(E.record),E=E.parent;return{name:k,path:S,params:b,matched:C,meta:C5e(C)}}e.forEach(p=>a(p));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:s,clearRoutes:h,getRoutes:l,getRecordMatcher:o}}function kte(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function wte(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:w5e(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 w5e(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 Cte(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function C5e(e){return e.reduce((t,n)=>Xi(t,n.meta),{})}function Ete(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function E5e(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Vde(e,t[a])<0?r=a:n=a+1}const o=x5e(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function x5e(e){let t=e;for(;t=t.parent;)if(Ude(t)&&Vde(e,t)===0)return t}function Ude({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function T5e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&VF(a)):[r&&VF(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function A5e(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=bd(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const I5e=Symbol(""),Tte=Symbol(""),b3=Symbol(""),XU=Symbol(""),zF=Symbol("");function R_(){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 Fp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const f=m=>{m===!1?c(y1(4,{from:n,to:t})):m instanceof Error?c(m):h5e(m)?c(y1(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,f));let p=Promise.resolve(h);e.length<3&&(p=p.then(f)),p.catch(m=>c(m))})}function g8(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(Pde(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Fp(h,n,r,s,l,o))}else{let f=c();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const p=$Le(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Fp(g,n,r,s,l,o)()}))}}return a}function Ate(e){const t=xn(b3),n=xn(XU),r=V(()=>{const c=ot(e.to);return t.resolve(c)}),o=V(()=>{const{matched:c}=r.value,{length:f}=c,h=c[f-1],p=n.matched;if(!h||!p.length)return-1;const m=p.findIndex(g1.bind(null,h));if(m>-1)return m;const g=Ite(c[f-2]);return f>1&&Ite(h)===g&&p[p.length-1].path!==g?p.findIndex(g1.bind(null,c[f-2])):m}),a=V(()=>o.value>-1&&D5e(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&Nde(n.params,r.value.params));function l(c={}){if(M5e(c)){const f=t[ot(e.replace)?"replace":"push"](ot(e.to)).catch(OS);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function L5e(e){return e.length===1?e[0]:e}const P5e=be({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:Ate,setup(e,{slots:t}){const n=Wt(Ate(e)),{options:r}=xn(b3),o=V(()=>({[Lte(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Lte(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&L5e(t.default(n));return e.custom?a:ra("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),R5e=P5e;function M5e(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 D5e(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(!bd(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function Ite(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Lte=(e,t,n)=>e??t??n,O5e=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=xn(zF),o=V(()=>e.route||r.value),a=xn(Tte,0),s=V(()=>{let f=ot(a);const{matched:h}=o.value;let p;for(;(p=h[f])&&!p.components;)f++;return f}),l=V(()=>o.value.matched[s.value]);Wr(Tte,V(()=>s.value+1)),Wr(I5e,l),Wr(zF,o);const c=pe();return Dt(()=>[c.value,l.value,e.name],([f,h,p],[m,g,b])=>{h&&(h.instances[p]=f,g&&g!==h&&f&&f===m&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),f&&h&&(!g||!g1(h,g)||!m)&&(h.enterCallbacks[p]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,p=l.value,m=p&&p.components[h];if(!m)return Pte(n.default,{Component:m,route:f});const g=p.props[h],b=g?g===!0?f.params:typeof g=="function"?g(f):g:null,k=ra(m,Xi({},b,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Pte(n.default,{Component:k,route:f})||k}}});function Pte(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $5e=O5e;function N5e(e){const t=k5e(e.routes,e),n=e.parseQuery||T5e,r=e.stringifyQuery||xte,o=e.history,a=R_(),s=R_(),l=R_(),c=Jm(mp);let f=mp;ky&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=v8.bind(null,ge=>""+ge),p=v8.bind(null,YLe),m=v8.bind(null,$2);function g(ge,Oe){let Fe,Xe;return Fde(ge)?(Fe=t.getRecordMatcher(ge),Xe=Oe):Xe=ge,t.addRoute(Xe,Fe)}function b(ge){const Oe=t.getRecordMatcher(ge);Oe&&t.removeRoute(Oe)}function S(){return t.getRoutes().map(ge=>ge.record)}function k(ge){return!!t.getRecordMatcher(ge)}function C(ge,Oe){if(Oe=Xi({},Oe||c.value),typeof ge=="string"){const ye=m8(n,ge,Oe.path),Me=t.resolve({path:ye.path},Oe),We=o.createHref(ye.fullPath);return Xi(ye,Me,{params:m(Me.params),hash:$2(ye.hash),redirectedFrom:void 0,href:We})}let Fe;if(ge.path!=null)Fe=Xi({},ge,{path:m8(n,ge.path,Oe.path).path});else{const ye=Xi({},ge.params);for(const Me in ye)ye[Me]==null&&delete ye[Me];Fe=Xi({},ge,{params:p(ye)}),Oe.params=p(Oe.params)}const Xe=t.resolve(Fe,Oe),Je=ge.hash||"";Xe.params=h(m(Xe.params));const Ke=JLe(r,Xi({},ge,{hash:GLe(Je),path:Xe.path})),_e=o.createHref(Ke);return Xi({fullPath:Ke,hash:Je,query:r===xte?A5e(ge.query):ge.query||{}},Xe,{redirectedFrom:void 0,href:_e})}function E(ge){return typeof ge=="string"?m8(n,ge,c.value.path):Xi({},ge)}function x(ge,Oe){if(f!==ge)return y1(8,{from:Oe,to:ge})}function _(ge){return M(ge)}function A(ge){return _(Xi(E(ge),{replace:!0}))}function R(ge){const Oe=ge.matched[ge.matched.length-1];if(Oe&&Oe.redirect){const{redirect:Fe}=Oe;let Xe=typeof Fe=="function"?Fe(ge):Fe;return typeof Xe=="string"&&(Xe=Xe.includes("?")||Xe.includes("#")?Xe=E(Xe):{path:Xe},Xe.params={}),Xi({query:ge.query,hash:ge.hash,params:Xe.path!=null?{}:ge.params},Xe)}}function M(ge,Oe){const Fe=f=C(ge),Xe=c.value,Je=ge.state,Ke=ge.force,_e=ge.replace===!0,ye=R(Fe);if(ye)return M(Xi(E(ye),{state:typeof ye=="object"?Xi({},Je,ye.state):Je,force:Ke,replace:_e}),Oe||Fe);const Me=Fe;Me.redirectedFrom=Oe;let We;return!Ke&&QLe(r,Xe,Fe)&&(We=y1(16,{to:Me,from:Xe}),te(Xe,Xe,!0,!1)),(We?Promise.resolve(We):L(Me,Xe)).catch(qe=>Jf(qe)?Jf(qe,2)?qe:K(qe):Q(qe,Me,Xe)).then(qe=>{if(qe){if(Jf(qe,2))return M(Xi({replace:_e},E(qe.to),{state:typeof qe.to=="object"?Xi({},Je,qe.to.state):Je,force:Ke}),Oe||Me)}else qe=F(Me,Xe,!0,_e,Je);return B(Me,Xe,qe),qe})}function D(ge,Oe){const Fe=x(ge,Oe);return Fe?Promise.reject(Fe):Promise.resolve()}function N(ge){const Oe=ae.values().next().value;return Oe&&typeof Oe.runWithContext=="function"?Oe.runWithContext(ge):ge()}function L(ge,Oe){let Fe;const[Xe,Je,Ke]=B5e(ge,Oe);Fe=g8(Xe.reverse(),"beforeRouteLeave",ge,Oe);for(const ye of Xe)ye.leaveGuards.forEach(Me=>{Fe.push(Fp(Me,ge,Oe))});const _e=D.bind(null,ge,Oe);return Fe.push(_e),$e(Fe).then(()=>{Fe=[];for(const ye of a.list())Fe.push(Fp(ye,ge,Oe));return Fe.push(_e),$e(Fe)}).then(()=>{Fe=g8(Je,"beforeRouteUpdate",ge,Oe);for(const ye of Je)ye.updateGuards.forEach(Me=>{Fe.push(Fp(Me,ge,Oe))});return Fe.push(_e),$e(Fe)}).then(()=>{Fe=[];for(const ye of Ke)if(ye.beforeEnter)if(bd(ye.beforeEnter))for(const Me of ye.beforeEnter)Fe.push(Fp(Me,ge,Oe));else Fe.push(Fp(ye.beforeEnter,ge,Oe));return Fe.push(_e),$e(Fe)}).then(()=>(ge.matched.forEach(ye=>ye.enterCallbacks={}),Fe=g8(Ke,"beforeRouteEnter",ge,Oe,N),Fe.push(_e),$e(Fe))).then(()=>{Fe=[];for(const ye of s.list())Fe.push(Fp(ye,ge,Oe));return Fe.push(_e),$e(Fe)}).catch(ye=>Jf(ye,8)?ye:Promise.reject(ye))}function B(ge,Oe,Fe){l.list().forEach(Xe=>N(()=>Xe(ge,Oe,Fe)))}function F(ge,Oe,Fe,Xe,Je){const Ke=x(ge,Oe);if(Ke)return Ke;const _e=Oe===mp,ye=ky?history.state:{};Fe&&(Xe||_e?o.replace(ge.fullPath,Xi({scroll:_e&&ye&&ye.scroll},Je)):o.push(ge.fullPath,Je)),c.value=ge,te(ge,Oe,Fe,_e),K()}let j;function z(){j||(j=o.listen((ge,Oe,Fe)=>{if(!xe.listening)return;const Xe=C(ge),Je=R(Xe);if(Je){M(Xi(Je,{replace:!0,force:!0}),Xe).catch(OS);return}f=Xe;const Ke=c.value;ky&&a5e(gte(Ke.fullPath,Fe.delta),y3()),L(Xe,Ke).catch(_e=>Jf(_e,12)?_e:Jf(_e,2)?(M(Xi(E(_e.to),{force:!0}),Xe).then(ye=>{Jf(ye,20)&&!Fe.delta&&Fe.type===N2.pop&&o.go(-1,!1)}).catch(OS),Promise.reject()):(Fe.delta&&o.go(-Fe.delta,!1),Q(_e,Xe,Ke))).then(_e=>{_e=_e||F(Xe,Ke,!1),_e&&(Fe.delta&&!Jf(_e,8)?o.go(-Fe.delta,!1):Fe.type===N2.pop&&Jf(_e,20)&&o.go(-1,!1)),B(Xe,Ke,_e)}).catch(OS)}))}let q=R_(),G=R_(),ee;function Q(ge,Oe,Fe){K(ge);const Xe=G.list();return Xe.length?Xe.forEach(Je=>Je(ge,Oe,Fe)):console.error(ge),Promise.reject(ge)}function X(){return ee&&c.value!==mp?Promise.resolve():new Promise((ge,Oe)=>{q.add([ge,Oe])})}function K(ge){return ee||(ee=!ge,z(),q.list().forEach(([Oe,Fe])=>ge?Fe(ge):Oe()),q.reset()),ge}function te(ge,Oe,Fe,Xe){const{scrollBehavior:Je}=e;if(!ky||!Je)return Promise.resolve();const Ke=!Fe&&l5e(gte(ge.fullPath,0))||(Xe||!Fe)&&history.state&&history.state.scroll||null;return kn().then(()=>Je(ge,Oe,Ke)).then(_e=>_e&&s5e(_e)).catch(_e=>Q(_e,ge,Oe))}const oe=ge=>o.go(ge);let ue;const ae=new Set,xe={currentRoute:c,listening:!0,addRoute:g,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:A,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:G.add,isReady:X,install(ge){const Oe=this;ge.component("RouterLink",R5e),ge.component("RouterView",$5e),ge.config.globalProperties.$router=Oe,Object.defineProperty(ge.config.globalProperties,"$route",{enumerable:!0,get:()=>ot(c)}),ky&&!ue&&c.value===mp&&(ue=!0,_(o.location).catch(Je=>{}));const Fe={};for(const Je in mp)Object.defineProperty(Fe,Je,{get:()=>c.value[Je],enumerable:!0});ge.provide(b3,Oe),ge.provide(XU,LU(Fe)),ge.provide(zF,c);const Xe=ge.unmount;ae.add(ge),ge.unmount=function(){ae.delete(ge),ae.size<1&&(f=mp,j&&j(),j=null,c.value=mp,ue=!1,ee=!1),Xe()}}};function $e(ge){return ge.reduce((Oe,Fe)=>Oe.then(()=>N(Fe)),Promise.resolve())}return xe}function B5e(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sg1(f,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(f=>g1(f,c))||o.push(c))}return[n,r,o]}function xu(){return xn(b3)}function _3(e){return xn(XU)}const Bg=Object.prototype.toString;function qn(e){return Bg.call(e)==="[object Array]"}function yl(e){return Bg.call(e)==="[object Null]"}function gl(e){return Bg.call(e)==="[object Boolean]"}function ar(e){return Bg.call(e)==="[object Object]"}const yg=e=>Bg.call(e)==="[object Promise]";function ts(e){return Bg.call(e)==="[object String]"}function Ge(e){return Bg.call(e)==="[object Number]"&&e===e}function mn(e){return e===void 0}function pn(e){return typeof e=="function"}function F5e(e){return ar(e)&&Object.keys(e).length===0}function Rte(e){return e||e===0}function TT(e){return e===window}const zde=e=>e?.$!==void 0,j5e=e=>/\[Q]Q/.test(e);function Mc(e){return ar(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const ja=Symbol("ArcoConfigProvider"),KE={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:"日"}}},V5e={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:KE,datePicker:{view:KE.view,month:KE.month,week:KE.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:"暂无"}},ZU=pe("zh-CN"),RA=Wt({"zh-CN":V5e}),U5e=(e,t)=>{for(const n of Object.keys(e))(!RA[n]||t?.overwrite)&&(RA[n]=e[n])},z5e=e=>{if(!RA[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}ZU.value=e},H5e=()=>ZU.value,Ao=()=>{const e=xn(ja,void 0),t=V(()=>{var o;return(o=e?.locale)!=null?o:RA[ZU.value]}),n=V(()=>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 ts(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,f)=>{var h;return(h=a[f])!=null?h:c}):l}}},W5e="A",G5e="arco",HF="$arco",jn=e=>{var t;return(t=e?.componentPrefix)!=null?t:W5e},Vn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[HF]={...(n=e.config.globalProperties[HF])!=null?n:{},classPrefix:t.classPrefix})},Ee=e=>{var t,n,r;const o=uo(),a=xn(ja,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[HF])==null?void 0:t.classPrefix)!=null?r:G5e;return e?`${s}-${e}`:s};var Hde=(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(){!WF||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),J5e?(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(){!WF||!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=Z5e.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})(),Wde=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof b1(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new aPe(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 b1(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 lPe(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})(),Kde=typeof WeakMap<"u"?new WeakMap:new Hde,qde=(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=Q5e.getInstance(),r=new uPe(t,n,this);Kde.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){qde.prototype[e]=function(){var t;return(t=Kde.get(this))[e].apply(t,arguments)}});var k3=(function(){return typeof MA.ResizeObserver<"u"?MA.ResizeObserver:qde})();const w3=e=>!!(e&&e.shapeFlag&1),xk=(e,t)=>!!(e&&e.shapeFlag&6),cPe=(e,t)=>!!(e&&e.shapeFlag&8),C3=(e,t)=>!!(e&&e.shapeFlag&16),E3=(e,t)=>!!(e&&e.shapeFlag&32),Uy=e=>{var t,n;if(e)for(const r of e){if(w3(r)||xk(r))return r;if(C3(r,r.children)){const o=Uy(r.children);if(o)return o}else if(E3(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=Uy(o);if(a)return a}}else if(qn(r)){const o=Uy(r);if(o)return o}}},dPe=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},Yde=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&Yde(o,t))return!0}return!1},JU=e=>{if(C3(e,e.children))return e.children;if(qn(e))return e},Xde=e=>{var t,n;if(w3(e))return e.el;if(xk(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Xde(e.component.subTree);if(r)return r}}else{const r=JU(e);return Zde(r)}},Zde=e=>{if(e&&e.length>0)for(const t of e){const n=Xde(t);if(n)return n}},uf=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])w3(a)||xk(a)||t&&cPe(a,a.children)?o.push(a):C3(a,a.children)?o.push(...uf(a.children,t)):E3(a,a.children)?o.push(...uf((r=(n=a.children).default)==null?void 0:r.call(n),t)):qn(a)&&o.push(...uf(a,t));return o};function fPe(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Di(o)&&o.type===Ft?E3(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):C3(o,o.children)?r.push(...t(o.children)):ts(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const Dl=e=>{if(e)return pn(e)?e:()=>e},Jde=(e,t)=>{var n;const r=[];if(xk(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...Jde(e.component.subTree,t));else{const o=JU(e);o&&r.push(...Qde(o,t))}return r},Qde=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...Jde(r,t));return n};var _d=be({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=pe(),a=V(()=>zde(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new k3(f=>{const h=f[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return Dt(a,c=>{r&&l(),c&&s(c)}),ln(()=>{a.value&&s(a.value)}),si(()=>{l()}),()=>{var c,f;const h=Uy((f=(c=n.default)==null?void 0:c.call(n))!=null?f:[]);return h?ml(h,{ref:o},!0):null}}});const efe=typeof window>"u"?global:window,tfe=efe.requestAnimationFrame,OA=efe.cancelAnimationFrame;function bg(e){let t=0;const n=(...r)=>{t&&OA(t),t=tfe(()=>{e(...r),t=0})};return n.cancel=()=>{OA(t),t=0},n}const zy=()=>{},nfe=()=>{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)}},Tk=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),ki=Tk?zy:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},Gi=Tk?zy:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},hPe=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},x3=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},rfe=(e,t)=>{var n;return Tk?zy():(n=(t??document).querySelector(e))!=null?n:void 0},Xd=(e,t)=>{if(ts(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return rfe(n,t)}return e},pPe=(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}},vPe=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,mPe=e=>e.tagName==="BODY"?window.innerWidth-nfe().width:e.offsetWidth-e.clientWidth;var De=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function gPe(e){return TT(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const yPe=be({name:"Affix",components:{ResizeObserver:_d},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=Ee("affix"),{target:r,targetContainer:o}=Jt(e),a=pe(),s=pe(),l=pe(!1),c=pe({}),f=pe({}),h=V(()=>({[n]:l.value})),p=bg(()=>{if(!a.value||!s.value)return;const{offsetTop:m,offsetBottom:g}=e,b=mn(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=gPe(s.value);let C=!1,E={};const x={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};b==="top"?(C=S.top-k.top<(m||0),E=C?{position:"fixed",top:`${k.top+(m||0)}px`}:{}):(C=k.bottom-S.bottom<(g||0),E=C?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),C!==l.value&&(l.value=C,t("change",C)),c.value=x,f.value={...E,...C?x:{}}});return ln(()=>{Cs(m=>{const g=r&&r.value!==window&&Xd(r.value)||window;s.value=g,g&&(ki(g,"scroll",p),ki(g,"resize",p),m(()=>{Gi(g,"scroll",p),Gi(g,"resize",p)}))}),Cs(m=>{if(!s.value)return;const g=o&&o.value!==window&&Xd(o.value)||window;g&&(ki(g,"scroll",p),ki(g,"resize",p),m(()=>{Gi(g,"scroll",p),Gi(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:f,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),bPe={ref:"wrapperRef"};function _Pe(e,t,n,r,o,a){const s=Pe("ResizeObserver");return H(),Ye(s,{onResize:e.updatePositionThrottle},{default:de(()=>[I("div",bPe,[e.isFixed?(H(),J("div",{key:0,style:je(e.placeholderStyles)},null,4)):Ae("v-if",!0),I("div",{class:se(e.classNames),style:je(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:de(()=>[ft(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var y8=De(yPe,[["render",_Pe]]);const SPe=Object.assign(y8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+y8.name,y8)}}),kPe=be({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Ee("icon-hover")}}});function wPe(e,t,n,r,o,a){return H(),J("span",{class:se([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[ft(e.$slots,"default")],2)}var _o=De(kPe,[["render",wPe]]);const CPe=be({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=Ee("icon"),r=V(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EPe=["stroke-width","stroke-linecap","stroke-linejoin"];function xPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1)]),14,EPe)}var b8=De(CPe,[["render",xPe]]);const Us=Object.assign(b8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b8.name,b8)}}),TPe=be({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=Ee("icon"),r=V(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),APe=["stroke-width","stroke-linecap","stroke-linejoin"];function IPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1)]),14,APe)}var _8=De(TPe,[["render",IPe]]);const H1=Object.assign(_8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_8.name,_8)}}),LPe=be({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=Ee("icon"),r=V(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PPe=["stroke-width","stroke-linecap","stroke-linejoin"];function RPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,PPe)}var S8=De(LPe,[["render",RPe]]);const jh=Object.assign(S8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S8.name,S8)}}),MPe=be({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=Ee("icon"),r=V(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 OPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,DPe)}var k8=De(MPe,[["render",OPe]]);const Sf=Object.assign(k8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k8.name,k8)}}),$Pe=be({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=Ee("icon"),r=V(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NPe=["stroke-width","stroke-linecap","stroke-linejoin"];function BPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,NPe)}var w8=De($Pe,[["render",BPe]]);const Fg=Object.assign(w8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w8.name,w8)}}),FPe=be({name:"Alert",components:{IconHover:_o,IconClose:Us,IconInfoCircleFill:H1,IconCheckCircleFill:jh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Fg},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=Ee("alert"),o=pe(!0),a=c=>{o.value=!1,n("close",c)},s=()=>{n("afterClose")},l=V(()=>[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 jPe(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("icon-hover");return H(),Ye(Es,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(H(),J("div",{key:0,role:"alert",class:se(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(H(),J("div",{key:0,class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)],2),e.$slots.action?(H(),J("div",{key:1,class:se(`${e.prefixCls}-action`)},[ft(e.$slots,"action")],2)):Ae("v-if",!0),e.closable?(H(),J("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:se(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[ft(e.$slots,"close-element",{},()=>[O(p,null,{default:de(()=>[O(h)]),_:1})])],2)):Ae("v-if",!0)],2)):Ae("v-if",!0)]),_:3},8,["onAfterLeave"])}var C8=De(FPe,[["render",jPe]]);const ife=Object.assign(C8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+C8.name,C8)}});function Dte(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Ote(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function E8(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+o:0}var GF=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(ye){return ye!==s};if(!Dte(e))throw new TypeError("Invalid target");for(var f,h,p=document.scrollingElement||document.documentElement,m=[],g=e;Dte(g)&&c(g);){if((g=(h=(f=g).parentElement)==null?f.getRootNode().host||null:h)===p){m.push(g);break}g!=null&&g===document.body&&E8(g)&&!E8(document.documentElement)||g!=null&&E8(g,l)&&m.push(g)}for(var b=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,E=e.getBoundingClientRect(),x=E.height,_=E.width,A=E.top,R=E.right,M=E.bottom,D=E.left,N=o==="start"||o==="nearest"?A:o==="end"?M:A+x/2,L=a==="center"?D+_/2:a==="end"?R:D,B=[],F=0;F=0&&D>=0&&M<=S&&R<=b&&A>=ee&&M<=X&&D>=K&&R<=Q)return B;var te=getComputedStyle(j),oe=parseInt(te.borderLeftWidth,10),ue=parseInt(te.borderTopWidth,10),ae=parseInt(te.borderRightWidth,10),xe=parseInt(te.borderBottomWidth,10),$e=0,ge=0,Oe="offsetWidth"in j?j.offsetWidth-j.clientWidth-oe-ae:0,Fe="offsetHeight"in j?j.offsetHeight-j.clientHeight-ue-xe:0,Xe="offsetWidth"in j?j.offsetWidth===0?0:G/j.offsetWidth:0,Je="offsetHeight"in j?j.offsetHeight===0?0:q/j.offsetHeight:0;if(p===j)$e=o==="start"?N:o==="end"?N-S:o==="nearest"?qE(C,C+S,S,ue,xe,C+N,C+N+x,x):N-S/2,ge=a==="start"?L:a==="center"?L-b/2:a==="end"?L-b:qE(k,k+b,b,oe,ae,k+L,k+L+_,_),$e=Math.max(0,$e+C),ge=Math.max(0,ge+k);else{$e=o==="start"?N-ee-ue:o==="end"?N-X+xe+Fe:o==="nearest"?qE(ee,X,q,ue,xe+Fe,N,N+x,x):N-(ee+q/2)+Fe/2,ge=a==="start"?L-K-oe:a==="center"?L-(K+G/2)+Oe/2:a==="end"?L-Q+ae+Oe:qE(K,Q,G,oe,ae+Oe,L,L+_,_);var Ke=j.scrollLeft,_e=j.scrollTop;N+=_e-($e=Math.max(0,Math.min(_e+$e/Je,j.scrollHeight-q/Je+Fe))),L+=Ke-(ge=Math.max(0,Math.min(Ke+ge/Xe,j.scrollWidth-G/Xe+Oe)))}B.push({el:j,top:$e,left:ge})}return B},Ak=function(e){return function(t){return Math.pow(t,e)}},Ik=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},T3=function(e){return function(t){return t<.5?Ak(e)(t*2)/2:Ik(e)(t*2-1)/2+.5}},VPe=function(e){return e},UPe=Ak(2),zPe=Ik(2),HPe=T3(2),WPe=Ak(3),GPe=Ik(3),KPe=T3(3),qPe=Ak(4),YPe=Ik(4),XPe=T3(4),ZPe=Ak(5),JPe=Ik(5),QPe=T3(5),eRe=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},tRe=function(e){return Math.sin(Math.PI/2*e)},nRe=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},QU=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)},ofe=function(e){return 1-QU(1-e)},rRe=function(e){return e<.5?ofe(e*2)*.5:QU(e*2-1)*.5+.5},iRe=Object.freeze({linear:VPe,quadIn:UPe,quadOut:zPe,quadInOut:HPe,cubicIn:WPe,cubicOut:GPe,cubicInOut:KPe,quartIn:qPe,quartOut:YPe,quartInOut:XPe,quintIn:ZPe,quintOut:JPe,quintInOut:QPe,sineIn:eRe,sineOut:tRe,sineInOut:nRe,bounceOut:QU,bounceIn:ofe,bounceInOut:rRe}),jg=function(t){var n=t.from,r=t.to,o=t.duration,a=t.delay,s=t.easing,l=t.onStart,c=t.onUpdate,f=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=f,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};jg.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])*iRe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};jg.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()};jg.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function oRe(e,t,n){new jg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{pn(n)&&n()}}).start()}const sfe=Symbol("ArcoAnchor"),sRe=["start","end","center","nearest"],aRe=be({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ge(e)||sRe.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=Ee("anchor"),r=pe(),o=pe(),a=Wt({}),s=pe(""),l=pe(!1),c=pe(),f=pe(),h=(A,R)=>{A&&(a[A]=R)},p=A=>{delete a[A]},m=(A,R)=>{e.changeHash||A.preventDefault(),R&&(g(R),S(R)),t("select",R,s.value)},g=A=>{try{const R=Xd(A);if(!R)return;let M,D=0;Ge(e.boundary)?(M="start",D=e.boundary):M=e.boundary;const N=GF(R,{block:M});if(!N.length)return;const{el:L,top:B}=N[0],F=B-D;oRe(L,F,()=>{l.value=!1}),l.value=!0}catch(R){console.error(R)}},b=bg(()=>{if(l.value)return;const A=k();if(A&&A.id){const R=`#${A.id}`;S(R)}}),S=A=>{if(!a[A]&&r.value){const R=Xd(`a[data-href='${A}']`,r.value);if(!R)return;a[A]=R}A!==s.value&&(s.value=A,kn(()=>{t("change",A)}))},k=()=>{if(!c.value||!f.value)return;const A=Ge(e.boundary)?e.boundary:0,R=f.value.getBoundingClientRect();for(const M of Object.keys(a)){const D=Xd(M);if(D){const{top:N}=D.getBoundingClientRect(),L=TT(c.value)?N-A:N-R.top-A;if(L>=0&&L<=R.height/2)return D}}};Dt(s,()=>{const A=a[s.value];!e.lineLess&&A&&o.value&&(o.value.style.top=`${A.offsetTop}px`)});const C=()=>{c.value&&ki(c.value,"scroll",b)},E=()=>{c.value&&Gi(c.value,"scroll",b)},x=()=>{e.scrollContainer?(c.value=TT(e.scrollContainer)?window:Xd(e.scrollContainer),f.value=TT(e.scrollContainer)?document.documentElement:Xd(e.scrollContainer)):(c.value=window,f.value=document.documentElement)};ln(()=>{x();const A=decodeURIComponent(window.location.hash);A?(g(A),S(A)):b(),C()}),No(()=>{E()}),Wr(sfe,Wt({currentLink:s,addLink:h,removeLink:p,handleClick:m}));const _=V(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function lRe(e,t,n,r,o,a){return H(),J("div",{ref:"anchorRef",class:se(e.cls)},[e.lineLess?Ae("v-if",!0):(H(),J("div",{key:0,ref:"lineSliderRef",class:se(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:se(`${e.prefixCls}-list`)},[ft(e.$slots,"default")],2)],2)}var x8=De(aRe,[["render",lRe]]);const uRe=be({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Ee("anchor"),n=`${t}-link`,r=pe(),o=xn(sfe,void 0);ln(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=V(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),cRe=["href"];function dRe(e,t,n,r,o,a){return H(),J("li",{ref:"linkRef",class:se(e.cls)},[I("a",{class:se(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[ft(e.$slots,"default",{},()=>[He(Ne(e.title),1)])],10,cRe),e.$slots.sublist?(H(),J("ul",{key:0,class:se(`${e.prefixCls}-sublist`)},[ft(e.$slots,"sublist")],2)):Ae("v-if",!0)],2)}var AT=De(uRe,[["render",dRe]]);const fRe=Object.assign(x8,{Link:AT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+x8.name,x8),e.component(n+AT.name,AT)}}),A3=["info","success","warning","error"],uv=["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"],hRe=be({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=Ee("icon"),r=V(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pRe=["stroke-width","stroke-linecap","stroke-linejoin"];function vRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,pRe)}var T8=De(hRe,[["render",vRe]]);const Va=Object.assign(T8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T8.name,T8)}}),mRe=be({name:"FeedbackIcon",components:{IconLoading:Va,IconCheckCircleFill:jh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Fg},props:{type:{type:String}},setup(e){const t=Ee("feedback-icon");return{cls:V(()=>[t,`${t}-status-${e.type}`])}}});function gRe(e,t,n,r,o,a){const s=Pe("icon-loading"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill");return H(),J("span",{class:se(e.cls)},[e.type==="validating"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Ae("v-if",!0)],2)}var Lk=De(mRe,[["render",gRe]]);const ez={key:"Enter"},afe={key:"Backspace",code:"Backspace"},yRe={code:"ArrowLeft"},bRe={code:"ArrowRight"},pa=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function hf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const KF=Symbol("ArcoFormItemContext"),tz=Symbol("ArcoFormContext"),So=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:xn(KF,{}),a=V(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=V(()=>t?.value||o.disabled),l=V(()=>n?.value||o.error),c=ku(o,"feedback"),f=ku(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:f}},ma=(e,{defaultValue:t="medium"}={})=>{const n=xn(ja,void 0);return{mergedSize:V(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function lfe(e){const t=pe();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 f=a[l-1],h=o.indexOf(f,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var NS=be({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}=Jt(e),c=Ee("input"),f=pe(),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g,eventHandlers:b}=So({size:o,disabled:a,error:s}),{mergedSize:S}=ma(h),[k,C]=lfe(f),E=pe(e.defaultValue),x=V(()=>{var _e;return(_e=e.modelValue)!=null?_e:E.value});let _=x.value;Dt(l,_e=>{(mn(_e)||yl(_e))&&(E.value="")}),Dt(x,(_e,ye)=>{_=ye});const A=pe(!1),R=V(()=>e.allowClear&&!e.readonly&&!p.value&&!!x.value),M=pe(!1),D=pe(""),N=_e=>{var ye;return pn(e.wordLength)?e.wordLength(_e):(ye=_e.length)!=null?ye:0},L=V(()=>N(x.value)),B=V(()=>m.value||!!(ar(e.maxLength)&&e.maxLength.errorOnly&&L.value>j.value)),F=V(()=>ar(e.maxLength)&&!!e.maxLength.errorOnly),j=V(()=>ar(e.maxLength)?e.maxLength.length:e.maxLength),z=V(()=>{const _e=N("a");return Math.floor(j.value/_e)}),q=_e=>{var ye,Me;j.value&&!F.value&&N(_e)>j.value&&(_e=(Me=(ye=e.wordSlice)==null?void 0:ye.call(e,_e,j.value))!=null?Me:_e.slice(0,z.value)),E.value=_e,t("update:modelValue",_e)},G=_e=>{f.value&&_e.target!==f.value&&(_e.preventDefault(),f.value.focus())},ee=(_e,ye)=>{var Me,We;_e!==_&&(_=_e,t("change",_e,ye),(We=(Me=b.value)==null?void 0:Me.onChange)==null||We.call(Me,ye))},Q=_e=>{var ye,Me;A.value=!0,t("focus",_e),(Me=(ye=b.value)==null?void 0:ye.onFocus)==null||Me.call(ye,_e)},X=_e=>{var ye,Me;A.value=!1,ee(x.value,_e),t("blur",_e),(Me=(ye=b.value)==null?void 0:ye.onBlur)==null||Me.call(ye,_e)},K=_e=>{var ye,Me,We;const{value:qe,selectionStart:st,selectionEnd:gt}=_e.target;if(_e.type==="compositionend"){if(M.value=!1,D.value="",j.value&&!F.value&&L.value>=j.value&&N(qe)>j.value&&st===gt){te();return}q(qe),t("input",qe,_e),(Me=(ye=b.value)==null?void 0:ye.onInput)==null||Me.call(ye,_e),te()}else M.value=!0,D.value=x.value+((We=_e.data)!=null?We:"")},te=()=>{k(),kn(()=>{f.value&&x.value!==f.value.value&&(f.value.value=x.value,C())})},oe=_e=>{var ye,Me;const{value:We}=_e.target;if(!M.value){if(j.value&&!F.value&&L.value>=j.value&&N(We)>j.value&&_e.inputType==="insertText"){te();return}q(We),t("input",We,_e),(Me=(ye=b.value)==null?void 0:ye.onInput)==null||Me.call(ye,_e),te()}},ue=_e=>{q(""),ee("",_e),t("clear",_e)},ae=_e=>{const ye=_e.key||_e.code;!M.value&&ye===ez.key&&(ee(x.value,_e),t("pressEnter",_e))},xe=V(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),$e=V(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:A.value}]),ge=V(()=>[c,`${c}-size-${S.value}`]),Oe=V(()=>pa(r,uv)),Fe=V(()=>hf(r,uv)),Xe=V(()=>{const _e={...Fe.value,...e.inputAttrs};return B.value&&(_e["aria-invalid"]=!0),_e}),Je=_e=>{var ye;return O("span",Bt({class:$e.value,onMousedown:G},_e?void 0:Oe.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",Bt({ref:f,class:ge.value,value:x.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:oe,onKeydown:ae,onFocus:Q,onBlur:X,onCompositionstart:K,onCompositionupdate:K,onCompositionend:K},Xe.value),null),R.value&&O(_o,{prefix:c,class:`${c}-clear-btn`,onClick:ue},{default:()=>[O(Us,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`},[L.value,He("/"),j.value]),(ye=n.suffix)==null?void 0:ye.call(n),!!g.value&&O(Lk,{type:g.value},null)])])};return{inputRef:f,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",Bt({class:xe.value},Oe.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Je(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Je()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const _Re=be({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=Ee("icon"),r=V(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SRe=["stroke-width","stroke-linecap","stroke-linejoin"];function kRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)]),14,SRe)}var A8=De(_Re,[["render",kRe]]);const _g=Object.assign(A8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A8.name,A8)}}),ufe=Symbol("ArcoButtonGroup"),wRe=be({name:"Button",components:{IconLoading:Va},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}=Jt(e),o=Ee("btn"),a=xn(ufe,void 0),s=V(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=V(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:f}=So({size:s,disabled:l}),{mergedSize:h}=ma(c),p=V(()=>{var g,b,S,k,C,E;return[o,`${o}-${(b=(g=e.type)!=null?g:a?.type)!=null?b:"secondary"}`,`${o}-shape-${(k=(S=e.shape)!=null?S:a?.shape)!=null?k:"square"}`,`${o}-size-${h.value}`,`${o}-status-${(E=(C=e.status)!=null?C:a?.status)!=null?E:"normal"}`,{[`${o}-long`]:e.long,[`${o}-loading`]:e.loading,[`${o}-disabled`]:f.value,[`${o}-link`]:ts(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:f,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),CRe=["href"],ERe=["type","disabled","autofocus"];function xRe(e,t,n,r,o,a){const s=Pe("icon-loading");return e.href?(H(),J("a",{key:0,class:se([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[e.loading?(H(),Ye(s,{key:0,spin:"true"})):ft(e.$slots,"icon",{key:1})],2)):Ae("v-if",!0),ft(e.$slots,"default")],10,CRe)):(H(),J("button",{key:1,class:se([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[e.loading?(H(),Ye(s,{key:0,spin:!0})):ft(e.$slots,"icon",{key:1})],2)):Ae("v-if",!0),ft(e.$slots,"default")],10,ERe))}var I8=De(wRe,[["render",xRe]]);const TRe=be({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}=Jt(e),s=Ee("btn-group");return Wr(ufe,Wt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function ARe(e,t,n,r,o,a){return H(),J("div",{class:se(e.prefixCls)},[ft(e.$slots,"default")],2)}var BS=De(TRe,[["render",ARe]]);const Uo=Object.assign(I8,{Group:BS,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+I8.name,I8),e.component(n+BS.name,BS)}});var IT=be({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}=Jt(e),o=Ee("input-search"),{mergedSize:a}=ma(r),s=pe(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return O(Ft,null,[e.loading?O(Va,null,null):O(_o,{onClick:l},{default:()=>[O(_g,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},f=()=>{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(_g,null,null)},O(Uo,Bt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),m)};return{inputRef:s,render:()=>O(NS,{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?f: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 IRe=be({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=Ee("icon"),r=V(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LRe=["stroke-width","stroke-linecap","stroke-linejoin"];function PRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,LRe)}var L8=De(IRe,[["render",PRe]]);const cv=Object.assign(L8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L8.name,L8)}}),RRe=be({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=Ee("icon"),r=V(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MRe=["stroke-width","stroke-linecap","stroke-linejoin"];function DRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)]),14,MRe)}var P8=De(RRe,[["render",DRe]]);const cfe=Object.assign(P8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P8.name,P8)}});function Na(e){const t=pe(e);return[t,r=>{t.value=r}]}function ia(e,t){const{value:n}=Jt(t),[r,o]=Na(mn(n.value)?e:n.value);return Dt(n,s=>{mn(s)&&o(void 0)}),[V(()=>mn(n.value)?r.value:n.value),o,r]}const ORe=be({name:"InputPassword",components:{IconEye:cv,IconEyeInvisible:cfe,AIconHover:_o,AInput:NS},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}=Jt(e),o=pe(),a=()=>{c(!s.value)},[s,l]=ia(r.value,Wt({value:n})),c=f=>{f!==s.value&&(t("visibility-change",f),t("update:visibility",f),l(f))};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 $Re(e,t,n,r,o,a){const s=Pe("icon-eye"),l=Pe("icon-eye-invisible"),c=Pe("a-icon-hover"),f=Pe("a-input");return H(),Ye(f,{ref:"inputRef",type:e.mergedVisible?"password":"text"},yo({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[ft(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(H(),Ye(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=$o(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=$o(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(H(),Ye(l,{key:1})):(H(),Ye(s,{key:0}))]),_:1},8,["onClick"])):Ae("v-if",!0),ft(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[ft(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var LT=De(ORe,[["render",$Re]]);const NRe=be({name:"InputGroup",setup(){return{prefixCls:Ee("input-group")}}});function BRe(e,t,n,r,o,a){return H(),J("div",{class:se(e.prefixCls)},[ft(e.$slots,"default")],2)}var Hy=De(NRe,[["render",BRe]]);const xv=Object.assign(NS,{Search:IT,Password:LT,Group:Hy,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+NS.name,NS),e.component(n+Hy.name,Hy),e.component(n+IT.name,IT),e.component(n+LT.name,LT)}}),FRe=()=>{const{height:e,width:t}=nfe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},$te=(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}},jRe=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"}},YE=(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}},VRe=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=jRe(e),c=FRe(),f={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"&&f.top<0)if(r.top>o.height)t.top=-n.top;else{const p=fS("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=YE(e,"bottom"),t.top=p.top)}if(l==="bottom"&&f.bottom<0)if(c.height-r.bottom>o.height)t.top=-n.top+(c.height-o.height);else{const p=fS("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=YE(e,"top"),t.top=p.top)}if(l==="left"&&f.left<0)if(r.left>o.width)t.left=-n.left;else{const p=fS("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=YE(e,"right"),t.left=p.left)}if(l==="right"&&f.right<0)if(c.width-r.right>o.width)t.left=-n.left+(c.width-o.width);else{const p=fS("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=YE(e,"left"),t.left=p.left)}return(l==="top"||l==="bottom")&&(f.left<0?t.left=-n.left:f.right<0&&(t.left=-n.left+(c.width-o.width))),(l==="left"||l==="right")&&(f.top<0?t.top=-n.top:f.bottom<0&&(t.top=-n.top+(c.height-o.height))),{popupPosition:t,position:h}},fS=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=qn(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}}},URe=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}`},zRe=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,f=fS(e,n,r,{offset:o,translate:a});if(l){const p=VRe(e,f,{containerRect:t,popupRect:r,triggerRect:n,offset:o,translate:a});f=p.popupPosition,c=p.position}return{style:{left:`${f.left}px`,top:`${f.top}px`,...s},position:c}},HRe=(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}},WRe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Nte=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)WRe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},dfe=()=>{const e={},t=pe(),n=()=>{const r=Zde(e.value);r!==t.value&&(t.value=r)};return ln(()=>n()),Ha(()=>n()),{children:e,firstElement:t}};var dv=be({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=dfe();let a;const s=c=>{c&&(a=new k3(f=>{const h=f[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return Dt(o,c=>{a&&l(),c&&s(c)}),No(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function fd(e,t){const n=pe(e[t]);return Ha(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const Bte=Symbol("ArcoTrigger"),GRe=1e3,KRe=5e3,qRe=1;class YRe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||KRe:Array.from(this.popupStack.popup).pop()||GRe)+qRe,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 R8=new YRe;function W1(e,{visible:t,runOnMounted:n}={}){const r=pe(0),o=()=>{r.value=R8.add(e)},a=()=>{R8.delete(r.value,e)},s=()=>e==="dialog"?R8.isLastDialog(r.value):!1;return Dt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(ln(()=>{o()}),No(()=>{a()})),{zIndex:I2(r),open:o,close:a,isLastDialog:s}}const XRe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new k3(a=>{const s=a[0];pn(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var nz=be({name:"ClientOnly",setup(e,{slots:t}){const n=pe(!1);return ln(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const rz=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=pe(e.value),a=pe(),s=()=>{const l=Xd(e.value),c=l?e.value:n,f=l??(r?document.documentElement:Xd(n));c!==o.value&&(o.value=c),f!==a.value&&(a.value=f)};return ln(()=>s()),Dt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},ZRe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var M8=be({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}=Jt(e),a=Ee("trigger"),s=V(()=>pa(r,ZRe)),l=xn(ja,void 0),c=V(()=>[].concat(e.trigger)),f=new Set,h=xn(Bte,void 0),{children:p,firstElement:m}=dfe(),g=pe(),b=pe(e.defaultPopupVisible),S=pe(e.position),k=pe({}),C=pe({}),E=pe({}),x=pe(),_=pe({top:0,left:0});let A=null,R=null;const M=V(()=>{var bt;return(bt=e.popupVisible)!=null?bt:b.value}),{teleportContainer:D,containerRef:N}=rz({popupContainer:o,visible:M,documentContainer:!0}),{zIndex:L}=W1("popup",{visible:M});let B=0,F=!1,j=!1;const z=()=>{B&&(window.clearTimeout(B),B=0)},q=bt=>{if(e.alignPoint){const{pageX:Ue,pageY:Be}=bt;_.value={top:Be,left:Ue}}},G=()=>{if(!m.value||!g.value||!N.value)return;const bt=N.value.getBoundingClientRect(),Ue=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}:$te(m.value,bt),Be=()=>$te(g.value,bt),lt=Be(),{style:kt,position:ut}=zRe(e.position,bt,Ue,lt,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:URe(ut)}),e.autoFitPopupMinWidth?kt.minWidth=`${Ue.width}px`:e.autoFitPopupWidth&&(kt.width=`${Ue.width}px`),S.value!==ut&&(S.value=ut),k.value=kt,e.showArrow&&kn(()=>{E.value=HRe(ut,Ue,Be(),{customStyle:e.arrowStyle})})},ee=(bt,Ue)=>{if(bt===M.value&&B===0)return;const Be=()=>{b.value=bt,t("update:popupVisible",bt),t("popupVisibleChange",bt),bt&&kn(()=>{G()})};bt||(A=null,R=null),Ue?(z(),bt!==M.value&&(B=window.setTimeout(Be,Ue))):Be()},Q=bt=>{var Ue;(Ue=r.onClick)==null||Ue.call(r,bt),!(e.disabled||M.value&&!e.clickToClose)&&(c.value.includes("click")?(q(bt),ee(!M.value)):c.value.includes("contextMenu")&&M.value&&ee(!1))},X=bt=>{var Ue;(Ue=r.onMouseenter)==null||Ue.call(r,bt),!(e.disabled||!c.value.includes("hover"))&&(q(bt),ee(!0,e.mouseEnterDelay))},K=bt=>{h?.onMouseenter(bt),X(bt)},te=bt=>{var Ue;(Ue=r.onMouseleave)==null||Ue.call(r,bt),!(e.disabled||!c.value.includes("hover"))&&ee(!1,e.mouseLeaveDelay)},oe=bt=>{h?.onMouseleave(bt),te(bt)},ue=bt=>{var Ue;(Ue=r.onFocusin)==null||Ue.call(r,bt),!(e.disabled||!c.value.includes("focus"))&&ee(!0,e.focusDelay)},ae=bt=>{var Ue;(Ue=r.onFocusout)==null||Ue.call(r,bt),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&ee(!1)},xe=bt=>{var Ue;(Ue=r.onContextmenu)==null||Ue.call(r,bt),!(e.disabled||!c.value.includes("contextMenu")||M.value&&!e.clickToClose)&&(q(bt),ee(!M.value),bt.preventDefault())};Wr(Bte,Wt({onMouseenter:K,onMouseleave:oe,addChildRef:bt=>{f.add(bt),h?.addChildRef(bt)},removeChildRef:bt=>{f.delete(bt),h?.removeChildRef(bt)}}));const Oe=()=>{Gi(document.documentElement,"mousedown",Je),F=!1},Fe=fd(n,"content"),Xe=V(()=>{var bt;return e.hideEmpty&&dPe((bt=Fe.value)==null?void 0:bt.call(Fe))}),Je=bt=>{var Ue,Be,lt;if(!((Ue=m.value)!=null&&Ue.contains(bt.target)||(Be=g.value)!=null&&Be.contains(bt.target))){for(const kt of f)if((lt=kt.value)!=null&<.contains(bt.target))return;Oe(),ee(!1)}},Ke=(bt,Ue)=>{const[Be,lt]=bt,{scrollTop:kt,scrollLeft:ut}=Ue;return Math.abs(kt-Be)>=e.scrollToCloseDistance||Math.abs(ut-lt)>=e.scrollToCloseDistance},_e=bg(bt=>{if(M.value)if(e.scrollToClose||l?.scrollToClose){const Ue=bt.target;A||(A=[Ue.scrollTop,Ue.scrollLeft]),Ke(A,Ue)?ee(!1):G()}else G()}),ye=()=>{Gi(window,"scroll",Me),j=!1},Me=bg(bt=>{const Ue=bt.target.documentElement;R||(R=[Ue.scrollTop,Ue.scrollLeft]),Ke(R,Ue)&&(ee(!1),ye())}),We=()=>{M.value&&G()},qe=()=>{We(),t("resize")},st=bt=>{e.preventFocus&&bt.preventDefault()};h?.addChildRef(g);const gt=V(()=>M.value?e.openedClass:void 0);let ct;Dt(M,bt=>{if(e.clickOutsideToClose&&(!bt&&F?Oe():bt&&!F&&(ki(document.documentElement,"mousedown",Je),F=!0)),(e.scrollToClose||l?.scrollToClose)&&(ki(window,"scroll",Me),j=!0),e.updateAtScroll||l?.updateAtScroll){if(bt){ct=Nte(m.value);for(const Ue of ct)Ue.addEventListener("scroll",_e)}else if(ct){for(const Ue of ct)Ue.removeEventListener("scroll",_e);ct=void 0}}bt&&(qt.value=!0)}),Dt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{M.value&&G()});const{createResizeObserver:Tt,destroyResizeObserver:xt}=XRe({elementRef:N,onResize:We});ln(()=>{if(Tt(),M.value&&(G(),e.clickOutsideToClose&&!F&&(ki(document.documentElement,"mousedown",Je),F=!0),e.updateAtScroll||l?.updateAtScroll)){ct=Nte(m.value);for(const bt of ct)bt.addEventListener("scroll",_e)}}),Ha(()=>{M.value&&G()}),$U(()=>{ee(!1)}),No(()=>{if(h?.removeChildRef(g),xt(),F&&Oe(),j&&ye(),ct){for(const bt of ct)bt.removeEventListener("scroll",_e);ct=void 0}});const qt=pe(M.value),Gt=pe(!1),Qt=()=>{Gt.value=!0},Pt=()=>{Gt.value=!1,M.value&&t("show")},at=()=>{Gt.value=!1,M.value||(qt.value=!1,t("hide"))};return()=>{var bt,Ue;return p.value=(Ue=(bt=n.default)==null?void 0:bt.call(n))!=null?Ue:[],Yde(p.value,{class:gt.value,onClick:Q,onMouseenter:X,onMouseleave:te,onFocusin:ue,onFocusout:ae,onContextmenu:xe}),O(Ft,null,[e.autoFixPosition?O(dv,{onResize:qe},{default:()=>[p.value]}):p.value,O(nz,null,{default:()=>[O(Ng,{to:D.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||M.value||qt.value)&&!Xe.value&&O(dv,{onResize:We},{default:()=>[O("div",Bt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Gt.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:K,onMouseleave:oe,onMousedown:st},s.value),[O(Es,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Qt,onAfterEnter:Pt,onBeforeLeave:Qt,onAfterLeave:at},{default:()=>{var Be;return[hi(O("div",{class:`${a}-popup-wrapper`,style:C.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Be=n.content)==null?void 0:Be.call(n)]),e.showArrow&&O("div",{ref:x,class:[`${a}-arrow`,e.arrowClass],style:E.value},null)]),[[es,M.value]])]}})])]})]})]})])}}});const oa=Object.assign(M8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+M8.name,M8)}}),JRe=be({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=Ee("icon"),r=V(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QRe=["stroke-width","stroke-linecap","stroke-linejoin"];function eMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1)]),14,QRe)}var D8=De(JRe,[["render",eMe]]);const iz=Object.assign(D8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D8.name,D8)}});var PT=be({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Ee("empty"),{t:o}=Ao(),a=xn(ja,void 0);return()=>{var s,l,c,f;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):O("div",Bt({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(iz,null,null)]),O("div",{class:`${r}-description`},[(f=(c=t.default)==null?void 0:c.call(t))!=null?f:e.description||o("empty.description")])])}}});const Vh=Object.assign(PT,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+PT.name,PT)}}),tMe=5;var nMe=be({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Ee("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(tMe).fill(1).map((r,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),O8=be({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Ee("spin"),r=xn(ja,void 0),o=V(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=Uy(t.icon());if(l)return ml(l,{spin:!0})}return t.element?t.element():e.dot?O(nMe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(Va,{spin:!0,size:e.size},null)},s=()=>{var l,c,f;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return O(Ft,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:h},[a()]),p&&O("div",{class:`${n}-tip`},[(f=(c=t.tip)==null?void 0:c.call(t))!=null?f:e.tip])])};return()=>O("div",{class:o.value},[t.default?O(Ft,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Sd=Object.assign(O8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+O8.name,O8)}}),rMe=be({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=Ee("scrollbar"),r=pe(!1),o=pe(),a=pe(),s=V(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=pe(0),c=pe(!1),f=pe(0),h=V(()=>{var E,x;return{[s.value.size]:`${(x=(E=e.data)==null?void 0:E.thumbSize)!=null?x:0}px`,[s.value.direction]:`${l.value}px`}}),p=E=>{E.preventDefault(),a.value&&(f.value=E[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,ki(window,"mousemove",b),ki(window,"mouseup",S),ki(window,"contextmenu",S))},m=E=>{var x,_,A,R;if(E.preventDefault(),a.value){const M=g(E[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(x=e.data)==null?void 0:x.thumbSize)!=null?_:0):l.value-((R=(A=e.data)==null?void 0:A.thumbSize)!=null?R:0));M!==l.value&&(l.value=M,t("scroll",M))}},g=E=>E<0?0:e.data&&E>e.data.max?e.data.max:E,b=E=>{if(o.value&&a.value){const x=g(E[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-f.value);x!==l.value&&(l.value=x,t("scroll",x))}},S=()=>{c.value=!1,Gi(window,"mousemove",b),Gi(window,"mouseup",S)},k=E=>{c.value||(E=g(E),E!==l.value&&(l.value=E))},C=V(()=>[`${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 iMe(e,t,n,r,o,a){return H(),Ye(Es,null,{default:de(()=>[I("div",{ref:"trackRef",class:se([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=$o((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:se(e.thumbCls),style:je(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:se(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var oMe=De(rMe,[["render",iMe]]);const Fte=20,XE=15,sMe=be({name:"Scrollbar",components:{ResizeObserver:dv,Thumb:oMe},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=Ee("scrollbar"),r=pe(),o=pe(),a=pe(),s=pe(),l=pe(),c=pe(!1),f=pe(!1),h=V(()=>c.value&&!e.disableHorizontal),p=V(()=>f.value&&!e.disableVertical),m=pe(!1),g=()=>{var _,A,R,M,D,N;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:F,offsetHeight:j,scrollWidth:z,scrollHeight:q,scrollTop:G,scrollLeft:ee}=r.value;c.value=z>L,f.value=q>B,m.value=h.value&&p.value;const Q=e.type==="embed"&&m.value?F-XE:F,X=e.type==="embed"&&m.value?j-XE:j,K=Math.round(Q/Math.min(z/L,Q/Fte)),te=Q-K,oe=(z-L)/te,ue=Math.round(X/Math.min(q/B,X/Fte)),ae=X-ue,xe=(q-B)/ae;if(o.value={ratio:oe,thumbSize:K,max:te},a.value={ratio:xe,thumbSize:ue,max:ae},G>0){const $e=Math.round(G/((A=(_=a.value)==null?void 0:_.ratio)!=null?A:1));(R=l.value)==null||R.setOffset($e)}if(ee>0){const $e=Math.round(ee/((D=(M=a.value)==null?void 0:M.ratio)!=null?D:1));(N=s.value)==null||N.setOffset($e)}}};ln(()=>{g()});const b=()=>{g()},S=_=>{var A,R,M,D,N,L;if(r.value){if(h.value&&!e.disableHorizontal){const B=Math.round(r.value.scrollLeft/((R=(A=o.value)==null?void 0:A.ratio)!=null?R:1));(M=s.value)==null||M.setOffset(B)}if(p.value&&!e.disableVertical){const B=Math.round(r.value.scrollTop/((N=(D=a.value)==null?void 0:D.ratio)!=null?N:1));(L=l.value)==null||L.setOffset(B)}}t("scroll",_)},k=_=>{var A,R;r.value&&r.value.scrollTo({left:_*((R=(A=o.value)==null?void 0:A.ratio)!=null?R:1)})},C=_=>{var A,R;r.value&&r.value.scrollTo({top:_*((R=(A=a.value)==null?void 0:A.ratio)!=null?R:1)})},E=V(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${XE}px`),p.value&&(_.paddingRight=`${XE}px`)),[_,e.outerStyle]}),x=V(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:m.value},e.outerClass]);return{prefixCls:n,cls:x,style:E,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:m,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:b,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;ar(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 aMe(e,t,n,r,o,a){const s=Pe("ResizeObserver"),l=Pe("thumb");return H(),J("div",{class:se(e.cls),style:je(e.style)},[O(s,{onResize:e.handleResize},{default:de(()=>[I("div",Bt({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(()=>[ft(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(H(),Ye(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Ae("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(H(),Ye(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Ae("v-if",!0)],6)}var $8=De(sMe,[["render",aMe]]);const kd=Object.assign($8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+$8.name,$8)}}),Iy=e=>{const t=pe(),n=()=>zde(t.value)?t.value.$refs[e]:t.value,r=pe();return ln(()=>{r.value=n()}),Dt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},I3=e=>{const t=V(()=>!!e.value),n=V(()=>{if(e.value)return{type:"embed",...gl(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},lMe=be({name:"SelectDropdown",components:{ScrollbarComponent:kd,Empty:Vh,Spin:Sd},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}=Jt(e),l=Ee("select-dropdown"),c=xn(ja,void 0),f=(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}=Iy("containerRef"),{displayScrollbar:m,scrollbarProps:g}=I3(s),b=k=>{const{scrollTop:C,scrollHeight:E,offsetHeight:x}=k.target;E-(C+x)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=V(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:f,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:b,displayScrollbar:m,scrollbarProps:g}}});function uMe(e,t,n,r,o,a){const s=Pe("spin");return H(),J("div",{class:se(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(H(),J("div",{key:0,class:se(`${e.prefixCls}-header`)},[ft(e.$slots,"header")],2)):Ae("v-if",!0),e.loading?(H(),Ye(s,{key:1,class:se(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(H(),J("div",{key:2,class:se(`${e.prefixCls}-empty`)},[ft(e.$slots,"empty",{},()=>[(H(),Ye($a(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Ae("v-if",!0),e.virtualList&&!e.loading&&!e.empty?ft(e.$slots,"virtual-list",{key:3}):Ae("v-if",!0),e.virtualList?Ae("v-if",!0):hi((H(),Ye($a(e.displayScrollbar?"ScrollbarComponent":"div"),Bt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[I("ul",{class:se(`${e.prefixCls}-list`)},[ft(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[es,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(H(),J("div",{key:5,class:se(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Ae("v-if",!0)],2)}var oz=De(lMe,[["render",uMe]]),jte=be({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 ffe=Symbol("ArcoCheckboxGroup");var RT=be({name:"Checkbox",components:{IconCheck:jte,IconHover:_o},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}=Jt(e),a=Ee("checkbox"),s=pe(),l=e.uninjectGroupContext?void 0:xn(ffe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:f,eventHandlers:h}=So({disabled:r}),p=pe(e.defaultChecked),m=V(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=V(()=>{var _;return qn(m.value)?m.value.includes((_=e.value)!=null?_:!0):m.value}),b=V(()=>l?.disabled||f?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var A,R,M,D;const{checked:N}=_.target;let L=N;if(qn(m.value)){const B=new Set(m.value);N?B.add((A=e.value)!=null?A:!0):B.delete((R=e.value)!=null?R:!0),L=Array.from(B)}p.value=N,c&&qn(L)?l?.handleChange(L,_):(t("update:modelValue",L),t("change",L,_),(D=(M=h.value)==null?void 0:M.onChange)==null||D.call(M,_)),kn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=V(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:b.value}]),E=_=>{var A,R;(R=(A=h.value)==null?void 0:A.onFocus)==null||R.call(A,_)},x=_=>{var A,R;(R=(A=h.value)==null?void 0:A.onBlur)==null||R.call(A,_)};return Dt(o,_=>{(mn(_)||yl(_))&&(p.value=!1)}),Dt(m,_=>{var A;let R;qn(_)?R=_.includes((A=e.value)!=null?A:!0):R=_,p.value!==R&&(p.value=R),s.value&&s.value.checked!==R&&(s.value.checked=R)}),()=>{var _,A,R,M;return O("label",{"aria-disabled":b.value,class:C.value},[O("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:b.value,onClick:S,onChange:k,onFocus:E,onBlur:x},null),(M=(R=(A=n.checkbox)!=null?A:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:R({checked:g.value,disabled:b.value}))!=null?M:O(_o,{class:`${a}-icon-hover`,disabled:b.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(jte,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),MT=be({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}=Jt(e),o=Ee("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=So({disabled:r}),l=pe(e.defaultValue),c=V(()=>qn(e.modelValue)?e.modelValue:l.value),f=V(()=>e.max===void 0?!1:c.value.length>=e.max),h=V(()=>{var b;return((b=e.options)!=null?b:[]).map(S=>ts(S)||Ge(S)?{label:S,value:S}:S)});Wr(ffe,Wt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:f,slots:n,handleChange:(b,S)=>{var k,C;l.value=b,t("update:modelValue",b),t("change",b,S),(C=(k=s.value)==null?void 0:k.onChange)==null||C.call(k,S)}}));const m=V(()=>[o,`${o}-direction-${e.direction}`]);Dt(()=>e.modelValue,b=>{qn(b)?l.value=[...b]:l.value=[]});const g=()=>h.value.map(b=>{const S=c.value.includes(b.value);return O(RT,{key:b.value,value:b.value,disabled:b.disabled||!S&&f.value,indeterminate:b.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:b}):pn(b.label)?b.label():b.label]})});return()=>{var b;return O("span",{class:m.value},[h.value.length>0?g():(b=n.default)==null?void 0:b.call(n)])}}});const yd=Object.assign(RT,{Group:MT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+RT.name,RT),e.component(n+MT.name,MT)}}),hfe=Symbol("ArcoSelectContext"),cMe=e=>ar(e)&&"isGroup"in e,pfe=e=>ar(e)&&"isGroup"in e,dMe=(e,t="value")=>String(ar(e)?e[t]:e),Sg=(e,t="value")=>ar(e)?`__arco__option__object__${e[t]}`:e||Ge(e)||ts(e)||gl(e)?`__arco__option__${typeof e}-${e}`:"",fMe=e=>e.has("__arco__option__string-"),hMe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(ar(e)){const l=e[n.value];return{raw:e,index:o,key:Sg(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:dMe(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:Sg(e,t),origin:r,...s}},qF=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o})=>{var a;const s=[];for(const l of e)if(cMe(l)){const c=qF((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=hMe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},Vte=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(pfe(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else L3(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},L3=(e,{inputValue:t,filterOption:n})=>pn(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,pMe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!G1(e[n],t[n]))return!1;return!0},vMe=(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]"?pMe(e,t):n==="[object Array]"?vMe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},mMe=be({name:"Option",components:{Checkbox:yd},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}=Jt(e),o=Ee("select-option"),a=xn(hfe,void 0),s=uo(),l=pe(),c=pe(n.value);Dt(n,(R,M)=>{G1(R,M)||(c.value=R)});const f=pe(""),h=V(()=>{var R,M;return(M=(R=e.value)!=null?R:e.label)!=null?M:f.value}),p=V(()=>{var R;return(R=e.label)!=null?R:f.value}),m=V(()=>Sg(h.value,a?.valueKey)),g=V(()=>{var R;return(R=a?.component)!=null?R:"li"}),b=()=>{var R;if(!e.label&&l.value){const M=(R=l.value.textContent)!=null?R:"";f.value!==M&&(f.value=M)}};ln(()=>b()),Ha(()=>b());const S=V(()=>{var R;return(R=a?.valueKeys.includes(m.value))!=null?R:!1}),k=V(()=>a?.activeKey===m.value);let C=pe(!0);if(!e.internal){const R=Wt({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=V(()=>L3(R,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,R),No(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const E=R=>{e.disabled||a?.onSelect(m.value,R)},x=()=>{e.disabled||a?.setActiveKey(m.value)},_=()=>{e.disabled||a?.setActiveKey()},A=V(()=>[o,{[`${o}-disabled`]:e.disabled,[`${o}-selected`]:S.value,[`${o}-active`]:k.value,[`${o}-multiple`]:a?.multiple}]);return{prefixCls:o,cls:A,selectCtx:a,itemRef:l,component:g,isSelected:S,isValid:C,handleClick:E,handleMouseEnter:x,handleMouseLeave:_}}});function gMe(e,t,n,r,o,a){const s=Pe("checkbox");return hi((H(),Ye($a(e.component),{ref:"itemRef",class:se([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:de(()=>[e.$slots.icon?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon")],2)):Ae("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(H(),Ye(s,{key:1,class:se(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[ft(e.$slots,"default",{},()=>[He(Ne(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(H(),J("span",{key:2,class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default",{},()=>[He(Ne(e.label),1)])],2)),e.$slots.suffix?(H(),J("span",{key:3,class:se(`${e.prefixCls}-suffix`)},[ft(e.$slots,"suffix")],2)):Ae("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[es,e.isValid]])}var tg=De(mMe,[["render",gMe]]);const yMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},bMe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=V(()=>({...yMe,...s?.value})),c=Wt(new Map),f=V(()=>Array.from(c.values()).sort((x,_)=>Ge(x.index)&&Ge(_.index)?x.index-_.index:0)),h=V(()=>{var x,_;const A=new Map;return{optionInfos:qF((x=e?.value)!=null?x:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:A}),optionInfoMap:A}}),p=V(()=>{var x,_;const A=new Map;return{optionInfos:qF((x=t?.value)!=null?x:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:A}),optionInfoMap:A}}),m=Wt(new Map);Dt([f,e??pe([]),t??pe([]),a??pe("value")],()=>{m.clear(),f.value.forEach((x,_)=>{m.set(x.key,{...x,index:_})}),h.value.optionInfoMap.forEach(x=>{m.has(x.key)||(x.index=m.size,m.set(x.key,x))}),p.value.optionInfoMap.forEach(x=>{m.has(x.key)||(x.index=m.size,m.set(x.key,x))})},{immediate:!0,deep:!0});const g=V(()=>{var x;const _=Vte(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((x=o?.value)==null||x)&&_.push(...Vte(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),b=V(()=>Array.from(m.values()).filter(x=>x.origin==="extraOptions"&&o?.value===!1?!1:L3(x,{inputValue:n?.value,filterOption:r?.value}))),S=V(()=>b.value.filter(x=>!x.disabled).map(x=>x.key));return{validOptions:g,optionInfoMap:m,validOptionInfos:b,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(x,_)=>{c.set(x,_)},removeSlotOptionInfo:x=>{c.delete(x)}}},Do={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Ute=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),P3=e=>{const t={};return e.forEach((n,r)=>{const o=ts(r)?{key:r}:r;t[Ute(o)]=n}),n=>{const r=Ute({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},sz=({multiple:e,options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,component:s,valueKey:l,fieldNames:c,loading:f,popupVisible:h,valueKeys:p,dropdownRef:m,optionRefs:g,virtualListRef:b,onSelect:S,onPopupVisibleChange:k,enterToOpen:C=!0,defaultActiveFirstOption:E})=>{const{validOptions:x,optionInfoMap:_,validOptionInfos:A,enabledOptionKeys:R,getNextSlotOptionIndex:M,addSlotOptionInfo:D,removeSlotOptionInfo:N}=bMe({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),L=pe();Dt(R,q=>{(!L.value||!q.includes(L.value))&&(L.value=q[0])});const B=q=>{L.value=q},F=q=>{const G=R.value.length;if(G===0)return;if(!L.value)return q==="down"?R.value[0]:R.value[G-1];const ee=R.value.indexOf(L.value),Q=(G+ee+(q==="up"?-1:1))%G;return R.value[Q]},j=q=>{var G,ee;b?.value&&b.value.scrollTo({key:q});const Q=_.get(q),X=(G=m?.value)==null?void 0:G.wrapperRef,K=(ee=g?.value[q])!=null?ee:Q?.ref;if(!X||!K||X.scrollHeight===X.offsetHeight)return;const te=pPe(K,X),oe=X.scrollTop;te.top<0?X.scrollTo(0,oe+te.top):te.bottom<0&&X.scrollTo(0,oe-te.bottom)};Dt(h,q=>{var G;if(q){const ee=p.value[p.value.length-1];let Q=(G=E?.value)==null||G?R.value[0]:void 0;R.value.includes(ee)&&(Q=ee),Q!==L.value&&(L.value=Q),kn(()=>{L.value&&j(L.value)})}});const z=P3(new Map([[Do.ENTER,q=>{!f?.value&&!q.isComposing&&(h.value?L.value&&(S(L.value,q),q.preventDefault()):C&&(k(!0),q.preventDefault()))}],[Do.ESC,q=>{h.value&&(k(!1),q.preventDefault())}],[Do.ARROW_DOWN,q=>{if(h.value){const G=F("down");G&&(L.value=G,j(G)),q.preventDefault()}}],[Do.ARROW_UP,q=>{if(h.value){const G=F("up");G&&(L.value=G,j(G)),q.preventDefault()}}]]));return Wr(hfe,Wt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:M,addSlotOptionInfo:D,removeSlotOptionInfo:N})),{validOptions:x,optionInfoMap:_,validOptionInfos:A,enabledOptionKeys:R,activeKey:L,setActiveKey:B,addSlotOptionInfo:D,removeSlotOptionInfo:N,getNextActiveKey:F,scrollIntoView:j,handleKeyDown:z}},_Me=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=pe(0),s=new Map,l=V(()=>e.value.length),c=pe(0),f=V(()=>{const M=c.value+o.value*3;return M>l.value?l.value:M}),h=V(()=>{const M=l.value-o.value*3;return M<0?0:M}),p=M=>{M<0?c.value=0:M>h.value?c.value=h.value:c.value=M},m=pe(n.value),g=V(()=>r.value!==30?r.value:a.value||r.value),b=(M,D)=>{s.set(M,D)},S=M=>{var D;if(m.value)return g.value;const N=e.value[M];return(D=s.get(N))!=null?D:g.value},k=M=>s.has(M);ln(()=>{const M=Array.from(s.values()).reduce((D,N)=>D+N,0);M>0&&(a.value=M/s.size)});const C=M=>m.value?g.value*M:E(0,M),E=(M,D)=>{let N=0;for(let L=M;Lm.value?g.value*c.value:E(0,c.value)),_=M=>{const D=M>=x.value;let N=Math.abs(M-x.value);const L=D?c.value:c.value-1;let B=0;for(;N>0;)N-=S(L+B),D?B++:B--;return B},A=M=>{const D=_(M),N=c.value+D-o.value;return N<0?0:N>h.value?h.value:N},R=V(()=>m.value?g.value*(l.value-f.value):E(f.value,l.value));return{frontPadding:x,behindPadding:R,start:c,end:f,getStartByScroll:A,setItemSize:b,hasItemSize:k,setStart:p,getScrollOffset:C}};var SMe=be({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=uo())==null?void 0:n.vnode.key,o=pe(),a=()=>{var s,l,c,f;const h=(l=(s=o.value)==null?void 0:s.$el)!=null?l:o.value,p=(f=(c=h?.getBoundingClientRect)==null?void 0:c.call(h).height)!=null?f:h?.offsetHeight;p&&e.setItemSize(r,p)};return ln(()=>a()),No(()=>a()),()=>{var s;const l=Uy((s=t.default)==null?void 0:s.call(t));return l?ml(l,{ref:o},!0):null}}});const kMe=be({name:"VirtualList",components:{VirtualListItem:SMe},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}=Jt(e),c=Ee("virtual-list"),f=V(()=>ar(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=pe(),p=pe(),m=V(()=>({height:Ge(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=V(()=>n.value.map((L,B)=>{var F;return(F=L[r.value])!=null?F:B})),{frontPadding:b,behindPadding:S,start:k,end:C,getStartByScroll:E,setItemSize:x,hasItemSize:_,setStart:A,getScrollOffset:R}=_Me({dataKeys:g,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),M=V(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),D=L=>{const{scrollTop:B,scrollHeight:F,offsetHeight:j}=L.target,z=E(B);z!==k.value&&(A(z),kn(()=>{N(B)})),t("scroll",L),Math.floor(F-(B+j))<=0&&t("reachBottom",L)},N=L=>{var B,F;if(h.value)if(Ge(L))h.value.scrollTop=L;else{const j=(F=L.index)!=null?F:g.value.indexOf((B=L.key)!=null?B:"");A(j-s.value),h.value.scrollTop=R(j),kn(()=>{if(h.value){const z=R(j);z!==h.value.scrollTop&&(h.value.scrollTop=z)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:b,currentList:M,behindPadding:S,onScroll:D,setItemSize:x,hasItemSize:_,start:k,scrollTo:N,style:m,mergedComponent:f}}});function wMe(e,t,n,r,o,a){const s=Pe("VirtualListItem");return H(),Ye($a(e.mergedComponent.container),{ref:"containerRef",class:se(e.prefixCls),style:je(e.style),onScroll:e.onScroll},{default:de(()=>[(H(),Ye($a(e.mergedComponent.list),Bt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(),Ye($a(e.mergedComponent.content),Bt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(!0),J(Ft,null,fn(e.currentList,(l,c)=>{var f;return H(),Ye(s,{key:(f=l[e.itemKey])!=null?f:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[ft(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 K1=De(kMe,[["render",wMe]]),N8=be({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}=Jt(e),a=Ee("auto-complete"),{mergedDisabled:s,eventHandlers:l}=So({disabled:ku(e,"disabled")}),c=pe(e.defaultValue),f=pe(),h=V(()=>{var K;return(K=e.modelValue)!=null?K:c.value});Dt(o,K=>{(mn(K)||yl(K))&&(c.value="")});const p=V(()=>h.value?[Sg(h.value)]:[]),{data:m}=Jt(e),g=pe(),b=pe({}),S=pe(!1),k=V(()=>S.value&&z.value.length>0),C=pe(),E=V(()=>e.virtualListProps?"div":"li"),x=K=>{S.value=K},_=(K,te)=>{var oe;return!!((oe=te.label)!=null&&oe.includes(K))},A=V(()=>pn(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),R=K=>{var te,oe;c.value=K,t("update:modelValue",K),t("change",K),(oe=(te=l.value)==null?void 0:te.onChange)==null||oe.call(te)},M=K=>{var te,oe;c.value="",t("update:modelValue",""),t("change",""),(oe=(te=l.value)==null?void 0:te.onChange)==null||oe.call(te),t("clear",K)},D=(K,te)=>{var oe,ue;const ae=(oe=j.get(K))==null?void 0:oe.value;t("select",ae),R(ae),(ue=f.value)==null||ue.blur()},N=K=>{t("search",K),R(K)},L=K=>{t("dropdownScroll",K)},B=K=>{t("dropdownReachBottom",K)},{validOptions:F,optionInfoMap:j,validOptionInfos:z,handleKeyDown:q}=sz({options:m,inputValue:h,filterOption:A,popupVisible:k,valueKeys:p,component:E,dropdownRef:g,optionRefs:b,onSelect:D,onPopupVisibleChange:x}),G=K=>{if(pn(r.option)&&K.value){const te=j.get(K.key),oe=r.option;return()=>oe({data:te})}return()=>K.label},ee=K=>O(tg,{ref:te=>{te?.$el&&(b.value[K.key]=te.$el)},key:K.key,value:K.value,disabled:K.disabled,internal:!0},{default:G(K)}),Q=()=>O(oz,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...F.value.map(K=>ee(K))],"virtual-list":()=>O(K1,Bt(e.virtualListProps,{ref:C,data:F.value}),{item:({item:K})=>ee(K)}),footer:r.footer});return{inputRef:f,render:()=>O(oa,Bt({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:x}),{default:()=>[O(xv,Bt({ref:f},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:N,onClear:M,onKeydown:q}),r)],content: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 CMe=Object.assign(N8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+N8.name,N8)}}),az=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=pe(-1),a=V(()=>{var f;return(f=n?.value)!=null?f:o.value}),s=pe(),l=()=>{var f,h,p;let m=(h=(f=e.value)==null?void 0:f.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(mn(n?.value)&&s.value&&e.value){const f=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);f!==o.value&&(o.value=f)}};return Dt(e,()=>{e.value&&!s.value&&(s.value=l())}),ln(()=>{e.value&&(s.value=l()),c()}),Ha(()=>c()),{computedIndex:a}},vfe=Symbol("ArcoAvatarGroup"),EMe=be({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=Ee("icon"),r=V(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xMe=["stroke-width","stroke-linecap","stroke-linejoin"];function TMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[mg('',5)]),14,xMe)}var B8=De(EMe,[["render",TMe]]);const R3=Object.assign(B8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B8.name,B8)}}),AMe=be({name:"Avatar",components:{ResizeObserver:dv,IconImageClose:R3,IconLoading:Va},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}=Jt(e),f=Ee("avatar"),h=xn(vfe,void 0),p=pe(),m=pe(),g=V(()=>{var z;return(z=h?.shape)!=null?z:o.value}),b=V(()=>{var z;return(z=h?.size)!=null?z:a.value}),S=V(()=>{var z;return(z=h?.autoFixFontSize)!=null?z:s.value}),k=pe(!1),C=pe(!1),E=pe(!0),x=pe(!1),_=h?az({itemRef:p,selector:`.${f}`}).computedIndex:pe(-1),A=V(()=>{var z;const q=Ge(b.value)?{width:`${b.value}px`,height:`${b.value}px`,fontSize:`${b.value/2}px`}:{};return h&&(q.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,q.marginLeft=_.value!==0?`-${((z=b.value)!=null?z:40)/4}px`:"0"),q}),R=IMe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),M=()=>{!k.value&&!e.imageUrl&&kn(()=>{var z;if(!m.value||!p.value)return;const q=m.value.clientWidth,G=(z=b.value)!=null?z:p.value.offsetWidth,ee=G/(q+8);G&&ee<1&&(m.value.style.transform=`scale(${ee}) translateX(-50%)`),E.value=!0})};ln(()=>{var z;(z=m.value)!=null&&z.firstElementChild&&["IMG","PICTURE"].includes(m.value.firstElementChild.tagName)&&(k.value=!0),S.value&&M()}),Dt(a,()=>{S.value&&M()});const D=V(()=>[f,`${f}-${g.value}`]),N=V(()=>k.value||e.imageUrl?`${f}-image`:`${f}-text`);return{prefixCls:f,itemRef:p,cls:D,outerStyle:A,wrapperRef:m,wrapperCls:N,computedTriggerIconStyle:R,isImage:k,shouldLoad:E,isLoaded:x,hasError:C,onClick:z=>{n("click",z)},handleResize:()=>{S.value&&M()},handleImgLoad:()=>{x.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),IMe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},LMe=["src"];function PMe(e,t,n,r,o,a){const s=Pe("IconImageClose"),l=Pe("IconLoading"),c=Pe("resize-observer");return H(),J("div",{ref:"itemRef",style:je(e.outerStyle),class:se([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...f)=>e.onClick&&e.onClick(...f))},[O(c,{onResize:e.handleResize},{default:de(()=>[I("span",{ref:"wrapperRef",class:se(e.wrapperCls)},[e.imageUrl?(H(),J(Ft,{key:0},[e.hasError?ft(e.$slots,"error",{key:0},()=>[I("div",{class:se(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Ae("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?ft(e.$slots,"default",{key:1},()=>[I("div",{class:se(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Ae("v-if",!0),e.hasError||!e.shouldLoad?Ae("v-if",!0):(H(),J("img",{key:2,src:e.imageUrl,style:je({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...f)=>e.handleImgLoad&&e.handleImgLoad(...f)),onError:t[1]||(t[1]=(...f)=>e.handleImgError&&e.handleImgError(...f))},null,44,LMe))],64)):ft(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(H(),J("div",{key:0,class:se(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:je(e.computedTriggerIconStyle)},[ft(e.$slots,"trigger-icon")],6)):Ae("v-if",!0)],6)}var DT=De(AMe,[["render",PMe]]);const RMe=be({name:"Popover",components:{Trigger:oa},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=Ee("popover"),r=pe(e.defaultPopupVisible),o=V(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=V(()=>[`${n}-popup-content`,e.contentClass]),l=V(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function MMe(e,t,n,r,o,a){const s=Pe("trigger");return H(),Ye(s,{class:se(e.prefixCls),trigger:e.trigger,position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"show-arrow":"","popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[I("div",{class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),I("div",{class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"content",{},()=>[He(Ne(e.content),1)])],2)]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var F8=De(RMe,[["render",MMe]]);const lz=Object.assign(F8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+F8.name,F8)}}),OT=be({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}=Jt(e),s=Ee("avatar-group"),l=pe(0);return Wr(vfe,Wt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,f;const h=uf((f=(c=t.default)==null?void 0:c.call(t))!=null?f:[]),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(lz,e.maxPopoverTriggerProps,{default:()=>[O(DT,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[He("+"),m.length]})],content:()=>O("div",null,[m])})])}}}),DMe=Object.assign(DT,{Group:OT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+DT.name,DT),e.component(n+OT.name,OT)}}),OMe=be({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=Ee("icon"),r=V(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Me=["stroke-width","stroke-linecap","stroke-linejoin"];function NMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),I("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$Me)}var j8=De(OMe,[["render",NMe]]);const mfe=Object.assign(j8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j8.name,j8)}}),BMe=be({name:"BackTop",components:{IconToTop:mfe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Ee("back-top"),n=pe(!1),r=pe(),o=!e.targetContainer,a=bg(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:f}=r.value;n.value=f>=c}}),s=c=>ts(c)?document.querySelector(c):c;return ln(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(ki(o?window:r.value,"scroll",a),a())}),si(()=>{a.cancel(),r.value&&Gi(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new jg({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function FMe(e,t,n,r,o,a){const s=Pe("icon-to-top");return H(),Ye(Es,{name:"fade-in"},{default:de(()=>[e.visible?(H(),J("div",{key:0,class:se(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[ft(e.$slots,"default",{},()=>[I("button",{class:se(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Ae("v-if",!0)]),_:3})}var V8=De(BMe,[["render",FMe]]);const jMe=Object.assign(V8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+V8.name,V8)}}),VMe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],UMe=["normal","processing","success","warning","danger"];var U8=be({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=>UMe.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:f}=Jt(e),h=Ee("badge"),p=zMe(h,n?.value,t?.default),m=V(()=>{const b={...o?.value||{}},[S,k]=a?.value||[];S&&(b.marginRight=`${-S}px`),k&&(b.marginTop=`${k}px`);const C=!r?.value||VMe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...C,...b},computedDotStyle:b,computedColorStyle:C}}),g=()=>{const b=s?.value,S=r?.value,k=n?.value,C=l?.value,E=Number(f?.value),x=f?.value!=null,{computedDotStyle:_,mergedStyle:A}=m.value;return t.content?O("span",{class:`${h}-custom-dot`,style:_},[t.content()]):b&&!S&&!k?O("span",{class:`${h}-text`,style:_},[b]):k||S&&!x?O("span",{class:`${h}-status-wrapper`},[O("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:A},null),b&&O("span",{class:`${h}-status-text`},[b])]):(C||S)&&E>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:A},null):E===0?null:O("span",{class:`${h}-number`,style:A},[O("span",null,[c.value&&E>c.value?`${c.value}+`:E])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const zMe=(e,t,n)=>V(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),HMe=Object.assign(U8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+U8.name,U8)}}),gfe=Symbol("ArcoBreadcrumb"),WMe=be({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=Ee("icon"),r=V(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GMe=["stroke-width","stroke-linecap","stroke-linejoin"];function KMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,GMe)}var z8=De(WMe,[["render",KMe]]);const Tv=Object.assign(z8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z8.name,z8)}}),qMe=be({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=Ee("icon"),r=V(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YMe=["stroke-width","stroke-linecap","stroke-linejoin"];function XMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,YMe)}var H8=De(qMe,[["render",XMe]]);const Av=Object.assign(H8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H8.name,H8)}}),ZMe=be({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=Ee("icon"),r=V(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JMe=["stroke-width","stroke-linecap","stroke-linejoin"];function QMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,JMe)}var W8=De(ZMe,[["render",QMe]]);const yfe=Object.assign(W8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W8.name,W8)}}),uz=Symbol("ArcoDropdown"),e8e=be({name:"DropdownPanel",components:{Scrollbar:kd,Empty:Vh},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=Ee("dropdown"),o=xn(uz,{}),a=pe(),s=f=>{const{scrollTop:h,scrollHeight:p,offsetHeight:m}=f.target;p-(h+m)<=e.bottomOffset&&t("reachBottom",f),t("scroll",f)},l=V(()=>{if(Ge(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=V(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function t8e(e,t,n,r,o,a){const s=Pe("empty"),l=Pe("Scrollbar");return H(),J("div",{class:se(e.cls)},[e.isEmpty?(H(),J("div",{key:0,class:se(`${e.prefixCls}-empty`)},[ft(e.$slots,"empty",{},()=>[O(s)])],2)):Ae("v-if",!0),O(l,{ref:"wrapperRef",class:se(`${e.prefixCls}-list-wrapper`),style:je(e.style),onScroll:e.handleScroll},{default:de(()=>[I("ul",{class:se(`${e.prefixCls}-list`)},[ft(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(H(),J("div",{key:1,class:se(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Ae("v-if",!0)],2)}var bfe=De(e8e,[["render",t8e]]);const M3=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=pe((r=t?.value)!=null?r:!1),a=V(()=>{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 Dt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},n8e=be({name:"Dropdown",components:{Trigger:oa,DropdownPanel:bfe},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}=Jt(e),a=Ee("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=M3({defaultPopupVisible:n,popupVisible:r,emit:t});return Wr(uz,Wt({popupMaxHeight:o,onOptionClick:(f,h)=>{t("select",f,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function r8e(e,t,n,r,o,a){const s=Pe("DropdownPanel"),l=Pe("Trigger");return H(),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,yo({default:de(()=>[ft(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[ft(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var $T=De(n8e,[["render",r8e]]);const i8e=be({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=Ee("dropdown-option"),r=pe(),o=V(()=>{var c,f,h;return(h=(f=e.value)!=null?f:(c=r.value)==null?void 0:c.textContent)!=null?h:void 0}),a=e.uninjectContext?void 0:xn(uz,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=V(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function o8e(e,t,n,r,o,a){return H(),J("li",{ref:"liRef",class:se([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon")],2)):Ae("v-if",!0),I("span",{class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2),e.$slots.suffix?(H(),J("span",{key:1,class:se(`${e.prefixCls}-suffix`)},[ft(e.$slots,"suffix")],2)):Ae("v-if",!0)],2)}var Wy=De(i8e,[["render",o8e]]);const s8e=be({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Ee("dropdown-group")}}});function a8e(e,t,n,r,o,a){return H(),J(Ft,null,[I("li",{class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),ft(e.$slots,"default")],64)}var NT=De(s8e,[["render",a8e]]);const l8e=be({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=Ee("icon"),r=V(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),u8e=["stroke-width","stroke-linecap","stroke-linejoin"];function c8e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,u8e)}var G8=De(l8e,[["render",c8e]]);const Mi=Object.assign(G8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G8.name,G8)}}),d8e=be({name:"Dsubmenu",components:{Trigger:oa,DropdownPanel:bfe,DropdownOption:Wy,IconRight:Mi},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}=Jt(e),o=Ee("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=M3({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function f8e(e,t,n,r,o,a){const s=Pe("IconRight"),l=Pe("dropdown-option"),c=Pe("dropdown-panel"),f=Pe("Trigger");return H(),Ye(f,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(c,{class:se(`${e.prefixCls}-submenu`)},yo({default:de(()=>[ft(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[ft(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[O(l,Bt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),yo({suffix:de(()=>[ft(e.$slots,"suffix",{},()=>[O(s)])]),default:de(()=>[ft(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[ft(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var BT=De(d8e,[["render",f8e]]);const h8e=be({name:"DropdownButton",components:{IconMore:Tv,Button:Uo,ButtonGroup:BS,Dropdown:$T},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}=Jt(e),o=Ee("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=M3({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handleClick:f=>{t("click",f)},handleSelect:(f,h)=>{t("select",f,h)},handlePopupVisibleChange:s}}});function p8e(e,t,n,r,o,a){const s=Pe("Button"),l=Pe("IconMore"),c=Pe("Dropdown"),f=Pe("ButtonGroup");return H(),Ye(f,null,{default:de(()=>[O(s,Bt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[ft(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(()=>[ft(e.$slots,"content")]),default:de(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[ft(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 FT=De(h8e,[["render",p8e]]);const _fe=Object.assign($T,{Option:Wy,Group:NT,Submenu:BT,Button:FT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+$T.name,$T),e.component(n+Wy.name,Wy),e.component(n+NT.name,NT),e.component(n+BT.name,BT),e.component(n+FT.name,FT)}});var FS=be({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=Ee("breadcrumb-item"),o=xn(gfe,void 0),a=pe(!1),s=V(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=V(()=>o&&o.needHide?e.index===1:!1),c=V(()=>o?e.index{a.value=b},h=()=>{var b,S,k,C,E,x,_;if(!c.value)return null;const A=(_=(x=(E=(S=(b=t.separator)==null?void 0:b.call(t))!=null?S:e.separator)!=null?E:(C=o==null?void 0:(k=o.slots).separator)==null?void 0:C.call(k))!=null?x:o?.separator)!=null?_:O(yfe,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[A])},p=()=>{var b,S,k,C;return O("div",Bt({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:(b=o.slots)["more-icon"])==null?void 0:S.call(b))!=null?k:O(Tv,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(Av,null,null)])])},m=()=>{var b,S,k;return(k=(b=t.droplist)==null?void 0:b.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(C=>O(Wy,{value:C.path},{default:()=>[C.label]}))},g=()=>O(_fe,Bt({popupVisible:a.value,onPopupVisibleChange:f},e.dropdownProps),{default:()=>[p()],content:m});return()=>s.value?O(Ft,null,[t.droplist||e.droplist?g():p(),h()]):null}}),K8=be({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}=Jt(e),a=Ee("breadcrumb"),s=pe(0),l=V(()=>n.value>0&&s.value>n.value+1);Wr(gfe,Wt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,m,g)=>{var b,S;if(m.indexOf(p)===m.length-1)return O("span",null,[p.label]);const k=(S=(b=e.customUrl)==null?void 0:b.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return O("a",{href:k},[p.label])},f=()=>{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,b,S)=>{m.push((g.path||"").replace(/^\//,""));const k=[...m];return O(FS,{key:g.path||g.label,index:b,droplist:g.children},{default:()=>{var C,E;return[(E=(C=t["item-render"])==null?void 0:C.call(t,{route:g,routes:S,paths:k}))!=null?E:c(g,S,k)]}})})},h=()=>{var p,m;const g=uf((m=(p=t.default)==null?void 0:p.call(t))!=null?m:[]);return s.value!==g.length&&(s.value=g.length),g.map((b,S)=>{var k;return b.props=Bt((k=b.props)!=null?k:{},{index:S}),b})};return()=>O("div",{role:"list",class:a},[t.default?h():f()])}});const v8e=Object.assign(K8,{Item:FS,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+K8.name,K8),e.component(n+FS.name,FS)}});var m8e=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 D3(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 jT={exports:{}},g8e=jT.exports,zte;function Sfe(){return zte||(zte=1,(function(e,t){(function(n,r){e.exports=r()})(g8e,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",f="day",h="week",p="month",m="quarter",g="year",b="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,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var q=["th","st","nd","rd"],G=z%100;return"["+z+(q[(G-20)%10]||q[G]||q[0])+"]"}},x=function(z,q,G){var ee=String(z);return!ee||ee.length>=q?z:""+Array(q+1-ee.length).join(G)+z},_={s:x,z:function(z){var q=-z.utcOffset(),G=Math.abs(q),ee=Math.floor(G/60),Q=G%60;return(q<=0?"+":"-")+x(ee,2,"0")+":"+x(Q,2,"0")},m:function z(q,G){if(q.date()1)return z(K[0])}else{var te=q.name;R[te]=q,Q=te}return!ee&&Q&&(A=Q),Q||!ee&&A},L=function(z,q){if(D(z))return z.clone();var G=typeof q=="object"?q:{};return G.date=z,G.args=arguments,new F(G)},B=_;B.l=N,B.i=D,B.w=function(z,q){return L(z,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var F=(function(){function z(G){this.$L=N(G.locale,null,!0),this.parse(G),this.$x=this.$x||G.x||{},this[M]=!0}var q=z.prototype;return q.parse=function(G){this.$d=(function(ee){var Q=ee.date,X=ee.utc;if(Q===null)return new Date(NaN);if(B.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var K=Q.match(k);if(K){var te=K[2]-1||0,oe=(K[7]||"0").substring(0,3);return X?new Date(Date.UTC(K[1],te,K[3]||1,K[4]||0,K[5]||0,K[6]||0,oe)):new Date(K[1],te,K[3]||1,K[4]||0,K[5]||0,K[6]||0,oe)}}return new Date(Q)})(G),this.init()},q.init=function(){var G=this.$d;this.$y=G.getFullYear(),this.$M=G.getMonth(),this.$D=G.getDate(),this.$W=G.getDay(),this.$H=G.getHours(),this.$m=G.getMinutes(),this.$s=G.getSeconds(),this.$ms=G.getMilliseconds()},q.$utils=function(){return B},q.isValid=function(){return this.$d.toString()!==S},q.isSame=function(G,ee){var Q=L(G);return this.startOf(ee)<=Q&&Q<=this.endOf(ee)},q.isAfter=function(G,ee){return L(G)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 E=C.match(/([+-]|\d\d)/g),x=60*E[1]+(+E[2]||0);return x===0?0:E[0]==="+"?-x:x})(k)}],m=function(k){var C=c[k];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(k,C){var E,x=c.meridiem;if(x){for(var _=1;_<=24;_+=1)if(k.indexOf(x(_,0,C))>-1){E=_>12;break}}else E=k===(C?"pm":"PM");return E},b={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,E=k.match(/\d+/);if(this.day=E[0],C)for(var x=1;x<=31;x+=1)C(x).replace(/\[|\]/g,"")===k&&(this.day=x)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var C=m("months"),E=(m("monthsShort")||C.map((function(x){return x.slice(0,3)}))).indexOf(k)+1;if(E<1)throw new Error;this.month=E%12||E}],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=f(k)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function S(k){var C,E;C=k,E=c&&c.formats;for(var x=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,B,F){var j=F&&F.toUpperCase();return B||E[F]||n[F]||E[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,q,G){return q||G.slice(1)}))}))).match(r),_=x.length,A=0;A<_;A+=1){var R=x[A],M=b[R],D=M&&M[0],N=M&&M[1];x[A]=N?{regex:D,parser:N}:R.replace(/^\[|\]$/g,"")}return function(L){for(var B={},F=0,j=0;F<_;F+=1){var z=x[F];if(typeof z=="string")j+=z.length;else{var q=z.regex,G=z.parser,ee=L.slice(j),Q=q.exec(ee)[0];G.call(B,Q),L=L.replace(Q,"")}}return(function(X){var K=X.afternoon;if(K!==void 0){var te=X.hours;K?te<12&&(X.hours+=12):te===12&&(X.hours=0),delete X.afternoon}})(B),B}}return function(k,C,E){E.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(f=k.parseTwoDigitYear);var x=C.prototype,_=x.parse;x.parse=function(A){var R=A.date,M=A.utc,D=A.args;this.$u=M;var N=D[1];if(typeof N=="string"){var L=D[2]===!0,B=D[3]===!0,F=L||B,j=D[2];B&&(j=D[2]),c=this.$locale(),!L&&j&&(c=E.Ls[j]),this.$d=(function(ee,Q,X,K){try{if(["x","X"].indexOf(Q)>-1)return new Date((Q==="X"?1e3:1)*ee);var te=S(Q)(ee),oe=te.year,ue=te.month,ae=te.day,xe=te.hours,$e=te.minutes,ge=te.seconds,Oe=te.milliseconds,Fe=te.zone,Xe=te.week,Je=new Date,Ke=ae||(oe||ue?1:Je.getDate()),_e=oe||Je.getFullYear(),ye=0;oe&&!ue||(ye=ue>0?ue-1:Je.getMonth());var Me,We=xe||0,qe=$e||0,st=ge||0,gt=Oe||0;return Fe?new Date(Date.UTC(_e,ye,Ke,We,qe,st,gt+60*Fe.offset*1e3)):X?new Date(Date.UTC(_e,ye,Ke,We,qe,st,gt)):(Me=new Date(_e,ye,Ke,We,qe,st,gt),Xe&&(Me=K(Me).week(Xe).toDate()),Me)}catch{return new Date("")}})(R,N,M,E),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),F&&R!=this.format(N)&&(this.$d=new Date("")),c={}}else if(N instanceof Array)for(var z=N.length,q=1;q<=z;q+=1){D[1]=N[q-1];var G=E.apply(this,D);if(G.isValid()){this.$d=G.$d,this.$L=G.$L,this.init();break}q===z&&(this.$d=new Date(""))}else _.call(this,A)}}}))})(VT)),VT.exports}var S8e=_8e();const k8e=Ed(S8e);var UT={exports:{}},w8e=UT.exports,Wte;function C8e(){return Wte||(Wte=1,(function(e,t){(function(n,r){e.exports=r()})(w8e,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var f=o(a),h=o(s),p=(c=c||"()")[0]==="(",m=c[1]===")";return(p?this.isAfter(f,l):!this.isBefore(f,l))&&(m?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(f,l):!this.isAfter(f,l))&&(m?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(UT)),UT.exports}var E8e=C8e();const x8e=Ed(E8e);var zT={exports:{}},T8e=zT.exports,Gte;function A8e(){return Gte||(Gte=1,(function(e,t){(function(n,r){e.exports=r()})(T8e,(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 f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(f),p=s(this).endOf(n);if(h.isBefore(p))return 1}var m=s(this).startOf(r).date(f).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)}}}))})(zT)),zT.exports}var I8e=A8e();const L8e=Ed(I8e);var HT={exports:{}},P8e=HT.exports,Kte;function R8e(){return Kte||(Kte=1,(function(e,t){(function(n,r){e.exports=r()})(P8e,(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 f=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 f.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return f.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return f.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)}}}))})(HT)),HT.exports}var M8e=R8e();const D8e=Ed(M8e);var WT={exports:{}},O8e=WT.exports,qte;function $8e(){return qte||(qte=1,(function(e,t){(function(n,r){e.exports=r()})(O8e,(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}}}))})(WT)),WT.exports}var N8e=$8e();const B8e=Ed(N8e);var GT={exports:{}},F8e=GT.exports,Yte;function j8e(){return Yte||(Yte=1,(function(e,t){(function(n,r){e.exports=r()})(F8e,(function(){var n="month",r="quarter";return function(o,a){var s=a.prototype;s.quarter=function(f){return this.$utils().u(f)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(f-1))};var l=s.add;s.add=function(f,h){return f=Number(f),this.$utils().p(h)===r?this.add(3*f,n):l.bind(this)(f,h)};var c=s.startOf;s.startOf=function(f,h){var p=this.$utils(),m=!!p.u(h)||h;if(p.p(f)===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)(f,h)}}}))})(GT)),GT.exports}var V8e=j8e();const U8e=Ed(V8e);var KT={exports:{}},z8e=KT.exports,Xte;function H8e(){return Xte||(Xte=1,(function(e,t){(function(n,r){e.exports=r(Sfe())})(z8e,(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}))})(KT)),KT.exports}H8e();const W8e=(e,t,n)=>{n=function(a,s){if(Mc(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=Mc,a},n.isDayjs=Mc};sl.extend(W8e);sl.extend(k8e);sl.extend(x8e);sl.extend(L8e);sl.extend(D8e);sl.extend(B8e);sl.extend(U8e);const ks=sl,Fs={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 cz(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:qn(t)&&qn(e)?n(t[0],e[0])||n(t[1],e[1]):!qn(t)&&!qn(e)?n(t,e):!0}function rc(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(j5e(t))return ks(n(o),t.replace(/\[Q]Q/,"MM"));if(ks(o,t).isValid())return ks(o,t)}return ks(o)}};return qn(e)?e.map(r):r(e)}function vu(e){const t=n=>n?n.toDate():void 0;return qn(e)?e.map(t):t(e)}function kfe(e,t){ks.locale({...ks.Ls[e.toLocaleLowerCase()],weekStart:t})}function G8e(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 ng(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 ZE(e,t){if(e&&qn(e))return e[t]}function wfe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,f){const h=ZE(n,0),p=ZE(n,1),m=ZE(r,0),g=ZE(r,1),b=!c.isPrev&&!c.isNext,S=b&&o,k=S,C=S;m&&h&&m.isBefore(h);const x=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Ba());return s==="year"&&(_=Ba().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:b,[`${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`]:x,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:f}]}}const Zte=42,$A=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),q8e=e=>({start:$A(Fs.startOf(e,"month")),end:$A(Fs.endOf(e,"month")),days:e.daysInMonth()});function Cfe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=q8e(e),o=Array(Zte).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,f=[...s[l]];s[l].unshift({weekRows:f,weekOfYear:c.week()})}return s}var Efe=be({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}=Jt(e),r=Ee("calendar"),o=e.pageShowDate.year(),a=V(()=>wfe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,f)=>c.isSame(f,"day")}));function s(c){return c.map((f,h)=>{var p;if(f.time){const m=()=>e.selectHandler(f.time,!1),g=e.isWeek?{onClick:m}:{},b=e.isWeek?{}:{onClick:m};return O("div",Bt({key:h,class:a.value(f,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:f.year,month:f.month,date:f.date}):O("div",Bt({class:`${r}-date`},b),[O("div",{class:`${r}-date-value`},[e.panel?f.date:O("div",{class:`${r}-date-circle`},[f.date])])])])}if("weekOfYear"in f){const m=e.value.year(),g=e.value.month()+1,b=e.value.week(),S=e.value&&f.weekRows.find(k=>k.year===m&&k.month===g)&&b===f.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`},[f.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=Cfe(ks(`${o}-${ng(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(K8e,{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,f)=>O("div",{key:f,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const xfe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),Tfe=Array(3);for(let e=0;e<3;e++)Tfe[e]=xfe.slice(e*4,4*(e+1));const Afe=Array(4);for(let e=0;e<4;e++)Afe[e]=xfe.slice(e*3,3*(e+1));var Y8e=be({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=Ee("calendar"),n=V(()=>wfe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=Ao(),o=V(()=>e.pageShowData.year()),a=e.panel?Afe:Tfe;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const f=ks(`${o.value}-${ng(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(f,!1)}:{};return O("div",{key:c.value,class:n.value({...c,time:f},!1)},[e.panel?O("div",Bt({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(Efe,{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 X8e=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:o="update:modelValue",eventHandlers:a})=>{var s;const l=pe(),c=pe((s=e?.value)!=null?s:""),f=pe(!1),h=pe(!1),p=pe("");let m;const g=V(()=>{var R;return(R=t?.value)!=null?R:c.value}),b=(R,M)=>{c.value=R,n(o,R),n(r,R,M)},S=R=>{const{value:M}=R.target;h.value||(b(M,R),kn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=R=>{r==="input"&&g.value!==m&&(m=g.value,n("change",g.value,R))},C=R=>{var M;const{value:D}=R.target;R.type==="compositionend"?(h.value=!1,p.value="",b(D,R),kn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((M=R.data)!=null?M:""))},E=R=>{var M,D;f.value=!0,m=g.value,n("focus",R),(D=(M=a?.value)==null?void 0:M.onFocus)==null||D.call(M,R)},x=R=>{var M,D;f.value=!1,n("blur",R),(D=(M=a?.value)==null?void 0:M.onBlur)==null||D.call(M,R),k(R)},_=R=>{const M=R.key||R.code;!h.value&&M===ez.key&&(n("pressEnter",R),k(R))},A=R=>{l.value&&R.target!==l.value&&(R.preventDefault(),l.value.focus())};return Dt(g,R=>{l.value&&R!==l.value.value&&(l.value.value=R)}),{inputRef:l,_value:c,_focused:f,isComposition:h,compositionValue:p,computedValue:g,handleInput:S,handleComposition:C,handleFocus:E,handleBlur:x,handleKeyDown:_,handleMousedown:A}};var Z8e=be({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:f}=Jt(e),h=(o=e.baseCls)!=null?o:Ee("input-label"),{mergedSize:p,mergedDisabled:m,mergedError:g,eventHandlers:b}=So({size:a,disabled:s,error:l,uninject:f?.value}),{mergedSize:S}=ma(p),{inputRef:k,_focused:C,computedValue:E,handleInput:x,handleComposition:_,handleFocus:A,handleBlur:R,handleMousedown:M}=X8e({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:b}),D=V(()=>{var ee;return(ee=e.focused)!=null?ee:C.value}),N=V(()=>e.enabledInput&&C.value||!e.modelValue),L=()=>{var ee,Q;return e.modelValue?(Q=(ee=e.formatLabel)==null?void 0:ee.call(e,e.modelValue))!=null?Q:e.modelValue.label:""},B=V(()=>e.enabledInput&&e.modelValue?L():e.placeholder),F=()=>{var ee,Q;return e.modelValue?(Q=(ee=r.default)==null?void 0:ee.call(r,{data:e.modelValue}))!=null?Q:L():null},j=V(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:D.value,[`${h}-disabled`]:m.value,[`${h}-error`]:g.value}]),z=V(()=>pa(t,uv)),q=V(()=>hf(t,uv));return{inputRef:k,render:()=>O("span",Bt(z.value,{class:j.value,title:L(),onMousedown:M}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",Bt(q.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!N.value}],value:E.value,readonly:!e.enabledInput,placeholder:B.value,disabled:m.value,onInput:x,onFocus:A,onBlur:R,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:N.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 J8e=(e,t)=>{const n=[];for(const r of e)if(ar(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||Ge(e)){const o={value:r,label:String(r),closable:!0};n.push({raw:o,...o})}return n},Jte=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],Q8e=be({name:"Tag",components:{IconHover:_o,IconClose:Us,IconLoading:Va},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}=Jt(e),r=Ee("tag"),o=V(()=>e.color&&Jte.includes(e.color)),a=V(()=>e.color&&!Jte.includes(e.color)),s=pe(e.defaultVisible),l=pe(e.defaultChecked),c=V(()=>{var k;return(k=e.visible)!=null?k:s.value}),f=V(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=ma(n),p=V(()=>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=!f.value;l.value=C,t("update:checked",C),t("check",C,k)}},b=V(()=>[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`]:f.value,[`${r}-custom-color`]:a.value}]),S=V(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:b,style:S,computedVisible:c,computedChecked:f,handleClick:g,handleClose:m}}});function eDe(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover"),c=Pe("icon-loading");return e.computedVisible?(H(),J("span",{key:0,class:se(e.cls),style:je(e.style),onClick:t[0]||(t[0]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.$slots.icon?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon")],2)):Ae("v-if",!0),e.nowrap?(H(),J("span",{key:1,class:se(`${e.prefixCls}-text`)},[ft(e.$slots,"default")],2)):ft(e.$slots,"default",{key:2}),e.closable?(H(),Ye(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:se(`${e.prefixCls}-close-btn`),onClick:$o(e.handleClose,["stop"])},{default:de(()=>[ft(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Ae("v-if",!0),e.loading?(H(),J("span",{key:4,class:se(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Ae("v-if",!0)],6)):Ae("v-if",!0)}var q8=De(Q8e,[["render",eDe]]);const dz=Object.assign(q8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+q8.name,q8)}}),tDe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var Y8=be({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}=Jt(e),f=e.baseCls||Ee("input-tag"),h=pe(),p=pe(),{mergedSize:m,mergedDisabled:g,mergedError:b,feedback:S,eventHandlers:k}=So({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=ma(m),E=V(()=>({...tDe,...e.fieldNames})),x=pe(!1),_=pe(e.defaultValue),A=pe(e.defaultInputValue),R=pe(!1),M=pe(""),D=V(()=>ar(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),N=Wt({width:"12px"}),L=V(()=>e.focused||x.value),B=(ye,Me)=>{A.value=ye,t("update:inputValue",ye),t("inputValueChange",ye,Me)},F=ye=>{var Me;const{value:We}=ye.target;ye.type==="compositionend"?(R.value=!1,M.value="",B(We,ye),kn(()=>{h.value&&z.value!==h.value.value&&(h.value.value=z.value)})):(R.value=!0,M.value=z.value+((Me=ye.data)!=null?Me:""))},j=V(()=>{var ye;return(ye=e.modelValue)!=null?ye:_.value}),z=V(()=>{var ye;return(ye=e.inputValue)!=null?ye:A.value});Dt(c,ye=>{(mn(ye)||yl(ye))&&(_.value=[])});const q=ye=>{h.value&&ye.target!==h.value&&(ye.preventDefault(),h.value.focus())},G=ye=>{const{value:Me}=ye.target;R.value||(B(Me,ye),kn(()=>{h.value&&z.value!==h.value.value&&(h.value.value=z.value)}))},ee=V(()=>J8e(j.value,E.value)),Q=V(()=>{if(e.maxTagCount>0){const ye=ee.value.length-e.maxTagCount;if(ye>0){const Me=ee.value.slice(0,e.maxTagCount),We={value:"__arco__more",label:`+${ye}...`,closable:!1};return Me.push({raw:We,...We}),Me}}return ee.value}),X=(ye,Me)=>{var We,qe;_.value=ye,t("update:modelValue",ye),t("change",ye,Me),(qe=(We=k.value)==null?void 0:We.onChange)==null||qe.call(We,Me)},K=(ye,Me,We)=>{var qe;const st=(qe=j.value)==null?void 0:qe.filter((gt,ct)=>ct!==Me);X(st,We),t("remove",ye,We)},te=ye=>{X([],ye),t("clear",ye)},oe=V(()=>!g.value&&!e.readonly&&e.allowClear&&!!j.value.length),ue=ye=>{var Me;if(z.value){if(ye.preventDefault(),e.uniqueValue&&((Me=j.value)!=null&&Me.includes(z.value))){t("pressEnter",z.value,ye);return}const We=j.value.concat(z.value);X(We,ye),t("pressEnter",z.value,ye),D.value.create||B("",ye)}},ae=ye=>{var Me,We;x.value=!0,t("focus",ye),(We=(Me=k.value)==null?void 0:Me.onFocus)==null||We.call(Me,ye)},xe=ye=>{var Me,We;x.value=!1,!D.value.blur&&z.value&&B("",ye),t("blur",ye),(We=(Me=k.value)==null?void 0:Me.onBlur)==null||We.call(Me,ye)},$e=()=>{for(let ye=ee.value.length-1;ye>=0;ye--)if(ee.value[ye].closable)return ye;return-1},ge=ye=>{if(g.value||e.readonly)return;const Me=ye.key||ye.code;if(!R.value&&z.value&&Me===ez.key&&ue(ye),!R.value&&Q.value.length>0&&!z.value&&Me===afe.key){const We=$e();We>=0&&K(ee.value[We].value,We,ye)}},Oe=ye=>{ye>12?N.width=`${ye}px`:N.width="12px"};ln(()=>{p.value&&Oe(p.value.offsetWidth)});const Fe=()=>{p.value&&Oe(p.value.offsetWidth)};Dt(z,ye=>{h.value&&!R.value&&ye!==h.value.value&&(h.value.value=ye)});const Xe=V(()=>[f,`${f}-size-${C.value}`,{[`${f}-disabled`]:g.value,[`${f}-disabled-input`]:e.disabledInput,[`${f}-error`]:b.value,[`${f}-focus`]:L.value,[`${f}-readonly`]:e.readonly,[`${f}-has-tag`]:Q.value.length>0,[`${f}-has-prefix`]:!!n.prefix,[`${f}-has-suffix`]:!!n.suffix||oe.value||S.value,[`${f}-has-placeholder`]:!j.value.length}]),Je=V(()=>pa(r,uv)),Ke=V(()=>hf(r,uv));return{inputRef:h,render:()=>{var ye;return O("span",Bt({class:Xe.value,onMousedown:q},Je.value),[O(_d,{onResize:Fe},{default:()=>[O("span",{ref:p,class:`${f}-mirror`},[Q.value.length>0?M.value||z.value:M.value||z.value||e.placeholder])]}),n.prefix&&O("span",{class:`${f}-prefix`},[n.prefix()]),O(z1,{tag:"span",name:"input-tag-zoom",class:[`${f}-inner`,{[`${f}-nowrap`]:e.tagNowrap}]},{default:()=>[Q.value.map((Me,We)=>O(dz,Bt({key:`tag-${Me.value}`,class:`${f}-tag`,closable:!g.value&&!e.readonly&&Me.closable,visible:!0,nowrap:e.tagNowrap},Me.tagProps,{onClose:qe=>K(Me.value,We,qe)}),{default:()=>{var qe,st,gt,ct;return[(ct=(gt=(qe=n.tag)==null?void 0:qe.call(n,{data:Me.raw}))!=null?gt:(st=e.formatTag)==null?void 0:st.call(e,Me.raw))!=null?ct:Me.label]}})),O("input",Bt(Ke.value,{ref:h,key:"input-tag-input",class:`${f}-input`,style:N,placeholder:Q.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:G,onKeydown:ge,onFocus:ae,onBlur:xe,onCompositionstart:F,onCompositionupdate:F,onCompositionend:F}),null)]}),oe.value&&O(_o,{class:`${f}-clear-btn`,onClick:te,onMousedown:Me=>Me.stopPropagation()},{default:()=>[O(Us,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${f}-suffix`},[(ye=n.suffix)==null?void 0:ye.call(n),!!S.value&&O(Lk,{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 Ife=Object.assign(Y8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+Y8.name,Y8)}});var NA=be({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=>qn(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}=Jt(e),s=Ee("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:f,mergedSize:h,mergedError:p}=So({size:r,disabled:o,error:a}),{mergedSize:m}=ma(h),{opened:g}=Jt(e),b=pe(),S=V(()=>{var B;return(B=b.value)==null?void 0:B.inputRef}),k=V(()=>e.modelValue.length===0),C=V(()=>e.allowSearch||e.allowCreate),E=V(()=>e.allowClear&&!e.disabled&&!k.value),x=B=>{var F,j;t("focus",B),(j=(F=c.value)==null?void 0:F.onFocus)==null||j.call(F,B)},_=B=>{var F,j;t("blur",B),(j=(F=c.value)==null?void 0:F.onBlur)==null||j.call(F,B)},A=B=>{t("remove",B)},R=B=>{t("clear",B)},M=()=>{var B,F,j,z;return e.loading?(F=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?F:O(Va,null,null):e.allowSearch&&e.opened?(z=(j=n["search-icon"])==null?void 0:j.call(n))!=null?z:O(_g,null,null):n["arrow-icon"]?n["arrow-icon"]():O(Av,{class:`${s}-arrow-icon`},null)},D=()=>O(Ft,null,[E.value&&O(_o,{class:`${s}-clear-btn`,onClick:R,onMousedown:B=>B.stopPropagation()},{default:()=>[O(Us,null,null)]}),O("span",{class:`${s}-icon`},[M()]),!!l.value&&O(Lk,{type:l.value},null)]);Dt(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const N=V(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:x,handleBlur:_,render:()=>e.multiple?O(Ife,{ref:b,baseCls:s,class:N.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:f.value,size:m.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:A,onFocus:x,onBlur:_},{prefix:n.prefix,suffix:D,tag:n.label}):O(Z8e,{ref:b,baseCls:s,class:N.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:f.value,size:m.value,error:p.value,enabledInput:C.value,uninjectFormItemContext:!0,onFocus:x,onBlur:_},{default:n.label,prefix:n.prefix,suffix:D})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const nDe=be({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Ee("select-group")}}});function rDe(e,t,n,r,o,a){return H(),J(Ft,null,[I("li",{class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"label",{},()=>[He(Ne(e.label),1)])],2),ft(e.$slots,"default")],64)}var jS=De(nDe,[["render",rDe]]);const Qte=typeof window>"u"?global:window;function F2(e,t){let n=0;return(...r)=>{n&&Qte.clearTimeout(n),n=Qte.setTimeout(()=>{n=0,e(...r)},t)}}function iDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}const oDe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var X8=be({name:"Select",components:{Trigger:oa,SelectView:NA},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=>mn(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:f,multiple:h,popupVisible:p,defaultPopupVisible:m,showExtraOptions:g,modelValue:b,fieldNames:S,loading:k,defaultActiveFirstOption:C}=Jt(e),E=Ee("select"),{mergedSize:x,mergedDisabled:_,mergedError:A,eventHandlers:R}=So({size:o,disabled:a,error:s}),M=V(()=>e.virtualListProps?"div":"li"),D=V(()=>ar(e.allowSearch)&&!!e.allowSearch.retainInputValue);V(()=>{if(pn(e.formatLabel))return at=>{const bt=st.get(at.value);return e.formatLabel(bt)}});const N=pe(),L=pe({}),B=pe(),{computedPopupVisible:F,handlePopupVisibleChange:j}=M3({popupVisible:p,defaultPopupVisible:m,emit:n}),z=pe(e.defaultValue),q=V(()=>{var at;const bt=(at=e.modelValue)!=null?at:z.value;return(qn(bt)?bt:bt||Ge(bt)||ts(bt)||gl(bt)?[bt]:[]).map(Be=>({value:Be,key:Sg(Be,e.valueKey)}))});Dt(b,at=>{(mn(at)||yl(at))&&(z.value=h.value?[]:at)});const G=V(()=>q.value.map(at=>at.key)),ee=V(()=>({...oDe,...S?.value})),Q=pe(),X=at=>{const bt={};return at.forEach(Ue=>{bt[Ue]=st.get(Ue)}),bt},K=at=>{Q.value=X(at)},te=at=>pn(e.fallbackOption)?e.fallbackOption(at):{[ee.value.value]:at,[ee.value.label]:String(ar(at)?at[f?.value]:at)},oe=()=>{const at=[],bt=[];if(e.allowCreate||e.fallbackOption){for(const Ue of q.value)if(!bt.includes(Ue.key)&&Ue.value!==""){const Be=st.get(Ue.key);(!Be||Be.origin==="extraOptions")&&(at.push(Ue),bt.push(Ue.key))}}if(e.allowCreate&&$e.value){const Ue=Sg($e.value);if(!bt.includes(Ue)){const Be=st.get(Ue);(!Be||Be.origin==="extraOptions")&&at.push({value:$e.value,key:Ue})}}return at},ue=pe([]),ae=V(()=>ue.value.map(at=>{var bt;let Ue=te(at.value);const Be=(bt=Q.value)==null?void 0:bt[at.key];return!mn(Be)&&!F5e(Be)&&(Ue={...Ue,...Be}),Ue}));kn(()=>{Cs(()=>{var at;const bt=oe();if(bt.length!==ue.value.length)ue.value=bt;else if(bt.length>0){for(let Ue=0;Ue{var at;return(at=e.inputValue)!=null?at:xe.value});Dt(F,at=>{!at&&!D.value&&$e.value&&Fe("")});const ge=at=>{var bt,Ue;return e.multiple?at.map(Be=>{var lt,kt;return(kt=(lt=st.get(Be))==null?void 0:lt.value)!=null?kt:""}):(Ue=(bt=st.get(at[0]))==null?void 0:bt.value)!=null?Ue:fMe(st)?void 0:""},Oe=at=>{var bt,Ue;const Be=ge(at);z.value=Be,n("update:modelValue",Be),n("change",Be),(Ue=(bt=R.value)==null?void 0:bt.onChange)==null||Ue.call(bt),K(at)},Fe=at=>{xe.value=at,n("update:inputValue",at),n("inputValueChange",at)},Xe=(at,bt)=>{if(e.multiple){if(G.value.includes(at)){const Ue=G.value.filter(Be=>Be!==at);Oe(Ue)}else if(ct.value.includes(at))if(e.limit>0&&G.value.length>=e.limit){const Ue=st.get(at);n("exceedLimit",Ue?.value,bt)}else{const Ue=G.value.concat(at);Oe(Ue)}D.value||Fe("")}else{if(at!==G.value[0]&&Oe([at]),D.value){const Ue=st.get(at);Ue&&Fe(Ue.label)}j(!1)}},Je=F2(at=>{n("search",at)},e.searchDelay),Ke=at=>{at!==$e.value&&(F.value||j(!0),Fe(at),e.allowSearch&&Je(at))},_e=at=>{const bt=st.get(at),Ue=G.value.filter(Be=>Be!==at);Oe(Ue),n("remove",bt?.value)},ye=at=>{at?.stopPropagation();const bt=G.value.filter(Ue=>{var Be;return(Be=st.get(Ue))==null?void 0:Be.disabled});Oe(bt),Fe(""),n("clear",at)},Me=at=>{n("dropdownScroll",at)},We=at=>{n("dropdownReachBottom",at)},{validOptions:qe,optionInfoMap:st,validOptionInfos:gt,enabledOptionKeys:ct,handleKeyDown:Tt}=sz({multiple:h,options:l,extraOptions:ae,inputValue:$e,filterOption:c,showExtraOptions:g,component:M,valueKey:f,fieldNames:S,loading:k,popupVisible:F,valueKeys:G,dropdownRef:N,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:C,onSelect:Xe,onPopupVisibleChange:j}),xt=V(()=>{var at;const bt=[];for(const Ue of q.value){const Be=st.get(Ue.key);Be&&bt.push({...Be,value:Ue.key,label:(at=Be?.label)!=null?at:String(ar(Ue.value)?Ue.value[f?.value]:Ue.value),closable:!Be?.disabled,tagProps:Be?.tagProps})}return bt}),qt=at=>{if(pn(t.option)){const bt=t.option;return()=>bt({data:at.raw})}return pn(at.render)?at.render:()=>at.label},Gt=at=>{if(pfe(at)){let bt;return O(jS,{key:at.key,label:at.label},iDe(bt=at.options.map(Ue=>Gt(Ue)))?bt:{default:()=>[bt]})}return L3(at,{inputValue:$e.value,filterOption:c?.value})?O(tg,{ref:bt=>{bt?.$el&&(L.value[at.key]=bt.$el)},key:at.key,value:at.value,label:at.label,disabled:at.disabled,internal:!0},{default:qt(at)}):null},Qt=()=>O(oz,{ref:N,loading:e.loading,empty:gt.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Me,onReachBottom:We},{default:()=>{var at,bt;return[...(bt=(at=t.default)==null?void 0:at.call(t))!=null?bt:[],...qe.value.map(Gt)]},"virtual-list":()=>O(K1,Bt(e.virtualListProps,{ref:B,data:qe.value}),{item:({item:at})=>Gt(at)}),empty:t.empty,header:t.header,footer:t.footer}),Pt=({data:at})=>{var bt,Ue,Be,lt;if((t.label||pn(e.formatLabel))&&at){const kt=st.get(at.value);if(kt?.raw)return(Be=(bt=t.label)==null?void 0:bt.call(t,{data:kt.raw}))!=null?Be:(Ue=e.formatLabel)==null?void 0:Ue.call(e,kt.raw)}return(lt=at?.label)!=null?lt:""};return()=>O(oa,Bt({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:j},e.triggerProps),{default:()=>{var at,bt;return[(bt=(at=t.trigger)==null?void 0:at.call(t))!=null?bt:O(NA,Bt({class:E,modelValue:xt.value,inputValue:$e.value,multiple:e.multiple,disabled:_.value,error:A.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:x.value,tagNowrap:e.tagNowrap,onInputValueChange:Ke,onRemove:_e,onClear:ye,onKeydown:Tt},r),{label:Pt,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Qt})}});const j2=Object.assign(X8,{Option:tg,OptGroup:jS,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+X8.name,X8),e.component(n+tg.name,tg),e.component(n+jS.name,jS)}}),Lfe=Symbol("RadioGroup");var qT=be({name:"Radio",components:{IconHover:_o},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=Ee("radio"),{modelValue:o}=Jt(e),a=e.uninjectGroupContext?void 0:xn(Lfe,void 0),{mergedDisabled:s,eventHandlers:l}=So({disabled:ku(e,"disabled")}),c=pe(null),f=pe(e.defaultChecked),h=V(()=>a?.name==="ArcoRadioGroup"),p=V(()=>{var _;return(_=a?.type)!=null?_:e.type}),m=V(()=>a?.disabled||s.value),g=V(()=>{var _,A;return h.value?a?.value===((_=e.value)!=null?_:!0):mn(e.modelValue)?f.value:e.modelValue===((A=e.value)!=null?A:!0)});Dt(o,_=>{(mn(_)||yl(_))&&(f.value=!1)}),Dt(g,(_,A)=>{_!==A&&(f.value=_,c.value&&(c.value.checked=_))});const b=_=>{var A,R;(R=(A=l.value)==null?void 0:A.onFocus)==null||R.call(A,_)},S=_=>{var A,R;(R=(A=l.value)==null?void 0:A.onBlur)==null||R.call(A,_)},k=_=>{_.stopPropagation()},C=_=>{var A,R,M,D,N;f.value=!0,h.value?a?.handleChange((A=e.value)!=null?A:!0,_):(t("update:modelValue",(R=e.value)!=null?R:!0),t("change",(M=e.value)!=null?M:!0,_),(N=(D=l.value)==null?void 0:D.onChange)==null||N.call(D,_)),kn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},E=V(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:m.value}]),x=()=>O(Ft,null,[O(Pe("icon-hover"),{class:`${r}-icon-hover`,disabled:m.value||g.value},{default:()=>[O("span",{class:`${r}-icon`},null)]}),n.default&&O("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,A,R,M;return O("label",{class:E.value},[O("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:m.value,onClick:k,onChange:C,onFocus:b,onBlur:S},null),p.value==="radio"?(M=(R=(A=n.radio)!=null?A:(_=a?.slots)==null?void 0:_.radio)==null?void 0:R({checked:g.value,disabled:m.value}))!=null?M:x():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),YT=be({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=Ee("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=Jt(e),{mergedDisabled:c,mergedSize:f,eventHandlers:h}=So({size:o,disabled:s}),{mergedSize:p}=ma(f),m=pe(e.defaultValue),g=V(()=>{var E;return(E=e.modelValue)!=null?E:m.value}),b=V(()=>{var E;return((E=e.options)!=null?E:[]).map(x=>ts(x)||Ge(x)?{label:x,value:x}:x)});Wr(Lfe,Wt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(E,x)=>{var _,A;m.value=E,t("update:modelValue",E),t("change",E,x),(A=(_=h.value)==null?void 0:_.onChange)==null||A.call(_,x)}})),Dt(g,E=>{m.value!==E&&(m.value=E)}),Dt(l,E=>{(mn(E)||yl(E))&&(m.value="")});const k=V(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>b.value.map(E=>O(qT,{key:E.value,value:E.value,disabled:E.disabled,modelValue:g.value===E.value},{default:()=>[n.label?n.label({data:E}):pn(E.label)?E.label():E.label]}));return()=>{var E;return O("span",{class:k.value},[b.value.length>0?C():(E=n.default)==null?void 0:E.call(n)])}}});const _1=Object.assign(qT,{Group:YT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+qT.name,qT),e.component(n+YT.name,YT)}}),sDe=be({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=Ee("icon"),r=V(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aDe=["stroke-width","stroke-linecap","stroke-linejoin"];function lDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,aDe)}var Z8=De(sDe,[["render",lDe]]);const zl=Object.assign(Z8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z8.name,Z8)}});function uDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}function ene(e){return e.parentElement}var cDe=be({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=Ee("calendar"),{t:r}=Ao(),o=qn(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=V(()=>e.pageShowData.year()),l=V(()=>e.pageShowData.month()+1),c=V(()=>{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}),f=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let h;return O("div",{class:`${n}-header`},[O("div",{class:`${n}-header-left`},[a?O(Ft,null,[O(j2,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:ene},null),e.mode==="month"&&O(j2,{size:"small",class:`${n}-header-value-month`,value:l,options:f,onChange:e.onMonthChange,getPopupContainer:ene},null)]):O(Ft,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(zl,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(Mi,null,null)])]),O(Uo,{size:"small",onClick:()=>e.move(Ba())},uDe(h=r("datePicker.today"))?h:{default:()=>[h]})]),O("div",{class:`${n}-header-right`},[O(_1.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function dDe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var J8=be({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}=Jt(e),a=Ee("calendar"),s=pe(e.defaultMode),{t:l}=Ao(),c=V(()=>e.mode?e.mode:s.value),f=dDe(c.value,e.panel),h=pe(rc(e.defaultValue||Date.now(),f)),p=V(()=>e.modelValue?rc(e.modelValue,f):h.value),m=pe(p.value||Ba()),g=V(()=>Cfe(m.value,{dayStartOfWeek:r.value,isWeek:o.value}));function b(D){m.value=D,t("panelChange",D.toDate())}function S(D){h.value=D,t("change",D.toDate()),t("update:modelValue",D.toDate()),b(D)}function k(D,N=!1){N||S(D)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function E(D,N){D==="prev"&&(m.value=Fs.subtract(m.value,1,N)),D==="next"&&(m.value=Fs.add(m.value,1,N)),t("panelChange",m.value.toDate())}function x(D){const N=Fs.set(m.value,"year",D);m.value=N,t("panelChange",N.toDate())}function _(D){const N=Fs.set(m.value,"month",D-1);m.value=N,t("panelChange",N.toDate())}function A(D){s.value=D}const R=V(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),M=e.panel?{width:e.panelWidth}:{};return()=>O("div",Bt({class:R.value,style:M},G8e(e)),[O(cDe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:m.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:A,onYearChange:x,onMonthChange:_,changePageShowDate:E},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(Efe,{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(Y8e,{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 Pfe=Object.assign(J8,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+J8.name,J8)}}),fz=Symbol("ArcoCard");var Q8=be({name:"Card",components:{Spin:Sd},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=Ee("card"),{size:r}=Jt(e),{mergedSize:o}=ma(r),a=V(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=f=>{const h=uf(f);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=Wt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});Wr(fz,l);const c=V(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var f,h,p,m,g,b,S;const k=!!((f=t.title)!=null?f: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`},[(b=(g=t.extra)==null?void 0:g.call(t))!=null?b:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(Sd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),XT=be({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Ee("card-meta"),r=xn(fz);return ln(()=>{r&&(r.hasMeta=!0)}),()=>{var o,a,s,l,c,f;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`},[(f=(c=t.description)==null?void 0:c.call(t))!=null?f: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 fDe=be({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Ee("card-grid"),n=xn(fz);return ln(()=>{n&&(n.hasGrid=!0)}),{cls:V(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function hDe(e,t,n,r,o,a){return H(),J("div",{class:se(e.cls)},[ft(e.$slots,"default")],2)}var ZT=De(fDe,[["render",hDe]]);const pDe=Object.assign(Q8,{Meta:XT,Grid:ZT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+Q8.name,Q8),e.component(n+XT.name,XT),e.component(n+ZT.name,ZT)}}),vDe=be({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=Ee("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const f=l.offsetX,h=l.currentTarget.clientWidth;if(l.target===l.currentTarget){const p=Math.floor(f/h*e.count);p!==e.activeIndex&&t("select",p)}}else{const f=Number.parseInt((c=l.target.getAttribute("data-index"))!=null?c:"",10);!Number.isNaN(f)&&f!==e.activeIndex&&t("select",f)}},o=V(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=V(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=V(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),mDe=["data-index"];function gDe(e,t,n,r,o,a){return H(),J("div",Bt({class:e.cls},e.eventHandlers),[e.type==="slider"?(H(),J("span",{key:0,style:je(e.sliderStyle),class:se([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(H(!0),J(Ft,{key:1},fn(Array(e.count),(s,l)=>(H(),J("span",{key:l,"data-index":l,class:se([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,mDe))),128))],16)}var yDe=De(vDe,[["render",gDe]]);const bDe=be({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=Ee("icon"),r=V(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_De=["stroke-width","stroke-linecap","stroke-linejoin"];function SDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,_De)}var eD=De(bDe,[["render",SDe]]);const Pk=Object.assign(eD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eD.name,eD)}}),kDe=be({name:"Arrow",components:{IconUp:Pk,IconDown:Av,IconLeft:zl,IconRight:Mi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Ee("carousel"),r=s=>{t("previousClick",s)},o=s=>{t("nextClick",s)},a=V(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function wDe(e,t,n,r,o,a){const s=Pe("IconLeft"),l=Pe("IconUp"),c=Pe("IconRight"),f=Pe("IconDown");return H(),J("div",{class:se(e.cls)},[I("div",{class:se(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))],2),I("div",{class:se(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(H(),Ye(c,{key:0})):(H(),Ye(f,{key:1}))],2)],2)}var CDe=De(kDe,[["render",wDe]]);const Rfe=Symbol("ArcoCarousel"),Rk=e=>{const t={},n=pe([]),r=()=>{if(t.value){const o=Qde(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return ln(()=>r()),Ha(()=>r()),{children:t,components:n}},tne={interval:3e3,hoverToPause:!0};function tD(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var nD=be({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}=Jt(e),l=Ee("carousel"),c=pe(!1),f=pe(),h=pe(),p=V(()=>ar(e.autoPlay)?{...tne,...e.autoPlay}:e.autoPlay?tne:{});let m=0,g=0;const{children:b,components:S}=Rk("CarouselItem"),k=pe(e.defaultCurrent-1),C=V(()=>{const z=S.value.length,q=Ge(r.value)?tD(r.value-1,z):k.value,G=tD(q-1,z),ee=tD(q+1,z);return{mergedIndex:q,mergedPrevIndex:G,mergedNextIndex:ee}}),E=Wt({items:S,slideTo:_,mergedIndexes:C,previousIndex:f,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});Wr(Rfe,E);const x=()=>{m&&window.clearInterval(m)};Cs(()=>{var z;const{interval:q}=p.value||{},{mergedNextIndex:G}=C.value,ee=((z=S.value)==null?void 0:z.length)>1&&!c.value&&!!q;x(),ee&&(m=window.setInterval(()=>{_({targetIndex:G})},q))}),No(()=>{x()});function _({targetIndex:z,isNegative:q=!1,isManual:G=!1}){!g&&z!==C.value.mergedIndex&&(f.value=k.value,k.value=z,h.value=q?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,f.value+1,G))}const A=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),R=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),M=z=>_({targetIndex:z,isNegative:zp.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),N=V(()=>e.indicatorType!=="never"&&S.value.length>1),L=V(()=>e.showArrow!=="never"&&S.value.length>1),B=V(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),F=V(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),j=V(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var z;return b.value=(z=n.default)==null?void 0:z.call(n),O("div",Bt({class:B.value},D.value),[O("div",{class:F.value},[b.value]),N.value&&O("div",{class:j.value},[O(yDe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:M},null)]),L.value&&O(CDe,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:A,onNextClick:R},null)])}}});const EDe=be({name:"CarouselItem",setup(){const e=Ee("carousel-item"),t=uo(),n=xn(Rfe,{}),r=V(()=>{var l,c,f;return(f=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?f:-1}),o=V(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=V(()=>{const{previousIndex:l,animationName:c,slideDirection:f,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"&&f&&o.value,[`${e}-slide-out`]:c==="slide"&&f&&r.value===l}}),s=V(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),xDe=["aria-hidden"];function TDe(e,t,n,r,o,a){return H(),J("div",{"aria-hidden":!e.isCurrent,class:se(e.cls),style:je(e.animationStyle)},[ft(e.$slots,"default")],14,xDe)}var JT=De(EDe,[["render",TDe]]);const ADe=Object.assign(nD,{Item:JT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+nD.name,nD),e.component(n+JT.name,JT)}}),Mfe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:o,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:f,fieldNames:h})=>{let p=0;const m=(b,S,k)=>{var C;const E=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),b.map((x,_)=>{var A;const R=x[h.value],M={raw:x,value:R,label:(A=x[h.label])!=null?A:String(R),disabled:!!x[h.disabled],selectionDisabled:!1,render:x[h.render],tagProps:x[h.tagProps],isLeaf:x[h.isLeaf],level:E.length,index:_,key:"",valueKey:String(ar(R)?R[f.value]:R),parent:S,path:[],pathValue:[]},D=E.concat(M),N=[],L=D.map(B=>(N.push(B.value),B.valueKey)).join("-");return M.path=D,M.pathValue=N,M.key=L,x[h.children]?(M.isLeaf=!1,M.children=m(x[h.children],M,(k??1)+1)):l&&!M.isLeaf?(M.isLeaf=!1,c[L]&&(M.children=m(c[L],M,(k??1)+1))):M.isLeaf=!0,M.children&&!M.disabled&&(M.totalLeafOptions=M.children.reduce((B,F)=>Ge(F.totalLeafOptions)?B+F.totalLeafOptions:F.disabled||F.selectionDisabled?B:B+(F.isLeaf?1:0),0),M.totalLeafOptions===0&&!s.value&&(M.selectionDisabled=!0)),t.set(M.key,M),(M.isLeaf||s.value)&&(r.add(M),n.set(M.key,M),o.has(M.valueKey)||o.set(M.valueKey,M.key)),M})},g=m(e);return a.value=p,g},hz=(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,f)=>s.test(f)?c+1:c,0);l>0&&l>=((r=e.totalLeafOptions)!=null?r:1)?o=!0:l>0&&(a=!0)}return{checked:o,indeterminate:a}},pz=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...pz(n));return t},vz=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(...vz(n));return t},Dfe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(qn(e))return e.map(a=>ar(a)?a[t]:a).join("-");const o=ar(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Ofe=(e,{multiple:t,pathMode:n})=>qn(e)?n&&!t&&e.length>0&&!qn(e[0])?[e]:e:mn(e)||yl(e)||e===""?[]:[e],$fe=e=>e.path.map(t=>t.label).join(" / "),mz=Symbol("ArcoCascader");var YF=be({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Ee("cascader-option"),n=xn(mz,{}),r=pe(!1),o={},a=h=>{var p;if(pn(n.loadMore)&&!e.option.isLeaf){const{isLeaf:m,children:g,key:b}=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,b))}))}(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=V(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=V(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:hz(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:$fe(e.option):(m=n.slots)!=null&&m.option?n.slots.option({data:e.option}):pn(e.option.render)?e.option.render():e.option.label},f=()=>r.value?O(Va,null,null):!e.searchOption&&!e.option.isLeaf?O(Mi,null,null):null;return()=>{var h;return O("li",Bt({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(yd,{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(_1,{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(),f()])])}}}),IDe=be({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=Ee("cascader"),r=xn(ja,void 0),o=pe(),a=pe(!!e.virtualListProps),s=()=>{var l,c,f,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(f=r==null?void 0:(c=r.slots).empty)==null?void 0:f.call(c,{component:"cascader"}))!=null?p:O(Vh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(kd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(K1,Bt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>O(YF,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(kd,{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(YF,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function LDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var Nfe=be({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=Ee("cascader"),r=xn(ja,void 0),o=()=>{var s,l,c,f,h;return(h=(f=(s=t.empty)==null?void 0:s.call(t))!=null?f:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:O(Vh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(Sd,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(IDe,{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(z1,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},LDe(s=a())?s:{default:()=>[s]})}}});function PDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var RDe=be({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Ee("cascader"),r=xn(ja,void 0),o=()=>{var a,s,l,c,f;return e.loading?O(Sd,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(f=(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?f:O(Vh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(YF,{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(kd,{class:[`${n}-panel`,`${n}-search-panel`]},PDe(a=o())?a:{default:()=>[a]})}}});const Bfe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=pe(),s=V(()=>{if(a.value)return t.get(a.value)}),l=pe([]),c=V(()=>{const b=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&b.push(k.children)}return b}),f=b=>{var S;const k=m(b);l.value=(S=k?.path.map(C=>C.key))!=null?S:[]},h=b=>{a.value=b},p=V(()=>{var b;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(b=s.value.parent.children)==null?void 0:b.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),m=b=>{let S=b?t.get(b):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:f,getNextActiveNode:b=>{var S,k,C,E,x,_,A;const R=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const M=(E=(C=p.value)==null?void 0:C.findIndex(D=>D.key===a.value))!=null?E:0;return b==="next"?(x=p.value)==null?void 0:x[(R+M+1)%R]:(_=p.value)==null?void 0:_[(R+M-1)%R]}return(A=p.value)==null?void 0:A[0]}}},MDe=be({name:"Cascader",components:{Trigger:oa,SelectView:NA,BaseCascaderPanel:Nfe,CascaderSearchPanel:RDe},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:f,expandTrigger:h,expandChild:p,pathMode:m,multiple:g}=Jt(e),b=pe(e.defaultValue),S=pe(e.defaultInputValue),k=pe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:E}=So({disabled:c});Dt(l,gt=>{(mn(gt)||yl(gt))&&(b.value=e.multiple?[]:void 0)});const x=pe([]),_=pe(1),A=Wt(new Map),R=Wt(new Map),M=Wt(new Map),D=Wt(new Set),N=Wt({}),L=(gt,ct)=>{N[ct]=gt},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},F=V(()=>({...B,...e.fieldNames}));Dt([r,N,F],([gt,ct,Tt])=>{A.clear(),R.clear(),M.clear(),D.clear(),x.value=Mfe(gt??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:N,optionMap:A,leafOptionSet:D,leafOptionMap:R,leafOptionValueMap:M,totalLevel:_,checkStrictly:o,valueKey:f,fieldNames:Tt})},{immediate:!0,deep:!0});const j=V(()=>{var gt;const ct=Ofe((gt=e.modelValue)!=null?gt:b.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(ct.map(Tt=>[Dfe(Tt,{valueKey:e.valueKey,leafOptionValueMap:M}),Tt]))}),z=V(()=>{var gt;return(gt=e.inputValue)!=null?gt:S.value}),q=V(()=>{var gt;return(gt=e.popupVisible)!=null?gt:k.value}),G=gt=>{var ct;return gt?.toLocaleLowerCase().includes((ct=z.value)==null?void 0:ct.toLocaleLowerCase())},ee=V(()=>(e.checkStrictly?Array.from(A.values()):Array.from(D)).filter(ct=>{var Tt;return pn(e.filterOption)?e.filterOption(z.value,ct.raw):e.checkStrictly?G(ct.label):(Tt=ct.path)==null?void 0:Tt.find(xt=>G(xt.label))})),Q=gt=>{var ct,Tt,xt;const qt=e.multiple?gt:(ct=gt[0])!=null?ct:"";gt.length===0&&(Me(),ye()),b.value=qt,t("update:modelValue",qt),t("change",qt),(xt=(Tt=E.value)==null?void 0:Tt.onChange)==null||xt.call(Tt)};Dt([g,m],()=>{const gt=[];j.value.forEach((ct,Tt)=>{const xt=R.get(Tt);xt&>.push(m.value?xt.pathValue:xt.value)}),Q(gt)});const X=gt=>{q.value!==gt&&(k.value=gt,t("popupVisibleChange",gt))},K=gt=>{if(e.multiple){const ct=R.get(gt);if(ct)oe(ct,!1);else{const Tt=[];j.value.forEach((xt,qt)=>{qt!==gt&&Tt.push(xt)}),Q(Tt)}}},te=gt=>{Q([e.pathMode?gt.pathValue:gt.value]),X(!1)},oe=(gt,ct)=>{if(ct){const Tt=e.checkStrictly?[gt]:vz(gt);Q([...j.value.values(),...Tt.filter(xt=>!j.value.has(xt.key)).map(xt=>e.pathMode?xt.pathValue:xt.value)])}else{const Tt=e.checkStrictly?[gt.key]:pz(gt),xt=[];j.value.forEach((qt,Gt)=>{Tt.includes(Gt)||xt.push(qt)}),Q(xt)}xe("","optionChecked")},ue=(gt,ct)=>{e.multiple?oe(gt,ct??!0):te(gt)},ae=F2(gt=>{t("search",gt)},e.searchDelay),xe=(gt,ct)=>{gt!==z.value&&(ct==="manual"&&!q.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=gt,t("inputValueChange",gt),e.allowSearch&&ae(gt))};Dt(q,gt=>{if(gt){if(j.value.size>0){const ct=Array.from(j.value.keys()),Tt=ct[ct.length-1],xt=R.get(Tt);xt&&xt.key!==Xe.value&&(Me(xt.key),ye(xt.key))}}else j.value.size===0&&(Me(),ye()),xe("","optionListHide")});const $e=gt=>{if(gt.stopPropagation(),e.multiple){const ct=[];j.value.forEach((Tt,xt)=>{const qt=R.get(xt);qt?.disabled&&ct.push(e.pathMode?qt.pathValue:qt.value)}),Q(ct)}else Q([]);xe("","manual"),t("clear")},ge=V(()=>e.allowSearch&&z.value.length>0),Oe=gt=>{t("focus",gt)},Fe=gt=>{t("blur",gt)},{activeKey:Xe,activeOption:Je,selectedPath:Ke,displayColumns:_e,setActiveKey:ye,setSelectedPath:Me,getNextActiveNode:We}=Bfe(x,{optionMap:A,filteredLeafOptions:ee,showSearchPanel:ge,expandChild:p});Wr(mz,Wt({onClickOption:ue,setActiveKey:ye,setSelectedPath:Me,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:j}));const qe=P3(new Map([[Do.ENTER,gt=>{if(q.value){if(Je.value){let ct;e.checkStrictly||Je.value.isLeaf?ct=!j.value.has(Je.value.key):ct=!hz(Je.value,j.value).checked,Me(Je.value.key),ue(Je.value,ct)}}else X(!0)}],[Do.ESC,gt=>{X(!1)}],[Do.ARROW_DOWN,gt=>{gt.preventDefault();const ct=We("next");ye(ct?.key)}],[Do.ARROW_UP,gt=>{gt.preventDefault();const ct=We("preview");ye(ct?.key)}],[Do.ARROW_RIGHT,gt=>{var ct,Tt;ge.value||(gt.preventDefault(),(ct=Je.value)!=null&&ct.children&&(Me(Je.value.key),ye((Tt=Je.value.children[0])==null?void 0:Tt.key)))}],[Do.ARROW_LEFT,gt=>{var ct;ge.value||(gt.preventDefault(),(ct=Je.value)!=null&&ct.parent&&(Me(Je.value.parent.key),ye(Je.value.parent.key)))}]])),st=V(()=>{const gt=[];return j.value.forEach((ct,Tt)=>{var xt,qt;const Gt=R.get(Tt);if(Gt)gt.push({value:Tt,label:(qt=(xt=e.formatLabel)==null?void 0:xt.call(e,Gt.path.map(Qt=>Qt.raw)))!=null?qt:$fe(Gt),closable:!Gt.disabled,tagProps:Gt.tagProps});else if(e.fallback){const Qt=pn(e.fallback)?e.fallback(ct):qn(ct)?ct.join(" / "):String(ct);gt.push({value:Tt,label:Qt,closable:!0})}}),gt});return{optionInfos:x,filteredLeafOptions:ee,selectedPath:Ke,activeKey:Xe,displayColumns:_e,computedInputValue:z,computedPopupVisible:q,handleClear:$e,selectViewValue:st,handleInputValueChange:xe,showSearchPanel:ge,handlePopupVisibleChange:X,handleFocus:Oe,handleBlur:Fe,handleRemove:K,mergedDisabled:C,handleKeyDown:qe,totalLevel:_}}});function DDe(e,t,n,r,o,a){const s=Pe("select-view"),l=Pe("cascader-search-panel"),c=Pe("base-cascader-panel"),f=Pe("trigger");return H(),Ye(f,Bt(e.triggerProps,{trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","popup-visible":e.computedPopupVisible,position:"bl",disabled:e.mergedDisabled,"popup-offset":4,"auto-fit-popup-width":e.showSearchPanel,"popup-container":e.popupContainer,"prevent-focus":!0,"click-to-close":!e.allowSearch,onPopupVisibleChange:e.handlePopupVisibleChange}),{content:de(()=>[e.showSearchPanel?(H(),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},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ft(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(H(),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:""},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ft(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,Bt({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),yo({_:2},[e.$slots.label?{name:"label",fn:de(h=>[ft(e.$slots,"label",Ni(fa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[ft(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[ft(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[ft(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 rD=De(MDe,[["render",DDe]]);const ODe=be({name:"CascaderPanel",components:{BaseCascaderPanel:Nfe},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:f}=Jt(e),h=pe(e.defaultValue);Dt(s,X=>{(mn(X)||yl(X))&&(h.value=e.multiple?[]:void 0)});const p=pe([]),m=pe(1),g=Wt(new Map),b=Wt(new Map),S=Wt(new Map),k=Wt(new Set),C=Wt({}),E=(X,K)=>{C[K]=X},x={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=V(()=>({...x,...e.fieldNames}));Dt([r,C,_],([X,K,te])=>{g.clear(),b.clear(),S.clear(),k.clear(),p.value=Mfe(X??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:K,optionMap:g,leafOptionSet:k,leafOptionMap:b,leafOptionValueMap:S,totalLevel:m,checkStrictly:o,fieldNames:te,valueKey:l})},{immediate:!0});const A=V(()=>{var X;const K=Ofe((X=e.modelValue)!=null?X:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(K.map(te=>[Dfe(te,{valueKey:e.valueKey,leafOptionValueMap:S}),te]))}),R=V(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),M=X=>{var K;const te=e.multiple?X:(K=X[0])!=null?K:"";X.length===0&&(G(),q()),h.value=te,t("update:modelValue",te),t("change",te)},D=X=>{M([e.pathMode?X.pathValue:X.value])},N=(X,K)=>{if(K){const te=e.checkStrictly?[X]:vz(X);M([...A.value.values(),...te.filter(oe=>!A.value.has(oe.key)).map(oe=>e.pathMode?oe.pathValue:oe.value)])}else{const te=e.checkStrictly?[X.key]:pz(X),oe=[];A.value.forEach((ue,ae)=>{te.includes(ae)||oe.push(ue)}),M(oe)}},L=(X,K)=>{e.multiple?N(X,K??!0):D(X)},{activeKey:B,activeOption:F,selectedPath:j,displayColumns:z,setActiveKey:q,setSelectedPath:G,getNextActiveNode:ee}=Bfe(p,{optionMap:g,filteredLeafOptions:R,expandChild:c});Wr(mz,Wt({onClickOption:L,setActiveKey:q,setSelectedPath:G,loadMore:a,addLazyLoadOptions:E,slots:n,valueMap:A,expandTrigger:f}));const Q=P3(new Map([[Do.ENTER,X=>{if(F.value){let K;e.checkStrictly||F.value.isLeaf?K=!A.value.has(F.value.key):K=!hz(F.value,A.value).checked,G(F.value.key),L(F.value,K)}}],[Do.ARROW_DOWN,X=>{X.preventDefault();const K=ee("next");q(K?.key)}],[Do.ARROW_UP,X=>{X.preventDefault();const K=ee("preview");q(K?.key)}],[Do.ARROW_RIGHT,X=>{var K,te;X.preventDefault(),(K=F.value)!=null&&K.children&&(G(F.value.key),q((te=F.value.children[0])==null?void 0:te.key))}],[Do.ARROW_LEFT,X=>{var K;X.preventDefault(),(K=F.value)!=null&&K.parent&&(G(F.value.parent.key),q(F.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:R,selectedPath:j,activeKey:B,displayColumns:z,handleKeyDown:Q,totalLevel:m}}});function $De(e,t,n,r,o,a){const s=Pe("base-cascader-panel");return H(),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},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ft(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var QT=De(ODe,[["render",$De]]);const NDe=Object.assign(rD,{CascaderPanel:QT,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+rD.name,rD),e.component(n+QT.name,QT)}}),Ffe=Symbol("collapseCtx"),BDe=be({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}=Jt(e),s=Ee("collapse"),l=pe(e.defaultActiveKey),c=V(()=>{var p;const m=(p=e.activeKey)!=null?p:l.value;return qn(m)?m:[m]});Wr(Ffe,Wt({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 b=g.indexOf(p);b>-1?g.splice(b,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,m)}}));const h=V(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function FDe(e,t,n,r,o,a){return H(),J("div",{class:se(e.cls)},[ft(e.$slots,"default")],2)}var iD=De(BDe,[["render",FDe]]);const jDe=be({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=Ee("icon"),r=V(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VDe=["stroke-width","stroke-linecap","stroke-linejoin"];function UDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VDe)}var oD=De(jDe,[["render",UDe]]);const gz=Object.assign(oD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oD.name,oD)}}),zDe=be({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=Ee("icon"),r=V(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HDe=["stroke-width","stroke-linecap","stroke-linejoin"];function WDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,HDe)}var sD=De(zDe,[["render",WDe]]);const yz=Object.assign(sD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sD.name,sD)}});var e4=be({name:"CollapseItem",components:{IconHover:_o,IconCaretRight:gz,IconCaretLeft:yz},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=uo(),o=Ee("collapse-item"),a=xn(Ffe,{}),s=r&&Ge(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=V(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=V(()=>a.destroyOnHide||e.destroyOnHide),f=V(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=pe(c.value?l.value:!0),p=V(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),m=_=>{var A;e.disabled||(A=a.handleClick)==null||A.call(a,s,_)};Dt(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)}},b=V(()=>[o,{[`${o}-active`]:l.value}]),S=V(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),k=V(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),C=V(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),E=()=>p.value==="right"?O(Pe("icon-caret-left"),{class:`${o}-expand-icon`},null):O(Pe("icon-caret-right"),{class:`${o}-expand-icon`},null),x=()=>f.value&&O(Pe("icon-hover"),{prefix:o,class:k.value,disabled:e.disabled},{default:()=>{var _,A,R,M;return[(M=(R=(A=t["expand-icon"])!=null?A:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:R({active:l.value,disabled:e.disabled,position:p.value}))!=null?M:E()]}});return()=>{var _,A,R;return O("div",{class:b.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:m},[x(),O("div",{class:`${o}-header-title`},[(A=(_=t.header)==null?void 0:_.call(t))!=null?A:e.header]),t.extra&&O("div",{class:`${o}-header-extra`},[(R=t.extra)==null?void 0:R.call(t)])]),O(Es,Bt({name:"collapse-slider"},g),{default:()=>{var M;return[hi(O("div",{role:"region",class:C.value},[h.value&&O("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(M=t.default)==null?void 0:M.call(t)])]),[[es,l.value]])]}})])}}});const GDe=Object.assign(iD,{Item:e4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+iD.name,iD),e.component(n+e4.name,e4)}}),KDe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],jfe=(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,f=[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(f*255),g:Math.round(h*255),b:Math.round(p*255)}},O3=(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),nne=e=>Qs(e)/255,JDe=e=>{let t=jp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=jp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=jp.hex8.exec(e),t?{r:Qs(t[1]),g:Qs(t[2]),b:Qs(t[3]),a:nne(t[4])}:(t=jp.hex6.exec(e),t?{r:Qs(t[1]),g:Qs(t[2]),b:Qs(t[3])}:(t=jp.hex4.exec(e),t?{r:Qs(t[1]+t[1]),g:Qs(t[2]+t[2]),b:Qs(t[3]+t[3]),a:nne(t[4]+t[4])}:(t=jp.hex3.exec(e),t?{r:Qs(t[1]+t[1]),g:Qs(t[2]+t[2]),b:Qs(t[3]+t[3])}:!1)))))},QDe=e=>{var t;const n=JDe(e);return n?{...O3(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Vfe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=jp.hex6.exec(e);return t?{r:Qs(t[1]),g:Qs(t[2]),b:Qs(t[3])}:(t=jp.hex3.exec(e),t?{r:Qs(t[1]+t[1]),g:Qs(t[2]+t[2]),b:Qs(t[3]+t[3])}:!1)},rne=(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(),e6e=(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(),Ufe=({value:e,onChange:t})=>{const n=pe(!1),r=pe(),o=pe(),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(),b=[a(p-g.x,g.width),a(m-g.y,g.height)];(b[0]!==e[0]||b[1]!==e[1])&&t?.(b)},l=()=>{n.value=!1,window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",f),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function f(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:o,onMouseDown:c}};var ine=be({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Ee("color-picker"),n=V(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Ufe({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()])}}),t6e=be({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Ee("color-picker"),n=V(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Ufe({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=V(()=>{const l=jfe(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 bz(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function pf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function V2(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=pf(e);return t>0?bz(Number(e)*Math.pow(10,t)):Number(e)}function XF(e){Hfe&&(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=Ee("icon"),r=V(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),a6e=["stroke-width","stroke-linecap","stroke-linejoin"];function l6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,a6e)}var aD=De(s6e,[["render",l6e]]);const vf=Object.assign(aD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aD.name,aD)}}),u6e=be({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=Ee("icon"),r=V(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),c6e=["stroke-width","stroke-linecap","stroke-linejoin"];function d6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38"},null,-1)]),14,c6e)}var lD=De(u6e,[["render",d6e]]);const kg=Object.assign(lD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lD.name,lD)}}),f6e=800,h6e=150;Fl.enableBoundaryChecking(!1);var uD=be({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}=Jt(e),s=Ee("input-number"),l=pe(),{mergedSize:c,mergedDisabled:f,eventHandlers:h}=So({size:o,disabled:a}),{mergedSize:p}=ma(c),m=V(()=>{if(Ge(e.precision)){const te=`${e.step}`.split(".")[1],oe=te&&te.length||0;return Math.max(oe,e.precision)}}),g=te=>{var oe,ue;if(!Ge(te))return"";const ae=m.value?te.toFixed(m.value):String(te);return(ue=(oe=e.formatter)==null?void 0:oe.call(e,ae))!=null?ue:ae},b=pe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=V(()=>{var te,oe;if(!b.value)return;const ue=Number((oe=(te=e.parser)==null?void 0:te.call(e,b.value))!=null?oe:b.value);return Number.isNaN(ue)?void 0:ue}),k=pe(Ge(S.value)&&S.value<=e.min),C=pe(Ge(S.value)&&S.value>=e.max);let E=0;const x=()=>{E&&(window.clearTimeout(E),E=0)},_=te=>{if(!mn(te))return Ge(e.min)&&tee.max&&(te=e.max),Ge(m.value)?Fl.round(te,m.value):te},A=te=>{let oe=!1,ue=!1;Ge(te)&&(te<=e.min&&(oe=!0),te>=e.max&&(ue=!0)),C.value!==ue&&(C.value=ue),k.value!==oe&&(k.value=oe)},R=()=>{const te=_(S.value),oe=g(te);(te!==S.value||b.value!==oe)&&(b.value=oe),t("update:modelValue",te)};Dt(()=>[e.max,e.min],()=>{R(),A(S.value)});const M=(te,oe)=>{if(f.value||te==="plus"&&C.value||te==="minus"&&k.value)return;let ue;Ge(S.value)?ue=_(Fl[te](S.value,e.step)):ue=e.min===-1/0?0:e.min,b.value=g(ue),A(ue),t("update:modelValue",ue),t("change",ue,oe)},D=(te,oe,ue=!1)=>{var ae;te.preventDefault(),!e.readOnly&&((ae=l.value)==null||ae.focus(),M(oe,te),ue&&(E=window.setTimeout(()=>te.target.dispatchEvent(te),E?h6e:f6e)))},N=(te,oe)=>{var ue,ae,xe,$e;te=te.trim().replace(/。/g,"."),te=(ae=(ue=e.parser)==null?void 0:ue.call(e,te))!=null?ae:te,(Ge(Number(te))||/^(\.|-)$/.test(te))&&(b.value=($e=(xe=e.formatter)==null?void 0:xe.call(e,te))!=null?$e:te,A(S.value),t("input",S.value,b.value,oe),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,oe)))},L=te=>{t("focus",te)},B=(te,oe)=>{oe instanceof MouseEvent&&!te||(R(),t("change",S.value,oe))},F=te=>{t("blur",te)},j=te=>{var oe,ue;b.value="",t("update:modelValue",void 0),t("change",void 0,te),(ue=(oe=h.value)==null?void 0:oe.onChange)==null||ue.call(oe,te),t("clear",te)},z=P3(new Map([[Do.ARROW_UP,te=>{te.preventDefault(),!e.readOnly&&M("plus",te)}],[Do.ARROW_DOWN,te=>{te.preventDefault(),!e.readOnly&&M("minus",te)}]])),q=te=>{t("keydown",te),te.defaultPrevented||z(te)};Dt(()=>e.modelValue,te=>{te!==S.value&&(b.value=g(te),A(te))});const G=()=>{var te,oe,ue;return e.readOnly?null:O(Ft,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(te=n.suffix)==null?void 0:te.call(n)]),O("div",{class:`${s}-step`},[O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:f.value||C.value}],type:"button",tabindex:"-1",disabled:f.value||C.value,onMousedown:ae=>D(ae,"plus",!0),onMouseup:x,onMouseleave:x},[n.plus?(oe=n.plus)==null?void 0:oe.call(n):O(Pk,null,null)]),O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:f.value||k.value}],type:"button",tabindex:"-1",disabled:f.value||k.value,onMousedown:ae=>D(ae,"minus",!0),onMouseup:x,onMouseleave:x},[n.minus?(ue=n.minus)==null?void 0:ue.call(n):O(Av,null,null)])])])},ee=V(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),Q=()=>O(Uo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||k.value,onMousedown:te=>D(te,"minus",!0),onMouseup:x,onMouseleave:x},{icon:()=>O(kg,null,null)}),X=()=>O(Uo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||C.value,onMousedown:te=>D(te,"plus",!0),onMouseup:x,onMouseleave:x},{icon:()=>O(vf,null,null)});return{inputRef:l,render:()=>{const te=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:G,append:n.append}:{prepend:e.hideButton?n.prepend:Q,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:X};return O(xv,{key:`__arco__${e.mode}`,ref:l,class:ee.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:b.value,placeholder:e.placeholder,disabled:f.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":b.value,...e.inputAttrs},onInput:N,onFocus:L,onBlur:F,onClear:j,onChange:B,onKeydown:q},te)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Mk=Object.assign(uD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+uD.name,uD)}});var Wfe=be({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Ee("color-picker");return()=>O(Mk,{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:()=>"%"})}}),p6e=be({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=Ee("color-picker"),{color:n}=Jt(e),r=o=>{var a;const s={...n.value.rgb,...o},l=O3(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>O(Hy,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>O(Mk,{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(Wfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),v6e=be({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=Ee("color-picker"),{color:n}=Jt(e),[r,o]=Na(n.value.hex),a=c=>{var f;const h=Vfe(c)||{r:255,g:0,b:0},p=O3(h.r,h.g,h.b);(f=e.onHsvChange)==null||f.call(e,p)},s=c=>{var f,h;const p=(h=(f=c.match(/[a-fA-F0-9]*/g))==null?void 0:f.join(""))!=null?h:"";p!==n.value.hex&&a(p.toUpperCase())},l=c=>{if(!c.clipboardData)return;let f=c.clipboardData.getData("Text");f.startsWith("#")&&(f=f.slice(1)),s(f),c.preventDefault()};return Dt(n,()=>{n.value.hex!==r.value&&o(n.value.hex)}),()=>O(Hy,{class:`${t}-input-group`},{default:()=>[O(xv,{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(Wfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),m6e=be({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}=Ao(),n=Ee("color-picker"),r=V(()=>e.color.hsv),[o,a]=Na(e.format||"hex"),s=m=>{a(m)};pe(!1);const l=m=>{var g;const b=Vfe(m)||{r:255,g:0,b:0},S=O3(b.r,b.g,b.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(p6e,m,null):O(v6e,m,null)},f=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(f)]):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(t6e,{color:e.color,onChange:(m,g)=>{var b;return(b=e.onHsvChange)==null?void 0:b.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(ine,{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(ine,{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(j2,{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()])}}),cD=be({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:()=>KDe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Ee("color-picker"),o=V(()=>{var E;return(E=e.modelValue)!=null?E:e.defaultValue}),a=V(()=>QDe(o.value||"")),[s,l]=Na(a.value.a),[c,f]=Na({h:a.value.h,s:a.value.s,v:a.value.v});Dt(()=>a.value,E=>{o.value!==m.value&&(l(E.a),f({h:E.h,s:E.s,v:E.v}))});const h=V(()=>{const E=jfe(c.value.h,c.value.s,c.value.v),x=rne(E.r,E.g,E.b);return{hsv:c.value,rgb:E,hex:x}}),p=V(()=>{const{r:E,g:x,b:_}=h.value.rgb;return`rgba(${E}, ${x}, ${_}, ${s.value.toFixed(2)})`}),m=V(()=>{const{r:E,g:x,b:_}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${E}, ${x}, ${_}, ${s.value.toFixed(2)})`:`rgb(${E}, ${x}, ${_})`:s.value<1&&!e.disabledAlpha?`#${e6e(E,x,_,s.value)}`:`#${rne(E,x,_)}`});Dt(m,E=>{t("update:modelValue",E),t("change",E)});const g=E=>{!e.disabled&&f(E)},b=E=>{!e.disabled&&l(E)},S=E=>{t("popup-visible-change",E,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(m6e,{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:b},null);return()=>e.hideTrigger?C():O(oa,Bt({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 g6e=Object.assign(cD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+cD.name,cD)}});function Gfe(e,t,n){return V(()=>!!(e[n]||t[n]))}const y6e=be({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=Ee("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Gfe(e,t,c)),l=V(()=>{const{align:c}=e;return{...ts(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),b6e=["src"],_6e={key:0},S6e={key:0},k6e={key:0};function w6e(e,t,n,r,o,a){return H(),J("div",{class:se(e.prefixCls)},[e.hasAvatar?(H(),J("div",{key:0,class:se(`${e.prefixCls}-avatar`)},[e.avatar?(H(),J("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,b6e)):ft(e.$slots,"avatar",{key:1})],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-inner`)},[I("div",{class:se(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(H(),J("span",{key:0,class:se(`${e.prefixCls}-author`)},[e.author?(H(),J("span",_6e,Ne(e.author),1)):ft(e.$slots,"author",{key:1})],2)):Ae("v-if",!0),e.hasDatetime?(H(),J("span",{key:1,class:se(`${e.prefixCls}-datetime`)},[e.datetime?(H(),J("span",S6e,Ne(e.datetime),1)):ft(e.$slots,"datetime",{key:1})],2)):Ae("v-if",!0)],2)):Ae("v-if",!0),e.hasContent?(H(),J("div",{key:1,class:se(`${e.prefixCls}-content`)},[e.content?(H(),J("span",k6e,Ne(e.content),1)):ft(e.$slots,"content",{key:1})],2)):Ae("v-if",!0),e.$slots.actions?(H(),J("div",{key:2,class:se(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[ft(e.$slots,"actions")],2)):Ae("v-if",!0)],2),e.$slots.default?(H(),J("div",{key:0,class:se(`${e.prefixCls}-inner-comment`)},[ft(e.$slots,"default")],2)):Ae("v-if",!0)],2)],2)}var dD=De(y6e,[["render",w6e]]);const C6e=Object.assign(dD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+dD.name,dD)}}),E6e=be({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}=Jt(e),c=Wt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const f=uo();f&&f.appContext.app.provide(ja,c)}else Wr(ja,c)}});function x6e(e,t,n,r,o,a){return ft(e.$slots,"default")}var fD=De(E6e,[["render",x6e]]);const T6e=Object.assign(fD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+fD.name,fD)}});function A6e(e){const{modelValue:t,defaultValue:n,format:r}=Jt(e),o=V(()=>rc(t.value,r.value)),a=V(()=>rc(n.value,r.value)),[s,l]=Na(mn(o.value)?mn(a.value)?void 0:a.value:o.value);return Dt(o,()=>{mn(o.value)&&l(void 0)}),{value:V(()=>o.value||s.value),setValue:l}}const I6e=be({name:"DateInput",components:{IconHover:_o,IconClose:Us,FeedbackIcon:Lk},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:f}=Jt(e),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g}=So({size:s,disabled:a,error:r}),{mergedSize:b}=ma(h),S=Ee("picker"),k=V(()=>[S,`${S}-size-${b.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:m.value,[`${S}-has-prefix`]:n.prefix}]),C=V(()=>{if(f?.value)return f?.value;if(l?.value&&Mc(l.value))return pn(c.value)?c.value(l.value):l.value.format(c.value)}),E=pe();return{feedback:g,prefixCls:S,classNames:k,displayValue:C,mergedDisabled:p,refInput:E,onPressEnter(){t("press-enter")},onChange(x){t("change",x)},onClear(x){t("clear",x)},onBlur(x){t("blur",x)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),L6e=["disabled","placeholder","value"];function P6e(e,t,n,r,o,a){const s=Pe("IconClose"),l=Pe("IconHover"),c=Pe("FeedbackIcon");return H(),J("div",{class:se(e.classNames)},[e.$slots.prefix?(H(),J("div",{key:0,class:se(`${e.prefixCls}-prefix`)},[ft(e.$slots,"prefix")],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-input`)},[I("input",Bt({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]=mh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),onInput:t[1]||(t[1]=(...f)=>e.onChange&&e.onChange(...f)),onBlur:t[2]||(t[2]=(...f)=>e.onBlur&&e.onBlur(...f))}),null,16,L6e)],2),I("div",{class:se(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(H(),Ye(l,{key:0,prefix:e.prefixCls,class:se(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Ae("v-if",!0),I("span",{class:se(`${e.prefixCls}-suffix-icon`)},[ft(e.$slots,"suffix-icon")],2),e.feedback?(H(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Ae("v-if",!0)],2)],2)}var Kfe=De(I6e,[["render",P6e]]);function ZF(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 one=new Map;function R6e(e,t,n){const r=one.get(e);mn(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),one.set(e,requestAnimationFrame(()=>{new jg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function ef(e,t){const n=r=>{if(qn(r))return r.map(o=>n(o));if(!mn(r))return r.format(t)};return n(e)}function hS(e){return mn(e)?!0:qn(e)?e.length===0||e.length===2&&Mc(e[0])&&Mc(e[1]):!1}function BA(e,t){return e?typeof e=="string"&&ks(e,t).format(t)===e:!1}function M6e(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)||[],f=r?.(o,a)||[],h=(p,m)=>!mn(p)&&m.includes(p);return h(o,l)||h(a,c)||h(s,f)}var Uh=be({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const qfe=Symbol("PickerInjectionKey");function Dk(){const{datePickerT:e}=xn(qfe)||{};return e||((t,...n)=>t)}const D6e=be({name:"PanelShortcuts",components:{Button:Uo,RenderFunction:Uh},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:Dk(),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:pn}}});function O6e(e,t,n,r,o,a){const s=Pe("Button"),l=Pe("RenderFunction");return H(),J("div",{class:se(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(H(),Ye(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[He(Ne(e.datePickerT("datePicker.now")),1)]),_:1})):Ae("v-if",!0),(H(!0),J(Ft,null,fn(e.shortcuts,(c,f)=>(H(),Ye(s,{key:f,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(H(),Ye(l,{key:0,"render-func":c.label},null,8,["render-func"])):(H(),J(Ft,{key:1},[He(Ne(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var Yfe=De(D6e,[["render",O6e]]);function S1(e){return[...Array(e)]}function JF(e){if(!mn(e))return qn(e)?e:[e,void 0]}function Rp(e){return!!e&&Mc(e[0])&&Mc(e[1])}function $6e(e){return mn(e)||e.length===0||Rp(e)}function Xfe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const N6e=be({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=Ee("icon"),r=V(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),B6e=["stroke-width","stroke-linecap","stroke-linejoin"];function F6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1)]),14,B6e)}var hD=De(N6e,[["render",F6e]]);const Zfe=Object.assign(hD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hD.name,hD)}}),j6e=be({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=Ee("icon"),r=V(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),V6e=["stroke-width","stroke-linecap","stroke-linejoin"];function U6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1)]),14,V6e)}var pD=De(j6e,[["render",U6e]]);const Jfe=Object.assign(pD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pD.name,pD)}}),z6e=be({name:"PanelHeader",components:{IconLeft:zl,IconRight:Mi,IconDoubleLeft:Zfe,IconDoubleRight:Jfe,RenderFunction:Uh},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:V(()=>pn(e.onPrev)),showSuperPrev:V(()=>pn(e.onSuperPrev)),showNext:V(()=>pn(e.onNext)),showSuperNext:V(()=>pn(e.onSuperNext)),year:V(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:V(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),H6e={key:1};function W6e(e,t,n,r,o,a){const s=Pe("RenderFunction"),l=Pe("IconDoubleLeft"),c=Pe("IconLeft"),f=Pe("IconRight"),h=Pe("IconDoubleRight");return H(),J("div",{class:se(`${e.prefixCls}-header`)},[I("div",{class:se(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(H(),J(Ft,{key:0},[e.icons&&e.icons.prevDouble?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(H(),Ye(l,{key:1}))],64)):Ae("v-if",!0)],2),I("div",{class:se(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(H(),J(Ft,{key:0},[e.icons&&e.icons.prev?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(H(),Ye(c,{key:1}))],64)):Ae("v-if",!0)],2),I("div",{class:se(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(H(),J(Ft,{key:0},[e.year?(H(),J("span",{key:0,class:se(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},Ne(e.year),3)):Ae("v-if",!0),e.year&&e.month?(H(),J("span",H6e,"-")):Ae("v-if",!0),e.month?(H(),J("span",{key:2,class:se(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},Ne(e.month),3)):Ae("v-if",!0)],64)):(H(),J(Ft,{key:1},[He(Ne(e.title),1)],64))],2),I("div",{class:se(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(H(),J(Ft,{key:0},[e.icons&&e.icons.next?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(H(),Ye(f,{key:1}))],64)):Ae("v-if",!0)],2),I("div",{class:se(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(H(),J(Ft,{key:0},[e.icons&&e.icons.nextDouble?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(H(),Ye(h,{key:1}))],64)):Ae("v-if",!0)],2)],2)}var N3=De(z6e,[["render",W6e]]);function G6e(e){const{rangeValues:t}=Jt(e),n=V(()=>t?.value&&t.value.every(Mc)?B2(t.value):t?.value),r=V(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=V(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:f,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,m=l&&c(a.value,l);let g=c(a.value,Ba());f==="week"&&(g=Ba().isSame(a.value,"date"));const b=p&&r.value&&c(a.value,r.value),S=p&&o.value&&c(a.value,o.value),k=p&&r.value&&o.value&&(b||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`]:b,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const K6e=be({name:"PanelBody",components:{RenderFunction:Uh},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}=Jt(e),{getCellClassName:c}=G6e(Wt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),f=h=>!!(pn(o?.value)&&o?.value(vu(h.value)));return{isWeek:V(()=>s?.value==="week"),getCellClassName:h=>{const p=f(h);return c(h,p)},onCellClick:h=>{f(h)||t("cell-click",h)},onCellMouseEnter:h=>{f(h)||t("cell-mouse-enter",h)},onCellMouseLeave:h=>{f(h)||t("cell-mouse-enter",h)},getDateValue:vu}}}),q6e=["onMouseenter","onMouseleave","onClick"];function Y6e(e,t,n,r,o,a){const s=Pe("RenderFunction");return H(),J("div",{class:se(`${e.prefixCls}-body`)},[(H(!0),J(Ft,null,fn(e.rows,(l,c)=>(H(),J("div",{key:c,class:se([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(H(!0),J(Ft,null,fn(l,(f,h)=>(H(),J(Ft,null,[Ae(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(H(),J("div",{key:h,class:se([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:se(`${e.prefixCls}-date`)},[I("div",{class:se(`${e.prefixCls}-date-value`)},Ne(f.label),3)],2)],2)):(H(),J("div",{key:h,class:se(e.getCellClassName(f)),onMouseenter:()=>{e.onCellMouseEnter(f)},onMouseleave:()=>{e.onCellMouseLeave(f)},onClick:()=>{e.onCellClick(f)}},[e.dateRender?(H(),Ye(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(f.value)},null,8,["render-func","date"])):(H(),J("div",{key:1,class:se(`${e.prefixCls}-date`)},[I("div",{class:se(`${e.prefixCls}-date-value`)},Ne(f.label),3)],2))],42,q6e))],64))),256))],2))),128))],2)}var B3=De(K6e,[["render",Y6e]]);const X6e=be({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=Dk();return{labelList:V(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function Z6e(e,t,n,r,o,a){return H(),J("div",{class:se(`${e.prefixCls}-week-list`)},[(H(!0),J(Ft,null,fn(e.weekList,s=>(H(),J("div",{key:s,class:se(`${e.prefixCls}-week-list-item`)},Ne(e.labelList[s]||""),3))),128))],2)}var J6e=De(X6e,[["render",Z6e]]);const Q6e=be({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}=Jt(e),o=pe(new Map),a=pe();function s(l=!1){if(!a.value||mn(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&R6e(a.value,c.offsetTop,l?100:0)}return Dt([r,n],(l,[,c])=>{n.value!==c?kn(()=>{s()}):s(!0)}),ln(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),eOe=["onClick"];function tOe(e,t,n,r,o,a){return H(),J("div",{ref:"refWrapper",class:se(`${e.prefixCls}-column`)},[I("ul",null,[(H(!0),J(Ft,null,fn(e.list,s=>(H(),J("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:se([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:se(`${e.prefixCls}-cell-inner`)},Ne(s.label),3)],10,eOe))),128))])],2)}var nOe=De(Q6e,[["render",tOe]]);function rOe(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:o,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:f,selectedSecond:h,selectedAmpm:p,disabled:m}=Jt(e),g=V(()=>{var E;const{hour:x=1}=n?.value||{},_=((E=a?.value)==null?void 0:E.call(a))||[];let A=[];for(let R=0;R<(r.value?12:24);R+=x)A.push(R);return r.value&&(A[0]=12),o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:ng(R,2,"0"),value:R,selected:c.value===R,disabled:m?.value||_.includes(R)}))}),b=V(()=>{var E;const{minute:x=1}=n?.value||{},_=((E=s?.value)==null?void 0:E.call(s,c.value))||[];let A=[];for(let R=0;R<60;R+=x)A.push(R);return o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:ng(R,2,"0"),value:R,selected:f.value===R,disabled:m?.value||_.includes(R)}))}),S=V(()=>{var E;const{second:x=1}=n?.value||{},_=((E=l?.value)==null?void 0:E.call(l,c.value,f.value))||[];let A=[];for(let R=0;R<60;R+=x)A.push(R);return o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:ng(R,2,"0"),value:R,selected:h.value===R,disabled:m?.value||_.includes(R)}))}),k=["am","pm"],C=V(()=>{const E=ZF(t.value).list.includes("A");return k.map(x=>({label:E?x.toUpperCase():x,value:x,selected:p.value===x,disabled:m?.value}))});return{hours:g,minutes:b,seconds:S,ampmList:C}}function _z(e){const{format:t,use12Hours:n,defaultFormat:r}=Jt(e),o=V(()=>{let f=t?.value||r?.value;return(!f||!ZF(f).list.length)&&(f=n?.value?"hh:mm:ss a":"HH:mm:ss"),f}),a=V(()=>ZF(o.value)),s=V(()=>a.value.list),l=V(()=>a.value.use12Hours),c=V(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function Qfe(e){const t=n=>M6e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>qn(n)?n.some(r=>t(r)):t(n)}const iOe=be({name:"TimePickerPanel",components:{TimeColumn:nOe,Button:Uo},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=>Mc(e),confirm:e=>Mc(e)},setup(e,{emit:t}){const{value:n,visible:r,format:o,step:a,use12Hours:s,hideDisabledOptions:l,disabledHours:c,disabledMinutes:f,disabledSeconds:h,disabled:p}=Jt(e),m=Ee("timepicker"),{t:g}=Ao(),{columns:b,use12Hours:S,format:k}=_z(Wt({format:o,use12Hours:s})),C=pe(n?.value),E=G=>{C.value=G};Dt([r,n],()=>{r.value&&E(n?.value)});const x=V(()=>{var G;const ee=(G=C.value)==null?void 0:G.hour();return mn(ee)||!S.value?ee:ee>12?ee-12:ee===0?12:ee}),_=V(()=>{var G;return(G=C.value)==null?void 0:G.minute()}),A=V(()=>{var G;return(G=C.value)==null?void 0:G.second()}),R=V(()=>{var G;const ee=(G=C.value)==null?void 0:G.hour();return!mn(ee)&&ee>=12?"pm":"am"}),{hours:M,minutes:D,seconds:N,ampmList:L}=rOe(Wt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:f,disabledSeconds:h,selectedHour:x,selectedMinute:_,selectedSecond:A,selectedAmpm:R,disabled:p})),B=Qfe(Wt({disabledHours:c,disabledMinutes:f,disabledSeconds:h})),F=V(()=>B(C.value));function j(G){mn(G)||t("confirm",G)}function z(G){E(G),t("select",G)}function q(G,ee="hour"){let Q;const X=x.value||"00",K=_.value||"00",te=A.value||"00",oe=R.value||"am";switch(ee){case"hour":Q=`${G}:${K}:${te}`;break;case"minute":Q=`${X}:${G}:${te}`;break;case"second":Q=`${X}:${K}:${G}`;break;case"ampm":Q=`${X}:${K}:${te} ${G}`;break;default:Q="00:00:00"}let ue="HH:mm:ss";S.value&&(ue="HH:mm:ss a",ee!=="ampm"&&(Q=`${Q} ${oe}`)),Q=ks(Q,ue),z(Q)}return{prefixCls:m,t:g,hours:M,minutes:D,seconds:N,ampmList:L,selectedValue:C,selectedHour:x,selectedMinute:_,selectedSecond:A,selectedAmpm:R,computedUse12Hours:S,confirmBtnDisabled:F,columns:b,onSelect:q,onSelectNow(){const G=ks(new Date);z(G)},onConfirm(){j(C.value)}}}});function oOe(e,t,n,r,o,a){const s=Pe("TimeColumn"),l=Pe("Button");return H(),J(Ft,null,[I("div",{class:se(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(H(),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"])):Ae("v-if",!0),e.columns.includes("m")?(H(),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"])):Ae("v-if",!0),e.columns.includes("s")?(H(),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"])):Ae("v-if",!0),e.computedUse12Hours?(H(),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"])):Ae("v-if",!0)],2),e.$slots["extra-footer"]?(H(),J("div",{key:0,class:se(`${e.prefixCls}-footer-extra-wrapper`)},[ft(e.$slots,"extra-footer")],2)):Ae("v-if",!0),e.hideFooter?Ae("v-if",!0):(H(),J("div",{key:1,class:se(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Ae("v-if",!0):(H(),Ye(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[He(Ne(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:de(()=>[He(Ne(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var FA=De(iOe,[["render",oOe]]);const sOe=be({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=Ee("icon"),r=V(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aOe=["stroke-width","stroke-linecap","stroke-linejoin"];function lOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1)]),14,aOe)}var vD=De(sOe,[["render",lOe]]);const Ok=Object.assign(vD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vD.name,vD)}}),uOe=be({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=Ee("icon"),r=V(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cOe=["stroke-width","stroke-linecap","stroke-linejoin"];function dOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,cOe)}var mD=De(uOe,[["render",dOe]]);const F3=Object.assign(mD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mD.name,mD)}}),ehe=6,QF=7,fOe=ehe*QF;function hOe(e){return{label:e.date(),value:e}}const pOe=be({name:"DatePanel",components:{PanelHeader:N3,PanelBody:B3,PanelWeekList:J6e,TimePanel:FA,IconCalendar:Ok,IconClockCircle:F3},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:f,disabledTime:h}=Jt(e),p=Dk(),m=V(()=>l?.value==="week"),g=V(()=>Ee(m.value?"panel-week":"panel-date")),b=Ee("picker"),[S,k]=ia("date",Wt({value:f})),C=V(()=>c.value&&n.value),E=V(()=>!c.value||!C.value||S.value==="date"),x=V(()=>c.value&&(!C.value||S.value==="time")),_=V(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),A=V(()=>r.value.format("YYYY-MM")),R=V(()=>{var j;return c.value&&((j=h?.value)==null?void 0:j.call(h,vu(o?.value||Ba())))||{}}),M=V(()=>{const j=[0,1,2,3,4,5,6],z=Math.max(a.value%7,0);return[...j.slice(z),...j.slice(0,z)]}),D=V(()=>{const j=Fs.startOf(r.value,"month"),z=j.day(),q=j.daysInMonth(),G=M.value.indexOf(z),ee=S1(fOe);for(let X=0;XG+q-1};return S1(ehe).map((X,K)=>{const te=ee.slice(K*QF,(K+1)*QF);if(m.value){const oe=te[0].value;te.unshift({label:oe.week(),value:oe})}return te})}),N=V(()=>s?.value||((j,z)=>j.isSame(z,"day")));function L(j){t("select",j.value)}function B(j){t("time-picker-select",j)}function F(j){t("cell-mouse-enter",j.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:b,headerTitle:A,rows:D,weekList:V(()=>m.value?[-1,...M.value]:M.value),mergedIsSameTime:N,disabledTimeProps:R,onCellClick:L,onCellMouseEnter:F,onTimePanelSelect:B,showViewTabs:C,showDateView:E,showTimeView:x,changeViewTo:j=>{t("current-view-change",j),t("update:currentView",j),k(j)},datePickerT:p}}});function vOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelWeekList"),c=Pe("PanelBody"),f=Pe("TimePanel"),h=Pe("IconCalendar"),p=Pe("IconClockCircle");return H(),J("div",{class:se(e.classNames)},[e.showDateView?(H(),J("div",{key:0,class:se(`${e.prefixCls}-inner`)},[O(s,Bt({...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)):Ae("v-if",!0),e.showTimeView?(H(),J("div",{key:1,class:se(`${e.prefixCls}-timepicker`)},[I("header",{class:se(`${e.prefixCls}-timepicker-title`)},Ne(e.datePickerT("datePicker.selectTime")),3),O(f,Bt({...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)):Ae("v-if",!0),e.showViewTabs?(H(),J("div",{key:2,class:se(`${e.prefixCls}-footer`)},[I("div",{class:se(`${e.prefixCls}-view-tabs`)},[I("div",{class:se([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[O(h),I("span",{class:se(`${e.prefixCls}-view-tab-pane-text`)},Ne(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:se([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[O(p),I("span",{class:se(`${e.prefixCls}-view-tab-pane-text`)},Ne(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Ae("v-if",!0)],2)}var Sz=De(pOe,[["render",vOe]]);const mOe=be({name:"WeekPanel",components:{DatePanel:Sz},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return Ao(),{isSameTime:(r,o)=>Fs.isSameWeek(r,o,e.dayStartOfWeek),onSelect:r=>{const o=Fs.startOfWeek(r,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:r=>{const o=Fs.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function gOe(e,t,n,r,o,a){const s=Pe("DatePanel");return H(),Ye(s,Bt(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 the=De(mOe,[["render",gOe]]);const yOe=["January","February","March","April","May","June","July","August","September","October","November","December"],bOe=12,_Oe=4,sne=3,SOe=be({name:"MonthPanel",components:{PanelHeader:N3,PanelBody:B3},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=Dk(),{headerValue:r}=Jt(e),o=V(()=>Ee("panel-month")),a=Ee("picker"),s=V(()=>r.value.format("YYYY")),l=V(()=>{const p=r.value.year(),m=e.abbreviation?"short":"long",g=S1(bOe).map((S,k)=>({label:n(`datePicker.month.${m}.${yOe[k]}`),value:ks(`${p}-${k+1}`,"YYYY-M")}));return S1(_Oe).map((S,k)=>g.slice(k*sne,(k+1)*sne))}),c=(p,m)=>p.isSame(m,"month");function f(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:f,onCellMouseEnter:h}}});function kOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:se(e.prefixCls)},[I("div",{class:se(`${e.prefixCls}-inner`)},[O(s,Bt({...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 nhe=De(SOe,[["render",kOe]]);const ej=4,t4=3,wOe=ej*t4,gD=10,COe=be({name:"YearPanel",components:{PanelHeader:N3,PanelBody:B3},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}=Jt(e),r=V(()=>Ee("panel-year")),o=Ee("picker"),a=V(()=>{const h=Math.floor(n.value.year()/gD)*gD-1,p=S1(wOe).map((g,b)=>({label:h+b,value:ks(`${h+b}`,"YYYY"),isPrev:b<1,isNext:b>gD}));return S1(ej).map((g,b)=>p.slice(b*t4,(b+1)*t4))}),s=V(()=>`${a.value[0][1].label}-${a.value[ej-1][t4-1].label}`),l=(h,p)=>h.isSame(p,"year");function c(h){t("select",h.value)}function f(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:s,rows:a,isSameTime:l,onCellClick:c,onCellMouseEnter:f}}});function EOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:se(e.prefixCls)},[I("div",{class:se(`${e.prefixCls}-inner`)},[O(s,Bt({...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 rhe=De(COe,[["render",EOe]]);const xOe=be({name:"QuarterPanel",components:{PanelHeader:N3,PanelBody:B3},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}=Jt(e),r=V(()=>Ee("panel-quarter")),o=Ee("picker"),a=V(()=>n.value.format("YYYY")),s=V(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:ks(`${h}-${ng((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 f(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:f}}});function TOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:se(e.prefixCls)},[I("div",{class:se(`${e.prefixCls}-inner`)},[O(s,Bt({...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 ihe=De(xOe,[["render",TOe]]);const AOe=be({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=Ee("icon"),r=V(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 LOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1)]),14,IOe)}var yD=De(AOe,[["render",LOe]]);const cd=Object.assign(yD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yD.name,yD)}}),POe=be({name:"Link",components:{IconLink:cd,IconLoading:Va},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=Ee("link"),o=Gfe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:V(()=>[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}}}),ROe=["href"];function MOe(e,t,n,r,o,a){const s=Pe("icon-loading"),l=Pe("icon-link");return H(),J("a",{href:e.disabled?void 0:e.href,class:se(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[e.loading?(H(),Ye(s,{key:0})):ft(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Ae("v-if",!0),ft(e.$slots,"default")],10,ROe)}var bD=De(POe,[["render",MOe]]);const ohe=Object.assign(bD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+bD.name,bD)}}),DOe=be({name:"PanelFooter",components:{Link:ohe,Button:Uo},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:Dk(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function OOe(e,t,n,r,o,a){const s=Pe("Link"),l=Pe("Button");return H(),J("div",{class:se(`${e.prefixCls}-footer`)},[e.$slots.extra?(H(),J("div",{key:0,class:se(`${e.prefixCls}-footer-extra-wrapper`)},[ft(e.$slots,"extra")],2)):Ae("v-if",!0),e.showTodayBtn?(H(),J("div",{key:1,class:se(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:de(()=>[He(Ne(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Ae("v-if",!0),e.$slots.btn||e.showConfirmBtn?(H(),J("div",{key:2,class:se(`${e.prefixCls}-footer-btn-wrapper`)},[ft(e.$slots,"btn"),e.showConfirmBtn?(H(),Ye(l,{key:0,class:se(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[He(Ne(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Ae("v-if",!0)],2)):Ae("v-if",!0)],2)}var she=De(DOe,[["render",OOe]]);function ahe(e){const{mode:t}=Jt(e),n=V(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=V(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function jA(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=Jt(e),l=V(()=>t?.value||"date"),{span:c,superSpan:f}=ahe(Wt({mode:l})),h=(A,R)=>{const M=l.value==="date"||l.value==="week"?"M":"y";return A.isSame(R,M)},p=V(()=>rc(n?.value,a.value)),m=V(()=>rc(r?.value,a.value)),g=pe(m.value||Ba()),b=V(()=>p.value||g.value),S=A=>{A&&(g.value=A)},k=(A,R=!0)=>{var M;A&&(R&&!h(b.value,A)&&((M=s?.value)==null||M.call(s,A)),S(A))};o?.value&&S(o.value),Dt(()=>o?.value,A=>{k(A)});function C(){return o?.value||m.value||Ba()}function E(A=!0){const R=C();A?k(R):S(R)}const x=V(()=>c.value!==f.value),_=V(()=>({onSuperPrev:()=>{k(Fs.subtract(b.value,f.value,"M"))},onPrev:x.value?()=>{k(Fs.subtract(b.value,c.value,"M"))}:void 0,onNext:x.value?()=>{k(Fs.add(b.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Fs.add(b.value,f.value,"M"))}}));return{headerValue:b,setHeaderValue:k,headerOperations:_,resetHeaderValue:E,getDefaultLocalValue:C}}const $Oe=be({name:"DatePikerPanel",components:{DatePanel:Sz,PanelShortcuts:Yfe,PanelFooter:she,WeekPanel:the,MonthPanel:nhe,YearPanel:rhe,QuarterPanel:ihe,RenderFunction:Uh},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:f,dateRender:h,showConfirmBtn:p,headerValue:m,headerIcons:g,headerOperations:b,headerMode:S}=Jt(e),k=V(()=>!!(r.value&&r.value.length)),C=V(()=>f.value&&p.value&&!k.value),E=V(()=>C.value||k.value),x=V(()=>E.value&&o.value==="left"),_=V(()=>E.value&&o.value==="right"),A=V(()=>E.value&&o.value==="bottom"),R=V(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:x.value,[`${n.value}-container-shortcuts-placement-right`]:_.value}]),M=V(()=>s?.value||Ba()),{headerValue:D,setHeaderValue:N,headerOperations:L}=jA(Wt({mode:S,format:a}));Dt(m,ae=>{N(ae)});function B(ae){const{value:xe}=ae;return rc(pn(xe)?xe():xe,ae.format||a.value)}function F(ae){t("shortcut-click",B(ae),ae)}function j(ae){t("shortcut-mouse-enter",B(ae))}function z(ae){t("shortcut-mouse-leave",B(ae))}function q(ae){t("cell-click",ae)}function G(ae){t("time-picker-select",ae)}function ee(){t("today-btn-click",Ba())}function Q(){t("confirm")}function X(ae){t("header-label-click",ae)}function K(ae){t("header-select",ae)}function te(){t("month-header-click")}const oe=Wt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:F,onItemMouseEnter:j,onItemMouseLeave:z,onNowClick:ee}),ue=Wt({value:s,headerValue:m,headerIcons:g,headerOperations:b,disabledDate:l,dateRender:h,onSelect:q,onHeaderLabelClick:X});return{classNames:R,showShortcutsInLeft:x,showShortcutsInRight:_,showShortcutsInBottom:A,shortcutsProps:oe,commonPanelProps:ue,footerValue:M,onTodayBtnClick:ee,onConfirmBtnClick:Q,onTimePickerSelect:G,onHeaderPanelSelect:K,headerPanelHeaderValue:D,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:te}}});function NOe(e,t,n,r,o,a){const s=Pe("PanelShortcuts"),l=Pe("YearPanel"),c=Pe("MonthPanel"),f=Pe("WeekPanel"),h=Pe("QuarterPanel"),p=Pe("DatePanel"),m=Pe("RenderFunction"),g=Pe("PanelFooter");return H(),J("div",{class:se(e.classNames)},[e.showShortcutsInLeft?(H(),Ye(s,Ni(Bt({key:0},e.shortcutsProps)),null,16)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(H(),J(Ft,{key:0},[e.headerMode==="year"?(H(),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"?(H(),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"])):Ae("v-if",!0)],64)):(H(),J(Ft,{key:1},[e.mode==="week"?(H(),Ye(f,Bt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(H(),Ye(c,Bt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(H(),Ye(l,Ni(Bt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(H(),Ye(h,Ni(Bt({key:3},e.commonPanelProps)),null,16)):(H(),Ye(p,Bt({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},yo({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(H(),Ye(m,{key:0,"render-func":e.extra},null,8,["render-func"])):Ae("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[O(s,Ni(fa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(H(),Ye(s,Ni(Bt({key:1},e.shortcutsProps)),null,16)):Ae("v-if",!0)],2)}var BOe=De($Oe,[["render",NOe]]);function FOe(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 jOe(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 lhe(e){const{format:t,mode:n,showTime:r,valueFormat:o}=Jt(e),a=V(()=>!pn(t?.value)&&t?.value||FOe(n?.value,r?.value)),s=V(()=>o?.value||jOe(n?.value,r?.value)),l=V(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function uhe(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=Jt(e),s=V(()=>t?.value==="date"&&n?.value),l=V(()=>(h,p)=>{if(!r?.value)return!1;const m=vu(h);return a?.value?r.value(m,p):r.value(m)}),c=(h,p)=>(p?.()||[]).includes(h),f=V(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const m=vu(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")||f.value(p,m||"start"))}}const rg=(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 rg(t?.value||{},l)||r(a,...s)};return Wr(qfe,{datePickerT:o}),o}function tj(e){const{timePickerProps:t,selectedValue:n}=Jt(e),r=V(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=V(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=_z(Wt({format:r,use12Hours:o})),s=V(()=>{var p;return rc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Ba(),c=pe(l());function f(p){p&&(c.value=p)}function h(){c.value=l()}return Dt(n,p=>{f(p)}),[c,f,h]}function dhe(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function VOe(e){const{format:t}=Jt(e);return n=>dhe(n,t.value)}function _D(e,t){return e.map(n=>n?dhe(n,t):void 0)}const UOe=be({name:"Picker",components:{DateInput:Kfe,Trigger:oa,PickerPanel:BOe,IconCalendar:Ok},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:f,defaultPopupVisible:h,disabled:p,showTime:m,timePickerProps:g,disabledDate:b,disabledTime:S,readonly:k,locale:C,pickerValue:E,defaultPickerValue:x,dayStartOfWeek:_,previewShortcut:A,showConfirmBtn:R}=Jt(e),{locale:M}=Ao();Cs(()=>{kfe(M.value,_.value)});const{mergedDisabled:D,eventHandlers:N}=So({disabled:p}),L=che(Wt({locale:C})),B=Ee("picker"),F=pe(),j=V(()=>c?.value||{date:L("datePicker.placeholder.date"),month:L("datePicker.placeholder.month"),year:L("datePicker.placeholder.year"),week:L("datePicker.placeholder.week"),quarter:L("datePicker.placeholder.quarter")}[r.value]||L("datePicker.placeholder.date")),{format:z,valueFormat:q,parseValueFormat:G}=lhe(Wt({format:s,mode:r,showTime:m,valueFormat:l})),ee=V(()=>s&&pn(s.value)?wn=>{var fr;return(fr=s.value)==null?void 0:fr.call(s,vu(wn))}:z.value),Q=VOe(Wt({format:q})),X=uhe(Wt({mode:r,disabledDate:b,disabledTime:S,showTime:m})),K=V(()=>m.value||R.value),te=V(()=>K.value&&(!Fe.value||X(Fe.value))),oe=V(()=>r.value==="date"&&m.value),{value:ue,setValue:ae}=A6e(Wt({modelValue:o,defaultValue:a,format:G})),[xe,$e]=Na(),[ge,Oe]=Na(),Fe=V(()=>{var wn;return(wn=xe.value)!=null?wn:ue.value}),Xe=V(()=>{var wn,fr;return(fr=(wn=ge.value)!=null?wn:xe.value)!=null?fr:ue.value}),[Je,Ke]=Na(),[_e,ye]=ia(h.value,Wt({value:f})),Me=wn=>{_e.value!==wn&&(ye(wn),t("popup-visible-change",wn),t("update:popupVisible",wn))},{headerValue:We,setHeaderValue:qe,headerOperations:st,resetHeaderValue:gt}=jA(Wt({mode:r,value:E,defaultValue:x,selectedValue:Xe,format:G,onChange:wn=>{const fr=Q(wn),wi=ef(wn,G.value),Hs=vu(wn);t("picker-value-change",fr,Hs,wi),t("update:pickerValue",fr)}})),[ct,,Tt]=tj(Wt({timePickerProps:g,selectedValue:Xe})),xt=V(()=>!k.value&&!pn(ee.value)),qt=pe();Dt(_e,wn=>{$e(void 0),Oe(void 0),qt.value=void 0,wn&&(gt(),Tt()),wn||Ke(void 0)});function Gt(wn,fr){var wi,Hs;const hs=wn?Q(wn):void 0,Wl=ef(wn,G.value),Gc=vu(wn);cz(wn,ue.value)&&(t("update:modelValue",hs),t("change",hs,Gc,Wl),(Hs=(wi=N.value)==null?void 0:wi.onChange)==null||Hs.call(wi)),fr&&t("ok",hs,Gc,Wl)}function Qt(wn,fr,wi){X(wn)||(Gt(wn,wi),ae(wn),$e(void 0),Oe(void 0),Ke(void 0),qt.value=void 0,gl(fr)&&Me(fr))}function Pt(wn,fr){if($e(wn),Oe(void 0),Ke(void 0),qt.value=void 0,fr){const wi=wn?Q(wn):void 0,Hs=ef(wn,G.value),hs=vu(wn);t("select",wi,hs,Hs)}}function at(wn){F.value&&F.value.focus&&F.value.focus(wn)}function bt(wn,fr){return!oe.value&&!g.value?wn:Xfe(Ba(),wn,fr)}function Ue(wn){D.value||Me(wn)}function Be(wn){wn.stopPropagation(),Qt(void 0),t("clear")}function lt(){var wn,fr;(fr=(wn=N.value)==null?void 0:wn.onBlur)==null||fr.call(wn)}function kt(wn){Me(!0);const fr=wn.target.value;if(Ke(fr),!BA(fr,z.value))return;const wi=ks(fr,z.value);X(wi)||(K.value?Pt(wi):Qt(wi,!0))}function ut(){Qt(Xe.value,!1)}function et(wn){K.value?Pt(wn,!0):Qt(wn,!1)}function Le(wn){const fr=bt(wn,ct.value);et(fr)}function yt(wn){const fr=bt(Xe.value||Ba(),wn);et(fr)}function Lt(){Qt(Xe.value,!1,!0)}function Ht(){e.disabledInput&&at()}let It;si(()=>{clearTimeout(It)});function Yt(wn){clearTimeout(It),Oe(wn),Ke(void 0)}function En(){clearTimeout(It),It=setTimeout(()=>{Oe(void 0)},100)}function er(wn,fr){t("select-shortcut",fr),Qt(wn,!1)}function ji(wn){qt.value=wn}function Hl(){qt.value="year"}function qr(wn){let fr=We.value;if(fr=fr.set("year",wn.year()),qt.value==="month"&&(fr=fr.set("month",wn.month())),qe(fr),r.value==="quarter"||r.value==="month"){qt.value=void 0;return}qt.value=qt.value==="year"?"month":void 0}const io=V(()=>({format:z.value,...pa(g?.value||{},["defaultValue"]),visible:_e.value})),zs=V(()=>({...hf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:G.value,value:Xe.value,visible:_e.value,showConfirmBtn:K.value,confirmBtnDisabled:te.value,timePickerProps:io.value,extra:n.extra,dateRender:n.cell,headerValue:We.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:st.value,timePickerValue:ct.value,headerMode:qt.value,onCellClick:Le,onTimePickerSelect:yt,onConfirm:Lt,onShortcutClick:er,onShortcutMouseEnter:A.value?Yt:void 0,onShortcutMouseLeave:A.value?En:void 0,onTodayBtnClick:et,onHeaderLabelClick:ji,onHeaderSelect:qr,onMonthHeaderClick:Hl}));return{prefixCls:B,refInput:F,panelProps:zs,panelValue:Xe,inputValue:Je,selectedValue:ue,inputFormat:ee,computedPlaceholder:j,panelVisible:_e,inputEditable:xt,needConfirm:K,mergedDisabled:D,onPanelVisibleChange:Ue,onInputClear:Be,onInputChange:kt,onInputPressEnter:ut,onInputBlur:lt,onPanelClick:Ht}}});function zOe(e,t,n,r,o,a){const s=Pe("IconCalendar"),l=Pe("DateInput"),c=Pe("PickerPanel"),f=Pe("Trigger");return e.hideTrigger?(H(),Ye(c,Ni(Bt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(H(),Ye(f,Bt({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,Bt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[ft(e.$slots,"default",{},()=>[O(l,Bt(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),yo({"suffix-icon":de(()=>[ft(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(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 $k=De(UOe,[["render",zOe]]),SD=be({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($k,Bt(e,t,{mode:"date"}),n)}}),n4=be({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($k,Bt(e,t,{mode:"week"}),n)}}),r4=be({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($k,Bt(e,t,{mode:"month"}),n)}}),i4=be({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($k,Bt(e,t,{mode:"year"}),n)}}),o4=be({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($k,Bt(e,t,{mode:"quarter"}),n)}});function HOe(e){const{modelValue:t,defaultValue:n,format:r}=Jt(e),o=V(()=>rc(JF(t.value),r.value)),a=V(()=>rc(JF(n.value),r.value)),[s,l]=Na(mn(o.value)?mn(a.value)?[]:a.value:o.value);return Dt(o,()=>{mn(o.value)&&l([])}),{value:V(()=>o.value||s.value),setValue:l}}function WOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=Jt(e),f=V(()=>["date","week"].includes(r.value)),h=V(()=>f.value?"M":"y"),p=(xe,$e)=>xe.isSame($e,h.value),{span:m,superSpan:g}=ahe(Wt({mode:r})),b=V(()=>t?.value||r.value),S=V(()=>n?.value||r.value),k=V(()=>{var xe;return(xe=o.value)==null?void 0:xe[0]}),C=V(()=>{var xe;return(xe=o.value)==null?void 0:xe[1]}),E=V(()=>{var xe;return(xe=a.value)==null?void 0:xe[0]}),x=V(()=>{var xe;return(xe=a.value)==null?void 0:xe[1]}),_=xe=>{c?.value&&c.value(xe)},{headerValue:A,setHeaderValue:R,headerOperations:M,getDefaultLocalValue:D}=jA(Wt({mode:b,value:k,defaultValue:E,selectedValue:void 0,format:l,onChange:xe=>{_([xe,N.value])}})),{headerValue:N,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:F}=jA(Wt({mode:S,value:C,defaultValue:x,selectedValue:void 0,format:l,onChange:xe=>{_([A.value,xe])}})),j=xe=>{const $e=p(A.value,xe[0]),ge=p(N.value,xe[1]);R(xe[0],!1),L(xe[1],!1),(!$e||!ge)&&c?.value&&c?.value(xe)};function z(xe){let[$e,ge]=B2(xe);const Oe=Fs.add($e,m.value,"M");return ge.isBefore(Oe,h.value)&&(ge=Oe),[$e,ge]}function q(){var xe,$e;let ge=(xe=s.value)==null?void 0:xe[0],Oe=($e=s.value)==null?void 0:$e[1];return ge&&Oe&&([ge,Oe]=B2([ge,Oe])),[ge,Oe]}const[G,ee]=q(),[Q,X]=z([G||A.value,ee||N.value]);R(Q,!1),L(X,!1);const K=()=>{const xe=D(),$e=F();kn(()=>{const[ge,Oe]=q(),[Fe,Xe]=z([ge||xe,Oe||$e]);j([Fe,Xe])})},te=V(()=>Fs.add(A.value,m.value,"M").isBefore(N.value,h.value)),oe=V(()=>Fs.add(A.value,g.value,"M").isBefore(N.value,h.value)),ue=V(()=>{const xe=["onSuperPrev"];return f.value&&xe.push("onPrev"),te.value&&f&&xe.push("onNext"),oe.value&&xe.push("onSuperNext"),hf(M.value,xe)}),ae=V(()=>{const xe=["onSuperNext"];return f.value&&xe.push("onNext"),te.value&&f.value&&xe.push("onPrev"),oe.value&&xe.push("onSuperPrev"),hf(B.value,xe)});return{startHeaderValue:A,endHeaderValue:N,startHeaderOperations:ue,endHeaderOperations:ae,setHeaderValue:j,resetHeaderValue:K}}const GOe=be({name:"DateInputRange",components:{IconHover:_o,IconClose:Us,FeedbackIcon:Lk},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:f,inputValue:h}=Jt(e),{mergedSize:p,mergedDisabled:m,mergedError:g,feedback:b}=So({size:s,error:r}),{mergedSize:S}=ma(p),k=pe(),C=pe(),E=G=>m.value?m.value:qn(a.value)?a.value[G]:a.value,x=V(()=>E(0)),_=V(()=>E(1)),A=Ee("picker"),R=V(()=>[A,`${A}-range`,`${A}-size-${S.value}`,{[`${A}-focused`]:o.value,[`${A}-disabled`]:x.value&&_.value,[`${A}-error`]:g.value,[`${A}-has-prefix`]:n.prefix}]);function M(G){return[`${A}-input`,{[`${A}-input-active`]:G===f?.value}]}function D(G){var ee,Q;if(h?.value)return(ee=h?.value)==null?void 0:ee[G];const X=(Q=l?.value)==null?void 0:Q[G];if(X&&Mc(X))return pn(c.value)?c.value(X):X.format(c.value)}const N=V(()=>D(0)),L=V(()=>D(1));function B(G){t("focused-index-change",G),t("update:focusedIndex",G)}function F(G){G.stopPropagation(),t("change",G)}function j(){t("press-enter")}function z(G){G.preventDefault()}function q(G){t("clear",G)}return{prefixCls:A,classNames:R,refInput0:k,refInput1:C,disabled0:x,disabled1:_,mergedDisabled:m,getDisabled:E,getInputWrapClassName:M,displayValue0:N,displayValue1:L,changeFocusedInput:B,onChange:F,onPressEnter:j,onPressTab:z,onClear:q,feedback:b}},methods:{focus(e){const t=Ge(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!mn(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),KOe=["disabled","placeholder","value"],qOe=["disabled","placeholder","value"];function YOe(e,t,n,r,o,a){const s=Pe("IconClose"),l=Pe("IconHover"),c=Pe("FeedbackIcon");return H(),J("div",{class:se(e.classNames)},[e.$slots.prefix?(H(),J("div",{key:0,class:se(`${e.prefixCls}-prefix`)},[ft(e.$slots,"prefix")],2)):Ae("v-if",!0),I("div",{class:se(e.getInputWrapClassName(0))},[I("input",Bt({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...f)=>e.onChange&&e.onChange(...f)),onKeydown:[t[1]||(t[1]=mh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[2]||(t[2]=mh((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,KOe)],2),I("span",{class:se(`${e.prefixCls}-separator`)},[ft(e.$slots,"separator",{},()=>[t[8]||(t[8]=He(" - "))])],2),I("div",{class:se(e.getInputWrapClassName(1))},[I("input",Bt({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...f)=>e.onChange&&e.onChange(...f)),onKeydown:[t[5]||(t[5]=mh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[6]||(t[6]=mh((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,qOe)],2),I("div",{class:se(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(H(),Ye(l,{key:0,prefix:e.prefixCls,class:se(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Ae("v-if",!0),I("span",{class:se(`${e.prefixCls}-suffix-icon`)},[ft(e.$slots,"suffix-icon")],2),e.feedback?(H(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Ae("v-if",!0)],2)],2)}var fhe=De(GOe,[["render",YOe]]);const XOe=be({name:"DateRangePikerPanel",components:{PanelShortcuts:Yfe,PanelFooter:she,RenderFunction:Uh,DatePanel:Sz,WeekPanel:the,MonthPanel:nhe,YearPanel:rhe,QuarterPanel:ihe},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:f,startHeaderProps:h,endHeaderProps:p,dateRender:m,visible:g,startHeaderMode:b,endHeaderMode:S}=Jt(e),k=V(()=>qn(r.value)&&r.value.length),C=V(()=>[`${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"}]),E=pe("date");Dt(g,(oe,ue)=>{oe&&!ue&&(E.value="date")});function x(oe){return rc(JF(pn(oe.value)?oe.value():oe.value),oe.format||a.value)}function _(oe){t("shortcut-click",x(oe),oe)}function A(oe){t("shortcut-mouse-enter",x(oe))}function R(oe){t("shortcut-mouse-leave",x(oe))}function M(oe){t("cell-click",oe)}function D(oe){t("cell-mouse-enter",oe)}function N(){t("confirm")}function L(oe){t("time-picker-select",oe,"start")}function B(oe){t("time-picker-select",oe,"end")}function F(oe){t("start-header-label-click",oe)}function j(oe){t("end-header-label-click",oe)}function z(oe){t("start-header-select",oe)}function q(oe){t("end-header-select",oe)}function G(oe){return pn(c?.value)?ue=>{var ae;return((ae=c?.value)==null?void 0:ae.call(c,ue,oe===0?"start":"end"))||!1}:void 0}function ee(oe){return pn(f?.value)?ue=>{var ae;return((ae=f?.value)==null?void 0:ae.call(f,ue,oe===0?"start":"end"))||!1}:void 0}function Q(oe){return pn(m?.value)?ue=>{var ae;const xe={...ue,type:oe===0?"start":"end"};return(ae=m?.value)==null?void 0:ae.call(m,xe)}:void 0}const X=Wt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:A,onItemMouseLeave:R}),K=V(()=>({...h.value,rangeValues:l.value,disabledDate:G(0),dateRender:Q(0),onSelect:b.value?z:M,onCellMouseEnter:D,onHeaderLabelClick:F})),te=V(()=>({...p.value,rangeValues:l.value,disabledDate:G(1),dateRender:Q(1),onSelect:S.value?q:M,onCellMouseEnter:D,onHeaderLabelClick:j}));return{pick:hf,classNames:C,showShortcuts:k,shortcutsProps:X,startPanelProps:K,endPanelProps:te,getDisabledTimeFunc:ee,onConfirmBtnClick:N,currentDateView:E,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:z,onEndHeaderPanelSelect:q}}});function ZOe(e,t,n,r,o,a){const s=Pe("PanelShortcuts"),l=Pe("YearPanel"),c=Pe("MonthPanel"),f=Pe("WeekPanel"),h=Pe("QuarterPanel"),p=Pe("DatePanel"),m=Pe("RenderFunction"),g=Pe("PanelFooter");return H(),J("div",{class:se(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(H(),Ye(s,Ni(Bt({key:0},e.shortcutsProps)),null,16)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-range-panel-wrapper`)},[Ae(" panel "),I("div",{class:se(`${e.prefixCls}-range`)},[I("div",{class:se(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(H(),J(Ft,{key:0},[e.startHeaderMode==="year"?(H(),Ye(l,Ni(Bt({key:0},e.startPanelProps)),null,16)):Ae("v-if",!0),e.endHeaderMode==="year"?(H(),Ye(l,Ni(Bt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(H(),Ye(c,Bt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(H(),Ye(c,Bt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Ae("v-if",!0)],64)):(H(),J(Ft,{key:1},[Ae(" week "),e.mode==="week"?(H(),J(Ft,{key:0},[O(f,Bt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(f,Bt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(H(),J(Ft,{key:1},[Ae(" month "),O(c,Bt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,Bt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(H(),J(Ft,{key:2},[Ae(" year "),O(l,Ni(fa(e.startPanelProps)),null,16),O(l,Ni(fa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(H(),J(Ft,{key:3},[Ae(" quarter "),O(h,Ni(fa(e.startPanelProps)),null,16),O(h,Ni(fa(e.endPanelProps)),null,16)],64)):(H(),J(Ft,{key:4},[Ae(" date "),O(p,Bt({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=b=>e.currentDateView=b)},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,Bt({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=b=>e.currentDateView=b)},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),Ae(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?ft(e.$slots,"extra",{key:0}):(H(),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,Ni(fa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(H(),Ye(s,Ni(Bt({key:1},e.shortcutsProps)),null,16)):Ae("v-if",!0)],2)}var JOe=De(XOe,[["render",ZOe]]);function QOe(e){const{timePickerProps:t,selectedValue:n}=Jt(e),r=V(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),o=V(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=V(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=V(()=>qn(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=V(()=>qn(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,f,h]=tj(Wt({timePickerProps:s,selectedValue:r})),[p,m,g]=tj(Wt({timePickerProps:l,selectedValue:o})),b=V(()=>[c.value,p.value]);function S(C){C&&(f(C[0]),m(C[1]))}function k(){h(),g()}return[b,S,k]}const e$e=be({name:"RangePicker",components:{RangePickerPanel:JOe,DateRangeInput:fhe,Trigger:oa,IconCalendar:Ok},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:f,placeholder:h,timePickerProps:p,disabled:m,disabledDate:g,disabledTime:b,locale:S,pickerValue:k,defaultPickerValue:C,valueFormat:E,size:x,error:_,dayStartOfWeek:A,exchangeTime:R,previewShortcut:M,showConfirmBtn:D}=Jt(e),{locale:N}=Ao(),L=xn(ja,void 0);Cs(()=>{kfe(N.value,A.value)});const B=V(()=>{var Qe;return!(!R.value||!((Qe=L?.exchangeTime)==null||Qe))}),{mergedSize:F,mergedDisabled:j,mergedError:z,eventHandlers:q}=So({size:x,error:_}),G=che(Wt({locale:S})),ee=Ee("picker"),Q=V(()=>h?.value||{date:G("datePicker.rangePlaceholder.date"),month:G("datePicker.rangePlaceholder.month"),year:G("datePicker.rangePlaceholder.year"),week:G("datePicker.rangePlaceholder.week"),quarter:G("datePicker.rangePlaceholder.quarter")}[r.value]||G("datePicker.rangePlaceholder.date")),{format:X,valueFormat:K,parseValueFormat:te}=lhe(Wt({mode:r,format:a,showTime:o,valueFormat:E})),oe=V(()=>{const Qe=m.value===!0||j.value||qn(m.value)&&m.value[0]===!0,rt=m.value===!0||j.value||qn(m.value)&&m.value[1]===!0;return[Qe,rt]}),ue=V(()=>oe.value[0]&&oe.value[1]);function ae(Qe=0){return oe.value[Qe]?Qe^1:Qe}const xe=pe(),$e=pe(ae()),ge=V(()=>{const Qe=$e.value,rt=Qe^1;return oe.value[rt]?Qe:rt}),Oe=V(()=>oe.value[$e.value^1]),{value:Fe,setValue:Xe}=HOe(Wt({modelValue:s,defaultValue:l,format:te})),[Je,Ke]=Na(),[_e,ye]=Na(),Me=V(()=>{var Qe;return(Qe=Je.value)!=null?Qe:Fe.value}),We=V(()=>{var Qe,rt;return(rt=(Qe=_e.value)!=null?Qe:Je.value)!=null?rt:Fe.value}),[qe,st]=Na(),gt=pe(),ct=pe(),[Tt,xt]=ia(f.value,Wt({value:c})),qt=Qe=>{Tt.value!==Qe&&(xt(Qe),t("popup-visible-change",Qe),t("update:popupVisible",Qe))},{startHeaderValue:Gt,endHeaderValue:Qt,startHeaderOperations:Pt,endHeaderOperations:at,resetHeaderValue:bt,setHeaderValue:Ue}=WOe(Wt({mode:r,startHeaderMode:gt,endHeaderMode:ct,value:k,defaultValue:C,selectedValue:We,format:te,onChange:Qe=>{const rt=_D(Qe,K.value),Rt=ef(Qe,te.value),Xt=vu(Qe);t("picker-value-change",rt,Xt,Rt),t("update:pickerValue",rt)}}));function Be(Qe){gt.value=Qe}function lt(Qe){ct.value=Qe}function kt(Qe){let rt=Gt.value;rt=rt.set("year",Qe.year()),gt.value==="month"&&(rt=rt.set("month",Qe.month())),Ue([rt,Qt.value]),gt.value=void 0}function ut(Qe){let rt=Qt.value;rt=rt.set("year",Qe.year()),ct.value==="month"&&(rt=rt.set("month",Qe.month())),Ue([Gt.value,rt]),ct.value=void 0}const et=pe([We.value[0]||Ba(),We.value[1]||Ba()]);Dt(We,()=>{const[Qe,rt]=We.value;et.value[0]=Qe||et.value[0],et.value[1]=rt||et.value[1]});const[Le,yt,Lt]=QOe(Wt({timePickerProps:p,selectedValue:We})),Ht=V(()=>r.value==="date"&&o.value),It=V(()=>Ht.value||p.value),Yt=uhe(Wt({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:b})),En=V(()=>Ht.value||D.value),er=V(()=>En.value&&(!Rp(Me.value)||Yt(Me.value[0],"start")||Yt(Me.value[1],"end")));Dt(Tt,Qe=>{gt.value=void 0,ct.value=void 0,Ke(void 0),ye(void 0),Qe&&(bt(),Lt(),$e.value=ae($e.value),kn(()=>fr($e.value))),Qe||st(void 0)}),Dt($e,()=>{e.disabledInput&&(fr($e.value),st(void 0))});function ji(Qe,rt){var Rt,Xt;const Ut=Qe?_D(Qe,K.value):void 0,sn=ef(Qe,te.value),un=vu(Qe);cz(Qe,Fe.value)&&(t("update:modelValue",Ut),t("change",Ut,un,sn),(Xt=(Rt=q.value)==null?void 0:Rt.onChange)==null||Xt.call(Rt)),rt&&t("ok",Ut,un,sn)}function Hl(Qe){let rt=B2(Qe);return It.value&&!B.value&&(rt=[wi(rt[0],Qe[0]),wi(rt[1],Qe[1])]),rt}function qr(Qe,rt,Rt){if(Yt(Qe?.[0],"start")||Yt(Qe?.[1],"end"))return;let Xt=Qe?[...Qe]:void 0;Rp(Xt)&&(Xt=Hl(Xt)),ji(Xt,Rt),Xe(Xt||[]),Ke(void 0),ye(void 0),st(void 0),gt.value=void 0,ct.value=void 0,gl(rt)&&qt(rt)}function io(Qe){const rt=_D(Qe,K.value),Rt=ef(Qe,te.value),Xt=vu(Qe);t("select",rt,Xt,Rt)}function zs(Qe,rt){const{emitSelect:Rt=!1,updateHeader:Xt=!1}=rt||{};let Ut=[...Qe];Rp(Ut)&&(Ut=Hl(Ut)),Ke(Ut),ye(void 0),st(void 0),gt.value=void 0,ct.value=void 0,Rt&&io(Ut),Xt&&bt()}function wn(Qe,rt){const{updateHeader:Rt=!1}=rt||{};ye(Qe),st(void 0),Rt&&bt()}function fr(Qe){xe.value&&xe.value.focus&&xe.value.focus(Qe)}function wi(Qe,rt){return It.value?Xfe(Ba(),Qe,rt):Qe}function Hs(Qe){qt(Qe)}function hs(Qe){if(Je.value&&We.value[ge.value]&&(!En.value||!Rp(Je.value))){const rt=[...We.value],Rt=wi(Qe,Le.value[$e.value]);rt[$e.value]=Rt,wn(rt)}}function Wl(Qe=!1){return Oe.value?[...Fe.value]:Je.value?Qe||!Rp(Je.value)?[...Je.value]:[]:Qe?[...Fe.value]:[]}function Gc(Qe){const rt=Wl(),Rt=wi(Qe,Le.value[$e.value]);rt[$e.value]=Rt,io(rt),!En.value&&Rp(rt)?qr(rt,!1):(zs(rt),Rp(rt)?$e.value=0:$e.value=ge.value)}function Ki(Qe,rt){const Rt=rt==="start"?0:1,Xt=wi(Le.value[Rt],Qe),Ut=[...Le.value];Ut[Rt]=Xt,yt(Ut);const sn=Wl(!0);sn[Rt]&&(sn[Rt]=Xt,zs(sn,{emitSelect:!0}))}let Gl;si(()=>{clearTimeout(Gl)});function ce(Qe){clearTimeout(Gl),wn(Qe,{updateHeader:!0})}function ie(){clearTimeout(Gl),Gl=setTimeout(()=>{ye(void 0),st(void 0),bt()},100)}function ne(Qe,rt){t("select-shortcut",rt),qr(Qe,!1)}function Z(){qr(We.value,!1,!0)}function he(Qe){Qe.stopPropagation(),qr(void 0),t("clear")}function ke(Qe){qt(!0);const rt=Qe.target.value;if(!rt){st(void 0);return}const Rt=ef(We.value,X.value),Xt=qn(qe.value)?[...qe.value]:Rt||[];if(Xt[$e.value]=rt,st(Xt),!BA(rt,X.value))return;const Ut=ks(rt,X.value);if(Yt(Ut,$e.value===0?"start":"end"))return;const sn=qn(We.value)?[...We.value]:[];sn[$e.value]=Ut,zs(sn,{updateHeader:!0})}function Se(){$6e(We.value)?qr(We.value,!1):$e.value=ge.value}const Ie=V(()=>({format:X.value,...pa(p?.value||{},["defaultValue"]),visible:Tt.value})),it=V(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),tt=Wt({headerValue:Gt,headerOperations:Pt,headerIcons:it}),pt=Wt({headerValue:Qt,headerOperations:at,headerIcons:it}),we=V(()=>({...hf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:ee,format:te.value,value:We.value,showConfirmBtn:En.value,confirmBtnDisabled:er.value,timePickerValue:Le.value,timePickerProps:Ie.value,extra:n.extra,dateRender:n.cell,startHeaderProps:tt,endHeaderProps:pt,footerValue:et.value,disabled:oe.value,visible:Tt.value,onCellClick:Gc,onCellMouseEnter:hs,onShortcutClick:ne,onShortcutMouseEnter:M.value?ce:void 0,onShortcutMouseLeave:M.value?ie:void 0,onConfirm:Z,onTimePickerSelect:Ki,startHeaderMode:gt.value,endHeaderMode:ct.value,onStartHeaderLabelClick:Be,onEndHeaderLabelClick:lt,onStartHeaderSelect:kt,onEndHeaderSelect:ut}));return{prefixCls:ee,refInput:xe,computedFormat:X,computedPlaceholder:Q,panelVisible:Tt,panelValue:We,inputValue:qe,focusedIndex:$e,triggerDisabled:ue,mergedSize:F,mergedError:z,onPanelVisibleChange:Hs,onInputClear:he,onInputChange:ke,onInputPressEnter:Se,rangePanelProps:we}}});function t$e(e,t,n,r,o,a){const s=Pe("IconCalendar"),l=Pe("DateRangeInput"),c=Pe("RangePickerPanel"),f=Pe("Trigger");return e.hideTrigger?(H(),Ye(c,Ni(Bt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(H(),Ye(f,Bt({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,Ni(fa(e.rangePanelProps)),null,16)]),default:de(()=>[ft(e.$slots,"default",{},()=>[O(l,Bt({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=h=>e.focusedIndex=h),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),yo({"suffix-icon":de(()=>[ft(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:de(()=>[ft(e.$slots,"separator",{},()=>[He(Ne(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(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 s4=De(e$e,[["render",t$e]]);const n$e=Object.assign(SD,{WeekPicker:n4,MonthPicker:r4,YearPicker:i4,QuarterPicker:o4,RangePicker:s4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+SD.name,SD),e.component(n+i4.name,i4),e.component(n+o4.name,o4),e.component(n+r4.name,r4),e.component(n+n4.name,n4),e.component(n+s4.name,s4)}}),UA=["xxl","xl","lg","md","sm","xs"],JE={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 im=[],r$e=-1,QE={};const zA={matchHandlers:{},dispatch(e,t){return QE=e,im.length<1?!1:(im.forEach(n=>{n.func(QE,t)}),!0)},subscribe(e){im.length===0&&this.register();const t=(++r$e).toString();return im.push({token:t,func:e}),e(QE,null),t},unsubscribe(e){im=im.filter(t=>t.token!==e),im.length===0&&this.unregister()},unregister(){Object.keys(JE).forEach(e=>{const t=JE[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(JE).forEach(e=>{const t=JE[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...QE,[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 ane(e){return ar(e)}function Sh(e,t,n=!1){const r=pe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=V(()=>{let s=t;if(ane(e.value))for(let l=0;l{a=zA.subscribe(s=>{ane(e.value)&&(r.value=s)})}),si(()=>{a&&zA.unsubscribe(a)}),o}var kD=be({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}=Jt(e),o=Ee("descriptions"),{mergedSize:a}=ma(r),s=Sh(n,3,!0),l=V(()=>{var A;return(A=ar(e.align)?e.align.label:e.align)!=null?A:"left"}),c=V(()=>{var A;return(A=ar(e.align)?e.align.value:e.align)!=null?A:"left"}),f=V(()=>({textAlign:l.value,...e.labelStyle})),h=V(()=>({textAlign:c.value,...e.valueStyle})),p=A=>{const R=[];let M=[],D=0;const N=()=>{if(M.length){const L=s.value-D;M[M.length-1].span+=L,R.push(M)}};return A.forEach(L=>{var B,F;const j=Math.min((F=Di(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?F:1,s.value);D+j>s.value&&(N(),M=[],D=0),M.push({data:L,span:j}),D+=j}),N(),R},m=V(()=>{var A;return p((A=e.data)!=null?A:[])}),g=(A,R)=>{var M,D,N,L,B;return Di(A)?E3(A,A.children)&&((D=(M=A.children).label)==null?void 0:D.call(M))||((N=A.props)==null?void 0:N.label):(B=(L=t.label)==null?void 0:L.call(t,{label:A.label,index:R,data:A}))!=null?B:pn(A.label)?A.label():A.label},b=(A,R)=>{var M,D;return Di(A)?A:(D=(M=t.value)==null?void 0:M.call(t,{value:A.value,index:R,data:A}))!=null?D:pn(A.value)?A.value():A.value},S=A=>O(Ft,null,[O("tr",{class:`${o}-row`},[A.map((R,M)=>O("td",{key:`label-${M}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:f.value,colspan:R.span},[g(R.data,M)]))]),O("tr",{class:`${o}-row`},[A.map((R,M)=>O("td",{key:`value-${M}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:R.span},[b(R.data,M)]))])]),k=(A,R)=>O("tr",{class:`${o}-row`,key:`tr-${R}`},[A.map(M=>O(Ft,null,[O("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:f.value},[g(M.data,R)]),O("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:M.span*2-1},[b(M.data,R)])]))]),C=(A,R)=>O("tr",{class:`${o}-row`,key:`inline-${R}`},[A.map((M,D)=>O("td",{key:`item-${D}`,class:`${o}-item`,colspan:M.span},[O("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:f.value},[g(M.data,D)]),O("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:h.value},[b(M.data,D)])]))]),E=(A,R)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(A,R):e.layout==="vertical"?S(A):k(A,R),x=V(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${a.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var A,R;const M=(R=(A=t.title)==null?void 0:A.call(t))!=null?R:e.title;return M?O("div",{class:`${o}-title`},[M]):null};return()=>{const A=t.default?p(uf(t.default())):m.value;return O("div",{class:x.value},[_(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[A.map((R,M)=>E(R,M))])])])])}}});const i$e=be({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Ee("descriptions")}}});function o$e(e,t,n,r,o,a){return ft(e.$slots,"default")}var a4=De(i$e,[["render",o$e]]);const s$e=Object.assign(kD,{DescriptionsItem:a4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+kD.name,kD),e.component(n+a4.name,a4)}});var wD=be({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=Ee("divider"),r=V(()=>e.direction==="horizontal"),o=V(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=Ge(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!mn(e.margin)){const s=Ge(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 a$e=Object.assign(wD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+wD.name,wD)}}),hhe=e=>{const t=pe(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=mPe(a);(s>0||vPe(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}}}},l$e=["top","right","bottom","left"],u$e=be({name:"Drawer",components:{ClientOnly:nz,ArcoButton:Uo,IconHover:_o,IconClose:Us},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>l$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}=Jt(e),r=Ee("drawer"),{t:o}=Ao(),a=pe(e.defaultVisible),s=V(()=>{var j;return(j=e.visible)!=null?j:a.value}),l=pe(!1),c=V(()=>e.okLoading||l.value),{teleportContainer:f,containerRef:h}=rz({popupContainer:n,visible:s}),p=pe(s.value);let m=!1;const g=j=>{e.escToClose&&j.key===Do.ESC&&C()&&R(j)},b=()=>{e.escToClose&&!m&&(m=!0,ki(document.documentElement,"keydown",g))},S=()=>{m&&(m=!1,Gi(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=W1("dialog",{visible:s}),E=V(()=>h?.value===document.body);let x=0;const _=()=>{x++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},A=async j=>{const z=x,q=await new Promise(async G=>{var ee;if(pn(e.onBeforeOk)){let Q=e.onBeforeOk((X=!0)=>G(X));if((yg(Q)||!gl(Q))&&(l.value=!0),yg(Q))try{Q=(ee=await Q)!=null?ee:!0}catch(X){throw Q=!1,X}gl(Q)&&G(Q)}else G(!0)});z===x&&(q?(t("ok",j),_()):l.value&&(l.value=!1))},R=j=>{var z;let q=!0;pn(e.onBeforeCancel)&&(q=(z=e.onBeforeCancel())!=null?z:!1),q&&(t("cancel",j),_())},M=j=>{e.maskClosable&&R(j)},D=()=>{s.value&&t("open")},N=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=hhe(h);ln(()=>{s.value&&(p.value=!0,L(),b())}),No(()=>{B(),S()}),Dt(s,j=>{a.value!==j&&(a.value=j),j?(t("beforeOpen"),p.value=!0,L(),b()):(t("beforeClose"),S())});const F=V(()=>{var j;const z={[e.placement]:0,...(j=e.drawerStyle)!=null?j:{}};return["right","left"].includes(e.placement)?z.width=Ge(e.width)?`${e.width}px`:e.width:z.height=Ge(e.height)?`${e.height}px`:e.height,z});return{prefixCls:r,style:F,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:A,handleCancel:R,handleOpen:D,handleClose:N,handleMask:M,isFixed:E,teleportContainer:f}}});function c$e(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover"),c=Pe("arco-button"),f=Pe("client-only");return H(),Ye(f,null,{default:de(()=>[(H(),Ye(Ng,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?hi((H(),J("div",Bt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(Es,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?hi((H(),J("div",{key:0,class:se(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[es,e.computedVisible]]):Ae("v-if",!0)]),_:1}),O(Es,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[hi(I("div",{class:se(e.prefixCls),style:je(e.style)},[e.header?(H(),J("div",{key:0,class:se(`${e.prefixCls}-header`)},[ft(e.$slots,"header",{},()=>[e.$slots.title||e.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),e.closable?(H(),J("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:se(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[O(l,null,{default:de(()=>[O(s)]),_:1})],2)):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("div",{class:se([`${e.prefixCls}-body`,e.bodyClass]),style:je(e.bodyStyle)},[ft(e.$slots,"default")],6),e.footer?(H(),J("div",{key:1,class:se(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer",{},()=>[e.hideCancel?Ae("v-if",!0):(H(),Ye(c,Bt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[He(Ne(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,Bt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[He(Ne(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Ae("v-if",!0)],6),[[es,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[es,e.computedVisible||e.mounted]]):Ae("v-if",!0)],8,["to","disabled"]))]),_:3})}var l4=De(u$e,[["render",c$e]]);const lne=(e,t)=>{let n=x3("drawer");const r=()=>{f.component&&(f.component.props.visible=!1),pn(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),pn(e.onCancel)&&e.onCancel()},a=async()=>{await kn(),n&&(Fc(null,n),document.body.removeChild(n)),n=null,pn(e.onClose)&&e.onClose()},s=()=>{f.component&&(f.component.props.visible=!1)},l=h=>{f.component&&Object.entries(h).forEach(([p,m])=>{f.component.props[p]=m})},f=O(l4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...pa(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:Dl(e.content),header:typeof e.header!="boolean"?Dl(e.header):void 0,title:Dl(e.title),footer:typeof e.footer!="boolean"?Dl(e.footer):void 0});return(t??nj._context)&&(f.appContext=t??nj._context),Fc(f,n),document.body.appendChild(n),{close:s,update:l}},nj=Object.assign(l4,{open:lne,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+l4.name,l4);const r={open:(o,a=e._context)=>lne(o,a)};e.config.globalProperties.$drawer=r},_context:null});function phe(e){return e===Object(e)&&Object.keys(e).length!==0}function d$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 f$e(e){return e===!1?{block:"end",inline:"nearest"}:phe(e)?e:{block:"start",inline:"nearest"}}function vhe(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(phe(t)&&typeof t.behavior=="function")return t.behavior(n?GF(e,t):[]);if(n){var r=f$e(t);return d$e(GF(e,r),r.behavior)}}const une=["success","warning","error","validating"],h$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||une.indexOf(r)>une.indexOf(t))&&(t=e[n])}return t},p$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},mhe=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},v$e=be({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=Ee("form"),r=pe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,size:g,rules:b}=Jt(e),{mergedSize:S}=ma(g),k=V(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],E=[],x=Wt({}),_=V(()=>Math.max(...Object.values(x))),A=Q=>{Q&&Q.field&&C.push(Q)},R=Q=>{Q&&Q.field&&C.splice(C.indexOf(Q),1)},M=Q=>{C.forEach(X=>{Q[X.field]&&X.setField(Q[X.field])})},D=(Q,X)=>{X&&x[X]!==Q&&(x[X]=Q)},N=Q=>{Q&&delete x[Q]},L=Q=>{const X=Q?[].concat(Q):[];C.forEach(K=>{(X.length===0||X.includes(K.field))&&K.resetField()})},B=Q=>{const X=Q?[].concat(Q):[];C.forEach(K=>{(X.length===0||X.includes(K.field))&&K.clearValidate()})},F=(Q,X)=>{const te=(r.value||document.body).querySelector(`#${mhe(e.id,Q)}`);te&&vhe(te,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...X})},j=Q=>{const X=gl(e.scrollToFirstError)?void 0:e.scrollToFirstError;F(Q,X)},z=Q=>{const X=[];return C.forEach(K=>{X.push(K.validate())}),Promise.all(X).then(K=>{const te={};let oe=!1;return K.forEach(ue=>{ue&&(oe=!0,te[ue.field]=ue)}),oe&&e.scrollToFirstError&&j(Object.keys(te)[0]),pn(Q)&&Q(oe?te:void 0),oe?te:void 0})},q=(Q,X)=>{const K=[];for(const te of C)(qn(Q)&&Q.includes(te.field)||Q===te.field)&&K.push(te.validate());return Promise.all(K).then(te=>{const oe={};let ue=!1;return te.forEach(ae=>{ae&&(ue=!0,oe[ae.field]=ae)}),ue&&e.scrollToFirstError&&j(Object.keys(oe)[0]),pn(X)&&X(ue?oe:void 0),ue?oe:void 0})},G=Q=>{const X=[];C.forEach(K=>{X.push(K.validate())}),Promise.all(X).then(K=>{const te={};let oe=!1;K.forEach(ue=>{ue&&(oe=!0,te[ue.field]=ue)}),oe?(e.scrollToFirstError&&j(Object.keys(te)[0]),t("submitFailed",{values:a.value,errors:te},Q)):t("submitSuccess",a.value,Q),t("submit",{values:a.value,errors:oe?te:void 0},Q)})};return Wr(tz,Wt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,model:a,size:S,rules:b,fields:C,touchedFields:E,addField:A,removeField:R,validateField:q,setLabelWidth:D,removeLabelWidth:N,maxLabelWidth:_,autoLabelWidth:k})),{cls:V(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:G,innerValidate:z,innerValidateField:q,innerResetFields:L,innerClearValidate:B,innerSetFields:M,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)}}}),m$e=["id"];function g$e(e,t,n,r,o,a){return H(),J("form",{id:e.id,ref:"formRef",class:se(e.cls),onSubmit:t[0]||(t[0]=$o((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[ft(e.$slots,"default")],42,m$e)}var CD=De(v$e,[["render",g$e]]),q1=Object.prototype.toString;function j3(e){return q1.call(e)==="[object Array]"}function kh(e){return q1.call(e)==="[object Object]"}function rj(e){return q1.call(e)==="[object String]"}function y$e(e){return q1.call(e)==="[object Number]"&&e===e}function b$e(e){return q1.call(e)==="[object Boolean]"}function ij(e){return q1.call(e)==="[object Function]"}function _$e(e){return kh(e)&&Object.keys(e).length===0}function Pm(e){return e==null||e===""}function ghe(e){return j3(e)&&!e.length}var kz=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(ij(e)&&ij(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=kz(e[n],t[n]);if(!r)return!1}return!0},wz=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=kh(o)?Object.assign(Object.assign({},o),a):a||o}),n},S$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})(xd),C$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?y$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 Pm(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return Pm(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return Pm(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return Pm(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return Pm(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Pm(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})(xd),E$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?j3(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(kz(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(ghe(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})(xd),x$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?kh(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(kz(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(_$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})(xd),T$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?b$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})(xd),A$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,}))$/,I$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"),L$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}$/,P$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||A$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||I$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||L$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})(xd),R$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})(xd),HA=function(e,t){return new yhe(e,Object.assign({field:"value"},t))};HA.globalConfig={};HA.setGlobalConfig=function(e){HA.globalConfig=e||{}};var yhe=function(t,n){var r=HA.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:wz(r.validateMessages,n.validateMessages)});this.string=new w$e(t,o),this.number=new C$e(t,o),this.array=new E$e(t,o),this.object=new x$e(t,o),this.boolean=new T$e(t,o),this.type=new P$e(t,o),this.custom=new R$e(t,o)},Cz=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};Cz.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:wz(this.options.validateMessages,t)})};Cz.prototype.validate=function(t,n){var r=this;if(!kh(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(j3(r.schema[l]))for(var c=function(p){var m=r.schema[l][p],g=m.type,b=m.message;if(!g&&!m.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:b,field:l});"ignoreEmptyString"in m&&(S.ignoreEmptyString=m.ignoreEmptyString),"strict"in m&&(S.strict=m.strict);var k=new yhe(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(E){m.required&&(C=C.isRequired),E!=="message"&&C[E]&&m[E]&&typeof C[E]=="object"&&(C=C[E]),C[E]&&m[E]!==void 0&&typeof C[E]=="function"&&(C=C[E](m[E]))}),C.collect(function(E){E&&s(l,E)}),a)return"break"},f=0;f0?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 bhe=Symbol("RowContextInjectionKey"),_he=Symbol("GridContextInjectionKey"),She=Symbol("GridDataCollectorInjectionKey"),M$e=be({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}=Jt(e),s=Ee("row"),l=V(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=V(()=>Array.isArray(t.value)?t.value[0]:t.value),f=V(()=>Array.isArray(t.value)?t.value[1]:0),h=Sh(c,0),p=Sh(f,0),m=V(()=>{const b={};if((h.value||p.value)&&!o.value){const S=-h.value/2,k=-p.value/2;S&&(b.marginLeft=`${S}px`,b.marginRight=`${S}px`),k&&(b.marginTop=`${k}px`,b.marginBottom=`${k}px`)}return b}),g=V(()=>[h.value,p.value]);return Wr(bhe,Wt({gutter:g,div:o})),{classNames:l,styles:m}}});function D$e(e,t,n,r,o,a){return H(),J("div",{class:se(e.classNames),style:je(e.styles)},[ft(e.$slots,"default")],6)}var VS=De(M$e,[["render",D$e]]);function O$e(e){return V(()=>{const{val:n,key:r,xs:o,sm:a,md:s,lg:l,xl:c,xxl:f}=e.value;if(!o&&!a&&!s&&!l&&!c&&!f)return n;const h={};return UA.forEach(p=>{const m=e.value[p];Ge(m)?h[p]=m:ar(m)&&Ge(m[r])&&(h[p]=m[r])}),h})}function $$e(e){if(ts(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Ge(e))return e;if(ts(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const N$e=be({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=Ee("col"),n=xn(bhe,{}),r=V(()=>$$e(e.flex)),o=V(()=>{const{div:p}=n,{span:m,offset:g,order:b,xs:S,sm:k,md:C,lg:E,xl:x,xxl:_}=e,A={[`${t}`]:!p,[`${t}-order-${b}`]:b,[`${t}-${m}`]:!p&&!S&&!k&&!C&&!E&&!x&&!_,[`${t}-offset-${g}`]:g&&g>0},R={xs:S,sm:k,md:C,lg:E,xl:x,xxl:_};return Object.keys(R).forEach(M=>{const D=R[M];D&&Ge(D)?A[`${t}-${M}-${D}`]=!0:D&&ar(D)&&(A[`${t}-${M}-${D.span}`]=D.span,A[`${t}-${M}-offset-${D.offset}`]=D.offset,A[`${t}-${M}-order-${D.order}`]=D.order)}),A}),a=V(()=>r.value?t:o.value),s=V(()=>{const{gutter:p,div:m}=n,g={};if(Array.isArray(p)&&!m){const b=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;b&&(g.paddingLeft=`${b}px`,g.paddingRight=`${b}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=V(()=>r.value?{flex:r.value}:{}),c=V(()=>hf(e,UA)),f=O$e(V(()=>({val:e.span,key:"span",...c.value}))),h=Sh(f,24,!0);return{visible:V(()=>!!h.value),classNames:a,styles:V(()=>({...s.value,...l.value}))}}});function B$e(e,t,n,r,o,a){return e.visible?(H(),J("div",{key:0,class:se(e.classNames),style:je(e.styles)},[ft(e.$slots,"default")],6)):Ae("v-if",!0)}var US=De(N$e,[["render",B$e]]);function F$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 j$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(f))}else a=r.map((l,c)=>c);return{overflow:o,displayIndexList:a}}const V$e=be({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}=Jt(e),s=Sh(t,24),l=Sh(r,0),c=Sh(n,0),f=Ee("grid"),h=V(()=>[f]),p=V(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),m=Wt(new Map),g=V(()=>{const S=[];for(const[k,C]of m.entries())S[k]=C;return S}),b=Wt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Cs(()=>{b.cols=s.value,b.colGap=l.value}),Cs(()=>{const S=j$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});b.overflow=S.overflow,b.displayIndexList=S.displayIndexList}),Wr(_he,b),Wr(She,{collectItemData(S,k){m.set(S,k)},removeItemData(S){m.delete(S)}}),{classNames:h,style:p}}});function U$e(e,t,n,r,o,a){return H(),J("div",{class:se(e.classNames),style:je(e.style)},[ft(e.$slots,"default")],6)}var ED=De(V$e,[["render",U$e]]);const z$e=be({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Ee("grid-item"),n=pe(),{computedIndex:r}=az({itemRef:n,selector:`.${t}`}),o=xn(_he,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=xn(She),s=V(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=Jt(e),f=Sh(l,1),h=Sh(c,0),p=V(()=>F$e(o.cols,{...e,span:f.value,offset:h.value})),m=V(()=>[t]),g=V(()=>{const{offset:k,span:C}=p.value,{colGap:E}=o;return k>0?{"margin-left":`calc((${`(100% - ${E*(C-1)}px) / ${C}`} * ${k}) + ${E*k}px)`}:{}}),b=V(()=>{const{suffix:k,span:C}=p.value,{cols:E}=o;return k?`${E-C+1}`:`span ${C}`}),S=V(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${b.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return Cs(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),si(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:m,style:S,domRef:n,overflow:V(()=>o.overflow)}}});function H$e(e,t,n,r,o,a){return H(),J("div",{ref:"domRef",class:se(e.classNames),style:je(e.style)},[ft(e.$slots,"default",{overflow:e.overflow})],6)}var u4=De(z$e,[["render",H$e]]);const pS=Object.assign(ED,{Row:VS,Col:US,Item:u4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+VS.name,VS),e.component(n+US.name,US),e.component(n+ED.name,ED),e.component(n+u4.name,u4)}}),W$e=be({name:"Tooltip",components:{Trigger:oa},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=Ee("tooltip"),r=pe(e.defaultPopupVisible),o=V(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=V(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=V(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=V(()=>[`${n}-popup-arrow`,e.arrowClass]),f=V(()=>{if(e.backgroundColor||e.arrowStyle)return{backgroundColor:e.backgroundColor,...e.arrowStyle}});return{prefixCls:n,computedPopupVisible:o,contentCls:s,computedContentStyle:l,arrowCls:c,computedArrowStyle:f,handlePopupVisibleChange:a}}});function G$e(e,t,n,r,o,a){const s=Pe("Trigger");return H(),Ye(s,{class:se(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(()=>[ft(e.$slots,"content",{},()=>[He(Ne(e.content),1)])]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var xD=De(W$e,[["render",G$e]]);const jc=Object.assign(xD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+xD.name,xD)}}),K$e=be({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=Ee("icon"),r=V(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),q$e=["stroke-width","stroke-linecap","stroke-linejoin"];function Y$e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1)]),14,q$e)}var TD=De(K$e,[["render",Y$e]]);const khe=Object.assign(TD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TD.name,TD)}}),X$e=be({name:"FormItemLabel",components:{ResizeObserver:dv,Tooltip:jc,IconQuestionCircle:khe},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=Ee("form-item-label"),t=xn(tz,void 0),n=uo(),r=pe(),o=()=>{r.value&&Ge(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return ln(()=>{r.value&&Ge(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),No(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function Z$e(e,t,n,r,o,a){const s=Pe("icon-question-circle"),l=Pe("Tooltip"),c=Pe("ResizeObserver");return H(),Ye(c,{onResize:e.handleResize},{default:de(()=>[(H(),Ye($a(e.component),Bt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(H(),J("strong",{key:0,class:se(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Ae("v-if",!0),ft(e.$slots,"default"),e.tooltip?(H(),Ye(l,{key:1,content:e.tooltip},{default:de(()=>[O(s,{class:se(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Ae("v-if",!0),e.required&&e.asteriskPosition==="end"?(H(),J("strong",{key:2,class:se(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Ae("v-if",!0),He(" "+Ne(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var J$e=De(X$e,[["render",Z$e]]);const Q$e=be({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Ee("form-item-message")}}});function eNe(e,t,n,r,o,a){return e.error.length>0?(H(!0),J(Ft,{key:0},fn(e.error,s=>(H(),Ye(Es,{key:s,name:"form-blink",appear:""},{default:de(()=>[I("div",{role:"alert",class:se([e.prefixCls])},Ne(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(H(),Ye(Es,{key:1,name:"form-blink",appear:""},{default:de(()=>[I("div",{class:se([e.prefixCls,`${e.prefixCls}-help`])},[ft(e.$slots,"help",{},()=>[He(Ne(e.help),1)])],2)]),_:3})):Ae("v-if",!0)}var tNe=De(Q$e,[["render",eNe]]);const nNe=be({name:"FormItem",components:{ArcoRow:VS,ArcoCol:US,FormItemLabel:J$e,FormItemMessage:tNe},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=Ee("form-item"),{field:n}=Jt(e),r=xn(tz,{}),{autoLabelWidth:o,layout:a}=Jt(r),{i18nMessage:s}=Ao(),l=V(()=>{var K;const te={...(K=e.labelColProps)!=null?K:r.labelColProps};return e.labelColFlex?te.flex=e.labelColFlex:r.autoLabelWidth&&(te.flex=`${r.maxLabelWidth}px`),te}),c=V(()=>{var K;const te={...(K=e.wrapperColProps)!=null?K:r.wrapperColProps};return n.value&&(te.id=mhe(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(te.flex="auto"),te}),f=V(()=>{var K;return(K=e.labelColStyle)!=null?K:r.labelColStyle}),h=V(()=>{var K;return(K=e.wrapperColStyle)!=null?K:r.wrapperColStyle}),p=rg(r.model,e.field),m=Wt({}),g=Wt({}),b=V(()=>h$e(m)),S=V(()=>p$e(g)),k=pe(!1),C=V(()=>rg(r.model,e.field)),E=V(()=>{var K;return!!((K=e.disabled)!=null?K:r?.disabled)}),x=V(()=>{var K;return(K=e.validateStatus)!=null?K:b.value}),_=V(()=>x.value==="error"),A=V(()=>{var K,te,oe;const ue=[].concat((oe=(te=e.rules)!=null?te:(K=r?.rules)==null?void 0:K[e.field])!=null?oe:[]),ae=ue.some(xe=>xe.required);return e.required&&!ae?[{required:!0}].concat(ue):ue}),R=V(()=>A.value.some(K=>K.required)),M=e.noStyle?xn(KF,void 0):void 0,D=(K,{status:te,message:oe})=>{m[K]=te,g[K]=oe,e.noStyle&&M?.updateValidateState(K,{status:te,message:oe})},N=V(()=>e.feedback&&x.value?x.value:void 0),L=()=>{var K;if(k.value)return Promise.resolve();const te=A.value;if(!n.value||te.length===0)return b.value&&j(),Promise.resolve();const oe=n.value,ue=C.value;D(oe,{status:"",message:""});const ae=new Cz({[oe]:te.map(({...xe})=>(!xe.type&&!xe.validator&&(xe.type="string"),xe))},{ignoreEmptyString:!0,validateMessages:(K=s.value.form)==null?void 0:K.validateMessages});return new Promise(xe=>{ae.validate({[oe]:ue},$e=>{var ge;const Oe=!!$e?.[oe];D(oe,{status:Oe?"error":"",message:(ge=$e?.[oe].message)!=null?ge:""});const Fe=Oe?{label:e.label,field:n.value,value:$e[oe].value,type:$e[oe].type,isRequiredError:!!$e[oe].requiredError,message:$e[oe].message}:void 0;xe(Fe)})})},B=V(()=>[].concat(e.validateTrigger)),F=V(()=>B.value.reduce((K,te)=>{switch(te){case"change":return K.onChange=()=>{L()},K;case"input":return K.onInput=()=>{kn(()=>{L()})},K;case"focus":return K.onFocus=()=>{L()},K;case"blur":return K.onBlur=()=>{L()},K;default:return K}},{}));Wr(KF,Wt({eventHandlers:F,size:r&&ku(r,"size"),disabled:E,error:_,feedback:N,updateValidateState:D}));const j=()=>{n.value&&D(n.value,{status:"",message:""})},G=Wt({field:n,disabled:E,error:_,validate:L,clearValidate:j,resetField:()=>{j(),k.value=!0,r?.model&&n.value&&VA(r.model,n.value,p),kn(()=>{k.value=!1})},setField:K=>{var te,oe;n.value&&(k.value=!0,"value"in K&&r?.model&&n.value&&VA(r.model,n.value,K.value),(K.status||K.message)&&D(n.value,{status:(te=K.status)!=null?te:"",message:(oe=K.message)!=null?oe:""}),kn(()=>{k.value=!1}))}});ln(()=>{var K;G.field&&((K=r.addField)==null||K.call(r,G))}),No(()=>{var K;G.field&&((K=r.removeField)==null||K.call(r,G))});const ee=V(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${x.value}`]:!!x.value},e.rowClass]),Q=V(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),X=V(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:ee,isRequired:R,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:Q,autoLabelWidth:o,layout:a,mergedLabelStyle:f,wrapperColCls:X,mergedWrapperStyle:h}}});function rNe(e,t,n,r,o,a){var s;const l=Pe("FormItemLabel"),c=Pe("ArcoCol"),f=Pe("FormItemMessage"),h=Pe("ArcoRow");return e.noStyle?ft(e.$slots,"default",{key:0}):(H(),Ye(h,Bt({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?Ae("v-if",!0):(H(),Ye(c,Bt({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?ft(e.$slots,"label",{key:0},()=>[He(Ne(e.label),1)]):Ae("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,Bt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[I("div",{class:se(`${e.prefixCls}-content-wrapper`)},[I("div",{class:se([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[ft(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(H(),Ye(f,{key:0,error:e.finalMessage,help:e.help},yo({_:2},[e.$slots.help?{name:"help",fn:de(()=>[ft(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Ae("v-if",!0),e.$slots.extra||e.extra?(H(),J("div",{key:1,class:se(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra",{},()=>[He(Ne(e.extra),1)])],2)):Ae("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var c4=De(nNe,[["render",rNe]]);const iNe=Object.assign(CD,{Item:c4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+CD.name,CD),e.component(n+c4.name,c4)}}),oNe=be({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Ee("icon"),n=V(()=>{const o={};return e.size&&(o.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:V(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function sNe(e,t,n,r,o,a){return H(),J("svg",{class:se(e.cls),style:je(e.innerStyle),fill:"currentColor"},[ft(e.$slots,"default")],6)}var d4=De(oNe,[["render",sNe]]);function aNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}const cne=[],lNe=e=>{const{src:t,extraProps:n={}}=e;if(!Tk&&t?.length&&!cne.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),cne.push(t),document.body.appendChild(r)}return be({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(d4,Bt(r,n),aNe(s)?s:{default:()=>[s]})}}})},whe=Object.assign(d4,{addFromIconFontCn:lNe,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+d4.name,d4)}}),uNe=be({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Ee("image-footer")}}}),cNe=["title"],dNe=["title"];function fNe(e,t,n,r,o,a){return H(),J("div",{class:se(e.prefixCls)},[e.title||e.description?(H(),J("div",{key:0,class:se(`${e.prefixCls}-caption`)},[e.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-caption-title`),title:e.title},Ne(e.title),11,cNe)):Ae("v-if",!0),e.description?(H(),J("div",{key:1,class:se(`${e.prefixCls}-caption-description`),title:e.description},Ne(e.description),11,dNe)):Ae("v-if",!0)],2)):Ae("v-if",!0),e.$slots.extra?(H(),J("div",{key:1,class:se(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra")],2)):Ae("v-if",!0)],2)}var hNe=De(uNe,[["render",fNe]]);const pNe=be({name:"ImagePreviewArrow",components:{IconLeft:zl,IconRight:Mi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Ee("image-preview-arrow")}}});function vNe(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("icon-right");return H(),J("div",{class:se(e.prefixCls)},[I("div",{class:se([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[O(s)],2),I("div",{class:se([`${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 mNe=De(pNe,[["render",vNe]]);function gNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var WA=be({name:"ImagePreviewAction",components:{Tooltip:jc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Ee("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",Bt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:f=>{f.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(jc,{class:`${r}-tooltip`,content:a},gNe(c)?c:{default:()=>[c]}):c}}}),yNe=be({name:"ImagePreviewToolbar",components:{RenderFunction:Uh,PreviewAction:WA},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=Jt(e),r=Ee("image-preview-toolbar"),o=V(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,f)=>{const h=n.value.indexOf(c.key),p=n.value.indexOf(f.key);return h>p?1:-1})});return{prefixCls:r,resultActions:o}}});function bNe(e,t,n,r,o,a){const s=Pe("RenderFunction"),l=Pe("PreviewAction");return H(),J("div",{class:se(e.prefixCls)},[(H(!0),J(Ft,null,fn(e.resultActions,c=>(H(),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)),ft(e.$slots,"default")],2)}var _Ne=De(yNe,[["render",bNe]]);function Che(e){const t=pe("beforeLoad"),n=V(()=>t.value==="beforeLoad"),r=V(()=>t.value==="loading"),o=V(()=>t.value==="error"),a=V(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function SNe(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 b=t.value.getBoundingClientRect(),S=n.value.getBoundingClientRect(),[k,C]=SNe(b,S,o.value[0],o.value[1],r.value);(k!==o.value[0]||C!==o.value[1])&&(o.value=[k,C])},h=b=>{b.preventDefault&&b.preventDefault();const S=c[0]+(b.pageX-s)/r.value,k=c[1]+(b.pageY-l)/r.value;o.value=[S,k]},p=b=>{b.preventDefault&&b.preventDefault(),a.value=!1,f(),g()},m=b=>{b.target===b.currentTarget&&(b.preventDefault&&b.preventDefault(),a.value=!0,s=b.pageX,l=b.pageY,c=[...o.value],ki(window,"mousemove",h,!1),ki(window,"mouseup",p,!1))};function g(){Gi(window,"mousemove",h,!1),Gi(window,"mouseup",p,!1)}return Cs(b=>{n.value&&ki(n.value,"mousedown",m),b(()=>{n.value&&Gi(n.value,"mousedown",m),g()})}),Dt([r],()=>{kn(()=>f())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const wNe=be({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=Ee("icon"),r=V(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CNe=["stroke-width","stroke-linecap","stroke-linejoin"];function ENe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1)]),14,CNe)}var AD=De(wNe,[["render",ENe]]);const Ehe=Object.assign(AD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AD.name,AD)}}),xNe=be({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=Ee("icon"),r=V(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TNe=["stroke-width","stroke-linecap","stroke-linejoin"];function ANe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1)]),14,TNe)}var ID=De(xNe,[["render",ANe]]);const xhe=Object.assign(ID,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ID.name,ID)}}),INe=be({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=Ee("icon"),r=V(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LNe=["stroke-width","stroke-linecap","stroke-linejoin"];function PNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1)]),14,LNe)}var LD=De(INe,[["render",PNe]]);const U3=Object.assign(LD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LD.name,LD)}}),RNe=be({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=Ee("icon"),r=V(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MNe=["stroke-width","stroke-linecap","stroke-linejoin"];function DNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1)]),14,MNe)}var PD=De(RNe,[["render",DNe]]);const The=Object.assign(PD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PD.name,PD)}}),ONe=be({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=Ee("icon"),r=V(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ne=["stroke-width","stroke-linecap","stroke-linejoin"];function NNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1)]),14,$Ne)}var RD=De(ONe,[["render",NNe]]);const Ahe=Object.assign(RD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RD.name,RD)}}),BNe=be({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=Ee("icon"),r=V(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FNe=["stroke-width","stroke-linecap","stroke-linejoin"];function jNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,FNe)}var MD=De(BNe,[["render",jNe]]);const Ihe=Object.assign(MD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MD.name,MD)}});function VNe(e){const{container:t,hidden:n}=Jt(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 f=a(t.value);f&&(o.width=c.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${f}px)`),o.overflow=c.overflow,t.value.style.overflow="hidden"}},l=()=>{if(t.value&&r){const c=o;Object.keys(c).forEach(f=>{t.value.style[f]=c[f]})}r=!1,o={}};return Cs(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function UNe(e,t){const{popupContainer:n}=Jt(t);return V(()=>(ts(n.value)?rfe(n.value):n.value)||e)}const pd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),Lhe=pd[0],Phe=pd[pd.length-1];function zNe(e=1,t="zoomIn"){let n=pd.indexOf(e);return n===-1&&(n=WNe(e)),t==="zoomIn"?n===pd.length-1?e:pd[n+1]:n===0?e:pd[n-1]}function HNe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(Phe,Math.max(Lhe,o))}function WNe(e){let t=pd.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}=Ao(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:f,zoomRate:h}=Jt(e),p=pe(),m=pe(),g=Ee("image-preview"),[b,S]=ia(s.value,Wt({value:a})),k=V(()=>[g,{[`${g}-hide`]:!b.value}]),C=UNe(document.body,Wt({popupContainer:o})),E=V(()=>C.value===document.body),{zIndex:x}=W1("dialog",{visible:b}),_=V(()=>({...E.value?{zIndex:x.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:A,isLoaded:R,setLoadStatus:M}=Che(),D=pe(0),N=pe(f.value),{translate:L,moving:B,resetTranslate:F}=kNe(Wt({wrapperEl:p,imageEl:m,visible:b,scale:N})),j=pe(!1);let z=null;const q=()=>{!j.value&&(j.value=!0),z&&clearTimeout(z),z=setTimeout(()=>{j.value=!1},1e3)};VNe(Wt({container:C,hidden:b}));function G(){D.value=0,N.value=f.value,F()}const ee=Fe=>c.value.includes(Fe),Q=Fe=>{switch(Fe.stopPropagation(),Fe.preventDefault(),Fe.key){case Do.ESC:e.escToClose&&ue();break;case Do.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Do.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Do.ARROW_UP:ee("zoomIn")&&Oe("zoomIn");break;case Do.ARROW_DOWN:ee("zoomOut")&&Oe("zoomOut");break;case Do.SPACE:ee("originalSize")&&xe(1);break}},X=bg(Fe=>{if(Fe.preventDefault(),Fe.stopPropagation(),!e.wheelZoom)return;const Je=(Fe.deltaY||Fe.deltaX)>0?"zoomOut":"zoomIn",Ke=HNe(N.value,h.value,Je);xe(Ke)});let K=!1;const te=()=>{kn(()=>{var Fe;(Fe=p?.value)==null||Fe.focus()}),e.keyboard&&!K&&(K=!0,ki(C.value,"keydown",Q))},oe=()=>{K&&(K=!1,Gi(C.value,"keydown",Q))};Dt([r,b],()=>{b.value?(G(),M("loading"),te()):oe()});function ue(){b.value&&(t("close"),t("update:visible",!1),S(!1))}function ae(Fe){var Xe;(Xe=p?.value)==null||Xe.focus(),l.value&&Fe.target===Fe.currentTarget&&ue()}function xe(Fe){N.value!==Fe&&(N.value=Fe,q())}function $e(){const Fe=p.value.getBoundingClientRect(),Xe=m.value.getBoundingClientRect(),Je=Fe.height/(Xe.height/N.value),Ke=Fe.width/(Xe.width/N.value),_e=Math.max(Je,Ke);xe(_e)}function ge(Fe){const Je=Fe==="clockwise"?(D.value+DD)%360:D.value===0?360-DD:D.value-DD;D.value=Je}function Oe(Fe){const Xe=zNe(N.value,Fe);xe(Xe)}return No(()=>{oe()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:N,translate:L,rotate:D,moving:B,mergedVisible:b,isLoading:A,isLoaded:R,scaleValueVisible:j,refWrapper:p,refImage:m,onWheel:X,onMaskClick:ae,onCloseClick:ue,onImgLoad(){M("loaded")},onImgError(){M("error")},actions:V(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>ra(U3),onClick:()=>$e()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>ra(Ahe),onClick:()=>ge("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>ra(The),onClick:()=>ge("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>ra(xhe),onClick:()=>Oe("zoomIn"),disabled:N.value===Phe},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>ra(Ehe),onClick:()=>Oe("zoomOut"),disabled:N.value===Lhe},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>ra(Ihe),onClick:()=>xe(1)}])}}});const KNe=["src"];function qNe(e,t,n,r,o,a){const s=Pe("IconLoading"),l=Pe("PreviewToolbar"),c=Pe("IconClose"),f=Pe("PreviewArrow");return H(),Ye(Ng,{to:e.container,disabled:!e.renderToBody},[I("div",{class:se(e.classNames),style:je(e.wrapperStyles)},[O(Es,{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(()=>[hi(I("div",{class:se(`${e.prefixCls}-mask`)},null,2),[[es,e.mergedVisible]])]),_:1}),e.mergedVisible?(H(),J("div",{key:0,ref:"refWrapper",tabindex:"0",class:se(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=$o((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Ae(" img "),I("div",{class:se(`${e.prefixCls}-img-container`),style:je({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(H(),J("img",{ref:"refImage",key:e.src,src:e.src,class:se([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:je({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,KNe))],6),Ae(" loading "),e.isLoading?(H(),J("div",{key:0,class:se(`${e.prefixCls}-loading`)},[O(s)],2)):Ae("v-if",!0),Ae(" scale value "),O(Es,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(H(),J("div",{key:0,class:se(`${e.prefixCls}-scale-value`)},Ne((e.scale*100).toFixed(0))+"% ",3)):Ae("v-if",!0)]),_:1}),Ae(" toolbar "),e.isLoaded&&e.actionsLayout.length?(H(),Ye(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[ft(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Ae("v-if",!0),Ae(" close btn "),e.closable?(H(),J("div",{key:2,class:se(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Ae("v-if",!0),Ae(" group arrow "),e.inGroup?(H(),Ye(f,Ni(Bt({key:3},e.groupArrowProps)),null,16)):Ae("v-if",!0)],34)):Ae("v-if",!0)],6)],8,["to","disabled"])}var Gy=De(GNe,[["render",qNe]]);function dne(e){if(mn(e))return;if(!Ge(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ge(t)?`${t}px`:void 0}const Rhe=Symbol("PreviewGroupInjectionKey");let YNe=0;const XNe=be({name:"Image",components:{IconImageClose:R3,IconLoading:Va,ImageFooter:hNe,ImagePreview:Gy},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}=Ao(),{height:a,width:s,hideFooter:l,title:c,description:f,src:h,footerPosition:p,defaultPreviewVisible:m,previewVisible:g,preview:b,previewProps:S}=Jt(e),k=xn(Rhe,void 0),C=Ee("image"),E=pe(),{isLoaded:x,isError:_,isLoading:A,setLoadStatus:R}=Che(),M=V(()=>({width:dne(s?.value),height:dne(a?.value)})),D=V(()=>e.fit?{objectFit:e.fit}:{}),N=V(()=>[`${C}`,{[`${C}-loading`]:A.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:x&&B&&p.value==="inner",[`${C}-with-footer-outer`]:x&&B&&p.value==="outer"},t.class]),L=V(()=>[M.value,t.style]),B=V(()=>c?.value||f?.value||n.extra?gl(l.value)?!l.value&&x.value:l.value==="never":!1),F=V(()=>pa(t,["class","style"])),[j,z]=ia(m.value,Wt({value:g})),q=V(()=>!k?.preview&&b.value);Cs(()=>{Tk||!E.value||(E.value.src=h?.value,R("loading"))});const G=YNe++;Cs(te=>{var oe,ue,ae;const xe=(ae=k?.registerImageUrl)==null?void 0:ae.call(k,G,((ue=(oe=S?.value)==null?void 0:oe.src)!=null?ue:h?.value)||"",b.value);te(()=>{xe?.()})});function ee(){R("loaded")}function Q(){R("error")}function X(){b.value&&(k?.preview?k.preview(G):(r("preview-visible-change",!0),z(!0)))}function K(){r("preview-visible-change",!1),z(!1)}return{t:o,refImg:E,prefixCls:C,wrapperClassNames:N,wrapperStyles:L,showFooter:B,imgProps:F,imgStyle:M,isLoaded:x,isError:_,isLoading:A,mergedPreviewVisible:j,mergePreview:q,onImgLoaded:ee,onImgLoadError:Q,onImgClick:X,onPreviewClose:K,fitStyle:D}}}),ZNe=["title","alt"];function JNe(e,t,n,r,o,a){const s=Pe("IconImageClose"),l=Pe("IconLoading"),c=Pe("ImageFooter"),f=Pe("ImagePreview");return H(),J("div",{class:se(e.wrapperClassNames),style:je(e.wrapperStyles)},[I("img",Bt({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,ZNe),e.isLoaded?Ae("v-if",!0):(H(),J("div",{key:0,class:se(`${e.prefixCls}-overlay`)},[e.isError?ft(e.$slots,"error",{key:0},()=>[I("div",{class:se(`${e.prefixCls}-error`)},[I("div",{class:se(`${e.prefixCls}-error-icon`)},[ft(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(H(),J("div",{key:0,class:se(`${e.prefixCls}-error-alt`)},Ne(e.alt||e.description),3)):Ae("v-if",!0)],2)]):Ae("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?ft(e.$slots,"loader",{key:1},()=>[I("div",{class:se([`${e.prefixCls}-loader`])},[I("div",{class:se(`${e.prefixCls}-loader-spin`)},[O(l),I("div",{class:se(`${e.prefixCls}-loader-spin-text`)},Ne(e.t("image.loading")),3)],2)],2)]):Ae("v-if",!0)],2)),e.showFooter?(H(),Ye(c,{key:1,class:se(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},yo({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[ft(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Ae("v-if",!0),e.isLoaded&&e.mergePreview?(H(),Ye(f,Bt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[ft(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Ae("v-if",!0)],6)}var OD=De(XNe,[["render",JNe]]),QNe=be({name:"ImagePreviewGroup",components:{ImagePreview:Gy},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}=Jt(e),[c,f]=ia(o.value,Wt({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),f(L))},p=V(()=>new Map(qn(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),m=pe(new Map(p.value||[])),g=V(()=>Array.from(m.value.keys())),b=V(()=>g.value.length);function S(L,B,F){return p.value.has(L)||m.value.set(L,{url:B,canPreview:F}),function(){p.value.has(L)||m.value.delete(L)}}Dt(p,()=>{m.value=new Map(p.value||[])});const[k,C]=ia(s.value,Wt({value:a})),E=L=>{L!==k.value&&(t("change",L),t("update:current",L),C(L))},x=V(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&E(B)},A=V(()=>{var L;return(L=m.value.get(x.value))==null?void 0:L.url});Wr(Rhe,Wt({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const R=V(()=>{const L=(F,j)=>{var z;for(let q=F;q<=j;q++){const G=g.value[q];if((z=m.value.get(G))!=null&&z.canPreview)return q}},B=L(k.value+1,b.value-1);return mn(B)&&l.value?L(0,k.value-1):B}),M=V(()=>{const L=(F,j)=>{var z;for(let q=F;q>=j;q--){const G=g.value[q];if((z=m.value.get(G))!=null&&z.canPreview)return q}},B=L(k.value-1,0);return mn(B)&&l.value?L(b.value-1,k.value+1):B}),D=V(()=>mn(M.value)?void 0:()=>{!mn(M.value)&&E(M.value)}),N=V(()=>mn(R.value)?void 0:()=>{!mn(R.value)&&E(R.value)});return{mergedVisible:c,currentUrl:A,prevIndex:M,nextIndex:R,onClose(){h(!1)},groupArrowProps:Wt({onPrev:D,onNext:N})}}});function eBe(e,t,n,r,o,a){const s=Pe("ImagePreview");return H(),J(Ft,null,[ft(e.$slots,"default"),O(s,Bt({...e.$attrs,groupArrowProps:e.groupArrowProps},{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),yo({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[ft(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 zS=De(QNe,[["render",eBe]]);const tBe=Object.assign(OD,{Preview:Gy,PreviewGroup:zS,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+OD.name,OD),e.component(n+Gy.name,Gy),e.component(n+zS.name,zS),e.component(n+WA.name,WA)}}),Mhe=Symbol("LayoutSiderInjectionKey"),Dhe=Symbol("SiderInjectionKey");var nBe=be({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=pe([]),n=Ee("layout"),r=V(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return Wr(Mhe,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function rBe(e,t,n,r,o,a){return H(),J("section",{class:se(e.classNames)},[ft(e.$slots,"default")],2)}var $D=De(nBe,[["render",rBe]]);const iBe=be({name:"LayoutHeader",setup(){return{classNames:[Ee("layout-header")]}}});function oBe(e,t,n,r,o,a){return H(),J("header",{class:se(e.classNames)},[ft(e.$slots,"default")],2)}var f4=De(iBe,[["render",oBe]]);const sBe=be({name:"LayoutContent",setup(){return{classNames:[Ee("layout-content")]}}});function aBe(e,t,n,r,o,a){return H(),J("main",{class:se(e.classNames)},[ft(e.$slots,"default")],2)}var h4=De(sBe,[["render",aBe]]);const lBe=be({name:"LayoutFooter",setup(){return{classNames:[Ee("layout-footer")]}}});function uBe(e,t,n,r,o,a){return H(),J("footer",{class:se(e.classNames)},[ft(e.$slots,"default")],2)}var p4=De(lBe,[["render",uBe]]);const cBe=be({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=Ee("icon"),r=V(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 fBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,dBe)}var ND=De(cBe,[["render",fBe]]);const Ohe=Object.assign(ND,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ND.name,ND)}}),hBe=be({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=Ee("icon"),r=V(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pBe=["stroke-width","stroke-linecap","stroke-linejoin"];function vBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,pBe)}var BD=De(hBe,[["render",vBe]]);const z3=Object.assign(BD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BD.name,BD)}});var mBe=be({name:"ResizeTrigger",components:{ResizeObserver:_d,IconDragDot:Ohe,IconDragDotVertical:z3},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=Jt(e),o=V(()=>n?.value==="horizontal");return{classNames:V(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function gBe(e,t,n,r,o,a){const s=Pe("IconDragDot"),l=Pe("IconDragDotVertical"),c=Pe("ResizeObserver");return H(),Ye(c,{onResize:e.onResize},{default:de(()=>[I("div",{class:se(e.classNames)},[Ae(" @slot 自定义内容 "),ft(e.$slots,"default",{},()=>[I("div",{class:se(`${e.prefixCls}-icon-wrapper`)},[Ae(" @slot 自定义 icon "),ft(e.$slots,"icon",{},()=>[e.isHorizontal?(H(),Ye(s,{key:0,class:se(`${e.prefixCls}-icon`)},null,8,["class"])):(H(),Ye(l,{key:1,class:se(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var $he=De(mBe,[["render",gBe]]);const Nhe="left",Bhe="right",Ez="top",xz="bottom",yBe=[Nhe,Bhe,Ez,xz];function fne(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function FD(e){return[Ez,xz].indexOf(e)>-1}const bBe=be({name:"ResizeBox",components:{ResizeTrigger:$he},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}=Jt(e),[a,s]=ia(null,Wt({value:r})),[l,c]=ia(null,Wt({value:n})),f=pe(),h=Wt({}),p=Ee("resizebox"),m=V(()=>[p]),g=V(()=>({...Ge(a.value)?{width:`${a.value}px`}:{},...Ge(l.value)?{height:`${l.value}px`}:{},...h})),b=V(()=>o.value.filter(_=>yBe.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:A,startPageY:R,startWidth:M,startHeight:D,direction:N}=S;let L=M,B=D;const F=_.pageX-A,j=_.pageY-R;switch(N){case Nhe:L=M-F,s(L),t("update:width",L);break;case Bhe:L=M+F,s(L),t("update:width",L);break;case Ez:B=D-j,c(B),t("update:height",B);break;case xz:B=D+j,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function C(_){S.moving=!1,Gi(window,"mousemove",k),Gi(window,"mouseup",C),Gi(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function E(_,A){var R,M;t("movingStart",A),S.moving=!0,S.startPageX=A.pageX,S.startPageY=A.pageY,S.direction=_;const{top:D,left:N,right:L,bottom:B}=S.padding;S.startWidth=fne(((R=f.value)==null?void 0:R.clientWidth)||0,N+L),S.startHeight=fne(((M=f.value)==null?void 0:M.clientHeight)||0,D+B),ki(window,"mousemove",k),ki(window,"mouseup",C),ki(window,"contextmenu",C),document.body.style.cursor=FD(_)?"row-resize":"col-resize"}function x(_,A){const{width:R,height:M}=A.contentRect,D=FD(_)?M:R;S.padding[_]=D,h[`padding-${_}`]=`${D}px`}return{prefixCls:p,classNames:m,styles:g,wrapperRef:f,onMoveStart:E,isHorizontal:FD,allowDirections:b,onTiggerResize:x}}});function _Be(e,t,n,r,o,a){const s=Pe("ResizeTrigger");return H(),Ye($a(e.component),Bt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[ft(e.$slots,"default"),(H(!0),J(Ft,null,fn(e.allowDirections,l=>(H(),Ye(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:se(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},yo({default:de(()=>[e.$slots["resize-trigger"]?ft(e.$slots,"resize-trigger",{key:0,direction:l}):Ae("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[ft(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var jD=De(bBe,[["render",_Be]]);const Fhe=Object.assign(jD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+jD.name,jD)}});function jhe(e,t){const n=V(()=>To(e)?e.value:e);let r="";ln(()=>{r=zA.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),si(()=>{r&&zA.unsubscribe(r)})}const SBe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var kBe=be({name:"LayoutSider",components:{IconLeft:zl,IconRight:Mi,ResizeBox:Fhe},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:f}=Jt(e),[h,p]=ia(o.value,Wt({value:r})),m=V(()=>f.value?"ResizeBox":"div"),g=V(()=>a.value&&!s.value),b=Ee("layout-sider"),S=V(()=>[b,{[`${b}-light`]:n.value==="light",[`${b}-has-trigger`]:g.value,[`${b}-collapsed`]:r.value}]),k=V(()=>{const{width:A,collapsedWidth:R}=e,M=h.value?R:A;return Ge(M)?`${M}px`:String(M)}),C=V(()=>[`${b}-trigger`,{[`${b}-trigger-light`]:n.value==="light"}]),E=()=>{const A=!h.value;p(A),t("update:collapsed",A),t("collapse",A,"clickTrigger")};jhe(l,A=>{const R=!A;R!==h.value&&(p(R),t("update:collapsed",R),t("collapse",R,"responsive"),t("breakpoint",R))});const x=SBe("__arco_layout_sider"),_=xn(Mhe,void 0);return ln(()=>{var A;(A=_?.onSiderMount)==null||A.call(_,x)}),si(()=>{var A;(A=_?.onSiderUnMount)==null||A.call(_,x)}),Wr(Dhe,Wt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:m,prefixCls:b,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:E}}});const wBe={key:0},CBe={key:1};function EBe(e,t,n,r,o,a){const s=Pe("IconLeft"),l=Pe("IconRight");return H(),Ye($a(e.componentTag),Bt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[I("div",{class:se(`${e.prefixCls}-children`)},[ft(e.$slots,"default")],2),e.showTrigger?(H(),J("div",{key:0,class:se(e.triggerClassNames),style:je({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[ft(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(H(),J("div",CBe,[e.localCollapsed?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))])):(H(),J("div",wBe,[e.localCollapsed?(H(),Ye(l,{key:1})):(H(),Ye(s,{key:0}))]))])],6)):Ae("v-if",!0)]),_:3},16,["class","style"])}var v4=De(kBe,[["render",EBe]]);const xBe=Object.assign($D,{Header:f4,Content:h4,Footer:p4,Sider:v4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+$D.name,$D),e.component(n+f4.name,f4),e.component(n+h4.name,h4),e.component(n+p4.name,p4),e.component(n+v4.name,v4)}}),TBe=be({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=Ee("pagination-item"),r=V(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=V(()=>[n,{[`${n}-active`]:r.value}]),s=V(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function ABe(e,t,n,r,o,a){return H(),J("li",{class:se(e.cls),style:je(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[ft(e.$slots,"default",{page:e.pageNumber},()=>[He(Ne(e.pageNumber),1)])],6)}var IBe=De(TBe,[["render",ABe]]);const Vhe=(e,{min:t,max:n})=>en?n:e,LBe=be({name:"StepPager",components:{IconLeft:zl,IconRight:Mi},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=Ee("pagination-item"),r=e.type==="next",o=V(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=V(()=>Vhe(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=V(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function PBe(e,t,n,r,o,a){const s=Pe("icon-right"),l=Pe("icon-left");return H(),Ye($a(e.simple?"span":"li"),{class:se(e.cls),onClick:e.handleClick},{default:de(()=>[ft(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))])]),_:3},8,["class","onClick"])}var hne=De(LBe,[["render",PBe]]);const RBe=be({name:"EllipsisPager",components:{IconMore:Tv},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Ee("pagination-item"),r=V(()=>Vhe(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=V(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function MBe(e,t,n,r,o,a){const s=Pe("icon-more");return H(),J("li",{class:se(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[ft(e.$slots,"default",{},()=>[O(s)])],2)}var DBe=De(RBe,[["render",MBe]]);const OBe=be({name:"PageJumper",components:{InputNumber:Mk},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=Ee("pagination-jumper"),{t:r}=Ao(),o=pe(e.simple?e.current:void 0),a=c=>{const f=parseInt(c.toString(),10);return Number.isNaN(f)?void 0:String(f)},s=c=>{t("change",o.value),kn(()=>{e.simple||(o.value=void 0)})};Dt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=V(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function $Be(e,t,n,r,o,a){const s=Pe("input-number");return H(),J("span",{class:se(e.cls)},[e.simple?Ae("v-if",!0):(H(),J("span",{key:0,class:se([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[ft(e.$slots,"jumper-prepend",{},()=>[He(Ne(e.t("pagination.goto")),1)])],2)),O(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:se(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(H(),J("span",{key:1,class:se(`${e.prefixCls}-append`)},[ft(e.$slots,"jumper-append")],2)):Ae("v-if",!0),e.simple?(H(),J(Ft,{key:2},[I("span",{class:se(`${e.prefixCls}-separator`)},"/",2),I("span",{class:se(`${e.prefixCls}-total-page`)},Ne(e.pages),3)],64)):Ae("v-if",!0)],2)}var pne=De(OBe,[["render",$Be]]);const NBe=be({name:"PageOptions",components:{ArcoSelect:j2},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=Ee("pagination-options"),{t:r}=Ao(),o=V(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function BBe(e,t,n,r,o,a){const s=Pe("arco-select");return H(),J("span",{class:se(e.prefixCls)},[O(s,Bt({"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 FBe=De(NBe,[["render",BBe]]),VD=be({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=Ee("pagination"),{t:o}=Ao(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=Jt(e),{mergedSize:f}=ma(c),h=pe(e.defaultCurrent),p=pe(e.defaultPageSize),m=V(()=>{var R;return(R=e.current)!=null?R:h.value}),g=V(()=>{var R;return(R=e.pageSize)!=null?R:p.value}),b=V(()=>Math.ceil(e.total/g.value)),S=R=>{R!==m.value&&Ge(R)&&!e.disabled&&(h.value=R,t("update:current",R),t("change",R))},k=R=>{p.value=R,t("update:pageSize",R),t("pageSizeChange",R)},C=Wt({current:m,pages:b,disabled:a,style:s,activeStyle:l,onClick:S}),E=(R,M={})=>R==="more"?O(DBe,Bt(M,C),{default:n["page-item-ellipsis"]}):R==="previous"?O(hne,Bt({type:"previous"},M,C),{default:n["page-item-step"]}):R==="next"?O(hne,Bt({type:"next"},M,C),{default:n["page-item-step"]}):O(IBe,Bt(M,C),{default:n["page-item"]}),x=V(()=>{const R=[];if(b.value2+e.bufferSize&&(N=!0,M=Math.min(m.value-e.bufferSize,b.value-2*e.bufferSize)),m.valuee.simple?O("span",{class:`${r}-simple`},[E("previous",{simple:!0}),O(pne,{disabled:e.disabled,current:m.value,size:f.value,pages:b.value,simple:!0,onChange:S},null),E("next",{simple:!0})]):O("ul",{class:`${r}-list`},[E("previous",{simple:!0}),x.value,e.showMore&&E("more",{key:"more",step:e.bufferSize*2+1}),E("next",{simple:!0})]);Dt(g,(R,M)=>{if(e.autoAdjust&&R!==M&&m.value>1){const D=M*(m.value-1)+1,N=Math.ceil(D/R);N!==m.value&&(h.value=N,t("update:current",N),t("change",N))}}),Dt(b,(R,M)=>{if(e.autoAdjust&&R!==M&&m.value>1&&m.value>R){const D=Math.max(R,1);h.value=D,t("update:current",D),t("change",D)}});const A=V(()=>[r,`${r}-size-${f.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var R,M;return e.hideOnSinglePage&&b.value<=1?null:O("div",{class:A.value},[e.showTotal&&O("span",{class:`${r}-total`},[(M=(R=n.total)==null?void 0:R.call(n,{total:e.total}))!=null?M:o("pagination.total",e.total)]),_(),e.showPageSize&&O(FBe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:f.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(pne,{disabled:e.disabled,current:m.value,pages:b.value,size:f.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const Tz=Object.assign(VD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+VD.name,VD)}}),jBe=(e,{emit:t})=>{var n,r;const o=pe(ar(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=pe(ar(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=V(()=>{var h;return ar(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=V(()=>{var h;return ar(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 vne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var UD=be({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}=Jt(e),o=Ee("list"),a=xn(ja,void 0),{componentRef:s,elementRef:l}=Iy("containerRef"),c=V(()=>e.virtualListProps),{displayScrollbar:f,scrollbarProps:h}=I3(r);let p=0;const m=z=>{const{scrollTop:q,scrollHeight:G,offsetHeight:ee}=z.target,Q=Math.floor(G-(q+ee));q>p&&Q<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=q};ln(()=>{if(l.value){const{scrollTop:z,scrollHeight:q,offsetHeight:G}=l.value;q<=z+G&&t("reachBottom")}});const{current:g,pageSize:b,handlePageChange:S,handlePageSizeChange:k}=jBe(e,{emit:t}),C=z=>{if(!e.paginationProps)return z;if(e.paginationProps&&z.length>b.value){const q=(g.value-1)*b.value;return z.slice(q,q+b.value)}return z},E=z=>{let q;if(!e.gridProps)return null;const G=C(z);if(e.gridProps.span){const ee=[],Q=24/e.gridProps.span;for(let X=0;X{var xe;return O(pS.Col,{key:`${oe}-${ae}`,class:`${o}-col`,span:(xe=e.gridProps)==null?void 0:xe.span},{default:()=>{var $e;return[Di(ue)?ue:($e=n.item)==null?void 0:$e.call(n,{item:ue,index:ae})]}})}))?K:{default:()=>[K]}))}return ee}return O(pS.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},vne(q=G.map((ee,Q)=>O(pS.Col,Bt({key:Q,class:`${o}-col`},pa(e.gridProps,["gutter"])),{default:()=>{var X;return[Di(ee)?ee:(X=n.item)==null?void 0:X.call(n,{item:ee,index:Q})]}})))?q:{default:()=>[q]})},x=z=>C(z).map((G,ee)=>{var Q;return Di(G)?G:(Q=n.item)==null?void 0:Q.call(n,{item:G,index:ee})}),_=()=>{const z=n.default?uf(n.default()):e.data;return z&&z.length>0?e.gridProps?E(z):x(z):F()},A=()=>{if(!e.paginationProps)return null;const z=pa(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(Tz,Bt({class:`${o}-pagination`},z,{current:g.value,pageSize:b.value,onChange:S,onPageSizeChange:k}),null)},R=V(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),M=V(()=>{if(e.maxHeight)return{maxHeight:Ge(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),D=V(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),N=pe(),L=()=>{var z;const q=C((z=e.data)!=null?z:[]);return q.length?O(K1,Bt({ref:N,class:D.value,data:q},e.virtualListProps,{onScroll:m}),{item:({item:G,index:ee})=>{var Q;return(Q=n.item)==null?void 0:Q.call(n,{item:G,index:ee})}}):F()},B=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,F=()=>{var z,q,G,ee,Q;return n["scroll-loading"]?null:(Q=(ee=(z=n.empty)==null?void 0:z.call(n))!=null?ee:(G=a==null?void 0:(q=a.slots).empty)==null?void 0:G.call(q,{component:"list"}))!=null?Q:O(Vh,null,null)};return{virtualListRef:N,render:()=>{const z=f.value?kd:"div";return O("div",{class:`${o}-wrapper`},[O(Sd,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(z,Bt({ref:s,class:R.value,style:M.value},h.value,{onScroll:m}),{default:()=>[O("div",{class:`${o}-content-wrapper`},[n.header&&O("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?O(Ft,null,[L(),B()]):O("div",{role:"list",class:D.value},[_(),B()]),n.footer&&O("div",{class:`${o}-footer`},[n.footer()])])]}),A()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),m4=be({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Ee("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 VBe=be({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Ee("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function UBe(e,t,n,r,o,a){return H(),J("div",{class:se(e.prefixCls)},[e.$slots.avatar?(H(),J("div",{key:0,class:se(`${e.prefixCls}-avatar`)},[ft(e.$slots,"avatar")],2)):Ae("v-if",!0),e.hasContent?(H(),J("div",{key:1,class:se(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),e.$slots.description||e.description?(H(),J("div",{key:1,class:se(`${e.prefixCls}-description`)},[ft(e.$slots,"description",{},()=>[He(Ne(e.description),1)])],2)):Ae("v-if",!0)],2)):Ae("v-if",!0)],2)}var g4=De(VBe,[["render",UBe]]);const Uhe=Object.assign(UD,{Item:Object.assign(m4,{Meta:g4}),install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+UD.name,UD),e.component(n+m4.name,m4),e.component(n+g4.name,g4)}}),zBe=["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"],oj=e=>{const t={};return zBe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},HBe=be({name:"Textarea",components:{ResizeObserver:_d,IconHover:_o,IconClose:Us},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}=Jt(e),s=Ee("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:f}=So({disabled:r,error:o}),h=pe(),p=pe(),m=pe(),g=pe(),b=pe(e.defaultValue),S=V(()=>{var Me;return(Me=a.value)!=null?Me:b.value}),[k,C]=lfe(h);Dt(a,Me=>{(mn(Me)||yl(Me))&&(b.value="")});const E=V(()=>ar(e.maxLength)&&!!e.maxLength.errorOnly),x=V(()=>ar(e.maxLength)?e.maxLength.length:e.maxLength),_=Me=>{var We;return pn(e.wordLength)?e.wordLength(Me):(We=Me.length)!=null?We:0},A=V(()=>_(S.value)),R=V(()=>c.value||!!(x.value&&E.value&&A.value>x.value)),M=pe(!1),D=pe(!1),N=V(()=>e.allowClear&&!l.value&&S.value),L=pe(!1),B=pe(""),F=()=>{k(),kn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},j=(Me,We=!0)=>{var qe,st;x.value&&!E.value&&_(Me)>x.value&&(Me=(st=(qe=e.wordSlice)==null?void 0:qe.call(e,Me,x.value))!=null?st:Me.slice(0,x.value)),b.value=Me,We&&t("update:modelValue",Me),F()};let z=S.value;const q=(Me,We)=>{var qe,st;Me!==z&&(z=Me,t("change",Me,We),(st=(qe=f.value)==null?void 0:qe.onChange)==null||st.call(qe,We))},G=Me=>{var We,qe;D.value=!0,z=S.value,t("focus",Me),(qe=(We=f.value)==null?void 0:We.onFocus)==null||qe.call(We,Me)},ee=Me=>{var We,qe;D.value=!1,t("blur",Me),(qe=(We=f.value)==null?void 0:We.onBlur)==null||qe.call(We,Me),q(S.value,Me)},Q=Me=>{var We,qe;const{value:st}=Me.target;if(Me.type==="compositionend"){if(L.value=!1,B.value="",x.value&&!E.value&&S.value.length>=x.value&&_(st)>x.value){F();return}t("input",st,Me),j(st),(qe=(We=f.value)==null?void 0:We.onInput)==null||qe.call(We,Me)}else L.value=!0},X=Me=>{var We,qe;const{value:st}=Me.target;if(L.value)B.value=st;else{if(x.value&&!E.value&&S.value.length>=x.value&&_(st)>x.value&&Me.inputType==="insertText"){F();return}t("input",st,Me),j(st),(qe=(We=f.value)==null?void 0:We.onInput)==null||qe.call(We,Me)}},K=Me=>{j(""),q("",Me),t("clear",Me)};Dt(a,Me=>{Me!==S.value&&j(Me??"",!1)});const te=Me=>pa(n,uv),oe=Me=>hf(n,uv),ue=oe(),ae=V(()=>{const Me={...ue,...e.textareaAttrs};return R.value&&(Me["aria-invalid"]=!0),Me}),xe=V(()=>[`${s}-wrapper`,{[`${s}-focus`]:D.value,[`${s}-disabled`]:l.value,[`${s}-error`]:R.value,[`${s}-scroll`]:M.value}]);let $e;const ge=pe(0),Oe=pe(0),Fe=V(()=>!ar(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ge.value+Oe.value),Xe=V(()=>!ar(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ge.value+Oe.value),Je=()=>{const Me=oj($e);ge.value=Number.parseInt(Me["line-height"]||0,10),Oe.value=Number.parseInt(Me["border-width"]||0,10)*2+Number.parseInt(Me["padding-top"]||0,10)+Number.parseInt(Me["padding-bottom"]||0,10),g.value=Me,kn(()=>{var We;const qe=(We=m.value)==null?void 0:We.offsetHeight;let st=qe??0,gt="hidden";Fe.value&&stXe.value&&(st=Xe.value,gt="auto"),p.value={height:`${st}px`,resize:"none",overflow:gt}})};ln(()=>{h.value&&($e=window.getComputedStyle(h.value),e.autoSize&&Je()),ye()});const Ke=()=>{e.autoSize&&m.value&&Je(),ye()},_e=Me=>{h.value&&Me.target!==h.value&&(Me.preventDefault(),h.value.focus())},ye=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?M.value||(M.value=!0):M.value&&(M.value=!1))};return Dt(S,()=>{e.autoSize&&m.value&&Je(),ye()}),{prefixCls:s,wrapperCls:xe,textareaRef:h,textareaStyle:p,mirrorRef:m,mirrorStyle:g,computedValue:S,showClearBtn:N,valueLength:A,computedMaxLength:x,mergedDisabled:l,mergeTextareaAttrs:ae,getWrapperAttrs:te,getTextareaAttrs:oe,handleInput:X,handleFocus:G,handleBlur:ee,handleComposition:Q,handleClear:K,handleResize:Ke,handleMousedown:_e}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),WBe=["disabled","value","placeholder"];function GBe(e,t,n,r,o,a){const s=Pe("resize-observer"),l=Pe("icon-close"),c=Pe("icon-hover");return H(),J("div",Bt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...f)=>e.handleMousedown&&e.handleMousedown(...f))}),[e.autoSize?(H(),J("div",{key:0,ref:"mirrorRef",class:se(`${e.prefixCls}-mirror`),style:je(e.mirrorStyle)},Ne(`${e.computedValue} `),7)):Ae("v-if",!0),O(s,{onResize:e.handleResize},{default:de(()=>[I("textarea",Bt({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...f)=>e.handleInput&&e.handleInput(...f)),onFocus:t[1]||(t[1]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[2]||(t[2]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onCompositionstart:t[3]||(t[3]=(...f)=>e.handleComposition&&e.handleComposition(...f)),onCompositionupdate:t[4]||(t[4]=(...f)=>e.handleComposition&&e.handleComposition(...f)),onCompositionend:t[5]||(t[5]=(...f)=>e.handleComposition&&e.handleComposition(...f))}),null,16,WBe)]),_:1},8,["onResize"]),ft(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(H(),J("div",{key:1,class:se(`${e.prefixCls}-word-limit`)},Ne(e.valueLength)+"/"+Ne(e.computedMaxLength),3)):Ae("v-if",!0),e.showClearBtn?(H(),J("div",{key:2,class:se(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...f)=>e.handleClear&&e.handleClear(...f))},[O(c,null,{default:de(()=>[O(l)]),_:1})],2)):Ae("v-if",!0)],16)}var zD=De(HBe,[["render",GBe]]);const zhe=Object.assign(zD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+zD.name,zD)}}),KBe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},qBe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),YBe=(e,t)=>!t||!e.includes(t);function XBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var HD=be({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=Ee("mention");let a;const{mergedDisabled:s,eventHandlers:l}=So({disabled:ku(e,"disabled")}),{data:c,modelValue:f}=Jt(e),h=pe(),p=pe({}),m=pe(e.defaultValue),g=V(()=>{var ue;return(ue=e.modelValue)!=null?ue:m.value});Dt(f,ue=>{(mn(ue)||yl(ue))&&(m.value="")});const b=V(()=>g.value?[Sg(g.value)]:[]),S=pe({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=pe(),E=V(()=>S.value.text),x=pe(!0),_=(ue,ae)=>{var xe,$e;const ge=KBe(ae.target),Oe=qBe(ge,e.prefix);if(Oe.location>-1){const Fe=ge.slice(Oe.location+Oe.prefix.length);YBe(Fe,e.split)?(R.value=!0,S.value={measuring:!0,text:Fe,...Oe},t("search",Fe,Oe.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();m.value=ue,t("update:modelValue",ue),t("change",ue),($e=(xe=l.value)==null?void 0:xe.onChange)==null||$e.call(xe)},A=ue=>{var ae,xe;m.value="",t("update:modelValue",""),t("change",""),(xe=(ae=l.value)==null?void 0:ae.onChange)==null||xe.call(ae),t("clear",ue)},R=pe(!1),M=V(()=>R.value&&S.value.measuring&&j.value.length>0),D=()=>{q.value=oj(a)},N=ue=>{R.value=ue},L=(ue,ae)=>{var xe,$e,ge;const{value:Oe}=(xe=F.get(ue))!=null?xe:{},Fe=S.value.location,Xe=S.value.location+S.value.text.length;let Je=m.value.slice(0,Fe),Ke=m.value.slice(Xe+1);Je+=!Je||Je.endsWith(e.split)||Je.endsWith(` `)?"":e.split,Ke=(!Ke||Ke.startsWith(e.split)||Ke.startsWith(` `)?"":e.split)+Ke;const _e=`${S.value.prefix}${Oe}`,ye=`${Je}${_e}${Ke}`;m.value=ye,t("select",Oe),t("update:modelValue",ye),t("change",ye),k(),(ge=($e=l.value)==null?void 0:$e.onChange)==null||ge.call($e)},{validOptions:B,optionInfoMap:F,validOptionInfos:j,handleKeyDown:z}=sz({options:c,inputValue:E,filterOption:x,popupVisible:M,valueKeys:b,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:N,enterToOpen:!1}),q=pe();ln(()=>{var ue;e.type==="textarea"&&((ue=C.value)!=null&&ue.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),q.value=oj(a))});const G=ue=>{if(pn(r.option)&&ue.value){const ae=F.get(ue.key),xe=r.option;return()=>xe({data:ae})}return()=>ue.label},ee=ue=>O(tg,{ref:ae=>{ae?.$el&&(p.value[ue.key]=ae.$el)},key:ue.key,value:ue.value,disabled:ue.disabled,internal:!0},{default:G(ue)}),Q=()=>{let ue;return O(oz,{ref:h},XBe(ue=B.value.map(ae=>ee(ae)))?ue:{default:()=>[ue]})},X=pe();Dt(M,ue=>{e.type==="textarea"&&ue&&kn(()=>{var ae,xe;(ae=C.value)!=null&&ae.textareaRef&&C.value.textareaRef.scrollTop>0&&((xe=X.value)==null||xe.scrollTo(0,C.value.textareaRef.scrollTop))})});const K=ue=>{t("focus",ue)},te=ue=>{t("blur",ue)};return{inputRef:C,render:()=>{var ue;return e.type==="textarea"?O("div",{class:o},[O(_d,{onResize:D},{default:()=>[O(zhe,Bt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:A,onFocus:K,onBlur:te,onKeydown:z}),null)]}),S.value.measuring&&j.value.length>0&&O("div",{ref:X,style:q.value,class:`${o}-measure`},[(ue=g.value)==null?void 0:ue.slice(0,S.value.location),O(oa,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:M.value,clickToClose:!1,onPopupVisibleChange:N},{default:()=>[O("span",null,[He("@")])],content:Q})])]):O(oa,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:M.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:N},{default:()=>[O(xv,Bt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:A,onFocus:K,onBlur:te,onKeydown:z}),r)],content: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 ZBe=Object.assign(HD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+HD.name,HD)}}),Az=Symbol("MenuInjectionKey"),Iz=Symbol("LevelInjectionKey"),Hhe=Symbol("DataCollectorInjectionKey"),JBe=be({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=Ee("icon"),r=V(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QBe=["stroke-width","stroke-linecap","stroke-linejoin"];function e7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,QBe)}var WD=De(JBe,[["render",e7e]]);const Whe=Object.assign(WD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WD.name,WD)}}),t7e=be({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=Ee("icon"),r=V(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),n7e=["stroke-width","stroke-linecap","stroke-linejoin"];function r7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,n7e)}var GD=De(t7e,[["render",r7e]]);const Ghe=Object.assign(GD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GD.name,GD)}});function Lz(e){const t=V(()=>To(e)?e.value:e);Wr(Iz,Wt({level:t}))}function Nk(e){const{provideNextLevel:t}=e||{},n=xn(Iz),r=V(()=>n?.level||1);if(t){const o=V(()=>r.value+1);Lz(o)}return{level:r}}function mne(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 Khe(e=!1){return e?void 0:xn(Hhe)}function qhe(e){const{key:t,type:n}=e,r=pe([]),o=Khe(n==="menu");return Wr(Hhe,{collectSubMenu(s,l,c=!1){const f={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(f)}else r.value=[...r.value,f];c&&(n==="popupMenu"?o?.reportMenuData(r.value):n==="subMenu"&&!mn(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"&&!mn(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!mn(t)?(ln(()=>{o?.collectSubMenu(t,r.value)}),si(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&ln(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:V(()=>mne(r.value,s=>!!s.children)),menuItemKeys:V(()=>mne(r.value,s=>!s.children))}}function i7e(e,t){const n=[],r=o=>{for(let a=0;a{f.value=b};Dt(t,()=>{mn(t.value)&&h([])});let p=[];ln(()=>{p=[...a.value];let b=[];if(r.value&&(b=c.value?a.value.slice(0,1):[...a.value]),o.value){const S=s.value.map(k=>i7e(l.value,k));S.length&&(!r.value||c.value)&&(b=c.value?S[0]:[...new Set([].concat(...S))])}b.length&&h(b)});let m=!1;Dt(a,(b,S=[])=>{if(m||!o7e(b,p)){const k=g.value.filter(C=>b.includes(C));if(r.value){const C=b.filter(E=>!S.includes(E));k.push(...C)}h(c.value?k.slice(0,1):k)}m=!0});const g=V(()=>t.value||f.value);return{openKeys:g,localOpenKeys:f,setOpenKeys:h,open(b,S){let k=[];return g.value.indexOf(b)>-1?c.value&&S===1?k=[]:k=g.value.filter(C=>C!==b):c.value&&S===1?k=[b]:k=g.value.concat([b]),h(k),k}}}const a7e=be({name:"BaseMenu",components:{IconMenuFold:Whe,IconMenuUnfold:Ghe},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:f,autoScrollIntoView:h,collapsedWidth:p,autoOpen:m,collapsed:g,defaultCollapsed:b,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:E,triggerProps:x,tooltipProps:_,autoOpenSelected:A,breakpoint:R,popupMaxHeight:M,prefixCls:D,inTrigger:N,siderCollapsed:L,isRoot:B}=Jt(e),{subMenuKeys:F,menuData:j}=qhe({type:B.value?"menu":"popupMenu"}),[z,q]=ia(k.value,Wt({value:S})),{openKeys:G,setOpenKeys:ee,open:Q}=s7e(Wt({modelValue:C,defaultValue:E,autoOpen:m,autoOpenSelected:A,selectedKeys:z,subMenuKeys:F,menuData:j,accordion:l})),[X,K]=ia(b.value,Wt({value:g})),te=V(()=>L.value||X.value||o.value==="popButton"),oe=V(()=>["horizontal","popButton"].indexOf(o.value)<0&&!N.value&&c.value),ue=(Je,Ke)=>{Je!==X.value&&(K(Je),t("update:collapsed",Je),t("collapse",Je,Ke))},ae=()=>{ue(!X.value,"clickTrigger")};jhe(R,Je=>{ue(!Je,"responsive")});const xe=V(()=>D?.value||Ee("menu")),$e=V(()=>[xe.value,`${xe.value}-${a?.value}`,{[`${xe.value}-horizontal`]:o.value==="horizontal",[`${xe.value}-vertical`]:o.value!=="horizontal",[`${xe.value}-collapsed`]:te.value,[`${xe.value}-pop`]:o.value==="pop"||te.value,[`${xe.value}-pop-button`]:o.value==="popButton"}]),ge=V(()=>{const Je=Ge(p.value)?`${p.value}px`:void 0,Ke=ar(r.value)?r.value:void 0,_e=te.value?Je:Ke?.width;return[Ke?pa(Ke,["width"]):r.value,{width:_e}]}),Oe=fd(n,"expand-icon-down"),Fe=fd(n,"expand-icon-right"),Xe=Wt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:z,openKeys:G,prefixCls:xe,scrollConfig:f,inTrigger:N,collapsed:te,triggerProps:x,tooltipProps:_,popupMaxHeight:M,expandIconDown:Oe,expandIconRight:Fe,onMenuItemClick:Je=>{q([Je]),t("update:selectedKeys",[Je]),t("menu-item-click",Je)},onSubMenuClick:(Je,Ke)=>{const _e=Q(Je,Ke);ee(_e),t("update:openKeys",_e),t("sub-menu-click",Je,_e)}});return Wr(Az,Xe),Lz(1),{computedPrefixCls:xe,classNames:$e,computedStyle:ge,computedCollapsed:te,computedHasCollapseButton:oe,onCollapseBtnClick:ae}}});function l7e(e,t,n,r,o,a){const s=Pe("IconMenuUnfold"),l=Pe("IconMenuFold");return H(),J("div",Bt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:se(`${e.computedPrefixCls}-inner`)},[ft(e.$slots,"default")],2),e.computedHasCollapseButton?(H(),J("div",{key:0,class:se(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[ft(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))])],2)):Ae("v-if",!0)],16)}var sj=De(a7e,[["render",l7e]]);function gne(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 Vg(){return xn(Az)||{}}const u7e=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function H3(){const e=uo();return{key:V(()=>e?.vnode.key||u7e("__arco_menu"))}}const c7e=be({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Ee("menu"),t=Vg();return{prefixCls:e,levelIndent:ku(t,"levelIndent")}}});function d7e(e,t,n,r,o,a){return e.level>1?(H(),J("span",{key:0,class:se(`${e.prefixCls}-indent-list`)},[(H(!0),J(Ft,null,fn(e.level-1,s=>(H(),J("span",{key:s,class:se(`${e.prefixCls}-indent`),style:je(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Ae("v-if",!0)}var W3=De(c7e,[["render",d7e]]);const f7e=be({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 h7e(e,t,n,r,o,a){return H(),Ye(Es,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[ft(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var p7e=De(f7e,[["render",h7e]]);const v7e=be({name:"SubMenuInline",components:{MenuIndent:W3,ExpandTransition:p7e},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=H3(),{level:n}=Nk({provideNextLevel:!0}),r=Vg(),o=V(()=>r.prefixCls),a=V(()=>`${o.value}-inline`),s=V(()=>[a.value]),l=V(()=>e.isChildrenSelected),c=V(()=>(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 m7e(e,t,n,r,o,a){const s=Pe("MenuIndent"),l=Pe("ExpandTransition");return H(),J("div",{class:se(e.classNames)},[I("div",{class:se([`${e.prefixCls}-header`,{[`${e.menuPrefixCls}-selected`]:e.isSelected,[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}]),onClick:t[0]||(t[0]=(...c)=>e.onHeaderClick&&e.onHeaderClick(...c))},[O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(H(),J(Ft,{key:0},[I("span",{class:se(`${e.menuPrefixCls}-icon`)},[ft(e.$slots,"icon")],2),I("span",{class:se(`${e.menuPrefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)],64)):ft(e.$slots,"title",{key:1},()=>[He(Ne(e.title),1)]),I("span",{class:se([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[ft(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:de(()=>[hi(I("div",{class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2),[[es,e.isOpen]])]),_:3})],2)}var g7e=De(v7e,[["render",m7e]]);const y7e=be({name:"SubMenuPop",components:{Menu:sj,Trigger:oa,MenuIndent:W3,RenderFunction:Uh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=H3(),{level:n}=Nk(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=Jt(e),s=Vg(),{onSubMenuClick:l,onMenuItemClick:c}=s,f=V(()=>s.prefixCls),h=V(()=>s.mode),p=V(()=>s.selectedKeys||[]),m=V(()=>`${f.value}-pop`),g=V(()=>r.value&&p.value.includes(t.value)||o.value),b=V(()=>[`${m.value}`,`${m.value}-header`,{[`${f.value}-selected`]:g.value}]),S=V(()=>h.value==="horizontal"&&!s.inTrigger),k=pe(!1),C=A=>{k.value=A},E=Ee("trigger"),x=V(()=>{var A;return[`${m.value}-trigger`,{[`${m.value}-trigger-dark`]:s.theme==="dark"},(A=s.triggerProps)==null?void 0:A.class]}),_=V(()=>pa(s.triggerProps||{},["class"]));return{menuPrefixCls:f,mode:h,level:n,classNames:b,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:E,triggerClassNames:x,triggerProps:_,menuContext:s,popupMenuStyles:V(()=>{var A;const R=(A=a.value)!=null?A:s.popupMaxHeight;return Ge(R)?{maxHeight:`${R}px`}:R?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:A=>{c&&c(A),C(!1)},onVisibleChange:A=>{C(A)}}}});function b7e(e,t,n,r,o,a){const s=Pe("MenuIndent"),l=Pe("RenderFunction"),c=Pe("Menu"),f=Pe("Trigger");return H(),Ye(f,Bt({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:je(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},yo({default:de(()=>[ft(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(()=>[I("div",Bt({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))}),[Ae(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(H(),J(Ft,{key:0},[I("span",{class:se(`${e.menuPrefixCls}-icon`)},[ft(e.$slots,"icon")],2),I("span",{class:se(`${e.menuPrefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)],64)):ft(e.$slots,"title",{key:1},()=>[He(Ne(e.title),1)]),Ae(" suffix "),I("span",{class:se(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?ft(e.$slots,"expand-icon-down",{key:0}):ft(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(H(),J("div",{key:2,class:se(`${e.menuPrefixCls}-selected-label`)},null,2)):Ae("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var _7e=De(y7e,[["render",b7e]]),HS=be({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}=H3(),{level:r}=Nk(),{popup:o}=Jt(e),a=Vg(),s=V(()=>{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}=qhe({key:n.value,type:"subMenu"}),f=V(()=>{const h=a.selectedKeys||[],p=m=>{for(let g=0;g[O(Av,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(Mi,null,null)])};return r?O(_7e,Bt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(g7e,Bt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const S7e=10;function yne(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function bne(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var k7e=be({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${Vg().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=pe(),c=pe(null),f=pe();function h(){const p=l.value,m=yne(p),g=[].slice.call(p.children);let b=0,S=0,k=0;for(let C=0;C-1,A=x.indexOf(s)>-1;if(_)continue;const R=yne(E)+bne(gne(E,"marginLeft"))+bne(gne(E,"marginRight"));if(A){k=R;continue}if(S+=R,S+k+S7e>m){c.value=b-1;return}b++}c.value=null}return ln(()=>{h(),f.value=new k3(p=>{p.forEach(h)}),l.value&&f.value.observe(l.value)}),si(()=>{f.value&&f.value.disconnect()}),()=>{const p=(g,b)=>{const{isMirror:S=!1,props:k={}}=b||{};return O(HS,Bt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>O("span",null,[He("...")]),default:()=>g})},m=()=>{var g;const b=((g=t.default)==null?void 0:g.call(t))||[],S=fPe(b);let k=null;const C=p(null,{isMirror:!0}),E=S.map((x,_)=>{const A=ml(x,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const R=S.slice(_).map(M=>ml(M));k=p(R)}return A});return[C,...E,k]};return O("div",{class:`${r}-wrap`,ref:l},[m()])}}}),KD=be({name:"Menu",components:{BaseMenu:sj},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:o}=Jt(e),a=xn(Dhe,void 0),s=V(()=>a?.collapsed||!1),l=V(()=>r?.value||a?.theme||"light");return Wr(Az,void 0),Wr(Iz,void 0),()=>O(sj,Bt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>O(k7e,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),y4=be({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=H3(),{level:r}=Nk(),o=Vg(),a=pe(),s=V(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=Khe();ln(()=>{l?.collectMenuItem(n.value)}),si(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&vhe(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let f;return ln(()=>{f=setTimeout(()=>{c()},500)}),si(()=>{clearTimeout(f)}),Dt([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:f,mode:h,tooltipProps:p}=r,m=c&&!f&&n===1,g=h==="vertical"&&n>1,b=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!f&&!c,k=this.$slots.icon&&this.$slots.icon(),C=[S&&O(W3,{level:n},null),k&&O("span",{class:`${l}-icon`},[k]),S||k?O("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[b]):b].filter(Boolean),E=O("div",Bt({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 x=[`${l}-item-tooltip`,p?.class];return O(jc,Bt({trigger:"hover",position:"right",class:x},pa(p||{},["class"])),{default:()=>E,content:()=>b})}return E}});const w7e=be({name:"MenuItemGroup",components:{MenuIndent:W3},props:{title:{type:String}},setup(){const{level:e}=Nk(),t=V(()=>e.value===1?e.value+1:e.value);Lz(t);const n=Vg(),r=V(()=>n.prefixCls),o=V(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function C7e(e,t,n,r,o,a){const s=Pe("MenuIndent");return H(),J("div",{class:se(e.classNames)},[I("div",{class:se(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),ft(e.$slots,"default")],2)}var b4=De(w7e,[["render",C7e]]);const E7e=Object.assign(KD,{Item:y4,ItemGroup:b4,SubMenu:HS,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+KD.name,KD),e.component(n+y4.name,y4),e.component(n+b4.name,b4),e.component(n+HS.name,HS)}}),x7e=be({name:"Message",components:{AIconHover:_o,IconInfoCircleFill:H1,IconCheckCircleFill:jh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Fg,IconClose:Us,IconLoading:Va},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=Ee("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 ln(()=>{a()}),Ha(()=>{e.resetOnUpdate&&(s(),a())}),si(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function T7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-loading"),p=Pe("icon-close"),m=Pe("a-icon-hover");return H(),J("li",{role:"alert",class:se([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...g)=>e.handleMouseEnter&&e.handleMouseEnter(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(H(),J("span",{key:0,class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):e.type==="loading"?(H(),Ye(h,{key:4})):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("span",{class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2),e.closable?(H(),J("span",{key:1,class:se(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(m,null,{default:de(()=>[O(p)]),_:1})],2)):Ae("v-if",!0)],34)}var A7e=De(x7e,[["render",T7e]]);function I7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var L7e=be({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Ee("message-list"),{zIndex:r}=W1("message",{runOnMounted:!0});return()=>{let o;return O(z1,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},I7e(o=e.messages.map(a=>{const s={default:Dl(a.content),icon:Dl(a.icon)};return O(A7e,{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 P7e{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=Wt({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&&(Fc(null,this.container),document.body.removeChild(this.container),this.container=null,Ky[this.position]=void 0)};const{position:r="top"}=t;this.container=x3("message"),this.messageIds=new Set,this.messages=pe([]),this.position=r;const o=O(L7e,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??Ot._context)&&(o.appContext=n??Ot._context),Fc(o,this.container),document.body.appendChild(this.container)}}const Ky={},Yhe=[...A3,"loading","normal"],_4=Yhe.reduce((e,t)=>(e[t]=(n,r)=>{ts(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return Ky[a]||(Ky[a]=new P7e(o,r)),Ky[a].add(o)},e),{});_4.clear=e=>{var t;e?(t=Ky[e])==null||t.clear():Object.values(Ky).forEach(n=>n?.clear())};const Ot={..._4,install:e=>{const t={clear:_4.clear};for(const n of Yhe)t[n]=(r,o=e._context)=>_4[n](r,o);e.config.globalProperties.$message=t},_context:null},R7e=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const o=pe(!1),a=pe([0,0]),s=pe([0,0]),l=pe(),c=pe([0,0]),f=pe([0,0]),h=()=>{var b,S,k;if(t.value&&e.value){const{top:C,left:E}=t.value.getBoundingClientRect(),{clientWidth:x,clientHeight:_}=t.value,{top:A,left:R,width:M,height:D}=e.value.getBoundingClientRect(),N=r.value?0:(b=e.value)==null?void 0:b.offsetTop,L=R-E,B=A-C-N;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const F=x>M?x-M:0,j=_>D?_-D-N:0;(F!==f.value[0]||j!==f.value[1])&&(f.value=[F,j]),N&&(c.value=[0,0-N])}},p=b=>{n.value&&(b.preventDefault(),o.value=!0,h(),a.value=[b.x,b.y],ki(window,"mousemove",m),ki(window,"mouseup",g),ki(window,"contextmenu",g))},m=b=>{if(o.value){const S=b.x-a.value[0],k=b.y-a.value[1];let C=s.value[0]+S,E=s.value[1]+k;Cf.value[0]&&(C=f.value[0]),Ef.value[1]&&(E=f.value[1]),l.value=[C,E]}},g=()=>{o.value=!1,Gi(window,"mousemove",m),Gi(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var M7e=be({name:"Modal",components:{ClientOnly:nz,ArcoButton:Uo,IconHover:_o,IconClose:Us,IconInfoCircleFill:H1,IconCheckCircleFill:jh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Fg},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}=Jt(e),a=Ee("modal"),{t:s}=Ao(),l=pe(),c=pe(),f=pe(e.defaultVisible),h=V(()=>{var xe;return(xe=e.visible)!=null?xe:f.value}),p=pe(!1),m=V(()=>e.okLoading||p.value),g=V(()=>e.draggable&&!e.fullscreen),{teleportContainer:b,containerRef:S}=rz({popupContainer:r,visible:h}),k=pe(h.value),C=V(()=>e.okText||s("modal.okText")),E=V(()=>e.cancelText||s("modal.cancelText")),{zIndex:x,isLastDialog:_}=W1("dialog",{visible:h});let A=!1;const R=xe=>{e.escToClose&&xe.key===Do.ESC&&_()&&z(xe)},M=()=>{e.escToClose&&!A&&(A=!0,ki(document.documentElement,"keydown",R))},D=()=>{A=!1,Gi(document.documentElement,"keydown",R)};let N=0;const{position:L,handleMoveDown:B}=R7e({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),F=()=>{N++,p.value&&(p.value=!1),f.value=!1,t("update:visible",!1)},j=async xe=>{const $e=N,ge=await new Promise(async Oe=>{var Fe;if(pn(e.onBeforeOk)){let Xe=e.onBeforeOk((Je=!0)=>Oe(Je));if((yg(Xe)||!gl(Xe))&&(p.value=!0),yg(Xe))try{Xe=(Fe=await Xe)!=null?Fe:!0}catch(Je){throw Xe=!1,Je}gl(Xe)&&Oe(Xe)}else Oe(!0)});$e===N&&(ge?(t("ok",xe),F()):p.value&&(p.value=!1))},z=xe=>{var $e;let ge=!0;pn(e.onBeforeCancel)&&(ge=($e=e.onBeforeCancel())!=null?$e:!1),ge&&(t("cancel",xe),F())},q=pe(!1),G=xe=>{xe.target===l.value&&(q.value=!0)},ee=xe=>{e.mask&&e.maskClosable&&q.value&&z(xe)},Q=()=>{h.value&&(!hPe(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},X=()=>{h.value||(g.value&&(L.value=void 0),k.value=!1,te(),t("close"))},{setOverflowHidden:K,resetOverflow:te}=hhe(S);ln(()=>{S.value=Xd(e.popupContainer),h.value&&(K(),e.escToClose&&M())}),No(()=>{te(),D()}),Dt(h,xe=>{f.value!==xe&&(f.value=xe),xe?(t("beforeOpen"),k.value=!0,q.value=!1,K(),M()):(t("beforeClose"),D())}),Dt(n,()=>{L.value&&(L.value=void 0)});const oe=V(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),ue=V(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),ae=V(()=>{var xe;const $e={...(xe=e.modalStyle)!=null?xe:{}};return e.width&&!e.fullscreen&&($e.width=Ge(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&($e.top=Ge(e.top)?`${e.top}px`:e.top),L.value&&($e.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),$e});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:ae,okDisplayText:C,cancelDisplayText:E,zIndex:x,handleOk:j,handleCancel:z,handleMaskClick:ee,handleMaskMouseDown:G,handleOpen:Q,handleClose:X,mergedOkLoading:m,modalRef:c,wrapperCls:oe,modalCls:ue,teleportContainer:b,handleMoveDown:B}}});function D7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("icon-hover"),m=Pe("arco-button"),g=Pe("client-only");return H(),Ye(g,null,{default:de(()=>[(H(),Ye(Ng,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?hi((H(),J("div",Bt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(Es,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?hi((H(),J("div",{key:0,ref:"maskRef",class:se(`${e.prefixCls}-mask`),style:je(e.maskStyle)},null,6)),[[es,e.computedVisible]]):Ae("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:se(e.wrapperCls),onClick:t[2]||(t[2]=$o((...b)=>e.handleMaskClick&&e.handleMaskClick(...b),["self"])),onMousedown:t[3]||(t[3]=$o((...b)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...b),["self"]))},[O(Es,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[hi(I("div",{ref:"modalRef",class:se(e.modalCls),style:je(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(H(),J("div",{key:0,class:se(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...b)=>e.handleMoveDown&&e.handleMoveDown(...b))},[e.$slots.title||e.title?(H(),J("div",{key:0,class:se([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(H(),Ye(s,{key:0})):Ae("v-if",!0),e.messageType==="success"?(H(),Ye(l,{key:1})):Ae("v-if",!0),e.messageType==="warning"?(H(),Ye(c,{key:2})):Ae("v-if",!0),e.messageType==="error"?(H(),Ye(f,{key:3})):Ae("v-if",!0)],2)):Ae("v-if",!0),ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),!e.simple&&e.closable?(H(),J("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:se(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...b)=>e.handleCancel&&e.handleCancel(...b))},[O(p,null,{default:de(()=>[O(h)]),_:1})],2)):Ae("v-if",!0)],34)):Ae("v-if",!0),I("div",{class:se([`${e.prefixCls}-body`,e.bodyClass]),style:je(e.bodyStyle)},[ft(e.$slots,"default")],6),e.footer?(H(),J("div",{key:1,class:se(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer",{},()=>[e.hideCancel?Ae("v-if",!0):(H(),Ye(m,Bt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[He(Ne(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(m,Bt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[He(Ne(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Ae("v-if",!0)],6),[[es,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[es,e.computedVisible||e.mounted]]):Ae("v-if",!0)],8,["to","disabled"]))]),_:3})}var S4=De(M7e,[["render",D7e]]);const qD=(e,t)=>{let n=x3("modal");const r=()=>{f.component&&(f.component.props.visible=!1),pn(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),pn(e.onCancel)&&e.onCancel()},a=async()=>{await kn(),n&&(Fc(null,n),document.body.removeChild(n)),n=null,pn(e.onClose)&&e.onClose()},s=()=>{f.component&&(f.component.props.visible=!1)},l=h=>{f.component&&Object.entries(h).forEach(([p,m])=>{f.component.props[p]=m})},f=O(S4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...pa(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Dl(e.content),title:Dl(e.title),footer:typeof e.footer!="boolean"?Dl(e.footer):void 0});return(t??mf._context)&&(f.appContext=t??mf._context),Fc(f,n),document.body.appendChild(n),{close:s,update:l}},YD={open:qD,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return qD(n,t)},...A3.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return qD(o,r)},e),{})},mf=Object.assign(S4,{...YD,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+S4.name,S4);const r={};for(const o of Object.keys(YD))r[o]=(a,s=e._context)=>YD[o](a,s);e.config.globalProperties.$modal=r},_context:null}),O7e=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),$7e=be({name:"Notification",components:{AIconHover:_o,IconInfoCircleFill:H1,IconCheckCircleFill:jh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Fg,IconClose:Us},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=Ee("notification");let r=0;const o=()=>{t.emit("close")};return ln(()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))}),Ha(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(o,e.duration)))}),si(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function N7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("a-icon-hover");return H(),J("li",{role:"alert",class:se([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(H(),J("div",{key:0,class:se(`${e.prefixCls}-left`)},[I("div",{class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Ae("v-if",!0)])],2)],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-right`)},[e.$slots.default?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"default")],2)):Ae("v-if",!0),e.$slots.content?(H(),J("div",{key:1,class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"content")],2)):Ae("v-if",!0),e.$slots.footer?(H(),J("div",{key:2,class:se(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Ae("v-if",!0)],2),e.closable?(H(),J("div",{key:1,class:se(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[ft(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:de(()=>[ft(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Ae("v-if",!0)],2)}var B7e=De($7e,[["render",N7e]]);const F7e=["topLeft","topRight","bottomLeft","bottomRight"];function j7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var V7e=be({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>F7e.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Ee("notification-list"),r=O7e(e.position),{zIndex:o}=W1("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return O(z1,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},j7e(s=e.notifications.map(l=>{const c={default:Dl(l.title),content:Dl(l.content),icon:Dl(l.icon),footer:Dl(l.footer),closeIcon:Dl(l.closeIcon),closeIconElement:Dl(l.closeIconElement)};return O(B7e,{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 U7e{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=Wt({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&&(Fc(null,this.container),document.body.removeChild(this.container),this.container=null,ig[this.position]=void 0)};const{position:r="topRight"}=t;this.container=x3("notification"),this.notificationIds=new Set,this.notifications=pe([]),this.position=r;const o=O(V7e,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??aj._context)&&(o.appContext=n??aj._context),Fc(o,this.container),document.body.appendChild(this.container)}}const ig={},WS=A3.reduce((e,t)=>(e[t]=(n,r)=>{ts(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return ig[a]||(ig[a]=new U7e(o,r)),ig[a].add(o)},e),{});WS.remove=e=>{e&&Object.values(ig).forEach(t=>t?.remove(e))};WS.clear=e=>{var t;e?(t=ig[e])==null||t.clear():Object.values(ig).forEach(n=>n?.clear())};const aj={...WS,install:e=>{const t={clear:WS.clear};for(const n of A3)t[n]=(r,o=e._context)=>WS[n](r,o);e.config.globalProperties.$notification=t},_context:null},z7e=be({name:"PageHeader",components:{AIconHover:_o,IconLeft:zl},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Ee("page-header"),o=s=>{t("back",s)},a=V(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function H7e(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("a-icon-hover");return H(),J("div",{class:se(e.cls)},[I("div",{class:se(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(H(),J("div",{key:0,class:se(`${e.prefixCls}-breadcrumb`)},[ft(e.$slots,"breadcrumb")],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-header`)},[I("span",{class:se(`${e.prefixCls}-main`)},[e.showBack?(H(),Ye(l,{key:0,class:se(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[ft(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Ae("v-if",!0),I("span",{class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(H(),J("span",{key:1,class:se(`${e.prefixCls}-divider`)},null,2)):Ae("v-if",!0),e.$slots.subtitle||e.subtitle?(H(),J("span",{key:2,class:se(`${e.prefixCls}-subtitle`)},[ft(e.$slots,"subtitle",{},()=>[He(Ne(e.subtitle),1)])],2)):Ae("v-if",!0)],2),e.$slots.extra?(H(),J("span",{key:0,class:se(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra")],2)):Ae("v-if",!0)],2)],2),e.$slots.default?(H(),J("div",{key:0,class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)):Ae("v-if",!0)],2)}var XD=De(z7e,[["render",H7e]]);const W7e=Object.assign(XD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+XD.name,XD)}}),G7e=be({name:"Popconfirm",components:{ArcoButton:Uo,Trigger:oa,IconInfoCircleFill:H1,IconCheckCircleFill:jh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Fg},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=Ee("popconfirm"),{t:r}=Ao(),o=pe(e.defaultPopupVisible),a=V(()=>{var S;return(S=e.popupVisible)!=null?S:o.value}),s=pe(!1),l=V(()=>e.okLoading||s.value);let c=0;const f=()=>{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)):f()},p=async()=>{const S=c,k=await new Promise(async C=>{var E;if(pn(e.onBeforeOk)){let x=e.onBeforeOk((_=!0)=>C(_));if((yg(x)||!gl(x))&&(s.value=!0),yg(x))try{x=(E=await x)!=null?E:!0}catch(_){throw x=!1,_}gl(x)&&C(x)}else C(!0)});S===c&&(k?(t("ok"),f()):s.value&&(s.value=!1))},m=()=>{var S;let k=!0;pn(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),f())},g=V(()=>[`${n}-popup-content`,e.contentClass]),b=V(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:b,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:m,t:r}}});function K7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("arco-button"),p=Pe("trigger");return H(),Ye(p,{class:se(e.prefixCls),trigger:"click",position:e.position,"show-arrow":"","popup-visible":e.computedPopupVisible,"popup-offset":10,"popup-container":e.popupContainer,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[I("div",{class:se(`${e.prefixCls}-body`)},[I("span",{class:se(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Ae("v-if",!0)])],2),I("span",{class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"content",{},()=>[He(Ne(e.content),1)])],2)],2),I("div",{class:se(`${e.prefixCls}-footer`)},[O(h,Bt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[He(Ne(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,Bt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[He(Ne(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var ZD=De(G7e,[["render",K7e]]);const q7e=Object.assign(ZD,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+ZD.name,ZD)}}),Y7e={small:3,medium:4,large:8},X7e=e=>{if(e)return ar(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},Z7e=be({name:"ProgressLine",components:{IconExclamationCircleFill:Sf},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=Ee("progress-line"),n=V(()=>e.strokeWidth!==4?e.strokeWidth:Y7e[e.size]),r=V(()=>`${Fl.times(e.percent,100)}%`),o=V(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=V(()=>({width:`${e.percent*100}%`,...X7e(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),J7e=["aria-valuenow"];function Q7e(e,t,n,r,o,a){const s=Pe("icon-exclamation-circle-fill");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:se(`${e.prefixCls}-wrapper`)},[I("div",{class:se(e.prefixCls),style:je(e.style)},[I("div",{class:se(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:se([`${e.prefixCls}-bar`]),style:je(e.barStyle)},null,6)],6),e.showText?(H(),J("div",{key:0,class:se(`${e.prefixCls}-text`)},[ft(e.$slots,"text",{percent:e.percent},()=>[He(Ne(e.text)+" ",1),e.status==="danger"?(H(),Ye(s,{key:0})):Ae("v-if",!0)])],2)):Ae("v-if",!0)],10,J7e)}var e9e=De(Z7e,[["render",Q7e]]);const t9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),n9e=["stroke-width","stroke-linecap","stroke-linejoin"];function r9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23 9h2v21h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),I("path",{d:"M23 37h2v2h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,n9e)}var JD=De(t9e,[["render",r9e]]);const Pz=Object.assign(JD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JD.name,JD)}}),i9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 s9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,o9e)}var QD=De(i9e,[["render",s9e]]);const Ug=Object.assign(QD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QD.name,QD)}});let _ne=0;const a9e={mini:16,small:48,medium:64,large:80},l9e={mini:4,small:3,medium:4,large:4},u9e=be({name:"ProgressCircle",components:{IconExclamation:Pz,IconCheck:Ug},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=Ee("progress-circle"),n=ar(e.color),r=V(()=>{var p;return(p=e.width)!=null?p:a9e[e.size]}),o=V(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:l9e[e.size]}),a=V(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=V(()=>(r.value-o.value)/2),l=V(()=>Math.PI*2*s.value),c=V(()=>r.value/2),f=V(()=>(_ne+=1,`${t}-linear-gradient-${_ne}`)),h=V(()=>`${Fl.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:s,text:h,perimeter:l,center:c,mergedWidth:r,mergedStrokeWidth:o,mergedPathStrokeWidth:a,linearGradientId:f}}}),c9e=["aria-valuenow"],d9e=["viewBox"],f9e={key:0},h9e=["id"],p9e=["offset","stop-color"],v9e=["cx","cy","r","stroke-width"],m9e=["cx","cy","r","stroke-width"];function g9e(e,t,n,r,o,a){const s=Pe("icon-check"),l=Pe("icon-exclamation");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:se(`${e.prefixCls}-wrapper`),style:je({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(H(),Ye(s,{key:0,style:je({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(H(),J("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:se(`${e.prefixCls}-svg`)},[e.isLinearGradient?(H(),J("defs",f9e,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(H(!0),J(Ft,null,fn(Object.keys(e.color),c=>(H(),J("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,p9e))),128))],8,h9e)])):Ae("v-if",!0),I("circle",{class:se(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:je({stroke:e.trackColor})},null,14,v9e),I("circle",{class:se(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:je({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,m9e)],10,d9e)),e.showText&&e.size!=="mini"?(H(),J("div",{key:2,class:se(`${e.prefixCls}-text`)},[ft(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(H(),Ye(l,{key:0})):e.status==="success"?(H(),Ye(s,{key:1})):(H(),J(Ft,{key:2},[He(Ne(e.text),1)],64))])],2)):Ae("v-if",!0)],14,c9e)}var y9e=De(u9e,[["render",g9e]]);const b9e=be({name:"ProgressSteps",components:{IconExclamationCircleFill:Sf},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=Ee("progress-steps"),n=V(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=V(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=V(()=>`${Fl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),_9e=["aria-valuenow"];function S9e(e,t,n,r,o,a){const s=Pe("icon-exclamation-circle-fill");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:se(`${e.prefixCls}-wrapper`)},[I("div",{class:se(e.prefixCls),style:je({height:`${e.mergedStrokeWidth}px`})},[(H(!0),J(Ft,null,fn(e.stepList,(l,c)=>(H(),J("div",{key:c,class:se([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:je({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(H(),J("div",{key:0,class:se(`${e.prefixCls}-text`)},[ft(e.$slots,"text",{percent:e.percent},()=>[He(Ne(e.text)+" ",1),e.status==="danger"?(H(),Ye(s,{key:0})):Ae("v-if",!0)])],2)):Ae("v-if",!0)],10,_9e)}var k9e=De(b9e,[["render",S9e]]);const w9e=be({name:"Progress",components:{ProgressLine:e9e,ProgressCircle:y9e,ProgressSteps:k9e},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=Ee("progress"),{size:n}=Jt(e),r=V(()=>e.steps>0?"steps":e.type),o=V(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=ma(n);return{cls:V(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:a}}});function C9e(e,t,n,r,o,a){const s=Pe("progress-steps"),l=Pe("progress-line"),c=Pe("progress-circle");return H(),J("div",{class:se(e.cls)},[e.steps>0?(H(),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},yo({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ft(e.$slots,"text",Ni(fa(f)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(H(),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},yo({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ft(e.$slots,"text",Ni(fa(f)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(H(),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},yo({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ft(e.$slots,"text",Ni(fa(f)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var e6=De(w9e,[["render",C9e]]);const Xhe=Object.assign(e6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+e6.name,e6)}}),E9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),x9e=["stroke-width","stroke-linecap","stroke-linejoin"];function T9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1)]),14,x9e)}var t6=De(E9e,[["render",T9e]]);const Rz=Object.assign(t6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t6.name,t6)}}),A9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 L9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,I9e)}var n6=De(A9e,[["render",L9e]]);const lj=Object.assign(n6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n6.name,n6)}}),P9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),R9e=["stroke-width","stroke-linecap","stroke-linejoin"];function M9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1)]),14,R9e)}var r6=De(P9e,[["render",M9e]]);const Zhe=Object.assign(r6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r6.name,r6)}}),D9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1)]),14,O9e)}var i6=De(D9e,[["render",$9e]]);const Jhe=Object.assign(i6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i6.name,i6)}});var o6=be({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}=Jt(e),o=Ee("rate"),{mergedDisabled:a,eventHandlers:s}=So({disabled:ku(e,"disabled")}),l=pe(e.defaultValue),c=pe(!1);Dt(r,D=>{(mn(D)||yl(D))&&(l.value=0)});const f=pe(0),h=V(()=>{var D;return(D=e.modelValue)!=null?D:l.value}),p=V(()=>{const D=e.allowHalf?Fl.times(Fl.round(Fl.divide(h.value,.5),0),.5):Math.round(h.value);return f.value||D}),m=V(()=>a.value||e.readonly),g=V(()=>[...Array(e.grading?5:e.count)]),b=V(()=>{var D;if(ts(e.color))return g.value.map(()=>e.color);if(ar(e.color)){const N=Object.keys(e.color).map(B=>Number(B)).sort((B,F)=>F-B);let L=(D=N.pop())!=null?D:g.value.length;return g.value.map((B,F)=>{var j;return F+1>L&&(L=(j=N.pop())!=null?j:L),e.color[String(L)]})}}),S=()=>{f.value&&(f.value=0,t("hoverChange",0))},k=(D,N)=>{const L=N&&e.allowHalf?D+.5:D+1;L!==f.value&&(f.value=L,t("hoverChange",L))},C=(D,N)=>{var L,B,F,j;const z=N&&e.allowHalf?D+.5:D+1;c.value=!0,z!==h.value?(l.value=z,t("update:modelValue",z),t("change",z),(B=(L=s.value)==null?void 0:L.onChange)==null||B.call(L)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(j=(F=s.value)==null?void 0:F.onChange)==null||j.call(F))},E=D=>{c.value&&D+1>=h.value-1&&(c.value=!1)},x=(D,N)=>D>N?O(lj,null,null):N<=2?O(Jhe,null,null):N<=3?O(lj,null,null):O(Zhe,null,null),_=(D,N=!1)=>({role:"radio","aria-checked":D+(N?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":D+(N?.5:1)}),A=D=>e.grading?x(D,p.value):n.character?n.character({index:D}):O(Rz,null,null),R=D=>{const N=m.value?{}:{onMouseenter:()=>k(D,!0),onClick:()=>C(D,!0)},L=m.value?{}:{onMouseenter:()=>k(D,!1),onClick:()=>C(D,!1)},B=c.value?{animationDelay:`${50*D}ms`}:void 0,F=Math.ceil(p.value)-1,j=b.value&&e.allowHalf&&D+.5===p.value?{color:b.value[F]}:void 0,z=b.value&&D+1<=p.value?{color:b.value[F]}:void 0,q=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&D+.5===p.value,[`${o}-character-full`]:D+1<=p.value,[`${o}-character-scale`]:c.value&&D+1E(D)}),[O("div",Bt({class:`${o}-character-left`,style:j},N,e.allowHalf?_(D,!0):void 0),[A(D)]),O("div",Bt({class:`${o}-character-right`,style:z},L,e.allowHalf?_(D):void 0),[A(D)])])},M=V(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>O("div",{class:M.value,onMouseleave:S},[g.value.map((D,N)=>R(N))])}});const N9e=Object.assign(o6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+o6.name,o6)}}),B9e=be({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=Ee("icon"),r=V(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),F9e=["stroke-width","stroke-linecap","stroke-linejoin"];function j9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 39h-2V18h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),I("path",{d:"M25 11h-2V9h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,F9e)}var s6=De(B9e,[["render",j9e]]);const Qhe=Object.assign(s6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s6.name,s6)}});var V9e=be({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)])])])}}),U9e=be({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"}},[He("?")])])])])])])])])}}),z9e=be({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;'},[He("!")])])])]),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 H9e=["info","success","warning","error","403","404","500",null],W9e=be({name:"Result",components:{IconInfo:Qhe,IconCheck:Ug,IconExclamation:Pz,IconClose:Us,ResultForbidden:V9e,ResultNotFound:U9e,ResultServerError:z9e},props:{status:{type:String,default:"info",validator:e=>H9e.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Ee("result")}}});function G9e(e,t,n,r,o,a){const s=Pe("icon-info"),l=Pe("icon-check"),c=Pe("icon-exclamation"),f=Pe("icon-close"),h=Pe("result-forbidden"),p=Pe("result-not-found"),m=Pe("result-server-error");return H(),J("div",{class:se(e.prefixCls)},[I("div",{class:se([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:se(`${e.prefixCls}-icon-tip`)},[ft(e.$slots,"icon",{},()=>[e.status==="info"?(H(),Ye(s,{key:0})):e.status==="success"?(H(),Ye(l,{key:1})):e.status==="warning"?(H(),Ye(c,{key:2})):e.status==="error"?(H(),Ye(f,{key:3})):e.status==="403"?(H(),Ye(h,{key:4})):e.status==="404"?(H(),Ye(p,{key:5})):e.status==="500"?(H(),Ye(m,{key:6})):Ae("v-if",!0)])],2)],2),e.title||e.$slots.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),e.subtitle||e.$slots.subtitle?(H(),J("div",{key:1,class:se(`${e.prefixCls}-subtitle`)},[ft(e.$slots,"subtitle",{},()=>[He(Ne(e.subtitle),1)])],2)):Ae("v-if",!0),e.$slots.extra?(H(),J("div",{key:2,class:se(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra")],2)):Ae("v-if",!0),e.$slots.default?(H(),J("div",{key:3,class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)):Ae("v-if",!0)],2)}var a6=De(W9e,[["render",G9e]]);const K9e=Object.assign(a6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+a6.name,a6)}}),q9e=be({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Ee("skeleton"),n=V(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function Y9e(e,t,n,r,o,a){return H(),J("div",{class:se(e.cls)},[e.loading?ft(e.$slots,"default",{key:0}):ft(e.$slots,"content",{key:1})],2)}var l6=De(q9e,[["render",Y9e]]);const X9e=be({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=Ee("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function Z9e(e,t,n,r,o,a){return H(!0),J(Ft,null,fn(e.lines,(s,l)=>(H(),J("ul",{key:l,class:se(e.prefixCls)},[I("li",{class:se(`${e.prefixCls}-row`),style:je(s)},null,6)],2))),128)}var k4=De(X9e,[["render",Z9e]]);const J9e=be({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Ee("skeleton-shape"),n=V(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function Q9e(e,t,n,r,o,a){return H(),J("div",{class:se(e.cls)},null,2)}var w4=De(J9e,[["render",Q9e]]);const eFe=Object.assign(l6,{Line:k4,Shape:w4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+l6.name,l6),e.component(n+k4.name,k4),e.component(n+w4.name,w4)}}),tFe=be({name:"SliderButton",components:{Tooltip:jc},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=Ee("slider-btn"),r=pe(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,ki(window,"mousemove",a),ki(window,"touchmove",a),ki(window,"mouseup",s),ki(window,"contextmenu",s),ki(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,Gi(window,"mousemove",a),Gi(window,"mouseup",s),Gi(window,"touchend",s),t("moveend")},l=V(()=>[n]),c=V(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),f=V(()=>{var p,m;return(m=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?m:`${e.value}`}),h=V(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:f,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),nFe=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function rFe(e,t,n,r,o,a){const s=Pe("tooltip");return H(),Ye(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[I("div",Bt(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]=$o(()=>{},["prevent"])),onClick:t[3]||(t[3]=$o(()=>{},["stop"]))}),null,16,nFe)]),_:1},8,["popup-visible","position","content"])}var iFe=De(tFe,[["render",rFe]]);const Wp=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Fl.round(r*100,2)}%`},G3=(e,t)=>t==="vertical"?{bottom:e}:{left:e},oFe=be({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:Ee("slider"),getStyle:r=>G3(Wp(r,[e.min,e.max]),e.direction)}}});function sFe(e,t,n,r,o,a){return H(),J("div",{class:se(`${e.prefixCls}-dots`)},[(H(!0),J(Ft,null,fn(e.data,(s,l)=>(H(),J("div",{key:l,class:se(`${e.prefixCls}-dot-wrapper`),style:je(e.getStyle(s.key))},[I("div",{class:se([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var aFe=De(oFe,[["render",sFe]]);const lFe=be({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:Ee("slider"),getStyle:r=>G3(Wp(r,[e.min,e.max]),e.direction)}}});function uFe(e,t,n,r,o,a){return H(),J("div",{class:se(`${e.prefixCls}-marks`)},[(H(!0),J(Ft,null,fn(e.data,(s,l)=>(H(),J("div",{key:l,"aria-hidden":"true",class:se(`${e.prefixCls}-mark`),style:je(e.getStyle(s.key))},Ne(s.content),7))),128))],2)}var cFe=De(lFe,[["render",uFe]]);const dFe=be({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=Ee("slider"),n=V(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Fl.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=>G3(Wp(o,[e.min,e.max]),e.direction)}}});function fFe(e,t,n,r,o,a){return H(),J("div",{class:se(`${e.prefixCls}-ticks`)},[(H(!0),J(Ft,null,fn(e.steps,(s,l)=>(H(),J("div",{key:l,class:se([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:je(e.getStyle(s.key))},null,6))),128))],2)}var hFe=De(dFe,[["render",fFe]]);const pFe=be({name:"SliderInput",components:{InputNumber:Mk},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:Ee("slider")}}});function vFe(e,t,n,r,o,a){const s=Pe("input-number");return H(),J("div",{class:se(`${e.prefixCls}-input`)},[e.range?(H(),J(Ft,{key:0},[O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=l=>e.$emit("startChange",l))},null,8,["min","max","step","disabled","model-value"]),I("div",{class:se(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Ae("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 mFe=De(pFe,[["render",vFe]]);const gFe=be({name:"Slider",components:{SliderButton:iFe,SliderDots:aFe,SliderMarks:cFe,SliderTicks:hFe,SliderInput:mFe},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}=Jt(e),r=Ee("slider"),{mergedDisabled:o,eventHandlers:a}=So({disabled:ku(e,"disabled")}),s=pe(null),l=pe(),c=e.modelValue?e.modelValue:e.defaultValue,f=pe(qn(c)?c[0]:0),h=pe(qn(c)?c[1]:c);Dt(n,B=>{var F,j,z,q,G;qn(B)?(f.value=(j=(F=B[0])!=null?F:e.min)!=null?j:0,h.value=(q=(z=B[1])!=null?z:e.min)!=null?q:0):h.value=(G=B??e.min)!=null?G:0});const p=()=>{var B,F;e.range?(t("update:modelValue",[f.value,h.value]),t("change",[f.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(F=(B=a.value)==null?void 0:B.onChange)==null||F.call(B)},m=B=>{B=B??e.min,f.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},b=V(()=>{var B,F,j;return e.range?qn(e.modelValue)?e.modelValue:[f.value,(B=e.modelValue)!=null?B:h.value]:mn(e.modelValue)?[f.value,h.value]:qn(e.modelValue)?[(F=e.min)!=null?F:0,e.modelValue[1]]:[(j=e.min)!=null?j:0,e.modelValue]}),S=V(()=>Object.keys(e.marks||{}).map(B=>{var F;const j=Number(B);return{key:j,content:(F=e.marks)==null?void 0:F[j],isActive:j>=b.value[0]&&j<=b.value[1]}})),k=B=>G3(Wp(B,[e.min,e.max]),e.direction),C=pe(!1),E=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function x(B,F){if(!l.value)return 0;const{left:j,top:z,width:q,height:G}=l.value,ee=e.direction==="horizontal"?q:G,Q=ee*e.step/(e.max-e.min);let X=e.direction==="horizontal"?B-j:z+G-F;X<0&&(X=0),X>ee&&(X=ee);const K=Math.round(X/Q);return Fl.plus(e.min,Fl.times(K,e.step))}const _=(B,F)=>{h.value=x(B,F),p()},A=B=>{if(o.value)return;const{clientX:F,clientY:j}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=x(F,j),p()};function R([B,F]){return B>F&&([B,F]=[F,B]),e.direction==="vertical"?{bottom:Wp(B,[e.min,e.max]),top:Wp(e.max+e.min-F,[e.min,e.max])}:{left:Wp(B,[e.min,e.max]),right:Wp(e.max+e.min-F,[e.min,e.max])}}const M=(B,F)=>{f.value=x(B,F),p()},D=()=>{C.value=!1},N=V(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=V(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:N,trackCls:L,trackRef:s,computedValue:b,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:R,handleClick:A,handleMoveStart:E,handleEndMoving:_,handleMoveEnd:D,handleStartMoving:M,handleStartChange:m,handleEndChange:g}}});function yFe(e,t,n,r,o,a){const s=Pe("slider-ticks"),l=Pe("slider-dots"),c=Pe("slider-marks"),f=Pe("slider-button"),h=Pe("slider-input");return H(),J("div",{class:se(e.cls)},[I("div",{ref:"trackRef",class:se(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:se(`${e.prefixCls}-bar`),style:je(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(H(),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"])):Ae("v-if",!0),e.marks?(H(),Ye(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Ae("v-if",!0),e.marks?(H(),Ye(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Ae("v-if",!0),e.range?(H(),Ye(f,{key:3,style:je(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"])):Ae("v-if",!0),O(f,{style:je(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(H(),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"])):Ae("v-if",!0)],2)}var u6=De(gFe,[["render",yFe]]);const bFe=Object.assign(u6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+u6.name,u6)}});var c6=be({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=Ee("space"),r=V(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=V(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(Ge(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={},f=`${a(qn(e.size)?e.size[0]:e.size)}px`,h=`${a(qn(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=f),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=uf((l=t.default)==null?void 0:l.call(t),!0).filter(f=>f.type!==ds);return O("div",{class:o.value},[c.map((f,h)=>{var p,m;const g=t.split&&h>0;return O(Ft,{key:(p=f.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)},[f])])})])}}});const _Fe=Object.assign(c6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+c6.name,c6)}});function epe(e){const t=ts(e)?parseFloat(e):e;let n="";return Ge(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function ex({size:e,defaultSize:t,containerSize:n}){const r=epe(e??t);return r.isPx?r.size:r.size*n}function SFe(e,t){return parseFloat(e)/parseFloat(t)}const kFe=be({name:"Split",components:{ResizeTrigger:$he},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}=Jt(e),l=pe(0),c=pe(),f=Ee("split"),[h,p]=ia(o.value,Wt({value:r})),m=V(()=>epe(h.value)),g=V(()=>n.value==="horizontal"),b=V(()=>[f,{[`${f}-horizontal`]:g.value,[`${f}-vertical`]:!g.value}]),S=V(()=>{const{size:N,unit:L,isPx:B}=m.value;return{flex:`0 0 calc(${B?N:N*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const N=()=>{var L,B;return g.value?(L=c.value)==null?void 0:L.clientWidth:((B=c.value)==null?void 0:B.clientHeight)||0};return(!c.value||N())&&await kn(),N()}function E(N,L){if(!L)return;const B=m.value.isPx?`${N}px`:SFe(N,L);h.value!==B&&(p(B),t("update:size",B))}function x(N,L){const B=ex({size:N,containerSize:L}),F=ex({size:a.value,defaultSize:"0px",containerSize:L}),j=ex({size:s.value,defaultSize:`${L}px`,containerSize:L});let z=B;return z=Math.max(z,F),z=Math.min(z,j),z}function _({startContainerSize:N,startSize:L,startPosition:B,endPosition:F}){const j=ex({size:L,containerSize:N});return x(`${j+(F-B)}px`,N)}function A(N){t("moving",N);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:N.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:N.pageY});E(L,k.startContainerSize)}function R(N){Gi(window,"mousemove",A),Gi(window,"mouseup",R),Gi(window,"contextmenu",R),document.body.style.cursor="default",t("moveEnd",N)}async function M(N){t("moveStart",N),k.startPageX=N.pageX,k.startPageY=N.pageY,k.startContainerSize=await C(),k.startSize=h.value,ki(window,"mousemove",A),ki(window,"mouseup",R),ki(window,"contextmenu",R),document.body.style.cursor=g.value?"col-resize":"row-resize"}function D(N){const{width:L,height:B}=N.contentRect;l.value=g.value?L:B}return ln(async()=>{const N=await C(),L=x(h.value,N);E(L,N)}),{prefixCls:f,classNames:b,isHorizontal:g,wrapperRef:c,onMoveStart:M,onTriggerResize:D,firstPaneStyles:S}}});function wFe(e,t,n,r,o,a){const s=Pe("ResizeTrigger");return H(),Ye($a(e.component),{ref:"wrapperRef",class:se(e.classNames)},{default:de(()=>[I("div",{class:se([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:je(e.firstPaneStyles)},[ft(e.$slots,"first")],6),e.disabled?Ae("v-if",!0):(H(),Ye(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[ft(e.$slots,"resize-trigger")]),icon:de(()=>[ft(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:se([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[ft(e.$slots,"second")],2)]),_:3},8,["class"])}var d6=De(kFe,[["render",wFe]]);const CFe=Object.assign(d6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+d6.name,d6)}}),EFe=be({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=Ee("statistic"),r=V(()=>Ge(e.value)?e.value:0),o=pe((t=e.valueFrom)!=null?t:e.value),a=pe(null),{value:s}=Jt(e),l=V(()=>mn(e.value)),c=(h=(m=>(m=e.valueFrom)!=null?m:0)(),p=r.value)=>{var m;h!==p&&(a.value=new jg({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())},f=V(()=>{let h=o.value;if(Ge(h)){Ge(e.precision)&&(h=Fl.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=sl(h).format(e.format)),{isNumber:!1,value:h}});return ln(()=>{e.animation&&e.start&&c()}),Dt(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),Dt(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:f}}}),xFe={key:0};function TFe(e,t,n,r,o,a){return H(),J("div",{class:se(e.prefixCls)},[e.title||e.$slots.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-content`)},[I("div",{class:se(`${e.prefixCls}-value`),style:je(e.valueStyle)},[e.showPlaceholder?(H(),J("span",xFe,Ne(e.placeholder),1)):(H(),J(Ft,{key:1},[e.$slots.prefix?(H(),J("span",{key:0,class:se(`${e.prefixCls}-prefix`)},[ft(e.$slots,"prefix")],2)):Ae("v-if",!0),e.formatValue.isNumber?(H(),J(Ft,{key:1},[I("span",{class:se(`${e.prefixCls}-value-integer`)},Ne(e.formatValue.integer),3),e.formatValue.decimal?(H(),J("span",{key:0,class:se(`${e.prefixCls}-value-decimal`)}," ."+Ne(e.formatValue.decimal),3)):Ae("v-if",!0)],64)):(H(),J(Ft,{key:2},[He(Ne(e.formatValue.value),1)],64)),e.$slots.suffix?(H(),J("span",{key:3,class:se(`${e.prefixCls}-suffix`)},[ft(e.$slots,"suffix")],2)):Ae("v-if",!0)],64))],6),e.extra||e.$slots.extra?(H(),J("div",{key:0,class:se(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra",{},()=>[He(Ne(e.extra),1)])],2)):Ae("v-if",!0)],2)],2)}var f6=De(EFe,[["render",TFe]]);const AFe=[["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 h6(e,t){let n=e;return AFe.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 IFe=be({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=Ee("statistic"),{start:r,value:o,now:a,format:s}=Jt(e),l=pe(h6(Math.max(sl(e.value).diff(sl(e.now),"millisecond"),0),e.format));Dt([o,a,s],()=>{const p=h6(Math.max(sl(e.value).diff(sl(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=pe(0),f=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{sl(e.value).valueOf(){const p=sl(e.value).diff(sl(),"millisecond");p<=0&&(f(),t("finish")),l.value=h6(Math.max(p,0),e.format)},1e3/30))};return ln(()=>{e.start&&h()}),No(()=>{f()}),Dt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function LFe(e,t,n,r,o,a){return H(),J("div",{class:se([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(H(),J("div",{key:0,class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-content`)},[I("div",{class:se(`${e.prefixCls}-value`),style:je(e.valueStyle)},Ne(e.displayValue),7)],2)],2)}var C4=De(IFe,[["render",LFe]]);const PFe=Object.assign(f6,{Countdown:C4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+f6.name,f6),e.component(n+C4.name,C4)}}),tpe=Symbol("ArcoSteps"),RFe=be({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}=Jt(e),a=Ee("steps"),s=pe(e.defaultCurrent),l=V(()=>{var C;return(C=e.current)!=null?C:s.value}),c=V(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),f=V(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=C=>Cl.value?"wait":e.status,p=(C,E)=>{e.changeable&&(s.value=C,t("update:current",C),t("change",C,E))},m=Wt(new Map),g=V(()=>Array.from(m.values()).filter(C=>C.status==="error").map(C=>C.step)),b=(C,E)=>{m.set(C,E)},S=C=>{m.delete(C)},k=V(()=>[a,`${a}-${c.value}`,`${a}-label-${f.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:o.value}]);return Wr(tpe,Wt({type:r,direction:c,labelPlacement:f,lineLess:o,current:l,errorSteps:g,getStatus:h,addItem:b,removeItem:S,onClick:p,parentCls:a})),{cls:k}}});function MFe(e,t,n,r,o,a){return H(),J("div",{class:se(e.cls)},[ft(e.$slots,"default")],2)}var p6=De(RFe,[["render",MFe]]);const DFe=be({name:"Step",components:{IconCheck:Ug,IconClose:Us},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Ee("steps-item"),n=uo(),r=Ee("steps-icon"),o=xn(tpe,void 0),a=V(()=>{var b;return(b=o?.type)!=null?b:"default"}),s=pe(),{computedIndex:l}=az({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=V(()=>l.value+1),f=V(()=>{var b,S;return(S=(b=e.status)!=null?b:o?.getStatus(c.value))!=null?S:"process"}),h=V(()=>{var b;return(b=o?.errorSteps.includes(c.value+1))!=null?b:!1});n&&o?.addItem(n.uid,Wt({step:c,status:f})),No(()=>{n&&o?.removeItem(n.uid)});const p=V(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),m=b=>{e.disabled||o?.onClick(c.value,b)},g=V(()=>[t,`${t}-${f.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:f,type:a,handleClick:m}}});function OFe(e,t,n,r,o,a){const s=Pe("icon-check"),l=Pe("icon-close");return H(),J("div",{ref:"itemRef",class:se(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(H(),J("div",{key:0,class:se(`${e.prefixCls}-tail`)},null,2)):Ae("v-if",!0),e.type!=="arrow"?(H(),J("div",{key:1,class:se(`${e.prefixCls}-node`)},[ft(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(H(),J("div",{key:0,class:se(e.iconCls)},[ft(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(H(),Ye(s,{key:0})):e.computedStatus==="error"?(H(),Ye(l,{key:1})):(H(),J(Ft,{key:2},[He(Ne(e.stepNumber),1)],64))])],2)):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-content`)},[I("div",{class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"default",{},()=>[He(Ne(e.title),1)])],2),e.description||e.$slots.description?(H(),J("div",{key:0,class:se(`${e.prefixCls}-description`)},[ft(e.$slots,"description",{},()=>[He(Ne(e.description),1)])],2)):Ae("v-if",!0)],2)],2)}var E4=De(DFe,[["render",OFe]]);const $Fe=Object.assign(p6,{Step:E4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+p6.name,p6),e.component(n+E4.name,E4)}}),NFe=be({name:"Switch",components:{IconLoading:Va},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}=Jt(e),a=Ee("switch"),{mergedSize:s}=ma(r),{mergedDisabled:l,mergedSize:c,eventHandlers:f}=So({disabled:n,size:s}),h=pe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=V(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),m=pe(!1),g=V(()=>m.value||e.loading),b=(_,A)=>{var R,M;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,A),(M=(R=f.value)==null?void 0:R.onChange)==null||M.call(R,A)},S=async _=>{if(g.value||l.value)return;const A=!p.value,R=A?e.checkedValue:e.uncheckedValue,M=e.beforeChange;if(pn(M)){m.value=!0;try{const D=await M(R);(D??!0)&&b(A,_)}finally{m.value=!1}}else b(A,_)},k=_=>{var A,R;t("focus",_),(R=(A=f.value)==null?void 0:A.onFocus)==null||R.call(A,_)},C=_=>{var A,R;t("blur",_),(R=(A=f.value)==null?void 0:A.onBlur)==null||R.call(A,_)};Dt(o,_=>{(mn(_)||yl(_))&&(h.value=e.uncheckedValue)});const E=V(()=>[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)}]),x=V(()=>{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:E,mergedDisabled:l,buttonStyle:x,computedCheck:p,computedLoading:g,handleClick:S,handleFocus:k,handleBlur:C}}}),BFe=["aria-checked","disabled"];function FFe(e,t,n,r,o,a){const s=Pe("icon-loading");return H(),J("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:se(e.cls),style:je(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onBlur:t[2]||(t[2]=(...l)=>e.handleBlur&&e.handleBlur(...l))},[I("span",{class:se(`${e.prefixCls}-handle`)},[I("span",{class:se(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(H(),Ye(s,{key:0})):(H(),J(Ft,{key:1},[e.computedCheck?ft(e.$slots,"checked-icon",{key:0}):ft(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Ae(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(H(),J(Ft,{key:0},[I("span",{class:se(`${e.prefixCls}-text-holder`)},[e.computedCheck?ft(e.$slots,"checked",{key:0},()=>[He(Ne(e.checkedText),1)]):ft(e.$slots,"unchecked",{key:1},()=>[He(Ne(e.uncheckedText),1)])],2),I("span",{class:se(`${e.prefixCls}-text`)},[e.computedCheck?ft(e.$slots,"checked",{key:0},()=>[He(Ne(e.checkedText),1)]):ft(e.$slots,"unchecked",{key:1},()=>[He(Ne(e.uncheckedText),1)])],2)],64)):Ae("v-if",!0)],46,BFe)}var v6=De(NFe,[["render",FFe]]);const jFe=Object.assign(v6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+v6.name,v6)}}),VFe=e=>{let t=0;const n=r=>{if(qn(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},npe=e=>{let t=0;if(qn(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=npe(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Sne=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},UFe=(e,t,n)=>{const r=npe(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(f,{level:h=0,parent:p,fixed:m}={})=>{var g;for(const b of f){const S={...b,parent:p};if(qn(S.children)){const k=VFe(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:mn(l)&&(l=o.length)),(mn(S.dataIndex)||yl(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),mn(s)||(o[s].isLastLeftFixed=!0,Sne(o[s],"left")),mn(l)||(o[l].isFirstRightFixed=!0,Sne(o[l],"right")),{dataColumns:o,groupColumns:a}},zFe=(e,t)=>{for(let n=0;n{var n;const r=zFe(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},Mz=e=>e.children&&e.children.length>0?Mz(e.children[0]):e,WFe=e=>e.children&&e.children.length>0?Mz(e.children[e.children.length-1]):e,GFe=(e,{dataColumns:t,operations:n})=>{var r,o,a;let s=0;if(e.fixed==="left"){for(const f of n)s+=(r=f.width)!=null?r:40;const c=Mz(e);for(const f of t){if(c.dataIndex===f.dataIndex)break;s+=(a=(o=f._resizeWidth)!=null?o:f.width)!=null?a:0}return s}const l=WFe(e);for(let c=t.length-1;c>0;c--){const f=t[c];if(l.dataIndex===f.dataIndex)break;f.fixed==="right"&&(s+=f.width)}return s},rpe=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],ipe=(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}]:[],ope=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${GFe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},spe=(e,t)=>e.fixed?{left:`${HFe(e,t)}px`}:{};function ape(e){return e.map(t=>{const n={...t};return n.children&&(n.children=ape(n.children)),n})}function lpe(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=lpe(t.children)),t.raw})}const Dz=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...Dz(n));return t},KFe=(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}},M_=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),qFe=e=>{const t=[];for(let n=0;n{var s,l,c;const f=V(()=>{var x;return((x=n.value)==null?void 0:x.type)==="radio"}),h=pe((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=V(()=>{var x,_,A;return(A=(_=e.value)!=null?_:(x=n.value)==null?void 0:x.selectedRowKeys)!=null?A:h.value}),m=V(()=>p.value.filter(x=>r.value.includes(x)));return{isRadio:f,selectedRowKeys:p,currentSelectedRowKeys:m,handleSelectAll:x=>{const _=M_(p.value,o.value,!x);h.value=_,a("selectAll",x),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(x,_)=>{const A=f.value?[_.key]:M_(p.value,[_.key],!x);h.value=A,a("select",A,_.key,_.raw),a("selectionChange",A),a("update:selectedKeys",A)},handleSelectAllLeafs:(x,_)=>{const A=M_(p.value,Dz(x),!_);h.value=A,a("select",A,x.key,x.raw),a("selectionChange",A),a("update:selectedKeys",A)},select:(x,_=!0)=>{const A=[].concat(x),R=f.value?A:M_(p.value,A,!_);h.value=R,a("selectionChange",R),a("update:selectedKeys",R)},selectAll:(x=!0)=>{const _=M_(p.value,o.value,!x);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},XFe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=pe((()=>{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=V(()=>{var m,g,b;return(b=(g=e.value)!=null?g:(m=r.value)==null?void 0:m.expandedRowKeys)!=null?b: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 b=[].concat(m),S=g?c.value.concat(b):c.value.filter(k=>!b.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)}}},ZFe=(e,t)=>{var n,r;const o=pe(ar(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=pe(ar(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=V(()=>{var h;return ar(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:V(()=>{var h;return ar(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)}}},JFe=be({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 QFe(e,t,n,r,o,a){return H(),J("colgroup",null,[(H(!0),J(Ft,null,fn(e.operations,s=>(H(),J("col",{key:`arco-col-${s.name}`,class:se(`arco-table-${s.name}-col`),style:je(e.fixedWidth(s.width))},null,6))),128)),(H(!0),J(Ft,null,fn(e.dataColumns,s=>(H(),J("col",{key:`arco-col-${s.dataIndex}`,style:je(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var tx=De(JFe,[["render",QFe]]),GS=be({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})}}}),KS=be({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})}}}),vh=be({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Ee("table"),r=V(()=>[`${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 eje=be({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=Ee("icon"),r=V(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1)]),14,tje)}var m6=De(eje,[["render",nje]]);const Oz=Object.assign(m6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m6.name,m6)}}),rje=be({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=Ee("icon"),r=V(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ije=["stroke-width","stroke-linecap","stroke-linejoin"];function oje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ije)}var g6=De(rje,[["render",oje]]);const upe=Object.assign(g6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g6.name,g6)}}),sje=be({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=Ee("icon"),r=V(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aje=["stroke-width","stroke-linecap","stroke-linejoin"];function lje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1)]),14,aje)}var y6=De(sje,[["render",lje]]);const $z=Object.assign(y6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y6.name,y6)}}),uje=({column:e,tableCtx:t})=>{const n=V(()=>{var f;if(e.value.dataIndex&&e.value.dataIndex===((f=t.sorter)==null?void 0:f.field))return t.sorter.direction}),r=V(()=>{var f,h,p;return(p=(h=(f=e.value)==null?void 0:f.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=V(()=>r.value.length>0),a=V(()=>r.value.includes("ascend")),s=V(()=>r.value.includes("descend")),l=V(()=>{var f,h;return n.value?n.value===r.value[0]&&(h=r.value[1])!=null?h:"":(f=r.value[0])!=null?f:""});return{sortOrder:n,hasSorter:o,hasAscendBtn:a,hasDescendBtn:s,nextSortOrder:l,handleClickSorter:f=>{var h;e.value.dataIndex&&((h=t.onSorterChange)==null||h.call(t,e.value.dataIndex,l.value,f))}}},cje=({column:e,tableCtx:t})=>{const n=V(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=pe(!1),o=V(()=>n.value.length>0),a=V(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=pe(n.value);Dt(n,g=>{qn(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 b;e.value.dataIndex&&((b=t.onFilterChange)==null||b.call(t,e.value.dataIndex,s.value,g)),l(!1)},handleFilterReset:g=>{var b;c([]),e.value.dataIndex&&((b=t.onFilterChange)==null||b.call(t,e.value.dataIndex,s.value,g)),l(!1)}}},Y1=Symbol("ArcoTable"),kne=Symbol("ArcoTableColumn");function wne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var cpe=be({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Ee("auto-tooltip"),o=pe(),a=pe(),s=pe(""),l=pe(!1),c=()=>{if(o.value&&a.value){const m=a.value.offsetWidth>o.value.offsetWidth;m!==l.value&&(l.value=m)}},f=()=>{var m;(m=a.value)!=null&&m.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{f(),c()};ln(()=>{f(),c()}),Ha(()=>{f(),c()});const p=()=>O("span",Bt({ref:o,class:r},t),[O(dv,{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(jc,Bt({content:s.value,onResize:h},e.tooltipProps),wne(g=p())?g:{default:()=>[g]})}return O(dv,{onResize:h},wne(m=p())?m:{default:()=>[m]})}}});function b6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var qS=be({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=Jt(e),r=Ee("table"),{t:o}=Ao(),a=xn(Y1,{}),s=V(()=>{var ee;return((ee=e.column)==null?void 0:ee.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=V(()=>{var ee;if(ar((ee=e.column)==null?void 0:ee.tooltip))return e.column.tooltip}),c=V(()=>{var ee;return(ee=e.column)!=null&&ee.filterable&&gl(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:f,hasSorter:h,hasAscendBtn:p,hasDescendBtn:m,nextSortOrder:g,handleClickSorter:b}=uje({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:E,handleFilterPopupVisibleChange:x,setFilterValue:_,handleCheckboxFilterChange:A,handleRadioFilterChange:R,handleFilterConfirm:M,handleFilterReset:D}=cje({column:n,tableCtx:a}),N=()=>{var ee,Q,X,K,te;let oe,ue;const{filterable:ae}=e.column;return(ee=e.column.slots)!=null&&ee["filter-content"]?(Q=e.column.slots)==null?void 0:Q["filter-content"]({filterValue:E.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):ae?.slotName?(K=(X=a?.slots)==null?void 0:X[ae?.slotName])==null?void 0:K.call(X,{filterValue:E.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):ae?.renderContent?ae.renderContent({filterValue:E.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(te=ae?.filters)==null?void 0:te.map((xe,$e)=>{var ge;return O("li",{class:`${r}-filters-item`,key:$e},[C.value?O(yd,{value:xe.value,modelValue:E.value,uninjectGroupContext:!0,onChange:A},{default:()=>[xe.text]}):O(_1,{value:xe.value,modelValue:(ge=E.value[0])!=null?ge:"",uninjectGroupContext:!0,onChange:R},{default:()=>[xe.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Uo,{size:"mini",onClick:D},b6(oe=o("table.resetText"))?oe:{default:()=>[oe]}),O(Uo,{type:"primary",size:"mini",onClick:M},b6(ue=o("table.okText"))?ue:{default:()=>[ue]})])])},L=()=>{const{filterable:ee}=e.column;return ee?O(oa,Bt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:x},ee.triggerProps),{default:()=>[O(_o,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:Q=>Q.stopPropagation()},{default:()=>{var Q,X,K,te,oe;return[(oe=(te=(X=(Q=e.column.slots)==null?void 0:Q["filter-icon"])==null?void 0:X.call(Q))!=null?te:(K=ee.icon)==null?void 0:K.call(ee))!=null?oe:O($z,null,null)]}})],content:N}):null},B=V(()=>{var ee,Q;const X=[`${r}-cell`,`${r}-cell-align-${(Q=(ee=e.column)==null?void 0:ee.align)!=null?Q:e.column.children?"center":"left"}`];return h.value&&X.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&X.push(`${r}-cell-with-filter`),X}),F=()=>{var ee,Q,X,K,te,oe;return t.default?t.default():(ee=e.column)!=null&&ee.titleSlotName&&((Q=a.slots)!=null&&Q[e.column.titleSlotName])?(K=(X=a.slots)[e.column.titleSlotName])==null?void 0:K.call(X,{column:e.column}):(oe=(te=e.column)==null?void 0:te.slots)!=null&&oe.title?e.column.slots.title():pn(e.column.title)?e.column.title():e.column.title},j=()=>{var ee,Q,X;let K;return O("span",{class:B.value,onClick:h.value?b:void 0},[(ee=e.column)!=null&&ee.ellipsis&&((Q=e.column)!=null&&Q.tooltip)?O(cpe,{class:`${r}-th-title`,tooltipProps:l.value},b6(K=F())?K:{default:()=>[K]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(X=e.column)==null?void 0:X.ellipsis}]},[F()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="ascend"}]},[O(upe,null,null)]),m.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="descend"}]},[O(Oz,null,null)])]),c.value&&L()])},z=V(()=>{var ee,Q;return{...ope(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(ee=e.column)==null?void 0:ee.cellStyle,...(Q=e.column)==null?void 0:Q.headerCellStyle}}),q=V(()=>{var ee,Q;return[`${r}-th`,{[`${r}-col-sorted`]:!!f.value,[`${r}-th-resizing`]:s.value},...ipe(r,e.column),(ee=e.column)==null?void 0:ee.cellClass,(Q=e.column)==null?void 0:Q.headerCellClass]}),G=ee=>{var Q,X,K;(Q=e.column)!=null&&Q.dataIndex&&((K=a.onThMouseDown)==null||K.call(a,(X=e.column)==null?void 0:X.dataIndex,ee))};return()=>{var ee,Q,X,K;const te=(ee=e.column.colSpan)!=null?ee:1,oe=(Q=e.column.rowSpan)!=null?Q:1;return O((K=(X=t.th)==null?void 0:X.call(t,{column:e.column})[0])!=null?K:"th",{class:q.value,style:z.value,colspan:te>1?te:void 0,rowspan:oe>1?oe:void 0},{default:()=>[j(),!c.value&&L(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:G},null)]})}}});function dje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var Kp=be({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=Ee("table"),r=V(()=>{var k;if(ar((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),o=V(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=V(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,C,E,x,_,A;return e.summary?pn((k=e.column)==null?void 0:k.summaryCellClass)?e.column.summaryCellClass((C=e.record)==null?void 0:C.raw):(E=e.column)==null?void 0:E.summaryCellClass:pn((x=e.column)==null?void 0:x.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(A=e.column)==null?void 0:A.bodyCellClass},l=V(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...ipe(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,E,x,_,A;return e.summary?pn((k=e.column)==null?void 0:k.summaryCellStyle)?e.column.summaryCellStyle((C=e.record)==null?void 0:C.raw):(E=e.column)==null?void 0:E.summaryCellStyle:pn((x=e.column)==null?void 0:x.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(A=e.column)==null?void 0:A.bodyCellStyle},f=V(()=>{var k;const C=ope(e.column,{dataColumns:e.dataColumns,operations:e.operations}),E=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...E}}),h=V(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=xn(Y1,{}),m=()=>{var k,C,E,x,_,A,R,M;if(t.default)return t.default();const D={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1};return t.cell?t.cell(D):(E=e.column.slots)!=null&&E.cell?e.column.slots.cell(D):e.column.render?e.column.render(D):e.column.slotName&&((x=p.slots)!=null&&x[e.column.slotName])?(A=(_=p.slots)[e.column.slotName])==null?void 0:A.call(_,D):String((M=rg((R=e.record)==null?void 0:R.raw,e.column.dataIndex))!=null?M:"")},g=pe(!1),b=k=>{var C,E;pn(p.loadMore)&&!((C=e.record)!=null&&C.isLeaf)&&!((E=e.record)!=null&&E.children)&&(g.value=!0,new Promise(x=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,x)}).then(x=>{var _;(_=p.addLazyLoadData)==null||_.call(p,x,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,C,E,x,_,A;let R;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:b},[g.value?O(Va,null,null):(E=e.renderExpandBtn)==null?void 0:E.call(e,e.record,!1)]),(x=e.column)!=null&&x.ellipsis&&((_=e.column)!=null&&_.tooltip)?O(cpe,{class:`${n}-td-content`,tooltipProps:r.value},dje(R=m())?R:{default:()=>[R]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(A=e.column)==null?void 0:A.ellipsis}]},[m()])])};return()=>{var k,C,E,x;return O((x=(E=t.td)==null?void 0:E.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1})[0])!=null?x:"td",{class:l.value,style:f.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),fje=be({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=Ee("table"),n=xn(Y1,{}),r=V(()=>{var l,c,f,h;let p=!1,m=!1;const b=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var C,E;return(E=(C=n.currentAllEnabledRowKeys)==null?void 0:C.includes(k))!=null?E:!0}))!=null?c:[]).length,S=(h=(f=n.currentAllEnabledRowKeys)==null?void 0:f.length)!=null?h:0;return b>0&&(b>=S?p=!0:m=!0),{checked:p,indeterminate:m}}),o=()=>e.selectAll?O(yd,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:pn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?pn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=V(()=>spe(e.operationColumn,e.operations)),s=V(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...rpe(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()])])}}),Cne=be({name:"OperationTd",components:{Checkbox:yd,Radio:_1,IconPlus:vf,IconMinus:kg},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=Ee("table"),o=xn(Y1,{}),a=V(()=>spe(e.operationColumn,e.operations)),s=V(()=>[`${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"},...rpe(r,e.operationColumn)]),l=V(()=>Dz(e.record)),c=V(()=>{var h;return KFe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),f=()=>{var h,p,m,g,b,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(yd,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var E;return(E=o.onSelectAllLeafs)==null?void 0:E.call(o,e.record,C)},onClick:C=>C.stopPropagation()},null):O(yd,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var E;return(E=o.onSelect)==null?void 0:E.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const k=e.record.key;return O(_1,{modelValue:(g=(m=e.selectedRowKeys)==null?void 0:m.includes(k))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var E;return(E=o.onSelect)==null?void 0:E.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=(b=n["drag-handle-icon"])==null?void 0:b.call(n))!=null?S:O(z3,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`},[f()])])}});const hje=e=>{const t=V(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Wt({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:b}=h.target;b&&b.tagName==="TR"&&h.dataTransfer.setDragImage(b,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()}}},pje=(e,t)=>{const n=pe(""),r=Wt({}),o=(l,c)=>{c.preventDefault(),n.value=l,ki(window,"mousemove",s),ki(window,"mouseup",a),ki(window,"contextmenu",a)},a=()=>{n.value="",Gi(window,"mousemove",s),Gi(window,"mouseup",a),Gi(window,"contextmenu",a)},s=l=>{const c=e.value[n.value];if(c){const{clientX:f}=l,{x:h}=c.getBoundingClientRect();let p=Math.ceil(f-h);p<40&&(p=40),r[n.value]=p,t("columnResize",n.value,p)}};return{resizingColumn:n,columnWidth:r,handleThMouseDown:o,handleThMouseUp:a}},vje=({columns:e,onFilterChange:t})=>{const n=pe(Ene(e.value));Dt(e,s=>{const l=Ene(s);G1(l,n.value)||(n.value=l)});const r=V(()=>{var s,l;const c={};for(const f of e.value)if(f.dataIndex){const h=(l=(s=f.filterable)==null?void 0:s.filteredValue)!=null?l:n.value[f.dataIndex];h&&(c[f.dataIndex]=h)}return c});return{_filters:n,computedFilters:r,resetFilters:s=>{var l;const c=s?[].concat(s):[],f={};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:[];f[h.dataIndex]=p,t(h.dataIndex,p)}n.value=f},clearFilters:s=>{const l=s?[].concat(s):[],c={};for(const f of e.value)if(f.dataIndex&&f.filterable&&(l.length===0||l.includes(f.dataIndex))){const h=[];c[f.dataIndex]=h,t(f.dataIndex,h)}n.value=c}}},Ene=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},mje=({columns:e,onSorterChange:t})=>{const n=pe(xne(e.value));Dt(e,s=>{const l=xne(s);G1(l,n.value)||(n.value=l)});const r=V(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=ts(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,"")}}},xne=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}},Tne=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((f,h)=>{var p;f.hasSubtree&&((p=f.children)!=null&&p.length)&&r(f.children||[],c),n.value.forEach((m,g)=>{var b,S;const{rowspan:k=1,colspan:C=1}=(S=(b=e.value)==null?void 0:b.call(e,{record:f.raw,column:m,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||C>1)&&(c[`${h}-${g}-${f.key}`]=[k,C],Array.from({length:k}).forEach((E,x)=>{var _;if(h+x{g+M{const l={};return o.value={},e.value&&r(t.value,l),l}),s=V(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function gje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}const Ane={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var _6=be({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=xn(ja,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:f,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,spanMethod:b,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:E}=Jt(e),x=Ee("table"),_=xn(ja,void 0),A=V(()=>ar(e.bordered)?{...Ane,...e.bordered}:{...Ane,wrapper:e.bordered}),{children:R,components:M}=Rk("TableColumn"),D=V(()=>{var Et,Kt;return(Kt=(Et=a.value)==null?void 0:Et.checkStrictly)!=null?Kt:!0}),{displayScrollbar:N,scrollbarProps:L}=I3(C),B=V(()=>{var Et,Kt,tn,on;const bn=!!((Et=e.scroll)!=null&&Et.x||(Kt=e.scroll)!=null&&Kt.minWidth),zn=!!((tn=e.scroll)!=null&&tn.y||(on=e.scroll)!=null&&on.maxHeight);return{x:bn,y:zn}}),F=pe(),j=pe({}),{componentRef:z,elementRef:q}=Iy("containerRef"),{componentRef:G,elementRef:ee}=Iy("containerRef"),{elementRef:Q}=Iy("viewportRef"),{componentRef:X,elementRef:K}=Iy("containerRef"),te=V(()=>oe.value?yn.value?Q.value:ee.value:q.value),oe=V(()=>B.value.y||e.stickyHeader||yn.value||B.value.x&&he.value.length===0),ue=Wt(new Map),ae=pe();Dt([M,ue],([Et,Kt])=>{if(Et.length>0){const tn=[];Et.forEach(on=>{const bn=Kt.get(on);bn&&tn.push(bn)}),ae.value=tn}else ae.value=void 0});const xe=new Map,$e=pe([]),ge=pe([]),{resizingColumn:Oe,columnWidth:Fe,handleThMouseDown:Xe}=pje(j,t);Dt([r,ae,Fe],([Et,Kt])=>{var tn;const on=UFe((tn=Kt??Et)!=null?tn:[],xe,Fe);$e.value=on.dataColumns,ge.value=on.groupColumns},{immediate:!0,deep:!0});const Je=V(()=>["tl","top","tr"].includes(e.pagePosition)),Ke=pe(!1),_e=pe(!1),ye=pe(!1);Cs(()=>{var Et,Kt,tn;let on=!1,bn=!1,zn=!1;((Et=e.rowSelection)!=null&&Et.fixed||(Kt=e.expandable)!=null&&Kt.fixed||(tn=e.draggable)!=null&&tn.fixed)&&(on=!0);for(const mr of $e.value)mr.fixed==="left"?(on=!0,zn=!0):mr.fixed==="right"&&(bn=!0);on!==Ke.value&&(Ke.value=on),bn!==_e.value&&(_e.value=bn),zn!==ye.value&&(ye.value=zn)});const Me=V(()=>{for(const Et of $e.value)if(Et.ellipsis)return!0;return!1}),We=Et=>{const Kt={type:Et,page:Gl.value,pageSize:ce.value,sorter:Gt.value,filters:ct.value,dragTarget:Et==="drag"?zs.data:void 0};t("change",ke.value,Kt,Ki.value)},qe=(Et,Kt)=>{gt.value={...ct.value,[Et]:Kt},t("filterChange",Et,Kt),We("filter")},st=(Et,Kt)=>{qt.value=Kt?{field:Et,direction:Kt}:void 0,t("sorterChange",Et,Kt),We("sorter")},{_filters:gt,computedFilters:ct,resetFilters:Tt,clearFilters:xt}=vje({columns:$e,onFilterChange:qe}),{_sorter:qt,computedSorter:Gt,resetSorters:Qt,clearSorters:Pt}=mje({columns:$e,onSorterChange:st}),at=new Set,bt=V(()=>{const Et=[];at.clear();const Kt=tn=>{if(qn(tn)&&tn.length>0)for(const on of tn)Et.push(on[o.value]),on.disabled&&at.add(on[o.value]),on.children&&Kt(on.children)};return Kt(e.data),Et}),Ue=V(()=>{const Et=[],Kt=tn=>{for(const on of tn)Et.push(on.key),on.children&&Kt(on.children)};return Kt(he.value),Et}),Be=V(()=>{const Et=[],Kt=tn=>{for(const on of tn)on.disabled||Et.push(on.key),on.children&&Kt(on.children)};return Kt(he.value),Et}),{selectedRowKeys:lt,currentSelectedRowKeys:kt,handleSelect:ut,handleSelectAllLeafs:et,handleSelectAll:Le,select:yt,selectAll:Lt,clearSelected:Ht}=YFe({selectedKeys:f,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Ue,currentAllEnabledRowKeys:Be,emit:t}),{expandedRowKeys:It,handleExpand:Yt,expand:En,expandAll:er}=XFe({expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,expandable:s,allRowKeys:bt,emit:t}),ji=Wt({}),Hl=(Et,Kt)=>{Et&&(ji[Kt.key]=Et)},qr=Et=>{var Kt,tn;for(const on of Object.keys(ct.value)){const bn=ct.value[on],zn=xe.get(on);if(zn&&((Kt=zn.filterable)!=null&&Kt.filter)&&bn.length>0){const mr=(tn=zn.filterable)==null?void 0:tn.filter(bn,Et.raw);if(!mr)return mr}}return!0},{dragType:io,dragState:zs,handleDragStart:wn,handleDragEnter:fr,handleDragover:wi,handleDragEnd:Hs,handleDrop:hs}=hje(S),Wl=V(()=>{var Et;const Kt=tn=>{const on=[];for(const bn of tn){const zn={raw:bn,key:bn[e.rowKey],disabled:bn.disabled,expand:bn.expand,isLeaf:bn.isLeaf};bn.children?(zn.isLeaf=!1,zn.children=Kt(bn.children)):e.loadMore&&!bn.isLeaf?(zn.isLeaf=!1,ji[zn.key]&&(zn.children=Kt(ji[zn.key]))):zn.isLeaf=!0,zn.hasSubtree=!!(zn.children?!e.hideExpandButtonOnEmpty||zn.children.length>0:e.loadMore&&!zn.isLeaf),on.push(zn)}return on};return Kt((Et=e.data)!=null?Et:[])}),Gc=V(()=>{const Et=Kt=>Kt.filter(tn=>qr(tn)?(tn.children&&(tn.children=Et(tn.children)),!0):!1);return Object.keys(ct.value).length>0?Et(Wl.value):Wl.value}),Ki=V(()=>{var Et,Kt,tn;const on=ape(Gc.value);if(on.length>0){if((Et=Gt.value)!=null&&Et.field){const mr=xe.get(Gt.value.field);if(mr&&((Kt=mr.sortable)==null?void 0:Kt.sorter)!==!0){const{field:Qr,direction:Vi}=Gt.value;on.sort((ms,Iu)=>{var cc;const Ar=rg(ms.raw,Qr),cr=rg(Iu.raw,Qr);if((cc=mr.sortable)!=null&&cc.sorter&&pn(mr.sortable.sorter))return mr.sortable.sorter(ms.raw,Iu.raw,{dataIndex:Qr,direction:Vi});const oo=Ar>cr?1:-1;return Vi==="descend"?-oo:oo})}}const{sourcePath:bn,targetPath:zn}=zs;if(zs.dragging&&zn.length&&zn.toString()!==bn.toString()&&bn.length===zn.length&&bn.slice(0,-1).toString()===zn.slice(0,-1).toString()){let mr=on;for(let Qr=0;Qr=bn.length-1){const Iu=mr[Vi],cc=zn[Qr];cc>Vi?(mr.splice(cc+1,0,Iu),mr.splice(Vi,1)):(mr.splice(cc,0,Iu),mr.splice(Vi+1,1))}else mr=(tn=mr[Vi].children)!=null?tn:[]}}}return on}),{page:Gl,pageSize:ce,handlePageChange:ie,handlePageSizeChange:ne}=ZFe(e,t),Z=V(()=>{var Et,Kt;return(Kt=(Et=a.value)==null?void 0:Et.onlyCurrent)!=null?Kt:!1});Dt(Gl,(Et,Kt)=>{Et!==Kt&&Z.value&&Ht()});const he=V(()=>e.pagination&&Ki.value.length>ce.value?Ki.value.slice((Gl.value-1)*ce.value,Gl.value*ce.value):Ki.value),ke=V(()=>lpe(he.value)),Se=()=>$e.value.reduce((Et,Kt,tn)=>{if(Kt.dataIndex)if(tn===0)VA(Et,Kt.dataIndex,e.summaryText,{addPath:!0});else{let on=0,bn=!1;he.value.forEach(zn=>{if(Kt.dataIndex){const mr=rg(zn.raw,Kt.dataIndex);Ge(mr)?on+=mr:!mn(mr)&&!yl(mr)&&(bn=!0)}}),VA(Et,Kt.dataIndex,bn?"":on,{addPath:!0})}return Et},{}),Ie=Et=>Et&&Et.length>0?Et.map(Kt=>({raw:Kt,key:Kt[e.rowKey]})):[],it=V(()=>e.summary?pn(e.summary)?Ie(e.summary({columns:$e.value,data:ke.value})):Ie([Se()]):[]),tt=pe(0),pt=pe(!0),we=pe(!0),Qe=()=>{let Et=!0,Kt=!0;const tn=te.value;tn&&(Et=tt.value===0,Kt=Math.ceil(tt.value+tn.offsetWidth)>=tn.scrollWidth),Et!==pt.value&&(pt.value=Et),Kt!==we.value&&(we.value=Kt)},rt=()=>pt.value&&we.value?`${x}-scroll-position-both`:pt.value?`${x}-scroll-position-left`:we.value?`${x}-scroll-position-right`:`${x}-scroll-position-middle`,Rt=()=>{const Et=[];return Ke.value&&Et.push(`${x}-has-fixed-col-left`),_e.value&&Et.push(`${x}-has-fixed-col-right`),Et},Xt=Et=>{Et.target.scrollLeft!==tt.value&&(tt.value=Et.target.scrollLeft),Qe()},Ut=Et=>{Xt(Et);const{scrollLeft:Kt}=Et.target;K.value&&(K.value.scrollLeft=Kt),F.value&&(F.value.scrollLeft=Kt)},sn=(Et,Kt)=>{t("rowClick",Et.raw,Kt)},un=(Et,Kt)=>{t("rowDblclick",Et.raw,Kt)},rn=(Et,Kt)=>{t("rowContextmenu",Et.raw,Kt)},tr=(Et,Kt,tn)=>{t("cellClick",Et.raw,Kt,tn)},Kn=F2((Et,Kt,tn)=>{t("cellMouseEnter",Et.raw,Kt,tn)},30),hn=F2((Et,Kt,tn)=>{t("cellMouseLeave",Et.raw,Kt,tn)},30),Un=(Et,Kt,tn)=>{t("cellDblclick",Et.raw,Kt,tn)},nr=(Et,Kt,tn)=>{t("cellContextmenu",Et.raw,Kt,tn)},Yn=(Et,Kt)=>{t("headerClick",Et,Kt)},Cn=V(()=>{var Et,Kt;const tn=[],on=Ke.value||_e.value;let bn,zn,mr;((Et=e.draggable)==null?void 0:Et.type)==="handle"&&(bn={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||on},tn.push(bn)),e.expandable&&(zn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||on},tn.push(zn)),e.rowSelection&&(mr={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||on},tn.push(mr)),!ye.value&&tn.length>0&&tn[tn.length-1].fixed&&(tn[tn.length-1].isLastLeftFixed=!0);const Qr=(Kt=e.components)==null?void 0:Kt.operations;return pn(Qr)?Qr({dragHandle:bn,expand:zn,selection:mr}):tn}),Xn=V(()=>{var Et,Kt,tn,on;if(B.value.x){const bn={width:Ge((Et=e.scroll)==null?void 0:Et.x)?`${(Kt=e.scroll)==null?void 0:Kt.x}px`:(tn=e.scroll)==null?void 0:tn.x};return(on=e.scroll)!=null&&on.minWidth&&(bn.minWidth=Ge(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),bn}}),or=V(()=>{var Et,Kt,tn,on;if(B.value.x&&he.value.length>0){const bn={width:Ge((Et=e.scroll)==null?void 0:Et.x)?`${(Kt=e.scroll)==null?void 0:Kt.x}px`:(tn=e.scroll)==null?void 0:tn.x};return(on=e.scroll)!=null&&on.minWidth&&(bn.minWidth=Ge(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),bn}});Wr(Y1,Wt({loadMore:l,addLazyLoadData:Hl,slots:n,sorter:Gt,filters:ct,filterIconAlignLeft:c,resizingColumn:Oe,checkStrictly:D,currentAllEnabledRowKeys:Be,currentSelectedRowKeys:kt,addColumn:(Et,Kt)=>{ue.set(Et,Kt)},removeColumn:Et=>{ue.delete(Et)},onSelectAll:Le,onSelect:ut,onSelectAllLeafs:et,onSorterChange:st,onFilterChange:qe,onThMouseDown:Xe}));const ai=V(()=>[x,`${x}-size-${e.size}`,{[`${x}-border`]:A.value.wrapper,[`${x}-border-cell`]:A.value.cell,[`${x}-border-header-cell`]:!A.value.cell&&A.value.headerCell,[`${x}-border-body-cell`]:!A.value.cell&&A.value.bodyCell,[`${x}-stripe`]:e.stripe,[`${x}-hover`]:e.hoverable,[`${x}-dragging`]:zs.dragging,[`${x}-type-selection`]:!!e.rowSelection,[`${x}-empty`]:e.data&&he.value.length===0,[`${x}-layout-fixed`]:e.tableLayoutFixed||B.value.x||oe.value||Me.value}]),Zr=V(()=>[`${x}-pagination`,{[`${x}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${x}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${x}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${x}-pagination-top`]:Je.value}]),ga=V(()=>{const Et=Rt();return B.value.x&&Et.push(rt()),oe.value&&Et.push(`${x}-scroll-y`),Et}),yn=V(()=>!!e.virtualListProps),Nr=pe({}),ps=()=>{const Et={};for(const Kt of Object.keys(j.value))Et[Kt]=j.value[Kt].offsetWidth;Nr.value=Et},Io=pe(!1),Bo=()=>ee.value?ee.value.offsetWidth>ee.value.clientWidth:!1,Jr=()=>{const Et=Bo();Io.value!==Et&&(Io.value=Et),Qe(),ps()};ln(()=>{Io.value=Bo(),ps()});const Kl=V(()=>ar(e.loading)?e.loading:{loading:e.loading}),bl=()=>O(vh,{empty:!0},{default:()=>[O(Kp,{colSpan:$e.value.length+Cn.value.length},{default:()=>{var Et,Kt,tn,on,bn;return[(bn=(on=(Et=n.empty)==null?void 0:Et.call(n))!=null?on:(tn=_==null?void 0:(Kt=_.slots).empty)==null?void 0:tn.call(Kt,{component:"table"}))!=null?bn:O(Vh,null,null)]}})]}),Lo=Et=>{var Kt;if(Et.expand)return pn(Et.expand)?Et.expand():Et.expand;if(n["expand-row"])return n["expand-row"]({record:Et.raw});if((Kt=e.expandable)!=null&&Kt.expandedRowRender)return e.expandable.expandedRowRender(Et.raw)},oc=V(()=>[].concat(Cn.value,$e.value)),Gg=V(()=>e.spanAll?oc.value:$e.value),{tableSpan:Tf,removedCells:ql}=Tne({spanMethod:b,data:he,columns:Gg}),{tableSpan:sc,removedCells:Kh}=Tne({spanMethod:k,data:it,columns:oc}),Ts=Et=>{if(!(!yn.value||!Et||!Nr.value[Et]))return{width:`${Nr.value[Et]}px`}},Af=(Et,Kt)=>O(vh,{key:`table-summary-${Kt}`,class:[`${x}-tr-summary`,pn(e.rowClass)?e.rowClass(Et.raw,Kt):e.rowClass],onClick:tn=>sn(Et,tn)},{default:()=>[Cn.value.map((tn,on)=>{var bn;const zn=`${Kt}-${on}-${Et.key}`,[mr,Qr]=(bn=sc.value[zn])!=null?bn:[1,1];if(Kh.value.includes(zn))return null;const Vi=Ts(tn.name);return O(Cne,{style:Vi,operationColumn:tn,operations:Cn.value,record:Et,rowSpan:mr,colSpan:Qr,summary:!0},null)}),$e.value.map((tn,on)=>{var bn;const zn=`${Kt}-${Cn.value.length+on}-${Et.key}`,[mr,Qr]=(bn=sc.value[zn])!=null?bn:[1,1];if(Kh.value.includes(zn))return null;const Vi=Ts(tn.dataIndex);return O(Kp,{key:`td-${zn}`,style:Vi,rowIndex:Kt,record:Et,column:tn,operations:Cn.value,dataColumns:$e.value,rowSpan:mr,colSpan:Qr,summary:!0,onClick:ms=>tr(Et,tn,ms),onDblclick:ms=>Un(Et,tn,ms),onMouseenter:ms=>Kn(Et,tn,ms),onMouseleave:ms=>hn(Et,tn,ms),onContextmenu:ms=>nr(Et,tn,ms)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),Kc=()=>it.value&&it.value.length>0?O("tfoot",null,[it.value.map((Et,Kt)=>Af(Et,Kt))]):null,Ld=(Et,Kt=!0)=>{var tn,on,bn,zn,mr;const Qr=Et.key,Vi=It.value.includes(Qr);return O("button",{type:"button",class:`${x}-expand-btn`,onClick:ms=>{Yt(Qr,Et.raw),Kt&&ms.stopPropagation()}},[(mr=(zn=(tn=n["expand-icon"])==null?void 0:tn.call(n,{expanded:Vi,record:Et.raw}))!=null?zn:(bn=(on=e.expandable)==null?void 0:on.icon)==null?void 0:bn.call(on,Vi,Et.raw))!=null?mr:O(Vi?kg:vf,null,null)])},Tu=(Et,{indentSize:Kt,indexPath:tn,allowDrag:on,expandContent:bn})=>{var zn,mr;if(Et.hasSubtree)return((zn=Et.children)==null?void 0:zn.length)===0&&E.value?bl():(mr=Et.children)==null?void 0:mr.map((Qr,Vi)=>Wa(Qr,Vi,{indentSize:Kt,indexPath:tn,allowDrag:on}));if(bn){const Qr=te.value;return O(vh,{key:`${Et.key}-expand`,expand:!0},{default:()=>[O(Kp,{isFixedExpand:Ke.value||_e.value,containerWidth:Qr?.clientWidth,colSpan:$e.value.length+Cn.value.length},gje(bn)?bn:{default:()=>[bn]})]})}return null},Wa=(Et,Kt,{indentSize:tn=0,indexPath:on,allowDrag:bn=!0}={})=>{var zn;const mr=Et.key,Qr=(on??[]).concat(Kt),Vi=Lo(Et),ms=It.value.includes(mr),Iu=zs.sourceKey===Et.key,cc=io.value?{draggable:bn,onDragstart:cr=>{bn&&wn(cr,Et.key,Qr,Et.raw)},onDragend:cr=>{bn&&Hs(cr)}}:{},Ar=io.value?{onDragenter:cr=>{bn&&fr(cr,Qr)},onDragover:cr=>{bn&&wi(cr)},onDrop:cr=>{bn&&(We("drag"),hs(cr))}}:{};return O(Ft,null,[O(vh,Bt({key:mr,class:[{[`${x}-tr-draggable`]:io.value==="row",[`${x}-tr-drag`]:Iu},pn(e.rowClass)?e.rowClass(Et.raw,Kt):e.rowClass],rowIndex:Kt,record:Et,checked:e.rowSelection&&((zn=lt.value)==null?void 0:zn.includes(mr)),onClick:cr=>sn(Et,cr),onDblclick:cr=>un(Et,cr),onContextmenu:cr=>rn(Et,cr)},io.value==="row"?cc:{},Ar),{default:()=>[Cn.value.map((cr,oo)=>{var ya;const Yr=`${Kt}-${oo}-${Et.key}`,[ba,An]=e.spanAll?(ya=Tf.value[Yr])!=null?ya:[1,1]:[1,1];if(e.spanAll&&ql.value.includes(Yr))return null;const Lu=Ts(cr.name);return O(Cne,Bt({key:`operation-td-${oo}`,style:Lu,operationColumn:cr,operations:Cn.value,record:Et,hasExpand:!!Vi,selectedRowKeys:kt.value,rowSpan:ba,colSpan:An,renderExpandBtn:Ld},io.value==="handle"?cc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),$e.value.map((cr,oo)=>{var ya;const Yr=`${Kt}-${e.spanAll?Cn.value.length+oo:oo}-${Et.key}`,[ba,An]=(ya=Tf.value[Yr])!=null?ya:[1,1];if(ql.value.includes(Yr))return null;const Lu=oo===0?{showExpandBtn:Et.hasSubtree,indentSize:Et.hasSubtree?tn-20:tn}:{},sw=Ts(cr.dataIndex);return O(Kp,Bt({key:`td-${oo}`,style:sw,rowIndex:Kt,record:Et,column:cr,operations:Cn.value,dataColumns:$e.value,rowSpan:ba,renderExpandBtn:Ld,colSpan:An},Lu,{onClick:As=>tr(Et,cr,As),onDblclick:As=>Un(Et,cr,As),onMouseenter:As=>Kn(Et,cr,As),onMouseleave:As=>hn(Et,cr,As),onContextmenu:As=>nr(Et,cr,As)}),{td:n.td})})],tr:n.tr}),ms&&Tu(Et,{indentSize:tn+e.indentSize,indexPath:Qr,allowDrag:bn&&!Iu,expandContent:Vi})])},vs=()=>{const Et=he.value.some(Kt=>!!Kt.hasSubtree);return O(KS,null,{default:()=>[he.value.length>0?he.value.map((Kt,tn)=>Wa(Kt,tn,{indentSize:Et?20:0})):bl()],tbody:n.tbody})},qh=()=>O(GS,null,{default:()=>[ge.value.map((Et,Kt)=>O(vh,{key:`header-row-${Kt}`},{default:()=>[Kt===0&&Cn.value.map((tn,on)=>{var bn;return O(fje,{key:`operation-th-${on}`,ref:zn=>{zn?.$el&&tn.name&&(j.value[tn.name]=zn.$el)},operationColumn:tn,operations:Cn.value,selectAll:!!(tn.name==="selection-checkbox"&&((bn=e.rowSelection)!=null&&bn.showCheckedAll)),rowSpan:ge.value.length},null)}),Et.map((tn,on)=>{const bn=e.columnResizable&&!!tn.dataIndex&&on{zn?.$el&&tn.dataIndex&&(j.value[tn.dataIndex]=zn.$el)},column:tn,operations:Cn.value,dataColumns:$e.value,resizable:bn,onClick:zn=>Yn(tn,zn)},{th:n.th})})]}))],thead:n.thead}),ac=()=>{var Et,Kt;if(oe.value){const tn=Ge(e.stickyHeader)?`${e.stickyHeader}px`:void 0,on=[(Et=L.value)==null?void 0:Et.outerClass];e.stickyHeader&&on.push(`${x}-header-sticky`);const bn={top:tn,...(Kt=L.value)==null?void 0:Kt.outerStyle},zn=N.value?kd:"div";return O(Ft,null,[e.showHeader&&O(zn,Bt({ref:X,class:[`${x}-header`,{[`${x}-header-sticky`]:e.stickyHeader&&!N.value}],style:{overflowY:Io.value?"scroll":void 0,top:N.value?void 0:tn}},C.value?{hide:he.value.length!==0,disableVertical:!0,...L.value,outerClass:on,outerStyle:bn}:void 0),{default:()=>[O("table",{class:`${x}-element`,style:Xn.value,cellpadding:0,cellspacing:0},[O(tx,{dataColumns:$e.value,operations:Cn.value,columnWidth:Fe},null),qh()])]}),O(_d,{onResize:Jr},{default:()=>{var mr,Qr;return[yn.value&&he.value.length?O(K1,Bt({ref:Vi=>{Vi?.$el&&(ee.value=Vi.$el)},class:`${x}-body`,data:he.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${x}-element`,style:or.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Ut}),{item:({item:Vi,index:ms})=>Wa(Vi,ms)}):O(zn,Bt({ref:G,class:`${x}-body`,style:{maxHeight:Ge((mr=e.scroll)==null?void 0:mr.y)?`${(Qr=e.scroll)==null?void 0:Qr.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:Ut}),{default:()=>[O("table",{class:`${x}-element`,style:or.value,cellpadding:0,cellspacing:0},[he.value.length!==0&&O(tx,{dataColumns:$e.value,operations:Cn.value,columnWidth:Fe},null),vs()])]})]}}),it.value&&it.value.length>0&&O("div",{ref:F,class:`${x}-tfoot`,style:{overflowY:Io.value?"scroll":"hidden"}},[O("table",{class:`${x}-element`,style:or.value,cellpadding:0,cellspacing:0},[O(tx,{dataColumns:$e.value,operations:Cn.value,columnWidth:Fe},null),Kc()])])])}return O(_d,{onResize:()=>Qe()},{default:()=>[O("table",{class:`${x}-element`,cellpadding:0,cellspacing:0,style:or.value},[O(tx,{dataColumns:$e.value,operations:Cn.value,columnWidth:Fe},null),e.showHeader&&qh(),vs(),it.value&&it.value.length>0&&Kc()])]})},lc=Et=>{var Kt;const tn=(Kt=e.scroll)!=null&&Kt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,on=N.value?kd:"div";return O(Ft,null,[O("div",{class:[`${x}-container`,ga.value]},[O(on,Bt({ref:z,class:[`${x}-content`,{[`${x}-content-scroll-x`]:!oe.value}],style:tn},C.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Xt}),{default:()=>[Et?O("table",{class:`${x}-element`,cellpadding:0,cellspacing:0},[Et()]):ac()]})]),n.footer&&O("div",{class:`${x}-footer`},[n.footer()])])},Au=()=>{var Et,Kt;const tn=ar(e.pagination)?pa(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:Zr.value},[(Et=n["pagination-left"])==null?void 0:Et.call(n),O(Tz,Bt({total:Gc.value.length,current:Gl.value,pageSize:ce.value,onChange:on=>{ie(on),We("pagination")},onPageSizeChange:on=>{ne(on),We("pagination")}},tn),null),(Kt=n["pagination-right"])==null?void 0:Kt.call(n)])},uc=V(()=>{var Et,Kt;if(ts((Et=e.scroll)==null?void 0:Et.y))return{height:(Kt=e.scroll)==null?void 0:Kt.y}});return{render:()=>{var Et;return n.default?O("div",{class:ai.value},[lc(n.default)]):(R.value=(Et=n.columns)==null?void 0:Et.call(n),O("div",{class:ai.value,style:uc.value},[R.value,O(Sd,Kl.value,{default:()=>[e.pagination!==!1&&(he.value.length>0||Ki.value.length>0)&&Je.value&&Au(),lc(),e.pagination!==!1&&(he.value.length>0||Ki.value.length>0)&&!Je.value&&Au()]})]))},selfExpand:En,selfExpandAll:er,selfSelect:yt,selfSelectAll:Lt,selfResetFilters:Tt,selfClearFilters:xt,selfResetSorters:Qt,selfClearSorters:Pt}},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 Jc=(e,t)=>{const n=ku(e,t),r=pe(n.value);return Dt(n,(o,a)=>{G1(o,a)||(r.value=o)}),r};var x4=be({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:f,minWidth:h}=Jt(e),p=Jc(e,"sortable"),m=Jc(e,"filterable"),g=Jc(e,"cellClass"),b=Jc(e,"headerCellClass"),S=Jc(e,"bodyCellClass"),k=Jc(e,"summaryCellClass"),C=Jc(e,"cellStyle"),E=Jc(e,"headerCellStyle"),x=Jc(e,"bodyCellStyle"),_=Jc(e,"summaryCellStyle"),A=Jc(e,"tooltip"),R=uo(),M=xn(Y1,{}),D=xn(kne,void 0),{children:N,components:L}=Rk("TableColumn"),B=Wt(new Map);Wr(kne,{addChild:(G,ee)=>{B.set(G,ee)},removeChild:G=>{B.delete(G)}});const z=pe();Dt([L,B],([G,ee])=>{if(G.length>0){const Q=[];G.forEach(X=>{const K=ee.get(X);K&&Q.push(K)}),z.value=Q}else z.value=void 0});const q=Wt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:m,cellClass:g,headerCellClass:b,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:E,bodyCellStyle:x,summaryCellStyle:_,index:f,tooltip:A,children:z,slots:t});return R&&(D?D.addChild(R.uid,q):(n=M.addColumn)==null||n.call(M,R.uid,q)),No(()=>{var G;R&&(D?D.removeChild(R.uid):(G=M.removeColumn)==null||G.call(M,R.uid))}),()=>{var G;return N.value=(G=t.default)==null?void 0:G.call(t),N.value}}});const yje=Object.assign(_6,{Thead:GS,Tbody:KS,Tr:vh,Th:qS,Td:Kp,Column:x4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+_6.name,_6),e.component(n+GS.name,GS),e.component(n+KS.name,KS),e.component(n+vh.name,vh),e.component(n+qS.name,qS),e.component(n+Kp.name,Kp),e.component(n+x4.name,x4)}}),bje=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},_je=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},Nz=Symbol("ArcoTabs"),Sje=be({name:"TabsTab",components:{IconHover:_o,IconClose:Us},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Ee("tabs-tab"),r=xn(Nz,{}),o=f=>{e.tab.disabled||t("click",e.tab.key,f)},a=f=>{f.key==="Enter"&&o(f)},s=V(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=f=>{e.tab.disabled||t("delete",e.tab.key,f)},c=V(()=>[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 kje(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover");return H(),J("div",Bt({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:se(`${e.prefixCls}-title`)},[ft(e.$slots,"default")],2),e.editable&&e.tab.closable?(H(),Ye(l,{key:0,class:se(`${e.prefixCls}-close-btn`),onClick:$o(e.handleDelete,["stop"])},{default:de(()=>[O(s)]),_:1},8,["class","onClick"])):Ae("v-if",!0)],16)}var wje=De(Sje,[["render",kje]]);function Cje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var Ine=be({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=Ee("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?O(Mi,null,null):O(zl,null,null):e.type==="next"?O(Av,null,null):O(Pk,null,null),a=V(()=>[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(_o,{disabled:e.disabled},Cje(s=o())?s:{default:()=>[s]})])}}});const Eje=be({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=Jt(e),n=Ee("tabs-nav-ink"),r=pe(0),o=pe(0),a=V(()=>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,f=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||f!==o.value)&&(r.value=c,o.value=f)}};ln(()=>{kn(()=>s())}),Ha(()=>{s()});const l=V(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function xje(e,t,n,r,o,a){return H(),J("div",{class:se(e.cls),style:je(e.style)},null,6)}var Tje=De(Eje,[["render",xje]]),Aje=be({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}=Jt(e),c=Ee("tabs-nav"),f=pe(),h=pe(),p=pe({}),m=V(()=>{if(!mn(o.value))return p.value[o.value]}),g=pe(),b=V(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=pe(!1),k=pe(0),C=pe(0),E=pe(0),x=()=>{var X,K,te;return(te=s.value==="vertical"?(X=f.value)==null?void 0:X.offsetHeight:(K=f.value)==null?void 0:K.offsetWidth)!=null?te:0},_=()=>!h.value||!f.value?0:s.value==="vertical"?h.value.offsetHeight-f.value.offsetHeight:h.value.offsetWidth-f.value.offsetWidth,A=()=>{S.value=R(),S.value?(k.value=x(),C.value=_(),E.value>C.value&&(E.value=C.value)):E.value=0},R=()=>f.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>f.value.offsetHeight:h.value.offsetWidth>f.value.offsetWidth:!1,M=X=>{(!f.value||!h.value||X<0)&&(X=0),E.value=Math.min(X,C.value)},D=()=>{if(!m.value||!f.value||!S.value)return;_je(f.value,s.value);const X=s.value==="horizontal",K=X?"offsetLeft":"offsetTop",te=X?"offsetWidth":"offsetHeight",oe=m.value[K],ue=m.value[te],ae=f.value[te],xe=window.getComputedStyle(m.value),$e=X?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ge=parseFloat(xe[$e])||0;l.value==="auto"?oeE.value+ae&&M(oe+ue-ae+ge):l.value==="center"?M(oe+(ue-ae+ge)/2):l.value==="start"?M(oe-ge):l.value==="end"?M(oe+ue-ae+ge):Ge(l.value)&&M(oe-l.value)},N=X=>{if(!S.value)return;X.preventDefault();const{deltaX:K,deltaY:te}=X;Math.abs(K)>Math.abs(te)?M(E.value+K):M(E.value+te)},L=(X,K)=>{t("click",X,K)},B=(X,K)=>{t("delete",X,K),kn(()=>{delete p.value[X]})},F=X=>{const K=X==="previous"?E.value-k.value:E.value+k.value;M(K)},j=()=>{A(),g.value&&g.value.$forceUpdate()};Dt(r,()=>{kn(()=>{A()})}),Dt([a,l],()=>{setTimeout(()=>{D()},0)}),ln(()=>{A(),f.value&&ki(f.value,"wheel",N,{passive:!1})}),si(()=>{f.value&&Gi(f.value,"wheel",N)});const z=()=>!b.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:X=>t("add",X)},[O(_o,null,{default:()=>[O(vf,null,null)]})]),q=V(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),G=V(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),ee=V(()=>bje({direction:e.direction,type:e.type,offset:E.value})),Q=V(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var X;return O("div",{class:q.value},[S.value&&O(Ine,{type:"previous",direction:e.direction,disabled:E.value<=0,onClick:F},null),O(_d,{onResize:()=>A()},{default:()=>[O("div",{class:Q.value,ref:f},[O(_d,{onResize:j},{default:()=>[O("div",{ref:h,class:G.value,style:ee.value},[e.tabs.map((K,te)=>O(wje,{key:K.key,ref:oe=>{oe?.$el&&(p.value[K.key]=oe.$el)},active:K.key===o.value,tab:K,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var oe,ue,ae;return[(ae=(ue=(oe=K.slots).title)==null?void 0:ue.call(oe))!=null?ae:K.title]}})),e.type==="line"&&m.value&&O(Tje,{ref:g,activeTabRef:m.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&z()])]}),S.value&&O(Ine,{type:"next",direction:e.direction,disabled:E.value>=C.value,onClick:F},null),O("div",{class:`${c}-extra`},[S.value&&z(),(X=n.extra)==null?void 0:X.call(n)])])}}}),S6=be({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}=Jt(e),l=Ee("tabs"),{mergedSize:c}=ma(r),f=V(()=>e.direction==="vertical"?"left":e.position),h=V(()=>["left","right"].includes(f.value)?"vertical":"horizontal"),{children:p,components:m}=Rk("TabPane"),g=Wt(new Map),b=V(()=>{const B=[];return m.value.forEach(F=>{const j=g.get(F);j&&B.push(j)}),B}),S=V(()=>b.value.map(B=>B.key)),k=(B,F)=>{g.set(B,F)},C=B=>{g.delete(B)},E=pe(e.defaultActiveKey),x=V(()=>{var B;const F=(B=e.activeKey)!=null?B:E.value;return mn(F)?S.value[0]:F}),_=V(()=>{const B=S.value.indexOf(x.value);return B===-1?0:B});Wr(Nz,Wt({lazyLoad:o,destroyOnHide:a,activeKey:x,addItem:k,removeItem:C,trigger:s}));const A=B=>{B!==x.value&&(E.value=B,t("update:activeKey",B),t("change",B))},R=(B,F)=>{A(B),t("tabClick",B,F)},M=B=>{t("add",B),e.autoSwitch&&kn(()=>{const F=S.value[S.value.length-1];A(F)})},D=(B,F)=>{t("delete",B,F)},N=()=>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])]),L=V(()=>[l,`${l}-${h.value}`,`${l}-${f.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var B;return p.value=(B=n.default)==null?void 0:B.call(n),O("div",{class:L.value},[f.value==="bottom"&&N(),O(Aje,{tabs:b.value,activeKey:x.value,activeIndex:_.value,direction:h.value,position:f.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:R,onAdd:M,onDelete:D},{extra:n.extra}),f.value!=="bottom"&&N()])}}});const Ije=be({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}=Jt(e),s=uo(),l=Ee("tabs"),c=xn(Nz,{}),f=pe(),h=V(()=>s?.vnode.key),p=V(()=>h.value===c.activeKey),m=pe(c.lazyLoad?p.value:!0),g=Wt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),No(()=>{var b;s?.uid&&((b=c.removeItem)==null||b.call(c,s.uid))}),Dt(p,b=>{b?m.value||(m.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(m.value=!1)}),Ha(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:f,mounted:m}}});function Lje(e,t,n,r,o,a){return H(),J("div",{ref:"itemRef",class:se([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(H(),J("div",{key:0,class:se(`${e.prefixCls}-pane`)},[ft(e.$slots,"default")],2)):Ae("v-if",!0)],2)}var T4=De(Ije,[["render",Lje]]);const Pje=Object.assign(S6,{TabPane:T4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+S6.name,S6),e.component(n+T4.name,T4)}});function Rje(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=Jt(e);function a(){return o.value?[]:void 0}function s(k){if(!mn(k))return o.value?qn(k)?k:[k,void 0]:k}const l=V(()=>{const k=s(t.value);return rc(k,r.value)}),c=V(()=>{const k=s(n.value);return rc(k,r.value)}),[f,h]=Na(mn(l.value)?mn(c.value)?a():c.value:l.value);Dt(l,()=>{mn(l.value)&&h(a())});const p=V(()=>l.value||f.value),[m,g]=Na(p.value);Dt([p],()=>{g(p.value)});const[b,S]=Na();return Dt([m],()=>{S(void 0)}),{computedValue:p,panelValue:m,inputValue:b,setValue:h,setPanelValue:g,setInputValue:S}}var Mje=be({name:"TimePickerRangePanel",components:{Panel:FA},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}=Jt(e),o=pe(r.value);Dt(r,()=>{o.value=r.value});const a=V(()=>n?.value?n.value[o.value]:void 0);function s(c){const f=mn(n)||mn(n?.value)?[]:[...n.value];f[o.value]=c,t("select",f)}function l(){if(hS(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(FA,e,this.$slots)}});const Dje=be({name:"TimePicker",components:{Trigger:oa,DateInput:Kfe,DateRangeInput:fhe,Panel:FA,RangePanel:Mje,IconClockCircle:F3},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:f,placeholder:h,disableConfirm:p,disabledHours:m,disabledMinutes:g,disabledSeconds:b}=Jt(e),{mergedDisabled:S,eventHandlers:k}=So({disabled:f}),C=V(()=>n.value==="time-range"),E=Ee("timepicker"),x=pe(),{format:_,use12Hours:A}=_z(Wt({format:r,use12Hours:o})),{computedValue:R,panelValue:M,inputValue:D,setValue:N,setPanelValue:L,setInputValue:B}=Rje(Wt({modelValue:a,defaultValue:s,isRange:C,format:_})),[F,j]=ia(c.value,Wt({value:l})),z=ye=>{ye!==F.value&&(j(ye),t("popup-visible-change",ye),t("update:popupVisible",ye))},{t:q}=Ao(),[G,ee]=Na(0),Q=V(()=>{const ye=h?.value;return C.value?mn(ye)?q("datePicker.rangePlaceholder.time"):qn(ye)?ye:[ye,ye]:mn(ye)?q("datePicker.placeholder.time"):ye}),X=Qfe(Wt({disabledHours:m,disabledMinutes:g,disabledSeconds:b}));function K(ye){var Me,We;if(cz(ye,R.value)){const qe=ef(ye,_.value),st=vu(ye);t("update:modelValue",qe),t("change",qe,st),(We=(Me=k.value)==null?void 0:Me.onChange)==null||We.call(Me)}}function te(ye,Me){if(X(ye))return;let We=ye;if(qn(ye)){const qe=ks();We=ye.map(st=>(st&&(st=st.year(qe.year()),st=st.month(qe.month()),st=st.date(qe.date())),st)),hS(We)&&(We=B2(We)),We?.length===0&&(We=void 0)}K(We),N(We),Me!==F.value&&z(Me)}function oe(ye,Me){L(ye),Me!==F.value&&z(Me)}function ue(ye){x.value&&x.value.focus&&x.value.focus(ye)}function ae(ye){S.value||(z(ye),ye&&kn(()=>{ue(G.value)}))}function xe(ye){const Me=ef(ye,_.value),We=vu(ye);t("select",Me,We),p.value&&(!C.value||hS(ye))?te(ye,!0):(oe(ye,!0),B(void 0))}function $e(ye){te(ye,!1)}function ge(){te(M.value||R.value,!1)}function Oe(){if(hS(M.value))te(M.value,!1);else{const ye=(G.value+1)%2;ee(ye),ue(ye)}}function Fe(ye){z(!0);const Me=ye.target.value;if(B(Me),!BA(Me,_.value))return;const We=ks(Me,_.value);X(We)||(p.value?te(We,!0):oe(We,!0))}function Xe(ye){z(!0);const Me=ye.target.value,We=qn(D.value)?[...D.value]:qn(M.value)&&ef(M.value,_.value)||[];if(We[G.value]=Me,B(We),!BA(Me,_.value))return;const qe=ks(Me,_.value);if(X(qe))return;const st=qn(M.value)?[...M.value]:[];st[G.value]=qe,p.value&&hS(st)?te(st,!0):oe(st,!0)}function Je(ye){ye.stopPropagation(),L(void 0),te(void 0,C.value)}Dt(F,(ye,Me)=>{ye!==Me&&L(R.value),ye||B(void 0)});const Ke=V(()=>C.value?{focusedIndex:G.value,onFocusedIndexChange:ye=>{ee(ye)},onChange:Xe,onPressEnter:Oe}:{onChange:Fe,onPressEnter:ge}),_e=V(()=>C.value?{displayIndex:G.value,onDisplayIndexChange:ye=>{ee(ye),ue(ye)}}:{});return{refInput:x,isRange:C,prefixCls:E,panelVisible:F,focusedInputIndex:G,computedPlaceholder:Q,panelValue:M,inputValue:D,computedFormat:_,computedUse12Hours:A,inputProps:Ke,panelProps:_e,mergedDisabled:S,onPanelVisibleChange:ae,onInputClear:Je,onPanelSelect:xe,onPanelConfirm:$e,onPanelClick:()=>{ue(G.value)}}}});function Oje(e,t,n,r,o,a){const s=Pe("IconClockCircle"),l=Pe("Trigger");return H(),Ye(l,Bt({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},{...e.triggerProps},{onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[I("div",{class:se(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(H(),Ye($a(e.isRange?"RangePanel":"Panel"),Bt(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),yo({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[ft(e.$slots,"extra")]),key:"0"}:void 0]),1040,["value","visible","format","use12-hours","step","disabled-hours","disabled-minutes","disabled-seconds","hide-disabled-options","hide-footer","onSelect","onConfirm"]))],2)]),default:de(()=>[(H(),Ye($a(e.isRange?"DateRangeInput":"DateInput"),Bt({...e.$attrs,...e.inputProps},{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),yo({"suffix-icon":de(()=>[ft(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(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 k6=De(Dje,[["render",Oje]]);const $je=Object.assign(k6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+k6.name,k6)}}),dpe=Symbol("ArcoTimeline"),Nje=(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]},Bje=be({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=Ee("timeline-item"),n=uo(),r=xn(dpe,{}),o=V(()=>{var m,g,b;return(b=(g=r.items)==null?void 0:g.indexOf((m=n?.uid)!=null?m:-1))!=null?b:-1}),a=V(()=>{var m;return(m=r?.direction)!=null?m:"vertical"}),s=V(()=>{var m;return(m=r?.labelPosition)!=null?m:"same"}),l=V(()=>{const{items:m=[],reverse:g,labelPosition:b,mode:S="left"}=r,k=a.value,C=Nje(o.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${b}`]:b,[`${t}-last`]:o.value===(g===!0?0:m.length-1)}]}),c=V(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),f=V(()=>{const{direction:m}=r||{};return{[m==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=V(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=V(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:f,computedDotStyle:p,labelPosition:s}}});function Fje(e,t,n,r,o,a){return H(),J("div",{role:"listitem",class:se(e.cls)},[I("div",{class:se(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:se(e.dotLineCls),style:je(e.computedDotLineStyle)},null,6),I("div",{class:se(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(H(),J("div",{key:0,class:se(`${e.prefixCls}-dot-custom`)},[ft(e.$slots,"dot")],2)):(H(),J("div",{key:1,class:se(e.dotTypeCls),style:je(e.computedDotStyle)},null,6))],2)],2),I("div",{class:se(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(H(),J("div",{key:0,class:se(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)):Ae("v-if",!0),e.labelPosition!=="relative"?(H(),J("div",{key:1,class:se(`${e.prefixCls}-label`)},[e.$slots.label?ft(e.$slots,"label",{key:0}):(H(),J(Ft,{key:1},[He(Ne(e.label),1)],64))],2)):Ae("v-if",!0)],2),e.labelPosition==="relative"?(H(),J("div",{key:0,class:se(`${e.prefixCls}-label`)},[e.$slots.label?ft(e.$slots,"label",{key:0}):(H(),J(Ft,{key:1},[He(Ne(e.label),1)],64))],2)):Ae("v-if",!0)],2)}var qy=De(Bje,[["render",Fje]]),w6=be({name:"Timeline",components:{Item:qy,Spin:Sd},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=Ee("timeline"),r=V(()=>e.pending||t.pending),{children:o,components:a}=Rk("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:f}=Jt(e),h=Wt({items:a,direction:l,reverse:s,labelPosition:c,mode:f});Wr(dpe,h);const p=V(()=>[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(qy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var b,S;return(S=(b=t.dot)==null?void 0:b.call(t))!=null?S:O(Sd,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[o.value])}}});const jje=Object.assign(w6,{Item:qy,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+w6.name,w6),e.component(n+qy.name,qy)}}),Vje=be({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=Ee("icon"),r=V(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 zje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)]),14,Uje)}var C6=De(Vje,[["render",zje]]);const ic=Object.assign(C6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C6.name,C6)}}),Bz=Symbol("ArcoTransfer");var Hje=be({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=Ee("transfer-list-item"),n=xn(Bz,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=V(()=>[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(yd,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:f=>n?.onSelect(f),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var f,h,p;return[(p=(h=n==null?void 0:(f=n.slots).item)==null?void 0:h.call(f,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&O(_o,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(Us,null,null)]})])}}});const Wje=be({name:"TransferView",components:{Empty:PT,Checkbox:yd,IconHover:_o,IconDelete:ic,InputSearch:xv.Search,List:Uhe,TransferListItem:Hje,Scrollbar:kd},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=Ee("transfer-view"),r=pe(""),o=xn(Bz,void 0),a=V(()=>e.dataInfo.selected.length),s=V(()=>e.dataInfo.data.length),l=V(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=V(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?o?.onSelect([...e.selected,...e.dataInfo.allValidValues]):o?.onSelect(e.selected.filter(b=>!e.dataInfo.allValidValues.includes(b)))},h=V(()=>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:f,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{o?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function Gje(e,t,n,r,o,a){const s=Pe("checkbox"),l=Pe("icon-delete"),c=Pe("icon-hover"),f=Pe("input-search"),h=Pe("transfer-list-item"),p=Pe("list"),m=Pe("Scrollbar"),g=Pe("Empty");return H(),J("div",{class:se(e.prefixCls)},[I("div",{class:se(`${e.prefixCls}-header`)},[ft(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[I("span",{class:se(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(H(),J("span",{key:0,class:se(`${e.prefixCls}-header-title-simple`)},Ne(e.title),3)):(H(),Ye(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[He(Ne(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(H(),Ye(c,{key:0,disabled:e.disabled,class:se(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Ae("v-if",!0):(H(),J("span",{key:1,class:se(`${e.prefixCls}-header-count`)},Ne(e.dataInfo.selected.length)+" / "+Ne(e.dataInfo.data.length),3))])],2),e.showSearch?(H(),J("div",{key:0,class:se(`${e.prefixCls}-search`)},[O(f,Bt({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=b=>e.filter=b),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Ae("v-if",!0),I("div",{class:se(`${e.prefixCls}-body`)},[e.filteredData.length>0?(H(),Ye(m,{key:0},{default:de(()=>{var b,S;return[ft(e.$slots,"default",{data:e.filteredData,selectedKeys:(b=e.transferCtx)==null?void 0:b.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[O(p,{class:se(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(H(!0),J(Ft,null,fn(e.filteredData,k=>(H(),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})):(H(),Ye(g,{key:1,class:se(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var Kje=De(Wje,[["render",Gje]]);const qje=be({name:"Transfer",components:{ArcoButton:Uo,TransferView:Kje,IconLeft:zl,IconRight:Mi},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}=So({disabled:ku(e,"disabled")}),a=Ee("transfer"),s=pe(e.defaultValue),l=V(()=>{var E;return(E=e.modelValue)!=null?E:s.value}),c=pe(e.defaultSelected),f=V(()=>{var E;return(E=e.selected)!=null?E:c.value}),h=V(()=>{var E;return(E=e.title)==null?void 0:E[0]}),p=V(()=>{var E;return(E=e.title)==null?void 0:E[1]}),m=V(()=>{const E={data:[],allValidValues:[],selected:[],validSelected:[]},x={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(x.data.push(_),_.disabled||x.allValidValues.push(_.value),f.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value))):(E.data.push(_),_.disabled||E.allValidValues.push(_.value),f.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value)));return{sourceInfo:E,targetInfo:x}}),g=(E,x)=>{t("search",E,x)},b=(E,x)=>{var _,A;const R=x==="target"?[...l.value,...E]:l.value.filter(M=>!E.includes(M));k(m.value[x==="target"?"targetInfo":"sourceInfo"].selected),s.value=R,t("update:modelValue",R),t("change",R),(A=(_=o.value)==null?void 0:_.onChange)==null||A.call(_)},S=E=>{const x=E==="target"?m.value.sourceInfo.validSelected:m.value.targetInfo.validSelected;b(x,E)},k=E=>{c.value=E,t("update:selected",E),t("select",E)};Wr(Bz,Wt({selected:f,slots:n,moveTo:b,onSelect:k}));const C=V(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:C,dataInfo:m,computedSelected:f,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function Yje(e,t,n,r,o,a){const s=Pe("transfer-view"),l=Pe("icon-right"),c=Pe("arco-button"),f=Pe("icon-left");return H(),J("div",{class:se(e.cls)},[O(s,{type:"source",class:se(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.source?{name:"default",fn:de(h=>[ft(e.$slots,"source",Ni(fa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[ft(e.$slots,"source-title",Ni(fa(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?Ae("v-if",!0):(H(),J("div",{key:0,class:se([`${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(()=>[ft(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Ae("v-if",!0):(H(),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(()=>[ft(e.$slots,"to-source-icon",{},()=>[O(f)])]),_:3},8,["disabled"]))],2)),O(s,{type:"target",class:se(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.target?{name:"default",fn:de(h=>[ft(e.$slots,"target",Ni(fa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[ft(e.$slots,"target-title",Ni(fa(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 E6=De(qje,[["render",Yje]]);const Xje=Object.assign(E6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+E6.name,E6)}}),fpe=Symbol("TreeInjectionKey");function Zje(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function Jje(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function uj(e){return e.selectable&&!e.disabled}function Lne(e){return!e.isLeaf&&e.children}function Qje(e){return gl(e.isLeaf)?e.isLeaf:!e.children}function cj(e){return Set.prototype.add.bind(e)}function dj(e){return Set.prototype.delete.bind(e)}function og(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function Fz(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{og(r)&&n.push(r.key,...Fz(r))}),n}function hpe(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(og(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(og))||[];let c=0;const f=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!==f?o.add(s):o.delete(s),c&&c===f?r.add(s):r.delete(s)}a=a.parent}}function fj(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 f=Fz(t);n?f.forEach(cj(l)):f.forEach(dj(l)),f.forEach(dj(c)),hpe({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function eVe(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:o}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(cj(a)):t.forEach(c=>{var f;const h=n.get(c);if(!h||s.has(c)||o&&((f=h.children)!=null&&f.length))return;const p=Fz(h);p.forEach(cj(s)),p.forEach(dj(l)),a.add(c),l.delete(c),hpe({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function K3(){return xn(fpe)||{}}const tVe=be({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=Ee("icon"),r=V(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nVe=["stroke-width","stroke-linecap","stroke-linejoin"];function rVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)]),14,nVe)}var x6=De(tVe,[["render",rVe]]);const jz=Object.assign(x6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x6.name,x6)}});var iVe=be({name:"TreeNodeSwitcher",components:{IconLoading:Va,RenderFunction:Uh},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}=Jt(e),s=K3(),l=fd(t,"switcher-icon"),c=fd(t,"loading-icon");return{getSwitcherIcon:()=>{var f,h,p;const m=(h=(f=r?.value)==null?void 0:f.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 f,h,p;const m=(h=(f=r?.value)==null?void 0:f.loadingIcon)!=null?h:c.value;return m?m(o.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,o.value)},onClick(f){n("click",f)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:o,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:f}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:ra(Va);let m=null,g=!1;if(p)f&&(m=(n=o())!=null?n:ra(jz));else{const S=f?ra("span",{class:`${r}-${h?"minus":"plus"}-icon`}):ra(Oz);m=(t=o())!=null?t:S,g=!f}if(!m)return null;const b=ra("span",{class:`${r}-switcher-icon`,onClick:s},m);return g?ra(_o,{class:`${r}-icon-hover`},()=>b):b}});const ppe=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function oVe(e,t){return!!(mn(e)?t:e)}function sVe(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 Pne({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return mn(e)?pn(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function aVe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=sVe(r,l),f=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...pa(c,["children"]),key:(n=c.key)!=null?n:ppe(),selectable:Pne({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:f,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Pne({subEnable:c.checkable,superEnable:s?.checkable,isLeaf:f,level:h,treeNodeData:r}),isLeaf:f,isTail:a,blockNode:!!s?.blockNode,showLine:!!s?.showLine,level:h,lineless:o?[...o.lineless,o.isTail]:[],draggable:oVe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function lVe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const f=aVe({treeNodeData:l,treeProps:t,parentNode:o,isTail:c===r.length-1});f.children=n(l[a?.children||"children"],f),s.push(f)}),s}return n(e)}function vpe(){const e=uo(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:ppe()},n=pe(t());return Ha(()=>{n.value=t()}),n}function uVe(e){const{key:t,refTitle:n}=Jt(e),r=K3(),o=pe(!1),a=pe(!1),s=pe(!1),l=pe(0),c=bg(f=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:m}=f,g=h.height/4,b=m-p;l.value=b[]}},setup(e){const t=vpe(),n=Ee("tree-node"),r=K3(),o=V(()=>{var ee;return(ee=r.key2TreeNode)==null?void 0:ee.get(t.value)}),a=V(()=>o.value.treeNodeData),s=V(()=>o.value.children),l=V(()=>{var ee;const Q=(ee=r.treeProps)==null?void 0:ee.actionOnNodeClick;return Q?cVe(Q):[]}),{isLeaf:c,isTail:f,selectable:h,disabled:p,disableCheckbox:m,draggable:g}=Jt(e),b=V(()=>{var ee;return[`${n}`,{[`${n}-selected`]:D.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:f.value,[`${n}-expanded`]:N.value,[`${n}-disabled-selectable`]:!h.value&&!((ee=r.treeProps)!=null&&ee.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=pe(),{isDragOver:k,isDragging:C,isAllowDrop:E,dropPosition:x,setDragStatus:_}=uVe(Wt({key:t,refTitle:S})),A=V(()=>[`${n}-title`,{[`${n}-title-draggable`]:g.value,[`${n}-title-gap-top`]:k.value&&E.value&&x.value<0,[`${n}-title-gap-bottom`]:k.value&&E.value&&x.value>0,[`${n}-title-highlight`]:!C.value&&k.value&&E.value&&x.value===0,[`${n}-title-dragging`]:C.value,[`${n}-title-block`]:o.value.blockNode}]),R=V(()=>{var ee,Q;return(Q=(ee=r.checkedKeys)==null?void 0:ee.includes)==null?void 0:Q.call(ee,t.value)}),M=V(()=>{var ee,Q;return(Q=(ee=r.indeterminateKeys)==null?void 0:ee.includes)==null?void 0:Q.call(ee,t.value)}),D=V(()=>{var ee,Q;return(Q=(ee=r.selectedKeys)==null?void 0:ee.includes)==null?void 0:Q.call(ee,t.value)}),N=V(()=>{var ee,Q;return(Q=(ee=r.expandedKeys)==null?void 0:ee.includes)==null?void 0:Q.call(ee,t.value)}),L=V(()=>{var ee,Q;return(Q=(ee=r.loadingKeys)==null?void 0:ee.includes)==null?void 0:Q.call(ee,t.value)}),B=V(()=>r.dragIcon),F=V(()=>r.nodeIcon);function j(ee){var Q,X;c.value||(!((Q=s.value)!=null&&Q.length)&&pn(r.onLoadMore)?r.onLoadMore(t.value):(X=r?.onExpand)==null||X.call(r,!N.value,t.value,ee))}const z=Wt({loading:L,checked:R,selected:D,indeterminate:M,expanded:N,isLeaf:c}),q=V(()=>r.nodeTitle?()=>{var ee;return(ee=r.nodeTitle)==null?void 0:ee.call(r,a.value,z)}:void 0),G=V(()=>r.nodeExtra?()=>{var ee;return(ee=r.nodeExtra)==null?void 0:ee.call(r,a.value,z)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:b,titleClassNames:A,indeterminate:M,checked:R,expanded:N,selected:D,treeTitle:q,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:F,extra:G,nodeStatus:z,onCheckboxChange(ee,Q){var X;m.value||p.value||(X=r.onCheck)==null||X.call(r,ee,t.value,Q)},onTitleClick(ee){var Q;l.value.includes("expand")&&j(ee),!(!h.value||p.value)&&((Q=r.onSelect)==null||Q.call(r,t.value,ee))},onSwitcherClick:j,onDragStart(ee){var Q;if(g.value){ee.stopPropagation(),_("dragStart",ee);try{(Q=ee.dataTransfer)==null||Q.setData("text/plain","")}catch{}}},onDragEnd(ee){g.value&&(ee.stopPropagation(),_("dragEnd",ee))},onDragOver(ee){g&&(ee.stopPropagation(),ee.preventDefault(),_("dragOver",ee))},onDragLeave(ee){g.value&&(ee.stopPropagation(),_("dragLeave",ee))},onDrop(ee){!g.value||!E.value||(ee.stopPropagation(),ee.preventDefault(),_("drop",ee))}}}}),fVe=["data-level","data-key"],hVe=["draggable"];function pVe(e,t,n,r,o,a){const s=Pe("NodeSwitcher"),l=Pe("Checkbox"),c=Pe("RenderFunction"),f=Pe("IconDragDotVertical");return H(),J("div",{class:se(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Ae(" 缩进 "),I("span",{class:se(`${e.prefixCls}-indent`)},[(H(!0),J(Ft,null,fn(e.level,h=>(H(),J("span",{key:h,class:se([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Ae(" switcher "),I("span",{class:se([`${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},yo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Ae(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),ft(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Ae(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),ft(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Ae(" checkbox "),e.checkable?(H(),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"])):Ae("v-if",!0),Ae(" 内容 "),I("span",{ref:"refTitle",class:se(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[1]||(t[1]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDragover:t[2]||(t[2]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[3]||(t[3]=(...h)=>e.onDragLeave&&e.onDragLeave(...h)),onDrop:t[4]||(t[4]=(...h)=>e.onDrop&&e.onDrop(...h)),onClick:t[5]||(t[5]=(...h)=>e.onTitleClick&&e.onTitleClick(...h))},[e.$slots.icon||e.icon||e.treeNodeIcon?(H(),J("span",{key:0,class:se([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Ae(" 节点图标 "),e.$slots.icon?ft(e.$slots,"icon",Ni(Bt({key:0},e.nodeStatus))):e.icon?(H(),Ye(c,Bt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(H(),Ye(c,Bt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Ae("v-if",!0)],2)):Ae("v-if",!0),I("span",{class:se(`${e.prefixCls}-title-text`)},[e.treeTitle?(H(),Ye(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(H(),J(Ft,{key:1},[Ae(" 标题,treeTitle 优先级高于节点的 title "),ft(e.$slots,"title",{title:e.title},()=>[He(Ne(e.title),1)])],2112)),e.draggable?(H(),J("span",{key:2,class:se([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Ae(" 拖拽图标 "),e.$slots["drag-icon"]?ft(e.$slots,"drag-icon",Ni(Bt({key:0},e.nodeStatus))):e.dragIcon?(H(),Ye(c,Bt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(H(),Ye(c,Bt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(H(),Ye(f,{key:3}))],2)):Ae("v-if",!0)],2)],42,hVe),Ae(" 额外 "),e.extra?(H(),Ye(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Ae("v-if",!0)],10,fVe)}var hj=De(dVe,[["render",pVe]]);const vVe=be({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 mVe(e,t,n,r,o,a){return H(),Ye(Es,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[ft(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var gVe=De(vVe,[["render",mVe]]);const yVe=be({name:"TransitionNodeList",components:{ExpandTransition:gVe,BaseTreeNode:hj},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Ee("tree")}-node-list`],r=K3(),{nodeKey:o}=Jt(e),a=V(()=>{var c,f;return(f=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:f.call(c,o.value)}),s=V(()=>{var c;const f=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(b=>f.has(b));const g=p.pathParentKeys.indexOf(o.value);return p.pathParentKeys.slice(g+1).every(b=>f.has(b))})}),l=V(()=>{var c,f;return((c=r.currentExpandKeys)==null?void 0:c.includes(o.value))&&((f=s.value)==null?void 0:f.length)});return{classNames:n,visibleNodeList:s,show:l,expanded:a,onTransitionEnd(){var c;(c=r.onExpandEnd)==null||c.call(r,o.value)}}}});function bVe(e,t,n,r,o,a){const s=Pe("BaseTreeNode"),l=Pe("ExpandTransition");return H(),Ye(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(H(),J("div",{key:0,class:se(e.classNames)},[(H(!0),J(Ft,null,fn(e.visibleNodeList,c=>(H(),Ye(s,Bt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Ae("v-if",!0)]),_:1},8,["expanded","onEnd"])}var _Ve=De(yVe,[["render",bVe]]),SVe=be({name:"TreeNode",inheritAttrs:!1,props:{...hj.props},setup(e,{slots:t,attrs:n}){const r=vpe();return()=>O(Ft,null,[O(hj,Bt(e,n,{key:r.value}),t),O(_Ve,{key:r.value,nodeKey:r.value},null)])}});function kVe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=Jt(e),l=pe(!1),c=pe([]),f=pe([]),h=pe(),p=pe(),m=b=>eVe({initCheckedKeys:b,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),g=b=>{const S=m(b);[c.value,f.value]=S};return g(n.value||t?.value||[]),Cs(()=>{n.value?[h.value,p.value]=m(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],f.value=[]),l.value||(l.value=!0)}),{checkedKeys:V(()=>h.value||c.value),indeterminateKeys:V(()=>o.value&&a.value?a.value:p.value||f.value),setCheckedState(b,S,k=!1){return k?g(b):(c.value=b,f.value=S),[c.value,f.value]}}}function mpe(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=Jt(e),f=pe([]);Cs(()=>{var m,g;f.value=lVe(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=V(()=>Zje(f.value)),p=V(()=>Jje(h.value));return{treeData:f,flattenTreeData:h,key2TreeNode:p}}const wVe=be({name:"Tree",components:{VirtualList:K1,TreeNode:SVe},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:f,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:m,defaultExpandedKeys:g,checkedStrategy:b,selectable:S,checkable:k,blockNode:C,fieldNames:E,size:x,defaultExpandAll:_,filterTreeNode:A,draggable:R,allowDrop:M,defaultExpandSelected:D,defaultExpandChecked:N,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:F,animation:j}=Jt(e),z=Ee("tree"),q=V(()=>[`${z}`,{[`${z}-checkable`]:k.value,[`${z}-show-line`]:o.value},`${z}-size-${x.value}`]),G=fd(n,"switcher-icon"),ee=fd(n,"loading-icon"),Q=fd(n,"drag-icon"),X=fd(n,"icon"),K=fd(n,"title"),te=fd(n,"extra"),{treeData:oe,flattenTreeData:ue,key2TreeNode:ae}=mpe(Wt({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:E,loadMore:s,draggable:R})),{checkedKeys:xe,indeterminateKeys:$e,setCheckedState:ge}=kVe(Wt({defaultCheckedKeys:f,checkedKeys:c,checkStrictly:l,key2TreeNode:ae,halfCheckedKeys:B,onlyCheckLeaf:F})),[Oe,Fe]=ia(p?.value||[],Wt({value:h})),Xe=pe([]),Je=pe();function Ke(){if(g?.value){const et=new Set([]);return g.value.forEach(Le=>{if(et.has(Le))return;const yt=ae.value.get(Le);yt&&[...L.value?yt.pathParentKeys:[],Le].forEach(Lt=>et.add(Lt))}),[...et]}if(_.value)return ue.value.filter(et=>et.children&&et.children.length).map(et=>et.key);if(D.value||N.value){const et=new Set([]),Le=yt=>{yt.forEach(Lt=>{const Ht=ae.value.get(Lt);Ht&&(Ht.pathParentKeys||[]).forEach(It=>et.add(It))})};return D.value&&Le(Oe.value),N.value&&Le(xe.value),[...et]}return[]}const[_e,ye]=ia(Ke(),Wt({value:m})),Me=pe([]),We=V(()=>{const et=new Set(_e.value),Le=new Set(Me.value);return ue.value.filter(yt=>{var Lt;if(!(!A||!A.value||A?.value(yt.treeNodeData)))return!1;const It=mn(yt.parentKey),Yt=(Lt=yt.pathParentKeys)==null?void 0:Lt.every(En=>et.has(En)&&!Le.has(En));return It||Yt})});function qe(et,Le=b.value){let yt=[...et];return Le==="parent"?yt=et.filter(Lt=>{const Ht=ae.value.get(Lt);return Ht&&!(!mn(Ht.parentKey)&&et.includes(Ht.parentKey))}):Le==="child"&&(yt=et.filter(Lt=>{var Ht,It;return!((It=(Ht=ae.value.get(Lt))==null?void 0:Ht.children)!=null&&It.length)})),yt}function st(et){return et.map(Le=>{var yt;return((yt=ae.value.get(Le))==null?void 0:yt.treeNodeData)||void 0}).filter(Boolean)}function gt(et){const{targetKey:Le,targetChecked:yt,newCheckedKeys:Lt,newIndeterminateKeys:Ht,event:It}=et,Yt=Le?ae.value.get(Le):void 0,En=qe(Lt);t("update:checkedKeys",En),t("update:halfCheckedKeys",Ht),t("check",En,{checked:yt,node:Yt?.treeNodeData,checkedNodes:st(En),halfCheckedKeys:Ht,halfCheckedNodes:st(Ht),e:It})}function ct(et){const{targetKey:Le,targetSelected:yt,newSelectedKeys:Lt,event:Ht}=et,It=Le?ae.value.get(Le):void 0;t("update:selectedKeys",Lt),t("select",Lt,{selected:yt,node:It?.treeNodeData,selectedNodes:st(Lt),e:Ht})}function Tt(et){const{targetKey:Le,targetExpanded:yt,newExpandedKeys:Lt,event:Ht}=et,It=Le?ae.value.get(Le):void 0;t("expand",Lt,{expanded:yt,node:It?.treeNodeData,expandedNodes:st(Lt),e:Ht}),t("update:expandedKeys",Lt)}function xt(et){const[Le,yt]=ge(et,[],!0);gt({newCheckedKeys:Le,newIndeterminateKeys:yt})}function qt(et){let Le=et;!a.value&&et.length>1&&(Le=[et[0]]),Fe(Le),ct({newSelectedKeys:Le})}function Gt(et){Me.value=[],ye(et),Tt({newExpandedKeys:et})}function Qt(et,Le,yt){if(!et.length)return;let Lt=[...xe.value],Ht=[...$e.value];et.forEach(It=>{const Yt=ae.value.get(It);Yt&&([Lt,Ht]=fj({node:Yt,checked:Le,checkedKeys:[...Lt],indeterminateKeys:[...Ht],checkStrictly:l.value}))}),ge(Lt,Ht),gt({targetKey:yt,targetChecked:mn(yt)?void 0:Le,newCheckedKeys:Lt,newIndeterminateKeys:Ht})}function Pt(et,Le,yt){if(!et.length)return;let Lt;if(a.value){const Ht=new Set(Oe.value);et.forEach(It=>{Le?Ht.add(It):Ht.delete(It)}),Lt=[...Ht]}else Lt=Le?[et[0]]:[];Fe(Lt),ct({targetKey:yt,targetSelected:mn(yt)?void 0:Le,newSelectedKeys:Lt})}function at(et,Le,yt){const Lt=new Set(_e.value);et.forEach(It=>{Le?Lt.add(It):Lt.delete(It),lt(It)});const Ht=[...Lt];ye(Ht),Tt({targetKey:yt,targetExpanded:mn(yt)?void 0:Le,newExpandedKeys:Ht})}function bt(et,Le,yt){const Lt=ae.value.get(Le);if(!Lt)return;const[Ht,It]=fj({node:Lt,checked:et,checkedKeys:xe.value,indeterminateKeys:$e.value,checkStrictly:l.value});ge(Ht,It),gt({targetKey:Le,targetChecked:et,newCheckedKeys:Ht,newIndeterminateKeys:It,event:yt})}function Ue(et,Le){if(!ae.value.get(et))return;let Lt,Ht;if(a.value){const It=new Set(Oe.value);Ht=!It.has(et),Ht?It.add(et):It.delete(et),Lt=[...It]}else Ht=!0,Lt=[et];Fe(Lt),ct({targetKey:et,targetSelected:Ht,newSelectedKeys:Lt,event:Le})}function Be(et,Le,yt){if(Me.value.includes(Le)||!ae.value.get(Le))return;const Ht=new Set(_e.value);et?Ht.add(Le):Ht.delete(Le);const It=[...Ht];ye(It),j.value&&Me.value.push(Le),Tt({targetKey:Le,targetExpanded:et,newExpandedKeys:It,event:yt})}function lt(et){const Le=Me.value.indexOf(et);Me.value.splice(Le,1)}const kt=V(()=>s?.value?async et=>{if(!pn(s.value))return;const Le=ae.value.get(et);if(!Le)return;const{treeNodeData:yt}=Le;Xe.value=[...new Set([...Xe.value,et])];try{await s.value(yt),Xe.value=Xe.value.filter(Lt=>Lt!==et),Be(!0,et),xe.value.includes(et)&&bt(!0,et)}catch(Lt){Xe.value=Xe.value.filter(Ht=>Ht!==et),console.error("[tree]load data error: ",Lt)}}:void 0),ut=Wt({treeProps:e,switcherIcon:G,loadingIcon:ee,dragIcon:Q,nodeIcon:X,nodeTitle:K,nodeExtra:te,treeData:oe,flattenTreeData:ue,key2TreeNode:ae,checkedKeys:xe,indeterminateKeys:$e,selectedKeys:Oe,expandedKeys:_e,loadingKeys:Xe,currentExpandKeys:Me,onLoadMore:kt,filterTreeNode:A,onCheck:bt,onSelect:Ue,onExpand:Be,onExpandEnd:lt,allowDrop(et,Le){const yt=ae.value.get(et);return yt&&pn(M.value)?!!M.value({dropNode:yt.treeNodeData,dropPosition:Le}):!0},onDragStart(et,Le){const yt=ae.value.get(et);Je.value=yt,yt&&t("dragStart",Le,yt.treeNodeData)},onDragEnd(et,Le){const yt=ae.value.get(et);Je.value=void 0,yt&&t("dragEnd",Le,yt.treeNodeData)},onDragOver(et,Le){const yt=ae.value.get(et);yt&&t("dragOver",Le,yt.treeNodeData)},onDragLeave(et,Le){const yt=ae.value.get(et);yt&&t("dragLeave",Le,yt.treeNodeData)},onDrop(et,Le,yt){const Lt=ae.value.get(et);Je.value&&Lt&&!(Lt.key===Je.value.key||Lt.pathParentKeys.includes(Je.value.key||""))&&t("drop",{e:yt,dragNode:Je.value.treeNodeData,dropNode:Lt.treeNodeData,dropPosition:Le})}});return Wr(fpe,ut),{classNames:q,visibleTreeNodeList:We,treeContext:ut,virtualListRef:pe(),computedSelectedKeys:Oe,computedExpandedKeys:_e,computedCheckedKeys:xe,computedIndeterminateKeys:$e,getPublicCheckedKeys:qe,getNodes:st,internalCheckNodes:Qt,internalSetCheckedKeys:xt,internalSelectNodes:Pt,internalSetSelectedKeys:qt,internalExpandNodes:at,internalSetExpandedKeys:Gt}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&og(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&&og(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=qn(e),l=(s?e:[e]).filter(c=>{const f=a.get(c);return f&&og(f)&&(r||!n||Qje(f))});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&&uj(o)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=qn(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&uj(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&&Lne(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=qn(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Lne(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function CVe(e,t,n,r,o,a){const s=Pe("TreeNode"),l=Pe("VirtualList");return H(),J("div",{class:se(e.classNames)},[e.virtualListProps?(H(),Ye(l,Bt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(H(),Ye(s,Bt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(H(!0),J(Ft,{key:1},fn(e.visibleTreeNodeList,c=>(H(),Ye(s,Bt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var T6=De(wVe,[["render",CVe]]);const pj=Object.assign(T6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+T6.name,T6)}}),EVe=be({name:"Typography",setup(){return{classNames:[Ee("typography")]}}});function xVe(e,t,n,r,o,a){return H(),J("article",{class:se(e.classNames)},[ft(e.$slots,"default")],2)}var A6=De(EVe,[["render",xVe]]);const TVe=be({name:"TypographyEditContent",components:{Input:xv},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Ee("typography")}-edit-content`],o=pe();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return ln(()=>{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 AVe(e,t,n,r,o,a){const s=Pe("Input");return H(),J("div",{class:se(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:mh(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var IVe=De(TVe,[["render",AVe]]);const LVe=be({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=Ee("icon"),r=V(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PVe=["stroke-width","stroke-linecap","stroke-linejoin"];function RVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)]),14,PVe)}var I6=De(LVe,[["render",RVe]]);const q3=Object.assign(I6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I6.name,I6)}}),MVe=be({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=Ee("icon"),r=V(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DVe=["stroke-width","stroke-linecap","stroke-linejoin"];function OVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)]),14,DVe)}var L6=De(MVe,[["render",OVe]]);const Vz=Object.assign(L6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L6.name,L6)}}),$Ve=be({name:"TypographyOperations",components:{Tooltip:jc,IconCheckCircleFill:jh,IconCopy:q3,IconEdit:Vz},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=Ee("typography"),r=V(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=Ao();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function NVe(e,t,n,r,o,a){const s=Pe("IconEdit"),l=Pe("Tooltip"),c=Pe("IconCheckCircleFill"),f=Pe("IconCopy");return H(),J(Ft,null,[e.editable?(H(),Ye(l,Bt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[I("span",{class:se(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=$o((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Ae("v-if",!0),e.copyable?(H(),Ye(l,Ni(Bt({key:1},e.copyTooltipProps)),{content:de(()=>[ft(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[He(Ne(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[I("span",{class:se({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=$o((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[ft(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(H(),Ye(c,{key:0})):(H(),Ye(f,{key:1}))])],2)]),_:3},16)):Ae("v-if",!0),e.showExpand?(H(),J("a",{key:2,class:se(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=$o((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[ft(e.$slots,"expand-node",{expanded:e.expanded},()=>[He(Ne(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Ae("v-if",!0)],64)}var Rne=De($Ve,[["render",NVe]]);let Os;function BVe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function P6(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var FVe=(e,t,n,r)=>{Os||(Os=document.createElement("div"),document.body.appendChild(Os));const{rows:o,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=BVe(l),f=P6(l.lineHeight),h=Math.round(f*o+P6(l.paddingTop)+P6(l.paddingBottom));Os.setAttribute("style",c),Os.setAttribute("aria-hidden","true"),Os.style.height="auto",Os.style.minHeight="auto",Os.style.maxHeight="auto",Os.style.position="fixed",Os.style.left="0",Os.style.top="-99999999px",Os.style.zIndex="-200",Os.style.whiteSpace="normal";const p=m1({render(){return O("span",null,[n])}});p.mount(Os);const m=Array.prototype.slice.apply(Os.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Os.innerHTML="";const g=document.createTextNode(`${s}${a}`);Os.appendChild(g),m.forEach(C=>{Os.appendChild(C)});const b=document.createTextNode(r);Os.insertBefore(b,g);function S(){return Os.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,E=0,x=r.length,_=0){const A=Math.floor((E+x)/2),R=r.slice(0,A);if(C.textContent=R,E>=x-1)for(let M=x;M>=E;M-=1){const D=r.slice(0,M);if(C.textContent=D,S()||!D)return}S()?k(C,A,x,A):k(C,E,A,_)}return k(b),{text:b.textContent,ellipsis:!0}};const jVe=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 q0;function VVe(e){if(!e)return"";q0||(q0=document.createElement("div"),q0.setAttribute("aria-hidden","true"),document.body.appendChild(q0));const t=m1({render(){return O("div",null,[e])}});t.mount(q0);const n=q0.innerText;return t.unmount(),n}function gpe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}function UVe(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 Mne(e,t){const{mark:n}=e,r=UVe(e),o=ar(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:o}:{},gpe(a)?a:{default:()=>[a]}),t)}function zVe(e){const t=!!e.showTooltip,n=ar(e.showTooltip)&&e.showTooltip.type==="popover"?lz:jc,r=ar(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...pa(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var Uz=be({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:f,editText:h,copyDelay:p,component:m}=Jt(e),g=Ee("typography"),b=V(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=pe(),k=pe(""),[C,E]=ia(a.value,Wt({value:o})),x=V(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),E(!0)}function A(xe){n("update:editText",xe),n("change",xe)}function R(){C.value&&(n("update:editing",!1),n("editEnd"),E(!1))}const M=pe(!1);let D=null;function N(){var xe;const $e=(xe=f.value)!=null?xe:k.value;jVe($e||""),M.value=!0,n("copy",$e),D=setTimeout(()=>{M.value=!1},p.value)}si(()=>{D&&clearTimeout(D),D=null});const L=pe(!1),B=pe(!1),F=pe(""),j=V(()=>zVe(ar(s.value)&&s.value||{}));let z=null;function q(){const xe=!B.value;B.value=xe,n("expand",xe)}function G(xe=!1){return j.value.css?O(Rne,{editable:c.value,copyable:l.value,expandable:j.value.expandable,isCopied:M.value,isEllipsis:oe.value,expanded:B.value,forceRenderExpand:xe||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:N,onExpand:q},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(Rne,{editable:c.value,copyable:l.value,expandable:j.value.expandable,isCopied:M.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:xe,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:N,onExpand:q},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function ee(){if(!S.value)return;const{ellipsis:xe,text:$e}=FVe(S.value,j.value,G(!!j.value.expandable),k.value);L.value!==xe&&(L.value=xe,j.value.css||n("ellipsis",xe)),F.value!==$e&&(F.value=$e||"")}function Q(){s.value&&!B.value&&(OA(z),z=tfe(()=>{ee()}))}si(()=>{OA(z)}),Dt(()=>j.value.rows,()=>{Q()}),Dt(s,xe=>{xe?Q():L.value=!1});let X=[];const K=()=>{if(s.value||l.value||c.value){const xe=VVe(X);xe!==k.value&&(k.value=xe,Q())}};ln(K),Ha(K);const te=pe(),oe=pe(!1),ue=()=>{if(S.value&&te.value){const xe=te.value.offsetHeight>S.value.offsetHeight;xe!==oe.value&&(oe.value=xe,n("ellipsis",xe))}},ae=V(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":j.value.rows,"-webkit-box-orient":"vertical"});return()=>{var xe,$e;if(X=((xe=t.default)==null?void 0:xe.call(t))||[],x.value){const We=($e=h.value)!=null?$e:k.value;return O(IVe,{text:We,onChange:qe=>{qe!==We&&A(qe)},onEnd:R},null)}const{suffix:ge,ellipsisStr:Oe,showTooltip:Fe,tooltipProps:Xe,TooltipComponent:Je}=j.value,Ke=L.value&&!B.value,_e=Ke&&!Fe?{title:k.value}:{},ye=m.value;if(j.value.css){const We=Mne(e,X),qe=O(ye,Bt({class:b.value,ref:S,style:ae.value},_e,r),{default:()=>[O("span",{ref:te},[We])]});return oe.value?O(Je,Bt(Xe,{onResize:()=>ue()}),{default:()=>[qe],content:()=>k.value}):O(_d,{onResize:()=>{ue()}},gpe(qe)?qe:{default:()=>[qe]})}const Me=Mne(e,Ke?F.value:X);return O(_d,{onResize:()=>Q()},{default:()=>[O(ye,Bt({class:b.value,ref:S},_e,r),{default:()=>[Ke&&Fe?O(Je,Xe,{default:()=>[O("span",null,[Me])],content:()=>k.value}):Me,Ke?Oe:null,ge,G()]})]})}}}),A4=be({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=Jt(e),r=Ee("typography"),o=V(()=>t?.value?"blockquote":"div"),a=V(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return O(Uz,Bt({class:t},this.$attrs,{component:e}),this.$slots)}}),I4=be({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=Jt(e);return{component:V(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(Uz,Bt(this.$attrs,{component:e}),this.$slots)}}),L4=be({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=Jt(e);return{component:V(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(Uz,Bt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const HVe=Object.assign(A6,{Paragraph:A4,Title:I4,Text:L4,install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+A6.name,A6),e.component(n+A4.name,A4),e.component(n+I4.name,I4),e.component(n+L4.name,L4)}}),Dne=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},WVe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},One=(e,t)=>pn(e)?e(t):e,GVe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=zy,onSuccess:l=zy,onError:c=zy})=>{const f=One(n,e)||"file",h=One(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const b=g.total>0?Fl.round(g.loaded/g.total,2):0;s(b,g)},p.onerror=function(b){c(b)},p.onload=()=>{if(p.status<200||p.status>=300){c(Dne(p));return}l(Dne(p))};const m=new FormData;if(h)for(const g of Object.keys(h))m.append(g,h[g]);e.file&&m.append(f,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()}}},ype=(e,t)=>{if(t&&e){const n=qn(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},KVe=(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,ype(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let f=!1;const h=()=>{c.readEntries(p=>{f||(o-=1,f=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}o-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},qVe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},R6=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>ype(r,t)):n},YVe=be({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=Ee("icon"),r=V(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,XVe)}var M6=De(YVe,[["render",ZVe]]);const X1=Object.assign(M6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M6.name,M6)}});var JVe=be({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=Ee("upload"),{t:r}=Ao(),o=pe(!1),a=pe(null),s=pe(null),l=pe(0),c=k=>{k==="subtract"?l.value-=1:k==="add"?l.value+=1:k==="reset"&&(l.value=0)},f=k=>{if(!e.disabled){if(pn(e.onButtonClick)){const C=e.onButtonClick(k);if(yg(C)){C.then(E=>{e.uploadFiles(R6(E))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles(R6(C.files)),C.value=""},p=k=>{var C,E;if(k.preventDefault(),o.value=!1,c("reset"),!e.disabled)if(e.directory&&((C=k.dataTransfer)!=null&&C.items))KVe(k.dataTransfer.items,e.accept,x=>{e.uploadFiles(x)});else{const x=R6((E=k.dataTransfer)==null?void 0:E.files,e.accept);e.uploadFiles(e.multiple?x:x.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)},b=()=>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(vf,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(vf,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(Uo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(X1,null,null)}),S=V(()=>[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:f,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:m},[O("input",Bt({ref:a,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:h}),null),b()])}});const QVe=be({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=Ee("icon"),r=V(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,eUe)}var D6=De(QVe,[["render",tUe]]);const bpe=Object.assign(D6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D6.name,D6)}}),nUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rUe=["stroke-width","stroke-linecap","stroke-linejoin"];function iUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rUe)}var O6=De(nUe,[["render",iUe]]);const _pe=Object.assign(O6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O6.name,O6)}}),Y3=Symbol("ArcoUpload");var Spe=be({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Ee("upload-progress"),{t:n}=Ao(),r=xn(Y3,void 0),o=()=>{var s,l,c,f,h,p,m,g,b,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:(f=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&f.call(c))||e.listType==="picture-card"?O(X1,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:(b=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:b.call(g))!=null?k:O(Ug,null,null)]):e.file.status==="init"?O(jc,{content:n("upload.start")},{default:()=>{var C,E,x,_,A,R;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(R=(A=(E=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:E.call(C))!=null?A:(_=(x=r?.customIcon)==null?void 0:x.startIcon)==null?void 0:_.call(x))!=null?R:O(_pe,null,null)])]}}):r?.showCancelButton&&O(jc,{content:n("upload.cancel")},{default:()=>{var C,E,x,_,A,R;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(R=(A=(E=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:E.call(C))!=null?A:(_=(x=r?.customIcon)==null?void 0:x.cancelIcon)==null?void 0:_.call(x))!=null?R:O(bpe,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=WVe(e.file.status);return O(Xhe,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),o()])}});const oUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sUe=["stroke-width","stroke-linecap","stroke-linejoin"];function aUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1)]),14,sUe)}var $6=De(oUe,[["render",aUe]]);const kpe=Object.assign($6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$6.name,$6)}}),lUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uUe=["stroke-width","stroke-linecap","stroke-linejoin"];function cUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1)]),14,uUe)}var N6=De(lUe,[["render",cUe]]);const wpe=Object.assign(N6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N6.name,N6)}}),dUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fUe=["stroke-width","stroke-linecap","stroke-linejoin"];function hUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,fUe)}var B6=De(dUe,[["render",hUe]]);const Cpe=Object.assign(B6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B6.name,B6)}}),pUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vUe=["stroke-width","stroke-linecap","stroke-linejoin"];function mUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1)]),14,vUe)}var F6=De(pUe,[["render",mUe]]);const Epe=Object.assign(F6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F6.name,F6)}});var $ne=be({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Ee("upload-list")}-item`,{t:r}=Ao(),o=xn(Y3,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const f=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(f)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(f)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(f)&&(c="audio")}return c.includes("image")?O(wpe,null,null):c.includes("pdf")?O(kpe,null,null):c.includes("audio")?O(Epe,null,null):c.includes("video")?O(Cpe,null,null):O(jz,null,null)};return()=>{var s,l,c,f,h,p,m,g,b,S,k,C,E,x,_,A,R,M,D,N,L,B,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",Bt({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`},[(b=(g=(h=o==null?void 0:(f=o.slots)["file-icon"])==null?void 0:h.call(f,{fileItem:e.file}))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.fileIcon)==null?void 0:m.call(p,e.file))!=null?b:a()]),o?.showLink&&e.file.url?O("a",Bt({class:`${n}-name-link`,target:"_blank",href:e.file.url},o?.download?{download:e.file.name}:void 0),[(_=(x=(k=o==null?void 0:(S=o.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?x:(E=(C=o?.customIcon)==null?void 0:C.fileName)==null?void 0:E.call(C,e.file))!=null?_:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(L=(N=(R=o==null?void 0:(A=o.slots)["file-name"])==null?void 0:R.call(A,{fileItem:e.file}))!=null?N:(D=(M=o?.customIcon)==null?void 0:M.fileName)==null?void 0:D.call(M,e.file))!=null?L:e.file.name]),e.file.status==="error"&&O(jc,{content:r("upload.error")},{default:()=>{var j,z,q,G,ee,Q;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(Q=(ee=(z=o==null?void 0:(j=o.slots)["error-icon"])==null?void 0:z.call(j))!=null?ee:(G=(q=o?.customIcon)==null?void 0:q.errorIcon)==null?void 0:G.call(q))!=null?Q:O(Sf,null,null)])]}})]),O(Spe,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(_o,{onClick:()=>{var j;return(j=o?.onRemove)==null?void 0:j.call(o,e.file)}},{default:()=>{var j,z,q,G,ee,Q;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(Q=(ee=(z=o==null?void 0:(j=o.slots)["remove-icon"])==null?void 0:z.call(j))!=null?ee:(G=(q=o?.customIcon)==null?void 0:q.removeIcon)==null?void 0:G.call(q))!=null?Q:O(ic,null,null)])]}})]),(F=o==null?void 0:(B=o.slots)["extra-button"])==null?void 0:F.call(B,{fileItem:e.file})])}}}),Nne=be({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Ee("upload-list")}-picture`,r=V(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=xn(Y3,void 0),a=()=>{var s,l,c,f,h,p,m,g,b,S,k,C,E,x,_,A,R,M,D,N,L,B,F,j,z,q,G,ee,Q;return e.file.status==="uploading"?O(Spe,{file:e.file,listType:"picture-card"},null):O(Ft,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Bt({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`]},[(b=(g=(h=o==null?void 0:(f=o.slots)["error-icon"])==null?void 0:h.call(f))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:m.call(p))!=null?b:O(R3,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)},[(_=(x=(k=o==null?void 0:(S=o.slots)["preview-icon"])==null?void 0:k.call(S))!=null?x:(E=(C=o?.customIcon)==null?void 0:C.previewIcon)==null?void 0:E.call(C))!=null?_:O(cv,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(L=(N=(R=o==null?void 0:(A=o.slots)["retry-icon"])==null?void 0:R.call(A))!=null?N:(D=(M=o?.customIcon)==null?void 0:M.retryIcon)==null?void 0:D.call(M))!=null?L:O(X1,null,null)]),!o?.disabled&&o?.showRemoveButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(G=(q=(F=o==null?void 0:(B=o.slots)["remove-icon"])==null?void 0:F.call(B))!=null?q:(z=(j=o?.customIcon)==null?void 0:j.removeIcon)==null?void 0:z.call(j))!=null?G:O(ic,null,null)]),(Q=o==null?void 0:(ee=o.slots)["extra-button"])==null?void 0:Q.call(ee,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),gUe=be({name:"UploadList",components:{UploadListItem:$ne,UploadPictureItem:Nne},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Ee("upload"),r=V(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>pn(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(Nne,{file:a,key:`item-${s}`},null):O($ne,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>O(z1,{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))]}})}}),j6=be({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:f,showPreviewButton:h,imageLoading:p,download:m,showLink:g}=Jt(e),b=Ee("upload"),{mergedDisabled:S,eventHandlers:k}=So({disabled:o}),C=pe([]),E=new Map,x=new Map,_=V(()=>e.limit>0&&C.value.length>=e.limit),A=ae=>{E.clear();const xe=ae?.map(($e,ge)=>{var Oe,Fe,Xe;const Je=(Oe=$e.status)!=null?Oe:"done",Ke=Wt({...$e,uid:(Fe=$e.uid)!=null?Fe:`${Date.now()}${ge}`,status:Je,percent:(Xe=$e.percent)!=null?Xe:["error","init"].indexOf(Je)>-1?0:1});return E.set(Ke.uid,Ke),Ke});C.value=xe??[]};A(e.defaultFileList),Dt(r,ae=>{ae&&A(ae)},{immediate:!0,deep:!0});const R=ae=>{var xe,$e;t("update:fileList",C.value),t("change",C.value,ae),($e=(xe=k.value)==null?void 0:xe.onChange)==null||$e.call(xe)},M=(ae,xe)=>{for(const $e of C.value)if($e.uid===ae){$e.file=xe,R($e);break}},D=ae=>{const xe=(Xe,Je)=>{const Ke=E.get(ae.uid);Ke&&(Ke.status="uploading",Ke.percent=Xe,t("progress",Ke,Je),R(Ke))},$e=Xe=>{const Je=E.get(ae.uid);Je&&(Je.status="done",Je.percent=1,Je.response=Xe,e.responseUrlKey&&(pn(e.responseUrlKey)?Je.url=e.responseUrlKey(Je):Xe[e.responseUrlKey]&&(Je.url=Xe[e.responseUrlKey])),x.delete(Je.uid),t("success",Je),R(Je))},ge=Xe=>{const Je=E.get(ae.uid);Je&&(Je.status="error",Je.percent=0,Je.response=Xe,x.delete(Je.uid),t("error",Je),R(Je))},Oe={fileItem:ae,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:xe,onSuccess:$e,onError:ge};ae.status="uploading",ae.percent=0;const Fe=pn(e.customRequest)?e.customRequest(Oe):GVe(Oe);x.set(ae.uid,Fe),R(ae)},N=ae=>{var xe;const $e=x.get(ae.uid);if($e){(xe=$e.abort)==null||xe.call($e),x.delete(ae.uid);const ge=E.get(ae.uid);ge&&(ge.status="error",ge.percent=0,R(ge))}},L=ae=>{if(ae){const xe=E.get(ae.uid);xe&&D(xe)}else for(const xe of C.value)xe.status==="init"&&D(xe)},B=async(ae,xe)=>{const $e=`${Date.now()}-${xe}`,ge=qVe(ae)?URL.createObjectURL(ae):void 0,Oe=Wt({uid:$e,file:ae,url:ge,name:ae.name,status:"init",percent:0});E.set($e,Oe),C.value=[...C.value,Oe],R(Oe),e.autoUpload&&D(Oe)},F=ae=>{if(e.limit>0&&C.value.length+ae.length>e.limit){t("exceedLimit",C.value,ae);return}for(let xe=0;xe{ge&&B(gl(ge)?$e:ge,xe)}).catch(ge=>{console.error(ge)}):B($e,xe)}},j=ae=>{C.value=C.value.filter(xe=>xe.uid!==ae.uid),R(ae)},z=ae=>{pn(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(ae)).then(xe=>{xe&&j(ae)}).catch(xe=>{console.error(xe)}):j(ae)},q=ae=>{if(e.imagePreview&&ae.url){const xe=oe.value.indexOf(ae.url);xe>-1&&(X.value=xe,Q.value=!0)}t("preview",ae)};Wr(Y3,Wt({disabled:S,listType:a,iconCls:`${b}-icon`,showRemoveButton:f,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:m,customIcon:s,slots:n,onUpload:D,onAbort:N,onRemove:z,onPreview:q}));const G=V(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),ee=()=>{const ae=O(JVe,{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&&!(ar(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:G.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[ae,O("div",{class:`${b}-tip`},[e.tip])]):ae},Q=pe(!1),X=pe(0),K=ae=>{X.value=ae},te=ae=>{Q.value=ae},oe=V(()=>C.value.filter(ae=>!!ae.url).map(ae=>ae.url));return{prefixCls:b,render:()=>e.showFileList?O("div",{class:[`${b}-wrapper`,`${b}-wrapper-type-${e.listType}`]},[e.imagePreview&&oe.value.length>0&&O(zS,{srcList:oe.value,visible:Q.value,current:X.value,onChange:K,onVisibleChange:te},null),e.listType!=="picture-card"&&e.showUploadButton&&ee(),O(gUe,{fileList:C.value,listType:e.listType},{"upload-button":ee,"upload-item":n["upload-item"]})]):e.showUploadButton&&ee(),innerSubmit:L,innerAbort:N,innerUpdateFile:M,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 yUe=Object.assign(j6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+j6.name,j6)}});var V6=be({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=Ee("overflow-list"),o=pe(),a=pe(),s=pe(),l={},c=[],f=pe(0),h=pe(0),p=V(()=>h.value>0),m=pe(0),g=V(()=>e.from==="start");Dt(f,(k,C)=>{h.value>0&&(h.value+=k-C,h.value<0&&(h.value=0))}),Dt(h,k=>{t("change",k)});const b=()=>{var k,C,E;if(o.value&&l.value&&s.value){const x=s.value.offsetWidth;if(x>1&&(h.value===0||xb(),{flush:"post"}),ln(()=>{s.value&&s.value.offsetWidth<1&&b()});const S=()=>{var k,C;const E=g.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:a,class:`${r}-overflow`,style:E},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:O(dz,null,{default:()=>[He("+"),h.value]})])};return()=>{var k,C;l.value=uf((k=n.default)==null?void 0:k.call(n)),f.value!==l.value.length&&(f.value=l.value.length,c.length=f.value);let E=l.value;h.value>0&&(E=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const x=h.value===0||g.value?E.length-1:E.length;for(let _=0;_0&&S(),E,!g.value&&h.value>0&&S(),O(dv,{onResize:b},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const bUe=Object.assign(V6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+V6.name,V6)}});var U6=be({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=Ee("verification-code"),r=Ee("input"),o=pe([]),a=V(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=V(()=>e.masked?"password":"text"),l=V(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=V(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,E)=>Rte(k[E])?String(k[E]):"")}),f=pe(c.value);Dt(a,()=>{f.value=c.value});const h=()=>{const k=f.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(!(Rte(k)&&f.value[k])){for(let C=0;C{k.preventDefault();const{clipboardData:E}=k,x=E?.getData("text");x&&(x.split("").forEach((_,A)=>{if(!(C+A>=e.length)){if(pn(e.formatter)){const R=e.formatter(_,C+A,f.value.join(""));if(R===!1){C-=1;return}ts(R)&&(_=R.charAt(0))}f.value[C+A]=_}}),h())},b=(k,C)=>{const E=C.code||C.key;E===afe.code&&!f.value[k]?(C.preventDefault(),f.value[Math.max(k-1,0)]="",h()):E===yRe.code&&k>0?(C.preventDefault(),p(k-1)):E===bRe.code&&f.value[k]&&k{let x=(C||"").trim().charAt(C.length-1);if(t("input",x,k,E),pn(e.formatter)){const _=e.formatter(x,k,f.value.join(""));if(_===!1)return;ts(_)&&(x=_.charAt(0))}f.value[k]=x,h()};return()=>O("div",{class:n},[f.value.map((k,C)=>{var E;return O(Ft,null,[O(xv,{key:C,ref:x=>o.value[C]=x,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>m(C),onInput:(x,_)=>S(C,x,_),onKeydown:x=>b(C,x),onPaste:x=>g(x,C)},null),(E=e.separator)==null?void 0:E.call(e,C,k)])})])}});const _Ue=Object.assign(U6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+U6.name,U6)}}),SUe=typeof window<"u"?window:void 0;function kUe(e){var t;const n=ot(e);return(t=n?.$el)!=null?t:n}function wUe(e){return i3()?(xU(e),!0):!1}function xpe(e,t,n={}){const{window:r=SUe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Dt(()=>kUe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),f=()=>{l(),c()};return wUe(f),{isSupported:a,stop:f}}const z6="arco-theme",nx={Dark:"dark",Light:"light"},CUe=e=>{const t=pe(nx.Light),n=o=>{t.value=o},r=o=>o.getAttribute(z6)===nx.Dark?nx.Dark:nx.Light;return xpe(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===z6){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[z6],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function EUe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xUe(e){return Object.entries(e).map(([t,n])=>`${EUe(t)}:${n}`).join(";")}function TUe(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:f}=Jt(e),h=Ee("watermark"),p=window.devicePixelRatio||1,m=Jm(),g=pe(new Map),b=V(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontSize)!=null?K:16}),S=V(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontWeight)!=null?K:"normal"}),k=V(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontStyle)!=null?K:"normal"}),C=V(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontFamily)!=null?K:"sans-serif"}),E=V(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.textAlign)!=null?K:"center"}),x=V(()=>qn(e.content)?e.content:[e.content]),_=V(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.color)!=null?K:Q.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),A=V(()=>{var X,K;return(K=(X=e.gap)==null?void 0:X[0])!=null?K:90}),R=V(()=>{var X,K;return(K=(X=e.gap)==null?void 0:X[1])!=null?K:90}),M=V(()=>A.value/2),D=V(()=>R.value/2),N=V(()=>{var X,K;return(K=(X=e.offset)==null?void 0:X[0])!=null?K:M.value}),L=V(()=>{var X,K;return(K=(X=e.offset)==null?void 0:X[1])!=null?K:D.value}),B=V(()=>{var X;const K=N.value-M.value,te=L.value-D.value;return{position:"absolute",left:K>0?`${K}px`:0,top:te>0?`${te}px`:0,width:K>0?`calc(100% - ${K}px)`:"100%",height:te>0?`calc(100% - ${te}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${K>0?0:K}px ${te>0?0:te}px`,zIndex:(X=e.zIndex)!=null?X:6}}),F=V(()=>e.repeat&&e.staggered),j=(X,K)=>{var te;if(m.value){const oe=g.value.get(m.value);oe&&(m.value.contains(oe)&&m.value.removeChild(oe),g.value.delete(m.value));const ue=document.createElement("div");ue.setAttribute("style",xUe({...B.value,backgroundImage:`url('${X}')`,backgroundSize:`${K}px`})),(te=m.value)==null||te.append(ue),g.value.set(m.value,ue)}},z=X=>{var K,te;let oe=120,ue=28;if(!a.value&&X.measureText){X.font=`${b.value}px ${C.value}`;const ae=x.value.map(xe=>X.measureText(xe).width);oe=Math.ceil(Math.max(...ae)),ue=b.value*x.value.length+(x.value.length-1)*3}return[(K=r.value)!=null?K:oe,(te=o.value)!=null?te:ue]},q=()=>{var X;const K=document.createElement("canvas"),te=K.getContext("2d");if(!te)return;const[oe,ue]=z(te),ae=oe*p,xe=ue*p,$e=(A.value+oe)*p,ge=(R.value+ue)*p,Oe=A.value/2*p,Fe=R.value/2*p,Xe=$e/2,Je=ge/2,Ke=F.value?2:1,_e=(A.value+oe)*Ke;K.width=$e*Ke,K.height=ge*Ke,te.globalAlpha=l.value,te.save(),te.translate(Xe,Je),te.rotate(Math.PI/180*s.value),te.translate(-Xe,-Je);const ye=()=>{te.restore(),F.value&&te.drawImage(K,0,0,$e,ge,$e,ge,$e,ge),f.value&&TUe(K),j(K.toDataURL(),_e)};if(a.value){const Me=new Image;Me.onload=()=>{te.drawImage(Me,Oe,Fe,ae,xe),ye()},Me.crossOrigin="anonymous",Me.referrerPolicy="no-referrer",Me.src=a.value}else{const Me=Number(b.value)*p;te.font=`${k.value} normal ${S.value} ${Me}px/${ue}px ${C.value}`,te.fillStyle=_.value,te.textAlign=E.value,te.textBaseline="top",te.translate(ae/2,0),(X=x.value)==null||X.forEach((We,qe)=>{te.fillText(We??"",Oe,Fe+qe*(Me+3*p))}),ye()}},G=X=>Array.from(g.value.values()).includes(X),ee=X=>{if(e.antiTamper)for(const K of X){const te=Array.from(K.removedNodes).some(ue=>G(ue)),oe=K.type==="attributes"&&G(K.target);if(te||oe){q();break}}},{theme:Q}=CUe(q);return ln(()=>{q(),xpe(m.value,ee,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Dt(e,q,{deep:!0,flush:"post"}),()=>{var X;return O("div",Bt({ref:m,class:h,style:{position:"relative",overflow:"hidden"}},n),[(X=t.default)==null?void 0:X.call(t)])}}});const AUe=Object.assign(H6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+H6.name,H6)}});function IUe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var LUe=be({name:"TreeSelectPanel",components:{Tree:pj},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}=Jt(e),{displayScrollbar:s,scrollbarProps:l}=I3(a),c=Ee("tree-select"),f=pe(),h=V(()=>({...o.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(b,S)=>{var k,C;n.value?(C=(k=f.value)==null?void 0:k.toggleCheck)==null||C.call(k,b[0],S):t("change",b)},m=b=>{t("change",b)},g=()=>O(pj,Bt({ref:f},h.value,{onSelect:p,onCheck:m}),e.treeSlots);return()=>{if(s.value){let b;return O(kd,Bt({class:`${c}-tree-wrapper`},l.value),IUe(b=g())?b:{default:()=>[b]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function zz(e){return ar(e)}function Tpe(e){return e!=null&&e!==""}function Hz(e){return zz(e)?e.value:e}function PUe(e){return zz(e)?e.label:void 0}function Bne(e){const t=Hz(e);return Tpe(t)}function Fne(e){return e.map(Hz).filter(Tpe)}function RUe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=Jt(e);function f(_){const A=(qn(_)?_:[_]).filter(Bne);return a?.value||s?.value?A:A.slice(0,1)}function h(_,A){const R=[],M=_?_.filter(Bne):[];if(M.length){const D=new Map;A?.forEach(N=>{D.set(N.value,N)}),M.forEach(N=>{var L,B,F,j,z;const q=Hz(N),G=D.get(q),ee=o.value.get(q);let Q=null;const X=((L=c?.value)==null?void 0:L.title)||"title";if(!ee){const K=pn(l?.value)?l?.value(q):l?.value;if(K===!1)return;ar(K)&&(Q=K)}R.push({...zz(N)?N:{},...G||{},value:q,label:(z=(j=(F=(B=PUe(N))!=null?B:ee?.title)!=null?F:G?.label)!=null?j:Q?.[X])!=null?z:q})})}return R}const p=pe(),m=pe();Cs(()=>{var _;const A=r?.value!==void 0,R=f((_=r?.value)!=null?_:[]),M=Fne(R);m.value=A?h(M,h(R)):void 0,p.value=A?M:void 0});const g=f((t=n?.value)!=null?t:[]),b=Fne(g),S=h(b,h(g)),k=pe(b||[]),C=pe(S);Dt(k,()=>{C.value=h(k.value,S)}),Dt([p,m],([_,A])=>{k.value=_||[],C.value=A||[]});const E=V(()=>{var _;return(_=p.value)!=null?_:k.value}),x=V(()=>{var _;return(_=m.value)!=null?_:C.value});return{selectedKeys:E,selectedValue:x,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function MUe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=Jt(e),s=V(()=>{var b;return((b=a.value)==null?void 0:b.key)||"key"}),l=(b,S)=>{const k=S[s.value];return!mn(k)&&String(k).indexOf(b)>-1},c=V(()=>r?.value||l),f=pe(),h=V(()=>!!t.value),p=V(()=>!o?.value&&h.value&&f.value&&f.value.size===0),m=V(()=>o?.value?void 0:b=>{var S,k;if(!h.value)return!0;const C=b[s.value];return(k=(S=f.value)==null?void 0:S.has(C||""))!=null?k:!1}),g=F2((b,S)=>{const k=b.filter(E=>c.value(S,E.treeNodeData)),C=new Set;k.forEach(E=>{C.add(E.key),E.pathParentKeys.forEach(x=>{C.add(x)})}),f.value=C},100);return Cs(()=>{o?.value?f.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:m}}function DUe(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 OUe=be({name:"TreeSelect",components:{Trigger:oa,SelectView:NA,Panel:LUe,Empty:Vh,Spin:Sd},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:f,defaultPopupVisible:h,treeCheckable:p,treeCheckStrictly:m,data:g,fieldNames:b,disabled:S,labelInValue:k,filterTreeNode:C,disableFilter:E,dropdownStyle:x,treeProps:_,fallbackOption:A,selectable:R,dropdownClassName:M}=Jt(e),{mergedDisabled:D,eventHandlers:N}=So({disabled:S}),L=Ee("tree-select"),B=xn(ja,void 0),F=(a=(o=B==null?void 0:(r=B.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],j=V(()=>c.value||p.value),z=(ct,Tt)=>{var xt;return R.value==="leaf"?Tt.isLeaf:pn(R.value)?R.value(ct,Tt):(xt=R.value)!=null?xt:!1},q=V(()=>p.value?z:!1),G=V(()=>ar(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:ee,key2TreeNode:Q}=mpe(Wt({treeData:g,fieldNames:b,selectable:z,checkable:q})),{selectedKeys:X,selectedValue:K,setLocalSelectedKeys:te,localSelectedKeys:oe,localSelectedValue:ue}=RUe(Wt({defaultValue:s,modelValue:l,key2TreeNode:Q,multiple:c,treeCheckable:p,treeCheckStrictly:m,fallbackOption:A,fieldNames:b}));function ae(ct){return p.value?og(ct):uj(ct)}const xe=V(()=>mn(K.value)?[]:j.value&&!D.value?K.value.map(ct=>{const Tt=Q.value.get(ct.value);return{...ct,closable:!Tt||ae(Tt)}}):K.value),$e=ct=>{te(ct),kn(()=>{var Tt,xt;const qt=(k.value?ue.value:oe.value)||[],Gt=j.value?qt:qt[0];t("update:modelValue",Gt),t("change",Gt),(xt=(Tt=N.value)==null?void 0:Tt.onChange)==null||xt.call(Tt)})},ge=pe(e.defaultInputValue),Oe=V(()=>{var ct;return(ct=e.inputValue)!=null?ct:ge.value}),Fe=ct=>{ge.value=ct,t("update:inputValue",ct),t("inputValueChange",ct)},Xe=ct=>{ct!==Oe.value&&(_e(!0),Fe(ct),e.allowSearch&&t("search",ct))},[Je,Ke]=ia(h.value,Wt({value:f})),_e=ct=>{ct!==Je.value&&(Ke(ct),t("popup-visible-change",ct),t("update:popupVisible",ct)),ct||qe.value&&qe.value.blur&&qe.value.blur()},{isEmptyFilterResult:ye,filterTreeNode:Me}=MUe(Wt({searchValue:Oe,flattenTreeData:ee,filterMethod:C,disableFilter:E,fieldNames:b})),We=V(()=>!ee.value.length||ye.value),qe=pe(),st=V(()=>{var ct;return[x?.value||{},(ct=_?.value)!=null&&ct.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:qe,prefixCls:L,TreeSelectEmpty:F,selectedValue:K,selectedKeys:X,mergedDisabled:D,searchValue:Oe,panelVisible:Je,isEmpty:We,computedFilterTreeNode:Me,isMultiple:j,selectViewValue:xe,computedDropdownStyle:st,onSearchValueChange:Xe,onSelectChange(ct){$e(ct),!G.value&&Oe.value&&Fe(""),j.value||_e(!1)},onVisibleChange:_e,onInnerClear(){$e([]),t("clear")},pickSubCompSlots:DUe,isSelectable:z,isCheckable:q,onBlur:()=>{!G.value&&Oe.value&&Fe("")},onItemRemove(ct){if(D.value)return;const Tt=Q.value.get(ct);if(p.value&&Tt){if(ae(Tt)){const[xt]=fj({node:Tt,checked:!1,checkedKeys:X.value,indeterminateKeys:[],checkStrictly:m.value});$e(xt)}}else{const xt=X.value.filter(qt=>qt!==ct);$e(xt)}}}}});function $Ue(e,t,n,r,o,a){const s=Pe("SelectView"),l=Pe("Spin"),c=Pe("Panel"),f=Pe("Trigger");return H(),Ye(f,Bt({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[I("div",{class:se([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:je(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(H(),J("div",{key:0,class:se(`${e.prefixCls}-header`)},[ft(e.$slots,"header")],2)):Ae("v-if",!0),e.loading?ft(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?ft(e.$slots,"empty",{key:2},()=>[(H(),Ye($a(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(H(),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)?(H(),J("div",{key:4,class:se(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Ae("v-if",!0)],6)]),default:de(()=>[ft(e.$slots,"trigger",{},()=>[O(s,Bt({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),yo({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[ft(e.$slots,"label",Ni(fa(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 W6=De(OUe,[["render",$Ue]]);const NUe=Object.assign(W6,{install:(e,t)=>{Vn(e,t);const n=jn(t);e.component(n+W6.name,W6)}}),vj={Button:Uo,Link:ohe,Typography:HVe,Divider:a$e,Grid:pS,Layout:xBe,Space:_Fe,Avatar:DMe,Badge:HMe,Calendar:Pfe,Card:pDe,Carousel:ADe,Collapse:GDe,Comment:C6e,ColorPicker:g6e,Descriptions:s$e,Empty:Vh,Image:tBe,Scrollbar:kd,List:Uhe,Popover:lz,Statistic:PFe,Table:yje,Tabs:Pje,Tag:dz,Timeline:jje,Tooltip:jc,AutoComplete:CMe,Cascader:NDe,Checkbox:yd,DatePicker:n$e,Form:iNe,Input:xv,InputNumber:Mk,InputTag:Ife,Mention:ZBe,Radio:_1,Rate:N9e,Select:j2,Slider:bFe,Switch:jFe,Textarea:zhe,TimePicker:$je,Transfer:Xje,Tree:pj,Upload:yUe,TreeSelect:NUe,Alert:ife,Drawer:nj,Message:Ot,Modal:mf,Notification:aj,Popconfirm:q7e,Progress:Xhe,Result:K9e,Spin:Sd,Skeleton:eFe,Breadcrumb:v8e,Dropdown:_fe,Menu:E7e,PageHeader:W7e,Pagination:Tz,Steps:$Fe,Affix:SPe,Anchor:fRe,BackTop:jMe,ConfigProvider:T6e,ResizeBox:Fhe,Trigger:oa,Split:CFe,Icon:whe,OverflowList:bUe,Watermark:AUe,VerificationCode:_Ue},BUe=(e,t)=>{for(const n of Object.keys(vj))e.use(vj[n],t)},FUe={...vj,Alter:ife,AnchorLink:AT,AvatarGroup:OT,BreadcrumbItem:FS,ButtonGroup:BS,Calendar:Pfe,CardMeta:XT,CardGrid:ZT,CarouselItem:JT,CascaderPanel:QT,CheckboxGroup:MT,CollapseItem:e4,DescriptionsItem:a4,WeekPicker:n4,MonthPicker:r4,YearPicker:i4,QuarterPicker:o4,RangePicker:s4,Doption:Wy,Dgroup:NT,Dsubmenu:BT,DropdownButton:FT,FormItem:c4,Row:VS,Col:US,GridItem:u4,ImagePreview:Gy,ImagePreviewAction:WA,ImagePreviewGroup:zS,InputGroup:Hy,InputSearch:IT,InputPassword:LT,LayoutHeader:f4,LayoutContent:h4,LayoutFooter:p4,LayoutSider:v4,ListItem:m4,ListItemMeta:g4,MenuItem:y4,MenuItemGroup:b4,SubMenu:HS,RadioGroup:YT,Option:tg,Optgroup:jS,SkeletonLine:k4,SkeletonShape:w4,Countdown:C4,Step:E4,Thead:GS,Td:Kp,Th:qS,Tr:vh,Tbody:KS,TableColumn:x4,TabPane:T4,TimelineItem:qy,TypographyParagraph:A4,TypographyTitle:I4,TypographyText:L4,install:BUe,addI18nMessages:U5e,useLocale:z5e,getLocale:H5e,useFormItem:So},jUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VUe=["stroke-width","stroke-linecap","stroke-linejoin"];function UUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,VUe)}var G6=De(jUe,[["render",UUe]]);const mj=Object.assign(G6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G6.name,G6)}}),zUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HUe=["stroke-width","stroke-linecap","stroke-linejoin"];function WUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),I("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M22 6h4v26h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,HUe)}var K6=De(zUe,[["render",WUe]]);const GUe=Object.assign(K6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K6.name,K6)}}),KUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qUe=["stroke-width","stroke-linecap","stroke-linejoin"];function YUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,qUe)}var q6=De(KUe,[["render",YUe]]);const Wz=Object.assign(q6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q6.name,q6)}}),XUe=be({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=Ee("icon"),r=V(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZUe=["stroke-width","stroke-linecap","stroke-linejoin"];function JUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,ZUe)}var Y6=De(XUe,[["render",JUe]]);const QUe=Object.assign(Y6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y6.name,Y6)}}),eze=be({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=Ee("icon"),r=V(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),I("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M26 42h-4V16h4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,tze)}var X6=De(eze,[["render",nze]]);const rze=Object.assign(X6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X6.name,X6)}}),ize=be({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=Ee("icon"),r=V(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,oze)}var Z6=De(ize,[["render",sze]]);const gj=Object.assign(Z6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z6.name,Z6)}}),aze=be({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=Ee("icon"),r=V(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lze=["stroke-width","stroke-linecap","stroke-linejoin"];function uze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1)]),14,lze)}var J6=De(aze,[["render",uze]]);const cze=Object.assign(J6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J6.name,J6)}}),dze=be({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=Ee("icon"),r=V(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 hze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1)]),14,fze)}var Q6=De(dze,[["render",hze]]);const pze=Object.assign(Q6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q6.name,Q6)}}),vze=be({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=Ee("icon"),r=V(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),I("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,mze)}var eO=De(vze,[["render",gze]]);const yze=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),bze=be({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=Ee("icon"),r=V(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_ze=["stroke-width","stroke-linecap","stroke-linejoin"];function Sze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1)]),14,_ze)}var tO=De(bze,[["render",Sze]]);const Ape=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),kze=be({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=Ee("icon"),r=V(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wze=["stroke-width","stroke-linecap","stroke-linejoin"];function Cze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,wze)}var nO=De(kze,[["render",Cze]]);const Eze=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),xze=be({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=Ee("icon"),r=V(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,Tze)}var rO=De(xze,[["render",Aze]]);const Ize=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),Lze=be({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=Ee("icon"),r=V(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pze=["stroke-width","stroke-linecap","stroke-linejoin"];function Rze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,Pze)}var iO=De(Lze,[["render",Rze]]);const Mze=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),Dze=be({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=Ee("icon"),r=V(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Oze=["stroke-width","stroke-linecap","stroke-linejoin"];function $ze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,Oze)}var oO=De(Dze,[["render",$ze]]);const Nze=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),Bze=be({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=Ee("icon"),r=V(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1)]),14,Fze)}var sO=De(Bze,[["render",jze]]);const Ipe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),Vze=be({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=Ee("icon"),r=V(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 zze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),I("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Uze)}var aO=De(Vze,[["render",zze]]);const Hze=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),Wze=be({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=Ee("icon"),r=V(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Gze=["stroke-width","stroke-linecap","stroke-linejoin"];function Kze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),I("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Gze)}var lO=De(Wze,[["render",Kze]]);const qze=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),Yze=be({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=Ee("icon"),r=V(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Zze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),I("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Xze)}var uO=De(Yze,[["render",Zze]]);const Jze=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),Qze=be({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=Ee("icon"),r=V(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eHe=["stroke-width","stroke-linecap","stroke-linejoin"];function tHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,eHe)}var cO=De(Qze,[["render",tHe]]);const nHe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),rHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,iHe)}var dO=De(rHe,[["render",oHe]]);const sHe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),aHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lHe=["stroke-width","stroke-linecap","stroke-linejoin"];function uHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1)]),14,lHe)}var fO=De(aHe,[["render",uHe]]);const cHe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),dHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 hHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fHe)}var hO=De(dHe,[["render",hHe]]);const pHe=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),vHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mHe=["stroke-width","stroke-linecap","stroke-linejoin"];function gHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1)]),14,mHe)}var pO=De(vHe,[["render",gHe]]);const yHe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),bHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 SHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,_He)}var vO=De(bHe,[["render",SHe]]);const Ec=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),kHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wHe=["stroke-width","stroke-linecap","stroke-linejoin"];function CHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1)]),14,wHe)}var mO=De(kHe,[["render",CHe]]);const EHe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),xHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 AHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,THe)}var gO=De(xHe,[["render",AHe]]);const IHe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),LHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PHe=["stroke-width","stroke-linecap","stroke-linejoin"];function RHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1)]),14,PHe)}var yO=De(LHe,[["render",RHe]]);const dh=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),MHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DHe=["stroke-width","stroke-linecap","stroke-linejoin"];function OHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,DHe)}var bO=De(MHe,[["render",OHe]]);const sh=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),$He=be({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=Ee("icon"),r=V(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NHe=["stroke-width","stroke-linecap","stroke-linejoin"];function BHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,NHe)}var _O=De($He,[["render",BHe]]);const FHe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),jHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VHe=["stroke-width","stroke-linecap","stroke-linejoin"];function UHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,VHe)}var SO=De(jHe,[["render",UHe]]);const zHe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),HHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WHe=["stroke-width","stroke-linecap","stroke-linejoin"];function GHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1)]),14,WHe)}var kO=De(HHe,[["render",GHe]]);const KHe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),qHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YHe=["stroke-width","stroke-linecap","stroke-linejoin"];function XHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1)]),14,YHe)}var wO=De(qHe,[["render",XHe]]);const ZHe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),JHe=be({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=Ee("icon"),r=V(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QHe=["stroke-width","stroke-linecap","stroke-linejoin"];function eWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QHe)}var CO=De(JHe,[["render",eWe]]);const Gz=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),tWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nWe=["stroke-width","stroke-linecap","stroke-linejoin"];function rWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1)]),14,nWe)}var EO=De(tWe,[["render",rWe]]);const iWe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),oWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sWe=["stroke-width","stroke-linecap","stroke-linejoin"];function aWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1)]),14,sWe)}var xO=De(oWe,[["render",aWe]]);const lWe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),uWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cWe=["stroke-width","stroke-linecap","stroke-linejoin"];function dWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1)]),14,cWe)}var TO=De(uWe,[["render",dWe]]);const fWe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),hWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pWe=["stroke-width","stroke-linecap","stroke-linejoin"];function vWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1)]),14,pWe)}var AO=De(hWe,[["render",vWe]]);const mWe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),gWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1)]),14,yWe)}var IO=De(gWe,[["render",bWe]]);const Lpe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),_We=be({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=Ee("icon"),r=V(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SWe=["stroke-width","stroke-linecap","stroke-linejoin"];function kWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1)]),14,SWe)}var LO=De(_We,[["render",kWe]]);const wWe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),CWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 xWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1)]),14,EWe)}var PO=De(CWe,[["render",xWe]]);const hv=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),TWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AWe=["stroke-width","stroke-linecap","stroke-linejoin"];function IWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1)]),14,AWe)}var RO=De(TWe,[["render",IWe]]);const LWe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),PWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 MWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,RWe)}var MO=De(PWe,[["render",MWe]]);const Ppe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),DWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OWe=["stroke-width","stroke-linecap","stroke-linejoin"];function $We(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,OWe)}var DO=De(DWe,[["render",$We]]);const X3=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),NWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 FWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1)]),14,BWe)}var OO=De(NWe,[["render",FWe]]);const Z3=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),jWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 UWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1)]),14,VWe)}var $O=De(jWe,[["render",UWe]]);const k1=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),zWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HWe=["stroke-width","stroke-linecap","stroke-linejoin"];function WWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),I("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,HWe)}var NO=De(zWe,[["render",WWe]]);const J3=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),GWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KWe=["stroke-width","stroke-linecap","stroke-linejoin"];function qWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,KWe)}var BO=De(GWe,[["render",qWe]]);const Q3=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),YWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XWe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1)]),14,XWe)}var FO=De(YWe,[["render",ZWe]]);const Rpe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),JWe=be({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=Ee("icon"),r=V(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,QWe)}var jO=De(JWe,[["render",eGe]]);const Kz=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),tGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nGe=["stroke-width","stroke-linecap","stroke-linejoin"];function rGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1)]),14,nGe)}var VO=De(tGe,[["render",rGe]]);const iGe=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),oGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sGe=["stroke-width","stroke-linecap","stroke-linejoin"];function aGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1)]),14,sGe)}var UO=De(oGe,[["render",aGe]]);const lGe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),uGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cGe=["stroke-width","stroke-linecap","stroke-linejoin"];function dGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,cGe)}var zO=De(uGe,[["render",dGe]]);const fGe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),hGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 vGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1)]),14,pGe)}var HO=De(hGe,[["render",vGe]]);const mGe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),gGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1)]),14,yGe)}var WO=De(gGe,[["render",bGe]]);const tf=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),_Ge=be({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=Ee("icon"),r=V(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SGe=["stroke-width","stroke-linecap","stroke-linejoin"];function kGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1)]),14,SGe)}var GO=De(_Ge,[["render",kGe]]);const wGe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),CGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 xGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1)]),14,EGe)}var KO=De(CGe,[["render",xGe]]);const Rm=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),TGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 IGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,AGe)}var qO=De(TGe,[["render",IGe]]);const LGe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),PGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RGe=["stroke-width","stroke-linecap","stroke-linejoin"];function MGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1)]),14,RGe)}var YO=De(PGe,[["render",MGe]]);const DGe=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),OGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 NGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,$Ge)}var XO=De(OGe,[["render",NGe]]);const BGe=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),FGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,jGe)}var ZO=De(FGe,[["render",VGe]]);const zh=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),UGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 HGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1)]),14,zGe)}var JO=De(UGe,[["render",HGe]]);const WGe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),GGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 qGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1)]),14,KGe)}var QO=De(GGe,[["render",qGe]]);const YGe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),XGe=be({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=Ee("icon"),r=V(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1)]),14,ZGe)}var e$=De(XGe,[["render",JGe]]);const QGe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),eKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1)]),14,tKe)}var t$=De(eKe,[["render",nKe]]);const qz=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),rKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iKe=["stroke-width","stroke-linecap","stroke-linejoin"];function oKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1)]),14,iKe)}var n$=De(rKe,[["render",oKe]]);const sKe=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),aKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 uKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1)]),14,lKe)}var r$=De(aKe,[["render",uKe]]);const cKe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),dKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 hKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1)]),14,fKe)}var i$=De(dKe,[["render",hKe]]);const pKe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),vKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1)]),14,mKe)}var o$=De(vKe,[["render",gKe]]);const yKe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),bKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1)]),14,_Ke)}var s$=De(bKe,[["render",SKe]]);const kKe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),wKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CKe=["stroke-width","stroke-linecap","stroke-linejoin"];function EKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,CKe)}var a$=De(wKe,[["render",EKe]]);const xKe=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),TKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AKe=["stroke-width","stroke-linecap","stroke-linejoin"];function IKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,AKe)}var l$=De(TKe,[["render",IKe]]);const LKe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),PKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,RKe)}var u$=De(PKe,[["render",MKe]]);const DKe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),OKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 NKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1)]),14,$Ke)}var c$=De(OKe,[["render",NKe]]);const BKe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),FKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jKe=["stroke-width","stroke-linecap","stroke-linejoin"];function VKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jKe)}var d$=De(FKe,[["render",VKe]]);const Mpe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),UKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 HKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1)]),14,zKe)}var f$=De(UKe,[["render",HKe]]);const WKe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),GKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KKe=["stroke-width","stroke-linecap","stroke-linejoin"];function qKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1)]),14,KKe)}var h$=De(GKe,[["render",qKe]]);const YKe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),XKe=be({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=Ee("icon"),r=V(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1)]),14,ZKe)}var p$=De(XKe,[["render",JKe]]);const QKe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),eqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tqe=["stroke-width","stroke-linecap","stroke-linejoin"];function nqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1)]),14,tqe)}var v$=De(eqe,[["render",nqe]]);const rqe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),iqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oqe=["stroke-width","stroke-linecap","stroke-linejoin"];function sqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1)]),14,oqe)}var m$=De(iqe,[["render",sqe]]);const Dpe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),aqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 uqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1)]),14,lqe)}var g$=De(aqe,[["render",uqe]]);const cqe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),dqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fqe=["stroke-width","stroke-linecap","stroke-linejoin"];function hqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,fqe)}var y$=De(dqe,[["render",hqe]]);const pqe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),vqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1)]),14,mqe)}var b$=De(vqe,[["render",gqe]]);const yqe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),bqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1)]),14,_qe)}var _$=De(bqe,[["render",Sqe]]);const kqe=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),wqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Eqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,Cqe)}var S$=De(wqe,[["render",Eqe]]);const xqe=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),Tqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Iqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1)]),14,Aqe)}var k$=De(Tqe,[["render",Iqe]]);const Lqe=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),Pqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Mqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1)]),14,Rqe)}var w$=De(Pqe,[["render",Mqe]]);const Dqe=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),Oqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Nqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,$qe)}var C$=De(Oqe,[["render",Nqe]]);const Bqe=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),Fqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Vqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1)]),14,jqe)}var E$=De(Fqe,[["render",Vqe]]);const Uqe=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),zqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Wqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,Hqe)}var x$=De(zqe,[["render",Wqe]]);const Gqe=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),Kqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Yqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),I("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,qqe)}var T$=De(Kqe,[["render",Yqe]]);const Xqe=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Zqe=be({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=Ee("icon"),r=V(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Qqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Jqe)}var A$=De(Zqe,[["render",Qqe]]);const eYe=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),tYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 rYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,nYe)}var I$=De(tYe,[["render",rYe]]);const iYe=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),oYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sYe=["stroke-width","stroke-linecap","stroke-linejoin"];function aYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1)]),14,sYe)}var L$=De(oYe,[["render",aYe]]);const lYe=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),uYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cYe=["stroke-width","stroke-linecap","stroke-linejoin"];function dYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1)]),14,cYe)}var P$=De(uYe,[["render",dYe]]);const fYe=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),hYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pYe=["stroke-width","stroke-linecap","stroke-linejoin"];function vYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1)]),14,pYe)}var R$=De(hYe,[["render",vYe]]);const mYe=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),gYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yYe=["stroke-width","stroke-linecap","stroke-linejoin"];function bYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1)]),14,yYe)}var M$=De(gYe,[["render",bYe]]);const Ope=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),_Ye=be({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=Ee("icon"),r=V(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SYe=["stroke-width","stroke-linecap","stroke-linejoin"];function kYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1)]),14,SYe)}var D$=De(_Ye,[["render",kYe]]);const $pe=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),wYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CYe=["stroke-width","stroke-linecap","stroke-linejoin"];function EYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,CYe)}var O$=De(wYe,[["render",EYe]]);const xYe=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),TYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AYe=["stroke-width","stroke-linecap","stroke-linejoin"];function IYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1)]),14,AYe)}var $$=De(TYe,[["render",IYe]]);const LYe=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),PYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RYe=["stroke-width","stroke-linecap","stroke-linejoin"];function MYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,RYe)}var N$=De(PYe,[["render",MYe]]);const DYe=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),OYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ye=["stroke-width","stroke-linecap","stroke-linejoin"];function NYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1)]),14,$Ye)}var B$=De(OYe,[["render",NYe]]);const BYe=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),FYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jYe=["stroke-width","stroke-linecap","stroke-linejoin"];function VYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,jYe)}var F$=De(FYe,[["render",VYe]]);const UYe=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),zYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HYe=["stroke-width","stroke-linecap","stroke-linejoin"];function WYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,HYe)}var j$=De(zYe,[["render",WYe]]);const GYe=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),KYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qYe=["stroke-width","stroke-linecap","stroke-linejoin"];function YYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qYe)}var V$=De(KYe,[["render",YYe]]);const XYe=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),ZYe=be({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=Ee("icon"),r=V(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JYe=["stroke-width","stroke-linecap","stroke-linejoin"];function QYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JYe)}var U$=De(ZYe,[["render",QYe]]);const eXe=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),tXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nXe=["stroke-width","stroke-linecap","stroke-linejoin"];function rXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,nXe)}var z$=De(tXe,[["render",rXe]]);const iXe=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),oXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sXe=["stroke-width","stroke-linecap","stroke-linejoin"];function aXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,sXe)}var H$=De(oXe,[["render",aXe]]);const lXe=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),uXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cXe=["stroke-width","stroke-linecap","stroke-linejoin"];function dXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,cXe)}var W$=De(uXe,[["render",dXe]]);const fXe=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),hXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pXe=["stroke-width","stroke-linecap","stroke-linejoin"];function vXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1)]),14,pXe)}var G$=De(hXe,[["render",vXe]]);const mXe=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),gXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yXe=["stroke-width","stroke-linecap","stroke-linejoin"];function bXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1)]),14,yXe)}var K$=De(gXe,[["render",bXe]]);const _Xe=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),SXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 wXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1)]),14,kXe)}var q$=De(SXe,[["render",wXe]]);const Yz=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),CXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 xXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1)]),14,EXe)}var Y$=De(CXe,[["render",xXe]]);const GA=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),TXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AXe=["stroke-width","stroke-linecap","stroke-linejoin"];function IXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1)]),14,AXe)}var X$=De(TXe,[["render",IXe]]);const LXe=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),PXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RXe=["stroke-width","stroke-linecap","stroke-linejoin"];function MXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1)]),14,RXe)}var Z$=De(PXe,[["render",MXe]]);const DXe=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),OXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Xe=["stroke-width","stroke-linecap","stroke-linejoin"];function NXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,$Xe)}var J$=De(OXe,[["render",NXe]]);const BXe=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),FXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jXe=["stroke-width","stroke-linecap","stroke-linejoin"];function VXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1)]),14,jXe)}var Q$=De(FXe,[["render",VXe]]);const pl=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),UXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 HXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),I("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,zXe)}var eN=De(UXe,[["render",HXe]]);const U2=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),WXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GXe=["stroke-width","stroke-linecap","stroke-linejoin"];function KXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1)]),14,GXe)}var tN=De(WXe,[["render",KXe]]);const qXe=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),YXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 ZXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,XXe)}var nN=De(YXe,[["render",ZXe]]);const JXe=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),QXe=be({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=Ee("icon"),r=V(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eZe=["stroke-width","stroke-linecap","stroke-linejoin"];function tZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),I("path",{d:"M38 6v36"},null,-1)]),14,eZe)}var rN=De(QXe,[["render",tZe]]);const nZe=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),rZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iZe=["stroke-width","stroke-linecap","stroke-linejoin"];function oZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),I("path",{d:"M10 6v36"},null,-1)]),14,iZe)}var iN=De(rZe,[["render",oZe]]);const sZe=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),aZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lZe=["stroke-width","stroke-linecap","stroke-linejoin"];function uZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),I("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1)]),14,lZe)}var oN=De(aZe,[["render",uZe]]);const cZe=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),dZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 hZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),I("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),I("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),I("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,fZe)}var sN=De(dZe,[["render",hZe]]);const pZe=Object.assign(sN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sN.name,sN)}}),vZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),I("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),I("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1)]),14,mZe)}var aN=De(vZe,[["render",gZe]]);const yZe=Object.assign(aN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aN.name,aN)}}),bZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function SZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[mg('',5)]),14,_Ze)}var lN=De(bZe,[["render",SZe]]);const kZe=Object.assign(lN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lN.name,lN)}}),wZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CZe=["stroke-width","stroke-linecap","stroke-linejoin"];function EZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1)]),14,CZe)}var uN=De(wZe,[["render",EZe]]);const xZe=Object.assign(uN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uN.name,uN)}}),TZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AZe=["stroke-width","stroke-linecap","stroke-linejoin"];function IZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,AZe)}var cN=De(TZe,[["render",IZe]]);const LZe=Object.assign(cN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cN.name,cN)}}),PZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RZe=["stroke-width","stroke-linecap","stroke-linejoin"];function MZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1)]),14,RZe)}var dN=De(PZe,[["render",MZe]]);const DZe=Object.assign(dN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dN.name,dN)}}),OZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function NZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$Ze)}var fN=De(OZe,[["render",NZe]]);const BZe=Object.assign(fN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fN.name,fN)}}),FZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jZe=["stroke-width","stroke-linecap","stroke-linejoin"];function VZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jZe)}var hN=De(FZe,[["render",VZe]]);const UZe=Object.assign(hN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hN.name,hN)}}),zZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HZe=["stroke-width","stroke-linecap","stroke-linejoin"];function WZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1)]),14,HZe)}var pN=De(zZe,[["render",WZe]]);const GZe=Object.assign(pN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pN.name,pN)}}),KZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qZe=["stroke-width","stroke-linecap","stroke-linejoin"];function YZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qZe)}var vN=De(KZe,[["render",YZe]]);const XZe=Object.assign(vN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vN.name,vN)}}),ZZe=be({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=Ee("icon"),r=V(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JZe=["stroke-width","stroke-linecap","stroke-linejoin"];function QZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JZe)}var mN=De(ZZe,[["render",QZe]]);const eJe=Object.assign(mN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mN.name,mN)}}),tJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nJe=["stroke-width","stroke-linecap","stroke-linejoin"];function rJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,nJe)}var gN=De(tJe,[["render",rJe]]);const iJe=Object.assign(gN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gN.name,gN)}}),oJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sJe=["stroke-width","stroke-linecap","stroke-linejoin"];function aJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,sJe)}var yN=De(oJe,[["render",aJe]]);const lJe=Object.assign(yN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yN.name,yN)}}),uJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cJe=["stroke-width","stroke-linecap","stroke-linejoin"];function dJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1)]),14,cJe)}var bN=De(uJe,[["render",dJe]]);const fJe=Object.assign(bN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bN.name,bN)}}),hJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pJe=["stroke-width","stroke-linecap","stroke-linejoin"];function vJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,pJe)}var _N=De(hJe,[["render",vJe]]);const Npe=Object.assign(_N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_N.name,_N)}}),mJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1)]),14,gJe)}var SN=De(mJe,[["render",yJe]]);const bJe=Object.assign(SN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SN.name,SN)}}),_Je=be({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=Ee("icon"),r=V(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SJe=["stroke-width","stroke-linecap","stroke-linejoin"];function kJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1)]),14,SJe)}var kN=De(_Je,[["render",kJe]]);const wJe=Object.assign(kN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kN.name,kN)}}),CJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 xJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1)]),14,EJe)}var wN=De(CJe,[["render",xJe]]);const TJe=Object.assign(wN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wN.name,wN)}}),AJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IJe=["stroke-width","stroke-linecap","stroke-linejoin"];function LJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1)]),14,IJe)}var CN=De(AJe,[["render",LJe]]);const PJe=Object.assign(CN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CN.name,CN)}}),RJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 DJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1)]),14,MJe)}var EN=De(RJe,[["render",DJe]]);const OJe=Object.assign(EN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EN.name,EN)}}),$Je=be({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=Ee("icon"),r=V(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 BJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1)]),14,NJe)}var xN=De($Je,[["render",BJe]]);const FJe=Object.assign(xN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xN.name,xN)}}),jJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 UJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VJe)}var TN=De(jJe,[["render",UJe]]);const zJe=Object.assign(TN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TN.name,TN)}}),HJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WJe)}var AN=De(HJe,[["render",GJe]]);const KJe=Object.assign(AN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AN.name,AN)}}),qJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YJe)}var IN=De(qJe,[["render",XJe]]);const ZJe=Object.assign(IN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IN.name,IN)}}),JJe=be({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=Ee("icon"),r=V(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QJe)}var LN=De(JJe,[["render",eQe]]);const tQe=Object.assign(LN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LN.name,LN)}}),nQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rQe=["stroke-width","stroke-linecap","stroke-linejoin"];function iQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rQe)}var PN=De(nQe,[["render",iQe]]);const oQe=Object.assign(PN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PN.name,PN)}}),sQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aQe=["stroke-width","stroke-linecap","stroke-linejoin"];function lQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1)]),14,aQe)}var RN=De(sQe,[["render",lQe]]);const uQe=Object.assign(RN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RN.name,RN)}}),cQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dQe=["stroke-width","stroke-linecap","stroke-linejoin"];function fQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,dQe)}var MN=De(cQe,[["render",fQe]]);const hQe=Object.assign(MN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MN.name,MN)}}),pQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vQe=["stroke-width","stroke-linecap","stroke-linejoin"];function mQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,vQe)}var DN=De(pQe,[["render",mQe]]);const Bpe=Object.assign(DN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DN.name,DN)}}),gQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yQe=["stroke-width","stroke-linecap","stroke-linejoin"];function bQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),I("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1)]),14,yQe)}var ON=De(gQe,[["render",bQe]]);const _Qe=Object.assign(ON,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ON.name,ON)}}),SQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 wQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,kQe)}var $N=De(SQe,[["render",wQe]]);const Fpe=Object.assign($N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$N.name,$N)}}),CQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 xQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1)]),14,EQe)}var NN=De(CQe,[["render",xQe]]);const eL=Object.assign(NN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NN.name,NN)}}),TQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AQe=["stroke-width","stroke-linecap","stroke-linejoin"];function IQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 16h16M16 24h8"},null,-1),I("path",{d:"M24 41H8V6h32v17"},null,-1),I("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,AQe)}var BN=De(TQe,[["render",IQe]]);const LQe=Object.assign(BN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BN.name,BN)}}),PQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RQe=["stroke-width","stroke-linecap","stroke-linejoin"];function MQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1)]),14,RQe)}var FN=De(PQe,[["render",MQe]]);const DQe=Object.assign(FN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FN.name,FN)}}),OQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 NQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1)]),14,$Qe)}var jN=De(OQe,[["render",NQe]]);const tL=Object.assign(jN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jN.name,jN)}}),BQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FQe=["stroke-width","stroke-linecap","stroke-linejoin"];function jQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1)]),14,FQe)}var VN=De(BQe,[["render",jQe]]);const VQe=Object.assign(VN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VN.name,VN)}}),UQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 HQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zQe)}var UN=De(UQe,[["render",HQe]]);const WQe=Object.assign(UN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UN.name,UN)}}),GQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KQe=["stroke-width","stroke-linecap","stroke-linejoin"];function qQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1)]),14,KQe)}var zN=De(GQe,[["render",qQe]]);const YQe=Object.assign(zN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zN.name,zN)}}),XQe=be({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=Ee("icon"),r=V(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZQe=["stroke-width","stroke-linecap","stroke-linejoin"];function JQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1)]),14,ZQe)}var HN=De(XQe,[["render",JQe]]);const QQe=Object.assign(HN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HN.name,HN)}}),eet=be({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=Ee("icon"),r=V(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tet=["stroke-width","stroke-linecap","stroke-linejoin"];function net(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1)]),14,tet)}var WN=De(eet,[["render",net]]);const ret=Object.assign(WN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WN.name,WN)}}),iet=be({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=Ee("icon"),r=V(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oet=["stroke-width","stroke-linecap","stroke-linejoin"];function set(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,oet)}var GN=De(iet,[["render",set]]);const aet=Object.assign(GN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GN.name,GN)}}),uet=be({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=Ee("icon"),r=V(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cet=["stroke-width","stroke-linecap","stroke-linejoin"];function det(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1)]),14,cet)}var KN=De(uet,[["render",det]]);const fet=Object.assign(KN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KN.name,KN)}}),het=be({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=Ee("icon"),r=V(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pet=["stroke-width","stroke-linecap","stroke-linejoin"];function vet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H7v22h34V7Z"},null,-1),I("path",{d:"M23.778 29v10"},null,-1),I("path",{d:"M16 39h16"},null,-1),I("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1)]),14,pet)}var qN=De(het,[["render",vet]]);const Xz=Object.assign(qN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qN.name,qN)}}),met=be({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=Ee("icon"),r=V(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),get=["stroke-width","stroke-linecap","stroke-linejoin"];function yet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,get)}var YN=De(met,[["render",yet]]);const jpe=Object.assign(YN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YN.name,YN)}}),bet=be({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=Ee("icon"),r=V(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),I("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,_et)}var XN=De(bet,[["render",ket]]);const wet=Object.assign(XN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XN.name,XN)}}),Cet=be({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=Ee("icon"),r=V(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 xet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1)]),14,Eet)}var ZN=De(Cet,[["render",xet]]);const KA=Object.assign(ZN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZN.name,ZN)}}),Tet=be({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=Ee("icon"),r=V(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aet=["stroke-width","stroke-linecap","stroke-linejoin"];function Iet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[mg('',11)]),14,Aet)}var JN=De(Tet,[["render",Iet]]);const Let=Object.assign(JN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JN.name,JN)}}),Pet=be({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=Ee("icon"),r=V(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1)]),14,Ret)}var QN=De(Pet,[["render",Met]]);const Det=Object.assign(QN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QN.name,QN)}}),Oet=be({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=Ee("icon"),r=V(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Net(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1)]),14,$et)}var eB=De(Oet,[["render",Net]]);const Bet=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),Fet=be({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=Ee("icon"),r=V(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Vet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),I("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,jet)}var tB=De(Fet,[["render",Vet]]);const Uet=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),zet=be({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=Ee("icon"),r=V(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Het=["stroke-width","stroke-linecap","stroke-linejoin"];function Wet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1)]),14,Het)}var nB=De(zet,[["render",Wet]]);const Get=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Ket=be({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=Ee("icon"),r=V(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qet=["stroke-width","stroke-linecap","stroke-linejoin"];function Yet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1)]),14,qet)}var rB=De(Ket,[["render",Yet]]);const Vpe=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Xet=be({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=Ee("icon"),r=V(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zet=["stroke-width","stroke-linecap","stroke-linejoin"];function Jet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Zet)}var iB=De(Xet,[["render",Jet]]);const Qet=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),ett=be({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=Ee("icon"),r=V(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ttt=["stroke-width","stroke-linecap","stroke-linejoin"];function ntt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,ttt)}var oB=De(ett,[["render",ntt]]);const rtt=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),itt=be({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=Ee("icon"),r=V(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 stt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,ott)}var sB=De(itt,[["render",stt]]);const att=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),ltt=be({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=Ee("icon"),r=V(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 ctt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1)]),14,utt)}var aB=De(ltt,[["render",ctt]]);const dtt=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),ftt=be({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=Ee("icon"),r=V(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),htt=["stroke-width","stroke-linecap","stroke-linejoin"];function ptt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),I("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,htt)}var lB=De(ftt,[["render",ptt]]);const vtt=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),mtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gtt=["stroke-width","stroke-linecap","stroke-linejoin"];function ytt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),I("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,gtt)}var uB=De(mtt,[["render",ytt]]);const nL=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),btt=be({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=Ee("icon"),r=V(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_tt=["stroke-width","stroke-linecap","stroke-linejoin"];function Stt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1)]),14,_tt)}var cB=De(btt,[["render",Stt]]);const ktt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),wtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Ett(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),I("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,Ctt)}var dB=De(wtt,[["render",Ett]]);const Upe=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),xtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ttt=["stroke-width","stroke-linecap","stroke-linejoin"];function Att(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),I("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,Ttt)}var fB=De(xtt,[["render",Att]]);const Itt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),Ltt=be({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=Ee("icon"),r=V(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1)]),14,Ptt)}var hB=De(Ltt,[["render",Rtt]]);const Mtt=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),Dtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"19",r:"5"},null,-1),I("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1)]),14,Ott)}var pB=De(Dtt,[["render",$tt]]);const Ntt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),Btt=be({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=Ee("icon"),r=V(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Ftt)}var vB=De(Btt,[["render",jtt]]);const Vtt=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Utt=be({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=Ee("icon"),r=V(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Htt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1)]),14,ztt)}var mB=De(Utt,[["render",Htt]]);const Wtt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Gtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1)]),14,Ktt)}var gB=De(Gtt,[["render",qtt]]);const Ytt=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Xtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,Ztt)}var yB=De(Xtt,[["render",Jtt]]);const zpe=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),Qtt=be({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=Ee("icon"),r=V(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ent=["stroke-width","stroke-linecap","stroke-linejoin"];function tnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1)]),14,ent)}var bB=De(Qtt,[["render",tnt]]);const nnt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),rnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),int=["stroke-width","stroke-linecap","stroke-linejoin"];function ont(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),I("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,int)}var _B=De(rnt,[["render",ont]]);const Hpe=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),snt=be({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=Ee("icon"),r=V(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ant=["stroke-width","stroke-linecap","stroke-linejoin"];function lnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1)]),14,ant)}var SB=De(snt,[["render",lnt]]);const unt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),cnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function fnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1)]),14,dnt)}var kB=De(cnt,[["render",fnt]]);const hnt=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),pnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,vnt)}var wB=De(pnt,[["render",mnt]]);const gnt=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),ynt=be({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=Ee("icon"),r=V(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1)]),14,bnt)}var CB=De(ynt,[["render",_nt]]);const Snt=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),knt=be({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=Ee("icon"),r=V(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Cnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1)]),14,wnt)}var EB=De(knt,[["render",Cnt]]);const Ent=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),xnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Tnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ant(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[mg('',5)]),14,Tnt)}var xB=De(xnt,[["render",Ant]]);const Zz=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),Int=be({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=Ee("icon"),r=V(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Pnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1)]),14,Lnt)}var TB=De(Int,[["render",Pnt]]);const Rnt=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),Mnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ont(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1)]),14,Dnt)}var AB=De(Mnt,[["render",Ont]]);const $nt=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),Nnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 Fnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1)]),14,Bnt)}var IB=De(Nnt,[["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=be({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=Ee("icon"),r=V(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 znt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Unt)}var LB=De(Vnt,[["render",znt]]);const Hnt=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Wnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Gnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Knt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1)]),14,Gnt)}var PB=De(Wnt,[["render",Knt]]);const qnt=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Ynt=be({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=Ee("icon"),r=V(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Znt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1)]),14,Xnt)}var RB=De(Ynt,[["render",Znt]]);const Jnt=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Qnt=be({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=Ee("icon"),r=V(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ert=["stroke-width","stroke-linecap","stroke-linejoin"];function trt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),I("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1)]),14,ert)}var MB=De(Qnt,[["render",trt]]);const nrt=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),rrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),irt=["stroke-width","stroke-linecap","stroke-linejoin"];function ort(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,irt)}var DB=De(rrt,[["render",ort]]);const srt=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),art=be({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=Ee("icon"),r=V(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lrt=["stroke-width","stroke-linecap","stroke-linejoin"];function urt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,lrt)}var OB=De(art,[["render",urt]]);const crt=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),drt=be({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=Ee("icon"),r=V(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),frt=["stroke-width","stroke-linecap","stroke-linejoin"];function hrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1)]),14,frt)}var $B=De(drt,[["render",hrt]]);const wh=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),prt=be({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=Ee("icon"),r=V(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vrt=["stroke-width","stroke-linecap","stroke-linejoin"];function mrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,vrt)}var NB=De(prt,[["render",mrt]]);const grt=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),yrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),brt=["stroke-width","stroke-linecap","stroke-linejoin"];function _rt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),I("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,brt)}var BB=De(yrt,[["render",_rt]]);const Srt=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),krt=be({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=Ee("icon"),r=V(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Crt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1)]),14,wrt)}var FB=De(krt,[["render",Crt]]);const Ert=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),xrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Trt=["stroke-width","stroke-linecap","stroke-linejoin"];function Art(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1)]),14,Trt)}var jB=De(xrt,[["render",Art]]);const Irt=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),Lrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),I("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),I("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,Prt)}var VB=De(Lrt,[["render",Rrt]]);const yj=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),Mrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Drt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ort(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1)]),14,Drt)}var UB=De(Mrt,[["render",Ort]]);const $rt=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Nrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Brt=["stroke-width","stroke-linecap","stroke-linejoin"];function Frt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1)]),14,Brt)}var zB=De(Nrt,[["render",Frt]]);const jrt=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),Vrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Urt=["stroke-width","stroke-linecap","stroke-linejoin"];function zrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1)]),14,Urt)}var HB=De(Vrt,[["render",zrt]]);const Hrt=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Wrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Grt=["stroke-width","stroke-linecap","stroke-linejoin"];function Krt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"7"},null,-1),I("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1)]),14,Grt)}var WB=De(Wrt,[["render",Krt]]);const qrt=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Yrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Zrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),I("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),I("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Xrt)}var GB=De(Yrt,[["render",Zrt]]);const Jrt=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Qrt=be({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=Ee("icon"),r=V(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eit=["stroke-width","stroke-linecap","stroke-linejoin"];function tit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),I("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1)]),14,eit)}var KB=De(Qrt,[["render",tit]]);const nit=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),rit=be({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=Ee("icon"),r=V(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1)]),14,iit)}var qB=De(rit,[["render",oit]]);const sit=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),ait=be({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=Ee("icon"),r=V(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1)]),14,lit)}var YB=De(ait,[["render",uit]]);const cit=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),dit=be({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=Ee("icon"),r=V(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1)]),14,fit)}var XB=De(dit,[["render",hit]]);const pit=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),vit=be({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=Ee("icon"),r=V(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,mit)}var ZB=De(vit,[["render",git]]);const yit=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),bit=be({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=Ee("icon"),r=V(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1)]),14,_it)}var JB=De(bit,[["render",Sit]]);const kit=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),wit=be({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=Ee("icon"),r=V(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cit=["stroke-width","stroke-linecap","stroke-linejoin"];function Eit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"18",cy:"15",r:"7"},null,-1),I("circle",{cx:"34",cy:"19",r:"4"},null,-1),I("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1)]),14,Cit)}var QB=De(wit,[["render",Eit]]);const xit=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),Tit=be({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=Ee("icon"),r=V(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ait=["stroke-width","stroke-linecap","stroke-linejoin"];function Iit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),I("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,Ait)}var e7=De(Tit,[["render",Iit]]);const Lit=Object.assign(e7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e7.name,e7)}}),Pit=be({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=Ee("icon"),r=V(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rit=["stroke-width","stroke-linecap","stroke-linejoin"];function Mit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1)]),14,Rit)}var t7=De(Pit,[["render",Mit]]);const Wpe=Object.assign(t7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t7.name,t7)}}),Dit=be({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=Ee("icon"),r=V(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),I("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Oit)}var n7=De(Dit,[["render",$it]]);const Nit=Object.assign(n7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n7.name,n7)}}),Bit=be({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=Ee("icon"),r=V(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=V(()=>{const s={};return e.size&&(s.fontSize=Ge(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:se(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1)]),14,Fit)}var r7=De(Bit,[["render",jit]]);const Vit=Object.assign(r7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r7.name,r7)}}),bj={IconArrowDown:mj,IconArrowFall:GUe,IconArrowLeft:Wz,IconArrowRight:QUe,IconArrowRise:rze,IconArrowUp:gj,IconCaretDown:Oz,IconCaretLeft:yz,IconCaretRight:gz,IconCaretUp:upe,IconDoubleDown:cze,IconDoubleLeft:Zfe,IconDoubleRight:Jfe,IconDoubleUp:pze,IconDownCircle:yze,IconDown:Av,IconDragArrow:Ape,IconExpand:Eze,IconLeftCircle:Ize,IconLeft:zl,IconMenuFold:Whe,IconMenuUnfold:Ghe,IconRightCircle:Mze,IconRight:Mi,IconRotateLeft:The,IconRotateRight:Ahe,IconShrink:Nze,IconSwap:Ipe,IconToBottom:Hze,IconToLeft:qze,IconToRight:Jze,IconToTop:mfe,IconUpCircle:nHe,IconUp:Pk,IconCheckCircleFill:jh,IconCloseCircleFill:Fg,IconExclamationCircleFill:Sf,IconExclamationPolygonFill:sHe,IconInfoCircleFill:H1,IconMinusCircleFill:cHe,IconPlusCircleFill:pHe,IconQuestionCircleFill:yHe,IconCheckCircle:Ec,IconCheckSquare:EHe,IconCheck:Ug,IconClockCircle:F3,IconCloseCircle:IHe,IconClose:Us,IconExclamationCircle:dh,IconExclamation:Pz,IconInfoCircle:sh,IconInfo:Qhe,IconMinusCircle:FHe,IconMinus:kg,IconPlusCircle:zHe,IconPlus:vf,IconQuestionCircle:khe,IconQuestion:KHe,IconStop:ZHe,IconHeartFill:Gz,IconStarFill:Rz,IconThumbDownFill:iWe,IconThumbUpFill:lWe,IconAt:fWe,IconCloudDownload:mWe,IconCodeBlock:Lpe,IconCodeSquare:wWe,IconCode:hv,IconCustomerService:LWe,IconDownload:Ppe,IconExport:X3,IconEyeInvisible:cfe,IconEye:cv,IconHeart:Z3,IconHistory:k1,IconHome:J3,IconImport:Q3,IconLaunch:Rpe,IconList:Kz,IconMessageBanned:iGe,IconMessage:lGe,IconMoreVertical:fGe,IconMore:Tv,IconPoweroff:mGe,IconRefresh:tf,IconReply:wGe,IconSave:Rm,IconScan:LGe,IconSearch:_g,IconSelectAll:DGe,IconSend:BGe,IconSettings:zh,IconShareAlt:WGe,IconShareExternal:YGe,IconShareInternal:QGe,IconStar:qz,IconSync:sKe,IconThumbDown:cKe,IconThumbUp:pKe,IconTranslate:yKe,IconUpload:X1,IconVoice:kKe,IconAlignCenter:xKe,IconAlignLeft:LKe,IconAlignRight:DKe,IconAttachment:BKe,IconBgColors:Mpe,IconBold:WKe,IconBrush:YKe,IconCopy:q3,IconDelete:ic,IconEdit:Vz,IconEraser:QKe,IconFilter:$z,IconFindReplace:rqe,IconFontColors:Dpe,IconFormula:cqe,IconH1:pqe,IconH2:yqe,IconH3:kqe,IconH4:xqe,IconH5:Lqe,IconH6:Dqe,IconH7:Bqe,IconHighlight:Uqe,IconItalic:Gqe,IconLineHeight:Xqe,IconLink:cd,IconObliqueLine:yfe,IconOrderedList:eYe,IconOriginalSize:Ihe,IconPaste:iYe,IconQuote:lYe,IconRedo:fYe,IconScissor:mYe,IconSortAscending:Ope,IconSortDescending:$pe,IconSort:xYe,IconStrikethrough:LYe,IconUnderline:DYe,IconUndo:BYe,IconUnorderedList:UYe,IconZoomIn:xhe,IconZoomOut:Ehe,IconMuteFill:GYe,IconPauseCircleFill:XYe,IconPlayArrowFill:_pe,IconPlayCircleFill:eXe,IconSkipNextFill:iXe,IconSkipPreviousFill:lXe,IconSoundFill:fXe,IconBackward:mXe,IconForward:_Xe,IconFullscreenExit:Yz,IconFullscreen:U3,IconLiveBroadcast:GA,IconMusic:LXe,IconMute:DXe,IconPauseCircle:BXe,IconPause:bpe,IconPlayArrow:pl,IconPlayCircle:U2,IconRecordStop:qXe,IconRecord:JXe,IconSkipNext:nZe,IconSkipPrevious:sZe,IconSound:cZe,IconBytedanceColor:pZe,IconLarkColor:yZe,IconTiktokColor:kZe,IconXiguaColor:xZe,IconFaceBookCircleFill:LZe,IconFacebookSquareFill:DZe,IconGoogleCircleFill:BZe,IconQqCircleFill:UZe,IconTwitterCircleFill:GZe,IconWeiboCircleFill:XZe,IconAlipayCircle:eJe,IconCodeSandbox:iJe,IconCodepen:lJe,IconFacebook:fJe,IconGithub:Npe,IconGitlab:bJe,IconGoogle:wJe,IconQqZone:TJe,IconQq:PJe,IconTwitter:OJe,IconWechat:FJe,IconWechatpay:zJe,IconWeibo:KJe,IconChineseFill:ZJe,IconEnglishFill:tQe,IconFaceFrownFill:Jhe,IconFaceMehFill:lj,IconFaceSmileFill:Zhe,IconMoonFill:oQe,IconPenFill:uQe,IconSunFill:hQe,IconApps:Bpe,IconArchive:_Qe,IconBarChart:Fpe,IconBook:eL,IconBookmark:LQe,IconBranch:DQe,IconBug:tL,IconBulb:VQe,IconCalendarClock:WQe,IconCalendar:Ok,IconCamera:YQe,IconCloud:QQe,IconCommand:ret,IconCommon:aet,IconCompass:fet,IconComputer:Xz,IconCopyright:jpe,IconDashboard:wet,IconDesktop:KA,IconDice:Let,IconDragDotVertical:z3,IconDragDot:Ohe,IconDriveFile:Det,IconEar:Bet,IconEmail:Uet,IconEmpty:iz,IconExperiment:Get,IconFileAudio:Epe,IconFileImage:wpe,IconFilePdf:kpe,IconFileVideo:Cpe,IconFile:jz,IconFire:Vpe,IconFolderAdd:Qet,IconFolderDelete:rtt,IconFolder:att,IconGift:dtt,IconIdcard:vtt,IconImageClose:R3,IconImage:nL,IconInteraction:ktt,IconLanguage:Upe,IconLayers:Itt,IconLayout:Mtt,IconLoading:Va,IconLocation:Ntt,IconLock:Vtt,IconLoop:Wtt,IconMan:Ytt,IconMenu:zpe,IconMindMapping:nnt,IconMobile:Hpe,IconMoon:unt,IconMosaic:hnt,IconNav:gnt,IconNotificationClose:Snt,IconNotification:Ent,IconPalette:Zz,IconPen:Rnt,IconPhone:$nt,IconPrinter:jnt,IconPublic:Hnt,IconPushpin:qnt,IconQrcode:Jnt,IconRelation:nrt,IconRobotAdd:srt,IconRobot:crt,IconSafe:wh,IconSchedule:grt,IconShake:Srt,IconSkin:Ert,IconStamp:Irt,IconStorage:yj,IconSubscribeAdd:$rt,IconSubscribe:jrt,IconSubscribed:Hrt,IconSun:qrt,IconTag:Jrt,IconTags:nit,IconThunderbolt:sit,IconTool:cit,IconTrophy:pit,IconUnlock:yit,IconUserAdd:kit,IconUserGroup:xit,IconUser:Lit,IconVideoCamera:Wpe,IconWifi:Nit,IconWoman:Vit},Uit=(e,t)=>{for(const n of Object.keys(bj))e.use(bj[n],t)},zit={...bj,install:Uit},vr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Hit=be({components:{},setup(){return{showConfirmModal:pe(!1)}},methods:{goBack(){Ot.info("前进按钮")},goForward(){Ot.info("后退按钮")},refreshPage(){Ot.info("刷新页面"),window.location.reload()},onSearch(e){Ot.info(`搜索内容: ${e}`)},minimize(){Ot.info("最小化窗口"),this.exitFullScreen()},maximize(){Ot.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,Ot.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(Ot.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),Ot.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()}}}),Wit={class:"header-left"},Git={class:"header-center"},Kit={class:"header-right"},qit={class:"modal-header"},Yit={class:"modal-footer"};function Xit(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("a-button"),c=Pe("icon-right"),f=Pe("icon-refresh"),h=Pe("a-input-search"),p=Pe("icon-shrink"),m=Pe("icon-expand"),g=Pe("icon-close"),b=Pe("icon-exclamation-circle-fill"),S=Pe("a-layout-header");return H(),Ye(S,{class:"header"},{default:de(()=>[I("div",Wit,[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(f)]),_:1},8,["onClick"])]),I("div",Git,[O(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])]),I("div",Kit,[O(l,{shape:"circle",onClick:e.minimize},{icon:de(()=>[O(p)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.maximize},{icon:de(()=>[O(m)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:de(()=>[O(g)]),_:1},8,["onClick"])]),e.showConfirmModal?(H(),J("div",{key:0,class:"confirm-modal-overlay",onClick:t[1]||(t[1]=(...k)=>e.hideCloseConfirm&&e.hideCloseConfirm(...k))},[I("div",{class:"confirm-modal",onClick:t[0]||(t[0]=$o(()=>{},["stop"]))},[I("div",qit,[O(b,{class:"warning-icon"}),t[2]||(t[2]=I("h3",{class:"modal-title"},"确认关闭",-1))]),t[5]||(t[5]=I("div",{class:"modal-content"},[I("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),I("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),I("div",Yit,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[He(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[He(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Ae("",!0)]),_:1})}const Zit=vr(Hit,[["render",Xit],["__scopeId","data-v-3ed03fa9"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Gpe;const rL=e=>Gpe=e,Kpe=Symbol();function _j(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var YS;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(YS||(YS={}));function Jit(){const e=EU(!0),t=e.run(()=>pe({}));let n=[],r=[];const o=c3({install(a){rL(o),o._a=a,a.provide(Kpe,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 qpe=()=>{};function jne(e,t,n,r=qpe){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&i3()&&xU(o),o}function Y0(e,...t){e.slice().forEach(n=>{n(...t)})}const Qit=e=>e(),Vne=Symbol(),i7=Symbol();function Sj(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];_j(o)&&_j(r)&&e.hasOwnProperty(n)&&!To(r)&&!lf(r)?e[n]=Sj(o,r):e[n]=r}return e}const eot=Symbol();function tot(e){return!_j(e)||!e.hasOwnProperty(eot)}const{assign:Mp}=Object;function not(e){return!!(To(e)&&e.effect)}function rot(e,t,n,r){const{state:o,actions:a,getters:s}=t,l=n.state.value[e];let c;function f(){l||(n.state.value[e]=o?o():{});const h=Jt(n.state.value[e]);return Mp(h,a,Object.keys(s||{}).reduce((p,m)=>(p[m]=c3(V(()=>{rL(n);const g=n._s.get(e);return s[m].call(g,g)})),p),{}))}return c=Ype(e,f,t,n,r,!0),c}function Ype(e,t,n={},r,o,a){let s;const l=Mp({actions:{}},n),c={deep:!0};let f,h,p=[],m=[],g;const b=r.state.value[e];!a&&!b&&(r.state.value[e]={}),pe({});let S;function k(D){let N;f=h=!1,typeof D=="function"?(D(r.state.value[e]),N={type:YS.patchFunction,storeId:e,events:g}):(Sj(r.state.value[e],D),N={type:YS.patchObject,payload:D,storeId:e,events:g});const L=S=Symbol();kn().then(()=>{S===L&&(f=!0)}),h=!0,Y0(p,N,r.state.value[e])}const C=a?function(){const{state:N}=n,L=N?N():{};this.$patch(B=>{Mp(B,L)})}:qpe;function E(){s.stop(),p=[],m=[],r._s.delete(e)}const x=(D,N="")=>{if(Vne in D)return D[i7]=N,D;const L=function(){rL(r);const B=Array.from(arguments),F=[],j=[];function z(ee){F.push(ee)}function q(ee){j.push(ee)}Y0(m,{args:B,name:L[i7],store:A,after:z,onError:q});let G;try{G=D.apply(this&&this.$id===e?this:A,B)}catch(ee){throw Y0(j,ee),ee}return G instanceof Promise?G.then(ee=>(Y0(F,ee),ee)).catch(ee=>(Y0(j,ee),Promise.reject(ee))):(Y0(F,G),G)};return L[Vne]=!0,L[i7]=N,L},_={_p:r,$id:e,$onAction:jne.bind(null,m),$patch:k,$reset:C,$subscribe(D,N={}){const L=jne(p,D,N.detached,()=>B()),B=s.run(()=>Dt(()=>r.state.value[e],F=>{(N.flush==="sync"?h:f)&&D({storeId:e,type:YS.direct,events:g},F)},Mp({},c,N)));return L},$dispose:E},A=Wt(_);r._s.set(e,A);const M=(r._a&&r._a.runWithContext||Qit)(()=>r._e.run(()=>(s=EU()).run(()=>t({action:x}))));for(const D in M){const N=M[D];if(To(N)&&!not(N)||lf(N))a||(b&&tot(N)&&(To(N)?N.value=b[D]:Sj(N,b[D])),r.state.value[e][D]=N);else if(typeof N=="function"){const L=x(N,D);M[D]=L,l.actions[D]=N}}return Mp(A,M),Mp(Ti(A),M),Object.defineProperty(A,"$state",{get:()=>r.state.value[e],set:D=>{k(N=>{Mp(N,D)})}}),r._p.forEach(D=>{Mp(A,s.run(()=>D({store:A,app:r._a,pinia:r,options:l})))}),b&&a&&n.hydrate&&n.hydrate(A.$state,b),f=!0,h=!0,A}/*! #__NO_SIDE_EFFECTS__ */function zg(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 f=Dce();return l=l||(f?xn(Kpe,null):null),l&&rL(l),l=Gpe,l._s.has(r)||(a?Ype(r,t,o,l):rot(r,o,l)),l._s.get(r)}return s.$id=r,s}const Bk=zg("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"}}),iot={class:"footer-content"},oot={key:0,class:"pagination-stats"},sot={class:"stats-text"},aot={key:1,class:"default-footer"},lot={class:"footer-info"},uot={class:"copyright-section"},cot={class:"copyright-text"},dot={class:"project-section"},fot={class:"license-section"},hot={__name:"Footer",setup(e){const t=Bk(),n=V(()=>new Date().getFullYear()),r=()=>{Ot.success("正在跳转到项目主页...")};return(o,a)=>(H(),J("div",iot,[ot(t).shouldShow?(H(),J("div",oot,[I("span",sot,Ne(ot(t).statsText),1)])):(H(),J("div",aot,[I("div",lot,[I("div",uot,[O(ot(jpe),{class:"footer-icon"}),I("span",cot,Ne(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",dot,[O(ot(Npe),{class:"footer-icon"}),I("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=I("div",{class:"separator"},"|",-1)),I("div",fot,[O(ot(wh),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},pot=vr(hot,[["__scopeId","data-v-3b2cc39c"]]),vot="/apps/drplayer/assets/logo-5LtmOeIe.png",mot=whe.addFromIconFontCn({src:"//at.alicdn.com/t/c/font_5032989_t69caiom2lh.js"}),got=be({components:{IconCaretRight:gz,IconCaretLeft:yz,IconHome:J3,IconCalendar:Ok,Header:Zit,Footer:pot,IconFont:mot},setup(){const e=_3(),t=Bk(),n=pe(!1),r=pe([{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=pe(vot),a=pe("the logo for this application");return Dt(()=>e.path,c=>{t.setCurrentRoute(c)},{immediate:!0}),{siderCollapsed:n,menuItems:r,logoSrc:o,logoDesc:a,onClickMenuItem:c=>{let f=r.value.find(p=>p.id===c).name,h=`You select ${c},${f}`;console.log(h)},onSiderCollapse:c=>{n.value=c,console.log("侧边栏折叠状态:",c)}}}}),yot={class:"app-container"},bot={class:"fixed-header"},_ot={class:"logo"},Sot={class:"content-wrapper"},kot={class:"fixed-footer"};function wot(e,t,n,r,o,a){const s=Pe("Header"),l=Pe("a-image"),c=Pe("a-popover"),f=Pe("icon-font"),h=Pe("a-menu-item"),p=Pe("router-link"),m=Pe("a-menu"),g=Pe("IconCaretRight"),b=Pe("IconCaretLeft"),S=Pe("a-layout-sider"),k=Pe("Footer"),C=Pe("a-layout");return H(),J("div",yot,[I("div",bot,[O(s)]),O(C,{class:"layout-demo"},{default:de(()=>[O(S,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:E})=>[E?(H(),Ye(g,{key:0})):(H(),Ye(b,{key:1}))]),default:de(()=>[I("div",_ot,[O(c,{title:"提示"},{content:de(()=>[I("p",null,Ne(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(m,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:de(()=>[(H(!0),J(Ft,null,fn(e.menuItems,(E,x)=>(H(),Ye(p,{key:x,to:E.route,class:"menu-item"},{default:de(()=>[(H(),Ye(h,{key:E.id},{default:de(()=>[O(f,{type:E.icon,size:16},null,8,["type"]),He(" "+Ne(E.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:se(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",Sot,[ft(e.$slots,"default",{},void 0,!0)]),I("div",kot,[O(k)])],2)]),_:3})])}const Cot=vr(got,[["render",wot],["__scopeId","data-v-e7f9dcb2"]]),XS=pe({show:!1,message:"",type:"success",duration:3e3});function xi(e,t="success",n=3e3){XS.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{Eot()},n)}function Eot(){XS.value.show=!1}const xot={__name:"GlobalToast",setup(e){return(t,n)=>(H(),Ye(Ng,{to:"body"},[O(Es,{name:"action-toast"},{default:de(()=>[ot(XS).show?(H(),J("div",{key:0,class:se(["action-toast",ot(XS).type])},Ne(ot(XS).message),3)):Ae("",!0)]),_:1})]))}},Tot=vr(xot,[["__scopeId","data-v-0de7c39c"]]),iL=zg("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()}}}}),Aot={name:"App",components:{Layout:Cot,GlobalToast:Tot},setup(){const e=iL();return ln(()=>{e.loadFromStorage()}),{}}};function Iot(e,t,n,r,o,a){const s=Pe("router-view"),l=Pe("Layout"),c=Pe("GlobalToast");return H(),J(Ft,null,[O(l,null,{default:de(()=>[O(s)]),_:1}),O(c)],64)}const Lot=vr(Aot,[["render",Iot]]);/*! ***************************************************************************** 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 kj=function(e,t){return kj=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])},kj(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pot=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Rot=(function(){function e(){this.browser=new Pot,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})(),Pr=new Rot;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Pr.wxa=!0,Pr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Pr.worker=!0:!Pr.hasGlobalWindow||"Deno"in window?(Pr.node=!0,Pr.svgSupported=!0):Mot(navigator.userAgent,Pr);function Mot(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 Jz=12,Dot="sans-serif",wg=Jz+"px "+Dot,Oot=20,$ot=100,Not="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Bot(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[f]+":0",r[1-c]+":auto",o[1-f]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function lst(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],a=t.srcCoords,s=[],l=[],c=!0,f=0;f<4;f++){var h=e[f].getBoundingClientRect(),p=2*f,m=h.left,g=h.top;s.push(m,g),c=c&&a&&m===a[p]&&g===a[p+1],l.push(e[f].offsetLeft,e[f].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?Wne(l,s):Wne(s,l))}function rve(e){return e.nodeName.toUpperCase()==="CANVAS"}var ust=/([&<>"'])/g,cst={"&":"&","<":"<",">":">",'"':""","'":"'"};function cu(e){return e==null?"":(e+"").replace(ust,function(t,n){return cst[n]})}var dst=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l7=[],fst=Pr.browser.firefox&&+Pr.browser.version.split(".")[0]<39;function Ij(e,t,n,r){return n=n||{},r?Kne(e,t,n):fst&&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):Kne(e,t,n),n}function Kne(e,t,n){if(Pr.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(rve(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(Aj(l7,e,r,o)){n.zrX=l7[0],n.zrY=l7[1];return}}n.zrX=n.zrY=0}function rH(e){return e||window.event}function kc(e,t,n){if(t=rH(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&&Ij(e,s,t,n)}else{Ij(e,t,t,n);var a=hst(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&dst.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function hst(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 pst(e,t,n,r){e.addEventListener(t,n,r)}function vst(e,t,n,r){e.removeEventListener(t,n,r)}var ive=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},mst=(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=qne(r)/qne(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=gst(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function Xy(){return[1,0,0,1,0,0]}function iH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yst(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 Zy(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 Lj(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 oH(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],f=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*(f-r[1])+r[0],e[5]=p*(f-r[1])-h*(s-r[0])+r[1],e}function bst(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 sH(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 Dr=(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})(),ix=Math.min,ox=Math.max,om=new Dr,sm=new Dr,am=new Dr,lm=new Dr,D_=new Dr,O_=new Dr,Ji=(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=ix(t.x,this.x),r=ix(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ox(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ox(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=Xy();return Lj(a,a,[-n.x,-n.y]),bst(a,a,[r,o]),Lj(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,f=t.x+t.width,h=t.y,p=t.y+t.height,m=!(ab&&(b=x,Sb&&(b=_,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}om.x=am.x=n.x,om.y=lm.y=n.y,sm.x=lm.x=n.x+n.width,sm.y=am.y=n.y+n.height,om.transform(r),lm.transform(r),sm.transform(r),am.transform(r),t.x=ix(om.x,sm.x,am.x,lm.x),t.y=ix(om.y,sm.y,am.y,lm.y);var c=ox(om.x,sm.x,am.x,lm.x),f=ox(om.y,sm.y,am.y,lm.y);t.width=c-t.x,t.height=f-t.y},e})(),ove="silent";function _st(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:Sst}}function Sst(){ive(this.event)}var kst=(function(e){Rn(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})(wf),$_=(function(){function e(t,n){this.x=t,this.y=n}return e})(),wst=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],c7=new Ji(0,0,0,0),sve=(function(e){Rn(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new $_(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new kst,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new ist(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(wt(wst,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=ave(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 $_(r,o):this.findHover(r,o),f=c.target,h=this.proxy;h.setCursor&&h.setCursor(f?f.cursor:"default"),l&&f!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),f&&f!==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 $_(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=_st(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 $_(n,r);if(Yne(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,f=c/2,h=new Ji(n-f,r-f,c,c),p=a.length-1;p>=0;p--){var m=a[p];m!==o&&!m.ignore&&!m.ignoreCoarsePointer&&(!m.parent||!m.parent.ignoreCoarsePointer)&&(c7.copy(m.getBoundingRect()),m.transform&&c7.applyTransform(m.transform),c7.intersect(h)&&l.push(m))}if(l.length)for(var g=4,b=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Cst(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?ove:!0}return!1}function Yne(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=Cst(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==ove)){t.target=s;break}}}function ave(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var lve=32,N_=7;function Est(e){for(var t=0;e>=lve;)t|=e&1,e>>=1;return e+t}function Xne(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 xst(e,t,n){for(n--;t>>1,o(a,e[c])<0?l=c:s=c+1;var f=r-s;switch(f){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(;f>0;)e[s+f]=e[s+f-1],f--}e[s]=a}}function d7(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 f=s;s=o-c,c=o-f}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function f7(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 f=s;s=o-c,c=o-f}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 Tst(e,t){var n=N_,r,o,a=0,s=[];r=[],o=[];function l(g,b){r[a]=g,o[a]=b,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 f(){for(;a>1;){var g=a-2;g>0&&o[g-1]=N_||M>=N_);if(D)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),b===1){for(C=0;C=0;C--)e[R+C]=e[A+C];e[_]=s[x];return}for(var M=n;;){var D=0,N=0,L=!1;do if(t(s[x],e[E])<0){if(e[_--]=e[E--],D++,N=0,--b===0){L=!0;break}}else if(e[_--]=s[x--],N++,D=0,--k===1){L=!0;break}while((D|N)=0;C--)e[R+C]=e[A+C];if(b===0){L=!0;break}}if(e[_--]=s[x--],--k===1){L=!0;break}if(N=k-d7(e[E],s,0,k,k-1,t),N!==0){for(_-=N,x-=N,k-=N,R=_+1,A=x+1,C=0;C=N_||N>=N_);if(L)break;M<0&&(M=0),M+=2}if(n=M,n<1&&(n=1),k===1){for(_-=b,E-=b,R=_+1,A=E+1,C=b-1;C>=0;C--)e[R+C]=e[A+C];e[_]=s[x]}else{if(k===0)throw new Error;for(A=_-(k-1),C=0;Cl&&(c=l),Zne(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 Xu=1,vS=2,wy=4,Jne=!1;function h7(){Jne||(Jne=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Qne(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Ast=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qne}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(h7(),h.z=0),isNaN(h.z2)&&(h7(),h.z2=0),isNaN(h.zlevel)&&(h7(),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})(),YA;YA=Pr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var QS={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-QS.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?QS.bounceIn(e*2)*.5:QS.bounceOut(e*2-1)*.5+.5}},sx=Math.pow,nv=Math.sqrt,XA=1e-8,uve=1e-4,ere=nv(3),ax=1/3,Zd=J1(),xc=J1(),Jy=J1();function qp(e){return e>-XA&&eXA||e<-XA}function Ra(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 tre(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function ZA(e,t,n,r,o,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),f=e-o,h=l*l-3*s*c,p=l*c-9*s*f,m=c*c-3*l*f,g=0;if(qp(h)&&qp(p))if(qp(l))a[0]=0;else{var b=-c/l;b>=0&&b<=1&&(a[g++]=b)}else{var S=p*p-4*h*m;if(qp(S)){var k=p/h,b=-l/s+k,C=-k/2;b>=0&&b<=1&&(a[g++]=b),C>=0&&C<=1&&(a[g++]=C)}else if(S>0){var E=nv(S),x=h*l+1.5*s*(-p+E),_=h*l+1.5*s*(-p-E);x<0?x=-sx(-x,ax):x=sx(x,ax),_<0?_=-sx(-_,ax):_=sx(_,ax);var b=(-l-(x+_))/(3*s);b>=0&&b<=1&&(a[g++]=b)}else{var A=(2*h*l-3*s*p)/(2*nv(h*h*h)),R=Math.acos(A)/3,M=nv(h),D=Math.cos(R),b=(-l-2*M*D)/(3*s),C=(-l+M*(D+ere*Math.sin(R)))/(3*s),N=(-l+M*(D-ere*Math.sin(R)))/(3*s);b>=0&&b<=1&&(a[g++]=b),C>=0&&C<=1&&(a[g++]=C),N>=0&&N<=1&&(a[g++]=N)}}return g}function dve(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(qp(s)){if(cve(a)){var f=-l/a;f>=0&&f<=1&&(o[c++]=f)}}else{var h=a*a-4*s*l;if(qp(h))o[0]=-a/(2*s);else if(h>0){var p=nv(h),f=(-a+p)/(2*s),m=(-a-p)/(2*s);f>=0&&f<=1&&(o[c++]=f),m>=0&&m<=1&&(o[c++]=m)}}return c}function JA(e,t,n,r,o,a){var s=(t-e)*o+e,l=(n-t)*o+t,c=(r-n)*o+n,f=(l-s)*o+s,h=(c-l)*o+l,p=(h-f)*o+f;a[0]=e,a[1]=s,a[2]=f,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function Ist(e,t,n,r,o,a,s,l,c,f,h){var p,m=.005,g=1/0,b,S,k,C;Zd[0]=c,Zd[1]=f;for(var E=0;E<1;E+=.05)xc[0]=Ra(e,n,o,s,E),xc[1]=Ra(t,r,a,l,E),k=Yy(Zd,xc),k=0&&k=0&&f<=1&&(o[c++]=f)}}else{var h=s*s-4*a*l;if(qp(h)){var f=-s/(2*a);f>=0&&f<=1&&(o[c++]=f)}else if(h>0){var p=nv(h),f=(-s+p)/(2*a),m=(-s-p)/(2*a);f>=0&&f<=1&&(o[c++]=f),m>=0&&m<=1&&(o[c++]=m)}}return c}function fve(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function QA(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 Rst(e,t,n,r,o,a,s,l,c){var f,h=.005,p=1/0;Zd[0]=s,Zd[1]=l;for(var m=0;m<1;m+=.05){xc[0]=du(e,n,o,m),xc[1]=du(t,r,a,m);var g=Yy(Zd,xc);g=0&&g=1?1:ZA(0,r,a,1,c,l)&&Ra(0,o,s,1,l[0])}}}var Ost=(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||bu,this.ondestroy=t.ondestroy||bu,this.onrestart=t.onrestart||bu,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=Hr(t)?t:QS[t]||hve(t)},e})(),pve=(function(){function e(t){this.value=t}return e})(),$st=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new pve(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})(),jk=(function(){function e(t){this._list=new $st,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 pve(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})(),rre={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 rv(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pj(e){return e<0?0:e>1?1:e}function p7(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?rv(parseFloat(t)/100*255):rv(parseInt(t,10))}function e2(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Pj(parseFloat(t)/100):Pj(parseFloat(t))}function v7(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function lx(e,t,n){return e+(t-e)*n}function Sc(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function Rj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vve=new jk(20),ux=null;function Z0(e,t){ux&&Rj(ux,t),ux=vve.put(e,ux||t.slice())}function Ch(e,t){if(e){t=t||[];var n=vve.get(e);if(n)return Rj(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in rre)return Rj(t,rre[r]),Z0(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)){Sc(t,0,0,0,1);return}return Sc(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),Z0(e,t),t}else if(o===7||o===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Sc(t,0,0,0,1);return}return Sc(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(r.slice(7),16)/255:1),Z0(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===o){var c=r.substr(0,s),f=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(f.length!==4)return f.length===3?Sc(t,+f[0],+f[1],+f[2],1):Sc(t,0,0,0,1);h=e2(f.pop());case"rgb":if(f.length>=3)return Sc(t,p7(f[0]),p7(f[1]),p7(f[2]),f.length===3?h:e2(f[3])),Z0(e,t),t;Sc(t,0,0,0,1);return;case"hsla":if(f.length!==4){Sc(t,0,0,0,1);return}return f[3]=e2(f[3]),ire(f,t),Z0(e,t),t;case"hsl":if(f.length!==3){Sc(t,0,0,0,1);return}return ire(f,t),Z0(e,t),t;default:return}}Sc(t,0,0,0,1)}}function ire(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=e2(e[1]),o=e2(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Sc(t,rv(v7(s,a,n+1/3)*255),rv(v7(s,a,n)*255),rv(v7(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ore(e,t){var n=Ch(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 lL(n,n.length===4?"rgba":"rgb")}}function Nst(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=Ch(t[o]),l=Ch(t[a]),c=r-o,f=lL([rv(lx(s[0],l[0],c)),rv(lx(s[1],l[1],c)),rv(lx(s[2],l[2],c)),Pj(lx(s[3],l[3],c))],"rgba");return n?{color:f,leftIndex:o,rightIndex:a,value:r}:f}}function lL(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 eI(e,t){var n=Ch(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var sre=new jk(100);function are(e){if(ur(e)){var t=sre.get(e);return t||(t=ore(e,-.1),sre.put(e,t)),t}else if(sL(e)){var n=dn({},e);return n.colorStops=pr(e.colorStops,function(r){return{offset:r.offset,color:ore(r.color,-.1)}}),n}return e}function Bst(e){return e.type==="linear"}function Fst(e){return e.type==="radial"}(function(){return Pr.hasGlobalWindow&&Hr(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 Mj=Array.prototype.slice;function ah(e,t,n){return(t-e)*n+e}function m7(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=ure,c=n;if(wu(n)){var f=zst(n);l=f,(f===1&&!bo(n[0])||f===2&&!bo(n[0][0]))&&(s=!0)}else if(bo(n)&&!qA(n))l=dx;else if(ur(n))if(!isNaN(+n))l=dx;else{var h=Ch(n);h&&(c=h,l=mS)}else if(sL(n)){var p=dn({},c);p.colorStops=pr(n.colorStops,function(g){return{offset:g.offset,color:Ch(g.color)}}),Bst(n)?l=Dj:Fst(n)&&(l=Oj),c=p}a===0?this.valType=l:(l!==this.valType||l===ure)&&(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=Hr(r)?r:QS[r]||hve(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=fx(o),f=cre(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)}b=s[h+1],g=s[h]}if(g&&b){this._lastFr=h,this._lastFrP=n;var k=b.percent-g.percent,C=k===0?1:m((n-g.percent)/k,1);b.easingFunc&&(C=b.easingFunc(C));var E=r?this._additiveValue:f?B_:t[c];if((fx(a)||f)&&!E&&(E=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:b.rawValue;else if(fx(a))a===D4?m7(E,g[o],b[o],C):jst(E,g[o],b[o],C);else if(cre(a)){var x=g[o],_=b[o],A=a===Dj;t[c]={type:A?"linear":"radial",x:ah(x.x,_.x,C),y:ah(x.y,_.y,C),colorStops:pr(x.colorStops,function(M,D){var N=_.colorStops[D];return{offset:ah(M.offset,N.offset,C),color:M4(m7([],M.color,N.color,C))}}),global:_.global},A?(t[c].x2=ah(x.x2,_.x2,C),t[c].y2=ah(x.y2,_.y2,C)):t[c].r=ah(x.r,_.r,C)}else if(f)m7(E,g[o],b[o],C),r||(t[c]=M4(E));else{var R=ah(g[o],b[o],C);r?this._additiveValue=R:t[c]=R}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,o=this._additiveValue;n===dx?t[r]=t[r]+o:n===mS?(Ch(t[r],B_),cx(B_,B_,o,1),t[r]=M4(B_)):n===D4?cx(t[r],t[r],o,1):n===mve&&lre(t[r],t[r],o,1)},e})(),aH=(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){tH("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,Wo(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,R4(f),o),this._trackKeys.push(l)}c.addKeyframe(t,R4(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 Ry(){return new Date().getTime()}var Wst=(function(e){Rn(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=Ry()-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&&(YA(r),!n._paused&&n.update())}YA(r)},t.prototype.start=function(){this._running||(this._time=Ry(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ry(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ry()-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 aH(n,r.loop);return this.addAnimator(o),o},t})(wf),Gst=300,g7=Pr.domSupported,y7=(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=pr(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),dre={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},fre=!1;function $j(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Kst(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 b7(e){e&&(e.zrByTouch=!0)}function qst(e,t){return kc(e.dom,new Yst(e,t),!0)}function gve(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 Yst=(function(){function e(t,n){this.stopPropagation=bu,this.stopImmediatePropagation=bu,this.preventDefault=bu,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),sd={mousedown:function(e){e=kc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=kc(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=kc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=kc(this.dom,e);var t=e.toElement||e.relatedTarget;gve(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){fre=!0,e=kc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){fre||(e=kc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=kc(this.dom,e),b7(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),sd.mousemove.call(this,e),sd.mousedown.call(this,e)},touchmove:function(e){e=kc(this.dom,e),b7(e),this.handler.processGesture(e,"change"),sd.mousemove.call(this,e)},touchend:function(e){e=kc(this.dom,e),b7(e),this.handler.processGesture(e,"end"),sd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentvre||e<-vre}var cm=[],J0=[],S7=Xy(),k7=Math.abs,lH=(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 um(this.rotation)||um(this.x)||um(this.y)||um(this.scaleX-1)||um(this.scaleY-1)||um(this.skewX)||um(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(pre(r),this.invTransform=null);return}r=r||Xy(),n?this.getLocalTransform(r):pre(r),t&&(n?Zy(r,t,r):yst(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(cm);var r=cm[0]<0?-1:1,o=cm[1]<0?-1:1,a=((cm[0]-r)*n+r)/cm[0]||0,s=((cm[1]-o)*n+o)/cm[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||Xy(),sH(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||Xy(),Zy(J0,t.invTransform,n),n=J0);var r=this.originX,o=this.originY;(r||o)&&(S7[4]=r,S7[5]=o,Zy(J0,n,S7),J0[4]-=r,J0[5]-=o,n=J0),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&&Dc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Dc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&k7(t[0]-1)>1e-10&&k7(t[3]-1)>1e-10?Math.sqrt(k7(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){eat(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,f=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 b=r+l,S=o+c;n[4]=-b*a-m*S*s,n[5]=-S*s-g*b*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=m*s,f&&oH(n,n,f),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})(),W2=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function eat(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function nI(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,f=n.y,h="left",p="top";if(r instanceof Array)c+=vv(r[0],n.width),f+=vv(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=o,f+=l,h="right",p="middle";break;case"right":c+=o+s,f+=l,p="middle";break;case"top":c+=s/2,f-=o,h="center",p="bottom";break;case"bottom":c+=s/2,f+=a+o,h="center";break;case"inside":c+=s/2,f+=l,h="center",p="middle";break;case"insideLeft":c+=o,f+=l,p="middle";break;case"insideRight":c+=s-o,f+=l,h="right",p="middle";break;case"insideTop":c+=s/2,f+=o,h="center";break;case"insideBottom":c+=s/2,f+=a-o,h="center",p="bottom";break;case"insideTopLeft":c+=o,f+=o;break;case"insideTopRight":c+=s-o,f+=o,h="right";break;case"insideBottomLeft":c+=o,f+=a-o,p="bottom";break;case"insideBottomRight":c+=s-o,f+=a-o,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=f,e.align=h,e.verticalAlign=p,e}var w7="__zr_normal__",C7=W2.concat(["ignore"]),tat=pv(W2,function(e,t){return e[t]=!0,e},{ignore:!1}),Q0={},nat=new Ji(0,0,0,0),uL=(function(){function e(t){this.id=Jpe(),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 f=!1;if(a.copyTransform(n),r.position!=null){var h=nat;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Q0,r,h):nI(Q0,r,h),a.x=Q0.x,a.y=Q0.y,s=Q0.align,l=Q0.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=vv(p[0],h.width),g=vv(p[1],h.height)),f=!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 b=r.offset;b&&(a.x+=b[0],a.y+=b[1],f||(a.originX=-b[0],a.originY=-b[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,E=void 0,x=void 0;S&&this.canBeInsideText()?(C=r.insideFill,E=r.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(E==null||E==="auto")&&(E=this.getInsideTextStroke(C),x=!0)):(C=r.outsideFill,E=r.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(E==null||E==="auto")&&(E=this.getOutsideStroke(C),x=!0)),C=C||"#000",(C!==k.fill||E!==k.stroke||x!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=C,k.stroke=E,k.autoStroke=x,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=Xu,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()?jj:Fj},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ch(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,lL(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||{},dn(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(br(t))for(var r=t,o=Wo(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(w7,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===w7,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(so(l,t)>=0&&(n||l.length===1))){var f;if(this.stateProxy&&!a&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!a){tH("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(f);var h=!!(f&&f.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,f,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&=~Xu),f}}},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,b);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&=~Xu)}},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=so(o,t),s=so(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(b,S){n.during(S)});for(var m=0;m0||o.force&&!s.length){var D=void 0,N=void 0,L=void 0;if(l){N={},m&&(D={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=so(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=so(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*f+s}function Ho(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 ur(e)?dat(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function js(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),Sve),e=(+e).toFixed(t),n?e:+e}function gh(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 fat(e)}function fat(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 hat(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 pat(e,t){var n=pv(e,function(g,b){return g+(isNaN(b)?0:b)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=pr(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=pr(o,function(g){return Math.floor(g)}),l=pv(s,function(g,b){return g+b},0),c=pr(o,function(g,b){return g-s[b]});lf&&(f=c[p],h=p);++s[h],c[h]=0,++l}return pr(s,function(g){return g/r})}function vat(e,t){var n=Math.max(gh(e),gh(t)),r=e+t;return n>Sve?r:js(r,n)}function kve(e){var t=Math.PI*2;return(e%t+t)%t}function rI(e){return e>-bre&&e=10&&t++,t}function wve(e,t){var n=dH(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 iI(e){var t=parseFloat(e);return t==e&&(t!==0||!ur(e)||e.indexOf("x")<=0)?t:NaN}function yat(e){return!isNaN(iI(e))}function Cve(){return Math.round(Math.random()*9)}function Eve(e,t){return t===0?e:Eve(t,e%t)}function _re(e,t){return e==null?t:t==null?e:e*t/Eve(e,t)}function fu(e){throw new Error(e)}function Sre(e,t,n){return(t-e)*n+e}var xve="series\0",bat="\0_ec_\0";function jl(e){return e instanceof Array?e:e==null?[]:[e]}function Uj(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&&so(a,c)<0)){var f=r.getShallow(c,t);f!=null&&(s[e[l][0]]=f)}}return s}}var Uat=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],zat=K2(Uat),Hat=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return zat(this,t,n)},e})(),zj=new jk(50);function Wat(e){if(typeof e=="string"){var t=zj.get(e);return t&&t.image}else return e}function Pve(e,t,n,r,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=zj.get(e),s={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!dL(t)&&a.pending.push(s)):(t=Z1.loadImage(e,wre,wre),t.__zrImageSrc=e,zj.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function wre(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var f=ec(n,t);return f>l&&(n="",f=0),l=e-f,o.ellipsis=n,o.ellipsisWidth=f,o.contentWidth=l,o.containerWidth=e,o}function Mve(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=ec(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?Kat(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=ec(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Kat(e,t,n,r){for(var o=0,a=0,s=e.length;ab&&f){var S=Math.floor(b/l);h=h||m.length>S,m=m.slice(0,S)}if(e&&a&&p!=null)for(var k=Rve(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},E=0;El&&I7(n,e.substring(l,f),t,s),I7(n,c[2],t,s,c[1]),l=A7.lastIndex}lo){var j=n.lines.length;R>0?(x.tokens=x.tokens.slice(0,R),C(x,A,_),n.lines=n.lines.slice(0,E+1)):n.lines=n.lines.slice(0,E),n.isTruncated=n.isTruncated||n.lines.length0&&b+r.accumWidth>r.width&&(h=t.split(` `),f=!0),r.accumWidth=b}else{var S=Dve(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 Qat=pv(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function elt(e){return Jat(e)?!!Qat[e]:!0}function Dve(e,t,n,r,o){for(var a=[],s=[],l="",c="",f=0,h=0,p=0;pn:o+h+g>n){h?(l||c)&&(b?(l||(l=c,c="",f=0,h=f),a.push(l),s.push(h-f),c+=m,f+=g,l="",h=f):(c&&(l+=c,c="",f=0),a.push(l),s.push(h),l=m,h=g)):b?(a.push(c),s.push(f),c=m,f=g):(a.push(m),s.push(g));continue}h+=g,b?(c+=m,f+=g):(c&&(l+=c,c="",f=0),l+=m)}return!a.length&&!l&&(l=e,c="",f=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=o),{accumWidth:h,lines:a,linesWidths:s}}var Hj="__zr_style_"+Math.round(Math.random()*10),sg={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sg[Hj]=!0;var Ere=["z","z2","invisible"],tlt=["invisible"],zk=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Wo(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(hx[0]=M7(o)*n+e,hx[1]=R7(o)*r+t,px[0]=M7(a)*n+e,px[1]=R7(a)*r+t,f(l,hx,px),h(c,hx,px),o=o%fm,o<0&&(o=o+fm),a=a%fm,a<0&&(a=a+fm),o>a&&!s?a+=fm:oo&&(vx[0]=M7(g)*n+e,vx[1]=R7(g)*r+t,f(l,vx,l),h(c,vx,c))}var Yi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hm=[],pm=[],Bd=[],yp=[],Fd=[],jd=[],D7=Math.min,O7=Math.max,vm=Math.cos,mm=Math.sin,Qf=Math.abs,Wj=Math.PI,Dp=Wj*2,$7=typeof Float32Array<"u",F_=[];function N7(e){var t=Math.round(e/Wj*1e8)/1e8;return t%2*Wj}function Ove(e,t){var n=N7(e[0]);n<0&&(n+=Dp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Dp?o=n+Dp:t&&n-o>=Dp?o=n-Dp:!t&&n>o?o=n+(Dp-N7(n-o)):t&&n0&&(this._ux=Qf(r/tI/t)||0,this._uy=Qf(r/tI/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(Yi.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=Qf(t-this._xi),o=Qf(n-this._yi),a=r>this._ux||o>this._uy;if(this.addData(Yi.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(Yi.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(Yi.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(),F_[0]=o,F_[1]=a,Ove(F_,s),o=F_[0],a=F_[1];var l=a-o;return this.addData(Yi.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=vm(a)*r+t,this._yi=mm(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(Yi.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yi.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)&&$7&&(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(){Bd[0]=Bd[1]=Fd[0]=Fd[1]=Number.MAX_VALUE,yp[0]=yp[1]=jd[0]=jd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||Qf(x)>o||m===n-1)&&(S=Math.sqrt(E*E+x*x),a=k,s=C);break}case Yi.C:{var _=t[m++],A=t[m++],k=t[m++],C=t[m++],R=t[m++],M=t[m++];S=Lst(a,s,_,A,k,C,R,M,10),a=R,s=M;break}case Yi.Q:{var _=t[m++],A=t[m++],k=t[m++],C=t[m++];S=Mst(a,s,_,A,k,C,10),a=k,s=C;break}case Yi.A:var D=t[m++],N=t[m++],L=t[m++],B=t[m++],F=t[m++],j=t[m++],z=j+F;m+=1,b&&(l=vm(F)*L+D,c=mm(F)*B+N),S=O7(L,B)*D7(Dp,Math.abs(j)),a=vm(z)*L+D,s=mm(z)*B+N;break;case Yi.R:{l=a=t[m++],c=s=t[m++];var q=t[m++],G=t[m++];S=q*2+G*2;break}case Yi.Z:{var E=l-a,x=c-s;S=Math.sqrt(E*E+x*x),a=l,s=c;break}}S>=0&&(f[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,f,h,p,m,g=n<1,b,S,k=0,C=0,E,x=0,_,A;if(!(g&&(this._pathSegLen||this._calculateLength(),b=this._pathSegLen,S=this._pathLen,E=n*S,!E)))e:for(var R=0;R0&&(t.lineTo(_,A),x=0),M){case Yi.M:l=f=r[R++],c=h=r[R++],t.moveTo(f,h);break;case Yi.L:{p=r[R++],m=r[R++];var N=Qf(p-f),L=Qf(m-h);if(N>o||L>a){if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;t.lineTo(f*(1-F)+p*F,h*(1-F)+m*F);break e}k+=B}t.lineTo(p,m),f=p,h=m,x=0}else{var j=N*N+L*L;j>x&&(_=p,A=m,x=j)}break}case Yi.C:{var z=r[R++],q=r[R++],G=r[R++],ee=r[R++],Q=r[R++],X=r[R++];if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;JA(f,z,G,Q,F,hm),JA(h,q,ee,X,F,pm),t.bezierCurveTo(hm[1],pm[1],hm[2],pm[2],hm[3],pm[3]);break e}k+=B}t.bezierCurveTo(z,q,G,ee,Q,X),f=Q,h=X;break}case Yi.Q:{var z=r[R++],q=r[R++],G=r[R++],ee=r[R++];if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;QA(f,z,G,F,hm),QA(h,q,ee,F,pm),t.quadraticCurveTo(hm[1],pm[1],hm[2],pm[2]);break e}k+=B}t.quadraticCurveTo(z,q,G,ee),f=G,h=ee;break}case Yi.A:var K=r[R++],te=r[R++],oe=r[R++],ue=r[R++],ae=r[R++],xe=r[R++],$e=r[R++],ge=!r[R++],Oe=oe>ue?oe:ue,Fe=Qf(oe-ue)>.001,Xe=ae+xe,Je=!1;if(g){var B=b[C++];k+B>E&&(Xe=ae+xe*(E-k)/B,Je=!0),k+=B}if(Fe&&t.ellipse?t.ellipse(K,te,oe,ue,$e,ae,Xe,ge):t.arc(K,te,Oe,ae,Xe,ge),Je)break e;D&&(l=vm(ae)*oe+K,c=mm(ae)*ue+te),f=vm(Xe)*oe+K,h=mm(Xe)*ue+te;break;case Yi.R:l=f=r[R],c=h=r[R+1],p=r[R++],m=r[R++];var Ke=r[R++],_e=r[R++];if(g){var B=b[C++];if(k+B>E){var ye=E-k;t.moveTo(p,m),t.lineTo(p+D7(ye,Ke),m),ye-=Ke,ye>0&&t.lineTo(p+Ke,m+D7(ye,_e)),ye-=_e,ye>0&&t.lineTo(p+O7(Ke-ye,0),m+_e),ye-=Ke,ye>0&&t.lineTo(p,m+O7(_e-ye,0));break e}k+=B}t.rect(p,m,Ke,_e);break;case Yi.Z:if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;t.lineTo(f*(1-F)+l*F,h*(1-F)+c*F);break e}k+=B}t.closePath(),f=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=Yi,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function ey(e,t,n,r,o,a,s){if(o===0)return!1;var l=o,c=0,f=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&&f>n+p&&f>o+p&&f>s+p||ft+f&&c>r+f&&c>a+f||ce+f&&l>n+f&&l>o+f||ln||h+fo&&(o+=j_);var m=Math.atan2(c,l);return m<0&&(m+=j_),m>=r&&m<=o||m+j_>=r&&m+j_<=o}function gm(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var bp=xg.CMD,ym=Math.PI*2,ult=1e-4;function clt(e,t){return Math.abs(e-t)t&&f>r&&f>a&&f>l||f1&&dlt(),g=Ra(t,r,a,l,Cc[0]),m>1&&(b=Ra(t,r,a,l,Cc[1]))),m===2?kt&&l>r&&l>a||l=0&&f<=1){for(var h=0,p=du(t,r,a,f),m=0;mn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);Ll[0]=-c,Ll[1]=c;var f=Math.abs(r-o);if(f<1e-4)return 0;if(f>=ym-1e-4){r=0,o=ym;var h=a?1:-1;return s>=Ll[0]+e&&s<=Ll[1]+e?h:0}if(r>o){var p=r;r=o,o=p}r<0&&(r+=ym,o+=ym);for(var m=0,g=0;g<2;g++){var b=Ll[g];if(b+e>s){var S=Math.atan2(l,b),h=a?1:-1;S<0&&(S=ym+S),(S>=r&&S<=o||S+ym>=r&&S+ym<=o)&&(S>Math.PI/2&&S1&&(n||(l+=gm(c,f,h,p,r,o))),k&&(c=a[b],f=a[b+1],h=c,p=f),S){case bp.M:h=a[b++],p=a[b++],c=h,f=p;break;case bp.L:if(n){if(ey(c,f,a[b],a[b+1],t,r,o))return!0}else l+=gm(c,f,a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case bp.C:if(n){if(slt(c,f,a[b++],a[b++],a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=flt(c,f,a[b++],a[b++],a[b++],a[b++],a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case bp.Q:if(n){if(alt(c,f,a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=hlt(c,f,a[b++],a[b++],a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case bp.A:var C=a[b++],E=a[b++],x=a[b++],_=a[b++],A=a[b++],R=a[b++];b+=1;var M=!!(1-a[b++]);m=Math.cos(A)*x+C,g=Math.sin(A)*_+E,k?(h=m,p=g):l+=gm(c,f,m,g,r,o);var D=(r-C)*_/x+C;if(n){if(llt(C,E,_,A,A+R,M,t,D,o))return!0}else l+=plt(C,E,_,A,A+R,M,D,o);c=Math.cos(A+R)*x+C,f=Math.sin(A+R)*_+E;break;case bp.R:h=c=a[b++],p=f=a[b++];var N=a[b++],L=a[b++];if(m=h+N,g=p+L,n){if(ey(h,p,m,p,t,r,o)||ey(m,p,m,g,t,r,o)||ey(m,g,h,g,t,r,o)||ey(h,g,h,p,t,r,o))return!0}else l+=gm(m,p,m,g,r,o),l+=gm(h,g,h,p,r,o);break;case bp.Z:if(n){if(ey(c,f,h,p,t,r,o))return!0}else l+=gm(c,f,h,p,r,o);c=h,f=p;break}}return!n&&!clt(f,p)&&(l+=gm(c,f,h,p,r,o)||0),l!==0}function vlt(e,t,n){return $ve(e,0,!1,t,n)}function mlt(e,t,n,r){return $ve(e,t,!0,n,r)}var Nve=Qi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sg),glt={style:Qi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fL.style)},B7=W2.concat(["invisible","culling","z","z2","zlevel","parent"]),ro=(function(e){Rn(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?Fj:r>.2?Qst:jj}else if(n)return jj}return Fj},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(ur(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=eI(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&wy)&&(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,f=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;f=Math.max(f,h??4)}c>1e-10&&(l.width+=f/c,l.height+=f/c,l.x-=f/c/2,l.y-=f/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,f=s.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),mlt(l,c/f,n,r)))return!0}if(this.hasFill())return vlt(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wy,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:dn(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wy)},t.prototype.createStyle=function(n){return aL(Nve,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=dn({},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),f;if(r&&r.shape?s?a?f=r.shape:(f=dn({},o.shape),dn(f,r.shape)):(f=dn({},a?this.shape:o.shape),dn(f,r.shape)):c&&(f=o.shape),f)if(s){this.shape=dn({},this.shape);for(var h={},p=Wo(f),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 aL(ylt,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=uH(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})(zk);oI.prototype.type="tspan";var blt=Qi({x:0,y:0},sg),_lt={style:Qi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fL.style)};function Slt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Iv=(function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return aL(blt,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=Slt(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 _lt},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Ji(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(zk);Iv.prototype.type="image";function klt(e,t){var n=t.x,r=t.y,o=t.width,a=t.height,s=t.r,l,c,f,h;o<0&&(n=n+o,o=-o),a<0&&(r=r+a,a=-a),typeof s=="number"?l=c=f=h=s:s instanceof Array?s.length===1?l=c=f=h=s[0]:s.length===2?(l=f=s[0],c=h=s[1]):s.length===3?(l=s[0],c=h=s[1],f=s[2]):(l=s[0],c=s[1],f=s[2],h=s[3]):l=c=f=h=0;var p;l+c>o&&(p=l+c,l*=o/p,c*=o/p),f+h>o&&(p=f+h,f*=o/p,h*=o/p),c+f>a&&(p=c+f,c*=a/p,f*=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-f),f!==0&&e.arc(n+o-f,r+a-f,f,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 My=Math.round;function Bve(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&&(My(r*2)===My(o*2)&&(e.x1=e.x2=Vm(r,l,!0)),My(a*2)===My(s*2)&&(e.y1=e.y2=Vm(a,l,!0))),e}}function Fve(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=Vm(r,l,!0),e.y=Vm(o,l,!0),e.width=Math.max(Vm(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(Vm(o+s,l,!1)-e.y,s===0?0:1)),e}}function Vm(e,t,n){if(!t)return e;var r=My(e*2);return(r+My(t))%2===0?r/2:(r+(n?1:-1))/2}var wlt=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Clt={},Vs=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new wlt},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Fve(Clt,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?klt(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ro);Vs.prototype.type="rect";var Lre={fill:"#000"},Pre=2,Elt={style:Qi({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},fL.style)},za=(function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Lre,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"),j=s.calculatedLineHeight,z=0;z=0&&(z=R[j],z.align==="right");)this._placeToken(z,n,D,C,F,"right",x),N-=z.width,F-=z.width,j--;for(B+=(a-(B-k)-(E-F)-N)/2;L<=j;)z=R[L],this._placeToken(z,n,D,C,B+z.width/2,"center",x),B+=z.width,L++;C+=D}},t.prototype._placeToken=function(n,r,o,a,s,l,c){var f=r.rich[n.styleName]||{};f.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&&F7(f);m&&this._renderBackground(f,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!f.backgroundColor,b=n.textPadding;b&&(s=Nre(s,l,b),p-=n.height/2-b[0]-n.innerHeight/2);var S=this._getOrCreateChild(oI),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,E=!1,x=0,_=$re("fill"in f?f.fill:"fill"in r?r.fill:(E=!0,C.fill)),A=Ore("stroke"in f?f.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||E)?(x=Pre,C.stroke):null),R=f.textShadowBlur>0||r.textShadowBlur>0;k.text=n.text,k.x=s,k.y=p,R&&(k.shadowBlur=f.textShadowBlur||r.textShadowBlur||0,k.shadowColor=f.textShadowColor||r.textShadowColor||"transparent",k.shadowOffsetX=f.textShadowOffsetX||r.textShadowOffsetX||0,k.shadowOffsetY=f.textShadowOffsetY||r.textShadowOffsetY||0),k.textAlign=l,k.textBaseline="middle",k.font=n.font||wg,k.opacity=ZS(f.opacity,r.opacity,1),Mre(k,f),A&&(k.lineWidth=ZS(f.lineWidth,r.lineWidth,x),k.lineDash=oi(f.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=A),_&&(k.fill=_);var M=n.contentWidth,D=n.contentHeight;S.setBoundingRect(new Ji(gS(k.x,M,k.textAlign),Cy(k.y,D,k.textBaseline),M,D))},t.prototype._renderBackground=function(n,r,o,a,s,l){var c=n.backgroundColor,f=n.borderWidth,h=n.borderColor,p=c&&c.image,m=c&&!p,g=n.borderRadius,b=this,S,k;if(m||n.lineHeight||f&&h){S=this._getOrCreateChild(Vs),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 E=S.style;E.fill=c||null,E.fillOpacity=oi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(Iv),k.onload=function(){b.dirtyStyle()};var x=k.style;x.image=c.image,x.x=o,x.y=a,x.width=s,x.height=l}if(f&&h){var E=S.style;E.lineWidth=f,E.stroke=h,E.strokeOpacity=oi(n.strokeOpacity,1),E.lineDash=n.borderDash,E.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(E.strokeFirst=!0,E.lineWidth*=2)}var _=(S||k).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=ZS(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Ilt(n)&&(r=[n.fontStyle,n.fontWeight,Alt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&nf(r)||n.textFont||n.font},t})(zk),xlt={left:!0,right:1,center:1},Tlt={top:1,bottom:1,middle:1},Rre=["fontStyle","fontWeight","fontSize","fontFamily"];function Alt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Jz+"px":e+"px"}function Mre(e,t){for(var n=0;n=0,a=!1;if(e instanceof ro){var s=jve(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(ty(l)||ty(c)){r=r||{};var f=r.style||{};f.fill==="inherit"?(a=!0,r=dn({},r),f=dn({},f),f.fill=l):!ty(f.fill)&&ty(l)?(a=!0,r=dn({},r),f=dn({},f),f.fill=are(l)):!ty(f.stroke)&&ty(c)&&(a||(r=dn({},r),f=dn({},f)),f.stroke=are(c)),r.style=f}}if(r&&r.z2==null){a||(r=dn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Rlt)}return r}function Blt(e,t,n){if(n&&n.z2==null){n=dn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Mlt)}return n}function Flt(e,t,n){var r=so(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:$lt(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=dn({},n),s=dn({opacity:r?o:a.opacity*.1},s),n.style=s),n}function j7(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Nlt(this,e,t,n);if(e==="blur")return Flt(this,e,n);if(e==="select")return Blt(this,e,n)}return n}function jlt(e){e.stateProxy=j7;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=j7),n&&(n.stateProxy=j7)}function zre(e,t){!Kve(e,t)&&!e.__highByOuter&&Hh(e,Vve)}function Hre(e,t){!Kve(e,t)&&!e.__highByOuter&&Hh(e,Uve)}function aI(e,t){e.__highByOuter|=1<<(t||0),Hh(e,Vve)}function lI(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Hh(e,Uve)}function Vlt(e){Hh(e,gH)}function Hve(e){Hh(e,zve)}function Wve(e){Hh(e,Dlt)}function Gve(e){Hh(e,Olt)}function Kve(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function qve(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=vH(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(f){zve(f)}),l&&n.push(a)),s.isBlured=!1}),wt(r,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function Gj(e,t,n,r){var o=r.getModel();n=n||"coordinateSystem";function a(f,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function qj(e,t,n){Yve(e,!0),Hh(e,jlt),qlt(e,t,n)}function Klt(e){Yve(e,!1)}function q2(e,t,n,r){r?Klt(e):qj(e,t,n)}function qlt(e,t,n){var r=Bi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Gre=["emphasis","blur","select"],Ylt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function uI(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=V7(b),l*=V7(b));var S=(o===a?-1:1)*V7((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,E=(e+n)/2+yx(p)*k-gx(p)*C,x=(t+r)/2+gx(p)*k+yx(p)*C,_=Xre([1,0],[(m-k)/s,(g-C)/l]),A=[(m-k)/s,(g-C)/l],R=[(-1*m-k)/s,(-1*g-C)/l],M=Xre(A,R);if(Zj(A,R)<=-1&&(M=V_),Zj(A,R)>=1&&(M=0),M<0){var D=Math.round(M/V_*1e6)/1e6;M=V_*2+D%2*V_}h.addData(f,E,x,s,l,_,M,p,a)}var tut=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,nut=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rut(e){var t=new xg;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=xg.CMD,c=e.match(tut);if(!c)return t;for(var f=0;fz*z+q*q&&(D=L,N=B),{cx:D,cy:N,x0:-h,y0:-p,x1:D*(o/A-1),y1:N*(o/A-1)}}function dut(e){var t;if(Gn(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 fut(e,t){var n,r=yS(t.r,0),o=yS(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,f=t.endAngle;if(!(isNaN(c)||isNaN(f))){var h=t.cx,p=t.cy,m=!!t.clockwise,g=Jre(f-c),b=g>U7&&g%U7;if(b>id&&(g=b),!(r>id))e.moveTo(h,p);else if(g>U7-id)e.moveTo(h+r*ry(c),p+r*bm(c)),e.arc(h,p,r,c,f,!m),o>id&&(e.moveTo(h+o*ry(f),p+o*bm(f)),e.arc(h,p,o,f,c,m));else{var S=void 0,k=void 0,C=void 0,E=void 0,x=void 0,_=void 0,A=void 0,R=void 0,M=void 0,D=void 0,N=void 0,L=void 0,B=void 0,F=void 0,j=void 0,z=void 0,q=r*ry(c),G=r*bm(c),ee=o*ry(f),Q=o*bm(f),X=g>id;if(X){var K=t.cornerRadius;K&&(n=dut(K),S=n[0],k=n[1],C=n[2],E=n[3]);var te=Jre(r-o)/2;if(x=Vd(te,C),_=Vd(te,E),A=Vd(te,S),R=Vd(te,k),N=M=yS(x,_),L=D=yS(A,R),(M>id||D>id)&&(B=r*ry(f),F=r*bm(f),j=o*ry(c),z=o*bm(c),gid){var Fe=Vd(C,N),Xe=Vd(E,N),Je=bx(j,z,q,G,r,Fe,m),Ke=bx(B,F,ee,Q,r,Xe,m);e.moveTo(h+Je.cx+Je.x0,p+Je.cy+Je.y0),N0&&e.arc(h+Je.cx,p+Je.cy,Fe,Ja(Je.y0,Je.x0),Ja(Je.y1,Je.x1),!m),e.arc(h,p,r,Ja(Je.cy+Je.y1,Je.cx+Je.x1),Ja(Ke.cy+Ke.y1,Ke.cx+Ke.x1),!m),Xe>0&&e.arc(h+Ke.cx,p+Ke.cy,Xe,Ja(Ke.y1,Ke.x1),Ja(Ke.y0,Ke.x0),!m))}else e.moveTo(h+q,p+G),e.arc(h,p,r,c,f,!m);if(!(o>id)||!X)e.lineTo(h+ee,p+Q);else if(L>id){var Fe=Vd(S,L),Xe=Vd(k,L),Je=bx(ee,Q,B,F,o,-Xe,m),Ke=bx(q,G,j,z,o,-Fe,m);e.lineTo(h+Je.cx+Je.x0,p+Je.cy+Je.y0),L0&&e.arc(h+Je.cx,p+Je.cy,Xe,Ja(Je.y0,Je.x0),Ja(Je.y1,Je.x1),!m),e.arc(h,p,o,Ja(Je.cy+Je.y1,Je.cx+Je.x1),Ja(Ke.cy+Ke.y1,Ke.cx+Ke.x1),m),Fe>0&&e.arc(h+Ke.cx,p+Ke.cy,Fe,Ja(Ke.y1,Ke.x1),Ja(Ke.y0,Ke.x0),!m))}else e.lineTo(h+ee,p+Q),e.arc(h,p,o,f,c,m)}e.closePath()}}}var hut=(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})(),Lv=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new hut},t.prototype.buildPath=function(n,r){fut(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ro);Lv.prototype.type="sector";var put=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),_H=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new put},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})(ro);_H.prototype.type="ring";function vut(e,t,n,r){var o=[],a=[],s=[],l=[],c,f,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=vut(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],f=a[l*2+1],h=o[(l+1)%s];e.bezierCurveTo(c[0],c[1],f[0],f[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);for(var l=1,p=o.length;lSm[1]){if(l=!1,a)return l;var h=Math.abs(Sm[0]-_m[1]),p=Math.abs(_m[0]-Sm[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,m=h.delay,g=h.easing,b={duration:p,delay:m||0,easing:g,done:a,force:!!a||!!s,setToFinal:!f,scope:e,during:s};l?t.animateFrom(n,b):t.animateTo(n,b)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function Ul(e,t,n,r,o,a){wH("update",e,t,n,r,o,a)}function Oc(e,t,n,r,o,a){wH("enter",e,t,n,r,o,a)}function o2(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 tie(e){return!e.isGroup}function Nut(e){return e.shape!=null}function sme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){tie(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Nut(s)&&(l.shape=dn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(tie(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),Ul(s,c,n,Bi(s).dataIndex)}}})}function But(e,t){return pr(e,function(n){var r=n[0];r=hI(r,t.x),r=pI(r,t.x+t.width);var o=n[1];return o=hI(o,t.y),o=pI(o,t.y+t.height),[r,o]})}function Fut(e,t){var n=hI(e.x,t.x),r=pI(e.x+e.width,t.x+t.width),o=hI(e.y,t.y),a=pI(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 TH(e,t,n){var r=dn({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),Qi(o,n),new Iv(r)):EH(e.replace("path://",""),r,n,"center")}function jut(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=z7(g,b,h,p)/m;return!(k<0||k>1)}function z7(e,t,n,r){return e*r-n*t}function Vut(e){return e<=1e-6&&e>=-1e-6}function yL(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=ur(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&&wt(Wo(c),function(h){Cg(l,h)||(l[h]=c[h],l.$vars.push(h))});var f=Bi(e.el);f.componentMainType=a,f.componentIndex=s,f.tooltipConfig={name:r,option:Qi({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function nie(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function bL(e,t){if(e)if(Gn(e))for(var n=0;n=0&&l.push(c)}),l}}function cme(e,t){return Zi(Zi({},e,!0),t,!0)}const rct={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:". "}}}},ict={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 vI="ZH",AH="EN",Qy=AH,F4={},IH={},dme=Pr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Qy).toUpperCase();return e.indexOf(vI)>-1?vI:Qy})():Qy;function fme(e,t){e=e.toUpperCase(),IH[e]=new fs(t),F4[e]=t}function oct(e){if(ur(e)){var t=F4[e.toUpperCase()]||{};return e===vI||e===AH?Pi(t):Zi(Pi(t),Pi(F4[Qy]),!1)}else return Zi(Pi(e),Pi(F4[Qy]),!1)}function sct(e){return IH[e]}function act(){return IH[Qy]}fme(AH,rct);fme(vI,ict);var LH=1e3,PH=LH*60,s2=PH*60,Lc=s2*24,uie=Lc*365,bS={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}"},kx="{yyyy}-{MM}-{dd}",cie={year:"{yyyy}",month:"{yyyy}-{MM}",day:kx,hour:kx+" "+bS.hour,minute:kx+" "+bS.minute,second:kx+" "+bS.second,millisecond:bS.none},G7=["year","month","day","hour","minute","second","millisecond"],hme=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _p(e,t){return e+="","0000".substr(0,t-e.length)+e}function e1(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 lct(e){return e===e1(e)}function uct(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wL(e,t,n,r){var o=$h(e),a=o[RH(n)](),s=o[t1(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[CL(n)](),f=o["get"+(n?"UTC":"")+"Day"](),h=o[X2(n)](),p=(h-1)%12+1,m=o[EL(n)](),g=o[xL(n)](),b=o[TL(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof fs?r:sct(r||dme)||act(),E=C.getModel("time"),x=E.get("month"),_=E.get("monthAbbr"),A=E.get("dayOfWeek"),R=E.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,_p(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,x[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,_p(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,_p(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,A[f]).replace(/{ee}/g,R[f]).replace(/{e}/g,f+"").replace(/{HH}/g,_p(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,_p(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,_p(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,_p(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,_p(b,3)).replace(/{S}/g,b+"")}function cct(e,t,n,r,o){var a=null;if(ur(n))a=n;else if(Hr(n))a=n(e.value,t,{level:e.level});else{var s=dn({},bS);if(e.level>0)for(var l=0;l=0;--l)if(c[f]){a=c[f];break}a=a||s.none}if(Gn(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 wL(new Date(e.value),a,o,r)}function pme(e,t){var n=$h(e),r=n[t1(t)]()+1,o=n[CL(t)](),a=n[X2(t)](),s=n[EL(t)](),l=n[xL(t)](),c=n[TL(t)](),f=c===0,h=f&&l===0,p=h&&s===0,m=p&&a===0,g=m&&o===1,b=g&&r===1;return b?"year":g?"month":m?"day":p?"hour":h?"minute":f?"second":"millisecond"}function die(e,t,n){var r=bo(e)?$h(e):e;switch(t=t||pme(e,n),t){case"year":return r[RH(n)]();case"half-year":return r[t1(n)]()>=6?1:0;case"quarter":return Math.floor((r[t1(n)]()+1)/4);case"month":return r[t1(n)]();case"day":return r[CL(n)]();case"half-day":return r[X2(n)]()/24;case"hour":return r[X2(n)]();case"minute":return r[EL(n)]();case"second":return r[xL(n)]();case"millisecond":return r[TL(n)]()}}function RH(e){return e?"getUTCFullYear":"getFullYear"}function t1(e){return e?"getUTCMonth":"getMonth"}function CL(e){return e?"getUTCDate":"getDate"}function X2(e){return e?"getUTCHours":"getHours"}function EL(e){return e?"getUTCMinutes":"getMinutes"}function xL(e){return e?"getUTCSeconds":"getSeconds"}function TL(e){return e?"getUTCMilliseconds":"getMilliseconds"}function dct(e){return e?"setUTCFullYear":"setFullYear"}function vme(e){return e?"setUTCMonth":"setMonth"}function mme(e){return e?"setUTCDate":"setDate"}function gme(e){return e?"setUTCHours":"setHours"}function yme(e){return e?"setUTCMinutes":"setMinutes"}function bme(e){return e?"setUTCSeconds":"setSeconds"}function _me(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Sme(e){if(!yat(e))return ur(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function kme(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 AL=Qpe;function Qj(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&nf(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?$h(e):e;if(isNaN(+c)){if(l)return"-"}else return wL(c,r,n)}if(t==="ordinal")return wj(e)?o(e):bo(e)&&a(e)?e+"":"-";var f=iI(e);return a(f)?Sme(f):wj(e)?o(e):typeof e=="boolean"?e+"":"-"}var fie=["a","b","c","d","e","f","g"],K7=function(e,t){return"{"+e+(t??"")+"}"};function wme(e,t,n){Gn(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 Tg(e,t){return t=t||"transparent",ur(e)?e:br(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function hie(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var j4=wt,hct=["left","right","top","bottom","width","height"],Cx=[["width","left","right"],["height","top","bottom"]];function MH(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,f){var h=c.getBoundingRect(),p=t.childAt(f+1),m=p&&p.getBoundingRect(),g,b;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);b=s+k,b>o||c.newline?(a+=l+n,s=0,b=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=b+n)})}var a2=MH;Ss(MH,"vertical");Ss(MH,"horizontal");function w1(e,t,n){n=AL(n||0);var r=t.width,o=t.height,a=Ho(e.left,r),s=Ho(e.top,o),l=Ho(e.right,r),c=Ho(e.bottom,o),f=Ho(e.width,r),h=Ho(e.height,o),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(f)&&(f=r-l-m-a),isNaN(h)&&(h=o-c-p-s),g!=null&&(isNaN(f)&&isNaN(h)&&(g>r/o?f=r*.8:h=o*.8),isNaN(f)&&(f=g*h),isNaN(h)&&(h=f/g)),isNaN(a)&&(a=r-l-f-m),isNaN(s)&&(s=o-c-h-p),e.left||e.right){case"center":a=r/2-f/2-n[3];break;case"right":a=r-f-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(f)&&(f=r-m-a-(l||0)),isNaN(h)&&(h=o-p-s-(c||0));var b=new Ji(a+n[3],s+n[0],f,h);return b.margin=n,b}function Z2(e){var t=e.layoutMode||e.constructor.layoutMode;return br(t)?t:t?{type:t}:null}function C1(e,t,n){var r=n&&n.ignoreSize;!Gn(r)&&(r=[r,r]);var o=s(Cx[0],0),a=s(Cx[1],1);f(Cx[0],e,o),f(Cx[1],e,a);function s(h,p){var m={},g=0,b={},S=0,k=2;if(j4(h,function(x){b[x]=e[x]}),j4(h,function(x){l(t,x)&&(m[x]=b[x]=t[x]),c(m,x)&&g++,c(b,x)&&S++}),r[p])return c(t,h[1])?b[h[2]]=null:c(t,h[2])&&(b[h[1]]=null),b;if(S===k||!g)return b;if(g>=k)return m;for(var C=0;C=0;c--)l=Zi(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return Uk(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})(fs);Lve(to,fs);cL(to);tct(to);nct(to,mct);function mct(e){var t=[];return wt(to.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=pr(t,function(n){return rf(n).main}),e!=="dataset"&&so(t,"dataset")<=0&&t.unshift("dataset"),t}var Cme="";typeof navigator<"u"&&(Cme=navigator.platform||"");var iy="rgba(0, 0, 0, 0.2)";const gct={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:iy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:iy,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:iy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:iy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:iy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:iy,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Cme.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 Eme=di(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Hc="original",Eu="arrayRows",Ad="objectRows",Cf="keyedColumns",iv="typedArray",xme="unknown",Eh="column",Q1="row",xa={Must:1,Might:2,Not:3},Tme=xs();function yct(e){Tme(e).datasetMap=di()}function bct(e,t,n){var r={},o=DH(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=Tme(l).datasetMap,f=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),wt(e,function(S,k){var C=br(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=b(C)),r[C.name]=[]});var m=c.get(f)||c.set(f,{categoryWayDim:p,valueWayDim:0});wt(e,function(S,k){var C=S.name,E=b(S);if(h==null){var x=m.valueWayDim;g(r[C],x,E),g(s,x,E),m.valueWayDim+=E}else if(h===k)g(r[C],0,E),g(a,0,E);else{var x=m.categoryWayDim;g(r[C],x,E),g(s,x,E),m.categoryWayDim+=E}});function g(S,k,C){for(var E=0;Et)return e[r];return e[n-1]}function Ect(e,t,n,r,o,a,s){a=a||e;var l=t(a),c=l.paletteIdx||0,f=l.paletteNameMap=l.paletteNameMap||{};if(f.hasOwnProperty(o))return f[o];var h=s==null||!r?n:Cct(r,s);if(h=h||n,!(!h||!h.length)){var p=h[c];return o&&(f[o]=p),l.paletteIdx=(c+1)%h.length,p}}function xct(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ex,U_,vie,mie="\0_ec_inner",Tct=1,$H=(function(e){Rn(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 fs(a),this._locale=new fs(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=bie(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,bie(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"?vie(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&&wt(c,function(f){o=!0,this._mergeOption(f,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=di(),f=r&&r.replaceMergeMainTypeMap;yct(this),wt(n,function(p,m){p!=null&&(to.hasClass(m)?m&&(l.push(m),c.set(m,!0)):o[m]=o[m]==null?Pi(p):Zi(o[m],p,!0))}),f&&f.each(function(p,m){to.hasClass(m)&&!c.get(m)&&(l.push(m),c.set(m,!0))}),to.topologicalTravel(l,to.getAllClassMainTypes(),h,this);function h(p){var m=wct(this,p,jl(n[p])),g=a.get(p),b=g?f&&f.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=Sat(g,m,b);Aat(S,p,to),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],E=0,x;wt(S,function(_,A){var R=_.existing,M=_.newOption;if(!M)R&&(R.mergeOption({},this),R.optionUpdated({},!1));else{var D=p==="series",N=to.getClass(p,_.keyInfo.subType,!D);if(!N)return;if(p==="tooltip"){if(x)return;x=!0}if(R&&R.constructor===N)R.name=_.keyInfo.name,R.mergeOption(M,this),R.optionUpdated(M,!1);else{var L=dn({componentIndex:A},_.keyInfo);R=new N(M,this,this,L),dn(R,L),_.brandNew&&(R.__requireNewView=!0),R.init(M,this,this),R.optionUpdated(null,!0)}}R?(k.push(R.option),C.push(R),E++):(k.push(void 0),C.push(void 0))},this),o[p]=k,a.set(p,C),s.set(p,E),p==="series"&&Ex(this)}this._seriesIndices||Ex(this)},t.prototype.getOption=function(){var n=Pi(this.option);return wt(n,function(r,o){if(to.hasClass(o)){for(var a=jl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!G2(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[mie],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 $ct(e,t){return e.join(",")===t.join(",")}var Qc=wt,J2=br,_ie=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Y7(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=_ie.length;n=0;k--){var C=e[k];if(l||(b=C.data.rawIndexOf(C.stackedByDimension,g)),b>=0){var E=C.data.getByRawIndex(C.stackResultDimension,b);if(c==="all"||c==="positive"&&E>0||c==="negative"&&E<0||c==="samesign"&&m>=0&&E>0||c==="samesign"&&m<=0&&E<0){m=vat(m,E),S=E;break}}}return r[0]=m,r[1]=S,r})})}var LL=(function(){function e(t){this.data=t.data||(t.sourceFormat===Cf?{}:[]),this.sourceFormat=t.sourceFormat||xme,this.seriesLayoutBy=t.seriesLayoutBy||Eh,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=x)}g[0]=b,g[1]=S}},o=function(){return this._data?this._data.length/this._dimSize:0};Tie=(t={},t[Eu+"_"+Eh]={pure:!0,appendData:a},t[Eu+"_"+Q1]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ad]={pure:!0,appendData:a},t[Cf]={pure:!0,appendData:function(s){var l=this._data;wt(s,function(c,f){for(var h=l[f]||(l[f]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[Hc]={appendData:a},t[iv]={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 E1(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Pie(e){var t,n;return br(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function l2(e){return new edt(e)}var edt=(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),f=t&&t.modDataCount||0;(s!==c||l!==f)&&(a="reset");function h(E){return!(E>=1)&&(E=1),E}var p;(this._dirty||a==="reset")&&(this._dirty=!1,p=this._doReset(r)),this._modBy=c,this._modDataCount=f;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,b=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})(),ndt=(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 V4(t,n)},e})();function rdt(e,t){var n=new ndt,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Eh&&fu(s);var l=[],c={},f=e.dimensionsDefine;if(f)wt(f,function(S,k){var C=S.name,E={index:k,name:C,displayName:S.displayName};if(l.push(E),C!=null){var x="";Cg(c,C)&&fu(x),c[C]=E}});else for(var h=0;h65535?ddt:fdt}function sy(){return[1/0,-1/0]}function hdt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Die(e,t,n,r,o){var a=Ume[n||"float"];if(o){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),f=0;fk[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,f=pr(s,function(E){return E.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,f=0,h=0,p=this.count();h=0&&c<0)&&(l=b,c=g,f=0),g===c&&(s[f++]=h))}return s.length=f,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&&E<=m||isNaN(E))&&(c[f++]=S),S++}b=!0}else if(a===2){for(var k=g[o[0]],x=g[o[1]],_=t[o[1]][0],A=t[o[1]][1],C=0;C=p&&E<=m||isNaN(E))&&(R>=_&&R<=A||isNaN(R))&&(c[f++]=S),S++}b=!0}}if(!b)if(a===1)for(var C=0;C=p&&E<=m||isNaN(E))&&(c[f++]=M)}else for(var C=0;Ct[L][1])&&(D=!1)}D&&(c[f++]=n.getRawIndex(C))}return fC[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),f=this.getRawIndex(0),h,p,m,g=new(oy(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=f;for(var b=1;bh&&(h=p,m=_)}B>0&&Bl&&(S=l-h);for(var k=0;kb&&(b=E,g=h+k)}var x=this.getRawIndex(p),_=this.getRawIndex(g);ph-b&&(c=h-b,l.length=c);for(var S=0;Sp[1]&&(p[1]=C),m[g++]=E}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 V4(n[a],this._dimensions[a])}J7={arrayRows:t,objectRows:function(n,r,o,a){return V4(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return V4(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),pdt=(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(xx(t)){var s=t,l=void 0,c=void 0,f=void 0;if(r){var h=n[0];h.prepareSource(),f=h.getSource(),l=f.data,c=f.sourceFormat,a=[h._getVersionSign()]}else l=s.get("data",!0),c=Cu(l)?iv:Hc,a=[];var p=this._getSourceMetaRawOption()||{},m=f&&f.metaRawOption||{},g=oi(p.seriesLayoutBy,m.seriesLayoutBy)||null,b=oi(p.sourceHeader,m.sourceHeader),S=oi(p.dimensions,m.dimensions),k=g!==m.seriesLayoutBy||!!b!=!!m.sourceHeader||S;o=k?[eV(l,{seriesLayoutBy:g,sourceHeader:b,dimensions:S},c)]:[]}else{var C=t;if(r){var E=this._applyTransform(n);o=E.sourceList,a=E.upstreamSignList}else{var x=C.get("source",!0);o=[eV(x,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&&Oie(a)}var s,l=[],c=[];return wt(t,function(f){f.prepareSource();var h=f.getSource(o||0),p="";o!=null&&!h&&Oie(p),l.push(h),c.push(f._getVersionSign())}),r?s=udt(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[Gct(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 wt(e.blocks,function(o){var a=Gme(o);a>=t&&(t=a+ +(r&&(!a||nV(o)&&!o.noHeader)))}),t}return 0}function ydt(e,t,n,r){var o=t.noHeader,a=_dt(Gme(t)),s=[],l=t.blocks||[];Oh(!l||Gn(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(Cg(f,c)){var h=new tdt(f[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}wt(l,function(S,k){var C=t.valueFormatter,E=Wme(S)(C?dn(dn({},e),{valueFormatter:C}):e,S,k>0?a.html:0,r);E!=null&&s.push(E)});var p=e.renderMode==="richText"?s.join(a.richText):rV(r,s.join(""),o?n:a.html);if(o)return p;var m=Qj(t.header,"ordinal",e.useUTC),g=Hme(r,e.renderMode).nameStyle,b=zme(r);return e.renderMode==="richText"?Kme(e,m,g)+a.richText+p:rV(r,'
'+cu(m)+"
"+p,n)}function bdt(e,t,n,r){var o=e.renderMode,a=t.noName,s=t.noValue,l=!t.markerType,c=t.name,f=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(_){return _=Gn(_)?_:[_],pr(_,function(A,R){return Qj(A,Gn(g)?g[R]:g,f)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=a?"":Qj(c,"ordinal",f),g=t.valueType,b=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=Hme(r,o),E=C.nameStyle,x=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":Kme(e,m,E))+(s?"":wdt(e,b,S,k,x)):rV(r,(l?"":p)+(a?"":Sdt(m,!l,E))+(s?"":kdt(b,S,k,x)),n)}}function $ie(e,t,n,r,o,a){if(e){var s=Wme(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function _dt(e){return{html:mdt[e],richText:gdt[e]}}function rV(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=zme(e);return'
'+t+r+"
"}function Sdt(e,t,n){var r=t?"margin-left:2px":"";return''+cu(e)+""}function kdt(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=Gn(e)?e:[e],''+pr(e,function(s){return cu(s)}).join("  ")+""}function Kme(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function wdt(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(Gn(t)?t.join(" "):t,a)}function Cdt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Tg(r)}function qme(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Q7=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Cve()}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=fct({color:n,type:t,renderMode:r,markerId:o});return ur(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Gn(n)?wt(n,function(a){return dn(r,a)}):dn(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function Edt(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=Gn(l),f=Cdt(t,n),h,p,m,g;if(s>1||c&&!s){var b=xdt(l,t,n,a,f);h=b.inlineValues,p=b.inlineValueTypes,m=b.blocks,g=b.inlineValues[0]}else if(s){var S=o.getDimensionInfo(a[0]);g=h=E1(o,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=fH(t),C=k&&t.name||"",E=o.getName(n),x=r?C:E;return Q2("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[Q2("nameValue",{markerType:"item",markerColor:f,name:x,noName:!nf(x),value:h,valueType:p,dataIndex:n})].concat(m||[])})}function xdt(e,t,n,r,o){var a=t.getData(),s=pv(e,function(p,m,g){var b=a.getDimensionInfo(g);return p=p||b&&b.tooltip!==!1&&b.displayName!=null},!1),l=[],c=[],f=[];r.length?wt(r,function(p){h(E1(a,n,p),p)}):wt(e,h);function h(p,m){var g=a.getDimensionInfo(m);!g||g.otherDims.tooltip===!1||(s?f.push(Q2("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:f}}var Sp=xs();function Tx(e,t){return e.getName(t)||e.getId(t)}var Tdt="__universalTransitionEnabled",wd=(function(e){Rn(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=l2({count:Idt,reset:Ldt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=Sp(this).sourceManager=new pdt(this);a.prepareSource();var s=this.getInitialData(n,o);Bie(s,this),this.dataTask.context.data=s,Sp(this).dataBeforeProcessed=s,Nie(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=Z2(this),a=o?IL(n):{},s=this.subType;to.hasClass(s)&&(s+="Series"),Zi(n,r.getTheme().get(this.subType)),Zi(n,this.getDefaultOption()),Uj(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&C1(n,a,o)},t.prototype.mergeOption=function(n,r){n=Zi(this.option,n,!0),this.fillDataTextStyle(n.data);var o=Z2(this);o&&C1(this.option,n,o);var a=Sp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);Bie(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Sp(this).dataBeforeProcessed=s,Nie(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Cu(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=OH.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[Tx(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Tdt])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"){br(s.selectedMap)||(s.selectedMap={});for(var f=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return to.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})(to);kf(wd,Qct);kf(wd,OH);Lve(wd,to);function Nie(e){var t=e.name;fH(e)||(e.name=Adt(e)||t)}function Adt(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return wt(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Idt(e){return e.model.getRawData().count()}function Ldt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Pdt}function Pdt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Bie(e,t){wt(Xot(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ss(Rdt,t))})}function Rdt(e,t){var n=iV(e);return n&&n.setOutputEnd((t||this).count()),t}function iV(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 Cd=(function(){function e(){this.group=new Ua,this.uid=kL("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})();pH(Cd);cL(Cd);function VH(){var e=xs();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 Yme=xs(),Mdt=VH(),$c=(function(){function e(){this.group=new Ua,this.uid=kL("viewChart"),this.renderTask=l2({plan:Ddt,reset:Odt}),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&&jie(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&jie(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){bL(this.group,t)},e.markUpdateMethod=function(t,n){Yme(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Fie(e,t,n){e&&Yj(e)&&(t==="emphasis"?aI:lI)(e,n)}function jie(e,t,n){var r=Eg(e,t),o=t&&t.highlightKey!=null?Xlt(t.highlightKey):null;r!=null?wt(jl(r),function(a){Fie(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Fie(a,n,o)})}pH($c);cL($c);function Ddt(e){return Mdt(e.model)}function Odt(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&Yme(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),$dt[c]}var $dt={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)}}},mI="\0__throttleOriginMethod",Vie="\0__throttleRate",Uie="\0__throttleType";function RL(e,t,n){var r,o=0,a=0,s=null,l,c,f,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,f||[])}var m=function(){for(var g=[],b=0;b=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 Xme(e,t,n,r){var o=e[t];if(o){var a=o[mI]||o,s=o[Uie],l=o[Vie];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=RL(a,n,r==="debounce"),o[mI]=a,o[Uie]=r,o[Vie]=n}return o}}function oV(e,t){var n=e[t];n&&n[mI]&&(n.clear&&n.clear(),e[t]=n[mI])}var zie=xs(),Hie={itemStyle:K2(ume,!0),lineStyle:K2(lme,!0)},Ndt={lineStyle:"stroke",itemStyle:"fill"};function Zme(e,t){var n=e.visualStyleMapper||Hie[t];return n||(console.warn("Unknown style type '"+t+"'."),Hie.itemStyle)}function Jme(e,t){var n=e.visualDrawType||Ndt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Bdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=Zme(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Jme(e,r),f=s[c],h=Hr(f)?f: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"||Hr(s.fill)?m:s.fill,s.stroke=s.stroke==="auto"||Hr(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,b){var S=e.getDataParams(b),k=dn({},s);k[c]=h(S),g.setItemVisual(b,"style",k)}}}},H_=new fs,Fdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=Zme(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){H_.option=c[r];var f=o(H_),h=s.ensureUniqueItemVisual(l,"style");dn(h,f),H_.option.decal&&(s.setItemVisual(l,"decal",H_.option.decal),H_.option.decal.dirty=!0),a in f&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},jdt={performRawSeries:!0,overallReset:function(e){var t=di();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)),zie(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=zie(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=Jme(n,l);a.each(function(f){var h=a.getRawIndex(f);o[h]=f}),r.each(function(f){var h=o[f],p=a.getItemVisual(h,"colorFromPalette");if(p){var m=a.ensureUniqueItemVisual(h,"style"),g=r.getName(f)||f+"",b=r.count();m[c]=n.getColorFromPalette(g,s,b)}})}})}},Ax=Math.PI;function Vdt(e,t){t=t||{},Qi(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 Ua,r=new Vs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o=new za({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 Vs({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 gL({shape:{startAngle:-Ax/2,endAngle:-Ax/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:Ax*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:Ax*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=o.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,f=(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:f,cy:h}),a.setShape({x:f-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 Qme=(function(){function e(t,n,r,o){this._stageTaskMap=di(),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=di();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;wt(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";Oh(!(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;wt(t,function(c,f){if(!(o.visualType&&o.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,m=h.overallTask;if(m){var g,b=m.agentStubMap;b.each(function(k){l(o,k)&&(k.dirty(),g=!0)}),g&&m.dirty(),s.updatePayload(m,r);var S=s.getPerformArgs(m,o.block);b.each(function(k){k.perform(S)}),m.perform(S)&&(a=!0)}else p&&p.each(function(k,C){l(o,k)&&k.dirty();var E=s.getPerformArgs(k,o.block);E.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(E)&&(a=!0)})}});function l(c,f){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(f.__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=di(),c=t.seriesType,f=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):f&&f(r,o).each(h);function h(p){var m=p.uid,g=l.set(m,s&&s.get(m)||l2({plan:Gdt,reset:Kdt,count:Ydt}));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||l2({reset:Udt});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=di(),f=t.seriesType,h=t.getTargetSeries,p=!0,m=!1,g="";Oh(!t.createOnAllSeries,g),f?r.eachRawSeriesByType(f,b):h?h(r,o).each(b):(p=!1,wt(r.getSeries(),b));function b(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(m=!0,l2({reset:zdt,onDirty:Wdt})));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 Hr(t)&&(t={overallReset:t,seriesType:Xdt(t)}),t.uid=kL("stageHandler"),n&&(t.visualType=n),t},e})();function Udt(e){e.overallReset(e.ecModel,e.api,e.payload)}function zdt(e){return e.overallProgress&&Hdt}function Hdt(){this.agent.dirty(),this.getDownstream().dirty()}function Wdt(){this.agent&&this.agent.dirty()}function Gdt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Kdt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=jl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?pr(t,function(n,r){return ege(r)}):qdt}var qdt=ege(0);function ege(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a0&&g===f.length-m.length){var b=f.slice(0,g);b!=="data"&&(n.mainType=b,n[m.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(f)&&(r[f]=c,h=!0),h||(o[f]=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,f=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(f,a,"name")&&h(f,a,"dataIndex")&&h(f,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,o,a));function h(p,m,g,b){return p[g]==null||m[b||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),sV=["symbol","symbolSize","symbolRotate","symbolOffset"],qie=sV.concat(["symbolKeepAspect"]),Qdt={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&&Um(c)?c:.5;var f=e.createRadialGradient(s,l,0,s,l,c);return f}function lV(e,t,n){for(var r=t.type==="radial"?yft(e,t,n):gft(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bo(e)?[e]:Gn(e)?e:null}function oge(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&_ft(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=pr(n,function(a){return a/o}),r/=o)}return[n,r]}var Sft=new xg(!0);function yI(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Yie(e){return typeof e=="string"&&e!=="none"}function bI(e){var t=e.fill;return t!=null&&t!=="none"}function Xie(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 Zie(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 uV(e,t,n){var r=Pve(t.image,t.__image,n);if(dL(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)*Zot),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function kft(e,t,n,r){var o,a=yI(n),s=bI(n),l=n.strokePercent,c=l<1,f=!t.path;(!t.silent||c)&&f&&t.createPathProxy();var h=t.path||Sft,p=t.__dirty;if(!r){var m=n.fill,g=n.stroke,b=s&&!!m.colorStops,S=a&&!!g.colorStops,k=s&&!!m.image,C=a&&!!g.image,E=void 0,x=void 0,_=void 0,A=void 0,R=void 0;(b||S)&&(R=t.getBoundingRect()),b&&(E=p?lV(e,m,R):t.__canvasFillGradient,t.__canvasFillGradient=E),S&&(x=p?lV(e,g,R):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),k&&(_=p||!t.__canvasFillPattern?uV(e,m,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(A=p||!t.__canvasStrokePattern?uV(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),b?e.fillStyle=E:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=x:C&&(A?e.strokeStyle=A:a=!1)}var M=t.getGlobalScale();h.setScale(M[0],M[1],t.segmentIgnoreThreshold);var D,N;e.setLineDash&&n.lineDash&&(o=oge(t),D=o[0],N=o[1]);var L=!0;(f||p&wy)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),L=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),L&&h.rebuildPath(e,c?l:1),D&&(e.setLineDash(D),e.lineDashOffset=N),r||(n.strokeFirst?(a&&Zie(e,n),s&&Xie(e,n)):(s&&Xie(e,n),a&&Zie(e,n))),D&&e.setLineDash([])}function wft(e,t,n){var r=t.__image=Pve(n.image,t.__image,t,t.onload);if(!(!r||!dL(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 f=n.sx||0,h=n.sy||0;e.drawImage(r,f,h,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var f=n.sx,h=n.sy,p=s-f,m=l-h;e.drawImage(r,f,h,p,m,o,a,s,l)}else e.drawImage(r,o,a,s,l)}}function Cft(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||wg,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=oge(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(yI(n)&&e.strokeText(o,n.x,n.y),bI(n)&&e.fillText(o,n.x,n.y)):(bI(n)&&e.fillText(o,n.x,n.y),yI(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var Jie=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qie=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){hu(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?sg.opacity:s}(r||t.blend!==n.blend)&&(a||(hu(e,o),a=!0),e.globalCompositeOperation=t.blend||sg.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[Qa]){if(this._disposed){this.id;return}var a,s,l;if(br(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[Qa]=!0,!this._model||r){var c=new Rct(this._api),f=this._theme,h=this._model=new $H;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,f,this._locale,c)}this._model.setOption(n,{replaceMerge:s},fV);var p={seriesTransition:l,optionChanged:!0};if(o)this[ru]={silent:a,updateParams:p},this[Qa]=!1,this.getZr().wakeUp();else{try{ly(this),kp.update.call(this,null,p)}catch(m){throw this[ru]=null,this[Qa]=!1,m}this._ssr||this._zr.flush(),this[ru]=null,this[Qa]=!1,W_.call(this,a),G_.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||Pr.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(Pr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return wt(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;wt(r,function(c){o.eachComponent({mainType:c},function(f){var h=s._componentsMap[f.__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 wt(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(poe[o]){var c=l,f=l,h=-l,p=-l,m=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();wt(c2,function(x,_){if(x.group===o){var A=r?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Pi(n)),R=x.getDom().getBoundingClientRect();c=a(R.left,c),f=a(R.top,f),h=s(R.right,h),p=s(R.bottom,p),m.push({dom:A,left:R.left,top:R.top})}}),c*=g,f*=g,h*=g,p*=g;var b=h-c,S=p-f,k=Z1.createCanvas(),C=yre(k,{renderer:r?"svg":"canvas"});if(C.resize({width:b,height:S}),r){var E="";return wt(m,function(x){var _=x.left-c,A=x.top-f;E+=''+x.dom+""}),C.painter.getSvgRoot().innerHTML=E,n.connectedBackgroundColor&&C.painter.setBackgroundColor(n.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}else return n.connectedBackgroundColor&&C.add(new Vs({shape:{x:0,y:0,width:b,height:S},style:{fill:n.connectedBackgroundColor}})),wt(m,function(x){var _=new Iv({style:{x:x.left*g-c,y:x.top*g-f,image:x.dom}});C.add(_)}),C.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return i9(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return i9(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=T7(o,n);return wt(s,function(l,c){c.indexOf("Models")>=0&&wt(l,function(f){var h=f.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[f.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,f))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var o=this._model,a=T7(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?tft(l,c,r):nft(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;wt(Yft,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,f=r==="globalout";if(f?c={}:l&&SS(l,function(b){var S=Bi(b);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=dn({},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)}),wt(u2,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),wt(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),ift(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&&Ave(this.getDom(),HH,"");var r=this,o=r._api,a=r._model;wt(r._componentsViews,function(s){s.dispose(a,o)}),wt(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 c2[r.id]},t.prototype.resize=function(n){if(!this[Qa]){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[ru]&&(a==null&&(a=this[ru].silent),o=!0,this[ru]=null),this[Qa]=!0;try{o&&ly(this),kp.update.call(this,{type:"resize",animation:dn({duration:0},n&&n.animation)})}catch(s){throw this[Qa]=!1,s}this[Qa]=!1,W_.call(this,a),G_.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(br(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!hV[n]){var o=hV[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=dn({},n);return r.type=u2[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(br(r)||(r={silent:!!r}),!!_I[n.type]&&this._model){if(this[Qa]){this._pendingActions.push(n);return}var o=r.silent;s9.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&Pr.browser.weChat&&this._throttledZrFlush(),W_.call(this,o),G_.call(this,o)}},t.prototype.updateLabelLayout=function(){ad.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(){ly=function(p){var m=p._scheduler;m.restorePipelines(p._model),m.prepareStageTasks(),r9(p,!0),r9(p,!1),m.plan()},r9=function(p,m){for(var g=p._model,b=p._scheduler,S=m?p._componentsViews:p._chartsViews,k=m?p._componentsMap:p._chartsMap,C=p._zr,E=p._api,x=0;xm.get("hoverLayerThreshold")&&!Pr.node&&!Pr.worker&&m.eachSeries(function(k){if(!k.preventUsingHoverLayer){var C=p._chartsMap[k.__viewId];C.__alive&&C.eachRendered(function(E){E.states.emphasis&&(E.states.emphasis.hoverLayer=!0)})}})}function s(p,m){var g=p.get("blendMode")||null;m.eachRendered(function(b){b.isGroup||(b.style.blend=g)})}function l(p,m){if(!p.preventAutoZ){var g=p.get("z")||0,b=p.get("zlevel")||0;m.eachRendered(function(S){return c(S,g,b,-1/0),!0})}}function c(p,m,g,b){var S=p.getTextContent(),k=p.getTextGuideLine(),C=p.isGroup;if(C)for(var E=p.childrenRef(),x=0;x0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;m.eachRendered(function(C){if(C.states&&C.states.emphasis){if(o2(C))return;if(C instanceof ro&&Zlt(C),C.__dirty){var E=C.prevStates;E&&C.useStates(E)}if(b){C.stateTransition=k;var x=C.getTextContent(),_=C.getTextGuideLine();x&&(x.stateTransition=k),_&&(_.stateTransition=k)}C.__dirty&&o(C)}})}foe=function(p){return new((function(m){Rn(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(b){for(;b;){var S=b.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);b=b.parent}},g.prototype.enterEmphasis=function(b,S){aI(b,S),gc(p)},g.prototype.leaveEmphasis=function(b,S){lI(b,S),gc(p)},g.prototype.enterBlur=function(b){Vlt(b),gc(p)},g.prototype.leaveBlur=function(b){Hve(b),gc(p)},g.prototype.enterSelect=function(b){Wve(b),gc(p)},g.prototype.leaveSelect=function(b){Gve(b),gc(p)},g.prototype.getModel=function(){return p.getModel()},g.prototype.getViewOfComponentModel=function(b){return p.getViewOfComponentModel(b)},g.prototype.getViewOfSeriesModel=function(b){return p.getViewOfSeriesModel(b)},g})(Lme))(p)},Sge=function(p){function m(g,b){for(var S=0;S=0)){voe.push(n);var a=Qme.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function Tge(e,t){hV[e]=t}function rht(e,t,n){var r=Dft("registerMap");r&&r(e,t,n)}var iht=ldt;Hg(UH,Bdt);Hg(ML,Fdt);Hg(ML,jdt);Hg(UH,Qdt);Hg(ML,eft);Hg(vge,Rft);Ege(Rme);xge(Nft,Hct);Tge("default",Vdt);eb({type:ag,event:ag,update:ag},bu);eb({type:N4,event:N4,update:N4},bu);eb({type:n2,event:n2,update:n2},bu);eb({type:B4,event:B4,update:B4},bu);eb({type:r2,event:r2,update:r2},bu);Cge("light",Zdt);Cge("dark",rge);function K_(e){return e==null?0:e.length||1}function moe(e){return e}var oht=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||moe,this._newKeyGetter=o||moe,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 f===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,f),o[c]=null;else if(p===1&&m>1)this._updateOneToMany&&this._updateOneToMany(h,f),o[c]=null;else if(p===1&&m===1)this._update&&this._update(h,f),o[c]=null;else if(p>1&&m>1)this._updateManyToMany&&this._updateManyToMany(h,f),o[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var q_=br,wp=pr,fht=typeof Int32Array>"u"?Array:Int32Array,hht="e\0\0",goe=-1,pht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],vht=["_approximateExtent"],yoe,Dx,Y_,X_,u9,Z_,c9,Mge=(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;Ige(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,f={},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===Hc;if(c&&!o.pure)for(var f=[],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),Gn(a)?a=a.slice():q_(a)&&(a=dn({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,q_(n)?dn(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){q_(t)?dn(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?dn(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;Plt(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){wt(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:wp(this.dimensions,this._getDimInfo,this),this.hostModel)),u9(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Hr(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(nH(arguments)))})},e.internalField=(function(){yoe=function(t){var n=t._invertedIndicesMap;wt(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new fht(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function Dge(e,t){BH(e)||(e=Mme(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=di(),a=[],s=ght(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&Rge(s),c=r===e.dimensionsDefine,f=c?Pge(e):Lge(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=di(h),m=new Vme(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function ght(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return wt(t,function(a){var s;br(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function yht(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 bht=(function(){function e(t){this.coordSysDims=[],this.axisMap=di(),this.categoryAxisMap=di(),this.coordSysName=t}return e})();function _ht(e){var t=e.get("coordinateSystem"),n=new bht(t),r=Sht[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Sht={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",vd).models[0],a=e.getReferringComponents("yAxis",vd).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),uy(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),uy(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",vd).models[0];t.coordSysDims=["single"],n.set("single",o),uy(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",vd).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),uy(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),uy(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();wt(a.parallelAxisIndex,function(l,c){var f=o.getComponent("parallelAxis",l),h=s[c];n.set(h,f),uy(f)&&(r.set(h,f),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function uy(e){return e.get("type")==="category"}function kht(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;wht(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),f,h,p,m;if(wt(a,function(E,x){ur(E)&&(a[x]=E={name:E}),c&&!E.isExtraCoord&&(!r&&!f&&E.ordinalMeta&&(f=E),!h&&E.type!=="ordinal"&&E.type!=="time"&&(!o||o===E.coordDim)&&(h=E))}),h&&!r&&!f&&(r=!0),h){p="__\0ecstackresult_"+e.id,m="__\0ecstackedover_"+e.id,f&&(f.createInvertedIndices=!0);var g=h.coordDim,b=h.type,S=0;wt(a,function(E){E.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:b,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},C={name:m,coordDim:m,coordDimIndex:S+1,type:b,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(m,b),C.storeDimIndex=l.ensureCalculationDimension(p,b)),s.appendCalculationDimension(k),s.appendCalculationDimension(C)):(a.push(k),a.push(C))}return{stackedDimension:h&&h.name,stackedByDimension:f&&f.name,isStackedByIndex:r,stackedOverDimension:m,stackResultDimension:p}}function wht(e){return!Ige(e.schema)}function T1(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Cht(e,t){return T1(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Eht(e,t){var n=e.get("coordinateSystem"),r=NH.get(n),o;return t&&t.coordSysDims&&(o=pr(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=lht(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function xht(e,t,n){var r,o;return n&&wt(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 KH(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===Hc;var s=_ht(t),l=Eht(t,s),c=n.useEncodeDefaulter,f=Hr(c)?c:c?Ss(bct,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:f,canOmitUnusedDimensions:!a},p=Dge(o,h),m=xht(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),b=kht(t,{schema:p,store:g}),S=new Mge(p,t);S.setCalculationInfo(b);var k=m!=null&&Tht(o)?function(C,E,x,_){return _===m?x:this.defaultDimValueGetter(C,E,x,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function Tht(e){if(e.sourceFormat===Hc){var t=Aht(e.data||[]);return!Gn(Vk(t))}}function Aht(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})();cL(Ef);var Iht=0,pV=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Iht}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&pr(r,Lht);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(!ur(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=di(this.categories))},e})();function Lht(e){return br(e)&&e.value!=null?e.value:e+""}function vV(e){return e.type==="interval"||e.type==="log"}function Pht(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=wve(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=Oge(s),c=o.niceTickExtent=[js(Math.ceil(e[0]/s)*s,l),js(Math.floor(e[1]/s)*s,l)];return Rht(c,e),o}function d9(e){var t=Math.pow(10,dH(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,js(n*t)}function Oge(e){return gh(e)+2}function boe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Rht(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),boe(e,0,t),boe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function DL(e,t){return e>=t[0]&&e<=t[1]}function OL(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function $L(e,t){return e*(t[1]-t[0])+t[0]}var qH=(function(e){Rn(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var o=r.getSetting("ordinalMeta");return o||(o=new pV({})),Gn(o)&&(o=new pV({categories:pr(o,function(a){return br(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:ur(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),DL(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),OL(n,this._extent)},t.prototype.scale=function(n){return n=Math.round($L(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})(Ef);Ef.registerClass(qH);var Em=js,tb=(function(e){Rn(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 DL(n,this._extent)},t.prototype.normalize=function(n){return OL(n,this._extent)},t.prototype.scale=function(n){return $L(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=Oge(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:Em(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 Fge(e){var t=Oht(e),n=[];return wt(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,f=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),m=Math.abs(p[1]-p[0]);l=f?h/m*f:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var b=Ho(r.get("barWidth"),l),S=Ho(r.get("barMaxWidth"),l),k=Ho(r.get("barMinWidth")||(Vge(r)?.5:1),l),C=r.get("barGap"),E=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:b,barMaxWidth:S,barMinWidth:k,barGap:C,barCategoryGap:E,axisKey:YH(a),stackId:Nge(r)})}),$ht(n)}function $ht(e){var t={};wt(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 f=r.stackId;c[f]||l.autoWidthCount++,c[f]=c[f]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[f].width&&(c[f].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[f].maxWidth=p);var m=r.barMinWidth;m&&(c[f].minWidth=m);var g=r.barGap;g!=null&&(l.gap=g);var b=r.barCategoryGap;b!=null&&(l.categoryGap=b)});var n={};return wt(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=Wo(a).length;l=Math.max(35-c*4,15)+"%"}var f=Ho(l,s),h=Ho(r.gap,1),p=r.remainedWidth,m=r.autoWidthCount,g=(p-f)/(m+(m-1)*h);g=Math.max(g,0),wt(a,function(C){var E=C.maxWidth,x=C.minWidth;if(C.width){var _=C.width;E&&(_=Math.min(_,E)),x&&(_=Math.max(_,x)),C.width=_,p-=_+h*_,m--}else{var _=g;E&&E<_&&(_=Math.min(E,p)),x&&x>_&&(_=x),_!==g&&(C.width=_,p-=_+h*_,m--)}}),g=(p-f)/(m+(m-1)*h),g=Math.max(g,0);var b=0,S;wt(a,function(C,E){C.width||(C.width=g),S=C,b+=C.width*(1+h)}),S&&(b-=S.width*h);var k=-b/2;wt(a,function(C,E){n[o][E]=n[o][E]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function Nht(e,t,n){if(e&&t){var r=e[YH(t)];return r}}function Bht(e,t){var n=Bge(e,t),r=Fge(n);wt(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=Nge(o),f=r[YH(l)][c],h=f.offset,p=f.width;a.setLayout({bandWidth:f.bandWidth,offset:h,size:p})})}function Fht(e){return{seriesType:e,plan:VH(),reset:function(t){if(jge(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),f=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),p=T1(n,f)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),g=jht(o,a),b=Vge(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),C=n.getLayout("size"),E=n.getLayout("offset");return{progress:function(x,_){for(var A=x.count,R=b&&yh(A*3),M=b&&c&&yh(A*3),D=b&&yh(A),N=r.master.getRect(),L=m?N.width:N.height,B,F=_.getStore(),j=0;(B=x.next())!=null;){var z=F.get(p?k:s,B),q=F.get(l,B),G=g,ee=void 0;p&&(ee=+z-F.get(s,B));var Q=void 0,X=void 0,K=void 0,te=void 0;if(m){var oe=r.dataToPoint([z,q]);if(p){var ue=r.dataToPoint([ee,q]);G=ue[0]}Q=G,X=oe[1]+E,K=oe[0]-G,te=C,Math.abs(K)0?n:1:n))}var Vht=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=Ox.length,c=Math.min(Vht(Ox,this._approxInterval,0,l),l-1);this._interval=Ox[c][1],this._minLevelUnit=Ox[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return bo(n)?n:+$h(n)},t.prototype.contain=function(n){return DL(this.parse(n),this._extent)},t.prototype.normalize=function(n){return OL(this.parse(n),this._extent)},t.prototype.scale=function(n){return $L(n,this._extent)},t.type="time",t})(tb),Ox=[["second",LH],["minute",PH],["hour",s2],["quarter-day",s2*6],["half-day",s2*12],["day",Lc*1.2],["half-week",Lc*3.5],["week",Lc*7],["month",Lc*31],["quarter",Lc*95],["half-year",uie/2],["year",uie]];function Uht(e,t,n,r){var o=$h(t),a=$h(n),s=function(b){return die(o,b,r)===die(a,b,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},f=function(){return c()&&s("day")},h=function(){return f()&&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 f();case"hour":return h();case"minute":return p();case"second":return m();case"millisecond":return g()}}function zht(e,t){return e/=Lc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Hht(e){var t=30*Lc;return e/=t,e>6?6:e>3?3:e>2?2:1}function Wht(e){return e/=s2,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function _oe(e,t){return e/=t?PH:LH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ght(e){return wve(e)}function Kht(e,t,n){var r=new Date(e);switch(e1(t)){case"year":case"month":r[vme(n)](0);case"day":r[mme(n)](1);case"hour":r[gme(n)](0);case"minute":r[yme(n)](0);case"second":r[bme(n)](0),r[_me(n)](0)}return r.getTime()}function qht(e,t,n,r){var o=1e4,a=hme,s=0;function l(L,B,F,j,z,q,G){for(var ee=new Date(B),Q=B,X=ee[j]();Q1&&q===0&&F.unshift({value:F[0].value-Q})}}for(var q=0;q=r[0]&&E<=r[1]&&p++)}var x=(r[1]-r[0])/t;if(p>x*1.5&&m>x/1.5||(f.push(k),p>x||e===a[g]))break}h=[]}}}for(var _=Pa(pr(f,function(L){return Pa(L,function(B){return B.value>=r[0]&&B.value<=r[1]&&!B.notAdd})}),function(L){return L.length>0}),A=[],R=_.length-1,g=0;g<_.length;++g)for(var M=_[g],D=0;D0;)a*=10;var l=[js(Zht(r[0]/a)*a),js(Xht(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){d2.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=ed(n)/ed(this.base),DL(n,this._extent)},t.prototype.normalize=function(n){return n=ed(n)/ed(this.base),OL(n,this._extent)},t.prototype.scale=function(n){return n=$L(n,this._extent),$x(this.base,n)},t.type="log",t})(Ef),zge=XH.prototype;zge.getMinorTicks=d2.getMinorTicks;zge.getLabel=d2.getLabel;function Nx(e,t){return Yht(e,gh(t))}Ef.registerClass(XH);var Jht=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!f&&(l=0),l<0&&c<0&&!h&&(c=0));var m=this._determinedMin,g=this._determinedMax;return m!=null&&(l=m,f=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:f,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[ept[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Qht[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),Qht={min:"_determinedMin",max:"_determinedMax"},ept={min:"_dataMin",max:"_dataMax"};function tpt(e,t,n){var r=e.rawExtentInfo;return r||(r=new Jht(e,t,n),e.rawExtentInfo=r,r)}function Bx(e,t){return t==null?null:qA(t)?NaN:e.parse(t)}function Hge(e,t){var n=e.type,r=tpt(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=Bge("bar",s),c=!1;if(wt(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var f=Fge(l),h=npt(o,a,t,f);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function npt(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=Nht(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;wt(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;wt(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var f=l+c,h=t-e,p=1-(l+c)/a,m=h/p-h;return t+=m*(c/f),e-=m*(l/f),{min:e,max:t}}function koe(e,t){var n=t,r=Hge(e,n),o=r.extent,a=n.get("splitNumber");e instanceof XH&&(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 rpt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new qH({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Uge({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ef.getClass(t)||tb)}}function ipt(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function nb(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):ur(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):Hr(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(ZH(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function ZH(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function opt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof qH?o=n.count():(r=n.getTicks(),o=r.length);var s=e.getLabelModel(),l=nb(e),c,f=1;o>40&&(f=Math.ceil(o/40));for(var h=0;h=0||(woe.push(e),Hr(e)&&(e={install:e}),e.install(upt))}var nk=xs();function Gge(e,t){var n=pr(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 cpt(e){var t=e.getLabelModel().get("customValues");if(t){var n=nb(e),r=e.scale.getExtent(),o=Gge(e,t),a=Pa(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:pr(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?fpt(e):ppt(e)}function dpt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=Gge(e,n);return{ticks:Pa(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?hpt(e,t):{ticks:pr(e.scale.getTicks(),function(a){return a.value})}}function fpt(e){var t=e.getLabelModel(),n=Kge(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Kge(e,t){var n=qge(e,"labels"),r=JH(t),o=Yge(n,r);if(o)return o;var a,s;return Hr(r)?a=Jge(e,r):(s=r==="auto"?vpt(e):r,a=Zge(e,s)),Xge(n,r,{labels:a,labelCategoryInterval:s})}function hpt(e,t){var n=qge(e,"ticks"),r=JH(t),o=Yge(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Hr(r))a=Jge(e,r,!0);else if(r==="auto"){var l=Kge(e,e.getLabelModel());s=l.labelCategoryInterval,a=pr(l.labels,function(c){return c.tickValue})}else s=r,a=Zge(e,s,!0);return Xge(n,r,{ticks:a,tickCategoryInterval:s})}function ppt(e){var t=e.scale.getTicks(),n=nb(e);return{labels:pr(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function qge(e,t){return nk(e)[t]||(nk(e)[t]=[])}function Yge(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],f=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(f*Math.cos(r)),p=Math.abs(f*Math.sin(r)),m=0,g=0;c<=a[1];c+=l){var b=0,S=0,k=uH(n({value:c}),t.font,"center","top");b=k.width*1.3,S=k.height*1.3,m=Math.max(m,b,7),g=Math.max(g,S,7)}var C=m/h,E=g/p;isNaN(C)&&(C=1/0),isNaN(E)&&(E=1/0);var x=Math.max(0,Math.floor(Math.min(C,E))),_=nk(e.model),A=e.getExtent(),R=_.lastAutoInterval,M=_.lastTickCount;return R!=null&&M!=null&&Math.abs(R-x)<=1&&Math.abs(M-s)<=1&&R>x&&_.axisExtent0===A[0]&&_.axisExtent1===A[1]?x=R:(_.lastTickCount=s,_.lastAutoInterval=x,_.axisExtent0=A[0],_.axisExtent1=A[1]),x}function gpt(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 Zge(e,t,n){var r=nb(e),o=e.scale,a=o.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),f=a[0],h=o.count();f!==0&&c>1&&h/c>2&&(f=Math.round(Math.ceil(f/c)*c));var p=Wge(e),m=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;m&&f!==a[0]&&S(a[0]);for(var b=f;b<=a[1];b+=c)S(b);g&&b-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 Jge(e,t,n){var r=e.scale,o=nb(e),a=[];return wt(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 Coe=[0,1],ypt=(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 hat(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(),Eoe(r,o.count())),Vj(t,Coe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Eoe(r,o.count()));var a=Vj(t,r,Coe,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=dpt(this,n),o=r.ticks,a=pr(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return bpt(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=pr(r,function(a){return pr(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return cpt(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 mpt(this)},e})();function Eoe(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function bpt(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,f=(t[o-1].coord-t[0].coord)/c;wt(t,function(g){g.coord-=f/2});var h=e.scale.getExtent();l=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+f*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,b){return g=js(g),b=js(b),p?g>b:g0){t=t/180*Math.PI,Yp.fromArray(e[0]),ls.fromArray(e[1]),Aa.fromArray(e[2]),Dr.sub(Xp,Yp,ls),Dr.sub(Jd,Aa,ls);var n=Xp.len(),r=Jd.len();if(!(n<.001||r<.001)){Xp.scale(1/n),Jd.scale(1/r);var o=Xp.dot(Jd),a=Math.cos(t);if(a1&&Dr.copy(Pl,Aa),Pl.toArray(e[1])}}}}function Spt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Yp.fromArray(e[0]),ls.fromArray(e[1]),Aa.fromArray(e[2]),Dr.sub(Xp,ls,Yp),Dr.sub(Jd,Aa,ls);var r=Xp.len(),o=Jd.len();if(!(r<.001||o<.001)){Xp.scale(1/r),Jd.scale(1/o);var a=Xp.dot(t),s=Math.cos(n);if(a=c)Dr.copy(Pl,Aa);else{Pl.scaleAndAdd(Jd,l/Math.tan(Math.PI/2-h));var p=Aa.x!==ls.x?(Pl.x-ls.x)/(Aa.x-ls.x):(Pl.y-ls.y)/(Aa.y-ls.y);if(isNaN(p))return;p<0?Dr.copy(Pl,ls):p>1&&Dr.copy(Pl,Aa)}Pl.toArray(e[1])}}}}function f9(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 kpt(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=xj(r[0],r[1]),a=xj(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=s7([],r[1],r[0],s/o),c=s7([],r[1],r[2],s/a),f=s7([],l,c,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],f[0],f[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var h=1;h0){x(N*D,0,s);var L=N+R;L<0&&_(-L*D,1)}else _(-R*D,1)}}function x(R,M,D){R!==0&&(f=!0);for(var N=M;N0)for(var L=0;L0;L--){var z=D[L-1]*j;x(-z,L,s)}}}function A(R){var M=R<0?-1:1;R=Math.abs(R);for(var D=Math.ceil(R/(s-1)),N=0;N0?x(D,0,N+1):x(-D,s-N-1,s),R-=D,R<=0)return}return f}function Tpt(e,t,n,r){return xpt(e,"y","height",t,n)}function Apt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new Ji(0,0,0,0);function r(S){if(!S.ignore){var k=S.ensureState("emphasis");k.ignore==null&&(k.ignore=!1)}S.ignore=!0}for(var o=0;o=l)}}for(var p=this.__startIndex;p15)break}}z.prevElClipPaths&&C.restore()};if(E)if(E.length===0)D=k.__endIndex;else for(var L=g.dpr,B=0;B0&&t>o[0]){for(c=0;ct);c++);l=r[o[c]]}if(o.splice(c+1,0,t),r[t]=n,!n.virtual)if(l){var f=l.dom;f.nextSibling?s.insertBefore(n.dom,f.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?Fx:0),this._needsManuallyCompositing),h.__builtin__||tH("ZLevel "+f+" 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&Xu&&!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,wt(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Zi(r[t],n,!0):r[t]=n;for(var o=0;o-1&&(f.style.stroke=f.style.fill,f.style.fill="#fff",f.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})(wd);function QH(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var o=E1(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 eW=(function(e){Rn(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=x1(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Dpt,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(){aI(this.childAt(0))},t.prototype.downplay=function(){lI(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),f=s!==this._symbolType,h=a&&a.disableAnimation;if(f){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):Ul(m,g,l,r),CH(m)}if(this._updateCommon(n,r,c,o,a),f){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,Oc(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,f,h,p,m,g,b,S,k,C;if(a&&(f=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,m=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,C=a.cursorStyle,b=a.emphasisDisabled),!a||n.hasItemOption){var E=a&&a.itemModel?a.itemModel:n.getItemModel(r),x=E.getModel("emphasis");f=x.getModel("itemStyle").getItemStyle(),p=E.getModel(["select","itemStyle"]).getItemStyle(),h=E.getModel(["blur","itemStyle"]).getItemStyle(),m=x.get("focus"),g=x.get("blurScope"),b=x.get("disabled"),S=Gk(E),k=x.getShallow("scale"),C=E.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var A=ige(n.getItemVisual(r,"symbolOffset"),o);A&&(l.x=A[0],l.y=A[1]),C&&l.attr("cursor",C);var R=n.getItemVisual(r,"style"),M=R.fill;if(l instanceof Iv){var D=l.style;l.useStyle(dn({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},R))}else l.__isEmptyBrush?l.useStyle(dn({},R)):l.useStyle(R),l.style.decal=null,l.setColor(M,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var N=n.getItemVisual(r,"liftZ"),L=this._z2;N!=null?L==null&&(this._z2=l.z2,l.z2+=N):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;Wk(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:F,inheritColor:M,defaultOpacity:R.opacity});function F(q){return B?n.getName(q):QH(n,q)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var j=l.ensureState("emphasis");j.style=f,l.ensureState("select").style=p,l.ensureState("blur").style=h;var z=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;j.scaleX=this._sizeX*z,j.scaleY=this._sizeY*z,this.setSymbolScale(1),q2(this,m,g,b)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,o){var a=this.childAt(0),s=Bi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&dI(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();dI(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return mft(n.getItemVisual(r,"symbolSize"))},t})(Ua);function Dpt(e,t){this.parent.drift(e,t)}function p9(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 Aoe(e){return e!=null&&!br(e)&&(e={isIgnore:e}),e||{}}function Ioe(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:Gk(t),cursorStyle:t.get("cursor")}}var Opt=(function(){function e(t){this.group=new Ua,this._SymbolCtor=t||eW}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Aoe(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Ioe(t),f={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(p9(t,m,p,n)){var g=new s(t,p,c,f);g.setPosition(m),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,m){var g=a.getItemGraphicEl(m),b=h(p);if(!p9(t,b,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,f),g.setPosition(b);else{g.updateData(t,p,c,f);var C={x:b[0],y:b[1]};l?g.attr(C):Ul(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=Ioe(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Aoe(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 r0e(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 Npt(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 Bpt(e,t,n,r,o,a,s,l){for(var c=Npt(e,t),f=[],h=[],p=[],m=[],g=[],b=[],S=[],k=n0e(o,t,s),C=e.getLayout("points")||[],E=t.getLayout("points")||[],x=0;x=o||S<0)break;if(lg(C,E)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,E),p=C,m=E;else{var x=C-f,_=E-h;if(x*x+_*_<.5){S+=a;continue}if(s>0){for(var A=S+a,R=t[A*2],M=t[A*2+1];R===C&&M===E&&k=r||lg(R,M))g=C,b=E;else{L=R-f,B=M-h;var z=C-f,q=R-C,G=E-h,ee=M-E,Q=void 0,X=void 0;if(l==="x"){Q=Math.abs(z),X=Math.abs(q);var K=L>0?1:-1;g=C-K*Q*s,b=E,F=C+K*X*s,j=E}else if(l==="y"){Q=Math.abs(G),X=Math.abs(ee);var te=B>0?1:-1;g=C,b=E-te*Q*s,F=C,j=E+te*X*s}else Q=Math.sqrt(z*z+G*G),X=Math.sqrt(q*q+ee*ee),N=X/(X+Q),g=C-L*s*(1-N),b=E-B*s*(1-N),F=C+L*s*N,j=E+B*s*N,F=Cp(F,Ep(R,C)),j=Cp(j,Ep(M,E)),F=Ep(F,Cp(R,C)),j=Ep(j,Cp(M,E)),L=F-C,B=j-E,g=C-L*Q/X,b=E-B*Q/X,g=Cp(g,Ep(f,C)),b=Cp(b,Ep(h,E)),g=Ep(g,Cp(f,C)),b=Ep(b,Cp(h,E)),L=C-g,B=E-b,F=C+L*X/Q,j=E+B*X/Q}e.bezierCurveTo(p,m,g,b,C,E),p=F,m=j}else e.lineTo(C,E)}f=C,h=E,S+=a}return k}var i0e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Fpt=(function(e){Rn(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 i0e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&lg(o[s*2-2],o[s*2-1]);s--);for(;a=0){var _=f?(b-c)*x+c:(g-l)*x+l;return f?[n,_]:[_,n]}l=g,c=b;break;case s.C:g=a[p++],b=a[p++],S=a[p++],k=a[p++],C=a[p++],E=a[p++];var A=f?ZA(l,g,S,C,n,h):ZA(c,b,k,E,n,h);if(A>0)for(var R=0;R=0){var _=f?Ra(c,b,k,E,M):Ra(l,g,S,C,M);return f?[n,_]:[_,n]}}l=C,c=E;break}}},t})(ro),jpt=(function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(i0e),Vpt=(function(e){Rn(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 jpt},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&&lg(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 Wpt(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),f=pr(a.stops,function(x){return{coord:c.toGlobalCoord(c.dataToCoord(x.value)),color:x.color}}),h=f.length,p=a.outerColors.slice();h&&f[0].coord>f[h-1].coord&&(f.reverse(),p.reverse());var m=Hpt(f,o==="x"?n.getWidth():n.getHeight()),g=m.length;if(!g&&h)return f[0].coord<0?p[1]?p[1]:f[h-1].color:p[0]?p[0]:f[0].color;var b=10,S=m[0].coord-b,k=m[g-1].coord+b,C=k-S;if(C<.001)return"transparent";wt(m,function(x){x.offset=(x.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 E=new nme(0,0,0,0,m,!0);return E[o]=S,E[o+"2"]=k,E}}}function Gpt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&Kpt(a,t))){var s=t.mapDimension(a.dim),l={};return wt(a.getViewLabels(),function(c){var f=a.scale.getRawOrdinalNumber(c.tickValue);l[f]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function Kpt(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 qpt(e,t){return isNaN(e)||isNaN(t)}function Ypt(e){for(var t=e.length/2;t>0&&qpt(e[t*2-2],e[t*2-1]);t--);return t-1}function Doe(e,t){return[e[t*2],e[t*2+1]]}function Xpt(e,t,n){for(var r=e.length/2,o=n==="x"?0:1,a,s,l=0,c=-1,f=0;f=t||a>=t&&s<=t){c=f;break}l=f,a=s}return{range:[l,c],t:(t-a)/(s-a)}}function a0e(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var X=b.getState("emphasis").style;X.lineWidth=+b.style.lineWidth+1}Bi(b).seriesIndex=n.seriesIndex,q2(b,G,ee,Q);var K=Moe(n.get("smooth")),te=n.get("smoothMonotone");if(b.setShape({smooth:K,smoothMonotone:te,connectNulls:M}),S){var oe=l.getCalculationInfo("stackedOnSeries"),ue=0;S.useStyle(Qi(f.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),oe&&(ue=Moe(oe.get("smooth"))),S.setShape({smooth:K,stackedOnSmooth:ue,smoothMonotone:te,connectNulls:M}),uI(S,n,"areaStyle"),Bi(S).seriesIndex=n.seriesIndex,q2(S,G,ee,Q)}var ae=this._changePolyState;l.eachItemGraphicEl(function(xe){xe&&(xe.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=h,this._step=L,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,b),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Bi(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=Eg(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),f=s.getItemGraphicEl(l);if(!f){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;f=new eW(s,l),f.x=h,f.y=p,f.setZ(m,g);var b=f.getSymbolPath().getTextContent();b&&(b.zlevel=m,b.z=g,b.z2=this._polyline.z2+1),f.__temp=!0,s.setItemGraphicEl(l,f),f.stopSymbolAnimation(!0),this.group.add(f)}f.highlight()}else $c.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=Eg(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 $c.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Ure(this._polyline,n),r&&Ure(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Fpt({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 Vpt({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 f=n.hostModel,h=f.get("animationDuration");Hr(h)&&(h=h(null));var p=f.get("animationDelay")||0,m=Hr(p)?p(null):p;n.eachItemGraphicEl(function(g,b){var S=g;if(S){var k=[g.x,g.y],C=void 0,E=void 0,x=void 0;if(o)if(s){var _=o,A=r.pointToCoord(k);a?(C=_.startAngle,E=_.endAngle,x=-A[1]/180*Math.PI):(C=_.r0,E=_.r,x=A[0])}else{var R=o;a?(C=R.x,E=R.x+R.width,x=g.x):(C=R.y+R.height,E=R.y,x=g.y)}var M=E===C?0:(x-C)/(E-C);c&&(M=1-M);var D=Hr(p)?p(b):h*M+m,N=S.getSymbolPath(),L=N.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:D}),N.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(a0e(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var f=this._endLabel;f||(f=this._endLabel=new za({z2:200}),f.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=Ypt(c);h>=0&&(Wk(l,Gk(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,m,g){return g!=null?t0e(s,g):QH(s,p)},enableTextSetter:!0},Zpt(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 f=this._endLabel,h=this._polyline;if(f){n<1&&a.originalX==null&&(a.originalX=f.x,a.originalY=f.y);var p=o.getLayout("points"),m=o.hostModel,g=m.get("connectNulls"),b=l.get("precision"),S=l.get("distance")||0,k=c.getBaseAxis(),C=k.isHorizontal(),E=k.inverse,x=r.shape,_=E?C?x.x:x.y+x.height:C?x.x+x.width:x.y,A=(C?S:0)*(E?-1:1),R=(C?0:-S)*(E?-1:1),M=C?"x":"y",D=Xpt(p,_,M),N=D.range,L=N[1]-N[0],B=void 0;if(L>=1){if(L>1&&!g){var F=Doe(p,N[0]);f.attr({x:F[0]+A,y:F[1]+R}),s&&(B=m.getRawValue(N[0]))}else{var F=h.getPointOn(_,M);F&&f.attr({x:F[0]+A,y:F[1]+R});var j=m.getRawValue(N[0]),z=m.getRawValue(N[1]);s&&(B=Mat(o,b,j,z,D.t))}a.lastFrameIndex=N[0]}else{var q=n===1||a.lastFrameIndex>0?N[0]:0,F=Doe(p,q);s&&(B=m.getRawValue(q)),f.attr({x:F[0]+A,y:F[1]+R})}if(s){var G=SL(f);typeof G.setLabelText=="function"&&G.setLabelText(B)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var f=this._polyline,h=this._polygon,p=n.hostModel,m=Bpt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),g=m.current,b=m.stackedOnCurrent,S=m.next,k=m.stackedOnNext;if(s&&(b=xp(m.stackedOnCurrent,m.current,o,s,c),g=xp(m.current,null,o,s,c),k=xp(m.stackedOnNext,m.next,o,s,c),S=xp(m.next,null,o,s,c)),Roe(g,S)>3e3||h&&Roe(b,k)>3e3){f.stopAnimation(),f.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}f.shape.__points=m.current,f.shape.points=g;var C={shape:{points:S}};m.current!==g&&(C.shape.__points=m.next),f.stopAnimation(),Ul(f,C,p),h&&(h.setShape({points:g,stackedOnPoints:b}),h.stopAnimation(),Ul(h,{shape:{stackedOnPoints:k}},p),f.shape.points!==h.shape.points&&(h.shape.points=f.shape.points));for(var E=[],x=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(),f=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(f.dim),1/g)):a==="minmax"&&t.setData(o.minmaxDownSample(o.mapDimension(f.dim),1/g));var b=void 0;ur(a)?b=evt[a]:Hr(a)&&(b=a),b&&t.setData(o.downSample(o.mapDimension(f.dim),1/g,b,tvt))}}}}}function u0e(e){e.registerChartView(Jpt),e.registerSeriesModel(Mpt),e.registerLayout(Qpt("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,l0e("line"))}var gV=(function(e){Rn(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 KH(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)wt(a.getAxes(),function(m,g){if(m.type==="category"&&r!=null){var b=m.getTicksCoords(),S=m.getTickModel().get("alignWithLabel"),k=s[g],C=r[g]==="x1"||r[g]==="y1";if(C&&!S&&(k+=1),b.length<2)return;if(b.length===2){l[g]=m.toGlobalCoord(m.getExtent()[C?1:0]);return}for(var E=void 0,x=void 0,_=1,A=0;Ak){x=(R+E)/2;break}A===1&&(_=M-b[0].tickValue)}x==null&&(E?E&&(x=b[b.length-1].coord):x=b[0].coord),l[g]=m.toGlobalCoord(x)}});else{var c=this.getData(),f=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=f+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})(wd);wd.registerClass(gV);var nvt=(function(e){Rn(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 KH(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=cme(gV.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})(gV),rvt=(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})(),Ooe=(function(e){Rn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new rvt},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,f=s+c,h=r.startAngle,p=r.endAngle,m=r.clockwise,g=Math.PI*2,b=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){fI(a,n,Bi(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})($c),$oe={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=m9(t.x,e.x),l=g9(t.x+t.width,o),c=m9(t.y,e.y),f=g9(t.y+t.height,a),h=lo?l:s,t.y=p&&c>a?f:c,t.width=h?0:l-s,t.height=p?0:f-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=g9(t.r,e.r),a=m9(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}},Noe={cartesian2d:function(e,t,n,r,o,a,s,l,c){var f=new Vs({shape:dn({},r),z2:1});if(f.__dataIndex=n,f.name="item",a){var h=f.shape,p=o?"height":"width";h[p]=0}return f},polar:function(e,t,n,r,o,a,s,l,c){var f=!o&&c?Ooe:Lv,h=new f({shape:r,z2:1});h.name="item";var p=c0e(o);if(h.calculateTextPosition=ivt(p,{isRoundCap:f===Ooe}),a){var m=h.shape,g=o?"r":"endAngle",b={};m[g]=o?r.r0:r.startAngle,b[g]=r[g],(l?Ul:Oc)(h,{shape:b},a)}return h}};function lvt(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 Boe(e,t,n,r,o,a,s,l){var c,f;a?(f={x:r.x,width:r.width},c={y:r.y,height:r.height}):(f={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?Ul:Oc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?Ul:Oc)(n,{shape:f},h,o)}function Foe(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 dvt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function c0e(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 Voe(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=kS(r.getModel("itemStyle"),h,!0);dn(h,p),e.setShape(h)}}else{var f=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",f)}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",b=Gk(r);Wk(e,b,{labelFetcher:a,labelDataIndex:n,defaultText:QH(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,ovt(e,k==="outside"?g:k,c0e(s),r.get(["label","rotate"]))}Kut(S,b,a.getRawValue(n),function(E){return t0e(t,E)});var C=r.getModel(["emphasis"]);q2(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),uI(e,r),dvt(o)&&(e.style.fill="none",e.style.stroke="none",wt(e.states,function(E){E.style&&(E.style.fill=E.style.stroke="none")}))}function fvt(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 hvt=(function(){function e(){}return e})(),Uoe=(function(e){Rn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new hvt},t.prototype.buildPath=function(n,r){for(var o=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],f=this.barWidth,h=0;h=0?n:null},30,!1);function pvt(e,t,n){for(var r=e.baseDimIdx,o=1-r,a=e.shape.points,s=e.largeDataIndices,l=[],c=[],f=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 d0e(e,t,n){if(tW(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 vvt(e,t,n){var r=e.type==="polar"?Lv:Vs;return new r({shape:d0e(t,n,e),silent:!0,z2:0})}function f0e(e){e.registerChartView(avt),e.registerSeriesModel(nvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ss(Bht,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Fht("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,l0e("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 Woe=Math.PI*2,zx=Math.PI/180;function h0e(e,t){return w1(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function p0e(e,t){var n=h0e(e,t),r=e.get("center"),o=e.get("radius");Gn(o)||(o=[0,o]);var a=Ho(n.width,t.getWidth()),s=Ho(n.height,t.getHeight()),l=Math.min(a,s),c=Ho(o[0],l/2),f=Ho(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 Gn(r)||(r=[r,r]),h=Ho(r[0],a)+n.x,p=Ho(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:f}}function mvt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=h0e(r,n),l=p0e(r,n),c=l.cx,f=l.cy,h=l.r,p=l.r0,m=-r.get("startAngle")*zx,g=r.get("endAngle"),b=r.get("padAngle")*zx;g=g==="auto"?m-Woe:-g*zx;var S=r.get("minAngle")*zx,k=S+b,C=0;o.each(a,function(ee){!isNaN(ee)&&C++});var E=o.getSum(a),x=Math.PI/(E||C)*2,_=r.get("clockwise"),A=r.get("roseType"),R=r.get("stillShowZeroSum"),M=o.getDataExtent(a);M[0]=0;var D=_?1:-1,N=[m,g],L=D*b/2;Ove(N,!_),m=N[0],g=N[1];var B=v0e(r);B.startAngle=m,B.endAngle=g,B.clockwise=_;var F=Math.abs(g-m),j=F,z=0,q=m;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(ee,Q){var X;if(isNaN(ee)){o.setItemLayout(Q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:f,r0:p,r:A?NaN:h});return}A!=="area"?X=E===0&&R?x:ee*x:X=F/C,XX?(te=q+D*X/2,oe=te):(te=q+L,oe=K-L),o.setItemLayout(Q,{angle:X,startAngle:te,endAngle:oe,clockwise:_,cx:c,cy:f,r0:p,r:A?Vj(ee,M,[p,h]):h}),q=K}),jn?C:k,A=Math.abs(x.label.y-n);if(A>=_.maxY){var R=x.label.x-t-x.len2*o,M=r+x.len,D=Math.abs(R)e.unconstrainedWidth?null:g:null;r.setStyle("width",b)}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 y9(e){return e.position==="center"}function _vt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*yvt,l=t.getLayout("viewRect"),c=t.getLayout("r"),f=l.width,h=l.x,p=l.y,m=l.height;function g(R){R.ignore=!0}function b(R){if(!R.ignore)return!0;for(var M in R.states)if(R.states[M].ignore===!1)return!0;return!1}t.each(function(R){var M=t.getItemGraphicEl(R),D=M.shape,N=M.getTextContent(),L=M.getTextGuideLine(),B=t.getItemModel(R),F=B.getModel("label"),j=F.get("position")||B.get(["emphasis","label","position"]),z=F.get("distanceToLabelLine"),q=F.get("alignTo"),G=Ho(F.get("edgeDistance"),f),ee=F.get("bleedMargin"),Q=B.getModel("labelLine"),X=Q.get("length");X=Ho(X,f);var K=Q.get("length2");if(K=Ho(K,f),Math.abs(D.endAngle-D.startAngle)0?"right":"left":oe>0?"left":"right"}var Me=Math.PI,We=0,qe=F.get("rotate");if(bo(qe))We=qe*(Me/180);else if(j==="center")We=0;else if(qe==="radial"||qe===!0){var st=oe<0?-te+Me:-te;We=st}else if(qe==="tangential"&&j!=="outside"&&j!=="outer"){var gt=Math.atan2(oe,ue);gt<0&&(gt=Me*2+gt);var ct=ue>0;ct&&(gt=Me+gt),We=gt-Me}if(a=!!We,N.x=ae,N.y=xe,N.rotation=We,N.setStyle({verticalAlign:"middle"}),Oe){N.setStyle({align:ge});var qt=N.states.select;qt&&(qt.x+=N.x,qt.y+=N.y)}else{var Tt=N.getBoundingRect().clone();Tt.applyTransform(N.getComputedTransform());var xt=(N.style.margin||0)+2.1;Tt.y-=xt/2,Tt.height+=xt,n.push({label:N,labelLine:L,position:j,len:X,len2:K,minTurnAngle:Q.get("minTurnAngle"),maxSurfaceAngle:Q.get("maxSurfaceAngle"),surfaceNormal:new Dr(oe,ue),linePoints:$e,textAlign:ge,labelDistance:z,labelAlignTo:q,edgeDistance:G,bleedMargin:ee,rect:Tt,unconstrainedWidth:Tt.width,labelStyleWidth:N.style.width})}M.setTextConfig({inside:Oe})}}),!a&&e.get("avoidLabelOverlap")&&bvt(n,r,o,c,f,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})($c);function wvt(e,t,n){t=Gn(t)&&{coordDimensions:t}||dn({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=Dge(r,t).dimensions,a=new Mge(o,e);return a.initData(r,n),a}var Cvt=(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})(),Evt=xs(),xvt=(function(e){Rn(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 Cvt(Co(this.getData,this),Co(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return wvt(this,{coordDimensions:["value"],encodeDefaulter:Ss(_ct,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=Evt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=pat(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){Uj(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})(wd);function Tvt(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!(bo(s)&&!isNaN(s)&&s<0)})}}}function g0e(e){e.registerChartView(kvt),e.registerSeriesModel(xvt),rft("pie",e.registerAction),e.registerLayout(Ss(mvt,"pie")),e.registerProcessor(gvt("pie")),e.registerProcessor(Tvt("pie"))}var Avt=(function(e){Rn(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})(to),yV=(function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",vd).models[0]},t.type="cartesian2dAxis",t})(to);kf(yV,lpt);var y0e={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)"]}}},Ivt=Zi({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},y0e),nW=Zi({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}}},y0e),Lvt=Zi({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nW),Pvt=Qi({logBase:10},nW);const Rvt={category:Ivt,value:nW,time:Lvt,log:Pvt};var Mvt={value:1,category:1,time:1,log:1};function Koe(e,t,n,r){wt(Mvt,function(o,a){var s=Zi(Zi({},Rvt[a],!0),r,!0),l=(function(c){Rn(f,c);function f(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return f.prototype.mergeDefaultAndTheme=function(h,p){var m=Z2(this),g=m?IL(h):{},b=p.getTheme();Zi(h,b.get(a+"Axis")),Zi(h,this.getDefaultOption()),h.type=qoe(h),m&&C1(h,g,m)},f.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=pV.createByAxisModel(this))},f.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},f.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},f.type=t+"Axis."+a,f.defaultOption=s,f})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",qoe)}function qoe(e){return e.type||(e.data?"category":"value")}var Dvt=(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 pr(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Pa(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})(),bV=["x","y"];function Yoe(e){return e.type==="interval"||e.type==="time"}var Ovt=(function(e){Rn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=bV,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Yoe(n)||!Yoe(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],f=a[1]-a[0];if(!(!c||!f)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/f,m=s[0]-o[0]*h,g=s[1]-a[0]*p,b=this._transform=[h,0,0,p,m,g];this._invTransform=sH([],b)}}},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 Ji(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 Dc(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]),f=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]),f),Math.max(l[0],l[1])),r},t.prototype.pointToData=function(n,r){var o=[];if(this._invTransform)return Dc(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 Ji(a,s,l,c)},t})(Dvt),$vt=(function(e){Rn(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})(ypt);function _V(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,c=s?"onZero":l,f=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,b=f==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));b[m.onZero]=Math.max(Math.min(S,b[1]),b[0])}a.position=[f==="y"?b[m[c]]:p[0],f==="x"?b[m[c]]:p[3]],a.rotation=Math.PI/2*(f==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?b[m[l]]-b[m.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),H2(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 Xoe(e){return e.get("coordinateSystem")==="cartesian2d"}function Zoe(e){var t={xAxisModel:null,yAxisModel:null};return wt(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,vd).models[0];t[r]=a}),t}var b9=Math.log;function Nvt(e,t,n){var r=tb.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=Hge(e,t),f=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var m=b9(e.base);f=[b9(f[0])/m,b9(f[1])/m]}e.setExtent(f[0],f[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(f[0]=g[0]),p&&(f[1]=g[1]);var b=r.getInterval.call(e),S=f[0],k=f[1];if(h&&p)b=(k-S)/s;else if(h)for(k=f[0]+b*s;kf[0]&&isFinite(S)&&isFinite(f[0]);)b=d9(b),S=f[1]-b*s;else{var C=e.getTicks().length-1;C>s&&(b=d9(b));var E=b*s;k=Math.ceil(f[1]/b)*b,S=js(k-E),S<0&&f[0]>=0?(S=0,k=js(E)):k>0&&f[1]<=0&&(k=0,S=-js(E))}var x=(o[0].value-a[0].value)/l,_=(o[s].value-a[s].value)/l;r.setExtent.call(e,S+b*x,k+b*_),r.setInterval.call(e,b),(x||_)&&r.setNiceExtent.call(e,S+b,k-b)}var Bvt=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bV,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=Wo(s),f=c.length;if(f){for(var h=[],p=f-1;p>=0;p--){var m=+c[p],g=s[m],b=g.model,S=g.scale;vV(S)&&b.get("alignTicks")&&b.get("interval")==null?h.push(g):(koe(S,b),vV(S)&&(l=g))}h.length&&(l||(l=h.pop(),koe(l.scale,l.model)),wt(h,function(k){Nvt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};wt(r.x,function(s){Joe(r,"y",s,a)}),wt(r.y,function(s){Joe(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=w1(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(wt(l,function(f){if(!f.model.get(["axisLabel","inside"])){var h=opt(f);if(h){var p=f.isHorizontal()?"height":"width",m=f.model.get(["axisLabel","margin"]);s[p]-=h[p]+m,f.position==="top"?s.y+=h.height+m:f.position==="left"&&(s.x+=h.width+m)}}}),c()),wt(this._coordsList,function(f){f.calcAffineTransform()});function c(){wt(l,function(f){var h=f.isHorizontal(),p=h?[0,s.width]:[0,s.height],m=f.inverse?1:0;f.setExtent(p[m],p[1-m]),Fvt(f,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]}br(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):rI(o-Zp)?(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})(),ese={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],f=l[0]>c[0];s&&(Dc(l,l,s),Dc(c,c,s));var h=dn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new mv({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Y2(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"]);ur(m)&&(m=[m,m]),(ur(g)||bo(g))&&(g=[g,g]);var b=ige(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];wt([{rotate:e.rotation+Math.PI/2,offset:b[0],r:0},{rotate:e.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(C,E){if(m[E]!=="none"&&m[E]!=null){var x=x1(m[E],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,A=f?c:l;x.attr({rotation:C.rotate,x:A[0]+_*Math.cos(e.rotation),y:A[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabel:function(e,t,n,r){var o=Uvt(n,r,t,e),a=Hvt(n,r,t,e);if(Vvt(t,a,o),zvt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=Ept(pr(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Apt(s)}},axisName:function(e,t,n,r){var o=H2(e.axisName,t.get("name"));if(o){var a=t.get("nameLocation"),s=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,f=t.axis.getExtent(),h=f[0]>f[1]?-1:1,p=[a==="start"?f[0]-h*c:a==="end"?f[1]+h*c:(f[0]+f[1])/2,nse(a)?e.labelOffset+s*c:0],m,g=t.get("nameRotate");g!=null&&(g=g*Zp/180);var b;nse(a)?m=ov.innerTextLayout(e.rotation,g??e.rotation,s):(m=jvt(e.rotation,a,g||0,f),b=e.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(m.rotation)),!isFinite(b)&&(b=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,E=H2(e.nameTruncateMaxWidth,k.maxWidth,b),x=new za({x:p[0],y:p[1],rotation:m.rotation,silent:ov.isLabelSilent(t),style:gv(l,{text:o,font:S,overflow:"truncate",width:E,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(yL({el:x,componentModel:t,itemName:o}),x.__fullText=o,x.anid="name",t.get("triggerEvent")){var _=ov.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Bi(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function jvt(e,t,n,r){var o=kve(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return rI(o-Zp/2)?(s=c?"bottom":"top",a="center"):rI(o-Zp*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oZp/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function Vvt(e,t,n){if(!Wge(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],f=n[0],h=n[1],p=n[n.length-1],m=n[n.length-2];r===!1?(yc(a),yc(f)):tse(a,s)&&(r?(yc(s),yc(h)):(yc(a),yc(f))),o===!1?(yc(l),yc(p)):tse(c,l)&&(o?(yc(c),yc(m)):(yc(l),yc(p)))}}function yc(e){e&&(e.ignore=!0)}function tse(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=iH([]);return oH(o,o,-e.rotation),n.applyTransform(Zy([],o,e.getLocalTransform())),r.applyTransform(Zy([],o,t.getLocalTransform())),n.intersect(r)}}function nse(e){return e==="middle"||e==="center"}function b0e(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Xvt(e){var t=rW(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=SV(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=rW(t).seriesDataCount,f=o.getExtent();return Math.abs(f[0]-f[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=$m(t).pointerEl=new Uut[a.type](ose(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=$m(t).labelEl=new za(ose(n.label));t.add(a),ase(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=$m(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=$m(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),ase(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=TH(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(f){ive(f.event)},onmousedown:k9(this._onHandleDragMove,this,0,0),drift:k9(this._onHandleDragMove,this),ondragend:k9(this._onHandleDragEnd,this)}),r.add(o)),lse(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");Gn(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,Xme(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){sse(this._axisPointerModel,!n&&this._moveAnimation,this._handle,w9(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(w9(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(w9(o)),$m(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),oV(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 sse(e,t,n,r){w0e($m(n).lastProp,r)||($m(n).lastProp=r,t?Ul(n,r,e):(n.stopAnimation(),n.attr(r)))}function w0e(e,t){if(br(e)&&br(t)){var n=!0;return wt(t,function(r,o){n=n&&w0e(e[o],r)}),!!n}else return e===t}function ase(e,t){e[t.get(["label","show"])?"show":"hide"]()}function w9(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function lse(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 amt(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 lmt(e,t,n,r,o){var a=n.get("value"),s=C0e(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=AL(l.get("padding")||0),f=l.getFont(),h=uH(s,f),p=o.position,m=h.width+c[1]+c[3],g=h.height+c[0]+c[2],b=o.align;b==="right"&&(p[0]-=m),b==="center"&&(p[0]-=m/2);var S=o.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),umt(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:gv(l,{text:s,font:f,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function umt(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 C0e(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:ZH(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};wt(r,function(c){var f=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=f&&f.getDataParams(h);p&&l.seriesData.push(p)}),ur(s)?a=s.replace("{value}",a):Hr(s)&&(a=s(l))}return a}function E0e(e,t,n){var r=Xy();return oH(r,r,n.rotation),Lj(r,r,n.position),xH([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function cmt(e,t,n,r,o,a){var s=ov.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),lmt(t,r,o,a,{position:E0e(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function dmt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function fmt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var hmt=(function(e){Rn(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,f=a.get("type"),h=use(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(f&&f!=="none"){var m=amt(a),g=pmt[f](l,p,h);g.style=m,n.graphicKey=g.type,n.pointer=g}var b=_V(c.model,o);cmt(r,n,b,o,a,s)},t.prototype.getHandleTransform=function(n,r,o){var a=_V(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var s=E0e(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),f=use(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=(f[1]+f[0])/2,g=[m,m];g[h]=p[h];var b=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:b[h]}},t})(smt);function use(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var pmt={line:function(e,t,n){var r=dmt([t,n[0]],[t,n[1]],cse(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:fmt([t-r/2,n[0]],[r,o],cse(e))}}};function cse(e){return e.dim==="x"?0:1}var vmt=(function(e){Rn(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})(to),bh=xs(),mmt=wt;function x0e(e,t,n){if(!Pr.node){var r=t.getZr();bh(r).records||(bh(r).records={}),gmt(r,t);var o=bh(r).records[e]||(bh(r).records[e]={});o.handler=n}}function gmt(e,t){if(bh(e).initialized)return;bh(e).initialized=!0,n("click",Ss(dse,"click")),n("mousemove",Ss(dse,"mousemove")),n("globalout",bmt);function n(r,o){e.on(r,function(a){var s=_mt(t);mmt(bh(e).records,function(l){l&&o(l,a,s.dispatchAction)}),ymt(s.pendings,t)})}}function ymt(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 bmt(e,t,n){e.handler("leave",null,n)}function dse(e,t,n,r){t.handler(e,n,r)}function _mt(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 wV(e,t){if(!Pr.node){var n=t.getZr(),r=(bh(n).records||{})[e];r&&(bh(n).records[e]=null)}}var Smt=(function(e){Rn(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";x0e("axisPointer",o,function(l,c,f){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&f({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(n,r){wV("axisPointer",r)},t.prototype.dispose=function(n,r){wV("axisPointer",r)},t.type="axisPointer",t})(Cd);function T0e(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=Eg(a,e);if(s==null||s<0||Gn(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 f=c.getBaseAxis(),h=c.getOtherAxis(f),p=h.dim,m=f.dim,g=p==="x"||p==="radius"?1:0,b=a.mapDimension(m),S=[];S[g]=a.get(b,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(pr(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 fse=xs();function kmt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Co(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){z4(o)&&(o=T0e({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=z4(o),f=a.axesInfo,h=l.axesInfo,p=r==="leave"||z4(o),m={},g={},b={list:[],map:{}},S={showPointer:Ss(Cmt,g),showTooltip:Ss(Emt,b)};wt(l.coordSysMap,function(C,E){var x=c||C.containPoint(o);wt(l.coordSysAxesInfo[E],function(_,A){var R=_.axis,M=Imt(f,_);if(!p&&x&&(!f||M)){var D=M&&M.value;D==null&&!c&&(D=R.pointToData(o)),D!=null&&hse(_,D,S,!1,m)}})});var k={};return wt(h,function(C,E){var x=C.linkGroup;x&&!g[E]&&wt(x.axesInfo,function(_,A){var R=g[A];if(_!==C&&R){var M=R.value;x.mapper&&(M=C.axis.scale.parse(x.mapper(M,pse(_),pse(C)))),k[C.key]=M}})}),wt(k,function(C,E){hse(h[E],C,S,!0,m)}),xmt(g,h,m),Tmt(b,o,e,s),Amt(h,s,n),m}}function hse(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=wmt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&dn(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function wmt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return wt(t.seriesModels,function(c,f){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 b=e-p,S=Math.abs(b);S<=s&&((S=0&&l<0)&&(s=S,l=b,o=p,a.length=0),wt(m,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:o}}function Cmt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Emt(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,f=rk(c),h=e.map[f];h||(h=e.map[f]={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 xmt(e,t,n){var r=n.axesInfo=[];wt(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 Tmt(e,t,n,r){if(z4(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 Amt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=fse(r)[o]||{},s=fse(r)[o]={};wt(e,function(f,h){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&wt(p.seriesDataIndices,function(m){var g=m.seriesIndex+" | "+m.dataIndex;s[g]=m})});var l=[],c=[];wt(a,function(f,h){!s[h]&&c.push(f)}),wt(s,function(f,h){!a[h]&&l.push(f)}),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 Imt(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 pse(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 z4(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function A0e(e){_0e.registerAxisPointerClass("CartesianAxisPointer",hmt),e.registerComponentModel(vmt),e.registerComponentView(Smt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Gn(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Wvt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kmt)}function I0e(e){Nh(omt),Nh(A0e)}function Lmt(e,t){var n=AL(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Vs({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 Pmt=(function(e){Rn(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})(to);function L0e(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function P0e(e){if(Pr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(f=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(f=a==="top"?225:45)+"deg)");var h=f*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 b=t+" solid "+o+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+b,"border-right:"+b,"background-color:"+r+";"];return'
'}function Bmt(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+=Pr.transformSupported?","+iW+r:",left"+r+",top"+r),Dmt+":"+o}function vse(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!Pr.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=Pr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+iW+":"+s+";":[["top",0],["left",0],[R0e,s]]}function Fmt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=oi(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),wt(["decoration","align"],function(f){var h=e.get(f);h&&t.push("text-"+f+":"+h)}),t.join(";")}function jmt(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"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=qme(e,"html"),m=c+"px "+f+"px "+s+"px "+l;return r.push("box-shadow:"+m),t&&o&&r.push(Bmt(o,n)),a&&r.push("background-color:"+a),wt(["width","color","radius"],function(g){var b="border-"+g,S=kme(b),k=e.get(S);k!=null&&r.push(b+":"+k+(g==="color"?"":"px"))}),r.push(Fmt(h)),p!=null&&r.push("padding:"+AL(p).join("px ")+"px"),r.join(";")+";"}function mse(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&sst(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 Vmt=(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,Pr.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&&(ur(a)?document.querySelector(a):z2(a)?a:Hr(a)&&a(t.getDom()));mse(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 f=o.handler,h=o.painter.getViewportRoot();kc(h,c,!0),f.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=Mmt(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=Omt+jmt(t,!this._firstShow,this._longHide)+vse(a[0],a[1],!0)+("border-color:"+Tg(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(ur(a)&&r.get("trigger")==="item"&&!L0e(r)&&(l=Nmt(r,o,a)),ur(t))s.innerHTML=t+l;else if(t){s.innerHTML="",Gn(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||Pr.node||!o.getDom())){var s=bse(a,o);this._ticket="";var l=a.dataByCoordSys,c=qmt(a,r,o);if(c){var f=c.el.getBoundingRect().clone();f.applyTransform(c.el.transform),this._tryShow({offsetX:f.x+f.width/2,offsetY:f.y+f.height/2,target:c.el,position:a.position,positionDefault:"bottom"},s)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=zmt;h.x=a.x,h.y=a.y,h.update(),Bi(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=T0e(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(bse(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 f=r.getSeriesByIndex(s);if(f){var h=f.getData(),p=J_([h.getItemModel(l),f,(f.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=Bi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,f;SS(o,function(h){if(Bi(h).dataIndex!=null)return c=h,!0;if(Bi(h).tooltipConfig!=null)return f=h,!0},!0),c?this._showSeriesItemTooltip(n,c,r):f?this._showComponentItemTooltip(n,f,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var o=n.get("showDelay");r=Co(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=J_([r.tooltipOption],a),c=this._renderMode,f=[],h=Q2("section",{blocks:[],noHeader:!0}),p=[],m=new Q7;wt(n,function(E){wt(E.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),A=x.value;if(!(!_||A==null)){var R=C0e(A,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),M=Q2("section",{header:R,noHeader:!nf(R),sortBlocks:!0,blocks:[]});h.blocks.push(M),wt(x.seriesDataIndices,function(D){var N=o.getSeriesByIndex(D.seriesIndex),L=D.dataIndexInside,B=N.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=x.axisDim,B.axisIndex=x.axisIndex,B.axisType=x.axisType,B.axisId=x.axisId,B.axisValue=ZH(_.axis,{value:A}),B.axisValueLabel=R,B.marker=m.makeTooltipMarker("item",Tg(B.color),c);var F=Pie(N.formatTooltip(L,!0,null)),j=F.frag;if(j){var z=J_([N],a).get("valueFormatter");M.blocks.push(z?dn({valueFormatter:z},j):j)}F.text&&p.push(F.text),f.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,b=l.get("order"),S=$ie(h,m,c,b,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,f)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,f):this._showTooltipContent(l,C,f,Math.random()+"",s[0],s[1],g,null,m)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=Bi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),f=s.dataModel||c,h=s.dataIndex,p=s.dataType,m=f.getData(p),g=this._renderMode,b=n.positionDefault,S=J_([m.getItemModel(h),f,c&&(c.coordinateSystem||{}).model],this._tooltipModel,b?{position:b}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var C=f.getDataParams(h,p),E=new Q7;C.marker=E.makeTooltipMarker("item",Tg(C.color),g);var x=Pie(f.formatTooltip(h,!1,p)),_=S.get("order"),A=S.get("valueFormatter"),R=x.frag,M=R?$ie(A?dn({valueFormatter:A},R):R,E,g,_,a.get("useUTC"),S.get("textStyle")):x.text,D="item_"+f.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,M,C,D,n.offsetX,n.offsetY,n.position,n.target,E)}),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=Bi(r),l=s.tooltipConfig,c=l.option||{},f=c.encodeHTMLContent;if(ur(c)){var h=c;c={content:h,formatter:h},f=!0}f&&a&&c.content&&(c=Pi(c),c.content=cu(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,b=J_(p,this._tooltipModel,g?{position:g}:null),S=b.get("content"),k=Math.random()+"",C=new Q7;this._showOrMove(b,function(){var E=Pi(b.get("formatterParams")||{});this._showTooltipContent(b,S,E,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,f,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,b=this._getNearestPoint([s,l],o,n.get("trigger"),n.get("borderColor")),S=b.color;if(m)if(ur(m)){var k=n.ecModel.get("useUTC"),C=Gn(o)?o[0]:o,E=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=m,E&&(g=wL(C.axisValue,g,k)),g=wme(g,o,!0)}else if(Hr(m)){var x=Co(function(_,A){_===this._ticket&&(p.setContent(A,h,n,S,c),this._updatePosition(n,c,s,l,p,o,f))},this);this._ticket=a,g=m(o,a,x)}else g=m;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,o,f)}},t.prototype._getNearestPoint=function(n,r,o,a){if(o==="axis"||Gn(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Gn(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,o,a,s,l,c){var f=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),m=n.get("align"),g=n.get("verticalAlign"),b=c&&c.getBoundingRect().clone();if(c&&b.applyTransform(c.transform),Hr(r)&&(r=r([o,a],l,s.el,b,{viewSize:[f,h],contentSize:p.slice()})),Gn(r))o=Ho(r[0],f),a=Ho(r[1],h);else if(br(r)){var S=r;S.width=p[0],S.height=p[1];var k=w1(S,{width:f,height:h});o=k.x,a=k.y,m=null,g=null}else if(ur(r)&&c){var C=Kmt(r,b,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=Wmt(o,a,s,f,h,m?null:20,g?null:20);o=C[0],a=C[1]}if(m&&(o-=_se(m)?p[0]/2:m==="right"?p[0]:0),g&&(a-=_se(g)?p[1]/2:g==="bottom"?p[1]:0),L0e(n)){var C=Gmt(o,a,s,f,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&&wt(o,function(l,c){var f=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&f.length===p.length,s&&wt(f,function(m,g){var b=p[g]||{},S=m.seriesDataIndices||[],k=b.seriesDataIndices||[];s=s&&m.value===b.value&&m.axisType===b.axisType&&m.axisId===b.axisId&&S.length===k.length,s&&wt(S,function(C,E){var x=k[E];s=s&&C.seriesIndex===x.seriesIndex&&C.dataIndex===x.dataIndex}),a&&wt(m.seriesDataIndices,function(C){var E=C.seriesIndex,x=r[E],_=a[E];x&&_&&_.data!==x.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){Pr.node||!r.getDom()||(oV(this,"_updatePosition"),this._tooltipContent.dispose(),wV("itemTooltip",r))},t.type="tooltip",t})(Cd);function J_(e,t,n){var r=t.ecModel,o;n?(o=new fs(n,r,r),o=new fs(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof fs&&(s=s.get("tooltip",!0)),ur(s)&&(s={formatter:s}),s&&(o=new fs(s,o,r)))}return o}function bse(e,t){return e.dispatchAction||Co(t.dispatchAction,t)}function Wmt(e,t,n,r,o,a,s){var l=n.getSize(),c=l[0],f=l[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),s!=null&&(t+f+s>o?t-=f+s:t+=s),[e,t]}function Gmt(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 Kmt(e,t,n,r){var o=n[0],a=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,f=t.width,h=t.height;switch(e){case"inside":l=t.x+f/2-o/2,c=t.y+h/2-a/2;break;case"top":l=t.x+f/2-o/2,c=t.y-a-s;break;case"bottom":l=t.x+f/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+f+s,c=t.y+h/2-a/2}return[l,c]}function _se(e){return e==="center"||e==="middle"}function qmt(e,t,n){var r=hH(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=Uk(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(f){var h=Bi(f).tooltipConfig;if(h&&h.name===e.name)return c=f,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function D0e(e){Nh(A0e),e.registerComponentModel(Pmt),e.registerComponentView(Hmt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bu),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bu)}var Ymt=(function(e){Rn(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})(to),Xmt=(function(e){Rn(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"),f=oi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new za({style:gv(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),m=n.get("subtext"),g=new za({style:gv(l,{text:m,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),b=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!b&&!k,g.silent=!S&&!k,b&&h.on("click",function(){hie(b,"_"+n.get("target"))}),S&&g.on("click",function(){hie(S,"_"+n.get("subtarget"))}),Bi(h).eventData=Bi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),m&&a.add(g);var C=a.getBoundingRect(),E=n.getBoxLayoutParams();E.width=C.width,E.height=C.height;var x=w1(E,{width:o.getWidth(),height:o.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?x.x+=x.width:c==="center"&&(x.x+=x.width/2)),f||(f=n.get("top")||n.get("bottom"),f==="center"&&(f="middle"),f==="bottom"?x.y+=x.height:f==="middle"&&(x.y+=x.height/2),f=f||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var _={align:c,verticalAlign:f};h.setStyle(_),g.setStyle(_),C=a.getBoundingRect();var A=x.margin,R=n.getItemStyle(["color","opacity"]);R.fill=n.get("backgroundColor");var M=new Vs({shape:{x:C.x-A[3],y:C.y-A[0],width:C.width+A[1]+A[3],height:C.height+A[0]+A[2],r:n.get("borderRadius")},style:R,subPixelOptimize:!0,silent:!0});a.add(M)}},t.type="title",t})(Cd);function O0e(e){e.registerComponentModel(Ymt),e.registerComponentView(Xmt)}var Zmt=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"])}},CV=(function(e){Rn(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"]),Gn(r)&&wt(r,function(a,s){ur(a)&&(a={type:a}),r[s]=Zi(a,Zmt(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})(to),cy=Ss,EV=wt,Hx=Ua,$0e=(function(e){Rn(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 Hx),this.group.add(this._selectorGroup=new Hx),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),f=n.get("selectorPosition",!0);c&&(!f||f==="auto")&&(f=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,o,c,l,f);var h=n.getBoxLayoutParams(),p={width:o.getWidth(),height:o.getHeight()},m=n.get("padding"),g=w1(h,p,m),b=this.layoutInner(n,s,g,a,c,f),S=w1(Qi({width:b.width,height:b.height},h),p,m);this.group.x=S.x-b.x,this.group.y=S.y-b.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Lmt(b,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 f=this.getContentGroup(),h=di(),p=r.get("selectedMode"),m=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&m.push(g.id)}),EV(r.getData(),function(g,b){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new Hx;k.newline=!0,f.add(k);return}var C=o.getSeriesByName(S)[0];if(!h.get(S))if(C){var E=C.getData(),x=E.getVisual("legendLineStyle")||{},_=E.getVisual("legendIcon"),A=E.getVisual("style"),R=this._createItem(C,S,b,g,r,n,x,A,_,p,a);R.on("click",cy(Sse,S,null,a,m)).on("mouseover",cy(xV,C.name,null,a,m)).on("mouseout",cy(TV,C.name,null,a,m)),o.ssr&&R.eachChild(function(M){var D=Bi(M);D.seriesIndex=C.seriesIndex,D.dataIndex=b,D.ssrType="legend"}),h.set(S,!0)}else o.eachRawSeries(function(M){if(!h.get(S)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(S))return;var N=D.indexOfName(S),L=D.getItemVisual(N,"style"),B=D.getItemVisual(N,"legendIcon"),F=Ch(L.fill);F&&F[3]===0&&(F[3]=.2,L=dn(dn({},L),{fill:lL(F,"rgba")}));var j=this._createItem(M,S,b,g,r,n,{},L,B,p,a);j.on("click",cy(Sse,null,S,a,m)).on("mouseover",cy(xV,null,S,a,m)).on("mouseout",cy(TV,null,S,a,m)),o.ssr&&j.eachChild(function(z){var q=Bi(z);q.seriesIndex=M.seriesIndex,q.dataIndex=b,q.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();EV(n,function(f){var h=f.type,p=new za({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"]);Wk(p,{normal:m,emphasis:g},{defaultText:f.title}),qj(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,f,h,p,m){var g=n.visualDrawType,b=s.get("itemWidth"),S=s.get("itemHeight"),k=s.isSelected(r),C=a.get("symbolRotate"),E=a.get("symbolKeepAspect"),x=a.get("icon");h=x||h||"roundRect";var _=Jmt(h,a,c,f,g,k,m),A=new Hx,R=a.getModel("textStyle");if(Hr(n.getLegendIcon)&&(!x||x==="inherit"))A.add(n.getLegendIcon({itemWidth:b,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:E}));else{var M=x==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;A.add(Qmt({itemWidth:b,itemHeight:S,icon:h,iconRotate:M,itemStyle:_.itemStyle,symbolKeepAspect:E}))}var D=l==="left"?b+5:-5,N=l,L=s.get("formatter"),B=r;ur(L)&&L?B=L.replace("{name}",r??""):Hr(L)&&(B=L(r));var F=k?R.getTextColor():a.get("inactiveColor");A.add(new za({style:gv(R,{text:B,x:D,y:S/2,fill:F,align:N,verticalAlign:"middle"},{inheritColor:F})}));var j=new Vs({shape:A.getBoundingRect(),style:{fill:"transparent"}}),z=a.getModel("tooltip");return z.get("show")&&yL({el:j,componentModel:s,itemName:r,itemTooltipOption:z.option}),A.add(j),A.eachChild(function(q){q.silent=!0}),j.silent=!p,this.getContentGroup().add(A),qj(A),A.__legendDataIndex=o,A},t.prototype.layoutInner=function(n,r,o,a,s,l){var c=this.getContentGroup(),f=this.getSelectorGroup();a2(n.get("orient"),c,n.get("itemGap"),o.width,o.height);var h=c.getBoundingRect(),p=[-h.x,-h.y];if(f.markRedraw(),c.markRedraw(),s){a2("horizontal",f,n.get("selectorItemGap",!0));var m=f.getBoundingRect(),g=[-m.x,-m.y],b=n.get("selectorButtonGap",!0),S=n.getOrient().index,k=S===0?"width":"height",C=S===0?"height":"width",E=S===0?"y":"x";l==="end"?g[S]+=h[k]+b:p[S]+=m[k]+b,g[1-S]+=h[C]/2-m[C]/2,f.x=g[0],f.y=g[1],c.x=p[0],c.y=p[1];var x={x:0,y:0};return x[k]=h[k]+b+m[k],x[C]=Math.max(h[C],m[C]),x[E]=Math.min(0,m[E]+g[1-S]),x}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})(Cd);function Jmt(e,t,n,r,o,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),EV(k,function(E,x){k[x]==="inherit"&&(k[x]=C[x])})}var c=t.getModel("itemStyle"),f=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");f.decal=!p||p==="inherit"?r.decal:cV(p,s),f.fill==="inherit"&&(f.fill=r[o]),f.stroke==="inherit"&&(f.stroke=r[h]),f.opacity==="inherit"&&(f.opacity=(o==="fill"?r:n).opacity),l(f,r);var m=t.getModel("lineStyle"),g=m.getLineStyle();if(l(g,n),f.fill==="auto"&&(f.fill=r.fill),f.stroke==="auto"&&(f.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var b=t.get("inactiveBorderWidth"),S=f[h];f.lineWidth=b==="auto"?r.lineWidth>0&&S?2:0:f.lineWidth,f.fill=t.get("inactiveColor"),f.stroke=t.get("inactiveBorderColor"),g.stroke=m.get("inactiveColor"),g.lineWidth=m.get("inactiveWidth")}return{itemStyle:f,lineStyle:g}}function Qmt(e){var t=e.icon||"roundRect",n=x1(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 Sse(e,t,n,r){TV(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),xV(e,t,n,r)}function N0e(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[f]);var C=[0,0],E=[-b.x,-b.y],x=oi(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?E[a]+=o[s]-b[s]:C[a]+=b[s]+x}E[1-a]+=g[l]/2-b[l]/2,h.setPosition(k),p.setPosition(C),m.setPosition(E);var A={x:0,y:0};if(A[s]=S?o[s]:g[s],A[l]=Math.max(g[l],b[l]),A[c]=Math.min(0,b[c]+E[1-a]),p.__rectSize=o[s],S){var R={x:0,y:0};R[s]=Math.max(o[s]-b[s]-x,0),R[l]=A[l],p.setClipPath(new Vs({shape:R})),p.__rectSize=R[s]}else m.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(n);return M.pageIndex!=null&&Ul(h,{x:M.contentPosition[0],y:M.contentPosition[1]},S?n:null),this._updatePageInfoView(n,M),A},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;wt(["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,f=r.pageCount;a&&s&&a.setStyle("text",ur(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",f==null?"":f+""):s({current:c,total:f}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=C9[s],c=E9[s],f=this._findTargetItemIndex(r),h=o.children(),p=h[f],m=h.length,g=m?1:0,b={contentPosition:[o.x,o.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return b;var S=_(p);b.contentPosition[s]=-S.s;for(var k=f+1,C=S,E=S,x=null;k<=m;++k)x=_(h[k]),(!x&&E.e>C.s+a||x&&!A(x,C.s))&&(E.i>C.i?C=E:C=x,C&&(b.pageNextDataIndex==null&&(b.pageNextDataIndex=C.i),++b.pageCount)),E=x;for(var k=f-1,C=S,E=S,x=null;k>=-1;--k)x=_(h[k]),(!x||!A(E,x.s))&&C.i=M&&R.s<=M+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})($0e);function igt(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 ogt(e){Nh(B0e),e.registerComponentModel(ngt),e.registerComponentView(rgt),igt(e)}function F0e(e){Nh(B0e),Nh(ogt)}const sgt=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function agt(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 sgt.forEach(o=>{r[o]=t(o)}),r}return n()}function lgt(e,t,n){Dt([n,e,t],([r,o,a],s,l)=>{let c=null;if(r&&o&&a){const{offsetWidth:f,offsetHeight:h}=r,p=a===!0?{}:a,{throttle:m=100,onResize:g}=p;let b=!1;const S=()=>{o.resize(),g?.()},k=m?RL(S,m):S;c=new ResizeObserver(()=>{!b&&(b=!0,r.offsetWidth===f&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const ugt={autoresize:[Boolean,Object]},cgt=/^on[^a-z]/,j0e=e=>cgt.test(e);function dgt(e){const t={};for(const n in e)j0e(n)||(t[n]=e[n]);return t}function H4(e,t){const n=To(e)?ot(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const fgt="ecLoadingOptions";function hgt(e,t,n){const r=xn(fgt,{}),o=V(()=>({...H4(r,{}),...n?.value}));Cs(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const pgt={loading:Boolean,loadingOptions:Object};let eS=null;const V0e="x-vue-echarts";function vgt(){if(eS!=null)return eS;if(typeof HTMLElement>"u"||typeof customElements>"u")return eS=!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);")(V0e)}catch{return eS=!1}return eS=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const mgt=vgt(),ggt="ecTheme",ygt="ecInitOptions",bgt="ecUpdateOptions",Ese=/(^&?~?!?)native:/;var U0e=be({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ugt,...pgt},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=Jm(),r=Jm(),o=Jm(),a=xn(ggt,null),s=xn(ygt,null),l=xn(bgt,null),{autoresize:c,manualUpdate:f,loading:h,loadingOptions:p}=Jt(e),m=V(()=>o.value||e.option||null),g=V(()=>e.theme||H4(a,{})),b=V(()=>e.initOptions||H4(s,{})),S=V(()=>e.updateOptions||H4(l,{})),k=V(()=>dgt(t)),C={},E=uo().proxy.$listeners,x={};E?Object.keys(E).forEach(N=>{Ese.test(N)?C[N.replace(Ese,"$1")]=E[N]:x[N]=E[N]}):Object.keys(t).filter(N=>j0e(N)).forEach(N=>{let L=N.charAt(2).toLowerCase()+N.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;C[B]=t[N];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),x[L]=t[N]});function _(N){if(!n.value)return;const L=r.value=Zft(n.value,g.value,b.value);e.group&&(L.group=e.group),Object.keys(x).forEach(j=>{let z=x[j];if(!z)return;let q=j.toLowerCase();q.charAt(0)==="~"&&(q=q.substring(1),z.__once__=!0);let G=L;if(q.indexOf("zr:")===0&&(G=L.getZr(),q=q.substring(3)),z.__once__){delete z.__once__;const ee=z;z=(...Q)=>{ee(...Q),G.off(q,z)}}G.on(q,z)});function B(){L&&!L.isDisposed()&&L.resize()}function F(){const j=N||m.value;j&&L.setOption(j,S.value)}c.value?kn(()=>{B(),F()}):F()}function A(N,L){e.manualUpdate&&(o.value=N),r.value?r.value.setOption(N,L||{}):_(N)}function R(){r.value&&(r.value.dispose(),r.value=void 0)}let M=null;Dt(f,N=>{typeof M=="function"&&(M(),M=null),N||(M=Dt(()=>e.option,(L,B)=>{L&&(r.value?r.value.setOption(L,{notMerge:L!==B,...S.value}):_())},{deep:!0}))},{immediate:!0}),Dt([g,b],()=>{R(),_()},{deep:!0}),Cs(()=>{e.group&&r.value&&(r.value.group=e.group)});const D=agt(r);return hgt(r,h,p),lgt(r,c,n),ln(()=>{_()}),No(()=>{mgt&&n.value?n.value.__dispose=R:R()}),{chart:r,root:n,setOption:A,nonEventAttrs:k,nativeListeners:C,...D}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",ra(V0e,e)}});const mu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},z0e=()=>new Date().toISOString().split("T")[0],_gt=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},Sgt=()=>{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},gf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},wI=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},H0e=e=>{const t=z0e(),n=new Date().toISOString(),r=gf(mu.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),wI(mu.WATCH_HISTORY,r),oW(t),o},oW=e=>{const t=gf(mu.DAILY_STATS,{}),n=gf(mu.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()},wI(mu.DAILY_STATS,t)},W0e=()=>{const e=z0e(),t=gf(mu.DAILY_STATS,{});return t[e]?t[e]:(oW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},G0e=()=>{const e=_gt(),t=gf(mu.DAILY_STATS,{});return t[e]?t[e]:(oW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},kgt=()=>{const e=Sgt(),t=gf(mu.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}})},wgt=()=>{const e=W0e(),t=G0e();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},Cgt=(e=50)=>gf(mu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),Egt=(e=10)=>{const t=gf(mu.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)},xgt=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=gf(mu.WATCH_HISTORY,[]).filter(l=>l.date>=n);wI(mu.WATCH_HISTORY,o);const a=gf(mu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),wI(mu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},Tgt=()=>{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:"🎉"}}),q0e=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),Agt=()=>Ic.sort((e,t)=>new Date(t.date)-new Date(e.date)),Igt=e=>Ic.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Lgt=e=>Ic.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Pgt=(e=5)=>Ic.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),Rgt=(e,t)=>{const n=new Date(e),r=new Date(t);return Ic.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},Mgt=e=>{const t=e.toLowerCase();return Ic.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))},Dgt=()=>{const e=K0e(),t=q0e(),n={};Object.keys(e).forEach(a=>{n[a]=Ic.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Ic.filter(s=>s.importance===a).length});const o={};return Ic.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:Ic.length,byType:n,byImportance:r,byMonth:o,latestVersion:Ic[0]?.version||"v1.0.0",latestDate:Ic[0]?.date||new Date().toISOString().split("T")[0]}},Ogt=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"})},$gt=(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(aSi,Bgt=e=>Si[e]||[],Fgt=(e=12)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),jgt=(e=8)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),Vgt=(e,t=6)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),Ugt=(e,t=6)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),zgt=e=>{const t=e.toLowerCase();return[...Si.movies,...Si.tvShows,...Si.anime,...Si.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)},Hgt=()=>NL.sort((e,t)=>t.count-e.count),Wgt=(e=10)=>NL.sort((t,n)=>n.count-t.count).slice(0,e),Ggt=(e=5)=>NL.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),Kgt=(e=[],t=8)=>{const n=qgt();return[...Si.movies,...Si.tvShows,...Si.anime,...Si.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)},qgt=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),Ygt=()=>{const e=[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels],t={};Object.keys(Si).forEach(a=>{t[a]=Si[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:NL.length}},Xgt=(e=6)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].sort(()=>.5-Math.random()).slice(0,e),nS={getAllRecommendations:Ngt,getRecommendationsByType:Bgt,getHotRecommendations:Fgt,getTrendingRecommendations:jgt,getRecommendationsByCategory:Vgt,getRecommendationsByTag:Ugt,searchRecommendations:zgt,getAllKeywords:Hgt,getHotKeywords:Wgt,getTrendingUpKeywords:Ggt,getPersonalizedRecommendations:Kgt,getRecommendationStats:Ygt,getRandomRecommendations:Xgt},BL=zg("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||{}}}),Zgt="识别动作的路由ID或专项动作指令,必须。字符型。",Jgt="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",Qgt="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",e0t="标题。字符型。",t0t="宽度。整型。",n0t="高度。整型。",r0t="文本消息内容。字符型。",i0t="msgbox类动作的简单html消息内容。字符型。",o0t="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",s0t="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",a0t="图片URL。字符型。",l0t="图片高度。整型。",u0t="是否检测图片的点击坐标输入。逻辑型。",c0t="生成二维码的URL。字符型。",d0t="二维码的大小。整型。",f0t="超时时间(秒)。超时自动关闭窗口。整型。",h0t="T4源的动作网络访问超时时间(秒)。",p0t="输入确认后,窗口是否保持。逻辑型。",v0t="窗口弹出时自动发送的初始化动作指令。字符型。",m0t="窗口弹出时自动发送的初始化指令值。字符型。",g0t="按窗口的取消键时发送的取消动作指令。字符型。",y0t="按窗口的取消键时发送的取消动作指令值。字符型。",b0t="单项输入的输入提示,单项输入时必须。字符型。",_0t="单项输入的初始化值。字符型。",S0t="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",k0t=`多项输入的项目定义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。`,w0t="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",C0t="底部对齐和底边距。整型。",E0t="单项选择或多项选择窗口的列数。整型。",x0t=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,T0t=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,A0t=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,I0t=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,L0t="刷新当前分类的列表。无其它参数。",P0t="把返回的内容复制到剪贴板。content:复制的内容",R0t=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,M0t={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为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:Zgt,type:Jgt,canceledOnTouchOutside:Qgt,title:e0t,width:t0t,height:n0t,msg:r0t,htmlMsg:i0t,help:o0t,button:s0t,imageUrl:a0t,imageHeight:l0t,imageClickCoord:u0t,qrcode:c0t,qrcodeSize:d0t,timeout:f0t,httpTimeout:h0t,keep:p0t,initAction:v0t,initValue:m0t,cancelAction:g0t,cancelValue:y0t,tip:b0t,value:_0t,selectData:S0t,input:k0t,dimAmount:w0t,bottom:C0t,column:E0t,option:x0t,单项输入:`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__:T0t,__detail__:A0t,__ktvplayer__:I0t,__refresh_list__:L0t,__copy__:P0t,__keep__:R0t,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的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'  }`},D0t={class:"action-doc-card"},O0t={class:"card-title"},$0t={class:"card-content"},N0t={class:"overview-section"},B0t={class:"overview-item"},F0t={class:"overview-value"},j0t={class:"overview-item"},V0t={class:"overview-value"},U0t={class:"overview-item"},z0t={class:"overview-value"},H0t={key:0,class:"quick-nav"},W0t={key:1,class:"expanded-content"},G0t={class:"section",id:"basic-concepts"},K0t={class:"section-title"},q0t={class:"concept-grid"},Y0t={class:"concept-title"},X0t={class:"concept-desc"},Z0t={class:"section",id:"action-types"},J0t={class:"section-title"},Q0t={class:"action-types-grid"},eyt={class:"action-type-header"},tyt={class:"action-type-code"},nyt={class:"action-type-desc"},ryt={key:0,class:"action-type-usage"},iyt={class:"section",id:"special-actions"},oyt={class:"section-title"},syt={class:"special-actions-list"},ayt={class:"special-action-header"},lyt={class:"action-id"},uyt={class:"action-name"},cyt={class:"special-action-desc"},dyt={key:0,class:"special-action-params"},fyt={class:"section",id:"config-params"},hyt={class:"section-title"},pyt={class:"params-grid"},vyt={class:"param-header"},myt={class:"param-name"},gyt={class:"param-desc"},yyt={class:"section",id:"examples"},byt={class:"section-title"},_yt={class:"code-block"},Syt={class:"code-block"},kyt={class:"code-block"},wyt={__name:"ActionDocCard",setup(e){const t=pe(!1),n=pe(M0t),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};ln(()=>{});const a=V(()=>Object.keys(n.value).length),s=V(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=V(()=>Object.entries(n.value).filter(([k,C])=>C.special===!0).map(([k,C])=>({key:k,...C}))),c=pe([{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"}]),f=V(()=>[{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=pe([{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=V(()=>[{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=pe([{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=pe(`{ "vod_id": "hello world", "vod_name": "基础动作", "vod_tag": "action" }`),b=pe(`{ "actionId": "动作路由ID", "type": "input", "width": 450, "title": "输入窗口标题", "tip": "输入提示", "value": "输入初始值", "msg": "窗口文本说明", "button": 2, "selectData": "1:=快速输入一,2:=快速输入二,3:=快速输入三" }`),S=pe(`{ "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 E=Pe("a-button"),x=Pe("a-tag"),_=Pe("a-card"),A=Pe("a-tab-pane"),R=Pe("a-tabs");return H(),J("div",D0t,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[I("div",O0t,[O(ot(eL),{class:"title-icon"}),C[0]||(C[0]=I("span",null,"Action 动作指令文档",-1))])]),extra:de(()=>[O(E,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:de(()=>[t.value?Ae("",!0):(H(),Ye(ot(Av),{key:0})),t.value?(H(),Ye(ot(Pk),{key:1})):Ae("",!0),He(" "+Ne(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[I("div",$0t,[I("div",N0t,[I("div",B0t,[C[1]||(C[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",F0t,Ne(a.value),1)]),I("div",j0t,[C[2]||(C[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",V0t,Ne(s.value.length),1)]),I("div",U0t,[C[3]||(C[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",z0t,Ne(l.value.length),1)])]),t.value?Ae("",!0):(H(),J("div",H0t,[(H(!0),J(Ft,null,fn(c.value,M=>(H(),Ye(x,{key:M.key,color:M.color,class:"nav-tag",onClick:D=>o(M.key)},{default:de(()=>[He(Ne(M.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(H(),J("div",W0t,[I("div",G0t,[I("h3",K0t,[O(ot(sh),{class:"section-icon"}),C[4]||(C[4]=He(" 基础概念 ",-1))]),I("div",q0t,[(H(!0),J(Ft,null,fn(f.value,M=>(H(),J("div",{class:"concept-item",key:M.key},[I("div",Y0t,Ne(M.title),1),I("div",X0t,Ne(M.description),1)]))),128))])]),I("div",Z0t,[I("h3",J0t,[O(ot(zh),{class:"section-icon"}),C[5]||(C[5]=He(" 动作类型 ",-1))]),I("div",Q0t,[(H(!0),J(Ft,null,fn(h.value,M=>(H(),Ye(_,{key:M.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[I("div",eyt,[O(x,{color:M.color},{default:de(()=>[He(Ne(M.name),1)]),_:2},1032,["color"]),I("span",tyt,Ne(M.type),1)]),I("div",nyt,Ne(M.description),1),M.usage?(H(),J("div",ryt,[C[6]||(C[6]=I("strong",null,"用途:",-1)),He(Ne(M.usage),1)])):Ae("",!0)]),_:2},1024))),128))])]),I("div",iyt,[I("h3",oyt,[O(ot(qz),{class:"section-icon"}),C[7]||(C[7]=He(" 专项动作 ",-1))]),I("div",syt,[(H(!0),J(Ft,null,fn(p.value,M=>(H(),J("div",{key:M.key,class:"special-action-item"},[I("div",ayt,[I("code",lyt,Ne(M.actionId),1),I("span",uyt,Ne(M.name),1)]),I("div",cyt,Ne(M.description),1),M.params?(H(),J("div",dyt,[C[8]||(C[8]=I("strong",null,"参数:",-1)),(H(!0),J(Ft,null,fn(M.params,D=>(H(),J("span",{key:D,class:"param-tag"},Ne(D),1))),128))])):Ae("",!0)]))),128))])]),I("div",fyt,[I("h3",hyt,[O(ot(hv),{class:"section-icon"}),C[9]||(C[9]=He(" 配置参数 ",-1))]),I("div",pyt,[(H(!0),J(Ft,null,fn(m.value,M=>(H(),J("div",{key:M.key,class:"param-item"},[I("div",vyt,[I("code",myt,Ne(M.name),1),O(x,{size:"small",color:M.typeColor},{default:de(()=>[He(Ne(M.type),1)]),_:2},1032,["color"])]),I("div",gyt,Ne(M.description),1)]))),128))])]),I("div",yyt,[I("h3",byt,[O(ot(Lpe),{class:"section-icon"}),C[10]||(C[10]=He(" 示例代码 ",-1))]),O(R,{type:"card",class:"example-tabs"},{default:de(()=>[O(A,{key:"basic",title:"基础动作"},{default:de(()=>[I("pre",_yt,Ne(g.value),1)]),_:1}),O(A,{key:"input",title:"单项输入"},{default:de(()=>[I("pre",Syt,Ne(b.value),1)]),_:1}),O(A,{key:"multi",title:"多项输入"},{default:de(()=>[I("pre",kyt,Ne(S.value),1)]),_:1})]),_:1})])])):Ae("",!0)])]),_:1})])}}},Cyt=vr(wyt,[["__scopeId","data-v-d143db2b"]]),Eyt={class:"home-container"},xyt={class:"dashboard-header"},Tyt={class:"header-content"},Ayt={class:"welcome-section"},Iyt={class:"dashboard-title"},Lyt={class:"quick-stats"},Pyt={class:"stat-item"},Ryt={class:"stat-value"},Myt={class:"stat-item"},Dyt={class:"stat-value"},Oyt={class:"stat-item"},$yt={class:"dashboard-content"},Nyt={class:"content-grid"},Byt={class:"dashboard-card watch-stats-card"},Fyt={class:"card-header"},jyt={class:"card-title"},Vyt={class:"card-content"},Uyt={class:"dashboard-card update-log-card"},zyt={class:"card-header"},Hyt={class:"card-title"},Wyt={class:"card-content"},Gyt={class:"timeline-content"},Kyt={class:"timeline-header"},qyt={class:"version-tag"},Yyt={class:"update-date"},Xyt={class:"update-title"},Zyt={class:"update-description"},Jyt={class:"update-changes"},Qyt={key:0,class:"more-changes"},e1t={class:"dashboard-card recommend-card"},t1t={class:"card-header"},n1t={class:"card-title"},r1t={class:"card-content"},i1t={class:"recommend-grid"},o1t=["onClick"],s1t={class:"recommend-poster"},a1t={class:"recommend-overlay"},l1t={key:0,class:"trending-badge"},u1t={class:"recommend-info"},c1t={class:"recommend-title"},d1t={class:"recommend-meta"},f1t={class:"recommend-rating"},h1t={class:"recommend-tags"},p1t={class:"dashboard-card keywords-card"},v1t={class:"card-header"},m1t={class:"card-title"},g1t={class:"card-content"},y1t={class:"keywords-list"},b1t=["onClick"],_1t={class:"keyword-content"},S1t={class:"keyword-text"},k1t={class:"keyword-meta"},w1t={class:"keyword-count"},C1t={class:"dashboard-card system-status-card"},E1t={class:"card-header"},x1t={class:"card-title"},T1t={class:"card-content"},A1t={class:"status-grid"},I1t={class:"status-item"},L1t={class:"status-icon online"},P1t={class:"status-item"},R1t={class:"status-icon online"},M1t={class:"status-item"},D1t={class:"status-icon warning"},O1t={class:"status-item"},$1t={class:"status-icon online"},N1t={class:"update-log-modal"},B1t={class:"timeline-content"},F1t={class:"timeline-header"},j1t={class:"version-tag"},V1t={class:"update-date"},U1t={class:"update-title"},z1t={class:"update-description"},H1t={class:"update-changes"},W1t={class:"keywords-modal"},G1t={class:"keywords-list"},K1t=["onClick"],q1t={class:"keyword-content"},Y1t={class:"keyword-text"},X1t={class:"keyword-meta"},Z1t={class:"keyword-count"},J1t={__name:"Home",setup(e){Nh([e0e,f0e,u0e,g0e,I0e,D0e,F0e,O0e]);const t=BL(),n=_3(),r=xu(),o=pe("week"),a=pe("hot"),s=pe({watchCount:0,totalWatchTime:0}),l=pe({watchCount:0,totalWatchTime:0}),c=pe([]),f=pe(0),h=pe([]),p=pe([]),m=pe([]),g=V(()=>{const Q=c.value.map(K=>K.count),X=c.value.map(K=>K.day);return{title:{text:o.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(K){const te=K[0];return`${te.name}
${te.seriesName}: ${te.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:X,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:Q,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),b=Q=>tS.getUpdateTypeConfig()[Q]?.color||"#86909c",S=()=>tS.getUpdateTypeConfig(),k=Q=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[Q]||"gray",C=Q=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[Q]||"#86909C",E=Q=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[Q]||"gray",x=Q=>tS.formatDate(Q),_=Q=>Q>=1e4?(Q/1e4).toFixed(1)+"w":Q>=1e3?(Q/1e3).toFixed(1)+"k":Q.toString(),A=()=>{console.log("更新统计图表:",o.value)},R=()=>{switch(a.value){case"hot":p.value=nS.getHotRecommendations(8);break;case"trending":p.value=nS.getTrendingRecommendations(8);break;case"random":p.value=nS.getRandomRecommendations(8);break}},M=Q=>{console.log("点击推荐内容:",Q)},D=Q=>{console.log("点击热搜关键词:",Q)},N=pe(!1),L=pe(!1),B=pe([]),F=pe([]),j=()=>{B.value=tS.getAllUpdateLogs(),N.value=!0},z=()=>{F.value=nS.getAllKeywords(),L.value=!0},q=()=>{N.value=!1},G=()=>{L.value=!1},ee=()=>{s.value=Wx.getTodayStats(),l.value=Wx.getYesterdayStats(),c.value=Wx.getWeekStats(),f.value=Wx.calculateGrowthRate(),h.value=tS.getRecentUpdateLogs(4),R(),m.value=nS.getHotKeywords(8)};return ln(()=>{if(n.query._restoreSearch==="true"){const X=t.getPageState("search");if(X&&X.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",X),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const K={...n.query};delete K._restoreSearch,r.replace({query:K})}ee(),console.log("主页看板加载完成")}),(Q,X)=>{const K=Pe("a-option"),te=Pe("a-select"),oe=Pe("a-link"),ue=Pe("a-tag"),ae=Pe("a-timeline-item"),xe=Pe("a-timeline"),$e=Pe("a-modal");return H(),J(Ft,null,[I("div",Eyt,[I("div",xyt,[I("div",Tyt,[I("div",Ayt,[I("h1",Iyt,[O(ot(J3),{class:"title-icon"}),X[4]||(X[4]=He(" 数据看板 ",-1))]),X[5]||(X[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",Lyt,[I("div",Pyt,[I("div",Ryt,Ne(s.value.watchCount),1),X[6]||(X[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",Myt,[I("div",Dyt,Ne(Math.round(s.value.totalWatchTime/60)),1),X[7]||(X[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",Oyt,[I("div",{class:se(["stat-value",{positive:f.value>0,negative:f.value<0}])},Ne(f.value>0?"+":"")+Ne(f.value)+"% ",3),X[8]||(X[8]=I("div",{class:"stat-label"},"增长率",-1))])])])]),I("div",$yt,[I("div",Nyt,[I("div",Byt,[I("div",Fyt,[I("h3",jyt,[O(ot(Fpe),{class:"card-icon"}),X[9]||(X[9]=He(" 最近观看统计 ",-1))]),O(te,{modelValue:o.value,"onUpdate:modelValue":X[0]||(X[0]=ge=>o.value=ge),size:"small",style:{width:"100px"},onChange:A},{default:de(()=>[O(K,{value:"week"},{default:de(()=>[...X[10]||(X[10]=[He("本周",-1)])]),_:1}),O(K,{value:"month"},{default:de(()=>[...X[11]||(X[11]=[He("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",Vyt,[O(ot(U0e),{class:"chart",option:g.value},null,8,["option"])])]),I("div",Uyt,[I("div",zyt,[I("h3",Hyt,[O(ot(k1),{class:"card-icon"}),X[12]||(X[12]=He(" 更新日志 ",-1))]),O(oe,{onClick:j,size:"small"},{default:de(()=>[...X[13]||(X[13]=[He("查看全部",-1)])]),_:1})]),I("div",Wyt,[O(xe,null,{default:de(()=>[(H(!0),J(Ft,null,fn(h.value,ge=>(H(),Ye(ae,{key:ge.id,"dot-color":b(ge.type)},{default:de(()=>[I("div",Gyt,[I("div",Kyt,[I("span",qyt,Ne(ge.version),1),I("span",Yyt,Ne(x(ge.date)),1)]),I("h4",Xyt,Ne(ge.title),1),I("p",Zyt,Ne(ge.description),1),I("div",Jyt,[(H(!0),J(Ft,null,fn(ge.changes.slice(0,2),(Oe,Fe)=>(H(),Ye(ue,{key:Fe,size:"small",color:k(ge.type)},{default:de(()=>[He(Ne(Oe),1)]),_:2},1032,["color"]))),128)),ge.changes.length>2?(H(),J("span",Qyt," +"+Ne(ge.changes.length-2)+"项更新 ",1)):Ae("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",e1t,[I("div",t1t,[I("h3",n1t,[O(ot(Z3),{class:"card-icon"}),X[14]||(X[14]=He(" 猜你喜欢 ",-1))]),O(te,{modelValue:a.value,"onUpdate:modelValue":X[1]||(X[1]=ge=>a.value=ge),size:"small",style:{width:"80px"},onChange:R},{default:de(()=>[O(K,{value:"hot"},{default:de(()=>[...X[15]||(X[15]=[He("热门",-1)])]),_:1}),O(K,{value:"trending"},{default:de(()=>[...X[16]||(X[16]=[He("趋势",-1)])]),_:1}),O(K,{value:"random"},{default:de(()=>[...X[17]||(X[17]=[He("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",r1t,[I("div",i1t,[(H(!0),J(Ft,null,fn(p.value,ge=>(H(),J("div",{key:ge.id,class:"recommend-item",onClick:Oe=>M(ge)},[I("div",s1t,[I("div",{class:"poster-placeholder",style:je({backgroundColor:C(ge.type)})},Ne(ge.title.substring(0,2)),5),I("div",a1t,[O(ot(pl),{class:"play-icon"})]),ge.trending?(H(),J("div",l1t," 🔥 热门 ")):Ae("",!0)]),I("div",u1t,[I("h4",c1t,Ne(ge.title),1),I("div",d1t,[O(ue,{size:"small",color:E(ge.type)},{default:de(()=>[He(Ne(ge.type),1)]),_:2},1032,["color"]),I("span",f1t,[O(ot(Rz)),He(" "+Ne(ge.rating),1)])]),I("div",h1t,[(H(!0),J(Ft,null,fn(ge.tags.slice(0,2),Oe=>(H(),Ye(ue,{key:Oe,size:"mini",color:"gray"},{default:de(()=>[He(Ne(Oe),1)]),_:2},1024))),128))])])],8,o1t))),128))])])]),I("div",p1t,[I("div",v1t,[I("h3",m1t,[O(ot(Vpe),{class:"card-icon"}),X[18]||(X[18]=He(" 热搜关键词 ",-1))]),O(oe,{onClick:z,size:"small"},{default:de(()=>[...X[19]||(X[19]=[He("更多",-1)])]),_:1})]),I("div",g1t,[I("div",y1t,[(H(!0),J(Ft,null,fn(m.value,(ge,Oe)=>(H(),J("div",{key:ge.keyword,class:"keyword-item",onClick:Fe=>D(ge)},[I("div",{class:se(["keyword-rank",{"top-three":Oe<3}])},Ne(Oe+1),3),I("div",_1t,[I("span",S1t,Ne(ge.keyword),1),I("div",k1t,[I("span",w1t,Ne(_(ge.count)),1),I("span",{class:se(["keyword-trend",ge.trend])},[ge.trend==="up"?(H(),Ye(ot(gj),{key:0})):ge.trend==="down"?(H(),Ye(ot(mj),{key:1})):(H(),Ye(ot(kg),{key:2}))],2)])])],8,b1t))),128))])])]),I("div",C1t,[I("div",E1t,[I("h3",x1t,[O(ot(Xz),{class:"card-icon"}),X[20]||(X[20]=He(" 系统状态 ",-1))])]),I("div",T1t,[I("div",A1t,[I("div",I1t,[I("div",L1t,[O(ot(Ec))]),X[21]||(X[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",P1t,[I("div",R1t,[O(ot(Ec))]),X[22]||(X[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",M1t,[I("div",D1t,[O(ot(dh))]),X[23]||(X[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",O1t,[I("div",$1t,[O(ot(Ec))]),X[24]||(X[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),O(Cyt)])])]),O($e,{visible:N.value,"onUpdate:visible":X[2]||(X[2]=ge=>N.value=ge),title:"更新日志",width:"800px",footer:!1,onCancel:q},{default:de(()=>[I("div",N1t,[O(xe,null,{default:de(()=>[(H(!0),J(Ft,null,fn(B.value,ge=>(H(),Ye(ae,{key:ge.id,"dot-color":b(ge.type)},{default:de(()=>[I("div",B1t,[I("div",F1t,[I("span",j1t,Ne(ge.version),1),I("span",V1t,Ne(x(ge.date)),1),O(ue,{size:"small",color:k(ge.type),class:"type-tag"},{default:de(()=>[He(Ne(S()[ge.type]?.label||ge.type),1)]),_:2},1032,["color"])]),I("h4",U1t,Ne(ge.title),1),I("p",z1t,Ne(ge.description),1),I("div",H1t,[(H(!0),J(Ft,null,fn(ge.changes,(Oe,Fe)=>(H(),Ye(ue,{key:Fe,size:"small",color:k(ge.type),class:"change-tag"},{default:de(()=>[He(Ne(Oe),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O($e,{visible:L.value,"onUpdate:visible":X[3]||(X[3]=ge=>L.value=ge),title:"热搜关键词",width:"600px",footer:!1,onCancel:G},{default:de(()=>[I("div",W1t,[I("div",G1t,[(H(!0),J(Ft,null,fn(F.value,(ge,Oe)=>(H(),J("div",{key:ge.keyword,class:"keyword-item",onClick:Fe=>D(ge)},[I("div",{class:se(["keyword-rank",{"top-three":Oe<3}])},Ne(Oe+1),3),I("div",q1t,[I("span",Y1t,Ne(ge.keyword),1),I("div",X1t,[I("span",Z1t,Ne(_(ge.count)),1),I("span",{class:se(["keyword-trend",ge.trend])},[ge.trend==="up"?(H(),Ye(ot(gj),{key:0})):ge.trend==="down"?(H(),Ye(ot(mj),{key:1})):(H(),Ye(ot(kg),{key:2}))],2)])])],8,K1t))),128))])])]),_:1},8,["visible"])],64)}}},Q1t=vr(J1t,[["__scopeId","data-v-217d9b8b"]]),ebt={class:"tag-container"},tbt={class:"search-section"},nbt={class:"search-row"},rbt={class:"source-count"},ibt={class:"sources-section"},obt={key:0,class:"empty-state"},sbt={key:1,class:"button-container"},abt={class:"source-info"},lbt={class:"source-name"},ubt={key:0,class:"current-icon"},cbt={class:"dialog-footer"},dbt={class:"footer-left"},fbt={class:"footer-right"},hbt={__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=pe(""),a=pe({new_site:{}}),s=pe(null),l=pe(!1),c=x=>{const _=x.match(/\[(.*?)\]/);return _?_[1]:null},f={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=V(()=>{const x=n.sites.filter(A=>A.type===4).map(A=>c(A.name)).filter(A=>A!==null);return[...[...new Set(x)],"ds","hipy","cat"]}),p=x=>{x==="全部"?o.value="":f[x]?o.value=f[x]:o.value=`[${x}]`,l.value=!1},m=V(()=>{const x=o.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(x))}),g=V(()=>window.innerWidth<768?"95%":"700px"),b=x=>{a.value.new_site=x,r("change-rule",x)},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)},E=()=>{kn(()=>{if(s.value&&s.value.length>0){const x=s.value[0];x&&x.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return Dt(()=>n.visible,x=>{x&&n.currentSiteKey&&setTimeout(()=>{E()},100)}),Dt(m,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&m.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{E()},50)}),(x,_)=>{const A=Pe("a-button"),R=Pe("a-modal"),M=Pe("a-input");return H(),J(Ft,null,[O(R,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=D=>l.value=!1)},{default:de(()=>[I("div",ebt,[O(A,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=D=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[He(" 全部 ",-1)])]),_:1}),(H(!0),J(Ft,null,fn(h.value,(D,N)=>(H(),Ye(A,{key:N,type:"secondary",class:"tag-item",onClick:L=>p(D)},{default:de(()=>[He(Ne(D),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),O(R,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:de(()=>[I("div",cbt,[I("div",dbt,[O(A,{type:"outline",status:"danger",onClick:S},{default:de(()=>[O(ot(tf)),_[7]||(_[7]=He(" 清除缓存 ",-1))]),_:1})]),I("div",fbt,[O(A,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[He("取消",-1)])]),_:1}),O(A,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[He(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[I("div",tbt,[I("div",nbt,[O(M,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=D=>o.value=D),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[O(ot(_g))]),_:1},8,["modelValue"]),O(A,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=D=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[He(" TAG ",-1)])]),_:1})]),I("div",rbt," 共 "+Ne(m.value.length)+" 个可用数据源 ",1)]),I("div",ibt,[m.value.length===0?(H(),J("div",obt,[O(ot(iz)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(H(),J("div",sbt,[(H(!0),J(Ft,null,fn(m.value,(D,N)=>(H(),J("div",{key:D.key||N,ref_for:!0,ref:D.key===e.currentSiteKey?"currentSourceRef":null,class:se(["btn-item",{selected:a.value.new_site.key===D.key,"current-source":D.key===e.currentSiteKey}])},[O(A,{type:"primary",status:a.value.new_site.key===D.key?"success":"primary",size:"medium",onClick:L=>b(D),class:se(["source-button",{"current-source-button":D.key===e.currentSiteKey}])},{default:de(()=>[I("div",abt,[I("div",lbt,Ne(D.name),1),D.key===e.currentSiteKey?(H(),J("div",ubt,[O(ot(jh))])):Ae("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},pbt=vr(hbt,[["__scopeId","data-v-105ac4df"]]),vbt={class:"breadcrumb-container"},mbt={class:"header-left"},gbt={class:"navigation-title"},ybt={class:"header-center"},bbt={class:"header-right"},_bt={class:"push-modal-content"},Sbt={class:"push-description"},kbt={class:"push-hint"},wbt={class:"hint-item"},Cbt={class:"hint-item"},Ebt={__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=pe(""),o=pe(!1),a=pe(""),s=()=>{n("handleOpenForm")},l=()=>{n("refreshPage")},c=g=>{const b=typeof g=="string"?g:r.value;b&&typeof b=="string"&&b.trim()&&n("onSearch",b.trim())},f=()=>{o.value=!0,a.value=""},h=()=>{Ot.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){Ot.error("推送内容不能为空");return}const g=a.value.split(` `).map(S=>S.trim()).filter(S=>S);if(g.length===0){Ot.error("请输入有效的推送内容");return}const b=g[0];g.length>1&&Ot.info(`检测到多行输入,将使用第一行内容: ${b}`),n("handlePush",b),o.value=!1,a.value=""},m=()=>{o.value=!1,a.value=""};return(g,b)=>{const S=Pe("icon-apps"),k=Pe("a-button"),C=Pe("icon-refresh"),E=Pe("a-input-search"),x=Pe("icon-send"),_=Pe("icon-thunderbolt"),A=Pe("a-textarea"),R=Pe("icon-info-circle"),M=Pe("icon-bulb"),D=Pe("a-modal");return H(),J(Ft,null,[I("div",vbt,[I("div",mbt,[I("span",gbt,Ne(e.navigation_title),1),O(k,{type:"outline",status:"success",shape:"round",onClick:s},{icon:de(()=>[O(S)]),default:de(()=>[He(Ne(e.now_site_title),1)]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:l},{icon:de(()=>[O(C)]),default:de(()=>[...b[3]||(b[3]=[He("重载源",-1)])]),_:1})]),I("div",ybt,[O(E,{modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=N=>r.value=N),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),I("div",bbt,[O(k,{type:"outline",status:"success",shape:"round",onClick:f},{icon:de(()=>[O(x)]),default:de(()=>[...b[4]||(b[4]=[He("推送",-1)])]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:h},{icon:de(()=>[O(_)]),default:de(()=>[...b[5]||(b[5]=[He("全局动作",-1)])]),_:1}),ft(g.$slots,"default",{},void 0,!0)])]),O(D,{visible:o.value,"onUpdate:visible":b[2]||(b[2]=N=>o.value=N),title:"推送内容",width:600,onOk:p,onCancel:m,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:de(()=>[I("div",_bt,[I("div",Sbt,[O(x,{class:"push-icon"}),b[6]||(b[6]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),O(A,{modelValue:a.value,"onUpdate:modelValue":b[1]||(b[1]=N=>a.value=N),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",kbt,[I("div",wbt,[O(R,{class:"hint-icon"}),b[7]||(b[7]=I("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),I("div",Cbt,[O(M,{class:"hint-icon"}),b[8]||(b[8]=I("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"])],64)}}},xbt=vr(Ebt,[["__scopeId","data-v-20e05b46"]]);function Y0e(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tbt}=Object.prototype,{getPrototypeOf:sW}=Object,{iterator:FL,toStringTag:X0e}=Symbol,jL=(e=>t=>{const n=Tbt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Id=e=>(e=e.toLowerCase(),t=>jL(t)===e),VL=e=>t=>typeof t===e,{isArray:rb}=Array,A1=VL("undefined");function Kk(e){return e!==null&&!A1(e)&&e.constructor!==null&&!A1(e.constructor)&&_u(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Z0e=Id("ArrayBuffer");function Abt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Z0e(e.buffer),t}const Ibt=VL("string"),_u=VL("function"),J0e=VL("number"),qk=e=>e!==null&&typeof e=="object",Lbt=e=>e===!0||e===!1,W4=e=>{if(jL(e)!=="object")return!1;const t=sW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(X0e in e)&&!(FL in e)},Pbt=e=>{if(!qk(e)||Kk(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Rbt=Id("Date"),Mbt=Id("File"),Dbt=Id("Blob"),Obt=Id("FileList"),$bt=e=>qk(e)&&_u(e.pipe),Nbt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_u(e.append)&&((t=jL(e))==="formdata"||t==="object"&&_u(e.toString)&&e.toString()==="[object FormData]"))},Bbt=Id("URLSearchParams"),[Fbt,jbt,Vbt,Ubt]=["ReadableStream","Request","Response","Headers"].map(Id),zbt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yk(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),rb(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Hm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eye=e=>!A1(e)&&e!==Hm;function AV(){const{caseless:e,skipUndefined:t}=eye(this)&&this||{},n={},r=(o,a)=>{const s=e&&Q0e(n,a)||a;W4(n[s])&&W4(o)?n[s]=AV(n[s],o):W4(o)?n[s]=AV({},o):rb(o)?n[s]=o.slice():(!t||!A1(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(Yk(t,(o,a)=>{n&&_u(o)?e[a]=Y0e(o,n):e[a]=o},{allOwnKeys:r}),e),Wbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gbt=(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)},Kbt=(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&&sW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qbt=(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},Ybt=e=>{if(!e)return null;if(rb(e))return e;let t=e.length;if(!J0e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xbt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sW(Uint8Array)),Zbt=(e,t)=>{const r=(e&&e[FL]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Jbt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qbt=Id("HTMLFormElement"),e_t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),xse=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),t_t=Id("RegExp"),tye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yk(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},n_t=e=>{tye(e,(t,n)=>{if(_u(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_u(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+"'")})}})},r_t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return rb(e)?r(e):r(String(e).split(t)),n},i_t=()=>{},o_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function s_t(e){return!!(e&&_u(e.append)&&e[X0e]==="FormData"&&e[FL])}const a_t=e=>{const t=new Array(10),n=(r,o)=>{if(qk(r)){if(t.indexOf(r)>=0)return;if(Kk(r))return r;if(!("toJSON"in r)){t[o]=r;const a=rb(r)?[]:{};return Yk(r,(s,l)=>{const c=n(s,o+1);!A1(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},l_t=Id("AsyncFunction"),u_t=e=>e&&(qk(e)||_u(e))&&_u(e.then)&&_u(e.catch),nye=((e,t)=>e?setImmediate:t?((n,r)=>(Hm.addEventListener("message",({source:o,data:a})=>{o===Hm&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Hm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_u(Hm.postMessage)),c_t=typeof queueMicrotask<"u"?queueMicrotask.bind(Hm):typeof process<"u"&&process.nextTick||nye,d_t=e=>e!=null&&_u(e[FL]),Zt={isArray:rb,isArrayBuffer:Z0e,isBuffer:Kk,isFormData:Nbt,isArrayBufferView:Abt,isString:Ibt,isNumber:J0e,isBoolean:Lbt,isObject:qk,isPlainObject:W4,isEmptyObject:Pbt,isReadableStream:Fbt,isRequest:jbt,isResponse:Vbt,isHeaders:Ubt,isUndefined:A1,isDate:Rbt,isFile:Mbt,isBlob:Dbt,isRegExp:t_t,isFunction:_u,isStream:$bt,isURLSearchParams:Bbt,isTypedArray:Xbt,isFileList:Obt,forEach:Yk,merge:AV,extend:Hbt,trim:zbt,stripBOM:Wbt,inherits:Gbt,toFlatObject:Kbt,kindOf:jL,kindOfTest:Id,endsWith:qbt,toArray:Ybt,forEachEntry:Zbt,matchAll:Jbt,isHTMLForm:Qbt,hasOwnProperty:xse,hasOwnProp:xse,reduceDescriptors:tye,freezeMethods:n_t,toObjectSet:r_t,toCamelCase:e_t,noop:i_t,toFiniteNumber:o_t,findKey:Q0e,global:Hm,isContextDefined:eye,isSpecCompliantForm:s_t,toJSONObject:a_t,isAsyncFn:l_t,isThenable:u_t,setImmediate:nye,asap:c_t,isIterable:d_t};function zr(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)}Zt.inherits(zr,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:Zt.toJSONObject(this.config),code:this.code,status:this.status}}});const rye=zr.prototype,iye={};["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=>{iye[e]={value:e}});Object.defineProperties(zr,iye);Object.defineProperty(rye,"isAxiosError",{value:!0});zr.from=(e,t,n,r,o,a)=>{const s=Object.create(rye);Zt.toFlatObject(e,s,function(h){return h!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return zr.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 f_t=null;function IV(e){return Zt.isPlainObject(e)||Zt.isArray(e)}function oye(e){return Zt.endsWith(e,"[]")?e.slice(0,-2):e}function Tse(e,t,n){return e?e.concat(t).map(function(o,a){return o=oye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function h_t(e){return Zt.isArray(e)&&!e.some(IV)}const p_t=Zt.toFlatObject(Zt,{},null,function(t){return/^is[A-Z]/.test(t)});function UL(e,t,n){if(!Zt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Zt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!Zt.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Zt.isSpecCompliantForm(t);if(!Zt.isFunction(o))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(Zt.isDate(b))return b.toISOString();if(Zt.isBoolean(b))return b.toString();if(!c&&Zt.isBlob(b))throw new zr("Blob is not supported. Use a Buffer instead.");return Zt.isArrayBuffer(b)||Zt.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,S,k){let C=b;if(b&&!k&&typeof b=="object"){if(Zt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(Zt.isArray(b)&&h_t(b)||(Zt.isFileList(b)||Zt.endsWith(S,"[]"))&&(C=Zt.toArray(b)))return S=oye(S),C.forEach(function(x,_){!(Zt.isUndefined(x)||x===null)&&t.append(s===!0?Tse([S],_,a):s===null?S:S+"[]",f(x))}),!1}return IV(b)?!0:(t.append(Tse(k,S,a),f(b)),!1)}const p=[],m=Object.assign(p_t,{defaultVisitor:h,convertValue:f,isVisitable:IV});function g(b,S){if(!Zt.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(b),Zt.forEach(b,function(C,E){(!(Zt.isUndefined(C)||C===null)&&o.call(t,C,Zt.isString(E)?E.trim():E,S,m))===!0&&g(C,S?S.concat(E):[E])}),p.pop()}}if(!Zt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ase(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function aW(e,t){this._pairs=[],e&&UL(e,this,t)}const sye=aW.prototype;sye.append=function(t,n){this._pairs.push([t,n])};sye.toString=function(t){const n=t?function(r){return t.call(this,r,Ase)}:Ase;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function v_t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function aye(e,t,n){if(!t)return e;const r=n&&n.encode||v_t;Zt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Zt.isURLSearchParams(t)?t.toString():new aW(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ise{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){Zt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},m_t=typeof URLSearchParams<"u"?URLSearchParams:aW,g_t=typeof FormData<"u"?FormData:null,y_t=typeof Blob<"u"?Blob:null,b_t={isBrowser:!0,classes:{URLSearchParams:m_t,FormData:g_t,Blob:y_t},protocols:["http","https","file","blob","url","data"]},lW=typeof window<"u"&&typeof document<"u",LV=typeof navigator=="object"&&navigator||void 0,__t=lW&&(!LV||["ReactNative","NativeScript","NS"].indexOf(LV.product)<0),S_t=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",k_t=lW&&window.location.href||"http://localhost",w_t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lW,hasStandardBrowserEnv:__t,hasStandardBrowserWebWorkerEnv:S_t,navigator:LV,origin:k_t},Symbol.toStringTag,{value:"Module"})),dl={...w_t,...b_t};function C_t(e,t){return UL(e,new dl.classes.URLSearchParams,{visitor:function(n,r,o,a){return dl.isNode&&Zt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function E_t(e){return Zt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function x_t(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&Zt.isArray(o)?o.length:s,c?(Zt.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Zt.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Zt.isArray(o[s])&&(o[s]=x_t(o[s])),!l)}if(Zt.isFormData(e)&&Zt.isFunction(e.entries)){const n={};return Zt.forEachEntry(e,(r,o)=>{t(E_t(r),o,n,0)}),n}return null}function T_t(e,t,n){if(Zt.isString(e))try{return(t||JSON.parse)(e),Zt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xk={transitional:lye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Zt.isObject(t);if(a&&Zt.isHTMLForm(t)&&(t=new FormData(t)),Zt.isFormData(t))return o?JSON.stringify(uye(t)):t;if(Zt.isArrayBuffer(t)||Zt.isBuffer(t)||Zt.isStream(t)||Zt.isFile(t)||Zt.isBlob(t)||Zt.isReadableStream(t))return t;if(Zt.isArrayBufferView(t))return t.buffer;if(Zt.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 C_t(t,this.formSerializer).toString();if((l=Zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return UL(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),T_t(t)):t}],transformResponse:[function(t){const n=this.transitional||Xk.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Zt.isResponse(t)||Zt.isReadableStream(t))return t;if(t&&Zt.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"?zr.from(l,zr.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:dl.classes.FormData,Blob:dl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Zt.forEach(["delete","get","head","post","put","patch"],e=>{Xk.headers[e]={}});const A_t=Zt.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"]),I_t=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]&&A_t[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Lse=Symbol("internals");function rS(e){return e&&String(e).trim().toLowerCase()}function G4(e){return e===!1||e==null?e:Zt.isArray(e)?e.map(G4):String(e)}function L_t(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 P_t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function x9(e,t,n,r,o){if(Zt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Zt.isString(t)){if(Zt.isString(r))return t.indexOf(r)!==-1;if(Zt.isRegExp(r))return r.test(t)}}function R_t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function M_t(e,t){const n=Zt.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 Su=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,f){const h=rS(c);if(!h)throw new Error("header name must be a non-empty string");const p=Zt.findKey(o,h);(!p||o[p]===void 0||f===!0||f===void 0&&o[p]!==!1)&&(o[p||c]=G4(l))}const s=(l,c)=>Zt.forEach(l,(f,h)=>a(f,h,c));if(Zt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Zt.isString(t)&&(t=t.trim())&&!P_t(t))s(I_t(t),n);else if(Zt.isObject(t)&&Zt.isIterable(t)){let l={},c,f;for(const h of t){if(!Zt.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[f=h[0]]=(c=l[f])?Zt.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=rS(t),t){const r=Zt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return L_t(o);if(Zt.isFunction(n))return n.call(this,o,r);if(Zt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rS(t),t){const r=Zt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||x9(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=rS(s),s){const l=Zt.findKey(r,s);l&&(!n||x9(r,r[l],l,n))&&(delete r[l],o=!0)}}return Zt.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||x9(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Zt.forEach(this,(o,a)=>{const s=Zt.findKey(r,a);if(s){n[s]=G4(o),delete n[a];return}const l=t?R_t(a):String(a).trim();l!==a&&delete n[a],n[l]=G4(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Zt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Zt.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[Lse]=this[Lse]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=rS(s);r[l]||(M_t(o,s),r[l]=!0)}return Zt.isArray(t)?t.forEach(a):a(t),this}};Su.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Zt.reduceDescriptors(Su.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Zt.freezeMethods(Su);function T9(e,t){const n=this||Xk,r=t||n,o=Su.from(r.headers);let a=r.data;return Zt.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function cye(e){return!!(e&&e.__CANCEL__)}function ib(e,t,n){zr.call(this,e??"canceled",zr.ERR_CANCELED,t,n),this.name="CanceledError"}Zt.inherits(ib,zr,{__CANCEL__:!0});function dye(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new zr("Request failed with status code "+n.status,[zr.ERR_BAD_REQUEST,zr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function D_t(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O_t(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 f=Date.now(),h=r[a];s||(s=f),n[o]=c,r[o]=f;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),f-s{n=h,o=null,a&&(clearTimeout(a),a=null),e(...f)};return[(...f)=>{const h=Date.now(),p=h-n;p>=r?s(f,h):(o=f,a||(a=setTimeout(()=>{a=null,s(o)},r-p)))},()=>o&&s(o)]}const CI=(e,t,n=3)=>{let r=0;const o=O_t(50,250);return $_t(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-r,f=o(c),h=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&h?(l-s)/f:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},Pse=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Rse=e=>(...t)=>Zt.asap(()=>e(...t)),N_t=dl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dl.origin),dl.navigator&&/(msie|trident)/i.test(dl.navigator.userAgent)):()=>!0,B_t=dl.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Zt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Zt.isString(r)&&s.push("path="+r),Zt.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 F_t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function j_t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fye(e,t,n){let r=!F_t(t);return e&&(r||n==!1)?j_t(e,t):t}const Mse=e=>e instanceof Su?{...e}:e;function Ag(e,t){t=t||{};const n={};function r(f,h,p,m){return Zt.isPlainObject(f)&&Zt.isPlainObject(h)?Zt.merge.call({caseless:m},f,h):Zt.isPlainObject(h)?Zt.merge({},h):Zt.isArray(h)?h.slice():h}function o(f,h,p,m){if(Zt.isUndefined(h)){if(!Zt.isUndefined(f))return r(void 0,f,p,m)}else return r(f,h,p,m)}function a(f,h){if(!Zt.isUndefined(h))return r(void 0,h)}function s(f,h){if(Zt.isUndefined(h)){if(!Zt.isUndefined(f))return r(void 0,f)}else return r(void 0,h)}function l(f,h,p){if(p in t)return r(f,h);if(p in e)return r(void 0,f)}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:(f,h,p)=>o(Mse(f),Mse(h),p,!0)};return Zt.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,m=p(e[h],t[h],h);Zt.isUndefined(m)&&p!==l||(n[h]=m)}),n}const hye=e=>{const t=Ag({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Su.from(s),t.url=aye(fye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Zt.isFormData(n)){if(dl.hasStandardBrowserEnv||dl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Zt.isFunction(n.getHeaders)){const c=n.getHeaders(),f=["content-type","content-length"];Object.entries(c).forEach(([h,p])=>{f.includes(h.toLowerCase())&&s.set(h,p)})}}if(dl.hasStandardBrowserEnv&&(r&&Zt.isFunction(r)&&(r=r(t)),r||r!==!1&&N_t(t.url))){const c=o&&a&&B_t.read(a);c&&s.set(o,c)}return t},V_t=typeof XMLHttpRequest<"u",U_t=V_t&&function(e){return new Promise(function(n,r){const o=hye(e);let a=o.data;const s=Su.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=o,h,p,m,g,b;function S(){g&&g(),b&&b(),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 x=Su.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:x,config:e,request:k};dye(function(M){n(M),S()},function(M){r(M),S()},A),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 zr("Request aborted",zr.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const A=_&&_.message?_.message:"Network Error",R=new zr(A,zr.ERR_NETWORK,e,k);R.event=_||null,r(R),k=null},k.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||lye;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new zr(_,A.clarifyTimeoutError?zr.ETIMEDOUT:zr.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&Zt.forEach(s.toJSON(),function(_,A){k.setRequestHeader(A,_)}),Zt.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),f&&([m,b]=CI(f,!0),k.addEventListener("progress",m)),c&&k.upload&&([p,g]=CI(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=x=>{k&&(r(!x||x.type?new ib(null,e,k):x),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const E=D_t(o.url);if(E&&dl.protocols.indexOf(E)===-1){r(new zr("Unsupported protocol "+E+":",zr.ERR_BAD_REQUEST,e));return}k.send(a||null)})},z_t=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(f){if(!o){o=!0,l();const h=f instanceof Error?f:this.reason;r.abort(h instanceof zr?h:new ib(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new zr(`timeout ${t} of ms exceeded`,zr.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),e=null)};e.forEach(f=>f.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>Zt.asap(l),c}},H_t=function*(e,t){let n=e.byteLength;if(n{const o=W_t(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:h}=await o.next();if(f){l(),c.close();return}let p=h.byteLength;if(n){let m=a+=p;n(m)}c.enqueue(new Uint8Array(h))}catch(f){throw l(f),f}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Ose=64*1024,{isFunction:Gx}=Zt,pye=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(Zt.global),{ReadableStream:$se,TextEncoder:Nse}=Zt.global,Bse=(e,...t)=>{try{return!!e(...t)}catch{return!1}},K_t=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},pye,e),o=Gx(t),a=Gx(n),s=Gx(r);if(!o)return!1;const l=o&&Gx($se),c=o&&(typeof Nse=="function"?(b=>S=>b.encode(S))(new Nse):async b=>new Uint8Array(await new n(b).arrayBuffer())),f=a&&l&&Bse(()=>{let b=!1;const S=new n(dl.origin,{body:new $se,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!S}),h=s&&l&&Bse(()=>Zt.isReadableStream(new r("").body)),p={stream:h&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!p[b]&&(p[b]=(S,k)=>{let C=S&&S[b];if(C)return C.call(S);throw new zr(`Response type '${b}' is not supported`,zr.ERR_NOT_SUPPORT,k)})});const m=async b=>{if(b==null)return 0;if(Zt.isBlob(b))return b.size;if(Zt.isSpecCompliantForm(b))return(await new n(dl.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Zt.isArrayBufferView(b)||Zt.isArrayBuffer(b))return b.byteLength;if(Zt.isURLSearchParams(b)&&(b=b+""),Zt.isString(b))return(await c(b)).byteLength},g=async(b,S)=>{const k=Zt.toFiniteNumber(b.getContentLength());return k??m(S)};return async b=>{let{url:S,method:k,data:C,signal:E,cancelToken:x,timeout:_,onDownloadProgress:A,onUploadProgress:R,responseType:M,headers:D,withCredentials:N="same-origin",fetchOptions:L}=hye(b);M=M?(M+"").toLowerCase():"text";let B=z_t([E,x&&x.toAbortSignal()],_),F=null;const j=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let z;try{if(R&&f&&k!=="get"&&k!=="head"&&(z=await g(D,C))!==0){let K=new n(S,{method:"POST",body:C,duplex:"half"}),te;if(Zt.isFormData(C)&&(te=K.headers.get("content-type"))&&D.setContentType(te),K.body){const[oe,ue]=Pse(z,CI(Rse(R)));C=Dse(K.body,Ose,oe,ue)}}Zt.isString(N)||(N=N?"include":"omit");const q=a&&"credentials"in n.prototype,G={...L,signal:B,method:k.toUpperCase(),headers:D.normalize().toJSON(),body:C,duplex:"half",credentials:q?N:void 0};F=a&&new n(S,G);let ee=await(a?t(F,L):t(S,G));const Q=h&&(M==="stream"||M==="response");if(h&&(A||Q&&j)){const K={};["status","statusText","headers"].forEach(ae=>{K[ae]=ee[ae]});const te=Zt.toFiniteNumber(ee.headers.get("content-length")),[oe,ue]=A&&Pse(te,CI(Rse(A),!0))||[];ee=new r(Dse(ee.body,Ose,oe,()=>{ue&&ue(),j&&j()}),K)}M=M||"text";let X=await p[Zt.findKey(p,M)||"text"](ee,b);return!Q&&j&&j(),await new Promise((K,te)=>{dye(K,te,{data:X,headers:Su.from(ee.headers),status:ee.status,statusText:ee.statusText,config:b,request:F})})}catch(q){throw j&&j(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new zr("Network Error",zr.ERR_NETWORK,b,F),{cause:q.cause||q}):zr.from(q,q&&q.code,b,F)}}},q_t=new Map,vye=e=>{let t=Zt.merge.call({skipUndefined:!0},pye,e?e.env:null);const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,c,f,h=q_t;for(;l--;)c=a[l],f=h.get(c),f===void 0&&h.set(c,f=l?new Map:K_t(t)),h=f;return f};vye();const PV={http:f_t,xhr:U_t,fetch:{get:vye}};Zt.forEach(PV,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fse=e=>`- ${e}`,Y_t=e=>Zt.isFunction(e)||e===null||e===!1,mye={getAdapter:(e,t)=>{e=Zt.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : `+s.map(Fse).join(` `):" "+Fse(s[0]):"as no adapter specified";throw new zr("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:PV};function A9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ib(null,e)}function jse(e){return A9(e),e.headers=Su.from(e.headers),e.data=T9.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mye.getAdapter(e.adapter||Xk.adapter,e)(e).then(function(r){return A9(e),r.data=T9.call(e,e.transformResponse,r),r.headers=Su.from(r.headers),r},function(r){return cye(r)||(A9(e),r&&r.response&&(r.response.data=T9.call(e,e.transformResponse,r.response),r.response.headers=Su.from(r.response.headers))),Promise.reject(r)})}const gye="1.12.0",zL={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zL[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Vse={};zL.transitional=function(t,n,r){function o(a,s){return"[Axios v"+gye+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new zr(o(s," has been removed"+(n?" in "+n:"")),zr.ERR_DEPRECATED);return n&&!Vse[s]&&(Vse[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}};zL.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function X_t(e,t,n){if(typeof e!="object")throw new zr("options must be an object",zr.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 zr("option "+a+" must be "+c,zr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new zr("Unknown option "+a,zr.ERR_BAD_OPTION)}}const K4={assertOptions:X_t,validators:zL},Ud=K4.validators;let ug=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ise,response:new Ise}}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=Ag(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&K4.assertOptions(r,{silentJSONParsing:Ud.transitional(Ud.boolean),forcedJSONParsing:Ud.transitional(Ud.boolean),clarifyTimeoutError:Ud.transitional(Ud.boolean)},!1),o!=null&&(Zt.isFunction(o)?n.paramsSerializer={serialize:o}:K4.assertOptions(o,{encode:Ud.function,serialize:Ud.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),K4.assertOptions(n,{baseUrl:Ud.spelling("baseURL"),withXsrfToken:Ud.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Zt.merge(a.common,a[n.method]);a&&Zt.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=Su.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 f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let h,p=0,m;if(!c){const b=[jse.bind(this),void 0];for(b.unshift(...l),b.push(...f),m=b.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 ib(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 yye(function(o){t=o}),cancel:t}}};function J_t(e){return function(n){return e.apply(null,n)}}function Q_t(e){return Zt.isObject(e)&&e.isAxiosError===!0}const RV={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(RV).forEach(([e,t])=>{RV[t]=e});function bye(e){const t=new ug(e),n=Y0e(ug.prototype.request,t);return Zt.extend(n,ug.prototype,t,{allOwnKeys:!0}),Zt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return bye(Ag(e,o))},n}const lo=bye(Xk);lo.Axios=ug;lo.CanceledError=ib;lo.CancelToken=Z_t;lo.isCancel=cye;lo.VERSION=gye;lo.toFormData=UL;lo.AxiosError=zr;lo.Cancel=lo.CanceledError;lo.all=function(t){return Promise.all(t)};lo.spread=J_t;lo.isAxiosError=Q_t;lo.mergeConfig=Ag;lo.AxiosHeaders=Su;lo.formToJSON=e=>uye(Zt.isHTMLForm(e)?new FormData(e):e);lo.getAdapter=mye.getAdapter;lo.HttpStatusCode=RV;lo.default=lo;const{Axios:eSt,AxiosError:tSt,CanceledError:nSt,isCancel:rSt,CancelToken:iSt,VERSION:oSt,all:sSt,Cancel:aSt,isAxiosError:lSt,spread:uSt,toFormData:cSt,AxiosHeaders:dSt,HttpStatusCode:fSt,formToJSON:hSt,getAdapter:pSt,mergeConfig:vSt}=lo,mSt=Object.freeze(Object.defineProperty({__proto__:null,Axios:eSt,AxiosError:tSt,AxiosHeaders:dSt,Cancel:aSt,CancelToken:iSt,CanceledError:nSt,HttpStatusCode:fSt,VERSION:oSt,all:sSt,default:lo,formToJSON:hSt,getAdapter:pSt,isAxiosError:lSt,isCancel:rSt,mergeConfig:vSt,spread:uSt,toFormData:cSt},Symbol.toStringTag,{value:"Module"})),I9={BASE_URL:"http://localhost:5707",TIMEOUT:3e4,HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},uW={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},HL={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},gSt={SUCCESS:200},_ye={DEFAULT_PAGE:1},cW=lo.create({baseURL:I9.BASE_URL,timeout:I9.TIMEOUT,headers:I9.HEADERS});cW.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)));cW.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!==gSt.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 WL=async(e,t={})=>{try{return await cW({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},Pv=(e,t={})=>WL(e,{method:"GET",params:t}),Sye=(e,t={})=>WL(e,{method:"POST",data:t}),ySt=(e,t={})=>WL(e,{method:"PUT",data:t}),bSt=(e,t={})=>WL(e,{method:"DELETE",params:t}),Wg=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},yv=e=>{const t=encodeURIComponent(e);return`${uW.MODULE}/${t}`},ob=async(e,t={})=>{try{return(await lo.get(e,{params:t,timeout:3e4,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},_St=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:o}=t,a={filter:n},s=Wg(r);return s&&(a.extend=s),o?ob(o,a):Pv(yv(e),a)},SSt=async(e,t)=>{const{t:n,pg:r=_ye.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:HL.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=Wg(a);return c&&(l.extend=c),s?ob(s,l):Pv(yv(e),l)},kSt=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:HL.DETAIL,ids:n},s=Wg(r);return s&&(a.extend=s),o?ob(o,a):Pv(yv(e),a)},kye=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:HL.PLAY,play:n};r&&(s.flag=r);const l=Wg(o);return l&&(s.extend=l),a?ob(a,s):Pv(yv(e),s)},wSt=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await kye(e,t);console.log("T4播放解析响应:",n);const r={success:!0,data:n,playType:"direct",url:"",needParse:!1,needSniff:!1,message:""};return n&&typeof n=="object"?n.parse===0?(r.playType="direct",r.url=n.url||n.play_url||"",r.needParse=!1,r.needSniff=!1,r.message="直链播放"):n.parse===1?(r.playType="sniff",r.url=n.url||n.play_url||"",r.needSniff=!0,r.message="需要嗅探才能播放,尽情期待"):n.jx===1?(r.playType="parse",r.url=n.url||n.play_url||"",r.needParse=!0,r.message="需要解析才能播放,尽情期待"):(r.url=n.url||n.play_url||n,r.message="直链播放"):typeof n=="string"&&(r.url=n,r.message="直链播放"),r}catch(n){return console.error("T4播放解析失败:",n),{success:!1,error:n.message||"播放解析失败",playType:"error",url:"",needParse:!1,needSniff:!1,message:"播放解析失败: "+(n.message||"未知错误")}}},CSt=async(e,t)=>{const{wd:n,pg:r=_ye.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=Wg(o);return l&&(s.extend=l),a?ob(a,s):Pv(yv(e),s)},wye=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:HL.ACTION,action:n,...a},l=Wg(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 f=await lo.get(o,{timeout:3e4,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",f.data),f.data}else{const f=await lo.post(o,s,{timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}});return console.log("API响应 (POST):",f.data),f.data}console.log("使用代理方式调用:",yv(e),s);const c=await Sye(yv(e),s);return console.log("代理响应:",c),c},ESt=async(e,t,n)=>{const r={refresh:"1"},o=Wg(t);return o&&(r.extend=o),n?ob(n,r):Pv(yv(e),r)},xSt=e=>`${uW.PARSE}/${e}`,TSt=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}),Pv(xSt(e),s)},MV=e=>{try{return btoa(unescape(encodeURIComponent(e)))}catch(t){return console.error("Base64编码失败:",t),e}},ASt=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return MV(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Tp=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),ISt=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},LSt={NORMAL:"normal"},PSt=()=>({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:LSt.NORMAL}),RSt=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),MSt=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:""});class DSt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!Tp(t))throw new Error("无效的模块名称");const{apiUrl:r,...o}=n,a=`home_${t}_${JSON.stringify(n)}`,s=this.getFromCache(a);if(s)return s;try{const l={...o};r&&(l.apiUrl=r);const c=await _St(t,l),f={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return this.setCache(a,f),f}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!Tp(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)}`,f=this.getFromCache(c);if(f)return f;try{const h={t:r,pg:o};Object.keys(a).length>0&&(h.ext=ASt(a)),l&&(h.extend=l),s&&(h.apiUrl=s);const p=await SSt(t,h),m={videos:(p.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(p,o),filters:p.filters||{},total:p.total||0};return this.setCache(c,m),m}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,o=!1,a=null){if(!Tp(t))throw new Error("无效的模块名称");if(!ISt(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),a&&(l.extend=a);const c=await kSt(t,l);if(!c.list||c.list.length===0)throw new Error("视频不存在");const f=this.formatVideoInfo(c.list[0]);return f.vod_play_url&&(f.playList=this.parsePlayUrls(f.vod_play_url,f.vod_play_from)),this.setCache(s,f),f}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!Tp(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};a&&(l.extend=a),s&&(l.apiUrl=s);const c=await CSt(t,l);return{videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c,o),keyword:r.trim(),total:c.total||0,rawResponse:c}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,o=null){if(!Tp(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r),o&&(a.extend=o);const s=await kye(t,a);return{url:s.url||n,headers:s.headers||{},parse:s.parse||!1,jx:s.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 TSt(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(!Tp(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:s};o&&(l.flag=o),a&&(l.apiUrl=a);const c=await wSt(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!Tp(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const o={action:n.trim(),value:r.value||"",extend:r.extend,apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:o});const a=await wye(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(!Tp(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=await ESt(t,n,r);return{success:!0,message:o.msg||"刷新成功",lastUpdate:o.data?.lastUpdate||new Date().toISOString()}}catch(o){throw console.error("刷新模块数据失败:",o),o}}formatVideoInfo(t){const n=PSt();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=RSt();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=nf.vod_id==="no_data"||f.vod_name==="no_data"||typeof f=="string"&&f.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=`${uW.PROXY}/${e}`;return t?`${n}/${t}`:n},OSt=async(e,t="",n={})=>{const r=GL(e,t);return Pv(r,n)},$St=async(e,t="",n={})=>{const r=GL(e,t);return Sye(r,n)},NSt=async(e,t="",n={})=>{const r=GL(e,t);return ySt(r,n)},BSt=async(e,t="",n={})=>{const r=GL(e,t);return bSt(r,n)},FSt=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return OSt(e,t,o);case"POST":return $St(e,t,a);case"PUT":return NSt(e,t,a);case"DELETE":return BSt(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};class jSt{constructor(){this.configUrl=null,this.configData=null,this.lastFetchTime=null,this.cacheExpiry=300*1e3,this.liveConfigUrl=null,this.loadConfigFromStorage()}async setConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("配置地址格式不正确,请输入有效的HTTP/HTTPS地址");if(!await this.validateConfigUrl(t))throw new Error("配置地址无法访问或数据格式不正确");return this.configUrl=t,this.saveConfigToStorage(),await this.autoSetLiveConfigUrl(),console.log("配置地址设置成功:",t),!0}catch(n){throw console.error("设置配置地址失败:",n),n}}async setLiveConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("直播配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("直播配置地址格式不正确,请输入有效的HTTP/HTTPS地址");return this.liveConfigUrl=t,this.saveConfigToStorage(),console.log("直播配置地址设置成功:",t),!0}catch(n){throw console.error("设置直播配置地址失败:",n),n}}getLiveConfigUrl(){return this.liveConfigUrl}async autoSetLiveConfigUrl(){try{if(this.liveConfigUrl)return!1;const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("自动设置直播配置地址成功:",n.url),!0)}catch(t){return console.error("自动设置直播配置地址失败:",t),!1}}async resetLiveConfigUrl(){try{const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接,无法重置"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url,无法重置"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("直播配置地址重置成功:",n.url),!0)}catch(t){return console.error("重置直播配置地址失败:",t),!1}}getConfigUrl(){return this.configUrl}async validateConfigUrl(t){try{const n=await lo.get(t,{timeout:1e4,headers:{Accept:"application/json"}});if(!n.data)return!1;const r=n.data;if(!r.sites||!Array.isArray(r.sites))return!1;if(r.sites.length>0){const o=r.sites[0];if(!o.key||!o.name||!o.api)return!1}return!0}catch(n){return console.error("验证配置地址失败:",n),!1}}async getConfigData(t=!1){try{if(!this.configUrl)throw new Error("未设置配置地址");const n=Date.now(),r=this.configData&&this.lastFetchTime&&n-this.lastFetchTime{try{this.addSite(r)?n.success++:(n.failed++,n.errors.push(`第${o+1}个站点添加失败`))}catch(a){n.failed++,n.errors.push(`第${o+1}个站点添加失败: ${a.message}`)}}),console.log("批量导入站点完成:",n),n}exportSites(){return this.getAllSites()}async testSiteConnection(t){const n=this.sites.get(t);if(!n)throw new Error("站点不存在");try{const r=await FSt(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=MSt();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{al.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await al.getSites(t);if(n&&n.length>0){const r=Array.from(this.sites.values()).filter(o=>o.isLocal);return this.sites.clear(),r.forEach(o=>{this.sites.set(o.key,o)}),n.forEach(o=>{const a=this.formatSiteInfo(o);a.isFromConfig=!0,this.sites.set(a.key,a)}),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 al.getConfigStatus()}async setConfigUrl(t){try{const n=await al.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return al.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}}const Ia=new VSt,USt={key:0,class:"filter-section"},zSt={class:"filter-content"},HSt={class:"filter-header-with-reset"},WSt={class:"filter-group-row"},GSt={class:"filter-group-title"},KSt={class:"filter-options-container"},qSt={class:"filter-options"},YSt={__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=V(()=>n.selectedFilters&&Object.keys(n.selectedFilters).length>0),a=(c,f)=>n.selectedFilters?.[c]===f,s=(c,f,h)=>{r("toggle-filter",{filterKey:c,filterValue:f,filterName:h})},l=()=>{r("reset-filters")};return(c,f)=>{const h=Pe("a-button"),p=Pe("a-tag");return e.filters?(H(),J("div",USt,[O(Es,{name:"collapse"},{default:de(()=>[hi(I("div",zSt,[I("div",HSt,[o.value?(H(),Ye(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[O(ot(tf))]),_:1})):Ae("",!0)]),(H(!0),J(Ft,null,fn(e.filters,m=>(H(),J("div",{key:m.key,class:"filter-group"},[I("div",WSt,[I("div",GSt,Ne(m.name),1),I("div",KSt,[I("div",qSt,[(H(!0),J(Ft,null,fn(m.value,g=>(H(),Ye(p,{key:g.v,color:a(m.key,g.v)?"green":"",checkable:!0,checked:a(m.key,g.v),onCheck:b=>s(m.key,g.v,g.n),class:"filter-option-tag"},{default:de(()=>[He(Ne(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[es,e.visible]])]),_:1})])):Ae("",!0)}}},XSt=vr(YSt,[["__scopeId","data-v-90bc92fe"]]),ZSt={class:"category-nav-container"},JSt=["onClick"],QSt={class:"category-name"},e2t={__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:()=>({})}},emits:["tab-change","open-category-modal","toggle-filter","reset-filters"],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=pe(n.activeKey||o()),s=pe(null),l=pe({});let c=null;Dt(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const k=n.activeKey||o();a.value!==k&&(a.value=k,n.activeKey||f(k))},{immediate:!0}),Dt(a,(k,C)=>{C&&l.value[C]&&(l.value[C]=!1)});const f=k=>{a.value=k,r("tab-change",k)},h=k=>{p(k)&&(l.value[k]=!l.value[k])},p=k=>{const C=n.filters[k];return C&&Object.keys(C).length>0},m=k=>n.filters[k]||null,g=k=>{r("toggle-filter",k)},b=()=>{r("reset-filters")},S=()=>{r("open-category-modal")};return ln(()=>{const k=s.value;if(!k)return;const C=k.querySelector(".arco-tabs-nav-tab-list");C&&(c=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(C.scrollLeft+=E.deltaY,E.preventDefault())},C.addEventListener("wheel",c,{passive:!1}))}),No(()=>{const C=s.value?.querySelector?.(".arco-tabs-nav-tab-list");C&&c&&C.removeEventListener("wheel",c)}),(k,C)=>{const E=Pe("a-tab-pane"),x=Pe("a-tabs");return H(),J("div",ZSt,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[O(x,{"active-key":a.value,"onUpdate:activeKey":C[0]||(C[0]=_=>a.value=_),class:"category-tabs",type:"line",size:"large",position:"top",editable:!1,onChange:f},{default:de(()=>[e.hasRecommendVideos?(H(),Ye(E,{key:"recommendTuijian404"},{title:de(()=>[...C[1]||(C[1]=[I("span",null,"推荐",-1)])]),_:1})):Ae("",!0),(H(!0),J(Ft,null,fn(e.classList?.class||[],_=>(H(),Ye(E,{key:_.type_id},{title:de(()=>[I("div",{class:"category-tab-title",onClick:$o(A=>_.type_id===a.value&&p(_.type_id)?h(_.type_id):f(_.type_id),["stop"])},[I("span",QSt,Ne(_.type_name),1),_.type_id===a.value&&p(_.type_id)?(H(),Ye(ot($z),{key:0,class:se(["filter-icon",{"filter-icon-active":l.value[_.type_id]}])},null,8,["class"])):Ae("",!0)],8,JSt)]),_:2},1024))),128))]),_:1},8,["active-key"]),I("div",{class:"category-manage",onClick:S},[O(ot(Bpe))])],512),m(a.value)&&l.value[a.value]?(H(),Ye(XSt,{key:0,filters:m(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:b},null,8,["filters","selectedFilters"])):Ae("",!0)])}}},t2t=vr(e2t,[["__scopeId","data-v-191fd1a8"]]),n2t="modulepreload",r2t=function(e){return"/apps/drplayer/"+e},Use={},Wh=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};var s=f;document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=f(n.map(h=>{if(h=r2t(h),h in Use)return;Use[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":n2t,p||(g.as="script"),g.crossOrigin="",g.href=h,c&&g.setAttribute("nonce",c),document.head.appendChild(g),p)return new Promise((b,S)=>{g.addEventListener("load",b),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)})},i2t={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:""}},emits:["update:visible","close","open","opened","closed"],setup(e,{emit:t}){const n=pe(!1),r=pe(!1),o=()=>{r.value=window.innerWidth<=768},a=V(()=>{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=V(()=>{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"))},f=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return Dt(()=>e.visible,p=>{p?(t("open"),o(),kn(()=>{t("opened")}),document.addEventListener("keydown",f),window.addEventListener("resize",o),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",f),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",f),window.removeEventListener("resize",o),document.body.style.overflow=""}}},beforeUnmount(){this.cleanup()}},o2t={key:1,class:"action-dialog-header"},s2t={class:"action-dialog-title"},a2t={key:2,class:"action-dialog-footer"};function l2t(e,t,n,r,o,a){return H(),Ye(Ng,{to:"body"},[O(Es,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(H(),J("div",{key:0,class:se(["action-mask modal-backdrop",{closing:r.isClosing}]),style:je({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(Es,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(H(),J("div",{key:0,class:se(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:je(r.dialogStyle),onClick:t[1]||(t[1]=$o(()=>{},["stop"]))},[t[4]||(t[4]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(H(),J("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Ae("",!0),n.title||e.$slots.header?(H(),J("div",o2t,[ft(e.$slots,"header",{},()=>[I("h3",s2t,Ne(n.title),1)],!0)])):Ae("",!0),I("div",{class:"action-dialog-content",style:je(r.contentStyle)},[ft(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(H(),J("div",a2t,[ft(e.$slots,"footer",{},void 0,!0)])):Ae("",!0)],6)):Ae("",!0)]),_:3})],6)):Ae("",!0)]),_:3})])}const xf=vr(i2t,[["render",l2t],["__scopeId","data-v-b7e5717e"]]),vi={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help"},n1={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},Xr={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},tc=e=>e==null?Xr.OK_CANCEL:Object.values(Xr).includes(e)?e:Xr.CUSTOM,r1=(e,t,n=null)=>({type:e,message:t,details:n}),dW=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw r1(n1.PARSE_ERROR,"无法解析Action配置",t)}},Cye=e=>{if(!e||typeof e!="object")throw r1(n1.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw r1(n1.VALIDATION_ERROR,"actionId是必需的");if(!Object.values(vi).includes(e.type))throw r1(n1.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},sv=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),[]}},Eye=(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)}`},xye=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},u2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>K6t),void 0)),c2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>NOt),void 0)),d2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>O$t),void 0)),f2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>MNt),void 0)),h2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>CBt),void 0)),p2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>ZBt),void 0)),v2t=Ev(()=>Wh(()=>Promise.resolve().then(()=>t9t),void 0)),m2t={name:"ActionRenderer",components:{ActionDialog:xf,InputAction:u2t,MultiInputAction:c2t,MenuAction:d2t,SelectAction:f2t,MsgBoxAction:h2t,WebViewAction:p2t,HelpAction:v2t},props:{actionData:{type:[String,Object],default:null},visible:{type:Boolean,default:!0},autoShow:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:Object,default:()=>({})},apiUrl:{type:String,default:""}},emits:["action","close","error","success","special-action"],setup(e,{emit:t}){const n=pe(null),r=pe(null),o=pe(!1),a=pe(e.visible),s={[vi.INPUT]:"InputAction",[vi.EDIT]:"InputAction",[vi.MULTI_INPUT]:"MultiInputAction",[vi.MULTI_INPUT_X]:"MultiInputAction",[vi.MENU]:"MenuAction",[vi.SELECT]:"SelectAction",[vi.MSGBOX]:"MsgBoxAction",[vi.WEBVIEW]:"WebViewAction",[vi.HELP]:"HelpAction"},l=V(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const A=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:A,parsedConfig:n.value}),A}),c=A=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",A),!A){n.value=null;return}const R=dW(A);console.log("ActionRenderer parseConfig 解析后的配置:",R),Cye(R),f(R),n.value=R,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(R){console.error("解析Action配置失败:",R),r.value=R,n.value=null}},f=A=>{const{actionId:R}=A},h=async A=>{const{actionId:R}=A;switch(R){case"__self_search__":xi("执行源内搜索","info"),t("special-action","self-search",A),g();break;case"__detail__":xi("跳转到详情页","info"),t("special-action","detail",A),g();break;case"__ktvplayer__":xi("启动KTV播放","info"),t("special-action","ktv-player",A),g();break;case"__refresh_list__":xi("刷新列表","info"),t("special-action","refresh-list",A),g();break;case"__copy__":if(A.content)try{await navigator.clipboard.writeText(A.content),xi("已复制到剪贴板","success")}catch{xi("复制失败","error")}g();break;case"__keep__":A.msg&&xi(A.msg,"info"),A.reset&&(n.value=null);break;default:xi(`未知的专项动作: ${R}`,"warning"),g();break}},p=async A=>{if(n.value)try{o.value=!0;const R={action:n.value.actionId,value:typeof A=="object"?JSON.stringify(A):A};e.extend&&(R.extend=e.extend),e.apiUrl&&(R.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:R,apiUrl:e.apiUrl});let M=null;if(e.module?(M=await E(e.module,R),console.log("T4接口返回结果:",M)):(M=await t("action",n.value.actionId,A),console.log("父组件处理结果:",M)),M){if(typeof M=="string")try{M=JSON.parse(M)}catch{xi(M,"success"),t("success",A),g();return}if(typeof M=="object"){if(console.log("处理API返回的对象结果:",M),M.error)throw r1(n1.NETWORK_ERROR,M.error);if(M.toast&&xi(M.toast,"success"),(M.message||M.msg)&&xi(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 D={...M.data};if(D.action||D.actionId){if(console.log("在data字段中检测到action:",D),D.action){c(D.action);return}if(D.actionId){await h(D);return}}}xi(M.message||M.msg||"操作成功","success")}else throw r1(n1.NETWORK_ERROR,M.message||M.msg||`操作失败,错误码: ${M.code}`)}}t("success",A),g()}catch(R){console.error("执行Action失败:",R),r.value=R,xi(R.message||"操作失败","error")}finally{o.value=!1}},m=()=>{g()},g=()=>{a.value=!1,n.value=null,t("close")},b=async(A,R)=>{if(typeof A=="object"&&A.type){console.log("ActionRenderer接收到新的动作配置:",A),a.value=!1,await new Promise(M=>setTimeout(M,100)),c(A);return}await p({action:A,value:R})},S=()=>{r.value=null};Dt(()=>e.actionData,A=>{c(A)},{immediate:!0}),Dt(()=>e.visible,A=>{a.value=A});const k=A=>{A&&c(A),a.value=!0},C=()=>{a.value=!1},E=async(A,R)=>{try{return o.value=!0,await t("action",A,R)}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:b,handleToast:(A,R="success")=>{xi(A,R)},handleReset:()=>{console.log("InputAction触发重置事件")},clearError:S,show:k,hide:C,executeAction:E}}},g2t={class:"action-renderer"},y2t={class:"action-error"},b2t={key:0};function _2t(e,t,n,r,o,a){const s=Pe("ActionDialog");return H(),J("div",g2t,[r.parsedConfig?(H(),Ye($a(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},null,40,["config","visible","module","extend","api-url","onSubmit","onCancel","onClose","onAction","onToast","onReset"])):Ae("",!0),r.error?(H(),Ye(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:de(()=>[I("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:de(()=>[I("div",y2t,[I("p",null,[I("strong",null,Ne(r.error.type),1)]),I("p",null,Ne(r.error.message),1),r.error.details?(H(),J("pre",b2t,Ne(JSON.stringify(r.error.details,null,2)),1)):Ae("",!0)])]),_:1},8,["visible","onClose"])):Ae("",!0),r.isLoading?(H(),Ye(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:de(()=>[...t[1]||(t[1]=[I("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Ae("",!0)])}const Zk=vr(m2t,[["render",_2t],["__scopeId","data-v-86a86414"]]),S2t=["onClick"],k2t={class:"video_list_item_img"},w2t=["innerHTML"],C2t={class:"video_list_item_title"},E2t={class:"title-text"},x2t={key:0,class:"loading-container"},T2t={key:1,class:"no-more-data"},A2t={key:2,class:"empty-state"},I2t={__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,default:()=>({})},apiUrl:{type:String,default:""}},emits:["load-more","scroll-bottom","refresh-list"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=xu(),s=iL(),l=pe(null),c=pe(null),f=pe(0),h=pe(null),p=pe(!1),m=pe(null),g=async R=>{if(R&&R.vod_id){if(R.vod_tag==="action")try{const D=JSON.parse(R.vod_id);console.log("VideoGrid解析action配置:",D),m.value=D,p.value=!0;return}catch{console.log("VideoGrid vod_id不是JSON格式,调用T4 action接口:",R.vod_id),await b(R.vod_id);return}s.setLastClicked(R.vod_id,R.vod_name);const M={name:R.vod_name,pic:R.vod_pic,year:R.vod_year,area:R.vod_area,type:R.vod_type,remarks:R.vod_remarks,content:R.vod_content,actor:R.vod_actor,director:R.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:R.vod_pic};a.push({name:"VideoDetail",params:{id:R.vod_id},query:M})}},b=async R=>{try{const M=await df.executeT4Action(r.module||"default",R,{apiUrl:r.apiUrl,extend:r.extend.ext});console.log("result:",M),M&&M.action?(m.value=M.action,p.value=!0):M?xi("执行源内搜索","success"):Ot.error({content:`无法获取动作配置: ${R}`,duration:3e3,closable:!0})}catch(M){console.error("T4 action执行失败:",M),Ot.error({content:`动作执行失败: ${M.message}`,duration:3e3,closable:!0})}},S=()=>{kn(()=>{setTimeout(()=>{const R=l.value;if(!R)return;const M=R.closest(".content-area")||R.parentElement,D=R.querySelector(".stats-footer"),N=r.showStats&&D?D.offsetHeight:0,L=document.querySelector(".category-nav-container"),B=L?L.offsetHeight:0;let F=M?M.offsetHeight:0;F<=0&&(F=Math.max(window.innerHeight-120,500)),console.log(`CategoryNavigation高度: ${B}px, 内容区域高度: ${F}px`);const j=r.videos?r.videos.length:0,z=R.offsetWidth||Math.max(window.innerWidth-240,800),G=Math.min(Math.floor(z/200),8),ee=328,Q=j>0?Math.ceil(j/Math.max(G,1)):0,X=Q*ee+16;let K=4;if(j===0)K=Math.min(F*.4,300),console.log(`无视频数据,使用保守高度减值: ${K}px`);else if(X{const M=R?.target||R?.srcElement,D=M?.closest?M.closest(".arco-scrollbar-container"):M;if(!D)return;const N=D.scrollHeight-D.clientHeight,L=D.scrollTop;N-L<50&&(o("scroll-bottom"),o("load-more"))},C=()=>{kn(()=>{setTimeout(()=>{document.querySelectorAll(".video_list_item_title .title-text").forEach(M=>{const N=M.parentElement.offsetWidth-16;M.scrollWidth>N?M.setAttribute("data-overflow","true"):M.removeAttribute("data-overflow")})},100)})};ln(()=>{C(),S(),window.addEventListener("resize",S),setTimeout(()=>{const M=document.querySelector(".category-nav-container");if(M){const D=new MutationObserver(()=>{setTimeout(()=>{S()},100)});D.observe(M,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]}),l.value._filterObserver=D}},200)}),No(()=>{window.removeEventListener("resize",S),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),Dt(()=>[r.videos,r.showStats],()=>{S(),C()});const E=R=>{R&&c.value&&requestAnimationFrame(()=>{const M=c.value?.$el?.querySelector(".arco-scrollbar-container");M&&(M.scrollTo({top:R,behavior:"smooth"}),console.log("VideoGrid恢复滚动位置:",R))})},x=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,_=()=>{p.value=!1,m.value=null},A=(R,M)=>{switch(console.log("VideoGrid处理专项动作:",R,M),R){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),o("refresh-list");break;default:console.log("未知的专项动作:",R,M);break}};return t({checkTextOverflow:C,restoreScrollPosition:E,getCurrentScrollPosition:x}),(R,M)=>{const D=Pe("a-image"),N=Pe("a-grid-item"),L=Pe("a-grid"),B=Pe("a-spin"),F=Pe("a-scrollbar");return H(),J("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(F,{onScroll:k,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:je("height:"+f.value+"px; overflow: auto;")},{default:de(()=>[O(L,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),J(Ft,null,fn(e.videos,j=>(H(),Ye(N,{key:j.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:z=>g(j)},[I("div",k2t,[O(D,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:j.vod_pic},null,8,["src"]),j.vod_remarks?(H(),J("div",{key:0,class:"video_remarks_overlay",innerHTML:j.vod_remarks},null,8,w2t)):Ae("",!0)]),I("div",C2t,[I("span",E2t,Ne(j.vod_name),1)])],8,S2t)]),_:2},1024))),128))]),_:1}),e.loading?(H(),J("div",x2t,[O(B),M[0]||(M[0]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),J("div",T2t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(H(),J("div",A2t," 暂无视频数据 ")):Ae("",!0),M[1]||(M[1]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),p.value?(H(),Ye(Zk,{key:0,ref_key:"actionRendererRef",ref:h,"action-data":m.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:_,onSpecialAction:A},null,8,["action-data","module","extend","api-url"])):Ae("",!0)],512)}}},DV=vr(I2t,[["__scopeId","data-v-27689289"]]),L2t={class:"category-modal-content"},P2t=["onClick"],R2t={__name:"CategoryModal",props:{visible:{type:Boolean,default:!1},classList:{type:Object,required:!0},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,required:!0}},emits:["update:visible","select-category"],setup(e,{emit:t}){const n=t,r=()=>{n("update:visible",!1)},o=a=>{n("select-category",a),r()};return(a,s)=>{const l=Pe("a-modal");return H(),Ye(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[I("div",L2t,[e.hasRecommendVideos?(H(),J("div",{key:0,class:se(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Ae("",!0),(H(!0),J(Ft,null,fn(e.classList.class,c=>(H(),J("div",{key:c.type_id,class:se(["category-item",{active:e.activeKey===c.type_id}]),onClick:f=>o(c.type_id)},Ne(c.type_name),11,P2t))),128))])]),_:1},8,["visible"])}}},M2t=vr(R2t,[["__scopeId","data-v-14f43b3d"]]),D2t={class:"video-list-container"},O2t={class:"content-area"},$2t={key:0,class:"tab-content"},N2t={key:1,class:"tab-content"},B2t={__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,default:()=>({})},apiUrl:{type:String,default:""}},emits:["activeKeyChange"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=Bk(),s=pe(""),l=Wt({}),c=Wt({}),f=Wt({}),h=Wt({}),p=Wt({}),m=pe(!1),g=pe(null),b=V(()=>r.recommendVideos&&r.recommendVideos.length>0),S=()=>r.returnToActiveKey?r.returnToActiveKey:b.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",k=(z,q,G)=>{p[s.value]||(p[s.value]={}),p[s.value][z]===q?(delete p[s.value][z],Object.keys(p[s.value]).length===0&&delete p[s.value]):p[s.value][z]=q,E(s.value)},C=z=>{delete p[z],E(z)},E=z=>{delete l[z],delete c[z],f[z]=!1,s.value===z&&_(z,!0)},x=z=>{const q=r.classList?.class?.find(K=>K.type_id===z)?.type_name||"",G=c[z]?.page||1,ee=l[z]?.length||0,Q=c[z]?.total;let X=`${q}:当前第 ${G} 页,已加载 ${ee} 条`;return Q&&(X+=` / 共 ${Q} 条`),X},_=async(z,q=!1)=>{if(console.log(z,"选中分类id"),!l.hasOwnProperty(z)||q)try{const G=await Ia.getCurrentSite();let ee,Q;if(z==="recommendTuijian404")ee=r.recommendVideos||[],Q={page:1,hasNext:!1};else{const X=p[z]||{},K=await df.getCategoryVideos(G.key,{typeId:z,page:1,filters:X,extend:G.ext,apiUrl:G.api});ee=K.videos||[],Q=K.pagination||{page:1,hasNext:!1}}l[z]=ee,c[z]=Q,f[z]=!1,z===s.value&&a.updateStats(x(z))}catch(G){console.error("获取视频列表失败:",G),l[z]=[],c[z]={page:1,hasNext:!1},f[z]=!1}},A=z=>!z||z.length===0?!0:z.some(q=>q.vod_id==="no_data"),R=(z,q)=>{if(!q||q.length===0)return!0;if(!z||z.length===0)return!1;const G=z.slice(-q.length).map(Q=>Q.vod_id),ee=q.map(Q=>Q.vod_id);return JSON.stringify(G)===JSON.stringify(ee)},M=async z=>{if(!(f[z]||!c[z]?.hasNext)){f[z]=!0;try{const q=await Ia.getCurrentSite(),G=c[z].page+1;let ee=[],Q={page:G,hasNext:!1};if(z==="recommendTuijian404")return;{const X=p[z]||{},K=await df.getCategoryVideos(q.key,{typeId:z,page:G,filters:X,extend:q.ext,apiUrl:q.api});ee=K.videos||[],Q=K.pagination||{page:G,hasNext:!1}}if(A(ee)||R(l[z],ee)){console.log("检测到无效数据或重复数据,停止翻页"),c[z]={...c[z],hasNext:!1};return}l[z]=[...l[z],...ee],c[z]=Q,z===s.value&&a.updateStats(x(z))}catch(q){console.error("加载更多数据失败:",q),c[z]={...c[z],hasNext:!1}}finally{f[z]=!1}}},D=z=>{s.value=z,_(z),o("activeKeyChange",z)},N=z=>{const{filterKey:q,filterValue:G,filterName:ee}=z;k(q,G)},L=()=>{C(s.value)},B=()=>{m.value=!0},F=z=>{s.value=z,_(z),o("activeKeyChange",z),setTimeout(()=>{a.updateStats(x(z))},100)};Dt(()=>r.recommendVideos,z=>{z&&z.length>0?(l.recommendTuijian404=z,c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1,console.log("推荐数据已更新:",z.length,"条")):(l.recommendTuijian404=[],c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1);const q=S();s.value!==q&&(s.value=q,_(q),o("activeKeyChange",q))},{immediate:!0}),Dt(()=>r.classList,(z,q)=>{z!==q&&(Object.keys(p).forEach(ee=>{delete p[ee]}),Object.keys(h).forEach(ee=>{delete h[ee]}));const G=S();s.value!==G&&(s.value=G,_(G),o("activeKeyChange",G))},{immediate:!0}),ln(()=>{s.value=S(),r.returnToActiveKey||_(s.value),o("activeKeyChange",s.value)}),t({getCurrentState:()=>({activeKey:s.value,currentPage:c[s.value]?.page||1,videos:l[s.value]||[],hasMore:c[s.value]?.hasNext||!1,hasData:l[s.value]&&l[s.value].length>0,scrollPosition:g.value?g.value.getCurrentScrollPosition():0}),restoreState:z=>{z.activeKey&&z.activeKey!==s.value&&(s.value=z.activeKey,o("activeKeyChange",z.activeKey),(!l[z.activeKey]||l[z.activeKey].length===0)&&_(z.activeKey))},restoreFullState:z=>{z.activeKey&&(s.value=z.activeKey,z.videos&&z.videos.length>0&&(l[z.activeKey]=[...z.videos],c[z.activeKey]={page:z.currentPage||1,hasNext:z.hasMore||!1},console.log(`恢复分类 ${z.activeKey} 的完整状态:`,{videos:z.videos.length,page:z.currentPage,hasMore:z.hasMore,scrollPosition:z.scrollPosition})),o("activeKeyChange",z.activeKey),setTimeout(()=>{a.updateStats(x(z.activeKey))},100),z.scrollPosition&&g.value&&setTimeout(()=>{g.value.restoreScrollPosition(z.scrollPosition)},200))},refreshCurrentCategory:()=>{s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,_(s.value))}});const j=()=>{console.log("VideoList收到刷新列表请求"),s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,_(s.value))};return(z,q)=>(H(),J("div",D2t,[O(t2t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:b.value,activeKey:s.value,filters:r.classList?.filters||{},selectedFilters:p,onTabChange:D,onOpenCategoryModal:B,onToggleFilter:N,onResetFilters:L},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters"]),I("div",O2t,[s.value==="recommendTuijian404"?(H(),J("div",$2t,[O(DV,{videos:l[s.value]||[],loading:f[s.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${l[s.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:j},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"])])):(H(),J("div",N2t,[O(DV,{ref_key:"videoGridRef",ref:g,videos:l[s.value]||[],loading:f[s.value]||!1,hasMore:c[s.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:q[0]||(q[0]=G=>M(s.value)),onScrollBottom:q[1]||(q[1]=G=>M(s.value)),onRefreshList:j},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"])]))]),O(M2t,{visible:m.value,"onUpdate:visible":q[2]||(q[2]=G=>m.value=G),classList:e.classList,hasRecommendVideos:b.value,activeKey:s.value,onSelectCategory:F},null,8,["visible","classList","hasRecommendVideos","activeKey"])]))}},F2t=vr(B2t,[["__scopeId","data-v-cda7abca"]]),j2t={class:"search-results-container"},V2t={class:"search-header"},U2t={class:"search-info"},z2t={key:0,class:"search-keyword"},H2t={key:1,class:"search-count"},W2t={class:"search-actions"},G2t={key:0,class:"error-container"},K2t={class:"error-text"},q2t={key:1,class:"loading-container"},Y2t=["onClick"],X2t={class:"video_list_item_img"},Z2t=["innerHTML"],J2t={class:"video_list_item_title"},Q2t={class:"title-text"},ekt={key:3,class:"empty-state"},tkt={key:4,class:"loading-container"},nkt={key:5,class:"no-more-data"},rkt={__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=xu(),r=Bk(),o=BL(),a=iL(),s=e,l=t,c=pe(null),f=pe(null),h=pe(0),p=pe(null),m=pe(!1),g=pe(null),b=M=>{const D=M?.target||M?.srcElement,N=D?.closest?D.closest(".arco-scrollbar-container"):D;if(!N)return;const L=N.scrollHeight-N.clientHeight,B=N.scrollTop;L-B<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{kn(()=>{setTimeout(()=>{const M=c.value;if(!M)return;const D=M.closest(".content-area")||M.parentElement;let N=D?D.offsetHeight:0;N<=0&&(N=Math.max(window.innerHeight-120,500));const L=document.querySelector(".search-header"),B=L?L.offsetHeight:60,F=s.videos?s.videos.length:0,j=M.offsetWidth||Math.max(window.innerWidth-240,800),q=Math.min(Math.floor(j/200),8),G=328,ee=F>0?Math.ceil(F/Math.max(q,1)):0,Q=ee*G+80;let X=4;const K=N-B;if(F===0)X=Math.min(K*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${X}px`);else if(Q{if(!s.keyword)return"";const M=s.videos.length,D=s.currentPage,N=s.hasMore;if(M===0)return`搜索"${s.keyword}":无结果`;let L=`搜索"${s.keyword}":第${D}页,共${M}条`;return N?L+=",可继续加载":L+=",已全部加载",L},C=()=>{const M=k();M&&r.updateStats(M)},E=()=>{kn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(D=>{const L=D.parentElement.offsetWidth-16;D.scrollWidth>L?D.setAttribute("data-overflow","true"):D.removeAttribute("data-overflow")})},100)})},x=M=>{if(M&&M.vod_id){if(M.vod_tag==="action")try{const D=JSON.parse(M.vod_id);console.log("SearchResults解析action配置:",D),g.value=D,m.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",M.vod_id),Ot.info({content:M.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(M.vod_id,M.vod_name),s.keyword){const N=f.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,N),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:N})}n.push({name:"VideoDetail",params:{id:M.vod_id},query:{name:M.vod_name,pic:M.vod_pic,year:M.vod_year,area:M.vod_area,type:M.vod_type,remarks:M.vod_remarks,content:M.vod_content,actor:M.vod_actor,director:M.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:M.vod_pic}})}},_=()=>{r.clearStats(),l("exit-search")};ln(()=>{E(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&kn(()=>{requestAnimationFrame(()=>{const M=f.value?.$el?.querySelector(".arco-scrollbar-container");M&&(M.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),No(()=>{window.removeEventListener("resize",S)}),Dt(()=>s.videos,()=>{S(),E(),C()}),Dt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{C()});const A=()=>{m.value=!1,g.value=null},R=(M,D)=>{switch(console.log("处理专项动作:",M,D),M){case"self-search":console.log("执行源内搜索:",D);break;case"detail":console.log("跳转到详情页:",D);break;case"ktv-player":console.log("启动KTV播放:",D);break;case"refresh-list":console.log("刷新列表:",D),l("refresh-list");break;default:console.log("未知的专项动作:",M,D);break}};return(M,D)=>{const N=Pe("icon-close"),L=Pe("a-button"),B=Pe("icon-exclamation-circle"),F=Pe("a-spin"),j=Pe("a-image"),z=Pe("a-grid-item"),q=Pe("a-grid"),G=Pe("icon-search"),ee=Pe("a-scrollbar");return H(),J("div",j2t,[I("div",V2t,[I("div",U2t,[e.keyword?(H(),J("span",z2t," 搜索结果:"+Ne(e.keyword),1)):Ae("",!0),e.videos.length>0?(H(),J("span",H2t," 共找到 "+Ne(e.videos.length)+" 个结果 ",1)):Ae("",!0)]),I("div",W2t,[O(L,{type:"outline",size:"small",onClick:_},{icon:de(()=>[O(N)]),default:de(()=>[D[0]||(D[0]=He(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(ee,{ref_key:"scrollbarRef",ref:f,onScroll:b,class:"search-scroll-container",style:je("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(H(),J("div",G2t,[O(B,{class:"error-icon"}),I("p",K2t,Ne(e.error),1)])):e.loading&&e.videos.length===0?(H(),J("div",q2t,[O(F,{size:"large"}),D[1]||(D[1]=I("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(H(),Ye(q,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),J(Ft,null,fn(e.videos,Q=>(H(),Ye(z,{key:Q.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:X=>x(Q)},[I("div",X2t,[O(j,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:Q.vod_pic},null,8,["src"]),Q.vod_remarks?(H(),J("div",{key:0,class:"video_remarks_overlay",innerHTML:Q.vod_remarks},null,8,Z2t)):Ae("",!0)]),I("div",J2t,[I("span",Q2t,Ne(Q.vod_name),1)])],8,Y2t)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(H(),J("div",ekt,[O(G,{class:"empty-icon"}),D[2]||(D[2]=I("p",{class:"empty-text"},"没有找到相关内容",-1)),D[3]||(D[3]=I("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):Ae("",!0),e.loading&&e.videos.length>0?(H(),J("div",tkt,[O(F),D[4]||(D[4]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),J("div",nkt," 没有更多数据了 ")):Ae("",!0),D[5]||(D[5]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),m.value?(H(),Ye(Zk,{key:0,ref_key:"actionRendererRef",ref:p,"action-data":g.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:A,onSpecialAction:R},null,8,["action-data","module","extend","api-url"])):Ae("",!0)])}}},Tye=vr(rkt,[["__scopeId","data-v-21ef81de"]]),Jk=zg("site",()=>{const e=pe(Ia.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Ia.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Ia.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}}),ikt={class:"current-time"},okt={class:"main-container"},skt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=Jk();Bk();const r=BL(),o=_3(),a=xu(),s=G=>{const ee=G.getFullYear(),Q=String(G.getMonth()+1).padStart(2,"0"),X=String(G.getDate()).padStart(2,"0"),K=String(G.getHours()).padStart(2,"0"),te=String(G.getMinutes()).padStart(2,"0"),oe=String(G.getSeconds()).padStart(2,"0");return`${ee}-${Q}-${X} ${K}:${te}:${oe}`},l=pe(s(new Date)),c=pe(""),f=pe(null),h=Wt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Wt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),m=pe(null),g=async(G=!1)=>{try{if(Ia.getConfigStatus().hasConfigUrl)try{await Ia.loadSitesFromConfig(G),console.log("从配置地址加载站点数据成功")}catch(Q){console.error("从配置地址加载站点数据失败:",Q)}h.sites=Ia.getAllSites(),h.sites.length===0&&console.log("暂无站点配置,请在设置中配置数据源地址")}catch(ee){console.error("获取站点配置失败:",ee)}},b=()=>{const G=Ia.getCurrentSite();G?(h.now_site=G,h.now_site_title=G.name,n(G)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,Ia.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},S=()=>{if(!h.now_site||!h.now_site.key){const G=Ia.getCurrentSite();if(G)h.now_site=G,h.now_site_title=G.name;else if(h.sites.length>0){const ee=h.sites.find(Q=>Q.type===4)||h.sites[0];h.now_site=ee,h.now_site_title=ee.name,Ia.setCurrentSite(ee.key)}}else if(!h.sites.some(ee=>ee.key===h.now_site.key)&&h.sites.length>0){const ee=h.sites.find(Q=>Q.type===4)||h.sites[0];h.now_site=ee,h.now_site_title=ee.name,Ia.setCurrentSite(ee.key)}h.new_site=h.now_site},k=()=>{m.value=setInterval(()=>{l.value=s(new Date)},1e3)},C=()=>{window.location.reload()},E=()=>{},x=()=>{},_=()=>{},A=G=>h.new_site=G,R=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,g(!0),S()},M=G=>{h.now_site=G,n(G),h.now_site_title=G.name,h.visible=!1,D(G)},D=async G=>{if(!G||!G.key){console.log("站点信息无效");return}console.log(G,"确认换源"),h.classList={class:[],filters:{}},h.recommendVideos=[];try{const ee=await df.getRecommendVideos(G.key,{extend:G.ext,apiUrl:G.api});h.classList={class:ee.categories,filters:ee.filters},h.recommendVideos=ee.videos||[],console.log("分类列表:",h.classList),console.log("推荐视频:",h.recommendVideos)}catch(ee){console.error("获取分类列表失败:",ee),h.classList={class:[],filters:{}},h.recommendVideos=[]}},N=async G=>{if(!G||!G.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const ee=G.trim();p.searchKeyword=ee,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 Q=await df.searchVideo(h.now_site.key,{keyword:ee,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=Q.videos||[],p.totalPages=Q.pagination?.totalPages||1,p.hasMore=Q.pagination?.hasNext||!1}catch(Q){console.error("搜索失败:",Q),p.searchError=Q.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},L=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const G=p.currentPage+1;try{const ee=await df.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:G,extend:h.now_site.ext,apiUrl:h.now_site.api}),Q=ee.videos||[],X=new Set(p.searchResults.map(te=>te.vod_id)),K=Q.filter(te=>!X.has(te.vod_id)&&te.vod_id!=="no_data"&&te.vod_name!=="no_data");K.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...K],p.hasMore=ee.pagination?.hasNext!==!1),p.currentPage=G,p.totalPages=ee.pagination?.totalPages||p.totalPages}catch(ee){console.error("搜索加载更多失败:",ee),p.searchError=ee.message||"加载失败,请重试"}finally{p.searchLoading=!1}},B=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},F=G=>{c.value=G},j=G=>{if(G&&G.vod_id){let ee="false";p.isSearching?(console.log("从搜索结果点击视频,状态保存由SearchResults组件处理"),ee="true"):c.value&&(r.saveVideoState(c.value,1,[],!0,!1,window.scrollY),console.log("从分类列表点击视频,保存分类状态")),a.push({name:"VideoDetail",params:{id:G.vod_id},query:{name:G.vod_name,pic:G.vod_pic,year:G.vod_year,area:G.vod_area,type:G.vod_type,remarks:G.vod_remarks,content:G.vod_content,actor:G.vod_actor,director:G.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:ee,sourcePic:G.vod_pic}})}},z=()=>{h.visible=!0;const G=h.sites.filter(ee=>ee.type===4);h.form_title=`请选择数据源(${G.length})`,S()},q=async G=>{if(!G||!G.trim()){Ot.error("推送内容不能为空");return}const ee=h.sites.find(Q=>Q.key==="push_agent");if(!ee){Ot.error("没有找到push_agent服务,请检查源配置");return}try{console.log("推送功能,使用临时站源:",{siteName:ee.name,siteKey:ee.key,siteApi:ee.api}),a.push({name:"VideoDetail",params:{id:G.trim()},query:{name:`推送内容-${G.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:ee.name,tempSiteApi:ee.api,tempSiteKey:ee.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),Ot.success(`正在推送内容: ${G.trim()}`)}catch(Q){console.error("推送失败:",Q),Ot.error("推送失败,请重试")}};return ln(async()=>{g(),b();const G=o.query._restoreSearch,ee=o.query._returnToActiveKey;if(G==="true"){const te=r.getPageState("search");if(te&&te.keyword&&!r.isStateExpired("search")){console.log("恢复搜索状态:",te),p.isSearching=!0,p.searchKeyword=te.keyword,p.searchResults=te.videos||[],p.currentPage=te.currentPage||1,p.hasMore=te.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=te.scrollPosition||0;const oe={...o.query};delete oe._restoreSearch,a.replace({query:oe}),await D(h.now_site),k(),console.log("搜索状态恢复完成,滚动位置由SearchResults组件处理");return}}const Q=r.getPageState("video"),X=r.isStateExpired("video");let K=!1;if(ee){c.value=ee,K=!0,console.log("从详情页返回,恢复到分类:",ee);const te={...o.query};delete te._returnToActiveKey,a.replace({query:te})}else Q&&Q.activeKey&&!X&&(c.value=Q.activeKey,K=!0,console.log("恢复保存的分类状态:",Q.activeKey));await D(h.now_site),k(),K&&setTimeout(()=>{f.value&&f.value.restoreFullState({activeKey:c.value,currentPage:Q?.currentPage||1,videos:Q?.videos||[],hasMore:Q?.hasMore||!0,scrollPosition:Q?.scrollPosition||0})},100)}),No(()=>{if(m.value&&clearInterval(m.value),c.value&&f.value){const G=f.value.getCurrentState();r.saveVideoState(c.value,G.currentPage,G.videos,G.hasMore,!1,G.scrollPosition),console.log("保存Video页面状态:",{activeKey:c.value,currentPage:G.currentPage,videosCount:G.videos.length,hasMore:G.hasMore,hasData:G.hasData,scrollPosition:G.scrollPosition})}}),(G,ee)=>{const Q=Pe("a-layout-content");return H(),J(Ft,null,[O(xbt,{onHandleOpenForm:z,onRefreshPage:C,onMinimize:E,onMaximize:x,onCloseWindow:_,onOnSearch:N,onHandlePush:q,now_site_title:h.now_site_title},{default:de(()=>[I("div",ikt,[I("span",null,Ne(l.value),1)])]),_:1},8,["now_site_title"]),I("div",okt,[O(Q,{class:"content"},{default:de(()=>[p.isSearching?(H(),Ye(Tye,{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:ot(o).name,params:ot(o).params,query:ot(o).query},module:h.now_site?.key||ot(t)?.key,extend:h.now_site,"api-url":h.now_site?.api,onLoadMore:L,onExitSearch:B,onVideoClick:j,onRefreshList:G.handleRefreshList},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url","onRefreshList"])):(H(),Ye(F2t,{key:1,ref_key:"videoListRef",ref:f,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:ot(o).name,params:ot(o).params,query:{...ot(o).query,activeKey:c.value}},returnToActiveKey:ot(o).query._returnToActiveKey,module:h.now_site?.key||ot(t)?.key,extend:h.now_site,"api-url":h.now_site?.api,onActiveKeyChange:F},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url"]))]),_:1})]),O(pbt,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":ee[0]||(ee[0]=X=>h.visible=X),onConfirmClear:R,onConfirmChange:M,onChangeRule:A},null,8,["visible","title","sites","currentSiteKey"])],64)}}},akt=vr(skt,[["__scopeId","data-v-8463691a"]]),lkt=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 b=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",b),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:b,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),f=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!f.ok)throw new Error(`嗅探请求失败: ${f.status} ${f.statusText}`);const h=await f.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}},Aye=()=>{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}},zse=()=>{const e=Aye();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},ukt=async(e,t={})=>{const n=Aye();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await lkt(e,r)},KL=zg("favorite",()=>{const e=pe([]),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 b=e.value.findIndex(S=>S.id===m&&S.api_info.api_url===g);return b!==-1?(e.value.splice(b,1),n(),!0):!1},a=(m,g)=>e.value.some(b=>b.id===m&&b.api_info.api_url===g),s=(m,g)=>e.value.find(b=>b.id===m&&b.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"}),b=URL.createObjectURL(g),S=document.createElement("a");S.href=b,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(b)},f=m=>new Promise((g,b)=>{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 E=0;C.favorites.forEach(x=>{e.value.some(A=>A.id===x.id&&A.api_info.api_url===x.api_info.api_url)||(e.value.push({...x,updated_at:new Date().toISOString()}),E++)}),n(),g(E)}catch(C){b(C)}},S.onerror=()=>{b(new Error("文件读取失败"))},S.readAsText(m)}),h=V(()=>e.value.length),p=V(()=>{const m={};return e.value.forEach(g=>{const b=g.api_info?.site_name||"";let S="影视";b.includes("[书]")?S="小说":b.includes("[画]")?S="漫画":b.includes("[密]")?S="密":b.includes("[听]")?S="音频":b.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:f,loadFavorites:t,saveFavorites:n}}),fW=zg("history",()=>{const e=pe([]),t=V(()=>e.value.length),n=V(()=>[...e.value].sort((g,b)=>new Date(b.updated_at)-new Date(g.updated_at))),r=V(()=>{const g={};return e.value.forEach(b=>{const S=b.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(b)}),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,b,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(x=>x.id===g.id&&x.api_info.api_url===g.api_info.api_url),E={...g,current_route_name:b.name,current_route_index:b.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],...E},console.log("更新后的历史记录api_info:",e.value[C].api_info)):(E.created_at=k,e.value.push(E),console.log("新添加的历史记录api_info:",E.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 b=e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url);return b!==-1?(e.value.splice(b,1),a(),console.log("删除历史记录成功:",g.name),!0):(console.warn("未找到要删除的历史记录:",g),!1)},c=()=>{e.value=[],a()},f=()=>{const g=JSON.stringify(e.value,null,2),b=new Blob([g],{type:"application/json"}),S=document.createElement("a");S.href=URL.createObjectURL(b),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 b=JSON.parse(g);if(!Array.isArray(b))throw new Error("导入的数据格式不正确");const S=b.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(E=>E.id===k.id&&E.api_info.api_url===k.api_info.api_url);if(C===-1)e.value.push(k);else{const E=e.value[C],x=new Date(k.updated_at),_=new Date(E.updated_at);x>_&&(e.value[C]=k)}}),a(),S.length}catch(b){throw new Error(`导入失败: ${b.message}`)}},p=(g,b)=>e.value.find(S=>S.id===g&&S.api_info.api_url===b);return{histories:e,historyCount:t,sortedHistories:n,historiesByType:r,loadHistories:o,saveHistories:a,addToHistory:s,removeFromHistory:l,clearHistories:c,exportHistories:f,importHistories:h,getHistoryByVideo:p,getWatchProgress:(g,b)=>{const S=p(g,b);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}}}),Pn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},ckt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=dkt},dkt=Number.MAX_SAFE_INTEGER||9007199254740991;let Qn=(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})({}),Vt=(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})({}),Ce=(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 ci={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Wn={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class dy{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 fkt{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 dy(t),this.fast_=new dy(n),this.defaultTTFB_=o,this.ttfb_=new dy(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new dy(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new dy(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new dy(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 hkt(e,t,n){return(t=vkt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Vp}function Wse(e,t,n){return t[e]?t[e].bind(t):gkt(e,n)}const $V=OV();function ykt(e,t,n){const r=OV();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Wse(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return OV()}o.forEach(a=>{$V[a]=Wse(a,e)})}else ao($V,r);return r}const no=$V;function bv(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function bkt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function Iye(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 nc(e,t=!1){if(typeof TextDecoder<"u"){const f=new TextDecoder("utf-8").decode(e);if(t){const h=f.indexOf("\0");return h!==-1?f.substring(0,h):f}return f.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 Rl(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(!Pn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return Ns(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 kkt extends Pye{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 Rye(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||Rye(n,t)}}function wkt(e,t){const n=Rye(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Kse=Math.pow(2,32)-1,Ckt=[].push,Mye={video:1,audio:2,id3:3,text:4};function ea(e){return String.fromCharCode.apply(null,e)}function Dye(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function xr(e,t){const n=Oye(e,t);return n<0?4294967296+n:n}function qse(e,t){let n=xr(e,t);return n*=Math.pow(2,32),n+=xr(e,t+4),n}function Oye(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Ekt(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 ii(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=ii(e.subarray(o+8,l),t.slice(1));c.length&&Ckt.apply(n,c)}o=l}return n}function xkt(e){const t=[],n=e[0];let r=8;const o=xr(e,r);r+=4;let a=0,s=0;n===0?(a=xr(e,r),s=xr(e,r+4),r+=8):(a=qse(e,r),s=qse(e,r+8),r+=16),r+=2;let l=e.length+s;const c=Dye(e,r);r+=2;for(let f=0;f>>31===1)return no.warn("SIDX has hierarchical references (not supported)"),null;const b=xr(e,h);h+=4,t.push({referenceSize:m,subsegmentDuration:b,info:{duration:b/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 $ye(e){const t=[],n=ii(e,["moov","trak"]);for(let o=0;o{const a=xr(o,4),s=t[a];s&&(s.default={duration:xr(o,12),flags:xr(o,20)})}),t}function Tkt(e){const t=e.subarray(8),n=t.subarray(86),r=ea(t.subarray(4,8));let o=r,a;const s=r==="enca"||r==="encv";if(s){const f=ii(t,[r])[0].subarray(r==="enca"?28:78);ii(f,["sinf"]).forEach(p=>{const m=ii(p,["schm"])[0];if(m){const g=ea(m.subarray(4,8));if(g==="cbcs"||g==="cenc"){const b=ii(p,["frma"])[0];b&&(o=ea(b))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=ii(n,["avcC"])[0];c&&c.length>3&&(o+="."+qx(c[1])+qx(c[2])+qx(c[3]),a=Kx(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=ii(t,[r])[0],f=ii(c.subarray(28),["esds"])[0];if(f&&f.length>7){let h=4;if(f[h++]!==3)break;h=R9(f,h),h+=2;const p=f[h++];if(p&128&&(h+=2),p&64&&(h+=f[h++]),f[h++]!==4)break;h=R9(f,h);const m=f[h++];if(m===64)o+="."+qx(m);else break;if(h+=12,f[h++]!==5)break;h=R9(f,h);const g=f[h++];let b=(g&248)>>3;b===31&&(b+=1+((g&7)<<3)+((f[h]&224)>>5)),o+="."+b}break}case"hvc1":case"hev1":{const c=ii(n,["hvcC"])[0];if(c&&c.length>12){const f=c[1],h=["","A","B","C"][f>>6],p=f&31,m=xr(c,2),g=(f&32)>>5?"H":"L",b=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+Akt(m).toString(16).toUpperCase(),o+="."+g+b;let k="";for(let C=S.length;C--;){const E=S[C];(E||k)&&(k="."+E.toString(16).toUpperCase()+k)}o+=k}a=Kx(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=Kx(o,n)||o;break}case"vp09":{const c=ii(n,["vpcC"])[0];if(c&&c.length>6){const f=c[4],h=c[5],p=c[6]>>4&15;o+="."+Kd(f)+"."+Kd(h)+"."+Kd(p)}break}case"av01":{const c=ii(n,["av1C"])[0];if(c&&c.length>2){const f=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",m=(c[2]&64)>>6,g=(c[2]&32)>>5,b=f===2&&m?g?12:10:m?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,E=c[2]&3;o+="."+f+"."+Kd(h)+p+"."+Kd(b)+"."+S+"."+k+C+E+"."+Kd(1)+"."+Kd(1)+"."+Kd(1)+"."+0,a=Kx("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function Kx(e,t){const n=ii(t,["dvvC"]),r=n.length?n[0]:ii(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+Kd(o)+"."+Kd(a)}}function Akt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function R9(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(no.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${Rl(a)} -> ${Rl(n)}`),r.set(n,8))})}function Lkt(e){const t=[];return Nye(e,n=>t.push(n.subarray(8,24))),t}function Nye(e,t){ii(e,["moov","trak"]).forEach(r=>{const o=ii(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=ii(a,["enca"]);const l=s.length>0;l||(s=ii(a,["encv"])),s.forEach(c=>{const f=l?c.subarray(28):c.subarray(78);ii(f,["sinf"]).forEach(p=>{const m=Bye(p);m&&t(m,l)})})})}function Bye(e){const t=ii(e,["schm"])[0];if(t){const n=ea(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=ii(e,["schi","tenc"])[0];if(r)return r}}}function Pkt(e,t,n){const r={},o=ii(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=ii(e,["sidx"]);for(let c=0;cp+m.info.duration||0,0);s=Math.max(s,h+f.earliestPresentationTime/f.timescale)}}s&&Pn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function Rkt(e){const t={valid:null,remainder:null},n=ii(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 Uc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Yse(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return ii(r,["moof"]).map(c=>{const f=c.byteOffset-8;ii(c,["traf"]).map(p=>{const m=ii(p,["tfdt"]).map(g=>{const b=g[0];let S=xr(g,4);return b===1&&(S*=Math.pow(2,32),S+=xr(g,8)),S/o})[0];return m!==void 0&&(e=m),ii(p,["tfhd"]).map(g=>{const b=xr(g,4),S=xr(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,E=(S&8)!==0;let x=0;const _=(S&16)!==0;let A=0;const R=(S&32)!==0;let M=8;b===a&&(k&&(M+=8),C&&(M+=4),E&&(x=xr(g,M),M+=4),_&&(A=xr(g,M),M+=4),R&&(M+=4),t.type==="video"&&(s=qL(t.codec)),ii(p,["trun"]).map(D=>{const N=D[0],L=xr(D,0)&16777215,B=(L&1)!==0;let F=0;const j=(L&4)!==0,z=(L&256)!==0;let q=0;const G=(L&512)!==0;let ee=0;const Q=(L&1024)!==0,X=(L&2048)!==0;let K=0;const te=xr(D,4);let oe=8;B&&(F=xr(D,oe),oe+=4),j&&(oe+=4);let ue=F+f;for(let ae=0;ae>1&63;return n===39||n===40}else return(t&31)===6}function vW(e,t,n,r){const o=Fye(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 f=o.length-a;let h=a;if(lf){no.error(`Malformed SEI payload. ${l} is too small, only ${f} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const m=Dye(o,h);if(h+=2,m===49){const g=xr(o,h);if(h+=4,g===1195456820){const b=o[h++];if(b===3){const S=o[h++],k=31&S,C=64&S,E=C?2+k*3:0,x=new Uint8Array(E);if(C){x[0]=S;for(let _=1;_16){const p=[];for(let b=0;b<16;b++){const S=o[h++].toString(16);p.push(S.length==1?"0"+S:S),(b===3||b===5||b===7||b===9)&&p.push("-")}const m=l-16,g=new Uint8Array(m);for(let b=0;b>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),Okt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function Nkt(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=Rl(new Uint8Array(s,n+12,16));let c=null,f=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),I1={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 mW(e,t){const n=I1[t];return!!n&&!!n[e.slice(0,4)]}function ik(e,t,n=!0){return!e.split(",").some(r=>!gW(r,t,n))}function gW(e,t,n=!0){var r;const o=bv(n);return(r=o?.isTypeSupported(ok(e,t)))!=null?r:!1}function ok(e,t){return`${t}/mp4;codecs=${e}`}function Xse(e){if(e){const t=e.substring(0,4);return I1.video[t]}return 2}function EI(e){const t=jye();return e.split(",").reduce((n,r)=>{const a=t&&qL(r)?9:I1.video[r];return a?(a*2+n)/(n?3:2):(I1.audio[r]+n)/(n?2:1)},0)}const M9={};function Fkt(e,t=!0){if(M9[e])return M9[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let o=0;oFkt(n.toLowerCase(),t))}function Vkt(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)&&(Zse(e,"audio")||Zse(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 Zse(e,t){return mW(e,t)&&gW(e,t)}function Ukt(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 zkt(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 Jse(e){const t=bv(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 NV(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Hkt={supported:!0,powerEfficient:!0,smooth:!0},Wkt={supported:!1,smooth:!1,powerEfficient:!1},Vye={supported:!0,configurations:[],decodingInfoResults:[Hkt]};function Uye(e,t){return{supported:!1,configurations:t,decodingInfoResults:[Wkt],error:e}}function Gkt(e,t,n,r,o,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,f=a?.channels,h=f?parseInt(f):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 b=t.groups[g];if(!b)throw new Error(`Audio track group ${g} not found`);Object.keys(b.channels).forEach(S=>{m[S]=(m[S]||0)+b.channels[S]})}return m},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(m=>qL(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&&Pn(h)&&Object.keys(p).some(m=>parseInt(m)>h)}function zye(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(Vye);const a=[],s=Kkt(e),l=s.length,c=qkt(e,t,l>0),f=c.length;for(let h=l||1*f||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),f){p.audio=c[h%f];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=>qL(p))&&jye())return Promise.resolve(Uye(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=Xkt(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 Kkt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=Hye(e),o=e.width||640,a=e.height||480,s=e.frameRate||30,l=e.videoRange.toLowerCase();return n?n.map(c=>{const f={contentType:ok(zkt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(f.transferFunction=l),f}):[]}function qkt(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=Hye(e);return o&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const f=l?(c=t.groups[l])==null?void 0:c.tracks:null;return f?f.reduce((h,p)=>{if(p.groupId===l){const m=parseFloat(p.channels||"");o.forEach(g=>{const b={contentType:ok(g,"audio"),bitrate:n?Ykt(g,a):a};m&&(b.channels=""+m),h.push(b)})}return h},s):s},[]):[]}function Ykt(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 Hye(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function Xkt(e){let t="";const{audio:n,video:r}=e;if(r){const o=NV(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=NV(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const BV=["NONE","TYPE-0","TYPE-1",null];function Zkt(e){return BV.indexOf(e)>-1}const TI=["SDR","PQ","HLG"];function Jkt(e){return!!e&&TI.indexOf(e)>-1}var Y4={No:"",Yes:"YES",v2:"v2"};function Qse(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 tae(this._audioGroups,t)}hasSubtitleGroup(t){return tae(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 tae(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function Qkt(){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 ewt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||TI.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&Qkt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const twt=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}},go=(e,t)=>JSON.stringify(e,twt(t));function nwt(e,t,n,r,o){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=o?.videoCodec,f=s&&parseInt(s)===2;let h=!1,p=!1,m=1/0,g=1/0,b=1/0,S=1/0,k=0,C=[];const{preferHDR:E,allowedVideoRanges:x}=ewt(t,o);for(let D=a.length;D--;){const N=e[a[D]];h||(h=N.channels[2]>0),m=Math.min(m,N.minHeight),g=Math.min(g,N.minFramerate),b=Math.min(b,N.minBitrate),x.filter(B=>N.videoRanges[B]>0).length>0&&(p=!0)}m=Pn(m)?m:0,g=Pn(g)?g:0;const _=Math.max(1080,m),A=Math.max(30,g);b=Pn(b)?b:n,n=Math.max(b,n),p||(t=void 0);const R=a.length>1;return{codecSet:a.reduce((D,N)=>{const L=e[N];if(N===D)return D;if(C=p?x.filter(B=>L.videoRanges[B]>0):[],R){if(L.minBitrate>n)return zd(N,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),D;if(!L.hasDefaultAudio)return zd(N,"no renditions with default or auto-select sound found"),D;if(l&&N.indexOf(l.substring(0,4))%5!==0)return zd(N,`audio codec preference "${l}" not found`),D;if(s&&!f){if(!L.channels[s])return zd(N,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),D}else if((!l||f)&&h&&L.channels[2]===0)return zd(N,"no renditions with stereo sound found"),D;if(L.minHeight>_)return zd(N,`min resolution of ${L.minHeight} > maximum of ${_}`),D;if(L.minFramerate>A)return zd(N,`min framerate of ${L.minFramerate} > maximum of ${A}`),D;if(!C.some(B=>L.videoRanges[B]>0))return zd(N,`no variants with VIDEO-RANGE of ${go(C)} found`),D;if(c&&N.indexOf(c.substring(0,4))%5!==0)return zd(N,`video codec preference "${c}" not found`),D;if(L.maxScore=EI(D)||L.fragmentError>e[D].fragmentError)?D:(S=L.minIndex,k=L.maxScore,N)},void 0),videoRanges:C,preferHDR:E,minFramerate:g,minBitrate:b,minIndex:S}}function zd(e,t){no.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function Wye(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 rwt(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 f=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,f),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 nae(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 of(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 Mm(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 swt(e,t,n,r,o){const a=t[r],l=t.reduce((m,g,b)=>{const S=g.uri;return(m[S]||(m[S]=[])).push(b),m},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,f=a.frameRate,h=a.codecSet.substring(0,4),p=rae(t,r,m=>{if(m.videoRange!==c||m.frameRate!==f||m.codecSet.substring(0,4)!==h)return!1;const g=m.audioGroups,b=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return of(e,b,o)>-1});return p>-1?p:rae(t,r,m=>{const g=m.audioGroups,b=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return of(e,b,o)>-1})}function rae(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 f=performance.now(),h=a?a.stats:o.stats,p=a?a.duration:o.duration,m=f-h.loading.start,g=s.minAutoLevel,b=o.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||b<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==b,C=!!n||k;if(!C&&(c.paused||!c.playbackRate||!c.readyState))return;const E=s.mainForwardBufferInfo;if(!C&&E===null)return;const x=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(m<=Math.max(x,1e3*(p/(_*2))))return;const A=E?E.len/_:0,R=h.loading.first?h.loading.first-h.loading.start:-1,M=h.loaded&&R>-1,D=this.getBwEstimate(),N=s.levels,L=N[b],B=Math.max(h.loaded,Math.round(p*(o.bitrate||L.averageBitrate)/8));let F=M?m-R:m;F<1&&M&&(F=Math.min(m,h.loaded*8/D));const j=M?h.loaded*1e3/F:0,z=x/1e3,q=j?(B-h.loaded)/j:B*8/D+z;if(q<=A)return;const G=j?j*8:D,ee=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,Q=this.hls.config.abrBandWidthUpFactor;let X=Number.POSITIVE_INFINITY,K;for(K=b-1;K>g;K--){const ae=N[K].maxBitrate,xe=!N[K].details||ee;if(X=this.getTimeToLoadFrag(z,G,p*ae,xe),X=q||X>p*10)return;M?this.bwEstimator.sample(m-Math.min(x,R),h.loaded):this.bwEstimator.sampleTTFB(m);const te=N[K].maxBitrate;this.getBwEstimate()*Q>te&&this.resetEstimator(te);const oe=this.findBestLevel(te,g,K,0,A,1,1);oe>-1&&(K=oe),this.warn(`Fragment ${o.sn}${a?" part "+a.index:""} of level ${b} is loading too slowly; Fragment duration: ${o.duration.toFixed(3)} Time to underbuffer: ${A.toFixed(3)} s Estimated load time for current fragment: ${q.toFixed(3)} s Estimated load time for down switch fragment: ${X.toFixed(3)} s TTFB estimate: ${R|0} ms Current BW estimate: ${Pn(D)?D|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${K} @ ${te|0} bps`),s.nextLoadLevel=s.nextAutoLevel=K,this.clearTimer();const ue=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===K&&K>0){const ae=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${K>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${ae.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,K>g){let xe=this.findBestLevel(this.hls.levels[g].bitrate,g,K,0,ae,1,1);xe===-1&&(xe=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=xe,this.resetEstimator(this.hls.levels[xe].bitrate)}}};k||q>X*2?ue():this.timer=self.setInterval(ue,X*1e3),s.trigger(Ce.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 fkt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.FRAG_LOADING,this.onFragLoading,this),t.on(Ce.FRAG_LOADED,this.onFragLoaded,this),t.on(Ce.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ce.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ce.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Ce.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.FRAG_LOADING,this.onFragLoading,this),t.off(Ce.FRAG_LOADED,this.onFragLoaded,this),t.off(Ce.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ce.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ce.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Ce.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 Vt.BUFFER_ADD_CODEC_ERROR:case Vt.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Vt.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,f=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&f>-1){const p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,f),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;Pn(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===Wn.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(Ce.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!==Wn.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(),f=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(f){const k=this.findBestLevel(c,s,o,f,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let m=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!f){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,f,m,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${f?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const b=r.levels[s],S=r.loadLevelObj;return S&&b?.bitrate=n;G--){var q;const ee=b[G],Q=G>p;if(!ee)continue;if(C.useMediaCapabilities&&!ee.supportedResult&&!ee.supportedPromise){const xe=navigator.mediaCapabilities;typeof xe?.decodingInfo=="function"&&Gkt(ee,L,R,M,t,D)?(ee.supportedPromise=zye(ee,L,xe,this.supportedCache),ee.supportedPromise.then($e=>{if(!this.hls)return;ee.supportedResult=$e;const ge=this.hls.levels,Oe=ge.indexOf(ee);$e.error?this.warn(`MediaCapabilities decodingInfo error: "${$e.error}" for level ${Oe} ${go($e)}`):$e.supported?$e.decodingInfoResults.some(Fe=>Fe.smooth===!1||Fe.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${Oe} not smooth or powerEfficient: ${go($e)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Oe} ${go($e)}`),Oe>-1&&ge.length>1&&(this.log(`Removing unsupported level ${Oe}`),this.hls.removeLevel(Oe),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch($e=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${$e}`)})):ee.supportedResult=Vye}if((A&&ee.codecSet!==A||R&&ee.videoRange!==R||Q&&M>ee.frameRate||!Q&&M>0&&Mxe.smooth===!1))&&(!_||G!==B)){z.push(G);continue}const X=ee.details,K=(g?X?.partTarget:X?.averagetargetduration)||F;let te;Q?te=l*t:te=s*t;const oe=F&&o>=F*2&&a===0?ee.averageBitrate:ee.maxBitrate,ue=this.getTimeToLoadFrag(j,te,oe*K,X===void 0);if(te>=oe&&(G===h||ee.loadError===0&&ee.fragmentError===0)&&(ue<=j||!Pn(ue)||x&&!this.bitrateTestDelay||ue${G} adjustedbw(${Math.round(te)})-bitrate=${Math.round(te-oe)} ttfb:${j.toFixed(1)} avgDuration:${K.toFixed(1)} maxFetchDuration:${f.toFixed(1)} fetchDuration:${ue.toFixed(1)} firstSelection:${_} codecSet:${ee.codecSet} videoRange:${ee.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=G),G}}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 Gye={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 lwt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Pn(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)&&iae(n,r,a)===0||uwt(a,e,Math.min(o,r))))return a;const s=Gye.search(t,iae.bind(null,n,r));return s&&(s!==e||!a)?s:a}function uwt(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 iae(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 cwt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function Kye(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 Gye.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function II(e){switch(e.details){case Vt.FRAG_LOAD_TIMEOUT:case Vt.KEY_LOAD_TIMEOUT:case Vt.LEVEL_LOAD_TIMEOUT:case Vt.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function qye(e){return e.details.startsWith("key")}function Yye(e){return qye(e)&&!!e.frag&&!e.frag.decryptdata}function oae(e,t){const n=II(t);return e.default[`${n?"timeout":"error"}Retry`]}function yW(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function sae(e){return eo(eo({},e),{errorRetry:null,timeoutRetry:null})}function LI(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function FV(e){return e===0&&navigator.onLine===!1}var Ta={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},Gu={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class fwt extends Wc{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(Ce.ERROR,this.onError,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ce.ERROR,this.onError,this),t.off(Ce.ERROR,this.onErrorOut,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Wn.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 Vt.FRAG_LOAD_ERROR:case Vt.FRAG_LOAD_TIMEOUT:case Vt.KEY_LOAD_ERROR:case Vt.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Vt.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=i1();return}case Vt.FRAG_GAP:case Vt.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Ta.SendAlternateToPenaltyBox;return}case Vt.LEVEL_EMPTY_ERROR:case Vt.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Wn.MAIN?n.level:o.loadLevel;n.details===Vt.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 Vt.LEVEL_LOAD_ERROR:case Vt.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case Vt.AUDIO_TRACK_LOAD_ERROR:case Vt.AUDIO_TRACK_LOAD_TIMEOUT:case Vt.SUBTITLE_LOAD_ERROR:case Vt.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===ci.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===ci.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Ta.SendAlternateToPenaltyBox,n.errorAction.flags=Gu.MoveAllAlternatesMatchingHost;return}}return;case Vt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Ta.SendAlternateToPenaltyBox,flags:Gu.MoveAllAlternatesMatchingHDCP};return;case Vt.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Vt.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Vt.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Ta.SendAlternateToPenaltyBox,flags:Gu.MoveAllAlternatesMatchingKey};return;case Vt.BUFFER_ADD_CODEC_ERROR:case Vt.REMUX_ALLOC_ERROR:case Vt.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case Vt.INTERNAL_EXCEPTION:case Vt.BUFFER_APPENDING_ERROR:case Vt.BUFFER_FULL_ERROR:case Vt.LEVEL_SWITCH_ERROR:case Vt.BUFFER_STALLED_ERROR:case Vt.BUFFER_SEEK_OVER_HOLE:case Vt.BUFFER_NUDGE_ON_STALL:n.errorAction=i1();return}n.type===Qn.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=i1())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=oae(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(LI(o,a,II(t),t.response))return{action:Ta.RetryRequest,flags:Gu.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=oae(qye(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Vt.FRAG_GAP&&o.fragmentError++,!Yye(t)&&LI(l,c,II(t),t.response)))return{action:Ta.RetryRequest,flags:Gu.None,retryConfig:l,retryCount:c};const f=this.getLevelSwitchAction(t,r);return l&&(f.retryConfig=l,f.retryCount=c),f}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const o=this.hls.levels[n];if(o){var a,s;const f=t.details;o.loadError++,f===Vt.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:m,minAutoLevel:g,maxAutoLevel:b}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,C=(S===Wn.AUDIO&&f===Vt.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(f===Vt.BUFFER_ADD_CODEC_ERROR||f===Vt.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:R})=>o.audioCodec!==R),x=t.sourceBufferName==="video"&&(f===Vt.BUFFER_ADD_CODEC_ERROR||f===Vt.BUFFER_APPEND_ERROR)&&p.some(({codecSet:R,audioCodec:M})=>o.codecSet!==R&&o.audioCodec===M),{type:_,groupId:A}=(s=t.context)!=null?s:{};for(let R=p.length;R--;){const M=(R+m)%p.length;if(M!==m&&M>=g&&M<=b&&p[M].loadError===0){var l,c;const D=p[M];if(f===Vt.FRAG_GAP&&S===Wn.MAIN&&t.frag){const N=p[M].details;if(N){const L=Ig(t.frag,N.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===ci.AUDIO_TRACK&&D.hasAudioGroup(A)||_===ci.SUBTITLE_TRACK&&D.hasSubtitleGroup(A))continue;if(S===Wn.AUDIO&&(l=o.audioGroups)!=null&&l.some(N=>D.hasAudioGroup(N))||S===Wn.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some(N=>D.hasSubtitleGroup(N))||C&&o.audioCodec===D.audioCodec||x&&o.codecSet===D.codecSet||!C&&o.codecSet!==D.codecSet)continue}h=M;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:Ta.SendAlternateToPenaltyBox,flags:Gu.None,nextAutoLevel:h}}return{action:Ta.SendAlternateToPenaltyBox,flags:Gu.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Ta.DoNothing:break;case Ta.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==Vt.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 Gu.None:this.switchLevel(t,a);break;case Gu.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(t.frag),f=n.levels[c],h=f?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=h,h==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(h){n.maxHdcpLevel=BV[BV.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case Gu.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const f=this.hls.levels,h=f.length;for(let m=h;m--;)if(this.variantHasKey(f[m],c)){var s,l;this.log(`Banned key found in level ${m} (${f[m].bitrate}bps) or audio group "${(s=f[m].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${Rl(c.keyId||[])}`),f[m].fragmentError++,f[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 f=c.range[t];if(f){if(f.time.length===0){this.removeFragment(c.body);return}f.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=fy(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 f=n[l],h=s||c.partial===!0;a.range[l]=this.getBufferedTimes(r,t.part,h,f)}),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),Yx(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=aae(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=fy(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,f=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)),b=Math.min(l,o.end(h));b>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:b}))}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(f=>{const h=c[f];h&&Yx(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||Yx(n))}getState(t){const n=fy(t),r=this.fragments[n];return r?r.buffered?Yx(r)?na.PARTIAL:na.OK:na.APPENDING:na.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=fy(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 f=this.activePartLists[l];f||(this.activePartLists[l]=f=[]),f.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=fy(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=fy(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=aae(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 Yx(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 fy(e){return`${e.type}_${e.level}_${e.sn}`}function aae(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var _v={cbc:0,ctr:1};class pwt{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 _v.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case _v.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 vwt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class mwt{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,f=c[0],h=c[1],p=c[2],m=c[3],g=new Uint32Array(256);let b=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[b]=C,n[C]=b;const E=g[b],x=g[E],_=g[x];let A=g[C]*257^C*16843008;o[b]=A<<24|A>>>8,a[b]=A<<16|A>>>16,s[b]=A<<8|A>>>24,l[b]=A,A=_*16843009^x*65537^E*257^b*16843008,f[C]=A<<24|A>>>8,h[C]=A<<16|A>>>16,p[C]=A<<8|A>>>24,m[C]=A,b?(b=E^g[g[g[_^E]]],S^=g[g[S]]):b=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!==_v.cbc||n.byteLength!==16)return no.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=Uc(l,t),this.remainderData=null);const c=this.getValidChunk(t);if(!c.length)return null;a&&(r=a);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new mwt),f.expandKey(n);const h=s;return this.currentResult=f.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 gwt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new pwt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(no.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%bwt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(no.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const lae=Math.pow(2,17);class _wt{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 lh({type:Qn.NETWORK_ERROR,details:Vt.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(b=>b[0]==="GAP")){c(cae(t));return}else t.gap=!1;const f=this.loader=a?new a(o):new s(o),h=uae(t);t.loader=f;const p=sae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:lae};t.stats=f.stats;const g={onSuccess:(b,S,k,C)=>{this.resetLoader(t,f);let E=b.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(E.slice(0,16)),E=E.slice(16)),l({frag:t,part:null,payload:E,networkDetails:C})},onError:(b,S,k,C)=>{this.resetLoader(t,f),c(new lh({type:Qn.NETWORK_ERROR,details:Vt.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:eo({url:r,data:void 0},b),error:new Error(`HTTP Error ${b.code} ${b.text}`),networkDetails:k,stats:C}))},onAbort:(b,S,k)=>{this.resetLoader(t,f),c(new lh({type:Qn.NETWORK_ERROR,details:Vt.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:b}))},onTimeout:(b,S,k)=>{this.resetLoader(t,f),c(new lh({type:Qn.NETWORK_ERROR,details:Vt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:k,stats:b}))}};n&&(g.onProgress=(b,S,k,C)=>n({frag:t,part:null,payload:k,networkDetails:C})),f.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(cae(t,n));return}const f=this.loader=a?new a(o):new s(o),h=uae(t,n);t.loader=f;const p=sae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:lae};n.stats=f.stats,f.load(h,m,{onSuccess:(g,b,S,k)=>{this.resetLoader(t,f),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:k};r(C),l(C)},onError:(g,b,S,k)=>{this.resetLoader(t,f),c(new lh({type:Qn.NETWORK_ERROR,details:Vt.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:eo({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,b,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,f),c(new lh({type:Qn.NETWORK_ERROR,details:Vt.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,b,S)=>{this.resetLoader(t,f),c(new lh({type:Qn.NETWORK_ERROR,details:Vt.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),f=Math.min(Math.round(r.loaded/a),c),p=(c-f)*Math.round(r.loaded/f);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 uae(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(Pn(o)&&Pn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&Swt((s=e.decryptdata)==null?void 0:s.method)){const f=a-o;f%16&&(c=a+(16-f%16)),o!==0&&(r.resetIV=!0,l=o-16)}r.rangeStart=l,r.rangeEnd=c}return r}function cae(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:Qn.MEDIA_ERROR,details:Vt.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new lh(r)}function Swt(e){return e==="AES-128"||e==="AES-256"}class lh extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class Xye extends Wc{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 _W{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=Xx(),this.buffering={audio:Xx(),video:Xx(),audiovideo:Xx()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function Xx(){return{start:0,executeStart:0,executeEnd:0,end:0}}const dae={length:0,start:()=>0,end:()=>0};class Lr{static isBuffered(t,n){if(t){const r=Lr.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=Lr.getBuffered(t);return Lr.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,f=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 hae(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 kwt(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 wwt=/^(\d+)x(\d+)$/,pae=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Xo{constructor(t,n){typeof t=="string"&&(t=Xo.parseAttrList(t,n)),ao(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=wwt.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(pae.lastIndex=0;(r=pae.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let f=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":f=!0}if(n&&(c||f))l=jV(n,l);else if(!f&&!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":no.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const Cwt="com.apple.hls.interstitial";function Ewt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function xwt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class Jye{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]){no.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=ao(new Xo({}),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"]);Pn(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?(no.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(Pn(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===Cwt}get isValid(){return!!this.id&&!this._badValueForSameId&&Pn(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 Twt=10;class Awt{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?Pn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Twt}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 PI(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function vae(e,t){return!e&&!t?!0:!e||!t?!1:PI(e,t)}function o1(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function SW(e){switch(e){case"AES-128":case"AES-256":return _v.cbc;case"AES-256-CTR":return _v.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function kW(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function VV(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function Iwt(e){const t=VV(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function Qye(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 e1e(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=kW(s)):n=Iwt(s)}}return n}const RI=typeof self<"u"?self:void 0;var Qo={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ma={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function X4(e){switch(e){case Ma.FAIRPLAY:return Qo.FAIRPLAY;case Ma.PLAYREADY:return Qo.PLAYREADY;case Ma.WIDEVINE:return Qo.WIDEVINE;case Ma.CLEARKEY:return Qo.CLEARKEY}}function D9(e){switch(e){case Qo.FAIRPLAY:return Ma.FAIRPLAY;case Qo.PLAYREADY:return Ma.PLAYREADY;case Qo.WIDEVINE:return Ma.WIDEVINE;case Qo.CLEARKEY:return Ma.CLEARKEY}}function wS(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[Qo.FAIRPLAY,Qo.WIDEVINE,Qo.PLAYREADY,Qo.CLEARKEY].filter(o=>!!t[o]):[];return!r[Qo.WIDEVINE]&&n&&r.push(Qo.WIDEVINE),r}const t1e=(function(e){return RI!=null&&(e=RI.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function Lwt(e,t,n,r){let o;switch(e){case Qo.FAIRPLAY:o=["cenc","sinf"];break;case Qo.WIDEVINE:case Qo.PLAYREADY:o=["cenc"];break;case Qo.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return Pwt(o,t,n,r)}function Pwt(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 Rwt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function n1e(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=kW(l).subarray(0,16);return Qye(c),c}}return null}let Zx={};class dg{static clearKeyUriToKeyIdMap(){Zx={}}static setKeyIdForUri(t,n){Zx[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&&!o1(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(Lye(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&PI(t.keyFormatVersions,this.keyFormatVersions)&&vae(t.iv,this.iv)&&vae(t.keyId,this.keyId)}isSupported(){if(this.method){if(o1(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ma.FAIRPLAY:case Ma.WIDEVINE:case Ma.PLAYREADY:case Ma.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(o1(this.method)){let a=this.iv;return a||(typeof t!="number"&&(no.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=Dwt(t)),new dg(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=Zx[this.uri];if(a&&!PI(this.keyId,a)&&dg.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=e1e(this.uri);if(r)switch(this.keyFormat){case Ma.WIDEVINE:if(this.pssh=r,!this.keyId){const a=Nkt(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=mae(n));break;case Ma.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=$kt(a,null,r),this.keyId=n1e(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=Mwt(n),a||(a=mae(n),a||(a=Zx[this.uri])),a&&(this.keyId=a,dg.setKeyIdForUri(this.uri,a))}return this}}function Mwt(e){const t=e?.[Ma.WIDEVINE];return t?t.keyId:null}function mae(e){const t=e?.[Ma.PLAYREADY];if(t){const n=e1e(t.uri);if(n)return n1e(n)}return null}function Dwt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const gae=/#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,yae=/#EXT-X-MEDIA:(.*)/g,Owt=/^#EXT(?:INF|-X-TARGETDURATION):/m,O9=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),$wt=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 sf{static findGroup(t,n){for(let r=0;r0&&a.length({id:f.attrs.AUDIO,audioCodec:f.audioCodec})),SUBTITLES:s.map(f=>({id:f.attrs.SUBTITLES,textCodec:f.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(yae.lastIndex=0;(o=yae.exec(t))!==null;){const f=new Xo(o[1],r),h=f.TYPE;if(h){const p=l[h],m=a[h]||[];a[h]=m;const g=f.LANGUAGE,b=f["ASSOC-LANGUAGE"],S=f.CHANNELS,k=f.CHARACTERISTICS,C=f["INSTREAM-ID"],E={attrs:f,bitrate:0,id:c++,groupId:f["GROUP-ID"]||"",name:f.NAME||g||"",type:h,default:f.bool("DEFAULT"),autoselect:f.bool("AUTOSELECT"),forced:f.bool("FORCED"),lang:g,url:f.URI?sf.resolve(f.URI,n):""};if(b&&(E.assocLang=b),S&&(E.channels=S),k&&(E.characteristics=k),C&&(E.instreamId=C),p!=null&&p.length){const x=sf.findGroup(p,E.groupId)||p[0];kae(E,x,"audioCodec"),kae(E,x,"textCodec")}m.push(E)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},f=new Awt(n),h=f.fragments,p=[];let m=null,g=0,b=0,S=0,k=0,C=0,E=null,x=new P9(o,c),_,A,R,M=-1,D=!1,N=null,L;if(O9.lastIndex=0,f.m3u8=t,f.hasVariableRefs=fae(t),((l=O9.exec(t))==null?void 0:l[0])!=="#EXTM3U")return f.playlistParsingError=new Error("Missing format identifier #EXTM3U"),f;for(;(_=O9.exec(t))!==null;){D&&(D=!1,x=new P9(o,c),x.playlistOffset=S,x.setStart(S),x.sn=g,x.cc=k,C&&(x.bitrate=C),x.level=r,m&&(x.initSegment=m,m.rawProgramDateTime&&(x.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),N&&(x.setByteRange(N),N=null)));const z=_[1];if(z){x.duration=parseFloat(z);const q=(" "+_[2]).slice(1);x.title=q||null,x.tagList.push(q?["INF",z,q]:["INF",z])}else if(_[3]){if(Pn(x.duration)){x.playlistOffset=S,x.setStart(S),R&&Cae(x,R,f),x.sn=g,x.level=r,x.cc=k,h.push(x);const q=(" "+_[3]).slice(1);x.relurl=jV(f,q),UV(x,E,p),E=x,S+=x.duration,g++,b=0,D=!0}}else{if(_=_[0].match($wt),!_){no.warn("No matches on slow regex match for level playlist!");continue}for(A=1;A<_.length&&_[A]===void 0;A++);const q=(" "+_[A]).slice(1),G=(" "+_[A+1]).slice(1),ee=_[A+2]?(" "+_[A+2]).slice(1):null;switch(q){case"BYTERANGE":E?x.setByteRange(G,E):x.setByteRange(G);break;case"PROGRAM-DATE-TIME":x.rawProgramDateTime=G,x.tagList.push(["PROGRAM-DATE-TIME",G]),M===-1&&(M=h.length);break;case"PLAYLIST-TYPE":f.type&&th(f,q,_),f.type=G.toUpperCase();break;case"MEDIA-SEQUENCE":f.startSN!==0?th(f,q,_):h.length>0&&Eae(f,q,_),g=f.startSN=parseInt(G);break;case"SKIP":{f.skippedSegments&&th(f,q,_);const Q=new Xo(G,f),X=Q.decimalInteger("SKIPPED-SEGMENTS");if(Pn(X)){f.skippedSegments+=X;for(let te=X;te--;)h.push(null);g+=X}const K=Q.enumeratedString("RECENTLY-REMOVED-DATERANGES");K&&(f.recentlyRemovedDateranges=(f.recentlyRemovedDateranges||[]).concat(K.split(" ")));break}case"TARGETDURATION":f.targetduration!==0&&th(f,q,_),f.targetduration=Math.max(parseInt(G),1);break;case"VERSION":f.version!==null&&th(f,q,_),f.version=parseInt(G);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":f.live||th(f,q,_),f.live=!1;break;case"#":(G||ee)&&x.tagList.push(ee?[G,ee]:[G]);break;case"DISCONTINUITY":k++,x.tagList.push(["DIS"]);break;case"GAP":x.gap=!0,x.tagList.push([q]);break;case"BITRATE":x.tagList.push([q,G]),C=parseInt(G)*1e3,Pn(C)?x.bitrate=C:C=0;break;case"DATERANGE":{const Q=new Xo(G,f),X=new Jye(Q,f.dateRanges[Q.ID],f.dateRangeTagCount);f.dateRangeTagCount++,X.isValid||f.skippedSegments?f.dateRanges[X.id]=X:no.warn(`Ignoring invalid DATERANGE tag: "${G}"`),x.tagList.push(["EXT-X-DATERANGE",G]);break}case"DEFINE":{{const Q=new Xo(G,f);"IMPORT"in Q?kwt(f,Q,s):hae(f,Q,n)}break}case"DISCONTINUITY-SEQUENCE":f.startCC!==0?th(f,q,_):h.length>0&&Eae(f,q,_),f.startCC=k=parseInt(G);break;case"KEY":{const Q=bae(G,n,f);if(Q.isSupported()){if(Q.method==="NONE"){R=void 0;break}R||(R={});const X=R[Q.keyFormat];X!=null&&X.matches(Q)||(X&&(R=ao({},R)),R[Q.keyFormat]=Q)}else no.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${G}"`);break}case"START":f.startTimeOffset=_ae(G);break;case"MAP":{const Q=new Xo(G,f);if(x.duration){const X=new P9(o,c);wae(X,Q,r,R),m=X,x.initSegment=m,m.rawProgramDateTime&&!x.rawProgramDateTime&&(x.rawProgramDateTime=m.rawProgramDateTime)}else{const X=x.byteRangeEndOffset;if(X){const K=x.byteRangeStartOffset;N=`${X-K}@${K}`}else N=null;wae(x,Q,r,R),m=x,D=!0}m.cc=k;break}case"SERVER-CONTROL":{L&&th(f,q,_),L=new Xo(G),f.canBlockReload=L.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=L.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&L.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=L.optionalFloat("PART-HOLD-BACK",0),f.holdBack=L.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{f.partTarget&&th(f,q,_);const Q=new Xo(G);f.partTarget=Q.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Q=f.partList;Q||(Q=f.partList=[]);const X=b>0?Q[Q.length-1]:void 0,K=b++,te=new Xo(G,f),oe=new kkt(te,x,c,K,X);Q.push(oe),x.duration+=oe.duration;break}case"PRELOAD-HINT":{const Q=new Xo(G,f);f.preloadHint=Q;break}case"RENDITION-REPORT":{const Q=new Xo(G,f);f.renditionReports=f.renditionReports||[],f.renditionReports.push(Q);break}default:no.warn(`line parsed but not handled: ${_}`);break}}}E&&!E.relurl?(h.pop(),S-=E.duration,f.partList&&(f.fragmentHint=E)):f.partList&&(UV(x,E,p),x.cc=k,f.fragmentHint=x,R&&Cae(x,R,f)),f.targetduration||(f.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,F=h[0],j=h[B-1];if(S+=f.skippedSegments*f.targetduration,S>0&&B&&j){f.averagetargetduration=S/B;const z=j.sn;f.endSN=z!=="initSegment"?z:0,f.live||(j.endList=!0),M>0&&(Bwt(h,M),F&&p.unshift(F))}return f.fragmentHint&&(S+=f.fragmentHint.duration),f.totalduration=S,p.length&&f.dateRangeTagCount&&F&&r1e(p,f),f.endCC=k,f}}function r1e(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]],f=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 f=n[r].sn-e.startSN;if(f<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>f;g--){const b=h[g].programDateTime;if(t>=b&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>mW(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 kae(e,t,n){const r=t[n];r&&(e[n]=r)}function Bwt(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 UV(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function wae(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 Cae(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 th(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Eae(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function $9(e,t){const n=t.startPTS;if(Pn(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 i1e(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,f=r;const h=t.startPTS,p=t.endPTS;if(Pn(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}`):Pn(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,f=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=f,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let b;const S=g-e.startSN,k=e.fragments;for(k[S]=t,b=S;b>0;b--)$9(k[b],k[b-1]);for(b=S;b=0;h--){const p=o[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;Uwt(e,t,(h,p,m,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const b=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=jwt(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?i1e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):o1e(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const f=t.advancedDateTime;if(t.advanced&&f){const h=t.edge;t.driftStart||(t.driftStartTime=f,t.driftStart=h),t.driftEndTime=f,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function jwt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=ao({},e);o&&o.forEach(c=>{delete a[c]});const l=Object.keys(a).length;return l?(Object.keys(r).forEach(c=>{const f=a[c],h=new Jye(r[c].attr,f);h.isValid?(a[c]=h,f||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${go(r[c].attr)}"`)}),a):r}function Vwt(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 Uwt(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 f=o;f<=a;f++){const h=c[s+f];let p=l[f];if(r&&!p&&h&&(p=t.fragments[f]=h),h&&p){n(h,p,f,l);const m=h.relurl,g=p.relurl;if(m&&zwt(m,g)){t.playlistParsingError=xae(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=xae(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function xae(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function o1e(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 zwt(e,t){return e!==t&&t?Aae(e)!==Aae(t):!1}function Aae(e){return e.replace(/\?[^?]*$/,"")}function f2(e,t){for(let r=0,o=e.length;re.startCC)}function Iae(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function c1e(e,t){const n=t.fragments;for(let r=0,o=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:f,state:h}=this,p=c?c.currentTime:0,m=Lr.bufferInfo(f||c,p,s.maxBufferHole),g=!m.len;if(this.log(`Media seeking to ${Pn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===en.ENDED)this.resetLoadingState();else if(l){const b=s.maxFragLookUpTolerance,S=l.start-b,k=l.start+l.duration+b;if(g||km.end){const C=p>k;(pb&&(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===en.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 _wt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new bW(t.config)}registerListeners(){const{hls:t}=this;t.on(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ce.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ce.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===en.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=en.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=Lr.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===en.FRAG_LOADING||!this.fragCurrent&&s===en.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=en.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Ce.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===en.STOPPED||this.state===en.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===na.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)===na.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(Ce.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&&o1(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,SW(l.method)).catch(f=>{throw o.trigger(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:a}),f}).then(f=>{const h=self.performance.now();return o.trigger(Ce.FRAG_DECRYPTED,{frag:a,payload:f,stats:{tstart:c,tdecrypt:h}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===en.STOPPED||this.state===en.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!==en.STOPPED&&(this.state=en.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(Ce.ERROR,{type:Qn.KEY_SYSTEM_ERROR,details:Vt.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?Gwt.toString(Lr.getBuffered(r)):"(detached)"})`),Ns(t)){var o;if(t.type!==Wn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=en.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=en.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 _W(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=en.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(m=>{if(!this.fragContextChanged(m.frag))return this.hls.trigger(Ce.KEY_LOADED,m),this.state===en.KEY_LOADING&&(this.state=en.IDLE),m}),this.hls.trigger(Ce.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(Ns(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&&Ns(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 b=m[g];t=this.fragCurrent=b.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${b.index} (${g}/${m.length-1}) of ${this.fragInfo(t,!1,b)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=b.start+b.duration,this.state=en.FRAG_LOADING;let S;return l?S=l.then(k=>!k||this.fragContextChanged(k.frag)?null:this.doFragPartsLoad(t,b,n,o)).catch(k=>this.handleFragLoadError(k)):S=this.doFragPartsLoad(t,b,n,o).catch(k=>this.handleFragLoadError(k)),this.hls.trigger(Ce.FRAG_LOADING,{frag:t,part:b,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(Ns(t)&&this.loadingParts){var f;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(f=s.partList)==null?void 0:f.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))}`),Pn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=en.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(Ce.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=[],f=(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(Ce.FRAG_LOADED,m);const b=Tae(r.details,t.sn,p.index+1)||l1e(f,t.sn,p.index+1);if(b)h(b);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===Vt.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===Qn.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Ce.ERROR,n)}else this.hls.trigger(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==en.PARSING){!this.fragCurrent&&this.state!==en.STOPPED&&this.state!==en.ERROR&&(this.state=en.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(),f=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);f!==this.loadingParts&&(this.log(`LL-Part loading ${f?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=f),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===Wn.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,f=s>-1?Tae(c,a,s):null,h=f?f.fragment:a1e(c,a,r);return h?(r&&r!==h&&(h.stats=r.stats),{frag:h,part:f,level:l}):null}bufferFragmentData(t,n,r,o,a){if(this.state!==en.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=Uc(s,l)),!c.length)return;const f=this.initPTS[n.cc],h=f?-f.baseTime/f.timescale:void 0,p={type:t.type,frag:n,part:r,chunkMeta:o,offset:h,parent:n.type,data:c};if(this.hls.trigger(Ce.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Lr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=Lr.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(!Pn(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=Lr.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 Lr.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=Wn.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 ${b} to match start frag at live edge. mainStart: ${m} liveSyncPosition: ${g} frag.start: ${(f=c)==null?void 0:f.start}`),this.startPosition=this.nextLoadPosition=b}}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===na.OK||r===na.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(Lae(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(Lae(this.config)&&t.type!==Wn.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=lwt(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=Kye(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:f}=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-f||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:f;m=Ig(a,s,t,S)}else m=s[s.length-1];if(m){const b=m.sn-r.startSN,S=this.fragmentTracker.getState(m);if((S===na.OK||S===na.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[b+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&&Ns(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!==en.FRAG_LOADING_WAITING_RETRY)&&(this.state=en.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===Vt.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(o,!0);const l=n.errorAction;if(!l){this.state=en.ERROR;return}const{action:c,flags:f,retryCount:h=0,retryConfig:p}=l,m=!!p,g=m&&c===Ta.RetryRequest,b=m&&!l.resolved&&f===Gu.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&b&&Ns(o)&&!o.endList&&S&&!Yye(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||b)&&h=n||r&&!FV(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=en.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===en.PARSING||this.state===en.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===Wn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==en.STOPPED&&(this.state=en.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=Lr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===en.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==en.STOPPED&&(this.state=en.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,f)=>{const h=t.elementaryStreams[f];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${f} duration reliably (${p})`),c||!1;const m=o?0:i1e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Ce.LEVEL_PTS_UPDATED,{details:a,level:r,drift:m,type:f,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(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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=en.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Ce.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Wn.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 Lae(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class f1e{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=Kwt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function Kwt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function eCt(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(Ce.ERROR,Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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,f="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 no.log(`manifest codec:${r}, parsed codec:${f}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:m,samplerate:h,channelCount:c,codec:f,parsedCodec:f,manifestCodec:r}}function p1e(e,t){return e[t]===255&&(e[t+1]&246)===240}function v1e(e,t){return e[t+1]&1?7:9}function xW(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function tCt(e,t){return t+5=e.length)return!1;const r=xW(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||DI(e,o)}return!1}function m1e(e,t,n,r,o){if(!e.samplerate){const a=eCt(t,n,r,o);if(!a)return;ao(e,a)}}function g1e(e){return 1024*9e4/e}function iCt(e,t){const n=v1e(e,t);if(t+n<=e.length){const r=xW(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function y1e(e,t,n,r,o){const a=g1e(e.samplerate),s=r+o*a,l=iCt(t,n);let c;if(l){const{frameLength:p,headerLength:m}=l,g=m+p,b=Math.max(0,n+g-t.length);b?(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 b||e.samples.push(S),{sample:S,length:g,missing:b}}const f=t.length-n;return c=new Uint8Array(f),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:f,missing:-1}}function oCt(e,t){return EW(e,t)&&YL(e,t+6)+10<=e.length-t}function sCt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function B9(e,t=0,n=1/0){return aCt(e,t,n,Uint8Array)}function aCt(e,t,n,r){const o=lCt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=uCt(e)?e.byteOffset:0,l=(s+e.byteLength)/a,c=(s+t)/a,f=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(f+Math.max(n,0),l));return new r(o,f,h-f)}function lCt(e){return e instanceof ArrayBuffer?e:e.buffer}function uCt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function cCt(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=nc(B9(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=nc(B9(e.data,3+r,s));let c;return o==="-->"?c=nc(B9(e.data,4+r+s)):c=sCt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function dCt(e){if(e.size<2)return;const t=nc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function fCt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=nc(e.data.subarray(n),!0);n+=r.length+1;const o=nc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=nc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function hCt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=nc(e.data.subarray(n),!0);n+=r.length+1;const o=nc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=nc(e.data);return{key:e.type,info:"",data:t}}function pCt(e){return e.type==="PRIV"?dCt(e):e.type[0]==="W"?hCt(e):e.type==="APIC"?cCt(e):fCt(e)}function vCt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=YL(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const Jx=10,mCt=10;function b1e(e){let t=0;const n=[];for(;EW(e,t);){const r=YL(e,t+6);e[t+5]>>6&1&&(t+=Jx),t+=Jx;const o=t+r;for(;t+mCt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Yu.audioId3,duration:Number.POSITIVE_INFINITY});o{if(Pn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let Qx=null;const bCt=[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],_Ct=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SCt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],kCt=[0,1,1,4];function S1e(e,t,n,r,o){if(n+24>t.length)return;const a=k1e(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 k1e(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,f=bCt[c*14+o-1]*1e3,p=_Ct[(n===3?0:n===2?1:2)*3+a],m=l===3?1:2,g=SCt[n][r],b=kCt[r],S=g*8*b,k=Math.floor(g*f/p+s)*b;if(Qx===null){const x=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Qx=x?parseInt(x[1]):0}return!!Qx&&Qx<=87&&r===2&&f>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:m,frameLength:k,samplesPerFrame:S}}}function IW(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function w1e(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,E=new Uint8Array([a<<6|k<<1|C>>2,(C&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),x=1536/l*9e4,_=r+o*x,A=t.subarray(n,n+h);return e.config=E,e.channelCount=S,e.samplerate=l,e.samples.push({unit:A,pts:_}),h}class xCt extends AW{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=lk(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&TW(n)!==void 0&&E1e(t,r)<=16)return!1;for(let o=t.length;r{const s=Dkt(a);if(TCt.test(s.schemeIdUri)){const l=Rae(s,n);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const f=s.payload;r.samples.push({data:f,len:f.byteLength,dts:l,pts:l,type:Yu.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Rae(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Yu.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 Rae(e,t){return Pn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class ICt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new bW(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,_v.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 T1e{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,f,h,p,m=-1,g=0;for(a===-1&&(m=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const b={data:n.subarray(m,h),type:g};l.push(b)}else{const b=this.getLastNalUnit(t.samples);b&&(s&&c<=4-s&&b.state&&(b.data=b.data.subarray(0,b.data.byteLength-s)),h>0&&(b.data=Uc(b.data,n.subarray(0,h)),b.state=0))}c=0&&a>=0){const b={data:n.subarray(m,o),type:g,state:a};l.push(b)}if(l.length===0){const b=this.getLastNalUnit(t.samples);b&&(b.data=Uc(b.data,n))}return t.naluState=a,l}}class h2{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&&no.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 LCt extends T1e{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(f=>{var h,p;switch(f.type){case 1:{let S=!1;l=!0;const k=f.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,vW(f.data,1,r.pts,n.samples);break}case 7:{var g,b;l=!0,c=!0;const S=f.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]||((b=t.pixelRatio)==null?void 0:b[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 E="avc1.";for(let x=0;x<3;x++){let _=C[x].toString(16);_.length<2&&(_="0"+_),E+=_}t.codec=E}break}case 8:l=!0,t.pps=[f.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(f)}),o&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new h2(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(f.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,vW(f.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=ao(t.params,this.readVPS(f.data)),this.initVPS=f.data),t.vps=[f.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],f.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const g=this.readSPS(f.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 b in g.params)t.params[b]=g.params[b]}this.pushParameterSet(t.sps,f.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(f.data);for(const b in g)t.params[b]=g[b]}this.pushParameterSet(t.pps,f.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(f)}),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 h2(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 h2(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(),f=n.readUByte(),h=n.readUByte(),p=n.readUByte(),m=n.readUByte(),g=n.readUByte(),b=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),E=[],x=[];for(let We=0;We0)for(let We=r;We<8;We++)n.readBits(2);for(let We=0;We1&&n.readEG();for(let Tt=0;Tt0&&xt<16?(oe=qt[xt-1],ue=Gt[xt-1]):xt===255&&(oe=n.readBits(16),ue=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),ge=n.readBoolean(),ge&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(xe=n.readBits(32),$e=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Gt=n.readBoolean(),Qt=n.readBoolean();let Pt=!1;(Gt||Qt)&&(Pt=n.readBoolean(),Pt&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),Pt&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let at=0;at<=r;at++){ae=n.readBoolean();const bt=ae||n.readBoolean();let Ue=!1;bt?n.readEG():Ue=n.readBoolean();const Be=Ue?1:n.readUEG()+1;if(Gt)for(let lt=0;lt>We&1)<<31-We)>>>0;let ye=_e.toString(16);return s===1&&ye==="2"&&(ye="6"),{codecString:`hvc1.${Je}${s}.${ye}.${a?"H":"L"}${C}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:o,general_profile_compatibility_flags:[l,c,f,h],general_constraint_indicator_flags:[p,m,g,b,S,k],general_level_idc:C,bit_depth:F+8,bit_depth_luma_minus8:F,bit_depth_chroma_minus8:j,min_spatial_segmentation_idc:te,chroma_format_idc:_,frame_rate:{fixed:ae,fps:$e/xe}},width:Fe,height:Xe,pixelRatio:[oe,ue]}}readPPS(t){const n=new h2(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 da=188;class Up{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=Up.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(da*5,n-da)+1,o=0;for(;o1&&(s===0&&l>2||c+da>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:Mye[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=Up.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=Up.createTrack("audio",o),this._id3Track=Up.createTrack("id3"),this._txtTrack=Up.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,f=this._txtTrack;let h=s.pid,p=s.pesData,m=l.pid,g=c.pid,b=l.pesData,S=c.pesData,k=null,C=this.pmtParsed,E=this._pmtId,x=t.length;if(this.remainderData&&(t=Uc(this.remainderData,t),x=t.length,this.remainderData=null),x>4;let B;if(L>1){if(B=M+5+t[M+4],B===M+da)continue}else B=M+4;switch(N){case h:D&&(p&&(a=hy(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,f,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(B,M+da)),p.size+=M+da-B);break;case m:if(D){if(b&&(a=hy(b,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}b={data:[],size:0}}b&&(b.data.push(t.subarray(B,M+da)),b.size+=M+da-B);break;case g:D&&(S&&(a=hy(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(B,M+da)),S.size+=M+da-B);break;case 0:D&&(B+=t[B]+1),E=this._pmtId=RCt(t,B);break;case E:{D&&(B+=t[B]+1);const F=MCt(t,B,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 ${M} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,M=_-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=N;break}}else A++;A>0&&WV(this.observer,new Error(`Found ${A} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=b,c.pesData=S;const R={audioTrack:l,videoTrack:s,id3Track:c,textTrack:f};return o&&this.extractRemainingSamples(R),R}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 f;if(s&&(f=hy(s,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,a,f,!0),r.pesData=null)):r.pesData=s,l&&(f=hy(l,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,f);break;case"mp3":this.parseMPEGPES(n,f);break;case"ac3":this.parseAC3PES(n,f);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&&(f=hy(c,this.logger))?(this.parseID3PES(o,f),o.pesData=null):o.pesData=c}demuxSampleAes(t,n,r){const o=this.demux(t,r,!0,!this.config.progressive),a=this.sampleAes=new ICt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new LCt:t==="hevc"&&(this.videoParser=new PCt))}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=Uc(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=ao({},n,{type:this._videoTrack?Yu.emsg:Yu.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function HV(e,t){return((e[t+1]&31)<<8)+e[t+2]}function RCt(e,t){return(e[t+10]&31)<<8|e[t+11]}function MCt(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,f=(e[t+10]&15)<<8|e[t+11];for(t+=12+f;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 WV(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 WV(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Ce.ERROR,Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function F9(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function hy(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]=Uc(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,b=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 DCt{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 Ap=Math.pow(2,32)-1;class jt{static init(){jt.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 jt.types)jt.types.hasOwnProperty(t)&&(jt.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]);jt.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]);jt.STTS=jt.STSC=jt.STCO=a,jt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),jt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),jt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),jt.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]);jt.FTYP=jt.box(jt.types.ftyp,s,c,s,l),jt.DINF=jt.box(jt.types.dinf,jt.box(jt.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 jt.box(jt.types.mdia,jt.mdhd(t.timescale||0,t.duration||0),jt.hdlr(t.type),jt.minf(t))}static mfhd(t){return jt.box(jt.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"?jt.box(jt.types.minf,jt.box(jt.types.smhd,jt.SMHD),jt.DINF,jt.stbl(t)):jt.box(jt.types.minf,jt.box(jt.types.vmhd,jt.VMHD),jt.DINF,jt.stbl(t))}static moof(t,n,r){return jt.box(jt.types.moof,jt.mfhd(t),jt.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=jt.trak(t[n]);return jt.box.apply(null,[jt.types.moov,jt.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(jt.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=jt.trex(t[n]);return jt.box.apply(null,[jt.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Ap+1)),o=Math.floor(n%(Ap+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 jt.box(jt.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=jt.box(jt.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,f=t.height,h=t.pixelRatio[0],p=t.pixelRatio[1];return jt.box(jt.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,f>>8&255,f&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,jt.box(jt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),jt.box(jt.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 jt.box(jt.types.mp4a,jt.audioStsd(t),jt.box(jt.types.esds,jt.esds(t)))}static mp3(t){return jt.box(jt.types[".mp3"],jt.audioStsd(t))}static ac3(t){return jt.box(jt.types["ac-3"],jt.audioStsd(t),jt.box(jt.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return jt.box(jt.types.stsd,jt.STSD,jt.mp4a(t));if(n==="ac3"&&t.config)return jt.box(jt.types.stsd,jt.STSD,jt.ac3(t));if(n==="mp3"&&t.codec==="mp3")return jt.box(jt.types.stsd,jt.STSD,jt.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return jt.box(jt.types.stsd,jt.STSD,jt.avc1(t));if(n==="hevc"&&t.vps)return jt.box(jt.types.stsd,jt.STSD,jt.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/(Ap+1)),l=Math.floor(r%(Ap+1));return jt.box(jt.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=jt.sdtp(t),o=t.id,a=Math.floor(n/(Ap+1)),s=Math.floor(n%(Ap+1));return jt.box(jt.types.traf,jt.box(jt.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),jt.box(jt.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])),jt.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,jt.box(jt.types.trak,jt.tkhd(t),jt.mdia(t))}static trex(t){const n=t.id;return jt.box(jt.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,f,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,f>>>16&255,f>>>8&255,f&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 jt.box(jt.types.trun,s)}static initSegment(t){jt.types||jt.init();const n=jt.moov(t);return Uc(jt.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 b=0;b>8,r[b][S].length&255]),s),s+=2,l.set(r[b][S],s),s+=r[b][S].length}const f=jt.box(jt.types.hvcC,l),h=t.width,p=t.height,m=t.pixelRatio[0],g=t.pixelRatio[1];return jt.box(jt.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]),f,jt.box(jt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),jt.box(jt.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,g>>24,g>>16&255,g>>8&255,g&255])))}}jt.types=void 0;jt.HDLR_TYPES=void 0;jt.STTS=void 0;jt.STSC=void 0;jt.STCO=void 0;jt.STSZ=void 0;jt.VMHD=void 0;jt.SMHD=void 0;jt.STSD=void 0;jt.FTYP=void 0;jt.DINF=void 0;const A1e=9e4;function LW(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function OCt(e,t,n=1,r=!1){return LW(e,t,1/n,r)}function iS(e,t=!1){return LW(e,1e3,1/A1e,t)}function $Ct(e,t=1){return LW(e,A1e,1/t)}function Mae(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const NCt=10*1e3,BCt=1024,FCt=1152,jCt=1536;let py=null,j9=null;function Dae(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 Z4 extends Wc{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,py===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);py=s?parseInt(s[1]):0}if(j9===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);j9=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&&Mae(n)} > ${t&&Mae(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=Ku(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 f,h,p,m,g,b,S=a,k=a;const C=t.pid>-1,E=n.pid>-1,x=n.samples.length,_=t.samples.length>0,A=l&&x>0||x>1;if((!C||_)&&(!E||A)||this.ISGenerated||l){if(this.ISGenerated){var M,D,N,L;const z=this.videoTrackConfig;(z&&(n.width!==z.width||n.height!==z.height||((M=n.pixelRatio)==null?void 0:M[0])!==((D=z.pixelRatio)==null?void 0:D[0])||((N=n.pixelRatio)==null?void 0:N[1])!==((L=z.pixelRatio)==null?void 0:L[1]))||!z&&A||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let F=-1,j;if(A&&(F=VCt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(b=!0,F>0){this.warn(`Dropped ${F} out of ${x} video samples due to a missing keyframe`);const z=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(F),n.dropped+=F,k+=(n.samples[0].pts-z)/n.inputTimeScale,j=k}else F===-1&&(this.warn(`No keyframe found out of ${x} video samples`),b=!1);if(this.ISGenerated){if(_&&A){const z=this.getVideoStartPts(n.samples),G=(Ku(t.samples[0].pts,z)-z)/n.inputTimeScale;S+=Math.max(0,G),k+=Math.max(0,-G)}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,E||A||c===Wn.AUDIO?k:void 0),A){const z=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),f=this.remuxVideo(n,k,B,z)}}else A&&(f=this.remuxVideo(n,k,B,0));f&&(f.firstKeyFrame=F,f.independent=F!==-1,f.firstKeyFramePTS=j)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=I1e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(m=L1e(o,a,this._initPTS))),{audio:h,video:f,initSegment:p,independent:b,text:m,id3:g}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=Ku(t,a);if(s0?te-1:te].dts&&(E=!0)}E&&s.sort(function(te,oe){const ue=te.dts-oe.dts,ae=te.pts-oe.pts;return ue||ae}),b=s[0].dts,S=s[s.length-1].dts;const _=S-b,A=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const te=b-x,oe=te>A,ue=te<-1;if((oe||ue)&&(oe?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${iS(te,!0)} ms (${te}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${iS(-te,!0)} ms (${te}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ue||x>=s[0].pts||py)){b=x;const ae=s[0].pts-te;if(oe)s[0].dts=b,s[0].pts=ae;else{let xe=!0;for(let $e=0;$eae&&xe);$e++){const ge=s[$e].pts;if(s[$e].dts-=te,s[$e].pts-=te,$e0?oe.dts-s[te-1].dts:A;if(xe=te>0?oe.pts-s[te-1].pts:A,ge.stretchShortVideoTrack&&this.nextAudioTs!==null){const Fe=Math.floor(ge.maxBufferHole*a),Xe=(o?k+o*a:this.nextAudioTs+h)-oe.pts;Xe>Fe?(g=Xe-Oe,g<0?g=Oe:F=!0,this.log(`It is approximately ${Xe/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=Oe}else g=Oe}const $e=Math.round(oe.pts-oe.dts);j=Math.min(j,g),q=Math.max(q,g),z=Math.min(z,xe),G=Math.max(G,xe),l.push(Dae(oe.key,g,ae,$e))}if(l.length){if(py){if(py<70){const te=l[0].flags;te.dependsOn=2,te.isNonSync=0}}else if(j9&&G-z0&&(o&&Math.abs(x-(C+E))<9e3||Math.abs(Ku(S[0].pts,x)-(C+E))<20*h),S.forEach(function(G){G.pts=Ku(G.pts,x)}),!r||C<0){const G=S.length;if(S=S.filter(ee=>ee.pts>=0),G!==S.length&&this.warn(`Removed ${S.length-G} of ${G} samples (initPTS ${E} / ${s})`),!S.length)return;a===0?C=0:o&&!b?C=Math.max(0,x-E):C=S[0].pts-E}if(t.segmentCodec==="aac"){const G=this.config.maxAudioFramesDrift;for(let ee=0,Q=C+E;ee=G*h&&oe0){M+=k;try{R=new Uint8Array(M)}catch(oe){this.observer.emit(Ce.ERROR,Ce.ERROR,{type:Qn.MUX_ERROR,details:Vt.REMUX_ALLOC_ERROR,fatal:!1,error:oe,bytes:M,reason:`fail allocating audio mdat ${M}`});return}m||(new DataView(R.buffer).setUint32(0,M),R.set(jt.types.mdat,4))}else return;R.set(X,k);const te=X.byteLength;k+=te,g.push(Dae(!0,f,te,0)),A=K}const N=g.length;if(!N)return;const L=g[g.length-1];C=A-E,this.nextAudioTs=C+c*L.duration;const B=m?new Uint8Array(0):jt.moof(t.sequenceNumber++,_/c,ao({},t,{samples:g}));t.samples=[];const F=(_-E)/s,j=C/s,q={data1:B,data2:R,startPTS:F,endPTS:j,startDTS:F,endDTS:j,type:"audio",hasAudio:!0,hasVideo:!1,nb:N};return this.isAudioContiguous=!0,q}}function Ku(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function VCt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class UCt extends Wc{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=$ye(t);if(n)Ikt(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=Oae(a,mo.AUDIO,this)),s&&(o=Oae(s,mo.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:f,lastEndTime:h}=this;const p={audio:void 0,video:void 0,text:o,id3:r,initSegment:void 0};Pn(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 b=this.initData;if((l=b)!=null&&l.length||(this.generateInitSegment(m),b=this.initData),!((c=b)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=Pkt(m,b,this),k=b.audio?S[b.audio.id]:null,C=b.video?S[b.video.id]:null,E=eT(C,1/0),x=eT(k,1/0),_=eT(C,0,!0),A=eT(k,0,!0);let R=a,M=0;const D=k&&(!C||!f&&x0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const F=!!b.audio,j=!!b.video;let z="";F&&(z+="audio"),j&&(z+="video");const q=(b.audio?b.audio.encrypted:!1)||(b.video?b.video.encrypted:!1),G={data1:m,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:z,hasAudio:F,hasVideo:j,nb:1,dropped:0,encrypted:q};p.audio=F&&!j?G:void 0,p.video=j?G:void 0;const ee=C?.sampleCount;if(ee){const Q=C.keyFrameIndex,X=Q!==-1;G.nb=ee,G.dropped=Q===0||this.isVideoContiguous?0:X?Q:ee,G.independent=X,G.firstKeyFrame=Q,X&&C.keyFrameStart&&(G.firstKeyFramePTS=(C.keyFrameStart-f.baseTime)/f.timescale),this.isVideoContiguous||(p.independent=X),this.isVideoContiguous||(this.isVideoContiguous=X),G.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${Q}/${ee} dropped: ${G.dropped} start: ${G.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=I1e(r,a,f,f),o.samples.length&&(p.text=L1e(o,a,f)),p}}function eT(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function zCt(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 Oae(e,t,n){const r=e.codec;return r&&r.length>4?r:t===mo.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?xI(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 uh;try{uh=self.performance.now.bind(self.performance)}catch{uh=Date.now}const J4=[{demux:ACt,remux:UCt},{demux:Up,remux:Z4},{demux:CCt,remux:Z4},{demux:xCt,remux:Z4}];J4.splice(2,0,{demux:ECt,remux:Z4});class $ae{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=uh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;o&&(this.currentTransmuxState=o);const{contiguous:f,discontinuity:h,trackSwitch:p,accurateTimeOffset:m,timeOffset:g,initSegmentChange:b}=o||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:E,initSegmentData:x}=c,_=HCt(s,n);if(_&&o1(_.method)){const D=this.getDecrypter(),N=SW(_.method);if(D.isSync()){let L=D.softwareDecrypt(s,_.key.buffer,_.iv.buffer,N);if(r.part>-1){const F=D.flush();L=F&&F.buffer}if(!L)return a.executeEnd=uh(),V9(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=D.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,N).then(L=>{const B=this.push(L,null,r);return this.decryptionPromise=null,B}),this.decryptionPromise}const A=this.needsProbing(h,p);if(A){const D=this.configureTransmuxer(s);if(D)return this.logger.warn(`[transmuxer] ${D.message}`),this.observer.emit(Ce.ERROR,Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.FRAG_PARSING_ERROR,fatal:!1,error:D,reason:D.message}),a.executeEnd=uh(),V9(r)}(h||p||b||A)&&this.resetInitSegment(x,S,k,E,n),(h||b||A)&&this.resetInitialTimestamp(C),f||this.resetContiguity();const R=this.transmux(s,_,g,m,r);this.asyncResult=uk(R);const M=this.currentTransmuxState;return M.contiguous=!0,M.discontinuity=!1,M.trackSwitch=!1,a.executeEnd=uh(),R}flush(t){const n=t.transmuxing;n.executeStart=uh();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:f}=this;if(!c||!f){n.executeEnd=uh();const p=[V9(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return uk(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:f}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===Wn.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(o,a,s,l,f,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=uh()}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=J4.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const V9=e=>({remuxResult:{},chunkMeta:e});function uk(e){return"then"in e&&e.then instanceof Function}class WCt{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 GCt{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 Nae=0;class P1e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Nae++,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 f=c.data,h=this.hls;if(!(!h||!(f!=null&&f.event)||f.instanceNo!==this.instanceNo))switch(f.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(f.data);break}case"flush":{this.onFlush(f.data);break}case"workerLog":{h.logger[f.data.logType]&&h.logger[f.data.logType](f.data.message);break}default:{f.data=f.data||{},f.data.frag=this.frag,f.data.part=this.part,f.data.id=this.id,h.trigger(f.event,f.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const f=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(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:f})};const a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=o;const s=(c,f)=>{f=f||{},f.frag=this.frag||void 0,c===Ce.ERROR&&(f=f,f.parent=this.id,f.part=this.part,this.error=f.error),this.hls.trigger(c,f)};this.observer=new CW,this.observer.on(Ce.FRAG_DECRYPTED,s),this.observer.on(Ce.ERROR,s);const l=Jse(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||Xwt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=Jwt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=Zwt());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:go(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new $ae(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new $ae(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Nae++;const n=this.hls.config,r=Jse(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:go(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),Qwt(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,f,h){var p,m;f.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:b}=this,S=s?s.start:a.start,k=a.decryptdata,C=this.frag,E=!(C&&a.cc===C.cc),x=!(C&&f.level===C.level),_=C?f.sn-C.sn:-1,A=this.part?f.part-this.part.index:-1,R=_===0&&f.id>1&&f.id===C?.stats.chunkCount,M=!x&&(_===1||_===0&&(A===1||R&&A<=0)),D=self.performance.now();(x||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=D),s&&(A||!M)&&(s.stats.parsing.start=D);const N=!(C&&((p=a.initSegment)==null?void 0:p.url)===((m=C.initSegment)==null?void 0:m.url)),L=new GCt(E,M,c,x,S,N);if(!M||E||N){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${f.sn}${f.part>-1?" part: "+f.part:""} ${this.id===Wn.MAIN?"level":"track"}: ${f.level} id: ${f.id} discontinuity: ${E} trackSwitch: ${x} contiguous: ${M} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${N}`);const B=new WCt(r,o,n,l,h);this.configureTransmuxer(B)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:f,state:L},t instanceof ArrayBuffer?[t]:[]);else if(b){const B=b.push(t,k,f,L);uk(B)?B.then(F=>{this.handleTransmuxComplete(F)}).catch(F=>{this.transmuxerError(F,f,"transmuxer-interface push error")}):this.handleTransmuxComplete(B)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const o=r.flush(t);uk(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(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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 Bae=100;class KCt extends wW{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Wn.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(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ce.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Ce.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ce.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ce.BUFFER_RESET,this.onBufferReset,this),t.on(Ce.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ce.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ce.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ce.FRAG_LOADING,this.onFragLoading,this),t.on(Ce.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ce.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Ce.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ce.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ce.BUFFER_RESET,this.onBufferReset,this),t.off(Ce.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ce.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ce.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ce.FRAG_LOADING,this.onFragLoading,this),t.off(Ce.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===Wn.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===en.WAITING_INIT_PTS){const f=this.waitingData;(!f&&!this.loadingParts||f&&f.frag.cc!==l)&&this.syncWithAnchor(n,f?.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(n,c)):this.state===en.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=Kye(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===en.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=en.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Bae),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=en.IDLE):this.state=en.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case en.IDLE:this.doTickIdle();break;case en.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=en.WAITING_INIT_PTS}break}case en.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case en.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=en.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=en.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=en.WAITING_TRACK,this.startFragRequested=!1;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,mo.AUDIO,Wn.AUDIO));const h=this.getFwdBufferInfo(f,Wn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Ce.BUFFER_EOS,{type:"audio"}),this.state=en.ENDED;return}const p=h.len,m=n.maxBufferLength,g=c.fragments,b=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&o){const x=S;c.PTSKnown&&xb||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=b+.05)}if(p>=m&&!this.switchingTrack&&kE.end){const _=this.fragmentTracker.getFragAtPos(k,Wn.MAIN);_&&_.end>E.end&&(E=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(C.start>E.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 sk(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!==en.STOPPED&&(this.setInterval(Bae),this.state=en.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(Ce.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 f=this.mainDetails;if(!f||a.endCC>f.endCC||f.expired){this.cachedTrackLoadedData=n,this.state!==en.STOPPED&&(this.state=en.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||(d1e(a,f),a.alignedSliding||MI(a,f),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(f,p),this.hls.trigger(Ce.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===en.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=en.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 f=c[l];if(!f){this.warn("Audio track is undefined on fragment load progress");return}const h=f.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||f.audioCodec||"mp4a.40.2";let m=this.transmuxer;m||(m=this.transmuxer=new P1e(this.hls,Wn.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],b=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const k=o?o.index:-1,C=k!==-1,E=new _W(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);m.push(a,b,p,"",r,o,h.totalduration,!1,E,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 f1e,complete:!1};S.push(new Uint8Array(a)),this.state!==en.STOPPED&&(this.state=en.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===Wn.MAIN&&Ns(n.frag)&&(this.mainFragLoading=n,this.state===en.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==Wn.AUDIO){!this.audioOnly&&r.type===Wn.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(Ns(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(Ce.AUDIO_TRACK_SWITCHED,eo({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=en.ERROR;return}switch(n.details){case Vt.FRAG_GAP:case Vt.FRAG_PARSING_ERROR:case Vt.FRAG_DECRYPT_ERROR:case Vt.FRAG_LOAD_ERROR:case Vt.FRAG_LOAD_TIMEOUT:case Vt.KEY_LOAD_ERROR:case Vt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Wn.AUDIO,n);break;case Vt.AUDIO_TRACK_LOAD_ERROR:case Vt.AUDIO_TRACK_LOAD_TIMEOUT:case Vt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===en.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===ci.AUDIO_TRACK&&(this.state=en.IDLE);break;case Vt.BUFFER_ADD_CODEC_ERROR:case Vt.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Vt.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Vt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==mo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==mo.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===en.ENDED&&(this.state=en.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Wn.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:f,level:h}=l,{details:p}=h,{audio:m,text:g,id3:b,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=en.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(Ce.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(m){const{startPTS:k,endPTS:C,startDTS:E,endDTS:x}=m;f&&(f.elementaryStreams[mo.AUDIO]={startPTS:k,endPTS:C,startDTS:E,endDTS:x}),c.setElementaryStreamInfo(mo.AUDIO,k,C,E,x),this.bufferFragmentData(m,c,f,s)}if(b!=null&&(n=b.samples)!=null&&n.length){const k=ao({id:r,frag:c,details:p},b);o.trigger(Ce.FRAG_PARSING_METADATA,k)}if(g){const k=ao({id:r,frag:c,details:p},g);o.trigger(Ce.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,o){if(this.state!==en.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Wn.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(Ce.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(Ce.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);if(this.switchingTrack||o===na.NOT_LOADED||o===na.PARTIAL){var a;if(!Ns(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=en.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&MI(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;cg({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,Mm)||(AI(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(Ce.AUDIO_TRACK_SWITCHED,eo({},t))}}class PW extends Wc{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 f=r&&Qse(r);return new eae(l,c>=0?c:void 0,f)}}}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){Fwt(r,o,this);const E=o.playlistParsingError;if(E){this.warn(E);const x=this.hls;if(!x.config.ignorePlaylistParsingErrors){var f;const{networkDetails:_}=n;x.trigger(Ce.ERROR,{type:Qn.NETWORK_ERROR,details:Vt.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:E,reason:E.message,level:n.level||void 0,parent:(f=o.fragments[0])==null?void 0:f.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,b=s1e(o,g);if(o.requestScheduled+b0){if(N>o.targetduration*3)this.log(`Playlist last advanced ${D.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,C=void 0;else if(r!=null&&r.tuneInGoal&&N-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${L} with playlist age: ${o.age}`),L=0;else{const B=Math.floor(L/o.targetduration);if(k+=B,C!==void 0){const F=Math.round(L%o.targetduration/o.partTarget);C+=F}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${D.toFixed(2)}s goal: ${L} skip sn ${B} to part ${C}`)}o.tuneInGoal=L}if(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C),E||!M){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(b-l*2,b/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=Qse(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=Y4.No),new eae(r,o,a)}checkRetry(t){const n=t.details,r=II(t),o=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=o||{},c=!!o&&!!l&&(a===Ta.RetryRequest||!o.resolved&&a===Ta.SendAlternateToPenaltyBox);if(c){var f;if(s>=l.maxNumRetry)return!1;if(r&&(f=t.context)!=null&&f.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const h=yW(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 R1e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function GV(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class qCt extends PW{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(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ce.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ce.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ce.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ce.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ce.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ce.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=of(c,l,Mm);if(m>-1)a=l[m];else{const g=of(c,this.tracks);a=this.tracks[g]}}let f=this.findTrackId(a);f===-1&&a&&(f=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(Ce.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(f!==-1&&p===-1)this.setAudioTrack(f);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(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:m})}}}onError(t,n){n.fatal||!n.context||n.context.type===ci.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&&cg(t,o,Mm))return o;const a=of(t,this.tracksInGroup,Mm);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=swt(t,n.levels,r,s,Mm);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=of(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(Ce.AUDIO_TRACK_SWITCHING,eo({},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 Fae=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,M1e="HlsJsTrackRemovedError";class XCt extends Error{constructor(t){super(t),this.name=M1e}}class ZCt extends Wc{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(Ce.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=bkt(bv(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(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ce.BUFFER_RESET,this.onBufferReset,this),t.on(Ce.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Ce.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ce.BUFFER_EOS,this.onBufferEos,this),t.on(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ce.FRAG_PARSED,this.onFragParsed,this),t.on(Ce.FRAG_CHANGED,this.onFragChanged,this),t.on(Ce.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ce.BUFFER_RESET,this.onBufferReset,this),t.off(Ce.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Ce.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ce.BUFFER_EOS,this.onBufferEos,this),t.off(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ce.FRAG_PARSED,this.onFragParsed,this),t.off(Ce.FRAG_CHANGED,this.onFragChanged,this),t.off(Ce.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?ao(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=ao({},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=bv(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,jae(r),JCt(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: ${go(r,(c,f)=>c==="initSegment"?void 0:f)}; transfer tracks: ${go(o,(c,f)=>c==="initSegment"?void 0:f)}}`),!Iye(o,r)){n.mediaSource=null,n.tracks=void 0;const c=t.currentTime,f=this.details,h=Math.max(c,f?.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(Ce.MEDIA_DETACHING,{}),this.onMediaAttaching(Ce.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const f=c,h=o[f];if(h){const p=h.buffer;if(p){const m=this.fragmentTracker,g=h.id;if(m.hasFragments(g)||m.hasParts(g)){const k=Lr.getBuffered(p);m.detectEvictedFragments(f,k,g,null,!0)}const b=U9(f),S=[f,p];this.sourceBuffers[b]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(f),this.trackSourceBuffer(f,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 f=c.length;f--;)l&&c[f].abort(),a.removeSourceBuffer(c[f]);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&&jae(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Ce.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[U9(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new YCt(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 f,h;const p=n[c],{id:m,codec:g,levelCodec:b,container:S,metadata:k,supplemental:C}=p;let E=o[c];const x=(f=this.transferData)==null||(f=f.tracks)==null?void 0:f[c],_=x!=null&&x.buffer?x:E,A=_?.pendingCodec||_?.codec,R=_?.levelCodec;E||(E=o[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:b,metadata:k,id:m});const M=q4(A,R),D=M?.replace(Fae,"$1");let N=q4(g,b);const L=(h=N)==null?void 0:h.replace(Fae,"$1");N&&M&&D!==L&&(c.slice(0,5)==="audio"&&(N=xI(N,this.appendSource)),this.log(`switching codec ${A} to ${N}`),N!==(E.pendingCodec||E.codec)&&(E.pendingCodec=N),E.container=S,this.appendChangeType(c,S,N))}),(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,Wn.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&&Lr.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,Wn.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:f,offset:h}=n,p=f.buffering[a],{sn:m,cc:g}=l,b=self.performance.now();p.start=b;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=b),k&&k.start===0&&(k.start=b);const C=r.audio;let E=!1;a==="audio"&&C?.container==="audio/mpeg"&&(E=!this.lastMpegAudioChunk||f.id===1||this.lastMpegAudioChunk.sn!==f.sn,this.lastMpegAudioChunk=f);const x=r.video,_=x?.buffer;if(_&&m!=="initSegment"){const M=c||l,D=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(x.ending||x.ended)){const L=M.start+M.duration*.05,B=_.buffered,F=this.currentOp("video");!B.length&&!F?this.blockAudio(M):!F&&!Lr.isBuffered(_,L)&&this.lastVideoAppendEndL||N{var M;p.executeStart=self.performance.now();const D=(M=this.tracks[a])==null?void 0:M.buffer;D&&(E?this.updateTimestampOffset(D,A,.1,a,m,g):h!==void 0&&Pn(h)&&this.updateTimestampOffset(D,h,1e-6,a,m,g)),this.appendExecutor(o,a)},onStart:()=>{},onComplete:()=>{const M=self.performance.now();p.executeEnd=p.end=M,S.first===0&&(S.first=M),k&&k.first===0&&(k.first=M);const D={};this.sourceBuffers.forEach(([N,L])=>{N&&(D[N]=Lr.getBuffered(L))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Ce.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:f,parent:l.type,timeRanges:D})},onError:M=>{var D;const N={type:Qn.MEDIA_ERROR,parent:l.type,details:Vt.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:f,error:M,err:M,fatal:!1},L=(D=this.media)==null?void 0:D.error;if(M.code===DOMException.QUOTA_EXCEEDED_ERR||M.name=="QuotaExceededError"||"quota"in M)N.details=Vt.BUFFER_FULL_ERROR;else if(M.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)N.errorAction=i1(!0);else if(M.name===M1e&&this.sourceBufferCount===0)N.errorAction=i1(!0);else{const B=++this.appendErrors[a];this.warn(`Failed ${B}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${L||"no media error"})`),(B>=this.hls.config.appendErrorMaxRetry||L)&&(N.fatal=!0)}this.hls.trigger(Ce.ERROR,N)}};this.log(`queuing "${a}" append sn: ${m}${c?" p: "+c.index:""} of ${l.type===Wn.MAIN?"level":"track"} ${l.level} cc: ${g}`),this.append(R,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(Ce.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[mo.AUDIOVIDEO]?a.push("audiovideo"):(s[mo.AUDIO]&&a.push("audio"),s[mo.VIDEO]&&a.push("video"));const l=()=>{const c=self.performance.now();r.stats.buffering.end=c,o&&(o.stats.buffering.end=c);const f=o?o.stats:r.stats;this.hls.trigger(Ce.FRAG_BUFFERED,{frag:r,part:o,stats:f,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(Ce.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Ce.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===Vt.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;Pn(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(Pn(l)&&l>=0){const f=Math.max(l,s),h=Math.floor(a/s)*s-f;this.flushBackBuffer(a,s,h)}const c=o.frontBufferFlushThreshold;if(Pn(c)&&c>0){const f=Math.max(o.maxBufferLength,c),h=Math.max(f,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=Lr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Ce.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(Ce.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(Ce.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=Lr.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),f=s.end(l-1);if(r>c||t>=c&&t<=f)return;this.hls.trigger(Ce.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 f=Math.max(0,n.fragmentStart),h=Math.max(f,o);return{duration:1/0,start:f,end:h}}return{duration:1/0}}const a=(t=this.overrides)==null?void 0:t.duration;if(a)return Pn(a)?{duration:a}:null;const s=this.media.duration,l=Pn(r.duration)?r.duration:0;return o>l&&o>s||!Pn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(Pn(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}) ${go(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(Ce.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(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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),f=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${f})${this.currentOp(s)?" Queued":""} ${go(l)}`);try{const h=r.addSourceBuffer(f),p=U9(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(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:f,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")&&ik(r,"video")&&(o=Vkt(o,r));const a=q4(o,t.levelCodec);return a?n.slice(0,5)==="audio"?xI(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(Ce.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(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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=Pn(o.duration)?o.duration:1/0,f=Pn(a.duration)?a.duration:1/0,h=Math.max(0,n),p=Math.min(r,c,f);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 XCt(`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 jae(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function JCt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function U9(e){return e==="audio"?1:0}class RW{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(Ce.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ce.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Ce.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ce.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ce.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&&Pn(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,RW.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 QCt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},iu=QCt,eEt={HLS:"h"},tEt=eEt;class yf{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof yf?r:new yf(r))),this.value=t,this.params=n}}const nEt="Dict";function rEt(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 iEt(e,t,n,r){return new Error(`failed to ${e} "${rEt(t)}" as ${n}`,{cause:r})}function bf(e,t,n){return iEt("serialize",e,t,n)}class D1e{constructor(t){this.description=t}}const Vae="Bare Item",oEt="Boolean";function sEt(e){if(typeof e!="boolean")throw bf(e,oEt);return e?"?1":"?0"}function aEt(e){return btoa(String.fromCharCode(...e))}const lEt="Byte Sequence";function uEt(e){if(ArrayBuffer.isView(e)===!1)throw bf(e,lEt);return`:${aEt(e)}:`}const cEt="Integer";function dEt(e){return e<-999999999999999||99999999999999912)throw bf(e,hEt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const vEt="String",mEt=/[\x00-\x1f\x7f]+/;function gEt(e){if(mEt.test(e))throw bf(e,vEt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function yEt(e){return e.description||e.toString().slice(7,-1)}const bEt="Token";function Uae(e){const t=yEt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw bf(t,bEt);return t}function KV(e){switch(typeof e){case"number":if(!Pn(e))throw bf(e,Vae);return Number.isInteger(e)?O1e(e):pEt(e);case"string":return gEt(e);case"symbol":return Uae(e);case"boolean":return sEt(e);case"object":if(e instanceof Date)return fEt(e);if(e instanceof Uint8Array)return uEt(e);if(e instanceof D1e)return Uae(e);default:throw bf(e,Vae)}}const _Et="Key";function qV(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw bf(e,_Et);return e}function MW(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${qV(t)}`:`;${qV(t)}=${KV(n)}`).join("")}function N1e(e){return e instanceof yf?`${KV(e.value)}${MW(e.params)}`:KV(e)}function SEt(e){return`(${e.value.map(N1e).join(" ")})${MW(e.params)}`}function kEt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw bf(e,nEt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof yf||(a=new yf(a));let s=qV(o);return a.value===!0?s+=MW(a.params):(s+="=",Array.isArray(a.value)?s+=SEt(a):s+=N1e(a)),s}).join(`,${r}`)}function B1e(e,t){return kEt(e,t)}const Hd="CMCD-Object",is="CMCD-Request",Tm="CMCD-Session",Ip="CMCD-Status",wEt={br:Hd,ab:Hd,d:Hd,ot:Hd,tb:Hd,tpb:Hd,lb:Hd,tab:Hd,lab:Hd,url:Hd,pb:is,bl:is,tbl:is,dl:is,ltc:is,mtp:is,nor:is,nrr:is,rc:is,sn:is,sta:is,su:is,ttfb:is,ttfbb:is,ttlb:is,cmsdd:is,cmsds:is,smrt:is,df:is,cs:is,ts:is,cid:Tm,pr:Tm,sf:Tm,sid:Tm,st:Tm,v:Tm,msd:Tm,bs:Ip,bsd:Ip,cdn:Ip,rtp:Ip,bg:Ip,pt:Ip,ec:Ip,e:Ip},CEt={REQUEST:is};function EEt(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 xEt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?EEt(t):{};return r.reduce((a,s)=>{var l;const c=wEt[s]||o[s]||CEt.REQUEST,f=(l=a[c])!==null&&l!==void 0?l:a[c]={};return f[s]=e[s],a},n)}function TEt(e){return["ot","sf","st","e","sta"].includes(e)}function AEt(e){return typeof e=="number"?Pn(e):e!=null&&e!==""&&e!==!1}const F1e="event";function IEt(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 Q4=e=>Math.round(e),YV=(e,t)=>Array.isArray(e)?e.map(n=>YV(n,t)):e instanceof yf&&typeof e.value=="string"?new yf(YV(e.value,t),e.params):(t.baseUrl&&(e=IEt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),tT=e=>Q4(e/100)*100,LEt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof yf&&typeof e.value=="string"?n=new yf([e]):typeof e=="string"&&(n=[e])),YV(n,t)},PEt={br:Q4,d:Q4,bl:tT,dl:tT,mtp:tT,nor:LEt,rtp:tT,tb:Q4},j1e="request",V1e="response",DW=["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"],REt=["e"],MEt=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function XL(e){return MEt.test(e)}function DEt(e){return DW.includes(e)||REt.includes(e)||XL(e)}const U1e=["d","dl","nor","ot","rtp","su"];function OEt(e){return DW.includes(e)||U1e.includes(e)||XL(e)}const $Et=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function NEt(e){return DW.includes(e)||U1e.includes(e)||$Et.includes(e)||XL(e)}const BEt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function FEt(e){return BEt.includes(e)||XL(e)}const jEt={[V1e]:NEt,[F1e]:DEt,[j1e]:OEt};function z1e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||j1e,a=r===1?FEt:jEt[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===V1e||o===F1e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const f=ao({},PEt,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let m=e[p];const g=f[p];if(typeof g=="function"&&(m=g(m,h)),p==="v"){if(r===1)return;m=r}p=="pr"&&m===1||(c&&p==="ts"&&!Pn(m)&&(m=Date.now()),AEt(m)&&(TEt(p)&&typeof m=="string"&&(m=new D1e(m)),n[p]=m))}),n}function VEt(e,t={}){const n={};if(!e)return n;const r=z1e(e,t),o=xEt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=B1e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function UEt(e,t,n){return ao(e,VEt(t,n))}const zEt="CMCD";function HEt(e,t={}){return e?B1e(z1e(e,t),{whitespace:!1}):""}function WEt(e,t={}){if(!e)return"";const n=HEt(e,t);return encodeURIComponent(n)}function GEt(e,t={}){if(!e)return"";const n=WEt(e,t);return`${zEt}=${n}`}const zae=/CMCD=[^&#]+/;function KEt(e,t,n){const r=GEt(t,n);if(!r)return e;if(zae.test(e))return e.replace(zae,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class qEt{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:iu.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),f={d:(s||a).duration*1e3,ot:c};(c===iu.VIDEO||c===iu.AUDIO||c==iu.MUXED)&&(f.br=l.bitrate/1e3,f.tb=this.getTopBandwidth(c)/1e3,f.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(a);h!=null&&h.url&&h.url!==a.url&&(f.nor=h.url),this.apply(o,f)}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(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Ce.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Ce.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:tEt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){ao(n,this.createData());const r=n.ot===iu.INIT||n.ot===iu.VIDEO||n.ot===iu.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={}),UEt(t.headers,n,a)):t.url=KEt(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 iu.TIMED_TEXT;if(t.sn==="initSegment")return iu.INIT;if(n==="audio")return iu.AUDIO;if(n==="main")return this.hls.audioTracks.length?iu.VIDEO:iu.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===iu.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===iu.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Lr.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 YEt=3e5;class XEt extends Wc{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(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ce.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ce.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===Ta.SendAlternateToPenaltyBox&&r.flags===Gu.MoveAllAlternatesMatchingHost){const o=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:l,pathwayId:c,type:f}=n.context;l&&o?s=this.getPathwayForGroupId(l,f,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===Vt.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: ${go(a)} penalized: ${go(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]>YEt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,u1e(n),this.hls.trigger(Ce.LEVELS_UPDATED,{levels:n});const f=this.hls.levels[l];c&&f&&this.levels&&(f.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&f.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${f.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 f=this.getLevelsForPathway(l).map(h=>{const p=new Xo(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 b=H1e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new sk({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:b,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${o}"`);const b=h.data;if(b?.VERSION!==1){this.log(`Steering VERSION ${b.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=b.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":C}=b;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 E={steeringManifest:b,url:o.toString()};this.hls.trigger(Ce.STEERING_MANIFEST_LOADED,E),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 b=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(b=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,b)},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,f)}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 Hae(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=ao({},s);return l.details=void 0,l.attrs=new Xo(l.attrs),l.url=l.attrs.URI=H1e(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 H1e(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(f=>{f&&c.searchParams.set(f,a[f])}),c.href}class s1 extends Wc{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=s1.CDMCleanupPromise?[s1.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=wS(this.config));const l=s.map(D9).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=X4(s);if(r!=="sinf"||l!==Qo.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=ea(new Uint8Array(o)),b=kW(JSON.parse(g).sinf),S=Bye(b);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 f=Rl(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let m=h[f];for(let g=0;gthis.generateRequestWithPreferredKeySession(b,r,o,"encrypted-event-key-match")),m.catch(C=>this.handleError(C));break}}m||this.handleError(new Error(`Key ID ${f} 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(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Ce.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Ce.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Ce.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Ce.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===Qo.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=f=>{const h=f.shift();this.getMediaKeysPromise(h,o,a).then(p=>s({keySystem:h,mediaKeys:p})).catch(p=>{f.length?c(f):p instanceof zu?l(p):l(new zu({type:Qn.KEY_SYSTEM_ERROR,details:Vt.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 t1e===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=Lwt(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: ${go(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(f=>{this.log(`Failed to obtain access to key-system "${t}": ${f}`)}),l.then(f=>{this.log(`Access for key-system "${f.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=f.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: ${Rl(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=nT(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 ${Rl(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})=>D9(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=D9(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=wS(this.config),r=t.map(X4).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,f).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:f,decryptdata:n}))))).then(c=>{const f="cenc",h=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,f,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=eo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const f=new zu(c,l.message);this.handleError(f,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?` (${Rl(r.keyId||[])})`:""}`),this.hls.trigger(Ce.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Ce.ERROR,{type:Qn.KEY_SYSTEM_ERROR,details:Vt.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=nT(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=X4(t.keyFormat),a=o?[o]:wS(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=wS(this.config)),t.length===0)throw new zu({type:Qn.KEY_SYSTEM_ERROR,details:Vt.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${go({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 b=s.call(this.hls,n,r,t);if(!b)throw new Error("Invalid response from configured generateRequest filter");n=b.initDataType,r=b.initData?b.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(b){if(this.warn(b.message),this.hls&&this.hls.config.debug)throw b}if(r===null)return this.log(`Skipping key-session request for "${o}" (no initData)`),Promise.resolve(t);const l=nT(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 f=new CW,h=t._onmessage=b=>{const S=t.mediaKeysSession;if(!S){f.emit("error",new Error("invalid state"));return}const{messageType:k,message:C}=b;this.log(`"${k}" message event for session "${S.sessionId}" message size: ${C.byteLength}`),k==="license-request"||k==="license-renewal"?this.renewLicense(t,C).catch(E=>{f.eventNames().length?f.emit("error",E):this.handleError(E)}):k==="license-release"?t.keySystem===Qo.FAIRPLAY&&this.updateKeySession(t,VV("acknowledged")).then(()=>this.removeSession(t)).catch(E=>this.handleError(E)):this.warn(`unhandled media key message type "${k}"`)},p=(b,S)=>{S.keyStatus=b;let k;b.startsWith("usable")?f.emit("resolved"):b==="internal-error"||b==="output-restricted"||b==="output-downscaled"?k=Wae(b,S.decryptdata):b==="expired"?k=new Error(`key expired (keyId: ${l})`):b==="released"?k=new Error("key released"):b==="status-pending"||this.warn(`unhandled key status change "${b}" (keyId: ${l})`),k&&(f.eventNames().length?f.emit("error",k):this.handleError(k))},m=t._onkeystatuseschange=b=>{if(!t.mediaKeysSession){f.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 ${go(k)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let E=k[l];if(E)p(E,t);else{var x;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(x=t.keyStatusTimeouts)[l]||(x[l]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const A=this.getKeyStatus(t.decryptdata);if(A&&A!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${A} from other session.`),p(A,t);this.log(`key status for ${l} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),E="internal-error",p(E,t)},1e3)),this.log(`No status for keyId ${l} (${go(k)}).`)}};Nl(t.mediaKeysSession,"message",h),Nl(t.mediaKeysSession,"keystatuseschange",m);const g=new Promise((b,S)=>{f.on("error",S),f.on("resolved",b)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(b=>{throw new zu({type:Qn.KEY_SYSTEM_ERROR,details:Vt.KEY_SYSTEM_NO_SESSION,error:b,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${b}`)}).then(()=>g).catch(b=>(f.removeAllListeners(),this.removeSession(t).then(()=>{throw b}))).then(()=>(f.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===Qo.PLAYREADY&&a.length===16&&Qye(a);const s=Rl(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},f=n.certLoadPolicy.default,h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,b,S)=>{s(m.data)},onError:(m,g,b,S)=>{l(new zu({type:Qn.KEY_SYSTEM_ERROR,details:Vt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:b,response:eo({url:c.url,data:void 0},m)},`"${t}" certificate request failed (${a}). Status: ${m.code} (${m.text})`))},onTimeout:(m,g,b)=>{l(new zu({type:Qn.KEY_SYSTEM_ERROR,details:Vt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:b,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(m,g,b)=>{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:Qn.KEY_SYSTEM_ERROR,details:Vt.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:Qn.KEY_SYSTEM_ERROR,details:Vt.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 VV(atob(f))}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 f=this.config.licenseResponseCallback;if(f)try{c=f.call(this.hls,l,s,t)}catch(h){this.error(h)}o(c)}else{const c=r.errorRetry,f=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f||l.status>=400&&l.status<500)a(new zu({type:Qn.KEY_SYSTEM_ERROR,details:Vt.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=f-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:f})=>{t.keySystem==Qo.PLAYREADY&&(f=this.unpackPlayReadyKeyMessage(c,f)),c.send(f)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,Nl(r,"encrypted",this.onMediaEncrypted),Nl(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(gu(t,"encrypted",this.onMediaEncrypted),gu(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,dg.clearKeyUriToKeyIdMap();const o=r.length;s1.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(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.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(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.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: ${Rl(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(f=>self.clearTimeout(s[f]));const{drmSystemOptions:l}=this.config;return(Rwt(l)?new Promise((f,h)=>{self.setTimeout(()=>h(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(f).catch(h)}):Promise.resolve()).catch(f=>{this.log(`Could not remove session: ${f}`),this.hls&&this.hls.trigger(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${f}`)})}).then(()=>n.close()).catch(f=>{this.log(`Could not close session: ${f}`),this.hls&&this.hls.trigger(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${f}`)})})}return Promise.resolve()}}s1.CDMCleanupPromise=void 0;function nT(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Rl(e.keyId)}function ZEt(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 Wae(e,t){const n=e==="output-restricted",r=n?Vt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Vt.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new zu({type:Qn.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class JEt{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(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Ce.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,f=this.hls;if(f.trigger(Ce.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),c>0&&s>f.config.fpsDroppedMonitoringThreshold*l){let h=f.currentLevel;f.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=h)&&(h=h-1,f.trigger(Ce.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:f.currentLevel}),f.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 W1e(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 G1e(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){no.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){no.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function Dy(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 XV(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=ext(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 eA(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=eA(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ce.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ce.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ce.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ce.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ce.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ce.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;eA(r.textTracks).forEach(s=>{Dy(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=of(l,s);if(h>-1)a=s[h];else{const p=of(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const f={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Ce.SUBTITLE_TRACKS_UPDATED,f),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=of(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(Ce.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=eA(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>GV(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||!Pn(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(Ce.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:f,url:h}=o;this.hls.trigger(Ce.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:f,url:h});const p=this.switchParams(o.url,r?.details,o.details);this.loadPlaylist(p)}}function nxt(){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 p2(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const a1=.025;let OI=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function rxt(e,t,n){return`${e.identifier}-${n+1}-${p2(t)}`}class ixt{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 z9(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=z9(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=Pn(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 z9(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 oxt(this)}}function z9(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function Ey(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class sxt{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(Ce.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(Ce.LEVEL_LOADED,s),a.once(Ce.AUDIO_TRACK_LOADED,s),a.once(Ce.SUBTITLE_TRACK_LOADED,s),a.on(Ce.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Ce.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Ce.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=K1e(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=Lr.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=Lr.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: ${Ey(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Gae=.033;class axt extends Wc{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(f.identifier)):[];s.length&&s.sort((f,h)=>{const p=f.cue.pre,m=f.cue.post,g=h.cue.pre,b=h.cue.post;if(p&&!g)return-1;if(g&&!p||m&&!b)return 1;if(b&&!m)return-1;if(!p&&!g&&!m&&!b){const S=f.startTime,k=h.startTime;if(S!==k)return S-k}return f.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(f=>{this.removeEvent(f)}),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,f)=>Math.abs(c.playout.start-a[f].playout.start)>.005||Math.abs(c.playout.end-a[f].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,f=0;if(t.forEach((h,p)=>{const m=h.cue.pre,g=h.cue.post,b=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,C=h.duration,E=h.timelineOccupancy===OI.Range?C:0,x=h.resumptionOffset,_=b?.startTime===k,A=k+h.cumulativeDuration;let R=S?A+C:k+x;if(m||!g&&k<=0){const D=f;f+=E,h.timelineStart=A;const N=s;s+=C,r.push({event:h,start:A,end:R,playout:{start:N,end:s},integrated:{start:D,end:f}})}else if(k<=a){if(!_){const L=k-c;if(L>Gae){const B=c,F=f;f+=L;const j=s;s+=L;const z={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:j,end:s},integrated:{start:F,end:f}};r.push(z)}else L>0&&b&&(b.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(R=A),h.timelineStart=A;const D=f;f+=E;const N=s;s+=C,r.push({event:h,start:A,end:R,playout:{start:N,end:s},integrated:{start:D,end:f}})}else return;const M=h.resumeTime;g||M>a?c=a:c=M}),c{const f=l.cue.pre,h=l.cue.post,p=f?0:h?o:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=Ig(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+1a1?(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 f=Ig(null,l.fragments,r);if(!f)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(f.start-r){const k=m.data,C=k?.ASSETS;if(!Array.isArray(C)){const E=this.assignAssetListError(t,Vt.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),b.url,g,S);this.hls.trigger(Ce.ERROR,E);return}t.assetListResponse=k,this.hls.trigger(Ce.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(m,g,b,S)=>{const k=this.assignAssetListError(t,Vt.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${m.code} ${m.text} (${g.url})`),g.url,S,b);this.hls.trigger(Ce.ERROR,k)},onTimeout:(m,g,b)=>{const S=this.assignAssetListError(t,Vt.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,m,b);this.hls.trigger(Ce.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Ce.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:Qn.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Kae(e){e?.play().catch(()=>{})}function rT(e,t){return`[${e}] Advancing timeline position to ${t}`}class uxt extends Wc{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 b=this.schedule.findItemIndexAtTime(r);if(b===-1&&(b=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${b})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&b>g){const S=this.schedule.findJumpRestrictedIndex(g+1,b);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(b);return}const f=this.playingAsset;if(!f){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=f.timelineStart,p=f.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,f)}},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||[],f=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=>td(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 b=this.bufferingItem;if(b&&(g=this.updateItem(b,this.bufferedPos),this.itemsMatch(b,g)?this.bufferingItem=g:b.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(b.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(E){Math.abs(C)>a1&&this.warn(`${E} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(Ce.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:f,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),b&&g!==m&&this.trimInPlace(g,b),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new lxt(t),this.schedule=new axt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ce.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ce.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Ce.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ce.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Ce.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Ce.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Ce.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Ce.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ce.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Ce.MEDIA_ENDED,this.onMediaEnded,this),t.on(Ce.ERROR,this.onError,this),t.on(Ce.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ce.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ce.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Ce.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ce.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Ce.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Ce.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Ce.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ce.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Ce.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ce.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Ce.MEDIA_ENDED,this.onMediaEnded,this),t.off(Ce.ERROR,this.onError,this),t.off(Ce.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){gu(t,"play",this.onPlay),gu(t,"pause",this.onPause),gu(t,"seeking",this.onSeeking),gu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Nl(r,"seeking",this.onSeeking),Nl(r,"timeupdate",this.onTimeupdate),Nl(r,"play",this.onPlay),Nl(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,b,S)=>{if(p){let k=p[m].start;const C=p.event;if(C){if(m==="playout"||C.timelineOccupancy!==OI.Point){const E=r(g);E?.interstitial===C&&(k+=E.assetItem.startOffset+E[S])}}else{const E=b==="bufferedPos"?s():t[b];k+=E-p.start}return k}return 0},a=(p,m)=>{var g;if(p!==0&&m!=="primary"&&(g=t.schedule)!=null&&g.length){var b;const S=t.schedule.findItemIndexAtTime(p),k=(b=t.schedule.items)==null?void 0:b[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,b;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),E=(b=t.schedule.items)==null?void 0:b[C],x=t.getBufferingPlayer(),_=x?.interstitial,A=_?.appendInPlace,R=k&&t.itemsMatch(k,E);if(k&&(A||R)){const M=r(t.playingAsset),D=M?.media||t.primaryMedia;if(D){const N=m==="primary"?D.currentTime:o(k,m,t.playingAsset,"timelinePos","currentTime"),L=p-N,B=(A?N:D.currentTime)+L;if(B>=0&&(!M||A||B<=M.duration)){D.currentTime=B;return}}}if(E){let M=p;if(m!=="primary"){const N=E[m].start,L=p-N;M=E.start+L}const D=!t.isInterstitial(E);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(D||E.event.appendInPlace)){const N=t.media||(A?x?.media:null);N&&(N.currentTime=M)}else if(k){const N=t.findItemIndex(k);if(C>N){const B=t.schedule.findJumpRestrictedIndex(N+1,C);if(B>N){t.setSchedulePosition(B);return}}let L=0;if(D)t.timelinePos=M,t.checkBuffer();else{const B=E.event.assetList,F=p-(E[m]||E).start;for(let j=B.length;j--;){const z=B[j];if(z.duration&&F>=z.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=f(),m=t.effectivePlayingItem;return m&&m===p?o(m,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-m.playout.start:0},set currentTime(p){const m=f(),g=t.effectivePlayingItem;g&&g===m&&c(p+g.playout.start,"playout")},get duration(){const p=f();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const m=(p=f())==null?void 0:p.event.assetList;return m?m.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const m=(p=f())==null?void 0:p.event;return m&&t.effectivePlayingAsset?m.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return f()}};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 f()?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 b=p.playout.start+p.event.duration;c(b+.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||!Pn(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} ${go(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,f=(r=this.detachedData)==null?void 0:r.mediaSource;let h;if(s.media)c&&(a=s.transferMedia(),this.detachedData=a),h="Primary";else if(f){const b=this.getBufferingPlayer();b?(a=b.transferMedia(),h=`${b}`):h="detached MediaSource"}else h="detached media";if(!a){if(f)a=this.detachedData,this.log(`using detachedData: MediaSource ${go(a)}`);else if(!this.detachedData||s.media===n){const b=this.playerQueue;b.length>1&&b.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 b=l&&t.assetId===g.assetIdAtEnd;m.overrides={duration:g.duration,endOfStream:!l||b,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(rT("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=H9(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=H9(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&&td(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 b=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${b+1}/${h.assetList.length} ${Ey(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Ce.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:b,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),b);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} ${td(s)}`),h.hasPlayed=!0,this.hls.trigger(Ce.INTERSTITIAL_ENDED,{event:h,schedule:o.slice(0),scheduleIndex:t}),h.cue.once)){var f;this.updateSchedule();const b=(f=this.schedule)==null?void 0:f.items;if(a&&b){const S=this.findItemIndex(a);this.advanceSchedule(S,b,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,f=this.playerQueue;if(f.length&&f.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 b=H9(h,r-1);if(h.isAssetPastPlayoutLimit(b)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=b}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 ${td(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Ce.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 b=h.assetList.length;this.warn(`asset ${r+1}/${b} 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&&Kae(m.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Kae(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 ${td(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(rT("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 ${td(t)}`),this.hls.trigger(Ce.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:Lr.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(rT("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(Ce.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Ce.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=eo(eo({},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=eo(eo({},this.altSelection),{},{audio:r});return}const a=eo(eo({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=eo(eo({},this.altSelection),{},{subtitles:r});return}const a=eo(eo({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=nae(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=nae(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=Lr.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${td(t)} (was ${td(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=Lr.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||(f=m.event)!=null&&f.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 ${td(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const f=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const m=this.getAssetPlayer(h.identifier);m&&(p===f&&m.loadSource(),m.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(f=>f.pauseBuffering());this.hls.trigger(Ce.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 f,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&&(f=Math.round(m*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:o} ${t}${f?` live-start: ${h} start-offset: ${f}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,f);p&&(t.assetListLoader=p)}else if(!s&&o){for(let f=n;f{this.hls.trigger(Ce.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:o})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const A=n.duration;A&&_{if(_.live){var A;const D=new Error(`Interstitials MUST be VOD assets ${t}`),N={fatal:!0,type:Qn.OTHER_ERROR,details:Vt.INTERSTITIAL_ASSET_ITEM_ERROR,error:D},L=((A=this.schedule)==null?void 0:A.findEventIndex(t.identifier))||-1;this.handleAssetItemError(N,t,L,r,D.message);return}const R=_.edge-_.fragmentStart,M=n.duration;(S||M===null||R>M)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${M} > ${R}`),n.duration=R,this.updateSchedule())};b.on(Ce.LEVEL_UPDATED,(_,{details:A})=>k(A)),b.on(Ce.LEVEL_PTS_UPDATED,(_,{details:A})=>k(A)),b.on(Ce.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,A)=>{const R=this.getAssetPlayer(p);if(R&&A.tracks){R.off(Ce.BUFFER_CODECS,C),R.tracks=A.tracks;const M=this.primaryMedia;this.bufferingAsset===R.assetItem&&M&&!R.media&&this.bufferAssetPlayer(R,M)}};b.on(Ce.BUFFER_CODECS,C);const E=()=>{var _;const A=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${A}`),!A||!this.schedule)return;const R=this.schedule.findEventIndex(t.identifier),M=(_=this.schedule.items)==null?void 0:_[R];this.isInterstitial(M)&&this.advanceAssetBuffering(M,n)};b.on(Ce.BUFFERED_TO_END,E);const x=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const R=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,R,_)};return b.once(Ce.MEDIA_ENDED,x(r)),b.once(Ce.PLAYOUT_LIMIT_REACHED,x(1/0)),b.on(Ce.ERROR,(_,A)=>{if(!this.schedule)return;const R=this.getAssetPlayer(p);if(A.details===Vt.BUFFER_STALLED_ERROR){if(R!=null&&R.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(A,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${A.error} ${t}`)}),b.on(Ce.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const A=new Error(`Asset player destroyed unexpectedly ${p}`),R={fatal:!0,type:Qn.OTHER_ERROR,details:Vt.INTERSTITIAL_ASSET_ITEM_ERROR,error:A};this.handleAssetItemError(R,t,this.schedule.findEventIndex(t.identifier),r,A.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Ey(n)}`),this.hls.trigger(Ce.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:b}),b}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&&td(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,f=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}/${f} ${Ey(l)}`),this.hls.trigger(Ce.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 f=this.getBufferingPlayer();if(f===t)return;const h=a.appendInPlace;if(h&&f?.interstitial.appendInPlace===!1)return;const p=f?.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&&!Iye(p,t.tracks)){const m=new Error(`Asset ${Ey(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:Qn.OTHER_ERROR,details:Vt.INTERSTITIAL_ASSET_ITEM_ERROR,error:m},b=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,b,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,f=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+f} in ${l} ${t} (media.currentTime: ${o})`),c&&(f/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=b;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: ${f}) ${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 b;const S=this.schedule.findEventIndex(s),k=(b=this.schedule.items)==null?void 0:b[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 Vt.ASSET_LIST_PARSING_ERROR:case Vt.ASSET_LIST_LOAD_ERROR:case Vt.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Vt.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 qae=500;class cxt extends wW{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Wn.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(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ce.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ce.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ce.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ce.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ce.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ce.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ce.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ce.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=en.IDLE,this.setInterval(qae),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)||(Ns(r)&&(this.fragPrevious=r),this.state=en.IDLE),!o)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const l=r.start;for(let f=0;f=a[f].start&&l<=a[f].end){s=a[f];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 sk(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new sk(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Wn.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!==en.STOPPED&&this.setInterval(qae)}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 f=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?(MI(s,p),f=s.fragmentStart):m&&(f=m.start,zV(s,f));else{var h;f=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),f===0&&m&&(f=m.start,zV(s,f))}p&&!this.startFragRequested&&this.setStartPosition(p,f)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(Ce.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===en.IDLE&&(Ig(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&&o1(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,SW(o.method)).catch(l=>{throw a.trigger(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Ce.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=en.IDLE})}}doTick(){if(!this.media){this.state=en.IDLE;return}if(this.state===en.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=Lr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,o.maxBufferHole),{end:l,len:c}=s,f=r.details,h=this.hls.maxBufferLength+f.levelTargetDuration;if(c>h)return;const p=f.fragments,m=p.length,g=f.edge;let b=null;const S=this.fragPrevious;if(lg-E?0:E;b=Ig(S,p,Math.max(p[0].start,l),x),!b&&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 fxt={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},q1e=e=>String.fromCharCode(fxt[e]||e),ld=15,nh=100,hxt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},pxt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},vxt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},mxt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},gxt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class yxt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;no.log(`${this.time} [${t}] ${r}`)}}}const Am=function(t){const n=[];for(let r=0;rnh&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=nh)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=q1e(t);if(this.pos>=nh){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 = "+go(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+go(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 Yae{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 W9(r),this.nonDisplayedMemory=new W9(r),this.lastOutputScreen=new W9(r),this.currRollUpRow=this.displayedMemory.rows[ld-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[ld-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: "+go(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 Xae{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=kxt(),this.logger=void 0;const o=this.logger=new yxt;this.channels=[null,new Yae(t,n,o),new Yae(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"["+Am([n[r],n[r+1]])+"] -> ("+Am([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(Sxt(o,a,c)){iT(null,null,c),this.logger.log(3,()=>"Repeated command ("+Am([o,a])+") is dropped");continue}iT(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 iT(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 "+Am([o,a])+" orig: "+Am([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 ("+Am([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?hxt[t]:vxt[t]:r=s===1?pxt[t]:mxt[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 '"+q1e(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 = "+Am(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=gxt[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.");R=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return M},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");M=B,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return D},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");D=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return N},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");N=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class wxt{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function X1e(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 Cxt=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 Z1e(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 ZV=new OW(0,0,""),oT=ZV.align==="middle"?"middle":"center";function Ext(e,t,n){const r=e;function o(){const l=X1e(e);if(l===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,c){const f=new Cxt;Z1e(l,function(m,g){let b;switch(m){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){f.set(m,n[S].region);break}break;case"vertical":f.alt(m,g,["rl","lr"]);break;case"line":b=g.split(","),f.integer(m,b[0]),f.percent(m,b[0])&&f.set("snapToLines",!1),f.alt(m,b[0],["auto"]),b.length===2&&f.alt("lineAlign",b[1],["start",oT,"end"]);break;case"position":b=g.split(","),f.percent(m,b[0]),b.length===2&&f.alt("positionAlign",b[1],["start",oT,"end","line-left","line-right","auto"]);break;case"size":f.percent(m,g);break;case"align":f.alt(m,g,["start",oT,"end","left","right"]);break}},/:/,/\s/),c.region=f.get("region",null),c.vertical=f.get("vertical","");let h=f.get("line","auto");h==="auto"&&ZV.line===-1&&(h=-1),c.line=h,c.lineAlign=f.get("lineAlign","start"),c.snapToLines=f.get("snapToLines",!0),c.size=f.get("size",100),c.align=f.get("align",oT);let p=f.get("position","auto");p==="auto"&&ZV.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 J1e(e){return e.replace(//gi,` `)}class xxt{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new wxt,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=J1e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{Ext(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 Txt=/\r\n|\n\r|\n|\r/g,G9=function(t,n,r=0){return t.slice(r,r+n.length)===n},Axt=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(!Pn(n)||!Pn(r)||!Pn(o)||!Pn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function $W(e,t,n){return p2(e.toString())+p2(t.toString())+p2(n)}const Ixt=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 Lxt(e,t,n,r,o,a,s){const l=new xxt,c=nc(new Uint8Array(e)).trim().replace(Txt,` `).split(` `),f=[],h=t?$Ct(t.baseTime,t.timescale):0;let p="00:00.000",m=0,g=0,b,S=!0;l.oncue=function(k){const C=n[r];let E=n.ccOffset;const x=(m-h)/9e4;if(C!=null&&C.new&&(g!==void 0?E=n.ccOffset=C.start:Ixt(n,r,x)),x){if(!t){b=new Error("Missing initPTS for VTT MPEGTS");return}E=x-n.presentationOffset}const _=k.endTime-k.startTime,A=Ku((k.startTime+E-g)*9e4,o*9e4)/9e4;k.startTime=Math.max(A,0),k.endTime=Math.max(A+_,0);const R=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(R)),k.id||(k.id=$W(k.startTime,k.endTime,R)),k.endTime>0&&f.push(k)},l.onparsingerror=function(k){b=k},l.onflush=function(){if(b){s(b);return}a(f)},c.forEach(k=>{if(S)if(G9(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{G9(C,"LOCAL:")?p=C.slice(6):G9(C,"MPEGTS:")&&(m=parseInt(C.slice(7)))});try{g=Axt(p)/1e3}catch(C){b=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const K9="stpp.ttml.im1t",Q1e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ebe=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Pxt={left:"start",center:"center",right:"end",start:"start",end:"end"};function Zae(e,t,n,r){const o=ii(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>nc(l)),s=OCt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(Rxt(l,s)))}catch(l){r(l)}}function Rxt(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=Jae(q9(o,"styling","style")),f=Jae(q9(o,"layout","region")),h=q9(o,"body","[begin]");return[].map.call(h,p=>{const m=tbe(p,l);if(!m||!p.hasAttribute("begin"))return null;const g=X9(p.getAttribute("begin"),s),b=X9(p.getAttribute("dur"),s);let S=X9(p.getAttribute("end"),s);if(g===null)throw Qae(p);if(S===null){if(b===null)throw Qae(p);S=g+b}const k=new OW(g-t,S-t,m);k.id=$W(k.startTime,k.endTime,k.text);const C=f[p.getAttribute("region")],E=c[p.getAttribute("style")],x=Mxt(C,E,c),{textAlign:_}=x;if(_){const A=Pxt[_];A&&(k.lineAlign=A),k.align=_}return ao(k,x),k}).filter(p=>p!==null)}function q9(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function Jae(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function tbe(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?tbe(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function Mxt(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 f=Y9(t,r,c)||Y9(e,r,c)||Y9(o,r,c);return f&&(l[c]=f),l},{})}function Y9(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Qae(e){return new Error(`Could not parse ttml timestamp ${e}`)}function X9(e,t){if(!e)return null;let n=X1e(e);return n===null&&(Q1e.test(e)?n=Dxt(e,t):ebe.test(e)&&(n=Oxt(e,t))),n}function Dxt(e,t){const n=Q1e.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 Oxt(e,t){const n=ebe.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 sT{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 $xt{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=tle(),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(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ce.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ce.FRAG_LOADING,this.onFragLoading,this),t.on(Ce.FRAG_LOADED,this.onFragLoaded,this),t.on(Ce.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Ce.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Ce.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ce.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ce.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ce.FRAG_LOADING,this.onFragLoading,this),t.off(Ce.FRAG_LOADED,this.onFragLoaded,this),t.off(Ce.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Ce.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Ce.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ce.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new sT(this,"textTrack1"),n=new sT(this,"textTrack2"),r=new sT(this,"textTrack3"),o=new sT(this,"textTrack4");this.cea608Parser1=new Xae(1,t,n),this.cea608Parser2=new Xae(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],f=Nxt(c[0],c[1],n,r);if(f>=0&&(c[0]=Math.min(c[0],n),c[1]=Math.max(c[1],r),s=!0,f/(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(Ce.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===Wn.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(Ce.FRAG_LOADED,c):this.hls.trigger(Ce.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{Dy(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=tle(),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===K9);if(this.config.enableWebVTT||o&&this.config.enableIMSC1){if(R1e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?eA(s.textTracks):null;if(this.tracks.forEach((c,f)=>{let h;if(l){let p=null;for(let m=0;mf!==null).map(f=>f.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(Ce.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===Wn.MAIN){var r,o;const{cea608Parser1:a,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:f}=n.frag,h=(r=(o=n.part)==null?void 0:o.index)!=null?r:-1;a&&s&&(f!==l+1||f===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=c,this.lastSn=f,this.lastPartIndex=h}}onFragLoaded(t,n){const{frag:r,payload:o}=n;if(r.type===Wn.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===K9?this._parseIMSC1(r,o):this._parseVTTs(n)}}else this.hls.trigger(Ce.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;Zae(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(Ce.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(Ce.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,f=(n=r.initSegment)!=null&&n.data?Uc(r.initSegment.data,new Uint8Array(o)).buffer:o;Lxt(f,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Ce.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(Ce.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||Zae(n,this.initPTS[t.cc],()=>{r.textCodec=K9,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=>G1e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(Ce.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Wn.SUBTITLE&&this.onFragLoaded(Ce.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===Wn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aXV(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>XV(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=J1e(f.trim()),b=$W(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(b)||(s=new h(t,n,g),s.id=b,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=>G1e(e,m))),o}};function jxt(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const Vxt=/(\d+)-(\d+)\/(\d+)/;class nle{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||Wxt,this.controller=new self.AbortController,this.stats=new pW}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=Uxt(t,this.controller.signal),s=t.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:f}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),n.timeout=c&&Pn(c)?c:f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(uk(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=f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},f-(g-o.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new Gxt(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=Hxt(p.headers)||o.total;const b=(m=this.callbacks)==null?void 0:m.onProgress;return b&&Pn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,b):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var m,g;const b=this.response;if(!b)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:b.url,data:p,code:b.status},C=(m=this.callbacks)==null?void 0:m.onProgress;C&&!Pn(n.highWaterMark)&&C(o,t,p,b),(g=this.callbacks)==null||g.onSuccess(k,o,t,b)}).catch(p=>{var m;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const g=p&&p.code||0,b=p?p.message:null;(m=this.callbacks)==null||m.onError({code:g,text:b},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 f1e,l=t.body.getReader(),c=()=>l.read().then(f=>{if(f.done)return s.dataLength&&a(n,r,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const h=f.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 Uxt(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(ao({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function zxt(e){const t=Vxt.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function Hxt(e){const t=e.get("Content-Range");if(t){const r=zxt(t);if(Pn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function Wxt(e,t){return new self.Request(e.url,t)}class Gxt extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const Kxt=/^age:\s*[\d.]+\s*$/im;class rbe{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 pW,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&&Pn(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 f=n.status,h=n.responseType==="text"?n.responseText:null;if(f>=200&&f<300){const b=h??n.response;if(b!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?b.byteLength:b.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,b,n);const C={url:n.responseURL,data:b,code:f};(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:f};if(LI(p,m,!1,g))this.retry(p);else{var c;no.error(`${f} while loading ${t.url}`),(c=this.callbacks)==null||c.onError({code:f,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(LI(t,n,!0))this.retry(t);else{var r;no.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=yW(t,r.retry),r.retry++,no.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&&Kxt.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 qxt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Yxt=eo(eo({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:rbe,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:awt,bufferController:ZCt,capLevelController:RW,errorController:fwt,fpsController:JEt,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:t1e,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:qxt},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},Xxt()),{},{subtitleStreamController:cxt,subtitleTrackController:txt,timelineController:$xt,audioStreamController:KCt,audioTrackController:qCt,emeController:s1,cmcdController:qEt,contentSteeringController:XEt,interstitialsController:uxt});function Xxt(){return{cueHandler:Fxt,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 Zxt(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=JV(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,f=[];a.forEach(h=>{const p=`${s}Loading${h}`,m=t[p];if(m!==void 0&&c){f.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}}}),f.length&&n.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${l}": ${go(t[l])}`)}),eo(eo({},r),t)}function JV(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(JV):Object.keys(e).reduce((t,n)=>(t[n]=JV(e[n]),t),{}):e}function Jxt(e,t){const n=e.loader;n!==nle&&n!==rbe?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):jxt()&&(e.loader=nle,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const tA=2,Qxt=.1,eTt=.05,tTt=100;class nTt extends Xye{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(Ce.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.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(tTt),this.mediaSource=n.mediaSource;const r=this.media=n.media;Nl(r,"playing",this.onMediaPlaying),Nl(r,"waiting",this.onMediaWaiting),Nl(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(gu(r,"playing",this.onMediaPlaying),gu(r,"waiting",this.onMediaWaiting),gu(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,f=!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(f||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(Ce.MEDIA_ENDED,{stalled:!1}));return}if(!Lr.getBuffered(s).length){this.nudgeRetry=0;return}const p=Lr.bufferInfo(s,t,0),m=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const R=rle(this.hls.inFlightFragments,t),M=p.len>tA,D=!m||R||m-t>tA&&!g.getPartialFragment(t);if(M||D)return;this.moved=!1}const b=(o=this.hls)==null?void 0:o.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!m)return;const M=Math.max(m,p.start||0)-t,N=!!(b!=null&&b.live)?b.targetduration*2:tA,L=aT(t,g);if(M>0&&(M<=N||L)){s.paused||this._trySkipBufferHole(L);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),C=this.waiting;let E=this.stalled;if(E===null)if(C>0&&k-C=S||C)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(b!=null&&b.live)&&Math.abs(t-(b?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Ce.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const A=Lr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(A,x,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(Ce.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=Lr.bufferedInfo(Lr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=Lr.timeRangesToArray(o),l=Lr.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-f<1&&t-f<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${f} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let m=aT(t,this.fragmentTracker);m&&"fragment"in m?m=m.fragment:m||(m=void 0);const g=Lr.bufferInfo(this.media,t,0);this.hls.trigger(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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 f=(a=this.hls)==null?void 0:a.latestLevelDetails,h=aT(r,s);if((h||f!=null&&f.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,Wn.MAIN),s=r.getFragAtPos(o,Wn.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 (${go(t)})`);this.warn(s.message),n.trigger(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.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=Lr.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 b=!1;if(s===0){const S=r.getAppendedFrag(0,Wn.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function Z9(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,go(o?eo({type:o},r):r))}return a}const lT=(()=>{const e=QV();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class iTt{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(Ce.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(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ce.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Ce.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Ce.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ce.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&&Dy(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;nlT&&(p=lT),p-h<=0&&(p=h+rTt);for(let g=0;gh.type===Yu.audioId3&&c:o==="video"?f=h=>h.type===Yu.emsg&&l:f=h=>h.type===Yu.audioId3&&c||h.type===Yu.emsg&&l,XV(a,n,r,f)}}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=QV();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=Z9(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:f}=t,h=Object.keys(f);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],E=(g=p[C])==null?void 0:g.cues;delete p[C],E&&Object.keys(E).forEach(x=>{const _=E[x];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(_)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const b=t.fragments[t.fragments.length-1];if(!(h.length===0||!Pn(b?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(F!==C.id){const j=f[F];if(j.class===C.class&&j.startDate>C.startDate&&(!B||C.startDate.01&&(F.startTime=E,F.endTime=R);else if(l){let j=C.attr[B];xwt(B)&&(j=Lye(j));const q=Z9(l,E,R,{key:B,data:j},Yu.dateRange);q&&(q.id=k,this.id3Track.addCue(q),_[B]=q,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&q.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:A}}}}}class oTt{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,f=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 f=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||f===0)&&(f=a!==void 0?a:s*o);const h=o;return f+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(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ce.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ce.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ce.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ce.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===Vt.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 sTt extends PW{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(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ce.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ce.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ce.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ce.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,f=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:m,videoCodec:g}=h;m&&(h.audioCodec=m=xI(m,r)||void 0),g&&(g=h.videoCodec=Ukt(g));const{width:b,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(b&&S)),c||(c=!!g),f||(f=!!m),C||m&&!this.isAudioSupported(m)||g&&!this.isVideoSupported(g)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:E,"FRAME-RATE":x,"HDCP-LEVEL":_,"PATHWAY-ID":A,RESOLUTION:R,"VIDEO-RANGE":M}=p,N=`${`${A||"."}-`}${h.bitrate}-${R}-${x}-${E}-${M}-${_}`;if(a[N])if(a[N].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[N]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[N]=B,o.push(B)}else a[N].addGroupId("audio",p.AUDIO),a[N].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[N]=L,s[N]=1,o.push(L)}}),this.filterAndSortMediaOptions(o,n,l,c,f)}createLevel(t){const n=new sk(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=Uye(o,[])}return n}isAudioSupported(t){return ik(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return ik(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,o,a){var s;let l=[],c=[],f=t;const h=((s=n.stats)==null?void 0:s.parsing)||{};if((r||o)&&a&&(f=f.filter(({videoCodec:E,videoRange:x,width:_,height:A})=>(!!E||!!(_&&A))&&Jkt(x))),f.length===0){Promise.resolve().then(()=>{if(this.hls){let E="no level with compatible codecs found in manifest",x=E;n.levels.length&&(x=`one or more CODECS in variant not supported: ${go(n.levels.map(A=>A.attrs.CODECS).filter((A,R,M)=>M.indexOf(A)===R))}`,this.warn(x),E+=` (${x})`);const _=new Error(E);this.hls.trigger(Ce.ERROR,{type:Qn.MEDIA_ERROR,details:Vt.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:x})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(E=>!E.audioCodec||this.isAudioSupported(E.audioCodec)),ole(l)),n.subtitles&&(c=n.subtitles,ole(c));const p=f.slice(0);f.sort((E,x)=>{if(E.attrs["HDCP-LEVEL"]!==x.attrs["HDCP-LEVEL"])return(E.attrs["HDCP-LEVEL"]||"")>(x.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&E.height!==x.height)return E.height-x.height;if(E.frameRate!==x.frameRate)return E.frameRate-x.frameRate;if(E.videoRange!==x.videoRange)return TI.indexOf(E.videoRange)-TI.indexOf(x.videoRange);if(E.videoCodec!==x.videoCodec){const _=Xse(E.videoCodec),A=Xse(x.videoCodec);if(_!==A)return A-_}if(E.uri===x.uri&&E.codecSet!==x.codecSet){const _=EI(E.codecSet),A=EI(x.codecSet);if(_!==A)return A-_}return E.averageBitrate!==x.averageBitrate?E.averageBitrate-x.averageBitrate:0});let m=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let E=0;E_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=A)}break}const b=a&&!o,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),C={levels:f,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:o,altAudio:k&&!b&&l.some(E=>!!E.url)};h.end=performance.now(),this.hls.trigger(Ce.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(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.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(Ce.LEVEL_SWITCHING,c);const f=s.details;if(!f||f.live){const h=this.switchParams(s.uri,o?.details,f);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===ci.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Wn.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(Ce.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));u1e(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(Ce.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(Ce.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function ole(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function ibe(){return self.SourceBuffer||self.WebKitSourceBuffer}function obe(){if(!bv())return!1;const t=ibe();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function aTt(){if(!obe())return!1;const e=bv();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(ok(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(ok(t,"audio"))))}function lTt(){var e;const t=ibe();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const uTt=100;class cTt extends wW{constructor(t,n,r){super(t,n,r,"stream-controller",Wn.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||!Pn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,Wn.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(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ce.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Ce.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ce.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Ce.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ce.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ce.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ce.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ce.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ce.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Ce.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ce.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Ce.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ce.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ce.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(uTt),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=en.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=en.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case en.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=en.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=en.IDLE;break}break}case en.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===en.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(Ce.BUFFER_EOS,S),this.state=en.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 f=s.details;if(!f||this.state===en.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=en.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,f);if(this.couldBacktrack&&!this.fragPrevious&&g&&Ns(g)&&this.fragmentTracker.getState(g)!==na.OK){var b;const k=((b=this.backtrackFragment)!=null?b:g).sn-f.startSN,C=f.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?mo.AUDIO:mo.VIDEO,C=(k===mo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,Wn.MAIN)}g=this.getNextFragmentLoopLoading(g,f,l,Wn.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===na.NOT_LOADED||o===na.PARTIAL?Ns(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,Wn.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(Ce.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Ce.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Ce.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=AI(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 f=r[l];f&&(this.videoBuffer=f.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===Wn.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===en.PARSED&&(this.state=en.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Ns(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&Lr.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=en.ERROR;return}switch(n.details){case Vt.FRAG_GAP:case Vt.FRAG_PARSING_ERROR:case Vt.FRAG_DECRYPT_ERROR:case Vt.FRAG_LOAD_ERROR:case Vt.FRAG_LOAD_TIMEOUT:case Vt.KEY_LOAD_ERROR:case Vt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Wn.MAIN,n);break;case Vt.LEVEL_LOAD_ERROR:case Vt.LEVEL_LOAD_TIMEOUT:case Vt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===en.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===ci.LEVEL&&(this.state=en.IDLE);break;case Vt.BUFFER_ADD_CODEC_ERROR:case Vt.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Vt.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 Vt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=en.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==mo.AUDIO||!this.altAudio){const r=(n===mo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Wn.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=en.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(Ce.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===en.STOPPED||this.state===en.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:f}=s,{video:h,text:p,id3:m,initSegment:g}=o,{details:b}=f,S=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=en.PARSING,g){const k=g.tracks;if(k){const _=l.initSegment||l;if(this.unhandledEncryptionError(g,l))return;this._bufferInitSegment(f,k,_,a),r.trigger(Ce.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,E=g.timescale,x=this.initPTS[l.cc];if(Pn(C)&&(!x||x.baseTime!==C||x.timescale!==E)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:E,trackId:_},r.trigger(Ce.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:E,trackId:_})}}if(h&&b){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=b.fragments[l.sn-1-b.startSN],C=l.sn===b.startSN,E=!k||l.cc>k.cc;if(o.independent!==!1){const{startPTS:x,endPTS:_,startDTS:A,endDTS:R}=h;if(c)c.elementaryStreams[h.type]={startPTS:x,endPTS:_,startDTS:A,endDTS:R};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!E&&(this.couldBacktrack=!0),h.dropped&&h.independent){const M=this.getMainFwdBufferInfo(),D=(M?M.end:this.getLoadPosition())+this.config.maxBufferHole,N=h.firstKeyFramePTS?h.firstKeyFramePTS:x;if(!C&&DtA&&(l.gap=!0);l.setElementaryStreamInfo(h.type,x,_,A,R),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,C||E)}else if(C||E)l.gap=!0;else{this.backtrack(l);return}}if(S){const{startPTS:k,endPTS:C,startDTS:E,endDTS:x}=S;c&&(c.elementaryStreams[mo.AUDIO]={startPTS:k,endPTS:C,startDTS:E,endDTS:x}),l.setElementaryStreamInfo(mo.AUDIO,k,C,E,x),this.bufferFragmentData(S,l,c,a)}if(b&&m!=null&&m.samples.length){const k={id:n,frag:l,details:b,samples:m.samples};r.trigger(Ce.FRAG_PARSING_METADATA,k)}if(b&&p){const k={id:n,frag:l,details:b,samples:p.samples};r.trigger(Ce.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${Ns(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,o){if(this.state!==en.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 f=t.audioCodec;let h=q4(a.codec,f);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}`)),f&&f!==h&&this.log(`Swapping manifest audio codec "${f}" for "${h}"`),a.levelCodec=h,a.id=Wn.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${h||""}/${f||""}/${a.codec}]`),delete n.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=Wn.MAIN;const f=s.codec;if(f?.length===4)switch(f){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||""}/${f}]${s.codec!==f?" 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(Ce.BUFFER_CODECS,n),!this.hls)return;c.forEach(f=>{const p=n[f].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Ce.BUFFER_APPENDING,{type:f,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,Wn.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=en.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(Lr.isBuffered(t,r)?n=this.getAppendedFrag(r):Lr.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(Ce.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(Ce.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 Pn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Pn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?Ig(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 dTt extends Wc{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=Vt.KEY_LOAD_ERROR,r,o,a){return new lh({type:Qn.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=X4(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=wS(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 f=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,Vt.KEY_LOAD_ERROR,f))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Vt.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=J9(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: "+Rl(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,Vt.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=Lkt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${Rl(l)}`),t.decryptdata.keyId=l,dg.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},f=r.keyLoadPolicy.default,h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,b,S)=>{const{frag:k,keyInfo:C}=b,E=J9(C.decryptdata);if(!k.decryptdata||C!==this.keyIdToKeyInfo[E])return l(this.createKeyLoadError(k,Vt.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,b,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Vt.KEY_LOAD_ERROR,new Error(`HTTP Error ${m.code} loading key ${m.text}`),b,eo({url:c.url,data:void 0},m)))},onTimeout:(m,g,b)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Vt.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),b))},onAbort:(m,g,b)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Vt.INTERNAL_ABORTED,new Error("key loading aborted"),b))}};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=J9(r.decryptdata)||o;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function J9(e){if(e.keyFormat!==Ma.FAIRPLAY){const t=e.keyId;if(t)return Rl(t)}return e.uri}function sle(e){const{type:t}=e;switch(t){case ci.AUDIO_TRACK:return Wn.AUDIO;case ci.SUBTITLE_TRACK:return Wn.SUBTITLE;default:return Wn.MAIN}}function Q9(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class fTt{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(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ce.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Ce.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Ce.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Ce.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ce.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ce.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Ce.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Ce.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:ci.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:ci.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:ci.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:ci.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[ci.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[ci.LEVEL])}}load(t){var n;const r=this.hls.config;let o=this.getInternalLoader(t);if(o){const f=this.hls.logger,h=o.context;if(h&&h.levelOrTrack===t.levelOrTrack&&(h.url===t.url||h.deliveryDirectives&&!t.deliveryDirectives)){h.url===t.url?f.log(`[playlist-loader]: ignore ${t.url} ongoing request`):f.log(`[playlist-loader]: ignore ${t.url} in favor of ${h.url}`);return}f.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),o.abort()}let a;if(t.type===ci.MANIFEST?a=r.manifestLoadPolicy.default:a=ao({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),Pn((n=t.deliveryDirectives)==null?void 0:n.part)){let f;if(t.type===ci.LEVEL&&t.level!==null?f=this.hls.levels[t.level].details:t.type===ci.AUDIO_TRACK&&t.id!==null?f=this.hls.audioTracks[t.id].details:t.type===ci.SUBTITLE_TRACK&&t.id!==null&&(f=this.hls.subtitleTracks[t.id].details),f){const h=f.partTarget,p=f.targetduration;if(h&&p){const m=Math.max(h*3,p*.8)*1e3;a=ao({},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:(f,h,p,m)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const b=f.data;h.parsing.start=performance.now(),sf.isMediaPlaylist(b)||p.type!==ci.MANIFEST?this.handleTrackOrLevelPlaylist(f,h,p,m||null,g):this.handleMasterPlaylist(f,h,p,m)},onError:(f,h,p,m)=>{this.handleNetworkError(h,p,!1,f,m)},onTimeout:(f,h,p)=>{this.handleNetworkError(h,p,!0,void 0,f)}};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=Q9(t,r),c=sf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,o,n);return}const{contentSteering:f,levels:h,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:b}=c;this.variableList=b,h.forEach(E=>{const{unknownCodecs:x}=E;if(x){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:A,videoCodec:R}=E;for(let M=x.length;M--;){const D=x[M];ik(D,"audio",_)?(E.audioCodec=A=A?`${A},${D}`:D,I1.audio[A.substring(0,4)]=2,x.splice(M,1)):ik(D,"video",_)&&(E.videoCodec=R=R?`${R},${D}`:D,I1.video[R.substring(0,4)]=2,x.splice(M,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=sf.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(x=>!x.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 Xo({}),bitrate:0,url:""})),a.trigger(Ce.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:f,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:b})}handleTrackOrLevelPlaylist(t,n,r,o,a){const s=this.hls,{id:l,level:c,type:f}=r,h=Q9(t,r),p=Pn(c)?c:Pn(l)?l:0,m=sle(r),g=sf.parseLevelPlaylist(t.data,h,p,m,0,this.variableList);if(f===ci.MANIFEST){const b={attrs:new Xo({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+s1e(g,0),s.trigger(Ce.MANIFEST_LOADED,{levels:[b],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(Ce.ERROR,{type:Qn.NETWORK_ERROR,details:Vt.MANIFEST_PARSING_ERROR,fatal:n.type===ci.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===ci.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===ci.AUDIO_TRACK||t.type===ci.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=Vt.UNKNOWN,f=!1;const h=this.getInternalLoader(t);switch(t.type){case ci.MANIFEST:c=r?Vt.MANIFEST_LOAD_TIMEOUT:Vt.MANIFEST_LOAD_ERROR,f=!0;break;case ci.LEVEL:c=r?Vt.LEVEL_LOAD_TIMEOUT:Vt.LEVEL_LOAD_ERROR,f=!1;break;case ci.AUDIO_TRACK:c=r?Vt.AUDIO_TRACK_LOAD_TIMEOUT:Vt.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case ci.SUBTITLE_TRACK:c=r?Vt.SUBTITLE_TRACK_LOAD_TIMEOUT:Vt.SUBTITLE_LOAD_ERROR,f=!1;break}h&&this.resetInternalLoader(t.type);const p={type:Qn.NETWORK_ERROR,details:c,fatal:f,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(o){const m=n?.url||t.url;p.response=eo({url:m,data:void 0},o)}this.hls.trigger(Ce.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:f,levelOrTrack:h,id:p,groupId:m,deliveryDirectives:g}=o,b=Q9(n,o),S=sle(o);let k=typeof o.level=="number"&&S===Wn.MAIN?f:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Ce.ERROR,{type:Qn.NETWORK_ERROR,details:Vt.LEVEL_PARSING_ERROR,fatal:!1,url:b,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 E=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(Ce.ERROR,{type:Qn.NETWORK_ERROR,details:Vt.LEVEL_EMPTY_ERROR,fatal:!1,url:b,error:E,reason:E.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 ci.MANIFEST:case ci.LEVEL:if(k){if(!h)k=0;else if(h!==l.levels[k]){const E=l.levels.indexOf(h);E>-1&&(k=E)}}l.trigger(Ce.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===ci.MANIFEST});break;case ci.AUDIO_TRACK:l.trigger(Ce.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case ci.SUBTITLE_TRACK:l.trigger(Ce.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class pu{static get version(){return ak}static isMSESupported(){return obe()}static isSupported(){return aTt()}static getMediaSource(){return bv()}static get Events(){return Ce}static get MetadataSchema(){return Yu}static get ErrorTypes(){return Qn}static get ErrorDetails(){return Vt}static get DefaultConfig(){return pu.defaultConfig?pu.defaultConfig:Yxt}static set DefaultConfig(t){pu.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 CW,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=ykt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=Zxt(pu.DefaultConfig,t,n);this.userConfig=t,r.progressive&&Jxt(r,n);const{abrController:o,bufferController:a,capLevelController:s,errorController:l,fpsController:c}=r,f=new l(this),h=this.abrController=new o(this),p=new hwt(this),m=r.interstitialsController,g=m?this.interstitialsController=new m(this,pu):null,b=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new fTt(this),E=r.contentSteeringController,x=E?new E(this):null,_=this.levelController=new sTt(this,x),A=new iTt(this),R=new dTt(this.config,this.logger),M=this.streamController=new cTt(this,p,R),D=this.gapController=new nTt(this,p);S.setStreamController(M),k.setStreamController(M);const N=[C,_,M];g&&N.splice(1,0,g),x&&N.splice(1,0,x),this.networkControllers=N;const L=[h,b,D,S,k,A,p];this.audioTrackController=this.createController(r.audioTrackController,N);const B=r.audioStreamController;B&&N.push(this.audioStreamController=new B(this,p,R)),this.subtitleTrackController=this.createController(r.subtitleTrackController,N);const F=r.subtitleStreamController;F&&N.push(this.subtititleStreamController=new F(this,p,R)),this.createController(r.timelineController,L),R.emeController=this.emeController=this.createController(r.emeController,L),this.cmcdController=this.createController(r.cmcdController,L),this.latencyController=this.createController(oTt,L),this.coreComponents=L,N.push(f);const j=f.onErrorOut;typeof j=="function"&&this.on(Ce.ERROR,j,f),this.on(Ce.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===Ce.ERROR;this.trigger(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.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(Ce.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(Ce.ERROR,{type:Qn.OTHER_ERROR,details:Vt.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(Ce.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Ce.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Ce.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=hW.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(Ce.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={[Wn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Wn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Wn.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=nxt()),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){Zkt(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=Wye(n);return zye(t,r,navigator.mediaCapabilities)}}pu.defaultConfig=void 0;const hTt={class:"player-header"},pTt={class:"player-controls"},vTt={class:"compact-button-group"},mTt={class:"compact-btn selector-btn"},gTt={class:"compact-btn selector-btn"},yTt={__name:"PlayerHeader",props:{episodeName:{type:String,default:"未知选集"},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},autoNextEnabled:{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}},emits:["toggle-auto-next","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change"],setup(e,{emit:t}){const n=t,r=pe("disabled"),o=pe([]),a=p=>{if(!p)return"未知";const m=p.indexOf("#");return m!==-1&&m{try{const p=JSON.parse(localStorage.getItem("addressSettings")||"{}"),m=p.proxyPlayEnabled||!1,g=p.proxyPlay||"";if(o.value=[],l(),m&&g){if(!o.value.some(S=>S.url===g)){const S=a(g);o.value.unshift({value:g,label:S,url:g})}r.value=g}else r.value="disabled"}catch(p){console.error("加载代理播放配置失败:",p),r.value="disabled"}},l=()=>{try{JSON.parse(localStorage.getItem("proxy-play-history")||"[]").forEach(m=>{if(!o.value.some(b=>b.url===m.url)){const b=a(m.url);o.value.push({value:m.url,label:b,url:m.url})}})}catch(p){console.error("加载代理播放历史记录失败:",p)}},c=p=>{if(!(!p||p==="disabled"))try{const m=JSON.parse(localStorage.getItem("proxy-play-history")||"[]"),g=a(p),b=m.findIndex(S=>S.url===p);b!==-1&&m.splice(b,1),m.unshift({url:p,name:g,timestamp:Date.now()}),m.length>10&&m.splice(10),localStorage.setItem("proxy-play-history",JSON.stringify(m))}catch(m){console.error("保存代理播放历史记录失败:",m)}},f=p=>{r.value=p,p!=="disabled"&&c(p),n("proxy-change",p)},h=p=>{p.key==="addressSettings"&&s()};return ln(()=>{s(),window.addEventListener("storage",h),window.addEventListener("addressSettingsChanged",s)}),si(()=>{window.removeEventListener("storage",h),window.removeEventListener("addressSettingsChanged",s)}),(p,m)=>{const g=Pe("a-option"),b=Pe("a-select");return H(),J("div",hTt,[I("h3",null,"正在播放: "+Ne(e.episodeName),1),I("div",pTt,[I("div",vTt,[e.showDebugButton?(H(),J("div",{key:0,class:"compact-btn debug-btn",onClick:m[0]||(m[0]=S=>p.$emit("toggle-debug")),title:"调试信息"},[...m[6]||(m[6]=[mg('调试',2)])])):Ae("",!0),e.showAutoNext&&e.episodes.length>1?(H(),J("div",{key:1,class:se(["compact-btn",{active:e.autoNextEnabled}]),onClick:m[1]||(m[1]=S=>p.$emit("toggle-auto-next"))},[...m[7]||(m[7]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),I("span",{class:"btn-text"},"自动连播",-1)])],2)):Ae("",!0),e.showCountdown&&e.episodes.length>1?(H(),J("div",{key:2,class:se(["compact-btn",{active:e.countdownEnabled}]),onClick:m[2]||(m[2]=S=>p.$emit("toggle-countdown"))},[...m[8]||(m[8]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"倒计时",-1)])],2)):Ae("",!0),I("div",mTt,[m[10]||(m[10]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(b,{"model-value":r.value,onChange:f,class:"compact-select",size:"small"},{default:de(()=>[O(g,{value:"disabled"},{default:de(()=>[...m[9]||(m[9]=[He("代理播放:关闭",-1)])]),_:1}),(H(!0),J(Ft,null,fn(o.value,S=>(H(),Ye(g,{key:S.value,value:S.value},{default:de(()=>[He(" 代理播放:"+Ne(S.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["model-value"])]),I("div",gTt,[m[13]||(m[13]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),I("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),O(b,{"model-value":e.playerType,onChange:m[3]||(m[3]=S=>p.$emit("player-change",S)),class:"compact-select",size:"small"},{default:de(()=>[O(g,{value:"default"},{default:de(()=>[...m[11]||(m[11]=[He("默认播放器",-1)])]),_:1}),O(g,{value:"artplayer"},{default:de(()=>[...m[12]||(m[12]=[He("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),I("div",{class:se(["compact-btn",{active:e.skipEnabled}]),onClick:m[4]||(m[4]=S=>p.$emit("open-skip-settings"))},[...m[14]||(m[14]=[mg('片头片尾',2)])],2),I("div",{class:"compact-btn close-btn",onClick:m[5]||(m[5]=S=>p.$emit("close"))},[...m[15]||(m[15]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"关闭",-1)])])])])])}}},sbe=vr(yTt,[["__scopeId","data-v-adeb6a4e"]]),bTt={class:"dialog-header"},_Tt={class:"dialog-content"},STt={class:"setting-row"},kTt={class:"setting-control"},wTt={key:1,class:"unit"},CTt={class:"setting-row"},ETt={class:"setting-control"},xTt={key:1,class:"unit"},TTt={class:"dialog-footer"},ATt={__name:"SkipSettingsDialog",props:{visible:{type:Boolean,default:!1},skipIntroEnabled:{type:Boolean,default:!1},skipOutroEnabled:{type:Boolean,default:!1},skipIntroSeconds:{type:Number,default:90},skipOutroSeconds:{type:Number,default:90}},emits:["close","save"],setup(e,{emit:t}){const n=e,r=t,o=pe(n.skipIntroEnabled),a=pe(n.skipOutroEnabled),s=pe(n.skipIntroSeconds),l=pe(n.skipOutroSeconds);Dt(()=>n.skipIntroEnabled,h=>{o.value=h}),Dt(()=>n.skipOutroEnabled,h=>{a.value=h}),Dt(()=>n.skipIntroSeconds,h=>{s.value=h}),Dt(()=>n.skipOutroSeconds,h=>{l.value=h});const c=()=>{r("close")},f=()=>{r("save",{skipIntroEnabled:o.value,skipOutroEnabled:a.value,skipIntroSeconds:s.value,skipOutroSeconds:l.value})};return(h,p)=>{const m=Pe("a-switch"),g=Pe("a-input-number"),b=Pe("a-button");return e.visible?(H(),J("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=$o(()=>{},["stop"]))},[I("div",bTt,[p[8]||(p[8]=I("h3",null,"片头片尾设置",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",_Tt,[I("div",STt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",kTt,[O(m,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(H(),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"])):Ae("",!0),o.value?(H(),J("span",wTt,"秒")):Ae("",!0)])]),I("div",CTt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",ETt,[O(m,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(H(),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"])):Ae("",!0),a.value?(H(),J("span",xTt,"秒")):Ae("",!0)])]),p[11]||(p[11]=I("div",{class:"setting-hint-global"},[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),He(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",TTt,[O(b,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[He(" 取消 ",-1)])]),_:1}),O(b,{type:"primary",onClick:f,size:"small"},{default:de(()=>[...p[13]||(p[13]=[He(" 保存 ",-1)])]),_:1})])])])):Ae("",!0)}}},abe=vr(ATt,[["__scopeId","data-v-c8c7504a"]]),ITt={class:"dialog-header"},LTt={class:"dialog-content"},PTt={class:"info-section"},RTt={class:"section-header"},MTt=["disabled"],DTt={class:"info-content"},OTt={class:"url-display"},$Tt={class:"info-section"},NTt={class:"section-header"},BTt=["disabled"],FTt={class:"info-content"},jTt={class:"headers-display"},VTt={key:0,class:"no-data"},UTt={key:1,class:"headers-text"},zTt={class:"info-section"},HTt={class:"info-content"},WTt={class:"format-info"},GTt={class:"format-value"},KTt={class:"info-section"},qTt={class:"info-content"},YTt={class:"player-info"},XTt={class:"player-value"},ZTt={__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:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=V(()=>!n.headers||Object.keys(n.headers).length===0?"":Object.entries(n.headers).map(([c,f])=>`${c}: ${f}`).join(` `)),a=()=>{r("close")},s=async(c,f)=>{if(!c){Ot.warning(`${f}为空,无法复制`);return}try{await navigator.clipboard.writeText(c),Ot.success(`${f}已复制到剪贴板`)}catch(h){console.error("复制失败:",h),Ot.error("复制失败,请手动选择复制")}},l=async()=>{const c=["=== DrPlayer 视频调试信息 ===","","📹 视频直链:",n.videoUrl||"暂无","","📋 请求头信息:",o.value||"暂无","","🎬 视频格式:",n.detectedFormat||"未知","","⚙️ 播放器类型:",n.playerType==="artplayer"?"ArtPlayer":"默认播放器","","生成时间: "+new Date().toLocaleString()].join(` `);await s(c,"所有调试信息")};return(c,f)=>e.visible?(H(),J("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:f[3]||(f[3]=$o(()=>{},["stop"]))},[I("div",ITt,[f[5]||(f[5]=I("h3",null,"🔧 视频调试信息",-1)),I("button",{class:"close-btn",onClick:f[0]||(f[0]=h=>c.$emit("close"))},[...f[4]||(f[4]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",LTt,[I("div",PTt,[I("div",RTt,[f[7]||(f[7]=I("h4",null,"📹 视频直链",-1)),I("button",{class:"copy-btn",onClick:f[1]||(f[1]=h=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...f[6]||(f[6]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,MTt)]),I("div",DTt,[I("div",OTt,Ne(e.videoUrl||"暂无视频链接"),1)])]),I("div",$Tt,[I("div",NTt,[f[9]||(f[9]=I("h4",null,"📋 请求头信息",-1)),I("button",{class:"copy-btn",onClick:f[2]||(f[2]=h=>s(o.value,"请求头信息")),disabled:!o.value},[...f[8]||(f[8]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,BTt)]),I("div",FTt,[I("div",jTt,[o.value?(H(),J("pre",UTt,Ne(o.value),1)):(H(),J("div",VTt,"暂无请求头信息"))])])]),I("div",zTt,[f[11]||(f[11]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",HTt,[I("div",WTt,[f[10]||(f[10]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",GTt,Ne(e.detectedFormat||"未知"),1)])])]),I("div",KTt,[f[13]||(f[13]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",qTt,[I("div",YTt,[f[12]||(f[12]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",XTt,Ne(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),I("div",{class:"action-section"},[I("button",{class:"copy-all-btn",onClick:l},[...f[14]||(f[14]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制所有调试信息 ",-1)])])])])])])):Ae("",!0)}},lbe=vr(ZTt,[["__scopeId","data-v-eae69392"]]);function ube(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:o=()=>0}=e,a=pe(!1),s=pe(!1),l=pe(!1),c=pe(90),f=pe(90),h=pe(!1),p=pe(!1),m=pe(null),g=pe(0),b=pe(!1),S=pe(0),k=pe(!1),C=pe(0),E=V(()=>s.value||l.value),x="drplayer_skip_settings",_=()=>{try{const te=localStorage.getItem(x);if(console.log("从 localStorage 加载设置:",te),te){const oe=JSON.parse(te);s.value=oe.skipIntroEnabled||!1,l.value=oe.skipOutroEnabled||!1,c.value=oe.skipIntroSeconds||90,f.value=oe.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:f.value})}else console.log("没有找到保存的设置,使用默认值")}catch(te){console.warn("加载片头片尾设置失败:",te)}},A=te=>{try{s.value=te.skipIntroEnabled,l.value=te.skipOutroEnabled,c.value=te.skipIntroSeconds,f.value=te.skipOutroSeconds;const oe={skipIntroEnabled:te.skipIntroEnabled,skipOutroEnabled:te.skipOutroEnabled,skipIntroSeconds:te.skipIntroSeconds,skipOutroSeconds:te.skipOutroSeconds};localStorage.setItem(x,JSON.stringify(oe)),N()}catch(oe){console.warn("保存片头片尾设置失败:",oe)}},R=()=>{if(!s.value||h.value)return!1;const te=n(),oe=Date.now();return b.value||S.value>0&&oe-S.value<3e3||k.value||C.value>0&&oe-C.value<2e3?!1:te<=1&&te<=c.value?(console.log(`立即跳过片头:从 ${te.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=oe,!0):!1},M=()=>{if(!s.value||h.value)return;const te=n(),oe=Date.now();b.value||S.value>0&&oe-S.value<3e3||k.value||C.value>0&&oe-C.value<2e3||g.value>0&&oe-g.value<1e3||te<=c.value&&(console.log(`已跳过片头:从 ${te.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=oe)},D=()=>{if(!l.value||p.value)return;const te=o();if(te<=0)return;const oe=n(),ue=te-f.value,ae=Date.now();ae-g.value<2e3||oe>=ue&&oe{R()||M(),D()};let L=null;const B=()=>{L&&clearTimeout(L),L=setTimeout(()=>{s.value&&!h.value&&M(),l.value&&!p.value&&D()},200)},F=()=>{h.value=!1,p.value=!1,g.value=0,b.value=!1,S.value=0,k.value=!1,C.value=0,m.value&&(clearTimeout(m.value),m.value=null)},j=()=>{b.value=!0,console.log("用户开始拖动进度条")},z=()=>{b.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},q=()=>{k.value=!0,console.log("全屏状态开始变化")},G=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},ee=()=>{F(),_()},Q=()=>{a.value=!0},X=()=>{a.value=!1},K=()=>{m.value&&(clearTimeout(m.value),m.value=null)};return si(()=>{K()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:f,skipIntroApplied:h,skipOutroTimer:m,skipEnabled:E,loadSkipSettings:_,saveSkipSettings:A,applySkipSettings:N,applyIntroSkipImmediate:R,handleTimeUpdate:B,resetSkipState:F,initSkipSettings:ee,openSkipSettingsDialog:Q,closeSkipSettingsDialog:X,cleanup:K,onUserSeekStart:j,onUserSeekEnd:z,onFullscreenChangeStart:q,onFullscreenChangeEnd:G}}const Nm={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},cbe=[{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 NW(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function v2(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 $I(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function JTt(e,t=null){const n=xh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=NW()||Nm.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),v2(r),t&&$I(t,r),r}const ale={referrerPolicy:Nm.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Nm.NO_REFERRER,Nm.ORIGIN,Nm.SAME_ORIGIN,Nm.UNSAFE_URL]};function xh(){const e=localStorage.getItem("csp_bypass_config");return e?{...ale,...JSON.parse(e)}:ale}function eF(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function BW(e,t){return xh().autoBypass?JTt(e,t):NW()}var tF={exports:{}},lle;function QTt(){return lle||(lle=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(f,h){s.exports=h()})(this,(function(){function f(Be){var lt=typeof Be;return Be!==null&&(lt==="object"||lt==="function")}function h(Be){return typeof Be=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Be){return Object.prototype.toString.call(Be)==="[object Array]"};var m=p,g=0,b=void 0,S=void 0,k=function(lt,kt){j[g]=lt,j[g+1]=kt,g+=2,g===2&&(S?S(z):G())};function C(Be){S=Be}function E(Be){k=Be}var x=typeof window<"u"?window:void 0,_=x||{},A=_.MutationObserver||_.WebKitMutationObserver,R=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",M=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function D(){return function(){return process.nextTick(z)}}function N(){return typeof b<"u"?function(){b(z)}:F()}function L(){var Be=0,lt=new A(z),kt=document.createTextNode("");return lt.observe(kt,{characterData:!0}),function(){kt.data=Be=++Be%2}}function B(){var Be=new MessageChannel;return Be.port1.onmessage=z,function(){return Be.port2.postMessage(0)}}function F(){var Be=setTimeout;return function(){return Be(z,1)}}var j=new Array(1e3);function z(){for(var Be=0;Be0&&(ee=j[0]),ee instanceof Error)throw ee;var Q=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw Q.context=ee,Q}var X=G[F];if(X===void 0)return!1;if(typeof X=="function")c(X,this,j);else for(var K=X.length,te=A(X,K),z=0;z0&&ee.length>q&&!ee.warned){ee.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=B,Q.type=F,Q.count=ee.length,h(Q)}return B}m.prototype.addListener=function(F,j){return k(this,F,j,!1)},m.prototype.on=m.prototype.addListener,m.prototype.prependListener=function(F,j){return k(this,F,j,!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 E(B,F,j){var z={fired:!1,wrapFn:void 0,target:B,type:F,listener:j},q=C.bind(z);return q.listener=j,z.wrapFn=q,q}m.prototype.once=function(F,j){return b(j),this.on(F,E(this,F,j)),this},m.prototype.prependOnceListener=function(F,j){return b(j),this.prependListener(F,E(this,F,j)),this},m.prototype.removeListener=function(F,j){var z,q,G,ee,Q;if(b(j),q=this._events,q===void 0)return this;if(z=q[F],z===void 0)return this;if(z===j||z.listener===j)--this._eventsCount===0?this._events=Object.create(null):(delete q[F],q.removeListener&&this.emit("removeListener",F,z.listener||j));else if(typeof z!="function"){for(G=-1,ee=z.length-1;ee>=0;ee--)if(z[ee]===j||z[ee].listener===j){Q=z[ee].listener,G=ee;break}if(G<0)return this;G===0?z.shift():R(z,G),z.length===1&&(q[F]=z[0]),q.removeListener!==void 0&&this.emit("removeListener",F,Q||j)}return this},m.prototype.off=m.prototype.removeListener,m.prototype.removeAllListeners=function(F){var j,z,q;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[F]),this;if(arguments.length===0){var G=Object.keys(z),ee;for(q=0;q=0;q--)this.removeListener(F,j[q]);return this};function x(B,F,j){var z=B._events;if(z===void 0)return[];var q=z[F];return q===void 0?[]:typeof q=="function"?j?[q.listener||q]:[q]:j?M(q):A(q,q.length)}m.prototype.listeners=function(F){return x(this,F,!0)},m.prototype.rawListeners=function(F){return x(this,F,!1)},m.listenerCount=function(B,F){return typeof B.listenerCount=="function"?B.listenerCount(F):_.call(B,F)},m.prototype.listenerCount=_;function _(B){var F=this._events;if(F!==void 0){var j=F[B];if(typeof j=="function")return 1;if(j!==void 0)return j.length}return 0}m.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function A(B,F){for(var j=new Array(F),z=0;z0},!1)}function k(C,E){for(var x={main:[E]},_={main:[]},A={main:{}};S(x);)for(var R=Object.keys(x),M=0;M=p[S]&&m0&&b[0].originalDts=S[E].dts&&bS[C].lastSample.originalDts&&b=S[C].lastSample.originalDts&&(C===S.length-1||C0&&(E=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=E,this._list.splice(E,0,k)},g.prototype.getLastSegmentBefore=function(b){var S=this._searchNearestSegmentBefore(b);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(b){var S=this.getLastSegmentBefore(b);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(b){for(var S=this._searchNearestSegmentBefore(b),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 f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),b=c("./src/core/media-segment-info.js"),S=c("./src/utils/exception.js"),k=(function(){function C(E){this.TAG="MSEController",this._config=E,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 b.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(E,x){this._emitter.addListener(E,x)},C.prototype.off=function(E,x){this._emitter.removeListener(E,x)},C.prototype.attachMediaElement=function(E){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var x=this._mediaSource=new window.MediaSource;x.addEventListener("sourceopen",this.e.onSourceOpen),x.addEventListener("sourceended",this.e.onSourceEnded),x.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=E,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),E.src=this._mediaSourceObjectURL},C.prototype.detachMediaElement=function(){if(this._mediaSource){var E=this._mediaSource;for(var x in this._sourceBuffers){var _=this._pendingSegments[x];_.splice(0,_.length),this._pendingSegments[x]=null,this._pendingRemoveRanges[x]=null,this._lastInitSegments[x]=null;var A=this._sourceBuffers[x];if(A){if(E.readyState!=="closed"){try{E.removeSourceBuffer(A)}catch(R){p.default.e(this.TAG,R.message)}A.removeEventListener("error",this.e.onSourceBufferError),A.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[x]=null,this._sourceBuffers[x]=null}}if(E.readyState==="open")try{E.endOfStream()}catch(R){p.default.e(this.TAG,R.message)}E.removeEventListener("sourceopen",this.e.onSourceOpen),E.removeEventListener("sourceended",this.e.onSourceEnded),E.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(E,x){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(E),this._pendingSegments[E.type].push(E);return}var _=E,A=""+_.container;_.codec&&_.codec.length>0&&(A+=";codecs="+_.codec);var R=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+A),this._lastInitSegments[_.type]=_,A!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+A);else{R=!0;try{var M=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(A);M.addEventListener("error",this.e.onSourceBufferError),M.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(D){p.default.e(this.TAG,D.message),this._emitter.emit(g.default.ERROR,{code:D.code,msg:D.message});return}}this._mimeTypes[_.type]=A}x||this._pendingSegments[_.type].push(_),R||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(E){var x=E;this._pendingSegments[x.type].push(x),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[x.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},C.prototype.seek=function(E){for(var x in this._sourceBuffers)if(this._sourceBuffers[x]){var _=this._sourceBuffers[x];if(this._mediaSource.readyState==="open")try{_.abort()}catch(L){p.default.e(this.TAG,L.message)}this._idrList.clear();var A=this._pendingSegments[x];if(A.splice(0,A.length),this._mediaSource.readyState!=="closed"){for(var R=0;R<_.buffered.length;R++){var M=_.buffered.start(R),D=_.buffered.end(R);this._pendingRemoveRanges[x].push({start:M,end:D})}if(_.updating||this._doRemoveRanges(),m.default.safari){var N=this._lastInitSegments[x];N&&(this._pendingSegments[x].push(N),_.updating||this._doAppendSegments())}}}},C.prototype.endOfStream=function(){var E=this._mediaSource,x=this._sourceBuffers;if(!E||E.readyState!=="open"){E&&E.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}x.video&&x.video.updating||x.audio&&x.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,E.endOfStream())},C.prototype.getNearestKeyframe=function(E){return this._idrList.getLastSyncPointBeforeDts(E)},C.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var E=this._mediaElement.currentTime;for(var x in this._sourceBuffers){var _=this._sourceBuffers[x];if(_){var A=_.buffered;if(A.length>=1&&E-A.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},C.prototype._doCleanupSourceBuffer=function(){var E=this._mediaElement.currentTime;for(var x in this._sourceBuffers){var _=this._sourceBuffers[x];if(_){for(var A=_.buffered,R=!1,M=0;M=this._config.autoCleanupMaxBackwardDuration){R=!0;var L=E-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[x].push({start:D,end:L})}}else N0&&(isNaN(x)||_>x)&&(p.default.v(this.TAG,"Update MediaSource duration from "+x+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},C.prototype._doRemoveRanges=function(){for(var E in this._pendingRemoveRanges)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating))for(var x=this._sourceBuffers[E],_=this._pendingRemoveRanges[E];_.length&&!x.updating;){var A=_.shift();x.remove(A.start,A.end)}},C.prototype._doAppendSegments=function(){var E=this._pendingSegments;for(var x in E)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating)&&E[x].length>0){var _=E[x].shift();if(_.timestampOffset){var A=this._sourceBuffers[x].timestampOffset,R=_.timestampOffset/1e3,M=Math.abs(A-R);M>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+A+" to "+R),this._sourceBuffers[x].timestampOffset=R),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[x].appendBuffer(_.data),this._isBufferFull=!1,x==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(D){this._pendingSegments[x].unshift(_),D.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,D.message),this._emitter.emit(g.default.ERROR,{code:D.code,msg:D.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 E=this._pendingSourceBufferInit;E.length;){var x=E.shift();this.appendInitSegment(x,!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 E=this._pendingSegments;return E.video.length>0||E.audio.length>0},C.prototype._hasPendingRemoveRanges=function(){var E=this._pendingRemoveRanges;return E.video.length>0||E.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(E){p.default.e(this.TAG,"SourceBuffer Error: "+E)},C})();l.default=k}),"./src/core/mse-events.js":(function(s,l,c){c.r(l);var f={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=f}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./node_modules/webworkify-webpack/index.js"),m=c.n(p),g=c("./src/utils/logger.js"),b=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"),E=(function(){function x(_,A){if(this.TAG="Transmuxer",this._emitter=new(h()),A.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:[_,A]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},b.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:b.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(_,A)}else this._controller=new S.default(_,A);if(this._controller){var R=this._controller;R.on(k.default.IO_ERROR,this._onIOError.bind(this)),R.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),R.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),R.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),R.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),R.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),R.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),R.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),R.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),R.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),R.on(k.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return x.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),b.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},x.prototype.on=function(_,A){this._emitter.addListener(_,A)},x.prototype.off=function(_,A){this._emitter.removeListener(_,A)},x.prototype.hasWorker=function(){return this._worker!=null},x.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},x.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},x.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},x.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},x.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},x.prototype._onInitSegment=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.INIT_SEGMENT,_,A)})},x.prototype._onMediaSegment=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.MEDIA_SEGMENT,_,A)})},x.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},x.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},x.prototype._onMediaInfo=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.MEDIA_INFO,_)})},x.prototype._onMetaDataArrived=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.METADATA_ARRIVED,_)})},x.prototype._onScriptDataArrived=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},x.prototype._onStatisticsInfo=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.STATISTICS_INFO,_)})},x.prototype._onIOError=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.IO_ERROR,_,A)})},x.prototype._onDemuxError=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.DEMUX_ERROR,_,A)})},x.prototype._onRecommendSeekpoint=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},x.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},x.prototype._onWorkerMessage=function(_){var A=_.data,R=A.data;if(A.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(A.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(A.msg,R.type,R.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(A.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(R,C.default.prototype),this._emitter.emit(A.msg,R);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(A.msg,R);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(A.msg,R.type,R.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(A.msg,R);break;case"logcat_callback":g.default.emitter.emit("log",R.type,R.logcat);break}},x})();l.default=E}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),b=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"),E=c("./src/core/transmuxing-events.js"),x=(function(){function _(A,R){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=R,A.segments||(A.segments=[{duration:A.duration,filesize:A.filesize,url:A.url}]),typeof A.cors!="boolean"&&(A.cors=!0),typeof A.withCredentials!="boolean"&&(A.withCredentials=!1),this._mediaDataSource=A,this._currentSegmentIndex=0;var M=0;this._mediaDataSource.segments.forEach(function(D){D.timestampBase=M,M+=D.duration,D.cors=A.cors,D.withCredentials=A.withCredentials,R.referrerPolicy&&(D.referrerPolicy=R.referrerPolicy)}),!isNaN(M)&&this._mediaDataSource.duration!==M&&(this._mediaDataSource.duration=M),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(A,R){this._emitter.addListener(A,R)},_.prototype.off=function(A,R){this._emitter.removeListener(A,R)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(A,R){this._currentSegmentIndex=A;var M=this._mediaDataSource.segments[A],D=this._ioctl=new C.default(M,this._config,A);D.onError=this._onIOException.bind(this),D.onSeeked=this._onIOSeeked.bind(this),D.onComplete=this._onIOComplete.bind(this),D.onRedirect=this._onIORedirect.bind(this),D.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),R?this._demuxer.bindDataSource(this._ioctl):D.onDataArrival=this._onInitChunkArrival.bind(this),D.open(R)},_.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(A){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var R=this._searchSegmentIndexContains(A);if(R===this._currentSegmentIndex){var M=this._mediaInfo.segments[R];if(M==null)this._pendingSeekTime=A;else{var D=M.getNearestKeyframe(A);this._remuxer.seek(D.milliseconds),this._ioctl.seek(D.fileposition),this._pendingResolveSeekPoint=D.milliseconds}}else{var N=this._mediaInfo.segments[R];if(N==null)this._pendingSeekTime=A,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(R);else{var D=N.getNearestKeyframe(A);this._internalAbort(),this._remuxer.seek(A),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[R].timestampBase,this._loadSegment(R,D.fileposition),this._pendingResolveSeekPoint=D.milliseconds,this._reportSegmentMediaInfo(R)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(A){for(var R=this._mediaDataSource.segments,M=R.length-1,D=0;D0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,N=this._demuxer.parseChunks(A,R);else if((D=b.default.probe(A)).match){this._demuxer=new b.default(D,this._config),this._remuxer||(this._remuxer=new S.default(this._config));var L=this._mediaDataSource;L.duration!=null&&!isNaN(L.duration)&&(this._demuxer.overridedDuration=L.duration),typeof L.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=L.hasAudio),typeof L.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=L.hasVideo),this._demuxer.timestampBase=L.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),N=this._demuxer.parseChunks(A,R)}else D=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){M._internalAbort()}),this._emitter.emit(E.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),N=0;return N},_.prototype._onMediaInfo=function(A){var R=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},A),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var M=Object.assign({},A);Object.setPrototypeOf(M,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=M,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var D=R._pendingSeekTime;R._pendingSeekTime=null,R.seek(D)})},_.prototype._onMetaDataArrived=function(A){this._emitter.emit(E.default.METADATA_ARRIVED,A)},_.prototype._onScriptDataArrived=function(A){this._emitter.emit(E.default.SCRIPTDATA_ARRIVED,A)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(A){var R=A,M=R+1;M0&&M[0].originalDts===D&&(D=M[0].pts),this._emitter.emit(E.default.RECOMMEND_SEEKPOINT,D)}},_.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(A){var R=this._mediaInfo.segments[A],M=Object.assign({},R);M.duration=this._mediaInfo.duration,M.segmentCount=this._mediaInfo.segmentCount,delete M.segments,delete M.keyframesIndex,this._emitter.emit(E.default.MEDIA_INFO,M)},_.prototype._reportStatisticsInfo=function(){var A={};A.url=this._ioctl.currentURL,A.hasRedirect=this._ioctl.hasRedirect,A.hasRedirect&&(A.redirectedURL=this._ioctl.currentRedirectedURL),A.speed=this._ioctl.currentSpeed,A.loaderType=this._ioctl.loaderType,A.currentSegmentIndex=this._currentSegmentIndex,A.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(E.default.STATISTICS_INFO,A)},_})();l.default=x}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var f={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=f}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var f=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(b){var S=null,k=F.bind(this);h.default.install(),b.addEventListener("message",function(j){switch(j.data.cmd){case"init":S=new p.default(j.data.param[0],j.data.param[1]),S.on(m.default.IO_ERROR,N.bind(this)),S.on(m.default.DEMUX_ERROR,L.bind(this)),S.on(m.default.INIT_SEGMENT,C.bind(this)),S.on(m.default.MEDIA_SEGMENT,E.bind(this)),S.on(m.default.LOADING_COMPLETE,x.bind(this)),S.on(m.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(m.default.MEDIA_INFO,A.bind(this)),S.on(m.default.METADATA_ARRIVED,R.bind(this)),S.on(m.default.SCRIPTDATA_ARRIVED,M.bind(this)),S.on(m.default.STATISTICS_INFO,D.bind(this)),S.on(m.default.RECOMMEND_SEEKPOINT,B.bind(this));break;case"destroy":S&&(S.destroy(),S=null),b.postMessage({msg:"destroyed"});break;case"start":S.start();break;case"stop":S.stop();break;case"seek":S.seek(j.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var z=j.data.param;f.default.applyConfig(z),z.enableCallback===!0?f.default.addLogListener(k):f.default.removeLogListener(k);break}}});function C(j,z){var q={msg:m.default.INIT_SEGMENT,data:{type:j,data:z}};b.postMessage(q,[z.data])}function E(j,z){var q={msg:m.default.MEDIA_SEGMENT,data:{type:j,data:z}};b.postMessage(q,[z.data])}function x(){var j={msg:m.default.LOADING_COMPLETE};b.postMessage(j)}function _(){var j={msg:m.default.RECOVERED_EARLY_EOF};b.postMessage(j)}function A(j){var z={msg:m.default.MEDIA_INFO,data:j};b.postMessage(z)}function R(j){var z={msg:m.default.METADATA_ARRIVED,data:j};b.postMessage(z)}function M(j){var z={msg:m.default.SCRIPTDATA_ARRIVED,data:j};b.postMessage(z)}function D(j){var z={msg:m.default.STATISTICS_INFO,data:j};b.postMessage(z)}function N(j,z){b.postMessage({msg:m.default.IO_ERROR,data:{type:j,info:z}})}function L(j,z){b.postMessage({msg:m.default.DEMUX_ERROR,data:{type:j,info:z}})}function B(j){b.postMessage({msg:m.default.RECOMMEND_SEEKPOINT,data:j})}function F(j,z){b.postMessage({msg:"logcat_callback",data:{type:j,logcat:z}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),m=(function(){var b=new ArrayBuffer(2);return new DataView(b).setInt16(0,256,!0),new Int16Array(b)[0]===256})(),g=(function(){function b(){}return b.parseScriptData=function(S,k,C){var E={};try{var x=b.parseValue(S,k,C),_=b.parseValue(S,k+x.size,C-x.size);E[x.data]=_.data}catch(A){f.default.e("AMF",A.toString())}return E},b.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var E=b.parseString(S,k,C),x=b.parseValue(S,k+E.size,C-E.size),_=x.objectEnd;return{data:{name:E.data,value:x.data},size:E.size+x.size,objectEnd:_}},b.parseVariable=function(S,k,C){return b.parseObject(S,k,C)},b.parseString=function(S,k,C){if(C<2)throw new p.IllegalStateException("Data not enough when parse String");var E=new DataView(S,k,C),x=E.getUint16(0,!m),_;return x>0?_=(0,h.default)(new Uint8Array(S,k+2,x)):_="",{data:_,size:2+x}},b.parseLongString=function(S,k,C){if(C<4)throw new p.IllegalStateException("Data not enough when parse LongString");var E=new DataView(S,k,C),x=E.getUint32(0,!m),_;return x>0?_=(0,h.default)(new Uint8Array(S,k+4,x)):_="",{data:_,size:4+x}},b.parseDate=function(S,k,C){if(C<10)throw new p.IllegalStateException("Data size invalid when parse Date");var E=new DataView(S,k,C),x=E.getFloat64(0,!m),_=E.getInt16(8,!m);return x+=_*60*1e3,{data:new Date(x),size:10}},b.parseValue=function(S,k,C){if(C<1)throw new p.IllegalStateException("Data not enough when parse Value");var E=new DataView(S,k,C),x=1,_=E.getUint8(0),A,R=!1;try{switch(_){case 0:A=E.getFloat64(1,!m),x+=8;break;case 1:{var M=E.getUint8(1);A=!!M,x+=1;break}case 2:{var D=b.parseString(S,k+1,C-1);A=D.data,x+=D.size;break}case 3:{A={};var N=0;for((E.getUint32(C-4,!m)&16777215)===9&&(N=3);x32)throw new f.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 b=this._current_word_bits_left?this._current_word:0;b=b>>>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,b=b<>>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 f=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"),b=c("./src/utils/exception.js");function S(C,E){return C[E]<<24|C[E+1]<<16|C[E+2]<<8|C[E+3]}var k=(function(){function C(E,x){this.TAG="FLVDemuxer",this._config=x,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=E.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=E.hasAudioTrack,this._hasVideo=E.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(E){var x=new Uint8Array(E),_={match:!1};if(x[0]!==70||x[1]!==76||x[2]!==86||x[3]!==1)return _;var A=(x[4]&4)>>>2!==0,R=(x[4]&1)!==0,M=S(x,5);return M<9?_:{match:!0,consumed:M,dataOffset:M,hasAudioTrack:A,hasVideoTrack:R}},C.prototype.bindDataSource=function(E){return E.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(C.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(E){this._onTrackMetadata=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(E){this._onMediaInfo=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(E){this._onMetaDataArrived=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(E){this._onScriptDataArrived=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onError",{get:function(){return this._onError},set:function(E){this._onError=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(E){this._onDataAvailable=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(E){this._timestampBase=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedDuration",{get:function(){return this._duration},set:function(E){this._durationOverrided=!0,this._duration=E,this._mediaInfo.duration=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasAudio",{set:function(E){this._hasAudioFlagOverrided=!0,this._hasAudio=E,this._mediaInfo.hasAudio=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasVideo",{set:function(E){this._hasVideoFlagOverrided=!0,this._hasVideo=E,this._mediaInfo.hasVideo=E},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(E,x){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new b.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,A=this._littleEndian;if(x===0)if(E.byteLength>13){var R=C.probe(E);_=R.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,x+_!==this._dataOffset&&f.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var M=new DataView(E,_),D=M.getUint32(0,!A);D!==0&&f.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_E.byteLength)break;var N=M.getUint8(0),L=M.getUint32(0,!A)&16777215;if(_+11+L+4>E.byteLength)break;if(N!==8&&N!==9&&N!==18){f.default.w(this.TAG,"Unsupported tag type "+N+", skipped"),_+=11+L+4;continue}var B=M.getUint8(4),F=M.getUint8(5),j=M.getUint8(6),z=M.getUint8(7),q=j|F<<8|B<<16|z<<24,G=M.getUint32(7,!A)&16777215;G!==0&&f.default.w(this.TAG,"Meet tag which has StreamID != 0!");var ee=_+11;switch(N){case 8:this._parseAudioData(E,ee,L,q);break;case 9:this._parseVideoData(E,ee,L,q,x+_);break;case 18:this._parseScriptData(E,ee,L);break}var Q=M.getUint32(11+L,!A);Q!==11+L&&f.default.w(this.TAG,"Invalid PrevTagSize "+Q),_+=11+L+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},C.prototype._parseScriptData=function(E,x,_){var A=h.default.parseScriptData(E,x,_);if(A.hasOwnProperty("onMetaData")){if(A.onMetaData==null||typeof A.onMetaData!="object"){f.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&f.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=A;var R=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},R)),typeof R.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=R.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof R.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=R.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof R.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=R.audiodatarate),typeof R.videodatarate=="number"&&(this._mediaInfo.videoDataRate=R.videodatarate),typeof R.width=="number"&&(this._mediaInfo.width=R.width),typeof R.height=="number"&&(this._mediaInfo.height=R.height),typeof R.duration=="number"){if(!this._durationOverrided){var M=Math.floor(R.duration*this._timescale);this._duration=M,this._mediaInfo.duration=M}}else this._mediaInfo.duration=0;if(typeof R.framerate=="number"){var D=Math.floor(R.framerate*1e3);if(D>0){var N=D/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=N,this._referenceFrameRate.fps_num=D,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=N}}if(typeof R.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var L=R.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(L),R.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=R,f.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(A).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},A))},C.prototype._parseKeyframesIndex=function(E){for(var x=[],_=[],A=1;A>>4;if(D!==2&&D!==10){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+D);return}var N=0,L=(M&12)>>>2;if(L>=0&&L<=4)N=this._flvSoundRateTable[L];else{this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=M&1,F=this._audioMetadata,j=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=j.id,F.timescale=this._timescale,F.duration=this._duration,F.audioSampleRate=N,F.channelCount=B===0?1:2),D===10){var z=this._parseAACAudioData(E,x+1,_-1);if(z==null)return;if(z.packetType===0){F.config&&f.default.w(this.TAG,"Found another AudioSpecificConfig!");var q=z.data;F.audioSampleRate=q.samplingRate,F.channelCount=q.channelCount,F.codec=q.codec,F.originalCodec=q.originalCodec,F.config=q.config,F.refSampleDuration=1024/F.audioSampleRate*F.timescale,f.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 G=this._mediaInfo;G.audioCodec=F.originalCodec,G.audioSampleRate=F.audioSampleRate,G.audioChannelCount=F.channelCount,G.hasVideo?G.videoCodec!=null&&(G.mimeType='video/x-flv; codecs="'+G.videoCodec+","+G.audioCodec+'"'):G.mimeType='video/x-flv; codecs="'+G.audioCodec+'"',G.isComplete()&&this._onMediaInfo(G)}else if(z.packetType===1){var ee=this._timestampBase+A,Q={unit:z.data,length:z.data.byteLength,dts:ee,pts:ee};j.samples.push(Q),j.length+=z.data.length}else f.default.e(this.TAG,"Flv: Unsupported AAC data type "+z.packetType)}else if(D===2){if(!F.codec){var q=this._parseMP3AudioData(E,x+1,_-1,!0);if(q==null)return;F.audioSampleRate=q.samplingRate,F.channelCount=q.channelCount,F.codec=q.codec,F.originalCodec=q.originalCodec,F.refSampleDuration=1152/F.audioSampleRate*F.timescale,f.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",F);var G=this._mediaInfo;G.audioCodec=F.codec,G.audioSampleRate=F.audioSampleRate,G.audioChannelCount=F.channelCount,G.audioDataRate=q.bitRate,G.hasVideo?G.videoCodec!=null&&(G.mimeType='video/x-flv; codecs="'+G.videoCodec+","+G.audioCodec+'"'):G.mimeType='video/x-flv; codecs="'+G.audioCodec+'"',G.isComplete()&&this._onMediaInfo(G)}var X=this._parseMP3AudioData(E,x+1,_-1,!1);if(X==null)return;var ee=this._timestampBase+A,K={unit:X,length:X.byteLength,dts:ee,pts:ee};j.samples.push(K),j.length+=X.length}}},C.prototype._parseAACAudioData=function(E,x,_){if(_<=1){f.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var A={},R=new Uint8Array(E,x,_);return A.packetType=R[0],R[0]===0?A.data=this._parseAACAudioSpecificConfig(E,x+1,_-1):A.data=R.subarray(1),A},C.prototype._parseAACAudioSpecificConfig=function(E,x,_){var A=new Uint8Array(E,x,_),R=null,M=0,D=0,N=0,L=null;if(M=D=A[0]>>>3,N=(A[0]&7)<<1|A[1]>>>7,N<0||N>=this._mpegSamplingRates.length){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[N],F=(A[1]&120)>>>3;if(F<0||F>=8){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}M===5&&(L=(A[1]&7)<<1|A[2]>>>7,(A[2]&124)>>>2);var j=self.navigator.userAgent.toLowerCase();return j.indexOf("firefox")!==-1?N>=6?(M=5,R=new Array(4),L=N-3):(M=2,R=new Array(2),L=N):j.indexOf("android")!==-1?(M=2,R=new Array(2),L=N):(M=5,L=N,R=new Array(4),N>=6?L=N-3:F===1&&(M=2,R=new Array(2),L=N)),R[0]=M<<3,R[0]|=(N&15)>>>1,R[1]=(N&15)<<7,R[1]|=(F&15)<<3,M===5&&(R[1]|=(L&15)>>>1,R[2]=(L&1)<<7,R[2]|=8,R[3]=0),{config:R,samplingRate:B,channelCount:F,codec:"mp4a.40."+M,originalCodec:"mp4a.40."+D}},C.prototype._parseMP3AudioData=function(E,x,_,A){if(_<4){f.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var R=new Uint8Array(E,x,_),M=null;if(A){if(R[0]!==255)return;var D=R[1]>>>3&3,N=(R[1]&6)>>1,L=(R[2]&240)>>>4,B=(R[2]&12)>>>2,F=R[3]>>>6&3,j=F!==3?2:1,z=0,q=0,G="mp3";switch(D){case 0:z=this._mpegAudioV25SampleRateTable[B];break;case 2:z=this._mpegAudioV20SampleRateTable[B];break;case 3:z=this._mpegAudioV10SampleRateTable[B];break}switch(N){case 1:L>>4,N=M&15;if(N!==7){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+N);return}this._parseAVCVideoPacket(E,x+1,_-1,A,R,D)}},C.prototype._parseAVCVideoPacket=function(E,x,_,A,R,M){if(_<4){f.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var D=this._littleEndian,N=new DataView(E,x,_),L=N.getUint8(0),B=N.getUint32(0,!D)&16777215,F=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(E,x+4,_-4);else if(L===1)this._parseAVCVideoData(E,x+4,_-4,A,R,M,F);else if(L!==2){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(E,x,_){if(_<7){f.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var A=this._videoMetadata,R=this._videoTrack,M=this._littleEndian,D=new DataView(E,x,_);A?typeof A.avcc<"u"&&f.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),A=this._videoMetadata={},A.type="video",A.id=R.id,A.timescale=this._timescale,A.duration=this._duration);var N=D.getUint8(0),L=D.getUint8(1);if(D.getUint8(2),D.getUint8(3),N!==1||L===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(D.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(m.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var B=D.getUint8(5)&31;if(B===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else B>1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+B);for(var F=6,j=0;j1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+ae);F++;for(var j=0;j=_){f.default.w(this.TAG,"Malformed Nalu near timestamp "+q+", offset = "+j+", dataSize = "+_);break}var ee=L.getUint32(j,!N);if(z===3&&(ee>>>=8),ee>_-z){f.default.w(this.TAG,"Malformed Nalus near timestamp "+q+", NaluSize > DataSize!");return}var Q=L.getUint8(j+z)&31;Q===5&&(G=!0);var X=new Uint8Array(E,x+j,z+ee),K={type:Q,data:X};B.push(K),F+=X.byteLength,j+=z+ee}if(B.length){var te=this._videoTrack,oe={units:B,length:F,isKeyframe:G,dts:q,cts:D,pts:q+D};G&&(oe.fileposition=R),te.samples.push(oe),te.length+=F}},C})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var f=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(m){for(var g=m,b=g.byteLength,S=new Uint8Array(b),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),b=new f.default(g);b.readByte();var S=b.readByte();b.readByte();var k=b.readByte();b.readUEG();var C=p.getProfileString(S),E=p.getLevelString(k),x=1,_=420,A=[0,420,422,444],R=8;if((S===100||S===110||S===122||S===244||S===44||S===83||S===86||S===118||S===128||S===138||S===144)&&(x=b.readUEG(),x===3&&b.readBits(1),x<=3&&(_=A[x]),R=b.readUEG()+8,b.readUEG(),b.readBits(1),b.readBool()))for(var M=x!==3?8:12,D=0;D0&&ge<16?(K=Oe[ge-1],te=Fe[ge-1]):ge===255&&(K=b.readByte()<<8|b.readByte(),te=b.readByte()<<8|b.readByte())}if(b.readBool()&&b.readBool(),b.readBool()&&(b.readBits(4),b.readBool()&&b.readBits(24)),b.readBool()&&(b.readUEG(),b.readUEG()),b.readBool()){var Xe=b.readBits(32),Je=b.readBits(32);ue=b.readBool(),ae=Je,xe=Xe*2,oe=ae/xe}}var Ke=1;(K!==1||te!==1)&&(Ke=K/te);var _e=0,ye=0;if(x===0)_e=1,ye=2-z;else{var Me=x===3?1:2,We=x===1?2:1;_e=Me,ye=We*(2-z)}var qe=(F+1)*16,st=(2-z)*((j+1)*16);qe-=(q+G)*_e,st-=(ee+Q)*ye;var gt=Math.ceil(qe*Ke);return b.destroy(),b=null,{profile_string:C,level_string:E,bit_depth:R,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:ue,fps:oe,fps_den:xe,fps_num:ae},sar_ratio:{width:K,height:te},codec_size:{width:qe,height:st},present_size:{width:gt,height:st}}},p._skipScalingList=function(m,g){for(var b=8,S=8,k=0,C=0;C=15048,C=f.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&C}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),b.prototype.destroy.call(this)},S.prototype.open=function(k,C){var E=this;this._dataSource=k,this._range=C;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var _=this._seekHandler.getConfig(x,C),A=new self.Headers;if(typeof _.headers=="object"){var R=_.headers;for(var M in R)R.hasOwnProperty(M)&&A.append(M,R[M])}var D={method:"GET",headers:A,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var M in this._config.headers)A.append(M,this._config.headers[M]);k.cors===!1&&(D.mode="same-origin"),k.withCredentials&&(D.credentials="include"),k.referrerPolicy&&(D.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,D.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,D).then(function(N){if(E._requestAbort){E._status=h.LoaderStatus.kIdle,N.body.cancel();return}if(N.ok&&N.status>=200&&N.status<=299){if(N.url!==_.url&&E._onURLRedirect){var L=E._seekHandler.removeURLParameters(N.url);E._onURLRedirect(L)}var B=N.headers.get("Content-Length");return B!=null&&(E._contentLength=parseInt(B),E._contentLength!==0&&E._onContentLengthKnown&&E._onContentLengthKnown(E._contentLength)),E._pump.call(E,N.body.getReader())}else if(E._status=h.LoaderStatus.kError,E._onError)E._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:N.status,msg:N.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+N.status+" "+N.statusText)}).catch(function(N){if(!(E._abortController&&E._abortController.signal.aborted))if(E._status=h.LoaderStatus.kError,E._onError)E._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:N.message});else throw N})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!f.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},S.prototype._pump=function(k){var C=this;return k.read().then(function(E){if(E.done)if(C._contentLength!==null&&C._receivedLength0&&(this._stashInitialSize=R.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,R.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=A,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(A.url),this._refTotalLength=A.filesize?A.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(A){this._extraData=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(A){this._onDataArrival=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(A){this._onSeeked=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(A){this._onError=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(A){this._onComplete=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(A){this._onRedirect=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(A){this._onRecoveredEarlyEof=A},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===b.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 A=this._config;if(A.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(A.seekType==="param"){var R=A.seekParamStart||"bstart",M=A.seekParamEnd||"bend";this._seekHandler=new C.default(R,M)}else if(A.seekType==="custom"){if(typeof A.customSeekHandler!="function")throw new E.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new A.customSeekHandler}else throw new E.InvalidArgumentException("Invalid seekType in config: "+A.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(b.default.isSupported())this._loaderClass=b.default;else throw new E.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(A){this._currentRange={from:0,to:-1},A&&(this._currentRange.from=A),this._speedSampler.reset(),A||(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 A=this._resumeFrom;this._resumeFrom=0,this._internalSeek(A,!0)}},_.prototype.seek=function(A){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(A,!0)},_.prototype._internalSeek=function(A,R){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(R),this._loader.destroy(),this._loader=null;var M={from:A,to:-1};this._currentRange={from:M.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,M),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(A){if(!A||typeof A!="string"||A.length===0)throw new E.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=A},_.prototype._expandBuffer=function(A){for(var R=this._stashSize;R+1024*1024*10){var D=new Uint8Array(this._stashBuffer,0,this._stashUsed),N=new Uint8Array(M,0,R);N.set(D,0)}this._stashBuffer=M,this._bufferSize=R}},_.prototype._normalizeSpeed=function(A){var R=this._speedNormalizeList,M=R.length-1,D=0,N=0,L=M;if(A=R[D]&&A=512&&A<=1024?R=Math.floor(A*1.5):R=A*2,R>8192&&(R=8192);var M=R*1024+1024*1024*1;this._bufferSize0){var z=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(z,this._stashByteStart);if(L0){var j=new Uint8Array(z,L);F.set(j,0),this._stashUsed=j.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;this._stashUsed+A.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+A.byteLength),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(A),this._stashUsed),this._stashUsed+=A.byteLength}else{var L=this._dispatchChunks(A,R);if(Lthis._bufferSize&&(this._expandBuffer(B),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(A,L),0),this._stashUsed+=B,this._stashByteStart=R+L}}}else if(this._stashUsed===0){var L=this._dispatchChunks(A,R);if(Lthis._bufferSize&&this._expandBuffer(B);var F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.set(new Uint8Array(A,L),0),this._stashUsed+=B,this._stashByteStart=R+L}}else{this._stashUsed+A.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+A.byteLength);var F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.set(new Uint8Array(A),this._stashUsed),this._stashUsed+=A.byteLength;var L=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(L0){var j=new Uint8Array(this._stashBuffer,L);F.set(j,0)}this._stashUsed-=L,this._stashByteStart+=L}}},_.prototype._flushStashBuffer=function(A){if(this._stashUsed>0){var R=this._stashBuffer.slice(0,this._stashUsed),M=this._dispatchChunks(R,this._stashByteStart),D=R.byteLength-M;if(M0){var N=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(R,M);N.set(L,0),this._stashUsed=L.byteLength,this._stashByteStart+=M}return 0}return this._stashUsed=0,this._stashByteStart=0,D}return 0},_.prototype._onLoaderComplete=function(A,R){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(A,R){switch(f.default.e(this.TAG,"Loader error, code = "+R.code+", msg = "+R.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,A=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),A){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var M=this._currentRange.to+1;M0)for(var k=g.split("&"),C=0;C0;E[0]!==this._startName&&E[0]!==this._endName&&(x&&(S+="&"),S+=k[C])}return S.length===0?m:m+"?"+S},h})();l.default=f}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var f=(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 b=void 0;m.to!==-1?b="bytes="+m.from.toString()+"-"+m.to.toString():b="bytes="+m.from.toString()+"-",g.Range=b}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=f}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var f=(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=f}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var f=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(b,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,C){k.__proto__=C}||function(k,C){for(var E in C)Object.prototype.hasOwnProperty.call(C,E)&&(k[E]=C[E])},g(b,S)};return function(b,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(b,S);function k(){this.constructor=b}b.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),m=(function(g){p(b,g);function b(){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 b.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},b.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},b.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=f.LoaderStatus.kConnecting}catch(E){this._status=f.LoaderStatus.kError;var C={code:E.code,msg:E.message};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.msg)}},b.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=f.LoaderStatus.kComplete},b.prototype._onWebSocketOpen=function(S){this._status=f.LoaderStatus.kBuffering},b.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=f.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},b.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=f.LoaderStatus.kError;var E={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,E);else throw new h.RuntimeException(E.msg)}},b.prototype._dispatchArrayBuffer=function(S){var k=S,C=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,C,this._receivedLength)},b.prototype._onWebSocketError=function(S){this._status=f.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},b})(f.BaseLoader);l.default=m}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),m=(function(){var b=function(S,k){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,E){C.__proto__=E}||function(C,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(C[x]=E[x])},b(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");b(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),g=(function(b){m(S,b);function S(k,C){var E=b.call(this,"xhr-moz-chunked-loader")||this;return E.TAG="MozChunkedLoader",E._seekHandler=k,E._config=C,E._needStash=!0,E._xhr=null,E._requestAbort=!1,E._contentLength=null,E._receivedLength=0,E}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 f.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),b.prototype.destroy.call(this)},S.prototype.open=function(k,C){this._dataSource=k,this._range=C;var E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var x=this._seekHandler.getConfig(E,C);this._requestURL=x.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",x.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 x.headers=="object"){var A=x.headers;for(var R in A)A.hasOwnProperty(R)&&_.setRequestHeader(R,A[R])}if(typeof this._config.headers=="object"){var A=this._config.headers;for(var R in A)A.hasOwnProperty(R)&&_.setRequestHeader(R,A[R])}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 E=this._seekHandler.removeURLParameters(C.responseURL);this._onURLRedirect(E)}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,E=this._range.from+this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,E,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,E=null;if(this._contentLength&&k.loaded=this._contentLength&&(x=this._range.from+this._contentLength-1),this._currentRequestRange={from:E,to:x},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(C,E){this._lastTimeLoaded=0;var x=C.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?x=this._currentRedirectedURL:C.redirectedURL!=null&&(x=C.redirectedURL));var _=this._seekHandler.getConfig(x,E);this._currentRequestURL=_.url;var A=this._xhr=new XMLHttpRequest;if(A.open("GET",_.url,!0),A.responseType="arraybuffer",A.onreadystatechange=this._onReadyStateChange.bind(this),A.onprogress=this._onProgress.bind(this),A.onload=this._onLoad.bind(this),A.onerror=this._onXhrError.bind(this),C.withCredentials&&(A.withCredentials=!0),typeof _.headers=="object"){var R=_.headers;for(var M in R)R.hasOwnProperty(M)&&A.setRequestHeader(M,R[M])}if(typeof this._config.headers=="object"){var R=this._config.headers;for(var M in R)R.hasOwnProperty(M)&&A.setRequestHeader(M,R[M])}A.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 E=C.target;if(E.readyState===2){if(E.responseURL!=null){var x=this._seekHandler.removeURLParameters(E.responseURL);E.responseURL!==this._currentRequestURL&&x!==this._currentRedirectedURL&&(this._currentRedirectedURL=x,this._onURLRedirect&&this._onURLRedirect(x))}if(E.status>=200&&E.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:E.status,msg:E.statusText});else throw new m.RuntimeException("RangeLoader: Http code invalid, "+E.status+" "+E.statusText)}},k.prototype._onProgress=function(C){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var E=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,E=!0;var x=C.total;this._internalAbort(),x!=null&x!==0&&(this._totalLength=x)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,E){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 E=this._chunkSizeKBList,x=E.length-1,_=0,A=0,R=x;if(C=E[_]&&C=3&&(E=this._speedSampler.currentKBps)),E!==0){var x=this._normalizeSpeed(E);this._currentSpeedNormalized!==x&&(this._currentSpeedNormalized=x,this._currentChunkSizeKB=x)}var _=C.target.response,A=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var R=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new b.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(D,N){M._msectl.appendInitSegment(N)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(D,N){if(M._msectl.appendMediaSegment(N),M._config.lazyLoad&&!M._config.isLive){var L=M._mediaElement.currentTime;N.info.endDts>=(L+M._config.lazyLoadMaxDuration)*1e3&&M._progressChecker==null&&(p.default.v(M.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),M._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){M._msectl.endOfStream(),M._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){M._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(D,N){M._emitter.emit(g.default.ERROR,E.ErrorTypes.NETWORK_ERROR,D,N)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(D,N){M._emitter.emit(g.default.ERROR,E.ErrorTypes.MEDIA_ERROR,D,{code:-1,msg:N})}),this._transmuxer.on(S.default.MEDIA_INFO,function(D){M._mediaInfo=D,M._emitter.emit(g.default.MEDIA_INFO,Object.assign({},D))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(D){M._emitter.emit(g.default.METADATA_ARRIVED,D)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(D){M._emitter.emit(g.default.SCRIPTDATA_ARRIVED,D)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(D){M._statisticsInfo=M._fillStatisticsInfo(D),M._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},M._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(D){M._mediaElement&&!M._config.accurateSeek&&(M._requestSetTime=!0,M._mediaElement.currentTime=D/1e3)}),this._transmuxer.open()}},R.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)},R.prototype.play=function(){return this._mediaElement.play()},R.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(R.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(M){this._mediaElement.volume=M},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(M){this._mediaElement.muted=M},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(M){this._mediaElement?this._internalSeek(M):this._pendingSeekTime=M},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),R.prototype._fillStatisticsInfo=function(M){if(M.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return M;var D=!0,N=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();N=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(N=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):D=!1;return D&&(M.decodedFrames=N,M.droppedFrames=L),M},R.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var M=this._mediaElement.buffered,D=this._mediaElement.currentTime,N=0,L=0;L=D+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},R.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},R.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},R.prototype._checkProgressAndResume=function(){for(var M=this._mediaElement.currentTime,D=this._mediaElement.buffered,N=!1,L=0;L=B&&M=F-this._config.lazyLoadRecoverDuration&&(N=!0);break}}N&&(window.clearInterval(this._progressChecker),this._progressChecker=null,N&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},R.prototype._isTimepointBuffered=function(M){for(var D=this._mediaElement.buffered,N=0;N=L&&M0){var B=this._mediaElement.buffered.start(0);(B<1&&M0&&D.currentTime0){var L=N.start(0);if(L<1&&D0&&(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,E=0,x=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();E=_.totalVideoFrames,x=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(E=this._mediaElement.webkitDecodedFrameCount,x=this._mediaElement.webkitDroppedFrameCount):C=!1;return C&&(k.decodedFrames=E,k.droppedFrames=x),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=b}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return m}});var f=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:f.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:f.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:f.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:f.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 f={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=f}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var f=(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=f}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var f=(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,b=Array.prototype.slice.call(arguments,1),S=b.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,b=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,b>>>8&255,b&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,b=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"],b)},h.mp4a=function(p){var m=p.channelCount,g=p.audioSampleRate,b=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,b,h.esds(p))},h.esds=function(p){var m=p.config||[],g=m.length,b=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,b)},h.avc1=function(p){var m=p.avcc,g=p.codecWidth,b=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,b>>>8&255,b&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,b=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,b,S,C,k)},h.sdtp=function(p){for(var m=p.samples||[],g=m.length,b=new Uint8Array(4+g),S=0;S>>24&255,b>>>16&255,b>>>8&255,b&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255],0);for(var C=0;C>>24&255,E>>>16&255,E>>>8&255,E&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.isNonSync,0,0,A>>>24&255,A>>>16&255,A>>>8&255,A&255],12+16*C)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();f.init(),l.default=f}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var f=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"),b=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,E){if(!this._onMediaSegment)throw new b.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(C,E),this._remuxVideo(E),this._remuxAudio(C)},k.prototype._onTrackMetadataReceived=function(C,E){var x=null,_="mp4",A=E.codec;if(C==="audio")this._audioMeta=E,E.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",A="",x=new Uint8Array):x=h.default.generateInitSegment(E);else if(C==="video")this._videoMeta=E,x=h.default.generateInitSegment(E);else return;if(!this._onInitSegment)throw new b.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:x.buffer,codec:A,container:C+"/"+_,mediaDuration:E.duration})},k.prototype._calculateDtsBase=function(C,E){this._dtsBaseInited||(C.samples&&C.samples.length&&(this._audioDtsBase=C.samples[0].dts),E.samples&&E.samples.length&&(this._videoDtsBase=E.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var C=this._videoStashedLastSample,E=this._audioStashedLastSample,x={type:"video",id:1,sequenceNumber:0,samples:[],length:0};C!=null&&(x.samples.push(C),x.length=C.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};E!=null&&(_.samples.push(E),_.length=E.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(x,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(C,E){if(this._audioMeta!=null){var x=C,_=x.samples,A=void 0,R=-1,M=-1,D=this._audioMeta.refSampleDuration,N=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!E)){var F=0,j=null,z=0;N?(F=0,z=x.length):(F=8,z=8+x.length);var q=null;if(_.length>1&&(q=_.pop(),z-=q.length),this._audioStashedLastSample!=null){var G=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(G),z+=G.length}q!=null&&(this._audioStashedLastSample=q);var ee=_[0].dts-this._dtsBase;if(this._audioNextDts)A=ee-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())A=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var Q=this._audioSegmentInfoList.getLastSampleBefore(ee);if(Q!=null){var X=ee-(Q.originalDts+Q.duration);X<=3&&(X=0);var K=Q.dts+Q.duration+X;A=ee-K}else A=0}if(B){var te=ee-A,oe=this._videoSegmentInfoList.getLastSegmentBefore(ee);if(oe!=null&&oe.beginDts=ye*D&&this._fillAudioTimestampGap&&!m.default.safari){Xe=!0;var Me=Math.floor(A/D);f.default.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. `+("originalDts: "+Fe+" ms, curRefDts: "+_e+" ms, ")+("dtsCorrection: "+Math.round(A)+" ms, generate: "+Me+" frames")),ae=Math.floor(_e),Ke=Math.floor(_e+D)-ae;var ue=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ue==null&&(f.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),ue=Oe),Je=[];for(var We=0;We=1?Ke=$e[$e.length-1].duration:Ke=Math.floor(D);this._audioNextDts=ae+Ke}R===-1&&(R=ae),$e.push({dts:ae,pts:ae,cts:0,unit:G.unit,size:G.unit.byteLength,duration:Ke,originalDts:Fe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Xe&&$e.push.apply($e,Je)}}if($e.length===0){x.samples=[],x.length=0;return}N?j=new Uint8Array(z):(j=new Uint8Array(z),j[0]=z>>>24&255,j[1]=z>>>16&255,j[2]=z>>>8&255,j[3]=z&255,j.set(h.default.types.mdat,4));for(var ge=0;ge<$e.length;ge++){var Oe=$e[ge].unit;j.set(Oe,F),F+=Oe.byteLength}var Tt=$e[$e.length-1];M=Tt.dts+Tt.duration;var xt=new g.MediaSegmentInfo;xt.beginDts=R,xt.endDts=M,xt.beginPts=R,xt.endPts=M,xt.originalBeginDts=$e[0].originalDts,xt.originalEndDts=Tt.originalDts+Tt.duration,xt.firstSample=new g.SampleInfo($e[0].dts,$e[0].pts,$e[0].duration,$e[0].originalDts,!1),xt.lastSample=new g.SampleInfo(Tt.dts,Tt.pts,Tt.duration,Tt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(xt),x.samples=$e,x.sequenceNumber++;var qt=null;N?qt=new Uint8Array:qt=h.default.moof(x,R),x.samples=[],x.length=0;var Gt={type:"audio",data:this._mergeBoxes(qt,j).buffer,sampleCount:$e.length,info:xt};N&&L&&(Gt.timestampOffset=R),this._onMediaSegment("audio",Gt)}}},k.prototype._remuxVideo=function(C,E){if(this._videoMeta!=null){var x=C,_=x.samples,A=void 0,R=-1,M=-1,D=-1,N=-1;if(!(!_||_.length===0)&&!(_.length===1&&!E)){var L=8,B=null,F=8+C.length,j=null;if(_.length>1&&(j=_.pop(),F-=j.length),this._videoStashedLastSample!=null){var z=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(z),F+=z.length}j!=null&&(this._videoStashedLastSample=j);var q=_[0].dts-this._dtsBase;if(this._videoNextDts)A=q-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())A=0;else{var G=this._videoSegmentInfoList.getLastSampleBefore(q);if(G!=null){var ee=q-(G.originalDts+G.duration);ee<=3&&(ee=0);var Q=G.dts+G.duration+ee;A=q-Q}else A=0}for(var X=new g.MediaSegmentInfo,K=[],te=0;te<_.length;te++){var z=_[te],oe=z.dts-this._dtsBase,ue=z.isKeyframe,ae=oe-A,xe=z.cts,$e=ae+xe;R===-1&&(R=ae,D=$e);var ge=0;if(te!==_.length-1){var Oe=_[te+1].dts-this._dtsBase-A;ge=Oe-ae}else if(j!=null){var Oe=j.dts-this._dtsBase-A;ge=Oe-ae}else K.length>=1?ge=K[K.length-1].duration:ge=Math.floor(this._videoMeta.refSampleDuration);if(ue){var Fe=new g.SampleInfo(ae,$e,ge,z.dts,!0);Fe.fileposition=z.fileposition,X.appendSyncPoint(Fe)}K.push({dts:ae,pts:$e,cts:xe,units:z.units,size:z.length,isKeyframe:ue,duration:ge,originalDts:oe,flags:{isLeading:0,dependsOn:ue?2:1,isDependedOn:ue?1:0,hasRedundancy:0,isNonSync:ue?0:1}})}B=new Uint8Array(F),B[0]=F>>>24&255,B[1]=F>>>16&255,B[2]=F>>>8&255,B[3]=F&255,B.set(h.default.types.mdat,4);for(var te=0;te=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)||[],b={browser:m[5]||m[3]||m[1]||"",version:m[2]||m[4]||"0",majorVersion:m[4]||m[2]||"0",platform:g[0]||""},S={};if(b.browser){S[b.browser]=!0;var k=b.majorVersion.split(".");S.version={major:parseInt(b.majorVersion,10),string:b.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(b.platform&&(S[b.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var C="msie";b.browser=C,S[C]=!0}if(S.edge){delete S.edge;var E="msedge";b.browser=E,S[E]=!0}if(S.opr){var x="opera";b.browser=x,S[x]=!0}if(S.safari&&S.android){var _="android";b.browser=_,S[_]=!0}S.name=b.browser,S.platform=b.platform;for(var A in f)f.hasOwnProperty(A)&&delete f[A];Object.assign(f,S)}h(),l.default=f}),"./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 f=(function(){var b=function(S,k){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,E){C.__proto__=E}||function(C,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(C[x]=E[x])},b(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");b(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),h=(function(){function b(S){this._message=S}return Object.defineProperty(b.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),b.prototype.toString=function(){return this.name+": "+this.message},b})(),p=(function(b){f(S,b);function S(k){return b.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),m=(function(b){f(S,b);function S(k){return b.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(b){f(S,b);function S(k){return b.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 f=c("./node_modules/events/events.js"),h=c.n(f),p=(function(){function m(){}return m.e=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;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,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","info",S),m.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},m.w=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","warn",S),m.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},m.d=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","debug",S),m.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},m.v=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;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 f=c("./node_modules/events/events.js"),h=c.n(f),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(b){p.default.FORCE_GLOBAL_TAG=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(b){p.default.GLOBAL_TAG=b,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(b){p.default.ENABLE_VERBOSE=b,p.default.ENABLE_DEBUG=b,p.default.ENABLE_INFO=b,p.default.ENABLE_WARN=b,p.default.ENABLE_ERROR=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(b){p.default.ENABLE_DEBUG=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(b){p.default.ENABLE_VERBOSE=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(b){p.default.ENABLE_INFO=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(b){p.default.ENABLE_WARN=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(b){p.default.ENABLE_ERROR=b,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(b){p.default.GLOBAL_TAG=b.globalTag,p.default.FORCE_GLOBAL_TAG=b.forceGlobalTag,p.default.ENABLE_VERBOSE=b.enableVerbose,p.default.ENABLE_DEBUG=b.enableDebug,p.default.ENABLE_INFO=b.enableInfo,p.default.ENABLE_WARN=b.enableWarn,p.default.ENABLE_ERROR=b.enableError,p.default.ENABLE_CALLBACK=b.enableCallback},g._notifyChange=function(){var b=g.emitter;if(b.listenerCount("change")>0){var S=g.getConfig();b.emit("change",S)}},g.registerListener=function(b){g.emitter.addListener("change",b)},g.removeListener=function(b){g.emitter.removeListener("change",b)},g.addLogListener=function(b){p.default.emitter.addListener("log",b),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(b){p.default.emitter.removeListener("log",b),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 f=(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)),b+=2;continue}}}else if(g[b]<240){if(f(g,b,2)){var k=(g[b]&15)<<12|(g[b+1]&63)<<6|g[b+2]&63;if(k>=2048&&(k&63488)!==55296){m.push(String.fromCharCode(k&65535)),b+=3;continue}}}else if(g[b]<248&&f(g,b,3)){var k=(g[b]&7)<<18|(g[b+1]&63)<<12|(g[b+2]&63)<<6|g[b+3]&63;if(k>65536&&k<1114112){k-=65536,m.push(String.fromCharCode(k>>>10|55296)),m.push(String.fromCharCode(k&1023|56320)),b+=4;continue}}}m.push("�"),++b}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})()})})(tF)),tF.exports}var e4t=QTt();const eU=Ed(e4t);var nF={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var ule;function t4t(){return ule||(ule=1,(function(e){(function(){var t=typeof window<"u"?window:m8e,n={};(function(o,a,s){var l,c=typeof Object.create=="function"?Object.create:function(i){function u(){}return u.prototype=i,new u},f=typeof Object.defineProperties=="function"?Object.defineProperty:function(i,u,d){return i==Array.prototype||i==Object.prototype||(i[u]=d.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)+"_",y=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(" "),d=0;d"u"?!0:(typeof T=="function"?T=new T("unhandledrejection",{cancelable:!0}):typeof P=="function"?T=new P("unhandledrejection",{cancelable:!0}):(T=p.document.createEvent("CustomEvent"),T.initCustomEvent("unhandledrejection",!1,!0,T)),T.promise=this,T.reason=this.i,$(T))},u.prototype.B=function(){if(this.g!=null){for(var T=0;T1114111||y!==Math.floor(y))throw new RangeError("invalid_code_point "+y);y<=65535?d+=String.fromCharCode(y):(y-=65536,d+=String.fromCharCode(y>>>10&1023|55296),d+=String.fromCharCode(y&1023|56320))}return d}}),m("WeakSet",function(i){function u(d){if(this.g=new WeakMap,d){d=_(d);for(var v;!(v=d.next()).done;)this.add(v.value)}}return(function(){if(!i||!Object.seal)return!1;try{var d=Object.seal({}),v=Object.seal({}),y=new i([d]);return!y.has(d)||y.has(v)?!1:(y.delete(d),y.add(v),!y.has(d)&&y.has(v))}catch{return!1}})()?i:(u.prototype.add=function(d){return this.g.set(d,!0),this},u.prototype.has=function(d){return this.g.has(d)},u.prototype.delete=function(d){return this.g.delete(d)},u)}),m("Array.prototype.find",function(i){return i||function(u,d){return ge(this,u,d).v}}),m("String.prototype.startsWith",function(i){return i||function(u,d){var v=Fe(this,u,"startsWith"),y=v.length,w=u.length;d=Math.max(0,Math.min(d|0,v.length));for(var T=0;T=w}}),m("Object.entries",function(i){return i||function(u){var d=[],v;for(v in u)$e(u,v)&&d.push([v,u[v]]);return d}});var Xe=typeof Object.assign=="function"?Object.assign:function(i,u){for(var d=1;d1342177279)throw new RangeError("Invalid count value");u|=0;for(var v="";u;)u&1&&(v+=d),(u>>>=1)&&(d+=d);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 d=[],v;for(v in u)$e(u,v)&&d.push(u[v]);return d}}),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,d){var v=Fe(this,u,"endsWith");d===void 0&&(d=v.length),d=Math.max(0,Math.min(d|0,v.length));for(var y=u.length;y>0&&d>0;)if(v[--d]!=u[--y])return!1;return y<=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 d=Math.floor(Math.abs(u));return u<0?-d:d}});var Je=this||self;function Ke(i,u){i=i.split(".");var d=Je;i[0]in d||typeof d.execScript>"u"||d.execScript("var "+i[0]);for(var v;i.length&&(v=i.shift());)i.length||u===void 0?d[v]&&d[v]!==Object.prototype[v]?d=d[v]:d=d[v]={}:d[v]=u}function _e(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}_e.prototype.sample=function(i,u){var d=Math.pow(this.g,i);u=u*(1-d)+d*this.h,isNaN(u)||(this.h=u,this.i+=i)};function ye(i){return i.h/(1-Math.pow(i.g,i.i))}function Me(){this.h=new _e(2),this.j=new _e(5),this.g=0,this.i=128e3,this.l=16e3}Me.prototype.configure=function(i){this.i=i.minTotalBytes,this.l=i.minBytes,this.h.g=Math.exp(Math.log(.5)/i.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/i.slowHalfLife)},Me.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function Pt(i,u,d){if(d||(d=Gt),i.length!=u.length)return!1;u=u.slice(),i=_(i);for(var v=i.next(),y={};!v.done;y={mi:void 0},v=i.next()){if(y.mi=v.value,v=u.findIndex((function(w){return function(T){return d(w.mi,T)}})(y)),v==-1)return!1;u[v]=u[u.length-1],u.pop()}return u.length==0}function at(i,u,d){if(i===u)return!0;if(!i||!u)return i==u;if(d||(d=Gt),i.length!=u.length)return!1;for(var v=0;v0?v.i:v.h)(v.g,d,i,u)}function En(i,u,d,v){st([d,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",v].join(" "))}function er(i,u,d,v){qe([d,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",v].join(" "))}var ji=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Hl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function qr(i){var u;i instanceof qr?(io(this,i.bc),this.hd=i.hd,zs(this,i.Db),wn(this,i.Cd),this.Sb=i.Sb,fr(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Hl))?(io(this,u[1]||"",!0),this.hd=wi(u[2]||""),zs(this,u[3]||"",!0),wn(this,u[4]),this.Sb=wi(u[5]||"",!0),fr(this,u[6]||"",!0),this.Rc=wi(u[7]||"")):this.g=new ie(null)}l=qr.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(Hs(u,Wl,!0),":"),u=this.Db){i.push("//");var d=this.hd;d&&i.push(Hs(d,Wl,!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(Hs(u,u.charAt(0)=="/"?Ki:Gc,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",Hs(u,ce)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new qr);var d=!!i.bc;d?io(u,i.bc):d=!!i.hd,d?u.hd=i.hd:d=!!i.Db,d?zs(u,i.Db):d=i.Cd!=null;var v=i.Sb;if(d)wn(u,i.Cd);else if(d=!!i.Sb){if(v.charAt(0)!="/")if(this.Db&&!this.Sb)v="/"+v;else{var y=u.Sb.lastIndexOf("/");y!=-1&&(v=u.Sb.substr(0,y+1)+v)}if(v==".."||v==".")v="";else if(v.indexOf("./")!=-1||v.indexOf("/.")!=-1){y=v.lastIndexOf("/",0)==0,v=v.split("/");for(var w=[],T=0;T1||w.length==1&&w[0]!="")&&w.pop(),y&&T==v.length&&w.push("")):(w.push(P),y=!0)}v=w.join("/")}}return d?u.Sb=v:d=i.g.toString()!=="",d?fr(u,i.g.clone()):d=!!i.Rc,d&&(u.Rc=i.Rc),u},l.clone=function(){return new qr(this)};function io(i,u,d){i.bc=d?wi(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function zs(i,u,d){i.Db=d?wi(u,!0):u}function wn(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 fr(i,u,d){u instanceof ie?i.g=u:(d||(u=Hs(u,Gl)),i.g=new ie(u))}function wi(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function Hs(i,u,d){return i!=null?(i=encodeURI(i).replace(u,hs),d&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function hs(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var Wl=/[#\/\?@]/g,Gc=/[#\?:]/g,Ki=/[#\?]/g,Gl=/[#\?@]/g,ce=/#/g;function ie(i){this.g=i||null}function ne(i){if(!i.eb&&(i.eb=new Map,i.Sd=0,i.g))for(var u=i.g.split("&"),d=0;d=0){var w=u[d].substring(0,v);y=u[d].substring(v+1)}else w=u[d];w=decodeURIComponent(w),y=y||"",i.add(w,decodeURIComponent(y))}}l=ie.prototype,l.eb=null,l.Sd=null;function Z(i){return ne(i),i.Sd}l.add=function(i,u){ne(this),this.g=null;var d=this.eb.has(i)?this.eb.get(i):null;return d||this.eb.set(i,d=[]),d.push(u),this.Sd++,this},l.set=function(i,u){return ne(this),this.g=null,this.eb.has(i)?this.eb.set(i,[u]):this.add(i,u),this},l.get=function(i){return ne(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()),d=u.next();!d.done;d=u.next()){var v=d.value;d=encodeURIComponent(v),v=this.eb.get(v);for(var y=0;y=d+2&&(i[d]&224)==192&&(i[d+1]&192)==128?(v=(i[d]&31)<<6|i[d+1]&63,d+=1):i.length>=d+3&&(i[d]&240)==224&&(i[d+1]&192)==128&&(i[d+2]&192)==128?(v=(i[d]&15)<<12|(i[d+1]&63)<<6|i[d+2]&63,d+=2):i.length>=d+4&&(i[d]&241)==240&&(i[d+1]&192)==128&&(i[d+2]&192)==128&&(i[d+3]&192)==128&&(v=(i[d]&7)<<18|(i[d+1]&63)<<12|(i[d+2]&63)<<6|i[d+3]&63,d+=3),v<=65535)u+=String.fromCharCode(v);else{v-=65536;var y=v&1023;u+=String.fromCharCode(55296+(v>>10)),u+=String.fromCharCode(56320+y)}}return u}function Rt(i,u,d){if(!i)return"";if(!d&&i.byteLength%2!=0)throw new we(2,2,2004);d=Math.floor(i.byteLength/2);var v=new Uint16Array(d);i=tt(i);for(var y=0;y=9&&d[v]<=126}if(!i)return"";var d=Ie(i);if(d[0]==239&&d[1]==187&&d[2]==191)return rt(d);if(d[0]==254&&d[1]==255)return Rt(d.subarray(2),!1);if(d[0]==255&&d[1]==254)return Rt(d.subarray(2),!0);if(d[0]==0&&d[2]==0)return Rt(i,!1);if(d[1]==0&&d[3]==0)return Rt(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return rt(i);throw new we(2,2,2003)}function Ut(i){if(o.TextEncoder&&!Le().rh()){var u=new TextEncoder;return Se(u.encode(i))}i=encodeURIComponent(i),i=unescape(i),u=new Uint8Array(i.length);for(var d=0;d",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},d=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,v=RegExp(d.source);return i&&v.test(i)?i.replace(d,function(y){return y[1]=="#"?(y=y[2]=="x"||y[2]=="X"?parseInt(y.substring(3),16):parseInt(y.substring(2),10),y>=0&&y<=1114111?String.fromCodePoint(y):""):u[y]||"'"}):i||""}Ke("shaka.util.StringUtils",Qe),Qe.resetFromCharCode=function(){tr.g=void 0},Qe.toUTF16=sn,Qe.toUTF8=Ut,Qe.fromBytesAutoDetect=Xt,Qe.fromUTF16=Rt,Qe.fromUTF8=rt;var tr=new et(function(){function i(d){try{var v=new Uint8Array(d);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(d){return function(v){for(var y="",w=0;w"u"&&st("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,Yt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{st("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(st("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||st(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 Jr(i,u,d,v){v.type!=="video"||i.o&&!v.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",v.id,-d,!i.o)}function Kl(i){i.g&&i.i.classList.add("shaka-hidden")}Bo.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function bl(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}Ke("shaka.lcevc.Dec",Bo),Bo.prototype.release=Bo.prototype.release;function Lo(i){if(Tf.has(i))return Tf.get(i);var u=o.ManagedMediaSource||o.MediaSource;return u?(u=u.isTypeSupported(i),Tf.set(i,u),u):!1}function oc(){var i=o.ManagedSourceBuffer||o.SourceBuffer;return!!i&&!!i.prototype&&!!i.prototype.changeType}function Gg(){var i=o.ManagedMediaSource||o.MediaSource;return i&&i.prototype?!!i.prototype.setLiveSeekableRange&&!!i.prototype.clearLiveSeekableRange:!1}var Tf=new Map;function ql(){}ql.prototype.extract=function(){},ql.prototype.decode=function(){return[]},ql.prototype.clear=function(){},ql.prototype.getStreams=function(){return[]};function sc(){}sc.prototype.init=function(){},sc.prototype.parse=function(){return[]};function Kh(){}l=Kh.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},Ke("shaka.media.IClosedCaptionParser",Kh);function Ts(i){this.h=new Map,this.i=0,this.j=new sc,(i=Kc(i.toLowerCase()))&&(this.j=i()),this.g=new ql,(i=Tu)&&(this.g=i(),this.h.set(this.i,this.g))}l=Ts.prototype,l.init=function(i,u,d){if(u=u===void 0?!1:u,d=d===void 0?-1:d,d!=-1&&this.i!=d){u=d;var v=this.h.get(u);this.h.set(this.i,this.g),v?this.g=v:((v=Tu)&&(this.g=v()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(i),d!=-1&&(this.i=d)},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 d=Ie(u.packet);d.length>0&&this.g.extract(d,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()),d=u.next();!d.done;d=u.next())if(d=d.value,!i.has(d)){var v=this.h.get(d);v&&v.clear(),this.h.delete(d)}},l.Vf=function(){return this.g.getStreams()};function Af(i,u){Ld.set(i,u)}function Kc(i){return Ld.get(i)}Ke("shaka.media.ClosedCaptionParser",Ts),Ts.findDecoder=function(){return Tu},Ts.unregisterDecoder=function(){Tu=null},Ts.registerDecoder=function(i){Tu=i},Ts.findParser=Kc,Ts.unregisterParser=function(i){Ld.delete(i)},Ts.registerParser=Af;var Ld=new Map,Tu=null;function Wa(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=vs,this.scroll=qh}Ke("shaka.text.CueRegion",Wa);var vs=1;Wa.units={PX:0,PERCENTAGE:vs,LINES:2};var qh="";Wa.scrollMode={NONE:qh,UP:"up"};function ac(i){this.h=i||"",this.g=0}function lc(i){Au(i,/[ \t]+/gm)}function Au(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 uc(i){return i.g==i.h.length?null:(i=Au(i,/[^ \t\n]*/gm))?i[0]:null}function If(i){if(i=Au(i,Kt),i==null)return null;var u=Number(i[2]),d=Number(i[3]);return u>59||d>59?null:(Number(i[6])||0)/1e3+d+u*60+(Number(i[1])||0)*3600}function Et(i){return i?If(new ac(i)):null}var Kt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function tn(){}function on(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(d.has(v))return null;var y=Array.isArray(v);if(v.constructor!=Object&&!y)return null;d.add(v);var w=y?[]:{},T;for(T in v)w[T]=u(v[T]);return y&&(w.length=v.length),w}}var d=new WeakSet;return u(i)}function bn(i){var u={},d;for(d in i)u[d]=i[d];return u}function zn(i){if(Array.isArray(i)){for(var u=[],d=0;d",y),T=i.substring(T,y);var $=T.indexOf(w);if($==-1){var U=w.indexOf(".");U>0&&($=T.indexOf(w.substring(0,U)))}if($==-1)throw w=i.substring(0,y).split(` `),Error(`Unexpected close tag Line: `+(w.length-1)+` Column: `+(w[w.length-1].length+1)+` Char: `+i[y]);y+1&&(y+=1);break}else if(i.charCodeAt(y+1)===33){if(i.charCodeAt(y+2)==45){for(;y!==-1&&(i.charCodeAt(y)!==62||i.charCodeAt(y-1)!=45||i.charCodeAt(y-2)!=45||y==-1);)y=i.indexOf(">",y+1);y===-1&&(y=i.length)}else if(i.charCodeAt(y+2)===91&&i.charCodeAt(y+8)===91&&i.substr(y+3,5).toLowerCase()==="cdata"){$=i.indexOf("]]>",y),$==-1?(P.push(i.substr(y+9)),y=i.length):(P.push(i.substring(y+9,$)),y=$+3);continue}y++;continue}e:{U=T,y++;var W=v(),Y={};for($=[];i.charCodeAt(y)!==62&&i[y];){var re=i.charCodeAt(y);if(re>64&&re<91||re>96&&re<123){re=v();for(var le=i.charCodeAt(y);le&&le!==39&&le!==34&&!(le>64&&le<91||le>96&&le<123)&&le!==62;)y++,le=i.charCodeAt(y);var fe=y+1;if(y=i.indexOf(i[y],fe),fe=i.slice(fe,y),le===39||le===34){if(y===-1){if(U={tagName:W,attributes:Y,children:$,parent:null},u)for(W=0;W<$.length;W++)typeof $[W]!="string"&&($[W].parent=U);$=U;break e}}else fe=null,y--;if(re.startsWith("xmlns:")){le=fe;var ve=re.split(":")[1];S5.set(le,ve),k5.set(ve,le)}W==="tt"&&re==="xml:space"&&fe==="preserve"&&(U=!0),Y[re]=fe}y++}for(i.charCodeAt(y-1)!==47?(y++,$=d(W,U)):y++,U={tagName:W,attributes:Y,children:$,parent:null},W=$.length,Y=0;Y0&&P.push($):(P.length&&$.length==1&&$[0]==` `||$.trim().length>0)&&P.push($),y++;return P}function v(){for(var w=y;`\r >/= `.indexOf(i[y])===-1&&i[y];)y++;return i.slice(w,y)}var y=0;return d("")}function Iu(i){return typeof i=="string"}function cc(i){var u=[];if(!i.children)return[];i=_(i.children);for(var d=i.next();!d.done;d=i.next())d=d.value,typeof d!="string"&&u.push(d);return u}function Ar(i,u){var d=[];if(!i.children)return[];i=_(i.children);for(var v=i.next();!v.done;v=i.next())v=v.value,v.tagName===u&&d.push(v);return d}function cr(i){return typeof i=="string"?rn(i):(i=i.children.reduce(function(u,d){return typeof d=="string"?u+d:u},""),i===""?null:rn(i))}function oo(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=cr(i))&&(i=i.trim()),i):null}function ya(i,u,d){if(d=d===void 0?[]:d,i.tagName===u&&d.push(i),i.children){i=_(i.children);for(var v=i.next();!v.done;v=i.next())ya(v.value,u,d)}return d}function Yr(i,u){return i=Ar(i,u),i.length!=1?null:i[0]}function ba(i,u,d){return i=sw(i,u,d),i.length!=1?null:i[0]}function An(i,u,d,v){v=v===void 0?null:v;var y=null;return i=i.attributes[u],i!=null&&(y=d(i)),y??v}function Lu(i,u,d){return u=Vi(u),i.attributes[u+":"+d]||null}function sw(i,u,d){var v=Vi(u);if(u=[],i.children)for(d=v?v+":"+d:d,i=_(i.children),v=i.next();!v.done;v=i.next())(v=v.value)&&v.tagName===d&&u.push(v);return u}function As(i,u,d){u=_(u);for(var v=u.next();!v.done;v=u.next())if(v=Lu(i,v.value,d))return v;return null}function Lf(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 Pd(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 aw(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 Is(i){return i=Number(i),i%1===0?i:null}function Rd(i){return i=Number(i),i%1===0&&i>0?i:null}function Ls(i){return i=Number(i),i%1===0&&i>=0?i:null}function lw(i){return i=Number(i),isNaN(i)?null:i}function uw(i){return i?i.toLowerCase()==="true":!1}function eSe(i){var u,d=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(d)?null:d}function cw(i){var u=[];i=rn(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=_(i);for(var d=i.next();!d.done;d=i.next()){d=d.value;var v=d.match(/^([\w]+)/);if(v){var y=d.match(/(@id='(.*?)')/),w=d.match(/(@t='(\d+)')/),T=d.match(/(@n='(\d+)')/),P=d.match(/\[(\d+)\]/);u.push({name:v[0],id:y?y[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:w?Number(w[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:T?Number(T[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:P?Number(P[1])-1:null,Cc:d.split("/@")[1]||null})}else d.startsWith("@")&&u.length&&(u[u.length-1].Cc=d.slice(1))}return u}function TG(i,u){var d=cw(u.attributes.sel||"");if(d.length){var v=d[d.length-1],y=u.attributes.pos||null;d=v.position,d==null&&(v.t!==null&&(d=AG(i,"t",v.t)),v.n!==null&&(d=AG(i,"n",v.n))),d===null?d=y==="prepend"?0:i.length:y==="prepend"?--d:y==="after"&&++d,y=u.tagName,(v=v.Cc)&&i[d]?IG(i[d],y,v,oo(u)||""):(y!=="remove"&&y!=="replace"||i.splice(d,1),y!=="add"&&y!=="replace"||i.splice.apply(i,[d,0].concat(A(u.children))))}}function AG(i,u,d){var v=0;i=_(i);for(var y=i.next();!y.done;y=i.next()){if(Number(y.value.attributes[u])===d)return v;v++}return null}function IG(i,u,d,v){u==="remove"?delete i.attributes[d]:(u==="add"||u==="replace")&&(i.attributes[d]=v)}function LG(i){var u="",d=i.tagName.split(":");d.length>0&&(u=d[0],u=k5.has(u)?k5.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,d=void 0,typeof v=="string"?d=new Text(v):d=LG(v),u.appendChild(d);return u}function _5(i){if(!i)return null;var u={tagName:i.tagName,attributes:bn(i.attributes),children:[],parent:null};i=_(i.children);for(var d=i.next();!d.done;d=i.next())d=d.value,typeof d=="string"||(d=_5(d),d.parent=u),u.children.push(d);return u}var S5=new Map,k5=new Map;function Ci(i,u,d){this.startTime=i,this.endTime=u,this.payload=d,this.region=new Wa,this.position=null,this.positionAlign=hw,this.size=0,this.textAlign=Md,this.direction=cb,this.writingMode=Mv,this.lineInterpretation=db,this.line=null,this.lineHeight="",this.lineAlign=Dv,this.displayAlign=ub,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=NG,this.fontStyle=E5,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 PG(i,u){return i=new Ci(i,u,""),i.lineBreak=!0,i}Ci.prototype.clone=function(){var i=new Ci(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function dw(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 d in i)if(d!="startTime"&&d!="endTime"&&d!="payload"){if(d=="nestedCues"){if(!at(i.nestedCues,u.nestedCues,dw))return!1}else if(d=="region"||d=="cellResolution"){for(var v in i[d])if(i[d][v]!=u[d][v])return!1}else if(Array.isArray(i[d])){if(!at(i[d],u[d]))return!1}else if(i[d]!=u[d])return!1}return!0}function fw(i,u){u=u===void 0?new Map:u;var d=i.payload;if(d.includes("<")){u.size===0&&RG(u);var v=d;d=[];for(var y=-1,w=0;w"&&y>0&&(y=v.substr(y,w-y),y.match(nSe)&&d.push(y),y=-1);for(d=_(d),w=d.next();!w.done;w=d.next())w=w.value,v=v.replace("<"+w+">",'
'),v+="
";e:{w=v,y=[];var T=-1;d="",v=!1;for(var P=0;P",P);if($===-1){d=w;break e}if(($=w.substring(P+1,$))&&$=="v"){v=!0;var U=null;if(y.length&&(U=y[y.length-1]),U){if(U===$)d+="/"+$+">";else{if(!U.startsWith("v")){d+=w[P];continue}d+="/"+U+">"}P+=$.length+1}else d+=w[P]}else d+=w[P]}else w[P]==="<"?(T=P+1,w[T]!="v"&&(T=-1)):w[P]===">"&&T>0&&(y.push(w.substr(T,P-T)),T=-1),d+=w[P];for(w=_(y),y=w.next();!y.done;y=w.next())y=y.value,T=y.replace(" ",".voice-"),d=d.replace("<"+y+">","<"+T+">"),d=d.replace("",""),v||(d+="")}d=tSe(d),i.payload="",v=""+d.replace(/\n/g,"
")+"
";try{var W=Qr(v,"span")}catch{}if(W)if(W=W.children,W.length!=1||W[0].tagName)for(W=_(W),d=W.next();!d.done;d=W.next())MG(d.value,i,u);else i.payload=rn(d);else i.payload=rn(d)}else i.payload=rn(d)}function RG(i){for(var u=_(Object.entries(OG)),d=u.next();!d.done;d=u.next()){var v=_(d.value);d=v.next().value,v=v.next().value;var y=new Ci(0,0,"");y.color=v,i.set("."+d,y)}for(u=_(Object.entries($G)),d=u.next();!d.done;d=u.next())v=_(d.value),d=v.next().value,v=v.next().value,y=new Ci(0,0,""),y.backgroundColor=v,i.set("."+d,y)}function tSe(i){var u={"< ":""," >":" >"},d=/(< +>|<\s|\s>)/g,v=RegExp(d.source);return i&&v.test(i)?i.replace(d,function(y){return u[y]||""}):i||""}function MG(i,u,d){var v=u.clone();if(v.nestedCues=[],v.payload="",v.rubyTag="",v.line=null,v.region=new Wa,v.position=null,v.size=0,v.textAlign=Md,i.tagName)for(var y=_(i.tagName.split(/(?=[ .])+/g)),w=y.next();!w.done;w=y.next()){var T=w=w.value;if(T.startsWith(".voice-")){var P=T.split("-").pop();T='v[voice="'+P+'"]',d.has(T)||(T="v[voice="+P+"]")}switch(d.has(T)&&(P=v,T=d.get(T))&&(P.backgroundColor=lb(T.backgroundColor,P.backgroundColor),P.color=lb(T.color,P.color),P.fontFamily=lb(T.fontFamily,P.fontFamily),P.fontSize=lb(T.fontSize,P.fontSize),P.textShadow=lb(T.textShadow,P.textShadow),P.fontWeight=T.fontWeight,P.fontStyle=T.fontStyle,P.opacity=T.opacity,P.rubyTag=T.rubyTag,P.textCombineUpright=T.textCombineUpright,P.wrapLine=T.wrapLine),w){case"br":v=PG(v.startTime,v.endTime),u.nestedCues.push(v);return;case"b":v.fontWeight=Kg;break;case"i":v.fontStyle=qg;break;case"u":v.textDecoration.push(Pf);break;case"font":(w=i.attributes.color)&&(v.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=Et(w))&&(v.startTime=w);break;case"ruby":case"rp":case"rt":v.rubyTag=w}}if(y=i.children,Iu(i)||y.length==1&&Iu(y[0]))for(d=cr(i).split(` `),i=!0,d=_(d),y=d.next();!y.done;y=d.next())y=y.value,i||(i=PG(v.startTime,v.endTime),u.nestedCues.push(i)),y.length>0&&(i=v.clone(),i.payload=rn(y),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(v),u=_(y),i=u.next();!i.done;i=u.next())MG(i.value,v,d)}function lb(i,u){return i&&i.length>0?i:u}Ke("shaka.text.Cue",Ci),Ci.parseCuePayload=fw,Ci.equal=dw,Ci.prototype.clone=Ci.prototype.clone;var hw="auto";Ci.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:hw};var Md="center",w5={LEFT:"left",RIGHT:"right",CENTER:Md,START:"start",END:"end"};Ci.textAlign=w5;var ub="after",DG={BEFORE:"before",CENTER:"center",AFTER:ub};Ci.displayAlign=DG;var cb="ltr";Ci.direction={HORIZONTAL_LEFT_TO_RIGHT:cb,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Mv="horizontal-tb";Ci.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Mv,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var db=0;Ci.lineInterpretation={LINE_NUMBER:db,PERCENTAGE:1};var Dv="start",C5={CENTER:"center",START:Dv,END:"end"};Ci.lineAlign=C5;var OG={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ci.defaultTextColor=OG;var $G={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ci.defaultTextBackgroundColor=$G;var NG=400,Kg=700;Ci.fontWeight={NORMAL:NG,BOLD:Kg};var E5="normal",qg="italic",BG={NORMAL:E5,ITALIC:qg,OBLIQUE:"oblique"};Ci.fontStyle=BG;var Pf="underline";Ci.textDecoration={UNDERLINE:Pf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var nSe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Yh(){}Yh.prototype.destroy=function(){};function Rf(i,u,d){x5.set(i.toLowerCase().split(";")[0]+"-"+d,{priority:d,yf:u})}function Yg(i,u){for(var d=i.toLowerCase().split(";")[0],v=_([FG,A5,T5,Xh]),y=v.next();!y.done;y=v.next())if(y=x5.get(d+"-"+y.value)){var w=y.yf(),T=w.isSupported(i,u);if(w.destroy(),T)return y.yf}return null}Ke("shaka.transmuxer.TransmuxerEngine",Yh),Yh.findTransmuxer=Yg,Yh.unregisterTransmuxer=function(i,u){x5.delete(i.toLowerCase().split(";")[0]+"-"+u)},Yh.registerTransmuxer=Rf,Yh.prototype.destroy=Yh.prototype.destroy;var x5=new Map,Xh=1,T5=2,A5=3,FG=4;Yh.PluginPriority={FALLBACK:Xh,PREFERRED_SECONDARY:T5,PREFERRED:A5,APPLICATION:FG};function I5(){}function co(i,u){var d=i;return u&&!Mf.includes(i)&&(d+='; codecs="'+u+'"'),d}function pw(i,u){return u&&(i+='; codecs="'+u+'"'),i}function L5(i,u,d){var v=co(i,u);return u=pw(i,u),Yg(u)?(i=Yg(u))?(i=i(),d=i.convertCodecs(d,u),i.destroy()):d=u:d=i!="video/mp2t"&&d=="audio"?v.replace("video","audio"):v,d}function fb(i){return i.split(";")[0].split("/")[1]}function Ws(i){var u=jG(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 Zh(i){var u=[];i=_(i.split(","));for(var d=i.next();!d.done;d=i.next())d=jG(d.value),u.push(d[0]);return u.sort().join(",")}function _l(i){return i.split(";")[0]}function Ga(i){return i=i.split(/ *; */),i.shift(),(i=i.find(function(u){return u.startsWith("codecs=")}))?i.split("=")[1].replace(/^"|"$/g,""):""}function hb(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function jG(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}Ke("shaka.util.MimeUtils",I5),I5.getFullTypeWithAllCodecs=pw,I5.getFullType=co,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Mf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Df(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 Ps(i,u){mb.set(i,u)}function pb(i){return mb.get(i)}function vb(i){return mb.has(i)?!0:i=="application/cea-608"||i=="application/cea-708"?!!Tu:!1}Df.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function rSe(i,u,d,v,y){var w,T,P,$,U,W,Y;return ae(function(re){if(re.g==1)return L(re,Promise.resolve(),2);if(!i.i||!i.l)return re.return();if(d==null||v==null)return i.i.parseInit(Ie(u)),re.return();for(w=i.C?d:i.u,T={periodStart:i.u,segmentStart:d,segmentEnd:v,vttOffset:w},P=i.i.parseMedia(Ie(u),T,y,[]),$=_(P),U=$.next();!U.done;U=$.next())W=U.value,i.B(W,y||null,T);Y=P.filter(function(le){return le.startTime>=i.m&&le.startTime=u)return y.return();d&&sSe(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)),zG(v)),B(y)})};function iSe(i,u,d){i.m=u,i.o=d}function VG(i,u,d){i.F=u,(u=i.j.get(u))&&(u=u.filter(function(v){return v.endTime<=d}),u.length&&i.l.append(u))}function UG(i,u,d){u.startTime+=d,u.endTime+=d,u=_(u.nestedCues);for(var v=u.next();!v.done;v=u.next())UG(i,v.value,d)}function oSe(i,u,d){var v=new Map;u=_(u);for(var y=u.next();!y.done;y=u.next()){var w=y.value;y=w.stream,w=w.cue,v.has(y)||v.set(y,[]),UG(i,w,d),w.startTime>=i.m&&w.startTime=d}),i.j.set(y,w)}}function zG(i){for(var u=1/0,d=-1/0,v=_(i.j.values()),y=v.next();!y.done;y=v.next()){y=_(y.value);for(var w=y.next();!w.done;w=y.next())w=w.value,u=Math.min(u,w.startTime),d=Math.max(d,w.endTime)}u!==1/0&&d!==-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(d,i.o)))}Ke("shaka.text.TextEngine",Df),Df.prototype.destroy=Df.prototype.destroy,Df.findParser=pb,Df.unregisterParser=function(i){mb.delete(i)},Df.registerParser=Ps;var mb=new Map;function gb(i){this.h=i,this.g=null}gb.prototype.ia=function(i){var u=this;this.stop();var d=!0,v=null;return this.g=function(){o.clearTimeout(v),d=!1},v=o.setTimeout(function(){d&&u.h()},i*1e3),this},gb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function sr(i){this.h=i,this.g=null}sr.prototype.Jb=function(){return this.stop(),this.h(),this},sr.prototype.ia=function(i){var u=this;return this.stop(),this.g=new gb(function(){u.h()}).ia(i),this},sr.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new gb(function(){u.g.ia(i),u.h()}).ia(i),this},sr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},Ke("shaka.util.Timer",sr),sr.prototype.stop=sr.prototype.stop,sr.prototype.tickEvery=sr.prototype.Ea,sr.prototype.tickAfter=sr.prototype.ia,sr.prototype.tickNow=sr.prototype.Jb;function aSe(i,u){return i.concat(u)}function lSe(){}function Jh(i){return i!=null}function vw(i,u){return Promise.race([u,new Promise(function(d,v){new sr(v).ia(i)})])}function dc(){}function Xg(i,u){return i=Br(i),u=Br(u),i.split("-")[0]==u.split("-")[0]}function yb(i,u){return i=Br(i),u=Br(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function P5(i,u){return i=Br(i),u=Br(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function Br(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 d=_(u.split("-"));return u=d.next().value,u=u===void 0?"":u,d=d.next().value,d=d===void 0?"":d,i=i?"x-"+i:"",u=u.toLowerCase(),u=HG.get(u)||u,d=d.toUpperCase(),(d?u+"-"+d:u)+(i?"-"+i:"")}function Ov(i,u){return i=Br(i),u=Br(u),u==i?4:yb(u,i)?3:P5(u,i)?2:yb(i,u)?1:0}function mw(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=HG.get(i)||i}function R5(i){return i.language?Br(i.language):i.audio&&i.audio.language?Br(i.audio.language):i.video&&i.video.language?Br(i.video.language):"und"}function gw(i,u){i=Br(i);var d=new Set;u=_(u);for(var v=u.next();!v.done;v=u.next())d.add(Br(v.value));for(u=_(d),v=u.next();!v.done;v=u.next())if(v=v.value,v==i)return v;for(u=_(d),v=u.next();!v.done;v=u.next())if(v=v.value,yb(v,i))return v;for(u=_(d),v=u.next();!v.done;v=u.next())if(v=v.value,P5(v,i))return v;for(d=_(d),u=d.next();!u.done;u=d.next())if(u=u.value,yb(i,u))return u;return null}Ke("shaka.util.LanguageUtils",dc),dc.findClosestLocale=gw,dc.getLocaleForVariant=R5,dc.getLocaleForText=function(i){return Br(i.language||"und")},dc.getBase=mw,dc.relatedness=Ov,dc.areSiblings=function(i,u){var d=mw(i),v=mw(u);return i!=d&&u!=v&&d==v},dc.normalize=Br,dc.isSiblingOf=P5,dc.isParentOf=yb,dc.areLanguageCompatible=Xg,dc.areLocaleCompatible=function(i,u){return i=Br(i),u=Br(u),i==u};var HG=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 WG(){}function GG(i,u,d,v,y){function w(Re){var Te=String(Re.width||"")+String(Re.height||"")+String(Math.round(Re.frameRate||0))+(Re.hdr||"")+Re.fastSwitching;return Re.dependencyStream&&(Te+=Re.dependencyStream.baseOriginalId||""),Re.roles&&(Te+=Re.roles.sort().join("_")),Te}function T(Re){var Te=Re.language+(Re.channelsCount||0)+(Re.audioSamplingRate||0)+Re.roles.join(",")+Re.label+Re.groupId+Re.fastSwitching;return Re.dependencyStream&&(Te+=Re.dependencyStream.baseOriginalId||""),Te}if(y.length){var P=i.textStreams;y=_(y);for(var $=y.next(),U={};!$.done;U={Bh:void 0},$=y.next())if(U.Bh=$.value,$=P.filter((function(Re){return function(Te){return!!(Te.codecs.startsWith(Re.Bh)||Te.mimeType.startsWith(Re.Bh))}})(U)),$.length){P=$;break}i.textStreams=P}if(P=i.variants,(u.length||d.length)&&(P=uSe(P,u,d)),v.length){for(u=new bt,d=_(P),P=d.next();!P.done;P=d.next())P=P.value,u.push(String(P.video.width||0),P);var W=[];u.forEach(function(Re,Te){Re=0;var ze=[];Te=_(Te);for(var nt=Te.next(),mt={};!nt.done;mt={Tf:void 0},nt=Te.next())mt.Tf=nt.value,nt=v.filter((function(Ze){return function(Ve){return Ze.Tf.decodingInfos[0][Ve]}})(mt)).length,nt>Re?(Re=nt,ze=[mt.Tf]):nt==Re&&ze.push(mt.Tf);W.push.apply(W,A(ze))}),P=W}for(d=new Set,u=new Set,P=_(P),y=P.next();!y.done;y=P.next())y=y.value,y.audio&&d.add(y.audio),y.video&&u.add(y.video);P=Array.from(d).sort(function(Re,Te){return Re.bandwidth-Te.bandwidth});var Y=[];for(d=new Map,P=_(P),y=P.next();!y.done;y=P.next()){if(y=y.value,$=T(y),U=d.get($)||[],U.length){var re=U[U.length-1],le=Ws(re.codecs),fe=Ws(y.codecs);le!=fe||y.bandwidth&&re.bandwidth&&!(y.bandwidth>re.bandwidth)||(U.push(y),Y.push(y.id))}else U.push(y),Y.push(y.id);d.set($,U)}var ve={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};P=Array.from(u).sort(function(Re,Te){if(!Re.bandwidth||!Te.bandwidth||Re.bandwidth==Te.bandwidth){if(Re.codecs&&Te.codecs&&Re.codecs!=Te.codecs&&Re.width==Te.width){var ze=Ws(Re.codecs),nt=Ws(Te.codecs);if(ze!=nt)return(ve[ze]||1)-(ve[nt]||1)}return Re.width-Te.width}return Re.bandwidth-Te.bandwidth}),u=oc();var me=[];for(d=new Map,P=_(P),y=P.next();!y.done;y=P.next()){if(y=y.value,$=w(y),U=d.get($)||[],U.length){if(re=U[U.length-1],!u&&(le=Ws(re.codecs),fe=Ws(y.codecs),le!==fe))continue;le=Ws(re.codecs),fe=Ws(y.codecs),le!=fe||y.bandwidth&&re.bandwidth&&!(y.bandwidth>re.bandwidth)||(U.push(y),me.push(y.id))}else U.push(y),me.push(y.id);d.set($,U)}i.variants=i.variants.filter(function(Re){var Te=Re.audio;return Re=Re.video,!(Te&&!Y.includes(Te.id)||Re&&!me.includes(Re.id))})}function uSe(i,u,d){u=_(u);for(var v=u.next(),y={};!v.done;y={videoCodec:void 0},v=u.next())if(y.videoCodec=v.value,v=i.filter((function(w){return function(T){return T.video&&T.video.codecs.startsWith(w.videoCodec)}})(y)),v.length){i=v;break}for(d=_(d),u=d.next(),v={};!u.done;v={audioCodec:void 0},u=d.next())if(v.audioCodec=u.value,u=i.filter((function(w){return function(T){return T.audio&&T.audio.codecs.startsWith(w.audioCodec)}})(v)),u.length){i=u;break}return i}function cSe(i,u,d){i.variants=i.variants.filter(function(v){return yw(v,u,d)})}function yw(i,u,d){function v(P,$,U){return P>=$&&P<=U}var y=i.video;if(y&&y.width&&y.height){var w=y.width,T=y.height;if(T>w&&(T=_([T,w]),w=T.next().value,T=T.next().value),!v(w,u.minWidth,Math.min(u.maxWidth,d.width))||!v(T,u.minHeight,Math.min(u.maxHeight,d.height))||!v(y.width*y.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 dSe(i,u,d,v){return d=d===void 0?[]:d,v=v===void 0?{}:v,ae(function(y){return y.g==1?L(y,KG(i,u,u.offlineSessionIds.length>0,d,v),2):(vSe(u),L(y,mSe(u),0))})}function KG(i,u,d,v,y){var w,T;return ae(function(P){if(P.g==1)return Le().Ui()&&fSe(u.variants),L(P,M5(u.variants,d,!1,v),2);w=null,i&&(T=i.g)&&(w=T.keySystem),u.variants=u.variants.filter(function($){var U=hSe($,w,y);if(!U){var W=[];$.audio&&W.push(eK($.audio)),$.video&&W.push(eK($.video))}return U}),B(P)})}function fSe(i){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),d=new Set;i=_(i);for(var v=i.next();!v.done;v=i.next())v=v.value,v.video&&d.add(v.video);for(d=_(d),i=d.next();!i.done;i=d.next()){i=i.value,v=_(u);for(var y=v.next();!y.done;y=v.next()){var w=_(y.value);if(y=w.next().value,w=w.next().value,i.codecs.includes(y)){i.codecs=i.codecs.replace(y,w);break}}}}function hSe(i,u,d){if(!i.decodingInfos.some(function($){return!(!$.supported||u&&($=$.keySystemAccess)&&(d[$.keySystem]||$.keySystem)!=u)}))return!1;var v=Le(),y=v.Nb()==="Xbox";v=v.Ua()==="MOBILE"&&v.Ha()==="GECKO";var w=i.video,T=w&&w.width||0,P=w&&w.height||0;return y&&w&&(T>1920||P>1080)&&(w.codecs.includes("avc1.")||w.codecs.includes("avc3."))||(y=w&&w.dependencyStream)&&!bl(y)?!1:(i=i.audio,!(v&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function qG(i,u){var d,v,y,w,T,P,$;return ae(function(U){if(U.g==1){for(d=function(W,Y){if(W){var re=bn(W);return re.supported=W.supported&&Y.supported,re.powerEfficient=W.powerEfficient&&Y.powerEfficient,re.smooth=W.smooth&&Y.smooth,Y.keySystemAccess&&!re.keySystemAccess&&(re.keySystemAccess=Y.keySystemAccess),re}return Y},v=null,y=[],w=_(u),T=w.next(),P={};!T.done;P={cache:void 0,Pe:void 0},T=w.next())$=T.value,P.Pe=zn($),P.cache=kw,P.cache.has(P.Pe)?v=d(v,P.cache.get(P.Pe)):y.push(pSe($).then((function(W){return function(Y){var re=null;Y=_(Y||[]);for(var le=Y.next();!le.done;le=Y.next())re=d(re,le.value);re&&(W.cache.set(W.Pe,re),v=d(v,re))}})(P)));return L(U,Promise.all(y),2)}v&&i.decodingInfos.push(v),B(U)})}function pSe(i){var u=[""];i.video&&(u=Ga(i.video.contentType).split(","));var d=[""];i.audio&&(d=Ga(i.audio.contentType).split(","));var v=[];u=_(u);for(var y=u.next();!y.done;y=u.next()){y=y.value;for(var w=_(d),T=w.next(),P={};!T.done;P={Qc:void 0},T=w.next())T=T.value,P.Qc=on(i),i.video&&(P.Qc.video.contentType=co(_l(P.Qc.video.contentType),y)),i.audio&&(P.Qc.audio.contentType=co(_l(P.Qc.audio.contentType),T)),v.push(new Promise((function($){return function(U,W){(Le().Ua()=="MOBILE"?vw(5,navigator.mediaCapabilities.decodingInfo($.Qc)):navigator.mediaCapabilities.decodingInfo($.Qc)).then(function(Y){U(Y)}).catch(W)}})(P)))}return Promise.all(v).catch(function(){return JSON.stringify(i),null})}function M5(i,u,d,v){var y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze,nt,mt;return ae(function(Ze){switch(Ze.g){case 1:if(i.some(function(Ve){return Ve.decodingInfos.length}))return Ze.return();y=_(v),w=y.next(),T={};case 2:if(w.done){Ze.A(4);break}T.Ci=w.value,P=!1,$=_(i),U=$.next();case 5:if(U.done){Ze.A(7);break}W=U.value,Y=YG(W,u,d).filter((function(Ve){return function(dt){return dt=dt[0],(dt.keySystemConfiguration&&dt.keySystemConfiguration.keySystem)===Ve.Ci}})(T)),re=_(Y),le=re.next();case 8:if(le.done){Ze.A(10);break}return fe=le.value,L(Ze,qG(W,fe),9);case 9:le=re.next(),Ze.A(8);break;case 10:W.decodingInfos.some(function(Ve){return Ve.supported})&&(P=!0),U=$.next(),Ze.A(5);break;case 7:if(P)return Ze.return();T={Ci:void 0},w=y.next(),Ze.A(2);break;case 4:ve=_(i),me=ve.next();case 12:if(me.done){Ze.A(0);break}Re=me.value,Te=YG(Re,u,d).filter(function(Ve){return Ve=Ve[0],Ve=Ve.keySystemConfiguration&&Ve.keySystemConfiguration.keySystem,!Ve||!v.includes(Ve)}),ze=_(Te),nt=ze.next();case 15:if(nt.done){me=ve.next(),Ze.A(12);break}return mt=nt.value,L(Ze,qG(Re,mt),16);case 16:nt=ze.next(),Ze.A(15)}})}function YG(i,u,d){var v=i.audio,y=i.video,w=[],T=[];if(y)for(var P=_(y.fullMimeTypes),$=P.next();!$.done;$=P.next()){$=$.value;var U=Ga($);if(U.includes(",")&&!v){var W=U.split(","),Y=_l($);U=ai("video",W),W=ai("audio",W),W=bb(W,Y),Y=L5(Y,W,"audio"),T.push({contentType:Y,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(U=XG(U),$={contentType:L5(_l($),U,"video"),width:y.width||64,height:y.height||64,bitrate:y.bandwidth||i.bandwidth||1,framerate:y.frameRate||30},y.hdr)switch(y.hdr){case"PQ":$.transferFunction="pq";break;case"HLG":$.transferFunction="hlg"}y.colorGamut&&($.colorGamut=y.colorGamut),w.push($)}if(v)for(P=_(v.fullMimeTypes),$=P.next();!$.done;$=P.next())U=$.value,$=_l(U),U=bb(Ga(U),$),$=L5($,U,"audio"),T.push({contentType:$,channels:v.channelsCount||2,bitrate:v.bandwidth||i.bandwidth||1,samplerate:v.audioSamplingRate||1,spatialRendering:v.spatialAudio});for(P=[],w.length==0&&w.push(null),T.length==0&&T.push(null),w=_(w),$=w.next();!$.done;$=w.next())for($=$.value,U=_(T),Y=U.next();!Y.done;Y=U.next())Y=Y.value,W={type:d?"file":"media-source"},$&&(W.video=$),Y&&(W.audio=Y),P.push(W);if(T=(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]),!T.length)return[P];for(i=[],d=new Map,T=_(T),w=T.next();!w.done;w=T.next())w=w.value,d.get(w.keySystem)||d.set(w.keySystem,[]),d.get(w.keySystem).push(w);for(T=u?"required":"optional",u=u?["persistent-license"]:["temporary"],w=_(d.keys()),$=w.next();!$.done;$=w.next()){for($=$.value,Y=d.get($),U=new Map,Y=_(Y),W=Y.next();!W.done;W=Y.next()){W=W.value;var re=W.videoRobustness+","+W.audioRobustness;U.get(re)||U.set(re,[]),U.get(re).push(W)}for(U=_(U.values()),Y=U.next();!Y.done;Y=U.next()){Y=Y.value,W=[],re=_(P);for(var le=re.next();!le.done;le=re.next()){le=Object.assign({},le.value);for(var fe={keySystem:$,initDataType:"cenc",persistentState:T,distinctiveIdentifier:"optional",sessionTypes:u},ve=_(Y),me=ve.next();!me.done;me=ve.next()){if(me=me.value,me.initData&&me.initData.length){for(var Re=new Set,Te=_(me.initData),ze=Te.next();!ze.done;ze=Te.next())Re.add(ze.value.initDataType);fe.initDataType=me.initData[0].initDataType}me.distinctiveIdentifierRequired&&(fe.distinctiveIdentifier="required"),me.persistentStateRequired&&(fe.persistentState="required"),me.sessionType&&(fe.sessionTypes=[me.sessionType]),v&&(fe.audio?(me.encryptionScheme&&(fe.audio.encryptionScheme=fe.audio.encryptionScheme||me.encryptionScheme),fe.audio.robustness=fe.audio.robustness||me.audioRobustness):(fe.audio={robustness:me.audioRobustness},me.encryptionScheme&&(fe.audio.encryptionScheme=me.encryptionScheme)),fe.audio.robustness==""&&delete fe.audio.robustness),y&&(fe.video?(me.encryptionScheme&&(fe.video.encryptionScheme=fe.video.encryptionScheme||me.encryptionScheme),fe.video.robustness=fe.video.robustness||me.videoRobustness):(fe.video={robustness:me.videoRobustness},me.encryptionScheme&&(fe.video.encryptionScheme=me.encryptionScheme)),fe.video.robustness==""&&delete fe.video.robustness)}le.keySystemConfiguration=fe,W.push(le)}i.push(W)}}return i}function bb(i,u){var d=Le();return i.toLowerCase()=="flac"?d.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?d.Ha()!="WEBKIT"?"opus":fb(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&d.oe()?"ec-3":i}function XG(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 vSe(i){i.textStreams=i.textStreams.filter(function(u){return u=co(u.mimeType,u.codecs),vb(u)})}function mSe(i){var u,d,v,y,w,T,P;return ae(function($){switch($.g){case 1:u=[],d=_(i.imageStreams),v=d.next();case 2:if(v.done){$.A(4);break}if(y=v.value,w=y.mimeType,w=="application/mp4"&&y.codecs=="mjpg"&&(w="image/jpg"),ww.has(w)){$.A(5);break}if(T=_Se.get(w),!T){ww.set(w,!1),$.A(5);break}return L($,gSe(T),7);case 7:P=$.h,ww.set(w,P);case 5:ww.get(w)&&u.push(y),v=d.next(),$.A(2);break;case 4:i.imageStreams=u,B($)}})}function gSe(i){return new Promise(function(u){var d=new Image;d.src=i,"decode"in d?d.decode().then(function(){u(!0)}).catch(function(){u(!1)}):d.onload=d.onerror=function(){u(d.height===2)}})}function $v(i){var u=i.audio,d=i.video,v=u?u.mimeType:null,y=d?d.mimeType:null,w=u?u.codecs:null,T=d?d.codecs:null,P=u?u.groupId:null,$=[];d&&$.push(d.mimeType),u&&$.push(u.mimeType),$=$[0]||null;var U=[];u&&U.push(u.kind),d&&U.push(d.kind),U=U[0]||null;var W=new Set;if(u)for(var Y=_(u.roles),re=Y.next();!re.done;re=Y.next())W.add(re.value);if(d)for(Y=_(d.roles),re=Y.next();!re.done;re=Y.next())W.add(re.value);if(i={id:i.id,active:!1,type:"variant",bandwidth:i.bandwidth,language:i.language,label:null,videoLabel:null,kind:U,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:$,audioMimeType:v,videoMimeType:y,codecs:"",audioCodec:w,videoCodec:T,primary:i.primary,roles:Array.from(W),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:P,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},d&&(i.videoId=d.id,i.originalVideoId=d.originalId,i.width=d.width||null,i.height=d.height||null,i.frameRate=d.frameRate||null,i.pixelAspectRatio=d.pixelAspectRatio||null,i.videoBandwidth=d.bandwidth||null,i.hdr=d.hdr||null,i.colorGamut=d.colorGamut||null,i.videoLayout=d.videoLayout||null,i.videoRoles=d.roles,i.videoLabel=d.label,(v=d.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)),T.includes(","))){i.channelsCount=d.channelsCount,i.audioSamplingRate=d.audioSamplingRate,i.spatialAudio=d.spatialAudio,i.originalLanguage=d.originalLanguage,i.audioMimeType=y,y=T.split(",");try{i.videoCodec=ai("video",y),i.audioCodec=ai("audio",y)}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,y=u.dependencyStream)&&(i.audioCodec=y.codecs||i.audioCodec,i.audioBandwidth&&y.bandwidth&&(i.audioBandwidth+=y.bandwidth)),d&&!i.videoBandwidth&&(u?i.audioBandwidth&&(i.videoBandwidth=i.bandwidth-i.audioBandwidth):i.videoBandwidth=i.bandwidth),u&&!i.audioBandwidth&&(d?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 Nv(i){return{id:i.id,active:!1,type:yn,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 D5(i){var u=i.width||null,d=i.height||null,v=null;i.segmentIndex&&(v=qc(i.segmentIndex));var y=i.tilesLayout;return v&&(y=v.tilesLayout||y),y&&u!=null&&(u/=Number(y.split("x")[0])),y&&d!=null&&(d/=Number(y.split("x")[1])),{id:i.id,type:"image",bandwidth:i.bandwidth||0,width:u,height:d,mimeType:i.mimeType,codecs:i.codecs||null,tilesLayout:y||null,originalImageId:i.originalId}}function bw(i){return i.__shaka_id||(i.__shaka_id=bSe++),i.__shaka_id}function ZG(i){var u={id:bw(i),active:i.mode!="disabled",type:yn,bandwidth:0,language:Br(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 _w(i,u){var d=i?i.language:null;if(d={id:bw(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:Br(d||"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:d},i&&i.kind&&(d.roles=[i.kind],d.audioRoles=[i.kind]),i&&i.configuration&&(i.configuration.codec&&(d.audioCodec=i.configuration.codec,d.codecs=d.audioCodec),i.configuration.bitrate&&(d.audioBandwidth=i.configuration.bitrate,d.bandwidth+=d.audioBandwidth),i.configuration.sampleRate&&(d.audioSamplingRate=i.configuration.sampleRate),i.configuration.numberOfChannels&&(d.channelsCount=i.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(d.videoCodec=u.configuration.codec,d.codecs=d.codecs?d.codecs+(","+d.videoCodec):d.videoCodec),u.configuration.bitrate&&(d.videoBandwidth=u.configuration.bitrate,d.bandwidth+=d.videoBandwidth),u.configuration.framerate&&(d.frameRate=u.configuration.framerate),u.configuration.width&&(d.width=u.configuration.width),u.configuration.height&&(d.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":d.hdr="PQ";break;case"hlg":d.hdr="HLG";break;case"bt709":d.hdr="SDR"}return d}function _b(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function Sw(i){return i.filter(function(u){return _b(u)})}function Zg(i,u,d,v){var y=i,w=i.filter(function($){return $.primary});w.length&&(y=w);var T=y.length?y[0].language:"";if(y=y.filter(function($){return $.language==T}),u){var P=gw(Br(u),i.map(function($){return $.language}));P&&(y=i.filter(function($){return Br($.language)==P}))}if(y=y.filter(function($){return $.forced==v}),d){if(i=JG(y,d),i.length)return i}else if(i=y.filter(function($){return $.roles.length==0}),i.length)return i;return i=y.map(function($){return $.roles}).reduce(aSe,[]),i.length?JG(y,i[0]):y}function JG(i,u){return i.filter(function(d){return d.roles.includes(u)})}function ySe(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function QG(i,u){u.length&&(u=u.filter(function(d){return Ws(i.codecs)==Ws(d.codecs)}).sort(function(d,v){return d.bandwidth&&v.bandwidth&&d.bandwidth!=v.bandwidth?d.bandwidth-v.bandwidth:(d.width||0)-(v.width||0)}),i.trickModeVideo=u[0],u.length>1&&(u=u.find(function(d){return i.width==d.width&&i.height==d.height})))&&(i.trickModeVideo=u)}function eK(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 tK(i,u,d){if(d.autoShowText==0)return!1;if(d.autoShowText==1)return!0;var v=Br(d.preferredTextLanguage);return u=Br(u.language),d.autoShowText==2?Xg(u,v):d.autoShowText==3?i?(i=Br(i.language),Xg(u,v)&&!Xg(i,u)):!1:(st("Invalid autoShowText setting!"),!1)}function nK(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 d=i.next();!d.done;d=i.next()){d=d.value;var v={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:d?_l(d):"",codecs:d?Ga(d):"",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(co(v.mimeType,v.codecs)),d.startsWith("audio/")?(v.type="audio",u.audio=v):u.video=v}return u}Ke("shaka.util.StreamUtils",WG),WG.meetsRestrictions=yw;var kw=new Map,bSe=0,ww=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),_Se=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Ui(){var i=this;this.H=null,this.B=!1,this.u=new Me,this.j=new Ue,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Me,i.g&&i.u.configure(i.g.advanced);var u=i.chooseVariant();u&&navigator.onLine&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.o=[],this.I=1,this.J=!1,this.h=this.m=this.g=this.C=null,this.l=new sr(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=Ui.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,d=1/0;if(this.g.restrictToScreenSize&&(d=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*d,d*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var v=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,y=this.m.clientHeight,w=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(y=this.i.height,w=this.i.width),u=Math.min(u,y*v),d=Math.min(d,w*v)}if(y=this.o.filter(function(U){return U&&!(U.audio&&U.audio.fastSwitching||U.video&&U.video.fastSwitching)}),y.length||(y=this.o),v=y,i&&y.length!=this.o.length&&(v=this.o.filter(function(U){return U&&!!(U.audio&&U.audio.fastSwitching||U.video&&U.video.fastSwitching)})),i=O5(this,this.g.restrictions,v,1/0,1/0),u!=1/0||d!=1/0){for(i=SSe(i),i=_(i),y=i.next();!y.done;y=i.next())if(y=y.value,y.height>=u&&y.width>=d){u=y.height,d=y.width;break}i=O5(this,this.g.restrictions,v,u,d)}for(u=this.getBandwidthEstimate(),v.length&&!i.length&&(i=O5(this,null,v,1/0,1/0),i=[i[0]]),d=i[0]||null,v=0;v=w&&u<=T&&(d.bandwidth!=y.bandwidth||d.bandwidth==y.bandwidth&&d.video&&y.video&&(d.video.width=this.g.cacheLoadThreshold&&this.u.sample(y,u),d&&this.C!=null&&this.B&&rK(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),rK(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 Pt(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){d.l.ia(kSe)}var d=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&&(d.i=v.pictureInPictureWindow,d.j.D(d.i,"resize",u))}),this.j.D(i,"leavepictureinpicture",function(){d.i&&d.j.Ma(d.i,"resize",u),d.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 rK(i,u){if(u===void 0||!u){if(!i.J){if(u=i.u,!(u.g>=u.i))return;i.J=!0,i.C-=(i.g.switchInterval-i.g.minTimeToSwitch)*1e3}if(Date.now()-i.C=i.l)if(i.i)i.g=1,i.h=i.j;else throw new we(2,7,1010);return u=i.g,i.g++,u==0?v.return():(d=i.h*(1+(Math.random()*2-1)*i.o),L(v,new Promise(function(y){new sr(y).ia(d/1e3)}),2))}i.h*=i.m,B(v)})}function fc(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ei(){var i,u,d=new Promise(function(v,y){i=v,u=y});return d.resolve=i,d.reject=u,d}ei.prototype.resolve=function(){},ei.prototype.reject=function(){};function fo(i,u){this.promise=i,this.i=u,this.g=null}function Qh(i){return new fo(Promise.reject(i),function(){return Promise.resolve()})}function N5(){var i=Promise.reject(new we(2,7,7001));return i.catch(function(){}),new fo(i,function(){return Promise.resolve()})}function Qg(i){return new fo(Promise.resolve(i),function(){return Promise.resolve()})}function lK(i){return new fo(i,function(){return i.catch(function(){})})}fo.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function uK(i){return new fo(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}fo.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},fo.prototype.Xa=function(i,u){function d(P){return function($){if(y.g&&P)w.reject(T);else{var U=P?i:u;U?v=wSe(U,$,w):(P?w.resolve:w.reject)($)}}}function v(){return w.reject(T),y.abort()}var y=this,w=new ei;w.catch(function(){});var T=new we(2,7,7001);return this.promise.then(d(!0),d(!1)),new fo(w,function(){return v()})};function wSe(i,u,d){try{var v=i(u);return v&&v.promise&&v.abort?(d.resolve(v.promise),function(){return v.abort()}):(d.resolve(v),function(){return Promise.resolve(v).then(function(){},function(){})})}catch(y){return d.reject(y),function(){return Promise.resolve()}}}p.Object.defineProperties(fo.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),Ke("shaka.util.AbortableOperation",fo),fo.prototype.chain=fo.prototype.Xa,fo.prototype.finally=fo.prototype.finally,fo.all=uK,fo.prototype.abort=fo.prototype.abort,fo.notAbortable=lK,fo.completed=Qg,fo.aborted=N5,fo.failed=Qh;function vn(i,u){if(u)if(u instanceof Map)for(var d=_(u.keys()),v=d.next();!v.done;v=d.next())v=v.value,Object.defineProperty(this,v,{value:u.get(v),writable:!0,enumerable:!0});else for(d in u)Object.defineProperty(this,d,{value:u[d],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 cK(i){var u=new vn(i.type),d;for(d in i)Object.defineProperty(u,d,{value:i[d],writable:!0,enumerable:!0});return u}vn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},vn.prototype.stopImmediatePropagation=function(){this.g=!0},vn.prototype.stopPropagation=function(){},Ke("shaka.util.FakeEvent",vn);var Tw={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 Fr(){this.ab=new bt,this.Fe=this}Fr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},Fr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},Fr.prototype.dispatchEvent=function(i){if(!this.ab)return!0;var u=this.ab.get(i.type)||[],d=this.ab.get("All");for(d&&(u=u.concat(d)),u=_(u),d=u.next();!d.done;d=u.next()){d=d.value,i.target=this.Fe,i.currentTarget=this.Fe;try{d.handleEvent?d.handleEvent(i):d.call(this,i)}catch{}if(i.g)break}return i.defaultPrevented},Fr.prototype.release=function(){this.ab=null};function e0(){this.g=[]}function Bv(i,u){i.g.push(u.finally(function(){Qt(i.g,u)}))}e0.prototype.destroy=function(){for(var i=[],u=_(this.g),d=u.next();!d.done;d=u.next())d=d.value,d.promise.catch(function(){}),i.push(d.abort());return this.g=[],Promise.all(i)};function Ai(i,u,d,v,y,w,T){Fr.call(this),this.i=null,this.j=!1,this.u=new e0,this.g=new Set,this.h=new Set,this.o=i||null,this.m=u||null,this.B=d||null,this.C=v||null,this.F=y||null,this.H=w||null,this.G=T||null,this.l=new Map}E(Ai,Fr),l=Ai.prototype,l.configure=function(i){this.i=i};function Of(i,u,d,v){v=v===void 0?!1:v,d=d||vK;var y=Iw.get(i);(!y||d>=y.priority)&&Iw.set(i,{priority:d,yf:u,Fk:v})}function dK(i,u){for(var d=_(i.g),v=d.next();!v.done;v=d.next())u.g.add(v.value);for(i=_(i.h),d=i.next();!d.done;d=i.next())u.h.add(d.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 Po(i,u,d){return{uris:i,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:d===void 0?null:d}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Fr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,d){var v=this,y=new pK;if(this.j){var w=Promise.reject(new we(2,7,7001));return w.catch(function(){}),new Aw(w,function(){return Promise.resolve()},y)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?on(u.retryParameters):fc(),u.uris=on(u.uris),w=CSe(this,i,u,d);var T=w.Xa(function(){return fK(v,i,u,d,new sK(u.retryParameters,!1),0,null,y)}),P=T.Xa(function(re){return ESe(v,i,re,d)}),$=Date.now(),U=0;w.promise.then(function(){U=Date.now()-$},function(){});var W=0;T.promise.then(function(){W=Date.now()},function(){});var Y=P.Xa(function(re){var le=Date.now()-W,fe=re.response;return fe.timeMs+=U,fe.timeMs+=le,re.fk||!v.o||fe.fromCache||u.method=="HEAD"||i!=Pu||v.o(fe.timeMs,fe.data.byteLength,hK(d),u,d),v.G&&v.G(i,fe,d),fe},function(re){throw re&&(re.severity=2),re});return w=new Aw(Y.promise,function(){return Y.abort()},y),Bv(this.u,w),w};function CSe(i,u,d,v){function y(P){w=w.Xa(function(){return d.body&&(d.body=Se(d.body)),P(u,d,v)})}var w=Qg(void 0);i.F&&y(i.F),i=_(i.g);for(var T=i.next();!T.done;T=i.next())y(T.value);return w.Xa(void 0,function(P){throw P instanceof we&&P.code==7001?P:new we(2,1,1006,P)})}function fK(i,u,d,v,y,w,T,P){i.i.forceHTTP&&(d.uris[w]=d.uris[w].replace("https://","http://")),i.i.forceHTTPS&&(d.uris[w]=d.uris[w].replace("http://","https://")),w>0&&i.H&&i.H(u,v,d.uris[w],d.uris[w-1]);var $=new qr(d.uris[w]),U=$.bc,W=!1;U||(U=location.protocol,U=U.slice(0,-1),io($,U),d.uris[w]=$.toString()),U=U.toLowerCase();var Y=(U=Iw.get(U))?U.yf:null;if(!Y)return Qh(new we(2,1,1e3,$));var re=U.Fk;($=i.l.get($.Db))&&(d.headers["common-access-token"]=$);var le=null,fe=null,ve=!1,me=!1,Re;return lK(aK(y)).Xa(function(){if(i.j)return N5();Re=Date.now();var Te=0;d.requestStartTime=Date.now();var ze=Y(d.uris[w],d,u,function(Ze,Ve,dt){le&&le.stop(),fe&&fe.ia(mt/1e3),i.o&&u==Pu&&(Te++,d.packetNumber=Te,i.o(Ze,Ve,hK(v),d,v),W=!0,P.g=dt)},function(Ze){me=!0,d.timeToFirstByte=Date.now()-d.requestStartTime,i.m&&i.m(Ze,d,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!re)return ze;var nt=d.retryParameters.connectionTimeout;nt&&(le=new sr(function(){ve=!0,ze.abort()}),le.ia(nt/1e3));var mt=d.retryParameters.stallTimeout;return mt&&(fe=new sr(function(){ve=!0,ze.abort()})),ze}).Xa(function(Te){le&&le.stop(),fe&&fe.stop(),Te.timeMs==null&&(Te.timeMs=Date.now()-Re);var ze=Te.headers["common-access-token"];if(ze){var nt=new qr(Te.uri);i.l.set(nt.Db,ze)}return ze={response:Te,fk:W},!me&&i.m&&i.m(Te.headers,d,u),i.B&&i.B(d,Te),ze},function(Te){if(le&&le.stop(),fe&&fe.stop(),i.C){var ze=null,nt=0;Te instanceof we&&(ze=Te,Te.code==1001&&(nt=Te.data[1])),i.C(d,ze,nt,ve)}if(i.j)return N5();if(ve&&(Te=new we(1,1,1003,d.uris[w],u)),Te instanceof we){if(Te.code==7001)throw Te;if(Te.code==1010)throw T;if(Te.severity==1){if(ze=new Map().set("error",Te),ze=new vn("retry",ze),ze.cancelable=!0,i.dispatchEvent(ze),ze.defaultPrevented)throw Te;return w=(w+1)%d.uris.length,fK(i,u,d,v,y,w,Te,P)}}throw Te})}function ESe(i,u,d,v){var y=Qg(void 0);i=_(i.h);for(var w=i.next(),T={};!w.done;T={Ji:void 0},w=i.next())T.Ji=w.value,y=y.Xa((function(P){return function(){var $=d.response;return $.data&&($.data=Se($.data)),(0,P.Ji)(u,$,v)}})(T));return y.Xa(function(){return d},function(P){var $=2;if(P instanceof we){if(P.code==7001)throw P;$=P.severity}throw new we($,1,1007,P)})}function hK(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}Ke("shaka.net.NetworkingEngine",Ai),Ai.prototype.request=Ai.prototype.request,Ai.prototype.destroy=Ai.prototype.destroy,Ai.makeRequest=Po,Ai.defaultRetryParameters=function(){return fc()},Ai.prototype.clearCommonAccessTokenMap=Ai.prototype.Qh,Ai.prototype.clearAllResponseFilters=Ai.prototype.pj,Ai.prototype.unregisterResponseFilter=Ai.prototype.il,Ai.prototype.registerResponseFilter=Ai.prototype.Jk,Ai.prototype.clearAllRequestFilters=Ai.prototype.oj,Ai.prototype.unregisterRequestFilter=Ai.prototype.hl,Ai.prototype.registerRequestFilter=Ai.prototype.Ik,Ai.unregisterScheme=function(i){Iw.delete(i)},Ai.registerScheme=Of,Ai.prototype.configure=Ai.prototype.configure;function pK(){this.g=0}Ai.NumBytesRemainingClass=pK;function Aw(i,u,d){fo.call(this,i,u),this.h=d}E(Aw,fo),Ai.PendingRequest=Aw;var Pu=1;Ai.RequestType={MANIFEST:0,SEGMENT:Pu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Ai.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 vK=3;Ai.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:vK};var Iw=new Map;function t0(i){this.g=!1,this.h=new ei,this.i=i}t0.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 gi(i,u){if(i.g)throw u instanceof we&&u.code==7003?u:new we(2,7,7003,u)}function B5(i,u){var d=[];i=_(i);for(var v=i.next();!v.done;v=i.next())d.push(u(v.value));return d}function xSe(i,u){i=_(i);for(var d=i.next();!d.done;d=i.next())if(!u(d.value))return!1;return!0}function n0(i){for(var u=new Map,d=_(Object.keys(i)),v=d.next();!v.done;v=d.next())v=v.value,u.set(v,i[v]);return u}function F5(i){var u={};return i.forEach(function(d,v){u[v]=d}),u}function Ei(i,u){this.h=tt(i),this.i=u==mK,this.g=0}l=Ei.prototype,l.Ia=function(){return this.g2097151)throw new we(2,3,3001);return this.g+=8,u*4294967296+i},l.Tb=function(i,u){if(this.g+i>this.h.byteLength)throw $f();var d=Ie(this.h,this.g,i);return this.g+=i,u?new Uint8Array(d):d},l.skip=function(i){if(this.g+i>this.h.byteLength)throw $f();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw $f();this.g=i},l.Yc=function(){for(var i=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return i=Ie(this.h,i,this.g-i),this.g+=1,rt(i)};function $f(){return new we(2,3,3e3)}Ke("shaka.util.DataViewReader",Ei),Ei.prototype.readTerminatedString=Ei.prototype.Yc,Ei.prototype.seek=Ei.prototype.seek,Ei.prototype.rewind=Ei.prototype.Ki,Ei.prototype.skip=Ei.prototype.skip,Ei.prototype.readBytes=Ei.prototype.Tb,Ei.prototype.readUint64=Ei.prototype.Dd,Ei.prototype.readInt32=Ei.prototype.Zg,Ei.prototype.readUint32=Ei.prototype.U,Ei.prototype.readUint16=Ei.prototype.Ca,Ei.prototype.readUint8=Ei.prototype.Y,Ei.prototype.getLength=Ei.prototype.getLength,Ei.prototype.getPosition=Ei.prototype.Oa,Ei.prototype.hasMoreData=Ei.prototype.Ia;var mK=1;Ei.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:mK};function ti(){this.i=new Map,this.h=new Map,this.g=!1}l=ti.prototype,l.box=function(i,u){return i=gK(i),this.i.set(i,TSe),this.h.set(i,u),this},l.S=function(i,u){return i=gK(i),this.i.set(i,yK),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,d){for(i=new Ei(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,d)},l.zd=function(i,u,d,v){var y=u.Oa();if(v&&y+8>u.getLength())this.g=!0;else{var w=u.U(),T=u.U(),P=Pw(T),$=!1;switch(w){case 0:w=u.getLength()-y;break;case 1:if(v&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),$=!0}var U=this.h.get(T);if(U){var W=null,Y=null;if(this.i.get(T)==yK){if(v&&u.Oa()+4>u.getLength()){this.g=!0;return}Y=u.U(),W=Y>>>24,Y&=16777215}T=y+w,d&&T>u.getLength()&&(T=u.getLength()),v&&T>u.getLength()?this.g=!0:(T-=u.Oa(),u=T>0?u.Tb(T,!1):new Uint8Array(0),u=new Ei(u,0),U({name:P,parser:this,partialOkay:d||!1,stopOnPartial:v||!1,version:W,flags:Y,reader:u,size:w,start:y+i,has64BitSize:$}))}else u.skip(Math.min(y+w-u.Oa(),u.getLength()-u.Oa()))}};function Zn(i){for(var u=ep(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function Nf(i){for(var u=ep(i),d=i.reader.U(),v=0;v>24&255,i>>16&255,i>>8&255,i&255)}function ep(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}Ke("shaka.util.Mp4Parser",ti),ti.headerSize=ep,ti.typeToString=Pw,ti.allData=r0,ti.audioSampleEntry=Lw,ti.visualSampleEntry=Sl,ti.sampleDescription=Nf,ti.children=Zn,ti.prototype.parseNext=ti.prototype.zd,ti.prototype.parse=ti.prototype.parse,ti.prototype.stop=ti.prototype.stop,ti.prototype.fullBox=ti.prototype.S,ti.prototype.box=ti.prototype.box;var TSe=0,yK=1;function j5(i){var u=this;this.g=[],this.h=[],this.data=[],new ti().box("moov",Zn).box("moof",Zn).S("pssh",function(d){if(!(d.version>1)){var v=Ie(d.reader.h,-12,d.size);if(u.data.push(v),v=d.reader.Tb(16,!1),u.g.push(Cn(v)),d.version>0){v=d.reader.U();for(var y=0;y0&&(w+=4+16*d.size);var T=new Uint8Array(w),P=tt(T),$=0;if(P.setUint32($,w),$+=4,P.setUint32($,1886614376),$+=4,v<1?P.setUint32($,0):P.setUint32($,16777216),$+=4,T.set(u,$),$+=u.length,v>0)for(P.setUint32($,d.size),$+=4,u=_(d),d=u.next();!d.done;d=u.next())d=Yn(d.value),T.set(d,$),$+=d.length;return P.setUint32($,y),T.set(i,$+4),T}function Mw(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 Ue,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new ei,this.h=null,this.u=function(d){d.severity==2&&u.m.reject(d),i.onError(d)},this.aa=new Map,this.ma=new Map,this.M=new sr(function(){return BSe(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new sr(function(){jSe(u)}),this.m.catch(function(){}),this.l=new t0(function(){return ASe(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=Mw.prototype,l.destroy=function(){return this.l.destroy()};function ASe(i){return ae(function(u){switch(u.g){case 1:return i.o.release(),i.o=null,i.m.reject(),i.G.stop(),i.G=null,i.M.stop(),i.M=null,L(u,kb(i),2);case 2:if(!i.j){u.A(3);break}return F(u,4),L(u,i.j.setMediaKeys(null),6);case 6:z(u,5);break;case 4:q(u);case 5:i.j=null;case 3:i.g=null,i.B=null,i.C=new Map,i.h=null,i.u=function(){},i.F=null,i.O=!1,i.I=null,B(u)}})}l.configure=function(i,u){this.h=i,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function ISe(i,u,d){return i.qa=!0,i.C=new Map,i.R=d,_K(i,u,!1)}function bK(i,u,d,v){v=v===void 0?!0:v,i.C=new Map,d=_(d);for(var y=d.next();!y.done;y=d.next())i.C.set(y.value,{initData:null,initDataType:null});for(d=_(i.h.persistentSessionsMetadata),y=d.next();!y.done;y=d.next())y=y.value,i.C.set(y.sessionId,{initData:y.initData,initDataType:y.initDataType});return i.R=i.C.size>0,_K(i,u,v)}function LSe(i,u,d,v,y,w){var T,P,$,U,W;return ae(function(Y){return Y.g==1?(T=[],w.length&&T.push(w[0].contentType),y.length&&T.push(y[0].contentType),P=function(re){return re=rr(u,re,null),re.licenseServerUri=d,re.serverCertificate=v,re.persistentStateRequired=!0,re.sessionType="persistent-license",re},$=nK(T),$.video&&(U=P(w[0].encryptionScheme||""),$.video.drmInfos.push(U)),$.audio&&(W=P(y[0].encryptionScheme||""),$.audio.drmInfos.push(W)),L(Y,M5([$],!0,i.O,[]),2)):(gi(i.l),Y.return(CK(i,[$])))})}function _K(i,u,d){var v,y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze,nt;return ae(function(mt){if(mt.g==1){for(LK(i.h.clearKeys,u),v=u.some(function(Ze){return!!(Ze.video&&Ze.video.drmInfos.length||Ze.audio&&Ze.audio.drmInfos.length)}),y=n0(i.h.servers),w=n0(i.h.advanced||{}),!v&&d&&USe(u,y),T=new WeakSet,P=_(u),$=P.next();!$.done;$=P.next())for(U=$.value,W=IK(U),Y=_(W),re=Y.next();!re.done;re=Y.next())le=re.value,T.has(le)||(T.add(le),HSe(le,y,w,i.h.keySystemsMapping));for(fe=function(Ze,Ve){var dt=[];Ze=_(Ze);for(var vt=Ze.next();!vt.done;vt=Ze.next()){vt=vt.value;var ht=vt[Ve]||w.has(vt.keySystem)&&w.get(vt.keySystem)[Ve]||"",_t;if((_t=ht=="")&&(_t=(_t=vt.keySystem)?!!_t.match(/^com\.widevine\.alpha/):!1),_t&&(Ve=="audioRobustness"?ht=[i.h.defaultAudioRobustnessForWidevine]:Ve=="videoRobustness"&&(ht=[i.h.defaultVideoRobustnessForWidevine])),typeof ht=="string")dt.push(vt);else if(Array.isArray(ht))for(ht.length===0&&(ht=[""]),ht=_(ht),_t=ht.next();!_t.done;_t=ht.next()){var St={};dt.push(Object.assign({},vt,(St[Ve]=_t.value,St)))}}return dt},ve=new WeakSet,me=_(u),Re=me.next();!Re.done;Re=me.next())Te=Re.value,Te.video&&!ve.has(Te.video)&&(Te.video.drmInfos=fe(Te.video.drmInfos,"videoRobustness"),Te.video.drmInfos=fe(Te.video.drmInfos,"audioRobustness"),ve.add(Te.video)),Te.audio&&!ve.has(Te.audio)&&(Te.audio.drmInfos=fe(Te.audio.drmInfos,"videoRobustness"),Te.audio.drmInfos=fe(Te.audio.drmInfos,"audioRobustness"),ve.add(Te.audio));return L(mt,M5(u,i.R,i.O,i.h.preferredKeySystems),2)}return gi(i.l),ze=v||y.size>0,ze?(nt=CK(i,u),mt.return(v?nt:nt.catch(function(){}))):(i.T=!0,mt.return(Promise.resolve()))})}function SK(i){var u;return ae(function(d){switch(d.g){case 1:if(i.j.mediaKeys)return d.return();if(!i.I){d.A(2);break}return L(d,i.I,3);case 3:return gi(i.l),d.return();case 2:return F(d,4),i.I=i.j.setMediaKeys(i.B),L(d,i.I,6);case 6:z(d,5);break;case 4:u=q(d),i.u(new we(2,6,6003,u.message));case 5:gi(i.l),B(d)}})}function PSe(i,u){return ae(function(d){if(d.g==1)return L(d,SK(i),2);Sb(i,u.initDataType,Ie(u.initData)),B(d)})}l.fc=function(i){var u=this,d,v;return ae(function(y){if(y.g==1)return u.j===i?y.return():u.B?(u.j=i,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var w=_(u.N),T=w.next();!T.done;T=w.next())U5(u,T.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return kb(u)}),u.o.D(u.j.remote,"connecting",function(){return kb(u)}),u.o.D(u.j.remote,"disconnect",function(){return kb(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return kb(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,d=u.g.keySystem,(v=Le().Rg(d))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?y.A(2):L(y,SK(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new we(2,6,6010))}),y.return());kK(u).catch(function(){}),!v&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return PSe(u,w)}),B(y)})};function RSe(i){var u,d,v,y,w;return ae(function(T){switch(T.g){case 1:if(!i.B||!i.g)return T.return();if(!i.g.serverCertificateUri||i.g.serverCertificate&&i.g.serverCertificate.length){T.A(2);break}return u=Po([i.g.serverCertificateUri],i.h.retryParameters),F(T,3),d=i.F.tc.request(5,u,{isPreload:i.V()}),L(T,d.promise,5);case 5:v=T.h,i.g.serverCertificate=Ie(v.data),z(T,4);break;case 3:throw y=q(T),new we(2,6,6017,y);case 4:if(i.l.g)return T.return();case 2:return!i.g.serverCertificate||!i.g.serverCertificate.length?T.return():(F(T,6),L(T,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:z(T,0);break;case 6:throw w=q(T),new we(2,6,6004,w.message)}})}function MSe(i,u){var d,v,y;return ae(function(w){if(w.g==1)return L(w,xK(i,u,{initData:null,initDataType:null}),2);if(w.g!=3)return d=w.h,d?(v=[],(y=i.i.get(d))&&(y.Kb=new ei,v.push(y.Kb)),v.push(d.remove()),L(w,Promise.all(v),3)):w.return();i.i.delete(d),B(w)})}function kK(i){var u,d,v,y,w;return ae(function(T){if(T.g==1)return i.C.size?(i.C.forEach(function(P,$){xK(i,$,P)}),L(T,i.m,3)):T.A(2);if(T.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&VSe(i))return T.return(i.m);i.K=!1,i.m=new ei,i.m.catch(function(){})}for(d=(i.g?i.g.initData:[])||[],v=_(d),y=v.next();!y.done;y=v.next())w=y.value,Sb(i,w.initDataType,w.initData);return wb(i)&&i.m.resolve(),T.return(i.m)})}function Sb(i,u,d){if(d.length){if(i.h.ignoreDuplicateInitData){var v=i.i.values();v=_(v);for(var y=v.next();!y.done;y=v.next())if(ke(d,y.value.initData))return;var w=!1;if(i.C.forEach(function(T){!w&&ke(d,T.initData)&&(w=!0)}),w)return}i.K=!0,i.i.size>0&&wb(i)&&(i.m.resolve(),i.K=!1,i.m=new ei,i.m.catch(function(){})),$Se(i,u,d,i.g.sessionType)}}function wK(i){return i=i.i.keys(),i=B5(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=B5(u,function(d){var v=i.i.get(d);return{sessionId:d.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 d=u.next();!d.done;d=u.next())d=d.value,isNaN(d.expiration)||(i=Math.min(i,d.expiration));return i};function DSe(i){return i.J?i.J:NaN}l.Xe=function(){return F5(this.ma)};function CK(i,u){var d,v,y,w,T,P,$;return ae(function(U){switch(U.g){case 1:if(d=new Map,v=OSe(i,u,d),!v)throw navigator.requestMediaKeySystemAccess?new we(2,6,6001):new we(2,6,6020);gi(i.l),F(U,2),v.getConfiguration();var W=y=i.h.keySystemsMapping[v.keySystem]||v.keySystem,Y=d.get(y),re=[],le=[],fe=[],ve=[],me=[],Re=new Set,Te=new Set;zSe(Y,re,le,ve,fe,me,Re,Te);var ze=i.R?"persistent-license":"temporary";for(W={keySystem:W,encryptionScheme:re[0],licenseServerUri:le[0],distinctiveIdentifierRequired:Y[0].distinctiveIdentifierRequired,persistentStateRequired:Y[0].persistentStateRequired,sessionType:Y[0].sessionType||ze,audioRobustness:Y[0].audioRobustness||"",videoRobustness:Y[0].videoRobustness||"",serverCertificate:ve[0],serverCertificateUri:fe[0],initData:me,keyIds:Re},Te.size>0&&(W.keySystemUris=Te),Y=_(Y),Te=Y.next();!Te.done;Te=Y.next())Te=Te.value,Te.distinctiveIdentifierRequired&&(W.distinctiveIdentifierRequired=Te.distinctiveIdentifierRequired),Te.persistentStateRequired&&(W.persistentStateRequired=Te.persistentStateRequired);if(i.g=W,!i.g.licenseServerUri)throw new we(2,6,6012,i.g.keySystem);return L(U,v.createMediaKeys(),4);case 4:if(w=U.h,gi(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){U.A(5);break}return F(U,6),L(U,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(T=U.h,T!="usable")throw new we(2,6,6018);gi(i.l),z(U,5,2);break;case 6:throw P=q(U,2),P instanceof we?P:new we(2,6,6019,P.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),L(U,RSe(i),9);case 9:gi(i.l),z(U,0);break;case 2:throw $=q(U),gi(i.l,$),i.g=null,$ instanceof we?$:new we(2,6,6002,$.message)}})}function OSe(i,u,d){for(var v=_(u),y=v.next();!y.done;y=v.next()){y=_(IK(y.value));for(var w=y.next();!w.done;w=y.next())w=w.value,d.has(w.keySystem)||d.set(w.keySystem,[]),d.get(w.keySystem).push(w)}if(d.size==1&&d.has(""))throw new we(2,6,6e3);v=i.h.preferredKeySystems,v.length||(y=n0(i.h.servers),y.size==1&&(v=Array.from(y.keys()))),y=_(v);var T=y.next();for(w={};!T.done;w={Di:void 0},T=y.next()){w.Di=T.value,T=_(u);for(var P=T.next();!P.done;P=T.next())if(P=P.value.decodingInfos.find((function(Y){return function(re){return re.supported&&re.keySystemAccess!=null&&re.keySystemAccess.keySystem==Y.Di}})(w)))return P.keySystemAccess}for(y=_([!0,!1]),w=y.next();!w.done;w=y.next())for(w=w.value,T=_(u),P=T.next();!P.done;P=T.next()){P=_(P.value.decodingInfos);for(var $=P.next();!$.done;$=P.next())if($=$.value,$.supported&&$.keySystemAccess){var U=$.keySystemAccess.keySystem;if(!v.includes(U)){var W=d.get(U);for(!W&&i.h.keySystemsMapping[U]&&(W=d.get(i.h.keySystemsMapping[U])),U=_(W),W=U.next();!W.done;W=U.next())if(!!W.value.licenseServerUri==w)return $.keySystemAccess}}}return null}function V5(i){wb(i)&&i.m.resolve()}function EK(i,u){new sr(function(){u.loaded=!0,V5(i)}).ia(GSe)}function xK(i,u,d){var v,y,w,T,P,$,U;return ae(function(W){switch(W.g){case 1:try{v=i.B.createSession("persistent-license")}catch(Y){return y=new we(2,6,6005,Y.message),i.u(y),W.return(Promise.reject(y))}return i.o.D(v,"message",function(Y){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(Y):U5(i,Y)}),i.o.D(v,"keystatuseschange",function(Y){return TK(i,Y)}),w={initData:d.initData,initDataType:d.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(v,w),F(W,2),L(W,v.load(u),4);case 4:return T=W.h,gi(i.l),T||(i.i.delete(v),P=i.h.persistentSessionOnlinePlayback?1:2,i.u(new we(P,6,6013)),w.loaded=!0),EK(i,w),V5(i),W.return(v);case 2:$=q(W),gi(i.l,$),i.i.delete(v),U=i.h.persistentSessionOnlinePlayback?1:2,i.u(new we(U,6,6005,$.message)),w.loaded=!0,V5(i);case 3:return W.return(Promise.resolve())}})}function $Se(i,u,d,v){try{var y=i.B.createSession(v)}catch(w){i.u(new we(2,6,6005,w.message));return}i.o.D(y,"message",function(w){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(w):U5(i,w)}),i.o.D(y,"keystatuseschange",function(w){return TK(i,w)}),i.i.set(y,{initData:d,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:v});try{d=i.h.initDataTransform(d,u,i.g)}catch(w){u=w,w instanceof we||(u=new we(2,6,6016,w)),i.u(u);return}i.h.logLicenseExchange&&Un(d),y.generateRequest(u,d).catch(function(w){if(!i.l.g){i.i.delete(y);var T=w.errorCode;if(T&&T.systemCode){var P=T.systemCode;P<0&&(P+=4294967296),P="0x"+P.toString(16)}i.u(new we(2,6,6006,w.message,w,P))}})}function NSe(i){return ae(function(u){return u.g==1?i.K?L(u,i.m,3):u.A(0):L(u,Promise.all(i.X.map(function(d){return d.promise})),0)})}function U5(i,u){var d,v,y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re;ae(function(Te){switch(Te.g){case 1:if(d=u.target,i.h.logLicenseExchange&&Un(u.message),v=i.i.get(d),y=i.g.licenseServerUri,w=i.h.advanced[i.g.keySystem],u.messageType=="individualization-request"&&w&&w.individualizationServer&&(y=w.individualizationServer),T=Po([y],i.h.retryParameters),T.body=u.message,T.method="POST",T.licenseRequestType=u.messageType,T.sessionId=d.sessionId,T.drmInfo=i.g,v&&(T.initData=v.initData,T.initDataType=v.initDataType),w&&w.headers)for(P in w.headers)T.headers[P]=w.headers[P];if(i.g.keySystem==="org.w3.clearkey"){var ze=T,nt=i.g;try{var mt=Xt(ze.body);if(mt){var Ze=JSON.parse(mt);Ze.type||(Ze.type=nt.sessionType,ze.body=Ut(JSON.stringify(Ze)))}}catch{}}if($5(i.g.keySystem))if(ze=Rt(T.body,!0,!0),ze.includes("PlayReadyKeyMessage")){for(ze=Qr(ze,"PlayReadyKeyMessage"),nt=ya(ze,"HttpHeader"),nt=_(nt),mt=nt.next();!mt.done;mt=nt.next())Ze=mt.value,mt=ya(Ze,"name")[0],Ze=ya(Ze,"value")[0],T.headers[cr(mt)]=cr(Ze);ze=ya(ze,"Challenge")[0],T.body=nr(cr(ze))}else T.headers["Content-Type"]="text/xml; charset=utf-8";return $=Date.now(),F(Te,2),W=i.F.tc.request(2,T,{isPreload:i.V()}),i.X.push(W),L(Te,W.promise,4);case 4:U=Te.h,Qt(i.X,W),z(Te,3);break;case 2:return Y=q(Te),i.l.g||(re={sessionId:d.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType},le=new we(2,6,6007,Y,re),i.i.size==1?(i.u(le),v&&v.Kb&&v.Kb.reject(le)):(v&&v.Kb&&v.Kb.reject(le),i.i.delete(d),wb(i)&&(i.m.resolve(),i.M.ia(.1)))),Te.return();case 3:return i.l.g?Te.return():(i.J+=(Date.now()-$)/1e3,i.h.logLicenseExchange&&Un(U.data),F(Te,5),L(Te,d.update(U.data),7));case 7:z(Te,6);break;case 5:return ve=(fe=q(Te))&&fe.message||String(fe),me=new we(2,6,6008,ve),i.u(me),v&&v.Kb&&v.Kb.reject(me),Te.return();case 6:if(i.l.g)return Te.return();Re=new vn("drmsessionupdate"),i.F.onEvent(Re),v&&(v.Kb&&v.Kb.resolve(),EK(i,v)),B(Te)}})}function TK(i,u){u=u.target;var d=i.i.get(u),v=!1;u.keyStatuses.forEach(function(w,T){if(typeof T=="string"){var P=T;T=w,w=P}if(P=Le(),$5(i.g.keySystem)&&T.byteLength==16&&P.gh()){P=tt(T);var $=P.getUint32(0,!0),U=P.getUint16(4,!0),W=P.getUint16(6,!0);P.setUint32(0,$,!1),P.setUint16(4,U,!1),P.setUint16(6,W,!1)}w!="status-pending"&&(d.loaded=!0),w=="expired"&&(v=!0),T=Cn(T).slice(0,32),i.aa.set(T,w)});var y=u.expiration-Date.now();(y<0||v&&y<1e3)&&d&&!d.Kb&&(i.i.delete(u),AK(u)),wb(i)&&(i.m.resolve(),i.M.ia(KSe))}function BSe(i){var u=i.aa,d=i.ma;d.clear(),u.forEach(function(v,y){return d.set(y,v)}),u=Array.from(d.values()),u.length&&u.every(function(v){return v=="expired"})&&i.u(new we(2,6,6014)),i.F.vf(F5(d))}function FSe(){var i,u,d,v,y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze,nt,mt,Ze,Ve,dt,vt,ht,_t,St,$t,Nt,Ct;return ae(function(At){if(At.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={},d=_(i),v=d.next();!v.done;v=d.next())y=v.value,u[y]=null;return At.return(u)}for(w="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),T=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],P=["150","2000","3000"],$={"com.widevine.alpha":T,"com.widevine.alpha.experiment":T,"com.microsoft.playready.recommendation":P},U=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],W=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Y={videoCapabilities:U,audioCapabilities:W,initDataTypes:["cenc","sinf","skd","keyids"]},re=[null,"cenc","cbcs"],le=new Map,fe=Le(),ve=function(zt,nn,Hn){var gn,_r,lr,Vr,dr,Ln,pi,wr,Sr,ir,Ri,Li,qi;return ae(function(Kr){switch(Kr.g){case 1:return F(Kr,2),L(Kr,nn.createMediaKeys(),5);case 5:gn=Kr.h;case 4:z(Kr,3);break;case 2:return q(Kr),Kr.return();case 3:if(lr=(_r=nn.getConfiguration().sessionTypes)?_r.includes("persistent-license"):!1,fe.ti()&&(lr=!1),Vr=nn.getConfiguration().videoCapabilities,dr=nn.getConfiguration().audioCapabilities,Ln={persistentState:lr,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},le.get(zt)?Ln=le.get(zt):le.set(zt,Ln),(pi=Vr[0].encryptionScheme)&&!Ln.encryptionSchemes.includes(pi)&&Ln.encryptionSchemes.push(pi),(wr=Vr[0].robustness)&&!Ln.videoRobustnessLevels.includes(wr)&&Ln.videoRobustnessLevels.push(wr),(Sr=dr[0].robustness)&&!Ln.audioRobustnessLevels.includes(Sr)&&Ln.audioRobustnessLevels.push(Sr),!(Hn&&"getStatusForPolicy"in gn)){Kr.A(0);break}ir=_(w),Ri=ir.next();case 7:if(Ri.done){Kr.A(0);break}if(Li=Ri.value,Ln.minHdcpVersions.includes(Li)){Kr.A(8);break}return L(Kr,gn.getStatusForPolicy({minHdcpVersion:Li}),10);case 10:if(qi=Kr.h,qi=="usable")Ln.minHdcpVersions.includes(Li)||Ln.minHdcpVersions.push(Li);else{Kr.A(0);break}case 8:Ri=ir.next(),Kr.A(7)}})},me=function(zt,nn,Hn,gn,_r){_r=_r===void 0?!1:_r;var lr,Vr,dr,Ln,pi,wr,Sr,ir,Ri,Li,qi;return ae(function(Kr){switch(Kr.g){case 1:for(F(Kr,2),lr=on(Y),Vr=_(lr.videoCapabilities),dr=Vr.next();!dr.done;dr=Vr.next())Ln=dr.value,Ln.encryptionScheme=nn,Ln.robustness=Hn;for(pi=_(lr.audioCapabilities),wr=pi.next();!wr.done;wr=pi.next())Sr=wr.value,Sr.encryptionScheme=nn,Sr.robustness=gn;return ir=on(lr),ir.persistentState="required",ir.sessionTypes=["persistent-license"],Ri=[ir,lr],qi=Le(),qi.Ua()=="MOBILE"?L(Kr,vw(5,navigator.requestMediaKeySystemAccess(zt,Ri)),7):L(Kr,navigator.requestMediaKeySystemAccess(zt,Ri),6);case 6:Li=Kr.h,Kr.A(5);break;case 7:Li=Kr.h;case 5:return L(Kr,ve(zt,Li,_r),8);case 8:z(Kr,0);break;case 2:q(Kr),B(Kr)}})},Re=_(i),Te=Re.next();!Te.done;Te=Re.next())ze=Te.value,le.set(ze,null);for(nt=function(zt){return!(Le().Ha()==="WEBKIT"&&zt==="org.w3.clearkey")},mt=[],Ze=_(i),Ve=Ze.next();!Ve.done;Ve=Ze.next())if(dt=Ve.value,nt(dt)){for(vt=!0,ht=_(re),_t=ht.next();!_t.done;_t=ht.next())St=_t.value,mt.push(me(dt,St,"","",vt)),vt=!1;for($t=_($[dt]||[]),Nt=$t.next();!Nt.done;Nt=$t.next())Ct=Nt.value,mt.push(me(dt,null,Ct,"")),mt.push(me(dt,null,"",Ct))}return L(At,Promise.all(mt),2)}return At.return(F5(le))})}function AK(i){return ae(function(u){if(u.g==1)return F(u,2),L(u,vw(WSe,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return z(u,0);q(u),B(u)})}function kb(i){var u;return ae(function(d){return u=Array.from(i.i.entries()),i.i.clear(),L(d,Promise.all(u.map(function(v){v=_(v);var y=v.next().value,w=v.next().value;return ae(function(T){if(T.g==1)return F(T,2),i.qa||i.C.has(y.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?L(T,AK(y),5):L(T,y.remove(),5);if(T.g!=2)return z(T,0);q(T),B(T)})})),0)})}function IK(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function jSe(i){i.i.forEach(function(u,d){var v=u.Ug,y=d.expiration;isNaN(y)&&(y=1/0),y!=v&&(i.F.onExpirationUpdated(d.sessionId,y),u.Ug=y)})}function wb(i){return i=i.i.values(),xSe(i,function(u){return u.loaded})}function VSe(i){for(var u=_(i.g&&i.g.keyIds||new Set([])),d=u.next();!d.done;d=u.next())if(i.aa.get(d.value)!=="usable")return!1;return!0}function USe(i,u){var d=[];for(u.forEach(function(v,y){d.push({keySystem:y,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=d),u.audio&&(u.audio.drmInfos=d)}function zSe(i,u,d,v,y,w,T,P){var $=[];i=_(i);for(var U=i.next(),W={};!U.done;W={Ka:void 0},U=i.next()){if(W.Ka=U.value,u.includes(W.Ka.encryptionScheme)||u.push(W.Ka.encryptionScheme),W.Ka.keySystem=="org.w3.clearkey"&&W.Ka.licenseServerUri.startsWith("data:application/json;base64,")?$.includes(W.Ka.licenseServerUri)||$.push(W.Ka.licenseServerUri):d.includes(W.Ka.licenseServerUri)||d.push(W.Ka.licenseServerUri),y.includes(W.Ka.serverCertificateUri)||y.push(W.Ka.serverCertificateUri),W.Ka.serverCertificate&&(v.some((function(le){return function(fe){return ke(fe,le.Ka.serverCertificate)}})(W))||v.push(W.Ka.serverCertificate)),W.Ka.initData){U=_(W.Ka.initData);for(var Y=U.next(),re={};!Y.done;re={Lg:void 0},Y=U.next())re.Lg=Y.value,w.some((function(le){return function(fe){var ve=le.Lg;return fe.keyId&&fe.keyId==ve.keyId?!0:fe.initDataType==ve.initDataType&&ke(fe.initData,ve.initData)}})(re))||w.push(re.Lg)}if(W.Ka.keyIds)for(U=_(W.Ka.keyIds),Y=U.next();!Y.done;Y=U.next())T.add(Y.value);if(W.Ka.keySystemUris&&P)for(W=_(W.Ka.keySystemUris),U=W.next();!U.done;U=W.next())P.add(U.value)}if($.length==1)d.push($[0]);else if($.length>0){for(u=[],$=_($),v=$.next();!v.done;v=$.next())v=o.atob(v.value.split("data:application/json;base64,").pop()),v=JSON.parse(v),u.push.apply(u,A(v.keys));$=JSON.stringify({keys:u}),d.push("data:application/json;base64,"+o.btoa($))}}function HSe(i,u,d,v){var y=i.keySystem;y&&(y!="org.w3.clearkey"||!i.licenseServerUri)&&(u.size&&u.get(y)&&(u=u.get(y),i.licenseServerUri=u),i.keyIds||(i.keyIds=new Set),(d=d.get(y))&&(i.distinctiveIdentifierRequired||(i.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),i.persistentStateRequired||(i.persistentStateRequired=d.persistentStateRequired),i.serverCertificate||(i.serverCertificate=d.serverCertificate),d.sessionType&&(i.sessionType=d.sessionType),i.serverCertificateUri||(i.serverCertificateUri=d.serverCertificateUri)),v[y]&&(i.keySystem=v[y]),o.cast&&o.cast.__platform__&&y=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function LK(i,u){if(i=n0(i),i.size!=0){i=$r(i),u=_(u);for(var d=u.next();!d.done;d=u.next())d=d.value,d.video&&(d.video.drmInfos=[i]),d.audio&&(d.audio.drmInfos=[i])}}var WSe=1,GSe=5,KSe=.5;function qSe(){this.g=i0,this.i=new Map().set(i0,2).set(Fv,1),this.h=0}function z5(i,u){var d=i.g!==u;return i.g=u,d&&u===i0&&(i.h=Date.now()),d}var Fv=0,i0=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function H5(i,u,d){this.g=i,this.i=u,this.h=d}function PK(i,u){return ae(function(d){if(d.g==1)return L(d,dSe(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||GG(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(_b))throw new we(2,4,4032);return d.return(MK(i,u))})}function RK(i,u){var d=i.g.restrictions;i=i.i;var v=!1;u=_(u.variants);for(var y=u.next();!y.done;y=u.next()){y=y.value;var w=y.allowedByApplication;y.allowedByApplication=yw(y,d,i),w!=y.allowedByApplication&&(v=!0)}return v}function MK(i,u){var d=RK(i,u);if(u){var v=i.h?i.h.g:null;if(v&&i.h.B){for(var y=new Set,w=_(u.variants),T=w.next();!T.done;T=w.next())T=T.value,T.audio&&y.add(T.audio),T.video&&y.add(T.video);for(y=_(y),w=y.next();!w.done;w=y.next())DK(i,v.keySystem,w.value)}OK(i,u)}return d}function DK(i,u,d){d=_(d.drmInfos);for(var v=d.next();!v.done;v=d.next())if(v=v.value,v.keySystem==u){v=_(v.initData||[]);for(var y=v.next();!y.done;y=v.next())y=y.value,Sb(i.h,y.initDataType,y.initData)}}function OK(i,u){i=i.h?i.h.Xe():{};var d=Object.keys(i);d=d.length&&d[0]=="00";var v=!1,y=!1,w=new Set,T=new Set,P=new Set;u=_(u.variants);for(var $=u.next();!$.done;$=u.next())$=$.value,$.audio&&P.add($.audio),$.video&&P.add($.video),$.allowedByApplication?$.allowedByKeySystem&&(v=!0):y=!0;for(P=_(P),u=P.next();!u.done;u=P.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),$=u.next();!$.done;$=u.next()){$=$.value;var U=i[d?"00":$];U?$K.includes(U)&&T.add(U):w.add($)}if(!v)throw i={hasAppRestrictions:y,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(T)},new we(2,4,4012,i)}var $K=["output-restricted","internal-error"];function Cb(){}function jv(i,u){o0.set(i,u)}function YSe(){var i={};if(Le(),Od())for(var u=_(o0.keys()),d=u.next();!d.done;d=u.next())i[d.value]=!0;for(u=_(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),d=u.next();!d.done;d=u.next())d=d.value,i[d]=Od()?o0.has(d):Uv().canPlayType(d)!="";return i}function NK(i,u){if(u){var d=o0.get(u.toLowerCase());if(d)return d}throw new we(2,4,4e3,i,u)}Ke("shaka.media.ManifestParser",Cb),Cb.unregisterParserByMime=function(i){o0.delete(i)},Cb.registerParserByMime=jv,Cb.registerParserByExtension=function(){Yt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},Cb.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var o0=new Map;Ke("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Dw(i,u){var d=null,v=null,y=null,w=null,T=i.U();return u&1&&(y=i.Dd()),u&2&&(w=i.U()),u&8&&(d=i.U()),u&16&&(v=i.U()),{trackId:T,Td:d,Ud:v,kj:y,Li:w}}function Ow(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function $w(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 Nw(i,u,d){var v=i.U(),y=[],w=null;d&1&&(w=i.Zg()),d&4&&i.skip(4);for(var T=0;T0)var y=gr("avcC",i.Ra);else{y=gr;for(var w=7,T=[],P=[],$=0,U=0,W=0,Y=0;Y0&&($=T[0][1],W=T[0][2],U=T[0][3]),w=new Uint8Array(w),Y=0,w[Y++]=1,w[Y++]=$,w[Y++]=W,w[Y++]=U,w[Y++]=255,w[Y++]=224|T.length,$=0;$>8,w[Y++]=T[$].length&255,w.set(T[$],Y),Y+=T[$].length;for(w[Y++]=P.length,T=0;T>8,w[Y++]=P[T].length&255,w.set(P[T],Y),Y+=P[T].length;y=y("avcC",w)}d=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(A(Oi(d,2)),A(Oi(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",P=jK(i),T=new Uint8Array([]),i.encrypted&&(T=Vv(i.stream,i.codecs),v="encv"),v=gr(v,d,y,P,T)}else i.codecs.includes("hvc1")&&(v=i.stream.width||0,y=i.stream.height||0,d=new Uint8Array([]),i.Ra.byteLength>0&&(d=gr("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(A(Oi(v,2)),A(Oi(y,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])),y="hvc1",P=jK(i),T=new Uint8Array([]),i.encrypted&&(T=Vv(i.stream,i.codecs),y="encv"),v=gr(y,v,d,P,T));break;case"audio":d=="mp3"?i=gr(".mp3",xb(i)):d=="ac-3"?(d=gr("dac3",i.Ga),v="ac-3",y=new Uint8Array([]),i.encrypted&&(y=Vv(i.stream,i.codecs),v="enca"),i=gr(v,xb(i),d,y)):d=="ec-3"?(d=gr("dec3",i.Ga),v="ec-3",y=new Uint8Array([]),i.encrypted&&(y=Vv(i.stream,i.codecs),v="enca"),i=gr(v,xb(i),d,y)):d=="opus"?(d=gr("dOps",i.Ga),v="Opus",y=new Uint8Array([]),i.encrypted&&(y=Vv(i.stream,i.codecs),v="enca"),i=gr(v,xb(i),d,y)):(i.Ga.byteLength>0?d=gr("esds",i.Ga):(d=gr,v=i.id+1,y=i.stream.channelsCount||2,T=i.stream.audioSamplingRate||44100,$=ai("audio",i.codecs.split(",")),U={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},P=U[T],($==="mp4a.40.5"||$==="mp4a.40.29")&&(P=U[T*2]),T=parseInt($.split(".").pop(),10),v=new Uint8Array([0,0,0,0,3,25].concat(A(Oi(v,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,T<<3|P>>>1,P<<7|y<<3,6,1,2])),d=d("esds",v)),v="mp4a",y=new Uint8Array([]),i.encrypted&&(y=Vv(i.stream,i.codecs),v="enca"),i=gr(v,xb(i),d,y)),v=i}return i=gr("stsd",s2e.value(),v),u("stbl",i,gr("stts",e2e.value()),gr("stsc",t2e.value()),gr("stsz",r2e.value()),gr("stco",n2e.value()))}function jK(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(A(Oi(i.Za,4)),A(Oi(u,4)))),gr("pasp",i)}function xb(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(A(Oi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function Vv(i,u){var d=gr;u=new Uint8Array([].concat(A(Oi(UK(u.split(".")[0]),4)))),u=gr("frma",u);var v="cenc",y=i.drmInfos[0];y&&y.encryptionScheme&&(v=y.encryptionScheme),v=new Uint8Array([0,0,0,0].concat(A(Oi(UK(v),4)),[0,1,0,0])),v=gr("schm",v),y=gr;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 T=i.next();!T.done;T=i.next())if((T=T.value)&&T.keyIds&&T.keyIds.size){T=_(T.keyIds);for(var P=T.next();!P.done;P=T.next())w=VK(P.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=gr("tenc",i,w),d("sinf",u,v,y("schi",w))}function Tb(i){var u=[];i=_(i.g);for(var d=i.next();!d.done;d=i.next()){d=d.value;var v=u.push,y=v.apply,w=gr,T=new Uint8Array([0,0,0,0].concat(A(Oi(d.data?d.data.sequenceNumber:0,4))));T=gr("mfhd",T);var P,$=d.data?d.data.zb:[],U=new Uint8Array(4+$.length);for(P=0;P<$.length;P++){var W=$[P].flags;U[P+4]=W.hb<<4|W.mb<<2|W.jb}$=gr("sdtp",U);var Y=$.length+32+20+8+16+8+8;U=gr,P=new Uint8Array([0,0,0,58].concat(A(Oi(d.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),P=gr("tfhd",P),W=d.data?d.data.baseMediaDecodeTime:0;var re=Math.floor(W%(tp+1));W=new Uint8Array([1,0,0,0].concat(A(Oi(Math.floor(W/(tp+1)),4)),A(Oi(re,4)))),W=gr("tfdt",W);var le=Y;Y=d.data?d.data.zb:[],re=Y.length;var fe=12+16*re,ve=new Uint8Array(fe);for(le+=8+fe,ve.set([d.type==="video"?1:0,0,15,1].concat(A(Oi(re,4)),A(Oi(le,4))),0),le=0;le=0;u--)d.push(i>>8*u&255);return d}function VK(i){for(var u=new Uint8Array(i.length/2),d=0;d=0;y--)v+=u[y].byteLength;for(y=new Uint8Array(v),y[0]=v>>24&255,y[1]=v>>16&255,y[2]=v>>8&255,y[3]=v&255,y.set(d,4),d=0,v=8;d=0;W--)U.push(2>>8*W&255);for(i.set(new Uint8Array(U),P),i.set($,P+4),P=_(T),$=P.next();!$.done;$=P.next())$=$.value,Bw(i,$.start,$.size+4)}}return i}function f2e(i,u,d,v,y,w){var T=Vv(i,v.name),P=u.subarray(v.start,v.start+v.size);for(i=new Uint8Array(v.size+T.byteLength),i.set(P,0),tt(i).setUint32(4,w),i.set(T,v.size),Bw(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),v=Le().df()?v.start:v.start+v.size,T=u.subarray(v),w.set(u.subarray(0,v)),w.set(i,v),w.set(T,v+i.byteLength),u=_(y),y=u.next();!y.done;y=u.next())y=y.value,Bw(w,y.start,y.size+i.byteLength);return i=tt(w,d.start),d=ep(d),u=i.getUint32(d),i.setUint32(d,u+1),w}function Bw(i,u,d){i=tt(i,u),u=i.getUint32(0),u!=0&&(u==1?(i.setUint32(8,d>>32),i.setUint32(12,d&4294967295)):i.setUint32(0,d))}function h2e(i){function u(y){v.push({start:y.start,size:y.size}),Zn(y)}var d=Ie(i),v=[];return new ti().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(y){v.push({start:y.start,size:y.size});for(var w=tt(d,y.start),T=0;T0)return u}if(i.g.length>0&&i.m)for(i=_(i.g),i=i.next();!i.done;i=i.next()){G5(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=GK},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),d=u.next();!d.done;d=u.next())d=d.value,d.startTime+=i,d.endTime+=i,d.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 WK(i,u){i.ba=u,i=_(i.g);for(var d=i.next();!d.done;d=i.next())WK(d.value,u)}Ke("shaka.media.SegmentReference",Mn),Mn.prototype.getSegmentData=Mn.prototype.Yb,Mn.prototype.setSegmentData=Mn.prototype.pe,Mn.prototype.syncAgainst=Mn.prototype.yh,Mn.prototype.offset=Mn.prototype.offset,Mn.prototype.getThumbnailSprite=Mn.prototype.Xj,Mn.prototype.setThumbnailSprite=Mn.prototype.If,Mn.prototype.hasByterangeOptimization=Mn.prototype.gk,Mn.prototype.markAsByterangeOptimization=Mn.prototype.oi,Mn.prototype.isLastPartial=Mn.prototype.lk,Mn.prototype.markAsLastPartial=Mn.prototype.pi,Mn.prototype.isPartial=Mn.prototype.nk,Mn.prototype.markAsPartial=Mn.prototype.ri,Mn.prototype.isIndependent=Mn.prototype.kk,Mn.prototype.markAsNonIndependent=Mn.prototype.wd,Mn.prototype.isPreload=Mn.prototype.isPreload,Mn.prototype.markAsPreload=Mn.prototype.Qg,Mn.prototype.markAsUnavailable=Mn.prototype.xk,Mn.prototype.getStatus=Mn.prototype.Jc,Mn.prototype.getTileDuration=Mn.prototype.Zj,Mn.prototype.getTilesLayout=Mn.prototype.$j,Mn.prototype.getEndByte=Mn.prototype.Gc,Mn.prototype.getStartByte=Mn.prototype.Ic,Mn.prototype.getEndTime=Mn.prototype.Ej,Mn.prototype.getStartTime=Mn.prototype.getStartTime,Mn.prototype.getUris=Mn.prototype.P;var Bf=0,GK=1;Mn.Status={ql:Bf,xm:GK,Tl:2};function Ib(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function KK(i){return!i||Ib(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function Fw(i){return!i||Ib(i)?null:i.length?i.end(i.length-1):null}function K5(i,u){return!i||!i.length||Ib(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function qK(i,u){if(!i||!i.length||Ib(i))return 0;var d=0;i=_(Ff(i));for(var v=i.next();!v.done;v=i.next()){var y=v.value;v=y.start,y=y.end,y>u&&(d+=y-Math.max(v,u))}return d}function p2e(i,u,d){return!i||!i.length||Ib(i)?null:(i=Ff(i).findIndex(function(v,y,w){return v.start>u&&(y==0||w[y-1].end-u<=d)}),i>=0?i:null)}function Ff(i){if(!i)return[];for(var u=[],d=0;d=0;--v)i.removeChild(d[v]),u=!0;return i.src&&(i.removeAttribute("src"),u=!0),u}function Lb(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Uv(){return l0||(Y5||(Y5=new sr(function(){l0=null})),(l0=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(l0=document.createElement("video")),Y5.ia(1),l0)}function v2e(i,u){var d,v,y,w,T;return ae(function(P){if(P.g==1)return"fonts"in document&&"FontFace"in o?L(P,document.fonts.ready,2):P.return();if(!("entries"in document.fonts))return P.return();for(d=function($){$=$.entries();for(var U=[],W=$.next();W.done===!1;)U.push(W.value),W=$.next();return U},v=_(d(document.fonts)),y=v.next();!y.done;y=v.next())if(w=y.value,w.family===i&&w.display==="swap")return P.return();T=new FontFace(i,"url("+u+")",{display:"swap"}),document.fonts.add(T),B(P)})}Ke("shaka.util.Dom",q5),q5.removeAllChildren=Lb,q5.clearSourceFromVideo=jw;var Y5=null,l0=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function X5(){}function XK(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 ZK(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 Z5(i,u){var d=(i[u]&127)<<21;return d|=(i[u+1]&127)<<14,d|=(i[u+2]&127)<<7,d|=i[u+3]&127}function m2e(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 d=i.data.subarray(1).indexOf(0);if(d===-1)return null;var v=rt(Ie(i.data,1,d)),y=i.data[2+d],w=i.data.subarray(3+d).indexOf(0);if(w===-1)return null;var T=rt(Ie(i.data,3+d,w)),P;return v==="-->"?P=rt(Ie(i.data,4+d+w)):P=Se(i.data.subarray(4+d+w)),u.mimeType=v,u.pictureType=y,u.description=T,u.data=P,u}return i.type==="TXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(d=rt(Ie(i.data,1,v)),i=rt(Ie(i.data,2+v)).replace(/\0*$/,""),u.description=d,u.data=i,u):i.type==="WXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(d=rt(Ie(i.data,1,v)),i=rt(Ie(i.data,2+v)).replace(/\0*$/,""),u.description=d,u.data=i,u):i.type==="PRIV"?i.size<2||(d=i.data.indexOf(0),d===-1)?null:(d=rt(Ie(i.data,0,d)),u.description=d,d=="com.apple.streaming.transportStreamTimestamp"?(d=i.data.subarray(d.length+1),i=d[3]&1,d=(d[4]<<23)+(d[5]<<15)+(d[6]<<7)+d[7],d/=45,i&&(d+=4772185884e-2),u.data=d):(i=Se(i.data.subarray(d.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=rt(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=rt(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=Se(i.data),u):null}function zv(i){for(var u=0,d=[];XK(i,u);){var v=Z5(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+=Z5(i,u+6),ZK(i,u+10)&&(v+=10),u+=v;return v>0?i.subarray(d,d+v):new Uint8Array([])}Ke("shaka.util.Id3Utils",X5),X5.getID3Data=u0,X5.getID3Frames=zv;function JK(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function jf(i,u){if(this.j=i,u!==void 0&&u){u=new Uint8Array(i.byteLength);for(var d=0,v=0;v=2&&i[v]==3&&i[v-1]==0&&i[v-2]==0||(u[d]=i[v],d++);this.j=Ie(u,0,d)}this.i=this.j.byteLength,this.g=this.h=0}function J5(i){var u=i.j.byteLength-i.i,d=new Uint8Array(4),v=Math.min(4,i.i);v!==0&&(d.set(i.j.subarray(u,u+v)),i.h=new Ei(d,0).U(),i.g=v*8,i.i-=v)}function wl(i,u){if(i.g<=u){u-=i.g;var d=Math.floor(u/8);u-=d*8,i.g-=d,J5(i)}i.h<<=u,i.g-=u}function hr(i,u){var d=Math.min(i.g,u),v=i.h>>>32-d;return i.g-=d,i.g>0?i.h<<=d:i.i>0&&J5(i),d=u-d,d>0?v<>>u)!==0)return i.h<<=u,i.g-=u,u;return J5(i),u+Q5(i)}function Rs(i){wl(i,1+Q5(i))}function cn(i){var u=Q5(i);return hr(i,u+1)-1}function c0(i){return i=cn(i),1&i?1+i>>>1:-1*(i>>>1)}function Tn(i){return hr(i,1)===1}function jr(i){return hr(i,8)}function Vw(i,u){for(var d=8,v=8,y=0;y>4>1){var P=y+5+i[y+4];if(P==y+188)continue}else P=y+4;switch(T){case 0:w&&(P+=i[P]+1),this.I=(i[P+10]&31)<<8|i[P+11];break;case 17:case 8191:break;case this.I:w&&(P+=i[P]+1),w=i,T={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var $=P+3+((w[P+1]&15)<<8|w[P+2])-4;for(P+=12+((w[P+10]&15)<<8|w[P+11]);P<$;){var U=(w[P+1]&31)<<8|w[P+2],W=(w[P+3]&15)<<8|w[P+4];switch(w[P]){case 6:if(W>0)for(var Y=P+5,re=W;re>2;){var le=w[Y+1]+2;switch(w[Y]){case 5:var fe=un(w.subarray(Y+2,Y+le));T.audio==-1&&fe==="Opus"?(T.audio=U,T.audioCodec="opus"):T.video==-1&&fe==="AV01"&&(T.video=U,T.videoCodec="av1");break;case 106:T.audio==-1&&(T.audio=U,T.audioCodec="ac3");break;case 122:T.audio==-1&&(T.audio=U,T.audioCodec="ec3");break;case 124:T.audio==-1&&(T.audio=U,T.audioCodec="aac");break;case 127:T.audioCodec=="opus"&&(fe=null,w[Y+2]===128&&(fe=w[Y+3]),fe!=null&&(this.H={channelCount:(fe&15)===0?2:fe&15,nj:fe,sampleRate:48e3}))}Y+=le,re-=le}break;case 15:T.audio==-1&&(T.audio=U,T.audioCodec="aac");break;case 17:T.audio==-1&&(T.audio=U,T.audioCodec="aac-loas");break;case 21:T.bf==-1&&(T.bf=U);break;case 27:T.video==-1&&(T.video=U,T.videoCodec="avc");break;case 3:case 4:T.audio==-1&&(T.audio=U,T.audioCodec="mp3");break;case 36:T.video==-1&&(T.video=U,T.videoCodec="hvc");break;case 129:T.audio==-1&&(T.audio=U,T.audioCodec="ac3");break;case 132:case 135:T.audio==-1&&(T.audio=U,T.audioCodec="ec3")}P+=W+5}w=T,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,y=u-188),this.J=!0;break;case this.K:P=i.subarray(P,y+188),w?this.j.push([P]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(P);break;case this.F:P=i.subarray(P,y+188),w?this.i.push([P]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(P);break;case this.G:P=i.subarray(P,y+188),w?this.l.push([P]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(P);break;default:v=!0}}return this};function eP(i,u){if((u[0]<<16|u[1]<<8|u[2])!==1)return null;var d={data:new Uint8Array(0),packetLength:u[4]<<8|u[5],pts:null,dts:null,nalus:[]};if(d.packetLength&&d.packetLength>u.byteLength-6)return null;var v=u[7];if(v&192){var y=(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=y),d.pts=eq(y,i.u),i.u=d.pts,d.dts=d.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),d.dts=d.pts!=y?eq(v,i.o):v),i.o=d.dts}return i=u[8]+9,u.byteLength<=i?null:(d.data=u.subarray(i),d)}l.Ek=function(i){return Yt("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(i,{ge:null,state:null})},l.Wg=function(i,u){var d=i.pts?i.pts/9e4:null;i=i.data;var v=i.byteLength,y=1;this.m=="hvc"&&(y=2);var w=u.state||0,T=w,P=0,$=[],U=-1,W=0;for(w==-1&&(U=0,W=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,P=1);P=0?$.push({data:i.subarray(U+y,Y),fullData:i.subarray(U,Y),type:W,time:d,state:null}):(w=$.length?$[$.length-1]:u.ge)&&(T&&P<=4-T&&w.state&&(w.data=w.data.subarray(0,w.data.byteLength-T),w.fullData=w.fullData.subarray(0,w.fullData.byteLength-T)),Y>0&&(Y=i.subarray(0,Y),w.data=Xn(w.data,Y),w.fullData=Xn(w.fullData,Y),w.state=0)),P>1&63:i[P]&31,U=P,w=0):w=-1):w=0:w=3:w=Y?0:1}return U>=0&&w>=0&&$.push({data:i.subarray(U+y,v),fullData:i.subarray(U,v),type:W,time:d,state:w}),!$.length&&u.ge&&(d=$.length?$[$.length-1]:u.ge)&&(d.data=Xn(d.data,i),d.fullData=Xn(d.fullData,i)),u.state=w,$},l.getMetadata=function(){for(var i=[],u=_(this.l),d=u.next();!d.done;d=u.next())d=Xn.apply(Kn,A(d.value)),(d=eP(this,d))&&i.push({cueTime:d.pts?d.pts/9e4:null,data:d.data,frames:zv(d.data),dts:d.dts,pts:d.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 d=Xn.apply(Kn,A(u.value)),v=eP(this,d);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&&(d=v?v.data:d)&&(u=this.h.pop(),u.data=Xn(u.data,d),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),d=u.next();!d.done;d=u.next()){var v=Xn.apply(Kn,A(d.value)),y=eP(this,v);d=this.g.length?this.g[this.g.length-1]:null,y&&y.pts!=null&&y.dts!=null&&(!d||d.pts!=y.pts&&d.dts!=y.dts)?this.g.push(y):this.g.length&&(v=y?y.data:v)&&(d=this.g.pop(),d.data=Xn(d.data,v),this.g.push(d))}if(i){for(u={ge:null,state:null},d=[],v=_(this.g),y=v.next();!y.done;y=v.next())y=y.value,y.nalus=this.Wg(y,u),y.nalus.length&&(d.push(y),u.ge=y.nalus[y.nalus.length-1]);this.g=d}}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()),d=u.next();!d.done;d=u.next())i.push.apply(i,A(d.value.nalus));return i},l.dk=function(){Yt("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"?b2e(this):y2e(this)};function QK(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 y2e(i){var u={height:null,width:null,codec:null,frameRate:null},d=i.$e();if(!d.length||(d=d.find(function(le){return le.type==7}),!d))return u;d=new jf(d.data);var v=jr(d),y=jr(d),w=jr(d);if(Rs(d),_2e.includes(v)){var T=cn(d);if(T===3&&wl(d,1),Rs(d),Rs(d),wl(d,1),Tn(d)){T=T!==3?8:12;for(var P=0;P0)for(Re=y;Re<8;Re++)hr(v,2);for(Re=0;Re>Ve&1)<<31-Ve;return Ze>>>0})($),T=T==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+P),w+="."+v.toString(16).toUpperCase(),w+="."+T+fe,le&&(w+="."+le.toString(16).toUpperCase()),re&&(w+="."+re.toString(16).toUpperCase()),Y&&(w+="."+Y.toString(16).toUpperCase()),W&&(w+="."+W.toString(16).toUpperCase()),U&&(w+="."+U.toString(16).toUpperCase()),d&&(w+="."+d.toString(16).toUpperCase()),u.codec=w,u.frameRate=QK(i),u}function eq(i,u){var d=1;for(i>u&&(d=-1);Math.abs(u-i)>4294967296;)i+=d*8589934592;return i}function d0(i){return!(tP(i)<0)}function tP(i){for(var u=Math.min(1e3,i.length-564),d=0;d0||i.B.dispatchAllEmsgBoxes;W&&U.S("emsg",function(fe){var ve=y.emsgSchemeIdUris;if(fe.version===0)var me=fe.reader.Yc(),Re=fe.reader.Yc(),Te=fe.reader.U(),ze=fe.reader.U(),nt=fe.reader.U(),mt=fe.reader.U(),Ze=v.startTime+ze/Te;else Te=fe.reader.U(),Ze=fe.reader.Dd()/Te+v.timestampOffset,ze=Ze-v.startTime,nt=fe.reader.U(),mt=fe.reader.U(),me=fe.reader.Yc(),Re=fe.reader.Yc();fe=fe.reader.Tb(fe.reader.getLength()-fe.reader.Oa(),!0),(ve&&ve.includes(me)||i.B.dispatchAllEmsgBoxes)&&(me=="urn:mpeg:dash:event:2012"?i.O.Dk():(ve=Ze+nt/Te,i.O.Bk({startTime:Ze,endTime:ve,schemeIdUri:me,value:Re,timescale:Te,presentationTimeDelta:ze,eventDuration:nt,id:mt,messageData:fe}),(me=="https://aomedia.org/emsg/ID3"||me=="https://developer.apple.com/streaming/emsg-id3")&&(Te=zv(fe),Te.length&&i.O.onMetadata([{cueTime:Ze,data:fe,frames:Te,dts:Ze,pts:Ze}],0,ve))))});var Y=v.ba.timescale;u=Y&&!isNaN(Y);var re=0,le=!1;u&&U.S("prft",function(fe){var ve=fe.reader,me=fe.version;ve.U(),fe=ve.U();var Re=ve.U();fe=fe*1e3+Re/4294967296*1e3,me===0?ve=ve.U():(me=ve.U(),ve=ve.U(),ve=me*4294967296+ve),fe=JK(fe),ve=new Map().set("detail",{wallClockTime:fe,programStartDate:new Date(fe-ve/Y*1e3)}),ve=new vn("prft",ve),i.O.onEvent(ve)}).box("moof",Zn).box("traf",Zn).S("tfdt",function(fe){le||(re=Ow(fe.reader,fe.version).baseMediaDecodeTime/Y,le=!0,W||fe.parser.stop())}),(W||u)&&U.parse(d,!1,T),le&&v.timestampOffset==0&&(P=re)}else w.includes("/mp4")||w.includes("/webm")||!d0(U)||(i.$.has(u)||i.$.set(u,new yi),$=i.$.get(u),$.clearData(),$.Gf(v.i),$.parse(U),U=$.getStartTime(u),U!=null&&(P=U),$=$.getMetadata());return{timestamp:P,metadata:$}}function Hw(i,u,d,v,y,w,T,P,$,U,W){T=T===void 0?!1:T,P=P===void 0?!1:P,$=$===void 0?!1:$,U=U===void 0?!1:U;var Y,re,le,fe,ve,me,Re,Te,ze,nt,mt,Ze,Ve,dt,vt,ht,_t,St,$t,Nt;return ae(function(Ct){switch(Ct.g){case 1:if(Y=Nr,u!=Y.Na){Ct.A(2);break}if(i.X!="HLS"){Ct.A(3);break}return L(Ct,i.Ta,4);case 4:re=Ct.h,i.h.u=re;case 3:return L(Ct,rSe(i.h,d,v?v.startTime:null,v?v.endTime:null,v?v.P()[0]:null),5);case 5:return Ct.return();case 2:if(U||!i.m){Ct.A(6);break}return L(Ct,Hw(i,Y.ka,d,v,y,w,T,P,$,!0),7);case 7:return L(Ct,Hw(i,Y.Aa,d,v,y,w,T,P,$,!0),8);case 8:return Ct.return();case 6:if(!i.l.has(u))return Ct.return();if(le=i.l.get(u).timestampOffset,fe=i.F.get(u),i.j.has(u)&&(fe=i.j.get(u).getOriginalMimeType()),v&&(ve=E2e(i,u,d,v,y,fe,$),me=ve.timestamp,Re=ve.metadata,me!=null&&(i.V==null&&u==Y.Aa&&(i.V=me,i.wa=v.startTime,i.T!=null&&(Te=0,i.wa==i.qa&&(Te=i.V-i.T),i.ma.resolve(Te))),i.T==null&&u==Y.ka&&(i.T=me,i.qa=v.startTime,i.V!=null&&(ze=0,i.wa==i.qa&&(ze=i.V-i.T),i.ma.resolve(ze))),nt=me,mt=Mf,!i.I&&mt.includes(i.F.get(u))&&(nt=0),Ze=v.startTime-nt,Ve=Math.abs(le-Ze),(Ve>=.001||T||P)&&(!$||Ze>0||!le)&&(le=Ze,i.ib&&(Go(i,u,function(){return h0(i,u)},null),Go(i,u,function(){return p0(i,u,le)},null))),(u==Y.Aa||!i.l.has(Y.Aa))&&i.Ta.resolve(le)),Re.length)&&i.O.onMetadata(Re,le,v?v.endTime:null),w&&u==Y.Aa&&(i.h||zw(i,"application/cea-608",i.I,!1),i.J||(dt=fe.split(";",1)[0],i.J=new Ts(dt)),v?(vt=i.J.xf(d),vt.length&&oSe(i.h,vt,le)):i.J.init(d,P,W)),!i.j.has(u)){Ct.A(9);break}return L(Ct,i.j.get(u).transmux(d,y,v,i.i.duration,u),10);case 10:ht=Ct.h,ArrayBuffer.isView(ht)?d=ht:(_t=ht,_t.init!=null&&(St=_t.init,Go(i,u,function(){i.H&&Jr(i.H,St,le,y),i.l.get(u).appendBuffer(St)},v?v.P()[0]:null)),d=_t.data);case 9:if(d=P2e(i,y,d,v,u),!v||!i.I||u==Y.Na){Ct.A(11);break}if(!T&&!P){Ct.A(11);break}if($t=v.startTime,i.X!="HLS"||i.m||u!=Y.ka||!i.l.has(Y.Aa)){Ct.A(13);break}return L(Ct,i.ma,14);case 14:Nt=Ct.h,Math.abs(Nt)>.15&&($t-=Nt);case 13:Go(i,u,function(){return h0(i,u)},null),Go(i,u,function(){return p0(i,u,$t)},null);case 11:return L(Ct,Go(i,u,function(){var At=d;i.H&&Jr(i.H,At,le,y),i.l.get(u).appendBuffer(At)},v?v.P()[0]:null),15);case 15:B(Ct)}})}function x2e(i,u){var d=Gv(i,"video")||0;VG(i.h,u,d)}function T2e(i){i.h&&VG(i.h,"",0)}l.remove=function(i,u,d,v){var y=this,w,T;return ae(function(P){return P.g==1?(w=Nr,i==w.Aa&&y.J&&(y.J.remove(v),T=y.h.g||0,y.h.remove(T,d,!0)),i==w.Na?L(P,y.h.remove(u,d),0):d>u?L(P,Go(y,i,function(){return Ww(y,i,u,d)},null),5):P.A(0)):y.m?L(P,Go(y,w.ka,function(){return Ww(y,w.ka,u,d)},null),0):P.A(0)})};function rq(i,u){var d;return ae(function(v){return v.g==1?(d=Nr,u==d.Na?i.h?L(v,i.h.remove(0,1/0),0):v.return():u===d.Aa&&i.J&&i.h?L(v,i.h.remove(0,1/0,!0),4):v.A(4)):v.g!=6?L(v,Go(i,u,function(){return Ww(i,u,0,i.i.duration)},null),6):i.m?L(v,Go(i,d.ka,function(){return Ww(i,d.ka,0,i.i.duration)},null),0):v.A(0)})}l.flush=function(i){var u=this,d;return ae(function(v){return v.g==1?(d=Nr,i==d.Na?v.return():L(v,Go(u,i,function(){u.g.currentTime-=.001,np(u,i)},null),2)):u.m?L(v,Go(u,d.ka,function(){var y=d.ka;u.g.currentTime-=.001,np(u,y)},null),0):v.A(0)})};function iq(i,u,d,v,y,w,T,P,$){var U,W,Y;return ae(function(re){return re.g==1?(U=Nr,u==U.Na?(w||(i.h.u=d),iSe(i.h,v,y),re.return()):(W=[],L(re,D2e(i,u,T,P,$),2))):(Y=re.h,Y||(W.push(Go(i,u,function(){return h0(i,u)},null)),i.m&&W.push(Go(i,U.ka,function(){return h0(i,U.ka)},null))),w||(W.push(Go(i,u,function(){return p0(i,u,d)},null)),i.m&&W.push(Go(i,U.ka,function(){return p0(i,U.ka,d)},null))),(v!=0||y!=1/0)&&(W.push(Go(i,u,function(){return oq(i,u,v,y)},null)),i.m&&W.push(Go(i,U.ka,function(){return oq(i,U.ka,v,y)},null))),W.length?L(re,Promise.all(W),0):re.A(0))})}function A2e(i,u,d){var v,y;return ae(function(w){return w.g==1?(v=Nr,u==v.Na||(u==v.Aa&&(i.Ta=new ei),!i.I||(y=Gv(i,u))&&Math.abs(y-d)<.15)?w.return():(Go(i,u,function(){return h0(i,u)},null),i.m&&Go(i,v.ka,function(){return h0(i,v.ka)},null),L(w,Go(i,u,function(){return p0(i,u,d)},null),2))):i.m?L(w,Go(i,v.ka,function(){return p0(i,v.ka,d)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return ae(function(d){return L(d,Pb(u,function(){Hv(u)||Wv(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return ae(function(d){return L(d,Pb(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&v&&!u.i)&&(u.j&&u.j(u.g,y),u.i=!0,u.g=d.g.currentTime),u=!v}u&&(u=i.g.currentTime,d=i.g.buffered,v=p2e(d,u,i.h.gapDetectionThreshold),v==null||v==0&&!i.B||(y=d.start(v),(w=i.h.gapPadding)&&(y=Math.ceil((y+w)*100)/100),y>=i.F.Gb()||y-u<.001||(v!=0&&d.end(v-1),N2e(i,y),u==i.l&&(i.l=y),i.G++,i.u(new vn("gapjumped")))))}}}function N2e(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function B2e(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,d=i.h.stallSkip;return new dq(new fq(i.g),u,function(){var v;return ae(function(y){if(y.g==1)return v=Ff(i.g.buffered),v.length?d?(i.g.currentTime+=d,y.A(2)):L(y,i.g.play(),3):y.return();if(y.g!=2){if(!i.g)return y.return();i.g.pause(),i.g.play()}i.H++,i.u(new vn("stalldetected")),B(y)})})}function dq(i,u,d){this.h=i,this.m=hq(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=d}dq.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function fq(i){var u=this;this.g=i,this.h=new Ue,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 hq(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=_(Ff(i.g.buffered));for(var d=i.next();!d.done;d=i.next())if(d=d.value,!(ud.end-.5)){u=!0;break e}u=!1}return u}fq.prototype.release=function(){this.h&&this.h.release(),this.h=null};function v0(i,u,d,v){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?v():(u=F2e.value().get(u),d.Ba(i,u,v))}var F2e=new et(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function pq(i,u,d,v){var y=this;this.g=i,this.m=u,this.u=d,this.l=null,this.j=function(){return y.l==null&&(y.l=v()),y.l},this.o=!1,this.h=new Ue,this.i=new yq(i),v0(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){mq(y,y.j())})}pq.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 cP(i){return i.o?i.g.currentTime:i.j()}function vq(i,u){i.g.readyState>0?bq(i.i,u):v0(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){mq(i,i.j())})}function mq(i,u){Math.abs(i.g.currentTime-u)<.001?gq(i):(i.h.Ba(i.g,"seeking",function(){gq(i)}),bq(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function gq(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function yq(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new sr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}yq.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function bq(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function _q(i){this.g=i,this.i=!1,this.h=null,this.j=new Ue}l=_q.prototype,l.ready=function(){function i(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var d=u.g.currentTime,v=null;if(typeof u.h=="number")v=u.h;else if(u.h instanceof Date){var y=Sq(u);y!==null&&(v=u.h.getTime()/1e3-y,v=kq(u,v))}v==null?u.i=!0:(v<0&&(v=Math.max(0,d+v)),d!=v?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=v):u.i=!0)}}var u=this;v0(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-(Sq(this)||0),i=kq(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=Fw(this.g.buffered);return i!=null&&i>=this.g.duration-1};function Sq(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function kq(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 wq(i,u,d,v,y,w){var T=this;this.h=i,this.g=u.presentationTimeline,this.l=d,this.u=y,this.o=null,this.i=new uP(i,u.presentationTimeline,d,w),this.j=new pq(i,function(){e:{var P=T.i;P.m=!0,P.B=!1,P.i&&P.i.Ea(P.h.gapJumpTimerTime),Rb(P);var $=cP(T.j);if(P=xq(T,$),!Gg()&&Math.abs(P-$)>.001){$=!1;var U=Le().Mi();if(U){var W=Date.now()/1e3;(!T.o||T.o0&&!this.h.paused?Tq(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 Cq(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),Eq(i,Tq(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=Fw(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function Eq(i,u){var d=i.g.getDuration();return u>=d?d-i.l.durationBackoff:u}function xq(i,u){var d=i.l.rebufferingGoal,v=i.l.safeSeekOffset,y=i.g.Xb(),w=i.g.Gb(),T=i.g.getDuration();w-y<3&&(y=w-3);var P=i.g.Xd(d),$=i.g.Xd(v);return d=i.g.Xd(d+v),u>=T?Eq(i,u):u>w?w-i.l.safeSeekEndOffset:u=P||K5(i.h.buffered,u)?u:d}function Tq(i,u){var d=i.g.Xb();return ui?i:u)}function Er(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=Er.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),d=u.next();!d.done;d=u.next())i(d.value)};function qc(i){return i.g[0]||null}l.find=function(i){for(var u=this.g.length-1,d=u;d>=0;--d){var v=this.g[d],y=d=v.startTime&&i=this.g.length?null:this.g[i])},l.offset=function(i){if(!this.o)for(var u=_(this.g),d=u.next();!d.done;d=u.next())d.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(d){return Math.round(d.startTime*1e3)/1e3u&&(d.g.length==0||v.endTime>d.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(d){return d.endTime>i}),this.i+=u-this.g.length}},l.pd=function(i,u,d){if(d=d===void 0?!1:d,!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(),d||this.i++;this.g.length!=0&&(i=this.g[this.g.length-1],u=new Mn(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 d=this;this.o||(this.m&&this.m.stop(),this.m=new sr(function(){var v=u();v?d.g.push.apply(d.g,A(v)):(d.m.stop(),d.m=null)}),this.m.Ea(i))},Er.prototype[Symbol.iterator]=function(){return this.Vb(0)},Er.prototype.Vb=function(i,u,d){u=u===void 0?!1:u,d=d===void 0?!1:d;var v=this.find(i);if(v==null)return null;var y=this.get(v);d?v++:v--;var w=-1;if(y&&y.g.length>0)for(var T=y.g.length-1;T>=0;--T){var P=y.g[T];if(i>=P.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]},Ke("shaka.media.SegmentIterator",Ru),Ru.prototype.resetToLastIndependent=Ru.prototype.eh,Ru.prototype.next=Ru.prototype.next,Ru.prototype.current=Ru.prototype.current,Ru.prototype.currentPosition=Ru.prototype.tj,Ru.prototype.setReverse=Ru.prototype.Id;function zi(){Er.call(this,[]),this.h=[]}E(zi,Er),l=zi.prototype,l.clone=function(){var i=new zi;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),d=u.next();!d.done;d=u.next())d.value.Fb(i)};function j2e(i,u){i=_(i.h);for(var d=i.next();!d.done;d=i.next())u(d.value)}l.find=function(i){for(var u=this.i,d=_(this.h),v=d.next();!v.done;v=d.next()){v=v.value;var y=v.find(i);if(y!=null)return y+u;u+=v.getNumEvicted()+v.getNumReferences()}return null};function V2e(i,u){i=_(i.h);for(var d=i.next();!d.done;d=i.next())if(d=d.value,d.find(u)!=null)return d.Te();return-1}l.get=function(i){for(var u=this.i,d=_(this.h),v=d.next();!v.done;v=d.next()){v=v.value;var y=v.get(i-u);if(y)return y;y=v.getNumReferences(),u+=v.getNumEvicted()+y}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(){},Ke("shaka.media.MetaSegmentIndex",zi),zi.prototype.updateEvery=zi.prototype.Nf,zi.prototype.fit=zi.prototype.pd,zi.prototype.mergeAndEvict=zi.prototype.fe,zi.prototype.evict=zi.prototype.Ya,zi.prototype.merge=zi.prototype.nf,zi.prototype.offset=zi.prototype.offset,zi.prototype.get=zi.prototype.get,zi.prototype.find=zi.prototype.find,zi.prototype.forEachTopLevelReference=zi.prototype.Fb,zi.prototype.release=zi.prototype.release;function Mb(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new sr(function(){u.g.ui(u.i*.25)})}Mb.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},Mb.prototype.set=function(i){this.i=i,dP(this)},Mb.prototype.Tc=function(){return this.g.Tc()};function dP(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 fP(i){var u=this;this.j=i,this.h=new Ue,this.g=new Set,this.i=new sr(function(){Aq(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()})}fP.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 Aq(i,u){var d=i.j.currentTime;i=_(i.g);for(var v=i.next();!v.done;v=i.next())v.value.j(d,u)}function Kw(i){Fr.call(this),this.g=new Map,this.h=i}E(Kw,Fr),Kw.prototype.release=function(){this.g.clear(),Fr.prototype.release.call(this)};function U2e(i,u){var d=i.g.get(u);return d||(d={me:[],lg:null,contentType:u},i.g.set(u,d)),d}function z2e(i,u,d){var v=U2e(i,u.contentType);H2e(i,v),i={xd:u,position:d},v=v.me,u=v.findIndex(function(y){return y.position>=d}),u>=0?v.splice(u,v[u].position==d?1:0,i):v.push(i)}Kw.prototype.j=function(i){for(var u=_(this.g.values()),d=u.next();!d.done;d=u.next()){d=d.value;var v=d.lg;e:{for(var y=d.me,w=y.length-1;w>=0;w--){var T=y[w];if(T.position<=i){y=T.xd;break e}}y=null}w=y&&!(v===y||v&&y&&v.bandwidth==y.bandwidth&&v.audioSamplingRate==y.audioSamplingRate&&v.codecs==y.codecs&&v.contentType==y.contentType&&v.frameRate==y.frameRate&&v.height==y.height&&v.mimeType==y.mimeType&&v.channelsCount==y.channelsCount&&v.pixelAspectRatio==y.pixelAspectRatio&&v.width==y.width),T=y&&v&&y.label&&v.label&&v.label!==y.label;var P=y&&v&&y.language&&v.language&&v.language!==y.language;v=y&&v&&y.roles&&v.roles&&!at(v.roles,y.roles),(T||P||v)&&Iq(this,i,y.contentType)&&(d.lg=y,v=new vn("audiotrackchange",new Map([["quality",y],["position",i]])),this.dispatchEvent(v)),w&&Iq(this,i,y.contentType)&&(d.lg=y,JSON.stringify(y),d=new vn("qualitychange",new Map([["quality",y],["position",i]])),this.dispatchEvent(d))}};function Iq(i,u,d){return!!((i=i.h()[d])&&i.length>0&&(d=i[i.length-1].end,u>=i[0].start&&u0){var d=i[0].start,v=i[i.length-1].end,y=u.me;u.me=y.filter(function(w,T){return!(w.position<=d&&T+1=v)})}else u.me=[]}function qw(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 Db(i){Fr.call(this),this.h=new Map,this.i=i,this.g=null}E(Db,Fr),Db.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Fr.prototype.release.call(this)};function hP(i,u){var d=u.schemeIdUri+"_"+u.id+"_"+(u.startTime.toFixed(1)+"_"+u.endTime.toFixed(1));i.h.has(d)||(i.h.set(d,u),u=new vn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),W2e(i))}function W2e(i){i.g||(i.g=new sr(function(){for(var u=i.i(),d=_(i.h),v=d.next();!v.done;v=d.next()){var y=_(v.value);v=y.next().value,y=y.next().value,y.endTimev.endTime&&$b(this,v);u&&pP(this)},Yw.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function pP(i){if(i.g.size)for(var u=Array.from(i.g.keys()),d=_(i.j.keys()),v=d.next(),y={};!v.done;y={Mg:void 0},v=d.next())y.Mg=v.value,u.some((function(w){return function(T){return Ab(T.ba,w.Mg)}})(y))||$b(i,y.Mg)}function Rq(i,u){i.m=u;for(var d=Array.from(i.g.keys());d.length>u;){var v=d.pop();v&&$b(i,v)}pP(i)}function K2e(i,u){u&&u!==i.i&&(Yc(i),i.i=u)}function $b(i,u){var d=i.g;u instanceof Ka&&(d=i.j),i=d.get(u),d.delete(u),i&&i.abort()}function vP(i){this.g=i,this.je=this.wh=null}function Mq(i,u,d){var v=new Uint8Array(0);return i.je=i.g(u,d,function(y){return ae(function(w){if(w.g==1)return v.byteLength>0?v=Xn(v,y):v=y,i.wh?L(w,i.wh(v),3):w.A(0);v=new Uint8Array(0),B(w)})}),i.je.promise.catch(function(y){return y instanceof we&&y.code==7001?Promise.resolve():Promise.reject(y)})}vP.prototype.abort=function(){this.je&&this.je.abort()},Ke("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function mP(i){var u=_l(i),d=u.split("/")[0];return i=Ga(i),{type:d,mimeType:u,codecs:i,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ve:null,colorGamut:null,frameRate:null}}function q2e(i,u,d){function v(Ve){Re=Ve.name;var dt=Ve.reader;dt.skip(24);var vt=dt.Ca(),ht=dt.Ca();dt.skip(50),re=String(vt),Y=String(ht),Ve.reader.Ia()&&Zn(Ve)}function y(Ve){var dt=BK(Ve.reader);le=dt.channelCount,fe=dt.sampleRate,w(Ve.name)}function w(Ve){switch(Ve=Ve.toLowerCase(),Ve){case"avc1":case"avc3":P.push(Ve+".42E01E"),U=!0;break;case"hev1":case"hvc1":P.push(Ve+".1.6.L93.90"),U=!0;break;case"dvh1":case"dvhe":P.push(Ve+".05.04"),U=!0;break;case"vp09":P.push(Ve+".00.10.08"),U=!0;break;case"av01":P.push(Ve+".0.01M.08"),U=!0;break;case"mp4a":T.push("mp4a.40.2"),$=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":T.push(Ve),$=!0;break;case"apac":T.push("apac.31.00"),$=!0}}var T=[],P=[],$=!1,U=!1,W=null,Y=null,re=null,le=null,fe=null,ve=null,me=null,Re;if(new ti().box("moov",Zn).box("trak",Zn).box("mdia",Zn).S("mdhd",function(Ve){W=$w(Ve.reader,Ve.version).language}).box("minf",Zn).box("stbl",Zn).S("stsd",Nf).box("mp4a",function(Ve){var dt=BK(Ve.reader);le=dt.channelCount,fe=dt.sampleRate,Ve.reader.Ia()?Zn(Ve):w(Ve.name)}).box("esds",function(Ve){Ve=Ve.reader;for(var dt="mp4a",vt,ht;Ve.Ia();){vt=Ve.Y();for(var _t=Ve.Y();_t&128;)_t=Ve.Y();if(vt==3)Ve.Ca(),_t=Ve.Y(),_t&128&&Ve.Ca(),_t&64&&Ve.skip(Ve.Y()),_t&32&&Ve.Ca();else if(vt==4)ht=Ve.Y(),Ve.skip(12);else if(vt==5)break}ht&&(dt+="."+Eb(ht),vt==5&&Ve.Ia()&&(vt=Ve.Y(),ht=(vt&248)>>3,ht===31&&Ve.Ia()&&(ht=32+((vt&7)<<3)+((Ve.Y()&224)>>5)),dt+="."+ht)),T.push(dt),$=!0}).box("ac-3",y).box("ec-3",y).box("ac-4",y).box("Opus",y).box("fLaC",y).box("apac",y).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(Ve){var dt=Re||"";switch(Re){case"dvav":dt="avc3";break;case"dva1":dt="avc1"}Ve=Ve.reader,Ve.skip(1),Ve=dt+"."+Eb(Ve.Y())+Eb(Ve.Y())+Eb(Ve.Y()),P.push(Ve),U=!0}).box("hvcC",function(Ve){var dt=Re||"";switch(Re){case"dvh1":dt="hvc1";break;case"dvhe":dt="hev1"}var vt=Ve.reader;vt.skip(1),Ve=vt.Y();var ht=["","A","B","C"][Ve>>6],_t=Ve&31,St=vt.U(),$t=(Ve&32)>>5?"H":"L";Ve=[vt.Y(),vt.Y(),vt.Y(),vt.Y(),vt.Y(),vt.Y()],vt=vt.Y();for(var Nt=0,Ct=0;Ct<32&&(Nt|=St&1,Ct!=31);Ct++)Nt<<=1,St>>=1;for(dt=dt+("."+ht+_t)+("."+Eb(Nt,!0)),dt+="."+$t+vt,ht="",_t=Ve.length;_t--;)(($t=Ve[_t])||ht)&&(ht="."+$t.toString(16).toUpperCase()+ht);dt+=ht,P.push(dt),U=!0}).box("dvcC",function(Ve){var dt=Re||"";switch(Re){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 vt=Ve.reader;vt.skip(2),Ve=vt.Y(),vt=vt.Y(),P.push(dt+"."+kl(Ve>>1&127)+"."+kl(Ve<<5&32|vt>>3&31)),U=!0}).box("dvvC",function(Ve){var dt=Re||"";switch(Re){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 vt=Ve.reader;vt.skip(2),Ve=vt.Y(),vt=vt.Y(),P.push(dt+"."+kl(Ve>>1&127)+"."+kl(Ve<<5&32|vt>>3&31)),U=!0}).S("vpcC",function(Ve){var dt=Re||"",vt=Ve.reader;Ve=vt.Y();var ht=vt.Y();vt=vt.Y()>>4&15,P.push(dt+"."+kl(Ve)+"."+kl(ht)+"."+kl(vt)),U=!0}).box("av1C",function(Ve){var dt=Re||"";switch(Re){case"dav1":dt="av01"}var vt=Ve.reader;vt.skip(1),Ve=vt.Y(),vt=vt.Y();var ht=Ve>>>5,_t=(vt&64)>>6;P.push(dt+"."+ht+"."+kl(Ve&31)+(vt>>>7?"H":"M")+"."+kl(ht===2&&_t?(vt&32)>>5?12:10:_t?10:8)+"."+((vt&16)>>4)+"."+((vt&8)>>3)+((vt&4)>>2)+(vt&3)+"."+kl(1)+"."+kl(1)+"."+kl(1)+".0"),U=!0}).box("enca",Lw).box("encv",Sl).box("sinf",Zn).box("frma",function(Ve){Ve=W5(Ve.reader).codec,w(Ve)}).box("colr",function(Ve){P=P.map(function(ht){if(ht.startsWith("av01.")){var _t=Ve.reader,St=_t.Oa(),$t=_t.Tb(4,!1),Nt=String.fromCharCode($t[0]);if(Nt+=String.fromCharCode($t[1]),Nt+=String.fromCharCode($t[2]),Nt+=String.fromCharCode($t[3]),Nt==="nclx"){$t=_t.Ca(),Nt=_t.Ca();var Ct=_t.Ca(),At=_t.Y()>>7,zt=ht.split(".");zt.length==10&&(zt[6]=kl($t),zt[7]=kl(Nt),zt[8]=kl(Ct),zt[9]=String(At),ht=zt.join("."))}_t.seek(St)}return ht});var dt=XSe(Ve.reader),vt=dt.colorGamut;ve=dt.ve,me=vt}).parse(i||u,!0,!0),!T.length&&!P.length)return null;var Te=$&&!U,ze=new Map;if(U&&!d){d=new Ts("video/mp4"),i&&d.init(i);try{d.xf(u);for(var nt=_(d.Vf()),mt=nt.next();!mt.done;mt=nt.next()){var Ze=mt.value;ze.set(Ze,Ze)}}catch{}d.Nd()}return{type:Te?"audio":"video",mimeType:Te?"audio/mp4":"video/mp4",codecs:gP(T.concat(P)).join(", "),language:W,height:Y,width:re,channelCount:le,sampleRate:fe,closedCaptions:ze,ve,colorGamut:me,frameRate:null}}function gP(i){var u=new Set,d=[];i=_(i);for(var v=i.next();!v.done;v=i.next()){v=v.value;var y=Zh(v);u.has(y)||(d.push(v),u.add(y))}return u=ga("audio",d),v=ga("video",d),i=ga(yn,d),v=Y2e(v),u=u.concat(v).concat(i),d.length&&!u.length?d:u}function Y2e(i){if(i.length<=1)return i;var u=i.find(function(d){return d.startsWith("dvav.")||d.startsWith("dva1.")||d.startsWith("dvh1.")||d.startsWith("dvhe.")||d.startsWith("dav1.")||d.startsWith("dvc1.")||d.startsWith("dvi1.")});return u?Lo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(d){return d!=u}):i}function X2e(i){var u=null;return new ti().box("moov",Zn).box("trak",Zn).box("mdia",Zn).box("minf",Zn).box("stbl",Zn).S("stsd",Nf).box("encv",Sl).box("enca",Lw).box("sinf",Zn).box("schi",Zn).S("tenc",function(d){d=d.reader,d.Y(),d.Y(),d.Y(),d.Y(),d=d.Tb(16,!1),u=Cn(d)}).parse(i,!0),u}function yP(i,u,d){var v,y,w,T,P;return ae(function($){if($.g==1)return v=u,v.cryptoKey?$.A(2):L($,v.fetchKey(),3);if(y=v.iv,!y)for(y=Ie(new ArrayBuffer(16)),w=v.firstMediaSequenceNumber+d,T=y.byteLength-1;T>=0;T--)y[T]=w&255,w>>=8;return u.blockCipherMode=="CBC"?P={name:"AES-CBC",iv:y}:P={name:"AES-CTR",counter:y,length:64},$.return(o.crypto.subtle.decrypt(P,v.cryptoKey,i))})}function Nb(i,u,d,v,y){return i=Po(i,v,y),(u!=0||d!=null)&&(i.headers.Range=d?"bytes="+u+"-"+d:"bytes="+u+"-"),i}function Dq(i,u){var d=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 t0(function(){return Z2e(d)}),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 sr(function(){if(d.j&&d.g)if(d.j.presentationTimeline.W()){var v=d.j.presentationTimeline.Xb(),y=d.j.presentationTimeline.Gb();y-v>1?I2e(d.g.Z,v,y):iP(d.g.Z)}else iP(d.g.Z),d.u&&d.u.stop();else d.u&&d.u.stop()}),this.I=null,this.J=!1,this.K=new sr(function(){var v=d.g.video;!v.ended&&d.I&&(d.J=!0,v.currentTime=d.I,d.I=null)}),this.G=new Ue}l=Dq.prototype,l.destroy=function(){return this.l.destroy()};function Z2e(i){var u,d,v,y,w,T,P;return ae(function($){if($.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=[],d=_(i.h.values()),v=d.next();!v.done;v=d.next())y=v.value,Vf(y),u.push(eC(y)),y.ha&&(Yc(y.ha),y.ha=null);for(w=_(i.m.values()),T=w.next();!T.done;T=w.next())P=T.value,Yc(P);return L($,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,B($)})}l.configure=function(i){if(this.i=i,this.X=new sK({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&&(Yc(u.ha),u.ha=null),u=_(this.m.keys());for(var d=u.next();!d.done;d=u.next())d=d.value,Yc(this.m.get(d)),this.m.delete(d)}for(i.disableTextPrefetch&&(u=this.h.get(yn))&&u.ha&&(Yc(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(Yc(u.ha),u.ha=null),u=_(this.h.keys()),d=u.next();!d.done;d=u.next())d=this.h.get(d.value),d.ha?(Rq(d.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(Yc(d.ha),d.ha=null)):i.segmentPrefetchLimit>0&&(d.ha=_P(this,d.stream));i.disableAudioPrefetch||ike(this)};function J2e(i,u,d){i.j.presentationTimeline.W()||(i.aa=u,i.$=d)}l.start=function(i){var u=this;return ae(function(d){if(d.g==1)return L(d,rke(u,i||new Map),2);gi(u.l),u.N=!0,B(d)})};function Q2e(i,u){var d,v,y,w,T,P;ae(function($){switch($.g){case 1:return d=Nr,i.V++,v=i.V,F($,2),L($,rq(i.g.Z,d.Na),4);case 4:z($,3);break;case 2:y=q($),i.g&&i.g.onError(y);case 3:w=co(u.mimeType,u.codecs),zw(i.g.Z,w,i.j.sequenceMode,u.external),T=i.g.Z.aa,(T.isTextVisible()||i.i.alwaysStreamText)&&i.V==v&&(P=Zw(i,u),i.h.set(d.Na,P),aa(i,P,0)),B($)}})}function eke(i){var u=i.h.get(yn);u&&(Vf(u),eC(u).catch(function(){}),i.H=i.h.get(yn),i.h.delete(yn),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function Oq(i,u){for(var d=i.g.Ob()<0,v=_(i.h.values()),y=v.next();!y.done;y=v.next())y=y.value,y.ua&&y.ua.Id(d),y.ha&&y.ha.Id(d);for(v=_(i.m.values()),y=v.next();!y.done;y=v.next())y.value.Id(d);(d=i.h.get("video"))&&(v=d.stream)&&(u?(u=v.trickModeVideo)&&!d.Mc&&(m0(i,u,!1,0,!1),d.Mc=v):(u=d.Mc)&&(d.Mc=null,m0(i,u,!0,0,!1)))}function $q(i,u,d,v,y,w){d=d===void 0?!1:d,v=v===void 0?0:v,y=y===void 0?!1:y,w=w===void 0?!1:w,i.o=u,i.N&&(u.video&&m0(i,u.video,d,v,y,w),u.audio&&m0(i,u.audio,d,v,y,w))}function Xw(i,u){ae(function(d){if(d.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?d.A(2):L(d,u.createSegmentIndex(),2):d.return();m0(i,u,!0,0,!1),B(d)})}function tke(i){var u=i.h.get(yn);u&&m0(i,u.stream,!0,0,!0)}function nke(i,u){for(var d=_(i.M.entries()),v=d.next();!v.done;v=d.next()){var y=_(v.value);v=y.next().value,y=y.next().value,v.includes(u.type)&&(y(),i.M.delete(v))}}function m0(i,u,d,v,y,w){var T=i.h.get(u.type);T||u.type!=yn?T&&(T.Mc&&(u.trickModeVideo?(T.Mc=u,u=u.trickModeVideo):T.Mc=null),T.stream!=u||y)&&(i.m.has(u)?T.ha=i.m.get(u):T.ha&&K2e(T.ha,u),u.type==yn&&T.stream!=u&&(y=co(u.mimeType,u.codecs),zw(i.g.Z,y,i.j.sequenceMode,u.external)),!i.m.has(T.stream)&&T.stream.closeSegmentIndex&&(T.Ja?(y="("+T.type+":"+T.stream.id+")",i.M.has(y)||i.M.set(y,T.stream.closeSegmentIndex)):T.stream.closeSegmentIndex()),y=T.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,T.stream=u,T.ua=null,T.cg=!!w,u.dependencyStream?T.Ec=Zw(i,u.dependencyStream):T.Ec=null,Vq(i),y&&(T.pb=null,T.qc=null,T.nc=null,u.isAudioMuxedInVideo&&(u=null,T.type==="video"?u=i.h.get("audio"):T.type==="audio"&&(u=i.h.get("video")),u&&(eC(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,bP(i,u),Nq(i,u).catch(function(P){i.g&&i.g.onError(P)})))),d?T.Ub?T.Kd=!0:T.Ja?(T.ec=!0,T.ld=v,T.Kd=!0):(Vf(T),wP(i,T,!0,v).catch(function(P){i.g&&i.g.onError(P)})):T.Ja||T.qb||aa(i,T,0),Nq(i,T).catch(function(P){i.g&&i.g.onError(P)})):Q2e(i,u)}function Nq(i,u){var d,v,y;return ae(function(w){if(w.g==1)return u.Va?(d=u.stream,v=u.Va,d.segmentIndex?w.A(2):L(w,d.createSegmentIndex(),2)):w.return();if(w.g!=4)return y=d.dependencyStream,!y||y.segmentIndex?w.A(4):L(w,y.createSegmentIndex(),4);if(u.Va!=v||u.stream!=d)return w.return();var T=i.g.lc(),P=Gv(i.g.Z,u.type),$=u.stream.segmentIndex.find(u.La?u.La.endTime:T),U=$==null?null:u.stream.segmentIndex.get($);$=U?G5(U):null,U&&!$&&($=(U.endTime-U.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),$?((U=U.ba)&&($+=(U.endByte?U.endByte+1-U.startByte:null)||0),U=i.g.getBandwidthEstimate(),T=$*8/U<(P||0)-T-i.i.rebufferingGoal||u.Va.h.g>$):T=!0,T&&u.Va.abort(),B(w)})}l.bd=function(){if(this.g){for(var i=this.g.lc(),u=_(this.h.keys()),d=u.next();!d.done;d=u.next()){var v=d.value;d=this.h.get(v);var y;if((y=!this.J)&&(y=this.g.Z,v==yn?(y=y.h,y=y.g==null||y.h==null?!1:i>=y.g&&i0?new Yw(i.i.segmentPrefetchLimit,u,function(v,y,w){return Qw(v,y,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function ike(i){for(var u=i.i.segmentPrefetchLimit,d=i.i.prefetchAudioLanguages,v=_(i.j.variants),y=v.next(),w={};!y.done;w={Mb:void 0},y=v.next())if(w.Mb=y.value,w.Mb.audio)if(i.m.has(w.Mb.audio)){if(y=i.m.get(w.Mb.audio),Rq(y,u),!(u>0&&d.some((function(P){return function($){return Xg(P.Mb.audio.language,$)}})(w)))){var T=i.h.get(w.Mb.audio.type);y!==(T&&T.ha)&&Yc(y),i.m.delete(w.Mb.audio)}}else u<=0||!d.some((function(P){return function($){return Xg(P.Mb.audio.language,$)}})(w))||!(y=_P(i,w.Mb.audio))||(w.Mb.audio.segmentIndex||w.Mb.audio.createSegmentIndex(),i.m.set(w.Mb.audio,y))}l.updateDuration=function(){var i=Gg(),u=this.j.presentationTimeline.getDuration();u<1/0?(i&&(this.u&&this.u.stop(),iP(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 oke(i,u){var d,v,y,w,T,P,$,U,W;return ae(function(Y){switch(Y.g){case 1:if(gi(i.l),d=Nr,u.Ja||u.qb==null||u.Ub)return Y.return();if(u.qb=null,!u.ec){Y.A(2);break}return L(Y,wP(i,u,u.Kd,u.ld),3);case 3:return Y.return();case 2:if(nke(i,u),u.stream.segmentIndex){Y.A(4);break}return v=u.stream,F(Y,5),L(Y,u.stream.createSegmentIndex(),7);case 7:z(Y,6);break;case 5:return y=q(Y),L(Y,CP(i,u,y),8);case 8:return Y.return();case 6:if(v!=u.stream)return v.closeSegmentIndex&&v.closeSegmentIndex(),u.Ja||u.qb||aa(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),L(Y,u.Ec.stream.createSegmentIndex(),13);case 13:z(Y,9);break;case 11:q(Y);case 9:F(Y,14),w=ske(i,u),w!=null&&(aa(i,u,w),u.Zd=!1),z(Y,15);break;case 14:return T=q(Y),L(Y,CP(i,u,T),16);case 16:return Y.return();case 15:if(u.type===d.Na)return Y.return();if(P=[u],$=u.type===d.ka?d.Aa:d.ka,(U=i.h.get($))&&P.push(U),!i.N||!P.every(function(re){return re.endOfStream})){Y.A(0);break}return L(Y,i.g.Z.endOfStream(),18);case 18:gi(i.l),W=i.g.Z.getDuration(),W!=0&&W=w)return d/2;if(P=!u.ua,$=Bq(i,u,v,$),!$)return d;T=u.pb;var U=$.ba;T&&U&&Ab(U,T)&&(T.g=U.g),T=!1,P&&u.cg&&(T=!0,u.cg=!1),P=1/0,U=Array.from(i.h.values()),U=_(U);for(var W=U.next();!W.done;W=U.next())W=W.value,kP(W)||W.ua&&!W.ua.current()||(P=Math.min(P,W.La?W.La.endTime:v));return y>=P+i.j.presentationTimeline.h?d:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya($.startTime+.001),Ob(u.ha,$.startTime).catch(function(){})),Fb(i)&&dke(i,u,$)||(ake(i,u,v,$,T).catch(function(){}),u.Ec&&Fq(i,u.Ec,v,w)),null)}function Bq(i,u,d,v){if(u.ua)return(d=u.ua.current())&&u.La&&Math.abs(u.La.startTime-d.startTime)<.001&&(d=u.ua.next().value),d;if(u.La||v)return d=u.La?u.La.endTime:v,i=i.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(d,!1,i)),u.ua&&u.ua.next().value;v=i.j.sequenceMode||Fb(i)?0:i.i.inaccurateManifestTolerance;var y=Math.max(d-v,0);i=i.g.Ob()<0;var w=null;return v&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(y,!1,i)),w=u.ua&&u.ua.next().value),w||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(d,!1,i)),w=u.ua&&u.ua.next().value),w}function ake(i,u,d,v,y){var w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze,nt,mt;return ae(function(Ze){switch(Ze.g){case 1:if(w=Nr,T=u.stream,P=u.ua,u.Ja=!0,F(Ze,2),v.Jc()==2)throw new we(1,1,1011);return L(Ze,uke(i,u,v,y),4);case 4:return gi(i.l),i.F?Ze.return():($=T.mimeType=="video/mp4"||T.mimeType=="audio/mp4",U=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&U&&$&&(i.j.type!="HLS"||v.o)?(re=new Uint8Array(0),fe=le=!1,me=function(Ve){var dt,vt,ht;return ae(function(_t){switch(_t.g){case 1:if(le||(fe=!0,gi(i.l),i.F))return _t.return();if(F(_t,2),re=Xn(re,Ve),dt=!1,vt=0,new ti().box("mdat",function(St){vt=St.size+St.start,dt=!0}).parse(re,!1,!0),!dt){_t.A(4);break}return ht=re.subarray(0,vt),re=re.subarray(vt),L(_t,SP(i,u,d,T,v,ht,!0,y),5);case 5:u.ha&&u.ua&&Ob(u.ha,v.startTime,!0);case 4:z(_t,0);break;case 2:ve=q(_t),B(_t)}})},L(Ze,Bb(i,u,v,me),9)):(W=Bb(i,u,v),L(Ze,W,7)));case 7:return Y=Ze.h,gi(i.l),i.F?Ze.return():(gi(i.l),u.ec?(u.Ja=!1,aa(i,u,0),Ze.return()):L(Ze,SP(i,u,d,T,v,Y,!1,y),6));case 9:if(Re=Ze.h,ve)throw ve;if(fe){Ze.A(10);break}return le=!0,gi(i.l),i.F?Ze.return():u.ec?(u.Ja=!1,aa(i,u,0),Ze.return()):L(Ze,SP(i,u,d,T,v,Re,!1,y),10);case 10:u.ha&&u.ua&&Ob(u.ha,v.startTime,!0);case 6:if(gi(i.l),i.F)return Ze.return();u.La=v,P.next(),u.Ja=!1,u.ah=!1,Te=i.g.Z.Fc(),ze=Te[u.type],JSON.stringify(ze),u.ec||(nt=null,u.type===w.Aa?nt=i.h.get(w.ka):u.type===w.ka&&(nt=i.h.get(w.Aa)),nt&&nt.type==w.ka?i.g.wf(v,u.stream,nt.stream.isAudioMuxedInVideo):i.g.wf(v,u.stream,u.stream.codecs.includes(","))),Vf(u),aa(i,u,0),z(Ze,0);break;case 2:if(mt=q(Ze),gi(i.l,mt),i.F)return Ze.return();if(u.Ja=!1,mt.code==7001)u.Ja=!1,Vf(u),aa(i,u,0),Ze.A(0);else if(u.type==w.Na&&i.i.ignoreTextStreamFailures)i.h.delete(w.Na),Ze.A(0);else return mt.code==3017?L(Ze,lke(i,u,mt),0):(u.Zd=!0,mt.category==1&&u.ha&&$b(u.ha,v),mt.severity=2,L(Ze,CP(i,u,mt),0))}})}function Fq(i,u,d,v){var y,w,T,P,$,U,W,Y,re,le,fe;return ae(function(ve){switch(ve.g){case 1:for(y=u.stream,P=(T=(w=y.segmentIndex)&&w.Vb(d))&&T.next().value;P&&i.O.includes(P.startTime);)P=T&&T.next().value;if(!P){ve.A(0);break}if($=P.ba,!$||Ab($,u.pb)){ve.A(3);break}return u.pb=$,F(ve,4),L(ve,Bb(i,u,$),6);case 6:U=ve.h;var me=i.g.Z;me.H&&Jr(me.H,U,0,y),i.O=[],z(ve,3);break;case 4:throw W=q(ve),u.pb=null,W;case 3:if(u.La&&u.La==P){ve.A(0);break}return u.La=P,F(ve,8),L(ve,Bb(i,u,P),10);case 10:Y=ve.h,me=i.g.Z,me.H&&Jr(me.H,Y,0,y),i.O.push(P.startTime),z(ve,9);break;case 8:throw re=q(ve),u.La=null,re;case 9:if(le=Math.max.apply(Math,[0].concat(A(i.O))),fe=i.g.lc(),fe+v>le)return L(ve,Fq(i,u,P.startTime,v),0);ve.A(0)}})}function lke(i,u,d){var v,y,w,T,P,$,U;return ae(function(W){switch(W.g){case 1:if(v=Array.from(i.h.values()),v.some(function(Y){return Y!=u&&Y.ah})){W.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return y=EP(i,d),i.g.disableStream(u.stream,y)||aa(i,u,4),W.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,W.A(3);break}if(w>4){i.C-=.04,W.A(3);break}if(T=EP(i,d),P=i.g.disableStream(u.stream,T),!P){u.Zd=!0,i.F=!0,i.g.onError(d),W.A(5);break}return i.C=1,$=i.g.lc(),L(W,Jw(i,u,$),5);case 5:return W.return();case 3:return u.ah=!0,U=i.g.lc(),L(W,Jw(i,u,U),2);case 2:aa(i,u,4),B(W)}})}function uke(i,u,d,v){var y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze;return ae(function(nt){switch(nt.g){case 1:if(y=Nr,w=u.La==null,T=[],P=Math.max(0,Math.max(d.appendWindowStart,i.aa)-.1),$=Math.min(d.appendWindowEnd,i.$)+.1,U=d.codecs||u.stream.codecs,W=Zh(U),Y=_l(d.mimeType||u.stream.mimeType),re=d.timestampOffset,re==u.kf&&P==u.qc&&$==u.nc&&W==u.hf&&Y==u.jf){nt.A(2);break}if(le=u.hf&&u.jf&&O2e(i.g.Z,u.type,Y,U,nC(i)),!le){nt.A(3);break}if(fe=null,u.type===y.Aa?fe=i.h.get(y.ka):u.type===y.ka&&(fe=i.h.get(y.Aa)),!fe){nt.A(3);break}return L(nt,eC(fe).catch(function(){}),5);case 5:fe.pb=null,fe.qc=null,fe.nc=null,bP(i,fe);case 3:return L(nt,jq(i,u,re,P,$,d,W,Y),2);case 2:return Ab(d.ba,u.pb)||(u.pb=d.ba,d.l&&d.ba&&(ve=Bb(i,u,d.ba),me=function(){var mt,Ze,Ve,dt,vt,ht,_t,St,$t,Nt,Ct;return ae(function(At){switch(At.g){case 1:return F(At,2),L(At,ve,4);case 4:return mt=At.h,gi(i.l),Ze=null,Ve=new Map,dt={projection:null,hfov:null},u.stream&&(vt=u.stream.videoLayout)&&(ht=vt.split("/"),ht.includes("PROJ-RECT")?dt.projection="rect":ht.includes("PROJ-EQUI")?dt.projection="equi":ht.includes("PROJ-HEQU")?dt.projection="hequ":ht.includes("PROJ-PRIM")?dt.projection="prim":ht.includes("PROJ-AIV")&&(dt.projection="hequ")),_t=new ti,_t.box("moov",Zn).box("trak",Zn).box("mdia",Zn).S("mdhd",function(zt){Ze=$w(zt.reader,zt.version).timescale}).box("hdlr",function(zt){switch(zt=zt.reader,zt.skip(8),zt.Yc()){case"soun":Ve.set(y.ka,Ze);break;case"vide":Ve.set(y.Aa,Ze)}Ze=null}),u.type!==y.Aa||dt.projection||_t.box("minf",Zn).box("stbl",Zn).S("stsd",Nf).box("encv",Sl).box("avc1",Sl).box("avc3",Sl).box("hev1",Sl).box("hvc1",Sl).box("dvav",Sl).box("dva1",Sl).box("dvh1",Sl).box("dvhe",Sl).box("dvc1",Sl).box("dvi1",Sl).box("vexu",Zn).box("proj",Zn).S("prji",function(zt){zt=zt.reader.Yc(),dt.projection=zt}).box("hfov",function(zt){zt=zt.reader.U()/1e3,dt.hfov=zt}),_t.parse(mt,!0,!0),u.type===y.Aa&&cke(i,dt),Ve.has(u.type)?d.ba.timescale=Ve.get(u.type):Ze!=null&&(d.ba.timescale=Ze),St=u.stream.segmentIndex,St instanceof zi&&($t=V2e(St,d.startTime)),Nt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(At,i.g.Oh(u.type,mt),5);case 5:return L(At,Hw(i.g.Z,u.type,mt,null,u.stream,Nt,u.bd,v,!1,!1,$t),6);case 6:z(At,0);break;case 2:throw Ct=q(At),u.pb=null,Ct}})},Re=d.startTime,w&&(Te=Gv(i.g.Z,u.type),Te!=null&&(Re=Te)),i.g.Ck(Re,d.ba),T.push(me()))),ze=u.La?u.La.i:-1,d.i!=ze&&T.push(A2e(i.g.Z,u.type,d.startTime)),L(nt,Promise.all(T),0)}})}function jq(i,u,d,v,y,w,T,P){var $,U,W,Y,re;return ae(function(le){switch(le.g){case 1:if($=Nr,U=nC(i),F(le,2),u.qc=v,u.nc=y,T&&(u.hf=T),P&&(u.jf=P),u.kf=d,W=i.j.sequenceMode||i.j.type=="HLS",Y=null,u.type===$.Aa?Y=i.h.get($.ka):u.type===$.ka&&(Y=i.h.get($.Aa)),!(Y&&Y.stream&&Y.stream.isAudioMuxedInVideo)){le.A(4);break}return L(le,iq(i.g.Z,Y.type,d,v,y,W,Y.stream.mimeType,Y.stream.codecs,U),4);case 4:return L(le,iq(i.g.Z,u.type,d,v,y,W,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,U),6);case 6:z(le,0);break;case 2:throw re=q(le),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,re}})}function SP(i,u,d,v,y,w,T,P){T=T===void 0?!1:T,P=P===void 0?!1:P;var $,U,W,Y;return ae(function(re){switch(re.g){case 1:return $=v.closedCaptions&&v.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(U=v.mimeType=="video/mp4"||v.mimeType=="audio/mp4",W=null,y.ba&&(W=y.ba.timescale),U&&W&&v.type==="video"&&i.j.type=="DASH"&&new ti().box("moof",Zn).box("traf",Zn).S("tfdt",function(le){var fe,ve,me,Re,Te,ze;return ae(function(nt){return fe=Ow(le.reader,le.version),ve=fe.baseMediaDecodeTime,ve?(me=-ve/W,Re=Number(u.kf)||0,Re$&&(Y=Math.max(P-w,U-$-T)),Y<=$?re.return():L(re,i.g.Z.remove(u.type,T,T+Y,y),2));if(re.g!=4)return gi(i.l),i.H?L(re,Jw(i,i.H,d),4):re.A(0);gi(i.l),B(re)})}function kP(i){return i&&i.type==yn&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function Bb(i,u,d,v){var y,w,T,P,$;return ae(function(U){switch(U.g){case 1:if(y=d.Yb())return U.return(y);if(w=null,u.ha){var W=u.ha,Y=W.g;d instanceof Ka&&(Y=W.j),Y.has(d)?(W=Y.get(d),v&&(W.wh=v),w=W.je):w=null}return w||(w=Qw(d,u.stream,v||null,i.i.retryParameters,i.g.tc)),T=0,u.ua&&(T=u.ua.h),u.Va=w,L(U,w.promise,2);case 2:if(P=U.h,u.Va=null,$=P.data,!d.aesKey){U.A(3);break}return L(U,yP($,d.aesKey,T),4);case 4:$=U.h;case 3:return U.return($)}})}function Qw(i,u,d,v,y,w){w=w===void 0?!1:w;var T=i instanceof Mn?i:void 0,P=T?1:0;return i=Nb(i.P(),i.startByte,i.endByte,v,d),i.contentType=u.type,y.request(Pu,i,{type:P,stream:u,segment:T,isPreload:w})}function wP(i,u,d,v){var y,w;return ae(function(T){if(T.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)&&Yc(u.ha),v?(y=i.g.lc(),w=i.g.Z.getDuration(),L(T,i.g.Z.remove(u.type,y+v,w),3)):L(T,rq(i.g.Z,u.type),4);if(T.g!=3)return gi(i.l),d?L(T,i.g.Z.flush(u.type),3):T.A(3);gi(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||aa(i,u,0),B(T)})}function aa(i,u,d){var v=u.type;(v!=yn||i.h.has(v))&&(u.qb=new gb(function(){var y;return ae(function(w){if(w.g==1)return F(w,2),L(w,oke(i,u),4);if(w.g!=2)return z(w,0);y=q(w),i.g&&i.g.onError(y),B(w)})}).ia(d))}function Vf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function eC(i){return ae(function(u){return i.Va?L(u,i.Va.abort(),0):u.A(0)})}function CP(i,u,d){var v;return ae(function(y){if(y.g==1)return d.code==3024?(u.Ja=!1,Vf(u),aa(i,u,0),y.return()):L(y,aK(i.X),2);if(gi(i.l),d.category===1&&d.code!=1003){if(u.Mc)return Oq(i,!1),y.return();v=EP(i,d),d.handled=i.g.disableStream(u.stream,v),d.handled&&(d.severity=1)}(!d.handled||d.code!=1011)&&i.g.onError(d),d.handled||i.i.failureCallback(d),B(y)})}function EP(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function tC(i,u){u=u===void 0?!1:u;var d,v,y,w,T,P;return ae(function($){if($.g==1){if(d=Date.now()/1e3,v=i.i.minTimeBetweenRecoveries,!u){if(!i.i.allowMediaSourceRecoveries||d-i.R1)return!0}else if(!u.Jf()){for(u=_(i.h.keys()),d=u.next();!d.done;d=u.next())if(d=i.h.get(d.value),d.type!==Nr.Na&&(d=d.stream)&&d.fullMimeTypes&&d.fullMimeTypes.size>1){for(i=new Set,u=_(d.fullMimeTypes),d=u.next();!d.done;d=u.next())i.add(fb(d.value));return i.size>1}}return!1}function Vq(i){i.G.Pa(),Fb(i)&&(i.G.D(i.g.video,"waiting",function(){return xP(i)}),i.G.D(i.g.video,"timeupdate",function(){return xP(i)}))}function xP(i){if(Fb(i)){i.K.stop();var u=i.g.lc(),d=i.h.get("video")||i.h.get("audio");d&&(d=d.pb)&&d.g!==null&&(u=d.g-u,u<0||u>1||(i.I=d.g+.1,i.K.ia(u)))}}function dke(i,u,d){if(u.type===yn)return!1;var v=u.pb;if(!v)return!1;var y=d.ba;if(d=v.g!==y.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(v.encrypted||y.encrypted||(d=!1),v.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&v.encrypted==y.encrypted&&(d=!1),i.i.crossBoundaryStrategy==="keep"&&v.mimeType&&y.mimeType){var w=Ws(Ga(v.mimeType)),T=Ws(Ga(v.mimeType));v.mimeType==y.mimeType&&w==T&&(d=!1)}return d&&(i.J||u.bd)&&(i.J=!1,tC(i,!0).then(function(){var P=new Map().set("oldEncrypted",v.encrypted).set("newEncrypted",y.encrypted);i.g.onEvent(new vn("boundarycrossed",P))})),d}function nC(i,u){function d(w){if(w.fullMimeTypes&&w.fullMimeTypes.size>1&&i.h.has(w.type)){var T=i.h.get(w.type),P=Gv(i.g.Z,T.type),$=i.g.lc();(T=Bq(i,T,$,P))&&T.codecs&&T.mimeType&&(w.codecs=T.codecs,w.mimeType=T.mimeType)}}u=u===void 0?!1:u;var v=new Map,y=i.o.audio;return y&&(d(y),v.set("audio",y)),(y=i.o.video)&&(d(y),v.set("video",y)),u&&i.B&&v.set(yn,i.B),v}function rC(){}function TP(i,u,d,v,y){var w=y in v,T=w?d.constructor==Object&&Object.keys(v).length==0:d.constructor==Object&&Object.keys(d).length==0,P=w||T,$=!0,U;for(U in u){var W=y+"."+U,Y=w?v[y]:d[U];P||U in d?u[U]===void 0?Y===void 0||P?delete i[U]:i[U]=on(Y):T?i[U]=u[U]:Y.constructor==Object&&u[U]&&u[U].constructor==Object?(i[U]||(i[U]=on(Y)),W=TP(i[U],u[U],Y,v,W),$=$&&W):typeof u[U]!=typeof Y||u[U]==null||typeof u[U]!="function"&&u[U].constructor!=Y.constructor?(qe("Invalid config, wrong type for "+W),$=!1):typeof d[U]=="function"&&d[U].length!=u[U].length?(st("Unexpected number of arguments for "+W),i[U]=u[U]):i[U]=Array.isArray(i[U])?u[U].slice():u[U]:(qe("Invalid config, unrecognized key "+W),$=!1)}return $}function iC(i,u){for(var d={},v=d,y=0,w=0;y=i.indexOf(".",y),!(y<0);)(y==0||i[y-1]!="\\")&&(w=i.substring(w,y).replace(/\\\./g,"."),v[w]={},v=v[w],w=y+1),y+=1;return v[i.substring(w).replace(/\\\./g,".")]=u,d}function g0(i,u){return i&&u}function Uq(i,u){function d(w){for(var T=_(Object.keys(w)),P=T.next();!P.done;P=T.next())if(P=P.value,!(w[P]instanceof HTMLElement))if(y(w[P])&&Object.keys(w[P]).length===0)delete w[P];else{var $=w[P];Array.isArray($)&&$.length===0||typeof w[P]=="function"?delete w[P]:y(w[P])&&(d(w[P]),Object.keys(w[P]).length===0&&delete w[P])}}function v(w,T){return Object.keys(w).reduce(function(P,$){var U=w[$];return T.hasOwnProperty($)?U instanceof HTMLElement&&T[$]instanceof HTMLElement?U.isEqualNode(T[$])||(P[$]=U):y(U)&&y(T[$])?(U=v(U,T[$]),(Object.keys(U).length>0||!y(U))&&(P[$]=U)):Array.isArray(U)&&Array.isArray(T[$])?Pt(U,T[$])||(P[$]=U):Number.isNaN(U)&&Number.isNaN(T[$])||U!==T[$]&&(P[$]=U):P[$]=U,P},{})}function y(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=v(i,u),d(i),i}Ke("shaka.util.ConfigUtils",rC),rC.getDifferenceFromConfigObjects=Uq,rC.convertToConfigObject=iC,rC.mergeConfigObjects=TP,Ke("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function qa(){}function zq(i){return i=Xt(i),new qr(i).Db}function jb(i,u,d){function v(P){tt(w).setUint32(T,P.byteLength,!0),T+=4,w.set(Ie(P),T),T+=P.byteLength}if(!d||!d.byteLength)throw new we(2,6,6015);var y;typeof u=="string"?y=sn(u,!0):y=u,i=Xt(i),i=sn(i,!0);var w=new Uint8Array(12+i.byteLength+y.byteLength+d.byteLength),T=0;return v(i),v(y),v(d),w}function AP(i,u,d){return u!=="skd"?i:(u=d.serverCertificate,d=Xt(i).split("skd://").pop(),jb(i,d,u))}function oC(i,u){i===2&&(i=u.drmInfo)&&Cw(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}Ke("shaka.drm.FairPlay",qa),qa.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&Cw(i.keySystem)){try{var d=rt(u.data)}catch{return}if(i=!1,d=d.trim(),d.substr(0,5)===""&&d.substr(-6)===""&&(d=d.slice(5,-6),i=!0),!i)try{var v=JSON.parse(d);v.ckc&&(d=v.ckc,i=!0),v.CkcMessage&&(d=v.CkcMessage,i=!0),v.License&&(d=v.License,i=!0)}catch{}i&&(u.data=Se(nr(d)))}},qa.muxFairPlayRequest=function(i,u){oC(i,u)},qa.expressplayFairPlayRequest=function(i,u){if(i===2){var d=u.drmInfo;d&&Cw(d.keySystem)&&oC(i,u)}},qa.conaxFairPlayRequest=function(i,u){oC(i,u)},qa.ezdrmFairPlayRequest=function(i,u){oC(i,u)},qa.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&Cw(i.keySystem)&&(i=Ie(u.body),i=Un(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Ut("spc="+i))},qa.muxInitDataTransform=function(i,u,d){return AP(i,u,d)},qa.expressplayInitDataTransform=function(i,u,d){return AP(i,u,d)},qa.conaxInitDataTransform=function(i,u,d){if(u!=="skd")return i;u=d.serverCertificate,d=Xt(i).split("skd://").pop().split("?").shift(),d=o.atob(d);var v=new ArrayBuffer(d.length*2);v=it(v);for(var y=0,w=d.length;y2||y.channelsCount>2)&&v.channelsCount!=y.channelsCount||v.spatialAudio!==y.spatialAudio||u&&!Hq(v,y))&&Wq(v.roles,y.roles)&&v.groupId===y.groupId)}return!v&&(v=d.video&&i.video)&&(d=d.video,v=i.video,v=!((!u||Hq(d,v))&&Wq(d.roles,v.roles))),v?!1:(this.g.add(i),!0)},sC.prototype.values=function(){return this.g.values()};function Hq(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(v){return Zh(v)}),u=u.codecs.split(",").map(function(v){return Zh(v)}),i.length!=u.length))return!1;i.sort(),u.sort();for(var d=0;du)}).sort(function(d,v){return d.audio||v.audio?d.audio?v.audio?(v.audio.channelsCount||0)-(d.audio.channelsCount||0):1:-1:0})}function yke(i,u){if(u=="AUTO"){var d=i.some(function(v){return!!(v.video&&v.video.hdr&&v.video.hdr=="HLG")});u=Le().sd(d)}return i.filter(function(v){return!(v.video&&v.video.hdr&&v.video.hdr!=u)})}function bke(i,u){return i.filter(function(d){return!(d.video&&d.video.videoLayout&&d.video.videoLayout!=u)})}function _ke(i,u){return i.filter(function(d){return!(d.audio&&d.audio.spatialAudio!=u)})}function Ske(i,u){return i.filter(function(d){return!(d.audio&&d.audio.codecs!=u)})}function aC(){}function y0(){var i=1/0,u=Le();navigator.connection&&navigator.connection.saveData&&(i=360);var d={retryParameters:fc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(P,$,U){return o.shakaMediaKeysPolyfill==="apple"&&$=="skd"&&($=U.serverCertificate,U=zq(P),P=jb(P,U,$)),P},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},v="reload";oc()&&u.Pc()&&(v="smooth");var y={retryParameters:fc(),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:lC,manifestPreprocessorTXml:uC,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:lC,manifestPreprocessorTXml:uC,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(P){return ae(function($){return $.return(P)})},downloadSizeCallback:function(P){var $;return ae(function(U){return U.g==1?navigator.storage&&navigator.storage.estimate?L(U,navigator.storage.estimate(),3):U.return(!0):($=U.h,U.return($.usage+P<$.quota*.95))})},progressCallback:function(P,$){return g0([P,$])},usePersistentLicense:!0,numberOfParallelDownloads:5},T={drm:d,manifest:y,streaming:{retryParameters:fc(),failureCallback:function(P){return g0([P])},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!0,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16e3},mediaSource:{codecSwitchingStrategy:v,addExtraFeaturesToSourceBuffer:function(P){return g0([P],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(P,$){return g0([P,$])},dispatchAllEmsgBoxes:!1,useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:w,abrFactory:function(){return new Ui},adaptationSetCriteriaFactory:function(){return new(Function.prototype.bind.apply(Vb,[null].concat(A(xe.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:i,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:5,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredAudioRole:"",preferredVideoRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1,targets:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,disableDASHInterstitial:!1,allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:1/0,preloadPrevItem:!0,repeatMode:0}};return w.trackSelectionCallback=function(P){return ae(function($){return $.return(kke(P,T.preferredAudioLanguage,T.preferredVideoHdrLevel))})},u.Wa(T)}function Gq(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}}function Uf(i,u,d){var v={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return TP(i,u,d||y0(),v,"")}function kke(i,u,d){var v=d;v=="AUTO"&&(d=i.some(function(P){return!!(P.hdr&&P.hdr=="HLG")}),v=Le().sd(d));var y=i.filter(function(P){return!(P.type!="variant"||P.hdr&&P.hdr!=v)});d=[];var w=gw(u,y.map(function(P){return P.language}));w&&(d=y.filter(function(P){return Br(P.language)==w})),d.length==0&&(d=y.filter(function(P){return P.primary})),d.length==0&&(y.map(function(P){return P.language}),d=y);var T=d.filter(function(P){return P.height&&P.height<=480});for(T.length&&(T.sort(function(P,$){return $.height-P.height}),d=T.filter(function(P){return P.height==T[0].height})),u=[],d.length&&(y=Math.floor(d.length/2),d.sort(function(P,$){return P.bandwidth-$.bandwidth}),u.push(d[y])),i=_(i),d=i.next();!d.done;d=i.next())d=d.value,d.type!=yn&&d.type!="image"||u.push(d);return u}function lC(i){return g0([i],i)}function uC(i){return g0([i],i)}Ke("shaka.util.PlayerConfiguration",aC),aC.mergeConfigObjects=Uf,aC.createDefaultForLL=Gq,aC.createDefault=y0;function wke(){this.g=null,this.h=[]}function IP(i,u){var d=0;i.g&&i.g.state==u&&(d+=i.g.duration),i=_(i.h);for(var v=i.next();!v.done;v=i.next())v=v.value,d+=v.state==u?v.duration:0;return d}function Cke(i){function u(w){return{timestamp:w.timestamp,state:w.state,duration:w.duration}}for(var d=[],v=_(i.h),y=v.next();!y.done;y=v.next())d.push(u(y.value));return i.g&&d.push(u(i.g)),d}function Eke(){this.i=this.h=null,this.g=[]}function LP(i,u,d){i.i!=u&&(i.i=u,i.g.push({timestamp:Date.now()/1e3,id:u.id,type:"text",fromAdaptation:d,bandwidth:null}))}function cC(){this.C=this.X=NaN,this.l="",this.j=this.ni=this.u=this.B=this.K=this.F=this.o=this.m=this.J=this.G=this.i=this.T=this.V=this.N=this.O=this.R=NaN,this.M=0,this.H=this.I=NaN,this.g=new wke,this.h=new Eke}function xke(i,u,d){i.R=u,i.O=d}function Kq(i,u,d){i.X=u,i.C=d}function Tke(i,u){i.i=isNaN(i.i)?u:Math.max(i.i,u)}function qq(i,u){i.j=isNaN(i.j)?u:i.j+u}function Ake(i){var u=i.X,d=i.C,v=i.l,y=i.B,w=i.O,T=i.R,P=i.N,$=i.V,U=i.T,W=i.u,Y=i.i,re=i.G,le=i.J,fe=i.m,ve=IP(i.g,"playing"),me=IP(i.g,"paused"),Re=IP(i.g,"buffering"),Te=i.o,ze=i.F,nt=i.K,mt=i.ni,Ze=i.j,Ve=i.M,dt=i.I,vt=i.H,ht=Cke(i.g),_t=[];i=_(i.h.g);for(var St=i.next();!St.done;St=i.next())St=St.value,_t.push({timestamp:St.timestamp,id:St.id,type:St.type,fromAdaptation:St.fromAdaptation,bandwidth:St.bandwidth});return{width:u,height:d,currentCodecs:v,streamBandwidth:y,decodedFrames:w,droppedFrames:T,corruptedFrames:P,stallsDetected:$,gapsJumped:U,estimatedBandwidth:W,completionPercent:Y,loadLatency:re,manifestTimeSeconds:le,drmTimeSeconds:fe,playTime:ve,pauseTime:me,bufferingTime:Re,licenseTime:Te,liveLatency:ze,maxSegmentDuration:nt,manifestSizeBytes:mt,bytesDownloaded:Ze,nonFatalErrorCount:Ve,manifestPeriodCount:dt,manifestGapCount:vt,stateHistory:ht,switchHistory:_t}}function Mu(i,u,d,v){Fr.call(this),this.N=i,this.V=u,this.Da=v.networkingEngine,this.m=d,this.C=null,this.ya=0,this.Sa=v.md,this.G=v.vk,this.Ta=v.wk,this.g=v.config,this.l=this.H=this.h=null,this.qa=!1,this.I=v.Hk,this.wa=!1,this.i=null,this.aa=!1,this.u=null,this.M=new Map,this.xa=!1,this.Fa=v.Gk,this.X=new cC,this.ma=new ei,this.B=new ei,this.O=null,this.j=!1,this.$=v.ij,this.T=this.o=null,this.R=!1,this.K=[],this.J=[],this.F=!0}E(Mu,Fr);function Ub(i,u,d){(i=u?i.J:i.K)?i.push(d):d()}function Ike(i){if(i.J)for(var u=_(i.J),d=u.next();!d.done;d=u.next())d=d.value,d();i.J=null}function Yq(i,u){if(i.O=u,i.R=!0,i.K){u=_(i.K);for(var d=u.next();!d.done;d=u.next())d=d.value,d()}i.K=null}l=Mu.prototype,l.getStartTime=function(){return this.m},l.rd=function(){return this.N},l.Hg=function(){return this.h};function Lke(i){return i.wa=!0,i.I}l.getStats=function(){return this.X};function Pke(i){return i.aa=!0,i.i}l.Rj=function(){return this.o?$v(this.o):null},l.Qj=function(){return this.T?Nv(this.T):null};function Rke(i){return i.xa=!0,i.M}l.start=function(){var i=this;(function(){var u;return ae(function(d){switch(d.g){case 1:return L(d,Promise.resolve(),2);case 2:return F(d,3),L(d,Mke(i),5);case 5:if(Kv(i),o.shakaMediaKeysPolyfill==="webkit"){d.A(6);break}return L(d,Xq(i),7);case 7:Kv(i);case 6:if(!i.$){d.A(8);break}return L(d,Oke(i),9);case 9:Kv(i);case 8:if(!i.$||!i.i){d.A(10);break}return L(d,NSe(i.i),11);case 11:Kv(i);case 10:i.B.resolve(),z(d,0);break;case 3:u=q(d),u instanceof we&&(u.code==7001||u.code==7003)||i.B.reject(u),B(d)}})})()},l.dispatchEvent=function(i){return this.O?this.O.dispatchEvent(i):Fr.prototype.dispatchEvent.call(this,i)},l.onError=function(i){i.severity===2&&(this.B.reject(i),this.destroy());var u=new Map().set("detail",i);u=new vn("error",u),this.dispatchEvent(u),u.defaultPrevented&&(i.handled=!0)};function Kv(i){if(i.j)throw new we(2,7,7003)}function PP(i,u){i.dispatchEvent(new vn("onstatechange",new Map().set("state",u)))}function Mke(i){var u,d,v,y,w,T;return ae(function(P){switch(P.g){case 1:if(PP(i,"manifest-parser"),i.l||(i.H=NK(i.N,i.V),i.l=i.H(),i.l.configure(i.g.manifest,function(){return i.F})),u=Date.now()/1e3,PP(i,"manifest"),i.h){P.A(2);break}return L(P,i.l.start(i.N,i.Ta),3);case 3:return i.h=P.h,Jq(i.h),L(P,Dke(i),2);case 2:return i.ma.resolve(),d=new vn("manifestparsed",void 0),L(P,Promise.resolve(),5);case 5:if(i.dispatchEvent(d),i.h.variants.length==0)throw new we(2,4,4036);if(Jq(i.h),v=RK(i.G,i.h),!v){P.A(6);break}return y=new vn("trackschanged",void 0),L(P,Promise.resolve(),7);case 7:Kv(i),i.dispatchEvent(y);case 6:w=Date.now()/1e3,T=w-u,i.X.J=T,B(P)}})}function Xq(i,u){var d,v,y,w;return ae(function(T){switch(T.g){case 1:return!i.h||i.i?T.return():(PP(i,"drm-engine"),i.ya=Date.now()/1e3,i.i=i.Sa(),i.G.h=i.i,i.i.configure(i.g.drm,function(){return i.F}),d=Sw(i.h.variants),v=!0,i.h&&i.h.presentationTimeline&&(v=i.h.presentationTimeline.W()),L(T,bK(i.i,d,i.h.offlineSessionIds,v),2));case 2:if(Kv(i),!u){T.A(3);break}return L(T,i.i.fc(u),4);case 4:Kv(i);case 3:return L(T,PK(i.G,i.h),5);case 5:if(y=T.h,!y){T.A(0);break}return w=new vn("trackschanged",void 0),L(T,Promise.resolve(),7);case 7:i.dispatchEvent(w),B(T)}})}l.configure=function(i,u){i=iC(i,u),Uf(this.g,i)},l.getConfiguration=function(){return on(this.g)};function Dke(i){var u,d,v,y,w;return ae(function(T){if(i.C||(i.C=i.g.adaptationSetCriteriaFactory(),i.C.configure({language:i.g.preferredAudioLanguage,role:i.g.preferredAudioRole,videoRole:i.g.preferredVideoRole,channelCount:i.g.preferredAudioChannelCount,hdrLevel:i.g.preferredVideoHdrLevel,spatialAudio:i.g.preferSpatialAudio,videoLayout:i.g.preferredVideoLayout,audioLabel:i.g.preferredAudioLabel,videoLabel:i.g.preferredVideoLabel,codecSwitchingStrategy:i.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:i.g.preferredAudioCodecs,preferredAudioChannelCount:i.g.preferredAudioChannelCount})),i.h.variants.length!=1&&i.h.type!="HLS"||(u=Zq(i),!u))return T.A(0);for(d=[],v=_([u.video,u.audio]),y=v.next();!y.done;y=v.next())(w=y.value)&&!w.segmentIndex&&d.push(w.createSegmentIndex());return d.length>0?L(T,Promise.all(d),0):T.A(0)})}function Oke(i){var u,d,v,y,w;return ae(function(T){return!i.o&&(u=Zq(i))&&(i.o=u),i.o?(d=i.h.presentationTimeline.W(),v=[],y=i.o,y.video&&v.push(RP(i,y.video,d)),y.audio&&v.push(RP(i,y.audio,d)),(w=Zg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&tK(y.audio,w,i.g)&&(v.push(RP(i,w,d)),i.T=w),L(T,Promise.all(v),0)):T.A(0)})}function Zq(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=Sw(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function RP(i,u,d){var v,y,w,T,P;return ae(function($){return $.g==1?(v=i.g.streaming.segmentPrefetchLimit||2,y=new Yw(v,u,function(U,W,Y){return Qw(U,W,Y||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,y),u.segmentIndex?$.A(2):L($,u.createSegmentIndex(),2)):(w=typeof i.m=="number"?i.m:0,T=u.segmentIndex.Vb(w),P=null,T&&(P=T.current(),P||(P=T.next().value)),P||(P=qc(u.segmentIndex)),P?d?P.ba?L($,Lq(y,P.ba),0):$.A(0):L($,Ob(y,P.startTime),0):$.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,d,v;return ae(function(y){if(y.g==1)return i.j=!0,!i.l||i.qa?y.A(2):L(y,i.l.stop(),2);if(y.g!=4)return i.u&&i.u.release(),i.I&&!i.wa&&i.I.release(),!i.i||i.aa?y.A(4):L(y,i.i.destroy(),4);if(i.M.size>0&&!i.xa)for(u=_(i.M.values()),d=u.next();!d.done;d=u.next())v=d.value,Yc(v);B(y)})};function Jq(i){function u(d){return d.video&&d.audio||d.video&&d.video.codecs.includes(",")}i.variants.some(u)&&(i.variants=i.variants.filter(u))}Ke("shaka.media.PreloadManager",Mu),Mu.prototype.destroy=Mu.prototype.destroy,Mu.prototype.waitForFinish=Mu.prototype.ll,Mu.prototype.getPrefetchedTextTrack=Mu.prototype.Qj,Mu.prototype.getPrefetchedVariantTrack=Mu.prototype.Rj;function qv(i,u){Fr.call(this);var d=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:b0,Uc:function(v,y){return zf(d,"enter",v,y)}},{kd:zb,jd:b0,Uc:function(v,y){return zf(d,"enter",v,y)}},{kd:Hb,jd:b0,Uc:function(v,y){return zf(d,"enter",v,y)}},{kd:b0,jd:zb,Uc:function(v,y){return zf(d,"exit",v,y)}},{kd:b0,jd:Hb,Uc:function(v,y){return zf(d,"exit",v,y)}},{kd:zb,jd:Hb,Uc:function(v,y){y?zf(d,"skip",v,y):(zf(d,"enter",v,y),zf(d,"exit",v,y))}},{kd:Hb,jd:zb,Uc:function(v,y){return zf(d,"skip",v,y)}}],this.h=new Ue,this.h.D(this.i,"regionremove",function(v){d.g.delete(v.region)})}E(qv,Fr),qv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Fr.prototype.release.call(this)},qv.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var d=_(this.i.h.values()),v=d.next();!v.done;v=d.next()){v=v.value;var y=this.g.get(v),w=iv.endTime?Hb:b0;this.g.set(v,w);for(var T=_(this.m),P=T.next();!P.done;P=T.next())P=P.value,P.kd==y&&P.jd==w&&P.Uc(v,u)}}};function zf(i,u,d,v){u=new vn(u,new Map([["region",d],["seeking",v]])),i.dispatchEvent(u)}var zb=1,b0=2,Hb=3;function Yv(i,u,d){var v,y,w,T,P,$,U;return ae(function(W){switch(W.g){case 1:return v=_0(i),(y=$ke.get(v))?W.return(y):(w=0,T=Po([i],d),F(W,2),T.method="HEAD",L(W,u.request(w,T).promise,4));case 4:P=W.h,y=P.headers["content-type"],z(W,3);break;case 2:if($=q(W),!$||$.code!=1002&&$.code!=1001){W.A(3);break}return T.method="GET",L(W,u.request(w,T).promise,6);case 6:U=W.h,y=U.headers["content-type"];case 3:return W.return(y?y.toLowerCase().split(";").shift():"")}})}function _0(i){return i=new qr(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var $ke=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 rp={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"},Qq=_(Object.keys(rp)),MP=Qq.next();!MP.done;MP=Qq.next()){var eY=MP.value;rp[eY.toLowerCase()]=rp[eY]}function tY(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(T){return tY(T,i)}).join("");if(!i.payload)return i.payload;var d=[],v=i.fontWeight>=Kg,y=i.fontStyle==qg,w=i.textDecoration.includes(Pf);return v&&d.push(["b"]),y&&d.push(["i"]),w&&d.push(["u"]),y=i.color,y==""&&u&&(y=u.color),v="",(y=nY(y))&&(v+="."+y),y=i.backgroundColor,y==""&&u&&(y=u.backgroundColor),(u=nY(y))&&(v+=".bg_"+u),v&&d.push(["c",v]),d.reduceRight(function(T,P){var $=_(P);return P=$.next().value,$=$.next().value,"<"+P+($===void 0?"":$)+">"+T+""},i.payload)}function nY(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 DP(i,u){var d=[];i=_(rY(i));for(var v=i.next();!v.done;v=i.next())if(v=v.value,v.isContainer)d.push.apply(d,A(DP(v.nestedCues,v)));else{var y=v.clone();y.nestedCues=[],y.payload=tY(v,u),d.push(y)}return d}function rY(i){var u=[];i=_(i);for(var d=i.next(),v={};!d.done;v={ig:void 0},d=i.next())v.ig=d.value,u.some((function(y){return function(w){return dw(y.ig,w)}})(v))||u.push(v.ig);return u}function Nke(i){function u(v){for(var y=5381,w=v.length;w;)y=y*33^v.charCodeAt(--w);return(y>>>0).toString()}if(i.startTime>=i.endTime)return null;var d=new VTTCue(i.startTime,i.endTime,i.payload);d.id=u(i.startTime.toString())+u(i.endTime.toString())+u(i.payload),d.lineAlign=i.lineAlign,d.positionAlign=i.positionAlign,i.size&&(d.size=i.size);try{d.align=i.textAlign}catch{}return i.textAlign=="center"&&d.align!="center"&&(d.align="middle"),i.writingMode=="vertical-lr"?d.vertical="lr":i.writingMode=="vertical-rl"&&(d.vertical="rl"),i.lineInterpretation==1&&(d.snapToLines=!1),i.line!=null&&(d.line=i.line),i.position!=null&&(d.position=i.position),d}function iY(i,u){var d=DP(u),v=[];u=i.cues?Array.from(i.cues):[],d=_(d);for(var y=d.next(),w={};!y.done;w={vd:void 0},y=d.next())w.vd=y.value,!u.some((function(T){return function(P){return P.startTime==T.vd.startTime&&P.endTime==T.vd.endTime&&P.text==T.vd.payload}})(w))&&w.vd.payload&&(y=Nke(w.vd))&&v.push(y);for(u=v.slice().sort(function(T,P){return T.startTime!=P.startTime?T.startTime-P.startTime:T.endTime!=P.endTime?T.endTime-P.startTime:"line"in VTTCue.prototype?v.indexOf(P)-v.indexOf(T):v.indexOf(T)-v.indexOf(P)}),u=_(u),d=u.next();!d.done;d=u.next())i.addCue(d.value)}function OP(i,u){var d=!1;i.mode==="disabled"&&(d=!0,i.mode="hidden");for(var v=0;v-1&&(d.has(u.g)?(v=d.get(u.g).track,v.mode==="disabled"&&(v.mode=u.u?"showing":"hidden")):u.g=-1),u.h=d},this.B=function(){if(!u.o){var d=u.j;u.o=new sr(function(){if(u.o=null,u.j===d){var v=-1,y=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(v=u.g,y=!0):w.track.mode==="hidden"&&(v=u.g)}if(!y)for(y=_(u.h),w=y.next();!w.done;w=y.next()){var T=_(w.value);if(w=T.next().value,T=T.next().value,T.track.mode==="showing"){v=w;break}else v<0&&T.track.mode==="hidden"&&(v=w)}for(y=_(u.h),w=y.next();!w.done;w=y.next())T=_(w.value),w=T.next().value,T=T.next().value,w!==v&&T.track.mode!=="disabled"&&(T.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=Ko.prototype,l.configure=function(){},l.remove=function(i,u){if(this.i)this.h.has(this.g)&&OP(this.h.get(this.g).track,function(d){return d.startTimei});else return!1;return!0},l.append=function(i){this.h.has(this.g)&&iY(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 d=u.next();!d.done;d=u.next())if(d=d.value,d.mode==="showing"){i=null;break}else i||d.mode!=="hidden"||(i=d);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 Bke(i){var u=Le();return i.forced&&u.Ha()==="WEBKIT"?"forced":i.kind==="caption"||i.roles&&i.roles.some(function(d){return d.includes("transcribes-spoken-dialog")})&&i.roles.some(function(d){return d.includes("describes-music-and-sound")})?"captions":"subtitles"}Ke("shaka.text.NativeTextDisplayer",Ko),Ko.prototype.enableTextDisplayer=Ko.prototype.enableTextDisplayer,Ko.prototype.setTextLanguage=Ko.prototype.setTextLanguage,Ko.prototype.setTextVisibility=Ko.prototype.setTextVisibility,Ko.prototype.isTextVisible=Ko.prototype.isTextVisible,Ko.prototype.destroy=Ko.prototype.destroy,Ko.prototype.append=Ko.prototype.append,Ko.prototype.remove=Ko.prototype.remove,Ko.prototype.configure=Ko.prototype.configure;function Gs(i,u){for(Yt("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=Gs.prototype,l.configure=function(){},l.remove=function(i,u){return this.g?(OP(this.g,function(d){return d.startTimei}),!0):!1},l.append=function(i){this.g&&iY(this.g,i)},l.destroy=function(){return this.g&&(OP(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&&oY(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){oY(this)};function oY(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}Ke("shaka.text.SimpleTextDisplayer",Gs),Gs.prototype.enableTextDisplayer=Gs.prototype.enableTextDisplayer,Gs.prototype.setTextLanguage=Gs.prototype.setTextLanguage,Gs.prototype.setTextVisibility=Gs.prototype.setTextVisibility,Gs.prototype.isTextVisible=Gs.prototype.isTextVisible,Gs.prototype.destroy=Gs.prototype.destroy,Gs.prototype.append=Gs.prototype.append,Gs.prototype.remove=Gs.prototype.remove,Gs.prototype.configure=Gs.prototype.configure;function Ks(){}l=Ks.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(){},Ke("shaka.text.StubTextDisplayer",Ks),Ks.prototype.enableTextDisplayer=Ks.prototype.enableTextDisplayer,Ks.prototype.setTextLanguage=Ks.prototype.setTextLanguage,Ks.prototype.setTextVisibility=Ks.prototype.setTextVisibility,Ks.prototype.isTextVisible=Ks.prototype.isTextVisible,Ks.prototype.destroy=Ks.prototype.destroy,Ks.prototype.append=Ks.prototype.append,Ks.prototype.remove=Ks.prototype.remove,Ks.prototype.configure=Ks.prototype.configure;function qs(i,u){var d=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 sr(function(){d.j.paused||ip(d)}),Wb(this),this.l=new Map,this.i=new Ue,this.i.D(document,"fullscreenchange",function(){ip(d,!0)}),this.i.D(this.j,"seeking",function(){ip(d,!0)}),this.i.D(this.j,"ratechange",function(){Wb(d)}),this.i.D(this.j,"resize",function(){var v=d.j,y=v.videoWidth;v=v.videoHeight,y&&v?d.u=y/v:d.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){ip(d,!0)}),this.F.observe(this.g)),this.G=new Map}l=qs.prototype,l.configure=function(i){this.C=i,Wb(this),ip(this,!0)},l.append=function(i){var u=[].concat(A(this.h));i=_(rY(i));for(var d=i.next(),v={};!d.done;v={jg:void 0},d=i.next())v.jg=d.value,u.some((function(y){return function(w){return dw(w,y.jg)}})(v))||this.h.push(v.jg);this.h.length&&Wb(this),ip(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 d=this.h.length;return this.h=this.h.filter(function(v){return v.startTime=u}),ip(this,d>this.h.length),this.h.length||Wb(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),ip(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 Wb(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 Fke(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function sY(i,u,d,v,y){var w=!1,T=[],P=[];u=_(u);for(var $=u.next();!$.done;$=u.next()){$=$.value,y.push($);var U=i.l.get($),W=$.startTime<=v&&$.endTime>v,Y=U?U.gj:null;U&&(T.push(U.kg),U.$c&&T.push(U.$c),W||(w=!0,i.l.delete($),U=null)),W&&(P.push($),U?Fke(i,Y)||(w=!0):(jke(i,$,y),U=i.l.get($),Y=U.gj,w=!0)),$.nestedCues.length>0&&Y&&sY(i,$.nestedCues,Y,v,y),y.pop()}if(w){for(v=_(T),y=v.next();!y.done;y=v.next())y=y.value,y.parentElement&&y.parentElement.removeChild(y);for(P.sort(function(re,le){return re.startTime!=le.startTime?re.startTime-le.startTime:re.endTime-le.endTime}),P=_(P),v=P.next();!v.done;v=P.next())v=i.l.get(v.value),v.$c?(v.$c.contains(d)&&v.$c.removeChild(d),d.appendChild(v.$c),v.$c.appendChild(v.kg)):d.appendChild(v.kg)}}function ip(i,u){if(i.g){var d=i.j.currentTime;if(!i.m||u!==void 0&&u){u=_(i.G.values());for(var v=u.next();!v.done;v=u.next())Lb(v.value);Lb(i.g),i.l.clear(),i.G.clear()}i.m&&sY(i,i.h,i.g,d,[])}}function jke(i,u,d){var v=d.length>1,y=v?"span":"div";u.lineBreak&&(y="br"),u.rubyTag&&(y=u.rubyTag),v=!v&&u.nestedCues.length>0;var w=document.createElement(y);if(y!="br"&&Uke(i,w,u,d,v),d=null,u.region&&u.region.id){var T=u.region,P=i.u===4/3?2.5:1.9;if(d=T.id+"_"+T.width+"x"+T.height+(T.heightUnits==vs?"%":"px")+"-"+T.viewportAnchorX+"x"+T.viewportAnchorY+(T.viewportAnchorUnits==vs?"%":"px"),i.G.has(d))d=i.G.get(d);else{y=document.createElement("span");var $=T.heightUnits==vs?"%":"px",U=T.widthUnits==vs?"%":"px",W=T.viewportAnchorUnits==vs?"%":"px";y.id="shaka-text-region---"+d,y.classList.add("shaka-text-region"),y.style.position="absolute";var Y=T.height,re=T.width;T.heightUnits===2&&(Y=T.height*5.33,$="%"),T.widthUnits===2&&(re=T.width*P,U="%"),y.style.height=Y+$,y.style.width=re+U,T.viewportAnchorUnits===2?(P=T.viewportAnchorY/75*100,$=T.viewportAnchorX/(i.u===4/3?160:210)*100,P-=T.regionAnchorY*Y/100,$-=T.regionAnchorX*re/100,y.style.top=P+"%",y.style.left=$+"%"):(y.style.top=T.viewportAnchorY-T.regionAnchorY*Y/100+W,y.style.left=T.viewportAnchorX-T.regionAnchorX*re/100+W),T.heightUnits!==0&&T.widthUnits!==0&&T.viewportAnchorUnits!==0&&(T=Math.max(0,Math.min(100-(parseInt(y.style.width.slice(0,-1),10)||0),parseInt(y.style.left.slice(0,-1),10)||0)),y.style.top=Math.max(0,Math.min(100-(parseInt(y.style.height.slice(0,-1),10)||0),parseInt(y.style.top.slice(0,-1),10)||0))+"%",y.style.left=T+"%"),y.style.display="flex",y.style.flexDirection="column",y.style.alignItems="center",y.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",i.G.set(d,y),d=y}}y=w,v&&(y=document.createElement("span"),y.classList.add("shaka-text-wrapper"),y.style.backgroundColor=u.backgroundColor,y.style.lineHeight="normal",w.appendChild(y)),i.l.set(u,{kg:w,gj:y,$c:d})}function Vke(i){var u=i.direction,d=i.positionAlign;return i=i.textAlign,d!==hw?d:i==="left"||i==="start"&&u===cb||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===cb?"line-right":"center"}function Uke(i,u,d,v,y){var w=u.style,T=d.nestedCues.length==0,P=v.length>1;w.whiteSpace="pre-wrap";var $=d.payload.replace(/\s+$/g,function(W){return" ".repeat(W.length)});if(w.webkitTextStrokeColor=d.textStrokeColor,w.webkitTextStrokeWidth=d.textStrokeWidth,w.color=d.color,w.direction=d.direction,w.opacity=d.opacity,w.paddingLeft=$P(d.linePadding,d,i.o),w.paddingRight=$P(d.linePadding,d,i.o),w.textCombineUpright=d.textCombineUpright,w.textShadow=d.textShadow,d.backgroundImage)w.backgroundImage="url('"+d.backgroundImage+"')",w.backgroundRepeat="no-repeat",w.backgroundSize="contain",w.backgroundPosition="center",d.backgroundColor&&(w.backgroundColor=d.backgroundColor),w.width="100%",w.height="100%";else{if(d.nestedCues.length)var U=u;else U=document.createElement("span"),u.appendChild(U);d.border&&(U.style.border=d.border),y||((u=zke(v,function(W){return W.backgroundColor}))?U.style.backgroundColor=u:$&&(U.style.backgroundColor="rgba(0, 0, 0, 0.8)")),$&&(U.setAttribute("translate","no"),U.textContent=$)}P&&!v[v.length-1].isContainer?w.display="inline":(w.display="flex",w.flexDirection="column",w.alignItems="center",d.textAlign=="left"||d.textAlign=="start"?(w.width="100%",w.alignItems="start"):(d.textAlign=="right"||d.textAlign=="end")&&(w.width="100%",w.alignItems="end"),w.justifyContent=d.displayAlign=="before"?"flex-start":d.displayAlign=="center"?"center":"flex-end"),T||(w.margin="0"),w.fontFamily=d.fontFamily,w.fontWeight=d.fontWeight.toString(),w.fontStyle=d.fontStyle,w.letterSpacing=d.letterSpacing,v=i.C?i.C.fontScaleFactor:1,(v!==1||d.fontSize)&&(w.fontSize=$P(d.fontSize||"1em",d,i.o,v)),v=d.line,v!=null&&(T=d.lineInterpretation,T==db&&(T=1,P=16,i.u&&i.u<1&&(P=32),v=v<0?100+v/P*100:v/P*100),T==1&&(w.position="absolute",d.writingMode==Mv?(w.width="100%",d.lineAlign==Dv?w.top=v+"%":d.lineAlign=="end"&&(w.bottom=100-v+"%")):d.writingMode=="vertical-lr"?(w.height="100%",d.lineAlign==Dv?w.left=v+"%":d.lineAlign=="end"&&(w.right=100-v+"%")):(w.height="100%",d.lineAlign==Dv?w.right=v+"%":d.lineAlign=="end"&&(w.left=100-v+"%")))),w.lineHeight=d.lineHeight,i=Vke(d),i=="line-left"?(w.cssFloat="left",d.position!==null&&(w.position="absolute",d.writingMode==Mv?(w.left=d.position+"%",w.width="auto"):w.top=d.position+"%")):i=="line-right"?(w.cssFloat="right",d.position!==null&&(w.position="absolute",d.writingMode==Mv?(w.right=100-d.position+"%",w.width="auto"):w.bottom=d.position+"%")):d.position!==null&&d.position!=50&&(w.position="absolute",d.writingMode==Mv?(w.left=d.position+"%",w.width="auto"):w.top=d.position+"%",d.size&&(w.transform="translateX(-50%)")),w.textAlign=d.textAlign,w.textDecoration=d.textDecoration.join(" "),w.writingMode=d.writingMode,"writingMode"in document.documentElement.style&&w.writingMode==d.writingMode||(w.webkitWritingMode=d.writingMode),d.size&&(d.writingMode==Mv?w.width=d.size+"%":w.height=d.size+"%")}function $P(i,u,d,v){v=v===void 0?1:v;var y=(y=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(i))?{value:Number(y[1]),unit:y[2]}:null;if(!y)return i;switch(i=y.unit,v*=y.value,i){case"%":return v/100*d.clientHeight/u.cellResolution.rows+"px";case"c":return d.clientHeight*v/u.cellResolution.rows+"px";default:return v+i}}function zke(i,u){for(var d=i.length-1;d>=0;d--){var v=u(i[d]);if(v||v===0)return v}return null}Ke("shaka.text.UITextDisplayer",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.remove=qs.prototype.remove,qs.prototype.destroy=qs.prototype.destroy,qs.prototype.append=qs.prototype.append,qs.prototype.configure=qs.prototype.configure;function Hke(i,u){function d(w){for(var T=w,P=_(u),$=P.next();!$.done;$=P.next())$=$.value,$.end&&$.start "+d(y.endTime)+(function(w){var T=[];switch(w.textAlign){case"left":T.push("align:left");break;case"right":T.push("align:right");break;case Md:T.push("align:middle");break;case"start":T.push("align:start");break;case"end":T.push("align:end")}switch(w.writingMode){case"vertical-lr":T.push("vertical:lr");break;case"vertical-rl":T.push("vertical:rl")}return T.length?" "+T.join(" "):""})(y)+` `,i+=y.payload+` `;return i}Ke("shaka.text.WebVttGenerator",function(){});function NP(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 Ue,this.G=[],this.h=null}NP.prototype.setMediaElement=function(i){this.h=i,Yke(this)},NP.prototype.configure=function(i){this.g=i,Xke(this)};function Wke(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},aY(i),i.m={},i.h=null,i.i.Pa()}function Gke(i,u){i.o=u,i.o?i.l==mC?i.l=gC:i.l==yC&&(i.l=bC):i.l==gC?i.l=mC:i.l==bC&&(i.l=yC)}function Kke(i,u){if(i.g&&i.g.enabled&&(Ys(i,"ps",{dd:"d"}),i.h&&i.h.autoplay)){var d=i.h.play();d&&d.then(function(){i.H=u}).catch(function(){i.H=0})}}function qke(i,u,d){try{if(!i.g.enabled)return u;var v=BP(i);e:{switch(d.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var y=fC;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":y=pC;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":y=vY;break e}y=void 0}v.ot=y,v.su=!0;var w=Gb(v);return dC(u,w)}catch(T){return gt("CMCD_SRC_ERROR","Could not generate src CMCD data.",T),u}}function Yke(i){i.i.D(i.h,"playing",function(){i.B||(i.B=Date.now()),Ys(i,"ps",{dd:"p"})}),i.i.D(i.h,"volumechange",function(){Ys(i,i.h.muted?"m":"um")}),i.i.D(i.h,"play",function(){i.u||(i.u=Date.now(),Ys(i,"ps",{dd:"s"}))}),i.i.D(i.h,"pause",function(){Ys(i,"ps",{dd:"a"})}),i.i.D(i.j,"buffering",function(){Ys(i,"ps",{dd:"w"})}),i.i.D(i.h,"seeking",function(){return Ys(i,"ps",{dd:"k"})}),i.i.D(document,"fullscreenchange",function(){Ys(i,document.fullscreenElement?"pe":"pc")});var u=i.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?Ys(i,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&Ys(i,u.webkitDisplayingFullscreen?"pe":"pc")}),i.i.D(i.h,"enterpictureinpicture",function(){Ys(i,"pe")}),i.i.D(i.h,"leavepictureinpicture",function(){Ys(i,"pc")}),"documentPictureInPicture"in o&&i.i.D(o.documentPictureInPicture,"enter",function(d){Ys(i,"pe"),i.i.Ba(d.window,"pagehide",function(){Ys(i,"pc")})}),i.i.D(document,"visibilitychange",function(){document.hidden?Ys(i,"b",{bg:!0}):Ys(i,"b")}),i.i.D(i.j,"complete",function(){Ys(i,"ps",{dd:"e"})})}function Xke(i){aY(i);var u=lY(i);u=_(u);for(var d=u.next();!d.done;d=u.next())if(d=d.value.timeInterval,d===void 0&&(d=uwe),d>=1){var v=new sr(function(){return Ys(i,cwe)});v.Ea(d),i.G.push(v)}}function aY(i){if(i.G)for(var u=_(i.G),d=u.next();!d.done;d=u.next())d.value.stop();i.G=[]}function lY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===_Y&&u.enabled}):[]}function uY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===bY&&u.enabled===!0}):[]}function BP(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 Ys(i,u,d){if(d=d===void 0?{}:d,u=Object.assign({e:u,ts:Date.now()},d),u=VP(i,u,_Y),d=i.g.targets,!(i.g.version0&&!T.includes(P))||cY(i,w,y)}}}function S0(i,u,d){if(i.g.enabled){d=VP(i,d,yY);var v=dY({mode:yY,useHeaders:i.g.useHeaders,includeKeys:i.g.includeKeys||[]});i.m[v]||(i.m[v]={request:1,response:1}),d.sn=i.m[v].request++,v=i.g.includeKeys||[];var y=i.g.version==zP?Array.from(new Set([].concat(A(HP),A(iwe)))):mY;v=FP(v,y),d=jP(d,v),Zke(d,u,i.g.useHeaders)}}function cY(i,u,d,v){var y=fc(),w=d.url;if(d.useHeaders){if(u=pY(u),!Object.keys(u).length)return;v&&Object.assign(v.headers,u),v=Po([w],y),Object.assign(v.headers,u)}else{if(u=Gb(u),!u)return;w=dC(w,u),v&&(v.uri=w),v=Po([w],y)}i.j.Wb().request(9,v)}function Zke(i,u,d){if(d)i=pY(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var v=Gb(i);v&&(u.uris=u.uris.map(function(y){return dC(y,v)}))}}function FP(i,u){if(!i||i.length===0)return u;for(var d=_(i),v=d.next();!v.done;v=d.next())u.includes(v.value);return i=i.filter(function(y){return u.includes(y)})}function jP(i,u){return Object.keys(i).reduce(function(d,v){return u.includes(v)&&(d[v]=i[v]),d},{})}function Jke(i){if(i.type===0)return twe;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?pC:hC;if(u=="audio")return fC;if(u=="text")return i.mimeType==="application/mp4"?vC:UP}}function dY(i){var u=Object.keys(i).sort().reduce(function(d,v){return v!=="enabled"&&(d[v]=i[v]),d},{});return JSON.stringify(u)}function Qke(i,u){if(u=i.j.Fc()[u],!u.length)return NaN;var d=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=d&&v.end>=d}))?(i.end-d)*1e3:NaN}function fY(i,u){if(u=i.j.Fc()[u],!u.length)return 0;var d=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=d&&v.end>=d}))?(i.end-d)*1e3:0}function ewe(i,u){var d=i.j.mc();if(!d.length)return NaN;i=d[0],d=_(d);for(var v=d.next();!v.done;v=d.next())v=v.value,v.type==="variant"&&v.bandwidth>i.bandwidth&&(i=v);switch(u){case hC:return i.videoBandwidth||NaN;case fC:return i.audioBandwidth||NaN;default:return i.bandwidth}}function hY(i,u,d){var v=u.segment,y=0;v&&(y=v.endTime-v.startTime),y={d:y*1e3,st:i.j.W()?rwe:nwe},y.ot=Jke(u);var w=y.ot===hC||y.ot===fC||y.ot===pC||y.ot===vC;if(u=u.stream){var T=i.j.Ob();if(w&&(y.bl=Qke(i,u.type),y.ot!==vC)){var P=fY(i,u.type);y.dl=T?P/Math.abs(T):P}if(u.bandwidth&&(y.br=u.bandwidth/1e3),u.segmentIndex&&v){if((T=u.segmentIndex.Vb(v.endTime,!0,T<0))&&(T=T.next().value)&&T!=v){if(d&&!at(v.P(),T.P())){var $=T.P()[0];P=new URL($);var U=new URL(d);if(P.origin!==U.origin)d=$;else{d=P.pathname.split("/").slice(1),$=U.pathname.split("/").slice(1,-1),U=Math.min(d.length,$.length);for(var W=0;W0&&d<=1?i*(1-d)+u*d:i};function SY(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}Ke("shaka.util.CmsdManager",Du),Du.prototype.getBandwidthEstimate=Du.prototype.getBandwidthEstimate,Du.prototype.getRoundTripTime=Du.prototype.Uj,Du.prototype.getResponseDelay=Du.prototype.Tj,Du.prototype.getEstimatedThroughput=Du.prototype.$h,Du.prototype.getMaxBitrate=Du.prototype.bi;var kY="etp",wY="mb",CY="rd",EY="rtt";function xY(){this.g=null,this.h=[]}function WP(i,u){return ae(function(d){if(d.g==1)return i.g?L(d,new Promise(function(v){return i.h.push(v)}),2):d.A(2);i.g=u,B(d)})}xY.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function Mt(i,u,d){u=u===void 0?null:u,Fr.call(this);var v=this;this.m=EC,this.h=null,this.xe=u,this.$=!1,this.Ie=new Ue,this.ye=new Ue,this.j=new Ue,this.ac=new Ue,this.yc=new Ue,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new xY,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=Xc(this),this.Zf=Gq(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new H5(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=[],d&&d(this),this.M=new NP(this,this.g.cmcd),this.wa=new Du(this.g.cmsd),this.J=MY(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new sr(function(){return ae(function(y){if(y.g==1)return v.qa?L(y,v.fc(v.Jd,!0),3):y.A(0);if(y.g!=4)return L(y,v.load(v.qa),4);v.ag?v.Jd.pause():v.Jd.play(),v.qa=null,v.ag=!1,B(y)})}),xC&&(this.C=xC(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(y){var w;return ae(function(T){if(T.g==1)return v.$f.stop(),v.qa?T.A(0):(v.Jd=v.h,v.ag=v.be(),w=y.saveLivePosition||!1,L(T,v.Uh(!0,w),3));v.qa=T.h,B(T)})}),this.yc.D(this.C,"ad-content-resume-requested",function(y){if(y=y.offset||0,v.qa){var w=v.qa;w.m&&y&&(typeof w.m=="number"?w.m+=y:w.m.setTime(w.m.getTime()+y*1e3))}v.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return ae(function(y){return v.h||!v.Jd?y.A(0):L(y,v.fc(v.Jd,!0),0)})})),TC&&(this.Da=TC(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){QP(v),v.fh()}),this.De=new sr(function(){for(var y=Date.now()/1e3,w=!1,T=!0,P=_(v.i.variants),$=P.next();!$.done;$=P.next())$=$.value,$.disabledUntilTime>0&&$.disabledUntilTime<=y&&($.disabledUntilTime=0,w=!0),$.disabledUntilTime>0&&(T=!1);T&&v.De.stop(),w&&op(v,!1,void 0,!1,!1)}),this.Ta=null,i&&(Yt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}E(Mt,Fr);function _C(i){i.T!=null&&(Kl(i.T),i.T.release(),i.T=null)}function dwe(i,u,d){d||u.lcevc.enabled?(_C(i),i.T==null&&(i.T=new Bo(i.h,i.Kh,u.lcevc,d),i.H&&(i.H.H=i.T))):_C(i)}function li(i,u){return new vn(i,u)}l=Mt.prototype,l.destroy=function(){var i=this,u;return ae(function(d){switch(d.g){case 1:return i.m==hc?d.return():(_C(i),u=i.detach(),i.m=hc,L(d,u,2));case 2:return L(d,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){d.A(4);break}return L(d,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),Fr.prototype.release.call(i),B(d)}})};function TY(i,u){nX.set(i,u)}function k0(i,u){i.dispatchEvent(li("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var d=this,v,y,w;return ae(function(T){switch(T.g){case 1:if(d.m==hc)throw new we(2,7,7e3);if(v=d.h&&d.h==i,!d.h||d.h==i){T.A(2);break}return L(T,d.detach(),2);case 2:return L(T,GP(d,"attach"),4);case 4:if(T.h)return T.return();if(F(T,5,6),v||(k0(d,"attach"),y=function(){var P=eR(d,!1);P&&w0(d,P)},d.ye.D(i,"error",y),d.h=i,d.M&&d.M.setMediaElement(i)),Le(),!u||!Od()||d.H){T.A(6);break}return L(T,KP(d),6);case 6:G(T),d.ma.release(),ee(T,0);break;case 5:return w=q(T),L(T,d.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 ae(function(d){if(d.g==1){if(u.m==hc)throw new we(2,7,7e3);return L(d,u.Bc(!1,i),2)}if(d.g!=3)return L(d,GP(u,"detach"),3);if(d.h)return d.return();try{u.h&&(u.ye.Pa(),u.h=null),k0(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}B(d)})};function GP(i,u){var d;return ae(function(v){return v.g==1?(d=++i.Je,L(v,WP(i.ma,u),2)):d!=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 d=this,v,y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te;return ae(function(ze){switch(ze.g){case 1:return d.m!=hc&&(d.m=EC),L(ze,GP(d,"unload"),2);case 2:return ze.h?ze.return():(j(ze,3),d.Sa=!1,k0(d,"unload"),_C(d),v=d.ze.map(function(nt){return nt()}),d.ze=[],L(ze,Promise.all(v),5));case 5:if(d.dispatchEvent(li("unloading")),d.we&&(d.we.release(),d.we=null),d.ya&&(d.ya.release(),d.ya=null),d.ib&&(d.ib.release(),d.ib=null),d.h&&(d.j.Pa(),d.ac.Pa()),d.De.stop(),d.ob&&(d.ob.release(),d.ob=null),d.Fa&&(d.Fa.stop(),d.Fa=null),!d.I){ze.A(6);break}return L(ze,d.I.stop(),7);case 7:d.I=null,d.xc=null;case 6:if(d.o&&d.o.stop(),!d.l){ze.A(8);break}return L(ze,d.l.destroy(),9);case 9:d.l=null;case 8:if(d.N&&(d.N.release(),d.N=null),d.G&&(d.G.release(),d.G=null),o.shakaMediaKeysPolyfill!=="webkit"||!d.F){ze.A(10);break}return L(ze,d.F.destroy(),11);case 11:d.F=null;case 10:if(!d.H){ze.A(12);break}return L(ze,d.H.destroy(),13);case 13:d.H=null;case 12:if(d.C&&!u&&d.C.onAssetUnload(),d.qa&&!u&&(d.qa.destroy(),d.qa=null),u||d.$f.stop(),d.M&&Wke(d.M),d.wa&&(d.wa.g=null),!d.u){ze.A(14);break}return L(ze,d.u.destroy(),15);case 15:d.u=null;case 14:if(d.$=!1,d.h){for(y=_(d.Yf),w=y.next();!w.done;w=y.next())T=w.value,T.src.startsWith("blob:")&&URL.revokeObjectURL(T.src),T.remove();d.Yf=[],jw(d.h)&&d.h.load()}if(!d.F){ze.A(16);break}return L(ze,d.F.destroy(),17);case 17:d.F=null;case 16:if(d.Ta&&d.X!=d.Ta.rd()&&(d.Ta.j||d.Ta.destroy(),d.Ta=null),d.X=null,d.aa=null,d.R=null,d.i){for(P=_(d.i.variants),$=P.next();!$.done;$=P.next())for(U=$.value,W=_([U.audio,U.video]),Y=W.next();!Y.done;Y=W.next())(re=Y.value)&&re.segmentIndex&&re.segmentIndex.release();for(le=_(d.i.textStreams),fe=le.next();!fe.done;fe=le.next())ve=fe.value,ve.segmentIndex&&ve.segmentIndex.release()}for(d.g&&d.g.streaming.clearDecodingCache&&(kw.clear(),Jg.clear()),d.i=null,d.B=new cC,d.Jh=null,d.Zb=null,d.V=null,d.Ke=-1,d.Ge=[],me=_(d.uc.values()),Re=me.next();!Re.done;Re=me.next())Te=Re.value,Te.stop();d.uc.clear(),d.kb=[],d.Xf=-1,d.J&&d.J.Qh(),Kb(d);case 3:G(ze),d.ma.release(),ee(ze,4);break;case 4:if(Le(),i&&Od()&&!d.H&&d.h)return L(ze,KP(d),0);ze.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,d){u=u===void 0?null:u;var v=this,y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re;return ae(function(Te){switch(Te.g){case 1:if(v.m==hc)throw new we(2,7,7e3);if(y=null,w="",i instanceof Mu){if(i.j)throw new we(2,7,7006);y=i,w=y.rd()||""}else w=i||"";return L(Te,WP(v.ma,"load"),2);case 2:if(v.ma.release(),!v.h)throw new we(2,7,7002);if(!v.X){Te.A(3);break}return v.X=w,L(Te,v.Bc(!1),3);case 3:if(T=++v.Je,P=function(){return ae(function(ze){if(ze.g==1)return v.Je==T?ze.A(0):y?L(ze,y.destroy(),3):ze.A(3);throw new we(2,7,7e3)})},$=function(ze,nt){return ae(function(mt){switch(mt.g){case 1:return j(mt,2),L(mt,WP(v.ma,nt),4);case 4:return L(mt,P(),5);case 5:return L(mt,ze(),6);case 6:return L(mt,P(),7);case 7:y&&v.g&&(y.g=v.g);case 2:G(mt),v.ma.release(),ee(mt,0)}})},F(Te,5,6),u==null&&y&&(u=y.getStartTime()),v.O=u,v.Sa=!1,v.dispatchEvent(li("loading")),y){d=y.V,Te.A(8);break}if(d){Te.A(8);break}return L(Te,$(function(){return ae(function(ze){if(ze.g==1)return L(ze,PY(v,w),2);d=ze.h,B(ze)})},"guessMimeType_"),8);case 8:if(U=!!y,y){Yq(y,v),v.B=y.getStats(),Te.A(11);break}return L(Te,IY(v,w,u,d,!0,v.g),12);case 12:(y=Te.h)?(y.F=!1,Yq(y,v),v.B=y.getStats(),y.start(),y.B.catch(function(){})):v.B=new cC;case 11:return W=!y,Y=Date.now()/1e3,v.B=y?y.getStats():new cC,v.X=w,v.aa=d||null,Kb(v),re=function(){var ze=v.h?v.h.buffered:null;return{start:KK(ze)||0,end:Fw(ze)||0}},v.ya=new Db(re),v.ya.addEventListener("regionadd",function(ze){qP(v,ze.region,"metadataadded")}),W?L(Te,$(function(){return ae(function(ze){return L(ze,vwe(v,d),0)})},"initializeSrcEqualsDrmInner_"),23):(v.ib=new Db(re),L(Te,$(function(){return ae(function(ze){if(ze.g==1)return L(ze,Promise.race([y.ma,y.B]),2);v.xc=y.H;var nt=y;nt.qa=!0,v.I=nt.l,v.i=y.Hg(),B(ze)})},"waitForFinish"),15));case 15:if(v.H){Te.A(16);break}return L(Te,$(function(){return ae(function(ze){return L(ze,KP(v),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return v.i&&v.i.textStreams.length&&(v.u.enableTextDisplayer?v.u.enableTextDisplayer():Yt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(Te,$(function(){return ae(function(ze){return L(ze,y.B,0)})},"waitForFinish"),18);case 18:if(v.g=y.getConfiguration(),v.Ae=y.G,v.I&&v.I.setMediaElement&&v.h&&v.I.setMediaElement(v.h),v.we=Lke(y),v.ue=y.Fa,(le=y.C)&&(v.K=le),U&&v.h&&v.h.nodeName==="AUDIO"&&(fwe(v),v.configure("manifest.disableVideo",!0)),y.i){Te.A(19);break}return L(Te,$(function(){return ae(function(ze){return L(ze,Xq(y,v.h),0)})},"drmEngine_.init"),19);case 19:return v.F=Pke(y),L(Te,$(function(){return ae(function(ze){return L(ze,v.F.fc(v.h),0)})},"drmEngine_.attach"),21);case 21:return fe=v.g.abrFactory,v.o&&v.Ce==fe||(v.Ce=fe,v.o&&v.o.release(),v.o=fe(),typeof v.o.setMediaElement!="function"&&(Yt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),v.o.setMediaElement=function(){}),typeof v.o.setCmsdManager!="function"&&(Yt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),v.o.setCmsdManager=function(){}),typeof v.o.trySuggestStreams!="function"&&(Yt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),v.o.trySuggestStreams=function(){}),v.o.configure(v.g.abr)),ve=Rke(y),me=y.o,L(Te,$(function(){return ae(function(ze){return L(ze,pwe(v,Y,me,ve),0)})},"loadInner_"),22);case 22:Ike(y),v.aa&&Le().aj()&&hb(v.aa)&&S2e(v.H,v.X,v.aa),Te.A(14);break;case 23:return L(Te,$(function(){return ae(function(ze){return L(ze,mwe(v,Y,d),0)})},"srcEqualsInner_"),14);case 14:v.dispatchEvent(li("loaded"));case 6:if(G(Te),!y){Te.A(25);break}return L(Te,y.destroy(),25);case 25:v.Ta=null,ee(Te,0);break;case 5:if(Re=q(Te),!Re||Re.code==7e3){Te.A(27);break}return L(Te,v.Bc(!1),27);case 27:throw Re}})};function fwe(i){for(var u=_(i.i.variants),d=u.next();!d.done;d=u.next())d=d.value,d.video&&(d.video.closeSegmentIndex(),d.video=null),d.bandwidth=d.audio&&d.audio.bandwidth?d.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 d=this,v;return ae(function(y){return y.g==1?L(y,AY(d),2):y.g!=3?(v=y.h,L(y,d.Bc(i,u),3)):y.return(v)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var d=this,v;return ae(function(y){return y.g==1?L(y,AY(d,u),2):y.g!=3?(v=y.h,L(y,d.detach(i),3)):y.return(v)})};function AY(i,u){u=u===void 0?!1:u;var d,v,y;return ae(function(w){if(w.g==1)return d=null,i.i&&i.I&&i.xc&&i.X&&i.g?(v=i.h.currentTime,i.W()&&!u&&(v=null),L(w,LY(i,i.X,v,i.aa,i.g,!0,!1),3)):w.A(2);if(w.g!=2){d=w.h,i.Ee.push(d),i.I&&i.I.setMediaElement&&i.I.setMediaElement(null),(y=i.l?i.l.o:null)&&(d.o=y);var T=d,P=i.I,$=i.xc;T.h=i.i,T.l=P,T.H=$,d.C=i.K,d.start(),i.i=null,i.I=null,i.xc=null,i.o=null,i.Ce=null}return w.return(d)})}l.preload=function(i,u,d,v){u=u===void 0?null:u;var y=this,w,T;return ae(function(P){return P.g==1?(w=Xc(y),Uf(w,v||y.g,Xc(y)),L(P,IY(y,i,u,d,!1,w),2)):((T=P.h)?T.start():w0(y,new we(2,7,7005)),P.return(T))})},l.ng=function(){var i=this,u,d,v,y;return ae(function(w){for(u=[],d=_(i.Ee),v=d.next();!v.done;v=d.next())y=v.value,y.j||u.push(y.destroy());return i.Ee=[],L(w,Promise.all(u),0)})};function IY(i,u,d,v,y,w){y=y===void 0?!1:y;var T,P,$;return ae(function(U){return U.g==1?v?U.A(2):L(U,PY(i,u),3):(U.g!=2&&(v=U.h),hwe(i,v)?U.return(null):(T=w||i.g,P=!1,y&&i.h&&i.h.nodeName==="AUDIO"&&(P=!0),$=LY(i,u,d,v||null,T,!y,P),$=y?$.then(function(W){return W.F=!1,W}):$.then(function(W){return i.Ee.push(W),W}),U.return($)))})}function LY(i,u,d,v,y,w,T){w=w===void 0?!0:w,T=T===void 0?!1:T;var P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze,nt,mt;return ae(function(Ze){return Ze.g==1?(P=null,$=on(y),T&&($.manifest.disableVideo=!0),U=function(){return P.R&&P.j?null:P},W=function(){return U()?U().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?Ze.A(2):(Y=Le(),L(Ze,Y.jc(),3))):(Ze.g!=2&&(re=Ze.h,i.xa.width=re.width,i.xa.height=re.height),le=new H5($,i.xa,null),fe={networkingEngine:i.J,filter:function(Ve){var dt,vt;return ae(function(ht){if(ht.g==1)return L(ht,PK(le,Ve),2);if(ht.g!=4)return dt=ht.h,dt?(vt=li("trackschanged"),L(ht,Promise.resolve(),4)):ht.A(0);P.dispatchEvent(vt),B(ht)})},makeTextStreamsForClosedCaptions:function(Ve){return Iwe(i,Ve)},onTimelineRegionAdded:function(Ve){hP(P.I,Ve)},onEvent:function(Ve){return P.dispatchEvent(Ve)},onError:function(Ve){return P.onError(Ve)},isLowLatencyMode:function(){return W().streaming.lowLatencyMode},updateDuration:function(){i.l&&P.R&&i.l.updateDuration()},newDrmInfo:function(Ve){var dt=P.i,vt=dt?dt.g:null;vt&&dt.B&&DK(le,vt.keySystem,Ve)},onManifestUpdated:function(){var Ve=new Map().set("isLive",i.W());P.dispatchEvent(li("manifestupdated",Ve)),Ub(P,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(Ve,dt,vt,ht){var _t=Ve;(Ve=="com.apple.hls.interstitial"||Ve=="com.apple.hls.overlay")&&(_t="com.apple.quicktime.HLS",Ve={startTime:dt,endTime:vt,values:ht},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,Ve)),ht=_(ht),Ve=ht.next();for(var St={};!Ve.done;St={Yg:void 0},Ve=ht.next())St.Yg=Ve.value,St.Yg.name!="ID"&&Ub(P,!1,(function($t){return function(){YP(i,dt,vt,_t,$t.Yg)}})(St))},disableStream:function(Ve){return i.disableStream(Ve,i.g.streaming.maxDisabledTime)},addFont:function(Ve,dt){return i.addFont(Ve,dt)}},ve=new Db(function(){return i.Qa()}),ve.addEventListener("regionadd",function(Ve){var dt=Ve.region;Xb(i,"timelineregionadded",dt,P),Ub(P,!1,function(){i.C&&(i.C.onDashTimedMetadata(dt),i.C.onDASHInterstitialMetadata(i,i.h,dt))})}),me=null,$.streaming.observeQualityChanges&&(me=new Kw(function(){return i.Fc()}),me.addEventListener("qualitychange",function(Ve){JY(i,Ve.quality,Ve.position)}),me.addEventListener("audiotrackchange",function(Ve){JY(i,Ve.quality,Ve.position,!0)})),Re=!0,Te={tc:i.J,onError:function(Ve){return P.onError(Ve)},vf:function(Ve){Ub(P,!0,function(){i.F&&Pwe(i,Ve)})},onExpirationUpdated:function(Ve,dt){var vt=li("expirationupdated");P.dispatchEvent(vt),(vt=P.l)&&vt.onExpirationUpdated&&vt.onExpirationUpdated(Ve,dt)},onEvent:function(Ve){P.dispatchEvent(Ve),Ve.type=="drmsessionupdate"&&Re&&(Re=!1,Ve=Date.now()/1e3-P.ya,(i.B||P.getStats()).m=Ve,i.T&&Kl(i.T))}},ze=MY(i,U),dK(i.J,ze),nt=function(){return i.md(Te)},mt={config:$,wk:fe,Hk:ve,Gk:me,md:nt,vk:le,networkingEngine:ze,ij:w},P=new Mu(u,v,d,mt),Ze.return(P))})}function PY(i,u){var d,v,y,w;return ae(function(T){return T.g==1?(d=i.g.manifest.retryParameters,L(T,Yv(u,i.J,d),2)):(v=T.h,v=="application/x-mpegurl"&&(y=Le(),y.Ha()==="WEBKIT"&&(v="application/vnd.apple.mpegurl")),v=="video/quicktime"&&(w=Le(),w.Ha()==="CHROMIUM"&&(v="video/mp4")),T.return(v))})}function hwe(i,u){if(!Od(Le()))return!0;if(u){if((i.h||Uv()).canPlayType(u)=="")return!1;if(!Od(Le())||!o0.has(u))return!0;if(hb(u))return Le().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 SC(i,u){var d=i.g.textDisplayFactory;i.Jh!==d||u!==void 0&&u?(u=i.u,i.u=d(),i.u.configure?i.u.configure(i.g.textDisplayer):Yt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||Yt("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&&L2e(i.H,i.u),i.Jh=d,i.l&&tke(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function KP(i){var u,d,v;return ae(function(y){if(y.g==1)return Le(),k0(i,"media-source"),i.g.mediaSource.useSourceElements&&jw(i.h),SC(i),u=Cwe(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,T,P){w=_(w);for(var $=w.next();!$.done;$=w.next())if($=$.value,$.data&&typeof $.cueTime=="number"&&$.frames){var U=$.cueTime+T,W=P;W&&U>W&&(W=U);for(var Y=_($.frames),re=Y.next();!re.done;re=Y.next())YP(i,U,W,"org.id3",re.value);i.C&&i.C.onHlsTimedMetadata($,U)}},Bk:function(w){i.ib&&hP(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),d=i.g.manifest,v=d.segmentRelativeVttTiming,u.Fa=v,L(y,u.M,2);i.H=u,B(y)})}function RY(i,u,d){function v(){return ZP(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==Ms&&i.o.playbackRateChanged(w),zY(i,w)),w=li("ratechange"),i.dispatchEvent(w))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&Hf(i),_a(i)}),i.j.D(u.remote,"connecting",function(){return _a(i)}),i.j.D(u.remote,"disconnect",function(){return ae(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?L(w,tC(i.l),3):w.A(2);w.g!=2&&Hf(i),_a(i),B(w)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return _a(i)}),i.j.D(u.audioTracks,"removetrack",function(){return _a(i)}),i.j.D(u.audioTracks,"change",function(){return _a(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return _a(i)}),i.j.D(u.videoTracks,"removetrack",function(){return _a(i)}),i.j.D(u.videoTracks,"change",function(){return _a(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&SC(i,!0)}),u.textTracks){var y=function(){i.m===Cl&&i.u instanceof Ko&&Hf(i),_a(i)};i.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":bwe(i,w);break;case"chapters":_we(i,w);break;default:y()}}),i.j.D(u.textTracks,"removetrack",y),i.j.D(u.textTracks,"change",y)}u.preload!="none"&&i.j.Ba(u,"loadedmetadata",function(){i.B.G=Date.now()/1e3-d})}function pwe(i,u,d,v){var y,w,T,P,$,U,W,Y,re,le,fe,ve,me,Re,Te,ze,nt,mt,Ze,Ve,dt,vt,ht,_t,St,$t,Nt,Ct;return ae(function(At){switch(At.g){case 1:for(k0(i,"load"),y=i.h,i.N=new Mb({Ye:function(){return y.playbackRate},Tc:function(){return y.defaultPlaybackRate},ph:function(zt){y.playbackRate=zt},ui:function(zt){y.currentTime+=zt}}),RY(i,y,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var zt=i.K.getConfiguration();zt.hdrLevel=="AUTO"?Xv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(zt.hdrLevel="AUTO",i.K.configure(zt),Xv(i))}}),w=!1,T=_(i.i.variants),P=T.next();!P.done;P=T.next())$=P.value,(U=$.video&&$.video.dependencyStream)&&(w=bl(U));dwe(i,i.g,w),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,tR(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(zt,nn,Hn){i.i&&i.l&&zt!=i.l.o&&qb(i,zt,!0,nn===void 0?!1:nn,Hn===void 0?0:Hn)}),i.o.setMediaElement(y),i.o.setCmsdManager(i.wa),i.l=Ewe(i),i.l.configure(i.g.streaming),i.m=Ms,i.dispatchEvent(li("streaming")),W=d;case 2:for((re=i.l.o)||W||(W=WY(i,!0)),le=[],Y=re||W,fe=_([Y.video,Y.audio]),ve=fe.next();!ve.done;ve=fe.next())(me=ve.value)&&!me.segmentIndex&&(le.push(me.createSegmentIndex()),me.dependencyStream&&le.push(me.dependencyStream.createSegmentIndex()));if(!(le.length>0)){At.A(4);break}return L(At,Promise.all(le),4);case 4:if(!Y||Y.disabledUntilTime!=0){At.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(Y),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):st("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&&(Gke(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),Kke(i.M,u*1e3)),tR(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),J2e(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(li("canupdatestarttime")),Re=function(zt){i.G=Swe(i,zt),i.ob=kwe(i,zt),DY(i,y,!1)},i.g.streaming.startAtSegmentBoundary||(Te=i.O,Te==null&&i.i.startTime&&(Te=i.i.startTime),Re(Te)),re){At.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){At.A(8);break}return ze=i.i.presentationTimeline,i.O instanceof Date&&(mt=ze.m||ze.i,Ze=i.O.getTime()/1e3-mt,Ze!=null&&(nt=Ze)),nt==null&&(nt=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(nt=i.i.startTime),Ve=ze.Xb(),dt=ze.Gb(),ntdt&&(nt=dt),L(At,Lwe(W,nt),9);case 9:vt=At.h,Re(vt);case 8:qb(i,W,!0,!1,0);case 7:return i.G.ready(),ht=i.Kc().find(function(zt){return zt.active}),ht||((_t=Zg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&LP(i.B.h,_t,!0),W&&(_t?(tK(W.audio,_t,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),XY(i)),_t&&(i.g.streaming.alwaysStreamText||i.Og())&&(Xw(i.l,_t),Yb(i))),L(At,i.l.start(v),10);case 10:i.g.abr.enabled&&(i.o.enable(),ZY(i)),_a(i),i.i.variants.some(function(zt){return zt.primary}),((St=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&($t=function(){return HY(i)},i.j.D(y,"timeupdate",$t)),St||(Nt=function(){return CC(i)},i.j.D(y,"timeupdate",Nt),CC(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(Ct=function(){var zt;return ae(function(nn){if(nn.g==1)return zt=i.Qa().end-i.h.currentTime,isNaN(zt)||!(zt<=i.g.streaming.preloadNextUrlWindow)?nn.A(0):(i.j.Ma(y,"timeupdate",Ct),L(nn,i.preload(i.i.nextUrl),4));i.Ta=nn.h,B(nn)})},i.j.D(y,"timeupdate",Ct)),i.j.D(y,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(St),B(At)}})}function vwe(i,u){var d,v,y;return ae(function(w){return w.g==1?(d=Date.now()/1e3,v=!0,i.F=i.md({tc:i.J,onError:function(T){w0(i,T)},vf:function(){},onExpirationUpdated:function(){var T=li("expirationupdated");i.dispatchEvent(T)},onEvent:function(T){i.dispatchEvent(T),T.type=="drmsessionupdate"&&v&&(v=!1,i.B.m=Date.now()/1e3-d)}}),i.F.configure(i.g.drm),y=nK([u]),i.F.O=!0,L(w,bK(i.F,[y],[]),2)):L(w,i.F.fc(i.h),0)})}function mwe(i,u,d){var v,y,w,T,P,$,U,W,Y,re,le,fe;return ae(function(ve){switch(ve.g){case 1:if(k0(i,"src-equals"),v=i.h,i.G=new _q(v),y=!1,i.ze.push(function(){y=!0}),i.dispatchEvent(li("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=wwe(i,i.O||0),i.N=new Mb({Ye:function(){return v.playbackRate},Tc:function(){return v.defaultPlaybackRate},ph:function(me){v.playbackRate=me},ui:function(me){v.currentTime+=me}}),DY(i,v,!0),v.textTracks&&(SC(i),w=function(me){if(!(i.u instanceof Ko)){var Re=kC(i).find(function(Te){return Te.mode!=="disabled"});Re&&(Re.mode=me?"showing":"hidden"),i.u instanceof Gs&&(Re=xwe(i))&&(Re.mode=!me&&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)}),T=v,(T.webkitPresentationMode||T.webkitSupportsFullscreen)&&i.j.D(T,"webkitpresentationmodechanged",function(){T.webkitPresentationMode?w(T.webkitPresentationMode!=="inline"):T.webkitSupportsFullscreen&&w(T.webkitDisplayingFullscreen)})),RY(i,v,u),P=qke(i.M,i.X,d),!P.includes("#t=")&&(i.g.playRangeStart>0||isFinite(i.g.playRangeEnd))&&(P+="#t=",i.g.playRangeStart>0&&(P+=i.g.playRangeStart),isFinite(i.g.playRangeEnd)&&(P+=","+i.g.playRangeEnd)),!i.H){ve.A(2);break}return L(ve,i.H.destroy(),3);case 3:i.H=null;case 2:return jw(v),v.src=P,$=Le(),$.Ua()=="TV"&&v.load(),v.preload!="none"&&!v.autoplay&&hb(d)&&$.Ha()==="WEBKIT"&&v.load(),i.m=Cl,i.dispatchEvent(li("streaming")),U=new ei,v0(v,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&hb(i.aa)||U.resolve()}),W=function(){return new Promise(function(me){var Re=new sr(me);i.j.D(v.textTracks,"change",function(){return Re.ia(.5)}),Re.ia(.5)})},v0(v,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var me,Re,Te,ze,nt;return ae(function(mt){if(mt.g==1)return L(mt,W(),2);if(y)return mt.return();if(gwe(i),me=kC(i),me.some(function(Ze){return Ze.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof Ko))for(me.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():Yt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),Re=!1,Te=_(me),ze=Te.next();!ze.done;ze=Te.next())nt=ze.value,nt.mode!=="disabled"&&(Re?(nt.mode="disabled",st("Found more than one enabled text track, disabling it",nt)):(jY(i,nt),Re=!0));ywe(i),i.aa&&hb(i.aa)&&U.resolve(),B(mt)})}),v.error?U.reject(eR(i)):v.preload=="none"&&(st('With