var z4e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ZUt=z4e((Md,dl)=>{(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 zs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Br={},Lm=[],js=()=>{},wm=()=>!1,ov=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),QI=e=>e.startsWith("onUpdate:"),Rr=Object.assign,eA=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},U4e=Object.prototype.hasOwnProperty,si=(e,t)=>U4e.call(e,t),Sn=Array.isArray,Pm=e=>yg(e)==="[object Map]",sv=e=>yg(e)==="[object Set]",wF=e=>yg(e)==="[object Date]",Tue=e=>yg(e)==="[object RegExp]",Wn=e=>typeof e=="function",Jn=e=>typeof e=="string",ml=e=>typeof e=="symbol",ui=e=>e!==null&&typeof e=="object",tA=e=>(ui(e)||Wn(e))&&Wn(e.then)&&Wn(e.catch),gz=Object.prototype.toString,yg=e=>gz.call(e),Eue=e=>yg(e).slice(8,-1),yw=e=>yg(e)==="[object Object]",nA=e=>Jn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qf=zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Iue=zs("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),rA=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},H4e=/-\w/g,eo=rA(e=>e.replace(H4e,t=>t.slice(1).toUpperCase())),W4e=/\B([A-Z])/g,ja=rA(e=>e.replace(W4e,"-$1").toLowerCase()),av=rA(e=>e.charAt(0).toUpperCase()+e.slice(1)),$m=rA(e=>e?`on${av(e)}`:""),Ba=(e,t)=>!Object.is(e,t),Mm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},wk=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ck=e=>{const t=Jn(e)?Number(e):NaN;return isNaN(t)?e:t};let _ee;const bw=()=>_ee||(_ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),G4e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function K4e(e){return G4e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function q4e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const Y4e={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"},X4e={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"},Z4e={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"},J4e={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},Q4e={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},e3e="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",bz=zs(e3e),t3e=bz,Tee=2;function Aue(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-Tee;c<=l+Tee||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)),y=Math.max(1,n>a?h-m:n-t);s.push(" | "+" ".repeat(m)+"^".repeat(y))}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 Ee(e){if(Sn(e)){const t={};for(let n=0;n{if(n){const r=n.split(r3e);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function o3e(e){if(!e)return"";if(Jn(e))return e;let t="";for(const n in e){const r=e[n];if(Jn(r)||typeof r=="number"){const o=n.startsWith("--")?n:ja(n);t+=`${o}:${r};`}}return t}function ne(e){let t="";if(Jn(e))t=e;else if(Sn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,r6={};function f3e(e){if(r6.hasOwnProperty(e))return r6[e];const t=d3e.test(e);return t&&console.error(`unsafe attribute name: ${e}`),r6[e]=!t}const h3e={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},p3e=zs("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"),v3e=zs("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"),m3e=zs("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 g3e(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const y3e=/["'&<>]/;function b3e(e){const t=""+e,n=y3e.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function w3e(e,t){return e.replace(Oue,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function C3e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&ruh(n,t))}const Nue=e=>!!(e&&e.__v_isRef===!0),_e=e=>Jn(e)?e:e==null?"":Sn(e)||ui(e)&&(e.toString===gz||!Wn(e.toString))?Nue(e)?_e(e.value):JSON.stringify(e,Bue,2):String(e),Bue=(e,t)=>Nue(t)?Bue(e,t.value):Pm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[i6(r,a)+" =>"]=o,n),{})}:sv(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>i6(n))}:ml(t)?i6(t):ui(t)&&!Sn(t)&&!yw(t)?String(t):t,i6=(e,t="")=>{var n;return ml(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Fue(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const x3e=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Lm,EMPTY_OBJ:Br,NO:wm,NOOP:js,PatchFlagNames:X4e,PatchFlags:Y4e,ShapeFlags:Z4e,SlotFlags:J4e,camelize:eo,capitalize:av,cssVarNameEscapeSymbolsRE:Oue,def:yz,escapeHtml:b3e,escapeHtmlComment:k3e,extend:Rr,genCacheKey:q4e,genPropsAccessExp:K4e,generateCodeFrame:Aue,getEscapedCssVarName:w3e,getGlobalThis:bw,hasChanged:Ba,hasOwn:si,hyphenate:ja,includeBooleanAttr:kz,invokeArrayFns:Mm,isArray:Sn,isBooleanAttr:c3e,isBuiltInDirective:Iue,isDate:wF,isFunction:Wn,isGloballyAllowed:bz,isGloballyWhitelisted:t3e,isHTMLTag:Lue,isIntegerKey:nA,isKnownHtmlAttr:p3e,isKnownMathMLAttr:m3e,isKnownSvgAttr:v3e,isMap:Pm,isMathMLTag:$ue,isModelListener:QI,isObject:ui,isOn:ov,isPlainObject:yw,isPromise:tA,isRegExp:Tue,isRenderableAttrValue:g3e,isReservedProp:Qf,isSSRSafeAttrName:f3e,isSVGTag:Pue,isSet:sv,isSpecialBooleanAttr:Due,isString:Jn,isSymbol:ml,isVoidTag:Mue,looseEqual:uh,looseIndexOf:Sw,looseToNumber:wk,makeMap:zs,normalizeClass:ne,normalizeCssVarValue:Fue,normalizeProps:ai,normalizeStyle:Ee,objectToString:gz,parseStringStyle:Sz,propsToAttrMap:h3e,remove:eA,slotFlagsText:Q4e,stringifyStyle:o3e,toDisplayString:_e,toHandlerKey:$m,toNumber:Ck,toRawType:Eue,toTypeString:yg},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ma;class wz{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ma,!t&&Ma&&(this.index=(Ma.scopes||(Ma.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&&(Ma=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(I2){let t=I2;for(I2=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;E2;){let t=E2;for(E2=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 zue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Uue(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Ez(r),_3e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function CF(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hue(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hue(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_k)||(e.globalVersion=_k,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!CF(e))))return;e.flags|=2;const t=e.dep,n=Zi,r=zc;Zi=e,zc=!0;try{zue(e);const o=e.fn(e._value);(t.version===0||Ba(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Zi=n,zc=r,Uue(e),e.flags&=-3}}function Ez(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)Ez(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function _3e(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function T3e(e,t){e.effect instanceof xk&&(e=e.effect.fn);const n=new xk(e);t&&Rr(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function E3e(e){e.effect.stop()}let zc=!0;const Wue=[];function ch(){Wue.push(zc),zc=!1}function dh(){const e=Wue.pop();zc=e===void 0?!0:e}function Eee(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Zi;Zi=void 0;try{t()}finally{Zi=n}}}let _k=0,I3e=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 oA{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(!Zi||!zc||Zi===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Zi)n=this.activeLink=new I3e(Zi,this),Zi.deps?(n.prevDep=Zi.depsTail,Zi.depsTail.nextDep=n,Zi.depsTail=n):Zi.deps=Zi.depsTail=n,Gue(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=Zi.depsTail,n.nextDep=void 0,Zi.depsTail.nextDep=n,Zi.depsTail=n,Zi.deps===n&&(Zi.deps=r)}return n}trigger(t){this.version++,_k++,this.notify(t)}notify(t){_z();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Tz()}}}function Gue(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)Gue(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const y3=new WeakMap,Rm=Symbol(""),xF=Symbol(""),Tk=Symbol("");function Fa(e,t,n){if(zc&&Zi){let r=y3.get(e);r||y3.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new oA),o.map=r,o.key=n),o.track()}}function Wf(e,t,n,r,o,a){const s=y3.get(e);if(!s){_k++;return}const l=c=>{c&&c.trigger()};if(_z(),t==="clear")s.forEach(l);else{const c=Sn(e),f=c&&nA(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,m)=>{(m==="length"||m===Tk||!ml(m)&&m>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),f&&l(s.get(Tk)),t){case"add":c?f&&l(s.get("length")):(l(s.get(Rm)),Pm(e)&&l(s.get(xF)));break;case"delete":c||(l(s.get(Rm)),Pm(e)&&l(s.get(xF)));break;case"set":Pm(e)&&l(s.get(Rm));break}}Tz()}function A3e(e,t){const n=y3.get(e);return n&&n.get(t)}function R0(e){const t=Xr(e);return t===e?t:(Fa(t,"iterate",Tk),xu(e)?t:t.map(na))}function sA(e){return Fa(e=Xr(e),"iterate",Tk),e}const L3e={__proto__:null,[Symbol.iterator](){return s6(this,Symbol.iterator,na)},concat(...e){return R0(this).concat(...e.map(t=>Sn(t)?R0(t):t))},entries(){return s6(this,"entries",e=>(e[1]=na(e[1]),e))},every(e,t){return Lf(this,"every",e,t,void 0,arguments)},filter(e,t){return Lf(this,"filter",e,t,n=>n.map(na),arguments)},find(e,t){return Lf(this,"find",e,t,na,arguments)},findIndex(e,t){return Lf(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Lf(this,"findLast",e,t,na,arguments)},findLastIndex(e,t){return Lf(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Lf(this,"forEach",e,t,void 0,arguments)},includes(...e){return a6(this,"includes",e)},indexOf(...e){return a6(this,"indexOf",e)},join(e){return R0(this).join(e)},lastIndexOf(...e){return a6(this,"lastIndexOf",e)},map(e,t){return Lf(this,"map",e,t,void 0,arguments)},pop(){return TS(this,"pop")},push(...e){return TS(this,"push",e)},reduce(e,...t){return Iee(this,"reduce",e,t)},reduceRight(e,...t){return Iee(this,"reduceRight",e,t)},shift(){return TS(this,"shift")},some(e,t){return Lf(this,"some",e,t,void 0,arguments)},splice(...e){return TS(this,"splice",e)},toReversed(){return R0(this).toReversed()},toSorted(e){return R0(this).toSorted(e)},toSpliced(...e){return R0(this).toSpliced(...e)},unshift(...e){return TS(this,"unshift",e)},values(){return s6(this,"values",na)}};function s6(e,t,n){const r=sA(e),o=r[t]();return r!==e&&!xu(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const P3e=Array.prototype;function Lf(e,t,n,r,o,a){const s=sA(e),l=s!==e&&!xu(e),c=s[t];if(c!==P3e[t]){const p=c.apply(e,a);return l?na(p):p}let f=n;s!==e&&(l?f=function(p,m){return n.call(this,na(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 Iee(e,t,n,r){const o=sA(e);let a=n;return o!==e&&(xu(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,na(l),c,e)}),o[t](a,...r)}function a6(e,t,n){const r=Xr(e);Fa(r,"iterate",Tk);const o=r[t](...n);return(o===-1||o===!1)&&uA(n[0])?(n[0]=Xr(n[0]),r[t](...n)):o}function TS(e,t,n=[]){ch(),_z();const r=Xr(e)[t].apply(e,n);return Tz(),dh(),r}const $3e=zs("__proto__,__v_isRef,__isVue"),Kue=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ml));function M3e(e){ml(e)||(e=String(e));const t=Xr(this);return Fa(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?ece:Que:a?Jue:Zue).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Sn(t);if(!o){let c;if(s&&(c=L3e[n]))return c;if(n==="hasOwnProperty")return M3e}const l=Reflect.get(t,n,to(t)?t:r);if((ml(n)?Kue.has(n):$3e(n))||(o||Fa(t,"get",n),a))return l;if(to(l)){const c=s&&nA(n)?l:l.value;return o&&ui(c)?Ek(c):c}return ui(l)?o?Ek(l):Lt(l):l}}class Yue extends que{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=fh(a);if(!xu(r)&&!fh(r)&&(a=Xr(a),r=Xr(r)),!Sn(t)&&to(a)&&!to(r))return c||(a.value=r),!0}const s=Sn(t)&&nA(n)?Number(n)e,B_=e=>Reflect.getPrototypeOf(e);function B3e(e,t,n){return function(...r){const o=this.__v_raw,a=Xr(o),s=Pm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,f=o[e](...r),h=n?_F:t?b3:na;return!t&&Fa(a,"iterate",c?xF:Rm),{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 F_(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function F3e(e,t){const n={get(o){const a=this.__v_raw,s=Xr(a),l=Xr(o);e||(Ba(o,l)&&Fa(s,"get",o),Fa(s,"get",l));const{has:c}=B_(s),f=t?_F:e?b3:na;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&&Fa(Xr(o),"iterate",Rm),o.size},has(o){const a=this.__v_raw,s=Xr(a),l=Xr(o);return e||(Ba(o,l)&&Fa(s,"has",o),Fa(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=Xr(l),f=t?_F:e?b3:na;return!e&&Fa(c,"iterate",Rm),l.forEach((h,p)=>o.call(a,f(h),f(p),s))}};return Rr(n,e?{add:F_("add"),set:F_("set"),delete:F_("delete"),clear:F_("clear")}:{add(o){!t&&!xu(o)&&!fh(o)&&(o=Xr(o));const a=Xr(this);return B_(a).has.call(a,o)||(a.add(o),Wf(a,"add",o,o)),this},set(o,a){!t&&!xu(a)&&!fh(a)&&(a=Xr(a));const s=Xr(this),{has:l,get:c}=B_(s);let f=l.call(s,o);f||(o=Xr(o),f=l.call(s,o));const h=c.call(s,o);return s.set(o,a),f?Ba(a,h)&&Wf(s,"set",o,a):Wf(s,"add",o,a),this},delete(o){const a=Xr(this),{has:s,get:l}=B_(a);let c=s.call(a,o);c||(o=Xr(o),c=s.call(a,o)),l&&l.call(a,o);const f=a.delete(o);return c&&Wf(a,"delete",o,void 0),f},clear(){const o=Xr(this),a=o.size!==0,s=o.clear();return a&&Wf(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=B3e(o,e,t)}),n}function aA(e,t){const n=F3e(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(si(n,o)&&o in r?n:r,o,a)}const j3e={get:aA(!1,!1)},V3e={get:aA(!1,!0)},z3e={get:aA(!0,!1)},U3e={get:aA(!0,!0)},Zue=new WeakMap,Jue=new WeakMap,Que=new WeakMap,ece=new WeakMap;function H3e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function W3e(e){return e.__v_skip||!Object.isExtensible(e)?0:H3e(Eue(e))}function Lt(e){return fh(e)?e:lA(e,!1,R3e,j3e,Zue)}function Iz(e){return lA(e,!1,O3e,V3e,Jue)}function Ek(e){return lA(e,!0,D3e,z3e,Que)}function G3e(e){return lA(e,!0,N3e,U3e,ece)}function lA(e,t,n,r,o){if(!ui(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=W3e(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 Rd(e){return fh(e)?Rd(e.__v_raw):!!(e&&e.__v_isReactive)}function fh(e){return!!(e&&e.__v_isReadonly)}function xu(e){return!!(e&&e.__v_isShallow)}function uA(e){return e?!!e.__v_raw:!1}function Xr(e){const t=e&&e.__v_raw;return t?Xr(t):e}function cA(e){return!si(e,"__v_skip")&&Object.isExtensible(e)&&yz(e,"__v_skip",!0),e}const na=e=>ui(e)?Lt(e):e,b3=e=>ui(e)?Ek(e):e;function to(e){return e?e.__v_isRef===!0:!1}function ae(e){return tce(e,!1)}function Dm(e){return tce(e,!0)}function tce(e,t){return to(e)?e:new K3e(e,t)}class K3e{constructor(t,n){this.dep=new oA,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Xr(t),this._value=n?t:na(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||xu(t)||fh(t);t=r?t:Xr(t),Ba(t,n)&&(this._rawValue=t,this._value=r?t:na(t),this.dep.trigger())}}function q3e(e){e.dep&&e.dep.trigger()}function He(e){return to(e)?e.value:e}function Y3e(e){return Wn(e)?e():He(e)}const X3e={get:(e,t,n)=>t==="__v_raw"?e:He(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 Az(e){return Rd(e)?e:new Proxy(e,X3e)}class Z3e{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new oA,{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 nce(e){return new Z3e(e)}function Ot(e){const t=Sn(e)?new Array(e.length):{};for(const n in e)t[n]=rce(e,n);return t}class J3e{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 A3e(Xr(this._object),this._key)}}class Q3e{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 Yl(e,t,n){return to(e)?e:Wn(e)?new Q3e(e):ui(e)&&arguments.length>1?rce(e,t,n):ae(e)}function rce(e,t,n){const r=e[t];return to(r)?r:new J3e(e,t,n)}class eIe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new oA(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_k-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Zi!==this)return Vue(this,!0),!0}get value(){const t=this.dep.track();return Hue(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function tIe(e,t,n=!1){let r,o;return Wn(e)?r=e:(r=e.get,o=e.set),new eIe(r,o,n)}const nIe={GET:"get",HAS:"has",ITERATE:"iterate"},rIe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},j_={},S3=new WeakMap;let yp;function iIe(){return yp}function ice(e,t=!1,n=yp){if(n){let r=S3.get(n);r||S3.set(n,r=[]),r.push(e)}}function oIe(e,t,n=Br){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,f=S=>o?S:xu(S)||o===!1||o===0?Gf(S,1):Gf(S);let h,p,m,y,b=!1,w=!1;if(to(e)?(p=()=>e.value,b=xu(e)):Rd(e)?(p=()=>f(e),b=!0):Sn(e)?(w=!0,b=e.some(S=>Rd(S)||xu(S)),p=()=>e.map(S=>{if(to(S))return S.value;if(Rd(S))return f(S);if(Wn(S))return c?c(S,2):S()})):Wn(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){ch();try{m()}finally{dh()}}const S=yp;yp=h;try{return c?c(e,3,[y]):e(y)}finally{yp=S}}:p=js,t&&o){const S=p,I=o===!0?1/0:o;p=()=>Gf(S(),I)}const C=iA(),x=()=>{h.stop(),C&&C.active&&eA(C.effects,h)};if(a&&t){const S=t;t=(...I)=>{S(...I),x()}}let _=w?new Array(e.length).fill(j_):j_;const E=S=>{if(!(!(h.flags&1)||!h.dirty&&!S))if(t){const I=h.run();if(o||b||(w?I.some(($,L)=>Ba($,_[L])):Ba(I,_))){m&&m();const $=yp;yp=h;try{const L=[I,_===j_?void 0:w&&_[0]===j_?[]:_,y];_=I,c?c(t,3,L):t(...L)}finally{yp=$}}}else h.run()};return l&&l(E),h=new xk(p),h.scheduler=s?()=>s(E,!1):E,y=S=>ice(S,!1,h),m=h.onStop=()=>{const S=S3.get(h);if(S){if(c)c(S,4);else for(const I of S)I();S3.delete(h)}},t?r?E(!0):_=h.run():s?s(E.bind(null,!0),!0):h.run(),x.pause=h.pause.bind(h),x.resume=h.resume.bind(h),x.stop=x,x}function Gf(e,t=1/0,n){if(t<=0||!ui(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,to(e))Gf(e.value,t,n);else if(Sn(e))for(let r=0;r{Gf(r,t,n)});else if(yw(e)){for(const r in e)Gf(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Gf(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const oce=[];function sIe(e){oce.push(e)}function aIe(){oce.pop()}function lIe(e,t){}const uIe={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"},cIe={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 L1(e,t,n,r){try{return r?e(...r):e()}catch(o){bg(o,t,n)}}function ac(e,t,n,r){if(Wn(e)){const o=L1(e,t,n,r);return o&&tA(o)&&o.catch(a=>{bg(a,t,n)}),o}if(Sn(e)){const o=[];for(let a=0;a>>1,o=ll[r],a=Ak(o);a=Ak(n)?ll.push(e):ll.splice(fIe(t),0,e),e.flags|=1,ace()}}function ace(){k3||(k3=sce.then(lce))}function Ik(e){Sn(e)?Ey.push(...e):bp&&e.id===-1?bp.splice(ly+1,0,e):e.flags&1||(Ey.push(e),e.flags|=1),ace()}function Aee(e,t,n=bd+1){for(;nAk(n)-Ak(r));if(Ey.length=0,bp){bp.push(...t);return}for(bp=t,ly=0;lye.id==null?e.flags&2?-1:1/0:e.id;function lce(e){try{for(bd=0;bduy.emit(o,...a)),V_=[]):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=>{uce(a,t)}),setTimeout(()=>{uy||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,V_=[])},3e3)):V_=[]}let aa=null,dA=null;function Lk(e){const t=aa;return aa=e,dA=e&&e.type.__scopeId||null,t}function hIe(e){dA=e}function pIe(){dA=null}const vIe=e=>se;function se(e,t=aa,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Mk(-1);const a=Lk(t);let s;try{s=e(...o)}finally{Lk(a),r._d&&Mk(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Dr(e,t){if(aa===null)return e;const n=Cw(aa),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,A2=e=>e&&(e.disabled||e.disabled===""),Lee=e=>e&&(e.defer||e.defer===""),Pee=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$ee=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,TF=(e,t)=>{const n=e&&e.to;return Jn(n)?t?t(n):null:n},fce={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,f){const{mc:h,pc:p,pbc:m,o:{insert:y,querySelector:b,createText:w,createComment:C}}=f,x=A2(t.props);let{shapeFlag:_,children:E,dynamicChildren:S}=t;if(e==null){const I=t.el=w(""),$=t.anchor=w("");y(I,n,r),y($,n,r);const L=(F,M)=>{_&16&&h(E,F,M,o,a,s,l,c)},O=()=>{const F=t.target=TF(t.props,b),M=hce(F,t,w,y);F&&(s!=="svg"&&Pee(F)?s="svg":s!=="mathml"&&$ee(F)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(F),x||(L(F,M),CE(t,!1)))};x&&(L(n,$),CE(t,!0)),Lee(t.props)?(t.el.__isMounted=!1,Ts(()=>{O(),delete t.el.__isMounted},a)):O()}else{if(Lee(t.props)&&e.el.__isMounted===!1){Ts(()=>{fce.process(e,t,n,r,o,a,s,l,c,f)},a);return}t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,$=t.target=e.target,L=t.targetAnchor=e.targetAnchor,O=A2(e.props),F=O?n:$,M=O?I:L;if(s==="svg"||Pee($)?s="svg":(s==="mathml"||$ee($))&&(s="mathml"),S?(m(e.dynamicChildren,S,F,o,a,s,l),zz(e,t,!0)):c||p(e,t,F,M,o,a,s,l,!1),x)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):z_(t,n,I,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=TF(t.props,b);j&&z_(t,j,null,f,0)}else O&&z_(t,$,L,f,1);CE(t,x)}},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 y=a||!A2(m);for(let b=0;b{e.isMounted=!0}),uo(()=>{e.isUnmounting=!0}),e}const Fu=[Function,Array],$z={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fu,onEnter:Fu,onAfterEnter:Fu,onEnterCancelled:Fu,onBeforeLeave:Fu,onLeave:Fu,onAfterLeave:Fu,onLeaveCancelled:Fu,onBeforeAppear:Fu,onAppear:Fu,onAfterAppear:Fu,onAppearCancelled:Fu},pce=e=>{const t=e.subTree;return t.component?pce(t.component):t},gIe={name:"BaseTransition",props:$z,setup(e,{slots:t}){const n=Di(),r=Pz();return()=>{const o=t.default&&fA(t.default(),!0);if(!o||!o.length)return;const a=vce(o),s=Xr(e),{mode:l}=s;if(r.isLeaving)return l6(a);const c=Mee(a);if(!c)return l6(a);let f=e1(c,s,r,n,p=>f=p);c.type!==Fo&&hh(c,f);let h=n.subTree&&Mee(n.subTree);if(h&&h.type!==Fo&&!Bc(h,c)&&pce(n).type!==Fo){let p=e1(h,s,r,n);if(hh(h,p),l==="out-in"&&c.type!==Fo)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},l6(a);l==="in-out"&&c.type!==Fo?p.delayLeave=(m,y,b)=>{const w=gce(r,h);w[String(h.key)]=h,m[Uf]=()=>{y(),m[Uf]=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 vce(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Fo){t=n;break}}return t}const mce=gIe;function gce(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 e1(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:m,onLeave:y,onAfterLeave:b,onLeaveCancelled:w,onBeforeAppear:C,onAppear:x,onAfterAppear:_,onAppearCancelled:E}=t,S=String(e.key),I=gce(n,e),$=(F,M)=>{F&&ac(F,r,9,M)},L=(F,M)=>{const j=M[1];$(F,M),Sn(F)?F.every(V=>V.length<=1)&&j():F.length<=1&&j()},O={mode:s,persisted:l,beforeEnter(F){let M=c;if(!n.isMounted)if(a)M=C||c;else return;F[Uf]&&F[Uf](!0);const j=I[S];j&&Bc(e,j)&&j.el[Uf]&&j.el[Uf](),$(M,[F])},enter(F){let M=f,j=h,V=p;if(!n.isMounted)if(a)M=x||f,j=_||h,V=E||p;else return;let W=!1;const U=F[U_]=X=>{W||(W=!0,X?$(V,[F]):$(j,[F]),O.delayedLeave&&O.delayedLeave(),F[U_]=void 0)};M?L(M,[F,U]):U()},leave(F,M){const j=String(e.key);if(F[U_]&&F[U_](!0),n.isUnmounting)return M();$(m,[F]);let V=!1;const W=F[Uf]=U=>{V||(V=!0,M(),U?$(w,[F]):$(b,[F]),F[Uf]=void 0,I[j]===e&&delete I[j])};I[j]=e,y?L(y,[F,W]):W()},clone(F){const M=e1(F,t,n,r,o);return o&&o(M),M}};return O}function l6(e){if(kw(e))return e=Ga(e),e.children=null,e}function Mee(e){if(!kw(e))return dce(e.type)&&e.children?vce(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&&Wn(n.default))return n.default()}}function hh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hh(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 fA(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 C3=new WeakMap;function Iy(e,t,n,r,o=!1){if(Sn(e)){e.forEach((b,w)=>Iy(b,t&&(Sn(t)?t[w]:t),n,r,o));return}if(Np(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Iy(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Cw(r.component):r.el,s=o?null:a,{i:l,r:c}=e,f=t&&t.r,h=l.refs===Br?l.refs={}:l.refs,p=l.setupState,m=Xr(p),y=p===Br?wm:b=>si(m,b);if(f!=null&&f!==c){if(Ree(t),Jn(f))h[f]=null,y(f)&&(p[f]=null);else if(to(f)){f.value=null;const b=t;b.k&&(h[b.k]=null)}}if(Wn(c))L1(c,l,12,[s,h]);else{const b=Jn(c),w=to(c);if(b||w){const C=()=>{if(e.f){const x=b?y(c)?p[c]:h[c]:c.value;if(o)Sn(x)&&eA(x,a);else if(Sn(x))x.includes(a)||x.push(a);else if(b)h[c]=[a],y(c)&&(p[c]=h[c]);else{const _=[a];c.value=_,e.k&&(h[e.k]=_)}}else b?(h[c]=s,y(c)&&(p[c]=s)):w&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const x=()=>{C(),C3.delete(e)};x.id=-1,C3.set(e,x),Ts(x,n)}else Ree(e),C()}}}function Ree(e){const t=C3.get(e);t&&(t.flags|=8,C3.delete(e))}let Dee=!1;const D0=()=>{Dee||(console.error("Hydration completed but contains mismatches."),Dee=!0)},SIe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",kIe=e=>e.namespaceURI.includes("MathML"),H_=e=>{if(e.nodeType===1){if(SIe(e))return"svg";if(kIe(e))return"mathml"}},my=e=>e.nodeType===8;function wIe(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:f}}=e,h=(E,S)=>{if(!S.hasChildNodes()){n(null,E,S),w3(),S._vnode=E;return}p(S.firstChild,E,null,null,null),w3(),S._vnode=E},p=(E,S,I,$,L,O=!1)=>{O=O||!!S.dynamicChildren;const F=my(E)&&E.data==="[",M=()=>w(E,S,I,$,L,F),{type:j,ref:V,shapeFlag:W,patchFlag:U}=S;let X=E.nodeType;S.el=E,U===-2&&(O=!1,S.dynamicChildren=null);let G=null;switch(j){case Bp:X!==3?S.children===""?(c(S.el=o(""),s(E),E),G=E):G=M():(E.data!==S.children&&(D0(),E.data=S.children),G=a(E));break;case Fo:_(E)?(G=a(E),x(S.el=E.content.firstChild,E,I)):X!==8||F?G=M():G=a(E);break;case Nm:if(F&&(E=a(E),X=E.nodeType),X===1||X===3){G=E;const Y=!S.children.length;for(let ee=0;ee{O=O||!!S.dynamicChildren;const{type:F,props:M,patchFlag:j,shapeFlag:V,dirs:W,transition:U}=S,X=F==="input"||F==="option";if(X||j!==-1){W&&kd(S,null,I,"created");let G=!1;if(_(E)){G=Vce(null,U)&&I&&I.vnode.props&&I.vnode.props.appear;const ee=E.content.firstChild;if(G){const te=ee.getAttribute("class");te&&(ee.$cls=te),U.beforeEnter(ee)}x(ee,E,I),S.el=E=ee}if(V&16&&!(M&&(M.innerHTML||M.textContent))){let ee=y(E.firstChild,S,E,I,$,L,O);for(;ee;){W_(E,1)||D0();const te=ee;ee=ee.nextSibling,l(te)}}else if(V&8){let ee=S.children;ee[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(ee=ee.slice(1)),E.textContent!==ee&&(W_(E,0)||D0(),E.textContent=S.children)}if(M){if(X||!O||j&48){const ee=E.tagName.includes("-");for(const te in M)(X&&(te.endsWith("value")||te==="indeterminate")||ov(te)&&!Qf(te)||te[0]==="."||ee)&&r(E,te,null,M[te],void 0,I)}else if(M.onClick)r(E,"onClick",null,M.onClick,void 0,I);else if(j&4&&Rd(M.style))for(const ee in M.style)M.style[ee]}let Y;(Y=M&&M.onVnodeBeforeMount)&&Rl(Y,I,S),W&&kd(S,null,I,"beforeMount"),((Y=M&&M.onVnodeMounted)||W||G)&&Xce(()=>{Y&&Rl(Y,I,S),G&&U.enter(E),W&&kd(S,null,I,"mounted")},$)}return E.nextSibling},y=(E,S,I,$,L,O,F)=>{F=F||!!S.dynamicChildren;const M=S.children,j=M.length;for(let V=0;V{const{slotScopeIds:F}=S;F&&(L=L?L.concat(F):F);const M=s(E),j=y(a(E),S,M,I,$,L,O);return j&&my(j)&&j.data==="]"?a(S.anchor=j):(D0(),c(S.anchor=f("]"),M,j),j)},w=(E,S,I,$,L,O)=>{if(W_(E.parentElement,1)||D0(),S.el=null,O){const j=C(E);for(;;){const V=a(E);if(V&&V!==j)l(V);else break}}const F=a(E),M=s(E);return l(E),n(null,S,M,F,I,$,H_(M),L),I&&(I.vnode.el=S.el,vA(I,S.el)),F},C=(E,S="[",I="]")=>{let $=0;for(;E;)if(E=a(E),E&&my(E)&&(E.data===S&&$++,E.data===I)){if($===0)return a(E);$--}return E},x=(E,S,I)=>{const $=S.parentNode;$&&$.replaceChild(E,S);let L=I;for(;L;)L.vnode.el===S&&(L.vnode.el=L.subTree.el=E),L=L.parent},_=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[h,p]}const Oee="data-allow-mismatch",CIe={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function W_(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Oee);)e=e.parentElement;const n=e&&e.getAttribute(Oee);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(CIe[t])}}const xIe=bw().requestIdleCallback||(e=>setTimeout(e,1)),_Ie=bw().cancelIdleCallback||(e=>clearTimeout(e)),TIe=(e=1e4)=>t=>{const n=xIe(t,{timeout:e});return()=>_Ie(n)};function EIe(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(EIe(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},AIe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},LIe=(e=[])=>(t,n)=>{Jn(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 PIe(e,t){if(my(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(my(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Np=e=>!!e.type.__asyncLoader;function lv(e){Wn(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,y()),y=()=>{let b;return f||(b=f=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),c)return new Promise((C,x)=>{c(w,()=>C(m()),()=>x(w),p+1)});throw w}).then(w=>b!==f&&f?f:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),h=w,w)))};return fe({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(b,w,C){let x=!1;(w.bu||(w.bu=[])).push(()=>x=!0);const _=()=>{x||C()},E=a?()=>{const S=a(_,I=>PIe(b,I));S&&(w.bum||(w.bum=[])).push(S)}:_;h?E():y().then(()=>!w.isUnmounted&&E())},get __asyncResolved(){return h},setup(){const b=sa;if(Mz(b),h)return()=>u6(h,b);const w=E=>{f=null,bg(E,b,13,!r)};if(l&&b.suspense||t1)return y().then(E=>()=>u6(E,b)).catch(E=>(w(E),()=>r?R(r,{error:E}):null));const C=ae(!1),x=ae(),_=ae(!!o);return o&&setTimeout(()=>{_.value=!1},o),s!=null&&setTimeout(()=>{if(!C.value&&!x.value){const E=new Error(`Async component timed out after ${s}ms.`);w(E),x.value=E}},s),y().then(()=>{C.value=!0,b.parent&&kw(b.parent.vnode)&&b.parent.update()}).catch(E=>{w(E),x.value=E}),()=>{if(C.value&&h)return u6(h,b);if(x.value&&r)return R(r,{error:x.value});if(n&&!_.value)return R(n)}}})}function u6(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,s=R(e,r,o);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const kw=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=Di(),r=n.ctx;if(!r.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};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,S,I,$)=>{const L=_.component;f(_,E,S,0,l),c(L.vnode,_,E,S,L,l,I,_.slotScopeIds,$),Ts(()=>{L.isDeactivated=!1,L.a&&Mm(L.a);const O=_.props&&_.props.onVnodeMounted;O&&Rl(O,L.parent,_)},l)},r.deactivate=_=>{const E=_.component;_3(E.m),_3(E.a),f(_,m,null,1,l),Ts(()=>{E.da&&Mm(E.da);const S=_.props&&_.props.onVnodeUnmounted;S&&Rl(S,E.parent,_),E.isDeactivated=!0},l)};function y(_){c6(_),h(_,n,l,!0)}function b(_){o.forEach((E,S)=>{const I=NF(E.type);I&&!_(I)&&w(S)})}function w(_){const E=o.get(_);E&&(!s||!Bc(E,s))?y(E):s&&c6(s),o.delete(_),a.delete(_)}bt(()=>[e.include,e.exclude],([_,E])=>{_&&b(S=>l2(_,S)),E&&b(S=>!l2(E,S))},{flush:"post",deep:!0});let C=null;const x=()=>{C!=null&&(T3(n.subTree.type)?Ts(()=>{o.set(C,G_(n.subTree))},n.subTree.suspense):o.set(C,G_(n.subTree)))};return qt(x),ma(x),uo(()=>{o.forEach(_=>{const{subTree:E,suspense:S}=n,I=G_(E);if(_.type===I.type&&_.key===I.key){c6(I);const $=I.component.da;$&&Ts($,S);return}y(_)})}),()=>{if(C=null,!t.default)return s=null;const _=t.default(),E=_[0];if(_.length>1)return s=null,_;if(!ii(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let S=G_(E);if(S.type===Fo)return s=null,S;const I=S.type,$=NF(Np(S)?S.type.__asyncResolved||{}:I),{include:L,exclude:O,max:F}=e;if(L&&(!$||!l2(L,$))||O&&$&&l2(O,$))return S.shapeFlag&=-257,s=S,E;const M=S.key==null?I:S.key,j=o.get(M);return S.el&&(S=Ga(S),E.shapeFlag&128&&(E.ssContent=S)),C=M,j?(S.el=j.el,S.component=j.component,S.transition&&hh(S,S.transition),S.shapeFlag|=512,a.delete(M),a.add(M)):(a.add(M),F&&a.size>parseInt(F,10)&&w(a.values().next().value)),S.shapeFlag|=256,s=S,T3(E.type)?E:S}}},MIe=$Ie;function l2(e,t){return Sn(e)?e.some(n=>l2(n,t)):Jn(e)?e.split(",").includes(t):Tue(e)?(e.lastIndex=0,e.test(t)):!1}function yce(e,t){bce(e,"a",t)}function Rz(e,t){bce(e,"da",t)}function bce(e,t,n=sa){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(hA(t,r,n),n){let o=n.parent;for(;o&&o.parent;)kw(o.parent.vnode)&&RIe(r,t,n,o),o=o.parent}}function RIe(e,t,n,r){const o=hA(t,e,r,!0);Fr(()=>{eA(r[t],o)},n)}function c6(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function G_(e){return e.shapeFlag&128?e.ssContent:e}function hA(e,t,n=sa,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{ch();const l=eg(n),c=ac(t,n,e,s);return l(),dh(),c});return r?o.unshift(a):o.push(a),a}}const yh=e=>(t,n=sa)=>{(!t1||e==="sp")&&hA(e,(...r)=>t(...r),n)},Sce=yh("bm"),qt=yh("m"),Dz=yh("bu"),ma=yh("u"),uo=yh("bum"),Fr=yh("um"),kce=yh("sp"),wce=yh("rtg"),Cce=yh("rtc");function xce(e,t=sa){hA("ec",e,t)}const Oz="components",DIe="directives";function ke(e,t){return Nz(Oz,e,!0,t)||e}const _ce=Symbol.for("v-ndc");function la(e){return Jn(e)?Nz(Oz,e,!1)||e:e||_ce}function P1(e){return Nz(DIe,e)}function Nz(e,t,n=!0,r=!1){const o=aa||sa;if(o){const a=o.type;if(e===Oz){const l=NF(a,!1);if(l&&(l===t||l===eo(t)||l===av(eo(t))))return a}const s=Nee(o[e]||a[e],t)||Nee(o.appContext[e],t);return!s&&r?a:s}}function Nee(e,t){return e&&(e[t]||e[eo(t)]||e[av(eo(t))])}function Kt(e,t,n,r){let o;const a=n&&n[r],s=Sn(e);if(s||Jn(e)){const l=s&&Rd(e);let c=!1,f=!1;l&&(c=!xu(e),f=fh(e),e=sA(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 Qe(e,t,n={},r,o){if(aa.ce||aa.parent&&Np(aa.parent)&&aa.parent.ce){const f=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),Ne(Tt,null,[R("slot",n,r&&r())],f?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),z();const s=a&&Bz(a(n)),l=n.key||s&&s.key,c=Ne(Tt,{key:(l&&!ml(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 Bz(e){return e.some(t=>ii(t)?!(t.type===Fo||t.type===Tt&&!Bz(t.children)):!0)?e:null}function OIe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:$m(r)]=e[r];return n}const EF=e=>e?tde(e)?Cw(e):EF(e.parent):null,L2=Rr(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=>EF(e.parent),$root:e=>EF(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fz(e),$forceUpdate:e=>e.f||(e.f=()=>{Lz(e.update)}),$nextTick:e=>e.n||(e.n=nn.bind(e.proxy)),$watch:e=>fAe.bind(e)}),d6=(e,t)=>e!==Br&&!e.__isScriptSetup&&si(e,t),IF={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 y=s[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(d6(r,t))return s[t]=1,r[t];if(o!==Br&&si(o,t))return s[t]=2,o[t];if((f=e.propsOptions[0])&&si(f,t))return s[t]=3,a[t];if(n!==Br&&si(n,t))return s[t]=4,n[t];AF&&(s[t]=0)}}const h=L2[t];let p,m;if(h)return t==="$attrs"&&Fa(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Br&&si(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,si(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return d6(o,t)?(o[t]=n,!0):r!==Br&&si(r,t)?(r[t]=n,!0):si(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!==Br&&l[0]!=="$"&&si(e,l)||d6(t,l)||(c=a[0])&&si(c,l)||si(r,l)||si(L2,l)||si(o.config.globalProperties,l)||(f=s.__cssModules)&&f[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:si(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},NIe=Rr({},IF,{get(e,t){if(t!==Symbol.unscopables)return IF.get(e,t,e)},has(e,t){return t[0]!=="_"&&!bz(t)}});function BIe(){return null}function FIe(){return null}function jIe(e){}function VIe(e){}function zIe(){return null}function UIe(){}function HIe(e,t){return null}function WIe(){return Tce().slots}function GIe(){return Tce().attrs}function Tce(e){const t=Di();return t.setupContext||(t.setupContext=ide(t))}function Pk(e){return Sn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function KIe(e,t){const n=Pk(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?Sn(o)||Wn(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 qIe(e,t){return!e||!t?e||t:Sn(e)&&Sn(t)?e.concat(t):Rr({},Pk(e),Pk(t))}function YIe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function XIe(e){const t=Di();let n=e();return RF(),tA(n)&&(n=n.catch(r=>{throw eg(t),r})),[n,()=>eg(t)]}let AF=!0;function ZIe(e){const t=Fz(e),n=e.proxy,r=e.ctx;AF=!1,t.beforeCreate&&Bee(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:f,created:h,beforeMount:p,mounted:m,beforeUpdate:y,updated:b,activated:w,deactivated:C,beforeDestroy:x,beforeUnmount:_,destroyed:E,unmounted:S,render:I,renderTracked:$,renderTriggered:L,errorCaptured:O,serverPrefetch:F,expose:M,inheritAttrs:j,components:V,directives:W,filters:U}=t;if(f&&JIe(f,r,null),s)for(const Y in s){const ee=s[Y];Wn(ee)&&(r[Y]=ee.bind(n))}if(o){const Y=o.call(n,n);ui(Y)&&(e.data=Lt(Y))}if(AF=!0,a)for(const Y in a){const ee=a[Y],te=Wn(ee)?ee.bind(n,n):Wn(ee.get)?ee.get.bind(n,n):js,J=!Wn(ee)&&Wn(ee.set)?ee.set.bind(n):js,Z=N({get:te,set:J});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>Z.value,set:ce=>Z.value=ce})}if(l)for(const Y in l)Ece(l[Y],r,n,Y);if(c){const Y=Wn(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(ee=>{gr(ee,Y[ee])})}h&&Bee(h,e,"c");function G(Y,ee){Sn(ee)?ee.forEach(te=>Y(te.bind(n))):ee&&Y(ee.bind(n))}if(G(Sce,p),G(qt,m),G(Dz,y),G(ma,b),G(yce,w),G(Rz,C),G(xce,O),G(Cce,$),G(wce,L),G(uo,_),G(Fr,S),G(kce,F),Sn(M))if(M.length){const Y=e.exposed||(e.exposed={});M.forEach(ee=>{Object.defineProperty(Y,ee,{get:()=>n[ee],set:te=>n[ee]=te,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===js&&(e.render=I),j!=null&&(e.inheritAttrs=j),V&&(e.components=V),W&&(e.directives=W),F&&Mz(e)}function JIe(e,t,n=js){Sn(e)&&(e=LF(e));for(const r in e){const o=e[r];let a;ui(o)?"default"in o?a=rn(o.from||r,o.default,!0):a=rn(o.from||r):a=rn(o),to(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function Bee(e,t,n){ac(Sn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ece(e,t,n,r){let o=r.includes(".")?Gce(n,r):()=>n[r];if(Jn(e)){const a=t[e];Wn(a)&&bt(o,a)}else if(Wn(e))bt(o,e.bind(n));else if(ui(e))if(Sn(e))e.forEach(a=>Ece(a,t,n,r));else{const a=Wn(e.handler)?e.handler.bind(n):t[e.handler];Wn(a)&&bt(o,a,e)}}function Fz(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=>x3(c,f,s,!0)),x3(c,t,s)),ui(t)&&a.set(t,c),c}function x3(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&x3(e,a,n,!0),o&&o.forEach(s=>x3(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=QIe[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const QIe={data:Fee,props:jee,emits:jee,methods:u2,computed:u2,beforeCreate:rl,created:rl,beforeMount:rl,mounted:rl,beforeUpdate:rl,updated:rl,beforeDestroy:rl,beforeUnmount:rl,destroyed:rl,unmounted:rl,activated:rl,deactivated:rl,errorCaptured:rl,serverPrefetch:rl,components:u2,directives:u2,watch:tAe,provide:Fee,inject:eAe};function Fee(e,t){return t?e?function(){return Rr(Wn(e)?e.call(this,this):e,Wn(t)?t.call(this,this):t)}:t:e}function eAe(e,t){return u2(LF(e),LF(t))}function LF(e){if(Sn(e)){const t={};for(let n=0;n1)return n&&Wn(t)?t.call(r&&r.proxy):t}}function Ace(){return!!(Di()||Om)}const Lce={},Pce=()=>Object.create(Lce),$ce=e=>Object.getPrototypeOf(e)===Lce;function iAe(e,t,n,r=!1){const o={},a=Pce();e.propsDefaults=Object.create(null),Mce(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:Iz(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function oAe(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Xr(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,y]=Rce(p,t,!0);Rr(s,m),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!a&&!c)return ui(e)&&r.set(e,Lm),Lm;if(Sn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",Vz=e=>Sn(e)?e.map(Dl):[Dl(e)],aAe=(e,t,n)=>{if(t._n)return t;const r=se((...o)=>Vz(t(...o)),n);return r._c=!1,r},Dce=(e,t,n)=>{const r=e._ctx;for(const o in e){if(jz(o))continue;const a=e[o];if(Wn(a))t[o]=aAe(o,a,r);else if(a!=null){const s=Vz(a);t[o]=()=>s}}},Oce=(e,t)=>{const n=Vz(t);e.slots.default=()=>n},Nce=(e,t,n)=>{for(const r in t)(n||!jz(r))&&(e[r]=t[r])},lAe=(e,t,n)=>{const r=e.slots=Pce();if(e.vnode.shapeFlag&32){const o=t._;o?(Nce(r,t,n),n&&yz(r,"_",o,!0)):Dce(t,r)}else t&&Oce(e,t)},uAe=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=Br;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Nce(o,t,n):(a=!t.$stable,Dce(t,o)),s=t}else t&&(Oce(e,t),s={default:1});if(a)for(const l in o)!jz(l)&&s[l]==null&&delete o[l]},Ts=Xce;function Bce(e){return jce(e)}function Fce(e){return jce(e,wIe)}function jce(e,t){const n=bw();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:y=js,insertStaticContent:b}=e,w=(he,de,Te,Oe=null,je=null,We=null,it=void 0,Ze=null,pt=!!de.dynamicChildren)=>{if(he===de)return;he&&!Bc(he,de)&&(Oe=be(he),ce(he,je,We,!0),he=null),de.patchFlag===-2&&(pt=!1,de.dynamicChildren=null);const{type:et,ref:Pt,shapeFlag:$t}=de;switch(et){case Bp:C(he,de,Te,Oe);break;case Fo:x(he,de,Te,Oe);break;case Nm:he==null&&_(de,Te,Oe,it);break;case Tt:V(he,de,Te,Oe,je,We,it,Ze,pt);break;default:$t&1?I(he,de,Te,Oe,je,We,it,Ze,pt):$t&6?W(he,de,Te,Oe,je,We,it,Ze,pt):($t&64||$t&128)&&et.process(he,de,Te,Oe,je,We,it,Ze,pt,Ge)}Pt!=null&&je?Iy(Pt,he&&he.ref,We,de||he,!de):Pt==null&&he&&he.ref!=null&&Iy(he.ref,null,We,he,!0)},C=(he,de,Te,Oe)=>{if(he==null)r(de.el=l(de.children),Te,Oe);else{const je=de.el=he.el;de.children!==he.children&&f(je,de.children)}},x=(he,de,Te,Oe)=>{he==null?r(de.el=c(de.children||""),Te,Oe):de.el=he.el},_=(he,de,Te,Oe)=>{[he.el,he.anchor]=b(he.children,de,Te,Oe,he.el,he.anchor)},E=({el:he,anchor:de},Te,Oe)=>{let je;for(;he&&he!==de;)je=m(he),r(he,Te,Oe),he=je;r(de,Te,Oe)},S=({el:he,anchor:de})=>{let Te;for(;he&&he!==de;)Te=m(he),o(he),he=Te;o(de)},I=(he,de,Te,Oe,je,We,it,Ze,pt)=>{de.type==="svg"?it="svg":de.type==="math"&&(it="mathml"),he==null?$(de,Te,Oe,je,We,it,Ze,pt):F(he,de,je,We,it,Ze,pt)},$=(he,de,Te,Oe,je,We,it,Ze)=>{let pt,et;const{props:Pt,shapeFlag:$t,transition:vt,dirs:Nt}=he;if(pt=he.el=s(he.type,We,Pt&&Pt.is,Pt),$t&8?h(pt,he.children):$t&16&&O(he.children,pt,null,Oe,je,f6(he,We),it,Ze),Nt&&kd(he,null,Oe,"created"),L(pt,he,he.scopeId,it,Oe),Pt){for(const lt in Pt)lt!=="value"&&!Qf(lt)&&a(pt,lt,null,Pt[lt],We,Oe);"value"in Pt&&a(pt,"value",null,Pt.value,We),(et=Pt.onVnodeBeforeMount)&&Rl(et,Oe,he)}Nt&&kd(he,null,Oe,"beforeMount");const dt=Vce(je,vt);dt&&vt.beforeEnter(pt),r(pt,de,Te),((et=Pt&&Pt.onVnodeMounted)||dt||Nt)&&Ts(()=>{et&&Rl(et,Oe,he),dt&&vt.enter(pt),Nt&&kd(he,null,Oe,"mounted")},je)},L=(he,de,Te,Oe,je)=>{if(Te&&y(he,Te),Oe)for(let We=0;We{for(let et=pt;et{const Ze=de.el=he.el;let{patchFlag:pt,dynamicChildren:et,dirs:Pt}=de;pt|=he.patchFlag&16;const $t=he.props||Br,vt=de.props||Br;let Nt;if(Te&&jv(Te,!1),(Nt=vt.onVnodeBeforeUpdate)&&Rl(Nt,Te,de,he),Pt&&kd(de,he,Te,"beforeUpdate"),Te&&jv(Te,!0),($t.innerHTML&&vt.innerHTML==null||$t.textContent&&vt.textContent==null)&&h(Ze,""),et?M(he.dynamicChildren,et,Ze,Te,Oe,f6(de,je),We):it||ee(he,de,Ze,null,Te,Oe,f6(de,je),We,!1),pt>0){if(pt&16)j(Ze,$t,vt,Te,je);else if(pt&2&&$t.class!==vt.class&&a(Ze,"class",null,vt.class,je),pt&4&&a(Ze,"style",$t.style,vt.style,je),pt&8){const dt=de.dynamicProps;for(let lt=0;lt{Nt&&Rl(Nt,Te,de,he),Pt&&kd(de,he,Te,"updated")},Oe)},M=(he,de,Te,Oe,je,We,it)=>{for(let Ze=0;Ze{if(de!==Te){if(de!==Br)for(const We in de)!Qf(We)&&!(We in Te)&&a(he,We,de[We],null,je,Oe);for(const We in Te){if(Qf(We))continue;const it=Te[We],Ze=de[We];it!==Ze&&We!=="value"&&a(he,We,Ze,it,je,Oe)}"value"in Te&&a(he,"value",de.value,Te.value,je)}},V=(he,de,Te,Oe,je,We,it,Ze,pt)=>{const et=de.el=he?he.el:l(""),Pt=de.anchor=he?he.anchor:l("");let{patchFlag:$t,dynamicChildren:vt,slotScopeIds:Nt}=de;Nt&&(Ze=Ze?Ze.concat(Nt):Nt),he==null?(r(et,Te,Oe),r(Pt,Te,Oe),O(de.children||[],Te,Pt,je,We,it,Ze,pt)):$t>0&&$t&64&&vt&&he.dynamicChildren?(M(he.dynamicChildren,vt,Te,je,We,it,Ze),(de.key!=null||je&&de===je.subTree)&&zz(he,de,!0)):ee(he,de,Te,Pt,je,We,it,Ze,pt)},W=(he,de,Te,Oe,je,We,it,Ze,pt)=>{de.slotScopeIds=Ze,he==null?de.shapeFlag&512?je.ctx.activate(de,Te,Oe,it,pt):U(de,Te,Oe,je,We,it,pt):X(he,de,pt)},U=(he,de,Te,Oe,je,We,it)=>{const Ze=he.component=ede(he,Oe,je);if(kw(he)&&(Ze.ctx.renderer=Ge),nde(Ze,!1,it),Ze.asyncDep){if(je&&je.registerDep(Ze,G,it),!he.el){const pt=Ze.subTree=R(Fo);x(null,pt,de,Te),he.placeholder=pt.el}}else G(Ze,he,de,Te,je,We,it)},X=(he,de,Te)=>{const Oe=de.component=he.component;if(bAe(he,de,Te))if(Oe.asyncDep&&!Oe.asyncResolved){Y(Oe,de,Te);return}else Oe.next=de,Oe.update();else de.el=he.el,Oe.vnode=de},G=(he,de,Te,Oe,je,We,it)=>{const Ze=()=>{if(he.isMounted){let{next:$t,bu:vt,u:Nt,parent:dt,vnode:lt}=he;{const Ke=zce(he);if(Ke){$t&&($t.el=lt.el,Y(he,$t,it)),Ke.asyncDep.then(()=>{he.isUnmounted||Ze()});return}}let Pe=$t,Ae;jv(he,!1),$t?($t.el=lt.el,Y(he,$t,it)):$t=lt,vt&&Mm(vt),(Ae=$t.props&&$t.props.onVnodeBeforeUpdate)&&Rl(Ae,dt,$t,lt),jv(he,!0);const Xe=xE(he),ut=he.subTree;he.subTree=Xe,w(ut,Xe,p(ut.el),be(ut),he,je,We),$t.el=Xe.el,Pe===null&&vA(he,Xe.el),Nt&&Ts(Nt,je),(Ae=$t.props&&$t.props.onVnodeUpdated)&&Ts(()=>Rl(Ae,dt,$t,lt),je)}else{let $t;const{el:vt,props:Nt}=de,{bm:dt,m:lt,parent:Pe,root:Ae,type:Xe}=he,ut=Np(de);if(jv(he,!1),dt&&Mm(dt),!ut&&($t=Nt&&Nt.onVnodeBeforeMount)&&Rl($t,Pe,de),jv(he,!0),vt&&Ve){const Ke=()=>{he.subTree=xE(he),Ve(vt,he.subTree,he,je,null)};ut&&Xe.__asyncHydrate?Xe.__asyncHydrate(vt,he,Ke):Ke()}else{Ae.ce&&Ae.ce._def.shadowRoot!==!1&&Ae.ce._injectChildStyle(Xe);const Ke=he.subTree=xE(he);w(null,Ke,Te,Oe,he,je,We),de.el=Ke.el}if(lt&&Ts(lt,je),!ut&&($t=Nt&&Nt.onVnodeMounted)){const Ke=de;Ts(()=>Rl($t,Pe,Ke),je)}(de.shapeFlag&256||Pe&&Np(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&he.a&&Ts(he.a,je),he.isMounted=!0,de=Te=Oe=null}};he.scope.on();const pt=he.effect=new xk(Ze);he.scope.off();const et=he.update=pt.run.bind(pt),Pt=he.job=pt.runIfDirty.bind(pt);Pt.i=he,Pt.id=he.uid,pt.scheduler=()=>Lz(Pt),jv(he,!0),et()},Y=(he,de,Te)=>{de.component=he;const Oe=he.vnode.props;he.vnode=de,he.next=null,oAe(he,de.props,Oe,Te),uAe(he,de.children,Te),ch(),Aee(he),dh()},ee=(he,de,Te,Oe,je,We,it,Ze,pt=!1)=>{const et=he&&he.children,Pt=he?he.shapeFlag:0,$t=de.children,{patchFlag:vt,shapeFlag:Nt}=de;if(vt>0){if(vt&128){J(et,$t,Te,Oe,je,We,it,Ze,pt);return}else if(vt&256){te(et,$t,Te,Oe,je,We,it,Ze,pt);return}}Nt&8?(Pt&16&&Re(et,je,We),$t!==et&&h(Te,$t)):Pt&16?Nt&16?J(et,$t,Te,Oe,je,We,it,Ze,pt):Re(et,je,We,!0):(Pt&8&&h(Te,""),Nt&16&&O($t,Te,Oe,je,We,it,Ze,pt))},te=(he,de,Te,Oe,je,We,it,Ze,pt)=>{he=he||Lm,de=de||Lm;const et=he.length,Pt=de.length,$t=Math.min(et,Pt);let vt;for(vt=0;vt<$t;vt++){const Nt=de[vt]=pt?Sp(de[vt]):Dl(de[vt]);w(he[vt],Nt,Te,null,je,We,it,Ze,pt)}et>Pt?Re(he,je,We,!0,!1,$t):O(de,Te,Oe,je,We,it,Ze,pt,$t)},J=(he,de,Te,Oe,je,We,it,Ze,pt)=>{let et=0;const Pt=de.length;let $t=he.length-1,vt=Pt-1;for(;et<=$t&&et<=vt;){const Nt=he[et],dt=de[et]=pt?Sp(de[et]):Dl(de[et]);if(Bc(Nt,dt))w(Nt,dt,Te,null,je,We,it,Ze,pt);else break;et++}for(;et<=$t&&et<=vt;){const Nt=he[$t],dt=de[vt]=pt?Sp(de[vt]):Dl(de[vt]);if(Bc(Nt,dt))w(Nt,dt,Te,null,je,We,it,Ze,pt);else break;$t--,vt--}if(et>$t){if(et<=vt){const Nt=vt+1,dt=Ntvt)for(;et<=$t;)ce(he[et],je,We,!0),et++;else{const Nt=et,dt=et,lt=new Map;for(et=dt;et<=vt;et++){const st=de[et]=pt?Sp(de[et]):Dl(de[et]);st.key!=null&<.set(st.key,et)}let Pe,Ae=0;const Xe=vt-dt+1;let ut=!1,Ke=0;const ze=new Array(Xe);for(et=0;et=Xe){ce(st,je,We,!0);continue}let St;if(st.key!=null)St=lt.get(st.key);else for(Pe=dt;Pe<=vt;Pe++)if(ze[Pe-dt]===0&&Bc(st,de[Pe])){St=Pe;break}St===void 0?ce(st,je,We,!0):(ze[St-dt]=et+1,St>=Ke?Ke=St:ut=!0,w(st,de[St],Te,null,je,We,it,Ze,pt),Ae++)}const Se=ut?cAe(ze):Lm;for(Pe=Se.length-1,et=Xe-1;et>=0;et--){const st=dt+et,St=de[st],At=de[st+1],gt=st+1{const{el:We,type:it,transition:Ze,children:pt,shapeFlag:et}=he;if(et&6){Z(he.component.subTree,de,Te,Oe);return}if(et&128){he.suspense.move(de,Te,Oe);return}if(et&64){it.move(he,de,Te,Ge);return}if(it===Tt){r(We,de,Te);for(let $t=0;$tZe.enter(We),je);else{const{leave:$t,delayLeave:vt,afterLeave:Nt}=Ze,dt=()=>{he.ctx.isUnmounted?o(We):r(We,de,Te)},lt=()=>{We._isLeaving&&We[Uf](!0),$t(We,()=>{dt(),Nt&&Nt()})};vt?vt(We,dt,lt):lt()}else r(We,de,Te)},ce=(he,de,Te,Oe=!1,je=!1)=>{const{type:We,props:it,ref:Ze,children:pt,dynamicChildren:et,shapeFlag:Pt,patchFlag:$t,dirs:vt,cacheIndex:Nt}=he;if($t===-2&&(je=!1),Ze!=null&&(ch(),Iy(Ze,null,Te,he,!0),dh()),Nt!=null&&(de.renderCache[Nt]=void 0),Pt&256){de.ctx.deactivate(he);return}const dt=Pt&1&&vt,lt=!Np(he);let Pe;if(lt&&(Pe=it&&it.onVnodeBeforeUnmount)&&Rl(Pe,de,he),Pt&6)Ce(he.component,Te,Oe);else{if(Pt&128){he.suspense.unmount(Te,Oe);return}dt&&kd(he,null,de,"beforeUnmount"),Pt&64?he.type.remove(he,de,Te,Ge,Oe):et&&!et.hasOnce&&(We!==Tt||$t>0&&$t&64)?Re(et,de,Te,!1,!0):(We===Tt&&$t&384||!je&&Pt&16)&&Re(pt,de,Te),Oe&&ye(he)}(lt&&(Pe=it&&it.onVnodeUnmounted)||dt)&&Ts(()=>{Pe&&Rl(Pe,de,he),dt&&kd(he,null,de,"unmounted")},Te)},ye=he=>{const{type:de,el:Te,anchor:Oe,transition:je}=he;if(de===Tt){ie(Te,Oe);return}if(de===Nm){S(he);return}const We=()=>{o(Te),je&&!je.persisted&&je.afterLeave&&je.afterLeave()};if(he.shapeFlag&1&&je&&!je.persisted){const{leave:it,delayLeave:Ze}=je,pt=()=>it(Te,We);Ze?Ze(he.el,We,pt):pt()}else We()},ie=(he,de)=>{let Te;for(;he!==de;)Te=m(he),o(he),he=Te;o(de)},Ce=(he,de,Te)=>{const{bum:Oe,scope:je,job:We,subTree:it,um:Ze,m:pt,a:et}=he;_3(pt),_3(et),Oe&&Mm(Oe),je.stop(),We&&(We.flags|=8,ce(it,he,de,Te)),Ze&&Ts(Ze,de),Ts(()=>{he.isUnmounted=!0},de)},Re=(he,de,Te,Oe=!1,je=!1,We=0)=>{for(let it=We;it{if(he.shapeFlag&6)return be(he.component.subTree);if(he.shapeFlag&128)return he.suspense.next();const de=m(he.anchor||he.el),Te=de&&de[cce];return Te?m(Te):de};let Fe=!1;const De=(he,de,Te)=>{he==null?de._vnode&&ce(de._vnode,null,null,!0):w(de._vnode||null,he,de,null,null,null,Te),de._vnode=he,Fe||(Fe=!0,Aee(),w3(),Fe=!1)},Ge={p:w,um:ce,m:Z,r:ye,mt:U,mc:O,pc:ee,pbc:M,n:be,o:e};let qe,Ve;return t&&([qe,Ve]=t(Ge)),{render:De,hydrate:qe,createApp:rAe(De,qe)}}function f6({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 jv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vce(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zz(e,t,n=!1){const r=e.children,o=t.children;if(Sn(r)&&Sn(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 zce(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zce(t)}function _3(e){if(e)for(let t=0;trn(Uce);function Yo(e,t){return ww(e,null,t)}function dAe(e,t){return ww(e,null,{flush:"post"})}function Wce(e,t){return ww(e,null,{flush:"sync"})}function bt(e,t,n){return ww(e,t,n)}function ww(e,t,n=Br){const{immediate:r,deep:o,flush:a,once:s}=n,l=Rr({},n),c=t&&r||!t&&a!=="post";let f;if(t1){if(a==="sync"){const y=Hce();f=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=js,y.resume=js,y.pause=js,y}}const h=sa;l.call=(y,b,w)=>ac(y,h,b,w);let p=!1;a==="post"?l.scheduler=y=>{Ts(y,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(y,b)=>{b?y():Lz(y)}),l.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,h&&(y.id=h.uid,y.i=h))};const m=oIe(e,t,l);return t1&&(f?f.push(m):c&&m()),m}function fAe(e,t,n){const r=this.proxy,o=Jn(e)?e.includes(".")?Gce(r,e):()=>r[e]:e.bind(r,r);let a;Wn(t)?a=t:(a=t.handler,n=t);const s=eg(this),l=ww(o,a.bind(r),n);return s(),l}function Gce(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=Br,m;return Wce(()=>{const y=e[o];Ba(h,y)&&(h=y,f())}),{get(){return c(),n.get?n.get(h):h},set(y){const b=n.set?n.set(y):y;if(!Ba(b,h)&&!(p!==Br&&Ba(y,p)))return;const w=r.vnode.props;w&&(t in w||o in w||a in w)&&(`onUpdate:${t}`in w||`onUpdate:${o}`in w||`onUpdate:${a}`in w)||(h=y,f()),r.emit(`update:${t}`,b),Ba(y,b)&&Ba(y,p)&&!Ba(b,m)&&f(),p=y,m=b}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Br:l,done:!1}:{done:!0}}}},l}const Kce=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${eo(t)}Modifiers`]||e[`${ja(t)}Modifiers`];function pAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Br;let o=n;const a=t.startsWith("update:"),s=a&&Kce(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Jn(h)?h.trim():h)),s.number&&(o=n.map(wk)));let l,c=r[l=$m(t)]||r[l=$m(eo(t))];!c&&a&&(c=r[l=$m(ja(t))]),c&&ac(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,ac(f,e,6,o)}}const vAe=new WeakMap;function qce(e,t,n=!1){const r=n?vAe:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!Wn(e)){const c=f=>{const h=qce(f,t,!0);h&&(l=!0,Rr(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(ui(e)&&r.set(e,null),null):(Sn(a)?a.forEach(c=>s[c]=null):Rr(s,a),ui(e)&&r.set(e,s),s)}function pA(e,t){return!e||!ov(t)?!1:(t=t.slice(2).replace(/Once$/,""),si(e,t[0].toLowerCase()+t.slice(1))||si(e,ja(t))||si(e,t))}function xE(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:y,ctx:b,inheritAttrs:w}=e,C=Lk(e);let x,_;try{if(n.shapeFlag&4){const S=o||r,I=S;x=Dl(f.call(I,S,h,p,y,m,b)),_=l}else{const S=t;x=Dl(S.length>1?S(p,{attrs:l,slots:s,emit:c}):S(p,null)),_=t.props?l:gAe(l)}}catch(S){P2.length=0,bg(S,e,1),x=R(Fo)}let E=x;if(_&&w!==!1){const S=Object.keys(_),{shapeFlag:I}=E;S.length&&I&7&&(a&&S.some(QI)&&(_=yAe(_,a)),E=Ga(E,_,!1,!0))}return n.dirs&&(E=Ga(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&hh(E,n.transition),x=E,Lk(C),x}function mAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||ov(n))&&((t||(t={}))[n]=e[n]);return t},yAe=(e,t)=>{const n={};for(const r in e)(!QI(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function bAe(e,t,n){const{props:r,children:o,component:a}=e,{props:s,children:l,patchFlag:c}=t,f=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?zee(r,s,f):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let $F=0;const SAe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,f){if(e==null)wAe(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}CAe(e,t,n,r,o,s,l,c,f)}},hydrate:xAe,normalize:_Ae},kAe=SAe;function $k(e,t){const n=e.props&&e.props[t];Wn(n)&&n()}function wAe(e,t,n,r,o,a,s,l,c){const{p:f,o:{createElement:h}}=c,p=h("div"),m=e.suspense=Yce(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?($k(e,"onPending"),$k(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,a,s),Ay(m,e.ssFallback)):m.resolve(!1,!0)}function CAe(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,y=t.ssFallback,{activeBranch:b,pendingBranch:w,isInFallback:C,isHydrating:x}=p;if(w)p.pendingBranch=m,Bc(w,m)?(c(w,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():C&&(x||(c(b,y,n,r,o,null,a,s,l),Ay(p,y)))):(p.pendingId=$F++,x?(p.isHydrating=!1,p.activeBranch=w):f(w,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),C?(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():(c(b,y,n,r,o,null,a,s,l),Ay(p,y))):b&&Bc(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&&Bc(b,m))c(b,m,n,r,o,p,a,s,l),Ay(p,m);else if($k(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=$F++,c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:_,pendingId:E}=p;_>0?setTimeout(()=>{p.pendingId===E&&p.fallback(y)},_):_===0&&p.fallback(y)}}function Yce(e,t,n,r,o,a,s,l,c,f,h=!1){const{p,m,um:y,n:b,o:{parentNode:w,remove:C}}=f;let x;const _=TAe(e);_&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const E=e.props?Ck(e.props.timeout):void 0,S=a,I={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:$F++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve($=!1,L=!1){const{vnode:O,activeBranch:F,pendingBranch:M,pendingId:j,effects:V,parentComponent:W,container:U}=I;let X=!1;I.isHydrating?I.isHydrating=!1:$||(X=F&&M.transition&&M.transition.mode==="out-in",X&&(F.transition.afterLeave=()=>{j===I.pendingId&&(m(M,U,a===S?b(F):a,0),Ik(V))}),F&&(w(F.el)===U&&(a=b(F)),y(F,W,I,!0)),X||m(M,U,a,0)),Ay(I,M),I.pendingBranch=null,I.isInFallback=!1;let G=I.parent,Y=!1;for(;G;){if(G.pendingBranch){G.effects.push(...V),Y=!0;break}G=G.parent}!Y&&!X&&Ik(V),I.effects=[],_&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!L&&t.resolve()),$k(O,"onResolve")},fallback($){if(!I.pendingBranch)return;const{vnode:L,activeBranch:O,parentComponent:F,container:M,namespace:j}=I;$k(L,"onFallback");const V=b(O),W=()=>{I.isInFallback&&(p(null,$,M,V,F,null,j,l,c),Ay(I,$))},U=$.transition&&$.transition.mode==="out-in";U&&(O.transition.afterLeave=W),I.isInFallback=!0,y(O,F,null,!0),U||W()},move($,L,O){I.activeBranch&&m(I.activeBranch,$,L,O),I.container=$},next(){return I.activeBranch&&b(I.activeBranch)},registerDep($,L,O){const F=!!I.pendingBranch;F&&I.deps++;const M=$.vnode.el;$.asyncDep.catch(j=>{bg(j,$,0)}).then(j=>{if($.isUnmounted||I.isUnmounted||I.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:V}=$;DF($,j,!1),M&&(V.el=M);const W=!M&&$.subTree.el;L($,V,w(M||$.subTree.el),M?null:b($.subTree),I,s,O),W&&C(W),vA($,V.el),F&&--I.deps===0&&I.resolve()})},unmount($,L){I.isUnmounted=!0,I.activeBranch&&y(I.activeBranch,n,$,L),I.pendingBranch&&y(I.pendingBranch,n,$,L)}};return I}function xAe(e,t,n,r,o,a,s,l,c){const f=t.suspense=Yce(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 _Ae(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Uee(r?n.default:n),e.ssFallback=r?Uee(n.fallback):R(Fo)}function Uee(e){let t;if(Wn(e)){const n=Jm&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=Ua,Zce())}return Sn(e)&&(e=mAe(e)),e=Dl(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xce(e,t){t&&t.pendingBranch?Sn(e)?t.effects.push(...e):t.effects.push(e):Ik(e)}function Ay(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,vA(r,o))}function TAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Tt=Symbol.for("v-fgt"),Bp=Symbol.for("v-txt"),Fo=Symbol.for("v-cmt"),Nm=Symbol.for("v-stc"),P2=[];let Ua=null;function z(e=!1){P2.push(Ua=e?null:[])}function Zce(){P2.pop(),Ua=P2[P2.length-1]||null}let Jm=1;function Mk(e,t=!1){Jm+=e,e<0&&Ua&&t&&(Ua.hasOnce=!0)}function Jce(e){return e.dynamicChildren=Jm>0?Ua||Lm:null,Zce(),Jm>0&&Ua&&Ua.push(e),e}function q(e,t,n,r,o,a){return Jce(A(e,t,n,r,o,a,!0))}function Ne(e,t,n,r,o){return Jce(R(e,t,n,r,o,!0))}function ii(e){return e?e.__v_isVNode===!0:!1}function Bc(e,t){return e.type===t.type&&e.key===t.key}function EAe(e){}const Qce=({key:e})=>e??null,_E=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Jn(e)||to(e)||Wn(e)?{i:aa,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,r=0,o=null,a=e===Tt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qce(t),ref:t&&_E(t),scopeId:dA,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:aa};return l?(Uz(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Jn(n)?8:16),Jm>0&&!s&&Ua&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ua.push(c),c}const R=IAe;function IAe(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===_ce)&&(e=Fo),ii(e)){const l=Ga(e,t,!0);return n&&Uz(l,n),Jm>0&&!a&&Ua&&(l.shapeFlag&6?Ua[Ua.indexOf(e)]=l:Ua.push(l)),l.patchFlag=-2,l}if(DAe(e)&&(e=e.__vccOpts),t){t=Fs(t);let{class:l,style:c}=t;l&&!Jn(l)&&(t.class=ne(l)),ui(c)&&(uA(c)&&!Sn(c)&&(c=Rr({},c)),t.style=Ee(c))}const s=Jn(e)?1:T3(e)?128:dce(e)?64:ui(e)?4:Wn(e)?2:0;return A(e,t,n,r,o,s,a,!0)}function Fs(e){return e?uA(e)||$ce(e)?Rr({},e):e:null}function Ga(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,f=t?xt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Qce(f),ref:t&&t.ref?n&&a?Sn(a)?a.concat(_E(t)):[a,_E(t)]:_E(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!==Tt?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&&Ga(e.ssContent),ssFallback:e.ssFallback&&Ga(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&hh(h,c.clone(h)),h}function $e(e=" ",t=0){return R(Bp,null,e,t)}function Qm(e,t){const n=R(Nm,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(z(),Ne(Fo,null,e)):R(Fo,null,e)}function Dl(e){return e==null||typeof e=="boolean"?R(Fo):Sn(e)?R(Tt,null,e.slice()):ii(e)?Sp(e):R(Bp,null,String(e))}function Sp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ga(e)}function Uz(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Sn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Uz(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!$ce(t)?t._ctx=aa:o===3&&aa&&(aa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Wn(t)?(t={default:t,_ctx:aa},n=32):(t=String(t),r&64?(n=16,t=[$e(t)]):n=8);e.children=t,e.shapeFlag|=n}function xt(...e){const t={};for(let n=0;nsa||aa;let E3,MF;{const e=bw(),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)}};E3=t("__VUE_INSTANCE_SETTERS__",n=>sa=n),MF=t("__VUE_SSR_SETTERS__",n=>t1=n)}const eg=e=>{const t=sa;return E3(e),e.scope.on(),()=>{e.scope.off(),E3(t)}},RF=()=>{sa&&sa.scope.off(),E3(null)};function tde(e){return e.vnode.shapeFlag&4}let t1=!1;function nde(e,t=!1,n=!1){t&&MF(t);const{props:r,children:o}=e.vnode,a=tde(e);iAe(e,r,a,t),lAe(e,o,n||t);const s=a?PAe(e,t):void 0;return t&&MF(!1),s}function PAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,IF);const{setup:r}=n;if(r){ch();const o=e.setupContext=r.length>1?ide(e):null,a=eg(e),s=L1(r,e,0,[e.props,o]),l=tA(s);if(dh(),a(),(l||e.sp)&&!Np(e)&&Mz(e),l){if(s.then(RF,RF),t)return s.then(c=>{DF(e,c,t)}).catch(c=>{bg(c,e,0)});e.asyncDep=s}else DF(e,s,t)}else rde(e,t)}function DF(e,t,n){Wn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ui(t)&&(e.setupState=Az(t)),rde(e,n)}let I3,OF;function $Ae(e){I3=e,OF=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,NIe))}}const MAe=()=>!I3;function rde(e,t,n){const r=e.type;if(!e.render){if(!t&&I3&&!r.render){const o=r.template||Fz(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,f=Rr(Rr({isCustomElement:a,delimiters:l},s),c);r.render=I3(o,f)}}e.render=r.render||js,OF&&OF(e)}{const o=eg(e);ch();try{ZIe(e)}finally{dh(),o()}}}const RAe={get(e,t){return Fa(e,"get",""),e[t]}};function ide(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,RAe),slots:e.slots,emit:e.emit,expose:t}}function Cw(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Az(cA(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in L2)return L2[n](e)},has(t,n){return n in t||n in L2}})):e.proxy}function NF(e,t=!0){return Wn(e)?e.displayName||e.name:e.name||t&&e.__name}function DAe(e){return Wn(e)&&"__vccOpts"in e}const N=(e,t)=>tIe(e,t,t1);function Is(e,t,n){try{Mk(-1);const r=arguments.length;return r===2?ui(t)&&!Sn(t)?ii(t)?R(e,null,[t]):R(e,t):R(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ii(n)&&(n=[n]),R(e,t,n))}finally{Mk(1)}}function OAe(){}function NAe(e,t,n,r){const o=n[r];if(o&&ode(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function ode(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Ua&&Ua.push(e),!0}const sde="3.5.22",BAe=js,FAe=cIe,jAe=uy,VAe=uce,zAe={createComponentInstance:ede,setupComponent:nde,renderComponentRoot:xE,setCurrentRenderingInstance:Lk,isVNode:ii,normalizeVNode:Dl,getComponentPublicInstance:Cw,ensureValidVNode:Bz,pushWarningContext:sIe,popWarningContext:aIe},UAe=zAe,HAe=null,WAe=null,GAe=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let BF;const Hee=typeof window<"u"&&window.trustedTypes;if(Hee)try{BF=Hee.createPolicy("vue",{createHTML:e=>e})}catch{}const ade=BF?e=>BF.createHTML(e):e=>e,KAe="http://www.w3.org/2000/svg",qAe="http://www.w3.org/1998/Math/MathML",Bf=typeof document<"u"?document:null,Wee=Bf&&Bf.createElement("template"),YAe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Bf.createElementNS(KAe,e):t==="mathml"?Bf.createElementNS(qAe,e):n?Bf.createElement(e,{is:n}):Bf.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Bf.createTextNode(e),createComment:e=>Bf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bf.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{Wee.innerHTML=ade(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=Wee.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]}},Zh="transition",ES="animation",n1=Symbol("_vtc"),lde={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},ude=Rr({},$z,lde),XAe=e=>(e.displayName="Transition",e.props=ude,e),Xo=XAe((e,{slots:t})=>Is(mce,cde(e),t)),Vv=(e,t=[])=>{Sn(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gee=e=>e?Sn(e)?e.some(t=>t.length>1):e.length>1:!1;function cde(e){const t={};for(const V in e)V in lde||(t[V]=e[V]);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:y=`${n}-leave-to`}=e,b=ZAe(o),w=b&&b[0],C=b&&b[1],{onBeforeEnter:x,onEnter:_,onEnterCancelled:E,onLeave:S,onLeaveCancelled:I,onBeforeAppear:$=x,onAppear:L=_,onAppearCancelled:O=E}=t,F=(V,W,U,X)=>{V._enterCancelled=X,hp(V,W?h:l),hp(V,W?f:s),U&&U()},M=(V,W)=>{V._isLeaving=!1,hp(V,p),hp(V,y),hp(V,m),W&&W()},j=V=>(W,U)=>{const X=V?L:_,G=()=>F(W,V,U);Vv(X,[W,G]),Kee(()=>{hp(W,V?c:a),yd(W,V?h:l),Gee(X)||qee(W,r,w,G)})};return Rr(t,{onBeforeEnter(V){Vv(x,[V]),yd(V,a),yd(V,s)},onBeforeAppear(V){Vv($,[V]),yd(V,c),yd(V,f)},onEnter:j(!1),onAppear:j(!0),onLeave(V,W){V._isLeaving=!0;const U=()=>M(V,W);yd(V,p),V._enterCancelled?(yd(V,m),FF(V)):(FF(V),yd(V,m)),Kee(()=>{V._isLeaving&&(hp(V,p),yd(V,y),Gee(S)||qee(V,r,C,U))}),Vv(S,[V,U])},onEnterCancelled(V){F(V,!1,void 0,!0),Vv(E,[V])},onAppearCancelled(V){F(V,!0,void 0,!0),Vv(O,[V])},onLeaveCancelled(V){M(V),Vv(I,[V])}})}function ZAe(e){if(e==null)return null;if(ui(e))return[h6(e.enter),h6(e.leave)];{const t=h6(e);return[t,t]}}function h6(e){return Ck(e)}function yd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[n1]||(e[n1]=new Set)).add(t)}function hp(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[n1];n&&(n.delete(t),n.size||(e[n1]=void 0))}function Kee(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let JAe=0;function qee(e,t,n,r){const o=e._endId=++JAe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=dde(e,t);if(!s)return r();const f=s+"end";let h=0;const p=()=>{e.removeEventListener(f,m),a()},m=y=>{y.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[b]||"").split(", "),o=r(`${Zh}Delay`),a=r(`${Zh}Duration`),s=Yee(o,a),l=r(`${ES}Delay`),c=r(`${ES}Duration`),f=Yee(l,c);let h=null,p=0,m=0;t===Zh?s>0&&(h=Zh,p=s,m=a.length):t===ES?f>0&&(h=ES,p=f,m=c.length):(p=Math.max(s,f),h=p>0?s>f?Zh:ES:null,m=h?h===Zh?a.length:c.length:0);const y=h===Zh&&/\b(?:transform|all)(?:,|$)/.test(r(`${Zh}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:y}}function Yee(e,t){for(;e.lengthXee(n)+Xee(e[r])))}function Xee(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function FF(e){return(e?e.ownerDocument:document).body.offsetHeight}function QAe(e,t,n){const r=e[n1];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const A3=Symbol("_vod"),fde=Symbol("_vsh"),Eo={name:"show",beforeMount(e,{value:t},{transition:n}){e[A3]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):IS(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),IS(e,!0),r.enter(e)):r.leave(e,()=>{IS(e,!1)}):IS(e,t))},beforeUnmount(e,{value:t}){IS(e,t)}};function IS(e,t){e.style.display=t?e[A3]:"none",e[fde]=!t}function eLe(){Eo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const hde=Symbol("");function tLe(e){const t=Di();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>L3(a,o))},r=()=>{const o=e(t.proxy);t.ce?L3(t.ce,o):jF(t.subTree,o),n(o)};Dz(()=>{Ik(r)}),qt(()=>{bt(r,js,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Fr(()=>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)L3(e.el,t);else if(e.type===Tt)e.children.forEach(n=>jF(n,t));else if(e.type===Nm){let{el:n,anchor:r}=e;for(;n&&(L3(n,t),n!==r);)n=n.nextSibling}}function L3(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Fue(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[hde]=r}}const nLe=/(?:^|;)\s*display\s*:/;function rLe(e,t,n){const r=e.style,o=Jn(n);let a=!1;if(n&&!o){if(t)if(Jn(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&TE(r,l,"")}else for(const s in t)n[s]==null&&TE(r,s,"");for(const s in n)s==="display"&&(a=!0),TE(r,s,n[s])}else if(o){if(t!==n){const s=r[hde];s&&(n+=";"+s),r.cssText=n,a=nLe.test(n)}}else t&&e.removeAttribute("style");A3 in e&&(e[A3]=a?r.display:"",e[fde]&&(r.display="none"))}const Zee=/\s*!important$/;function TE(e,t,n){if(Sn(n))n.forEach(r=>TE(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=iLe(e,t);Zee.test(n)?e.setProperty(ja(r),n.replace(Zee,""),"important"):e[r]=n}}const Jee=["Webkit","Moz","ms"],p6={};function iLe(e,t){const n=p6[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return p6[t]=r;r=av(r);for(let o=0;ov6||(lLe.then(()=>v6=0),v6=Date.now());function cLe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ac(dLe(r,n.value),t,5,[r])};return n.value=e,n.attached=uLe(),n}function dLe(e,t){if(Sn(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 ite=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fLe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?QAe(e,r,s):t==="style"?rLe(e,n,r):ov(t)?QI(t)||sLe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hLe(e,t,r,s))?(tte(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ete(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Jn(r))?tte(e,eo(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ete(e,t,r,s))};function hLe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ite(t)&&Wn(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 ite(t)&&Jn(n)?!1:t in e}const ote={};function pde(e,t,n){let r=fe(e,t);yw(r)&&(r=Rr({},r,t));class o extends mA{constructor(s){super(r,s,n)}}return o.def=r,o}const pLe=((e,t)=>pde(e,t,Cde)),vLe=typeof HTMLElement<"u"?HTMLElement:class{};class mA extends vLe{constructor(t,n={},r=i1){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!==i1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Rr({},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 mA){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,nn(()=>{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&&!Sn(a))for(const c in a){const f=a[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=Ck(this._props[c])),(l||(l=Object.create(null)))[eo(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)si(this,r)||Object.defineProperty(this,r,{get:()=>He(n[r])})}_resolveProps(t){const{props:n}=t,r=Sn(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(eo))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):ote;const o=eo(t);n&&this._numberProps&&this._numberProps[o]&&(r=Ck(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===ote?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(ja(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ja(t),n+""):n||this.removeAttribute(ja(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),lc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=R(this._def,Rr(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,yw(s[0])?Rr({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),ja(a)!==a&&o(ja(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 vde(e){const t=Di(),n=t&&t.ce;return n||null}function mLe(){const e=vde();return e&&e.shadowRoot}function gLe(e="$style"){{const t=Di();if(!t)return Br;const n=t.type.__cssModules;if(!n)return Br;const r=n[e];return r||Br}}const mde=new WeakMap,gde=new WeakMap,P3=Symbol("_moveCb"),ste=Symbol("_enterCb"),yLe=e=>(delete e.props.mode,e),bLe=yLe({name:"TransitionGroup",props:Rr({},ude,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Di(),r=Pz();let o,a;return ma(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!CLe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(SLe),o.forEach(kLe);const l=o.filter(wLe);FF(n.vnode.el),l.forEach(c=>{const f=c.el,h=f.style;yd(f,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=f[P3]=m=>{m&&m.target!==f||(!m||m.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",p),f[P3]=null,hp(f,s))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Xr(e),l=cde(s);let c=s.tag||Tt;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}=dde(r);return a.removeChild(r),s}const Wp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Sn(t)?n=>Mm(t,n):t};function xLe(e){e.target.composing=!0}function ate(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tc=Symbol("_assign"),da={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[tc]=Wp(o);const a=r||o.props&&o.props.type==="number";Kf(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=wk(l)),e[tc](l)}),n&&Kf(e,"change",()=>{e.value=e.value.trim()}),t||(Kf(e,"compositionstart",xLe),Kf(e,"compositionend",ate),Kf(e,"change",ate))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[tc]=Wp(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?wk(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))}},Hz={deep:!0,created(e,t,n){e[tc]=Wp(n),Kf(e,"change",()=>{const r=e._modelValue,o=r1(e),a=e.checked,s=e[tc];if(Sn(r)){const l=Sw(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(sv(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(yde(e,a))})},mounted:lte,beforeUpdate(e,t,n){e[tc]=Wp(n),lte(e,t,n)}};function lte(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Sn(t))o=Sw(t,r.props.value)>-1;else if(sv(t))o=t.has(r.props.value);else{if(t===n)return;o=uh(t,yde(e,!0))}e.checked!==o&&(e.checked=o)}const Wz={created(e,{value:t},n){e.checked=uh(t,n.props.value),e[tc]=Wp(n),Kf(e,"change",()=>{e[tc](r1(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[tc]=Wp(r),t!==n&&(e.checked=uh(t,r.props.value))}},Gz={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=sv(t);Kf(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?wk(r1(s)):r1(s));e[tc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,nn(()=>{e._assigning=!1})}),e[tc]=Wp(r)},mounted(e,{value:t}){ute(e,t)},beforeUpdate(e,t,n){e[tc]=Wp(n)},updated(e,{value:t}){e._assigning||ute(e,t)}};function ute(e,t){const n=e.multiple,r=Sn(t);if(!(n&&!r&&!sv(t))){for(let o=0,a=e.options.length;oString(f)===String(l)):s.selected=Sw(t,l)>-1}else s.selected=t.has(l);else if(uh(r1(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function r1(e){return"_value"in e?e._value:e.value}function yde(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gA={created(e,t,n){K_(e,t,n,null,"created")},mounted(e,t,n){K_(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){K_(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){K_(e,t,n,r,"updated")}};function bde(e,t){switch(e){case"SELECT":return Gz;case"TEXTAREA":return da;default:switch(t){case"checkbox":return Hz;case"radio":return Wz;default:return da}}}function K_(e,t,n,r,o){const s=bde(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function _Le(){da.getSSRProps=({value:e})=>({value:e}),Wz.getSSRProps=({value:e},t)=>{if(t.props&&uh(t.props.value,e))return{checked:!0}},Hz.getSSRProps=({value:e},t)=>{if(Sn(e)){if(t.props&&Sw(e,t.props.value)>-1)return{checked:!0}}else if(sv(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gA.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=bde(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TLe=["ctrl","shift","alt","meta"],ELe={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)=>TLe.some(n=>e[`${n}Key`]&&!t.includes(n))},lo=(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=ja(o.key);if(t.some(s=>s===a||ILe[s]===a))return e(o)}))},Sde=Rr({patchProp:fLe},YAe);let $2,cte=!1;function kde(){return $2||($2=Bce(Sde))}function wde(){return $2=cte?$2:Fce(Sde),cte=!0,$2}const lc=((...e)=>{kde().render(...e)}),ALe=((...e)=>{wde().hydrate(...e)}),i1=((...e)=>{const t=kde().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=_de(r);if(!o)return;const a=t._component;!Wn(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,xde(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),Cde=((...e)=>{const t=wde().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=_de(r);if(o)return n(o,!0,xde(o))},t});function xde(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _de(e){return Jn(e)?document.querySelector(e):e}let dte=!1;const LLe=()=>{dte||(dte=!0,_Le(),eLe())},PLe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:mce,BaseTransitionPropsValidators:$z,Comment:Fo,DeprecationTypes:GAe,EffectScope:wz,ErrorCodes:uIe,ErrorTypeStrings:FAe,Fragment:Tt,KeepAlive:MIe,ReactiveEffect:xk,Static:Nm,Suspense:kAe,Teleport:Sg,Text:Bp,TrackOpTypes:nIe,Transition:Xo,TransitionGroup:$1,TriggerOpTypes:rIe,VueElement:mA,assertNumber:lIe,callWithAsyncErrorHandling:ac,callWithErrorHandling:L1,camelize:eo,capitalize:av,cloneVNode:Ga,compatUtils:WAe,computed:N,createApp:i1,createBlock:Ne,createCommentVNode:ge,createElementBlock:q,createElementVNode:A,createHydrationRenderer:Fce,createPropsRestProxy:YIe,createRenderer:Bce,createSSRApp:Cde,createSlots:Wi,createStaticVNode:Qm,createTextVNode:$e,createVNode:R,customRef:nce,defineAsyncComponent:lv,defineComponent:fe,defineCustomElement:pde,defineEmits:FIe,defineExpose:jIe,defineModel:UIe,defineOptions:VIe,defineProps:BIe,defineSSRCustomElement:pLe,defineSlots:zIe,devtools:jAe,effect:T3e,effectScope:Cz,getCurrentInstance:Di,getCurrentScope:iA,getCurrentWatcher:iIe,getTransitionRawChildren:fA,guardReactiveProps:Fs,h:Is,handleError:bg,hasInjectionContext:Ace,hydrate:ALe,hydrateOnIdle:TIe,hydrateOnInteraction:LIe,hydrateOnMediaQuery:AIe,hydrateOnVisible:IIe,initCustomFormatter:OAe,initDirectivesForSSR:LLe,inject:rn,isMemoSame:ode,isProxy:uA,isReactive:Rd,isReadonly:fh,isRef:to,isRuntimeOnly:MAe,isShallow:xu,isVNode:ii,markRaw:cA,mergeDefaults:KIe,mergeModels:qIe,mergeProps:xt,nextTick:nn,normalizeClass:ne,normalizeProps:ai,normalizeStyle:Ee,onActivated:yce,onBeforeMount:Sce,onBeforeUnmount:uo,onBeforeUpdate:Dz,onDeactivated:Rz,onErrorCaptured:xce,onMounted:qt,onRenderTracked:Cce,onRenderTriggered:wce,onScopeDispose:xz,onServerPrefetch:kce,onUnmounted:Fr,onUpdated:ma,onWatcherCleanup:ice,openBlock:z,popScopeId:pIe,provide:gr,proxyRefs:Az,pushScopeId:hIe,queuePostFlushCb:Ik,reactive:Lt,readonly:Ek,ref:ae,registerRuntimeCompiler:$Ae,render:lc,renderList:Kt,renderSlot:Qe,resolveComponent:ke,resolveDirective:P1,resolveDynamicComponent:la,resolveFilter:HAe,resolveTransitionHooks:e1,setBlockTracking:Mk,setDevtoolsHook:VAe,setTransitionHooks:hh,shallowReactive:Iz,shallowReadonly:G3e,shallowRef:Dm,ssrContextKey:Uce,ssrUtils:UAe,stop:E3e,toDisplayString:_e,toHandlerKey:$m,toHandlers:OIe,toRaw:Xr,toRef:Yl,toRefs:Ot,toValue:Y3e,transformVNodeArgs:EAe,triggerRef:q3e,unref:He,useAttrs:GIe,useCssModule:gLe,useCssVars:tLe,useHost:vde,useId:yIe,useModel:hAe,useSSRContext:Hce,useShadowRoot:mLe,useSlots:WIe,useTemplateRef:bIe,useTransitionState:Pz,vModelCheckbox:Hz,vModelDynamic:gA,vModelRadio:Wz,vModelSelect:Gz,vModelText:da,vShow:Eo,version:sde,warn:BAe,watch:bt,watchEffect:Yo,watchPostEffect:dAe,watchSyncEffect:Wce,withAsyncContext:XIe,withCtx:se,withDefaults:HIe,withDirectives:Dr,withKeys:Yf,withMemo:NAe,withModifiers:lo,withScopeId:vIe},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const cy=typeof document<"u";function Tde(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&&Tde(e.default)}const bi=Object.assign;function m6(e,t){const n={};for(const r in t){const o=t[r];n[r]=Hc(o)?o.map(e):e(o)}return n}const M2=()=>{},Hc=Array.isArray,Ede=/#/g,MLe=/&/g,RLe=/\//g,DLe=/=/g,OLe=/\?/g,Ide=/\+/g,NLe=/%5B/g,BLe=/%5D/g,Ade=/%5E/g,FLe=/%60/g,Lde=/%7B/g,jLe=/%7C/g,Pde=/%7D/g,VLe=/%20/g;function Kz(e){return encodeURI(""+e).replace(jLe,"|").replace(NLe,"[").replace(BLe,"]")}function zLe(e){return Kz(e).replace(Lde,"{").replace(Pde,"}").replace(Ade,"^")}function VF(e){return Kz(e).replace(Ide,"%2B").replace(VLe,"+").replace(Ede,"%23").replace(MLe,"%26").replace(FLe,"`").replace(Lde,"{").replace(Pde,"}").replace(Ade,"^")}function ULe(e){return VF(e).replace(DLe,"%3D")}function HLe(e){return Kz(e).replace(Ede,"%23").replace(OLe,"%3F")}function WLe(e){return e==null?"":HLe(e).replace(RLe,"%2F")}function Rk(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const GLe=/\/$/,KLe=e=>e.replace(GLe,"");function g6(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=ZLe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:Rk(s)}}function qLe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function fte(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function YLe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&o1(t.matched[r],n.matched[o])&&$de(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function o1(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $de(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!XLe(e[n],t[n]))return!1;return!0}function XLe(e,t){return Hc(e)?hte(e,t):Hc(t)?hte(t,e):e===t}function hte(e,t){return Hc(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ZLe(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 Jh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Dk;(function(e){e.pop="pop",e.push="push"})(Dk||(Dk={}));var R2;(function(e){e.back="back",e.forward="forward",e.unknown=""})(R2||(R2={}));function JLe(e){if(!e)if(cy){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),KLe(e)}const QLe=/^[^#]+#/;function e5e(e,t){return e.replace(QLe,"#")+t}function t5e(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 yA=()=>({left:window.scrollX,top:window.scrollY});function n5e(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=t5e(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 pte(e,t){return(history.state?history.state.position-t:-1)+e}const zF=new Map;function r5e(e,t){zF.set(e,t)}function i5e(e){const t=zF.get(e);return zF.delete(e),t}let o5e=()=>location.protocol+"//"+location.host;function Mde(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),fte(c,"")}return fte(n,e)+r+o}function s5e(e,t,n,r){let o=[],a=[],s=null;const l=({state:m})=>{const y=Mde(e,location),b=n.value,w=t.value;let C=0;if(m){if(n.value=y,t.value=m,s&&s===b){s=null;return}C=w?m.position-w.position:0}else r(y);o.forEach(x=>{x(n.value,b,{delta:C,type:Dk.pop,direction:C?C>0?R2.forward:R2.back:R2.unknown})})};function c(){s=n.value}function f(m){o.push(m);const y=()=>{const b=o.indexOf(m);b>-1&&o.splice(b,1)};return a.push(y),y}function h(){const{history:m}=window;m.state&&m.replaceState(bi({},m.state,{scroll:yA()}),"")}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 vte(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?yA():null}}function a5e(e){const{history:t,location:n}=window,r={value:Mde(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:o5e()+e+c;try{t[h?"replaceState":"pushState"](f,"",m),o.value=f}catch(y){console.error(y),n[h?"replace":"assign"](m)}}function s(c,f){const h=bi({},t.state,vte(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=bi({},o.value,t.state,{forward:c,scroll:yA()});a(h.current,h,!0);const p=bi({},vte(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 l5e(e){e=JLe(e);const t=a5e(e),n=s5e(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=bi({location:"",base:e,go:r,createHref:e5e.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 u5e(e){return typeof e=="string"||e&&typeof e=="object"}function Rde(e){return typeof e=="string"||typeof e=="symbol"}const Dde=Symbol("");var mte;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(mte||(mte={}));function s1(e,t){return bi(new Error,{type:e,[Dde]:!0},t)}function Pf(e,t){return e instanceof Error&&Dde in e&&(t==null||!!(e.type&t))}const gte="[^/]+?",c5e={sensitive:!1,strict:!1,start:!0,end:!0},d5e=/[.+*?^${}()[\]/\\]/g;function f5e(e,t){const n=bi({},c5e,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 Ode(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const p5e={type:0,value:""},v5e=/[a-zA-Z0-9_]/;function m5e(e){if(!e)return[[]];if(e==="/")return[[p5e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${f}": ${y}`)}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(E)}:M2}function s(p){if(Rde(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=k5e(p,n);n.splice(m,0,p),p.record.name&&!kte(p)&&r.set(p.record.name,p)}function f(p,m){let y,b={},w,C;if("name"in p&&p.name){if(y=r.get(p.name),!y)throw s1(1,{location:p});C=y.record.name,b=bi(bte(m.params,y.keys.filter(E=>!E.optional).concat(y.parent?y.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&bte(p.params,y.keys.map(E=>E.name))),w=y.stringify(b)}else if(p.path!=null)w=p.path,y=n.find(E=>E.re.test(w)),y&&(b=y.parse(w),C=y.record.name);else{if(y=m.name?r.get(m.name):n.find(E=>E.re.test(m.path)),!y)throw s1(1,{location:p,currentLocation:m});C=y.record.name,b=bi({},m.params,p.params),w=y.stringify(b)}const x=[];let _=y;for(;_;)x.unshift(_.record),_=_.parent;return{name:C,path:w,params:b,matched:x,meta:S5e(x)}}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 bte(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ste(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:b5e(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 b5e(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 kte(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function S5e(e){return e.reduce((t,n)=>bi(t,n.meta),{})}function wte(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function k5e(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Ode(e,t[a])<0?r=a:n=a+1}const o=w5e(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function w5e(e){let t=e;for(;t=t.parent;)if(Nde(t)&&Ode(e,t)===0)return t}function Nde({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function C5e(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 x5e(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Hc(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const _5e=Symbol(""),xte=Symbol(""),bA=Symbol(""),qz=Symbol(""),UF=Symbol("");function AS(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function kp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const f=m=>{m===!1?c(s1(4,{from:n,to:t})):m instanceof Error?c(m):u5e(m)?c(s1(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 y6(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(Tde(c)){const h=(c.__vccOpts||c)[t];h&&a.push(kp(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 y=(p.__vccOpts||p)[t];return y&&kp(y,n,r,s,l,o)()}))}}return a}function _te(e){const t=rn(bA),n=rn(qz),r=N(()=>{const c=He(e.to);return t.resolve(c)}),o=N(()=>{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(o1.bind(null,h));if(m>-1)return m;const y=Tte(c[f-2]);return f>1&&Tte(h)===y&&p[p.length-1].path!==y?p.findIndex(o1.bind(null,c[f-2])):m}),a=N(()=>o.value>-1&&L5e(n.params,r.value.params)),s=N(()=>o.value>-1&&o.value===n.matched.length-1&&$de(n.params,r.value.params));function l(c={}){if(A5e(c)){const f=t[He(e.replace)?"replace":"push"](He(e.to)).catch(M2);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function T5e(e){return e.length===1?e[0]:e}const E5e=fe({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:_te,setup(e,{slots:t}){const n=Lt(_te(e)),{options:r}=rn(bA),o=N(()=>({[Ete(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ete(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&T5e(t.default(n));return e.custom?a:Is("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),I5e=E5e;function A5e(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 L5e(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(!Hc(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function Tte(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ete=(e,t,n)=>e??t??n,P5e=fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rn(UF),o=N(()=>e.route||r.value),a=rn(xte,0),s=N(()=>{let f=He(a);const{matched:h}=o.value;let p;for(;(p=h[f])&&!p.components;)f++;return f}),l=N(()=>o.value.matched[s.value]);gr(xte,N(()=>s.value+1)),gr(_5e,l),gr(UF,o);const c=ae();return bt(()=>[c.value,l.value,e.name],([f,h,p],[m,y,b])=>{h&&(h.instances[p]=f,y&&y!==h&&f&&f===m&&(h.leaveGuards.size||(h.leaveGuards=y.leaveGuards),h.updateGuards.size||(h.updateGuards=y.updateGuards))),f&&h&&(!y||!o1(h,y)||!m)&&(h.enterCallbacks[p]||[]).forEach(w=>w(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,p=l.value,m=p&&p.components[h];if(!m)return Ite(n.default,{Component:m,route:f});const y=p.props[h],b=y?y===!0?f.params:typeof y=="function"?y(f):y:null,C=Is(m,bi({},b,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Ite(n.default,{Component:C,route:f})||C}}});function Ite(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $5e=P5e;function M5e(e){const t=y5e(e.routes,e),n=e.parseQuery||C5e,r=e.stringifyQuery||Cte,o=e.history,a=AS(),s=AS(),l=AS(),c=Dm(Jh);let f=Jh;cy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=m6.bind(null,be=>""+be),p=m6.bind(null,WLe),m=m6.bind(null,Rk);function y(be,Fe){let De,Ge;return Rde(be)?(De=t.getRecordMatcher(be),Ge=Fe):Ge=be,t.addRoute(Ge,De)}function b(be){const Fe=t.getRecordMatcher(be);Fe&&t.removeRoute(Fe)}function w(){return t.getRoutes().map(be=>be.record)}function C(be){return!!t.getRecordMatcher(be)}function x(be,Fe){if(Fe=bi({},Fe||c.value),typeof be=="string"){const de=g6(n,be,Fe.path),Te=t.resolve({path:de.path},Fe),Oe=o.createHref(de.fullPath);return bi(de,Te,{params:m(Te.params),hash:Rk(de.hash),redirectedFrom:void 0,href:Oe})}let De;if(be.path!=null)De=bi({},be,{path:g6(n,be.path,Fe.path).path});else{const de=bi({},be.params);for(const Te in de)de[Te]==null&&delete de[Te];De=bi({},be,{params:p(de)}),Fe.params=p(Fe.params)}const Ge=t.resolve(De,Fe),qe=be.hash||"";Ge.params=h(m(Ge.params));const Ve=qLe(r,bi({},be,{hash:zLe(qe),path:Ge.path})),he=o.createHref(Ve);return bi({fullPath:Ve,hash:qe,query:r===Cte?x5e(be.query):be.query||{}},Ge,{redirectedFrom:void 0,href:he})}function _(be){return typeof be=="string"?g6(n,be,c.value.path):bi({},be)}function E(be,Fe){if(f!==be)return s1(8,{from:Fe,to:be})}function S(be){return L(be)}function I(be){return S(bi(_(be),{replace:!0}))}function $(be){const Fe=be.matched[be.matched.length-1];if(Fe&&Fe.redirect){const{redirect:De}=Fe;let Ge=typeof De=="function"?De(be):De;return typeof Ge=="string"&&(Ge=Ge.includes("?")||Ge.includes("#")?Ge=_(Ge):{path:Ge},Ge.params={}),bi({query:be.query,hash:be.hash,params:Ge.path!=null?{}:be.params},Ge)}}function L(be,Fe){const De=f=x(be),Ge=c.value,qe=be.state,Ve=be.force,he=be.replace===!0,de=$(De);if(de)return L(bi(_(de),{state:typeof de=="object"?bi({},qe,de.state):qe,force:Ve,replace:he}),Fe||De);const Te=De;Te.redirectedFrom=Fe;let Oe;return!Ve&&YLe(r,Ge,De)&&(Oe=s1(16,{to:Te,from:Ge}),Z(Ge,Ge,!0,!1)),(Oe?Promise.resolve(Oe):M(Te,Ge)).catch(je=>Pf(je)?Pf(je,2)?je:J(je):ee(je,Te,Ge)).then(je=>{if(je){if(Pf(je,2))return L(bi({replace:he},_(je.to),{state:typeof je.to=="object"?bi({},qe,je.to.state):qe,force:Ve}),Fe||Te)}else je=V(Te,Ge,!0,he,qe);return j(Te,Ge,je),je})}function O(be,Fe){const De=E(be,Fe);return De?Promise.reject(De):Promise.resolve()}function F(be){const Fe=ie.values().next().value;return Fe&&typeof Fe.runWithContext=="function"?Fe.runWithContext(be):be()}function M(be,Fe){let De;const[Ge,qe,Ve]=R5e(be,Fe);De=y6(Ge.reverse(),"beforeRouteLeave",be,Fe);for(const de of Ge)de.leaveGuards.forEach(Te=>{De.push(kp(Te,be,Fe))});const he=O.bind(null,be,Fe);return De.push(he),Re(De).then(()=>{De=[];for(const de of a.list())De.push(kp(de,be,Fe));return De.push(he),Re(De)}).then(()=>{De=y6(qe,"beforeRouteUpdate",be,Fe);for(const de of qe)de.updateGuards.forEach(Te=>{De.push(kp(Te,be,Fe))});return De.push(he),Re(De)}).then(()=>{De=[];for(const de of Ve)if(de.beforeEnter)if(Hc(de.beforeEnter))for(const Te of de.beforeEnter)De.push(kp(Te,be,Fe));else De.push(kp(de.beforeEnter,be,Fe));return De.push(he),Re(De)}).then(()=>(be.matched.forEach(de=>de.enterCallbacks={}),De=y6(Ve,"beforeRouteEnter",be,Fe,F),De.push(he),Re(De))).then(()=>{De=[];for(const de of s.list())De.push(kp(de,be,Fe));return De.push(he),Re(De)}).catch(de=>Pf(de,8)?de:Promise.reject(de))}function j(be,Fe,De){l.list().forEach(Ge=>F(()=>Ge(be,Fe,De)))}function V(be,Fe,De,Ge,qe){const Ve=E(be,Fe);if(Ve)return Ve;const he=Fe===Jh,de=cy?history.state:{};De&&(Ge||he?o.replace(be.fullPath,bi({scroll:he&&de&&de.scroll},qe)):o.push(be.fullPath,qe)),c.value=be,Z(be,Fe,De,he),J()}let W;function U(){W||(W=o.listen((be,Fe,De)=>{if(!Ce.listening)return;const Ge=x(be),qe=$(Ge);if(qe){L(bi(qe,{replace:!0,force:!0}),Ge).catch(M2);return}f=Ge;const Ve=c.value;cy&&r5e(pte(Ve.fullPath,De.delta),yA()),M(Ge,Ve).catch(he=>Pf(he,12)?he:Pf(he,2)?(L(bi(_(he.to),{force:!0}),Ge).then(de=>{Pf(de,20)&&!De.delta&&De.type===Dk.pop&&o.go(-1,!1)}).catch(M2),Promise.reject()):(De.delta&&o.go(-De.delta,!1),ee(he,Ge,Ve))).then(he=>{he=he||V(Ge,Ve,!1),he&&(De.delta&&!Pf(he,8)?o.go(-De.delta,!1):De.type===Dk.pop&&Pf(he,20)&&o.go(-1,!1)),j(Ge,Ve,he)}).catch(M2)}))}let X=AS(),G=AS(),Y;function ee(be,Fe,De){J(be);const Ge=G.list();return Ge.length?Ge.forEach(qe=>qe(be,Fe,De)):console.error(be),Promise.reject(be)}function te(){return Y&&c.value!==Jh?Promise.resolve():new Promise((be,Fe)=>{X.add([be,Fe])})}function J(be){return Y||(Y=!be,U(),X.list().forEach(([Fe,De])=>be?De(be):Fe()),X.reset()),be}function Z(be,Fe,De,Ge){const{scrollBehavior:qe}=e;if(!cy||!qe)return Promise.resolve();const Ve=!De&&i5e(pte(be.fullPath,0))||(Ge||!De)&&history.state&&history.state.scroll||null;return nn().then(()=>qe(be,Fe,Ve)).then(he=>he&&n5e(he)).catch(he=>ee(he,be,Fe))}const ce=be=>o.go(be);let ye;const ie=new Set,Ce={currentRoute:c,listening:!0,addRoute:y,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:w,resolve:x,options:e,push:S,replace:I,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:G.add,isReady:te,install(be){const Fe=this;be.component("RouterLink",I5e),be.component("RouterView",$5e),be.config.globalProperties.$router=Fe,Object.defineProperty(be.config.globalProperties,"$route",{enumerable:!0,get:()=>He(c)}),cy&&!ye&&c.value===Jh&&(ye=!0,S(o.location).catch(qe=>{}));const De={};for(const qe in Jh)Object.defineProperty(De,qe,{get:()=>c.value[qe],enumerable:!0});be.provide(bA,Fe),be.provide(qz,Iz(De)),be.provide(UF,c);const Ge=be.unmount;ie.add(be),be.unmount=function(){ie.delete(be),ie.size<1&&(f=Jh,W&&W(),W=null,c.value=Jh,ye=!1,Y=!1),Ge()}}};function Re(be){return be.reduce((Fe,De)=>Fe.then(()=>F(De)),Promise.resolve())}return Ce}function R5e(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;so1(f,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(f=>o1(f,c))||o.push(c))}return[n,r,o]}function Ql(){return rn(bA)}function SA(e){return rn(qz)}const kg=Object.prototype.toString;function En(e){return kg.call(e)==="[object Array]"}function qa(e){return kg.call(e)==="[object Null]"}function Ka(e){return kg.call(e)==="[object Boolean]"}function Dn(e){return kg.call(e)==="[object Object]"}const tg=e=>kg.call(e)==="[object Promise]";function Io(e){return kg.call(e)==="[object String]"}function Me(e){return kg.call(e)==="[object Number]"&&e===e}function Zt(e){return e===void 0}function Yt(e){return typeof e=="function"}function D5e(e){return Dn(e)&&Object.keys(e).length===0}function Ate(e){return e||e===0}function EE(e){return e===window}const Bde=e=>e?.$!==void 0,O5e=e=>/\[Q]Q/.test(e);function nc(e){return Dn(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const fa=Symbol("ArcoConfigProvider"),q_={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:"日"}}},N5e={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:q_,datePicker:{view:q_.view,month:q_.month,week:q_.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:"暂无"}},Yz=ae("zh-CN"),$3=Lt({"zh-CN":N5e}),B5e=(e,t)=>{for(const n of Object.keys(e))(!$3[n]||t?.overwrite)&&($3[n]=e[n])},F5e=e=>{if(!$3[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}Yz.value=e},j5e=()=>Yz.value,no=()=>{const e=rn(fa,void 0),t=N(()=>{var o;return(o=e?.locale)!=null?o:$3[Yz.value]}),n=N(()=>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 Io(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,f)=>{var h;return(h=a[f])!=null?h:c}):l}}},V5e="A",z5e="arco",HF="$arco",kn=e=>{var t;return(t=e?.componentPrefix)!=null?t:V5e},wn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[HF]={...(n=e.config.globalProperties[HF])!=null?n:{},classPrefix:t.classPrefix})},ve=e=>{var t,n,r;const o=Di(),a=rn(fa,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[HF])==null?void 0:t.classPrefix)!=null?r:z5e;return e?`${s}-${e}`:s};var Fde=(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),q5e?(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=K5e.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})(),jde=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof a1(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new rPe(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 a1(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 iPe(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})(),zde=typeof WeakMap<"u"?new WeakMap:new Fde,Ude=(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=Y5e.getInstance(),r=new oPe(t,n,this);zde.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ude.prototype[e]=function(){var t;return(t=zde.get(this))[e].apply(t,arguments)}});var wA=(function(){return typeof M3.ResizeObserver<"u"?M3.ResizeObserver:Ude})();const CA=e=>!!(e&&e.shapeFlag&1),xw=(e,t)=>!!(e&&e.shapeFlag&6),sPe=(e,t)=>!!(e&&e.shapeFlag&8),xA=(e,t)=>!!(e&&e.shapeFlag&16),_A=(e,t)=>!!(e&&e.shapeFlag&32),Ly=e=>{var t,n;if(e)for(const r of e){if(CA(r)||xw(r))return r;if(xA(r,r.children)){const o=Ly(r.children);if(o)return o}else if(_A(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=Ly(o);if(a)return a}}else if(En(r)){const o=Ly(r);if(o)return o}}},aPe=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},Hde=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&Hde(o,t))return!0}return!1},Xz=e=>{if(xA(e,e.children))return e.children;if(En(e))return e},Wde=e=>{var t,n;if(CA(e))return e.el;if(xw(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Wde(e.component.subTree);if(r)return r}}else{const r=Xz(e);return Gde(r)}},Gde=e=>{if(e&&e.length>0)for(const t of e){const n=Wde(t);if(n)return n}},Dd=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])CA(a)||xw(a)||t&&sPe(a,a.children)?o.push(a):xA(a,a.children)?o.push(...Dd(a.children,t)):_A(a,a.children)?o.push(...Dd((r=(n=a.children).default)==null?void 0:r.call(n),t)):En(a)&&o.push(...Dd(a,t));return o};function lPe(e){function t(n){const r=[];return n.forEach(o=>{var a,s;ii(o)&&o.type===Tt?_A(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):xA(o,o.children)?r.push(...t(o.children)):Io(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const ul=e=>{if(e)return Yt(e)?e:()=>e},Kde=(e,t)=>{var n;const r=[];if(xw(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...Kde(e.component.subTree,t));else{const o=Xz(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(...Kde(r,t));return n};var Wc=fe({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=ae(),a=N(()=>Bde(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new wA(f=>{const h=f[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return bt(a,c=>{r&&l(),c&&s(c)}),qt(()=>{a.value&&s(a.value)}),Fr(()=>{l()}),()=>{var c,f;const h=Ly((f=(c=n.default)==null?void 0:c.call(n))!=null?f:[]);return h?Ga(h,{ref:o},!0):null}}});const Yde=typeof window>"u"?global:window,Xde=Yde.requestAnimationFrame,D3=Yde.cancelAnimationFrame;function ng(e){let t=0;const n=(...r)=>{t&&D3(t),t=Xde(()=>{e(...r),t=0})};return n.cancel=()=>{D3(t),t=0},n}const Py=()=>{},Zde=()=>{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)}},_w=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Wr=_w?Py:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},mi=_w?Py:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},uPe=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},TA=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},Jde=(e,t)=>{var n;return _w?Py():(n=(t??document).querySelector(e))!=null?n:void 0},Cd=(e,t)=>{if(Io(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return Jde(n,t)}return e},cPe=(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}},dPe=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,fPe=e=>e.tagName==="BODY"?window.innerWidth-Zde().width:e.offsetWidth-e.clientWidth;var xe=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function hPe(e){return EE(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const pPe=fe({name:"Affix",components:{ResizeObserver:Wc},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=ve("affix"),{target:r,targetContainer:o}=Ot(e),a=ae(),s=ae(),l=ae(!1),c=ae({}),f=ae({}),h=N(()=>({[n]:l.value})),p=ng(()=>{if(!a.value||!s.value)return;const{offsetTop:m,offsetBottom:y}=e,b=Zt(y)?"top":"bottom",w=a.value.getBoundingClientRect(),C=hPe(s.value);let x=!1,_={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};b==="top"?(x=w.top-C.top<(m||0),_=x?{position:"fixed",top:`${C.top+(m||0)}px`}:{}):(x=C.bottom-w.bottom<(y||0),_=x?{position:"fixed",bottom:`${window.innerHeight-C.bottom+(y||0)}px`}:{}),x!==l.value&&(l.value=x,t("change",x)),c.value=E,f.value={..._,...x?E:{}}});return qt(()=>{Yo(m=>{const y=r&&r.value!==window&&Cd(r.value)||window;s.value=y,y&&(Wr(y,"scroll",p),Wr(y,"resize",p),m(()=>{mi(y,"scroll",p),mi(y,"resize",p)}))}),Yo(m=>{if(!s.value)return;const y=o&&o.value!==window&&Cd(o.value)||window;y&&(Wr(y,"scroll",p),Wr(y,"resize",p),m(()=>{mi(y,"scroll",p),mi(y,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:f,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),vPe={ref:"wrapperRef"};function mPe(e,t,n,r,o,a){const s=ke("ResizeObserver");return z(),Ne(s,{onResize:e.updatePositionThrottle},{default:se(()=>[A("div",vPe,[e.isFixed?(z(),q("div",{key:0,style:Ee(e.placeholderStyles)},null,4)):ge("v-if",!0),A("div",{class:ne(e.classNames),style:Ee(e.fixedStyles)},[R(s,{onResize:e.updatePositionThrottle},{default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var b6=xe(pPe,[["render",mPe]]);const gPe=Object.assign(b6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+b6.name,b6)}}),yPe=fe({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:ve("icon-hover")}}});function bPe(e,t,n,r,o,a){return z(),q("span",{class:ne([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[Qe(e.$slots,"default")],2)}var Ki=xe(yPe,[["render",bPe]]);const SPe=fe({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=ve("icon"),r=N(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kPe=["stroke-width","stroke-linecap","stroke-linejoin"];function wPe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,kPe)}var S6=xe(SPe,[["render",wPe]]);const ps=Object.assign(S6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S6.name,S6)}}),CPe=fe({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=ve("icon"),r=N(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xPe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Pe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,xPe)}var k6=xe(CPe,[["render",_Pe]]);const M1=Object.assign(k6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k6.name,k6)}}),TPe=fe({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=ve("icon"),r=N(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 IPe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,EPe)}var w6=xe(TPe,[["render",IPe]]);const bh=Object.assign(w6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w6.name,w6)}}),APe=fe({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=ve("icon"),r=N(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LPe=["stroke-width","stroke-linecap","stroke-linejoin"];function PPe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,LPe)}var C6=xe(APe,[["render",PPe]]);const Kd=Object.assign(C6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C6.name,C6)}}),$Pe=fe({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=ve("icon"),r=N(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MPe=["stroke-width","stroke-linecap","stroke-linejoin"];function RPe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,MPe)}var x6=xe($Pe,[["render",RPe]]);const wg=Object.assign(x6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x6.name,x6)}}),DPe=fe({name:"Alert",components:{IconHover:Ki,IconClose:ps,IconInfoCircleFill:M1,IconCheckCircleFill:bh,IconExclamationCircleFill:Kd,IconCloseCircleFill:wg},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=ve("alert"),o=ae(!0),a=c=>{o.value=!1,n("close",c)},s=()=>{n("afterClose")},l=N(()=>[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 OPe(e,t,n,r,o,a){const s=ke("icon-info-circle-fill"),l=ke("icon-check-circle-fill"),c=ke("icon-exclamation-circle-fill"),f=ke("icon-close-circle-fill"),h=ke("icon-close"),p=ke("icon-hover");return z(),Ne(Xo,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:se(()=>[e.visible?(z(),q("div",{key:0,role:"alert",class:ne(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ne(s,{key:0})):e.type==="success"?(z(),Ne(l,{key:1})):e.type==="warning"?(z(),Ne(c,{key:2})):e.type==="error"?(z(),Ne(f,{key:3})):ge("v-if",!0)])],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2)],2),e.$slots.action?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-action`)},[Qe(e.$slots,"action")],2)):ge("v-if",!0),e.closable?(z(),q("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:ne(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[Qe(e.$slots,"close-element",{},()=>[R(p,null,{default:se(()=>[R(h)]),_:1})])],2)):ge("v-if",!0)],2)):ge("v-if",!0)]),_:3},8,["onAfterLeave"])}var _6=xe(DPe,[["render",OPe]]);const Qde=Object.assign(_6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+_6.name,_6)}});function Pte(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function $te(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function T6(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(de){return de!==s};if(!Pte(e))throw new TypeError("Invalid target");for(var f,h,p=document.scrollingElement||document.documentElement,m=[],y=e;Pte(y)&&c(y);){if((y=(h=(f=y).parentElement)==null?f.getRootNode().host||null:h)===p){m.push(y);break}y!=null&&y===document.body&&T6(y)&&!T6(document.documentElement)||y!=null&&T6(y,l)&&m.push(y)}for(var b=n.visualViewport?n.visualViewport.width:innerWidth,w=n.visualViewport?n.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,_=e.getBoundingClientRect(),E=_.height,S=_.width,I=_.top,$=_.right,L=_.bottom,O=_.left,F=o==="start"||o==="nearest"?I:o==="end"?L:I+E/2,M=a==="center"?O+S/2:a==="end"?$:O,j=[],V=0;V=0&&O>=0&&L<=w&&$<=b&&I>=Y&&L<=te&&O>=J&&$<=ee)return j;var Z=getComputedStyle(W),ce=parseInt(Z.borderLeftWidth,10),ye=parseInt(Z.borderTopWidth,10),ie=parseInt(Z.borderRightWidth,10),Ce=parseInt(Z.borderBottomWidth,10),Re=0,be=0,Fe="offsetWidth"in W?W.offsetWidth-W.clientWidth-ce-ie:0,De="offsetHeight"in W?W.offsetHeight-W.clientHeight-ye-Ce:0,Ge="offsetWidth"in W?W.offsetWidth===0?0:G/W.offsetWidth:0,qe="offsetHeight"in W?W.offsetHeight===0?0:X/W.offsetHeight:0;if(p===W)Re=o==="start"?F:o==="end"?F-w:o==="nearest"?Y_(x,x+w,w,ye,Ce,x+F,x+F+E,E):F-w/2,be=a==="start"?M:a==="center"?M-b/2:a==="end"?M-b:Y_(C,C+b,b,ce,ie,C+M,C+M+S,S),Re=Math.max(0,Re+x),be=Math.max(0,be+C);else{Re=o==="start"?F-Y-ye:o==="end"?F-te+Ce+De:o==="nearest"?Y_(Y,te,X,ye,Ce+De,F,F+E,E):F-(Y+X/2)+De/2,be=a==="start"?M-J-ce:a==="center"?M-(J+G/2)+Fe/2:a==="end"?M-ee+ie+Fe:Y_(J,ee,G,ce,ie+Fe,M,M+S,S);var Ve=W.scrollLeft,he=W.scrollTop;F+=he-(Re=Math.max(0,Math.min(he+Re/qe,W.scrollHeight-X/qe+De))),M+=Ve-(be=Math.max(0,Math.min(Ve+be/Ge,W.scrollWidth-G/Ge+Fe)))}j.push({el:W,top:Re,left:be})}return j},Tw=function(e){return function(t){return Math.pow(t,e)}},Ew=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},EA=function(e){return function(t){return t<.5?Tw(e)(t*2)/2:Ew(e)(t*2-1)/2+.5}},NPe=function(e){return e},BPe=Tw(2),FPe=Ew(2),jPe=EA(2),VPe=Tw(3),zPe=Ew(3),UPe=EA(3),HPe=Tw(4),WPe=Ew(4),GPe=EA(4),KPe=Tw(5),qPe=Ew(5),YPe=EA(5),XPe=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},ZPe=function(e){return Math.sin(Math.PI/2*e)},JPe=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},Zz=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)},efe=function(e){return 1-Zz(1-e)},QPe=function(e){return e<.5?efe(e*2)*.5:Zz(e*2-1)*.5+.5},e8e=Object.freeze({linear:NPe,quadIn:BPe,quadOut:FPe,quadInOut:jPe,cubicIn:VPe,cubicOut:zPe,cubicInOut:UPe,quartIn:HPe,quartOut:WPe,quartInOut:GPe,quintIn:KPe,quintOut:qPe,quintInOut:YPe,sineIn:XPe,sineOut:ZPe,sineInOut:JPe,bounceOut:Zz,bounceIn:efe,bounceInOut:QPe}),Cg=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={}};Cg.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])*e8e[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};Cg.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()};Cg.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function t8e(e,t,n){new Cg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{Yt(n)&&n()}}).start()}const tfe=Symbol("ArcoAnchor"),n8e=["start","end","center","nearest"],r8e=fe({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Me(e)||n8e.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=ve("anchor"),r=ae(),o=ae(),a=Lt({}),s=ae(""),l=ae(!1),c=ae(),f=ae(),h=(I,$)=>{I&&(a[I]=$)},p=I=>{delete a[I]},m=(I,$)=>{e.changeHash||I.preventDefault(),$&&(y($),w($)),t("select",$,s.value)},y=I=>{try{const $=Cd(I);if(!$)return;let L,O=0;Me(e.boundary)?(L="start",O=e.boundary):L=e.boundary;const F=GF($,{block:L});if(!F.length)return;const{el:M,top:j}=F[0],V=j-O;t8e(M,V,()=>{l.value=!1}),l.value=!0}catch($){console.error($)}},b=ng(()=>{if(l.value)return;const I=C();if(I&&I.id){const $=`#${I.id}`;w($)}}),w=I=>{if(!a[I]&&r.value){const $=Cd(`a[data-href='${I}']`,r.value);if(!$)return;a[I]=$}I!==s.value&&(s.value=I,nn(()=>{t("change",I)}))},C=()=>{if(!c.value||!f.value)return;const I=Me(e.boundary)?e.boundary:0,$=f.value.getBoundingClientRect();for(const L of Object.keys(a)){const O=Cd(L);if(O){const{top:F}=O.getBoundingClientRect(),M=EE(c.value)?F-I:F-$.top-I;if(M>=0&&M<=$.height/2)return O}}};bt(s,()=>{const I=a[s.value];!e.lineLess&&I&&o.value&&(o.value.style.top=`${I.offsetTop}px`)});const x=()=>{c.value&&Wr(c.value,"scroll",b)},_=()=>{c.value&&mi(c.value,"scroll",b)},E=()=>{e.scrollContainer?(c.value=EE(e.scrollContainer)?window:Cd(e.scrollContainer),f.value=EE(e.scrollContainer)?document.documentElement:Cd(e.scrollContainer)):(c.value=window,f.value=document.documentElement)};qt(()=>{E();const I=decodeURIComponent(window.location.hash);I?(y(I),w(I)):b(),x()}),uo(()=>{_()}),gr(tfe,Lt({currentLink:s,addLink:h,removeLink:p,handleClick:m}));const S=N(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:S,anchorRef:r,lineSliderRef:o}}});function i8e(e,t,n,r,o,a){return z(),q("div",{ref:"anchorRef",class:ne(e.cls)},[e.lineLess?ge("v-if",!0):(z(),q("div",{key:0,ref:"lineSliderRef",class:ne(`${e.prefixCls}-line-slider`)},null,2)),A("ul",{class:ne(`${e.prefixCls}-list`)},[Qe(e.$slots,"default")],2)],2)}var E6=xe(r8e,[["render",i8e]]);const o8e=fe({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=ve("anchor"),n=`${t}-link`,r=ae(),o=rn(tfe,void 0);qt(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=N(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),s8e=["href"];function a8e(e,t,n,r,o,a){return z(),q("li",{ref:"linkRef",class:ne(e.cls)},[A("a",{class:ne(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[Qe(e.$slots,"default",{},()=>[$e(_e(e.title),1)])],10,s8e),e.$slots.sublist?(z(),q("ul",{key:0,class:ne(`${e.prefixCls}-sublist`)},[Qe(e.$slots,"sublist")],2)):ge("v-if",!0)],2)}var IE=xe(o8e,[["render",a8e]]);const l8e=Object.assign(E6,{Link:IE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+E6.name,E6),e.component(n+IE.name,IE)}}),IA=["info","success","warning","error"],Gp=["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"],u8e=fe({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=ve("icon"),r=N(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),c8e=["stroke-width","stroke-linecap","stroke-linejoin"];function d8e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,c8e)}var I6=xe(u8e,[["render",d8e]]);const ha=Object.assign(I6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I6.name,I6)}}),f8e=fe({name:"FeedbackIcon",components:{IconLoading:ha,IconCheckCircleFill:bh,IconExclamationCircleFill:Kd,IconCloseCircleFill:wg},props:{type:{type:String}},setup(e){const t=ve("feedback-icon");return{cls:N(()=>[t,`${t}-status-${e.type}`])}}});function h8e(e,t,n,r,o,a){const s=ke("icon-loading"),l=ke("icon-check-circle-fill"),c=ke("icon-exclamation-circle-fill"),f=ke("icon-close-circle-fill");return z(),q("span",{class:ne(e.cls)},[e.type==="validating"?(z(),Ne(s,{key:0})):e.type==="success"?(z(),Ne(l,{key:1})):e.type==="warning"?(z(),Ne(c,{key:2})):e.type==="error"?(z(),Ne(f,{key:3})):ge("v-if",!0)],2)}var Iw=xe(f8e,[["render",h8e]]);const Jz={key:"Enter"},nfe={key:"Backspace",code:"Backspace"},p8e={code:"ArrowLeft"},v8e={code:"ArrowRight"},Vs=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function Fd(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const KF=Symbol("ArcoFormItemContext"),Qz=Symbol("ArcoFormContext"),qi=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:rn(KF,{}),a=N(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=N(()=>t?.value||o.disabled),l=N(()=>n?.value||o.error),c=Yl(o,"feedback"),f=Yl(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:f}},Us=(e,{defaultValue:t="medium"}={})=>{const n=rn(fa,void 0);return{mergedSize:N(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function rfe(e){const t=ae();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 D2=fe({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}=Ot(e),c=ve("input"),f=ae(),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:y,eventHandlers:b}=qi({size:o,disabled:a,error:s}),{mergedSize:w}=Us(h),[C,x]=rfe(f),_=ae(e.defaultValue),E=N(()=>{var he;return(he=e.modelValue)!=null?he:_.value});let S=E.value;bt(l,he=>{(Zt(he)||qa(he))&&(_.value="")}),bt(E,(he,de)=>{S=de});const I=ae(!1),$=N(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),L=ae(!1),O=ae(""),F=he=>{var de;return Yt(e.wordLength)?e.wordLength(he):(de=he.length)!=null?de:0},M=N(()=>F(E.value)),j=N(()=>m.value||!!(Dn(e.maxLength)&&e.maxLength.errorOnly&&M.value>W.value)),V=N(()=>Dn(e.maxLength)&&!!e.maxLength.errorOnly),W=N(()=>Dn(e.maxLength)?e.maxLength.length:e.maxLength),U=N(()=>{const he=F("a");return Math.floor(W.value/he)}),X=he=>{var de,Te;W.value&&!V.value&&F(he)>W.value&&(he=(Te=(de=e.wordSlice)==null?void 0:de.call(e,he,W.value))!=null?Te:he.slice(0,U.value)),_.value=he,t("update:modelValue",he)},G=he=>{f.value&&he.target!==f.value&&(he.preventDefault(),f.value.focus())},Y=(he,de)=>{var Te,Oe;he!==S&&(S=he,t("change",he,de),(Oe=(Te=b.value)==null?void 0:Te.onChange)==null||Oe.call(Te,de))},ee=he=>{var de,Te;I.value=!0,t("focus",he),(Te=(de=b.value)==null?void 0:de.onFocus)==null||Te.call(de,he)},te=he=>{var de,Te;I.value=!1,Y(E.value,he),t("blur",he),(Te=(de=b.value)==null?void 0:de.onBlur)==null||Te.call(de,he)},J=he=>{var de,Te,Oe;const{value:je,selectionStart:We,selectionEnd:it}=he.target;if(he.type==="compositionend"){if(L.value=!1,O.value="",W.value&&!V.value&&M.value>=W.value&&F(je)>W.value&&We===it){Z();return}X(je),t("input",je,he),(Te=(de=b.value)==null?void 0:de.onInput)==null||Te.call(de,he),Z()}else L.value=!0,O.value=E.value+((Oe=he.data)!=null?Oe:"")},Z=()=>{C(),nn(()=>{f.value&&E.value!==f.value.value&&(f.value.value=E.value,x())})},ce=he=>{var de,Te;const{value:Oe}=he.target;if(!L.value){if(W.value&&!V.value&&M.value>=W.value&&F(Oe)>W.value&&he.inputType==="insertText"){Z();return}X(Oe),t("input",Oe,he),(Te=(de=b.value)==null?void 0:de.onInput)==null||Te.call(de,he),Z()}},ye=he=>{X(""),Y("",he),t("clear",he)},ie=he=>{const de=he.key||he.code;!L.value&&de===Jz.key&&(Y(E.value,he),t("pressEnter",he))},Ce=N(()=>[`${c}-outer`,`${c}-outer-size-${w.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),Re=N(()=>[`${c}-wrapper`,{[`${c}-error`]:j.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:I.value}]),be=N(()=>[c,`${c}-size-${w.value}`]),Fe=N(()=>Vs(r,Gp)),De=N(()=>Fd(r,Gp)),Ge=N(()=>{const he={...De.value,...e.inputAttrs};return j.value&&(he["aria-invalid"]=!0),he}),qe=he=>{var de;return R("span",xt({class:Re.value,onMousedown:G},he?void 0:Fe.value),[n.prefix&&R("span",{class:`${c}-prefix`},[n.prefix()]),R("input",xt({ref:f,class:be.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ce,onKeydown:ie,onFocus:ee,onBlur:te,onCompositionstart:J,onCompositionupdate:J,onCompositionend:J},Ge.value),null),$.value&&R(Ki,{prefix:c,class:`${c}-clear-btn`,onClick:ye},{default:()=>[R(ps,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!y.value)&&R("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:y.value}]},[!!e.maxLength&&e.showWordLimit&&R("span",{class:`${c}-word-limit`},[M.value,$e("/"),W.value]),(de=n.suffix)==null?void 0:de.call(n),!!y.value&&R(Iw,{type:y.value},null)])])};return{inputRef:f,render:()=>n.prepend||n.append||e.prepend||e.append?R("span",xt({class:Ce.value},Fe.value),[(n.prepend||e.prepend)&&R("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),qe(!0),(n.append||e.append)&&R("span",{class:`${c}-append`},[n.append?n.append():e.append])]):qe()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const m8e=fe({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=ve("icon"),r=N(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),g8e=["stroke-width","stroke-linecap","stroke-linejoin"];function y8e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,g8e)}var A6=xe(m8e,[["render",y8e]]);const rg=Object.assign(A6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A6.name,A6)}}),ife=Symbol("ArcoButtonGroup"),b8e=fe({name:"Button",components:{IconLoading:ha},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}=Ot(e),o=ve("btn"),a=rn(ife,void 0),s=N(()=>{var y;return(y=n.value)!=null?y:a?.size}),l=N(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:f}=qi({size:s,disabled:l}),{mergedSize:h}=Us(c),p=N(()=>{var y,b,w,C,x,_;return[o,`${o}-${(b=(y=e.type)!=null?y:a?.type)!=null?b:"secondary"}`,`${o}-shape-${(C=(w=e.shape)!=null?w:a?.shape)!=null?C:"square"}`,`${o}-size-${h.value}`,`${o}-status-${(_=(x=e.status)!=null?x:a?.status)!=null?_:"normal"}`,{[`${o}-long`]:e.long,[`${o}-loading`]:e.loading,[`${o}-disabled`]:f.value,[`${o}-link`]:Io(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:f,handleClick:y=>{if(e.disabled||e.loading){y.preventDefault();return}t("click",y)}}}}),S8e=["href"],k8e=["type","disabled","autofocus"];function w8e(e,t,n,r,o,a){const s=ke("icon-loading");return e.href?(z(),q("a",{key:0,class:ne([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[e.loading?(z(),Ne(s,{key:0,spin:"true"})):Qe(e.$slots,"icon",{key:1})],2)):ge("v-if",!0),Qe(e.$slots,"default")],10,S8e)):(z(),q("button",{key:1,class:ne([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[e.loading?(z(),Ne(s,{key:0,spin:!0})):Qe(e.$slots,"icon",{key:1})],2)):ge("v-if",!0),Qe(e.$slots,"default")],10,k8e))}var L6=xe(b8e,[["render",w8e]]);const C8e=fe({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}=Ot(e),s=ve("btn-group");return gr(ife,Lt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function x8e(e,t,n,r,o,a){return z(),q("div",{class:ne(e.prefixCls)},[Qe(e.$slots,"default")],2)}var O2=xe(C8e,[["render",x8e]]);const po=Object.assign(L6,{Group:O2,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+L6.name,L6),e.component(n+O2.name,O2)}});var AE=fe({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}=Ot(e),o=ve("input-search"),{mergedSize:a}=Us(r),s=ae(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return R(Tt,null,[e.loading?R(ha,null,null):R(Ki,{onClick:l},{default:()=>[R(rg,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:()=>R(rg,null,null)},R(po,xt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),m)};return{inputRef:s,render:()=>R(D2,{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 _8e=fe({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=ve("icon"),r=N(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),T8e=["stroke-width","stroke-linecap","stroke-linejoin"];function E8e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,T8e)}var P6=xe(_8e,[["render",E8e]]);const Kp=Object.assign(P6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P6.name,P6)}}),I8e=fe({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=ve("icon"),r=N(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),A8e=["stroke-width","stroke-linecap","stroke-linejoin"];function L8e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,A8e)}var $6=xe(I8e,[["render",L8e]]);const ofe=Object.assign($6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$6.name,$6)}});function ua(e){const t=ae(e);return[t,r=>{t.value=r}]}function As(e,t){const{value:n}=Ot(t),[r,o]=ua(Zt(n.value)?e:n.value);return bt(n,s=>{Zt(s)&&o(void 0)}),[N(()=>Zt(n.value)?r.value:n.value),o,r]}const P8e=fe({name:"InputPassword",components:{IconEye:Kp,IconEyeInvisible:ofe,AIconHover:Ki,AInput:D2},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}=Ot(e),o=ae(),a=()=>{c(!s.value)},[s,l]=As(r.value,Lt({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 $8e(e,t,n,r,o,a){const s=ke("icon-eye"),l=ke("icon-eye-invisible"),c=ke("a-icon-hover"),f=ke("a-input");return z(),Ne(f,{ref:"inputRef",type:e.mergedVisible?"password":"text"},Wi({_:2},[e.$slots.prepend?{name:"prepend",fn:se(()=>[Qe(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:se(()=>[Qe(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:se(()=>[e.invisibleButton?(z(),Ne(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=lo(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=lo(()=>{},["prevent"]))},{default:se(()=>[e.mergedVisible?(z(),Ne(l,{key:1})):(z(),Ne(s,{key:0}))]),_:1},8,["onClick"])):ge("v-if",!0),Qe(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:se(()=>[Qe(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var LE=xe(P8e,[["render",$8e]]);const M8e=fe({name:"InputGroup",setup(){return{prefixCls:ve("input-group")}}});function R8e(e,t,n,r,o,a){return z(),q("div",{class:ne(e.prefixCls)},[Qe(e.$slots,"default")],2)}var $y=xe(M8e,[["render",R8e]]);const uv=Object.assign(D2,{Search:AE,Password:LE,Group:$y,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+D2.name,D2),e.component(n+$y.name,$y),e.component(n+AE.name,AE),e.component(n+LE.name,LE)}}),D8e=()=>{const{height:e,width:t}=Zde();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},Mte=(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}},O8e=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"}},X_=(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}},N8e=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=O8e(e),c=D8e(),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=c2("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=X_(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=c2("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=X_(e,"top"),t.top=p.top)}if(l==="left"&&f.left<0)if(r.left>o.width)t.left=-n.left;else{const p=c2("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=X_(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=c2("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=X_(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}},c2=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=En(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}}},B8e=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}`},F8e=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,f=c2(e,n,r,{offset:o,translate:a});if(l){const p=N8e(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}},j8e=(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}},V8e=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Rte=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)V8e(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},sfe=()=>{const e={},t=ae(),n=()=>{const r=Gde(e.value);r!==t.value&&(t.value=r)};return qt(()=>n()),ma(()=>n()),{children:e,firstElement:t}};var qp=fe({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=sfe();let a;const s=c=>{c&&(a=new wA(f=>{const h=f[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return bt(o,c=>{a&&l(),c&&s(c)}),uo(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function Nc(e,t){const n=ae(e[t]);return ma(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const Dte=Symbol("ArcoTrigger"),z8e=1e3,U8e=5e3,H8e=1;class W8e{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||U8e:Array.from(this.popupStack.popup).pop()||z8e)+H8e,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 M6=new W8e;function R1(e,{visible:t,runOnMounted:n}={}){const r=ae(0),o=()=>{r.value=M6.add(e)},a=()=>{M6.delete(r.value,e)},s=()=>e==="dialog"?M6.isLastDialog(r.value):!1;return bt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(qt(()=>{o()}),uo(()=>{a()})),{zIndex:Ek(r),open:o,close:a,isLastDialog:s}}const G8e=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new wA(a=>{const s=a[0];Yt(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var eU=fe({name:"ClientOnly",setup(e,{slots:t}){const n=ae(!1);return qt(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const tU=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=ae(e.value),a=ae(),s=()=>{const l=Cd(e.value),c=l?e.value:n,f=l??(r?document.documentElement:Cd(n));c!==o.value&&(o.value=c),f!==a.value&&(a.value=f)};return qt(()=>s()),bt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},K8e=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var R6=fe({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}=Ot(e),a=ve("trigger"),s=N(()=>Vs(r,K8e)),l=rn(fa,void 0),c=N(()=>[].concat(e.trigger)),f=new Set,h=rn(Dte,void 0),{children:p,firstElement:m}=sfe(),y=ae(),b=ae(e.defaultPopupVisible),w=ae(e.position),C=ae({}),x=ae({}),_=ae({}),E=ae(),S=ae({top:0,left:0});let I=null,$=null;const L=N(()=>{var lt;return(lt=e.popupVisible)!=null?lt:b.value}),{teleportContainer:O,containerRef:F}=tU({popupContainer:o,visible:L,documentContainer:!0}),{zIndex:M}=R1("popup",{visible:L});let j=0,V=!1,W=!1;const U=()=>{j&&(window.clearTimeout(j),j=0)},X=lt=>{if(e.alignPoint){const{pageX:Pe,pageY:Ae}=lt;S.value={top:Ae,left:Pe}}},G=()=>{if(!m.value||!y.value||!F.value)return;const lt=F.value.getBoundingClientRect(),Pe=e.alignPoint?{top:S.value.top,bottom:S.value.top,left:S.value.left,right:S.value.left,scrollTop:S.value.top,scrollBottom:S.value.top,scrollLeft:S.value.left,scrollRight:S.value.left,width:0,height:0}:Mte(m.value,lt),Ae=()=>Mte(y.value,lt),Xe=Ae(),{style:ut,position:Ke}=F8e(e.position,lt,Pe,Xe,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(x.value={transformOrigin:B8e(Ke)}),e.autoFitPopupMinWidth?ut.minWidth=`${Pe.width}px`:e.autoFitPopupWidth&&(ut.width=`${Pe.width}px`),w.value!==Ke&&(w.value=Ke),C.value=ut,e.showArrow&&nn(()=>{_.value=j8e(Ke,Pe,Ae(),{customStyle:e.arrowStyle})})},Y=(lt,Pe)=>{if(lt===L.value&&j===0)return;const Ae=()=>{b.value=lt,t("update:popupVisible",lt),t("popupVisibleChange",lt),lt&&nn(()=>{G()})};lt||(I=null,$=null),Pe?(U(),lt!==L.value&&(j=window.setTimeout(Ae,Pe))):Ae()},ee=lt=>{var Pe;(Pe=r.onClick)==null||Pe.call(r,lt),!(e.disabled||L.value&&!e.clickToClose)&&(c.value.includes("click")?(X(lt),Y(!L.value)):c.value.includes("contextMenu")&&L.value&&Y(!1))},te=lt=>{var Pe;(Pe=r.onMouseenter)==null||Pe.call(r,lt),!(e.disabled||!c.value.includes("hover"))&&(X(lt),Y(!0,e.mouseEnterDelay))},J=lt=>{h?.onMouseenter(lt),te(lt)},Z=lt=>{var Pe;(Pe=r.onMouseleave)==null||Pe.call(r,lt),!(e.disabled||!c.value.includes("hover"))&&Y(!1,e.mouseLeaveDelay)},ce=lt=>{h?.onMouseleave(lt),Z(lt)},ye=lt=>{var Pe;(Pe=r.onFocusin)==null||Pe.call(r,lt),!(e.disabled||!c.value.includes("focus"))&&Y(!0,e.focusDelay)},ie=lt=>{var Pe;(Pe=r.onFocusout)==null||Pe.call(r,lt),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&Y(!1)},Ce=lt=>{var Pe;(Pe=r.onContextmenu)==null||Pe.call(r,lt),!(e.disabled||!c.value.includes("contextMenu")||L.value&&!e.clickToClose)&&(X(lt),Y(!L.value),lt.preventDefault())};gr(Dte,Lt({onMouseenter:J,onMouseleave:ce,addChildRef:lt=>{f.add(lt),h?.addChildRef(lt)},removeChildRef:lt=>{f.delete(lt),h?.removeChildRef(lt)}}));const Fe=()=>{mi(document.documentElement,"mousedown",qe),V=!1},De=Nc(n,"content"),Ge=N(()=>{var lt;return e.hideEmpty&&aPe((lt=De.value)==null?void 0:lt.call(De))}),qe=lt=>{var Pe,Ae,Xe;if(!((Pe=m.value)!=null&&Pe.contains(lt.target)||(Ae=y.value)!=null&&Ae.contains(lt.target))){for(const ut of f)if((Xe=ut.value)!=null&&Xe.contains(lt.target))return;Fe(),Y(!1)}},Ve=(lt,Pe)=>{const[Ae,Xe]=lt,{scrollTop:ut,scrollLeft:Ke}=Pe;return Math.abs(ut-Ae)>=e.scrollToCloseDistance||Math.abs(Ke-Xe)>=e.scrollToCloseDistance},he=ng(lt=>{if(L.value)if(e.scrollToClose||l?.scrollToClose){const Pe=lt.target;I||(I=[Pe.scrollTop,Pe.scrollLeft]),Ve(I,Pe)?Y(!1):G()}else G()}),de=()=>{mi(window,"scroll",Te),W=!1},Te=ng(lt=>{const Pe=lt.target.documentElement;$||($=[Pe.scrollTop,Pe.scrollLeft]),Ve($,Pe)&&(Y(!1),de())}),Oe=()=>{L.value&&G()},je=()=>{Oe(),t("resize")},We=lt=>{e.preventFocus&<.preventDefault()};h?.addChildRef(y);const it=N(()=>L.value?e.openedClass:void 0);let Ze;bt(L,lt=>{if(e.clickOutsideToClose&&(!lt&&V?Fe():lt&&!V&&(Wr(document.documentElement,"mousedown",qe),V=!0)),(e.scrollToClose||l?.scrollToClose)&&(Wr(window,"scroll",Te),W=!0),e.updateAtScroll||l?.updateAtScroll){if(lt){Ze=Rte(m.value);for(const Pe of Ze)Pe.addEventListener("scroll",he)}else if(Ze){for(const Pe of Ze)Pe.removeEventListener("scroll",he);Ze=void 0}}lt&&(Pt.value=!0)}),bt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{L.value&&G()});const{createResizeObserver:pt,destroyResizeObserver:et}=G8e({elementRef:F,onResize:Oe});qt(()=>{if(pt(),L.value&&(G(),e.clickOutsideToClose&&!V&&(Wr(document.documentElement,"mousedown",qe),V=!0),e.updateAtScroll||l?.updateAtScroll)){Ze=Rte(m.value);for(const lt of Ze)lt.addEventListener("scroll",he)}}),ma(()=>{L.value&&G()}),Rz(()=>{Y(!1)}),uo(()=>{if(h?.removeChildRef(y),et(),V&&Fe(),W&&de(),Ze){for(const lt of Ze)lt.removeEventListener("scroll",he);Ze=void 0}});const Pt=ae(L.value),$t=ae(!1),vt=()=>{$t.value=!0},Nt=()=>{$t.value=!1,L.value&&t("show")},dt=()=>{$t.value=!1,L.value||(Pt.value=!1,t("hide"))};return()=>{var lt,Pe;return p.value=(Pe=(lt=n.default)==null?void 0:lt.call(n))!=null?Pe:[],Hde(p.value,{class:it.value,onClick:ee,onMouseenter:te,onMouseleave:Z,onFocusin:ye,onFocusout:ie,onContextmenu:Ce}),R(Tt,null,[e.autoFixPosition?R(qp,{onResize:je},{default:()=>[p.value]}):p.value,R(eU,null,{default:()=>[R(Sg,{to:O.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||L.value||Pt.value)&&!Ge.value&&R(qp,{onResize:Oe},{default:()=>[R("div",xt({ref:y,class:[`${a}-popup`,`${a}-position-${w.value}`],style:{...C.value,zIndex:M.value,pointerEvents:$t.value?"none":"auto"},"trigger-placement":w.value,onMouseenter:J,onMouseleave:ce,onMousedown:We},s.value),[R(Xo,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:vt,onAfterEnter:Nt,onBeforeLeave:vt,onAfterLeave:dt},{default:()=>{var Ae;return[Dr(R("div",{class:`${a}-popup-wrapper`,style:x.value},[R("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Ae=n.content)==null?void 0:Ae.call(n)]),e.showArrow&&R("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:_.value},null)]),[[Eo,L.value]])]}})])]})]})]})])}}});const Ls=Object.assign(R6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+R6.name,R6)}}),q8e=fe({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=ve("icon"),r=N(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Y8e=["stroke-width","stroke-linecap","stroke-linejoin"];function X8e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Y8e)}var D6=xe(q8e,[["render",X8e]]);const nU=Object.assign(D6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D6.name,D6)}});var PE=fe({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=ve("empty"),{t:o}=no(),a=rn(fa,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"}):R("div",xt({class:r},n),[R("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?R("img",{src:e.imgSrc,alt:e.description||"empty"},null):R(nU,null,null)]),R("div",{class:`${r}-description`},[(f=(c=t.default)==null?void 0:c.call(t))!=null?f:e.description||o("empty.description")])])}}});const Sh=Object.assign(PE,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+PE.name,PE)}}),Z8e=5;var J8e=fe({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=ve("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return R("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(Z8e).fill(1).map((r,o)=>R("div",{class:`${t}-item`,key:o,style:n},null))])}}}),O6=fe({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=ve("spin"),r=rn(fa,void 0),o=N(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=Ly(t.icon());if(l)return Ga(l,{spin:!0})}return t.element?t.element():e.dot?R(J8e,{size:e.size},null):r?.slots.loading?r.slots.loading():R(ha,{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 R(Tt,null,[!e.hideIcon&&R("div",{class:`${n}-icon`,style:h},[a()]),p&&R("div",{class:`${n}-tip`},[(f=(c=t.tip)==null?void 0:c.call(t))!=null?f:e.tip])])};return()=>R("div",{class:o.value},[t.default?R(Tt,null,[t.default(),e.loading&&R("div",{class:`${n}-mask`},[R("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Gc=Object.assign(O6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+O6.name,O6)}}),Q8e=fe({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=ve("scrollbar"),r=ae(!1),o=ae(),a=ae(),s=N(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=ae(0),c=ae(!1),f=ae(0),h=N(()=>{var _,E;return{[s.value.size]:`${(E=(_=e.data)==null?void 0:_.thumbSize)!=null?E:0}px`,[s.value.direction]:`${l.value}px`}}),p=_=>{_.preventDefault(),a.value&&(f.value=_[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,Wr(window,"mousemove",b),Wr(window,"mouseup",w),Wr(window,"contextmenu",w))},m=_=>{var E,S,I,$;if(_.preventDefault(),a.value){const L=y(_[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((S=(E=e.data)==null?void 0:E.thumbSize)!=null?S:0):l.value-(($=(I=e.data)==null?void 0:I.thumbSize)!=null?$:0));L!==l.value&&(l.value=L,t("scroll",L))}},y=_=>_<0?0:e.data&&_>e.data.max?e.data.max:_,b=_=>{if(o.value&&a.value){const E=y(_[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-f.value);E!==l.value&&(l.value=E,t("scroll",E))}},w=()=>{c.value=!1,mi(window,"mousemove",b),mi(window,"mouseup",w)},C=_=>{c.value||(_=y(_),_!==l.value&&(l.value=_))},x=N(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:o,thumbRef:a,prefixCls:n,thumbCls:x,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:m,setOffset:C}}});function e$e(e,t,n,r,o,a){return z(),Ne(Xo,null,{default:se(()=>[A("div",{ref:"trackRef",class:ne([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=lo((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[A("div",{ref:"thumbRef",class:ne(e.thumbCls),style:Ee(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[A("div",{class:ne(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var t$e=xe(Q8e,[["render",e$e]]);const Ote=20,Z_=15,n$e=fe({name:"Scrollbar",components:{ResizeObserver:qp,Thumb:t$e},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=ve("scrollbar"),r=ae(),o=ae(),a=ae(),s=ae(),l=ae(),c=ae(!1),f=ae(!1),h=N(()=>c.value&&!e.disableHorizontal),p=N(()=>f.value&&!e.disableVertical),m=ae(!1),y=()=>{var S,I,$,L,O,F;if(r.value){const{clientWidth:M,clientHeight:j,offsetWidth:V,offsetHeight:W,scrollWidth:U,scrollHeight:X,scrollTop:G,scrollLeft:Y}=r.value;c.value=U>M,f.value=X>j,m.value=h.value&&p.value;const ee=e.type==="embed"&&m.value?V-Z_:V,te=e.type==="embed"&&m.value?W-Z_:W,J=Math.round(ee/Math.min(U/M,ee/Ote)),Z=ee-J,ce=(U-M)/Z,ye=Math.round(te/Math.min(X/j,te/Ote)),ie=te-ye,Ce=(X-j)/ie;if(o.value={ratio:ce,thumbSize:J,max:Z},a.value={ratio:Ce,thumbSize:ye,max:ie},G>0){const Re=Math.round(G/((I=(S=a.value)==null?void 0:S.ratio)!=null?I:1));($=l.value)==null||$.setOffset(Re)}if(Y>0){const Re=Math.round(Y/((O=(L=a.value)==null?void 0:L.ratio)!=null?O:1));(F=s.value)==null||F.setOffset(Re)}}};qt(()=>{y()});const b=()=>{y()},w=S=>{var I,$,L,O,F,M;if(r.value){if(h.value&&!e.disableHorizontal){const j=Math.round(r.value.scrollLeft/(($=(I=o.value)==null?void 0:I.ratio)!=null?$:1));(L=s.value)==null||L.setOffset(j)}if(p.value&&!e.disableVertical){const j=Math.round(r.value.scrollTop/((F=(O=a.value)==null?void 0:O.ratio)!=null?F:1));(M=l.value)==null||M.setOffset(j)}}t("scroll",S)},C=S=>{var I,$;r.value&&r.value.scrollTo({left:S*(($=(I=o.value)==null?void 0:I.ratio)!=null?$:1)})},x=S=>{var I,$;r.value&&r.value.scrollTo({top:S*(($=(I=a.value)==null?void 0:I.ratio)!=null?$:1)})},_=N(()=>{const S={};return e.type==="track"&&(h.value&&(S.paddingBottom=`${Z_}px`),p.value&&(S.paddingRight=`${Z_}px`)),[S,e.outerStyle]}),E=N(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:m.value},e.outerClass]);return{prefixCls:n,cls:E,style:_,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:m,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:b,handleScroll:w,handleHorizontalScroll:C,handleVerticalScroll:x}},methods:{scrollTo(e,t){var n,r;Dn(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 r$e(e,t,n,r,o,a){const s=ke("ResizeObserver"),l=ke("thumb");return z(),q("div",{class:ne(e.cls),style:Ee(e.style)},[R(s,{onResize:e.handleResize},{default:se(()=>[A("div",xt({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[R(s,{onResize:e.handleResize},{default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(z(),Ne(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):ge("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(z(),Ne(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):ge("v-if",!0)],6)}var N6=xe(n$e,[["render",r$e]]);const Kc=Object.assign(N6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+N6.name,N6)}}),gy=e=>{const t=ae(),n=()=>Bde(t.value)?t.value.$refs[e]:t.value,r=ae();return qt(()=>{r.value=n()}),bt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},AA=e=>{const t=N(()=>!!e.value),n=N(()=>{if(e.value)return{type:"embed",...Ka(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},i$e=fe({name:"SelectDropdown",components:{ScrollbarComponent:Kc,Empty:Sh,Spin:Gc},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}=Ot(e),l=ve("select-dropdown"),c=rn(fa,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}=gy("containerRef"),{displayScrollbar:m,scrollbarProps:y}=AA(s),b=C=>{const{scrollTop:x,scrollHeight:_,offsetHeight:E}=C.target;_-(x+E)<=e.bottomOffset&&t("reachBottom",C),t("scroll",C)},w=N(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:f,cls:w,wrapperRef:p,wrapperComRef:h,handleScroll:b,displayScrollbar:m,scrollbarProps:y}}});function o$e(e,t,n,r,o,a){const s=ke("spin");return z(),q("div",{class:ne(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-header`)},[Qe(e.$slots,"header")],2)):ge("v-if",!0),e.loading?(z(),Ne(s,{key:1,class:ne(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-empty`)},[Qe(e.$slots,"empty",{},()=>[(z(),Ne(la(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):ge("v-if",!0),e.virtualList&&!e.loading&&!e.empty?Qe(e.$slots,"virtual-list",{key:3}):ge("v-if",!0),e.virtualList?ge("v-if",!0):Dr((z(),Ne(la(e.displayScrollbar?"ScrollbarComponent":"div"),xt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:se(()=>[A("ul",{class:ne(`${e.prefixCls}-list`)},[Qe(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Eo,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(z(),q("div",{key:5,class:ne(`${e.prefixCls}-footer`)},[Qe(e.$slots,"footer")],2)):ge("v-if",!0)],2)}var rU=xe(i$e,[["render",o$e]]),Nte=fe({name:"IconCheck",render(){return R("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[R("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 afe=Symbol("ArcoCheckboxGroup");var $E=fe({name:"Checkbox",components:{IconCheck:Nte,IconHover:Ki},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}=Ot(e),a=ve("checkbox"),s=ae(),l=e.uninjectGroupContext?void 0:rn(afe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:f,eventHandlers:h}=qi({disabled:r}),p=ae(e.defaultChecked),m=N(()=>{var S;return c?l?.computedValue:(S=e.modelValue)!=null?S:p.value}),y=N(()=>{var S;return En(m.value)?m.value.includes((S=e.value)!=null?S:!0):m.value}),b=N(()=>l?.disabled||f?.value||!y.value&&l?.isMaxed),w=S=>{S.stopPropagation()},C=S=>{var I,$,L,O;const{checked:F}=S.target;let M=F;if(En(m.value)){const j=new Set(m.value);F?j.add((I=e.value)!=null?I:!0):j.delete(($=e.value)!=null?$:!0),M=Array.from(j)}p.value=F,c&&En(M)?l?.handleChange(M,S):(t("update:modelValue",M),t("change",M,S),(O=(L=h.value)==null?void 0:L.onChange)==null||O.call(L,S)),nn(()=>{s.value&&s.value.checked!==y.value&&(s.value.checked=y.value)})},x=N(()=>[a,{[`${a}-checked`]:y.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:b.value}]),_=S=>{var I,$;($=(I=h.value)==null?void 0:I.onFocus)==null||$.call(I,S)},E=S=>{var I,$;($=(I=h.value)==null?void 0:I.onBlur)==null||$.call(I,S)};return bt(o,S=>{(Zt(S)||qa(S))&&(p.value=!1)}),bt(m,S=>{var I;let $;En(S)?$=S.includes((I=e.value)!=null?I:!0):$=S,p.value!==$&&(p.value=$),s.value&&s.value.checked!==$&&(s.value.checked=$)}),()=>{var S,I,$,L;return R("label",{"aria-disabled":b.value,class:x.value},[R("input",{ref:s,type:"checkbox",checked:y.value,value:e.value,class:`${a}-target`,disabled:b.value,onClick:w,onChange:C,onFocus:_,onBlur:E},null),(L=($=(I=n.checkbox)!=null?I:(S=l?.slots)==null?void 0:S.checkbox)==null?void 0:$({checked:y.value,disabled:b.value}))!=null?L:R(Ki,{class:`${a}-icon-hover`,disabled:b.value||y.value},{default:()=>[R("div",{class:`${a}-icon`},[y.value&&R(Nte,{class:`${a}-icon-check`},null)])]}),n.default&&R("span",{class:`${a}-label`},[n.default()])])}}}),ME=fe({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}=Ot(e),o=ve("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=qi({disabled:r}),l=ae(e.defaultValue),c=N(()=>En(e.modelValue)?e.modelValue:l.value),f=N(()=>e.max===void 0?!1:c.value.length>=e.max),h=N(()=>{var b;return((b=e.options)!=null?b:[]).map(w=>Io(w)||Me(w)?{label:w,value:w}:w)});gr(afe,Lt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:f,slots:n,handleChange:(b,w)=>{var C,x;l.value=b,t("update:modelValue",b),t("change",b,w),(x=(C=s.value)==null?void 0:C.onChange)==null||x.call(C,w)}}));const m=N(()=>[o,`${o}-direction-${e.direction}`]);bt(()=>e.modelValue,b=>{En(b)?l.value=[...b]:l.value=[]});const y=()=>h.value.map(b=>{const w=c.value.includes(b.value);return R($E,{key:b.value,value:b.value,disabled:b.disabled||!w&&f.value,indeterminate:b.indeterminate,modelValue:w},{default:()=>[n.label?n.label({data:b}):Yt(b.label)?b.label():b.label]})});return()=>{var b;return R("span",{class:m.value},[h.value.length>0?y():(b=n.default)==null?void 0:b.call(n)])}}});const Uc=Object.assign($E,{Group:ME,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+$E.name,$E),e.component(n+ME.name,ME)}}),lfe=Symbol("ArcoSelectContext"),s$e=e=>Dn(e)&&"isGroup"in e,ufe=e=>Dn(e)&&"isGroup"in e,a$e=(e,t="value")=>String(Dn(e)?e[t]:e),ig=(e,t="value")=>Dn(e)?`__arco__option__object__${e[t]}`:e||Me(e)||Io(e)||Ka(e)?`__arco__option__${typeof e}-${e}`:"",l$e=e=>e.has("__arco__option__string-"),u$e=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(Dn(e)){const l=e[n.value];return{raw:e,index:o,key:ig(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:a$e(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:ig(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(s$e(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=u$e(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},Bte=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(ufe(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else LA(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},LA=(e,{inputValue:t,filterOption:n})=>Yt(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,c$e=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!D1(e[n],t[n]))return!1;return!0},d$e=(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]"?c$e(e,t):n==="[object Array]"?d$e(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},f$e=fe({name:"Option",components:{Checkbox:Uc},props:{value:{type:[String,Number,Boolean,Object],default:void 0},label:String,disabled:Boolean,tagProps:{type:Object},extra:{type:Object},index:{type:Number},internal:Boolean},setup(e){const{disabled:t,tagProps:n,index:r}=Ot(e),o=ve("select-option"),a=rn(lfe,void 0),s=Di(),l=ae(),c=ae(n.value);bt(n,($,L)=>{D1($,L)||(c.value=$)});const f=ae(""),h=N(()=>{var $,L;return(L=($=e.value)!=null?$:e.label)!=null?L:f.value}),p=N(()=>{var $;return($=e.label)!=null?$:f.value}),m=N(()=>ig(h.value,a?.valueKey)),y=N(()=>{var $;return($=a?.component)!=null?$:"li"}),b=()=>{var $;if(!e.label&&l.value){const L=($=l.value.textContent)!=null?$:"";f.value!==L&&(f.value=L)}};qt(()=>b()),ma(()=>b());const w=N(()=>{var $;return($=a?.valueKeys.includes(m.value))!=null?$:!1}),C=N(()=>a?.activeKey===m.value);let x=ae(!0);if(!e.internal){const $=Lt({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});x=N(()=>LA($,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,$),uo(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const _=$=>{e.disabled||a?.onSelect(m.value,$)},E=()=>{e.disabled||a?.setActiveKey(m.value)},S=()=>{e.disabled||a?.setActiveKey()},I=N(()=>[o,{[`${o}-disabled`]:e.disabled,[`${o}-selected`]:w.value,[`${o}-active`]:C.value,[`${o}-multiple`]:a?.multiple}]);return{prefixCls:o,cls:I,selectCtx:a,itemRef:l,component:y,isSelected:w,isValid:x,handleClick:_,handleMouseEnter:E,handleMouseLeave:S}}});function h$e(e,t,n,r,o,a){const s=ke("checkbox");return Dr((z(),Ne(la(e.component),{ref:"itemRef",class:ne([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:se(()=>[e.$slots.icon?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon")],2)):ge("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(z(),Ne(s,{key:1,class:ne(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:se(()=>[Qe(e.$slots,"default",{},()=>[$e(_e(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(z(),q("span",{key:2,class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default",{},()=>[$e(_e(e.label),1)])],2)),e.$slots.suffix?(z(),q("span",{key:3,class:ne(`${e.prefixCls}-suffix`)},[Qe(e.$slots,"suffix")],2)):ge("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Eo,e.isValid]])}var Bm=xe(f$e,[["render",h$e]]);const p$e={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},v$e=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=N(()=>({...p$e,...s?.value})),c=Lt(new Map),f=N(()=>Array.from(c.values()).sort((E,S)=>Me(E.index)&&Me(S.index)?E.index-S.index:0)),h=N(()=>{var E,S;const I=new Map;return{optionInfos:qF((E=e?.value)!=null?E:[],{valueKey:(S=a?.value)!=null?S:"value",fieldNames:l.value,origin:"options",optionInfoMap:I}),optionInfoMap:I}}),p=N(()=>{var E,S;const I=new Map;return{optionInfos:qF((E=t?.value)!=null?E:[],{valueKey:(S=a?.value)!=null?S:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:I}),optionInfoMap:I}}),m=Lt(new Map);bt([f,e??ae([]),t??ae([]),a??ae("value")],()=>{m.clear(),f.value.forEach((E,S)=>{m.set(E.key,{...E,index:S})}),h.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))})},{immediate:!0,deep:!0});const y=N(()=>{var E;const S=Bte(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=o?.value)==null||E)&&S.push(...Bte(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),S}),b=N(()=>Array.from(m.values()).filter(E=>E.origin==="extraOptions"&&o?.value===!1?!1:LA(E,{inputValue:n?.value,filterOption:r?.value}))),w=N(()=>b.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:y,optionInfoMap:m,validOptionInfos:b,enabledOptionKeys:w,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,S)=>{c.set(E,S)},removeSlotOptionInfo:E=>{c.delete(E)}}},so={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Fte=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),PA=e=>{const t={};return e.forEach((n,r)=>{const o=Io(r)?{key:r}:r;t[Fte(o)]=n}),n=>{const r=Fte({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},iU=({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:y,virtualListRef:b,onSelect:w,onPopupVisibleChange:C,enterToOpen:x=!0,defaultActiveFirstOption:_})=>{const{validOptions:E,optionInfoMap:S,validOptionInfos:I,enabledOptionKeys:$,getNextSlotOptionIndex:L,addSlotOptionInfo:O,removeSlotOptionInfo:F}=v$e({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),M=ae();bt($,X=>{(!M.value||!X.includes(M.value))&&(M.value=X[0])});const j=X=>{M.value=X},V=X=>{const G=$.value.length;if(G===0)return;if(!M.value)return X==="down"?$.value[0]:$.value[G-1];const Y=$.value.indexOf(M.value),ee=(G+Y+(X==="up"?-1:1))%G;return $.value[ee]},W=X=>{var G,Y;b?.value&&b.value.scrollTo({key:X});const ee=S.get(X),te=(G=m?.value)==null?void 0:G.wrapperRef,J=(Y=y?.value[X])!=null?Y:ee?.ref;if(!te||!J||te.scrollHeight===te.offsetHeight)return;const Z=cPe(J,te),ce=te.scrollTop;Z.top<0?te.scrollTo(0,ce+Z.top):Z.bottom<0&&te.scrollTo(0,ce-Z.bottom)};bt(h,X=>{var G;if(X){const Y=p.value[p.value.length-1];let ee=(G=_?.value)==null||G?$.value[0]:void 0;$.value.includes(Y)&&(ee=Y),ee!==M.value&&(M.value=ee),nn(()=>{M.value&&W(M.value)})}});const U=PA(new Map([[so.ENTER,X=>{!f?.value&&!X.isComposing&&(h.value?M.value&&(w(M.value,X),X.preventDefault()):x&&(C(!0),X.preventDefault()))}],[so.ESC,X=>{h.value&&(C(!1),X.preventDefault())}],[so.ARROW_DOWN,X=>{if(h.value){const G=V("down");G&&(M.value=G,W(G)),X.preventDefault()}}],[so.ARROW_UP,X=>{if(h.value){const G=V("up");G&&(M.value=G,W(G)),X.preventDefault()}}]]));return gr(lfe,Lt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:M,setActiveKey:j,onSelect:w,getNextSlotOptionIndex:L,addSlotOptionInfo:O,removeSlotOptionInfo:F})),{validOptions:E,optionInfoMap:S,validOptionInfos:I,enabledOptionKeys:$,activeKey:M,setActiveKey:j,addSlotOptionInfo:O,removeSlotOptionInfo:F,getNextActiveKey:V,scrollIntoView:W,handleKeyDown:U}},m$e=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=ae(0),s=new Map,l=N(()=>e.value.length),c=ae(0),f=N(()=>{const L=c.value+o.value*3;return L>l.value?l.value:L}),h=N(()=>{const L=l.value-o.value*3;return L<0?0:L}),p=L=>{L<0?c.value=0:L>h.value?c.value=h.value:c.value=L},m=ae(n.value),y=N(()=>r.value!==30?r.value:a.value||r.value),b=(L,O)=>{s.set(L,O)},w=L=>{var O;if(m.value)return y.value;const F=e.value[L];return(O=s.get(F))!=null?O:y.value},C=L=>s.has(L);qt(()=>{const L=Array.from(s.values()).reduce((O,F)=>O+F,0);L>0&&(a.value=L/s.size)});const x=L=>m.value?y.value*L:_(0,L),_=(L,O)=>{let F=0;for(let M=L;Mm.value?y.value*c.value:_(0,c.value)),S=L=>{const O=L>=E.value;let F=Math.abs(L-E.value);const M=O?c.value:c.value-1;let j=0;for(;F>0;)F-=w(M+j),O?j++:j--;return j},I=L=>{const O=S(L),F=c.value+O-o.value;return F<0?0:F>h.value?h.value:F},$=N(()=>m.value?y.value*(l.value-f.value):_(f.value,l.value));return{frontPadding:E,behindPadding:$,start:c,end:f,getStartByScroll:I,setItemSize:b,hasItemSize:C,setStart:p,getScrollOffset:x}};var g$e=fe({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=Di())==null?void 0:n.vnode.key,o=ae(),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 qt(()=>a()),uo(()=>a()),()=>{var s;const l=Ly((s=t.default)==null?void 0:s.call(t));return l?Ga(l,{ref:o},!0):null}}});const y$e=fe({name:"VirtualList",components:{VirtualListItem:g$e},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}=Ot(e),c=ve("virtual-list"),f=N(()=>Dn(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=ae(),p=ae(),m=N(()=>({height:Me(l.value)?`${l.value}px`:l.value,overflow:"auto"})),y=N(()=>n.value.map((M,j)=>{var V;return(V=M[r.value])!=null?V:j})),{frontPadding:b,behindPadding:w,start:C,end:x,getStartByScroll:_,setItemSize:E,hasItemSize:S,setStart:I,getScrollOffset:$}=m$e({dataKeys:y,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),L=N(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(C.value,x.value)),O=M=>{const{scrollTop:j,scrollHeight:V,offsetHeight:W}=M.target,U=_(j);U!==C.value&&(I(U),nn(()=>{F(j)})),t("scroll",M),Math.floor(V-(j+W))<=0&&t("reachBottom",M)},F=M=>{var j,V;if(h.value)if(Me(M))h.value.scrollTop=M;else{const W=(V=M.index)!=null?V:y.value.indexOf((j=M.key)!=null?j:"");I(W-s.value),h.value.scrollTop=$(W),nn(()=>{if(h.value){const U=$(W);U!==h.value.scrollTop&&(h.value.scrollTop=U)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:b,currentList:L,behindPadding:w,onScroll:O,setItemSize:E,hasItemSize:S,start:C,scrollTo:F,style:m,mergedComponent:f}}});function b$e(e,t,n,r,o,a){const s=ke("VirtualListItem");return z(),Ne(la(e.mergedComponent.container),{ref:"containerRef",class:ne(e.prefixCls),style:Ee(e.style),onScroll:e.onScroll},{default:se(()=>[(z(),Ne(la(e.mergedComponent.list),xt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:se(()=>[(z(),Ne(la(e.mergedComponent.content),xt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:se(()=>[(z(!0),q(Tt,null,Kt(e.currentList,(l,c)=>{var f;return z(),Ne(s,{key:(f=l[e.itemKey])!=null?f:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:se(()=>[Qe(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 O1=xe(y$e,[["render",b$e]]),B6=fe({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}=Ot(e),a=ve("auto-complete"),{mergedDisabled:s,eventHandlers:l}=qi({disabled:Yl(e,"disabled")}),c=ae(e.defaultValue),f=ae(),h=N(()=>{var J;return(J=e.modelValue)!=null?J:c.value});bt(o,J=>{(Zt(J)||qa(J))&&(c.value="")});const p=N(()=>h.value?[ig(h.value)]:[]),{data:m}=Ot(e),y=ae(),b=ae({}),w=ae(!1),C=N(()=>w.value&&U.value.length>0),x=ae(),_=N(()=>e.virtualListProps?"div":"li"),E=J=>{w.value=J},S=(J,Z)=>{var ce;return!!((ce=Z.label)!=null&&ce.includes(J))},I=N(()=>Yt(e.filterOption)?e.filterOption:e.filterOption&&e.strict?S:e.filterOption),$=J=>{var Z,ce;c.value=J,t("update:modelValue",J),t("change",J),(ce=(Z=l.value)==null?void 0:Z.onChange)==null||ce.call(Z)},L=J=>{var Z,ce;c.value="",t("update:modelValue",""),t("change",""),(ce=(Z=l.value)==null?void 0:Z.onChange)==null||ce.call(Z),t("clear",J)},O=(J,Z)=>{var ce,ye;const ie=(ce=W.get(J))==null?void 0:ce.value;t("select",ie),$(ie),(ye=f.value)==null||ye.blur()},F=J=>{t("search",J),$(J)},M=J=>{t("dropdownScroll",J)},j=J=>{t("dropdownReachBottom",J)},{validOptions:V,optionInfoMap:W,validOptionInfos:U,handleKeyDown:X}=iU({options:m,inputValue:h,filterOption:I,popupVisible:C,valueKeys:p,component:_,dropdownRef:y,optionRefs:b,onSelect:O,onPopupVisibleChange:E}),G=J=>{if(Yt(r.option)&&J.value){const Z=W.get(J.key),ce=r.option;return()=>ce({data:Z})}return()=>J.label},Y=J=>R(Bm,{ref:Z=>{Z?.$el&&(b.value[J.key]=Z.$el)},key:J.key,value:J.value,disabled:J.disabled,internal:!0},{default:G(J)}),ee=()=>R(rU,{ref:y,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:M,onReachBottom:j},{default:()=>[...V.value.map(J=>Y(J))],"virtual-list":()=>R(O1,xt(e.virtualListProps,{ref:x,data:V.value}),{item:({item:J})=>Y(J)}),footer:r.footer});return{inputRef:f,render:()=>R(Ls,xt({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:C.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:s.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:E}),{default:()=>[R(uv,xt({ref:f},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:F,onClear:L,onKeydown:X}),r)],content:ee})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const S$e=Object.assign(B6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+B6.name,B6)}}),oU=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=ae(-1),a=N(()=>{var f;return(f=n?.value)!=null?f:o.value}),s=ae(),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(Zt(n?.value)&&s.value&&e.value){const f=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);f!==o.value&&(o.value=f)}};return bt(e,()=>{e.value&&!s.value&&(s.value=l())}),qt(()=>{e.value&&(s.value=l()),c()}),ma(()=>c()),{computedIndex:a}},cfe=Symbol("ArcoAvatarGroup"),k$e=fe({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=ve("icon"),r=N(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),w$e=["stroke-width","stroke-linecap","stroke-linejoin"];function C$e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Qm('',5)]),14,w$e)}var F6=xe(k$e,[["render",C$e]]);const $A=Object.assign(F6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F6.name,F6)}}),x$e=fe({name:"Avatar",components:{ResizeObserver:qp,IconImageClose:$A,IconLoading:ha},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}=Ot(e),f=ve("avatar"),h=rn(cfe,void 0),p=ae(),m=ae(),y=N(()=>{var U;return(U=h?.shape)!=null?U:o.value}),b=N(()=>{var U;return(U=h?.size)!=null?U:a.value}),w=N(()=>{var U;return(U=h?.autoFixFontSize)!=null?U:s.value}),C=ae(!1),x=ae(!1),_=ae(!0),E=ae(!1),S=h?oU({itemRef:p,selector:`.${f}`}).computedIndex:ae(-1),I=N(()=>{var U;const X=Me(b.value)?{width:`${b.value}px`,height:`${b.value}px`,fontSize:`${b.value/2}px`}:{};return h&&(X.zIndex=h.zIndexAscend?S.value+1:h.total-S.value,X.marginLeft=S.value!==0?`-${((U=b.value)!=null?U:40)/4}px`:"0"),X}),$=_$e({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),L=()=>{!C.value&&!e.imageUrl&&nn(()=>{var U;if(!m.value||!p.value)return;const X=m.value.clientWidth,G=(U=b.value)!=null?U:p.value.offsetWidth,Y=G/(X+8);G&&Y<1&&(m.value.style.transform=`scale(${Y}) translateX(-50%)`),_.value=!0})};qt(()=>{var U;(U=m.value)!=null&&U.firstElementChild&&["IMG","PICTURE"].includes(m.value.firstElementChild.tagName)&&(C.value=!0),w.value&&L()}),bt(a,()=>{w.value&&L()});const O=N(()=>[f,`${f}-${y.value}`]),F=N(()=>C.value||e.imageUrl?`${f}-image`:`${f}-text`);return{prefixCls:f,itemRef:p,cls:O,outerStyle:I,wrapperRef:m,wrapperCls:F,computedTriggerIconStyle:$,isImage:C,shouldLoad:_,isLoaded:E,hasError:x,onClick:U=>{n("click",U)},handleResize:()=>{w.value&&L()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{x.value=!0,n("error")}}}}),_$e=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},T$e=["src"];function E$e(e,t,n,r,o,a){const s=ke("IconImageClose"),l=ke("IconLoading"),c=ke("resize-observer");return z(),q("div",{ref:"itemRef",style:Ee(e.outerStyle),class:ne([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...f)=>e.onClick&&e.onClick(...f))},[R(c,{onResize:e.handleResize},{default:se(()=>[A("span",{ref:"wrapperRef",class:ne(e.wrapperCls)},[e.imageUrl?(z(),q(Tt,{key:0},[e.hasError?Qe(e.$slots,"error",{key:0},()=>[A("div",{class:ne(`${e.prefixCls}-image-icon`)},[R(s)],2)]):ge("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?Qe(e.$slots,"default",{key:1},()=>[A("div",{class:ne(`${e.prefixCls}-image-icon`)},[R(l)],2)]):ge("v-if",!0),e.hasError||!e.shouldLoad?ge("v-if",!0):(z(),q("img",{key:2,src:e.imageUrl,style:Ee({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,T$e))],64)):Qe(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ee(e.computedTriggerIconStyle)},[Qe(e.$slots,"trigger-icon")],6)):ge("v-if",!0)],6)}var RE=xe(x$e,[["render",E$e]]);const I$e=fe({name:"Popover",components:{Trigger:Ls},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=ve("popover"),r=ae(e.defaultPopupVisible),o=N(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=N(()=>[`${n}-popup-content`,e.contentClass]),l=N(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function A$e(e,t,n,r,o,a){const s=ke("trigger");return z(),Ne(s,{class:ne(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:se(()=>[A("div",{class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2),A("div",{class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"content",{},()=>[$e(_e(e.content),1)])],2)]),default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var j6=xe(I$e,[["render",A$e]]);const sU=Object.assign(j6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+j6.name,j6)}}),DE=fe({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}=Ot(e),s=ve("avatar-group"),l=ae(0);return gr(cfe,Lt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,f;const h=Dd((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),R("div",{class:s},[p,m.length>0&&R(sU,e.maxPopoverTriggerProps,{default:()=>[R(RE,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[$e("+"),m.length]})],content:()=>R("div",null,[m])})])}}}),L$e=Object.assign(RE,{Group:DE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+RE.name,RE),e.component(n+DE.name,DE)}}),P$e=fe({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=ve("icon"),r=N(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$$e=["stroke-width","stroke-linecap","stroke-linejoin"];function M$e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),A("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$$e)}var V6=xe(P$e,[["render",M$e]]);const dfe=Object.assign(V6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V6.name,V6)}}),R$e=fe({name:"BackTop",components:{IconToTop:dfe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=ve("back-top"),n=ae(!1),r=ae(),o=!e.targetContainer,a=ng(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:f}=r.value;n.value=f>=c}}),s=c=>Io(c)?document.querySelector(c):c;return qt(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(Wr(o?window:r.value,"scroll",a),a())}),Fr(()=>{a.cancel(),r.value&&mi(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new Cg({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function D$e(e,t,n,r,o,a){const s=ke("icon-to-top");return z(),Ne(Xo,{name:"fade-in"},{default:se(()=>[e.visible?(z(),q("div",{key:0,class:ne(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[Qe(e.$slots,"default",{},()=>[A("button",{class:ne(`${e.prefixCls}-btn`)},[R(s)],2)])],2)):ge("v-if",!0)]),_:3})}var z6=xe(R$e,[["render",D$e]]);const O$e=Object.assign(z6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+z6.name,z6)}}),N$e=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],B$e=["normal","processing","success","warning","danger"];var U6=fe({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=>B$e.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}=Ot(e),h=ve("badge"),p=F$e(h,n?.value,t?.default),m=N(()=>{const b={...o?.value||{}},[w,C]=a?.value||[];w&&(b.marginRight=`${-w}px`),C&&(b.marginTop=`${C}px`);const x=!r?.value||N$e.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...x,...b},computedDotStyle:b,computedColorStyle:x}}),y=()=>{const b=s?.value,w=r?.value,C=n?.value,x=l?.value,_=Number(f?.value),E=f?.value!=null,{computedDotStyle:S,mergedStyle:I}=m.value;return t.content?R("span",{class:`${h}-custom-dot`,style:S},[t.content()]):b&&!w&&!C?R("span",{class:`${h}-text`,style:S},[b]):C||w&&!E?R("span",{class:`${h}-status-wrapper`},[R("span",{class:[`${h}-status-dot`,{[`${h}-status-${C}`]:C,[`${h}-color-${w}`]:w}],style:I},null),b&&R("span",{class:`${h}-status-text`},[b])]):(x||w)&&_>0?R("span",{class:[`${h}-dot`,{[`${h}-color-${w}`]:w}],style:I},null):_===0?null:R("span",{class:`${h}-number`,style:I},[R("span",null,[c.value&&_>c.value?`${c.value}+`:_])])};return()=>R("span",{class:p.value},[t.default&&t.default(),y()])}});const F$e=(e,t,n)=>N(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),j$e=Object.assign(U6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+U6.name,U6)}}),ffe=Symbol("ArcoBreadcrumb"),V$e=fe({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=ve("icon"),r=N(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),z$e=["stroke-width","stroke-linecap","stroke-linejoin"];function U$e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,z$e)}var H6=xe(V$e,[["render",U$e]]);const cv=Object.assign(H6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H6.name,H6)}}),H$e=fe({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=ve("icon"),r=N(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),W$e=["stroke-width","stroke-linecap","stroke-linejoin"];function G$e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,W$e)}var W6=xe(H$e,[["render",G$e]]);const dv=Object.assign(W6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W6.name,W6)}}),K$e=fe({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=ve("icon"),r=N(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,q$e)}var G6=xe(K$e,[["render",Y$e]]);const hfe=Object.assign(G6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G6.name,G6)}}),aU=Symbol("ArcoDropdown"),X$e=fe({name:"DropdownPanel",components:{Scrollbar:Kc,Empty:Sh},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=ve("dropdown"),o=rn(aU,{}),a=ae(),s=f=>{const{scrollTop:h,scrollHeight:p,offsetHeight:m}=f.target;p-(h+m)<=e.bottomOffset&&t("reachBottom",f),t("scroll",f)},l=N(()=>{if(Me(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=N(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function Z$e(e,t,n,r,o,a){const s=ke("empty"),l=ke("Scrollbar");return z(),q("div",{class:ne(e.cls)},[e.isEmpty?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-empty`)},[Qe(e.$slots,"empty",{},()=>[R(s)])],2)):ge("v-if",!0),R(l,{ref:"wrapperRef",class:ne(`${e.prefixCls}-list-wrapper`),style:Ee(e.style),onScroll:e.handleScroll},{default:se(()=>[A("ul",{class:ne(`${e.prefixCls}-list`)},[Qe(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-footer`)},[Qe(e.$slots,"footer")],2)):ge("v-if",!0)],2)}var pfe=xe(X$e,[["render",Z$e]]);const MA=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=ae((r=t?.value)!=null?r:!1),a=N(()=>{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 bt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},J$e=fe({name:"Dropdown",components:{Trigger:Ls,DropdownPanel:pfe},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}=Ot(e),a=ve("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=MA({defaultPopupVisible:n,popupVisible:r,emit:t});return gr(aU,Lt({popupMaxHeight:o,onOptionClick:(f,h)=>{t("select",f,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function Q$e(e,t,n,r,o,a){const s=ke("DropdownPanel"),l=ke("Trigger");return z(),Ne(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:se(()=>[R(s,null,Wi({default:se(()=>[Qe(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:se(()=>[Qe(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var OE=xe(J$e,[["render",Q$e]]);const e6e=fe({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=ve("dropdown-option"),r=ae(),o=N(()=>{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:rn(aU,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=N(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function t6e(e,t,n,r,o,a){return z(),q("li",{ref:"liRef",class:ne([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon")],2)):ge("v-if",!0),A("span",{class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2),e.$slots.suffix?(z(),q("span",{key:1,class:ne(`${e.prefixCls}-suffix`)},[Qe(e.$slots,"suffix")],2)):ge("v-if",!0)],2)}var My=xe(e6e,[["render",t6e]]);const n6e=fe({name:"Dgroup",props:{title:String},setup(){return{prefixCls:ve("dropdown-group")}}});function r6e(e,t,n,r,o,a){return z(),q(Tt,null,[A("li",{class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2),Qe(e.$slots,"default")],64)}var NE=xe(n6e,[["render",r6e]]);const i6e=fe({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=ve("icon"),r=N(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),o6e=["stroke-width","stroke-linecap","stroke-linejoin"];function s6e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,o6e)}var K6=xe(i6e,[["render",s6e]]);const ri=Object.assign(K6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K6.name,K6)}}),a6e=fe({name:"Dsubmenu",components:{Trigger:Ls,DropdownPanel:pfe,DropdownOption:My,IconRight:ri},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}=Ot(e),o=ve("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=MA({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function l6e(e,t,n,r,o,a){const s=ke("IconRight"),l=ke("dropdown-option"),c=ke("dropdown-panel"),f=ke("Trigger");return z(),Ne(f,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:se(()=>[R(c,{class:ne(`${e.prefixCls}-submenu`)},Wi({default:se(()=>[Qe(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:se(()=>[Qe(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:se(()=>[R(l,xt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),Wi({suffix:se(()=>[Qe(e.$slots,"suffix",{},()=>[R(s)])]),default:se(()=>[Qe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:se(()=>[Qe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var BE=xe(a6e,[["render",l6e]]);const u6e=fe({name:"DropdownButton",components:{IconMore:cv,Button:po,ButtonGroup:O2,Dropdown:OE},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}=Ot(e),o=ve("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=MA({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 c6e(e,t,n,r,o,a){const s=ke("Button"),l=ke("IconMore"),c=ke("Dropdown"),f=ke("ButtonGroup");return z(),Ne(f,null,{default:se(()=>[R(s,xt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:se(()=>[Qe(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),R(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:se(()=>[Qe(e.$slots,"content")]),default:se(()=>[R(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:se(()=>[Qe(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[R(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var FE=xe(u6e,[["render",c6e]]);const vfe=Object.assign(OE,{Option:My,Group:NE,Submenu:BE,Button:FE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+OE.name,OE),e.component(n+My.name,My),e.component(n+NE.name,NE),e.component(n+BE.name,BE),e.component(n+FE.name,FE)}});var N2=fe({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=ve("breadcrumb-item"),o=rn(ffe,void 0),a=ae(!1),s=N(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=N(()=>o&&o.needHide?e.index===1:!1),c=N(()=>o?e.index{a.value=b},h=()=>{var b,w,C,x,_,E,S;if(!c.value)return null;const I=(S=(E=(_=(w=(b=t.separator)==null?void 0:b.call(t))!=null?w:e.separator)!=null?_:(x=o==null?void 0:(C=o.slots).separator)==null?void 0:x.call(C))!=null?E:o?.separator)!=null?S:R(hfe,null,null);return R("div",{"aria-hidden":"true",class:`${r}-separator`},[I])},p=()=>{var b,w,C,x;return R("div",xt({role:"listitem",class:[r,{[`${r}-with-dropdown`]:e.droplist||t.droplist}]},l.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[l.value?(C=(w=o==null?void 0:(b=o.slots)["more-icon"])==null?void 0:w.call(b))!=null?C:R(cv,null,null):(x=t.default)==null?void 0:x.call(t),(e.droplist||t.droplist)&&R("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[R(dv,null,null)])])},m=()=>{var b,w,C;return(C=(b=t.droplist)==null?void 0:b.call(t))!=null?C:(w=e.droplist)==null?void 0:w.map(x=>R(My,{value:x.path},{default:()=>[x.label]}))},y=()=>R(vfe,xt({popupVisible:a.value,onPopupVisibleChange:f},e.dropdownProps),{default:()=>[p()],content:m});return()=>s.value?R(Tt,null,[t.droplist||e.droplist?y():p(),h()]):null}}),q6=fe({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}=Ot(e),a=ve("breadcrumb"),s=ae(0),l=N(()=>n.value>0&&s.value>n.value+1);gr(ffe,Lt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,m,y)=>{var b,w;if(m.indexOf(p)===m.length-1)return R("span",null,[p.label]);const C=(w=(b=e.customUrl)==null?void 0:b.call(e,y))!=null?w:`#/${y.join("/").replace(/^\//,"")}`;return R("a",{href:C},[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((y,b,w)=>{m.push((y.path||"").replace(/^\//,""));const C=[...m];return R(N2,{key:y.path||y.label,index:b,droplist:y.children},{default:()=>{var x,_;return[(_=(x=t["item-render"])==null?void 0:x.call(t,{route:y,routes:w,paths:C}))!=null?_:c(y,w,C)]}})})},h=()=>{var p,m;const y=Dd((m=(p=t.default)==null?void 0:p.call(t))!=null?m:[]);return s.value!==y.length&&(s.value=y.length),y.map((b,w)=>{var C;return b.props=xt((C=b.props)!=null?C:{},{index:w}),b})};return()=>R("div",{role:"list",class:a},[t.default?h():f()])}});const d6e=Object.assign(q6,{Item:N2,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+q6.name,q6),e.component(n+N2.name,N2)}});var f6e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function RA(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 jE={exports:{}},h6e=jE.exports,jte;function mfe(){return jte||(jte=1,(function(e,t){(function(n,r){e.exports=r()})(h6e,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",f="day",h="week",p="month",m="quarter",y="year",b="date",w="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var X=["th","st","nd","rd"],G=U%100;return"["+U+(X[(G-20)%10]||X[G]||X[0])+"]"}},E=function(U,X,G){var Y=String(U);return!Y||Y.length>=X?U:""+Array(X+1-Y.length).join(G)+U},S={s:E,z:function(U){var X=-U.utcOffset(),G=Math.abs(X),Y=Math.floor(G/60),ee=G%60;return(X<=0?"+":"-")+E(Y,2,"0")+":"+E(ee,2,"0")},m:function U(X,G){if(X.date()1)return U(J[0])}else{var Z=X.name;$[Z]=X,ee=Z}return!Y&&ee&&(I=ee),ee||!Y&&I},M=function(U,X){if(O(U))return U.clone();var G=typeof X=="object"?X:{};return G.date=U,G.args=arguments,new V(G)},j=S;j.l=F,j.i=O,j.w=function(U,X){return M(U,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var V=(function(){function U(G){this.$L=F(G.locale,null,!0),this.parse(G),this.$x=this.$x||G.x||{},this[L]=!0}var X=U.prototype;return X.parse=function(G){this.$d=(function(Y){var ee=Y.date,te=Y.utc;if(ee===null)return new Date(NaN);if(j.u(ee))return new Date;if(ee instanceof Date)return new Date(ee);if(typeof ee=="string"&&!/Z$/i.test(ee)){var J=ee.match(C);if(J){var Z=J[2]-1||0,ce=(J[7]||"0").substring(0,3);return te?new Date(Date.UTC(J[1],Z,J[3]||1,J[4]||0,J[5]||0,J[6]||0,ce)):new Date(J[1],Z,J[3]||1,J[4]||0,J[5]||0,J[6]||0,ce)}}return new Date(ee)})(G),this.init()},X.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()},X.$utils=function(){return j},X.isValid=function(){return this.$d.toString()!==w},X.isSame=function(G,Y){var ee=M(G);return this.startOf(Y)<=ee&&ee<=this.endOf(Y)},X.isAfter=function(G,Y){return M(G)68?1900:2e3)},h=function(C){return function(x){this[C]=+x}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var _=x.match(/([+-]|\d\d)/g),E=60*_[1]+(+_[2]||0);return E===0?0:_[0]==="+"?-E:E})(C)}],m=function(C){var x=c[C];return x&&(x.indexOf?x:x.s.concat(x.f))},y=function(C,x){var _,E=c.meridiem;if(E){for(var S=1;S<=24;S+=1)if(C.indexOf(E(S,0,x))>-1){_=S>12;break}}else _=C===(x?"pm":"PM");return _},b={A:[l,function(C){this.afternoon=y(C,!1)}],a:[l,function(C){this.afternoon=y(C,!0)}],Q:[o,function(C){this.month=3*(C-1)+1}],S:[o,function(C){this.milliseconds=100*+C}],SS:[a,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],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(C){var x=c.ordinal,_=C.match(/\d+/);if(this.day=_[0],x)for(var E=1;E<=31;E+=1)x(E).replace(/\[|\]/g,"")===C&&(this.day=E)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(C){var x=m("months"),_=(m("monthsShort")||x.map((function(E){return E.slice(0,3)}))).indexOf(C)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[l,function(C){var x=m("months").indexOf(C)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(C){this.year=f(C)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function w(C){var x,_;x=C,_=c&&c.formats;for(var E=(C=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,j,V){var W=V&&V.toUpperCase();return j||_[V]||n[V]||_[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(U,X,G){return X||G.slice(1)}))}))).match(r),S=E.length,I=0;I-1)return new Date((ee==="X"?1e3:1)*Y);var Z=w(ee)(Y),ce=Z.year,ye=Z.month,ie=Z.day,Ce=Z.hours,Re=Z.minutes,be=Z.seconds,Fe=Z.milliseconds,De=Z.zone,Ge=Z.week,qe=new Date,Ve=ie||(ce||ye?1:qe.getDate()),he=ce||qe.getFullYear(),de=0;ce&&!ye||(de=ye>0?ye-1:qe.getMonth());var Te,Oe=Ce||0,je=Re||0,We=be||0,it=Fe||0;return De?new Date(Date.UTC(he,de,Ve,Oe,je,We,it+60*De.offset*1e3)):te?new Date(Date.UTC(he,de,Ve,Oe,je,We,it)):(Te=new Date(he,de,Ve,Oe,je,We,it),Ge&&(Te=J(Te).week(Ge).toDate()),Te)}catch{return new Date("")}})($,F,L,_),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&$!=this.format(F)&&(this.$d=new Date("")),c={}}else if(F instanceof Array)for(var U=F.length,X=1;X<=U;X+=1){O[1]=F[X-1];var G=_.apply(this,O);if(G.isValid()){this.$d=G.$d,this.$L=G.$L,this.init();break}X===U&&(this.$d=new Date(""))}else S.call(this,I)}}}))})(VE)),VE.exports}var g6e=m6e();const y6e=qd(g6e);var zE={exports:{}},b6e=zE.exports,zte;function S6e(){return zte||(zte=1,(function(e,t){(function(n,r){e.exports=r()})(b6e,(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))}}}))})(zE)),zE.exports}var k6e=S6e();const w6e=qd(k6e);var UE={exports:{}},C6e=UE.exports,Ute;function x6e(){return Ute||(Ute=1,(function(e,t){(function(n,r){e.exports=r()})(C6e,(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"),y=this.diff(m,n,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(UE)),UE.exports}var _6e=x6e();const T6e=qd(_6e);var HE={exports:{}},E6e=HE.exports,Hte;function I6e(){return Hte||(Hte=1,(function(e,t){(function(n,r){e.exports=r()})(E6e,(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)}}}))})(HE)),HE.exports}var A6e=I6e();const L6e=qd(A6e);var WE={exports:{}},P6e=WE.exports,Wte;function $6e(){return Wte||(Wte=1,(function(e,t){(function(n,r){e.exports=r()})(P6e,(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}}}))})(WE)),WE.exports}var M6e=$6e();const R6e=qd(M6e);var GE={exports:{}},D6e=GE.exports,Gte;function O6e(){return Gte||(Gte=1,(function(e,t){(function(n,r){e.exports=r()})(D6e,(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 y=this.quarter()-1;return m?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return c.bind(this)(f,h)}}}))})(GE)),GE.exports}var N6e=O6e();const B6e=qd(N6e);var KE={exports:{}},F6e=KE.exports,Kte;function j6e(){return Kte||(Kte=1,(function(e,t){(function(n,r){e.exports=r(mfe())})(F6e,(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}))})(KE)),KE.exports}j6e();const V6e=(e,t,n)=>{n=function(a,s){if(nc(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=nc,a},n.isDayjs=nc};Na.extend(V6e);Na.extend(y6e);Na.extend(w6e);Na.extend(T6e);Na.extend(L6e);Na.extend(R6e);Na.extend(B6e);const Ko=Na,ds={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 lU(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:En(t)&&En(e)?n(t[0],e[0])||n(t[1],e[1]):!En(t)&&!En(e)?n(t,e):!0}function Iu(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(O5e(t))return Ko(n(o),t.replace(/\[Q]Q/,"MM"));if(Ko(o,t).isValid())return Ko(o,t)}return Ko(o)}};return En(e)?e.map(r):r(e)}function zl(e){const t=n=>n?n.toDate():void 0;return En(e)?e.map(t):t(e)}function gfe(e,t){Ko.locale({...Ko.Ls[e.toLocaleLowerCase()],weekStart:t})}function z6e(e){const t={};return e&&Object.keys(e).forEach(n=>{const r=String(n);r.indexOf("data-")===0&&(t[r]=e[r]),r.indexOf("aria-")===0&&(t[r]=e[r])}),t}function Fm(e,t,n=" "){const r=String(e),o=r.lengthR("div",{class:a},[l.map(c=>R("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||o.value==="year"?"short":"long"}.${c}`)]))])}});function J_(e,t){if(e&&En(e))return e[t]}function yfe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,f){const h=J_(n,0),p=J_(n,1),m=J_(r,0),y=J_(r,1),b=!c.isPrev&&!c.isNext,w=b&&o,C=w,x=w;m&&h&&m.isBefore(h);const E=p&&y&&y.isAfter(p)&&x;let S=a(c.time,ca());return s==="year"&&(S=ca().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:b,[`${e}-cell-today`]:S,[`${e}-cell-selected`]:t&&a(c.time,t),[`${e}-cell-range-start`]:C,[`${e}-cell-range-end`]:x,[`${e}-cell-in-range`]:w,[`${e}-cell-in-range-near-hover`]:E,[`${e}-cell-hover-range-start`]:w,[`${e}-cell-hover-range-end`]:w,[`${e}-cell-hover-in-range`]:w,[`${e}-cell-disabled`]:f}]}}const qte=42,O3=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),H6e=e=>({start:O3(ds.startOf(e,"month")),end:O3(ds.endOf(e,"month")),days:e.daysInMonth()});function bfe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=H6e(e),o=Array(qte).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 Sfe=fe({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}=Ot(e),r=ve("calendar"),o=e.pageShowDate.year(),a=N(()=>yfe({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),y=e.isWeek?{onClick:m}:{},b=e.isWeek?{}:{onClick:m};return R("div",xt({key:h,class:a.value(f,!1)},y),[t.default?(p=t.default)==null?void 0:p.call(t,{year:f.year,month:f.month,date:f.date}):R("div",xt({class:`${r}-date`},b),[R("div",{class:`${r}-date-value`},[e.panel?f.date:R("div",{class:`${r}-date-circle`},[f.date])])])])}if("weekOfYear"in f){const m=e.value.year(),y=e.value.month()+1,b=e.value.week(),w=e.value&&f.weekRows.find(C=>C.year===m&&C.month===y)&&b===f.weekOfYear;return R("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:w,[`${r}-cell-in-range`]:w}]},[R("div",{class:`${r}-date`},[R("div",{class:`${r}-date-value`},[f.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=bfe(Ko(`${o}-${Fm(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>R("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[R(U6e,{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),R("div",{class:`${r}-month-cell-body`},[l?.map((c,f)=>R("div",{key:f,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const kfe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),wfe=Array(3);for(let e=0;e<3;e++)wfe[e]=kfe.slice(e*4,4*(e+1));const Cfe=Array(4);for(let e=0;e<4;e++)Cfe[e]=kfe.slice(e*3,3*(e+1));var W6e=fe({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=ve("calendar"),n=N(()=>yfe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=no(),o=N(()=>e.pageShowData.year()),a=e.panel?Cfe:wfe;return()=>R("div",{class:`${t}-year`},[a.map((s,l)=>R("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const f=Ko(`${o.value}-${Fm(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(f,!1)}:{};return R("div",{key:c.value,class:n.value({...c,time:f},!1)},[e.panel?R("div",xt({class:`${t}-date`},h),[R("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):R("div",{class:`${t}-month-with-days`},[R("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),R(Sfe,{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 G6e=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:o="update:modelValue",eventHandlers:a})=>{var s;const l=ae(),c=ae((s=e?.value)!=null?s:""),f=ae(!1),h=ae(!1),p=ae("");let m;const y=N(()=>{var $;return($=t?.value)!=null?$:c.value}),b=($,L)=>{c.value=$,n(o,$),n(r,$,L)},w=$=>{const{value:L}=$.target;h.value||(b(L,$),nn(()=>{l.value&&y.value!==l.value.value&&(l.value.value=y.value)}))},C=$=>{r==="input"&&y.value!==m&&(m=y.value,n("change",y.value,$))},x=$=>{var L;const{value:O}=$.target;$.type==="compositionend"?(h.value=!1,p.value="",b(O,$),nn(()=>{l.value&&y.value!==l.value.value&&(l.value.value=y.value)})):(h.value=!0,p.value=y.value+((L=$.data)!=null?L:""))},_=$=>{var L,O;f.value=!0,m=y.value,n("focus",$),(O=(L=a?.value)==null?void 0:L.onFocus)==null||O.call(L,$)},E=$=>{var L,O;f.value=!1,n("blur",$),(O=(L=a?.value)==null?void 0:L.onBlur)==null||O.call(L,$),C($)},S=$=>{const L=$.key||$.code;!h.value&&L===Jz.key&&(n("pressEnter",$),C($))},I=$=>{l.value&&$.target!==l.value&&($.preventDefault(),l.value.focus())};return bt(y,$=>{l.value&&$!==l.value.value&&(l.value.value=$)}),{inputRef:l,_value:c,_focused:f,isComposition:h,compositionValue:p,computedValue:y,handleInput:w,handleComposition:x,handleFocus:_,handleBlur:E,handleKeyDown:S,handleMousedown:I}};var K6e=fe({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}=Ot(e),h=(o=e.baseCls)!=null?o:ve("input-label"),{mergedSize:p,mergedDisabled:m,mergedError:y,eventHandlers:b}=qi({size:a,disabled:s,error:l,uninject:f?.value}),{mergedSize:w}=Us(p),{inputRef:C,_focused:x,computedValue:_,handleInput:E,handleComposition:S,handleFocus:I,handleBlur:$,handleMousedown:L}=G6e({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:b}),O=N(()=>{var Y;return(Y=e.focused)!=null?Y:x.value}),F=N(()=>e.enabledInput&&x.value||!e.modelValue),M=()=>{var Y,ee;return e.modelValue?(ee=(Y=e.formatLabel)==null?void 0:Y.call(e,e.modelValue))!=null?ee:e.modelValue.label:""},j=N(()=>e.enabledInput&&e.modelValue?M():e.placeholder),V=()=>{var Y,ee;return e.modelValue?(ee=(Y=r.default)==null?void 0:Y.call(r,{data:e.modelValue}))!=null?ee:M():null},W=N(()=>[h,`${h}-size-${w.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:O.value,[`${h}-disabled`]:m.value,[`${h}-error`]:y.value}]),U=N(()=>Vs(t,Gp)),X=N(()=>Fd(t,Gp));return{inputRef:C,render:()=>R("span",xt(U.value,{class:W.value,title:M(),onMousedown:L}),[r.prefix&&R("span",{class:`${h}-prefix`},[r.prefix()]),R("input",xt(X.value,{ref:C,class:[`${h}-input`,{[`${h}-input-hidden`]:!F.value}],value:_.value,readonly:!e.enabledInput,placeholder:j.value,disabled:m.value,onInput:E,onFocus:I,onBlur:$,onCompositionstart:S,onCompositionupdate:S,onCompositionend:S}),null),R("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:F.value}]},[V()]),r.suffix&&R("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 q6e=(e,t)=>{const n=[];for(const r of e)if(Dn(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||Me(e)){const o={value:r,label:String(r),closable:!0};n.push({raw:o,...o})}return n},Yte=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],Y6e=fe({name:"Tag",components:{IconHover:Ki,IconClose:ps,IconLoading:ha},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}=Ot(e),r=ve("tag"),o=N(()=>e.color&&Yte.includes(e.color)),a=N(()=>e.color&&!Yte.includes(e.color)),s=ae(e.defaultVisible),l=ae(e.defaultChecked),c=N(()=>{var C;return(C=e.visible)!=null?C:s.value}),f=N(()=>{var C;return e.checkable?(C=e.checked)!=null?C:l.value:!0}),{mergedSize:h}=Us(n),p=N(()=>h.value==="mini"?"small":h.value),m=C=>{s.value=!1,t("update:visible",!1),t("close",C)},y=C=>{if(e.checkable){const x=!f.value;l.value=x,t("update:checked",x),t("check",x,C)}},b=N(()=>[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}]),w=N(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:b,style:w,computedVisible:c,computedChecked:f,handleClick:y,handleClose:m}}});function X6e(e,t,n,r,o,a){const s=ke("icon-close"),l=ke("icon-hover"),c=ke("icon-loading");return e.computedVisible?(z(),q("span",{key:0,class:ne(e.cls),style:Ee(e.style),onClick:t[0]||(t[0]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.$slots.icon?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon")],2)):ge("v-if",!0),e.nowrap?(z(),q("span",{key:1,class:ne(`${e.prefixCls}-text`)},[Qe(e.$slots,"default")],2)):Qe(e.$slots,"default",{key:2}),e.closable?(z(),Ne(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:ne(`${e.prefixCls}-close-btn`),onClick:lo(e.handleClose,["stop"])},{default:se(()=>[Qe(e.$slots,"close-icon",{},()=>[R(s)])]),_:3},8,["prefix","class","onClick"])):ge("v-if",!0),e.loading?(z(),q("span",{key:4,class:ne(`${e.prefixCls}-loading-icon`)},[R(c)],2)):ge("v-if",!0)],6)):ge("v-if",!0)}var Y6=xe(Y6e,[["render",X6e]]);const uU=Object.assign(Y6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+Y6.name,Y6)}}),Z6e={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var X6=fe({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}=Ot(e),f=e.baseCls||ve("input-tag"),h=ae(),p=ae(),{mergedSize:m,mergedDisabled:y,mergedError:b,feedback:w,eventHandlers:C}=qi({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:x}=Us(m),_=N(()=>({...Z6e,...e.fieldNames})),E=ae(!1),S=ae(e.defaultValue),I=ae(e.defaultInputValue),$=ae(!1),L=ae(""),O=N(()=>Dn(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),F=Lt({width:"12px"}),M=N(()=>e.focused||E.value),j=(de,Te)=>{I.value=de,t("update:inputValue",de),t("inputValueChange",de,Te)},V=de=>{var Te;const{value:Oe}=de.target;de.type==="compositionend"?($.value=!1,L.value="",j(Oe,de),nn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)})):($.value=!0,L.value=U.value+((Te=de.data)!=null?Te:""))},W=N(()=>{var de;return(de=e.modelValue)!=null?de:S.value}),U=N(()=>{var de;return(de=e.inputValue)!=null?de:I.value});bt(c,de=>{(Zt(de)||qa(de))&&(S.value=[])});const X=de=>{h.value&&de.target!==h.value&&(de.preventDefault(),h.value.focus())},G=de=>{const{value:Te}=de.target;$.value||(j(Te,de),nn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)}))},Y=N(()=>q6e(W.value,_.value)),ee=N(()=>{if(e.maxTagCount>0){const de=Y.value.length-e.maxTagCount;if(de>0){const Te=Y.value.slice(0,e.maxTagCount),Oe={value:"__arco__more",label:`+${de}...`,closable:!1};return Te.push({raw:Oe,...Oe}),Te}}return Y.value}),te=(de,Te)=>{var Oe,je;S.value=de,t("update:modelValue",de),t("change",de,Te),(je=(Oe=C.value)==null?void 0:Oe.onChange)==null||je.call(Oe,Te)},J=(de,Te,Oe)=>{var je;const We=(je=W.value)==null?void 0:je.filter((it,Ze)=>Ze!==Te);te(We,Oe),t("remove",de,Oe)},Z=de=>{te([],de),t("clear",de)},ce=N(()=>!y.value&&!e.readonly&&e.allowClear&&!!W.value.length),ye=de=>{var Te;if(U.value){if(de.preventDefault(),e.uniqueValue&&((Te=W.value)!=null&&Te.includes(U.value))){t("pressEnter",U.value,de);return}const Oe=W.value.concat(U.value);te(Oe,de),t("pressEnter",U.value,de),O.value.create||j("",de)}},ie=de=>{var Te,Oe;E.value=!0,t("focus",de),(Oe=(Te=C.value)==null?void 0:Te.onFocus)==null||Oe.call(Te,de)},Ce=de=>{var Te,Oe;E.value=!1,!O.value.blur&&U.value&&j("",de),t("blur",de),(Oe=(Te=C.value)==null?void 0:Te.onBlur)==null||Oe.call(Te,de)},Re=()=>{for(let de=Y.value.length-1;de>=0;de--)if(Y.value[de].closable)return de;return-1},be=de=>{if(y.value||e.readonly)return;const Te=de.key||de.code;if(!$.value&&U.value&&Te===Jz.key&&ye(de),!$.value&&ee.value.length>0&&!U.value&&Te===nfe.key){const Oe=Re();Oe>=0&&J(Y.value[Oe].value,Oe,de)}},Fe=de=>{de>12?F.width=`${de}px`:F.width="12px"};qt(()=>{p.value&&Fe(p.value.offsetWidth)});const De=()=>{p.value&&Fe(p.value.offsetWidth)};bt(U,de=>{h.value&&!$.value&&de!==h.value.value&&(h.value.value=de)});const Ge=N(()=>[f,`${f}-size-${x.value}`,{[`${f}-disabled`]:y.value,[`${f}-disabled-input`]:e.disabledInput,[`${f}-error`]:b.value,[`${f}-focus`]:M.value,[`${f}-readonly`]:e.readonly,[`${f}-has-tag`]:ee.value.length>0,[`${f}-has-prefix`]:!!n.prefix,[`${f}-has-suffix`]:!!n.suffix||ce.value||w.value,[`${f}-has-placeholder`]:!W.value.length}]),qe=N(()=>Vs(r,Gp)),Ve=N(()=>Fd(r,Gp));return{inputRef:h,render:()=>{var de;return R("span",xt({class:Ge.value,onMousedown:X},qe.value),[R(Wc,{onResize:De},{default:()=>[R("span",{ref:p,class:`${f}-mirror`},[ee.value.length>0?L.value||U.value:L.value||U.value||e.placeholder])]}),n.prefix&&R("span",{class:`${f}-prefix`},[n.prefix()]),R($1,{tag:"span",name:"input-tag-zoom",class:[`${f}-inner`,{[`${f}-nowrap`]:e.tagNowrap}]},{default:()=>[ee.value.map((Te,Oe)=>R(uU,xt({key:`tag-${Te.value}`,class:`${f}-tag`,closable:!y.value&&!e.readonly&&Te.closable,visible:!0,nowrap:e.tagNowrap},Te.tagProps,{onClose:je=>J(Te.value,Oe,je)}),{default:()=>{var je,We,it,Ze;return[(Ze=(it=(je=n.tag)==null?void 0:je.call(n,{data:Te.raw}))!=null?it:(We=e.formatTag)==null?void 0:We.call(e,Te.raw))!=null?Ze:Te.label]}})),R("input",xt(Ve.value,{ref:h,key:"input-tag-input",class:`${f}-input`,style:F,placeholder:ee.value.length===0?e.placeholder:void 0,disabled:y.value,readonly:e.readonly||e.disabledInput,onInput:G,onKeydown:be,onFocus:ie,onBlur:Ce,onCompositionstart:V,onCompositionupdate:V,onCompositionend:V}),null)]}),ce.value&&R(Ki,{class:`${f}-clear-btn`,onClick:Z,onMousedown:Te=>Te.stopPropagation()},{default:()=>[R(ps,null,null)]}),(n.suffix||!!w.value)&&R("span",{class:`${f}-suffix`},[(de=n.suffix)==null?void 0:de.call(n),!!w.value&&R(Iw,{type:w.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 xfe=Object.assign(X6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+X6.name,X6)}});var N3=fe({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=>En(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}=Ot(e),s=ve("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:f,mergedSize:h,mergedError:p}=qi({size:r,disabled:o,error:a}),{mergedSize:m}=Us(h),{opened:y}=Ot(e),b=ae(),w=N(()=>{var j;return(j=b.value)==null?void 0:j.inputRef}),C=N(()=>e.modelValue.length===0),x=N(()=>e.allowSearch||e.allowCreate),_=N(()=>e.allowClear&&!e.disabled&&!C.value),E=j=>{var V,W;t("focus",j),(W=(V=c.value)==null?void 0:V.onFocus)==null||W.call(V,j)},S=j=>{var V,W;t("blur",j),(W=(V=c.value)==null?void 0:V.onBlur)==null||W.call(V,j)},I=j=>{t("remove",j)},$=j=>{t("clear",j)},L=()=>{var j,V,W,U;return e.loading?(V=(j=n["loading-icon"])==null?void 0:j.call(n))!=null?V:R(ha,null,null):e.allowSearch&&e.opened?(U=(W=n["search-icon"])==null?void 0:W.call(n))!=null?U:R(rg,null,null):n["arrow-icon"]?n["arrow-icon"]():R(dv,{class:`${s}-arrow-icon`},null)},O=()=>R(Tt,null,[_.value&&R(Ki,{class:`${s}-clear-btn`,onClick:$,onMousedown:j=>j.stopPropagation()},{default:()=>[R(ps,null,null)]}),R("span",{class:`${s}-icon`},[L()]),!!l.value&&R(Iw,{type:l.value},null)]);bt(y,j=>{!j&&w.value&&w.value.isSameNode(document.activeElement)&&w.value.blur()});const F=N(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:w,handleFocus:E,handleBlur:S,render:()=>e.multiple?R(xfe,{ref:b,baseCls:s,class:F.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:I,onFocus:E,onBlur:S},{prefix:n.prefix,suffix:O,tag:n.label}):R(K6e,{ref:b,baseCls:s,class:F.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:f.value,size:m.value,error:p.value,enabledInput:x.value,uninjectFormItemContext:!0,onFocus:E,onBlur:S},{default:n.label,prefix:n.prefix,suffix:O})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const J6e=fe({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:ve("select-group")}}});function Q6e(e,t,n,r,o,a){return z(),q(Tt,null,[A("li",{class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"label",{},()=>[$e(_e(e.label),1)])],2),Qe(e.$slots,"default")],64)}var B2=xe(J6e,[["render",Q6e]]);const Xte=typeof window>"u"?global:window;function Nk(e,t){let n=0;return(...r)=>{n&&Xte.clearTimeout(n),n=Xte.setTimeout(()=>{n=0,e(...r)},t)}}function eMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}const tMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var Z6=fe({name:"Select",components:{Trigger:Ls,SelectView:N3},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=>Zt(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:y,modelValue:b,fieldNames:w,loading:C,defaultActiveFirstOption:x}=Ot(e),_=ve("select"),{mergedSize:E,mergedDisabled:S,mergedError:I,eventHandlers:$}=qi({size:o,disabled:a,error:s}),L=N(()=>e.virtualListProps?"div":"li"),O=N(()=>Dn(e.allowSearch)&&!!e.allowSearch.retainInputValue);N(()=>{if(Yt(e.formatLabel))return dt=>{const lt=We.get(dt.value);return e.formatLabel(lt)}});const F=ae(),M=ae({}),j=ae(),{computedPopupVisible:V,handlePopupVisibleChange:W}=MA({popupVisible:p,defaultPopupVisible:m,emit:n}),U=ae(e.defaultValue),X=N(()=>{var dt;const lt=(dt=e.modelValue)!=null?dt:U.value;return(En(lt)?lt:lt||Me(lt)||Io(lt)||Ka(lt)?[lt]:[]).map(Ae=>({value:Ae,key:ig(Ae,e.valueKey)}))});bt(b,dt=>{(Zt(dt)||qa(dt))&&(U.value=h.value?[]:dt)});const G=N(()=>X.value.map(dt=>dt.key)),Y=N(()=>({...tMe,...w?.value})),ee=ae(),te=dt=>{const lt={};return dt.forEach(Pe=>{lt[Pe]=We.get(Pe)}),lt},J=dt=>{ee.value=te(dt)},Z=dt=>Yt(e.fallbackOption)?e.fallbackOption(dt):{[Y.value.value]:dt,[Y.value.label]:String(Dn(dt)?dt[f?.value]:dt)},ce=()=>{const dt=[],lt=[];if(e.allowCreate||e.fallbackOption){for(const Pe of X.value)if(!lt.includes(Pe.key)&&Pe.value!==""){const Ae=We.get(Pe.key);(!Ae||Ae.origin==="extraOptions")&&(dt.push(Pe),lt.push(Pe.key))}}if(e.allowCreate&&Re.value){const Pe=ig(Re.value);if(!lt.includes(Pe)){const Ae=We.get(Pe);(!Ae||Ae.origin==="extraOptions")&&dt.push({value:Re.value,key:Pe})}}return dt},ye=ae([]),ie=N(()=>ye.value.map(dt=>{var lt;let Pe=Z(dt.value);const Ae=(lt=ee.value)==null?void 0:lt[dt.key];return!Zt(Ae)&&!D5e(Ae)&&(Pe={...Pe,...Ae}),Pe}));nn(()=>{Yo(()=>{var dt;const lt=ce();if(lt.length!==ye.value.length)ye.value=lt;else if(lt.length>0){for(let Pe=0;Pe{var dt;return(dt=e.inputValue)!=null?dt:Ce.value});bt(V,dt=>{!dt&&!O.value&&Re.value&&De("")});const be=dt=>{var lt,Pe;return e.multiple?dt.map(Ae=>{var Xe,ut;return(ut=(Xe=We.get(Ae))==null?void 0:Xe.value)!=null?ut:""}):(Pe=(lt=We.get(dt[0]))==null?void 0:lt.value)!=null?Pe:l$e(We)?void 0:""},Fe=dt=>{var lt,Pe;const Ae=be(dt);U.value=Ae,n("update:modelValue",Ae),n("change",Ae),(Pe=(lt=$.value)==null?void 0:lt.onChange)==null||Pe.call(lt),J(dt)},De=dt=>{Ce.value=dt,n("update:inputValue",dt),n("inputValueChange",dt)},Ge=(dt,lt)=>{if(e.multiple){if(G.value.includes(dt)){const Pe=G.value.filter(Ae=>Ae!==dt);Fe(Pe)}else if(Ze.value.includes(dt))if(e.limit>0&&G.value.length>=e.limit){const Pe=We.get(dt);n("exceedLimit",Pe?.value,lt)}else{const Pe=G.value.concat(dt);Fe(Pe)}O.value||De("")}else{if(dt!==G.value[0]&&Fe([dt]),O.value){const Pe=We.get(dt);Pe&&De(Pe.label)}W(!1)}},qe=Nk(dt=>{n("search",dt)},e.searchDelay),Ve=dt=>{dt!==Re.value&&(V.value||W(!0),De(dt),e.allowSearch&&qe(dt))},he=dt=>{const lt=We.get(dt),Pe=G.value.filter(Ae=>Ae!==dt);Fe(Pe),n("remove",lt?.value)},de=dt=>{dt?.stopPropagation();const lt=G.value.filter(Pe=>{var Ae;return(Ae=We.get(Pe))==null?void 0:Ae.disabled});Fe(lt),De(""),n("clear",dt)},Te=dt=>{n("dropdownScroll",dt)},Oe=dt=>{n("dropdownReachBottom",dt)},{validOptions:je,optionInfoMap:We,validOptionInfos:it,enabledOptionKeys:Ze,handleKeyDown:pt}=iU({multiple:h,options:l,extraOptions:ie,inputValue:Re,filterOption:c,showExtraOptions:y,component:L,valueKey:f,fieldNames:w,loading:C,popupVisible:V,valueKeys:G,dropdownRef:F,optionRefs:M,virtualListRef:j,defaultActiveFirstOption:x,onSelect:Ge,onPopupVisibleChange:W}),et=N(()=>{var dt;const lt=[];for(const Pe of X.value){const Ae=We.get(Pe.key);Ae&<.push({...Ae,value:Pe.key,label:(dt=Ae?.label)!=null?dt:String(Dn(Pe.value)?Pe.value[f?.value]:Pe.value),closable:!Ae?.disabled,tagProps:Ae?.tagProps})}return lt}),Pt=dt=>{if(Yt(t.option)){const lt=t.option;return()=>lt({data:dt.raw})}return Yt(dt.render)?dt.render:()=>dt.label},$t=dt=>{if(ufe(dt)){let lt;return R(B2,{key:dt.key,label:dt.label},eMe(lt=dt.options.map(Pe=>$t(Pe)))?lt:{default:()=>[lt]})}return LA(dt,{inputValue:Re.value,filterOption:c?.value})?R(Bm,{ref:lt=>{lt?.$el&&(M.value[dt.key]=lt.$el)},key:dt.key,value:dt.value,label:dt.label,disabled:dt.disabled,internal:!0},{default:Pt(dt)}):null},vt=()=>R(rU,{ref:F,loading:e.loading,empty:it.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Te,onReachBottom:Oe},{default:()=>{var dt,lt;return[...(lt=(dt=t.default)==null?void 0:dt.call(t))!=null?lt:[],...je.value.map($t)]},"virtual-list":()=>R(O1,xt(e.virtualListProps,{ref:j,data:je.value}),{item:({item:dt})=>$t(dt)}),empty:t.empty,header:t.header,footer:t.footer}),Nt=({data:dt})=>{var lt,Pe,Ae,Xe;if((t.label||Yt(e.formatLabel))&&dt){const ut=We.get(dt.value);if(ut?.raw)return(Ae=(lt=t.label)==null?void 0:lt.call(t,{data:ut.raw}))!=null?Ae:(Pe=e.formatLabel)==null?void 0:Pe.call(e,ut.raw)}return(Xe=dt?.label)!=null?Xe:""};return()=>R(Ls,xt({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:S.value,popupVisible:V.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:W},e.triggerProps),{default:()=>{var dt,lt;return[(lt=(dt=t.trigger)==null?void 0:dt.call(t))!=null?lt:R(N3,xt({class:_,modelValue:et.value,inputValue:Re.value,multiple:e.multiple,disabled:S.value,error:I.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:V.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:Ve,onRemove:he,onClear:de,onKeydown:pt},r),{label:Nt,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:vt})}});const Bk=Object.assign(Z6,{Option:Bm,OptGroup:B2,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+Z6.name,Z6),e.component(n+Bm.name,Bm),e.component(n+B2.name,B2)}}),_fe=Symbol("RadioGroup");var qE=fe({name:"Radio",components:{IconHover:Ki},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=ve("radio"),{modelValue:o}=Ot(e),a=e.uninjectGroupContext?void 0:rn(_fe,void 0),{mergedDisabled:s,eventHandlers:l}=qi({disabled:Yl(e,"disabled")}),c=ae(null),f=ae(e.defaultChecked),h=N(()=>a?.name==="ArcoRadioGroup"),p=N(()=>{var S;return(S=a?.type)!=null?S:e.type}),m=N(()=>a?.disabled||s.value),y=N(()=>{var S,I;return h.value?a?.value===((S=e.value)!=null?S:!0):Zt(e.modelValue)?f.value:e.modelValue===((I=e.value)!=null?I:!0)});bt(o,S=>{(Zt(S)||qa(S))&&(f.value=!1)}),bt(y,(S,I)=>{S!==I&&(f.value=S,c.value&&(c.value.checked=S))});const b=S=>{var I,$;($=(I=l.value)==null?void 0:I.onFocus)==null||$.call(I,S)},w=S=>{var I,$;($=(I=l.value)==null?void 0:I.onBlur)==null||$.call(I,S)},C=S=>{S.stopPropagation()},x=S=>{var I,$,L,O,F;f.value=!0,h.value?a?.handleChange((I=e.value)!=null?I:!0,S):(t("update:modelValue",($=e.value)!=null?$:!0),t("change",(L=e.value)!=null?L:!0,S),(F=(O=l.value)==null?void 0:O.onChange)==null||F.call(O,S)),nn(()=>{c.value&&c.value.checked!==y.value&&(c.value.checked=y.value)})},_=N(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:y.value,[`${r}-disabled`]:m.value}]),E=()=>R(Tt,null,[R(ke("icon-hover"),{class:`${r}-icon-hover`,disabled:m.value||y.value},{default:()=>[R("span",{class:`${r}-icon`},null)]}),n.default&&R("span",{class:`${r}-label`},[n.default()])]);return()=>{var S,I,$,L;return R("label",{class:_.value},[R("input",{ref:c,type:"radio",checked:y.value,value:e.value,class:`${r}-target`,disabled:m.value,onClick:C,onChange:x,onFocus:b,onBlur:w},null),p.value==="radio"?(L=($=(I=n.radio)!=null?I:(S=a?.slots)==null?void 0:S.radio)==null?void 0:$({checked:y.value,disabled:m.value}))!=null?L:E():R("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),YE=fe({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=ve("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=Ot(e),{mergedDisabled:c,mergedSize:f,eventHandlers:h}=qi({size:o,disabled:s}),{mergedSize:p}=Us(f),m=ae(e.defaultValue),y=N(()=>{var _;return(_=e.modelValue)!=null?_:m.value}),b=N(()=>{var _;return((_=e.options)!=null?_:[]).map(E=>Io(E)||Me(E)?{label:E,value:E}:E)});gr(_fe,Lt({name:"ArcoRadioGroup",value:y,size:p,type:a,disabled:c,slots:n,handleChange:(_,E)=>{var S,I;m.value=_,t("update:modelValue",_),t("change",_,E),(I=(S=h.value)==null?void 0:S.onChange)==null||I.call(S,E)}})),bt(y,_=>{m.value!==_&&(m.value=_)}),bt(l,_=>{(Zt(_)||qa(_))&&(m.value="")});const C=N(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),x=()=>b.value.map(_=>R(qE,{key:_.value,value:_.value,disabled:_.disabled,modelValue:y.value===_.value},{default:()=>[n.label?n.label({data:_}):Yt(_.label)?_.label():_.label]}));return()=>{var _;return R("span",{class:C.value},[b.value.length>0?x():(_=n.default)==null?void 0:_.call(n)])}}});const l1=Object.assign(qE,{Group:YE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+qE.name,qE),e.component(n+YE.name,YE)}}),nMe=fe({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=ve("icon"),r=N(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rMe=["stroke-width","stroke-linecap","stroke-linejoin"];function iMe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,rMe)}var J6=xe(nMe,[["render",iMe]]);const yl=Object.assign(J6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J6.name,J6)}});function oMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}function Zte(e){return e.parentElement}var sMe=fe({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=ve("calendar"),{t:r}=no(),o=En(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=N(()=>e.pageShowData.year()),l=N(()=>e.pageShowData.month()+1),c=N(()=>{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 R("div",{class:`${n}-header`},[R("div",{class:`${n}-header-left`},[a?R(Tt,null,[R(Bk,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:Zte},null),e.mode==="month"&&R(Bk,{size:"small",class:`${n}-header-value-month`,value:l,options:f,onChange:e.onMonthChange,getPopupContainer:Zte},null)]):R(Tt,null,[R("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[R(yl,null,null)]),R("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),R("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[R(ri,null,null)])]),R(po,{size:"small",onClick:()=>e.move(ca())},oMe(h=r("datePicker.today"))?h:{default:()=>[h]})]),R("div",{class:`${n}-header-right`},[R(l1.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function aMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var Q6=fe({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}=Ot(e),a=ve("calendar"),s=ae(e.defaultMode),{t:l}=no(),c=N(()=>e.mode?e.mode:s.value),f=aMe(c.value,e.panel),h=ae(Iu(e.defaultValue||Date.now(),f)),p=N(()=>e.modelValue?Iu(e.modelValue,f):h.value),m=ae(p.value||ca()),y=N(()=>bfe(m.value,{dayStartOfWeek:r.value,isWeek:o.value}));function b(O){m.value=O,t("panelChange",O.toDate())}function w(O){h.value=O,t("change",O.toDate()),t("update:modelValue",O.toDate()),b(O)}function C(O,F=!1){F||w(O)}let x="";c.value==="month"?x=l("calendar.formatMonth"):c.value==="year"&&(x=l("calendar.formatYear"));function _(O,F){O==="prev"&&(m.value=ds.subtract(m.value,1,F)),O==="next"&&(m.value=ds.add(m.value,1,F)),t("panelChange",m.value.toDate())}function E(O){const F=ds.set(m.value,"year",O);m.value=F,t("panelChange",F.toDate())}function S(O){const F=ds.set(m.value,"month",O-1);m.value=F,t("panelChange",F.toDate())}function I(O){s.value=O}const $=N(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),L=e.panel?{width:e.panelWidth}:{};return()=>R("div",xt({class:$.value,style:L},z6e(e)),[R(sMe,{move:w,headerValueFormat:x,modes:e.modes,mode:c.value,pageShowData:m.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:I,onYearChange:E,onMonthChange:S,changePageShowDate:_},{default:n.header}),c.value==="month"&&R("div",{class:`${a}-body`},[R(Sfe,{key:m.value.month(),pageData:y.value,value:p.value,mode:c.value,selectHandler:C,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:m.value},{default:n.default})]),c.value==="year"&&R("div",{class:`${a}-body`},[R(W6e,{key:m.value.year(),pageData:y.value,pageShowData:m.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:C},null)]),e.panel&&e.panelTodayBtn&&R("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const Tfe=Object.assign(Q6,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+Q6.name,Q6)}}),cU=Symbol("ArcoCard");var eM=fe({name:"Card",components:{Spin:Gc},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=ve("card"),{size:r}=Ot(e),{mergedSize:o}=Us(r),a=N(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=f=>{const h=Dd(f);return R("div",{class:`${n}-actions`},[R("div",{class:`${n}-actions-right`},[h.map((p,m)=>R("span",{key:`action-${m}`,class:`${n}-actions-item`},[p]))])])},l=Lt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});gr(cU,l);const c=N(()=>[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,y,b,w;const C=!!((f=t.title)!=null?f:e.title),x=!!((h=t.extra)!=null?h:e.extra);return R("div",{class:c.value},[(C||x)&&R("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!C}],style:e.headerStyle},[C&&R("div",{class:`${n}-header-title`},[(m=(p=t.title)==null?void 0:p.call(t))!=null?m:e.title]),x&&R("div",{class:`${n}-header-extra`},[(b=(y=t.extra)==null?void 0:y.call(t))!=null?b:e.extra])]),t.cover&&R("div",{class:`${n}-cover`},[t.cover()]),R("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?R(Gc,null,null):(w=t.default)==null?void 0:w.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),XE=fe({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=ve("card-meta"),r=rn(cU);return qt(()=>{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 R("div",{class:n},[(h||p)&&R("div",{class:`${n}-content`},[h&&R("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&R("div",{class:`${n}-description`},[(f=(c=t.description)==null?void 0:c.call(t))!=null?f:e.description])]),(t.avatar||r?.slots.actions)&&R("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&R("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const lMe=fe({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=ve("card-grid"),n=rn(cU);return qt(()=>{n&&(n.hasGrid=!0)}),{cls:N(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function uMe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.cls)},[Qe(e.$slots,"default")],2)}var ZE=xe(lMe,[["render",uMe]]);const cMe=Object.assign(eM,{Meta:XE,Grid:ZE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+eM.name,eM),e.component(n+XE.name,XE),e.component(n+ZE.name,ZE)}}),dMe=fe({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=ve("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=N(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=N(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=N(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),fMe=["data-index"];function hMe(e,t,n,r,o,a){return z(),q("div",xt({class:e.cls},e.eventHandlers),[e.type==="slider"?(z(),q("span",{key:0,style:Ee(e.sliderStyle),class:ne([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(z(!0),q(Tt,{key:1},Kt(Array(e.count),(s,l)=>(z(),q("span",{key:l,"data-index":l,class:ne([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,fMe))),128))],16)}var pMe=xe(dMe,[["render",hMe]]);const vMe=fe({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=ve("icon"),r=N(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mMe=["stroke-width","stroke-linecap","stroke-linejoin"];function gMe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,mMe)}var tM=xe(vMe,[["render",gMe]]);const Aw=Object.assign(tM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tM.name,tM)}}),yMe=fe({name:"Arrow",components:{IconUp:Aw,IconDown:dv,IconLeft:yl,IconRight:ri},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=ve("carousel"),r=s=>{t("previousClick",s)},o=s=>{t("nextClick",s)},a=N(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function bMe(e,t,n,r,o,a){const s=ke("IconLeft"),l=ke("IconUp"),c=ke("IconRight"),f=ke("IconDown");return z(),q("div",{class:ne(e.cls)},[A("div",{class:ne(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(z(),Ne(s,{key:0})):(z(),Ne(l,{key:1}))],2),A("div",{class:ne(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(z(),Ne(c,{key:0})):(z(),Ne(f,{key:1}))],2)],2)}var SMe=xe(yMe,[["render",bMe]]);const Efe=Symbol("ArcoCarousel"),Lw=e=>{const t={},n=ae([]),r=()=>{if(t.value){const o=qde(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return qt(()=>r()),ma(()=>r()),{children:t,components:n}},Jte={interval:3e3,hoverToPause:!0};function nM(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var rM=fe({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}=Ot(e),l=ve("carousel"),c=ae(!1),f=ae(),h=ae(),p=N(()=>Dn(e.autoPlay)?{...Jte,...e.autoPlay}:e.autoPlay?Jte:{});let m=0,y=0;const{children:b,components:w}=Lw("CarouselItem"),C=ae(e.defaultCurrent-1),x=N(()=>{const U=w.value.length,X=Me(r.value)?nM(r.value-1,U):C.value,G=nM(X-1,U),Y=nM(X+1,U);return{mergedIndex:X,mergedPrevIndex:G,mergedNextIndex:Y}}),_=Lt({items:w,slideTo:S,mergedIndexes:x,previousIndex:f,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});gr(Efe,_);const E=()=>{m&&window.clearInterval(m)};Yo(()=>{var U;const{interval:X}=p.value||{},{mergedNextIndex:G}=x.value,Y=((U=w.value)==null?void 0:U.length)>1&&!c.value&&!!X;E(),Y&&(m=window.setInterval(()=>{S({targetIndex:G})},X))}),uo(()=>{E()});function S({targetIndex:U,isNegative:X=!1,isManual:G=!1}){!y&&U!==x.value.mergedIndex&&(f.value=C.value,C.value=U,h.value=X?"negative":"positive",y=window.setTimeout(()=>{y=0},a.value),t("update:current",C.value+1),t("change",C.value+1,f.value+1,G))}const I=()=>S({targetIndex:x.value.mergedPrevIndex,isNegative:!0,isManual:!0}),$=()=>S({targetIndex:x.value.mergedNextIndex,isManual:!0}),L=U=>S({targetIndex:U,isNegative:Up.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),F=N(()=>e.indicatorType!=="never"&&w.value.length>1),M=N(()=>e.showArrow!=="never"&&w.value.length>1),j=N(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),V=N(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),W=N(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var U;return b.value=(U=n.default)==null?void 0:U.call(n),R("div",xt({class:j.value},O.value),[R("div",{class:V.value},[b.value]),F.value&&R("div",{class:W.value},[R(pMe,{class:e.indicatorClass,type:e.indicatorType,count:w.value.length,activeIndex:x.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:L},null)]),M.value&&R(SMe,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:I,onNextClick:$},null)])}}});const kMe=fe({name:"CarouselItem",setup(){const e=ve("carousel-item"),t=Di(),n=rn(Efe,{}),r=N(()=>{var l,c,f;return(f=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?f:-1}),o=N(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=N(()=>{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=N(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),wMe=["aria-hidden"];function CMe(e,t,n,r,o,a){return z(),q("div",{"aria-hidden":!e.isCurrent,class:ne(e.cls),style:Ee(e.animationStyle)},[Qe(e.$slots,"default")],14,wMe)}var JE=xe(kMe,[["render",CMe]]);const xMe=Object.assign(rM,{Item:JE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+rM.name,rM),e.component(n+JE.name,JE)}}),Ife=(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,w,C)=>{var x;const _=(x=w?.path)!=null?x:[];return p=Math.max(p,C??1),b.map((E,S)=>{var I;const $=E[h.value],L={raw:E,value:$,label:(I=E[h.label])!=null?I:String($),disabled:!!E[h.disabled],selectionDisabled:!1,render:E[h.render],tagProps:E[h.tagProps],isLeaf:E[h.isLeaf],level:_.length,index:S,key:"",valueKey:String(Dn($)?$[f.value]:$),parent:w,path:[],pathValue:[]},O=_.concat(L),F=[],M=O.map(j=>(F.push(j.value),j.valueKey)).join("-");return L.path=O,L.pathValue=F,L.key=M,E[h.children]?(L.isLeaf=!1,L.children=m(E[h.children],L,(C??1)+1)):l&&!L.isLeaf?(L.isLeaf=!1,c[M]&&(L.children=m(c[M],L,(C??1)+1))):L.isLeaf=!0,L.children&&!L.disabled&&(L.totalLeafOptions=L.children.reduce((j,V)=>Me(V.totalLeafOptions)?j+V.totalLeafOptions:V.disabled||V.selectionDisabled?j:j+(V.isLeaf?1:0),0),L.totalLeafOptions===0&&!s.value&&(L.selectionDisabled=!0)),t.set(L.key,L),(L.isLeaf||s.value)&&(r.add(L),n.set(L.key,L),o.has(L.valueKey)||o.set(L.valueKey,L.key)),L})},y=m(e);return a.value=p,y},dU=(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}},fU=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...fU(n));return t},hU=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(...hU(n));return t},Afe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(En(e))return e.map(a=>Dn(a)?a[t]:a).join("-");const o=Dn(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Lfe=(e,{multiple:t,pathMode:n})=>En(e)?n&&!t&&e.length>0&&!En(e[0])?[e]:e:Zt(e)||qa(e)||e===""?[]:[e],Pfe=e=>e.path.map(t=>t.label).join(" / "),pU=Symbol("ArcoCascader");var YF=fe({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=ve("cascader-option"),n=rn(pU,{}),r=ae(!1),o={},a=h=>{var p;if(Yt(n.loadMore)&&!e.option.isLeaf){const{isLeaf:m,children:y,key:b}=e.option;!m&&!y&&(r.value=!0,new Promise(w=>{var C;(C=n.loadMore)==null||C.call(n,e.option.raw,w)}).then(w=>{var C;r.value=!1,w&&((C=n.addLazyLoadOptions)==null||C.call(n,w,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=N(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=N(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:dU(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(y=>y.raw)))!=null?p:Pfe(e.option):(m=n.slots)!=null&&m.option?n.slots.option({data:e.option}):Yt(e.option.render)?e.option.render():e.option.label},f=()=>r.value?R(ha,null,null):!e.searchOption&&!e.option.isLeaf?R(ri,null,null):null;return()=>{var h;return R("li",xt({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&&R(Uc,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,m)=>{var y;m.stopPropagation(),a(),(y=n.onClickOption)==null||y.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&R(l1,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,m)=>{var y;m.stopPropagation(),a(),(y=n.onClickOption)==null||y.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),R("div",{class:`${t}-label`},[c(),f()])])}}}),_Me=fe({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=ve("cascader"),r=rn(fa,void 0),o=ae(),a=ae(!!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:R(Sh,null,null)};return()=>{var l;return R("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?R(Kc,{class:`${n}-column-content`},{default:()=>[R("div",{class:`${n}-list-empty`},[s()])]}):a.value?R(O1,xt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>R(YF,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):R(Kc,{class:`${n}-column-content`},{default:()=>[R("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>R(YF,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function TMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var $fe=fe({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=ve("cascader"),r=rn(fa,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:R(Sh,null,null)},a=()=>e.loading?R("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[R(Gc,null,null)]):e.displayColumns.length===0?R("div",{key:"panel-column-empty",class:`${n}-panel-column`},[R("div",{class:`${n}-list-empty`},[o()])]):e.displayColumns.map((s,l)=>R(_Me,{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 R($1,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},TMe(s=a())?s:{default:()=>[s]})}}});function EMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var IMe=fe({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=ve("cascader"),r=rn(fa,void 0),o=()=>{var a,s,l,c,f;return e.loading?R(Gc,null,null):e.options.length===0?R("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:R(Sh,null,null)]):R("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>R(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 R(Kc,{class:[`${n}-panel`,`${n}-search-panel`]},EMe(a=o())?a:{default:()=>[a]})}}});const Mfe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=ae(),s=N(()=>{if(a.value)return t.get(a.value)}),l=ae([]),c=N(()=>{const b=[e.value];for(const w of l.value){const C=t.get(w);C?.children&&b.push(C.children)}return b}),f=b=>{var w;const C=m(b);l.value=(w=C?.path.map(x=>x.key))!=null?w:[]},h=b=>{a.value=b},p=N(()=>{var b;return r?.value?n.value.filter(w=>!w.disabled):s.value&&s.value.parent?(b=s.value.parent.children)==null?void 0:b.filter(w=>!w.disabled):e.value.filter(w=>!w.disabled)}),m=b=>{let w=b?t.get(b):void 0;if(o.value)for(;w&&w.children&&w.children.length>0;)w=w.children[0];return w};return{activeKey:a,activeOption:s,selectedPath:l,displayColumns:c,setActiveKey:h,setSelectedPath:f,getNextActiveNode:b=>{var w,C,x,_,E,S,I;const $=(C=(w=p.value)==null?void 0:w.length)!=null?C:0;if(a.value){const L=(_=(x=p.value)==null?void 0:x.findIndex(O=>O.key===a.value))!=null?_:0;return b==="next"?(E=p.value)==null?void 0:E[($+L+1)%$]:(S=p.value)==null?void 0:S[($+L-1)%$]}return(I=p.value)==null?void 0:I[0]}}},AMe=fe({name:"Cascader",components:{Trigger:Ls,SelectView:N3,BaseCascaderPanel:$fe,CascaderSearchPanel:IMe},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:y}=Ot(e),b=ae(e.defaultValue),w=ae(e.defaultInputValue),C=ae(e.defaultPopupVisible),{mergedDisabled:x,eventHandlers:_}=qi({disabled:c});bt(l,it=>{(Zt(it)||qa(it))&&(b.value=e.multiple?[]:void 0)});const E=ae([]),S=ae(1),I=Lt(new Map),$=Lt(new Map),L=Lt(new Map),O=Lt(new Set),F=Lt({}),M=(it,Ze)=>{F[Ze]=it},j={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},V=N(()=>({...j,...e.fieldNames}));bt([r,F,V],([it,Ze,pt])=>{I.clear(),$.clear(),L.clear(),O.clear(),E.value=Ife(it??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:F,optionMap:I,leafOptionSet:O,leafOptionMap:$,leafOptionValueMap:L,totalLevel:S,checkStrictly:o,valueKey:f,fieldNames:pt})},{immediate:!0,deep:!0});const W=N(()=>{var it;const Ze=Lfe((it=e.modelValue)!=null?it:b.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(Ze.map(pt=>[Afe(pt,{valueKey:e.valueKey,leafOptionValueMap:L}),pt]))}),U=N(()=>{var it;return(it=e.inputValue)!=null?it:w.value}),X=N(()=>{var it;return(it=e.popupVisible)!=null?it:C.value}),G=it=>{var Ze;return it?.toLocaleLowerCase().includes((Ze=U.value)==null?void 0:Ze.toLocaleLowerCase())},Y=N(()=>(e.checkStrictly?Array.from(I.values()):Array.from(O)).filter(Ze=>{var pt;return Yt(e.filterOption)?e.filterOption(U.value,Ze.raw):e.checkStrictly?G(Ze.label):(pt=Ze.path)==null?void 0:pt.find(et=>G(et.label))})),ee=it=>{var Ze,pt,et;const Pt=e.multiple?it:(Ze=it[0])!=null?Ze:"";it.length===0&&(Te(),de()),b.value=Pt,t("update:modelValue",Pt),t("change",Pt),(et=(pt=_.value)==null?void 0:pt.onChange)==null||et.call(pt)};bt([y,m],()=>{const it=[];W.value.forEach((Ze,pt)=>{const et=$.get(pt);et&&it.push(m.value?et.pathValue:et.value)}),ee(it)});const te=it=>{X.value!==it&&(C.value=it,t("popupVisibleChange",it))},J=it=>{if(e.multiple){const Ze=$.get(it);if(Ze)ce(Ze,!1);else{const pt=[];W.value.forEach((et,Pt)=>{Pt!==it&&pt.push(et)}),ee(pt)}}},Z=it=>{ee([e.pathMode?it.pathValue:it.value]),te(!1)},ce=(it,Ze)=>{if(Ze){const pt=e.checkStrictly?[it]:hU(it);ee([...W.value.values(),...pt.filter(et=>!W.value.has(et.key)).map(et=>e.pathMode?et.pathValue:et.value)])}else{const pt=e.checkStrictly?[it.key]:fU(it),et=[];W.value.forEach((Pt,$t)=>{pt.includes($t)||et.push(Pt)}),ee(et)}Ce("","optionChecked")},ye=(it,Ze)=>{e.multiple?ce(it,Ze??!0):Z(it)},ie=Nk(it=>{t("search",it)},e.searchDelay),Ce=(it,Ze)=>{it!==U.value&&(Ze==="manual"&&!X.value&&(C.value=!0,t("popupVisibleChange",!0)),w.value=it,t("inputValueChange",it),e.allowSearch&&ie(it))};bt(X,it=>{if(it){if(W.value.size>0){const Ze=Array.from(W.value.keys()),pt=Ze[Ze.length-1],et=$.get(pt);et&&et.key!==Ge.value&&(Te(et.key),de(et.key))}}else W.value.size===0&&(Te(),de()),Ce("","optionListHide")});const Re=it=>{if(it.stopPropagation(),e.multiple){const Ze=[];W.value.forEach((pt,et)=>{const Pt=$.get(et);Pt?.disabled&&Ze.push(e.pathMode?Pt.pathValue:Pt.value)}),ee(Ze)}else ee([]);Ce("","manual"),t("clear")},be=N(()=>e.allowSearch&&U.value.length>0),Fe=it=>{t("focus",it)},De=it=>{t("blur",it)},{activeKey:Ge,activeOption:qe,selectedPath:Ve,displayColumns:he,setActiveKey:de,setSelectedPath:Te,getNextActiveNode:Oe}=Mfe(E,{optionMap:I,filteredLeafOptions:Y,showSearchPanel:be,expandChild:p});gr(pU,Lt({onClickOption:ye,setActiveKey:de,setSelectedPath:Te,loadMore:a,expandTrigger:h,addLazyLoadOptions:M,formatLabel:s,slots:n,valueMap:W}));const je=PA(new Map([[so.ENTER,it=>{if(X.value){if(qe.value){let Ze;e.checkStrictly||qe.value.isLeaf?Ze=!W.value.has(qe.value.key):Ze=!dU(qe.value,W.value).checked,Te(qe.value.key),ye(qe.value,Ze)}}else te(!0)}],[so.ESC,it=>{te(!1)}],[so.ARROW_DOWN,it=>{it.preventDefault();const Ze=Oe("next");de(Ze?.key)}],[so.ARROW_UP,it=>{it.preventDefault();const Ze=Oe("preview");de(Ze?.key)}],[so.ARROW_RIGHT,it=>{var Ze,pt;be.value||(it.preventDefault(),(Ze=qe.value)!=null&&Ze.children&&(Te(qe.value.key),de((pt=qe.value.children[0])==null?void 0:pt.key)))}],[so.ARROW_LEFT,it=>{var Ze;be.value||(it.preventDefault(),(Ze=qe.value)!=null&&Ze.parent&&(Te(qe.value.parent.key),de(qe.value.parent.key)))}]])),We=N(()=>{const it=[];return W.value.forEach((Ze,pt)=>{var et,Pt;const $t=$.get(pt);if($t)it.push({value:pt,label:(Pt=(et=e.formatLabel)==null?void 0:et.call(e,$t.path.map(vt=>vt.raw)))!=null?Pt:Pfe($t),closable:!$t.disabled,tagProps:$t.tagProps});else if(e.fallback){const vt=Yt(e.fallback)?e.fallback(Ze):En(Ze)?Ze.join(" / "):String(Ze);it.push({value:pt,label:vt,closable:!0})}}),it});return{optionInfos:E,filteredLeafOptions:Y,selectedPath:Ve,activeKey:Ge,displayColumns:he,computedInputValue:U,computedPopupVisible:X,handleClear:Re,selectViewValue:We,handleInputValueChange:Ce,showSearchPanel:be,handlePopupVisibleChange:te,handleFocus:Fe,handleBlur:De,handleRemove:J,mergedDisabled:x,handleKeyDown:je,totalLevel:S}}});function LMe(e,t,n,r,o,a){const s=ke("select-view"),l=ke("cascader-search-panel"),c=ke("base-cascader-panel"),f=ke("trigger");return z(),Ne(f,xt(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:se(()=>[e.showSearchPanel?(z(),Ne(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},Wi({_:2},[e.$slots.empty?{name:"empty",fn:se(()=>[Qe(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(z(),Ne(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:""},Wi({_:2},[e.$slots.empty?{name:"empty",fn:se(()=>[Qe(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:se(()=>[R(s,xt({"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}),Wi({_:2},[e.$slots.label?{name:"label",fn:se(h=>[Qe(e.$slots,"label",ai(Fs(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:se(()=>[Qe(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:se(()=>[Qe(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:se(()=>[Qe(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:se(()=>[Qe(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 iM=xe(AMe,[["render",LMe]]);const PMe=fe({name:"CascaderPanel",components:{BaseCascaderPanel:$fe},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}=Ot(e),h=ae(e.defaultValue);bt(s,te=>{(Zt(te)||qa(te))&&(h.value=e.multiple?[]:void 0)});const p=ae([]),m=ae(1),y=Lt(new Map),b=Lt(new Map),w=Lt(new Map),C=Lt(new Set),x=Lt({}),_=(te,J)=>{x[J]=te},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},S=N(()=>({...E,...e.fieldNames}));bt([r,x,S],([te,J,Z])=>{y.clear(),b.clear(),w.clear(),C.clear(),p.value=Ife(te??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:J,optionMap:y,leafOptionSet:C,leafOptionMap:b,leafOptionValueMap:w,totalLevel:m,checkStrictly:o,fieldNames:Z,valueKey:l})},{immediate:!0});const I=N(()=>{var te;const J=Lfe((te=e.modelValue)!=null?te:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(J.map(Z=>[Afe(Z,{valueKey:e.valueKey,leafOptionValueMap:w}),Z]))}),$=N(()=>e.checkStrictly?Array.from(y.values()):Array.from(C)),L=te=>{var J;const Z=e.multiple?te:(J=te[0])!=null?J:"";te.length===0&&(G(),X()),h.value=Z,t("update:modelValue",Z),t("change",Z)},O=te=>{L([e.pathMode?te.pathValue:te.value])},F=(te,J)=>{if(J){const Z=e.checkStrictly?[te]:hU(te);L([...I.value.values(),...Z.filter(ce=>!I.value.has(ce.key)).map(ce=>e.pathMode?ce.pathValue:ce.value)])}else{const Z=e.checkStrictly?[te.key]:fU(te),ce=[];I.value.forEach((ye,ie)=>{Z.includes(ie)||ce.push(ye)}),L(ce)}},M=(te,J)=>{e.multiple?F(te,J??!0):O(te)},{activeKey:j,activeOption:V,selectedPath:W,displayColumns:U,setActiveKey:X,setSelectedPath:G,getNextActiveNode:Y}=Mfe(p,{optionMap:y,filteredLeafOptions:$,expandChild:c});gr(pU,Lt({onClickOption:M,setActiveKey:X,setSelectedPath:G,loadMore:a,addLazyLoadOptions:_,slots:n,valueMap:I,expandTrigger:f}));const ee=PA(new Map([[so.ENTER,te=>{if(V.value){let J;e.checkStrictly||V.value.isLeaf?J=!I.value.has(V.value.key):J=!dU(V.value,I.value).checked,G(V.value.key),M(V.value,J)}}],[so.ARROW_DOWN,te=>{te.preventDefault();const J=Y("next");X(J?.key)}],[so.ARROW_UP,te=>{te.preventDefault();const J=Y("preview");X(J?.key)}],[so.ARROW_RIGHT,te=>{var J,Z;te.preventDefault(),(J=V.value)!=null&&J.children&&(G(V.value.key),X((Z=V.value.children[0])==null?void 0:Z.key))}],[so.ARROW_LEFT,te=>{var J;te.preventDefault(),(J=V.value)!=null&&J.parent&&(G(V.value.parent.key),X(V.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:$,selectedPath:W,activeKey:j,displayColumns:U,handleKeyDown:ee,totalLevel:m}}});function $Me(e,t,n,r,o,a){const s=ke("base-cascader-panel");return z(),Ne(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},Wi({_:2},[e.$slots.empty?{name:"empty",fn:se(()=>[Qe(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var QE=xe(PMe,[["render",$Me]]);const MMe=Object.assign(iM,{CascaderPanel:QE,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+iM.name,iM),e.component(n+QE.name,QE)}}),Rfe=Symbol("collapseCtx"),RMe=fe({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}=Ot(e),s=ve("collapse"),l=ae(e.defaultActiveKey),c=N(()=>{var p;const m=(p=e.activeKey)!=null?p:l.value;return En(m)?m:[m]});gr(Rfe,Lt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:o,handleClick:(p,m)=>{let y=[];if(e.accordion)c.value.includes(p)||(y=[p]),l.value=y;else{y=[...c.value];const b=y.indexOf(p);b>-1?y.splice(b,1):e.accordion?y=[p]:y.push(p),l.value=y}t("update:activeKey",y),t("change",y,m)}}));const h=N(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function DMe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.cls)},[Qe(e.$slots,"default")],2)}var oM=xe(RMe,[["render",DMe]]);const OMe=fe({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=ve("icon"),r=N(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NMe=["stroke-width","stroke-linecap","stroke-linejoin"];function BMe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,NMe)}var sM=xe(OMe,[["render",BMe]]);const vU=Object.assign(sM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sM.name,sM)}}),FMe=fe({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=ve("icon"),r=N(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jMe=["stroke-width","stroke-linecap","stroke-linejoin"];function VMe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jMe)}var aM=xe(FMe,[["render",VMe]]);const mU=Object.assign(aM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aM.name,aM)}});var e4=fe({name:"CollapseItem",components:{IconHover:Ki,IconCaretRight:vU,IconCaretLeft:mU},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=Di(),o=ve("collapse-item"),a=rn(Rfe,{}),s=r&&Me(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=N(()=>{var S;return(S=a.activeKeys)==null?void 0:S.includes(s)}),c=N(()=>a.destroyOnHide||e.destroyOnHide),f=N(()=>{var S;return(S=a?.showExpandIcon)!=null?S:e.showExpandIcon}),h=ae(c.value?l.value:!0),p=N(()=>{var S;return(S=a?.expandIconPosition)!=null?S:"left"}),m=S=>{var I;e.disabled||(I=a.handleClick)==null||I.call(a,s,S)};bt(l,S=>{S&&!h.value&&(h.value=!0)});const y={onEnter:S=>{S.style.height=`${S.scrollHeight}px`},onAfterEnter:S=>{S.style.height="auto"},onBeforeLeave:S=>{S.style.height=`${S.scrollHeight}px`},onLeave:S=>{S.style.height="0"},onAfterLeave:()=>{c.value&&(h.value=!1)}},b=N(()=>[o,{[`${o}-active`]:l.value}]),w=N(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),C=N(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),x=N(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),_=()=>p.value==="right"?R(ke("icon-caret-left"),{class:`${o}-expand-icon`},null):R(ke("icon-caret-right"),{class:`${o}-expand-icon`},null),E=()=>f.value&&R(ke("icon-hover"),{prefix:o,class:C.value,disabled:e.disabled},{default:()=>{var S,I,$,L;return[(L=($=(I=t["expand-icon"])!=null?I:(S=a?.slots)==null?void 0:S["expand-icon"])==null?void 0:$({active:l.value,disabled:e.disabled,position:p.value}))!=null?L:_()]}});return()=>{var S,I,$;return R("div",{class:b.value},[R("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:w.value,onClick:m},[E(),R("div",{class:`${o}-header-title`},[(I=(S=t.header)==null?void 0:S.call(t))!=null?I:e.header]),t.extra&&R("div",{class:`${o}-header-extra`},[($=t.extra)==null?void 0:$.call(t)])]),R(Xo,xt({name:"collapse-slider"},y),{default:()=>{var L;return[Dr(R("div",{role:"region",class:x.value},[h.value&&R("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(L=t.default)==null?void 0:L.call(t)])]),[[Eo,l.value]])]}})])}}});const zMe=Object.assign(oM,{Item:e4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+oM.name,oM),e.component(n+e4.name,e4)}}),UMe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Dfe=(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)}},DA=(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),Qte=e=>xs(e)/255,qMe=e=>{let t=wp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=wp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=wp.hex8.exec(e),t?{r:xs(t[1]),g:xs(t[2]),b:xs(t[3]),a:Qte(t[4])}:(t=wp.hex6.exec(e),t?{r:xs(t[1]),g:xs(t[2]),b:xs(t[3])}:(t=wp.hex4.exec(e),t?{r:xs(t[1]+t[1]),g:xs(t[2]+t[2]),b:xs(t[3]+t[3]),a:Qte(t[4]+t[4])}:(t=wp.hex3.exec(e),t?{r:xs(t[1]+t[1]),g:xs(t[2]+t[2]),b:xs(t[3]+t[3])}:!1)))))},YMe=e=>{var t;const n=qMe(e);return n?{...DA(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Ofe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=wp.hex6.exec(e);return t?{r:xs(t[1]),g:xs(t[2]),b:xs(t[3])}:(t=wp.hex3.exec(e),t?{r:xs(t[1]+t[1]),g:xs(t[2]+t[2]),b:xs(t[3]+t[3])}:!1)},ene=(e,t,n)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0")].join("").toUpperCase(),XMe=(e,t,n,r)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(r*255).toString(16).padStart(2,"0")].join("").toUpperCase(),Nfe=({value:e,onChange:t})=>{const n=ae(!1),r=ae(),o=ae(),a=(h,p)=>h<0?0:h>p?1:h/p,s=h=>{if(!r.value)return;const{clientX:p,clientY:m}=h,y=r.value.getBoundingClientRect(),b=[a(p-y.x,y.width),a(m-y.y,y.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 tne=fe({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=ve("color-picker"),n=N(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Nfe({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>R("div",{ref:o,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?R("div",{class:`${t}-control-bar-bg`},[R("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()])]):R("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),ZMe=fe({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=ve("color-picker"),n=N(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Nfe({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=N(()=>{const l=Dfe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>R("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[R("div",{ref:o,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function gU(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function jd(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function Fk(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=jd(e);return t>0?gU(Number(e)*Math.pow(10,t)):Number(e)}function XF(e){Ffe&&(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=ve("icon"),r=N(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rRe=["stroke-width","stroke-linecap","stroke-linejoin"];function iRe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,rRe)}var lM=xe(nRe,[["render",iRe]]);const Vd=Object.assign(lM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lM.name,lM)}}),oRe=fe({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=ve("icon"),r=N(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sRe=["stroke-width","stroke-linecap","stroke-linejoin"];function aRe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M5 24h38"},null,-1)]),14,sRe)}var uM=xe(oRe,[["render",aRe]]);const og=Object.assign(uM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uM.name,uM)}}),lRe=800,uRe=150;pl.enableBoundaryChecking(!1);var cM=fe({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}=Ot(e),s=ve("input-number"),l=ae(),{mergedSize:c,mergedDisabled:f,eventHandlers:h}=qi({size:o,disabled:a}),{mergedSize:p}=Us(c),m=N(()=>{if(Me(e.precision)){const Z=`${e.step}`.split(".")[1],ce=Z&&Z.length||0;return Math.max(ce,e.precision)}}),y=Z=>{var ce,ye;if(!Me(Z))return"";const ie=m.value?Z.toFixed(m.value):String(Z);return(ye=(ce=e.formatter)==null?void 0:ce.call(e,ie))!=null?ye:ie},b=ae(y((r=e.modelValue)!=null?r:e.defaultValue)),w=N(()=>{var Z,ce;if(!b.value)return;const ye=Number((ce=(Z=e.parser)==null?void 0:Z.call(e,b.value))!=null?ce:b.value);return Number.isNaN(ye)?void 0:ye}),C=ae(Me(w.value)&&w.value<=e.min),x=ae(Me(w.value)&&w.value>=e.max);let _=0;const E=()=>{_&&(window.clearTimeout(_),_=0)},S=Z=>{if(!Zt(Z))return Me(e.min)&&Ze.max&&(Z=e.max),Me(m.value)?pl.round(Z,m.value):Z},I=Z=>{let ce=!1,ye=!1;Me(Z)&&(Z<=e.min&&(ce=!0),Z>=e.max&&(ye=!0)),x.value!==ye&&(x.value=ye),C.value!==ce&&(C.value=ce)},$=()=>{const Z=S(w.value),ce=y(Z);(Z!==w.value||b.value!==ce)&&(b.value=ce),t("update:modelValue",Z)};bt(()=>[e.max,e.min],()=>{$(),I(w.value)});const L=(Z,ce)=>{if(f.value||Z==="plus"&&x.value||Z==="minus"&&C.value)return;let ye;Me(w.value)?ye=S(pl[Z](w.value,e.step)):ye=e.min===-1/0?0:e.min,b.value=y(ye),I(ye),t("update:modelValue",ye),t("change",ye,ce)},O=(Z,ce,ye=!1)=>{var ie;Z.preventDefault(),!e.readOnly&&((ie=l.value)==null||ie.focus(),L(ce,Z),ye&&(_=window.setTimeout(()=>Z.target.dispatchEvent(Z),_?uRe:lRe)))},F=(Z,ce)=>{var ye,ie,Ce,Re;Z=Z.trim().replace(/。/g,"."),Z=(ie=(ye=e.parser)==null?void 0:ye.call(e,Z))!=null?ie:Z,(Me(Number(Z))||/^(\.|-)$/.test(Z))&&(b.value=(Re=(Ce=e.formatter)==null?void 0:Ce.call(e,Z))!=null?Re:Z,I(w.value),t("input",w.value,b.value,ce),e.modelEvent==="input"&&(t("update:modelValue",w.value),t("change",w.value,ce)))},M=Z=>{t("focus",Z)},j=(Z,ce)=>{ce instanceof MouseEvent&&!Z||($(),t("change",w.value,ce))},V=Z=>{t("blur",Z)},W=Z=>{var ce,ye;b.value="",t("update:modelValue",void 0),t("change",void 0,Z),(ye=(ce=h.value)==null?void 0:ce.onChange)==null||ye.call(ce,Z),t("clear",Z)},U=PA(new Map([[so.ARROW_UP,Z=>{Z.preventDefault(),!e.readOnly&&L("plus",Z)}],[so.ARROW_DOWN,Z=>{Z.preventDefault(),!e.readOnly&&L("minus",Z)}]])),X=Z=>{t("keydown",Z),Z.defaultPrevented||U(Z)};bt(()=>e.modelValue,Z=>{Z!==w.value&&(b.value=y(Z),I(Z))});const G=()=>{var Z,ce,ye;return e.readOnly?null:R(Tt,null,[n.suffix&&R("div",{class:`${s}-suffix`},[(Z=n.suffix)==null?void 0:Z.call(n)]),R("div",{class:`${s}-step`},[R("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:f.value||x.value}],type:"button",tabindex:"-1",disabled:f.value||x.value,onMousedown:ie=>O(ie,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(ce=n.plus)==null?void 0:ce.call(n):R(Aw,null,null)]),R("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:f.value||C.value}],type:"button",tabindex:"-1",disabled:f.value||C.value,onMousedown:ie=>O(ie,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(ye=n.minus)==null?void 0:ye.call(n):R(dv,null,null)])])])},Y=N(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),ee=()=>R(po,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||C.value,onMousedown:Z=>O(Z,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>R(og,null,null)}),te=()=>R(po,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||x.value,onMousedown:Z=>O(Z,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>R(Vd,null,null)});return{inputRef:l,render:()=>{const Z=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:G,append:n.append}:{prepend:e.hideButton?n.prepend:ee,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:te};return R(uv,{key:`__arco__${e.mode}`,ref:l,class:Y.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:F,onFocus:M,onBlur:V,onClear:W,onChange:j,onKeydown:X},Z)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Pw=Object.assign(cM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+cM.name,cM)}});var jfe=fe({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=ve("color-picker");return()=>R(Pw,{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:()=>"%"})}}),cRe=fe({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=ve("color-picker"),{color:n}=Ot(e),r=o=>{var a;const s={...n.value.rgb,...o},l=DA(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>R($y,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>R(Pw,{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&&R(jfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),dRe=fe({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=ve("color-picker"),{color:n}=Ot(e),[r,o]=ua(n.value.hex),a=c=>{var f;const h=Ofe(c)||{r:255,g:0,b:0},p=DA(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 bt(n,()=>{n.value.hex!==r.value&&o(n.value.hex)}),()=>R($y,{class:`${t}-input-group`},{default:()=>[R(uv,{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&&R(jfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),fRe=fe({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=no(),n=ve("color-picker"),r=N(()=>e.color.hsv),[o,a]=ua(e.format||"hex"),s=m=>{a(m)};ae(!1);const l=m=>{var y;const b=Ofe(m)||{r:255,g:0,b:0},w=DA(b.r,b.g,b.b);(y=e.onHsvChange)==null||y.call(e,w)},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"?R(cRe,m,null):R(dRe,m,null)},f=m=>R("div",{key:m,class:`${n}-color-block`,style:{backgroundColor:m},onClick:()=>l(m)},[R("div",{class:`${n}-block`,style:{backgroundColor:m}},null)]),h=(m,y)=>R("div",{class:`${n}-colors-section`},[R("div",{class:`${n}-colors-text`},[m]),R("div",{class:`${n}-colors-wrapper`},[y?.length?R("div",{class:`${n}-colors-list`},[y.map(f)]):R("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?R("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>R("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[R(ZMe,{color:e.color,onChange:(m,y)=>{var b;return(b=e.onHsvChange)==null?void 0:b.call(e,{h:r.value.h,s:m,v:y})}},null),R("div",{class:`${n}-panel-control`},[R("div",{class:`${n}-control-wrapper`},[R("div",null,[R(tne,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:m=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:m,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&R(tne,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),R("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),R("div",{class:`${n}-input-wrapper`},[R(Bk,{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),R("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),dM=fe({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>UMe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=ve("color-picker"),o=N(()=>{var _;return(_=e.modelValue)!=null?_:e.defaultValue}),a=N(()=>YMe(o.value||"")),[s,l]=ua(a.value.a),[c,f]=ua({h:a.value.h,s:a.value.s,v:a.value.v});bt(()=>a.value,_=>{o.value!==m.value&&(l(_.a),f({h:_.h,s:_.s,v:_.v}))});const h=N(()=>{const _=Dfe(c.value.h,c.value.s,c.value.v),E=ene(_.r,_.g,_.b);return{hsv:c.value,rgb:_,hex:E}}),p=N(()=>{const{r:_,g:E,b:S}=h.value.rgb;return`rgba(${_}, ${E}, ${S}, ${s.value.toFixed(2)})`}),m=N(()=>{const{r:_,g:E,b:S}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${_}, ${E}, ${S}, ${s.value.toFixed(2)})`:`rgb(${_}, ${E}, ${S})`:s.value<1&&!e.disabledAlpha?`#${XMe(_,E,S,s.value)}`:`#${ene(_,E,S)}`});bt(m,_=>{t("update:modelValue",_),t("change",_)});const y=_=>{!e.disabled&&f(_)},b=_=>{!e.disabled&&l(_)},w=_=>{t("popup-visible-change",_,m.value)},C=()=>R("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[R("div",{class:`${r}-preview`,style:{backgroundColor:m.value}},null),e.showText&&R("div",{class:`${r}-value`},[m.value]),R("input",{class:`${r}-input`,value:m.value,disabled:e.disabled},null)]),x=()=>R(fRe,{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:y,onAlphaChange:b},null);return()=>e.hideTrigger?x():R(Ls,xt({trigger:"click",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,disabled:e.disabled,onPopupVisibleChange:w},e.triggerProps),{default:()=>[n.default?n.default():C()],content:x})}});const hRe=Object.assign(dM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+dM.name,dM)}});function Vfe(e,t,n){return N(()=>!!(e[n]||t[n]))}const pRe=fe({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=ve("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Vfe(e,t,c)),l=N(()=>{const{align:c}=e;return{...Io(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),vRe=["src"],mRe={key:0},gRe={key:0},yRe={key:0};function bRe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.prefixCls)},[e.hasAvatar?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-avatar`)},[e.avatar?(z(),q("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,vRe)):Qe(e.$slots,"avatar",{key:1})],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-inner`)},[A("div",{class:ne(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-author`)},[e.author?(z(),q("span",mRe,_e(e.author),1)):Qe(e.$slots,"author",{key:1})],2)):ge("v-if",!0),e.hasDatetime?(z(),q("span",{key:1,class:ne(`${e.prefixCls}-datetime`)},[e.datetime?(z(),q("span",gRe,_e(e.datetime),1)):Qe(e.$slots,"datetime",{key:1})],2)):ge("v-if",!0)],2)):ge("v-if",!0),e.hasContent?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-content`)},[e.content?(z(),q("span",yRe,_e(e.content),1)):Qe(e.$slots,"content",{key:1})],2)):ge("v-if",!0),e.$slots.actions?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[Qe(e.$slots,"actions")],2)):ge("v-if",!0)],2),e.$slots.default?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-inner-comment`)},[Qe(e.$slots,"default")],2)):ge("v-if",!0)],2)],2)}var fM=xe(pRe,[["render",bRe]]);const SRe=Object.assign(fM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+fM.name,fM)}}),kRe=fe({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}=Ot(e),c=Lt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const f=Di();f&&f.appContext.app.provide(fa,c)}else gr(fa,c)}});function wRe(e,t,n,r,o,a){return Qe(e.$slots,"default")}var hM=xe(kRe,[["render",wRe]]);const CRe=Object.assign(hM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+hM.name,hM)}});function xRe(e){const{modelValue:t,defaultValue:n,format:r}=Ot(e),o=N(()=>Iu(t.value,r.value)),a=N(()=>Iu(n.value,r.value)),[s,l]=ua(Zt(o.value)?Zt(a.value)?void 0:a.value:o.value);return bt(o,()=>{Zt(o.value)&&l(void 0)}),{value:N(()=>o.value||s.value),setValue:l}}const _Re=fe({name:"DateInput",components:{IconHover:Ki,IconClose:ps,FeedbackIcon:Iw},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}=Ot(e),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:y}=qi({size:s,disabled:a,error:r}),{mergedSize:b}=Us(h),w=ve("picker"),C=N(()=>[w,`${w}-size-${b.value}`,{[`${w}-focused`]:o.value,[`${w}-disabled`]:p.value,[`${w}-error`]:m.value,[`${w}-has-prefix`]:n.prefix}]),x=N(()=>{if(f?.value)return f?.value;if(l?.value&&nc(l.value))return Yt(c.value)?c.value(l.value):l.value.format(c.value)}),_=ae();return{feedback:y,prefixCls:w,classNames:C,displayValue:x,mergedDisabled:p,refInput:_,onPressEnter(){t("press-enter")},onChange(E){t("change",E)},onClear(E){t("clear",E)},onBlur(E){t("blur",E)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),TRe=["disabled","placeholder","value"];function ERe(e,t,n,r,o,a){const s=ke("IconClose"),l=ke("IconHover"),c=ke("FeedbackIcon");return z(),q("div",{class:ne(e.classNames)},[e.$slots.prefix?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-prefix`)},[Qe(e.$slots,"prefix")],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-input`)},[A("input",xt({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]=Yf((...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,TRe)],2),A("div",{class:ne(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(z(),Ne(l,{key:0,prefix:e.prefixCls,class:ne(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:se(()=>[R(s)]),_:1},8,["prefix","class","onClick"])):ge("v-if",!0),A("span",{class:ne(`${e.prefixCls}-suffix-icon`)},[Qe(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ne(c,{key:1,type:e.feedback},null,8,["type"])):ge("v-if",!0)],2)],2)}var zfe=xe(_Re,[["render",ERe]]);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 nne=new Map;function IRe(e,t,n){const r=nne.get(e);Zt(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),nne.set(e,requestAnimationFrame(()=>{new Cg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function Id(e,t){const n=r=>{if(En(r))return r.map(o=>n(o));if(!Zt(r))return r.format(t)};return n(e)}function d2(e){return Zt(e)?!0:En(e)?e.length===0||e.length===2&&nc(e[0])&&nc(e[1]):!1}function B3(e,t){return e?typeof e=="string"&&Ko(e,t).format(t)===e:!1}function ARe(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)=>!Zt(p)&&m.includes(p);return h(o,l)||h(a,c)||h(s,f)}var kh=fe({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Ufe=Symbol("PickerInjectionKey");function $w(){const{datePickerT:e}=rn(Ufe)||{};return e||((t,...n)=>t)}const LRe=fe({name:"PanelShortcuts",components:{Button:po,RenderFunction:kh},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:$w(),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:Yt}}});function PRe(e,t,n,r,o,a){const s=ke("Button"),l=ke("RenderFunction");return z(),q("div",{class:ne(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(z(),Ne(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:se(()=>[$e(_e(e.datePickerT("datePicker.now")),1)]),_:1})):ge("v-if",!0),(z(!0),q(Tt,null,Kt(e.shortcuts,(c,f)=>(z(),Ne(s,{key:f,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:se(()=>[e.isFunction(c.label)?(z(),Ne(l,{key:0,"render-func":c.label},null,8,["render-func"])):(z(),q(Tt,{key:1},[$e(_e(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var Hfe=xe(LRe,[["render",PRe]]);function u1(e){return[...Array(e)]}function JF(e){if(!Zt(e))return En(e)?e:[e,void 0]}function pp(e){return!!e&&nc(e[0])&&nc(e[1])}function $Re(e){return Zt(e)||e.length===0||pp(e)}function Wfe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const MRe=fe({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=ve("icon"),r=N(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RRe=["stroke-width","stroke-linecap","stroke-linejoin"];function DRe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,RRe)}var pM=xe(MRe,[["render",DRe]]);const Gfe=Object.assign(pM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pM.name,pM)}}),ORe=fe({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=ve("icon"),r=N(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NRe=["stroke-width","stroke-linecap","stroke-linejoin"];function BRe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,NRe)}var vM=xe(ORe,[["render",BRe]]);const Kfe=Object.assign(vM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vM.name,vM)}}),FRe=fe({name:"PanelHeader",components:{IconLeft:yl,IconRight:ri,IconDoubleLeft:Gfe,IconDoubleRight:Kfe,RenderFunction:kh},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:N(()=>Yt(e.onPrev)),showSuperPrev:N(()=>Yt(e.onSuperPrev)),showNext:N(()=>Yt(e.onNext)),showSuperNext:N(()=>Yt(e.onSuperNext)),year:N(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:N(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),jRe={key:1};function VRe(e,t,n,r,o,a){const s=ke("RenderFunction"),l=ke("IconDoubleLeft"),c=ke("IconLeft"),f=ke("IconRight"),h=ke("IconDoubleRight");return z(),q("div",{class:ne(`${e.prefixCls}-header`)},[A("div",{class:ne(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(z(),q(Tt,{key:0},[e.icons&&e.icons.prevDouble?(z(),Ne(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(z(),Ne(l,{key:1}))],64)):ge("v-if",!0)],2),A("div",{class:ne(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(z(),q(Tt,{key:0},[e.icons&&e.icons.prev?(z(),Ne(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(z(),Ne(c,{key:1}))],64)):ge("v-if",!0)],2),A("div",{class:ne(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(z(),q(Tt,{key:0},[e.year?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},_e(e.year),3)):ge("v-if",!0),e.year&&e.month?(z(),q("span",jRe,"-")):ge("v-if",!0),e.month?(z(),q("span",{key:2,class:ne(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},_e(e.month),3)):ge("v-if",!0)],64)):(z(),q(Tt,{key:1},[$e(_e(e.title),1)],64))],2),A("div",{class:ne(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(z(),q(Tt,{key:0},[e.icons&&e.icons.next?(z(),Ne(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(z(),Ne(f,{key:1}))],64)):ge("v-if",!0)],2),A("div",{class:ne(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(z(),q(Tt,{key:0},[e.icons&&e.icons.nextDouble?(z(),Ne(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(z(),Ne(h,{key:1}))],64)):ge("v-if",!0)],2)],2)}var NA=xe(FRe,[["render",VRe]]);function zRe(e){const{rangeValues:t}=Ot(e),n=N(()=>t?.value&&t.value.every(nc)?Ok(t.value):t?.value),r=N(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=N(()=>{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 y=c(a.value,ca());f==="week"&&(y=ca().isSame(a.value,"date"));const b=p&&r.value&&c(a.value,r.value),w=p&&o.value&&c(a.value,o.value),C=p&&r.value&&o.value&&(b||w||a.value.isBetween(r.value,o.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:y,[`${h}-cell-selected`]:m,[`${h}-cell-range-start`]:b,[`${h}-cell-range-end`]:w,[`${h}-cell-in-range`]:C,[`${h}-cell-disabled`]:s},a.classNames]}}}const URe=fe({name:"PanelBody",components:{RenderFunction:kh},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}=Ot(e),{getCellClassName:c}=zRe(Lt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),f=h=>!!(Yt(o?.value)&&o?.value(zl(h.value)));return{isWeek:N(()=>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:zl}}}),HRe=["onMouseenter","onMouseleave","onClick"];function WRe(e,t,n,r,o,a){const s=ke("RenderFunction");return z(),q("div",{class:ne(`${e.prefixCls}-body`)},[(z(!0),q(Tt,null,Kt(e.rows,(l,c)=>(z(),q("div",{key:c,class:ne([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(z(!0),q(Tt,null,Kt(l,(f,h)=>(z(),q(Tt,null,[ge(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(z(),q("div",{key:h,class:ne([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[A("div",{class:ne(`${e.prefixCls}-date`)},[A("div",{class:ne(`${e.prefixCls}-date-value`)},_e(f.label),3)],2)],2)):(z(),q("div",{key:h,class:ne(e.getCellClassName(f)),onMouseenter:()=>{e.onCellMouseEnter(f)},onMouseleave:()=>{e.onCellMouseLeave(f)},onClick:()=>{e.onCellClick(f)}},[e.dateRender?(z(),Ne(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(f.value)},null,8,["render-func","date"])):(z(),q("div",{key:1,class:ne(`${e.prefixCls}-date`)},[A("div",{class:ne(`${e.prefixCls}-date-value`)},_e(f.label),3)],2))],42,HRe))],64))),256))],2))),128))],2)}var BA=xe(URe,[["render",WRe]]);const GRe=fe({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=$w();return{labelList:N(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function KRe(e,t,n,r,o,a){return z(),q("div",{class:ne(`${e.prefixCls}-week-list`)},[(z(!0),q(Tt,null,Kt(e.weekList,s=>(z(),q("div",{key:s,class:ne(`${e.prefixCls}-week-list-item`)},_e(e.labelList[s]||""),3))),128))],2)}var qRe=xe(GRe,[["render",KRe]]);const YRe=fe({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}=Ot(e),o=ae(new Map),a=ae();function s(l=!1){if(!a.value||Zt(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&IRe(a.value,c.offsetTop,l?100:0)}return bt([r,n],(l,[,c])=>{n.value!==c?nn(()=>{s()}):s(!0)}),qt(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),XRe=["onClick"];function ZRe(e,t,n,r,o,a){return z(),q("div",{ref:"refWrapper",class:ne(`${e.prefixCls}-column`)},[A("ul",null,[(z(!0),q(Tt,null,Kt(e.list,s=>(z(),q("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:ne([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[A("div",{class:ne(`${e.prefixCls}-cell-inner`)},_e(s.label),3)],10,XRe))),128))])],2)}var JRe=xe(YRe,[["render",ZRe]]);function QRe(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}=Ot(e),y=N(()=>{var _;const{hour:E=1}=n?.value||{},S=((_=a?.value)==null?void 0:_.call(a))||[];let I=[];for(let $=0;$<(r.value?12:24);$+=E)I.push($);return r.value&&(I[0]=12),o.value&&S.length&&(I=I.filter($=>S.indexOf($)<0)),I.map($=>({label:Fm($,2,"0"),value:$,selected:c.value===$,disabled:m?.value||S.includes($)}))}),b=N(()=>{var _;const{minute:E=1}=n?.value||{},S=((_=s?.value)==null?void 0:_.call(s,c.value))||[];let I=[];for(let $=0;$<60;$+=E)I.push($);return o.value&&S.length&&(I=I.filter($=>S.indexOf($)<0)),I.map($=>({label:Fm($,2,"0"),value:$,selected:f.value===$,disabled:m?.value||S.includes($)}))}),w=N(()=>{var _;const{second:E=1}=n?.value||{},S=((_=l?.value)==null?void 0:_.call(l,c.value,f.value))||[];let I=[];for(let $=0;$<60;$+=E)I.push($);return o.value&&S.length&&(I=I.filter($=>S.indexOf($)<0)),I.map($=>({label:Fm($,2,"0"),value:$,selected:h.value===$,disabled:m?.value||S.includes($)}))}),C=["am","pm"],x=N(()=>{const _=ZF(t.value).list.includes("A");return C.map(E=>({label:_?E.toUpperCase():E,value:E,selected:p.value===E,disabled:m?.value}))});return{hours:y,minutes:b,seconds:w,ampmList:x}}function yU(e){const{format:t,use12Hours:n,defaultFormat:r}=Ot(e),o=N(()=>{let f=t?.value||r?.value;return(!f||!ZF(f).list.length)&&(f=n?.value?"hh:mm:ss a":"HH:mm:ss"),f}),a=N(()=>ZF(o.value)),s=N(()=>a.value.list),l=N(()=>a.value.use12Hours),c=N(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function qfe(e){const t=n=>ARe(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>En(n)?n.some(r=>t(r)):t(n)}const eDe=fe({name:"TimePickerPanel",components:{TimeColumn:JRe,Button:po},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=>nc(e),confirm:e=>nc(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}=Ot(e),m=ve("timepicker"),{t:y}=no(),{columns:b,use12Hours:w,format:C}=yU(Lt({format:o,use12Hours:s})),x=ae(n?.value),_=G=>{x.value=G};bt([r,n],()=>{r.value&&_(n?.value)});const E=N(()=>{var G;const Y=(G=x.value)==null?void 0:G.hour();return Zt(Y)||!w.value?Y:Y>12?Y-12:Y===0?12:Y}),S=N(()=>{var G;return(G=x.value)==null?void 0:G.minute()}),I=N(()=>{var G;return(G=x.value)==null?void 0:G.second()}),$=N(()=>{var G;const Y=(G=x.value)==null?void 0:G.hour();return!Zt(Y)&&Y>=12?"pm":"am"}),{hours:L,minutes:O,seconds:F,ampmList:M}=QRe(Lt({format:C,step:a,use12Hours:w,hideDisabledOptions:l,disabledHours:c,disabledMinutes:f,disabledSeconds:h,selectedHour:E,selectedMinute:S,selectedSecond:I,selectedAmpm:$,disabled:p})),j=qfe(Lt({disabledHours:c,disabledMinutes:f,disabledSeconds:h})),V=N(()=>j(x.value));function W(G){Zt(G)||t("confirm",G)}function U(G){_(G),t("select",G)}function X(G,Y="hour"){let ee;const te=E.value||"00",J=S.value||"00",Z=I.value||"00",ce=$.value||"am";switch(Y){case"hour":ee=`${G}:${J}:${Z}`;break;case"minute":ee=`${te}:${G}:${Z}`;break;case"second":ee=`${te}:${J}:${G}`;break;case"ampm":ee=`${te}:${J}:${Z} ${G}`;break;default:ee="00:00:00"}let ye="HH:mm:ss";w.value&&(ye="HH:mm:ss a",Y!=="ampm"&&(ee=`${ee} ${ce}`)),ee=Ko(ee,ye),U(ee)}return{prefixCls:m,t:y,hours:L,minutes:O,seconds:F,ampmList:M,selectedValue:x,selectedHour:E,selectedMinute:S,selectedSecond:I,selectedAmpm:$,computedUse12Hours:w,confirmBtnDisabled:V,columns:b,onSelect:X,onSelectNow(){const G=Ko(new Date);U(G)},onConfirm(){W(x.value)}}}});function tDe(e,t,n,r,o,a){const s=ke("TimeColumn"),l=ke("Button");return z(),q(Tt,null,[A("div",{class:ne(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(z(),Ne(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"])):ge("v-if",!0),e.columns.includes("m")?(z(),Ne(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"])):ge("v-if",!0),e.columns.includes("s")?(z(),Ne(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"])):ge("v-if",!0),e.computedUse12Hours?(z(),Ne(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"])):ge("v-if",!0)],2),e.$slots["extra-footer"]?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-footer-extra-wrapper`)},[Qe(e.$slots,"extra-footer")],2)):ge("v-if",!0),e.hideFooter?ge("v-if",!0):(z(),q("div",{key:1,class:ne(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?ge("v-if",!0):(z(),Ne(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:se(()=>[$e(_e(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),R(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:se(()=>[$e(_e(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var F3=xe(eDe,[["render",tDe]]);const nDe=fe({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=ve("icon"),r=N(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rDe=["stroke-width","stroke-linecap","stroke-linejoin"];function iDe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,rDe)}var mM=xe(nDe,[["render",iDe]]);const Mw=Object.assign(mM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mM.name,mM)}}),oDe=fe({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=ve("icon"),r=N(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sDe=["stroke-width","stroke-linecap","stroke-linejoin"];function aDe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,sDe)}var gM=xe(oDe,[["render",aDe]]);const FA=Object.assign(gM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gM.name,gM)}}),Yfe=6,QF=7,lDe=Yfe*QF;function uDe(e){return{label:e.date(),value:e}}const cDe=fe({name:"DatePanel",components:{PanelHeader:NA,PanelBody:BA,PanelWeekList:qRe,TimePanel:F3,IconCalendar:Mw,IconClockCircle:FA},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}=Ot(e),p=$w(),m=N(()=>l?.value==="week"),y=N(()=>ve(m.value?"panel-week":"panel-date")),b=ve("picker"),[w,C]=As("date",Lt({value:f})),x=N(()=>c.value&&n.value),_=N(()=>!c.value||!x.value||w.value==="date"),E=N(()=>c.value&&(!x.value||w.value==="time")),S=N(()=>[y.value,{[`${y.value}-with-view-tabs`]:x.value}]),I=N(()=>r.value.format("YYYY-MM")),$=N(()=>{var W;return c.value&&((W=h?.value)==null?void 0:W.call(h,zl(o?.value||ca())))||{}}),L=N(()=>{const W=[0,1,2,3,4,5,6],U=Math.max(a.value%7,0);return[...W.slice(U),...W.slice(0,U)]}),O=N(()=>{const W=ds.startOf(r.value,"month"),U=W.day(),X=W.daysInMonth(),G=L.value.indexOf(U),Y=u1(lDe);for(let te=0;teG+X-1};return u1(Yfe).map((te,J)=>{const Z=Y.slice(J*QF,(J+1)*QF);if(m.value){const ce=Z[0].value;Z.unshift({label:ce.week(),value:ce})}return Z})}),F=N(()=>s?.value||((W,U)=>W.isSame(U,"day")));function M(W){t("select",W.value)}function j(W){t("time-picker-select",W)}function V(W){t("cell-mouse-enter",W.value)}return{prefixCls:y,classNames:S,pickerPrefixCls:b,headerTitle:I,rows:O,weekList:N(()=>m.value?[-1,...L.value]:L.value),mergedIsSameTime:F,disabledTimeProps:$,onCellClick:M,onCellMouseEnter:V,onTimePanelSelect:j,showViewTabs:x,showDateView:_,showTimeView:E,changeViewTo:W=>{t("current-view-change",W),t("update:currentView",W),C(W)},datePickerT:p}}});function dDe(e,t,n,r,o,a){const s=ke("PanelHeader"),l=ke("PanelWeekList"),c=ke("PanelBody"),f=ke("TimePanel"),h=ke("IconCalendar"),p=ke("IconClockCircle");return z(),q("div",{class:ne(e.classNames)},[e.showDateView?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-inner`)},[R(s,xt({...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"]),R(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),R(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)):ge("v-if",!0),e.showTimeView?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-timepicker`)},[A("header",{class:ne(`${e.prefixCls}-timepicker-title`)},_e(e.datePickerT("datePicker.selectTime")),3),R(f,xt({...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)):ge("v-if",!0),e.showViewTabs?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-footer`)},[A("div",{class:ne(`${e.prefixCls}-view-tabs`)},[A("div",{class:ne([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[R(h),A("span",{class:ne(`${e.prefixCls}-view-tab-pane-text`)},_e(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),A("div",{class:ne([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[R(p),A("span",{class:ne(`${e.prefixCls}-view-tab-pane-text`)},_e(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):ge("v-if",!0)],2)}var bU=xe(cDe,[["render",dDe]]);const fDe=fe({name:"WeekPanel",components:{DatePanel:bU},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return no(),{isSameTime:(r,o)=>ds.isSameWeek(r,o,e.dayStartOfWeek),onSelect:r=>{const o=ds.startOfWeek(r,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:r=>{const o=ds.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function hDe(e,t,n,r,o,a){const s=ke("DatePanel");return z(),Ne(s,xt(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 Xfe=xe(fDe,[["render",hDe]]);const pDe=["January","February","March","April","May","June","July","August","September","October","November","December"],vDe=12,mDe=4,rne=3,gDe=fe({name:"MonthPanel",components:{PanelHeader:NA,PanelBody:BA},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=$w(),{headerValue:r}=Ot(e),o=N(()=>ve("panel-month")),a=ve("picker"),s=N(()=>r.value.format("YYYY")),l=N(()=>{const p=r.value.year(),m=e.abbreviation?"short":"long",y=u1(vDe).map((w,C)=>({label:n(`datePicker.month.${m}.${pDe[C]}`),value:Ko(`${p}-${C+1}`,"YYYY-M")}));return u1(mDe).map((w,C)=>y.slice(C*rne,(C+1)*rne))}),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 yDe(e,t,n,r,o,a){const s=ke("PanelHeader"),l=ke("PanelBody");return z(),q("div",{class:ne(e.prefixCls)},[A("div",{class:ne(`${e.prefixCls}-inner`)},[R(s,xt({...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"]),R(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 Zfe=xe(gDe,[["render",yDe]]);const ej=4,t4=3,bDe=ej*t4,yM=10,SDe=fe({name:"YearPanel",components:{PanelHeader:NA,PanelBody:BA},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}=Ot(e),r=N(()=>ve("panel-year")),o=ve("picker"),a=N(()=>{const h=Math.floor(n.value.year()/yM)*yM-1,p=u1(bDe).map((y,b)=>({label:h+b,value:Ko(`${h+b}`,"YYYY"),isPrev:b<1,isNext:b>yM}));return u1(ej).map((y,b)=>p.slice(b*t4,(b+1)*t4))}),s=N(()=>`${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 kDe(e,t,n,r,o,a){const s=ke("PanelHeader"),l=ke("PanelBody");return z(),q("div",{class:ne(e.prefixCls)},[A("div",{class:ne(`${e.prefixCls}-inner`)},[R(s,xt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),R(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 Jfe=xe(SDe,[["render",kDe]]);const wDe=fe({name:"QuarterPanel",components:{PanelHeader:NA,PanelBody:BA},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}=Ot(e),r=N(()=>ve("panel-quarter")),o=ve("picker"),a=N(()=>n.value.format("YYYY")),s=N(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Ko(`${h}-${Fm((p-1)*3+1,2,"0")}-01`)}))]}),l=(h,p)=>h.isSame(p,"month")||h.isSame(p,"year")&&Math.floor(h.month()/3)===Math.floor(p.month()/3);function c(h){t("select",h.value)}function f(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:f}}});function CDe(e,t,n,r,o,a){const s=ke("PanelHeader"),l=ke("PanelBody");return z(),q("div",{class:ne(e.prefixCls)},[A("div",{class:ne(`${e.prefixCls}-inner`)},[R(s,xt({...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"]),R(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 Qfe=xe(wDe,[["render",CDe]]);const xDe=fe({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=ve("icon"),r=N(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 TDe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,_De)}var bM=xe(xDe,[["render",TDe]]);const Dc=Object.assign(bM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bM.name,bM)}}),EDe=fe({name:"Link",components:{IconLink:Dc,IconLoading:ha},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=ve("link"),o=Vfe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:N(()=>[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}}}),IDe=["href"];function ADe(e,t,n,r,o,a){const s=ke("icon-loading"),l=ke("icon-link");return z(),q("a",{href:e.disabled?void 0:e.href,class:ne(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[e.loading?(z(),Ne(s,{key:0})):Qe(e.$slots,"icon",{key:1},()=>[R(l)])],2)):ge("v-if",!0),Qe(e.$slots,"default")],10,IDe)}var SM=xe(EDe,[["render",ADe]]);const ehe=Object.assign(SM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+SM.name,SM)}}),LDe=fe({name:"PanelFooter",components:{Link:ehe,Button:po},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:$w(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function PDe(e,t,n,r,o,a){const s=ke("Link"),l=ke("Button");return z(),q("div",{class:ne(`${e.prefixCls}-footer`)},[e.$slots.extra?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-footer-extra-wrapper`)},[Qe(e.$slots,"extra")],2)):ge("v-if",!0),e.showTodayBtn?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-footer-now-wrapper`)},[R(s,{onClick:e.onTodayClick},{default:se(()=>[$e(_e(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):ge("v-if",!0),e.$slots.btn||e.showConfirmBtn?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-footer-btn-wrapper`)},[Qe(e.$slots,"btn"),e.showConfirmBtn?(z(),Ne(l,{key:0,class:ne(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:se(()=>[$e(_e(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):ge("v-if",!0)],2)):ge("v-if",!0)],2)}var the=xe(LDe,[["render",PDe]]);function nhe(e){const{mode:t}=Ot(e),n=N(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=N(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function j3(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=Ot(e),l=N(()=>t?.value||"date"),{span:c,superSpan:f}=nhe(Lt({mode:l})),h=(I,$)=>{const L=l.value==="date"||l.value==="week"?"M":"y";return I.isSame($,L)},p=N(()=>Iu(n?.value,a.value)),m=N(()=>Iu(r?.value,a.value)),y=ae(m.value||ca()),b=N(()=>p.value||y.value),w=I=>{I&&(y.value=I)},C=(I,$=!0)=>{var L;I&&($&&!h(b.value,I)&&((L=s?.value)==null||L.call(s,I)),w(I))};o?.value&&w(o.value),bt(()=>o?.value,I=>{C(I)});function x(){return o?.value||m.value||ca()}function _(I=!0){const $=x();I?C($):w($)}const E=N(()=>c.value!==f.value),S=N(()=>({onSuperPrev:()=>{C(ds.subtract(b.value,f.value,"M"))},onPrev:E.value?()=>{C(ds.subtract(b.value,c.value,"M"))}:void 0,onNext:E.value?()=>{C(ds.add(b.value,c.value,"M"))}:void 0,onSuperNext:()=>{C(ds.add(b.value,f.value,"M"))}}));return{headerValue:b,setHeaderValue:C,headerOperations:S,resetHeaderValue:_,getDefaultLocalValue:x}}const $De=fe({name:"DatePikerPanel",components:{DatePanel:bU,PanelShortcuts:Hfe,PanelFooter:the,WeekPanel:Xfe,MonthPanel:Zfe,YearPanel:Jfe,QuarterPanel:Qfe,RenderFunction:kh},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:y,headerOperations:b,headerMode:w}=Ot(e),C=N(()=>!!(r.value&&r.value.length)),x=N(()=>f.value&&p.value&&!C.value),_=N(()=>x.value||C.value),E=N(()=>_.value&&o.value==="left"),S=N(()=>_.value&&o.value==="right"),I=N(()=>_.value&&o.value==="bottom"),$=N(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:E.value,[`${n.value}-container-shortcuts-placement-right`]:S.value}]),L=N(()=>s?.value||ca()),{headerValue:O,setHeaderValue:F,headerOperations:M}=j3(Lt({mode:w,format:a}));bt(m,ie=>{F(ie)});function j(ie){const{value:Ce}=ie;return Iu(Yt(Ce)?Ce():Ce,ie.format||a.value)}function V(ie){t("shortcut-click",j(ie),ie)}function W(ie){t("shortcut-mouse-enter",j(ie))}function U(ie){t("shortcut-mouse-leave",j(ie))}function X(ie){t("cell-click",ie)}function G(ie){t("time-picker-select",ie)}function Y(){t("today-btn-click",ca())}function ee(){t("confirm")}function te(ie){t("header-label-click",ie)}function J(ie){t("header-select",ie)}function Z(){t("month-header-click")}const ce=Lt({prefixCls:n,shortcuts:r,showNowBtn:x,onItemClick:V,onItemMouseEnter:W,onItemMouseLeave:U,onNowClick:Y}),ye=Lt({value:s,headerValue:m,headerIcons:y,headerOperations:b,disabledDate:l,dateRender:h,onSelect:X,onHeaderLabelClick:te});return{classNames:$,showShortcutsInLeft:E,showShortcutsInRight:S,showShortcutsInBottom:I,shortcutsProps:ce,commonPanelProps:ye,footerValue:L,onTodayBtnClick:Y,onConfirmBtnClick:ee,onTimePickerSelect:G,onHeaderPanelSelect:J,headerPanelHeaderValue:O,headerPanelHeaderOperations:M,onMonthHeaderLabelClick:Z}}});function MDe(e,t,n,r,o,a){const s=ke("PanelShortcuts"),l=ke("YearPanel"),c=ke("MonthPanel"),f=ke("WeekPanel"),h=ke("QuarterPanel"),p=ke("DatePanel"),m=ke("RenderFunction"),y=ke("PanelFooter");return z(),q("div",{class:ne(e.classNames)},[e.showShortcutsInLeft?(z(),Ne(s,ai(xt({key:0},e.shortcutsProps)),null,16)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(z(),q(Tt,{key:0},[e.headerMode==="year"?(z(),Ne(l,{key:0,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,onSelect:e.onHeaderPanelSelect},null,8,["header-value","header-icons","header-operations","onSelect"])):e.headerMode==="month"?(z(),Ne(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"])):ge("v-if",!0)],64)):(z(),q(Tt,{key:1},[e.mode==="week"?(z(),Ne(f,xt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(z(),Ne(c,xt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(z(),Ne(l,ai(xt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(z(),Ne(h,ai(xt({key:3},e.commonPanelProps)),null,16)):(z(),Ne(p,xt({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"])),R(y,{"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},Wi({_:2},[e.extra?{name:"extra",fn:se(()=>[e.extra?(z(),Ne(m,{key:0,"render-func":e.extra},null,8,["render-func"])):ge("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:se(()=>[R(s,ai(Fs(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(z(),Ne(s,ai(xt({key:1},e.shortcutsProps)),null,16)):ge("v-if",!0)],2)}var RDe=xe($De,[["render",MDe]]);function DDe(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 ODe(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 rhe(e){const{format:t,mode:n,showTime:r,valueFormat:o}=Ot(e),a=N(()=>!Yt(t?.value)&&t?.value||DDe(n?.value,r?.value)),s=N(()=>o?.value||ODe(n?.value,r?.value)),l=N(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function ihe(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=Ot(e),s=N(()=>t?.value==="date"&&n?.value),l=N(()=>(h,p)=>{if(!r?.value)return!1;const m=zl(h);return a?.value?r.value(m,p):r.value(m)}),c=(h,p)=>(p?.()||[]).includes(h),f=N(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const m=zl(h),y=a?.value?o.value(m,p):o.value(m);return c(h.hour(),y.disabledHours)||c(h.minute(),y.disabledMinutes)||c(h.second(),y.disabledSeconds)});return function(p,m){return p&&(l.value(p,m||"start")||f.value(p,m||"start"))}}const jm=(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 jm(t?.value||{},l)||r(a,...s)};return gr(Ufe,{datePickerT:o}),o}function tj(e){const{timePickerProps:t,selectedValue:n}=Ot(e),r=N(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=N(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=yU(Lt({format:r,use12Hours:o})),s=N(()=>{var p;return Iu((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||ca(),c=ae(l());function f(p){p&&(c.value=p)}function h(){c.value=l()}return bt(n,p=>{f(p)}),[c,f,h]}function she(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function NDe(e){const{format:t}=Ot(e);return n=>she(n,t.value)}function kM(e,t){return e.map(n=>n?she(n,t):void 0)}const BDe=fe({name:"Picker",components:{DateInput:zfe,Trigger:Ls,PickerPanel:RDe,IconCalendar:Mw},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:y,disabledDate:b,disabledTime:w,readonly:C,locale:x,pickerValue:_,defaultPickerValue:E,dayStartOfWeek:S,previewShortcut:I,showConfirmBtn:$}=Ot(e),{locale:L}=no();Yo(()=>{gfe(L.value,S.value)});const{mergedDisabled:O,eventHandlers:F}=qi({disabled:p}),M=ohe(Lt({locale:x})),j=ve("picker"),V=ae(),W=N(()=>c?.value||{date:M("datePicker.placeholder.date"),month:M("datePicker.placeholder.month"),year:M("datePicker.placeholder.year"),week:M("datePicker.placeholder.week"),quarter:M("datePicker.placeholder.quarter")}[r.value]||M("datePicker.placeholder.date")),{format:U,valueFormat:X,parseValueFormat:G}=rhe(Lt({format:s,mode:r,showTime:m,valueFormat:l})),Y=N(()=>s&&Yt(s.value)?sn=>{var Yn;return(Yn=s.value)==null?void 0:Yn.call(s,zl(sn))}:U.value),ee=NDe(Lt({format:X})),te=ihe(Lt({mode:r,disabledDate:b,disabledTime:w,showTime:m})),J=N(()=>m.value||$.value),Z=N(()=>J.value&&(!De.value||te(De.value))),ce=N(()=>r.value==="date"&&m.value),{value:ye,setValue:ie}=xRe(Lt({modelValue:o,defaultValue:a,format:G})),[Ce,Re]=ua(),[be,Fe]=ua(),De=N(()=>{var sn;return(sn=Ce.value)!=null?sn:ye.value}),Ge=N(()=>{var sn,Yn;return(Yn=(sn=be.value)!=null?sn:Ce.value)!=null?Yn:ye.value}),[qe,Ve]=ua(),[he,de]=As(h.value,Lt({value:f})),Te=sn=>{he.value!==sn&&(de(sn),t("popup-visible-change",sn),t("update:popupVisible",sn))},{headerValue:Oe,setHeaderValue:je,headerOperations:We,resetHeaderValue:it}=j3(Lt({mode:r,value:_,defaultValue:E,selectedValue:Ge,format:G,onChange:sn=>{const Yn=ee(sn),Ii=Id(sn,G.value),ya=zl(sn);t("picker-value-change",Yn,ya,Ii),t("update:pickerValue",Yn)}})),[Ze,,pt]=tj(Lt({timePickerProps:y,selectedValue:Ge})),et=N(()=>!C.value&&!Yt(Y.value)),Pt=ae();bt(he,sn=>{Re(void 0),Fe(void 0),Pt.value=void 0,sn&&(it(),pt()),sn||Ve(void 0)});function $t(sn,Yn){var Ii,ya;const vc=sn?ee(sn):void 0,mc=Id(sn,G.value),ef=zl(sn);lU(sn,ye.value)&&(t("update:modelValue",vc),t("change",vc,ef,mc),(ya=(Ii=F.value)==null?void 0:Ii.onChange)==null||ya.call(Ii)),Yn&&t("ok",vc,ef,mc)}function vt(sn,Yn,Ii){te(sn)||($t(sn,Ii),ie(sn),Re(void 0),Fe(void 0),Ve(void 0),Pt.value=void 0,Ka(Yn)&&Te(Yn))}function Nt(sn,Yn){if(Re(sn),Fe(void 0),Ve(void 0),Pt.value=void 0,Yn){const Ii=sn?ee(sn):void 0,ya=Id(sn,G.value),vc=zl(sn);t("select",Ii,vc,ya)}}function dt(sn){V.value&&V.value.focus&&V.value.focus(sn)}function lt(sn,Yn){return!ce.value&&!y.value?sn:Wfe(ca(),sn,Yn)}function Pe(sn){O.value||Te(sn)}function Ae(sn){sn.stopPropagation(),vt(void 0),t("clear")}function Xe(){var sn,Yn;(Yn=(sn=F.value)==null?void 0:sn.onBlur)==null||Yn.call(sn)}function ut(sn){Te(!0);const Yn=sn.target.value;if(Ve(Yn),!B3(Yn,U.value))return;const Ii=Ko(Yn,U.value);te(Ii)||(J.value?Nt(Ii):vt(Ii,!0))}function Ke(){vt(Ge.value,!1)}function ze(sn){J.value?Nt(sn,!0):vt(sn,!1)}function Se(sn){const Yn=lt(sn,Ze.value);ze(Yn)}function st(sn){const Yn=lt(Ge.value||ca(),sn);ze(Yn)}function St(){vt(Ge.value,!1,!0)}function At(){e.disabledInput&&dt()}let gt;Fr(()=>{clearTimeout(gt)});function Dt(sn){clearTimeout(gt),Fe(sn),Ve(void 0)}function on(){clearTimeout(gt),gt=setTimeout(()=>{Fe(void 0)},100)}function Mn(sn,Yn){t("select-shortcut",Yn),vt(sn,!1)}function Ci(sn){Pt.value=sn}function Lu(){Pt.value="year"}function Ar(sn){let Yn=Oe.value;if(Yn=Yn.set("year",sn.year()),Pt.value==="month"&&(Yn=Yn.set("month",sn.month())),je(Yn),r.value==="quarter"||r.value==="month"){Pt.value=void 0;return}Pt.value=Pt.value==="year"?"month":void 0}const Jo=N(()=>({format:U.value,...Vs(y?.value||{},["defaultValue"]),visible:he.value})),ga=N(()=>({...Fd(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:j,format:G.value,value:Ge.value,visible:he.value,showConfirmBtn:J.value,confirmBtnDisabled:Z.value,timePickerProps:Jo.value,extra:n.extra,dateRender:n.cell,headerValue:Oe.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:We.value,timePickerValue:Ze.value,headerMode:Pt.value,onCellClick:Se,onTimePickerSelect:st,onConfirm:St,onShortcutClick:Mn,onShortcutMouseEnter:I.value?Dt:void 0,onShortcutMouseLeave:I.value?on:void 0,onTodayBtnClick:ze,onHeaderLabelClick:Ci,onHeaderSelect:Ar,onMonthHeaderClick:Lu}));return{prefixCls:j,refInput:V,panelProps:ga,panelValue:Ge,inputValue:qe,selectedValue:ye,inputFormat:Y,computedPlaceholder:W,panelVisible:he,inputEditable:et,needConfirm:J,mergedDisabled:O,onPanelVisibleChange:Pe,onInputClear:Ae,onInputChange:ut,onInputPressEnter:Ke,onInputBlur:Xe,onPanelClick:At}}});function FDe(e,t,n,r,o,a){const s=ke("IconCalendar"),l=ke("DateInput"),c=ke("PickerPanel"),f=ke("Trigger");return e.hideTrigger?(z(),Ne(c,ai(xt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(z(),Ne(f,xt({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:se(()=>[R(c,xt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:se(()=>[Qe(e.$slots,"default",{},()=>[R(l,xt(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}),Wi({"suffix-icon":se(()=>[Qe(e.$slots,"suffix-icon",{},()=>[R(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:se(()=>[Qe(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 Rw=xe(BDe,[["render",FDe]]),wM=fe({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()=>R(Rw,xt(e,t,{mode:"date"}),n)}}),n4=fe({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()=>R(Rw,xt(e,t,{mode:"week"}),n)}}),r4=fe({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()=>R(Rw,xt(e,t,{mode:"month"}),n)}}),i4=fe({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()=>R(Rw,xt(e,t,{mode:"year"}),n)}}),o4=fe({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()=>R(Rw,xt(e,t,{mode:"quarter"}),n)}});function jDe(e){const{modelValue:t,defaultValue:n,format:r}=Ot(e),o=N(()=>Iu(JF(t.value),r.value)),a=N(()=>Iu(JF(n.value),r.value)),[s,l]=ua(Zt(o.value)?Zt(a.value)?[]:a.value:o.value);return bt(o,()=>{Zt(o.value)&&l([])}),{value:N(()=>o.value||s.value),setValue:l}}function VDe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=Ot(e),f=N(()=>["date","week"].includes(r.value)),h=N(()=>f.value?"M":"y"),p=(Ce,Re)=>Ce.isSame(Re,h.value),{span:m,superSpan:y}=nhe(Lt({mode:r})),b=N(()=>t?.value||r.value),w=N(()=>n?.value||r.value),C=N(()=>{var Ce;return(Ce=o.value)==null?void 0:Ce[0]}),x=N(()=>{var Ce;return(Ce=o.value)==null?void 0:Ce[1]}),_=N(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[0]}),E=N(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[1]}),S=Ce=>{c?.value&&c.value(Ce)},{headerValue:I,setHeaderValue:$,headerOperations:L,getDefaultLocalValue:O}=j3(Lt({mode:b,value:C,defaultValue:_,selectedValue:void 0,format:l,onChange:Ce=>{S([Ce,F.value])}})),{headerValue:F,setHeaderValue:M,headerOperations:j,getDefaultLocalValue:V}=j3(Lt({mode:w,value:x,defaultValue:E,selectedValue:void 0,format:l,onChange:Ce=>{S([I.value,Ce])}})),W=Ce=>{const Re=p(I.value,Ce[0]),be=p(F.value,Ce[1]);$(Ce[0],!1),M(Ce[1],!1),(!Re||!be)&&c?.value&&c?.value(Ce)};function U(Ce){let[Re,be]=Ok(Ce);const Fe=ds.add(Re,m.value,"M");return be.isBefore(Fe,h.value)&&(be=Fe),[Re,be]}function X(){var Ce,Re;let be=(Ce=s.value)==null?void 0:Ce[0],Fe=(Re=s.value)==null?void 0:Re[1];return be&&Fe&&([be,Fe]=Ok([be,Fe])),[be,Fe]}const[G,Y]=X(),[ee,te]=U([G||I.value,Y||F.value]);$(ee,!1),M(te,!1);const J=()=>{const Ce=O(),Re=V();nn(()=>{const[be,Fe]=X(),[De,Ge]=U([be||Ce,Fe||Re]);W([De,Ge])})},Z=N(()=>ds.add(I.value,m.value,"M").isBefore(F.value,h.value)),ce=N(()=>ds.add(I.value,y.value,"M").isBefore(F.value,h.value)),ye=N(()=>{const Ce=["onSuperPrev"];return f.value&&Ce.push("onPrev"),Z.value&&f&&Ce.push("onNext"),ce.value&&Ce.push("onSuperNext"),Fd(L.value,Ce)}),ie=N(()=>{const Ce=["onSuperNext"];return f.value&&Ce.push("onNext"),Z.value&&f.value&&Ce.push("onPrev"),ce.value&&Ce.push("onSuperPrev"),Fd(j.value,Ce)});return{startHeaderValue:I,endHeaderValue:F,startHeaderOperations:ye,endHeaderOperations:ie,setHeaderValue:W,resetHeaderValue:J}}const zDe=fe({name:"DateInputRange",components:{IconHover:Ki,IconClose:ps,FeedbackIcon:Iw},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}=Ot(e),{mergedSize:p,mergedDisabled:m,mergedError:y,feedback:b}=qi({size:s,error:r}),{mergedSize:w}=Us(p),C=ae(),x=ae(),_=G=>m.value?m.value:En(a.value)?a.value[G]:a.value,E=N(()=>_(0)),S=N(()=>_(1)),I=ve("picker"),$=N(()=>[I,`${I}-range`,`${I}-size-${w.value}`,{[`${I}-focused`]:o.value,[`${I}-disabled`]:E.value&&S.value,[`${I}-error`]:y.value,[`${I}-has-prefix`]:n.prefix}]);function L(G){return[`${I}-input`,{[`${I}-input-active`]:G===f?.value}]}function O(G){var Y,ee;if(h?.value)return(Y=h?.value)==null?void 0:Y[G];const te=(ee=l?.value)==null?void 0:ee[G];if(te&&nc(te))return Yt(c.value)?c.value(te):te.format(c.value)}const F=N(()=>O(0)),M=N(()=>O(1));function j(G){t("focused-index-change",G),t("update:focusedIndex",G)}function V(G){G.stopPropagation(),t("change",G)}function W(){t("press-enter")}function U(G){G.preventDefault()}function X(G){t("clear",G)}return{prefixCls:I,classNames:$,refInput0:C,refInput1:x,disabled0:E,disabled1:S,mergedDisabled:m,getDisabled:_,getInputWrapClassName:L,displayValue0:F,displayValue1:M,changeFocusedInput:j,onChange:V,onPressEnter:W,onPressTab:U,onClear:X,feedback:b}},methods:{focus(e){const t=Me(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!Zt(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),UDe=["disabled","placeholder","value"],HDe=["disabled","placeholder","value"];function WDe(e,t,n,r,o,a){const s=ke("IconClose"),l=ke("IconHover"),c=ke("FeedbackIcon");return z(),q("div",{class:ne(e.classNames)},[e.$slots.prefix?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-prefix`)},[Qe(e.$slots,"prefix")],2)):ge("v-if",!0),A("div",{class:ne(e.getInputWrapClassName(0))},[A("input",xt({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]=Yf((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[2]||(t[2]=Yf((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,UDe)],2),A("span",{class:ne(`${e.prefixCls}-separator`)},[Qe(e.$slots,"separator",{},()=>[t[8]||(t[8]=$e(" - "))])],2),A("div",{class:ne(e.getInputWrapClassName(1))},[A("input",xt({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]=Yf((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[6]||(t[6]=Yf((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,HDe)],2),A("div",{class:ne(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(z(),Ne(l,{key:0,prefix:e.prefixCls,class:ne(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:se(()=>[R(s)]),_:1},8,["prefix","class","onClick"])):ge("v-if",!0),A("span",{class:ne(`${e.prefixCls}-suffix-icon`)},[Qe(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ne(c,{key:1,type:e.feedback},null,8,["type"])):ge("v-if",!0)],2)],2)}var ahe=xe(zDe,[["render",WDe]]);const GDe=fe({name:"DateRangePikerPanel",components:{PanelShortcuts:Hfe,PanelFooter:the,RenderFunction:kh,DatePanel:bU,WeekPanel:Xfe,MonthPanel:Zfe,YearPanel:Jfe,QuarterPanel:Qfe},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:y,startHeaderMode:b,endHeaderMode:w}=Ot(e),C=N(()=>En(r.value)&&r.value.length),x=N(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:s.value,[`${n.value}-range-container-shortcuts-placement-left`]:C.value&&o.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:C.value&&o.value==="right"}]),_=ae("date");bt(y,(ce,ye)=>{ce&&!ye&&(_.value="date")});function E(ce){return Iu(JF(Yt(ce.value)?ce.value():ce.value),ce.format||a.value)}function S(ce){t("shortcut-click",E(ce),ce)}function I(ce){t("shortcut-mouse-enter",E(ce))}function $(ce){t("shortcut-mouse-leave",E(ce))}function L(ce){t("cell-click",ce)}function O(ce){t("cell-mouse-enter",ce)}function F(){t("confirm")}function M(ce){t("time-picker-select",ce,"start")}function j(ce){t("time-picker-select",ce,"end")}function V(ce){t("start-header-label-click",ce)}function W(ce){t("end-header-label-click",ce)}function U(ce){t("start-header-select",ce)}function X(ce){t("end-header-select",ce)}function G(ce){return Yt(c?.value)?ye=>{var ie;return((ie=c?.value)==null?void 0:ie.call(c,ye,ce===0?"start":"end"))||!1}:void 0}function Y(ce){return Yt(f?.value)?ye=>{var ie;return((ie=f?.value)==null?void 0:ie.call(f,ye,ce===0?"start":"end"))||!1}:void 0}function ee(ce){return Yt(m?.value)?ye=>{var ie;const Ce={...ye,type:ce===0?"start":"end"};return(ie=m?.value)==null?void 0:ie.call(m,Ce)}:void 0}const te=Lt({prefixCls:n,shortcuts:r,onItemClick:S,onItemMouseEnter:I,onItemMouseLeave:$}),J=N(()=>({...h.value,rangeValues:l.value,disabledDate:G(0),dateRender:ee(0),onSelect:b.value?U:L,onCellMouseEnter:O,onHeaderLabelClick:V})),Z=N(()=>({...p.value,rangeValues:l.value,disabledDate:G(1),dateRender:ee(1),onSelect:w.value?X:L,onCellMouseEnter:O,onHeaderLabelClick:W}));return{pick:Fd,classNames:x,showShortcuts:C,shortcutsProps:te,startPanelProps:J,endPanelProps:Z,getDisabledTimeFunc:Y,onConfirmBtnClick:F,currentDateView:_,onStartTimePickerSelect:M,onEndTimePickerSelect:j,onStartHeaderPanelSelect:U,onEndHeaderPanelSelect:X}}});function KDe(e,t,n,r,o,a){const s=ke("PanelShortcuts"),l=ke("YearPanel"),c=ke("MonthPanel"),f=ke("WeekPanel"),h=ke("QuarterPanel"),p=ke("DatePanel"),m=ke("RenderFunction"),y=ke("PanelFooter");return z(),q("div",{class:ne(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(z(),Ne(s,ai(xt({key:0},e.shortcutsProps)),null,16)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-range-panel-wrapper`)},[ge(" panel "),A("div",{class:ne(`${e.prefixCls}-range`)},[A("div",{class:ne(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(z(),q(Tt,{key:0},[e.startHeaderMode==="year"?(z(),Ne(l,ai(xt({key:0},e.startPanelProps)),null,16)):ge("v-if",!0),e.endHeaderMode==="year"?(z(),Ne(l,ai(xt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(z(),Ne(c,xt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(z(),Ne(c,xt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):ge("v-if",!0)],64)):(z(),q(Tt,{key:1},[ge(" week "),e.mode==="week"?(z(),q(Tt,{key:0},[R(f,xt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),R(f,xt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(z(),q(Tt,{key:1},[ge(" month "),R(c,xt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),R(c,xt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(z(),q(Tt,{key:2},[ge(" year "),R(l,ai(Fs(e.startPanelProps)),null,16),R(l,ai(Fs(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(z(),q(Tt,{key:3},[ge(" quarter "),R(h,ai(Fs(e.startPanelProps)),null,16),R(h,ai(Fs(e.endPanelProps)),null,16)],64)):(z(),q(Tt,{key:4},[ge(" date "),R(p,xt({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"]),R(p,xt({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),ge(" footer "),R(y,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},Wi({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:se(()=>[e.$slots.extra?Qe(e.$slots,"extra",{key:0}):(z(),Ne(m,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:se(()=>[R(s,ai(Fs(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(z(),Ne(s,ai(xt({key:1},e.shortcutsProps)),null,16)):ge("v-if",!0)],2)}var qDe=xe(GDe,[["render",KDe]]);function YDe(e){const{timePickerProps:t,selectedValue:n}=Ot(e),r=N(()=>{var x;return(x=n?.value)==null?void 0:x[0]}),o=N(()=>{var x;return(x=n?.value)==null?void 0:x[1]}),a=N(()=>{var x;return(x=t?.value)==null?void 0:x.defaultValue}),s=N(()=>En(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=N(()=>En(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,f,h]=tj(Lt({timePickerProps:s,selectedValue:r})),[p,m,y]=tj(Lt({timePickerProps:l,selectedValue:o})),b=N(()=>[c.value,p.value]);function w(x){x&&(f(x[0]),m(x[1]))}function C(){h(),y()}return[b,w,C]}const XDe=fe({name:"RangePicker",components:{RangePickerPanel:qDe,DateRangeInput:ahe,Trigger:Ls,IconCalendar:Mw},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:y,disabledTime:b,locale:w,pickerValue:C,defaultPickerValue:x,valueFormat:_,size:E,error:S,dayStartOfWeek:I,exchangeTime:$,previewShortcut:L,showConfirmBtn:O}=Ot(e),{locale:F}=no(),M=rn(fa,void 0);Yo(()=>{gfe(F.value,I.value)});const j=N(()=>{var Vt;return!(!$.value||!((Vt=M?.exchangeTime)==null||Vt))}),{mergedSize:V,mergedDisabled:W,mergedError:U,eventHandlers:X}=qi({size:E,error:S}),G=ohe(Lt({locale:w})),Y=ve("picker"),ee=N(()=>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:te,valueFormat:J,parseValueFormat:Z}=rhe(Lt({mode:r,format:a,showTime:o,valueFormat:_})),ce=N(()=>{const Vt=m.value===!0||W.value||En(m.value)&&m.value[0]===!0,zt=m.value===!0||W.value||En(m.value)&&m.value[1]===!0;return[Vt,zt]}),ye=N(()=>ce.value[0]&&ce.value[1]);function ie(Vt=0){return ce.value[Vt]?Vt^1:Vt}const Ce=ae(),Re=ae(ie()),be=N(()=>{const Vt=Re.value,zt=Vt^1;return ce.value[zt]?Vt:zt}),Fe=N(()=>ce.value[Re.value^1]),{value:De,setValue:Ge}=jDe(Lt({modelValue:s,defaultValue:l,format:Z})),[qe,Ve]=ua(),[he,de]=ua(),Te=N(()=>{var Vt;return(Vt=qe.value)!=null?Vt:De.value}),Oe=N(()=>{var Vt,zt;return(zt=(Vt=he.value)!=null?Vt:qe.value)!=null?zt:De.value}),[je,We]=ua(),it=ae(),Ze=ae(),[pt,et]=As(f.value,Lt({value:c})),Pt=Vt=>{pt.value!==Vt&&(et(Vt),t("popup-visible-change",Vt),t("update:popupVisible",Vt))},{startHeaderValue:$t,endHeaderValue:vt,startHeaderOperations:Nt,endHeaderOperations:dt,resetHeaderValue:lt,setHeaderValue:Pe}=VDe(Lt({mode:r,startHeaderMode:it,endHeaderMode:Ze,value:C,defaultValue:x,selectedValue:Oe,format:Z,onChange:Vt=>{const zt=kM(Vt,J.value),Gr=Id(Vt,Z.value),Zr=zl(Vt);t("picker-value-change",zt,Zr,Gr),t("update:pickerValue",zt)}}));function Ae(Vt){it.value=Vt}function Xe(Vt){Ze.value=Vt}function ut(Vt){let zt=$t.value;zt=zt.set("year",Vt.year()),it.value==="month"&&(zt=zt.set("month",Vt.month())),Pe([zt,vt.value]),it.value=void 0}function Ke(Vt){let zt=vt.value;zt=zt.set("year",Vt.year()),Ze.value==="month"&&(zt=zt.set("month",Vt.month())),Pe([$t.value,zt]),Ze.value=void 0}const ze=ae([Oe.value[0]||ca(),Oe.value[1]||ca()]);bt(Oe,()=>{const[Vt,zt]=Oe.value;ze.value[0]=Vt||ze.value[0],ze.value[1]=zt||ze.value[1]});const[Se,st,St]=YDe(Lt({timePickerProps:p,selectedValue:Oe})),At=N(()=>r.value==="date"&&o.value),gt=N(()=>At.value||p.value),Dt=ihe(Lt({mode:r,isRange:!0,showTime:o,disabledDate:y,disabledTime:b})),on=N(()=>At.value||O.value),Mn=N(()=>on.value&&(!pp(Te.value)||Dt(Te.value[0],"start")||Dt(Te.value[1],"end")));bt(pt,Vt=>{it.value=void 0,Ze.value=void 0,Ve(void 0),de(void 0),Vt&&(lt(),St(),Re.value=ie(Re.value),nn(()=>Yn(Re.value))),Vt||We(void 0)}),bt(Re,()=>{e.disabledInput&&(Yn(Re.value),We(void 0))});function Ci(Vt,zt){var Gr,Zr;const ci=Vt?kM(Vt,J.value):void 0,ba=Id(Vt,Z.value),Th=zl(Vt);lU(Vt,De.value)&&(t("update:modelValue",ci),t("change",ci,Th,ba),(Zr=(Gr=X.value)==null?void 0:Gr.onChange)==null||Zr.call(Gr)),zt&&t("ok",ci,Th,ba)}function Lu(Vt){let zt=Ok(Vt);return gt.value&&!j.value&&(zt=[Ii(zt[0],Vt[0]),Ii(zt[1],Vt[1])]),zt}function Ar(Vt,zt,Gr){if(Dt(Vt?.[0],"start")||Dt(Vt?.[1],"end"))return;let Zr=Vt?[...Vt]:void 0;pp(Zr)&&(Zr=Lu(Zr)),Ci(Zr,Gr),Ge(Zr||[]),Ve(void 0),de(void 0),We(void 0),it.value=void 0,Ze.value=void 0,Ka(zt)&&Pt(zt)}function Jo(Vt){const zt=kM(Vt,J.value),Gr=Id(Vt,Z.value),Zr=zl(Vt);t("select",zt,Zr,Gr)}function ga(Vt,zt){const{emitSelect:Gr=!1,updateHeader:Zr=!1}=zt||{};let ci=[...Vt];pp(ci)&&(ci=Lu(ci)),Ve(ci),de(void 0),We(void 0),it.value=void 0,Ze.value=void 0,Gr&&Jo(ci),Zr&<()}function sn(Vt,zt){const{updateHeader:Gr=!1}=zt||{};de(Vt),We(void 0),Gr&<()}function Yn(Vt){Ce.value&&Ce.value.focus&&Ce.value.focus(Vt)}function Ii(Vt,zt){return gt.value?Wfe(ca(),Vt,zt):Vt}function ya(Vt){Pt(Vt)}function vc(Vt){if(qe.value&&Oe.value[be.value]&&(!on.value||!pp(qe.value))){const zt=[...Oe.value],Gr=Ii(Vt,Se.value[Re.value]);zt[Re.value]=Gr,sn(zt)}}function mc(Vt=!1){return Fe.value?[...De.value]:qe.value?Vt||!pp(qe.value)?[...qe.value]:[]:Vt?[...De.value]:[]}function ef(Vt){const zt=mc(),Gr=Ii(Vt,Se.value[Re.value]);zt[Re.value]=Gr,Jo(zt),!on.value&&pp(zt)?Ar(zt,!1):(ga(zt),pp(zt)?Re.value=0:Re.value=be.value)}function ed(Vt,zt){const Gr=zt==="start"?0:1,Zr=Ii(Se.value[Gr],Vt),ci=[...Se.value];ci[Gr]=Zr,st(ci);const ba=mc(!0);ba[Gr]&&(ba[Gr]=Zr,ga(ba,{emitSelect:!0}))}let Pu;Fr(()=>{clearTimeout(Pu)});function tf(Vt){clearTimeout(Pu),sn(Vt,{updateHeader:!0})}function td(){clearTimeout(Pu),Pu=setTimeout(()=>{de(void 0),We(void 0),lt()},100)}function _h(Vt,zt){t("select-shortcut",zt),Ar(Vt,!1)}function Ag(){Ar(Oe.value,!1,!0)}function Yi(Vt){Vt.stopPropagation(),Ar(void 0),t("clear")}function bl(Vt){Pt(!0);const zt=Vt.target.value;if(!zt){We(void 0);return}const Gr=Id(Oe.value,te.value),Zr=En(je.value)?[...je.value]:Gr||[];if(Zr[Re.value]=zt,We(Zr),!B3(zt,te.value))return;const ci=Ko(zt,te.value);if(Dt(ci,Re.value===0?"start":"end"))return;const ba=En(Oe.value)?[...Oe.value]:[];ba[Re.value]=ci,ga(ba,{updateHeader:!0})}function Hs(){$Re(Oe.value)?Ar(Oe.value,!1):Re.value=be.value}const ln=N(()=>({format:te.value,...Vs(p?.value||{},["defaultValue"]),visible:pt.value})),Sl=N(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),yo=Lt({headerValue:$t,headerOperations:Nt,headerIcons:Sl}),nd=Lt({headerValue:vt,headerOperations:dt,headerIcons:Sl}),Ye=N(()=>({...Fd(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:Y,format:Z.value,value:Oe.value,showConfirmBtn:on.value,confirmBtnDisabled:Mn.value,timePickerValue:Se.value,timePickerProps:ln.value,extra:n.extra,dateRender:n.cell,startHeaderProps:yo,endHeaderProps:nd,footerValue:ze.value,disabled:ce.value,visible:pt.value,onCellClick:ef,onCellMouseEnter:vc,onShortcutClick:_h,onShortcutMouseEnter:L.value?tf:void 0,onShortcutMouseLeave:L.value?td:void 0,onConfirm:Ag,onTimePickerSelect:ed,startHeaderMode:it.value,endHeaderMode:Ze.value,onStartHeaderLabelClick:Ae,onEndHeaderLabelClick:Xe,onStartHeaderSelect:ut,onEndHeaderSelect:Ke}));return{prefixCls:Y,refInput:Ce,computedFormat:te,computedPlaceholder:ee,panelVisible:pt,panelValue:Oe,inputValue:je,focusedIndex:Re,triggerDisabled:ye,mergedSize:V,mergedError:U,onPanelVisibleChange:ya,onInputClear:Yi,onInputChange:bl,onInputPressEnter:Hs,rangePanelProps:Ye}}});function ZDe(e,t,n,r,o,a){const s=ke("IconCalendar"),l=ke("DateRangeInput"),c=ke("RangePickerPanel"),f=ke("Trigger");return e.hideTrigger?(z(),Ne(c,ai(xt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(z(),Ne(f,xt({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:se(()=>[R(c,ai(Fs(e.rangePanelProps)),null,16)]),default:se(()=>[Qe(e.$slots,"default",{},()=>[R(l,xt({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}),Wi({"suffix-icon":se(()=>[Qe(e.$slots,"suffix-icon",{},()=>[R(s)])]),separator:se(()=>[Qe(e.$slots,"separator",{},()=>[$e(_e(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:se(()=>[Qe(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=xe(XDe,[["render",ZDe]]);const JDe=Object.assign(wM,{WeekPicker:n4,MonthPicker:r4,YearPicker:i4,QuarterPicker:o4,RangePicker:s4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+wM.name,wM),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)}}),z3=["xxl","xl","lg","md","sm","xs"],Q_={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 zv=[],QDe=-1,eT={};const U3={matchHandlers:{},dispatch(e,t){return eT=e,zv.length<1?!1:(zv.forEach(n=>{n.func(eT,t)}),!0)},subscribe(e){zv.length===0&&this.register();const t=(++QDe).toString();return zv.push({token:t,func:e}),e(eT,null),t},unsubscribe(e){zv=zv.filter(t=>t.token!==e),zv.length===0&&this.unregister()},unregister(){Object.keys(Q_).forEach(e=>{const t=Q_[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(Q_).forEach(e=>{const t=Q_[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...eT,[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 ine(e){return Dn(e)}function eh(e,t,n=!1){const r=ae({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=N(()=>{let s=t;if(ine(e.value))for(let l=0;l{a=U3.subscribe(s=>{ine(e.value)&&(r.value=s)})}),Fr(()=>{a&&U3.unsubscribe(a)}),o}var CM=fe({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}=Ot(e),o=ve("descriptions"),{mergedSize:a}=Us(r),s=eh(n,3,!0),l=N(()=>{var I;return(I=Dn(e.align)?e.align.label:e.align)!=null?I:"left"}),c=N(()=>{var I;return(I=Dn(e.align)?e.align.value:e.align)!=null?I:"left"}),f=N(()=>({textAlign:l.value,...e.labelStyle})),h=N(()=>({textAlign:c.value,...e.valueStyle})),p=I=>{const $=[];let L=[],O=0;const F=()=>{if(L.length){const M=s.value-O;L[L.length-1].span+=M,$.push(L)}};return I.forEach(M=>{var j,V;const W=Math.min((V=ii(M)?(j=M.props)==null?void 0:j.span:M.span)!=null?V:1,s.value);O+W>s.value&&(F(),L=[],O=0),L.push({data:M,span:W}),O+=W}),F(),$},m=N(()=>{var I;return p((I=e.data)!=null?I:[])}),y=(I,$)=>{var L,O,F,M,j;return ii(I)?_A(I,I.children)&&((O=(L=I.children).label)==null?void 0:O.call(L))||((F=I.props)==null?void 0:F.label):(j=(M=t.label)==null?void 0:M.call(t,{label:I.label,index:$,data:I}))!=null?j:Yt(I.label)?I.label():I.label},b=(I,$)=>{var L,O;return ii(I)?I:(O=(L=t.value)==null?void 0:L.call(t,{value:I.value,index:$,data:I}))!=null?O:Yt(I.value)?I.value():I.value},w=I=>R(Tt,null,[R("tr",{class:`${o}-row`},[I.map(($,L)=>R("td",{key:`label-${L}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:f.value,colspan:$.span},[y($.data,L)]))]),R("tr",{class:`${o}-row`},[I.map(($,L)=>R("td",{key:`value-${L}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:$.span},[b($.data,L)]))])]),C=(I,$)=>R("tr",{class:`${o}-row`,key:`tr-${$}`},[I.map(L=>R(Tt,null,[R("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:f.value},[y(L.data,$)]),R("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:L.span*2-1},[b(L.data,$)])]))]),x=(I,$)=>R("tr",{class:`${o}-row`,key:`inline-${$}`},[I.map((L,O)=>R("td",{key:`item-${O}`,class:`${o}-item`,colspan:L.span},[R("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:f.value},[y(L.data,O)]),R("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:h.value},[b(L.data,O)])]))]),_=(I,$)=>["inline-horizontal","inline-vertical"].includes(e.layout)?x(I,$):e.layout==="vertical"?w(I):C(I,$),E=N(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${a.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),S=()=>{var I,$;const L=($=(I=t.title)==null?void 0:I.call(t))!=null?$:e.title;return L?R("div",{class:`${o}-title`},[L]):null};return()=>{const I=t.default?p(Dd(t.default())):m.value;return R("div",{class:E.value},[S(),R("div",{class:`${o}-body`},[R("table",{class:`${o}-table`},[R("tbody",null,[I.map(($,L)=>_($,L))])])])])}}});const eOe=fe({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:ve("descriptions")}}});function tOe(e,t,n,r,o,a){return Qe(e.$slots,"default")}var a4=xe(eOe,[["render",tOe]]);const nOe=Object.assign(CM,{DescriptionsItem:a4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+CM.name,CM),e.component(n+a4.name,a4)}});var xM=fe({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=ve("divider"),r=N(()=>e.direction==="horizontal"),o=N(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=Me(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!Zt(e.margin)){const s=Me(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 R("div",{role:"separator",class:l,style:o.value},[s&&e.direction==="horizontal"&&R("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const rOe=Object.assign(xM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+xM.name,xM)}}),lhe=e=>{const t=ae(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=fPe(a);(s>0||dPe(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}}}},iOe=["top","right","bottom","left"],oOe=fe({name:"Drawer",components:{ClientOnly:eU,ArcoButton:po,IconHover:Ki,IconClose:ps},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>iOe.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}=Ot(e),r=ve("drawer"),{t:o}=no(),a=ae(e.defaultVisible),s=N(()=>{var W;return(W=e.visible)!=null?W:a.value}),l=ae(!1),c=N(()=>e.okLoading||l.value),{teleportContainer:f,containerRef:h}=tU({popupContainer:n,visible:s}),p=ae(s.value);let m=!1;const y=W=>{e.escToClose&&W.key===so.ESC&&x()&&$(W)},b=()=>{e.escToClose&&!m&&(m=!0,Wr(document.documentElement,"keydown",y))},w=()=>{m&&(m=!1,mi(document.documentElement,"keydown",y))},{zIndex:C,isLastDialog:x}=R1("dialog",{visible:s}),_=N(()=>h?.value===document.body);let E=0;const S=()=>{E++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},I=async W=>{const U=E,X=await new Promise(async G=>{var Y;if(Yt(e.onBeforeOk)){let ee=e.onBeforeOk((te=!0)=>G(te));if((tg(ee)||!Ka(ee))&&(l.value=!0),tg(ee))try{ee=(Y=await ee)!=null?Y:!0}catch(te){throw ee=!1,te}Ka(ee)&&G(ee)}else G(!0)});U===E&&(X?(t("ok",W),S()):l.value&&(l.value=!1))},$=W=>{var U;let X=!0;Yt(e.onBeforeCancel)&&(X=(U=e.onBeforeCancel())!=null?U:!1),X&&(t("cancel",W),S())},L=W=>{e.maskClosable&&$(W)},O=()=>{s.value&&t("open")},F=()=>{s.value||(p.value=!1,j(),t("close"))},{setOverflowHidden:M,resetOverflow:j}=lhe(h);qt(()=>{s.value&&(p.value=!0,M(),b())}),uo(()=>{j(),w()}),bt(s,W=>{a.value!==W&&(a.value=W),W?(t("beforeOpen"),p.value=!0,M(),b()):(t("beforeClose"),w())});const V=N(()=>{var W;const U={[e.placement]:0,...(W=e.drawerStyle)!=null?W:{}};return["right","left"].includes(e.placement)?U.width=Me(e.width)?`${e.width}px`:e.width:U.height=Me(e.height)?`${e.height}px`:e.height,U});return{prefixCls:r,style:V,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:C,handleOk:I,handleCancel:$,handleOpen:O,handleClose:F,handleMask:L,isFixed:_,teleportContainer:f}}});function sOe(e,t,n,r,o,a){const s=ke("icon-close"),l=ke("icon-hover"),c=ke("arco-button"),f=ke("client-only");return z(),Ne(f,null,{default:se(()=>[(z(),Ne(Sg,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Dr((z(),q("div",xt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[R(Xo,{name:"fade-drawer",appear:""},{default:se(()=>[e.mask?Dr((z(),q("div",{key:0,class:ne(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Eo,e.computedVisible]]):ge("v-if",!0)]),_:1}),R(Xo,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:se(()=>[Dr(A("div",{class:ne(e.prefixCls),style:Ee(e.style)},[e.header?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-header`)},[Qe(e.$slots,"header",{},()=>[e.$slots.title||e.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),e.closable?(z(),q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ne(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[R(l,null,{default:se(()=>[R(s)]),_:1})],2)):ge("v-if",!0)])],2)):ge("v-if",!0),A("div",{class:ne([`${e.prefixCls}-body`,e.bodyClass]),style:Ee(e.bodyStyle)},[Qe(e.$slots,"default")],6),e.footer?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-footer`)},[Qe(e.$slots,"footer",{},()=>[e.hideCancel?ge("v-if",!0):(z(),Ne(c,xt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:se(()=>[$e(_e(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),R(c,xt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:se(()=>[$e(_e(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):ge("v-if",!0)],6),[[Eo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Eo,e.computedVisible||e.mounted]]):ge("v-if",!0)],8,["to","disabled"]))]),_:3})}var l4=xe(oOe,[["render",sOe]]);const one=(e,t)=>{let n=TA("drawer");const r=()=>{f.component&&(f.component.props.visible=!1),Yt(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),Yt(e.onCancel)&&e.onCancel()},a=async()=>{await nn(),n&&(lc(null,n),document.body.removeChild(n)),n=null,Yt(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=R(l4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...Vs(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:ul(e.content),header:typeof e.header!="boolean"?ul(e.header):void 0,title:ul(e.title),footer:typeof e.footer!="boolean"?ul(e.footer):void 0});return(t??nj._context)&&(f.appContext=t??nj._context),lc(f,n),document.body.appendChild(n),{close:s,update:l}},nj=Object.assign(l4,{open:one,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+l4.name,l4);const r={open:(o,a=e._context)=>one(o,a)};e.config.globalProperties.$drawer=r},_context:null});function uhe(e){return e===Object(e)&&Object.keys(e).length!==0}function aOe(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 lOe(e){return e===!1?{block:"end",inline:"nearest"}:uhe(e)?e:{block:"start",inline:"nearest"}}function che(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(uhe(t)&&typeof t.behavior=="function")return t.behavior(n?GF(e,t):[]);if(n){var r=lOe(t);return aOe(GF(e,r),r.behavior)}}const sne=["success","warning","error","validating"],uOe=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||sne.indexOf(r)>sne.indexOf(t))&&(t=e[n])}return t},cOe=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},dhe=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},dOe=fe({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=ve("form"),r=ae(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,size:y,rules:b}=Ot(e),{mergedSize:w}=Us(y),C=N(()=>e.layout==="horizontal"&&e.autoLabelWidth),x=[],_=[],E=Lt({}),S=N(()=>Math.max(...Object.values(E))),I=ee=>{ee&&ee.field&&x.push(ee)},$=ee=>{ee&&ee.field&&x.splice(x.indexOf(ee),1)},L=ee=>{x.forEach(te=>{ee[te.field]&&te.setField(ee[te.field])})},O=(ee,te)=>{te&&E[te]!==ee&&(E[te]=ee)},F=ee=>{ee&&delete E[ee]},M=ee=>{const te=ee?[].concat(ee):[];x.forEach(J=>{(te.length===0||te.includes(J.field))&&J.resetField()})},j=ee=>{const te=ee?[].concat(ee):[];x.forEach(J=>{(te.length===0||te.includes(J.field))&&J.clearValidate()})},V=(ee,te)=>{const Z=(r.value||document.body).querySelector(`#${dhe(e.id,ee)}`);Z&&che(Z,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...te})},W=ee=>{const te=Ka(e.scrollToFirstError)?void 0:e.scrollToFirstError;V(ee,te)},U=ee=>{const te=[];return x.forEach(J=>{te.push(J.validate())}),Promise.all(te).then(J=>{const Z={};let ce=!1;return J.forEach(ye=>{ye&&(ce=!0,Z[ye.field]=ye)}),ce&&e.scrollToFirstError&&W(Object.keys(Z)[0]),Yt(ee)&&ee(ce?Z:void 0),ce?Z:void 0})},X=(ee,te)=>{const J=[];for(const Z of x)(En(ee)&&ee.includes(Z.field)||ee===Z.field)&&J.push(Z.validate());return Promise.all(J).then(Z=>{const ce={};let ye=!1;return Z.forEach(ie=>{ie&&(ye=!0,ce[ie.field]=ie)}),ye&&e.scrollToFirstError&&W(Object.keys(ce)[0]),Yt(te)&&te(ye?ce:void 0),ye?ce:void 0})},G=ee=>{const te=[];x.forEach(J=>{te.push(J.validate())}),Promise.all(te).then(J=>{const Z={};let ce=!1;J.forEach(ye=>{ye&&(ce=!0,Z[ye.field]=ye)}),ce?(e.scrollToFirstError&&W(Object.keys(Z)[0]),t("submitFailed",{values:a.value,errors:Z},ee)):t("submitSuccess",a.value,ee),t("submit",{values:a.value,errors:ce?Z:void 0},ee)})};return gr(Qz,Lt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,model:a,size:w,rules:b,fields:x,touchedFields:_,addField:I,removeField:$,validateField:X,setLabelWidth:O,removeLabelWidth:F,maxLabelWidth:S,autoLabelWidth:C})),{cls:N(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${w.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:G,innerValidate:U,innerValidateField:X,innerResetFields:M,innerClearValidate:j,innerSetFields:L,innerScrollToField:V}},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)}}}),fOe=["id"];function hOe(e,t,n,r,o,a){return z(),q("form",{id:e.id,ref:"formRef",class:ne(e.cls),onSubmit:t[0]||(t[0]=lo((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[Qe(e.$slots,"default")],42,fOe)}var _M=xe(dOe,[["render",hOe]]),N1=Object.prototype.toString;function jA(e){return N1.call(e)==="[object Array]"}function th(e){return N1.call(e)==="[object Object]"}function rj(e){return N1.call(e)==="[object String]"}function pOe(e){return N1.call(e)==="[object Number]"&&e===e}function vOe(e){return N1.call(e)==="[object Boolean]"}function ij(e){return N1.call(e)==="[object Function]"}function mOe(e){return th(e)&&Object.keys(e).length===0}function vm(e){return e==null||e===""}function fhe(e){return jA(e)&&!e.length}var SU=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=SU(e[n],t[n]);if(!r)return!1}return!0},kU=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=th(o)?Object.assign(Object.assign({},o),a):a||o}),n},gOe=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})(Xc),SOe=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?pOe(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 vm(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return vm(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return vm(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return vm(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return vm(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return vm(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})(Xc),kOe=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?jA(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(SU(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(fhe(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})(Xc),wOe=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?th(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(SU(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(mOe(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})(Xc),COe=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?vOe(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})(Xc),xOe=/^(([^<>()\[\]\\.,;:\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,}))$/,_Oe=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"),TOe=/^(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}$/,EOe=(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||xOe.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||_Oe.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||TOe.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})(Xc),IOe=(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})(Xc),H3=function(e,t){return new hhe(e,Object.assign({field:"value"},t))};H3.globalConfig={};H3.setGlobalConfig=function(e){H3.globalConfig=e||{}};var hhe=function(t,n){var r=H3.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:kU(r.validateMessages,n.validateMessages)});this.string=new bOe(t,o),this.number=new SOe(t,o),this.array=new kOe(t,o),this.object=new wOe(t,o),this.boolean=new COe(t,o),this.type=new EOe(t,o),this.custom=new IOe(t,o)},wU=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};wU.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:kU(this.options.validateMessages,t)})};wU.prototype.validate=function(t,n){var r=this;if(!th(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(jA(r.schema[l]))for(var c=function(p){var m=r.schema[l][p],y=m.type,b=m.message;if(!y&&!m.validator)throw"You must specify a type to field "+l+"!";var w=Object.assign(Object.assign({},r.options),{message:b,field:l});"ignoreEmptyString"in m&&(w.ignoreEmptyString=m.ignoreEmptyString),"strict"in m&&(w.strict=m.strict);var C=new hhe(t[l],w),x=C.type[y]||null;if(!x)if(m.validator){x=C.custom.validate(m.validator),Object.prototype.toString.call(x)==="[object Array]"&&x[0].then?o.push({function:x[0],_this:x[1],key:l}):x&&s(l,x);return}else x=C[y];if(Object.keys(m).forEach(function(_){m.required&&(x=x.isRequired),_!=="message"&&x[_]&&m[_]&&typeof x[_]=="object"&&(x=x[_]),x[_]&&m[_]!==void 0&&typeof x[_]=="function"&&(x=x[_](m[_]))}),x.collect(function(_){_&&s(l,_)}),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 phe=Symbol("RowContextInjectionKey"),vhe=Symbol("GridContextInjectionKey"),mhe=Symbol("GridDataCollectorInjectionKey"),AOe=fe({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}=Ot(e),s=ve("row"),l=N(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=N(()=>Array.isArray(t.value)?t.value[0]:t.value),f=N(()=>Array.isArray(t.value)?t.value[1]:0),h=eh(c,0),p=eh(f,0),m=N(()=>{const b={};if((h.value||p.value)&&!o.value){const w=-h.value/2,C=-p.value/2;w&&(b.marginLeft=`${w}px`,b.marginRight=`${w}px`),C&&(b.marginTop=`${C}px`,b.marginBottom=`${C}px`)}return b}),y=N(()=>[h.value,p.value]);return gr(phe,Lt({gutter:y,div:o})),{classNames:l,styles:m}}});function LOe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.classNames),style:Ee(e.styles)},[Qe(e.$slots,"default")],6)}var F2=xe(AOe,[["render",LOe]]);function POe(e){return N(()=>{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 z3.forEach(p=>{const m=e.value[p];Me(m)?h[p]=m:Dn(m)&&Me(m[r])&&(h[p]=m[r])}),h})}function $Oe(e){if(Io(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Me(e))return e;if(Io(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const MOe=fe({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=ve("col"),n=rn(phe,{}),r=N(()=>$Oe(e.flex)),o=N(()=>{const{div:p}=n,{span:m,offset:y,order:b,xs:w,sm:C,md:x,lg:_,xl:E,xxl:S}=e,I={[`${t}`]:!p,[`${t}-order-${b}`]:b,[`${t}-${m}`]:!p&&!w&&!C&&!x&&!_&&!E&&!S,[`${t}-offset-${y}`]:y&&y>0},$={xs:w,sm:C,md:x,lg:_,xl:E,xxl:S};return Object.keys($).forEach(L=>{const O=$[L];O&&Me(O)?I[`${t}-${L}-${O}`]=!0:O&&Dn(O)&&(I[`${t}-${L}-${O.span}`]=O.span,I[`${t}-${L}-offset-${O.offset}`]=O.offset,I[`${t}-${L}-order-${O.order}`]=O.order)}),I}),a=N(()=>r.value?t:o.value),s=N(()=>{const{gutter:p,div:m}=n,y={};if(Array.isArray(p)&&!m){const b=p[0]&&p[0]/2||0,w=p[1]&&p[1]/2||0;b&&(y.paddingLeft=`${b}px`,y.paddingRight=`${b}px`),w&&(y.paddingTop=`${w}px`,y.paddingBottom=`${w}px`)}return y}),l=N(()=>r.value?{flex:r.value}:{}),c=N(()=>Fd(e,z3)),f=POe(N(()=>({val:e.span,key:"span",...c.value}))),h=eh(f,24,!0);return{visible:N(()=>!!h.value),classNames:a,styles:N(()=>({...s.value,...l.value}))}}});function ROe(e,t,n,r,o,a){return e.visible?(z(),q("div",{key:0,class:ne(e.classNames),style:Ee(e.styles)},[Qe(e.$slots,"default")],6)):ge("v-if",!0)}var j2=xe(MOe,[["render",ROe]]);function DOe(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 OOe({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 NOe=fe({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}=Ot(e),s=eh(t,24),l=eh(r,0),c=eh(n,0),f=ve("grid"),h=N(()=>[f]),p=N(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),m=Lt(new Map),y=N(()=>{const w=[];for(const[C,x]of m.entries())w[C]=x;return w}),b=Lt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Yo(()=>{b.cols=s.value,b.colGap=l.value}),Yo(()=>{const w=OOe({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:y.value});b.overflow=w.overflow,b.displayIndexList=w.displayIndexList}),gr(vhe,b),gr(mhe,{collectItemData(w,C){m.set(w,C)},removeItemData(w){m.delete(w)}}),{classNames:h,style:p}}});function BOe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.classNames),style:Ee(e.style)},[Qe(e.$slots,"default")],6)}var TM=xe(NOe,[["render",BOe]]);const FOe=fe({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=ve("grid-item"),n=ae(),{computedIndex:r}=oU({itemRef:n,selector:`.${t}`}),o=rn(vhe,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=rn(mhe),s=N(()=>{var C;return(C=o?.displayIndexList)==null?void 0:C.includes(r.value)}),{span:l,offset:c}=Ot(e),f=eh(l,1),h=eh(c,0),p=N(()=>DOe(o.cols,{...e,span:f.value,offset:h.value})),m=N(()=>[t]),y=N(()=>{const{offset:C,span:x}=p.value,{colGap:_}=o;return C>0?{"margin-left":`calc((${`(100% - ${_*(x-1)}px) / ${x}`} * ${C}) + ${_*C}px)`}:{}}),b=N(()=>{const{suffix:C,span:x}=p.value,{cols:_}=o;return C?`${_-x+1}`:`span ${x}`}),w=N(()=>{const{span:C}=p.value;return n.value?[{"grid-column":`${b.value} / span ${C}`},y.value,!s.value||C===0?{display:"none"}:{}]:[]});return Yo(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),Fr(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:m,style:w,domRef:n,overflow:N(()=>o.overflow)}}});function jOe(e,t,n,r,o,a){return z(),q("div",{ref:"domRef",class:ne(e.classNames),style:Ee(e.style)},[Qe(e.$slots,"default",{overflow:e.overflow})],6)}var u4=xe(FOe,[["render",jOe]]);const f2=Object.assign(TM,{Row:F2,Col:j2,Item:u4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+F2.name,F2),e.component(n+j2.name,j2),e.component(n+TM.name,TM),e.component(n+u4.name,u4)}}),VOe=fe({name:"Tooltip",components:{Trigger:Ls},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=ve("tooltip"),r=ae(e.defaultPopupVisible),o=N(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=N(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=N(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=N(()=>[`${n}-popup-arrow`,e.arrowClass]),f=N(()=>{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 zOe(e,t,n,r,o,a){const s=ke("Trigger");return z(),Ne(s,{class:ne(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:se(()=>[Qe(e.$slots,"content",{},()=>[$e(_e(e.content),1)])]),default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var EM=xe(VOe,[["render",zOe]]);const uc=Object.assign(EM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+EM.name,EM)}}),UOe=fe({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=ve("icon"),r=N(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HOe=["stroke-width","stroke-linecap","stroke-linejoin"];function WOe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,HOe)}var IM=xe(UOe,[["render",WOe]]);const ghe=Object.assign(IM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IM.name,IM)}}),GOe=fe({name:"FormItemLabel",components:{ResizeObserver:qp,Tooltip:uc,IconQuestionCircle:ghe},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=ve("form-item-label"),t=rn(Qz,void 0),n=Di(),r=ae(),o=()=>{r.value&&Me(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return qt(()=>{r.value&&Me(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),uo(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function KOe(e,t,n,r,o,a){const s=ke("icon-question-circle"),l=ke("Tooltip"),c=ke("ResizeObserver");return z(),Ne(c,{onResize:e.handleResize},{default:se(()=>[(z(),Ne(la(e.component),xt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:se(()=>[e.required&&e.asteriskPosition==="start"?(z(),q("strong",{key:0,class:ne(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[A("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[A("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)):ge("v-if",!0),Qe(e.$slots,"default"),e.tooltip?(z(),Ne(l,{key:1,content:e.tooltip},{default:se(()=>[R(s,{class:ne(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):ge("v-if",!0),e.required&&e.asteriskPosition==="end"?(z(),q("strong",{key:2,class:ne(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[A("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[A("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)):ge("v-if",!0),$e(" "+_e(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var qOe=xe(GOe,[["render",KOe]]);const YOe=fe({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:ve("form-item-message")}}});function XOe(e,t,n,r,o,a){return e.error.length>0?(z(!0),q(Tt,{key:0},Kt(e.error,s=>(z(),Ne(Xo,{key:s,name:"form-blink",appear:""},{default:se(()=>[A("div",{role:"alert",class:ne([e.prefixCls])},_e(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(z(),Ne(Xo,{key:1,name:"form-blink",appear:""},{default:se(()=>[A("div",{class:ne([e.prefixCls,`${e.prefixCls}-help`])},[Qe(e.$slots,"help",{},()=>[$e(_e(e.help),1)])],2)]),_:3})):ge("v-if",!0)}var ZOe=xe(YOe,[["render",XOe]]);const JOe=fe({name:"FormItem",components:{ArcoRow:F2,ArcoCol:j2,FormItemLabel:qOe,FormItemMessage:ZOe},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=ve("form-item"),{field:n}=Ot(e),r=rn(Qz,{}),{autoLabelWidth:o,layout:a}=Ot(r),{i18nMessage:s}=no(),l=N(()=>{var J;const Z={...(J=e.labelColProps)!=null?J:r.labelColProps};return e.labelColFlex?Z.flex=e.labelColFlex:r.autoLabelWidth&&(Z.flex=`${r.maxLabelWidth}px`),Z}),c=N(()=>{var J;const Z={...(J=e.wrapperColProps)!=null?J:r.wrapperColProps};return n.value&&(Z.id=dhe(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(Z.flex="auto"),Z}),f=N(()=>{var J;return(J=e.labelColStyle)!=null?J:r.labelColStyle}),h=N(()=>{var J;return(J=e.wrapperColStyle)!=null?J:r.wrapperColStyle}),p=jm(r.model,e.field),m=Lt({}),y=Lt({}),b=N(()=>uOe(m)),w=N(()=>cOe(y)),C=ae(!1),x=N(()=>jm(r.model,e.field)),_=N(()=>{var J;return!!((J=e.disabled)!=null?J:r?.disabled)}),E=N(()=>{var J;return(J=e.validateStatus)!=null?J:b.value}),S=N(()=>E.value==="error"),I=N(()=>{var J,Z,ce;const ye=[].concat((ce=(Z=e.rules)!=null?Z:(J=r?.rules)==null?void 0:J[e.field])!=null?ce:[]),ie=ye.some(Ce=>Ce.required);return e.required&&!ie?[{required:!0}].concat(ye):ye}),$=N(()=>I.value.some(J=>J.required)),L=e.noStyle?rn(KF,void 0):void 0,O=(J,{status:Z,message:ce})=>{m[J]=Z,y[J]=ce,e.noStyle&&L?.updateValidateState(J,{status:Z,message:ce})},F=N(()=>e.feedback&&E.value?E.value:void 0),M=()=>{var J;if(C.value)return Promise.resolve();const Z=I.value;if(!n.value||Z.length===0)return b.value&&W(),Promise.resolve();const ce=n.value,ye=x.value;O(ce,{status:"",message:""});const ie=new wU({[ce]:Z.map(({...Ce})=>(!Ce.type&&!Ce.validator&&(Ce.type="string"),Ce))},{ignoreEmptyString:!0,validateMessages:(J=s.value.form)==null?void 0:J.validateMessages});return new Promise(Ce=>{ie.validate({[ce]:ye},Re=>{var be;const Fe=!!Re?.[ce];O(ce,{status:Fe?"error":"",message:(be=Re?.[ce].message)!=null?be:""});const De=Fe?{label:e.label,field:n.value,value:Re[ce].value,type:Re[ce].type,isRequiredError:!!Re[ce].requiredError,message:Re[ce].message}:void 0;Ce(De)})})},j=N(()=>[].concat(e.validateTrigger)),V=N(()=>j.value.reduce((J,Z)=>{switch(Z){case"change":return J.onChange=()=>{M()},J;case"input":return J.onInput=()=>{nn(()=>{M()})},J;case"focus":return J.onFocus=()=>{M()},J;case"blur":return J.onBlur=()=>{M()},J;default:return J}},{}));gr(KF,Lt({eventHandlers:V,size:r&&Yl(r,"size"),disabled:_,error:S,feedback:F,updateValidateState:O}));const W=()=>{n.value&&O(n.value,{status:"",message:""})},G=Lt({field:n,disabled:_,error:S,validate:M,clearValidate:W,resetField:()=>{W(),C.value=!0,r?.model&&n.value&&V3(r.model,n.value,p),nn(()=>{C.value=!1})},setField:J=>{var Z,ce;n.value&&(C.value=!0,"value"in J&&r?.model&&n.value&&V3(r.model,n.value,J.value),(J.status||J.message)&&O(n.value,{status:(Z=J.status)!=null?Z:"",message:(ce=J.message)!=null?ce:""}),nn(()=>{C.value=!1}))}});qt(()=>{var J;G.field&&((J=r.addField)==null||J.call(r,G))}),uo(()=>{var J;G.field&&((J=r.removeField)==null||J.call(r,G))});const Y=N(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:S.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),ee=N(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),te=N(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:Y,isRequired:$,isError:S,finalMessage:w,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:ee,autoLabelWidth:o,layout:a,mergedLabelStyle:f,wrapperColCls:te,mergedWrapperStyle:h}}});function QOe(e,t,n,r,o,a){var s;const l=ke("FormItemLabel"),c=ke("ArcoCol"),f=ke("FormItemMessage"),h=ke("ArcoRow");return e.noStyle?Qe(e.$slots,"default",{key:0}):(z(),Ne(h,xt({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:se(()=>[e.hideLabel?ge("v-if",!0):(z(),Ne(c,xt({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:se(()=>[R(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:se(()=>[e.$slots.label||e.label?Qe(e.$slots,"label",{key:0},()=>[$e(_e(e.label),1)]):ge("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),R(c,xt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:se(()=>[A("div",{class:ne(`${e.prefixCls}-content-wrapper`)},[A("div",{class:ne([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[Qe(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(z(),Ne(f,{key:0,error:e.finalMessage,help:e.help},Wi({_:2},[e.$slots.help?{name:"help",fn:se(()=>[Qe(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):ge("v-if",!0),e.$slots.extra||e.extra?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-extra`)},[Qe(e.$slots,"extra",{},()=>[$e(_e(e.extra),1)])],2)):ge("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var c4=xe(JOe,[["render",QOe]]);const eNe=Object.assign(_M,{Item:c4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+_M.name,_M),e.component(n+c4.name,c4)}}),tNe=fe({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=ve("icon"),n=N(()=>{const o={};return e.size&&(o.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:N(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function nNe(e,t,n,r,o,a){return z(),q("svg",{class:ne(e.cls),style:Ee(e.innerStyle),fill:"currentColor"},[Qe(e.$slots,"default")],6)}var d4=xe(tNe,[["render",nNe]]);function rNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}const ane=[],iNe=e=>{const{src:t,extraProps:n={}}=e;if(!_w&&t?.length&&!ane.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),ane.push(t),document.body.appendChild(r)}return fe({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:o}){return()=>{var a;const s=r.type?R("use",{"xlink:href":`#${r.type}`},null):(a=o.default)==null?void 0:a.call(o);return R(d4,xt(r,n),rNe(s)?s:{default:()=>[s]})}}})},yhe=Object.assign(d4,{addFromIconFontCn:iNe,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+d4.name,d4)}}),oNe=fe({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:ve("image-footer")}}}),sNe=["title"],aNe=["title"];function lNe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.prefixCls)},[e.title||e.description?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-caption`)},[e.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-caption-title`),title:e.title},_e(e.title),11,sNe)):ge("v-if",!0),e.description?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-caption-description`),title:e.description},_e(e.description),11,aNe)):ge("v-if",!0)],2)):ge("v-if",!0),e.$slots.extra?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-extra`)},[Qe(e.$slots,"extra")],2)):ge("v-if",!0)],2)}var uNe=xe(oNe,[["render",lNe]]);const cNe=fe({name:"ImagePreviewArrow",components:{IconLeft:yl,IconRight:ri},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:ve("image-preview-arrow")}}});function dNe(e,t,n,r,o,a){const s=ke("icon-left"),l=ke("icon-right");return z(),q("div",{class:ne(e.prefixCls)},[A("div",{class:ne([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[R(s)],2),A("div",{class:ne([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[R(l)],2)],2)}var fNe=xe(cNe,[["render",dNe]]);function hNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var W3=fe({name:"ImagePreviewAction",components:{Tooltip:uc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=ve("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=R("div",xt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:f=>{f.preventDefault()}},n),[R("span",{class:`${r}-content`},[l])]);return a?R(uc,{class:`${r}-tooltip`,content:a},hNe(c)?c:{default:()=>[c]}):c}}}),pNe=fe({name:"ImagePreviewToolbar",components:{RenderFunction:kh,PreviewAction:W3},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=Ot(e),r=ve("image-preview-toolbar"),o=N(()=>{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 vNe(e,t,n,r,o,a){const s=ke("RenderFunction"),l=ke("PreviewAction");return z(),q("div",{class:ne(e.prefixCls)},[(z(!0),q(Tt,null,Kt(e.resultActions,c=>(z(),Ne(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:se(()=>[R(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),Qe(e.$slots,"default")],2)}var mNe=xe(pNe,[["render",vNe]]);function bhe(e){const t=ae("beforeLoad"),n=N(()=>t.value==="beforeLoad"),r=N(()=>t.value==="loading"),o=N(()=>t.value==="error"),a=N(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function gNe(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(),w=n.value.getBoundingClientRect(),[C,x]=gNe(b,w,o.value[0],o.value[1],r.value);(C!==o.value[0]||x!==o.value[1])&&(o.value=[C,x])},h=b=>{b.preventDefault&&b.preventDefault();const w=c[0]+(b.pageX-s)/r.value,C=c[1]+(b.pageY-l)/r.value;o.value=[w,C]},p=b=>{b.preventDefault&&b.preventDefault(),a.value=!1,f(),y()},m=b=>{b.target===b.currentTarget&&(b.preventDefault&&b.preventDefault(),a.value=!0,s=b.pageX,l=b.pageY,c=[...o.value],Wr(window,"mousemove",h,!1),Wr(window,"mouseup",p,!1))};function y(){mi(window,"mousemove",h,!1),mi(window,"mouseup",p,!1)}return Yo(b=>{n.value&&Wr(n.value,"mousedown",m),b(()=>{n.value&&mi(n.value,"mousedown",m),y()})}),bt([r],()=>{nn(()=>f())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const bNe=fe({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=ve("icon"),r=N(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SNe=["stroke-width","stroke-linecap","stroke-linejoin"];function kNe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,SNe)}var AM=xe(bNe,[["render",kNe]]);const She=Object.assign(AM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AM.name,AM)}}),wNe=fe({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=ve("icon"),r=N(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 xNe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,CNe)}var LM=xe(wNe,[["render",xNe]]);const khe=Object.assign(LM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LM.name,LM)}}),_Ne=fe({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=ve("icon"),r=N(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 ENe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,TNe)}var PM=xe(_Ne,[["render",ENe]]);const zA=Object.assign(PM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PM.name,PM)}}),INe=fe({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=ve("icon"),r=N(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ANe=["stroke-width","stroke-linecap","stroke-linejoin"];function LNe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ANe)}var $M=xe(INe,[["render",LNe]]);const whe=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),PNe=fe({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=ve("icon"),r=N(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MNe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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 MM=xe(PNe,[["render",MNe]]);const Che=Object.assign(MM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MM.name,MM)}}),RNe=fe({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=ve("icon"),r=N(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DNe=["stroke-width","stroke-linecap","stroke-linejoin"];function ONe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),A("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,DNe)}var RM=xe(RNe,[["render",ONe]]);const xhe=Object.assign(RM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RM.name,RM)}});function NNe(e){const{container:t,hidden:n}=Ot(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 Yo(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function BNe(e,t){const{popupContainer:n}=Ot(t);return N(()=>(Io(n.value)?Jde(n.value):n.value)||e)}const Fc=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),_he=Fc[0],The=Fc[Fc.length-1];function FNe(e=1,t="zoomIn"){let n=Fc.indexOf(e);return n===-1&&(n=VNe(e)),t==="zoomIn"?n===Fc.length-1?e:Fc[n+1]:n===0?e:Fc[n-1]}function jNe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(The,Math.max(_he,o))}function VNe(e){let t=Fc.length-1;for(let n=0;n["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[Object,String]},inGroup:{type:Boolean,default:!1},groupArrowProps:{type:Object,default:()=>({})},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{type:Number,default:1},zoomRate:{type:Number,default:1.1}},emits:["close","update:visible"],setup(e,{emit:t}){const{t:n}=no(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:f,zoomRate:h}=Ot(e),p=ae(),m=ae(),y=ve("image-preview"),[b,w]=As(s.value,Lt({value:a})),C=N(()=>[y,{[`${y}-hide`]:!b.value}]),x=BNe(document.body,Lt({popupContainer:o})),_=N(()=>x.value===document.body),{zIndex:E}=R1("dialog",{visible:b}),S=N(()=>({..._.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:I,isLoaded:$,setLoadStatus:L}=bhe(),O=ae(0),F=ae(f.value),{translate:M,moving:j,resetTranslate:V}=yNe(Lt({wrapperEl:p,imageEl:m,visible:b,scale:F})),W=ae(!1);let U=null;const X=()=>{!W.value&&(W.value=!0),U&&clearTimeout(U),U=setTimeout(()=>{W.value=!1},1e3)};NNe(Lt({container:x,hidden:b}));function G(){O.value=0,F.value=f.value,V()}const Y=De=>c.value.includes(De),ee=De=>{switch(De.stopPropagation(),De.preventDefault(),De.key){case so.ESC:e.escToClose&&ye();break;case so.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case so.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case so.ARROW_UP:Y("zoomIn")&&Fe("zoomIn");break;case so.ARROW_DOWN:Y("zoomOut")&&Fe("zoomOut");break;case so.SPACE:Y("originalSize")&&Ce(1);break}},te=ng(De=>{if(De.preventDefault(),De.stopPropagation(),!e.wheelZoom)return;const qe=(De.deltaY||De.deltaX)>0?"zoomOut":"zoomIn",Ve=jNe(F.value,h.value,qe);Ce(Ve)});let J=!1;const Z=()=>{nn(()=>{var De;(De=p?.value)==null||De.focus()}),e.keyboard&&!J&&(J=!0,Wr(x.value,"keydown",ee))},ce=()=>{J&&(J=!1,mi(x.value,"keydown",ee))};bt([r,b],()=>{b.value?(G(),L("loading"),Z()):ce()});function ye(){b.value&&(t("close"),t("update:visible",!1),w(!1))}function ie(De){var Ge;(Ge=p?.value)==null||Ge.focus(),l.value&&De.target===De.currentTarget&&ye()}function Ce(De){F.value!==De&&(F.value=De,X())}function Re(){const De=p.value.getBoundingClientRect(),Ge=m.value.getBoundingClientRect(),qe=De.height/(Ge.height/F.value),Ve=De.width/(Ge.width/F.value),he=Math.max(qe,Ve);Ce(he)}function be(De){const qe=De==="clockwise"?(O.value+DM)%360:O.value===0?360-DM:O.value-DM;O.value=qe}function Fe(De){const Ge=FNe(F.value,De);Ce(Ge)}return uo(()=>{ce()}),{prefixCls:y,classNames:C,container:x,wrapperStyles:S,scale:F,translate:M,rotate:O,moving:j,mergedVisible:b,isLoading:I,isLoaded:$,scaleValueVisible:W,refWrapper:p,refImage:m,onWheel:te,onMaskClick:ie,onCloseClick:ye,onImgLoad(){L("loaded")},onImgError(){L("error")},actions:N(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>Is(zA),onClick:()=>Re()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>Is(Che),onClick:()=>be("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>Is(whe),onClick:()=>be("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>Is(khe),onClick:()=>Fe("zoomIn"),disabled:F.value===The},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>Is(She),onClick:()=>Fe("zoomOut"),disabled:F.value===_he},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>Is(xhe),onClick:()=>Ce(1)}])}}});const UNe=["src"];function HNe(e,t,n,r,o,a){const s=ke("IconLoading"),l=ke("PreviewToolbar"),c=ke("IconClose"),f=ke("PreviewArrow");return z(),Ne(Sg,{to:e.container,disabled:!e.renderToBody},[A("div",{class:ne(e.classNames),style:Ee(e.wrapperStyles)},[R(Xo,{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:se(()=>[Dr(A("div",{class:ne(`${e.prefixCls}-mask`)},null,2),[[Eo,e.mergedVisible]])]),_:1}),e.mergedVisible?(z(),q("div",{key:0,ref:"refWrapper",tabindex:"0",class:ne(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=lo((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[ge(" img "),A("div",{class:ne(`${e.prefixCls}-img-container`),style:Ee({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(z(),q("img",{ref:"refImage",key:e.src,src:e.src,class:ne([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Ee({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,UNe))],6),ge(" loading "),e.isLoading?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-loading`)},[R(s)],2)):ge("v-if",!0),ge(" scale value "),R(Xo,{name:"image-fade"},{default:se(()=>[e.scaleValueVisible?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-scale-value`)},_e((e.scale*100).toFixed(0))+"% ",3)):ge("v-if",!0)]),_:1}),ge(" toolbar "),e.isLoaded&&e.actionsLayout.length?(z(),Ne(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:se(()=>[Qe(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):ge("v-if",!0),ge(" close btn "),e.closable?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[R(c)],2)):ge("v-if",!0),ge(" group arrow "),e.inGroup?(z(),Ne(f,ai(xt({key:3},e.groupArrowProps)),null,16)):ge("v-if",!0)],34)):ge("v-if",!0)],6)],8,["to","disabled"])}var Ry=xe(zNe,[["render",HNe]]);function lne(e){if(Zt(e))return;if(!Me(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Me(t)?`${t}px`:void 0}const Ehe=Symbol("PreviewGroupInjectionKey");let WNe=0;const GNe=fe({name:"Image",components:{IconImageClose:$A,IconLoading:ha,ImageFooter:uNe,ImagePreview:Ry},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:r}){const{t:o}=no(),{height:a,width:s,hideFooter:l,title:c,description:f,src:h,footerPosition:p,defaultPreviewVisible:m,previewVisible:y,preview:b,previewProps:w}=Ot(e),C=rn(Ehe,void 0),x=ve("image"),_=ae(),{isLoaded:E,isError:S,isLoading:I,setLoadStatus:$}=bhe(),L=N(()=>({width:lne(s?.value),height:lne(a?.value)})),O=N(()=>e.fit?{objectFit:e.fit}:{}),F=N(()=>[`${x}`,{[`${x}-loading`]:I.value,[`${x}-loading-error`]:S.value,[`${x}-with-footer-inner`]:E&&j&&p.value==="inner",[`${x}-with-footer-outer`]:E&&j&&p.value==="outer"},t.class]),M=N(()=>[L.value,t.style]),j=N(()=>c?.value||f?.value||n.extra?Ka(l.value)?!l.value&&E.value:l.value==="never":!1),V=N(()=>Vs(t,["class","style"])),[W,U]=As(m.value,Lt({value:y})),X=N(()=>!C?.preview&&b.value);Yo(()=>{_w||!_.value||(_.value.src=h?.value,$("loading"))});const G=WNe++;Yo(Z=>{var ce,ye,ie;const Ce=(ie=C?.registerImageUrl)==null?void 0:ie.call(C,G,((ye=(ce=w?.value)==null?void 0:ce.src)!=null?ye:h?.value)||"",b.value);Z(()=>{Ce?.()})});function Y(){$("loaded")}function ee(){$("error")}function te(){b.value&&(C?.preview?C.preview(G):(r("preview-visible-change",!0),U(!0)))}function J(){r("preview-visible-change",!1),U(!1)}return{t:o,refImg:_,prefixCls:x,wrapperClassNames:F,wrapperStyles:M,showFooter:j,imgProps:V,imgStyle:L,isLoaded:E,isError:S,isLoading:I,mergedPreviewVisible:W,mergePreview:X,onImgLoaded:Y,onImgLoadError:ee,onImgClick:te,onPreviewClose:J,fitStyle:O}}}),KNe=["title","alt"];function qNe(e,t,n,r,o,a){const s=ke("IconImageClose"),l=ke("IconLoading"),c=ke("ImageFooter"),f=ke("ImagePreview");return z(),q("div",{class:ne(e.wrapperClassNames),style:Ee(e.wrapperStyles)},[A("img",xt({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,KNe),e.isLoaded?ge("v-if",!0):(z(),q("div",{key:0,class:ne(`${e.prefixCls}-overlay`)},[e.isError?Qe(e.$slots,"error",{key:0},()=>[A("div",{class:ne(`${e.prefixCls}-error`)},[A("div",{class:ne(`${e.prefixCls}-error-icon`)},[Qe(e.$slots,"error-icon",{},()=>[R(s)])],2),e.alt||e.description?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-error-alt`)},_e(e.alt||e.description),3)):ge("v-if",!0)],2)]):ge("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?Qe(e.$slots,"loader",{key:1},()=>[A("div",{class:ne([`${e.prefixCls}-loader`])},[A("div",{class:ne(`${e.prefixCls}-loader-spin`)},[R(l),A("div",{class:ne(`${e.prefixCls}-loader-spin-text`)},_e(e.t("image.loading")),3)],2)],2)]):ge("v-if",!0)],2)),e.showFooter?(z(),Ne(c,{key:1,class:ne(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},Wi({_:2},[e.$slots.extra?{name:"extra",fn:se(()=>[Qe(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):ge("v-if",!0),e.isLoaded&&e.mergePreview?(z(),Ne(f,xt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:se(()=>[Qe(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):ge("v-if",!0)],6)}var OM=xe(GNe,[["render",qNe]]),YNe=fe({name:"ImagePreviewGroup",components:{ImagePreview:Ry},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},srcList:{type:Array},current:{type:Number},defaultCurrent:{type:Number,default:0},infinite:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[String,Object]}},emits:["change","update:current","visible-change","update:visible"],setup(e,{emit:t}){const{srcList:n,visible:r,defaultVisible:o,current:a,defaultCurrent:s,infinite:l}=Ot(e),[c,f]=As(o.value,Lt({value:r})),h=M=>{M!==c.value&&(t("visible-change",M),t("update:visible",M),f(M))},p=N(()=>new Map(En(n?.value)?n?.value.map((M,j)=>[j,{url:M,canPreview:!0}]):[])),m=ae(new Map(p.value||[])),y=N(()=>Array.from(m.value.keys())),b=N(()=>y.value.length);function w(M,j,V){return p.value.has(M)||m.value.set(M,{url:j,canPreview:V}),function(){p.value.has(M)||m.value.delete(M)}}bt(p,()=>{m.value=new Map(p.value||[])});const[C,x]=As(s.value,Lt({value:a})),_=M=>{M!==C.value&&(t("change",M),t("update:current",M),x(M))},E=N(()=>y.value[C.value]),S=M=>{const j=y.value.indexOf(M);j!==C.value&&_(j)},I=N(()=>{var M;return(M=m.value.get(E.value))==null?void 0:M.url});gr(Ehe,Lt({registerImageUrl:w,preview:M=>{h(!0),S(M)}}));const $=N(()=>{const M=(V,W)=>{var U;for(let X=V;X<=W;X++){const G=y.value[X];if((U=m.value.get(G))!=null&&U.canPreview)return X}},j=M(C.value+1,b.value-1);return Zt(j)&&l.value?M(0,C.value-1):j}),L=N(()=>{const M=(V,W)=>{var U;for(let X=V;X>=W;X--){const G=y.value[X];if((U=m.value.get(G))!=null&&U.canPreview)return X}},j=M(C.value-1,0);return Zt(j)&&l.value?M(b.value-1,C.value+1):j}),O=N(()=>Zt(L.value)?void 0:()=>{!Zt(L.value)&&_(L.value)}),F=N(()=>Zt($.value)?void 0:()=>{!Zt($.value)&&_($.value)});return{mergedVisible:c,currentUrl:I,prevIndex:L,nextIndex:$,onClose(){h(!1)},groupArrowProps:Lt({onPrev:O,onNext:F})}}});function XNe(e,t,n,r,o,a){const s=ke("ImagePreview");return z(),q(Tt,null,[Qe(e.$slots,"default"),R(s,xt({...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}),Wi({_:2},[e.$slots.actions?{name:"actions",fn:se(()=>[Qe(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 V2=xe(YNe,[["render",XNe]]);const ZNe=Object.assign(OM,{Preview:Ry,PreviewGroup:V2,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+OM.name,OM),e.component(n+Ry.name,Ry),e.component(n+V2.name,V2),e.component(n+W3.name,W3)}}),Ihe=Symbol("LayoutSiderInjectionKey"),Ahe=Symbol("SiderInjectionKey");var JNe=fe({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=ae([]),n=ve("layout"),r=N(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return gr(Ihe,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function QNe(e,t,n,r,o,a){return z(),q("section",{class:ne(e.classNames)},[Qe(e.$slots,"default")],2)}var NM=xe(JNe,[["render",QNe]]);const e7e=fe({name:"LayoutHeader",setup(){return{classNames:[ve("layout-header")]}}});function t7e(e,t,n,r,o,a){return z(),q("header",{class:ne(e.classNames)},[Qe(e.$slots,"default")],2)}var f4=xe(e7e,[["render",t7e]]);const n7e=fe({name:"LayoutContent",setup(){return{classNames:[ve("layout-content")]}}});function r7e(e,t,n,r,o,a){return z(),q("main",{class:ne(e.classNames)},[Qe(e.$slots,"default")],2)}var h4=xe(n7e,[["render",r7e]]);const i7e=fe({name:"LayoutFooter",setup(){return{classNames:[ve("layout-footer")]}}});function o7e(e,t,n,r,o,a){return z(),q("footer",{class:ne(e.classNames)},[Qe(e.$slots,"default")],2)}var p4=xe(i7e,[["render",o7e]]);const s7e=fe({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=ve("icon"),r=N(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),a7e=["stroke-width","stroke-linecap","stroke-linejoin"];function l7e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,a7e)}var BM=xe(s7e,[["render",l7e]]);const Lhe=Object.assign(BM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BM.name,BM)}}),u7e=fe({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=ve("icon"),r=N(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),c7e=["stroke-width","stroke-linecap","stroke-linejoin"];function d7e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,c7e)}var FM=xe(u7e,[["render",d7e]]);const UA=Object.assign(FM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FM.name,FM)}});var f7e=fe({name:"ResizeTrigger",components:{ResizeObserver:Wc,IconDragDot:Lhe,IconDragDotVertical:UA},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=Ot(e),o=N(()=>n?.value==="horizontal");return{classNames:N(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function h7e(e,t,n,r,o,a){const s=ke("IconDragDot"),l=ke("IconDragDotVertical"),c=ke("ResizeObserver");return z(),Ne(c,{onResize:e.onResize},{default:se(()=>[A("div",{class:ne(e.classNames)},[ge(" @slot 自定义内容 "),Qe(e.$slots,"default",{},()=>[A("div",{class:ne(`${e.prefixCls}-icon-wrapper`)},[ge(" @slot 自定义 icon "),Qe(e.$slots,"icon",{},()=>[e.isHorizontal?(z(),Ne(s,{key:0,class:ne(`${e.prefixCls}-icon`)},null,8,["class"])):(z(),Ne(l,{key:1,class:ne(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var Phe=xe(f7e,[["render",h7e]]);const $he="left",Mhe="right",CU="top",xU="bottom",p7e=[$he,Mhe,CU,xU];function une(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function jM(e){return[CU,xU].indexOf(e)>-1}const v7e=fe({name:"ResizeBox",components:{ResizeTrigger:Phe},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}=Ot(e),[a,s]=As(null,Lt({value:r})),[l,c]=As(null,Lt({value:n})),f=ae(),h=Lt({}),p=ve("resizebox"),m=N(()=>[p]),y=N(()=>({...Me(a.value)?{width:`${a.value}px`}:{},...Me(l.value)?{height:`${l.value}px`}:{},...h})),b=N(()=>o.value.filter(S=>p7e.includes(S))),w={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function C(S){if(!w.moving)return;const{startPageX:I,startPageY:$,startWidth:L,startHeight:O,direction:F}=w;let M=L,j=O;const V=S.pageX-I,W=S.pageY-$;switch(F){case $he:M=L-V,s(M),t("update:width",M);break;case Mhe:M=L+V,s(M),t("update:width",M);break;case CU:j=O-W,c(j),t("update:height",j);break;case xU:j=O+W,c(j),t("update:height",j);break}t("moving",{width:M,height:j},S)}function x(S){w.moving=!1,mi(window,"mousemove",C),mi(window,"mouseup",x),mi(window,"contextmenu",x),document.body.style.cursor="default",t("movingEnd",S)}function _(S,I){var $,L;t("movingStart",I),w.moving=!0,w.startPageX=I.pageX,w.startPageY=I.pageY,w.direction=S;const{top:O,left:F,right:M,bottom:j}=w.padding;w.startWidth=une((($=f.value)==null?void 0:$.clientWidth)||0,F+M),w.startHeight=une(((L=f.value)==null?void 0:L.clientHeight)||0,O+j),Wr(window,"mousemove",C),Wr(window,"mouseup",x),Wr(window,"contextmenu",x),document.body.style.cursor=jM(S)?"row-resize":"col-resize"}function E(S,I){const{width:$,height:L}=I.contentRect,O=jM(S)?L:$;w.padding[S]=O,h[`padding-${S}`]=`${O}px`}return{prefixCls:p,classNames:m,styles:y,wrapperRef:f,onMoveStart:_,isHorizontal:jM,allowDirections:b,onTiggerResize:E}}});function m7e(e,t,n,r,o,a){const s=ke("ResizeTrigger");return z(),Ne(la(e.component),xt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:se(()=>[Qe(e.$slots,"default"),(z(!0),q(Tt,null,Kt(e.allowDirections,l=>(z(),Ne(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:ne(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},Wi({default:se(()=>[e.$slots["resize-trigger"]?Qe(e.$slots,"resize-trigger",{key:0,direction:l}):ge("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:se(()=>[Qe(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var VM=xe(v7e,[["render",m7e]]);const Rhe=Object.assign(VM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+VM.name,VM)}});function Dhe(e,t){const n=N(()=>to(e)?e.value:e);let r="";qt(()=>{r=U3.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),Fr(()=>{r&&U3.unsubscribe(r)})}const g7e=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var y7e=fe({name:"LayoutSider",components:{IconLeft:yl,IconRight:ri,ResizeBox:Rhe},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}=Ot(e),[h,p]=As(o.value,Lt({value:r})),m=N(()=>f.value?"ResizeBox":"div"),y=N(()=>a.value&&!s.value),b=ve("layout-sider"),w=N(()=>[b,{[`${b}-light`]:n.value==="light",[`${b}-has-trigger`]:y.value,[`${b}-collapsed`]:r.value}]),C=N(()=>{const{width:I,collapsedWidth:$}=e,L=h.value?$:I;return Me(L)?`${L}px`:String(L)}),x=N(()=>[`${b}-trigger`,{[`${b}-trigger-light`]:n.value==="light"}]),_=()=>{const I=!h.value;p(I),t("update:collapsed",I),t("collapse",I,"clickTrigger")};Dhe(l,I=>{const $=!I;$!==h.value&&(p($),t("update:collapsed",$),t("collapse",$,"responsive"),t("breakpoint",$))});const E=g7e("__arco_layout_sider"),S=rn(Ihe,void 0);return qt(()=>{var I;(I=S?.onSiderMount)==null||I.call(S,E)}),Fr(()=>{var I;(I=S?.onSiderUnMount)==null||I.call(S,E)}),gr(Ahe,Lt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:m,prefixCls:b,classNames:w,triggerClassNames:x,localCollapsed:h,siderWidth:C,showTrigger:y,toggleTrigger:_}}});const b7e={key:0},S7e={key:1};function k7e(e,t,n,r,o,a){const s=ke("IconLeft"),l=ke("IconRight");return z(),Ne(la(e.componentTag),xt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:se(()=>[A("div",{class:ne(`${e.prefixCls}-children`)},[Qe(e.$slots,"default")],2),e.showTrigger?(z(),q("div",{key:0,class:ne(e.triggerClassNames),style:Ee({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[Qe(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(z(),q("div",S7e,[e.localCollapsed?(z(),Ne(s,{key:0})):(z(),Ne(l,{key:1}))])):(z(),q("div",b7e,[e.localCollapsed?(z(),Ne(l,{key:1})):(z(),Ne(s,{key:0}))]))])],6)):ge("v-if",!0)]),_:3},16,["class","style"])}var v4=xe(y7e,[["render",k7e]]);const w7e=Object.assign(NM,{Header:f4,Content:h4,Footer:p4,Sider:v4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+NM.name,NM),e.component(n+f4.name,f4),e.component(n+h4.name,h4),e.component(n+p4.name,p4),e.component(n+v4.name,v4)}}),C7e=fe({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=ve("pagination-item"),r=N(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=N(()=>[n,{[`${n}-active`]:r.value}]),s=N(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function x7e(e,t,n,r,o,a){return z(),q("li",{class:ne(e.cls),style:Ee(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[Qe(e.$slots,"default",{page:e.pageNumber},()=>[$e(_e(e.pageNumber),1)])],6)}var _7e=xe(C7e,[["render",x7e]]);const Ohe=(e,{min:t,max:n})=>en?n:e,T7e=fe({name:"StepPager",components:{IconLeft:yl,IconRight:ri},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=ve("pagination-item"),r=e.type==="next",o=N(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=N(()=>Ohe(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=N(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function E7e(e,t,n,r,o,a){const s=ke("icon-right"),l=ke("icon-left");return z(),Ne(la(e.simple?"span":"li"),{class:ne(e.cls),onClick:e.handleClick},{default:se(()=>[Qe(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(z(),Ne(s,{key:0})):(z(),Ne(l,{key:1}))])]),_:3},8,["class","onClick"])}var cne=xe(T7e,[["render",E7e]]);const I7e=fe({name:"EllipsisPager",components:{IconMore:cv},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=ve("pagination-item"),r=N(()=>Ohe(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=N(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function A7e(e,t,n,r,o,a){const s=ke("icon-more");return z(),q("li",{class:ne(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[Qe(e.$slots,"default",{},()=>[R(s)])],2)}var L7e=xe(I7e,[["render",A7e]]);const P7e=fe({name:"PageJumper",components:{InputNumber:Pw},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=ve("pagination-jumper"),{t:r}=no(),o=ae(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),nn(()=>{e.simple||(o.value=void 0)})};bt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=N(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function $7e(e,t,n,r,o,a){const s=ke("input-number");return z(),q("span",{class:ne(e.cls)},[e.simple?ge("v-if",!0):(z(),q("span",{key:0,class:ne([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[Qe(e.$slots,"jumper-prepend",{},()=>[$e(_e(e.t("pagination.goto")),1)])],2)),R(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:ne(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(z(),q("span",{key:1,class:ne(`${e.prefixCls}-append`)},[Qe(e.$slots,"jumper-append")],2)):ge("v-if",!0),e.simple?(z(),q(Tt,{key:2},[A("span",{class:ne(`${e.prefixCls}-separator`)},"/",2),A("span",{class:ne(`${e.prefixCls}-total-page`)},_e(e.pages),3)],64)):ge("v-if",!0)],2)}var dne=xe(P7e,[["render",$7e]]);const M7e=fe({name:"PageOptions",components:{ArcoSelect:Bk},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=ve("pagination-options"),{t:r}=no(),o=N(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function R7e(e,t,n,r,o,a){const s=ke("arco-select");return z(),q("span",{class:ne(e.prefixCls)},[R(s,xt({"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 D7e=xe(M7e,[["render",R7e]]),zM=fe({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=ve("pagination"),{t:o}=no(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=Ot(e),{mergedSize:f}=Us(c),h=ae(e.defaultCurrent),p=ae(e.defaultPageSize),m=N(()=>{var $;return($=e.current)!=null?$:h.value}),y=N(()=>{var $;return($=e.pageSize)!=null?$:p.value}),b=N(()=>Math.ceil(e.total/y.value)),w=$=>{$!==m.value&&Me($)&&!e.disabled&&(h.value=$,t("update:current",$),t("change",$))},C=$=>{p.value=$,t("update:pageSize",$),t("pageSizeChange",$)},x=Lt({current:m,pages:b,disabled:a,style:s,activeStyle:l,onClick:w}),_=($,L={})=>$==="more"?R(L7e,xt(L,x),{default:n["page-item-ellipsis"]}):$==="previous"?R(cne,xt({type:"previous"},L,x),{default:n["page-item-step"]}):$==="next"?R(cne,xt({type:"next"},L,x),{default:n["page-item-step"]}):R(_7e,xt(L,x),{default:n["page-item"]}),E=N(()=>{const $=[];if(b.value2+e.bufferSize&&(F=!0,L=Math.min(m.value-e.bufferSize,b.value-2*e.bufferSize)),m.valuee.simple?R("span",{class:`${r}-simple`},[_("previous",{simple:!0}),R(dne,{disabled:e.disabled,current:m.value,size:f.value,pages:b.value,simple:!0,onChange:w},null),_("next",{simple:!0})]):R("ul",{class:`${r}-list`},[_("previous",{simple:!0}),E.value,e.showMore&&_("more",{key:"more",step:e.bufferSize*2+1}),_("next",{simple:!0})]);bt(y,($,L)=>{if(e.autoAdjust&&$!==L&&m.value>1){const O=L*(m.value-1)+1,F=Math.ceil(O/$);F!==m.value&&(h.value=F,t("update:current",F),t("change",F))}}),bt(b,($,L)=>{if(e.autoAdjust&&$!==L&&m.value>1&&m.value>$){const O=Math.max($,1);h.value=O,t("update:current",O),t("change",O)}});const I=N(()=>[r,`${r}-size-${f.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var $,L;return e.hideOnSinglePage&&b.value<=1?null:R("div",{class:I.value},[e.showTotal&&R("span",{class:`${r}-total`},[(L=($=n.total)==null?void 0:$.call(n,{total:e.total}))!=null?L:o("pagination.total",e.total)]),S(),e.showPageSize&&R(D7e,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:y.value,size:f.value,onChange:C,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&R(dne,{disabled:e.disabled,current:m.value,pages:b.value,size:f.value,onChange:w},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const _U=Object.assign(zM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+zM.name,zM)}}),O7e=(e,{emit:t})=>{var n,r;const o=ae(Dn(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=ae(Dn(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=N(()=>{var h;return Dn(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=N(()=>{var h;return Dn(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 fne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var UM=fe({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}=Ot(e),o=ve("list"),a=rn(fa,void 0),{componentRef:s,elementRef:l}=gy("containerRef"),c=N(()=>e.virtualListProps),{displayScrollbar:f,scrollbarProps:h}=AA(r);let p=0;const m=U=>{const{scrollTop:X,scrollHeight:G,offsetHeight:Y}=U.target,ee=Math.floor(G-(X+Y));X>p&&ee<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=X};qt(()=>{if(l.value){const{scrollTop:U,scrollHeight:X,offsetHeight:G}=l.value;X<=U+G&&t("reachBottom")}});const{current:y,pageSize:b,handlePageChange:w,handlePageSizeChange:C}=O7e(e,{emit:t}),x=U=>{if(!e.paginationProps)return U;if(e.paginationProps&&U.length>b.value){const X=(y.value-1)*b.value;return U.slice(X,X+b.value)}return U},_=U=>{let X;if(!e.gridProps)return null;const G=x(U);if(e.gridProps.span){const Y=[],ee=24/e.gridProps.span;for(let te=0;te{var Ce;return R(f2.Col,{key:`${ce}-${ie}`,class:`${o}-col`,span:(Ce=e.gridProps)==null?void 0:Ce.span},{default:()=>{var Re;return[ii(ye)?ye:(Re=n.item)==null?void 0:Re.call(n,{item:ye,index:ie})]}})}))?J:{default:()=>[J]}))}return Y}return R(f2.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},fne(X=G.map((Y,ee)=>R(f2.Col,xt({key:ee,class:`${o}-col`},Vs(e.gridProps,["gutter"])),{default:()=>{var te;return[ii(Y)?Y:(te=n.item)==null?void 0:te.call(n,{item:Y,index:ee})]}})))?X:{default:()=>[X]})},E=U=>x(U).map((G,Y)=>{var ee;return ii(G)?G:(ee=n.item)==null?void 0:ee.call(n,{item:G,index:Y})}),S=()=>{const U=n.default?Dd(n.default()):e.data;return U&&U.length>0?e.gridProps?_(U):E(U):V()},I=()=>{if(!e.paginationProps)return null;const U=Vs(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return R(_U,xt({class:`${o}-pagination`},U,{current:y.value,pageSize:b.value,onChange:w,onPageSizeChange:C}),null)},$=N(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),L=N(()=>{if(e.maxHeight)return{maxHeight:Me(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),O=N(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),F=ae(),M=()=>{var U;const X=x((U=e.data)!=null?U:[]);return X.length?R(O1,xt({ref:F,class:O.value,data:X},e.virtualListProps,{onScroll:m}),{item:({item:G,index:Y})=>{var ee;return(ee=n.item)==null?void 0:ee.call(n,{item:G,index:Y})}}):V()},j=()=>n["scroll-loading"]?R("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,V=()=>{var U,X,G,Y,ee;return n["scroll-loading"]?null:(ee=(Y=(U=n.empty)==null?void 0:U.call(n))!=null?Y:(G=a==null?void 0:(X=a.slots).empty)==null?void 0:G.call(X,{component:"list"}))!=null?ee:R(Sh,null,null)};return{virtualListRef:F,render:()=>{const U=f.value?Kc:"div";return R("div",{class:`${o}-wrapper`},[R(Gc,{class:`${o}-spin`,loading:e.loading},{default:()=>[R(U,xt({ref:s,class:$.value,style:L.value},h.value,{onScroll:m}),{default:()=>[R("div",{class:`${o}-content-wrapper`},[n.header&&R("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?R(Tt,null,[M(),j()]):R("div",{role:"list",class:O.value},[S(),j()]),n.footer&&R("div",{class:`${o}-footer`},[n.footer()])])]}),I()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),m4=fe({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=ve("list-item"),r=()=>{var o;const a=(o=t.actions)==null?void 0:o.call(t);return!a||!a.length?null:R("ul",{class:`${n}-action`},[a.map((s,l)=>R("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var o,a;return R("div",{role:"listitem",class:n},[R("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),R("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&R("div",{class:`${n}-extra`},[t.extra()])])}}});const N7e=fe({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=ve("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function B7e(e,t,n,r,o,a){return z(),q("div",{class:ne(e.prefixCls)},[e.$slots.avatar?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-avatar`)},[Qe(e.$slots,"avatar")],2)):ge("v-if",!0),e.hasContent?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),e.$slots.description||e.description?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-description`)},[Qe(e.$slots,"description",{},()=>[$e(_e(e.description),1)])],2)):ge("v-if",!0)],2)):ge("v-if",!0)],2)}var g4=xe(N7e,[["render",B7e]]);const Nhe=Object.assign(UM,{Item:Object.assign(m4,{Meta:g4}),install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+UM.name,UM),e.component(n+m4.name,m4),e.component(n+g4.name,g4)}}),F7e=["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 F7e.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},j7e=fe({name:"Textarea",components:{ResizeObserver:Wc,IconHover:Ki,IconClose:ps},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}=Ot(e),s=ve("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:f}=qi({disabled:r,error:o}),h=ae(),p=ae(),m=ae(),y=ae(),b=ae(e.defaultValue),w=N(()=>{var Te;return(Te=a.value)!=null?Te:b.value}),[C,x]=rfe(h);bt(a,Te=>{(Zt(Te)||qa(Te))&&(b.value="")});const _=N(()=>Dn(e.maxLength)&&!!e.maxLength.errorOnly),E=N(()=>Dn(e.maxLength)?e.maxLength.length:e.maxLength),S=Te=>{var Oe;return Yt(e.wordLength)?e.wordLength(Te):(Oe=Te.length)!=null?Oe:0},I=N(()=>S(w.value)),$=N(()=>c.value||!!(E.value&&_.value&&I.value>E.value)),L=ae(!1),O=ae(!1),F=N(()=>e.allowClear&&!l.value&&w.value),M=ae(!1),j=ae(""),V=()=>{C(),nn(()=>{h.value&&w.value!==h.value.value&&(h.value.value=w.value,x())})},W=(Te,Oe=!0)=>{var je,We;E.value&&!_.value&&S(Te)>E.value&&(Te=(We=(je=e.wordSlice)==null?void 0:je.call(e,Te,E.value))!=null?We:Te.slice(0,E.value)),b.value=Te,Oe&&t("update:modelValue",Te),V()};let U=w.value;const X=(Te,Oe)=>{var je,We;Te!==U&&(U=Te,t("change",Te,Oe),(We=(je=f.value)==null?void 0:je.onChange)==null||We.call(je,Oe))},G=Te=>{var Oe,je;O.value=!0,U=w.value,t("focus",Te),(je=(Oe=f.value)==null?void 0:Oe.onFocus)==null||je.call(Oe,Te)},Y=Te=>{var Oe,je;O.value=!1,t("blur",Te),(je=(Oe=f.value)==null?void 0:Oe.onBlur)==null||je.call(Oe,Te),X(w.value,Te)},ee=Te=>{var Oe,je;const{value:We}=Te.target;if(Te.type==="compositionend"){if(M.value=!1,j.value="",E.value&&!_.value&&w.value.length>=E.value&&S(We)>E.value){V();return}t("input",We,Te),W(We),(je=(Oe=f.value)==null?void 0:Oe.onInput)==null||je.call(Oe,Te)}else M.value=!0},te=Te=>{var Oe,je;const{value:We}=Te.target;if(M.value)j.value=We;else{if(E.value&&!_.value&&w.value.length>=E.value&&S(We)>E.value&&Te.inputType==="insertText"){V();return}t("input",We,Te),W(We),(je=(Oe=f.value)==null?void 0:Oe.onInput)==null||je.call(Oe,Te)}},J=Te=>{W(""),X("",Te),t("clear",Te)};bt(a,Te=>{Te!==w.value&&W(Te??"",!1)});const Z=Te=>Vs(n,Gp),ce=Te=>Fd(n,Gp),ye=ce(),ie=N(()=>{const Te={...ye,...e.textareaAttrs};return $.value&&(Te["aria-invalid"]=!0),Te}),Ce=N(()=>[`${s}-wrapper`,{[`${s}-focus`]:O.value,[`${s}-disabled`]:l.value,[`${s}-error`]:$.value,[`${s}-scroll`]:L.value}]);let Re;const be=ae(0),Fe=ae(0),De=N(()=>!Dn(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*be.value+Fe.value),Ge=N(()=>!Dn(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*be.value+Fe.value),qe=()=>{const Te=oj(Re);be.value=Number.parseInt(Te["line-height"]||0,10),Fe.value=Number.parseInt(Te["border-width"]||0,10)*2+Number.parseInt(Te["padding-top"]||0,10)+Number.parseInt(Te["padding-bottom"]||0,10),y.value=Te,nn(()=>{var Oe;const je=(Oe=m.value)==null?void 0:Oe.offsetHeight;let We=je??0,it="hidden";De.value&&WeGe.value&&(We=Ge.value,it="auto"),p.value={height:`${We}px`,resize:"none",overflow:it}})};qt(()=>{h.value&&(Re=window.getComputedStyle(h.value),e.autoSize&&qe()),de()});const Ve=()=>{e.autoSize&&m.value&&qe(),de()},he=Te=>{h.value&&Te.target!==h.value&&(Te.preventDefault(),h.value.focus())},de=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?L.value||(L.value=!0):L.value&&(L.value=!1))};return bt(w,()=>{e.autoSize&&m.value&&qe(),de()}),{prefixCls:s,wrapperCls:Ce,textareaRef:h,textareaStyle:p,mirrorRef:m,mirrorStyle:y,computedValue:w,showClearBtn:F,valueLength:I,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:ie,getWrapperAttrs:Z,getTextareaAttrs:ce,handleInput:te,handleFocus:G,handleBlur:Y,handleComposition:ee,handleClear:J,handleResize:Ve,handleMousedown:he}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),V7e=["disabled","value","placeholder"];function z7e(e,t,n,r,o,a){const s=ke("resize-observer"),l=ke("icon-close"),c=ke("icon-hover");return z(),q("div",xt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...f)=>e.handleMousedown&&e.handleMousedown(...f))}),[e.autoSize?(z(),q("div",{key:0,ref:"mirrorRef",class:ne(`${e.prefixCls}-mirror`),style:Ee(e.mirrorStyle)},_e(`${e.computedValue} `),7)):ge("v-if",!0),R(s,{onResize:e.handleResize},{default:se(()=>[A("textarea",xt({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,V7e)]),_:1},8,["onResize"]),Qe(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-word-limit`)},_e(e.valueLength)+"/"+_e(e.computedMaxLength),3)):ge("v-if",!0),e.showClearBtn?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...f)=>e.handleClear&&e.handleClear(...f))},[R(c,null,{default:se(()=>[R(l)]),_:1})],2)):ge("v-if",!0)],16)}var HM=xe(j7e,[["render",z7e]]);const Bhe=Object.assign(HM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+HM.name,HM)}}),U7e=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},H7e=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),W7e=(e,t)=>!t||!e.includes(t);function G7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var WM=fe({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=ve("mention");let a;const{mergedDisabled:s,eventHandlers:l}=qi({disabled:Yl(e,"disabled")}),{data:c,modelValue:f}=Ot(e),h=ae(),p=ae({}),m=ae(e.defaultValue),y=N(()=>{var ye;return(ye=e.modelValue)!=null?ye:m.value});bt(f,ye=>{(Zt(ye)||qa(ye))&&(m.value="")});const b=N(()=>y.value?[ig(y.value)]:[]),w=ae({measuring:!1,location:-1,prefix:"",text:""}),C=()=>{w.value={measuring:!1,location:-1,prefix:"",text:""}},x=ae(),_=N(()=>w.value.text),E=ae(!0),S=(ye,ie)=>{var Ce,Re;const be=U7e(ie.target),Fe=H7e(be,e.prefix);if(Fe.location>-1){const De=be.slice(Fe.location+Fe.prefix.length);W7e(De,e.split)?($.value=!0,w.value={measuring:!0,text:De,...Fe},t("search",De,Fe.prefix)):w.value.location>-1&&C()}else w.value.location>-1&&C();m.value=ye,t("update:modelValue",ye),t("change",ye),(Re=(Ce=l.value)==null?void 0:Ce.onChange)==null||Re.call(Ce)},I=ye=>{var ie,Ce;m.value="",t("update:modelValue",""),t("change",""),(Ce=(ie=l.value)==null?void 0:ie.onChange)==null||Ce.call(ie),t("clear",ye)},$=ae(!1),L=N(()=>$.value&&w.value.measuring&&W.value.length>0),O=()=>{X.value=oj(a)},F=ye=>{$.value=ye},M=(ye,ie)=>{var Ce,Re,be;const{value:Fe}=(Ce=V.get(ye))!=null?Ce:{},De=w.value.location,Ge=w.value.location+w.value.text.length;let qe=m.value.slice(0,De),Ve=m.value.slice(Ge+1);qe+=!qe||qe.endsWith(e.split)||qe.endsWith(` `)?"":e.split,Ve=(!Ve||Ve.startsWith(e.split)||Ve.startsWith(` `)?"":e.split)+Ve;const he=`${w.value.prefix}${Fe}`,de=`${qe}${he}${Ve}`;m.value=de,t("select",Fe),t("update:modelValue",de),t("change",de),C(),(be=(Re=l.value)==null?void 0:Re.onChange)==null||be.call(Re)},{validOptions:j,optionInfoMap:V,validOptionInfos:W,handleKeyDown:U}=iU({options:c,inputValue:_,filterOption:E,popupVisible:L,valueKeys:b,dropdownRef:h,optionRefs:p,onSelect:M,onPopupVisibleChange:F,enterToOpen:!1}),X=ae();qt(()=>{var ye;e.type==="textarea"&&((ye=x.value)!=null&&ye.textareaRef)&&(a=window.getComputedStyle(x.value.textareaRef),X.value=oj(a))});const G=ye=>{if(Yt(r.option)&&ye.value){const ie=V.get(ye.key),Ce=r.option;return()=>Ce({data:ie})}return()=>ye.label},Y=ye=>R(Bm,{ref:ie=>{ie?.$el&&(p.value[ye.key]=ie.$el)},key:ye.key,value:ye.value,disabled:ye.disabled,internal:!0},{default:G(ye)}),ee=()=>{let ye;return R(rU,{ref:h},G7e(ye=j.value.map(ie=>Y(ie)))?ye:{default:()=>[ye]})},te=ae();bt(L,ye=>{e.type==="textarea"&&ye&&nn(()=>{var ie,Ce;(ie=x.value)!=null&&ie.textareaRef&&x.value.textareaRef.scrollTop>0&&((Ce=te.value)==null||Ce.scrollTo(0,x.value.textareaRef.scrollTop))})});const J=ye=>{t("focus",ye)},Z=ye=>{t("blur",ye)};return{inputRef:x,render:()=>{var ye;return e.type==="textarea"?R("div",{class:o},[R(Wc,{onResize:O},{default:()=>[R(Bhe,xt(n,{ref:x,allowClear:e.allowClear,modelValue:y.value,disabled:s.value,onInput:S,onClear:I,onFocus:J,onBlur:Z,onKeydown:U}),null)]}),w.value.measuring&&W.value.length>0&&R("div",{ref:te,style:X.value,class:`${o}-measure`},[(ye=y.value)==null?void 0:ye.slice(0,w.value.location),R(Ls,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:L.value,clickToClose:!1,onPopupVisibleChange:F},{default:()=>[R("span",null,[$e("@")])],content:ee})])]):R(Ls,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:L.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:F},{default:()=>[R(uv,xt(n,{ref:x,allowClear:e.allowClear,modelValue:y.value,disabled:s.value,onInput:S,onClear:I,onFocus:J,onBlur:Z,onKeydown:U}),r)],content:ee})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const K7e=Object.assign(WM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+WM.name,WM)}}),TU=Symbol("MenuInjectionKey"),EU=Symbol("LevelInjectionKey"),Fhe=Symbol("DataCollectorInjectionKey"),q7e=fe({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=ve("icon"),r=N(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Y7e=["stroke-width","stroke-linecap","stroke-linejoin"];function X7e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,Y7e)}var GM=xe(q7e,[["render",X7e]]);const jhe=Object.assign(GM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GM.name,GM)}}),Z7e=fe({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=ve("icon"),r=N(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),J7e=["stroke-width","stroke-linecap","stroke-linejoin"];function Q7e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,J7e)}var KM=xe(Z7e,[["render",Q7e]]);const Vhe=Object.assign(KM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KM.name,KM)}});function IU(e){const t=N(()=>to(e)?e.value:e);gr(EU,Lt({level:t}))}function Dw(e){const{provideNextLevel:t}=e||{},n=rn(EU),r=N(()=>n?.level||1);if(t){const o=N(()=>r.value+1);IU(o)}return{level:r}}function hne(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 zhe(e=!1){return e?void 0:rn(Fhe)}function Uhe(e){const{key:t,type:n}=e,r=ae([]),o=zhe(n==="menu");return gr(Fhe,{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"&&!Zt(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"&&!Zt(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!Zt(t)?(qt(()=>{o?.collectSubMenu(t,r.value)}),Fr(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&qt(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:N(()=>hne(r.value,s=>!!s.children)),menuItemKeys:N(()=>hne(r.value,s=>!s.children))}}function e9e(e,t){const n=[],r=o=>{for(let a=0;a{f.value=b};bt(t,()=>{Zt(t.value)&&h([])});let p=[];qt(()=>{p=[...a.value];let b=[];if(r.value&&(b=c.value?a.value.slice(0,1):[...a.value]),o.value){const w=s.value.map(C=>e9e(l.value,C));w.length&&(!r.value||c.value)&&(b=c.value?w[0]:[...new Set([].concat(...w))])}b.length&&h(b)});let m=!1;bt(a,(b,w=[])=>{if(m||!t9e(b,p)){const C=y.value.filter(x=>b.includes(x));if(r.value){const x=b.filter(_=>!w.includes(_));C.push(...x)}h(c.value?C.slice(0,1):C)}m=!0});const y=N(()=>t.value||f.value);return{openKeys:y,localOpenKeys:f,setOpenKeys:h,open(b,w){let C=[];return y.value.indexOf(b)>-1?c.value&&w===1?C=[]:C=y.value.filter(x=>x!==b):c.value&&w===1?C=[b]:C=y.value.concat([b]),h(C),C}}}const r9e=fe({name:"BaseMenu",components:{IconMenuFold:jhe,IconMenuUnfold:Vhe},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:y,defaultCollapsed:b,selectedKeys:w,defaultSelectedKeys:C,openKeys:x,defaultOpenKeys:_,triggerProps:E,tooltipProps:S,autoOpenSelected:I,breakpoint:$,popupMaxHeight:L,prefixCls:O,inTrigger:F,siderCollapsed:M,isRoot:j}=Ot(e),{subMenuKeys:V,menuData:W}=Uhe({type:j.value?"menu":"popupMenu"}),[U,X]=As(C.value,Lt({value:w})),{openKeys:G,setOpenKeys:Y,open:ee}=n9e(Lt({modelValue:x,defaultValue:_,autoOpen:m,autoOpenSelected:I,selectedKeys:U,subMenuKeys:V,menuData:W,accordion:l})),[te,J]=As(b.value,Lt({value:y})),Z=N(()=>M.value||te.value||o.value==="popButton"),ce=N(()=>["horizontal","popButton"].indexOf(o.value)<0&&!F.value&&c.value),ye=(qe,Ve)=>{qe!==te.value&&(J(qe),t("update:collapsed",qe),t("collapse",qe,Ve))},ie=()=>{ye(!te.value,"clickTrigger")};Dhe($,qe=>{ye(!qe,"responsive")});const Ce=N(()=>O?.value||ve("menu")),Re=N(()=>[Ce.value,`${Ce.value}-${a?.value}`,{[`${Ce.value}-horizontal`]:o.value==="horizontal",[`${Ce.value}-vertical`]:o.value!=="horizontal",[`${Ce.value}-collapsed`]:Z.value,[`${Ce.value}-pop`]:o.value==="pop"||Z.value,[`${Ce.value}-pop-button`]:o.value==="popButton"}]),be=N(()=>{const qe=Me(p.value)?`${p.value}px`:void 0,Ve=Dn(r.value)?r.value:void 0,he=Z.value?qe:Ve?.width;return[Ve?Vs(Ve,["width"]):r.value,{width:he}]}),Fe=Nc(n,"expand-icon-down"),De=Nc(n,"expand-icon-right"),Ge=Lt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:U,openKeys:G,prefixCls:Ce,scrollConfig:f,inTrigger:F,collapsed:Z,triggerProps:E,tooltipProps:S,popupMaxHeight:L,expandIconDown:Fe,expandIconRight:De,onMenuItemClick:qe=>{X([qe]),t("update:selectedKeys",[qe]),t("menu-item-click",qe)},onSubMenuClick:(qe,Ve)=>{const he=ee(qe,Ve);Y(he),t("update:openKeys",he),t("sub-menu-click",qe,he)}});return gr(TU,Ge),IU(1),{computedPrefixCls:Ce,classNames:Re,computedStyle:be,computedCollapsed:Z,computedHasCollapseButton:ce,onCollapseBtnClick:ie}}});function i9e(e,t,n,r,o,a){const s=ke("IconMenuUnfold"),l=ke("IconMenuFold");return z(),q("div",xt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[A("div",{class:ne(`${e.computedPrefixCls}-inner`)},[Qe(e.$slots,"default")],2),e.computedHasCollapseButton?(z(),q("div",{key:0,class:ne(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[Qe(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(z(),Ne(s,{key:0})):(z(),Ne(l,{key:1}))])],2)):ge("v-if",!0)],16)}var sj=xe(r9e,[["render",i9e]]);function pne(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 xg(){return rn(TU)||{}}const o9e=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function HA(){const e=Di();return{key:N(()=>e?.vnode.key||o9e("__arco_menu"))}}const s9e=fe({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=ve("menu"),t=xg();return{prefixCls:e,levelIndent:Yl(t,"levelIndent")}}});function a9e(e,t,n,r,o,a){return e.level>1?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-indent-list`)},[(z(!0),q(Tt,null,Kt(e.level-1,s=>(z(),q("span",{key:s,class:ne(`${e.prefixCls}-indent`),style:Ee(`width: ${e.levelIndent}px`)},null,6))),128))],2)):ge("v-if",!0)}var WA=xe(s9e,[["render",a9e]]);const l9e=fe({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 u9e(e,t,n,r,o,a){return z(),Ne(Xo,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var c9e=xe(l9e,[["render",u9e]]);const d9e=fe({name:"SubMenuInline",components:{MenuIndent:WA,ExpandTransition:c9e},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=HA(),{level:n}=Dw({provideNextLevel:!0}),r=xg(),o=N(()=>r.prefixCls),a=N(()=>`${o.value}-inline`),s=N(()=>[a.value]),l=N(()=>e.isChildrenSelected),c=N(()=>(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 f9e(e,t,n,r,o,a){const s=ke("MenuIndent"),l=ke("ExpandTransition");return z(),q("div",{class:ne(e.classNames)},[A("div",{class:ne([`${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))},[R(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),q(Tt,{key:0},[A("span",{class:ne(`${e.menuPrefixCls}-icon`)},[Qe(e.$slots,"icon")],2),A("span",{class:ne(`${e.menuPrefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)],64)):Qe(e.$slots,"title",{key:1},()=>[$e(_e(e.title),1)]),A("span",{class:ne([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[Qe(e.$slots,"expand-icon-down")],2)],2),R(l,null,{default:se(()=>[Dr(A("div",{class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2),[[Eo,e.isOpen]])]),_:3})],2)}var h9e=xe(d9e,[["render",f9e]]);const p9e=fe({name:"SubMenuPop",components:{Menu:sj,Trigger:Ls,MenuIndent:WA,RenderFunction:kh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=HA(),{level:n}=Dw(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=Ot(e),s=xg(),{onSubMenuClick:l,onMenuItemClick:c}=s,f=N(()=>s.prefixCls),h=N(()=>s.mode),p=N(()=>s.selectedKeys||[]),m=N(()=>`${f.value}-pop`),y=N(()=>r.value&&p.value.includes(t.value)||o.value),b=N(()=>[`${m.value}`,`${m.value}-header`,{[`${f.value}-selected`]:y.value}]),w=N(()=>h.value==="horizontal"&&!s.inTrigger),C=ae(!1),x=I=>{C.value=I},_=ve("trigger"),E=N(()=>{var I;return[`${m.value}-trigger`,{[`${m.value}-trigger-dark`]:s.theme==="dark"},(I=s.triggerProps)==null?void 0:I.class]}),S=N(()=>Vs(s.triggerProps||{},["class"]));return{menuPrefixCls:f,mode:h,level:n,classNames:b,isSelected:y,selectedKeys:p,needPopOnBottom:w,popVisible:C,triggerPrefixCls:_,triggerClassNames:E,triggerProps:S,menuContext:s,popupMenuStyles:N(()=>{var I;const $=(I=a.value)!=null?I:s.popupMaxHeight;return Me($)?{maxHeight:`${$}px`}:$?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:I=>{c&&c(I),x(!1)},onVisibleChange:I=>{x(I)}}}});function v9e(e,t,n,r,o,a){const s=ke("MenuIndent"),l=ke("RenderFunction"),c=ke("Menu"),f=ke("Trigger");return z(),Ne(f,xt({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:se(()=>[R(c,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:Ee(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},Wi({default:se(()=>[Qe(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:se(()=>[R(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:se(()=>[R(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:se(()=>[A("div",xt({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))}),[ge(" header "),R(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),q(Tt,{key:0},[A("span",{class:ne(`${e.menuPrefixCls}-icon`)},[Qe(e.$slots,"icon")],2),A("span",{class:ne(`${e.menuPrefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)],64)):Qe(e.$slots,"title",{key:1},()=>[$e(_e(e.title),1)]),ge(" suffix "),A("span",{class:ne(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?Qe(e.$slots,"expand-icon-down",{key:0}):Qe(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(z(),q("div",{key:2,class:ne(`${e.menuPrefixCls}-selected-label`)},null,2)):ge("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var m9e=xe(p9e,[["render",v9e]]),z2=fe({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}=HA(),{level:r}=Dw(),{popup:o}=Ot(e),a=xg(),s=N(()=>{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}=Uhe({key:n.value,type:"subMenu"}),f=N(()=>{const h=a.selectedKeys||[],p=m=>{for(let y=0;y[R(dv,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[R(ri,null,null)])};return r?R(m9e,xt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):R(h9e,xt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const g9e=10;function vne(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function mne(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var y9e=fe({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${xg().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=ae(),c=ae(null),f=ae();function h(){const p=l.value,m=vne(p),y=[].slice.call(p.children);let b=0,w=0,C=0;for(let x=0;x-1,I=E.indexOf(s)>-1;if(S)continue;const $=vne(_)+mne(pne(_,"marginLeft"))+mne(pne(_,"marginRight"));if(I){C=$;continue}if(w+=$,w+C+g9e>m){c.value=b-1;return}b++}c.value=null}return qt(()=>{h(),f.value=new wA(p=>{p.forEach(h)}),l.value&&f.value.observe(l.value)}),Fr(()=>{f.value&&f.value.disconnect()}),()=>{const p=(y,b)=>{const{isMirror:w=!1,props:C={}}=b||{};return R(z2,xt({key:`__arco-menu-overflow-sub-menu${w?"-mirror":""}`,class:w?s:o},C),{title:()=>R("span",null,[$e("...")]),default:()=>y})},m=()=>{var y;const b=((y=t.default)==null?void 0:y.call(t))||[],w=lPe(b);let C=null;const x=p(null,{isMirror:!0}),_=w.map((E,S)=>{const I=Ga(E,c.value!==null&&S>c.value?{class:a}:{class:""});if(c.value!==null&&S===c.value+1){const $=w.slice(S).map(L=>Ga(L));C=p($)}return I});return[x,..._,C]};return R("div",{class:`${r}-wrap`,ref:l},[m()])}}}),qM=fe({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}=Ot(e),a=rn(Ahe,void 0),s=N(()=>a?.collapsed||!1),l=N(()=>r?.value||a?.theme||"light");return gr(TU,void 0),gr(EU,void 0),()=>R(sj,xt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>R(y9e,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),y4=fe({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=HA(),{level:r}=Dw(),o=xg(),a=ae(),s=N(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=zhe();qt(()=>{l?.collectMenuItem(n.value)}),Fr(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&che(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let f;return qt(()=>{f=setTimeout(()=>{c()},500)}),Fr(()=>{clearTimeout(f)}),bt([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,y=h==="vertical"&&n>1,b=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],w=y&&!f&&!c,C=this.$slots.icon&&this.$slots.icon(),x=[w&&R(WA,{level:n},null),C&&R("span",{class:`${l}-icon`},[C]),w||C?R("span",{class:[`${l}-item-inner`,{[`${l}-title`]:C}]},[b]):b].filter(Boolean),_=R("div",xt({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:o,[`${l}-selected`]:a,[`${l}-has-icon`]:C}]},this.$attrs,{onClick:s}),[x,a&&h==="horizontal"&&R("div",{class:`${l}-selected-label`},null)]);if(m){const E=[`${l}-item-tooltip`,p?.class];return R(uc,xt({trigger:"hover",position:"right",class:E},Vs(p||{},["class"])),{default:()=>_,content:()=>b})}return _}});const b9e=fe({name:"MenuItemGroup",components:{MenuIndent:WA},props:{title:{type:String}},setup(){const{level:e}=Dw(),t=N(()=>e.value===1?e.value+1:e.value);IU(t);const n=xg(),r=N(()=>n.prefixCls),o=N(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function S9e(e,t,n,r,o,a){const s=ke("MenuIndent");return z(),q("div",{class:ne(e.classNames)},[A("div",{class:ne(`${e.prefixCls}-group-title`)},[R(s,{level:e.level},null,8,["level"]),Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2),Qe(e.$slots,"default")],2)}var b4=xe(b9e,[["render",S9e]]);const k9e=Object.assign(qM,{Item:y4,ItemGroup:b4,SubMenu:z2,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+qM.name,qM),e.component(n+y4.name,y4),e.component(n+b4.name,b4),e.component(n+z2.name,z2)}}),w9e=fe({name:"Message",components:{AIconHover:Ki,IconInfoCircleFill:M1,IconCheckCircleFill:bh,IconExclamationCircleFill:Kd,IconCloseCircleFill:wg,IconClose:ps,IconLoading:ha},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=ve("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 qt(()=>{a()}),ma(()=>{e.resetOnUpdate&&(s(),a())}),Fr(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function C9e(e,t,n,r,o,a){const s=ke("icon-info-circle-fill"),l=ke("icon-check-circle-fill"),c=ke("icon-exclamation-circle-fill"),f=ke("icon-close-circle-fill"),h=ke("icon-loading"),p=ke("icon-close"),m=ke("a-icon-hover");return z(),q("li",{role:"alert",class:ne([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...y)=>e.handleMouseEnter&&e.handleMouseEnter(...y)),onMouseleave:t[2]||(t[2]=(...y)=>e.handleMouseLeave&&e.handleMouseLeave(...y))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ne(s,{key:0})):e.type==="success"?(z(),Ne(l,{key:1})):e.type==="warning"?(z(),Ne(c,{key:2})):e.type==="error"?(z(),Ne(f,{key:3})):e.type==="loading"?(z(),Ne(h,{key:4})):ge("v-if",!0)])],2)):ge("v-if",!0),A("span",{class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2),e.closable?(z(),q("span",{key:1,class:ne(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...y)=>e.handleClose&&e.handleClose(...y))},[R(m,null,{default:se(()=>[R(p)]),_:1})],2)):ge("v-if",!0)],34)}var x9e=xe(w9e,[["render",C9e]]);function _9e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var T9e=fe({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=ve("message-list"),{zIndex:r}=R1("message",{runOnMounted:!0});return()=>{let o;return R($1,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},_9e(o=e.messages.map(a=>{const s={default:ul(a.content),icon:ul(a.icon)};return R(x9e,{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 E9e{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=Lt({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&&(lc(null,this.container),document.body.removeChild(this.container),this.container=null,Dy[this.position]=void 0)};const{position:r="top"}=t;this.container=TA("message"),this.messageIds=new Set,this.messages=ae([]),this.position=r;const o=R(T9e,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??Ct._context)&&(o.appContext=n??Ct._context),lc(o,this.container),document.body.appendChild(this.container)}}const Dy={},Hhe=[...IA,"loading","normal"],S4=Hhe.reduce((e,t)=>(e[t]=(n,r)=>{Io(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return Dy[a]||(Dy[a]=new E9e(o,r)),Dy[a].add(o)},e),{});S4.clear=e=>{var t;e?(t=Dy[e])==null||t.clear():Object.values(Dy).forEach(n=>n?.clear())};const Ct={...S4,install:e=>{const t={clear:S4.clear};for(const n of Hhe)t[n]=(r,o=e._context)=>S4[n](r,o);e.config.globalProperties.$message=t},_context:null},I9e=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const o=ae(!1),a=ae([0,0]),s=ae([0,0]),l=ae(),c=ae([0,0]),f=ae([0,0]),h=()=>{var b,w,C;if(t.value&&e.value){const{top:x,left:_}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:S}=t.value,{top:I,left:$,width:L,height:O}=e.value.getBoundingClientRect(),F=r.value?0:(b=e.value)==null?void 0:b.offsetTop,M=$-_,j=I-x-F;(M!==((w=s.value)==null?void 0:w[0])||j!==((C=s.value)==null?void 0:C[1]))&&(s.value=[M,j]);const V=E>L?E-L:0,W=S>O?S-O-F:0;(V!==f.value[0]||W!==f.value[1])&&(f.value=[V,W]),F&&(c.value=[0,0-F])}},p=b=>{n.value&&(b.preventDefault(),o.value=!0,h(),a.value=[b.x,b.y],Wr(window,"mousemove",m),Wr(window,"mouseup",y),Wr(window,"contextmenu",y))},m=b=>{if(o.value){const w=b.x-a.value[0],C=b.y-a.value[1];let x=s.value[0]+w,_=s.value[1]+C;xf.value[0]&&(x=f.value[0]),_f.value[1]&&(_=f.value[1]),l.value=[x,_]}},y=()=>{o.value=!1,mi(window,"mousemove",m),mi(window,"mouseup",y)};return{position:l,handleMoveDown:p}};var A9e=fe({name:"Modal",components:{ClientOnly:eU,ArcoButton:po,IconHover:Ki,IconClose:ps,IconInfoCircleFill:M1,IconCheckCircleFill:bh,IconExclamationCircleFill:Kd,IconCloseCircleFill:wg},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}=Ot(e),a=ve("modal"),{t:s}=no(),l=ae(),c=ae(),f=ae(e.defaultVisible),h=N(()=>{var Ce;return(Ce=e.visible)!=null?Ce:f.value}),p=ae(!1),m=N(()=>e.okLoading||p.value),y=N(()=>e.draggable&&!e.fullscreen),{teleportContainer:b,containerRef:w}=tU({popupContainer:r,visible:h}),C=ae(h.value),x=N(()=>e.okText||s("modal.okText")),_=N(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:S}=R1("dialog",{visible:h});let I=!1;const $=Ce=>{e.escToClose&&Ce.key===so.ESC&&S()&&U(Ce)},L=()=>{e.escToClose&&!I&&(I=!0,Wr(document.documentElement,"keydown",$))},O=()=>{I=!1,mi(document.documentElement,"keydown",$)};let F=0;const{position:M,handleMoveDown:j}=I9e({wrapperRef:l,modalRef:c,draggable:y,alignCenter:o}),V=()=>{F++,p.value&&(p.value=!1),f.value=!1,t("update:visible",!1)},W=async Ce=>{const Re=F,be=await new Promise(async Fe=>{var De;if(Yt(e.onBeforeOk)){let Ge=e.onBeforeOk((qe=!0)=>Fe(qe));if((tg(Ge)||!Ka(Ge))&&(p.value=!0),tg(Ge))try{Ge=(De=await Ge)!=null?De:!0}catch(qe){throw Ge=!1,qe}Ka(Ge)&&Fe(Ge)}else Fe(!0)});Re===F&&(be?(t("ok",Ce),V()):p.value&&(p.value=!1))},U=Ce=>{var Re;let be=!0;Yt(e.onBeforeCancel)&&(be=(Re=e.onBeforeCancel())!=null?Re:!1),be&&(t("cancel",Ce),V())},X=ae(!1),G=Ce=>{Ce.target===l.value&&(X.value=!0)},Y=Ce=>{e.mask&&e.maskClosable&&X.value&&U(Ce)},ee=()=>{h.value&&(!uPe(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},te=()=>{h.value||(y.value&&(M.value=void 0),C.value=!1,Z(),t("close"))},{setOverflowHidden:J,resetOverflow:Z}=lhe(w);qt(()=>{w.value=Cd(e.popupContainer),h.value&&(J(),e.escToClose&&L())}),uo(()=>{Z(),O()}),bt(h,Ce=>{f.value!==Ce&&(f.value=Ce),Ce?(t("beforeOpen"),C.value=!0,X.value=!1,J(),L()):(t("beforeClose"),O())}),bt(n,()=>{M.value&&(M.value=void 0)});const ce=N(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!M.value}]),ye=N(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:y.value,[`${a}-fullscreen`]:e.fullscreen}]),ie=N(()=>{var Ce;const Re={...(Ce=e.modalStyle)!=null?Ce:{}};return e.width&&!e.fullscreen&&(Re.width=Me(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(Re.top=Me(e.top)?`${e.top}px`:e.top),M.value&&(Re.transform=`translate(${M.value[0]}px, ${M.value[1]}px)`),Re});return{prefixCls:a,mounted:C,computedVisible:h,containerRef:w,wrapperRef:l,mergedModalStyle:ie,okDisplayText:x,cancelDisplayText:_,zIndex:E,handleOk:W,handleCancel:U,handleMaskClick:Y,handleMaskMouseDown:G,handleOpen:ee,handleClose:te,mergedOkLoading:m,modalRef:c,wrapperCls:ce,modalCls:ye,teleportContainer:b,handleMoveDown:j}}});function L9e(e,t,n,r,o,a){const s=ke("icon-info-circle-fill"),l=ke("icon-check-circle-fill"),c=ke("icon-exclamation-circle-fill"),f=ke("icon-close-circle-fill"),h=ke("icon-close"),p=ke("icon-hover"),m=ke("arco-button"),y=ke("client-only");return z(),Ne(y,null,{default:se(()=>[(z(),Ne(Sg,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Dr((z(),q("div",xt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[R(Xo,{name:e.maskAnimationName,appear:""},{default:se(()=>[e.mask?Dr((z(),q("div",{key:0,ref:"maskRef",class:ne(`${e.prefixCls}-mask`),style:Ee(e.maskStyle)},null,6)),[[Eo,e.computedVisible]]):ge("v-if",!0)]),_:1},8,["name"]),A("div",{ref:"wrapperRef",class:ne(e.wrapperCls),onClick:t[2]||(t[2]=lo((...b)=>e.handleMaskClick&&e.handleMaskClick(...b),["self"])),onMousedown:t[3]||(t[3]=lo((...b)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...b),["self"]))},[R(Xo,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:se(()=>[Dr(A("div",{ref:"modalRef",class:ne(e.modalCls),style:Ee(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...b)=>e.handleMoveDown&&e.handleMoveDown(...b))},[e.$slots.title||e.title?(z(),q("div",{key:0,class:ne([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(z(),Ne(s,{key:0})):ge("v-if",!0),e.messageType==="success"?(z(),Ne(l,{key:1})):ge("v-if",!0),e.messageType==="warning"?(z(),Ne(c,{key:2})):ge("v-if",!0),e.messageType==="error"?(z(),Ne(f,{key:3})):ge("v-if",!0)],2)):ge("v-if",!0),Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),!e.simple&&e.closable?(z(),q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ne(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...b)=>e.handleCancel&&e.handleCancel(...b))},[R(p,null,{default:se(()=>[R(h)]),_:1})],2)):ge("v-if",!0)],34)):ge("v-if",!0),A("div",{class:ne([`${e.prefixCls}-body`,e.bodyClass]),style:Ee(e.bodyStyle)},[Qe(e.$slots,"default")],6),e.footer?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-footer`)},[Qe(e.$slots,"footer",{},()=>[e.hideCancel?ge("v-if",!0):(z(),Ne(m,xt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:se(()=>[$e(_e(e.cancelDisplayText),1)]),_:1},16,["onClick"])),R(m,xt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:se(()=>[$e(_e(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):ge("v-if",!0)],6),[[Eo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Eo,e.computedVisible||e.mounted]]):ge("v-if",!0)],8,["to","disabled"]))]),_:3})}var k4=xe(A9e,[["render",L9e]]);const YM=(e,t)=>{let n=TA("modal");const r=()=>{f.component&&(f.component.props.visible=!1),Yt(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),Yt(e.onCancel)&&e.onCancel()},a=async()=>{await nn(),n&&(lc(null,n),document.body.removeChild(n)),n=null,Yt(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=R(k4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...Vs(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:ul(e.content),title:ul(e.title),footer:typeof e.footer!="boolean"?ul(e.footer):void 0});return(t??zd._context)&&(f.appContext=t??zd._context),lc(f,n),document.body.appendChild(n),{close:s,update:l}},XM={open:YM,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return YM(n,t)},...IA.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return YM(o,r)},e),{})},zd=Object.assign(k4,{...XM,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+k4.name,k4);const r={};for(const o of Object.keys(XM))r[o]=(a,s=e._context)=>XM[o](a,s);e.config.globalProperties.$modal=r},_context:null}),P9e=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),$9e=fe({name:"Notification",components:{AIconHover:Ki,IconInfoCircleFill:M1,IconCheckCircleFill:bh,IconExclamationCircleFill:Kd,IconCloseCircleFill:wg,IconClose:ps},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=ve("notification");let r=0;const o=()=>{t.emit("close")};return qt(()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))}),ma(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(o,e.duration)))}),Fr(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function M9e(e,t,n,r,o,a){const s=ke("icon-info-circle-fill"),l=ke("icon-check-circle-fill"),c=ke("icon-exclamation-circle-fill"),f=ke("icon-close-circle-fill"),h=ke("icon-close"),p=ke("a-icon-hover");return z(),q("li",{role:"alert",class:ne([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-left`)},[A("div",{class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ne(s,{key:0})):e.type==="success"?(z(),Ne(l,{key:1})):e.type==="warning"?(z(),Ne(c,{key:2})):e.type==="error"?(z(),Ne(f,{key:3})):ge("v-if",!0)])],2)],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-right`)},[e.$slots.default?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"default")],2)):ge("v-if",!0),e.$slots.content?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"content")],2)):ge("v-if",!0),e.$slots.footer?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-footer`)},[Qe(e.$slots,"footer")],2)):ge("v-if",!0)],2),e.closable?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[Qe(e.$slots,"closeIconElement",{},()=>[R(p,null,{default:se(()=>[Qe(e.$slots,"closeIcon",{},()=>[R(h)])]),_:3})])],2)):ge("v-if",!0)],2)}var R9e=xe($9e,[["render",M9e]]);const D9e=["topLeft","topRight","bottomLeft","bottomRight"];function O9e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var N9e=fe({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>D9e.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=ve("notification-list"),r=P9e(e.position),{zIndex:o}=R1("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return R($1,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},O9e(s=e.notifications.map(l=>{const c={default:ul(l.title),content:ul(l.content),icon:ul(l.icon),footer:ul(l.footer),closeIcon:ul(l.closeIcon),closeIconElement:ul(l.closeIconElement)};return R(R9e,{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 B9e{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=Lt({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&&(lc(null,this.container),document.body.removeChild(this.container),this.container=null,Vm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=TA("notification"),this.notificationIds=new Set,this.notifications=ae([]),this.position=r;const o=R(N9e,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??aj._context)&&(o.appContext=n??aj._context),lc(o,this.container),document.body.appendChild(this.container)}}const Vm={},U2=IA.reduce((e,t)=>(e[t]=(n,r)=>{Io(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return Vm[a]||(Vm[a]=new B9e(o,r)),Vm[a].add(o)},e),{});U2.remove=e=>{e&&Object.values(Vm).forEach(t=>t?.remove(e))};U2.clear=e=>{var t;e?(t=Vm[e])==null||t.clear():Object.values(Vm).forEach(n=>n?.clear())};const aj={...U2,install:e=>{const t={clear:U2.clear};for(const n of IA)t[n]=(r,o=e._context)=>U2[n](r,o);e.config.globalProperties.$notification=t},_context:null},F9e=fe({name:"PageHeader",components:{AIconHover:Ki,IconLeft:yl},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=ve("page-header"),o=s=>{t("back",s)},a=N(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function j9e(e,t,n,r,o,a){const s=ke("icon-left"),l=ke("a-icon-hover");return z(),q("div",{class:ne(e.cls)},[A("div",{class:ne(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-breadcrumb`)},[Qe(e.$slots,"breadcrumb")],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-header`)},[A("span",{class:ne(`${e.prefixCls}-main`)},[e.showBack?(z(),Ne(l,{key:0,class:ne(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:se(()=>[Qe(e.$slots,"back-icon",{},()=>[R(s)])]),_:3},8,["class","prefix","onClick"])):ge("v-if",!0),A("span",{class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(z(),q("span",{key:1,class:ne(`${e.prefixCls}-divider`)},null,2)):ge("v-if",!0),e.$slots.subtitle||e.subtitle?(z(),q("span",{key:2,class:ne(`${e.prefixCls}-subtitle`)},[Qe(e.$slots,"subtitle",{},()=>[$e(_e(e.subtitle),1)])],2)):ge("v-if",!0)],2),e.$slots.extra?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-extra`)},[Qe(e.$slots,"extra")],2)):ge("v-if",!0)],2)],2),e.$slots.default?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2)):ge("v-if",!0)],2)}var ZM=xe(F9e,[["render",j9e]]);const V9e=Object.assign(ZM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+ZM.name,ZM)}}),z9e=fe({name:"Popconfirm",components:{ArcoButton:po,Trigger:Ls,IconInfoCircleFill:M1,IconCheckCircleFill:bh,IconExclamationCircleFill:Kd,IconCloseCircleFill:wg},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=ve("popconfirm"),{t:r}=no(),o=ae(e.defaultPopupVisible),a=N(()=>{var w;return(w=e.popupVisible)!=null?w:o.value}),s=ae(!1),l=N(()=>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=w=>{w?(o.value=w,t("update:popupVisible",w),t("popupVisibleChange",w)):f()},p=async()=>{const w=c,C=await new Promise(async x=>{var _;if(Yt(e.onBeforeOk)){let E=e.onBeforeOk((S=!0)=>x(S));if((tg(E)||!Ka(E))&&(s.value=!0),tg(E))try{E=(_=await E)!=null?_:!0}catch(S){throw E=!1,S}Ka(E)&&x(E)}else x(!0)});w===c&&(C?(t("ok"),f()):s.value&&(s.value=!1))},m=()=>{var w;let C=!0;Yt(e.onBeforeCancel)&&(C=(w=e.onBeforeCancel())!=null?w:!1),C&&(t("cancel"),f())},y=N(()=>[`${n}-popup-content`,e.contentClass]),b=N(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:y,arrowCls:b,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:m,t:r}}});function U9e(e,t,n,r,o,a){const s=ke("icon-info-circle-fill"),l=ke("icon-check-circle-fill"),c=ke("icon-exclamation-circle-fill"),f=ke("icon-close-circle-fill"),h=ke("arco-button"),p=ke("trigger");return z(),Ne(p,{class:ne(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:se(()=>[A("div",{class:ne(`${e.prefixCls}-body`)},[A("span",{class:ne(`${e.prefixCls}-icon`)},[Qe(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ne(s,{key:0})):e.type==="success"?(z(),Ne(l,{key:1})):e.type==="warning"?(z(),Ne(c,{key:2})):e.type==="error"?(z(),Ne(f,{key:3})):ge("v-if",!0)])],2),A("span",{class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"content",{},()=>[$e(_e(e.content),1)])],2)],2),A("div",{class:ne(`${e.prefixCls}-footer`)},[R(h,xt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:se(()=>[$e(_e(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),R(h,xt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:se(()=>[$e(_e(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var JM=xe(z9e,[["render",U9e]]);const H9e=Object.assign(JM,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+JM.name,JM)}}),W9e={small:3,medium:4,large:8},G9e=e=>{if(e)return Dn(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},K9e=fe({name:"ProgressLine",components:{IconExclamationCircleFill:Kd},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=ve("progress-line"),n=N(()=>e.strokeWidth!==4?e.strokeWidth:W9e[e.size]),r=N(()=>`${pl.times(e.percent,100)}%`),o=N(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=N(()=>({width:`${e.percent*100}%`,...G9e(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),q9e=["aria-valuenow"];function Y9e(e,t,n,r,o,a){const s=ke("icon-exclamation-circle-fill");return z(),q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ne(`${e.prefixCls}-wrapper`)},[A("div",{class:ne(e.prefixCls),style:Ee(e.style)},[A("div",{class:ne(`${e.prefixCls}-bar-buffer`)},null,2),A("div",{class:ne([`${e.prefixCls}-bar`]),style:Ee(e.barStyle)},null,6)],6),e.showText?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-text`)},[Qe(e.$slots,"text",{percent:e.percent},()=>[$e(_e(e.text)+" ",1),e.status==="danger"?(z(),Ne(s,{key:0})):ge("v-if",!0)])],2)):ge("v-if",!0)],10,q9e)}var X9e=xe(K9e,[["render",Y9e]]);const Z9e=fe({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=ve("icon"),r=N(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),J9e=["stroke-width","stroke-linecap","stroke-linejoin"];function Q9e(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M23 9h2v21h-2z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),A("path",{d:"M23 37h2v2h-2z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,J9e)}var QM=xe(Z9e,[["render",Q9e]]);const AU=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),eBe=fe({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=ve("icon"),r=N(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tBe=["stroke-width","stroke-linecap","stroke-linejoin"];function nBe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,tBe)}var eR=xe(eBe,[["render",nBe]]);const _g=Object.assign(eR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eR.name,eR)}});let gne=0;const rBe={mini:16,small:48,medium:64,large:80},iBe={mini:4,small:3,medium:4,large:4},oBe=fe({name:"ProgressCircle",components:{IconExclamation:AU,IconCheck:_g},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=ve("progress-circle"),n=Dn(e.color),r=N(()=>{var p;return(p=e.width)!=null?p:rBe[e.size]}),o=N(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:iBe[e.size]}),a=N(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=N(()=>(r.value-o.value)/2),l=N(()=>Math.PI*2*s.value),c=N(()=>r.value/2),f=N(()=>(gne+=1,`${t}-linear-gradient-${gne}`)),h=N(()=>`${pl.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}}}),sBe=["aria-valuenow"],aBe=["viewBox"],lBe={key:0},uBe=["id"],cBe=["offset","stop-color"],dBe=["cx","cy","r","stroke-width"],fBe=["cx","cy","r","stroke-width"];function hBe(e,t,n,r,o,a){const s=ke("icon-check"),l=ke("icon-exclamation");return z(),q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ne(`${e.prefixCls}-wrapper`),style:Ee({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(z(),Ne(s,{key:0,style:Ee({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(z(),q("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:ne(`${e.prefixCls}-svg`)},[e.isLinearGradient?(z(),q("defs",lBe,[A("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(z(!0),q(Tt,null,Kt(Object.keys(e.color),c=>(z(),q("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,cBe))),128))],8,uBe)])):ge("v-if",!0),A("circle",{class:ne(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Ee({stroke:e.trackColor})},null,14,dBe),A("circle",{class:ne(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Ee({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,fBe)],10,aBe)),e.showText&&e.size!=="mini"?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-text`)},[Qe(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(z(),Ne(l,{key:0})):e.status==="success"?(z(),Ne(s,{key:1})):(z(),q(Tt,{key:2},[$e(_e(e.text),1)],64))])],2)):ge("v-if",!0)],14,sBe)}var pBe=xe(oBe,[["render",hBe]]);const vBe=fe({name:"ProgressSteps",components:{IconExclamationCircleFill:Kd},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=ve("progress-steps"),n=N(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=N(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=N(()=>`${pl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),mBe=["aria-valuenow"];function gBe(e,t,n,r,o,a){const s=ke("icon-exclamation-circle-fill");return z(),q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ne(`${e.prefixCls}-wrapper`)},[A("div",{class:ne(e.prefixCls),style:Ee({height:`${e.mergedStrokeWidth}px`})},[(z(!0),q(Tt,null,Kt(e.stepList,(l,c)=>(z(),q("div",{key:c,class:ne([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ee({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-text`)},[Qe(e.$slots,"text",{percent:e.percent},()=>[$e(_e(e.text)+" ",1),e.status==="danger"?(z(),Ne(s,{key:0})):ge("v-if",!0)])],2)):ge("v-if",!0)],10,mBe)}var yBe=xe(vBe,[["render",gBe]]);const bBe=fe({name:"Progress",components:{ProgressLine:X9e,ProgressCircle:pBe,ProgressSteps:yBe},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=ve("progress"),{size:n}=Ot(e),r=N(()=>e.steps>0?"steps":e.type),o=N(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=Us(n);return{cls:N(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:a}}});function SBe(e,t,n,r,o,a){const s=ke("progress-steps"),l=ke("progress-line"),c=ke("progress-circle");return z(),q("div",{class:ne(e.cls)},[e.steps>0?(z(),Ne(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},Wi({_:2},[e.$slots.text?{name:"text",fn:se(f=>[Qe(e.$slots,"text",ai(Fs(f)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(z(),Ne(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},Wi({_:2},[e.$slots.text?{name:"text",fn:se(f=>[Qe(e.$slots,"text",ai(Fs(f)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(z(),Ne(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},Wi({_:2},[e.$slots.text?{name:"text",fn:se(f=>[Qe(e.$slots,"text",ai(Fs(f)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var tR=xe(bBe,[["render",SBe]]);const Whe=Object.assign(tR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+tR.name,tR)}}),kBe=fe({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=ve("icon"),r=N(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wBe=["stroke-width","stroke-linecap","stroke-linejoin"];function CBe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,wBe)}var nR=xe(kBe,[["render",CBe]]);const LU=Object.assign(nR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nR.name,nR)}}),xBe=fe({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=ve("icon"),r=N(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Be=["stroke-width","stroke-linecap","stroke-linejoin"];function TBe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,_Be)}var rR=xe(xBe,[["render",TBe]]);const lj=Object.assign(rR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rR.name,rR)}}),EBe=fe({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=ve("icon"),r=N(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IBe=["stroke-width","stroke-linecap","stroke-linejoin"];function ABe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,IBe)}var iR=xe(EBe,[["render",ABe]]);const Ghe=Object.assign(iR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iR.name,iR)}}),LBe=fe({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=ve("icon"),r=N(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 $Be(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,PBe)}var oR=xe(LBe,[["render",$Be]]);const Khe=Object.assign(oR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oR.name,oR)}});var sR=fe({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}=Ot(e),o=ve("rate"),{mergedDisabled:a,eventHandlers:s}=qi({disabled:Yl(e,"disabled")}),l=ae(e.defaultValue),c=ae(!1);bt(r,O=>{(Zt(O)||qa(O))&&(l.value=0)});const f=ae(0),h=N(()=>{var O;return(O=e.modelValue)!=null?O:l.value}),p=N(()=>{const O=e.allowHalf?pl.times(pl.round(pl.divide(h.value,.5),0),.5):Math.round(h.value);return f.value||O}),m=N(()=>a.value||e.readonly),y=N(()=>[...Array(e.grading?5:e.count)]),b=N(()=>{var O;if(Io(e.color))return y.value.map(()=>e.color);if(Dn(e.color)){const F=Object.keys(e.color).map(j=>Number(j)).sort((j,V)=>V-j);let M=(O=F.pop())!=null?O:y.value.length;return y.value.map((j,V)=>{var W;return V+1>M&&(M=(W=F.pop())!=null?W:M),e.color[String(M)]})}}),w=()=>{f.value&&(f.value=0,t("hoverChange",0))},C=(O,F)=>{const M=F&&e.allowHalf?O+.5:O+1;M!==f.value&&(f.value=M,t("hoverChange",M))},x=(O,F)=>{var M,j,V,W;const U=F&&e.allowHalf?O+.5:O+1;c.value=!0,U!==h.value?(l.value=U,t("update:modelValue",U),t("change",U),(j=(M=s.value)==null?void 0:M.onChange)==null||j.call(M)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(W=(V=s.value)==null?void 0:V.onChange)==null||W.call(V))},_=O=>{c.value&&O+1>=h.value-1&&(c.value=!1)},E=(O,F)=>O>F?R(lj,null,null):F<=2?R(Khe,null,null):F<=3?R(lj,null,null):R(Ghe,null,null),S=(O,F=!1)=>({role:"radio","aria-checked":O+(F?.5:1)<=h.value,"aria-setsize":y.value.length,"aria-posinset":O+(F?.5:1)}),I=O=>e.grading?E(O,p.value):n.character?n.character({index:O}):R(LU,null,null),$=O=>{const F=m.value?{}:{onMouseenter:()=>C(O,!0),onClick:()=>x(O,!0)},M=m.value?{}:{onMouseenter:()=>C(O,!1),onClick:()=>x(O,!1)},j=c.value?{animationDelay:`${50*O}ms`}:void 0,V=Math.ceil(p.value)-1,W=b.value&&e.allowHalf&&O+.5===p.value?{color:b.value[V]}:void 0,U=b.value&&O+1<=p.value?{color:b.value[V]}:void 0,X=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&O+.5===p.value,[`${o}-character-full`]:O+1<=p.value,[`${o}-character-scale`]:c.value&&O+1_(O)}),[R("div",xt({class:`${o}-character-left`,style:W},F,e.allowHalf?S(O,!0):void 0),[I(O)]),R("div",xt({class:`${o}-character-right`,style:U},M,e.allowHalf?S(O):void 0),[I(O)])])},L=N(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>R("div",{class:L.value,onMouseleave:w},[y.value.map((O,F)=>$(F))])}});const MBe=Object.assign(sR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+sR.name,sR)}}),RBe=fe({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=ve("icon"),r=N(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 OBe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M25 39h-2V18h2z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),A("path",{d:"M25 11h-2V9h2z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,DBe)}var aR=xe(RBe,[["render",OBe]]);const qhe=Object.assign(aR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aR.name,aR)}});var NBe=fe({name:"ResultForbidden",render(){return R("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[R("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[R("g",null,[R("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[R("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),R("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[R("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[R("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),R("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),R("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[R("g",{transform:"matrix(1,0,0,1,-6,-6)"},[R("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)])]),R("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[R("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),R("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),R("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[R("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),R("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),R("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[R("g",{transform:"matrix(1,0,0,1,-6,-6)"},[R("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)])]),R("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[R("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),R("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[R("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),R("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[R("g",null,[R("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[R("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),R("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),R("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[R("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),R("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),R("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[R("g",null,[R("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[R("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),R("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),R("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[R("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),R("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),R("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[R("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),R("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),R("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),R("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),R("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),R("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[R("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),R("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),R("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),R("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),R("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[R("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),R("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[R("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[R("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)]),R("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[R("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)]),R("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[R("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)]),R("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[R("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)]),R("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[R("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)]),R("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[R("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),R("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[R("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)])]),R("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[R("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),R("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[R("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),R("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[R("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),R("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),R("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[R("g",{transform:"matrix(1,0,0,1,-6,-6)"},[R("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)])]),R("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[R("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),R("defs",null,[R("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)"},[R("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),R("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),BBe=fe({name:"ResultNotFound",render(){return R("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[R("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[R("g",null,[R("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[R("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),R("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[R("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),R("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[R("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),R("g",{transform:"matrix(1,0,0,1,275,-15)"},[R("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),R("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[R("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),R("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[R("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),R("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[R("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),R("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[R("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),R("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[R("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),R("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[R("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),R("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[R("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),R("g",null,[R("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[R("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)]),R("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[R("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)]),R("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[R("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[R("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)]),R("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[R("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)]),R("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),R("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[R("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[R("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)]),R("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[R("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)]),R("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),R("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[R("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[R("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)]),R("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[R("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)]),R("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),R("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),R("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[R("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),R("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),R("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",null,[R("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),R("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[R("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)]),R("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[R("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)]),R("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[R("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),R("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[R("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),R("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[R("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),R("g",null,[R("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[R("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)]),R("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[R("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[R("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),R("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[R("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[$e("?")])])])])])])])])}}),FBe=fe({name:"ResultServerError",render(){return R("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[R("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[R("g",null,[R("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[R("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),R("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[R("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)]),R("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[R("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)]),R("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[R("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)]),R("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[R("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)]),R("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[R("clipPath",{id:"_clip1"},[R("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)]),R("g",{"clip-path":"url(#_clip1)"},[R("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[R("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)])])]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[R("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)]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[R("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)]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[R("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)]),R("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[R("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[R("clipPath",{id:"_clip3"},[R("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)]),R("g",{"clip-path":"url(#_clip3)"},[R("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[R("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)])])]),R("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[R("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)]),R("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[R("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)]),R("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[R("clipPath",{id:"_clip5"},[R("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)]),R("g",{"clip-path":"url(#_clip5)"},[R("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[R("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)])])]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[R("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)]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[R("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)]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[R("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)]),R("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[R("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[R("clipPath",{id:"_clip6"},[R("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)]),R("g",{"clip-path":"url(#_clip6)"},[R("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[R("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)])])]),R("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[R("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)]),R("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[R("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)]),R("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[R("clipPath",{id:"_clip8"},[R("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)]),R("g",{"clip-path":"url(#_clip8)"},[R("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[R("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)])])]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[R("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)]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[R("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)]),R("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[R("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)]),R("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[R("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[R("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),R("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[R("clipPath",{id:"_clip9"},[R("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)]),R("g",{"clip-path":"url(#_clip9)"},[R("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[R("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)])])]),R("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[R("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)]),R("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[R("clipPath",{id:"_clip12"},[R("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)]),R("g",{"clip-path":"url(#_clip12)"},[R("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[R("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)])])]),R("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[R("clipPath",{id:"_clip14"},[R("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)]),R("g",{"clip-path":"url(#_clip14)"},[R("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[R("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)])])]),R("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[R("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)]),R("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[R("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)]),R("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[R("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;'},[$e("!")])])])]),R("defs",null,[R("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),R("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),R("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),R("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),R("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)"},[R("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),R("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),R("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),R("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 jBe=["info","success","warning","error","403","404","500",null],VBe=fe({name:"Result",components:{IconInfo:qhe,IconCheck:_g,IconExclamation:AU,IconClose:ps,ResultForbidden:NBe,ResultNotFound:BBe,ResultServerError:FBe},props:{status:{type:String,default:"info",validator:e=>jBe.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:ve("result")}}});function zBe(e,t,n,r,o,a){const s=ke("icon-info"),l=ke("icon-check"),c=ke("icon-exclamation"),f=ke("icon-close"),h=ke("result-forbidden"),p=ke("result-not-found"),m=ke("result-server-error");return z(),q("div",{class:ne(e.prefixCls)},[A("div",{class:ne([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[A("div",{class:ne(`${e.prefixCls}-icon-tip`)},[Qe(e.$slots,"icon",{},()=>[e.status==="info"?(z(),Ne(s,{key:0})):e.status==="success"?(z(),Ne(l,{key:1})):e.status==="warning"?(z(),Ne(c,{key:2})):e.status==="error"?(z(),Ne(f,{key:3})):e.status==="403"?(z(),Ne(h,{key:4})):e.status==="404"?(z(),Ne(p,{key:5})):e.status==="500"?(z(),Ne(m,{key:6})):ge("v-if",!0)])],2)],2),e.title||e.$slots.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),e.subtitle||e.$slots.subtitle?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-subtitle`)},[Qe(e.$slots,"subtitle",{},()=>[$e(_e(e.subtitle),1)])],2)):ge("v-if",!0),e.$slots.extra?(z(),q("div",{key:2,class:ne(`${e.prefixCls}-extra`)},[Qe(e.$slots,"extra")],2)):ge("v-if",!0),e.$slots.default?(z(),q("div",{key:3,class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2)):ge("v-if",!0)],2)}var lR=xe(VBe,[["render",zBe]]);const UBe=Object.assign(lR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+lR.name,lR)}}),HBe=fe({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=ve("skeleton"),n=N(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function WBe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.cls)},[e.loading?Qe(e.$slots,"default",{key:0}):Qe(e.$slots,"content",{key:1})],2)}var uR=xe(HBe,[["render",WBe]]);const GBe=fe({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=ve("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function KBe(e,t,n,r,o,a){return z(!0),q(Tt,null,Kt(e.lines,(s,l)=>(z(),q("ul",{key:l,class:ne(e.prefixCls)},[A("li",{class:ne(`${e.prefixCls}-row`),style:Ee(s)},null,6)],2))),128)}var w4=xe(GBe,[["render",KBe]]);const qBe=fe({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=ve("skeleton-shape"),n=N(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function YBe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.cls)},null,2)}var C4=xe(qBe,[["render",YBe]]);const XBe=Object.assign(uR,{Line:w4,Shape:C4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+uR.name,uR),e.component(n+w4.name,w4),e.component(n+C4.name,C4)}}),ZBe=fe({name:"SliderButton",components:{Tooltip:uc},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=ve("slider-btn"),r=ae(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,Wr(window,"mousemove",a),Wr(window,"touchmove",a),Wr(window,"mouseup",s),Wr(window,"contextmenu",s),Wr(window,"touchend",s),t("movestart"))},a=p=>{let m,y;p.type.startsWith("touch")?(y=p.touches[0].clientY,m=p.touches[0].clientX):(y=p.clientY,m=p.clientX),t("moving",m,y)},s=()=>{r.value=!1,mi(window,"mousemove",a),mi(window,"mouseup",s),mi(window,"touchend",s),t("moveend")},l=N(()=>[n]),c=N(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),f=N(()=>{var p,m;return(m=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?m:`${e.value}`}),h=N(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:f,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),JBe=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function QBe(e,t,n,r,o,a){const s=ke("tooltip");return z(),Ne(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:se(()=>[A("div",xt(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]=lo(()=>{},["prevent"])),onClick:t[3]||(t[3]=lo(()=>{},["stop"]))}),null,16,JBe)]),_:1},8,["popup-visible","position","content"])}var eFe=xe(ZBe,[["render",QBe]]);const Ep=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${pl.round(r*100,2)}%`},GA=(e,t)=>t==="vertical"?{bottom:e}:{left:e},tFe=fe({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:ve("slider"),getStyle:r=>GA(Ep(r,[e.min,e.max]),e.direction)}}});function nFe(e,t,n,r,o,a){return z(),q("div",{class:ne(`${e.prefixCls}-dots`)},[(z(!0),q(Tt,null,Kt(e.data,(s,l)=>(z(),q("div",{key:l,class:ne(`${e.prefixCls}-dot-wrapper`),style:Ee(e.getStyle(s.key))},[A("div",{class:ne([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var rFe=xe(tFe,[["render",nFe]]);const iFe=fe({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:ve("slider"),getStyle:r=>GA(Ep(r,[e.min,e.max]),e.direction)}}});function oFe(e,t,n,r,o,a){return z(),q("div",{class:ne(`${e.prefixCls}-marks`)},[(z(!0),q(Tt,null,Kt(e.data,(s,l)=>(z(),q("div",{key:l,"aria-hidden":"true",class:ne(`${e.prefixCls}-mark`),style:Ee(e.getStyle(s.key))},_e(s.content),7))),128))],2)}var sFe=xe(iFe,[["render",oFe]]);const aFe=fe({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=ve("slider"),n=N(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=pl.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=>GA(Ep(o,[e.min,e.max]),e.direction)}}});function lFe(e,t,n,r,o,a){return z(),q("div",{class:ne(`${e.prefixCls}-ticks`)},[(z(!0),q(Tt,null,Kt(e.steps,(s,l)=>(z(),q("div",{key:l,class:ne([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ee(e.getStyle(s.key))},null,6))),128))],2)}var uFe=xe(aFe,[["render",lFe]]);const cFe=fe({name:"SliderInput",components:{InputNumber:Pw},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:ve("slider")}}});function dFe(e,t,n,r,o,a){const s=ke("input-number");return z(),q("div",{class:ne(`${e.prefixCls}-input`)},[e.range?(z(),q(Tt,{key:0},[R(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"]),A("div",{class:ne(`${e.prefixCls}-input-hyphens`)},null,2)],64)):ge("v-if",!0),R(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 fFe=xe(cFe,[["render",dFe]]);const hFe=fe({name:"Slider",components:{SliderButton:eFe,SliderDots:rFe,SliderMarks:sFe,SliderTicks:uFe,SliderInput:fFe},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}=Ot(e),r=ve("slider"),{mergedDisabled:o,eventHandlers:a}=qi({disabled:Yl(e,"disabled")}),s=ae(null),l=ae(),c=e.modelValue?e.modelValue:e.defaultValue,f=ae(En(c)?c[0]:0),h=ae(En(c)?c[1]:c);bt(n,j=>{var V,W,U,X,G;En(j)?(f.value=(W=(V=j[0])!=null?V:e.min)!=null?W:0,h.value=(X=(U=j[1])!=null?U:e.min)!=null?X:0):h.value=(G=j??e.min)!=null?G:0});const p=()=>{var j,V;e.range?(t("update:modelValue",[f.value,h.value]),t("change",[f.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(V=(j=a.value)==null?void 0:j.onChange)==null||V.call(j)},m=j=>{j=j??e.min,f.value=j,p()},y=j=>{j=j??e.min,h.value=j,p()},b=N(()=>{var j,V,W;return e.range?En(e.modelValue)?e.modelValue:[f.value,(j=e.modelValue)!=null?j:h.value]:Zt(e.modelValue)?[f.value,h.value]:En(e.modelValue)?[(V=e.min)!=null?V:0,e.modelValue[1]]:[(W=e.min)!=null?W:0,e.modelValue]}),w=N(()=>Object.keys(e.marks||{}).map(j=>{var V;const W=Number(j);return{key:W,content:(V=e.marks)==null?void 0:V[W],isActive:W>=b.value[0]&&W<=b.value[1]}})),C=j=>GA(Ep(j,[e.min,e.max]),e.direction),x=ae(!1),_=()=>{x.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(j,V){if(!l.value)return 0;const{left:W,top:U,width:X,height:G}=l.value,Y=e.direction==="horizontal"?X:G,ee=Y*e.step/(e.max-e.min);let te=e.direction==="horizontal"?j-W:U+G-V;te<0&&(te=0),te>Y&&(te=Y);const J=Math.round(te/ee);return pl.plus(e.min,pl.times(J,e.step))}const S=(j,V)=>{h.value=E(j,V),p()},I=j=>{if(o.value)return;const{clientX:V,clientY:W}=j;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(V,W),p()};function $([j,V]){return j>V&&([j,V]=[V,j]),e.direction==="vertical"?{bottom:Ep(j,[e.min,e.max]),top:Ep(e.max+e.min-V,[e.min,e.max])}:{left:Ep(j,[e.min,e.max]),right:Ep(e.max+e.min-V,[e.min,e.max])}}const L=(j,V)=>{f.value=E(j,V),p()},O=()=>{x.value=!1},F=N(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),M=N(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:F,trackCls:M,trackRef:s,computedValue:b,mergedDisabled:o,markList:w,getBtnStyle:C,getBarStyle:$,handleClick:I,handleMoveStart:_,handleEndMoving:S,handleMoveEnd:O,handleStartMoving:L,handleStartChange:m,handleEndChange:y}}});function pFe(e,t,n,r,o,a){const s=ke("slider-ticks"),l=ke("slider-dots"),c=ke("slider-marks"),f=ke("slider-button"),h=ke("slider-input");return z(),q("div",{class:ne(e.cls)},[A("div",{ref:"trackRef",class:ne(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[A("div",{class:ne(`${e.prefixCls}-bar`),style:Ee(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(z(),Ne(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"])):ge("v-if",!0),e.marks?(z(),Ne(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):ge("v-if",!0),e.marks?(z(),Ne(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):ge("v-if",!0),e.range?(z(),Ne(f,{key:3,style:Ee(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"])):ge("v-if",!0),R(f,{style:Ee(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(z(),Ne(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"])):ge("v-if",!0)],2)}var cR=xe(hFe,[["render",pFe]]);const vFe=Object.assign(cR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+cR.name,cR)}});var dR=fe({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=ve("space"),r=N(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=N(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(Me(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(En(e.size)?e.size[0]:e.size)}px`,h=`${a(En(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=Dd((l=t.default)==null?void 0:l.call(t),!0).filter(f=>f.type!==Fo);return R("div",{class:o.value},[c.map((f,h)=>{var p,m;const y=t.split&&h>0;return R(Tt,{key:(p=f.key)!=null?p:`item-${h}`},[y&&R("div",{class:`${n}-item-split`,style:s(!1)},[(m=t.split)==null?void 0:m.call(t)]),R("div",{class:`${n}-item`,style:s(h===c.length-1)},[f])])})])}}});const mFe=Object.assign(dR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+dR.name,dR)}});function Yhe(e){const t=Io(e)?parseFloat(e):e;let n="";return Me(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function tT({size:e,defaultSize:t,containerSize:n}){const r=Yhe(e??t);return r.isPx?r.size:r.size*n}function gFe(e,t){return parseFloat(e)/parseFloat(t)}const yFe=fe({name:"Split",components:{ResizeTrigger:Phe},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}=Ot(e),l=ae(0),c=ae(),f=ve("split"),[h,p]=As(o.value,Lt({value:r})),m=N(()=>Yhe(h.value)),y=N(()=>n.value==="horizontal"),b=N(()=>[f,{[`${f}-horizontal`]:y.value,[`${f}-vertical`]:!y.value}]),w=N(()=>{const{size:F,unit:M,isPx:j}=m.value;return{flex:`0 0 calc(${j?F:F*100}${M} - ${l.value/2}px)`}}),C={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function x(){const F=()=>{var M,j;return y.value?(M=c.value)==null?void 0:M.clientWidth:((j=c.value)==null?void 0:j.clientHeight)||0};return(!c.value||F())&&await nn(),F()}function _(F,M){if(!M)return;const j=m.value.isPx?`${F}px`:gFe(F,M);h.value!==j&&(p(j),t("update:size",j))}function E(F,M){const j=tT({size:F,containerSize:M}),V=tT({size:a.value,defaultSize:"0px",containerSize:M}),W=tT({size:s.value,defaultSize:`${M}px`,containerSize:M});let U=j;return U=Math.max(U,V),U=Math.min(U,W),U}function S({startContainerSize:F,startSize:M,startPosition:j,endPosition:V}){const W=tT({size:M,containerSize:F});return E(`${W+(V-j)}px`,F)}function I(F){t("moving",F);const M=y.value?S({startContainerSize:C.startContainerSize,startSize:C.startSize,startPosition:C.startPageX,endPosition:F.pageX}):S({startContainerSize:C.startContainerSize,startSize:C.startSize,startPosition:C.startPageY,endPosition:F.pageY});_(M,C.startContainerSize)}function $(F){mi(window,"mousemove",I),mi(window,"mouseup",$),mi(window,"contextmenu",$),document.body.style.cursor="default",t("moveEnd",F)}async function L(F){t("moveStart",F),C.startPageX=F.pageX,C.startPageY=F.pageY,C.startContainerSize=await x(),C.startSize=h.value,Wr(window,"mousemove",I),Wr(window,"mouseup",$),Wr(window,"contextmenu",$),document.body.style.cursor=y.value?"col-resize":"row-resize"}function O(F){const{width:M,height:j}=F.contentRect;l.value=y.value?M:j}return qt(async()=>{const F=await x(),M=E(h.value,F);_(M,F)}),{prefixCls:f,classNames:b,isHorizontal:y,wrapperRef:c,onMoveStart:L,onTriggerResize:O,firstPaneStyles:w}}});function bFe(e,t,n,r,o,a){const s=ke("ResizeTrigger");return z(),Ne(la(e.component),{ref:"wrapperRef",class:ne(e.classNames)},{default:se(()=>[A("div",{class:ne([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ee(e.firstPaneStyles)},[Qe(e.$slots,"first")],6),e.disabled?ge("v-if",!0):(z(),Ne(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:se(()=>[Qe(e.$slots,"resize-trigger")]),icon:se(()=>[Qe(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),A("div",{class:ne([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[Qe(e.$slots,"second")],2)]),_:3},8,["class"])}var fR=xe(yFe,[["render",bFe]]);const SFe=Object.assign(fR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+fR.name,fR)}}),kFe=fe({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=ve("statistic"),r=N(()=>Me(e.value)?e.value:0),o=ae((t=e.valueFrom)!=null?t:e.value),a=ae(null),{value:s}=Ot(e),l=N(()=>Zt(e.value)),c=(h=(m=>(m=e.valueFrom)!=null?m:0)(),p=r.value)=>{var m;h!==p&&(a.value=new Cg({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:y=>{o.value=y.value},onFinish:()=>{o.value=p}}),(m=a.value)==null||m.start())},f=N(()=>{let h=o.value;if(Me(h)){Me(e.precision)&&(h=pl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),m=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],y=p[1];return{isNumber:!0,integer:m,decimal:y}}return e.format&&(h=Na(h).format(e.format)),{isNumber:!1,value:h}});return qt(()=>{e.animation&&e.start&&c()}),bt(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),bt(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}}}),wFe={key:0};function CFe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.prefixCls)},[e.title||e.$slots.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-content`)},[A("div",{class:ne(`${e.prefixCls}-value`),style:Ee(e.valueStyle)},[e.showPlaceholder?(z(),q("span",wFe,_e(e.placeholder),1)):(z(),q(Tt,{key:1},[e.$slots.prefix?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-prefix`)},[Qe(e.$slots,"prefix")],2)):ge("v-if",!0),e.formatValue.isNumber?(z(),q(Tt,{key:1},[A("span",{class:ne(`${e.prefixCls}-value-integer`)},_e(e.formatValue.integer),3),e.formatValue.decimal?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-value-decimal`)}," ."+_e(e.formatValue.decimal),3)):ge("v-if",!0)],64)):(z(),q(Tt,{key:2},[$e(_e(e.formatValue.value),1)],64)),e.$slots.suffix?(z(),q("span",{key:3,class:ne(`${e.prefixCls}-suffix`)},[Qe(e.$slots,"suffix")],2)):ge("v-if",!0)],64))],6),e.extra||e.$slots.extra?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-extra`)},[Qe(e.$slots,"extra",{},()=>[$e(_e(e.extra),1)])],2)):ge("v-if",!0)],2)],2)}var hR=xe(kFe,[["render",CFe]]);const xFe=[["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 pR(e,t){let n=e;return xFe.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 _Fe=fe({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=ve("statistic"),{start:r,value:o,now:a,format:s}=Ot(e),l=ae(pR(Math.max(Na(e.value).diff(Na(e.now),"millisecond"),0),e.format));bt([o,a,s],()=>{const p=pR(Math.max(Na(e.value).diff(Na(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=ae(0),f=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{Na(e.value).valueOf(){const p=Na(e.value).diff(Na(),"millisecond");p<=0&&(f(),t("finish")),l.value=pR(Math.max(p,0),e.format)},1e3/30))};return qt(()=>{e.start&&h()}),uo(()=>{f()}),bt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function TFe(e,t,n,r,o,a){return z(),q("div",{class:ne([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"title",{},()=>[$e(_e(e.title),1)])],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-content`)},[A("div",{class:ne(`${e.prefixCls}-value`),style:Ee(e.valueStyle)},_e(e.displayValue),7)],2)],2)}var x4=xe(_Fe,[["render",TFe]]);const EFe=Object.assign(hR,{Countdown:x4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+hR.name,hR),e.component(n+x4.name,x4)}}),Xhe=Symbol("ArcoSteps"),IFe=fe({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}=Ot(e),a=ve("steps"),s=ae(e.defaultCurrent),l=N(()=>{var x;return(x=e.current)!=null?x:s.value}),c=N(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),f=N(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=x=>xl.value?"wait":e.status,p=(x,_)=>{e.changeable&&(s.value=x,t("update:current",x),t("change",x,_))},m=Lt(new Map),y=N(()=>Array.from(m.values()).filter(x=>x.status==="error").map(x=>x.step)),b=(x,_)=>{m.set(x,_)},w=x=>{m.delete(x)},C=N(()=>[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 gr(Xhe,Lt({type:r,direction:c,labelPlacement:f,lineLess:o,current:l,errorSteps:y,getStatus:h,addItem:b,removeItem:w,onClick:p,parentCls:a})),{cls:C}}});function AFe(e,t,n,r,o,a){return z(),q("div",{class:ne(e.cls)},[Qe(e.$slots,"default")],2)}var vR=xe(IFe,[["render",AFe]]);const LFe=fe({name:"Step",components:{IconCheck:_g,IconClose:ps},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=ve("steps-item"),n=Di(),r=ve("steps-icon"),o=rn(Xhe,void 0),a=N(()=>{var b;return(b=o?.type)!=null?b:"default"}),s=ae(),{computedIndex:l}=oU({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=N(()=>l.value+1),f=N(()=>{var b,w;return(w=(b=e.status)!=null?b:o?.getStatus(c.value))!=null?w:"process"}),h=N(()=>{var b;return(b=o?.errorSteps.includes(c.value+1))!=null?b:!1});n&&o?.addItem(n.uid,Lt({step:c,status:f})),uo(()=>{n&&o?.removeItem(n.uid)});const p=N(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),m=b=>{e.disabled||o?.onClick(c.value,b)},y=N(()=>[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:y,itemRef:s,showTail:p,stepNumber:c,computedStatus:f,type:a,handleClick:m}}});function PFe(e,t,n,r,o,a){const s=ke("icon-check"),l=ke("icon-close");return z(),q("div",{ref:"itemRef",class:ne(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-tail`)},null,2)):ge("v-if",!0),e.type!=="arrow"?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-node`)},[Qe(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(z(),q("div",{key:0,class:ne(e.iconCls)},[Qe(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(z(),Ne(s,{key:0})):e.computedStatus==="error"?(z(),Ne(l,{key:1})):(z(),q(Tt,{key:2},[$e(_e(e.stepNumber),1)],64))])],2)):ge("v-if",!0)])],2)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-content`)},[A("div",{class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"default",{},()=>[$e(_e(e.title),1)])],2),e.description||e.$slots.description?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-description`)},[Qe(e.$slots,"description",{},()=>[$e(_e(e.description),1)])],2)):ge("v-if",!0)],2)],2)}var _4=xe(LFe,[["render",PFe]]);const $Fe=Object.assign(vR,{Step:_4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+vR.name,vR),e.component(n+_4.name,_4)}}),MFe=fe({name:"Switch",components:{IconLoading:ha},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}=Ot(e),a=ve("switch"),{mergedSize:s}=Us(r),{mergedDisabled:l,mergedSize:c,eventHandlers:f}=qi({disabled:n,size:s}),h=ae(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=N(()=>{var S;return((S=e.modelValue)!=null?S:h.value)===e.checkedValue}),m=ae(!1),y=N(()=>m.value||e.loading),b=(S,I)=>{var $,L;h.value=S?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,I),(L=($=f.value)==null?void 0:$.onChange)==null||L.call($,I)},w=async S=>{if(y.value||l.value)return;const I=!p.value,$=I?e.checkedValue:e.uncheckedValue,L=e.beforeChange;if(Yt(L)){m.value=!0;try{const O=await L($);(O??!0)&&b(I,S)}finally{m.value=!1}}else b(I,S)},C=S=>{var I,$;t("focus",S),($=(I=f.value)==null?void 0:I.onFocus)==null||$.call(I,S)},x=S=>{var I,$;t("blur",S),($=(I=f.value)==null?void 0:I.onBlur)==null||$.call(I,S)};bt(o,S=>{(Zt(S)||qa(S))&&(h.value=e.uncheckedValue)});const _=N(()=>[a,`${a}-type-${e.type}`,{[`${a}-small`]:c.value==="small"||c.value==="mini",[`${a}-checked`]:p.value,[`${a}-disabled`]:l.value,[`${a}-loading`]:y.value,[`${a}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),E=N(()=>{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:_,mergedDisabled:l,buttonStyle:E,computedCheck:p,computedLoading:y,handleClick:w,handleFocus:C,handleBlur:x}}}),RFe=["aria-checked","disabled"];function DFe(e,t,n,r,o,a){const s=ke("icon-loading");return z(),q("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:ne(e.cls),style:Ee(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))},[A("span",{class:ne(`${e.prefixCls}-handle`)},[A("span",{class:ne(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(z(),Ne(s,{key:0})):(z(),q(Tt,{key:1},[e.computedCheck?Qe(e.$slots,"checked-icon",{key:0}):Qe(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),ge(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(z(),q(Tt,{key:0},[A("span",{class:ne(`${e.prefixCls}-text-holder`)},[e.computedCheck?Qe(e.$slots,"checked",{key:0},()=>[$e(_e(e.checkedText),1)]):Qe(e.$slots,"unchecked",{key:1},()=>[$e(_e(e.uncheckedText),1)])],2),A("span",{class:ne(`${e.prefixCls}-text`)},[e.computedCheck?Qe(e.$slots,"checked",{key:0},()=>[$e(_e(e.checkedText),1)]):Qe(e.$slots,"unchecked",{key:1},()=>[$e(_e(e.uncheckedText),1)])],2)],64)):ge("v-if",!0)],46,RFe)}var mR=xe(MFe,[["render",DFe]]);const OFe=Object.assign(mR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+mR.name,mR)}}),NFe=e=>{let t=0;const n=r=>{if(En(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},Zhe=e=>{let t=0;if(En(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=Zhe(n.children);r>0&&(t=Math.max(t,r+1))}}return t},yne=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},BFe=(e,t,n)=>{const r=Zhe(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(f,{level:h=0,parent:p,fixed:m}={})=>{var y;for(const b of f){const w={...b,parent:p};if(En(w.children)){const C=NFe(w.children);C>1&&(w.colSpan=C),a[h].push(w),c(w.children,{level:h+1,parent:w,fixed:w.fixed})}else{const C=r-h;C>1&&(w.rowSpan=C),(m||w.fixed)&&(w.fixed=(y=w.fixed)!=null?y:m,w.fixed==="left"?s=o.length:Zt(l)&&(l=o.length)),(Zt(w.dataIndex)||qa(w.dataIndex))&&(w.dataIndex=`__arco_data_index_${o.length}`),n[w.dataIndex]&&(w._resizeWidth=n[w.dataIndex]),t.set(w.dataIndex,w),o.push(w),a[h].push(w)}}};return c(e),Zt(s)||(o[s].isLastLeftFixed=!0,yne(o[s],"left")),Zt(l)||(o[l].isFirstRightFixed=!0,yne(o[l],"right")),{dataColumns:o,groupColumns:a}},FFe=(e,t)=>{for(let n=0;n{var n;const r=FFe(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},PU=e=>e.children&&e.children.length>0?PU(e.children[0]):e,VFe=e=>e.children&&e.children.length>0?PU(e.children[e.children.length-1]):e,zFe=(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=PU(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=VFe(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},Jhe=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],Qhe=(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}]:[],epe=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${zFe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},tpe=(e,t)=>e.fixed?{left:`${jFe(e,t)}px`}:{};function npe(e){return e.map(t=>{const n={...t};return n.children&&(n.children=npe(n.children)),n})}function rpe(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=rpe(t.children)),t.raw})}const $U=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...$U(n));return t},UFe=(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}},LS=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),HFe=e=>{const t=[];for(let n=0;n{var s,l,c;const f=N(()=>{var E;return((E=n.value)==null?void 0:E.type)==="radio"}),h=ae((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=N(()=>{var E,S,I;return(I=(S=e.value)!=null?S:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?I:h.value}),m=N(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:f,selectedRowKeys:p,currentSelectedRowKeys:m,handleSelectAll:E=>{const S=LS(p.value,o.value,!E);h.value=S,a("selectAll",E),a("selectionChange",S),a("update:selectedKeys",S)},handleSelect:(E,S)=>{const I=f.value?[S.key]:LS(p.value,[S.key],!E);h.value=I,a("select",I,S.key,S.raw),a("selectionChange",I),a("update:selectedKeys",I)},handleSelectAllLeafs:(E,S)=>{const I=LS(p.value,$U(E),!S);h.value=I,a("select",I,E.key,E.raw),a("selectionChange",I),a("update:selectedKeys",I)},select:(E,S=!0)=>{const I=[].concat(E),$=f.value?I:LS(p.value,I,!S);h.value=$,a("selectionChange",$),a("update:selectedKeys",$)},selectAll:(E=!0)=>{const S=LS(p.value,o.value,!E);h.value=S,a("selectionChange",S),a("update:selectedKeys",S)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},GFe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=ae((()=>{var m,y;return t.value?t.value:(m=r.value)!=null&&m.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(y=r.value)!=null&&y.defaultExpandAllRows?[...o.value]:[]})()),c=N(()=>{var m,y,b;return(b=(y=e.value)!=null?y:(m=r.value)==null?void 0:m.expandedRowKeys)!=null?b:l.value});return{expandedRowKeys:c,handleExpand:(m,y)=>{const w=c.value.includes(m)?c.value.filter(C=>m!==C):c.value.concat(m);l.value=w,a("expand",m,y),a("expandedChange",w),a("update:expandedKeys",w)},expand:(m,y=!0)=>{const b=[].concat(m),w=y?c.value.concat(b):c.value.filter(C=>!b.includes(C));l.value=w,a("expandedChange",w),a("update:expandedKeys",w)},expandAll:(m=!0)=>{const y=m?[...o.value]:[];l.value=y,a("expandedChange",y),a("update:expandedKeys",y)}}},KFe=(e,t)=>{var n,r;const o=ae(Dn(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=ae(Dn(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=N(()=>{var h;return Dn(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:N(()=>{var h;return Dn(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)}}},qFe=fe({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 YFe(e,t,n,r,o,a){return z(),q("colgroup",null,[(z(!0),q(Tt,null,Kt(e.operations,s=>(z(),q("col",{key:`arco-col-${s.name}`,class:ne(`arco-table-${s.name}-col`),style:Ee(e.fixedWidth(s.width))},null,6))),128)),(z(!0),q(Tt,null,Kt(e.dataColumns,s=>(z(),q("col",{key:`arco-col-${s.dataIndex}`,style:Ee(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var nT=xe(qFe,[["render",YFe]]),H2=fe({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return R((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),W2=fe({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return R((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),qf=fe({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=ve("table"),r=N(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var o,a,s;return R((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 XFe=fe({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=ve("icon"),r=N(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZFe=["stroke-width","stroke-linecap","stroke-linejoin"];function JFe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ZFe)}var gR=xe(XFe,[["render",JFe]]);const MU=Object.assign(gR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gR.name,gR)}}),QFe=fe({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=ve("icon"),r=N(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eje=["stroke-width","stroke-linecap","stroke-linejoin"];function tje(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,eje)}var yR=xe(QFe,[["render",tje]]);const ipe=Object.assign(yR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yR.name,yR)}}),nje=fe({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=ve("icon"),r=N(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rje=["stroke-width","stroke-linecap","stroke-linejoin"];function ije(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,rje)}var bR=xe(nje,[["render",ije]]);const RU=Object.assign(bR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bR.name,bR)}}),oje=({column:e,tableCtx:t})=>{const n=N(()=>{var f;if(e.value.dataIndex&&e.value.dataIndex===((f=t.sorter)==null?void 0:f.field))return t.sorter.direction}),r=N(()=>{var f,h,p;return(p=(h=(f=e.value)==null?void 0:f.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=N(()=>r.value.length>0),a=N(()=>r.value.includes("ascend")),s=N(()=>r.value.includes("descend")),l=N(()=>{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))}}},sje=({column:e,tableCtx:t})=>{const n=N(()=>{var y;return e.value.dataIndex&&((y=t.filters)!=null&&y[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=ae(!1),o=N(()=>n.value.length>0),a=N(()=>{var y;return!!((y=e.value.filterable)!=null&&y.multiple)}),s=ae(n.value);bt(n,y=>{En(y)&&String(y)!==String(s.value)&&(s.value=y)});const l=y=>{r.value=y},c=y=>{s.value=y};return{filterPopupVisible:r,isFilterActive:o,isMultipleFilter:a,columnFilterValue:s,handleFilterPopupVisibleChange:l,setFilterValue:c,handleCheckboxFilterChange:y=>{c(y)},handleRadioFilterChange:y=>{c([y])},handleFilterConfirm:y=>{var b;e.value.dataIndex&&((b=t.onFilterChange)==null||b.call(t,e.value.dataIndex,s.value,y)),l(!1)},handleFilterReset:y=>{var b;c([]),e.value.dataIndex&&((b=t.onFilterChange)==null||b.call(t,e.value.dataIndex,s.value,y)),l(!1)}}},B1=Symbol("ArcoTable"),bne=Symbol("ArcoTableColumn");function Sne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var ope=fe({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=ve("auto-tooltip"),o=ae(),a=ae(),s=ae(""),l=ae(!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()};qt(()=>{f(),c()}),ma(()=>{f(),c()});const p=()=>R("span",xt({ref:o,class:r},t),[R(qp,{onResize:h},{default:()=>{var m;return[R("span",{ref:a,class:`${r}-content`},[(m=n.default)==null?void 0:m.call(n)])]}})]);return()=>{let m;if(l.value){let y;return R(uc,xt({content:s.value,onResize:h},e.tooltipProps),Sne(y=p())?y:{default:()=>[y]})}return R(qp,{onResize:h},Sne(m=p())?m:{default:()=>[m]})}}});function SR(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var G2=fe({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=Ot(e),r=ve("table"),{t:o}=no(),a=rn(B1,{}),s=N(()=>{var Y;return((Y=e.column)==null?void 0:Y.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=N(()=>{var Y;if(Dn((Y=e.column)==null?void 0:Y.tooltip))return e.column.tooltip}),c=N(()=>{var Y;return(Y=e.column)!=null&&Y.filterable&&Ka(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:f,hasSorter:h,hasAscendBtn:p,hasDescendBtn:m,nextSortOrder:y,handleClickSorter:b}=oje({column:n,tableCtx:a}),{filterPopupVisible:w,isFilterActive:C,isMultipleFilter:x,columnFilterValue:_,handleFilterPopupVisibleChange:E,setFilterValue:S,handleCheckboxFilterChange:I,handleRadioFilterChange:$,handleFilterConfirm:L,handleFilterReset:O}=sje({column:n,tableCtx:a}),F=()=>{var Y,ee,te,J,Z;let ce,ye;const{filterable:ie}=e.column;return(Y=e.column.slots)!=null&&Y["filter-content"]?(ee=e.column.slots)==null?void 0:ee["filter-content"]({filterValue:_.value,setFilterValue:S,handleFilterConfirm:L,handleFilterReset:O}):ie?.slotName?(J=(te=a?.slots)==null?void 0:te[ie?.slotName])==null?void 0:J.call(te,{filterValue:_.value,setFilterValue:S,handleFilterConfirm:L,handleFilterReset:O}):ie?.renderContent?ie.renderContent({filterValue:_.value,setFilterValue:S,handleFilterConfirm:L,handleFilterReset:O}):R("div",{class:`${r}-filters-content`},[R("ul",{class:`${r}-filters-list`},[(Z=ie?.filters)==null?void 0:Z.map((Ce,Re)=>{var be;return R("li",{class:`${r}-filters-item`,key:Re},[x.value?R(Uc,{value:Ce.value,modelValue:_.value,uninjectGroupContext:!0,onChange:I},{default:()=>[Ce.text]}):R(l1,{value:Ce.value,modelValue:(be=_.value[0])!=null?be:"",uninjectGroupContext:!0,onChange:$},{default:()=>[Ce.text]})])})]),R("div",{class:`${r}-filters-bottom`},[R(po,{size:"mini",onClick:O},SR(ce=o("table.resetText"))?ce:{default:()=>[ce]}),R(po,{type:"primary",size:"mini",onClick:L},SR(ye=o("table.okText"))?ye:{default:()=>[ye]})])])},M=()=>{const{filterable:Y}=e.column;return Y?R(Ls,xt({popupVisible:w.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},Y.triggerProps),{default:()=>[R(Ki,{class:[`${r}-filters`,{[`${r}-filters-active`]:C.value,[`${r}-filters-open`]:w.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:ee=>ee.stopPropagation()},{default:()=>{var ee,te,J,Z,ce;return[(ce=(Z=(te=(ee=e.column.slots)==null?void 0:ee["filter-icon"])==null?void 0:te.call(ee))!=null?Z:(J=Y.icon)==null?void 0:J.call(Y))!=null?ce:R(RU,null,null)]}})],content:F}):null},j=N(()=>{var Y,ee;const te=[`${r}-cell`,`${r}-cell-align-${(ee=(Y=e.column)==null?void 0:Y.align)!=null?ee:e.column.children?"center":"left"}`];return h.value&&te.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:y.value==="ascend",[`${r}-cell-next-descend`]:y.value==="descend"}),c.value&&te.push(`${r}-cell-with-filter`),te}),V=()=>{var Y,ee,te,J,Z,ce;return t.default?t.default():(Y=e.column)!=null&&Y.titleSlotName&&((ee=a.slots)!=null&&ee[e.column.titleSlotName])?(J=(te=a.slots)[e.column.titleSlotName])==null?void 0:J.call(te,{column:e.column}):(ce=(Z=e.column)==null?void 0:Z.slots)!=null&&ce.title?e.column.slots.title():Yt(e.column.title)?e.column.title():e.column.title},W=()=>{var Y,ee,te;let J;return R("span",{class:j.value,onClick:h.value?b:void 0},[(Y=e.column)!=null&&Y.ellipsis&&((ee=e.column)!=null&&ee.tooltip)?R(ope,{class:`${r}-th-title`,tooltipProps:l.value},SR(J=V())?J:{default:()=>[J]}):R("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(te=e.column)==null?void 0:te.ellipsis}]},[V()]),h.value&&R("span",{class:`${r}-sorter`},[p.value&&R("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="ascend"}]},[R(ipe,null,null)]),m.value&&R("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="descend"}]},[R(MU,null,null)])]),c.value&&M()])},U=N(()=>{var Y,ee;return{...epe(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(Y=e.column)==null?void 0:Y.cellStyle,...(ee=e.column)==null?void 0:ee.headerCellStyle}}),X=N(()=>{var Y,ee;return[`${r}-th`,{[`${r}-col-sorted`]:!!f.value,[`${r}-th-resizing`]:s.value},...Qhe(r,e.column),(Y=e.column)==null?void 0:Y.cellClass,(ee=e.column)==null?void 0:ee.headerCellClass]}),G=Y=>{var ee,te,J;(ee=e.column)!=null&&ee.dataIndex&&((J=a.onThMouseDown)==null||J.call(a,(te=e.column)==null?void 0:te.dataIndex,Y))};return()=>{var Y,ee,te,J;const Z=(Y=e.column.colSpan)!=null?Y:1,ce=(ee=e.column.rowSpan)!=null?ee:1;return R((J=(te=t.th)==null?void 0:te.call(t,{column:e.column})[0])!=null?J:"th",{class:X.value,style:U.value,colspan:Z>1?Z:void 0,rowspan:ce>1?ce:void 0},{default:()=>[W(),!c.value&&M(),e.resizable&&R("span",{class:`${r}-column-handle`,onMousedown:G},null)]})}}});function aje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var Lp=fe({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=ve("table"),r=N(()=>{var C;if(Dn((C=e.column)==null?void 0:C.tooltip))return e.column.tooltip}),o=N(()=>{var C,x;return((C=e.column)==null?void 0:C.dataIndex)&&((x=p.sorter)==null?void 0:x.field)===e.column.dataIndex}),a=N(()=>{var C;return((C=e.column)==null?void 0:C.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var C,x,_,E,S,I;return e.summary?Yt((C=e.column)==null?void 0:C.summaryCellClass)?e.column.summaryCellClass((x=e.record)==null?void 0:x.raw):(_=e.column)==null?void 0:_.summaryCellClass:Yt((E=e.column)==null?void 0:E.bodyCellClass)?e.column.bodyCellClass((S=e.record)==null?void 0:S.raw):(I=e.column)==null?void 0:I.bodyCellClass},l=N(()=>{var C;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...Qhe(n,e.column),(C=e.column)==null?void 0:C.cellClass,s()]}),c=()=>{var C,x,_,E,S,I;return e.summary?Yt((C=e.column)==null?void 0:C.summaryCellStyle)?e.column.summaryCellStyle((x=e.record)==null?void 0:x.raw):(_=e.column)==null?void 0:_.summaryCellStyle:Yt((E=e.column)==null?void 0:E.bodyCellStyle)?e.column.bodyCellStyle((S=e.record)==null?void 0:S.raw):(I=e.column)==null?void 0:I.bodyCellStyle},f=N(()=>{var C;const x=epe(e.column,{dataColumns:e.dataColumns,operations:e.operations}),_=c();return{...x,...(C=e.column)==null?void 0:C.cellStyle,..._}}),h=N(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=rn(B1,{}),m=()=>{var C,x,_,E,S,I,$,L;if(t.default)return t.default();const O={record:(C=e.record)==null?void 0:C.raw,column:e.column,rowIndex:(x=e.rowIndex)!=null?x:-1};return t.cell?t.cell(O):(_=e.column.slots)!=null&&_.cell?e.column.slots.cell(O):e.column.render?e.column.render(O):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(I=(S=p.slots)[e.column.slotName])==null?void 0:I.call(S,O):String((L=jm(($=e.record)==null?void 0:$.raw,e.column.dataIndex))!=null?L:"")},y=ae(!1),b=C=>{var x,_;Yt(p.loadMore)&&!((x=e.record)!=null&&x.isLeaf)&&!((_=e.record)!=null&&_.children)&&(y.value=!0,new Promise(E=>{var S;(S=p.loadMore)==null||S.call(p,e.record.raw,E)}).then(E=>{var S;(S=p.addLazyLoadData)==null||S.call(p,E,e.record),y.value=!1})),C.stopPropagation()},w=()=>{var C,x,_,E,S,I;let $;return R("span",{class:[`${n}-cell`,`${n}-cell-align-${(x=(C=e.column)==null?void 0:C.align)!=null?x:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:h.value},[e.indentSize>0&&R("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&R("span",{class:`${n}-cell-inline-icon`,onClick:b},[y.value?R(ha,null,null):(_=e.renderExpandBtn)==null?void 0:_.call(e,e.record,!1)]),(E=e.column)!=null&&E.ellipsis&&((S=e.column)!=null&&S.tooltip)?R(ope,{class:`${n}-td-content`,tooltipProps:r.value},aje($=m())?$:{default:()=>[$]}):R("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(I=e.column)==null?void 0:I.ellipsis}]},[m()])])};return()=>{var C,x,_,E;return R((E=(_=t.td)==null?void 0:_.call(t,{record:(C=e.record)==null?void 0:C.raw,column:e.column,rowIndex:(x=e.rowIndex)!=null?x:-1})[0])!=null?E:"td",{class:l.value,style:f.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[w()]})}}}),lje=fe({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=ve("table"),n=rn(B1,{}),r=N(()=>{var l,c,f,h;let p=!1,m=!1;const b=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(C=>{var x,_;return(_=(x=n.currentAllEnabledRowKeys)==null?void 0:x.includes(C))!=null?_:!0}))!=null?c:[]).length,w=(h=(f=n.currentAllEnabledRowKeys)==null?void 0:f.length)!=null?h:0;return b>0&&(b>=w?p=!0:m=!0),{checked:p,indeterminate:m}}),o=()=>e.selectAll?R(Uc,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:Yt(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?Yt(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=N(()=>tpe(e.operationColumn,e.operations)),s=N(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...Jhe(t,e.operationColumn)]);return()=>R("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[R("span",{class:`${t}-cell`},[o()])])}}),kne=fe({name:"OperationTd",components:{Checkbox:Uc,Radio:l1,IconPlus:Vd,IconMinus:og},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=ve("table"),o=rn(B1,{}),a=N(()=>tpe(e.operationColumn,e.operations)),s=N(()=>[`${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"},...Jhe(r,e.operationColumn)]),l=N(()=>$U(e.record)),c=N(()=>{var h;return UFe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),f=()=>{var h,p,m,y,b,w;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const C=e.record.key;return!o.checkStrictly&&!e.record.isLeaf?R(Uc,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:x=>{var _;return(_=o.onSelectAllLeafs)==null?void 0:_.call(o,e.record,x)},onClick:x=>x.stopPropagation()},null):R(Uc,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(C))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:x=>{var _;return(_=o.onSelect)==null?void 0:_.call(o,x,e.record)},onClick:x=>x.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const C=e.record.key;return R(l1,{modelValue:(y=(m=e.selectedRowKeys)==null?void 0:m.includes(C))!=null?y:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:x=>{var _;return(_=o.onSelect)==null?void 0:_.call(o,x,e.record)},onClick:x=>x.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(w=(b=n["drag-handle-icon"])==null?void 0:b.call(n))!=null?w:R(UA,null,null):null};return()=>R("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[R("span",{class:`${r}-cell`},[f()])])}});const uje=e=>{const t=N(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Lt({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,y)=>{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=y},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()}}},cje=(e,t)=>{const n=ae(""),r=Lt({}),o=(l,c)=>{c.preventDefault(),n.value=l,Wr(window,"mousemove",s),Wr(window,"mouseup",a),Wr(window,"contextmenu",a)},a=()=>{n.value="",mi(window,"mousemove",s),mi(window,"mouseup",a),mi(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}},dje=({columns:e,onFilterChange:t})=>{const n=ae(wne(e.value));bt(e,s=>{const l=wne(s);D1(l,n.value)||(n.value=l)});const r=N(()=>{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}}},wne=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},fje=({columns:e,onSorterChange:t})=>{const n=ae(Cne(e.value));bt(e,s=>{const l=Cne(s);D1(l,n.value)||(n.value=l)});const r=N(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=Io(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,"")}}},Cne=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}},xne=({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,y)=>{var b,w;const{rowspan:C=1,colspan:x=1}=(w=(b=e.value)==null?void 0:b.call(e,{record:f.raw,column:m,rowIndex:h,columnIndex:y}))!=null?w:{};(C>1||x>1)&&(c[`${h}-${y}-${f.key}`]=[C,x],Array.from({length:C}).forEach((_,E)=>{var S;if(h+E{y+L{const l={};return o.value={},e.value&&r(t.value,l),l}),s=N(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function hje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}const _ne={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var kR=fe({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=rn(fa,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:y,spanMethod:b,draggable:w,summarySpanMethod:C,scrollbar:x,showEmptyTree:_}=Ot(e),E=ve("table"),S=rn(fa,void 0),I=N(()=>Dn(e.bordered)?{..._ne,...e.bordered}:{..._ne,wrapper:e.bordered}),{children:$,components:L}=Lw("TableColumn"),O=N(()=>{var ht,Mt;return(Mt=(ht=a.value)==null?void 0:ht.checkStrictly)!=null?Mt:!0}),{displayScrollbar:F,scrollbarProps:M}=AA(x),j=N(()=>{var ht,Mt,Ft,Ut;const Qt=!!((ht=e.scroll)!=null&&ht.x||(Mt=e.scroll)!=null&&Mt.minWidth),Cn=!!((Ft=e.scroll)!=null&&Ft.y||(Ut=e.scroll)!=null&&Ut.maxHeight);return{x:Qt,y:Cn}}),V=ae(),W=ae({}),{componentRef:U,elementRef:X}=gy("containerRef"),{componentRef:G,elementRef:Y}=gy("containerRef"),{elementRef:ee}=gy("viewportRef"),{componentRef:te,elementRef:J}=gy("containerRef"),Z=N(()=>ce.value?In.value?ee.value:Y.value:X.value),ce=N(()=>j.value.y||e.stickyHeader||In.value||j.value.x&&Yi.value.length===0),ye=Lt(new Map),ie=ae();bt([L,ye],([ht,Mt])=>{if(ht.length>0){const Ft=[];ht.forEach(Ut=>{const Qt=Mt.get(Ut);Qt&&Ft.push(Qt)}),ie.value=Ft}else ie.value=void 0});const Ce=new Map,Re=ae([]),be=ae([]),{resizingColumn:Fe,columnWidth:De,handleThMouseDown:Ge}=cje(W,t);bt([r,ie,De],([ht,Mt])=>{var Ft;const Ut=BFe((Ft=Mt??ht)!=null?Ft:[],Ce,De);Re.value=Ut.dataColumns,be.value=Ut.groupColumns},{immediate:!0,deep:!0});const qe=N(()=>["tl","top","tr"].includes(e.pagePosition)),Ve=ae(!1),he=ae(!1),de=ae(!1);Yo(()=>{var ht,Mt,Ft;let Ut=!1,Qt=!1,Cn=!1;((ht=e.rowSelection)!=null&&ht.fixed||(Mt=e.expandable)!=null&&Mt.fixed||(Ft=e.draggable)!=null&&Ft.fixed)&&(Ut=!0);for(const Un of Re.value)Un.fixed==="left"?(Ut=!0,Cn=!0):Un.fixed==="right"&&(Qt=!0);Ut!==Ve.value&&(Ve.value=Ut),Qt!==he.value&&(he.value=Qt),Cn!==de.value&&(de.value=Cn)});const Te=N(()=>{for(const ht of Re.value)if(ht.ellipsis)return!0;return!1}),Oe=ht=>{const Mt={type:ht,page:Pu.value,pageSize:tf.value,sorter:$t.value,filters:Ze.value,dragTarget:ht==="drag"?ga.data:void 0};t("change",bl.value,Mt,ed.value)},je=(ht,Mt)=>{it.value={...Ze.value,[ht]:Mt},t("filterChange",ht,Mt),Oe("filter")},We=(ht,Mt)=>{Pt.value=Mt?{field:ht,direction:Mt}:void 0,t("sorterChange",ht,Mt),Oe("sorter")},{_filters:it,computedFilters:Ze,resetFilters:pt,clearFilters:et}=dje({columns:Re,onFilterChange:je}),{_sorter:Pt,computedSorter:$t,resetSorters:vt,clearSorters:Nt}=fje({columns:Re,onSorterChange:We}),dt=new Set,lt=N(()=>{const ht=[];dt.clear();const Mt=Ft=>{if(En(Ft)&&Ft.length>0)for(const Ut of Ft)ht.push(Ut[o.value]),Ut.disabled&&dt.add(Ut[o.value]),Ut.children&&Mt(Ut.children)};return Mt(e.data),ht}),Pe=N(()=>{const ht=[],Mt=Ft=>{for(const Ut of Ft)ht.push(Ut.key),Ut.children&&Mt(Ut.children)};return Mt(Yi.value),ht}),Ae=N(()=>{const ht=[],Mt=Ft=>{for(const Ut of Ft)Ut.disabled||ht.push(Ut.key),Ut.children&&Mt(Ut.children)};return Mt(Yi.value),ht}),{selectedRowKeys:Xe,currentSelectedRowKeys:ut,handleSelect:Ke,handleSelectAllLeafs:ze,handleSelectAll:Se,select:st,selectAll:St,clearSelected:At}=WFe({selectedKeys:f,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Pe,currentAllEnabledRowKeys:Ae,emit:t}),{expandedRowKeys:gt,handleExpand:Dt,expand:on,expandAll:Mn}=GFe({expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:y,expandable:s,allRowKeys:lt,emit:t}),Ci=Lt({}),Lu=(ht,Mt)=>{ht&&(Ci[Mt.key]=ht)},Ar=ht=>{var Mt,Ft;for(const Ut of Object.keys(Ze.value)){const Qt=Ze.value[Ut],Cn=Ce.get(Ut);if(Cn&&((Mt=Cn.filterable)!=null&&Mt.filter)&&Qt.length>0){const Un=(Ft=Cn.filterable)==null?void 0:Ft.filter(Qt,ht.raw);if(!Un)return Un}}return!0},{dragType:Jo,dragState:ga,handleDragStart:sn,handleDragEnter:Yn,handleDragover:Ii,handleDragEnd:ya,handleDrop:vc}=uje(w),mc=N(()=>{var ht;const Mt=Ft=>{const Ut=[];for(const Qt of Ft){const Cn={raw:Qt,key:Qt[e.rowKey],disabled:Qt.disabled,expand:Qt.expand,isLeaf:Qt.isLeaf};Qt.children?(Cn.isLeaf=!1,Cn.children=Mt(Qt.children)):e.loadMore&&!Qt.isLeaf?(Cn.isLeaf=!1,Ci[Cn.key]&&(Cn.children=Mt(Ci[Cn.key]))):Cn.isLeaf=!0,Cn.hasSubtree=!!(Cn.children?!e.hideExpandButtonOnEmpty||Cn.children.length>0:e.loadMore&&!Cn.isLeaf),Ut.push(Cn)}return Ut};return Mt((ht=e.data)!=null?ht:[])}),ef=N(()=>{const ht=Mt=>Mt.filter(Ft=>Ar(Ft)?(Ft.children&&(Ft.children=ht(Ft.children)),!0):!1);return Object.keys(Ze.value).length>0?ht(mc.value):mc.value}),ed=N(()=>{var ht,Mt,Ft;const Ut=npe(ef.value);if(Ut.length>0){if((ht=$t.value)!=null&&ht.field){const Un=Ce.get($t.value.field);if(Un&&((Mt=Un.sortable)==null?void 0:Mt.sorter)!==!0){const{field:wr,direction:di}=$t.value;Ut.sort((Vo,eu)=>{var Mu;const nr=jm(Vo.raw,wr),Bn=jm(eu.raw,wr);if((Mu=Un.sortable)!=null&&Mu.sorter&&Yt(Un.sortable.sorter))return Un.sortable.sorter(Vo.raw,eu.raw,{dataIndex:wr,direction:di});const Pi=nr>Bn?1:-1;return di==="descend"?-Pi:Pi})}}const{sourcePath:Qt,targetPath:Cn}=ga;if(ga.dragging&&Cn.length&&Cn.toString()!==Qt.toString()&&Qt.length===Cn.length&&Qt.slice(0,-1).toString()===Cn.slice(0,-1).toString()){let Un=Ut;for(let wr=0;wr=Qt.length-1){const eu=Un[di],Mu=Cn[wr];Mu>di?(Un.splice(Mu+1,0,eu),Un.splice(di,1)):(Un.splice(Mu,0,eu),Un.splice(di+1,1))}else Un=(Ft=Un[di].children)!=null?Ft:[]}}}return Ut}),{page:Pu,pageSize:tf,handlePageChange:td,handlePageSizeChange:_h}=KFe(e,t),Ag=N(()=>{var ht,Mt;return(Mt=(ht=a.value)==null?void 0:ht.onlyCurrent)!=null?Mt:!1});bt(Pu,(ht,Mt)=>{ht!==Mt&&Ag.value&&At()});const Yi=N(()=>e.pagination&&ed.value.length>tf.value?ed.value.slice((Pu.value-1)*tf.value,Pu.value*tf.value):ed.value),bl=N(()=>rpe(Yi.value)),Hs=()=>Re.value.reduce((ht,Mt,Ft)=>{if(Mt.dataIndex)if(Ft===0)V3(ht,Mt.dataIndex,e.summaryText,{addPath:!0});else{let Ut=0,Qt=!1;Yi.value.forEach(Cn=>{if(Mt.dataIndex){const Un=jm(Cn.raw,Mt.dataIndex);Me(Un)?Ut+=Un:!Zt(Un)&&!qa(Un)&&(Qt=!0)}}),V3(ht,Mt.dataIndex,Qt?"":Ut,{addPath:!0})}return ht},{}),ln=ht=>ht&&ht.length>0?ht.map(Mt=>({raw:Mt,key:Mt[e.rowKey]})):[],Sl=N(()=>e.summary?Yt(e.summary)?ln(e.summary({columns:Re.value,data:bl.value})):ln([Hs()]):[]),yo=ae(0),nd=ae(!0),Ye=ae(!0),Vt=()=>{let ht=!0,Mt=!0;const Ft=Z.value;Ft&&(ht=yo.value===0,Mt=Math.ceil(yo.value+Ft.offsetWidth)>=Ft.scrollWidth),ht!==nd.value&&(nd.value=ht),Mt!==Ye.value&&(Ye.value=Mt)},zt=()=>nd.value&&Ye.value?`${E}-scroll-position-both`:nd.value?`${E}-scroll-position-left`:Ye.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Gr=()=>{const ht=[];return Ve.value&&ht.push(`${E}-has-fixed-col-left`),he.value&&ht.push(`${E}-has-fixed-col-right`),ht},Zr=ht=>{ht.target.scrollLeft!==yo.value&&(yo.value=ht.target.scrollLeft),Vt()},ci=ht=>{Zr(ht);const{scrollLeft:Mt}=ht.target;J.value&&(J.value.scrollLeft=Mt),V.value&&(V.value.scrollLeft=Mt)},ba=(ht,Mt)=>{t("rowClick",ht.raw,Mt)},Th=(ht,Mt)=>{t("rowDblclick",ht.raw,Mt)},vs=(ht,Mt)=>{t("rowContextmenu",ht.raw,Mt)},Z1=(ht,Mt,Ft)=>{t("cellClick",ht.raw,Mt,Ft)},Ao=Nk((ht,Mt,Ft)=>{t("cellMouseEnter",ht.raw,Mt,Ft)},30),mv=Nk((ht,Mt,Ft)=>{t("cellMouseLeave",ht.raw,Mt,Ft)},30),$u=(ht,Mt,Ft)=>{t("cellDblclick",ht.raw,Mt,Ft)},Sa=(ht,Mt,Ft)=>{t("cellContextmenu",ht.raw,Mt,Ft)},nf=(ht,Mt)=>{t("headerClick",ht,Mt)},Ai=N(()=>{var ht,Mt;const Ft=[],Ut=Ve.value||he.value;let Qt,Cn,Un;((ht=e.draggable)==null?void 0:ht.type)==="handle"&&(Qt={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||Ut},Ft.push(Qt)),e.expandable&&(Cn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||Ut},Ft.push(Cn)),e.rowSelection&&(Un={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||Ut},Ft.push(Un)),!de.value&&Ft.length>0&&Ft[Ft.length-1].fixed&&(Ft[Ft.length-1].isLastLeftFixed=!0);const wr=(Mt=e.components)==null?void 0:Mt.operations;return Yt(wr)?wr({dragHandle:Qt,expand:Cn,selection:Un}):Ft}),Oi=N(()=>{var ht,Mt,Ft,Ut;if(j.value.x){const Qt={width:Me((ht=e.scroll)==null?void 0:ht.x)?`${(Mt=e.scroll)==null?void 0:Mt.x}px`:(Ft=e.scroll)==null?void 0:Ft.x};return(Ut=e.scroll)!=null&&Ut.minWidth&&(Qt.minWidth=Me(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Qt}}),Ni=N(()=>{var ht,Mt,Ft,Ut;if(j.value.x&&Yi.value.length>0){const Qt={width:Me((ht=e.scroll)==null?void 0:ht.x)?`${(Mt=e.scroll)==null?void 0:Mt.x}px`:(Ft=e.scroll)==null?void 0:Ft.x};return(Ut=e.scroll)!=null&&Ut.minWidth&&(Qt.minWidth=Me(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Qt}});gr(B1,Lt({loadMore:l,addLazyLoadData:Lu,slots:n,sorter:$t,filters:Ze,filterIconAlignLeft:c,resizingColumn:Fe,checkStrictly:O,currentAllEnabledRowKeys:Ae,currentSelectedRowKeys:ut,addColumn:(ht,Mt)=>{ye.set(ht,Mt)},removeColumn:ht=>{ye.delete(ht)},onSelectAll:Se,onSelect:Ke,onSelectAllLeafs:ze,onSorterChange:We,onFilterChange:je,onThMouseDown:Ge}));const rf=N(()=>[E,`${E}-size-${e.size}`,{[`${E}-border`]:I.value.wrapper,[`${E}-border-cell`]:I.value.cell,[`${E}-border-header-cell`]:!I.value.cell&&I.value.headerCell,[`${E}-border-body-cell`]:!I.value.cell&&I.value.bodyCell,[`${E}-stripe`]:e.stripe,[`${E}-hover`]:e.hoverable,[`${E}-dragging`]:ga.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&Yi.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||j.value.x||ce.value||Te.value}]),$s=N(()=>[`${E}-pagination`,{[`${E}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${E}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${E}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${E}-pagination-top`]:qe.value}]),J1=N(()=>{const ht=Gr();return j.value.x&&ht.push(zt()),ce.value&&ht.push(`${E}-scroll-y`),ht}),In=N(()=>!!e.virtualListProps),Li=ae({}),Q1=()=>{const ht={};for(const Mt of Object.keys(W.value))ht[Mt]=W.value[Mt].offsetWidth;Li.value=ht},Eh=ae(!1),Ih=()=>Y.value?Y.value.offsetWidth>Y.value.clientWidth:!1,Lg=()=>{const ht=Ih();Eh.value!==ht&&(Eh.value=ht),Vt(),Q1()};qt(()=>{Eh.value=Ih(),Q1()});const iC=N(()=>Dn(e.loading)?e.loading:{loading:e.loading}),eb=()=>R(qf,{empty:!0},{default:()=>[R(Lp,{colSpan:Re.value.length+Ai.value.length},{default:()=>{var ht,Mt,Ft,Ut,Qt;return[(Qt=(Ut=(ht=n.empty)==null?void 0:ht.call(n))!=null?Ut:(Ft=S==null?void 0:(Mt=S.slots).empty)==null?void 0:Ft.call(Mt,{component:"table"}))!=null?Qt:R(Sh,null,null)]}})]}),Qo=ht=>{var Mt;if(ht.expand)return Yt(ht.expand)?ht.expand():ht.expand;if(n["expand-row"])return n["expand-row"]({record:ht.raw});if((Mt=e.expandable)!=null&&Mt.expandedRowRender)return e.expandable.expandedRowRender(ht.raw)},of=N(()=>[].concat(Ai.value,Re.value)),oC=N(()=>e.spanAll?of.value:Re.value),{tableSpan:Pg,removedCells:Ah}=xne({spanMethod:b,data:Yi,columns:oC}),{tableSpan:$g,removedCells:tb}=xne({spanMethod:C,data:Sl,columns:of}),ka=ht=>{if(!(!In.value||!ht||!Li.value[ht]))return{width:`${Li.value[ht]}px`}},nb=(ht,Mt)=>R(qf,{key:`table-summary-${Mt}`,class:[`${E}-tr-summary`,Yt(e.rowClass)?e.rowClass(ht.raw,Mt):e.rowClass],onClick:Ft=>ba(ht,Ft)},{default:()=>[Ai.value.map((Ft,Ut)=>{var Qt;const Cn=`${Mt}-${Ut}-${ht.key}`,[Un,wr]=(Qt=$g.value[Cn])!=null?Qt:[1,1];if(tb.value.includes(Cn))return null;const di=ka(Ft.name);return R(kne,{style:di,operationColumn:Ft,operations:Ai.value,record:ht,rowSpan:Un,colSpan:wr,summary:!0},null)}),Re.value.map((Ft,Ut)=>{var Qt;const Cn=`${Mt}-${Ai.value.length+Ut}-${ht.key}`,[Un,wr]=(Qt=$g.value[Cn])!=null?Qt:[1,1];if(tb.value.includes(Cn))return null;const di=ka(Ft.dataIndex);return R(Lp,{key:`td-${Cn}`,style:di,rowIndex:Mt,record:ht,column:Ft,operations:Ai.value,dataColumns:Re.value,rowSpan:Un,colSpan:wr,summary:!0,onClick:Vo=>Z1(ht,Ft,Vo),onDblclick:Vo=>$u(ht,Ft,Vo),onMouseenter:Vo=>Ao(ht,Ft,Vo),onMouseleave:Vo=>mv(ht,Ft,Vo),onContextmenu:Vo=>Sa(ht,Ft,Vo)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),rb=()=>Sl.value&&Sl.value.length>0?R("tfoot",null,[Sl.value.map((ht,Mt)=>nb(ht,Mt))]):null,Mg=(ht,Mt=!0)=>{var Ft,Ut,Qt,Cn,Un;const wr=ht.key,di=gt.value.includes(wr);return R("button",{type:"button",class:`${E}-expand-btn`,onClick:Vo=>{Dt(wr,ht.raw),Mt&&Vo.stopPropagation()}},[(Un=(Cn=(Ft=n["expand-icon"])==null?void 0:Ft.call(n,{expanded:di,record:ht.raw}))!=null?Cn:(Qt=(Ut=e.expandable)==null?void 0:Ut.icon)==null?void 0:Qt.call(Ut,di,ht.raw))!=null?Un:R(di?og:Vd,null,null)])},sf=(ht,{indentSize:Mt,indexPath:Ft,allowDrag:Ut,expandContent:Qt})=>{var Cn,Un;if(ht.hasSubtree)return((Cn=ht.children)==null?void 0:Cn.length)===0&&_.value?eb():(Un=ht.children)==null?void 0:Un.map((wr,di)=>gc(wr,di,{indentSize:Mt,indexPath:Ft,allowDrag:Ut}));if(Qt){const wr=Z.value;return R(qf,{key:`${ht.key}-expand`,expand:!0},{default:()=>[R(Lp,{isFixedExpand:Ve.value||he.value,containerWidth:wr?.clientWidth,colSpan:Re.value.length+Ai.value.length},hje(Qt)?Qt:{default:()=>[Qt]})]})}return null},gc=(ht,Mt,{indentSize:Ft=0,indexPath:Ut,allowDrag:Qt=!0}={})=>{var Cn;const Un=ht.key,wr=(Ut??[]).concat(Mt),di=Qo(ht),Vo=gt.value.includes(Un),eu=ga.sourceKey===ht.key,Mu=Jo.value?{draggable:Qt,onDragstart:Bn=>{Qt&&sn(Bn,ht.key,wr,ht.raw)},onDragend:Bn=>{Qt&&ya(Bn)}}:{},nr=Jo.value?{onDragenter:Bn=>{Qt&&Yn(Bn,wr)},onDragover:Bn=>{Qt&&Ii(Bn)},onDrop:Bn=>{Qt&&(Oe("drag"),vc(Bn))}}:{};return R(Tt,null,[R(qf,xt({key:Un,class:[{[`${E}-tr-draggable`]:Jo.value==="row",[`${E}-tr-drag`]:eu},Yt(e.rowClass)?e.rowClass(ht.raw,Mt):e.rowClass],rowIndex:Mt,record:ht,checked:e.rowSelection&&((Cn=Xe.value)==null?void 0:Cn.includes(Un)),onClick:Bn=>ba(ht,Bn),onDblclick:Bn=>Th(ht,Bn),onContextmenu:Bn=>vs(ht,Bn)},Jo.value==="row"?Mu:{},nr),{default:()=>[Ai.value.map((Bn,Pi)=>{var Ws;const Sr=`${Mt}-${Pi}-${ht.key}`,[Gs,un]=e.spanAll?(Ws=Pg.value[Sr])!=null?Ws:[1,1]:[1,1];if(e.spanAll&&Ah.value.includes(Sr))return null;const tu=ka(Bn.name);return R(kne,xt({key:`operation-td-${Pi}`,style:tu,operationColumn:Bn,operations:Ai.value,record:ht,hasExpand:!!di,selectedRowKeys:ut.value,rowSpan:Gs,colSpan:un,renderExpandBtn:Mg},Jo.value==="handle"?Mu:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),Re.value.map((Bn,Pi)=>{var Ws;const Sr=`${Mt}-${e.spanAll?Ai.value.length+Pi:Pi}-${ht.key}`,[Gs,un]=(Ws=Pg.value[Sr])!=null?Ws:[1,1];if(Ah.value.includes(Sr))return null;const tu=Pi===0?{showExpandBtn:ht.hasSubtree,indentSize:ht.hasSubtree?Ft-20:Ft}:{},sC=ka(Bn.dataIndex);return R(Lp,xt({key:`td-${Pi}`,style:sC,rowIndex:Mt,record:ht,column:Bn,operations:Ai.value,dataColumns:Re.value,rowSpan:Gs,renderExpandBtn:Mg,colSpan:un},tu,{onClick:es=>Z1(ht,Bn,es),onDblclick:es=>$u(ht,Bn,es),onMouseenter:es=>Ao(ht,Bn,es),onMouseleave:es=>mv(ht,Bn,es),onContextmenu:es=>Sa(ht,Bn,es)}),{td:n.td})})],tr:n.tr}),Vo&&sf(ht,{indentSize:Ft+e.indentSize,indexPath:wr,allowDrag:Qt&&!eu,expandContent:di})])},Ms=()=>{const ht=Yi.value.some(Mt=>!!Mt.hasSubtree);return R(W2,null,{default:()=>[Yi.value.length>0?Yi.value.map((Mt,Ft)=>gc(Mt,Ft,{indentSize:ht?20:0})):eb()],tbody:n.tbody})},ib=()=>R(H2,null,{default:()=>[be.value.map((ht,Mt)=>R(qf,{key:`header-row-${Mt}`},{default:()=>[Mt===0&&Ai.value.map((Ft,Ut)=>{var Qt;return R(lje,{key:`operation-th-${Ut}`,ref:Cn=>{Cn?.$el&&Ft.name&&(W.value[Ft.name]=Cn.$el)},operationColumn:Ft,operations:Ai.value,selectAll:!!(Ft.name==="selection-checkbox"&&((Qt=e.rowSelection)!=null&&Qt.showCheckedAll)),rowSpan:be.value.length},null)}),ht.map((Ft,Ut)=>{const Qt=e.columnResizable&&!!Ft.dataIndex&&Ut{Cn?.$el&&Ft.dataIndex&&(W.value[Ft.dataIndex]=Cn.$el)},column:Ft,operations:Ai.value,dataColumns:Re.value,resizable:Qt,onClick:Cn=>nf(Ft,Cn)},{th:n.th})})]}))],thead:n.thead}),Lh=()=>{var ht,Mt;if(ce.value){const Ft=Me(e.stickyHeader)?`${e.stickyHeader}px`:void 0,Ut=[(ht=M.value)==null?void 0:ht.outerClass];e.stickyHeader&&Ut.push(`${E}-header-sticky`);const Qt={top:Ft,...(Mt=M.value)==null?void 0:Mt.outerStyle},Cn=F.value?Kc:"div";return R(Tt,null,[e.showHeader&&R(Cn,xt({ref:te,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!F.value}],style:{overflowY:Eh.value?"scroll":void 0,top:F.value?void 0:Ft}},x.value?{hide:Yi.value.length!==0,disableVertical:!0,...M.value,outerClass:Ut,outerStyle:Qt}:void 0),{default:()=>[R("table",{class:`${E}-element`,style:Oi.value,cellpadding:0,cellspacing:0},[R(nT,{dataColumns:Re.value,operations:Ai.value,columnWidth:De},null),ib()])]}),R(Wc,{onResize:Lg},{default:()=>{var Un,wr;return[In.value&&Yi.value.length?R(O1,xt({ref:di=>{di?.$el&&(Y.value=di.$el)},class:`${E}-body`,data:Yi.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:Ni.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:ci}),{item:({item:di,index:Vo})=>gc(di,Vo)}):R(Cn,xt({ref:G,class:`${E}-body`,style:{maxHeight:Me((Un=e.scroll)==null?void 0:Un.y)?`${(wr=e.scroll)==null?void 0:wr.y}px`:"100%"}},x.value?{outerStyle:{display:"flex",minHeight:"0"},...M.value}:void 0,{onScroll:ci}),{default:()=>[R("table",{class:`${E}-element`,style:Ni.value,cellpadding:0,cellspacing:0},[Yi.value.length!==0&&R(nT,{dataColumns:Re.value,operations:Ai.value,columnWidth:De},null),Ms()])]})]}}),Sl.value&&Sl.value.length>0&&R("div",{ref:V,class:`${E}-tfoot`,style:{overflowY:Eh.value?"scroll":"hidden"}},[R("table",{class:`${E}-element`,style:Ni.value,cellpadding:0,cellspacing:0},[R(nT,{dataColumns:Re.value,operations:Ai.value,columnWidth:De},null),rb()])])])}return R(Wc,{onResize:()=>Vt()},{default:()=>[R("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:Ni.value},[R(nT,{dataColumns:Re.value,operations:Ai.value,columnWidth:De},null),e.showHeader&&ib(),Ms(),Sl.value&&Sl.value.length>0&&rb()])]})},af=ht=>{var Mt;const Ft=(Mt=e.scroll)!=null&&Mt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,Ut=F.value?Kc:"div";return R(Tt,null,[R("div",{class:[`${E}-container`,J1.value]},[R(Ut,xt({ref:U,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!ce.value}],style:Ft},x.value?{outerStyle:{height:"100%"},...M.value}:void 0,{onScroll:Zr}),{default:()=>[ht?R("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[ht()]):Lh()]})]),n.footer&&R("div",{class:`${E}-footer`},[n.footer()])])},yc=()=>{var ht,Mt;const Ft=Dn(e.pagination)?Vs(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return R("div",{class:$s.value},[(ht=n["pagination-left"])==null?void 0:ht.call(n),R(_U,xt({total:ef.value.length,current:Pu.value,pageSize:tf.value,onChange:Ut=>{td(Ut),Oe("pagination")},onPageSizeChange:Ut=>{_h(Ut),Oe("pagination")}},Ft),null),(Mt=n["pagination-right"])==null?void 0:Mt.call(n)])},lf=N(()=>{var ht,Mt;if(Io((ht=e.scroll)==null?void 0:ht.y))return{height:(Mt=e.scroll)==null?void 0:Mt.y}});return{render:()=>{var ht;return n.default?R("div",{class:rf.value},[af(n.default)]):($.value=(ht=n.columns)==null?void 0:ht.call(n),R("div",{class:rf.value,style:lf.value},[$.value,R(Gc,iC.value,{default:()=>[e.pagination!==!1&&(Yi.value.length>0||ed.value.length>0)&&qe.value&&yc(),af(),e.pagination!==!1&&(Yi.value.length>0||ed.value.length>0)&&!qe.value&&yc()]})]))},selfExpand:on,selfExpandAll:Mn,selfSelect:st,selfSelectAll:St,selfResetFilters:pt,selfClearFilters:et,selfResetSorters:vt,selfClearSorters:Nt}},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 Cc=(e,t)=>{const n=Yl(e,t),r=ae(n.value);return bt(n,(o,a)=>{D1(o,a)||(r.value=o)}),r};var T4=fe({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}=Ot(e),p=Cc(e,"sortable"),m=Cc(e,"filterable"),y=Cc(e,"cellClass"),b=Cc(e,"headerCellClass"),w=Cc(e,"bodyCellClass"),C=Cc(e,"summaryCellClass"),x=Cc(e,"cellStyle"),_=Cc(e,"headerCellStyle"),E=Cc(e,"bodyCellStyle"),S=Cc(e,"summaryCellStyle"),I=Cc(e,"tooltip"),$=Di(),L=rn(B1,{}),O=rn(bne,void 0),{children:F,components:M}=Lw("TableColumn"),j=Lt(new Map);gr(bne,{addChild:(G,Y)=>{j.set(G,Y)},removeChild:G=>{j.delete(G)}});const U=ae();bt([M,j],([G,Y])=>{if(G.length>0){const ee=[];G.forEach(te=>{const J=Y.get(te);J&&ee.push(J)}),U.value=ee}else U.value=void 0});const X=Lt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:m,cellClass:y,headerCellClass:b,bodyCellClass:w,summaryCellClass:C,cellStyle:x,headerCellStyle:_,bodyCellStyle:E,summaryCellStyle:S,index:f,tooltip:I,children:U,slots:t});return $&&(O?O.addChild($.uid,X):(n=L.addColumn)==null||n.call(L,$.uid,X)),uo(()=>{var G;$&&(O?O.removeChild($.uid):(G=L.removeColumn)==null||G.call(L,$.uid))}),()=>{var G;return F.value=(G=t.default)==null?void 0:G.call(t),F.value}}});const pje=Object.assign(kR,{Thead:H2,Tbody:W2,Tr:qf,Th:G2,Td:Lp,Column:T4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+kR.name,kR),e.component(n+H2.name,H2),e.component(n+W2.name,W2),e.component(n+qf.name,qf),e.component(n+G2.name,G2),e.component(n+Lp.name,Lp),e.component(n+T4.name,T4)}}),vje=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},mje=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},DU=Symbol("ArcoTabs"),gje=fe({name:"TabsTab",components:{IconHover:Ki,IconClose:ps},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=ve("tabs-tab"),r=rn(DU,{}),o=f=>{e.tab.disabled||t("click",e.tab.key,f)},a=f=>{f.key==="Enter"&&o(f)},s=N(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=f=>{e.tab.disabled||t("delete",e.tab.key,f)},c=N(()=>[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 yje(e,t,n,r,o,a){const s=ke("icon-close"),l=ke("icon-hover");return z(),q("div",xt({tabindex:"0",class:e.cls},e.eventHandlers),[A("span",{class:ne(`${e.prefixCls}-title`)},[Qe(e.$slots,"default")],2),e.editable&&e.tab.closable?(z(),Ne(l,{key:0,class:ne(`${e.prefixCls}-close-btn`),onClick:lo(e.handleDelete,["stop"])},{default:se(()=>[R(s)]),_:1},8,["class","onClick"])):ge("v-if",!0)],16)}var bje=xe(gje,[["render",yje]]);function Sje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var Tne=fe({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=ve("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?R(ri,null,null):R(yl,null,null):e.type==="next"?R(dv,null,null):R(Aw,null,null),a=N(()=>[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 R("div",{class:a.value,onClick:r},[R(Ki,{disabled:e.disabled},Sje(s=o())?s:{default:()=>[s]})])}}});const kje=fe({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=Ot(e),n=ve("tabs-nav-ink"),r=ae(0),o=ae(0),a=N(()=>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)}};qt(()=>{nn(()=>s())}),ma(()=>{s()});const l=N(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function wje(e,t,n,r,o,a){return z(),q("div",{class:ne(e.cls),style:Ee(e.style)},null,6)}var Cje=xe(kje,[["render",wje]]),xje=fe({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}=Ot(e),c=ve("tabs-nav"),f=ae(),h=ae(),p=ae({}),m=N(()=>{if(!Zt(o.value))return p.value[o.value]}),y=ae(),b=N(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),w=ae(!1),C=ae(0),x=ae(0),_=ae(0),E=()=>{var te,J,Z;return(Z=s.value==="vertical"?(te=f.value)==null?void 0:te.offsetHeight:(J=f.value)==null?void 0:J.offsetWidth)!=null?Z:0},S=()=>!h.value||!f.value?0:s.value==="vertical"?h.value.offsetHeight-f.value.offsetHeight:h.value.offsetWidth-f.value.offsetWidth,I=()=>{w.value=$(),w.value?(C.value=E(),x.value=S(),_.value>x.value&&(_.value=x.value)):_.value=0},$=()=>f.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>f.value.offsetHeight:h.value.offsetWidth>f.value.offsetWidth:!1,L=te=>{(!f.value||!h.value||te<0)&&(te=0),_.value=Math.min(te,x.value)},O=()=>{if(!m.value||!f.value||!w.value)return;mje(f.value,s.value);const te=s.value==="horizontal",J=te?"offsetLeft":"offsetTop",Z=te?"offsetWidth":"offsetHeight",ce=m.value[J],ye=m.value[Z],ie=f.value[Z],Ce=window.getComputedStyle(m.value),Re=te?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",be=parseFloat(Ce[Re])||0;l.value==="auto"?ce<_.value?L(ce-be):ce+ye>_.value+ie&&L(ce+ye-ie+be):l.value==="center"?L(ce+(ye-ie+be)/2):l.value==="start"?L(ce-be):l.value==="end"?L(ce+ye-ie+be):Me(l.value)&&L(ce-l.value)},F=te=>{if(!w.value)return;te.preventDefault();const{deltaX:J,deltaY:Z}=te;Math.abs(J)>Math.abs(Z)?L(_.value+J):L(_.value+Z)},M=(te,J)=>{t("click",te,J)},j=(te,J)=>{t("delete",te,J),nn(()=>{delete p.value[te]})},V=te=>{const J=te==="previous"?_.value-C.value:_.value+C.value;L(J)},W=()=>{I(),y.value&&y.value.$forceUpdate()};bt(r,()=>{nn(()=>{I()})}),bt([a,l],()=>{setTimeout(()=>{O()},0)}),qt(()=>{I(),f.value&&Wr(f.value,"wheel",F,{passive:!1})}),Fr(()=>{f.value&&mi(f.value,"wheel",F)});const U=()=>!b.value||!e.showAddButton?null:R("div",{class:`${c}-add-btn`,onClick:te=>t("add",te)},[R(Ki,null,{default:()=>[R(Vd,null,null)]})]),X=N(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),G=N(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),Y=N(()=>vje({direction:e.direction,type:e.type,offset:_.value})),ee=N(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:w.value}]);return()=>{var te;return R("div",{class:X.value},[w.value&&R(Tne,{type:"previous",direction:e.direction,disabled:_.value<=0,onClick:V},null),R(Wc,{onResize:()=>I()},{default:()=>[R("div",{class:ee.value,ref:f},[R(Wc,{onResize:W},{default:()=>[R("div",{ref:h,class:G.value,style:Y.value},[e.tabs.map((J,Z)=>R(bje,{key:J.key,ref:ce=>{ce?.$el&&(p.value[J.key]=ce.$el)},active:J.key===o.value,tab:J,editable:e.editable,onClick:M,onDelete:j},{default:()=>{var ce,ye,ie;return[(ie=(ye=(ce=J.slots).title)==null?void 0:ye.call(ce))!=null?ie:J.title]}})),e.type==="line"&&m.value&&R(Cje,{ref:y,activeTabRef:m.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!w.value&&U()])]}),w.value&&R(Tne,{type:"next",direction:e.direction,disabled:_.value>=x.value,onClick:V},null),R("div",{class:`${c}-extra`},[w.value&&U(),(te=n.extra)==null?void 0:te.call(n)])])}}}),wR=fe({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}=Ot(e),l=ve("tabs"),{mergedSize:c}=Us(r),f=N(()=>e.direction==="vertical"?"left":e.position),h=N(()=>["left","right"].includes(f.value)?"vertical":"horizontal"),{children:p,components:m}=Lw("TabPane"),y=Lt(new Map),b=N(()=>{const j=[];return m.value.forEach(V=>{const W=y.get(V);W&&j.push(W)}),j}),w=N(()=>b.value.map(j=>j.key)),C=(j,V)=>{y.set(j,V)},x=j=>{y.delete(j)},_=ae(e.defaultActiveKey),E=N(()=>{var j;const V=(j=e.activeKey)!=null?j:_.value;return Zt(V)?w.value[0]:V}),S=N(()=>{const j=w.value.indexOf(E.value);return j===-1?0:j});gr(DU,Lt({lazyLoad:o,destroyOnHide:a,activeKey:E,addItem:C,removeItem:x,trigger:s}));const I=j=>{j!==E.value&&(_.value=j,t("update:activeKey",j),t("change",j))},$=(j,V)=>{I(j),t("tabClick",j,V)},L=j=>{t("add",j),e.autoSwitch&&nn(()=>{const V=w.value[w.value.length-1];I(V)})},O=(j,V)=>{t("delete",j,V)},F=()=>R("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[R("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${S.value*100}%`}},[p.value])]),M=N(()=>[l,`${l}-${h.value}`,`${l}-${f.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var j;return p.value=(j=n.default)==null?void 0:j.call(n),R("div",{class:M.value},[f.value==="bottom"&&F(),R(xje,{tabs:b.value,activeKey:E.value,activeIndex:S.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:$,onAdd:L,onDelete:O},{extra:n.extra}),f.value!=="bottom"&&F()])}}});const _je=fe({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}=Ot(e),s=Di(),l=ve("tabs"),c=rn(DU,{}),f=ae(),h=N(()=>s?.vnode.key),p=N(()=>h.value===c.activeKey),m=ae(c.lazyLoad?p.value:!0),y=Lt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,y)),uo(()=>{var b;s?.uid&&((b=c.removeItem)==null||b.call(c,s.uid))}),bt(p,b=>{b?m.value||(m.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(m.value=!1)}),ma(()=>{y.slots={...t}}),{prefixCls:l,active:p,itemRef:f,mounted:m}}});function Tje(e,t,n,r,o,a){return z(),q("div",{ref:"itemRef",class:ne([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-pane`)},[Qe(e.$slots,"default")],2)):ge("v-if",!0)],2)}var E4=xe(_je,[["render",Tje]]);const Eje=Object.assign(wR,{TabPane:E4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+wR.name,wR),e.component(n+E4.name,E4)}});function Ije(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=Ot(e);function a(){return o.value?[]:void 0}function s(C){if(!Zt(C))return o.value?En(C)?C:[C,void 0]:C}const l=N(()=>{const C=s(t.value);return Iu(C,r.value)}),c=N(()=>{const C=s(n.value);return Iu(C,r.value)}),[f,h]=ua(Zt(l.value)?Zt(c.value)?a():c.value:l.value);bt(l,()=>{Zt(l.value)&&h(a())});const p=N(()=>l.value||f.value),[m,y]=ua(p.value);bt([p],()=>{y(p.value)});const[b,w]=ua();return bt([m],()=>{w(void 0)}),{computedValue:p,panelValue:m,inputValue:b,setValue:h,setPanelValue:y,setInputValue:w}}var Aje=fe({name:"TimePickerRangePanel",components:{Panel:F3},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}=Ot(e),o=ae(r.value);bt(r,()=>{o.value=r.value});const a=N(()=>n?.value?n.value[o.value]:void 0);function s(c){const f=Zt(n)||Zt(n?.value)?[]:[...n.value];f[o.value]=c,t("select",f)}function l(){if(d2(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 R(F3,e,this.$slots)}});const Lje=fe({name:"TimePicker",components:{Trigger:Ls,DateInput:zfe,DateRangeInput:ahe,Panel:F3,RangePanel:Aje,IconClockCircle:FA},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:y,disabledSeconds:b}=Ot(e),{mergedDisabled:w,eventHandlers:C}=qi({disabled:f}),x=N(()=>n.value==="time-range"),_=ve("timepicker"),E=ae(),{format:S,use12Hours:I}=yU(Lt({format:r,use12Hours:o})),{computedValue:$,panelValue:L,inputValue:O,setValue:F,setPanelValue:M,setInputValue:j}=Ije(Lt({modelValue:a,defaultValue:s,isRange:x,format:S})),[V,W]=As(c.value,Lt({value:l})),U=de=>{de!==V.value&&(W(de),t("popup-visible-change",de),t("update:popupVisible",de))},{t:X}=no(),[G,Y]=ua(0),ee=N(()=>{const de=h?.value;return x.value?Zt(de)?X("datePicker.rangePlaceholder.time"):En(de)?de:[de,de]:Zt(de)?X("datePicker.placeholder.time"):de}),te=qfe(Lt({disabledHours:m,disabledMinutes:y,disabledSeconds:b}));function J(de){var Te,Oe;if(lU(de,$.value)){const je=Id(de,S.value),We=zl(de);t("update:modelValue",je),t("change",je,We),(Oe=(Te=C.value)==null?void 0:Te.onChange)==null||Oe.call(Te)}}function Z(de,Te){if(te(de))return;let Oe=de;if(En(de)){const je=Ko();Oe=de.map(We=>(We&&(We=We.year(je.year()),We=We.month(je.month()),We=We.date(je.date())),We)),d2(Oe)&&(Oe=Ok(Oe)),Oe?.length===0&&(Oe=void 0)}J(Oe),F(Oe),Te!==V.value&&U(Te)}function ce(de,Te){M(de),Te!==V.value&&U(Te)}function ye(de){E.value&&E.value.focus&&E.value.focus(de)}function ie(de){w.value||(U(de),de&&nn(()=>{ye(G.value)}))}function Ce(de){const Te=Id(de,S.value),Oe=zl(de);t("select",Te,Oe),p.value&&(!x.value||d2(de))?Z(de,!0):(ce(de,!0),j(void 0))}function Re(de){Z(de,!1)}function be(){Z(L.value||$.value,!1)}function Fe(){if(d2(L.value))Z(L.value,!1);else{const de=(G.value+1)%2;Y(de),ye(de)}}function De(de){U(!0);const Te=de.target.value;if(j(Te),!B3(Te,S.value))return;const Oe=Ko(Te,S.value);te(Oe)||(p.value?Z(Oe,!0):ce(Oe,!0))}function Ge(de){U(!0);const Te=de.target.value,Oe=En(O.value)?[...O.value]:En(L.value)&&Id(L.value,S.value)||[];if(Oe[G.value]=Te,j(Oe),!B3(Te,S.value))return;const je=Ko(Te,S.value);if(te(je))return;const We=En(L.value)?[...L.value]:[];We[G.value]=je,p.value&&d2(We)?Z(We,!0):ce(We,!0)}function qe(de){de.stopPropagation(),M(void 0),Z(void 0,x.value)}bt(V,(de,Te)=>{de!==Te&&M($.value),de||j(void 0)});const Ve=N(()=>x.value?{focusedIndex:G.value,onFocusedIndexChange:de=>{Y(de)},onChange:Ge,onPressEnter:Fe}:{onChange:De,onPressEnter:be}),he=N(()=>x.value?{displayIndex:G.value,onDisplayIndexChange:de=>{Y(de),ye(de)}}:{});return{refInput:E,isRange:x,prefixCls:_,panelVisible:V,focusedInputIndex:G,computedPlaceholder:ee,panelValue:L,inputValue:O,computedFormat:S,computedUse12Hours:I,inputProps:Ve,panelProps:he,mergedDisabled:w,onPanelVisibleChange:ie,onInputClear:qe,onPanelSelect:Ce,onPanelConfirm:Re,onPanelClick:()=>{ye(G.value)}}}});function Pje(e,t,n,r,o,a){const s=ke("IconClockCircle"),l=ke("Trigger");return z(),Ne(l,xt({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:se(()=>[A("div",{class:ne(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(z(),Ne(la(e.isRange?"RangePanel":"Panel"),xt(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}),Wi({_:2},[e.$slots.extra?{name:"extra-footer",fn:se(()=>[Qe(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:se(()=>[(z(),Ne(la(e.isRange?"DateRangeInput":"DateInput"),xt({...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}),Wi({"suffix-icon":se(()=>[Qe(e.$slots,"suffix-icon",{},()=>[R(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:se(()=>[Qe(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 CR=xe(Lje,[["render",Pje]]);const $je=Object.assign(CR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+CR.name,CR)}}),spe=Symbol("ArcoTimeline"),Mje=(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]},Rje=fe({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=ve("timeline-item"),n=Di(),r=rn(spe,{}),o=N(()=>{var m,y,b;return(b=(y=r.items)==null?void 0:y.indexOf((m=n?.uid)!=null?m:-1))!=null?b:-1}),a=N(()=>{var m;return(m=r?.direction)!=null?m:"vertical"}),s=N(()=>{var m;return(m=r?.labelPosition)!=null?m:"same"}),l=N(()=>{const{items:m=[],reverse:y,labelPosition:b,mode:w="left"}=r,C=a.value,x=Mje(o.value,w,C,e.position);return[t,{[`${t}-${C}-${x}`]:C,[`${t}-label-${b}`]:b,[`${t}-last`]:o.value===(y===!0?0:m.length-1)}]}),c=N(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),f=N(()=>{const{direction:m}=r||{};return{[m==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=N(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=N(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:f,computedDotStyle:p,labelPosition:s}}});function Dje(e,t,n,r,o,a){return z(),q("div",{role:"listitem",class:ne(e.cls)},[A("div",{class:ne(`${e.prefixCls}-dot-wrapper`)},[A("div",{class:ne(e.dotLineCls),style:Ee(e.computedDotLineStyle)},null,6),A("div",{class:ne(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-dot-custom`)},[Qe(e.$slots,"dot")],2)):(z(),q("div",{key:1,class:ne(e.dotTypeCls),style:Ee(e.computedDotStyle)},null,6))],2)],2),A("div",{class:ne(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-content`)},[Qe(e.$slots,"default")],2)):ge("v-if",!0),e.labelPosition!=="relative"?(z(),q("div",{key:1,class:ne(`${e.prefixCls}-label`)},[e.$slots.label?Qe(e.$slots,"label",{key:0}):(z(),q(Tt,{key:1},[$e(_e(e.label),1)],64))],2)):ge("v-if",!0)],2),e.labelPosition==="relative"?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-label`)},[e.$slots.label?Qe(e.$slots,"label",{key:0}):(z(),q(Tt,{key:1},[$e(_e(e.label),1)],64))],2)):ge("v-if",!0)],2)}var Oy=xe(Rje,[["render",Dje]]),xR=fe({name:"Timeline",components:{Item:Oy,Spin:Gc},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=ve("timeline"),r=N(()=>e.pending||t.pending),{children:o,components:a}=Lw("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:f}=Ot(e),h=Lt({items:a,direction:l,reverse:s,labelPosition:c,mode:f});gr(spe,h);const p=N(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var m,y;return r.value?o.value=(m=t.default)==null?void 0:m.call(t).concat(R(Oy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&R("div",null,[e.pending])],dot:()=>{var b,w;return(w=(b=t.dot)==null?void 0:b.call(t))!=null?w:R(Gc,{size:12},null)}})):o.value=(y=t.default)==null?void 0:y.call(t),R("div",{role:"list",class:p.value},[o.value])}}});const Oje=Object.assign(xR,{Item:Oy,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+xR.name,xR),e.component(n+Oy.name,Oy)}}),Nje=fe({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=ve("icon"),r=N(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Bje=["stroke-width","stroke-linecap","stroke-linejoin"];function Fje(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Bje)}var _R=xe(Nje,[["render",Fje]]);const Au=Object.assign(_R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_R.name,_R)}}),OU=Symbol("ArcoTransfer");var jje=fe({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=ve("transfer-list-item"),n=rn(OU,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=N(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return R("div",{class:o.value,onClick:r},[e.allowClear||e.simple?R("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]):R(Uc,{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&&R(Ki,{class:`${t}-remove-btn`,onClick:a},{default:()=>[R(ps,null,null)]})])}}});const Vje=fe({name:"TransferView",components:{Empty:PE,Checkbox:Uc,IconHover:Ki,IconDelete:Au,InputSearch:uv.Search,List:Nhe,TransferListItem:jje,Scrollbar:Kc},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=ve("transfer-view"),r=ae(""),o=rn(OU,void 0),a=N(()=>e.dataInfo.selected.length),s=N(()=>e.dataInfo.data.length),l=N(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=N(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{y?o?.onSelect([...e.selected,...e.dataInfo.allValidValues]):o?.onSelect(e.selected.filter(b=>!e.dataInfo.allValidValues.includes(b)))},h=N(()=>e.dataInfo.data.filter(y=>r.value?y.label.includes(r.value):!0));return{prefixCls:n,filteredData:h,filter:r,checked:l,indeterminate:c,countSelected:a,countRendered:s,handleSelectAllChange:f,handleSearch:y=>{t("search",y,e.type)},handleClear:()=>{o?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function zje(e,t,n,r,o,a){const s=ke("checkbox"),l=ke("icon-delete"),c=ke("icon-hover"),f=ke("input-search"),h=ke("transfer-list-item"),p=ke("list"),m=ke("Scrollbar"),y=ke("Empty");return z(),q("div",{class:ne(e.prefixCls)},[A("div",{class:ne(`${e.prefixCls}-header`)},[Qe(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},()=>[A("span",{class:ne(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(z(),q("span",{key:0,class:ne(`${e.prefixCls}-header-title-simple`)},_e(e.title),3)):(z(),Ne(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:se(()=>[$e(_e(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(z(),Ne(c,{key:0,disabled:e.disabled,class:ne(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:se(()=>[R(l)]),_:1},8,["disabled","class","onClick"])):e.simple?ge("v-if",!0):(z(),q("span",{key:1,class:ne(`${e.prefixCls}-header-count`)},_e(e.dataInfo.selected.length)+" / "+_e(e.dataInfo.data.length),3))])],2),e.showSearch?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-search`)},[R(f,xt({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)):ge("v-if",!0),A("div",{class:ne(`${e.prefixCls}-body`)},[e.filteredData.length>0?(z(),Ne(m,{key:0},{default:se(()=>{var b,w;return[Qe(e.$slots,"default",{data:e.filteredData,selectedKeys:(b=e.transferCtx)==null?void 0:b.selected,onSelect:(w=e.transferCtx)==null?void 0:w.onSelect},()=>[R(p,{class:ne(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:se(()=>[(z(!0),q(Tt,null,Kt(e.filteredData,C=>(z(),Ne(h,{key:C.value,type:e.type,data:C,simple:e.simple,"allow-clear":e.allowClear,disabled:e.disabled||C.disabled},null,8,["type","data","simple","allow-clear","disabled"]))),128))]),_:1},8,["class"])])]}),_:3})):(z(),Ne(y,{key:1,class:ne(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var Uje=xe(Vje,[["render",zje]]);const Hje=fe({name:"Transfer",components:{ArcoButton:po,TransferView:Uje,IconLeft:yl,IconRight:ri},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}=qi({disabled:Yl(e,"disabled")}),a=ve("transfer"),s=ae(e.defaultValue),l=N(()=>{var _;return(_=e.modelValue)!=null?_:s.value}),c=ae(e.defaultSelected),f=N(()=>{var _;return(_=e.selected)!=null?_:c.value}),h=N(()=>{var _;return(_=e.title)==null?void 0:_[0]}),p=N(()=>{var _;return(_=e.title)==null?void 0:_[1]}),m=N(()=>{const _={data:[],allValidValues:[],selected:[],validSelected:[]},E={data:[],allValidValues:[],selected:[],validSelected:[]};for(const S of e.data)l.value.includes(S.value)?(E.data.push(S),S.disabled||E.allValidValues.push(S.value),f.value.includes(S.value)&&(E.selected.push(S.value),S.disabled||E.validSelected.push(S.value))):(_.data.push(S),S.disabled||_.allValidValues.push(S.value),f.value.includes(S.value)&&(_.selected.push(S.value),S.disabled||_.validSelected.push(S.value)));return{sourceInfo:_,targetInfo:E}}),y=(_,E)=>{t("search",_,E)},b=(_,E)=>{var S,I;const $=E==="target"?[...l.value,..._]:l.value.filter(L=>!_.includes(L));C(m.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=$,t("update:modelValue",$),t("change",$),(I=(S=o.value)==null?void 0:S.onChange)==null||I.call(S)},w=_=>{const E=_==="target"?m.value.sourceInfo.validSelected:m.value.targetInfo.validSelected;b(E,_)},C=_=>{c.value=_,t("update:selected",_),t("select",_)};gr(OU,Lt({selected:f,slots:n,moveTo:b,onSelect:C}));const x=N(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:x,dataInfo:m,computedSelected:f,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:w,handleSearch:y}}});function Wje(e,t,n,r,o,a){const s=ke("transfer-view"),l=ke("icon-right"),c=ke("arco-button"),f=ke("icon-left");return z(),q("div",{class:ne(e.cls)},[R(s,{type:"source",class:ne(`${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},Wi({_:2},[e.$slots.source?{name:"default",fn:se(h=>[Qe(e.$slots,"source",ai(Fs(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:se(h=>[Qe(e.$slots,"source-title",ai(Fs(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?ge("v-if",!0):(z(),q("div",{key:0,class:ne([`${e.prefixCls}-operations`])},[R(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:se(()=>[Qe(e.$slots,"to-target-icon",{},()=>[R(l)])]),_:3},8,["disabled"]),e.oneWay?ge("v-if",!0):(z(),Ne(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:se(()=>[Qe(e.$slots,"to-source-icon",{},()=>[R(f)])]),_:3},8,["disabled"]))],2)),R(s,{type:"target",class:ne(`${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},Wi({_:2},[e.$slots.target?{name:"default",fn:se(h=>[Qe(e.$slots,"target",ai(Fs(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:se(h=>[Qe(e.$slots,"target-title",ai(Fs(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 TR=xe(Hje,[["render",Wje]]);const Gje=Object.assign(TR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+TR.name,TR)}}),ape=Symbol("TreeInjectionKey");function Kje(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function qje(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function uj(e){return e.selectable&&!e.disabled}function Ene(e){return!e.isLeaf&&e.children}function Yje(e){return Ka(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 zm(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function NU(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{zm(r)&&n.push(r.key,...NU(r))}),n}function lpe(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(zm(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(zm))||[];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=NU(t);n?f.forEach(cj(l)):f.forEach(dj(l)),f.forEach(dj(c)),lpe({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function Xje(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=NU(h);p.forEach(cj(s)),p.forEach(dj(l)),a.add(c),l.delete(c),lpe({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function KA(){return rn(ape)||{}}const Zje=fe({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=ve("icon"),r=N(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jje=["stroke-width","stroke-linecap","stroke-linejoin"];function Qje(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Jje)}var ER=xe(Zje,[["render",Qje]]);const BU=Object.assign(ER,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ER.name,ER)}});var eVe=fe({name:"TreeNodeSwitcher",components:{IconLoading:ha,RenderFunction:kh},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}=Ot(e),s=KA(),l=Nc(t,"switcher-icon"),c=Nc(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:Is(ha);let m=null,y=!1;if(p)f&&(m=(n=o())!=null?n:Is(BU));else{const w=f?Is("span",{class:`${r}-${h?"minus":"plus"}-icon`}):Is(MU);m=(t=o())!=null?t:w,y=!f}if(!m)return null;const b=Is("span",{class:`${r}-switcher-icon`,onClick:s},m);return y?Is(Ki,{class:`${r}-icon-hover`},()=>b):b}});const upe=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function tVe(e,t){return!!(Zt(e)?t:e)}function nVe(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 Ine({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return Zt(e)?Yt(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function rVe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=nVe(r,l),f=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...Vs(c,["children"]),key:(n=c.key)!=null?n:upe(),selectable:Ine({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:f,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Ine({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:tVe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function iVe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const f=rVe({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 cpe(){const e=Di(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:upe()},n=ae(t());return ma(()=>{n.value=t()}),n}function oVe(e){const{key:t,refTitle:n}=Ot(e),r=KA(),o=ae(!1),a=ae(!1),s=ae(!1),l=ae(0),c=ng(f=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:m}=f,y=h.height/4,b=m-p;l.value=b[]}},setup(e){const t=cpe(),n=ve("tree-node"),r=KA(),o=N(()=>{var Y;return(Y=r.key2TreeNode)==null?void 0:Y.get(t.value)}),a=N(()=>o.value.treeNodeData),s=N(()=>o.value.children),l=N(()=>{var Y;const ee=(Y=r.treeProps)==null?void 0:Y.actionOnNodeClick;return ee?sVe(ee):[]}),{isLeaf:c,isTail:f,selectable:h,disabled:p,disableCheckbox:m,draggable:y}=Ot(e),b=N(()=>{var Y;return[`${n}`,{[`${n}-selected`]:O.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:f.value,[`${n}-expanded`]:F.value,[`${n}-disabled-selectable`]:!h.value&&!((Y=r.treeProps)!=null&&Y.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),w=ae(),{isDragOver:C,isDragging:x,isAllowDrop:_,dropPosition:E,setDragStatus:S}=oVe(Lt({key:t,refTitle:w})),I=N(()=>[`${n}-title`,{[`${n}-title-draggable`]:y.value,[`${n}-title-gap-top`]:C.value&&_.value&&E.value<0,[`${n}-title-gap-bottom`]:C.value&&_.value&&E.value>0,[`${n}-title-highlight`]:!x.value&&C.value&&_.value&&E.value===0,[`${n}-title-dragging`]:x.value,[`${n}-title-block`]:o.value.blockNode}]),$=N(()=>{var Y,ee;return(ee=(Y=r.checkedKeys)==null?void 0:Y.includes)==null?void 0:ee.call(Y,t.value)}),L=N(()=>{var Y,ee;return(ee=(Y=r.indeterminateKeys)==null?void 0:Y.includes)==null?void 0:ee.call(Y,t.value)}),O=N(()=>{var Y,ee;return(ee=(Y=r.selectedKeys)==null?void 0:Y.includes)==null?void 0:ee.call(Y,t.value)}),F=N(()=>{var Y,ee;return(ee=(Y=r.expandedKeys)==null?void 0:Y.includes)==null?void 0:ee.call(Y,t.value)}),M=N(()=>{var Y,ee;return(ee=(Y=r.loadingKeys)==null?void 0:Y.includes)==null?void 0:ee.call(Y,t.value)}),j=N(()=>r.dragIcon),V=N(()=>r.nodeIcon);function W(Y){var ee,te;c.value||(!((ee=s.value)!=null&&ee.length)&&Yt(r.onLoadMore)?r.onLoadMore(t.value):(te=r?.onExpand)==null||te.call(r,!F.value,t.value,Y))}const U=Lt({loading:M,checked:$,selected:O,indeterminate:L,expanded:F,isLeaf:c}),X=N(()=>r.nodeTitle?()=>{var Y;return(Y=r.nodeTitle)==null?void 0:Y.call(r,a.value,U)}:void 0),G=N(()=>r.nodeExtra?()=>{var Y;return(Y=r.nodeExtra)==null?void 0:Y.call(r,a.value,U)}:void 0);return{nodekey:t,refTitle:w,prefixCls:n,classNames:b,titleClassNames:I,indeterminate:L,checked:$,expanded:F,selected:O,treeTitle:X,treeNodeData:a,loading:M,treeDragIcon:j,treeNodeIcon:V,extra:G,nodeStatus:U,onCheckboxChange(Y,ee){var te;m.value||p.value||(te=r.onCheck)==null||te.call(r,Y,t.value,ee)},onTitleClick(Y){var ee;l.value.includes("expand")&&W(Y),!(!h.value||p.value)&&((ee=r.onSelect)==null||ee.call(r,t.value,Y))},onSwitcherClick:W,onDragStart(Y){var ee;if(y.value){Y.stopPropagation(),S("dragStart",Y);try{(ee=Y.dataTransfer)==null||ee.setData("text/plain","")}catch{}}},onDragEnd(Y){y.value&&(Y.stopPropagation(),S("dragEnd",Y))},onDragOver(Y){y&&(Y.stopPropagation(),Y.preventDefault(),S("dragOver",Y))},onDragLeave(Y){y.value&&(Y.stopPropagation(),S("dragLeave",Y))},onDrop(Y){!y.value||!_.value||(Y.stopPropagation(),Y.preventDefault(),S("drop",Y))}}}}),lVe=["data-level","data-key"],uVe=["draggable"];function cVe(e,t,n,r,o,a){const s=ke("NodeSwitcher"),l=ke("Checkbox"),c=ke("RenderFunction"),f=ke("IconDragDotVertical");return z(),q("div",{class:ne(e.classNames),"data-level":e.level,"data-key":e.nodekey},[ge(" 缩进 "),A("span",{class:ne(`${e.prefixCls}-indent`)},[(z(!0),q(Tt,null,Kt(e.level,h=>(z(),q("span",{key:h,class:ne([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),ge(" switcher "),A("span",{class:ne([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[R(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},Wi({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:se(()=>[ge(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),Qe(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:se(()=>[ge(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),Qe(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),ge(" checkbox "),e.checkable?(z(),Ne(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"])):ge("v-if",!0),ge(" 内容 "),A("span",{ref:"refTitle",class:ne(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[1]||(t[1]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDragover:t[2]||(t[2]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[3]||(t[3]=(...h)=>e.onDragLeave&&e.onDragLeave(...h)),onDrop:t[4]||(t[4]=(...h)=>e.onDrop&&e.onDrop(...h)),onClick:t[5]||(t[5]=(...h)=>e.onTitleClick&&e.onTitleClick(...h))},[e.$slots.icon||e.icon||e.treeNodeIcon?(z(),q("span",{key:0,class:ne([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[ge(" 节点图标 "),e.$slots.icon?Qe(e.$slots,"icon",ai(xt({key:0},e.nodeStatus))):e.icon?(z(),Ne(c,xt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(z(),Ne(c,xt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):ge("v-if",!0)],2)):ge("v-if",!0),A("span",{class:ne(`${e.prefixCls}-title-text`)},[e.treeTitle?(z(),Ne(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(z(),q(Tt,{key:1},[ge(" 标题,treeTitle 优先级高于节点的 title "),Qe(e.$slots,"title",{title:e.title},()=>[$e(_e(e.title),1)])],2112)),e.draggable?(z(),q("span",{key:2,class:ne([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[ge(" 拖拽图标 "),e.$slots["drag-icon"]?Qe(e.$slots,"drag-icon",ai(xt({key:0},e.nodeStatus))):e.dragIcon?(z(),Ne(c,xt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(z(),Ne(c,xt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(z(),Ne(f,{key:3}))],2)):ge("v-if",!0)],2)],42,uVe),ge(" 额外 "),e.extra?(z(),Ne(c,{key:1,"render-func":e.extra},null,8,["render-func"])):ge("v-if",!0)],10,lVe)}var hj=xe(aVe,[["render",cVe]]);const dVe=fe({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 fVe(e,t,n,r,o,a){return z(),Ne(Xo,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:se(()=>[Qe(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var hVe=xe(dVe,[["render",fVe]]);const pVe=fe({name:"TransitionNodeList",components:{ExpandTransition:hVe,BaseTreeNode:hj},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${ve("tree")}-node-list`],r=KA(),{nodeKey:o}=Ot(e),a=N(()=>{var c,f;return(f=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:f.call(c,o.value)}),s=N(()=>{var c;const f=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var m,y;return(m=p.pathParentKeys)!=null&&m.includes(o.value)?!r.filterTreeNode||((y=r.filterTreeNode)==null?void 0:y.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 y=p.pathParentKeys.indexOf(o.value);return p.pathParentKeys.slice(y+1).every(b=>f.has(b))})}),l=N(()=>{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 vVe(e,t,n,r,o,a){const s=ke("BaseTreeNode"),l=ke("ExpandTransition");return z(),Ne(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:se(()=>[e.show?(z(),q("div",{key:0,class:ne(e.classNames)},[(z(!0),q(Tt,null,Kt(e.visibleNodeList,c=>(z(),Ne(s,xt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):ge("v-if",!0)]),_:1},8,["expanded","onEnd"])}var mVe=xe(pVe,[["render",vVe]]),gVe=fe({name:"TreeNode",inheritAttrs:!1,props:{...hj.props},setup(e,{slots:t,attrs:n}){const r=cpe();return()=>R(Tt,null,[R(hj,xt(e,n,{key:r.value}),t),R(mVe,{key:r.value,nodeKey:r.value},null)])}});function yVe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=Ot(e),l=ae(!1),c=ae([]),f=ae([]),h=ae(),p=ae(),m=b=>Xje({initCheckedKeys:b,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),y=b=>{const w=m(b);[c.value,f.value]=w};return y(n.value||t?.value||[]),Yo(()=>{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:N(()=>h.value||c.value),indeterminateKeys:N(()=>o.value&&a.value?a.value:p.value||f.value),setCheckedState(b,w,C=!1){return C?y(b):(c.value=b,f.value=w),[c.value,f.value]}}}function dpe(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=Ot(e),f=ae([]);Yo(()=>{var m,y;f.value=iVe(t.value||[],{selectable:(m=r?.value)!=null?m:!1,showLine:!!o?.value,blockNode:!!a?.value,checkable:(y=s?.value)!=null?y:!1,fieldNames:n?.value,loadMore:!!l?.value,draggable:!!c?.value})});const h=N(()=>Kje(f.value)),p=N(()=>qje(h.value));return{treeData:f,flattenTreeData:h,key2TreeNode:p}}const bVe=fe({name:"Tree",components:{VirtualList:O1,TreeNode:gVe},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:y,checkedStrategy:b,selectable:w,checkable:C,blockNode:x,fieldNames:_,size:E,defaultExpandAll:S,filterTreeNode:I,draggable:$,allowDrop:L,defaultExpandSelected:O,defaultExpandChecked:F,autoExpandParent:M,halfCheckedKeys:j,onlyCheckLeaf:V,animation:W}=Ot(e),U=ve("tree"),X=N(()=>[`${U}`,{[`${U}-checkable`]:C.value,[`${U}-show-line`]:o.value},`${U}-size-${E.value}`]),G=Nc(n,"switcher-icon"),Y=Nc(n,"loading-icon"),ee=Nc(n,"drag-icon"),te=Nc(n,"icon"),J=Nc(n,"title"),Z=Nc(n,"extra"),{treeData:ce,flattenTreeData:ye,key2TreeNode:ie}=dpe(Lt({treeData:r,selectable:w,showLine:o,blockNode:x,checkable:C,fieldNames:_,loadMore:s,draggable:$})),{checkedKeys:Ce,indeterminateKeys:Re,setCheckedState:be}=yVe(Lt({defaultCheckedKeys:f,checkedKeys:c,checkStrictly:l,key2TreeNode:ie,halfCheckedKeys:j,onlyCheckLeaf:V})),[Fe,De]=As(p?.value||[],Lt({value:h})),Ge=ae([]),qe=ae();function Ve(){if(y?.value){const ze=new Set([]);return y.value.forEach(Se=>{if(ze.has(Se))return;const st=ie.value.get(Se);st&&[...M.value?st.pathParentKeys:[],Se].forEach(St=>ze.add(St))}),[...ze]}if(S.value)return ye.value.filter(ze=>ze.children&&ze.children.length).map(ze=>ze.key);if(O.value||F.value){const ze=new Set([]),Se=st=>{st.forEach(St=>{const At=ie.value.get(St);At&&(At.pathParentKeys||[]).forEach(gt=>ze.add(gt))})};return O.value&&Se(Fe.value),F.value&&Se(Ce.value),[...ze]}return[]}const[he,de]=As(Ve(),Lt({value:m})),Te=ae([]),Oe=N(()=>{const ze=new Set(he.value),Se=new Set(Te.value);return ye.value.filter(st=>{var St;if(!(!I||!I.value||I?.value(st.treeNodeData)))return!1;const gt=Zt(st.parentKey),Dt=(St=st.pathParentKeys)==null?void 0:St.every(on=>ze.has(on)&&!Se.has(on));return gt||Dt})});function je(ze,Se=b.value){let st=[...ze];return Se==="parent"?st=ze.filter(St=>{const At=ie.value.get(St);return At&&!(!Zt(At.parentKey)&&ze.includes(At.parentKey))}):Se==="child"&&(st=ze.filter(St=>{var At,gt;return!((gt=(At=ie.value.get(St))==null?void 0:At.children)!=null&>.length)})),st}function We(ze){return ze.map(Se=>{var st;return((st=ie.value.get(Se))==null?void 0:st.treeNodeData)||void 0}).filter(Boolean)}function it(ze){const{targetKey:Se,targetChecked:st,newCheckedKeys:St,newIndeterminateKeys:At,event:gt}=ze,Dt=Se?ie.value.get(Se):void 0,on=je(St);t("update:checkedKeys",on),t("update:halfCheckedKeys",At),t("check",on,{checked:st,node:Dt?.treeNodeData,checkedNodes:We(on),halfCheckedKeys:At,halfCheckedNodes:We(At),e:gt})}function Ze(ze){const{targetKey:Se,targetSelected:st,newSelectedKeys:St,event:At}=ze,gt=Se?ie.value.get(Se):void 0;t("update:selectedKeys",St),t("select",St,{selected:st,node:gt?.treeNodeData,selectedNodes:We(St),e:At})}function pt(ze){const{targetKey:Se,targetExpanded:st,newExpandedKeys:St,event:At}=ze,gt=Se?ie.value.get(Se):void 0;t("expand",St,{expanded:st,node:gt?.treeNodeData,expandedNodes:We(St),e:At}),t("update:expandedKeys",St)}function et(ze){const[Se,st]=be(ze,[],!0);it({newCheckedKeys:Se,newIndeterminateKeys:st})}function Pt(ze){let Se=ze;!a.value&&ze.length>1&&(Se=[ze[0]]),De(Se),Ze({newSelectedKeys:Se})}function $t(ze){Te.value=[],de(ze),pt({newExpandedKeys:ze})}function vt(ze,Se,st){if(!ze.length)return;let St=[...Ce.value],At=[...Re.value];ze.forEach(gt=>{const Dt=ie.value.get(gt);Dt&&([St,At]=fj({node:Dt,checked:Se,checkedKeys:[...St],indeterminateKeys:[...At],checkStrictly:l.value}))}),be(St,At),it({targetKey:st,targetChecked:Zt(st)?void 0:Se,newCheckedKeys:St,newIndeterminateKeys:At})}function Nt(ze,Se,st){if(!ze.length)return;let St;if(a.value){const At=new Set(Fe.value);ze.forEach(gt=>{Se?At.add(gt):At.delete(gt)}),St=[...At]}else St=Se?[ze[0]]:[];De(St),Ze({targetKey:st,targetSelected:Zt(st)?void 0:Se,newSelectedKeys:St})}function dt(ze,Se,st){const St=new Set(he.value);ze.forEach(gt=>{Se?St.add(gt):St.delete(gt),Xe(gt)});const At=[...St];de(At),pt({targetKey:st,targetExpanded:Zt(st)?void 0:Se,newExpandedKeys:At})}function lt(ze,Se,st){const St=ie.value.get(Se);if(!St)return;const[At,gt]=fj({node:St,checked:ze,checkedKeys:Ce.value,indeterminateKeys:Re.value,checkStrictly:l.value});be(At,gt),it({targetKey:Se,targetChecked:ze,newCheckedKeys:At,newIndeterminateKeys:gt,event:st})}function Pe(ze,Se){if(!ie.value.get(ze))return;let St,At;if(a.value){const gt=new Set(Fe.value);At=!gt.has(ze),At?gt.add(ze):gt.delete(ze),St=[...gt]}else At=!0,St=[ze];De(St),Ze({targetKey:ze,targetSelected:At,newSelectedKeys:St,event:Se})}function Ae(ze,Se,st){if(Te.value.includes(Se)||!ie.value.get(Se))return;const At=new Set(he.value);ze?At.add(Se):At.delete(Se);const gt=[...At];de(gt),W.value&&Te.value.push(Se),pt({targetKey:Se,targetExpanded:ze,newExpandedKeys:gt,event:st})}function Xe(ze){const Se=Te.value.indexOf(ze);Te.value.splice(Se,1)}const ut=N(()=>s?.value?async ze=>{if(!Yt(s.value))return;const Se=ie.value.get(ze);if(!Se)return;const{treeNodeData:st}=Se;Ge.value=[...new Set([...Ge.value,ze])];try{await s.value(st),Ge.value=Ge.value.filter(St=>St!==ze),Ae(!0,ze),Ce.value.includes(ze)&<(!0,ze)}catch(St){Ge.value=Ge.value.filter(At=>At!==ze),console.error("[tree]load data error: ",St)}}:void 0),Ke=Lt({treeProps:e,switcherIcon:G,loadingIcon:Y,dragIcon:ee,nodeIcon:te,nodeTitle:J,nodeExtra:Z,treeData:ce,flattenTreeData:ye,key2TreeNode:ie,checkedKeys:Ce,indeterminateKeys:Re,selectedKeys:Fe,expandedKeys:he,loadingKeys:Ge,currentExpandKeys:Te,onLoadMore:ut,filterTreeNode:I,onCheck:lt,onSelect:Pe,onExpand:Ae,onExpandEnd:Xe,allowDrop(ze,Se){const st=ie.value.get(ze);return st&&Yt(L.value)?!!L.value({dropNode:st.treeNodeData,dropPosition:Se}):!0},onDragStart(ze,Se){const st=ie.value.get(ze);qe.value=st,st&&t("dragStart",Se,st.treeNodeData)},onDragEnd(ze,Se){const st=ie.value.get(ze);qe.value=void 0,st&&t("dragEnd",Se,st.treeNodeData)},onDragOver(ze,Se){const st=ie.value.get(ze);st&&t("dragOver",Se,st.treeNodeData)},onDragLeave(ze,Se){const st=ie.value.get(ze);st&&t("dragLeave",Se,st.treeNodeData)},onDrop(ze,Se,st){const St=ie.value.get(ze);qe.value&&St&&!(St.key===qe.value.key||St.pathParentKeys.includes(qe.value.key||""))&&t("drop",{e:st,dragNode:qe.value.treeNodeData,dropNode:St.treeNodeData,dropPosition:Se})}});return gr(ape,Ke),{classNames:X,visibleTreeNodeList:Oe,treeContext:Ke,virtualListRef:ae(),computedSelectedKeys:Fe,computedExpandedKeys:he,computedCheckedKeys:Ce,computedIndeterminateKeys:Re,getPublicCheckedKeys:je,getNodes:We,internalCheckNodes:vt,internalSetCheckedKeys:et,internalSelectNodes:Nt,internalSetSelectedKeys:Pt,internalExpandNodes:dt,internalSetExpandedKeys:$t}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&zm(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&&zm(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=En(e),l=(s?e:[e]).filter(c=>{const f=a.get(c);return f&&zm(f)&&(r||!n||Yje(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=En(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&&Ene(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=En(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Ene(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function SVe(e,t,n,r,o,a){const s=ke("TreeNode"),l=ke("VirtualList");return z(),q("div",{class:ne(e.classNames)},[e.virtualListProps?(z(),Ne(l,xt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:se(({item:c})=>[(z(),Ne(s,xt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(z(!0),q(Tt,{key:1},Kt(e.visibleTreeNodeList,c=>(z(),Ne(s,xt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var IR=xe(bVe,[["render",SVe]]);const pj=Object.assign(IR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+IR.name,IR)}}),kVe=fe({name:"Typography",setup(){return{classNames:[ve("typography")]}}});function wVe(e,t,n,r,o,a){return z(),q("article",{class:ne(e.classNames)},[Qe(e.$slots,"default")],2)}var AR=xe(kVe,[["render",wVe]]);const CVe=fe({name:"TypographyEditContent",components:{Input:uv},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${ve("typography")}-edit-content`],o=ae();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return qt(()=>{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 xVe(e,t,n,r,o,a){const s=ke("Input");return z(),q("div",{class:ne(e.classNames)},[R(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:Yf(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var _Ve=xe(CVe,[["render",xVe]]);const TVe=fe({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=ve("icon"),r=N(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EVe=["stroke-width","stroke-linecap","stroke-linejoin"];function IVe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,EVe)}var LR=xe(TVe,[["render",IVe]]);const qA=Object.assign(LR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LR.name,LR)}}),AVe=fe({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=ve("icon"),r=N(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LVe=["stroke-width","stroke-linecap","stroke-linejoin"];function PVe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,LVe)}var PR=xe(AVe,[["render",PVe]]);const FU=Object.assign(PR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PR.name,PR)}}),$Ve=fe({name:"TypographyOperations",components:{Tooltip:uc,IconCheckCircleFill:bh,IconCopy:qA,IconEdit:FU},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=ve("typography"),r=N(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=no();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function MVe(e,t,n,r,o,a){const s=ke("IconEdit"),l=ke("Tooltip"),c=ke("IconCheckCircleFill"),f=ke("IconCopy");return z(),q(Tt,null,[e.editable?(z(),Ne(l,xt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:se(()=>[A("span",{class:ne(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=lo((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[R(s)],2)]),_:1},16,["content"])):ge("v-if",!0),e.copyable?(z(),Ne(l,ai(xt({key:1},e.copyTooltipProps)),{content:se(()=>[Qe(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[$e(_e(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:se(()=>[A("span",{class:ne({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=lo((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[Qe(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(z(),Ne(c,{key:0})):(z(),Ne(f,{key:1}))])],2)]),_:3},16)):ge("v-if",!0),e.showExpand?(z(),q("a",{key:2,class:ne(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=lo((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[Qe(e.$slots,"expand-node",{expanded:e.expanded},()=>[$e(_e(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):ge("v-if",!0)],64)}var Ane=xe($Ve,[["render",MVe]]);let as;function RVe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function $R(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var DVe=(e,t,n,r)=>{as||(as=document.createElement("div"),document.body.appendChild(as));const{rows:o,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=RVe(l),f=$R(l.lineHeight),h=Math.round(f*o+$R(l.paddingTop)+$R(l.paddingBottom));as.setAttribute("style",c),as.setAttribute("aria-hidden","true"),as.style.height="auto",as.style.minHeight="auto",as.style.maxHeight="auto",as.style.position="fixed",as.style.left="0",as.style.top="-99999999px",as.style.zIndex="-200",as.style.whiteSpace="normal";const p=i1({render(){return R("span",null,[n])}});p.mount(as);const m=Array.prototype.slice.apply(as.childNodes[0].cloneNode(!0).childNodes);p.unmount(),as.innerHTML="";const y=document.createTextNode(`${s}${a}`);as.appendChild(y),m.forEach(x=>{as.appendChild(x)});const b=document.createTextNode(r);as.insertBefore(b,y);function w(){return as.offsetHeight<=h}if(w())return{ellipsis:!1,text:r};function C(x,_=0,E=r.length,S=0){const I=Math.floor((_+E)/2),$=r.slice(0,I);if(x.textContent=$,_>=E-1)for(let L=E;L>=_;L-=1){const O=r.slice(0,L);if(x.textContent=O,w()||!O)return}w()?C(x,I,E,I):C(x,_,I,S)}return C(b),{text:b.textContent,ellipsis:!0}};const OVe=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 O0;function NVe(e){if(!e)return"";O0||(O0=document.createElement("div"),O0.setAttribute("aria-hidden","true"),document.body.appendChild(O0));const t=i1({render(){return R("div",null,[e])}});t.mount(O0);const n=O0.innerText;return t.unmount(),n}function fpe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}function BVe(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 Lne(e,t){const{mark:n}=e,r=BVe(e),o=Dn(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>R(s,s==="mark"?{style:o}:{},fpe(a)?a:{default:()=>[a]}),t)}function FVe(e){const t=!!e.showTooltip,n=Dn(e.showTooltip)&&e.showTooltip.type==="popover"?sU:uc,r=Dn(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...Vs(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var jU=fe({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}=Ot(e),y=ve("typography"),b=N(()=>[y,{[`${y}-${e.type}`]:e.type,[`${y}-disabled`]:e.disabled}]),w=ae(),C=ae(""),[x,_]=As(a.value,Lt({value:o})),E=N(()=>c.value&&x.value);function S(){n("update:editing",!0),n("editStart"),_(!0)}function I(Ce){n("update:editText",Ce),n("change",Ce)}function $(){x.value&&(n("update:editing",!1),n("editEnd"),_(!1))}const L=ae(!1);let O=null;function F(){var Ce;const Re=(Ce=f.value)!=null?Ce:C.value;OVe(Re||""),L.value=!0,n("copy",Re),O=setTimeout(()=>{L.value=!1},p.value)}Fr(()=>{O&&clearTimeout(O),O=null});const M=ae(!1),j=ae(!1),V=ae(""),W=N(()=>FVe(Dn(s.value)&&s.value||{}));let U=null;function X(){const Ce=!j.value;j.value=Ce,n("expand",Ce)}function G(Ce=!1){return W.value.css?R(Ane,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:L.value,isEllipsis:ce.value,expanded:j.value,forceRenderExpand:Ce||j.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:S,onCopy:F,onExpand:X},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):R(Ane,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:L.value,isEllipsis:M.value,expanded:j.value,forceRenderExpand:Ce,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:S,onCopy:F,onExpand:X},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function Y(){if(!w.value)return;const{ellipsis:Ce,text:Re}=DVe(w.value,W.value,G(!!W.value.expandable),C.value);M.value!==Ce&&(M.value=Ce,W.value.css||n("ellipsis",Ce)),V.value!==Re&&(V.value=Re||"")}function ee(){s.value&&!j.value&&(D3(U),U=Xde(()=>{Y()}))}Fr(()=>{D3(U)}),bt(()=>W.value.rows,()=>{ee()}),bt(s,Ce=>{Ce?ee():M.value=!1});let te=[];const J=()=>{if(s.value||l.value||c.value){const Ce=NVe(te);Ce!==C.value&&(C.value=Ce,ee())}};qt(J),ma(J);const Z=ae(),ce=ae(!1),ye=()=>{if(w.value&&Z.value){const Ce=Z.value.offsetHeight>w.value.offsetHeight;Ce!==ce.value&&(ce.value=Ce,n("ellipsis",Ce))}},ie=N(()=>j.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":W.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Ce,Re;if(te=((Ce=t.default)==null?void 0:Ce.call(t))||[],E.value){const Oe=(Re=h.value)!=null?Re:C.value;return R(_Ve,{text:Oe,onChange:je=>{je!==Oe&&I(je)},onEnd:$},null)}const{suffix:be,ellipsisStr:Fe,showTooltip:De,tooltipProps:Ge,TooltipComponent:qe}=W.value,Ve=M.value&&!j.value,he=Ve&&!De?{title:C.value}:{},de=m.value;if(W.value.css){const Oe=Lne(e,te),je=R(de,xt({class:b.value,ref:w,style:ie.value},he,r),{default:()=>[R("span",{ref:Z},[Oe])]});return ce.value?R(qe,xt(Ge,{onResize:()=>ye()}),{default:()=>[je],content:()=>C.value}):R(Wc,{onResize:()=>{ye()}},fpe(je)?je:{default:()=>[je]})}const Te=Lne(e,Ve?V.value:te);return R(Wc,{onResize:()=>ee()},{default:()=>[R(de,xt({class:b.value,ref:w},he,r),{default:()=>[Ve&&De?R(qe,Ge,{default:()=>[R("span",null,[Te])],content:()=>C.value}):Te,Ve?Fe:null,be,G()]})]})}}}),I4=fe({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=Ot(e),r=ve("typography"),o=N(()=>t?.value?"blockquote":"div"),a=N(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return R(jU,xt({class:t},this.$attrs,{component:e}),this.$slots)}}),A4=fe({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=Ot(e);return{component:N(()=>`h${t?.value}`)}},render(){const{component:e}=this;return R(jU,xt(this.$attrs,{component:e}),this.$slots)}}),L4=fe({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=Ot(e);return{component:N(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return R(jU,xt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const jVe=Object.assign(AR,{Paragraph:I4,Title:A4,Text:L4,install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+AR.name,AR),e.component(n+I4.name,I4),e.component(n+A4.name,A4),e.component(n+L4.name,L4)}}),Pne=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},VVe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},$ne=(e,t)=>Yt(e)?e(t):e,zVe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=Py,onSuccess:l=Py,onError:c=Py})=>{const f=$ne(n,e)||"file",h=$ne(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=y=>{const b=y.total>0?pl.round(y.loaded/y.total,2):0;s(b,y)},p.onerror=function(b){c(b)},p.onload=()=>{if(p.status<200||p.status>=300){c(Pne(p));return}l(Pne(p))};const m=new FormData;if(h)for(const y of Object.keys(h))m.append(y,h[y]);e.file&&m.append(f,e.file),p.open("post",t??"",!0);for(const y of Object.keys(o))p.setRequestHeader(y,o[y]);return p.send(m),{abort(){p.abort()}}},hpe=(e,t)=>{if(t&&e){const n=En(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},UVe=(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,hpe(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()))},HVe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},MR=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>hpe(r,t)):n},WVe=fe({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=ve("icon"),r=N(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GVe=["stroke-width","stroke-linecap","stroke-linejoin"];function KVe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,GVe)}var RR=xe(WVe,[["render",KVe]]);const F1=Object.assign(RR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RR.name,RR)}});var qVe=fe({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=ve("upload"),{t:r}=no(),o=ae(!1),a=ae(null),s=ae(null),l=ae(0),c=C=>{C==="subtract"?l.value-=1:C==="add"?l.value+=1:C==="reset"&&(l.value=0)},f=C=>{if(!e.disabled){if(Yt(e.onButtonClick)){const x=e.onButtonClick(C);if(tg(x)){x.then(_=>{e.uploadFiles(MR(_))});return}}a.value&&a.value.click()}},h=C=>{const x=C.target;x.files&&e.uploadFiles(MR(x.files)),x.value=""},p=C=>{var x,_;if(C.preventDefault(),o.value=!1,c("reset"),!e.disabled)if(e.directory&&((x=C.dataTransfer)!=null&&x.items))UVe(C.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=MR((_=C.dataTransfer)==null?void 0:_.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},m=C=>{C.preventDefault(),c("subtract"),l.value===0&&(o.value=!1,c("reset"))},y=C=>{C.preventDefault(),!e.disabled&&!o.value&&(o.value=!0)},b=()=>t.default?R("span",null,[t.default()]):e.listType==="picture-card"?R("div",{class:`${n}-picture-card`},[R("div",{class:`${n}-picture-card-text`},[R(Vd,null,null)]),e.tip&&R("div",{class:`${n}-tip`},[e.tip])]):e.draggable?R("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:o.value}]},[R("div",null,[R(Vd,null,null)]),R("div",{class:`${n}-drag-text`},[o.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&R("div",{class:`${n}-tip`},[e.tip])]):R(po,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>R(F1,null,null)}),w=N(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>R("span",{ref:s,class:w.value,onClick:f,onDragenter:()=>{c("add")},onDrop:p,onDragover:y,onDragleave:m},[R("input",xt({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 YVe=fe({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=ve("icon"),r=N(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XVe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZVe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,XVe)}var DR=xe(YVe,[["render",ZVe]]);const ppe=Object.assign(DR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DR.name,DR)}}),JVe=fe({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=ve("icon"),r=N(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QVe=["stroke-width","stroke-linecap","stroke-linejoin"];function eze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,QVe)}var OR=xe(JVe,[["render",eze]]);const vpe=Object.assign(OR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OR.name,OR)}}),YA=Symbol("ArcoUpload");var mpe=fe({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=ve("upload-progress"),{t:n}=no(),r=rn(YA,void 0),o=()=>{var s,l,c,f,h,p,m,y,b,w,C;return e.file.status==="error"?R("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"?R(F1,null,null):n("upload.retry")]):e.file.status==="done"?R("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(C=(w=(m=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:m.call(p))!=null?w:(b=(y=r?.customIcon)==null?void 0:y.successIcon)==null?void 0:b.call(y))!=null?C:R(_g,null,null)]):e.file.status==="init"?R(uc,{content:n("upload.start")},{default:()=>{var x,_,E,S,I,$;return[R("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[($=(I=(_=r==null?void 0:(x=r.slots)["start-icon"])==null?void 0:_.call(x))!=null?I:(S=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:S.call(E))!=null?$:R(vpe,null,null)])]}}):r?.showCancelButton&&R(uc,{content:n("upload.cancel")},{default:()=>{var x,_,E,S,I,$;return[R("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[($=(I=(_=r==null?void 0:(x=r.slots)["cancel-icon"])==null?void 0:_.call(x))!=null?I:(S=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:S.call(E))!=null?$:R(ppe,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=VVe(e.file.status);return R(Whe,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>R("span",{class:t},[a(),o()])}});const tze=fe({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=ve("icon"),r=N(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nze=["stroke-width","stroke-linecap","stroke-linejoin"];function rze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,nze)}var NR=xe(tze,[["render",rze]]);const gpe=Object.assign(NR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NR.name,NR)}}),ize=fe({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=ve("icon"),r=N(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oze=["stroke-width","stroke-linecap","stroke-linejoin"];function sze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,oze)}var BR=xe(ize,[["render",sze]]);const ype=Object.assign(BR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BR.name,BR)}}),aze=fe({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=ve("icon"),r=N(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,lze)}var FR=xe(aze,[["render",uze]]);const bpe=Object.assign(FR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FR.name,FR)}}),cze=fe({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=ve("icon"),r=N(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dze=["stroke-width","stroke-linecap","stroke-linejoin"];function fze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),A("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,dze)}var jR=xe(cze,[["render",fze]]);const Spe=Object.assign(jR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jR.name,jR)}});var Mne=fe({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${ve("upload-list")}-item`,{t:r}=no(),o=rn(YA,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")?R(ype,null,null):c.includes("pdf")?R(gpe,null,null):c.includes("audio")?R(Spe,null,null):c.includes("video")?R(bpe,null,null):R(BU,null,null)};return()=>{var s,l,c,f,h,p,m,y,b,w,C,x,_,E,S,I,$,L,O,F,M,j,V;return R("div",{class:[n,`${n}-${e.file.status}`]},[R("div",{class:`${n}-content`},[o?.listType==="picture"&&R("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:R("img",xt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null)]),R("div",{class:`${n}-name`},[o?.listType==="text"&&R("span",{class:`${n}-file-icon`},[(b=(y=(h=o==null?void 0:(f=o.slots)["file-icon"])==null?void 0:h.call(f,{fileItem:e.file}))!=null?y:(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?R("a",xt({class:`${n}-name-link`,target:"_blank",href:e.file.url},o?.download?{download:e.file.name}:void 0),[(S=(E=(C=o==null?void 0:(w=o.slots)["file-name"])==null?void 0:C.call(w,{fileItem:e.file}))!=null?E:(_=(x=o?.customIcon)==null?void 0:x.fileName)==null?void 0:_.call(x,e.file))!=null?S:e.file.name]):R("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(M=(F=($=o==null?void 0:(I=o.slots)["file-name"])==null?void 0:$.call(I,{fileItem:e.file}))!=null?F:(O=(L=o?.customIcon)==null?void 0:L.fileName)==null?void 0:O.call(L,e.file))!=null?M:e.file.name]),e.file.status==="error"&&R(uc,{content:r("upload.error")},{default:()=>{var W,U,X,G,Y,ee;return[R("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(ee=(Y=(U=o==null?void 0:(W=o.slots)["error-icon"])==null?void 0:U.call(W))!=null?Y:(G=(X=o?.customIcon)==null?void 0:X.errorIcon)==null?void 0:G.call(X))!=null?ee:R(Kd,null,null)])]}})]),R(mpe,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&R("span",{class:`${n}-operation`},[R(Ki,{onClick:()=>{var W;return(W=o?.onRemove)==null?void 0:W.call(o,e.file)}},{default:()=>{var W,U,X,G,Y,ee;return[R("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(ee=(Y=(U=o==null?void 0:(W=o.slots)["remove-icon"])==null?void 0:U.call(W))!=null?Y:(G=(X=o?.customIcon)==null?void 0:X.removeIcon)==null?void 0:G.call(X))!=null?ee:R(Au,null,null)])]}})]),(V=o==null?void 0:(j=o.slots)["extra-button"])==null?void 0:V.call(j,{fileItem:e.file})])}}}),Rne=fe({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${ve("upload-list")}-picture`,r=N(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=rn(YA,void 0),a=()=>{var s,l,c,f,h,p,m,y,b,w,C,x,_,E,S,I,$,L,O,F,M,j,V,W,U,X,G,Y,ee;return e.file.status==="uploading"?R(mpe,{file:e.file,listType:"picture-card"},null):R(Tt,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:R("img",xt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null),R("div",{class:`${n}-mask`},[e.file.status==="error"&&o?.showCancelButton&&R("div",{class:`${n}-error-tip`},[R("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(b=(y=(h=o==null?void 0:(f=o.slots)["error-icon"])==null?void 0:h.call(f))!=null?y:(m=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:m.call(p))!=null?b:R($A,null,null)])]),R("div",{class:`${n}-operation`},[e.file.status!=="error"&&o?.showPreviewButton&&R("span",{class:[o?.iconCls,`${o?.iconCls}-preview`],onClick:()=>o?.onPreview(e.file)},[(S=(E=(C=o==null?void 0:(w=o.slots)["preview-icon"])==null?void 0:C.call(w))!=null?E:(_=(x=o?.customIcon)==null?void 0:x.previewIcon)==null?void 0:_.call(x))!=null?S:R(Kp,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&R("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(M=(F=($=o==null?void 0:(I=o.slots)["retry-icon"])==null?void 0:$.call(I))!=null?F:(O=(L=o?.customIcon)==null?void 0:L.retryIcon)==null?void 0:O.call(L))!=null?M:R(F1,null,null)]),!o?.disabled&&o?.showRemoveButton&&R("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(G=(X=(V=o==null?void 0:(j=o.slots)["remove-icon"])==null?void 0:V.call(j))!=null?X:(U=(W=o?.customIcon)==null?void 0:W.removeIcon)==null?void 0:U.call(W))!=null?G:R(Au,null,null)]),(ee=o==null?void 0:(Y=o.slots)["extra-button"])==null?void 0:ee.call(Y,e.file)])])])};return()=>R("span",{class:r.value},[a()])}}),hze=fe({name:"UploadList",components:{UploadListItem:Mne,UploadPictureItem:Rne},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=ve("upload"),r=N(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>Yt(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?R(Rne,{file:a,key:`item-${s}`},null):R(Mne,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>R($1,{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))]}})}}),VR=fe({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:y}=Ot(e),b=ve("upload"),{mergedDisabled:w,eventHandlers:C}=qi({disabled:o}),x=ae([]),_=new Map,E=new Map,S=N(()=>e.limit>0&&x.value.length>=e.limit),I=ie=>{_.clear();const Ce=ie?.map((Re,be)=>{var Fe,De,Ge;const qe=(Fe=Re.status)!=null?Fe:"done",Ve=Lt({...Re,uid:(De=Re.uid)!=null?De:`${Date.now()}${be}`,status:qe,percent:(Ge=Re.percent)!=null?Ge:["error","init"].indexOf(qe)>-1?0:1});return _.set(Ve.uid,Ve),Ve});x.value=Ce??[]};I(e.defaultFileList),bt(r,ie=>{ie&&I(ie)},{immediate:!0,deep:!0});const $=ie=>{var Ce,Re;t("update:fileList",x.value),t("change",x.value,ie),(Re=(Ce=C.value)==null?void 0:Ce.onChange)==null||Re.call(Ce)},L=(ie,Ce)=>{for(const Re of x.value)if(Re.uid===ie){Re.file=Ce,$(Re);break}},O=ie=>{const Ce=(Ge,qe)=>{const Ve=_.get(ie.uid);Ve&&(Ve.status="uploading",Ve.percent=Ge,t("progress",Ve,qe),$(Ve))},Re=Ge=>{const qe=_.get(ie.uid);qe&&(qe.status="done",qe.percent=1,qe.response=Ge,e.responseUrlKey&&(Yt(e.responseUrlKey)?qe.url=e.responseUrlKey(qe):Ge[e.responseUrlKey]&&(qe.url=Ge[e.responseUrlKey])),E.delete(qe.uid),t("success",qe),$(qe))},be=Ge=>{const qe=_.get(ie.uid);qe&&(qe.status="error",qe.percent=0,qe.response=Ge,E.delete(qe.uid),t("error",qe),$(qe))},Fe={fileItem:ie,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Ce,onSuccess:Re,onError:be};ie.status="uploading",ie.percent=0;const De=Yt(e.customRequest)?e.customRequest(Fe):zVe(Fe);E.set(ie.uid,De),$(ie)},F=ie=>{var Ce;const Re=E.get(ie.uid);if(Re){(Ce=Re.abort)==null||Ce.call(Re),E.delete(ie.uid);const be=_.get(ie.uid);be&&(be.status="error",be.percent=0,$(be))}},M=ie=>{if(ie){const Ce=_.get(ie.uid);Ce&&O(Ce)}else for(const Ce of x.value)Ce.status==="init"&&O(Ce)},j=async(ie,Ce)=>{const Re=`${Date.now()}-${Ce}`,be=HVe(ie)?URL.createObjectURL(ie):void 0,Fe=Lt({uid:Re,file:ie,url:be,name:ie.name,status:"init",percent:0});_.set(Re,Fe),x.value=[...x.value,Fe],$(Fe),e.autoUpload&&O(Fe)},V=ie=>{if(e.limit>0&&x.value.length+ie.length>e.limit){t("exceedLimit",x.value,ie);return}for(let Ce=0;Ce{be&&j(Ka(be)?Re:be,Ce)}).catch(be=>{console.error(be)}):j(Re,Ce)}},W=ie=>{x.value=x.value.filter(Ce=>Ce.uid!==ie.uid),$(ie)},U=ie=>{Yt(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(ie)).then(Ce=>{Ce&&W(ie)}).catch(Ce=>{console.error(Ce)}):W(ie)},X=ie=>{if(e.imagePreview&&ie.url){const Ce=ce.value.indexOf(ie.url);Ce>-1&&(te.value=Ce,ee.value=!0)}t("preview",ie)};gr(YA,Lt({disabled:w,listType:a,iconCls:`${b}-icon`,showRemoveButton:f,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:y,imageLoading:p,download:m,customIcon:s,slots:n,onUpload:O,onAbort:F,onRemove:U,onPreview:X}));const G=N(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),Y=()=>{const ie=R(qVe,{key:"arco-upload-button",disabled:w.value,draggable:e.draggable,listType:e.listType,uploadFiles:V,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||S.value&&!(Dn(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:G.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?R("span",null,[ie,R("div",{class:`${b}-tip`},[e.tip])]):ie},ee=ae(!1),te=ae(0),J=ie=>{te.value=ie},Z=ie=>{ee.value=ie},ce=N(()=>x.value.filter(ie=>!!ie.url).map(ie=>ie.url));return{prefixCls:b,render:()=>e.showFileList?R("div",{class:[`${b}-wrapper`,`${b}-wrapper-type-${e.listType}`]},[e.imagePreview&&ce.value.length>0&&R(V2,{srcList:ce.value,visible:ee.value,current:te.value,onChange:J,onVisibleChange:Z},null),e.listType!=="picture-card"&&e.showUploadButton&&Y(),R(hze,{fileList:x.value,listType:e.listType},{"upload-button":Y,"upload-item":n["upload-item"]})]):e.showUploadButton&&Y(),innerSubmit:M,innerAbort:F,innerUpdateFile:L,innerUpload:V}},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 pze=Object.assign(VR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+VR.name,VR)}});var zR=fe({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=ve("overflow-list"),o=ae(),a=ae(),s=ae(),l={},c=[],f=ae(0),h=ae(0),p=N(()=>h.value>0),m=ae(0),y=N(()=>e.from==="start");bt(f,(C,x)=>{h.value>0&&(h.value+=C-x,h.value<0&&(h.value=0))}),bt(h,C=>{t("change",C)});const b=()=>{var C,x,_;if(o.value&&l.value&&s.value){const E=s.value.offsetWidth;if(E>1&&(h.value===0||Eb(),{flush:"post"}),qt(()=>{s.value&&s.value.offsetWidth<1&&b()});const w=()=>{var C,x;const _=y.value?{marginRight:`${e.margin}px`}:void 0;return R("div",{ref:a,class:`${r}-overflow`,style:_},[(x=(C=n.overflow)==null?void 0:C.call(n,{number:h.value}))!=null?x:R(uU,null,{default:()=>[$e("+"),h.value]})])};return()=>{var C,x;l.value=Dd((C=n.default)==null?void 0:C.call(n)),f.value!==l.value.length&&(f.value=l.value.length,c.length=f.value);let _=l.value;h.value>0&&(_=y.value?l.value.slice(h.value):l.value.slice(0,-h.value));const E=h.value===0||y.value?_.length-1:_.length;for(let S=0;S0&&w(),_,!y.value&&h.value>0&&w(),R(qp,{onResize:b},{default:()=>[R("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const vze=Object.assign(zR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+zR.name,zR)}});var UR=fe({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=ve("verification-code"),r=ve("input"),o=ae([]),a=N(()=>{var C;return(C=e.modelValue)!=null?C:e.defaultValue}),s=N(()=>e.masked?"password":"text"),l=N(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=N(()=>{const C=String(a.value).split("");return new Array(e.length).fill("").map((x,_)=>Ate(C[_])?String(C[_]):"")}),f=ae(c.value);bt(a,()=>{f.value=c.value});const h=()=>{const C=f.value.join("").trim();t("update:modelValue",C),t("change",C),C.length===e.length&&t("finish",C),m()},p=C=>o?.value[C].focus(),m=C=>{if(!(Ate(C)&&f.value[C])){for(let x=0;x{C.preventDefault();const{clipboardData:_}=C,E=_?.getData("text");E&&(E.split("").forEach((S,I)=>{if(!(x+I>=e.length)){if(Yt(e.formatter)){const $=e.formatter(S,x+I,f.value.join(""));if($===!1){x-=1;return}Io($)&&(S=$.charAt(0))}f.value[x+I]=S}}),h())},b=(C,x)=>{const _=x.code||x.key;_===nfe.code&&!f.value[C]?(x.preventDefault(),f.value[Math.max(C-1,0)]="",h()):_===p8e.code&&C>0?(x.preventDefault(),p(C-1)):_===v8e.code&&f.value[C]&&C{let E=(x||"").trim().charAt(x.length-1);if(t("input",E,C,_),Yt(e.formatter)){const S=e.formatter(E,C,f.value.join(""));if(S===!1)return;Io(S)&&(E=S.charAt(0))}f.value[C]=E,h()};return()=>R("div",{class:n},[f.value.map((C,x)=>{var _;return R(Tt,null,[R(uv,{key:x,ref:E=>o.value[x]=E,type:s.value,class:l.value,modelValue:C,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>m(x),onInput:(E,S)=>w(x,E,S),onKeydown:E=>b(x,E),onPaste:E=>y(E,x)},null),(_=e.separator)==null?void 0:_.call(e,x,C)])})])}});const mze=Object.assign(UR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+UR.name,UR)}}),gze=typeof window<"u"?window:void 0;function yze(e){var t;const n=He(e);return(t=n?.$el)!=null?t:n}function bze(e){return iA()?(xz(e),!0):!1}function kpe(e,t,n={}){const{window:r=gze,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=bt(()=>yze(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),f=()=>{l(),c()};return bze(f),{isSupported:a,stop:f}}const HR="arco-theme",rT={Dark:"dark",Light:"light"},Sze=e=>{const t=ae(rT.Light),n=o=>{t.value=o},r=o=>o.getAttribute(HR)===rT.Dark?rT.Dark:rT.Light;return kpe(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===HR){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[HR],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function kze(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function wze(e){return Object.entries(e).map(([t,n])=>`${kze(t)}:${n}`).join(";")}function Cze(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}=Ot(e),h=ve("watermark"),p=window.devicePixelRatio||1,m=Dm(),y=ae(new Map),b=N(()=>{var te,J;return(J=(te=e.font)==null?void 0:te.fontSize)!=null?J:16}),w=N(()=>{var te,J;return(J=(te=e.font)==null?void 0:te.fontWeight)!=null?J:"normal"}),C=N(()=>{var te,J;return(J=(te=e.font)==null?void 0:te.fontStyle)!=null?J:"normal"}),x=N(()=>{var te,J;return(J=(te=e.font)==null?void 0:te.fontFamily)!=null?J:"sans-serif"}),_=N(()=>{var te,J;return(J=(te=e.font)==null?void 0:te.textAlign)!=null?J:"center"}),E=N(()=>En(e.content)?e.content:[e.content]),S=N(()=>{var te,J;return(J=(te=e.font)==null?void 0:te.color)!=null?J:ee.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),I=N(()=>{var te,J;return(J=(te=e.gap)==null?void 0:te[0])!=null?J:90}),$=N(()=>{var te,J;return(J=(te=e.gap)==null?void 0:te[1])!=null?J:90}),L=N(()=>I.value/2),O=N(()=>$.value/2),F=N(()=>{var te,J;return(J=(te=e.offset)==null?void 0:te[0])!=null?J:L.value}),M=N(()=>{var te,J;return(J=(te=e.offset)==null?void 0:te[1])!=null?J:O.value}),j=N(()=>{var te;const J=F.value-L.value,Z=M.value-O.value;return{position:"absolute",left:J>0?`${J}px`:0,top:Z>0?`${Z}px`:0,width:J>0?`calc(100% - ${J}px)`:"100%",height:Z>0?`calc(100% - ${Z}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${J>0?0:J}px ${Z>0?0:Z}px`,zIndex:(te=e.zIndex)!=null?te:6}}),V=N(()=>e.repeat&&e.staggered),W=(te,J)=>{var Z;if(m.value){const ce=y.value.get(m.value);ce&&(m.value.contains(ce)&&m.value.removeChild(ce),y.value.delete(m.value));const ye=document.createElement("div");ye.setAttribute("style",wze({...j.value,backgroundImage:`url('${te}')`,backgroundSize:`${J}px`})),(Z=m.value)==null||Z.append(ye),y.value.set(m.value,ye)}},U=te=>{var J,Z;let ce=120,ye=28;if(!a.value&&te.measureText){te.font=`${b.value}px ${x.value}`;const ie=E.value.map(Ce=>te.measureText(Ce).width);ce=Math.ceil(Math.max(...ie)),ye=b.value*E.value.length+(E.value.length-1)*3}return[(J=r.value)!=null?J:ce,(Z=o.value)!=null?Z:ye]},X=()=>{var te;const J=document.createElement("canvas"),Z=J.getContext("2d");if(!Z)return;const[ce,ye]=U(Z),ie=ce*p,Ce=ye*p,Re=(I.value+ce)*p,be=($.value+ye)*p,Fe=I.value/2*p,De=$.value/2*p,Ge=Re/2,qe=be/2,Ve=V.value?2:1,he=(I.value+ce)*Ve;J.width=Re*Ve,J.height=be*Ve,Z.globalAlpha=l.value,Z.save(),Z.translate(Ge,qe),Z.rotate(Math.PI/180*s.value),Z.translate(-Ge,-qe);const de=()=>{Z.restore(),V.value&&Z.drawImage(J,0,0,Re,be,Re,be,Re,be),f.value&&Cze(J),W(J.toDataURL(),he)};if(a.value){const Te=new Image;Te.onload=()=>{Z.drawImage(Te,Fe,De,ie,Ce),de()},Te.crossOrigin="anonymous",Te.referrerPolicy="no-referrer",Te.src=a.value}else{const Te=Number(b.value)*p;Z.font=`${C.value} normal ${w.value} ${Te}px/${ye}px ${x.value}`,Z.fillStyle=S.value,Z.textAlign=_.value,Z.textBaseline="top",Z.translate(ie/2,0),(te=E.value)==null||te.forEach((Oe,je)=>{Z.fillText(Oe??"",Fe,De+je*(Te+3*p))}),de()}},G=te=>Array.from(y.value.values()).includes(te),Y=te=>{if(e.antiTamper)for(const J of te){const Z=Array.from(J.removedNodes).some(ye=>G(ye)),ce=J.type==="attributes"&&G(J.target);if(Z||ce){X();break}}},{theme:ee}=Sze(X);return qt(()=>{X(),kpe(m.value,Y,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),bt(e,X,{deep:!0,flush:"post"}),()=>{var te;return R("div",xt({ref:m,class:h,style:{position:"relative",overflow:"hidden"}},n),[(te=t.default)==null?void 0:te.call(t)])}}});const xze=Object.assign(WR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+WR.name,WR)}});function _ze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ii(e)}var Tze=fe({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}=Ot(e),{displayScrollbar:s,scrollbarProps:l}=AA(a),c=ve("tree-select"),f=ae(),h=N(()=>({...o.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(b,w)=>{var C,x;n.value?(x=(C=f.value)==null?void 0:C.toggleCheck)==null||x.call(C,b[0],w):t("change",b)},m=b=>{t("change",b)},y=()=>R(pj,xt({ref:f},h.value,{onSelect:p,onCheck:m}),e.treeSlots);return()=>{if(s.value){let b;return R(Kc,xt({class:`${c}-tree-wrapper`},l.value),_ze(b=y())?b:{default:()=>[b]})}return R("div",{class:`${c}-tree-wrapper`},[y()])}}});function VU(e){return Dn(e)}function wpe(e){return e!=null&&e!==""}function zU(e){return VU(e)?e.value:e}function Eze(e){return VU(e)?e.label:void 0}function Dne(e){const t=zU(e);return wpe(t)}function One(e){return e.map(zU).filter(wpe)}function Ize(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=Ot(e);function f(S){const I=(En(S)?S:[S]).filter(Dne);return a?.value||s?.value?I:I.slice(0,1)}function h(S,I){const $=[],L=S?S.filter(Dne):[];if(L.length){const O=new Map;I?.forEach(F=>{O.set(F.value,F)}),L.forEach(F=>{var M,j,V,W,U;const X=zU(F),G=O.get(X),Y=o.value.get(X);let ee=null;const te=((M=c?.value)==null?void 0:M.title)||"title";if(!Y){const J=Yt(l?.value)?l?.value(X):l?.value;if(J===!1)return;Dn(J)&&(ee=J)}$.push({...VU(F)?F:{},...G||{},value:X,label:(U=(W=(V=(j=Eze(F))!=null?j:Y?.title)!=null?V:G?.label)!=null?W:ee?.[te])!=null?U:X})})}return $}const p=ae(),m=ae();Yo(()=>{var S;const I=r?.value!==void 0,$=f((S=r?.value)!=null?S:[]),L=One($);m.value=I?h(L,h($)):void 0,p.value=I?L:void 0});const y=f((t=n?.value)!=null?t:[]),b=One(y),w=h(b,h(y)),C=ae(b||[]),x=ae(w);bt(C,()=>{x.value=h(C.value,w)}),bt([p,m],([S,I])=>{C.value=S||[],x.value=I||[]});const _=N(()=>{var S;return(S=p.value)!=null?S:C.value}),E=N(()=>{var S;return(S=m.value)!=null?S:x.value});return{selectedKeys:_,selectedValue:E,setLocalSelectedKeys(S){C.value=S},localSelectedKeys:C,localSelectedValue:x}}function Aze(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=Ot(e),s=N(()=>{var b;return((b=a.value)==null?void 0:b.key)||"key"}),l=(b,w)=>{const C=w[s.value];return!Zt(C)&&String(C).indexOf(b)>-1},c=N(()=>r?.value||l),f=ae(),h=N(()=>!!t.value),p=N(()=>!o?.value&&h.value&&f.value&&f.value.size===0),m=N(()=>o?.value?void 0:b=>{var w,C;if(!h.value)return!0;const x=b[s.value];return(C=(w=f.value)==null?void 0:w.has(x||""))!=null?C:!1}),y=Nk((b,w)=>{const C=b.filter(_=>c.value(w,_.treeNodeData)),x=new Set;C.forEach(_=>{x.add(_.key),_.pathParentKeys.forEach(E=>{x.add(E)})}),f.value=x},100);return Yo(()=>{o?.value?f.value=void 0:y(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:m}}function Lze(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 Pze=fe({name:"TreeSelect",components:{Trigger:Ls,SelectView:N3,Panel:Tze,Empty:Sh,Spin:Gc},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:y,fieldNames:b,disabled:w,labelInValue:C,filterTreeNode:x,disableFilter:_,dropdownStyle:E,treeProps:S,fallbackOption:I,selectable:$,dropdownClassName:L}=Ot(e),{mergedDisabled:O,eventHandlers:F}=qi({disabled:w}),M=ve("tree-select"),j=rn(fa,void 0),V=(a=(o=j==null?void 0:(r=j.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],W=N(()=>c.value||p.value),U=(Ze,pt)=>{var et;return $.value==="leaf"?pt.isLeaf:Yt($.value)?$.value(Ze,pt):(et=$.value)!=null?et:!1},X=N(()=>p.value?U:!1),G=N(()=>Dn(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:Y,key2TreeNode:ee}=dpe(Lt({treeData:y,fieldNames:b,selectable:U,checkable:X})),{selectedKeys:te,selectedValue:J,setLocalSelectedKeys:Z,localSelectedKeys:ce,localSelectedValue:ye}=Ize(Lt({defaultValue:s,modelValue:l,key2TreeNode:ee,multiple:c,treeCheckable:p,treeCheckStrictly:m,fallbackOption:I,fieldNames:b}));function ie(Ze){return p.value?zm(Ze):uj(Ze)}const Ce=N(()=>Zt(J.value)?[]:W.value&&!O.value?J.value.map(Ze=>{const pt=ee.value.get(Ze.value);return{...Ze,closable:!pt||ie(pt)}}):J.value),Re=Ze=>{Z(Ze),nn(()=>{var pt,et;const Pt=(C.value?ye.value:ce.value)||[],$t=W.value?Pt:Pt[0];t("update:modelValue",$t),t("change",$t),(et=(pt=F.value)==null?void 0:pt.onChange)==null||et.call(pt)})},be=ae(e.defaultInputValue),Fe=N(()=>{var Ze;return(Ze=e.inputValue)!=null?Ze:be.value}),De=Ze=>{be.value=Ze,t("update:inputValue",Ze),t("inputValueChange",Ze)},Ge=Ze=>{Ze!==Fe.value&&(he(!0),De(Ze),e.allowSearch&&t("search",Ze))},[qe,Ve]=As(h.value,Lt({value:f})),he=Ze=>{Ze!==qe.value&&(Ve(Ze),t("popup-visible-change",Ze),t("update:popupVisible",Ze)),Ze||je.value&&je.value.blur&&je.value.blur()},{isEmptyFilterResult:de,filterTreeNode:Te}=Aze(Lt({searchValue:Fe,flattenTreeData:Y,filterMethod:x,disableFilter:_,fieldNames:b})),Oe=N(()=>!Y.value.length||de.value),je=ae(),We=N(()=>{var Ze;return[E?.value||{},(Ze=S?.value)!=null&&Ze.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:je,prefixCls:M,TreeSelectEmpty:V,selectedValue:J,selectedKeys:te,mergedDisabled:O,searchValue:Fe,panelVisible:qe,isEmpty:Oe,computedFilterTreeNode:Te,isMultiple:W,selectViewValue:Ce,computedDropdownStyle:We,onSearchValueChange:Ge,onSelectChange(Ze){Re(Ze),!G.value&&Fe.value&&De(""),W.value||he(!1)},onVisibleChange:he,onInnerClear(){Re([]),t("clear")},pickSubCompSlots:Lze,isSelectable:U,isCheckable:X,onBlur:()=>{!G.value&&Fe.value&&De("")},onItemRemove(Ze){if(O.value)return;const pt=ee.value.get(Ze);if(p.value&&pt){if(ie(pt)){const[et]=fj({node:pt,checked:!1,checkedKeys:te.value,indeterminateKeys:[],checkStrictly:m.value});Re(et)}}else{const et=te.value.filter(Pt=>Pt!==Ze);Re(et)}}}}});function $ze(e,t,n,r,o,a){const s=ke("SelectView"),l=ke("Spin"),c=ke("Panel"),f=ke("Trigger");return z(),Ne(f,xt({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:se(()=>[A("div",{class:ne([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Ee(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(z(),q("div",{key:0,class:ne(`${e.prefixCls}-header`)},[Qe(e.$slots,"header")],2)):ge("v-if",!0),e.loading?Qe(e.$slots,"loader",{key:1},()=>[R(l)]):e.isEmpty?Qe(e.$slots,"empty",{key:2},()=>[(z(),Ne(la(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(z(),Ne(c,{key:3,"selected-keys":e.selectedKeys,"show-checkable":e.treeCheckable,scrollbar:e.scrollbar,"tree-props":{actionOnNodeClick:e.selectable==="leaf"?"expand":void 0,blockNode:!0,...e.treeProps,data:e.data,checkStrictly:e.treeCheckStrictly,checkedStrategy:e.treeCheckedStrategy,fieldNames:e.fieldNames,multiple:e.multiple,loadMore:e.loadMore,filterTreeNode:e.computedFilterTreeNode,size:e.size,checkable:e.isCheckable,selectable:e.isSelectable,searchValue:e.searchValue},"tree-slots":e.pickSubCompSlots(e.$slots,"tree"),onChange:e.onSelectChange},null,8,["selected-keys","show-checkable","scrollbar","tree-props","tree-slots","onChange"])),e.$slots.footer&&(!e.isEmpty||e.showFooterOnEmpty)?(z(),q("div",{key:4,class:ne(`${e.prefixCls}-footer`)},[Qe(e.$slots,"footer")],2)):ge("v-if",!0)],6)]),default:se(()=>[Qe(e.$slots,"trigger",{},()=>[R(s,xt({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}),Wi({_:2},[e.$slots.prefix?{name:"prefix",fn:se(()=>[Qe(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:se(h=>[Qe(e.$slots,"label",ai(Fs(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 GR=xe(Pze,[["render",$ze]]);const Mze=Object.assign(GR,{install:(e,t)=>{wn(e,t);const n=kn(t);e.component(n+GR.name,GR)}}),vj={Button:po,Link:ehe,Typography:jVe,Divider:rOe,Grid:f2,Layout:w7e,Space:mFe,Avatar:L$e,Badge:j$e,Calendar:Tfe,Card:cMe,Carousel:xMe,Collapse:zMe,Comment:SRe,ColorPicker:hRe,Descriptions:nOe,Empty:Sh,Image:ZNe,Scrollbar:Kc,List:Nhe,Popover:sU,Statistic:EFe,Table:pje,Tabs:Eje,Tag:uU,Timeline:Oje,Tooltip:uc,AutoComplete:S$e,Cascader:MMe,Checkbox:Uc,DatePicker:JDe,Form:eNe,Input:uv,InputNumber:Pw,InputTag:xfe,Mention:K7e,Radio:l1,Rate:MBe,Select:Bk,Slider:vFe,Switch:OFe,Textarea:Bhe,TimePicker:$je,Transfer:Gje,Tree:pj,Upload:pze,TreeSelect:Mze,Alert:Qde,Drawer:nj,Message:Ct,Modal:zd,Notification:aj,Popconfirm:H9e,Progress:Whe,Result:UBe,Spin:Gc,Skeleton:XBe,Breadcrumb:d6e,Dropdown:vfe,Menu:k9e,PageHeader:V9e,Pagination:_U,Steps:$Fe,Affix:gPe,Anchor:l8e,BackTop:O$e,ConfigProvider:CRe,ResizeBox:Rhe,Trigger:Ls,Split:SFe,Icon:yhe,OverflowList:vze,Watermark:xze,VerificationCode:mze},Rze=(e,t)=>{for(const n of Object.keys(vj))e.use(vj[n],t)},Dze={...vj,Alter:Qde,AnchorLink:IE,AvatarGroup:DE,BreadcrumbItem:N2,ButtonGroup:O2,Calendar:Tfe,CardMeta:XE,CardGrid:ZE,CarouselItem:JE,CascaderPanel:QE,CheckboxGroup:ME,CollapseItem:e4,DescriptionsItem:a4,WeekPicker:n4,MonthPicker:r4,YearPicker:i4,QuarterPicker:o4,RangePicker:s4,Doption:My,Dgroup:NE,Dsubmenu:BE,DropdownButton:FE,FormItem:c4,Row:F2,Col:j2,GridItem:u4,ImagePreview:Ry,ImagePreviewAction:W3,ImagePreviewGroup:V2,InputGroup:$y,InputSearch:AE,InputPassword:LE,LayoutHeader:f4,LayoutContent:h4,LayoutFooter:p4,LayoutSider:v4,ListItem:m4,ListItemMeta:g4,MenuItem:y4,MenuItemGroup:b4,SubMenu:z2,RadioGroup:YE,Option:Bm,Optgroup:B2,SkeletonLine:w4,SkeletonShape:C4,Countdown:x4,Step:_4,Thead:H2,Td:Lp,Th:G2,Tr:qf,Tbody:W2,TableColumn:T4,TabPane:E4,TimelineItem:Oy,TypographyParagraph:I4,TypographyTitle:A4,TypographyText:L4,install:Rze,addI18nMessages:B5e,useLocale:F5e,getLocale:j5e,useFormItem:qi},Oze=fe({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=ve("icon"),r=N(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Nze=["stroke-width","stroke-linecap","stroke-linejoin"];function Bze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,Nze)}var KR=xe(Oze,[["render",Bze]]);const mj=Object.assign(KR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KR.name,KR)}}),Fze=fe({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=ve("icon"),r=N(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jze=["stroke-width","stroke-linecap","stroke-linejoin"];function Vze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M22 6h4v26h-4z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,jze)}var qR=xe(Fze,[["render",Vze]]);const zze=Object.assign(qR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qR.name,qR)}}),Uze=fe({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=ve("icon"),r=N(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hze=["stroke-width","stroke-linecap","stroke-linejoin"];function Wze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,Hze)}var YR=xe(Uze,[["render",Wze]]);const UU=Object.assign(YR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YR.name,YR)}}),Gze=fe({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=ve("icon"),r=N(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Kze=["stroke-width","stroke-linecap","stroke-linejoin"];function qze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,Kze)}var XR=xe(Gze,[["render",qze]]);const Yze=Object.assign(XR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XR.name,XR)}}),Xze=fe({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=ve("icon"),r=N(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zze=["stroke-width","stroke-linecap","stroke-linejoin"];function Jze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M26 42h-4V16h4z"},null,-1),A("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,Zze)}var ZR=xe(Xze,[["render",Jze]]);const Qze=Object.assign(ZR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZR.name,ZR)}}),eUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tUe=["stroke-width","stroke-linecap","stroke-linejoin"];function nUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,tUe)}var JR=xe(eUe,[["render",nUe]]);const gj=Object.assign(JR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JR.name,JR)}}),rUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iUe=["stroke-width","stroke-linecap","stroke-linejoin"];function oUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,iUe)}var QR=xe(rUe,[["render",oUe]]);const sUe=Object.assign(QR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QR.name,QR)}}),aUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lUe=["stroke-width","stroke-linecap","stroke-linejoin"];function uUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,lUe)}var eD=xe(aUe,[["render",uUe]]);const cUe=Object.assign(eD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eD.name,eD)}}),dUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),A("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,fUe)}var tD=xe(dUe,[["render",hUe]]);const pUe=Object.assign(tD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tD.name,tD)}}),vUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mUe=["stroke-width","stroke-linecap","stroke-linejoin"];function gUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,mUe)}var nD=xe(vUe,[["render",gUe]]);const Cpe=Object.assign(nD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nD.name,nD)}}),yUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bUe=["stroke-width","stroke-linecap","stroke-linejoin"];function SUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,bUe)}var rD=xe(yUe,[["render",SUe]]);const kUe=Object.assign(rD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rD.name,rD)}}),wUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CUe=["stroke-width","stroke-linecap","stroke-linejoin"];function xUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"18"},null,-1),A("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,CUe)}var iD=xe(wUe,[["render",xUe]]);const _Ue=Object.assign(iD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iD.name,iD)}}),TUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 IUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"18"},null,-1),A("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,EUe)}var oD=xe(TUe,[["render",IUe]]);const AUe=Object.assign(oD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oD.name,oD)}}),LUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PUe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ue(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,PUe)}var sD=xe(LUe,[["render",$Ue]]);const MUe=Object.assign(sD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sD.name,sD)}}),RUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DUe=["stroke-width","stroke-linecap","stroke-linejoin"];function OUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,DUe)}var aD=xe(RUe,[["render",OUe]]);const xpe=Object.assign(aD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aD.name,aD)}}),NUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BUe=["stroke-width","stroke-linecap","stroke-linejoin"];function FUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),A("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BUe)}var lD=xe(NUe,[["render",FUe]]);const jUe=Object.assign(lD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lD.name,lD)}}),VUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 UUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),A("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zUe)}var uD=xe(VUe,[["render",UUe]]);const HUe=Object.assign(uD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uD.name,uD)}}),WUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GUe=["stroke-width","stroke-linecap","stroke-linejoin"];function KUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),A("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,GUe)}var cD=xe(WUe,[["render",KUe]]);const qUe=Object.assign(cD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cD.name,cD)}}),YUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XUe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZUe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"18"},null,-1),A("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,XUe)}var dD=xe(YUe,[["render",ZUe]]);const JUe=Object.assign(dD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dD.name,dD)}}),QUe=fe({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=ve("icon"),r=N(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,eHe)}var fD=xe(QUe,[["render",tHe]]);const nHe=Object.assign(fD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fD.name,fD)}}),rHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iHe=["stroke-width","stroke-linecap","stroke-linejoin"];function oHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,iHe)}var hD=xe(rHe,[["render",oHe]]);const sHe=Object.assign(hD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hD.name,hD)}}),aHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lHe=["stroke-width","stroke-linecap","stroke-linejoin"];function uHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,lHe)}var pD=xe(aHe,[["render",uHe]]);const cHe=Object.assign(pD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pD.name,pD)}}),dHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,fHe)}var vD=xe(dHe,[["render",hHe]]);const pHe=Object.assign(vD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vD.name,vD)}}),vHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,mHe)}var mD=xe(vHe,[["render",gHe]]);const qu=Object.assign(mD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mD.name,mD)}}),yHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bHe=["stroke-width","stroke-linecap","stroke-linejoin"];function SHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,bHe)}var gD=xe(yHe,[["render",SHe]]);const kHe=Object.assign(gD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gD.name,gD)}}),wHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CHe=["stroke-width","stroke-linecap","stroke-linejoin"];function xHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,CHe)}var yD=xe(wHe,[["render",xHe]]);const _He=Object.assign(yD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yD.name,yD)}}),THe=fe({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=ve("icon"),r=N(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 IHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,EHe)}var bD=xe(THe,[["render",IHe]]);const Hf=Object.assign(bD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bD.name,bD)}}),AHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 PHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,LHe)}var SD=xe(AHe,[["render",PHe]]);const Ff=Object.assign(SD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SD.name,SD)}}),$He=fe({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=ve("icon"),r=N(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 RHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,MHe)}var kD=xe($He,[["render",RHe]]);const DHe=Object.assign(kD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kD.name,kD)}}),OHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,NHe)}var wD=xe(OHe,[["render",BHe]]);const FHe=Object.assign(wD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wD.name,wD)}}),jHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VHe=["stroke-width","stroke-linecap","stroke-linejoin"];function zHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,VHe)}var CD=xe(jHe,[["render",zHe]]);const UHe=Object.assign(CD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CD.name,CD)}}),HHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,WHe)}var xD=xe(HHe,[["render",GHe]]);const KHe=Object.assign(xD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xD.name,xD)}}),qHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,YHe)}var _D=xe(qHe,[["render",XHe]]);const HU=Object.assign(_D,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_D.name,_D)}}),ZHe=fe({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=ve("icon"),r=N(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JHe=["stroke-width","stroke-linecap","stroke-linejoin"];function QHe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),A("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,JHe)}var TD=xe(ZHe,[["render",QHe]]);const eWe=Object.assign(TD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TD.name,TD)}}),tWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),A("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,nWe)}var ED=xe(tWe,[["render",rWe]]);const iWe=Object.assign(ED,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ED.name,ED)}}),oWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,sWe)}var ID=xe(oWe,[["render",aWe]]);const lWe=Object.assign(ID,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ID.name,ID)}}),uWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,cWe)}var AD=xe(uWe,[["render",dWe]]);const fWe=Object.assign(AD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AD.name,AD)}}),hWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,pWe)}var LD=xe(hWe,[["render",vWe]]);const _pe=Object.assign(LD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LD.name,LD)}}),mWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gWe=["stroke-width","stroke-linecap","stroke-linejoin"];function yWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,gWe)}var PD=xe(mWe,[["render",yWe]]);const bWe=Object.assign(PD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PD.name,PD)}}),SWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 wWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,kWe)}var $D=xe(SWe,[["render",wWe]]);const Xp=Object.assign($D,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$D.name,$D)}}),CWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 _We(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,xWe)}var MD=xe(CWe,[["render",_We]]);const TWe=Object.assign(MD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MD.name,MD)}}),EWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IWe=["stroke-width","stroke-linecap","stroke-linejoin"];function AWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,IWe)}var RD=xe(EWe,[["render",AWe]]);const Tpe=Object.assign(RD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RD.name,RD)}}),LWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 $We(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,PWe)}var DD=xe(LWe,[["render",$We]]);const XA=Object.assign(DD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DD.name,DD)}}),MWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 DWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,RWe)}var OD=xe(MWe,[["render",DWe]]);const ZA=Object.assign(OD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OD.name,OD)}}),OWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 BWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,NWe)}var ND=xe(OWe,[["render",BWe]]);const c1=Object.assign(ND,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ND.name,ND)}}),FWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jWe=["stroke-width","stroke-linecap","stroke-linejoin"];function VWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),A("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,jWe)}var BD=xe(FWe,[["render",VWe]]);const JA=Object.assign(BD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BD.name,BD)}}),zWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UWe=["stroke-width","stroke-linecap","stroke-linejoin"];function HWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,UWe)}var FD=xe(zWe,[["render",HWe]]);const QA=Object.assign(FD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FD.name,FD)}}),WWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GWe=["stroke-width","stroke-linecap","stroke-linejoin"];function KWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,GWe)}var jD=xe(WWe,[["render",KWe]]);const Epe=Object.assign(jD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jD.name,jD)}}),qWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YWe=["stroke-width","stroke-linecap","stroke-linejoin"];function XWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,YWe)}var VD=xe(qWe,[["render",XWe]]);const WU=Object.assign(VD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VD.name,VD)}}),ZWe=fe({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=ve("icon"),r=N(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JWe=["stroke-width","stroke-linecap","stroke-linejoin"];function QWe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,JWe)}var zD=xe(ZWe,[["render",QWe]]);const eGe=Object.assign(zD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zD.name,zD)}}),tGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,nGe)}var UD=xe(tGe,[["render",rGe]]);const iGe=Object.assign(UD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UD.name,UD)}}),oGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,sGe)}var HD=xe(oGe,[["render",aGe]]);const lGe=Object.assign(HD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HD.name,HD)}}),uGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,cGe)}var WD=xe(uGe,[["render",dGe]]);const fGe=Object.assign(WD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WD.name,WD)}}),hGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,pGe)}var GD=xe(hGe,[["render",vGe]]);const nh=Object.assign(GD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GD.name,GD)}}),mGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gGe=["stroke-width","stroke-linecap","stroke-linejoin"];function yGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,gGe)}var KD=xe(mGe,[["render",yGe]]);const bGe=Object.assign(KD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KD.name,KD)}}),SGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 wGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,kGe)}var qD=xe(SGe,[["render",wGe]]);const mm=Object.assign(qD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qD.name,qD)}}),CGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xGe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ge(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,xGe)}var YD=xe(CGe,[["render",_Ge]]);const TGe=Object.assign(YD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YD.name,YD)}}),EGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IGe=["stroke-width","stroke-linecap","stroke-linejoin"];function AGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,IGe)}var XD=xe(EGe,[["render",AGe]]);const LGe=Object.assign(XD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XD.name,XD)}}),PGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,$Ge)}var ZD=xe(PGe,[["render",MGe]]);const RGe=Object.assign(ZD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZD.name,ZD)}}),DGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OGe=["stroke-width","stroke-linecap","stroke-linejoin"];function NGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,OGe)}var JD=xe(DGe,[["render",NGe]]);const wh=Object.assign(JD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JD.name,JD)}}),BGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FGe=["stroke-width","stroke-linecap","stroke-linejoin"];function jGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,FGe)}var QD=xe(BGe,[["render",jGe]]);const VGe=Object.assign(QD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QD.name,QD)}}),zGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UGe=["stroke-width","stroke-linecap","stroke-linejoin"];function HGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,UGe)}var eO=xe(zGe,[["render",HGe]]);const WGe=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),GGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,KGe)}var tO=xe(GGe,[["render",qGe]]);const YGe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),XGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZGe=["stroke-width","stroke-linecap","stroke-linejoin"];function JGe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ZGe)}var nO=xe(XGe,[["render",JGe]]);const GU=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),QGe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eKe=["stroke-width","stroke-linecap","stroke-linejoin"];function tKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,eKe)}var rO=xe(QGe,[["render",tKe]]);const nKe=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),rKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,iKe)}var iO=xe(rKe,[["render",oKe]]);const sKe=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),aKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,lKe)}var oO=xe(aKe,[["render",uKe]]);const cKe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),dKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,fKe)}var sO=xe(dKe,[["render",hKe]]);const pKe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),vKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mKe=["stroke-width","stroke-linecap","stroke-linejoin"];function gKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,mKe)}var aO=xe(vKe,[["render",gKe]]);const yKe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),bKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SKe=["stroke-width","stroke-linecap","stroke-linejoin"];function kKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,SKe)}var lO=xe(bKe,[["render",kKe]]);const wKe=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),CKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xKe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ke(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,xKe)}var uO=xe(CKe,[["render",_Ke]]);const TKe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),EKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 AKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,IKe)}var cO=xe(EKe,[["render",AKe]]);const LKe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),PKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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 dO=xe(PKe,[["render",MKe]]);const RKe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),DKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OKe=["stroke-width","stroke-linecap","stroke-linejoin"];function NKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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),A("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,OKe)}var fO=xe(DKe,[["render",NKe]]);const Ipe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),BKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FKe=["stroke-width","stroke-linecap","stroke-linejoin"];function jKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,FKe)}var hO=xe(BKe,[["render",jKe]]);const VKe=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),zKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UKe=["stroke-width","stroke-linecap","stroke-linejoin"];function HKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,UKe)}var pO=xe(zKe,[["render",HKe]]);const WKe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),GKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,KKe)}var vO=xe(GKe,[["render",qKe]]);const YKe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),XKe=fe({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=ve("icon"),r=N(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZKe=["stroke-width","stroke-linecap","stroke-linejoin"];function JKe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ZKe)}var mO=xe(XKe,[["render",JKe]]);const QKe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),eqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tqe=["stroke-width","stroke-linecap","stroke-linejoin"];function nqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,tqe)}var gO=xe(eqe,[["render",nqe]]);const Ape=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),rqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iqe=["stroke-width","stroke-linecap","stroke-linejoin"];function oqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,iqe)}var yO=xe(rqe,[["render",oqe]]);const sqe=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),aqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,lqe)}var bO=xe(aqe,[["render",uqe]]);const cqe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),dqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,fqe)}var SO=xe(dqe,[["render",hqe]]);const pqe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),vqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mqe=["stroke-width","stroke-linecap","stroke-linejoin"];function gqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,mqe)}var kO=xe(vqe,[["render",gqe]]);const yqe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),bqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function kqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,Sqe)}var wO=xe(bqe,[["render",kqe]]);const wqe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),Cqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xqe=["stroke-width","stroke-linecap","stroke-linejoin"];function _qe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,xqe)}var CO=xe(Cqe,[["render",_qe]]);const Tqe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),Eqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Iqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Aqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Iqe)}var xO=xe(Eqe,[["render",Aqe]]);const Lqe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),Pqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Mqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,$qe)}var _O=xe(Pqe,[["render",Mqe]]);const Rqe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),Dqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Nqe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Oqe)}var TO=xe(Dqe,[["render",Nqe]]);const Bqe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),Fqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,jqe)}var EO=xe(Fqe,[["render",Vqe]]);const zqe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),Uqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),A("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,Hqe)}var IO=xe(Uqe,[["render",Wqe]]);const Gqe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),Kqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),A("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,qqe)}var AO=xe(Kqe,[["render",Yqe]]);const Xqe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),Zqe=fe({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=ve("icon"),r=N(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),A("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,Jqe)}var LO=xe(Zqe,[["render",Qqe]]);const eYe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),tYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,nYe)}var PO=xe(tYe,[["render",rYe]]);const iYe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),oYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,sYe)}var $O=xe(oYe,[["render",aYe]]);const lYe=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),uYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,cYe)}var MO=xe(uYe,[["render",dYe]]);const fYe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),hYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,pYe)}var RO=xe(hYe,[["render",vYe]]);const Lpe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),mYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gYe=["stroke-width","stroke-linecap","stroke-linejoin"];function yYe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,gYe)}var DO=xe(mYe,[["render",yYe]]);const Ppe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),bYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,SYe)}var OO=xe(bYe,[["render",kYe]]);const wYe=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),CYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xYe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ye(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,xYe)}var NO=xe(CYe,[["render",_Ye]]);const TYe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),EYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IYe=["stroke-width","stroke-linecap","stroke-linejoin"];function AYe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,IYe)}var BO=xe(EYe,[["render",AYe]]);const LYe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),PYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MYe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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 FO=xe(PYe,[["render",MYe]]);const RYe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),DYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OYe=["stroke-width","stroke-linecap","stroke-linejoin"];function NYe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,OYe)}var jO=xe(DYe,[["render",NYe]]);const BYe=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),FYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,jYe)}var VO=xe(FYe,[["render",VYe]]);const zYe=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),UYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,HYe)}var zO=xe(UYe,[["render",WYe]]);const GYe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),KYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,qYe)}var UO=xe(KYe,[["render",YYe]]);const XYe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),ZYe=fe({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=ve("icon"),r=N(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,JYe)}var HO=xe(ZYe,[["render",QYe]]);const eXe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),tXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,nXe)}var WO=xe(tXe,[["render",rXe]]);const iXe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),oXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),A("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),A("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,sXe)}var GO=xe(oXe,[["render",aXe]]);const lXe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),uXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,cXe)}var KO=xe(uXe,[["render",dXe]]);const fXe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),hXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,pXe)}var qO=xe(hXe,[["render",vXe]]);const mXe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),gXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,yXe)}var YO=xe(gXe,[["render",bXe]]);const KU=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),SXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,kXe)}var XO=xe(SXe,[["render",wXe]]);const G3=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),CXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 _Xe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,xXe)}var ZO=xe(CXe,[["render",_Xe]]);const TXe=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),EXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IXe=["stroke-width","stroke-linecap","stroke-linejoin"];function AXe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,IXe)}var JO=xe(EXe,[["render",AXe]]);const LXe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),PXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MXe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,$Xe)}var QO=xe(PXe,[["render",MXe]]);const RXe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),DXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OXe=["stroke-width","stroke-linecap","stroke-linejoin"];function NXe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,OXe)}var eN=xe(DXe,[["render",NXe]]);const Ha=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),BXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FXe=["stroke-width","stroke-linecap","stroke-linejoin"];function jXe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,FXe)}var tN=xe(BXe,[["render",jXe]]);const jk=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),VXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 UXe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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),A("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,zXe)}var nN=xe(VXe,[["render",UXe]]);const HXe=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),WXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,GXe)}var rN=xe(WXe,[["render",KXe]]);const qXe=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),YXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),A("path",{d:"M38 6v36"},null,-1)]),14,XXe)}var iN=xe(YXe,[["render",ZXe]]);const JXe=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),QXe=fe({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=ve("icon"),r=N(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eZe=["stroke-width","stroke-linecap","stroke-linejoin"];function tZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),A("path",{d:"M10 6v36"},null,-1)]),14,eZe)}var oN=xe(QXe,[["render",tZe]]);const nZe=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),rZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),A("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,iZe)}var sN=xe(rZe,[["render",oZe]]);const sZe=Object.assign(sN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sN.name,sN)}}),aZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),A("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),A("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),A("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,lZe)}var aN=xe(aZe,[["render",uZe]]);const cZe=Object.assign(aN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aN.name,aN)}}),dZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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),A("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,fZe)}var lN=xe(dZe,[["render",hZe]]);const pZe=Object.assign(lN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lN.name,lN)}}),vZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mZe=["stroke-width","stroke-linecap","stroke-linejoin"];function gZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Qm('',5)]),14,mZe)}var uN=xe(vZe,[["render",gZe]]);const yZe=Object.assign(uN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uN.name,uN)}}),bZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SZe=["stroke-width","stroke-linecap","stroke-linejoin"];function kZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,SZe)}var cN=xe(bZe,[["render",kZe]]);const wZe=Object.assign(cN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cN.name,cN)}}),CZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 _Ze(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,xZe)}var dN=xe(CZe,[["render",_Ze]]);const TZe=Object.assign(dN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dN.name,dN)}}),EZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 AZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,IZe)}var fN=xe(EZe,[["render",AZe]]);const LZe=Object.assign(fN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fN.name,fN)}}),PZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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 hN=xe(PZe,[["render",MZe]]);const RZe=Object.assign(hN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hN.name,hN)}}),DZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 NZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,OZe)}var pN=xe(DZe,[["render",NZe]]);const BZe=Object.assign(pN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pN.name,pN)}}),FZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jZe=["stroke-width","stroke-linecap","stroke-linejoin"];function VZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,jZe)}var vN=xe(FZe,[["render",VZe]]);const zZe=Object.assign(vN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vN.name,vN)}}),UZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HZe=["stroke-width","stroke-linecap","stroke-linejoin"];function WZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,HZe)}var mN=xe(UZe,[["render",WZe]]);const GZe=Object.assign(mN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mN.name,mN)}}),KZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qZe=["stroke-width","stroke-linecap","stroke-linejoin"];function YZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,qZe)}var gN=xe(KZe,[["render",YZe]]);const XZe=Object.assign(gN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gN.name,gN)}}),ZZe=fe({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=ve("icon"),r=N(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JZe=["stroke-width","stroke-linecap","stroke-linejoin"];function QZe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,JZe)}var yN=xe(ZZe,[["render",QZe]]);const eJe=Object.assign(yN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yN.name,yN)}}),tJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nJe=["stroke-width","stroke-linecap","stroke-linejoin"];function rJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,nJe)}var bN=xe(tJe,[["render",rJe]]);const iJe=Object.assign(bN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bN.name,bN)}}),oJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sJe=["stroke-width","stroke-linecap","stroke-linejoin"];function aJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,sJe)}var SN=xe(oJe,[["render",aJe]]);const lJe=Object.assign(SN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SN.name,SN)}}),uJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cJe=["stroke-width","stroke-linecap","stroke-linejoin"];function dJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,cJe)}var kN=xe(uJe,[["render",dJe]]);const $pe=Object.assign(kN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kN.name,kN)}}),fJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hJe=["stroke-width","stroke-linecap","stroke-linejoin"];function pJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,hJe)}var wN=xe(fJe,[["render",pJe]]);const vJe=Object.assign(wN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wN.name,wN)}}),mJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gJe=["stroke-width","stroke-linecap","stroke-linejoin"];function yJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,gJe)}var CN=xe(mJe,[["render",yJe]]);const bJe=Object.assign(CN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CN.name,CN)}}),SJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kJe=["stroke-width","stroke-linecap","stroke-linejoin"];function wJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,kJe)}var xN=xe(SJe,[["render",wJe]]);const CJe=Object.assign(xN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xN.name,xN)}}),xJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Je=["stroke-width","stroke-linecap","stroke-linejoin"];function TJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,_Je)}var _N=xe(xJe,[["render",TJe]]);const EJe=Object.assign(_N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_N.name,_N)}}),IJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,AJe)}var TN=xe(IJe,[["render",LJe]]);const PJe=Object.assign(TN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TN.name,TN)}}),$Je=fe({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=ve("icon"),r=N(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 RJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,MJe)}var EN=xe($Je,[["render",RJe]]);const DJe=Object.assign(EN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EN.name,EN)}}),OJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,NJe)}var IN=xe(OJe,[["render",BJe]]);const FJe=Object.assign(IN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IN.name,IN)}}),jJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VJe=["stroke-width","stroke-linecap","stroke-linejoin"];function zJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,VJe)}var AN=xe(jJe,[["render",zJe]]);const UJe=Object.assign(AN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AN.name,AN)}}),HJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WJe=["stroke-width","stroke-linecap","stroke-linejoin"];function GJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),A("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,WJe)}var LN=xe(HJe,[["render",GJe]]);const KJe=Object.assign(LN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LN.name,LN)}}),qJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YJe=["stroke-width","stroke-linecap","stroke-linejoin"];function XJe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,YJe)}var PN=xe(qJe,[["render",XJe]]);const ZJe=Object.assign(PN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PN.name,PN)}}),JJe=fe({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=ve("icon"),r=N(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QJe=["stroke-width","stroke-linecap","stroke-linejoin"];function eQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,QJe)}var $N=xe(JJe,[["render",eQe]]);const tQe=Object.assign($N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$N.name,$N)}}),nQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rQe=["stroke-width","stroke-linecap","stroke-linejoin"];function iQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,rQe)}var MN=xe(nQe,[["render",iQe]]);const oQe=Object.assign(MN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MN.name,MN)}}),sQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aQe=["stroke-width","stroke-linecap","stroke-linejoin"];function lQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),A("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,aQe)}var RN=xe(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=fe({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=ve("icon"),r=N(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dQe=["stroke-width","stroke-linecap","stroke-linejoin"];function fQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,dQe)}var DN=xe(cQe,[["render",fQe]]);const Mpe=Object.assign(DN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DN.name,DN)}}),hQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pQe=["stroke-width","stroke-linecap","stroke-linejoin"];function vQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),A("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,pQe)}var ON=xe(hQe,[["render",vQe]]);const mQe=Object.assign(ON,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ON.name,ON)}}),gQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yQe=["stroke-width","stroke-linecap","stroke-linejoin"];function bQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,yQe)}var NN=xe(gQe,[["render",bQe]]);const Rpe=Object.assign(NN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NN.name,NN)}}),SQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,kQe)}var BN=xe(SQe,[["render",wQe]]);const eL=Object.assign(BN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BN.name,BN)}}),CQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xQe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Qe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M16 16h16M16 24h8"},null,-1),A("path",{d:"M24 41H8V6h32v17"},null,-1),A("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,xQe)}var FN=xe(CQe,[["render",_Qe]]);const TQe=Object.assign(FN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FN.name,FN)}}),EQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IQe=["stroke-width","stroke-linecap","stroke-linejoin"];function AQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,IQe)}var jN=xe(EQe,[["render",AQe]]);const LQe=Object.assign(jN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jN.name,jN)}}),PQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 MQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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 VN=xe(PQe,[["render",MQe]]);const tL=Object.assign(VN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VN.name,VN)}}),RQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 OQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,DQe)}var zN=xe(RQe,[["render",OQe]]);const NQe=Object.assign(zN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zN.name,zN)}}),BQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FQe=["stroke-width","stroke-linecap","stroke-linejoin"];function jQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,FQe)}var UN=xe(BQe,[["render",jQe]]);const VQe=Object.assign(UN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UN.name,UN)}}),zQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UQe=["stroke-width","stroke-linecap","stroke-linejoin"];function HQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,UQe)}var HN=xe(zQe,[["render",HQe]]);const WQe=Object.assign(HN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HN.name,HN)}}),GQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KQe=["stroke-width","stroke-linecap","stroke-linejoin"];function qQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,KQe)}var WN=xe(GQe,[["render",qQe]]);const YQe=Object.assign(WN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WN.name,WN)}}),XQe=fe({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=ve("icon"),r=N(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZQe=["stroke-width","stroke-linecap","stroke-linejoin"];function JQe(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ZQe)}var GN=xe(XQe,[["render",JQe]]);const QQe=Object.assign(GN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GN.name,GN)}}),eet=fe({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=ve("icon"),r=N(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tet=["stroke-width","stroke-linecap","stroke-linejoin"];function net(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,tet)}var KN=xe(eet,[["render",net]]);const ret=Object.assign(KN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KN.name,KN)}}),iet=fe({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=ve("icon"),r=N(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oet=["stroke-width","stroke-linecap","stroke-linejoin"];function set(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,oet)}var qN=xe(iet,[["render",set]]);const aet=Object.assign(qN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qN.name,qN)}}),uet=fe({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=ve("icon"),r=N(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cet=["stroke-width","stroke-linecap","stroke-linejoin"];function det(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M41 7H7v22h34V7Z"},null,-1),A("path",{d:"M23.778 29v10"},null,-1),A("path",{d:"M16 39h16"},null,-1),A("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,cet)}var YN=xe(uet,[["render",det]]);const qU=Object.assign(YN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YN.name,YN)}}),fet=fe({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=ve("icon"),r=N(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),het=["stroke-width","stroke-linecap","stroke-linejoin"];function pet(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,het)}var XN=xe(fet,[["render",pet]]);const Dpe=Object.assign(XN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XN.name,XN)}}),vet=fe({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=ve("icon"),r=N(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),met=["stroke-width","stroke-linecap","stroke-linejoin"];function get(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,met)}var ZN=xe(vet,[["render",get]]);const yet=Object.assign(ZN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZN.name,ZN)}}),bet=fe({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=ve("icon"),r=N(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ket=["stroke-width","stroke-linecap","stroke-linejoin"];function wet(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ket)}var JN=xe(bet,[["render",wet]]);const K3=Object.assign(JN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JN.name,JN)}}),Cet=fe({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=ve("icon"),r=N(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xet=["stroke-width","stroke-linecap","stroke-linejoin"];function _et(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Qm('',11)]),14,xet)}var QN=xe(Cet,[["render",_et]]);const Tet=Object.assign(QN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QN.name,QN)}}),Eet=fe({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=ve("icon"),r=N(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Iet=["stroke-width","stroke-linecap","stroke-linejoin"];function Aet(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Iet)}var e7=xe(Eet,[["render",Aet]]);const Let=Object.assign(e7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e7.name,e7)}}),Pet=fe({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=ve("icon"),r=N(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Met(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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 t7=xe(Pet,[["render",Met]]);const Ret=Object.assign(t7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t7.name,t7)}}),Det=fe({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=ve("icon"),r=N(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Net(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),A("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,Oet)}var n7=xe(Det,[["render",Net]]);const Bet=Object.assign(n7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n7.name,n7)}}),Fet=fe({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=ve("icon"),r=N(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,jet)}var r7=xe(Fet,[["render",Vet]]);const zet=Object.assign(r7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r7.name,r7)}}),Uet=fe({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=ve("icon"),r=N(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Het)}var i7=xe(Uet,[["render",Wet]]);const Ope=Object.assign(i7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i7.name,i7)}}),Get=fe({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=ve("icon"),r=N(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ket=["stroke-width","stroke-linecap","stroke-linejoin"];function qet(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Ket)}var o7=xe(Get,[["render",qet]]);const Yet=Object.assign(o7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o7.name,o7)}}),Xet=fe({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=ve("icon"),r=N(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Zet)}var s7=xe(Xet,[["render",Jet]]);const Qet=Object.assign(s7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s7.name,s7)}}),ett=fe({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=ve("icon"),r=N(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ttt)}var a7=xe(ett,[["render",ntt]]);const rtt=Object.assign(a7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a7.name,a7)}}),itt=fe({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=ve("icon"),r=N(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,ott)}var l7=xe(itt,[["render",stt]]);const att=Object.assign(l7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l7.name,l7)}}),ltt=fe({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=ve("icon"),r=N(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),A("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,utt)}var u7=xe(ltt,[["render",ctt]]);const dtt=Object.assign(u7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u7.name,u7)}}),ftt=fe({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=ve("icon"),r=N(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,htt)}var c7=xe(ftt,[["render",ptt]]);const nL=Object.assign(c7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c7.name,c7)}}),vtt=fe({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=ve("icon"),r=N(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mtt=["stroke-width","stroke-linecap","stroke-linejoin"];function gtt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,mtt)}var d7=xe(vtt,[["render",gtt]]);const ytt=Object.assign(d7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d7.name,d7)}}),btt=fe({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=ve("icon"),r=N(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Stt=["stroke-width","stroke-linecap","stroke-linejoin"];function ktt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,Stt)}var f7=xe(btt,[["render",ktt]]);const Npe=Object.assign(f7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f7.name,f7)}}),wtt=fe({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=ve("icon"),r=N(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 xtt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),A("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,Ctt)}var h7=xe(wtt,[["render",xtt]]);const _tt=Object.assign(h7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h7.name,h7)}}),Ttt=fe({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=ve("icon"),r=N(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ett=["stroke-width","stroke-linecap","stroke-linejoin"];function Itt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Ett)}var p7=xe(Ttt,[["render",Itt]]);const Att=Object.assign(p7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p7.name,p7)}}),Ltt=fe({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=ve("icon"),r=N(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 $tt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"19",r:"5"},null,-1),A("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,Ptt)}var v7=xe(Ltt,[["render",$tt]]);const Mtt=Object.assign(v7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v7.name,v7)}}),Rtt=fe({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=ve("icon"),r=N(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ott(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),A("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Dtt)}var m7=xe(Rtt,[["render",Ott]]);const Ntt=Object.assign(m7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m7.name,m7)}}),Btt=fe({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=ve("icon"),r=N(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ftt=["stroke-width","stroke-linecap","stroke-linejoin"];function jtt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Ftt)}var g7=xe(Btt,[["render",jtt]]);const Vtt=Object.assign(g7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g7.name,g7)}}),ztt=fe({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=ve("icon"),r=N(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Utt=["stroke-width","stroke-linecap","stroke-linejoin"];function Htt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Utt)}var y7=xe(ztt,[["render",Htt]]);const Wtt=Object.assign(y7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y7.name,y7)}}),Gtt=fe({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=ve("icon"),r=N(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function qtt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,Ktt)}var b7=xe(Gtt,[["render",qtt]]);const Bpe=Object.assign(b7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b7.name,b7)}}),Ytt=fe({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=ve("icon"),r=N(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ztt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Xtt)}var S7=xe(Ytt,[["render",Ztt]]);const Jtt=Object.assign(S7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S7.name,S7)}}),Qtt=fe({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=ve("icon"),r=N(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ent=["stroke-width","stroke-linecap","stroke-linejoin"];function tnt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,ent)}var k7=xe(Qtt,[["render",tnt]]);const Fpe=Object.assign(k7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k7.name,k7)}}),nnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function int(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,rnt)}var w7=xe(nnt,[["render",int]]);const ont=Object.assign(w7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w7.name,w7)}}),snt=fe({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=ve("icon"),r=N(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,ant)}var C7=xe(snt,[["render",lnt]]);const unt=Object.assign(C7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C7.name,C7)}}),cnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,dnt)}var x7=xe(cnt,[["render",fnt]]);const hnt=Object.assign(x7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x7.name,x7)}}),pnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vnt=["stroke-width","stroke-linecap","stroke-linejoin"];function mnt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,vnt)}var _7=xe(pnt,[["render",mnt]]);const gnt=Object.assign(_7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_7.name,_7)}}),ynt=fe({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=ve("icon"),r=N(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Snt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,bnt)}var T7=xe(ynt,[["render",Snt]]);const knt=Object.assign(T7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T7.name,T7)}}),wnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cnt=["stroke-width","stroke-linecap","stroke-linejoin"];function xnt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Qm('',5)]),14,Cnt)}var E7=xe(wnt,[["render",xnt]]);const YU=Object.assign(E7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E7.name,E7)}}),_nt=fe({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=ve("icon"),r=N(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Ent(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Tnt)}var I7=xe(_nt,[["render",Ent]]);const Int=Object.assign(I7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I7.name,I7)}}),Ant=fe({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=ve("icon"),r=N(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Lnt)}var A7=xe(Ant,[["render",Pnt]]);const $nt=Object.assign(A7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A7.name,A7)}}),Mnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Dnt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Rnt)}var L7=xe(Mnt,[["render",Dnt]]);const Ont=Object.assign(L7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L7.name,L7)}}),Nnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Bnt)}var P7=xe(Nnt,[["render",Fnt]]);const jnt=Object.assign(P7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P7.name,P7)}}),Vnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),znt=["stroke-width","stroke-linecap","stroke-linejoin"];function Unt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,znt)}var $7=xe(Vnt,[["render",Unt]]);const Hnt=Object.assign($7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$7.name,$7)}}),Wnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Gnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Knt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Gnt)}var M7=xe(Wnt,[["render",Knt]]);const qnt=Object.assign(M7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M7.name,M7)}}),Ynt=fe({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=ve("icon"),r=N(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Znt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,Xnt)}var R7=xe(Ynt,[["render",Znt]]);const Jnt=Object.assign(R7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R7.name,R7)}}),Qnt=fe({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=ve("icon"),r=N(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ert=["stroke-width","stroke-linecap","stroke-linejoin"];function trt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,ert)}var D7=xe(Qnt,[["render",trt]]);const nrt=Object.assign(D7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D7.name,D7)}}),rrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),A("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,irt)}var O7=xe(rrt,[["render",ort]]);const srt=Object.assign(O7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O7.name,O7)}}),art=fe({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=ve("icon"),r=N(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,lrt)}var N7=xe(art,[["render",urt]]);const rh=Object.assign(N7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N7.name,N7)}}),crt=fe({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=ve("icon"),r=N(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),drt=["stroke-width","stroke-linecap","stroke-linejoin"];function frt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"18"},null,-1),A("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,drt)}var B7=xe(crt,[["render",frt]]);const hrt=Object.assign(B7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B7.name,B7)}}),prt=fe({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=ve("icon"),r=N(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,vrt)}var F7=xe(prt,[["render",mrt]]);const grt=Object.assign(F7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F7.name,F7)}}),yrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Srt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,brt)}var j7=xe(yrt,[["render",Srt]]);const krt=Object.assign(j7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j7.name,j7)}}),wrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Crt=["stroke-width","stroke-linecap","stroke-linejoin"];function xrt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Crt)}var V7=xe(wrt,[["render",xrt]]);const _rt=Object.assign(V7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V7.name,V7)}}),Trt=fe({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=ve("icon"),r=N(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Irt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),A("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),A("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,Ert)}var z7=xe(Trt,[["render",Irt]]);const yj=Object.assign(z7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z7.name,z7)}}),Art=fe({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=ve("icon"),r=N(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Prt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Lrt)}var U7=xe(Art,[["render",Prt]]);const $rt=Object.assign(U7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U7.name,U7)}}),Mrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Drt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Rrt)}var H7=xe(Mrt,[["render",Drt]]);const Ort=Object.assign(H7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H7.name,H7)}}),Nrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Brt)}var W7=xe(Nrt,[["render",Frt]]);const jrt=Object.assign(W7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W7.name,W7)}}),Vrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Urt(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"24",cy:"24",r:"7"},null,-1),A("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),A("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,zrt)}var G7=xe(Vrt,[["render",Urt]]);const Hrt=Object.assign(G7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G7.name,G7)}}),Wrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),A("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,Grt)}var K7=xe(Wrt,[["render",Krt]]);const qrt=Object.assign(K7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K7.name,K7)}}),Yrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("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,Xrt)}var q7=xe(Yrt,[["render",Zrt]]);const Jrt=Object.assign(q7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q7.name,q7)}}),Qrt=fe({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=ve("icon"),r=N(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eit=["stroke-width","stroke-linecap","stroke-linejoin"];function tit(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,eit)}var Y7=xe(Qrt,[["render",tit]]);const nit=Object.assign(Y7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y7.name,Y7)}}),rit=fe({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=ve("icon"),r=N(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iit=["stroke-width","stroke-linecap","stroke-linejoin"];function oit(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,iit)}var X7=xe(rit,[["render",oit]]);const sit=Object.assign(X7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X7.name,X7)}}),ait=fe({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=ve("icon"),r=N(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lit=["stroke-width","stroke-linecap","stroke-linejoin"];function uit(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,lit)}var Z7=xe(ait,[["render",uit]]);const cit=Object.assign(Z7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z7.name,Z7)}}),dit=fe({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=ve("icon"),r=N(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fit=["stroke-width","stroke-linecap","stroke-linejoin"];function hit(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),A("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,fit)}var J7=xe(dit,[["render",hit]]);const pit=Object.assign(J7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J7.name,J7)}}),vit=fe({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=ve("icon"),r=N(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mit=["stroke-width","stroke-linecap","stroke-linejoin"];function git(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,mit)}var Q7=xe(vit,[["render",git]]);const yit=Object.assign(Q7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q7.name,Q7)}}),bit=fe({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=ve("icon"),r=N(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sit=["stroke-width","stroke-linecap","stroke-linejoin"];function kit(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("circle",{cx:"18",cy:"15",r:"7"},null,-1),A("circle",{cx:"34",cy:"19",r:"4"},null,-1),A("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,Sit)}var e9=xe(bit,[["render",kit]]);const wit=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),Cit=fe({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=ve("icon"),r=N(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xit=["stroke-width","stroke-linecap","stroke-linejoin"];function _it(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,xit)}var t9=xe(Cit,[["render",_it]]);const Tit=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),Eit=fe({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=ve("icon"),r=N(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${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 Ait(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Iit)}var n9=xe(Eit,[["render",Ait]]);const jpe=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),Lit=fe({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=ve("icon"),r=N(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pit=["stroke-width","stroke-linecap","stroke-linejoin"];function $it(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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),A("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Pit)}var r9=xe(Lit,[["render",$it]]);const Mit=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),Rit=fe({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=ve("icon"),r=N(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=N(()=>{const s={};return e.size&&(s.fontSize=Me(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dit=["stroke-width","stroke-linecap","stroke-linejoin"];function Oit(e,t,n,r,o,a){return z(),q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ne(e.cls),style:Ee(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[A("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,Dit)}var i9=xe(Rit,[["render",Oit]]);const Nit=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),bj={IconArrowDown:mj,IconArrowFall:zze,IconArrowLeft:UU,IconArrowRight:Yze,IconArrowRise:Qze,IconArrowUp:gj,IconCaretDown:MU,IconCaretLeft:mU,IconCaretRight:vU,IconCaretUp:ipe,IconDoubleDown:sUe,IconDoubleLeft:Gfe,IconDoubleRight:Kfe,IconDoubleUp:cUe,IconDownCircle:pUe,IconDown:dv,IconDragArrow:Cpe,IconExpand:kUe,IconLeftCircle:_Ue,IconLeft:yl,IconMenuFold:jhe,IconMenuUnfold:Vhe,IconRightCircle:AUe,IconRight:ri,IconRotateLeft:whe,IconRotateRight:Che,IconShrink:MUe,IconSwap:xpe,IconToBottom:jUe,IconToLeft:HUe,IconToRight:qUe,IconToTop:dfe,IconUpCircle:JUe,IconUp:Aw,IconCheckCircleFill:bh,IconCloseCircleFill:wg,IconExclamationCircleFill:Kd,IconExclamationPolygonFill:nHe,IconInfoCircleFill:M1,IconMinusCircleFill:sHe,IconPlusCircleFill:cHe,IconQuestionCircleFill:pHe,IconCheckCircle:qu,IconCheckSquare:kHe,IconCheck:_g,IconClockCircle:FA,IconCloseCircle:_He,IconClose:ps,IconExclamationCircle:Hf,IconExclamation:AU,IconInfoCircle:Ff,IconInfo:qhe,IconMinusCircle:DHe,IconMinus:og,IconPlusCircle:FHe,IconPlus:Vd,IconQuestionCircle:ghe,IconQuestion:UHe,IconStop:KHe,IconHeartFill:HU,IconStarFill:LU,IconThumbDownFill:eWe,IconThumbUpFill:iWe,IconAt:lWe,IconCloudDownload:fWe,IconCodeBlock:_pe,IconCodeSquare:bWe,IconCode:Xp,IconCustomerService:TWe,IconDownload:Tpe,IconExport:XA,IconEyeInvisible:ofe,IconEye:Kp,IconHeart:ZA,IconHistory:c1,IconHome:JA,IconImport:QA,IconLaunch:Epe,IconList:WU,IconMessageBanned:eGe,IconMessage:iGe,IconMoreVertical:lGe,IconMore:cv,IconPoweroff:fGe,IconRefresh:nh,IconReply:bGe,IconSave:mm,IconScan:TGe,IconSearch:rg,IconSelectAll:LGe,IconSend:RGe,IconSettings:wh,IconShareAlt:VGe,IconShareExternal:WGe,IconShareInternal:YGe,IconStar:GU,IconSync:nKe,IconThumbDown:sKe,IconThumbUp:cKe,IconTranslate:pKe,IconUpload:F1,IconVoice:yKe,IconAlignCenter:wKe,IconAlignLeft:TKe,IconAlignRight:LKe,IconAttachment:RKe,IconBgColors:Ipe,IconBold:VKe,IconBrush:WKe,IconCopy:qA,IconDelete:Au,IconEdit:FU,IconEraser:YKe,IconFilter:RU,IconFindReplace:QKe,IconFontColors:Ape,IconFormula:sqe,IconH1:cqe,IconH2:pqe,IconH3:yqe,IconH4:wqe,IconH5:Tqe,IconH6:Lqe,IconH7:Rqe,IconHighlight:Bqe,IconItalic:zqe,IconLineHeight:Gqe,IconLink:Dc,IconObliqueLine:hfe,IconOrderedList:Xqe,IconOriginalSize:xhe,IconPaste:eYe,IconQuote:iYe,IconRedo:lYe,IconScissor:fYe,IconSortAscending:Lpe,IconSortDescending:Ppe,IconSort:wYe,IconStrikethrough:TYe,IconUnderline:LYe,IconUndo:RYe,IconUnorderedList:BYe,IconZoomIn:khe,IconZoomOut:She,IconMuteFill:zYe,IconPauseCircleFill:GYe,IconPlayArrowFill:vpe,IconPlayCircleFill:XYe,IconSkipNextFill:eXe,IconSkipPreviousFill:iXe,IconSoundFill:lXe,IconBackward:fXe,IconForward:mXe,IconFullscreenExit:KU,IconFullscreen:zA,IconLiveBroadcast:G3,IconMusic:TXe,IconMute:LXe,IconPauseCircle:RXe,IconPause:ppe,IconPlayArrow:Ha,IconPlayCircle:jk,IconRecordStop:HXe,IconRecord:qXe,IconSkipNext:JXe,IconSkipPrevious:nZe,IconSound:sZe,IconBytedanceColor:cZe,IconLarkColor:pZe,IconTiktokColor:yZe,IconXiguaColor:wZe,IconFaceBookCircleFill:TZe,IconFacebookSquareFill:LZe,IconGoogleCircleFill:RZe,IconQqCircleFill:BZe,IconTwitterCircleFill:zZe,IconWeiboCircleFill:GZe,IconAlipayCircle:XZe,IconCodeSandbox:eJe,IconCodepen:iJe,IconFacebook:lJe,IconGithub:$pe,IconGitlab:vJe,IconGoogle:bJe,IconQqZone:CJe,IconQq:EJe,IconTwitter:PJe,IconWechat:DJe,IconWechatpay:FJe,IconWeibo:UJe,IconChineseFill:KJe,IconEnglishFill:ZJe,IconFaceFrownFill:Khe,IconFaceMehFill:lj,IconFaceSmileFill:Ghe,IconMoonFill:tQe,IconPenFill:oQe,IconSunFill:uQe,IconApps:Mpe,IconArchive:mQe,IconBarChart:Rpe,IconBook:eL,IconBookmark:TQe,IconBranch:LQe,IconBug:tL,IconBulb:NQe,IconCalendarClock:VQe,IconCalendar:Mw,IconCamera:WQe,IconCloud:YQe,IconCommand:QQe,IconCommon:ret,IconCompass:aet,IconComputer:qU,IconCopyright:Dpe,IconDashboard:yet,IconDesktop:K3,IconDice:Tet,IconDragDotVertical:UA,IconDragDot:Lhe,IconDriveFile:Let,IconEar:Ret,IconEmail:Bet,IconEmpty:nU,IconExperiment:zet,IconFileAudio:Spe,IconFileImage:ype,IconFilePdf:gpe,IconFileVideo:bpe,IconFile:BU,IconFire:Ope,IconFolderAdd:Yet,IconFolderDelete:Qet,IconFolder:rtt,IconGift:att,IconIdcard:dtt,IconImageClose:$A,IconImage:nL,IconInteraction:ytt,IconLanguage:Npe,IconLayers:_tt,IconLayout:Att,IconLoading:ha,IconLocation:Mtt,IconLock:Ntt,IconLoop:Vtt,IconMan:Wtt,IconMenu:Bpe,IconMindMapping:Jtt,IconMobile:Fpe,IconMoon:ont,IconMosaic:unt,IconNav:hnt,IconNotificationClose:gnt,IconNotification:knt,IconPalette:YU,IconPen:Int,IconPhone:$nt,IconPrinter:Ont,IconPublic:jnt,IconPushpin:Hnt,IconQrcode:qnt,IconRelation:Jnt,IconRobotAdd:nrt,IconRobot:srt,IconSafe:rh,IconSchedule:hrt,IconShake:grt,IconSkin:krt,IconStamp:_rt,IconStorage:yj,IconSubscribeAdd:$rt,IconSubscribe:Ort,IconSubscribed:jrt,IconSun:Hrt,IconTag:qrt,IconTags:Jrt,IconThunderbolt:nit,IconTool:sit,IconTrophy:cit,IconUnlock:pit,IconUserAdd:yit,IconUserGroup:wit,IconUser:Tit,IconVideoCamera:jpe,IconWifi:Mit,IconWoman:Nit},Bit=(e,t)=>{for(const n of Object.keys(bj))e.use(bj[n],t)},Fit={...bj,install:Bit},zn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},jit=fe({components:{},setup(){return{showConfirmModal:ae(!1)}},methods:{goBack(){Ct.info("前进按钮")},goForward(){Ct.info("后退按钮")},refreshPage(){Ct.info("刷新页面"),window.location.reload()},onSearch(e){Ct.info(`搜索内容: ${e}`)},minimize(){Ct.info("最小化窗口"),this.exitFullScreen()},maximize(){Ct.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,Ct.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(Ct.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),Ct.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()}}}),Vit={class:"header-left"},zit={class:"header-center"},Uit={class:"header-right"},Hit={class:"modal-header"},Wit={class:"modal-footer"};function Git(e,t,n,r,o,a){const s=ke("icon-left"),l=ke("a-button"),c=ke("icon-right"),f=ke("icon-refresh"),h=ke("a-input-search"),p=ke("icon-shrink"),m=ke("icon-expand"),y=ke("icon-close"),b=ke("icon-exclamation-circle-fill"),w=ke("a-layout-header");return z(),Ne(w,{class:"header"},{default:se(()=>[A("div",Vit,[R(l,{shape:"circle",onClick:e.goBack},{icon:se(()=>[R(s)]),_:1},8,["onClick"]),R(l,{shape:"circle",onClick:e.goForward},{icon:se(()=>[R(c)]),_:1},8,["onClick"]),R(l,{shape:"circle",onClick:e.refreshPage},{icon:se(()=>[R(f)]),_:1},8,["onClick"])]),A("div",zit,[R(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])]),A("div",Uit,[R(l,{shape:"circle",onClick:e.minimize},{icon:se(()=>[R(p)]),_:1},8,["onClick"]),R(l,{shape:"circle",onClick:e.maximize},{icon:se(()=>[R(m)]),_:1},8,["onClick"]),R(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:se(()=>[R(y)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),q("div",{key:0,class:"confirm-modal-overlay",onClick:t[1]||(t[1]=(...C)=>e.hideCloseConfirm&&e.hideCloseConfirm(...C))},[A("div",{class:"confirm-modal",onClick:t[0]||(t[0]=lo(()=>{},["stop"]))},[A("div",Hit,[R(b,{class:"warning-icon"}),t[2]||(t[2]=A("h3",{class:"modal-title"},"确认关闭",-1))]),t[5]||(t[5]=A("div",{class:"modal-content"},[A("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),A("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),A("div",Wit,[R(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:se(()=>[...t[3]||(t[3]=[$e(" 取消 ",-1)])]),_:1},8,["onClick"]),R(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:se(()=>[...t[4]||(t[4]=[$e(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):ge("",!0)]),_:1})}const Kit=zn(jit,[["render",Git],["__scopeId","data-v-3ed03fa9"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Vpe;const rL=e=>Vpe=e,zpe=Symbol();function Sj(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var K2;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(K2||(K2={}));function qit(){const e=Cz(!0),t=e.run(()=>ae({}));let n=[],r=[];const o=cA({install(a){rL(o),o._a=a,a.provide(zpe,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 Upe=()=>{};function Nne(e,t,n,r=Upe){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&iA()&&xz(o),o}function N0(e,...t){e.slice().forEach(n=>{n(...t)})}const Yit=e=>e(),Bne=Symbol(),o9=Symbol();function kj(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];Sj(o)&&Sj(r)&&e.hasOwnProperty(n)&&!to(r)&&!Rd(r)?e[n]=kj(o,r):e[n]=r}return e}const Xit=Symbol();function Zit(e){return!Sj(e)||!e.hasOwnProperty(Xit)}const{assign:vp}=Object;function Jit(e){return!!(to(e)&&e.effect)}function Qit(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=Ot(n.state.value[e]);return vp(h,a,Object.keys(s||{}).reduce((p,m)=>(p[m]=cA(N(()=>{rL(n);const y=n._s.get(e);return s[m].call(y,y)})),p),{}))}return c=Hpe(e,f,t,n,r,!0),c}function Hpe(e,t,n={},r,o,a){let s;const l=vp({actions:{}},n),c={deep:!0};let f,h,p=[],m=[],y;const b=r.state.value[e];!a&&!b&&(r.state.value[e]={}),ae({});let w;function C(O){let F;f=h=!1,typeof O=="function"?(O(r.state.value[e]),F={type:K2.patchFunction,storeId:e,events:y}):(kj(r.state.value[e],O),F={type:K2.patchObject,payload:O,storeId:e,events:y});const M=w=Symbol();nn().then(()=>{w===M&&(f=!0)}),h=!0,N0(p,F,r.state.value[e])}const x=a?function(){const{state:F}=n,M=F?F():{};this.$patch(j=>{vp(j,M)})}:Upe;function _(){s.stop(),p=[],m=[],r._s.delete(e)}const E=(O,F="")=>{if(Bne in O)return O[o9]=F,O;const M=function(){rL(r);const j=Array.from(arguments),V=[],W=[];function U(Y){V.push(Y)}function X(Y){W.push(Y)}N0(m,{args:j,name:M[o9],store:I,after:U,onError:X});let G;try{G=O.apply(this&&this.$id===e?this:I,j)}catch(Y){throw N0(W,Y),Y}return G instanceof Promise?G.then(Y=>(N0(V,Y),Y)).catch(Y=>(N0(W,Y),Promise.reject(Y))):(N0(V,G),G)};return M[Bne]=!0,M[o9]=F,M},S={_p:r,$id:e,$onAction:Nne.bind(null,m),$patch:C,$reset:x,$subscribe(O,F={}){const M=Nne(p,O,F.detached,()=>j()),j=s.run(()=>bt(()=>r.state.value[e],V=>{(F.flush==="sync"?h:f)&&O({storeId:e,type:K2.direct,events:y},V)},vp({},c,F)));return M},$dispose:_},I=Lt(S);r._s.set(e,I);const L=(r._a&&r._a.runWithContext||Yit)(()=>r._e.run(()=>(s=Cz()).run(()=>t({action:E}))));for(const O in L){const F=L[O];if(to(F)&&!Jit(F)||Rd(F))a||(b&&Zit(F)&&(to(F)?F.value=b[O]:kj(F,b[O])),r.state.value[e][O]=F);else if(typeof F=="function"){const M=E(F,O);L[O]=M,l.actions[O]=F}}return vp(I,L),vp(Xr(I),L),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:O=>{C(F=>{vp(F,O)})}}),r._p.forEach(O=>{vp(I,s.run(()=>O({store:I,app:r._a,pinia:r,options:l})))}),b&&a&&n.hydrate&&n.hydrate(I.$state,b),f=!0,h=!0,I}/*! #__NO_SIDE_EFFECTS__ */function Tg(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function s(l,c){const f=Ace();return l=l||(f?rn(zpe,null):null),l&&rL(l),l=Vpe,l._s.has(r)||(a?Hpe(r,t,o,l):Qit(r,o,l)),l._s.get(r)}return s.$id=r,s}const Ow=Tg("pagination",{state:()=>({statsText:"",isVisible:!1,currentRoute:""}),actions:{updateStats(e){this.statsText=e,this.isVisible=!!e},clearStats(){this.statsText="",this.isVisible=!1},setCurrentRoute(e){this.currentRoute=e,e!=="/video"&&this.clearStats()}},getters:{shouldShow:e=>e.isVisible&&e.currentRoute==="/video"}}),eot={class:"footer-content"},tot={key:0,class:"pagination-stats"},not={class:"stats-text"},rot={key:1,class:"default-footer"},iot={class:"footer-info"},oot={class:"copyright-section"},sot={class:"copyright-text"},aot={class:"project-section"},lot={class:"license-section"},uot={__name:"Footer",setup(e){const t=Ow(),n=N(()=>new Date().getFullYear()),r=()=>{Ct.success("正在跳转到项目主页...")};return(o,a)=>(z(),q("div",eot,[He(t).shouldShow?(z(),q("div",tot,[A("span",not,_e(He(t).statsText),1)])):(z(),q("div",rot,[A("div",iot,[A("div",oot,[R(He(Dpe),{class:"footer-icon"}),A("span",sot,_e(n.value)+" DrPlayer",1)]),a[1]||(a[1]=A("div",{class:"separator"},"|",-1)),A("div",aot,[R(He($pe),{class:"footer-icon"}),A("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=A("div",{class:"separator"},"|",-1)),A("div",lot,[R(He(rh),{class:"footer-icon"}),a[0]||(a[0]=A("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},cot=zn(uot,[["__scopeId","data-v-3b2cc39c"]]),dot="/apps/drplayer/assets/logo-5LtmOeIe.png",fot=yhe.addFromIconFontCn({src:"//at.alicdn.com/t/c/font_5032989_t69caiom2lh.js"}),hot=fe({components:{IconCaretRight:vU,IconCaretLeft:mU,IconHome:JA,IconCalendar:Mw,Header:Kit,Footer:cot,IconFont:fot},setup(){const e=SA(),t=Ow(),n=ae(!1),r=ae([{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=ae(dot),a=ae("the logo for this application");return bt(()=>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)}}}}),pot={class:"app-container"},vot={class:"fixed-header"},mot={class:"logo"},got={class:"content-wrapper"},yot={class:"fixed-footer"};function bot(e,t,n,r,o,a){const s=ke("Header"),l=ke("a-image"),c=ke("a-popover"),f=ke("icon-font"),h=ke("a-menu-item"),p=ke("router-link"),m=ke("a-menu"),y=ke("IconCaretRight"),b=ke("IconCaretLeft"),w=ke("a-layout-sider"),C=ke("Footer"),x=ke("a-layout");return z(),q("div",pot,[A("div",vot,[R(s)]),R(x,{class:"layout-demo"},{default:se(()=>[R(w,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:se(({collapsed:_})=>[_?(z(),Ne(y,{key:0})):(z(),Ne(b,{key:1}))]),default:se(()=>[A("div",mot,[R(c,{title:"提示"},{content:se(()=>[A("p",null,_e(e.logoDesc),1)]),default:se(()=>[R(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})]),R(m,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:se(()=>[(z(!0),q(Tt,null,Kt(e.menuItems,(_,E)=>(z(),Ne(p,{key:E,to:_.route,class:"menu-item"},{default:se(()=>[(z(),Ne(h,{key:_.id},{default:se(()=>[R(f,{type:_.icon,size:16},null,8,["type"]),$e(" "+_e(_.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),A("div",{class:ne(["main-content",{"sider-collapsed":e.siderCollapsed}])},[A("div",got,[Qe(e.$slots,"default",{},void 0,!0)]),A("div",yot,[R(C)])],2)]),_:3})])}const Sot=zn(hot,[["render",bot],["__scopeId","data-v-e7f9dcb2"]]),q2=ae({show:!1,message:"",type:"success",duration:3e3});function Yr(e,t="success",n=3e3){q2.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{kot()},n)}function kot(){q2.value.show=!1}const wot={__name:"GlobalToast",setup(e){return(t,n)=>(z(),Ne(Sg,{to:"body"},[R(Xo,{name:"action-toast"},{default:se(()=>[He(q2).show?(z(),q("div",{key:0,class:ne(["action-toast",He(q2).type])},_e(He(q2).message),3)):ge("",!0)]),_:1})]))}},Cot=zn(wot,[["__scopeId","data-v-0de7c39c"]]),iL=Tg("visited",{state:()=>({lastClickedVideoId:null,lastClickedVideoName:null}),getters:{isLastClicked:e=>t=>e.lastClickedVideoId===t},actions:{setLastClicked(e,t){e&&(this.lastClickedVideoId=e,this.lastClickedVideoName=t,this.saveToStorage())},clear(){this.lastClickedVideoId=null,this.lastClickedVideoName=null,localStorage.removeItem("last-clicked-video")},saveToStorage(){try{const e={videoId:this.lastClickedVideoId,videoName:this.lastClickedVideoName};localStorage.setItem("last-clicked-video",JSON.stringify(e))}catch(e){console.warn("保存最后点击视频失败:",e)}},loadFromStorage(){try{const e=localStorage.getItem("last-clicked-video");if(e){const t=JSON.parse(e);this.lastClickedVideoId=t.videoId,this.lastClickedVideoName=t.videoName}}catch(e){console.warn("加载最后点击视频失败:",e),this.clear()}}}}),xot={name:"App",components:{Layout:Sot,GlobalToast:Cot},setup(){const e=iL();return qt(()=>{e.loadFromStorage()}),{}}};function _ot(e,t,n,r,o,a){const s=ke("router-view"),l=ke("Layout"),c=ke("GlobalToast");return z(),q(Tt,null,[R(l,null,{default:se(()=>[R(s)]),_:1}),R(c)],64)}const Tot=zn(xot,[["render",_ot]]);/*! ***************************************************************************** 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 wj=function(e,t){return wj=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])},wj(e,t)};function hn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Eot=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Iot=(function(){function e(){this.browser=new Eot,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})(),or=new Iot;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(or.wxa=!0,or.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?or.worker=!0:!or.hasGlobalWindow||"Deno"in window?(or.node=!0,or.svgSupported=!0):Aot(navigator.userAgent,or);function Aot(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 XU=12,Lot="sans-serif",sg=XU+"px "+Lot,Pot=20,$ot=100,Mot="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Rot(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 ist(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,y=h.top;s.push(m,y),c=c&&a&&m===a[p]&&y===a[p+1],l.push(e[f].offsetLeft,e[f].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?zne(l,s):zne(s,l))}function Jpe(e){return e.nodeName.toUpperCase()==="CANVAS"}var ost=/([&<>"'])/g,sst={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ol(e){return e==null?"":(e+"").replace(ost,function(t,n){return sst[n]})}var ast=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u9=[],lst=or.browser.firefox&&+or.browser.version.split(".")[0]<39;function Aj(e,t,n,r){return n=n||{},r?Hne(e,t,n):lst&&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):Hne(e,t,n),n}function Hne(e,t,n){if(or.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(Jpe(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(Ij(u9,e,r,o)){n.zrX=u9[0],n.zrY=u9[1];return}}n.zrX=n.zrY=0}function tH(e){return e||window.event}function Wu(e,t,n){if(t=tH(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&&Aj(e,s,t,n)}else{Aj(e,t,t,n);var a=ust(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&ast.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function ust(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 cst(e,t,n,r){e.addEventListener(t,n,r)}function dst(e,t,n,r){e.removeEventListener(t,n,r)}var Qpe=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},fst=(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=Wne(r)/Wne(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=hst(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function By(){return[1,0,0,1,0,0]}function nH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function pst(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Fy(e,t,n){var r=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=o,e[2]=a,e[3]=s,e[4]=l,e[5]=c,e}function 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 rH(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 vst(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 iH(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 lr=(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})(),oT=Math.min,sT=Math.max,Uv=new lr,Hv=new lr,Wv=new lr,Gv=new lr,PS=new lr,$S=new lr,ki=(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=oT(t.x,this.x),r=oT(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=sT(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=sT(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=By();return Lj(a,a,[-n.x,-n.y]),vst(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=E,wb&&(b=S,x<_?lr.set($S,0,-x):lr.set($S,0,_)):E=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}Uv.x=Wv.x=n.x,Uv.y=Gv.y=n.y,Hv.x=Gv.x=n.x+n.width,Hv.y=Wv.y=n.y+n.height,Uv.transform(r),Gv.transform(r),Hv.transform(r),Wv.transform(r),t.x=oT(Uv.x,Hv.x,Wv.x,Gv.x),t.y=oT(Uv.y,Hv.y,Wv.y,Gv.y);var c=sT(Uv.x,Hv.x,Wv.x,Gv.x),f=sT(Uv.y,Hv.y,Wv.y,Gv.y);t.width=c-t.x,t.height=f-t.y},e})(),eve="silent";function mst(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:gst}}function gst(){Qpe(this.event)}var yst=(function(e){hn(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})(Xd),MS=(function(){function e(t,n){this.x=t,this.y=n}return e})(),bst=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d9=new ki(0,0,0,0),tve=(function(e){hn(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new MS(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new yst,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new est(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(ct(bst,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=nve(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 MS(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 MS(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=mst(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 MS(n,r);if(Gne(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,f=c/2,h=new ki(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)&&(d9.copy(m.getBoundingRect()),m.transform&&d9.applyTransform(m.transform),d9.intersect(h)&&l.push(m))}if(l.length)for(var y=4,b=Math.PI/12,w=Math.PI*2,C=0;C4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Sst(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?eve:!0}return!1}function Gne(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=Sst(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==eve)){t.target=s;break}}}function nve(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var rve=32,RS=7;function kst(e){for(var t=0;e>=rve;)t|=e&1,e>>=1;return e+t}function Kne(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 wst(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 f9(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 h9(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 Cst(e,t){var n=RS,r,o,a=0,s=[];r=[],o=[];function l(y,b){r[a]=y,o[a]=b,a+=1}function c(){for(;a>1;){var y=a-2;if(y>=1&&o[y-1]<=o[y]+o[y+1]||y>=2&&o[y-2]<=o[y]+o[y-1])o[y-1]o[y+1])break;h(y)}}function f(){for(;a>1;){var y=a-2;y>0&&o[y-1]=RS||L>=RS);if(O)break;I<0&&(I=0),I+=2}if(n=I,n<1&&(n=1),b===1){for(x=0;x=0;x--)e[$+x]=e[I+x];e[S]=s[E];return}for(var L=n;;){var O=0,F=0,M=!1;do if(t(s[E],e[_])<0){if(e[S--]=e[_--],O++,F=0,--b===0){M=!0;break}}else if(e[S--]=s[E--],F++,O=0,--C===1){M=!0;break}while((O|F)=0;x--)e[$+x]=e[I+x];if(b===0){M=!0;break}}if(e[S--]=s[E--],--C===1){M=!0;break}if(F=C-f9(e[_],s,0,C,C-1,t),F!==0){for(S-=F,E-=F,C-=F,$=S+1,I=E+1,x=0;x=RS||F>=RS);if(M)break;L<0&&(L=0),L+=2}if(n=L,n<1&&(n=1),C===1){for(S-=b,_-=b,$=S+1,I=_+1,x=b-1;x>=0;x--)e[$+x]=e[I+x];e[S]=s[E]}else{if(C===0)throw new Error;for(I=S-(C-1),x=0;xl&&(c=l),qne(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 ku=1,h2=2,dy=4,Yne=!1;function p9(){Yne||(Yne=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xne(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var xst=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xne}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(p9(),h.z=0),isNaN(h.z2)&&(p9(),h.z2=0),isNaN(h.zlevel)&&(p9(),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 y=t.getTextContent();y&&this._updateAndAddDisplayable(y,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})(),Y3;Y3=or.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Z2={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-Z2.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?Z2.bounceIn(e*2)*.5:Z2.bounceOut(e*2-1)*.5+.5}},aT=Math.pow,Fp=Math.sqrt,X3=1e-8,ive=1e-4,Zne=Fp(3),lT=1/3,xd=V1(),Yu=V1(),jy=V1();function Pp(e){return e>-X3&&eX3||e<-X3}function ia(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 Jne(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function Z3(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,y=0;if(Pp(h)&&Pp(p))if(Pp(l))a[0]=0;else{var b=-c/l;b>=0&&b<=1&&(a[y++]=b)}else{var w=p*p-4*h*m;if(Pp(w)){var C=p/h,b=-l/s+C,x=-C/2;b>=0&&b<=1&&(a[y++]=b),x>=0&&x<=1&&(a[y++]=x)}else if(w>0){var _=Fp(w),E=h*l+1.5*s*(-p+_),S=h*l+1.5*s*(-p-_);E<0?E=-aT(-E,lT):E=aT(E,lT),S<0?S=-aT(-S,lT):S=aT(S,lT);var b=(-l-(E+S))/(3*s);b>=0&&b<=1&&(a[y++]=b)}else{var I=(2*h*l-3*s*p)/(2*Fp(h*h*h)),$=Math.acos(I)/3,L=Fp(h),O=Math.cos($),b=(-l-2*L*O)/(3*s),x=(-l+L*(O+Zne*Math.sin($)))/(3*s),F=(-l+L*(O-Zne*Math.sin($)))/(3*s);b>=0&&b<=1&&(a[y++]=b),x>=0&&x<=1&&(a[y++]=x),F>=0&&F<=1&&(a[y++]=F)}}return y}function sve(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(Pp(s)){if(ove(a)){var f=-l/a;f>=0&&f<=1&&(o[c++]=f)}}else{var h=a*a-4*s*l;if(Pp(h))o[0]=-a/(2*s);else if(h>0){var p=Fp(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 J3(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 _st(e,t,n,r,o,a,s,l,c,f,h){var p,m=.005,y=1/0,b,w,C,x;xd[0]=c,xd[1]=f;for(var _=0;_<1;_+=.05)Yu[0]=ia(e,n,o,s,_),Yu[1]=ia(t,r,a,l,_),C=Ny(xd,Yu),C=0&&C=0&&f<=1&&(o[c++]=f)}}else{var h=s*s-4*a*l;if(Pp(h)){var f=-s/(2*a);f>=0&&f<=1&&(o[c++]=f)}else if(h>0){var p=Fp(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 ave(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Q3(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 Ist(e,t,n,r,o,a,s,l,c){var f,h=.005,p=1/0;xd[0]=s,xd[1]=l;for(var m=0;m<1;m+=.05){Yu[0]=Nl(e,n,o,m),Yu[1]=Nl(t,r,a,m);var y=Ny(xd,Yu);y=0&&y=1?1:Z3(0,r,a,1,c,l)&&ia(0,o,s,1,l[0])}}}var Pst=(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||Gl,this.ondestroy=t.ondestroy||Gl,this.onrestart=t.onrestart||Gl,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=mr(t)?t:Z2[t]||lve(t)},e})(),uve=(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 uve(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})(),Bw=(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 uve(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})(),ere={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 jp(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 v9(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jp(parseFloat(t)/100*255):jp(parseInt(t,10))}function J2(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Pj(parseFloat(t)/100):Pj(parseFloat(t))}function m9(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 uT(e,t,n){return e+(t-e)*n}function Hu(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function $j(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var cve=new Bw(20),cT=null;function F0(e,t){cT&&$j(cT,t),cT=cve.put(e,cT||t.slice())}function ih(e,t){if(e){t=t||[];var n=cve.get(e);if(n)return $j(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in ere)return $j(t,ere[r]),F0(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)){Hu(t,0,0,0,1);return}return Hu(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),F0(e,t),t}else if(o===7||o===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Hu(t,0,0,0,1);return}return Hu(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(r.slice(7),16)/255:1),F0(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?Hu(t,+f[0],+f[1],+f[2],1):Hu(t,0,0,0,1);h=J2(f.pop());case"rgb":if(f.length>=3)return Hu(t,v9(f[0]),v9(f[1]),v9(f[2]),f.length===3?h:J2(f[3])),F0(e,t),t;Hu(t,0,0,0,1);return;case"hsla":if(f.length!==4){Hu(t,0,0,0,1);return}return f[3]=J2(f[3]),tre(f,t),F0(e,t),t;case"hsl":if(f.length!==3){Hu(t,0,0,0,1);return}return tre(f,t),F0(e,t),t;default:return}}Hu(t,0,0,0,1)}}function tre(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=J2(e[1]),o=J2(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Hu(t,jp(m9(s,a,n+1/3)*255),jp(m9(s,a,n)*255),jp(m9(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function nre(e,t){var n=ih(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 Mst(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=ih(t[o]),l=ih(t[a]),c=r-o,f=lL([jp(uT(s[0],l[0],c)),jp(uT(s[1],l[1],c)),jp(uT(s[2],l[2],c)),Pj(uT(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=ih(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var rre=new Bw(100);function ire(e){if(Nn(e)){var t=rre.get(e);return t||(t=nre(e,-.1),rre.put(e,t)),t}else if(sL(e)){var n=Gt({},e);return n.colorStops=Vn(e.colorStops,function(r){return{offset:r.offset,color:nre(r.color,-.1)}}),n}return e}function Rst(e){return e.type==="linear"}function Dst(e){return e.type==="radial"}(function(){return or.hasGlobalWindow&&mr(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 jf(e,t,n){return(t-e)*n+e}function g9(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=sre,c=n;if(Xl(n)){var f=Fst(n);l=f,(f===1&&!Gi(n[0])||f===2&&!Gi(n[0][0]))&&(s=!0)}else if(Gi(n)&&!q3(n))l=fT;else if(Nn(n))if(!isNaN(+n))l=fT;else{var h=ih(n);h&&(c=h,l=p2)}else if(sL(n)){var p=Gt({},c);p.colorStops=Vn(n.colorStops,function(y){return{offset:y.offset,color:ih(y.color)}}),Rst(n)?l=Rj:Dst(n)&&(l=Dj),c=p}a===0?this.valType=l:(l!==this.valType||l===sre)&&(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=mr(r)?r:Z2[r]||lve(r)),o.push(m),m},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(w,C){return w.time-C.time});for(var o=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=hT(o),f=are(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],y=s[h]}if(y&&b){this._lastFr=h,this._lastFrP=n;var C=b.percent-y.percent,x=C===0?1:m((n-y.percent)/C,1);b.easingFunc&&(x=b.easingFunc(x));var _=r?this._additiveValue:f?DS:t[c];if((hT(a)||f)&&!_&&(_=this._additiveValue=[]),this.discrete)t[c]=x<1?y.rawValue:b.rawValue;else if(hT(a))a===R4?g9(_,y[o],b[o],x):Ost(_,y[o],b[o],x);else if(are(a)){var E=y[o],S=b[o],I=a===Rj;t[c]={type:I?"linear":"radial",x:jf(E.x,S.x,x),y:jf(E.y,S.y,x),colorStops:Vn(E.colorStops,function(L,O){var F=S.colorStops[O];return{offset:jf(L.offset,F.offset,x),color:M4(g9([],L.color,F.color,x))}}),global:S.global},I?(t[c].x2=jf(E.x2,S.x2,x),t[c].y2=jf(E.y2,S.y2,x)):t[c].r=jf(E.r,S.r,x)}else if(f)g9(_,y[o],b[o],x),r||(t[c]=M4(_));else{var $=jf(y[o],b[o],x);r?this._additiveValue=$:t[c]=$}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,o=this._additiveValue;n===fT?t[r]=t[r]+o:n===p2?(ih(t[r],DS),dT(DS,DS,o,1),t[r]=M4(DS)):n===R4?dT(t[r],t[r],o,1):n===dve&&ore(t[r],t[r],o,1)},e})(),oH=(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){QU("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,go(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,$4(f),o),this._trackKeys.push(l)}c.addKeyframe(t,$4(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 Sy(){return new Date().getTime()}var Vst=(function(e){hn(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=Sy()-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&&(Y3(r),!n._paused&&n.update())}Y3(r)},t.prototype.start=function(){this._running||(this._time=Sy(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Sy(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Sy()-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 oH(n,r.loop);return this.addAnimator(o),o},t})(Xd),zst=300,y9=or.domSupported,b9=(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=Vn(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),lre={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ure=!1;function Oj(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Ust(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 S9(e){e&&(e.zrByTouch=!0)}function Hst(e,t){return Wu(e.dom,new Wst(e,t),!0)}function fve(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 Wst=(function(){function e(t,n){this.stopPropagation=Gl,this.stopImmediatePropagation=Gl,this.preventDefault=Gl,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),Pc={mousedown:function(e){e=Wu(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Wu(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=Wu(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Wu(this.dom,e);var t=e.toElement||e.relatedTarget;fve(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ure=!0,e=Wu(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ure||(e=Wu(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Wu(this.dom,e),S9(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Pc.mousemove.call(this,e),Pc.mousedown.call(this,e)},touchmove:function(e){e=Wu(this.dom,e),S9(e),this.handler.processGesture(e,"change"),Pc.mousemove.call(this,e)},touchend:function(e){e=Wu(this.dom,e),S9(e),this.handler.processGesture(e,"end"),Pc.mouseup.call(this,e),+new Date-+this.__lastTouchMomentfre||e<-fre}var qv=[],j0=[],w9=By(),C9=Math.abs,sH=(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 Kv(this.rotation)||Kv(this.x)||Kv(this.y)||Kv(this.scaleX-1)||Kv(this.scaleY-1)||Kv(this.skewX)||Kv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(dre(r),this.invTransform=null);return}r=r||By(),n?this.getLocalTransform(r):dre(r),t&&(n?Fy(r,t,r):pst(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(qv);var r=qv[0]<0?-1:1,o=qv[1]<0?-1:1,a=((qv[0]-r)*n+r)/qv[0]||0,s=((qv[1]-o)*n+o)/qv[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||By(),iH(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||By(),Fy(j0,t.invTransform,n),n=j0);var r=this.originX,o=this.originY;(r||o)&&(w9[4]=r,w9[5]=o,Fy(j0,n,w9),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&&rc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&rc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&C9(t[0]-1)>1e-10&&C9(t[3]-1)>1e-10?Math.sqrt(C9(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Xst(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,y=t.skewY?Math.tan(-t.skewY):0;if(r||o||l||c){var b=r+l,w=o+c;n[4]=-b*a-m*w*s,n[5]=-w*s-y*b*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=y*a,n[2]=m*s,f&&rH(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})(),Uk=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xst(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+=Jp(r[0],n.width),f+=Jp(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 x9="__zr_normal__",_9=Uk.concat(["ignore"]),Zst=Zp(Uk,function(e,t){return e[t]=!0,e},{ignore:!1}),V0={},Jst=new ki(0,0,0,0),uL=(function(){function e(t){this.id=Kpe(),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=Jst;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(V0,r,h):nI(V0,r,h),a.x=V0.x,a.y=V0.y,s=V0.align,l=V0.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var m=void 0,y=void 0;p==="center"?(m=h.width*.5,y=h.height*.5):(m=Jp(p[0],h.width),y=Jp(p[1],h.height)),f=!0,a.originX=-a.x+m+(o?0:h.x),a.originY=-a.y+y+(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 w=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,C=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,_=void 0,E=void 0;w&&this.canBeInsideText()?(x=r.insideFill,_=r.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(x),E=!0)):(x=r.outsideFill,_=r.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(x),E=!0)),x=x||"#000",(x!==C.fill||_!==C.stroke||E!==C.autoStroke||s!==C.align||l!==C.verticalAlign)&&(c=!0,C.fill=x,C.stroke=_,C.autoStroke=E,C.align=s,C.verticalAlign=l,n.setDefaultTextStyle(C)),n.__dirty|=ku,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"&&ih(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||{},Gt(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(Gn(t))for(var r=t,o=go(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(x9,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===x9,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!($i(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){QU("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&=~ku),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 w=this._textContent,C=this._textGuide;w&&w.useStates(t,n,m),C&&C.useStates(t,n,m),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ku)}},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=$i(o,t),s=$i(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,w){n.during(w)});for(var m=0;m0||o.force&&!s.length){var O=void 0,F=void 0,M=void 0;if(l){F={},m&&(O={});for(var S=0;S=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=$i(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=$i(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 mo(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 Nn(e)?aat(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function fs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),mve),e=(+e).toFixed(t),n?e:+e}function Xf(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 lat(e)}function lat(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 uat(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 cat(e,t){var n=Zp(e,function(y,b){return y+(isNaN(b)?0:b)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=Vn(e,function(y){return(isNaN(y)?0:y)/n*r*100}),a=r*100,s=Vn(o,function(y){return Math.floor(y)}),l=Zp(s,function(y,b){return y+b},0),c=Vn(o,function(y,b){return y-s[b]});lf&&(f=c[p],h=p);++s[h],c[h]=0,++l}return Vn(s,function(y){return y/r})}function dat(e,t){var n=Math.max(Xf(e),Xf(t)),r=e+t;return n>mve?r:fs(r,n)}function gve(e){var t=Math.PI*2;return(e%t+t)%t}function rI(e){return e>-mre&&e=10&&t++,t}function yve(e,t){var n=uH(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||!Nn(e)||e.indexOf("x")<=0)?t:NaN}function pat(e){return!isNaN(iI(e))}function bve(){return Math.round(Math.random()*9)}function Sve(e,t){return t===0?e:Sve(t,e%t)}function gre(e,t){return e==null?t:t==null?e:e*t/Sve(e,t)}function Bl(e){throw new Error(e)}function yre(e,t,n){return(t-e)*n+e}var kve="series\0",vat="\0_ec_\0";function vl(e){return e instanceof Array?e:e==null?[]:[e]}function zj(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&&$i(a,c)<0)){var f=r.getShallow(c,t);f!=null&&(s[e[l][0]]=f)}}return s}}var Bat=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Fat=Wk(Bat),jat=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Fat(this,t,n)},e})(),Uj=new Bw(50);function Vat(e){if(typeof e=="string"){var t=Uj.get(e);return t&&t.image}else return e}function Tve(e,t,n,r,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=Uj.get(e),s={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!dL(t)&&a.pending.push(s)):(t=j1.loadImage(e,Sre,Sre),t.__zrImageSrc=e,Uj.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Sre(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var f=_u(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 Ive(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=_u(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?Uat(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=_u(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Uat(e,t,n,r){for(var o=0,a=0,s=e.length;ab&&f){var w=Math.floor(b/l);h=h||m.length>w,m=m.slice(0,w)}if(e&&a&&p!=null)for(var C=Eve(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},_=0;_l&&L9(n,e.substring(l,f),t,s),L9(n,c[2],t,s,c[1]),l=A9.lastIndex}lo){var W=n.lines.length;$>0?(E.tokens=E.tokens.slice(0,$),x(E,I,S),n.lines=n.lines.slice(0,_+1)):n.lines=n.lines.slice(0,_),n.isTruncated=n.isTruncated||n.lines.length0&&b+r.accumWidth>r.width&&(h=t.split(` `),f=!0),r.accumWidth=b}else{var w=Ave(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=w.accumWidth+y,p=w.linesWidths,h=w.lines}}else h=t.split(` `);for(var C=0;C=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Yat=Zp(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Xat(e){return qat(e)?!!Yat[e]:!0}function Ave(e,t,n,r,o){for(var a=[],s=[],l="",c="",f=0,h=0,p=0;pn:o+h+y>n){h?(l||c)&&(b?(l||(l=c,c="",f=0,h=f),a.push(l),s.push(h-f),c+=m,f+=y,l="",h=f):(c&&(l+=c,c="",f=0),a.push(l),s.push(h),l=m,h=y)):b?(a.push(c),s.push(f),c=m,f=y):(a.push(m),s.push(y));continue}h+=y,b?(c+=m,f+=y):(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),Um={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}};Um[Hj]=!0;var wre=["z","z2","invisible"],Zat=["invisible"],Vw=(function(e){hn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=go(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(pT[0]=R9(o)*n+e,pT[1]=M9(o)*r+t,vT[0]=R9(a)*n+e,vT[1]=M9(a)*r+t,f(l,pT,vT),h(c,pT,vT),o=o%Xv,o<0&&(o=o+Xv),a=a%Xv,a<0&&(a=a+Xv),o>a&&!s?a+=Xv:oo&&(mT[0]=R9(y)*n+e,mT[1]=M9(y)*r+t,f(l,mT,l),h(c,mT,c))}var yi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Zv=[],Jv=[],dd=[],ep=[],fd=[],hd=[],D9=Math.min,O9=Math.max,Qv=Math.cos,em=Math.sin,$f=Math.abs,Wj=Math.PI,mp=Wj*2,N9=typeof Float32Array<"u",OS=[];function B9(e){var t=Math.round(e/Wj*1e8)/1e8;return t%2*Wj}function Lve(e,t){var n=B9(e[0]);n<0&&(n+=mp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=mp?o=n+mp:t&&n-o>=mp?o=n-mp:!t&&n>o?o=n+(mp-B9(n-o)):t&&n0&&(this._ux=$f(r/tI/t)||0,this._uy=$f(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=$f(t-this._xi),o=$f(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(),OS[0]=o,OS[1]=a,Lve(OS,s),o=OS[0],a=OS[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=Qv(a)*r+t,this._yi=em(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)&&N9&&(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(){dd[0]=dd[1]=fd[0]=fd[1]=Number.MAX_VALUE,ep[0]=ep[1]=hd[0]=hd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||$f(E)>o||m===n-1)&&(w=Math.sqrt(_*_+E*E),a=C,s=x);break}case yi.C:{var S=t[m++],I=t[m++],C=t[m++],x=t[m++],$=t[m++],L=t[m++];w=Tst(a,s,S,I,C,x,$,L,10),a=$,s=L;break}case yi.Q:{var S=t[m++],I=t[m++],C=t[m++],x=t[m++];w=Ast(a,s,S,I,C,x,10),a=C,s=x;break}case yi.A:var O=t[m++],F=t[m++],M=t[m++],j=t[m++],V=t[m++],W=t[m++],U=W+V;m+=1,b&&(l=Qv(V)*M+O,c=em(V)*j+F),w=O9(M,j)*D9(mp,Math.abs(W)),a=Qv(U)*M+O,s=em(U)*j+F;break;case yi.R:{l=a=t[m++],c=s=t[m++];var X=t[m++],G=t[m++];w=X*2+G*2;break}case yi.Z:{var _=l-a,E=c-s;w=Math.sqrt(_*_+E*E),a=l,s=c;break}}w>=0&&(f[p++]=w,h+=w)}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,y=n<1,b,w,C=0,x=0,_,E=0,S,I;if(!(y&&(this._pathSegLen||this._calculateLength(),b=this._pathSegLen,w=this._pathLen,_=n*w,!_)))e:for(var $=0;$0&&(t.lineTo(S,I),E=0),L){case yi.M:l=f=r[$++],c=h=r[$++],t.moveTo(f,h);break;case yi.L:{p=r[$++],m=r[$++];var F=$f(p-f),M=$f(m-h);if(F>o||M>a){if(y){var j=b[x++];if(C+j>_){var V=(_-C)/j;t.lineTo(f*(1-V)+p*V,h*(1-V)+m*V);break e}C+=j}t.lineTo(p,m),f=p,h=m,E=0}else{var W=F*F+M*M;W>E&&(S=p,I=m,E=W)}break}case yi.C:{var U=r[$++],X=r[$++],G=r[$++],Y=r[$++],ee=r[$++],te=r[$++];if(y){var j=b[x++];if(C+j>_){var V=(_-C)/j;J3(f,U,G,ee,V,Zv),J3(h,X,Y,te,V,Jv),t.bezierCurveTo(Zv[1],Jv[1],Zv[2],Jv[2],Zv[3],Jv[3]);break e}C+=j}t.bezierCurveTo(U,X,G,Y,ee,te),f=ee,h=te;break}case yi.Q:{var U=r[$++],X=r[$++],G=r[$++],Y=r[$++];if(y){var j=b[x++];if(C+j>_){var V=(_-C)/j;Q3(f,U,G,V,Zv),Q3(h,X,Y,V,Jv),t.quadraticCurveTo(Zv[1],Jv[1],Zv[2],Jv[2]);break e}C+=j}t.quadraticCurveTo(U,X,G,Y),f=G,h=Y;break}case yi.A:var J=r[$++],Z=r[$++],ce=r[$++],ye=r[$++],ie=r[$++],Ce=r[$++],Re=r[$++],be=!r[$++],Fe=ce>ye?ce:ye,De=$f(ce-ye)>.001,Ge=ie+Ce,qe=!1;if(y){var j=b[x++];C+j>_&&(Ge=ie+Ce*(_-C)/j,qe=!0),C+=j}if(De&&t.ellipse?t.ellipse(J,Z,ce,ye,Re,ie,Ge,be):t.arc(J,Z,Fe,ie,Ge,be),qe)break e;O&&(l=Qv(ie)*ce+J,c=em(ie)*ye+Z),f=Qv(Ge)*ce+J,h=em(Ge)*ye+Z;break;case yi.R:l=f=r[$],c=h=r[$+1],p=r[$++],m=r[$++];var Ve=r[$++],he=r[$++];if(y){var j=b[x++];if(C+j>_){var de=_-C;t.moveTo(p,m),t.lineTo(p+D9(de,Ve),m),de-=Ve,de>0&&t.lineTo(p+Ve,m+D9(de,he)),de-=he,de>0&&t.lineTo(p+O9(Ve-de,0),m+he),de-=Ve,de>0&&t.lineTo(p,m+O9(he-de,0));break e}C+=j}t.rect(p,m,Ve,he);break;case yi.Z:if(y){var j=b[x++];if(C+j>_){var V=(_-C)/j;t.lineTo(f*(1-V)+l*V,h*(1-V)+c*V);break e}C+=j}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 z0(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+=NS);var m=Math.atan2(c,l);return m<0&&(m+=NS),m>=r&&m<=o||m+NS>=r&&m+NS<=o}function tm(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var tp=ug.CMD,nm=Math.PI*2,olt=1e-4;function slt(e,t){return Math.abs(e-t)t&&f>r&&f>a&&f>l||f1&&alt(),y=ia(t,r,a,l,Ku[0]),m>1&&(b=ia(t,r,a,l,Ku[1]))),m===2?Ct&&l>r&&l>a||l=0&&f<=1){for(var h=0,p=Nl(t,r,a,f),m=0;mn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);ol[0]=-c,ol[1]=c;var f=Math.abs(r-o);if(f<1e-4)return 0;if(f>=nm-1e-4){r=0,o=nm;var h=a?1:-1;return s>=ol[0]+e&&s<=ol[1]+e?h:0}if(r>o){var p=r;r=o,o=p}r<0&&(r+=nm,o+=nm);for(var m=0,y=0;y<2;y++){var b=ol[y];if(b+e>s){var w=Math.atan2(l,b),h=a?1:-1;w<0&&(w=nm+w),(w>=r&&w<=o||w+nm>=r&&w+nm<=o)&&(w>Math.PI/2&&w1&&(n||(l+=tm(c,f,h,p,r,o))),C&&(c=a[b],f=a[b+1],h=c,p=f),w){case tp.M:h=a[b++],p=a[b++],c=h,f=p;break;case tp.L:if(n){if(z0(c,f,a[b],a[b+1],t,r,o))return!0}else l+=tm(c,f,a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case tp.C:if(n){if(nlt(c,f,a[b++],a[b++],a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=llt(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 tp.Q:if(n){if(rlt(c,f,a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=ult(c,f,a[b++],a[b++],a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case tp.A:var x=a[b++],_=a[b++],E=a[b++],S=a[b++],I=a[b++],$=a[b++];b+=1;var L=!!(1-a[b++]);m=Math.cos(I)*E+x,y=Math.sin(I)*S+_,C?(h=m,p=y):l+=tm(c,f,m,y,r,o);var O=(r-x)*S/E+x;if(n){if(ilt(x,_,S,I,I+$,L,t,O,o))return!0}else l+=clt(x,_,S,I,I+$,L,O,o);c=Math.cos(I+$)*E+x,f=Math.sin(I+$)*S+_;break;case tp.R:h=c=a[b++],p=f=a[b++];var F=a[b++],M=a[b++];if(m=h+F,y=p+M,n){if(z0(h,p,m,p,t,r,o)||z0(m,p,m,y,t,r,o)||z0(m,y,h,y,t,r,o)||z0(h,y,h,p,t,r,o))return!0}else l+=tm(m,p,m,y,r,o),l+=tm(h,y,h,p,r,o);break;case tp.Z:if(n){if(z0(c,f,h,p,t,r,o))return!0}else l+=tm(c,f,h,p,r,o);c=h,f=p;break}}return!n&&!slt(f,p)&&(l+=tm(c,f,h,p,r,o)||0),l!==0}function dlt(e,t,n){return Pve(e,0,!1,t,n)}function flt(e,t,n,r){return Pve(e,t,!0,n,r)}var $ve=wi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Um),hlt={style:wi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fL.style)},F9=Uk.concat(["invisible","culling","z","z2","zlevel","parent"]),Ei=(function(e){hn(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?Yst:jj}else if(n)return jj}return Fj},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Nn(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&dy)&&(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)),flt(l,c/f,n,r)))return!0}if(this.hasFill())return dlt(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=dy,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:Gt(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&dy)},t.prototype.createStyle=function(n){return aL($ve,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Gt({},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=Gt({},o.shape),Gt(f,r.shape)):(f=Gt({},a?this.shape:o.shape),Gt(f,r.shape)):c&&(f=o.shape),f)if(s){this.shape=Gt({},this.shape);for(var h={},p=go(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(plt,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=aH(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})(Vw);oI.prototype.type="tspan";var vlt=wi({x:0,y:0},Um),mlt={style:wi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fL.style)};function glt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var fv=(function(e){hn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return aL(vlt,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=glt(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 mlt},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ki(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Vw);fv.prototype.type="image";function ylt(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 ky=Math.round;function Mve(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&&(ky(r*2)===ky(o*2)&&(e.x1=e.x2=xm(r,l,!0)),ky(a*2)===ky(s*2)&&(e.y1=e.y2=xm(a,l,!0))),e}}function Rve(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=xm(r,l,!0),e.y=xm(o,l,!0),e.width=Math.max(xm(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(xm(o+s,l,!1)-e.y,s===0?0:1)),e}}function xm(e,t,n){if(!t)return e;var r=ky(e*2);return(r+ky(t))%2===0?r/2:(r+(n?1:-1))/2}var blt=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Slt={},hs=(function(e){hn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new blt},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Rve(Slt,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?ylt(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Ei);hs.prototype.type="rect";var Ere={fill:"#000"},Ire=2,klt={style:wi({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)},va=(function(e){hn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Ere,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,V=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),W=s.calculatedLineHeight,U=0;U=0&&(U=$[W],U.align==="right");)this._placeToken(U,n,O,x,V,"right",E),F-=U.width,V-=U.width,W--;for(j+=(a-(j-C)-(_-V)-F)/2;M<=W;)U=$[M],this._placeToken(U,n,O,x,j+U.width/2,"center",E),j+=U.width,M++;x+=O}},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&&j9(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 y=!!f.backgroundColor,b=n.textPadding;b&&(s=Rre(s,l,b),p-=n.height/2-b[0]-n.innerHeight/2);var w=this._getOrCreateChild(oI),C=w.createStyle();w.useStyle(C);var x=this._defaultStyle,_=!1,E=0,S=Mre("fill"in f?f.fill:"fill"in r?r.fill:(_=!0,x.fill)),I=$re("stroke"in f?f.stroke:"stroke"in r?r.stroke:!y&&!c&&(!x.autoStroke||_)?(E=Ire,x.stroke):null),$=f.textShadowBlur>0||r.textShadowBlur>0;C.text=n.text,C.x=s,C.y=p,$&&(C.shadowBlur=f.textShadowBlur||r.textShadowBlur||0,C.shadowColor=f.textShadowColor||r.textShadowColor||"transparent",C.shadowOffsetX=f.textShadowOffsetX||r.textShadowOffsetX||0,C.shadowOffsetY=f.textShadowOffsetY||r.textShadowOffsetY||0),C.textAlign=l,C.textBaseline="middle",C.font=n.font||sg,C.opacity=Y2(f.opacity,r.opacity,1),Lre(C,f),I&&(C.lineWidth=Y2(f.lineWidth,r.lineWidth,E),C.lineDash=Ir(f.lineDash,r.lineDash),C.lineDashOffset=r.lineDashOffset||0,C.stroke=I),S&&(C.fill=S);var L=n.contentWidth,O=n.contentHeight;w.setBoundingRect(new ki(v2(C.x,L,C.textAlign),fy(C.y,O,C.textBaseline),L,O))},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,y=n.borderRadius,b=this,w,C;if(m||n.lineHeight||f&&h){w=this._getOrCreateChild(hs),w.useStyle(w.createStyle()),w.style.fill=null;var x=w.shape;x.x=o,x.y=a,x.width=s,x.height=l,x.r=y,w.dirtyShape()}if(m){var _=w.style;_.fill=c||null,_.fillOpacity=Ir(n.fillOpacity,1)}else if(p){C=this._getOrCreateChild(fv),C.onload=function(){b.dirtyStyle()};var E=C.style;E.image=c.image,E.x=o,E.y=a,E.width=s,E.height=l}if(f&&h){var _=w.style;_.lineWidth=f,_.stroke=h,_.strokeOpacity=Ir(n.strokeOpacity,1),_.lineDash=n.borderDash,_.lineDashOffset=n.borderDashOffset||0,w.strokeContainThreshold=0,w.hasFill()&&w.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var S=(w||C).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=Y2(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return _lt(n)&&(r=[n.fontStyle,n.fontWeight,xlt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Ad(r)||n.textFont||n.font},t})(Vw),wlt={left:!0,right:1,center:1},Clt={top:1,bottom:1,middle:1},Are=["fontStyle","fontWeight","fontSize","fontFamily"];function xlt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?XU+"px":e+"px"}function Lre(e,t){for(var n=0;n=0,a=!1;if(e instanceof Ei){var s=Dve(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(U0(l)||U0(c)){r=r||{};var f=r.style||{};f.fill==="inherit"?(a=!0,r=Gt({},r),f=Gt({},f),f.fill=l):!U0(f.fill)&&U0(l)?(a=!0,r=Gt({},r),f=Gt({},f),f.fill=ire(l)):!U0(f.stroke)&&U0(c)&&(a||(r=Gt({},r),f=Gt({},f)),f.stroke=ire(c)),r.style=f}}if(r&&r.z2==null){a||(r=Gt({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Ilt)}return r}function Rlt(e,t,n){if(n&&n.z2==null){n=Gt({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Alt)}return n}function Dlt(e,t,n){var r=$i(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=Gt({},n),s=Gt({opacity:r?o:a.opacity*.1},s),n.style=s),n}function V9(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Mlt(this,e,t,n);if(e==="blur")return Dlt(this,e,n);if(e==="select")return Rlt(this,e,n)}return n}function Olt(e){e.stateProxy=V9;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=V9),n&&(n.stateProxy=V9)}function jre(e,t){!zve(e,t)&&!e.__highByOuter&&Ch(e,Ove)}function Vre(e,t){!zve(e,t)&&!e.__highByOuter&&Ch(e,Nve)}function aI(e,t){e.__highByOuter|=1<<(t||0),Ch(e,Ove)}function lI(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ch(e,Nve)}function Nlt(e){Ch(e,vH)}function Fve(e){Ch(e,Bve)}function jve(e){Ch(e,Llt)}function Vve(e){Ch(e,Plt)}function zve(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Uve(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=hH(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(f){Bve(f)}),l&&n.push(a)),s.isBlured=!1}),ct(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){Hve(e,!0),Ch(e,Olt),Hlt(e,t,n)}function Ult(e){Hve(e,!1)}function Gk(e,t,n,r){r?Ult(e):qj(e,t,n)}function Hlt(e,t,n){var r=li(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Ure=["emphasis","blur","select"],Wlt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function uI(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=z9(b),l*=z9(b));var w=(o===a?-1:1)*z9((s*s*(l*l)-s*s*(y*y)-l*l*(m*m))/(s*s*(y*y)+l*l*(m*m)))||0,C=w*s*y/l,x=w*-l*m/s,_=(e+n)/2+bT(p)*C-yT(p)*x,E=(t+r)/2+yT(p)*C+bT(p)*x,S=Kre([1,0],[(m-C)/s,(y-x)/l]),I=[(m-C)/s,(y-x)/l],$=[(-1*m-C)/s,(-1*y-x)/l],L=Kre(I,$);if(Zj(I,$)<=-1&&(L=BS),Zj(I,$)>=1&&(L=0),L<0){var O=Math.round(L/BS*1e6)/1e6;L=BS*2+O%2*BS}h.addData(f,_,E,s,l,S,L,p,a)}var Zlt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Jlt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qlt(e){var t=new ug;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=ug.CMD,c=e.match(Zlt);if(!c)return t;for(var f=0;fU*U+X*X&&(O=M,F=j),{cx:O,cy:F,x0:-h,y0:-p,x1:O*(o/I-1),y1:F*(o/I-1)}}function aut(e){var t;if(Tn(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 lut(e,t){var n,r=m2(t.r,0),o=m2(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,y=Yre(f-c),b=y>U9&&y%U9;if(b>Ac&&(y=b),!(r>Ac))e.moveTo(h,p);else if(y>U9-Ac)e.moveTo(h+r*W0(c),p+r*rm(c)),e.arc(h,p,r,c,f,!m),o>Ac&&(e.moveTo(h+o*W0(f),p+o*rm(f)),e.arc(h,p,o,f,c,m));else{var w=void 0,C=void 0,x=void 0,_=void 0,E=void 0,S=void 0,I=void 0,$=void 0,L=void 0,O=void 0,F=void 0,M=void 0,j=void 0,V=void 0,W=void 0,U=void 0,X=r*W0(c),G=r*rm(c),Y=o*W0(f),ee=o*rm(f),te=y>Ac;if(te){var J=t.cornerRadius;J&&(n=aut(J),w=n[0],C=n[1],x=n[2],_=n[3]);var Z=Yre(r-o)/2;if(E=pd(Z,x),S=pd(Z,_),I=pd(Z,w),$=pd(Z,C),F=L=m2(E,S),M=O=m2(I,$),(L>Ac||O>Ac)&&(j=r*W0(f),V=r*rm(f),W=o*W0(c),U=o*rm(c),yAc){var De=pd(x,F),Ge=pd(_,F),qe=ST(W,U,X,G,r,De,m),Ve=ST(j,V,Y,ee,r,Ge,m);e.moveTo(h+qe.cx+qe.x0,p+qe.cy+qe.y0),F0&&e.arc(h+qe.cx,p+qe.cy,De,Ia(qe.y0,qe.x0),Ia(qe.y1,qe.x1),!m),e.arc(h,p,r,Ia(qe.cy+qe.y1,qe.cx+qe.x1),Ia(Ve.cy+Ve.y1,Ve.cx+Ve.x1),!m),Ge>0&&e.arc(h+Ve.cx,p+Ve.cy,Ge,Ia(Ve.y1,Ve.x1),Ia(Ve.y0,Ve.x0),!m))}else e.moveTo(h+X,p+G),e.arc(h,p,r,c,f,!m);if(!(o>Ac)||!te)e.lineTo(h+Y,p+ee);else if(M>Ac){var De=pd(w,M),Ge=pd(C,M),qe=ST(Y,ee,j,V,o,-Ge,m),Ve=ST(X,G,W,U,o,-De,m);e.lineTo(h+qe.cx+qe.x0,p+qe.cy+qe.y0),M0&&e.arc(h+qe.cx,p+qe.cy,Ge,Ia(qe.y0,qe.x0),Ia(qe.y1,qe.x1),!m),e.arc(h,p,o,Ia(qe.cy+qe.y1,qe.cx+qe.x1),Ia(Ve.cy+Ve.y1,Ve.cx+Ve.x1),m),De>0&&e.arc(h+Ve.cx,p+Ve.cy,De,Ia(Ve.y1,Ve.x1),Ia(Ve.y0,Ve.x0),!m))}else e.lineTo(h+Y,p+ee),e.arc(h,p,o,f,c,m)}e.closePath()}}}var uut=(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})(),hv=(function(e){hn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new uut},t.prototype.buildPath=function(n,r){lut(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Ei);hv.prototype.type="sector";var cut=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),yH=(function(e){hn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new cut},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})(Ei);yH.prototype.type="ring";function dut(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,y=e.length;m=2){if(r){var a=dut(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;lom[1]){if(l=!1,a)return l;var h=Math.abs(om[0]-im[1]),p=Math.abs(im[0]-om[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,m=h.delay,y=h.easing,b={duration:p,delay:m||0,easing:y,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 gl(e,t,n,r,o,a){kH("update",e,t,n,r,o,a)}function ic(e,t,n,r,o,a){kH("enter",e,t,n,r,o,a)}function rk(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 Jre(e){return!e.isGroup}function Mut(e){return e.shape!=null}function tme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){Jre(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Mut(s)&&(l.shape=Gt({},s.shape)),l}var a=r(e);t.traverse(function(s){if(Jre(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),gl(s,c,n,li(s).dataIndex)}}})}function Rut(e,t){return Vn(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 Dut(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 _H(e,t,n){var r=Gt({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),wi(o,n),new fv(r)):CH(e.replace("path://",""),r,n,"center")}function Out(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var C=H9(y,b,h,p)/m;return!(C<0||C>1)}function H9(e,t,n,r){return e*r-n*t}function Nut(e){return e<=1e-6&&e>=-1e-6}function yL(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=Nn(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&&ct(go(c),function(h){ag(l,h)||(l[h]=c[h],l.$vars.push(h))});var f=li(e.el);f.componentMainType=a,f.componentIndex=s,f.tooltipConfig={name:r,option:wi({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function Qre(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function bL(e,t){if(e)if(Tn(e))for(var n=0;n=0&&l.push(c)}),l}}function ome(e,t){return Si(Si({},e,!0),t,!0)}const Qut={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:". "}}}},ect={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",TH="EN",Vy=TH,F4={},EH={},sme=or.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Vy).toUpperCase();return e.indexOf(vI)>-1?vI:Vy})():Vy;function ame(e,t){e=e.toUpperCase(),EH[e]=new jo(t),F4[e]=t}function tct(e){if(Nn(e)){var t=F4[e.toUpperCase()]||{};return e===vI||e===TH?ti(t):Si(ti(t),ti(F4[Vy]),!1)}else return Si(ti(e),ti(F4[Vy]),!1)}function nct(e){return EH[e]}function rct(){return EH[Vy]}ame(TH,Qut);ame(vI,ect);var IH=1e3,AH=IH*60,ik=AH*60,Qu=ik*24,sie=Qu*365,g2={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}"},CT="{yyyy}-{MM}-{dd}",aie={year:"{yyyy}",month:"{yyyy}-{MM}",day:CT,hour:CT+" "+g2.hour,minute:CT+" "+g2.minute,second:CT+" "+g2.second,millisecond:g2.none},K9=["year","month","day","hour","minute","second","millisecond"],lme=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function np(e,t){return e+="","0000".substr(0,t-e.length)+e}function zy(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 ict(e){return e===zy(e)}function oct(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function CL(e,t,n,r){var o=vh(e),a=o[LH(n)](),s=o[Uy(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[xL(n)](),f=o["get"+(n?"UTC":"")+"Day"](),h=o[qk(n)](),p=(h-1)%12+1,m=o[_L(n)](),y=o[TL(n)](),b=o[EL(n)](),w=h>=12?"pm":"am",C=w.toUpperCase(),x=r instanceof jo?r:nct(r||sme)||rct(),_=x.getModel("time"),E=_.get("month"),S=_.get("monthAbbr"),I=_.get("dayOfWeek"),$=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,w+"").replace(/{A}/g,C+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,np(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,S[s-1]).replace(/{MM}/g,np(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,np(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,I[f]).replace(/{ee}/g,$[f]).replace(/{e}/g,f+"").replace(/{HH}/g,np(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,np(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,np(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,np(y,2)).replace(/{s}/g,y+"").replace(/{SSS}/g,np(b,3)).replace(/{S}/g,b+"")}function sct(e,t,n,r,o){var a=null;if(Nn(n))a=n;else if(mr(n))a=n(e.value,t,{level:e.level});else{var s=Gt({},g2);if(e.level>0)for(var l=0;l=0;--l)if(c[f]){a=c[f];break}a=a||s.none}if(Tn(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 CL(new Date(e.value),a,o,r)}function ume(e,t){var n=vh(e),r=n[Uy(t)]()+1,o=n[xL(t)](),a=n[qk(t)](),s=n[_L(t)](),l=n[TL(t)](),c=n[EL(t)](),f=c===0,h=f&&l===0,p=h&&s===0,m=p&&a===0,y=m&&o===1,b=y&&r===1;return b?"year":y?"month":m?"day":p?"hour":h?"minute":f?"second":"millisecond"}function lie(e,t,n){var r=Gi(e)?vh(e):e;switch(t=t||ume(e,n),t){case"year":return r[LH(n)]();case"half-year":return r[Uy(n)]()>=6?1:0;case"quarter":return Math.floor((r[Uy(n)]()+1)/4);case"month":return r[Uy(n)]();case"day":return r[xL(n)]();case"half-day":return r[qk(n)]()/24;case"hour":return r[qk(n)]();case"minute":return r[_L(n)]();case"second":return r[TL(n)]();case"millisecond":return r[EL(n)]()}}function LH(e){return e?"getUTCFullYear":"getFullYear"}function Uy(e){return e?"getUTCMonth":"getMonth"}function xL(e){return e?"getUTCDate":"getDate"}function qk(e){return e?"getUTCHours":"getHours"}function _L(e){return e?"getUTCMinutes":"getMinutes"}function TL(e){return e?"getUTCSeconds":"getSeconds"}function EL(e){return e?"getUTCMilliseconds":"getMilliseconds"}function act(e){return e?"setUTCFullYear":"setFullYear"}function cme(e){return e?"setUTCMonth":"setMonth"}function dme(e){return e?"setUTCDate":"setDate"}function fme(e){return e?"setUTCHours":"setHours"}function hme(e){return e?"setUTCMinutes":"setMinutes"}function pme(e){return e?"setUTCSeconds":"setSeconds"}function vme(e){return e?"setUTCMilliseconds":"setMilliseconds"}function mme(e){if(!pat(e))return Nn(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function gme(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 IL=qpe;function Qj(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&Ad(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?vh(e):e;if(isNaN(+c)){if(l)return"-"}else return CL(c,r,n)}if(t==="ordinal")return Cj(e)?o(e):Gi(e)&&a(e)?e+"":"-";var f=iI(e);return a(f)?mme(f):Cj(e)?o(e):typeof e=="boolean"?e+"":"-"}var uie=["a","b","c","d","e","f","g"],q9=function(e,t){return"{"+e+(t??"")+"}"};function yme(e,t,n){Tn(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 cg(e,t){return t=t||"transparent",Nn(e)?e:Gn(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function cie(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=ct,uct=["left","right","top","bottom","width","height"],xT=[["width","left","right"],["height","top","bottom"]];function PH(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(),y,b;if(e==="horizontal"){var w=h.width+(m?-m.x+h.x:0);y=a+w,y>r||c.newline?(a=0,y=w,s+=l+n,l=h.height):l=Math.max(l,h.height)}else{var C=h.height+(m?-m.y+h.y:0);b=s+C,b>o||c.newline?(a+=l+n,s=0,b=C,l=h.width):l=Math.max(l,h.width)}c.newline||(c.x=a,c.y=s,c.markRedraw(),e==="horizontal"?a=y+n:s=b+n)})}var ok=PH;Go(PH,"vertical");Go(PH,"horizontal");function d1(e,t,n){n=IL(n||0);var r=t.width,o=t.height,a=mo(e.left,r),s=mo(e.top,o),l=mo(e.right,r),c=mo(e.bottom,o),f=mo(e.width,r),h=mo(e.height,o),p=n[2]+n[0],m=n[1]+n[3],y=e.aspect;switch(isNaN(f)&&(f=r-l-m-a),isNaN(h)&&(h=o-c-p-s),y!=null&&(isNaN(f)&&isNaN(h)&&(y>r/o?f=r*.8:h=o*.8),isNaN(f)&&(f=y*h),isNaN(h)&&(h=f/y)),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 ki(a+n[3],s+n[0],f,h);return b.margin=n,b}function Yk(e){var t=e.layoutMode||e.constructor.layoutMode;return Gn(t)?t:t?{type:t}:null}function f1(e,t,n){var r=n&&n.ignoreSize;!Tn(r)&&(r=[r,r]);var o=s(xT[0],0),a=s(xT[1],1);f(xT[0],e,o),f(xT[1],e,a);function s(h,p){var m={},y=0,b={},w=0,C=2;if(j4(h,function(E){b[E]=e[E]}),j4(h,function(E){l(t,E)&&(m[E]=b[E]=t[E]),c(m,E)&&y++,c(b,E)&&w++}),r[p])return c(t,h[1])?b[h[2]]=null:c(t,h[2])&&(b[h[1]]=null),b;if(w===C||!y)return b;if(y>=C)return m;for(var x=0;x=0;c--)l=Si(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return jw(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})(jo);_ve(_i,jo);cL(_i);Zut(_i);Jut(_i,fct);function fct(e){var t=[];return ct(_i.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Vn(t,function(n){return Ld(n).main}),e!=="dataset"&&$i(t,"dataset")<=0&&t.unshift("dataset"),t}var bme="";typeof navigator<"u"&&(bme=navigator.platform||"");var G0="rgba(0, 0, 0, 0.2)";const hct={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:G0,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:G0,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:G0,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:G0,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:G0,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:G0,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:bme.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 Sme=Mr(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),hc="original",Jl="arrayRows",Jc="objectRows",Zd="keyedColumns",Vp="typedArray",kme="unknown",oh="column",z1="row",Qs={Must:1,Might:2,Not:3},wme=Zo();function pct(e){wme(e).datasetMap=Mr()}function vct(e,t,n){var r={},o=$H(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=wme(l).datasetMap,f=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),ct(e,function(w,C){var x=Gn(w)?w:e[C]={name:w};x.type==="ordinal"&&h==null&&(h=C,p=b(x)),r[x.name]=[]});var m=c.get(f)||c.set(f,{categoryWayDim:p,valueWayDim:0});ct(e,function(w,C){var x=w.name,_=b(w);if(h==null){var E=m.valueWayDim;y(r[x],E,_),y(s,E,_),m.valueWayDim+=_}else if(h===C)y(r[x],0,_),y(a,0,_);else{var E=m.categoryWayDim;y(r[x],E,_),y(s,E,_),m.categoryWayDim+=_}});function y(w,C,x){for(var _=0;_t)return e[r];return e[n-1]}function kct(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:Sct(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 wct(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var _T,FS,fie,hie="\0_ec_inner",Cct=1,RH=(function(e){hn(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 jo(a),this._locale=new jo(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=mie(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,mie(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"?fie(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&&ct(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=Mr(),f=r&&r.replaceMergeMainTypeMap;pct(this),ct(n,function(p,m){p!=null&&(_i.hasClass(m)?m&&(l.push(m),c.set(m,!0)):o[m]=o[m]==null?ti(p):Si(o[m],p,!0))}),f&&f.each(function(p,m){_i.hasClass(m)&&!c.get(m)&&(l.push(m),c.set(m,!0))}),_i.topologicalTravel(l,_i.getAllClassMainTypes(),h,this);function h(p){var m=bct(this,p,vl(n[p])),y=a.get(p),b=y?f&&f.get(p)?"replaceMerge":"normalMerge":"replaceAll",w=gat(y,m,b);xat(w,p,_i),o[p]=null,a.set(p,null),s.set(p,0);var C=[],x=[],_=0,E;ct(w,function(S,I){var $=S.existing,L=S.newOption;if(!L)$&&($.mergeOption({},this),$.optionUpdated({},!1));else{var O=p==="series",F=_i.getClass(p,S.keyInfo.subType,!O);if(!F)return;if(p==="tooltip"){if(E)return;E=!0}if($&&$.constructor===F)$.name=S.keyInfo.name,$.mergeOption(L,this),$.optionUpdated(L,!1);else{var M=Gt({componentIndex:I},S.keyInfo);$=new F(L,this,this,M),Gt($,M),S.brandNew&&($.__requireNewView=!0),$.init(L,this,this),$.optionUpdated(null,!0)}}$?(C.push($.option),x.push($),_++):(C.push(void 0),x.push(void 0))},this),o[p]=C,a.set(p,x),s.set(p,_),p==="series"&&_T(this)}this._seriesIndices||_T(this)},t.prototype.getOption=function(){var n=ti(this.option);return ct(n,function(r,o){if(_i.hasClass(o)){for(var a=vl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!Hk(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[hie],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 xc=ct,Xk=Gn,gie=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function X9(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=gie.length;n=0;C--){var x=e[C];if(l||(b=x.data.rawIndexOf(x.stackedByDimension,y)),b>=0){var _=x.data.getByRawIndex(x.stackResultDimension,b);if(c==="all"||c==="positive"&&_>0||c==="negative"&&_<0||c==="samesign"&&m>=0&&_>0||c==="samesign"&&m<=0&&_<0){m=dat(m,_),w=_;break}}}return r[0]=m,r[1]=w,r})})}var LL=(function(){function e(t){this.data=t.data||(t.sourceFormat===Zd?{}:[]),this.sourceFormat=t.sourceFormat||kme,this.seriesLayoutBy=t.seriesLayoutBy||oh,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;rw&&(w=E)}y[0]=b,y[1]=w}},o=function(){return this._data?this._data.length/this._dimSize:0};xie=(t={},t[Jl+"_"+oh]={pure:!0,appendData:a},t[Jl+"_"+z1]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Jc]={pure:!0,appendData:a},t[Zd]={pure:!0,appendData:function(s){var l=this._data;ct(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[Vp]={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&&(w=s.interpolatedValue[C])}return w!=null?w+"":""})}},e.prototype.getRawValue=function(t,n){return h1(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Iie(e){var t,n;return Gn(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function sk(e){return new Xct(e)}var Xct=(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(_){return!(_>=1)&&(_=1),_}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 y=this._dueIndex,b=Math.min(m!=null?this._dueIndex+m:1/0,this._dueEnd);if(!r&&(p||y1&&r>0?l:s}};return a;function s(){return t=e?null:co?-this._resultLT:0},e})(),Jct=(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 Qct(e,t){var n=new Jct,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==oh&&Bl(s);var l=[],c={},f=e.dimensionsDefine;if(f)ct(f,function(w,C){var x=w.name,_={index:C,name:x,displayName:w.displayName};if(l.push(_),x!=null){var E="";ag(c,x)&&Bl(E),c[x]=_}});else for(var h=0;h65535?adt:ldt}function q0(){return[1/0,-1/0]}function udt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Pie(e,t,n,r,o){var a=Nme[n||"float"];if(o){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),f=0;fC[1]&&(C[1]=w)}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=Vn(s,function(_){return _.property}),h=0;hx[1]&&(x[1]=C)}}!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=y,f=0),y===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&&_<=m||isNaN(_))&&(c[f++]=w),w++}b=!0}else if(a===2){for(var C=y[o[0]],E=y[o[1]],S=t[o[1]][0],I=t[o[1]][1],x=0;x=p&&_<=m||isNaN(_))&&($>=S&&$<=I||isNaN($))&&(c[f++]=w),w++}b=!0}}if(!b)if(a===1)for(var x=0;x=p&&_<=m||isNaN(_))&&(c[f++]=L)}else for(var x=0;xt[M][1])&&(O=!1)}O&&(c[f++]=n.getRawIndex(x))}return fx[1]&&(x[1]=C)}}}},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,y=new(K0(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));y[l++]=f;for(var b=1;bh&&(h=p,m=S)}j>0&&jl&&(w=l-h);for(var C=0;Cb&&(b=_,y=h+C)}var E=this.getRawIndex(p),S=this.getRawIndex(y);ph-b&&(c=h-b,l.length=c);for(var w=0;wp[1]&&(p[1]=x),m[y++]=_}return a._count=y,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])}Q9={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})(),cdt=(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(TT(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=Zl(l)?Vp:hc,a=[];var p=this._getSourceMetaRawOption()||{},m=f&&f.metaRawOption||{},y=Ir(p.seriesLayoutBy,m.seriesLayoutBy)||null,b=Ir(p.sourceHeader,m.sourceHeader),w=Ir(p.dimensions,m.dimensions),C=y!==m.seriesLayoutBy||!!b!=!!m.sourceHeader||w;o=C?[eV(l,{seriesLayoutBy:y,sourceHeader:b,dimensions:w},c)]:[]}else{var x=t;if(r){var _=this._applyTransform(n);o=_.sourceList,a=_.upstreamSignList}else{var E=x.get("source",!0);o=[eV(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(o,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(o!=null){var a="";t.length!==1&&$ie(a)}var s,l=[],c=[];return ct(t,function(f){f.prepareSource();var h=f.getSource(o||0),p="";o!=null&&!h&&$ie(p),l.push(h),c.push(f._getVersionSign())}),r?s=odt(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[zct(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 ct(e.blocks,function(o){var a=Vme(o);a>=t&&(t=a+ +(r&&(!a||nV(o)&&!o.noHeader)))}),t}return 0}function pdt(e,t,n,r){var o=t.noHeader,a=mdt(Vme(t)),s=[],l=t.blocks||[];ph(!l||Tn(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(ag(f,c)){var h=new Zct(f[c],null);l.sort(function(w,C){return h.evaluate(w.sortParam,C.sortParam)})}else c==="seriesDesc"&&l.reverse()}ct(l,function(w,C){var x=t.valueFormatter,_=jme(w)(x?Gt(Gt({},e),{valueFormatter:x}):e,w,C>0?a.html:0,r);_!=null&&s.push(_)});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),y=Fme(r,e.renderMode).nameStyle,b=Bme(r);return e.renderMode==="richText"?zme(e,m,y)+a.richText+p:rV(r,'
'+Ol(m)+"
"+p,n)}function vdt(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(S){return S=Tn(S)?S:[S],Vn(S,function(I,$){return Qj(I,Tn(y)?y[$]:y,f)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=a?"":Qj(c,"ordinal",f),y=t.valueType,b=s?[]:h(t.value,t.dataIndex),w=!l||!a,C=!l&&a,x=Fme(r,o),_=x.nameStyle,E=x.valueStyle;return o==="richText"?(l?"":p)+(a?"":zme(e,m,_))+(s?"":bdt(e,b,w,C,E)):rV(r,(l?"":p)+(a?"":gdt(m,!l,_))+(s?"":ydt(b,w,C,E)),n)}}function Mie(e,t,n,r,o,a){if(e){var s=jme(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function mdt(e){return{html:fdt[e],richText:hdt[e]}}function rV(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=Bme(e);return'
'+t+r+"
"}function gdt(e,t,n){var r=t?"margin-left:2px":"";return''+Ol(e)+""}function ydt(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=Tn(e)?e:[e],''+Vn(e,function(s){return Ol(s)}).join("  ")+""}function zme(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function bdt(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(Tn(t)?t.join(" "):t,a)}function Sdt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return cg(r)}function Ume(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var eB=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=bve()}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=lct({color:n,type:t,renderMode:r,markerId:o});return Nn(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Tn(n)?ct(n,function(a){return Gt(r,a)}):Gt(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function kdt(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=Tn(l),f=Sdt(t,n),h,p,m,y;if(s>1||c&&!s){var b=wdt(l,t,n,a,f);h=b.inlineValues,p=b.inlineValueTypes,m=b.blocks,y=b.inlineValues[0]}else if(s){var w=o.getDimensionInfo(a[0]);y=h=h1(o,n,a[0]),p=w.type}else y=h=c?l[0]:l;var C=cH(t),x=C&&t.name||"",_=o.getName(n),E=r?x:_;return Zk("section",{header:x,noHeader:r||!C,sortParam:y,blocks:[Zk("nameValue",{markerType:"item",markerColor:f,name:E,noName:!Ad(E),value:h,valueType:p,dataIndex:n})].concat(m||[])})}function wdt(e,t,n,r,o){var a=t.getData(),s=Zp(e,function(p,m,y){var b=a.getDimensionInfo(y);return p=p||b&&b.tooltip!==!1&&b.displayName!=null},!1),l=[],c=[],f=[];r.length?ct(r,function(p){h(h1(a,n,p),p)}):ct(e,h);function h(p,m){var y=a.getDimensionInfo(m);!y||y.otherDims.tooltip===!1||(s?f.push(Zk("nameValue",{markerType:"subItem",markerColor:o,name:y.displayName,value:p,valueType:y.type})):(l.push(p),c.push(y.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:f}}var rp=Zo();function ET(e,t){return e.getName(t)||e.getId(t)}var Cdt="__universalTransitionEnabled",qc=(function(e){hn(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=sk({count:_dt,reset:Tdt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=rp(this).sourceManager=new cdt(this);a.prepareSource();var s=this.getInitialData(n,o);Die(s,this),this.dataTask.context.data=s,rp(this).dataBeforeProcessed=s,Rie(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=Yk(this),a=o?AL(n):{},s=this.subType;_i.hasClass(s)&&(s+="Series"),Si(n,r.getTheme().get(this.subType)),Si(n,this.getDefaultOption()),zj(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&f1(n,a,o)},t.prototype.mergeOption=function(n,r){n=Si(this.option,n,!0),this.fillDataTextStyle(n.data);var o=Yk(this);o&&f1(this.option,n,o);var a=rp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);Die(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,rp(this).dataBeforeProcessed=s,Rie(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Zl(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=MH.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[ET(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Cdt])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"){Gn(s.selectedMap)||(s.selectedMap={});for(var f=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return _i.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})(_i);Yd(qc,Yct);Yd(qc,MH);_ve(qc,_i);function Rie(e){var t=e.name;cH(e)||(e.name=xdt(e)||t)}function xdt(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return ct(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function _dt(e){return e.model.getRawData().count()}function Tdt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Edt}function Edt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Die(e,t){ct(Got(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Go(Idt,t))})}function Idt(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 Yc=(function(){function e(){this.group=new pa,this.uid=wL("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})();fH(Yc);cL(Yc);function FH(){var e=Zo();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 Hme=Zo(),Adt=FH(),oc=(function(){function e(){this.group=new pa,this.uid=wL("viewChart"),this.renderTask=sk({plan:Ldt,reset:Pdt}),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&&Nie(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Nie(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){Hme(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Oie(e,t,n){e&&Yj(e)&&(t==="emphasis"?aI:lI)(e,n)}function Nie(e,t,n){var r=lg(e,t),o=t&&t.highlightKey!=null?Glt(t.highlightKey):null;r!=null?ct(vl(r),function(a){Oie(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Oie(a,n,o)})}fH(oc);cL(oc);function Ldt(e){return Adt(e.model)}function Pdt(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&Hme(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",Bie="\0__throttleRate",Fie="\0__throttleType";function $L(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 y=[],b=0;b=0?p():s=setTimeout(p,-l),o=r};return m.clear=function(){s&&(clearTimeout(s),s=null)},m.debounceNextCall=function(y){h=y},m}function Wme(e,t,n,r){var o=e[t];if(o){var a=o[mI]||o,s=o[Fie],l=o[Bie];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=$L(a,n,r==="debounce"),o[mI]=a,o[Fie]=r,o[Bie]=n}return o}}function oV(e,t){var n=e[t];n&&n[mI]&&(n.clear&&n.clear(),e[t]=n[mI])}var jie=Zo(),Vie={itemStyle:Wk(ime,!0),lineStyle:Wk(rme,!0)},Mdt={lineStyle:"stroke",itemStyle:"fill"};function Gme(e,t){var n=e.visualStyleMapper||Vie[t];return n||(console.warn("Unknown style type '"+t+"'."),Vie.itemStyle)}function Kme(e,t){var n=e.visualDrawType||Mdt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Rdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=Gme(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Kme(e,r),f=s[c],h=mr(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"||mr(s.fill)?m:s.fill,s.stroke=s.stroke==="auto"||mr(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(y,b){var w=e.getDataParams(b),C=Gt({},s);C[c]=h(w),y.setItemVisual(b,"style",C)}}}},VS=new jo,Ddt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=Gme(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){VS.option=c[r];var f=o(VS),h=s.ensureUniqueItemVisual(l,"style");Gt(h,f),VS.option.decal&&(s.setItemVisual(l,"decal",VS.option.decal),VS.option.decal.dirty=!0),a in f&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Odt={performRawSeries:!0,overallReset:function(e){var t=Mr();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)),jie(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=jie(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=Kme(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"),y=r.getName(f)||f+"",b=r.count();m[c]=n.getColorFromPalette(y,s,b)}})}})}},IT=Math.PI;function Ndt(e,t){t=t||{},wi(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 pa,r=new hs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o=new va({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 hs({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:-IT/2,endAngle:-IT/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:IT*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:IT*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=Mr(),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=Mr();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;ct(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";ph(!(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;ct(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 y,b=m.agentStubMap;b.each(function(C){l(o,C)&&(C.dirty(),y=!0)}),y&&m.dirty(),s.updatePayload(m,r);var w=s.getPerformArgs(m,o.block);b.each(function(C){C.perform(w)}),m.perform(w)&&(a=!0)}else p&&p.each(function(C,x){l(o,C)&&C.dirty();var _=s.getPerformArgs(C,o.block);_.skip=!c.performRawSeries&&n.isSeriesFiltered(C.context.model),s.updatePayload(C,r),C.perform(_)&&(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=Mr(),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,y=l.set(m,s&&s.get(m)||sk({plan:zdt,reset:Udt,count:Wdt}));y.context={model:p,ecModel:r,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(p,y)}},e.prototype._createOverallStageTask=function(t,n,r,o){var a=this,s=n.overallTask=n.overallTask||sk({reset:Bdt});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=Mr(),f=t.seriesType,h=t.getTargetSeries,p=!0,m=!1,y="";ph(!t.createOnAllSeries,y),f?r.eachRawSeriesByType(f,b):h?h(r,o).each(b):(p=!1,ct(r.getSeries(),b));function b(w){var C=w.uid,x=c.set(C,l&&l.get(C)||(m=!0,sk({reset:Fdt,onDirty:Vdt})));x.context={model:w,overallProgress:p},x.agent=s,x.__block=p,a._pipe(w,x)}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 mr(t)&&(t={overallReset:t,seriesType:Gdt(t)}),t.uid=wL("stageHandler"),n&&(t.visualType=n),t},e})();function Bdt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Fdt(e){return e.overallProgress&&jdt}function jdt(){this.agent.dirty(),this.getDownstream().dirty()}function Vdt(){this.agent&&this.agent.dirty()}function zdt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Udt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=vl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Vn(t,function(n,r){return Yme(r)}):Hdt}var Hdt=Yme(0);function Yme(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a0&&y===f.length-m.length){var b=f.slice(0,y);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,y,b){return p[y]==null||m[b||y]===p[y]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),sV=["symbol","symbolSize","symbolRotate","symbolOffset"],Wie=sV.concat(["symbolKeepAspect"]),Ydt={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&&_m(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"?pft(e,t,n):hft(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Gi(e)?[e]:Tn(e)?e:null}function ege(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&mft(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=Vn(n,function(a){return a/o}),r/=o)}return[n,r]}var gft=new ug(!0);function yI(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Gie(e){return typeof e=="string"&&e!=="none"}function bI(e){var t=e.fill;return t!=null&&t!=="none"}function Kie(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 qie(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=Tve(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)*Kot),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function yft(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||gft,p=t.__dirty;if(!r){var m=n.fill,y=n.stroke,b=s&&!!m.colorStops,w=a&&!!y.colorStops,C=s&&!!m.image,x=a&&!!y.image,_=void 0,E=void 0,S=void 0,I=void 0,$=void 0;(b||w)&&($=t.getBoundingRect()),b&&(_=p?lV(e,m,$):t.__canvasFillGradient,t.__canvasFillGradient=_),w&&(E=p?lV(e,y,$):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),C&&(S=p||!t.__canvasFillPattern?uV(e,m,t):t.__canvasFillPattern,t.__canvasFillPattern=S),x&&(I=p||!t.__canvasStrokePattern?uV(e,y,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),b?e.fillStyle=_:C&&(S?e.fillStyle=S:s=!1),w?e.strokeStyle=E:x&&(I?e.strokeStyle=I:a=!1)}var L=t.getGlobalScale();h.setScale(L[0],L[1],t.segmentIgnoreThreshold);var O,F;e.setLineDash&&n.lineDash&&(o=ege(t),O=o[0],F=o[1]);var M=!0;(f||p&dy)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),M=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),M&&h.rebuildPath(e,c?l:1),O&&(e.setLineDash(O),e.lineDashOffset=F),r||(n.strokeFirst?(a&&qie(e,n),s&&Kie(e,n)):(s&&Kie(e,n),a&&qie(e,n))),O&&e.setLineDash([])}function bft(e,t,n){var r=t.__image=Tve(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 Sft(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||sg,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=ege(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 Yie=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xie=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Fl(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?Um.opacity:s}(r||t.blend!==n.blend)&&(a||(Fl(e,o),a=!0),e.globalCompositeOperation=t.blend||Um.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[Aa]){if(this._disposed){this.id;return}var a,s,l;if(Gn(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[Aa]=!0,!this._model||r){var c=new Ict(this._api),f=this._theme,h=this._model=new RH;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[Al]={silent:a,updateParams:p},this[Aa]=!1,this.getZr().wakeUp();else{try{X0(this),ip.update.call(this,null,p)}catch(m){throw this[Al]=null,this[Aa]=!1,m}this._ssr||this._zr.flush(),this[Al]=null,this[Aa]=!1,zS.call(this,a),US.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||or.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(or.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return ct(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;ct(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 ct(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(doe[o]){var c=l,f=l,h=-l,p=-l,m=[],y=n&&n.pixelRatio||this.getDevicePixelRatio();ct(lk,function(E,S){if(E.group===o){var I=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(ti(n)),$=E.getDom().getBoundingClientRect();c=a($.left,c),f=a($.top,f),h=s($.right,h),p=s($.bottom,p),m.push({dom:I,left:$.left,top:$.top})}}),c*=y,f*=y,h*=y,p*=y;var b=h-c,w=p-f,C=j1.createCanvas(),x=vre(C,{renderer:r?"svg":"canvas"});if(x.resize({width:b,height:w}),r){var _="";return ct(m,function(E){var S=E.left-c,I=E.top-f;_+=''+E.dom+""}),x.painter.getSvgRoot().innerHTML=_,n.connectedBackgroundColor&&x.painter.setBackgroundColor(n.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return n.connectedBackgroundColor&&x.add(new hs({shape:{x:0,y:0,width:b,height:w},style:{fill:n.connectedBackgroundColor}})),ct(m,function(E){var S=new fv({style:{x:E.left*y-c,y:E.top*y-f,image:E.dom}});x.add(S)}),x.refreshImmediately(),C.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return oB(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return oB(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=I9(o,n);return ct(s,function(l,c){c.indexOf("Models")>=0&&ct(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=I9(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?Zdt(l,c,r):Jdt(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;ct(Wft,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,f=r==="globalout";if(f?c={}:l&&b2(l,function(b){var w=li(b);if(w&&w.dataIndex!=null){var C=w.dataModel||s.getSeriesByIndex(w.seriesIndex);return c=C&&C.getDataParams(w.dataIndex,w.dataType,l)||{},!0}else if(w.eventData)return c=Gt({},w.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),y=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:y},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)}),ct(ak,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),ct(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),eft(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&&Cve(this.getDom(),zH,"");var r=this,o=r._api,a=r._model;ct(r._componentsViews,function(s){s.dispose(a,o)}),ct(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 lk[r.id]},t.prototype.resize=function(n){if(!this[Aa]){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[Al]&&(a==null&&(a=this[Al].silent),o=!0,this[Al]=null),this[Aa]=!0;try{o&&X0(this),ip.update.call(this,{type:"resize",animation:Gt({duration:0},n&&n.animation)})}catch(s){throw this[Aa]=!1,s}this[Aa]=!1,zS.call(this,a),US.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Gn(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=Gt({},n);return r.type=ak[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Gn(r)||(r={silent:!!r}),!!SI[n.type]&&this._model){if(this[Aa]){this._pendingActions.push(n);return}var o=r.silent;aB.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&or.browser.weChat&&this._throttledZrFlush(),zS.call(this,o),US.call(this,o)}},t.prototype.updateLabelLayout=function(){$c.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(){X0=function(p){var m=p._scheduler;m.restorePipelines(p._model),m.prepareStageTasks(),iB(p,!0),iB(p,!1),m.plan()},iB=function(p,m){for(var y=p._model,b=p._scheduler,w=m?p._componentsViews:p._chartsViews,C=m?p._componentsMap:p._chartsMap,x=p._zr,_=p._api,E=0;Em.get("hoverLayerThreshold")&&!or.node&&!or.worker&&m.eachSeries(function(C){if(!C.preventUsingHoverLayer){var x=p._chartsMap[C.__viewId];x.__alive&&x.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function s(p,m){var y=p.get("blendMode")||null;m.eachRendered(function(b){b.isGroup||(b.style.blend=y)})}function l(p,m){if(!p.preventAutoZ){var y=p.get("z")||0,b=p.get("zlevel")||0;m.eachRendered(function(w){return c(w,y,b,-1/0),!0})}}function c(p,m,y,b){var w=p.getTextContent(),C=p.getTextGuideLine(),x=p.isGroup;if(x)for(var _=p.childrenRef(),E=0;E<_.length;E++)b=Math.max(c(_[E],m,y,b),b);else p.z=m,p.zlevel=y,b=Math.max(p.z2,b);if(w&&(w.z=m,w.zlevel=y,isFinite(b)&&(w.z2=b+2)),C){var S=p.textGuideLineConfig;C.z=m,C.zlevel=y,isFinite(b)&&(C.z2=b+(S&&S.showAbove?1:-1))}return b}function f(p,m){m.eachRendered(function(y){if(!rk(y)){var b=y.getTextContent(),w=y.getTextGuideLine();y.stateTransition&&(y.stateTransition=null),b&&b.stateTransition&&(b.stateTransition=null),w&&w.stateTransition&&(w.stateTransition=null),y.hasState()?(y.prevStates=y.currentStates,y.clearStates()):y.prevStates&&(y.prevStates=null)}})}function h(p,m){var y=p.getModel("stateAnimation"),b=p.isAnimationEnabled(),w=y.get("duration"),C=w>0?{duration:w,delay:y.get("delay"),easing:y.get("easing")}:null;m.eachRendered(function(x){if(x.states&&x.states.emphasis){if(rk(x))return;if(x instanceof Ei&&Klt(x),x.__dirty){var _=x.prevStates;_&&x.useStates(_)}if(b){x.stateTransition=C;var E=x.getTextContent(),S=x.getTextGuideLine();E&&(E.stateTransition=C),S&&(S.stateTransition=C)}x.__dirty&&o(x)}})}uoe=function(p){return new((function(m){hn(y,m);function y(){return m!==null&&m.apply(this,arguments)||this}return y.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},y.prototype.getComponentByElement=function(b){for(;b;){var w=b.__ecComponentInfo;if(w!=null)return p._model.getComponent(w.mainType,w.index);b=b.parent}},y.prototype.enterEmphasis=function(b,w){aI(b,w),ju(p)},y.prototype.leaveEmphasis=function(b,w){lI(b,w),ju(p)},y.prototype.enterBlur=function(b){Nlt(b),ju(p)},y.prototype.leaveBlur=function(b){Fve(b),ju(p)},y.prototype.enterSelect=function(b){jve(b),ju(p)},y.prototype.leaveSelect=function(b){Vve(b),ju(p)},y.prototype.getModel=function(){return p.getModel()},y.prototype.getViewOfComponentModel=function(b){return p.getViewOfComponentModel(b)},y.prototype.getViewOfSeriesModel=function(b){return p.getViewOfSeriesModel(b)},y})(_me))(p)},mge=function(p){function m(y,b){for(var w=0;w=0)){foe.push(n);var a=qme.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function wge(e,t){hV[e]=t}function Qft(e,t,n){var r=Lft("registerMap");r&&r(e,t,n)}var eht=idt;Eg(jH,Rdt);Eg(ML,Ddt);Eg(ML,Odt);Eg(jH,Ydt);Eg(ML,Xdt);Eg(cge,Ift);Sge(Eme);kge(Mft,jct);wge("default",Ndt);U1({type:Hm,event:Hm,update:Hm},Gl);U1({type:N4,event:N4,update:N4},Gl);U1({type:ek,event:ek,update:ek},Gl);U1({type:B4,event:B4,update:B4},Gl);U1({type:tk,event:tk,update:tk},Gl);bge("light",Kdt);bge("dark",Jme);function HS(e){return e==null?0:e.length||1}function hoe(e){return e}var tht=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||hoe,this._newKeyGetter=o||hoe,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 y=0;y1)for(var l=0;l30}var WS=Gn,op=Vn,lht=typeof Int32Array>"u"?Array:Int32Array,uht="e\0\0",poe=-1,cht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dht=["_approximateExtent"],voe,RT,GS,KS,cB,qS,dB,Ige=(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;xge(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),Tn(a)?a=a.slice():WS(a)&&(a=Gt({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,WS(n)?Gt(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){WS(t)?Gt(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?Gt(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;Elt(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){ct(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:op(this.dimensions,this._getDimInfo,this),this.hostModel)),cB(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];mr(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(eH(arguments)))})},e.internalField=(function(){voe=function(t){var n=t._invertedIndicesMap;ct(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new lht(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function Age(e,t){OH(e)||(e=Ime(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=Mr(),a=[],s=hht(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&Ege(s),c=r===e.dimensionsDefine,f=c?Tge(e):_ge(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=Mr(h),m=new Ome(s),y=0;y0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function hht(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return ct(t,function(a){var s;Gn(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function pht(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 vht=(function(){function e(t){this.coordSysDims=[],this.axisMap=Mr(),this.categoryAxisMap=Mr(),this.coordSysName=t}return e})();function mht(e){var t=e.get("coordinateSystem"),n=new vht(t),r=ght[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ght={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",jc).models[0],a=e.getReferringComponents("yAxis",jc).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),Z0(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),Z0(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",jc).models[0];t.coordSysDims=["single"],n.set("single",o),Z0(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",jc).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),Z0(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),Z0(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();ct(a.parallelAxisIndex,function(l,c){var f=o.getComponent("parallelAxis",l),h=s[c];n.set(h,f),Z0(f)&&(r.set(h,f),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function Z0(e){return e.get("type")==="category"}function yht(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;bht(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),f,h,p,m;if(ct(a,function(_,E){Nn(_)&&(a[E]=_={name:_}),c&&!_.isExtraCoord&&(!r&&!f&&_.ordinalMeta&&(f=_),!h&&_.type!=="ordinal"&&_.type!=="time"&&(!o||o===_.coordDim)&&(h=_))}),h&&!r&&!f&&(r=!0),h){p="__\0ecstackresult_"+e.id,m="__\0ecstackedover_"+e.id,f&&(f.createInvertedIndices=!0);var y=h.coordDim,b=h.type,w=0;ct(a,function(_){_.coordDim===y&&w++});var C={name:p,coordDim:y,coordDimIndex:w,type:b,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:m,coordDim:m,coordDimIndex:w+1,type:b,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(C.storeDimIndex=l.ensureCalculationDimension(m,b),x.storeDimIndex=l.ensureCalculationDimension(p,b)),s.appendCalculationDimension(C),s.appendCalculationDimension(x)):(a.push(C),a.push(x))}return{stackedDimension:h&&h.name,stackedByDimension:f&&f.name,isStackedByIndex:r,stackedOverDimension:m,stackResultDimension:p}}function bht(e){return!xge(e.schema)}function v1(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Sht(e,t){return v1(e,t)?e.getCalculationInfo("stackResultDimension"):t}function kht(e,t){var n=e.get("coordinateSystem"),r=DH.get(n),o;return t&&t.coordSysDims&&(o=Vn(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=iht(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function wht(e,t,n){var r,o;return n&&ct(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 WH(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===hc;var s=mht(t),l=kht(t,s),c=n.useEncodeDefaulter,f=mr(c)?c:c?Go(vct,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:f,canOmitUnusedDimensions:!a},p=Age(o,h),m=wht(p.dimensions,n.createInvertedIndices,s),y=a?null:r.getSharedDataStore(p),b=yht(t,{schema:p,store:y}),w=new Ige(p,t);w.setCalculationInfo(b);var C=m!=null&&Cht(o)?function(x,_,E,S){return S===m?E:this.defaultDimValueGetter(x,_,E,S)}:null;return w.hasItemOption=!1,w.initData(a?o:y,null,C),w}function Cht(e){if(e.sourceFormat===hc){var t=xht(e.data||[]);return!Tn(Fw(t))}}function xht(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(Jd);var _ht=0,pV=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_ht}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&Vn(r,Tht);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(!Nn(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=Mr(this.categories))},e})();function Tht(e){return Gn(e)&&e.value!=null?e.value:e+""}function vV(e){return e.type==="interval"||e.type==="log"}function Eht(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=yve(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=Lge(s),c=o.niceTickExtent=[fs(Math.ceil(e[0]/s)*s,l),fs(Math.floor(e[1]/s)*s,l)];return Iht(c,e),o}function fB(e){var t=Math.pow(10,uH(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,fs(n*t)}function Lge(e){return Xf(e)+2}function moe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Iht(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),moe(e,0,t),moe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function RL(e,t){return e>=t[0]&&e<=t[1]}function DL(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function OL(e,t){return e*(t[1]-t[0])+t[0]}var GH=(function(e){hn(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({})),Tn(o)&&(o=new pV({categories:Vn(o,function(a){return Gn(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:Nn(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),RL(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),DL(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(OL(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})(Jd);Jd.registerClass(GH);var um=fs,H1=(function(e){hn(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 RL(n,this._extent)},t.prototype.normalize=function(n){return DL(n,this._extent)},t.prototype.scale=function(n){return OL(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=Lge(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:um(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]&&y0&&(a=a===null?l:Math.min(a,l))}n[r]=a}}return n}function Rge(e){var t=Pht(e),n=[];return ct(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 y=r.getData();l=Math.abs(s[1]-s[0])/y.count()}var b=mo(r.get("barWidth"),l),w=mo(r.get("barMaxWidth"),l),C=mo(r.get("barMinWidth")||(Oge(r)?.5:1),l),x=r.get("barGap"),_=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:b,barMaxWidth:w,barMinWidth:C,barGap:x,barCategoryGap:_,axisKey:KH(a),stackId:$ge(r)})}),$ht(n)}function $ht(e){var t={};ct(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 y=r.barGap;y!=null&&(l.gap=y);var b=r.barCategoryGap;b!=null&&(l.categoryGap=b)});var n={};return ct(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=go(a).length;l=Math.max(35-c*4,15)+"%"}var f=mo(l,s),h=mo(r.gap,1),p=r.remainedWidth,m=r.autoWidthCount,y=(p-f)/(m+(m-1)*h);y=Math.max(y,0),ct(a,function(x){var _=x.maxWidth,E=x.minWidth;if(x.width){var S=x.width;_&&(S=Math.min(S,_)),E&&(S=Math.max(S,E)),x.width=S,p-=S+h*S,m--}else{var S=y;_&&_S&&(S=E),S!==y&&(x.width=S,p-=S+h*S,m--)}}),y=(p-f)/(m+(m-1)*h),y=Math.max(y,0);var b=0,w;ct(a,function(x,_){x.width||(x.width=y),w=x,b+=x.width*(1+h)}),w&&(b-=w.width*h);var C=-b/2;ct(a,function(x,_){n[o][_]=n[o][_]||{bandWidth:s,offset:C,width:x.width},C+=x.width*(1+h)})}),n}function Mht(e,t,n){if(e&&t){var r=e[KH(t)];return r}}function Rht(e,t){var n=Mge(e,t),r=Rge(n);ct(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=$ge(o),f=r[KH(l)][c],h=f.offset,p=f.width;a.setLayout({bandWidth:f.bandWidth,offset:h,size:p})})}function Dht(e){return{seriesType:e,plan:FH(),reset:function(t){if(Dge(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=v1(n,f)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),y=Oht(o,a),b=Oge(t),w=t.get("barMinHeight")||0,C=h&&n.getDimensionIndex(h),x=n.getLayout("size"),_=n.getLayout("offset");return{progress:function(E,S){for(var I=E.count,$=b&&Zf(I*3),L=b&&c&&Zf(I*3),O=b&&Zf(I),F=r.master.getRect(),M=m?F.width:F.height,j,V=S.getStore(),W=0;(j=E.next())!=null;){var U=V.get(p?C:s,j),X=V.get(l,j),G=y,Y=void 0;p&&(Y=+U-V.get(s,j));var ee=void 0,te=void 0,J=void 0,Z=void 0;if(m){var ce=r.dataToPoint([U,X]);if(p){var ye=r.dataToPoint([Y,X]);G=ye[0]}ee=G,te=ce[1]+_,J=ce[0]-G,Z=x,Math.abs(J)0?n:1:n))}var Nht=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=DT.length,c=Math.min(Nht(DT,this._approxInterval,0,l),l-1);this._interval=DT[c][1],this._minLevelUnit=DT[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return Gi(n)?n:+vh(n)},t.prototype.contain=function(n){return RL(this.parse(n),this._extent)},t.prototype.normalize=function(n){return DL(this.parse(n),this._extent)},t.prototype.scale=function(n){return OL(n,this._extent)},t.type="time",t})(H1),DT=[["second",IH],["minute",AH],["hour",ik],["quarter-day",ik*6],["half-day",ik*12],["day",Qu*1.2],["half-week",Qu*3.5],["week",Qu*7],["month",Qu*31],["quarter",Qu*95],["half-year",sie/2],["year",sie]];function Bht(e,t,n,r){var o=vh(t),a=vh(n),s=function(b){return lie(o,b,r)===lie(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")},y=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 y()}}function Fht(e,t){return e/=Qu,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function jht(e){var t=30*Qu;return e/=t,e>6?6:e>3?3:e>2?2:1}function Vht(e){return e/=ik,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function goe(e,t){return e/=t?AH:IH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function zht(e){return yve(e)}function Uht(e,t,n){var r=new Date(e);switch(zy(t)){case"year":case"month":r[cme(n)](0);case"day":r[dme(n)](1);case"hour":r[fme(n)](0);case"minute":r[hme(n)](0);case"second":r[pme(n)](0),r[vme(n)](0)}return r.getTime()}function Hht(e,t,n,r){var o=1e4,a=lme,s=0;function l(M,j,V,W,U,X,G){for(var Y=new Date(j),ee=j,te=Y[W]();ee1&&X===0&&V.unshift({value:V[0].value-ee})}}for(var X=0;X=r[0]&&_<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&m>E/1.5||(f.push(C),p>E||e===a[y]))break}h=[]}}}for(var S=ra(Vn(f,function(M){return ra(M,function(j){return j.value>=r[0]&&j.value<=r[1]&&!j.notAdd})}),function(M){return M.length>0}),I=[],$=S.length-1,y=0;y0;)a*=10;var l=[fs(Kht(r[0]/a)*a),fs(Ght(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){uk.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=_c(n)/_c(this.base),RL(n,this._extent)},t.prototype.normalize=function(n){return n=_c(n)/_c(this.base),DL(n,this._extent)},t.prototype.scale=function(n){return n=OL(n,this._extent),OT(this.base,n)},t.type="log",t})(Jd),Bge=qH.prototype;Bge.getMinorTicks=uk.getMinorTicks;Bge.getLabel=uk.getLabel;function NT(e,t){return Wht(e,Xf(t))}Jd.registerClass(qH);var qht=(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,y=this._determinedMax;return m!=null&&(l=m,f=!0),y!=null&&(c=y,h=!0),{min:l,max:c,minFixed:f,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[Xht[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Yht[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),Yht={min:"_determinedMin",max:"_determinedMax"},Xht={min:"_dataMin",max:"_dataMax"};function Zht(e,t,n){var r=e.rawExtentInfo;return r||(r=new qht(e,t,n),e.rawExtentInfo=r,r)}function BT(e,t){return t==null?null:q3(t)?NaN:e.parse(t)}function Fge(e,t){var n=e.type,r=Zht(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=Mge("bar",s),c=!1;if(ct(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var f=Rge(l),h=Jht(o,a,t,f);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Jht(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=Mht(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;ct(s,function(y){l=Math.min(y.offset,l)});var c=-1/0;ct(s,function(y){c=Math.max(y.offset+y.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 boe(e,t){var n=t,r=Fge(e,n),o=r.extent,a=n.get("splitNumber");e instanceof qH&&(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 Qht(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new GH({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Nge({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Jd.getClass(t)||H1)}}function ept(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function W1(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):Nn(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):mr(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(YH(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function YH(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function tpt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof GH?o=n.count():(r=n.getTicks(),o=r.length);var s=e.getLabelModel(),l=W1(e),c,f=1;o>40&&(f=Math.ceil(o/40));for(var h=0;h=0||(Soe.push(e),mr(e)&&(e={install:e}),e.install(opt))}var ew=Zo();function Vge(e,t){var n=Vn(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 spt(e){var t=e.getLabelModel().get("customValues");if(t){var n=W1(e),r=e.scale.getExtent(),o=Vge(e,t),a=ra(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:Vn(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?lpt(e):cpt(e)}function apt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=Vge(e,n);return{ticks:ra(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?upt(e,t):{ticks:Vn(e.scale.getTicks(),function(a){return a.value})}}function lpt(e){var t=e.getLabelModel(),n=zge(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function zge(e,t){var n=Uge(e,"labels"),r=XH(t),o=Hge(n,r);if(o)return o;var a,s;return mr(r)?a=Kge(e,r):(s=r==="auto"?dpt(e):r,a=Gge(e,s)),Wge(n,r,{labels:a,labelCategoryInterval:s})}function upt(e,t){var n=Uge(e,"ticks"),r=XH(t),o=Hge(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),mr(r))a=Kge(e,r,!0);else if(r==="auto"){var l=zge(e,e.getLabelModel());s=l.labelCategoryInterval,a=Vn(l.labels,function(c){return c.tickValue})}else s=r,a=Gge(e,s,!0);return Wge(n,r,{ticks:a,tickCategoryInterval:s})}function cpt(e){var t=e.scale.getTicks(),n=W1(e);return{labels:Vn(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Uge(e,t){return ew(e)[t]||(ew(e)[t]=[])}function Hge(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,y=0;c<=a[1];c+=l){var b=0,w=0,C=aH(n({value:c}),t.font,"center","top");b=C.width*1.3,w=C.height*1.3,m=Math.max(m,b,7),y=Math.max(y,w,7)}var x=m/h,_=y/p;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var E=Math.max(0,Math.floor(Math.min(x,_))),S=ew(e.model),I=e.getExtent(),$=S.lastAutoInterval,L=S.lastTickCount;return $!=null&&L!=null&&Math.abs($-E)<=1&&Math.abs(L-s)<=1&&$>E&&S.axisExtent0===I[0]&&S.axisExtent1===I[1]?E=$:(S.lastTickCount=s,S.lastAutoInterval=E,S.axisExtent0=I[0],S.axisExtent1=I[1]),E}function hpt(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 Gge(e,t,n){var r=W1(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=jge(e),m=s.get("showMinLabel")||p,y=s.get("showMaxLabel")||p;m&&f!==a[0]&&w(a[0]);for(var b=f;b<=a[1];b+=c)w(b);y&&b-c!==a[1]&&w(a[1]);function w(C){var x={value:C};l.push(n?C:{formattedLabel:r(x),rawLabel:o.getLabel(x),tickValue:C})}return l}function Kge(e,t,n){var r=e.scale,o=W1(e),a=[];return ct(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 koe=[0,1],ppt=(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 uat(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(),woe(r,o.count())),Vj(t,koe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),woe(r,o.count()));var a=Vj(t,r,koe,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=apt(this,n),o=r.ticks,a=Vn(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return vpt(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=Vn(r,function(a){return Vn(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return spt(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 fpt(this)},e})();function woe(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function vpt(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;ct(t,function(y){y.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(y,b){return y=fs(y),b=fs(b),p?y>b:y0){t=t/180*Math.PI,$p.fromArray(e[0]),Oo.fromArray(e[1]),ta.fromArray(e[2]),lr.sub(Mp,$p,Oo),lr.sub(_d,ta,Oo);var n=Mp.len(),r=_d.len();if(!(n<.001||r<.001)){Mp.scale(1/n),_d.scale(1/r);var o=Mp.dot(_d),a=Math.cos(t);if(a1&&lr.copy(sl,ta),sl.toArray(e[1])}}}}function gpt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,$p.fromArray(e[0]),Oo.fromArray(e[1]),ta.fromArray(e[2]),lr.sub(Mp,Oo,$p),lr.sub(_d,ta,Oo);var r=Mp.len(),o=_d.len();if(!(r<.001||o<.001)){Mp.scale(1/r),_d.scale(1/o);var a=Mp.dot(t),s=Math.cos(n);if(a=c)lr.copy(sl,ta);else{sl.scaleAndAdd(_d,l/Math.tan(Math.PI/2-h));var p=ta.x!==Oo.x?(sl.x-Oo.x)/(ta.x-Oo.x):(sl.y-Oo.y)/(ta.y-Oo.y);if(isNaN(p))return;p<0?lr.copy(sl,Oo):p>1&&lr.copy(sl,ta)}sl.toArray(e[1])}}}}function hB(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 ypt(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=Tj(r[0],r[1]),a=Tj(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=a9([],r[1],r[0],s/o),c=a9([],r[1],r[2],s/a),f=a9([],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){E(F*O,0,s);var M=F+$;M<0&&S(-M*O,1)}else S(-$*O,1)}}function E($,L,O){$!==0&&(f=!0);for(var F=L;F0)for(var M=0;M0;M--){var U=O[M-1]*W;E(-U,M,s)}}}function I($){var L=$<0?-1:1;$=Math.abs($);for(var O=Math.ceil($/(s-1)),F=0;F0?E(O,0,F+1):E(-O,s-F-1,s),$-=O,$<=0)return}return f}function Cpt(e,t,n,r){return wpt(e,"y","height",t,n)}function xpt(e){var t=[];e.sort(function(w,C){return C.priority-w.priority});var n=new ki(0,0,0,0);function r(w){if(!w.ignore){var C=w.ensureState("emphasis");C.ignore==null&&(C.ignore=!1)}w.ignore=!0}for(var o=0;o=l)}}for(var p=this.__startIndex;p15)break}}U.prevElClipPaths&&x.restore()};if(_)if(_.length===0)O=C.__endIndex;else for(var M=y.dpr,j=0;j<_.length;++j){var V=_[j];x.save(),x.beginPath(),x.rect(V.x*M,V.y*M,V.width*M,V.height*M),x.clip(),F(V),x.restore()}else x.save(),F(),x.restore();C.__drawIndex=O,C.__drawIndex0&&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?FT:0),this._needsManuallyCompositing),h.__builtin__||QU("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&ku&&!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,ct(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Si(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})(qc);function ZH(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var o=h1(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 JH=(function(e){hn(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=p1(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Lpt,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 y={scaleX:c[0]/2,scaleY:c[1]/2};h?m.attr(y):gl(m,y,l,r),wH(m)}if(this._updateCommon(n,r,c,o,a),f){var m=this.childAt(0);if(!h){var y={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:m.style.opacity}};m.scaleX=m.scaleY=0,m.style.opacity=0,ic(m,y,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,y,b,w,C,x;if(a&&(f=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,m=a.focus,y=a.blurScope,w=a.labelStatesModels,C=a.hoverScale,x=a.cursorStyle,b=a.emphasisDisabled),!a||n.hasItemOption){var _=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=_.getModel("emphasis");f=E.getModel("itemStyle").getItemStyle(),p=_.getModel(["select","itemStyle"]).getItemStyle(),h=_.getModel(["blur","itemStyle"]).getItemStyle(),m=E.get("focus"),y=E.get("blurScope"),b=E.get("disabled"),w=Hw(_),C=E.getShallow("scale"),x=_.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(S||0)*Math.PI/180||0);var I=Qme(n.getItemVisual(r,"symbolOffset"),o);I&&(l.x=I[0],l.y=I[1]),x&&l.attr("cursor",x);var $=n.getItemVisual(r,"style"),L=$.fill;if(l instanceof fv){var O=l.style;l.useStyle(Gt({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},$))}else l.__isEmptyBrush?l.useStyle(Gt({},$)):l.useStyle($),l.style.decal=null,l.setColor(L,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var F=n.getItemVisual(r,"liftZ"),M=this._z2;F!=null?M==null&&(this._z2=l.z2,l.z2+=F):M!=null&&(l.z2=M,this._z2=null);var j=s&&s.useNameLabel;Uw(l,w,{labelFetcher:c,labelDataIndex:r,defaultText:V,inheritColor:L,defaultOpacity:$.opacity});function V(X){return j?n.getName(X):ZH(n,X)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var W=l.ensureState("emphasis");W.style=f,l.ensureState("select").style=p,l.ensureState("blur").style=h;var U=C==null||C===!0?Math.max(1.1,3/this._sizeY):isFinite(C)&&C>0?+C:1;W.scaleX=this._sizeX*U,W.scaleY=this._sizeY*U,this.setSymbolScale(1),Gk(this,m,y,b)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,o){var a=this.childAt(0),s=li(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 fft(n.getItemVisual(r,"symbolSize"))},t})(pa);function Lpt(e,t){this.parent.drift(e,t)}function vB(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 _oe(e){return e!=null&&!Gn(e)&&(e={isIgnore:e}),e||{}}function Toe(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:Hw(t),cursorStyle:t.get("cursor")}}var Ppt=(function(){function e(t){this.group=new pa,this._SymbolCtor=t||JH}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=_oe(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Toe(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(vB(t,m,p,n)){var y=new s(t,p,c,f);y.setPosition(m),t.setItemGraphicEl(p,y),r.add(y)}}).update(function(p,m){var y=a.getItemGraphicEl(m),b=h(p);if(!vB(t,b,p,n)){r.remove(y);return}var w=t.getItemVisual(p,"symbol")||"circle",C=y&&y.getSymbolType&&y.getSymbolType();if(!y||C&&C!==w)r.remove(y),y=new s(t,p,c,f),y.setPosition(b);else{y.updateData(t,p,c,f);var x={x:b[0],y:b[1]};l?y.attr(x):gl(y,x,o)}r.add(y),t.setItemGraphicEl(p,y)}).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=Toe(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=_oe(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 Jge(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 Mpt(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 Rpt(e,t,n,r,o,a,s,l){for(var c=Mpt(e,t),f=[],h=[],p=[],m=[],y=[],b=[],w=[],C=Zge(o,t,s),x=e.getLayout("points")||[],_=t.getLayout("points")||[],E=0;E=o||w<0)break;if(Wm(x,_)){if(c){w+=a;continue}break}if(w===n)e[a>0?"moveTo":"lineTo"](x,_),p=x,m=_;else{var E=x-f,S=_-h;if(E*E+S*S<.5){w+=a;continue}if(s>0){for(var I=w+a,$=t[I*2],L=t[I*2+1];$===x&&L===_&&C=r||Wm($,L))y=x,b=_;else{M=$-f,j=L-h;var U=x-f,X=$-x,G=_-h,Y=L-_,ee=void 0,te=void 0;if(l==="x"){ee=Math.abs(U),te=Math.abs(X);var J=M>0?1:-1;y=x-J*ee*s,b=_,V=x+J*te*s,W=_}else if(l==="y"){ee=Math.abs(G),te=Math.abs(Y);var Z=j>0?1:-1;y=x,b=_-Z*ee*s,V=x,W=_+Z*te*s}else ee=Math.sqrt(U*U+G*G),te=Math.sqrt(X*X+Y*Y),F=te/(te+ee),y=x-M*s*(1-F),b=_-j*s*(1-F),V=x+M*s*F,W=_+j*s*F,V=sp(V,ap($,x)),W=sp(W,ap(L,_)),V=ap(V,sp($,x)),W=ap(W,sp(L,_)),M=V-x,j=W-_,y=x-M*ee/te,b=_-j*ee/te,y=sp(y,ap(f,x)),b=sp(b,ap(h,_)),y=ap(y,sp(f,x)),b=ap(b,sp(h,_)),M=x-y,j=_-b,V=x+M*te/ee,W=_+j*te/ee}e.bezierCurveTo(p,m,y,b,x,_),p=V,m=W}else e.lineTo(x,_)}f=x,h=_,w+=a}return C}var Qge=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Dpt=(function(e){hn(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 Qge},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&Wm(o[s*2-2],o[s*2-1]);s--);for(;a=0){var S=f?(b-c)*E+c:(y-l)*E+l;return f?[n,S]:[S,n]}l=y,c=b;break;case s.C:y=a[p++],b=a[p++],w=a[p++],C=a[p++],x=a[p++],_=a[p++];var I=f?Z3(l,y,w,x,n,h):Z3(c,b,C,_,n,h);if(I>0)for(var $=0;$=0){var S=f?ia(c,b,C,_,L):ia(l,y,w,x,L);return f?[n,S]:[S,n]}}l=x,c=_;break}}},t})(Ei),Opt=(function(e){hn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Qge),Npt=(function(e){hn(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 Opt},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&&Wm(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 Vpt(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=Vn(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=f.length,p=a.outerColors.slice();h&&f[0].coord>f[h-1].coord&&(f.reverse(),p.reverse());var m=jpt(f,o==="x"?n.getWidth():n.getHeight()),y=m.length;if(!y&&h)return f[0].coord<0?p[1]?p[1]:f[h-1].color:p[0]?p[0]:f[0].color;var b=10,w=m[0].coord-b,C=m[y-1].coord+b,x=C-w;if(x<.001)return"transparent";ct(m,function(E){E.offset=(E.coord-w)/x}),m.push({offset:y?m[y-1].offset:.5,color:p[1]||"transparent"}),m.unshift({offset:y?m[0].offset:.5,color:p[0]||"transparent"});var _=new Zve(0,0,0,0,m,!0);return _[o]=w,_[o+"2"]=C,_}}}function zpt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&Upt(a,t))){var s=t.mapDimension(a.dim),l={};return ct(a.getViewLabels(),function(c){var f=a.scale.getRawOrdinalNumber(c.tickValue);l[f]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function Upt(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 Hpt(e,t){return isNaN(e)||isNaN(t)}function Wpt(e){for(var t=e.length/2;t>0&&Hpt(e[t*2-2],e[t*2-1]);t--);return t-1}function Poe(e,t){return[e[t*2],e[t*2+1]]}function Gpt(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 n0e(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var te=b.getState("emphasis").style;te.lineWidth=+b.style.lineWidth+1}li(b).seriesIndex=n.seriesIndex,Gk(b,G,Y,ee);var J=Loe(n.get("smooth")),Z=n.get("smoothMonotone");if(b.setShape({smooth:J,smoothMonotone:Z,connectNulls:L}),w){var ce=l.getCalculationInfo("stackedOnSeries"),ye=0;w.useStyle(wi(f.getAreaStyle(),{fill:V,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ce&&(ye=Loe(ce.get("smooth"))),w.setShape({smooth:J,stackedOnSmooth:ye,smoothMonotone:Z,connectNulls:L}),uI(w,n,"areaStyle"),li(w).seriesIndex=n.seriesIndex,Gk(w,G,Y,ee)}var ie=this._changePolyState;l.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=l,this._coordSys=a,this._stackedOnPoints=I,this._points=h,this._step=M,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,b),w&&this.packEventData(n,w))},t.prototype.packEventData=function(n,r){li(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=lg(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,y=n.get("z")||0;f=new JH(s,l),f.x=h,f.y=p,f.setZ(m,y);var b=f.getSymbolPath().getTextContent();b&&(b.zlevel=m,b.z=y,b.z2=this._polyline.z2+1),f.__temp=!0,s.setItemGraphicEl(l,f),f.stopSymbolAnimation(!0),this.group.add(f)}f.highlight()}else oc.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=lg(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 oc.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Fre(this._polyline,n),r&&Fre(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Dpt({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 Npt({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");mr(h)&&(h=h(null));var p=f.get("animationDelay")||0,m=mr(p)?p(null):p;n.eachItemGraphicEl(function(y,b){var w=y;if(w){var C=[y.x,y.y],x=void 0,_=void 0,E=void 0;if(o)if(s){var S=o,I=r.pointToCoord(C);a?(x=S.startAngle,_=S.endAngle,E=-I[1]/180*Math.PI):(x=S.r0,_=S.r,E=I[0])}else{var $=o;a?(x=$.x,_=$.x+$.width,E=y.x):(x=$.y+$.height,_=$.y,E=y.y)}var L=_===x?0:(E-x)/(_-x);c&&(L=1-L);var O=mr(p)?p(b):h*L+m,F=w.getSymbolPath(),M=F.getTextContent();w.attr({scaleX:0,scaleY:0}),w.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:O}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:O}),F.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(n0e(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 va({z2:200}),f.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=Wpt(c);h>=0&&(Uw(l,Hw(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,m,y){return y!=null?Xge(s,y):ZH(s,p)},enableTextSetter:!0},Kpt(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,y=m.get("connectNulls"),b=l.get("precision"),w=l.get("distance")||0,C=c.getBaseAxis(),x=C.isHorizontal(),_=C.inverse,E=r.shape,S=_?x?E.x:E.y+E.height:x?E.x+E.width:E.y,I=(x?w:0)*(_?-1:1),$=(x?0:-w)*(_?-1:1),L=x?"x":"y",O=Gpt(p,S,L),F=O.range,M=F[1]-F[0],j=void 0;if(M>=1){if(M>1&&!y){var V=Poe(p,F[0]);f.attr({x:V[0]+I,y:V[1]+$}),s&&(j=m.getRawValue(F[0]))}else{var V=h.getPointOn(S,L);V&&f.attr({x:V[0]+I,y:V[1]+$});var W=m.getRawValue(F[0]),U=m.getRawValue(F[1]);s&&(j=Aat(o,b,W,U,O.t))}a.lastFrameIndex=F[0]}else{var X=n===1||a.lastFrameIndex>0?F[0]:0,V=Poe(p,X);s&&(j=m.getRawValue(X)),f.attr({x:V[0]+I,y:V[1]+$})}if(s){var G=kL(f);typeof G.setLabelText=="function"&&G.setLabelText(j)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var f=this._polyline,h=this._polygon,p=n.hostModel,m=Rpt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),y=m.current,b=m.stackedOnCurrent,w=m.next,C=m.stackedOnNext;if(s&&(b=lp(m.stackedOnCurrent,m.current,o,s,c),y=lp(m.current,null,o,s,c),C=lp(m.stackedOnNext,m.next,o,s,c),w=lp(m.next,null,o,s,c)),Aoe(y,w)>3e3||h&&Aoe(b,C)>3e3){f.stopAnimation(),f.setShape({points:w}),h&&(h.stopAnimation(),h.setShape({points:w,stackedOnPoints:C}));return}f.shape.__points=m.current,f.shape.points=y;var x={shape:{points:w}};m.current!==y&&(x.shape.__points=m.next),f.stopAnimation(),gl(f,x,p),h&&(h.setShape({points:y,stackedOnPoints:b}),h.stopAnimation(),gl(h,{shape:{stackedOnPoints:C}},p),f.shape.points!==h.shape.points&&(h.shape.points=f.shape.points));for(var _=[],E=m.status,S=0;St&&(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),y=Math.round(l/m);if(isFinite(y)&&y>1){a==="lttb"?t.setData(o.lttbDownSample(o.mapDimension(f.dim),1/y)):a==="minmax"&&t.setData(o.minmaxDownSample(o.mapDimension(f.dim),1/y));var b=void 0;Nn(a)?b=Xpt[a]:mr(a)&&(b=a),b&&t.setData(o.downSample(o.mapDimension(f.dim),1/y,b,Zpt))}}}}}function i0e(e){e.registerChartView(qpt),e.registerSeriesModel(Apt),e.registerLayout(Ypt("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,r0e("line"))}var gV=(function(e){hn(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 WH(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)ct(a.getAxes(),function(m,y){if(m.type==="category"&&r!=null){var b=m.getTicksCoords(),w=m.getTickModel().get("alignWithLabel"),C=s[y],x=r[y]==="x1"||r[y]==="y1";if(x&&!w&&(C+=1),b.length<2)return;if(b.length===2){l[y]=m.toGlobalCoord(m.getExtent()[x?1:0]);return}for(var _=void 0,E=void 0,S=1,I=0;IC){E=($+_)/2;break}I===1&&(S=L-b[0].tickValue)}E==null&&(_?_&&(E=b[b.length-1].coord):E=b[0].coord),l[y]=m.toGlobalCoord(E)}});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})(qc);qc.registerClass(gV);var Jpt=(function(e){hn(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 WH(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=ome(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),Qpt=(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})(),$oe=(function(e){hn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Qpt},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,y=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,li(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})(oc),Moe={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=gB(t.x,e.x),l=yB(t.x+t.width,o),c=gB(t.y,e.y),f=yB(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=yB(t.r,e.r),a=gB(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}},Roe={cartesian2d:function(e,t,n,r,o,a,s,l,c){var f=new hs({shape:Gt({},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?$oe:hv,h=new f({shape:r,z2:1});h.name="item";var p=o0e(o);if(h.calculateTextPosition=evt(p,{isRoundCap:f===$oe}),a){var m=h.shape,y=o?"r":"endAngle",b={};m[y]=o?r.r0:r.startAngle,b[y]=r[y],(l?gl:ic)(h,{shape:b},a)}return h}};function ivt(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 Doe(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?gl:ic)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?gl:ic)(n,{shape:f},h,o)}function Ooe(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 avt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function o0e(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 Boe(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=S2(r.getModel("itemStyle"),h,!0);Gt(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 y=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=Hw(r);Uw(e,b,{labelFetcher:a,labelDataIndex:n,defaultText:ZH(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:y});var w=e.getTextContent();if(l&&w){var C=r.get(["label","position"]);e.textConfig.inside=C==="middle"?!0:null,tvt(e,C==="outside"?y:C,o0e(s),r.get(["label","rotate"]))}Uut(w,b,a.getRawValue(n),function(_){return Xge(t,_)});var x=r.getModel(["emphasis"]);Gk(e,x.get("focus"),x.get("blurScope"),x.get("disabled")),uI(e,r),avt(o)&&(e.style.fill="none",e.style.stroke="none",ct(e.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function lvt(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 uvt=(function(){function e(){}return e})(),Foe=(function(e){hn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new uvt},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 cvt(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 s0e(e,t,n){if(QH(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 dvt(e,t,n){var r=e.type==="polar"?hv:hs;return new r({shape:s0e(t,n,e),silent:!0,z2:0})}function a0e(e){e.registerChartView(rvt),e.registerSeriesModel(Jpt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Go(Rht,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Dht("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,r0e("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 zoe=Math.PI*2,UT=Math.PI/180;function l0e(e,t){return d1(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u0e(e,t){var n=l0e(e,t),r=e.get("center"),o=e.get("radius");Tn(o)||(o=[0,o]);var a=mo(n.width,t.getWidth()),s=mo(n.height,t.getHeight()),l=Math.min(a,s),c=mo(o[0],l/2),f=mo(o[1],l/2),h,p,m=e.coordinateSystem;if(m){var y=m.dataToPoint(r);h=y[0]||0,p=y[1]||0}else Tn(r)||(r=[r,r]),h=mo(r[0],a)+n.x,p=mo(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:f}}function fvt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=l0e(r,n),l=u0e(r,n),c=l.cx,f=l.cy,h=l.r,p=l.r0,m=-r.get("startAngle")*UT,y=r.get("endAngle"),b=r.get("padAngle")*UT;y=y==="auto"?m-zoe:-y*UT;var w=r.get("minAngle")*UT,C=w+b,x=0;o.each(a,function(Y){!isNaN(Y)&&x++});var _=o.getSum(a),E=Math.PI/(_||x)*2,S=r.get("clockwise"),I=r.get("roseType"),$=r.get("stillShowZeroSum"),L=o.getDataExtent(a);L[0]=0;var O=S?1:-1,F=[m,y],M=O*b/2;Lve(F,!S),m=F[0],y=F[1];var j=c0e(r);j.startAngle=m,j.endAngle=y,j.clockwise=S;var V=Math.abs(y-m),W=V,U=0,X=m;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(Y,ee){var te;if(isNaN(Y)){o.setItemLayout(ee,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:c,cy:f,r0:p,r:I?NaN:h});return}I!=="area"?te=_===0&&$?E:Y*E:te=V/x,tete?(Z=X+O*te/2,ce=Z):(Z=X+M,ce=J-M),o.setItemLayout(ee,{angle:te,startAngle:Z,endAngle:ce,clockwise:S,cx:c,cy:f,r0:p,r:I?Vj(Y,L,[p,h]):h}),X=J}),Wn?x:C,I=Math.abs(E.label.y-n);if(I>=S.maxY){var $=E.label.x-t-E.len2*o,L=r+E.len,O=Math.abs($)e.unconstrainedWidth?null:y:null;r.setStyle("width",b)}var w=r.getBoundingRect();a.width=w.width;var C=(r.style.margin||0)+2.1;a.height=w.height+C,a.y-=(a.height-p)/2}}}function bB(e){return e.position==="center"}function mvt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*pvt,l=t.getLayout("viewRect"),c=t.getLayout("r"),f=l.width,h=l.x,p=l.y,m=l.height;function y($){$.ignore=!0}function b($){if(!$.ignore)return!0;for(var L in $.states)if($.states[L].ignore===!1)return!0;return!1}t.each(function($){var L=t.getItemGraphicEl($),O=L.shape,F=L.getTextContent(),M=L.getTextGuideLine(),j=t.getItemModel($),V=j.getModel("label"),W=V.get("position")||j.get(["emphasis","label","position"]),U=V.get("distanceToLabelLine"),X=V.get("alignTo"),G=mo(V.get("edgeDistance"),f),Y=V.get("bleedMargin"),ee=j.getModel("labelLine"),te=ee.get("length");te=mo(te,f);var J=ee.get("length2");if(J=mo(J,f),Math.abs(O.endAngle-O.startAngle)0?"right":"left":ce>0?"left":"right"}var Te=Math.PI,Oe=0,je=V.get("rotate");if(Gi(je))Oe=je*(Te/180);else if(W==="center")Oe=0;else if(je==="radial"||je===!0){var We=ce<0?-Z+Te:-Z;Oe=We}else if(je==="tangential"&&W!=="outside"&&W!=="outer"){var it=Math.atan2(ce,ye);it<0&&(it=Te*2+it);var Ze=ye>0;Ze&&(it=Te+it),Oe=it-Te}if(a=!!Oe,F.x=ie,F.y=Ce,F.rotation=Oe,F.setStyle({verticalAlign:"middle"}),Fe){F.setStyle({align:be});var Pt=F.states.select;Pt&&(Pt.x+=F.x,Pt.y+=F.y)}else{var pt=F.getBoundingRect().clone();pt.applyTransform(F.getComputedTransform());var et=(F.style.margin||0)+2.1;pt.y-=et/2,pt.height+=et,n.push({label:F,labelLine:M,position:W,len:te,len2:J,minTurnAngle:ee.get("minTurnAngle"),maxSurfaceAngle:ee.get("maxSurfaceAngle"),surfaceNormal:new lr(ce,ye),linePoints:Re,textAlign:be,labelDistance:U,labelAlignTo:X,edgeDistance:G,bleedMargin:Y,rect:pt,unconstrainedWidth:pt.width,labelStyleWidth:F.style.width})}L.setTextConfig({inside:Fe})}}),!a&&e.get("avoidLabelOverlap")&&vvt(n,r,o,c,f,m,h,p);for(var w=0;w0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p=a.r0}},t.type="pie",t})(oc);function bvt(e,t,n){t=Tn(t)&&{coordDimensions:t}||Gt({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=Age(r,t).dimensions,a=new Ige(o,e);return a.initData(r,n),a}var Svt=(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})(),kvt=Zo(),wvt=(function(e){hn(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 Svt(Ji(this.getData,this),Ji(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return bvt(this,{coordDimensions:["value"],encodeDefaulter:Go(mct,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=kvt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=cat(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){zj(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})(qc);function Cvt(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!(Gi(s)&&!isNaN(s)&&s<0)})}}}function f0e(e){e.registerChartView(yvt),e.registerSeriesModel(wvt),Qdt("pie",e.registerAction),e.registerLayout(Go(fvt,"pie")),e.registerProcessor(hvt("pie")),e.registerProcessor(Cvt("pie"))}var xvt=(function(e){hn(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})(_i),yV=(function(e){hn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jc).models[0]},t.type="cartesian2dAxis",t})(_i);Yd(yV,ipt);var h0e={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)"]}}},_vt=Si({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},h0e),eW=Si({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}}},h0e),Tvt=Si({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eW),Evt=wi({logBase:10},eW);const Ivt={category:_vt,value:eW,time:Tvt,log:Evt};var Avt={value:1,category:1,time:1,log:1};function Hoe(e,t,n,r){ct(Avt,function(o,a){var s=Si(Si({},Ivt[a],!0),r,!0),l=(function(c){hn(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=Yk(this),y=m?AL(h):{},b=p.getTheme();Si(h,b.get(a+"Axis")),Si(h,this.getDefaultOption()),h.type=Woe(h),m&&f1(h,y,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",Woe)}function Woe(e){return e.type||(e.data?"category":"value")}var Lvt=(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 Vn(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ra(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 Goe(e){return e.type==="interval"||e.type==="time"}var Pvt=(function(e){hn(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(!(!Goe(n)||!Goe(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,y=s[1]-a[0]*p,b=this._transform=[h,0,0,p,m,y];this._invTransform=iH([],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 ki(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 rc(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 rc(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 ki(a,s,l,c)},t})(Lvt),$vt=(function(e){hn(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})(ppt);function SV(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},y=t.get("offset")||0,b=f==="x"?[p[2]-y,p[3]+y]:[p[0]-y,p[1]+y];if(s){var w=s.toGlobalCoord(s.dataToCoord(0));b[m.onZero]=Math.max(Math.min(w,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 C={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=C[l],a.labelOffset=s?b[m[l]]-b[m.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),zk(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var x=t.get(["axisLabel","rotate"]);return a.labelRotate=c==="top"?-x:x,a.z2=1,a}function Koe(e){return e.get("coordinateSystem")==="cartesian2d"}function qoe(e){var t={xAxisModel:null,yAxisModel:null};return ct(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,jc).models[0];t[r]=a}),t}var SB=Math.log;function Mvt(e,t,n){var r=H1.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=Fge(e,t),f=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var m=SB(e.base);f=[SB(f[0])/m,SB(f[1])/m]}e.setExtent(f[0],f[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var y=r.getExtent.call(e);h&&(f[0]=y[0]),p&&(f[1]=y[1]);var b=r.getInterval.call(e),w=f[0],C=f[1];if(h&&p)b=(C-w)/s;else if(h)for(C=f[0]+b*s;Cf[0]&&isFinite(w)&&isFinite(f[0]);)b=fB(b),w=f[1]-b*s;else{var x=e.getTicks().length-1;x>s&&(b=fB(b));var _=b*s;C=Math.ceil(f[1]/b)*b,w=fs(C-_),w<0&&f[0]>=0?(w=0,C=fs(_)):C>0&&f[1]<=0&&(C=0,w=-fs(_))}var E=(o[0].value-a[0].value)/l,S=(o[s].value-a[s].value)/l;r.setExtent.call(e,w+b*E,C+b*S),r.setInterval.call(e,b),(E||S)&&r.setNiceExtent.call(e,w+b,C-b)}var Rvt=(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=go(s),f=c.length;if(f){for(var h=[],p=f-1;p>=0;p--){var m=+c[p],y=s[m],b=y.model,w=y.scale;vV(w)&&b.get("alignTicks")&&b.get("interval")==null?h.push(y):(boe(w,b),vV(w)&&(l=y))}h.length&&(l||(l=h.pop(),boe(l.scale,l.model)),ct(h,function(C){Mvt(C.scale,C.model,l.scale)}))}}o(r.x),o(r.y);var a={};ct(r.x,function(s){Yoe(r,"y",s,a)}),ct(r.y,function(s){Yoe(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=d1(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(ct(l,function(f){if(!f.model.get(["axisLabel","inside"])){var h=tpt(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()),ct(this._coordsList,function(f){f.calcAffineTransform()});function c(){ct(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]),Dvt(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]}Gn(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):rI(o-Rp)?(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})(),Zoe={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&&(rc(l,l,s),rc(c,c,s));var h=Gt({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Qp({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Kk(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var m=t.get(["axisLine","symbol"]);if(m!=null){var y=t.get(["axisLine","symbolSize"]);Nn(m)&&(m=[m,m]),(Nn(y)||Gi(y))&&(y=[y,y]);var b=Qme(t.get(["axisLine","symbolOffset"])||0,y),w=y[0],C=y[1];ct([{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(x,_){if(m[_]!=="none"&&m[_]!=null){var E=p1(m[_],-w/2,-C/2,w,C,h.stroke,!0),S=x.r+x.offset,I=f?c:l;E.attr({rotation:x.rotate,x:I[0]+S*Math.cos(e.rotation),y:I[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var o=Bvt(n,r,t,e),a=jvt(n,r,t,e);if(Nvt(t,a,o),Fvt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=kpt(Vn(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));xpt(s)}},axisName:function(e,t,n,r){var o=zk(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,Qoe(a)?e.labelOffset+s*c:0],m,y=t.get("nameRotate");y!=null&&(y=y*Rp/180);var b;Qoe(a)?m=zp.innerTextLayout(e.rotation,y??e.rotation,s):(m=Ovt(e.rotation,a,y||0,f),b=e.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(m.rotation)),!isFinite(b)&&(b=null)));var w=l.getFont(),C=t.get("nameTruncate",!0)||{},x=C.ellipsis,_=zk(e.nameTruncateMaxWidth,C.maxWidth,b),E=new va({x:p[0],y:p[1],rotation:m.rotation,silent:zp.isLabelSilent(t),style:ev(l,{text:o,font:w,overflow:"truncate",width:_,ellipsis:x,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:E,componentModel:t,itemName:o}),E.__fullText=o,E.anid="name",t.get("triggerEvent")){var S=zp.makeAxisEventDataBase(t);S.targetType="axisName",S.name=o,li(E).eventData=S}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function Ovt(e,t,n,r){var o=gve(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return rI(o-Rp/2)?(s=c?"bottom":"top",a="center"):rI(o-Rp*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oRp/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function Nvt(e,t,n){if(!jge(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?(Vu(a),Vu(f)):Joe(a,s)&&(r?(Vu(s),Vu(h)):(Vu(a),Vu(f))),o===!1?(Vu(l),Vu(p)):Joe(c,l)&&(o?(Vu(c),Vu(m)):(Vu(l),Vu(p)))}}function Vu(e){e&&(e.ignore=!0)}function Joe(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=nH([]);return rH(o,o,-e.rotation),n.applyTransform(Fy([],o,e.getLocalTransform())),r.applyTransform(Fy([],o,t.getLocalTransform())),n.intersect(r)}}function Qoe(e){return e==="middle"||e==="center"}function p0e(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Gvt(e){var t=tW(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=kV(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=tW(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=Sm(t).pointerEl=new But[a.type](nse(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=Sm(t).labelEl=new va(nse(n.label));t.add(a),ise(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=Sm(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=Sm(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),ise(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=_H(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(f){Qpe(f.event)},onmousedown:CB(this._onHandleDragMove,this,0,0),drift:CB(this._onHandleDragMove,this),ondragend:CB(this._onHandleDragEnd,this)}),r.add(o)),ose(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");Tn(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,Wme(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){rse(this._axisPointerModel,!n&&this._moveAnimation,this._handle,xB(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(xB(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(xB(o)),Sm(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 rse(e,t,n,r){y0e(Sm(n).lastProp,r)||(Sm(n).lastProp=r,t?gl(n,r,e):(n.stopAnimation(),n.attr(r)))}function y0e(e,t){if(Gn(e)&&Gn(t)){var n=!0;return ct(t,function(r,o){n=n&&y0e(e[o],r)}),!!n}else return e===t}function ise(e,t){e[t.get(["label","show"])?"show":"hide"]()}function xB(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ose(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 rmt(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 imt(e,t,n,r,o){var a=n.get("value"),s=b0e(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=IL(l.get("padding")||0),f=l.getFont(),h=aH(s,f),p=o.position,m=h.width+c[1]+c[3],y=h.height+c[0]+c[2],b=o.align;b==="right"&&(p[0]-=m),b==="center"&&(p[0]-=m/2);var w=o.verticalAlign;w==="bottom"&&(p[1]-=y),w==="middle"&&(p[1]-=y/2),omt(p,m,y,r);var C=l.get("backgroundColor");(!C||C==="auto")&&(C=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:ev(l,{text:s,font:f,fill:l.getTextColor(),padding:c,backgroundColor:C}),z2:10}}function omt(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 b0e(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:YH(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ct(r,function(c){var f=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=f&&f.getDataParams(h);p&&l.seriesData.push(p)}),Nn(s)?a=s.replace("{value}",a):mr(s)&&(a=s(l))}return a}function S0e(e,t,n){var r=By();return rH(r,r,n.rotation),Lj(r,r,n.position),xH([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function smt(e,t,n,r,o,a){var s=zp.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),imt(t,r,o,a,{position:S0e(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function amt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function lmt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var umt=(function(e){hn(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=sse(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(f&&f!=="none"){var m=rmt(a),y=cmt[f](l,p,h);y.style=m,n.graphicKey=y.type,n.pointer=y}var b=SV(c.model,o);smt(r,n,b,o,a,s)},t.prototype.getHandleTransform=function(n,r,o){var a=SV(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var s=S0e(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=sse(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,y=[m,m];y[h]=p[h];var b=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:y,tooltipOption:b[h]}},t})(nmt);function sse(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var cmt={line:function(e,t,n){var r=amt([t,n[0]],[t,n[1]],ase(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:lmt([t-r/2,n[0]],[r,o],ase(e))}}};function ase(e){return e.dim==="x"?0:1}var dmt=(function(e){hn(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})(_i),Jf=Zo(),fmt=ct;function k0e(e,t,n){if(!or.node){var r=t.getZr();Jf(r).records||(Jf(r).records={}),hmt(r,t);var o=Jf(r).records[e]||(Jf(r).records[e]={});o.handler=n}}function hmt(e,t){if(Jf(e).initialized)return;Jf(e).initialized=!0,n("click",Go(lse,"click")),n("mousemove",Go(lse,"mousemove")),n("globalout",vmt);function n(r,o){e.on(r,function(a){var s=mmt(t);fmt(Jf(e).records,function(l){l&&o(l,a,s.dispatchAction)}),pmt(s.pendings,t)})}}function pmt(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 vmt(e,t,n){e.handler("leave",null,n)}function lse(e,t,n,r){t.handler(e,n,r)}function mmt(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 CV(e,t){if(!or.node){var n=t.getZr(),r=(Jf(n).records||{})[e];r&&(Jf(n).records[e]=null)}}var gmt=(function(e){hn(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";k0e("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){CV("axisPointer",r)},t.prototype.dispose=function(n,r){CV("axisPointer",r)},t.type="axisPointer",t})(Yc);function w0e(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=lg(a,e);if(s==null||s<0||Tn(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,y=p==="x"||p==="radius"?1:0,b=a.mapDimension(m),w=[];w[y]=a.get(b,s),w[1-y]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(w)||[]}else n=c.dataToPoint(a.getValues(Vn(c.dimensions,function(x){return a.mapDimension(x)}),s))||[];else if(l){var C=l.getBoundingRect().clone();C.applyTransform(l.transform),n=[C.x+C.width/2,C.y+C.height/2]}return{point:n,el:l}}var use=Zo();function ymt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Ji(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){U4(o)&&(o=w0e({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=U4(o),f=a.axesInfo,h=l.axesInfo,p=r==="leave"||U4(o),m={},y={},b={list:[],map:{}},w={showPointer:Go(Smt,y),showTooltip:Go(kmt,b)};ct(l.coordSysMap,function(x,_){var E=c||x.containPoint(o);ct(l.coordSysAxesInfo[_],function(S,I){var $=S.axis,L=_mt(f,S);if(!p&&E&&(!f||L)){var O=L&&L.value;O==null&&!c&&(O=$.pointToData(o)),O!=null&&cse(S,O,w,!1,m)}})});var C={};return ct(h,function(x,_){var E=x.linkGroup;E&&!y[_]&&ct(E.axesInfo,function(S,I){var $=y[I];if(S!==x&&$){var L=$.value;E.mapper&&(L=x.axis.scale.parse(E.mapper(L,dse(S),dse(x)))),C[x.key]=L}})}),ct(C,function(x,_){cse(h[_],x,w,!0,m)}),wmt(y,h,m),Cmt(b,o,e,s),xmt(h,s,n),m}}function cse(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=bmt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&Gt(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function bmt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return ct(t.seriesModels,function(c,f){var h=c.getData().mapDimensionsAll(r),p,m;if(c.getAxisTooltipData){var y=c.getAxisTooltipData(h,e,n);m=y.dataIndices,p=y.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,w=Math.abs(b);w<=s&&((w=0&&l<0)&&(s=w,l=b,o=p,a.length=0),ct(m,function(C){a.push({seriesIndex:c.seriesIndex,dataIndexInside:C,dataIndex:c.getData().getRawIndex(C)})}))}}),{payloadBatch:a,snapToValue:o}}function Smt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function kmt(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=tw(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 wmt(e,t,n){var r=n.axesInfo=[];ct(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 Cmt(e,t,n,r){if(U4(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 xmt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=use(r)[o]||{},s=use(r)[o]={};ct(e,function(f,h){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&ct(p.seriesDataIndices,function(m){var y=m.seriesIndex+" | "+m.dataIndex;s[y]=m})});var l=[],c=[];ct(a,function(f,h){!s[h]&&c.push(f)}),ct(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 _mt(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 dse(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 U4(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function C0e(e){v0e.registerAxisPointerClass("CartesianAxisPointer",umt),e.registerComponentModel(dmt),e.registerComponentView(gmt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Tn(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Vvt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ymt)}function x0e(e){mh(tmt),mh(C0e)}function Tmt(e,t){var n=IL(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new hs({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 Emt=(function(e){hn(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})(_i);function _0e(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function T0e(e){if(or.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)),y=Math.round(((m-Math.SQRT2*o)/2+Math.SQRT2*o-(m-p)/2)*100)/100;l+=";"+a+":-"+y+"px";var b=t+" solid "+o+"px;",w=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+b,"border-right:"+b,"background-color:"+r+";"];return'
'}function Rmt(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+=or.transformSupported?","+nW+r:",left"+r+",top"+r),Lmt+":"+o}function fse(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!or.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=or.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+nW+":"+s+";":[["top",0],["left",0],[E0e,s]]}function Dmt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=Ir(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),ct(["decoration","align"],function(f){var h=e.get(f);h&&t.push("text-"+f+":"+h)}),t.join(";")}function Omt(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=Ume(e,"html"),m=c+"px "+f+"px "+s+"px "+l;return r.push("box-shadow:"+m),t&&o&&r.push(Rmt(o,n)),a&&r.push("background-color:"+a),ct(["width","color","radius"],function(y){var b="border-"+y,w=gme(b),C=e.get(w);C!=null&&r.push(b+":"+C+(y==="color"?"":"px"))}),r.push(Dmt(h)),p!=null&&r.push("padding:"+IL(p).join("px ")+"px"),r.join(";")+";"}function hse(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&nst(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 Nmt=(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,or.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&&(Nn(a)?document.querySelector(a):Vk(a)?a:mr(a)&&a(t.getDom()));hse(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();Wu(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=Amt(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=Pmt+Omt(t,!this._firstShow,this._longHide)+fse(a[0],a[1],!0)+("border-color:"+cg(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(Nn(a)&&r.get("trigger")==="item"&&!_0e(r)&&(l=Mmt(r,o,a)),Nn(t))s.innerHTML=t+l;else if(t){s.innerHTML="",Tn(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||or.node||!o.getDom())){var s=mse(a,o);this._ticket="";var l=a.dataByCoordSys,c=Hmt(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=Fmt;h.x=a.x,h.y=a.y,h.update(),li(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=w0e(a,r),m=p.point[0],y=p.point[1];m!=null&&y!=null&&this._tryShow({offsetX:m,offsetY:y,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(mse(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=YS([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=li(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,f;b2(o,function(h){if(li(h).dataIndex!=null)return c=h,!0;if(li(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=Ji(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=YS([r.tooltipOption],a),c=this._renderMode,f=[],h=Zk("section",{blocks:[],noHeader:!0}),p=[],m=new eB;ct(n,function(_){ct(_.dataByAxis,function(E){var S=o.getComponent(E.axisDim+"Axis",E.axisIndex),I=E.value;if(!(!S||I==null)){var $=b0e(I,S.axis,o,E.seriesDataIndices,E.valueLabelOpt),L=Zk("section",{header:$,noHeader:!Ad($),sortBlocks:!0,blocks:[]});h.blocks.push(L),ct(E.seriesDataIndices,function(O){var F=o.getSeriesByIndex(O.seriesIndex),M=O.dataIndexInside,j=F.getDataParams(M);if(!(j.dataIndex<0)){j.axisDim=E.axisDim,j.axisIndex=E.axisIndex,j.axisType=E.axisType,j.axisId=E.axisId,j.axisValue=YH(S.axis,{value:I}),j.axisValueLabel=$,j.marker=m.makeTooltipMarker("item",cg(j.color),c);var V=Iie(F.formatTooltip(M,!0,null)),W=V.frag;if(W){var U=YS([F],a).get("valueFormatter");L.blocks.push(U?Gt({valueFormatter:U},W):W)}V.text&&p.push(V.text),f.push(j)}})}})}),h.blocks.reverse(),p.reverse();var y=r.position,b=l.get("order"),w=Mie(h,m,c,b,o.get("useUTC"),l.get("textStyle"));w&&p.unshift(w);var C=c==="richText"?` `:"
",x=p.join(C);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,f)?this._updatePosition(l,y,s[0],s[1],this._tooltipContent,f):this._showTooltipContent(l,x,f,Math.random()+"",s[0],s[1],y,null,m)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=li(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),f=s.dataModel||c,h=s.dataIndex,p=s.dataType,m=f.getData(p),y=this._renderMode,b=n.positionDefault,w=YS([m.getItemModel(h),f,c&&(c.coordinateSystem||{}).model],this._tooltipModel,b?{position:b}:null),C=w.get("trigger");if(!(C!=null&&C!=="item")){var x=f.getDataParams(h,p),_=new eB;x.marker=_.makeTooltipMarker("item",cg(x.color),y);var E=Iie(f.formatTooltip(h,!1,p)),S=w.get("order"),I=w.get("valueFormatter"),$=E.frag,L=$?Mie(I?Gt({valueFormatter:I},$):$,_,y,S,a.get("useUTC"),w.get("textStyle")):E.text,O="item_"+f.name+"_"+h;this._showOrMove(w,function(){this._showTooltipContent(w,L,x,O,n.offsetX,n.offsetY,n.position,n.target,_)}),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=li(r),l=s.tooltipConfig,c=l.option||{},f=c.encodeHTMLContent;if(Nn(c)){var h=c;c={content:h,formatter:h},f=!0}f&&a&&c.content&&(c=ti(c),c.content=Ol(c.content));var p=[c],m=this._ecModel.getComponent(s.componentMainType,s.componentIndex);m&&p.push(m),p.push({formatter:c.content});var y=n.positionDefault,b=YS(p,this._tooltipModel,y?{position:y}:null),w=b.get("content"),C=Math.random()+"",x=new eB;this._showOrMove(b,function(){var _=ti(b.get("formatterParams")||{});this._showTooltipContent(b,w,_,C,n.offsetX,n.offsetY,n.position,r,x)}),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 y=r,b=this._getNearestPoint([s,l],o,n.get("trigger"),n.get("borderColor")),w=b.color;if(m)if(Nn(m)){var C=n.ecModel.get("useUTC"),x=Tn(o)?o[0]:o,_=x&&x.axisType&&x.axisType.indexOf("time")>=0;y=m,_&&(y=CL(x.axisValue,y,C)),y=yme(y,o,!0)}else if(mr(m)){var E=Ji(function(S,I){S===this._ticket&&(p.setContent(I,h,n,w,c),this._updatePosition(n,c,s,l,p,o,f))},this);this._ticket=a,y=m(o,a,E)}else y=m;p.setContent(y,h,n,w,c),p.show(n,w),this._updatePosition(n,c,s,l,p,o,f)}},t.prototype._getNearestPoint=function(n,r,o,a){if(o==="axis"||Tn(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Tn(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"),y=n.get("verticalAlign"),b=c&&c.getBoundingRect().clone();if(c&&b.applyTransform(c.transform),mr(r)&&(r=r([o,a],l,s.el,b,{viewSize:[f,h],contentSize:p.slice()})),Tn(r))o=mo(r[0],f),a=mo(r[1],h);else if(Gn(r)){var w=r;w.width=p[0],w.height=p[1];var C=d1(w,{width:f,height:h});o=C.x,a=C.y,m=null,y=null}else if(Nn(r)&&c){var x=Umt(r,b,p,n.get("borderWidth"));o=x[0],a=x[1]}else{var x=Vmt(o,a,s,f,h,m?null:20,y?null:20);o=x[0],a=x[1]}if(m&&(o-=gse(m)?p[0]/2:m==="right"?p[0]:0),y&&(a-=gse(y)?p[1]/2:y==="bottom"?p[1]:0),_0e(n)){var x=zmt(o,a,s,f,h);o=x[0],a=x[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&&ct(o,function(l,c){var f=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&f.length===p.length,s&&ct(f,function(m,y){var b=p[y]||{},w=m.seriesDataIndices||[],C=b.seriesDataIndices||[];s=s&&m.value===b.value&&m.axisType===b.axisType&&m.axisId===b.axisId&&w.length===C.length,s&&ct(w,function(x,_){var E=C[_];s=s&&x.seriesIndex===E.seriesIndex&&x.dataIndex===E.dataIndex}),a&&ct(m.seriesDataIndices,function(x){var _=x.seriesIndex,E=r[_],S=a[_];E&&S&&S.data!==E.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){or.node||!r.getDom()||(oV(this,"_updatePosition"),this._tooltipContent.dispose(),CV("itemTooltip",r))},t.type="tooltip",t})(Yc);function YS(e,t,n){var r=t.ecModel,o;n?(o=new jo(n,r,r),o=new jo(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof jo&&(s=s.get("tooltip",!0)),Nn(s)&&(s={formatter:s}),s&&(o=new jo(s,o,r)))}return o}function mse(e,t){return e.dispatchAction||Ji(t.dispatchAction,t)}function Vmt(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 zmt(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 Umt(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 gse(e){return e==="center"||e==="middle"}function Hmt(e,t,n){var r=dH(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=jw(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=li(f).tooltipConfig;if(h&&h.name===e.name)return c=f,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function A0e(e){mh(C0e),e.registerComponentModel(Emt),e.registerComponentView(jmt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gl),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gl)}var Wmt=(function(e){hn(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})(_i),Gmt=(function(e){hn(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=Ir(n.get("textBaseline"),n.get("textVerticalAlign")),h=new va({style:ev(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),m=n.get("subtext"),y=new va({style:ev(l,{text:m,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),b=n.get("link"),w=n.get("sublink"),C=n.get("triggerEvent",!0);h.silent=!b&&!C,y.silent=!w&&!C,b&&h.on("click",function(){cie(b,"_"+n.get("target"))}),w&&y.on("click",function(){cie(w,"_"+n.get("subtarget"))}),li(h).eventData=li(y).eventData=C?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),m&&a.add(y);var x=a.getBoundingRect(),_=n.getBoxLayoutParams();_.width=x.width,_.height=x.height;var E=d1(_,{width:o.getWidth(),height:o.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?E.x+=E.width:c==="center"&&(E.x+=E.width/2)),f||(f=n.get("top")||n.get("bottom"),f==="center"&&(f="middle"),f==="bottom"?E.y+=E.height:f==="middle"&&(E.y+=E.height/2),f=f||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var S={align:c,verticalAlign:f};h.setStyle(S),y.setStyle(S),x=a.getBoundingRect();var I=E.margin,$=n.getItemStyle(["color","opacity"]);$.fill=n.get("backgroundColor");var L=new hs({shape:{x:x.x-I[3],y:x.y-I[0],width:x.width+I[1]+I[3],height:x.height+I[0]+I[2],r:n.get("borderRadius")},style:$,subPixelOptimize:!0,silent:!0});a.add(L)}},t.type="title",t})(Yc);function L0e(e){e.registerComponentModel(Wmt),e.registerComponentView(Gmt)}var Kmt=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"])}},xV=(function(e){hn(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"]),Tn(r)&&ct(r,function(a,s){Nn(a)&&(a={type:a}),r[s]=Si(a,Kmt(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})(_i),J0=Go,_V=ct,HT=pa,P0e=(function(e){hn(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 HT),this.group.add(this._selectorGroup=new HT),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"),y=d1(h,p,m),b=this.layoutInner(n,s,y,a,c,f),w=d1(wi({width:b.width,height:b.height},h),p,m);this.group.x=w.x-b.x,this.group.y=w.y-b.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Tmt(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=Mr(),p=r.get("selectedMode"),m=[];o.eachRawSeries(function(y){!y.get("legendHoverLink")&&m.push(y.id)}),_V(r.getData(),function(y,b){var w=y.get("name");if(!this.newlineDisabled&&(w===""||w===` `)){var C=new HT;C.newline=!0,f.add(C);return}var x=o.getSeriesByName(w)[0];if(!h.get(w))if(x){var _=x.getData(),E=_.getVisual("legendLineStyle")||{},S=_.getVisual("legendIcon"),I=_.getVisual("style"),$=this._createItem(x,w,b,y,r,n,E,I,S,p,a);$.on("click",J0(yse,w,null,a,m)).on("mouseover",J0(TV,x.name,null,a,m)).on("mouseout",J0(EV,x.name,null,a,m)),o.ssr&&$.eachChild(function(L){var O=li(L);O.seriesIndex=x.seriesIndex,O.dataIndex=b,O.ssrType="legend"}),h.set(w,!0)}else o.eachRawSeries(function(L){if(!h.get(w)&&L.legendVisualProvider){var O=L.legendVisualProvider;if(!O.containName(w))return;var F=O.indexOfName(w),M=O.getItemVisual(F,"style"),j=O.getItemVisual(F,"legendIcon"),V=ih(M.fill);V&&V[3]===0&&(V[3]=.2,M=Gt(Gt({},M),{fill:lL(V,"rgba")}));var W=this._createItem(L,w,b,y,r,n,{},M,j,p,a);W.on("click",J0(yse,null,w,a,m)).on("mouseover",J0(TV,null,w,a,m)).on("mouseout",J0(EV,null,w,a,m)),o.ssr&&W.eachChild(function(U){var X=li(U);X.seriesIndex=L.seriesIndex,X.dataIndex=b,X.ssrType="legend"}),h.set(w,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,o,a,s){var l=this.getSelectorGroup();_V(n,function(f){var h=f.type,p=new va({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"),y=r.getModel(["emphasis","selectorLabel"]);Uw(p,{normal:m,emphasis:y},{defaultText:f.title}),qj(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,f,h,p,m){var y=n.visualDrawType,b=s.get("itemWidth"),w=s.get("itemHeight"),C=s.isSelected(r),x=a.get("symbolRotate"),_=a.get("symbolKeepAspect"),E=a.get("icon");h=E||h||"roundRect";var S=qmt(h,a,c,f,y,C,m),I=new HT,$=a.getModel("textStyle");if(mr(n.getLegendIcon)&&(!E||E==="inherit"))I.add(n.getLegendIcon({itemWidth:b,itemHeight:w,icon:h,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:_}));else{var L=E==="inherit"&&n.getData().getVisual("symbol")?x==="inherit"?n.getData().getVisual("symbolRotate"):x:0;I.add(Ymt({itemWidth:b,itemHeight:w,icon:h,iconRotate:L,itemStyle:S.itemStyle,symbolKeepAspect:_}))}var O=l==="left"?b+5:-5,F=l,M=s.get("formatter"),j=r;Nn(M)&&M?j=M.replace("{name}",r??""):mr(M)&&(j=M(r));var V=C?$.getTextColor():a.get("inactiveColor");I.add(new va({style:ev($,{text:j,x:O,y:w/2,fill:V,align:F,verticalAlign:"middle"},{inheritColor:V})}));var W=new hs({shape:I.getBoundingRect(),style:{fill:"transparent"}}),U=a.getModel("tooltip");return U.get("show")&&yL({el:W,componentModel:s,itemName:r,itemTooltipOption:U.option}),I.add(W),I.eachChild(function(X){X.silent=!0}),W.silent=!p,this.getContentGroup().add(I),qj(I),I.__legendDataIndex=o,I},t.prototype.layoutInner=function(n,r,o,a,s,l){var c=this.getContentGroup(),f=this.getSelectorGroup();ok(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){ok("horizontal",f,n.get("selectorItemGap",!0));var m=f.getBoundingRect(),y=[-m.x,-m.y],b=n.get("selectorButtonGap",!0),w=n.getOrient().index,C=w===0?"width":"height",x=w===0?"height":"width",_=w===0?"y":"x";l==="end"?y[w]+=h[C]+b:p[w]+=m[C]+b,y[1-w]+=h[x]/2-m[x]/2,f.x=y[0],f.y=y[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[C]=h[C]+b+m[C],E[x]=Math.max(h[x],m[x]),E[_]=Math.min(0,m[_]+y[1-w]),E}else return c.x=p[0],c.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Yc);function qmt(e,t,n,r,o,a,s){function l(C,x){C.lineWidth==="auto"&&(C.lineWidth=x.lineWidth>0?2:0),_V(C,function(_,E){C[E]==="inherit"&&(C[E]=x[E])})}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"),y=m.getLineStyle();if(l(y,n),f.fill==="auto"&&(f.fill=r.fill),f.stroke==="auto"&&(f.stroke=r.fill),y.stroke==="auto"&&(y.stroke=r.fill),!a){var b=t.get("inactiveBorderWidth"),w=f[h];f.lineWidth=b==="auto"?r.lineWidth>0&&w?2:0:f.lineWidth,f.fill=t.get("inactiveColor"),f.stroke=t.get("inactiveBorderColor"),y.stroke=m.get("inactiveColor"),y.lineWidth=m.get("inactiveWidth")}return{itemStyle:f,lineStyle:y}}function Ymt(e){var t=e.icon||"roundRect",n=p1(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 yse(e,t,n,r){EV(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),TV(e,t,n,r)}function $0e(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,o=t.length;ro[s],C=[-y.x,-y.y];r||(C[a]=h[f]);var x=[0,0],_=[-b.x,-b.y],E=Ir(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(w){var S=n.get("pageButtonPosition",!0);S==="end"?_[a]+=o[s]-b[s]:x[a]+=b[s]+E}_[1-a]+=y[l]/2-b[l]/2,h.setPosition(C),p.setPosition(x),m.setPosition(_);var I={x:0,y:0};if(I[s]=w?o[s]:y[s],I[l]=Math.max(y[l],b[l]),I[c]=Math.min(0,b[c]+_[1-a]),p.__rectSize=o[s],w){var $={x:0,y:0};$[s]=Math.max(o[s]-b[s]-E,0),$[l]=I[l],p.setClipPath(new hs({shape:$})),p.__rectSize=$[s]}else m.eachChild(function(O){O.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(n);return L.pageIndex!=null&&gl(h,{x:L.contentPosition[0],y:L.contentPosition[1]},w?n:null),this._updatePageInfoView(n,L),I},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;ct(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",m=r[p]!=null,y=o.childOfName(h);y&&(y.setStyle("fill",m?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),y.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",Nn(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=_B[s],c=TB[s],f=this._findTargetItemIndex(r),h=o.children(),p=h[f],m=h.length,y=m?1:0,b={contentPosition:[o.x,o.y],pageCount:y,pageIndex:y-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return b;var w=S(p);b.contentPosition[s]=-w.s;for(var C=f+1,x=w,_=w,E=null;C<=m;++C)E=S(h[C]),(!E&&_.e>x.s+a||E&&!I(E,x.s))&&(_.i>x.i?x=_:x=E,x&&(b.pageNextDataIndex==null&&(b.pageNextDataIndex=x.i),++b.pageCount)),_=E;for(var C=f-1,x=w,_=w,E=null;C>=-1;--C)E=S(h[C]),(!E||!I(_,E.s))&&x.i<_.i&&(_=x,b.pagePrevDataIndex==null&&(b.pagePrevDataIndex=x.i),++b.pageCount,++b.pageIndex),x=E;return b;function S($){if($){var L=$.getBoundingRect(),O=L[c]+$[c];return{s:O,e:O+L[l],i:$.__legendDataIndex}}}function I($,L){return $.e>=L&&$.s<=L+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})(P0e);function egt(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 tgt(e){mh(M0e),e.registerComponentModel(Jmt),e.registerComponentView(Qmt),egt(e)}function R0e(e){mh(M0e),mh(tgt)}const ngt=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function rgt(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 ngt.forEach(o=>{r[o]=t(o)}),r}return n()}function igt(e,t,n){bt([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:y}=p;let b=!1;const w=()=>{o.resize(),y?.()},C=m?$L(w,m):w;c=new ResizeObserver(()=>{!b&&(b=!0,r.offsetWidth===f&&r.offsetHeight===h)||C()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const ogt={autoresize:[Boolean,Object]},sgt=/^on[^a-z]/,D0e=e=>sgt.test(e);function agt(e){const t={};for(const n in e)D0e(n)||(t[n]=e[n]);return t}function H4(e,t){const n=to(e)?He(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const lgt="ecLoadingOptions";function ugt(e,t,n){const r=rn(lgt,{}),o=N(()=>({...H4(r,{}),...n?.value}));Yo(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const cgt={loading:Boolean,loadingOptions:Object};let ZS=null;const O0e="x-vue-echarts";function dgt(){if(ZS!=null)return ZS;if(typeof HTMLElement>"u"||typeof customElements>"u")return ZS=!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);")(O0e)}catch{return ZS=!1}return ZS=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const fgt=dgt(),hgt="ecTheme",pgt="ecInitOptions",vgt="ecUpdateOptions",wse=/(^&?~?!?)native:/;var N0e=fe({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ogt,...cgt},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=Dm(),r=Dm(),o=Dm(),a=rn(hgt,null),s=rn(pgt,null),l=rn(vgt,null),{autoresize:c,manualUpdate:f,loading:h,loadingOptions:p}=Ot(e),m=N(()=>o.value||e.option||null),y=N(()=>e.theme||H4(a,{})),b=N(()=>e.initOptions||H4(s,{})),w=N(()=>e.updateOptions||H4(l,{})),C=N(()=>agt(t)),x={},_=Di().proxy.$listeners,E={};_?Object.keys(_).forEach(F=>{wse.test(F)?x[F.replace(wse,"$1")]=_[F]:E[F]=_[F]}):Object.keys(t).filter(F=>D0e(F)).forEach(F=>{let M=F.charAt(2).toLowerCase()+F.slice(3);if(M.indexOf("native:")===0){const j=`on${M.charAt(7).toUpperCase()}${M.slice(8)}`;x[j]=t[F];return}M.substring(M.length-4)==="Once"&&(M=`~${M.substring(0,M.length-4)}`),E[M]=t[F]});function S(F){if(!n.value)return;const M=r.value=Kft(n.value,y.value,b.value);e.group&&(M.group=e.group),Object.keys(E).forEach(W=>{let U=E[W];if(!U)return;let X=W.toLowerCase();X.charAt(0)==="~"&&(X=X.substring(1),U.__once__=!0);let G=M;if(X.indexOf("zr:")===0&&(G=M.getZr(),X=X.substring(3)),U.__once__){delete U.__once__;const Y=U;U=(...ee)=>{Y(...ee),G.off(X,U)}}G.on(X,U)});function j(){M&&!M.isDisposed()&&M.resize()}function V(){const W=F||m.value;W&&M.setOption(W,w.value)}c.value?nn(()=>{j(),V()}):V()}function I(F,M){e.manualUpdate&&(o.value=F),r.value?r.value.setOption(F,M||{}):S(F)}function $(){r.value&&(r.value.dispose(),r.value=void 0)}let L=null;bt(f,F=>{typeof L=="function"&&(L(),L=null),F||(L=bt(()=>e.option,(M,j)=>{M&&(r.value?r.value.setOption(M,{notMerge:M!==j,...w.value}):S())},{deep:!0}))},{immediate:!0}),bt([y,b],()=>{$(),S()},{deep:!0}),Yo(()=>{e.group&&r.value&&(r.value.group=e.group)});const O=rgt(r);return ugt(r,h,p),igt(r,c,n),qt(()=>{S()}),uo(()=>{fgt&&n.value?n.value.__dispose=$:$()}),{chart:r,root:n,setOption:I,nonEventAttrs:C,nativeListeners:x,...O}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",Is(O0e,e)}});const Ul={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},B0e=()=>new Date().toISOString().split("T")[0],mgt=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},ggt=()=>{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},Ud=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},CI=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},F0e=e=>{const t=B0e(),n=new Date().toISOString(),r=Ud(Ul.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),CI(Ul.WATCH_HISTORY,r),rW(t),o},rW=e=>{const t=Ud(Ul.DAILY_STATS,{}),n=Ud(Ul.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()},CI(Ul.DAILY_STATS,t)},j0e=()=>{const e=B0e(),t=Ud(Ul.DAILY_STATS,{});return t[e]?t[e]:(rW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},V0e=()=>{const e=mgt(),t=Ud(Ul.DAILY_STATS,{});return t[e]?t[e]:(rW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},ygt=()=>{const e=ggt(),t=Ud(Ul.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}})},bgt=()=>{const e=j0e(),t=V0e();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},Sgt=(e=50)=>Ud(Ul.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),kgt=(e=10)=>{const t=Ud(Ul.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)},wgt=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=Ud(Ul.WATCH_HISTORY,[]).filter(l=>l.date>=n);CI(Ul.WATCH_HISTORY,o);const a=Ud(Ul.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),CI(Ul.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},Cgt=()=>{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:"🎉"}}),U0e=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),xgt=()=>Ju.sort((e,t)=>new Date(t.date)-new Date(e.date)),_gt=e=>Ju.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Tgt=e=>Ju.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Egt=(e=5)=>Ju.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),Igt=(e,t)=>{const n=new Date(e),r=new Date(t);return Ju.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},Agt=e=>{const t=e.toLowerCase();return Ju.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))},Lgt=()=>{const e=z0e(),t=U0e(),n={};Object.keys(e).forEach(a=>{n[a]=Ju.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Ju.filter(s=>s.importance===a).length});const o={};return Ju.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:Ju.length,byType:n,byImportance:r,byMonth:o,latestVersion:Ju[0]?.version||"v1.0.0",latestDate:Ju[0]?.date||new Date().toISOString().split("T")[0]}},Pgt=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(aHr,Rgt=e=>Hr[e]||[],Dgt=(e=12)=>[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),Ogt=(e=8)=>[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),Ngt=(e,t=6)=>[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),Bgt=(e,t=6)=>[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),Fgt=e=>{const t=e.toLowerCase();return[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.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)},jgt=()=>NL.sort((e,t)=>t.count-e.count),Vgt=(e=10)=>NL.sort((t,n)=>n.count-t.count).slice(0,e),zgt=(e=5)=>NL.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),Ugt=(e=[],t=8)=>{const n=Hgt();return[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.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)},Hgt=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),Wgt=()=>{const e=[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.novels],t={};Object.keys(Hr).forEach(a=>{t[a]=Hr[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}},Ggt=(e=6)=>[...Hr.movies,...Hr.tvShows,...Hr.anime,...Hr.novels].sort(()=>.5-Math.random()).slice(0,e),QS={getAllRecommendations:Mgt,getRecommendationsByType:Rgt,getHotRecommendations:Dgt,getTrendingRecommendations:Ogt,getRecommendationsByCategory:Ngt,getRecommendationsByTag:Bgt,searchRecommendations:Fgt,getAllKeywords:jgt,getHotKeywords:Vgt,getTrendingUpKeywords:zgt,getPersonalizedRecommendations:Ugt,getRecommendationStats:Wgt,getRandomRecommendations:Ggt},BL=Tg("pageState",{state:()=>({pageStates:{video:{activeKey:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null},home:{scrollPosition:0,lastUpdateTime:null},search:{keyword:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null}}}),actions:{savePageState(e,t){this.pageStates[e]||(this.pageStates[e]={}),this.pageStates[e]={...this.pageStates[e],...t,lastUpdateTime:Date.now()},console.log(`保存页面状态 [${e}]:`,this.pageStates[e])},getPageState(e){const t=this.pageStates[e];return console.log(`获取页面状态 [${e}]:`,t),t||{}},clearPageState(e){this.pageStates[e]&&(this.pageStates[e]={},console.log(`清除页面状态 [${e}]`))},isStateExpired(e,t=1800*1e3){const n=this.pageStates[e];return!n||!n.lastUpdateTime?!0:Date.now()-n.lastUpdateTime>t},saveVideoState(e,t,n,r,o,a=0){this.savePageState("video",{activeKey:e,currentPage:t,videos:[...n],hasMore:r,loading:o,scrollPosition:a})},saveSearchState(e,t,n,r,o,a=0){this.savePageState("search",{keyword:e,currentPage:t,videos:[...n],hasMore:r,loading:o,scrollPosition:a})},saveScrollPosition(e,t){this.pageStates[e]&&(this.pageStates[e].scrollPosition=t,this.pageStates[e].lastUpdateTime=Date.now())},getScrollPosition(e){const t=this.pageStates[e];return t&&t.scrollPosition||0}},getters:{videoState:e=>e.pageStates.video||{},searchState:e=>e.pageStates.search||{},homeState:e=>e.pageStates.home||{}}}),Kgt="识别动作的路由ID或专项动作指令,必须。字符型。",qgt="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",Ygt="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",Xgt="标题。字符型。",Zgt="宽度。整型。",Jgt="高度。整型。",Qgt="文本消息内容。字符型。",e0t="msgbox类动作的简单html消息内容。字符型。",t0t="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",n0t="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",r0t="图片URL。字符型。",i0t="图片高度。整型。",o0t="是否检测图片的点击坐标输入。逻辑型。",s0t="生成二维码的URL。字符型。",a0t="二维码的大小。整型。",l0t="超时时间(秒)。超时自动关闭窗口。整型。",u0t="T4源的动作网络访问超时时间(秒)。",c0t="输入确认后,窗口是否保持。逻辑型。",d0t="窗口弹出时自动发送的初始化动作指令。字符型。",f0t="窗口弹出时自动发送的初始化指令值。字符型。",h0t="按窗口的取消键时发送的取消动作指令。字符型。",p0t="按窗口的取消键时发送的取消动作指令值。字符型。",v0t="单项输入的输入提示,单项输入时必须。字符型。",m0t="单项输入的初始化值。字符型。",g0t="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",y0t=`多项输入的项目定义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。`,b0t="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",S0t="底部对齐和底边距。整型。",k0t="单项选择或多项选择窗口的列数。整型。",w0t=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,C0t=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,x0t=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,_0t=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,T0t="刷新当前分类的列表。无其它参数。",E0t="把返回的内容复制到剪贴板。content:复制的内容",I0t=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,A0t={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为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:Kgt,type:qgt,canceledOnTouchOutside:Ygt,title:Xgt,width:Zgt,height:Jgt,msg:Qgt,htmlMsg:e0t,help:t0t,button:n0t,imageUrl:r0t,imageHeight:i0t,imageClickCoord:o0t,qrcode:s0t,qrcodeSize:a0t,timeout:l0t,httpTimeout:u0t,keep:c0t,initAction:d0t,initValue:f0t,cancelAction:h0t,cancelValue:p0t,tip:v0t,value:m0t,selectData:g0t,input:y0t,dimAmount:b0t,bottom:S0t,column:k0t,option:w0t,单项输入:`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__:C0t,__detail__:x0t,__ktvplayer__:_0t,__refresh_list__:T0t,__copy__:E0t,__keep__:I0t,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的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'  }`},L0t={class:"action-doc-card"},P0t={class:"card-title"},$0t={class:"card-content"},M0t={class:"overview-section"},R0t={class:"overview-item"},D0t={class:"overview-value"},O0t={class:"overview-item"},N0t={class:"overview-value"},B0t={class:"overview-item"},F0t={class:"overview-value"},j0t={key:0,class:"quick-nav"},V0t={key:1,class:"expanded-content"},z0t={class:"section",id:"basic-concepts"},U0t={class:"section-title"},H0t={class:"concept-grid"},W0t={class:"concept-title"},G0t={class:"concept-desc"},K0t={class:"section",id:"action-types"},q0t={class:"section-title"},Y0t={class:"action-types-grid"},X0t={class:"action-type-header"},Z0t={class:"action-type-code"},J0t={class:"action-type-desc"},Q0t={key:0,class:"action-type-usage"},eyt={class:"section",id:"special-actions"},tyt={class:"section-title"},nyt={class:"special-actions-list"},ryt={class:"special-action-header"},iyt={class:"action-id"},oyt={class:"action-name"},syt={class:"special-action-desc"},ayt={key:0,class:"special-action-params"},lyt={class:"section",id:"config-params"},uyt={class:"section-title"},cyt={class:"params-grid"},dyt={class:"param-header"},fyt={class:"param-name"},hyt={class:"param-desc"},pyt={class:"section",id:"examples"},vyt={class:"section-title"},myt={class:"code-block"},gyt={class:"code-block"},yyt={class:"code-block"},byt={__name:"ActionDocCard",setup(e){const t=ae(!1),n=ae(A0t),r=()=>{t.value=!t.value},o=C=>{t.value=!0,setTimeout(()=>{const x=document.getElementById(C);x&&x.scrollIntoView({behavior:"smooth"})},100)};qt(()=>{});const a=N(()=>Object.keys(n.value).length),s=N(()=>{const C=new Set;return Object.values(n.value).forEach(x=>{x.type&&C.add(x.type)}),Array.from(C)}),l=N(()=>Object.entries(n.value).filter(([C,x])=>x.special===!0).map(([C,x])=>({key:C,...x}))),c=ae([{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=N(()=>[{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=ae([{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=N(()=>[{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=ae([{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:"单项输入的输入提示,单项输入时必须"}]),y=ae(`{ "vod_id": "hello world", "vod_name": "基础动作", "vod_tag": "action" }`),b=ae(`{ "actionId": "动作路由ID", "type": "input", "width": 450, "title": "输入窗口标题", "tip": "输入提示", "value": "输入初始值", "msg": "窗口文本说明", "button": 2, "selectData": "1:=快速输入一,2:=快速输入二,3:=快速输入三" }`),w=ae(`{ "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(C,x)=>{const _=ke("a-button"),E=ke("a-tag"),S=ke("a-card"),I=ke("a-tab-pane"),$=ke("a-tabs");return z(),q("div",L0t,[R(S,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:se(()=>[A("div",P0t,[R(He(eL),{class:"title-icon"}),x[0]||(x[0]=A("span",null,"Action 动作指令文档",-1))])]),extra:se(()=>[R(_,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:se(()=>[t.value?ge("",!0):(z(),Ne(He(dv),{key:0})),t.value?(z(),Ne(He(Aw),{key:1})):ge("",!0),$e(" "+_e(t.value?"收起":"展开"),1)]),_:1})]),default:se(()=>[A("div",$0t,[A("div",M0t,[A("div",R0t,[x[1]||(x[1]=A("div",{class:"overview-label"},"总条目数",-1)),A("div",D0t,_e(a.value),1)]),A("div",O0t,[x[2]||(x[2]=A("div",{class:"overview-label"},"动作类型",-1)),A("div",N0t,_e(s.value.length),1)]),A("div",B0t,[x[3]||(x[3]=A("div",{class:"overview-label"},"专项动作",-1)),A("div",F0t,_e(l.value.length),1)])]),t.value?ge("",!0):(z(),q("div",j0t,[(z(!0),q(Tt,null,Kt(c.value,L=>(z(),Ne(E,{key:L.key,color:L.color,class:"nav-tag",onClick:O=>o(L.key)},{default:se(()=>[$e(_e(L.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(z(),q("div",V0t,[A("div",z0t,[A("h3",U0t,[R(He(Ff),{class:"section-icon"}),x[4]||(x[4]=$e(" 基础概念 ",-1))]),A("div",H0t,[(z(!0),q(Tt,null,Kt(f.value,L=>(z(),q("div",{class:"concept-item",key:L.key},[A("div",W0t,_e(L.title),1),A("div",G0t,_e(L.description),1)]))),128))])]),A("div",K0t,[A("h3",q0t,[R(He(wh),{class:"section-icon"}),x[5]||(x[5]=$e(" 动作类型 ",-1))]),A("div",Y0t,[(z(!0),q(Tt,null,Kt(h.value,L=>(z(),Ne(S,{key:L.key,size:"small",class:"action-type-card",hoverable:!0},{default:se(()=>[A("div",X0t,[R(E,{color:L.color},{default:se(()=>[$e(_e(L.name),1)]),_:2},1032,["color"]),A("span",Z0t,_e(L.type),1)]),A("div",J0t,_e(L.description),1),L.usage?(z(),q("div",Q0t,[x[6]||(x[6]=A("strong",null,"用途:",-1)),$e(_e(L.usage),1)])):ge("",!0)]),_:2},1024))),128))])]),A("div",eyt,[A("h3",tyt,[R(He(GU),{class:"section-icon"}),x[7]||(x[7]=$e(" 专项动作 ",-1))]),A("div",nyt,[(z(!0),q(Tt,null,Kt(p.value,L=>(z(),q("div",{key:L.key,class:"special-action-item"},[A("div",ryt,[A("code",iyt,_e(L.actionId),1),A("span",oyt,_e(L.name),1)]),A("div",syt,_e(L.description),1),L.params?(z(),q("div",ayt,[x[8]||(x[8]=A("strong",null,"参数:",-1)),(z(!0),q(Tt,null,Kt(L.params,O=>(z(),q("span",{key:O,class:"param-tag"},_e(O),1))),128))])):ge("",!0)]))),128))])]),A("div",lyt,[A("h3",uyt,[R(He(Xp),{class:"section-icon"}),x[9]||(x[9]=$e(" 配置参数 ",-1))]),A("div",cyt,[(z(!0),q(Tt,null,Kt(m.value,L=>(z(),q("div",{key:L.key,class:"param-item"},[A("div",dyt,[A("code",fyt,_e(L.name),1),R(E,{size:"small",color:L.typeColor},{default:se(()=>[$e(_e(L.type),1)]),_:2},1032,["color"])]),A("div",hyt,_e(L.description),1)]))),128))])]),A("div",pyt,[A("h3",vyt,[R(He(_pe),{class:"section-icon"}),x[10]||(x[10]=$e(" 示例代码 ",-1))]),R($,{type:"card",class:"example-tabs"},{default:se(()=>[R(I,{key:"basic",title:"基础动作"},{default:se(()=>[A("pre",myt,_e(y.value),1)]),_:1}),R(I,{key:"input",title:"单项输入"},{default:se(()=>[A("pre",gyt,_e(b.value),1)]),_:1}),R(I,{key:"multi",title:"多项输入"},{default:se(()=>[A("pre",yyt,_e(w.value),1)]),_:1})]),_:1})])])):ge("",!0)])]),_:1})])}}},Syt=zn(byt,[["__scopeId","data-v-d143db2b"]]),kyt={class:"home-container"},wyt={class:"dashboard-header"},Cyt={class:"header-content"},xyt={class:"welcome-section"},_yt={class:"dashboard-title"},Tyt={class:"quick-stats"},Eyt={class:"stat-item"},Iyt={class:"stat-value"},Ayt={class:"stat-item"},Lyt={class:"stat-value"},Pyt={class:"stat-item"},$yt={class:"dashboard-content"},Myt={class:"content-grid"},Ryt={class:"dashboard-card watch-stats-card"},Dyt={class:"card-header"},Oyt={class:"card-title"},Nyt={class:"card-content"},Byt={class:"dashboard-card update-log-card"},Fyt={class:"card-header"},jyt={class:"card-title"},Vyt={class:"card-content"},zyt={class:"timeline-content"},Uyt={class:"timeline-header"},Hyt={class:"version-tag"},Wyt={class:"update-date"},Gyt={class:"update-title"},Kyt={class:"update-description"},qyt={class:"update-changes"},Yyt={key:0,class:"more-changes"},Xyt={class:"dashboard-card recommend-card"},Zyt={class:"card-header"},Jyt={class:"card-title"},Qyt={class:"card-content"},e1t={class:"recommend-grid"},t1t=["onClick"],n1t={class:"recommend-poster"},r1t={class:"recommend-overlay"},i1t={key:0,class:"trending-badge"},o1t={class:"recommend-info"},s1t={class:"recommend-title"},a1t={class:"recommend-meta"},l1t={class:"recommend-rating"},u1t={class:"recommend-tags"},c1t={class:"dashboard-card keywords-card"},d1t={class:"card-header"},f1t={class:"card-title"},h1t={class:"card-content"},p1t={class:"keywords-list"},v1t=["onClick"],m1t={class:"keyword-content"},g1t={class:"keyword-text"},y1t={class:"keyword-meta"},b1t={class:"keyword-count"},S1t={class:"dashboard-card system-status-card"},k1t={class:"card-header"},w1t={class:"card-title"},C1t={class:"card-content"},x1t={class:"status-grid"},_1t={class:"status-item"},T1t={class:"status-icon online"},E1t={class:"status-item"},I1t={class:"status-icon online"},A1t={class:"status-item"},L1t={class:"status-icon warning"},P1t={class:"status-item"},$1t={class:"status-icon online"},M1t={class:"update-log-modal"},R1t={class:"timeline-content"},D1t={class:"timeline-header"},O1t={class:"version-tag"},N1t={class:"update-date"},B1t={class:"update-title"},F1t={class:"update-description"},j1t={class:"update-changes"},V1t={class:"keywords-modal"},z1t={class:"keywords-list"},U1t=["onClick"],H1t={class:"keyword-content"},W1t={class:"keyword-text"},G1t={class:"keyword-meta"},K1t={class:"keyword-count"},q1t={__name:"Home",setup(e){mh([Yge,a0e,i0e,f0e,x0e,A0e,R0e,L0e]);const t=BL(),n=SA(),r=Ql(),o=ae("week"),a=ae("hot"),s=ae({watchCount:0,totalWatchTime:0}),l=ae({watchCount:0,totalWatchTime:0}),c=ae([]),f=ae(0),h=ae([]),p=ae([]),m=ae([]),y=N(()=>{const ee=c.value.map(J=>J.count),te=c.value.map(J=>J.day);return{title:{text:o.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(J){const Z=J[0];return`${Z.name}
${Z.seriesName}: ${Z.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:te,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:ee,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),b=ee=>JS.getUpdateTypeConfig()[ee]?.color||"#86909c",w=()=>JS.getUpdateTypeConfig(),C=ee=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[ee]||"gray",x=ee=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[ee]||"#86909C",_=ee=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[ee]||"gray",E=ee=>JS.formatDate(ee),S=ee=>ee>=1e4?(ee/1e4).toFixed(1)+"w":ee>=1e3?(ee/1e3).toFixed(1)+"k":ee.toString(),I=()=>{console.log("更新统计图表:",o.value)},$=()=>{switch(a.value){case"hot":p.value=QS.getHotRecommendations(8);break;case"trending":p.value=QS.getTrendingRecommendations(8);break;case"random":p.value=QS.getRandomRecommendations(8);break}},L=ee=>{console.log("点击推荐内容:",ee)},O=ee=>{console.log("点击热搜关键词:",ee)},F=ae(!1),M=ae(!1),j=ae([]),V=ae([]),W=()=>{j.value=JS.getAllUpdateLogs(),F.value=!0},U=()=>{V.value=QS.getAllKeywords(),M.value=!0},X=()=>{F.value=!1},G=()=>{M.value=!1},Y=()=>{s.value=WT.getTodayStats(),l.value=WT.getYesterdayStats(),c.value=WT.getWeekStats(),f.value=WT.calculateGrowthRate(),h.value=JS.getRecentUpdateLogs(4),$(),m.value=QS.getHotKeywords(8)};return qt(()=>{if(n.query._restoreSearch==="true"){const te=t.getPageState("search");if(te&&te.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",te),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const J={...n.query};delete J._restoreSearch,r.replace({query:J})}Y(),console.log("主页看板加载完成")}),(ee,te)=>{const J=ke("a-option"),Z=ke("a-select"),ce=ke("a-link"),ye=ke("a-tag"),ie=ke("a-timeline-item"),Ce=ke("a-timeline"),Re=ke("a-modal");return z(),q(Tt,null,[A("div",kyt,[A("div",wyt,[A("div",Cyt,[A("div",xyt,[A("h1",_yt,[R(He(JA),{class:"title-icon"}),te[4]||(te[4]=$e(" 数据看板 ",-1))]),te[5]||(te[5]=A("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),A("div",Tyt,[A("div",Eyt,[A("div",Iyt,_e(s.value.watchCount),1),te[6]||(te[6]=A("div",{class:"stat-label"},"今日观看",-1))]),A("div",Ayt,[A("div",Lyt,_e(Math.round(s.value.totalWatchTime/60)),1),te[7]||(te[7]=A("div",{class:"stat-label"},"总时长(分钟)",-1))]),A("div",Pyt,[A("div",{class:ne(["stat-value",{positive:f.value>0,negative:f.value<0}])},_e(f.value>0?"+":"")+_e(f.value)+"% ",3),te[8]||(te[8]=A("div",{class:"stat-label"},"增长率",-1))])])])]),A("div",$yt,[A("div",Myt,[A("div",Ryt,[A("div",Dyt,[A("h3",Oyt,[R(He(Rpe),{class:"card-icon"}),te[9]||(te[9]=$e(" 最近观看统计 ",-1))]),R(Z,{modelValue:o.value,"onUpdate:modelValue":te[0]||(te[0]=be=>o.value=be),size:"small",style:{width:"100px"},onChange:I},{default:se(()=>[R(J,{value:"week"},{default:se(()=>[...te[10]||(te[10]=[$e("本周",-1)])]),_:1}),R(J,{value:"month"},{default:se(()=>[...te[11]||(te[11]=[$e("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),A("div",Nyt,[R(He(N0e),{class:"chart",option:y.value},null,8,["option"])])]),A("div",Byt,[A("div",Fyt,[A("h3",jyt,[R(He(c1),{class:"card-icon"}),te[12]||(te[12]=$e(" 更新日志 ",-1))]),R(ce,{onClick:W,size:"small"},{default:se(()=>[...te[13]||(te[13]=[$e("查看全部",-1)])]),_:1})]),A("div",Vyt,[R(Ce,null,{default:se(()=>[(z(!0),q(Tt,null,Kt(h.value,be=>(z(),Ne(ie,{key:be.id,"dot-color":b(be.type)},{default:se(()=>[A("div",zyt,[A("div",Uyt,[A("span",Hyt,_e(be.version),1),A("span",Wyt,_e(E(be.date)),1)]),A("h4",Gyt,_e(be.title),1),A("p",Kyt,_e(be.description),1),A("div",qyt,[(z(!0),q(Tt,null,Kt(be.changes.slice(0,2),(Fe,De)=>(z(),Ne(ye,{key:De,size:"small",color:C(be.type)},{default:se(()=>[$e(_e(Fe),1)]),_:2},1032,["color"]))),128)),be.changes.length>2?(z(),q("span",Yyt," +"+_e(be.changes.length-2)+"项更新 ",1)):ge("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),A("div",Xyt,[A("div",Zyt,[A("h3",Jyt,[R(He(ZA),{class:"card-icon"}),te[14]||(te[14]=$e(" 猜你喜欢 ",-1))]),R(Z,{modelValue:a.value,"onUpdate:modelValue":te[1]||(te[1]=be=>a.value=be),size:"small",style:{width:"80px"},onChange:$},{default:se(()=>[R(J,{value:"hot"},{default:se(()=>[...te[15]||(te[15]=[$e("热门",-1)])]),_:1}),R(J,{value:"trending"},{default:se(()=>[...te[16]||(te[16]=[$e("趋势",-1)])]),_:1}),R(J,{value:"random"},{default:se(()=>[...te[17]||(te[17]=[$e("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),A("div",Qyt,[A("div",e1t,[(z(!0),q(Tt,null,Kt(p.value,be=>(z(),q("div",{key:be.id,class:"recommend-item",onClick:Fe=>L(be)},[A("div",n1t,[A("div",{class:"poster-placeholder",style:Ee({backgroundColor:x(be.type)})},_e(be.title.substring(0,2)),5),A("div",r1t,[R(He(Ha),{class:"play-icon"})]),be.trending?(z(),q("div",i1t," 🔥 热门 ")):ge("",!0)]),A("div",o1t,[A("h4",s1t,_e(be.title),1),A("div",a1t,[R(ye,{size:"small",color:_(be.type)},{default:se(()=>[$e(_e(be.type),1)]),_:2},1032,["color"]),A("span",l1t,[R(He(LU)),$e(" "+_e(be.rating),1)])]),A("div",u1t,[(z(!0),q(Tt,null,Kt(be.tags.slice(0,2),Fe=>(z(),Ne(ye,{key:Fe,size:"mini",color:"gray"},{default:se(()=>[$e(_e(Fe),1)]),_:2},1024))),128))])])],8,t1t))),128))])])]),A("div",c1t,[A("div",d1t,[A("h3",f1t,[R(He(Ope),{class:"card-icon"}),te[18]||(te[18]=$e(" 热搜关键词 ",-1))]),R(ce,{onClick:U,size:"small"},{default:se(()=>[...te[19]||(te[19]=[$e("更多",-1)])]),_:1})]),A("div",h1t,[A("div",p1t,[(z(!0),q(Tt,null,Kt(m.value,(be,Fe)=>(z(),q("div",{key:be.keyword,class:"keyword-item",onClick:De=>O(be)},[A("div",{class:ne(["keyword-rank",{"top-three":Fe<3}])},_e(Fe+1),3),A("div",m1t,[A("span",g1t,_e(be.keyword),1),A("div",y1t,[A("span",b1t,_e(S(be.count)),1),A("span",{class:ne(["keyword-trend",be.trend])},[be.trend==="up"?(z(),Ne(He(gj),{key:0})):be.trend==="down"?(z(),Ne(He(mj),{key:1})):(z(),Ne(He(og),{key:2}))],2)])])],8,v1t))),128))])])]),A("div",S1t,[A("div",k1t,[A("h3",w1t,[R(He(qU),{class:"card-icon"}),te[20]||(te[20]=$e(" 系统状态 ",-1))])]),A("div",C1t,[A("div",x1t,[A("div",_1t,[A("div",T1t,[R(He(qu))]),te[21]||(te[21]=A("div",{class:"status-info"},[A("div",{class:"status-label"},"播放服务"),A("div",{class:"status-value"},"正常")],-1))]),A("div",E1t,[A("div",I1t,[R(He(qu))]),te[22]||(te[22]=A("div",{class:"status-info"},[A("div",{class:"status-label"},"数据同步"),A("div",{class:"status-value"},"正常")],-1))]),A("div",A1t,[A("div",L1t,[R(He(Hf))]),te[23]||(te[23]=A("div",{class:"status-info"},[A("div",{class:"status-label"},"存储空间"),A("div",{class:"status-value"},"85%")],-1))]),A("div",P1t,[A("div",$1t,[R(He(qu))]),te[24]||(te[24]=A("div",{class:"status-info"},[A("div",{class:"status-label"},"网络连接"),A("div",{class:"status-value"},"良好")],-1))])])])]),R(Syt)])])]),R(Re,{visible:F.value,"onUpdate:visible":te[2]||(te[2]=be=>F.value=be),title:"更新日志",width:"800px",footer:!1,onCancel:X},{default:se(()=>[A("div",M1t,[R(Ce,null,{default:se(()=>[(z(!0),q(Tt,null,Kt(j.value,be=>(z(),Ne(ie,{key:be.id,"dot-color":b(be.type)},{default:se(()=>[A("div",R1t,[A("div",D1t,[A("span",O1t,_e(be.version),1),A("span",N1t,_e(E(be.date)),1),R(ye,{size:"small",color:C(be.type),class:"type-tag"},{default:se(()=>[$e(_e(w()[be.type]?.label||be.type),1)]),_:2},1032,["color"])]),A("h4",B1t,_e(be.title),1),A("p",F1t,_e(be.description),1),A("div",j1t,[(z(!0),q(Tt,null,Kt(be.changes,(Fe,De)=>(z(),Ne(ye,{key:De,size:"small",color:C(be.type),class:"change-tag"},{default:se(()=>[$e(_e(Fe),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),R(Re,{visible:M.value,"onUpdate:visible":te[3]||(te[3]=be=>M.value=be),title:"热搜关键词",width:"600px",footer:!1,onCancel:G},{default:se(()=>[A("div",V1t,[A("div",z1t,[(z(!0),q(Tt,null,Kt(V.value,(be,Fe)=>(z(),q("div",{key:be.keyword,class:"keyword-item",onClick:De=>O(be)},[A("div",{class:ne(["keyword-rank",{"top-three":Fe<3}])},_e(Fe+1),3),A("div",H1t,[A("span",W1t,_e(be.keyword),1),A("div",G1t,[A("span",K1t,_e(S(be.count)),1),A("span",{class:ne(["keyword-trend",be.trend])},[be.trend==="up"?(z(),Ne(He(gj),{key:0})):be.trend==="down"?(z(),Ne(He(mj),{key:1})):(z(),Ne(He(og),{key:2}))],2)])])],8,U1t))),128))])])]),_:1},8,["visible"])],64)}}},Y1t=zn(q1t,[["__scopeId","data-v-217d9b8b"]]),X1t={class:"tag-container"},Z1t={class:"search-section"},J1t={class:"search-row"},Q1t={class:"source-count"},ebt={class:"sources-section"},tbt={key:0,class:"empty-state"},nbt={key:1,class:"button-container"},rbt={class:"source-info"},ibt={class:"source-name"},obt={key:0,class:"current-icon"},sbt={class:"dialog-footer"},abt={class:"footer-left"},lbt={class:"footer-right"},ubt={__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=ae(""),a=ae({new_site:{}}),s=ae(null),l=ae(!1),c=E=>{const S=E.match(/\[(.*?)\]/);return S?S[1]:null},f={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=N(()=>{const E=n.sites.filter(I=>I.type===4).map(I=>c(I.name)).filter(I=>I!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?o.value="":f[E]?o.value=f[E]:o.value=`[${E}]`,l.value=!1},m=N(()=>{const E=o.value.toLowerCase();return n.sites.filter(S=>S.type===4).filter(S=>S.name.toLowerCase().includes(E))}),y=N(()=>window.innerWidth<768?"95%":"700px"),b=E=>{a.value.new_site=E,r("change-rule",E)},w=()=>{r("confirm-clear"),r("update:visible",!1)},C=()=>{a.value.new_site.key&&(r("confirm-change",a.value.new_site),r("update:visible",!1))},x=()=>{r("update:visible",!1)},_=()=>{nn(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return bt(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{_()},100)}),bt(m,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&m.value.some(S=>S.key===n.currentSiteKey)&&setTimeout(()=>{_()},50)}),(E,S)=>{const I=ke("a-button"),$=ke("a-modal"),L=ke("a-input");return z(),q(Tt,null,[R($,{visible:l.value,title:`TAG [${h.value.length}]`,width:y.value,class:"tag_dialog","append-to-body":"",onCancel:S[1]||(S[1]=O=>l.value=!1)},{default:se(()=>[A("div",X1t,[R(I,{type:"secondary",class:"tag-item",onClick:S[0]||(S[0]=O=>p("全部"))},{default:se(()=>[...S[4]||(S[4]=[$e(" 全部 ",-1)])]),_:1}),(z(!0),q(Tt,null,Kt(h.value,(O,F)=>(z(),Ne(I,{key:F,type:"secondary",class:"tag-item",onClick:M=>p(O)},{default:se(()=>[$e(_e(O),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),R($,{visible:e.visible,title:e.title,width:y.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":w},{footer:se(()=>[A("div",sbt,[A("div",abt,[R(I,{type:"outline",status:"danger",onClick:w},{default:se(()=>[R(He(nh)),S[7]||(S[7]=$e(" 清除缓存 ",-1))]),_:1})]),A("div",lbt,[R(I,{onClick:x},{default:se(()=>[...S[8]||(S[8]=[$e("取消",-1)])]),_:1}),R(I,{type:"primary",onClick:C,disabled:!a.value.new_site.key},{default:se(()=>[...S[9]||(S[9]=[$e(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:se(()=>[A("div",Z1t,[A("div",J1t,[R(L,{modelValue:o.value,"onUpdate:modelValue":S[2]||(S[2]=O=>o.value=O),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:se(()=>[R(He(rg))]),_:1},8,["modelValue"]),R(I,{type:"primary",status:"success",class:"tag-button",onClick:S[3]||(S[3]=O=>l.value=!0)},{default:se(()=>[...S[5]||(S[5]=[$e(" TAG ",-1)])]),_:1})]),A("div",Q1t," 共 "+_e(m.value.length)+" 个可用数据源 ",1)]),A("div",ebt,[m.value.length===0?(z(),q("div",tbt,[R(He(nU)),S[6]||(S[6]=A("p",null,"未找到匹配的数据源",-1))])):(z(),q("div",nbt,[(z(!0),q(Tt,null,Kt(m.value,(O,F)=>(z(),q("div",{key:O.key||F,ref_for:!0,ref:O.key===e.currentSiteKey?"currentSourceRef":null,class:ne(["btn-item",{selected:a.value.new_site.key===O.key,"current-source":O.key===e.currentSiteKey}])},[R(I,{type:"primary",status:a.value.new_site.key===O.key?"success":"primary",size:"medium",onClick:M=>b(O),class:ne(["source-button",{"current-source-button":O.key===e.currentSiteKey}])},{default:se(()=>[A("div",rbt,[A("div",ibt,_e(O.name),1),O.key===e.currentSiteKey?(z(),q("div",obt,[R(He(bh))])):ge("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},cbt=zn(ubt,[["__scopeId","data-v-105ac4df"]]),dbt={class:"breadcrumb-container"},fbt={class:"header-left"},hbt={class:"navigation-title"},pbt={class:"header-center"},vbt={class:"header-right"},mbt={class:"push-modal-content"},gbt={class:"push-description"},ybt={class:"push-hint"},bbt={class:"hint-item"},Sbt={class:"hint-item"},kbt={__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=ae(""),o=ae(!1),a=ae(""),s=()=>{n("handleOpenForm")},l=()=>{n("refreshPage")},c=y=>{const b=typeof y=="string"?y:r.value;b&&typeof b=="string"&&b.trim()&&n("onSearch",b.trim())},f=()=>{o.value=!0,a.value=""},h=()=>{Ct.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){Ct.error("推送内容不能为空");return}const y=a.value.split(` `).map(w=>w.trim()).filter(w=>w);if(y.length===0){Ct.error("请输入有效的推送内容");return}const b=y[0];y.length>1&&Ct.info(`检测到多行输入,将使用第一行内容: ${b}`),n("handlePush",b),o.value=!1,a.value=""},m=()=>{o.value=!1,a.value=""};return(y,b)=>{const w=ke("icon-apps"),C=ke("a-button"),x=ke("icon-refresh"),_=ke("a-input-search"),E=ke("icon-send"),S=ke("icon-thunderbolt"),I=ke("a-textarea"),$=ke("icon-info-circle"),L=ke("icon-bulb"),O=ke("a-modal");return z(),q(Tt,null,[A("div",dbt,[A("div",fbt,[A("span",hbt,_e(e.navigation_title),1),R(C,{type:"outline",status:"success",shape:"round",onClick:s},{icon:se(()=>[R(w)]),default:se(()=>[$e(_e(e.now_site_title),1)]),_:1}),R(C,{type:"outline",status:"success",shape:"round",onClick:l},{icon:se(()=>[R(x)]),default:se(()=>[...b[3]||(b[3]=[$e("重载源",-1)])]),_:1})]),A("div",pbt,[R(_,{modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=F=>r.value=F),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),A("div",vbt,[R(C,{type:"outline",status:"success",shape:"round",onClick:f},{icon:se(()=>[R(E)]),default:se(()=>[...b[4]||(b[4]=[$e("推送",-1)])]),_:1}),R(C,{type:"outline",status:"success",shape:"round",onClick:h},{icon:se(()=>[R(S)]),default:se(()=>[...b[5]||(b[5]=[$e("全局动作",-1)])]),_:1}),Qe(y.$slots,"default",{},void 0,!0)])]),R(O,{visible:o.value,"onUpdate:visible":b[2]||(b[2]=F=>o.value=F),title:"推送内容",width:600,onOk:p,onCancel:m,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:se(()=>[A("div",mbt,[A("div",gbt,[R(E,{class:"push-icon"}),b[6]||(b[6]=A("span",null,"请输入要推送的内容(vod_id):",-1))]),R(I,{modelValue:a.value,"onUpdate:modelValue":b[1]||(b[1]=F=>a.value=F),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),A("div",ybt,[A("div",bbt,[R($,{class:"hint-icon"}),b[7]||(b[7]=A("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),A("div",Sbt,[R(L,{class:"hint-icon"}),b[8]||(b[8]=A("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"])],64)}}},wbt=zn(kbt,[["__scopeId","data-v-20e05b46"]]);function H0e(e,t){return function(){return e.apply(t,arguments)}}const{toString:Cbt}=Object.prototype,{getPrototypeOf:iW}=Object,{iterator:FL,toStringTag:W0e}=Symbol,jL=(e=>t=>{const n=Cbt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qc=e=>(e=e.toLowerCase(),t=>jL(t)===e),VL=e=>t=>typeof t===e,{isArray:G1}=Array,m1=VL("undefined");function Ww(e){return e!==null&&!m1(e)&&e.constructor!==null&&!m1(e.constructor)&&Kl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G0e=Qc("ArrayBuffer");function xbt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G0e(e.buffer),t}const _bt=VL("string"),Kl=VL("function"),K0e=VL("number"),Gw=e=>e!==null&&typeof e=="object",Tbt=e=>e===!0||e===!1,W4=e=>{if(jL(e)!=="object")return!1;const t=iW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(W0e in e)&&!(FL in e)},Ebt=e=>{if(!Gw(e)||Ww(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ibt=Qc("Date"),Abt=Qc("File"),Lbt=Qc("Blob"),Pbt=Qc("FileList"),$bt=e=>Gw(e)&&Kl(e.pipe),Mbt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kl(e.append)&&((t=jL(e))==="formdata"||t==="object"&&Kl(e.toString)&&e.toString()==="[object FormData]"))},Rbt=Qc("URLSearchParams"),[Dbt,Obt,Nbt,Bbt]=["ReadableStream","Request","Response","Headers"].map(Qc),Fbt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kw(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),G1(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Em=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Y0e=e=>!m1(e)&&e!==Em;function IV(){const{caseless:e,skipUndefined:t}=Y0e(this)&&this||{},n={},r=(o,a)=>{const s=e&&q0e(n,a)||a;W4(n[s])&&W4(o)?n[s]=IV(n[s],o):W4(o)?n[s]=IV({},o):G1(o)?n[s]=o.slice():(!t||!m1(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(Kw(t,(o,a)=>{n&&Kl(o)?e[a]=H0e(o,n):e[a]=o},{allOwnKeys:r}),e),Vbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zbt=(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)},Ubt=(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&&iW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hbt=(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},Wbt=e=>{if(!e)return null;if(G1(e))return e;let t=e.length;if(!K0e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gbt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&iW(Uint8Array)),Kbt=(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])}},qbt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ybt=Qc("HTMLFormElement"),Xbt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Cse=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zbt=Qc("RegExp"),X0e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kw(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},Jbt=e=>{X0e(e,(t,n)=>{if(Kl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Kl(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+"'")})}})},Qbt=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return G1(e)?r(e):r(String(e).split(t)),n},eSt=()=>{},tSt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function nSt(e){return!!(e&&Kl(e.append)&&e[W0e]==="FormData"&&e[FL])}const rSt=e=>{const t=new Array(10),n=(r,o)=>{if(Gw(r)){if(t.indexOf(r)>=0)return;if(Ww(r))return r;if(!("toJSON"in r)){t[o]=r;const a=G1(r)?[]:{};return Kw(r,(s,l)=>{const c=n(s,o+1);!m1(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},iSt=Qc("AsyncFunction"),oSt=e=>e&&(Gw(e)||Kl(e))&&Kl(e.then)&&Kl(e.catch),Z0e=((e,t)=>e?setImmediate:t?((n,r)=>(Em.addEventListener("message",({source:o,data:a})=>{o===Em&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Em.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Kl(Em.postMessage)),sSt=typeof queueMicrotask<"u"?queueMicrotask.bind(Em):typeof process<"u"&&process.nextTick||Z0e,aSt=e=>e!=null&&Kl(e[FL]),Rt={isArray:G1,isArrayBuffer:G0e,isBuffer:Ww,isFormData:Mbt,isArrayBufferView:xbt,isString:_bt,isNumber:K0e,isBoolean:Tbt,isObject:Gw,isPlainObject:W4,isEmptyObject:Ebt,isReadableStream:Dbt,isRequest:Obt,isResponse:Nbt,isHeaders:Bbt,isUndefined:m1,isDate:Ibt,isFile:Abt,isBlob:Lbt,isRegExp:Zbt,isFunction:Kl,isStream:$bt,isURLSearchParams:Rbt,isTypedArray:Gbt,isFileList:Pbt,forEach:Kw,merge:IV,extend:jbt,trim:Fbt,stripBOM:Vbt,inherits:zbt,toFlatObject:Ubt,kindOf:jL,kindOfTest:Qc,endsWith:Hbt,toArray:Wbt,forEachEntry:Kbt,matchAll:qbt,isHTMLForm:Ybt,hasOwnProperty:Cse,hasOwnProp:Cse,reduceDescriptors:X0e,freezeMethods:Jbt,toObjectSet:Qbt,toCamelCase:Xbt,noop:eSt,toFiniteNumber:tSt,findKey:q0e,global:Em,isContextDefined:Y0e,isSpecCompliantForm:nSt,toJSONObject:rSt,isAsyncFn:iSt,isThenable:oSt,setImmediate:Z0e,asap:sSt,isIterable:aSt};function vr(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)}Rt.inherits(vr,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:Rt.toJSONObject(this.config),code:this.code,status:this.status}}});const J0e=vr.prototype,Q0e={};["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=>{Q0e[e]={value:e}});Object.defineProperties(vr,Q0e);Object.defineProperty(J0e,"isAxiosError",{value:!0});vr.from=(e,t,n,r,o,a)=>{const s=Object.create(J0e);Rt.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 vr.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 lSt=null;function AV(e){return Rt.isPlainObject(e)||Rt.isArray(e)}function eye(e){return Rt.endsWith(e,"[]")?e.slice(0,-2):e}function xse(e,t,n){return e?e.concat(t).map(function(o,a){return o=eye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function uSt(e){return Rt.isArray(e)&&!e.some(AV)}const cSt=Rt.toFlatObject(Rt,{},null,function(t){return/^is[A-Z]/.test(t)});function zL(e,t,n){if(!Rt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Rt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,C){return!Rt.isUndefined(C[w])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Rt.isSpecCompliantForm(t);if(!Rt.isFunction(o))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(Rt.isDate(b))return b.toISOString();if(Rt.isBoolean(b))return b.toString();if(!c&&Rt.isBlob(b))throw new vr("Blob is not supported. Use a Buffer instead.");return Rt.isArrayBuffer(b)||Rt.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,w,C){let x=b;if(b&&!C&&typeof b=="object"){if(Rt.endsWith(w,"{}"))w=r?w:w.slice(0,-2),b=JSON.stringify(b);else if(Rt.isArray(b)&&uSt(b)||(Rt.isFileList(b)||Rt.endsWith(w,"[]"))&&(x=Rt.toArray(b)))return w=eye(w),x.forEach(function(E,S){!(Rt.isUndefined(E)||E===null)&&t.append(s===!0?xse([w],S,a):s===null?w:w+"[]",f(E))}),!1}return AV(b)?!0:(t.append(xse(C,w,a),f(b)),!1)}const p=[],m=Object.assign(cSt,{defaultVisitor:h,convertValue:f,isVisitable:AV});function y(b,w){if(!Rt.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(b),Rt.forEach(b,function(x,_){(!(Rt.isUndefined(x)||x===null)&&o.call(t,x,Rt.isString(_)?_.trim():_,w,m))===!0&&y(x,w?w.concat(_):[_])}),p.pop()}}if(!Rt.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oW(e,t){this._pairs=[],e&&zL(e,this,t)}const tye=oW.prototype;tye.append=function(t,n){this._pairs.push([t,n])};tye.toString=function(t){const n=t?function(r){return t.call(this,r,_se)}:_se;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function dSt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nye(e,t,n){if(!t)return e;const r=n&&n.encode||dSt;Rt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Rt.isURLSearchParams(t)?t.toString():new oW(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Tse{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){Rt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fSt=typeof URLSearchParams<"u"?URLSearchParams:oW,hSt=typeof FormData<"u"?FormData:null,pSt=typeof Blob<"u"?Blob:null,vSt={isBrowser:!0,classes:{URLSearchParams:fSt,FormData:hSt,Blob:pSt},protocols:["http","https","file","blob","url","data"]},sW=typeof window<"u"&&typeof document<"u",LV=typeof navigator=="object"&&navigator||void 0,mSt=sW&&(!LV||["ReactNative","NativeScript","NS"].indexOf(LV.product)<0),gSt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ySt=sW&&window.location.href||"http://localhost",bSt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sW,hasStandardBrowserEnv:mSt,hasStandardBrowserWebWorkerEnv:gSt,navigator:LV,origin:ySt},Symbol.toStringTag,{value:"Module"})),Va={...bSt,...vSt};function SSt(e,t){return zL(e,new Va.classes.URLSearchParams,{visitor:function(n,r,o,a){return Va.isNode&&Rt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function kSt(e){return Rt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wSt(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&Rt.isArray(o)?o.length:s,c?(Rt.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Rt.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Rt.isArray(o[s])&&(o[s]=wSt(o[s])),!l)}if(Rt.isFormData(e)&&Rt.isFunction(e.entries)){const n={};return Rt.forEachEntry(e,(r,o)=>{t(kSt(r),o,n,0)}),n}return null}function CSt(e,t,n){if(Rt.isString(e))try{return(t||JSON.parse)(e),Rt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qw={transitional:rye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Rt.isObject(t);if(a&&Rt.isHTMLForm(t)&&(t=new FormData(t)),Rt.isFormData(t))return o?JSON.stringify(iye(t)):t;if(Rt.isArrayBuffer(t)||Rt.isBuffer(t)||Rt.isStream(t)||Rt.isFile(t)||Rt.isBlob(t)||Rt.isReadableStream(t))return t;if(Rt.isArrayBufferView(t))return t.buffer;if(Rt.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 SSt(t,this.formSerializer).toString();if((l=Rt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return zL(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),CSt(t)):t}],transformResponse:[function(t){const n=this.transitional||qw.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Rt.isResponse(t)||Rt.isReadableStream(t))return t;if(t&&Rt.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"?vr.from(l,vr.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:Va.classes.FormData,Blob:Va.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Rt.forEach(["delete","get","head","post","put","patch"],e=>{qw.headers[e]={}});const xSt=Rt.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"]),_St=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]&&xSt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ese=Symbol("internals");function e2(e){return e&&String(e).trim().toLowerCase()}function G4(e){return e===!1||e==null?e:Rt.isArray(e)?e.map(G4):String(e)}function TSt(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 ESt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function EB(e,t,n,r,o){if(Rt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Rt.isString(t)){if(Rt.isString(r))return t.indexOf(r)!==-1;if(Rt.isRegExp(r))return r.test(t)}}function ISt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ASt(e,t){const n=Rt.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 ql=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,f){const h=e2(c);if(!h)throw new Error("header name must be a non-empty string");const p=Rt.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)=>Rt.forEach(l,(f,h)=>a(f,h,c));if(Rt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Rt.isString(t)&&(t=t.trim())&&!ESt(t))s(_St(t),n);else if(Rt.isObject(t)&&Rt.isIterable(t)){let l={},c,f;for(const h of t){if(!Rt.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[f=h[0]]=(c=l[f])?Rt.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=e2(t),t){const r=Rt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return TSt(o);if(Rt.isFunction(n))return n.call(this,o,r);if(Rt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=e2(t),t){const r=Rt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||EB(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=e2(s),s){const l=Rt.findKey(r,s);l&&(!n||EB(r,r[l],l,n))&&(delete r[l],o=!0)}}return Rt.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||EB(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Rt.forEach(this,(o,a)=>{const s=Rt.findKey(r,a);if(s){n[s]=G4(o),delete n[a];return}const l=t?ISt(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 Rt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Rt.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[Ese]=this[Ese]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=e2(s);r[l]||(ASt(o,s),r[l]=!0)}return Rt.isArray(t)?t.forEach(a):a(t),this}};ql.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Rt.reduceDescriptors(ql.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Rt.freezeMethods(ql);function IB(e,t){const n=this||qw,r=t||n,o=ql.from(r.headers);let a=r.data;return Rt.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function oye(e){return!!(e&&e.__CANCEL__)}function K1(e,t,n){vr.call(this,e??"canceled",vr.ERR_CANCELED,t,n),this.name="CanceledError"}Rt.inherits(K1,vr,{__CANCEL__:!0});function sye(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new vr("Request failed with status code "+n.status,[vr.ERR_BAD_REQUEST,vr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function LSt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PSt(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 xI=(e,t,n=3)=>{let r=0;const o=PSt(50,250);return $St(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)},Ise=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ase=e=>(...t)=>Rt.asap(()=>e(...t)),MSt=Va.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Va.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Va.origin),Va.navigator&&/(msie|trident)/i.test(Va.navigator.userAgent)):()=>!0,RSt=Va.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Rt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Rt.isString(r)&&s.push("path="+r),Rt.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 DSt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OSt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function aye(e,t,n){let r=!DSt(t);return e&&(r||n==!1)?OSt(e,t):t}const Lse=e=>e instanceof ql?{...e}:e;function dg(e,t){t=t||{};const n={};function r(f,h,p,m){return Rt.isPlainObject(f)&&Rt.isPlainObject(h)?Rt.merge.call({caseless:m},f,h):Rt.isPlainObject(h)?Rt.merge({},h):Rt.isArray(h)?h.slice():h}function o(f,h,p,m){if(Rt.isUndefined(h)){if(!Rt.isUndefined(f))return r(void 0,f,p,m)}else return r(f,h,p,m)}function a(f,h){if(!Rt.isUndefined(h))return r(void 0,h)}function s(f,h){if(Rt.isUndefined(h)){if(!Rt.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(Lse(f),Lse(h),p,!0)};return Rt.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,m=p(e[h],t[h],h);Rt.isUndefined(m)&&p!==l||(n[h]=m)}),n}const lye=e=>{const t=dg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ql.from(s),t.url=nye(aye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Rt.isFormData(n)){if(Va.hasStandardBrowserEnv||Va.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Rt.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(Va.hasStandardBrowserEnv&&(r&&Rt.isFunction(r)&&(r=r(t)),r||r!==!1&&MSt(t.url))){const c=o&&a&&RSt.read(a);c&&s.set(o,c)}return t},NSt=typeof XMLHttpRequest<"u",BSt=NSt&&function(e){return new Promise(function(n,r){const o=lye(e);let a=o.data;const s=ql.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=o,h,p,m,y,b;function w(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function x(){if(!C)return;const E=ql.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:E,config:e,request:C};sye(function(L){n(L),w()},function(L){r(L),w()},I),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new vr("Request aborted",vr.ECONNABORTED,e,C)),C=null)},C.onerror=function(S){const I=S&&S.message?S.message:"Network Error",$=new vr(I,vr.ERR_NETWORK,e,C);$.event=S||null,r($),C=null},C.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||rye;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new vr(S,I.clarifyTimeoutError?vr.ETIMEDOUT:vr.ECONNABORTED,e,C)),C=null},a===void 0&&s.setContentType(null),"setRequestHeader"in C&&Rt.forEach(s.toJSON(),function(S,I){C.setRequestHeader(I,S)}),Rt.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),l&&l!=="json"&&(C.responseType=o.responseType),f&&([m,b]=xI(f,!0),C.addEventListener("progress",m)),c&&C.upload&&([p,y]=xI(c),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(h=E=>{C&&(r(!E||E.type?new K1(null,e,C):E),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const _=LSt(o.url);if(_&&Va.protocols.indexOf(_)===-1){r(new vr("Unsupported protocol "+_+":",vr.ERR_BAD_REQUEST,e));return}C.send(a||null)})},FSt=(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 vr?h:new K1(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new vr(`timeout ${t} of ms exceeded`,vr.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=()=>Rt.asap(l),c}},jSt=function*(e,t){let n=e.byteLength;if(n{const o=VSt(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})},$se=64*1024,{isFunction:GT}=Rt,uye=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(Rt.global),{ReadableStream:Mse,TextEncoder:Rse}=Rt.global,Dse=(e,...t)=>{try{return!!e(...t)}catch{return!1}},USt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},uye,e),o=GT(t),a=GT(n),s=GT(r);if(!o)return!1;const l=o&>(Mse),c=o&&(typeof Rse=="function"?(b=>w=>b.encode(w))(new Rse):async b=>new Uint8Array(await new n(b).arrayBuffer())),f=a&&l&&Dse(()=>{let b=!1;const w=new n(Va.origin,{body:new Mse,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!w}),h=s&&l&&Dse(()=>Rt.isReadableStream(new r("").body)),p={stream:h&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!p[b]&&(p[b]=(w,C)=>{let x=w&&w[b];if(x)return x.call(w);throw new vr(`Response type '${b}' is not supported`,vr.ERR_NOT_SUPPORT,C)})});const m=async b=>{if(b==null)return 0;if(Rt.isBlob(b))return b.size;if(Rt.isSpecCompliantForm(b))return(await new n(Va.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Rt.isArrayBufferView(b)||Rt.isArrayBuffer(b))return b.byteLength;if(Rt.isURLSearchParams(b)&&(b=b+""),Rt.isString(b))return(await c(b)).byteLength},y=async(b,w)=>{const C=Rt.toFiniteNumber(b.getContentLength());return C??m(w)};return async b=>{let{url:w,method:C,data:x,signal:_,cancelToken:E,timeout:S,onDownloadProgress:I,onUploadProgress:$,responseType:L,headers:O,withCredentials:F="same-origin",fetchOptions:M}=lye(b);L=L?(L+"").toLowerCase():"text";let j=FSt([_,E&&E.toAbortSignal()],S),V=null;const W=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let U;try{if($&&f&&C!=="get"&&C!=="head"&&(U=await y(O,x))!==0){let J=new n(w,{method:"POST",body:x,duplex:"half"}),Z;if(Rt.isFormData(x)&&(Z=J.headers.get("content-type"))&&O.setContentType(Z),J.body){const[ce,ye]=Ise(U,xI(Ase($)));x=Pse(J.body,$se,ce,ye)}}Rt.isString(F)||(F=F?"include":"omit");const X=a&&"credentials"in n.prototype,G={...M,signal:j,method:C.toUpperCase(),headers:O.normalize().toJSON(),body:x,duplex:"half",credentials:X?F:void 0};V=a&&new n(w,G);let Y=await(a?t(V,M):t(w,G));const ee=h&&(L==="stream"||L==="response");if(h&&(I||ee&&W)){const J={};["status","statusText","headers"].forEach(ie=>{J[ie]=Y[ie]});const Z=Rt.toFiniteNumber(Y.headers.get("content-length")),[ce,ye]=I&&Ise(Z,xI(Ase(I),!0))||[];Y=new r(Pse(Y.body,$se,ce,()=>{ye&&ye(),W&&W()}),J)}L=L||"text";let te=await p[Rt.findKey(p,L)||"text"](Y,b);return!ee&&W&&W(),await new Promise((J,Z)=>{sye(J,Z,{data:te,headers:ql.from(Y.headers),status:Y.status,statusText:Y.statusText,config:b,request:V})})}catch(X){throw W&&W(),X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)?Object.assign(new vr("Network Error",vr.ERR_NETWORK,b,V),{cause:X.cause||X}):vr.from(X,X&&X.code,b,V)}}},HSt=new Map,cye=e=>{let t=Rt.merge.call({skipUndefined:!0},uye,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=HSt;for(;l--;)c=a[l],f=h.get(c),f===void 0&&h.set(c,f=l?new Map:USt(t)),h=f;return f};cye();const PV={http:lSt,xhr:BSt,fetch:{get:cye}};Rt.forEach(PV,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ose=e=>`- ${e}`,WSt=e=>Rt.isFunction(e)||e===null||e===!1,dye={getAdapter:(e,t)=>{e=Rt.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(Ose).join(` `):" "+Ose(s[0]):"as no adapter specified";throw new vr("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:PV};function AB(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new K1(null,e)}function Nse(e){return AB(e),e.headers=ql.from(e.headers),e.data=IB.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dye.getAdapter(e.adapter||qw.adapter,e)(e).then(function(r){return AB(e),r.data=IB.call(e,e.transformResponse,r),r.headers=ql.from(r.headers),r},function(r){return oye(r)||(AB(e),r&&r.response&&(r.response.data=IB.call(e,e.transformResponse,r.response),r.response.headers=ql.from(r.response.headers))),Promise.reject(r)})}const fye="1.12.0",UL={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{UL[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bse={};UL.transitional=function(t,n,r){function o(a,s){return"[Axios v"+fye+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new vr(o(s," has been removed"+(n?" in "+n:"")),vr.ERR_DEPRECATED);return n&&!Bse[s]&&(Bse[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}};UL.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function GSt(e,t,n){if(typeof e!="object")throw new vr("options must be an object",vr.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 vr("option "+a+" must be "+c,vr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vr("Unknown option "+a,vr.ERR_BAD_OPTION)}}const K4={assertOptions:GSt,validators:UL},vd=K4.validators;let Gm=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Tse,response:new Tse}}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=dg(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&K4.assertOptions(r,{silentJSONParsing:vd.transitional(vd.boolean),forcedJSONParsing:vd.transitional(vd.boolean),clarifyTimeoutError:vd.transitional(vd.boolean)},!1),o!=null&&(Rt.isFunction(o)?n.paramsSerializer={serialize:o}:K4.assertOptions(o,{encode:vd.function,serialize:vd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),K4.assertOptions(n,{baseUrl:vd.spelling("baseURL"),withXsrfToken:vd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Rt.merge(a.common,a[n.method]);a&&Rt.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=ql.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let h,p=0,m;if(!c){const b=[Nse.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 K1(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 hye(function(o){t=o}),cancel:t}}};function qSt(e){return function(n){return e.apply(null,n)}}function YSt(e){return Rt.isObject(e)&&e.isAxiosError===!0}const $V={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($V).forEach(([e,t])=>{$V[t]=e});function pye(e){const t=new Gm(e),n=H0e(Gm.prototype.request,t);return Rt.extend(n,Gm.prototype,t,{allOwnKeys:!0}),Rt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return pye(dg(e,o))},n}const Ri=pye(qw);Ri.Axios=Gm;Ri.CanceledError=K1;Ri.CancelToken=KSt;Ri.isCancel=oye;Ri.VERSION=fye;Ri.toFormData=zL;Ri.AxiosError=vr;Ri.Cancel=Ri.CanceledError;Ri.all=function(t){return Promise.all(t)};Ri.spread=qSt;Ri.isAxiosError=YSt;Ri.mergeConfig=dg;Ri.AxiosHeaders=ql;Ri.formToJSON=e=>iye(Rt.isHTMLForm(e)?new FormData(e):e);Ri.getAdapter=dye.getAdapter;Ri.HttpStatusCode=$V;Ri.default=Ri;const{Axios:XSt,AxiosError:ZSt,CanceledError:JSt,isCancel:QSt,CancelToken:e2t,VERSION:t2t,all:n2t,Cancel:r2t,isAxiosError:i2t,spread:o2t,toFormData:s2t,AxiosHeaders:a2t,HttpStatusCode:l2t,formToJSON:u2t,getAdapter:c2t,mergeConfig:d2t}=Ri,f2t=Object.freeze(Object.defineProperty({__proto__:null,Axios:XSt,AxiosError:ZSt,AxiosHeaders:a2t,Cancel:r2t,CancelToken:e2t,CanceledError:JSt,HttpStatusCode:l2t,VERSION:t2t,all:n2t,default:Ri,formToJSON:u2t,getAdapter:c2t,isAxiosError:i2t,isCancel:QSt,mergeConfig:d2t,spread:o2t,toFormData:s2t},Symbol.toStringTag,{value:"Module"})),LB={BASE_URL:"http://localhost:5707",TIMEOUT:3e4,HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},aW={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},HL={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},h2t={SUCCESS:200},vye={DEFAULT_PAGE:1},lW=Ri.create({baseURL:LB.BASE_URL,timeout:LB.TIMEOUT,headers:LB.HEADERS});lW.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)));lW.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!==h2t.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 lW({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},pv=(e,t={})=>WL(e,{method:"GET",params:t}),mye=(e,t={})=>WL(e,{method:"POST",data:t}),p2t=(e,t={})=>WL(e,{method:"PUT",data:t}),v2t=(e,t={})=>WL(e,{method:"DELETE",params:t}),Ig=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},tv=e=>{const t=encodeURIComponent(e);return`${aW.MODULE}/${t}`},q1=async(e,t={})=>{try{return(await Ri.get(e,{params:t,timeout:3e4,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},m2t=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:o}=t,a={filter:n},s=Ig(r);return s&&(a.extend=s),o?q1(o,a):pv(tv(e),a)},g2t=async(e,t)=>{const{t:n,pg:r=vye.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:HL.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=Ig(a);return c&&(l.extend=c),s?q1(s,l):pv(tv(e),l)},y2t=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:HL.DETAIL,ids:n},s=Ig(r);return s&&(a.extend=s),o?q1(o,a):pv(tv(e),a)},gye=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=Ig(o);return l&&(s.extend=l),a?q1(a,s):pv(tv(e),s)},b2t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await gye(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||"未知错误")}}},S2t=async(e,t)=>{const{wd:n,pg:r=vye.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=Ig(o);return l&&(s.extend=l),a?q1(a,s):pv(tv(e),s)},yye=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:HL.ACTION,action:n,...a},l=Ig(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 Ri.get(o,{timeout:3e4,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",f.data),f.data}else{const f=await Ri.post(o,s,{timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}});return console.log("API响应 (POST):",f.data),f.data}console.log("使用代理方式调用:",tv(e),s);const c=await mye(tv(e),s);return console.log("代理响应:",c),c},k2t=async(e,t,n)=>{const r={refresh:"1"},o=Ig(t);return o&&(r.extend=o),n?q1(n,r):pv(tv(e),r)},w2t=e=>`${aW.PARSE}/${e}`,C2t=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(w2t(e),s)},x2t=e=>{try{return btoa(unescape(encodeURIComponent(e)))}catch(t){return console.error("Base64编码失败:",t),e}},_2t=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return x2t(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},up=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),T2t=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},E2t={NORMAL:"normal"},I2t=()=>({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:E2t.NORMAL}),A2t=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),L2t=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:""});class P2t{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!up(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 m2t(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(!up(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=_2t(a)),l&&(h.extend=l),s&&(h.apiUrl=s);const p=await g2t(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(!up(t))throw new Error("无效的模块名称");if(!T2t(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 y2t(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(!up(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 S2t(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(!up(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 gye(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 C2t(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(!up(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 b2t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!up(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 yye(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(!up(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=await k2t(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=I2t();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=A2t();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=`${aW.PROXY}/${e}`;return t?`${n}/${t}`:n},$2t=async(e,t="",n={})=>{const r=GL(e,t);return pv(r,n)},M2t=async(e,t="",n={})=>{const r=GL(e,t);return mye(r,n)},R2t=async(e,t="",n={})=>{const r=GL(e,t);return p2t(r,n)},D2t=async(e,t="",n={})=>{const r=GL(e,t);return v2t(r,n)},O2t=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return $2t(e,t,o);case"POST":return M2t(e,t,a);case"PUT":return R2t(e,t,a);case"DELETE":return D2t(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};class N2t{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 Ri.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 O2t(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=L2t();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{Td.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await Td.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 Td.getConfigStatus()}async setConfigUrl(t){try{const n=await Td.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return Td.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}}const Oa=new B2t,F2t={key:0,class:"filter-section"},j2t={class:"filter-content"},V2t={class:"filter-header-with-reset"},z2t={class:"filter-group-row"},U2t={class:"filter-group-title"},H2t={class:"filter-options-container"},W2t={class:"filter-options"},G2t={__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=N(()=>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=ke("a-button"),p=ke("a-tag");return e.filters?(z(),q("div",F2t,[R(Xo,{name:"collapse"},{default:se(()=>[Dr(A("div",j2t,[A("div",V2t,[o.value?(z(),Ne(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:se(()=>[R(He(nh))]),_:1})):ge("",!0)]),(z(!0),q(Tt,null,Kt(e.filters,m=>(z(),q("div",{key:m.key,class:"filter-group"},[A("div",z2t,[A("div",U2t,_e(m.name),1),A("div",H2t,[A("div",W2t,[(z(!0),q(Tt,null,Kt(m.value,y=>(z(),Ne(p,{key:y.v,color:a(m.key,y.v)?"green":"",checkable:!0,checked:a(m.key,y.v),onCheck:b=>s(m.key,y.v,y.n),class:"filter-option-tag"},{default:se(()=>[$e(_e(y.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Eo,e.visible]])]),_:1})])):ge("",!0)}}},K2t=zn(G2t,[["__scopeId","data-v-90bc92fe"]]),q2t={class:"category-nav-container"},Y2t=["onClick"],X2t={class:"category-name"},Z2t={__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=ae(n.activeKey||o()),s=ae(null),l=ae({});let c=null;bt(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const C=n.activeKey||o();a.value!==C&&(a.value=C,n.activeKey||f(C))},{immediate:!0}),bt(a,(C,x)=>{x&&l.value[x]&&(l.value[x]=!1)});const f=C=>{a.value=C,r("tab-change",C)},h=C=>{p(C)&&(l.value[C]=!l.value[C])},p=C=>{const x=n.filters[C];return x&&Object.keys(x).length>0},m=C=>n.filters[C]||null,y=C=>{r("toggle-filter",C)},b=()=>{r("reset-filters")},w=()=>{r("open-category-modal")};return qt(()=>{const C=s.value;if(!C)return;const x=C.querySelector(".arco-tabs-nav-tab-list");x&&(c=_=>{Math.abs(_.deltaY)>Math.abs(_.deltaX)&&(x.scrollLeft+=_.deltaY,_.preventDefault())},x.addEventListener("wheel",c,{passive:!1}))}),uo(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&c&&x.removeEventListener("wheel",c)}),(C,x)=>{const _=ke("a-tab-pane"),E=ke("a-tabs");return z(),q("div",q2t,[A("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[R(E,{"active-key":a.value,"onUpdate:activeKey":x[0]||(x[0]=S=>a.value=S),class:"category-tabs",type:"line",size:"large",position:"top",editable:!1,onChange:f},{default:se(()=>[e.hasRecommendVideos?(z(),Ne(_,{key:"recommendTuijian404"},{title:se(()=>[...x[1]||(x[1]=[A("span",null,"推荐",-1)])]),_:1})):ge("",!0),(z(!0),q(Tt,null,Kt(e.classList?.class||[],S=>(z(),Ne(_,{key:S.type_id},{title:se(()=>[A("div",{class:"category-tab-title",onClick:lo(I=>S.type_id===a.value&&p(S.type_id)?h(S.type_id):f(S.type_id),["stop"])},[A("span",X2t,_e(S.type_name),1),S.type_id===a.value&&p(S.type_id)?(z(),Ne(He(RU),{key:0,class:ne(["filter-icon",{"filter-icon-active":l.value[S.type_id]}])},null,8,["class"])):ge("",!0)],8,Y2t)]),_:2},1024))),128))]),_:1},8,["active-key"]),A("div",{class:"category-manage",onClick:w},[R(He(Mpe))])],512),m(a.value)&&l.value[a.value]?(z(),Ne(K2t,{key:0,filters:m(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:y,onResetFilters:b},null,8,["filters","selectedFilters"])):ge("",!0)])}}},J2t=zn(Z2t,[["__scopeId","data-v-191fd1a8"]]),Q2t="modulepreload",ekt=function(e){return"/apps/drplayer/"+e},Fse={},jl=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=ekt(h),h in Fse)return;Fse[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":Q2t,p||(y.as="script"),y.crossOrigin="",y.href=h,c&&y.setAttribute("nonce",c),document.head.appendChild(y),p)return new Promise((b,w)=>{y.addEventListener("load",b),y.addEventListener("error",()=>w(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)})},tkt={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=ae(!1),r=ae(!1),o=()=>{r.value=window.innerWidth<=768},a=N(()=>{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=N(()=>{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 bt(()=>e.visible,p=>{p?(t("open"),o(),nn(()=>{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()}},nkt={key:1,class:"action-dialog-header"},rkt={class:"action-dialog-title"},ikt={key:2,class:"action-dialog-footer"};function okt(e,t,n,r,o,a){return z(),Ne(Sg,{to:"body"},[R(Xo,{name:"action-mask",appear:""},{default:se(()=>[n.visible?(z(),q("div",{key:0,class:ne(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ee({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[R(Xo,{name:"action-dialog",appear:""},{default:se(()=>[n.visible&&!r.isClosing?(z(),q("div",{key:0,class:ne(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:Ee(r.dialogStyle),onClick:t[1]||(t[1]=lo(()=>{},["stop"]))},[t[4]||(t[4]=A("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(z(),q("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[A("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):ge("",!0),n.title||e.$slots.header?(z(),q("div",nkt,[Qe(e.$slots,"header",{},()=>[A("h3",rkt,_e(n.title),1)],!0)])):ge("",!0),A("div",{class:"action-dialog-content",style:Ee(r.contentStyle)},[Qe(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(z(),q("div",ikt,[Qe(e.$slots,"footer",{},void 0,!0)])):ge("",!0)],6)):ge("",!0)]),_:3})],6)):ge("",!0)]),_:3})])}const Qd=zn(tkt,[["render",okt],["__scopeId","data-v-b7e5717e"]]),Nr={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help"},Hy={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},kr={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Tu=e=>e==null?kr.OK_CANCEL:Object.values(kr).includes(e)?e:kr.CUSTOM,Wy=(e,t,n=null)=>({type:e,message:t,details:n}),uW=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw Wy(Hy.PARSE_ERROR,"无法解析Action配置",t)}},bye=e=>{if(!e||typeof e!="object")throw Wy(Hy.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw Wy(Hy.VALIDATION_ERROR,"actionId是必需的");if(!Object.values(Nr).includes(e.type))throw Wy(Hy.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},Up=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),[]}},Sye=(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)}`},kye=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},skt=lv(()=>jl(()=>Promise.resolve().then(()=>FRt),void 0)),akt=lv(()=>jl(()=>Promise.resolve().then(()=>ADt),void 0)),lkt=lv(()=>jl(()=>Promise.resolve().then(()=>EOt),void 0)),ukt=lv(()=>jl(()=>Promise.resolve().then(()=>_Nt),void 0)),ckt=lv(()=>jl(()=>Promise.resolve().then(()=>m7t),void 0)),dkt=lv(()=>jl(()=>Promise.resolve().then(()=>U7t),void 0)),fkt=lv(()=>jl(()=>Promise.resolve().then(()=>K9t),void 0)),hkt={name:"ActionRenderer",components:{ActionDialog:Qd,InputAction:skt,MultiInputAction:akt,MenuAction:lkt,SelectAction:ukt,MsgBoxAction:ckt,WebViewAction:dkt,HelpAction:fkt},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=ae(null),r=ae(null),o=ae(!1),a=ae(e.visible),s={[Nr.INPUT]:"InputAction",[Nr.EDIT]:"InputAction",[Nr.MULTI_INPUT]:"MultiInputAction",[Nr.MULTI_INPUT_X]:"MultiInputAction",[Nr.MENU]:"MenuAction",[Nr.SELECT]:"SelectAction",[Nr.MSGBOX]:"MsgBoxAction",[Nr.WEBVIEW]:"WebViewAction",[Nr.HELP]:"HelpAction"},l=N(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const I=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:I,parsedConfig:n.value}),I}),c=I=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",I),!I){n.value=null;return}const $=uW(I);console.log("ActionRenderer parseConfig 解析后的配置:",$),bye($),f($),n.value=$,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($){console.error("解析Action配置失败:",$),r.value=$,n.value=null}},f=I=>{const{actionId:$}=I},h=async I=>{const{actionId:$}=I;switch($){case"__self_search__":Yr("执行源内搜索","info"),t("special-action","self-search",I),y();break;case"__detail__":Yr("跳转到详情页","info"),t("special-action","detail",I),y();break;case"__ktvplayer__":Yr("启动KTV播放","info"),t("special-action","ktv-player",I),y();break;case"__refresh_list__":Yr("刷新列表","info"),t("special-action","refresh-list",I),y();break;case"__copy__":if(I.content)try{await navigator.clipboard.writeText(I.content),Yr("已复制到剪贴板","success")}catch{Yr("复制失败","error")}y();break;case"__keep__":I.msg&&Yr(I.msg,"info"),I.reset&&(n.value=null);break;default:Yr(`未知的专项动作: ${$}`,"warning"),y();break}},p=async I=>{if(n.value)try{o.value=!0;const $={action:n.value.actionId,value:typeof I=="object"?JSON.stringify(I):I};e.extend&&($.extend=e.extend),e.apiUrl&&($.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:$,apiUrl:e.apiUrl});let L=null;if(e.module?(L=await _(e.module,$),console.log("T4接口返回结果:",L)):(L=await t("action",n.value.actionId,I),console.log("父组件处理结果:",L)),L){if(typeof L=="string")try{L=JSON.parse(L)}catch{Yr(L,"success"),t("success",I),y();return}if(typeof L=="object"){if(console.log("处理API返回的对象结果:",L),L.error)throw Wy(Hy.NETWORK_ERROR,L.error);if(L.toast&&Yr(L.toast,"success"),(L.message||L.msg)&&Yr(L.message||L.msg,"success"),L.action){console.log("检测到动态action,重新解析:",L.action),c(L.action);return}if(L.actionId){console.log("检测到专项动作:",L.actionId),await h(L);return}if(L.code!==void 0)if(L.code===0||L.code===200){if(L.data&&typeof L.data=="object"){const O={...L.data};if(O.action||O.actionId){if(console.log("在data字段中检测到action:",O),O.action){c(O.action);return}if(O.actionId){await h(O);return}}}Yr(L.message||L.msg||"操作成功","success")}else throw Wy(Hy.NETWORK_ERROR,L.message||L.msg||`操作失败,错误码: ${L.code}`)}}t("success",I),y()}catch($){console.error("执行Action失败:",$),r.value=$,Yr($.message||"操作失败","error")}finally{o.value=!1}},m=()=>{y()},y=()=>{a.value=!1,n.value=null,t("close")},b=async(I,$)=>{if(typeof I=="object"&&I.type){console.log("ActionRenderer接收到新的动作配置:",I),a.value=!1,await new Promise(L=>setTimeout(L,100)),c(I);return}await p({action:I,value:$})},w=()=>{r.value=null};bt(()=>e.actionData,I=>{c(I)},{immediate:!0}),bt(()=>e.visible,I=>{a.value=I});const C=I=>{I&&c(I),a.value=!0},x=()=>{a.value=!1},_=async(I,$)=>{try{return o.value=!0,await t("action",I,$)}catch(L){throw r.value=L,L}finally{o.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:o,isVisible:a,handleSubmit:p,handleCancel:m,handleClose:y,handleAction:b,handleToast:(I,$="success")=>{Yr(I,$)},handleReset:()=>{console.log("InputAction触发重置事件")},clearError:w,show:C,hide:x,executeAction:_}}},pkt={class:"action-renderer"},vkt={class:"action-error"},mkt={key:0};function gkt(e,t,n,r,o,a){const s=ke("ActionDialog");return z(),q("div",pkt,[r.parsedConfig?(z(),Ne(la(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"])):ge("",!0),r.error?(z(),Ne(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:se(()=>[A("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:se(()=>[A("div",vkt,[A("p",null,[A("strong",null,_e(r.error.type),1)]),A("p",null,_e(r.error.message),1),r.error.details?(z(),q("pre",mkt,_e(JSON.stringify(r.error.details,null,2)),1)):ge("",!0)])]),_:1},8,["visible","onClose"])):ge("",!0),r.isLoading?(z(),Ne(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:se(()=>[...t[1]||(t[1]=[A("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):ge("",!0)])}const Yw=zn(hkt,[["render",gkt],["__scopeId","data-v-86a86414"]]),ykt=["onClick"],bkt={class:"video_list_item_img"},Skt=["innerHTML"],kkt={class:"video_list_item_title"},wkt={class:"title-text"},Ckt={key:0,class:"loading-container"},xkt={key:1,class:"no-more-data"},_kt={key:2,class:"empty-state"},Tkt={__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=Ql(),s=iL(),l=ae(null),c=ae(null),f=ae(0),h=ae(null),p=ae(!1),m=ae(null),y=async $=>{if($&&$.vod_id){if($.vod_tag==="action")try{const O=JSON.parse($.vod_id);console.log("VideoGrid解析action配置:",O),m.value=O,p.value=!0;return}catch{console.log("VideoGrid vod_id不是JSON格式,调用T4 action接口:",$.vod_id),await b($.vod_id);return}s.setLastClicked($.vod_id,$.vod_name);const L={name:$.vod_name,pic:$.vod_pic,year:$.vod_year,area:$.vod_area,type:$.vod_type,remarks:$.vod_remarks,content:$.vod_content,actor:$.vod_actor,director:$.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:$.vod_pic};a.push({name:"VideoDetail",params:{id:$.vod_id},query:L})}},b=async $=>{try{const L=await Nd.executeT4Action(r.module||"default",$,{apiUrl:r.apiUrl,extend:r.extend.ext});console.log("result:",L),L&&L.action?(m.value=L.action,p.value=!0):L?Yr("执行源内搜索","success"):Ct.error({content:`无法获取动作配置: ${$}`,duration:3e3,closable:!0})}catch(L){console.error("T4 action执行失败:",L),Ct.error({content:`动作执行失败: ${L.message}`,duration:3e3,closable:!0})}},w=()=>{nn(()=>{setTimeout(()=>{const $=l.value;if(!$)return;const L=$.closest(".content-area")||$.parentElement,O=$.querySelector(".stats-footer"),F=r.showStats&&O?O.offsetHeight:0,M=document.querySelector(".category-nav-container"),j=M?M.offsetHeight:0;let V=L?L.offsetHeight:0;V<=0&&(V=Math.max(window.innerHeight-120,500)),console.log(`CategoryNavigation高度: ${j}px, 内容区域高度: ${V}px`);const W=r.videos?r.videos.length:0,U=$.offsetWidth||Math.max(window.innerWidth-240,800),G=Math.min(Math.floor(U/200),8),Y=328,ee=W>0?Math.ceil(W/Math.max(G,1)):0,te=ee*Y+16;let J=4;if(W===0)J=Math.min(V*.4,300),console.log(`无视频数据,使用保守高度减值: ${J}px`);else if(te{const L=$?.target||$?.srcElement,O=L?.closest?L.closest(".arco-scrollbar-container"):L;if(!O)return;const F=O.scrollHeight-O.clientHeight,M=O.scrollTop;F-M<50&&(o("scroll-bottom"),o("load-more"))},x=()=>{nn(()=>{setTimeout(()=>{document.querySelectorAll(".video_list_item_title .title-text").forEach(L=>{const F=L.parentElement.offsetWidth-16;L.scrollWidth>F?L.setAttribute("data-overflow","true"):L.removeAttribute("data-overflow")})},100)})};qt(()=>{x(),w(),window.addEventListener("resize",w),setTimeout(()=>{const L=document.querySelector(".category-nav-container");if(L){const O=new MutationObserver(()=>{setTimeout(()=>{w()},100)});O.observe(L,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]}),l.value._filterObserver=O}},200)}),uo(()=>{window.removeEventListener("resize",w),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),bt(()=>[r.videos,r.showStats],()=>{w(),x()});const _=$=>{$&&c.value&&requestAnimationFrame(()=>{const L=c.value?.$el?.querySelector(".arco-scrollbar-container");L&&(L.scrollTo({top:$,behavior:"smooth"}),console.log("VideoGrid恢复滚动位置:",$))})},E=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,S=()=>{p.value=!1,m.value=null},I=($,L)=>{switch(console.log("VideoGrid处理专项动作:",$,L),$){case"self-search":console.log("执行源内搜索:",L);break;case"detail":console.log("跳转到详情页:",L);break;case"ktv-player":console.log("启动KTV播放:",L);break;case"refresh-list":console.log("刷新列表:",L),o("refresh-list");break;default:console.log("未知的专项动作:",$,L);break}};return t({checkTextOverflow:x,restoreScrollPosition:_,getCurrentScrollPosition:E}),($,L)=>{const O=ke("a-image"),F=ke("a-grid-item"),M=ke("a-grid"),j=ke("a-spin"),V=ke("a-scrollbar");return z(),q("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[R(V,{onScroll:C,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ee("height:"+f.value+"px; overflow: auto;")},{default:se(()=>[R(M,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:se(()=>[(z(!0),q(Tt,null,Kt(e.videos,W=>(z(),Ne(F,{key:W.vod_id,class:"video_list_hover"},{default:se(()=>[A("div",{class:"video_list_item",onClick:U=>y(W)},[A("div",bkt,[R(O,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:W.vod_pic},null,8,["src"]),W.vod_remarks?(z(),q("div",{key:0,class:"video_remarks_overlay",innerHTML:W.vod_remarks},null,8,Skt)):ge("",!0)]),A("div",kkt,[A("span",wkt,_e(W.vod_name),1)])],8,ykt)]),_:2},1024))),128))]),_:1}),e.loading?(z(),q("div",Ckt,[R(j),L[0]||(L[0]=A("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),q("div",xkt," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(z(),q("div",_kt," 暂无视频数据 ")):ge("",!0),L[1]||(L[1]=A("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),p.value?(z(),Ne(Yw,{key:0,ref_key:"actionRendererRef",ref:h,"action-data":m.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:S,onSpecialAction:I},null,8,["action-data","module","extend","api-url"])):ge("",!0)],512)}}},MV=zn(Tkt,[["__scopeId","data-v-27689289"]]),Ekt={class:"category-modal-content"},Ikt=["onClick"],Akt={__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=ke("a-modal");return z(),Ne(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:se(()=>[A("div",Ekt,[e.hasRecommendVideos?(z(),q("div",{key:0,class:ne(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):ge("",!0),(z(!0),q(Tt,null,Kt(e.classList.class,c=>(z(),q("div",{key:c.type_id,class:ne(["category-item",{active:e.activeKey===c.type_id}]),onClick:f=>o(c.type_id)},_e(c.type_name),11,Ikt))),128))])]),_:1},8,["visible"])}}},Lkt=zn(Akt,[["__scopeId","data-v-14f43b3d"]]),Pkt={class:"video-list-container"},$kt={class:"content-area"},Mkt={key:0,class:"tab-content"},Rkt={key:1,class:"tab-content"},Dkt={__name:"VideoList",props:{classList:Object,recommendVideos:{type:Array,default:()=>[]},trigger:{type:String,default:"click"},sourceRoute:{type:Object,default:()=>({})},returnToActiveKey:{type:String,default:""},module:{type:String,default:""},extend:{type:Object,default:()=>({})},apiUrl:{type:String,default:""}},emits:["activeKeyChange"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=Ow(),s=ae(""),l=Lt({}),c=Lt({}),f=Lt({}),h=Lt({}),p=Lt({}),m=ae(!1),y=ae(null),b=N(()=>r.recommendVideos&&r.recommendVideos.length>0),w=()=>r.returnToActiveKey?r.returnToActiveKey:b.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",C=(U,X,G)=>{p[s.value]||(p[s.value]={}),p[s.value][U]===X?(delete p[s.value][U],Object.keys(p[s.value]).length===0&&delete p[s.value]):p[s.value][U]=X,_(s.value)},x=U=>{delete p[U],_(U)},_=U=>{delete l[U],delete c[U],f[U]=!1,s.value===U&&S(U,!0)},E=U=>{const X=r.classList?.class?.find(J=>J.type_id===U)?.type_name||"",G=c[U]?.page||1,Y=l[U]?.length||0,ee=c[U]?.total;let te=`${X}:当前第 ${G} 页,已加载 ${Y} 条`;return ee&&(te+=` / 共 ${ee} 条`),te},S=async(U,X=!1)=>{if(console.log(U,"选中分类id"),!l.hasOwnProperty(U)||X)try{const G=await Oa.getCurrentSite();let Y,ee;if(U==="recommendTuijian404")Y=r.recommendVideos||[],ee={page:1,hasNext:!1};else{const te=p[U]||{},J=await Nd.getCategoryVideos(G.key,{typeId:U,page:1,filters:te,extend:G.ext,apiUrl:G.api});Y=J.videos||[],ee=J.pagination||{page:1,hasNext:!1}}l[U]=Y,c[U]=ee,f[U]=!1,U===s.value&&a.updateStats(E(U))}catch(G){console.error("获取视频列表失败:",G),l[U]=[],c[U]={page:1,hasNext:!1},f[U]=!1}},I=U=>!U||U.length===0?!0:U.some(X=>X.vod_id==="no_data"),$=(U,X)=>{if(!X||X.length===0)return!0;if(!U||U.length===0)return!1;const G=U.slice(-X.length).map(ee=>ee.vod_id),Y=X.map(ee=>ee.vod_id);return JSON.stringify(G)===JSON.stringify(Y)},L=async U=>{if(!(f[U]||!c[U]?.hasNext)){f[U]=!0;try{const X=await Oa.getCurrentSite(),G=c[U].page+1;let Y=[],ee={page:G,hasNext:!1};if(U==="recommendTuijian404")return;{const te=p[U]||{},J=await Nd.getCategoryVideos(X.key,{typeId:U,page:G,filters:te,extend:X.ext,apiUrl:X.api});Y=J.videos||[],ee=J.pagination||{page:G,hasNext:!1}}if(I(Y)||$(l[U],Y)){console.log("检测到无效数据或重复数据,停止翻页"),c[U]={...c[U],hasNext:!1};return}l[U]=[...l[U],...Y],c[U]=ee,U===s.value&&a.updateStats(E(U))}catch(X){console.error("加载更多数据失败:",X),c[U]={...c[U],hasNext:!1}}finally{f[U]=!1}}},O=U=>{s.value=U,S(U),o("activeKeyChange",U)},F=U=>{const{filterKey:X,filterValue:G,filterName:Y}=U;C(X,G)},M=()=>{x(s.value)},j=()=>{m.value=!0},V=U=>{s.value=U,S(U),o("activeKeyChange",U),setTimeout(()=>{a.updateStats(E(U))},100)};bt(()=>r.recommendVideos,U=>{U&&U.length>0?(l.recommendTuijian404=U,c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1,console.log("推荐数据已更新:",U.length,"条")):(l.recommendTuijian404=[],c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1);const X=w();s.value!==X&&(s.value=X,S(X),o("activeKeyChange",X))},{immediate:!0}),bt(()=>r.classList,(U,X)=>{U!==X&&(Object.keys(p).forEach(Y=>{delete p[Y]}),Object.keys(h).forEach(Y=>{delete h[Y]}));const G=w();s.value!==G&&(s.value=G,S(G),o("activeKeyChange",G))},{immediate:!0}),qt(()=>{s.value=w(),r.returnToActiveKey||S(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:y.value?y.value.getCurrentScrollPosition():0}),restoreState:U=>{U.activeKey&&U.activeKey!==s.value&&(s.value=U.activeKey,o("activeKeyChange",U.activeKey),(!l[U.activeKey]||l[U.activeKey].length===0)&&S(U.activeKey))},restoreFullState:U=>{U.activeKey&&(s.value=U.activeKey,U.videos&&U.videos.length>0&&(l[U.activeKey]=[...U.videos],c[U.activeKey]={page:U.currentPage||1,hasNext:U.hasMore||!1},console.log(`恢复分类 ${U.activeKey} 的完整状态:`,{videos:U.videos.length,page:U.currentPage,hasMore:U.hasMore,scrollPosition:U.scrollPosition})),o("activeKeyChange",U.activeKey),setTimeout(()=>{a.updateStats(E(U.activeKey))},100),U.scrollPosition&&y.value&&setTimeout(()=>{y.value.restoreScrollPosition(U.scrollPosition)},200))},refreshCurrentCategory:()=>{s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,S(s.value))}});const W=()=>{console.log("VideoList收到刷新列表请求"),s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,S(s.value))};return(U,X)=>(z(),q("div",Pkt,[R(J2t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:b.value,activeKey:s.value,filters:r.classList?.filters||{},selectedFilters:p,onTabChange:O,onOpenCategoryModal:j,onToggleFilter:F,onResetFilters:M},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters"]),A("div",$kt,[s.value==="recommendTuijian404"?(z(),q("div",Mkt,[R(MV,{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:W},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"])])):(z(),q("div",Rkt,[R(MV,{ref_key:"videoGridRef",ref:y,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:X[0]||(X[0]=G=>L(s.value)),onScrollBottom:X[1]||(X[1]=G=>L(s.value)),onRefreshList:W},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"])]))]),R(Lkt,{visible:m.value,"onUpdate:visible":X[2]||(X[2]=G=>m.value=G),classList:e.classList,hasRecommendVideos:b.value,activeKey:s.value,onSelectCategory:V},null,8,["visible","classList","hasRecommendVideos","activeKey"])]))}},Okt=zn(Dkt,[["__scopeId","data-v-cda7abca"]]),Nkt={class:"search-results-container"},Bkt={class:"search-header"},Fkt={class:"search-info"},jkt={key:0,class:"search-keyword"},Vkt={key:1,class:"search-count"},zkt={class:"search-actions"},Ukt={key:0,class:"error-container"},Hkt={class:"error-text"},Wkt={key:1,class:"loading-container"},Gkt=["onClick"],Kkt={class:"video_list_item_img"},qkt=["innerHTML"],Ykt={class:"video_list_item_title"},Xkt={class:"title-text"},Zkt={key:3,class:"empty-state"},Jkt={key:4,class:"loading-container"},Qkt={key:5,class:"no-more-data"},ewt={__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=Ql(),r=Ow(),o=BL(),a=iL(),s=e,l=t,c=ae(null),f=ae(null),h=ae(0),p=ae(null),m=ae(!1),y=ae(null),b=L=>{const O=L?.target||L?.srcElement,F=O?.closest?O.closest(".arco-scrollbar-container"):O;if(!F)return;const M=F.scrollHeight-F.clientHeight,j=F.scrollTop;M-j<50&&s.hasMore&&!s.loading&&l("load-more")},w=()=>{nn(()=>{setTimeout(()=>{const L=c.value;if(!L)return;const O=L.closest(".content-area")||L.parentElement;let F=O?O.offsetHeight:0;F<=0&&(F=Math.max(window.innerHeight-120,500));const M=document.querySelector(".search-header"),j=M?M.offsetHeight:60,V=s.videos?s.videos.length:0,W=L.offsetWidth||Math.max(window.innerWidth-240,800),X=Math.min(Math.floor(W/200),8),G=328,Y=V>0?Math.ceil(V/Math.max(X,1)):0,ee=Y*G+80;let te=4;const J=F-j;if(V===0)te=Math.min(J*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${te}px`);else if(ee{if(!s.keyword)return"";const L=s.videos.length,O=s.currentPage,F=s.hasMore;if(L===0)return`搜索"${s.keyword}":无结果`;let M=`搜索"${s.keyword}":第${O}页,共${L}条`;return F?M+=",可继续加载":M+=",已全部加载",M},x=()=>{const L=C();L&&r.updateStats(L)},_=()=>{nn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(O=>{const M=O.parentElement.offsetWidth-16;O.scrollWidth>M?O.setAttribute("data-overflow","true"):O.removeAttribute("data-overflow")})},100)})},E=L=>{if(L&&L.vod_id){if(L.vod_tag==="action")try{const O=JSON.parse(L.vod_id);console.log("SearchResults解析action配置:",O),y.value=O,m.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",L.vod_id),Ct.info({content:L.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(L.vod_id,L.vod_name),s.keyword){const F=f.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,F),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:F})}n.push({name:"VideoDetail",params:{id:L.vod_id},query:{name:L.vod_name,pic:L.vod_pic,year:L.vod_year,area:L.vod_area,type:L.vod_type,remarks:L.vod_remarks,content:L.vod_content,actor:L.vod_actor,director:L.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:L.vod_pic}})}},S=()=>{r.clearStats(),l("exit-search")};qt(()=>{_(),w(),x(),window.addEventListener("resize",w),s.scrollPosition>0&&nn(()=>{requestAnimationFrame(()=>{const L=f.value?.$el?.querySelector(".arco-scrollbar-container");L&&(L.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),uo(()=>{window.removeEventListener("resize",w)}),bt(()=>s.videos,()=>{w(),_(),x()}),bt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{x()});const I=()=>{m.value=!1,y.value=null},$=(L,O)=>{switch(console.log("处理专项动作:",L,O),L){case"self-search":console.log("执行源内搜索:",O);break;case"detail":console.log("跳转到详情页:",O);break;case"ktv-player":console.log("启动KTV播放:",O);break;case"refresh-list":console.log("刷新列表:",O),l("refresh-list");break;default:console.log("未知的专项动作:",L,O);break}};return(L,O)=>{const F=ke("icon-close"),M=ke("a-button"),j=ke("icon-exclamation-circle"),V=ke("a-spin"),W=ke("a-image"),U=ke("a-grid-item"),X=ke("a-grid"),G=ke("icon-search"),Y=ke("a-scrollbar");return z(),q("div",Nkt,[A("div",Bkt,[A("div",Fkt,[e.keyword?(z(),q("span",jkt," 搜索结果:"+_e(e.keyword),1)):ge("",!0),e.videos.length>0?(z(),q("span",Vkt," 共找到 "+_e(e.videos.length)+" 个结果 ",1)):ge("",!0)]),A("div",zkt,[R(M,{type:"outline",size:"small",onClick:S},{icon:se(()=>[R(F)]),default:se(()=>[O[0]||(O[0]=$e(" 清除搜索 ",-1))]),_:1})])]),A("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[R(Y,{ref_key:"scrollbarRef",ref:f,onScroll:b,class:"search-scroll-container",style:Ee("height:"+h.value+"px; overflow: auto;")},{default:se(()=>[e.error?(z(),q("div",Ukt,[R(j,{class:"error-icon"}),A("p",Hkt,_e(e.error),1)])):e.loading&&e.videos.length===0?(z(),q("div",Wkt,[R(V,{size:"large"}),O[1]||(O[1]=A("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(z(),Ne(X,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:se(()=>[(z(!0),q(Tt,null,Kt(e.videos,ee=>(z(),Ne(U,{key:ee.vod_id,class:"video_list_hover"},{default:se(()=>[A("div",{class:"video_list_item",onClick:te=>E(ee)},[A("div",Kkt,[R(W,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ee.vod_pic},null,8,["src"]),ee.vod_remarks?(z(),q("div",{key:0,class:"video_remarks_overlay",innerHTML:ee.vod_remarks},null,8,qkt)):ge("",!0)]),A("div",Ykt,[A("span",Xkt,_e(ee.vod_name),1)])],8,Gkt)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(z(),q("div",Zkt,[R(G,{class:"empty-icon"}),O[2]||(O[2]=A("p",{class:"empty-text"},"没有找到相关内容",-1)),O[3]||(O[3]=A("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):ge("",!0),e.loading&&e.videos.length>0?(z(),q("div",Jkt,[R(V),O[4]||(O[4]=A("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),q("div",Qkt," 没有更多数据了 ")):ge("",!0),O[5]||(O[5]=A("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),m.value?(z(),Ne(Yw,{key:0,ref_key:"actionRendererRef",ref:p,"action-data":y.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:I,onSpecialAction:$},null,8,["action-data","module","extend","api-url"])):ge("",!0)])}}},wye=zn(ewt,[["__scopeId","data-v-21ef81de"]]),Xw=Tg("site",()=>{const e=ae(Oa.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Oa.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Oa.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}}),twt={class:"current-time"},nwt={class:"main-container"},rwt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=Xw();Ow();const r=BL(),o=SA(),a=Ql(),s=G=>{const Y=G.getFullYear(),ee=String(G.getMonth()+1).padStart(2,"0"),te=String(G.getDate()).padStart(2,"0"),J=String(G.getHours()).padStart(2,"0"),Z=String(G.getMinutes()).padStart(2,"0"),ce=String(G.getSeconds()).padStart(2,"0");return`${Y}-${ee}-${te} ${J}:${Z}:${ce}`},l=ae(s(new Date)),c=ae(""),f=ae(null),h=Lt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Lt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),m=ae(null),y=async(G=!1)=>{try{if(Oa.getConfigStatus().hasConfigUrl)try{await Oa.loadSitesFromConfig(G),console.log("从配置地址加载站点数据成功")}catch(ee){console.error("从配置地址加载站点数据失败:",ee)}h.sites=Oa.getAllSites(),h.sites.length===0&&console.log("暂无站点配置,请在设置中配置数据源地址")}catch(Y){console.error("获取站点配置失败:",Y)}},b=()=>{const G=Oa.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,Oa.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},w=()=>{if(!h.now_site||!h.now_site.key){const G=Oa.getCurrentSite();if(G)h.now_site=G,h.now_site_title=G.name;else if(h.sites.length>0){const Y=h.sites.find(ee=>ee.type===4)||h.sites[0];h.now_site=Y,h.now_site_title=Y.name,Oa.setCurrentSite(Y.key)}}else if(!h.sites.some(Y=>Y.key===h.now_site.key)&&h.sites.length>0){const Y=h.sites.find(ee=>ee.type===4)||h.sites[0];h.now_site=Y,h.now_site_title=Y.name,Oa.setCurrentSite(Y.key)}h.new_site=h.now_site},C=()=>{m.value=setInterval(()=>{l.value=s(new Date)},1e3)},x=()=>{window.location.reload()},_=()=>{},E=()=>{},S=()=>{},I=G=>h.new_site=G,$=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,y(!0),w()},L=G=>{h.now_site=G,n(G),h.now_site_title=G.name,h.visible=!1,O(G)},O=async G=>{if(!G||!G.key){console.log("站点信息无效");return}console.log(G,"确认换源"),h.classList={class:[],filters:{}},h.recommendVideos=[];try{const Y=await Nd.getRecommendVideos(G.key,{extend:G.ext,apiUrl:G.api});h.classList={class:Y.categories,filters:Y.filters},h.recommendVideos=Y.videos||[],console.log("分类列表:",h.classList),console.log("推荐视频:",h.recommendVideos)}catch(Y){console.error("获取分类列表失败:",Y),h.classList={class:[],filters:{}},h.recommendVideos=[]}},F=async G=>{if(!G||!G.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const Y=G.trim();p.searchKeyword=Y,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 ee=await Nd.searchVideo(h.now_site.key,{keyword:Y,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=ee.videos||[],p.totalPages=ee.pagination?.totalPages||1,p.hasMore=ee.pagination?.hasNext||!1}catch(ee){console.error("搜索失败:",ee),p.searchError=ee.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},M=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const G=p.currentPage+1;try{const Y=await Nd.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:G,extend:h.now_site.ext,apiUrl:h.now_site.api}),ee=Y.videos||[],te=new Set(p.searchResults.map(Z=>Z.vod_id)),J=ee.filter(Z=>!te.has(Z.vod_id)&&Z.vod_id!=="no_data"&&Z.vod_name!=="no_data");J.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...J],p.hasMore=Y.pagination?.hasNext!==!1),p.currentPage=G,p.totalPages=Y.pagination?.totalPages||p.totalPages}catch(Y){console.error("搜索加载更多失败:",Y),p.searchError=Y.message||"加载失败,请重试"}finally{p.searchLoading=!1}},j=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},V=G=>{c.value=G},W=G=>{if(G&&G.vod_id){let Y="false";p.isSearching?(console.log("从搜索结果点击视频,状态保存由SearchResults组件处理"),Y="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:Y,sourcePic:G.vod_pic}})}},U=()=>{h.visible=!0;const G=h.sites.filter(Y=>Y.type===4);h.form_title=`请选择数据源(${G.length})`,w()},X=async G=>{if(!G||!G.trim()){Ct.error("推送内容不能为空");return}const Y=h.sites.find(ee=>ee.key==="push_agent");if(!Y){Ct.error("没有找到push_agent服务,请检查源配置");return}try{console.log("推送功能,使用临时站源:",{siteName:Y.name,siteKey:Y.key,siteApi:Y.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:Y.name,tempSiteApi:Y.api,tempSiteKey:Y.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),Ct.success(`正在推送内容: ${G.trim()}`)}catch(ee){console.error("推送失败:",ee),Ct.error("推送失败,请重试")}};return qt(async()=>{y(),b();const G=o.query._restoreSearch,Y=o.query._returnToActiveKey;if(G==="true"){const Z=r.getPageState("search");if(Z&&Z.keyword&&!r.isStateExpired("search")){console.log("恢复搜索状态:",Z),p.isSearching=!0,p.searchKeyword=Z.keyword,p.searchResults=Z.videos||[],p.currentPage=Z.currentPage||1,p.hasMore=Z.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=Z.scrollPosition||0;const ce={...o.query};delete ce._restoreSearch,a.replace({query:ce}),await O(h.now_site),C(),console.log("搜索状态恢复完成,滚动位置由SearchResults组件处理");return}}const ee=r.getPageState("video"),te=r.isStateExpired("video");let J=!1;if(Y){c.value=Y,J=!0,console.log("从详情页返回,恢复到分类:",Y);const Z={...o.query};delete Z._returnToActiveKey,a.replace({query:Z})}else ee&&ee.activeKey&&!te&&(c.value=ee.activeKey,J=!0,console.log("恢复保存的分类状态:",ee.activeKey));await O(h.now_site),C(),J&&setTimeout(()=>{f.value&&f.value.restoreFullState({activeKey:c.value,currentPage:ee?.currentPage||1,videos:ee?.videos||[],hasMore:ee?.hasMore||!0,scrollPosition:ee?.scrollPosition||0})},100)}),uo(()=>{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,Y)=>{const ee=ke("a-layout-content");return z(),q(Tt,null,[R(wbt,{onHandleOpenForm:U,onRefreshPage:x,onMinimize:_,onMaximize:E,onCloseWindow:S,onOnSearch:F,onHandlePush:X,now_site_title:h.now_site_title},{default:se(()=>[A("div",twt,[A("span",null,_e(l.value),1)])]),_:1},8,["now_site_title"]),A("div",nwt,[R(ee,{class:"content"},{default:se(()=>[p.isSearching?(z(),Ne(wye,{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:He(o).name,params:He(o).params,query:He(o).query},module:h.now_site?.key||He(t)?.key,extend:h.now_site,"api-url":h.now_site?.api,onLoadMore:M,onExitSearch:j,onVideoClick:W,onRefreshList:G.handleRefreshList},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url","onRefreshList"])):(z(),Ne(Okt,{key:1,ref_key:"videoListRef",ref:f,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:He(o).name,params:He(o).params,query:{...He(o).query,activeKey:c.value}},returnToActiveKey:He(o).query._returnToActiveKey,module:h.now_site?.key||He(t)?.key,extend:h.now_site,"api-url":h.now_site?.api,onActiveKeyChange:V},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url"]))]),_:1})]),R(cbt,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":Y[0]||(Y[0]=te=>h.visible=te),onConfirmClear:$,onConfirmChange:L,onChangeRule:I},null,8,["visible","title","sites","currentSiteKey"])],64)}}},iwt=zn(rwt,[["__scopeId","data-v-8463691a"]]),owt=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:y}=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 w=new URLSearchParams({url:b,mode:o,is_pc:a,timeout:(r*1e3).toString()});m&&w.set("script",m),s=`${n}?${w.toString()}`,y&&(s+=y)}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}},Cye=()=>{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}},jse=()=>{const e=Cye();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},swt=async(e,t={})=>{const n=Cye();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await owt(e,r)},KL=Tg("favorite",()=>{const e=ae([]),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 y={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(w=>w.id===y.id&&w.api_info.api_url===y.api_info.api_url)===-1?(e.value.unshift(y),n(),!0):!1},o=(m,y)=>{const b=e.value.findIndex(w=>w.id===m&&w.api_info.api_url===y);return b!==-1?(e.value.splice(b,1),n(),!0):!1},a=(m,y)=>e.value.some(b=>b.id===m&&b.api_info.api_url===y),s=(m,y)=>e.value.find(b=>b.id===m&&b.api_info.api_url===y),l=()=>{e.value=[],n()},c=()=>{const m={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},y=new Blob([JSON.stringify(m,null,2)],{type:"application/json"}),b=URL.createObjectURL(y),w=document.createElement("a");w.href=b,w.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(b)},f=m=>new Promise((y,b)=>{const w=new FileReader;w.onload=C=>{try{const x=JSON.parse(C.target.result);if(!x.favorites||!Array.isArray(x.favorites))throw new Error("无效的收藏数据格式");let _=0;x.favorites.forEach(E=>{e.value.some(I=>I.id===E.id&&I.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),_++)}),n(),y(_)}catch(x){b(x)}},w.onerror=()=>{b(new Error("文件读取失败"))},w.readAsText(m)}),h=N(()=>e.value.length),p=N(()=>{const m={};return e.value.forEach(y=>{const b=y.api_info?.site_name||"";let w="影视";b.includes("[书]")?w="小说":b.includes("[画]")?w="漫画":b.includes("[密]")?w="密":b.includes("[听]")?w="音频":b.includes("[儿]")&&(w="少儿"),m[w]||(m[w]=[]),m[w].push(y)}),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}}),cW=Tg("history",()=>{const e=ae([]),t=N(()=>e.value.length),n=N(()=>[...e.value].sort((y,b)=>new Date(b.updated_at)-new Date(y.updated_at))),r=N(()=>{const y={};return e.value.forEach(b=>{const w=b.api_info?.site_name||"";let C="影视";w.includes("[书]")?C="小说":w.includes("[画]")?C="漫画":w.includes("[密]")?C="密":w.includes("[听]")?C="音频":w.includes("[儿]")&&(C="少儿"),y[C]||(y[C]=[]),y[C].push(b)}),y}),o=()=>{try{const y=localStorage.getItem("drplayer_histories");y&&(e.value=JSON.parse(y))}catch(y){console.error("加载观看历史失败:",y),e.value=[]}},a=()=>{try{localStorage.setItem("drplayer_histories",JSON.stringify(e.value))}catch(y){console.error("保存观看历史失败:",y)}},s=(y,b,w)=>{const C=new Date().toISOString();console.log("=== historyStore.addToHistory 调试 ==="),console.log("传入的videoInfo.api_info:",y.api_info),console.log("传入的videoInfo.api_info.ext:",y.api_info.ext);const x=e.value.findIndex(E=>E.id===y.id&&E.api_info.api_url===y.api_info.api_url),_={...y,current_route_name:b.name,current_route_index:b.index,current_episode_name:w.name,current_episode_index:w.index,current_episode_url:w.url,updated_at:C};x!==-1?(e.value[x]={...e.value[x],..._},console.log("更新后的历史记录api_info:",e.value[x].api_info)):(_.created_at=C,e.value.push(_),console.log("新添加的历史记录api_info:",_.api_info)),console.log("=== historyStore.addToHistory 调试结束 ==="),a()},l=y=>{if(!y||!y.id||!y.api_info||!y.api_info.api_url)return console.error("删除历史记录失败:参数无效",y),!1;const b=e.value.findIndex(w=>w.id===y.id&&w.api_info.api_url===y.api_info.api_url);return b!==-1?(e.value.splice(b,1),a(),console.log("删除历史记录成功:",y.name),!0):(console.warn("未找到要删除的历史记录:",y),!1)},c=()=>{e.value=[],a()},f=()=>{const y=JSON.stringify(e.value,null,2),b=new Blob([y],{type:"application/json"}),w=document.createElement("a");w.href=URL.createObjectURL(b),w.download=`drplayer_histories_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(w),w.click(),document.body.removeChild(w)},h=y=>{try{const b=JSON.parse(y);if(!Array.isArray(b))throw new Error("导入的数据格式不正确");const w=b.filter(C=>C.id&&C.name&&C.pic&&C.api_info&&C.current_route_name&&C.current_episode_name);return w.forEach(C=>{const x=e.value.findIndex(_=>_.id===C.id&&_.api_info.api_url===C.api_info.api_url);if(x===-1)e.value.push(C);else{const _=e.value[x],E=new Date(C.updated_at),S=new Date(_.updated_at);E>S&&(e.value[x]=C)}}),a(),w.length}catch(b){throw new Error(`导入失败: ${b.message}`)}},p=(y,b)=>e.value.find(w=>w.id===y&&w.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:(y,b)=>{const w=p(y,b);return w?{routeName:w.current_route_name,routeIndex:w.current_route_index,episodeName:w.current_episode_name,episodeIndex:w.current_episode_index,episodeUrl:w.current_episode_url,lastWatchTime:w.updated_at}:null}}}),fn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},awt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=lwt},lwt=Number.MAX_SAFE_INTEGER||9007199254740991;let Pn=(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})({}),Et=(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})({}),pe=(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 $r={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},_n={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class Q0{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 uwt{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 Q0(t),this.fast_=new Q0(n),this.defaultTTFB_=o,this.ttfb_=new Q0(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new Q0(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new Q0(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new Q0(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 cwt(e,t,n){return(t=fwt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Cp}function zse(e,t,n){return t[e]?t[e].bind(t):pwt(e,n)}const DV=RV();function vwt(e,t,n){const r=RV();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=zse(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return RV()}o.forEach(a=>{DV[a]=zse(a,e)})}else Mi(DV,r);return r}const Ti=DV;function nv(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function mwt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function xye(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 Eu(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 al(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(!fn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return us(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 bwt extends Tye{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 Eye(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||Eye(n,t)}}function Swt(e,t){const n=Eye(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Hse=Math.pow(2,32)-1,kwt=[].push,Iye={video:1,audio:2,id3:3,text:4};function _s(e){return String.fromCharCode.apply(null,e)}function Aye(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function er(e,t){const n=Lye(e,t);return n<0?4294967296+n:n}function Wse(e,t){let n=er(e,t);return n*=Math.pow(2,32),n+=er(e,t+4),n}function Lye(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function wwt(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 Er(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=Er(e.subarray(o+8,l),t.slice(1));c.length&&kwt.apply(n,c)}o=l}return n}function Cwt(e){const t=[],n=e[0];let r=8;const o=er(e,r);r+=4;let a=0,s=0;n===0?(a=er(e,r),s=er(e,r+4),r+=8):(a=Wse(e,r),s=Wse(e,r+8),r+=16),r+=2;let l=e.length+s;const c=Aye(e,r);r+=2;for(let f=0;f>>31===1)return Ti.warn("SIDX has hierarchical references (not supported)"),null;const b=er(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 Pye(e){const t=[],n=Er(e,["moov","trak"]);for(let o=0;o{const a=er(o,4),s=t[a];s&&(s.default={duration:er(o,12),flags:er(o,20)})}),t}function xwt(e){const t=e.subarray(8),n=t.subarray(86),r=_s(t.subarray(4,8));let o=r,a;const s=r==="enca"||r==="encv";if(s){const f=Er(t,[r])[0].subarray(r==="enca"?28:78);Er(f,["sinf"]).forEach(p=>{const m=Er(p,["schm"])[0];if(m){const y=_s(m.subarray(4,8));if(y==="cbcs"||y==="cenc"){const b=Er(p,["frma"])[0];b&&(o=_s(b))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=Er(n,["avcC"])[0];c&&c.length>3&&(o+="."+qT(c[1])+qT(c[2])+qT(c[3]),a=KT(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=Er(t,[r])[0],f=Er(c.subarray(28),["esds"])[0];if(f&&f.length>7){let h=4;if(f[h++]!==3)break;h=MB(f,h),h+=2;const p=f[h++];if(p&128&&(h+=2),p&64&&(h+=f[h++]),f[h++]!==4)break;h=MB(f,h);const m=f[h++];if(m===64)o+="."+qT(m);else break;if(h+=12,f[h++]!==5)break;h=MB(f,h);const y=f[h++];let b=(y&248)>>3;b===31&&(b+=1+((y&7)<<3)+((f[h]&224)>>5)),o+="."+b}break}case"hvc1":case"hev1":{const c=Er(n,["hvcC"])[0];if(c&&c.length>12){const f=c[1],h=["","A","B","C"][f>>6],p=f&31,m=er(c,2),y=(f&32)>>5?"H":"L",b=c[12],w=c.subarray(6,12);o+="."+h+p,o+="."+_wt(m).toString(16).toUpperCase(),o+="."+y+b;let C="";for(let x=w.length;x--;){const _=w[x];(_||C)&&(C="."+_.toString(16).toUpperCase()+C)}o+=C}a=KT(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=KT(o,n)||o;break}case"vp09":{const c=Er(n,["vpcC"])[0];if(c&&c.length>6){const f=c[4],h=c[5],p=c[6]>>4&15;o+="."+Sd(f)+"."+Sd(h)+"."+Sd(p)}break}case"av01":{const c=Er(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,y=(c[2]&32)>>5,b=f===2&&m?y?12:10:m?10:8,w=(c[2]&16)>>4,C=(c[2]&8)>>3,x=(c[2]&4)>>2,_=c[2]&3;o+="."+f+"."+Sd(h)+p+"."+Sd(b)+"."+w+"."+C+x+_+"."+Sd(1)+"."+Sd(1)+"."+Sd(1)+"."+0,a=KT("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function KT(e,t){const n=Er(t,["dvvC"]),r=n.length?n[0]:Er(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+Sd(o)+"."+Sd(a)}}function _wt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function MB(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(Ti.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${al(a)} -> ${al(n)}`),r.set(n,8))})}function Ewt(e){const t=[];return $ye(e,n=>t.push(n.subarray(8,24))),t}function $ye(e,t){Er(e,["moov","trak"]).forEach(r=>{const o=Er(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=Er(a,["enca"]);const l=s.length>0;l||(s=Er(a,["encv"])),s.forEach(c=>{const f=l?c.subarray(28):c.subarray(78);Er(f,["sinf"]).forEach(p=>{const m=Mye(p);m&&t(m,l)})})})}function Mye(e){const t=Er(e,["schm"])[0];if(t){const n=_s(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=Er(e,["schi","tenc"])[0];if(r)return r}}}function Iwt(e,t,n){const r={},o=Er(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=Er(e,["sidx"]);for(let c=0;cp+m.info.duration||0,0);s=Math.max(s,h+f.earliestPresentationTime/f.timescale)}}s&&fn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function Awt(e){const t={valid:null,remainder:null},n=Er(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 dc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Gse(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return Er(r,["moof"]).map(c=>{const f=c.byteOffset-8;Er(c,["traf"]).map(p=>{const m=Er(p,["tfdt"]).map(y=>{const b=y[0];let w=er(y,4);return b===1&&(w*=Math.pow(2,32),w+=er(y,8)),w/o})[0];return m!==void 0&&(e=m),Er(p,["tfhd"]).map(y=>{const b=er(y,4),w=er(y,0)&16777215,C=(w&1)!==0,x=(w&2)!==0,_=(w&8)!==0;let E=0;const S=(w&16)!==0;let I=0;const $=(w&32)!==0;let L=8;b===a&&(C&&(L+=8),x&&(L+=4),_&&(E=er(y,L),L+=4),S&&(I=er(y,L),L+=4),$&&(L+=4),t.type==="video"&&(s=qL(t.codec)),Er(p,["trun"]).map(O=>{const F=O[0],M=er(O,0)&16777215,j=(M&1)!==0;let V=0;const W=(M&4)!==0,U=(M&256)!==0;let X=0;const G=(M&512)!==0;let Y=0;const ee=(M&1024)!==0,te=(M&2048)!==0;let J=0;const Z=er(O,4);let ce=8;j&&(V=er(O,ce),ce+=4),W&&(ce+=4);let ye=V+f;for(let ie=0;ie>1&63;return n===39||n===40}else return(t&31)===6}function hW(e,t,n,r){const o=Rye(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){Ti.error(`Malformed SEI payload. ${l} is too small, only ${f} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const m=Aye(o,h);if(h+=2,m===49){const y=er(o,h);if(h+=4,y===1195456820){const b=o[h++];if(b===3){const w=o[h++],C=31&w,x=64&w,_=x?2+C*3:0,E=new Uint8Array(_);if(x){E[0]=w;for(let S=1;S<_;S++)E[S]=o[h++]}r.push({type:b,payloadType:s,pts:n,bytes:E})}}}}}else if(s===5&&l>16){const p=[];for(let b=0;b<16;b++){const w=o[h++].toString(16);p.push(w.length==1?"0"+w:w),(b===3||b===5||b===7||b===9)&&p.push("-")}const m=l-16,y=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),$wt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function Rwt(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=al(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 y=0;y/\(Windows.+Firefox\//i.test(navigator.userAgent),g1={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 pW(e,t){const n=g1[t];return!!n&&!!n[e.slice(0,4)]}function nw(e,t,n=!0){return!e.split(",").some(r=>!vW(r,t,n))}function vW(e,t,n=!0){var r;const o=nv(n);return(r=o?.isTypeSupported(rw(e,t)))!=null?r:!1}function rw(e,t){return`${t}/mp4;codecs=${e}`}function Kse(e){if(e){const t=e.substring(0,4);return g1.video[t]}return 2}function _I(e){const t=Dye();return e.split(",").reduce((n,r)=>{const a=t&&qL(r)?9:g1.video[r];return a?(a*2+n)/(n?3:2):(g1.audio[r]+n)/(n?2:1)},0)}const RB={};function Owt(e,t=!0){if(RB[e])return RB[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let o=0;oOwt(n.toLowerCase(),t))}function Bwt(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)&&(qse(e,"audio")||qse(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 qse(e,t){return pW(e,t)&&vW(e,t)}function Fwt(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 jwt(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 Yse(e){const t=nv(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 OV(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Vwt={supported:!0,powerEfficient:!0,smooth:!0},zwt={supported:!1,smooth:!1,powerEfficient:!1},Oye={supported:!0,configurations:[],decodingInfoResults:[Vwt]};function Nye(e,t){return{supported:!1,configurations:t,decodingInfoResults:[zwt],error:e}}function Uwt(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,y)=>{if(y){const b=t.groups[y];if(!b)throw new Error(`Audio track group ${y} not found`);Object.keys(b.channels).forEach(w=>{m[w]=(m[w]||0)+b.channels[w]})}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&&fn(h)&&Object.keys(p).some(m=>parseInt(m)>h)}function Bye(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(Oye);const a=[],s=Hwt(e),l=s.length,c=Wwt(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))&&Dye())return Promise.resolve(Nye(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=Kwt(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 Hwt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=Fye(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:rw(jwt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(f.transferFunction=l),f}):[]}function Wwt(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=Fye(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(y=>{const b={contentType:rw(y,"audio"),bitrate:n?Gwt(y,a):a};m&&(b.channels=""+m),h.push(b)})}return h},s):s},[]):[]}function Gwt(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 Fye(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function Kwt(e){let t="";const{audio:n,video:r}=e;if(r){const o=OV(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=OV(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const NV=["NONE","TYPE-0","TYPE-1",null];function qwt(e){return NV.indexOf(e)>-1}const EI=["SDR","PQ","HLG"];function Ywt(e){return!!e&&EI.indexOf(e)>-1}var Y4={No:"",Yes:"YES",v2:"v2"};function Xse(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 Jse(this._audioGroups,t)}hasSubtitleGroup(t){return Jse(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 Jse(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function Xwt(){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 Zwt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||EI.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&Xwt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const Jwt=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}},Hi=(e,t)=>JSON.stringify(e,Jwt(t));function Qwt(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,y=1/0,b=1/0,w=1/0,C=0,x=[];const{preferHDR:_,allowedVideoRanges:E}=Zwt(t,o);for(let O=a.length;O--;){const F=e[a[O]];h||(h=F.channels[2]>0),m=Math.min(m,F.minHeight),y=Math.min(y,F.minFramerate),b=Math.min(b,F.minBitrate),E.filter(j=>F.videoRanges[j]>0).length>0&&(p=!0)}m=fn(m)?m:0,y=fn(y)?y:0;const S=Math.max(1080,m),I=Math.max(30,y);b=fn(b)?b:n,n=Math.max(b,n),p||(t=void 0);const $=a.length>1;return{codecSet:a.reduce((O,F)=>{const M=e[F];if(F===O)return O;if(x=p?E.filter(j=>M.videoRanges[j]>0):[],$){if(M.minBitrate>n)return md(F,`min bitrate of ${M.minBitrate} > current estimate of ${n}`),O;if(!M.hasDefaultAudio)return md(F,"no renditions with default or auto-select sound found"),O;if(l&&F.indexOf(l.substring(0,4))%5!==0)return md(F,`audio codec preference "${l}" not found`),O;if(s&&!f){if(!M.channels[s])return md(F,`no renditions with ${s} channel sound found (channels options: ${Object.keys(M.channels)})`),O}else if((!l||f)&&h&&M.channels[2]===0)return md(F,"no renditions with stereo sound found"),O;if(M.minHeight>S)return md(F,`min resolution of ${M.minHeight} > maximum of ${S}`),O;if(M.minFramerate>I)return md(F,`min framerate of ${M.minFramerate} > maximum of ${I}`),O;if(!x.some(j=>M.videoRanges[j]>0))return md(F,`no variants with VIDEO-RANGE of ${Hi(x)} found`),O;if(c&&F.indexOf(c.substring(0,4))%5!==0)return md(F,`video codec preference "${c}" not found`),O;if(M.maxScore=_I(O)||M.fragmentError>e[O].fragmentError)?O:(w=M.minIndex,C=M.maxScore,F)},void 0),videoRanges:x,preferHDR:_,minFramerate:y,minBitrate:b,minIndex:w}}function md(e,t){Ti.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function jye(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 eCt(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 Qse(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 Pd(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 gm(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 rCt(e,t,n,r,o){const a=t[r],l=t.reduce((m,y,b)=>{const w=y.uri;return(m[w]||(m[w]=[])).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=eae(t,r,m=>{if(m.videoRange!==c||m.frameRate!==f||m.codecSet.substring(0,4)!==h)return!1;const y=m.audioGroups,b=n.filter(w=>!y||y.indexOf(w.groupId)!==-1);return Pd(e,b,o)>-1});return p>-1?p:eae(t,r,m=>{const y=m.audioGroups,b=n.filter(w=>!y||y.indexOf(w.groupId)!==-1);return Pd(e,b,o)>-1})}function eae(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,y=s.minAutoLevel,b=o.level,w=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||b<=y){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const C=w>-1&&w!==b,x=!!n||C;if(!x&&(c.paused||!c.playbackRate||!c.readyState))return;const _=s.mainForwardBufferInfo;if(!x&&_===null)return;const E=this.bwEstimator.getEstimateTTFB(),S=Math.abs(c.playbackRate);if(m<=Math.max(E,1e3*(p/(S*2))))return;const I=_?_.len/S:0,$=h.loading.first?h.loading.first-h.loading.start:-1,L=h.loaded&&$>-1,O=this.getBwEstimate(),F=s.levels,M=F[b],j=Math.max(h.loaded,Math.round(p*(o.bitrate||M.averageBitrate)/8));let V=L?m-$:m;V<1&&L&&(V=Math.min(m,h.loaded*8/O));const W=L?h.loaded*1e3/V:0,U=E/1e3,X=W?(j-h.loaded)/W:j*8/O+U;if(X<=I)return;const G=W?W*8:O,Y=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,ee=this.hls.config.abrBandWidthUpFactor;let te=Number.POSITIVE_INFINITY,J;for(J=b-1;J>y;J--){const ie=F[J].maxBitrate,Ce=!F[J].details||Y;if(te=this.getTimeToLoadFrag(U,G,p*ie,Ce),te=X||te>p*10)return;L?this.bwEstimator.sample(m-Math.min(E,$),h.loaded):this.bwEstimator.sampleTTFB(m);const Z=F[J].maxBitrate;this.getBwEstimate()*ee>Z&&this.resetEstimator(Z);const ce=this.findBestLevel(Z,y,J,0,I,1,1);ce>-1&&(J=ce),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: ${I.toFixed(3)} s Estimated load time for current fragment: ${X.toFixed(3)} s Estimated load time for down switch fragment: ${te.toFixed(3)} s TTFB estimate: ${$|0} ms Current BW estimate: ${fn(O)?O|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${J} @ ${Z|0} bps`),s.nextLoadLevel=s.nextAutoLevel=J,this.clearTimer();const ye=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===J&&J>0){const ie=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${J>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${ie.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,J>y){let Ce=this.findBestLevel(this.hls.levels[y].bitrate,y,J,0,ie,1,1);Ce===-1&&(Ce=y),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ce,this.resetEstimator(this.hls.levels[Ce].bitrate)}}};C||X>te*2?ye():this.timer=self.setInterval(ye,te*1e3),s.trigger(pe.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 uwt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.FRAG_LOADING,this.onFragLoading,this),t.on(pe.FRAG_LOADED,this.onFragLoaded,this),t.on(pe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(pe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.FRAG_LOADING,this.onFragLoading,this),t.off(pe.FRAG_LOADED,this.onFragLoaded,this),t.off(pe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(pe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(pe.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 Et.BUFFER_ADD_CODEC_ERROR:case Et.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Et.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;fn(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===_n.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(pe.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!==_n.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 C=this.findBestLevel(c,s,o,f,0,h,p);if(C>=0)return this.rebufferNotice=-1,C}let m=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!f){const C=this.bitrateTestDelay;C&&(m=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-C,this.info(`bitrate test took ${Math.round(1e3*C)}ms, set first fragment max fetchDuration to ${Math.round(1e3*m)} ms`),h=p=1)}const y=this.findBestLevel(c,s,o,f,m,h,p);if(this.rebufferNotice!==y&&(this.rebufferNotice=y,this.info(`${f?"rebuffering expected":"buffer is empty"}, optimal quality level ${y}`)),y>-1)return y;const b=r.levels[s],w=r.loadLevelObj;return w&&b?.bitrate=n;G--){var X;const Y=b[G],ee=G>p;if(!Y)continue;if(x.useMediaCapabilities&&!Y.supportedResult&&!Y.supportedPromise){const Ce=navigator.mediaCapabilities;typeof Ce?.decodingInfo=="function"&&Uwt(Y,M,$,L,t,O)?(Y.supportedPromise=Bye(Y,M,Ce,this.supportedCache),Y.supportedPromise.then(Re=>{if(!this.hls)return;Y.supportedResult=Re;const be=this.hls.levels,Fe=be.indexOf(Y);Re.error?this.warn(`MediaCapabilities decodingInfo error: "${Re.error}" for level ${Fe} ${Hi(Re)}`):Re.supported?Re.decodingInfoResults.some(De=>De.smooth===!1||De.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${Fe} not smooth or powerEfficient: ${Hi(Re)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Fe} ${Hi(Re)}`),Fe>-1&&be.length>1&&(this.log(`Removing unsupported level ${Fe}`),this.hls.removeLevel(Fe),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Re=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Re}`)})):Y.supportedResult=Oye}if((I&&Y.codecSet!==I||$&&Y.videoRange!==$||ee&&L>Y.frameRate||!ee&&L>0&&LCe.smooth===!1))&&(!S||G!==j)){U.push(G);continue}const te=Y.details,J=(y?te?.partTarget:te?.averagetargetduration)||V;let Z;ee?Z=l*t:Z=s*t;const ce=V&&o>=V*2&&a===0?Y.averageBitrate:Y.maxBitrate,ye=this.getTimeToLoadFrag(W,Z,ce*J,te===void 0);if(Z>=ce&&(G===h||Y.loadError===0&&Y.fragmentError===0)&&(ye<=W||!fn(ye)||E&&!this.bitrateTestDelay||ye${G} adjustedbw(${Math.round(Z)})-bitrate=${Math.round(Z-ce)} ttfb:${W.toFixed(1)} avgDuration:${J.toFixed(1)} maxFetchDuration:${f.toFixed(1)} fetchDuration:${ye.toFixed(1)} firstSelection:${S} codecSet:${Y.codecSet} videoRange:${Y.videoRange} hls.loadLevel:${C}`)),S&&(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 Vye={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 oCt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!fn(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)&&tae(n,r,a)===0||sCt(a,e,Math.min(o,r))))return a;const s=Vye.search(t,tae.bind(null,n,r));return s&&(s!==e||!a)?s:a}function sCt(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 tae(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 aCt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function zye(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 Vye.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function AI(e){switch(e.details){case Et.FRAG_LOAD_TIMEOUT:case Et.KEY_LOAD_TIMEOUT:case Et.LEVEL_LOAD_TIMEOUT:case Et.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Uye(e){return e.details.startsWith("key")}function Hye(e){return Uye(e)&&!!e.frag&&!e.frag.decryptdata}function nae(e,t){const n=AI(t);return e.default[`${n?"timeout":"error"}Retry`]}function mW(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function rae(e){return xi(xi({},e),{errorRetry:null,timeoutRetry:null})}function LI(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function BV(e){return e===0&&navigator.onLine===!1}var ea={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},gu={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class uCt extends pc{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(pe.ERROR,this.onError,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(pe.ERROR,this.onError,this),t.off(pe.ERROR,this.onErrorOut,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===_n.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 Et.FRAG_LOAD_ERROR:case Et.FRAG_LOAD_TIMEOUT:case Et.KEY_LOAD_ERROR:case Et.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Et.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=Gy();return}case Et.FRAG_GAP:case Et.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=ea.SendAlternateToPenaltyBox;return}case Et.LEVEL_EMPTY_ERROR:case Et.LEVEL_PARSING_ERROR:{var s;const c=n.parent===_n.MAIN?n.level:o.loadLevel;n.details===Et.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 Et.LEVEL_LOAD_ERROR:case Et.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case Et.AUDIO_TRACK_LOAD_ERROR:case Et.AUDIO_TRACK_LOAD_TIMEOUT:case Et.SUBTITLE_LOAD_ERROR:case Et.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===$r.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===$r.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=ea.SendAlternateToPenaltyBox,n.errorAction.flags=gu.MoveAllAlternatesMatchingHost;return}}return;case Et.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:ea.SendAlternateToPenaltyBox,flags:gu.MoveAllAlternatesMatchingHDCP};return;case Et.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Et.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Et.KEY_SYSTEM_NO_SESSION:n.errorAction={action:ea.SendAlternateToPenaltyBox,flags:gu.MoveAllAlternatesMatchingKey};return;case Et.BUFFER_ADD_CODEC_ERROR:case Et.REMUX_ALLOC_ERROR:case Et.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case Et.INTERNAL_EXCEPTION:case Et.BUFFER_APPENDING_ERROR:case Et.BUFFER_FULL_ERROR:case Et.LEVEL_SWITCH_ERROR:case Et.BUFFER_STALLED_ERROR:case Et.BUFFER_SEEK_OVER_HOLE:case Et.BUFFER_NUDGE_ON_STALL:n.errorAction=Gy();return}n.type===Pn.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=Gy())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=nae(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(LI(o,a,AI(t),t.response))return{action:ea.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=nae(Uye(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Et.FRAG_GAP&&o.fragmentError++,!Hye(t)&&LI(l,c,AI(t),t.response)))return{action:ea.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===Et.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:m,minAutoLevel:y,maxAutoLevel:b}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const w=(a=t.frag)==null?void 0:a.type,x=(w===_n.AUDIO&&f===Et.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(f===Et.BUFFER_ADD_CODEC_ERROR||f===Et.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:$})=>o.audioCodec!==$),E=t.sourceBufferName==="video"&&(f===Et.BUFFER_ADD_CODEC_ERROR||f===Et.BUFFER_APPEND_ERROR)&&p.some(({codecSet:$,audioCodec:L})=>o.codecSet!==$&&o.audioCodec===L),{type:S,groupId:I}=(s=t.context)!=null?s:{};for(let $=p.length;$--;){const L=($+m)%p.length;if(L!==m&&L>=y&&L<=b&&p[L].loadError===0){var l,c;const O=p[L];if(f===Et.FRAG_GAP&&w===_n.MAIN&&t.frag){const F=p[L].details;if(F){const M=fg(t.frag,F.fragments,t.frag.start);if(M!=null&&M.gap)continue}}else{if(S===$r.AUDIO_TRACK&&O.hasAudioGroup(I)||S===$r.SUBTITLE_TRACK&&O.hasSubtitleGroup(I))continue;if(w===_n.AUDIO&&(l=o.audioGroups)!=null&&l.some(F=>O.hasAudioGroup(F))||w===_n.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some(F=>O.hasSubtitleGroup(F))||x&&o.audioCodec===O.audioCodec||E&&o.codecSet===O.codecSet||!x&&o.codecSet!==O.codecSet)continue}h=L;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:ea.SendAlternateToPenaltyBox,flags:gu.None,nextAutoLevel:h}}return{action:ea.SendAlternateToPenaltyBox,flags:gu.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case ea.DoNothing:break;case ea.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==Et.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=NV[NV.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) ${al(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=ey(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),YT(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=iae(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=ey(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 y=Math.max(s,o.start(h)),b=Math.min(l,o.end(h));b>y&&(a.partial=!0,a.time.push({startPTS:y,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&&YT(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||YT(n))}getState(t){const n=ey(t),r=this.fragments[n];return r?r.buffered?YT(r)?Es.PARTIAL:Es.OK:Es.APPENDING:Es.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=ey(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=ey(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=ey(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=iae(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 YT(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 ey(e){return`${e.type}_${e.level}_${e.sn}`}function iae(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var rv={cbc:0,ctr:1};class dCt{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 rv.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case rv.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 fCt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class hCt{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],y=new Uint32Array(256);let b=0,w=0,C=0;for(C=0;C<256;C++)C<128?y[C]=C<<1:y[C]=C<<1^283;for(C=0;C<256;C++){let x=w^w<<1^w<<2^w<<3^w<<4;x=x>>>8^x&255^99,t[b]=x,n[x]=b;const _=y[b],E=y[_],S=y[E];let I=y[x]*257^x*16843008;o[b]=I<<24|I>>>8,a[b]=I<<16|I>>>16,s[b]=I<<8|I>>>24,l[b]=I,I=S*16843009^E*65537^_*257^b*16843008,f[x]=I<<24|I>>>8,h[x]=I<<16|I>>>16,p[x]=I<<8|I>>>24,m[x]=I,b?(b=_^y[y[y[S^_]]],w^=y[y[w]]):b=w=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!==rv.cbc||n.byteLength!==16)return Ti.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=dc(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 hCt),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 pCt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new dCt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(Ti.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%mCt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(Ti.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const oae=Math.pow(2,17);class gCt{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 Vf({type:Pn.NETWORK_ERROR,details:Et.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(aae(t));return}else t.gap=!1;const f=this.loader=a?new a(o):new s(o),h=sae(t);t.loader=f;const p=rae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:oae};t.stats=f.stats;const y={onSuccess:(b,w,C,x)=>{this.resetLoader(t,f);let _=b.data;C.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(_.slice(0,16)),_=_.slice(16)),l({frag:t,part:null,payload:_,networkDetails:x})},onError:(b,w,C,x)=>{this.resetLoader(t,f),c(new Vf({type:Pn.NETWORK_ERROR,details:Et.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:xi({url:r,data:void 0},b),error:new Error(`HTTP Error ${b.code} ${b.text}`),networkDetails:C,stats:x}))},onAbort:(b,w,C)=>{this.resetLoader(t,f),c(new Vf({type:Pn.NETWORK_ERROR,details:Et.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:C,stats:b}))},onTimeout:(b,w,C)=>{this.resetLoader(t,f),c(new Vf({type:Pn.NETWORK_ERROR,details:Et.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:C,stats:b}))}};n&&(y.onProgress=(b,w,C,x)=>n({frag:t,part:null,payload:C,networkDetails:x})),f.load(h,m,y)})}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(aae(t,n));return}const f=this.loader=a?new a(o):new s(o),h=sae(t,n);t.loader=f;const p=rae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:oae};n.stats=f.stats,f.load(h,m,{onSuccess:(y,b,w,C)=>{this.resetLoader(t,f),this.updateStatsFromPart(t,n);const x={frag:t,part:n,payload:y.data,networkDetails:C};r(x),l(x)},onError:(y,b,w,C)=>{this.resetLoader(t,f),c(new Vf({type:Pn.NETWORK_ERROR,details:Et.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:xi({url:h.url,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:w,stats:C}))},onAbort:(y,b,w)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,f),c(new Vf({type:Pn.NETWORK_ERROR,details:Et.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:w,stats:y}))},onTimeout:(y,b,w)=>{this.resetLoader(t,f),c(new Vf({type:Pn.NETWORK_ERROR,details:Et.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:w,stats:y}))}})})}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 sae(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(fn(o)&&fn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&yCt((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 aae(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:Pn.MEDIA_ERROR,details:Et.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new Vf(r)}function yCt(e){return e==="AES-128"||e==="AES-256"}class Vf extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class Wye extends pc{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 yW{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=XT(),this.buffering={audio:XT(),video:XT(),audiovideo:XT()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function XT(){return{start:0,executeStart:0,executeEnd:0,end:0}}const lae={length:0,start:()=>0,end:()=>0};class ir{static isBuffered(t,n){if(t){const r=ir.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=ir.getBuffered(t);return ir.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 cae(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 bCt(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 SCt=/^(\d+)x(\d+)$/,dae=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Co{constructor(t,n){typeof t=="string"&&(t=Co.parseAttrList(t,n)),Mi(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=SCt.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(dae.lastIndex=0;(r=dae.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=FV(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":Ti.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const kCt="com.apple.hls.interstitial";function wCt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function CCt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class Kye{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]){Ti.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=Mi(new Co({}),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"]);fn(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?(Ti.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(fn(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===kCt}get isValid(){return!!this.id&&!this._badValueForSameId&&fn(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 xCt=10;class _Ct{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?fn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||xCt}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 fae(e,t){return!e&&!t?!0:!e||!t?!1:PI(e,t)}function Ky(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function bW(e){switch(e){case"AES-128":case"AES-256":return rv.cbc;case"AES-256-CTR":return rv.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function SW(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function jV(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function TCt(e){const t=jV(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 Yye(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=SW(s)):n=TCt(s)}}return n}const $I=typeof self<"u"?self:void 0;var To={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},oa={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 oa.FAIRPLAY:return To.FAIRPLAY;case oa.PLAYREADY:return To.PLAYREADY;case oa.WIDEVINE:return To.WIDEVINE;case oa.CLEARKEY:return To.CLEARKEY}}function DB(e){switch(e){case To.FAIRPLAY:return oa.FAIRPLAY;case To.PLAYREADY:return oa.PLAYREADY;case To.WIDEVINE:return oa.WIDEVINE;case To.CLEARKEY:return oa.CLEARKEY}}function k2(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[To.FAIRPLAY,To.WIDEVINE,To.PLAYREADY,To.CLEARKEY].filter(o=>!!t[o]):[];return!r[To.WIDEVINE]&&n&&r.push(To.WIDEVINE),r}const Xye=(function(e){return $I!=null&&(e=$I.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function ECt(e,t,n,r){let o;switch(e){case To.FAIRPLAY:o=["cenc","sinf"];break;case To.WIDEVINE:case To.PLAYREADY:o=["cenc"];break;case To.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return ICt(o,t,n,r)}function ICt(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 ACt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function Zye(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=SW(l).subarray(0,16);return qye(c),c}}return null}let ZT={};class qm{static clearKeyUriToKeyIdMap(){ZT={}}static setKeyIdForUri(t,n){ZT[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&&!Ky(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(_ye(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)&&fae(t.iv,this.iv)&&fae(t.keyId,this.keyId)}isSupported(){if(this.method){if(Ky(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case oa.FAIRPLAY:case oa.WIDEVINE:case oa.PLAYREADY:case oa.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(Ky(this.method)){let a=this.iv;return a||(typeof t!="number"&&(Ti.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=PCt(t)),new qm(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=ZT[this.uri];if(a&&!PI(this.keyId,a)&&qm.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=Yye(this.uri);if(r)switch(this.keyFormat){case oa.WIDEVINE:if(this.pssh=r,!this.keyId){const a=Rwt(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=hae(n));break;case oa.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Mwt(a,null,r),this.keyId=Zye(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=LCt(n),a||(a=hae(n),a||(a=ZT[this.uri])),a&&(this.keyId=a,qm.setKeyIdForUri(this.uri,a))}return this}}function LCt(e){const t=e?.[oa.WIDEVINE];return t?t.keyId:null}function hae(e){const t=e?.[oa.PLAYREADY];if(t){const n=Yye(t.uri);if(n)return Zye(n)}return null}function PCt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const pae=/#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,vae=/#EXT-X-MEDIA:(.*)/g,$Ct=/^#EXT(?:INF|-X-TARGETDURATION):/m,OB=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),MCt=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 $d{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(vae.lastIndex=0;(o=vae.exec(t))!==null;){const f=new Co(o[1],r),h=f.TYPE;if(h){const p=l[h],m=a[h]||[];a[h]=m;const y=f.LANGUAGE,b=f["ASSOC-LANGUAGE"],w=f.CHANNELS,C=f.CHARACTERISTICS,x=f["INSTREAM-ID"],_={attrs:f,bitrate:0,id:c++,groupId:f["GROUP-ID"]||"",name:f.NAME||y||"",type:h,default:f.bool("DEFAULT"),autoselect:f.bool("AUTOSELECT"),forced:f.bool("FORCED"),lang:y,url:f.URI?$d.resolve(f.URI,n):""};if(b&&(_.assocLang=b),w&&(_.channels=w),C&&(_.characteristics=C),x&&(_.instreamId=x),p!=null&&p.length){const E=$d.findGroup(p,_.groupId)||p[0];bae(_,E,"audioCodec"),bae(_,E,"textCodec")}m.push(_)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},f=new _Ct(n),h=f.fragments,p=[];let m=null,y=0,b=0,w=0,C=0,x=0,_=null,E=new $B(o,c),S,I,$,L=-1,O=!1,F=null,M;if(OB.lastIndex=0,f.m3u8=t,f.hasVariableRefs=uae(t),((l=OB.exec(t))==null?void 0:l[0])!=="#EXTM3U")return f.playlistParsingError=new Error("Missing format identifier #EXTM3U"),f;for(;(S=OB.exec(t))!==null;){O&&(O=!1,E=new $B(o,c),E.playlistOffset=w,E.setStart(w),E.sn=y,E.cc=C,x&&(E.bitrate=x),E.level=r,m&&(E.initSegment=m,m.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),F&&(E.setByteRange(F),F=null)));const U=S[1];if(U){E.duration=parseFloat(U);const X=(" "+S[2]).slice(1);E.title=X||null,E.tagList.push(X?["INF",U,X]:["INF",U])}else if(S[3]){if(fn(E.duration)){E.playlistOffset=w,E.setStart(w),$&&kae(E,$,f),E.sn=y,E.level=r,E.cc=C,h.push(E);const X=(" "+S[3]).slice(1);E.relurl=FV(f,X),VV(E,_,p),_=E,w+=E.duration,y++,b=0,O=!0}}else{if(S=S[0].match(MCt),!S){Ti.warn("No matches on slow regex match for level playlist!");continue}for(I=1;I0&&wae(f,X,S),y=f.startSN=parseInt(G);break;case"SKIP":{f.skippedSegments&&Rf(f,X,S);const ee=new Co(G,f),te=ee.decimalInteger("SKIPPED-SEGMENTS");if(fn(te)){f.skippedSegments+=te;for(let Z=te;Z--;)h.push(null);y+=te}const J=ee.enumeratedString("RECENTLY-REMOVED-DATERANGES");J&&(f.recentlyRemovedDateranges=(f.recentlyRemovedDateranges||[]).concat(J.split(" ")));break}case"TARGETDURATION":f.targetduration!==0&&Rf(f,X,S),f.targetduration=Math.max(parseInt(G),1);break;case"VERSION":f.version!==null&&Rf(f,X,S),f.version=parseInt(G);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":f.live||Rf(f,X,S),f.live=!1;break;case"#":(G||Y)&&E.tagList.push(Y?[G,Y]:[G]);break;case"DISCONTINUITY":C++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([X]);break;case"BITRATE":E.tagList.push([X,G]),x=parseInt(G)*1e3,fn(x)?E.bitrate=x:x=0;break;case"DATERANGE":{const ee=new Co(G,f),te=new Kye(ee,f.dateRanges[ee.ID],f.dateRangeTagCount);f.dateRangeTagCount++,te.isValid||f.skippedSegments?f.dateRanges[te.id]=te:Ti.warn(`Ignoring invalid DATERANGE tag: "${G}"`),E.tagList.push(["EXT-X-DATERANGE",G]);break}case"DEFINE":{{const ee=new Co(G,f);"IMPORT"in ee?bCt(f,ee,s):cae(f,ee,n)}break}case"DISCONTINUITY-SEQUENCE":f.startCC!==0?Rf(f,X,S):h.length>0&&wae(f,X,S),f.startCC=C=parseInt(G);break;case"KEY":{const ee=mae(G,n,f);if(ee.isSupported()){if(ee.method==="NONE"){$=void 0;break}$||($={});const te=$[ee.keyFormat];te!=null&&te.matches(ee)||(te&&($=Mi({},$)),$[ee.keyFormat]=ee)}else Ti.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${G}"`);break}case"START":f.startTimeOffset=gae(G);break;case"MAP":{const ee=new Co(G,f);if(E.duration){const te=new $B(o,c);Sae(te,ee,r,$),m=te,E.initSegment=m,m.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime)}else{const te=E.byteRangeEndOffset;if(te){const J=E.byteRangeStartOffset;F=`${te-J}@${J}`}else F=null;Sae(E,ee,r,$),m=E,O=!0}m.cc=C;break}case"SERVER-CONTROL":{M&&Rf(f,X,S),M=new Co(G),f.canBlockReload=M.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=M.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&M.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=M.optionalFloat("PART-HOLD-BACK",0),f.holdBack=M.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{f.partTarget&&Rf(f,X,S);const ee=new Co(G);f.partTarget=ee.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ee=f.partList;ee||(ee=f.partList=[]);const te=b>0?ee[ee.length-1]:void 0,J=b++,Z=new Co(G,f),ce=new bwt(Z,E,c,J,te);ee.push(ce),E.duration+=ce.duration;break}case"PRELOAD-HINT":{const ee=new Co(G,f);f.preloadHint=ee;break}case"RENDITION-REPORT":{const ee=new Co(G,f);f.renditionReports=f.renditionReports||[],f.renditionReports.push(ee);break}default:Ti.warn(`line parsed but not handled: ${S}`);break}}}_&&!_.relurl?(h.pop(),w-=_.duration,f.partList&&(f.fragmentHint=_)):f.partList&&(VV(E,_,p),E.cc=C,f.fragmentHint=E,$&&kae(E,$,f)),f.targetduration||(f.playlistParsingError=new Error("Missing Target Duration"));const j=h.length,V=h[0],W=h[j-1];if(w+=f.skippedSegments*f.targetduration,w>0&&j&&W){f.averagetargetduration=w/j;const U=W.sn;f.endSN=U!=="initSegment"?U:0,f.live||(W.endList=!0),L>0&&(DCt(h,L),V&&p.unshift(V))}return f.fragmentHint&&(w+=f.fragmentHint.duration),f.totalduration=w,p.length&&f.dateRangeTagCount&&V&&Jye(p,f),f.endCC=C,f}}function Jye(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 y=m;y>f;y--){const b=h[y].programDateTime;if(t>=b&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>pW(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 bae(e,t,n){const r=t[n];r&&(e[n]=r)}function DCt(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 VV(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Sae(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 kae(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 Rf(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function wae(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function NB(e,t){const n=t.startPTS;if(fn(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 Qye(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(fn(h)){const x=Math.abs(h-n);e&&x>e.totalduration?s.warn(`media timestamps and playlist times differ by ${x}s for level ${t.level} ${e.url}`):fn(t.deltaPTS)?t.deltaPTS=Math.max(x,t.deltaPTS):t.deltaPTS=x,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 y=t.sn;if(!e||ye.endSN)return 0;let b;const w=y-e.startSN,C=e.fragments;for(C[w]=t,b=w;b>0;b--)NB(C[b],C[b-1]);for(b=w;b=0;h--){const p=o[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;FCt(e,t,(h,p,m,y)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const b=h.cc-p.cc;for(let w=m;w{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=NCt(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?Qye(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):e1e(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 NCt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=Mi({},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 Kye(r[c].attr,f);h.isValid?(a[c]=h,f||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Hi(r[c].attr)}"`)}),a):r}function BCt(e,t,n){if(e&&t){let r=0;for(let o=0,a=e.length;o<=a;o++){const s=e[o],l=t[o+r];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?n(s,l):r--}}}function FCt(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,y=p.relurl;if(m&&jCt(m,y)){t.playlistParsingError=Cae(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=Cae(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function Cae(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function e1e(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 jCt(e,t){return e!==t&&t?_ae(e)!==_ae(t):!1}function _ae(e){return e.replace(/\?[^?]*$/,"")}function ck(e,t){for(let r=0,o=e.length;re.startCC)}function Tae(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function o1e(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=ir.bufferInfo(f||c,p,s.maxBufferHole),y=!m.len;if(this.log(`Media seeking to ${fn(p)?p.toFixed(3):p}, state: ${h}, ${y?"out of":"in"} buffer`),this.state===Bt.ENDED)this.resetLoadingState();else if(l){const b=s.maxFragLookUpTolerance,w=l.start-b,C=l.start+l.duration+b;if(y||Cm.end){const x=p>C;(pb&&(this.lastCurrentTime=p),!this.loadingParts){const w=Math.max(m.end,p),C=this.shouldLoadParts(this.getLevelDetails(),w);C&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${w.toFixed(2)}`),this.loadingParts=C)}}this.hls.hasEnoughToStart||(this.log(`Setting ${y?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,y&&(this.startPosition=p)),y&&this.state===Bt.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 gCt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new gW(t.config)}registerListeners(){const{hls:t}=this;t.on(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(pe.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===Bt.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=Bt.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=ir.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===Bt.FRAG_LOADING||!this.fragCurrent&&s===Bt.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=Bt.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(pe.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===Bt.STOPPED||this.state===Bt.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===Es.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)===Es.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(pe.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&&Ky(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,bW(l.method)).catch(f=>{throw o.trigger(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:a}),f}).then(f=>{const h=self.performance.now();return o.trigger(pe.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===Bt.STOPPED||this.state===Bt.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!==Bt.STOPPED&&(this.state=Bt.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(pe.ERROR,{type:Pn.KEY_SYSTEM_ERROR,details:Et.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?UCt.toString(ir.getBuffered(r)):"(detached)"})`),us(t)){var o;if(t.type!==_n.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=Bt.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=Bt.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 yW(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=Bt.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(m=>{if(!this.fragContextChanged(m.frag))return this.hls.trigger(pe.KEY_LOADED,m),this.state===Bt.KEY_LOADING&&(this.state=Bt.IDLE),m}),this.hls.trigger(pe.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(us(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&&us(t)){const m=s.partList;if(m&&o){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const y=this.getNextPart(m,t,r);if(y>-1){const b=m[y];t=this.fragCurrent=b.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${b.index} (${y}/${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=Bt.FRAG_LOADING;let w;return l?w=l.then(C=>!C||this.fragContextChanged(C.frag)?null:this.doFragPartsLoad(t,b,n,o)).catch(C=>this.handleFragLoadError(C)):w=this.doFragPartsLoad(t,b,n,o).catch(C=>this.handleFragLoadError(C)),this.hls.trigger(pe.FRAG_LOADING,{frag:t,part:b,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):w}else if(!t.url||this.loadedEndOfParts(m,r))return Promise.resolve(null)}}if(us(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))}`),fn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Bt.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(pe.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 y=m.part;this.hls.trigger(pe.FRAG_LOADED,m);const b=xae(r.details,t.sn,p.index+1)||r1e(f,t.sn,p.index+1);if(b)h(b);else return a({frag:t,part:y,partsLoaded:c})}).catch(s)};h(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;n.frag&&n.details===Et.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===Pn.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(pe.ERROR,n)}else this.hls.trigger(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==Bt.PARSING){!this.fragCurrent&&this.state!==Bt.STOPPED&&this.state!==Bt.ERROR&&(this.state=Bt.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===_n.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?xae(c,a,s):null,h=f?f.fragment:n1e(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!==Bt.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=dc(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(pe.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!ir.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=ir.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(!fn(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=ir.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 ir.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=_n.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:y)||c.start:t;this.log(`Setting startPosition to ${b} to match start frag at live edge. mainStart: ${m} liveSyncPosition: ${y} 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===Es.OK||r===Es.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(Eae(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(Eae(this.config)&&t.type!==_n.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=oCt(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=zye(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||(y=this.media)!=null&&y.paused||!this.startFragRequested?0:f;m=fg(a,s,t,w)}else m=s[s.length-1];if(m){const b=m.sn-r.startSN,w=this.fragmentTracker.getState(m);if((w===Es.OK||w===Es.PARTIAL&&m.gap)&&(a=m),a&&m.sn===a.sn&&(!p||h[0].fragment.sn>m.sn||!r.live)&&m.level===a.level){const x=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&&us(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!==Bt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bt.IDLE)}onFragmentOrKeyLoadError(t,n){var r;if(n.chunkMeta&&!n.frag){const x=this.getCurrentContext(n.chunkMeta);x&&(n.frag=x.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===Et.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(o,!0);const l=n.errorAction;if(!l){this.state=Bt.ERROR;return}const{action:c,flags:f,retryCount:h=0,retryConfig:p}=l,m=!!p,y=m&&c===ea.RetryRequest,b=m&&!l.resolved&&f===gu.MoveAllAlternatesMatchingHost,w=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!y&&b&&us(o)&&!o.endList&&w&&!Hye(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((y||b)&&h=n||r&&!BV(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Bt.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===Bt.PARSING||this.state===Bt.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===_n.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Bt.STOPPED&&(this.state=Bt.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=ir.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===Bt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Bt.STOPPED&&(this.state=Bt.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:Qye(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(pe.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(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.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=Bt.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(pe.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===_n.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 Eae(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class a1e{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=HCt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function HCt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function ZCt(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 y=new Error(`invalid ADTS sampling index:${s}`);e.emit(pe.ERROR,pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.FRAG_PARSING_ERROR,fatal:!0,error:y,reason:y.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 Ti.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 u1e(e,t){return e[t]===255&&(e[t+1]&246)===240}function c1e(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 JCt(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||RI(e,o)}return!1}function d1e(e,t,n,r,o){if(!e.samplerate){const a=ZCt(t,n,r,o);if(!a)return;Mi(e,a)}}function f1e(e){return 1024*9e4/e}function txt(e,t){const n=c1e(e,t);if(t+n<=e.length){const r=xW(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function h1e(e,t,n,r,o){const a=f1e(e.samplerate),s=r+o*a,l=txt(t,n);let c;if(l){const{frameLength:p,headerLength:m}=l,y=m+p,b=Math.max(0,n+y-t.length);b?(c=new Uint8Array(y-m),c.set(t.subarray(n+m,t.length),0)):c=t.subarray(n+m,n+y);const w={unit:c,pts:s};return b||e.samples.push(w),{sample:w,length:y,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 nxt(e,t){return CW(e,t)&&YL(e,t+6)+10<=e.length-t}function rxt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function FB(e,t=0,n=1/0){return ixt(e,t,n,Uint8Array)}function ixt(e,t,n,r){const o=oxt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=sxt(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 oxt(e){return e instanceof ArrayBuffer?e:e.buffer}function sxt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function axt(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=Eu(FB(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=Eu(FB(e.data,3+r,s));let c;return o==="-->"?c=Eu(FB(e.data,4+r+s)):c=rxt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function lxt(e){if(e.size<2)return;const t=Eu(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function uxt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=Eu(e.data.subarray(n),!0);n+=r.length+1;const o=Eu(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=Eu(e.data.subarray(1));return{key:e.type,info:"",data:t}}function cxt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=Eu(e.data.subarray(n),!0);n+=r.length+1;const o=Eu(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=Eu(e.data);return{key:e.type,info:"",data:t}}function dxt(e){return e.type==="PRIV"?lxt(e):e.type[0]==="W"?cxt(e):e.type==="APIC"?axt(e):uxt(e)}function fxt(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 JT=10,hxt=10;function p1e(e){let t=0;const n=[];for(;CW(e,t);){const r=YL(e,t+6);e[t+5]>>6&1&&(t+=JT),t+=JT;const o=t+r;for(;t+hxt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Su.audioId3,duration:Number.POSITIVE_INFINITY});o{if(fn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let QT=null;const mxt=[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],gxt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],yxt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],bxt=[0,1,1,4];function m1e(e,t,n,r,o){if(n+24>t.length)return;const a=g1e(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 g1e(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=mxt[c*14+o-1]*1e3,p=gxt[(n===3?0:n===2?1:2)*3+a],m=l===3?1:2,y=yxt[n][r],b=bxt[r],w=y*8*b,C=Math.floor(y*f/p+s)*b;if(QT===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);QT=E?parseInt(E[1]):0}return!!QT&&QT<=87&&r===2&&f>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:m,frameLength:C,samplesPerFrame:w}}}function EW(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function y1e(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 y=(t[n+6]<<8|t[n+7])>>12-m&1,w=[2,1,2,3,3,4,4,5][p]+y,C=t[n+5]>>3,x=t[n+5]&7,_=new Uint8Array([a<<6|C<<1|x>>2,(x&3)<<6|p<<3|y<<2|c>>4,c<<4&224]),E=1536/l*9e4,S=r+o*E,I=t.subarray(n,n+h);return e.config=_,e.channelCount=w,e.samplerate=l,e.samples.push({unit:I,pts:S}),h}class Cxt extends TW{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=sw(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&_W(n)!==void 0&&S1e(t,r)<=16)return!1;for(let o=t.length;r{const s=Pwt(a);if(xxt.test(s.schemeIdUri)){const l=Aae(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:Su.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Aae(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Su.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 Aae(e,t){return fn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class Txt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new gW(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,rv.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 w1e{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,y=0;for(a===-1&&(m=0,y=this.getNALuType(n,0),a=0,c=1);c=0){const b={data:n.subarray(m,h),type:y};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=dc(b.data,n.subarray(0,h)),b.state=0))}c=0&&a>=0){const b={data:n.subarray(m,o),type:y,state:a};l.push(b)}if(l.length===0){const b=this.getLastNalUnit(t.samples);b&&(b.data=dc(b.data,n))}return t.naluState=a,l}}class dk{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&&Ti.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 Ext extends w1e{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 w=!1;l=!0;const C=f.data;if(c&&C.length>4){const x=this.readSliceType(C);(x===2||x===4||x===7||x===9)&&(w=!0)}if(w){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=w;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,hW(f.data,1,r.pts,n.samples);break}case 7:{var y,b;l=!0,c=!0;const w=f.data,C=this.readSPS(w);if(!t.sps||t.width!==C.width||t.height!==C.height||((y=t.pixelRatio)==null?void 0:y[0])!==C.pixelRatio[0]||((b=t.pixelRatio)==null?void 0:b[1])!==C.pixelRatio[1]){t.width=C.width,t.height=C.height,t.pixelRatio=C.pixelRatio,t.sps=[w];const x=w.subarray(1,4);let _="avc1.";for(let E=0;E<3;E++){let S=x[E].toString(16);S.length<2&&(S="0"+S),_+=S}t.codec=_}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 dk(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,hW(f.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=Mi(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 y=this.readSPS(f.data);t.width=y.width,t.height=y.height,t.pixelRatio=y.pixelRatio,t.codec=y.codecString,t.sps=[],typeof t.params!="object"&&(t.params={});for(const b in y.params)t.params[b]=y.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 y=this.readPPS(f.data);for(const b in y)t.params[b]=y[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 dk(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 dk(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(),y=n.readUByte(),b=n.readUByte(),w=n.readUByte(),C=n.readUByte(),x=n.readUByte(),_=[],E=[];for(let Oe=0;Oe0)for(let Oe=r;Oe<8;Oe++)n.readBits(2);for(let Oe=0;Oe1&&n.readEG();for(let pt=0;pt0&&et<16?(ce=Pt[et-1],ye=$t[et-1]):et===255&&(ce=n.readBits(16),ye=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(),be=n.readBoolean(),be&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(Ce=n.readBits(32),Re=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const $t=n.readBoolean(),vt=n.readBoolean();let Nt=!1;($t||vt)&&(Nt=n.readBoolean(),Nt&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),Nt&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let dt=0;dt<=r;dt++){ie=n.readBoolean();const lt=ie||n.readBoolean();let Pe=!1;lt?n.readEG():Pe=n.readBoolean();const Ae=Pe?1:n.readUEG()+1;if($t)for(let Xe=0;Xe>Oe&1)<<31-Oe)>>>0;let de=he.toString(16);return s===1&&de==="2"&&(de="6"),{codecString:`hvc1.${qe}${s}.${de}.${a?"H":"L"}${x}.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,y,b,w,C],general_level_idc:x,bit_depth:V+8,bit_depth_luma_minus8:V,bit_depth_chroma_minus8:W,min_spatial_segmentation_idc:Z,chroma_format_idc:S,frame_rate:{fixed:ie,fps:Re/Ce}},width:De,height:Ge,pixelRatio:[ce,ye]}}readPPS(t){const n=new dk(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 Bs=188;class xp{constructor(t,n,r,o){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.logger=o,this.videoParser=null}static probe(t,n){const r=xp.syncOffset(t);return r>0&&n.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(t){const n=t.length;let r=Math.min(Bs*5,n-Bs)+1,o=0;for(;o1&&(s===0&&l>2||c+Bs>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:Iye[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,o){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=xp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=xp.createTrack("audio",o),this._id3Track=xp.createTrack("id3"),this._txtTrack=xp.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,o=!1){r||(this.sampleAes=null);let a;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,f=this._txtTrack;let h=s.pid,p=s.pesData,m=l.pid,y=c.pid,b=l.pesData,w=c.pesData,C=null,x=this.pmtParsed,_=this._pmtId,E=t.length;if(this.remainderData&&(t=dc(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let j;if(M>1){if(j=L+5+t[L+4],j===L+Bs)continue}else j=L+4;switch(F){case h:O&&(p&&(a=ty(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(j,L+Bs)),p.size+=L+Bs-j);break;case m:if(O){if(b&&(a=ty(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(j,L+Bs)),b.size+=L+Bs-j);break;case y:O&&(w&&(a=ty(w,this.logger))&&this.parseID3PES(c,a),w={data:[],size:0}),w&&(w.data.push(t.subarray(j,L+Bs)),w.size+=L+Bs-j);break;case 0:O&&(j+=t[j]+1),_=this._pmtId=Axt(t,j);break;case _:{O&&(j+=t[j]+1);const V=Lxt(t,j,this.typeSupported,r,this.observer,this.logger);h=V.videoPid,h>0&&(s.pid=h,s.segmentCodec=V.segmentVideoCodec),m=V.audioPid,m>0&&(l.pid=m,l.segmentCodec=V.segmentAudioCodec),y=V.id3Pid,y>0&&(c.pid=y),C!==null&&!x&&(this.logger.warn(`MPEG-TS PMT found at ${L} after unknown PID '${C}'. Backtracking to sync byte @${S} to parse all TS packets.`),C=null,L=S-188),x=this.pmtParsed=!0;break}case 17:case 8191:break;default:C=F;break}}else I++;I>0&&HV(this.observer,new Error(`Found ${I} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=b,c.pesData=w;const $={audioTrack:l,videoTrack:s,id3Track:c,textTrack:f};return o&&this.extractRemainingSamples($),$}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=ty(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=ty(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=ty(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 Txt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new Ext:t==="hevc"&&(this.videoParser=new Ixt))}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=dc(o.sample.unit,a);else{const y=m-p;o.sample.unit.set(a.subarray(0,p),y),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=Mi({},n,{type:this._videoTrack?Su.emsg:Su.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function UV(e,t){return((e[t+1]&31)<<8)+e[t+2]}function Axt(e,t){return(e[t+10]&31)<<8|e[t+11]}function Lxt(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,y=p;for(;y>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 w=e[m+1]+2;m+=w,y-=w}}break;case 194:case 135:return HV(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 HV(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(pe.ERROR,pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function jB(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function ty(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]=dc(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 y=0,b=c.length;yw){p-=w;continue}else r=r.subarray(p),w-=p,p=0;m.set(r,n),n+=w}return o&&(o-=a+3),{data:m,pts:s,dts:l,len:o}}return null}class Pxt{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 cp=Math.pow(2,32)-1;class _t{static init(){_t.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 _t.types)_t.types.hasOwnProperty(t)&&(_t.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]);_t.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]);_t.STTS=_t.STSC=_t.STCO=a,_t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),_t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),_t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),_t.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]);_t.FTYP=_t.box(_t.types.ftyp,s,c,s,l),_t.DINF=_t.box(_t.types.dinf,_t.box(_t.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 _t.box(_t.types.mdia,_t.mdhd(t.timescale||0,t.duration||0),_t.hdlr(t.type),_t.minf(t))}static mfhd(t){return _t.box(_t.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"?_t.box(_t.types.minf,_t.box(_t.types.smhd,_t.SMHD),_t.DINF,_t.stbl(t)):_t.box(_t.types.minf,_t.box(_t.types.vmhd,_t.VMHD),_t.DINF,_t.stbl(t))}static moof(t,n,r){return _t.box(_t.types.moof,_t.mfhd(t),_t.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=_t.trak(t[n]);return _t.box.apply(null,[_t.types.moov,_t.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(_t.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=_t.trex(t[n]);return _t.box.apply(null,[_t.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(cp+1)),o=Math.floor(n%(cp+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 _t.box(_t.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=_t.box(_t.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 _t.box(_t.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,_t.box(_t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),_t.box(_t.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 _t.box(_t.types.mp4a,_t.audioStsd(t),_t.box(_t.types.esds,_t.esds(t)))}static mp3(t){return _t.box(_t.types[".mp3"],_t.audioStsd(t))}static ac3(t){return _t.box(_t.types["ac-3"],_t.audioStsd(t),_t.box(_t.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return _t.box(_t.types.stsd,_t.STSD,_t.mp4a(t));if(n==="ac3"&&t.config)return _t.box(_t.types.stsd,_t.STSD,_t.ac3(t));if(n==="mp3"&&t.codec==="mp3")return _t.box(_t.types.stsd,_t.STSD,_t.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return _t.box(_t.types.stsd,_t.STSD,_t.avc1(t));if(n==="hevc"&&t.vps)return _t.box(_t.types.stsd,_t.STSD,_t.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/(cp+1)),l=Math.floor(r%(cp+1));return _t.box(_t.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=_t.sdtp(t),o=t.id,a=Math.floor(n/(cp+1)),s=Math.floor(n%(cp+1));return _t.box(_t.types.traf,_t.box(_t.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),_t.box(_t.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])),_t.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,_t.box(_t.types.trak,_t.tkhd(t),_t.mdia(t))}static trex(t){const n=t.id;return _t.box(_t.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 _t.box(_t.types.trun,s)}static initSegment(t){_t.types||_t.init();const n=_t.moov(t);return dc(_t.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][w].length&255]),s),s+=2,l.set(r[b][w],s),s+=r[b][w].length}const f=_t.box(_t.types.hvcC,l),h=t.width,p=t.height,m=t.pixelRatio[0],y=t.pixelRatio[1];return _t.box(_t.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,_t.box(_t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),_t.box(_t.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,y>>24,y>>16&255,y>>8&255,y&255])))}}_t.types=void 0;_t.HDLR_TYPES=void 0;_t.STTS=void 0;_t.STSC=void 0;_t.STCO=void 0;_t.STSZ=void 0;_t.VMHD=void 0;_t.SMHD=void 0;_t.STSD=void 0;_t.FTYP=void 0;_t.DINF=void 0;const C1e=9e4;function IW(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function $xt(e,t,n=1,r=!1){return IW(e,t,1/n,r)}function n2(e,t=!1){return IW(e,1e3,1/C1e,t)}function Mxt(e,t=1){return IW(e,C1e,1/t)}function Lae(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const Rxt=10*1e3,Dxt=1024,Oxt=1152,Nxt=1536;let ny=null,VB=null;function Pae(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 pc{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,ny===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ny=s?parseInt(s[1]):0}if(VB===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);VB=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&&Lae(n)} > ${t&&Lae(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=yu(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,y,b,w=a,C=a;const x=t.pid>-1,_=n.pid>-1,E=n.samples.length,S=t.samples.length>0,I=l&&E>0||E>1;if((!x||S)&&(!_||I)||this.ISGenerated||l){if(this.ISGenerated){var L,O,F,M;const U=this.videoTrackConfig;(U&&(n.width!==U.width||n.height!==U.height||((L=n.pixelRatio)==null?void 0:L[0])!==((O=U.pixelRatio)==null?void 0:O[0])||((F=n.pixelRatio)==null?void 0:F[1])!==((M=U.pixelRatio)==null?void 0:M[1]))||!U&&I||this.nextAudioTs===null&&S)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const j=this.isVideoContiguous;let V=-1,W;if(I&&(V=Bxt(n.samples),!j&&this.config.forceKeyFrameOnDiscontinuity))if(b=!0,V>0){this.warn(`Dropped ${V} out of ${E} video samples due to a missing keyframe`);const U=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(V),n.dropped+=V,C+=(n.samples[0].pts-U)/n.inputTimeScale,W=C}else V===-1&&(this.warn(`No keyframe found out of ${E} video samples`),b=!1);if(this.ISGenerated){if(S&&I){const U=this.getVideoStartPts(n.samples),G=(yu(t.samples[0].pts,U)-U)/n.inputTimeScale;w+=Math.max(0,G),C+=Math.max(0,-G)}if(S){if(t.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(t,n,a,s)),h=this.remuxAudio(t,w,this.isAudioContiguous,s,_||I||c===_n.AUDIO?C:void 0),I){const U=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,C,j,U)}}else I&&(f=this.remuxVideo(n,C,j,0));f&&(f.firstKeyFrame=V,f.independent=V!==-1,f.firstKeyFramePTS=W)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(y=x1e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(m=_1e(o,a,this._initPTS))),{audio:h,video:f,initSegment:p,independent:b,text:m,id3:y}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=yu(t,a);if(s0?Z-1:Z].dts&&(_=!0)}_&&s.sort(function(Z,ce){const ye=Z.dts-ce.dts,ie=Z.pts-ce.pts;return ye||ie}),b=s[0].dts,w=s[s.length-1].dts;const S=w-b,I=S?Math.round(S/(c-1)):y||t.inputTimeScale/30;if(r){const Z=b-E,ce=Z>I,ye=Z<-1;if((ce||ye)&&(ce?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${n2(Z,!0)} ms (${Z}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${n2(-Z,!0)} ms (${Z}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ye||E>=s[0].pts||ny)){b=E;const ie=s[0].pts-Z;if(ce)s[0].dts=b,s[0].pts=ie;else{let Ce=!0;for(let Re=0;Reie&&Ce);Re++){const be=s[Re].pts;if(s[Re].dts-=Z,s[Re].pts-=Z,Re0?ce.dts-s[Z-1].dts:I;if(Ce=Z>0?ce.pts-s[Z-1].pts:I,be.stretchShortVideoTrack&&this.nextAudioTs!==null){const De=Math.floor(be.maxBufferHole*a),Ge=(o?C+o*a:this.nextAudioTs+h)-ce.pts;Ge>De?(y=Ge-Fe,y<0?y=Fe:V=!0,this.log(`It is approximately ${Ge/90} ms to the next segment; using duration ${y/90} ms for the last video frame.`)):y=Fe}else y=Fe}const Re=Math.round(ce.pts-ce.dts);W=Math.min(W,y),X=Math.max(X,y),U=Math.min(U,Ce),G=Math.max(G,Ce),l.push(Pae(ce.key,y,ie,Re))}if(l.length){if(ny){if(ny<70){const Z=l[0].flags;Z.dependsOn=2,Z.isNonSync=0}}else if(VB&&G-U0&&(o&&Math.abs(E-(x+_))<9e3||Math.abs(yu(w[0].pts,E)-(x+_))<20*h),w.forEach(function(G){G.pts=yu(G.pts,E)}),!r||x<0){const G=w.length;if(w=w.filter(Y=>Y.pts>=0),G!==w.length&&this.warn(`Removed ${w.length-G} of ${G} samples (initPTS ${_} / ${s})`),!w.length)return;a===0?x=0:o&&!b?x=Math.max(0,E-_):x=w[0].pts-_}if(t.segmentCodec==="aac"){const G=this.config.maxAudioFramesDrift;for(let Y=0,ee=x+_;Y=G*h&&ce0){L+=C;try{$=new Uint8Array(L)}catch(ce){this.observer.emit(pe.ERROR,pe.ERROR,{type:Pn.MUX_ERROR,details:Et.REMUX_ALLOC_ERROR,fatal:!1,error:ce,bytes:L,reason:`fail allocating audio mdat ${L}`});return}m||(new DataView($.buffer).setUint32(0,L),$.set(_t.types.mdat,4))}else return;$.set(te,C);const Z=te.byteLength;C+=Z,y.push(Pae(!0,f,Z,0)),I=J}const F=y.length;if(!F)return;const M=y[y.length-1];x=I-_,this.nextAudioTs=x+c*M.duration;const j=m?new Uint8Array(0):_t.moof(t.sequenceNumber++,S/c,Mi({},t,{samples:y}));t.samples=[];const V=(S-_)/s,W=x/s,X={data1:j,data2:$,startPTS:V,endPTS:W,startDTS:V,endDTS:W,type:"audio",hasAudio:!0,hasVideo:!1,nb:F};return this.isAudioContiguous=!0,X}}function yu(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function Bxt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class Fxt extends pc{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=Pye(t);if(n)Twt(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=$ae(a,Ui.AUDIO,this)),s&&(o=$ae(s,Ui.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};fn(h)||(h=this.lastEndTime=a||0);const m=n.samples;if(!m.length)return p;const y={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&&(y.tracks=this.initTracks,this.emitInitSegment=!1);const w=Iwt(m,b,this),C=b.audio?w[b.audio.id]:null,x=b.video?w[b.video.id]:null,_=eE(x,1/0),E=eE(C,1/0),S=eE(x,0,!0),I=eE(C,0,!0);let $=a,L=0;const O=C&&(!x||!f&&E<_||f&&f.trackId===b.audio.id),F=O?C:x;if(F){const ee=F.timescale,te=F.start-a*ee,J=O?b.audio.id:b.video.id;$=F.start/ee,L=O?I-E:S-_,(s||!f)&&(jxt(f,$,a,L)||ee!==f.timescale)&&(f&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${a} ${te/ee} != initPTS: ${f.baseTime/f.timescale} (${f.baseTime}/${f.timescale}) trackId: ${f.trackId}`),this.log(`Found initPTS at playlist time: ${a} offset: ${$-a} (${te}/${ee}) trackId: ${J}`),f=null,y.initPTS=te,y.timescale=ee,y.trackId=J)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${a}`);f?(y.initPTS=f.baseTime,y.timescale=f.timescale,y.trackId=f.trackId):((!y.timescale||y.trackId===void 0||y.initPTS===void 0)&&(this.warn("Could not set initPTS"),y.initPTS=$,y.timescale=1,y.trackId=-1),this.initPTS=f={baseTime:y.initPTS,timescale:y.timescale,trackId:y.trackId});const M=$-f.baseTime/f.timescale,j=M+L;L>0?this.lastEndTime=j:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const V=!!b.audio,W=!!b.video;let U="";V&&(U+="audio"),W&&(U+="video");const X=(b.audio?b.audio.encrypted:!1)||(b.video?b.video.encrypted:!1),G={data1:m,startPTS:M,startDTS:M,endPTS:j,endDTS:j,type:U,hasAudio:V,hasVideo:W,nb:1,dropped:0,encrypted:X};p.audio=V&&!W?G:void 0,p.video=W?G:void 0;const Y=x?.sampleCount;if(Y){const ee=x.keyFrameIndex,te=ee!==-1;G.nb=Y,G.dropped=ee===0||this.isVideoContiguous?0:te?ee:Y,G.independent=te,G.firstKeyFrame=ee,te&&x.keyFrameStart&&(G.firstKeyFramePTS=(x.keyFrameStart-f.baseTime)/f.timescale),this.isVideoContiguous||(p.independent=te),this.isVideoContiguous||(this.isVideoContiguous=te),G.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${ee}/${Y} dropped: ${G.dropped} start: ${G.firstKeyFramePTS||"NA"}`)}return p.initSegment=y,p.id3=x1e(r,a,f,f),o.samples.length&&(p.text=_1e(o,a,f)),p}}function eE(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function jxt(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 $ae(e,t,n){const r=e.codec;return r&&r.length>4?r:t===Ui.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?TI(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 zf;try{zf=self.performance.now.bind(self.performance)}catch{zf=Date.now}const J4=[{demux:_xt,remux:Fxt},{demux:xp,remux:Z4},{demux:kxt,remux:Z4},{demux:Cxt,remux:Z4}];J4.splice(2,0,{demux:wxt,remux:Z4});class Mae{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=zf();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:y,initSegmentChange:b}=o||l,{audioCodec:w,videoCodec:C,defaultInitPts:x,duration:_,initSegmentData:E}=c,S=Vxt(s,n);if(S&&Ky(S.method)){const O=this.getDecrypter(),F=bW(S.method);if(O.isSync()){let M=O.softwareDecrypt(s,S.key.buffer,S.iv.buffer,F);if(r.part>-1){const V=O.flush();M=V&&V.buffer}if(!M)return a.executeEnd=zf(),zB(r);s=new Uint8Array(M)}else return this.asyncResult=!0,this.decryptionPromise=O.webCryptoDecrypt(s,S.key.buffer,S.iv.buffer,F).then(M=>{const j=this.push(M,null,r);return this.decryptionPromise=null,j}),this.decryptionPromise}const I=this.needsProbing(h,p);if(I){const O=this.configureTransmuxer(s);if(O)return this.logger.warn(`[transmuxer] ${O.message}`),this.observer.emit(pe.ERROR,pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.FRAG_PARSING_ERROR,fatal:!1,error:O,reason:O.message}),a.executeEnd=zf(),zB(r)}(h||p||b||I)&&this.resetInitSegment(E,w,C,_,n),(h||b||I)&&this.resetInitialTimestamp(x),f||this.resetContiguity();const $=this.transmux(s,S,y,m,r);this.asyncResult=aw($);const L=this.currentTransmuxState;return L.contiguous=!0,L.discontinuity=!1,L.trackSwitch=!1,a.executeEnd=zf(),$}flush(t){const n=t.transmuxing;n.executeStart=zf();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=zf();const p=[zB(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return aw(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===_n.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=zf()}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 zB=e=>({remuxResult:{},chunkMeta:e});function aw(e){return"then"in e&&e.then instanceof Function}class zxt{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 Uxt{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 Rae=0;class T1e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Rae++,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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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===pe.ERROR&&(f=f,f.parent=this.id,f.part=this.part,this.error=f.error),this.hls.trigger(c,f)};this.observer=new wW,this.observer.on(pe.FRAG_DECRYPTED,s),this.observer.on(pe.ERROR,s);const l=Yse(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||KCt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=YCt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=qCt());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:Hi(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Mae(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Mae(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Rae++;const n=this.hls.config,r=Yse(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:Hi(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),XCt(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:y,transmuxer:b}=this,w=s?s.start:a.start,C=a.decryptdata,x=this.frag,_=!(x&&a.cc===x.cc),E=!(x&&f.level===x.level),S=x?f.sn-x.sn:-1,I=this.part?f.part-this.part.index:-1,$=S===0&&f.id>1&&f.id===x?.stats.chunkCount,L=!E&&(S===1||S===0&&(I===1||$&&I<=0)),O=self.performance.now();(E||S||a.stats.parsing.start===0)&&(a.stats.parsing.start=O),s&&(I||!L)&&(s.stats.parsing.start=O);const F=!(x&&((p=a.initSegment)==null?void 0:p.url)===((m=x.initSegment)==null?void 0:m.url)),M=new Uxt(_,L,c,E,w,F);if(!L||_||F){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${f.sn}${f.part>-1?" part: "+f.part:""} ${this.id===_n.MAIN?"level":"track"}: ${f.level} id: ${f.id} discontinuity: ${_} trackSwitch: ${E} contiguous: ${L} accurateTimeOffset: ${c} timeOffset: ${w} initSegmentChange: ${F}`);const j=new zxt(r,o,n,l,h);this.configureTransmuxer(j)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:y,cmd:"demux",data:t,decryptdata:C,chunkMeta:f,state:M},t instanceof ArrayBuffer?[t]:[]);else if(b){const j=b.push(t,C,f,M);aw(j)?j.then(V=>{this.handleTransmuxComplete(V)}).catch(V=>{this.transmuxerError(V,f,"transmuxer-interface push error")}):this.handleTransmuxComplete(j)}}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);aw(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(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.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 Dae=100;class Hxt extends kW{constructor(t,n,r){super(t,n,r,"audio-stream-controller",_n.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(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(pe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(pe.BUFFER_RESET,this.onBufferReset,this),t.on(pe.BUFFER_CREATED,this.onBufferCreated,this),t.on(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(pe.FRAG_LOADING,this.onFragLoading,this),t.on(pe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(pe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(pe.BUFFER_RESET,this.onBufferReset,this),t.off(pe.BUFFER_CREATED,this.onBufferCreated,this),t.off(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(pe.FRAG_LOADING,this.onFragLoading,this),t.off(pe.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===_n.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===Bt.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===Bt.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=zye(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===Bt.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=Bt.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Dae),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=Bt.IDLE):this.state=Bt.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case Bt.IDLE:this.doTickIdle();break;case Bt.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=Bt.WAITING_INIT_PTS}break}case Bt.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Bt.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=Bt.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=Bt.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=Bt.WAITING_TRACK,this.startFragRequested=!1;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,Ui.AUDIO,_n.AUDIO));const h=this.getFwdBufferInfo(f,_n.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(pe.BUFFER_EOS,{type:"audio"}),this.state=Bt.ENDED;return}const p=h.len,m=n.maxBufferLength,y=c.fragments,b=y[0].start,w=this.getLoadPosition(),C=this.flushing?w:h.end;if(this.switchingTrack&&o){const E=w;c.PTSKnown&&Eb||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&&C_.end){const S=this.fragmentTracker.getFragAtPos(C,_n.MAIN);S&&S.end>_.end&&(_=S,this.mainFragLoading={frag:S,targetBufferTime:null})}if(x.start>_.end)return}this.loadFragment(x,l,C)}onMediaDetaching(t,n){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,n)}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new iw(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!==Bt.STOPPED&&(this.setInterval(Dae),this.state=Bt.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(pe.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!==Bt.STOPPED&&(this.state=Bt.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||(s1e(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(pe.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===Bt.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=Bt.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 T1e(this.hls,_n.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const y=this.initPTS[r.cc],b=(n=r.initSegment)==null?void 0:n.data;if(y!==void 0){const C=o?o.index:-1,x=C!==-1,_=new yW(r.level,r.sn,r.stats.chunkCount,a.byteLength,C,x);m.push(a,b,p,"",r,o,h.totalduration,!1,_,y)}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:w}=this.waitingData=this.waitingData||{frag:r,part:o,cache:new a1e,complete:!1};w.push(new Uint8Array(a)),this.state!==Bt.STOPPED&&(this.state=Bt.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===_n.MAIN&&us(n.frag)&&(this.mainFragLoading=n,this.state===Bt.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==_n.AUDIO){!this.audioOnly&&r.type===_n.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(us(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(pe.AUDIO_TRACK_SWITCHED,xi({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=Bt.ERROR;return}switch(n.details){case Et.FRAG_GAP:case Et.FRAG_PARSING_ERROR:case Et.FRAG_DECRYPT_ERROR:case Et.FRAG_LOAD_ERROR:case Et.FRAG_LOAD_TIMEOUT:case Et.KEY_LOAD_ERROR:case Et.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(_n.AUDIO,n);break;case Et.AUDIO_TRACK_LOAD_ERROR:case Et.AUDIO_TRACK_LOAD_TIMEOUT:case Et.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Bt.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===$r.AUDIO_TRACK&&(this.state=Bt.IDLE);break;case Et.BUFFER_ADD_CODEC_ERROR:case Et.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Et.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Et.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==Ui.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==Ui.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Bt.ENDED&&(this.state=Bt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,_n.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:y,id3:b,initSegment:w}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=Bt.PARSING,this.switchingTrack&&m&&this.completeAudioSwitch(this.switchingTrack),w!=null&&w.tracks){const C=c.initSegment||c;if(this.unhandledEncryptionError(w,c))return;this._bufferInitSegment(h,w.tracks,C,s),o.trigger(pe.FRAG_PARSING_INIT_SEGMENT,{frag:C,id:r,tracks:w.tracks})}if(m){const{startPTS:C,endPTS:x,startDTS:_,endDTS:E}=m;f&&(f.elementaryStreams[Ui.AUDIO]={startPTS:C,endPTS:x,startDTS:_,endDTS:E}),c.setElementaryStreamInfo(Ui.AUDIO,C,x,_,E),this.bufferFragmentData(m,c,f,s)}if(b!=null&&(n=b.samples)!=null&&n.length){const C=Mi({id:r,frag:c,details:p},b);o.trigger(pe.FRAG_PARSING_METADATA,C)}if(y){const C=Mi({id:r,frag:c,details:p},y);o.trigger(pe.FRAG_PARSING_USERDATA,C)}}_bufferInitSegment(t,n,r,o){if(this.state!==Bt.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=_n.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(pe.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(pe.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);if(this.switchingTrack||o===Es.NOT_LOADED||o===Es.PARTIAL){var a;if(!us(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=Bt.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;Km({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,gm)||(II(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(pe.AUDIO_TRACK_SWITCHED,xi({},t))}}class AW extends pc{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&&Xse(r);return new Zse(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){OCt(r,o,this);const _=o.playlistParsingError;if(_){this.warn(_);const E=this.hls;if(!E.config.ignorePlaylistParsingErrors){var f;const{networkDetails:S}=n;E.trigger(pe.ERROR,{type:Pn.NETWORK_ERROR,details:Et.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:_,reason:_.message,level:n.level||void 0,parent:(f=o.fragments[0])==null?void 0:f.type,networkDetails:S,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,y=(o.edge-m)*1e3,b=t1e(o,y);if(o.requestScheduled+b0){if(F>o.targetduration*3)this.log(`Playlist last advanced ${O.toFixed(2)}s ago. Omitting segment and part directives.`),C=void 0,x=void 0;else if(r!=null&&r.tuneInGoal&&F-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${M} with playlist age: ${o.age}`),M=0;else{const j=Math.floor(M/o.targetduration);if(C+=j,x!==void 0){const V=Math.round(M%o.targetduration/o.partTarget);x+=V}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${O.toFixed(2)}s goal: ${M} skip sn ${j} to part ${x}`)}o.tuneInGoal=M}if(w=this.getDeliveryDirectives(o,n.deliveryDirectives,C,x),_||!L){o.requestScheduled=s,this.loadingPlaylist(h,w);return}}else(o.canBlockReload||o.canSkipUntil)&&(w=this.getDeliveryDirectives(o,n.deliveryDirectives,C,x));w&&C!==void 0&&o.canBlockReload&&(o.requestScheduled=a.loading.first+Math.max(b-l*2,b/2)),this.scheduleLoading(h,w,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=Xse(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=Y4.No),new Zse(r,o,a)}checkRetry(t){const n=t.details,r=AI(t),o=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=o||{},c=!!o&&!!l&&(a===ea.RetryRequest||!o.resolved&&a===ea.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=mW(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 E1e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function WV(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Wxt extends AW{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(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(pe.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,y)=>{m.id=y});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const m=Pd(c,l,gm);if(m>-1)a=l[m];else{const y=Pd(c,this.tracks);a=this.tracks[y]}}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(pe.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(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:m})}}}onError(t,n){n.fatal||!n.context||n.context.type===$r.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&&Km(t,o,gm))return o;const a=Pd(t,this.tracksInGroup,gm);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=rCt(t,n.levels,r,s,gm);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=Pd(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(pe.AUDIO_TRACK_SWITCHING,xi({},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 Oae=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,I1e="HlsJsTrackRemovedError";class Kxt extends Error{constructor(t){super(t),this.name=I1e}}class qxt extends pc{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(pe.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=mwt(nv(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(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(pe.BUFFER_RESET,this.onBufferReset,this),t.on(pe.BUFFER_APPENDING,this.onBufferAppending,this),t.on(pe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(pe.BUFFER_EOS,this.onBufferEos,this),t.on(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(pe.FRAG_PARSED,this.onFragParsed,this),t.on(pe.FRAG_CHANGED,this.onFragChanged,this),t.on(pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(pe.BUFFER_RESET,this.onBufferReset,this),t.off(pe.BUFFER_APPENDING,this.onBufferAppending,this),t.off(pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(pe.BUFFER_EOS,this.onBufferEos,this),t.off(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(pe.FRAG_PARSED,this.onFragParsed,this),t.off(pe.FRAG_CHANGED,this.onFragChanged,this),t.off(pe.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?Mi(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=Mi({},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=nv(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,Nae(r),Yxt(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: ${Hi(r,(c,f)=>c==="initSegment"?void 0:f)}; transfer tracks: ${Hi(o,(c,f)=>c==="initSegment"?void 0:f)}}`),!xye(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(pe.MEDIA_DETACHING,{}),this.onMediaAttaching(pe.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,y=h.id;if(m.hasFragments(y)||m.hasParts(y)){const C=ir.getBuffered(p);m.detectEvictedFragments(f,C,y,null,!0)}const b=UB(f),w=[f,p];this.sourceBuffers[b]=w,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&&Nae(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(pe.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[UB(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Gxt(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:y,levelCodec:b,container:w,metadata:C,supplemental:x}=p;let _=o[c];const E=(f=this.transferData)==null||(f=f.tracks)==null?void 0:f[c],S=E!=null&&E.buffer?E:_,I=S?.pendingCodec||S?.codec,$=S?.levelCodec;_||(_=o[c]={buffer:void 0,listeners:[],codec:y,supplemental:x,container:w,levelCodec:b,metadata:C,id:m});const L=q4(I,$),O=L?.replace(Oae,"$1");let F=q4(y,b);const M=(h=F)==null?void 0:h.replace(Oae,"$1");F&&L&&O!==M&&(c.slice(0,5)==="audio"&&(F=TI(F,this.appendSource)),this.log(`switching codec ${I} to ${F}`),F!==(_.pendingCodec||_.codec)&&(_.pendingCodec=F),_.container=w,this.appendChangeType(c,w,F))}),(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,_n.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&&ir.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,_n.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:y}=l,b=self.performance.now();p.start=b;const w=l.stats.buffering,C=c?c.stats.buffering:null;w.start===0&&(w.start=b),C&&C.start===0&&(C.start=b);const x=r.audio;let _=!1;a==="audio"&&x?.container==="audio/mpeg"&&(_=!this.lastMpegAudioChunk||f.id===1||this.lastMpegAudioChunk.sn!==f.sn,this.lastMpegAudioChunk=f);const E=r.video,S=E?.buffer;if(S&&m!=="initSegment"){const L=c||l,O=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const M=L.start+L.duration*.05,j=S.buffered,V=this.currentOp("video");!j.length&&!V?this.blockAudio(L):!V&&!ir.isBuffered(S,M)&&this.lastVideoAppendEndM||F{var L;p.executeStart=self.performance.now();const O=(L=this.tracks[a])==null?void 0:L.buffer;O&&(_?this.updateTimestampOffset(O,I,.1,a,m,y):h!==void 0&&fn(h)&&this.updateTimestampOffset(O,h,1e-6,a,m,y)),this.appendExecutor(o,a)},onStart:()=>{},onComplete:()=>{const L=self.performance.now();p.executeEnd=p.end=L,w.first===0&&(w.first=L),C&&C.first===0&&(C.first=L);const O={};this.sourceBuffers.forEach(([F,M])=>{F&&(O[F]=ir.getBuffered(M))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(pe.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:f,parent:l.type,timeRanges:O})},onError:L=>{var O;const F={type:Pn.MEDIA_ERROR,parent:l.type,details:Et.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:f,error:L,err:L,fatal:!1},M=(O=this.media)==null?void 0:O.error;if(L.code===DOMException.QUOTA_EXCEEDED_ERR||L.name=="QuotaExceededError"||"quota"in L)F.details=Et.BUFFER_FULL_ERROR;else if(L.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!M)F.errorAction=Gy(!0);else if(L.name===I1e&&this.sourceBufferCount===0)F.errorAction=Gy(!0);else{const j=++this.appendErrors[a];this.warn(`Failed ${j}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${M||"no media error"})`),(j>=this.hls.config.appendErrorMaxRetry||M)&&(F.fatal=!0)}this.hls.trigger(pe.ERROR,F)}};this.log(`queuing "${a}" append sn: ${m}${c?" p: "+c.index:""} of ${l.type===_n.MAIN?"level":"track"} ${l.level} cc: ${y}`),this.append($,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(pe.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[Ui.AUDIOVIDEO]?a.push("audiovideo"):(s[Ui.AUDIO]&&a.push("audio"),s[Ui.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(pe.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(pe.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(pe.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===Et.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;fn(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(fn(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(fn(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=ir.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(pe.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(pe.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(pe.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=ir.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(pe.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 fn(a)?{duration:a}:null;const s=this.media.duration,l=fn(r.duration)?r.duration:0;return o>l&&o>s||!fn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(fn(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}) ${Hi(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(pe.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(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.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":""} ${Hi(l)}`);try{const h=r.addSourceBuffer(f),p=UB(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(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.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")&&nw(r,"video")&&(o=Bwt(o,r));const a=q4(o,t.levelCodec);return a?n.slice(0,5)==="audio"?TI(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(pe.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(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.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=fn(o.duration)?o.duration:1/0,f=fn(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 Kxt(`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 Nae(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function Yxt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function UB(e){return e==="audio"?1:0}class LW{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(pe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(pe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(pe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(pe.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&&fn(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,LW.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 Xxt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Ll=Xxt,Zxt={HLS:"h"},Jxt=Zxt;class Hd{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Hd?r:new Hd(r))),this.value=t,this.params=n}}const Qxt="Dict";function e_t(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 t_t(e,t,n,r){return new Error(`failed to ${e} "${e_t(t)}" as ${n}`,{cause:r})}function Wd(e,t,n){return t_t("serialize",e,t,n)}class A1e{constructor(t){this.description=t}}const Bae="Bare Item",n_t="Boolean";function r_t(e){if(typeof e!="boolean")throw Wd(e,n_t);return e?"?1":"?0"}function i_t(e){return btoa(String.fromCharCode(...e))}const o_t="Byte Sequence";function s_t(e){if(ArrayBuffer.isView(e)===!1)throw Wd(e,o_t);return`:${i_t(e)}:`}const a_t="Integer";function l_t(e){return e<-999999999999999||99999999999999912)throw Wd(e,c_t);const n=t.toString();return n.includes(".")?n:`${n}.0`}const f_t="String",h_t=/[\x00-\x1f\x7f]+/;function p_t(e){if(h_t.test(e))throw Wd(e,f_t);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function v_t(e){return e.description||e.toString().slice(7,-1)}const m_t="Token";function Fae(e){const t=v_t(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Wd(t,m_t);return t}function GV(e){switch(typeof e){case"number":if(!fn(e))throw Wd(e,Bae);return Number.isInteger(e)?L1e(e):d_t(e);case"string":return p_t(e);case"symbol":return Fae(e);case"boolean":return r_t(e);case"object":if(e instanceof Date)return u_t(e);if(e instanceof Uint8Array)return s_t(e);if(e instanceof A1e)return Fae(e);default:throw Wd(e,Bae)}}const g_t="Key";function KV(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Wd(e,g_t);return e}function PW(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${KV(t)}`:`;${KV(t)}=${GV(n)}`).join("")}function $1e(e){return e instanceof Hd?`${GV(e.value)}${PW(e.params)}`:GV(e)}function y_t(e){return`(${e.value.map($1e).join(" ")})${PW(e.params)}`}function b_t(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Wd(e,Qxt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof Hd||(a=new Hd(a));let s=KV(o);return a.value===!0?s+=PW(a.params):(s+="=",Array.isArray(a.value)?s+=y_t(a):s+=$1e(a)),s}).join(`,${r}`)}function M1e(e,t){return b_t(e,t)}const gd="CMCD-Object",$o="CMCD-Request",dm="CMCD-Session",dp="CMCD-Status",S_t={br:gd,ab:gd,d:gd,ot:gd,tb:gd,tpb:gd,lb:gd,tab:gd,lab:gd,url:gd,pb:$o,bl:$o,tbl:$o,dl:$o,ltc:$o,mtp:$o,nor:$o,nrr:$o,rc:$o,sn:$o,sta:$o,su:$o,ttfb:$o,ttfbb:$o,ttlb:$o,cmsdd:$o,cmsds:$o,smrt:$o,df:$o,cs:$o,ts:$o,cid:dm,pr:dm,sf:dm,sid:dm,st:dm,v:dm,msd:dm,bs:dp,bsd:dp,cdn:dp,rtp:dp,bg:dp,pt:dp,ec:dp,e:dp},k_t={REQUEST:$o};function w_t(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 C_t(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?w_t(t):{};return r.reduce((a,s)=>{var l;const c=S_t[s]||o[s]||k_t.REQUEST,f=(l=a[c])!==null&&l!==void 0?l:a[c]={};return f[s]=e[s],a},n)}function x_t(e){return["ot","sf","st","e","sta"].includes(e)}function __t(e){return typeof e=="number"?fn(e):e!=null&&e!==""&&e!==!1}const R1e="event";function T_t(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),qV=(e,t)=>Array.isArray(e)?e.map(n=>qV(n,t)):e instanceof Hd&&typeof e.value=="string"?new Hd(qV(e.value,t),e.params):(t.baseUrl&&(e=T_t(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),tE=e=>Q4(e/100)*100,E_t=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Hd&&typeof e.value=="string"?n=new Hd([e]):typeof e=="string"&&(n=[e])),qV(n,t)},I_t={br:Q4,d:Q4,bl:tE,dl:tE,mtp:tE,nor:E_t,rtp:tE,tb:Q4},D1e="request",O1e="response",$W=["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"],A_t=["e"],L_t=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function XL(e){return L_t.test(e)}function P_t(e){return $W.includes(e)||A_t.includes(e)||XL(e)}const N1e=["d","dl","nor","ot","rtp","su"];function $_t(e){return $W.includes(e)||N1e.includes(e)||XL(e)}const M_t=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function R_t(e){return $W.includes(e)||N1e.includes(e)||M_t.includes(e)||XL(e)}const D_t=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function O_t(e){return D_t.includes(e)||XL(e)}const N_t={[O1e]:R_t,[R1e]:P_t,[D1e]:$_t};function B1e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||D1e,a=r===1?O_t:N_t[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===O1e||o===R1e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const f=Mi({},I_t,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let m=e[p];const y=f[p];if(typeof y=="function"&&(m=y(m,h)),p==="v"){if(r===1)return;m=r}p=="pr"&&m===1||(c&&p==="ts"&&!fn(m)&&(m=Date.now()),__t(m)&&(x_t(p)&&typeof m=="string"&&(m=new A1e(m)),n[p]=m))}),n}function B_t(e,t={}){const n={};if(!e)return n;const r=B1e(e,t),o=C_t(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=M1e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function F_t(e,t,n){return Mi(e,B_t(t,n))}const j_t="CMCD";function V_t(e,t={}){return e?M1e(B1e(e,t),{whitespace:!1}):""}function z_t(e,t={}){if(!e)return"";const n=V_t(e,t);return encodeURIComponent(n)}function U_t(e,t={}){if(!e)return"";const n=z_t(e,t);return`${j_t}=${n}`}const jae=/CMCD=[^&#]+/;function H_t(e,t,n){const r=U_t(t,n);if(!r)return e;if(jae.test(e))return e.replace(jae,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class W_t{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:Ll.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===Ll.VIDEO||c===Ll.AUDIO||c==Ll.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(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHED,this.onMediaDetached,this),t.on(pe.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHED,this.onMediaDetached,this),t.off(pe.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:Jxt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){Mi(n,this.createData());const r=n.ot===Ll.INIT||n.ot===Ll.VIDEO||n.ot===Ll.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={}),F_t(t.headers,n,a)):t.url=H_t(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 Ll.TIMED_TEXT;if(t.sn==="initSegment")return Ll.INIT;if(n==="audio")return Ll.AUDIO;if(n==="main")return this.hls.audioTracks.length?Ll.VIDEO:Ll.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===Ll.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===Ll.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:ir.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 G_t=3e5;class K_t extends pc{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(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(pe.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(pe.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===ea.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===Et.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: ${Hi(a)} penalized: ${Hi(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]>G_t&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,i1e(n),this.hls.trigger(pe.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 Co(h.attrs);p["PATHWAY-ID"]=s;const m=p.AUDIO&&`${p.AUDIO}_clone_${s}`,y=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;m&&(r[p.AUDIO]=m,p.AUDIO=m),y&&(o[p.SUBTITLES]=y,p.SUBTITLES=y);const b=F1e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),w=new iw({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 C=1;C{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":w,"PATHWAY-CLONES":C,"PATHWAY-PRIORITY":x}=b;if(w)try{this.uri=new self.URL(w,o).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${w}`);return}this.scheduleRefresh(this.uri||m.url),C&&this.clonePathways(C);const _={steeringManifest:b,url:o.toString()};this.hls.trigger(pe.STEERING_MANIFEST_LOADED,_),x&&this.updatePathwayPriority(x)},onError:(h,p,m,y)=>{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 w=this.loader;if(typeof w?.getResponseHeader=="function"){const C=w.getResponseHeader("Retry-After");C&&(b=parseFloat(C)*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 Vae(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=Mi({},s);return l.details=void 0,l.attrs=new Co(l.attrs),l.url=l.attrs.URI=F1e(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 F1e(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 qy extends pc{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=qy.CDMCleanupPromise?[qy.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=k2(this.config));const l=s.map(DB).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=X4(s);if(r!=="sinf"||l!==To.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const y=_s(new Uint8Array(o)),b=SW(JSON.parse(y).sinf),w=Mye(b);if(!w)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(w.subarray(8,24))}catch(y){this.warn(`${a} Failed to parse sinf: ${y}`);return}const f=al(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let m=h[f];for(let y=0;ythis.generateRequestWithPreferredKeySession(b,r,o,"encrypted-event-key-match")),m.catch(x=>this.handleError(x));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(pe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(pe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(pe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(pe.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(pe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(pe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(pe.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===To.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 pu?l(p):l(new pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.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 Xye===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=ECt(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: ${Hi(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(y=>y?this.setMediaKeysServerCertificate(m,t,y):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: ${al(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=nE(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 ${al(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})=>DB(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=DB(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=k2(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 pu){const c=xi({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const f=new pu(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 pu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${al(r.keyId||[])})`:""}`),this.hls.trigger(pe.ERROR,t.data)}else this.error(t.message),this.hls.trigger(pe.ERROR,{type:Pn.KEY_SYSTEM_ERROR,details:Et.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=nE(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=X4(t.keyFormat),a=o?[o]:k2(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=k2(this.config)),t.length===0)throw new pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Hi({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=nE(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 wW,h=t._onmessage=b=>{const w=t.mediaKeysSession;if(!w){f.emit("error",new Error("invalid state"));return}const{messageType:C,message:x}=b;this.log(`"${C}" message event for session "${w.sessionId}" message size: ${x.byteLength}`),C==="license-request"||C==="license-renewal"?this.renewLicense(t,x).catch(_=>{f.eventNames().length?f.emit("error",_):this.handleError(_)}):C==="license-release"?t.keySystem===To.FAIRPLAY&&this.updateKeySession(t,jV("acknowledged")).then(()=>this.removeSession(t)).catch(_=>this.handleError(_)):this.warn(`unhandled media key message type "${C}"`)},p=(b,w)=>{w.keyStatus=b;let C;b.startsWith("usable")?f.emit("resolved"):b==="internal-error"||b==="output-restricted"||b==="output-downscaled"?C=zae(b,w.decryptdata):b==="expired"?C=new Error(`key expired (keyId: ${l})`):b==="released"?C=new Error("key released"):b==="status-pending"||this.warn(`unhandled key status change "${b}" (keyId: ${l})`),C&&(f.eventNames().length?f.emit("error",C):this.handleError(C))},m=t._onkeystatuseschange=b=>{if(!t.mediaKeysSession){f.emit("error",new Error("invalid state"));return}const C=this.getKeyStatuses(t);if(!Object.keys(C).some(S=>C[S]!=="status-pending"))return;if(C[l]==="expired"){this.log(`Expired key ${Hi(C)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let _=C[l];if(_)p(_,t);else{var E;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(E=t.keyStatusTimeouts)[l]||(E[l]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const I=this.getKeyStatus(t.decryptdata);if(I&&I!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${I} from other session.`),p(I,t);this.log(`key status for ${l} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),_="internal-error",p(_,t)},1e3)),this.log(`No status for keyId ${l} (${Hi(C)}).`)}};fl(t.mediaKeysSession,"message",h),fl(t.mediaKeysSession,"keystatuseschange",m);const y=new Promise((b,w)=>{f.on("error",w),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 pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.KEY_SYSTEM_NO_SESSION,error:b,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${b}`)}).then(()=>y).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===To.PLAYREADY&&a.length===16&&qye(a);const s=al(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,y,b,w)=>{s(m.data)},onError:(m,y,b,w)=>{l(new pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:b,response:xi({url:c.url,data:void 0},m)},`"${t}" certificate request failed (${a}). Status: ${m.code} (${m.text})`))},onTimeout:(m,y,b)=>{l(new pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.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,y,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 pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.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 pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.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 jV(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 pu({type:Pn.KEY_SYSTEM_ERROR,details:Et.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==To.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,fl(r,"encrypted",this.onMediaEncrypted),fl(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(Hl(t,"encrypted",this.onMediaEncrypted),Hl(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,qm.clearKeyUriToKeyIdMap();const o=r.length;qy.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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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: ${al(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(ACt(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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${f}`)})})}return Promise.resolve()}}qy.CDMCleanupPromise=void 0;function nE(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return al(e.keyId)}function q_t(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 pu 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 zae(e,t){const n=e==="output-restricted",r=n?Et.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Et.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new pu({type:Pn.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class Y_t{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(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(pe.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(pe.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(pe.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 j1e(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 V1e(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){Ti.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){Ti.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function wy(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 YV(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=Z_t(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 e3(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=e3(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(pe.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;e3(r.textTracks).forEach(s=>{wy(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=Pd(l,s);if(h>-1)a=s[h];else{const p=Pd(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(pe.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=Pd(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(pe.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=e3(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>WV(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||!fn(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(pe.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(pe.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 Q_t(){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 fk(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const Yy=.025;let DI=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function eTt(e,t,n){return`${e.identifier}-${n+1}-${fk(t)}`}class tTt{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 HB(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=HB(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=fn(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 HB(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 nTt(this)}}function HB(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function hy(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class rTt{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(pe.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(pe.LEVEL_LOADED,s),a.once(pe.AUDIO_TRACK_LOADED,s),a.once(pe.SUBTITLE_TRACK_LOADED,s),a.on(pe.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(pe.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(pe.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=z1e(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=ir.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=ir.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: ${hy(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Uae=.033;class iTt extends pc{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,y=h.cue.pre,b=h.cue.post;if(p&&!y)return-1;if(y&&!p||m&&!b)return 1;if(b&&!m)return-1;if(!p&&!y&&!m&&!b){const w=f.startTime,C=h.startTime;if(w!==C)return w-C}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,y=h.cue.post,b=t[p-1]||null,w=h.appendInPlace,C=y?a:h.startOffset,x=h.duration,_=h.timelineOccupancy===DI.Range?x:0,E=h.resumptionOffset,S=b?.startTime===C,I=C+h.cumulativeDuration;let $=w?I+x:C+E;if(m||!y&&C<=0){const O=f;f+=_,h.timelineStart=I;const F=s;s+=x,r.push({event:h,start:I,end:$,playout:{start:F,end:s},integrated:{start:O,end:f}})}else if(C<=a){if(!S){const M=C-c;if(M>Uae){const j=c,V=f;f+=M;const W=s;s+=M;const U={previousEvent:t[p-1]||null,nextEvent:h,start:j,end:j+M,playout:{start:W,end:s},integrated:{start:V,end:f}};r.push(U)}else M>0&&b&&(b.cumulativeDuration+=M,r[r.length-1].end=C)}y&&($=I),h.timelineStart=I;const O=f;f+=_;const F=s;s+=x,r.push({event:h,start:I,end:$,playout:{start:F,end:s},integrated:{start:O,end:f}})}else return;const L=h.resumeTime;y||L>a?c=a:c=L}),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=fg(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,n)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1Yy?(this.log(`"${t.identifier}" resumption ${r} not aligned with estimated timeline end ${o}`),!1):!Object.keys(n).some(s=>{const l=n[s].details,c=l.edge;if(r>=c)return this.log(`"${t.identifier}" resumption ${r} past ${s} playlist end ${c}`),!1;const f=fg(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 C=m.data,x=C?.ASSETS;if(!Array.isArray(x)){const _=this.assignAssetListError(t,Et.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),b.url,y,w);this.hls.trigger(pe.ERROR,_);return}t.assetListResponse=C,this.hls.trigger(pe.ASSET_LIST_LOADED,{event:t,assetListResponse:C,networkDetails:w})},onError:(m,y,b,w)=>{const C=this.assignAssetListError(t,Et.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${m.code} ${m.text} (${y.url})`),y.url,w,b);this.hls.trigger(pe.ERROR,C)},onTimeout:(m,y,b)=>{const w=this.assignAssetListError(t,Et.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${y.url})`),y.url,m,b);this.hls.trigger(pe.ERROR,w)}};return l.load(c,h,p),this.hls.trigger(pe.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:Pn.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Hae(e){e?.play().catch(()=>{})}function rE(e,t){return`[${e}] Advancing timeline position to ${t}`}class sTt extends pc{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 y=this.findItemIndex(l);let b=this.schedule.findItemIndexAtTime(r);if(b===-1&&(b=y+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${y} to ${b})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&b>y){const w=this.schedule.findJumpRestrictedIndex(y+1,b);if(w>y){this.setSchedulePosition(w);return}}this.setSchedulePosition(b);return}const f=this.playingAsset;if(!f){if(this.playingLastItem&&this.isInterstitial(l)){const y=l.event.assetList[0];y&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,y))}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(w=>w.identifier),p=!!(l.length||h.length);(p||o)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l} Schedule: ${c.map(w=>Tc(w))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let m=null,y=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&&(y=this.updateItem(b,this.bufferedPos),this.itemsMatch(b,y)?this.bufferingItem=y:b.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(b.event,null))),r.forEach(w=>{w.assetList.forEach(C=>{this.clearAssetPlayer(C.identifier,null)})}),this.playerQueue.forEach(w=>{if(w.interstitial.appendInPlace){const C=w.assetItem.timelineStart,x=w.timelineOffset-C;if(x)try{w.timelineOffset=C}catch(_){Math.abs(x)>Yy&&this.warn(`${_} ("${w.assetId}" ${w.timelineOffset}->${C})`)}}}),p||o){if(this.hls.trigger(pe.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&&y!==m&&this.trimInPlace(y,b),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new oTt(t),this.schedule=new iTt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(pe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(pe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(pe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(pe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(pe.BUFFER_APPENDED,this.onBufferAppended,this),t.on(pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(pe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(pe.MEDIA_ENDED,this.onMediaEnded,this),t.on(pe.ERROR,this.onError,this),t.on(pe.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(pe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(pe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(pe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(pe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(pe.BUFFER_APPENDED,this.onBufferAppended,this),t.off(pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(pe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(pe.MEDIA_ENDED,this.onMediaEnded,this),t.off(pe.ERROR,this.onError,this),t.off(pe.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){Hl(t,"play",this.onPlay),Hl(t,"pause",this.onPause),Hl(t,"seeking",this.onSeeking),Hl(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;fl(r,"seeking",this.onSeeking),fl(r,"timeupdate",this.onTimeupdate),fl(r,"play",this.onPlay),fl(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,y,b,w)=>{if(p){let C=p[m].start;const x=p.event;if(x){if(m==="playout"||x.timelineOccupancy!==DI.Point){const _=r(y);_?.interstitial===x&&(C+=_.assetItem.startOffset+_[w])}}else{const _=b==="bufferedPos"?s():t[b];C+=_-p.start}return C}return 0},a=(p,m)=>{var y;if(p!==0&&m!=="primary"&&(y=t.schedule)!=null&&y.length){var b;const w=t.schedule.findItemIndexAtTime(p),C=(b=t.schedule.items)==null?void 0:b[w];if(C){const x=C[m].start-C.start;return p+x}}return p},s=()=>{const p=t.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var m,y;return(m=t.primaryDetails)!=null&&m.live?t.primaryDetails.edge:((y=t.schedule)==null?void 0:y.durations[p])||0},c=(p,m)=>{var y,b;const w=t.effectivePlayingItem;if(w!=null&&(y=w.event)!=null&&y.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${m}"`);const C=t.effectivePlayingItem,x=t.schedule.findItemIndexAtTime(p,m),_=(b=t.schedule.items)==null?void 0:b[x],E=t.getBufferingPlayer(),S=E?.interstitial,I=S?.appendInPlace,$=C&&t.itemsMatch(C,_);if(C&&(I||$)){const L=r(t.playingAsset),O=L?.media||t.primaryMedia;if(O){const F=m==="primary"?O.currentTime:o(C,m,t.playingAsset,"timelinePos","currentTime"),M=p-F,j=(I?F:O.currentTime)+M;if(j>=0&&(!L||I||j<=L.duration)){O.currentTime=j;return}}}if(_){let L=p;if(m!=="primary"){const F=_[m].start,M=p-F;L=_.start+M}const O=!t.isInterstitial(_);if((!t.isInterstitial(C)||C.event.appendInPlace)&&(O||_.event.appendInPlace)){const F=t.media||(I?E?.media:null);F&&(F.currentTime=L)}else if(C){const F=t.findItemIndex(C);if(x>F){const j=t.schedule.findJumpRestrictedIndex(F+1,x);if(j>F){t.setSchedulePosition(j);return}}let M=0;if(O)t.timelinePos=L,t.checkBuffer();else{const j=_.event.assetList,V=p-(_[m]||_).start;for(let W=j.length;W--;){const U=j[W];if(U.duration&&V>=U.startOffset&&V{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 y;return o(m,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-m.playout.start||((y=t.bufferingAsset)==null?void 0:y.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(),y=t.effectivePlayingItem;y&&y===m&&c(p+y.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(y=>t.getAssetPlayer(y.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 y=t.findItemIndex(p);if(m.appendInPlace){const b=p.playout.start+p.event.duration;c(b+.001,"playout")}else t.advanceAfterAssetEnded(m,y,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||!fn(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} ${Hi(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 ${Hi(a)}`);else if(!this.detachedData||s.media===n){const b=this.playerQueue;b.length>1&&b.forEach(w=>{if(l&&w.interstitial.appendInPlace!==c){const C=w.interstitial;this.clearInterstitial(w.interstitial,null),C.appendInPlace=!1,C.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${C}`)}}),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 y=this.schedule;if(m===a&&y){const b=l&&t.assetId===y.assetIdAtEnd;m.overrides={duration:y.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(rE("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=WB(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=WB(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&&Tc(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,y=m?this.getAssetPlayer(m):null;if(y&&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} ${hy(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(pe.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:b,event:h,schedule:o.slice(0),scheduleIndex:t,player:y}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),b);return}this.retreiveMediaSource(m,a),y.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&y.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${Tc(s)}`),h.hasPlayed=!0,this.hls.trigger(pe.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 w=this.findItemIndex(a);this.advanceSchedule(w,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=WB(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 ${Tc(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(pe.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 y=h.assetList[r];if(!y){this.advanceAfterAssetEnded(h,t,r||0);return}if(m||(m=this.getAssetPlayer(y.identifier)),m===null||m.destroyed){const b=h.assetList.length;this.warn(`asset ${r+1}/${b} player destroyed ${h}`),m=this.createAssetPlayer(h,y,r),m.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(y))return;this.startAssetPlayer(m,r,n,t,c),this.shouldPlay&&Hae(m.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Hae(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 ${Tc(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(rE("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 ${Tc(t)}`),this.hls.trigger(pe.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:ir.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(rE("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(pe.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(pe.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=xi(xi({},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=xi(xi({},this.altSelection),{},{audio:r});return}const a=xi(xi({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=xi(xi({},this.altSelection),{},{subtitles:r});return}const a=xi(xi({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=Qse(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=Qse(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=ir.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${Tc(t)} (was ${Tc(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=ir.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 y=a.event;if(p-l>1&&y.appendInPlace===!1||y.assetList.length===0&&y.assetListLoader)return}if(this.bufferedPos=t,c>h&&c>l)this.bufferedToItem(m);else{const y=this.primaryDetails;this.primaryLive&&y&&t>y.edge-y.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 ${Tc(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(pe.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(pe.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:o})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const I=n.duration;I&&S{if(S.live){var I;const O=new Error(`Interstitials MUST be VOD assets ${t}`),F={fatal:!0,type:Pn.OTHER_ERROR,details:Et.INTERSTITIAL_ASSET_ITEM_ERROR,error:O},M=((I=this.schedule)==null?void 0:I.findEventIndex(t.identifier))||-1;this.handleAssetItemError(F,t,M,r,O.message);return}const $=S.edge-S.fragmentStart,L=n.duration;(w||L===null||$>L)&&(w=!1,this.log(`Interstitial asset "${p}" duration change ${L} > ${$}`),n.duration=$,this.updateSchedule())};b.on(pe.LEVEL_UPDATED,(S,{details:I})=>C(I)),b.on(pe.LEVEL_PTS_UPDATED,(S,{details:I})=>C(I)),b.on(pe.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const x=(S,I)=>{const $=this.getAssetPlayer(p);if($&&I.tracks){$.off(pe.BUFFER_CODECS,x),$.tracks=I.tracks;const L=this.primaryMedia;this.bufferingAsset===$.assetItem&&L&&!$.media&&this.bufferAssetPlayer($,L)}};b.on(pe.BUFFER_CODECS,x);const _=()=>{var S;const I=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${I}`),!I||!this.schedule)return;const $=this.schedule.findEventIndex(t.identifier),L=(S=this.schedule.items)==null?void 0:S[$];this.isInterstitial(L)&&this.advanceAssetBuffering(L,n)};b.on(pe.BUFFERED_TO_END,_);const E=S=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const $=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,$,S)};return b.once(pe.MEDIA_ENDED,E(r)),b.once(pe.PLAYOUT_LIMIT_REACHED,E(1/0)),b.on(pe.ERROR,(S,I)=>{if(!this.schedule)return;const $=this.getAssetPlayer(p);if(I.details===Et.BUFFER_STALLED_ERROR){if($!=null&&$.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(I,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${I.error} ${t}`)}),b.on(pe.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const I=new Error(`Asset player destroyed unexpectedly ${p}`),$={fatal:!0,type:Pn.OTHER_ERROR,details:Et.INTERSTITIAL_ASSET_ITEM_ERROR,error:I};this.handleAssetItemError($,t,this.schedule.findEventIndex(t.identifier),r,I.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${hy(n)}`),this.hls.trigger(pe.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&&Tc(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} ${hy(l)}`),this.hls.trigger(pe.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&&!xye(p,t.tracks)){const m=new Error(`Asset ${hy(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),y={fatal:!0,type:Pn.OTHER_ERROR,details:Et.INTERSTITIAL_ASSET_ITEM_ERROR,error:m},b=a.findAssetIndex(s);this.handleAssetItemError(y,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!w.error))n.error=b;else for(let w=o;w{const x=parseFloat(w.DURATION);this.createAsset(a,C,h,c+h,x,w.URI),h+=x}),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 y=(o=this.bufferingItem)==null?void 0:o.event;if(m){var b;const w=this.schedule.findEventIndex(s),C=(b=this.schedule.items)==null?void 0:b[w];if(C){if(!this.playingItem&&this.timelinePos>C.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==w){a.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(C)}this.setSchedulePosition(w)}else if(y?.identifier===s){const w=a.assetList[0];if(w){const C=this.getAssetPlayer(w.identifier);if(y.appendInPlace){const x=this.primaryMedia;C&&x&&this.bufferAssetPlayer(C,x)}else C&&C.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case Et.ASSET_LIST_PARSING_ERROR:case Et.ASSET_LIST_LOAD_ERROR:case Et.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Et.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 Wae=500;class aTt extends kW{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",_n.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(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(pe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(pe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=Bt.IDLE,this.setInterval(Wae),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)||(us(r)&&(this.fragPrevious=r),this.state=Bt.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 iw(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new iw(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,_n.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!==Bt.STOPPED&&this.setInterval(Wae)}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(pe.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Bt.IDLE&&(fg(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&&Ky(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,bW(o.method)).catch(l=>{throw a.trigger(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(pe.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=Bt.IDLE})}}doTick(){if(!this.media){this.state=Bt.IDLE;return}if(this.state===Bt.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=ir.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,y=f.edge;let b=null;const w=this.fragPrevious;if(ly-_?0:_;b=fg(w,p,Math.max(p[0].start,l),E),!b&&w&&w.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 uTt={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},U1e=e=>String.fromCharCode(uTt[e]||e),Mc=15,Df=100,cTt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},dTt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},fTt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},hTt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},pTt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class vTt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;Ti.log(`${this.time} [${t}] ${r}`)}}}const fm=function(t){const n=[];for(let r=0;rDf&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Df)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=U1e(t);if(this.pos>=Df){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 = "+Hi(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+Hi(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 Gae{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 GB(r),this.nonDisplayedMemory=new GB(r),this.lastOutputScreen=new GB(r),this.currRollUpRow=this.displayedMemory.rows[Mc-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[Mc-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: "+Hi(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 Kae{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=bTt(),this.logger=void 0;const o=this.logger=new vTt;this.channels=[null,new Gae(t,n,o),new Gae(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"["+fm([n[r],n[r+1]])+"] -> ("+fm([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(yTt(o,a,c)){iE(null,null,c),this.logger.log(3,()=>"Repeated command ("+fm([o,a])+") is dropped");continue}iE(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 iE(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 "+fm([o,a])+" orig: "+fm([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 ("+fm([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?cTt[t]:fTt[t]:r=s===1?dTt[t]:hTt[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 '"+U1e(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 = "+fm(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=pTt[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.");$=M,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return L},set:function(M){const j=o(M);if(!j)throw new SyntaxError("An invalid or illegal string was specified.");L=j,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return O},set:function(M){if(M<0||M>100)throw new Error("Size must be between 0 and 100.");O=M,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return F},set:function(M){const j=o(M);if(!j)throw new SyntaxError("An invalid or illegal string was specified.");F=j,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class STt{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function W1e(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 kTt=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 G1e(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 XV=new MW(0,0,""),oE=XV.align==="middle"?"middle":"center";function wTt(e,t,n){const r=e;function o(){const l=W1e(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 kTt;G1e(l,function(m,y){let b;switch(m){case"region":for(let w=n.length-1;w>=0;w--)if(n[w].id===y){f.set(m,n[w].region);break}break;case"vertical":f.alt(m,y,["rl","lr"]);break;case"line":b=y.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",oE,"end"]);break;case"position":b=y.split(","),f.percent(m,b[0]),b.length===2&&f.alt("positionAlign",b[1],["start",oE,"end","line-left","line-right","auto"]);break;case"size":f.percent(m,y);break;case"align":f.alt(m,y,["start",oE,"end","left","right"]);break}},/:/,/\s/),c.region=f.get("region",null),c.vertical=f.get("vertical","");let h=f.get("line","auto");h==="auto"&&XV.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",oE);let p=f.get("position","auto");p==="auto"&&XV.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 K1e(e){return e.replace(//gi,` `)}class CTt{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new STt,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=K1e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{wTt(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 xTt=/\r\n|\n\r|\n|\r/g,KB=function(t,n,r=0){return t.slice(r,r+n.length)===n},_Tt=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(!fn(n)||!fn(r)||!fn(o)||!fn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function RW(e,t,n){return fk(e.toString())+fk(t.toString())+fk(n)}const TTt=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 ETt(e,t,n,r,o,a,s){const l=new CTt,c=Eu(new Uint8Array(e)).trim().replace(xTt,` `).split(` `),f=[],h=t?Mxt(t.baseTime,t.timescale):0;let p="00:00.000",m=0,y=0,b,w=!0;l.oncue=function(C){const x=n[r];let _=n.ccOffset;const E=(m-h)/9e4;if(x!=null&&x.new&&(y!==void 0?_=n.ccOffset=x.start:TTt(n,r,E)),E){if(!t){b=new Error("Missing initPTS for VTT MPEGTS");return}_=E-n.presentationOffset}const S=C.endTime-C.startTime,I=yu((C.startTime+_-y)*9e4,o*9e4)/9e4;C.startTime=Math.max(I,0),C.endTime=Math.max(I+S,0);const $=C.text.trim();C.text=decodeURIComponent(encodeURIComponent($)),C.id||(C.id=RW(C.startTime,C.endTime,$)),C.endTime>0&&f.push(C)},l.onparsingerror=function(C){b=C},l.onflush=function(){if(b){s(b);return}a(f)},c.forEach(C=>{if(w)if(KB(C,"X-TIMESTAMP-MAP=")){w=!1,C.slice(16).split(",").forEach(x=>{KB(x,"LOCAL:")?p=x.slice(6):KB(x,"MPEGTS:")&&(m=parseInt(x.slice(7)))});try{y=_Tt(p)/1e3}catch(x){b=x}return}else C===""&&(w=!1);l.parse(C+` `)}),l.flush()}const qB="stpp.ttml.im1t",q1e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Y1e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ITt={left:"start",center:"center",right:"end",start:"start",end:"end"};function qae(e,t,n,r){const o=Er(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>Eu(l)),s=$xt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(ATt(l,s)))}catch(l){r(l)}}function ATt(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=Yae(YB(o,"styling","style")),f=Yae(YB(o,"layout","region")),h=YB(o,"body","[begin]");return[].map.call(h,p=>{const m=X1e(p,l);if(!m||!p.hasAttribute("begin"))return null;const y=ZB(p.getAttribute("begin"),s),b=ZB(p.getAttribute("dur"),s);let w=ZB(p.getAttribute("end"),s);if(y===null)throw Xae(p);if(w===null){if(b===null)throw Xae(p);w=y+b}const C=new MW(y-t,w-t,m);C.id=RW(C.startTime,C.endTime,C.text);const x=f[p.getAttribute("region")],_=c[p.getAttribute("style")],E=LTt(x,_,c),{textAlign:S}=E;if(S){const I=ITt[S];I&&(C.lineAlign=I),C.align=S}return Mi(C,E),C}).filter(p=>p!==null)}function YB(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function Yae(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function X1e(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?X1e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function LTt(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=XB(t,r,c)||XB(e,r,c)||XB(o,r,c);return f&&(l[c]=f),l},{})}function XB(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Xae(e){return new Error(`Could not parse ttml timestamp ${e}`)}function ZB(e,t){if(!e)return null;let n=W1e(e);return n===null&&(q1e.test(e)?n=PTt(e,t):Y1e.test(e)&&(n=$Tt(e,t))),n}function PTt(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 $Tt(e,t){const n=Y1e.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 sE{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 MTt{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=Jae(),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(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(pe.FRAG_LOADING,this.onFragLoading,this),t.on(pe.FRAG_LOADED,this.onFragLoaded,this),t.on(pe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(pe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(pe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(pe.FRAG_LOADING,this.onFragLoading,this),t.off(pe.FRAG_LOADED,this.onFragLoaded,this),t.off(pe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(pe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(pe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new sE(this,"textTrack1"),n=new sE(this,"textTrack2"),r=new sE(this,"textTrack3"),o=new sE(this,"textTrack4");this.cea608Parser1=new Kae(1,t,n),this.cea608Parser2=new Kae(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],f=RTt(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(pe.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===_n.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(pe.FRAG_LOADED,c):this.hls.trigger(pe.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{wy(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Jae(),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===qB);if(this.config.enableWebVTT||o&&this.config.enableIMSC1){if(E1e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?e3(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(pe.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===_n.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===_n.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===qB?this._parseIMSC1(r,o):this._parseVTTs(n)}}else this.hls.trigger(pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;qae(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(pe.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(pe.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?dc(r.initSegment.data,new Uint8Array(o)).buffer:o;ETt(f,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(pe.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(pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||qae(n,this.initPTS[t.cc],()=>{r.textCodec=qB,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=>V1e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(pe.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===_n.SUBTITLE&&this.onFragLoaded(pe.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===_n.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aYV(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>YV(l[c],n,o))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let o=2;for(let a=0;a=16?c--:c++;const y=K1e(f.trim()),b=RW(t,n,y);e!=null&&(p=e.cues)!=null&&p.getCueById(b)||(s=new h(t,n,y),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,y)=>m.line==="auto"||y.line==="auto"?0:m.line>8&&y.line>8?y.line-m.line:m.line-y.line),o.forEach(m=>V1e(e,m))),o}};function NTt(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const BTt=/(\d+)-(\d+)\/(\d+)/;class Qae{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||zTt,this.controller=new self.AbortController,this.stats=new fW}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=FTt(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&&fn(c)?c:f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(aw(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var m;this.response=this.loader=p;const y=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-(y-o.loading.start)),!p.ok){const{status:w,statusText:C}=p;throw new UTt(C||"fetch, bad network response",w,p)}o.loading.first=y,o.total=VTt(p.headers)||o.total;const b=(m=this.callbacks)==null?void 0:m.onProgress;return b&&fn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,b):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var m,y;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 w=p[l];w&&(o.loaded=o.total=w);const C={url:b.url,data:p,code:b.status},x=(m=this.callbacks)==null?void 0:m.onProgress;x&&!fn(n.highWaterMark)&&x(o,t,p,b),(y=this.callbacks)==null||y.onSuccess(C,o,t,b)}).catch(p=>{var m;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const y=p&&p.code||0,b=p?p.message:null;(m=this.callbacks)==null||m.onError({code:y,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 a1e,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 FTt(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(Mi({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function jTt(e){const t=BTt.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function VTt(e){const t=e.get("Content-Range");if(t){const r=jTt(t);if(fn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function zTt(e,t){return new self.Request(e.url,t)}class UTt extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const HTt=/^age:\s*[\d.]+\s*$/im;class J1e{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 fW,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&&fn(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 w=n.responseType==="arraybuffer"?b.byteLength:b.length;r.loaded=r.total=w,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const C=(s=this.callbacks)==null?void 0:s.onProgress;C&&C(r,t,b,n);const x={url:n.responseURL,data:b,code:f};(l=this.callbacks)==null||l.onSuccess(x,r,t,n);return}}const p=a.loadPolicy.errorRetry,m=r.retry,y={url:t.url,data:void 0,code:f};if(LI(p,m,!1,y))this.retry(p);else{var c;Ti.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;Ti.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=mW(t,r.retry),r.retry++,Ti.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&&HTt.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 WTt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},GTt=xi(xi({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:J1e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:iCt,bufferController:qxt,capLevelController:LW,errorController:uCt,fpsController:Y_t,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:Xye,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:WTt},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},KTt()),{},{subtitleStreamController:aTt,subtitleTrackController:J_t,timelineController:MTt,audioStreamController:Hxt,audioTrackController:Wxt,emeController:qy,cmcdController:W_t,contentSteeringController:K_t,interstitialsController:sTt});function KTt(){return{cueHandler:OTt,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 qTt(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=ZV(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 y=r[l].default;switch(t[l]={default:y},h){case"TimeOut":y.maxLoadTimeMs=m,y.maxTimeToFirstByteMs=m;break;case"MaxRetry":y.errorRetry.maxNumRetry=m,y.timeoutRetry.maxNumRetry=m;break;case"RetryDelay":y.errorRetry.retryDelayMs=m,y.timeoutRetry.retryDelayMs=m;break;case"MaxRetryTimeout":y.errorRetry.maxRetryDelayMs=m,y.timeoutRetry.maxRetryDelayMs=m;break}}}),f.length&&n.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${l}": ${Hi(t[l])}`)}),xi(xi({},r),t)}function ZV(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(ZV):Object.keys(e).reduce((t,n)=>(t[n]=ZV(e[n]),t),{}):e}function YTt(e,t){const n=e.loader;n!==Qae&&n!==J1e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):NTt()&&(e.loader=Qae,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const t3=2,XTt=.1,ZTt=.05,JTt=100;class QTt extends Wye{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(pe.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.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(JTt),this.mediaSource=n.mediaSource;const r=this.media=n.media;fl(r,"playing",this.onMediaPlaying),fl(r,"waiting",this.onMediaWaiting),fl(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(Hl(r,"playing",this.onMediaPlaying),Hl(r,"waiting",this.onMediaWaiting),Hl(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(pe.MEDIA_ENDED,{stalled:!1}));return}if(!ir.getBuffered(s).length){this.nudgeRetry=0;return}const p=ir.bufferInfo(s,t,0),m=p.nextStart||0,y=this.fragmentTracker;if(l&&y&&this.hls){const $=ele(this.hls.inFlightFragments,t),L=p.len>t3,O=!m||$||m-t>t3&&!y.getPartialFragment(t);if(L||O)return;this.moved=!1}const b=(o=this.hls)==null?void 0:o.latestLevelDetails;if(!this.moved&&this.stalled!==null&&y){if(!(p.len>0)&&!m)return;const L=Math.max(m,p.start||0)-t,F=!!(b!=null&&b.live)?b.targetduration*2:t3,M=aE(t,y);if(L>0&&(L<=F||M)){s.paused||this._trySkipBufferHole(M);return}}const w=a.detectStallWithCurrentTimeMs,C=self.performance.now(),x=this.waiting;let _=this.stalled;if(_===null)if(x>0&&C-x=w||x)&&this.hls){var S;if(((S=this.mediaSource)==null?void 0:S.readyState)==="ended"&&!(b!=null&&b.live)&&Math.abs(t-(b?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(pe.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const I=ir.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(I,E,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(pe.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=ir.bufferedInfo(ir.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=ir.timeRangesToArray(o),l=ir.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=aE(t,this.fragmentTracker);m&&"fragment"in m?m=m.fragment:m||(m=void 0);const y=ir.bufferInfo(this.media,t,0);this.hls.trigger(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:m,buffer:y.len,bufferInfo:y})}}}}}_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=aE(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,_n.MAIN),s=r.getFragAtPos(o,_n.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 (${Hi(t)})`);this.warn(s.message),n.trigger(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.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=ir.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 w=r.getAppendedFrag(0,_n.MAIN);w&&c"u"))return self.VTTCue||self.TextTrackCue}function JB(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,Hi(o?xi({type:o},r):r))}return a}const lE=(()=>{const e=JV();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class tEt{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(pe.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(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(pe.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(pe.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&&wy(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;nlE&&(p=lE),p-h<=0&&(p=h+eEt);for(let y=0;yh.type===Su.audioId3&&c:o==="video"?f=h=>h.type===Su.emsg&&l:f=h=>h.type===Su.audioId3&&c||h.type===Su.emsg&&l,YV(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=JV();if(r&&o&&!s){const{fragmentStart:w,fragmentEnd:C}=t;let x=this.assetCue;x?(x.startTime=w,x.endTime=C):l&&(x=this.assetCue=JB(l,w,C,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),x&&(x.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(x),x.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 w=Object.keys(p).filter(C=>!h.includes(C));for(let C=w.length;C--;){var y;const x=w[C],_=(y=p[x])==null?void 0:y.cues;delete p[x],_&&Object.keys(_).forEach(E=>{const S=_[E];if(S){S.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(S)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const b=t.fragments[t.fragments.length-1];if(!(h.length===0||!fn(b?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let w=0;w{if(V!==x.id){const W=f[V];if(W.class===x.class&&W.startDate>x.startDate&&(!j||x.startDate.01&&(V.startTime=_,V.endTime=$);else if(l){let W=x.attr[j];CCt(j)&&(W=_ye(W));const X=JB(l,_,$,{key:j,data:W},Su.dateRange);X&&(X.id=C,this.id3Track.addCue(X),S[j]=X,s&&(j==="X-ASSET-LIST"||j==="X-ASSET-URL")&&X.addEventListener("enter",this.onEventCueEnter))}}p[C]={cues:S,dateRange:x,durationKnown:I}}}}}class nEt{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,y=Math.min(p,Math.max(1,m));this.changeMediaPlaybackRate(n,y)}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(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(pe.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(pe.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===Et.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 rEt extends AW{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(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(pe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(pe.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(pe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(pe.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:y}=h;m&&(h.audioCodec=m=TI(m,r)||void 0),y&&(y=h.videoCodec=Fwt(y));const{width:b,height:w,unknownCodecs:C}=h,x=C?.length||0;if(l||(l=!!(b&&w)),c||(c=!!y),f||(f=!!m),x||m&&!this.isAudioSupported(m)||y&&!this.isVideoSupported(y)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:_,"FRAME-RATE":E,"HDCP-LEVEL":S,"PATHWAY-ID":I,RESOLUTION:$,"VIDEO-RANGE":L}=p,F=`${`${I||"."}-`}${h.bitrate}-${$}-${E}-${_}-${L}-${S}`;if(a[F])if(a[F].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const M=s[F]+=1;h.attrs["PATHWAY-ID"]=new Array(M+1).join(".");const j=this.createLevel(h);a[F]=j,o.push(j)}else a[F].addGroupId("audio",p.AUDIO),a[F].addGroupId("text",p.SUBTITLES);else{const M=this.createLevel(h);a[F]=M,s[F]=1,o.push(M)}}),this.filterAndSortMediaOptions(o,n,l,c,f)}createLevel(t){const n=new iw(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=Nye(o,[])}return n}isAudioSupported(t){return nw(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return nw(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:_,videoRange:E,width:S,height:I})=>(!!_||!!(S&&I))&&Ywt(E))),f.length===0){Promise.resolve().then(()=>{if(this.hls){let _="no level with compatible codecs found in manifest",E=_;n.levels.length&&(E=`one or more CODECS in variant not supported: ${Hi(n.levels.map(I=>I.attrs.CODECS).filter((I,$,L)=>L.indexOf(I)===$))}`,this.warn(E),_+=` (${E})`);const S=new Error(_);this.hls.trigger(pe.ERROR,{type:Pn.MEDIA_ERROR,details:Et.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:S,reason:E})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(_=>!_.audioCodec||this.isAudioSupported(_.audioCodec)),nle(l)),n.subtitles&&(c=n.subtitles,nle(c));const p=f.slice(0);f.sort((_,E)=>{if(_.attrs["HDCP-LEVEL"]!==E.attrs["HDCP-LEVEL"])return(_.attrs["HDCP-LEVEL"]||"")>(E.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&_.height!==E.height)return _.height-E.height;if(_.frameRate!==E.frameRate)return _.frameRate-E.frameRate;if(_.videoRange!==E.videoRange)return EI.indexOf(_.videoRange)-EI.indexOf(E.videoRange);if(_.videoCodec!==E.videoCodec){const S=Kse(_.videoCodec),I=Kse(E.videoCodec);if(S!==I)return I-S}if(_.uri===E.uri&&_.codecSet!==E.codecSet){const S=_I(_.codecSet),I=_I(E.codecSet);if(S!==I)return I-S}return _.averageBitrate!==E.averageBitrate?_.averageBitrate-E.averageBitrate:0});let m=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let _=0;_S&&S===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=I)}break}const b=a&&!o,w=this.hls.config,C=!!(w.audioStreamController&&w.audioTrackController),x={levels:f,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:o,altAudio:C&&!b&&l.some(_=>!!_.url)};h.end=performance.now(),this.hls.trigger(pe.MANIFEST_PARSED,x)}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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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(pe.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===$r.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===_n.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(pe.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));i1e(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(pe.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(pe.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function nle(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function Q1e(){return self.SourceBuffer||self.WebKitSourceBuffer}function ebe(){if(!nv())return!1;const t=Q1e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function iEt(){if(!ebe())return!1;const e=nv();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(rw(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(rw(t,"audio"))))}function oEt(){var e;const t=Q1e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const sEt=100;class aEt extends kW{constructor(t,n,r){super(t,n,r,"stream-controller",_n.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||!fn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,_n.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(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(pe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(pe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(pe.BUFFER_CREATED,this.onBufferCreated,this),t.on(pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(pe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(pe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(pe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(pe.BUFFER_CREATED,this.onBufferCreated,this),t.off(pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(pe.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(sEt),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=Bt.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=Bt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Bt.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=Bt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Bt.IDLE;break}break}case Bt.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Bt.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 w={};this.altAudio===2&&(w.type="video"),this.hls.trigger(pe.BUFFER_EOS,w),this.state=Bt.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===Bt.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=Bt.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 y=this.getNextFragment(m,f);if(this.couldBacktrack&&!this.fragPrevious&&y&&us(y)&&this.fragmentTracker.getState(y)!==Es.OK){var b;const C=((b=this.backtrackFragment)!=null?b:y).sn-f.startSN,x=f.fragments[C-1];x&&y.cc===x.cc&&(y=x,this.fragmentTracker.removeFragment(x))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(y&&this.isLoopLoading(y,m)){if(!y.gap){const C=this.audioOnly&&!this.altAudio?Ui.AUDIO:Ui.VIDEO,x=(C===Ui.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;x&&this.afterBufferFlushed(x,C,_n.MAIN)}y=this.getNextFragmentLoopLoading(y,f,l,_n.MAIN,p)}y&&(y.initSegment&&!y.initSegment.data&&!this.bitrateTest&&(y=y.initSegment),this.loadFragment(y,s,m))}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);o===Es.NOT_LOADED||o===Es.PARTIAL?us(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,_n.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(pe.AUDIO_TRACK_SWITCHED,n)}),r.trigger(pe.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(pe.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=II(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===_n.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===Bt.PARSED&&(this.state=Bt.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),us(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&ir.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=Bt.ERROR;return}switch(n.details){case Et.FRAG_GAP:case Et.FRAG_PARSING_ERROR:case Et.FRAG_DECRYPT_ERROR:case Et.FRAG_LOAD_ERROR:case Et.FRAG_LOAD_TIMEOUT:case Et.KEY_LOAD_ERROR:case Et.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(_n.MAIN,n);break;case Et.LEVEL_LOAD_ERROR:case Et.LEVEL_LOAD_TIMEOUT:case Et.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Bt.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===$r.LEVEL&&(this.state=Bt.IDLE);break;case Et.BUFFER_ADD_CODEC_ERROR:case Et.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Et.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 Et.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=Bt.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==Ui.AUDIO||!this.altAudio){const r=(n===Ui.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,_n.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=Bt.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(pe.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===Bt.STOPPED||this.state===Bt.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:y}=o,{details:b}=f,w=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=Bt.PARSING,y){const C=y.tracks;if(C){const S=l.initSegment||l;if(this.unhandledEncryptionError(y,l))return;this._bufferInitSegment(f,C,S,a),r.trigger(pe.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:n,tracks:C})}const x=y.initPTS,_=y.timescale,E=this.initPTS[l.cc];if(fn(x)&&(!E||E.baseTime!==x||E.timescale!==_)){const S=y.trackId;this.initPTS[l.cc]={baseTime:x,timescale:_,trackId:S},r.trigger(pe.INIT_PTS_FOUND,{frag:l,id:n,initPTS:x,timescale:_,trackId:S})}}if(h&&b){w&&h.type==="audiovideo"&&this.logMuxedErr(l);const C=b.fragments[l.sn-1-b.startSN],x=l.sn===b.startSN,_=!C||l.cc>C.cc;if(o.independent!==!1){const{startPTS:E,endPTS:S,startDTS:I,endDTS:$}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:S,startDTS:I,endDTS:$};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!_&&(this.couldBacktrack=!0),h.dropped&&h.independent){const L=this.getMainFwdBufferInfo(),O=(L?L.end:this.getLoadPosition())+this.config.maxBufferHole,F=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!x&&Ot3&&(l.gap=!0);l.setElementaryStreamInfo(h.type,E,S,I,$),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,x||_)}else if(x||_)l.gap=!0;else{this.backtrack(l);return}}if(w){const{startPTS:C,endPTS:x,startDTS:_,endDTS:E}=w;c&&(c.elementaryStreams[Ui.AUDIO]={startPTS:C,endPTS:x,startDTS:_,endDTS:E}),l.setElementaryStreamInfo(Ui.AUDIO,C,x,_,E),this.bufferFragmentData(w,l,c,a)}if(b&&m!=null&&m.samples.length){const C={id:n,frag:l,details:b,samples:m.samples};r.trigger(pe.FRAG_PARSING_METADATA,C)}if(b&&p){const C={id:n,frag:l,details:b,samples:p.samples};r.trigger(pe.FRAG_PARSING_USERDATA,C)}}logMuxedErr(t){this.warn(`${us(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,o){if(this.state!==Bt.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=_n.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=_n.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(pe.BUFFER_CODECS,n),!this.hls)return;c.forEach(f=>{const p=n[f].initSegment;p!=null&&p.byteLength&&this.hls.trigger(pe.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,_n.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=Bt.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(ir.isBuffered(t,r)?n=this.getAppendedFrag(r):ir.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(pe.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(pe.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 fn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(fn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?fg(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 lEt extends pc{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=Et.KEY_LOAD_ERROR,r,o,a){return new Vf({type:Pn.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=k2(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,Et.KEY_LOAD_ERROR,f))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Et.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=QB(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: "+al(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,Et.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=Ewt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${al(l)}`),t.decryptdata.keyId=l,qm.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,y,b,w)=>{const{frag:C,keyInfo:x}=b,_=QB(x.decryptdata);if(!C.decryptdata||x!==this.keyIdToKeyInfo[_])return l(this.createKeyLoadError(C,Et.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),w));x.decryptdata.key=C.decryptdata.key=new Uint8Array(m.data),C.keyLoader=null,x.loader=null,s({frag:C,keyInfo:x})},onError:(m,y,b,w)=>{this.resetLoader(y),l(this.createKeyLoadError(n,Et.KEY_LOAD_ERROR,new Error(`HTTP Error ${m.code} loading key ${m.text}`),b,xi({url:c.url,data:void 0},m)))},onTimeout:(m,y,b)=>{this.resetLoader(y),l(this.createKeyLoadError(n,Et.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),b))},onAbort:(m,y,b)=>{this.resetLoader(y),l(this.createKeyLoadError(n,Et.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=QB(r.decryptdata)||o;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function QB(e){if(e.keyFormat!==oa.FAIRPLAY){const t=e.keyId;if(t)return al(t)}return e.uri}function rle(e){const{type:t}=e;switch(t){case $r.AUDIO_TRACK:return _n.AUDIO;case $r.SUBTITLE_TRACK:return _n.SUBTITLE;default:return _n.MAIN}}function eF(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class uEt{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(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(pe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(pe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(pe.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(pe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(pe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(pe.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:$r.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:$r.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:$r.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:$r.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[$r.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[$r.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===$r.MANIFEST?a=r.manifestLoadPolicy.default:a=Mi({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),fn((n=t.deliveryDirectives)==null?void 0:n.part)){let f;if(t.type===$r.LEVEL&&t.level!==null?f=this.hls.levels[t.level].details:t.type===$r.AUDIO_TRACK&&t.id!==null?f=this.hls.audioTracks[t.id].details:t.type===$r.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=Mi({},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 y=this.getInternalLoader(p);this.resetInternalLoader(p.type);const b=f.data;h.parsing.start=performance.now(),$d.isMediaPlaylist(b)||p.type!==$r.MANIFEST?this.handleTrackOrLevelPlaylist(f,h,p,m||null,y):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=eF(t,r),c=$d.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:y,variableList:b}=c;this.variableList=b,h.forEach(_=>{const{unknownCodecs:E}=_;if(E){const{preferManagedMediaSource:S}=this.hls.config;let{audioCodec:I,videoCodec:$}=_;for(let L=E.length;L--;){const O=E[L];nw(O,"audio",S)?(_.audioCodec=I=I?`${I},${O}`:O,g1.audio[I.substring(0,4)]=2,E.splice(L,1)):nw(O,"video",S)&&(_.videoCodec=$=$?`${$},${O}`:O,g1.video[$.substring(0,4)]=2,E.splice(L,1))}}});const{AUDIO:w=[],SUBTITLES:C,"CLOSED-CAPTIONS":x}=$d.parseMasterPlaylistMedia(s,l,c);w.length&&!w.some(E=>!E.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),w.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Co({}),bitrate:0,url:""})),a.trigger(pe.MANIFEST_LOADED,{levels:h,audioTracks:w,subtitles:C,captions:x,contentSteering:f,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:m,startTimeOffset:y,variableList:b})}handleTrackOrLevelPlaylist(t,n,r,o,a){const s=this.hls,{id:l,level:c,type:f}=r,h=eF(t,r),p=fn(c)?c:fn(l)?l:0,m=rle(r),y=$d.parseLevelPlaylist(t.data,h,p,m,0,this.variableList);if(f===$r.MANIFEST){const b={attrs:new Co({}),bitrate:0,details:y,name:"",url:h};y.requestScheduled=n.loading.start+t1e(y,0),s.trigger(pe.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=y,this.handlePlaylistLoaded(y,t,n,r,o,a)}handleManifestParsingError(t,n,r,o,a){this.hls.trigger(pe.ERROR,{type:Pn.NETWORK_ERROR,details:Et.MANIFEST_PARSING_ERROR,fatal:n.type===$r.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===$r.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===$r.AUDIO_TRACK||t.type===$r.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=Et.UNKNOWN,f=!1;const h=this.getInternalLoader(t);switch(t.type){case $r.MANIFEST:c=r?Et.MANIFEST_LOAD_TIMEOUT:Et.MANIFEST_LOAD_ERROR,f=!0;break;case $r.LEVEL:c=r?Et.LEVEL_LOAD_TIMEOUT:Et.LEVEL_LOAD_ERROR,f=!1;break;case $r.AUDIO_TRACK:c=r?Et.AUDIO_TRACK_LOAD_TIMEOUT:Et.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case $r.SUBTITLE_TRACK:c=r?Et.SUBTITLE_TRACK_LOAD_TIMEOUT:Et.SUBTITLE_LOAD_ERROR,f=!1;break}h&&this.resetInternalLoader(t.type);const p={type:Pn.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=xi({url:m,data:void 0},o)}this.hls.trigger(pe.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:f,levelOrTrack:h,id:p,groupId:m,deliveryDirectives:y}=o,b=eF(n,o),w=rle(o);let C=typeof o.level=="number"&&w===_n.MAIN?f:void 0;const x=t.playlistParsingError;if(x){if(this.hls.logger.warn(`${x} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(pe.ERROR,{type:Pn.NETWORK_ERROR,details:Et.LEVEL_PARSING_ERROR,fatal:!1,url:b,error:x,reason:x.message,response:n,context:o,level:C,parent:w,networkDetails:a,stats:r});return}t.playlistParsingError=null}if(!t.fragments.length){const _=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(pe.ERROR,{type:Pn.NETWORK_ERROR,details:Et.LEVEL_EMPTY_ERROR,fatal:!1,url:b,error:_,reason:_.message,response:n,context:o,level:C,parent:w,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 $r.MANIFEST:case $r.LEVEL:if(C){if(!h)C=0;else if(h!==l.levels[C]){const _=l.levels.indexOf(h);_>-1&&(C=_)}}l.trigger(pe.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:C||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:y,withoutMultiVariant:c===$r.MANIFEST});break;case $r.AUDIO_TRACK:l.trigger(pe.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:y});break;case $r.SUBTITLE_TRACK:l.trigger(pe.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:y});break}}}class Vl{static get version(){return ow}static isMSESupported(){return ebe()}static isSupported(){return iEt()}static getMediaSource(){return nv()}static get Events(){return pe}static get MetadataSchema(){return Su}static get ErrorTypes(){return Pn}static get ErrorDetails(){return Et}static get DefaultConfig(){return Vl.defaultConfig?Vl.defaultConfig:GTt}static set DefaultConfig(t){Vl.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 wW,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=vwt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=qTt(Vl.DefaultConfig,t,n);this.userConfig=t,r.progressive&&YTt(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 cCt(this),m=r.interstitialsController,y=m?this.interstitialsController=new m(this,Vl):null,b=this.bufferController=new a(this,p),w=this.capLevelController=new s(this),C=new c(this),x=new uEt(this),_=r.contentSteeringController,E=_?new _(this):null,S=this.levelController=new rEt(this,E),I=new tEt(this),$=new lEt(this.config,this.logger),L=this.streamController=new aEt(this,p,$),O=this.gapController=new QTt(this,p);w.setStreamController(L),C.setStreamController(L);const F=[x,S,L];y&&F.splice(1,0,y),E&&F.splice(1,0,E),this.networkControllers=F;const M=[h,b,O,w,C,I,p];this.audioTrackController=this.createController(r.audioTrackController,F);const j=r.audioStreamController;j&&F.push(this.audioStreamController=new j(this,p,$)),this.subtitleTrackController=this.createController(r.subtitleTrackController,F);const V=r.subtitleStreamController;V&&F.push(this.subtititleStreamController=new V(this,p,$)),this.createController(r.timelineController,M),$.emeController=this.emeController=this.createController(r.emeController,M),this.cmcdController=this.createController(r.cmcdController,M),this.latencyController=this.createController(nEt,M),this.coreComponents=M,F.push(f);const W=f.onErrorOut;typeof W=="function"&&this.on(pe.ERROR,W,f),this.on(pe.MANIFEST_LOADED,x.onManifestLoaded,x)}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===pe.ERROR;this.trigger(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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(pe.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(pe.ERROR,{type:Pn.OTHER_ERROR,details:Et.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(pe.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(pe.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(pe.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=dW.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(pe.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={[_n.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[_n.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[_n.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=Q_t()),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){qwt(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=jye(n);return Bye(t,r,navigator.mediaCapabilities)}}Vl.defaultConfig=void 0;const cEt={class:"player-header"},dEt={class:"player-controls"},fEt={class:"compact-button-group"},hEt={class:"compact-btn selector-btn"},pEt={__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"],setup(e){return(t,n)=>{const r=ke("a-option"),o=ke("a-select");return z(),q("div",cEt,[A("h3",null,"正在播放: "+_e(e.episodeName),1),A("div",dEt,[A("div",fEt,[e.showDebugButton?(z(),q("div",{key:0,class:"compact-btn debug-btn",onClick:n[0]||(n[0]=a=>t.$emit("toggle-debug")),title:"调试信息"},[...n[6]||(n[6]=[Qm('调试',2)])])):ge("",!0),e.showAutoNext&&e.episodes.length>1?(z(),q("div",{key:1,class:ne(["compact-btn",{active:e.autoNextEnabled}]),onClick:n[1]||(n[1]=a=>t.$emit("toggle-auto-next"))},[...n[7]||(n[7]=[A("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),A("span",{class:"btn-text"},"自动连播",-1)])],2)):ge("",!0),e.showCountdown&&e.episodes.length>1?(z(),q("div",{key:2,class:ne(["compact-btn",{active:e.countdownEnabled}]),onClick:n[2]||(n[2]=a=>t.$emit("toggle-countdown"))},[...n[8]||(n[8]=[A("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),A("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),A("span",{class:"btn-text"},"倒计时",-1)])],2)):ge("",!0),A("div",hEt,[n[11]||(n[11]=A("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),A("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),A("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),R(o,{"model-value":e.playerType,onChange:n[3]||(n[3]=a=>t.$emit("player-change",a)),class:"compact-select",size:"small"},{default:se(()=>[R(r,{value:"default"},{default:se(()=>[...n[9]||(n[9]=[$e("默认播放器",-1)])]),_:1}),R(r,{value:"artplayer"},{default:se(()=>[...n[10]||(n[10]=[$e("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),A("div",{class:ne(["compact-btn",{active:e.skipEnabled}]),onClick:n[4]||(n[4]=a=>t.$emit("open-skip-settings"))},[...n[12]||(n[12]=[Qm('片头片尾',2)])],2),A("div",{class:"compact-btn close-btn",onClick:n[5]||(n[5]=a=>t.$emit("close"))},[...n[13]||(n[13]=[A("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),A("span",{class:"btn-text"},"关闭",-1)])])])])])}}},tbe=zn(pEt,[["__scopeId","data-v-1804779c"]]),vEt={class:"dialog-header"},mEt={class:"dialog-content"},gEt={class:"setting-row"},yEt={class:"setting-control"},bEt={key:1,class:"unit"},SEt={class:"setting-row"},kEt={class:"setting-control"},wEt={key:1,class:"unit"},CEt={class:"dialog-footer"},xEt={__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=ae(n.skipIntroEnabled),a=ae(n.skipOutroEnabled),s=ae(n.skipIntroSeconds),l=ae(n.skipOutroSeconds);bt(()=>n.skipIntroEnabled,h=>{o.value=h}),bt(()=>n.skipOutroEnabled,h=>{a.value=h}),bt(()=>n.skipIntroSeconds,h=>{s.value=h}),bt(()=>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=ke("a-switch"),y=ke("a-input-number"),b=ke("a-button");return e.visible?(z(),q("div",{key:0,class:"skip-settings-overlay",onClick:c},[A("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=lo(()=>{},["stop"]))},[A("div",vEt,[p[8]||(p[8]=A("h3",null,"片头片尾设置",-1)),A("button",{class:"close-btn",onClick:p[0]||(p[0]=w=>h.$emit("close"))},[...p[7]||(p[7]=[A("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),A("div",mEt,[A("div",gEt,[p[9]||(p[9]=A("div",{class:"setting-label"},[A("span",null,"跳过片头"),A("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),A("div",yEt,[R(m,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=w=>o.value=w),size:"small"},null,8,["modelValue"]),o.value?(z(),Ne(y,{key:0,modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=w=>s.value=w),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):ge("",!0),o.value?(z(),q("span",bEt,"秒")):ge("",!0)])]),A("div",SEt,[p[10]||(p[10]=A("div",{class:"setting-label"},[A("span",null,"跳过片尾"),A("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),A("div",kEt,[R(m,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=w=>a.value=w),size:"small"},null,8,["modelValue"]),a.value?(z(),Ne(y,{key:0,modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=w=>l.value=w),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):ge("",!0),a.value?(z(),q("span",wEt,"秒")):ge("",!0)])]),p[11]||(p[11]=A("div",{class:"setting-hint-global"},[A("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),A("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),$e(" 设置将自动保存并应用到所有播放器 ")],-1))]),A("div",CEt,[R(b,{onClick:p[5]||(p[5]=w=>h.$emit("close")),size:"small"},{default:se(()=>[...p[12]||(p[12]=[$e(" 取消 ",-1)])]),_:1}),R(b,{type:"primary",onClick:f,size:"small"},{default:se(()=>[...p[13]||(p[13]=[$e(" 保存 ",-1)])]),_:1})])])])):ge("",!0)}}},nbe=zn(xEt,[["__scopeId","data-v-c8c7504a"]]),_Et={class:"dialog-header"},TEt={class:"dialog-content"},EEt={class:"info-section"},IEt={class:"section-header"},AEt=["disabled"],LEt={class:"info-content"},PEt={class:"url-display"},$Et={class:"info-section"},MEt={class:"section-header"},REt=["disabled"],DEt={class:"info-content"},OEt={class:"headers-display"},NEt={key:0,class:"no-data"},BEt={key:1,class:"headers-text"},FEt={class:"info-section"},jEt={class:"info-content"},VEt={class:"format-info"},zEt={class:"format-value"},UEt={class:"info-section"},HEt={class:"info-content"},WEt={class:"player-info"},GEt={class:"player-value"},KEt={__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=N(()=>!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){Ct.warning(`${f}为空,无法复制`);return}try{await navigator.clipboard.writeText(c),Ct.success(`${f}已复制到剪贴板`)}catch(h){console.error("复制失败:",h),Ct.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?(z(),q("div",{key:0,class:"debug-info-overlay",onClick:a},[A("div",{class:"debug-info-dialog",onClick:f[3]||(f[3]=lo(()=>{},["stop"]))},[A("div",_Et,[f[5]||(f[5]=A("h3",null,"🔧 视频调试信息",-1)),A("button",{class:"close-btn",onClick:f[0]||(f[0]=h=>c.$emit("close"))},[...f[4]||(f[4]=[A("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),A("div",TEt,[A("div",EEt,[A("div",IEt,[f[7]||(f[7]=A("h4",null,"📹 视频直链",-1)),A("button",{class:"copy-btn",onClick:f[1]||(f[1]=h=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...f[6]||(f[6]=[A("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),A("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),$e(" 复制 ",-1)])],8,AEt)]),A("div",LEt,[A("div",PEt,_e(e.videoUrl||"暂无视频链接"),1)])]),A("div",$Et,[A("div",MEt,[f[9]||(f[9]=A("h4",null,"📋 请求头信息",-1)),A("button",{class:"copy-btn",onClick:f[2]||(f[2]=h=>s(o.value,"请求头信息")),disabled:!o.value},[...f[8]||(f[8]=[A("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),A("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),$e(" 复制 ",-1)])],8,REt)]),A("div",DEt,[A("div",OEt,[o.value?(z(),q("pre",BEt,_e(o.value),1)):(z(),q("div",NEt,"暂无请求头信息"))])])]),A("div",FEt,[f[11]||(f[11]=A("div",{class:"section-header"},[A("h4",null,"🎬 视频格式")],-1)),A("div",jEt,[A("div",VEt,[f[10]||(f[10]=A("span",{class:"format-label"},"检测格式:",-1)),A("span",zEt,_e(e.detectedFormat||"未知"),1)])])]),A("div",UEt,[f[13]||(f[13]=A("div",{class:"section-header"},[A("h4",null,"⚙️ 播放器信息")],-1)),A("div",HEt,[A("div",WEt,[f[12]||(f[12]=A("span",{class:"player-label"},"当前播放器:",-1)),A("span",GEt,_e(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),A("div",{class:"action-section"},[A("button",{class:"copy-all-btn",onClick:l},[...f[14]||(f[14]=[A("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),A("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),$e(" 复制所有调试信息 ",-1)])])])])])])):ge("",!0)}},rbe=zn(KEt,[["__scopeId","data-v-eae69392"]]);function ibe(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:o=()=>0}=e,a=ae(!1),s=ae(!1),l=ae(!1),c=ae(90),f=ae(90),h=ae(!1),p=ae(!1),m=ae(null),y=ae(0),b=ae(!1),w=ae(0),C=ae(!1),x=ae(0),_=N(()=>s.value||l.value),E="drplayer_skip_settings",S=()=>{try{const Z=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",Z),Z){const ce=JSON.parse(Z);s.value=ce.skipIntroEnabled||!1,l.value=ce.skipOutroEnabled||!1,c.value=ce.skipIntroSeconds||90,f.value=ce.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:f.value})}else console.log("没有找到保存的设置,使用默认值")}catch(Z){console.warn("加载片头片尾设置失败:",Z)}},I=Z=>{try{s.value=Z.skipIntroEnabled,l.value=Z.skipOutroEnabled,c.value=Z.skipIntroSeconds,f.value=Z.skipOutroSeconds;const ce={skipIntroEnabled:Z.skipIntroEnabled,skipOutroEnabled:Z.skipOutroEnabled,skipIntroSeconds:Z.skipIntroSeconds,skipOutroSeconds:Z.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(ce)),F()}catch(ce){console.warn("保存片头片尾设置失败:",ce)}},$=()=>{if(!s.value||h.value)return!1;const Z=n(),ce=Date.now();return b.value||w.value>0&&ce-w.value<3e3||C.value||x.value>0&&ce-x.value<2e3?!1:Z<=1&&Z<=c.value?(console.log(`立即跳过片头:从 ${Z.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,y.value=ce,!0):!1},L=()=>{if(!s.value||h.value)return;const Z=n(),ce=Date.now();b.value||w.value>0&&ce-w.value<3e3||C.value||x.value>0&&ce-x.value<2e3||y.value>0&&ce-y.value<1e3||Z<=c.value&&(console.log(`已跳过片头:从 ${Z.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,y.value=ce)},O=()=>{if(!l.value||p.value)return;const Z=o();if(Z<=0)return;const ce=n(),ye=Z-f.value,ie=Date.now();ie-y.value<2e3||ce>=ye&&ce{$()||L(),O()};let M=null;const j=()=>{M&&clearTimeout(M),M=setTimeout(()=>{s.value&&!h.value&&L(),l.value&&!p.value&&O()},200)},V=()=>{h.value=!1,p.value=!1,y.value=0,b.value=!1,w.value=0,C.value=!1,x.value=0,m.value&&(clearTimeout(m.value),m.value=null)},W=()=>{b.value=!0,console.log("用户开始拖动进度条")},U=()=>{b.value=!1,w.value=Date.now(),console.log("用户结束拖动进度条")},X=()=>{C.value=!0,console.log("全屏状态开始变化")},G=()=>{C.value=!1,x.value=Date.now(),console.log("全屏状态变化结束")},Y=()=>{V(),S()},ee=()=>{a.value=!0},te=()=>{a.value=!1},J=()=>{m.value&&(clearTimeout(m.value),m.value=null)};return Fr(()=>{J()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:f,skipIntroApplied:h,skipOutroTimer:m,skipEnabled:_,loadSkipSettings:S,saveSkipSettings:I,applySkipSettings:F,applyIntroSkipImmediate:$,handleTimeUpdate:j,resetSkipState:V,initSkipSettings:Y,openSkipSettingsDialog:ee,closeSkipSettingsDialog:te,cleanup:J,onUserSeekStart:W,onUserSeekEnd:U,onFullscreenChangeStart:X,onFullscreenChangeEnd:G}}const Ip={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},obe=[{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 sbe(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function hk(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 OI(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function qEt(e){return e?["qq.com","iqiyi.com","youku.com","bilibili.com","douyin.com","tiktok.com","youtube.com","vimeo.com"].some(n=>e.includes(n)):!1}function YEt(e,t=null){const n=qEt(e)?Ip.NO_REFERRER:Ip.STRICT_ORIGIN_WHEN_CROSS_ORIGIN;return hk(n),t&&OI(t,n),console.log(`智能设置referrer策略: ${n} (URL: ${e})`),n}const ile={enabled:!0,referrerPolicy:Ip.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Ip.NO_REFERRER,Ip.ORIGIN,Ip.SAME_ORIGIN,Ip.UNSAFE_URL]};function b1(){const e=localStorage.getItem("csp_bypass_config");return e?{...ile,...JSON.parse(e)}:ile}function tF(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function DW(e,t){return b1().autoBypass?YEt(e,t):sbe()}var nF={exports:{}},ole;function XEt(){return ole||(ole=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(Ae){var Xe=typeof Ae;return Ae!==null&&(Xe==="object"||Xe==="function")}function h(Ae){return typeof Ae=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Ae){return Object.prototype.toString.call(Ae)==="[object Array]"};var m=p,y=0,b=void 0,w=void 0,C=function(Xe,ut){W[y]=Xe,W[y+1]=ut,y+=2,y===2&&(w?w(U):G())};function x(Ae){w=Ae}function _(Ae){C=Ae}var E=typeof window<"u"?window:void 0,S=E||{},I=S.MutationObserver||S.WebKitMutationObserver,$=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",L=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function O(){return function(){return process.nextTick(U)}}function F(){return typeof b<"u"?function(){b(U)}:V()}function M(){var Ae=0,Xe=new I(U),ut=document.createTextNode("");return Xe.observe(ut,{characterData:!0}),function(){ut.data=Ae=++Ae%2}}function j(){var Ae=new MessageChannel;return Ae.port1.onmessage=U,function(){return Ae.port2.postMessage(0)}}function V(){var Ae=setTimeout;return function(){return Ae(U,1)}}var W=new Array(1e3);function U(){for(var Ae=0;Ae0&&(Y=W[0]),Y instanceof Error)throw Y;var ee=new Error("Unhandled error."+(Y?" ("+Y.message+")":""));throw ee.context=Y,ee}var te=G[V];if(te===void 0)return!1;if(typeof te=="function")c(te,this,W);else for(var J=te.length,Z=I(te,J),U=0;U0&&Y.length>X&&!Y.warned){Y.warned=!0;var ee=new Error("Possible EventEmitter memory leak detected. "+Y.length+" "+String(V)+" listeners added. Use emitter.setMaxListeners() to increase limit");ee.name="MaxListenersExceededWarning",ee.emitter=j,ee.type=V,ee.count=Y.length,h(ee)}return j}m.prototype.addListener=function(V,W){return C(this,V,W,!1)},m.prototype.on=m.prototype.addListener,m.prototype.prependListener=function(V,W){return C(this,V,W,!0)};function x(){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 _(j,V,W){var U={fired:!1,wrapFn:void 0,target:j,type:V,listener:W},X=x.bind(U);return X.listener=W,U.wrapFn=X,X}m.prototype.once=function(V,W){return b(W),this.on(V,_(this,V,W)),this},m.prototype.prependOnceListener=function(V,W){return b(W),this.prependListener(V,_(this,V,W)),this},m.prototype.removeListener=function(V,W){var U,X,G,Y,ee;if(b(W),X=this._events,X===void 0)return this;if(U=X[V],U===void 0)return this;if(U===W||U.listener===W)--this._eventsCount===0?this._events=Object.create(null):(delete X[V],X.removeListener&&this.emit("removeListener",V,U.listener||W));else if(typeof U!="function"){for(G=-1,Y=U.length-1;Y>=0;Y--)if(U[Y]===W||U[Y].listener===W){ee=U[Y].listener,G=Y;break}if(G<0)return this;G===0?U.shift():$(U,G),U.length===1&&(X[V]=U[0]),X.removeListener!==void 0&&this.emit("removeListener",V,ee||W)}return this},m.prototype.off=m.prototype.removeListener,m.prototype.removeAllListeners=function(V){var W,U,X;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[V]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[V]),this;if(arguments.length===0){var G=Object.keys(U),Y;for(X=0;X=0;X--)this.removeListener(V,W[X]);return this};function E(j,V,W){var U=j._events;if(U===void 0)return[];var X=U[V];return X===void 0?[]:typeof X=="function"?W?[X.listener||X]:[X]:W?L(X):I(X,X.length)}m.prototype.listeners=function(V){return E(this,V,!0)},m.prototype.rawListeners=function(V){return E(this,V,!1)},m.listenerCount=function(j,V){return typeof j.listenerCount=="function"?j.listenerCount(V):S.call(j,V)},m.prototype.listenerCount=S;function S(j){var V=this._events;if(V!==void 0){var W=V[j];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}m.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function I(j,V){for(var W=new Array(V),U=0;U0},!1)}function C(x,_){for(var E={main:[_]},S={main:[]},I={main:{}};w(E);)for(var $=Object.keys(E),L=0;L<$.length;L++){var O=$[L],F=E[O],M=F.pop();if(I[O]=I[O]||{},!(I[O][M]||!x[O][M])){I[O][M]=!0,S[O]=S[O]||[],S[O].push(M);for(var j=b(x,x[O][M],O),V=Object.keys(j),W=0;W=p[w]&&m0&&b[0].originalDts=w[_].dts&&bw[x].lastSample.originalDts&&b=w[x].lastSample.originalDts&&(x===w.length-1||x0&&(_=this._searchNearestSegmentBefore(C.originalBeginDts)+1),this._lastAppendLocation=_,this._list.splice(_,0,C)},y.prototype.getLastSegmentBefore=function(b){var w=this._searchNearestSegmentBefore(b);return w>=0?this._list[w]:null},y.prototype.getLastSampleBefore=function(b){var w=this.getLastSegmentBefore(b);return w!=null?w.lastSample:null},y.prototype.getLastSyncPointBefore=function(b){for(var w=this._searchNearestSegmentBefore(b),C=this._list[w].syncPoints;C.length===0&&w>0;)w--,C=this._list[w].syncPoints;return C.length>0?C[C.length-1]:null},y})()}),"./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"),y=c("./src/core/mse-events.js"),b=c("./src/core/media-segment-info.js"),w=c("./src/utils/exception.js"),C=(function(){function x(_){this.TAG="MSEController",this._config=_,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 x.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},x.prototype.on=function(_,E){this._emitter.addListener(_,E)},x.prototype.off=function(_,E){this._emitter.removeListener(_,E)},x.prototype.attachMediaElement=function(_){if(this._mediaSource)throw new w.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var E=this._mediaSource=new window.MediaSource;E.addEventListener("sourceopen",this.e.onSourceOpen),E.addEventListener("sourceended",this.e.onSourceEnded),E.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=_,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),_.src=this._mediaSourceObjectURL},x.prototype.detachMediaElement=function(){if(this._mediaSource){var _=this._mediaSource;for(var E in this._sourceBuffers){var S=this._pendingSegments[E];S.splice(0,S.length),this._pendingSegments[E]=null,this._pendingRemoveRanges[E]=null,this._lastInitSegments[E]=null;var I=this._sourceBuffers[E];if(I){if(_.readyState!=="closed"){try{_.removeSourceBuffer(I)}catch($){p.default.e(this.TAG,$.message)}I.removeEventListener("error",this.e.onSourceBufferError),I.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(_.readyState==="open")try{_.endOfStream()}catch($){p.default.e(this.TAG,$.message)}_.removeEventListener("sourceopen",this.e.onSourceOpen),_.removeEventListener("sourceended",this.e.onSourceEnded),_.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)},x.prototype.appendInitSegment=function(_,E){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(_),this._pendingSegments[_.type].push(_);return}var S=_,I=""+S.container;S.codec&&S.codec.length>0&&(I+=";codecs="+S.codec);var $=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+I),this._lastInitSegments[S.type]=S,I!==this._mimeTypes[S.type]){if(this._mimeTypes[S.type])p.default.v(this.TAG,"Notice: "+S.type+" mimeType changed, origin: "+this._mimeTypes[S.type]+", target: "+I);else{$=!0;try{var L=this._sourceBuffers[S.type]=this._mediaSource.addSourceBuffer(I);L.addEventListener("error",this.e.onSourceBufferError),L.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(O){p.default.e(this.TAG,O.message),this._emitter.emit(y.default.ERROR,{code:O.code,msg:O.message});return}}this._mimeTypes[S.type]=I}E||this._pendingSegments[S.type].push(S),$||this._sourceBuffers[S.type]&&!this._sourceBuffers[S.type].updating&&this._doAppendSegments(),m.default.safari&&S.container==="audio/mpeg"&&S.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=S.mediaDuration/1e3,this._updateMediaSourceDuration())},x.prototype.appendMediaSegment=function(_){var E=_;this._pendingSegments[E.type].push(E),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var S=this._sourceBuffers[E.type];S&&!S.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},x.prototype.seek=function(_){for(var E in this._sourceBuffers)if(this._sourceBuffers[E]){var S=this._sourceBuffers[E];if(this._mediaSource.readyState==="open")try{S.abort()}catch(M){p.default.e(this.TAG,M.message)}this._idrList.clear();var I=this._pendingSegments[E];if(I.splice(0,I.length),this._mediaSource.readyState!=="closed"){for(var $=0;$=1&&_-I.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},x.prototype._doCleanupSourceBuffer=function(){var _=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var S=this._sourceBuffers[E];if(S){for(var I=S.buffered,$=!1,L=0;L=this._config.autoCleanupMaxBackwardDuration){$=!0;var M=_-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:O,end:M})}}else F<_&&($=!0,this._pendingRemoveRanges[E].push({start:O,end:F}))}$&&!S.updating&&this._doRemoveRanges()}}},x.prototype._updateMediaSourceDuration=function(){var _=this._sourceBuffers;if(!(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")&&!(_.video&&_.video.updating||_.audio&&_.audio.updating)){var E=this._mediaSource.duration,S=this._pendingMediaDuration;S>0&&(isNaN(E)||S>E)&&(p.default.v(this.TAG,"Update MediaSource duration from "+E+" to "+S),this._mediaSource.duration=S),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},x.prototype._doRemoveRanges=function(){for(var _ in this._pendingRemoveRanges)if(!(!this._sourceBuffers[_]||this._sourceBuffers[_].updating))for(var E=this._sourceBuffers[_],S=this._pendingRemoveRanges[_];S.length&&!E.updating;){var I=S.shift();E.remove(I.start,I.end)}},x.prototype._doAppendSegments=function(){var _=this._pendingSegments;for(var E in _)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating)&&_[E].length>0){var S=_[E].shift();if(S.timestampOffset){var I=this._sourceBuffers[E].timestampOffset,$=S.timestampOffset/1e3,L=Math.abs(I-$);L>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+I+" to "+$),this._sourceBuffers[E].timestampOffset=$),delete S.timestampOffset}if(!S.data||S.data.byteLength===0)continue;try{this._sourceBuffers[E].appendBuffer(S.data),this._isBufferFull=!1,E==="video"&&S.hasOwnProperty("info")&&this._idrList.appendArray(S.info.syncPoints)}catch(O){this._pendingSegments[E].unshift(S),O.code===22?(this._isBufferFull||this._emitter.emit(y.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,O.message),this._emitter.emit(y.default.ERROR,{code:O.code,msg:O.message}))}}},x.prototype._onSourceOpen=function(){if(p.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var _=this._pendingSourceBufferInit;_.length;){var E=_.shift();this.appendInitSegment(E,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(y.default.SOURCE_OPEN)},x.prototype._onSourceEnded=function(){p.default.v(this.TAG,"MediaSource onSourceEnded")},x.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))},x.prototype._hasPendingSegments=function(){var _=this._pendingSegments;return _.video.length>0||_.audio.length>0},x.prototype._hasPendingRemoveRanges=function(){var _=this._pendingRemoveRanges;return _.video.length>0||_.audio.length>0},x.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(y.default.UPDATE_END)},x.prototype._onSourceBufferError=function(_){p.default.e(this.TAG,"SourceBuffer Error: "+_)},x})();l.default=C}),"./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),y=c("./src/utils/logger.js"),b=c("./src/utils/logging-control.js"),w=c("./src/core/transmuxing-controller.js"),C=c("./src/core/transmuxing-events.js"),x=c("./src/core/media-info.js"),_=(function(){function E(S,I){if(this.TAG="Transmuxer",this._emitter=new(h()),I.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:[S,I]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},b.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:b.default.getConfig()})}catch{y.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new w.default(S,I)}else this._controller=new w.default(S,I);if(this._controller){var $=this._controller;$.on(C.default.IO_ERROR,this._onIOError.bind(this)),$.on(C.default.DEMUX_ERROR,this._onDemuxError.bind(this)),$.on(C.default.INIT_SEGMENT,this._onInitSegment.bind(this)),$.on(C.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),$.on(C.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),$.on(C.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),$.on(C.default.MEDIA_INFO,this._onMediaInfo.bind(this)),$.on(C.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),$.on(C.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),$.on(C.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),$.on(C.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return E.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},E.prototype.on=function(S,I){this._emitter.addListener(S,I)},E.prototype.off=function(S,I){this._emitter.removeListener(S,I)},E.prototype.hasWorker=function(){return this._worker!=null},E.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},E.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},E.prototype.seek=function(S){this._worker?this._worker.postMessage({cmd:"seek",param:S}):this._controller.seek(S)},E.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},E.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},E.prototype._onInitSegment=function(S,I){var $=this;Promise.resolve().then(function(){$._emitter.emit(C.default.INIT_SEGMENT,S,I)})},E.prototype._onMediaSegment=function(S,I){var $=this;Promise.resolve().then(function(){$._emitter.emit(C.default.MEDIA_SEGMENT,S,I)})},E.prototype._onLoadingComplete=function(){var S=this;Promise.resolve().then(function(){S._emitter.emit(C.default.LOADING_COMPLETE)})},E.prototype._onRecoveredEarlyEof=function(){var S=this;Promise.resolve().then(function(){S._emitter.emit(C.default.RECOVERED_EARLY_EOF)})},E.prototype._onMediaInfo=function(S){var I=this;Promise.resolve().then(function(){I._emitter.emit(C.default.MEDIA_INFO,S)})},E.prototype._onMetaDataArrived=function(S){var I=this;Promise.resolve().then(function(){I._emitter.emit(C.default.METADATA_ARRIVED,S)})},E.prototype._onScriptDataArrived=function(S){var I=this;Promise.resolve().then(function(){I._emitter.emit(C.default.SCRIPTDATA_ARRIVED,S)})},E.prototype._onStatisticsInfo=function(S){var I=this;Promise.resolve().then(function(){I._emitter.emit(C.default.STATISTICS_INFO,S)})},E.prototype._onIOError=function(S,I){var $=this;Promise.resolve().then(function(){$._emitter.emit(C.default.IO_ERROR,S,I)})},E.prototype._onDemuxError=function(S,I){var $=this;Promise.resolve().then(function(){$._emitter.emit(C.default.DEMUX_ERROR,S,I)})},E.prototype._onRecommendSeekpoint=function(S){var I=this;Promise.resolve().then(function(){I._emitter.emit(C.default.RECOMMEND_SEEKPOINT,S)})},E.prototype._onLoggingConfigChanged=function(S){this._worker&&this._worker.postMessage({cmd:"logging_config",param:S})},E.prototype._onWorkerMessage=function(S){var I=S.data,$=I.data;if(I.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(I.msg){case C.default.INIT_SEGMENT:case C.default.MEDIA_SEGMENT:this._emitter.emit(I.msg,$.type,$.data);break;case C.default.LOADING_COMPLETE:case C.default.RECOVERED_EARLY_EOF:this._emitter.emit(I.msg);break;case C.default.MEDIA_INFO:Object.setPrototypeOf($,x.default.prototype),this._emitter.emit(I.msg,$);break;case C.default.METADATA_ARRIVED:case C.default.SCRIPTDATA_ARRIVED:case C.default.STATISTICS_INFO:this._emitter.emit(I.msg,$);break;case C.default.IO_ERROR:case C.default.DEMUX_ERROR:this._emitter.emit(I.msg,$.type,$.info);break;case C.default.RECOMMEND_SEEKPOINT:this._emitter.emit(I.msg,$);break;case"logcat_callback":y.default.emitter.emit("log",$.type,$.logcat);break}},E})();l.default=_}),"./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"),y=c("./src/core/media-info.js"),b=c("./src/demux/flv-demuxer.js"),w=c("./src/remux/mp4-remuxer.js"),C=c("./src/demux/demux-errors.js"),x=c("./src/io/io-controller.js"),_=c("./src/core/transmuxing-events.js"),E=(function(){function S(I,$){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=$,I.segments||(I.segments=[{duration:I.duration,filesize:I.filesize,url:I.url}]),typeof I.cors!="boolean"&&(I.cors=!0),typeof I.withCredentials!="boolean"&&(I.withCredentials=!1),this._mediaDataSource=I,this._currentSegmentIndex=0;var L=0;this._mediaDataSource.segments.forEach(function(O){O.timestampBase=L,L+=O.duration,O.cors=I.cors,O.withCredentials=I.withCredentials,$.referrerPolicy&&(O.referrerPolicy=$.referrerPolicy)}),!isNaN(L)&&this._mediaDataSource.duration!==L&&(this._mediaDataSource.duration=L),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return S.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},S.prototype.on=function(I,$){this._emitter.addListener(I,$)},S.prototype.off=function(I,$){this._emitter.removeListener(I,$)},S.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},S.prototype._loadSegment=function(I,$){this._currentSegmentIndex=I;var L=this._mediaDataSource.segments[I],O=this._ioctl=new x.default(L,this._config,I);O.onError=this._onIOException.bind(this),O.onSeeked=this._onIOSeeked.bind(this),O.onComplete=this._onIOComplete.bind(this),O.onRedirect=this._onIORedirect.bind(this),O.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),$?this._demuxer.bindDataSource(this._ioctl):O.onDataArrival=this._onInitChunkArrival.bind(this),O.open($)},S.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},S.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},S.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},S.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},S.prototype.seek=function(I){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var $=this._searchSegmentIndexContains(I);if($===this._currentSegmentIndex){var L=this._mediaInfo.segments[$];if(L==null)this._pendingSeekTime=I;else{var O=L.getNearestKeyframe(I);this._remuxer.seek(O.milliseconds),this._ioctl.seek(O.fileposition),this._pendingResolveSeekPoint=O.milliseconds}}else{var F=this._mediaInfo.segments[$];if(F==null)this._pendingSeekTime=I,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment($);else{var O=F.getNearestKeyframe(I);this._internalAbort(),this._remuxer.seek(I),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[$].timestampBase,this._loadSegment($,O.fileposition),this._pendingResolveSeekPoint=O.milliseconds,this._reportSegmentMediaInfo($)}}this._enableStatisticsReporter()}},S.prototype._searchSegmentIndexContains=function(I){for(var $=this._mediaDataSource.segments,L=$.length-1,O=0;O<$.length;O++)if(I<$[O].timestampBase){L=O-1;break}return L},S.prototype._onInitChunkArrival=function(I,$){var L=this,O=null,F=0;if($>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,F=this._demuxer.parseChunks(I,$);else if((O=b.default.probe(I)).match){this._demuxer=new b.default(O,this._config),this._remuxer||(this._remuxer=new w.default(this._config));var M=this._mediaDataSource;M.duration!=null&&!isNaN(M.duration)&&(this._demuxer.overridedDuration=M.duration),typeof M.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=M.hasAudio),typeof M.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=M.hasVideo),this._demuxer.timestampBase=M.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),F=this._demuxer.parseChunks(I,$)}else O=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){L._internalAbort()}),this._emitter.emit(_.default.DEMUX_ERROR,C.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),F=0;return F},S.prototype._onMediaInfo=function(I){var $=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},I),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,y.default.prototype));var L=Object.assign({},I);Object.setPrototypeOf(L,y.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=L,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var O=$._pendingSeekTime;$._pendingSeekTime=null,$.seek(O)})},S.prototype._onMetaDataArrived=function(I){this._emitter.emit(_.default.METADATA_ARRIVED,I)},S.prototype._onScriptDataArrived=function(I){this._emitter.emit(_.default.SCRIPTDATA_ARRIVED,I)},S.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},S.prototype._onIOComplete=function(I){var $=I,L=$+1;L0&&L[0].originalDts===O&&(O=L[0].pts),this._emitter.emit(_.default.RECOMMEND_SEEKPOINT,O)}},S.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},S.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},S.prototype._reportSegmentMediaInfo=function(I){var $=this._mediaInfo.segments[I],L=Object.assign({},$);L.duration=this._mediaInfo.duration,L.segmentCount=this._mediaInfo.segmentCount,delete L.segments,delete L.keyframesIndex,this._emitter.emit(_.default.MEDIA_INFO,L)},S.prototype._reportStatisticsInfo=function(){var I={};I.url=this._ioctl.currentURL,I.hasRedirect=this._ioctl.hasRedirect,I.hasRedirect&&(I.redirectedURL=this._ioctl.currentRedirectedURL),I.speed=this._ioctl.currentSpeed,I.loaderType=this._ioctl.loaderType,I.currentSegmentIndex=this._currentSegmentIndex,I.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(_.default.STATISTICS_INFO,I)},S})();l.default=E}),"./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"),y=function(b){var w=null,C=V.bind(this);h.default.install(),b.addEventListener("message",function(W){switch(W.data.cmd){case"init":w=new p.default(W.data.param[0],W.data.param[1]),w.on(m.default.IO_ERROR,F.bind(this)),w.on(m.default.DEMUX_ERROR,M.bind(this)),w.on(m.default.INIT_SEGMENT,x.bind(this)),w.on(m.default.MEDIA_SEGMENT,_.bind(this)),w.on(m.default.LOADING_COMPLETE,E.bind(this)),w.on(m.default.RECOVERED_EARLY_EOF,S.bind(this)),w.on(m.default.MEDIA_INFO,I.bind(this)),w.on(m.default.METADATA_ARRIVED,$.bind(this)),w.on(m.default.SCRIPTDATA_ARRIVED,L.bind(this)),w.on(m.default.STATISTICS_INFO,O.bind(this)),w.on(m.default.RECOMMEND_SEEKPOINT,j.bind(this));break;case"destroy":w&&(w.destroy(),w=null),b.postMessage({msg:"destroyed"});break;case"start":w.start();break;case"stop":w.stop();break;case"seek":w.seek(W.data.param);break;case"pause":w.pause();break;case"resume":w.resume();break;case"logging_config":{var U=W.data.param;f.default.applyConfig(U),U.enableCallback===!0?f.default.addLogListener(C):f.default.removeLogListener(C);break}}});function x(W,U){var X={msg:m.default.INIT_SEGMENT,data:{type:W,data:U}};b.postMessage(X,[U.data])}function _(W,U){var X={msg:m.default.MEDIA_SEGMENT,data:{type:W,data:U}};b.postMessage(X,[U.data])}function E(){var W={msg:m.default.LOADING_COMPLETE};b.postMessage(W)}function S(){var W={msg:m.default.RECOVERED_EARLY_EOF};b.postMessage(W)}function I(W){var U={msg:m.default.MEDIA_INFO,data:W};b.postMessage(U)}function $(W){var U={msg:m.default.METADATA_ARRIVED,data:W};b.postMessage(U)}function L(W){var U={msg:m.default.SCRIPTDATA_ARRIVED,data:W};b.postMessage(U)}function O(W){var U={msg:m.default.STATISTICS_INFO,data:W};b.postMessage(U)}function F(W,U){b.postMessage({msg:m.default.IO_ERROR,data:{type:W,info:U}})}function M(W,U){b.postMessage({msg:m.default.DEMUX_ERROR,data:{type:W,info:U}})}function j(W){b.postMessage({msg:m.default.RECOMMEND_SEEKPOINT,data:W})}function V(W,U){b.postMessage({msg:"logcat_callback",data:{type:W,logcat:U}})}};l.default=y}),"./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})(),y=(function(){function b(){}return b.parseScriptData=function(w,C,x){var _={};try{var E=b.parseValue(w,C,x),S=b.parseValue(w,C+E.size,x-E.size);_[E.data]=S.data}catch(I){f.default.e("AMF",I.toString())}return _},b.parseObject=function(w,C,x){if(x<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var _=b.parseString(w,C,x),E=b.parseValue(w,C+_.size,x-_.size),S=E.objectEnd;return{data:{name:_.data,value:E.data},size:_.size+E.size,objectEnd:S}},b.parseVariable=function(w,C,x){return b.parseObject(w,C,x)},b.parseString=function(w,C,x){if(x<2)throw new p.IllegalStateException("Data not enough when parse String");var _=new DataView(w,C,x),E=_.getUint16(0,!m),S;return E>0?S=(0,h.default)(new Uint8Array(w,C+2,E)):S="",{data:S,size:2+E}},b.parseLongString=function(w,C,x){if(x<4)throw new p.IllegalStateException("Data not enough when parse LongString");var _=new DataView(w,C,x),E=_.getUint32(0,!m),S;return E>0?S=(0,h.default)(new Uint8Array(w,C+4,E)):S="",{data:S,size:4+E}},b.parseDate=function(w,C,x){if(x<10)throw new p.IllegalStateException("Data size invalid when parse Date");var _=new DataView(w,C,x),E=_.getFloat64(0,!m),S=_.getInt16(8,!m);return E+=S*60*1e3,{data:new Date(E),size:10}},b.parseValue=function(w,C,x){if(x<1)throw new p.IllegalStateException("Data not enough when parse Value");var _=new DataView(w,C,x),E=1,S=_.getUint8(0),I,$=!1;try{switch(S){case 0:I=_.getFloat64(1,!m),E+=8;break;case 1:{var L=_.getUint8(1);I=!!L,E+=1;break}case 2:{var O=b.parseString(w,C+1,x-1);I=O.data,E+=O.size;break}case 3:{I={};var F=0;for((_.getUint32(x-4,!m)&16777215)===9&&(F=3);E32)throw new f.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(m<=this._current_word_bits_left){var y=this._current_word>>>32-m;return this._current_word<<=m,this._current_word_bits_left-=m,y}var b=this._current_word_bits_left?this._current_word:0;b=b>>>32-this._current_word_bits_left;var w=m-this._current_word_bits_left;this._fillCurrentWord();var C=Math.min(w,this._current_word_bits_left),x=this._current_word>>>32-C;return this._current_word<<=C,this._current_word_bits_left-=C,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"),y=c("./src/core/media-info.js"),b=c("./src/utils/exception.js");function w(x,_){return x[_]<<24|x[_+1]<<16|x[_+2]<<8|x[_+3]}var C=(function(){function x(_,E){this.TAG="FLVDemuxer",this._config=E,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=_.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=_.hasAudioTrack,this._hasVideo=_.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new y.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 S=new ArrayBuffer(2);return new DataView(S).setInt16(0,256,!0),new Int16Array(S)[0]===256})()}return x.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},x.probe=function(_){var E=new Uint8Array(_),S={match:!1};if(E[0]!==70||E[1]!==76||E[2]!==86||E[3]!==1)return S;var I=(E[4]&4)>>>2!==0,$=(E[4]&1)!==0,L=w(E,5);return L<9?S:{match:!0,consumed:L,dataOffset:L,hasAudioTrack:I,hasVideoTrack:$}},x.prototype.bindDataSource=function(_){return _.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(x.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(_){this._onTrackMetadata=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(_){this._onMediaInfo=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(_){this._onMetaDataArrived=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(_){this._onScriptDataArrived=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onError",{get:function(){return this._onError},set:function(_){this._onError=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(_){this._onDataAvailable=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(_){this._timestampBase=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"overridedDuration",{get:function(){return this._duration},set:function(_){this._durationOverrided=!0,this._duration=_,this._mediaInfo.duration=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"overridedHasAudio",{set:function(_){this._hasAudioFlagOverrided=!0,this._hasAudio=_,this._mediaInfo.hasAudio=_},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"overridedHasVideo",{set:function(_){this._hasVideoFlagOverrided=!0,this._hasVideo=_,this._mediaInfo.hasVideo=_},enumerable:!1,configurable:!0}),x.prototype.resetMediaInfo=function(){this._mediaInfo=new y.default},x.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},x.prototype.parseChunks=function(_,E){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new b.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var S=0,I=this._littleEndian;if(E===0)if(_.byteLength>13){var $=x.probe(_);S=$.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+S!==this._dataOffset&&f.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var L=new DataView(_,S),O=L.getUint32(0,!I);O!==0&&f.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),S+=4}for(;S<_.byteLength;){this._dispatch=!0;var L=new DataView(_,S);if(S+11+4>_.byteLength)break;var F=L.getUint8(0),M=L.getUint32(0,!I)&16777215;if(S+11+M+4>_.byteLength)break;if(F!==8&&F!==9&&F!==18){f.default.w(this.TAG,"Unsupported tag type "+F+", skipped"),S+=11+M+4;continue}var j=L.getUint8(4),V=L.getUint8(5),W=L.getUint8(6),U=L.getUint8(7),X=W|V<<8|j<<16|U<<24,G=L.getUint32(7,!I)&16777215;G!==0&&f.default.w(this.TAG,"Meet tag which has StreamID != 0!");var Y=S+11;switch(F){case 8:this._parseAudioData(_,Y,M,X);break;case 9:this._parseVideoData(_,Y,M,X,E+S);break;case 18:this._parseScriptData(_,Y,M);break}var ee=L.getUint32(11+M,!I);ee!==11+M&&f.default.w(this.TAG,"Invalid PrevTagSize "+ee),S+=11+M+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),S},x.prototype._parseScriptData=function(_,E,S){var I=h.default.parseScriptData(_,E,S);if(I.hasOwnProperty("onMetaData")){if(I.onMetaData==null||typeof I.onMetaData!="object"){f.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&f.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=I;var $=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},$)),typeof $.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=$.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof $.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=$.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof $.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=$.audiodatarate),typeof $.videodatarate=="number"&&(this._mediaInfo.videoDataRate=$.videodatarate),typeof $.width=="number"&&(this._mediaInfo.width=$.width),typeof $.height=="number"&&(this._mediaInfo.height=$.height),typeof $.duration=="number"){if(!this._durationOverrided){var L=Math.floor($.duration*this._timescale);this._duration=L,this._mediaInfo.duration=L}}else this._mediaInfo.duration=0;if(typeof $.framerate=="number"){var O=Math.floor($.framerate*1e3);if(O>0){var F=O/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=F,this._referenceFrameRate.fps_num=O,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=F}}if(typeof $.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var M=$.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(M),$.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=$,f.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(I).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},I))},x.prototype._parseKeyframesIndex=function(_){for(var E=[],S=[],I=1;I<_.times.length;I++){var $=this._timestampBase+Math.floor(_.times[I]*1e3);E.push($),S.push(_.filepositions[I])}return{times:E,filepositions:S}},x.prototype._parseAudioData=function(_,E,S,I){if(S<=1){f.default.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(!(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)){this._littleEndian;var $=new DataView(_,E,S),L=$.getUint8(0),O=L>>>4;if(O!==2&&O!==10){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+O);return}var F=0,M=(L&12)>>>2;if(M>=0&&M<=4)F=this._flvSoundRateTable[M];else{this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+M);return}var j=L&1,V=this._audioMetadata,W=this._audioTrack;if(V||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),V=this._audioMetadata={},V.type="audio",V.id=W.id,V.timescale=this._timescale,V.duration=this._duration,V.audioSampleRate=F,V.channelCount=j===0?1:2),O===10){var U=this._parseAACAudioData(_,E+1,S-1);if(U==null)return;if(U.packetType===0){V.config&&f.default.w(this.TAG,"Found another AudioSpecificConfig!");var X=U.data;V.audioSampleRate=X.samplingRate,V.channelCount=X.channelCount,V.codec=X.codec,V.originalCodec=X.originalCodec,V.config=X.config,V.refSampleDuration=1024/V.audioSampleRate*V.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",V);var G=this._mediaInfo;G.audioCodec=V.originalCodec,G.audioSampleRate=V.audioSampleRate,G.audioChannelCount=V.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(U.packetType===1){var Y=this._timestampBase+I,ee={unit:U.data,length:U.data.byteLength,dts:Y,pts:Y};W.samples.push(ee),W.length+=U.data.length}else f.default.e(this.TAG,"Flv: Unsupported AAC data type "+U.packetType)}else if(O===2){if(!V.codec){var X=this._parseMP3AudioData(_,E+1,S-1,!0);if(X==null)return;V.audioSampleRate=X.samplingRate,V.channelCount=X.channelCount,V.codec=X.codec,V.originalCodec=X.originalCodec,V.refSampleDuration=1152/V.audioSampleRate*V.timescale,f.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",V);var G=this._mediaInfo;G.audioCodec=V.codec,G.audioSampleRate=V.audioSampleRate,G.audioChannelCount=V.channelCount,G.audioDataRate=X.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 te=this._parseMP3AudioData(_,E+1,S-1,!1);if(te==null)return;var Y=this._timestampBase+I,J={unit:te,length:te.byteLength,dts:Y,pts:Y};W.samples.push(J),W.length+=te.length}}},x.prototype._parseAACAudioData=function(_,E,S){if(S<=1){f.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var I={},$=new Uint8Array(_,E,S);return I.packetType=$[0],$[0]===0?I.data=this._parseAACAudioSpecificConfig(_,E+1,S-1):I.data=$.subarray(1),I},x.prototype._parseAACAudioSpecificConfig=function(_,E,S){var I=new Uint8Array(_,E,S),$=null,L=0,O=0,F=0,M=null;if(L=O=I[0]>>>3,F=(I[0]&7)<<1|I[1]>>>7,F<0||F>=this._mpegSamplingRates.length){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var j=this._mpegSamplingRates[F],V=(I[1]&120)>>>3;if(V<0||V>=8){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}L===5&&(M=(I[1]&7)<<1|I[2]>>>7,(I[2]&124)>>>2);var W=self.navigator.userAgent.toLowerCase();return W.indexOf("firefox")!==-1?F>=6?(L=5,$=new Array(4),M=F-3):(L=2,$=new Array(2),M=F):W.indexOf("android")!==-1?(L=2,$=new Array(2),M=F):(L=5,M=F,$=new Array(4),F>=6?M=F-3:V===1&&(L=2,$=new Array(2),M=F)),$[0]=L<<3,$[0]|=(F&15)>>>1,$[1]=(F&15)<<7,$[1]|=(V&15)<<3,L===5&&($[1]|=(M&15)>>>1,$[2]=(M&1)<<7,$[2]|=8,$[3]=0),{config:$,samplingRate:j,channelCount:V,codec:"mp4a.40."+L,originalCodec:"mp4a.40."+O}},x.prototype._parseMP3AudioData=function(_,E,S,I){if(S<4){f.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var $=new Uint8Array(_,E,S),L=null;if(I){if($[0]!==255)return;var O=$[1]>>>3&3,F=($[1]&6)>>1,M=($[2]&240)>>>4,j=($[2]&12)>>>2,V=$[3]>>>6&3,W=V!==3?2:1,U=0,X=0,G="mp3";switch(O){case 0:U=this._mpegAudioV25SampleRateTable[j];break;case 2:U=this._mpegAudioV20SampleRateTable[j];break;case 3:U=this._mpegAudioV10SampleRateTable[j];break}switch(F){case 1:M>>4,F=L&15;if(F!==7){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+F);return}this._parseAVCVideoPacket(_,E+1,S-1,I,$,O)}},x.prototype._parseAVCVideoPacket=function(_,E,S,I,$,L){if(S<4){f.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var O=this._littleEndian,F=new DataView(_,E,S),M=F.getUint8(0),j=F.getUint32(0,!O)&16777215,V=j<<8>>8;if(M===0)this._parseAVCDecoderConfigurationRecord(_,E+4,S-4);else if(M===1)this._parseAVCVideoData(_,E+4,S-4,I,$,L,V);else if(M!==2){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+M);return}},x.prototype._parseAVCDecoderConfigurationRecord=function(_,E,S){if(S<7){f.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var I=this._videoMetadata,$=this._videoTrack,L=this._littleEndian,O=new DataView(_,E,S);I?typeof I.avcc<"u"&&f.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),I=this._videoMetadata={},I.type="video",I.id=$.id,I.timescale=this._timescale,I.duration=this._duration);var F=O.getUint8(0),M=O.getUint8(1);if(O.getUint8(2),O.getUint8(3),F!==1||M===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(O.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(m.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var j=O.getUint8(5)&31;if(j===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else j>1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+j);for(var V=6,W=0;W1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+ie);V++;for(var W=0;W=S){f.default.w(this.TAG,"Malformed Nalu near timestamp "+X+", offset = "+W+", dataSize = "+S);break}var Y=M.getUint32(W,!F);if(U===3&&(Y>>>=8),Y>S-U){f.default.w(this.TAG,"Malformed Nalus near timestamp "+X+", NaluSize > DataSize!");return}var ee=M.getUint8(W+U)&31;ee===5&&(G=!0);var te=new Uint8Array(_,E+W,U+Y),J={type:ee,data:te};j.push(J),V+=te.byteLength,W+=U+Y}if(j.length){var Z=this._videoTrack,ce={units:j,length:V,isKeyframe:G,dts:X,cts:O,pts:X+O};G&&(ce.fileposition=$),Z.samples.push(ce),Z.length+=V}},x})();l.default=C}),"./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 y=m,b=y.byteLength,w=new Uint8Array(b),C=0,x=0;x=2&&y[x]===3&&y[x-1]===0&&y[x-2]===0||(w[C]=y[x],C++);return new Uint8Array(w.buffer,0,C)},p.parseSPS=function(m){var y=p._ebsp2rbsp(m),b=new f.default(y);b.readByte();var w=b.readByte();b.readByte();var C=b.readByte();b.readUEG();var x=p.getProfileString(w),_=p.getLevelString(C),E=1,S=420,I=[0,420,422,444],$=8;if((w===100||w===110||w===122||w===244||w===44||w===83||w===86||w===118||w===128||w===138||w===144)&&(E=b.readUEG(),E===3&&b.readBits(1),E<=3&&(S=I[E]),$=b.readUEG()+8,b.readUEG(),b.readBits(1),b.readBool()))for(var L=E!==3?8:12,O=0;O0&&be<16?(J=Fe[be-1],Z=De[be-1]):be===255&&(J=b.readByte()<<8|b.readByte(),Z=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 Ge=b.readBits(32),qe=b.readBits(32);ye=b.readBool(),ie=qe,Ce=Ge*2,ce=ie/Ce}}var Ve=1;(J!==1||Z!==1)&&(Ve=J/Z);var he=0,de=0;if(E===0)he=1,de=2-U;else{var Te=E===3?1:2,Oe=E===1?2:1;he=Te,de=Oe*(2-U)}var je=(V+1)*16,We=(2-U)*((W+1)*16);je-=(X+G)*he,We-=(Y+ee)*de;var it=Math.ceil(je*Ve);return b.destroy(),b=null,{profile_string:x,level_string:_,bit_depth:$,ref_frames:j,chroma_format:S,chroma_format_string:p.getChromaFormatString(S),frame_rate:{fixed:ye,fps:ce,fps_den:Ce,fps_num:ie},sar_ratio:{width:J,height:Z},codec_size:{width:je,height:We},present_size:{width:it,height:We}}},p._skipScalingList=function(m,y){for(var b=8,w=8,C=0,x=0;x=15048,x=f.default.msedge?C:!0;return self.fetch&&self.ReadableStream&&x}catch{return!1}},w.prototype.destroy=function(){this.isWorking()&&this.abort(),b.prototype.destroy.call(this)},w.prototype.open=function(C,x){var _=this;this._dataSource=C,this._range=x;var E=C.url;this._config.reuseRedirectedURL&&C.redirectedURL!=null&&(E=C.redirectedURL);var S=this._seekHandler.getConfig(E,x),I=new self.Headers;if(typeof S.headers=="object"){var $=S.headers;for(var L in $)$.hasOwnProperty(L)&&I.append(L,$[L])}var O={method:"GET",headers:I,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var L in this._config.headers)I.append(L,this._config.headers[L]);C.cors===!1&&(O.mode="same-origin"),C.withCredentials&&(O.credentials="include"),C.referrerPolicy&&(O.referrerPolicy=C.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,O.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(S.url,O).then(function(F){if(_._requestAbort){_._status=h.LoaderStatus.kIdle,F.body.cancel();return}if(F.ok&&F.status>=200&&F.status<=299){if(F.url!==S.url&&_._onURLRedirect){var M=_._seekHandler.removeURLParameters(F.url);_._onURLRedirect(M)}var j=F.headers.get("Content-Length");return j!=null&&(_._contentLength=parseInt(j),_._contentLength!==0&&_._onContentLengthKnown&&_._onContentLengthKnown(_._contentLength)),_._pump.call(_,F.body.getReader())}else if(_._status=h.LoaderStatus.kError,_._onError)_._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:F.status,msg:F.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+F.status+" "+F.statusText)}).catch(function(F){if(!(_._abortController&&_._abortController.signal.aborted))if(_._status=h.LoaderStatus.kError,_._onError)_._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:F.message});else throw F})},w.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!f.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},w.prototype._pump=function(C){var x=this;return C.read().then(function(_){if(_.done)if(x._contentLength!==null&&x._receivedLength0&&(this._stashInitialSize=$.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,$.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=I,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(I.url),this._refTotalLength=I.filesize?I.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 S.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},S.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},S.prototype.isPaused=function(){return this._paused},Object.defineProperty(S.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"extraData",{get:function(){return this._extraData},set:function(I){this._extraData=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(I){this._onDataArrival=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(I){this._onSeeked=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onError",{get:function(){return this._onError},set:function(I){this._onError=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onComplete",{get:function(){return this._onComplete},set:function(I){this._onComplete=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(I){this._onRedirect=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(I){this._onRecoveredEarlyEof=I},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentSpeed",{get:function(){return this._loaderClass===b.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),S.prototype._selectSeekHandler=function(){var I=this._config;if(I.seekType==="range")this._seekHandler=new C.default(this._config.rangeLoadZeroStart);else if(I.seekType==="param"){var $=I.seekParamStart||"bstart",L=I.seekParamEnd||"bend";this._seekHandler=new x.default($,L)}else if(I.seekType==="custom"){if(typeof I.customSeekHandler!="function")throw new _.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new I.customSeekHandler}else throw new _.InvalidArgumentException("Invalid seekType in config: "+I.seekType)},S.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=w.default;else if(m.default.isSupported())this._loaderClass=m.default;else if(y.default.isSupported())this._loaderClass=y.default;else if(b.default.isSupported())this._loaderClass=b.default;else throw new _.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!")},S.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)},S.prototype.open=function(I){this._currentRange={from:0,to:-1},I&&(this._currentRange.from=I),this._speedSampler.reset(),I||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},S.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},S.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)},S.prototype.resume=function(){if(this._paused){this._paused=!1;var I=this._resumeFrom;this._resumeFrom=0,this._internalSeek(I,!0)}},S.prototype.seek=function(I){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(I,!0)},S.prototype._internalSeek=function(I,$){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer($),this._loader.destroy(),this._loader=null;var L={from:I,to:-1};this._currentRange={from:L.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,L),this._onSeeked&&this._onSeeked()},S.prototype.updateUrl=function(I){if(!I||typeof I!="string"||I.length===0)throw new _.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=I},S.prototype._expandBuffer=function(I){for(var $=this._stashSize;$+1024*1024*10){var O=new Uint8Array(this._stashBuffer,0,this._stashUsed),F=new Uint8Array(L,0,$);F.set(O,0)}this._stashBuffer=L,this._bufferSize=$}},S.prototype._normalizeSpeed=function(I){var $=this._speedNormalizeList,L=$.length-1,O=0,F=0,M=L;if(I<$[0])return $[0];for(;F<=M;){if(O=F+Math.floor((M-F)/2),O===L||I>=$[O]&&I<$[O+1])return $[O];$[O]=512&&I<=1024?$=Math.floor(I*1.5):$=I*2,$>8192&&($=8192);var L=$*1024+1024*1024*1;this._bufferSize0){var U=this._stashBuffer.slice(0,this._stashUsed),M=this._dispatchChunks(U,this._stashByteStart);if(M0){var W=new Uint8Array(U,M);V.set(W,0),this._stashUsed=W.byteLength,this._stashByteStart+=M}}else this._stashUsed=0,this._stashByteStart+=M;this._stashUsed+I.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+I.byteLength),V=new Uint8Array(this._stashBuffer,0,this._bufferSize)),V.set(new Uint8Array(I),this._stashUsed),this._stashUsed+=I.byteLength}else{var M=this._dispatchChunks(I,$);if(Mthis._bufferSize&&(this._expandBuffer(j),V=new Uint8Array(this._stashBuffer,0,this._bufferSize)),V.set(new Uint8Array(I,M),0),this._stashUsed+=j,this._stashByteStart=$+M}}}else if(this._stashUsed===0){var M=this._dispatchChunks(I,$);if(Mthis._bufferSize&&this._expandBuffer(j);var V=new Uint8Array(this._stashBuffer,0,this._bufferSize);V.set(new Uint8Array(I,M),0),this._stashUsed+=j,this._stashByteStart=$+M}}else{this._stashUsed+I.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+I.byteLength);var V=new Uint8Array(this._stashBuffer,0,this._bufferSize);V.set(new Uint8Array(I),this._stashUsed),this._stashUsed+=I.byteLength;var M=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(M0){var W=new Uint8Array(this._stashBuffer,M);V.set(W,0)}this._stashUsed-=M,this._stashByteStart+=M}}},S.prototype._flushStashBuffer=function(I){if(this._stashUsed>0){var $=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks($,this._stashByteStart),O=$.byteLength-L;if(L<$.byteLength)if(I)f.default.w(this.TAG,O+" bytes unconsumed data remain when flush buffer, dropped");else{if(L>0){var F=new Uint8Array(this._stashBuffer,0,this._bufferSize),M=new Uint8Array($,L);F.set(M,0),this._stashUsed=M.byteLength,this._stashByteStart+=L}return 0}return this._stashUsed=0,this._stashByteStart=0,O}return 0},S.prototype._onLoaderComplete=function(I,$){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},S.prototype._onLoaderError=function(I,$){switch(f.default.e(this.TAG,"Loader error, code = "+$.code+", msg = "+$.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,I=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),I){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var L=this._currentRange.to+1;L0)for(var C=y.split("&"),x=0;x0;_[0]!==this._startName&&_[0]!==this._endName&&(E&&(w+="&"),w+=C[x])}return w.length===0?m:m+"?"+w},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 y={};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()+"-",y.Range=b}else this._zeroStart&&(y.Range="bytes=0-");return{url:p,headers:y}},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 y=function(b,w){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var _ in x)Object.prototype.hasOwnProperty.call(x,_)&&(C[_]=x[_])},y(b,w)};return function(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");y(b,w);function C(){this.constructor=b}b.prototype=w===null?Object.create(w):(C.prototype=w.prototype,new C)}})(),m=(function(y){p(b,y);function b(){var w=y.call(this,"websocket-loader")||this;return w.TAG="WebSocketLoader",w._needStash=!0,w._ws=null,w._requestAbort=!1,w._receivedLength=0,w}return b.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},b.prototype.destroy=function(){this._ws&&this.abort(),y.prototype.destroy.call(this)},b.prototype.open=function(w){try{var C=this._ws=new self.WebSocket(w.url);C.binaryType="arraybuffer",C.onopen=this._onWebSocketOpen.bind(this),C.onclose=this._onWebSocketClose.bind(this),C.onmessage=this._onWebSocketMessage.bind(this),C.onerror=this._onWebSocketError.bind(this),this._status=f.LoaderStatus.kConnecting}catch(_){this._status=f.LoaderStatus.kError;var x={code:_.code,msg:_.message};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},b.prototype.abort=function(){var w=this._ws;w&&(w.readyState===0||w.readyState===1)&&(this._requestAbort=!0,w.close()),this._ws=null,this._status=f.LoaderStatus.kComplete},b.prototype._onWebSocketOpen=function(w){this._status=f.LoaderStatus.kBuffering},b.prototype._onWebSocketClose=function(w){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(w){var C=this;if(w.data instanceof ArrayBuffer)this._dispatchArrayBuffer(w.data);else if(w.data instanceof Blob){var x=new FileReader;x.onload=function(){C._dispatchArrayBuffer(x.result)},x.readAsArrayBuffer(w.data)}else{this._status=f.LoaderStatus.kError;var _={code:-1,msg:"Unsupported WebSocket message type: "+w.data.constructor.name};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,_);else throw new h.RuntimeException(_.msg)}},b.prototype._dispatchArrayBuffer=function(w){var C=w,x=this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,x,this._receivedLength)},b.prototype._onWebSocketError=function(w){this._status=f.LoaderStatus.kError;var C={code:w.code,msg:w.message};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.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(w,C){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,_){x.__proto__=_}||function(x,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(x[E]=_[E])},b(w,C)};return function(w,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");b(w,C);function x(){this.constructor=w}w.prototype=C===null?Object.create(C):(x.prototype=C.prototype,new x)}})(),y=(function(b){m(w,b);function w(C,x){var _=b.call(this,"xhr-moz-chunked-loader")||this;return _.TAG="MozChunkedLoader",_._seekHandler=C,_._config=x,_._needStash=!0,_._xhr=null,_._requestAbort=!1,_._contentLength=null,_._receivedLength=0,_}return w.isSupported=function(){try{var C=new XMLHttpRequest;return C.open("GET","https://example.com",!0),C.responseType="moz-chunked-arraybuffer",C.responseType==="moz-chunked-arraybuffer"}catch(x){return f.default.w("MozChunkedLoader",x.message),!1}},w.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)},w.prototype.open=function(C,x){this._dataSource=C,this._range=x;var _=C.url;this._config.reuseRedirectedURL&&C.redirectedURL!=null&&(_=C.redirectedURL);var E=this._seekHandler.getConfig(_,x);this._requestURL=E.url;var S=this._xhr=new XMLHttpRequest;if(S.open("GET",E.url,!0),S.responseType="moz-chunked-arraybuffer",S.onreadystatechange=this._onReadyStateChange.bind(this),S.onprogress=this._onProgress.bind(this),S.onloadend=this._onLoadEnd.bind(this),S.onerror=this._onXhrError.bind(this),C.withCredentials&&(S.withCredentials=!0),typeof E.headers=="object"){var I=E.headers;for(var $ in I)I.hasOwnProperty($)&&S.setRequestHeader($,I[$])}if(typeof this._config.headers=="object"){var I=this._config.headers;for(var $ in I)I.hasOwnProperty($)&&S.setRequestHeader($,I[$])}this._status=h.LoaderStatus.kConnecting,S.send()},w.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete},w.prototype._onReadyStateChange=function(C){var x=C.target;if(x.readyState===2){if(x.responseURL!=null&&x.responseURL!==this._requestURL&&this._onURLRedirect){var _=this._seekHandler.removeURLParameters(x.responseURL);this._onURLRedirect(_)}if(x.status!==0&&(x.status<200||x.status>299))if(this._status=h.LoaderStatus.kError,this._onError)this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:x.status,msg:x.statusText});else throw new p.RuntimeException("MozChunkedLoader: Http code invalid, "+x.status+" "+x.statusText);else this._status=h.LoaderStatus.kBuffering}},w.prototype._onProgress=function(C){if(this._status!==h.LoaderStatus.kError){this._contentLength===null&&C.total!==null&&C.total!==0&&(this._contentLength=C.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var x=C.target.response,_=this._range.from+this._receivedLength;this._receivedLength+=x.byteLength,this._onDataArrival&&this._onDataArrival(x,_,this._receivedLength)}},w.prototype._onLoadEnd=function(C){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)},w.prototype._onXhrError=function(C){this._status=h.LoaderStatus.kError;var x=0,_=null;if(this._contentLength&&C.loaded=this._contentLength&&(E=this._range.from+this._contentLength-1),this._currentRequestRange={from:_,to:E},this._internalOpen(this._dataSource,this._currentRequestRange)},C.prototype._internalOpen=function(x,_){this._lastTimeLoaded=0;var E=x.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?E=this._currentRedirectedURL:x.redirectedURL!=null&&(E=x.redirectedURL));var S=this._seekHandler.getConfig(E,_);this._currentRequestURL=S.url;var I=this._xhr=new XMLHttpRequest;if(I.open("GET",S.url,!0),I.responseType="arraybuffer",I.onreadystatechange=this._onReadyStateChange.bind(this),I.onprogress=this._onProgress.bind(this),I.onload=this._onLoad.bind(this),I.onerror=this._onXhrError.bind(this),x.withCredentials&&(I.withCredentials=!0),typeof S.headers=="object"){var $=S.headers;for(var L in $)$.hasOwnProperty(L)&&I.setRequestHeader(L,$[L])}if(typeof this._config.headers=="object"){var $=this._config.headers;for(var L in $)$.hasOwnProperty(L)&&I.setRequestHeader(L,$[L])}I.send()},C.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=p.LoaderStatus.kComplete},C.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)},C.prototype._onReadyStateChange=function(x){var _=x.target;if(_.readyState===2){if(_.responseURL!=null){var E=this._seekHandler.removeURLParameters(_.responseURL);_.responseURL!==this._currentRequestURL&&E!==this._currentRedirectedURL&&(this._currentRedirectedURL=E,this._onURLRedirect&&this._onURLRedirect(E))}if(_.status>=200&&_.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:_.status,msg:_.statusText});else throw new m.RuntimeException("RangeLoader: Http code invalid, "+_.status+" "+_.statusText)}},C.prototype._onProgress=function(x){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var _=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,_=!0;var E=x.total;this._internalAbort(),E!=null&E!==0&&(this._totalLength=E)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,_){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var S=x.loaded-this._lastTimeLoaded;this._lastTimeLoaded=x.loaded,this._speedSampler.addBytes(S)}},C.prototype._normalizeSpeed=function(x){var _=this._chunkSizeKBList,E=_.length-1,S=0,I=0,$=E;if(x<_[0])return _[0];for(;I<=$;){if(S=I+Math.floor(($-I)/2),S===E||x>=_[S]&&x<_[S+1])return _[S];_[S]=3&&(_=this._speedSampler.currentKBps)),_!==0){var E=this._normalizeSpeed(_);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}var S=x.target.response,I=this._range.from+this._receivedLength;this._receivedLength+=S.byteLength;var $=!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(w.default.INIT_SEGMENT,function(O,F){L._msectl.appendInitSegment(F)}),this._transmuxer.on(w.default.MEDIA_SEGMENT,function(O,F){if(L._msectl.appendMediaSegment(F),L._config.lazyLoad&&!L._config.isLive){var M=L._mediaElement.currentTime;F.info.endDts>=(M+L._config.lazyLoadMaxDuration)*1e3&&L._progressChecker==null&&(p.default.v(L.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),L._suspendTransmuxer())}}),this._transmuxer.on(w.default.LOADING_COMPLETE,function(){L._msectl.endOfStream(),L._emitter.emit(y.default.LOADING_COMPLETE)}),this._transmuxer.on(w.default.RECOVERED_EARLY_EOF,function(){L._emitter.emit(y.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(w.default.IO_ERROR,function(O,F){L._emitter.emit(y.default.ERROR,_.ErrorTypes.NETWORK_ERROR,O,F)}),this._transmuxer.on(w.default.DEMUX_ERROR,function(O,F){L._emitter.emit(y.default.ERROR,_.ErrorTypes.MEDIA_ERROR,O,{code:-1,msg:F})}),this._transmuxer.on(w.default.MEDIA_INFO,function(O){L._mediaInfo=O,L._emitter.emit(y.default.MEDIA_INFO,Object.assign({},O))}),this._transmuxer.on(w.default.METADATA_ARRIVED,function(O){L._emitter.emit(y.default.METADATA_ARRIVED,O)}),this._transmuxer.on(w.default.SCRIPTDATA_ARRIVED,function(O){L._emitter.emit(y.default.SCRIPTDATA_ARRIVED,O)}),this._transmuxer.on(w.default.STATISTICS_INFO,function(O){L._statisticsInfo=L._fillStatisticsInfo(O),L._emitter.emit(y.default.STATISTICS_INFO,Object.assign({},L._statisticsInfo))}),this._transmuxer.on(w.default.RECOMMEND_SEEKPOINT,function(O){L._mediaElement&&!L._config.accurateSeek&&(L._requestSetTime=!0,L._mediaElement.currentTime=O/1e3)}),this._transmuxer.open()}},$.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)},$.prototype.play=function(){return this._mediaElement.play()},$.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty($.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(L){this._mediaElement.volume=L},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(L){this._mediaElement.muted=L},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(L){this._mediaElement?this._internalSeek(L):this._pendingSeekTime=L},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),$.prototype._fillStatisticsInfo=function(L){if(L.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return L;var O=!0,F=0,M=0;if(this._mediaElement.getVideoPlaybackQuality){var j=this._mediaElement.getVideoPlaybackQuality();F=j.totalVideoFrames,M=j.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(F=this._mediaElement.webkitDecodedFrameCount,M=this._mediaElement.webkitDroppedFrameCount):O=!1;return O&&(L.decodedFrames=F,L.droppedFrames=M),L},$.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var L=this._mediaElement.buffered,O=this._mediaElement.currentTime,F=0,M=0;M=O+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},$.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},$.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},$.prototype._checkProgressAndResume=function(){for(var L=this._mediaElement.currentTime,O=this._mediaElement.buffered,F=!1,M=0;M=j&&L=V-this._config.lazyLoadRecoverDuration&&(F=!0);break}}F&&(window.clearInterval(this._progressChecker),this._progressChecker=null,F&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},$.prototype._isTimepointBuffered=function(L){for(var O=this._mediaElement.buffered,F=0;F=M&&L0){var j=this._mediaElement.buffered.start(0);(j<1&&L0&&O.currentTime0){var M=F.start(0);if(M<1&&O0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},w.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},w.prototype.play=function(){return this._mediaElement.play()},w.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(w.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(C){this._mediaElement.volume=C},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(C){this._mediaElement.muted=C},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(C){this._mediaElement?this._mediaElement.currentTime=C:this._pendingSeekTime=C},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"mediaInfo",{get:function(){var C=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",x={mimeType:C+this._mediaDataSource.type};return this._mediaElement&&(x.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(x.width=this._mediaElement.videoWidth,x.height=this._mediaElement.videoHeight)),x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"statisticsInfo",{get:function(){var C={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return C;var x=!0,_=0,E=0;if(this._mediaElement.getVideoPlaybackQuality){var S=this._mediaElement.getVideoPlaybackQuality();_=S.totalVideoFrames,E=S.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(_=this._mediaElement.webkitDecodedFrameCount,E=this._mediaElement.webkitDroppedFrameCount):x=!1;return x&&(C.decodedFrames=_,C.droppedFrames=E),C},enumerable:!1,configurable:!0}),w.prototype._onvLoadedMetadata=function(C){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(p.default.MEDIA_INFO,this.mediaInfo)},w.prototype._reportStatisticsInfo=function(){this._emitter.emit(p.default.STATISTICS_INFO,this.statisticsInfo)},w})();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,y=null,b=Array.prototype.slice.call(arguments,1),w=b.length,C=0;C>>24&255,y[1]=m>>>16&255,y[2]=m>>>8&255,y[3]=m&255,y.set(p,4);for(var x=8,C=0;C>>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,y=p.duration,b=p.presentWidth,w=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,y>>>24&255,y>>>16&255,y>>>8&255,y&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,w>>>8&255,w&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,y=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,y>>>24&255,y>>>16&255,y>>>8&255,y&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,y=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,y>>>8&255,y&255,0,0]);return h.box(h.types[".mp3"],b)},h.mp4a=function(p){var m=p.channelCount,y=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,y>>>8&255,y&255,0,0]);return h.box(h.types.mp4a,b,h.esds(p))},h.esds=function(p){var m=p.config||[],y=m.length,b=new Uint8Array([0,0,0,0,3,23+y,0,1,0,4,15+y,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([y]).concat(m).concat([6,1,2]));return h.box(h.types.esds,b)},h.avc1=function(p){var m=p.avcc,y=p.codecWidth,b=p.codecHeight,w=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,y>>>8&255,y&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,w,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,y=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,y)},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 y=p.id,b=h.box(h.types.tfhd,new Uint8Array([0,0,0,0,y>>>24&255,y>>>16&255,y>>>8&255,y&255])),w=h.box(h.types.tfdt,new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255])),C=h.sdtp(p),x=h.trun(p,C.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,b,w,x,C)},h.sdtp=function(p){for(var m=p.samples||[],y=m.length,b=new Uint8Array(4+y),w=0;w>>24&255,b>>>16&255,b>>>8&255,b&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255],0);for(var x=0;x>>24&255,_>>>16&255,_>>>8&255,_&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,S.isLeading<<2|S.dependsOn,S.isDependedOn<<6|S.hasRedundancy<<4|S.isNonSync,0,0,I>>>24&255,I>>>16&255,I>>>8&255,I&255],12+16*x)}return h.box(h.types.trun,C)},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"),y=c("./src/core/media-segment-info.js"),b=c("./src/utils/exception.js"),w=(function(){function C(x){this.TAG="MP4Remuxer",this._config=x,this._isLive=x.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 y.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new y.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 C.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},C.prototype.bindDataSource=function(x){return x.onDataAvailable=this.remux.bind(this),x.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(C.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(x){this._onInitSegment=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(x){this._onMediaSegment=x},enumerable:!1,configurable:!0}),C.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},C.prototype.seek=function(x){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},C.prototype.remux=function(x,_){if(!this._onMediaSegment)throw new b.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(x,_),this._remuxVideo(_),this._remuxAudio(x)},C.prototype._onTrackMetadataReceived=function(x,_){var E=null,S="mp4",I=_.codec;if(x==="audio")this._audioMeta=_,_.codec==="mp3"&&this._mp3UseMpegAudio?(S="mpeg",I="",E=new Uint8Array):E=h.default.generateInitSegment(_);else if(x==="video")this._videoMeta=_,E=h.default.generateInitSegment(_);else return;if(!this._onInitSegment)throw new b.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(x,{type:x,data:E.buffer,codec:I,container:x+"/"+S,mediaDuration:_.duration})},C.prototype._calculateDtsBase=function(x,_){this._dtsBaseInited||(x.samples&&x.samples.length&&(this._audioDtsBase=x.samples[0].dts),_.samples&&_.samples.length&&(this._videoDtsBase=_.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},C.prototype.flushStashedSamples=function(){var x=this._videoStashedLastSample,_=this._audioStashedLastSample,E={type:"video",id:1,sequenceNumber:0,samples:[],length:0};x!=null&&(E.samples.push(x),E.length=x.length);var S={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};_!=null&&(S.samples.push(_),S.length=_.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(E,!0),this._remuxAudio(S,!0)},C.prototype._remuxAudio=function(x,_){if(this._audioMeta!=null){var E=x,S=E.samples,I=void 0,$=-1,L=-1,O=this._audioMeta.refSampleDuration,F=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,M=this._dtsBaseInited&&this._audioNextDts===void 0,j=!1;if(!(!S||S.length===0)&&!(S.length===1&&!_)){var V=0,W=null,U=0;F?(V=0,U=E.length):(V=8,U=8+E.length);var X=null;if(S.length>1&&(X=S.pop(),U-=X.length),this._audioStashedLastSample!=null){var G=this._audioStashedLastSample;this._audioStashedLastSample=null,S.unshift(G),U+=G.length}X!=null&&(this._audioStashedLastSample=X);var Y=S[0].dts-this._dtsBase;if(this._audioNextDts)I=Y-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())I=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(j=!0);else{var ee=this._audioSegmentInfoList.getLastSampleBefore(Y);if(ee!=null){var te=Y-(ee.originalDts+ee.duration);te<=3&&(te=0);var J=ee.dts+ee.duration+te;I=Y-J}else I=0}if(j){var Z=Y-I,ce=this._videoSegmentInfoList.getLastSegmentBefore(Y);if(ce!=null&&ce.beginDts=de*O&&this._fillAudioTimestampGap&&!m.default.safari){Ge=!0;var Te=Math.floor(I/O);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: "+De+" ms, curRefDts: "+he+" ms, ")+("dtsCorrection: "+Math.round(I)+" ms, generate: "+Te+" frames")),ie=Math.floor(he),Ve=Math.floor(he+O)-ie;var ye=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ye==null&&(f.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),ye=Fe),qe=[];for(var Oe=0;Oe=1?Ve=Re[Re.length-1].duration:Ve=Math.floor(O);this._audioNextDts=ie+Ve}$===-1&&($=ie),Re.push({dts:ie,pts:ie,cts:0,unit:G.unit,size:G.unit.byteLength,duration:Ve,originalDts:De,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ge&&Re.push.apply(Re,qe)}}if(Re.length===0){E.samples=[],E.length=0;return}F?W=new Uint8Array(U):(W=new Uint8Array(U),W[0]=U>>>24&255,W[1]=U>>>16&255,W[2]=U>>>8&255,W[3]=U&255,W.set(h.default.types.mdat,4));for(var be=0;be1&&(W=S.pop(),V-=W.length),this._videoStashedLastSample!=null){var U=this._videoStashedLastSample;this._videoStashedLastSample=null,S.unshift(U),V+=U.length}W!=null&&(this._videoStashedLastSample=W);var X=S[0].dts-this._dtsBase;if(this._videoNextDts)I=X-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())I=0;else{var G=this._videoSegmentInfoList.getLastSampleBefore(X);if(G!=null){var Y=X-(G.originalDts+G.duration);Y<=3&&(Y=0);var ee=G.dts+G.duration+Y;I=X-ee}else I=0}for(var te=new y.MediaSegmentInfo,J=[],Z=0;Z=1?be=J[J.length-1].duration:be=Math.floor(this._videoMeta.refSampleDuration);if(ye){var De=new y.SampleInfo(ie,Re,be,U.dts,!0);De.fileposition=U.fileposition,te.appendSyncPoint(De)}J.push({dts:ie,pts:Re,cts:Ce,units:U.units,size:U.length,isKeyframe:ye,duration:be,originalDts:ce,flags:{isLeading:0,dependsOn:ye?2:1,isDependedOn:ye?1:0,hasRedundancy:0,isNonSync:ye?0:1}})}j=new Uint8Array(V),j[0]=V>>>24&255,j[1]=V>>>16&255,j[2]=V>>>8&255,j[3]=V&255,j.set(h.default.types.mdat,4);for(var Z=0;Z=0&&/(rv)(?::| )([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(p)||[],y=/(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:y[0]||""},w={};if(b.browser){w[b.browser]=!0;var C=b.majorVersion.split(".");w.version={major:parseInt(b.majorVersion,10),string:b.version},C.length>1&&(w.version.minor=parseInt(C[1],10)),C.length>2&&(w.version.build=parseInt(C[2],10))}if(b.platform&&(w[b.platform]=!0),(w.chrome||w.opr||w.safari)&&(w.webkit=!0),w.rv||w.iemobile){w.rv&&delete w.rv;var x="msie";b.browser=x,w[x]=!0}if(w.edge){delete w.edge;var _="msedge";b.browser=_,w[_]=!0}if(w.opr){var E="opera";b.browser=E,w[E]=!0}if(w.safari&&w.android){var S="android";b.browser=S,w[S]=!0}w.name=b.browser,w.platform=b.platform;for(var I in f)f.hasOwnProperty(I)&&delete f[I];Object.assign(f,w)}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 y}});var f=(function(){var b=function(w,C){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,_){x.__proto__=_}||function(x,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(x[E]=_[E])},b(w,C)};return function(w,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");b(w,C);function x(){this.constructor=w}w.prototype=C===null?Object.create(C):(x.prototype=C.prototype,new x)}})(),h=(function(){function b(w){this._message=w}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(w,b);function w(C){return b.call(this,C)||this}return Object.defineProperty(w.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),w})(h),m=(function(b){f(w,b);function w(C){return b.call(this,C)||this}return Object.defineProperty(w.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),w})(h),y=(function(b){f(w,b);function w(C){return b.call(this,C)||this}return Object.defineProperty(w.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),w})(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(y,b){(!y||m.FORCE_GLOBAL_TAG)&&(y=m.GLOBAL_TAG);var w="["+y+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","error",w),m.ENABLE_ERROR&&(console.error?console.error(w):console.warn?console.warn(w):console.log(w))},m.i=function(y,b){(!y||m.FORCE_GLOBAL_TAG)&&(y=m.GLOBAL_TAG);var w="["+y+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","info",w),m.ENABLE_INFO&&(console.info?console.info(w):console.log(w))},m.w=function(y,b){(!y||m.FORCE_GLOBAL_TAG)&&(y=m.GLOBAL_TAG);var w="["+y+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","warn",w),m.ENABLE_WARN&&(console.warn?console.warn(w):console.log(w))},m.d=function(y,b){(!y||m.FORCE_GLOBAL_TAG)&&(y=m.GLOBAL_TAG);var w="["+y+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","debug",w),m.ENABLE_DEBUG&&(console.debug?console.debug(w):console.log(w))},m.v=function(y,b){(!y||m.FORCE_GLOBAL_TAG)&&(y=m.GLOBAL_TAG);var w="["+y+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","verbose",w),m.ENABLE_VERBOSE&&console.log(w)},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 y(){}return Object.defineProperty(y,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(b){p.default.FORCE_GLOBAL_TAG=b,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(b){p.default.GLOBAL_TAG=b,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"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,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(b){p.default.ENABLE_DEBUG=b,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(b){p.default.ENABLE_VERBOSE=b,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(b){p.default.ENABLE_INFO=b,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(b){p.default.ENABLE_WARN=b,y._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(y,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(b){p.default.ENABLE_ERROR=b,y._notifyChange()},enumerable:!1,configurable:!0}),y.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}},y.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},y._notifyChange=function(){var b=y.emitter;if(b.listenerCount("change")>0){var w=y.getConfig();b.emit("change",w)}},y.registerListener=function(b){y.emitter.addListener("change",b)},y.removeListener=function(b){y.emitter.removeListener("change",b)},y.addLogListener=function(b){p.default.emitter.addListener("log",b),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,y._notifyChange())},y.removeLogListener=function(b){p.default.emitter.removeListener("log",b),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,y._notifyChange())},y})();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),y=1;y=128){m.push(String.fromCharCode(C&65535)),b+=2;continue}}}else if(y[b]<240){if(f(y,b,2)){var C=(y[b]&15)<<12|(y[b+1]&63)<<6|y[b+2]&63;if(C>=2048&&(C&63488)!==55296){m.push(String.fromCharCode(C&65535)),b+=3;continue}}}else if(y[b]<248&&f(y,b,3)){var C=(y[b]&7)<<18|(y[b+1]&63)<<12|(y[b+2]&63)<<6|y[b+3]&63;if(C>65536&&C<1114112){C-=65536,m.push(String.fromCharCode(C>>>10|55296)),m.push(String.fromCharCode(C&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})()})})(nF)),nF.exports}var ZEt=XEt();const QV=qd(ZEt);var rF={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var sle;function JEt(){return sle||(sle=1,(function(e){(function(){var t=typeof window<"u"?window:f6e,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)+"_",g=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,D(T))},u.prototype.B=function(){if(this.g!=null){for(var T=0;T1114111||g!==Math.floor(g))throw new RangeError("invalid_code_point "+g);g<=65535?d+=String.fromCharCode(g):(g-=65536,d+=String.fromCharCode(g>>>10&1023|55296),d+=String.fromCharCode(g&1023|56320))}return d}}),m("WeakSet",function(i){function u(d){if(this.g=new WeakMap,d){d=S(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({}),g=new i([d]);return!g.has(d)||g.has(v)?!1:(g.delete(d),g.add(v),!g.has(d)&&g.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 be(this,u,d).v}}),m("String.prototype.startsWith",function(i){return i||function(u,d){var v=De(this,u,"startsWith"),g=v.length,k=u.length;d=Math.max(0,Math.min(d|0,v.length));for(var T=0;T=k}}),m("Object.entries",function(i){return i||function(u){var d=[],v;for(v in u)Re(u,v)&&d.push([v,u[v]]);return d}});var Ge=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)Re(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=De(this,u,"endsWith");d===void 0&&(d=v.length),d=Math.max(0,Math.min(d|0,v.length));for(var g=u.length;g>0&&d>0;)if(v[--d]!=u[--g])return!1;return g<=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 qe=this||self;function Ve(i,u){i=i.split(".");var d=qe;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 he(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}he.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 de(i){return i.h/(1-Math.pow(i.g,i.i))}function Te(){this.h=new he(2),this.j=new he(5),this.g=0,this.i=128e3,this.l=16e3}Te.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)},Te.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function Nt(i,u,d){if(d||(d=$t),i.length!=u.length)return!1;u=u.slice(),i=S(i);for(var v=i.next(),g={};!v.done;g={mi:void 0},v=i.next()){if(g.mi=v.value,v=u.findIndex((function(k){return function(T){return d(k.mi,T)}})(g)),v==-1)return!1;u[v]=u[u.length-1],u.pop()}return u.length==0}function dt(i,u,d){if(i===u)return!0;if(!i||!u)return i==u;if(d||(d=$t),i.length!=u.length)return!1;for(var v=0;v0?v.i:v.h)(v.g,d,i,u)}function on(i,u,d,v){We([d,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",v].join(" "))}function Mn(i,u,d,v){je([d,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",v].join(" "))}var Ci=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Lu=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function Ar(i){var u;i instanceof Ar?(Jo(this,i.bc),this.hd=i.hd,ga(this,i.Db),sn(this,i.Cd),this.Sb=i.Sb,Yn(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Lu))?(Jo(this,u[1]||"",!0),this.hd=Ii(u[2]||""),ga(this,u[3]||"",!0),sn(this,u[4]),this.Sb=Ii(u[5]||"",!0),Yn(this,u[6]||"",!0),this.Rc=Ii(u[7]||"")):this.g=new td(null)}l=Ar.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(ya(u,mc,!0),":"),u=this.Db){i.push("//");var d=this.hd;d&&i.push(ya(d,mc,!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(ya(u,u.charAt(0)=="/"?ed:ef,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",ya(u,tf)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new Ar);var d=!!i.bc;d?Jo(u,i.bc):d=!!i.hd,d?u.hd=i.hd:d=!!i.Db,d?ga(u,i.Db):d=i.Cd!=null;var v=i.Sb;if(d)sn(u,i.Cd);else if(d=!!i.Sb){if(v.charAt(0)!="/")if(this.Db&&!this.Sb)v="/"+v;else{var g=u.Sb.lastIndexOf("/");g!=-1&&(v=u.Sb.substr(0,g+1)+v)}if(v==".."||v==".")v="";else if(v.indexOf("./")!=-1||v.indexOf("/.")!=-1){g=v.lastIndexOf("/",0)==0,v=v.split("/");for(var k=[],T=0;T1||k.length==1&&k[0]!="")&&k.pop(),g&&T==v.length&&k.push("")):(k.push(P),g=!0)}v=k.join("/")}}return d?u.Sb=v:d=i.g.toString()!=="",d?Yn(u,i.g.clone()):d=!!i.Rc,d&&(u.Rc=i.Rc),u},l.clone=function(){return new Ar(this)};function Jo(i,u,d){i.bc=d?Ii(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function ga(i,u,d){i.Db=d?Ii(u,!0):u}function sn(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 Yn(i,u,d){u instanceof td?i.g=u:(d||(u=ya(u,Pu)),i.g=new td(u))}function Ii(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function ya(i,u,d){return i!=null?(i=encodeURI(i).replace(u,vc),d&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function vc(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var mc=/[#\/\?@]/g,ef=/[#\?:]/g,ed=/[#\?]/g,Pu=/[#\?@]/g,tf=/#/g;function td(i){this.g=i||null}function _h(i){if(!i.eb&&(i.eb=new Map,i.Sd=0,i.g))for(var u=i.g.split("&"),d=0;d=0){var k=u[d].substring(0,v);g=u[d].substring(v+1)}else k=u[d];k=decodeURIComponent(k),g=g||"",i.add(k,decodeURIComponent(g))}}l=td.prototype,l.eb=null,l.Sd=null;function Ag(i){return _h(i),i.Sd}l.add=function(i,u){_h(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 _h(this),this.g=null,this.eb.has(i)?this.eb.set(i,[u]):this.add(i,u),this},l.get=function(i){return _h(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=S(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 g=0;g=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 g=v&1023;u+=String.fromCharCode(55296+(v>>10)),u+=String.fromCharCode(56320+g)}}return u}function Gr(i,u,d){if(!i)return"";if(!d&&i.byteLength%2!=0)throw new Ye(2,2,2004);d=Math.floor(i.byteLength/2);var v=new Uint16Array(d);i=yo(i);for(var g=0;g=9&&d[v]<=126}if(!i)return"";var d=ln(i);if(d[0]==239&&d[1]==187&&d[2]==191)return zt(d);if(d[0]==254&&d[1]==255)return Gr(d.subarray(2),!1);if(d[0]==255&&d[1]==254)return Gr(d.subarray(2),!0);if(d[0]==0&&d[2]==0)return Gr(i,!1);if(d[1]==0&&d[3]==0)return Gr(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return zt(i);throw new Ye(2,2,2003)}function ci(i){if(o.TextEncoder&&!Se().rh()){var u=new TextEncoder;return Hs(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(g){return g[1]=="#"?(g=g[2]=="x"||g[2]=="X"?parseInt(g.substring(3),16):parseInt(g.substring(2),10),g>=0&&g<=1114111?String.fromCodePoint(g):""):u[g]||"'"}):i||""}Ve("shaka.util.StringUtils",Vt),Vt.resetFromCharCode=function(){Z1.g=void 0},Vt.toUTF16=ba,Vt.toUTF8=ci,Vt.fromBytesAutoDetect=Zr,Vt.fromUTF16=Gr,Vt.fromUTF8=zt;var Z1=new ze(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 g="",k=0;k"u"&&We("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,Dt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{We("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(We("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||We(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 Lg(i,u,d,v){v.type!=="video"||i.o&&!v.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",v.id,-d,!i.o)}function iC(i){i.g&&i.i.classList.add("shaka-hidden")}Ih.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function eb(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}Ve("shaka.lcevc.Dec",Ih),Ih.prototype.release=Ih.prototype.release;function Qo(i){if(Pg.has(i))return Pg.get(i);var u=o.ManagedMediaSource||o.MediaSource;return u?(u=u.isTypeSupported(i),Pg.set(i,u),u):!1}function of(){var i=o.ManagedSourceBuffer||o.SourceBuffer;return!!i&&!!i.prototype&&!!i.prototype.changeType}function oC(){var i=o.ManagedMediaSource||o.MediaSource;return i&&i.prototype?!!i.prototype.setLiveSeekableRange&&!!i.prototype.clearLiveSeekableRange:!1}var Pg=new Map;function Ah(){}Ah.prototype.extract=function(){},Ah.prototype.decode=function(){return[]},Ah.prototype.clear=function(){},Ah.prototype.getStreams=function(){return[]};function $g(){}$g.prototype.init=function(){},$g.prototype.parse=function(){return[]};function tb(){}l=tb.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},Ve("shaka.media.IClosedCaptionParser",tb);function ka(i){this.h=new Map,this.i=0,this.j=new $g,(i=rb(i.toLowerCase()))&&(this.j=i()),this.g=new Ah,(i=sf)&&(this.g=i(),this.h.set(this.i,this.g))}l=ka.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=sf)&&(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=S(i);for(var u=i.next();!u.done;u=i.next()){u=u.value;var d=ln(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=S(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 nb(i,u){Mg.set(i,u)}function rb(i){return Mg.get(i)}Ve("shaka.media.ClosedCaptionParser",ka),ka.findDecoder=function(){return sf},ka.unregisterDecoder=function(){sf=null},ka.registerDecoder=function(i){sf=i},ka.findParser=rb,ka.unregisterParser=function(i){Mg.delete(i)},ka.registerParser=nb;var Mg=new Map,sf=null;function gc(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ms,this.scroll=ib}Ve("shaka.text.CueRegion",gc);var Ms=1;gc.units={PX:0,PERCENTAGE:Ms,LINES:2};var ib="";gc.scrollMode={NONE:ib,UP:"up"};function Lh(i){this.h=i||"",this.g=0}function af(i){yc(i,/[ \t]+/gm)}function yc(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 lf(i){return i.g==i.h.length?null:(i=yc(i,/[^ \t\n]*/gm))?i[0]:null}function Rg(i){if(i=yc(i,Mt),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 ht(i){return i?Rg(new Lh(i)):null}var Mt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function Ft(){}function Ut(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 g=Array.isArray(v);if(v.constructor!=Object&&!g)return null;d.add(v);var k=g?[]:{},T;for(T in v)k[T]=u(v[T]);return g&&(k.length=v.length),k}}var d=new WeakSet;return u(i)}function Qt(i){var u={},d;for(d in i)u[d]=i[d];return u}function Cn(i){if(Array.isArray(i)){for(var u=[],d=0;d",g),T=i.substring(T,g);var D=T.indexOf(k);if(D==-1){var B=k.indexOf(".");B>0&&(D=T.indexOf(k.substring(0,B)))}if(D==-1)throw k=i.substring(0,g).split(` `),Error(`Unexpected close tag Line: `+(k.length-1)+` Column: `+(k[k.length-1].length+1)+` Char: `+i[g]);g+1&&(g+=1);break}else if(i.charCodeAt(g+1)===33){if(i.charCodeAt(g+2)==45){for(;g!==-1&&(i.charCodeAt(g)!==62||i.charCodeAt(g-1)!=45||i.charCodeAt(g-2)!=45||g==-1);)g=i.indexOf(">",g+1);g===-1&&(g=i.length)}else if(i.charCodeAt(g+2)===91&&i.charCodeAt(g+8)===91&&i.substr(g+3,5).toLowerCase()==="cdata"){D=i.indexOf("]]>",g),D==-1?(P.push(i.substr(g+9)),g=i.length):(P.push(i.substring(g+9,D)),g=D+3);continue}g++;continue}e:{B=T,g++;var H=v(),K={};for(D=[];i.charCodeAt(g)!==62&&i[g];){var Q=i.charCodeAt(g);if(Q>64&&Q<91||Q>96&&Q<123){Q=v();for(var re=i.charCodeAt(g);re&&re!==39&&re!==34&&!(re>64&&re<91||re>96&&re<123)&&re!==62;)g++,re=i.charCodeAt(g);var oe=g+1;if(g=i.indexOf(i[g],oe),oe=i.slice(oe,g),re===39||re===34){if(g===-1){if(B={tagName:H,attributes:K,children:D,parent:null},u)for(H=0;H0&&P.push(D):(P.length&&D.length==1&&D[0]==` `||D.trim().length>0)&&P.push(D),g++;return P}function v(){for(var k=g;`\r >/= `.indexOf(i[g])===-1&&i[g];)g++;return i.slice(k,g)}var g=0;return d("")}function eu(i){return typeof i=="string"}function Mu(i){var u=[];if(!i.children)return[];i=S(i.children);for(var d=i.next();!d.done;d=i.next())d=d.value,typeof d!="string"&&u.push(d);return u}function nr(i,u){var d=[];if(!i.children)return[];i=S(i.children);for(var v=i.next();!v.done;v=i.next())v=v.value,v.tagName===u&&d.push(v);return d}function Bn(i){return typeof i=="string"?vs(i):(i=i.children.reduce(function(u,d){return typeof d=="string"?u+d:u},""),i===""?null:vs(i))}function Pi(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=Bn(i))&&(i=i.trim()),i):null}function Ws(i,u,d){if(d=d===void 0?[]:d,i.tagName===u&&d.push(i),i.children){i=S(i.children);for(var v=i.next();!v.done;v=i.next())Ws(v.value,u,d)}return d}function Sr(i,u){return i=nr(i,u),i.length!=1?null:i[0]}function Gs(i,u,d){return i=sC(i,u,d),i.length!=1?null:i[0]}function un(i,u,d,v){v=v===void 0?null:v;var g=null;return i=i.attributes[u],i!=null&&(g=d(i)),g??v}function tu(i,u,d){return u=di(u),i.attributes[u+":"+d]||null}function sC(i,u,d){var v=di(u);if(u=[],i.children)for(d=v?v+":"+d:d,i=S(i.children),v=i.next();!v.done;v=i.next())(v=v.value)&&v.tagName===d&&u.push(v);return u}function es(i,u,d){u=S(u);for(var v=u.next();!v.done;v=u.next())if(v=tu(i,v.value,d))return v;return null}function uf(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 id(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 aC(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 ts(i){return i=Number(i),i%1===0?i:null}function od(i){return i=Number(i),i%1===0&&i>0?i:null}function ns(i){return i=Number(i),i%1===0&&i>=0?i:null}function lC(i){return i=Number(i),isNaN(i)?null:i}function uC(i){return i?i.toLowerCase()==="true":!1}function XSe(i){var u,d=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(d)?null:d}function cC(i){var u=[];i=vs(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=S(i);for(var d=i.next();!d.done;d=i.next()){d=d.value;var v=d.match(/^([\w]+)/);if(v){var g=d.match(/(@id='(.*?)')/),k=d.match(/(@t='(\d+)')/),T=d.match(/(@n='(\d+)')/),P=d.match(/\[(\d+)\]/);u.push({name:v[0],id:g?g[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:k?Number(k[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 xG(i,u){var d=cC(u.attributes.sel||"");if(d.length){var v=d[d.length-1],g=u.attributes.pos||null;d=v.position,d==null&&(v.t!==null&&(d=_G(i,"t",v.t)),v.n!==null&&(d=_G(i,"n",v.n))),d===null?d=g==="prepend"?0:i.length:g==="prepend"?--d:g==="after"&&++d,g=u.tagName,(v=v.Cc)&&i[d]?TG(i[d],g,v,Pi(u)||""):(g!=="remove"&&g!=="replace"||i.splice(d,1),g!=="add"&&g!=="replace"||i.splice.apply(i,[d,0].concat(I(u.children))))}}function _G(i,u,d){var v=0;i=S(i);for(var g=i.next();!g.done;g=i.next()){if(Number(g.value.attributes[u])===d)return v;v++}return null}function TG(i,u,d,v){u==="remove"?delete i.attributes[d]:(u==="add"||u==="replace")&&(i.attributes[d]=v)}function EG(i){var u="",d=i.tagName.split(":");d.length>0&&(u=d[0],u=C5.has(u)?C5.get(u):""),u=document.createElementNS(u,i.tagName);for(var v in i.attributes)u.setAttribute(v,i.attributes[v]);for(i=S(i.children),v=i.next();!v.done;v=i.next())v=v.value,d=void 0,typeof v=="string"?d=new Text(v):d=EG(v),u.appendChild(d);return u}function k5(i){if(!i)return null;var u={tagName:i.tagName,attributes:Qt(i.attributes),children:[],parent:null};i=S(i.children);for(var d=i.next();!d.done;d=i.next())d=d.value,typeof d=="string"||(d=k5(d),d.parent=u),u.children.push(d);return u}var w5=new Map,C5=new Map;function Kr(i,u,d){this.startTime=i,this.endTime=u,this.payload=d,this.region=new gc,this.position=null,this.positionAlign=hC,this.size=0,this.textAlign=sd,this.direction=ab,this.writingMode=gv,this.lineInterpretation=lb,this.line=null,this.lineHeight="",this.lineAlign=yv,this.displayAlign=sb,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=RG,this.fontStyle=T5,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 IG(i,u){return i=new Kr(i,u,""),i.lineBreak=!0,i}Kr.prototype.clone=function(){var i=new Kr(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function dC(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(!dt(i.nestedCues,u.nestedCues,dC))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(!dt(i[d],u[d]))return!1}else if(i[d]!=u[d])return!1}return!0}function fC(i,u){u=u===void 0?new Map:u;var d=i.payload;if(d.includes("<")){u.size===0&&AG(u);var v=d;d=[];for(var g=-1,k=0;k"&&g>0&&(g=v.substr(g,k-g),g.match(JSe)&&d.push(g),g=-1);for(d=S(d),k=d.next();!k.done;k=d.next())k=k.value,v=v.replace("<"+k+">",'
'),v+="
";e:{k=v,g=[];var T=-1;d="",v=!1;for(var P=0;P",P);if(D===-1){d=k;break e}if((D=k.substring(P+1,D))&&D=="v"){v=!0;var B=null;if(g.length&&(B=g[g.length-1]),B){if(B===D)d+="/"+D+">";else{if(!B.startsWith("v")){d+=k[P];continue}d+="/"+B+">"}P+=D.length+1}else d+=k[P]}else d+=k[P]}else k[P]==="<"?(T=P+1,k[T]!="v"&&(T=-1)):k[P]===">"&&T>0&&(g.push(k.substr(T,P-T)),T=-1),d+=k[P];for(k=S(g),g=k.next();!g.done;g=k.next())g=g.value,T=g.replace(" ",".voice-"),d=d.replace("<"+g+">","<"+T+">"),d=d.replace("",""),v||(d+="")}d=ZSe(d),i.payload="",v=""+d.replace(/\n/g,"
")+"
";try{var H=wr(v,"span")}catch{}if(H)if(H=H.children,H.length!=1||H[0].tagName)for(H=S(H),d=H.next();!d.done;d=H.next())LG(d.value,i,u);else i.payload=vs(d);else i.payload=vs(d)}else i.payload=vs(d)}function AG(i){for(var u=S(Object.entries($G)),d=u.next();!d.done;d=u.next()){var v=S(d.value);d=v.next().value,v=v.next().value;var g=new Kr(0,0,"");g.color=v,i.set("."+d,g)}for(u=S(Object.entries(MG)),d=u.next();!d.done;d=u.next())v=S(d.value),d=v.next().value,v=v.next().value,g=new Kr(0,0,""),g.backgroundColor=v,i.set("."+d,g)}function ZSe(i){var u={"< ":""," >":" >"},d=/(< +>|<\s|\s>)/g,v=RegExp(d.source);return i&&v.test(i)?i.replace(d,function(g){return u[g]||""}):i||""}function LG(i,u,d){var v=u.clone();if(v.nestedCues=[],v.payload="",v.rubyTag="",v.line=null,v.region=new gc,v.position=null,v.size=0,v.textAlign=sd,i.tagName)for(var g=S(i.tagName.split(/(?=[ .])+/g)),k=g.next();!k.done;k=g.next()){var T=k=k.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=ob(T.backgroundColor,P.backgroundColor),P.color=ob(T.color,P.color),P.fontFamily=ob(T.fontFamily,P.fontFamily),P.fontSize=ob(T.fontSize,P.fontSize),P.textShadow=ob(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),k){case"br":v=IG(v.startTime,v.endTime),u.nestedCues.push(v);return;case"b":v.fontWeight=Dg;break;case"i":v.fontStyle=Og;break;case"u":v.textDecoration.push(cf);break;case"font":(k=i.attributes.color)&&(v.color=k);break;case"div":if(k=i.attributes.time,!k)break;(k=ht(k))&&(v.startTime=k);break;case"ruby":case"rp":case"rt":v.rubyTag=k}}if(g=i.children,eu(i)||g.length==1&&eu(g[0]))for(d=Bn(i).split(` `),i=!0,d=S(d),g=d.next();!g.done;g=d.next())g=g.value,i||(i=IG(v.startTime,v.endTime),u.nestedCues.push(i)),g.length>0&&(i=v.clone(),i.payload=vs(g),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(v),u=S(g),i=u.next();!i.done;i=u.next())LG(i.value,v,d)}function ob(i,u){return i&&i.length>0?i:u}Ve("shaka.text.Cue",Kr),Kr.parseCuePayload=fC,Kr.equal=dC,Kr.prototype.clone=Kr.prototype.clone;var hC="auto";Kr.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:hC};var sd="center",x5={LEFT:"left",RIGHT:"right",CENTER:sd,START:"start",END:"end"};Kr.textAlign=x5;var sb="after",PG={BEFORE:"before",CENTER:"center",AFTER:sb};Kr.displayAlign=PG;var ab="ltr";Kr.direction={HORIZONTAL_LEFT_TO_RIGHT:ab,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var gv="horizontal-tb";Kr.writingMode={HORIZONTAL_TOP_TO_BOTTOM:gv,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var lb=0;Kr.lineInterpretation={LINE_NUMBER:lb,PERCENTAGE:1};var yv="start",_5={CENTER:"center",START:yv,END:"end"};Kr.lineAlign=_5;var $G={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Kr.defaultTextColor=$G;var MG={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Kr.defaultTextBackgroundColor=MG;var RG=400,Dg=700;Kr.fontWeight={NORMAL:RG,BOLD:Dg};var T5="normal",Og="italic",DG={NORMAL:T5,ITALIC:Og,OBLIQUE:"oblique"};Kr.fontStyle=DG;var cf="underline";Kr.textDecoration={UNDERLINE:cf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var JSe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Ph(){}Ph.prototype.destroy=function(){};function df(i,u,d){E5.set(i.toLowerCase().split(";")[0]+"-"+d,{priority:d,yf:u})}function Ng(i,u){for(var d=i.toLowerCase().split(";")[0],v=S([OG,A5,I5,$h]),g=v.next();!g.done;g=v.next())if(g=E5.get(d+"-"+g.value)){var k=g.yf(),T=k.isSupported(i,u);if(k.destroy(),T)return g.yf}return null}Ve("shaka.transmuxer.TransmuxerEngine",Ph),Ph.findTransmuxer=Ng,Ph.unregisterTransmuxer=function(i,u){E5.delete(i.toLowerCase().split(";")[0]+"-"+u)},Ph.registerTransmuxer=df,Ph.prototype.destroy=Ph.prototype.destroy;var E5=new Map,$h=1,I5=2,A5=3,OG=4;Ph.PluginPriority={FALLBACK:$h,PREFERRED_SECONDARY:I5,PREFERRED:A5,APPLICATION:OG};function L5(){}function Bi(i,u){var d=i;return u&&!ff.includes(i)&&(d+='; codecs="'+u+'"'),d}function pC(i,u){return u&&(i+='; codecs="'+u+'"'),i}function P5(i,u,d){var v=Bi(i,u);return u=pC(i,u),Ng(u)?(i=Ng(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 ub(i){return i.split(";")[0].split("/")[1]}function ms(i){var u=NG(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 Mh(i){var u=[];i=S(i.split(","));for(var d=i.next();!d.done;d=i.next())d=NG(d.value),u.push(d[0]);return u.sort().join(",")}function Ya(i){return i.split(";")[0]}function wa(i){return i=i.split(/ *; */),i.shift(),(i=i.find(function(u){return u.startsWith("codecs=")}))?i.split("=")[1].replace(/^"|"$/g,""):""}function cb(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function NG(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}Ve("shaka.util.MimeUtils",L5),L5.getFullTypeWithAllCodecs=pC,L5.getFullType=Bi,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var ff=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function hf(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 rs(i,u){hb.set(i,u)}function db(i){return hb.get(i)}function fb(i){return hb.has(i)?!0:i=="application/cea-608"||i=="application/cea-708"?!!sf:!1}hf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function QSe(i,u,d,v,g){var k,T,P,D,B,H,K;return ie(function(Q){if(Q.g==1)return M(Q,Promise.resolve(),2);if(!i.i||!i.l)return Q.return();if(d==null||v==null)return i.i.parseInit(ln(u)),Q.return();for(k=i.C?d:i.u,T={periodStart:i.u,segmentStart:d,segmentEnd:v,vttOffset:k},P=i.i.parseMedia(ln(u),T,g,[]),D=S(P),B=D.next();!B.done;B=D.next())H=B.value,i.B(H,g||null,T);K=P.filter(function(re){return re.startTime>=i.m&&re.startTime=u)return g.return();d&&n2e(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)),jG(v)),j(g)})};function e2e(i,u,d){i.m=u,i.o=d}function BG(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 FG(i,u,d){u.startTime+=d,u.endTime+=d,u=S(u.nestedCues);for(var v=u.next();!v.done;v=u.next())FG(i,v.value,d)}function t2e(i,u,d){var v=new Map;u=S(u);for(var g=u.next();!g.done;g=u.next()){var k=g.value;g=k.stream,k=k.cue,v.has(g)||v.set(g,[]),FG(i,k,d),k.startTime>=i.m&&k.startTime=d}),i.j.set(g,k)}}function jG(i){for(var u=1/0,d=-1/0,v=S(i.j.values()),g=v.next();!g.done;g=v.next()){g=S(g.value);for(var k=g.next();!k.done;k=g.next())k=k.value,u=Math.min(u,k.startTime),d=Math.max(d,k.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)))}Ve("shaka.text.TextEngine",hf),hf.prototype.destroy=hf.prototype.destroy,hf.findParser=db,hf.unregisterParser=function(i){hb.delete(i)},hf.registerParser=rs;var hb=new Map;function pb(i){this.h=i,this.g=null}pb.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},pb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Rn(i){this.h=i,this.g=null}Rn.prototype.Jb=function(){return this.stop(),this.h(),this},Rn.prototype.ia=function(i){var u=this;return this.stop(),this.g=new pb(function(){u.h()}).ia(i),this},Rn.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new pb(function(){u.g.ia(i),u.h()}).ia(i),this},Rn.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},Ve("shaka.util.Timer",Rn),Rn.prototype.stop=Rn.prototype.stop,Rn.prototype.tickEvery=Rn.prototype.Ea,Rn.prototype.tickAfter=Rn.prototype.ia,Rn.prototype.tickNow=Rn.prototype.Jb;function r2e(i,u){return i.concat(u)}function i2e(){}function Rh(i){return i!=null}function vC(i,u){return Promise.race([u,new Promise(function(d,v){new Rn(v).ia(i)})])}function Ru(){}function Bg(i,u){return i=cr(i),u=cr(u),i.split("-")[0]==u.split("-")[0]}function vb(i,u){return i=cr(i),u=cr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function $5(i,u){return i=cr(i),u=cr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function cr(i){i=S(i.split("-x-"));var u=i.next().value;u=u===void 0?"":u,i=i.next().value,i=i===void 0?"":i;var d=S(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=VG.get(u)||u,d=d.toUpperCase(),(d?u+"-"+d:u)+(i?"-"+i:"")}function bv(i,u){return i=cr(i),u=cr(u),u==i?4:vb(u,i)?3:$5(u,i)?2:vb(i,u)?1:0}function mC(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=VG.get(i)||i}function M5(i){return i.language?cr(i.language):i.audio&&i.audio.language?cr(i.audio.language):i.video&&i.video.language?cr(i.video.language):"und"}function gC(i,u){i=cr(i);var d=new Set;u=S(u);for(var v=u.next();!v.done;v=u.next())d.add(cr(v.value));for(u=S(d),v=u.next();!v.done;v=u.next())if(v=v.value,v==i)return v;for(u=S(d),v=u.next();!v.done;v=u.next())if(v=v.value,vb(v,i))return v;for(u=S(d),v=u.next();!v.done;v=u.next())if(v=v.value,$5(v,i))return v;for(d=S(d),u=d.next();!u.done;u=d.next())if(u=u.value,vb(i,u))return u;return null}Ve("shaka.util.LanguageUtils",Ru),Ru.findClosestLocale=gC,Ru.getLocaleForVariant=M5,Ru.getLocaleForText=function(i){return cr(i.language||"und")},Ru.getBase=mC,Ru.relatedness=bv,Ru.areSiblings=function(i,u){var d=mC(i),v=mC(u);return i!=d&&u!=v&&d==v},Ru.normalize=cr,Ru.isSiblingOf=$5,Ru.isParentOf=vb,Ru.areLanguageCompatible=Bg,Ru.areLocaleCompatible=function(i,u){return i=cr(i),u=cr(u),i==u};var VG=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 zG(){}function UG(i,u,d,v,g){function k(we){var me=String(we.width||"")+String(we.height||"")+String(Math.round(we.frameRate||0))+(we.hdr||"")+we.fastSwitching;return we.dependencyStream&&(me+=we.dependencyStream.baseOriginalId||""),we.roles&&(me+=we.roles.sort().join("_")),me}function T(we){var me=we.language+(we.channelsCount||0)+(we.audioSamplingRate||0)+we.roles.join(",")+we.label+we.groupId+we.fastSwitching;return we.dependencyStream&&(me+=we.dependencyStream.baseOriginalId||""),me}if(g.length){var P=i.textStreams;g=S(g);for(var D=g.next(),B={};!D.done;B={Bh:void 0},D=g.next())if(B.Bh=D.value,D=P.filter((function(we){return function(me){return!!(me.codecs.startsWith(we.Bh)||me.mimeType.startsWith(we.Bh))}})(B)),D.length){P=D;break}i.textStreams=P}if(P=i.variants,(u.length||d.length)&&(P=o2e(P,u,d)),v.length){for(u=new lt,d=S(P),P=d.next();!P.done;P=d.next())P=P.value,u.push(String(P.video.width||0),P);var H=[];u.forEach(function(we,me){we=0;var Le=[];me=S(me);for(var Ue=me.next(),rt={};!Ue.done;rt={Tf:void 0},Ue=me.next())rt.Tf=Ue.value,Ue=v.filter((function(Be){return function(Ie){return Be.Tf.decodingInfos[0][Ie]}})(rt)).length,Ue>we?(we=Ue,Le=[rt.Tf]):Ue==we&&Le.push(rt.Tf);H.push.apply(H,I(Le))}),P=H}for(d=new Set,u=new Set,P=S(P),g=P.next();!g.done;g=P.next())g=g.value,g.audio&&d.add(g.audio),g.video&&u.add(g.video);P=Array.from(d).sort(function(we,me){return we.bandwidth-me.bandwidth});var K=[];for(d=new Map,P=S(P),g=P.next();!g.done;g=P.next()){if(g=g.value,D=T(g),B=d.get(D)||[],B.length){var Q=B[B.length-1],re=ms(Q.codecs),oe=ms(g.codecs);re!=oe||g.bandwidth&&Q.bandwidth&&!(g.bandwidth>Q.bandwidth)||(B.push(g),K.push(g.id))}else B.push(g),K.push(g.id);d.set(D,B)}var le={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(we,me){if(!we.bandwidth||!me.bandwidth||we.bandwidth==me.bandwidth){if(we.codecs&&me.codecs&&we.codecs!=me.codecs&&we.width==me.width){var Le=ms(we.codecs),Ue=ms(me.codecs);if(Le!=Ue)return(le[Le]||1)-(le[Ue]||1)}return we.width-me.width}return we.bandwidth-me.bandwidth}),u=of();var ue=[];for(d=new Map,P=S(P),g=P.next();!g.done;g=P.next()){if(g=g.value,D=k(g),B=d.get(D)||[],B.length){if(Q=B[B.length-1],!u&&(re=ms(Q.codecs),oe=ms(g.codecs),re!==oe))continue;re=ms(Q.codecs),oe=ms(g.codecs),re!=oe||g.bandwidth&&Q.bandwidth&&!(g.bandwidth>Q.bandwidth)||(B.push(g),ue.push(g.id))}else B.push(g),ue.push(g.id);d.set(D,B)}i.variants=i.variants.filter(function(we){var me=we.audio;return we=we.video,!(me&&!K.includes(me.id)||we&&!ue.includes(we.id))})}function o2e(i,u,d){u=S(u);for(var v=u.next(),g={};!v.done;g={videoCodec:void 0},v=u.next())if(g.videoCodec=v.value,v=i.filter((function(k){return function(T){return T.video&&T.video.codecs.startsWith(k.videoCodec)}})(g)),v.length){i=v;break}for(d=S(d),u=d.next(),v={};!u.done;v={audioCodec:void 0},u=d.next())if(v.audioCodec=u.value,u=i.filter((function(k){return function(T){return T.audio&&T.audio.codecs.startsWith(k.audioCodec)}})(v)),u.length){i=u;break}return i}function s2e(i,u,d){i.variants=i.variants.filter(function(v){return yC(v,u,d)})}function yC(i,u,d){function v(P,D,B){return P>=D&&P<=B}var g=i.video;if(g&&g.width&&g.height){var k=g.width,T=g.height;if(T>k&&(T=S([T,k]),k=T.next().value,T=T.next().value),!v(k,u.minWidth,Math.min(u.maxWidth,d.width))||!v(T,u.minHeight,Math.min(u.maxHeight,d.height))||!v(g.width*g.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 a2e(i,u,d,v){return d=d===void 0?[]:d,v=v===void 0?{}:v,ie(function(g){return g.g==1?M(g,HG(i,u,u.offlineSessionIds.length>0,d,v),2):(d2e(u),M(g,f2e(u),0))})}function HG(i,u,d,v,g){var k,T;return ie(function(P){if(P.g==1)return Se().Ui()&&l2e(u.variants),M(P,R5(u.variants,d,!1,v),2);k=null,i&&(T=i.g)&&(k=T.keySystem),u.variants=u.variants.filter(function(D){var B=u2e(D,k,g);if(!B){var H=[];D.audio&&H.push(ZG(D.audio)),D.video&&H.push(ZG(D.video))}return B}),j(P)})}function l2e(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=S(i);for(var v=i.next();!v.done;v=i.next())v=v.value,v.video&&d.add(v.video);for(d=S(d),i=d.next();!i.done;i=d.next()){i=i.value,v=S(u);for(var g=v.next();!g.done;g=v.next()){var k=S(g.value);if(g=k.next().value,k=k.next().value,i.codecs.includes(g)){i.codecs=i.codecs.replace(g,k);break}}}}function u2e(i,u,d){if(!i.decodingInfos.some(function(D){return!(!D.supported||u&&(D=D.keySystemAccess)&&(d[D.keySystem]||D.keySystem)!=u)}))return!1;var v=Se(),g=v.Nb()==="Xbox";v=v.Ua()==="MOBILE"&&v.Ha()==="GECKO";var k=i.video,T=k&&k.width||0,P=k&&k.height||0;return g&&k&&(T>1920||P>1080)&&(k.codecs.includes("avc1.")||k.codecs.includes("avc3."))||(g=k&&k.dependencyStream)&&!eb(g)?!1:(i=i.audio,!(v&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function WG(i,u){var d,v,g,k,T,P,D;return ie(function(B){if(B.g==1){for(d=function(H,K){if(H){var Q=Qt(H);return Q.supported=H.supported&&K.supported,Q.powerEfficient=H.powerEfficient&&K.powerEfficient,Q.smooth=H.smooth&&K.smooth,K.keySystemAccess&&!Q.keySystemAccess&&(Q.keySystemAccess=K.keySystemAccess),Q}return K},v=null,g=[],k=S(u),T=k.next(),P={};!T.done;P={cache:void 0,Pe:void 0},T=k.next())D=T.value,P.Pe=Cn(D),P.cache=wC,P.cache.has(P.Pe)?v=d(v,P.cache.get(P.Pe)):g.push(c2e(D).then((function(H){return function(K){var Q=null;K=S(K||[]);for(var re=K.next();!re.done;re=K.next())Q=d(Q,re.value);Q&&(H.cache.set(H.Pe,Q),v=d(v,Q))}})(P)));return M(B,Promise.all(g),2)}v&&i.decodingInfos.push(v),j(B)})}function c2e(i){var u=[""];i.video&&(u=wa(i.video.contentType).split(","));var d=[""];i.audio&&(d=wa(i.audio.contentType).split(","));var v=[];u=S(u);for(var g=u.next();!g.done;g=u.next()){g=g.value;for(var k=S(d),T=k.next(),P={};!T.done;P={Qc:void 0},T=k.next())T=T.value,P.Qc=Ut(i),i.video&&(P.Qc.video.contentType=Bi(Ya(P.Qc.video.contentType),g)),i.audio&&(P.Qc.audio.contentType=Bi(Ya(P.Qc.audio.contentType),T)),v.push(new Promise((function(D){return function(B,H){(Se().Ua()=="MOBILE"?vC(5,navigator.mediaCapabilities.decodingInfo(D.Qc)):navigator.mediaCapabilities.decodingInfo(D.Qc)).then(function(K){B(K)}).catch(H)}})(P)))}return Promise.all(v).catch(function(){return JSON.stringify(i),null})}function R5(i,u,d,v){var g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me,Le,Ue,rt;return ie(function(Be){switch(Be.g){case 1:if(i.some(function(Ie){return Ie.decodingInfos.length}))return Be.return();g=S(v),k=g.next(),T={};case 2:if(k.done){Be.A(4);break}T.Ci=k.value,P=!1,D=S(i),B=D.next();case 5:if(B.done){Be.A(7);break}H=B.value,K=GG(H,u,d).filter((function(Ie){return function(Je){return Je=Je[0],(Je.keySystemConfiguration&&Je.keySystemConfiguration.keySystem)===Ie.Ci}})(T)),Q=S(K),re=Q.next();case 8:if(re.done){Be.A(10);break}return oe=re.value,M(Be,WG(H,oe),9);case 9:re=Q.next(),Be.A(8);break;case 10:H.decodingInfos.some(function(Ie){return Ie.supported})&&(P=!0),B=D.next(),Be.A(5);break;case 7:if(P)return Be.return();T={Ci:void 0},k=g.next(),Be.A(2);break;case 4:le=S(i),ue=le.next();case 12:if(ue.done){Be.A(0);break}we=ue.value,me=GG(we,u,d).filter(function(Ie){return Ie=Ie[0],Ie=Ie.keySystemConfiguration&&Ie.keySystemConfiguration.keySystem,!Ie||!v.includes(Ie)}),Le=S(me),Ue=Le.next();case 15:if(Ue.done){ue=le.next(),Be.A(12);break}return rt=Ue.value,M(Be,WG(we,rt),16);case 16:Ue=Le.next(),Be.A(15)}})}function GG(i,u,d){var v=i.audio,g=i.video,k=[],T=[];if(g)for(var P=S(g.fullMimeTypes),D=P.next();!D.done;D=P.next()){D=D.value;var B=wa(D);if(B.includes(",")&&!v){var H=B.split(","),K=Ya(D);B=rf("video",H),H=rf("audio",H),H=mb(H,K),K=P5(K,H,"audio"),T.push({contentType:K,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(B=KG(B),D={contentType:P5(Ya(D),B,"video"),width:g.width||64,height:g.height||64,bitrate:g.bandwidth||i.bandwidth||1,framerate:g.frameRate||30},g.hdr)switch(g.hdr){case"PQ":D.transferFunction="pq";break;case"HLG":D.transferFunction="hlg"}g.colorGamut&&(D.colorGamut=g.colorGamut),k.push(D)}if(v)for(P=S(v.fullMimeTypes),D=P.next();!D.done;D=P.next())B=D.value,D=Ya(B),B=mb(wa(B),D),D=P5(D,B,"audio"),T.push({contentType:D,channels:v.channelsCount||2,bitrate:v.bandwidth||i.bandwidth||1,samplerate:v.audioSamplingRate||1,spatialRendering:v.spatialAudio});for(P=[],k.length==0&&k.push(null),T.length==0&&T.push(null),k=S(k),D=k.next();!D.done;D=k.next())for(D=D.value,B=S(T),K=B.next();!K.done;K=B.next())K=K.value,H={type:d?"file":"media-source"},D&&(H.video=D),K&&(H.audio=K),P.push(H);if(T=(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]),!T.length)return[P];for(i=[],d=new Map,T=S(T),k=T.next();!k.done;k=T.next())k=k.value,d.get(k.keySystem)||d.set(k.keySystem,[]),d.get(k.keySystem).push(k);for(T=u?"required":"optional",u=u?["persistent-license"]:["temporary"],k=S(d.keys()),D=k.next();!D.done;D=k.next()){for(D=D.value,K=d.get(D),B=new Map,K=S(K),H=K.next();!H.done;H=K.next()){H=H.value;var Q=H.videoRobustness+","+H.audioRobustness;B.get(Q)||B.set(Q,[]),B.get(Q).push(H)}for(B=S(B.values()),K=B.next();!K.done;K=B.next()){K=K.value,H=[],Q=S(P);for(var re=Q.next();!re.done;re=Q.next()){re=Object.assign({},re.value);for(var oe={keySystem:D,initDataType:"cenc",persistentState:T,distinctiveIdentifier:"optional",sessionTypes:u},le=S(K),ue=le.next();!ue.done;ue=le.next()){if(ue=ue.value,ue.initData&&ue.initData.length){for(var we=new Set,me=S(ue.initData),Le=me.next();!Le.done;Le=me.next())we.add(Le.value.initDataType);oe.initDataType=ue.initData[0].initDataType}ue.distinctiveIdentifierRequired&&(oe.distinctiveIdentifier="required"),ue.persistentStateRequired&&(oe.persistentState="required"),ue.sessionType&&(oe.sessionTypes=[ue.sessionType]),v&&(oe.audio?(ue.encryptionScheme&&(oe.audio.encryptionScheme=oe.audio.encryptionScheme||ue.encryptionScheme),oe.audio.robustness=oe.audio.robustness||ue.audioRobustness):(oe.audio={robustness:ue.audioRobustness},ue.encryptionScheme&&(oe.audio.encryptionScheme=ue.encryptionScheme)),oe.audio.robustness==""&&delete oe.audio.robustness),g&&(oe.video?(ue.encryptionScheme&&(oe.video.encryptionScheme=oe.video.encryptionScheme||ue.encryptionScheme),oe.video.robustness=oe.video.robustness||ue.videoRobustness):(oe.video={robustness:ue.videoRobustness},ue.encryptionScheme&&(oe.video.encryptionScheme=ue.encryptionScheme)),oe.video.robustness==""&&delete oe.video.robustness)}re.keySystemConfiguration=oe,H.push(re)}i.push(H)}}return i}function mb(i,u){var d=Se();return i.toLowerCase()=="flac"?d.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?d.Ha()!="WEBKIT"?"opus":ub(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&d.oe()?"ec-3":i}function KG(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 d2e(i){i.textStreams=i.textStreams.filter(function(u){return u=Bi(u.mimeType,u.codecs),fb(u)})}function f2e(i){var u,d,v,g,k,T,P;return ie(function(D){switch(D.g){case 1:u=[],d=S(i.imageStreams),v=d.next();case 2:if(v.done){D.A(4);break}if(g=v.value,k=g.mimeType,k=="application/mp4"&&g.codecs=="mjpg"&&(k="image/jpg"),CC.has(k)){D.A(5);break}if(T=m2e.get(k),!T){CC.set(k,!1),D.A(5);break}return M(D,h2e(T),7);case 7:P=D.h,CC.set(k,P);case 5:CC.get(k)&&u.push(g),v=d.next(),D.A(2);break;case 4:i.imageStreams=u,j(D)}})}function h2e(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 Sv(i){var u=i.audio,d=i.video,v=u?u.mimeType:null,g=d?d.mimeType:null,k=u?u.codecs:null,T=d?d.codecs:null,P=u?u.groupId:null,D=[];d&&D.push(d.mimeType),u&&D.push(u.mimeType),D=D[0]||null;var B=[];u&&B.push(u.kind),d&&B.push(d.kind),B=B[0]||null;var H=new Set;if(u)for(var K=S(u.roles),Q=K.next();!Q.done;Q=K.next())H.add(Q.value);if(d)for(K=S(d.roles),Q=K.next();!Q.done;Q=K.next())H.add(Q.value);if(i={id:i.id,active:!1,type:"variant",bandwidth:i.bandwidth,language:i.language,label:null,videoLabel:null,kind:B,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:D,audioMimeType:v,videoMimeType:g,codecs:"",audioCodec:k,videoCodec:T,primary:i.primary,roles:Array.from(H),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=g,g=T.split(",");try{i.videoCodec=rf("video",g),i.audioCodec=rf("audio",g)}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,g=u.dependencyStream)&&(i.audioCodec=g.codecs||i.audioCodec,i.audioBandwidth&&g.bandwidth&&(i.audioBandwidth+=g.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 kv(i){return{id:i.id,active:!1,type:In,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=bc(i.segmentIndex));var g=i.tilesLayout;return v&&(g=v.tilesLayout||g),g&&u!=null&&(u/=Number(g.split("x")[0])),g&&d!=null&&(d/=Number(g.split("x")[1])),{id:i.id,type:"image",bandwidth:i.bandwidth||0,width:u,height:d,mimeType:i.mimeType,codecs:i.codecs||null,tilesLayout:g||null,originalImageId:i.originalId}}function bC(i){return i.__shaka_id||(i.__shaka_id=v2e++),i.__shaka_id}function qG(i){var u={id:bC(i),active:i.mode!="disabled",type:In,bandwidth:0,language:cr(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 SC(i,u){var d=i?i.language:null;if(d={id:bC(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:cr(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 gb(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function kC(i){return i.filter(function(u){return gb(u)})}function Fg(i,u,d,v){var g=i,k=i.filter(function(D){return D.primary});k.length&&(g=k);var T=g.length?g[0].language:"";if(g=g.filter(function(D){return D.language==T}),u){var P=gC(cr(u),i.map(function(D){return D.language}));P&&(g=i.filter(function(D){return cr(D.language)==P}))}if(g=g.filter(function(D){return D.forced==v}),d){if(i=YG(g,d),i.length)return i}else if(i=g.filter(function(D){return D.roles.length==0}),i.length)return i;return i=g.map(function(D){return D.roles}).reduce(r2e,[]),i.length?YG(g,i[0]):g}function YG(i,u){return i.filter(function(d){return d.roles.includes(u)})}function p2e(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function XG(i,u){u.length&&(u=u.filter(function(d){return ms(i.codecs)==ms(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 ZG(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 JG(i,u,d){if(d.autoShowText==0)return!1;if(d.autoShowText==1)return!0;var v=cr(d.preferredTextLanguage);return u=cr(u.language),d.autoShowText==2?Bg(u,v):d.autoShowText==3?i?(i=cr(i.language),Bg(u,v)&&!Bg(i,u)):!1:(We("Invalid autoShowText setting!"),!1)}function QG(i){var u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};i=S(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?Ya(d):"",codecs:d?wa(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(Bi(v.mimeType,v.codecs)),d.startsWith("audio/")?(v.type="audio",u.audio=v):u.video=v}return u}Ve("shaka.util.StreamUtils",zG),zG.meetsRestrictions=yC;var wC=new Map,v2e=0,CC=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),m2e=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function fi(){var i=this;this.H=null,this.B=!1,this.u=new Te,this.j=new Pe,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Te,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 Rn(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=fi.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,g=this.m.clientHeight,k=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(g=this.i.height,k=this.i.width),u=Math.min(u,g*v),d=Math.min(d,k*v)}if(g=this.o.filter(function(B){return B&&!(B.audio&&B.audio.fastSwitching||B.video&&B.video.fastSwitching)}),g.length||(g=this.o),v=g,i&&g.length!=this.o.length&&(v=this.o.filter(function(B){return B&&!!(B.audio&&B.audio.fastSwitching||B.video&&B.video.fastSwitching)})),i=O5(this,this.g.restrictions,v,1/0,1/0),u!=1/0||d!=1/0){for(i=g2e(i),i=S(i),g=i.next();!g.done;g=i.next())if(g=g.value,g.height>=u&&g.width>=d){u=g.height,d=g.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=k&&u<=T&&(d.bandwidth!=g.bandwidth||d.bandwidth==g.bandwidth&&d.video&&g.video&&(d.video.width=this.g.cacheLoadThreshold&&this.u.sample(g,u),d&&this.C!=null&&this.B&&eK(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),eK(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 Nt(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){d.l.ia(y2e)}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 eK(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 Ye(2,7,1010);return u=i.g,i.g++,u==0?v.return():(d=i.h*(1+(Math.random()*2-1)*i.o),M(v,new Promise(function(g){new Rn(g).ia(d/1e3)}),2))}i.h*=i.m,j(v)})}function Du(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function Cr(){var i,u,d=new Promise(function(v,g){i=v,u=g});return d.resolve=i,d.reject=u,d}Cr.prototype.resolve=function(){},Cr.prototype.reject=function(){};function Fi(i,u){this.promise=i,this.i=u,this.g=null}function Dh(i){return new Fi(Promise.reject(i),function(){return Promise.resolve()})}function B5(){var i=Promise.reject(new Ye(2,7,7001));return i.catch(function(){}),new Fi(i,function(){return Promise.resolve()})}function Vg(i){return new Fi(Promise.resolve(i),function(){return Promise.resolve()})}function oK(i){return new Fi(i,function(){return i.catch(function(){})})}Fi.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function sK(i){return new Fi(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}Fi.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},Fi.prototype.Xa=function(i,u){function d(P){return function(D){if(g.g&&P)k.reject(T);else{var B=P?i:u;B?v=b2e(B,D,k):(P?k.resolve:k.reject)(D)}}}function v(){return k.reject(T),g.abort()}var g=this,k=new Cr;k.catch(function(){});var T=new Ye(2,7,7001);return this.promise.then(d(!0),d(!1)),new Fi(k,function(){return v()})};function b2e(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(g){return d.reject(g),function(){return Promise.resolve()}}}p.Object.defineProperties(Fi.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),Ve("shaka.util.AbortableOperation",Fi),Fi.prototype.chain=Fi.prototype.Xa,Fi.prototype.finally=Fi.prototype.finally,Fi.all=sK,Fi.prototype.abort=Fi.prototype.abort,Fi.notAbortable=oK,Fi.completed=Vg,Fi.aborted=B5,Fi.failed=Dh;function Xt(i,u){if(u)if(u instanceof Map)for(var d=S(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 aK(i){var u=new Xt(i.type),d;for(d in i)Object.defineProperty(u,d,{value:i[d],writable:!0,enumerable:!0});return u}Xt.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Xt.prototype.stopImmediatePropagation=function(){this.g=!0},Xt.prototype.stopPropagation=function(){},Ve("shaka.util.FakeEvent",Xt);var EC={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 dr(){this.ab=new lt,this.Fe=this}dr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},dr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},dr.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=S(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},dr.prototype.release=function(){this.ab=null};function zg(){this.g=[]}function wv(i,u){i.g.push(u.finally(function(){vt(i.g,u)}))}zg.prototype.destroy=function(){for(var i=[],u=S(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 Jr(i,u,d,v,g,k,T){dr.call(this),this.i=null,this.j=!1,this.u=new zg,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=g||null,this.H=k||null,this.G=T||null,this.l=new Map}_(Jr,dr),l=Jr.prototype,l.configure=function(i){this.i=i};function pf(i,u,d,v){v=v===void 0?!1:v,d=d||fK;var g=AC.get(i);(!g||d>=g.priority)&&AC.set(i,{priority:d,yf:u,Fk:v})}function lK(i,u){for(var d=S(i.g),v=d.next();!v.done;v=d.next())u.g.add(v.value);for(i=S(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 ro(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(),dr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,d){var v=this,g=new dK;if(this.j){var k=Promise.reject(new Ye(2,7,7001));return k.catch(function(){}),new IC(k,function(){return Promise.resolve()},g)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?Ut(u.retryParameters):Du(),u.uris=Ut(u.uris),k=S2e(this,i,u,d);var T=k.Xa(function(){return uK(v,i,u,d,new rK(u.retryParameters,!1),0,null,g)}),P=T.Xa(function(Q){return k2e(v,i,Q,d)}),D=Date.now(),B=0;k.promise.then(function(){B=Date.now()-D},function(){});var H=0;T.promise.then(function(){H=Date.now()},function(){});var K=P.Xa(function(Q){var re=Date.now()-H,oe=Q.response;return oe.timeMs+=B,oe.timeMs+=re,Q.fk||!v.o||oe.fromCache||u.method=="HEAD"||i!=nu||v.o(oe.timeMs,oe.data.byteLength,cK(d),u,d),v.G&&v.G(i,oe,d),oe},function(Q){throw Q&&(Q.severity=2),Q});return k=new IC(K.promise,function(){return K.abort()},g),wv(this.u,k),k};function S2e(i,u,d,v){function g(P){k=k.Xa(function(){return d.body&&(d.body=Hs(d.body)),P(u,d,v)})}var k=Vg(void 0);i.F&&g(i.F),i=S(i.g);for(var T=i.next();!T.done;T=i.next())g(T.value);return k.Xa(void 0,function(P){throw P instanceof Ye&&P.code==7001?P:new Ye(2,1,1006,P)})}function uK(i,u,d,v,g,k,T,P){i.i.forceHTTP&&(d.uris[k]=d.uris[k].replace("https://","http://")),i.i.forceHTTPS&&(d.uris[k]=d.uris[k].replace("http://","https://")),k>0&&i.H&&i.H(u,v,d.uris[k],d.uris[k-1]);var D=new Ar(d.uris[k]),B=D.bc,H=!1;B||(B=location.protocol,B=B.slice(0,-1),Jo(D,B),d.uris[k]=D.toString()),B=B.toLowerCase();var K=(B=AC.get(B))?B.yf:null;if(!K)return Dh(new Ye(2,1,1e3,D));var Q=B.Fk;(D=i.l.get(D.Db))&&(d.headers["common-access-token"]=D);var re=null,oe=null,le=!1,ue=!1,we;return oK(iK(g)).Xa(function(){if(i.j)return B5();we=Date.now();var me=0;d.requestStartTime=Date.now();var Le=K(d.uris[k],d,u,function(Be,Ie,Je){re&&re.stop(),oe&&oe.ia(rt/1e3),i.o&&u==nu&&(me++,d.packetNumber=me,i.o(Be,Ie,cK(v),d,v),H=!0,P.g=Je)},function(Be){ue=!0,d.timeToFirstByte=Date.now()-d.requestStartTime,i.m&&i.m(Be,d,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!Q)return Le;var Ue=d.retryParameters.connectionTimeout;Ue&&(re=new Rn(function(){le=!0,Le.abort()}),re.ia(Ue/1e3));var rt=d.retryParameters.stallTimeout;return rt&&(oe=new Rn(function(){le=!0,Le.abort()})),Le}).Xa(function(me){re&&re.stop(),oe&&oe.stop(),me.timeMs==null&&(me.timeMs=Date.now()-we);var Le=me.headers["common-access-token"];if(Le){var Ue=new Ar(me.uri);i.l.set(Ue.Db,Le)}return Le={response:me,fk:H},!ue&&i.m&&i.m(me.headers,d,u),i.B&&i.B(d,me),Le},function(me){if(re&&re.stop(),oe&&oe.stop(),i.C){var Le=null,Ue=0;me instanceof Ye&&(Le=me,me.code==1001&&(Ue=me.data[1])),i.C(d,Le,Ue,le)}if(i.j)return B5();if(le&&(me=new Ye(1,1,1003,d.uris[k],u)),me instanceof Ye){if(me.code==7001)throw me;if(me.code==1010)throw T;if(me.severity==1){if(Le=new Map().set("error",me),Le=new Xt("retry",Le),Le.cancelable=!0,i.dispatchEvent(Le),Le.defaultPrevented)throw me;return k=(k+1)%d.uris.length,uK(i,u,d,v,g,k,me,P)}}throw me})}function k2e(i,u,d,v){var g=Vg(void 0);i=S(i.h);for(var k=i.next(),T={};!k.done;T={Ji:void 0},k=i.next())T.Ji=k.value,g=g.Xa((function(P){return function(){var D=d.response;return D.data&&(D.data=Hs(D.data)),(0,P.Ji)(u,D,v)}})(T));return g.Xa(function(){return d},function(P){var D=2;if(P instanceof Ye){if(P.code==7001)throw P;D=P.severity}throw new Ye(D,1,1007,P)})}function cK(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}Ve("shaka.net.NetworkingEngine",Jr),Jr.prototype.request=Jr.prototype.request,Jr.prototype.destroy=Jr.prototype.destroy,Jr.makeRequest=ro,Jr.defaultRetryParameters=function(){return Du()},Jr.prototype.clearCommonAccessTokenMap=Jr.prototype.Qh,Jr.prototype.clearAllResponseFilters=Jr.prototype.pj,Jr.prototype.unregisterResponseFilter=Jr.prototype.il,Jr.prototype.registerResponseFilter=Jr.prototype.Jk,Jr.prototype.clearAllRequestFilters=Jr.prototype.oj,Jr.prototype.unregisterRequestFilter=Jr.prototype.hl,Jr.prototype.registerRequestFilter=Jr.prototype.Ik,Jr.unregisterScheme=function(i){AC.delete(i)},Jr.registerScheme=pf,Jr.prototype.configure=Jr.prototype.configure;function dK(){this.g=0}Jr.NumBytesRemainingClass=dK;function IC(i,u,d){Fi.call(this,i,u),this.h=d}_(IC,Fi),Jr.PendingRequest=IC;var nu=1;Jr.RequestType={MANIFEST:0,SEGMENT:nu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Jr.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 fK=3;Jr.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:fK};var AC=new Map;function Ug(i){this.g=!1,this.h=new Cr,this.i=i}Ug.prototype.destroy=function(){var i=this;return this.g?this.h:(this.g=!0,this.i().then(function(){i.h.resolve()},function(){i.h.resolve()}))};function jr(i,u){if(i.g)throw u instanceof Ye&&u.code==7003?u:new Ye(2,7,7003,u)}function F5(i,u){var d=[];i=S(i);for(var v=i.next();!v.done;v=i.next())d.push(u(v.value));return d}function w2e(i,u){i=S(i);for(var d=i.next();!d.done;d=i.next())if(!u(d.value))return!1;return!0}function Hg(i){for(var u=new Map,d=S(Object.keys(i)),v=d.next();!v.done;v=d.next())v=v.value,u.set(v,i[v]);return u}function j5(i){var u={};return i.forEach(function(d,v){u[v]=d}),u}function qr(i,u){this.h=yo(i),this.i=u==hK,this.g=0}l=qr.prototype,l.Ia=function(){return this.g2097151)throw new Ye(2,3,3001);return this.g+=8,u*4294967296+i},l.Tb=function(i,u){if(this.g+i>this.h.byteLength)throw vf();var d=ln(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 vf();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw vf();this.g=i},l.Yc=function(){for(var i=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return i=ln(this.h,i,this.g-i),this.g+=1,zt(i)};function vf(){return new Ye(2,3,3e3)}Ve("shaka.util.DataViewReader",qr),qr.prototype.readTerminatedString=qr.prototype.Yc,qr.prototype.seek=qr.prototype.seek,qr.prototype.rewind=qr.prototype.Ki,qr.prototype.skip=qr.prototype.skip,qr.prototype.readBytes=qr.prototype.Tb,qr.prototype.readUint64=qr.prototype.Dd,qr.prototype.readInt32=qr.prototype.Zg,qr.prototype.readUint32=qr.prototype.U,qr.prototype.readUint16=qr.prototype.Ca,qr.prototype.readUint8=qr.prototype.Y,qr.prototype.getLength=qr.prototype.getLength,qr.prototype.getPosition=qr.prototype.Oa,qr.prototype.hasMoreData=qr.prototype.Ia;var hK=1;qr.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:hK};function xr(){this.i=new Map,this.h=new Map,this.g=!1}l=xr.prototype,l.box=function(i,u){return i=pK(i),this.i.set(i,C2e),this.h.set(i,u),this},l.S=function(i,u){return i=pK(i),this.i.set(i,vK),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,d){for(i=new qr(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,d)},l.zd=function(i,u,d,v){var g=u.Oa();if(v&&g+8>u.getLength())this.g=!0;else{var k=u.U(),T=u.U(),P=PC(T),D=!1;switch(k){case 0:k=u.getLength()-g;break;case 1:if(v&&u.Oa()+8>u.getLength()){this.g=!0;return}k=u.Dd(),D=!0}var B=this.h.get(T);if(B){var H=null,K=null;if(this.i.get(T)==vK){if(v&&u.Oa()+4>u.getLength()){this.g=!0;return}K=u.U(),H=K>>>24,K&=16777215}T=g+k,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 qr(u,0),B({name:P,parser:this,partialOkay:d||!1,stopOnPartial:v||!1,version:H,flags:K,reader:u,size:k,start:g+i,has64BitSize:D}))}else u.skip(Math.min(g+k-u.Oa(),u.getLength()-u.Oa()))}};function An(i){for(var u=Oh(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function mf(i){for(var u=Oh(i),d=i.reader.U(),v=0;v>24&255,i>>16&255,i>>8&255,i&255)}function Oh(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}Ve("shaka.util.Mp4Parser",xr),xr.headerSize=Oh,xr.typeToString=PC,xr.allData=Wg,xr.audioSampleEntry=LC,xr.visualSampleEntry=Xa,xr.sampleDescription=mf,xr.children=An,xr.prototype.parseNext=xr.prototype.zd,xr.prototype.parse=xr.prototype.parse,xr.prototype.stop=xr.prototype.stop,xr.prototype.fullBox=xr.prototype.S,xr.prototype.box=xr.prototype.box;var C2e=0,vK=1;function V5(i){var u=this;this.g=[],this.h=[],this.data=[],new xr().box("moov",An).box("moof",An).S("pssh",function(d){if(!(d.version>1)){var v=ln(d.reader.h,-12,d.size);if(u.data.push(v),v=d.reader.Tb(16,!1),u.g.push(Ai(v)),d.version>0){v=d.reader.U();for(var g=0;g0&&(k+=4+16*d.size);var T=new Uint8Array(k),P=yo(T),D=0;if(P.setUint32(D,k),D+=4,P.setUint32(D,1886614376),D+=4,v<1?P.setUint32(D,0):P.setUint32(D,16777216),D+=4,T.set(u,D),D+=u.length,v>0)for(P.setUint32(D,d.size),D+=4,u=S(d),d=u.next();!d.done;d=u.next())d=nf(d.value),T.set(d,D),D+=d.length;return P.setUint32(D,g),T.set(i,D+4),T}function MC(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 Pe,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new Cr,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 Rn(function(){return R2e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new Rn(function(){O2e(u)}),this.m.catch(function(){}),this.l=new Ug(function(){return x2e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=MC.prototype,l.destroy=function(){return this.l.destroy()};function x2e(i){return ie(function(u){switch(u.g){case 1:return i.o.release(),i.o=null,i.m.reject(),i.G.stop(),i.G=null,i.M.stop(),i.M=null,M(u,bb(i),2);case 2:if(!i.j){u.A(3);break}return V(u,4),M(u,i.j.setMediaKeys(null),6);case 6:U(u,5);break;case 4:X(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,j(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 _2e(i,u,d){return i.qa=!0,i.C=new Map,i.R=d,gK(i,u,!1)}function mK(i,u,d,v){v=v===void 0?!0:v,i.C=new Map,d=S(d);for(var g=d.next();!g.done;g=d.next())i.C.set(g.value,{initData:null,initDataType:null});for(d=S(i.h.persistentSessionsMetadata),g=d.next();!g.done;g=d.next())g=g.value,i.C.set(g.sessionId,{initData:g.initData,initDataType:g.initDataType});return i.R=i.C.size>0,gK(i,u,v)}function T2e(i,u,d,v,g,k){var T,P,D,B,H;return ie(function(K){return K.g==1?(T=[],k.length&&T.push(k[0].contentType),g.length&&T.push(g[0].contentType),P=function(Q){return Q=rd(u,Q,null),Q.licenseServerUri=d,Q.serverCertificate=v,Q.persistentStateRequired=!0,Q.sessionType="persistent-license",Q},D=QG(T),D.video&&(B=P(k[0].encryptionScheme||""),D.video.drmInfos.push(B)),D.audio&&(H=P(g[0].encryptionScheme||""),D.audio.drmInfos.push(H)),M(K,R5([D],!0,i.O,[]),2)):(jr(i.l),K.return(kK(i,[D])))})}function gK(i,u,d){var v,g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me,Le,Ue;return ie(function(rt){if(rt.g==1){for(EK(i.h.clearKeys,u),v=u.some(function(Be){return!!(Be.video&&Be.video.drmInfos.length||Be.audio&&Be.audio.drmInfos.length)}),g=Hg(i.h.servers),k=Hg(i.h.advanced||{}),!v&&d&&B2e(u,g),T=new WeakSet,P=S(u),D=P.next();!D.done;D=P.next())for(B=D.value,H=TK(B),K=S(H),Q=K.next();!Q.done;Q=K.next())re=Q.value,T.has(re)||(T.add(re),j2e(re,g,k,i.h.keySystemsMapping));for(oe=function(Be,Ie){var Je=[];Be=S(Be);for(var nt=Be.next();!nt.done;nt=Be.next()){nt=nt.value;var tt=nt[Ie]||k.has(nt.keySystem)&&k.get(nt.keySystem)[Ie]||"",ot;if((ot=tt=="")&&(ot=(ot=nt.keySystem)?!!ot.match(/^com\.widevine\.alpha/):!1),ot&&(Ie=="audioRobustness"?tt=[i.h.defaultAudioRobustnessForWidevine]:Ie=="videoRobustness"&&(tt=[i.h.defaultVideoRobustnessForWidevine])),typeof tt=="string")Je.push(nt);else if(Array.isArray(tt))for(tt.length===0&&(tt=[""]),tt=S(tt),ot=tt.next();!ot.done;ot=tt.next()){var at={};Je.push(Object.assign({},nt,(at[Ie]=ot.value,at)))}}return Je},le=new WeakSet,ue=S(u),we=ue.next();!we.done;we=ue.next())me=we.value,me.video&&!le.has(me.video)&&(me.video.drmInfos=oe(me.video.drmInfos,"videoRobustness"),me.video.drmInfos=oe(me.video.drmInfos,"audioRobustness"),le.add(me.video)),me.audio&&!le.has(me.audio)&&(me.audio.drmInfos=oe(me.audio.drmInfos,"videoRobustness"),me.audio.drmInfos=oe(me.audio.drmInfos,"audioRobustness"),le.add(me.audio));return M(rt,R5(u,i.R,i.O,i.h.preferredKeySystems),2)}return jr(i.l),Le=v||g.size>0,Le?(Ue=kK(i,u),rt.return(v?Ue:Ue.catch(function(){}))):(i.T=!0,rt.return(Promise.resolve()))})}function yK(i){var u;return ie(function(d){switch(d.g){case 1:if(i.j.mediaKeys)return d.return();if(!i.I){d.A(2);break}return M(d,i.I,3);case 3:return jr(i.l),d.return();case 2:return V(d,4),i.I=i.j.setMediaKeys(i.B),M(d,i.I,6);case 6:U(d,5);break;case 4:u=X(d),i.u(new Ye(2,6,6003,u.message));case 5:jr(i.l),j(d)}})}function E2e(i,u){return ie(function(d){if(d.g==1)return M(d,yK(i),2);yb(i,u.initDataType,ln(u.initData)),j(d)})}l.fc=function(i){var u=this,d,v;return ie(function(g){if(g.g==1)return u.j===i?g.return():u.B?(u.j=i,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var k=S(u.N),T=k.next();!T.done;T=k.next())U5(u,T.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return bb(u)}),u.o.D(u.j.remote,"connecting",function(){return bb(u)}),u.o.D(u.j.remote,"disconnect",function(){return bb(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return bb(u)}),u.H=u.g&&u.g.initData.find(function(k){return k.initData.length>0})||null,d=u.g.keySystem,(v=Se().Rg(d))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?g.A(2):M(g,yK(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new Ye(2,6,6010))}),g.return());bK(u).catch(function(){}),!v&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(k){return E2e(u,k)}),j(g)})};function I2e(i){var u,d,v,g,k;return ie(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=ro([i.g.serverCertificateUri],i.h.retryParameters),V(T,3),d=i.F.tc.request(5,u,{isPreload:i.V()}),M(T,d.promise,5);case 5:v=T.h,i.g.serverCertificate=ln(v.data),U(T,4);break;case 3:throw g=X(T),new Ye(2,6,6017,g);case 4:if(i.l.g)return T.return();case 2:return!i.g.serverCertificate||!i.g.serverCertificate.length?T.return():(V(T,6),M(T,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:U(T,0);break;case 6:throw k=X(T),new Ye(2,6,6004,k.message)}})}function A2e(i,u){var d,v,g;return ie(function(k){if(k.g==1)return M(k,CK(i,u,{initData:null,initDataType:null}),2);if(k.g!=3)return d=k.h,d?(v=[],(g=i.i.get(d))&&(g.Kb=new Cr,v.push(g.Kb)),v.push(d.remove()),M(k,Promise.all(v),3)):k.return();i.i.delete(d),j(k)})}function bK(i){var u,d,v,g,k;return ie(function(T){if(T.g==1)return i.C.size?(i.C.forEach(function(P,D){CK(i,D,P)}),M(T,i.m,3)):T.A(2);if(T.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&N2e(i))return T.return(i.m);i.K=!1,i.m=new Cr,i.m.catch(function(){})}for(d=(i.g?i.g.initData:[])||[],v=S(d),g=v.next();!g.done;g=v.next())k=g.value,yb(i,k.initDataType,k.initData);return Sb(i)&&i.m.resolve(),T.return(i.m)})}function yb(i,u,d){if(d.length){if(i.h.ignoreDuplicateInitData){var v=i.i.values();v=S(v);for(var g=v.next();!g.done;g=v.next())if(bl(d,g.value.initData))return;var k=!1;if(i.C.forEach(function(T){!k&&bl(d,T.initData)&&(k=!0)}),k)return}i.K=!0,i.i.size>0&&Sb(i)&&(i.m.resolve(),i.K=!1,i.m=new Cr,i.m.catch(function(){})),$2e(i,u,d,i.g.sessionType)}}function SK(i){return i=i.i.keys(),i=F5(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=F5(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=S(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 L2e(i){return i.J?i.J:NaN}l.Xe=function(){return j5(this.ma)};function kK(i,u){var d,v,g,k,T,P,D;return ie(function(B){switch(B.g){case 1:if(d=new Map,v=P2e(i,u,d),!v)throw navigator.requestMediaKeySystemAccess?new Ye(2,6,6001):new Ye(2,6,6020);jr(i.l),V(B,2),v.getConfiguration();var H=g=i.h.keySystemsMapping[v.keySystem]||v.keySystem,K=d.get(g),Q=[],re=[],oe=[],le=[],ue=[],we=new Set,me=new Set;F2e(K,Q,re,le,oe,ue,we,me);var Le=i.R?"persistent-license":"temporary";for(H={keySystem:H,encryptionScheme:Q[0],licenseServerUri:re[0],distinctiveIdentifierRequired:K[0].distinctiveIdentifierRequired,persistentStateRequired:K[0].persistentStateRequired,sessionType:K[0].sessionType||Le,audioRobustness:K[0].audioRobustness||"",videoRobustness:K[0].videoRobustness||"",serverCertificate:le[0],serverCertificateUri:oe[0],initData:ue,keyIds:we},me.size>0&&(H.keySystemUris=me),K=S(K),me=K.next();!me.done;me=K.next())me=me.value,me.distinctiveIdentifierRequired&&(H.distinctiveIdentifierRequired=me.distinctiveIdentifierRequired),me.persistentStateRequired&&(H.persistentStateRequired=me.persistentStateRequired);if(i.g=H,!i.g.licenseServerUri)throw new Ye(2,6,6012,i.g.keySystem);return M(B,v.createMediaKeys(),4);case 4:if(k=B.h,jr(i.l),i.B=k,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){B.A(5);break}return V(B,6),M(B,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(T=B.h,T!="usable")throw new Ye(2,6,6018);jr(i.l),U(B,5,2);break;case 6:throw P=X(B,2),P instanceof Ye?P:new Ye(2,6,6019,P.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),M(B,I2e(i),9);case 9:jr(i.l),U(B,0);break;case 2:throw D=X(B),jr(i.l,D),i.g=null,D instanceof Ye?D:new Ye(2,6,6002,D.message)}})}function P2e(i,u,d){for(var v=S(u),g=v.next();!g.done;g=v.next()){g=S(TK(g.value));for(var k=g.next();!k.done;k=g.next())k=k.value,d.has(k.keySystem)||d.set(k.keySystem,[]),d.get(k.keySystem).push(k)}if(d.size==1&&d.has(""))throw new Ye(2,6,6e3);v=i.h.preferredKeySystems,v.length||(g=Hg(i.h.servers),g.size==1&&(v=Array.from(g.keys()))),g=S(v);var T=g.next();for(k={};!T.done;k={Di:void 0},T=g.next()){k.Di=T.value,T=S(u);for(var P=T.next();!P.done;P=T.next())if(P=P.value.decodingInfos.find((function(K){return function(Q){return Q.supported&&Q.keySystemAccess!=null&&Q.keySystemAccess.keySystem==K.Di}})(k)))return P.keySystemAccess}for(g=S([!0,!1]),k=g.next();!k.done;k=g.next())for(k=k.value,T=S(u),P=T.next();!P.done;P=T.next()){P=S(P.value.decodingInfos);for(var D=P.next();!D.done;D=P.next())if(D=D.value,D.supported&&D.keySystemAccess){var B=D.keySystemAccess.keySystem;if(!v.includes(B)){var H=d.get(B);for(!H&&i.h.keySystemsMapping[B]&&(H=d.get(i.h.keySystemsMapping[B])),B=S(H),H=B.next();!H.done;H=B.next())if(!!H.value.licenseServerUri==k)return D.keySystemAccess}}}return null}function z5(i){Sb(i)&&i.m.resolve()}function wK(i,u){new Rn(function(){u.loaded=!0,z5(i)}).ia(z2e)}function CK(i,u,d){var v,g,k,T,P,D,B;return ie(function(H){switch(H.g){case 1:try{v=i.B.createSession("persistent-license")}catch(K){return g=new Ye(2,6,6005,K.message),i.u(g),H.return(Promise.reject(g))}return i.o.D(v,"message",function(K){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(K):U5(i,K)}),i.o.D(v,"keystatuseschange",function(K){return xK(i,K)}),k={initData:d.initData,initDataType:d.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(v,k),V(H,2),M(H,v.load(u),4);case 4:return T=H.h,jr(i.l),T||(i.i.delete(v),P=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ye(P,6,6013)),k.loaded=!0),wK(i,k),z5(i),H.return(v);case 2:D=X(H),jr(i.l,D),i.i.delete(v),B=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ye(B,6,6005,D.message)),k.loaded=!0,z5(i);case 3:return H.return(Promise.resolve())}})}function $2e(i,u,d,v){try{var g=i.B.createSession(v)}catch(k){i.u(new Ye(2,6,6005,k.message));return}i.o.D(g,"message",function(k){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(k):U5(i,k)}),i.o.D(g,"keystatuseschange",function(k){return xK(i,k)}),i.i.set(g,{initData:d,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:v});try{d=i.h.initDataTransform(d,u,i.g)}catch(k){u=k,k instanceof Ye||(u=new Ye(2,6,6016,k)),i.u(u);return}i.h.logLicenseExchange&&$u(d),g.generateRequest(u,d).catch(function(k){if(!i.l.g){i.i.delete(g);var T=k.errorCode;if(T&&T.systemCode){var P=T.systemCode;P<0&&(P+=4294967296),P="0x"+P.toString(16)}i.u(new Ye(2,6,6006,k.message,k,P))}})}function M2e(i){return ie(function(u){return u.g==1?i.K?M(u,i.m,3):u.A(0):M(u,Promise.all(i.X.map(function(d){return d.promise})),0)})}function U5(i,u){var d,v,g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we;ie(function(me){switch(me.g){case 1:if(d=u.target,i.h.logLicenseExchange&&$u(u.message),v=i.i.get(d),g=i.g.licenseServerUri,k=i.h.advanced[i.g.keySystem],u.messageType=="individualization-request"&&k&&k.individualizationServer&&(g=k.individualizationServer),T=ro([g],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),k&&k.headers)for(P in k.headers)T.headers[P]=k.headers[P];if(i.g.keySystem==="org.w3.clearkey"){var Le=T,Ue=i.g;try{var rt=Zr(Le.body);if(rt){var Be=JSON.parse(rt);Be.type||(Be.type=Ue.sessionType,Le.body=ci(JSON.stringify(Be)))}}catch{}}if(N5(i.g.keySystem))if(Le=Gr(T.body,!0,!0),Le.includes("PlayReadyKeyMessage")){for(Le=wr(Le,"PlayReadyKeyMessage"),Ue=Ws(Le,"HttpHeader"),Ue=S(Ue),rt=Ue.next();!rt.done;rt=Ue.next())Be=rt.value,rt=Ws(Be,"name")[0],Be=Ws(Be,"value")[0],T.headers[Bn(rt)]=Bn(Be);Le=Ws(Le,"Challenge")[0],T.body=Sa(Bn(Le))}else T.headers["Content-Type"]="text/xml; charset=utf-8";return D=Date.now(),V(me,2),H=i.F.tc.request(2,T,{isPreload:i.V()}),i.X.push(H),M(me,H.promise,4);case 4:B=me.h,vt(i.X,H),U(me,3);break;case 2:return K=X(me),i.l.g||(Q={sessionId:d.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType},re=new Ye(2,6,6007,K,Q),i.i.size==1?(i.u(re),v&&v.Kb&&v.Kb.reject(re)):(v&&v.Kb&&v.Kb.reject(re),i.i.delete(d),Sb(i)&&(i.m.resolve(),i.M.ia(.1)))),me.return();case 3:return i.l.g?me.return():(i.J+=(Date.now()-D)/1e3,i.h.logLicenseExchange&&$u(B.data),V(me,5),M(me,d.update(B.data),7));case 7:U(me,6);break;case 5:return le=(oe=X(me))&&oe.message||String(oe),ue=new Ye(2,6,6008,le),i.u(ue),v&&v.Kb&&v.Kb.reject(ue),me.return();case 6:if(i.l.g)return me.return();we=new Xt("drmsessionupdate"),i.F.onEvent(we),v&&(v.Kb&&v.Kb.resolve(),wK(i,v)),j(me)}})}function xK(i,u){u=u.target;var d=i.i.get(u),v=!1;u.keyStatuses.forEach(function(k,T){if(typeof T=="string"){var P=T;T=k,k=P}if(P=Se(),N5(i.g.keySystem)&&T.byteLength==16&&P.gh()){P=yo(T);var D=P.getUint32(0,!0),B=P.getUint16(4,!0),H=P.getUint16(6,!0);P.setUint32(0,D,!1),P.setUint16(4,B,!1),P.setUint16(6,H,!1)}k!="status-pending"&&(d.loaded=!0),k=="expired"&&(v=!0),T=Ai(T).slice(0,32),i.aa.set(T,k)});var g=u.expiration-Date.now();(g<0||v&&g<1e3)&&d&&!d.Kb&&(i.i.delete(u),_K(u)),Sb(i)&&(i.m.resolve(),i.M.ia(U2e))}function R2e(i){var u=i.aa,d=i.ma;d.clear(),u.forEach(function(v,g){return d.set(g,v)}),u=Array.from(d.values()),u.length&&u.every(function(v){return v=="expired"})&&i.u(new Ye(2,6,6014)),i.F.vf(j5(d))}function D2e(){var i,u,d,v,g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me,Le,Ue,rt,Be,Ie,Je,nt,tt,ot,at,kt,wt,ft;return ie(function(mt){if(mt.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=S(i),v=d.next();!v.done;v=d.next())g=v.value,u[g]=null;return mt.return(u)}for(k="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"],D={"com.widevine.alpha":T,"com.widevine.alpha.experiment":T,"com.microsoft.playready.recommendation":P},B=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],H=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],K={videoCapabilities:B,audioCapabilities:H,initDataTypes:["cenc","sinf","skd","keyids"]},Q=[null,"cenc","cbcs"],re=new Map,oe=Se(),le=function(It,jt,xn){var Jt,Kn,On,hr,Fn,dn,Or,Zn,qn,$n,ni,ei,gi;return ie(function(br){switch(br.g){case 1:return V(br,2),M(br,jt.createMediaKeys(),5);case 5:Jt=br.h;case 4:U(br,3);break;case 2:return X(br),br.return();case 3:if(On=(Kn=jt.getConfiguration().sessionTypes)?Kn.includes("persistent-license"):!1,oe.ti()&&(On=!1),hr=jt.getConfiguration().videoCapabilities,Fn=jt.getConfiguration().audioCapabilities,dn={persistentState:On,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},re.get(It)?dn=re.get(It):re.set(It,dn),(Or=hr[0].encryptionScheme)&&!dn.encryptionSchemes.includes(Or)&&dn.encryptionSchemes.push(Or),(Zn=hr[0].robustness)&&!dn.videoRobustnessLevels.includes(Zn)&&dn.videoRobustnessLevels.push(Zn),(qn=Fn[0].robustness)&&!dn.audioRobustnessLevels.includes(qn)&&dn.audioRobustnessLevels.push(qn),!(xn&&"getStatusForPolicy"in Jt)){br.A(0);break}$n=S(k),ni=$n.next();case 7:if(ni.done){br.A(0);break}if(ei=ni.value,dn.minHdcpVersions.includes(ei)){br.A(8);break}return M(br,Jt.getStatusForPolicy({minHdcpVersion:ei}),10);case 10:if(gi=br.h,gi=="usable")dn.minHdcpVersions.includes(ei)||dn.minHdcpVersions.push(ei);else{br.A(0);break}case 8:ni=$n.next(),br.A(7)}})},ue=function(It,jt,xn,Jt,Kn){Kn=Kn===void 0?!1:Kn;var On,hr,Fn,dn,Or,Zn,qn,$n,ni,ei,gi;return ie(function(br){switch(br.g){case 1:for(V(br,2),On=Ut(K),hr=S(On.videoCapabilities),Fn=hr.next();!Fn.done;Fn=hr.next())dn=Fn.value,dn.encryptionScheme=jt,dn.robustness=xn;for(Or=S(On.audioCapabilities),Zn=Or.next();!Zn.done;Zn=Or.next())qn=Zn.value,qn.encryptionScheme=jt,qn.robustness=Jt;return $n=Ut(On),$n.persistentState="required",$n.sessionTypes=["persistent-license"],ni=[$n,On],gi=Se(),gi.Ua()=="MOBILE"?M(br,vC(5,navigator.requestMediaKeySystemAccess(It,ni)),7):M(br,navigator.requestMediaKeySystemAccess(It,ni),6);case 6:ei=br.h,br.A(5);break;case 7:ei=br.h;case 5:return M(br,le(It,ei,Kn),8);case 8:U(br,0);break;case 2:X(br),j(br)}})},we=S(i),me=we.next();!me.done;me=we.next())Le=me.value,re.set(Le,null);for(Ue=function(It){return!(Se().Ha()==="WEBKIT"&&It==="org.w3.clearkey")},rt=[],Be=S(i),Ie=Be.next();!Ie.done;Ie=Be.next())if(Je=Ie.value,Ue(Je)){for(nt=!0,tt=S(Q),ot=tt.next();!ot.done;ot=tt.next())at=ot.value,rt.push(ue(Je,at,"","",nt)),nt=!1;for(kt=S(D[Je]||[]),wt=kt.next();!wt.done;wt=kt.next())ft=wt.value,rt.push(ue(Je,null,ft,"")),rt.push(ue(Je,null,"",ft))}return M(mt,Promise.all(rt),2)}return mt.return(j5(re))})}function _K(i){return ie(function(u){if(u.g==1)return V(u,2),M(u,vC(V2e,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return U(u,0);X(u),j(u)})}function bb(i){var u;return ie(function(d){return u=Array.from(i.i.entries()),i.i.clear(),M(d,Promise.all(u.map(function(v){v=S(v);var g=v.next().value,k=v.next().value;return ie(function(T){if(T.g==1)return V(T,2),i.qa||i.C.has(g.sessionId)||k.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?M(T,_K(g),5):M(T,g.remove(),5);if(T.g!=2)return U(T,0);X(T),j(T)})})),0)})}function TK(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function O2e(i){i.i.forEach(function(u,d){var v=u.Ug,g=d.expiration;isNaN(g)&&(g=1/0),g!=v&&(i.F.onExpirationUpdated(d.sessionId,g),u.Ug=g)})}function Sb(i){return i=i.i.values(),w2e(i,function(u){return u.loaded})}function N2e(i){for(var u=S(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 B2e(i,u){var d=[];for(u.forEach(function(v,g){d.push({keySystem:g,licenseServerUri:v,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),i=S(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 F2e(i,u,d,v,g,k,T,P){var D=[];i=S(i);for(var B=i.next(),H={};!B.done;H={Ka:void 0},B=i.next()){if(H.Ka=B.value,u.includes(H.Ka.encryptionScheme)||u.push(H.Ka.encryptionScheme),H.Ka.keySystem=="org.w3.clearkey"&&H.Ka.licenseServerUri.startsWith("data:application/json;base64,")?D.includes(H.Ka.licenseServerUri)||D.push(H.Ka.licenseServerUri):d.includes(H.Ka.licenseServerUri)||d.push(H.Ka.licenseServerUri),g.includes(H.Ka.serverCertificateUri)||g.push(H.Ka.serverCertificateUri),H.Ka.serverCertificate&&(v.some((function(re){return function(oe){return bl(oe,re.Ka.serverCertificate)}})(H))||v.push(H.Ka.serverCertificate)),H.Ka.initData){B=S(H.Ka.initData);for(var K=B.next(),Q={};!K.done;Q={Lg:void 0},K=B.next())Q.Lg=K.value,k.some((function(re){return function(oe){var le=re.Lg;return oe.keyId&&oe.keyId==le.keyId?!0:oe.initDataType==le.initDataType&&bl(oe.initData,le.initData)}})(Q))||k.push(Q.Lg)}if(H.Ka.keyIds)for(B=S(H.Ka.keyIds),K=B.next();!K.done;K=B.next())T.add(K.value);if(H.Ka.keySystemUris&&P)for(H=S(H.Ka.keySystemUris),B=H.next();!B.done;B=H.next())P.add(B.value)}if(D.length==1)d.push(D[0]);else if(D.length>0){for(u=[],D=S(D),v=D.next();!v.done;v=D.next())v=o.atob(v.value.split("data:application/json;base64,").pop()),v=JSON.parse(v),u.push.apply(u,I(v.keys));D=JSON.stringify({keys:u}),d.push("data:application/json;base64,"+o.btoa(D))}}function j2e(i,u,d,v){var g=i.keySystem;g&&(g!="org.w3.clearkey"||!i.licenseServerUri)&&(u.size&&u.get(g)&&(u=u.get(g),i.licenseServerUri=u),i.keyIds||(i.keyIds=new Set),(d=d.get(g))&&(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[g]&&(i.keySystem=v[g]),o.cast&&o.cast.__platform__&&g=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function EK(i,u){if(i=Hg(i),i.size!=0){i=S5(i),u=S(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 V2e=1,z2e=5,U2e=.5;function H2e(){this.g=Gg,this.i=new Map().set(Gg,2).set(Cv,1),this.h=0}function H5(i,u){var d=i.g!==u;return i.g=u,d&&u===Gg&&(i.h=Date.now()),d}var Cv=0,Gg=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function W5(i,u,d){this.g=i,this.i=u,this.h=d}function IK(i,u){return ie(function(d){if(d.g==1)return M(d,a2e(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||UG(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(gb))throw new Ye(2,4,4032);return d.return(LK(i,u))})}function AK(i,u){var d=i.g.restrictions;i=i.i;var v=!1;u=S(u.variants);for(var g=u.next();!g.done;g=u.next()){g=g.value;var k=g.allowedByApplication;g.allowedByApplication=yC(g,d,i),k!=g.allowedByApplication&&(v=!0)}return v}function LK(i,u){var d=AK(i,u);if(u){var v=i.h?i.h.g:null;if(v&&i.h.B){for(var g=new Set,k=S(u.variants),T=k.next();!T.done;T=k.next())T=T.value,T.audio&&g.add(T.audio),T.video&&g.add(T.video);for(g=S(g),k=g.next();!k.done;k=g.next())PK(i,v.keySystem,k.value)}$K(i,u)}return d}function PK(i,u,d){d=S(d.drmInfos);for(var v=d.next();!v.done;v=d.next())if(v=v.value,v.keySystem==u){v=S(v.initData||[]);for(var g=v.next();!g.done;g=v.next())g=g.value,yb(i.h,g.initDataType,g.initData)}}function $K(i,u){i=i.h?i.h.Xe():{};var d=Object.keys(i);d=d.length&&d[0]=="00";var v=!1,g=!1,k=new Set,T=new Set,P=new Set;u=S(u.variants);for(var D=u.next();!D.done;D=u.next())D=D.value,D.audio&&P.add(D.audio),D.video&&P.add(D.video),D.allowedByApplication?D.allowedByKeySystem&&(v=!0):g=!0;for(P=S(P),u=P.next();!u.done;u=P.next())if(u=u.value,u.keyIds.size)for(u=S(u.keyIds),D=u.next();!D.done;D=u.next()){D=D.value;var B=i[d?"00":D];B?MK.includes(B)&&T.add(B):k.add(D)}if(!v)throw i={hasAppRestrictions:g,missingKeys:Array.from(k),restrictedKeyStatuses:Array.from(T)},new Ye(2,4,4012,i)}var MK=["output-restricted","internal-error"];function kb(){}function xv(i,u){Kg.set(i,u)}function W2e(){var i={};if(Se(),ld())for(var u=S(Kg.keys()),d=u.next();!d.done;d=u.next())i[d.value]=!0;for(u=S(["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]=ld()?Kg.has(d):Tv().canPlayType(d)!="";return i}function RK(i,u){if(u){var d=Kg.get(u.toLowerCase());if(d)return d}throw new Ye(2,4,4e3,i,u)}Ve("shaka.media.ManifestParser",kb),kb.unregisterParserByMime=function(i){Kg.delete(i)},kb.registerParserByMime=xv,kb.registerParserByExtension=function(){Dt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},kb.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var Kg=new Map;Ve("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function RC(i,u){var d=null,v=null,g=null,k=null,T=i.U();return u&1&&(g=i.Dd()),u&2&&(k=i.U()),u&8&&(d=i.U()),u&16&&(v=i.U()),{trackId:T,Td:d,Ud:v,kj:g,Li:k}}function DC(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function OC(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 NC(i,u,d){var v=i.U(),g=[],k=null;d&1&&(k=i.Zg()),d&4&&i.skip(4);for(var T=0;T0)var g=Hn("avcC",i.Ra);else{g=Hn;for(var k=7,T=[],P=[],D=0,B=0,H=0,K=0;K0&&(D=T[0][1],H=T[0][2],B=T[0][3]),k=new Uint8Array(k),K=0,k[K++]=1,k[K++]=D,k[K++]=H,k[K++]=B,k[K++]=255,k[K++]=224|T.length,D=0;D>8,k[K++]=T[D].length&255,k.set(T[D],K),K+=T[D].length;for(k[K++]=P.length,T=0;T>8,k[K++]=P[T].length&255,k.set(P[T],K),K+=P[T].length;g=g("avcC",k)}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(I(oi(d,2)),I(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=NK(i),T=new Uint8Array([]),i.encrypted&&(T=_v(i.stream,i.codecs),v="encv"),v=Hn(v,d,g,P,T)}else i.codecs.includes("hvc1")&&(v=i.stream.width||0,g=i.stream.height||0,d=new Uint8Array([]),i.Ra.byteLength>0&&(d=Hn("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(I(oi(v,2)),I(oi(g,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])),g="hvc1",P=NK(i),T=new Uint8Array([]),i.encrypted&&(T=_v(i.stream,i.codecs),g="encv"),v=Hn(g,v,d,P,T));break;case"audio":d=="mp3"?i=Hn(".mp3",Cb(i)):d=="ac-3"?(d=Hn("dac3",i.Ga),v="ac-3",g=new Uint8Array([]),i.encrypted&&(g=_v(i.stream,i.codecs),v="enca"),i=Hn(v,Cb(i),d,g)):d=="ec-3"?(d=Hn("dec3",i.Ga),v="ec-3",g=new Uint8Array([]),i.encrypted&&(g=_v(i.stream,i.codecs),v="enca"),i=Hn(v,Cb(i),d,g)):d=="opus"?(d=Hn("dOps",i.Ga),v="Opus",g=new Uint8Array([]),i.encrypted&&(g=_v(i.stream,i.codecs),v="enca"),i=Hn(v,Cb(i),d,g)):(i.Ga.byteLength>0?d=Hn("esds",i.Ga):(d=Hn,v=i.id+1,g=i.stream.channelsCount||2,T=i.stream.audioSamplingRate||44100,D=rf("audio",i.codecs.split(",")),B={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=B[T],(D==="mp4a.40.5"||D==="mp4a.40.29")&&(P=B[T*2]),T=parseInt(D.split(".").pop(),10),v=new Uint8Array([0,0,0,0,3,25].concat(I(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|g<<3,6,1,2])),d=d("esds",v)),v="mp4a",g=new Uint8Array([]),i.encrypted&&(g=_v(i.stream,i.codecs),v="enca"),i=Hn(v,Cb(i),d,g)),v=i}return i=Hn("stsd",nke.value(),v),u("stbl",i,Hn("stts",X2e.value()),Hn("stsc",Z2e.value()),Hn("stsz",Q2e.value()),Hn("stco",J2e.value()))}function NK(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(I(oi(i.Za,4)),I(oi(u,4)))),Hn("pasp",i)}function Cb(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(I(oi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function _v(i,u){var d=Hn;u=new Uint8Array([].concat(I(oi(FK(u.split(".")[0]),4)))),u=Hn("frma",u);var v="cenc",g=i.drmInfos[0];g&&g.encryptionScheme&&(v=g.encryptionScheme),v=new Uint8Array([0,0,0,0].concat(I(oi(FK(v),4)),[0,1,0,0])),v=Hn("schm",v),g=Hn;var k=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);i=S(i.drmInfos);for(var T=i.next();!T.done;T=i.next())if((T=T.value)&&T.keyIds&&T.keyIds.size){T=S(T.keyIds);for(var P=T.next();!P.done;P=T.next())k=BK(P.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),k=Hn("tenc",i,k),d("sinf",u,v,g("schi",k))}function xb(i){var u=[];i=S(i.g);for(var d=i.next();!d.done;d=i.next()){d=d.value;var v=u.push,g=v.apply,k=Hn,T=new Uint8Array([0,0,0,0].concat(I(oi(d.data?d.data.sequenceNumber:0,4))));T=Hn("mfhd",T);var P,D=d.data?d.data.zb:[],B=new Uint8Array(4+D.length);for(P=0;P=0;u--)d.push(i>>8*u&255);return d}function BK(i){for(var u=new Uint8Array(i.length/2),d=0;d=0;g--)v+=u[g].byteLength;for(g=new Uint8Array(v),g[0]=v>>24&255,g[1]=v>>16&255,g[2]=v>>8&255,g[3]=v&255,g.set(d,4),d=0,v=8;d=0;H--)B.push(2>>8*H&255);for(i.set(new Uint8Array(B),P),i.set(D,P+4),P=S(T),D=P.next();!D.done;D=P.next())D=D.value,BC(i,D.start,D.size+4)}}return i}function lke(i,u,d,v,g,k){var T=_v(i,v.name),P=u.subarray(v.start,v.start+v.size);for(i=new Uint8Array(v.size+T.byteLength),i.set(P,0),yo(i).setUint32(4,k),i.set(T,v.size),BC(i,0,i.byteLength),k=new Uint8Array(u.byteLength+i.byteLength),v=Se().df()?v.start:v.start+v.size,T=u.subarray(v),k.set(u.subarray(0,v)),k.set(i,v),k.set(T,v+i.byteLength),u=S(g),g=u.next();!g.done;g=u.next())g=g.value,BC(k,g.start,g.size+i.byteLength);return i=yo(k,d.start),d=Oh(d),u=i.getUint32(d),i.setUint32(d,u+1),k}function BC(i,u,d){i=yo(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 uke(i){function u(g){v.push({start:g.start,size:g.size}),An(g)}var d=ln(i),v=[];return new xr().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(g){v.push({start:g.start,size:g.size});for(var k=yo(d,g.start),T=0;T0)return u}if(i.g.length>0&&i.m)for(i=S(i.g),i=i.next();!i.done;i=i.next()){K5(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=UK},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=S(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?je("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 zK(i,u){i.ba=u,i=S(i.g);for(var d=i.next();!d.done;d=i.next())zK(d.value,u)}Ve("shaka.media.SegmentReference",pn),pn.prototype.getSegmentData=pn.prototype.Yb,pn.prototype.setSegmentData=pn.prototype.pe,pn.prototype.syncAgainst=pn.prototype.yh,pn.prototype.offset=pn.prototype.offset,pn.prototype.getThumbnailSprite=pn.prototype.Xj,pn.prototype.setThumbnailSprite=pn.prototype.If,pn.prototype.hasByterangeOptimization=pn.prototype.gk,pn.prototype.markAsByterangeOptimization=pn.prototype.oi,pn.prototype.isLastPartial=pn.prototype.lk,pn.prototype.markAsLastPartial=pn.prototype.pi,pn.prototype.isPartial=pn.prototype.nk,pn.prototype.markAsPartial=pn.prototype.ri,pn.prototype.isIndependent=pn.prototype.kk,pn.prototype.markAsNonIndependent=pn.prototype.wd,pn.prototype.isPreload=pn.prototype.isPreload,pn.prototype.markAsPreload=pn.prototype.Qg,pn.prototype.markAsUnavailable=pn.prototype.xk,pn.prototype.getStatus=pn.prototype.Jc,pn.prototype.getTileDuration=pn.prototype.Zj,pn.prototype.getTilesLayout=pn.prototype.$j,pn.prototype.getEndByte=pn.prototype.Gc,pn.prototype.getStartByte=pn.prototype.Ic,pn.prototype.getEndTime=pn.prototype.Ej,pn.prototype.getStartTime=pn.prototype.getStartTime,pn.prototype.getUris=pn.prototype.P;var gf=0,UK=1;pn.Status={ql:gf,xm:UK,Tl:2};function Tb(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function HK(i){return!i||Tb(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function FC(i){return!i||Tb(i)?null:i.length?i.end(i.length-1):null}function q5(i,u){return!i||!i.length||Tb(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function WK(i,u){if(!i||!i.length||Tb(i))return 0;var d=0;i=S(yf(i));for(var v=i.next();!v.done;v=i.next()){var g=v.value;v=g.start,g=g.end,g>u&&(d+=g-Math.max(v,u))}return d}function cke(i,u,d){return!i||!i.length||Tb(i)?null:(i=yf(i).findIndex(function(v,g,k){return v.start>u&&(g==0||k[g-1].end-u<=d)}),i>=0?i:null)}function yf(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 Eb(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Tv(){return Xg||(X5||(X5=new Rn(function(){Xg=null})),(Xg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Xg=document.createElement("video")),X5.ia(1),Xg)}function dke(i,u){var d,v,g,k,T;return ie(function(P){if(P.g==1)return"fonts"in document&&"FontFace"in o?M(P,document.fonts.ready,2):P.return();if(!("entries"in document.fonts))return P.return();for(d=function(D){D=D.entries();for(var B=[],H=D.next();H.done===!1;)B.push(H.value),H=D.next();return B},v=S(d(document.fonts)),g=v.next();!g.done;g=v.next())if(k=g.value,k.family===i&&k.display==="swap")return P.return();T=new FontFace(i,"url("+u+")",{display:"swap"}),document.fonts.add(T),j(P)})}Ve("shaka.util.Dom",Y5),Y5.removeAllChildren=Eb,Y5.clearSourceFromVideo=jC;var X5=null,Xg=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function Z5(){}function KK(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 qK(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 J5(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 fke(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=zt(ln(i.data,1,d)),g=i.data[2+d],k=i.data.subarray(3+d).indexOf(0);if(k===-1)return null;var T=zt(ln(i.data,3+d,k)),P;return v==="-->"?P=zt(ln(i.data,4+d+k)):P=Hs(i.data.subarray(4+d+k)),u.mimeType=v,u.pictureType=g,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=zt(ln(i.data,1,v)),i=zt(ln(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=zt(ln(i.data,1,v)),i=zt(ln(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=zt(ln(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=Hs(i.data.subarray(d.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=zt(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=zt(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=Hs(i.data),u):null}function Ev(i){for(var u=0,d=[];KK(i,u);){var v=J5(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+=J5(i,u+6),qK(i,u+10)&&(v+=10),u+=v;return v>0?i.subarray(d,d+v):new Uint8Array([])}Ve("shaka.util.Id3Utils",Z5),Z5.getID3Data=Zg,Z5.getID3Frames=Ev;function YK(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function bf(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=ln(u,0,d)}this.i=this.j.byteLength,this.g=this.h=0}function Q5(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 qr(d,0).U(),i.g=v*8,i.i-=v)}function Ja(i,u){if(i.g<=u){u-=i.g;var d=Math.floor(u/8);u-=d*8,i.g-=d,Q5(i)}i.h<<=u,i.g-=u}function jn(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&&Q5(i),d=u-d,d>0?v<>>u)!==0)return i.h<<=u,i.g-=u,u;return Q5(i),u+eP(i)}function is(i){Ja(i,1+eP(i))}function Wt(i){var u=eP(i);return jn(i,u+1)-1}function Jg(i){return i=Wt(i),1&i?1+i>>>1:-1*(i>>>1)}function an(i){return jn(i,1)===1}function fr(i){return jn(i,8)}function VC(i,u){for(var d=8,v=8,g=0;g>4>1){var P=g+5+i[g+4];if(P==g+188)continue}else P=g+4;switch(T){case 0:k&&(P+=i[P]+1),this.I=(i[P+10]&31)<<8|i[P+11];break;case 17:case 8191:break;case this.I:k&&(P+=i[P]+1),k=i,T={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var D=P+3+((k[P+1]&15)<<8|k[P+2])-4;for(P+=12+((k[P+10]&15)<<8|k[P+11]);P0)for(var K=P+5,Q=H;Q>2;){var re=k[K+1]+2;switch(k[K]){case 5:var oe=Th(k.subarray(K+2,K+re));T.audio==-1&&oe==="Opus"?(T.audio=B,T.audioCodec="opus"):T.video==-1&&oe==="AV01"&&(T.video=B,T.videoCodec="av1");break;case 106:T.audio==-1&&(T.audio=B,T.audioCodec="ac3");break;case 122:T.audio==-1&&(T.audio=B,T.audioCodec="ec3");break;case 124:T.audio==-1&&(T.audio=B,T.audioCodec="aac");break;case 127:T.audioCodec=="opus"&&(oe=null,k[K+2]===128&&(oe=k[K+3]),oe!=null&&(this.H={channelCount:(oe&15)===0?2:oe&15,nj:oe,sampleRate:48e3}))}K+=re,Q-=re}break;case 15:T.audio==-1&&(T.audio=B,T.audioCodec="aac");break;case 17:T.audio==-1&&(T.audio=B,T.audioCodec="aac-loas");break;case 21:T.bf==-1&&(T.bf=B);break;case 27:T.video==-1&&(T.video=B,T.videoCodec="avc");break;case 3:case 4:T.audio==-1&&(T.audio=B,T.audioCodec="mp3");break;case 36:T.video==-1&&(T.video=B,T.videoCodec="hvc");break;case 129:T.audio==-1&&(T.audio=B,T.audioCodec="ac3");break;case 132:case 135:T.audio==-1&&(T.audio=B,T.audioCodec="ec3")}P+=H+5}k=T,k.video!=-1&&(this.K=k.video,this.m=k.videoCodec),k.audio!=-1&&(this.F=k.audio,this.C=k.audioCodec),k.bf!=-1&&(this.G=k.bf),v&&!this.J&&(v=!1,g=u-188),this.J=!0;break;case this.K:P=i.subarray(P,g+188),k?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,g+188),k?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,g+188),k?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 tP(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 g=(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=g),d.pts=ZK(g,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!=g?ZK(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 Dt("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,g=1;this.m=="hvc"&&(g=2);var k=u.state||0,T=k,P=0,D=[],B=-1,H=0;for(k==-1&&(B=0,H=this.m=="hvc"?i[0]>>1&63:i[0]&31,k=0,P=1);P=0?D.push({data:i.subarray(B+g,K),fullData:i.subarray(B,K),type:H,time:d,state:null}):(k=D.length?D[D.length-1]:u.ge)&&(T&&P<=4-T&&k.state&&(k.data=k.data.subarray(0,k.data.byteLength-T),k.fullData=k.fullData.subarray(0,k.fullData.byteLength-T)),K>0&&(K=i.subarray(0,K),k.data=Oi(k.data,K),k.fullData=Oi(k.fullData,K),k.state=0)),P>1&63:i[P]&31,B=P,k=0):k=-1):k=0:k=3:k=K?0:1}return B>=0&&k>=0&&D.push({data:i.subarray(B+g,v),fullData:i.subarray(B,v),type:H,time:d,state:k}),!D.length&&u.ge&&(d=D.length?D[D.length-1]:u.ge)&&(d.data=Oi(d.data,i),d.fullData=Oi(d.fullData,i)),u.state=k,D},l.getMetadata=function(){for(var i=[],u=S(this.l),d=u.next();!d.done;d=u.next())d=Oi.apply(Ao,I(d.value)),(d=tP(this,d))&&i.push({cueTime:d.pts?d.pts/9e4:null,data:d.data,frames:Ev(d.data),dts:d.dts,pts:d.pts});return i},l.ub=function(){if(this.i.length&&!this.h.length)for(var i=S(this.i),u=i.next();!u.done;u=i.next()){var d=Oi.apply(Ao,I(u.value)),v=tP(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=Oi(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=S(this.j),d=u.next();!d.done;d=u.next()){var v=Oi.apply(Ao,I(d.value)),g=tP(this,v);d=this.g.length?this.g[this.g.length-1]:null,g&&g.pts!=null&&g.dts!=null&&(!d||d.pts!=g.pts&&d.dts!=g.dts)?this.g.push(g):this.g.length&&(v=g?g.data:v)&&(d=this.g.pop(),d.data=Oi(d.data,v),this.g.push(d))}if(i){for(u={ge:null,state:null},d=[],v=S(this.g),g=v.next();!g.done;g=v.next())g=g.value,g.nalus=this.Wg(g,u),g.nalus.length&&(d.push(g),u.ge=g.nalus[g.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=S(this.ud()),d=u.next();!d.done;d=u.next())i.push.apply(i,I(d.value.nalus));return i},l.dk=function(){Dt("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"?vke(this):pke(this)};function XK(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 pke(i){var u={height:null,width:null,codec:null,frameRate:null},d=i.$e();if(!d.length||(d=d.find(function(re){return re.type==7}),!d))return u;d=new bf(d.data);var v=fr(d),g=fr(d),k=fr(d);if(is(d),mke.includes(v)){var T=Wt(d);if(T===3&&Ja(d,1),is(d),is(d),Ja(d,1),an(d)){T=T!==3?8:12;for(var P=0;P0)for(we=g;we<8;we++)jn(v,2);for(we=0;we>Ie&1)<<31-Ie;return Be>>>0})(D),T=T==1?"H":"L",k="hvc1"+("."+["","A","B","C"][k]+P),k+="."+v.toString(16).toUpperCase(),k+="."+T+oe,re&&(k+="."+re.toString(16).toUpperCase()),Q&&(k+="."+Q.toString(16).toUpperCase()),K&&(k+="."+K.toString(16).toUpperCase()),H&&(k+="."+H.toString(16).toUpperCase()),B&&(k+="."+B.toString(16).toUpperCase()),d&&(k+="."+d.toString(16).toUpperCase()),u.codec=k,u.frameRate=XK(i),u}function ZK(i,u){var d=1;for(i>u&&(d=-1);Math.abs(u-i)>4294967296;)i+=d*8589934592;return i}function Qg(i){return!(nP(i)<0)}function nP(i){for(var u=Math.min(1e3,i.length-564),d=0;d0||i.B.dispatchAllEmsgBoxes;H&&B.S("emsg",function(oe){var le=g.emsgSchemeIdUris;if(oe.version===0)var ue=oe.reader.Yc(),we=oe.reader.Yc(),me=oe.reader.U(),Le=oe.reader.U(),Ue=oe.reader.U(),rt=oe.reader.U(),Be=v.startTime+Le/me;else me=oe.reader.U(),Be=oe.reader.Dd()/me+v.timestampOffset,Le=Be-v.startTime,Ue=oe.reader.U(),rt=oe.reader.U(),ue=oe.reader.Yc(),we=oe.reader.Yc();oe=oe.reader.Tb(oe.reader.getLength()-oe.reader.Oa(),!0),(le&&le.includes(ue)||i.B.dispatchAllEmsgBoxes)&&(ue=="urn:mpeg:dash:event:2012"?i.O.Dk():(le=Be+Ue/me,i.O.Bk({startTime:Be,endTime:le,schemeIdUri:ue,value:we,timescale:me,presentationTimeDelta:Le,eventDuration:Ue,id:rt,messageData:oe}),(ue=="https://aomedia.org/emsg/ID3"||ue=="https://developer.apple.com/streaming/emsg-id3")&&(me=Ev(oe),me.length&&i.O.onMetadata([{cueTime:Be,data:oe,frames:me,dts:Be,pts:Be}],0,le))))});var K=v.ba.timescale;u=K&&!isNaN(K);var Q=0,re=!1;u&&B.S("prft",function(oe){var le=oe.reader,ue=oe.version;le.U(),oe=le.U();var we=le.U();oe=oe*1e3+we/4294967296*1e3,ue===0?le=le.U():(ue=le.U(),le=le.U(),le=ue*4294967296+le),oe=YK(oe),le=new Map().set("detail",{wallClockTime:oe,programStartDate:new Date(oe-le/K*1e3)}),le=new Xt("prft",le),i.O.onEvent(le)}).box("moof",An).box("traf",An).S("tfdt",function(oe){re||(Q=DC(oe.reader,oe.version).baseMediaDecodeTime/K,re=!0,H||oe.parser.stop())}),(H||u)&&B.parse(d,!1,T),re&&v.timestampOffset==0&&(P=Q)}else k.includes("/mp4")||k.includes("/webm")||!Qg(B)||(i.$.has(u)||i.$.set(u,new Vr),D=i.$.get(u),D.clearData(),D.Gf(v.i),D.parse(B),B=D.getStartTime(u),B!=null&&(P=B),D=D.getMetadata());return{timestamp:P,metadata:D}}function HC(i,u,d,v,g,k,T,P,D,B,H){T=T===void 0?!1:T,P=P===void 0?!1:P,D=D===void 0?!1:D,B=B===void 0?!1:B;var K,Q,re,oe,le,ue,we,me,Le,Ue,rt,Be,Ie,Je,nt,tt,ot,at,kt,wt;return ie(function(ft){switch(ft.g){case 1:if(K=Li,u!=K.Na){ft.A(2);break}if(i.X!="HLS"){ft.A(3);break}return M(ft,i.Ta,4);case 4:Q=ft.h,i.h.u=Q;case 3:return M(ft,QSe(i.h,d,v?v.startTime:null,v?v.endTime:null,v?v.P()[0]:null),5);case 5:return ft.return();case 2:if(B||!i.m){ft.A(6);break}return M(ft,HC(i,K.ka,d,v,g,k,T,P,D,!0),7);case 7:return M(ft,HC(i,K.Aa,d,v,g,k,T,P,D,!0),8);case 8:return ft.return();case 6:if(!i.l.has(u))return ft.return();if(re=i.l.get(u).timestampOffset,oe=i.F.get(u),i.j.has(u)&&(oe=i.j.get(u).getOriginalMimeType()),v&&(le=kke(i,u,d,v,g,oe,D),ue=le.timestamp,we=le.metadata,ue!=null&&(i.V==null&&u==K.Aa&&(i.V=ue,i.wa=v.startTime,i.T!=null&&(me=0,i.wa==i.qa&&(me=i.V-i.T),i.ma.resolve(me))),i.T==null&&u==K.ka&&(i.T=ue,i.qa=v.startTime,i.V!=null&&(Le=0,i.wa==i.qa&&(Le=i.V-i.T),i.ma.resolve(Le))),Ue=ue,rt=ff,!i.I&&rt.includes(i.F.get(u))&&(Ue=0),Be=v.startTime-Ue,Ie=Math.abs(re-Be),(Ie>=.001||T||P)&&(!D||Be>0||!re)&&(re=Be,i.ib&&(bo(i,u,function(){return t0(i,u)},null),bo(i,u,function(){return n0(i,u,re)},null))),(u==K.Aa||!i.l.has(K.Aa))&&i.Ta.resolve(re)),we.length)&&i.O.onMetadata(we,re,v?v.endTime:null),k&&u==K.Aa&&(i.h||UC(i,"application/cea-608",i.I,!1),i.J||(Je=oe.split(";",1)[0],i.J=new ka(Je)),v?(nt=i.J.xf(d),nt.length&&t2e(i.h,nt,re)):i.J.init(d,P,H)),!i.j.has(u)){ft.A(9);break}return M(ft,i.j.get(u).transmux(d,g,v,i.i.duration,u),10);case 10:tt=ft.h,ArrayBuffer.isView(tt)?d=tt:(ot=tt,ot.init!=null&&(at=ot.init,bo(i,u,function(){i.H&&Lg(i.H,at,re,g),i.l.get(u).appendBuffer(at)},v?v.P()[0]:null)),d=ot.data);case 9:if(d=Eke(i,g,d,v,u),!v||!i.I||u==K.Na){ft.A(11);break}if(!T&&!P){ft.A(11);break}if(kt=v.startTime,i.X!="HLS"||i.m||u!=K.ka||!i.l.has(K.Aa)){ft.A(13);break}return M(ft,i.ma,14);case 14:wt=ft.h,Math.abs(wt)>.15&&(kt-=wt);case 13:bo(i,u,function(){return t0(i,u)},null),bo(i,u,function(){return n0(i,u,kt)},null);case 11:return M(ft,bo(i,u,function(){var mt=d;i.H&&Lg(i.H,mt,re,g),i.l.get(u).appendBuffer(mt)},v?v.P()[0]:null),15);case 15:j(ft)}})}function wke(i,u){var d=Lv(i,"video")||0;BG(i.h,u,d)}function Cke(i){i.h&&BG(i.h,"",0)}l.remove=function(i,u,d,v){var g=this,k,T;return ie(function(P){return P.g==1?(k=Li,i==k.Aa&&g.J&&(g.J.remove(v),T=g.h.g||0,g.h.remove(T,d,!0)),i==k.Na?M(P,g.h.remove(u,d),0):d>u?M(P,bo(g,i,function(){return WC(g,i,u,d)},null),5):P.A(0)):g.m?M(P,bo(g,k.ka,function(){return WC(g,k.ka,u,d)},null),0):P.A(0)})};function eq(i,u){var d;return ie(function(v){return v.g==1?(d=Li,u==d.Na?i.h?M(v,i.h.remove(0,1/0),0):v.return():u===d.Aa&&i.J&&i.h?M(v,i.h.remove(0,1/0,!0),4):v.A(4)):v.g!=6?M(v,bo(i,u,function(){return WC(i,u,0,i.i.duration)},null),6):i.m?M(v,bo(i,d.ka,function(){return WC(i,d.ka,0,i.i.duration)},null),0):v.A(0)})}l.flush=function(i){var u=this,d;return ie(function(v){return v.g==1?(d=Li,i==d.Na?v.return():M(v,bo(u,i,function(){u.g.currentTime-=.001,Bh(u,i)},null),2)):u.m?M(v,bo(u,d.ka,function(){var g=d.ka;u.g.currentTime-=.001,Bh(u,g)},null),0):v.A(0)})};function tq(i,u,d,v,g,k,T,P,D){var B,H,K;return ie(function(Q){return Q.g==1?(B=Li,u==B.Na?(k||(i.h.u=d),e2e(i.h,v,g),Q.return()):(H=[],M(Q,Lke(i,u,T,P,D),2))):(K=Q.h,K||(H.push(bo(i,u,function(){return t0(i,u)},null)),i.m&&H.push(bo(i,B.ka,function(){return t0(i,B.ka)},null))),k||(H.push(bo(i,u,function(){return n0(i,u,d)},null)),i.m&&H.push(bo(i,B.ka,function(){return n0(i,B.ka,d)},null))),(v!=0||g!=1/0)&&(H.push(bo(i,u,function(){return nq(i,u,v,g)},null)),i.m&&H.push(bo(i,B.ka,function(){return nq(i,B.ka,v,g)},null))),H.length?M(Q,Promise.all(H),0):Q.A(0))})}function xke(i,u,d){var v,g;return ie(function(k){return k.g==1?(v=Li,u==v.Na||(u==v.Aa&&(i.Ta=new Cr),!i.I||(g=Lv(i,u))&&Math.abs(g-d)<.15)?k.return():(bo(i,u,function(){return t0(i,u)},null),i.m&&bo(i,v.ka,function(){return t0(i,v.ka)},null),M(k,bo(i,u,function(){return n0(i,u,d)},null),2))):i.m?M(k,bo(i,v.ka,function(){return n0(i,v.ka,d)},null),0):k.A(0)})}l.endOfStream=function(i){var u=this;return ie(function(d){return M(d,Ib(u,function(){Iv(u)||Av(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return ie(function(d){return M(d,Ib(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&v&&!u.i)&&(u.j&&u.j(u.g,g),u.i=!0,u.g=d.g.currentTime),u=!v}u&&(u=i.g.currentTime,d=i.g.buffered,v=cke(d,u,i.h.gapDetectionThreshold),v==null||v==0&&!i.B||(g=d.start(v),(k=i.h.gapPadding)&&(g=Math.ceil((g+k)*100)/100),g>=i.F.Gb()||g-u<.001||(v!=0&&d.end(v-1),Mke(i,g),u==i.l&&(i.l=g),i.G++,i.u(new Xt("gapjumped")))))}}}function Mke(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function Rke(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,d=i.h.stallSkip;return new lq(new uq(i.g),u,function(){var v;return ie(function(g){if(g.g==1)return v=yf(i.g.buffered),v.length?d?(i.g.currentTime+=d,g.A(2)):M(g,i.g.play(),3):g.return();if(g.g!=2){if(!i.g)return g.return();i.g.pause(),i.g.play()}i.H++,i.u(new Xt("stalldetected")),j(g)})})}function lq(i,u,d){this.h=i,this.m=cq(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=d}lq.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function uq(i){var u=this;this.g=i,this.h=new Pe,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 cq(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=S(yf(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}uq.prototype.release=function(){this.h&&this.h.release(),this.h=null};function r0(i,u,d,v){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?v():(u=Dke.value().get(u),d.Ba(i,u,v))}var Dke=new ze(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function dq(i,u,d,v){var g=this;this.g=i,this.m=u,this.u=d,this.l=null,this.j=function(){return g.l==null&&(g.l=v()),g.l},this.o=!1,this.h=new Pe,this.i=new vq(i),r0(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){hq(g,g.j())})}dq.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 dP(i){return i.o?i.g.currentTime:i.j()}function fq(i,u){i.g.readyState>0?mq(i.i,u):r0(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){hq(i,i.j())})}function hq(i,u){Math.abs(i.g.currentTime-u)<.001?pq(i):(i.h.Ba(i.g,"seeking",function(){pq(i)}),mq(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function pq(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function vq(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new Rn(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}vq.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function mq(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function gq(i){this.g=i,this.i=!1,this.h=null,this.j=new Pe}l=gq.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 g=yq(u);g!==null&&(v=u.h.getTime()/1e3-g,v=bq(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;r0(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-(yq(this)||0),i=bq(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=FC(this.g.buffered);return i!=null&&i>=this.g.duration-1};function yq(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function bq(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 Sq(i,u,d,v,g,k){var T=this;this.h=i,this.g=u.presentationTimeline,this.l=d,this.u=g,this.o=null,this.i=new cP(i,u.presentationTimeline,d,k),this.j=new dq(i,function(){e:{var P=T.i;P.m=!0,P.B=!1,P.i&&P.i.Ea(P.h.gapJumpTimerTime),Ab(P);var D=dP(T.j);if(P=Cq(T,D),!oC()&&Math.abs(P-D)>.001){D=!1;var B=Se().Mi();if(B){var H=Date.now()/1e3;(!T.o||T.o0&&!this.h.paused?xq(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 kq(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),wq(i,xq(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=FC(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function wq(i,u){var d=i.g.getDuration();return u>=d?d-i.l.durationBackoff:u}function Cq(i,u){var d=i.l.rebufferingGoal,v=i.l.safeSeekOffset,g=i.g.Xb(),k=i.g.Gb(),T=i.g.getDuration();k-g<3&&(g=k-3);var P=i.g.Xd(d),D=i.g.Xd(v);return d=i.g.Xd(d+v),u>=T?wq(i,u):u>k?k-i.l.safeSeekEndOffset:u=P||q5(i.h.buffered,u)?u:d}function xq(i,u){var d=i.g.Xb();return ui?i:u)}function Qn(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=Qn.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=S(this.g),d=u.next();!d.done;d=u.next())i(d.value)};function bc(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],g=d=v.startTime&&i=this.g.length?null:this.g[i])},l.offset=function(i){if(!this.o)for(var u=S(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 pn(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 Rn(function(){var v=u();v?d.g.push.apply(d.g,I(v)):(d.m.stop(),d.m=null)}),this.m.Ea(i))},Qn.prototype[Symbol.iterator]=function(){return this.Vb(0)},Qn.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 g=this.get(v);d?v++:v--;var k=-1;if(g&&g.g.length>0)for(var T=g.g.length-1;T>=0;--T){var P=g.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]},Ve("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 hi(){Qn.call(this,[]),this.h=[]}_(hi,Qn),l=hi.prototype,l.clone=function(){var i=new hi;return i.h=this.h.slice(),i.i=this.i,i},l.release=function(){this.h=[]},l.Fb=function(i){for(var u=S(this.h),d=u.next();!d.done;d=u.next())d.value.Fb(i)};function Oke(i,u){i=S(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=S(this.h),v=d.next();!v.done;v=d.next()){v=v.value;var g=v.find(i);if(g!=null)return g+u;u+=v.getNumEvicted()+v.getNumReferences()}return null};function Nke(i,u){i=S(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=S(this.h),v=d.next();!v.done;v=d.next()){v=v.value;var g=v.get(i-u);if(g)return g;g=v.getNumReferences(),u+=v.getNumEvicted()+g}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(){},Ve("shaka.media.MetaSegmentIndex",hi),hi.prototype.updateEvery=hi.prototype.Nf,hi.prototype.fit=hi.prototype.pd,hi.prototype.mergeAndEvict=hi.prototype.fe,hi.prototype.evict=hi.prototype.Ya,hi.prototype.merge=hi.prototype.nf,hi.prototype.offset=hi.prototype.offset,hi.prototype.get=hi.prototype.get,hi.prototype.find=hi.prototype.find,hi.prototype.forEachTopLevelReference=hi.prototype.Fb,hi.prototype.release=hi.prototype.release;function Lb(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new Rn(function(){u.g.ui(u.i*.25)})}Lb.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},Lb.prototype.set=function(i){this.i=i,fP(this)},Lb.prototype.Tc=function(){return this.g.Tc()};function fP(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 hP(i){var u=this;this.j=i,this.h=new Pe,this.g=new Set,this.i=new Rn(function(){_q(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()})}hP.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var i=S(this.g),u=i.next();!u.done;u=i.next())u.value.release();this.g.clear()};function _q(i,u){var d=i.j.currentTime;i=S(i.g);for(var v=i.next();!v.done;v=i.next())v.value.j(d,u)}function KC(i){dr.call(this),this.g=new Map,this.h=i}_(KC,dr),KC.prototype.release=function(){this.g.clear(),dr.prototype.release.call(this)};function Bke(i,u){var d=i.g.get(u);return d||(d={me:[],lg:null,contentType:u},i.g.set(u,d)),d}function Fke(i,u,d){var v=Bke(i,u.contentType);jke(i,v),i={xd:u,position:d},v=v.me,u=v.findIndex(function(g){return g.position>=d}),u>=0?v.splice(u,v[u].position==d?1:0,i):v.push(i)}KC.prototype.j=function(i){for(var u=S(this.g.values()),d=u.next();!d.done;d=u.next()){d=d.value;var v=d.lg;e:{for(var g=d.me,k=g.length-1;k>=0;k--){var T=g[k];if(T.position<=i){g=T.xd;break e}}g=null}k=g&&!(v===g||v&&g&&v.bandwidth==g.bandwidth&&v.audioSamplingRate==g.audioSamplingRate&&v.codecs==g.codecs&&v.contentType==g.contentType&&v.frameRate==g.frameRate&&v.height==g.height&&v.mimeType==g.mimeType&&v.channelsCount==g.channelsCount&&v.pixelAspectRatio==g.pixelAspectRatio&&v.width==g.width),T=g&&v&&g.label&&v.label&&v.label!==g.label;var P=g&&v&&g.language&&v.language&&v.language!==g.language;v=g&&v&&g.roles&&v.roles&&!dt(v.roles,g.roles),(T||P||v)&&Tq(this,i,g.contentType)&&(d.lg=g,v=new Xt("audiotrackchange",new Map([["quality",g],["position",i]])),this.dispatchEvent(v)),k&&Tq(this,i,g.contentType)&&(d.lg=g,JSON.stringify(g),d=new Xt("qualitychange",new Map([["quality",g],["position",i]])),this.dispatchEvent(d))}};function Tq(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,g=u.me;u.me=g.filter(function(k,T){return!(k.position<=d&&T+1=v)})}else u.me=[]}function qC(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 Pb(i){dr.call(this),this.h=new Map,this.i=i,this.g=null}_(Pb,dr),Pb.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),dr.prototype.release.call(this)};function pP(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 Xt("regionadd",new Map([["region",u]])),i.dispatchEvent(u),Vke(i))}function Vke(i){i.g||(i.g=new Rn(function(){for(var u=i.i(),d=S(i.h),v=d.next();!v.done;v=d.next()){var g=S(v.value);v=g.next().value,g=g.next().value,g.endTimev.endTime&&Mb(this,v);u&&vP(this)},YC.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function vP(i){if(i.g.size)for(var u=Array.from(i.g.keys()),d=S(i.j.keys()),v=d.next(),g={};!v.done;g={Mg:void 0},v=d.next())g.Mg=v.value,u.some((function(k){return function(T){return _b(T.ba,k.Mg)}})(g))||Mb(i,g.Mg)}function Aq(i,u){i.m=u;for(var d=Array.from(i.g.keys());d.length>u;){var v=d.pop();v&&Mb(i,v)}vP(i)}function Uke(i,u){u&&u!==i.i&&(Sc(i),i.i=u)}function Mb(i,u){var d=i.g;u instanceof Ca&&(d=i.j),i=d.get(u),d.delete(u),i&&i.abort()}function mP(i){this.g=i,this.je=this.wh=null}function Lq(i,u,d){var v=new Uint8Array(0);return i.je=i.g(u,d,function(g){return ie(function(k){if(k.g==1)return v.byteLength>0?v=Oi(v,g):v=g,i.wh?M(k,i.wh(v),3):k.A(0);v=new Uint8Array(0),j(k)})}),i.je.promise.catch(function(g){return g instanceof Ye&&g.code==7001?Promise.resolve():Promise.reject(g)})}mP.prototype.abort=function(){this.je&&this.je.abort()},Ve("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function gP(i){var u=Ya(i),d=u.split("/")[0];return i=wa(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 Hke(i,u,d){function v(Ie){we=Ie.name;var Je=Ie.reader;Je.skip(24);var nt=Je.Ca(),tt=Je.Ca();Je.skip(50),Q=String(nt),K=String(tt),Ie.reader.Ia()&&An(Ie)}function g(Ie){var Je=DK(Ie.reader);re=Je.channelCount,oe=Je.sampleRate,k(Ie.name)}function k(Ie){switch(Ie=Ie.toLowerCase(),Ie){case"avc1":case"avc3":P.push(Ie+".42E01E"),B=!0;break;case"hev1":case"hvc1":P.push(Ie+".1.6.L93.90"),B=!0;break;case"dvh1":case"dvhe":P.push(Ie+".05.04"),B=!0;break;case"vp09":P.push(Ie+".00.10.08"),B=!0;break;case"av01":P.push(Ie+".0.01M.08"),B=!0;break;case"mp4a":T.push("mp4a.40.2"),D=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":T.push(Ie),D=!0;break;case"apac":T.push("apac.31.00"),D=!0}}var T=[],P=[],D=!1,B=!1,H=null,K=null,Q=null,re=null,oe=null,le=null,ue=null,we;if(new xr().box("moov",An).box("trak",An).box("mdia",An).S("mdhd",function(Ie){H=OC(Ie.reader,Ie.version).language}).box("minf",An).box("stbl",An).S("stsd",mf).box("mp4a",function(Ie){var Je=DK(Ie.reader);re=Je.channelCount,oe=Je.sampleRate,Ie.reader.Ia()?An(Ie):k(Ie.name)}).box("esds",function(Ie){Ie=Ie.reader;for(var Je="mp4a",nt,tt;Ie.Ia();){nt=Ie.Y();for(var ot=Ie.Y();ot&128;)ot=Ie.Y();if(nt==3)Ie.Ca(),ot=Ie.Y(),ot&128&&Ie.Ca(),ot&64&&Ie.skip(Ie.Y()),ot&32&&Ie.Ca();else if(nt==4)tt=Ie.Y(),Ie.skip(12);else if(nt==5)break}tt&&(Je+="."+wb(tt),nt==5&&Ie.Ia()&&(nt=Ie.Y(),tt=(nt&248)>>3,tt===31&&Ie.Ia()&&(tt=32+((nt&7)<<3)+((Ie.Y()&224)>>5)),Je+="."+tt)),T.push(Je),D=!0}).box("ac-3",g).box("ec-3",g).box("ac-4",g).box("Opus",g).box("fLaC",g).box("apac",g).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(Ie){var Je=we||"";switch(we){case"dvav":Je="avc3";break;case"dva1":Je="avc1"}Ie=Ie.reader,Ie.skip(1),Ie=Je+"."+wb(Ie.Y())+wb(Ie.Y())+wb(Ie.Y()),P.push(Ie),B=!0}).box("hvcC",function(Ie){var Je=we||"";switch(we){case"dvh1":Je="hvc1";break;case"dvhe":Je="hev1"}var nt=Ie.reader;nt.skip(1),Ie=nt.Y();var tt=["","A","B","C"][Ie>>6],ot=Ie&31,at=nt.U(),kt=(Ie&32)>>5?"H":"L";Ie=[nt.Y(),nt.Y(),nt.Y(),nt.Y(),nt.Y(),nt.Y()],nt=nt.Y();for(var wt=0,ft=0;ft<32&&(wt|=at&1,ft!=31);ft++)wt<<=1,at>>=1;for(Je=Je+("."+tt+ot)+("."+wb(wt,!0)),Je+="."+kt+nt,tt="",ot=Ie.length;ot--;)((kt=Ie[ot])||tt)&&(tt="."+kt.toString(16).toUpperCase()+tt);Je+=tt,P.push(Je),B=!0}).box("dvcC",function(Ie){var Je=we||"";switch(we){case"hvc1":Je="dvh1";break;case"hev1":Je="dvhe";break;case"avc1":Je="dva1";break;case"avc3":Je="dvav";break;case"av01":Je="dav1"}var nt=Ie.reader;nt.skip(2),Ie=nt.Y(),nt=nt.Y(),P.push(Je+"."+Za(Ie>>1&127)+"."+Za(Ie<<5&32|nt>>3&31)),B=!0}).box("dvvC",function(Ie){var Je=we||"";switch(we){case"hvc1":Je="dvh1";break;case"hev1":Je="dvhe";break;case"avc1":Je="dva1";break;case"avc3":Je="dvav";break;case"av01":Je="dav1"}var nt=Ie.reader;nt.skip(2),Ie=nt.Y(),nt=nt.Y(),P.push(Je+"."+Za(Ie>>1&127)+"."+Za(Ie<<5&32|nt>>3&31)),B=!0}).S("vpcC",function(Ie){var Je=we||"",nt=Ie.reader;Ie=nt.Y();var tt=nt.Y();nt=nt.Y()>>4&15,P.push(Je+"."+Za(Ie)+"."+Za(tt)+"."+Za(nt)),B=!0}).box("av1C",function(Ie){var Je=we||"";switch(we){case"dav1":Je="av01"}var nt=Ie.reader;nt.skip(1),Ie=nt.Y(),nt=nt.Y();var tt=Ie>>>5,ot=(nt&64)>>6;P.push(Je+"."+tt+"."+Za(Ie&31)+(nt>>>7?"H":"M")+"."+Za(tt===2&&ot?(nt&32)>>5?12:10:ot?10:8)+"."+((nt&16)>>4)+"."+((nt&8)>>3)+((nt&4)>>2)+(nt&3)+"."+Za(1)+"."+Za(1)+"."+Za(1)+".0"),B=!0}).box("enca",LC).box("encv",Xa).box("sinf",An).box("frma",function(Ie){Ie=G5(Ie.reader).codec,k(Ie)}).box("colr",function(Ie){P=P.map(function(tt){if(tt.startsWith("av01.")){var ot=Ie.reader,at=ot.Oa(),kt=ot.Tb(4,!1),wt=String.fromCharCode(kt[0]);if(wt+=String.fromCharCode(kt[1]),wt+=String.fromCharCode(kt[2]),wt+=String.fromCharCode(kt[3]),wt==="nclx"){kt=ot.Ca(),wt=ot.Ca();var ft=ot.Ca(),mt=ot.Y()>>7,It=tt.split(".");It.length==10&&(It[6]=Za(kt),It[7]=Za(wt),It[8]=Za(ft),It[9]=String(mt),tt=It.join("."))}ot.seek(at)}return tt});var Je=G2e(Ie.reader),nt=Je.colorGamut;le=Je.ve,ue=nt}).parse(i||u,!0,!0),!T.length&&!P.length)return null;var me=D&&!B,Le=new Map;if(B&&!d){d=new ka("video/mp4"),i&&d.init(i);try{d.xf(u);for(var Ue=S(d.Vf()),rt=Ue.next();!rt.done;rt=Ue.next()){var Be=rt.value;Le.set(Be,Be)}}catch{}d.Nd()}return{type:me?"audio":"video",mimeType:me?"audio/mp4":"video/mp4",codecs:yP(T.concat(P)).join(", "),language:H,height:K,width:Q,channelCount:re,sampleRate:oe,closedCaptions:Le,ve:le,colorGamut:ue,frameRate:null}}function yP(i){var u=new Set,d=[];i=S(i);for(var v=i.next();!v.done;v=i.next()){v=v.value;var g=Mh(v);u.has(g)||(d.push(v),u.add(g))}return u=J1("audio",d),v=J1("video",d),i=J1(In,d),v=Wke(v),u=u.concat(v).concat(i),d.length&&!u.length?d:u}function Wke(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?Qo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(d){return d!=u}):i}function Gke(i){var u=null;return new xr().box("moov",An).box("trak",An).box("mdia",An).box("minf",An).box("stbl",An).S("stsd",mf).box("encv",Xa).box("enca",LC).box("sinf",An).box("schi",An).S("tenc",function(d){d=d.reader,d.Y(),d.Y(),d.Y(),d.Y(),d=d.Tb(16,!1),u=Ai(d)}).parse(i,!0),u}function bP(i,u,d){var v,g,k,T,P;return ie(function(D){if(D.g==1)return v=u,v.cryptoKey?D.A(2):M(D,v.fetchKey(),3);if(g=v.iv,!g)for(g=ln(new ArrayBuffer(16)),k=v.firstMediaSequenceNumber+d,T=g.byteLength-1;T>=0;T--)g[T]=k&255,k>>=8;return u.blockCipherMode=="CBC"?P={name:"AES-CBC",iv:g}:P={name:"AES-CTR",counter:g,length:64},D.return(o.crypto.subtle.decrypt(P,v.cryptoKey,i))})}function Rb(i,u,d,v,g){return i=ro(i,v,g),(u!=0||d!=null)&&(i.headers.Range=d?"bytes="+u+"-"+d:"bytes="+u+"-"),i}function Pq(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 Ug(function(){return Kke(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 Rn(function(){if(d.j&&d.g)if(d.j.presentationTimeline.W()){var v=d.j.presentationTimeline.Xb(),g=d.j.presentationTimeline.Gb();g-v>1?_ke(d.g.Z,v,g):oP(d.g.Z)}else oP(d.g.Z),d.u&&d.u.stop();else d.u&&d.u.stop()}),this.I=null,this.J=!1,this.K=new Rn(function(){var v=d.g.video;!v.ended&&d.I&&(d.J=!0,v.currentTime=d.I,d.I=null)}),this.G=new Pe}l=Pq.prototype,l.destroy=function(){return this.l.destroy()};function Kke(i){var u,d,v,g,k,T,P;return ie(function(D){if(D.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=S(i.h.values()),v=d.next();!v.done;v=d.next())g=v.value,Sf(g),u.push(ex(g)),g.ha&&(Sc(g.ha),g.ha=null);for(k=S(i.m.values()),T=k.next();!T.done;T=k.next())P=T.value,Sc(P);return M(D,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,j(D)})}l.configure=function(i){if(this.i=i,this.X=new rK({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&&(Sc(u.ha),u.ha=null),u=S(this.m.keys());for(var d=u.next();!d.done;d=u.next())d=d.value,Sc(this.m.get(d)),this.m.delete(d)}for(i.disableTextPrefetch&&(u=this.h.get(In))&&u.ha&&(Sc(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(Sc(u.ha),u.ha=null),u=S(this.h.keys()),d=u.next();!d.done;d=u.next())d=this.h.get(d.value),d.ha?(Aq(d.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(Sc(d.ha),d.ha=null)):i.segmentPrefetchLimit>0&&(d.ha=kP(this,d.stream));i.disableAudioPrefetch||ewe(this)};function qke(i,u,d){i.j.presentationTimeline.W()||(i.aa=u,i.$=d)}l.start=function(i){var u=this;return ie(function(d){if(d.g==1)return M(d,Qke(u,i||new Map),2);jr(u.l),u.N=!0,j(d)})};function Yke(i,u){var d,v,g,k,T,P;ie(function(D){switch(D.g){case 1:return d=Li,i.V++,v=i.V,V(D,2),M(D,eq(i.g.Z,d.Na),4);case 4:U(D,3);break;case 2:g=X(D),i.g&&i.g.onError(g);case 3:k=Bi(u.mimeType,u.codecs),UC(i.g.Z,k,i.j.sequenceMode,u.external),T=i.g.Z.aa,(T.isTextVisible()||i.i.alwaysStreamText)&&i.V==v&&(P=ZC(i,u),i.h.set(d.Na,P),Rs(i,P,0)),j(D)}})}function Xke(i){var u=i.h.get(In);u&&(Sf(u),ex(u).catch(function(){}),i.H=i.h.get(In),i.h.delete(In),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function $q(i,u){for(var d=i.g.Ob()<0,v=S(i.h.values()),g=v.next();!g.done;g=v.next())g=g.value,g.ua&&g.ua.Id(d),g.ha&&g.ha.Id(d);for(v=S(i.m.values()),g=v.next();!g.done;g=v.next())g.value.Id(d);(d=i.h.get("video"))&&(v=d.stream)&&(u?(u=v.trickModeVideo)&&!d.Mc&&(i0(i,u,!1,0,!1),d.Mc=v):(u=d.Mc)&&(d.Mc=null,i0(i,u,!0,0,!1)))}function Mq(i,u,d,v,g,k){d=d===void 0?!1:d,v=v===void 0?0:v,g=g===void 0?!1:g,k=k===void 0?!1:k,i.o=u,i.N&&(u.video&&i0(i,u.video,d,v,g,k),u.audio&&i0(i,u.audio,d,v,g,k))}function XC(i,u){ie(function(d){if(d.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?d.A(2):M(d,u.createSegmentIndex(),2):d.return();i0(i,u,!0,0,!1),j(d)})}function Zke(i){var u=i.h.get(In);u&&i0(i,u.stream,!0,0,!0)}function Jke(i,u){for(var d=S(i.M.entries()),v=d.next();!v.done;v=d.next()){var g=S(v.value);v=g.next().value,g=g.next().value,v.includes(u.type)&&(g(),i.M.delete(v))}}function i0(i,u,d,v,g,k){var T=i.h.get(u.type);T||u.type!=In?T&&(T.Mc&&(u.trickModeVideo?(T.Mc=u,u=u.trickModeVideo):T.Mc=null),T.stream!=u||g)&&(i.m.has(u)?T.ha=i.m.get(u):T.ha&&Uke(T.ha,u),u.type==In&&T.stream!=u&&(g=Bi(u.mimeType,u.codecs),UC(i.g.Z,g,i.j.sequenceMode,u.external)),!i.m.has(T.stream)&&T.stream.closeSegmentIndex&&(T.Ja?(g="("+T.type+":"+T.stream.id+")",i.M.has(g)||i.M.set(g,T.stream.closeSegmentIndex)):T.stream.closeSegmentIndex()),g=T.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,T.stream=u,T.ua=null,T.cg=!!k,u.dependencyStream?T.Ec=ZC(i,u.dependencyStream):T.Ec=null,Bq(i),g&&(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&&(ex(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,SP(i,u),Rq(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):(Sf(T),xP(i,T,!0,v).catch(function(P){i.g&&i.g.onError(P)})):T.Ja||T.qb||Rs(i,T,0),Rq(i,T).catch(function(P){i.g&&i.g.onError(P)})):Yke(i,u)}function Rq(i,u){var d,v,g;return ie(function(k){if(k.g==1)return u.Va?(d=u.stream,v=u.Va,d.segmentIndex?k.A(2):M(k,d.createSegmentIndex(),2)):k.return();if(k.g!=4)return g=d.dependencyStream,!g||g.segmentIndex?k.A(4):M(k,g.createSegmentIndex(),4);if(u.Va!=v||u.stream!=d)return k.return();var T=i.g.lc(),P=Lv(i.g.Z,u.type),D=u.stream.segmentIndex.find(u.La?u.La.endTime:T),B=D==null?null:u.stream.segmentIndex.get(D);D=B?K5(B):null,B&&!D&&(D=(B.endTime-B.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),D?((B=B.ba)&&(D+=(B.endByte?B.endByte+1-B.startByte:null)||0),B=i.g.getBandwidthEstimate(),T=D*8/B<(P||0)-T-i.i.rebufferingGoal||u.Va.h.g>D):T=!0,T&&u.Va.abort(),j(k)})}l.bd=function(){if(this.g){for(var i=this.g.lc(),u=S(this.h.keys()),d=u.next();!d.done;d=u.next()){var v=d.value;d=this.h.get(v);var g;if((g=!this.J)&&(g=this.g.Z,v==In?(g=g.h,g=g.g==null||g.h==null?!1:i>=g.g&&i0?new YC(i.i.segmentPrefetchLimit,u,function(v,g,k){return QC(v,g,k||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function ewe(i){for(var u=i.i.segmentPrefetchLimit,d=i.i.prefetchAudioLanguages,v=S(i.j.variants),g=v.next(),k={};!g.done;k={Mb:void 0},g=v.next())if(k.Mb=g.value,k.Mb.audio)if(i.m.has(k.Mb.audio)){if(g=i.m.get(k.Mb.audio),Aq(g,u),!(u>0&&d.some((function(P){return function(D){return Bg(P.Mb.audio.language,D)}})(k)))){var T=i.h.get(k.Mb.audio.type);g!==(T&&T.ha)&&Sc(g),i.m.delete(k.Mb.audio)}}else u<=0||!d.some((function(P){return function(D){return Bg(P.Mb.audio.language,D)}})(k))||!(g=kP(i,k.Mb.audio))||(k.Mb.audio.segmentIndex||k.Mb.audio.createSegmentIndex(),i.m.set(k.Mb.audio,g))}l.updateDuration=function(){var i=oC(),u=this.j.presentationTimeline.getDuration();u<1/0?(i&&(this.u&&this.u.stop(),oP(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 twe(i,u){var d,v,g,k,T,P,D,B,H;return ie(function(K){switch(K.g){case 1:if(jr(i.l),d=Li,u.Ja||u.qb==null||u.Ub)return K.return();if(u.qb=null,!u.ec){K.A(2);break}return M(K,xP(i,u,u.Kd,u.ld),3);case 3:return K.return();case 2:if(Jke(i,u),u.stream.segmentIndex){K.A(4);break}return v=u.stream,V(K,5),M(K,u.stream.createSegmentIndex(),7);case 7:U(K,6);break;case 5:return g=X(K),M(K,_P(i,u,g),8);case 8:return K.return();case 6:if(v!=u.stream)return v.closeSegmentIndex&&v.closeSegmentIndex(),u.Ja||u.qb||Rs(i,u,0),K.return();case 4:if(!u.Ec){K.A(9);break}if(u.Ec.stream.segmentIndex){K.A(9);break}return V(K,11),M(K,u.Ec.stream.createSegmentIndex(),13);case 13:U(K,9);break;case 11:X(K);case 9:V(K,14),k=nwe(i,u),k!=null&&(Rs(i,u,k),u.Zd=!1),U(K,15);break;case 14:return T=X(K),M(K,_P(i,u,T),16);case 16:return K.return();case 15:if(u.type===d.Na)return K.return();if(P=[u],D=u.type===d.ka?d.Aa:d.ka,(B=i.h.get(D))&&P.push(B),!i.N||!P.every(function(Q){return Q.endOfStream})){K.A(0);break}return M(K,i.g.Z.endOfStream(),18);case 18:jr(i.l),H=i.g.Z.getDuration(),H!=0&&H=k)return d/2;if(P=!u.ua,D=Dq(i,u,v,D),!D)return d;T=u.pb;var B=D.ba;T&&B&&_b(B,T)&&(T.g=B.g),T=!1,P&&u.cg&&(T=!0,u.cg=!1),P=1/0,B=Array.from(i.h.values()),B=S(B);for(var H=B.next();!H.done;H=B.next())H=H.value,CP(H)||H.ua&&!H.ua.current()||(P=Math.min(P,H.La?H.La.endTime:v));return g>=P+i.j.presentationTimeline.h?d:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya(D.startTime+.001),$b(u.ha,D.startTime).catch(function(){})),Ob(i)&&awe(i,u,D)||(rwe(i,u,v,D,T).catch(function(){}),u.Ec&&Oq(i,u.Ec,v,k)),null)}function Dq(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||Ob(i)?0:i.i.inaccurateManifestTolerance;var g=Math.max(d-v,0);i=i.g.Ob()<0;var k=null;return v&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(g,!1,i)),k=u.ua&&u.ua.next().value),k||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(d,!1,i)),k=u.ua&&u.ua.next().value),k}function rwe(i,u,d,v,g){var k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me,Le,Ue,rt;return ie(function(Be){switch(Be.g){case 1:if(k=Li,T=u.stream,P=u.ua,u.Ja=!0,V(Be,2),v.Jc()==2)throw new Ye(1,1,1011);return M(Be,owe(i,u,v,g),4);case 4:return jr(i.l),i.F?Be.return():(D=T.mimeType=="video/mp4"||T.mimeType=="audio/mp4",B=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&B&&D&&(i.j.type!="HLS"||v.o)?(Q=new Uint8Array(0),oe=re=!1,ue=function(Ie){var Je,nt,tt;return ie(function(ot){switch(ot.g){case 1:if(re||(oe=!0,jr(i.l),i.F))return ot.return();if(V(ot,2),Q=Oi(Q,Ie),Je=!1,nt=0,new xr().box("mdat",function(at){nt=at.size+at.start,Je=!0}).parse(Q,!1,!0),!Je){ot.A(4);break}return tt=Q.subarray(0,nt),Q=Q.subarray(nt),M(ot,wP(i,u,d,T,v,tt,!0,g),5);case 5:u.ha&&u.ua&&$b(u.ha,v.startTime,!0);case 4:U(ot,0);break;case 2:le=X(ot),j(ot)}})},M(Be,Db(i,u,v,ue),9)):(H=Db(i,u,v),M(Be,H,7)));case 7:return K=Be.h,jr(i.l),i.F?Be.return():(jr(i.l),u.ec?(u.Ja=!1,Rs(i,u,0),Be.return()):M(Be,wP(i,u,d,T,v,K,!1,g),6));case 9:if(we=Be.h,le)throw le;if(oe){Be.A(10);break}return re=!0,jr(i.l),i.F?Be.return():u.ec?(u.Ja=!1,Rs(i,u,0),Be.return()):M(Be,wP(i,u,d,T,v,we,!1,g),10);case 10:u.ha&&u.ua&&$b(u.ha,v.startTime,!0);case 6:if(jr(i.l),i.F)return Be.return();u.La=v,P.next(),u.Ja=!1,u.ah=!1,me=i.g.Z.Fc(),Le=me[u.type],JSON.stringify(Le),u.ec||(Ue=null,u.type===k.Aa?Ue=i.h.get(k.ka):u.type===k.ka&&(Ue=i.h.get(k.Aa)),Ue&&Ue.type==k.ka?i.g.wf(v,u.stream,Ue.stream.isAudioMuxedInVideo):i.g.wf(v,u.stream,u.stream.codecs.includes(","))),Sf(u),Rs(i,u,0),U(Be,0);break;case 2:if(rt=X(Be),jr(i.l,rt),i.F)return Be.return();if(u.Ja=!1,rt.code==7001)u.Ja=!1,Sf(u),Rs(i,u,0),Be.A(0);else if(u.type==k.Na&&i.i.ignoreTextStreamFailures)i.h.delete(k.Na),Be.A(0);else return rt.code==3017?M(Be,iwe(i,u,rt),0):(u.Zd=!0,rt.category==1&&u.ha&&Mb(u.ha,v),rt.severity=2,M(Be,_P(i,u,rt),0))}})}function Oq(i,u,d,v){var g,k,T,P,D,B,H,K,Q,re,oe;return ie(function(le){switch(le.g){case 1:for(g=u.stream,P=(T=(k=g.segmentIndex)&&k.Vb(d))&&T.next().value;P&&i.O.includes(P.startTime);)P=T&&T.next().value;if(!P){le.A(0);break}if(D=P.ba,!D||_b(D,u.pb)){le.A(3);break}return u.pb=D,V(le,4),M(le,Db(i,u,D),6);case 6:B=le.h;var ue=i.g.Z;ue.H&&Lg(ue.H,B,0,g),i.O=[],U(le,3);break;case 4:throw H=X(le),u.pb=null,H;case 3:if(u.La&&u.La==P){le.A(0);break}return u.La=P,V(le,8),M(le,Db(i,u,P),10);case 10:K=le.h,ue=i.g.Z,ue.H&&Lg(ue.H,K,0,g),i.O.push(P.startTime),U(le,9);break;case 8:throw Q=X(le),u.La=null,Q;case 9:if(re=Math.max.apply(Math,[0].concat(I(i.O))),oe=i.g.lc(),oe+v>re)return M(le,Oq(i,u,P.startTime,v),0);le.A(0)}})}function iwe(i,u,d){var v,g,k,T,P,D,B;return ie(function(H){switch(H.g){case 1:if(v=Array.from(i.h.values()),v.some(function(K){return K!=u&&K.ah})){H.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return g=TP(i,d),i.g.disableStream(u.stream,g)||Rs(i,u,4),H.return();if(k=Math.round(100*i.C),k>20){i.C-=.2,H.A(3);break}if(k>4){i.C-=.04,H.A(3);break}if(T=TP(i,d),P=i.g.disableStream(u.stream,T),!P){u.Zd=!0,i.F=!0,i.g.onError(d),H.A(5);break}return i.C=1,D=i.g.lc(),M(H,JC(i,u,D),5);case 5:return H.return();case 3:return u.ah=!0,B=i.g.lc(),M(H,JC(i,u,B),2);case 2:Rs(i,u,4),j(H)}})}function owe(i,u,d,v){var g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me,Le;return ie(function(Ue){switch(Ue.g){case 1:if(g=Li,k=u.La==null,T=[],P=Math.max(0,Math.max(d.appendWindowStart,i.aa)-.1),D=Math.min(d.appendWindowEnd,i.$)+.1,B=d.codecs||u.stream.codecs,H=Mh(B),K=Ya(d.mimeType||u.stream.mimeType),Q=d.timestampOffset,Q==u.kf&&P==u.qc&&D==u.nc&&H==u.hf&&K==u.jf){Ue.A(2);break}if(re=u.hf&&u.jf&&Pke(i.g.Z,u.type,K,B,nx(i)),!re){Ue.A(3);break}if(oe=null,u.type===g.Aa?oe=i.h.get(g.ka):u.type===g.ka&&(oe=i.h.get(g.Aa)),!oe){Ue.A(3);break}return M(Ue,ex(oe).catch(function(){}),5);case 5:oe.pb=null,oe.qc=null,oe.nc=null,SP(i,oe);case 3:return M(Ue,Nq(i,u,Q,P,D,d,H,K),2);case 2:return _b(d.ba,u.pb)||(u.pb=d.ba,d.l&&d.ba&&(le=Db(i,u,d.ba),ue=function(){var rt,Be,Ie,Je,nt,tt,ot,at,kt,wt,ft;return ie(function(mt){switch(mt.g){case 1:return V(mt,2),M(mt,le,4);case 4:return rt=mt.h,jr(i.l),Be=null,Ie=new Map,Je={projection:null,hfov:null},u.stream&&(nt=u.stream.videoLayout)&&(tt=nt.split("/"),tt.includes("PROJ-RECT")?Je.projection="rect":tt.includes("PROJ-EQUI")?Je.projection="equi":tt.includes("PROJ-HEQU")?Je.projection="hequ":tt.includes("PROJ-PRIM")?Je.projection="prim":tt.includes("PROJ-AIV")&&(Je.projection="hequ")),ot=new xr,ot.box("moov",An).box("trak",An).box("mdia",An).S("mdhd",function(It){Be=OC(It.reader,It.version).timescale}).box("hdlr",function(It){switch(It=It.reader,It.skip(8),It.Yc()){case"soun":Ie.set(g.ka,Be);break;case"vide":Ie.set(g.Aa,Be)}Be=null}),u.type!==g.Aa||Je.projection||ot.box("minf",An).box("stbl",An).S("stsd",mf).box("encv",Xa).box("avc1",Xa).box("avc3",Xa).box("hev1",Xa).box("hvc1",Xa).box("dvav",Xa).box("dva1",Xa).box("dvh1",Xa).box("dvhe",Xa).box("dvc1",Xa).box("dvi1",Xa).box("vexu",An).box("proj",An).S("prji",function(It){It=It.reader.Yc(),Je.projection=It}).box("hfov",function(It){It=It.reader.U()/1e3,Je.hfov=It}),ot.parse(rt,!0,!0),u.type===g.Aa&&swe(i,Je),Ie.has(u.type)?d.ba.timescale=Ie.get(u.type):Be!=null&&(d.ba.timescale=Be),at=u.stream.segmentIndex,at instanceof hi&&(kt=Nke(at,d.startTime)),wt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,M(mt,i.g.Oh(u.type,rt),5);case 5:return M(mt,HC(i.g.Z,u.type,rt,null,u.stream,wt,u.bd,v,!1,!1,kt),6);case 6:U(mt,0);break;case 2:throw ft=X(mt),u.pb=null,ft}})},we=d.startTime,k&&(me=Lv(i.g.Z,u.type),me!=null&&(we=me)),i.g.Ck(we,d.ba),T.push(ue()))),Le=u.La?u.La.i:-1,d.i!=Le&&T.push(xke(i.g.Z,u.type,d.startTime)),M(Ue,Promise.all(T),0)}})}function Nq(i,u,d,v,g,k,T,P){var D,B,H,K,Q;return ie(function(re){switch(re.g){case 1:if(D=Li,B=nx(i),V(re,2),u.qc=v,u.nc=g,T&&(u.hf=T),P&&(u.jf=P),u.kf=d,H=i.j.sequenceMode||i.j.type=="HLS",K=null,u.type===D.Aa?K=i.h.get(D.ka):u.type===D.ka&&(K=i.h.get(D.Aa)),!(K&&K.stream&&K.stream.isAudioMuxedInVideo)){re.A(4);break}return M(re,tq(i.g.Z,K.type,d,v,g,H,K.stream.mimeType,K.stream.codecs,B),4);case 4:return M(re,tq(i.g.Z,u.type,d,v,g,H,k.mimeType||u.stream.mimeType,k.codecs||u.stream.codecs,B),6);case 6:U(re,0);break;case 2:throw Q=X(re),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,Q}})}function wP(i,u,d,v,g,k,T,P){T=T===void 0?!1:T,P=P===void 0?!1:P;var D,B,H,K;return ie(function(Q){switch(Q.g){case 1:return D=v.closedCaptions&&v.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(B=v.mimeType=="video/mp4"||v.mimeType=="audio/mp4",H=null,g.ba&&(H=g.ba.timescale),B&&H&&v.type==="video"&&i.j.type=="DASH"&&new xr().box("moof",An).box("traf",An).S("tfdt",function(re){var oe,le,ue,we,me,Le;return ie(function(Ue){return oe=DC(re.reader,re.version),le=oe.baseMediaDecodeTime,le?(ue=-le/H,we=Number(u.kf)||0,weD&&(K=Math.max(P-k,B-D-T)),K<=D?Q.return():M(Q,i.g.Z.remove(u.type,T,T+K,g),2));if(Q.g!=4)return jr(i.l),i.H?M(Q,JC(i,i.H,d),4):Q.A(0);jr(i.l),j(Q)})}function CP(i){return i&&i.type==In&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function Db(i,u,d,v){var g,k,T,P,D;return ie(function(B){switch(B.g){case 1:if(g=d.Yb())return B.return(g);if(k=null,u.ha){var H=u.ha,K=H.g;d instanceof Ca&&(K=H.j),K.has(d)?(H=K.get(d),v&&(H.wh=v),k=H.je):k=null}return k||(k=QC(d,u.stream,v||null,i.i.retryParameters,i.g.tc)),T=0,u.ua&&(T=u.ua.h),u.Va=k,M(B,k.promise,2);case 2:if(P=B.h,u.Va=null,D=P.data,!d.aesKey){B.A(3);break}return M(B,bP(D,d.aesKey,T),4);case 4:D=B.h;case 3:return B.return(D)}})}function QC(i,u,d,v,g,k){k=k===void 0?!1:k;var T=i instanceof pn?i:void 0,P=T?1:0;return i=Rb(i.P(),i.startByte,i.endByte,v,d),i.contentType=u.type,g.request(nu,i,{type:P,stream:u,segment:T,isPreload:k})}function xP(i,u,d,v){var g,k;return ie(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)&&Sc(u.ha),v?(g=i.g.lc(),k=i.g.Z.getDuration(),M(T,i.g.Z.remove(u.type,g+v,k),3)):M(T,eq(i.g.Z,u.type),4);if(T.g!=3)return jr(i.l),d?M(T,i.g.Z.flush(u.type),3):T.A(3);jr(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||Rs(i,u,0),j(T)})}function Rs(i,u,d){var v=u.type;(v!=In||i.h.has(v))&&(u.qb=new pb(function(){var g;return ie(function(k){if(k.g==1)return V(k,2),M(k,twe(i,u),4);if(k.g!=2)return U(k,0);g=X(k),i.g&&i.g.onError(g),j(k)})}).ia(d))}function Sf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function ex(i){return ie(function(u){return i.Va?M(u,i.Va.abort(),0):u.A(0)})}function _P(i,u,d){var v;return ie(function(g){if(g.g==1)return d.code==3024?(u.Ja=!1,Sf(u),Rs(i,u,0),g.return()):M(g,iK(i.X),2);if(jr(i.l),d.category===1&&d.code!=1003){if(u.Mc)return $q(i,!1),g.return();v=TP(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),j(g)})}function TP(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function tx(i,u){u=u===void 0?!1:u;var d,v,g,k,T,P;return ie(function(D){if(D.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=S(i.h.keys()),d=u.next();!d.done;d=u.next())if(d=i.h.get(d.value),d.type!==Li.Na&&(d=d.stream)&&d.fullMimeTypes&&d.fullMimeTypes.size>1){for(i=new Set,u=S(d.fullMimeTypes),d=u.next();!d.done;d=u.next())i.add(ub(d.value));return i.size>1}}return!1}function Bq(i){i.G.Pa(),Ob(i)&&(i.G.D(i.g.video,"waiting",function(){return EP(i)}),i.G.D(i.g.video,"timeupdate",function(){return EP(i)}))}function EP(i){if(Ob(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 awe(i,u,d){if(u.type===In)return!1;var v=u.pb;if(!v)return!1;var g=d.ba;if(d=v.g!==g.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(v.encrypted||g.encrypted||(d=!1),v.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&v.encrypted==g.encrypted&&(d=!1),i.i.crossBoundaryStrategy==="keep"&&v.mimeType&&g.mimeType){var k=ms(wa(v.mimeType)),T=ms(wa(v.mimeType));v.mimeType==g.mimeType&&k==T&&(d=!1)}return d&&(i.J||u.bd)&&(i.J=!1,tx(i,!0).then(function(){var P=new Map().set("oldEncrypted",v.encrypted).set("newEncrypted",g.encrypted);i.g.onEvent(new Xt("boundarycrossed",P))})),d}function nx(i,u){function d(k){if(k.fullMimeTypes&&k.fullMimeTypes.size>1&&i.h.has(k.type)){var T=i.h.get(k.type),P=Lv(i.g.Z,T.type),D=i.g.lc();(T=Dq(i,T,D,P))&&T.codecs&&T.mimeType&&(k.codecs=T.codecs,k.mimeType=T.mimeType)}}u=u===void 0?!1:u;var v=new Map,g=i.o.audio;return g&&(d(g),v.set("audio",g)),(g=i.o.video)&&(d(g),v.set("video",g)),u&&i.B&&v.set(In,i.B),v}function rx(){}function IP(i,u,d,v,g){var k=g in v,T=k?d.constructor==Object&&Object.keys(v).length==0:d.constructor==Object&&Object.keys(d).length==0,P=k||T,D=!0,B;for(B in u){var H=g+"."+B,K=k?v[g]:d[B];P||B in d?u[B]===void 0?K===void 0||P?delete i[B]:i[B]=Ut(K):T?i[B]=u[B]:K.constructor==Object&&u[B]&&u[B].constructor==Object?(i[B]||(i[B]=Ut(K)),H=IP(i[B],u[B],K,v,H),D=D&&H):typeof u[B]!=typeof K||u[B]==null||typeof u[B]!="function"&&u[B].constructor!=K.constructor?(je("Invalid config, wrong type for "+H),D=!1):typeof d[B]=="function"&&d[B].length!=u[B].length?(We("Unexpected number of arguments for "+H),i[B]=u[B]):i[B]=Array.isArray(i[B])?u[B].slice():u[B]:(je("Invalid config, unrecognized key "+H),D=!1)}return D}function ix(i,u){for(var d={},v=d,g=0,k=0;g=i.indexOf(".",g),!(g<0);)(g==0||i[g-1]!="\\")&&(k=i.substring(k,g).replace(/\\\./g,"."),v[k]={},v=v[k],k=g+1),g+=1;return v[i.substring(k).replace(/\\\./g,".")]=u,d}function o0(i,u){return i&&u}function Fq(i,u){function d(k){for(var T=S(Object.keys(k)),P=T.next();!P.done;P=T.next())if(P=P.value,!(k[P]instanceof HTMLElement))if(g(k[P])&&Object.keys(k[P]).length===0)delete k[P];else{var D=k[P];Array.isArray(D)&&D.length===0||typeof k[P]=="function"?delete k[P]:g(k[P])&&(d(k[P]),Object.keys(k[P]).length===0&&delete k[P])}}function v(k,T){return Object.keys(k).reduce(function(P,D){var B=k[D];return T.hasOwnProperty(D)?B instanceof HTMLElement&&T[D]instanceof HTMLElement?B.isEqualNode(T[D])||(P[D]=B):g(B)&&g(T[D])?(B=v(B,T[D]),(Object.keys(B).length>0||!g(B))&&(P[D]=B)):Array.isArray(B)&&Array.isArray(T[D])?Nt(B,T[D])||(P[D]=B):Number.isNaN(B)&&Number.isNaN(T[D])||B!==T[D]&&(P[D]=B):P[D]=B,P},{})}function g(k){return k&&typeof k=="object"&&!Array.isArray(k)}return i=v(i,u),d(i),i}Ve("shaka.util.ConfigUtils",rx),rx.getDifferenceFromConfigObjects=Fq,rx.convertToConfigObject=ix,rx.mergeConfigObjects=IP,Ve("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function xa(){}function jq(i){return i=Zr(i),new Ar(i).Db}function Nb(i,u,d){function v(P){yo(k).setUint32(T,P.byteLength,!0),T+=4,k.set(ln(P),T),T+=P.byteLength}if(!d||!d.byteLength)throw new Ye(2,6,6015);var g;typeof u=="string"?g=ba(u,!0):g=u,i=Zr(i),i=ba(i,!0);var k=new Uint8Array(12+i.byteLength+g.byteLength+d.byteLength),T=0;return v(i),v(g),v(d),k}function AP(i,u,d){return u!=="skd"?i:(u=d.serverCertificate,d=Zr(i).split("skd://").pop(),Nb(i,d,u))}function ox(i,u){i===2&&(i=u.drmInfo)&&xC(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}Ve("shaka.drm.FairPlay",xa),xa.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&xC(i.keySystem)){try{var d=zt(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=Hs(Sa(d)))}},xa.muxFairPlayRequest=function(i,u){ox(i,u)},xa.expressplayFairPlayRequest=function(i,u){if(i===2){var d=u.drmInfo;d&&xC(d.keySystem)&&ox(i,u)}},xa.conaxFairPlayRequest=function(i,u){ox(i,u)},xa.ezdrmFairPlayRequest=function(i,u){ox(i,u)},xa.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&xC(i.keySystem)&&(i=ln(u.body),i=$u(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=ci("spc="+i))},xa.muxInitDataTransform=function(i,u,d){return AP(i,u,d)},xa.expressplayInitDataTransform=function(i,u,d){return AP(i,u,d)},xa.conaxInitDataTransform=function(i,u,d){if(u!=="skd")return i;u=d.serverCertificate,d=Zr(i).split("skd://").pop().split("?").shift(),d=o.atob(d);var v=new ArrayBuffer(d.length*2);v=Sl(v);for(var g=0,k=d.length;g2||g.channelsCount>2)&&v.channelsCount!=g.channelsCount||v.spatialAudio!==g.spatialAudio||u&&!Vq(v,g))&&zq(v.roles,g.roles)&&v.groupId===g.groupId)}return!v&&(v=d.video&&i.video)&&(d=d.video,v=i.video,v=!((!u||Vq(d,v))&&zq(d.roles,v.roles))),v?!1:(this.g.add(i),!0)},sx.prototype.values=function(){return this.g.values()};function Vq(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(v){return Mh(v)}),u=u.codecs.split(",").map(function(v){return Mh(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 pwe(i,u){if(u=="AUTO"){var d=i.some(function(v){return!!(v.video&&v.video.hdr&&v.video.hdr=="HLG")});u=Se().sd(d)}return i.filter(function(v){return!(v.video&&v.video.hdr&&v.video.hdr!=u)})}function vwe(i,u){return i.filter(function(d){return!(d.video&&d.video.videoLayout&&d.video.videoLayout!=u)})}function mwe(i,u){return i.filter(function(d){return!(d.audio&&d.audio.spatialAudio!=u)})}function gwe(i,u){return i.filter(function(d){return!(d.audio&&d.audio.codecs!=u)})}function ax(){}function s0(){var i=1/0,u=Se();navigator.connection&&navigator.connection.saveData&&(i=360);var d={retryParameters:Du(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(P,D,B){return o.shakaMediaKeysPolyfill==="apple"&&D=="skd"&&(D=B.serverCertificate,B=jq(P),P=Nb(P,B,D)),P},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},v="reload";of()&&u.Pc()&&(v="smooth");var g={retryParameters:Du(),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:lx,manifestPreprocessorTXml:ux,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:lx,manifestPreprocessorTXml:ux,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},k={trackSelectionCallback:function(P){return ie(function(D){return D.return(P)})},downloadSizeCallback:function(P){var D;return ie(function(B){return B.g==1?navigator.storage&&navigator.storage.estimate?M(B,navigator.storage.estimate(),3):B.return(!0):(D=B.h,B.return(D.usage+P0?M(T,Promise.all(d),0):T.A(0)})}function Pwe(i){var u,d,v,g,k;return ie(function(T){return!i.o&&(u=qq(i))&&(i.o=u),i.o?(d=i.h.presentationTimeline.W(),v=[],g=i.o,g.video&&v.push(MP(i,g.video,d)),g.audio&&v.push(MP(i,g.audio,d)),(k=Fg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&JG(g.audio,k,i.g)&&(v.push(MP(i,k,d)),i.T=k),M(T,Promise.all(v),0)):T.A(0)})}function qq(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=kC(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function MP(i,u,d){var v,g,k,T,P;return ie(function(D){return D.g==1?(v=i.g.streaming.segmentPrefetchLimit||2,g=new YC(v,u,function(B,H,K){return QC(B,H,K||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,g),u.segmentIndex?D.A(2):M(D,u.createSegmentIndex(),2)):(k=typeof i.m=="number"?i.m:0,T=u.segmentIndex.Vb(k),P=null,T&&(P=T.current(),P||(P=T.next().value)),P||(P=bc(u.segmentIndex)),P?d?P.ba?M(D,Eq(g,P.ba),0):D.A(0):M(D,$b(g,P.startTime),0):D.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,d,v;return ie(function(g){if(g.g==1)return i.j=!0,!i.l||i.qa?g.A(2):M(g,i.l.stop(),2);if(g.g!=4)return i.u&&i.u.release(),i.I&&!i.wa&&i.I.release(),!i.i||i.aa?g.A(4):M(g,i.i.destroy(),4);if(i.M.size>0&&!i.xa)for(u=S(i.M.values()),d=u.next();!d.done;d=u.next())v=d.value,Sc(v);j(g)})};function Yq(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))}Ve("shaka.media.PreloadManager",iu),iu.prototype.destroy=iu.prototype.destroy,iu.prototype.waitForFinish=iu.prototype.ll,iu.prototype.getPrefetchedTextTrack=iu.prototype.Qj,iu.prototype.getPrefetchedVariantTrack=iu.prototype.Rj;function $v(i,u){dr.call(this);var d=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:a0,Uc:function(v,g){return wf(d,"enter",v,g)}},{kd:jb,jd:a0,Uc:function(v,g){return wf(d,"enter",v,g)}},{kd:Vb,jd:a0,Uc:function(v,g){return wf(d,"enter",v,g)}},{kd:a0,jd:jb,Uc:function(v,g){return wf(d,"exit",v,g)}},{kd:a0,jd:Vb,Uc:function(v,g){return wf(d,"exit",v,g)}},{kd:jb,jd:Vb,Uc:function(v,g){g?wf(d,"skip",v,g):(wf(d,"enter",v,g),wf(d,"exit",v,g))}},{kd:Vb,jd:jb,Uc:function(v,g){return wf(d,"skip",v,g)}}],this.h=new Pe,this.h.D(this.i,"regionremove",function(v){d.g.delete(v.region)})}_($v,dr),$v.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,dr.prototype.release.call(this)},$v.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var d=S(this.i.h.values()),v=d.next();!v.done;v=d.next()){v=v.value;var g=this.g.get(v),k=iv.endTime?Vb:a0;this.g.set(v,k);for(var T=S(this.m),P=T.next();!P.done;P=T.next())P=P.value,P.kd==g&&P.jd==k&&P.Uc(v,u)}}};function wf(i,u,d,v){u=new Xt(u,new Map([["region",d],["seeking",v]])),i.dispatchEvent(u)}var jb=1,a0=2,Vb=3;function Mv(i,u,d){var v,g,k,T,P,D,B;return ie(function(H){switch(H.g){case 1:return v=l0(i),(g=$we.get(v))?H.return(g):(k=0,T=ro([i],d),V(H,2),T.method="HEAD",M(H,u.request(k,T).promise,4));case 4:P=H.h,g=P.headers["content-type"],U(H,3);break;case 2:if(D=X(H),!D||D.code!=1002&&D.code!=1001){H.A(3);break}return T.method="GET",M(H,u.request(k,T).promise,6);case 6:B=H.h,g=B.headers["content-type"];case 3:return H.return(g?g.toLowerCase().split(";").shift():"")}})}function l0(i){return i=new Ar(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var $we=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 Fh={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"},Xq=S(Object.keys(Fh)),RP=Xq.next();!RP.done;RP=Xq.next()){var Zq=RP.value;Fh[Zq.toLowerCase()]=Fh[Zq]}function Jq(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(T){return Jq(T,i)}).join("");if(!i.payload)return i.payload;var d=[],v=i.fontWeight>=Dg,g=i.fontStyle==Og,k=i.textDecoration.includes(cf);return v&&d.push(["b"]),g&&d.push(["i"]),k&&d.push(["u"]),g=i.color,g==""&&u&&(g=u.color),v="",(g=Qq(g))&&(v+="."+g),g=i.backgroundColor,g==""&&u&&(g=u.backgroundColor),(u=Qq(g))&&(v+=".bg_"+u),v&&d.push(["c",v]),d.reduceRight(function(T,P){var D=S(P);return P=D.next().value,D=D.next().value,"<"+P+(D===void 0?"":D)+">"+T+""},i.payload)}function Qq(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=S(eY(i));for(var v=i.next();!v.done;v=i.next())if(v=v.value,v.isContainer)d.push.apply(d,I(DP(v.nestedCues,v)));else{var g=v.clone();g.nestedCues=[],g.payload=Jq(v,u),d.push(g)}return d}function eY(i){var u=[];i=S(i);for(var d=i.next(),v={};!d.done;v={ig:void 0},d=i.next())v.ig=d.value,u.some((function(g){return function(k){return dC(g.ig,k)}})(v))||u.push(v.ig);return u}function Mwe(i){function u(v){for(var g=5381,k=v.length;k;)g=g*33^v.charCodeAt(--k);return(g>>>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 tY(i,u){var d=DP(u),v=[];u=i.cues?Array.from(i.cues):[],d=S(d);for(var g=d.next(),k={};!g.done;k={vd:void 0},g=d.next())k.vd=g.value,!u.some((function(T){return function(P){return P.startTime==T.vd.startTime&&P.endTime==T.vd.endTime&&P.text==T.vd.payload}})(k))&&k.vd.payload&&(g=Mwe(k.vd))&&v.push(g);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=S(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 Rn(function(){if(u.o=null,u.j===d){var v=-1,g=!1;if(u.h.has(u.g)){var k=u.h.get(u.g);k.track.mode==="showing"?(v=u.g,g=!0):k.track.mode==="hidden"&&(v=u.g)}if(!g)for(g=S(u.h),k=g.next();!k.done;k=g.next()){var T=S(k.value);if(k=T.next().value,T=T.next().value,T.track.mode==="showing"){v=k;break}else v<0&&T.track.mode==="hidden"&&(v=k)}for(g=S(u.h),k=g.next();!k.done;k=g.next())T=S(k.value),k=T.next().value,T=T.next().value,k!==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=So.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)&&tY(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=S(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=S(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 Rwe(i){var u=Se();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"}Ve("shaka.text.NativeTextDisplayer",So),So.prototype.enableTextDisplayer=So.prototype.enableTextDisplayer,So.prototype.setTextLanguage=So.prototype.setTextLanguage,So.prototype.setTextVisibility=So.prototype.setTextVisibility,So.prototype.isTextVisible=So.prototype.isTextVisible,So.prototype.destroy=So.prototype.destroy,So.prototype.append=So.prototype.append,So.prototype.remove=So.prototype.remove,So.prototype.configure=So.prototype.configure;function gs(i,u){for(Dt("SimpleTextDisplayer","Please migrate to NativeTextDisplayer"),this.h=i,this.i=u,this.g=null,i=S(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&&tY(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&&nY(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){nY(this)};function nY(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}Ve("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 ys(){}l=ys.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(){},Ve("shaka.text.StubTextDisplayer",ys),ys.prototype.enableTextDisplayer=ys.prototype.enableTextDisplayer,ys.prototype.setTextLanguage=ys.prototype.setTextLanguage,ys.prototype.setTextVisibility=ys.prototype.setTextVisibility,ys.prototype.isTextVisible=ys.prototype.isTextVisible,ys.prototype.destroy=ys.prototype.destroy,ys.prototype.append=ys.prototype.append,ys.prototype.remove=ys.prototype.remove,ys.prototype.configure=ys.prototype.configure;function bs(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 Rn(function(){d.j.paused||jh(d)}),zb(this),this.l=new Map,this.i=new Pe,this.i.D(document,"fullscreenchange",function(){jh(d,!0)}),this.i.D(this.j,"seeking",function(){jh(d,!0)}),this.i.D(this.j,"ratechange",function(){zb(d)}),this.i.D(this.j,"resize",function(){var v=d.j,g=v.videoWidth;v=v.videoHeight,g&&v?d.u=g/v:d.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){jh(d,!0)}),this.F.observe(this.g)),this.G=new Map}l=bs.prototype,l.configure=function(i){this.C=i,zb(this),jh(this,!0)},l.append=function(i){var u=[].concat(I(this.h));i=S(eY(i));for(var d=i.next(),v={};!d.done;v={jg:void 0},d=i.next())v.jg=d.value,u.some((function(g){return function(k){return dC(k,g.jg)}})(v))||this.h.push(v.jg);this.h.length&&zb(this),jh(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}),jh(this,d>this.h.length),this.h.length||zb(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),jh(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 zb(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 Dwe(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function rY(i,u,d,v,g){var k=!1,T=[],P=[];u=S(u);for(var D=u.next();!D.done;D=u.next()){D=D.value,g.push(D);var B=i.l.get(D),H=D.startTime<=v&&D.endTime>v,K=B?B.gj:null;B&&(T.push(B.kg),B.$c&&T.push(B.$c),H||(k=!0,i.l.delete(D),B=null)),H&&(P.push(D),B?Dwe(i,K)||(k=!0):(Owe(i,D,g),B=i.l.get(D),K=B.gj,k=!0)),D.nestedCues.length>0&&K&&rY(i,D.nestedCues,K,v,g),g.pop()}if(k){for(v=S(T),g=v.next();!g.done;g=v.next())g=g.value,g.parentElement&&g.parentElement.removeChild(g);for(P.sort(function(Q,re){return Q.startTime!=re.startTime?Q.startTime-re.startTime:Q.endTime-re.endTime}),P=S(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 jh(i,u){if(i.g){var d=i.j.currentTime;if(!i.m||u!==void 0&&u){u=S(i.G.values());for(var v=u.next();!v.done;v=u.next())Eb(v.value);Eb(i.g),i.l.clear(),i.G.clear()}i.m&&rY(i,i.h,i.g,d,[])}}function Owe(i,u,d){var v=d.length>1,g=v?"span":"div";u.lineBreak&&(g="br"),u.rubyTag&&(g=u.rubyTag),v=!v&&u.nestedCues.length>0;var k=document.createElement(g);if(g!="br"&&Bwe(i,k,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==Ms?"%":"px")+"-"+T.viewportAnchorX+"x"+T.viewportAnchorY+(T.viewportAnchorUnits==Ms?"%":"px"),i.G.has(d))d=i.G.get(d);else{g=document.createElement("span");var D=T.heightUnits==Ms?"%":"px",B=T.widthUnits==Ms?"%":"px",H=T.viewportAnchorUnits==Ms?"%":"px";g.id="shaka-text-region---"+d,g.classList.add("shaka-text-region"),g.style.position="absolute";var K=T.height,Q=T.width;T.heightUnits===2&&(K=T.height*5.33,D="%"),T.widthUnits===2&&(Q=T.width*P,B="%"),g.style.height=K+D,g.style.width=Q+B,T.viewportAnchorUnits===2?(P=T.viewportAnchorY/75*100,D=T.viewportAnchorX/(i.u===4/3?160:210)*100,P-=T.regionAnchorY*K/100,D-=T.regionAnchorX*Q/100,g.style.top=P+"%",g.style.left=D+"%"):(g.style.top=T.viewportAnchorY-T.regionAnchorY*K/100+H,g.style.left=T.viewportAnchorX-T.regionAnchorX*Q/100+H),T.heightUnits!==0&&T.widthUnits!==0&&T.viewportAnchorUnits!==0&&(T=Math.max(0,Math.min(100-(parseInt(g.style.width.slice(0,-1),10)||0),parseInt(g.style.left.slice(0,-1),10)||0)),g.style.top=Math.max(0,Math.min(100-(parseInt(g.style.height.slice(0,-1),10)||0),parseInt(g.style.top.slice(0,-1),10)||0))+"%",g.style.left=T+"%"),g.style.display="flex",g.style.flexDirection="column",g.style.alignItems="center",g.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",i.G.set(d,g),d=g}}g=k,v&&(g=document.createElement("span"),g.classList.add("shaka-text-wrapper"),g.style.backgroundColor=u.backgroundColor,g.style.lineHeight="normal",k.appendChild(g)),i.l.set(u,{kg:k,gj:g,$c:d})}function Nwe(i){var u=i.direction,d=i.positionAlign;return i=i.textAlign,d!==hC?d:i==="left"||i==="start"&&u===ab||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===ab?"line-right":"center"}function Bwe(i,u,d,v,g){var k=u.style,T=d.nestedCues.length==0,P=v.length>1;k.whiteSpace="pre-wrap";var D=d.payload.replace(/\s+$/g,function(H){return" ".repeat(H.length)});if(k.webkitTextStrokeColor=d.textStrokeColor,k.webkitTextStrokeWidth=d.textStrokeWidth,k.color=d.color,k.direction=d.direction,k.opacity=d.opacity,k.paddingLeft=NP(d.linePadding,d,i.o),k.paddingRight=NP(d.linePadding,d,i.o),k.textCombineUpright=d.textCombineUpright,k.textShadow=d.textShadow,d.backgroundImage)k.backgroundImage="url('"+d.backgroundImage+"')",k.backgroundRepeat="no-repeat",k.backgroundSize="contain",k.backgroundPosition="center",d.backgroundColor&&(k.backgroundColor=d.backgroundColor),k.width="100%",k.height="100%";else{if(d.nestedCues.length)var B=u;else B=document.createElement("span"),u.appendChild(B);d.border&&(B.style.border=d.border),g||((u=Fwe(v,function(H){return H.backgroundColor}))?B.style.backgroundColor=u:D&&(B.style.backgroundColor="rgba(0, 0, 0, 0.8)")),D&&(B.setAttribute("translate","no"),B.textContent=D)}P&&!v[v.length-1].isContainer?k.display="inline":(k.display="flex",k.flexDirection="column",k.alignItems="center",d.textAlign=="left"||d.textAlign=="start"?(k.width="100%",k.alignItems="start"):(d.textAlign=="right"||d.textAlign=="end")&&(k.width="100%",k.alignItems="end"),k.justifyContent=d.displayAlign=="before"?"flex-start":d.displayAlign=="center"?"center":"flex-end"),T||(k.margin="0"),k.fontFamily=d.fontFamily,k.fontWeight=d.fontWeight.toString(),k.fontStyle=d.fontStyle,k.letterSpacing=d.letterSpacing,v=i.C?i.C.fontScaleFactor:1,(v!==1||d.fontSize)&&(k.fontSize=NP(d.fontSize||"1em",d,i.o,v)),v=d.line,v!=null&&(T=d.lineInterpretation,T==lb&&(T=1,P=16,i.u&&i.u<1&&(P=32),v=v<0?100+v/P*100:v/P*100),T==1&&(k.position="absolute",d.writingMode==gv?(k.width="100%",d.lineAlign==yv?k.top=v+"%":d.lineAlign=="end"&&(k.bottom=100-v+"%")):d.writingMode=="vertical-lr"?(k.height="100%",d.lineAlign==yv?k.left=v+"%":d.lineAlign=="end"&&(k.right=100-v+"%")):(k.height="100%",d.lineAlign==yv?k.right=v+"%":d.lineAlign=="end"&&(k.left=100-v+"%")))),k.lineHeight=d.lineHeight,i=Nwe(d),i=="line-left"?(k.cssFloat="left",d.position!==null&&(k.position="absolute",d.writingMode==gv?(k.left=d.position+"%",k.width="auto"):k.top=d.position+"%")):i=="line-right"?(k.cssFloat="right",d.position!==null&&(k.position="absolute",d.writingMode==gv?(k.right=100-d.position+"%",k.width="auto"):k.bottom=d.position+"%")):d.position!==null&&d.position!=50&&(k.position="absolute",d.writingMode==gv?(k.left=d.position+"%",k.width="auto"):k.top=d.position+"%",d.size&&(k.transform="translateX(-50%)")),k.textAlign=d.textAlign,k.textDecoration=d.textDecoration.join(" "),k.writingMode=d.writingMode,"writingMode"in document.documentElement.style&&k.writingMode==d.writingMode||(k.webkitWritingMode=d.writingMode),d.size&&(d.writingMode==gv?k.width=d.size+"%":k.height=d.size+"%")}function NP(i,u,d,v){v=v===void 0?1:v;var g=(g=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(i))?{value:Number(g[1]),unit:g[2]}:null;if(!g)return i;switch(i=g.unit,v*=g.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 Fwe(i,u){for(var d=i.length-1;d>=0;d--){var v=u(i[d]);if(v||v===0)return v}return null}Ve("shaka.text.UITextDisplayer",bs),bs.prototype.enableTextDisplayer=bs.prototype.enableTextDisplayer,bs.prototype.setTextLanguage=bs.prototype.setTextLanguage,bs.prototype.setTextVisibility=bs.prototype.setTextVisibility,bs.prototype.isTextVisible=bs.prototype.isTextVisible,bs.prototype.remove=bs.prototype.remove,bs.prototype.destroy=bs.prototype.destroy,bs.prototype.append=bs.prototype.append,bs.prototype.configure=bs.prototype.configure;function jwe(i,u){function d(k){for(var T=k,P=S(u),D=P.next();!D.done;D=P.next())D=D.value,D.end&&D.start "+d(g.endTime)+(function(k){var T=[];switch(k.textAlign){case"left":T.push("align:left");break;case"right":T.push("align:right");break;case sd:T.push("align:middle");break;case"start":T.push("align:start");break;case"end":T.push("align:end")}switch(k.writingMode){case"vertical-lr":T.push("vertical:lr");break;case"vertical-rl":T.push("vertical:rl")}return T.length?" "+T.join(" "):""})(g)+` `,i+=g.payload+` `;return i}Ve("shaka.text.WebVttGenerator",function(){});function BP(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 Pe,this.G=[],this.h=null}BP.prototype.setMediaElement=function(i){this.h=i,Wwe(this)},BP.prototype.configure=function(i){this.g=i,Gwe(this)};function Vwe(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},iY(i),i.m={},i.h=null,i.i.Pa()}function zwe(i,u){i.o=u,i.o?i.l==mx?i.l=gx:i.l==yx&&(i.l=bx):i.l==gx?i.l=mx:i.l==bx&&(i.l=yx)}function Uwe(i,u){if(i.g&&i.g.enabled&&(Ss(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 Hwe(i,u,d){try{if(!i.g.enabled)return u;var v=FP(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 g=fx;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":g=px;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":g=fY;break e}g=void 0}v.ot=g,v.su=!0;var k=Ub(v);return dx(u,k)}catch(T){return it("CMCD_SRC_ERROR","Could not generate src CMCD data.",T),u}}function Wwe(i){i.i.D(i.h,"playing",function(){i.B||(i.B=Date.now()),Ss(i,"ps",{dd:"p"})}),i.i.D(i.h,"volumechange",function(){Ss(i,i.h.muted?"m":"um")}),i.i.D(i.h,"play",function(){i.u||(i.u=Date.now(),Ss(i,"ps",{dd:"s"}))}),i.i.D(i.h,"pause",function(){Ss(i,"ps",{dd:"a"})}),i.i.D(i.j,"buffering",function(){Ss(i,"ps",{dd:"w"})}),i.i.D(i.h,"seeking",function(){return Ss(i,"ps",{dd:"k"})}),i.i.D(document,"fullscreenchange",function(){Ss(i,document.fullscreenElement?"pe":"pc")});var u=i.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?Ss(i,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&Ss(i,u.webkitDisplayingFullscreen?"pe":"pc")}),i.i.D(i.h,"enterpictureinpicture",function(){Ss(i,"pe")}),i.i.D(i.h,"leavepictureinpicture",function(){Ss(i,"pc")}),"documentPictureInPicture"in o&&i.i.D(o.documentPictureInPicture,"enter",function(d){Ss(i,"pe"),i.i.Ba(d.window,"pagehide",function(){Ss(i,"pc")})}),i.i.D(document,"visibilitychange",function(){document.hidden?Ss(i,"b",{bg:!0}):Ss(i,"b")}),i.i.D(i.j,"complete",function(){Ss(i,"ps",{dd:"e"})})}function Gwe(i){iY(i);var u=oY(i);u=S(u);for(var d=u.next();!d.done;d=u.next())if(d=d.value.timeInterval,d===void 0&&(d=oCe),d>=1){var v=new Rn(function(){return Ss(i,sCe)});v.Ea(d),i.G.push(v)}}function iY(i){if(i.G)for(var u=S(i.G),d=u.next();!d.done;d=u.next())d.value.stop();i.G=[]}function oY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===gY&&u.enabled}):[]}function sY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===mY&&u.enabled===!0}):[]}function FP(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 Ss(i,u,d){if(d=d===void 0?{}:d,u=Object.assign({e:u,ts:Date.now()},d),u=zP(i,u,gY),d=i.g.targets,!(i.g.version0&&!T.includes(P))||aY(i,k,g)}}}function u0(i,u,d){if(i.g.enabled){d=zP(i,d,vY);var v=lY({mode:vY,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 g=i.g.version==HP?Array.from(new Set([].concat(I(WP),I(eCe)))):hY;v=jP(v,g),d=VP(d,v),Kwe(d,u,i.g.useHeaders)}}function aY(i,u,d,v){var g=Du(),k=d.url;if(d.useHeaders){if(u=dY(u),!Object.keys(u).length)return;v&&Object.assign(v.headers,u),v=ro([k],g),Object.assign(v.headers,u)}else{if(u=Ub(u),!u)return;k=dx(k,u),v&&(v.uri=k),v=ro([k],g)}i.j.Wb().request(9,v)}function Kwe(i,u,d){if(d)i=dY(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var v=Ub(i);v&&(u.uris=u.uris.map(function(g){return dx(g,v)}))}}function jP(i,u){if(!i||i.length===0)return u;for(var d=S(i),v=d.next();!v.done;v=d.next())u.includes(v.value);return i=i.filter(function(g){return u.includes(g)})}function VP(i,u){return Object.keys(i).reduce(function(d,v){return u.includes(v)&&(d[v]=i[v]),d},{})}function qwe(i){if(i.type===0)return Zwe;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?px:hx;if(u=="audio")return fx;if(u=="text")return i.mimeType==="application/mp4"?vx:UP}}function lY(i){var u=Object.keys(i).sort().reduce(function(d,v){return v!=="enabled"&&(d[v]=i[v]),d},{});return JSON.stringify(u)}function Ywe(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 uY(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 Xwe(i,u){var d=i.j.mc();if(!d.length)return NaN;i=d[0],d=S(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 hx:return i.videoBandwidth||NaN;case fx:return i.audioBandwidth||NaN;default:return i.bandwidth}}function cY(i,u,d){var v=u.segment,g=0;v&&(g=v.endTime-v.startTime),g={d:g*1e3,st:i.j.W()?Qwe:Jwe},g.ot=qwe(u);var k=g.ot===hx||g.ot===fx||g.ot===px||g.ot===vx;if(u=u.stream){var T=i.j.Ob();if(k&&(g.bl=Ywe(i,u.type),g.ot!==vx)){var P=uY(i,u.type);g.dl=T?P/Math.abs(T):P}if(u.bandwidth&&(g.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&&!dt(v.P(),T.P())){var D=T.P()[0];P=new URL(D);var B=new URL(d);if(P.origin!==B.origin)d=D;else{d=P.pathname.split("/").slice(1),D=B.pathname.split("/").slice(1,-1),B=Math.min(d.length,D.length);for(var H=0;H0&&d<=1?i*(1-d)+u*d:i};function yY(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}Ve("shaka.util.CmsdManager",ou),ou.prototype.getBandwidthEstimate=ou.prototype.getBandwidthEstimate,ou.prototype.getRoundTripTime=ou.prototype.Uj,ou.prototype.getResponseDelay=ou.prototype.Tj,ou.prototype.getEstimatedThroughput=ou.prototype.$h,ou.prototype.getMaxBitrate=ou.prototype.bi;var bY="etp",SY="mb",kY="rd",wY="rtt";function CY(){this.g=null,this.h=[]}function GP(i,u){return ie(function(d){if(d.g==1)return i.g?M(d,new Promise(function(v){return i.h.push(v)}),2):d.A(2);i.g=u,j(d)})}CY.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function yt(i,u,d){u=u===void 0?null:u,dr.call(this);var v=this;this.m=Tx,this.h=null,this.xe=u,this.$=!1,this.Ie=new Pe,this.ye=new Pe,this.j=new Pe,this.ac=new Pe,this.yc=new Pe,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new CY,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=kc(this),this.Zf=Uq(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new W5(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 BP(this,this.g.cmcd),this.wa=new ou(this.g.cmsd),this.J=LY(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new Rn(function(){return ie(function(g){if(g.g==1)return v.qa?M(g,v.fc(v.Jd,!0),3):g.A(0);if(g.g!=4)return M(g,v.load(v.qa),4);v.ag?v.Jd.pause():v.Jd.play(),v.qa=null,v.ag=!1,j(g)})}),Ex&&(this.C=Ex(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(g){var k;return ie(function(T){if(T.g==1)return v.$f.stop(),v.qa?T.A(0):(v.Jd=v.h,v.ag=v.be(),k=g.saveLivePosition||!1,M(T,v.Uh(!0,k),3));v.qa=T.h,j(T)})}),this.yc.D(this.C,"ad-content-resume-requested",function(g){if(g=g.offset||0,v.qa){var k=v.qa;k.m&&g&&(typeof k.m=="number"?k.m+=g:k.m.setTime(k.m.getTime()+g*1e3))}v.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return ie(function(g){return v.h||!v.Jd?g.A(0):M(g,v.fc(v.Jd,!0),0)})})),Ix&&(this.Da=Ix(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){e8(v),v.fh()}),this.De=new Rn(function(){for(var g=Date.now()/1e3,k=!1,T=!0,P=S(v.i.variants),D=P.next();!D.done;D=P.next())D=D.value,D.disabledUntilTime>0&&D.disabledUntilTime<=g&&(D.disabledUntilTime=0,k=!0),D.disabledUntilTime>0&&(T=!1);T&&v.De.stop(),k&&Vh(v,!1,void 0,!1,!1)}),this.Ta=null,i&&(Dt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}_(yt,dr);function Sx(i){i.T!=null&&(iC(i.T),i.T.release(),i.T=null)}function aCe(i,u,d){d||u.lcevc.enabled?(Sx(i),i.T==null&&(i.T=new Ih(i.h,i.Kh,u.lcevc,d),i.H&&(i.H.H=i.T))):Sx(i)}function Lr(i,u){return new Xt(i,u)}l=yt.prototype,l.destroy=function(){var i=this,u;return ie(function(d){switch(d.g){case 1:return i.m==Ou?d.return():(Sx(i),u=i.detach(),i.m=Ou,M(d,u,2));case 2:return M(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 M(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),dr.prototype.release.call(i),j(d)}})};function xY(i,u){QY.set(i,u)}function c0(i,u){i.dispatchEvent(Lr("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var d=this,v,g,k;return ie(function(T){switch(T.g){case 1:if(d.m==Ou)throw new Ye(2,7,7e3);if(v=d.h&&d.h==i,!d.h||d.h==i){T.A(2);break}return M(T,d.detach(),2);case 2:return M(T,KP(d,"attach"),4);case 4:if(T.h)return T.return();if(V(T,5,6),v||(c0(d,"attach"),g=function(){var P=t8(d,!1);P&&d0(d,P)},d.ye.D(i,"error",g),d.h=i,d.M&&d.M.setMediaElement(i)),Se(),!u||!ld()||d.H){T.A(6);break}return M(T,qP(d),6);case 6:G(T),d.ma.release(),Y(T,0);break;case 5:return k=X(T),M(T,d.detach(),10);case 10:throw k}})},l.jj=function(i){this.Kh=i},l.detach=function(i){i=i===void 0?!1:i;var u=this;return ie(function(d){if(d.g==1){if(u.m==Ou)throw new Ye(2,7,7e3);return M(d,u.Bc(!1,i),2)}if(d.g!=3)return M(d,KP(u,"detach"),3);if(d.h)return d.return();try{u.h&&(u.ye.Pa(),u.h=null),c0(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}j(d)})};function KP(i,u){var d;return ie(function(v){return v.g==1?(d=++i.Je,M(v,GP(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,g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me;return ie(function(Le){switch(Le.g){case 1:return d.m!=Ou&&(d.m=Tx),M(Le,KP(d,"unload"),2);case 2:return Le.h?Le.return():(W(Le,3),d.Sa=!1,c0(d,"unload"),Sx(d),v=d.ze.map(function(Ue){return Ue()}),d.ze=[],M(Le,Promise.all(v),5));case 5:if(d.dispatchEvent(Lr("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){Le.A(6);break}return M(Le,d.I.stop(),7);case 7:d.I=null,d.xc=null;case 6:if(d.o&&d.o.stop(),!d.l){Le.A(8);break}return M(Le,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){Le.A(10);break}return M(Le,d.F.destroy(),11);case 11:d.F=null;case 10:if(!d.H){Le.A(12);break}return M(Le,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&&Vwe(d.M),d.wa&&(d.wa.g=null),!d.u){Le.A(14);break}return M(Le,d.u.destroy(),15);case 15:d.u=null;case 14:if(d.$=!1,d.h){for(g=S(d.Yf),k=g.next();!k.done;k=g.next())T=k.value,T.src.startsWith("blob:")&&URL.revokeObjectURL(T.src),T.remove();d.Yf=[],jC(d.h)&&d.h.load()}if(!d.F){Le.A(16);break}return M(Le,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=S(d.i.variants),D=P.next();!D.done;D=P.next())for(B=D.value,H=S([B.audio,B.video]),K=H.next();!K.done;K=H.next())(Q=K.value)&&Q.segmentIndex&&Q.segmentIndex.release();for(re=S(d.i.textStreams),oe=re.next();!oe.done;oe=re.next())le=oe.value,le.segmentIndex&&le.segmentIndex.release()}for(d.g&&d.g.streaming.clearDecodingCache&&(wC.clear(),jg.clear()),d.i=null,d.B=new cx,d.Jh=null,d.Zb=null,d.V=null,d.Ke=-1,d.Ge=[],ue=S(d.uc.values()),we=ue.next();!we.done;we=ue.next())me=we.value,me.stop();d.uc.clear(),d.kb=[],d.Xf=-1,d.J&&d.J.Qh(),Hb(d);case 3:G(Le),d.ma.release(),Y(Le,4);break;case 4:if(Se(),i&&ld()&&!d.H&&d.h)return M(Le,qP(d),0);Le.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,d){u=u===void 0?null:u;var v=this,g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we;return ie(function(me){switch(me.g){case 1:if(v.m==Ou)throw new Ye(2,7,7e3);if(g=null,k="",i instanceof iu){if(i.j)throw new Ye(2,7,7006);g=i,k=g.rd()||""}else k=i||"";return M(me,GP(v.ma,"load"),2);case 2:if(v.ma.release(),!v.h)throw new Ye(2,7,7002);if(!v.X){me.A(3);break}return v.X=k,M(me,v.Bc(!1),3);case 3:if(T=++v.Je,P=function(){return ie(function(Le){if(Le.g==1)return v.Je==T?Le.A(0):g?M(Le,g.destroy(),3):Le.A(3);throw new Ye(2,7,7e3)})},D=function(Le,Ue){return ie(function(rt){switch(rt.g){case 1:return W(rt,2),M(rt,GP(v.ma,Ue),4);case 4:return M(rt,P(),5);case 5:return M(rt,Le(),6);case 6:return M(rt,P(),7);case 7:g&&v.g&&(g.g=v.g);case 2:G(rt),v.ma.release(),Y(rt,0)}})},V(me,5,6),u==null&&g&&(u=g.getStartTime()),v.O=u,v.Sa=!1,v.dispatchEvent(Lr("loading")),g){d=g.V,me.A(8);break}if(d){me.A(8);break}return M(me,D(function(){return ie(function(Le){if(Le.g==1)return M(Le,IY(v,k),2);d=Le.h,j(Le)})},"guessMimeType_"),8);case 8:if(B=!!g,g){Gq(g,v),v.B=g.getStats(),me.A(11);break}return M(me,TY(v,k,u,d,!0,v.g),12);case 12:(g=me.h)?(g.F=!1,Gq(g,v),v.B=g.getStats(),g.start(),g.B.catch(function(){})):v.B=new cx;case 11:return H=!g,K=Date.now()/1e3,v.B=g?g.getStats():new cx,v.X=k,v.aa=d||null,Hb(v),Q=function(){var Le=v.h?v.h.buffered:null;return{start:HK(Le)||0,end:FC(Le)||0}},v.ya=new Pb(Q),v.ya.addEventListener("regionadd",function(Le){YP(v,Le.region,"metadataadded")}),H?M(me,D(function(){return ie(function(Le){return M(Le,dCe(v,d),0)})},"initializeSrcEqualsDrmInner_"),23):(v.ib=new Pb(Q),M(me,D(function(){return ie(function(Le){if(Le.g==1)return M(Le,Promise.race([g.ma,g.B]),2);v.xc=g.H;var Ue=g;Ue.qa=!0,v.I=Ue.l,v.i=g.Hg(),j(Le)})},"waitForFinish"),15));case 15:if(v.H){me.A(16);break}return M(me,D(function(){return ie(function(Le){return M(Le,qP(v),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return v.i&&v.i.textStreams.length&&(v.u.enableTextDisplayer?v.u.enableTextDisplayer():Dt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),M(me,D(function(){return ie(function(Le){return M(Le,g.B,0)})},"waitForFinish"),18);case 18:if(v.g=g.getConfiguration(),v.Ae=g.G,v.I&&v.I.setMediaElement&&v.h&&v.I.setMediaElement(v.h),v.we=Twe(g),v.ue=g.Fa,(re=g.C)&&(v.K=re),B&&v.h&&v.h.nodeName==="AUDIO"&&(lCe(v),v.configure("manifest.disableVideo",!0)),g.i){me.A(19);break}return M(me,D(function(){return ie(function(Le){return M(Le,Kq(g,v.h),0)})},"drmEngine_.init"),19);case 19:return v.F=Ewe(g),M(me,D(function(){return ie(function(Le){return M(Le,v.F.fc(v.h),0)})},"drmEngine_.attach"),21);case 21:return oe=v.g.abrFactory,v.o&&v.Ce==oe||(v.Ce=oe,v.o&&v.o.release(),v.o=oe(),typeof v.o.setMediaElement!="function"&&(Dt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),v.o.setMediaElement=function(){}),typeof v.o.setCmsdManager!="function"&&(Dt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),v.o.setCmsdManager=function(){}),typeof v.o.trySuggestStreams!="function"&&(Dt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),v.o.trySuggestStreams=function(){}),v.o.configure(v.g.abr)),le=Iwe(g),ue=g.o,M(me,D(function(){return ie(function(Le){return M(Le,cCe(v,K,ue,le),0)})},"loadInner_"),22);case 22:_we(g),v.aa&&Se().aj()&&cb(v.aa)&&gke(v.H,v.X,v.aa),me.A(14);break;case 23:return M(me,D(function(){return ie(function(Le){return M(Le,fCe(v,K,d),0)})},"srcEqualsInner_"),14);case 14:v.dispatchEvent(Lr("loaded"));case 6:if(G(me),!g){me.A(25);break}return M(me,g.destroy(),25);case 25:v.Ta=null,Y(me,0);break;case 5:if(we=X(me),!we||we.code==7e3){me.A(27);break}return M(me,v.Bc(!1),27);case 27:throw we}})};function lCe(i){for(var u=S(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 ie(function(g){return g.g==1?M(g,_Y(d),2):g.g!=3?(v=g.h,M(g,d.Bc(i,u),3)):g.return(v)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var d=this,v;return ie(function(g){return g.g==1?M(g,_Y(d,u),2):g.g!=3?(v=g.h,M(g,d.detach(i),3)):g.return(v)})};function _Y(i,u){u=u===void 0?!1:u;var d,v,g;return ie(function(k){if(k.g==1)return d=null,i.i&&i.I&&i.xc&&i.X&&i.g?(v=i.h.currentTime,i.W()&&!u&&(v=null),M(k,EY(i,i.X,v,i.aa,i.g,!0,!1),3)):k.A(2);if(k.g!=2){d=k.h,i.Ee.push(d),i.I&&i.I.setMediaElement&&i.I.setMediaElement(null),(g=i.l?i.l.o:null)&&(d.o=g);var T=d,P=i.I,D=i.xc;T.h=i.i,T.l=P,T.H=D,d.C=i.K,d.start(),i.i=null,i.I=null,i.xc=null,i.o=null,i.Ce=null}return k.return(d)})}l.preload=function(i,u,d,v){u=u===void 0?null:u;var g=this,k,T;return ie(function(P){return P.g==1?(k=kc(g),kf(k,v||g.g,kc(g)),M(P,TY(g,i,u,d,!1,k),2)):((T=P.h)?T.start():d0(g,new Ye(2,7,7005)),P.return(T))})},l.ng=function(){var i=this,u,d,v,g;return ie(function(k){for(u=[],d=S(i.Ee),v=d.next();!v.done;v=d.next())g=v.value,g.j||u.push(g.destroy());return i.Ee=[],M(k,Promise.all(u),0)})};function TY(i,u,d,v,g,k){g=g===void 0?!1:g;var T,P,D;return ie(function(B){return B.g==1?v?B.A(2):M(B,IY(i,u),3):(B.g!=2&&(v=B.h),uCe(i,v)?B.return(null):(T=k||i.g,P=!1,g&&i.h&&i.h.nodeName==="AUDIO"&&(P=!0),D=EY(i,u,d,v||null,T,!g,P),D=g?D.then(function(H){return H.F=!1,H}):D.then(function(H){return i.Ee.push(H),H}),B.return(D)))})}function EY(i,u,d,v,g,k,T){k=k===void 0?!0:k,T=T===void 0?!1:T;var P,D,B,H,K,Q,re,oe,le,ue,we,me,Le,Ue,rt;return ie(function(Be){return Be.g==1?(P=null,D=Ut(g),T&&(D.manifest.disableVideo=!0),B=function(){return P.R&&P.j?null:P},H=function(){return B()?B().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?Be.A(2):(K=Se(),M(Be,K.jc(),3))):(Be.g!=2&&(Q=Be.h,i.xa.width=Q.width,i.xa.height=Q.height),re=new W5(D,i.xa,null),oe={networkingEngine:i.J,filter:function(Ie){var Je,nt;return ie(function(tt){if(tt.g==1)return M(tt,IK(re,Ie),2);if(tt.g!=4)return Je=tt.h,Je?(nt=Lr("trackschanged"),M(tt,Promise.resolve(),4)):tt.A(0);P.dispatchEvent(nt),j(tt)})},makeTextStreamsForClosedCaptions:function(Ie){return _Ce(i,Ie)},onTimelineRegionAdded:function(Ie){pP(P.I,Ie)},onEvent:function(Ie){return P.dispatchEvent(Ie)},onError:function(Ie){return P.onError(Ie)},isLowLatencyMode:function(){return H().streaming.lowLatencyMode},updateDuration:function(){i.l&&P.R&&i.l.updateDuration()},newDrmInfo:function(Ie){var Je=P.i,nt=Je?Je.g:null;nt&&Je.B&&PK(re,nt.keySystem,Ie)},onManifestUpdated:function(){var Ie=new Map().set("isLive",i.W());P.dispatchEvent(Lr("manifestupdated",Ie)),Fb(P,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(Ie,Je,nt,tt){var ot=Ie;(Ie=="com.apple.hls.interstitial"||Ie=="com.apple.hls.overlay")&&(ot="com.apple.quicktime.HLS",Ie={startTime:Je,endTime:nt,values:tt},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,Ie)),tt=S(tt),Ie=tt.next();for(var at={};!Ie.done;at={Yg:void 0},Ie=tt.next())at.Yg=Ie.value,at.Yg.name!="ID"&&Fb(P,!1,(function(kt){return function(){XP(i,Je,nt,ot,kt.Yg)}})(at))},disableStream:function(Ie){return i.disableStream(Ie,i.g.streaming.maxDisabledTime)},addFont:function(Ie,Je){return i.addFont(Ie,Je)}},le=new Pb(function(){return i.Qa()}),le.addEventListener("regionadd",function(Ie){var Je=Ie.region;Kb(i,"timelineregionadded",Je,P),Fb(P,!1,function(){i.C&&(i.C.onDashTimedMetadata(Je),i.C.onDASHInterstitialMetadata(i,i.h,Je))})}),ue=null,D.streaming.observeQualityChanges&&(ue=new KC(function(){return i.Fc()}),ue.addEventListener("qualitychange",function(Ie){YY(i,Ie.quality,Ie.position)}),ue.addEventListener("audiotrackchange",function(Ie){YY(i,Ie.quality,Ie.position,!0)})),we=!0,me={tc:i.J,onError:function(Ie){return P.onError(Ie)},vf:function(Ie){Fb(P,!0,function(){i.F&&ECe(i,Ie)})},onExpirationUpdated:function(Ie,Je){var nt=Lr("expirationupdated");P.dispatchEvent(nt),(nt=P.l)&&nt.onExpirationUpdated&&nt.onExpirationUpdated(Ie,Je)},onEvent:function(Ie){P.dispatchEvent(Ie),Ie.type=="drmsessionupdate"&&we&&(we=!1,Ie=Date.now()/1e3-P.ya,(i.B||P.getStats()).m=Ie,i.T&&iC(i.T))}},Le=LY(i,B),lK(i.J,Le),Ue=function(){return i.md(me)},rt={config:D,wk:oe,Hk:le,Gk:ue,md:Ue,vk:re,networkingEngine:Le,ij:k},P=new iu(u,v,d,rt),Be.return(P))})}function IY(i,u){var d,v,g,k;return ie(function(T){return T.g==1?(d=i.g.manifest.retryParameters,M(T,Mv(u,i.J,d),2)):(v=T.h,v=="application/x-mpegurl"&&(g=Se(),g.Ha()==="WEBKIT"&&(v="application/vnd.apple.mpegurl")),v=="video/quicktime"&&(k=Se(),k.Ha()==="CHROMIUM"&&(v="video/mp4")),T.return(v))})}function uCe(i,u){if(!ld(Se()))return!0;if(u){if((i.h||Tv()).canPlayType(u)=="")return!1;if(!ld(Se())||!Kg.has(u))return!0;if(cb(u))return Se().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 kx(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):Dt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||Dt("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&&Tke(i.H,i.u),i.Jh=d,i.l&&Zke(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function qP(i){var u,d,v;return ie(function(g){if(g.g==1)return Se(),c0(i,"media-source"),i.g.mediaSource.useSourceElements&&jC(i.h),kx(i),u=SCe(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(k,T,P){k=S(k);for(var D=k.next();!D.done;D=k.next())if(D=D.value,D.data&&typeof D.cueTime=="number"&&D.frames){var B=D.cueTime+T,H=P;H&&B>H&&(H=B);for(var K=S(D.frames),Q=K.next();!Q.done;Q=K.next())XP(i,B,H,"org.id3",Q.value);i.C&&i.C.onHlsTimedMetadata(D,B)}},Bk:function(k){i.ib&&pP(i.ib,{schemeIdUri:k.schemeIdUri,startTime:k.startTime,endTime:k.endTime,id:String(k.id),emsg:k})},onEvent:function(k){return i.dispatchEvent(k)},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,M(g,u.M,2);i.H=u,j(g)})}function AY(i,u,d){function v(){return JP(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 k=i.h.playbackRate;k!=0&&(i.N&&(i.N.set(k),i.m==os&&i.o.playbackRateChanged(k),jY(i,k)),k=Lr("ratechange"),i.dispatchEvent(k))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&Cf(i),Ks(i)}),i.j.D(u.remote,"connecting",function(){return Ks(i)}),i.j.D(u.remote,"disconnect",function(){return ie(function(k){if(k.g==1)return i.l&&u.remote.state=="disconnected"?M(k,tx(i.l),3):k.A(2);k.g!=2&&Cf(i),Ks(i),j(k)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return Ks(i)}),i.j.D(u.audioTracks,"removetrack",function(){return Ks(i)}),i.j.D(u.audioTracks,"change",function(){return Ks(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return Ks(i)}),i.j.D(u.videoTracks,"removetrack",function(){return Ks(i)}),i.j.D(u.videoTracks,"change",function(){return Ks(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&kx(i,!0)}),u.textTracks){var g=function(){i.m===Qa&&i.u instanceof So&&Cf(i),Ks(i)};i.j.D(u.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case"metadata":vCe(i,k);break;case"chapters":mCe(i,k);break;default:g()}}),i.j.D(u.textTracks,"removetrack",g),i.j.D(u.textTracks,"change",g)}u.preload!="none"&&i.j.Ba(u,"loadedmetadata",function(){i.B.G=Date.now()/1e3-d})}function cCe(i,u,d,v){var g,k,T,P,D,B,H,K,Q,re,oe,le,ue,we,me,Le,Ue,rt,Be,Ie,Je,nt,tt,ot,at,kt,wt,ft;return ie(function(mt){switch(mt.g){case 1:for(c0(i,"load"),g=i.h,i.N=new Lb({Ye:function(){return g.playbackRate},Tc:function(){return g.defaultPlaybackRate},ph:function(It){g.playbackRate=It},ui:function(It){g.currentTime+=It}}),AY(i,g,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var It=i.K.getConfiguration();It.hdrLevel=="AUTO"?Rv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(It.hdrLevel="AUTO",i.K.configure(It),Rv(i))}}),k=!1,T=S(i.i.variants),P=T.next();!P.done;P=T.next())D=P.value,(B=D.video&&D.video.dependencyStream)&&(k=eb(B));aCe(i,i.g,k),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,n8(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(It,jt,xn){i.i&&i.l&&It!=i.l.o&&Wb(i,It,!0,jt===void 0?!1:jt,xn===void 0?0:xn)}),i.o.setMediaElement(g),i.o.setCmsdManager(i.wa),i.l=kCe(i),i.l.configure(i.g.streaming),i.m=os,i.dispatchEvent(Lr("streaming")),H=d;case 2:for((Q=i.l.o)||H||(H=zY(i,!0)),re=[],K=Q||H,oe=S([K.video,K.audio]),le=oe.next();!le.done;le=oe.next())(ue=le.value)&&!ue.segmentIndex&&(re.push(ue.createSegmentIndex()),ue.dependencyStream&&re.push(ue.dependencyStream.createSegmentIndex()));if(!(re.length>0)){mt.A(4);break}return M(mt,Promise.all(re),4);case 4:if(!K||K.disabledUntilTime!=0){mt.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(K),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):We("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&&(zwe(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),Uwe(i.M,u*1e3)),n8(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),qke(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(Lr("canupdatestarttime")),we=function(It){i.G=gCe(i,It),i.ob=yCe(i,It),PY(i,g,!1)},i.g.streaming.startAtSegmentBoundary||(me=i.O,me==null&&i.i.startTime&&(me=i.i.startTime),we(me)),Q){mt.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){mt.A(8);break}return Le=i.i.presentationTimeline,i.O instanceof Date&&(rt=Le.m||Le.i,Be=i.O.getTime()/1e3-rt,Be!=null&&(Ue=Be)),Ue==null&&(Ue=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(Ue=i.i.startTime),Ie=Le.Xb(),Je=Le.Gb(),UeJe&&(Ue=Je),M(mt,TCe(H,Ue),9);case 9:nt=mt.h,we(nt);case 8:Wb(i,H,!0,!1,0);case 7:return i.G.ready(),tt=i.Kc().find(function(It){return It.active}),tt||((ot=Fg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&PP(i.B.h,ot,!0),H&&(ot?(JG(H.audio,ot,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),KY(i)),ot&&(i.g.streaming.alwaysStreamText||i.Og())&&(XC(i.l,ot),Gb(i))),M(mt,i.l.start(v),10);case 10:i.g.abr.enabled&&(i.o.enable(),qY(i)),Ks(i),i.i.variants.some(function(It){return It.primary}),((at=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&(kt=function(){return VY(i)},i.j.D(g,"timeupdate",kt)),at||(wt=function(){return _x(i)},i.j.D(g,"timeupdate",wt),_x(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(ft=function(){var It;return ie(function(jt){if(jt.g==1)return It=i.Qa().end-i.h.currentTime,isNaN(It)||!(It<=i.g.streaming.preloadNextUrlWindow)?jt.A(0):(i.j.Ma(g,"timeupdate",ft),M(jt,i.preload(i.i.nextUrl),4));i.Ta=jt.h,j(jt)})},i.j.D(g,"timeupdate",ft)),i.j.D(g,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(at),j(mt)}})}function dCe(i,u){var d,v,g;return ie(function(k){return k.g==1?(d=Date.now()/1e3,v=!0,i.F=i.md({tc:i.J,onError:function(T){d0(i,T)},vf:function(){},onExpirationUpdated:function(){var T=Lr("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),g=QG([u]),i.F.O=!0,M(k,mK(i.F,[g],[]),2)):M(k,i.F.fc(i.h),0)})}function fCe(i,u,d){var v,g,k,T,P,D,B,H,K,Q,re,oe;return ie(function(le){switch(le.g){case 1:if(c0(i,"src-equals"),v=i.h,i.G=new gq(v),g=!1,i.ze.push(function(){g=!0}),i.dispatchEvent(Lr("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=bCe(i,i.O||0),i.N=new Lb({Ye:function(){return v.playbackRate},Tc:function(){return v.defaultPlaybackRate},ph:function(ue){v.playbackRate=ue},ui:function(ue){v.currentTime+=ue}}),PY(i,v,!0),v.textTracks&&(kx(i),k=function(ue){if(!(i.u instanceof So)){var we=Cx(i).find(function(me){return me.mode!=="disabled"});we&&(we.mode=ue?"showing":"hidden"),i.u instanceof gs&&(we=wCe(i))&&(we.mode=!ue&&i.u.isTextVisible()?"showing":"hidden")}},i.j.D(v,"enterpictureinpicture",function(){return k(!0)}),i.j.D(v,"leavepictureinpicture",function(){return k(!1)}),v.remote?(i.j.D(v.remote,"connect",function(){return k(!1)}),i.j.D(v.remote,"connecting",function(){return k(!1)}),i.j.D(v.remote,"disconnect",function(){return k(!1)})):"webkitCurrentPlaybackTargetIsWireless"in v&&i.j.D(v,"webkitcurrentplaybacktargetiswirelesschanged",function(){return k(!1)}),T=v,(T.webkitPresentationMode||T.webkitSupportsFullscreen)&&i.j.D(T,"webkitpresentationmodechanged",function(){T.webkitPresentationMode?k(T.webkitPresentationMode!=="inline"):T.webkitSupportsFullscreen&&k(T.webkitDisplayingFullscreen)})),AY(i,v,u),P=Hwe(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){le.A(2);break}return M(le,i.H.destroy(),3);case 3:i.H=null;case 2:return jC(v),v.src=P,D=Se(),D.Ua()=="TV"&&v.load(),v.preload!="none"&&!v.autoplay&&cb(d)&&D.Ha()==="WEBKIT"&&v.load(),i.m=Qa,i.dispatchEvent(Lr("streaming")),B=new Cr,r0(v,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&cb(i.aa)||B.resolve()}),H=function(){return new Promise(function(ue){var we=new Rn(ue);i.j.D(v.textTracks,"change",function(){return we.ia(.5)}),we.ia(.5)})},r0(v,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ue,we,me,Le,Ue;return ie(function(rt){if(rt.g==1)return M(rt,H(),2);if(g)return rt.return();if(hCe(i),ue=Cx(i),ue.some(function(Be){return Be.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof So))for(ue.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():Dt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),we=!1,me=S(ue),Le=me.next();!Le.done;Le=me.next())Ue=Le.value,Ue.mode!=="disabled"&&(we?(Ue.mode="disabled",We("Found more than one enabled text track, disabling it",Ue)):(NY(i,Ue),we=!0));pCe(i),i.aa&&cb(i.aa)&&B.resolve(),j(rt)})}),v.error?B.reject(t8(i)):v.preload=="none"&&(We('With