@fdm-monster/client-next 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/RELEASE_NOTES.MD +11 -0
- package/dist/assets/index-Be5iL3bK.css +1 -0
- package/dist/assets/index-C21mR4iS.js +104 -0
- package/dist/assets/{index-BL5AV5pQ.js.map → index-C21mR4iS.js.map} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/index-BL5AV5pQ.js +0 -104
- package/dist/assets/index-Dq2MNRYQ.css +0 -1
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"2.0.1"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="326eda99-6e67-4c9d-9e35-3f2988d1ca67",e._sentryDebugIdIdentifier="sentry-dbid-326eda99-6e67-4c9d-9e35-3f2988d1ca67")})()}catch{}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)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(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function kr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ut={},Dl=[],Cr=()=>{},xl=()=>!1,el=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),iv=e=>e.startsWith("onUpdate:"),Mt=Object.assign,sv=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nB=Object.prototype.hasOwnProperty,on=(e,t)=>nB.call(e,t),Xe=Array.isArray,Ll=e=>wu(e)==="[object Map]",tl=e=>wu(e)==="[object Set]",r0=e=>wu(e)==="[object Date]",SA=e=>wu(e)==="[object RegExp]",dt=e=>typeof e=="function",ht=e=>typeof e=="string",yi=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",av=e=>(dn(e)||dt(e))&&dt(e.then)&&dt(e.catch),yw=Object.prototype.toString,wu=e=>yw.call(e),wA=e=>wu(e).slice(8,-1),Cp=e=>wu(e)==="[object Object]",kp=e=>ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ha=kr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),EA=kr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ov=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},rB=/-\w/g,En=ov(e=>e.replace(rB,t=>t.slice(1).toUpperCase())),iB=/\B([A-Z])/g,Xr=ov(e=>e.replace(iB,"-$1").toLowerCase()),Ki=ov(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fl=ov(e=>e?`on${Ki(e)}`:""),Kr=(e,t)=>!Object.is(e,t),Ml=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},bw=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},_p=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Af=e=>{const t=ht(e)?Number(e):NaN;return isNaN(t)?e:t};let JC;const Tp=()=>JC||(JC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),sB=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function aB(e){return sB.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function oB(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const lB={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"},uB={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"},cB={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"},dB={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},fB={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},pB="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",Sw=kr(pB),mB=Sw,QC=2;function xA(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 i=r.filter((o,l)=>l%2===1);r=r.filter((o,l)=>l%2===0);let a=0;const s=[];for(let o=0;o<r.length;o++)if(a+=r[o].length+(i[o]&&i[o].length||0),a>=t){for(let l=o-QC;l<=o+QC||n>a;l++){if(l<0||l>=r.length)continue;const u=l+1;s.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const c=r[l].length,d=i[l]&&i[l].length||0;if(l===o){const p=t-(a-(c+d)),h=Math.max(1,n>a?c-p:n-t);s.push(" | "+" ".repeat(p)+"^".repeat(h))}else if(l>o){if(n>a){const p=Math.max(Math.min(n-a,c),1);s.push(" | "+"^".repeat(p))}a+=c+d}}break}return s.join(`
|
|
2
|
-
`)}function je(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ht(r)?ww(r):je(r);if(i)for(const a in i)t[a]=i[a]}return t}else if(ht(e)||dn(e))return e}const hB=/;(?![^(]*\))/g,gB=/:([^]+)/,vB=/\/\*[^]*?\*\//g;function ww(e){const t={};return e.replace(vB,"").split(hB).forEach(n=>{if(n){const r=n.split(gB);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function yB(e){if(!e)return"";if(ht(e))return e;let t="";for(const n in e){const r=e[n];if(ht(r)||typeof r=="number"){const i=n.startsWith("--")?n:Xr(n);t+=`${i}:${r};`}}return t}function Te(e){let t="";if(ht(e))t=e;else if(Xe(e))for(let n=0;n<e.length;n++){const r=Te(e[n]);r&&(t+=r+" ")}else if(dn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function lv(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ht(t)&&(e.class=Te(t)),n&&(e.style=je(n)),e}const bB="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",SB="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",wB="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",EB="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",CA=kr(bB),kA=kr(SB),_A=kr(wB),TA=kr(EB),IA="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",PA=kr(IA),xB=kr(IA+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Ew(e){return!!e||e===""}const CB=/[>/="'\u0009\u000a\u000c\u0020]/,zy={};function kB(e){if(zy.hasOwnProperty(e))return zy[e];const t=CB.test(e);return t&&console.error(`unsafe attribute name: ${e}`),zy[e]=!t}const _B={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},TB=kr("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"),IB=kr("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"),PB=kr("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 RB(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const AB=/["'&<>]/;function OB(e){const t=""+e,n=AB.exec(t);if(!n)return t;let r="",i,a,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}s!==a&&(r+=t.slice(s,a)),s=a+1,r+=i}return s!==a?r+t.slice(s,a):r}const NB=/^-?>|<!--|-->|--!>|<!-$/g;function DB(e){return e.replace(NB,"")}const RA=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function LB(e,t){return e.replace(RA,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function FB(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=to(e[r],t[r]);return n}function to(e,t){if(e===t)return!0;let n=r0(e),r=r0(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=yi(e),r=yi(t),n||r)return e===t;if(n=Xe(e),r=Xe(t),n||r)return n&&r?FB(e,t):!1;if(n=dn(e),r=dn(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const s in e){const o=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(o&&!l||!o&&l||!to(e[s],t[s]))return!1}}return String(e)===String(t)}function Ip(e,t){return e.findIndex(n=>to(n,t))}const AA=e=>!!(e&&e.__v_isRef===!0),U=e=>ht(e)?e:e==null?"":Xe(e)||dn(e)&&(e.toString===yw||!dt(e.toString))?AA(e)?U(e.value):JSON.stringify(e,OA,2):String(e),OA=(e,t)=>AA(t)?OA(e,t.value):Ll(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[Hy(r,a)+" =>"]=i,n),{})}:tl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hy(n))}:yi(t)?Hy(t):dn(t)&&!Xe(t)&&!Cp(t)?String(t):t,Hy=(e,t="")=>{var n;return yi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function NA(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const MB=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Dl,EMPTY_OBJ:Ut,NO:xl,NOOP:Cr,PatchFlagNames:uB,PatchFlags:lB,ShapeFlags:cB,SlotFlags:dB,camelize:En,capitalize:Ki,cssVarNameEscapeSymbolsRE:RA,def:bw,escapeHtml:OB,escapeHtmlComment:DB,extend:Mt,genCacheKey:oB,genPropsAccessExp:aB,generateCodeFrame:xA,getEscapedCssVarName:LB,getGlobalThis:Tp,hasChanged:Kr,hasOwn:on,hyphenate:Xr,includeBooleanAttr:Ew,invokeArrayFns:Ml,isArray:Xe,isBooleanAttr:xB,isBuiltInDirective:EA,isDate:r0,isFunction:dt,isGloballyAllowed:Sw,isGloballyWhitelisted:mB,isHTMLTag:CA,isIntegerKey:kp,isKnownHtmlAttr:TB,isKnownMathMLAttr:PB,isKnownSvgAttr:IB,isMap:Ll,isMathMLTag:_A,isModelListener:iv,isObject:dn,isOn:el,isPlainObject:Cp,isPromise:av,isRegExp:SA,isRenderableAttrValue:RB,isReservedProp:Ha,isSSRSafeAttrName:kB,isSVGTag:kA,isSet:tl,isSpecialBooleanAttr:PA,isString:ht,isSymbol:yi,isVoidTag:TA,looseEqual:to,looseIndexOf:Ip,looseToNumber:_p,makeMap:kr,normalizeClass:Te,normalizeCssVarValue:NA,normalizeProps:lv,normalizeStyle:je,objectToString:yw,parseStringStyle:ww,propsToAttrMap:_B,remove:sv,slotFlagsText:fB,stringifyStyle:yB,toDisplayString:U,toHandlerKey:Fl,toNumber:Af,toRawType:wA,toTypeString:wu},Symbol.toStringTag,{value:"Module"}));let Hr;class xw{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Hr,!t&&Hr&&(this.index=(Hr.scopes||(Hr.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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Hr;try{return Hr=this,t()}finally{Hr=n}}}on(){++this._on===1&&(this.prevScope=Hr,Hr=this)}off(){this._on>0&&--this._on===0&&(Hr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Go(e){return new xw(e)}function ad(){return Hr}function Rn(e,t=!1){Hr&&Hr.cleanups.push(e)}let Tn;const Wy=new WeakSet;class Of{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Hr&&Hr.active&&Hr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wy.has(this)&&(Wy.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||LA(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ZC(this),FA(this);const t=Tn,n=Hs;Tn=this,Hs=!0;try{return this.fn()}finally{MA(this),Tn=t,Hs=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_w(t);this.deps=this.depsTail=void 0,ZC(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wy.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){i0(this)&&this.run()}get dirty(){return i0(this)}}let DA=0,cf,df;function LA(e,t=!1){if(e.flags|=8,t){e.next=df,df=e;return}e.next=cf,cf=e}function Cw(){DA++}function kw(){if(--DA>0)return;if(df){let t=df;for(df=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;cf;){let t=cf;for(cf=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 FA(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function MA(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),_w(r),$B(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function i0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($A(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $A(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Nf)||(e.globalVersion=Nf,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!i0(e))))return;e.flags|=2;const t=e.dep,n=Tn,r=Hs;Tn=e,Hs=!0;try{FA(e);const i=e.fn(e._value);(t.version===0||Kr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Tn=n,Hs=r,MA(e),e.flags&=-3}}function _w(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.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)_w(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $B(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function VB(e,t){e.effect instanceof Of&&(e=e.effect.fn);const n=new Of(e);t&&Mt(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function BB(e){e.effect.stop()}let Hs=!0;const VA=[];function no(){VA.push(Hs),Hs=!1}function ro(){const e=VA.pop();Hs=e===void 0?!0:e}function ZC(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Tn;Tn=void 0;try{t()}finally{Tn=n}}}let Nf=0;class UB{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 uv{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(!Tn||!Hs||Tn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Tn)n=this.activeLink=new UB(Tn,this),Tn.deps?(n.prevDep=Tn.depsTail,Tn.depsTail.nextDep=n,Tn.depsTail=n):Tn.deps=Tn.depsTail=n,BA(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=Tn.depsTail,n.nextDep=void 0,Tn.depsTail.nextDep=n,Tn.depsTail=n,Tn.deps===n&&(Tn.deps=r)}return n}trigger(t){this.version++,Nf++,this.notify(t)}notify(t){Cw();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{kw()}}}function BA(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)BA(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const zh=new WeakMap,$l=Symbol(""),s0=Symbol(""),Df=Symbol("");function Yr(e,t,n){if(Hs&&Tn){let r=zh.get(e);r||zh.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new uv),i.map=r,i.key=n),i.track()}}function Va(e,t,n,r,i,a){const s=zh.get(e);if(!s){Nf++;return}const o=l=>{l&&l.trigger()};if(Cw(),t==="clear")s.forEach(o);else{const l=Xe(e),u=l&&kp(n);if(l&&n==="length"){const c=Number(r);s.forEach((d,p)=>{(p==="length"||p===Df||!yi(p)&&p>=c)&&o(d)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),u&&o(s.get(Df)),t){case"add":l?u&&o(s.get("length")):(o(s.get($l)),Ll(e)&&o(s.get(s0)));break;case"delete":l||(o(s.get($l)),Ll(e)&&o(s.get(s0)));break;case"set":Ll(e)&&o(s.get($l));break}}kw()}function jB(e,t){const n=zh.get(e);return n&&n.get(t)}function Lu(e){const t=nt(e);return t===e?t:(Yr(t,"iterate",Df),Bi(e)?t:t.map(qs))}function cv(e){return Yr(e=nt(e),"iterate",Df),e}function To(e,t){return ya(e)?Ws(e)?Ec(qs(t)):Ec(t):qs(t)}const zB={__proto__:null,[Symbol.iterator](){return Gy(this,Symbol.iterator,e=>To(this,e))},concat(...e){return Lu(this).concat(...e.map(t=>Xe(t)?Lu(t):t))},entries(){return Gy(this,"entries",e=>(e[1]=To(this,e[1]),e))},every(e,t){return Ta(this,"every",e,t,void 0,arguments)},filter(e,t){return Ta(this,"filter",e,t,n=>n.map(r=>To(this,r)),arguments)},find(e,t){return Ta(this,"find",e,t,n=>To(this,n),arguments)},findIndex(e,t){return Ta(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ta(this,"findLast",e,t,n=>To(this,n),arguments)},findLastIndex(e,t){return Ta(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ta(this,"forEach",e,t,void 0,arguments)},includes(...e){return qy(this,"includes",e)},indexOf(...e){return qy(this,"indexOf",e)},join(e){return Lu(this).join(e)},lastIndexOf(...e){return qy(this,"lastIndexOf",e)},map(e,t){return Ta(this,"map",e,t,void 0,arguments)},pop(){return Vd(this,"pop")},push(...e){return Vd(this,"push",e)},reduce(e,...t){return ek(this,"reduce",e,t)},reduceRight(e,...t){return ek(this,"reduceRight",e,t)},shift(){return Vd(this,"shift")},some(e,t){return Ta(this,"some",e,t,void 0,arguments)},splice(...e){return Vd(this,"splice",e)},toReversed(){return Lu(this).toReversed()},toSorted(e){return Lu(this).toSorted(e)},toSpliced(...e){return Lu(this).toSpliced(...e)},unshift(...e){return Vd(this,"unshift",e)},values(){return Gy(this,"values",e=>To(this,e))}};function Gy(e,t,n){const r=cv(e),i=r[t]();return r!==e&&!Bi(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const HB=Array.prototype;function Ta(e,t,n,r,i,a){const s=cv(e),o=s!==e&&!Bi(e),l=s[t];if(l!==HB[t]){const d=l.apply(e,a);return o?qs(d):d}let u=n;s!==e&&(o?u=function(d,p){return n.call(this,To(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const c=l.call(s,u,r);return o&&i?i(c):c}function ek(e,t,n,r){const i=cv(e);let a=n;return i!==e&&(Bi(e)?n.length>3&&(a=function(s,o,l){return n.call(this,s,o,l,e)}):a=function(s,o,l){return n.call(this,s,To(e,o),l,e)}),i[t](a,...r)}function qy(e,t,n){const r=nt(e);Yr(r,"iterate",Df);const i=r[t](...n);return(i===-1||i===!1)&&Rp(n[0])?(n[0]=nt(n[0]),r[t](...n)):i}function Vd(e,t,n=[]){no(),Cw();const r=nt(e)[t].apply(e,n);return kw(),ro(),r}const WB=kr("__proto__,__v_isRef,__isVue"),UA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yi));function GB(e){yi(e)||(e=String(e));const t=nt(this);return Yr(t,"has",e),t.hasOwnProperty(e)}class jA{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?KA:qA:a?GA:WA).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Xe(t);if(!i){let l;if(s&&(l=zB[n]))return l;if(n==="hasOwnProperty")return GB}const o=Reflect.get(t,n,Ot(t)?t:r);if((yi(n)?UA.has(n):WB(n))||(i||Yr(t,"get",n),a))return o;if(Ot(o)){const l=s&&kp(n)?o:o.value;return i&&dn(l)?va(l):l}return dn(o)?i?va(o):An(o):o}}class zA extends jA{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];const s=Xe(t)&&kp(n);if(!this._isShallow){const u=ya(a);if(!Bi(r)&&!ya(r)&&(a=nt(a),r=nt(r)),!s&&Ot(a)&&!Ot(r))return u||(a.value=r),!0}const o=s?Number(n)<t.length:on(t,n),l=Reflect.set(t,n,r,Ot(t)?t:i);return t===nt(i)&&(o?Kr(r,a)&&Va(t,"set",n,r):Va(t,"add",n,r)),l}deleteProperty(t,n){const r=on(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Va(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!yi(n)||!UA.has(n))&&Yr(t,"has",n),r}ownKeys(t){return Yr(t,"iterate",Xe(t)?"length":$l),Reflect.ownKeys(t)}}class HA extends jA{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const qB=new zA,KB=new HA,YB=new zA(!0),XB=new HA(!0),a0=e=>e,gm=e=>Reflect.getPrototypeOf(e);function JB(e,t,n){return function(...r){const i=this.__v_raw,a=nt(i),s=Ll(a),o=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...r),c=n?a0:t?Ec:qs;return!t&&Yr(a,"iterate",l?s0:$l),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:o?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function vm(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function QB(e,t){const n={get(i){const a=this.__v_raw,s=nt(a),o=nt(i);e||(Kr(i,o)&&Yr(s,"get",i),Yr(s,"get",o));const{has:l}=gm(s),u=t?a0:e?Ec:qs;if(l.call(s,i))return u(a.get(i));if(l.call(s,o))return u(a.get(o));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!e&&Yr(nt(i),"iterate",$l),i.size},has(i){const a=this.__v_raw,s=nt(a),o=nt(i);return e||(Kr(i,o)&&Yr(s,"has",i),Yr(s,"has",o)),i===o?a.has(i):a.has(i)||a.has(o)},forEach(i,a){const s=this,o=s.__v_raw,l=nt(o),u=t?a0:e?Ec:qs;return!e&&Yr(l,"iterate",$l),o.forEach((c,d)=>i.call(a,u(c),u(d),s))}};return Mt(n,e?{add:vm("add"),set:vm("set"),delete:vm("delete"),clear:vm("clear")}:{add(i){!t&&!Bi(i)&&!ya(i)&&(i=nt(i));const a=nt(this);return gm(a).has.call(a,i)||(a.add(i),Va(a,"add",i,i)),this},set(i,a){!t&&!Bi(a)&&!ya(a)&&(a=nt(a));const s=nt(this),{has:o,get:l}=gm(s);let u=o.call(s,i);u||(i=nt(i),u=o.call(s,i));const c=l.call(s,i);return s.set(i,a),u?Kr(a,c)&&Va(s,"set",i,a):Va(s,"add",i,a),this},delete(i){const a=nt(this),{has:s,get:o}=gm(a);let l=s.call(a,i);l||(i=nt(i),l=s.call(a,i)),o&&o.call(a,i);const u=a.delete(i);return l&&Va(a,"delete",i,void 0),u},clear(){const i=nt(this),a=i.size!==0,s=i.clear();return a&&Va(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=JB(i,e,t)}),n}function dv(e,t){const n=QB(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(on(n,i)&&i in r?n:r,i,a)}const ZB={get:dv(!1,!1)},eU={get:dv(!1,!0)},tU={get:dv(!0,!1)},nU={get:dv(!0,!0)},WA=new WeakMap,GA=new WeakMap,qA=new WeakMap,KA=new WeakMap;function rU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function iU(e){return e.__v_skip||!Object.isExtensible(e)?0:rU(wA(e))}function An(e){return ya(e)?e:pv(e,!1,qB,ZB,WA)}function Pp(e){return pv(e,!1,YB,eU,GA)}function va(e){return pv(e,!0,KB,tU,qA)}function fv(e){return pv(e,!0,XB,nU,KA)}function pv(e,t,n,r,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=iU(e);if(a===0)return e;const s=i.get(e);if(s)return s;const o=new Proxy(e,a===2?r:n);return i.set(e,o),o}function Ws(e){return ya(e)?Ws(e.__v_raw):!!(e&&e.__v_isReactive)}function ya(e){return!!(e&&e.__v_isReadonly)}function Bi(e){return!!(e&&e.__v_isShallow)}function Rp(e){return e?!!e.__v_raw:!1}function nt(e){const t=e&&e.__v_raw;return t?nt(t):e}function Ap(e){return!on(e,"__v_skip")&&Object.isExtensible(e)&&bw(e,"__v_skip",!0),e}const qs=e=>dn(e)?An(e):e,Ec=e=>dn(e)?va(e):e;function Ot(e){return e?e.__v_isRef===!0:!1}function z(e){return YA(e,!1)}function Le(e){return YA(e,!0)}function YA(e,t){return Ot(e)?e:new sU(e,t)}class sU{constructor(t,n){this.dep=new uv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:nt(t),this._value=n?t:qs(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Bi(t)||ya(t);t=r?t:nt(t),Kr(t,n)&&(this._rawValue=t,this._value=r?t:qs(t),this.dep.trigger())}}function aU(e){e.dep&&e.dep.trigger()}function re(e){return Ot(e)?e.value:e}function bn(e){return dt(e)?e():re(e)}const oU={get:(e,t,n)=>t==="__v_raw"?e:re(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Ot(i)&&!Ot(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Tw(e){return Ws(e)?e:new Proxy(e,oU)}class lU{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new uv,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function XA(e){return new lU(e)}function Ca(e){const t=Xe(e)?new Array(e.length):{};for(const n in e)t[n]=JA(e,n);return t}class uU{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=nt(t);let i=!0,a=t;if(!Xe(t)||!kp(String(n)))do i=!Rp(a)||Bi(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=re(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ot(this._raw[this._key])){const n=this._object[this._key];if(Ot(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return jB(this._raw,this._key)}}class cU{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 se(e,t,n){return Ot(e)?e:dt(e)?new cU(e):dn(e)&&arguments.length>1?JA(e,t,n):z(e)}function JA(e,t,n){return new uU(e,t,n)}class dU{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new uv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Tn!==this)return LA(this,!0),!0}get value(){const t=this.dep.track();return $A(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fU(e,t,n=!1){let r,i;return dt(e)?r=e:(r=e.get,i=e.set),new dU(r,i,n)}const pU={GET:"get",HAS:"has",ITERATE:"iterate"},mU={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ym={},Hh=new WeakMap;let Io;function hU(){return Io}function QA(e,t=!1,n=Io){if(n){let r=Hh.get(n);r||Hh.set(n,r=[]),r.push(e)}}function gU(e,t,n=Ut){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:o,call:l}=n,u=C=>i?C:Bi(C)||i===!1||i===0?Ba(C,1):Ba(C);let c,d,p,h,g=!1,v=!1;if(Ot(e)?(d=()=>e.value,g=Bi(e)):Ws(e)?(d=()=>u(e),g=!0):Xe(e)?(v=!0,g=e.some(C=>Ws(C)||Bi(C)),d=()=>e.map(C=>{if(Ot(C))return C.value;if(Ws(C))return u(C);if(dt(C))return l?l(C,2):C()})):dt(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){no();try{p()}finally{ro()}}const C=Io;Io=c;try{return l?l(e,3,[h]):e(h)}finally{Io=C}}:d=Cr,t&&i){const C=d,P=i===!0?1/0:i;d=()=>Ba(C(),P)}const y=ad(),b=()=>{c.stop(),y&&y.active&&sv(y.effects,c)};if(a&&t){const C=t;t=(...P)=>{C(...P),b()}}let S=v?new Array(e.length).fill(ym):ym;const w=C=>{if(!(!(c.flags&1)||!c.dirty&&!C))if(t){const P=c.run();if(i||g||(v?P.some((k,R)=>Kr(k,S[R])):Kr(P,S))){p&&p();const k=Io;Io=c;try{const R=[P,S===ym?void 0:v&&S[0]===ym?[]:S,h];S=P,l?l(t,3,R):t(...R)}finally{Io=k}}}else c.run()};return o&&o(w),c=new Of(d),c.scheduler=s?()=>s(w,!1):w,h=C=>QA(C,!1,c),p=c.onStop=()=>{const C=Hh.get(c);if(C){if(l)l(C,4);else for(const P of C)P();Hh.delete(c)}},t?r?w(!0):S=c.run():s?s(w.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Ba(e,t=1/0,n){if(t<=0||!dn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ot(e))Ba(e.value,t,n);else if(Xe(e))for(let r=0;r<e.length;r++)Ba(e[r],t,n);else if(tl(e)||Ll(e))e.forEach(r=>{Ba(r,t,n)});else if(Cp(e)){for(const r in e)Ba(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ba(e[r],t,n)}return e}const ZA=[];function vU(e){ZA.push(e)}function yU(){ZA.pop()}function bU(e,t){}const SU={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"},wU={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 od(e,t,n,r){try{return r?e(...r):e()}catch(i){Eu(i,t,n)}}function ks(e,t,n,r){if(dt(e)){const i=od(e,t,n,r);return i&&av(i)&&i.catch(a=>{Eu(a,t,n)}),i}if(Xe(e)){const i=[];for(let a=0;a<e.length;a++)i.push(ks(e[a],t,n,r));return i}}function Eu(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Ut;if(t){let o=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}o=o.parent}if(a){no(),od(a,null,10,[e,l,u]),ro();return}}EU(e,n,i,r,s)}function EU(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const fi=[];let la=-1;const mc=[];let Po=null,Xu=0;const eO=Promise.resolve();let Wh=null;function At(e){const t=Wh||eO;return e?t.then(this?e.bind(this):e):t}function xU(e){let t=la+1,n=fi.length;for(;t<n;){const r=t+n>>>1,i=fi[r],a=Ff(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Iw(e){if(!(e.flags&1)){const t=Ff(e),n=fi[fi.length-1];!n||!(e.flags&2)&&t>=Ff(n)?fi.push(e):fi.splice(xU(t),0,e),e.flags|=1,tO()}}function tO(){Wh||(Wh=eO.then(nO))}function Lf(e){Xe(e)?mc.push(...e):Po&&e.id===-1?Po.splice(Xu+1,0,e):e.flags&1||(mc.push(e),e.flags|=1),tO()}function tk(e,t,n=la+1){for(;n<fi.length;n++){const r=fi[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;fi.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Gh(e){if(mc.length){const t=[...new Set(mc)].sort((n,r)=>Ff(n)-Ff(r));if(mc.length=0,Po){Po.push(...t);return}for(Po=t,Xu=0;Xu<Po.length;Xu++){const n=Po[Xu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Po=null,Xu=0}}const Ff=e=>e.id==null?e.flags&2?-1:1/0:e.id;function nO(e){try{for(la=0;la<fi.length;la++){const t=fi[la];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),od(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;la<fi.length;la++){const t=fi[la];t&&(t.flags&=-2)}la=-1,fi.length=0,Gh(),Wh=null,(fi.length||mc.length)&&nO()}}let Ju,bm=[];function rO(e,t){var n,r;Ju=e,Ju?(Ju.enabled=!0,bm.forEach(({event:i,args:a})=>Ju.emit(i,...a)),bm=[]):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=>{rO(a,t)}),setTimeout(()=>{Ju||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bm=[])},3e3)):bm=[]}let Nr=null,mv=null;function Mf(e){const t=Nr;return Nr=e,mv=e&&e.type.__scopeId||null,t}function CU(e){mv=e}function kU(){mv=null}const _U=e=>m;function m(e,t=Nr,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Uf(-1);const a=Mf(t);let s;try{s=e(...i)}finally{Mf(a),r._d&&Uf(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function un(e,t){if(Nr===null)return e;const n=Lp(Nr),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,o,l=Ut]=t[i];a&&(dt(a)&&(a={mounted:a,updated:a}),a.deep&&Ba(s),r.push({dir:a,instance:n,value:s,oldValue:void 0,arg:o,modifiers:l}))}return e}function ua(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const o=i[s];a&&(o.oldValue=a[s].value);let l=o.dir[r];l&&(no(),ks(l,n,8,[e.el,o,e,t]),ro())}}function Sn(e,t){if(Or){let n=Or.provides;const r=Or.parent&&Or.parent.provides;r===n&&(n=Or.provides=Object.create(r)),n[e]=t}}function ft(e,t,n=!1){const r=wi();if(r||Vl){let i=Vl?Vl._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&dt(t)?t.call(r&&r.proxy):t}}function Pw(){return!!(wi()||Vl)}const iO=Symbol.for("v-scx"),sO=()=>ft(iO);function ar(e,t){return Op(e,null,t)}function TU(e,t){return Op(e,null,{flush:"post"})}function aO(e,t){return Op(e,null,{flush:"sync"})}function Oe(e,t,n){return Op(e,t,n)}function Op(e,t,n=Ut){const{immediate:r,deep:i,flush:a,once:s}=n,o=Mt({},n),l=t&&r||!t&&a!=="post";let u;if(_c){if(a==="sync"){const h=sO();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Cr,h.resume=Cr,h.pause=Cr,h}}const c=Or;o.call=(h,g,v)=>ks(h,c,g,v);let d=!1;a==="post"?o.scheduler=h=>{lr(h,c&&c.suspense)}:a!=="sync"&&(d=!0,o.scheduler=(h,g)=>{g?h():Iw(h)}),o.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const p=gU(e,t,o);return _c&&(u?u.push(p):l&&p()),p}function IU(e,t,n){const r=this.proxy,i=ht(e)?e.includes(".")?oO(r,e):()=>r[e]:e.bind(r,r);let a;dt(t)?a=t:(a=t.handler,n=t);const s=iu(this),o=Op(i,a.bind(r),n);return s(),o}function oO(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const lO=Symbol("_vte"),uO=e=>e.__isTeleport,ff=e=>e&&(e.disabled||e.disabled===""),nk=e=>e&&(e.defer||e.defer===""),rk=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ik=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,o0=(e,t)=>{const n=e&&e.to;return ht(n)?t?t(n):null:n},cO={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,o,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:g,createText:v,createComment:y}}=u,b=ff(t.props);let{shapeFlag:S,children:w,dynamicChildren:C}=t;if(e==null){const P=t.el=v(""),k=t.anchor=v("");h(P,n,r),h(k,n,r);const R=(I,x)=>{S&16&&c(w,I,x,i,a,s,o,l)},T=()=>{const I=t.target=o0(t.props,g),x=fO(I,t,v,h);I&&(s!=="svg"&&rk(I)?s="svg":s!=="mathml"&&ik(I)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(I),b||(R(I,x),rh(t,!1)))};b&&(R(n,k),rh(t,!0)),nk(t.props)?(t.el.__isMounted=!1,lr(()=>{T(),delete t.el.__isMounted},a)):T()}else{if(nk(t.props)&&e.el.__isMounted===!1){lr(()=>{cO.process(e,t,n,r,i,a,s,o,l,u)},a);return}t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,k=t.target=e.target,R=t.targetAnchor=e.targetAnchor,T=ff(e.props),I=T?n:k,x=T?P:R;if(s==="svg"||rk(k)?s="svg":(s==="mathml"||ik(k))&&(s="mathml"),C?(p(e.dynamicChildren,C,I,i,a,s,o),Uw(e,t,!0)):l||d(e,t,I,x,i,a,s,o,!1),b)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sm(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=o0(t.props,g);A&&Sm(t,A,null,u,0)}else T&&Sm(t,k,R,u,1);rh(t,b)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(i(u),i(c)),a&&i(l),s&16){const h=a||!ff(p);for(let g=0;g<o.length;g++){const v=o[g];r(v,t,n,h,!!v.dynamicChildren)}}},move:Sm,hydrate:PU};function Sm(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);const{el:s,anchor:o,shapeFlag:l,children:u,props:c}=e,d=a===2;if(d&&r(s,t,n),(!d||ff(c))&&l&16)for(let p=0;p<u.length;p++)i(u[p],t,n,2);d&&r(o,t,n)}function PU(e,t,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:u,createText:c}},d){function p(v,y,b,S){y.anchor=d(s(v),y,o(v),n,r,i,a),y.targetStart=b,y.targetAnchor=S}const h=t.target=o0(t.props,l),g=ff(t.props);if(h){const v=h._lpa||h.firstChild;if(t.shapeFlag&16)if(g)p(e,t,v,v&&s(v));else{t.anchor=s(e);let y=v;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}}y=s(y)}t.targetAnchor||fO(h,t,c,u),d(v&&s(v),t,h,n,r,i,a)}rh(t,g)}else g&&t.shapeFlag&16&&p(e,t,e,s(e));return t.anchor&&s(t.anchor)}const dO=cO;function rh(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function fO(e,t,n,r){const i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[lO]=a,e&&(r(i,e),r(a,e)),a}const Ma=Symbol("_leaveCb"),wm=Symbol("_enterCb");function Rw(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nt(()=>{e.isMounted=!0}),wr(()=>{e.isUnmounting=!0}),e}const fs=[Function,Array],Aw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:fs,onEnter:fs,onAfterEnter:fs,onEnterCancelled:fs,onBeforeLeave:fs,onLeave:fs,onAfterLeave:fs,onLeaveCancelled:fs,onBeforeAppear:fs,onAppear:fs,onAfterAppear:fs,onAppearCancelled:fs},pO=e=>{const t=e.subTree;return t.component?pO(t.component):t},RU={name:"BaseTransition",props:Aw,setup(e,{slots:t}){const n=wi(),r=Rw();return()=>{const i=t.default&&hv(t.default(),!0);if(!i||!i.length)return;const a=mO(i),s=nt(e),{mode:o}=s;if(r.isLeaving)return Ky(a);const l=sk(a);if(!l)return Ky(a);let u=xc(l,s,r,n,d=>u=d);l.type!==Xn&&io(l,u);let c=n.subTree&&sk(n.subTree);if(c&&c.type!==Xn&&!zs(c,l)&&pO(n).type!==Xn){let d=xc(c,s,r,n);if(io(c,d),o==="out-in"&&l.type!==Xn)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Ky(a);o==="in-out"&&l.type!==Xn?d.delayLeave=(p,h,g)=>{const v=gO(r,c);v[String(c.key)]=c,p[Ma]=()=>{h(),p[Ma]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function mO(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Xn){t=n;break}}return t}const hO=RU;function gO(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 xc(e,t,n,r,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:S,onAppearCancelled:w}=t,C=String(e.key),P=gO(n,e),k=(I,x)=>{I&&ks(I,r,9,x)},R=(I,x)=>{const A=x[1];k(I,x),Xe(I)?I.every(D=>D.length<=1)&&A():I.length<=1&&A()},T={mode:s,persisted:o,beforeEnter(I){let x=l;if(!n.isMounted)if(a)x=y||l;else return;I[Ma]&&I[Ma](!0);const A=P[C];A&&zs(e,A)&&A.el[Ma]&&A.el[Ma](),k(x,[I])},enter(I){let x=u,A=c,D=d;if(!n.isMounted)if(a)x=b||u,A=S||c,D=w||d;else return;let B=!1;const V=I[wm]=$=>{B||(B=!0,$?k(D,[I]):k(A,[I]),T.delayedLeave&&T.delayedLeave(),I[wm]=void 0)};x?R(x,[I,V]):V()},leave(I,x){const A=String(e.key);if(I[wm]&&I[wm](!0),n.isUnmounting)return x();k(p,[I]);let D=!1;const B=I[Ma]=V=>{D||(D=!0,x(),V?k(v,[I]):k(g,[I]),I[Ma]=void 0,P[A]===e&&delete P[A])};P[A]=e,h?R(h,[I,B]):B()},clone(I){const x=xc(I,t,n,r,i);return i&&i(x),x}};return T}function Ky(e){if(Np(e))return e=Ks(e),e.children=null,e}function sk(e){if(!Np(e))return uO(e.type)&&e.children?mO(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&&dt(n.default))return n.default()}}function io(e,t){e.shapeFlag&6&&e.component?(e.transition=t,io(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 hv(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let s=e[a];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:a);s.type===Ne?(s.patchFlag&128&&i++,r=r.concat(hv(s.children,t,o))):(t||s.type!==Xn)&&r.push(o!=null?Ks(s,{key:o}):s)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Be(e,t){return dt(e)?Mt({name:e.name},t,{setup:e}):e}function Si(){const e=wi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ow(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function AU(e){const t=wi(),n=Le(null);if(t){const i=t.refs===Ut?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:a=>n.value=a})}return n}const qh=new WeakMap;function hc(e,t,n,r,i=!1){if(Xe(e)){e.forEach((g,v)=>hc(g,t&&(Xe(t)?t[v]:t),n,r,i));return}if(Wa(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&hc(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Lp(r.component):r.el,s=i?null:a,{i:o,r:l}=e,u=t&&t.r,c=o.refs===Ut?o.refs={}:o.refs,d=o.setupState,p=nt(d),h=d===Ut?xl:g=>on(p,g);if(u!=null&&u!==l){if(ak(t),ht(u))c[u]=null,h(u)&&(d[u]=null);else if(Ot(u)){u.value=null;const g=t;g.k&&(c[g.k]=null)}}if(dt(l))od(l,o,12,[s,c]);else{const g=ht(l),v=Ot(l);if(g||v){const y=()=>{if(e.f){const b=g?h(l)?d[l]:c[l]:l.value;if(i)Xe(b)&&sv(b,a);else if(Xe(b))b.includes(a)||b.push(a);else if(g)c[l]=[a],h(l)&&(d[l]=c[l]);else{const S=[a];l.value=S,e.k&&(c[e.k]=S)}}else g?(c[l]=s,h(l)&&(d[l]=s)):v&&(l.value=s,e.k&&(c[e.k]=s))};if(s){const b=()=>{y(),qh.delete(e)};b.id=-1,qh.set(e,b),lr(b,n)}else ak(e),y()}}}function ak(e){const t=qh.get(e);t&&(t.flags|=8,qh.delete(e))}let ok=!1;const Fu=()=>{ok||(console.error("Hydration completed but contains mismatches."),ok=!0)},OU=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",NU=e=>e.namespaceURI.includes("MathML"),Em=e=>{if(e.nodeType===1){if(OU(e))return"svg";if(NU(e))return"mathml"}},rc=e=>e.nodeType===8;function DU(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:o,insert:l,createComment:u}}=e,c=(w,C)=>{if(!C.hasChildNodes()){n(null,w,C),Gh(),C._vnode=w;return}d(C.firstChild,w,null,null,null),Gh(),C._vnode=w},d=(w,C,P,k,R,T=!1)=>{T=T||!!C.dynamicChildren;const I=rc(w)&&w.data==="[",x=()=>v(w,C,P,k,R,I),{type:A,ref:D,shapeFlag:B,patchFlag:V}=C;let $=w.nodeType;C.el=w,V===-2&&(T=!1,C.dynamicChildren=null);let N=null;switch(A){case Ga:$!==3?C.children===""?(l(C.el=i(""),s(w),w),N=w):N=x():(w.data!==C.children&&(Fu(),w.data=C.children),N=a(w));break;case Xn:S(w)?(N=a(w),b(C.el=w.content.firstChild,w,P)):$!==8||I?N=x():N=a(w);break;case Bl:if(I&&(w=a(w),$=w.nodeType),$===1||$===3){N=w;const O=!C.children.length;for(let M=0;M<C.staticCount;M++)O&&(C.children+=N.nodeType===1?N.outerHTML:N.data),M===C.staticCount-1&&(C.anchor=N),N=a(N);return I?a(N):N}else x();break;case Ne:I?N=g(w,C,P,k,R,T):N=x();break;default:if(B&1)($!==1||C.type.toLowerCase()!==w.tagName.toLowerCase())&&!S(w)?N=x():N=p(w,C,P,k,R,T);else if(B&6){C.slotScopeIds=R;const O=s(w);if(I?N=y(w):rc(w)&&w.data==="teleport start"?N=y(w,w.data,"teleport end"):N=a(w),t(C,O,null,P,k,Em(O),T),Wa(C)&&!C.type.__asyncResolved){let M;I?(M=f(Ne),M.anchor=N?N.previousSibling:O.lastChild):M=w.nodeType===3?_(""):f("div"),M.el=w,C.component.subTree=M}}else B&64?$!==8?N=x():N=C.type.hydrate(w,C,P,k,R,T,e,h):B&128&&(N=C.type.hydrate(w,C,P,k,Em(s(w)),R,T,e,d))}return D!=null&&hc(D,null,k,C),N},p=(w,C,P,k,R,T)=>{T=T||!!C.dynamicChildren;const{type:I,props:x,patchFlag:A,shapeFlag:D,dirs:B,transition:V}=C,$=I==="input"||I==="option";if($||A!==-1){B&&ua(C,null,P,"created");let N=!1;if(S(w)){N=BO(null,V)&&P&&P.vnode.props&&P.vnode.props.appear;const M=w.content.firstChild;if(N){const Y=M.getAttribute("class");Y&&(M.$cls=Y),V.beforeEnter(M)}b(M,w,P),C.el=w=M}if(D&16&&!(x&&(x.innerHTML||x.textContent))){let M=h(w.firstChild,C,w,P,k,R,T);for(;M;){xm(w,1)||Fu();const Y=M;M=M.nextSibling,o(Y)}}else if(D&8){let M=C.children;M[0]===`
|
|
3
|
-
`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(M=M.slice(1));const{textContent:Y}=w;Y!==M&&Y!==M.replace(/\r\n|\r/g,`
|
|
4
|
-
`)&&(xm(w,0)||Fu(),w.textContent=C.children)}if(x){if($||!T||A&48){const M=w.tagName.includes("-");for(const Y in x)($&&(Y.endsWith("value")||Y==="indeterminate")||el(Y)&&!Ha(Y)||Y[0]==="."||M)&&r(w,Y,null,x[Y],void 0,P)}else if(x.onClick)r(w,"onClick",null,x.onClick,void 0,P);else if(A&4&&Ws(x.style))for(const M in x.style)x.style[M]}let O;(O=x&&x.onVnodeBeforeMount)&&Ri(O,P,C),B&&ua(C,null,P,"beforeMount"),((O=x&&x.onVnodeMounted)||B||N)&&HO(()=>{O&&Ri(O,P,C),N&&V.enter(w),B&&ua(C,null,P,"mounted")},k)}return w.nextSibling},h=(w,C,P,k,R,T,I)=>{I=I||!!C.dynamicChildren;const x=C.children,A=x.length;for(let D=0;D<A;D++){const B=I?x[D]:x[D]=Oi(x[D]),V=B.type===Ga;w?(V&&!I&&D+1<A&&Oi(x[D+1]).type===Ga&&(l(i(w.data.slice(B.children.length)),P,a(w)),w.data=B.children),w=d(w,B,k,R,T,I)):V&&!B.children?l(B.el=i(""),P):(xm(P,1)||Fu(),n(null,B,P,null,k,R,Em(P),T))}return w},g=(w,C,P,k,R,T)=>{const{slotScopeIds:I}=C;I&&(R=R?R.concat(I):I);const x=s(w),A=h(a(w),C,x,P,k,R,T);return A&&rc(A)&&A.data==="]"?a(C.anchor=A):(Fu(),l(C.anchor=u("]"),x,A),A)},v=(w,C,P,k,R,T)=>{if(xm(w.parentElement,1)||Fu(),C.el=null,T){const A=y(w);for(;;){const D=a(w);if(D&&D!==A)o(D);else break}}const I=a(w),x=s(w);return o(w),n(null,C,x,I,P,k,Em(x),R),P&&(P.vnode.el=C.el,Sv(P,C.el)),I},y=(w,C="[",P="]")=>{let k=0;for(;w;)if(w=a(w),w&&rc(w)&&(w.data===C&&k++,w.data===P)){if(k===0)return a(w);k--}return w},b=(w,C,P)=>{const k=C.parentNode;k&&k.replaceChild(w,C);let R=P;for(;R;)R.vnode.el===C&&(R.vnode.el=R.subTree.el=w),R=R.parent},S=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[c,d]}const lk="data-allow-mismatch",LU={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function xm(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(lk);)e=e.parentElement;const n=e&&e.getAttribute(lk);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(LU[t])}}const FU=Tp().requestIdleCallback||(e=>setTimeout(e,1)),MU=Tp().cancelIdleCallback||(e=>clearTimeout(e)),$U=(e=1e4)=>t=>{const n=FU(t,{timeout:e});return()=>MU(n)};function VU(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<s||i>0&&i<s)}const BU=e=>(t,n)=>{const r=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(VU(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},UU=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},jU=(e=[])=>(t,n)=>{ht(e)&&(e=[e]);let r=!1;const i=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const o of e)s.removeEventListener(o,i)})};return n(s=>{for(const o of e)s.addEventListener(o,i,{once:!0})}),a};function zU(e,t){if(rc(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(rc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Wa=e=>!!e.type.__asyncLoader;function HU(e){dt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:s,suspensible:o=!0,onError:l}=e;let u=null,c,d=0;const p=()=>(d++,u=null,h()),h=()=>{let g;return u||(g=u=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((y,b)=>{l(v,()=>y(p()),()=>b(v),d+1)});throw v}).then(v=>g!==u&&u?u:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),c=v,v)))};return Be({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(g,v,y){let b=!1;(v.bu||(v.bu=[])).push(()=>b=!0);const S=()=>{b||y()},w=a?()=>{const C=a(S,P=>zU(g,P));C&&(v.bum||(v.bum=[])).push(C)}:S;c?w():h().then(()=>!v.isUnmounted&&w())},get __asyncResolved(){return c},setup(){const g=Or;if(Ow(g),c)return()=>Cm(c,g);const v=w=>{u=null,Eu(w,g,13,!r)};if(o&&g.suspense||_c)return h().then(w=>()=>Cm(w,g)).catch(w=>(v(w),()=>r?f(r,{error:w}):null));const y=z(!1),b=z(),S=z(!!i);return i&&setTimeout(()=>{S.value=!1},i),s!=null&&setTimeout(()=>{if(!y.value&&!b.value){const w=new Error(`Async component timed out after ${s}ms.`);v(w),b.value=w}},s),h().then(()=>{y.value=!0,g.parent&&Np(g.parent.vnode)&&g.parent.update()}).catch(w=>{v(w),b.value=w}),()=>{if(y.value&&c)return Cm(c,g);if(b.value&&r)return f(r,{error:b.value});if(n&&!S.value)return Cm(n,g)}}})}function Cm(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=f(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const Np=e=>e.type.__isKeepAlive,WU={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=wi(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const i=new Map,a=new Set;let s=null;const o=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,p=d("div");r.activate=(S,w,C,P,k)=>{const R=S.component;u(S,w,C,0,o),l(R.vnode,S,w,C,R,o,P,S.slotScopeIds,k),lr(()=>{R.isDeactivated=!1,R.a&&Ml(R.a);const T=S.props&&S.props.onVnodeMounted;T&&Ri(T,R.parent,S)},o)},r.deactivate=S=>{const w=S.component;Yh(w.m),Yh(w.a),u(S,p,null,1,o),lr(()=>{w.da&&Ml(w.da);const C=S.props&&S.props.onVnodeUnmounted;C&&Ri(C,w.parent,S),w.isDeactivated=!0},o)};function h(S){Yy(S),c(S,n,o,!0)}function g(S){i.forEach((w,C)=>{const P=y0(Wa(w)?w.type.__asyncResolved||{}:w.type);P&&!S(P)&&v(C)})}function v(S){const w=i.get(S);w&&(!s||!zs(w,s))?h(w):s&&Yy(s),i.delete(S),a.delete(S)}Oe(()=>[e.include,e.exclude],([S,w])=>{S&&g(C=>ef(S,C)),w&&g(C=>!ef(w,C))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(Xh(n.subTree.type)?lr(()=>{i.set(y,km(n.subTree))},n.subTree.suspense):i.set(y,km(n.subTree)))};return Nt(b),Dp(b),wr(()=>{i.forEach(S=>{const{subTree:w,suspense:C}=n,P=km(w);if(S.type===P.type&&S.key===P.key){Yy(P);const k=P.component.da;k&&lr(k,C);return}h(S)})}),()=>{if(y=null,!t.default)return s=null;const S=t.default(),w=S[0];if(S.length>1)return s=null,S;if(!ba(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return s=null,w;let C=km(w);if(C.type===Xn)return s=null,C;const P=C.type,k=y0(Wa(C)?C.type.__asyncResolved||{}:P),{include:R,exclude:T,max:I}=e;if(R&&(!k||!ef(R,k))||T&&k&&ef(T,k))return C.shapeFlag&=-257,s=C,w;const x=C.key==null?P:C.key,A=i.get(x);return C.el&&(C=Ks(C),w.shapeFlag&128&&(w.ssContent=C)),y=x,A?(C.el=A.el,C.component=A.component,C.transition&&io(C,C.transition),C.shapeFlag|=512,a.delete(x),a.add(x)):(a.add(x),I&&a.size>parseInt(I,10)&&v(a.values().next().value)),C.shapeFlag|=256,s=C,Xh(w.type)?w:C}}},GU=WU;function ef(e,t){return Xe(e)?e.some(n=>ef(n,t)):ht(e)?e.split(",").includes(t):SA(e)?(e.lastIndex=0,e.test(t)):!1}function Nw(e,t){vO(e,"a",t)}function gv(e,t){vO(e,"da",t)}function vO(e,t,n=Or){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(vv(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Np(i.parent.vnode)&&qU(r,t,n,i),i=i.parent}}function qU(e,t,n,r){const i=vv(t,e,r,!0);xu(()=>{sv(r[t],i)},n)}function Yy(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function km(e){return e.shapeFlag&128?e.ssContent:e}function vv(e,t,n=Or,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{no();const o=iu(n),l=ks(t,n,e,s);return o(),ro(),l});return r?i.unshift(a):i.push(a),a}}const vo=e=>(t,n=Or)=>{(!_c||e==="sp")&&vv(e,(...r)=>t(...r),n)},nl=vo("bm"),Nt=vo("m"),yv=vo("bu"),Dp=vo("u"),wr=vo("bum"),xu=vo("um"),yO=vo("sp"),bO=vo("rtg"),SO=vo("rtc");function wO(e,t=Or){vv("ec",e,t)}const Dw="components",KU="directives";function Cc(e,t){return Lw(Dw,e,!0,t)||e}const EO=Symbol.for("v-ndc");function xO(e){return ht(e)?Lw(Dw,e,!1)||e:e||EO}function $f(e){return Lw(KU,e)}function Lw(e,t,n=!0,r=!1){const i=Nr||Or;if(i){const a=i.type;if(e===Dw){const o=y0(a,!1);if(o&&(o===t||o===En(t)||o===Ki(En(t))))return a}const s=uk(i[e]||a[e],t)||uk(i.appContext[e],t);return!s&&r?a:s}}function uk(e,t){return e&&(e[t]||e[En(t)]||e[Ki(En(t))])}function Zt(e,t,n,r){let i;const a=n&&n[r],s=Xe(e);if(s||ht(e)){const o=s&&Ws(e);let l=!1,u=!1;o&&(l=!Bi(e),u=ya(e),e=cv(e)),i=new Array(e.length);for(let c=0,d=e.length;c<d;c++)i[c]=t(l?u?Ec(qs(e[c])):qs(e[c]):e[c],c,void 0,a&&a[c])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(dn(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,a&&a[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,u=o.length;l<u;l++){const c=o[l];i[l]=t(e[c],c,l,a&&a[l])}}else i=[];return n&&(n[r]=i),i}function Fw(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Xe(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function kc(e,t,n={},r,i){if(Nr.ce||Nr.parent&&Wa(Nr.parent)&&Nr.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),F(),Q(Ne,null,[f("slot",n,r&&r())],u?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),F();const s=a&&Mw(a(n)),o=n.key||s&&s.key,l=Q(Ne,{key:(o&&!yi(o)?o:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Mw(e){return e.some(t=>ba(t)?!(t.type===Xn||t.type===Ne&&!Mw(t.children)):!0)?e:null}function YU(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Fl(r)]=e[r];return n}const l0=e=>e?YO(e)?Lp(e):l0(e.parent):null,pf=Mt(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=>l0(e.parent),$root:e=>l0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$w(e),$forceUpdate:e=>e.f||(e.f=()=>{Iw(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>IU.bind(e)}),Xy=(e,t)=>e!==Ut&&!e.__isScriptSetup&&on(e,t),u0={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:l}=e;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(Xy(r,t))return s[t]=1,r[t];if(i!==Ut&&on(i,t))return s[t]=2,i[t];if(on(a,t))return s[t]=3,a[t];if(n!==Ut&&on(n,t))return s[t]=4,n[t];c0&&(s[t]=0)}}const u=pf[t];let c,d;if(u)return t==="$attrs"&&Yr(e.attrs,"get",""),u(e);if((c=o.__cssModules)&&(c=c[t]))return c;if(n!==Ut&&on(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,on(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return Xy(i,t)?(i[t]=n,!0):r!==Ut&&on(r,t)?(r[t]=n,!0):on(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:i,props:a,type:s}},o){let l;return!!(n[o]||e!==Ut&&o[0]!=="$"&&on(e,o)||Xy(t,o)||on(a,o)||on(r,o)||on(pf,o)||on(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:on(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},XU=Mt({},u0,{get(e,t){if(t!==Symbol.unscopables)return u0.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Sw(t)}});function JU(){return null}function QU(){return null}function ZU(e){}function e6(e){}function t6(){return null}function n6(){}function r6(e,t){return null}function i6(){return CO().slots}function s6(){return CO().attrs}function CO(e){const t=wi();return t.setupContext||(t.setupContext=QO(t))}function Vf(e){return Xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function a6(e,t){const n=Vf(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Xe(i)||dt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function o6(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):Mt({},Vf(e),Vf(t))}function l6(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function u6(e){const t=wi();let n=e();return h0(),av(n)&&(n=n.catch(r=>{throw iu(t),r})),[n,()=>iu(t)]}let c0=!0;function c6(e){const t=$w(e),n=e.proxy,r=e.ctx;c0=!1,t.beforeCreate&&ck(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:o,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:w,unmounted:C,render:P,renderTracked:k,renderTriggered:R,errorCaptured:T,serverPrefetch:I,expose:x,inheritAttrs:A,components:D,directives:B,filters:V}=t;if(u&&d6(u,r,null),s)for(const O in s){const M=s[O];dt(M)&&(r[O]=M.bind(n))}if(i){const O=i.call(n,n);dn(O)&&(e.data=An(O))}if(c0=!0,a)for(const O in a){const M=a[O],Y=dt(M)?M.bind(n,n):dt(M.get)?M.get.bind(n,n):Cr,X=!dt(M)&&dt(M.set)?M.set.bind(n):Cr,ie=L({get:Y,set:X});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>ie.value,set:Z=>ie.value=Z})}if(o)for(const O in o)kO(o[O],r,n,O);if(l){const O=dt(l)?l.call(n):l;Reflect.ownKeys(O).forEach(M=>{Sn(M,O[M])})}c&&ck(c,e,"c");function N(O,M){Xe(M)?M.forEach(Y=>O(Y.bind(n))):M&&O(M.bind(n))}if(N(nl,d),N(Nt,p),N(yv,h),N(Dp,g),N(Nw,v),N(gv,y),N(wO,T),N(SO,k),N(bO,R),N(wr,S),N(xu,C),N(yO,I),Xe(x))if(x.length){const O=e.exposed||(e.exposed={});x.forEach(M=>{Object.defineProperty(O,M,{get:()=>n[M],set:Y=>n[M]=Y,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===Cr&&(e.render=P),A!=null&&(e.inheritAttrs=A),D&&(e.components=D),B&&(e.directives=B),I&&Ow(e)}function d6(e,t,n=Cr){Xe(e)&&(e=d0(e));for(const r in e){const i=e[r];let a;dn(i)?"default"in i?a=ft(i.from||r,i.default,!0):a=ft(i.from||r):a=ft(i),Ot(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function ck(e,t,n){ks(Xe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kO(e,t,n,r){let i=r.includes(".")?oO(n,r):()=>n[r];if(ht(e)){const a=t[e];dt(a)&&Oe(i,a)}else if(dt(e))Oe(i,e.bind(n));else if(dn(e))if(Xe(e))e.forEach(a=>kO(a,t,n,r));else{const a=dt(e.handler)?e.handler.bind(n):t[e.handler];dt(a)&&Oe(i,a,e)}}function $w(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let l;return o?l=o:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>Kh(l,u,s,!0)),Kh(l,t,s)),dn(t)&&a.set(t,l),l}function Kh(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&Kh(e,a,n,!0),i&&i.forEach(s=>Kh(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=f6[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const f6={data:dk,props:fk,emits:fk,methods:tf,computed:tf,beforeCreate:li,created:li,beforeMount:li,mounted:li,beforeUpdate:li,updated:li,beforeDestroy:li,beforeUnmount:li,destroyed:li,unmounted:li,activated:li,deactivated:li,errorCaptured:li,serverPrefetch:li,components:tf,directives:tf,watch:m6,provide:dk,inject:p6};function dk(e,t){return t?e?function(){return Mt(dt(e)?e.call(this,this):e,dt(t)?t.call(this,this):t)}:t:e}function p6(e,t){return tf(d0(e),d0(t))}function d0(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function li(e,t){return e?[...new Set([].concat(e,t))]:t}function tf(e,t){return e?Mt(Object.create(null),e,t):t}function fk(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:Mt(Object.create(null),Vf(e),Vf(t??{})):t}function m6(e,t){if(!e)return t;if(!t)return e;const n=Mt(Object.create(null),e);for(const r in t)n[r]=li(e[r],t[r]);return n}function _O(){return{app:null,config:{isNativeTag:xl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let h6=0;function g6(e,t){return function(r,i=null){dt(r)||(r=Mt({},r)),i!=null&&!dn(i)&&(i=null);const a=_O(),s=new WeakSet,o=[];let l=!1;const u=a.app={_uid:h6++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:e2,get config(){return a.config},set config(c){},use(c,...d){return s.has(c)||(c&&dt(c.install)?(s.add(c),c.install(u,...d)):dt(c)&&(s.add(c),c(u,...d))),u},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),u},component(c,d){return d?(a.components[c]=d,u):a.components[c]},directive(c,d){return d?(a.directives[c]=d,u):a.directives[c]},mount(c,d,p){if(!l){const h=u._ceVNode||f(r,i);return h.appContext=a,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(h,c):e(h,c,p),l=!0,u._container=c,c.__vue_app__=u,Lp(h.component)}},onUnmount(c){o.push(c)},unmount(){l&&(ks(o,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return a.provides[c]=d,u},runWithContext(c){const d=Vl;Vl=u;try{return c()}finally{Vl=d}}};return u}}let Vl=null;function v6(e,t,n=Ut){const r=wi(),i=En(t),a=Xr(t),s=TO(e,i),o=XA((l,u)=>{let c,d=Ut,p;return aO(()=>{const h=e[i];Kr(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const g=n.set?n.set(h):h;if(!Kr(g,c)&&!(d!==Ut&&Kr(h,d)))return;const v=r.vnode.props;v&&(t in v||i in v||a in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${a}`in v)||(c=h,u()),r.emit(`update:${t}`,g),Kr(h,g)&&Kr(h,d)&&!Kr(g,p)&&u(),d=h,p=g}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||Ut:o,done:!1}:{done:!0}}}},o}const TO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${En(t)}Modifiers`]||e[`${Xr(t)}Modifiers`];function y6(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ut;let i=n;const a=t.startsWith("update:"),s=a&&TO(r,t.slice(7));s&&(s.trim&&(i=n.map(c=>ht(c)?c.trim():c)),s.number&&(i=n.map(_p)));let o,l=r[o=Fl(t)]||r[o=Fl(En(t))];!l&&a&&(l=r[o=Fl(Xr(t))]),l&&ks(l,e,6,i);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ks(u,e,6,i)}}const b6=new WeakMap;function IO(e,t,n=!1){const r=n?b6:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let s={},o=!1;if(!dt(e)){const l=u=>{const c=IO(u,t,!0);c&&(o=!0,Mt(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(dn(e)&&r.set(e,null),null):(Xe(a)?a.forEach(l=>s[l]=null):Mt(s,a),dn(e)&&r.set(e,s),s)}function bv(e,t){return!e||!el(t)?!1:(t=t.slice(2).replace(/Once$/,""),on(e,t[0].toLowerCase()+t.slice(1))||on(e,Xr(t))||on(e,t))}function ih(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:l,render:u,renderCache:c,props:d,data:p,setupState:h,ctx:g,inheritAttrs:v}=e,y=Mf(e);let b,S;try{if(n.shapeFlag&4){const C=i||r,P=C;b=Oi(u.call(P,C,c,d,h,p,g)),S=o}else{const C=t;b=Oi(C.length>1?C(d,{attrs:o,slots:s,emit:l}):C(d,null)),S=t.props?o:w6(o)}}catch(C){mf.length=0,Eu(C,e,1),b=f(Xn)}let w=b;if(S&&v!==!1){const C=Object.keys(S),{shapeFlag:P}=w;C.length&&P&7&&(a&&C.some(iv)&&(S=E6(S,a)),w=Ks(w,S,!1,!0))}return n.dirs&&(w=Ks(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&io(w,n.transition),b=w,Mf(y),b}function S6(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(ba(i)){if(i.type!==Xn||i.children==="v-if"){if(n)return;n=i}}else return}return n}const w6=e=>{let t;for(const n in e)(n==="class"||n==="style"||el(n))&&((t||(t={}))[n]=e[n]);return t},E6=(e,t)=>{const n={};for(const r in e)(!iv(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function x6(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?pk(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(s[p]!==r[p]&&!bv(u,p))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?pk(r,s,u):!0:!!s;return!1}function pk(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(t[a]!==e[a]&&!bv(n,a))return!0}return!1}function Sv({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const PO={},RO=()=>Object.create(PO),AO=e=>Object.getPrototypeOf(e)===PO;function C6(e,t,n,r=!1){const i={},a=RO();e.propsDefaults=Object.create(null),OO(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:Pp(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function k6(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=nt(i),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(bv(e.emitsOptions,p))continue;const h=t[p];if(l)if(on(a,p))h!==a[p]&&(a[p]=h,u=!0);else{const g=En(p);i[g]=f0(l,o,g,h,e,!1)}else h!==a[p]&&(a[p]=h,u=!0)}}}else{OO(e,t,i,a)&&(u=!0);let c;for(const d in o)(!t||!on(t,d)&&((c=Xr(d))===d||!on(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=f0(l,o,d,void 0,e,!0)):delete i[d]);if(a!==o)for(const d in a)(!t||!on(t,d))&&(delete a[d],u=!0)}u&&Va(e.attrs,"set","")}function OO(e,t,n,r){const[i,a]=e.propsOptions;let s=!1,o;if(t)for(let l in t){if(Ha(l))continue;const u=t[l];let c;i&&on(i,c=En(l))?!a||!a.includes(c)?n[c]=u:(o||(o={}))[c]=u:bv(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(a){const l=nt(n),u=o||Ut;for(let c=0;c<a.length;c++){const d=a[c];n[d]=f0(i,l,d,u[d],e,!on(u,d))}}return s}function f0(e,t,n,r,i,a){const s=e[n];if(s!=null){const o=on(s,"default");if(o&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&dt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=iu(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!o?r=!1:s[1]&&(r===""||r===Xr(n))&&(r=!0))}return r}const _6=new WeakMap;function NO(e,t,n=!1){const r=n?_6:t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},o=[];let l=!1;if(!dt(e)){const c=d=>{l=!0;const[p,h]=NO(d,t,!0);Mt(s,p),h&&o.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return dn(e)&&r.set(e,Dl),Dl;if(Xe(a))for(let c=0;c<a.length;c++){const d=En(a[c]);mk(d)&&(s[d]=Ut)}else if(a)for(const c in a){const d=En(c);if(mk(d)){const p=a[c],h=s[d]=Xe(p)||dt(p)?{type:p}:Mt({},p),g=h.type;let v=!1,y=!0;if(Xe(g))for(let b=0;b<g.length;++b){const S=g[b],w=dt(S)&&S.name;if(w==="Boolean"){v=!0;break}else w==="String"&&(y=!1)}else v=dt(g)&&g.name==="Boolean";h[0]=v,h[1]=y,(v||on(h,"default"))&&o.push(d)}}const u=[s,o];return dn(e)&&r.set(e,u),u}function mk(e){return e[0]!=="$"&&!Ha(e)}const Vw=e=>e==="_"||e==="_ctx"||e==="$stable",Bw=e=>Xe(e)?e.map(Oi):[Oi(e)],T6=(e,t,n)=>{if(t._n)return t;const r=m((...i)=>Bw(t(...i)),n);return r._c=!1,r},DO=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Vw(i))continue;const a=e[i];if(dt(a))t[i]=T6(i,a,r);else if(a!=null){const s=Bw(a);t[i]=()=>s}}},LO=(e,t)=>{const n=Bw(t);e.slots.default=()=>n},FO=(e,t,n)=>{for(const r in t)(n||!Vw(r))&&(e[r]=t[r])},I6=(e,t,n)=>{const r=e.slots=RO();if(e.vnode.shapeFlag&32){const i=t._;i?(FO(r,t,n),n&&bw(r,"_",i,!0)):DO(t,r)}else t&&LO(e,t)},P6=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=Ut;if(r.shapeFlag&32){const o=t._;o?n&&o===1?a=!1:FO(i,t,n):(a=!t.$stable,DO(t,i)),s=t}else t&&(LO(e,t),s={default:1});if(a)for(const o in i)!Vw(o)&&s[o]==null&&delete i[o]},lr=HO;function MO(e){return VO(e)}function $O(e){return VO(e,DU)}function VO(e,t){const n=Tp();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:o,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:h=Cr,insertStaticContent:g}=e,v=(H,q,ce,oe=null,ge=null,xe=null,Ie=void 0,Ee=null,_e=!!q.dynamicChildren)=>{if(H===q)return;H&&!zs(H,q)&&(oe=W(H),Z(H,ge,xe,!0),H=null),q.patchFlag===-2&&(_e=!1,q.dynamicChildren=null);const{type:he,ref:Ue,shapeFlag:Pe}=q;switch(he){case Ga:y(H,q,ce,oe);break;case Xn:b(H,q,ce,oe);break;case Bl:H==null&&S(q,ce,oe,Ie);break;case Ne:D(H,q,ce,oe,ge,xe,Ie,Ee,_e);break;default:Pe&1?P(H,q,ce,oe,ge,xe,Ie,Ee,_e):Pe&6?B(H,q,ce,oe,ge,xe,Ie,Ee,_e):(Pe&64||Pe&128)&&he.process(H,q,ce,oe,ge,xe,Ie,Ee,_e,ke)}Ue!=null&&ge?hc(Ue,H&&H.ref,xe,q||H,!q):Ue==null&&H&&H.ref!=null&&hc(H.ref,null,xe,H,!0)},y=(H,q,ce,oe)=>{if(H==null)r(q.el=o(q.children),ce,oe);else{const ge=q.el=H.el;q.children!==H.children&&u(ge,q.children)}},b=(H,q,ce,oe)=>{H==null?r(q.el=l(q.children||""),ce,oe):q.el=H.el},S=(H,q,ce,oe)=>{[H.el,H.anchor]=g(H.children,q,ce,oe,H.el,H.anchor)},w=({el:H,anchor:q},ce,oe)=>{let ge;for(;H&&H!==q;)ge=p(H),r(H,ce,oe),H=ge;r(q,ce,oe)},C=({el:H,anchor:q})=>{let ce;for(;H&&H!==q;)ce=p(H),i(H),H=ce;i(q)},P=(H,q,ce,oe,ge,xe,Ie,Ee,_e)=>{if(q.type==="svg"?Ie="svg":q.type==="math"&&(Ie="mathml"),H==null)k(q,ce,oe,ge,xe,Ie,Ee,_e);else{const he=H.el&&H.el._isVueCE?H.el:null;try{he&&he._beginPatch(),I(H,q,ge,xe,Ie,Ee,_e)}finally{he&&he._endPatch()}}},k=(H,q,ce,oe,ge,xe,Ie,Ee)=>{let _e,he;const{props:Ue,shapeFlag:Pe,transition:qe,dirs:tt}=H;if(_e=H.el=s(H.type,xe,Ue&&Ue.is,Ue),Pe&8?c(_e,H.children):Pe&16&&T(H.children,_e,null,oe,ge,Jy(H,xe),Ie,Ee),tt&&ua(H,null,oe,"created"),R(_e,H,H.scopeId,Ie,oe),Ue){for(const $t in Ue)$t!=="value"&&!Ha($t)&&a(_e,$t,null,Ue[$t],xe,oe);"value"in Ue&&a(_e,"value",null,Ue.value,xe),(he=Ue.onVnodeBeforeMount)&&Ri(he,oe,H)}tt&&ua(H,null,oe,"beforeMount");const rt=BO(ge,qe);rt&&qe.beforeEnter(_e),r(_e,q,ce),((he=Ue&&Ue.onVnodeMounted)||rt||tt)&&lr(()=>{he&&Ri(he,oe,H),rt&&qe.enter(_e),tt&&ua(H,null,oe,"mounted")},ge)},R=(H,q,ce,oe,ge)=>{if(ce&&h(H,ce),oe)for(let xe=0;xe<oe.length;xe++)h(H,oe[xe]);if(ge){let xe=ge.subTree;if(q===xe||Xh(xe.type)&&(xe.ssContent===q||xe.ssFallback===q)){const Ie=ge.vnode;R(H,Ie,Ie.scopeId,Ie.slotScopeIds,ge.parent)}}},T=(H,q,ce,oe,ge,xe,Ie,Ee,_e=0)=>{for(let he=_e;he<H.length;he++){const Ue=H[he]=Ee?Ro(H[he]):Oi(H[he]);v(null,Ue,q,ce,oe,ge,xe,Ie,Ee)}},I=(H,q,ce,oe,ge,xe,Ie)=>{const Ee=q.el=H.el;let{patchFlag:_e,dynamicChildren:he,dirs:Ue}=q;_e|=H.patchFlag&16;const Pe=H.props||Ut,qe=q.props||Ut;let tt;if(ce&&dl(ce,!1),(tt=qe.onVnodeBeforeUpdate)&&Ri(tt,ce,q,H),Ue&&ua(q,H,ce,"beforeUpdate"),ce&&dl(ce,!0),(Pe.innerHTML&&qe.innerHTML==null||Pe.textContent&&qe.textContent==null)&&c(Ee,""),he?x(H.dynamicChildren,he,Ee,ce,oe,Jy(q,ge),xe):Ie||M(H,q,Ee,null,ce,oe,Jy(q,ge),xe,!1),_e>0){if(_e&16)A(Ee,Pe,qe,ce,ge);else if(_e&2&&Pe.class!==qe.class&&a(Ee,"class",null,qe.class,ge),_e&4&&a(Ee,"style",Pe.style,qe.style,ge),_e&8){const rt=q.dynamicProps;for(let $t=0;$t<rt.length;$t++){const de=rt[$t],pe=Pe[de],we=qe[de];(we!==pe||de==="value")&&a(Ee,de,pe,we,ge,ce)}}_e&1&&H.children!==q.children&&c(Ee,q.children)}else!Ie&&he==null&&A(Ee,Pe,qe,ce,ge);((tt=qe.onVnodeUpdated)||Ue)&&lr(()=>{tt&&Ri(tt,ce,q,H),Ue&&ua(q,H,ce,"updated")},oe)},x=(H,q,ce,oe,ge,xe,Ie)=>{for(let Ee=0;Ee<q.length;Ee++){const _e=H[Ee],he=q[Ee],Ue=_e.el&&(_e.type===Ne||!zs(_e,he)||_e.shapeFlag&198)?d(_e.el):ce;v(_e,he,Ue,null,oe,ge,xe,Ie,!0)}},A=(H,q,ce,oe,ge)=>{if(q!==ce){if(q!==Ut)for(const xe in q)!Ha(xe)&&!(xe in ce)&&a(H,xe,q[xe],null,ge,oe);for(const xe in ce){if(Ha(xe))continue;const Ie=ce[xe],Ee=q[xe];Ie!==Ee&&xe!=="value"&&a(H,xe,Ee,Ie,ge,oe)}"value"in ce&&a(H,"value",q.value,ce.value,ge)}},D=(H,q,ce,oe,ge,xe,Ie,Ee,_e)=>{const he=q.el=H?H.el:o(""),Ue=q.anchor=H?H.anchor:o("");let{patchFlag:Pe,dynamicChildren:qe,slotScopeIds:tt}=q;tt&&(Ee=Ee?Ee.concat(tt):tt),H==null?(r(he,ce,oe),r(Ue,ce,oe),T(q.children||[],ce,Ue,ge,xe,Ie,Ee,_e)):Pe>0&&Pe&64&&qe&&H.dynamicChildren&&H.dynamicChildren.length===qe.length?(x(H.dynamicChildren,qe,ce,ge,xe,Ie,Ee),(q.key!=null||ge&&q===ge.subTree)&&Uw(H,q,!0)):M(H,q,ce,Ue,ge,xe,Ie,Ee,_e)},B=(H,q,ce,oe,ge,xe,Ie,Ee,_e)=>{q.slotScopeIds=Ee,H==null?q.shapeFlag&512?ge.ctx.activate(q,ce,oe,Ie,_e):V(q,ce,oe,ge,xe,Ie,_e):$(H,q,_e)},V=(H,q,ce,oe,ge,xe,Ie)=>{const Ee=H.component=KO(H,oe,ge);if(Np(H)&&(Ee.ctx.renderer=ke),XO(Ee,!1,Ie),Ee.asyncDep){if(ge&&ge.registerDep(Ee,N,Ie),!H.el){const _e=Ee.subTree=f(Xn);b(null,_e,q,ce),H.placeholder=_e.el}}else N(Ee,H,q,ce,ge,xe,Ie)},$=(H,q,ce)=>{const oe=q.component=H.component;if(x6(H,q,ce))if(oe.asyncDep&&!oe.asyncResolved){O(oe,q,ce);return}else oe.next=q,oe.update();else q.el=H.el,oe.vnode=q},N=(H,q,ce,oe,ge,xe,Ie)=>{const Ee=()=>{if(H.isMounted){let{next:Pe,bu:qe,u:tt,parent:rt,vnode:$t}=H;{const Ge=UO(H);if(Ge){Pe&&(Pe.el=$t.el,O(H,Pe,Ie)),Ge.asyncDep.then(()=>{H.isUnmounted||Ee()});return}}let de=Pe,pe;dl(H,!1),Pe?(Pe.el=$t.el,O(H,Pe,Ie)):Pe=$t,qe&&Ml(qe),(pe=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&Ri(pe,rt,Pe,$t),dl(H,!0);const we=ih(H),Ae=H.subTree;H.subTree=we,v(Ae,we,d(Ae.el),W(Ae),H,ge,xe),Pe.el=we.el,de===null&&Sv(H,we.el),tt&&lr(tt,ge),(pe=Pe.props&&Pe.props.onVnodeUpdated)&&lr(()=>Ri(pe,rt,Pe,$t),ge)}else{let Pe;const{el:qe,props:tt}=q,{bm:rt,m:$t,parent:de,root:pe,type:we}=H,Ae=Wa(q);if(dl(H,!1),rt&&Ml(rt),!Ae&&(Pe=tt&&tt.onVnodeBeforeMount)&&Ri(Pe,de,q),dl(H,!0),qe&&Ve){const Ge=()=>{H.subTree=ih(H),Ve(qe,H.subTree,H,ge,null)};Ae&&we.__asyncHydrate?we.__asyncHydrate(qe,H,Ge):Ge()}else{pe.ce&&pe.ce._def.shadowRoot!==!1&&pe.ce._injectChildStyle(we);const Ge=H.subTree=ih(H);v(null,Ge,ce,oe,H,ge,xe),q.el=Ge.el}if($t&&lr($t,ge),!Ae&&(Pe=tt&&tt.onVnodeMounted)){const Ge=q;lr(()=>Ri(Pe,de,Ge),ge)}(q.shapeFlag&256||de&&Wa(de.vnode)&&de.vnode.shapeFlag&256)&&H.a&&lr(H.a,ge),H.isMounted=!0,q=ce=oe=null}};H.scope.on();const _e=H.effect=new Of(Ee);H.scope.off();const he=H.update=_e.run.bind(_e),Ue=H.job=_e.runIfDirty.bind(_e);Ue.i=H,Ue.id=H.uid,_e.scheduler=()=>Iw(Ue),dl(H,!0),he()},O=(H,q,ce)=>{q.component=H;const oe=H.vnode.props;H.vnode=q,H.next=null,k6(H,q.props,oe,ce),P6(H,q.children,ce),no(),tk(H),ro()},M=(H,q,ce,oe,ge,xe,Ie,Ee,_e=!1)=>{const he=H&&H.children,Ue=H?H.shapeFlag:0,Pe=q.children,{patchFlag:qe,shapeFlag:tt}=q;if(qe>0){if(qe&128){X(he,Pe,ce,oe,ge,xe,Ie,Ee,_e);return}else if(qe&256){Y(he,Pe,ce,oe,ge,xe,Ie,Ee,_e);return}}tt&8?(Ue&16&&ue(he,ge,xe),Pe!==he&&c(ce,Pe)):Ue&16?tt&16?X(he,Pe,ce,oe,ge,xe,Ie,Ee,_e):ue(he,ge,xe,!0):(Ue&8&&c(ce,""),tt&16&&T(Pe,ce,oe,ge,xe,Ie,Ee,_e))},Y=(H,q,ce,oe,ge,xe,Ie,Ee,_e)=>{H=H||Dl,q=q||Dl;const he=H.length,Ue=q.length,Pe=Math.min(he,Ue);let qe;for(qe=0;qe<Pe;qe++){const tt=q[qe]=_e?Ro(q[qe]):Oi(q[qe]);v(H[qe],tt,ce,null,ge,xe,Ie,Ee,_e)}he>Ue?ue(H,ge,xe,!0,!1,Pe):T(q,ce,oe,ge,xe,Ie,Ee,_e,Pe)},X=(H,q,ce,oe,ge,xe,Ie,Ee,_e)=>{let he=0;const Ue=q.length;let Pe=H.length-1,qe=Ue-1;for(;he<=Pe&&he<=qe;){const tt=H[he],rt=q[he]=_e?Ro(q[he]):Oi(q[he]);if(zs(tt,rt))v(tt,rt,ce,null,ge,xe,Ie,Ee,_e);else break;he++}for(;he<=Pe&&he<=qe;){const tt=H[Pe],rt=q[qe]=_e?Ro(q[qe]):Oi(q[qe]);if(zs(tt,rt))v(tt,rt,ce,null,ge,xe,Ie,Ee,_e);else break;Pe--,qe--}if(he>Pe){if(he<=qe){const tt=qe+1,rt=tt<Ue?q[tt].el:oe;for(;he<=qe;)v(null,q[he]=_e?Ro(q[he]):Oi(q[he]),ce,rt,ge,xe,Ie,Ee,_e),he++}}else if(he>qe)for(;he<=Pe;)Z(H[he],ge,xe,!0),he++;else{const tt=he,rt=he,$t=new Map;for(he=rt;he<=qe;he++){const yt=q[he]=_e?Ro(q[he]):Oi(q[he]);yt.key!=null&&$t.set(yt.key,he)}let de,pe=0;const we=qe-rt+1;let Ae=!1,Ge=0;const at=new Array(we);for(he=0;he<we;he++)at[he]=0;for(he=tt;he<=Pe;he++){const yt=H[he];if(pe>=we){Z(yt,ge,xe,!0);continue}let tn;if(yt.key!=null)tn=$t.get(yt.key);else for(de=rt;de<=qe;de++)if(at[de-rt]===0&&zs(yt,q[de])){tn=de;break}tn===void 0?Z(yt,ge,xe,!0):(at[tn-rt]=he+1,tn>=Ge?Ge=tn:Ae=!0,v(yt,q[tn],ce,null,ge,xe,Ie,Ee,_e),pe++)}const vt=Ae?R6(at):Dl;for(de=vt.length-1,he=we-1;he>=0;he--){const yt=rt+he,tn=q[yt],ut=q[yt+1],Je=yt+1<Ue?ut.el||jO(ut):oe;at[he]===0?v(null,tn,ce,Je,ge,xe,Ie,Ee,_e):Ae&&(de<0||he!==vt[de]?ie(tn,ce,Je,2):de--)}}},ie=(H,q,ce,oe,ge=null)=>{const{el:xe,type:Ie,transition:Ee,children:_e,shapeFlag:he}=H;if(he&6){ie(H.component.subTree,q,ce,oe);return}if(he&128){H.suspense.move(q,ce,oe);return}if(he&64){Ie.move(H,q,ce,ke);return}if(Ie===Ne){r(xe,q,ce);for(let Pe=0;Pe<_e.length;Pe++)ie(_e[Pe],q,ce,oe);r(H.anchor,q,ce);return}if(Ie===Bl){w(H,q,ce);return}if(oe!==2&&he&1&&Ee)if(oe===0)Ee.beforeEnter(xe),r(xe,q,ce),lr(()=>Ee.enter(xe),ge);else{const{leave:Pe,delayLeave:qe,afterLeave:tt}=Ee,rt=()=>{H.ctx.isUnmounted?i(xe):r(xe,q,ce)},$t=()=>{xe._isLeaving&&xe[Ma](!0),Pe(xe,()=>{rt(),tt&&tt()})};qe?qe(xe,rt,$t):$t()}else r(xe,q,ce)},Z=(H,q,ce,oe=!1,ge=!1)=>{const{type:xe,props:Ie,ref:Ee,children:_e,dynamicChildren:he,shapeFlag:Ue,patchFlag:Pe,dirs:qe,cacheIndex:tt}=H;if(Pe===-2&&(ge=!1),Ee!=null&&(no(),hc(Ee,null,ce,H,!0),ro()),tt!=null&&(q.renderCache[tt]=void 0),Ue&256){q.ctx.deactivate(H);return}const rt=Ue&1&&qe,$t=!Wa(H);let de;if($t&&(de=Ie&&Ie.onVnodeBeforeUnmount)&&Ri(de,q,H),Ue&6)ee(H.component,ce,oe);else{if(Ue&128){H.suspense.unmount(ce,oe);return}rt&&ua(H,null,q,"beforeUnmount"),Ue&64?H.type.remove(H,q,ce,ke,oe):he&&!he.hasOnce&&(xe!==Ne||Pe>0&&Pe&64)?ue(he,q,ce,!1,!0):(xe===Ne&&Pe&384||!ge&&Ue&16)&&ue(_e,q,ce),oe&&G(H)}($t&&(de=Ie&&Ie.onVnodeUnmounted)||rt)&&lr(()=>{de&&Ri(de,q,H),rt&&ua(H,null,q,"unmounted")},ce)},G=H=>{const{type:q,el:ce,anchor:oe,transition:ge}=H;if(q===Ne){le(ce,oe);return}if(q===Bl){C(H);return}const xe=()=>{i(ce),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(H.shapeFlag&1&&ge&&!ge.persisted){const{leave:Ie,delayLeave:Ee}=ge,_e=()=>Ie(ce,xe);Ee?Ee(H.el,xe,_e):_e()}else xe()},le=(H,q)=>{let ce;for(;H!==q;)ce=p(H),i(H),H=ce;i(q)},ee=(H,q,ce)=>{const{bum:oe,scope:ge,job:xe,subTree:Ie,um:Ee,m:_e,a:he}=H;Yh(_e),Yh(he),oe&&Ml(oe),ge.stop(),xe&&(xe.flags|=8,Z(Ie,H,q,ce)),Ee&&lr(Ee,q),lr(()=>{H.isUnmounted=!0},q)},ue=(H,q,ce,oe=!1,ge=!1,xe=0)=>{for(let Ie=xe;Ie<H.length;Ie++)Z(H[Ie],q,ce,oe,ge)},W=H=>{if(H.shapeFlag&6)return W(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const q=p(H.anchor||H.el),ce=q&&q[lO];return ce?p(ce):q};let ne=!1;const J=(H,q,ce)=>{let oe;H==null?q._vnode&&(Z(q._vnode,null,null,!0),oe=q._vnode.component):v(q._vnode||null,H,q,null,null,null,ce),q._vnode=H,ne||(ne=!0,tk(oe),Gh(),ne=!1)},ke={p:v,um:Z,m:ie,r:G,mt:V,mc:T,pc:M,pbc:x,n:W,o:e};let We,Ve;return t&&([We,Ve]=t(ke)),{render:J,hydrate:We,createApp:g6(J,We)}}function Jy({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 dl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function BO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uw(e,t,n=!1){const r=e.children,i=t.children;if(Xe(r)&&Xe(i))for(let a=0;a<r.length;a++){const s=r[a];let o=i[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[a]=Ro(i[a]),o.el=s.el),!n&&o.patchFlag!==-2&&Uw(s,o)),o.type===Ga&&(o.patchFlag!==-1?o.el=s.el:o.__elIndex=a+(e.type===Ne?1:0)),o.type===Xn&&!o.el&&(o.el=s.el)}}function R6(e){const t=e.slice(),n=[0];let r,i,a,s,o;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,e[n[o]]<u?a=o+1:s=o;u<e[n[a]]&&(a>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 UO(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:UO(t)}function Yh(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function jO(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?jO(t.subTree):null}const Xh=e=>e.__isSuspense;let p0=0;const A6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,o,l,u){if(e==null)N6(t,n,r,i,a,s,o,l,u);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}D6(e,t,n,r,i,s,o,l,u)}},hydrate:L6,normalize:F6},O6=A6;function Bf(e,t){const n=e.props&&e.props[t];dt(n)&&n()}function N6(e,t,n,r,i,a,s,o,l){const{p:u,o:{createElement:c}}=l,d=c("div"),p=e.suspense=zO(e,i,r,t,d,n,a,s,o,l);u(null,p.pendingBranch=e.ssContent,d,null,r,p,a,s),p.deps>0?(Bf(e,"onPending"),Bf(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,a,s),gc(p,e.ssFallback)):p.resolve(!1,!0)}function D6(e,t,n,r,i,a,s,o,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:v,isInFallback:y,isHydrating:b}=d;if(v)d.pendingBranch=p,zs(v,p)?(l(v,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0?d.resolve():y&&(b||(l(g,h,n,r,i,null,a,s,o),gc(d,h)))):(d.pendingId=p0++,b?(d.isHydrating=!1,d.activeBranch=v):u(v,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),y?(l(null,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0?d.resolve():(l(g,h,n,r,i,null,a,s,o),gc(d,h))):g&&zs(g,p)?(l(g,p,n,r,i,d,a,s,o),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0&&d.resolve()));else if(g&&zs(g,p))l(g,p,n,r,i,d,a,s,o),gc(d,p);else if(Bf(t,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=p0++,l(null,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:w}=d;S>0?setTimeout(()=>{d.pendingId===w&&d.fallback(h)},S):S===0&&d.fallback(h)}}function zO(e,t,n,r,i,a,s,o,l,u,c=!1){const{p:d,m:p,um:h,n:g,o:{parentNode:v,remove:y}}=u;let b;const S=M6(e);S&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const w=e.props?Af(e.props.timeout):void 0,C=a,P={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:p0++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,R=!1){const{vnode:T,activeBranch:I,pendingBranch:x,pendingId:A,effects:D,parentComponent:B,container:V,isInFallback:$}=P;let N=!1;P.isHydrating?P.isHydrating=!1:k||(N=I&&x.transition&&x.transition.mode==="out-in",N&&(I.transition.afterLeave=()=>{A===P.pendingId&&(p(x,V,a===C?g(I):a,0),Lf(D),$&&T.ssFallback&&(T.ssFallback.el=null))}),I&&(v(I.el)===V&&(a=g(I)),h(I,B,P,!0),!N&&$&&T.ssFallback&&lr(()=>T.ssFallback.el=null,P)),N||p(x,V,a,0)),gc(P,x),P.pendingBranch=null,P.isInFallback=!1;let O=P.parent,M=!1;for(;O;){if(O.pendingBranch){O.effects.push(...D),M=!0;break}O=O.parent}!M&&!N&&Lf(D),P.effects=[],S&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!R&&t.resolve()),Bf(T,"onResolve")},fallback(k){if(!P.pendingBranch)return;const{vnode:R,activeBranch:T,parentComponent:I,container:x,namespace:A}=P;Bf(R,"onFallback");const D=g(T),B=()=>{P.isInFallback&&(d(null,k,x,D,I,null,A,o,l),gc(P,k))},V=k.transition&&k.transition.mode==="out-in";V&&(T.transition.afterLeave=B),P.isInFallback=!0,h(T,I,null,!0),V||B()},move(k,R,T){P.activeBranch&&p(P.activeBranch,k,R,T),P.container=k},next(){return P.activeBranch&&g(P.activeBranch)},registerDep(k,R,T){const I=!!P.pendingBranch;I&&P.deps++;const x=k.vnode.el;k.asyncDep.catch(A=>{Eu(A,k,0)}).then(A=>{if(k.isUnmounted||P.isUnmounted||P.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:D}=k;g0(k,A,!1),x&&(D.el=x);const B=!x&&k.subTree.el;R(k,D,v(x||k.subTree.el),x?null:g(k.subTree),P,s,T),B&&(D.placeholder=null,y(B)),Sv(k,D.el),I&&--P.deps===0&&P.resolve()})},unmount(k,R){P.isUnmounted=!0,P.activeBranch&&h(P.activeBranch,n,k,R),P.pendingBranch&&h(P.pendingBranch,n,k,R)}};return P}function L6(e,t,n,r,i,a,s,o,l){const u=t.suspense=zO(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,o,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,a,s);return u.deps===0&&u.resolve(!1,!0),c}function F6(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=hk(r?n.default:n),e.ssFallback=r?hk(n.fallback):f(Xn)}function hk(e){let t;if(dt(e)){const n=ru&&e._c;n&&(e._d=!1,F()),e=e(),n&&(e._d=!0,t=Zr,WO())}return Xe(e)&&(e=S6(e)),e=Oi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function HO(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):Lf(e)}function gc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Sv(r,i))}function M6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),Ga=Symbol.for("v-txt"),Xn=Symbol.for("v-cmt"),Bl=Symbol.for("v-stc"),mf=[];let Zr=null;function F(e=!1){mf.push(Zr=e?null:[])}function WO(){mf.pop(),Zr=mf[mf.length-1]||null}let ru=1;function Uf(e,t=!1){ru+=e,e<0&&Zr&&t&&(Zr.hasOnce=!0)}function GO(e){return e.dynamicChildren=ru>0?Zr||Dl:null,WO(),ru>0&&Zr&&Zr.push(e),e}function fe(e,t,n,r,i,a){return GO(E(e,t,n,r,i,a,!0))}function Q(e,t,n,r,i){return GO(f(e,t,n,r,i,!0))}function ba(e){return e?e.__v_isVNode===!0:!1}function zs(e,t){return e.type===t.type&&e.key===t.key}function $6(e){}const qO=({key:e})=>e??null,sh=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ht(e)||Ot(e)||dt(e)?{i:Nr,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,r=0,i=null,a=e===Ne?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qO(t),ref:t&&sh(t),scopeId:mv,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:i,dynamicChildren:null,appContext:null,ctx:Nr};return o?(jw(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=ht(n)?8:16),ru>0&&!s&&Zr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Zr.push(l),l}const f=V6;function V6(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===EO)&&(e=Xn),ba(e)){const o=Ks(e,t,!0);return n&&jw(o,n),ru>0&&!a&&Zr&&(o.shapeFlag&6?Zr[Zr.indexOf(e)]=o:Zr.push(o)),o.patchFlag=-2,o}if(q6(e)&&(e=e.__vccOpts),t){t=wv(t);let{class:o,style:l}=t;o&&!ht(o)&&(t.class=Te(o)),dn(l)&&(Rp(l)&&!Xe(l)&&(l=Mt({},l)),t.style=je(l))}const s=ht(e)?1:Xh(e)?128:uO(e)?64:dn(e)?4:dt(e)?2:0;return E(e,t,n,r,i,s,a,!0)}function wv(e){return e?Rp(e)||AO(e)?Mt({},e):e:null}function Ks(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?ve(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&qO(u),ref:t&&t.ref?n&&a?Xe(a)?a.concat(sh(t)):[a,sh(t)]:sh(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ks(e.ssContent),ssFallback:e.ssFallback&&Ks(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&io(c,l.clone(c)),c}function _(e=" ",t=0){return f(Ga,null,e,t)}function B6(e,t){const n=f(Bl,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(F(),Q(Xn,null,e)):f(Xn,null,e)}function Oi(e){return e==null||typeof e=="boolean"?f(Xn):Xe(e)?f(Ne,null,e.slice()):ba(e)?Ro(e):f(Ga,null,String(e))}function Ro(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ks(e)}function jw(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Xe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),jw(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!AO(t)?t._ctx=Nr:i===3&&Nr&&(Nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else dt(t)?(t={default:t,_ctx:Nr},n=32):(t=String(t),r&64?(n=16,t=[_(t)]):n=8);e.children=t,e.shapeFlag|=n}function ve(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Te([t.class,r.class]));else if(i==="style")t.style=je([t.style,r.style]);else if(el(i)){const a=t[i],s=r[i];s&&a!==s&&!(Xe(a)&&a.includes(s))&&(t[i]=a?[].concat(a,s):s)}else i!==""&&(t[i]=r[i])}return t}function Ri(e,t,n,r=null){ks(e,t,7,[n,r])}const U6=_O();let j6=0;function KO(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||U6,a={uid:j6++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new xw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:NO(r,i),emitsOptions:IO(r,i),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:r.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,slots:Ut,refs:Ut,setupState:Ut,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=y6.bind(null,a),e.ce&&e.ce(a),a}let Or=null;const wi=()=>Or||Nr;let Jh,m0;{const e=Tp(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};Jh=t("__VUE_INSTANCE_SETTERS__",n=>Or=n),m0=t("__VUE_SSR_SETTERS__",n=>_c=n)}const iu=e=>{const t=Or;return Jh(e),e.scope.on(),()=>{e.scope.off(),Jh(t)}},h0=()=>{Or&&Or.scope.off(),Jh(null)};function YO(e){return e.vnode.shapeFlag&4}let _c=!1;function XO(e,t=!1,n=!1){t&&m0(t);const{props:r,children:i}=e.vnode,a=YO(e);C6(e,r,a,t),I6(e,i,n||t);const s=a?z6(e,t):void 0;return t&&m0(!1),s}function z6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,u0);const{setup:r}=n;if(r){no();const i=e.setupContext=r.length>1?QO(e):null,a=iu(e),s=od(r,e,0,[e.props,i]),o=av(s);if(ro(),a(),(o||e.sp)&&!Wa(e)&&Ow(e),o){if(s.then(h0,h0),t)return s.then(l=>{g0(e,l,t)}).catch(l=>{Eu(l,e,0)});e.asyncDep=s}else g0(e,s,t)}else JO(e,t)}function g0(e,t,n){dt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dn(t)&&(e.setupState=Tw(t)),JO(e,n)}let Qh,v0;function H6(e){Qh=e,v0=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,XU))}}const W6=()=>!Qh;function JO(e,t,n){const r=e.type;if(!e.render){if(!t&&Qh&&!r.render){const i=r.template||$w(e).template;if(i){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:l}=r,u=Mt(Mt({isCustomElement:a,delimiters:o},s),l);r.render=Qh(i,u)}}e.render=r.render||Cr,v0&&v0(e)}{const i=iu(e);no();try{c6(e)}finally{ro(),i()}}}const G6={get(e,t){return Yr(e,"get",""),e[t]}};function QO(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,G6),slots:e.slots,emit:e.emit,expose:t}}function Lp(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Tw(Ap(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pf)return pf[n](e)},has(t,n){return n in t||n in pf}})):e.proxy}function y0(e,t=!0){return dt(e)?e.displayName||e.name:e.name||t&&e.__name}function q6(e){return dt(e)&&"__vccOpts"in e}const L=(e,t)=>fU(e,t,_c);function Rs(e,t,n){try{Uf(-1);const r=arguments.length;return r===2?dn(t)&&!Xe(t)?ba(t)?f(e,null,[t]):f(e,t):f(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ba(n)&&(n=[n]),f(e,t,n))}finally{Uf(1)}}function K6(){}function Y6(e,t,n,r){const i=n[r];if(i&&ZO(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function ZO(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Kr(n[r],t[r]))return!1;return ru>0&&Zr&&Zr.push(e),!0}const e2="3.5.26",X6=Cr,J6=wU,Q6=Ju,Z6=rO,e5={createComponentInstance:KO,setupComponent:XO,renderComponentRoot:ih,setCurrentRenderingInstance:Mf,isVNode:ba,normalizeVNode:Oi,getComponentPublicInstance:Lp,ensureValidVNode:Mw,pushWarningContext:vU,popWarningContext:yU},t5=e5,n5=null,r5=null,i5=null;let b0;const gk=typeof window<"u"&&window.trustedTypes;if(gk)try{b0=gk.createPolicy("vue",{createHTML:e=>e})}catch{}const t2=b0?e=>b0.createHTML(e):e=>e,s5="http://www.w3.org/2000/svg",a5="http://www.w3.org/1998/Math/MathML",Fa=typeof document<"u"?document:null,vk=Fa&&Fa.createElement("template"),n2={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 i=t==="svg"?Fa.createElementNS(s5,e):t==="mathml"?Fa.createElementNS(a5,e):n?Fa.createElement(e,{is:n}):Fa.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Fa.createTextNode(e),createComment:e=>Fa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{vk.innerHTML=t2(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=vk.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wo="transition",Bd="animation",Tc=Symbol("_vtc"),r2={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},i2=Mt({},Aw,r2),o5=e=>(e.displayName="Transition",e.props=i2,e),so=o5((e,{slots:t})=>Rs(hO,s2(e),t)),fl=(e,t=[])=>{Xe(e)?e.forEach(n=>n(...t)):e&&e(...t)},yk=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function s2(e){const t={};for(const D in e)D in r2||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:c=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=l5(i),v=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:w,onLeave:C,onLeaveCancelled:P,onBeforeAppear:k=b,onAppear:R=S,onAppearCancelled:T=w}=t,I=(D,B,V,$)=>{D._enterCancelled=$,ko(D,B?c:o),ko(D,B?u:s),V&&V()},x=(D,B)=>{D._isLeaving=!1,ko(D,d),ko(D,h),ko(D,p),B&&B()},A=D=>(B,V)=>{const $=D?R:S,N=()=>I(B,D,V);fl($,[B,N]),bk(()=>{ko(B,D?l:a),oa(B,D?c:o),yk($)||Sk(B,r,v,N)})};return Mt(t,{onBeforeEnter(D){fl(b,[D]),oa(D,a),oa(D,s)},onBeforeAppear(D){fl(k,[D]),oa(D,l),oa(D,u)},onEnter:A(!1),onAppear:A(!0),onLeave(D,B){D._isLeaving=!0;const V=()=>x(D,B);oa(D,d),D._enterCancelled?(oa(D,p),S0(D)):(S0(D),oa(D,p)),bk(()=>{D._isLeaving&&(ko(D,d),oa(D,h),yk(C)||Sk(D,r,y,V))}),fl(C,[D,V])},onEnterCancelled(D){I(D,!1,void 0,!0),fl(w,[D])},onAppearCancelled(D){I(D,!0,void 0,!0),fl(T,[D])},onLeaveCancelled(D){x(D),fl(P,[D])}})}function l5(e){if(e==null)return null;if(dn(e))return[Qy(e.enter),Qy(e.leave)];{const t=Qy(e);return[t,t]}}function Qy(e){return Af(e)}function oa(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Tc]||(e[Tc]=new Set)).add(t)}function ko(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Tc];n&&(n.delete(t),n.size||(e[Tc]=void 0))}function bk(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let u5=0;function Sk(e,t,n,r){const i=e._endId=++u5,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:o,propCount:l}=a2(e,t);if(!s)return r();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,p),a()},p=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},o+1),e.addEventListener(u,p)}function a2(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),i=r(`${wo}Delay`),a=r(`${wo}Duration`),s=wk(i,a),o=r(`${Bd}Delay`),l=r(`${Bd}Duration`),u=wk(o,l);let c=null,d=0,p=0;t===wo?s>0&&(c=wo,d=s,p=a.length):t===Bd?u>0&&(c=Bd,d=u,p=l.length):(d=Math.max(s,u),c=d>0?s>u?wo:Bd:null,p=c?c===wo?a.length:l.length:0);const h=c===wo&&/\b(?:transform|all)(?:,|$)/.test(r(`${wo}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:h}}function wk(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Ek(n)+Ek(e[r])))}function Ek(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function S0(e){return(e?e.ownerDocument:document).body.offsetHeight}function c5(e,t,n){const r=e[Tc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zh=Symbol("_vod"),o2=Symbol("_vsh"),ai={name:"show",beforeMount(e,{value:t},{transition:n}){e[Zh]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ud(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),Ud(e,!0),r.enter(e)):r.leave(e,()=>{Ud(e,!1)}):Ud(e,t))},beforeUnmount(e,{value:t}){Ud(e,t)}};function Ud(e,t){e.style.display=t?e[Zh]:"none",e[o2]=!t}function d5(){ai.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const l2=Symbol("");function f5(e){const t=wi();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>eg(a,i))},r=()=>{const i=e(t.proxy);t.ce?eg(t.ce,i):w0(t.subTree,i),n(i)};yv(()=>{Lf(r)}),Nt(()=>{Oe(r,Cr,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),xu(()=>i.disconnect())})}function w0(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{w0(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)eg(e.el,t);else if(e.type===Ne)e.children.forEach(n=>w0(n,t));else if(e.type===Bl){let{el:n,anchor:r}=e;for(;n&&(eg(n,t),n!==r);)n=n.nextSibling}}function eg(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const a=NA(t[i]);n.setProperty(`--${i}`,a),r+=`--${i}: ${a};`}n[l2]=r}}const p5=/(?:^|;)\s*display\s*:/;function m5(e,t,n){const r=e.style,i=ht(n);let a=!1;if(n&&!i){if(t)if(ht(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&ah(r,o,"")}else for(const s in t)n[s]==null&&ah(r,s,"");for(const s in n)s==="display"&&(a=!0),ah(r,s,n[s])}else if(i){if(t!==n){const s=r[l2];s&&(n+=";"+s),r.cssText=n,a=p5.test(n)}}else t&&e.removeAttribute("style");Zh in e&&(e[Zh]=a?r.display:"",e[o2]&&(r.display="none"))}const xk=/\s*!important$/;function ah(e,t,n){if(Xe(n))n.forEach(r=>ah(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=h5(e,t);xk.test(n)?e.setProperty(Xr(r),n.replace(xk,""),"important"):e[r]=n}}const Ck=["Webkit","Moz","ms"],Zy={};function h5(e,t){const n=Zy[t];if(n)return n;let r=En(t);if(r!=="filter"&&r in e)return Zy[t]=r;r=Ki(r);for(let i=0;i<Ck.length;i++){const a=Ck[i]+r;if(a in e)return Zy[t]=a}return t}const kk="http://www.w3.org/1999/xlink";function _k(e,t,n,r,i,a=PA(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(kk,t.slice(6,t.length)):e.setAttributeNS(kk,t,n):n==null||a&&!Ew(n)?e.removeAttribute(t):e.setAttribute(t,a?"":yi(n)?String(n):n)}function Tk(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?t2(n):n);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Ew(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function Ua(e,t,n,r){e.addEventListener(t,n,r)}function g5(e,t,n,r){e.removeEventListener(t,n,r)}const Ik=Symbol("_vei");function v5(e,t,n,r,i=null){const a=e[Ik]||(e[Ik]={}),s=a[t];if(r&&s)s.value=r;else{const[o,l]=y5(t);if(r){const u=a[t]=w5(r,i);Ua(e,o,u,l)}else s&&(g5(e,o,s,l),a[t]=void 0)}}const Pk=/(?:Once|Passive|Capture)$/;function y5(e){let t;if(Pk.test(e)){t={};let r;for(;r=e.match(Pk);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xr(e.slice(2)),t]}let eb=0;const b5=Promise.resolve(),S5=()=>eb||(b5.then(()=>eb=0),eb=Date.now());function w5(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ks(E5(r,n.value),t,5,[r])};return n.value=e,n.attached=S5(),n}function E5(e,t){if(Xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Rk=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,u2=(e,t,n,r,i,a)=>{const s=i==="svg";t==="class"?c5(e,r,s):t==="style"?m5(e,n,r):el(t)?iv(t)||v5(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):x5(e,t,r,s))?(Tk(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&_k(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ht(r))?Tk(e,En(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),_k(e,t,r,s))};function x5(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rk(t)&&dt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Rk(t)&&ht(n)?!1:t in e}const Ak={};function c2(e,t,n){let r=Be(e,t);Cp(r)&&(r=Mt({},r,t));class i extends Ev{constructor(s){super(r,s,n)}}return i.def=r,i}const C5=((e,t)=>c2(e,t,E2)),k5=typeof HTMLElement<"u"?HTMLElement:class{};class Ev extends k5{constructor(t,n={},r=ng){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._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==ng?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Mt({},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 Ev){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,At(()=>{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.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=r;let o;if(a&&!Xe(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Af(this._props[l])),(o||(o=Object.create(null)))[En(l)]=!0)}this._numberProps=o,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)on(this,r)||Object.defineProperty(this,r,{get:()=>re(n[r])})}_resolveProps(t){const{props:n}=t,r=Xe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(En))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Ak;const i=En(t);n&&this._numberProps&&this._numberProps[i]&&(r=Af(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Ak?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(Xr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Xr(t),n+""):n||this.removeAttribute(Xr(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),w2(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=f(this._def,Mt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(a,s)=>{this.dispatchEvent(new CustomEvent(a,Cp(s[0])?Mt({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{i(a,s),Xr(a)!==a&&i(Xr(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 i=t.length-1;i>=0;i--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[i],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<t.length;r++){const i=t[r],a=i.getAttribute("name")||"default",s=this._slots[a],o=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}o.insertBefore(l,i)}else for(;i.firstChild;)o.insertBefore(i.firstChild,i);o.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const i=r.querySelectorAll("slot");for(let a=0;a<i.length;a++)n.add(i[a])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function d2(e){const t=wi(),n=t&&t.ce;return n||null}function _5(){const e=d2();return e&&e.shadowRoot}function T5(e="$style"){{const t=wi();if(!t)return Ut;const n=t.type.__cssModules;if(!n)return Ut;const r=n[e];return r||Ut}}const f2=new WeakMap,p2=new WeakMap,tg=Symbol("_moveCb"),Ok=Symbol("_enterCb"),I5=e=>(delete e.props.mode,e),P5=I5({name:"TransitionGroup",props:Mt({},i2,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=wi(),r=Rw();let i,a;return Dp(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!N5(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(R5),i.forEach(A5);const o=i.filter(O5);S0(n.vnode.el),o.forEach(l=>{const u=l.el,c=u.style;oa(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[tg]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[tg]=null,ko(u,s))};u.addEventListener("transitionend",d)}),i=[]}),()=>{const s=nt(e),o=s2(s);let l=s.tag||Ne;if(i=[],a)for(let u=0;u<a.length;u++){const c=a[u];c.el&&c.el instanceof Element&&(i.push(c),io(c,xc(c,o,r,n)),f2.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}a=t.default?hv(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&io(c,xc(c,o,r,n))}return f(l,null,a)}}}),xv=P5;function R5(e){const t=e.el;t[tg]&&t[tg](),t[Ok]&&t[Ok]()}function A5(e){p2.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function O5(e){const t=f2.get(e),n=p2.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function N5(e,t,n){const r=e.cloneNode(),i=e[Tc];i&&i.forEach(o=>{o.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=a2(r);return a.removeChild(r),s}const qo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?n=>Ml(t,n):t};function D5(e){e.target.composing=!0}function Nk(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ws=Symbol("_assign");function Dk(e,t,n){return t&&(e=e.trim()),n&&(e=_p(e)),e}const jf={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ws]=qo(i);const a=r||i.props&&i.props.type==="number";Ua(e,t?"change":"input",s=>{s.target.composing||e[ws](Dk(e.value,n,a))}),(n||a)&&Ua(e,"change",()=>{e.value=Dk(e.value,n,a)}),t||(Ua(e,"compositionstart",D5),Ua(e,"compositionend",Nk),Ua(e,"change",Nk))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[ws]=qo(s),e.composing)return;const o=(a||e.type==="number")&&!/^0\d/.test(e.value)?_p(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},zw={deep:!0,created(e,t,n){e[ws]=qo(n),Ua(e,"change",()=>{const r=e._modelValue,i=Ic(e),a=e.checked,s=e[ws];if(Xe(r)){const o=Ip(r,i),l=o!==-1;if(a&&!l)s(r.concat(i));else if(!a&&l){const u=[...r];u.splice(o,1),s(u)}}else if(tl(r)){const o=new Set(r);a?o.add(i):o.delete(i),s(o)}else s(h2(e,a))})},mounted:Lk,beforeUpdate(e,t,n){e[ws]=qo(n),Lk(e,t,n)}};function Lk(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Xe(t))i=Ip(t,r.props.value)>-1;else if(tl(t))i=t.has(r.props.value);else{if(t===n)return;i=to(t,h2(e,!0))}e.checked!==i&&(e.checked=i)}const Hw={created(e,{value:t},n){e.checked=to(t,n.props.value),e[ws]=qo(n),Ua(e,"change",()=>{e[ws](Ic(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ws]=qo(r),t!==n&&(e.checked=to(t,r.props.value))}},m2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=tl(t);Ua(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?_p(Ic(s)):Ic(s));e[ws](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,At(()=>{e._assigning=!1})}),e[ws]=qo(r)},mounted(e,{value:t}){Fk(e,t)},beforeUpdate(e,t,n){e[ws]=qo(n)},updated(e,{value:t}){e._assigning||Fk(e,t)}};function Fk(e,t){const n=e.multiple,r=Xe(t);if(!(n&&!r&&!tl(t))){for(let i=0,a=e.options.length;i<a;i++){const s=e.options[i],o=Ic(s);if(n)if(r){const l=typeof o;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(o)):s.selected=Ip(t,o)>-1}else s.selected=t.has(o);else if(to(Ic(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ic(e){return"_value"in e?e._value:e.value}function h2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const g2={created(e,t,n){_m(e,t,n,null,"created")},mounted(e,t,n){_m(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){_m(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){_m(e,t,n,r,"updated")}};function v2(e,t){switch(e){case"SELECT":return m2;case"TEXTAREA":return jf;default:switch(t){case"checkbox":return zw;case"radio":return Hw;default:return jf}}}function _m(e,t,n,r,i){const s=v2(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}function L5(){jf.getSSRProps=({value:e})=>({value:e}),Hw.getSSRProps=({value:e},t)=>{if(t.props&&to(t.props.value,e))return{checked:!0}},zw.getSSRProps=({value:e},t)=>{if(Xe(e)){if(t.props&&Ip(e,t.props.value)>-1)return{checked:!0}}else if(tl(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},g2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=v2(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const F5=["ctrl","shift","alt","meta"],M5={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)=>F5.some(n=>e[`${n}Key`]&&!t.includes(n))},mn=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s<t.length;s++){const o=M5[t[s]];if(o&&o(i,t))return}return e(i,...a)}))},$5={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ul=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=Xr(i.key);if(t.some(s=>s===a||$5[s]===a))return e(i)}))},y2=Mt({patchProp:u2},n2);let hf,Mk=!1;function b2(){return hf||(hf=MO(y2))}function S2(){return hf=Mk?hf:$O(y2),Mk=!0,hf}const w2=((...e)=>{b2().render(...e)}),V5=((...e)=>{S2().hydrate(...e)}),ng=((...e)=>{const t=b2().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=C2(r);if(!i)return;const a=t._component;!dt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,x2(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),E2=((...e)=>{const t=S2().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=C2(r);if(i)return n(i,!0,x2(i))},t});function x2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function C2(e){return ht(e)?document.querySelector(e):e}let $k=!1;const B5=()=>{$k||($k=!0,L5(),d5())},U5=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:hO,BaseTransitionPropsValidators:Aw,Comment:Xn,DeprecationTypes:i5,EffectScope:xw,ErrorCodes:SU,ErrorTypeStrings:J6,Fragment:Ne,KeepAlive:GU,ReactiveEffect:Of,Static:Bl,Suspense:O6,Teleport:dO,Text:Ga,TrackOpTypes:pU,Transition:so,TransitionGroup:xv,TriggerOpTypes:mU,VueElement:Ev,assertNumber:bU,callWithAsyncErrorHandling:ks,callWithErrorHandling:od,camelize:En,capitalize:Ki,cloneVNode:Ks,compatUtils:r5,computed:L,createApp:ng,createBlock:Q,createCommentVNode:ae,createElementBlock:fe,createElementVNode:E,createHydrationRenderer:$O,createPropsRestProxy:l6,createRenderer:MO,createSSRApp:E2,createSlots:Fw,createStaticVNode:B6,createTextVNode:_,createVNode:f,customRef:XA,defineAsyncComponent:HU,defineComponent:Be,defineCustomElement:c2,defineEmits:QU,defineExpose:ZU,defineModel:n6,defineOptions:e6,defineProps:JU,defineSSRCustomElement:C5,defineSlots:t6,devtools:Q6,effect:VB,effectScope:Go,getCurrentInstance:wi,getCurrentScope:ad,getCurrentWatcher:hU,getTransitionRawChildren:hv,guardReactiveProps:wv,h:Rs,handleError:Eu,hasInjectionContext:Pw,hydrate:V5,hydrateOnIdle:$U,hydrateOnInteraction:jU,hydrateOnMediaQuery:UU,hydrateOnVisible:BU,initCustomFormatter:K6,initDirectivesForSSR:B5,inject:ft,isMemoSame:ZO,isProxy:Rp,isReactive:Ws,isReadonly:ya,isRef:Ot,isRuntimeOnly:W6,isShallow:Bi,isVNode:ba,markRaw:Ap,mergeDefaults:a6,mergeModels:o6,mergeProps:ve,nextTick:At,nodeOps:n2,normalizeClass:Te,normalizeProps:lv,normalizeStyle:je,onActivated:Nw,onBeforeMount:nl,onBeforeUnmount:wr,onBeforeUpdate:yv,onDeactivated:gv,onErrorCaptured:wO,onMounted:Nt,onRenderTracked:SO,onRenderTriggered:bO,onScopeDispose:Rn,onServerPrefetch:yO,onUnmounted:xu,onUpdated:Dp,onWatcherCleanup:QA,openBlock:F,patchProp:u2,popScopeId:kU,provide:Sn,proxyRefs:Tw,pushScopeId:CU,queuePostFlushCb:Lf,reactive:An,readonly:va,ref:z,registerRuntimeCompiler:H6,render:w2,renderList:Zt,renderSlot:kc,resolveComponent:Cc,resolveDirective:$f,resolveDynamicComponent:xO,resolveFilter:n5,resolveTransitionHooks:xc,setBlockTracking:Uf,setDevtoolsHook:Z6,setTransitionHooks:io,shallowReactive:Pp,shallowReadonly:fv,shallowRef:Le,ssrContextKey:iO,ssrUtils:t5,stop:BB,toDisplayString:U,toHandlerKey:Fl,toHandlers:YU,toRaw:nt,toRef:se,toRefs:Ca,toValue:bn,transformVNodeArgs:$6,triggerRef:aU,unref:re,useAttrs:s6,useCssModule:T5,useCssVars:f5,useHost:d2,useId:Si,useModel:v6,useSSRContext:sO,useShadowRoot:_5,useSlots:i6,useTemplateRef:AU,useTransitionState:Rw,vModelCheckbox:zw,vModelDynamic:g2,vModelRadio:Hw,vModelSelect:m2,vModelText:jf,vShow:ai,version:e2,warn:X6,watch:Oe,watchEffect:ar,watchPostEffect:TU,watchSyncEffect:aO,withAsyncContext:u6,withCtx:m,withDefaults:r6,withDirectives:un,withKeys:Ul,withMemo:Y6,withModifiers:mn,withScopeId:_U},Symbol.toStringTag,{value:"Module"}));function k2(e,t){return function(){return e.apply(t,arguments)}}const{toString:j5}=Object.prototype,{getPrototypeOf:Ww}=Object,{iterator:Cv,toStringTag:_2}=Symbol,kv=(e=>t=>{const n=j5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Js=e=>(e=e.toLowerCase(),t=>kv(t)===e),_v=e=>t=>typeof t===e,{isArray:ld}=Array,Pc=_v("undefined");function Fp(e){return e!==null&&!Pc(e)&&e.constructor!==null&&!Pc(e.constructor)&&Ui(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T2=Js("ArrayBuffer");function z5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T2(e.buffer),t}const H5=_v("string"),Ui=_v("function"),I2=_v("number"),Mp=e=>e!==null&&typeof e=="object",W5=e=>e===!0||e===!1,oh=e=>{if(kv(e)!=="object")return!1;const t=Ww(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_2 in e)&&!(Cv in e)},G5=e=>{if(!Mp(e)||Fp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},q5=Js("Date"),K5=Js("File"),Y5=Js("Blob"),X5=Js("FileList"),J5=e=>Mp(e)&&Ui(e.pipe),Q5=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ui(e.append)&&((t=kv(e))==="formdata"||t==="object"&&Ui(e.toString)&&e.toString()==="[object FormData]"))},Z5=Js("URLSearchParams"),[e8,t8,n8,r8]=["ReadableStream","Request","Response","Headers"].map(Js),i8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $p(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ld(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Fp(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let o;for(r=0;r<s;r++)o=a[r],t.call(null,e[o],o,e)}}function P2(e,t){if(Fp(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Cl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,R2=e=>!Pc(e)&&e!==Cl;function E0(){const{caseless:e,skipUndefined:t}=R2(this)&&this||{},n={},r=(i,a)=>{const s=e&&P2(n,a)||a;oh(n[s])&&oh(i)?n[s]=E0(n[s],i):oh(i)?n[s]=E0({},i):ld(i)?n[s]=i.slice():(!t||!Pc(i))&&(n[s]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&$p(arguments[i],r);return n}const s8=(e,t,n,{allOwnKeys:r}={})=>($p(t,(i,a)=>{n&&Ui(i)?e[a]=k2(i,n):e[a]=i},{allOwnKeys:r}),e),a8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),o8=(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)},l8=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&Ww(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},u8=(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},c8=e=>{if(!e)return null;if(ld(e))return e;let t=e.length;if(!I2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},d8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ww(Uint8Array)),f8=(e,t)=>{const r=(e&&e[Cv]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},p8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},m8=Js("HTMLFormElement"),h8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Vk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),g8=Js("RegExp"),A2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$p(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},v8=e=>{A2(e,(t,n)=>{if(Ui(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ui(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+"'")})}})},y8=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return ld(e)?r(e):r(String(e).split(t)),n},b8=()=>{},S8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function w8(e){return!!(e&&Ui(e.append)&&e[_2]==="FormData"&&e[Cv])}const E8=e=>{const t=new Array(10),n=(r,i)=>{if(Mp(r)){if(t.indexOf(r)>=0)return;if(Fp(r))return r;if(!("toJSON"in r)){t[i]=r;const a=ld(r)?[]:{};return $p(r,(s,o)=>{const l=n(s,i+1);!Pc(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},x8=Js("AsyncFunction"),C8=e=>e&&(Mp(e)||Ui(e))&&Ui(e.then)&&Ui(e.catch),O2=((e,t)=>e?setImmediate:t?((n,r)=>(Cl.addEventListener("message",({source:i,data:a})=>{i===Cl&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Cl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ui(Cl.postMessage)),k8=typeof queueMicrotask<"u"?queueMicrotask.bind(Cl):typeof process<"u"&&process.nextTick||O2,_8=e=>e!=null&&Ui(e[Cv]),Ce={isArray:ld,isArrayBuffer:T2,isBuffer:Fp,isFormData:Q5,isArrayBufferView:z5,isString:H5,isNumber:I2,isBoolean:W5,isObject:Mp,isPlainObject:oh,isEmptyObject:G5,isReadableStream:e8,isRequest:t8,isResponse:n8,isHeaders:r8,isUndefined:Pc,isDate:q5,isFile:K5,isBlob:Y5,isRegExp:g8,isFunction:Ui,isStream:J5,isURLSearchParams:Z5,isTypedArray:d8,isFileList:X5,forEach:$p,merge:E0,extend:s8,trim:i8,stripBOM:a8,inherits:o8,toFlatObject:l8,kindOf:kv,kindOfTest:Js,endsWith:u8,toArray:c8,forEachEntry:f8,matchAll:p8,isHTMLForm:m8,hasOwnProperty:Vk,hasOwnProp:Vk,reduceDescriptors:A2,freezeMethods:v8,toObjectSet:y8,toCamelCase:h8,noop:b8,toFiniteNumber:S8,findKey:P2,global:Cl,isContextDefined:R2,isSpecCompliantForm:w8,toJSONObject:E8,isAsyncFn:x8,isThenable:C8,setImmediate:O2,asap:k8,isIterable:_8};function Rt(e,t,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}Ce.inherits(Rt,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:Ce.toJSONObject(this.config),code:this.code,status:this.status}}});const N2=Rt.prototype,D2={};["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=>{D2[e]={value:e}});Object.defineProperties(Rt,D2);Object.defineProperty(N2,"isAxiosError",{value:!0});Rt.from=(e,t,n,r,i,a)=>{const s=Object.create(N2);Ce.toFlatObject(e,s,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const o=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return Rt.call(s,o,l,n,r,i),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 T8=null;function x0(e){return Ce.isPlainObject(e)||Ce.isArray(e)}function L2(e){return Ce.endsWith(e,"[]")?e.slice(0,-2):e}function Bk(e,t,n){return e?e.concat(t).map(function(i,a){return i=L2(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function I8(e){return Ce.isArray(e)&&!e.some(x0)}const P8=Ce.toFlatObject(Ce,{},null,function(t){return/^is[A-Z]/.test(t)});function Tv(e,t,n){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!Ce.isUndefined(y[v])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Ce.isDate(g))return g.toISOString();if(Ce.isBoolean(g))return g.toString();if(!l&&Ce.isBlob(g))throw new Rt("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(g)||Ce.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,y){let b=g;if(g&&!y&&typeof g=="object"){if(Ce.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(Ce.isArray(g)&&I8(g)||(Ce.isFileList(g)||Ce.endsWith(v,"[]"))&&(b=Ce.toArray(g)))return v=L2(v),b.forEach(function(w,C){!(Ce.isUndefined(w)||w===null)&&t.append(s===!0?Bk([v],C,a):s===null?v:v+"[]",u(w))}),!1}return x0(g)?!0:(t.append(Bk(y,v,a),u(g)),!1)}const d=[],p=Object.assign(P8,{defaultVisitor:c,convertValue:u,isVisitable:x0});function h(g,v){if(!Ce.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),Ce.forEach(g,function(b,S){(!(Ce.isUndefined(b)||b===null)&&i.call(t,b,Ce.isString(S)?S.trim():S,v,p))===!0&&h(b,v?v.concat(S):[S])}),d.pop()}}if(!Ce.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Uk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Gw(e,t){this._pairs=[],e&&Tv(e,this,t)}const F2=Gw.prototype;F2.append=function(t,n){this._pairs.push([t,n])};F2.toString=function(t){const n=t?function(r){return t.call(this,r,Uk)}:Uk;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function R8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function M2(e,t,n){if(!t)return e;const r=n&&n.encode||R8;Ce.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Ce.isURLSearchParams(t)?t.toString():new Gw(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class jk{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){Ce.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},A8=typeof URLSearchParams<"u"?URLSearchParams:Gw,O8=typeof FormData<"u"?FormData:null,N8=typeof Blob<"u"?Blob:null,D8={isBrowser:!0,classes:{URLSearchParams:A8,FormData:O8,Blob:N8},protocols:["http","https","file","blob","url","data"]},qw=typeof window<"u"&&typeof document<"u",C0=typeof navigator=="object"&&navigator||void 0,L8=qw&&(!C0||["ReactNative","NativeScript","NS"].indexOf(C0.product)<0),F8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",M8=qw&&window.location.href||"http://localhost",$8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qw,hasStandardBrowserEnv:L8,hasStandardBrowserWebWorkerEnv:F8,navigator:C0,origin:M8},Symbol.toStringTag,{value:"Module"})),Jr={...$8,...D8};function V8(e,t){return Tv(e,new Jr.classes.URLSearchParams,{visitor:function(n,r,i,a){return Jr.isNode&&Ce.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function B8(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function U8(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function V2(e){function t(n,r,i,a){let s=n[a++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=a>=n.length;return s=!s&&Ce.isArray(i)?i.length:s,l?(Ce.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!Ce.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&Ce.isArray(i[s])&&(i[s]=U8(i[s])),!o)}if(Ce.isFormData(e)&&Ce.isFunction(e.entries)){const n={};return Ce.forEachEntry(e,(r,i)=>{t(B8(r),i,n,0)}),n}return null}function j8(e,t,n){if(Ce.isString(e))try{return(t||JSON.parse)(e),Ce.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vp={transitional:$2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Ce.isObject(t);if(a&&Ce.isHTMLForm(t)&&(t=new FormData(t)),Ce.isFormData(t))return i?JSON.stringify(V2(t)):t;if(Ce.isArrayBuffer(t)||Ce.isBuffer(t)||Ce.isStream(t)||Ce.isFile(t)||Ce.isBlob(t)||Ce.isReadableStream(t))return t;if(Ce.isArrayBufferView(t))return t.buffer;if(Ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return V8(t,this.formSerializer).toString();if((o=Ce.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Tv(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),j8(t)):t}],transformResponse:[function(t){const n=this.transitional||Vp.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ce.isResponse(t)||Ce.isReadableStream(t))return t;if(t&&Ce.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(o){if(s)throw o.name==="SyntaxError"?Rt.from(o,Rt.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jr.classes.FormData,Blob:Jr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],e=>{Vp.headers[e]={}});const z8=Ce.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"]),H8=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
5
|
-
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&z8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zk=Symbol("internals");function jd(e){return e&&String(e).trim().toLowerCase()}function lh(e){return e===!1||e==null?e:Ce.isArray(e)?e.map(lh):String(e)}function W8(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 G8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tb(e,t,n,r,i){if(Ce.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ce.isString(t)){if(Ce.isString(r))return t.indexOf(r)!==-1;if(Ce.isRegExp(r))return r.test(t)}}function q8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function K8(e,t){const n=Ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let ji=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const c=jd(l);if(!c)throw new Error("header name must be a non-empty string");const d=Ce.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=lh(o))}const s=(o,l)=>Ce.forEach(o,(u,c)=>a(u,c,l));if(Ce.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Ce.isString(t)&&(t=t.trim())&&!G8(t))s(H8(t),n);else if(Ce.isObject(t)&&Ce.isIterable(t)){let o={},l,u;for(const c of t){if(!Ce.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?Ce.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=jd(t),t){const r=Ce.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return W8(i);if(Ce.isFunction(n))return n.call(this,i,r);if(Ce.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jd(t),t){const r=Ce.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=jd(s),s){const o=Ce.findKey(r,s);o&&(!n||tb(r,r[o],o,n))&&(delete r[o],i=!0)}}return Ce.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||tb(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Ce.forEach(this,(i,a)=>{const s=Ce.findKey(r,a);if(s){n[s]=lh(i),delete n[a];return}const o=t?q8(a):String(a).trim();o!==a&&delete n[a],n[o]=lh(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ce.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ce.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(`
|
|
6
|
-
`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[zk]=this[zk]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=jd(s);r[o]||(K8(i,s),r[o]=!0)}return Ce.isArray(t)?t.forEach(a):a(t),this}};ji.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ce.reduceDescriptors(ji.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ce.freezeMethods(ji);function nb(e,t){const n=this||Vp,r=t||n,i=ji.from(r.headers);let a=r.data;return Ce.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function B2(e){return!!(e&&e.__CANCEL__)}function ud(e,t,n){Rt.call(this,e??"canceled",Rt.ERR_CANCELED,t,n),this.name="CanceledError"}Ce.inherits(ud,Rt,{__CANCEL__:!0});function U2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Rt("Request failed with status code "+n.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Y8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];s||(s=u),n[i]=l,r[i]=u;let d=a,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s<t)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function J8(e,t){let n=0,r=1e3/t,i,a;const s=(u,c=Date.now())=>{n=c,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?s(u,c):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-d)))},()=>i&&s(i)]}const rg=(e,t,n=3)=>{let r=0;const i=X8(50,250);return J8(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),c=s<=o;r=s;const d={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},Hk=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wk=e=>(...t)=>Ce.asap(()=>e(...t)),Q8=Jr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jr.origin),Jr.navigator&&/(msie|trident)/i.test(Jr.navigator.userAgent)):()=>!0,Z8=Jr.hasStandardBrowserEnv?{write(e,t,n,r,i,a,s){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];Ce.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),Ce.isString(r)&&o.push(`path=${r}`),Ce.isString(i)&&o.push(`domain=${i}`),a===!0&&o.push("secure"),Ce.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ej(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function j2(e,t,n){let r=!ej(t);return e&&(r||n==!1)?tj(e,t):t}const Gk=e=>e instanceof ji?{...e}:e;function su(e,t){t=t||{};const n={};function r(u,c,d,p){return Ce.isPlainObject(u)&&Ce.isPlainObject(c)?Ce.merge.call({caseless:p},u,c):Ce.isPlainObject(c)?Ce.merge({},c):Ce.isArray(c)?c.slice():c}function i(u,c,d,p){if(Ce.isUndefined(c)){if(!Ce.isUndefined(u))return r(void 0,u,d,p)}else return r(u,c,d,p)}function a(u,c){if(!Ce.isUndefined(c))return r(void 0,c)}function s(u,c){if(Ce.isUndefined(c)){if(!Ce.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={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:o,headers:(u,c,d)=>i(Gk(u),Gk(c),d,!0)};return Ce.forEach(Object.keys({...e,...t}),function(c){const d=l[c]||i,p=d(e[c],t[c],c);Ce.isUndefined(p)&&d!==o||(n[c]=p)}),n}const z2=e=>{const t=su({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;if(t.headers=s=ji.from(s),t.url=M2(j2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Ce.isFormData(n)){if(Jr.hasStandardBrowserEnv||Jr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Ce.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,d])=>{u.includes(c.toLowerCase())&&s.set(c,d)})}}if(Jr.hasStandardBrowserEnv&&(r&&Ce.isFunction(r)&&(r=r(t)),r||r!==!1&&Q8(t.url))){const l=i&&a&&Z8.read(a);l&&s.set(i,l)}return t},nj=typeof XMLHttpRequest<"u",rj=nj&&function(e){return new Promise(function(n,r){const i=z2(e);let a=i.data;const s=ji.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,d,p,h,g;function v(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function b(){if(!y)return;const w=ji.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!o||o==="text"||o==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};U2(function(R){n(R),v()},function(R){r(R),v()},P),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new Rt("Request aborted",Rt.ECONNABORTED,e,y)),y=null)},y.onerror=function(C){const P=C&&C.message?C.message:"Network Error",k=new Rt(P,Rt.ERR_NETWORK,e,y);k.event=C||null,r(k),y=null},y.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||$2;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new Rt(C,P.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,e,y)),y=null},a===void 0&&s.setContentType(null),"setRequestHeader"in y&&Ce.forEach(s.toJSON(),function(C,P){y.setRequestHeader(P,C)}),Ce.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),o&&o!=="json"&&(y.responseType=i.responseType),u&&([p,g]=rg(u,!0),y.addEventListener("progress",p)),l&&y.upload&&([d,h]=rg(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{y&&(r(!w||w.type?new ud(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=Y8(i.url);if(S&&Jr.protocols.indexOf(S)===-1){r(new Rt("Unsupported protocol "+S+":",Rt.ERR_BAD_REQUEST,e));return}y.send(a||null)})},ij=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,o();const c=u instanceof Error?u:this.reason;r.abort(c instanceof Rt?c:new ud(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,a(new Rt(`timeout ${t} of ms exceeded`,Rt.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Ce.asap(o),l}},sj=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},aj=async function*(e,t){for await(const n of oj(e))yield*sj(n,t)},oj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},qk=(e,t,n,r)=>{const i=aj(e,t);let a=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){o(),l.close();return}let d=c.byteLength;if(n){let p=a+=d;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},Kk=64*1024,{isFunction:Tm}=Ce,lj=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ce.global),{ReadableStream:Yk,TextEncoder:Xk}=Ce.global,Jk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uj=e=>{e=Ce.merge.call({skipUndefined:!0},lj,e);const{fetch:t,Request:n,Response:r}=e,i=t?Tm(t):typeof fetch=="function",a=Tm(n),s=Tm(r);if(!i)return!1;const o=i&&Tm(Yk),l=i&&(typeof Xk=="function"?(g=>v=>g.encode(v))(new Xk):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=a&&o&&Jk(()=>{let g=!1;const v=new n(Jr.origin,{body:new Yk,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!v}),c=s&&o&&Jk(()=>Ce.isReadableStream(new r("").body)),d={stream:c&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(v,y)=>{let b=v&&v[g];if(b)return b.call(v);throw new Rt(`Response type '${g}' is not supported`,Rt.ERR_NOT_SUPPORT,y)})});const p=async g=>{if(g==null)return 0;if(Ce.isBlob(g))return g.size;if(Ce.isSpecCompliantForm(g))return(await new n(Jr.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Ce.isArrayBufferView(g)||Ce.isArrayBuffer(g))return g.byteLength;if(Ce.isURLSearchParams(g)&&(g=g+""),Ce.isString(g))return(await l(g)).byteLength},h=async(g,v)=>{const y=Ce.toFiniteNumber(g.getContentLength());return y??p(v)};return async g=>{let{url:v,method:y,data:b,signal:S,cancelToken:w,timeout:C,onDownloadProgress:P,onUploadProgress:k,responseType:R,headers:T,withCredentials:I="same-origin",fetchOptions:x}=z2(g),A=t||fetch;R=R?(R+"").toLowerCase():"text";let D=ij([S,w&&w.toAbortSignal()],C),B=null;const V=D&&D.unsubscribe&&(()=>{D.unsubscribe()});let $;try{if(k&&u&&y!=="get"&&y!=="head"&&($=await h(T,b))!==0){let ie=new n(v,{method:"POST",body:b,duplex:"half"}),Z;if(Ce.isFormData(b)&&(Z=ie.headers.get("content-type"))&&T.setContentType(Z),ie.body){const[G,le]=Hk($,rg(Wk(k)));b=qk(ie.body,Kk,G,le)}}Ce.isString(I)||(I=I?"include":"omit");const N=a&&"credentials"in n.prototype,O={...x,signal:D,method:y.toUpperCase(),headers:T.normalize().toJSON(),body:b,duplex:"half",credentials:N?I:void 0};B=a&&new n(v,O);let M=await(a?A(B,x):A(v,O));const Y=c&&(R==="stream"||R==="response");if(c&&(P||Y&&V)){const ie={};["status","statusText","headers"].forEach(ee=>{ie[ee]=M[ee]});const Z=Ce.toFiniteNumber(M.headers.get("content-length")),[G,le]=P&&Hk(Z,rg(Wk(P),!0))||[];M=new r(qk(M.body,Kk,G,()=>{le&&le(),V&&V()}),ie)}R=R||"text";let X=await d[Ce.findKey(d,R)||"text"](M,g);return!Y&&V&&V(),await new Promise((ie,Z)=>{U2(ie,Z,{data:X,headers:ji.from(M.headers),status:M.status,statusText:M.statusText,config:g,request:B})})}catch(N){throw V&&V(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new Rt("Network Error",Rt.ERR_NETWORK,g,B),{cause:N.cause||N}):Rt.from(N,N&&N.code,g,B)}}},cj=new Map,H2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let s=a.length,o=s,l,u,c=cj;for(;o--;)l=a[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:uj(t)),c=u;return u};H2();const Kw={http:T8,xhr:rj,fetch:{get:H2}};Ce.forEach(Kw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qk=e=>`- ${e}`,dj=e=>Ce.isFunction(e)||e===null||e===!1;function fj(e,t){e=Ce.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let s=0;s<n;s++){r=e[s];let o;if(i=r,!dj(r)&&(i=Kw[(o=String(r)).toLowerCase()],i===void 0))throw new Rt(`Unknown adapter '${o}'`);if(i&&(Ce.isFunction(i)||(i=i.get(t))))break;a[o||"#"+s]=i}if(!i){const s=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
|
|
7
|
-
`+s.map(Qk).join(`
|
|
8
|
-
`):" "+Qk(s[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i}const W2={getAdapter:fj,adapters:Kw};function rb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ud(null,e)}function Zk(e){return rb(e),e.headers=ji.from(e.headers),e.data=nb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),W2.getAdapter(e.adapter||Vp.adapter,e)(e).then(function(r){return rb(e),r.data=nb.call(e,e.transformResponse,r),r.headers=ji.from(r.headers),r},function(r){return B2(r)||(rb(e),r&&r.response&&(r.response.data=nb.call(e,e.transformResponse,r.response),r.response.headers=ji.from(r.response.headers))),Promise.reject(r)})}const G2="1.13.2",Iv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Iv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const e_={};Iv.transitional=function(t,n,r){function i(a,s){return"[Axios v"+G2+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Rt(i(s," has been removed"+(n?" in "+n:"")),Rt.ERR_DEPRECATED);return n&&!e_[s]&&(e_[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};Iv.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function pj(e,t,n){if(typeof e!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Rt("option "+a+" must be "+l,Rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rt("Unknown option "+a,Rt.ERR_BAD_OPTION)}}const uh={assertOptions:pj,validators:Iv},aa=uh.validators;let jl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new jk,response:new jk}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
9
|
-
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=su(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&uh.assertOptions(r,{silentJSONParsing:aa.transitional(aa.boolean),forcedJSONParsing:aa.transitional(aa.boolean),clarifyTimeoutError:aa.transitional(aa.boolean)},!1),i!=null&&(Ce.isFunction(i)?n.paramsSerializer={serialize:i}:uh.assertOptions(i,{encode:aa.function,serialize:aa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),uh.assertOptions(n,{baseUrl:aa.spelling("baseURL"),withXsrfToken:aa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Ce.merge(a.common,a[n.method]);a&&Ce.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=ji.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,p;if(!l){const g=[Zk.bind(this),void 0];for(g.unshift(...o),g.push(...u),p=g.length,c=Promise.resolve(n);d<p;)c=c.then(g[d++],g[d++]);return c}p=o.length;let h=n;for(;d<p;){const g=o[d++],v=o[d++];try{h=g(h)}catch(y){v.call(this,y);break}}try{c=Zk.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,p=u.length;d<p;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=su(this.defaults,t);const n=j2(t.baseURL,t.url,t.allowAbsoluteUrls);return M2(n,t.params,t.paramsSerializer)}};Ce.forEach(["delete","get","head","options"],function(t){jl.prototype[t]=function(n,r){return this.request(su(r||{},{method:t,url:n,data:(r||{}).data}))}});Ce.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,o){return this.request(su(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}jl.prototype[t]=n(),jl.prototype[t+"Form"]=n(!0)});let mj=class q2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new ud(a,s,o),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 q2(function(i){t=i}),cancel:t}}};function hj(e){return function(n){return e.apply(null,n)}}function gj(e){return Ce.isObject(e)&&e.isAxiosError===!0}const k0={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(k0).forEach(([e,t])=>{k0[t]=e});function K2(e){const t=new jl(e),n=k2(jl.prototype.request,t);return Ce.extend(n,jl.prototype,t,{allOwnKeys:!0}),Ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return K2(su(e,i))},n}const er=K2(Vp);er.Axios=jl;er.CanceledError=ud;er.CancelToken=mj;er.isCancel=B2;er.VERSION=G2;er.toFormData=Tv;er.AxiosError=Rt;er.Cancel=er.CanceledError;er.all=function(t){return Promise.all(t)};er.spread=hj;er.isAxiosError=gj;er.mergeConfig=su;er.AxiosHeaders=ji;er.formToJSON=e=>V2(Ce.isHTMLForm(e)?new FormData(e):e);er.getAdapter=W2.getAdapter;er.HttpStatusCode=k0;er.default=er;const{Axios:QSe,AxiosError:Y2,CanceledError:ZSe,isCancel:ewe,CancelToken:twe,VERSION:nwe,all:rwe,Cancel:iwe,isAxiosError:swe,spread:awe,toFormData:owe,AxiosHeaders:lwe,HttpStatusCode:kl,formToJSON:uwe,getAdapter:cwe,mergeConfig:dwe}=er;let X2;const Pv=e=>X2=e,J2=Symbol();function _0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gf;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gf||(gf={}));function vj(){const e=Go(!0),t=e.run(()=>z({}));let n=[],r=[];const i=Ap({install(a){Pv(i),i._a=a,a.provide(J2,i),a.config.globalProperties.$pinia=i,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 i}const Q2=()=>{};function t_(e,t,n,r=Q2){e.add(t);const i=()=>{e.delete(t)&&r()};return!n&&ad()&&Rn(i),i}function Mu(e,...t){e.forEach(n=>{n(...t)})}const yj=e=>e(),n_=Symbol(),ib=Symbol();function T0(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],i=e[n];_0(i)&&_0(r)&&e.hasOwnProperty(n)&&!Ot(r)&&!Ws(r)?e[n]=T0(i,r):e[n]=r}return e}const bj=Symbol();function Sj(e){return!_0(e)||!Object.prototype.hasOwnProperty.call(e,bj)}const{assign:_o}=Object;function wj(e){return!!(Ot(e)&&e.effect)}function Ej(e,t,n,r){const{state:i,actions:a,getters:s}=t,o=n.state.value[e];let l;function u(){o||(n.state.value[e]=i?i():{});const c=Ca(n.state.value[e]);return _o(c,a,Object.keys(s||{}).reduce((d,p)=>(d[p]=Ap(L(()=>{Pv(n);const h=n._s.get(e);return s[p].call(h,h)})),d),{}))}return l=Z2(e,u,t,n,r,!0),l}function Z2(e,t,n={},r,i,a){let s;const o=_o({actions:{}},n),l={deep:!0};let u,c,d=new Set,p=new Set,h;const g=r.state.value[e];!a&&!g&&(r.state.value[e]={}),z({});let v;function y(T){let I;u=c=!1,typeof T=="function"?(T(r.state.value[e]),I={type:gf.patchFunction,storeId:e,events:h}):(T0(r.state.value[e],T),I={type:gf.patchObject,payload:T,storeId:e,events:h});const x=v=Symbol();At().then(()=>{v===x&&(u=!0)}),c=!0,Mu(d,I,r.state.value[e])}const b=a?function(){const{state:I}=n,x=I?I():{};this.$patch(A=>{_o(A,x)})}:Q2;function S(){s.stop(),d.clear(),p.clear(),r._s.delete(e)}const w=(T,I="")=>{if(n_ in T)return T[ib]=I,T;const x=function(){Pv(r);const A=Array.from(arguments),D=new Set,B=new Set;function V(O){D.add(O)}function $(O){B.add(O)}Mu(p,{args:A,name:x[ib],store:P,after:V,onError:$});let N;try{N=T.apply(this&&this.$id===e?this:P,A)}catch(O){throw Mu(B,O),O}return N instanceof Promise?N.then(O=>(Mu(D,O),O)).catch(O=>(Mu(B,O),Promise.reject(O))):(Mu(D,N),N)};return x[n_]=!0,x[ib]=I,x},C={_p:r,$id:e,$onAction:t_.bind(null,p),$patch:y,$reset:b,$subscribe(T,I={}){const x=t_(d,T,I.detached,()=>A()),A=s.run(()=>Oe(()=>r.state.value[e],D=>{(I.flush==="sync"?c:u)&&T({storeId:e,type:gf.direct,events:h},D)},_o({},l,I)));return x},$dispose:S},P=An(C);r._s.set(e,P);const R=(r._a&&r._a.runWithContext||yj)(()=>r._e.run(()=>(s=Go()).run(()=>t({action:w}))));for(const T in R){const I=R[T];if(Ot(I)&&!wj(I)||Ws(I))a||(g&&Sj(I)&&(Ot(I)?I.value=g[T]:T0(I,g[T])),r.state.value[e][T]=I);else if(typeof I=="function"){const x=w(I,T);R[T]=x,o.actions[T]=I}}return _o(P,R),_o(nt(P),R),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:T=>{y(I=>{_o(I,T)})}}),r._p.forEach(T=>{_o(P,s.run(()=>T({store:P,app:r._a,pinia:r,options:o})))}),g&&a&&n.hydrate&&n.hydrate(P.$state,g),u=!0,c=!0,P}function Yi(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function a(s,o){const l=Pw();return s=s||(l?ft(J2,null):null),s&&Pv(s),s=X2,s._s.has(e)||(i?Z2(e,t,r,s):Ej(e,r,s)),s._s.get(e)}return a.$id=e,a}class nf extends Error{}nf.prototype.name="InvalidTokenError";function xj(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Cj(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return xj(t)}catch{return atob(t)}}function kj(e,t){if(typeof e!="string")throw new nf("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new nf(`Invalid token specified: missing part #${n+1}`);let i;try{i=Cj(r)}catch(a){throw new nf(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new nf(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}function _j(e,t={}){const{onError:n,fallbackValue:r=null}=t,i=(a,s)=>{try{return kj(a,s)}catch(o){return n?.(o),r}};return{header:L(()=>i(bn(e),{header:!0})),payload:L(()=>i(bn(e)))}}class yl{static async getLoginRequired(){return await(await Gr(!1,!1)).get("/api/v2/auth/login-required")}static async postLogin(t,n){return await(await Gr(!1,!1)).post("/api/v2/auth/login",{username:t,password:n})}static async logout(){return await(await Gr(!0,!1)).post("/api/v2/auth/logout")}static async refreshLogin(t){return await(await Gr(!1,!1)).post("/api/v2/auth/refresh",{refreshToken:t})}static async verifyLogin(){return await(await Gr(!0,!1)).post("/api/v2/auth/verify")}static async registerAccount(t,n){return await(await Gr(!0,!1)).post("/api/v2/auth/register",{username:t,password:n})}}const Ni={IncorrectCredentials:"IncorrectCredentials",InvalidOrExpiredRefreshToken:"InvalidOrExpiredRefreshToken",InvalidOrExpiredAuthToken:"InvalidOrExpiredAuthToken",PasswordChangeRequired:"PasswordChangeRequired",LoginRequired:"LoginRequired",AccountNotVerified:"AccountNotVerified"};function Yw(e){switch(e){case Ni.IncorrectCredentials:return"Incorrect credentials";case Ni.InvalidOrExpiredRefreshToken:return"Invalid or expired refresh token";case Ni.InvalidOrExpiredAuthToken:return"Invalid or expired auth token";case Ni.PasswordChangeRequired:return"Password change required";case Ni.LoginRequired:return"Login required";case Ni.AccountNotVerified:return"Account not verified";default:return"Authentication error"}}function r_(e,t){return ad()?(Rn(e,t),!0):!1}const I0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Tj=Object.prototype.toString,Ij=e=>Tj.call(e)==="[object Object]",i_=()=>{};function Pj(e,t){function n(...r){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(a)})}return n}function Rj(e,t={}){let n,r,i=i_;const a=l=>{clearTimeout(l),i(),i=i_};let s;return l=>{const u=bn(e),c=bn(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(r&&(a(r),r=void 0),Promise.resolve(l())):new Promise((d,p)=>{i=t.rejectOnCancel?p:d,s=l,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,d(s())},c)),n=setTimeout(()=>{r&&a(r),r=void 0,d(l())},u)})}}function sb(e){return Array.isArray(e)?e:[e]}function Aj(e,t=200,n={}){return Pj(Rj(t,n),e)}function Oj(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let a=null;const s=Le(!1);function o(){a&&(clearInterval(a),a=null)}function l(){s.value=!1,o()}function u(){const c=bn(t);c<=0||(s.value=!0,i&&e(),o(),s.value&&(a=setInterval(e,c)))}return r&&I0&&u(),(Ot(t)||typeof t=="function")&&r_(Oe(t,()=>{s.value&&I0&&u()})),r_(l),{isActive:fv(s),pause:l,resume:u}}function Nj(e,t,n){return Oe(e,t,{...n,immediate:!0})}const eN=I0?window:void 0;function Dj(e){var t;const n=bn(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Lj(...e){const t=(r,i,a,s)=>(r.addEventListener(i,a,s),()=>r.removeEventListener(i,a,s)),n=L(()=>{const r=sb(bn(e[0])).filter(i=>i!=null);return r.every(i=>typeof i!="string")?r:void 0});return Nj(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(a=>Dj(a)))!==null&&r!==void 0?r:[eN].filter(a=>a!=null),sb(bn(n.value?e[1]:e[0])),sb(re(n.value?e[2]:e[1])),bn(n.value?e[3]:e[2])]},([r,i,a,s],o,l)=>{if(!r?.length||!i?.length||!a?.length)return;const u=Ij(s)?{...s}:s,c=r.flatMap(d=>i.flatMap(p=>a.map(h=>t(d,p,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}function Fj(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Mj(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=eN,eventName:a="keydown",passive:s=!1,dedupe:o=!1}=r,l=Fj(t);return Lj(i,a,c=>{c.repeat&&bn(o)||l(c)&&n(c)},s)}const zd=new Map;function pi(e){const t=ad();function n(o){var l;const u=zd.get(e)||new Set;u.add(o),zd.set(e,u);const c=()=>i(o);return t==null||(l=t.cleanups)===null||l===void 0||l.push(c),c}function r(o){function l(...u){i(l),o(...u)}return n(l)}function i(o){const l=zd.get(e);l&&(l.delete(o),l.size||a())}function a(){zd.delete(e)}function s(o,l){var u;(u=zd.get(e))===null||u===void 0||u.forEach(c=>c(o,l))}return{on:n,once:r,off:i,emit:s,reset:a}}const _s=Yi("auth",{state:()=>({isDemoMode:null,token:null,refreshToken:null,loginRequired:null,registration:null,wizardState:null,lastLogoutReason:null}),actions:{async checkAuthenticationRequirements(){return await yl.getLoginRequired().then(e=>(this.loginRequired=e.data.loginRequired,this.wizardState=e.data.wizardState,this.registration=e.data.registration,this.isDemoMode=e.data.isDemoMode,{loginRequired:this.loginRequired,wizardState:this.wizardState,registration:this.registration})).catch(e=>{throw console.error("authRequired: failed to check login required",e.response?.status),e})},async login(e,t){return this.lastLogoutReason=null,await yl.postLogin(e,t).then(n=>(this.setTokens(n.data.token,n.data.refreshToken),n.data)).catch(n=>{throw console.error("login: failed to login",n.response?.status),n})},async logout(e=!1,t){if(console.debug(`Logging out (calling server ${e})`),t&&(this.lastLogoutReason=t),e&&this.tokenClaims&&!this.isLoginExpired)try{await yl.logout()}catch(n){console.error("Server could not process logout, but local logout was successful",n)}this.setIdToken(void 0),this.setRefreshToken(void 0)},async verifyOrRefreshLoginOnceOrLogout(){try{return await yl.verifyLogin(),{success:!0}}catch(e){console.error("[AuthStore.verifyOrRefreshLoginOnce]: failed to verify login",e);const t=e;if(!t.response||t.response?.status!==kl.Unauthorized)throw console.error("[AuthStore.verifyOrRefreshLoginOnce]: unknown error",t.status),e;const{reasonCode:n,url:r}=this.extractSpecialReasonCode(e);if(n)return await this.logout(!1,Yw(n)),console.error(`[AuthStore] 401 Unauthorized - emitting 'auth:${n}' with reason ${n}`),pi(`auth:${n}`).emit({url:r,error:t.message,reasonCode:n}),{success:!1,handled:!0};if(!this.hasRefreshToken)return{success:!1,handled:!1};try{await this.refreshLoginToken(),await yl.verifyLogin()}catch(i){const a=i;if(a.response?.status===kl.Unauthorized)return await this.logout(!1),console.error("[AuthStore.verifyOrRefreshLoginOnce]: failed to refresh token",a.status),{success:!1,handled:!1};throw i}return{success:!0,handled:!1}}},extractSpecialReasonCode(e){const t=e?.response?.data?.reasonCode;return t&&console.error("[AuthStore] 401 Unauthorized - Checking received reason code",t),t&&(t===Ni.AccountNotVerified||t===Ni.PasswordChangeRequired)?{reasonCode:t,url:e?.config?.url}:{reasonCode:null,url:null}},loadTokens(){this.token=localStorage.getItem("token"),this.refreshToken=localStorage.getItem("refreshToken")},async refreshLoginToken(){if(!this.refreshToken)throw new Error("refreshLoginToken: no refresh token");return await yl.refreshLogin(this.refreshToken).then(e=>(e?.data?.token&&this.setIdToken(e.data.token),!0)).catch(e=>{throw e.response?.status==kl.Unauthorized?(this.setTokens(void 0,void 0),console.error("refreshLoginToken: authentication error, failed to refresh tokens",e.response?.status)):console.error("refreshLoginToken: unknown error, failed to refresh tokens",e.response?.status),e})},setTokens(e,t){this.setIdToken(e),this.setRefreshToken(t)},setIdToken(e){e?.length?(localStorage.setItem("token",e),this.token=e):localStorage.removeItem("token")},setRefreshToken(e){e?.length?(localStorage.setItem("refreshToken",e),this.refreshToken=e):localStorage.removeItem("refreshToken")}},getters:{hasRefreshToken(){return!!this.refreshToken},isLoginExpired(){const e=this.tokenClaims;return e?.exp?e.exp<Date.now()/1e3:!1},hasAuthToken(){return!!this.tokenClaims},tokenClaims(){if(!this.token)return null;const e=_j(this.token,{fallbackValue:null});return e?e.payload.value:null}}}),it=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yt=globalThis,zl="10.32.1";function Cu(){return Rv(Yt),Yt}function Rv(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||zl,t[zl]=t[zl]||{}}function cd(e,t,n=Yt){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[zl]=r[zl]||{};return i[e]||(i[e]=t())}const $j=["debug","info","warn","error","log","assert","trace"],Vj="Sentry Logger ",ig={};function yo(e){if(!("console"in Yt))return e();const t=Yt.console,n={},r=Object.keys(ig);r.forEach(i=>{const a=ig[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Bj(){Jw().enabled=!0}function Uj(){Jw().enabled=!1}function tN(){return Jw().enabled}function jj(...e){Xw("log",...e)}function zj(...e){Xw("warn",...e)}function Hj(...e){Xw("error",...e)}function Xw(e,...t){it&&tN()&&yo(()=>{Yt.console[e](`${Vj}[${e}]:`,...t)})}function Jw(){return it?cd("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ze={enable:Bj,disable:Uj,isEnabled:tN,log:jj,warn:zj,error:Hj},nN=50,au="?",s_=/\(error: (.*)\)/,a_=/captureMessage|captureException/;function rN(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const a=[],s=n.split(`
|
|
10
|
-
`);for(let o=r;o<s.length;o++){let l=s[o];l.length>1024&&(l=l.slice(0,1024));const u=s_.test(l)?l.replace(s_,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of t){const d=c(u);if(d){a.push(d);break}}if(a.length>=nN+i)break}}return Gj(a.slice(i))}}function Wj(e){return Array.isArray(e)?rN(...e):e}function Gj(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Im(t).function||"")&&t.pop(),t.reverse(),a_.test(Im(t).function||"")&&(t.pop(),a_.test(Im(t).function||"")&&t.pop()),t.slice(0,nN).map(n=>({...n,filename:n.filename||Im(t).filename,function:n.function||au}))}function Im(e){return e[e.length-1]||{}}const ab="<anonymous>";function ao(e){try{return!e||typeof e!="function"?ab:e.name||ab}catch{return ab}}function o_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function iN(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const ch={},l_={};function rl(e,t){ch[e]=ch[e]||[],ch[e].push(t)}function il(e,t){if(!l_[e]){l_[e]=!0;try{t()}catch(n){it&&ze.error(`Error while instrumenting ${e}`,n)}}}function Es(e,t){const n=e&&ch[e];if(n)for(const r of n)try{r(t)}catch(i){it&&ze.error(`Error while triggering instrumentation handler.
|
|
11
|
-
Type: ${e}
|
|
12
|
-
Name: ${ao(r)}
|
|
13
|
-
Error:`,i)}}let ob=null;function sN(e){const t="error";rl(t,e),il(t,qj)}function qj(){ob=Yt.onerror,Yt.onerror=function(e,t,n,r,i){return Es("error",{column:r,error:i,line:n,msg:e,url:t}),ob?ob.apply(this,arguments):!1},Yt.onerror.__SENTRY_INSTRUMENTED__=!0}let lb=null;function aN(e){const t="unhandledrejection";rl(t,e),il(t,Kj)}function Kj(){lb=Yt.onunhandledrejection,Yt.onunhandledrejection=function(e){return Es("unhandledrejection",e),lb?lb.apply(this,arguments):!0},Yt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const oN=Object.prototype.toString;function Qw(e){switch(oN.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return oo(e,Error)}}function dd(e,t){return oN.call(e)===`[object ${t}]`}function lN(e){return dd(e,"ErrorEvent")}function u_(e){return dd(e,"DOMError")}function Yj(e){return dd(e,"DOMException")}function qa(e){return dd(e,"String")}function Zw(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Rc(e){return e===null||Zw(e)||typeof e!="object"&&typeof e!="function"}function zf(e){return dd(e,"Object")}function Av(e){return typeof Event<"u"&&oo(e,Event)}function Xj(e){return typeof Element<"u"&&oo(e,Element)}function Jj(e){return dd(e,"RegExp")}function fd(e){return!!(e?.then&&typeof e.then=="function")}function Qj(e){return zf(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function oo(e,t){try{return e instanceof t}catch{return!1}}function uN(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function eE(e){return typeof Request<"u"&&oo(e,Request)}const tE=Yt,Zj=80;function Hi(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Zj;for(;n&&a++<r&&(u=ez(n,c),!(u==="html"||a>1&&s+i.length*l+u.length>=d));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function ez(e,t){const n=e,r=[];if(!n?.tagName)return"";if(tE.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&qa(s)){const o=s.split(/\s+/);for(const l of o)r.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const s of a){const o=n.getAttribute(s);o&&r.push(`[${s}="${o}"]`)}return r.join("")}function pd(){try{return tE.document.location.href}catch{return""}}function cN(e){if(!tE.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Fi(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&dN(i,r);try{e[t]=i}catch{it&&ze.log(`Failed to replace method "${t}" in object`,e)}}function Wi(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{it&&ze.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function dN(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Wi(e,"__sentry_original__",t)}catch{}}function nE(e){return e.__sentry_original__}function fN(e){if(Qw(e))return{message:e.message,name:e.name,stack:e.stack,...d_(e)};if(Av(e)){const t={type:e.type,target:c_(e.target),currentTarget:c_(e.currentTarget),...d_(e)};return typeof CustomEvent<"u"&&oo(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function c_(e){try{return Xj(e)?Hi(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function d_(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function tz(e){const t=Object.keys(fN(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function P0(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function f_(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{uN(i)?n.push(iN(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function dh(e,t,n=!1){return qa(e)?Jj(t)?t.test(e):qa(t)?n?e===t:e.includes(t):!1:!1}function Ka(e,t=[],n=!1){return t.some(r=>dh(e,r,n))}function nz(){const e=Yt;return e.crypto||e.msCrypto}let ub;function rz(){return Math.random()*16}function os(e=nz()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return ub||(ub="10000000100040008000"+1e11),ub.replace(/[018]/g,t=>(t^(rz()&15)>>t/4).toString(16))}function pN(e){return e.exception?.values?.[0]}function El(e){const{message:t,event_id:n}=e;if(t)return t;const r=pN(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function R0(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Ac(e,t){const n=pN(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i?.data,...t.data};n.mechanism.data=a}}function p_(e){if(iz(e))return!0;try{Wi(e,"__sentry_captured__",!0)}catch{}return!1}function iz(e){try{return e.__sentry_captured__}catch{}}const mN=1e3;function ku(){return Date.now()/mN}function sz(){const{performance:e}=Yt;if(!e?.now||!e.timeOrigin)return ku;const t=e.timeOrigin;return()=>(t+e.now())/mN}let m_;function sr(){return(m_??(m_=sz()))()}let cb;function az(){const{performance:e}=Yt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,s=e.timing?.navigationStart,l=typeof s=="number"?Math.abs(s+n-r):t,u=l<t;return a||u?i<=l?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}function Xi(){return cb||(cb=az()),cb[0]}function oz(e){const t=sr(),n={sid:os(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>uz(n)};return e&&Oc(n,e),n}function Oc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||sr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:os()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function lz(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Oc(e,n)}function uz(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Bp(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Bp(r[i],t[i],n-1));return r}function lo(){return os()}function Ya(){return os().substring(16)}const A0="_sentrySpan";function Nc(e,t){t?Wi(e,A0,t):delete e[A0]}function sg(e){return e[A0]}const cz=100;class Sa{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:lo(),sampleRand:Math.random()}}clone(){const t=new Sa;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Nc(t,sg(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Oc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Sa?n.getScopeData():zf(n)?t:void 0,{tags:i,attributes:a,extra:s,user:o,contexts:l,level:u,fingerprint:c=[],propagationContext:d}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Nc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:lo(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:cz;if(r<=0)return this;const i={timestamp:ku(),...t,message:t.message?P0(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:sg(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Bp(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||os();if(!this._client)return it&&ze.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||os();if(!this._client)return it&&ze.warn("No client configured on scope - will not capture message!"),i;const a=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n?.event_id||os();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(it&&ze.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function dz(){return cd("defaultCurrentScope",()=>new Sa)}function fz(){return cd("defaultIsolationScope",()=>new Sa)}class pz{constructor(t,n){let r;t?r=t:r=new Sa;let i;n?i=n:i=new Sa,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return fd(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Dc(){const e=Cu(),t=Rv(e);return t.stack=t.stack||new pz(dz(),fz())}function mz(e){return Dc().withScope(e)}function hz(e,t){const n=Dc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function h_(e){return Dc().withScope(()=>e(Dc().getIsolationScope()))}function gz(){return{withIsolationScope:h_,withScope:mz,withSetScope:hz,withSetIsolationScope:(e,t)=>h_(t),getCurrentScope:()=>Dc().getScope(),getIsolationScope:()=>Dc().getIsolationScope()}}function md(e){const t=Rv(e);return t.acs?t.acs:gz()}function gn(){const e=Cu();return md(e).getCurrentScope()}function ka(){const e=Cu();return md(e).getIsolationScope()}function hN(){return cd("globalScope",()=>new Sa)}function Ov(...e){const t=Cu(),n=md(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function jt(){return gn().getClient()}function vz(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,a={trace_id:n,span_id:i||Ya()};return r&&(a.parent_span_id=r),a}const Mi="sentry.source",rE="sentry.sample_rate",gN="sentry.previous_trace_sample_rate",uo="sentry.op",Un="sentry.origin",Hf="sentry.idle_span_finish_reason",Up="sentry.measurement_unit",jp="sentry.measurement_value",g_="sentry.custom_span_name",iE="sentry.profile_id",hd="sentry.exclusive_time",yz="sentry.link.type",bz=0,sE=1,yr=2;function Sz(e){if(e<400&&e>=100)return{code:sE};if(e>=400&&e<500)switch(e){case 401:return{code:yr,message:"unauthenticated"};case 403:return{code:yr,message:"permission_denied"};case 404:return{code:yr,message:"not_found"};case 409:return{code:yr,message:"already_exists"};case 413:return{code:yr,message:"failed_precondition"};case 429:return{code:yr,message:"resource_exhausted"};case 499:return{code:yr,message:"cancelled"};default:return{code:yr,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:yr,message:"unimplemented"};case 503:return{code:yr,message:"unavailable"};case 504:return{code:yr,message:"deadline_exceeded"};default:return{code:yr,message:"internal_error"}}return{code:yr,message:"internal_error"}}function vN(e,t){e.setAttribute("http.response.status_code",t);const n=Sz(t);n.message!=="unknown_error"&&e.setStatus(n)}const yN="_sentryScope",bN="_sentryIsolationScope";function wz(e){try{const t=Yt.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Ez(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function xz(e,t,n){e&&(Wi(e,bN,wz(n)),Wi(e,yN,t))}function ag(e){const t=e;return{scope:t[yN],isolationScope:Ez(t[bN])}}const aE="sentry-",Cz=/^sentry-/,kz=8192;function SN(e){const t=Tz(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Cz)){const s=i.slice(aE.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function _z(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${aE}${r}`]=i),n),{});return Iz(t)}function Tz(e){if(!(!e||!qa(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=v_(n);return Object.entries(r).forEach(([i,a])=>{t[i]=a}),t},{}):v_(e)}function v_(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),i=t.slice(n+1);return[r,i].map(a=>{try{return decodeURIComponent(a.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Iz(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>kz?(it&&ze.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Pz=/^o(\d+)\./,Rz=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Az(e){return e==="http"||e==="https"}function gd(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function Oz(e){const t=Rz.exec(e);if(!t){yo(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a="",s="",o=""]=t.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return wN({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function wN(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Nz(e){if(!it)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ze.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Az(r)?t&&isNaN(parseInt(t,10))?(ze.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ze.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ze.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Dz(e){return e.match(Pz)?.[1]}function Lz(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=Dz(n)),r}function Fz(e){const t=typeof e=="string"?Oz(e):wN(e);if(!(!t||!Nz(t)))return t}function ou(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const EN=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mz(e){if(!e)return;const t=e.match(EN);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function $z(e,t){const n=Mz(e),r=SN(t);if(!n?.traceId)return{traceId:lo(),sampleRand:Math.random()};const i=Vz(n,r);r&&(r.sample_rand=i.toString());const{traceId:a,parentSpanId:s,parentSampled:o}=n;return{traceId:a,parentSpanId:s,sampled:o,dsc:r||{},sampleRand:i}}function xN(e=lo(),t=Ya(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function CN(e=lo(),t=Ya(),n){return`00-${e}-${t}-${n?"01":"00"}`}function Vz(e,t){const n=ou(t?.sample_rand);if(n!==void 0)return n;const r=ou(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const kN=0,oE=1;let y_=!1;function Bz(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,origin:o,links:l}=Qt(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:s,origin:o,links:l}}function Uz(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Qt(e).parent_span_id,a=ag(e).scope,s=r?a?.getPropagationContext().propagationSpanId||Ya():t;return{parent_span_id:i,span_id:s,trace_id:n}}function jz(e){const{traceId:t,spanId:n}=e.spanContext(),r=sl(e);return xN(t,n,r)}function zz(e){const{traceId:t,spanId:n}=e.spanContext(),r=sl(e);return CN(t,n,r)}function _N(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:a})=>({span_id:t,trace_id:n,sampled:r===oE,attributes:a,...i}))}function Hl(e){return typeof e=="number"?b_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?b_(e.getTime()):sr()}function b_(e){return e>9999999999?e/1e3:e}function Qt(e){if(Wz(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Hz(e)){const{attributes:r,startTime:i,name:a,endTime:s,status:o,links:l}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:u,start_timestamp:Hl(i),timestamp:Hl(s)||void 0,status:TN(o),op:r[uo],origin:r[Un],links:_N(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Hz(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Wz(e){return typeof e.getSpanJSON=="function"}function sl(e){const{traceFlags:t}=e.spanContext();return t===oE}function TN(e){if(!(!e||e.code===bz))return e.code===sE?"ok":e.message||"internal_error"}const Wl="_sentryChildSpans",O0="_sentryRootSpan";function IN(e,t){const n=e[O0]||e;Wi(t,O0,n),e[Wl]?e[Wl].add(t):Wi(e,Wl,new Set([t]))}function Gz(e,t){e[Wl]&&e[Wl].delete(t)}function fh(e){const t=new Set;function n(r){if(!t.has(r)&&sl(r)){t.add(r);const i=r[Wl]?Array.from(r[Wl]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function Dr(e){return e[O0]||e}function $r(){const e=Cu(),t=md(e);return t.getActiveSpan?t.getActiveSpan():sg(gn())}function N0(){y_||(yo(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),y_=!0)}let S_=!1;function qz(){if(S_)return;function e(){const t=$r(),n=t&&Dr(t);if(n){const r="internal_error";it&&ze.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:yr,message:r})}}e.tag="sentry_tracingErrorCallback",S_=!0,sN(e),aN(e)}function xs(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||jt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function w_(e){ze.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function og(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(Yz(n)){if(dh(e.description,n))return it&&w_(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?dh(e.description,n.name):!0,i=n.op?e.op&&dh(e.op,n.op):!0;if(r&&i)return it&&w_(e),!0}return!1}function Kz(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function Yz(e){return typeof e=="string"||e instanceof RegExp}const lE="production",PN="_frozenDsc";function ph(e,t){Wi(e,PN,t)}function RN(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||lE,release:n.release,public_key:r,trace_id:e,org_id:Lz(t)};return t.emit("createDsc",i),i}function AN(e,t){const n=t.getPropagationContext();return n.dsc||RN(n.traceId,e)}function co(e){const t=jt();if(!t)return{};const n=Dr(e),r=Qt(n),i=r.data,a=n.spanContext().traceState,s=a?.get("sentry.sample_rate")??i[rE]??i[gN];function o(g){return(typeof s=="number"||typeof s=="string")&&(g.sample_rate=`${s}`),g}const l=n[PN];if(l)return o(l);const u=a?.get("sentry.dsc"),c=u&&SN(u);if(c)return o(c);const d=RN(e.spanContext().traceId,t),p=i[Mi],h=r.description;return p!=="url"&&h&&(d.transaction=h),xs()&&(d.sampled=String(sl(n)),d.sample_rand=a?.get("sentry.sample_rand")??ag(n).scope?.getPropagationContext().sampleRand.toString()),o(d),t.emit("createDsc",d,n),d}class Ko{constructor(t={}){this._traceId=t.traceId||lo(),this._spanId=t.spanId||Ya()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:kN}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Ms(e,t=100,n=1/0){try{return D0("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ON(e,t=3,n=100*1024){const r=Ms(e,t);return Zz(r)>n?ON(e,t-1,n):r}function D0(e,t,n=1/0,r=1/0,i=eH()){const[a,s]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const o=Xz(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const h=u.toJSON();return D0("",h,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let d=0;const p=fN(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(d>=r){c[h]="[MaxProperties ~]";break}const g=p[h];c[h]=D0(h,g,l-1,r,i),d++}return s(t),c}function Xz(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(uN(t))return iN(t);if(Qj(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ao(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Jz(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Jz(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Qz(e){return~-encodeURI(e).split(/%..|./).length}function Zz(e){return Qz(JSON.stringify(e))}function eH(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function al(e,t=[]){return[e,t]}function tH(e,t){const[n,r]=e;return[n,[...r,t]]}function E_(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function L0(e){const t=Rv(Yt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function nH(e){const[t,n]=e;let r=JSON.stringify(t);function i(a){typeof r=="string"?r=typeof a=="string"?r+a:[L0(r),a]:r.push(typeof a=="string"?L0(a):a)}for(const a of n){const[s,o]=a;if(i(`
|
|
14
|
-
${JSON.stringify(s)}
|
|
15
|
-
`),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch{l=JSON.stringify(Ms(o))}i(l)}}return typeof r=="string"?r:rH(r)}function rH(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function iH(e){return[{type:"span"},e]}function sH(e){const t=typeof e.data=="string"?L0(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const aH={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function x_(e){return aH[e]}function uE(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function NN(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:gd(r)},...i&&{trace:i}}}function oH(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function lH(e,t,n,r){const i=uE(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:gd(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return al(a,[s])}function uH(e,t,n,r){const i=uE(n),a=e.type&&e.type!=="replay_event"?e.type:"event";oH(e,n?.sdk);const s=NN(e,i,r,t);return delete e.sdkProcessingMetadata,al(s,[[{type:a},e]])}function cH(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=co(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:gd(i)}},{beforeSendSpan:o,ignoreSpans:l}=t?.getOptions()||{},u=l?.length?e.filter(h=>!og(Qt(h),l)):e,c=e.length-u.length;c&&t?.recordDroppedEvent("before_send","span",c);const d=o?h=>{const g=Qt(h),v=o(g);return v||(N0(),g)}:Qt,p=[];for(const h of u){const g=d(h);g&&p.push(iH(g))}return al(s,p)}function dH(e){if(!it)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Qt(e),{spanId:i}=e.spanContext(),a=sl(e),s=Dr(e),o=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!o){const{op:c,description:d}=Qt(s);u.push(`root ID: ${s.spanContext().spanId}`),c&&u.push(`root op: ${c}`),d&&u.push(`root description: ${d}`)}ze.log(`${l}
|
|
16
|
-
${u.join(`
|
|
17
|
-
`)}`)}function fH(e){if(!it)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Qt(e),{spanId:r}=e.spanContext(),a=Dr(e)===e,s=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;ze.log(s)}function pH(e,t,n,r=$r()){const i=r&&Dr(r);i&&(it&&ze.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[jp]:t,[Up]:n}))}function C_(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[Up],a=r[jp];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const k_=1e3;class Nv{constructor(t={}){this._traceId=t.traceId||lo(),this._spanId=t.spanId||Ya(),this._startTime=t.startTimestamp||sr(),this._links=t.links,this._attributes={},this.setAttributes({[Un]:"manual",[uo]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?oE:kN}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Hl(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Mi,"custom"),this}end(t){this._endTime||(this._endTime=Hl(t),fH(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[uo],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:TN(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Un],profile_id:this._attributes[iE],exclusive_time:this._attributes[hd],measurements:C_(this._events),is_segment:this._isStandaloneSpan&&Dr(this)===this||void 0,segment_id:this._isStandaloneSpan?Dr(this).spanContext().spanId:void 0,links:_N(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){it&&ze.log("[Tracing] Adding an event to span:",t);const i=__(n)?n:r||sr(),a=__(n)?{}:n||{},s={name:t,time:Hl(i),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=jt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Dr(this)))return;if(this._isStandaloneSpan){this._sampled?hH(cH([this],t)):(it&&ze.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(ag(this).scope||gn()).captureEvent(r)}_convertSpanToTransaction(){if(!T_(Qt(this)))return;this._name||(it&&ze.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=ag(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const a=fh(this).filter(c=>c!==this&&!mH(c)).map(c=>Qt(c)).filter(T_),s=this._attributes[Mi];delete this._attributes[g_],a.forEach(c=>{delete c.data[g_]});const o={contexts:{trace:Bz(this)},spans:a.length>k_?a.sort((c,d)=>c.start_timestamp-d.start_timestamp).slice(0,k_):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:co(this)},request:r,...s&&{transaction_info:{source:s}}},l=C_(this._events);return l&&Object.keys(l).length&&(it&&ze.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}}function __(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function T_(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function mH(e){return e instanceof Nv&&e.isStandaloneSpan()}function hH(e){const t=jt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function gH(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(a){throw t(a),n(),a}return vH(i,t,n,r)}function vH(e,t,n,r){return fd(e)?e.then(i=>(n(),r(i),i),i=>{throw t(i),n(),i}):(n(),r(e),e)}function yH(e,t,n){if(!xs(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:o=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):o}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const a=ou(i);if(a===void 0)return it&&ze.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return it&&ze.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,r];const s=n<a;return s||it&&ze.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,a,r]}const DN="__SENTRY_SUPPRESS_TRACING__";function bH(e,t){const n=dE();if(n.startSpan)return n.startSpan(e,t);const r=FN(e),{forceTransaction:i,parentSpan:a,scope:s}=e,o=s?.clone();return Ov(o,()=>wH(a)(()=>{const u=gn(),c=MN(u,a),p=e.onlyIfParent&&!c?new Ko:LN({parentSpan:c,spanArguments:r,forceTransaction:i,scope:u});return Nc(u,p),gH(()=>t(p),()=>{const{status:h}=Qt(p);p.isRecording()&&(!h||h==="ok")&&p.setStatus({code:yr,message:"internal_error"})},()=>{p.end()})}))}function Yo(e){const t=dE();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=FN(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?s=>Ov(e.scope,s):i!==void 0?s=>cE(i,s):s=>s())(()=>{const s=gn(),o=MN(s,i);return e.onlyIfParent&&!o?new Ko:LN({parentSpan:o,spanArguments:n,forceTransaction:r,scope:s})})}function cE(e,t){const n=dE();return n.withActiveSpan?n.withActiveSpan(e,t):Ov(r=>(Nc(r,e||void 0),t(r)))}function LN({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!xs()){const s=new Ko;if(n||!e){const o={sampled:"false",sample_rate:"0",transaction:t.name,...co(s)};ph(s,o)}return s}const i=ka();let a;if(e&&!n)a=SH(e,r,t),IN(e,a);else if(e){const s=co(e),{traceId:o,spanId:l}=e.spanContext(),u=sl(e);a=I_({traceId:o,parentSpanId:l,...t},r,u),ph(a,s)}else{const{traceId:s,dsc:o,parentSpanId:l,sampled:u}={...i.getPropagationContext(),...r.getPropagationContext()};a=I_({traceId:s,parentSpanId:l,...t},r,u),o&&ph(a,o)}return dH(a),xz(a,r,i),a}function FN(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Hl(e.startTime),delete r.startTime,r}return n}function dE(){const e=Cu();return md(e)}function I_(e,t,n){const r=jt(),i=r?.getOptions()||{},{name:a=""}=e,s={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});const o=s.parentSampled??n,l=s.spanAttributes,u=t.getPropagationContext(),[c,d,p]=t.getScopeData().sdkProcessingMetadata[DN]?[!1]:yH(i,{name:a,parentSampled:o,attributes:l,parentSampleRate:ou(u.dsc?.sample_rate)},u.sampleRand),h=new Nv({...e,attributes:{[Mi]:"custom",[rE]:d!==void 0&&p?d:void 0,...l},sampled:c});return!c&&r&&(it&&ze.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function SH(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[DN]?!1:sl(e),s=a?new Nv({...n,parentSpanId:r,traceId:i,sampled:a}):new Ko({traceId:i});IN(e,s);const o=jt();return o&&(o.emit("spanStart",s),n.endTimestamp&&o.emit("spanEnd",s)),s}function MN(e,t){if(t)return t;if(t===null)return;const n=sg(e);if(!n)return;const r=jt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Dr(n):n}function wH(e){return e!==void 0?t=>cE(e,t):t=>t()}const mh={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},EH="heartbeatFailed",xH="idleTimeout",CH="finalTimeout",kH="externalFinish";function $N(e,t={}){const n=new Map;let r=!1,i,a=kH,s=!t.disableAutoFinish;const o=[],{idleTimeout:l=mh.idleTimeout,finalTimeout:u=mh.finalTimeout,childSpanTimeout:c=mh.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:p=!0}=t,h=jt();if(!h||!xs()){const R=new Ko,T={sample_rate:"0",sampled:"false",...co(R)};return ph(R,T),R}const g=gn(),v=$r(),y=_H(e);y.end=new Proxy(y.end,{apply(R,T,I){if(d&&d(y),T instanceof Ko)return;const[x,...A]=I,D=x||sr(),B=Hl(D),V=fh(y).filter(X=>X!==y),$=Qt(y);if(!V.length||!p)return k(B),Reflect.apply(R,T,[B,...A]);const N=h.getOptions().ignoreSpans,O=V?.reduce((X,ie)=>{const Z=Qt(ie);return!Z.timestamp||N&&og(Z,N)?X:X?Math.max(X,Z.timestamp):Z.timestamp},void 0),M=$.start_timestamp,Y=Math.min(M?M+u/1e3:1/0,Math.max(M||-1/0,Math.min(B,O||1/0)));return k(Y),Reflect.apply(R,T,[Y,...A])}});function b(){i&&(clearTimeout(i),i=void 0)}function S(R){b(),i=setTimeout(()=>{!r&&n.size===0&&s&&(a=xH,y.end(R))},l)}function w(R){i=setTimeout(()=>{!r&&s&&(a=EH,y.end(R))},c)}function C(R){b(),n.set(R,!0);const T=sr();w(T+c/1e3)}function P(R){if(n.has(R)&&n.delete(R),n.size===0){const T=sr();S(T+l/1e3)}}function k(R){r=!0,n.clear(),o.forEach(V=>V()),Nc(g,v);const T=Qt(y),{start_timestamp:I}=T;if(!I)return;T.data[Hf]||y.setAttribute(Hf,a);const A=T.status;(!A||A==="unknown")&&y.setStatus({code:sE}),ze.log(`[Tracing] Idle span "${T.op}" finished`);const D=fh(y).filter(V=>V!==y);let B=0;D.forEach(V=>{V.isRecording()&&(V.setStatus({code:yr,message:"cancelled"}),V.end(R),it&&ze.log("[Tracing] Cancelling span since span ended early",JSON.stringify(V,void 0,2)));const $=Qt(V),{timestamp:N=0,start_timestamp:O=0}=$,M=O<=R,Y=(u+l)/1e3,X=N-O<=Y;if(it){const ie=JSON.stringify(V,void 0,2);M?X||ze.log("[Tracing] Discarding span since it finished after idle span final timeout",ie):ze.log("[Tracing] Discarding span since it happened after idle span was finished",ie)}(!X||!M)&&(Gz(y,V),B++)}),B>0&&y.setAttribute("sentry.idle_span_discarded_spans",B)}return o.push(h.on("spanStart",R=>{if(r||R===y||Qt(R).timestamp||R instanceof Nv&&R.isStandaloneSpan())return;fh(y).includes(R)&&C(R.spanContext().spanId)})),o.push(h.on("spanEnd",R=>{r||P(R.spanContext().spanId)})),o.push(h.on("idleSpanEnableAutoFinish",R=>{R===y&&(s=!0,S(),n.size&&w())})),t.disableAutoFinish||S(),setTimeout(()=>{r||(y.setStatus({code:yr,message:"deadline_exceeded"}),a=CH,y.end())},u),y}function _H(e){const t=Yo(e);return Nc(gn(),t),it&&ze.log("[Tracing] Started span is an idle span"),t}const db=0,P_=1,R_=2;function Dv(e){return new Wf(t=>{t(e)})}function fE(e){return new Wf((t,n)=>{n(e)})}class Wf{constructor(t){this._state=db,this._handlers=[],this._runExecutor(t)}then(t,n){return new Wf((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Wf((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}_executeHandlers(){if(this._state===db)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===P_&&n[1](this._value),this._state===R_&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(a,s)=>{if(this._state===db){if(fd(s)){s.then(r,i);return}this._state=a,this._value=s,this._executeHandlers()}},r=a=>{n(P_,a)},i=a=>{n(R_,a)};try{t(r,i)}catch(a){i(a)}}}function TH(e,t,n,r=0){try{const i=F0(t,n,e,r);return fd(i)?i:Dv(i)}catch(i){return fE(i)}}function F0(e,t,n,r){const i=n[r];if(!e||!i)return e;const a=i({...e},t);return it&&a===null&&ze.log(`Event processor "${i.id||"?"}" dropped event`),fd(a)?a.then(s=>F0(s,t,n,r+1)):F0(a,t,n,r+1)}function IH(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;PH(e,t),r&&OH(e,r),NH(e,n),RH(e,i),AH(e,a)}function A_(e,t){const{extra:n,tags:r,attributes:i,user:a,contexts:s,level:o,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:p,propagationContext:h,transactionName:g,span:v}=t;Hd(e,"extra",n),Hd(e,"tags",r),Hd(e,"attributes",i),Hd(e,"user",a),Hd(e,"contexts",s),e.sdkProcessingMetadata=Bp(e.sdkProcessingMetadata,l,2),o&&(e.level=o),g&&(e.transactionName=g),v&&(e.span=v),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function Hd(e,t,n){e[t]=Bp(e[t],n,1)}function PH(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),s&&(e.level=s),o&&e.type!=="transaction"&&(e.transaction=o)}function RH(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function AH(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function OH(e,t){e.contexts={trace:Uz(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:co(t),...e.sdkProcessingMetadata};const n=Dr(t),r=Qt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function NH(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let pl,O_,N_,Eo;function DH(e){const t=Yt._sentryDebugIds,n=Yt._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Eo&&r.length===O_&&i.length===N_)return Eo;O_=r.length,N_=i.length,Eo={},pl||(pl={});const a=(s,o)=>{for(const l of s){const u=o[l],c=pl?.[l];if(c&&Eo&&u)Eo[c[0]]=u,pl&&(pl[l]=[c[0],u]);else if(u){const d=e(l);for(let p=d.length-1;p>=0;p--){const g=d[p]?.filename;if(g&&Eo&&pl){Eo[g]=u,pl[l]=[g,u];break}}}}};return t&&a(r,t),n&&a(i,n),Eo}function VN(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||os(),timestamp:t.timestamp||ku()},u=n.integrations||e.integrations.map(y=>y.name);LH(l,e),$H(l,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&FH(l,e.stackParser);const c=BH(r,n.captureContext);n.mechanism&&Ac(l,n.mechanism);const d=i?i.getEventProcessors():[],p=hN().getScopeData();if(a){const y=a.getScopeData();A_(p,y)}if(c){const y=c.getScopeData();A_(p,y)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),IH(l,p);const g=[...d,...p.eventProcessors];return TH(g,l,n).then(y=>(y&&MH(y),typeof s=="number"&&s>0?VH(y,s,o):y))}function LH(e,t){const{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||lE,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const s=e.request;s?.url&&a&&(s.url=P0(s.url,a)),a&&e.exception?.values?.forEach(o=>{o.value&&(o.value=P0(o.value,a))})}function FH(e,t){const n=DH(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function MH(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function $H(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function VH(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Ms(i.data,t,n)}}))},...e.user&&{user:Ms(e.user,t,n)},...e.contexts&&{contexts:Ms(e.contexts,t,n)},...e.extra&&{extra:Ms(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ms(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Ms(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Ms(e.contexts.flags,3,n)),r}function BH(e,t){if(!t)return e;const n=e?e.clone():new Sa;return n.update(t),n}function UH(e){if(e)return jH(e)?{captureContext:e}:HH(e)?{captureContext:e}:e}function jH(e){return e instanceof Sa||typeof e=="function"}const zH=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function HH(e){return Object.keys(e).some(t=>zH.includes(t))}function Gs(e,t){return gn().captureException(e,UH(t))}function BN(e,t){return gn().captureEvent(e,t)}function WH(e,t){ka().setContext(e,t)}function GH(){const e=jt();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function qH(e){ka().addEventProcessor(e)}function D_(e){const t=ka(),n=gn(),{userAgent:r}=Yt.navigator||{},i=oz({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),a=t.getSession();return a?.status==="ok"&&Oc(a,{status:"exited"}),UN(),t.setSession(i),i}function UN(){const e=ka(),n=gn().getSession()||e.getSession();n&&lz(n),jN(),e.setSession()}function jN(){const e=ka(),t=jt(),n=e.getSession();n&&t&&t.captureSession(n)}function L_(e=!1){if(e){UN();return}jN()}const KH="7";function YH(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function XH(e){return`${YH(e)}${e.projectId}/envelope/`}function JH(e,t){const n={sentry_version:KH};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function QH(e,t,n){return t||`${XH(e)}?${JH(e,n)}`}const F_=[];function ZH(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function e7(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return ZH(r)}function t7(e,t){const n={};return t.forEach(r=>{r&&zN(e,r,n)}),n}function M_(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function zN(e,t,n){if(n[t.name]){it&&ze.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!F_.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),F_.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}it&&ze.log(`Integration installed: ${t.name}`)}function n7(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function r7(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=gd(r)),al(i,[n7(e)])}function HN(e,t){const n=t??i7(e)??[];if(n.length===0)return;const r=e.getOptions(),i=r7(n,r._metadata,r.tunnel,e.getDsn());WN().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function i7(e){return WN().get(e)}function WN(){return cd("clientToLogBufferMap",()=>new WeakMap)}function s7(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function a7(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=gd(r)),al(i,[s7(e)])}function GN(e,t){const n=t??o7(e)??[];if(n.length===0)return;const r=e.getOptions(),i=a7(n,r._metadata,r.tunnel,e.getDsn());qN().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function o7(e){return qN().get(e)}function qN(){return cd("clientToMetricBufferMap",()=>new WeakMap)}const pE=Symbol.for("SentryBufferFullError");function mE(e=100){const t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function i(s){if(!n())return fE(pE);const o=s();return t.add(o),o.then(()=>r(o),()=>r(o)),o}function a(s){if(!t.size)return Dv(!0);const o=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return o;const l=[o,new Promise(u=>setTimeout(()=>u(!1),s))];return Promise.race(l)}return{get $(){return Array.from(t)},add:i,drain:a}}const l7=60*1e3;function u7(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?l7:r-t}function c7(e,t){return e[t]||e.all||0}function KN(e,t,n=Date.now()){return c7(e,t)>n}function YN(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,c]=o.split(":",5),d=parseInt(l,10),p=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+p;else for(const h of u.split(";"))h==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[h]=r+p):i[h]=r+p}else s?i.all=r+u7(s,r):t===429&&(i.all=r+60*1e3);return i}const XN=64;function d7(e,t,n=mE(e.bufferSize||XN)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(E_(s,(d,p)=>{const h=x_(p);KN(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):o.push(d)}),o.length===0)return Promise.resolve({});const l=al(s[0],o),u=d=>{E_(l,(p,h)=>{e.recordDroppedEvent(d,x_(h))})},c=()=>t({body:nH(l)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&it&&ze.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=YN(r,d),d),d=>{throw u("network_error"),it&&ze.error("Encountered error running transport request:",d),d});return n.add(c).then(d=>d,d=>{if(d===pE)return it&&ze.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:a,flush:i}}function f7(e,t,n){const r=[{type:"client_report"},{timestamp:ku(),discarded_events:e}];return al(t?{dsn:t}:{},[r])}function JN(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function p7(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[iE],exclusive_time:s?.[hd],measurements:e.measurements,is_segment:!0}}function m7(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[iE]:e.profile_id},...e.exclusive_time&&{[hd]:e.exclusive_time}}}},measurements:e.measurements}}const $_="Not capturing exception because it's already been captured.",V_="Discarded session because of missing or non-string release",QN=Symbol.for("SentryInternalError"),ZN=Symbol.for("SentryDoNotSendEventError"),h7=5e3;function hh(e){return{message:e,[QN]:!0}}function fb(e){return{message:e,[ZN]:!0}}function B_(e){return!!e&&typeof e=="object"&&QN in e}function U_(e){return!!e&&typeof e=="object"&&ZN in e}function j_(e,t,n,r,i){let a=0,s,o=!1;e.on(n,()=>{a=0,clearTimeout(s),o=!1}),e.on(t,l=>{a+=r(l),a>=8e5?i(e):o||(o=!0,s=setTimeout(()=>{i(e)},h7))}),e.on("flush",()=>{i(e)})}class g7{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=mE(t.transportOptions?.bufferSize??XN),t.dsn?this._dsn=Fz(t.dsn):it&&ze.warn("No DSN provided, client will not send events."),this._dsn){const r=QH(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&j_(this,"afterCaptureLog","flushLogs",S7,HN),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&j_(this,"afterCaptureMetric","flushMetrics",b7,GN)}captureException(t,n,r){const i=os();if(p_(t))return it&&ze.log($_),i;const a={event_id:i,...n};return this._process(()=>this.eventFromException(t,a).then(s=>this._captureEvent(s,a,r)).then(s=>s),"error"),a.event_id}captureMessage(t,n,r,i){const a={event_id:os(),...r},s=Zw(t)?t:String(t),o=Rc(t),l=o?this.eventFromMessage(s,n,a):this.eventFromException(t,a);return this._process(()=>l.then(u=>this._captureEvent(u,a,i)),o?"unknown":"error"),a.event_id}captureEvent(t,n,r){const i=os();if(n?.originalException&&p_(n.originalException))return it&&ze.log($_),i;const a={event_id:i,...n},s=t.sdkProcessingMetadata||{},o=s.capturedSpanScope,l=s.capturedSpanIsolationScope,u=z_(t.type);return this._process(()=>this._captureEvent(t,a,o||r,l),u),a.event_id}captureSession(t){this.sendSession(t),Oc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),i=await n.flush(t);return r&&i}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];zN(this,t,this._integrations),n||M_(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=uH(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=tH(r,sH(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",t,i))}sendSession(t){const{release:n,environment:r=lE}=this._options;if("aggregates"in t){const a=t.attrs||{};if(!a.release&&!n){it&&ze.warn(V_);return}a.release=a.release||n,a.environment=a.environment||r,t.attrs=a}else{if(!t.release&&!n){it&&ze.warn(V_);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=lH(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;it&&ze.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,i=(...a)=>n(...a);return r.add(i),()=>{r.delete(i)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return it&&ze.error("Error while sending envelope:",n),{}}return it&&ze.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=t7(this,t),M_(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const a=n.exception?.values;if(a){i=!0,r=!1;for(const l of a)if(l.mechanism?.handled===!1){r=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Oc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),VN(a,t,n,r,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,n),o.contexts={trace:vz(r),...o.contexts};const l=AN(this,r);return o.sdkProcessingMetadata={dynamicSamplingContext:l,...o.sdkProcessingMetadata},o})}_captureEvent(t,n={},r=gn(),i=ka()){return it&&M0(t)&&ze.log(`Captured error event \`${JN(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(a=>a.event_id,a=>{it&&(U_(a)?ze.log(a.message):B_(a)?ze.warn(a.message):ze.warn(a))})}_processEvent(t,n,r,i){const a=this.getOptions(),{sampleRate:s}=a,o=eD(t),l=M0(t),c=`before send for type \`${t.type||"error"}\``,d=typeof s>"u"?void 0:ou(s);if(l&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),fE(fb(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=z_(t.type);return this._prepareEvent(t,n,r,i).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",p),fb("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const v=y7(this,a,h,n);return v7(v,c)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",p),o){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw fb(`${c} returned \`null\`, will not send event.`)}const g=r.getSession()||i.getSession();if(l&&g&&this._updateSessionFromEvent(g,h),o){const y=h.sdkProcessingMetadata?.spanCountBeforeProcessing||0,b=h.spans?h.spans.length:0,S=y-b;S>0&&this.recordDroppedEvent("before_send","span",S)}const v=h.transaction_info;if(o&&v&&h.transaction!==t.transaction){const y="custom";h.transaction_info={...v,source:y}}return this.sendEvent(h,n),h}).then(null,h=>{throw U_(h)||B_(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),hh(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
18
|
-
Reason: ${h}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===pE&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,a]=n.split(":");return{reason:i,category:a,quantity:r}})}_flushOutcomes(){it&&ze.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){it&&ze.log("No outcomes to send");return}if(!this._dsn){it&&ze.log("No dsn provided, will not send outcomes");return}it&&ze.log("Sending outcomes:",t);const n=f7(t,this._options.tunnel&&gd(this._dsn));this.sendEnvelope(n)}}function z_(e){return e==="replay_event"?"replay":e||"error"}function v7(e,t){const n=`${t} must return \`null\` or a valid event.`;if(fd(e))return e.then(r=>{if(!zf(r)&&r!==null)throw hh(n);return r},r=>{throw hh(`${t} rejected with ${r}`)});if(!zf(e)&&e!==null)throw hh(n);return e}function y7(e,t,n,r){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:s,ignoreSpans:o}=t;let l=n;if(M0(l)&&i)return i(l,r);if(eD(l)){if(s||o){const u=p7(l);if(o?.length&&og(u,o))return null;if(s){const c=s(u);c?l=Bp(n,m7(c)):N0()}if(l.spans){const c=[],d=l.spans;for(const h of d){if(o?.length&&og(h,o)){Kz(d,h);continue}if(s){const g=s(h);g?c.push(g):(N0(),c.push(h))}else c.push(h)}const p=l.spans.length-c.length;p&&e.recordDroppedEvent("before_send","span",p),l.spans=c}}if(a){if(l.spans){const u=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return a(l,r)}}return l}function M0(e){return e.type===void 0}function eD(e){return e.type==="transaction"}function b7(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+tD(e.attributes)}function S7(e){let t=0;return e.message&&(t+=e.message.length*2),t+tD(e.attributes)}function tD(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*H_(n[0]):Rc(n)?t+=H_(n):t+=100}),t}function H_(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function w7(e,t){t.debug===!0&&(it?ze.enable():yo(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),gn().update(t.initialScope);const r=new e(t);return E7(r),r.init(),r}function E7(e){gn().setClient(e)}const x7="thismessage:/";function hE(e){return"isRelative"in e}function gE(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?x7:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function C7(e){if(hE(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Gl(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function k7(e){return e.split(/[?#]/,1)[0]}function _7(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return I7(e,n)||T7(e,r)}function T7(e,t){return t?W_(e)===W_(t):!1}function I7(e,t){const n=gE(e);return!n||hE(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function W_(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function P7(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function nD(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:zl})),version:zl}),e._metadata=i}function rD(e={}){const t=e.client||jt();if(!GH()||!t)return{};const n=Cu(),r=md(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||gn(),a=e.span||$r(),s=a?jz(a):R7(i),o=a?co(a):AN(t,i),l=_z(o);if(!EN.test(s))return ze.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const c={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(c.traceparent=a?zz(a):A7(i)),c}function R7(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return xN(t,r,n)}function A7(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return CN(t,r,n)}function O7(e,t,n){let r,i,a;const s=n?.maxWait?Math.max(n.maxWait,t):0,o=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function c(){return i!==void 0||a!==void 0?l():r}function d(){return i&&clearTimeout(i),i=o(l,t),s&&a===void 0&&(a=o(l,s)),r}return d.cancel=u,d.flush=c,d}const N7=100;function fo(e,t){const n=jt(),r=ka();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=N7}=n.getOptions();if(a<=0)return;const o={timestamp:ku(),...e},l=i?yo(()=>i(o,t)):o;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,a))}let G_;const D7="FunctionToString",q_=new WeakMap,L7=(()=>({name:D7,setupOnce(){G_=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=nE(this),n=q_.has(jt())&&t!==void 0?t:this;return G_.apply(n,e)}}catch{}},setup(e){q_.set(e,!0)}})),F7=L7,M7=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],$7="EventFilters",V7=(e={})=>{let t;return{name:$7,setup(n){const r=n.getOptions();t=K_(e,r)},processEvent(n,r,i){if(!t){const a=i.getOptions();t=K_(e,a)}return U7(n,t)?null:n}}},B7=((e={})=>({...V7(e),name:"InboundFilters"}));function K_(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:M7],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function U7(e,t){if(e.type){if(e.type==="transaction"&&z7(e,t.ignoreTransactions))return it&&ze.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
19
|
-
Event: ${El(e)}`),!0}else{if(j7(e,t.ignoreErrors))return it&&ze.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
20
|
-
Event: ${El(e)}`),!0;if(q7(e))return it&&ze.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
21
|
-
Event: ${El(e)}`),!0;if(H7(e,t.denyUrls))return it&&ze.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
22
|
-
Event: ${El(e)}.
|
|
23
|
-
Url: ${lg(e)}`),!0;if(!W7(e,t.allowUrls))return it&&ze.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
24
|
-
Event: ${El(e)}.
|
|
25
|
-
Url: ${lg(e)}`),!0}return!1}function j7(e,t){return t?.length?JN(e).some(n=>Ka(n,t)):!1}function z7(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Ka(n,t):!1}function H7(e,t){if(!t?.length)return!1;const n=lg(e);return n?Ka(n,t):!1}function W7(e,t){if(!t?.length)return!0;const n=lg(e);return n?Ka(n,t):!0}function G7(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function lg(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?G7(n):null}catch{return it&&ze.error(`Cannot extract url for event ${El(e)}`),null}}function q7(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function K7(e,t,n,r,i,a){if(!i.exception?.values||!a||!oo(a.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=$0(e,t,r,a.originalException,n,i.exception.values,s,0))}function $0(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(oo(r[i],Error)){Y_(s,o);const u=e(t,r[i]),c=l.length;X_(u,i,c,o),l=$0(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(oo(u,Error)){Y_(s,o);const d=e(t,u),p=l.length;X_(d,`errors[${c}]`,p,o),l=$0(e,t,n,u,i,[d,...l],d,p)}}),l}function Y_(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function X_(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Y7(e){const t="console";rl(t,e),il(t,X7)}function X7(){"console"in Yt&&$j.forEach(function(e){e in Yt.console&&Fi(Yt.console,e,function(t){return ig[e]=t,function(...n){Es("console",{args:n,level:e}),ig[e]?.apply(Yt.console,n)}})})}function iD(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const J7="Dedupe",Q7=(()=>{let e;return{name:J7,processEvent(t){if(t.type)return t;try{if(e9(t,e))return it&&ze.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Z7=Q7;function e9(e,t){return t?!!(t9(e,t)||n9(e,t)):!1}function t9(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!aD(e,t)||!sD(e,t))}function n9(e,t){const n=J_(t),r=J_(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!aD(e,t)||!sD(e,t))}function sD(e,t){let n=o_(e),r=o_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const a=r[i],s=n[i];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function aD(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function J_(e){return e.exception?.values?.[0]}function r9(e,t,n,r,i){if(!e.fetchData)return;const{method:a,url:s}=e.fetchData,o=xs()&&t(s);if(e.endTimestamp&&o){const h=e.fetchData.__span;if(!h)return;const g=r[h];g&&(a9(g,e),i9(g,e,i),delete r[h]);return}const{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}=typeof i=="object"?i:{spanOrigin:i},c=!!$r(),d=o&&c?Yo(l9(s,a,l)):new Ko;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const h=e.args[0],g=e.args[1]||{},v=s9(h,g,xs()&&c?d:void 0,u);v&&(e.args[1]=g,g.headers=v)}const p=jt();if(p){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,h)}return d}function i9(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function s9(e,t,n,r){const i=rD({span:n,propagateTraceparent:r}),a=i["sentry-trace"],s=i.baggage,o=i.traceparent;if(!a)return;const l=t.headers||(eE(e)?e.headers:void 0);if(l)if(o9(l)){const u=new Headers(l);if(u.get("sentry-trace")||u.set("sentry-trace",a),r&&o&&!u.get("traceparent")&&u.set("traceparent",o),s){const c=u.get("baggage");c?Pm(c)||u.set("baggage",`${c},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(l)){const u=[...l];l.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",a]),r&&o&&!l.find(d=>d[0]==="traceparent")&&u.push(["traceparent",o]);const c=l.find(d=>d[0]==="baggage"&&Pm(d[1]));return s&&!c&&u.push(["baggage",s]),u}else{const u="sentry-trace"in l?l["sentry-trace"]:void 0,c="traceparent"in l?l.traceparent:void 0,d="baggage"in l?l.baggage:void 0,p=d?Array.isArray(d)?[...d]:[d]:[],h=d&&(Array.isArray(d)?d.find(v=>Pm(v)):Pm(d));s&&!h&&p.push(s);const g={...l,"sentry-trace":u??a,baggage:p.length>0?p.join(","):void 0};return r&&o&&!c&&(g.traceparent=o),g}else return{...i}}function a9(e,t){if(t.response){vN(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:yr,message:"internal_error"});e.end()}function Pm(e){return e.split(",").some(t=>t.trim().startsWith(aE))}function o9(e){return typeof Headers<"u"&&oo(e,Headers)}function l9(e,t,n){const r=gE(e);return{name:r?`${t} ${C7(r)}`:t,attributes:u9(e,r,t,n)}}function u9(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[Un]:r,[uo]:"http.client"};return t&&(hE(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function oD(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Gf=Yt;function c9(){return"history"in Gf&&!!Gf.history}function d9(){if(!("fetch"in Gf))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function V0(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function f9(){if(typeof EdgeRuntime=="string")return!0;if(!d9())return!1;if(V0(Gf.fetch))return!0;let e=!1;const t=Gf.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=V0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){it&&ze.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function lD(e,t){const n="fetch";rl(n,e),il(n,()=>uD(void 0,t))}function p9(e){const t="fetch-body-resolved";rl(t,e),il(t,()=>uD(h9))}function uD(e,t=!1){t&&!f9()||Fi(Yt,"fetch",function(n){return function(...r){const i=new Error,{method:a,url:s}=g9(r),o={args:r,fetchData:{method:a,url:s},startTimestamp:sr()*1e3,virtualError:i,headers:v9(r)};return e||Es("fetch",{...o}),n.apply(Yt,r).then(async l=>(e?e(l):Es("fetch",{...o,endTimestamp:sr()*1e3,response:l}),l),l=>{if(Es("fetch",{...o,endTimestamp:sr()*1e3,error:l}),Qw(l)&&l.stack===void 0&&(l.stack=i.stack,Wi(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(o.fetchData.url);l.message=`${l.message} (${u.host})`}catch{}throw l})}})}async function m9(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(s),o&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(s)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function h9(e){let t;try{t=e.clone()}catch{return}m9(t,()=>{Es("fetch-body-resolved",{endTimestamp:sr()*1e3,response:e})})}function gh(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Q_(e){return typeof e=="string"?e:e?gh(e,"url")?e.url:e.toString?e.toString():"":""}function g9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Q_(n),method:gh(r,"method")?String(r.method).toUpperCase():eE(n)&&gh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Q_(t),method:gh(t,"method")?String(t.method).toUpperCase():"GET"}}function v9(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(eE(t))return new Headers(t.headers)}catch{}}function y9(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function b9(){return"npm"}function S9(){return!y9()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function B0(){return typeof window<"u"&&(!S9()||w9())}function w9(){return Yt.process?.type==="renderer"}const an=Yt;let U0=0;function cD(){return U0>0}function E9(){U0++,setTimeout(()=>{U0--})}function Lc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(nE(e))return e}catch{return e}const r=function(...i){try{const a=i.map(s=>Lc(s,t));return e.apply(this,a)}catch(a){throw E9(),Ov(s=>{s.addEventProcessor(o=>(t.mechanism&&(R0(o,void 0),Ac(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Gs(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}dN(r,e),Wi(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function vE(){const e=pd(),{referrer:t}=an.document||{},{userAgent:n}=an.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function yE(e,t){const n=bE(e,t),r={type:T9(t),value:I9(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function x9(e,t,n,r){const a=jt()?.getOptions().normalizeDepth,s=N9(t),o={__serialized__:ON(t,a)};if(s)return{exception:{values:[yE(e,s)]},extra:o};const l={exception:{values:[{type:Av(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:A9(t,{isUnhandledRejection:r})}]},extra:o};if(n){const u=bE(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function pb(e,t){return{exception:{values:[yE(e,t)]}}}function bE(e,t){const n=t.stacktrace||t.stack||"",r=k9(t),i=_9(t);try{return e(n,r,i)}catch{}return[]}const C9=/Minified React error #\d+;/i;function k9(e){return e&&C9.test(e.message)?1:0}function _9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function dD(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function T9(e){const t=e?.name;return!t&&dD(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function I9(e){const t=e?.message;return dD(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function P9(e,t,n,r){const i=n?.syntheticException||void 0,a=SE(e,t,i,r);return Ac(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),Dv(a)}function R9(e,t,n="info",r,i){const a=r?.syntheticException||void 0,s=j0(e,t,a,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Dv(s)}function SE(e,t,n,r,i){let a;if(lN(t)&&t.error)return pb(e,t.error);if(u_(t)||Yj(t)){const s=t;if("stack"in t)a=pb(e,t);else{const o=s.name||(u_(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=j0(e,l,n,r),R0(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return Qw(t)?pb(e,t):zf(t)||Av(t)?(a=x9(e,t,n,i),Ac(a,{synthetic:!0}),a):(a=j0(e,t,n,r),R0(a,`${t}`),Ac(a,{synthetic:!0}),a)}function j0(e,t,n,r){const i={};if(r&&n){const a=bE(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),Ac(i,{synthetic:!0})}if(Zw(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function A9(e,{isUnhandledRejection:t}){const n=tz(e),r=t?"promise rejection":"exception";return lN(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Av(e)?`Event \`${O9(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function O9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function N9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class D9 extends g7{constructor(t){const n=L9(t),r=an.SENTRY_SDK_SOURCE||b9();nD(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:a,enableLogs:s,_experiments:o,enableMetrics:l}=this._options,u=l??o?.enableMetrics??!0;an.document&&(a||s||u)&&an.document.addEventListener("visibilitychange",()=>{an.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),s&&HN(this),u&&GN(this))}),i&&this.on("beforeSendSession",P7)}eventFromException(t,n){return P9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return R9(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function L9(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:an.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const lu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,It=Yt,F9=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",zp=(e,t,n,r)=>{let i,a;return s=>{t.value>=0&&(s||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=F9(t.value,n),e(t)))}},Hp=(e=!0)=>{const t=It.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},vd=()=>Hp()?.activationStart??0;function ql(e,t,n){It.document&&It.addEventListener(e,t,n)}function wE(e,t,n){It.document&&It.removeEventListener(e,t,n)}let vc=-1;const fD=new Set,M9=()=>It.document?.visibilityState==="hidden"&&!It.document?.prerendering?0:1/0,vh=e=>{if($9(e)&&vc>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of fD)t();isFinite(vc)||(vc=e.type==="visibilitychange"?e.timeStamp:0,wE("prerenderingchange",vh,!0))}},Wp=()=>{if(It.document&&vc<0){const e=vd();vc=(It.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??M9(),ql("visibilitychange",vh,!0),ql("pagehide",vh,!0),ql("prerenderingchange",vh,!0)}return{get firstHiddenTime(){return vc},onHidden(e){fD.add(e)}}};function $9(e){return e.type==="pagehide"||It.document?.visibilityState==="hidden"}const V9=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Gp=(e,t=-1)=>{const n=Hp();let r="navigate";return n&&(It.document?.prerendering||vd()>0?r="prerender":It.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:V9(),navigationType:r}},mb=new WeakMap;function EE(e,t){return mb.get(e)||mb.set(e,new t),mb.get(e)}class ug{constructor(){ug.prototype.__init.call(this),ug.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const yd=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},xE=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Lv=e=>{It.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},B9=[1800,3e3],U9=(e,t={})=>{Lv(()=>{const n=Wp(),r=Gp("FCP");let i;const s=yd("paint",o=>{for(const l of o)l.name==="first-contentful-paint"&&(s.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-vd(),0),r.entries.push(l),i(!0)))});s&&(i=zp(e,r,B9,t.reportAllChanges))})},j9=[.1,.25],z9=(e,t={})=>{U9(xE(()=>{const n=Gp("CLS",0);let r;const i=Wp(),a=EE(t,ug),s=l=>{for(const u of l)a._processEntry(u);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},o=yd("layout-shift",s);o&&(r=zp(e,n,j9,t.reportAllChanges),i.onHidden(()=>{s(o.takeRecords()),r(!0)}),It?.setTimeout?.(r))}))};let pD=0,hb=1/0,Rm=0;const H9=e=>{e.forEach(t=>{t.interactionId&&(hb=Math.min(hb,t.interactionId),Rm=Math.max(Rm,t.interactionId),pD=Rm?(Rm-hb)/7+1:0)})};let z0;const mD=()=>z0?pD:performance.interactionCount||0,W9=()=>{"interactionCount"in performance||z0||(z0=yd("event",H9,{type:"event",buffered:!0,durationThreshold:0}))},gb=10;let hD=0;const G9=()=>mD()-hD;class cg{constructor(){cg.prototype.__init.call(this),cg.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){hD=mD(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(G9()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<gb||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,a)=>a._latency-i._latency),this._longestInteractionList.length>gb){const i=this._longestInteractionList.splice(gb);for(const a of i)this._longestInteractionMap.delete(a.id)}this._onAfterProcessingINPCandidate?.(r)}}}const gD=e=>{const t=n=>{(n.type==="pagehide"||It.document?.visibilityState==="hidden")&&e(n)};ql("visibilitychange",t,!0),ql("pagehide",t,!0)},vD=e=>{const t=It.requestIdleCallback||It.setTimeout;It.document?.visibilityState==="hidden"?e():(e=xE(e),ql("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),wE("visibilitychange",e,{capture:!0})}),gD(e))},q9=[200,500],K9=40,Y9=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Wp();Lv(()=>{W9();const r=Gp("INP");let i;const a=EE(t,cg),s=l=>{vD(()=>{for(const c of l)a._processEntry(c);const u=a._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,i())})},o=yd("event",s,{durationThreshold:t.durationThreshold??K9});i=zp(e,r,q9,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(o.takeRecords()),i(!0)}))})};class X9{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const J9=[2500,4e3],Q9=(e,t={})=>{Lv(()=>{const n=Wp(),r=Gp("LCP");let i;const a=EE(t,X9),s=l=>{t.reportAllChanges||(l=l.slice(-1));for(const u of l)a._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-vd(),0),r.entries=[u],i())},o=yd("largest-contentful-paint",s);if(o){i=zp(e,r,J9,t.reportAllChanges);const l=xE(()=>{s(o.takeRecords()),o.disconnect(),i(!0)}),u=c=>{c.isTrusted&&(vD(l),wE(c.type,u,{capture:!0}))};for(const c of["keydown","click","visibilitychange"])ql(c,u,{capture:!0})}})},Z9=[800,1800],H0=e=>{It.document?.prerendering?Lv(()=>H0(e)):It.document?.readyState!=="complete"?addEventListener("load",()=>H0(e),!0):setTimeout(e)},eW=(e,t={})=>{const n=Gp("TTFB"),r=zp(e,n,Z9,t.reportAllChanges);H0(()=>{const i=Hp();i&&(n.value=Math.max(i.responseStart-vd(),0),n.entries=[i],r(!0))})},vf={},dg={};let yD,bD,SD,wD;function CE(e,t=!1){return Fv("cls",e,nW,yD,t)}function kE(e,t=!1){return Fv("lcp",e,rW,bD,t)}function tW(e){return Fv("ttfb",e,iW,SD)}function ED(e){return Fv("inp",e,sW,wD)}function uu(e,t){return xD(e,t),dg[e]||(aW(e),dg[e]=!0),CD(e,t)}function qp(e,t){const n=vf[e];if(n?.length)for(const r of n)try{r(t)}catch(i){lu&&ze.error(`Error while triggering instrumentation handler.
|
|
26
|
-
Type: ${e}
|
|
27
|
-
Name: ${ao(r)}
|
|
28
|
-
Error:`,i)}}function nW(){return z9(e=>{qp("cls",{metric:e}),yD=e},{reportAllChanges:!0})}function rW(){return Q9(e=>{qp("lcp",{metric:e}),bD=e},{reportAllChanges:!0})}function iW(){return eW(e=>{qp("ttfb",{metric:e}),SD=e})}function sW(){return Y9(e=>{qp("inp",{metric:e}),wD=e})}function Fv(e,t,n,r,i=!1){xD(e,t);let a;return dg[e]||(a=n(),dg[e]=!0),r&&t({metric:r}),CD(e,t,i?a:void 0)}function aW(e){const t={};e==="event"&&(t.durationThreshold=0),yd(e,n=>{qp(e,{entries:n})},t)}function xD(e,t){vf[e]=vf[e]||[],vf[e].push(t)}function CD(e,t,n){return()=>{n&&n();const r=vf[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function oW(e){return"duration"in e}function vb(e){return typeof e=="number"&&isFinite(e)}function Xo(e,t,n,{...r}){const i=Qt(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),cE(e,()=>{const a=Yo({startTime:t,...r});return a&&a.end(n),a})}function _E(e){const t=jt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:a}=e,{release:s,environment:o,sendDefaultPii:l}=t.getOptions(),c=t.getIntegrationByName("Replay")?.getReplayId(),d=gn(),p=d.getUser(),h=p!==void 0?p.email||p.id||p.ip_address:void 0;let g;try{g=d.getScopeData().contexts.profile.profile_id}catch{}const v={release:s,environment:o,user:h||void 0,profile_id:g||void 0,replay_id:c||void 0,transaction:r,"user_agent.original":It.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i};return Yo({name:n,attributes:v,startTime:a,experimental:{standalone:!0}})}function Kp(){return It.addEventListener&&It.performance}function Zn(e){return e/1e3}function lW(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function kD(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function _D(e,t){let n,r=!1;function i(o){!r&&n&&t(o,n),r=!0}gD(()=>{i("pagehide")});const a=e.on("beforeStartNavigationSpan",(o,l)=>{l?.isRedirect||(i("navigation"),a(),s())}),s=e.on("afterStartPageLoadSpan",o=>{n=o.spanContext().spanId,s()})}function uW(e){let t=0,n;if(!kD("layout-shift"))return;const r=CE(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(t=i.value,n=a)},!0);_D(e,(i,a)=>{cW(t,n,a,i),r()})}function cW(e,t,n,r){lu&&ze.log(`Sending CLS span (${e})`);const i=t?Zn((Xi()||0)+t.startTime):sr(),a=gn().getScopeData().transactionName,s=t?Hi(t.sources[0]?.node):"Layout shift",o={[Un]:"auto.http.browser.cls",[uo]:"ui.webvital.cls",[hd]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,c)=>{o[`cls.source.${c+1}`]=Hi(u.node)});const l=_E({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("cls",{[Up]:"",[jp]:e}),l.end(i))}function dW(e){let t=0,n;if(!kD("largest-contentful-paint"))return;const r=kE(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(t=i.value,n=a)},!0);_D(e,(i,a)=>{fW(t,n,a,i),r()})}function fW(e,t,n,r){lu&&ze.log(`Sending LCP span (${e})`);const i=Zn((Xi()||0)+(t?.startTime||0)),a=gn().getScopeData().transactionName,s=t?Hi(t.element):"Largest contentful paint",o={[Un]:"auto.http.browser.lcp",[uo]:"ui.webvital.lcp",[hd]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(o["lcp.element"]=Hi(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),t.loadTime!=null&&(o["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(o["lcp.renderTime"]=t.renderTime),t.size!=null&&(o["lcp.size"]=t.size));const l=_E({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[Up]:"millisecond",[jp]:e}),l.end(i))}function ps(e){return e&&((Xi()||performance.timeOrigin)+e)/1e3}function TD(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=lW(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Xi()||Kp()?.timeOrigin?pW({...t,"http.request.redirect_start":ps(e.redirectStart),"http.request.redirect_end":ps(e.redirectEnd),"http.request.worker_start":ps(e.workerStart),"http.request.fetch_start":ps(e.fetchStart),"http.request.domain_lookup_start":ps(e.domainLookupStart),"http.request.domain_lookup_end":ps(e.domainLookupEnd),"http.request.connect_start":ps(e.connectStart),"http.request.secure_connection_start":ps(e.secureConnectionStart),"http.request.connection_end":ps(e.connectEnd),"http.request.request_start":ps(e.requestStart),"http.request.response_start":ps(e.responseStart),"http.request.response_end":ps(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function pW(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const mW=2147483647;let Z_=0,$s={},Pi,fg;function hW({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Kp();if(r&&Xi()){r.mark&&It.performance.mark("sentry-tracing-init");const i=t?dW(n):SW(),a=wW(),s=e?uW(n):bW();return()=>{i?.(),a(),s?.()}}return()=>{}}function gW(){uu("longtask",({entries:e})=>{const t=$r();if(!t)return;const{op:n,start_timestamp:r}=Qt(t);for(const i of e){const a=Zn(Xi()+i.startTime),s=Zn(i.duration);n==="navigation"&&r&&a<r||Xo(t,a,a+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Un]:"auto.ui.browser.metrics"}})}})}function vW(){new PerformanceObserver(t=>{const n=$r();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=Zn(Xi()+r.startTime),{start_timestamp:a,op:s}=Qt(n);if(s==="navigation"&&a&&i<a)continue;const o=Zn(r.duration),l={[Un]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:c,invokerType:d,sourceURL:p,sourceFunctionName:h,sourceCharPosition:g}=u;l["browser.script.invoker"]=c,l["browser.script.invoker_type"]=d,p&&(l["code.filepath"]=p),h&&(l["code.function"]=h),g!==-1&&(l["browser.script.source_char_position"]=g),Xo(n,i,i+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function yW(){uu("event",({entries:e})=>{const t=$r();if(t){for(const n of e)if(n.name==="click"){const r=Zn(Xi()+n.startTime),i=Zn(n.duration),a={name:Hi(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Un]:"auto.ui.browser.metrics"}},s=cN(n.target);s&&(a.attributes["ui.component_name"]=s),Xo(t,r,r+i,a)}}})}function bW(){return CE(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&($s.cls={value:e.value,unit:""},fg=t)},!0)}function SW(){return kE(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&($s.lcp={value:e.value,unit:"millisecond"},Pi=t)},!0)}function wW(){return tW(({metric:e})=>{e.entries[e.entries.length-1]&&($s.ttfb={value:e.value,unit:"millisecond"})})}function EW(e,t){const n=Kp(),r=Xi();if(!n?.getEntries||!r)return;const i=Zn(r),a=n.getEntries(),{op:s,start_timestamp:o}=Qt(e);a.slice(Z_).forEach(l=>{const u=Zn(l.startTime),c=Zn(Math.max(0,l.duration));if(!(s==="navigation"&&o&&i+u<o))switch(l.entryType){case"navigation":{_W(e,l,i);break}case"mark":case"paint":case"measure":{CW(e,l,u,c,i,t.ignorePerformanceApiSpans);const d=Wp(),p=l.startTime<d.firstHiddenTime;l.name==="first-paint"&&p&&($s.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&p&&($s.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{PW(e,l,l.name,u,c,i,t.ignoreResourceSpans);break}}}),Z_=Math.max(a.length-1,0),RW(e),s==="pageload"&&(NW($s),t.recordClsOnPageloadSpan||delete $s.cls,t.recordLcpOnPageloadSpan||delete $s.lcp,Object.entries($s).forEach(([l,u])=>{pH(l,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",vd()),AW(e,t)),Pi=void 0,fg=void 0,$s={}}function xW(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function CW(e,t,n,r,i,a){if(xW(t)||["mark","measure"].includes(t.entryType)&&Ka(t.name,a))return;const s=Hp(!1),o=Zn(s?s.requestStart:0),l=i+Math.max(n,o),u=i+n,c=u+r,d={[Un]:"auto.resource.browser.metrics"};l!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=l),kW(d,t),l<=c&&Xo(e,l,c,{name:t.name,op:t.entryType,attributes:d})}function kW(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Rc(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Rc(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function _W(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Am(e,t,r,n)}),Am(e,t,"secureConnection",n,"TLS/SSL"),Am(e,t,"fetch",n,"cache"),Am(e,t,"domainLookup",n,"DNS"),IW(e,t,n)}function Am(e,t,n,r,i=n){const a=TW(n),s=t[a],o=t[`${n}Start`];!o||!s||Xo(e,r+Zn(o),r+Zn(s),{op:`browser.${i}`,name:t.name,attributes:{[Un]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function TW(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function IW(e,t,n){const r=n+Zn(t.requestStart),i=n+Zn(t.responseEnd),a=n+Zn(t.responseStart);t.responseEnd&&(Xo(e,r,i,{op:"browser.request",name:t.name,attributes:{[Un]:"auto.ui.browser.metrics"}}),Xo(e,a,i,{op:"browser.response",name:t.name,attributes:{[Un]:"auto.ui.browser.metrics"}}))}function PW(e,t,n,r,i,a,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(o))return;const l={[Un]:"auto.resource.browser.metrics"},u=Gl(n);u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=n.includes(It.location.origin),OW(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const c={...l,...TD(t)},d=a+r,p=d+i;Xo(e,d,p,{name:n.replace(It.location.origin,""),op:o,attributes:c})}function RW(e){const t=It.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),vb(n.rtt)&&($s["connection.rtt"]={value:n.rtt,unit:"millisecond"})),vb(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),vb(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function AW(e,t){Pi&&t.recordLcpOnPageloadSpan&&(Pi.element&&e.setAttribute("lcp.element",Hi(Pi.element)),Pi.id&&e.setAttribute("lcp.id",Pi.id),Pi.url&&e.setAttribute("lcp.url",Pi.url.trim().slice(0,200)),Pi.loadTime!=null&&e.setAttribute("lcp.loadTime",Pi.loadTime),Pi.renderTime!=null&&e.setAttribute("lcp.renderTime",Pi.renderTime),e.setAttribute("lcp.size",Pi.size)),fg?.sources&&t.recordClsOnPageloadSpan&&fg.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Hi(n.node)))}function OW(e,t,n){n.forEach(([r,i])=>{const a=e[r];a!=null&&(typeof a=="number"&&a<mW||typeof a=="string")&&(t[i]=a)})}function NW(e){const t=Hp(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function DW(){return Kp()&&Xi()?uu("element",LW):()=>{}}const LW=({entries:e})=>{const t=$r(),n=t?Dr(t):void 0,r=n?Qt(n).description:gn().getScopeData().transactionName;e.forEach(i=>{const a=i;if(!a.identifier)return;const s=a.name,o=a.renderTime,l=a.loadTime,[u,c]=l?[Zn(l),"load-time"]:o?[Zn(o),"render-time"]:[sr(),"entry-emission"],d=s==="image-paint"?Zn(Math.max(0,(o??0)-(l??0))):0,p={[Un]:"auto.ui.browser.elementtiming",[uo]:"ui.elementtiming",[Mi]:"component","sentry.span_start_time_source":c,"sentry.transaction_name":r,"element.id":a.id,"element.type":a.element?.tagName?.toLowerCase()||"unknown","element.size":a.naturalWidth&&a.naturalHeight?`${a.naturalWidth}x${a.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":l,"element.url":a.url||void 0,"element.identifier":a.identifier,"element.paint_type":s};bH({name:`element[${a.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},h=>{h.end(u+d)})})},FW=1e3;let eT,W0,G0;function ID(e){rl("dom",e),il("dom",MW)}function MW(){if(!It.document)return;const e=Es.bind(null,"dom"),t=tT(e,!0);It.document.addEventListener("click",t,!1),It.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=It[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Fi(i,"addEventListener",function(a){return function(s,o,l){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=u[s]=u[s]||{refCount:0};if(!c.handler){const d=tT(e);c.handler=d,a.call(this,s,d,l)}c.refCount++}catch{}return a.call(this,s,o,l)}}),Fi(i,"removeEventListener",function(a){return function(s,o,l){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},c=u[s];c&&(c.refCount--,c.refCount<=0&&(a.call(this,s,c.handler,l),c.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,s,o,l)}}))})}function $W(e){if(e.type!==W0)return!1;try{if(!e.target||e.target._sentryId!==G0)return!1}catch{}return!0}function VW(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function tT(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=BW(n);if(VW(n.type,r))return;Wi(n,"_sentryCaptured",!0),r&&!r._sentryId&&Wi(r,"_sentryId",os());const i=n.type==="keypress"?"input":n.type;$W(n)||(e({event:n,name:i,global:t}),W0=n.type,G0=r?r._sentryId:void 0),clearTimeout(eT),eT=It.setTimeout(()=>{G0=void 0,W0=void 0},FW)}}function BW(e){try{return e.target}catch{return null}}let Om;function Mv(e){const t="history";rl(t,e),il(t,UW)}function UW(){if(It.addEventListener("popstate",()=>{const t=It.location.href,n=Om;if(Om=t,n===t)return;Es("history",{from:n,to:t})}),!c9())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Om,a=jW(String(r));if(Om=a,i===a)return t.apply(this,n);Es("history",{from:i,to:a})}return t.apply(this,n)}}Fi(It.history,"pushState",e),Fi(It.history,"replaceState",e)}function jW(e){try{return new URL(e,It.location.origin).toString()}catch{return e}}const yh={};function PD(e){const t=yh[e];if(t)return t;let n=It[e];if(V0(n))return yh[e]=n.bind(It);const r=It.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const a=i.contentWindow;a?.[e]&&(n=a[e]),r.head.removeChild(i)}catch(i){lu&&ze.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(yh[e]=n.bind(It))}function zW(e){yh[e]=void 0}function Yp(...e){return PD("setTimeout")(...e)}const _l="__sentry_xhr_v3__";function RD(e){rl("xhr",e),il("xhr",HW)}function HW(){if(!It.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,a=sr()*1e3,s=qa(r[0])?r[0].toUpperCase():void 0,o=WW(r[1]);if(!s||!o)return t.apply(n,r);n[_l]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const u=n[_l];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const c={endTimestamp:sr()*1e3,startTimestamp:a,xhr:n,virtualError:i};Es("xhr",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,c,d){return l(),u.apply(c,d)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,c,d){const[p,h]=d,g=c[_l];return g&&qa(p)&&qa(h)&&(g.request_headers[p.toLowerCase()]=h),u.apply(c,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[_l];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const a={startTimestamp:sr()*1e3,xhr:n};return Es("xhr",a),t.apply(n,r)}})}function WW(e){if(qa(e))return e;try{return e.toString()}catch{}}const GW=Symbol.for("sentry__originalRequestBody");function AD(e){return new URLSearchParams(e).toString()}function OD(e,t=ze){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[AD(e)];if(!e)return[void 0]}catch(n){return lu&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return lu&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ND(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][GW];return n!==void 0?n:void 0}}function DD(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return lu&&ze.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
|
|
29
|
-
`).reduce((n,r)=>{const[i,a]=r.split(": ");return a&&(n[i.toLowerCase()]=a),n},{}):{}}const yb=[],bh=new Map,$u=new Map,qW=60;function KW(){if(Kp()&&Xi()){const t=YW();return()=>{t()}}return()=>{}}const q0={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function YW(){return ED(XW)}const XW=({metric:e})=>{if(e.value==null)return;const t=Zn(e.value);if(t>qW)return;const n=e.entries.find(g=>g.duration===e.value&&q0[g.name]);if(!n)return;const{interactionId:r}=n,i=q0[n.name],a=Zn(Xi()+n.startTime),s=$r(),o=s?Dr(s):void 0,l=r!=null?bh.get(r):void 0,u=l?.span||o,c=u?Qt(u).description:gn().getScopeData().transactionName,d=l?.elementName||Hi(n.target),p={[Un]:"auto.http.browser.inp",[uo]:`ui.interaction.${i}`,[hd]:n.duration},h=_E({name:d,transaction:c,attributes:p,startTime:a});h&&(h.addEvent("inp",{[Up]:"millisecond",[jp]:e.value}),h.end(a+t))};function JW(){const e=Object.keys(q0);B0()&&e.forEach(i=>{It.addEventListener(i,t,{capture:!0,passive:!0})});function t(i){const a=i.target;if(!a)return;const s=Hi(a),o=Math.round(i.timeStamp);if($u.set(o,s),$u.size>50){const l=$u.keys().next().value;l!==void 0&&$u.delete(l)}}function n(i){const a=Math.round(i.startTime);let s=$u.get(a);if(!s)for(let o=-5;o<=5;o++){const l=$u.get(a+o);if(l){s=l;break}}return s||"<unknown>"}const r=({entries:i})=>{const a=$r(),s=a&&Dr(a);i.forEach(o=>{if(!oW(o))return;const l=o.interactionId;if(l==null||bh.has(l))return;const u=o.target?Hi(o.target):n(o);if(yb.length>10){const c=yb.shift();bh.delete(c)}yb.push(l),bh.set(l,{span:s,elementName:u})})};uu("event",r),uu("first-input",r)}const QW=40;function ZW(e,t=PD("fetch")){let n=0,r=0;async function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const l=await t(e.url,o);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw zW("fetch"),l}finally{n-=s,r--}}return d7(e,i,mE(e.bufferSize||QW))}const Ts=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,eG=30,tG=50;function K0(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?au:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const nG=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rG=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iG=/\((\S*)(?::(\d+))(?::(\d+))\)/,sG=/at (.+?) ?\(data:(.+?),/,aG=e=>{const t=e.match(sG);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=nG.exec(e);if(n){const[,i,a,s]=n;return K0(i,au,+a,+s)}const r=rG.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const o=iG.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}const[a,s]=LD(r[1]||au,r[2]);return K0(s,a,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},oG=[eG,aG],lG=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,uG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cG=e=>{const t=lG.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=uG.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||au;return[i,r]=LD(i,r),K0(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},dG=[tG,cG],fG=[oG,dG],pG=rN(...fG),LD=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:au,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Nm=1024,mG="Breadcrumbs",hG=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:mG,setup(n){t.console&&Y7(bG(n)),t.dom&&ID(yG(n,t.dom)),t.xhr&&RD(SG(n)),t.fetch&&lD(wG(n)),t.history&&Mv(EG(n)),t.sentry&&n.on("beforeSendEvent",vG(n))}}}),gG=hG;function vG(e){return function(n){jt()===e&&fo({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:El(n)},{event:n})}}function yG(e,t){return function(r){if(jt()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Nm&&(Ts&&ze.warn(`\`dom.maxStringLength\` cannot exceed ${Nm}, but a value of ${o} was configured. Sentry will use ${Nm} instead.`),o=Nm),typeof s=="string"&&(s=[s]);try{const u=r.event,c=xG(u)?u.target:u;i=Hi(c,{keyAttrs:s,maxStringLength:o}),a=cN(c)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),fo(l,{event:r.event,name:r.name,global:r.global})}}function bG(e){return function(n){if(jt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:iD(n.level),message:f_(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${f_(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;fo(r,{input:n.args,level:n.level})}}function SG(e){return function(n){if(jt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[_l];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},p={category:"xhr",data:c,type:"http",level:oD(l)};e.emit("beforeOutgoingRequestBreadcrumb",p,d),fo(p,d)}}function wG(e){return function(n){if(jt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),fo(o,s)}else{const a=n.response,s={...n.fetchData,status_code:a?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,a?.status;const o={input:n.args,response:a,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:s,type:"http",level:oD(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,o),fo(l,o)}}}function EG(e){return function(n){if(jt()!==e)return;let r=n.from,i=n.to;const a=Gl(an.location.href);let s=r?Gl(r):void 0;const o=Gl(i);s?.path||(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),fo({category:"navigation",data:{from:r,to:i}})}}function xG(e){return!!e&&!!e.target}const CG=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],kG="BrowserApiErrors",_G=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:kG,setupOnce(){t.setTimeout&&Fi(an,"setTimeout",nT),t.setInterval&&Fi(an,"setInterval",nT),t.requestAnimationFrame&&Fi(an,"requestAnimationFrame",IG),t.XMLHttpRequest&&"XMLHttpRequest"in an&&Fi(XMLHttpRequest.prototype,"send",PG);const n=t.eventTarget;n&&(Array.isArray(n)?n:CG).forEach(i=>RG(i,t))}}}),TG=_G;function nT(e){return function(...t){const n=t[0];return t[0]=Lc(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ao(e)}`}}),e.apply(this,t)}}function IG(e){return function(t){return e.apply(this,[Lc(t,{mechanism:{data:{handler:ao(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function PG(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Fi(n,i,function(a){const s={mechanism:{data:{handler:ao(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},o=nE(a);return o&&(s.mechanism.data.handler=ao(o)),Lc(a,s)})}),e.apply(this,t)}}function RG(e,t){const r=an[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Fi(r,"addEventListener",function(i){return function(a,s,o){try{AG(s)&&(s.handleEvent=Lc(s.handleEvent,{mechanism:{data:{handler:ao(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&OG(this,a,s),i.apply(this,[a,Lc(s,{mechanism:{data:{handler:ao(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),Fi(r,"removeEventListener",function(i){return function(a,s,o){try{const l=s.__sentry_wrapped__;l&&i.call(this,a,l,o)}catch{}return i.call(this,a,s,o)}}))}function AG(e){return typeof e.handleEvent=="function"}function OG(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const NG=()=>({name:"BrowserSession",setupOnce(){if(typeof an.document>"u"){Ts&&ze.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}D_({ignoreDuration:!0}),L_(),Mv(({from:e,to:t})=>{e!==void 0&&e!==t&&(D_({ignoreDuration:!0}),L_())})}}),DG="GlobalHandlers",LG=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:DG,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(MG(n),rT("onerror")),t.onunhandledrejection&&($G(n),rT("onunhandledrejection"))}}}),FG=LG;function MG(e){sN(t=>{const{stackParser:n,attachStacktrace:r}=FD();if(jt()!==e||cD())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=UG(SE(n,l||i,void 0,r,!1),a,s,o);u.level="error",BN(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function $G(e){aN(t=>{const{stackParser:n,attachStacktrace:r}=FD();if(jt()!==e||cD())return;const i=VG(t),a=Rc(i)?BG(i):SE(n,i,void 0,r,!0);a.level="error",BN(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function VG(e){if(Rc(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function BG(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function UG(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=r,c=n,d=jG(t)??pd();return l.length===0&&l.push({colno:u,filename:d,function:au,in_app:!0,lineno:c}),e}function rT(e){Ts&&ze.log(`Global Handler attached: ${e}`)}function FD(){return jt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function jG(e){if(!(!qa(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e}}const zG=()=>({name:"HttpContext",preprocessEvent(e){if(!an.navigator&&!an.location&&!an.document)return;const t=vE(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),HG="cause",WG=5,GG="LinkedErrors",qG=((e={})=>{const t=e.limit||WG,n=e.key||HG;return{name:GG,preprocessEvent(r,i,a){const s=a.getOptions();K7(yE,s.stackParser,n,t,r,i)}}}),KG=qG;function YG(){return XG()?(Ts&&yo(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function XG(){if(typeof an.window>"u")return!1;const e=an;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=pd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(an===an.top&&r.some(a=>n.startsWith(`${a}://`)))}function MD(e){return[B7(),F7(),TG(),gG(),FG(),KG(),Z7(),zG(),NG()]}function JG(e={}){const t=!e.skipBrowserExtensionCheck&&YG();let n=e.defaultIntegrations==null?MD():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:Wj(e.stackParser||pG),integrations:e7({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ZW};return w7(D9,r)}const In=Yt,TE="sentryReplaySession",QG="replay_event",IE="Unable to send Replay",ZG=3e5,eq=9e5,tq=5e3,nq=5500,rq=6e4,iq=5e3,sq=3,iT=15e4,Dm=5e3,aq=3e3,oq=300,PE=2e7,lq=4999,uq=5e4,sT=36e5;var cq=Object.defineProperty,dq=(e,t,n)=>t in e?cq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aT=(e,t,n)=>dq(e,typeof t!="symbol"?t+"":t,n),ur=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ur||{});function fq(e){return e.nodeType===e.ELEMENT_NODE}function yf(e){return e?.host?.shadowRoot===e}function bf(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function pq(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function mq(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function pg(e){try{const t=e.rules||e.cssRules;return t?pq(Array.from(t,$D).join("")):null}catch{return null}}function hq(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}function $D(e){let t;if(vq(e))try{t=pg(e.styleSheet)||mq(e)}catch{}else if(yq(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=hq(e)),r&&(n=gq(n)),r||i)return n}return t||e.cssText}function gq(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function vq(e){return"styleSheet"in e}function yq(e){return"selectorText"in e}class VD{constructor(){aT(this,"idNodeMap",new Map),aT(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function bq(){return new VD}function $v({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function qf({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Fc(e){return e.toLowerCase()}function Y0(e){return e.toUpperCase()}const oT="__rrweb_original__";function Sq(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,s=oT in a?a[oT]:a;if(new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function RE(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Fc(t):null}function mg(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function BD(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const lT={};function UD(e){const t=lT[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return lT[e]=r.bind(window)}function X0(...e){return UD("setTimeout")(...e)}function jD(...e){return UD("clearTimeout")(...e)}function zD(e){try{return e.contentDocument}catch{}}let wq=1;const Eq=new RegExp("[^a-z0-9-_:]"),Kf=-2;function AE(){return wq++}function xq(e){if(e instanceof HTMLFormElement)return"form";const t=Fc(e.tagName);return Eq.test(t)?"div":t}function Cq(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Vu,uT;const kq=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,_q=/^(?:[a-z+]+:)?\/\//i,Tq=/^www\..*/i,Iq=/^(data:)([^,]*),(.*)/i;function Pq(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let i of n){if(i=i.trim(),!i)continue;const a=i.indexOf(":");if(a===-1){r.push(i);continue}const s=i.slice(0,a).trim();t.has(s)||r.push(i)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function hg(e,t){return(e||"").replace(kq,(n,r,i,a,s,o)=>{const l=i||s||o,u=r||a||"";if(!l)return n;if(_q.test(l)||Tq.test(l))return`url(${u}${l}${u})`;if(Iq.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Cq(t)+l}${u})`;const c=t.split("/"),d=l.split("/");c.pop();for(const p of d)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}const Rq=/^[^ \t\n\r\u000c]+/,Aq=/^[, \t\n\r\u000c]+/;function Oq(e,t){if(t.trim()==="")return t;let n=0;function r(a){let s;const o=a.exec(t.substring(n));return o?(s=o[0],n+=s.length,s):""}const i=[];for(;r(Aq),!(n>=t.length);){let a=r(Rq);if(a.slice(-1)===",")a=ic(e,a.substring(0,a.length-1)),i.push(a);else{let s="";a=ic(e,a);let o=!1;for(;;){const l=t.charAt(n);if(l===""){i.push((a+s).trim());break}else if(o)l===")"&&(o=!1);else if(l===","){n+=1,i.push((a+s).trim());break}else l==="("&&(o=!0);s+=l,n+=1}}}return i.join(", ")}const cT=new WeakMap;function ic(e,t){return!t||t.trim()===""?t:Vv(e,t)}function Nq(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Vv(e,t){let n=cT.get(e);if(n||(n=e.createElement("a"),cT.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function HD(e,t,n,r,i,a,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return ic(e,r);if(n==="xlink:href"&&r[0]!=="#")return ic(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return ic(e,r);if(n==="srcset")return Oq(e,r);if(n==="style"){let o=hg(r,Vv(e));return s&&s.size>0&&(o=Pq(o,s)),o}else if(t==="object"&&n==="data")return ic(e,r);return typeof a=="function"?a(n,r,i):r}function WD(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Dq(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function Lq(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Tl(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Tl(e.parentNode,t,n,r+1)}function sc(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Lq(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Mc(e,t,n,r,i,a){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let o=-1,l=-1;if(a){if(l=Tl(s,sc(r,i)),l<0)return!0;o=Tl(s,sc(t,n),l>=0?l:1/0)}else{if(o=Tl(s,sc(t,n)),o<0)return!1;l=Tl(s,sc(r,i),o>=0?o:1/0)}return o>=0?l>=0?o<=l:!0:l>=0?!1:!!a}catch{}return!!a}function Fq(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const o=X0(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{jD(o),i=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return X0(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Mq(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=X0(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{jD(a),r=!0,t()})}function $q(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:g={},maskTextFn:v,maskInputFn:y,dataURLOptions:b={},inlineImages:S,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:P=!1,ignoreCSSAttributes:k}=t,R=Vq(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ur.Document,childNodes:[],compatMode:e.compatMode}:{type:ur.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ur.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:R};case e.ELEMENT_NODE:return Uq(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:g,maskInputFn:y,dataURLOptions:b,inlineImages:S,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:P,rootId:R,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:k});case e.TEXT_NODE:return Bq(e,{doc:n,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:v,maskInputOptions:g,maskInputFn:y,rootId:R});case e.CDATA_SECTION_NODE:return{type:ur.CDATA,textContent:"",rootId:R};case e.COMMENT_NODE:return{type:ur.Comment,textContent:e.textContent||"",rootId:R};default:return!1}}function Vq(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Bq(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h=d==="STYLE"?!0:void 0,g=d==="SCRIPT"?!0:void 0,v=d==="TEXTAREA"?!0:void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=pg(e.parentNode.sheet))}catch(b){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${b}`,e)}p=hg(p,Vv(t.doc))}g&&(p="SCRIPT_PLACEHOLDER");const y=Mc(e,r,a,i,s,n);if(!h&&!g&&!v&&p&&y&&(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),v&&p&&(l.textarea||y)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),d==="OPTION"&&p){const b=$v({type:null,tagName:d,maskInputOptions:l});p=qf({isMasked:Mc(e,r,a,i,s,b),element:e,value:p,maskInputFn:u})}return{type:ur.Text,textContent:p||"",isStyle:h,rootId:c}}function Uq(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:s,maskInputOptions:o={},maskAttributeFn:l,maskInputFn:u,dataURLOptions:c={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:g=!1,rootId:v,maskTextClass:y,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:w,ignoreCSSAttributes:C}=t,P=Dq(e,r,i,a),k=xq(e);let R={};const T=e.attributes.length;for(let x=0;x<T;x++){const A=e.attributes[x];A.name&&!WD(k,A.name,A.value)&&(R[A.name]=HD(n,k,Fc(A.name),A.value,e,l,C))}if(k==="link"&&s){const x=Array.from(n.styleSheets).find(D=>D.href===e.href);let A=null;x&&(A=pg(x)),A&&(R.rel=null,R.href=null,R.crossorigin=null,R._cssText=hg(A,x.href))}if(k==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const x=pg(e.sheet);x&&(R._cssText=hg(x,Vv(n)))}if(k==="input"||k==="textarea"||k==="select"||k==="option"){const x=e,A=RE(x),D=mg(x,Y0(k),A),B=x.checked;if(A!=="submit"&&A!=="button"&&D){const V=Mc(x,y,S,b,w,$v({type:A,tagName:Y0(k),maskInputOptions:o}));R.value=qf({isMasked:V,element:x,value:D,maskInputFn:u})}B&&(R.checked=B)}if(k==="option"&&(e.selected&&!o.select?R.selected=!0:delete R.selected),k==="canvas"&&p){if(e.__context==="2d")Sq(e)||(R.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const x=e.toDataURL(c.type,c.quality),A=n.createElement("canvas");A.width=e.width,A.height=e.height;const D=A.toDataURL(c.type,c.quality);x!==D&&(R.rr_dataURL=x)}}if(k==="img"&&d){Vu||(Vu=n.createElement("canvas"),uT=Vu.getContext("2d"));const x=e,A=x.currentSrc||x.getAttribute("src")||"<unknown-src>",D=x.crossOrigin,B=()=>{x.removeEventListener("load",B);try{Vu.width=x.naturalWidth,Vu.height=x.naturalHeight,uT.drawImage(x,0,0),R.rr_dataURL=Vu.toDataURL(c.type,c.quality)}catch(V){if(x.crossOrigin!=="anonymous"){x.crossOrigin="anonymous",x.complete&&x.naturalWidth!==0?B():x.addEventListener("load",B);return}else console.warn(`Cannot inline img src=${A}! Error: ${V}`)}x.crossOrigin==="anonymous"&&(D?R.crossOrigin=D:x.removeAttribute("crossorigin"))};x.complete&&x.naturalWidth!==0?B():x.addEventListener("load",B)}if((k==="audio"||k==="video")&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),g||(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),P){const{width:x,height:A}=e.getBoundingClientRect();R={class:R.class,rr_width:`${x}px`,rr_height:`${A}px`}}k==="iframe"&&!h(R.src)&&(!P&&!zD(e)&&(R.rr_src=R.src),delete R.src);let I;try{customElements.get(k)&&(I=!0)}catch{}return{type:ur.Element,tagName:k,attributes:R,childNodes:[],isSVG:Nq(e)||void 0,needBlock:P,rootId:v,isCustom:I}}function kn(e){return e==null?"":e.toLowerCase()}function jq(e,t){if(t.comment&&e.type===ur.Comment)return!0;if(e.type===ur.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&BD(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(kn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||kn(e.attributes.name)==="application-name"||kn(e.attributes.rel)==="icon"||kn(e.attributes.rel)==="apple-touch-icon"||kn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&kn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(kn(e.attributes.property).match(/^(og|twitter|fb):/)||kn(e.attributes.name).match(/^(og|twitter):/)||kn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(kn(e.attributes.name)==="robots"||kn(e.attributes.name)==="googlebot"||kn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(kn(e.attributes.name)==="author"||kn(e.attributes.name)==="generator"||kn(e.attributes.name)==="framework"||kn(e.attributes.name)==="publisher"||kn(e.attributes.name)==="progid"||kn(e.attributes.property).match(/^article:/)||kn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(kn(e.attributes.name)==="google-site-verification"||kn(e.attributes.name)==="yandex-verification"||kn(e.attributes.name)==="csrf-token"||kn(e.attributes.name)==="p:domain_verify"||kn(e.attributes.name)==="verify-v1"||kn(e.attributes.name)==="verification"||kn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ac(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:g={},maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w={},inlineImages:C=!1,recordCanvas:P=!1,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:T=5e3,onBlockedImageLoad:I,onStylesheetLoad:x,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:B=!1,ignoreCSSAttributes:V}=t;let{preserveWhiteSpace:$=!0}=t;const N=$q(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,dataURLOptions:w,inlineImages:C,recordCanvas:P,keepIframeSrcFn:D,newlyAddedElement:B,ignoreCSSAttributes:V});if(!N)return console.warn(e,"not serialized"),null;let O;r.hasNode(e)?O=r.getId(e):jq(N,S)||!$&&N.type===ur.Text&&!N.isStyle&&!N.textContent.replace(/^\s+|\s+$/gm,"").length?O=Kf:O=AE();const M=Object.assign(N,{id:O});if(r.add(e,M),O===Kf)return null;k&&k(e);let Y=!p;if(M.type===ur.Element){Y=Y&&!M.needBlock;const X=e.shadowRoot;X&&bf(X)&&(M.isShadowHost=!0)}if((M.type===ur.Document||M.type===ur.Element)&&Y){S.headWhitespace&&M.type===ur.Element&&M.tagName==="head"&&($=!1);const X={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:C,recordCanvas:P,preserveWhiteSpace:$,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:T,onBlockedImageLoad:I,onStylesheetLoad:x,stylesheetLoadTimeout:A,keepIframeSrcFn:D,ignoreCSSAttributes:V},ie=e.childNodes?Array.from(e.childNodes):[];for(const Z of ie){const G=ac(Z,X);G&&M.childNodes.push(G)}if(fq(e)&&e.shadowRoot)for(const Z of Array.from(e.shadowRoot.childNodes)){const G=ac(Z,X);G&&(bf(e.shadowRoot)&&(G.isShadow=!0),M.childNodes.push(G))}}if(e.parentNode&&yf(e.parentNode)&&bf(e.parentNode)&&(M.isShadow=!0),M.type===ur.Element&&M.tagName==="iframe"&&!M.needBlock&&Fq(e,()=>{const X=zD(e);if(X&&R){const ie=ac(X,{doc:X,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:C,recordCanvas:P,preserveWhiteSpace:$,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:A,keepIframeSrcFn:D,ignoreCSSAttributes:V});ie&&R(e,ie)}},T),M.type===ur.Element&&M.tagName==="img"&&!e.complete&&M.needBlock){const X=e,ie=()=>{if(X.isConnected&&!X.complete&&I)try{const Z=X.getBoundingClientRect();Z.width>0&&Z.height>0&&I(X,M,Z)}catch{}X.removeEventListener("load",ie)};X.isConnected&&X.addEventListener("load",ie)}return M.type===ur.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&BD(M.attributes.href)==="css")&&Mq(e,()=>{if(x){const X=ac(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:C,recordCanvas:P,preserveWhiteSpace:$,onSerialize:k,onIframeLoad:R,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:A,keepIframeSrcFn:D,ignoreCSSAttributes:V});X&&x(e,X)}},A),M.type===ur.Element&&delete M.needBlock,M}function zq(e,t){const{mirror:n=new VD,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:g=!1,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOM:S=!1,dataURLOptions:w,preserveWhiteSpace:C,onSerialize:P,onIframeLoad:k,iframeLoadTimeout:R,onBlockedImageLoad:T,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:A=()=>!1,ignoreCSSAttributes:D=new Set([])}=t||{};return ac(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:o,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:g===!1?{}:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:w,inlineImages:p,recordCanvas:h,preserveWhiteSpace:C,onSerialize:P,onIframeLoad:k,iframeLoadTimeout:R,onBlockedImageLoad:T,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:A,newlyAddedElement:!1,ignoreCSSAttributes:D})}function gi(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Qu=`Please stop import mirror directly. Instead of that,\r
|
|
30
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
31
|
-
or you can use record.mirror to access the mirror instance during recording.`;let dT={map:{},getId(){return console.error(Qu),-1},getNode(){return console.error(Qu),null},removeNodeFromMap(){console.error(Qu)},has(){return console.error(Qu),!1},reset(){console.error(Qu)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(dT=new Proxy(dT,{get(e,t,n){return t==="map"&&console.error(Qu),Reflect.get(e,t,n)}}));function Yf(e,t,n={}){let r=null,i=0;return function(...a){const s=Date.now();!i&&n.leading===!1&&(i=s);const o=t-(s-i),l=this;o<=0||o>t?(r&&(Xq(r),r=null),i=s,e.apply(l,a)):!r&&n.trailing!==!1&&(r=Bv(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(l,a)},o))}}function GD(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){Bv(()=>{n.set.call(this,s)},0),a&&a.set&&a.set.call(this,s)}}),()=>GD(e,t,a||{},!0)}function OE(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let gg=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(gg=()=>new Date().getTime());function qD(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function KD(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function YD(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function XD(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ns(e,t,n,r,i){if(!e)return!1;const a=XD(e);if(!a)return!1;const s=sc(t,n);if(!i){const u=r&&a.matches(r);return s(a)&&!u}const o=Tl(a,s);let l=-1;return o<0?!1:(r&&(l=Tl(a,sc(null,r))),o>-1&&l<0?!0:o<l)}function Hq(e,t){return t.getId(e)!==-1}function bb(e,t){return t.getId(e)===Kf}function JD(e,t){if(yf(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?JD(e.parentNode,t):!0:!0}function J0(e){return!!e.changedTouches}function Wq(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function QD(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ZD(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Q0(e){return!!e?.shadowRoot}class Gq{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eL(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function qq(e){let t=e,n;for(;n=eL(t);)t=n;return t}function Kq(e){const t=e.ownerDocument;if(!t)return!1;const n=qq(e);return t.contains(n)}function tL(e){const t=e.ownerDocument;return t?t.contains(e)||Kq(e):!1}const fT={};function NE(e){const t=fT[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return fT[e]=r.bind(window)}function Yq(...e){return NE("requestAnimationFrame")(...e)}function Bv(...e){return NE("setTimeout")(...e)}function Xq(...e){return NE("clearTimeout")(...e)}var Lt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Lt||{}),xt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(xt||{}),ci=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ci||{}),Na=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Na||{}),Zu=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Zu||{});function DE(e){try{return e.contentDocument}catch{}}function Jq(e){try{return e.contentWindow}catch{}}function pT(e){return"__ln"in e}class Qq{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&pT(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&pT(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const mT=(e,t)=>`${e}@${t}`;class Zq{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new Qq,i=l=>{let u=l,c=Kf;for(;c===Kf;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},a=l=>{if(!l.parentNode||!tL(l))return;const u=yf(l.parentNode)?this.mirror.getId(eL(l)):this.mirror.getId(l.parentNode),c=i(l);if(u===-1||c===-1)return r.addNode(l);const d=ac(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{QD(p,this.mirror)&&!ns(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),ZD(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Q0(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{ns(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,h),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)},onBlockedImageLoad:(p,h,{width:g,height:v})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${g}px`,height:`${v}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:c,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)hT(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||a(l);for(const l of this.addedSet)!gT(this.droppedSet,l)&&!hT(this.removes,l,this.mirror)||gT(this.movedSet,l)?a(l):this.droppedSet.add(l);let s=null;for(;r.length;){let l=null;if(s){const u=this.mirror.getId(s.value.parentNode),c=i(s.value);u!==-1&&c!==-1&&(l=s)}if(!l){let u=r.tail;for(;u;){const c=u;if(u=u.previous,c){const d=this.mirror.getId(c.value.parentNode);if(i(c.value)===-1)continue;if(d!==-1){l=c;break}else{const h=c.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=h.parentNode.host;if(this.mirror.getId(g)!==-1){l=c;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}s=l.previous,r.removeNode(l.value),a(l.value)}const o={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:u}=l;if(typeof u.style=="string"){const c=JSON.stringify(l.styleDiff),d=JSON.stringify(l._unchangedStyles);c.length<u.style.length&&(c+d).split("var(").length===u.style.split("var(").length&&(u.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:u}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(!bb(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!ns(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Mc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,XD(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const s=RE(n),o=n.tagName;i=mg(n,o,s);const l=$v({maskInputOptions:this.maskInputOptions,tagName:o,type:s}),u=Mc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=qf({isMasked:u,element:n,value:i,maskInputFn:this.maskInputFn})}if(ns(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!DE(n))r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!WD(n.tagName,r)&&(a.attributes[r]=HD(this.doc,Fc(n.tagName),Fc(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const o of Array.from(n.style)){const l=n.style.getPropertyValue(o),u=n.style.getPropertyPriority(o);l!==s.style.getPropertyValue(o)||u!==s.style.getPropertyPriority(o)?u===""?a.styleDiff[o]=l:a.styleDiff[o]=[l,u]:a._unchangedStyles[o]=[l,u]}for(const o of Array.from(s.style))n.style.getPropertyValue(o)===""&&(a.styleDiff[o]=!1)}break}case"childList":{if(ns(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=yf(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ns(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||bb(n,this.mirror)||!Hq(n,this.mirror)||(this.addedSet.has(n)?(Z0(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||JD(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[mT(r,i)]?Z0(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:yf(t.target)&&bf(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(bb(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[mT(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ns(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),Q0(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Z0(e,t){e.delete(t),t.childNodes?.forEach(n=>Z0(e,n))}function hT(e,t,n){return e.length===0?!1:eK(e,t,n)}function eK(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(a=>a.id===i))return!0;r=r.parentNode}return!1}function gT(e,t){return e.size===0?!1:nL(e,t)}function nL(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:nL(e,n):!1}let Sf;function tK(e){Sf=e}function nK(){Sf=void 0}const nn=e=>Sf?(...n)=>{try{return e(...n)}catch(r){if(Sf&&Sf(r)===!0)return()=>{};throw r}}:e,oc=[];function Xp(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function rL(e,t){const n=new Zq;oc.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);const a=new r(nn(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function rK({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],o;const l=Yf(nn(d=>{const p=Date.now()-o;e(s.map(h=>(h.timeOffset-=p,h)),d),s=[],o=null}),a),u=nn(Yf(nn(d=>{const p=Xp(d),{clientX:h,clientY:g}=J0(d)?d.changedTouches[0]:d;o||(o=gg()),s.push({x:h,y:g,id:r.getId(p),timeOffset:gg()-o}),l(typeof DragEvent<"u"&&d instanceof DragEvent?xt.Drag:d instanceof MouseEvent?xt.MouseMove:xt.TouchMove)}),i,{trailing:!1})),c=[gi("mousemove",u,n),gi("touchmove",u,n),gi("drag",u,n)];return nn(()=>{c.forEach(d=>d())})}function iK({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const o=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[];let u=null;const c=d=>p=>{const h=Xp(p);if(ns(h,r,i,a,!0))return;let g=null,v=d;if("pointerType"in p){switch(p.pointerType){case"mouse":g=Na.Mouse;break;case"touch":g=Na.Touch;break;case"pen":g=Na.Pen;break}g===Na.Touch?ci[d]===ci.MouseDown?v="TouchStart":ci[d]===ci.MouseUp&&(v="TouchEnd"):Na.Pen}else J0(p)&&(g=Na.Touch);g!==null?(u=g,(v.startsWith("Touch")&&g===Na.Touch||v.startsWith("Mouse")&&g===Na.Mouse)&&(g=null)):ci[d]===ci.Click&&(g=u,u=null);const y=J0(p)?p.changedTouches[0]:p;if(!y)return;const b=n.getId(h),{clientX:S,clientY:w}=y;nn(e)({type:ci[v],id:b,x:S,y:w,...g!==null&&{pointerType:g}})};return Object.keys(ci).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&o[d]!==!1).forEach(d=>{let p=Fc(d);const h=c(d);if(window.PointerEvent)switch(ci[d]){case ci.MouseDown:case ci.MouseUp:p=p.replace("mouse","pointer");break;case ci.TouchStart:case ci.TouchEnd:return}l.push(gi(p,h,t))}),nn(()=>{l.forEach(d=>d())})}function iL({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){const o=nn(Yf(nn(l=>{const u=Xp(l);if(!u||ns(u,r,i,a,!0))return;const c=n.getId(u);if(u===t&&t.defaultView){const d=qD(t.defaultView);e({id:c,x:d.left,y:d.top})}else e({id:c,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return gi("scroll",o,t)}function sK({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=nn(Yf(nn(()=>{const a=KD(),s=YD();(n!==a||r!==s)&&(e({width:Number(s),height:Number(a)}),n=a,r=s)}),200));return gi("resize",i,t)}const aK=["INPUT","TEXTAREA","SELECT"],vT=new WeakMap;function oK({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:v}){function y(R){let T=Xp(R);const I=R.isTrusted,x=T&&Y0(T.tagName);if(x==="OPTION"&&(T=T.parentElement),!T||!x||aK.indexOf(x)<0||ns(T,r,i,a,!0))return;const A=T;if(A.classList.contains(s)||o&&A.matches(o))return;const D=RE(T);let B=mg(A,x,D),V=!1;const $=$v({maskInputOptions:l,tagName:x,type:D}),N=Mc(T,p,g,h,v,$);(D==="radio"||D==="checkbox")&&(V=T.checked),B=qf({isMasked:N,element:T,value:B,maskInputFn:u}),b(T,d?{text:B,isChecked:V,userTriggered:I}:{text:B,isChecked:V});const O=T.name;D==="radio"&&O&&V&&t.querySelectorAll(`input[type="radio"][name="${O}"]`).forEach(M=>{if(M!==T){const Y=qf({isMasked:N,element:M,value:mg(M,x,D),maskInputFn:u});b(M,d?{text:Y,isChecked:!V,userTriggered:!1}:{text:Y,isChecked:!V})}})}function b(R,T){const I=vT.get(R);if(!I||I.text!==T.text||I.isChecked!==T.isChecked){vT.set(R,T);const x=n.getId(R);nn(e)({...T,id:x})}}const w=(c.input==="last"?["change"]:["input","change"]).map(R=>gi(R,nn(y),t)),C=t.defaultView;if(!C)return()=>{w.forEach(R=>R())};const P=C.Object.getOwnPropertyDescriptor(C.HTMLInputElement.prototype,"value"),k=[[C.HTMLInputElement.prototype,"value"],[C.HTMLInputElement.prototype,"checked"],[C.HTMLSelectElement.prototype,"value"],[C.HTMLTextAreaElement.prototype,"value"],[C.HTMLSelectElement.prototype,"selectedIndex"],[C.HTMLOptionElement.prototype,"selected"]];return P&&P.set&&w.push(...k.map(R=>GD(R[0],R[1],{set(){nn(y)({target:this,isTrusted:!1})}},!1,C))),nn(()=>{w.forEach(R=>R())})}function vg(e){const t=[];function n(r,i){if(Lm("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Lm("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Lm("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Lm("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(e,t)}function Ao(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function lK({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:nn((c,d,p)=>{const[h,g]=p,{id:v,styleId:y}=Ao(d,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,adds:[{rule:h,index:g}]}),c.apply(d,p)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:nn((c,d,p)=>{const[h]=p,{id:g,styleId:v}=Ao(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:h}]}),c.apply(d,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:nn((c,d,p)=>{const[h]=p,{id:g,styleId:v}=Ao(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,replace:h}),c.apply(d,p)})}));let o;r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:nn((c,d,p)=>{const[h]=p,{id:g,styleId:v}=Ao(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,replaceSync:h}),c.apply(d,p)})}));const l={};Fm("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Fm("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Fm("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Fm("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(l).forEach(([c,d])=>{u[c]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[c].insertRule,{apply:nn((p,h,g)=>{const[v,y]=g,{id:b,styleId:S}=Ao(h.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||S&&S!==-1)&&e({id:b,styleId:S,adds:[{rule:v,index:[...vg(h),y||0]}]}),p.apply(h,g)})}),d.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:nn((p,h,g)=>{const[v]=g,{id:y,styleId:b}=Ao(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,removes:[{index:[...vg(h),v]}]}),p.apply(h,g)})})}),nn(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,s&&(r.CSSStyleSheet.prototype.replace=s),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([c,d])=>{d.prototype.insertRule=u[c].insertRule,d.prototype.deleteRule=u[c].deleteRule})})}function sL({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(s){const o=a.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return o}}),nn(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function uK({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:nn((o,l,u)=>{const[c,d,p]=u;if(n.has(c))return a.apply(l,[c,d,p]);const{id:h,styleId:g}=Ao(l.parentRule?.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,set:{property:c,value:d,priority:p},index:vg(l.parentRule)}),o.apply(l,u)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:nn((o,l,u)=>{const[c]=u;if(n.has(c))return s.apply(l,[c]);const{id:d,styleId:p}=Ao(l.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:c},index:vg(l.parentRule)}),o.apply(l,u)})}),nn(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}function cK({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:s}){const o=nn(u=>Yf(nn(c=>{const d=Xp(c);if(!d||ns(d,t,n,r,!0))return;const{currentTime:p,volume:h,muted:g,playbackRate:v}=d;e({type:u,id:i.getId(d),currentTime:p,volume:h,muted:g,playbackRate:v})}),a.media||500)),l=[gi("play",o(Zu.Play),s),gi("pause",o(Zu.Pause),s),gi("seeked",o(Zu.Seeked),s),gi("volumechange",o(Zu.VolumeChange),s),gi("ratechange",o(Zu.RateChange),s)];return nn(()=>{l.forEach(u=>u())})}function dK({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(l,u,c){const d=new a(l,u,c);return i.set(d,{family:l,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const s=OE(t.fonts,"add",function(o){return function(l){return Bv(nn(()=>{const u=i.get(l);u&&(e(u),i.delete(l))}),0),o.apply(this,[l])}});return r.push(()=>{n.FontFace=a}),r.push(s),nn(()=>{r.forEach(o=>o())})}function fK(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:s}=e;let o=!0;const l=nn(()=>{const u=t.getSelection();if(!u||o&&u?.isCollapsed)return;o=u.isCollapsed||!1;const c=[],d=u.rangeCount||0;for(let p=0;p<d;p++){const h=u.getRangeAt(p),{startContainer:g,startOffset:v,endContainer:y,endOffset:b}=h;ns(g,r,i,a,!0)||ns(y,r,i,a,!0)||c.push({start:n.getId(g),startOffset:v,end:n.getId(y),endOffset:b})}s({ranges:c})});return l(),gi("selectionchange",l)}function pK({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:OE(n.customElements,"define",function(i){return function(a,s,o){try{t({define:{name:a}})}catch{}return i.apply(this,[a,s,o])}})}function mK(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=rL(e,e.doc));const i=rK(e),a=iK(e),s=iL(e),o=sK(e,{win:n}),l=oK(e),u=cK(e);let c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=lK(e,{win:n}),d=sL(e,e.doc),p=uK(e,{win:n}),e.collectFonts&&(h=dK(e)));const g=fK(e),v=pK(e),y=[];for(const b of e.plugins)y.push(b.observer(b.callback,n,b.options));return nn(()=>{oc.forEach(b=>b.reset()),r?.disconnect(),i(),a(),s(),o(),l(),u(),c(),d(),p(),h(),g(),v(),y.forEach(b=>b())})}function Lm(e){return typeof window[e]<"u"}function Fm(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class eS{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const a=r||this.getIdToRemoteIdMap(t),s=i||this.getRemoteIdToIdMap(t);let o=a.get(n);return o||(o=this.generateIdFn(),a.set(n,o),s.set(o,n)),o}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class hK{constructor(){this.crossOriginIframeMirror=new eS(AE),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class gK{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new eS(AE),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=DE(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Lt.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Lt.IncrementalSnapshot,data:{source:xt.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Lt.Meta:case Lt.Load:case Lt.DomContentLoaded:return!1;case Lt.Plugin:return n;case Lt.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Lt.IncrementalSnapshot:switch(n.data.source){case xt.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case xt.Drag:case xt.TouchMove:case xt.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case xt.ViewportResize:return!1;case xt.MediaInteraction:case xt.MouseInteraction:case xt.Scroll:case xt.CanvasMutation:case xt.Input:return this.replaceIds(n.data,t,["id"]),n;case xt.StyleSheetRule:case xt.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case xt.Font:return n;case xt.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case xt.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==ur.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class vK{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class yK{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!bf(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=rL({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(iL({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Bv(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(sL({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=DE(t),r=Jq(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(OE(t.prototype,"attachShadow",function(i){return function(a){const s=i.call(this,a);return this.shadowRoot&&tL(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var yT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bK=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mm=0;Mm<yT.length;Mm++)bK[yT.charCodeAt(Mm)]=Mm;class bT{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class SK{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Gq,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const a of t){let s;this.styleMirror.has(a)?s=this.styleMirror.getId(a):(s=this.styleMirror.add(a),i.push({styleId:s,rules:Array.from(a.rules||CSSRule,(o,l)=>({rule:$D(o),index:l}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class wK{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,Yq(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Hn,yg;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ls=bq();function Xa(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:c="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:g=!0,maskAllInputs:v,maskInputOptions:y,slimDOMOptions:b,maskAttributeFn:S,maskInputFn:w,maskTextFn:C,maxCanvasSize:P=null,packFn:k,sampling:R={},dataURLOptions:T={},mousemoveWait:I,recordDOM:x=!0,recordCanvas:A=!1,recordCrossOriginIframes:D=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:$=!1,inlineImages:N=!1,plugins:O,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:Y=new Set([]),errorHandler:X,onMutation:ie,getCanvasManager:Z}=e;tK(X);const G=D?window.parent===window:!0;let le=!1;if(!G)try{window.parent.document&&(le=!1)}catch{le=!0}if(G&&!t)throw new Error("emit function is required");if(!G&&!le)return()=>{};I!==void 0&&R.mousemove===void 0&&(R.mousemove=I),Ls.reset();const ee=v===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},ue=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};Wq();let W,ne=0;const J=Ee=>{for(const _e of O||[])_e.eventProcessor&&(Ee=_e.eventProcessor(Ee));return k&&!le&&(Ee=k(Ee)),Ee};Hn=(Ee,_e)=>{const he=Ee;if(he.timestamp=gg(),oc[0]?.isFrozen()&&he.type!==Lt.FullSnapshot&&!(he.type===Lt.IncrementalSnapshot&&he.data.source===xt.Mutation)&&oc.forEach(Ue=>Ue.unfreeze()),G)t?.(J(he),_e);else if(le){const Ue={type:"rrweb",event:J(he),origin:window.location.origin,isCheckout:_e};window.parent.postMessage(Ue,"*")}if(he.type===Lt.FullSnapshot)W=he,ne=0;else if(he.type===Lt.IncrementalSnapshot){if(he.data.source===xt.Mutation&&he.data.isAttachIframe)return;ne++;const Ue=r&&ne>=r,Pe=n&&W&&he.timestamp-W.timestamp>n;(Ue||Pe)&&Ie(!0)}};const ke=Ee=>{Hn({type:Lt.IncrementalSnapshot,data:{source:xt.Mutation,...Ee}})},We=Ee=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.Scroll,...Ee}}),Ve=Ee=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.CanvasMutation,...Ee}}),H=Ee=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.AdoptedStyleSheet,...Ee}}),q=new SK({mutationCb:ke,adoptedStyleSheetCb:H}),ce=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new hK:new gK({mirror:Ls,mutationCb:ke,stylesheetManager:q,recordCrossOriginIframes:D,wrappedEmit:Hn});for(const Ee of O||[])Ee.getMirror&&Ee.getMirror({nodeMirror:Ls,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const oe=new wK,ge=xK(Z,{mirror:Ls,win:window,mutationCb:Ee=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.CanvasMutation,...Ee}}),recordCanvas:A,blockClass:i,blockSelector:a,unblockSelector:s,maxCanvasSize:P,sampling:R.canvas,dataURLOptions:T,errorHandler:X}),xe=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new vK:new yK({mutationCb:ke,scrollCb:We,bypassOptions:{onMutation:ie,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:ee,dataURLOptions:T,maskAttributeFn:S,maskTextFn:C,maskInputFn:w,recordCanvas:A,inlineImages:N,sampling:R,slimDOMOptions:ue,iframeManager:ce,stylesheetManager:q,canvasManager:ge,keepIframeSrcFn:M,processedNodeManager:oe,ignoreCSSAttributes:Y},mirror:Ls}),Ie=(Ee=!1)=>{if(!x)return;Hn({type:Lt.Meta,data:{href:window.location.href,width:YD(),height:KD()}},Ee),q.reset(),xe.init(),oc.forEach(he=>he.lock());const _e=zq(document,{mirror:Ls,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:g,maskAllInputs:ee,maskAttributeFn:S,maskInputFn:w,maskTextFn:C,slimDOM:ue,dataURLOptions:T,recordCanvas:A,inlineImages:N,onSerialize:he=>{QD(he,Ls)&&ce.addIframe(he),ZD(he,Ls)&&q.trackLinkElement(he),Q0(he)&&xe.addShadowRoot(he.shadowRoot,document)},onIframeLoad:(he,Ue)=>{ce.attachIframe(he,Ue),he.contentWindow&&ge.addWindow(he.contentWindow),xe.observeAttachShadow(he)},onStylesheetLoad:(he,Ue)=>{q.attachLinkElement(he,Ue)},onBlockedImageLoad:(he,Ue,{width:Pe,height:qe})=>{ke({adds:[],removes:[],texts:[],attributes:[{id:Ue.id,attributes:{style:{width:`${Pe}px`,height:`${qe}px`}}}]})},keepIframeSrcFn:M,ignoreCSSAttributes:Y});if(!_e)return console.warn("Failed to snapshot the document");Hn({type:Lt.FullSnapshot,data:{node:_e,initialOffset:qD(window)}}),oc.forEach(he=>he.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&q.adoptStyleSheets(document.adoptedStyleSheets,Ls.getId(document))};yg=Ie;try{const Ee=[],_e=Ue=>nn(mK)({onMutation:ie,mutationCb:ke,mousemoveCb:(Pe,qe)=>Hn({type:Lt.IncrementalSnapshot,data:{source:qe,positions:Pe}}),mouseInteractionCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.MouseInteraction,...Pe}}),scrollCb:We,viewportResizeCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.ViewportResize,...Pe}}),inputCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.Input,...Pe}}),mediaInteractionCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.MediaInteraction,...Pe}}),styleSheetRuleCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.StyleSheetRule,...Pe}}),styleDeclarationCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.StyleDeclaration,...Pe}}),canvasMutationCb:Ve,fontCb:Pe=>Hn({type:Lt.IncrementalSnapshot,data:{source:xt.Font,...Pe}}),selectionCb:Pe=>{Hn({type:Lt.IncrementalSnapshot,data:{source:xt.Selection,...Pe}})},customElementCb:Pe=>{Hn({type:Lt.IncrementalSnapshot,data:{source:xt.CustomElement,...Pe}})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:ee,inlineStylesheet:g,sampling:R,recordDOM:x,recordCanvas:A,inlineImages:N,userTriggeredOnInput:V,collectFonts:$,doc:Ue,maskAttributeFn:S,maskInputFn:w,maskTextFn:C,keepIframeSrcFn:M,blockSelector:a,unblockSelector:s,slimDOMOptions:ue,dataURLOptions:T,mirror:Ls,iframeManager:ce,stylesheetManager:q,shadowDomManager:xe,processedNodeManager:oe,canvasManager:ge,ignoreCSSAttributes:Y,plugins:O?.filter(Pe=>Pe.observer)?.map(Pe=>({observer:Pe.observer,options:Pe.options,callback:qe=>Hn({type:Lt.Plugin,data:{plugin:Pe.name,payload:qe}})}))||[]},{});ce.addLoadListener(Ue=>{try{Ee.push(_e(Ue.contentDocument))}catch(Pe){console.warn(Pe)}});const he=()=>{Ie(),Ee.push(_e(document))};return document.readyState==="interactive"||document.readyState==="complete"?he():(Ee.push(gi("DOMContentLoaded",()=>{Hn({type:Lt.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&he()})),Ee.push(gi("load",()=>{Hn({type:Lt.Load,data:{}}),B==="load"&&he()},window))),()=>{Ee.forEach(Ue=>Ue()),oe.destroy(),yg=void 0,nK()}}catch(Ee){console.warn(Ee)}}function EK(e){if(!yg)throw new Error("please take full snapshot after start recording");yg(e)}Xa.mirror=Ls;Xa.takeFullSnapshot=EK;function xK(e,t){try{return e?e(t):new bT}catch{return console.warn("Unable to initialize CanvasManager"),new bT}}var ST;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ST||(ST={}));const CK=3,kK=5;function LE(e){return e>9999999999?e:e*1e3}function Sb(e){return e>9999999999?e/1e3:e}function Jp(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Lt.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ms(t,10,1e3)}}),t.category==="console")))}const _K="button,a";function aL(e){return e.closest(_K)||e}function oL(e){const t=lL(e);return!t||!(t instanceof Element)?t:aL(t)}function lL(e){return TK(e)?e.target:e}function TK(e){return typeof e=="object"&&!!e&&"target"in e}let Oo;function IK(e){return Oo||(Oo=[],PK()),Oo.push(e),()=>{const t=Oo?Oo.indexOf(e):-1;t>-1&&Oo.splice(t,1)}}function PK(){Fi(In,"open",function(e){return function(...t){if(Oo)try{Oo.forEach(n=>n())}catch{}return e.apply(In,t)}})}const RK=new Set([xt.Mutation,xt.StyleSheetRule,xt.StyleDeclaration,xt.AdoptedStyleSheet,xt.CanvasMutation,xt.Selection,xt.MediaInteraction]);function AK(e,t,n){e.handleClick(t,n)}class OK{constructor(t,n,r=Jp){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=IK(()=>{this._lastMutation=wT()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(DK(n,this._ignoreSelector)||!LK(t))return;const r={timestamp:Sb(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Sb(t)}registerScroll(t=Date.now()){this._lastScroll=Sb(t)}registerClick(t){const n=aL(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=wT();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!i,{clickCount:s,clickBreadcrumb:o}=t;if(a){const l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=l<this._timeout*1e3?"mutation":"timeout",c={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:In.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,c);return}if(s>1){const l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:In.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Yp(()=>this._checkClicks(),1e3)}}const NK=["A","BUTTON","INPUT"];function DK(e,t){return!!(!NK.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function LK(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function wT(){return Date.now()/1e3}function FK(e,t){try{if(!MK(t))return;const{source:n}=t.data;if(RK.has(n)&&e.registerMutation(t.timestamp),n===xt.Scroll&&e.registerScroll(t.timestamp),$K(t)){const{type:r,id:i}=t.data,a=Xa.mirror.getNode(i);a instanceof HTMLElement&&r===ci.Click&&e.registerClick(a)}}catch{}}function MK(e){return e.type===CK}function $K(e){return e.data.source===xt.MouseInteraction}function fa(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var FE=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(FE||{});const VK=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function BK(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(VK.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const UK=e=>t=>{if(!e.isEnabled())return;const n=jK(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&AK(e.clickDetector,n,oL(t.event)),Jp(e,n)};function uL(e,t){const n=Xa.mirror.getId(e),r=n&&Xa.mirror.getNode(n),i=r&&Xa.mirror.getMeta(r),a=i&&HK(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(s=>s.type===FE.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:BK(a.attributes)}}:{}}}function jK(e){const{target:t,message:n}=zK(e);return fa({category:`ui.${e.name}`,...uL(t,n)})}function zK(e){const t=e.name==="click";let n,r=null;try{r=t?oL(e.event):lL(e.event),n=Hi(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function HK(e){return e.type===FE.Element}function WK(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=GK(t);n&&Jp(e,n)}function GK(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:s}=e;if(!s||qK(s)||!a)return null;const o=t||r||i,l=a.length===1;if(!o&&l)return null;const u=Hi(s,{maxStringLength:200})||"<unknown>",c=uL(s,u);return fa({category:"ui.keyDown",message:u,data:{...c.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function qK(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const KK={resource:ZK,paint:JK,navigation:QK};function wb(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function YK(e){return e.map(XK).filter(Boolean)}function XK(e){const t=KK[e.entryType];return t?t(e):null}function $c(e){return((Xi()||In.performance.timeOrigin)+e)/1e3}function JK(e){const{duration:t,entryType:n,name:r,startTime:i}=e,a=$c(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function QK(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:g,type:v}=e;return i===0?null:{type:`${t}.${v}`,start:$c(h),end:$c(a),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:p}}}function ZK(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:$c(a),end:$c(i),name:r,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:o}}}function eY(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return ME(e,"largest-contentful-paint",n)}function tY(e){return e.sources!==void 0}function nY(e){const t=[],n=[];for(const r of e.entries)if(tY(r)){const i=[];for(const a of r.sources)if(a.node){n.push(a.node);const s=Xa.mirror.getId(a.node);s&&i.push(s)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return ME(e,"cumulative-layout-shift",n,t)}function rY(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return ME(e,"interaction-to-next-paint",n)}function ME(e,t,n,r){const i=e.value,a=e.rating,s=$c(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:n?n.map(o=>Xa.mirror.getId(o)):void 0,attributions:r}}}function iY(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(uu(i,n))}),r.push(kE(wb(eY,e)),CE(wb(nY,e)),ED(wb(rY,e))),()=>{r.forEach(i=>i())}}const bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sY='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function aY(){const e=new Blob([sY]);return URL.createObjectURL(e)}const ET=["log","warn","error"],Sh="[Replay] ";function Eb(e,t="info"){fo({category:"console",data:{logger:"replay"},level:t,message:`${Sh}${e}`},{level:t})}function oY(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return bt?(ET.forEach(r=>{n[r]=(...i)=>{ze[r](Sh,...i),t&&Eb(i.join(""),iD(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),ze.error(Sh,r),e?Gs(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Eb(r,"error")},n.infoTick=(...r)=>{ze.log(Sh,...r),t&&setTimeout(()=>Eb(r[0]),0)}):ET.forEach(r=>{n[r]=()=>{}}),n}const St=oY();class $E extends Error{constructor(){super(`Event buffer exceeded maximum size of ${PE}.`)}}class cL{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>PE)throw new $E;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?LE(t):null}}class lY{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){bt&&St.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,a)=>{const s=({data:o})=>{const l=o;if(l.method===t&&l.id===r){if(this._worker.removeEventListener("message",s),!l.success){bt&&St.error("Error in compression worker: ",l.response),a(new Error("Error in compression worker"));return}i(l.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class uY{constructor(t){this._worker=new lY(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=LE(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>PE?Promise.reject(new $E):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{bt&&St.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class cY{constructor(t){this._fallback=new cL,this._compression=new uY(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){bt&&St.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const a of t)i.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(a){bt&&St.exception(a,"Failed to add events when switching buffers.")}}}function dY({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=fY(t);if(n)return n}return bt&&St.log("Using simple buffer"),new cL}function fY(e){try{const t=e||pY();if(!t)return;bt&&St.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new cY(n)}catch(t){bt&&St.exception(t,"Failed to create compression worker")}}function pY(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?aY():""}function VE(){try{return"sessionStorage"in In&&!!In.sessionStorage}catch{return!1}}function mY(e){hY(),e.session=void 0}function hY(){if(VE())try{In.sessionStorage.removeItem(TE)}catch{}}function dL(e){return e===void 0?!1:Math.random()<e}function Uv(e){if(VE())try{In.sessionStorage.setItem(TE,JSON.stringify(e))}catch{}}function fL(e){const t=Date.now(),n=e.id||os(),r=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled,o=e.previousSessionId,l=e.dirty||!1;return{id:n,started:r,lastActivity:i,segmentId:a,sampled:s,previousSessionId:o,dirty:l}}function gY(e,t){return dL(e)?"session":t?"buffer":!1}function xT({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=gY(e,t),a=fL({sampled:i,previousSessionId:r});return n&&Uv(a),a}function vY(){if(!VE())return null;try{const e=In.sessionStorage.getItem(TE);if(!e)return null;const t=JSON.parse(e);return bt&&St.infoTick("Loading existing session"),fL(t)}catch{return null}}function tS(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function pL(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return tS(e.started,t,r)||tS(e.lastActivity,n,r)}function mL(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!pL(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function xb({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&vY();return i?mL(i,{sessionIdleExpire:e,maxReplayDuration:t})?(bt&&St.infoTick("Session in sessionStorage is expired, creating new one..."),xT(r,{previousSessionId:i.id})):i:(bt&&St.infoTick("Creating new session"),xT(r,{previousSessionId:n}))}function yY(e){return e.type===Lt.Custom}function BE(e,t,n){return gL(e,t)?(hL(e,t,n),!0):!1}function bY(e,t,n){return gL(e,t)?hL(e,t,n):Promise.resolve(null)}async function hL(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const a=e.getOptions(),s=SY(t,a.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(a){const s=a&&a instanceof $E,o=s?"addEventSizeExceeded":"addEvent",l=jt();if(l){const u=s?"buffer_overflow":"internal_sdk_error";l.recordDroppedEvent(u,"replay")}if(s&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:o})}}function gL(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=LE(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(bt&&St.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function SY(e,t){try{if(typeof t=="function"&&yY(e))return t(e)}catch(n){return bt&&St.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function UE(e){return!e.type}function nS(e){return e.type==="transaction"}function wY(e){return e.type==="replay_event"}function CT(e){return e.type==="feedback"}function EY(e){return(t,n)=>{if(!e.isEnabled()||!UE(t)&&!nS(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(nS(t)){xY(e,t);return}CY(e,t)}}}function xY(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function CY(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Yp(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function kY(e){return t=>{!e.isEnabled()||!UE(t)||_Y(e,t)}}function _Y(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=fa({category:"replay.hydrate-error",data:{url:pd()}});Jp(e,r)}}function TY(e){const t=jt();t&&t.on("beforeAddBreadcrumb",n=>IY(e,n))}function IY(e,t){if(!e.isEnabled()||!vL(t))return;const n=PY(t);n&&Jp(e,n)}function PY(e){return!vL(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?RY(e):fa(e)}function RY(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return fa(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Dm?(n=!0,`${i.slice(0,Dm)}…`):i;if(typeof i=="object")try{const a=Ms(i,7);return JSON.stringify(a).length>Dm?(n=!0,`${JSON.stringify(a,null,2).slice(0,Dm)}…`):a}catch{}return i});return fa({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function vL(e){return!!e.category}function AY(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function yL(){const e=gn().getPropagationContext().dsc;e&&delete e.replay_id;const t=$r();if(t){const n=co(t);delete n.replay_id}}function OY(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Lt.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function NY(e,t){return e.recordingMode!=="buffer"||t.message===IE||!t.exception||t.type?!1:dL(e.getOptions().errorSampleRate)}function DY(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(wY(t))return delete t.breadcrumbs,t;if(!UE(t)&&!nS(t)&&!CT(t))return t;if(!e.checkAndHandleExpiredSession())return yL(),t;if(CT(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),OY(e,t),t;if(AY(t,n)&&!e.getOptions()._experiments.captureExceptions)return bt&&St.log("Ignoring error from rrweb internals",t),null;const i=NY(e,t);if((i||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const s=e.session;s.dirty=!0,e.getOptions().stickySession&&Uv(s)}return t},{id:"Replay"})}function jv(e,t){return t.map(({type:n,start:r,end:i,name:a,data:s})=>{const o=e.throttledAddEvent({type:Lt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:s}}});return typeof o=="string"?Promise.resolve(null):o})}function LY(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function FY(e){return t=>{if(!e.isEnabled())return;const n=LY(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(jv(e,[n]),!1)))}}function MY(e,t){return bt&&e.getOptions()._experiments.traceInternals?!1:_7(t,jt())}function bL(e,t){e.isEnabled()&&t!==null&&(MY(e,t.name)||e.addUpdate(()=>(jv(e,[t]),!0)))}function zv(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=AD(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function SL(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function bg(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function wL(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:s,request:o,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:s,request:o,response:l}}}function Xf(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Uo(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:a}=$Y(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function rS(e,t){return Object.entries(e).reduce((n,[r,i])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function $Y(e){if(!e||typeof e!="string")return{body:e};const t=e.length>iT,n=VY(e);if(t){const r=e.slice(0,iT);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function VY(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Sg(e,t){const n=BY(e);return Ka(n,t)}function BY(e,t=In.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(In.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function UY(e,t,n){try{const r=await zY(e,t,n),i=wL("resource.fetch",r);bL(n.replay,i)}catch(r){bt&&St.exception(r,"Failed to capture fetch breadcrumb")}}function jY(e,t){const{input:n,response:r}=t,i=n?ND(n):void 0,a=zv(i),s=r?SL(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),s!==void 0&&(e.data.response_body_size=s)}async function zY(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:s,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=Sg(s,n.networkDetailAllowUrls)&&!Sg(s,n.networkDetailDenyUrls),p=d?HY(n,t.input,u):Xf(u),h=await WY(d,n,t.response,c);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:l,request:p,response:h}}function HY({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?KY(n,t):{};if(!e)return Uo(i,r,void 0);const a=ND(n),[s,o]=OD(a,St),l=Uo(i,r,s);return o?bg(l,o):l}async function WY(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Xf(i);const a=r?EL(r.headers,n):{};if(!r||!t&&i!==void 0)return Uo(a,i,void 0);const[s,o]=await qY(r),l=GY(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return o?bg(l,o):l}function GY(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const a=e?.length&&n===void 0?zv(e):n;return r?t?Uo(i,a,e):Uo(i,a,void 0):Xf(a)}catch(a){return bt&&St.exception(a,"Failed to serialize response body"),Uo(i,n,void 0)}}async function qY(e){const t=YY(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await XY(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(bt&&St.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(bt&&St.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function EL(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function KY(e,t){return e.length===1&&typeof e[0]!="string"?kT(e[0],t):e.length===2?kT(e[1],t):{}}function kT(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?EL(n,t):Array.isArray(n)?{}:rS(n,t):{}}function YY(e){try{return e.clone()}catch(t){bt&&St.exception(t,"Failed to clone response body")}}function XY(e){return new Promise((t,n)=>{const r=Yp(()=>n(new Error("Timeout while trying to read response body")),500);JY(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function JY(e){return await e.text()}async function QY(e,t,n){try{const r=eX(e,t,n),i=wL("resource.xhr",r);bL(n.replay,i)}catch(r){bt&&St.exception(r,"Failed to capture xhr breadcrumb")}}function ZY(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=zv(r),a=n.getResponseHeader("content-length")?SL(n.getResponseHeader("content-length")):rX(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function eX(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:s,xhr:o}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!o||!Sg(l,n.networkDetailAllowUrls)||Sg(l,n.networkDetailDenyUrls)){const k=Xf(d),R=Xf(p);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:k,response:R}}const h=o[_l],g=h?rS(h.request_headers,n.networkRequestHeaders):{},v=rS(DD(o),n.networkResponseHeaders),[y,b]=n.networkCaptureBodies?OD(s,St):[void 0],[S,w]=n.networkCaptureBodies?tX(o):[void 0],C=Uo(g,d,y),P=Uo(v,p,S);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:b?bg(C,b):C,response:w?bg(P,w):P}}function tX(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return nX(e.response,e.responseType)}catch(n){t.push(n)}return bt&&St.warn("Failed to get xhr response body",...t),[void 0]}function nX(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return bt&&St.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return bt&&St.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function rX(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return zv(n)}catch{return}}function iX(e){const t=jt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(l,u)=>sX(o,l,u))}catch{}}function sX(e,t,n){if(t.data)try{aX(t)&&lX(n)&&(ZY(t,n),QY(t,n,e)),oX(t)&&uX(n)&&(jY(t,n),UY(t,n,e))}catch(r){bt&&St.exception(r,"Error when enriching network breadcrumb")}}function aX(e){return e.category==="xhr"}function oX(e){return e.category==="fetch"}function lX(e){return e?.xhr}function uX(e){return e?.response}function cX(e){const t=jt();ID(UK(e)),Mv(FY(e)),TY(e),iX(e);const n=DY(e);qH(n),t&&(t.on("beforeSendEvent",kY(e)),t.on("afterSendEvent",EY(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const a=e.getSessionId();i?.includeReplay&&e.isEnabled()&&a&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=a)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function dX(e){try{return Promise.all(jv(e,[fX(In.performance.memory)]))}catch{return[]}}function fX(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function pX(e,t,n){return O7(e,t,{...n,setTimeoutImpl:Yp})}const $m=Yt.navigator;function mX(){return/iPhone|iPad|iPod/i.test($m?.userAgent??"")||/Macintosh/i.test($m?.userAgent??"")&&$m?.maxTouchPoints&&$m?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function hX(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){bt&&St.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&FK(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!BE(e,n,i))return!0;if(!i)return!1;const a=e.session;if(vX(e,i),e.recordingMode==="buffer"&&a&&e.eventBuffer&&!a.dirty){const s=e.eventBuffer.getEarliestTimestamp();s&&(bt&&St.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),a.started=s,e.getOptions().stickySession&&Uv(a))}return a?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function gX(e){const t=e.getOptions();return{type:Lt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function vX(e,t){!t||!e.session||e.session.segmentId!==0||BE(e,gX(e),!1)}function yX(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function bX(e,t,n,r){return al(NN(e,uE(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function SX({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
32
|
-
`;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function wX({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit("preprocessEvent",r,a);const s=await VN(e.getOptions(),r,a,t,e,ka());if(!s)return null;e.emit("postprocessEvent",s,a),s.platform=s.platform||"javascript";const o=e.getSdkMetadata(),{name:l,version:u,settings:c}=o?.sdk||{};return s.sdk={...s.sdk,name:l||"sentry.javascript.unknown",version:u||"0.0.0",settings:c},s}async function EX({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const s=SX({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:l,traceIds:u,initialTimestamp:c}=r,d=jt(),p=gn(),h=d?.getTransport(),g=d?.getDsn();if(!d||!h||!g||!a.sampled)return Promise.resolve({});const v={type:QG,replay_start_timestamp:c/1e3,timestamp:i/1e3,error_ids:l,trace_ids:u,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},y=await wX({scope:p,client:d,replayId:t,event:v});if(!y)return d.recordDroppedEvent("event_processor","replay"),bt&&St.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const b=bX(y,s,g,d.getOptions().tunnel);let S;try{S=await h.send(b)}catch(C){const P=new Error(IE);try{P.cause=C}catch{}throw P}if(typeof S.statusCode=="number"&&(S.statusCode<200||S.statusCode>=300))throw new xL(S.statusCode);const w=YN({},S);if(KN(w,"replay"))throw new jE(w);return S}class xL extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class jE extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function CL(e,t={count:0,interval:iq}){const{recordingData:n,onError:r}=e;if(n.length)try{return await EX(e),!0}catch(i){if(i instanceof xL||i instanceof jE)throw i;if(WH("Replays",{_retryCount:t.count}),r&&r(i),t.count>=sq){const a=new Error(`${IE} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,s)=>{Yp(async()=>{try{await CL(e,t),a(!0)}catch(o){s(o)}},t.interval)})}}const kL="__THROTTLED",xX="__SKIPPED";function CX(e,t,n){const r=new Map,i=o=>{const l=o-n;r.forEach((u,c)=>{c<l&&r.delete(c)})},a=()=>[...r.values()].reduce((o,l)=>o+l,0);let s=!1;return(...o)=>{const l=Math.floor(Date.now()/1e3);if(i(l),a()>=t){const c=s;return s=!0,c?xX:kL}s=!1;const u=r.get(l)||0;return r.set(l,u+1),e(...o)}}class kX{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ZG,sessionIdleExpire:eq},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=pX(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=CX((s,o)=>bY(this,s,o),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(aq,r),timeout:r,scrollTimeout:oq,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new OK(this,a)),bt){const s=t._experiments;St.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{In.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=fa({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=fa({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{WK(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){bt&&St.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){bt&&St.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",bt&&St.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){bt&&St.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){bt&&St.log("Buffering is in progress, call `flush()` to save the replay");return}bt&&St.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=xb({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){bt&&St.log("Buffering is in progress, call `flush()` to save the replay");return}bt&&St.infoTick("Starting replay in buffer mode");const t=xb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Xa({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:rq}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:hX(this),...mX(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{bt&&St.log(`Stopping Replay${n?` triggered by ${n}`:""}`),yL(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,mY(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),bt&&St.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),bt&&St.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();bt&&St.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tS(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${In.location.pathname}${In.location.hash}${In.location.search}`,n=`${In.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===kL){const i=fa({category:"replay.throttled"});this.addUpdate(()=>!BE(this,{type:kK,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||$r(),n=t&&Dr(t),i=(n&&Qt(n).data||{})[Mi];if(!(!n||!i||!["route","custom"].includes(i)))return Qt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=dY({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=xb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return mL(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{In.document.addEventListener("visibilitychange",this._handleVisibilityChange),In.addEventListener("blur",this._handleWindowBlur),In.addEventListener("focus",this._handleWindowFocus),In.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(cX(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=iY(this)}_removeListeners(){try{In.document.removeEventListener("visibilitychange",this._handleVisibilityChange),In.removeEventListener("blur",this._handleWindowBlur),In.removeEventListener("focus",this._handleWindowFocus),In.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||pL(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){bt&&St.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Lt.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=YK(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(jv(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){bt&&St.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await dX(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await CL({replayId:t,recordingData:a,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=jt();if(r){const i=n instanceof jE?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){bt&&St.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(a||s){bt&&St.log(`Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const o=this.eventBuffer;o&&this.session.segmentId===0&&!o.hasCheckout&&bt&&St.log("Flushing initial segment without checkout.");const l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Uv(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(o=>{const l=yX(o.target),u=n.join(",");return l?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>a||s){const o=fa({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(o)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Wd(e,t){return[...e,...t].join(",")}function _X({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const a=["base","iframe[srcdoc]:not([src])"],s=Wd(e,[".sentry-mask","[data-sentry-mask]"]),o=Wd(t,[]);return{maskTextSelector:s,unmaskTextSelector:o,blockSelector:Wd(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:Wd(r,[]),ignoreSelector:Wd(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function TX({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const _T='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',IX=["content-length","content-type","accept"],PX=Symbol.for("sentry__originalRequestBody");let TT=!1,IT=!1;function RX(){if(typeof Request>"u"||IT)return;const e=Request;try{const t=function(n,r){const i=new e(n,r);return r?.body!=null&&(i[PX]=r.body),i};t.prototype=e.prototype,Yt.Request=t,IT=!0}catch{}}const AX=(e=>new OX(e));class OX{constructor({flushMinDelay:t=tq,flushMaxDelay:n=nq,minReplayDuration:r=lq,maxReplayDuration:i=sT,stickySession:a=!0,useCompression:s=!0,workerUrl:o,_experiments:l={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:v=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:b=[],networkCaptureBodies:S=!0,networkRequestHeaders:w=[],networkResponseHeaders:C=[],mask:P=[],maskAttributes:k=["title","placeholder","aria-label"],unmask:R=[],block:T=[],unblock:I=[],ignore:x=[],maskFn:A,beforeAddRecordingEvent:D,beforeErrorSampling:B,onError:V,attachRawBodyFromRequest:$=!1}={}){this.name="Replay";const N=_X({mask:P,unmask:R,block:T,unblock:I,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(O,M,Y)=>TX({maskAttributes:k,maskAllText:u,privacyOptions:N,key:O,value:M,el:Y}),...N,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:O=>{try{O.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!l.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,uq),maxReplayDuration:Math.min(i,sT),stickySession:a,useCompression:s,workerUrl:o,blockAllMedia:d,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:g,slowClickIgnoreSelectors:v,networkDetailAllowUrls:y,networkDetailDenyUrls:b,networkCaptureBodies:S,networkRequestHeaders:PT(w),networkResponseHeaders:PT(C),beforeAddRecordingEvent:D,beforeErrorSampling:B,onError:V,attachRawBodyFromRequest:$,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${_T}`:_T,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&B0())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return TT}set _isInitialized(t){TT=t}afterAllSetup(t){!B0()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&RX(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=NX(this._initialOptions,t);this._replay=new kX({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function NX(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=ou(n.replaysSessionSampleRate),a=ou(n.replaysOnErrorSampleRate);return i==null&&a==null&&yo(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function PT(e){return[...IX,...e.map(t=>t.toLowerCase())]}function DX(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function _L(e){try{return new URL(e,an.location.origin).href}catch{return}}function LX(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function TL(e){try{return new Headers(e)}catch{return}}const RT=new WeakMap,Cb=new Map,IL={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function FX(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s,tracePropagationTargets:o,onRequestSpanStart:l,onRequestSpanEnd:u}={...IL,...t},c=typeof a=="function"?a:g=>!0,d=g=>MX(g,o),p={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(g=>(g.type==="transaction"&&g.spans&&g.spans.forEach(v=>{if(v.op==="http.client"){const y=Cb.get(v.span_id);y&&(v.timestamp=y/1e3,Cb.delete(v.span_id))}}),g)),i&&p9(g=>{if(g.response){const v=RT.get(g.response);v&&g.endTimestamp&&Cb.set(v,g.endTimestamp)}}),lD(g=>{const v=r9(g,c,d,p,{propagateTraceparent:h,onRequestSpanEnd:u});if(g.response&&g.fetchData.__span&&RT.set(g.response,g.fetchData.__span),v){const y=_L(g.fetchData.url),b=y?Gl(y).host:void 0;v.setAttributes({"http.url":y,"server.address":b}),s&&AT(v),l?.(v,{headers:g.headers})}})),r&&RD(g=>{const v=$X(g,c,d,p,h,u);v&&(s&&AT(v),l?.(v,{headers:TL(g.xhr.__sentry_xhr_v3__?.request_headers)}))})}function AT(e){const{url:t}=Qt(e).data;if(!t||typeof t!="string")return;const n=uu("resource",({entries:r})=>{r.forEach(i=>{LX(i)&&i.name.endsWith(t)&&(e.setAttributes(TD(i)),setTimeout(n))})})}function MX(e,t){const n=pd();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const a=r.origin===i;return t?Ka(r.toString(),t)||a&&Ka(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?Ka(e,t):r}}function $X(e,t,n,r,i,a){const s=e.xhr,o=s?.[_l];if(!s||s.__sentry_own_request__||!o)return;const{url:l,method:u}=o,c=xs()&&t(l);if(e.endTimestamp&&c){const b=s.__sentry_xhr_span_id__;if(!b)return;const S=r[b];S&&o.status_code!==void 0&&(vN(S,o.status_code),S.end(),a?.(S,{headers:TL(DD(s)),error:e.error}),delete r[b]);return}const d=_L(l),p=Gl(d||l),h=k7(l),g=!!$r(),v=c&&g?Yo({name:`${u} ${h}`,attributes:{url:l,type:"xhr","http.method":u,"http.url":d,"server.address":p?.host,[Un]:"auto.http.browser",[uo]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Ko;s.__sentry_xhr_span_id__=v.spanContext().spanId,r[s.__sentry_xhr_span_id__]=v,n(l)&&VX(s,xs()&&g?v:void 0,i);const y=jt();return y&&y.emit("beforeOutgoingRequestSpan",v,e),v}function VX(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:a}=rD({span:t,propagateTraceparent:n});r&&BX(e,r,i,a)}function BX(e,t,n,r){const i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){const a=i?.baggage;(!a||!DX(a))&&e.setRequestHeader("baggage",n)}}catch{}}function UX(){an.document?an.document.addEventListener("visibilitychange",()=>{const e=$r();if(!e)return;const t=Dr(e);if(an.document.hidden&&t){const n="cancelled",{op:r,status:i}=Qt(t);Ts&&ze.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:yr,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Ts&&ze.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const jX=3600,PL="sentry_previous_trace",zX="sentry.previous_trace";function HX(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?qX():void 0;e.on("spanStart",s=>{if(Dr(s)!==s)return;const o=gn().getPropagationContext();i=WX(i,s,o),r&&GX(i)});let a=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const o=gn(),l=o.getPropagationContext();if(a&&l.parentSpanId){a=!1;return}o.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(i.sampleRate),sampled:String(iS(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=iS(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[gN]:i.sampleRate}})}function WX(e,t,n){const r=Qt(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[rE])}catch{return 0}}const a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=jX&&(Ts&&ze.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[yz]:"previous_trace"}}),t.setAttribute(zX,`${s.traceId}-${s.spanId}-${iS(s)?1:0}`)),a)}function GX(e){try{an.sessionStorage.setItem(PL,JSON.stringify(e))}catch(t){Ts&&ze.warn("Could not store previous trace in sessionStorage",t)}}function qX(){try{const e=an.sessionStorage?.getItem(PL);return JSON.parse(e)}catch{return}}function iS(e){return e.traceFlags===1}const KX="BrowserTracing",YX={...mh,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...IL},OT=((e={})=>{const t={name:void 0,source:void 0},n=an.document,{enableInp:r,enableElementTiming:i,enableLongTask:a,enableLongAnimationFrame:s,_experiments:{enableInteractions:o,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:u},beforeStartSpan:c,idleTimeout:d,finalTimeout:p,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:v,traceXHR:y,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:S,enableHTTPTimings:w,ignoreResourceSpans:C,ignorePerformanceApiSpans:P,instrumentPageLoad:k,instrumentNavigation:R,detectRedirects:T,linkPreviousTrace:I,consistentTraceSampling:x,enableReportPageLoaded:A,onRequestSpanStart:D,onRequestSpanEnd:B}={...YX,...e};let V,$,N;function O(M,Y,X=!0){const ie=Y.op==="pageload",Z=Y.name,G=c?c(Y):Y,le=G.attributes||{};if(Z!==G.name&&(le[Mi]="custom",G.attributes=le),!X){const W=ku();Yo({...G,startTime:W}).end(W);return}t.name=G.name,t.source=le[Mi];const ee=$N(G,{idleTimeout:d,finalTimeout:p,childSpanTimeout:h,disableAutoFinish:ie,beforeSpanEnd:W=>{V?.(),EW(W,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:C,ignorePerformanceApiSpans:P}),DT(M,void 0);const ne=gn(),J=ne.getPropagationContext();ne.setPropagationContext({...J,traceId:ee.spanContext().traceId,sampled:sl(ee),dsc:co(W)}),ie&&(N=void 0)},trimIdleSpanEndTimestamp:!A});ie&&A&&(N=ee),DT(M,ee);function ue(){n&&["interactive","complete"].includes(n.readyState)&&M.emit("idleSpanEnableAutoFinish",ee)}ie&&!A&&n&&(n.addEventListener("readystatechange",()=>{ue()}),ue())}return{name:KX,setup(M){if(qz(),V=hW({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:u||!1,client:M}),r&&KW(),i&&DW(),s&&Yt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?vW():a&&gW(),o&&yW(),T&&n){const X=()=>{$=sr()};addEventListener("click",X,{capture:!0}),addEventListener("keydown",X,{capture:!0,passive:!0})}function Y(){const X=Jf(M);X&&!Qt(X).timestamp&&(Ts&&ze.log(`[Tracing] Finishing current active span with op: ${Qt(X).op}`),X.setAttribute(Hf,"cancelled"),X.end())}M.on("startNavigationSpan",(X,ie)=>{if(jt()!==M)return;if(ie?.isRedirect){Ts&&ze.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),O(M,{op:"navigation.redirect",...X},!1);return}$=void 0,Y(),ka().setPropagationContext({traceId:lo(),sampleRand:Math.random(),propagationSpanId:xs()?void 0:Ya()});const Z=gn();Z.setPropagationContext({traceId:lo(),sampleRand:Math.random(),propagationSpanId:xs()?void 0:Ya()}),Z.setSDKProcessingMetadata({normalizedRequest:void 0}),O(M,{op:"navigation",...X,parentSpan:null,forceTransaction:!0})}),M.on("startPageLoadSpan",(X,ie={})=>{if(jt()!==M)return;Y();const Z=ie.sentryTrace||NT("sentry-trace"),G=ie.baggage||NT("baggage"),le=$z(Z,G),ee=gn();ee.setPropagationContext(le),xs()||(ee.getPropagationContext().propagationSpanId=Ya()),ee.setSDKProcessingMetadata({normalizedRequest:vE()}),O(M,{op:"pageload",...X})}),M.on("endPageloadSpan",()=>{A&&N&&(N.setAttribute(Hf,"reportPageLoaded"),N.end())})},afterAllSetup(M){let Y=pd();if(I!=="off"&&HX(M,{linkPreviousTrace:I,consistentTraceSampling:x}),an.location){if(k){const X=Xi();XX(M,{name:an.location.pathname,startTime:X?X/1e3:void 0,attributes:{[Mi]:"url",[Un]:"auto.pageload.browser"}})}R&&Mv(({to:X,from:ie})=>{if(ie===void 0&&Y?.indexOf(X)!==-1){Y=void 0;return}Y=void 0;const Z=gE(X),G=Jf(M),le=G&&T&&QX(G,$);RL(M,{name:Z?.pathname||an.location.pathname,attributes:{[Mi]:"url",[Un]:"auto.navigation.browser"}},{url:X,isRedirect:le})})}g&&UX(),o&&JX(M,d,p,h,t),r&&JW(),FX(M,{traceFetch:v,traceXHR:y,trackFetchStreamPerformance:b,tracePropagationTargets:M.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:w,onRequestSpanStart:D,onRequestSpanEnd:B})}}});function XX(e,t,n){e.emit("startPageLoadSpan",t,n),gn().setTransactionName(t.name);const r=Jf(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function RL(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const a=gn();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...vE(),url:r}}),Jf(e)}function NT(e){return an.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function JX(e,t,n,r,i){const a=an.document;let s;const o=()=>{const l="ui.action.click",u=Jf(e);if(u){const c=Qt(u).op;if(["navigation","pageload"].includes(c)){Ts&&ze.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Hf,"interactionInterrupted"),s.end(),s=void 0),!i.name){Ts&&ze.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}s=$N({name:i.name,op:l,attributes:{[Mi]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};a&&addEventListener("click",o,{capture:!0})}const AL="_sentry_idleSpan";function Jf(e){return e[AL]}function DT(e,t){Wi(e,AL,t)}const LT=1.5;function QX(e,t){const n=Qt(e),r=ku(),i=n.start_timestamp;return!(r-i>LT||t&&r-t<=LT)}const OL=["activate","mount"],NL=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ZX=/(?:^|[-_])(\w)/g,eJ=e=>e.replace(ZX,t=>t.toUpperCase()).replace(/[-_]/g,""),tJ="<Root>",kb="<Anonymous>",nJ=(e,t)=>e.repeat(t),wf=(e,t)=>{if(!e)return kb;if(e.$root===e)return tJ;if(!e.$options)return kb;const n=e.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const a=i.match(/([^/\\]+)\.vue$/);a&&(r=a[1])}return(r?`<${eJ(r)}>`:kb)+(i&&t!==!1?` at ${i}`:"")},rJ=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return`
|
|
33
|
-
|
|
34
|
-
found in
|
|
35
|
-
|
|
36
|
-
${t.map((i,a)=>`${(a===0?"---> ":nJ(" ",5+a*2))+(Array.isArray(i)?`${wf(i[0])}... (${i[1]} recursive calls)`:wf(i))}`).join(`
|
|
37
|
-
`)}`}return`
|
|
38
|
-
|
|
39
|
-
(found in ${wf(e)})`},iJ=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{const s=wf(i,!1),o=i?rJ(i):"",l={componentName:s,lifecycleHook:a,trace:o};if(t?.attachProps!==!1&&i&&(i.$options?.propsData?l.propsData=i.$options.propsData:i.$props&&(l.propsData=i.$props)),setTimeout(()=>{Gs(r,{captureContext:{contexts:{vue:l}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},FT="ui.vue",sJ={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function _b(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function aJ(e,t){function n(i){return i.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(i=>n(t)===n(i))}const oJ=(e={})=>{const t=(e.hooks||[]).concat(OL).filter((i,a,s)=>s.indexOf(i)===a),n={},r=e.timeout||2e3;for(const i of t){const a=sJ[i];if(!a){NL&&ze.warn(`Unknown hook: ${i}`);continue}for(const s of a)n[s]=function(){const o=this.$root===this;o&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Yo({name:"Application Render",op:`${FT}.render`,attributes:{[Un]:"auto.ui.vue"},onlyIfParent:!0}),_b(this,sr(),r));const l=wf(this,!1);if(!(o||(Array.isArray(e.trackComponents)?aJ(e.trackComponents,l):e.trackComponents))){_b(this,sr(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const c=s===a[0],d=this.$root?.$_sentryRootComponentSpan||$r();if(c){if(d){const p=this.$_sentryComponentSpans[i];p&&p.end(),this.$_sentryComponentSpans[i]=Yo({name:`Vue ${l}`,op:`${FT}.${i}`,attributes:{[Un]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[i];if(!p)return;p.end(),_b(this,sr(),r)}}}return n},lJ=Yt,uJ={Vue:lJ.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:OL,timeout:2e3,trackComponents:!1}},cJ="Vue",dJ=(e={})=>({name:cJ,setup(t){const n={...uJ,...t.getOptions(),...e};if(!n.Vue&&!n.app){yo(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(i=>MT(i,n)):n.Vue&&MT(n.Vue,n)}}),MT=(e,t)=>{NL&&e._instance?.isMounted===!0&&yo(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&iJ(e,t),xs(t)&&e.mixin(oJ(t.tracingOptions))};function fJ(e={}){const t={defaultIntegrations:[...MD(),dJ()],...e};return nD(t,"vue"),JG(t)}function pJ(e,t,n){let r=!1;e.onError(i=>Gs(i,{mechanism:{handled:!1}})),e.beforeEach((i,a,s)=>{const o=r?void 0:mJ(),l={};for(const d of Object.keys(i.params))l[`url.path.parameter.${d}`]=i.params[d],l[`params.${d}`]=i.params[d];for(const d of Object.keys(i.query)){const p=i.query[d];p&&(l[`query.${d}`]=p)}let u=i.path,c="url";if(i.name&&t.routeLabel!=="path")u=i.name.toString(),c="custom";else if(i.matched.length>0){const d=i.matched.length-1;u=i.matched[d].path,c="route"}gn().setTransactionName(u),t.instrumentPageLoad&&o&&(Qt(o).data[Mi]!=="custom"&&(o.updateName(u),o.setAttribute(Mi,c)),o.setAttributes({...l,[Un]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!o&&n({name:u,op:"navigation",attributes:{...l,[Un]:"auto.navigation.vue",[Mi]:c}}),s&&s()})}function mJ(){const e=$r(),t=e&&Dr(e);return t&&Qt(t).op==="pageload"?t:void 0}function hJ(e={}){if(!e.router)return OT(e);const t=OT({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a="name"}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),pJ(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},l=>{RL(s,l)})}}}const gJ={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},$T=(e,t)=>{const n={};try{return Object.keys(e.state.value).forEach(r=>{n[r]=e.state.value[r]}),t?t(n):n}catch{return n}},vJ=e=>{const t={...gJ,...e};return({store:r,pinia:i})=>{t.attachPiniaState!==!1&&hN().addEventProcessor((a,s)=>{try{const l=`pinia_state_all_stores_${new Date().toTimeString().split(" ")[0]}.json`;s.attachments?.some(c=>c.filename.startsWith("pinia_state_all_stores_"))||(s.attachments=[...s.attachments||[],{filename:l,data:JSON.stringify($T(i,t.stateTransformer))}])}catch{}return a}),r.$onAction(a=>{a.after(()=>{const s=t.actionTransformer(a.name);typeof s<"u"&&s!==null&&t.addBreadcrumbs!==!1&&fo({category:"pinia.action",message:`Store: ${r.$id} | Action: ${s}`,level:"info"});const o=$T(i,t.stateTransformer),l=gn(),u=l.getScopeData().contexts.state;if(typeof o<"u"&&o!==null){const p=jt()?.getOptions()?.normalizeDepth||3,g={...u||{},state:{type:"pinia",value:o}};Wi(g,"__sentry_override_normalization_depth__",3+p),l.setContext("state",g)}else l.setContext("state",{...u||{},state:{type:"pinia",value:"undefined"}})})})}};async function zE(){return"/"}async function Gr(e=!0,t=!0){const n=er.create({baseURL:await zE()});return n.interceptors.request.use(r=>(console.debug(`${r.method?.toUpperCase().padEnd(6)} ${r.url?.padEnd(25)} WithAuth: ${e?.toString().padEnd(7)} AutoHandle401: ${t?.toString().padEnd(7)} BaseURL: ${r.baseURL}`),r)),e&&n.interceptors.request.use(async r=>{const i=_s();return i.loadTokens(),i.hasAuthToken&&(r.headers.Authorization=`Bearer ${i.token}`),r},r=>(console.error("Error in axios request interceptor",r),Promise.reject(r))),t&&n.interceptors.response.use(r=>r,async r=>{const{response:i,config:a}=r;if(!i){const d=new Error(`No response was returned by axios - URL ${a?.url}`);throw d.stack=r.stack,d}if(i.status===kl.FailedDependency)throw r;if(![kl.Unauthorized,kl.Forbidden].includes(i.status))return console.error("Error in axios response interceptor which is not 401 or 403",r),Gs(r),Promise.reject({message:`${r.message} - URL ${a?.url}`,stack:r.stack});if(i.status===kl.Forbidden){const d=r?.response?.data;throw console.error("[HttpClient] 403 Forbidden",d),pi("auth:permission-denied").emit({roles:d?.roles,permissions:d?.permissions,error:d?.error,url:a?.url}),r}const s=_s();s.loadTokens();const{reasonCode:o,url:l}=s.extractSpecialReasonCode(r);if(o)return await s.logout(!1,Yw(o)),console.error(`[AuthStore] 401 Unauthorized - emitting 'auth:${o}' with reason ${o}`),pi(`auth:${o}`).emit({url:l,error:r.message,reasonCode:o}),Promise.reject(r);await s.checkAuthenticationRequirements();const{success:u,handled:c}=await s.verifyOrRefreshLoginOnceOrLogout();if(c)return Promise.reject(r);if(u){if(!a?.url)throw new Error("No URL in axios config, cannot retry");console.debug("Redoing request without interceptors",a?.url);const d=a;return d.headers??={},d.headers.Authorization=`Bearer ${s.token}`,er(d)}return console.error("[HttpClient] 401 Unauthorized - emitting 'auth:failure'"),pi("auth:failure").emit({url:a?.url,error:r.message}),Promise.reject(r)}),n}class Ei{static async get(t){return(await(await Gr(!0)).get(t)).data}static async put(t,n){return(await(await Gr(!0)).put(t,n)).data}static async post(t,n){return(await(await Gr(!0)).post(t,n)).data}static async postUpload(t,n,r){return await(await Gr(!0)).post(t,n,r)}static async getDownload(t,n){return await(await Gr(!0)).request({method:"GET",url:t,data:n,responseType:"arraybuffer"})}static async delete(t,n){return(await(await Gr(!0)).request({url:t,method:"delete",data:n})).data}static async patch(t,n){return(await(await Gr(!0)).patch(t,n)).data}}class Se{static base="/api/v2";static firstTimeSetupRoute=`${Se.base}/first-time-setup`;static completeFirstTimeSetupRoute=`${Se.firstTimeSetupRoute}/complete`;static printerRoute=`${Se.base}/printer`;static printerBatchRoute=`${Se.printerRoute}/batch`;static printerTestConnectionRoute=`${Se.printerRoute}/test-connection`;static printerSettingsRoute=`${Se.base}/printer-settings`;static floorRoute=`${Se.base}/floor`;static batchRoute=`${Se.base}/batch`;static batchGetLastPrintedFilesRoute=`${Se.batchRoute}/reprint/list`;static batchReprintFilesRoute=`${Se.batchRoute}/reprint/execute`;static printJobsRoute=`${Se.base}/print-jobs`;static printJobsSearchRoute=`${Se.printJobsRoute}/search`;static printJobsSearchPagedRoute=`${Se.printJobsRoute}/search-paged`;static printQueueRoute=`${Se.base}/print-queue`;static printerFilesRoute=`${Se.base}/printer-files`;static printerFilesPurgeRoute=`${Se.printerFilesRoute}/purge`;static printerTagRoute=`${Se.base}/printer-tag`;static createTagRoute=`${Se.base}/printer-tag`;static userRoute=`${Se.base}/user`;static rolesRoute=`${Se.base}/user/roles`;static userProfileRoute=`${Se.userRoute}/profile`;static settingsRoute=`${Se.base}/settings`;static settingsSensitiveRoute=`${Se.settingsRoute}/sensitive`;static updateLoginRequiredRoute=`${Se.settingsRoute}/login-required`;static updateRegistrationEnabledRoute=`${Se.settingsRoute}/registration-enabled`;static updateCredentialSettings=`${Se.settingsRoute}/credential`;static updateFrontendSettingsRoute=`${Se.settingsRoute}/frontend`;static updateTimeoutSettingRoute=`${Se.settingsRoute}/timeout`;static serverSentryDiagnosticsSettingRoute=`${Se.settingsRoute}/sentry-diagnostics`;static updateExperimentalMoonrakerSupportRoute=`${Se.settingsRoute}/experimental-moonraker-support`;static updateExperimentalThumbnailSupportRoute=`${Se.settingsRoute}/experimental-thumbnail-support`;static updateExperimentalPrusaLinkSupportRoute=`${Se.settingsRoute}/experimental-prusa-link-support`;static updateExperimentalBambuSupportRoute=`${Se.settingsRoute}/experimental-bambu-support`;static deleteTagRoute=t=>`${Se.base}/printer-tag/${t}`;static updateTagNameRoute=t=>`${Se.base}/printer-tag/${t}/name`;static updateTagColorRoute=t=>`${Se.base}/printer-tag/${t}/color`;static addPrinterToTagRoute=t=>`${Se.base}/printer-tag/${t}/printer`;static deletePrinterFromTagRoute=Se.addPrinterToTagRoute;static getPrinterRoute=t=>`${Se.printerRoute}/${t}`;static postPrinterDisabledReasonRoute=t=>`${Se.printerRoute}/${t}/disabled-reason`;static getPrinterLoginDetailsRoute=t=>`${Se.getPrinterRoute(t)}/login-details`;static restartOctoPrintRoute=t=>`${Se.getPrinterRoute(t)}/restart-octoprint`;static refreshSocketRoute=t=>`${Se.getPrinterRoute(t)}/refresh-socket`;static getPrinterSettingsRoute=t=>`${Se.printerSettingsRoute}/${t}`;static syncPrinterNameSettingRoute=t=>`${Se.getPrinterSettingsRoute(t)}/sync-printername`;static getFloorRoute=t=>`${Se.floorRoute}/${t}`;static addOrRemovePrinterFromFloorRoute=t=>`${Se.getFloorRoute(t)}/printer`;static sendQuickStopM112Route=t=>`${Se.printerRoute}/${t}/send-emergency-m112`;static updatePrinterFloorNameRoute=t=>`${Se.getFloorRoute(t)}/name`;static updatePrinterFloorOrderRoute=t=>`${Se.getFloorRoute(t)}/floor-order`;static printerFilesClearRoute=t=>`${Se.printerFilesRoute}/${t}/clear`;static printerFilesStartPrintRoute=t=>`${Se.printerFilesRoute}/${t}/select`;static printerFilesUploadRoute=t=>`${Se.printerFilesRoute}/${t}/upload`;static printerFilesCacheRoute=t=>`${Se.printerFilesRoute}/${t}/cache`;static printerEnabledRoute=t=>`${Se.getPrinterRoute(t)}/enabled`;static printerSerialConnectRoute=t=>`${Se.getPrinterRoute(t)}/serial-connect`;static printerJogCommandRoute=t=>`${Se.getPrinterRoute(t)}/jog`;static printerHomeCommandRoute=t=>`${Se.getPrinterRoute(t)}/home`;static printerSerialDisconnectRoute=t=>`${Se.getPrinterRoute(t)}/serial-disconnect`;static printerJobRoute=t=>`${Se.getPrinterRoute(t)}/job`;static printerStopJobRoute=t=>`${Se.printerJobRoute(t)}/stop`;static printerPauseJobRoute=t=>`${Se.printerJobRoute(t)}/pause`;static printerResumeJobRoute=t=>`${Se.printerJobRoute(t)}/resume`;static userChangeUsernameRoute=t=>`${Se.userRoute}/${t}/change-username`;static userChangePasswordRoute=t=>`${Se.userRoute}/${t}/change-password`;static userDeleteRoute=t=>`${Se.userRoute}/${t}`;static userSetVerifiedRoute=t=>`${Se.userRoute}/${t}/set-verified`;static userSetRootUserRoute=t=>`${Se.userRoute}/${t}/set-root-user`;static userSetUserRolesRoute=t=>`${Se.userRoute}/${t}/set-user-roles`}class qr extends Ei{static async searchJobs(t={}){const n=new URLSearchParams;t.searchPrinter&&n.set("searchPrinter",t.searchPrinter),t.searchFile&&n.set("searchFile",t.searchFile),t.startDate&&n.set("startDate",t.startDate),t.endDate&&n.set("endDate",t.endDate);const r=`${Se.printJobsSearchRoute}?${n.toString()}`;return await this.get(r)}static async searchJobsPaged(t={}){const n=new URLSearchParams;t.searchPrinter&&n.set("searchPrinter",t.searchPrinter),t.searchFile&&n.set("searchFile",t.searchFile),t.startDate&&n.set("startDate",t.startDate),t.endDate&&n.set("endDate",t.endDate),t.page!==void 0&&n.set("page",t.page.toString()),t.pageSize!==void 0&&n.set("pageSize",t.pageSize.toString());const r=`${Se.printJobsSearchPagedRoute}?${n.toString()}`;return await this.get(r)}static async getJob(t){const n=`${Se.printJobsRoute}/${t}`;return await this.get(n)}static async reAnalyzeJob(t){const n=`${Se.printJobsRoute}/${t}/re-analyze`;return await this.post(n)}static async setJobCompleted(t){const n=`${Se.printJobsRoute}/${t}/set-completed`;return await this.post(n)}static async setJobFailed(t){const n=`${Se.printJobsRoute}/${t}/set-failed`;return await this.post(n)}static async setJobCancelled(t){const n=`${Se.printJobsRoute}/${t}/set-cancelled`;return await this.post(n)}static async setJobUnknown(t){const n=`${Se.printJobsRoute}/${t}/set-unknown`;return await this.post(n)}static async deleteJob(t,n=!1){const r=`${Se.printJobsRoute}/${t}${n?"?deleteFile=true":""}`;return await this.delete(r)}static async getThumbnails(t){const n=`${Se.printJobsRoute}/${t}/thumbnails`;return(await this.get(n)).thumbnails||[]}static async getThumbnailUrl(t,n){const r=await zE(),i=`${Se.printJobsRoute}/${t}/thumbnails/${n}`;return`${r.endsWith("/")?r.slice(0,-1):r}${i}`}static async createFromFile(t,n){const r=`${Se.printJobsRoute}/from-file`;return this.post(r,{fileStorageId:t,printerId:n})}}const HE=Yi("Dialog",{state:()=>({ids:[],dialogsById:{}}),getters:{dialogs(){return this.ids.map(e=>this.dialogsById[e])},getBeforeOpenedCallback(){return e=>this.dialogsById[e]?.beforeOpenedCallback},getOpenedCallback(){return e=>this.dialogsById[e]?.openedCallback},getContext(){return e=>this.dialogsById[e]?.context},getOutput(){return e=>this.dialogsById[e]?.output},isDialogOpened(){return e=>this.dialogsById[e]?.opened}},actions:{openDialogWithContext(e,t){let n=this.dialogsById[e];n||(n=this.registerDialogReference(e)),n.opened=!0,n.context=t,this.dialogsById={...this.dialogsById},console.debug(`[Pinia Dialog ${e}] Opened with context`,t)},closeDialog(e,t){let n=this.dialogsById[e];n||(n=this.registerDialogReference(e)),n.opened=!1,delete n.context,n.output=t,this.dialogsById={...this.dialogsById},console.debug(`[Pinia Dialog ${e}] Closed`)},closeAllDialogs(){for(const e of this.ids)this.dialogsById[e]?.opened&&this.closeDialog(e)},unregisterDialogReference(e){delete this.dialogsById[e],this.ids=this.ids.filter(t=>t!==e)},registerDialogReference(e,t){if(!e)throw new Error("Cannot unregister undefined dialog reference");const n=this.dialogsById[e];if(n)return console.debug(`[Pinia Dialog ${e}] Already registered dialog, not registering again`),n;const r={id:e,opened:!1,beforeOpenedCallback:t?.beforeOpenedCallback,openedCallback:t?.openedCallback};return this.dialogsById[e]=r,this.ids.push(e),r}}});function qt(e){const t=HE();async function n(r){const i=t.getBeforeOpenedCallback(e);i&&await i(r),t.openDialogWithContext(e,r);const a=t.getOpenedCallback(e);a&&await a(r)}return{dialogId:e,dialogStore:t,openDialog:n,context:()=>t.getContext(e),closeDialog:r=>t.closeDialog(e,r),isDialogOpened:()=>t.isDialogOpened(e),handleAsync:async r=>(await n(r),new Promise(i=>{ar(()=>{t.isDialogOpened(e)||i(t.getOutput(e))})}))}}var Kt=(e=>(e.ImportOctoFarmDialog="ImportOctoFarmDialog",e.BatchReprintDialog="BatchReprintDialog",e.YamlImportExport="YamlImportExport",e.AddOrUpdatePrinterDialog="AddOrUpdatePrinterDialog",e.AddOrUpdateFloorDialog="AddOrUpdateFloorDialog",e.PrinterMaintenanceDialog="PrinterMaintenanceDialog",e.AddOrUpdateCameraDialog="AddOrUpdateCameraDialog",e.PrinterControlDialog="PrinterControlDialog",e.CreateUserDialog="CreateUserDialog",e.JsonViewerDialog="JsonViewerDialog",e.ManageTagsDialog="ManageTagsDialog",e.PrintJobDetailsDialog="PrintJobDetailsDialog",e.JobThumbnailViewer="JobThumbnailViewer",e))(Kt||{});function DL(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const cn=typeof window<"u",WE=cn&&"IntersectionObserver"in window,yJ=cn&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),VT=cn&&"EyeDropper"in window,GE=cn&&"matchMedia"in window&&typeof window.matchMedia=="function",cu=()=>GE&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function BT(e,t,n){bJ(e,t),t.set(e,n)}function bJ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function UT(e,t,n){return e.set(LL(e,t),n),n}function Ia(e,t){return e.get(LL(e,t))}function LL(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function FL(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let i=0;i<r;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function du(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),FL(e,t.split("."),n))}function Jn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}if(typeof t=="string")return du(e,t,n);if(Array.isArray(t))return FL(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Il(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function Qf(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jT(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function qE(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const sS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function ML(e){return Object.keys(e)}function Pl(e,t){return t.every(n=>e.hasOwnProperty(n))}function Ys(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function aS(e,t,n){const r=Object.create(null),i=Object.create(null);for(const a in e)t.some(s=>s instanceof RegExp?s.test(a):s===a)?r[a]=e[a]:i[a]=e[a];return[r,i]}function Nn(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const $L=/^on[^a-z]/,KE=e=>$L.test(e),SJ=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function ol(e){const[t,n]=aS(e,[$L]),r=Nn(t,SJ),[i,a]=aS(n,["class","style","id","inert",/^data-/]);return Object.assign(i,t),Object.assign(a,r),[i,a]}function rr(e){return e==null?[]:Array.isArray(e)?e:[e]}function wJ(e,t){let n=0;const r=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];clearTimeout(n),n=setTimeout(()=>e(...a),re(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function On(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function zT(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function HT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function WT(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function EJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function GT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<t)return`${e} B`;const n=t===1024?["Ki","Mi","Gi"]:["k","M","G"];let r=-1;for(;Math.abs(e)>=t&&r<n.length-1;)e/=t,++r;return`${e.toFixed(1)} ${n[r]}B`}function ei(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const i in e)r[i]=e[i];for(const i in t){const a=e[i],s=t[i];if(jT(a)&&jT(s)){r[i]=ei(a,s,n);continue}if(n&&Array.isArray(a)&&Array.isArray(s)){r[i]=n(a,s);continue}r[i]=s}return r}function VL(e){return e.map(t=>t.type===Ne?VL(t.children):t).flat()}function Kl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Kl.cache.has(e))return Kl.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Kl.cache.set(e,t),t}Kl.cache=new Map;function lc(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>lc(e,n)).flat(1);if(t.suspense)return lc(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>lc(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return lc(e,t.component.subTree).flat(1)}return[]}var Bu=new WeakMap,ml=new WeakMap;class BL{constructor(t){BT(this,Bu,[]),BT(this,ml,0),this.size=t}get isFull(){return Ia(Bu,this).length===this.size}push(t){Ia(Bu,this)[Ia(ml,this)]=t,UT(ml,this,(Ia(ml,this)+1)%this.size)}values(){return Ia(Bu,this).slice(Ia(ml,this)).concat(Ia(Bu,this).slice(0,Ia(ml,this)))}clear(){Ia(Bu,this).length=0,UT(ml,this,0)}}function xJ(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function YE(e){const t=An({});ar(()=>{const r=e();for(const i in r)t[i]=r[i]},{flush:"sync"});const n={};for(const r in t)n[r]=se(()=>t[r]);return n}function wg(e,t){return e.includes(t)}function UL(e){return e[2].toLowerCase()+e.slice(3)}const Lr=()=>[Function,Array];function qT(e,t){return t="on"+Ki(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function Qp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const i of e)i(...n);else typeof e=="function"&&e(...n)}function Yl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(i=>!i.closest("[inert]")).filter(i=>!!i.offsetParent||i.getClientRects().length>0).filter(i=>!i.parentElement?.closest("details:not([open])")||i.tagName==="SUMMARY"&&i.parentElement?.tagName==="DETAILS")}function jL(e,t,n){let r,i=e.indexOf(document.activeElement);const a=t==="next"?1:-1;do i+=a,r=e[i];while((!r||r.offsetParent==null||!(n?.(r)??!0))&&i<e.length&&i>=0);return r}function Ef(e,t){const n=Yl(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const r=jL(n,t);r?r.focus():Ef(e,t==="next"?"first":"last")}}function Vm(e){return e==null||typeof e=="string"&&e.trim()===""}function CJ(){}function Vc(e,t){if(!(cn&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function XE(e){return e.some(t=>ba(t)?t.type===Xn?!1:t.type!==Ne||XE(t.children):!0)?e:null}function kJ(e,t){if(!cn||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function _J(e,t){const n=e.clientX,r=e.clientY,i=t.getBoundingClientRect(),a=i.left,s=i.top,o=i.right,l=i.bottom;return n>=a&&n<=o&&r>=s&&r<=l}function oS(){const e=Le(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>qE(e.value)}),t}function Eg(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Jo(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function TJ(e){const t={};for(const n in e)t[En(n)]=e[n];return t}function IJ(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,i]=n;return t.includes(r)?!!i:i!==void 0}))}const zL=["top","bottom"],PJ=["start","end","left","right"];function lS(e,t){let[n,r]=e.split(" ");return r||(r=wg(zL,n)?"start":wg(PJ,n)?"top":"center"),{side:uS(n,t),align:uS(r,t)}}function uS(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Tb(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Ib(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function KT(e){return{side:e.align,align:e.side}}function YT(e){return wg(zL,e.side)?"y":"x"}class Ss{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,i=r?1+(1-n)/n:1,{x:a,y:s,width:o,height:l}=r?t.getBoundingClientRect():t;this.x=a*i,this.y=s*i,this.width=o*i,this.height=l*i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function XT(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function HL(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new Ss({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new Ss(e)}function RJ(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new Ss({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new Ss({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new Ss(e)}function JE(e){const t=new Ss(e),n=getComputedStyle(e),r=n.transform;if(r){let i,a,s,o,l;if(r.startsWith("matrix3d("))i=r.slice(9,-1).split(/, /),a=Number(i[0]),s=Number(i[5]),o=Number(i[12]),l=Number(i[13]);else if(r.startsWith("matrix("))i=r.slice(7,-1).split(/, /),a=Number(i[0]),s=Number(i[3]),o=Number(i[4]),l=Number(i[5]);else return new Ss(t);const u=n.transformOrigin,c=t.x-o-(1-a)*parseFloat(u),d=t.y-l-(1-s)*parseFloat(u.slice(u.indexOf(" ")+1)),p=a?t.width/a:e.offsetWidth+1,h=s?t.height/s:e.offsetHeight+1;return new Ss({x:c,y:d,width:p,height:h})}else return new Ss(t)}function $a(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(i=>{r.onfinish=()=>{i(r)}})),r}const wh=new WeakMap;function AJ(e,t){Object.keys(t).forEach(n=>{if(KE(n)){const r=UL(n),i=wh.get(e);if(t[n]==null)i?.forEach(a=>{const[s,o]=a;s===r&&(e.removeEventListener(r,o),i.delete(a))});else if(!i||![...i].some(a=>a[0]===r&&a[1]===t[n])){e.addEventListener(r,t[n]);const a=i||new Set;a.add([r,t[n]]),wh.has(e)||wh.set(e,a)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function OJ(e,t){Object.keys(t).forEach(n=>{if(KE(n)){const r=UL(n),i=wh.get(e);i?.forEach(a=>{const[s,o]=a;s===r&&(e.removeEventListener(r,o),i.delete(a))})}else e.removeAttribute(n)})}const Uu=2.4,JT=.2126729,QT=.7151522,ZT=.072175,NJ=.55,DJ=.58,LJ=.57,FJ=.62,Bm=.03,eI=1.45,MJ=5e-4,$J=1.25,VJ=1.25,tI=.078,nI=12.82051282051282,Um=.06,rI=.001;function iI(e,t){const n=(e.r/255)**Uu,r=(e.g/255)**Uu,i=(e.b/255)**Uu,a=(t.r/255)**Uu,s=(t.g/255)**Uu,o=(t.b/255)**Uu;let l=n*JT+r*QT+i*ZT,u=a*JT+s*QT+o*ZT;if(l<=Bm&&(l+=(Bm-l)**eI),u<=Bm&&(u+=(Bm-u)**eI),Math.abs(u-l)<MJ)return 0;let c;if(u>l){const d=(u**NJ-l**DJ)*$J;c=d<rI?0:d<tI?d-d*nI*Um:d-Um}else{const d=(u**FJ-l**LJ)*VJ;c=d>-rI?0:d>-tI?d-d*nI*Um:d+Um}return c*100}const xg=.20689655172413793,BJ=e=>e>xg**3?Math.cbrt(e):e/(3*xg**2)+4/29,UJ=e=>e>xg?e**3:3*xg**2*(e-4/29);function WL(e){const t=BJ,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function GL(e){const t=UJ,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const jJ=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],zJ=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,HJ=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],WJ=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function qL(e){const t=Array(3),n=zJ,r=jJ;for(let i=0;i<3;++i)t[i]=Math.round(On(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function QE(e){let{r:t,g:n,b:r}=e;const i=[0,0,0],a=WJ,s=HJ;t=a(t/255),n=a(n/255),r=a(r/255);for(let o=0;o<3;++o)i[o]=s[o][0]*t+s[o][1]*n+s[o][2]*r;return i}function cS(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function GJ(e){return cS(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const sI=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,qJ={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>aI({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>aI({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>wa({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>wa({h:e,s:t,v:n,a:r})};function is(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&sI.test(e)){const{groups:t}=e.match(sI),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map((a,s)=>a.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(a)/100:parseFloat(a));return qJ[n](...i)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),JL(t)}else if(typeof e=="object"){if(Pl(e,["r","g","b"]))return e;if(Pl(e,["h","s","l"]))return wa(ZE(e));if(Pl(e,["h","s","v"]))return wa(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
40
|
-
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function wa(e){const{h:t,s:n,v:r,a:i}=e,a=o=>{const l=(o+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},s=[a(5),a(3),a(1)].map(o=>Math.round(o*255));return{r:s[0],g:s[1],b:s[2],a:i}}function aI(e){return wa(ZE(e))}function Zp(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r);let s=0;i!==a&&(i===t?s=60*(0+(n-r)/(i-a)):i===n?s=60*(2+(r-t)/(i-a)):i===r&&(s=60*(4+(t-n)/(i-a)))),s<0&&(s=s+360);const o=i===0?0:(i-a)/i,l=[s,o,i];return{h:l[0],s:l[1],v:l[2],a:e.a}}function dS(e){const{h:t,s:n,v:r,a:i}=e,a=r-r*n/2,s=a===1||a===0?0:(r-a)/Math.min(a,1-a);return{h:t,s,l:a,a:i}}function ZE(e){const{h:t,s:n,l:r,a:i}=e,a=r+n*Math.min(r,1-r),s=a===0?0:2-2*r/a;return{h:t,s,v:a,a:i}}function KL(e){let{r:t,g:n,b:r,a:i}=e;return i===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${i})`}function YL(e){return KL(wa(e))}function jm(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function XL(e){let{r:t,g:n,b:r,a:i}=e;return`#${[jm(t),jm(n),jm(r),i!==void 0?jm(Math.round(i*255)):""].join("")}`}function JL(e){e=YJ(e);let[t,n,r,i]=EJ(e,2).map(a=>parseInt(a,16));return i=i===void 0?i:i/255,{r:t,g:n,b:r,a:i}}function KJ(e){const t=JL(e);return Zp(t)}function QL(e){return XL(wa(e))}function YJ(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=HT(HT(e,6),8,"F")),e}function XJ(e,t){const n=WL(QE(e));return n[0]=n[0]+t*10,qL(GL(n))}function JJ(e,t){const n=WL(QE(e));return n[0]=n[0]-t*10,qL(GL(n))}function fS(e){const t=is(e);return QE(t)[1]}function QJ(e,t){const n=fS(e),r=fS(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function ZL(e){const t=Math.abs(iI(is(0),is(e)));return Math.abs(iI(is(16777215),is(e)))>Math.min(t,50)?"#fff":"#000"}function be(e,t){return n=>Object.keys(e).reduce((r,i)=>{const s=typeof e[i]=="object"&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?r[i]={...s,default:n[i]}:r[i]=s,t&&!r[i].source&&(r[i].source=t),r},{})}const Qe=be({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function zn(e,t){const n=wi();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function _a(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=zn(e).type;return Kl(t?.aliasName||t?.name)}function ZJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zn("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const Bc=Symbol.for("vuetify:defaults");function eQ(e){return z(e)}function ex(){const e=ft(Bc);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Sr(e,t){const n=ex(),r=z(e),i=L(()=>{if(re(t?.disabled))return n.value;const s=re(t?.scoped),o=re(t?.reset),l=re(t?.root);if(r.value==null&&!(s||o||l))return n.value;let u=ei(r.value,{prev:n.value});if(s)return u;if(o||l){const c=Number(o||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=ei(ei(u,{prev:u}),u[l])),u}return u.prev?ei(u.prev,u):u});return Sn(Bc,i),i}function tQ(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[Kl(t)]<"u")}function nQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ex();const r=zn("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const i=L(()=>n.value?.[e._as??t]),a=new Proxy(e,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[i.value?.[u],c].filter(h=>h!=null);if(tQ(r.vnode,u))return c;const d=i.value?.[u];if(d!==void 0)return d;const p=n.value?.global?.[u];return p!==void 0?p:c}}),s=Le();ar(()=>{if(i.value){const l=Object.entries(i.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function o(){const l=ZJ(Bc,r);Sn(Bc,L(()=>s.value?ei(l?.value??{},s.value):l?.value))}return{props:a,provideSubDefaults:o}}function Qs(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=be(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Ys(r,t)},e.props._as=String,e.setup=function(r,i){const a=ex();if(!a.value)return e._setup(r,i);const{props:s,provideSubDefaults:o}=nQ(r,r._as??e.name,a),l=e._setup(s,i);return o(),l}}return e}function De(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Qs:Be)(t)}function rQ(e,t){return t.props=e,t}function _u(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return De()({name:n??Ki(En(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Qe()},setup(r,i){let{slots:a}=i;return()=>Rs(r.tag,{class:[e,r.class],style:r.style},a.default?.())}})}function iQ(e,t,n,r){if(!n||Jo(e)||Jo(t))return;const i=n.get(e);if(i)i.set(t,r);else{const a=new WeakMap;a.set(t,r),n.set(e,a)}}function sQ(e,t,n){if(!n||Jo(e)||Jo(t))return null;const r=n.get(e)?.get(t);if(typeof r=="boolean")return r;const i=n.get(t)?.get(e);return typeof i=="boolean"?i:null}function ti(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const i=sQ(e,t,n);return i||(iQ(e,t,n,!0),r.every(a=>ti(e[a],t[a],n)))}function eF(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Zf="cubic-bezier(0.4, 0, 0.2, 1)",oI="cubic-bezier(0.0, 0, 0.2, 1)",lI="cubic-bezier(0.4, 0, 1, 1)",aQ={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function uI(e,t,n){return Object.keys(e).filter(r=>KE(r)&&r.endsWith(t)).reduce((r,i)=>(r[i.slice(0,-t.length)]=a=>Qp(e[i],a,n(a)),r),{})}function tx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?oQ(e):nx(e))return e;e=e.parentElement}return document.scrollingElement}function Cg(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(nx(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function nx(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function oQ(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function lQ(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Fe(e){const t=zn("useRender");t.render=e}function uQ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,i=0,a=!1,s=0;function o(){clearTimeout(r),a=!1,s=0}const l=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];clearTimeout(r);const p=Date.now();s||(s=p);const h=p-Math.max(s,i);function g(){i=Date.now(),r=setTimeout(o,t),e(...c)}a?h>=t?g():n.trailing&&(r=setTimeout(g,t-h)):(a=!0,n.leading&&g())};return l.clear=o,l.immediate=e,l}const As=be({border:[Boolean,Number,String]},"border");function Zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();return{borderClasses:L(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(i=>`border-${i}`):[]})}}const cQ=[null,"default","comfortable","compact"],_r=be({density:{type:String,default:"default",validator:e=>cQ.includes(e)}},"density");function us(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();return{densityClasses:se(()=>`${t}--density-${e.density}`)}}const xi=be({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Ji(e){return{elevationClasses:se(()=>{const n=Ot(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const mr=be({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Er(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();return{roundedClasses:L(()=>{const r=Ot(e)?e.value:e.rounded,i=Ot(e)?!1:e.tile,a=[];if(i||r===!1)a.push("rounded-0");else if(r===!0||r==="")a.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const s of String(r).split(" "))a.push(`rounded-${s}`);return a})}}const zt=be({tag:{type:[String,Object,Function],default:"div"}},"tag"),ep=Symbol.for("vuetify:theme"),vn=be({theme:String},"theme");function cI(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function dQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cI();const t=cI();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,i]of Object.entries(e.themes??{})){const a=i.dark||r==="dark"?t.themes?.dark:t.themes?.light;n[r]=ei(a,i)}return ei(t,{...e,themes:n})}function hl(e,t,n,r){e.push(`${hQ(t,r)} {
|
|
41
|
-
`,...n.map(i=>` ${i};
|
|
42
|
-
`),`}
|
|
43
|
-
`)}function dI(e,t){const n=e.dark?2:1,r=e.dark?1:2,i=[];for(const[a,s]of Object.entries(e.colors)){const o=is(s);i.push(`--${t}theme-${a}: ${o.r},${o.g},${o.b}`),a.startsWith("on-")||i.push(`--${t}theme-${a}-overlay-multiplier: ${fS(s)>.18?n:r}`)}for(const[a,s]of Object.entries(e.variables)){const o=typeof s=="string"&&s.startsWith("#")?is(s):void 0,l=o?`${o.r}, ${o.g}, ${o.b}`:void 0;i.push(`--${t}${a}: ${l??s}`)}return i}function fQ(e,t,n){const r={};if(n)for(const i of["lighten","darken"]){const a=i==="lighten"?XJ:JJ;for(const s of Il(n[i],1))r[`${e}-${i}-${s}`]=XL(a(is(t),s))}return r}function pQ(e,t){if(!t)return{};let n={};for(const r of t.colors){const i=e[r];i&&(n={...n,...fQ(r,i,t)})}return n}function mQ(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,i=is(e[n]);t[r]=ZL(i)}return t}function hQ(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function gQ(e,t,n){const r=vQ(e,t);r&&(r.innerHTML=n)}function vQ(e,t){if(!cn)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function yQ(e){const t=dQ(e),n=Le(t.defaultTheme),r=z(t.themes),i=Le("light"),a=L({get(){return n.value==="system"?i.value:n.value},set(S){n.value=S}}),s=L(()=>{const S={};for(const[w,C]of Object.entries(r.value)){const P={...C.colors,...pQ(C.colors,t.variations)};S[w]={...C,colors:{...P,...mQ(P)}}}return S}),o=se(()=>s.value[a.value]),l=se(()=>n.value==="system"),u=L(()=>{const S=[],w=t.unimportant?"":" !important",C=t.scoped?t.prefix:"";o.value?.dark&&hl(S,":root",["color-scheme: dark"],t.scope),hl(S,":root",dI(o.value,t.prefix),t.scope);for(const[k,R]of Object.entries(s.value))hl(S,`.${t.prefix}theme--${k}`,[`color-scheme: ${R.dark?"dark":"normal"}`,...dI(R,t.prefix)],t.scope);if(t.utilities){const k=[],R=[],T=new Set(Object.values(s.value).flatMap(I=>Object.keys(I.colors)));for(const I of T)I.startsWith("on-")?hl(R,`.${I}`,[`color: rgb(var(--${t.prefix}theme-${I}))${w}`],t.scope):(hl(k,`.${C}bg-${I}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${I}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${I}))${w}`,`color: rgb(var(--${t.prefix}theme-on-${I}))${w}`],t.scope),hl(R,`.${C}text-${I}`,[`color: rgb(var(--${t.prefix}theme-${I}))${w}`],t.scope),hl(R,`.${C}border-${I}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${I})`],t.scope));t.layers?S.push(`@layer background {
|
|
44
|
-
`,...k.map(I=>` ${I}`),`}
|
|
45
|
-
`,`@layer foreground {
|
|
46
|
-
`,...R.map(I=>` ${I}`),`}
|
|
47
|
-
`):S.push(...k,...R)}let P=S.map((k,R)=>R===0?k:` ${k}`).join("");return t.layers&&(P=`@layer vuetify.theme {
|
|
48
|
-
`+S.map(k=>` ${k}`).join("")+`
|
|
49
|
-
}`),P}),c=se(()=>t.isDisabled?void 0:`${t.prefix}theme--${a.value}`),d=se(()=>Object.keys(s.value));if(GE){let w=function(){i.value=S.matches?"dark":"light"};var b=w;const S=window.matchMedia("(prefers-color-scheme: dark)");w(),S.addEventListener("change",w,{passive:!0}),ad()&&Rn(()=>{S.removeEventListener("change",w)})}function p(S){if(t.isDisabled)return;const w=S._context.provides.usehead;if(w){let k=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};var C=k;if(w.push){const R=w.push(k);cn&&Oe(u,()=>{R.patch(k)})}else cn?(w.addHeadObjs(se(k)),ar(()=>w.updateDOM())):w.addHeadObjs(k())}else{let k=function(){gQ(t.stylesheetId,t.cspNonce,u.value)};var P=k;cn?Oe(u,k,{immediate:!0}):k()}}function h(S){S!=="system"&&!d.value.includes(S)||(a.value=S)}function g(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.value;const w=S.indexOf(a.value),C=w===-1?0:(w+1)%S.length;h(S[C])}function v(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];g(S)}const y=new Proxy(a,{get(S,w){return Reflect.get(S,w)},set(S,w,C){return w==="value"&&DL(`theme.global.name.value = ${C}`,`theme.change('${C}')`),Reflect.set(S,w,C)}});return{install:p,change:h,cycle:g,toggle:v,isDisabled:t.isDisabled,isSystem:l,name:a,themes:r,current:o,computedThemes:s,prefix:t.prefix,themeClasses:c,styles:u,global:{name:y,current:o}}}function xn(e){zn("provideTheme");const t=ft(ep,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=se(()=>e.theme??t.name.value),r=se(()=>t.themes.value[n.value]),i=se(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),a={...t,name:n,current:r,themeClasses:i};return Sn(ep,a),a}function rx(){zn("useTheme");const e=ft(ep,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ix(e){return YE(()=>{const{class:t,style:n}=bQ(e);return{colorClasses:t,colorStyles:n}})}function Gi(e){const{colorClasses:t,colorStyles:n}=ix(()=>({text:bn(e)}));return{textColorClasses:t,textColorStyles:n}}function $n(e){const{colorClasses:t,colorStyles:n}=ix(()=>({background:bn(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function bQ(e){const t=bn(e),n=[],r={};if(t.background)if(cS(t.background)){if(r.backgroundColor=t.background,!t.text&&GJ(t.background)){const i=is(t.background);if(i.a==null||i.a===1){const a=ZL(i);r.color=a,r.caretColor=a}}}else n.push(`bg-${t.background}`);return t.text&&(cS(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const SQ=["elevated","flat","tonal","outlined","text","plain"];function ll(e,t){return E(Ne,null,[e&&E("span",{key:"overlay",class:Te(`${t}__overlay`)},null),E("span",{key:"underlay",class:Te(`${t}__underlay`)},null)])}const ea=be({color:String,variant:{type:String,default:"elevated",validator:e=>SQ.includes(e)}},"variant");function Tu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();const n=se(()=>{const{variant:a}=bn(e);return`${t}--variant-${a}`}),{colorClasses:r,colorStyles:i}=ix(()=>{const{variant:a,color:s}=bn(e);return{[["elevated","flat"].includes(a)?"background":"text"]:s}});return{colorClasses:r,colorStyles:i,variantClasses:n}}const tF=be({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...As(),...Qe(),..._r(),...xi(),...mr(),...zt(),...vn(),...ea()},"VBtnGroup"),pS=De()({name:"VBtnGroup",props:tF(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=xn(e),{densityClasses:i}=us(e),{borderClasses:a}=Zs(e),{elevationClasses:s}=Ji(e),{roundedClasses:o}=Er(e);Sr({VBtn:{height:se(()=>e.direction==="horizontal"?"auto":null),baseColor:se(()=>e.baseColor),color:se(()=>e.color),density:se(()=>e.density),flat:!0,variant:se(()=>e.variant)}}),Fe(()=>f(e.tag,{class:Te(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,a.value,i.value,s.value,o.value,e.class]),style:je(e.style)},n))}});function zi(e,t){let n;function r(){n=Go(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}Oe(e,i=>{i&&!n?r():i||(n?.stop(),n=void 0)},{immediate:!0}),Rn(()=>{n?.stop()})}function gt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const a=zn("useProxiedModel"),s=z(e[t]!==void 0?e[t]:n),o=Kl(t),u=L(o!==t?()=>(e[t],!!((a.vnode.props?.hasOwnProperty(t)||a.vnode.props?.hasOwnProperty(o))&&(a.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||a.vnode.props?.hasOwnProperty(`onUpdate:${o}`)))):()=>(e[t],!!(a.vnode.props?.hasOwnProperty(t)&&a.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));zi(()=>!u.value,()=>{Oe(()=>e[t],d=>{s.value=d})});const c=L({get(){const d=e[t];return r(u.value?d:s.value)},set(d){const p=i(d),h=nt(u.value?e[t]:s.value);h===p||r(h)===d||(s.value=p,a?.emit(`update:${t}`,p))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:s.value}),c}const bd=be({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Sd=be({value:null,disabled:Boolean,selectedClass:String},"group-item");function fu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=zn("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Si();Sn(Symbol.for(`${t.description}:id`),i);const a=ft(t,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const s=se(()=>e.value),o=L(()=>!!(a.disabled.value||e.disabled));function l(){a?.register({id:i,value:s,disabled:o},r)}function u(){a?.unregister(i)}l(),wr(()=>u());const c=L(()=>a.isSelected(i)),d=L(()=>a.items.value[0].id===i),p=L(()=>a.items.value[a.items.value.length-1].id===i),h=L(()=>c.value&&[a.selectedClass.value,e.selectedClass]);return Oe(c,g=>{r.emit("group:selected",{value:g})},{flush:"sync"}),{id:i,isSelected:c,isFirst:d,isLast:p,toggle:()=>a.select(i,!c.value),select:g=>a.select(i,g),selectedClass:h,value:s,disabled:o,group:a,register:l,unregister:u}}function Iu(e,t){let n=!1;const r=An([]),i=gt(e,"modelValue",[],p=>p===void 0?[]:nF(r,p===null?[null]:rr(p)),p=>{const h=EQ(r,p);return e.multiple?h:h[0]}),a=zn("useGroup");function s(p,h){const g=p,v=Symbol.for(`${t.description}:id`),b=lc(v,a?.vnode).indexOf(h);re(g.value)===void 0&&(g.value=b,g.useIndexAsValue=!0),b>-1?r.splice(b,0,g):r.push(g)}function o(p){if(n)return;l();const h=r.findIndex(g=>g.id===p);r.splice(h,1)}function l(){const p=r.find(h=>!h.disabled);p&&e.mandatory==="force"&&!i.value.length&&(i.value=[p.id])}Nt(()=>{l()}),wr(()=>{n=!0}),Dp(()=>{for(let p=0;p<r.length;p++)r[p].useIndexAsValue&&(r[p].value=p)});function u(p,h){const g=r.find(v=>v.id===p);if(!(h&&g?.disabled))if(e.multiple){const v=i.value.slice(),y=v.findIndex(S=>S===p),b=~y;if(h=h??!b,b&&e.mandatory&&v.length<=1||!b&&e.max!=null&&v.length+1>e.max)return;y<0&&h?v.push(p):y>=0&&!h&&v.splice(y,1),i.value=v}else{const v=i.value.includes(p);if(e.mandatory&&v||!v&&!h)return;i.value=h??!v?[p]:[]}}function c(p){if(e.multiple,i.value.length){const h=i.value[0],g=r.findIndex(b=>b.id===h);let v=(g+p)%r.length,y=r[v];for(;y.disabled&&v!==g;)v=(v+p)%r.length,y=r[v];if(y.disabled)return;i.value=[r[v].id]}else{const h=r.find(g=>!g.disabled);h&&(i.value=[h.id])}}const d={register:s,unregister:o,selected:i,select:u,disabled:se(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:p=>i.value.includes(p),selectedClass:se(()=>e.selectedClass),items:se(()=>r),getItemIndex:p=>wQ(r,p)};return Sn(t,d),d}function wQ(e,t){const n=nF(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function nF(e,t){const n=[];return t.forEach(r=>{const i=e.find(s=>ti(r,s.value)),a=e[r];i?.value!==void 0?n.push(i.id):a?.useIndexAsValue&&n.push(a.id)}),n}function EQ(e,t){const n=[];return t.forEach(r=>{const i=e.findIndex(a=>a.id===r);if(~i){const a=e[i];n.push(a.value!==void 0?a.value:i)}}),n}const rF=Symbol.for("vuetify:v-btn-toggle"),xQ=be({...tF(),...bd()},"VBtnToggle"),sx=De()({name:"VBtnToggle",props:xQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:i,prev:a,select:s,selected:o}=Iu(e,rF);return Fe(()=>{const l=pS.filterProps(e);return f(pS,ve({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:r,next:i,prev:a,select:s,selected:o})]})}),{next:i,prev:a,select:s}}}),CQ=be({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),sn=De(!1)({name:"VDefaultsProvider",props:CQ(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:i,reset:a,root:s,scoped:o}=Ca(e);return Sr(r,{reset:a,root:s,scoped:o,disabled:i}),()=>n.default?.()}}),et=[String,Function,Object,Array],mS=Symbol.for("vuetify:icons"),Hv=be({icon:{type:et},tag:{type:[String,Object,Function],required:!0}},"icon"),fI=De()({name:"VComponentIcon",props:Hv(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return f(e.tag,null,{default:()=>[e.icon?f(r,null,null):n.default?.()]})}}}),iF=Qs({name:"VSvgIcon",inheritAttrs:!1,props:Hv(),setup(e,t){let{attrs:n}=t;return()=>f(e.tag,ve(n,{style:null}),{default:()=>[E("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?E("path",{d:r[0],"fill-opacity":r[1]},null):E("path",{d:r},null)):E("path",{d:e.icon},null)])]})}}),kQ=Qs({name:"VLigatureIcon",props:Hv(),setup(e){return()=>f(e.tag,null,{default:()=>[e.icon]})}}),sF=Qs({name:"VClassIcon",props:Hv(),setup(e){return()=>f(e.tag,{class:Te(e.icon)},null)}}),_Q=e=>{const t=ft(mS);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:L(()=>{const r=bn(e);if(!r)return{component:fI};let i=r;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=t.aliases?.[i.slice(1)])),Array.isArray(i))return{component:iF,icon:i};if(typeof i!="string")return{component:fI,icon:i};const a=Object.keys(t.sets).find(l=>typeof i=="string"&&i.startsWith(`${l}:`)),s=a?i.slice(a.length+1):i;return{component:t.sets[a??t.defaultSet].component,icon:s}})}},TQ=["x-small","small","default","large","x-large"],wd=be({size:{type:[String,Number],default:"default"}},"size");function em(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();return YE(()=>{const n=e.size;let r,i;return wg(TQ,n)?r=`${t}--size-${n}`:n&&(i={width:Me(n),height:Me(n)}),{sizeClasses:r,sizeStyles:i}})}const IQ=be({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:et,opacity:[String,Number],...Qe(),...wd(),...zt({tag:"i"}),...vn()},"VIcon"),j=De()({name:"VIcon",props:IQ(),setup(e,t){let{attrs:n,slots:r}=t;const i=Le(),{themeClasses:a}=rx(),{iconData:s}=_Q(()=>i.value||e.icon),{sizeClasses:o}=em(e),{textColorClasses:l,textColorStyles:u}=Gi(()=>e.color);return Fe(()=>{const c=r.default?.();c&&(i.value=VL(c).filter(p=>p.type===Ga&&p.children&&typeof p.children=="string")[0]?.children);const d=!!(n.onClick||n.onClickOnce);return f(s.value.component,{tag:e.tag,icon:s.value.icon,class:Te(["v-icon","notranslate",a.value,o.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:je([{"--v-icon-opacity":e.opacity},o.value?void 0:{fontSize:Me(e.size),height:Me(e.size),width:Me(e.size)},u.value,e.style]),role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function aF(e,t){const n=z(),r=Le(!1);if(WE){const i=new IntersectionObserver(a=>{r.value=!!a.find(s=>s.isIntersecting)},t);Rn(()=>{i.disconnect()}),Oe(n,(a,s)=>{s&&(i.unobserve(s),r.value=!1),a&&i.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}function po(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=oS(),r=z();if(cn){const i=new ResizeObserver(a=>{e?.(a,i),a.length&&(t==="content"?r.value=a[0].contentRect:r.value=a[0].target.getBoundingClientRect())});wr(()=>{i.disconnect()}),Oe(()=>n.el,(a,s)=>{s&&(i.unobserve(s),r.value=void 0),a&&i.observe(a)},{flush:"post"})}return{resizeRef:n,contentRect:va(r)}}const PQ=be({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Qe(),...wd(),...zt({tag:"div"}),...vn()},"VProgressCircular"),Qn=De()({name:"VProgressCircular",props:PQ(),setup(e,t){let{slots:n}=t;const r=20,i=2*Math.PI*r,a=z(),{themeClasses:s}=xn(e),{sizeClasses:o,sizeStyles:l}=em(e),{textColorClasses:u,textColorStyles:c}=Gi(()=>e.color),{textColorClasses:d,textColorStyles:p}=Gi(()=>e.bgColor),{intersectionRef:h,isIntersecting:g}=aF(),{resizeRef:v,contentRect:y}=po(),b=se(()=>On(parseFloat(e.modelValue),0,100)),S=se(()=>Number(e.width)),w=se(()=>l.value?Number(e.size):y.value?y.value.width:Math.max(S.value,32)),C=se(()=>r/(1-S.value/w.value)*2),P=se(()=>S.value/w.value*C.value),k=se(()=>{const T=(100-b.value)/100*i;return e.rounded&&b.value>0&&b.value<100?Me(Math.min(i-.01,T+P.value)):Me(T)}),R=L(()=>{const T=Number(e.rotate);return e.rounded?T+P.value/2/i*360:T});return ar(()=>{h.value=a.value,v.value=a.value}),Fe(()=>f(e.tag,{ref:a,class:Te(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||cu())},s.value,o.value,u.value,e.class]),style:je([l.value,c.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:b.value},{default:()=>[E("svg",{style:{transform:`rotate(calc(-90deg + ${R.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${C.value} ${C.value}`},[E("circle",{class:Te(["v-progress-circular__underlay",d.value]),style:je(p.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":P.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),E("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":P.value,"stroke-dasharray":i,"stroke-dashoffset":k.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&E("div",{class:"v-progress-circular__content"},[n.default({value:b.value})])]})),{}}}),Vr=be({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Br(e){return{dimensionStyles:L(()=>{const n={},r=Me(e.height),i=Me(e.maxHeight),a=Me(e.maxWidth),s=Me(e.minHeight),o=Me(e.minWidth),l=Me(e.width);return r!=null&&(n.height=r),i!=null&&(n.maxHeight=i),a!=null&&(n.maxWidth=a),s!=null&&(n.minHeight=s),o!=null&&(n.minWidth=o),l!=null&&(n.width=l),n})}}const RQ={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},pI="$vuetify.",mI=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),oF=(e,t,n)=>function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(!r.startsWith(pI))return mI(r,a);const o=r.replace(pI,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=du(l,o,null);return c||(`${r}${e.value}`,c=du(u,o,null)),c||(c=r),typeof c!="string"&&(c=r),mI(c,a)};function ax(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function lF(e,t){return ax(e,t)(.1).includes(",")?",":"."}function Pb(e,t,n){const r=gt(e,t,e[t]??n.value);return r.value=e[t]??n.value,Oe(n,i=>{e[t]==null&&(r.value=n.value)}),r}function uF(e){return t=>{const n=Pb(t,"locale",e.current),r=Pb(t,"fallback",e.fallback),i=Pb(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:i,decimalSeparator:se(()=>lF(n,r)),t:oF(n,r,i),n:ax(n,r),provide:uF({current:n,fallback:r,messages:i})}}}function AQ(e){const t=Le(e?.locale??"en"),n=Le(e?.fallback??"en"),r=z({en:RQ,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:se(()=>e?.decimalSeparator??lF(t,n)),t:oF(t,n,r),n:ax(t,n),provide:uF({current:t,fallback:n,messages:r})}}const kg=Symbol.for("vuetify:locale");function OQ(e){return e.name!=null}function NQ(e){const t=e?.adapter&&OQ(e?.adapter)?e?.adapter:AQ(e),n=LQ(t,e);return{...t,...n}}function Ur(){const e=ft(kg);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function DQ(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function LQ(e,t){const n=z(t?.rtl??DQ()),r=L(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:se(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Tr(){const e=ft(kg);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const hI={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},ul=be({location:String},"location");function Pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Tr();return{locationStyles:L(()=>{if(!e.location)return{};const{side:a,align:s}=lS(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function o(u){return n?n(u):0}const l={};return a!=="center"&&(t?l[hI[a]]=`calc(100% - ${o(a)}px)`:l[a]=0),s!=="center"?t?l[hI[s]]=`calc(100% - ${o(s)}px)`:l[s]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const FQ=be({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function MQ(e,t){const n=se(()=>!!e.chunkCount||!!e.chunkWidth),r=L(()=>{const o=bn(t);if(!o)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const l=Number(e.chunkCount);return(o-Number(e.chunkGap)*(l-1))/l}),i=se(()=>Number(e.chunkGap)),a=L(()=>{if(!n.value)return{};const o=Me(i.value),l=Me(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${l}, transparent ${l}, transparent)`,maskSize:`calc(${l} + ${o}) 100%`}});function s(o){const l=bn(t);if(!l)return o;const u=100*i.value/l,c=100*(r.value+i.value)/l,d=Math.floor((o+u)/c);return On(0,d*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:a,snapValueToChunk:s}}const $Q=be({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...FQ(),...Qe(),...ul({location:"top"}),...mr(),...zt(),...vn()},"VProgressLinear"),ni=De()({name:"VProgressLinear",props:$Q(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=z(),i=gt(e,"modelValue"),{isRtl:a,rtlClasses:s}=Tr(),{themeClasses:o}=xn(e),{locationStyles:l}=Pu(e),{textColorClasses:u,textColorStyles:c}=Gi(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:p}=$n(()=>e.bgColor||e.color),{backgroundColorClasses:h,backgroundColorStyles:g}=$n(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:v,backgroundColorStyles:y}=$n(()=>e.color),{roundedClasses:b}=Er(e),{intersectionRef:S,isIntersecting:w}=aF(),C=L(()=>parseFloat(e.max)),P=L(()=>parseFloat(e.height)),k=L(()=>On(parseFloat(e.bufferValue)/C.value*100,0,100)),R=L(()=>On(parseFloat(i.value)/C.value*100,0,100)),T=L(()=>a.value!==e.reverse),I=L(()=>e.indeterminate?"fade-transition":"slide-x-transition"),x=Le(0),{hasChunks:A,chunksMaskStyles:D,snapValueToChunk:B}=MQ(e,x);zi(A,()=>{const{resizeRef:O}=po(M=>x.value=M[0].contentRect.width);ar(()=>O.value=r.value)});const V=L(()=>A.value?B(k.value):k.value),$=L(()=>A.value?B(R.value):R.value);function N(O){if(!S.value)return;const{left:M,right:Y,width:X}=S.value.getBoundingClientRect(),ie=T.value?X-O.clientX+(Y-X):O.clientX-M;i.value=Math.round(ie/X*C.value)}return ar(()=>{S.value=r.value}),Fe(()=>f(e.tag,{ref:r,class:Te(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":T.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},b.value,o.value,s.value,e.class]),style:je([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Me(P.value):0,"--v-progress-linear-height":Me(P.value),...e.absolute?l.value:{}},D.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(i.value),C.value),onClick:e.clickable&&N},{default:()=>[e.stream&&E("div",{key:"stream",class:Te(["v-progress-linear__stream",u.value]),style:{...c.value,[T.value?"left":"right"]:Me(-P.value),borderTop:`${Me(P.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Me(P.value/4)})`,width:Me(100-k.value,"%"),"--v-progress-linear-stream-to":Me(P.value*(T.value?1:-1))}},null),E("div",{class:Te(["v-progress-linear__background",d.value]),style:je([p.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),E("div",{class:Te(["v-progress-linear__buffer",h.value]),style:je([g.value,{opacity:parseFloat(e.bufferOpacity),width:Me(V.value,"%")}])},null),f(so,{name:I.value},{default:()=>[e.indeterminate?E("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(O=>E("div",{key:O,class:Te(["v-progress-linear__indeterminate",O,v.value]),style:je(y.value)},null))]):E("div",{class:Te(["v-progress-linear__determinate",v.value]),style:je([y.value,{width:Me($.value,"%")}])},null)]}),n.default&&E("div",{class:"v-progress-linear__content"},[n.default({value:R.value,buffer:k.value})])]})),{}}}),Wv=be({loading:[Boolean,String]},"loader");function tm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();return{loaderClasses:se(()=>({[`${t}--loading`]:e.loading}))}}function Gv(e,t){let{slots:n}=t;return E("div",{class:Te(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||f(ni,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const VQ=["static","relative","fixed","absolute","sticky"],Ed=be({position:{type:String,validator:e=>VQ.includes(e)}},"position");function xd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();return{positionClasses:se(()=>e.position?`${t}--${e.position}`:void 0)}}function BQ(){const e=zn("useRoute");return L(()=>e?.proxy?.$route)}function cF(){return zn("useRouter")?.proxy?.$router}function qv(e,t){const n=xO("RouterLink"),r=se(()=>!!(e.href||e.to)),i=L(()=>r?.value||qT(t,"click")||qT(e,"click"));if(typeof n=="string"||!("useLink"in n)){const d=se(()=>e.href);return{isLink:r,isRouterLink:se(()=>!1),isClickable:i,href:d,linkProps:An({href:d})}}const a=n.useLink({to:se(()=>e.to||""),replace:se(()=>e.replace)}),s=L(()=>e.to?a:void 0),o=BQ(),l=L(()=>s.value?e.exact?o.value?s.value.isExactActive?.value&&ti(s.value.route.value.query,o.value.query):s.value.isExactActive?.value??!1:s.value.isActive?.value??!1:!1),u=L(()=>e.to?s.value?.route.value.href:e.href),c=se(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:i,isActive:l,route:s.value?.route,navigate:s.value?.navigate,href:u,linkProps:An({href:u,"aria-current":se(()=>l.value?"page":void 0),"aria-disabled":se(()=>e.disabled&&r.value?"true":void 0),tabindex:se(()=>e.disabled&&r.value?"-1":void 0)})}}const Kv=be({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Rb=!1;function UQ(e,t){let n=!1,r,i;cn&&e?.beforeEach&&(At(()=>{window.addEventListener("popstate",a),r=e.beforeEach((s,o,l)=>{Rb?n?t(l):l():setTimeout(()=>n?t(l):l()),Rb=!0}),i=e?.afterEach(()=>{Rb=!1})}),Rn(()=>{window.removeEventListener("popstate",a),r?.(),i?.()}));function a(s){s.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function jQ(e,t){Oe(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&At(()=>{t(n)})},{immediate:!0})}const hS=Symbol("rippleStop"),zQ=80;function gI(e,t){e.style.transform=t,e.style.webkitTransform=t}function gS(e){return e.constructor.name==="TouchEvent"}function dF(e){return e.constructor.name==="KeyboardEvent"}const HQ=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!dF(e)){const d=t.getBoundingClientRect(),p=gS(e)?e.touches[e.touches.length-1]:e;r=p.clientX-d.left,i=p.clientY-d.top}let a=0,s=.3;t._ripple?.circle?(s=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((r-a)**2+(i-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const o=`${(t.clientWidth-a*2)/2}px`,l=`${(t.clientHeight-a*2)/2}px`,u=n.center?o:`${r-a}px`,c=n.center?l:`${i-a}px`;return{radius:a,scale:s,x:u,y:c,centerX:o,centerY:l}},_g={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:a,scale:s,x:o,y:l,centerX:u,centerY:c}=HQ(e,t,n),d=`${a*2}px`;i.className="v-ripple__animation",i.style.width=d,i.style.height=d,t.appendChild(r);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),gI(i,`translate(${o}, ${l}) scale3d(${s},${s},${s})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),gI(i,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(a=>!a.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function fF(e){return typeof e>"u"||!!e}function tp(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[hS])){if(e[hS]=!0,gS(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||dF(e),n._ripple.class&&(t.class=n._ripple.class),gS(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_g.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},zQ)}else _g.show(e,n,t)}}function Tg(e){e[hS]=!0}function rs(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{rs(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_g.hide(t)}}function pF(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let np=!1;function WQ(e,t){!np&&t.includes(e.key)&&(np=!0,tp(e))}function mF(e){np=!1,rs(e)}function hF(e){np&&(np=!1,rs(e))}function gF(e,t,n){const{value:r,modifiers:i}=t,a=fF(r);a||_g.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=i.center,e._ripple.circle=i.circle;const s=Qf(r)?r:{};s.class&&(e._ripple.class=s.class);const o=s.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>WQ(l,o),a&&!n){if(i.stop){e.addEventListener("touchstart",Tg,{passive:!0}),e.addEventListener("mousedown",Tg);return}e.addEventListener("touchstart",tp,{passive:!0}),e.addEventListener("touchend",rs,{passive:!0}),e.addEventListener("touchmove",pF,{passive:!0}),e.addEventListener("touchcancel",rs),e.addEventListener("mousedown",tp),e.addEventListener("mouseup",rs),e.addEventListener("mouseleave",rs),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",mF),e.addEventListener("blur",hF),e.addEventListener("dragstart",rs,{passive:!0})}else!a&&n&&vF(e)}function vF(e){e.removeEventListener("touchstart",Tg),e.removeEventListener("mousedown",Tg),e.removeEventListener("touchstart",tp),e.removeEventListener("touchend",rs),e.removeEventListener("touchmove",pF),e.removeEventListener("touchcancel",rs),e.removeEventListener("mousedown",tp),e.removeEventListener("mouseup",rs),e.removeEventListener("mouseleave",rs),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",mF),e.removeEventListener("blur",hF),e.removeEventListener("dragstart",rs)}function GQ(e,t){gF(e,t,!1)}function qQ(e){vF(e),delete e._ripple}function KQ(e,t){if(t.value===t.oldValue)return;const n=fF(t.oldValue);gF(e,t,n)}const bi={mounted:GQ,unmounted:qQ,updated:KQ},yF=be({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:rF},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:et,appendIcon:et,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...As(),...Qe(),..._r(),...Vr(),...xi(),...Sd(),...Wv(),...ul(),...Ed(),...mr(),...Kv(),...wd(),...zt({tag:"button"}),...vn(),...ea({variant:"elevated"})},"VBtn"),te=De()({name:"VBtn",props:yF(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=xn(e),{borderClasses:a}=Zs(e),{densityClasses:s}=us(e),{dimensionStyles:o}=Br(e),{elevationClasses:l}=Ji(e),{loaderClasses:u}=tm(e),{locationStyles:c}=Pu(e),{positionClasses:d}=xd(e),{roundedClasses:p}=Er(e),{sizeClasses:h,sizeStyles:g}=em(e),v=fu(e,e.symbol,!1),y=qv(e,n),b=L(()=>e.active!==void 0?e.active:y.isRouterLink.value?y.isActive?.value:v?.isSelected.value),S=se(()=>b.value?e.activeColor??e.color:e.color),w=L(()=>({color:v?.isSelected.value&&(!y.isLink.value||y.isActive?.value)||!v||y.isActive?.value?S.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:C,colorStyles:P,variantClasses:k}=Tu(w),R=L(()=>v?.disabled.value||e.disabled),T=se(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),I=L(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function x(A){R.value||y.isLink.value&&(A.metaKey||A.ctrlKey||A.shiftKey||A.button!==0||n.target==="_blank")||(y.isRouterLink.value?y.navigate?.(A):v?.toggle())}return jQ(y,v?.select),Fe(()=>{const A=y.isLink.value?"a":e.tag,D=!!(e.prependIcon||r.prepend),B=!!(e.appendIcon||r.append),V=!!(e.icon&&e.icon!==!0);return un(f(A,ve(y.linkProps,{type:A==="a"?void 0:"button",class:["v-btn",v?.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":e.block,"v-btn--disabled":R.value,"v-btn--elevated":T.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],i.value,a.value,C.value,s.value,l.value,u.value,d.value,p.value,h.value,k.value,e.class],style:[P.value,o.value,c.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:R.value&&A!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:x,value:I.value}),{default:()=>[ll(!0,"v-btn"),!e.icon&&D&&E("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?f(sn,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):f(j,{key:"prepend-icon",icon:e.prependIcon},null)]),E("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&V?f(j,{key:"content-icon",icon:e.icon},null):f(sn,{key:"content-defaults",disabled:!V,defaults:{VIcon:{icon:e.icon}}},{default:()=>[r.default?.()??U(e.text)]})]),!e.icon&&B&&E("span",{key:"append",class:"v-btn__append"},[r.append?f(sn,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):f(j,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&E("span",{key:"loader",class:"v-btn__loader"},[r.loader?.()??f(Qn,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[bi,!R.value&&e.ripple,"",{center:!!e.icon}]])}),{group:v}}}),YQ=be({...Qe(),...zt()},"VCardActions"),rn=De()({name:"VCardActions",props:YQ(),setup(e,t){let{slots:n}=t;return Sr({VBtn:{slim:!0,variant:"text"}}),Fe(()=>f(e.tag,{class:Te(["v-card-actions",e.class]),style:je(e.style)},n)),{}}}),XQ=be({opacity:[Number,String],...Qe(),...zt()},"VCardSubtitle"),Yv=De()({name:"VCardSubtitle",props:XQ(),setup(e,t){let{slots:n}=t;return Fe(()=>f(e.tag,{class:Te(["v-card-subtitle",e.class]),style:je([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),ot=_u("v-card-title");function JQ(e){return{aspectStyles:L(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const bF=be({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Qe(),...Vr()},"VResponsive"),vI=De()({name:"VResponsive",props:bF(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=JQ(e),{dimensionStyles:i}=Br(e);return Fe(()=>E("div",{class:Te(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:je([i.value,e.style])},[E("div",{class:"v-responsive__sizer",style:je(r.value)},null),n.additional?.(),n.default&&E("div",{class:Te(["v-responsive__content",e.contentClass])},[n.default()])])),{}}}),Cd=be({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),pa=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:i,group:a,...s}=e,{component:o=a?xv:so,...l}=Qf(r)?r:{};let u;return Qf(r)?u=ve(l,IJ({disabled:i,group:a}),s):u=ve({name:i||!r?"":r},s),Rs(o,u,n)};function QQ(e,t){if(!WE)return;const n=t.modifiers||{},r=t.value,{handler:i,options:a}=typeof r=="object"?r:{handler:r,options:{}},s=new IntersectionObserver(function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=e._observe?.[t.instance.$.uid];if(!u)return;const c=o.some(d=>d.isIntersecting);i&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&i(c,o,l),c&&n.once?SF(e,t):u.init=!0},a);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:s},s.observe(e)}function SF(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Uc={mounted:QQ,unmounted:SF},ZQ=be({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...bF(),...Qe(),...mr(),...Cd()},"VImg"),ri=De()({name:"VImg",directives:{vIntersect:Uc},props:ZQ(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:i,backgroundColorStyles:a}=$n(()=>e.color),{roundedClasses:s}=Er(e),o=zn("VImg"),l=Le(""),u=z(),c=Le(e.eager?"loading":"idle"),d=Le(),p=Le(),h=L(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=L(()=>h.value.aspect||d.value/p.value||0);Oe(()=>e.src,()=>{v(c.value!=="idle")}),Oe(g,(D,B)=>{!D&&B&&u.value&&C(u.value)}),nl(()=>v());function v(D){if(!(e.eager&&D)&&!(WE&&!D&&!e.eager)){if(c.value="loading",h.value.lazySrc){const B=new Image;B.src=h.value.lazySrc,C(B,null)}h.value.src&&At(()=>{n("loadstart",u.value?.currentSrc||h.value.src),setTimeout(()=>{if(!o.isUnmounted)if(u.value?.complete){if(u.value.naturalWidth||b(),c.value==="error")return;g.value||C(u.value,null),c.value==="loading"&&y()}else g.value||C(u.value),S()})})}}function y(){o.isUnmounted||(S(),C(u.value),c.value="loaded",n("load",u.value?.currentSrc||h.value.src))}function b(){o.isUnmounted||(c.value="error",n("error",u.value?.currentSrc||h.value.src))}function S(){const D=u.value;D&&(l.value=D.currentSrc||D.src)}let w=-1;wr(()=>{clearTimeout(w)});function C(D){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const V=()=>{if(clearTimeout(w),o.isUnmounted)return;const{naturalHeight:$,naturalWidth:N}=D;$||N?(d.value=N,p.value=$):!D.complete&&c.value==="loading"&&B!=null?w=window.setTimeout(V,B):(D.currentSrc.endsWith(".svg")||D.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,p.value=1)};V()}const P=se(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),k=()=>{if(!h.value.src||c.value==="idle")return null;const D=E("img",{class:Te(["v-img__img",P.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.src,srcset:h.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:y,onError:b},null),B=r.sources?.();return f(pa,{transition:e.transition,appear:!0},{default:()=>[un(B?E("picture",{class:"v-img__picture"},[B,D]):D,[[ai,c.value==="loaded"]])]})},R=()=>f(pa,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&E("img",{class:Te(["v-img__img","v-img__img--preload",P.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),T=()=>r.placeholder?f(pa,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&E("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?f(pa,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&E("div",{class:"v-img__error"},[r.error()])]}):null,x=()=>e.gradient?E("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,A=Le(!1);{const D=Oe(g,B=>{B&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{A.value=!0})}),D())})}return Fe(()=>{const D=vI.filterProps(e);return un(f(vI,ve({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!A.value},i.value,s.value,e.class],style:[{width:Me(e.width==="auto"?d.value:e.width)},a.value,e.style]},D,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>E(Ne,null,[f(k,null,null),f(R,null,null),f(x,null,null),f(T,null,null),f(I,null,null)]),default:r.default}),[[Uc,{handler:v,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:p}}}),eZ=be({start:Boolean,end:Boolean,icon:et,image:String,text:String,...As(),...Qe(),..._r(),...mr(),...wd(),...zt(),...vn(),...ea({variant:"flat"})},"VAvatar"),jn=De()({name:"VAvatar",props:eZ(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=xn(e),{borderClasses:i}=Zs(e),{colorClasses:a,colorStyles:s,variantClasses:o}=Tu(e),{densityClasses:l}=us(e),{roundedClasses:u}=Er(e),{sizeClasses:c,sizeStyles:d}=em(e);return Fe(()=>f(e.tag,{class:Te(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,i.value,a.value,l.value,u.value,c.value,o.value,e.class]),style:je([s.value,d.value,e.style])},{default:()=>[n.default?f(sn,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?f(ri,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?f(j,{key:"icon",icon:e.icon},null):e.text,ll(!1,"v-avatar")]})),{}}}),tZ=be({appendAvatar:String,appendIcon:et,prependAvatar:String,prependIcon:et,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Qe(),..._r(),...zt()},"VCardItem"),nZ=De()({name:"VCardItem",props:tZ(),setup(e,t){let{slots:n}=t;return Fe(()=>{const r=!!(e.prependAvatar||e.prependIcon),i=!!(r||n.prepend),a=!!(e.appendAvatar||e.appendIcon),s=!!(a||n.append),o=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return f(e.tag,{class:Te(["v-card-item",e.class]),style:je(e.style)},{default:()=>[i&&E("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?f(sn,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):E(Ne,null,[e.prependAvatar&&f(jn,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f(j,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),E("div",{class:"v-card-item__content"},[o&&f(ot,{key:"title"},{default:()=>[n.title?.()??U(e.title)]}),l&&f(Yv,{key:"subtitle"},{default:()=>[n.subtitle?.()??U(e.subtitle)]}),n.default?.()]),s&&E("div",{key:"append",class:"v-card-item__append"},[n.append?f(sn,{key:"append-defaults",disabled:!a,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):E(Ne,null,[e.appendIcon&&f(j,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f(jn,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),rZ=be({opacity:[Number,String],...Qe(),...zt()},"VCardText"),Ye=De()({name:"VCardText",props:rZ(),setup(e,t){let{slots:n}=t;return Fe(()=>f(e.tag,{class:Te(["v-card-text",e.class]),style:je([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),iZ=be({appendAvatar:String,appendIcon:et,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...As(),...Qe(),..._r(),...Vr(),...xi(),...Wv(),...ul(),...Ed(),...mr(),...Kv(),...zt(),...vn(),...ea({variant:"elevated"})},"VCard"),$e=De()({name:"VCard",directives:{vRipple:bi},props:iZ(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=xn(e),{borderClasses:a}=Zs(e),{colorClasses:s,colorStyles:o,variantClasses:l}=Tu(e),{densityClasses:u}=us(e),{dimensionStyles:c}=Br(e),{elevationClasses:d}=Ji(e),{loaderClasses:p}=tm(e),{locationStyles:h}=Pu(e),{positionClasses:g}=xd(e),{roundedClasses:v}=Er(e),y=qv(e,n),b=Le(void 0);return Oe(()=>e.loading,(S,w)=>{b.value=!S&&typeof w=="string"?w:typeof S=="boolean"?void 0:S},{immediate:!0}),Fe(()=>{const S=e.link!==!1&&y.isLink.value,w=!e.disabled&&e.link!==!1&&(e.link||y.isClickable.value),C=S?"a":e.tag,P=!!(r.title||e.title!=null),k=!!(r.subtitle||e.subtitle!=null),R=P||k,T=!!(r.append||e.appendAvatar||e.appendIcon),I=!!(r.prepend||e.prependAvatar||e.prependIcon),x=!!(r.image||e.image),A=R||I||T,D=!!(r.text||e.text!=null);return un(f(C,ve(y.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":w},i.value,a.value,s.value,u.value,d.value,p.value,g.value,v.value,l.value,e.class],style:[o.value,c.value,h.value,e.style],onClick:w&&y.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>[x&&E("div",{key:"image",class:"v-card__image"},[r.image?f(sn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):f(ri,{key:"image-img",cover:!0,src:e.image},null)]),f(Gv,{name:"v-card",active:!!e.loading,color:b.value},{default:r.loader}),A&&f(nZ,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),D&&f(Ye,{key:"text"},{default:()=>[r.text?.()??e.text]}),r.default?.(),r.actions&&f(rn,null,{default:r.actions}),ll(w,"v-card")]}),[[bi,w&&e.ripple]])}),{}}}),sZ=be({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function cs(e,t,n){return De()({name:e,props:sZ({mode:n,origin:t}),setup(r,i){let{slots:a}=i;const s={onBeforeEnter(o){r.origin&&(o.style.transformOrigin=r.origin)},onLeave(o){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=o;o._transitionInitialStyles={position:o.style.position,top:o.style.top,left:o.style.left,width:o.style.width,height:o.style.height},o.style.position="absolute",o.style.top=`${l}px`,o.style.left=`${u}px`,o.style.width=`${c}px`,o.style.height=`${d}px`}r.hideOnLeave&&o.style.setProperty("display","none","important")},onAfterLeave(o){if(r.leaveAbsolute&&o?._transitionInitialStyles){const{position:l,top:u,left:c,width:d,height:p}=o._transitionInitialStyles;delete o._transitionInitialStyles,o.style.position=l||"",o.style.top=u||"",o.style.left=c||"",o.style.width=d||"",o.style.height=p||""}}};return()=>{const o=r.group?xv:so;return Rs(o,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:s},a.default)}}})}function wF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return De()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:cu()},group:Boolean},setup(r,i){let{slots:a}=i;const s=r.group?xv:so;return()=>Rs(s,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},a.default)}})}function EF(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=En(`offset-${n}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[n]:s.style[n]}},onEnter(s){const o=s._initialStyle;if(!o)return;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const l=`${s[r]}px`;s.style[n]="0",s.offsetHeight,s.style.transition=o.transition,e&&s._parent&&s._parent.classList.add(e),requestAnimationFrame(()=>{s.style[n]=l})},onAfterEnter:a,onEnterCancelled:a,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[n]:s.style[n]},s.style.overflow="hidden",s.style[n]=`${s[r]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(s){e&&s._parent&&s._parent.classList.remove(e),a(s)}function a(s){if(!s._initialStyle)return;const o=s._initialStyle[n];s.style.overflow=s._initialStyle.overflow,o!=null&&(s.style[n]=o),delete s._initialStyle}}const aZ=be({target:[Object,Array]},"v-dialog-transition"),Ab=new WeakMap,ox=De()({name:"VDialogTransition",props:aZ(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,a){await new Promise(p=>requestAnimationFrame(p)),await new Promise(p=>requestAnimationFrame(p)),i.style.visibility="";const s=bI(e.target,i),{x:o,y:l,sx:u,sy:c,speed:d}=s;if(Ab.set(i,s),cu())$a(i,[{opacity:0},{}],{duration:125*d,easing:oI}).finished.then(()=>a());else{const p=$a(i,[{transform:`translate(${o}px, ${l}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*d,easing:oI});yI(i)?.forEach(h=>{$a(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*d,easing:Zf})}),p.finished.then(()=>a())}},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,a){await new Promise(p=>requestAnimationFrame(p));let s;!Ab.has(i)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?s=bI(e.target,i):s=Ab.get(i);const{x:o,y:l,sx:u,sy:c,speed:d}=s;cu()?$a(i,[{},{opacity:0}],{duration:85*d,easing:lI}).finished.then(()=>a()):($a(i,[{},{transform:`translate(${o}px, ${l}px) scale(${u}, ${c})`,opacity:0}],{duration:125*d,easing:lI}).finished.then(()=>a()),yI(i)?.forEach(h=>{$a(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*d,easing:Zf})}))},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>e.target?f(so,ve({name:"dialog-transition"},r,{css:!1}),n):f(so,{name:"dialog-transition"},n)}});function yI(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function bI(e,t){const n=HL(e),r=JE(t),[i,a]=getComputedStyle(t).transformOrigin.split(" ").map(b=>parseFloat(b)),[s,o]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;s==="left"||o==="left"?l-=n.width/2:(s==="right"||o==="right")&&(l+=n.width/2);let u=n.top+n.height/2;s==="top"||o==="top"?u-=n.height/2:(s==="bottom"||o==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,p=Math.max(1,c,d),h=c/p||0,g=d/p||0,v=r.width*r.height/(window.innerWidth*window.innerHeight),y=v>.12?Math.min(1.5,(v-.12)*10+1):1;return{x:l-(i+r.left),y:u-(a+r.top),sx:h,sy:g,speed:y}}cs("fab-transition","center center","out-in");cs("dialog-bottom-transition");cs("dialog-top-transition");const SI=cs("fade-transition"),xF=cs("scale-transition");cs("scroll-x-transition");cs("scroll-x-reverse-transition");const oZ=cs("scroll-y-transition");cs("scroll-y-reverse-transition");cs("slide-x-transition");cs("slide-x-reverse-transition");const Xv=cs("slide-y-transition");cs("slide-y-reverse-transition");const lx=wF("expand-transition",EF()),CF=wF("expand-x-transition",EF("",!0)),Jv=["sm","md","lg","xl","xxl"],vS=Symbol.for("vuetify:display"),wI={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},lZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wI;return ei(wI,e)};function EI(e){return cn&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function xI(e){return cn&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function CI(e){const t=cn&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const r=n(/android/i),i=n(/iphone|ipad|ipod/i),a=n(/cordova/i),s=n(/electron/i),o=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),p=n(/mac/i),h=n(/linux/i);return{android:r,ios:i,cordova:a,electron:s,chrome:o,edge:l,firefox:u,opera:c,win:d,mac:p,linux:h,touch:yJ,ssr:t==="ssr"}}function uZ(e,t){const{thresholds:n,mobileBreakpoint:r}=lZ(e),i=Le(xI(t)),a=Le(CI(t)),s=An({}),o=Le(EI(t));function l(){i.value=xI(),o.value=EI()}function u(){l(),a.value=CI()}return ar(()=>{const c=o.value<n.sm,d=o.value<n.md&&!c,p=o.value<n.lg&&!(d||c),h=o.value<n.xl&&!(p||d||c),g=o.value<n.xxl&&!(h||p||d||c),v=o.value>=n.xxl,y=c?"xs":d?"sm":p?"md":h?"lg":g?"xl":"xxl",b=typeof r=="number"?r:n[r],S=o.value<b;s.xs=c,s.sm=d,s.md=p,s.lg=h,s.xl=g,s.xxl=v,s.smAndUp=!c,s.mdAndUp=!(c||d),s.lgAndUp=!(c||d||p),s.xlAndUp=!(c||d||p||h),s.smAndDown=!(p||h||g||v),s.mdAndDown=!(h||g||v),s.lgAndDown=!(g||v),s.xlAndDown=!v,s.name=y,s.height=i.value,s.width=o.value,s.mobile=S,s.mobileBreakpoint=r,s.platform=a.value,s.thresholds=n}),cn&&(window.addEventListener("resize",l,{passive:!0}),Rn(()=>{window.removeEventListener("resize",l)},!0)),{...Ca(s),update:u,ssr:!!t}}const Ru=be({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function ta(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();const n=ft(vS);if(!n)throw new Error("Could not find Vuetify display injection");const r=L(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1),i=se(()=>t?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:i,mobile:r}}const kF=Symbol.for("vuetify:goto");function _F(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:aQ}}function cZ(e){return ux(e)??(document.scrollingElement||document.body)}function ux(e){return typeof e=="string"?document.querySelector(e):qE(e)}function Ob(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=ux(e),i=0;for(;r;)i+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return i}function dZ(e,t){return{rtl:t.isRtl,options:ei(_F(),e)}}async function kI(e,t,n,r){const i=n?"scrollLeft":"scrollTop",a=ei(r?.options??_F(),t),s=r?.rtl.value,o=(typeof e=="number"?e:ux(e))??0,l=a.container==="parent"&&o instanceof HTMLElement?o.parentElement:cZ(a.container),u=cu()?a.patterns.instant:typeof a.easing=="function"?a.easing:a.patterns[a.easing];if(!u)throw new TypeError(`Easing function "${a.easing}" not found.`);let c;if(typeof o=="number")c=Ob(o,n,s);else if(c=Ob(o,n,s)-Ob(l,n,s),a.layout){const g=window.getComputedStyle(o).getPropertyValue("--v-layout-top");g&&(c-=parseInt(g,10))}c+=a.offset,c=pZ(l,c,!!s,!!n);const d=l[i]??0;if(c===d)return Promise.resolve(c);const p=performance.now();return new Promise(h=>requestAnimationFrame(function g(v){const b=(v-p)/a.duration,S=Math.floor(d+(c-d)*u(On(b,0,1)));if(l[i]=S,b>=1&&Math.abs(S-l[i])<10)return h(c);if(b>2)return h(l[i]);requestAnimationFrame(g)}))}function fZ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=ft(kF),{isRtl:n}=Tr();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:se(()=>t.rtl.value||n.value)};async function i(a,s){return kI(a,ei(e,s),!1,r)}return i.horizontal=async(a,s)=>kI(a,ei(e,s),!0,r),i}function pZ(e,t,n,r){const{scrollWidth:i,scrollHeight:a}=e,[s,o]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(i-s),u=0):(l=0,u=i-s):(l=0,u=a+-o),On(t,l,u)}function mZ(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:i}=e;const a=rp(i,n),s=TF(i,r,n),o=rp(i,t),l=IF(i,t),u=o*.4;return s>l?l-u:s+a<l+o?l-a+o+u:s}function hZ(e){let{selectedElement:t,containerElement:n,isHorizontal:r}=e;const i=rp(r,n),a=IF(r,t),s=rp(r,t);return a-i/2+s/2}function _I(e,t){return t?.[e?"scrollWidth":"scrollHeight"]||0}function gZ(e,t){return t?.[e?"clientWidth":"clientHeight"]||0}function TF(e,t,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:i,scrollWidth:a}=n;return e?t?a-i+r:r:n.scrollTop}function rp(e,t){return t?.[e?"offsetWidth":"offsetHeight"]||0}function IF(e,t){return t?.[e?"offsetLeft":"offsetTop"]||0}const PF=Symbol.for("vuetify:v-slide-group"),cx=be({centerActive:Boolean,scrollToActive:{type:Boolean,default:!0},contentClass:null,direction:{type:String,default:"horizontal"},symbol:{type:null,default:PF},nextIcon:{type:et,default:"$next"},prevIcon:{type:et,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile","never"].includes(e)},...Qe(),...Ru({mobile:null}),...zt(),...bd({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Ig=De()({name:"VSlideGroup",props:cx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Tr(),{displayClasses:i,mobile:a}=ta(e),s=Iu(e,e.symbol),o=Le(!1),l=Le(0),u=Le(0),c=Le(0),d=L(()=>e.direction==="horizontal"),{resizeRef:p,contentRect:h}=po(),{resizeRef:g,contentRect:v}=po(),y=fZ(),b=L(()=>({container:p.el,duration:200,easing:"easeOutQuart"})),S=L(()=>s.selected.value.length?s.items.value.findIndex(Z=>Z.id===s.selected.value[0]):-1),w=L(()=>s.selected.value.length?s.items.value.findIndex(Z=>Z.id===s.selected.value[s.selected.value.length-1]):-1);if(cn){let Z=-1;Oe(()=>[s.selected.value,h.value,v.value,d.value],()=>{cancelAnimationFrame(Z),Z=requestAnimationFrame(()=>{if(h.value&&v.value){const G=d.value?"width":"height";u.value=h.value[G],c.value=v.value[G],o.value=u.value+1<c.value}if(e.scrollToActive&&S.value>=0&&g.el){const G=g.el.children[w.value];P(G,e.centerActive)}})})}const C=Le(!1);function P(Z,G){let le=0;G?le=hZ({containerElement:p.el,isHorizontal:d.value,selectedElement:Z}):le=mZ({containerElement:p.el,isHorizontal:d.value,isRtl:r.value,selectedElement:Z}),k(le)}function k(Z){if(!cn||!p.el)return;const G=rp(d.value,p.el),le=TF(d.value,r.value,p.el);if(!(_I(d.value,p.el)<=G||Math.abs(Z-le)<16)){if(d.value&&r.value&&p.el){const{scrollWidth:ue,offsetWidth:W}=p.el;Z=ue-W-Z}d.value?y.horizontal(Z,b.value):y(Z,b.value)}}function R(Z){const{scrollTop:G,scrollLeft:le}=Z.target;l.value=d.value?le:G}function T(Z){if(C.value=!0,!(!o.value||!g.el)){for(const G of Z.composedPath())for(const le of g.el.children)if(le===G){P(le);return}}}function I(Z){C.value=!1}let x=!1;function A(Z){!x&&!C.value&&!(Z.relatedTarget&&g.el?.contains(Z.relatedTarget))&&$(),x=!1}function D(){x=!0}function B(Z){if(!g.el)return;function G(le){Z.preventDefault(),$(le)}d.value?Z.key==="ArrowRight"?G(r.value?"prev":"next"):Z.key==="ArrowLeft"&&G(r.value?"next":"prev"):Z.key==="ArrowDown"?G("next"):Z.key==="ArrowUp"&&G("prev"),Z.key==="Home"?G("first"):Z.key==="End"&&G("last")}function V(Z,G){if(!Z)return;let le=Z;do le=le?.[G==="next"?"nextElementSibling":"previousElementSibling"];while(le?.hasAttribute("disabled"));return le}function $(Z){if(!g.el)return;let G;if(!Z)G=Yl(g.el)[0];else if(Z==="next"){if(G=V(g.el.querySelector(":focus"),Z),!G)return $("first")}else if(Z==="prev"){if(G=V(g.el.querySelector(":focus"),Z),!G)return $("last")}else Z==="first"?(G=g.el.firstElementChild,G?.hasAttribute("disabled")&&(G=V(G,"next"))):Z==="last"&&(G=g.el.lastElementChild,G?.hasAttribute("disabled")&&(G=V(G,"prev")));G&&G.focus({preventScroll:!0})}function N(Z){const G=d.value&&r.value?-1:1,le=(Z==="prev"?-G:G)*u.value;let ee=l.value+le;if(d.value&&r.value&&p.el){const{scrollWidth:ue,offsetWidth:W}=p.el;ee+=ue-W}k(ee)}const O=L(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),M=L(()=>o.value||Math.abs(l.value)>0),Y=L(()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!a.value;case!0:return M.value;case"mobile":return a.value||M.value;default:return!a.value&&M.value}}),X=L(()=>Math.abs(l.value)>1),ie=L(()=>{if(!p.value||!M.value)return!1;const Z=_I(d.value,p.el),G=gZ(d.value,p.el);return Z-G-Math.abs(l.value)>1});return Fe(()=>f(e.tag,{class:Te(["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":Y.value,"v-slide-group--is-overflowing":o.value},i.value,e.class]),style:je(e.style),tabindex:C.value||s.selected.value.length?-1:0,onFocus:A},{default:()=>[Y.value&&E("div",{key:"prev",class:Te(["v-slide-group__prev",{"v-slide-group__prev--disabled":!X.value}]),onMousedown:D,onClick:()=>X.value&&N("prev")},[n.prev?.(O.value)??f(SI,null,{default:()=>[f(j,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),E("div",{key:"container",ref:p,class:Te(["v-slide-group__container",e.contentClass]),onScroll:R},[E("div",{ref:g,class:"v-slide-group__content",onFocusin:T,onFocusout:I,onKeydown:B},[n.default?.(O.value)])]),Y.value&&E("div",{key:"next",class:Te(["v-slide-group__next",{"v-slide-group__next--disabled":!ie.value}]),onMousedown:D,onClick:()=>ie.value&&N("next")},[n.next?.(O.value)??f(SI,null,{default:()=>[f(j,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]})),{selected:s.selected,scrollTo:N,scrollOffset:l,focus:$,hasPrev:X,hasNext:ie}}}),RF=Symbol.for("vuetify:v-chip-group"),vZ=be({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:ti},...cx({scrollToActive:!1}),...Qe(),...bd({selectedClass:"v-chip--selected"}),...zt(),...vn(),...ea({variant:"tonal"})},"VChipGroup"),TI=De()({name:"VChipGroup",props:vZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=xn(e),{isSelected:i,select:a,next:s,prev:o,selected:l}=Iu(e,RF);return Sr({VChip:{baseColor:se(()=>e.baseColor),color:se(()=>e.color),disabled:se(()=>e.disabled),filter:se(()=>e.filter),variant:se(()=>e.variant)}}),Fe(()=>{const u=Ig.filterProps(e);return f(Ig,ve(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>[n.default?.({isSelected:i,select:a,next:s,prev:o,selected:l.value})]})}),{}}}),yZ=be({activeClass:String,appendAvatar:String,appendIcon:et,baseColor:String,closable:Boolean,closeIcon:{type:et,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:et,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:Lr(),onClickOnce:Lr(),...As(),...Qe(),..._r(),...xi(),...Sd(),...mr(),...Kv(),...wd(),...zt({tag:"span"}),...vn(),...ea({variant:"tonal"})},"VChip"),Ke=De()({name:"VChip",directives:{vRipple:bi},props:yZ(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{t:a}=Ur(),{borderClasses:s}=Zs(e),{densityClasses:o}=us(e),{elevationClasses:l}=Ji(e),{roundedClasses:u}=Er(e),{sizeClasses:c}=em(e),{themeClasses:d}=xn(e),p=gt(e,"modelValue"),h=fu(e,RF,!1),g=fu(e,PF,!1),v=qv(e,n),y=se(()=>e.link!==!1&&v.isLink.value),b=L(()=>!e.disabled&&e.link!==!1&&(!!h||e.link||v.isClickable.value)),S=se(()=>({"aria-label":a(e.closeLabel),disabled:e.disabled,onClick(T){T.preventDefault(),T.stopPropagation(),p.value=!1,r("click:close",T)}}));Oe(p,T=>{T?(h?.register(),g?.register()):(h?.unregister(),g?.unregister())});const{colorClasses:w,colorStyles:C,variantClasses:P}=Tu(()=>({color:!h||h.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function k(T){r("click",T),b.value&&(v.navigate?.(T),h?.toggle())}function R(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),k(T))}return()=>{const T=v.isLink.value?"a":e.tag,I=!!(e.appendIcon||e.appendAvatar),x=!!(I||i.append),A=!!(i.close||e.closable),D=!!(i.filter||e.filter)&&h,B=!!(e.prependIcon||e.prependAvatar),V=!!(B||i.prepend);return p.value&&un(f(T,ve(v.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":b.value,"v-chip--filter":D,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&v.isActive?.value},d.value,s.value,w.value,o.value,l.value,u.value,c.value,P.value,h?.selectedClass.value,e.class],style:[C.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:b.value?0:void 0,onClick:k,onKeydown:b.value&&!y.value&&R}),{default:()=>[ll(b.value,"v-chip"),D&&f(CF,{key:"filter"},{default:()=>[un(E("div",{class:"v-chip__filter"},[i.filter?f(sn,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):f(j,{key:"filter-icon",icon:e.filterIcon},null)]),[[ai,h.isSelected.value]])]}),V&&E("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?f(sn,{key:"prepend-defaults",disabled:!B,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):E(Ne,null,[e.prependIcon&&f(j,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&f(jn,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),E("div",{class:"v-chip__content","data-no-activator":""},[i.default?.({isSelected:h?.isSelected.value,selectedClass:h?.selectedClass.value,select:h?.select,toggle:h?.toggle,value:h?.value.value,disabled:e.disabled})??U(e.text)]),x&&E("div",{key:"append",class:"v-chip__append"},[i.append?f(sn,{key:"append-defaults",disabled:!I,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):E(Ne,null,[e.appendIcon&&f(j,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&f(jn,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),A&&E("button",ve({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},S.value),[i.close?f(sn,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):f(j,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}),[[bi,b.value&&e.ripple,null]])}}});function Nb(e,t){return{x:e.x+t.x,y:e.y+t.y}}function bZ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function II(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,i=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,a=n==="top"?0:n==="bottom"?t.height:n;return Nb({x:i,y:a},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,i=n==="left"?0:n==="right"?t.width:n,a=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return Nb({x:i,y:a},t)}return Nb({x:t.width/2,y:t.height/2},t)}const AF={static:EZ,connected:CZ},SZ=be({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in AF},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function wZ(e,t){const n=z({}),r=z();cn&&zi(()=>!!(t.isActive.value&&e.locationStrategy),o=>{Oe(()=>e.locationStrategy,o),Rn(()=>{window.removeEventListener("resize",i),visualViewport?.removeEventListener("resize",a),visualViewport?.removeEventListener("scroll",s),r.value=void 0}),window.addEventListener("resize",i,{passive:!0}),visualViewport?.addEventListener("resize",a,{passive:!0}),visualViewport?.addEventListener("scroll",s,{passive:!0}),typeof e.locationStrategy=="function"?r.value=e.locationStrategy(t,e,n)?.updateLocation:r.value=AF[e.locationStrategy](t,e,n)?.updateLocation});function i(o){r.value?.(o)}function a(o){r.value?.(o)}function s(o){r.value?.(o)}return{contentStyles:n,updateLocation:r}}function EZ(){}function xZ(e,t){const n=JE(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function CZ(e,t,n){(Array.isArray(e.target.value)||lQ(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:a}=YE(()=>{const b=lS(t.location,e.isRtl.value),S=t.origin==="overlap"?b:t.origin==="auto"?Tb(b):lS(t.origin,e.isRtl.value);return b.side===S.side&&b.align===Ib(S).align?{preferredAnchor:KT(b),preferredOrigin:KT(S)}:{preferredAnchor:b,preferredOrigin:S}}),[s,o,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(b=>L(()=>{const S=parseFloat(t[b]);return isNaN(S)?1/0:S})),c=L(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const b=t.offset.split(" ").map(parseFloat);return b.length<2&&b.push(0),b}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1,p=-1;const h=new BL(4),g=new ResizeObserver(()=>{if(!d)return;if(requestAnimationFrame(S=>{S!==p&&h.clear(),requestAnimationFrame(w=>{p=w})}),h.isFull){const S=h.values();if(ti(S.at(-1),S.at(-3))&&!ti(S.at(-1),S.at(-2)))return}const b=y();b&&h.push(b.flipped)});let v=new Ss({x:0,y:0,width:0,height:0});Oe(e.target,(b,S)=>{S&&!Array.isArray(S)&&g.unobserve(S),Array.isArray(b)?ti(b,S)||y():b&&g.observe(b)},{immediate:!0}),Oe(e.contentEl,(b,S)=>{S&&g.unobserve(S),b&&g.observe(b)},{immediate:!0}),Rn(()=>{g.disconnect()});function y(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(v=HL(e.target.value));const b=xZ(e.contentEl.value,e.isRtl.value),S=Cg(e.contentEl.value),w=Number(t.viewportMargin);S.length||(S.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(b.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),b.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const C=S.reduce((B,V)=>{const $=RJ(V);return B?new Ss({x:Math.max(B.left,$.left),y:Math.max(B.top,$.top),width:Math.min(B.right,$.right)-Math.max(B.left,$.left),height:Math.min(B.bottom,$.bottom)-Math.max(B.top,$.top)}):$},void 0);t.stickToTarget?(C.x+=Math.min(w,v.x),C.y+=Math.min(w,v.y),C.width=Math.max(C.width-w*2,v.x+v.width-w),C.height=Math.max(C.height-w*2,v.y+v.height-w)):(C.x+=w,C.y+=w,C.width-=w*2,C.height-=w*2);let P={anchor:i.value,origin:a.value};function k(B){const V=new Ss(b),$=II(B.anchor,v),N=II(B.origin,V);let{x:O,y:M}=bZ($,N);switch(B.anchor.side){case"top":M-=c.value[0];break;case"bottom":M+=c.value[0];break;case"left":O-=c.value[0];break;case"right":O+=c.value[0];break}switch(B.anchor.align){case"top":M-=c.value[1];break;case"bottom":M+=c.value[1];break;case"left":O-=c.value[1];break;case"right":O+=c.value[1];break}return V.x+=O,V.y+=M,V.width=Math.min(V.width,l.value),V.height=Math.min(V.height,u.value),{overflows:XT(V,C),x:O,y:M}}let R=0,T=0;const I={x:0,y:0},x={x:!1,y:!1};let A=-1;for(;!(A++>10);){const{x:B,y:V,overflows:$}=k(P);R+=B,T+=V,b.x+=B,b.y+=V;{const N=YT(P.anchor),O=$.x.before||$.x.after,M=$.y.before||$.y.after;let Y=!1;if(["x","y"].forEach(X=>{if(X==="x"&&O&&!x.x||X==="y"&&M&&!x.y){const ie={anchor:{...P.anchor},origin:{...P.origin}},Z=X==="x"?N==="y"?Ib:Tb:N==="y"?Tb:Ib;ie.anchor=Z(ie.anchor),ie.origin=Z(ie.origin);const{overflows:G}=k(ie);(G[X].before<=$[X].before&&G[X].after<=$[X].after||G[X].before+G[X].after<($[X].before+$[X].after)/2)&&(P=ie,Y=x[X]=!0)}}),Y)continue}$.x.before&&(R+=$.x.before,b.x+=$.x.before),$.x.after&&(R-=$.x.after,b.x-=$.x.after),$.y.before&&(T+=$.y.before,b.y+=$.y.before),$.y.after&&(T-=$.y.after,b.y-=$.y.after);{const N=XT(b,C);I.x=C.width-N.x.before-N.x.after,I.y=C.height-N.y.before-N.y.after,R+=N.x.before,b.x+=N.x.before,T+=N.y.before,b.y+=N.y.before}break}const D=YT(P.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${P.anchor.side} ${P.anchor.align}`,transformOrigin:`${P.origin.side} ${P.origin.align}`,top:Me(Db(T)),left:e.isRtl.value?void 0:Me(Db(R)),right:e.isRtl.value?Me(Db(-R)):void 0,minWidth:Me(D==="y"?Math.min(s.value,v.width):s.value),maxWidth:Me(PI(On(I.x,s.value===1/0?0:s.value,l.value))),maxHeight:Me(PI(On(I.y,o.value===1/0?0:o.value,u.value)))}),{available:I,contentBox:b,flipped:x}}return Oe(()=>[i.value,a.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>y()),At(()=>{const b=y();if(!b)return;const{available:S,contentBox:w}=b;w.height>S.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function Db(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function PI(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let yS=!0;const Pg=[];function kZ(e){!yS||Pg.length?(Pg.push(e),bS()):(yS=!1,e(),bS())}let RI=-1;function bS(){cancelAnimationFrame(RI),RI=requestAnimationFrame(()=>{const e=Pg.shift();e&&e(),Pg.length?bS():yS=!0})}const OF={none:null,close:IZ,block:PZ,reposition:RZ},_Z=be({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in OF}},"VOverlay-scroll-strategies");function TZ(e,t){if(!cn)return;let n;ar(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=Go(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):OF[e.scrollStrategy]?.(t,e,n)}))}),Rn(()=>{n?.stop()})}function IZ(e){function t(n){e.isActive.value=!1}NF(dx(e.target.value,e.contentEl.value),t)}function PZ(e,t){const n=e.root.value?.offsetParent,r=dx(e.target.value,e.contentEl.value),i=[...new Set([...Cg(r,t.contained?n:void 0),...Cg(e.contentEl.value,t.contained?n:void 0)])].filter(o=>!o.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,s=(o=>nx(o)&&o)(n||document.documentElement);s&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((o,l)=>{o.style.setProperty("--v-body-scroll-x",Me(-o.scrollLeft)),o.style.setProperty("--v-body-scroll-y",Me(-o.scrollTop)),o!==document.documentElement&&o.style.setProperty("--v-scrollbar-offset",Me(a)),o.classList.add("v-overlay-scroll-blocked")}),Rn(()=>{i.forEach((o,l)=>{const u=parseFloat(o.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(o.style.getPropertyValue("--v-body-scroll-y")),d=o.style.scrollBehavior;o.style.scrollBehavior="auto",o.style.removeProperty("--v-body-scroll-x"),o.style.removeProperty("--v-body-scroll-y"),o.style.removeProperty("--v-scrollbar-offset"),o.classList.remove("v-overlay-scroll-blocked"),o.scrollLeft=-u,o.scrollTop=-c,o.style.scrollBehavior=d}),s&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function RZ(e,t,n){let r=!1,i=-1,a=-1;function s(o){kZ(()=>{const l=performance.now();e.updateLocation.value?.(o),r=(performance.now()-l)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?o=>o():requestIdleCallback)(()=>{n.run(()=>{NF(dx(e.target.value,e.contentEl.value),o=>{r?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{s(o)})})):s(o)})})}),Rn(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(i)})}function dx(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!t?.contains(n)):e??t}function NF(e,t){const n=[document,...Cg(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),Rn(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const SS=Symbol.for("vuetify:v-menu"),DF=be({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function LF(e,t){let n=()=>{};function r(s,o){n?.();const l=s?e.openDelay:e.closeDelay,u=Math.max(o?.minDelay??0,Number(l??0));return new Promise(c=>{n=kJ(u,()=>{t?.(s),c(s)})})}function i(){return r(!0)}function a(s){return r(!1,s)}return{clearDelay:n,runOpenDelay:i,runCloseDelay:a}}const AZ=be({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...DF()},"VOverlay-activator");function OZ(e,t){let{isActive:n,isTop:r,contentEl:i}=t;const a=zn("useActivator"),s=z();let o=!1,l=!1,u=!0;const c=L(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=L(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:p,runCloseDelay:h}=LF(e,T=>{T===(e.openOnHover&&o||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==T&&(u=!0),n.value=T)}),g=z(),v={onClick:T=>{T.stopPropagation(),s.value=T.currentTarget||T.target,n.value||(g.value=[T.clientX,T.clientY]),n.value=!n.value},onMouseenter:T=>{o=!0,s.value=T.currentTarget||T.target,p()},onMouseleave:T=>{o=!1,h()},onFocus:T=>{Vc(T.target,":focus-visible")!==!1&&(l=!0,T.stopPropagation(),s.value=T.currentTarget||T.target,p())},onBlur:T=>{l=!1,T.stopPropagation(),h({minDelay:1})}},y=L(()=>{const T={};return d.value&&(T.onClick=v.onClick),e.openOnHover&&(T.onMouseenter=v.onMouseenter,T.onMouseleave=v.onMouseleave),c.value&&(T.onFocus=v.onFocus,T.onBlur=v.onBlur),T}),b=L(()=>{const T={};if(e.openOnHover&&(T.onMouseenter=()=>{o=!0,p()},T.onMouseleave=()=>{o=!1,h()}),c.value&&(T.onFocusin=I=>{I.target.matches(":focus-visible")&&(l=!0,p())},T.onFocusout=()=>{l=!1,h({minDelay:1})}),e.closeOnContentClick){const I=ft(SS,null);T.onClick=()=>{n.value=!1,I?.closeParents()}}return T}),S=L(()=>{const T={};return e.openOnHover&&(T.onMouseenter=()=>{u&&(o=!0,u=!1,p())},T.onMouseleave=()=>{o=!1,h()}),T});Oe(r,T=>{T&&(e.openOnHover&&!o&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!o))&&!i.value?.contains(document.activeElement)&&(n.value=!1)}),Oe(n,T=>{T||setTimeout(()=>{g.value=void 0})},{flush:"post"});const w=oS();ar(()=>{w.value&&At(()=>{s.value=w.el})});const C=oS(),P=L(()=>e.target==="cursor"&&g.value?g.value:C.value?C.el:FF(e.target,a)||s.value),k=L(()=>Array.isArray(P.value)?void 0:P.value);let R;return Oe(()=>!!e.activator,T=>{T&&cn?(R=Go(),R.run(()=>{NZ(e,a,{activatorEl:s,activatorEvents:y})})):R&&R.stop()},{flush:"post",immediate:!0}),Rn(()=>{R?.stop()}),{activatorEl:s,activatorRef:w,target:P,targetEl:k,targetRef:C,activatorEvents:y,contentEvents:b,scrimEvents:S}}function NZ(e,t,n){let{activatorEl:r,activatorEvents:i}=n;Oe(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=o(u);c&&s(c)}l&&At(()=>a())},{immediate:!0}),Oe(()=>e.activatorProps,()=>{a()}),Rn(()=>{s()});function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&AJ(l,ve(i.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&OJ(l,ve(i.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=FF(l,t);return r.value=u?.nodeType===Node.ELEMENT_NODE?u:void 0,r.value}}function FF(e,t){if(!e)return;let n;if(e==="parent"){let r=t?.proxy?.$el?.parentNode;for(;r?.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const MF=be({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),Eh=new Map;let AI=0;function OI(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(Eh.values()).filter(u=>{let{isActive:c,contentEl:d}=u;return c.value&&d.value?.contains(t)}).map(u=>u.contentEl.value);let r,i=t.parentElement;for(;i;){if(n.includes(i)){r=i;break}i=i.parentElement}if(!r)return;const a=Yl(r).filter(u=>u.tabIndex>=0);if(!a.length)return;const s=document.activeElement;if(a.length===1&&a[0].classList.contains("v-list")&&a[0].contains(s)){e.preventDefault();return}const o=a[0],l=a[a.length-1];e.shiftKey&&(s===o||o.classList.contains("v-list")&&o.contains(s))&&(e.preventDefault(),l.focus()),!e.shiftKey&&(s===l||l.classList.contains("v-list")&&l.contains(s))&&(e.preventDefault(),o.focus())}function $F(e,t){let{isActive:n,localTop:r,activatorEl:i,contentEl:a}=t;const s=Symbol("trap");let o=!1,l=-1;async function u(){o=!0,l=window.setTimeout(()=>{o=!1},100)}async function c(h){const g=h.relatedTarget,v=h.target;document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",d),await At(),n.value&&!o&&g!==v&&a.value&&bn(r)&&![document,a.value].includes(v)&&!a.value.contains(v)&&Yl(a.value)[0]?.focus()}function d(h){if(h.key==="Tab"&&(document.removeEventListener("keydown",d),n.value&&a.value&&h.target&&!a.value.contains(h.target))){const g=Yl(document.documentElement);if(h.shiftKey&&h.target===g.at(0)||!h.shiftKey&&h.target===g.at(-1)){const v=Yl(a.value);v.length>0&&(h.preventDefault(),v[0].focus())}}}const p=se(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);cn&&(Oe(()=>e.retainFocus,h=>{h?Eh.set(s,{isActive:n,contentEl:a}):Eh.delete(s)},{immediate:!0}),Oe(p,h=>{h?(document.addEventListener("pointerdown",u),document.addEventListener("focusin",c,{once:!0}),document.addEventListener("keydown",d)):(document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d))},{immediate:!0}),AI++<1&&document.addEventListener("keydown",OI)),Rn(()=>{Eh.delete(s),clearTimeout(l),document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d),--AI<1&&document.removeEventListener("keydown",OI)})}function DZ(){if(!cn)return Le(!1);const{ssr:e}=ta();if(e){const t=Le(!1);return Nt(()=>{t.value=!0}),t}else return Le(!0)}const fx=be({eager:Boolean},"lazy");function px(e,t){const n=Le(!1),r=se(()=>n.value||e.eager||t.value);Oe(t,()=>n.value=!0);function i(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:i}}function Au(){const t=zn("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const NI=Symbol.for("vuetify:stack"),Gd=An([]);function LZ(e,t,n){const r=zn("useStack"),i=!n,a=ft(NI,void 0),s=An({activeChildren:new Set});Sn(NI,s);const o=Le(Number(bn(t)));zi(e,()=>{const c=Gd.at(-1)?.[1];o.value=c?c+10:Number(bn(t)),i&&Gd.push([r.uid,o.value]),a?.activeChildren.add(r.uid),Rn(()=>{if(i){const d=nt(Gd).findIndex(p=>p[0]===r.uid);Gd.splice(d,1)}a?.activeChildren.delete(r.uid)})});const l=Le(!0);i&&ar(()=>{const c=Gd.at(-1)?.[0]===r.uid;setTimeout(()=>l.value=c)});const u=se(()=>!s.activeChildren.size);return{globalTop:va(l),localTop:u,stackStyles:se(()=>({zIndex:o.value}))}}function FZ(e){return{teleportTarget:L(()=>{const n=e();if(n===!0||!cn)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let i=[...r.children].find(a=>a.matches(".v-overlay-container"));return i||(i=document.createElement("div"),i.className="v-overlay-container",r.appendChild(i)),i})}}function MZ(){return!0}function VF(e,t,n){if(!e||BF(e,n)===!1)return!1;const r=eF(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const i=(typeof n.value=="object"&&n.value.include||(()=>[]))();return i.push(t),!i.some(a=>a?.contains(e.target))}function BF(e,t){return(typeof t.value=="object"&&t.value.closeConditional||MZ)(e)}function $Z(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&VF(e,t,n)&&setTimeout(()=>{BF(e,n)&&r&&r(e)},0)}function DI(e,t){const n=eF(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const LI={mounted(e,t){const n=i=>$Z(i,e,t),r=i=>{e._clickOutside.lastMousedownWasOutside=VF(i,e,t)};DI(e,i=>{i.addEventListener("click",n,!0),i.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(DI(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:r,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[t.instance.$.uid])}};function VZ(e){const{modelValue:t,color:n,...r}=e;return f(so,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&E("div",ve({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const nm=be({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...AZ(),...Qe(),...Vr(),...fx(),...SZ(),..._Z(),...MF(),...vn(),...Cd()},"VOverlay"),mo=De()({name:"VOverlay",directives:{vClickOutside:LI},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Nn(nm(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:i}=t;const a=zn("VOverlay"),s=z(),o=z(),l=z(),u=gt(e,"modelValue"),c=L({get:()=>u.value,set:W=>{W&&e.disabled||(u.value=W)}}),{themeClasses:d}=xn(e),{rtlClasses:p,isRtl:h}=Tr(),{hasContent:g,onAfterLeave:v}=px(e,c),y=$n(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:b,localTop:S,stackStyles:w}=LZ(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:C,activatorRef:P,target:k,targetEl:R,targetRef:T,activatorEvents:I,contentEvents:x,scrimEvents:A}=OZ(e,{isActive:c,isTop:S,contentEl:l}),{teleportTarget:D}=FZ(()=>{const W=e.attach||e.contained;if(W)return W;const ne=C?.value?.getRootNode()||a.proxy?.$el?.getRootNode();return ne instanceof ShadowRoot?ne:!1}),{dimensionStyles:B}=Br(e),V=DZ(),{scopeId:$}=Au();Oe(()=>e.disabled,W=>{W&&(c.value=!1)});const{contentStyles:N,updateLocation:O}=wZ(e,{isRtl:h,contentEl:l,target:k,isActive:c});TZ(e,{root:s,contentEl:l,targetEl:R,target:k,isActive:c,updateLocation:O});function M(W){i("click:outside",W),e.persistent?le():c.value=!1}function Y(W){return c.value&&S.value&&(!e.scrim||W.target===o.value||W instanceof MouseEvent&&W.shadowTarget===o.value)}$F(e,{isActive:c,localTop:S,contentEl:l,activatorEl:C}),cn&&Oe(c,W=>{W?window.addEventListener("keydown",X):window.removeEventListener("keydown",X)},{immediate:!0}),wr(()=>{cn&&window.removeEventListener("keydown",X)});function X(W){W.key==="Escape"&&b.value&&(l.value?.contains(document.activeElement)||i("keydown",W),e.persistent?le():(c.value=!1,l.value?.contains(document.activeElement)&&C.value?.focus()))}function ie(W){W.key==="Escape"&&!b.value||i("keydown",W)}const Z=cF();zi(()=>e.closeOnBack,()=>{UQ(Z,W=>{b.value&&c.value?(W(!1),e.persistent?le():c.value=!1):W()})});const G=z();Oe(()=>c.value&&(e.absolute||e.contained)&&D.value==null,W=>{if(W){const ne=tx(s.value);ne&&ne!==document.scrollingElement&&(G.value=ne.scrollTop)}});function le(){e.noClickAnimation||l.value&&$a(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Zf})}function ee(){i("afterEnter")}function ue(){v(),i("afterLeave")}return Fe(()=>E(Ne,null,[n.activator?.({isActive:c.value,targetRef:T,props:ve({ref:P},I.value,e.activatorProps)}),V.value&&g.value&&f(dO,{disabled:!D.value,to:D.value},{default:()=>[E("div",ve({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,p.value,e.class],style:[w.value,{"--v-overlay-opacity":e.opacity,top:Me(G.value)},e.style],ref:s,onKeydown:ie},$,r),[f(VZ,ve({color:y,modelValue:c.value&&!!e.scrim,ref:o},A.value),null),f(pa,{appear:!0,persisted:!0,transition:e.transition,target:k.value,onAfterEnter:ee,onAfterLeave:ue},{default:()=>[un(E("div",ve({ref:l,class:["v-overlay__content",e.contentClass],style:[B.value,N.value]},x.value,e.contentProps),[n.default?.({isActive:c})]),[[ai,c.value],[LI,{handler:M,closeConditional:Y,include:()=>[C.value]}]])]})])]})])),{activatorEl:C,scrimEl:o,target:k,animateClick:le,contentEl:l,rootEl:s,globalTop:b,localTop:S,updateLocation:O}}}),Lb=Symbol("Forwarded refs");function Fb(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ci(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[Lb]=n,new Proxy(e,{get(i,a){if(Reflect.has(i,a))return Reflect.get(i,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,a)){const o=Reflect.get(s.value,a);return typeof o=="function"?o.bind(s.value):o}}},has(i,a){if(Reflect.has(i,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,a))return!0;return!1},set(i,a,s){if(Reflect.has(i,a))return Reflect.set(i,a,s);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,a))return Reflect.set(o.value,a,s);return!1},getOwnPropertyDescriptor(i,a){const s=Reflect.getOwnPropertyDescriptor(i,a);if(s)return s;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const o of n){if(!o.value)continue;const l=Fb(o.value,a)??("_"in o.value?Fb(o.value._?.setupState,a):void 0);if(l)return l}for(const o of n){const l=o.value&&o.value[Lb];if(!l)continue;const u=l.slice();for(;u.length;){const c=u.shift(),d=Fb(c.value,a);if(d)return d;const p=c.value&&c.value[Lb];p&&u.push(...p)}}}}})}const BZ=be({fullscreen:Boolean,scrollable:Boolean,...Nn(nm({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:ox},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),Ai=De()({name:"VDialog",props:BZ(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=gt(e,"modelValue"),{scopeId:a}=Au(),s=z();function o(){n("afterEnter"),(e.scrim||e.retainFocus)&&s.value?.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function l(){n("afterLeave")}return Oe(i,async u=>{u||(await At(),s.value.activatorEl?.focus({preventScroll:!0}))}),Fe(()=>{const u=mo.filterProps(e),c=ve({"aria-haspopup":"dialog"},e.activatorProps),d=ve({tabindex:-1},e.contentProps);return f(mo,ve({ref:s,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},u,{modelValue:i.value,"onUpdate:modelValue":p=>i.value=p,"aria-modal":"true",activatorProps:c,contentProps:d,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:o,onAfterLeave:l},a),{activator:r.activator,default:function(){for(var p=arguments.length,h=new Array(p),g=0;g<p;g++)h[g]=arguments[g];return f(sn,{root:"VDialog"},{default:()=>[r.default?.(...h)]})}})}),Ci({},s)}}),UZ=be({fluid:{type:Boolean,default:!1},...Qe(),...Vr(),...zt()},"VContainer"),Qi=De()({name:"VContainer",props:UZ(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Tr(),{dimensionStyles:i}=Br(e);return Fe(()=>f(e.tag,{class:Te(["v-container",{"v-container--fluid":e.fluid},r.value,e.class]),style:je([i.value,e.style])},n)),{}}}),UF=Jv.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),jF=Jv.reduce((e,t)=>{const n="offset"+Ki(t);return e[n]={type:[String,Number],default:null},e},{}),zF=Jv.reduce((e,t)=>{const n="order"+Ki(t);return e[n]={type:[String,Number],default:null},e},{}),FI={col:Object.keys(UF),offset:Object.keys(jF),order:Object.keys(zF)};function jZ(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const i=t.replace(e,"");r+=`-${i}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const zZ=["auto","start","end","center","baseline","stretch"],HZ=be({cols:{type:[Boolean,String,Number],default:!1},...UF,offset:{type:[String,Number],default:null},...jF,order:{type:[String,Number],default:null},...zF,alignSelf:{type:String,default:null,validator:e=>zZ.includes(e)},...Qe(),...zt()},"VCol"),Re=De()({name:"VCol",props:HZ(),setup(e,t){let{slots:n}=t;const r=L(()=>{const i=[];let a;for(a in FI)FI[a].forEach(o=>{const l=e[o],u=jZ(a,o,l);u&&i.push(u)});const s=i.some(o=>o.startsWith("v-col-"));return i.push({"v-col":!s||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),i});return()=>Rs(e.tag,{class:[r.value,e.class],style:e.style},n.default?.())}}),mx=["start","end","center"],HF=["space-between","space-around","space-evenly"];function hx(e,t){return Jv.reduce((n,r)=>{const i=e+Ki(r);return n[i]=t(),n},{})}const WZ=[...mx,"baseline","stretch"],WF=e=>WZ.includes(e),GF=hx("align",()=>({type:String,default:null,validator:WF})),GZ=[...mx,...HF],qF=e=>GZ.includes(e),KF=hx("justify",()=>({type:String,default:null,validator:qF})),qZ=[...mx,...HF,"stretch"],YF=e=>qZ.includes(e),XF=hx("alignContent",()=>({type:String,default:null,validator:YF})),MI={align:Object.keys(GF),justify:Object.keys(KF),alignContent:Object.keys(XF)},KZ={align:"align",justify:"justify",alignContent:"align-content"};function YZ(e,t,n){let r=KZ[e];if(n!=null){if(t){const i=t.replace(e,"");r+=`-${i}`}return r+=`-${n}`,r.toLowerCase()}}const XZ=be({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:WF},...GF,justify:{type:String,default:null,validator:qF},...KF,alignContent:{type:String,default:null,validator:YF},...XF,...Qe(),...zt()},"VRow"),ct=De()({name:"VRow",props:XZ(),setup(e,t){let{slots:n}=t;const r=L(()=>{const i=[];let a;for(a in MI)MI[a].forEach(s=>{const o=e[s],l=YZ(a,s,o);l&&i.push(l)});return i.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),i});return()=>Rs(e.tag,{class:["v-row",r.value,e.class],style:e.style},n.default?.())}}),Tt=_u("v-spacer","div","VSpacer"),JZ={key:0,class:"thumbnail-loading-container"},QZ={key:1,class:"thumbnail-empty-container"},ZZ={key:2,class:"thumbnail-image-container"},eee=["src","alt"],tee={key:3,class:"thumbnail-info pa-3"},nee={class:"text-body-2 ml-1"},ree={class:"text-body-2 ml-1"},iee={class:"text-body-2 ml-1"},see={class:"d-flex gap-2 overflow-x-auto pa-2"},aee=["onClick"],oee=Be({__name:"JobThumbnailViewer",setup(e){const t=qt(Kt.JobThumbnailViewer),n=L(()=>t.isDialogOpened()),r=L(()=>t.context()),i=z([]),a=z(new Map),s=z(0),o=z(!1),l=z(null);Oe(()=>r.value?.jobId,async S=>{S&&n.value&&(l.value=S,await d(S))},{immediate:!0}),Oe(n,S=>{S||(i.value=[],a.value.clear(),s.value=0,l.value=null)});const u=L(()=>i.value[s.value]||null),c=L(()=>u.value&&a.value.get(u.value.index)||""),d=async S=>{o.value=!0;try{const C=(await qr.getThumbnails(S)||[]).sort((P,k)=>{const R=P.width*P.height;return k.width*k.height-R});i.value=C,s.value=0,a.value.clear();for(const P of C){const k=await qr.getThumbnailUrl(S,P.index);a.value.set(P.index,k)}}catch(w){console.error("Failed to load thumbnails:",w),i.value=[],a.value.clear()}finally{o.value=!1}},p=S=>a.value.get(S)||"",h=()=>{s.value<i.value.length-1&&s.value++},g=()=>{s.value>0&&s.value--},v=()=>{t.closeDialog()},y=S=>{S||v()},b=S=>{if(!S)return"0 B";const w=1024,C=["B","KB","MB"],P=Math.floor(Math.log(S)/Math.log(w));return`${Math.round(S/Math.pow(w,P)*100)/100} ${C[P]}`};return(S,w)=>(F(),Q(Ai,{modelValue:n.value,"onUpdate:modelValue":[w[0]||(w[0]=C=>n.value=C),y],"max-width":"900px"},{default:m(()=>[f($e,{class:"thumbnail-viewer-card"},{default:m(()=>[f(ot,{class:"d-flex align-center bg-primary text-on-primary pa-3"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...w[1]||(w[1]=[_("image",-1)])]),_:1}),w[3]||(w[3]=E("span",{class:"text-subtitle-1"},"Job Thumbnail",-1)),f(Tt),i.value.length>1?(F(),Q(Ke,{key:0,size:"small",variant:"flat",color:"primary-darken-1",class:"mr-2"},{default:m(()=>[_(U(s.value+1)+" / "+U(i.value.length),1)]),_:1})):ae("",!0),f(te,{icon:"",variant:"text",onClick:v,color:"on-primary",size:"small"},{default:m(()=>[f(j,null,{default:m(()=>[...w[2]||(w[2]=[_("close",-1)])]),_:1})]),_:1})]),_:1}),f(Ye,{class:"pa-0 position-relative"},{default:m(()=>[o.value?(F(),fe("div",JZ,[f(Qn,{indeterminate:"",size:"64",color:"primary"})])):i.value.length===0?(F(),fe("div",QZ,[f(j,{size:"64",color:"grey"},{default:m(()=>[...w[4]||(w[4]=[_("image_not_supported",-1)])]),_:1}),w[5]||(w[5]=E("p",{class:"text-body-1 text-medium-emphasis mt-3"},"No thumbnails available",-1))])):(F(),fe("div",ZZ,[E("img",{src:c.value,alt:`Thumbnail ${s.value+1}`,class:"thumbnail-main-image"},null,8,eee),i.value.length>1?(F(),Q(te,{key:0,icon:"",size:"large",class:"nav-arrow nav-arrow-left",color:"white",elevation:"4",onClick:g,disabled:s.value===0},{default:m(()=>[f(j,{size:"large"},{default:m(()=>[...w[6]||(w[6]=[_("chevron_left",-1)])]),_:1})]),_:1},8,["disabled"])):ae("",!0),i.value.length>1?(F(),Q(te,{key:1,icon:"",size:"large",class:"nav-arrow nav-arrow-right",color:"white",elevation:"4",onClick:h,disabled:s.value===i.value.length-1},{default:m(()=>[f(j,{size:"large"},{default:m(()=>[...w[7]||(w[7]=[_("chevron_right",-1)])]),_:1})]),_:1},8,["disabled"])):ae("",!0)])),u.value?(F(),fe("div",tee,[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"auto"},{default:m(()=>[w[8]||(w[8]=E("span",{class:"text-caption text-medium-emphasis"},"Resolution:",-1)),E("span",nee,U(u.value.width)+"x"+U(u.value.height),1)]),_:1}),f(Re,{cols:"auto"},{default:m(()=>[w[9]||(w[9]=E("span",{class:"text-caption text-medium-emphasis"},"Format:",-1)),E("span",ree,U(u.value.format?.toUpperCase()||"Unknown"),1)]),_:1}),f(Re,{cols:"auto"},{default:m(()=>[w[10]||(w[10]=E("span",{class:"text-caption text-medium-emphasis"},"Size:",-1)),E("span",iee,U(b(u.value.size)),1)]),_:1})]),_:1})])):ae("",!0)]),_:1}),i.value.length>1?(F(),Q(rn,{key:0,class:"thumbnail-carousel pa-2"},{default:m(()=>[E("div",see,[(F(!0),fe(Ne,null,Zt(i.value,(C,P)=>(F(),fe("div",{key:C.index,class:Te(["thumbnail-carousel-item",{active:P===s.value}]),onClick:k=>s.value=P},[f(ri,{src:p(C.index),alt:`Thumbnail ${P+1}`,width:"60",height:"60",cover:"",class:"thumbnail-carousel-image"},null,8,["src","alt"])],10,aee))),128))])]),_:1})):ae("",!0)]),_:1})]),_:1},8,["modelValue"]))}}),Cn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},lee=Cn(oee,[["__scopeId","data-v-b03444b9"]]),uee=Symbol("Progress snackbar message event symbol"),cee=Symbol("Info snackbar message event symbol"),dee=Symbol("Error snackbar message event symbol");function en(){const{emit:e,on:t}=pi(uee),{emit:n,on:r}=pi(cee),{emit:i,on:a}=pi(dee);return{openProgressMessage:(s,o,l,u)=>e({key:s,title:o,value:l,completed:u}),openInfoMessage:s=>n(s),info:(s,o,l)=>n({title:s,subtitle:o,timeout:l}),openErrorMessage:s=>i(s),error:(s,o)=>i({title:s,subtitle:o}),onProgressMessage:t,onInfoMessage:r,onErrorMessage:a}}function ip(e,t=2){if(!e)return"0 Bytes";const n=1024,r=Math.max(t,0),i=["Bytes","KB","MB","GB","TB"],a=Math.floor(Math.log(e)/Math.log(n));return Number.parseFloat((e/Math.pow(n,a)).toFixed(r))+" "+i[a]}function fee(e){const t=new Date(e);return new Intl.DateTimeFormat("default",{dateStyle:"long"}).format(t)}function Vs(e){return e?new Date(e).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"N/A"}function wS(e){const t=new Date,n=new Date(e),r=Math.floor((t.getTime()-n.getTime())/(1e3*60));if(r<1)return"Just now";if(r<60)return`${r}m ago`;const i=Math.floor(r/60);if(i<24)return`${i}h ago`;const a=Math.floor(i/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}function za(e){if(!e)return"-";const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return t>0?`${t}h ${n}m ${r}s`:n>0?`${n}m ${r}s`:`${r}s`}const JF=_u("v-alert-title"),pee=be({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function mee(e,t){return{iconSize:L(()=>{const r=new Map(e.iconSizes),i=e.iconSize??t()??"default";return r.has(i)?r.get(i):i})}}const hee=["success","info","warning","error"],gee=be({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:et,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>hee.includes(e)},...Qe(),..._r(),...Vr(),...xi(),...pee(),...ul(),...Ed(),...mr(),...zt(),...vn(),...ea({variant:"flat"})},"VAlert"),kt=De()({name:"VAlert",props:gee(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=gt(e,"modelValue"),a=se(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:s}=mee(e,()=>e.prominent?44:void 0),{themeClasses:o}=xn(e),{colorClasses:l,colorStyles:u,variantClasses:c}=Tu(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:d}=us(e),{dimensionStyles:p}=Br(e),{elevationClasses:h}=Ji(e),{locationStyles:g}=Pu(e),{positionClasses:v}=xd(e),{roundedClasses:y}=Er(e),{textColorClasses:b,textColorStyles:S}=Gi(()=>e.borderColor),{t:w}=Ur(),C=se(()=>({"aria-label":w(e.closeLabel),onClick(P){i.value=!1,n("click:close",P)}}));return()=>{const P=!!(r.prepend||a.value),k=!!(r.title||e.title),R=!!(r.close||e.closable),T={density:e.density,icon:a.value,size:e.iconSize||e.prominent?s.value:void 0};return i.value&&f(e.tag,{class:Te(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},o.value,l.value,d.value,h.value,v.value,y.value,c.value,e.class]),style:je([u.value,p.value,g.value,e.style]),role:"alert"},{default:()=>[ll(!1,"v-alert"),e.border&&E("div",{key:"border",class:Te(["v-alert__border",b.value]),style:je(S.value)},null),P&&E("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?f(sn,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{...T}}},r.prepend):f(j,ve({key:"prepend-icon"},T),null)]),E("div",{class:"v-alert__content"},[k&&f(JF,{key:"title"},{default:()=>[r.title?.()??e.title]}),r.text?.()??e.text,r.default?.()]),r.append&&E("div",{key:"append",class:"v-alert__append"},[r.append()]),R&&E("div",{key:"close",class:"v-alert__close"},[r.close?f(sn,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[r.close?.({props:C.value})]}):f(te,ve({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},C.value),null)])]})}}}),vee=["dotted","dashed","solid","double"],yee=be({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>vee.includes(e)},...Qe(),...vn()},"VDivider"),mt=De()({name:"VDivider",props:yee(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=xn(e),{textColorClasses:a,textColorStyles:s}=Gi(()=>e.color),o=L(()=>{const u={};return e.length&&(u[e.vertical?"height":"width"]=Me(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=Me(e.thickness)),u}),l=se(()=>{const u=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,c=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&u?Me(u):void 0,marginInline:!e.vertical&&u?Me(u):void 0,transform:c?`translate${e.vertical?"X":"Y"}(${Me(c)})`:void 0}});return Fe(()=>{const u=E("hr",{class:Te([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},i.value,a.value,e.class]),style:je([o.value,s.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?E("div",{class:Te(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[u,E("div",{class:"v-divider__content",style:je(l.value)},[r.default()]),u]):u}),{}}}),sp=Symbol.for("vuetify:v-expansion-panel"),QF=be({...Qe(),...fx()},"VExpansionPanelText"),jc=De()({name:"VExpansionPanelText",props:QF(),setup(e,t){let{slots:n}=t;const r=ft(sp);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:a}=px(e,r.isSelected);return Fe(()=>f(lx,{onAfterLeave:a},{default:()=>[un(E("div",{class:Te(["v-expansion-panel-text",e.class]),style:je(e.style)},[n.default&&i.value&&E("div",{class:"v-expansion-panel-text__wrapper"},[n.default?.()])]),[[ai,r.isSelected.value]])]})),{}}}),ZF=be({color:String,expandIcon:{type:et,default:"$expand"},collapseIcon:{type:et,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Qe(),...Vr()},"VExpansionPanelTitle"),zc=De()({name:"VExpansionPanelTitle",directives:{vRipple:bi},props:ZF(),setup(e,t){let{slots:n}=t;const r=ft(sp);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:a}=$n(()=>e.color),{dimensionStyles:s}=Br(e),o=L(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=se(()=>r.isSelected.value?e.collapseIcon:e.expandIcon);return Fe(()=>un(E("button",{class:Te(["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},i.value,e.class]),style:je([a.value,s.value,e.style]),type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[E("span",{class:"v-expansion-panel-title__overlay"},null),n.default?.(o.value),!e.hideActions&&f(sn,{defaults:{VIcon:{icon:l.value}}},{default:()=>[E("span",{class:"v-expansion-panel-title__icon"},[n.actions?.(o.value)??f(j,null,null)])]})]),[[bi,e.ripple]])),{}}}),gx=be({title:String,text:String,bgColor:String,...xi(),...Sd(),...mr(),...zt(),...ZF(),...QF()},"VExpansionPanel"),Hc=De()({name:"VExpansionPanel",props:gx(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=fu(e,sp),{backgroundColorClasses:i,backgroundColorStyles:a}=$n(()=>e.bgColor),{elevationClasses:s}=Ji(e),{roundedClasses:o}=Er(e),l=se(()=>r?.disabled.value||e.disabled),u=L(()=>r.group.items.value.reduce((p,h,g)=>(r.group.selected.value.includes(h.id)&&p.push(g),p),[])),c=L(()=>{const p=r.group.items.value.findIndex(h=>h.id===r.id);return!r.isSelected.value&&u.value.some(h=>h-p===1)}),d=L(()=>{const p=r.group.items.value.findIndex(h=>h.id===r.id);return!r.isSelected.value&&u.value.some(h=>h-p===-1)});return Sn(sp,r),Fe(()=>{const p=!!(n.text||e.text),h=!!(n.title||e.title),g=zc.filterProps(e),v=jc.filterProps(e);return f(e.tag,{class:Te(["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":l.value},o.value,i.value,e.class]),style:je([a.value,e.style])},{default:()=>[E("div",{class:Te(["v-expansion-panel__shadow",...s.value])},null),f(sn,{defaults:{VExpansionPanelTitle:{...g},VExpansionPanelText:{...v}}},{default:()=>[h&&f(zc,{key:"title"},{default:()=>[n.title?n.title():e.title]}),p&&f(jc,{key:"text"},{default:()=>[n.text?n.text():e.text]}),n.default?.()]})]})}),{groupItem:r}}}),bee=["default","accordion","inset","popout"],eM=be({flat:Boolean,...bd(),...Ys(gx(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...vn(),...Qe(),...zt(),variant:{type:String,default:"default",validator:e=>bee.includes(e)}},"VExpansionPanels"),Wc=De()({name:"VExpansionPanels",props:eM(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:r,prev:i}=Iu(e,sp),{themeClasses:a}=xn(e),s=se(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Sr({VExpansionPanel:{bgColor:se(()=>e.bgColor),collapseIcon:se(()=>e.collapseIcon),color:se(()=>e.color),eager:se(()=>e.eager),elevation:se(()=>e.elevation),expandIcon:se(()=>e.expandIcon),focusable:se(()=>e.focusable),hideActions:se(()=>e.hideActions),readonly:se(()=>e.readonly),ripple:se(()=>e.ripple),rounded:se(()=>e.rounded),static:se(()=>e.static)}}),Fe(()=>f(e.tag,{class:Te(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,s.value,e.class]),style:je(e.style)},{default:()=>[n.default?.({prev:i,next:r})]})),{next:r,prev:i}}}),vx=Symbol.for("vuetify:v-tabs"),tM=be({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...Nn(yF({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Rl=De()({name:"VTab",props:tM(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:i,textColorStyles:a}=Gi(()=>e.sliderColor),{backgroundColorClasses:s,backgroundColorStyles:o}=$n(()=>e.sliderColor),l=z(),u=z(),c=L(()=>e.direction==="horizontal"),d=L(()=>l.value?.group?.isSelected.value??!1);function p(y,b){return{opacity:[0,1]}}function h(y,b){return e.direction==="vertical"?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function g(y,b){const S=b.getBoundingClientRect(),w=y.getBoundingClientRect(),C=c.value?"x":"y",P=c.value?"X":"Y",k=c.value?"right":"bottom",R=c.value?"width":"height",T=S[C],I=w[C],x=T>I?S[k]-w[k]:S[C]-w[C],A=Math.sign(x)>0?c.value?"right":"bottom":Math.sign(x)<0?c.value?"left":"top":"center",B=(Math.abs(x)+(Math.sign(x)<0?S[R]:w[R]))/Math.max(S[R],w[R])||0,V=S[R]/w[R]||0,$=1.5;return{transform:[`translate${P}(${x}px) scale${P}(${V})`,`translate${P}(${x/$}px) scale${P}(${(B-1)/$+1})`,"none"],transformOrigin:Array(3).fill(A)}}function v(y){let{value:b}=y;if(b){const S=l.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),w=u.value;if(!S||!w)return;const C=getComputedStyle(S).color,P={fade:p,grow:h,shift:g}[e.sliderTransition??"shift"]??g,k=Number(e.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[e.sliderTransition??"shift"]??225);$a(w,{backgroundColor:[C,"currentcolor"],...P(w,S)},{duration:k,easing:Zf})}}return Fe(()=>{const y=te.filterProps(e);return f(te,ve({symbol:vx,ref:l,class:["v-tab",e.class,d.value&&e.inset?s.value:[]],style:[e.style,d.value&&e.inset?o.value:[]],tabindex:d.value?0:-1,role:"tab","aria-selected":String(d.value),active:!1},y,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":v}),{...n,default:()=>E(Ne,null,[n.default?.()??e.text,!e.hideSlider&&E("div",{ref:u,class:Te(["v-tab__slider",i.value]),style:je(a.value)},null)])})}),Ci({},l)}}),See=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:i}=e,a=.5,s=16;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-s&&e.left(e),e.right&&n>t+s&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&i<r-s&&e.up(e),e.down&&i>r+s&&e.down(e))};function wee(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function Eee(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),See(t)}function xee(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function Cee(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>wee(n,t),touchend:n=>Eee(n,t),touchmove:n=>xee(n,t)}}function kee(e,t){const n=t.value,r=n?.parent?e.parentElement:e,i=n?.options??{passive:!0},a=t.instance?.$.uid;if(!r||a===void 0)return;const s=Cee(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[a]=s,ML(s).forEach(o=>{r.addEventListener(o,s[o],i)})}function _ee(e,t){const n=t.value?.parent?e.parentElement:e,r=t.instance?.$.uid;if(!n?._touchHandlers||r===void 0)return;const i=n._touchHandlers[r];ML(i).forEach(a=>{n.removeEventListener(a,i[a])}),delete n._touchHandlers[r]}const ES={mounted:kee,unmounted:_ee},nM=Symbol.for("vuetify:v-window"),rM=Symbol.for("vuetify:v-window-group"),yx=be({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...Qe(),...zt(),...vn()},"VWindow"),Gc=De()({name:"VWindow",directives:{vTouch:ES},props:yx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=xn(e),{isRtl:i}=Tr(),{t:a}=Ur(),s=Iu(e,rM),o=z(),l=L(()=>i.value?!e.reverse:e.reverse),u=Le(!1),c=L(()=>{if(e.crossfade)return"v-window-crossfade-transition";const C=e.direction==="vertical"?"y":"x",k=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${C}${k}-transition`}),d=Le(0),p=z(void 0),h=L(()=>s.items.value.findIndex(C=>s.selected.value.includes(C.id)));Oe(h,(C,P)=>{let k;const R={left:0,top:0};cn&&P>=0&&(k=tx(o.value),R.left=k?.scrollLeft,R.top=k?.scrollTop);const T=s.items.value.length,I=T-1;T<=2?u.value=C<P:C===I&&P===0?u.value=!1:C===0&&P===I?u.value=!0:u.value=C<P,At(()=>{if(!cn||!k)return;k.scrollTop!==R.top&&k.scrollTo({...R,behavior:"instant"}),requestAnimationFrame(()=>{if(!k)return;k.scrollTop!==R.top&&k.scrollTo({...R,behavior:"instant"})})})},{flush:"sync"}),Sn(nM,{transition:c,isReversed:u,transitionCount:d,transitionHeight:p,rootRef:o});const g=se(()=>e.continuous||h.value!==0),v=se(()=>e.continuous||h.value!==s.items.value.length-1);function y(){g.value&&s.prev()}function b(){v.value&&s.next()}const S=L(()=>{const C=[],P={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:s.prev,"aria-label":a("$vuetify.carousel.prev")};C.push(g.value?n.prev?n.prev({props:P}):f(te,P,null):E("div",null,null));const k={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:s.next,"aria-label":a("$vuetify.carousel.next")};return C.push(v.value?n.next?n.next({props:k}):f(te,k,null):E("div",null,null)),C}),w=L(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?y():b()},right:()=>{l.value?b():y()},start:P=>{let{originalEvent:k}=P;k.stopPropagation()}},...e.touch===!0?{}:e.touch});return Fe(()=>un(f(e.tag,{ref:o,class:Te(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},r.value,e.class]),style:je([e.style,{"--v-window-transition-duration":cu()?null:Me(e.transitionDuration,"ms")}])},{default:()=>[E("div",{class:"v-window__container",style:{height:p.value}},[n.default?.({group:s}),e.showArrows!==!1&&E("div",{class:Te(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}])},[S.value])]),n.additional?.({group:s})]}),[[ES,w.value]])),{group:s}}}),Tee=be({...Nn(yx(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Iee=De()({name:"VTabsWindow",props:Tee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ft(vx,null),i=gt(e,"modelValue"),a=L({get(){return i.value!=null||!r?i.value:r.items.value.find(s=>r.selected.value.includes(s.id))?.value},set(s){i.value=s}});return Fe(()=>{const s=Gc.filterProps(e);return f(Gc,ve({_as:"VTabsWindow"},s,{modelValue:a.value,"onUpdate:modelValue":o=>a.value=o,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}});function rm(){const e=Le(!1);return Nt(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:se(()=>e.value?void 0:{transition:"none !important"}),isBooted:va(e)}}const bx=be({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Qe(),...Sd(),...fx()},"VWindowItem"),ma=De()({name:"VWindowItem",directives:{vTouch:ES},props:bx(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=ft(nM),i=fu(e,rM),{isBooted:a}=rm();if(!r||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=Le(!1),o=L(()=>a.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!s.value||!r||(s.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){s.value||!r||(s.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=Me(r.rootRef.value?.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function d(g){s.value&&At(()=>{!o.value||!s.value||!r||(r.transitionHeight.value=Me(g.clientHeight))})}const p=L(()=>{const g=r.isReversed.value?e.reverseTransition:e.transition;return o.value?{name:typeof g!="string"?r.transition.value:g,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:d}:!1}),{hasContent:h}=px(e,i.isSelected);return Fe(()=>f(pa,{transition:p.value,disabled:!a.value},{default:()=>[un(E("div",{class:Te(["v-window-item",i.selectedClass.value,e.class]),style:je(e.style)},[h.value&&n.default?.()]),[[ai,i.isSelected.value]])]})),{groupItem:i}}}),Pee=be({...bx()},"VTabsWindowItem"),Ree=De()({name:"VTabsWindowItem",props:Pee(),setup(e,t){let{slots:n}=t;return Fe(()=>{const r=ma.filterProps(e);return f(ma,ve({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Aee(e){return e?e.map(t=>Qf(t)?t:{text:t,value:t}):[]}const Oee=be({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...Ys(tM(),["spaced","sliderTransition","sliderTransitionDuration"]),...cx({mandatory:"force",selectedClass:"v-tab-item--selected"}),..._r(),...zt()},"VTabs"),iM=De()({name:"VTabs",props:Oee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=gt(e,"modelValue"),a=L(()=>Aee(e.items)),{densityClasses:s}=us(e),{backgroundColorClasses:o,backgroundColorStyles:l}=$n(()=>e.bgColor),{scopeId:u}=Au();return Sr({VTab:{color:se(e,"color"),direction:se(e,"direction"),stacked:se(e,"stacked"),fixed:se(e,"fixedTabs"),inset:se(e,"inset"),sliderColor:se(e,"sliderColor"),sliderTransition:se(e,"sliderTransition"),sliderTransitionDuration:se(e,"sliderTransitionDuration"),hideSlider:se(e,"hideSlider")}}),Fe(()=>{const c=Ig.filterProps(e),d=!!(r.window||e.items.length>0);return E(Ne,null,[f(Ig,ve(c,{modelValue:i.value,"onUpdate:modelValue":p=>i.value=p,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--inset":e.inset,"v-tabs--stacked":e.stacked},s.value,o.value,e.class],style:[{"--v-tabs-height":Me(e.height),"--v-tabs-inset-padding":e.inset?Me(e.insetPadding):void 0,"--v-tabs-inset-radius":e.inset?Me(e.insetRadius):void 0},l.value,e.style],role:"tablist",symbol:vx},u,n),{default:r.default??(()=>a.value.map(p=>r.tab?.({item:p})??f(Rl,ve(p,{key:p.text,value:p.value,spaced:e.spaced}),{default:r[`tab.${p.value}`]?()=>r[`tab.${p.value}`]?.({item:p}):void 0}))),prev:r.prev,next:r.next}),d&&f(Iee,ve({modelValue:i.value,"onUpdate:modelValue":p=>i.value=p,key:"tabs-window"},u),{default:()=>[a.value.map(p=>r.item?.({item:p})??f(Ree,{value:p.value},{default:()=>r[`item.${p.value}`]?.({item:p})})),r.window?.()]})])}),{}}}),Nee=be({id:String,interactive:Boolean,text:String,...Nn(nm({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus"])},"VTooltip"),ln=De()({name:"VTooltip",props:Nee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),{scopeId:i}=Au(),a=Si(),s=se(()=>e.id||`v-tooltip-${a}`),o=z(),l=L(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=L(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=se(()=>e.transition!=null?e.transition:r.value?"scale-transition":"fade-transition"),d=L(()=>ve({"aria-describedby":s.value},e.activatorProps));return Fe(()=>{const p=mo.filterProps(e);return f(mo,ve({ref:o,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:s.value},p,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];return n.default?.(...g)??e.text}})}),Ci({},o)}}),Dee={class:"overview-content"},Lee={class:"text-body-2 font-weight-medium"},Fee={class:"text-body-2 font-weight-medium"},Mee={class:"text-body-2 font-weight-medium"},$ee={class:"text-body-2"},Vee={class:"text-body-2"},Bee={class:"text-body-2"},Uee={class:"text-body-2"},jee={class:"text-caption font-weight-bold"},zee={key:1,class:"text-medium-emphasis"},Hee={class:"text-body-2 font-weight-medium"},Wee={class:"text-body-2 font-weight-medium"},Gee={class:"text-h6 text-green"},qee={class:"text-h6 text-green"},Kee={class:"text-body-2"},Yee={class:"text-body-2"},Xee={key:0,class:"metadata-content"},Jee={class:"text-h6"},Qee={class:"text-h6"},Zee={class:"text-body-2"},ete={class:"text-body-2"},tte={class:"text-body-2"},nte={class:"text-body-2"},rte={class:"text-body-2 font-weight-medium"},ite={class:"text-body-2"},ste={class:"text-body-2"},ate={class:"text-body-2"},ote={class:"text-body-2"},lte={class:"text-body-2"},ute={class:"text-body-2"},cte={class:"text-body-2"},dte={class:"text-body-2"},fte={class:"text-body-2"},pte={class:"text-body-2"},mte={class:"text-body-2"},hte={class:"text-body-2"},gte={class:"text-body-2"},vte={class:"text-body-2"},yte={class:"text-body-2"},bte={class:"text-body-2"},Ste={key:0,class:"statistics-content"},wte={class:"text-body-2"},Ete={class:"text-body-2"},xte={class:"text-body-2 font-weight-bold"},Cte={class:"text-body-2"},kte={class:"text-h6"},_te={class:"text-h6"},Tte={class:"text-caption font-weight-bold"},Ite={class:"text-h6"},Pte={key:0,class:"text-caption mt-2"},Rte={class:"d-flex justify-end mb-2"},Ate={class:"json-viewer"},Ote=Be({__name:"PrintJobDetailsDialog",setup(e){const t=qt(Kt.PrintJobDetailsDialog),{info:n,error:r}=en(),i=L(()=>t.isDialogOpened()),a=L(()=>t.context()),s=z(null),o=z(!1),l=z("overview"),u=z(!1),c=z(!1),d=z(!1);Oe(()=>a.value?.jobId,async I=>{if(I&&i.value){o.value=!0;try{s.value=await qr.getJob(I)}catch(x){r("Failed to Load Job",x?.response?.data?.message||x?.message||"Could not load job details"),t.closeDialog()}finally{o.value=!1}}},{immediate:!0}),Oe(i,I=>{I?l.value="overview":s.value=null});const p=L(()=>s.value?.metadata?.fileFormat==="3mf"&&s.value.metadata.isMultiPlate===!0),h=L(()=>s.value?.metadata?.filamentUsedGrams||s.value?.metadata?.filamentUsedMm),g=L(()=>JSON.stringify(s.value,null,2)),v=L(()=>{const I=s.value?.status;return I!=="PRINTING"&&I!=="STARTING"}),y=L(()=>{const I=s.value?.status;return I!=="PRINTING"&&I!=="STARTING"}),b=()=>{t.closeDialog()},S=async()=>{if(s.value?.id){u.value=!0;try{s.value=await qr.reAnalyzeJob(s.value.id),n("Job Re-Analysis Started",`Re-analysis triggered for "${s.value.fileName}". The job will be analyzed in the background.`,5e3)}catch(I){console.error("Failed to re-analyze job:",I),r("Re-Analysis Failed",I?.response?.data?.message||I?.message||"Failed to trigger job re-analysis. Please try again.")}finally{u.value=!1}}},w=()=>{d.value=!0},C=async()=>{if(s.value?.id){c.value=!0;try{await qr.deleteJob(s.value.id),n("Job Deleted",`Successfully deleted job "${s.value.fileName}".`,3e3),d.value=!1,b()}catch(I){console.error("Failed to delete job:",I),r("Delete Failed",I?.response?.data?.message||I?.message||"Failed to delete job. Please try again.")}finally{c.value=!1}}},P=()=>{d.value=!1},k=I=>{if(!I)return"grey";switch(I){case"COMPLETED":return"success";case"FAILED":return"error";case"CANCELLED":return"warning";case"PRINTING":case"STARTING":return"primary";case"PAUSED":return"orange";case"QUEUED":return"info";case"PENDING":return"grey-darken-1";case"UNKNOWN":return"grey";default:return"grey"}},R=I=>I?I>=90?"success":I>=50?"primary":I>=25?"warning":"error":"grey",T=async()=>{try{await navigator.clipboard.writeText(g.value)}catch(I){console.error("Failed to copy:",I)}};return(I,x)=>(F(),Q(Ai,{modelValue:i.value,"onUpdate:modelValue":x[3]||(x[3]=A=>i.value=A),"max-width":"900px",scrollable:""},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-primary text-on-primary"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...x[4]||(x[4]=[_("info",-1)])]),_:1}),x[6]||(x[6]=E("span",{class:"text-h6"},"Print Job Details",-1)),f(Tt),f(te,{icon:"",variant:"text",onClick:b,color:"on-primary"},{default:m(()=>[f(j,null,{default:m(()=>[...x[5]||(x[5]=[_("close",-1)])]),_:1})]),_:1})]),_:1}),f(mt),f(Ye,{class:"pa-0"},{default:m(()=>[f(iM,{modelValue:l.value,"onUpdate:modelValue":x[0]||(x[0]=A=>l.value=A),"bg-color":"primary"},{default:m(()=>[f(Rl,{value:"overview"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[7]||(x[7]=[_("dashboard",-1)])]),_:1}),x[8]||(x[8]=_(" Overview ",-1))]),_:1}),f(Rl,{value:"metadata"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[9]||(x[9]=[_("description",-1)])]),_:1}),x[10]||(x[10]=_(" Metadata ",-1))]),_:1}),f(Rl,{value:"statistics"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[11]||(x[11]=[_("bar_chart",-1)])]),_:1}),x[12]||(x[12]=_(" Statistics ",-1))]),_:1}),f(Rl,{value:"raw"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[13]||(x[13]=[_("code",-1)])]),_:1}),x[14]||(x[14]=_(" Raw JSON ",-1))]),_:1})]),_:1},8,["modelValue"]),f(Gc,{modelValue:l.value,"onUpdate:modelValue":x[1]||(x[1]=A=>l.value=A),class:"pa-4"},{default:m(()=>[f(ma,{value:"overview"},{default:m(()=>[E("div",Dee,[f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[15]||(x[15]=[_("info",-1)])]),_:1}),x[16]||(x[16]=_(" Basic Information ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6",md:"4"},{default:m(()=>[x[17]||(x[17]=E("div",{class:"text-caption text-medium-emphasis"},"Job ID",-1)),E("div",Lee,"#"+U(s.value?.id),1)]),_:1}),f(Re,{cols:"6",md:"4"},{default:m(()=>[x[18]||(x[18]=E("div",{class:"text-caption text-medium-emphasis"},"Status",-1)),f(Ke,{color:k(s.value?.status),size:"small",class:"mt-1"},{default:m(()=>[_(U(s.value?.status),1)]),_:1},8,["color"])]),_:1}),f(Re,{cols:"6",md:"4"},{default:m(()=>[x[19]||(x[19]=E("div",{class:"text-caption text-medium-emphasis"},"File Format",-1)),f(Ke,{size:"small",class:"mt-1",variant:"outlined"},{default:m(()=>[_(U(s.value?.fileFormat?.toUpperCase()||"Unknown"),1)]),_:1})]),_:1}),f(Re,{cols:"12",md:"6"},{default:m(()=>[x[20]||(x[20]=E("div",{class:"text-caption text-medium-emphasis"},"Printer",-1)),E("div",Fee,U(s.value?.printerName||`Printer #${s.value?.printerId}`||"Unknown"),1)]),_:1}),f(Re,{cols:"12",md:"6"},{default:m(()=>[x[21]||(x[21]=E("div",{class:"text-caption text-medium-emphasis"},"File Name",-1)),E("div",Mee,U(s.value?.fileName),1)]),_:1})]),_:1})]),_:1})]),_:1}),f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[22]||(x[22]=[_("schedule",-1)])]),_:1}),x[23]||(x[23]=_(" Timestamps ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6",md:"3"},{default:m(()=>[x[24]||(x[24]=E("div",{class:"text-caption text-medium-emphasis"},"Created",-1)),E("div",$ee,U(re(Vs)(s.value?.createdAt)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[25]||(x[25]=E("div",{class:"text-caption text-medium-emphasis"},"Updated",-1)),E("div",Vee,U(re(Vs)(s.value?.updatedAt)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[26]||(x[26]=E("div",{class:"text-caption text-medium-emphasis"},"Started",-1)),E("div",Bee,U(re(Vs)(s.value?.startedAt)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[27]||(x[27]=E("div",{class:"text-caption text-medium-emphasis"},"Ended",-1)),E("div",Uee,U(re(Vs)(s.value?.endedAt)),1)]),_:1})]),_:1})]),_:1})]),_:1}),f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[28]||(x[28]=[_("trending_up",-1)])]),_:1}),x[29]||(x[29]=_(" Progress & Duration ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"12",md:"6"},{default:m(()=>[x[30]||(x[30]=E("div",{class:"text-caption text-medium-emphasis mb-2"},"Progress",-1)),s.value?.progress!==null?(F(),Q(ni,{key:0,"model-value":s.value?.progress,color:R(s.value?.progress),height:"25",rounded:""},{default:m(()=>[E("span",jee,U(Math.round(s.value?.progress||0))+"% ",1)]),_:1},8,["model-value","color"])):(F(),fe("div",zee,"N/A"))]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[31]||(x[31]=E("div",{class:"text-caption text-medium-emphasis"},"Actual Duration",-1)),E("div",Hee,U(re(za)(s.value?.statistics?.actualPrintTimeSeconds)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[32]||(x[32]=E("div",{class:"text-caption text-medium-emphasis"},"Estimated Duration",-1)),E("div",Wee,U(re(za)(s.value?.metadata?.gcodePrintTimeSeconds)),1)]),_:1})]),_:1})]),_:1})]),_:1}),h.value?(F(),Q($e,{key:0,variant:"outlined"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[33]||(x[33]=[_("fitness_center",-1)])]),_:1}),x[34]||(x[34]=_(" Filament Usage ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6",md:"3"},{default:m(()=>[x[35]||(x[35]=E("div",{class:"text-caption text-medium-emphasis"},"Used (Grams)",-1)),E("div",Gee,U(Math.round(s.value?.metadata?.filamentUsedGrams||0))+"g ",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[36]||(x[36]=E("div",{class:"text-caption text-medium-emphasis"},"Used (Length)",-1)),E("div",qee,U(Math.round((s.value?.metadata?.filamentUsedMm||0)/1e3))+"m ",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[37]||(x[37]=E("div",{class:"text-caption text-medium-emphasis"},"Filament Type",-1)),E("div",Kee,U(s.value?.metadata?.filamentType||"Unknown"),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[38]||(x[38]=E("div",{class:"text-caption text-medium-emphasis"},"Nozzle Ø",-1)),E("div",Yee,U(s.value?.metadata?.nozzleDiameterMm||"N/A")+"mm ",1)]),_:1})]),_:1})]),_:1})]),_:1})):ae("",!0),s.value?.statusReason?(F(),Q(kt,{key:1,type:"warning",class:"mt-4"},{default:m(()=>[x[39]||(x[39]=E("strong",null,"Status Reason:",-1)),_(" "+U(s.value.statusReason),1)]),_:1})):ae("",!0)])]),_:1}),f(ma,{value:"metadata"},{default:m(()=>[s.value?.metadata?(F(),fe("div",Xee,[p.value?(F(),Q($e,{key:0,variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 bg-info"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[40]||(x[40]=[_("layers",-1)])]),_:1}),x[41]||(x[41]=_(" 3MF Multi-Plate Information ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"4"},{default:m(()=>[x[42]||(x[42]=E("div",{class:"text-caption text-medium-emphasis"},"Total Plates",-1)),E("div",Jee,U(s.value.metadata.totalPlates),1)]),_:1}),f(Re,{cols:"4"},{default:m(()=>[x[43]||(x[43]=E("div",{class:"text-caption text-medium-emphasis"},"Current Plate",-1)),E("div",Qee,U(s.value.metadata.plateNumber),1)]),_:1}),f(Re,{cols:"4"},{default:m(()=>[x[44]||(x[44]=E("div",{class:"text-caption text-medium-emphasis"},"Source File",-1)),E("div",Zee,U(s.value.metadata.sourceFile),1)]),_:1})]),_:1}),s.value.metadata.plates?(F(),Q(Wc,{key:0,class:"mt-4"},{default:m(()=>[(F(!0),fe(Ne,null,Zt(s.value.metadata.plates,(A,D)=>(F(),Q(Hc,{key:D},{default:m(()=>[f(zc,null,{default:m(()=>[E("div",null,[f(j,{start:"",size:"small"},{default:m(()=>[...x[45]||(x[45]=[_("view_in_ar",-1)])]),_:1}),_(" Plate "+U(A.plateNumber)+" ",1),f(Ke,{size:"x-small",class:"ml-2",color:"primary"},{default:m(()=>[_(U(A.objects?.length||0)+" objects ",1)]),_:2},1024)])]),_:2},1024),f(jc,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"4"},{default:m(()=>[x[46]||(x[46]=E("div",{class:"text-caption text-medium-emphasis"},"Print Time",-1)),E("div",ete,U(re(za)(A.gcodePrintTimeSeconds)),1)]),_:2},1024),f(Re,{cols:"4"},{default:m(()=>[x[47]||(x[47]=E("div",{class:"text-caption text-medium-emphasis"},"Filament",-1)),E("div",tte,U(Math.round(A.filamentUsedGrams||0))+"g",1)]),_:2},1024),f(Re,{cols:"4"},{default:m(()=>[x[48]||(x[48]=E("div",{class:"text-caption text-medium-emphasis"},"Layers",-1)),E("div",nte,U(A.totalLayers||"N/A"),1)]),_:2},1024)]),_:2},1024),f(mt,{class:"my-2"}),x[49]||(x[49]=E("div",{class:"text-caption text-medium-emphasis mb-1"},"Objects:",-1)),(F(!0),fe(Ne,null,Zt(A.objects,(B,V)=>(F(),Q(Ke,{key:V,size:"small",class:"mr-1 mb-1"},{default:m(()=>[_(U(B.name),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1})):ae("",!0)]),_:1})]),_:1})):ae("",!0),f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[50]||(x[50]=[_("insert_drive_file",-1)])]),_:1}),x[51]||(x[51]=_(" File Information ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"12",md:"8"},{default:m(()=>[x[52]||(x[52]=E("div",{class:"text-caption text-medium-emphasis"},"File Name",-1)),E("div",rte,U(s.value.metadata.fileName),1)]),_:1}),f(Re,{cols:"6",md:"4"},{default:m(()=>[x[53]||(x[53]=E("div",{class:"text-caption text-medium-emphasis"},"File Size",-1)),E("div",ite,U(re(ip)(s.value.metadata.fileSize)),1)]),_:1}),f(Re,{cols:"6",md:"4"},{default:m(()=>[x[54]||(x[54]=E("div",{class:"text-caption text-medium-emphasis"},"Format",-1)),E("div",ste,U(s.value.metadata.fileFormat?.toUpperCase()),1)]),_:1}),f(Re,{cols:"6",md:"4"},{default:m(()=>[x[55]||(x[55]=E("div",{class:"text-caption text-medium-emphasis"},"Slicer",-1)),E("div",ate,U(s.value.metadata.slicerVersion||"Unknown"),1)]),_:1}),f(Re,{cols:"6",md:"4"},{default:m(()=>[x[56]||(x[56]=E("div",{class:"text-caption text-medium-emphasis"},"Printer Model",-1)),E("div",ote,U(s.value.metadata.printerModel||"Unknown"),1)]),_:1})]),_:1})]),_:1})]),_:1}),f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[57]||(x[57]=[_("settings",-1)])]),_:1}),x[58]||(x[58]=_(" Print Settings ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6",md:"3"},{default:m(()=>[x[59]||(x[59]=E("div",{class:"text-caption text-medium-emphasis"},"Layer Height",-1)),E("div",lte,U(s.value.metadata.layerHeight||"N/A")+"mm",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[60]||(x[60]=E("div",{class:"text-caption text-medium-emphasis"},"First Layer Height",-1)),E("div",ute,U(s.value.metadata.firstLayerHeight||"N/A")+"mm",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[61]||(x[61]=E("div",{class:"text-caption text-medium-emphasis"},"Bed Temp",-1)),E("div",cte,U(s.value.metadata.bedTemperature||"N/A")+"°C",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[62]||(x[62]=E("div",{class:"text-caption text-medium-emphasis"},"Nozzle Temp",-1)),E("div",dte,U(s.value.metadata.nozzleTemperature||"N/A")+"°C",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[63]||(x[63]=E("div",{class:"text-caption text-medium-emphasis"},"Fill Density",-1)),E("div",fte,U(s.value.metadata.fillDensity||"N/A"),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[64]||(x[64]=E("div",{class:"text-caption text-medium-emphasis"},"Total Layers",-1)),E("div",pte,U(s.value.metadata.totalLayers||"N/A"),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[65]||(x[65]=E("div",{class:"text-caption text-medium-emphasis"},"Max Layer Z",-1)),E("div",mte,U(s.value.metadata.maxLayerZ||"N/A")+"mm",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[66]||(x[66]=E("div",{class:"text-caption text-medium-emphasis"},"Nozzle Diameter",-1)),E("div",hte,U(s.value.metadata.nozzleDiameterMm||"N/A")+"mm",1)]),_:1})]),_:1})]),_:1})]),_:1}),f($e,{variant:"outlined"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[67]||(x[67]=[_("fiber_manual_record",-1)])]),_:1}),x[68]||(x[68]=_(" Filament Details ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6",md:"3"},{default:m(()=>[x[69]||(x[69]=E("div",{class:"text-caption text-medium-emphasis"},"Filament Diameter",-1)),E("div",gte,U(s.value.metadata.filamentDiameterMm||"N/A")+"mm",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[70]||(x[70]=E("div",{class:"text-caption text-medium-emphasis"},"Filament Density",-1)),E("div",vte,U(s.value.metadata.filamentDensityGramsCm3||"N/A")+"g/cm³",1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[71]||(x[71]=E("div",{class:"text-caption text-medium-emphasis"},"Filament Type",-1)),E("div",yte,U(s.value.metadata.filamentType||"Unknown"),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[72]||(x[72]=E("div",{class:"text-caption text-medium-emphasis"},"Total Used",-1)),E("div",bte,U(s.value.metadata.totalFilamentUsedGrams||"N/A")+"g",1)]),_:1})]),_:1})]),_:1})]),_:1})])):(F(),Q(kt,{key:1,type:"info"},{default:m(()=>[...x[73]||(x[73]=[_("No metadata available for this job.",-1)])]),_:1}))]),_:1}),f(ma,{value:"statistics"},{default:m(()=>[s.value?.statistics?(F(),fe("div",Ste,[f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[74]||(x[74]=[_("timer",-1)])]),_:1}),x[75]||(x[75]=_(" Time Statistics ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6",md:"3"},{default:m(()=>[x[76]||(x[76]=E("div",{class:"text-caption text-medium-emphasis"},"Started At",-1)),E("div",wte,U(re(Vs)(s.value.statistics.startedAt)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[77]||(x[77]=E("div",{class:"text-caption text-medium-emphasis"},"Ended At",-1)),E("div",Ete,U(re(Vs)(s.value.statistics.endedAt)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[78]||(x[78]=E("div",{class:"text-caption text-medium-emphasis"},"Actual Print Time",-1)),E("div",xte,U(re(za)(s.value.statistics.actualPrintTimeSeconds)),1)]),_:1}),f(Re,{cols:"6",md:"3"},{default:m(()=>[x[79]||(x[79]=E("div",{class:"text-caption text-medium-emphasis"},"Progress",-1)),E("div",Cte,U(s.value.statistics.progress||0)+"%",1)]),_:1})]),_:1})]),_:1})]),_:1}),f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[80]||(x[80]=[_("layers",-1)])]),_:1}),x[81]||(x[81]=_(" Layer Information ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"6"},{default:m(()=>[x[82]||(x[82]=E("div",{class:"text-caption text-medium-emphasis"},"Current Layer",-1)),E("div",kte,U(s.value.statistics.currentLayer||"N/A"),1)]),_:1}),f(Re,{cols:"6"},{default:m(()=>[x[83]||(x[83]=E("div",{class:"text-caption text-medium-emphasis"},"Total Layers",-1)),E("div",_te,U(s.value.statistics.totalLayers||"N/A"),1)]),_:1}),s.value.statistics.currentLayer&&s.value.statistics.totalLayers?(F(),Q(Re,{key:0,cols:"12"},{default:m(()=>[f(ni,{"model-value":s.value.statistics.currentLayer/s.value.statistics.totalLayers*100,color:"primary",height:"20",rounded:""},{default:m(()=>[E("span",Tte,U(s.value.statistics.currentLayer)+" / "+U(s.value.statistics.totalLayers),1)]),_:1},8,["model-value"])]),_:1})):ae("",!0)]),_:1})]),_:1})]),_:1}),s.value.statistics.toolChanges?(F(),Q($e,{key:0,variant:"outlined"},{default:m(()=>[f(ot,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[84]||(x[84]=[_("build",-1)])]),_:1}),x[85]||(x[85]=_(" Multi-Tool Information ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"12"},{default:m(()=>[x[86]||(x[86]=E("div",{class:"text-caption text-medium-emphasis"},"Tool Changes",-1)),E("div",Ite,U(s.value.statistics.toolChanges),1)]),_:1})]),_:1})]),_:1})]),_:1})):ae("",!0),s.value.statistics.failureReason?(F(),Q(kt,{key:1,type:"error",class:"mt-4"},{default:m(()=>[x[87]||(x[87]=E("div",{class:"text-subtitle-2 mb-1"},"Failure Reason",-1)),E("div",null,U(s.value.statistics.failureReason),1),s.value.statistics.failureTime?(F(),fe("div",Pte," Failed at: "+U(re(Vs)(s.value.statistics.failureTime)),1)):ae("",!0)]),_:1})):ae("",!0)])):(F(),Q(kt,{key:1,type:"info"},{default:m(()=>[...x[88]||(x[88]=[_("No statistics available for this job.",-1)])]),_:1}))]),_:1}),f(ma,{value:"raw"},{default:m(()=>[f($e,{variant:"outlined"},{default:m(()=>[f(Ye,null,{default:m(()=>[E("div",Rte,[f(te,{size:"small",onClick:T,"prepend-icon":"content_copy"},{default:m(()=>[...x[89]||(x[89]=[_(" Copy JSON ",-1)])]),_:1})]),E("pre",Ate,U(g.value),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),f(mt),f(rn,null,{default:m(()=>[v.value?(F(),Q(te,{key:0,color:"info",variant:"elevated","prepend-icon":"refresh",loading:u.value,onClick:S},{default:m(()=>[x[91]||(x[91]=_(" Re-Analyze Job ",-1)),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...x[90]||(x[90]=[_(" Trigger re-analysis of this print job to extract updated metadata from the file ",-1)])]),_:1})]),_:1},8,["loading"])):ae("",!0),y.value?(F(),Q(te,{key:1,color:"error",variant:"outlined","prepend-icon":"delete",loading:c.value,onClick:w},{default:m(()=>[x[93]||(x[93]=_(" Delete Job ",-1)),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...x[92]||(x[92]=[_(" Permanently delete this print job ",-1)])]),_:1})]),_:1},8,["loading"])):ae("",!0),f(Tt),f(te,{color:"primary",variant:"elevated",onClick:b},{default:m(()=>[...x[94]||(x[94]=[_("Close",-1)])]),_:1})]),_:1})]),_:1}),f(Ai,{modelValue:d.value,"onUpdate:modelValue":x[2]||(x[2]=A=>d.value=A),"max-width":"500",persistent:""},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-error text-on-error"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...x[95]||(x[95]=[_("warning",-1)])]),_:1}),x[96]||(x[96]=E("span",null,"Delete Print Job?",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[x[98]||(x[98]=E("p",{class:"text-body-1 mb-2"}," Are you sure you want to delete this print job? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[x[97]||(x[97]=E("strong",null,"Job:",-1)),_(" "+U(s.value?.fileName),1)]),_:1}),x[99]||(x[99]=E("p",{class:"text-body-2 text-medium-emphasis"}," This action cannot be undone. All job data and metadata will be permanently removed. ",-1))]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:P,disabled:c.value},{default:m(()=>[...x[100]||(x[100]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"error",variant:"elevated",onClick:C,loading:c.value},{default:m(()=>[...x[101]||(x[101]=[_(" Delete Job ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))}}),Nte=Cn(Ote,[["__scopeId","data-v-f25665e6"]]),Dte={class:"pa-3 text--primary"},na=Be({__name:"BaseDialog",props:{id:{type:String,required:!0},maxWidth:{type:String,default:"400px"}},emits:["escape","opened","beforeOpened"],setup(e,{emit:t}){const n=e,r=HE(),i=t,a=qt(n.id);function s(c){return i("opened",c)}function o(c){return i("beforeOpened",c)}Nt(async()=>{Mj("Escape",c=>{l.value&&(c.preventDefault(),u())}),r.registerDialogReference(n.id,{beforeOpenedCallback:o,openedCallback:s})}),wr(()=>{r.unregisterDialogReference(n.id)});const l=L(()=>{if(!n.id)return;const c=r.isDialogOpened(n.id);return c&&console.debug(`[BaseDialog ${n.id}] Showing dialog: ${a?.isDialogOpened()}`),c});function u(){i("escape")}return(c,d)=>(F(),Q(Ai,{"max-width":e.maxWidth,"retain-focus":!1,"model-value":l.value,persistent:"",onClose:d[1]||(d[1]=p=>u())},{default:m(()=>[kc(c.$slots,"default",{},()=>[E("div",Dte,[d[4]||(d[4]=_(" No content defined in dialog. ",-1)),f(te,{onClick:d[0]||(d[0]=p=>re(a).closeDialog())},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...d[2]||(d[2]=[_("close",-1)])]),_:1}),d[3]||(d[3]=_("Close ",-1))]),_:1})])])]),_:3},8,["max-width","model-value"]))}}),Lte={class:"json-content pa-4"},Fte=Be({__name:"JsonViewerDialog",setup(e){const t=Kt.JsonViewerDialog,n=qt(t),r=en(),i=L(()=>n.context()?.title||"JSON Viewer"),a=L(()=>{const l=n.context();if(!l?.data)return"No data";try{return JSON.stringify(l.data,null,2)}catch{return String(l.data)}});function s(){n.closeDialog()}async function o(){try{await navigator.clipboard.writeText(a.value),r.info("Copied to clipboard")}catch{r.error("Failed to copy to clipboard")}}return(l,u)=>(F(),Q(na,{id:re(t),"max-width":"800px",onEscape:u[1]||(u[1]=c=>s())},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...u[2]||(u[2]=[_("data_object",-1)])]),_:1}),E("span",null,U(i.value),1),f(Tt),f(te,{icon:"",small:"",onClick:o},{default:m(()=>[f(j,{small:""},{default:m(()=>[...u[3]||(u[3]=[_("content_copy",-1)])]),_:1})]),_:1}),f(te,{icon:"",small:"",onClick:u[0]||(u[0]=c=>s())},{default:m(()=>[f(j,{small:""},{default:m(()=>[...u[4]||(u[4]=[_("close",-1)])]),_:1})]),_:1})]),_:1}),f(mt),f(Ye,{class:"pa-0"},{default:m(()=>[E("pre",Lte,U(a.value),1)]),_:1})]),_:1})]),_:1},8,["id"]))}}),Mte=Cn(Fte,[["__scopeId","data-v-62ce94c4"]]);function xS(e,t){if(!e)throw new Error("No data to download");const n=new Blob([e],{type:"text/plain"}),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=t,r.click(),URL.revokeObjectURL(r.href)}class Ja extends Ei{static async getFiles(t){const n=`${Se.printerFilesRoute}/${t}`;return await this.get(n)}static async getThumbnail(t){const n=`${Se.printerFilesRoute}/${t}/thumbnail`;return await this.get(n)}static async getFileCache(t){const n=`${Se.printerFilesCacheRoute(t)}`;return await this.get(n)}static async selectAndPrintFile(t,n,r=!0){const i=Se.printerFilesStartPrintRoute(t);return await this.post(i,{filePath:n,print:r})}static async uploadFile(t,n,r=!0){const i=Se.printerFilesUploadRoute(t.id),a=new FormData;return a.append("startPrint",r.toString()),a.append("files[0]",n),this.postUpload(i,a,{onUploadProgress:s=>{en().openProgressMessage("single-file-upload",`Uploading file ${n.name}`,100*s.loaded/s.total,!1)}})}static async clearFiles(t){const n=`${Se.printerFilesClearRoute(t)}`;return this.delete(n)}static async purgeFiles(){const t=`${Se.printerFilesPurgeRoute}`;return this.post(t)}static async deleteFileOrFolder(t,n){const r=`${Se.printerFilesRoute}/${t}?path=${encodeURIComponent(n)}`;return this.delete(r)}static async downloadFile(t,n){const r=`${Se.printerFilesRoute}/${t}/download/${encodeURIComponent(n)}`,i=await this.getDownload(r);xS(i.data,n)}}const $te=JSON.parse('["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","afraid","african","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","american","amused","ancient","ancient","angry","angry","annoyed","annual","anonymous","anxious","anxious","appalling","apparent","applicable","appropriate","arab","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","ashamed","asian","asleep","assistant","associated","atomic","attractive","australian","automatic","autonomous","available","average","average","average","awake","aware","awful","awful","awkward","back","bad","bad","bad","balanced","bare","basic","beautiful","beautiful","beautiful","beneficial","better","bewildered","big","big","big","binding","biological","bitter","bitter","bizarre","black","black","blank","blind","blonde","bloody","bloody","blue","blue","blushing","boiling","bold","bored","bored","boring","bottom","brainy","brave","brave","breakable","breezy","brief","brief","bright","bright","bright","brilliant","british","broad","broad","broken","broken","brown","bumpy","burning","busy","busy","calm","calm","canadian","capable","capitalist","careful","careful","casual","catholic","causal","cautious","cautious","central","certain","changing","characteristic","charming","charming","cheap","cheerful","cheerful","chemical","chief","chilly","chinese","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clean","clear","clear","clever","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concerned","concrete","condemned","confident","confidential","confused","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","crazy","crazy","creative","creepy","creepy","criminal","critical","crooked","crooked","crowded","crucial","crude","cruel","cruel","cuddly","cultural","curious","curious","curly","current","curved","cute","daily","damaged","damp","damp","dangerous","dangerous","dark","dark","dead","dead","deaf","deafening","dear","decent","decisive","deep","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delicious","delighted","delightful","delightful","democratic","dependent","depressed","depressed","desirable","desperate","detailed","determined","determined","developed","developing","devoted","different","different","difficult","difficult","digital","diplomatic","direct","dirty","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dry","dual","due","dull","dull","dull","dusty","dutch","dying","dynamic","eager","eager","early","early","eastern","easy","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","elegant","eligible","embarrassed","embarrassed","embarrassing","emotional","empirical","empty","empty","enchanting","encouraging","encouraging","endless","energetic","english","enormous","enthusiastic","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","european","eventual","everyday","evident","evil","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","faint","fair","fair","faithful","faithful","familiar","famous","famous","fancy","fantastic","fantastic","far","fascinating","fashionable","fast","fast","fat","fat","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","fierce","filthy","filthy","final","financial","fine","fine","firm","fiscal","fit","fixed","flaky","flat","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","french","frequent","fresh","fresh","friendly","friendly","friendly","frightened","frightened","front","frozen","fucking","full","full-time","fun","functional","fundamental","funny","funny","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","gentle","genuine","geographical","german","giant","giant","gigantic","gigantic","given","glad","glamorous","gleaming","global","glorious","glorious","golden","good","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","great","great","greek","green","green","grey","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","handsome","happy","happy","happy","hard","hard","harsh","harsh","head","healthy","healthy","heavy","heavy","helpful","helpful","helpful","helpless","helpless","hidden","high","high","high-pitched","hilarious","hissing","historic","historical","hollow","holy","homeless","homeless","homely","hon","honest","horizontal","horrible","horrible","hostile","hot","hot","huge","huge","human","hungry","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","ill","illegal","imaginative","immediate","immense","immense","imperial","implicit","important","important","impossible","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indian","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","iraqi","irish","irrelevant","islamic","isolated","israeli","italian","itchy","japanese","jealous","jewish","jittery","joint","jolly","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","kind","kind","known","korean","labour","large","large","large-scale","late","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","light","light","like","likely","limited","linear","linguistic","liquid","literary","little","little","live","lively","lively","living","local","logical","lonely","lonely","long","long","long","long","long-term","loose","loose","lost","loud","loud","lovely","lovely","low","low","loyal","ltd","lucky","lucky","mad","magenta","magic","magnetic","magnificent","magnificent","main","major","male","mammoth","managerial","managing","manual","many","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","middle-class","mighty","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modern","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","mysterious","naked","narrow","narrow","nasty","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","nervous","net","neutral","new","new","nice","nice","nineteenth-century","noble","noisy","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","odd","official","ok","okay","old","old","old-fashioned","old-fashioned","olympic","only","open","open","operational","opposite","optimistic","oral","orange","orange","ordinary","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","outstanding","overall","overseas","overwhelming","painful","pale","palestinian","panicky","parallel","parental","parliamentary","part-time","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","perfect","permanent","persistent","personal","petite","philosophical","physical","pink","plain","plain","planned","plastic","pleasant","pleasant","pleased","poised","polish","polite","political","poor","poor","popular","positive","possible","post-war","potential","powerful","powerful","practical","precious","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","pretty","previous","prickly","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","proud","provincial","psychiatric","psychological","public","puny","pure","purple","purple","purring","puzzled","puzzled","quaint","quaint","qualified","quick","quick","quick","quickest","quiet","quiet","quiet","racial","radical","rainy","rainy","random","rapid","rapid","rare","rare","raspy","rational","ratty","raw","ready","real","real","realistic","rear","reasonable","recent","red","red","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","roman","romantic","rotten","rough","rough","round","round","round","royal","rubber","rude","ruling","running","rural","russian","sacred","sad","sad","safe","salty","satisfactory","satisfied","scared","scary","scary","scattered","scientific","scornful","scottish","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shallow","shared","sharp","sharp","sheer","shiny","shivering","shocked","short","short","short","short","short-term","shrill","shy","shy","sick","significant","silent","silent","silky","silly","silly","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","slow","small","small","smart","smiling","smoggy","smooth","smooth","so-called","social","socialist","soft","soft","soft","solar","sole","solid","solid","sophisticated","sore","sorry","sound","sound","sour","southern","soviet","spanish","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","splendid","spontaneous","sporting","spotless","spotty","square","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steady","steep","steep","sticky","sticky","stiff","still","stingy","stormy","straight","straight","straightforward","strange","strange","strange","strategic","strict","striking","striped","strong","strong","structural","stuck","stupid","stupid","subjective","subsequent","substantial","subtle","successful","successful","successive","sudden","sufficient","suitable","sunny","super","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","sweet","swift","swiss","symbolic","sympathetic","systematic","tall","tall","tall","tame","tame","tan","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tender","tender","tense","terrible","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tight","tiny","tiny","tired","tired","top","tory","total","tough","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","turkish","typical","ugliest","ugly","ugly","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unusual","unwilling","upper","upset","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","vast","verbal","vertical","very","victorian","victorious","video-taped","violent","visible","visiting","visual","vital","vivacious","vivid","vocational","voiceless","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","weak","wealthy","weary","wee","weekly","weird","welcome","well","well-known","welsh","western","wet","wet","wet","whispering","white","whole","wicked","wicked","wide","wide","wide-eyed","widespread","wild","wild","willing","wise","witty","wonderful","wonderful","wonderful","wooden","wooden","working","working-class","worldwide","worried","worried","worrying","worthwhile","worthy","written","wrong","wrong","yellow","yellow","young","young","yummy","zany","zany","zealous"]'),Vte=JSON.parse(`["aardvark","abacus","abbey","abdomen","abolishment","abroad","abyssinian","accelerant","accelerator","accompanist","accordion","account","accountant","achieve","achiever","acid","acknowledgment","acoustic","acoustics","acrylic","act","action","active","activity","actor","actress","acupuncture","adapter","addiction","addition","address","adjustment","administration","adrenalin","adult","advancement","advantage","advertisement","advertising","advice","affair","affect","afghanistan","africa","aftermath","afternoon","aftershave","aftershock","afterthought","age","agency","agenda","agent","aglet","agreement","air","airbag","airbus","airfare","airforce","airline","airmail","airplane","airport","airship","alarm","alb","albatross","alcohol","alcove","alder","algebra","algeria","alibi","allergist","alley","alligator","alloy","almanac","almond","alpaca","alpenglow","alpenhorn","alpha","alphabet","alternative","altitude","alto","aluminium","aluminum","ambassador","ambulance","amendment","america","amount","amusement","anagram","analgesia","analog","analysis","analyst","anatomy","anesthesiology","anethesiologist","anger","angiosperm","angle","angora","angstrom","anguish","animal","anime","ankle","anklet","annual","anorak","answer","ant","antarctica","anteater","antechamber","antelope","anthony","anthropology","antler","anybody","anything","anywhere","apartment","ape","aperitif","apology","apparatus","apparel","appeal","appendix","apple","applewood","appliance","approval","april","apron","apse","aquarius","aquifer","arch","archaeology","archeology","archer","architect","architecture","arch-rival","area","argentina","argument","aries","arithmetic","arm","armadillo","armament","armchair","armenian","armoire","armor","arm-rest","army","arrival","arrow","art","artichoke","artificer","ascot","ash","ashram","ashtray","asia","asparagus","asphalt","assignment","assistance","associate","association","asterisk","astrakhan","astrolabe","astrologer","astrology","astronomy","atelier","athelete","athlete","atm","atmosphere","atom","atrium","attachment","attack","attempt","attendant","attention","attenuation","attic","attitude","attorney","attraction","audience","auditorium","august","aunt","australia","australian","author","authorisation","authority","authorization","automaton","avalanche","avenue","average","azimuth","babe","babies","baboon","babushka","baby","back","backbone","backdrop","backpack","bacon","bad","badge","badger","bafflement","bag","bagel","bagpipe","bagpipes","bail","bait","bake","baker","bakery","bakeware","balaclava","balalaika","balance","balcony","balinese","ball","balloon","ballpark","bamboo","banana","band","bandana","bandolier","bangladesh","bangle","banjo","bank","bankbook","banker","banquette","baobab","bar","barbara","barbeque","barber","barbiturate","barge","baritone","barium","barn","barometer","barracks","barstool","base","baseball","basement","basin","basis","basket","basketball","bass","bassinet","bassoon","bat","bath","bather","bathhouse","bathrobe","bathroom","bathtub","batter","battery","batting","battle","battleship","bay","bayou","beach","bead","beak","beam","bean","beanie","beanstalk","bear","beard","beast","beat","beautician","beauty","beaver","bed","bedroom","bee","beech","beef","beer","beet","beetle","beggar","beginner","begonia","behavior","beheading","behest","belfry","belgian","belief","believe","bell","belligerency","bellows","belly","belt","bench","bend","beneficiary","benefit","bengal","beret","berry","bestseller","best-seller","betty","beverage","beyond","bibliography","bicycle","bid","bidet","bifocals","big","big-rig","bijou","bike","bikini","bill","billboard","bin","biology","biplane","birch","bird","birdbath","birdcage","birdhouse","bird-watcher","birth","birthday","bit","bite","black","blackberry","blackboard","blackfish","bladder","blade","blame","blank","blanket","blazer","blight","blinker","blister","blizzard","block","blocker","blood","bloodflow","bloom","bloomers","blossom","blouse","blow","blowgun","blowhole","blue","blueberry","boar","board","boat","boat-building","boatload","boatyard","bobcat","body","bog","bolero","bolt","bomb","bomber","bondsman","bone","bongo","bonnet","bonsai","bonus","boogeyman","book","bookcase","bookend","booklet","booster","boot","bootee","bootie","boots","booty","border","bore","bosom","botany","bottle","bottling","bottom","bottom-line","boudoir","bough","boundary","bow","bower","bowl","bowler","bowling","bowtie","box","boxer","boxspring","boy","bra","brace","bracelet","bracket","brain","brake","branch","brand","brandy","brass","brassiere","bratwurst","brazil","bread","breadcrumb","break","breakfast","breakpoint","breast","breastplate","breath","breeze","brian","bribery","brick","bricklaying","bridge","brief","briefs","brilliant","british","broccoli","brochure","broiler","broker","brome","bronchitis","bronco","bronze","brooch","brood","brook","broom","brother","brother-in-law","brow","brown","brush","brushfire","brushing","bubble","bucket","buckle","bud","budget","buffer","buffet","bug","buggy","bugle","building","bulb","bull","bulldozer","bullet","bull-fighter","bumper","bun","bunch","bungalow","bunghole","bunkhouse","burglar","burlesque","burma","burn","burn-out","burst","bus","bush","business","bust","bustle","butane","butcher","butter","button","buy","buyer","buzzard","cabana","cabbage","cabin","cabinet","cable","caboose","cacao","cactus","caddy","cadet","cafe","caftan","cake","calcification","calculation","calculator","calculus","calendar","calf","calico","call","calm","camel","cameo","camera","camp","campaign","campanile","can","canada","canadian","canal","cancel","cancer","candelabra","candidate","candle","candy","cane","cannon","canoe","canon","canopy","canteen","canvas","cap","cape","capital","capitulation","capon","cappelletti","cappuccino","capricorn","captain","caption","car","caravan","carbon","card","cardboard","cardigan","care","cargo","carload","carnation","carol","carotene","carp","carpenter","carpet","carport","carriage","carrier","carrot","carry","cart","cartilage","cartload","cartoon","cartridge","cascade","case","casement","cash","cashier","casino","casserole","cassock","cast","castanet","castanets","castle","cat","catacomb","catamaran","category","caterpillar","cathedral","catsup","cattle","cauliflower","cause","caution","cave","c-clamp","cd","ceiling","celebration","celeriac","celery","celeste","cell","cellar","cello","celsius","cement","cemetery","cenotaph","census","cent","centenarian","center","centimeter","centurion","century","cephalopod","ceramic","cereal","certification","cesspool","chador","chafe","chain","chainstay","chair","chairlift","chairman","chairperson","chairwoman","chaise","chalet","chalice","chalk","champion","chance","chandelier","change","channel","chap","chapel","character","chard","charge","charity","charlatan","charles","charm","chart","chastity","chasuble","chateau","chauffeur","chauvinist","check","checkroom","cheek","cheese","cheetah","chef","chemistry","cheque","cherries","cherry","chess","chest","chick","chicken","chicory","chief","chiffonier","child","childhood","children","chill","chime","chimpanzee","chin","china","chinese","chino","chipmunk","chit-chat","chivalry","chive","chocolate","choice","choker","chop","chopstick","chord","chowder","christmas","christopher","chrome","chromolithograph","chronograph","chronometer","chub","chug","church","churn","cicada","cinema","circle","circulation","circumference","cirrus","citizenship","city","civilisation","clam","clank","clapboard","clarinet","clasp","class","claus","clave","clavicle","clavier","cleaner","cleat","cleavage","clef","cleric","clerk","click","client","cliff","climb","clip","clipper","cloak","cloakroom","clock","clockwork","clogs","cloister","close","closet","cloth","clothes","clothing","cloud","cloudburst","cloudy","clove","clover","club","clutch","coach","coal","coast","coat","cob","cobweb","cockpit","cockroach","cocktail","cocoa","cod","codon","codpiece","coevolution","coffee","coffin","coil","coin","coinsurance","coke","cold","coliseum","collar","collection","college","collision","colloquia","colombia","colon","colonisation","colony","color","colt","column","columnist","comb","combat","combination","comfort","comfortable","comic","comma","command","commercial","commission","committee","communicant","communication","community","company","comparison","competition","competitor","complement","complex","component","comportment","composer","composition","compost","compulsion","computer","comradeship","concert","concrete","condition","condominium","condor","conductor","cone","confectionery","conference","confidence","confirmation","conflict","conga","congo","congressman","congressperson","congresswoman","conifer","connection","consent","consequence","console","consonant","conspirator","constant","constellation","construction","consul","consulate","contact lens","contagion","contest","context","continent","contract","contrail","contrary","contribution","control","convection","convert","convertible","cook","cookie","cooking","coonskin","cope","cop-out","copper","co-producer","copy","copyright","copywriter","cord","corduroy","cork","cormorant","corn","cornerstone","cornet","corral","correspondent","corridor","corsage","cost","costume","cot","cottage","cotton","couch","cougar","cough","council","councilman","councilor","councilperson","councilwoman","counter","counter-force","countess","country","couple","courage","course","court","cousin","covariate","cover","coverall","cow","cowbell","cowboy","crab","crack","cracker","crackers","cradle","craftsman","crash","crate","cravat","craw","crawdad","crayfish","crayon","cream","creative","creator","creature","creche","credenza","credit","creditor","creek","creme brulee","crest","crew","crib","cribbage","cricket","cricketer","crime","criminal","crinoline","criteria","criterion","criticism","crocodile","crocus","croissant","crook","crop","cross","cross-contamination","cross-stitch","crotch","croup","crow","crowd","crown","crude","crush","cry","crystallography","cub","cuban","cuckoo","cucumber","cuff-links","cultivar","cultivator","culture","culvert","cummerbund","cup","cupboard","cupcake","cupola","curio","curl","curler","currency","current","cursor","curtain","curve","cushion","custard","custodian","customer","cut","cuticle","cutlet","cutover","cutting","cyclamen","cycle","cyclone","cylinder","cymbal","cymbals","cynic","cyst","cytoplasm","dad","daffodil","dagger","dahlia","daisy","damage","dame","dance","dancer","danger","daniel","dark","dart","dash","dashboard","database","date","daughter","david","day","daybed","dead","deadline","deal","dealer","dear","death","deathwatch","deborah","debt","debtor","decade","december","decimal","decision","deck","declination","decongestant","decrease","decryption","dedication","deer","defense","deficit","deformation","degree","delete","delivery","demand","demur","den","denim","dentist","deodorant","department","dependent","deployment","deposit","depressive","depth","deputy","derby","derrick","description","desert","design","designer","desire","desk","dessert","destiny","destroyer","destruction","detail","detainment","detective","detention","determination","development","deviance","dew","dhow","diadem","diamond","diaphragm","diarist","dibble","dickey","dictaphone","diction","dictionary","diet","dietician","difference","differential","difficulty","digestion","digger","digital","dilapidation","dill","dime","dimension","dimple","diner","dinghy","dinner","dinosaur","diploma","dipstick","direction","director","dirndl","dirt","disadvantage","disarmament","disaster","disco","disconnection","discount","discovery","discrepancy","discussion","disease","disembodiment","disengagement","disguise","disgust","dish","dishes","dishwasher","disk","display","disposer","distance","distribution","distributor","district","divan","diver","divide","divider","diving","division","dock","doctor","document","doe","dog","dogsled","dogwood","doll","dollar","dolman","dolphin","domain","donald","donkey","donna","door","doorknob","doorpost","dorothy","dory","dot","double","doubling","doubt","doubter","downforce","downgrade","downtown","draft","dragon","dragonfly","dragster","drain","drake","drama","dramaturge","draw","drawbridge","drawer","drawing","dream","dredger","dress","dresser","dressing","drill","drink","drive","driver","driveway","driving","drizzle","dromedary","drop","drug","drum","drummer","drunk","dry","dryer","duck","duckling","dud","duffel","dugout","dulcimer","dumbwaiter","dump truck","dune buggy","dungarees","dungeon","duplexer","dust","dust storm","duster","duty","dwarf","dwelling","dynamo","eagle","ear","eardrum","earmuffs","earplug","earrings","earth","earthquake","earthworm","ease","easel","east","eave","eavesdropper","e-book","ecclesia","eclipse","ecliptic","economics","ecumenist","eddy","edge","edger","editor","editorial","education","edward","eel","effacement","effect","effective","efficacy","efficiency","effort","egg","egghead","eggnog","eggplant","egypt","eight","ejector","elbow","election","electrocardiogram","element","elephant","elevator","elixir","elizabeth","elk","ellipse","elm","elongation","embossing","emergence","emergent","emery","emotion","employ","employee","employer","employment","empowerment","emu","encirclement","encyclopedia","end","endothelium","enemy","energy","engine","engineer","engineering","english","enigma","enquiry","entertainment","entrance","entry","environment","epauliere","epee","ephemera","ephemeris","epoch","eponym","epoxy","equinox","equipment","era","e-reader","error","escape","espadrille","espalier","establishment","estate","estimate","estrogen","estuary","ethernet","ethiopia","euphonium","eurocentrism","europe","evaluator","evening","evening-wear","event","eviction","evidence","evocation","examination","examiner","example","exchange","exclamation","excuse","executor","exhaust","ex-husband","exile","existence","exit","expansion","expansionism","experience","expert","explanation","exposition","extension","extent","extreme","ex-wife","eye","eyeball","eyebrow","eyebrows","eyeglasses","eyelash","eyelashes","eyelid","eyelids","eyeliner","eyestrain","face","facelift","facet","facilities","facsimile","fact","factor","factory","faculty","fahrenheit","fairies","fairy","fall","falling-out","familiar","family","fan","fang","fanlight","fanny","fanny-pack","farm","farmer","fascia","fat","father","father-in-law","fatigues","faucet","fault","fawn","fax","fear","feast","feather","feature","february","fedelini","fedora","feed","feedback","feeling","feet","felony","female","fen","fence","fencing","fender","ferry","ferryboat","fertilizer","few","fiber","fiberglass","fibre","fiction","fiddle","field","fifth","fight","fighter","figurine","file","fill","filly","filth","final","finance","find","fine","finger","fingernail","finisher","fir","fire","fireman","fireplace","firewall","fish","fishbone","fisherman","fishery","fishmonger","fishnet","fisting","fix","fixture","flag","flame","flanker","flare","flash","flat","flatboat","flavor","flax","fleck","fleece","flesh","flight","flintlock","flip-flops","flock","flood","floor","floozie","flower","flu","flugelhorn","fluke","flute","fly","flytrap","foam","fob","focus","fog","fold","folder","fondue","font","food","foot","football","footnote","footrest","foot-rest","footstool","foray","force","forearm","forebear","forecast","forehead","forest","forestry","forgery","fork","form","formal","format","former","fort","fortnight","fortress","forum","foundation","fountain","fowl","fox","foxglove","fragrance","frame","france","fratricide","fraudster","frazzle","freckle","freeplay","freeze","freezer","freight","freighter","french","freon","fresco","friction","friday","fridge","friend","friendship","frigate","fringe","frock","frog","front","frost","frown","fruit","frustration","fuel","fulfillment","full","function","fundraising","funny","fur","furnace","furniture","fusarium","futon","future","gaffer","gaiters","gale","gall-bladder","galleon","gallery","galley","gallon","galoshes","game","gamebird","gamma-ray","gander","gap","garage","garb","garbage","garden","garlic","garment","garter","gas","gasoline","gastropod","gate","gateway","gather","gauge","gauntlet","gazebo","gazelle","gear","gearshift","geese","gelding","gem","gemini","gemsbok","gender","gene","general","genetics","geography","geology","geometry","george","geranium","gerbil","geriatrician","german","germany","geyser","ghana","gherkin","ghost","giant","gigantism","ginseng","giraffe","girdle","girl","git","glad","gladiolus","gland","glass","glasses","glen","glider","gliding","glockenspiel","glove","gloves","glue","glut","goal","goat","gobbler","godmother","goggles","go-kart","gold","goldfish","golf","gondola","gong","good","goodbye","good-bye","goodie","goose","gopher","gore-tex","gorilla","gosling","governance","government","governor","gown","grab-bag","grade","grain","gram","granddaughter","grandfather","grandmom","grandmother","grandson","granny","grape","grapefruit","graph","graphic","grass","grasshopper","grassland","gray","grease","great","great-grandfather","great-grandmother","greece","greek","green","greenhouse","grenade","grey","grief","grill","grip","grit","ground","group","grouper","grouse","growth","guarantee","guatemalan","guest","guestbook","guide","guilty","guitar","guitarist","gum","gumshoes","gun","gutter","guy","gym","gymnast","gynaecology","gyro","hacienda","hacksaw","hackwork","hail","hair","haircut","half","half-brother","half-sister","halibut","hall","hallway","hamaki","hamburger","hammer","hammock","hamster","hand","handball","hand-holding","handicap","handle","handlebar","handmaiden","handsaw","hang","harbor","harbour","hardboard","hardcover","hardening","hardhat","hard-hat","hardware","harm","harmonica","harmony","harp","harpooner","harpsichord","hassock","hat","hatbox","hatchet","hate","haunt","haversack","hawk","hay","head","headlight","headline","headrest","health","hearing","heart","heartache","hearth","hearthside","heart-throb","heartwood","heat","heater","heaven","heavy","hedge","hedgehog","heel","height","heirloom","helen","helicopter","helium","hell","hellcat","helmet","helo","help","hemp","hen","herb","heron","herring","hexagon","heyday","hide","high","highlight","high-rise","highway","hill","himalayan","hip","hippodrome","hippopotamus","historian","history","hit","hive","hobbies","hobbit","hobby","hockey","hoe","hog","hold","hole","holiday","home","homogenate","homonym","honey","honeybee","honoree","hood","hoof","hook","hope","hops","horn","hornet","horse","hose","hosiery","hospice","hospital","host","hostel","hostess","hot","hot-dog","hotel","hour","hourglass","house","houseboat","hovel","hovercraft","howitzer","hub","hubcap","hugger","human","humidity","humor","hunger","hurdler","hurricane","hurry","hurt","husband","hut","hutch","hyacinth","hybridisation","hydrant","hydraulics","hydrofoil","hydrogen","hyena","hygienic","hyphenation","hypochondria","hypothermia","ice","icebreaker","icecream","ice-cream","icicle","icon","idea","ideal","igloo","ikebana","illegal","image","imagination","impact","implement","importance","impress","imprisonment","improvement","impudence","impulse","inbox","incandescence","inch","income","increase","independent","index","india","indigence","indonesia","industry","infancy","inflammation","inflation","information","infusion","inglenook","ingrate","initial","initiative","in-joke","injury","ink","in-laws","inlay","inn","innervation","innocent","input","inquiry","inscription","insect","inside","insolence","inspector","instruction","instrument","instrumentalist","instrumentation","insulation","insurance","insurgence","intelligence","intention","interactive","interest","interferometer","interior","interloper","internal","internet","interpreter","intervenor","interview","interviewer","intestine","intestines","invention","inventor","inventory","invite","invoice","ipad","iran","iraq","iridescence","iris","iron","ironclad","island","israel","issue","italian","italy","jackal","jacket","jaguar","jail","jailhouse","jam","james","january","japan","japanese","jar","jasmine","jason","jaw","jeans","jeep","jeff","jelly","jellyfish","jennifer","jet","jewel","jewelry","jiffy","job","jockey","jodhpurs","joey","jogging","john","join","joke","joseph","jot","journey","judge","judo","juggernaut","juice","july","jumbo","jump","jumper","jumpsuit","june","junior","junk","junker","junket","jury","justice","jute","kale","kamikaze","kangaroo","karate","karen","kayak","kazoo","kendo","kenneth","kenya","ketch","ketchup","kettle","kettledrum","kevin","key","keyboard","keyboarding","keystone","kick","kick-off","kid","kidney","kidneys","kielbasa","kill","kilogram","kilometer","kilt","kimberly","kimono","kind","king","kingfish","kiosk","kiss","kitchen","kite","kitten","kitty","kleenex","klomps","knee","kneejerk","knickers","knife","knife-edge","knight","knitting","knot","knowledge","knuckle","koala","kohlrabi","korean","lab","laborer","lace","lacquerware","ladder","ladybug","lake","lamb","lamp","lan","lanai","land","landform","landmine","language","lantern","lap","laparoscope","lapdog","laptop","larch","larder","lark","laryngitis","lasagna","latency","latex","lathe","latte","laugh","laundry","laura","law","lawn","lawsuit","lawyer","layer","lead","leader","leaf","league","leaker","learning","leash","leather","leaver","lecture","leek","leg","legal","legging","legume","lei","lemon","lemonade","lemur","length","lentil","leo","leopard","leotard","leprosy","let","letter","lettuce","level","lever","leverage","libra","librarian","library","license","lier","life","lift","light","lighting","lightning","lilac","lily","limit","limo","line","linen","liner","link","linseed","lion","lip","lipstick","liquid","liquor","lisa","list","literature","litigation","litter","liver","living","lizard","llama","loaf","loafer","loan","lobotomy","lobster","lock","locker","locket","locomotive","locust","loft","log","loggia","loincloth","look","loss","lot","lotion","lounge","lout","love","low","loyalty","luck","luggage","lumber","lumberman","lunch","luncheonette","lunchroom","lung","lunge","lute","luttuce","lycra","lye","lymphocyte","lynx","lyocell","lyre","lyric","macadamia","macaroni","machine","macrame","macrofauna","maelstrom","maestro","magazine","magic","magician","maid","maiden","mail","mailbox","mailman","maintenance","major","major-league","makeup","malaysia","male","mall","mallet","mambo","mammoth","man","management","manager","mandarin","mandolin","mangrove","manhunt","maniac","manicure","manner","manor","mansard","manservant","mansion","mantel","mantle","mantua","manufacturer","manx","map","maple","maraca","maracas","marble","march","mare","margaret","margin","maria","mariachi","marimba","mark","market","marketing","marksman","marriage","marsh","marshland","marxism","mary","mascara","mask","mass","massage","master","mastication","mastoid","mat","match","material","math","mattock","mattress","maximum","may","maybe","mayonnaise","mayor","meal","meaning","measure","meat","mechanic","medicine","medium","meet","meeting","megalomaniac","melody","member","membership","memory","men","menorah","mention","menu","mercury","mess","message","metal","metallurgist","meteor","meteorology","meter","methane","method","methodology","metro","metronome","mexican","mexico","mezzanine","mice","michael","michelle","microlending","microwave","mid-course","middle","middleman","midi","midline","midnight","midwife","might","migrant","mile","milk","milkshake","millennium","millimeter","millisecond","mime","mimosa","mind","mine","mini","minibus","minion","mini-skirt","minister","minor","minor-league","mint","minute","mirror","miscarriage","miscommunication","misfit","misogyny","misplacement","misreading","missile","mission","mist","mistake","mister","miter","mitten","mix","mixer","mixture","moat","mobile","moccasins","mocha","mode","model","modem","mole","mom","moment","monastery","monasticism","monday","money","monger","monitor","monkey","monocle","monotheism","monsoon","monster","month","mood","moon","moonscape","moonshine","mop","Mormon","morning","morocco","morsel","mortise","mosque","mosquito","most","motel","moth","mother","mother-in-law","motion","motor","motorboat","motorcar","motorcycle","mound","mountain","mouse","mouser","mousse","moustache","mouth","mouton","move","mover","movie","mower","mug","mukluk","mule","multimedia","muscle","musculature","museum","music","music-box","musician","music-making","mustache","mustard","mutt","myanmar","mycoplasma","nail","name","naming","nancy","nanoparticle","napkin","narcissus","nation","naturalisation","nature","neat","neck","necklace","necktie","necromancer","need","needle","negligee","neologism","neon","nepal","nephew","nerve","nest","net","netball","netbook","netsuke","network","neurobiologist","neuropathologist","neuropsychiatry","news","newspaper","newsprint","newsstand","nexus","nic","nicety","niche","nickel","niece","nigeria","night","nightclub","nightgown","nightingale","nightlight","nitrogen","node","noise","nonbeliever","nonconformist","nondisclosure","noodle","normal","norse","north","north america","north korea","norwegian","nose","note","notebook","notice","notify","notoriety","nougat","novel","november","nudge","number","numeracy","numeric","numismatist","nurse","nursery","nurture","nut","nylon","oak","oar","oasis","oatmeal","obi","objective","obligation","oboe","observation","observatory","occasion","occupation","ocean","ocelot","octagon","octave","octavo","octet","october","octopus","odometer","oeuvre","offence","offer","office","official","off-ramp","oil","okra","oldie","olive","omega","omelet","oncology","one","onion","open","opening","opera","operation","ophthalmologist","opinion","opium","opossum","opportunist","opportunity","opposite","option","orange","orangutan","orator","orchard","orchestra","orchid","order","ordinary","ordination","organ","organisation","organization","original","ornament","osmosis","osprey","ostrich","others","otter","ottoman","ounce","outback","outcome","outfit","outhouse","outlay","output","outrigger","outset","outside","oval","ovary","oven","overcharge","overclocking","overcoat","overexertion","overflight","overnighter","overshoot","owl","owner","ox","oxen","oxford","oxygen","oyster","pacemaker","pack","package","packet","pad","paddle","paddock","page","pagoda","pail","pain","paint","painter","painting","paintwork","pair","pajama","pajamas","pakistan","paleontologist","paleontology","palm","pamphlet","pan","pancake","pancreas","panda","panic","pannier","panpipe","pansy","panther","panties","pantry","pants","pantsuit","panty","pantyhose","paper","paperback","parable","parachute","parade","parallelogram","paramedic","parcel","parchment","parent","parentheses","park","parka","parrot","parsnip","part","participant","particle","particular","partner","partridge","party","passage","passbook","passenger","passive","pasta","paste","pastor","pastoralist","pastry","patch","path","patient","patina","patio","patriarch","patricia","patrimony","patriot","patrol","pattern","paul","pavement","pavilion","paw","pawnshop","payee","payment","pea","peace","peach","peacoat","peacock","peak","peanut","pear","pearl","pedal","pedestrian","pediatrician","peen","peer","peer-to-peer","pegboard","pelican","pelt","pen","penalty","pencil","pendant","pendulum","penicillin","pension","pentagon","peony","people","pepper","percentage","perch","perfume","period","periodical","peripheral","permafrost","permission","permit","perp","persian","person","personality","peru","pest","pet","petal","petticoat","pew","pharmacist","pharmacopoeia","phase","pheasant","philippines","philosopher","philosophy","phone","photo","photographer","phrase","physical","physician","pianist","piano","piccolo","pick","pickax","picket","pickle","picture","pie","piece","pier","piety","pig","pigeon","pike","pile","pilgrimage","pillbox","pillow","pilot","pimp","pimple","pin","pinafore","pince-nez","pine","pineapple","pinecone","ping","pink","pinkie","pinstripe","pint","pinto","pinworm","pioneer","pipe","piracy","piranha","pisces","piss","pitch","pitching","pith","pizza","place","plain","plane","planet","plant","plantation","planter","plaster","plasterboard","plastic","plate","platform","platinum","platypus","play","player","playground","playroom","pleasure","pleated","plier","plot","plough","plover","plow","plowman","plume","plunger","plywood","pneumonia","pocket","pocketbook","pocket-watch","poet","poignance","point","poison","poisoning","poland","pole","polenta","police","policeman","policy","polish","politician","pollution","polo","polyester","pompom","poncho","pond","pony","poof","pool","popcorn","poppy","popsicle","population","populist","porch","porcupine","port","porter","portfolio","porthole","position","positive","possibility","postage","postbox","poster","pot","potato","potential","potty","pouch","poultry","pound","pounding","powder","power","precedent","precipitation","preface","prelude","premeditation","premier","preoccupation","preparation","presence","presentation","president","pressroom","pressure","pressurisation","price","pride","priest","priesthood","primary","primate","prince","princess","principal","print","printer","priority","prison","prize","prizefight","probation","problem","procedure","process","processing","produce","producer","product","production","professional","professor","profit","program","project","promotion","prompt","proof-reader","propane","property","prose","prosecution","protest","protocol","prow","pruner","pseudoscience","psychiatrist","psychoanalyst","psychologist","psychology","ptarmigan","publisher","pudding","puddle","puffin","pull","pulley","puma","pump","pumpkin","pumpkinseed","punch","punishment","pupa","pupil","puppy","purchase","puritan","purple","purpose","purse","push","pusher","put","pvc","pyjama","pyramid","quadrant","quail","quality","quart","quarter","quartz","queen","question","quicksand","quiet","quill","quilt","quince","quit","quiver","quotation","rabbi","rabbit","raccoon","race","racer","racing","racist","rack","radar","radiator","radio","radiosonde","radish","raffle","raft","rag","rage","rail","railway","raiment","rain","rainbow","raincoat","rainmaker","rainstorm","raise","rake","ram","rambler","ramie","ranch","random","randomisation","range","rank","raspberry","rat","rate","ratio","raven","ravioli","raw","rawhide","ray","rayon","reactant","reaction","read","reading","reamer","rear","reason","receipt","reception","recess","recliner","recognition","recommendation","record","recorder","recover","recruit","rectangle","red","redesign","rediscovery","reduction","reef","refectory","reflection","refrigerator","refund","refuse","region","register","regret","regular","regulation","reindeer","reinscription","reject","relation","relative","religion","relish","reminder","rent","repair","reparation","repeat","replace","replication","reply","report","representative","reprocessing","request","resale","research","resident","resist","resolution","respect","respite","responsibility","rest","restaurant","result","retailer","rethinking","retina","retouch","return","reveal","revenant","review","revolution","revolve","revolver","reward","rheumatism","rhinoceros","rhyme","rhythm","rice","richard","riddle","ride","rider","ridge","rifle","right","rim","ring","ringworm","ripple","rise","riser","risk","river","riverbed","rivulet","road","roadway","roast","robe","robert","robin","rock","rocker","rocket","rocket-ship","rod","role","roll","roller","romania","romanian","ronald","roof","room","rooster","root","rope","rose","rostrum","rotate","roundabout","route","router","routine","row","rowboat","royal","rub","rubber","rubric","ruckus","ruffle","rugby","rule","run","runaway","runner","russia","russian","rutabaga","ruth","sabre","sack","sad","saddle","safe","safety","sage","sagittarius","sail","sailboat","sailor","salad","salary","sale","salesman","salmon","salon","saloon","salt","samovar","sampan","sample","samurai","sand","sandals","sandbar","sandra","sandwich","santa","sarah","sardine","sari","sarong","sash","satellite","satin","satire","saturday","sauce","saudi arabia","sausage","save","saving","savior","saviour","saw","saxophone","scale","scallion","scanner","scarecrow","scarf","scarification","scene","scent","schedule","scheme","schizophrenic","schnitzel","school","schoolhouse","schooner","science","scimitar","scissors","scooter","score","scorn","scorpio","scorpion","scow","scraper","screamer","screen","screenwriting","screw","screwdriver","screw-up","scrim","scrip","sculpting","sculpture","sea","seagull","seal","seaplane","search","seashore","season","seat","second","secretariat","secretary","section","sectional","sector","secure","security","seed","seeder","segment","select","selection","self","sell","semicircle","semicolon","senator","sense","sentence","sepal","september","septicaemia","series","servant","server","service","session","set","setting","settler","sewer","sex","shack","shade","shadow","shadowbox","shake","shakedown","shaker","shallot","shame","shampoo","shanty","shape","share","shark","sharon","shawl","shearling","shears","sheath","shed","sheep","sheet","shelf","shell","sherry","shield","shift","shin","shine","shingle","ship","shirt","shirtdress","shoat","shock","shoe","shoehorn","shoe-horn","shoelace","shoemaker","shoes","shoestring","shofar","shoot","shootdown","shop","shopper","shopping","shore","shortage","shorts","shortwave","shot","shoulder","shovel","show","shower","show-stopper","shred","shrimp","shrine","siamese","siberian","sibling","sick","side","sideboard","sideburns","sidecar","sidestream","sidewalk","siding","sign","signature","signet","significance","signup","silica","silk","silkworm","sill","silo","silver","simple","sing","singer","single","sink","sister","sister-in-law","sit","sitar","size","skate","skiing","skill","skin","skirt","skulduggery","skull","skullcap","skullduggery","skunk","sky","skylight","skyscraper","skywalk","slapstick","slash","slave","sled","sledge","sleep","sleet","sleuth","slice","slider","slime","slip","slipper","slippers","slope","sloth","smash","smell","smelting","smile","smock","smog","smoke","smuggling","snail","snake","snakebite","sneakers","sneeze","snob","snorer","snow","snowboarding","snowflake","snowman","snowmobiling","snowplow","snowstorm","snowsuit","snuggle","soap","soccer","society","sociology","sock","socks","soda","sofa","softball","softdrink","softening","software","soil","soldier","solid","solitaire","sombrero","somersault","somewhere","son","song","songbird","sonnet","soot","soprano","sorbet","sort","soulmate","sound","soup","source","sourwood","sousaphone","south","south africa","south america","south korea","sow","soy","soybean","space","spacing","spade","spaghetti","spain","spandex","spank","spark","sparrow","spasm","speaker","speakerphone","spear","special","specialist","specific","spectacle","spectacles","spectrograph","speedboat","spend","sphere","sphynx","spider","spike","spinach","spine","spiral","spirit","spiritual","spite","spleen","split","sponge","spoon","sport","spot","spotlight","spray","spread","spring","sprinter","sprout","spruce","spume","spur","spy","square","squash","squatter","squeegee","squid","squirrel","stable","stack","stacking","stadium","staff","stag","stage","stain","stair","staircase","stallion","stamen","stamina","stamp","stance","standoff","star","start","starter","state","statement","station","station-wagon","statistic","statistician","steak","steal","steam","steamroller","steel","steeple","stem","stencil","step","step-aunt","step-brother","stepdaughter","step-daughter","step-father","step-grandfather","step-grandmother","stepmother","step-mother","stepping-stone","steps","step-sister","stepson","step-son","step-uncle","steven","stew","stick","stiletto","still","stinger","stitch","stock","stocking","stockings","stock-in-trade","stole","stomach","stone","stonework","stool","stop","stopsign","stopwatch","store","storey","storm","story","storyboard","story-telling","stove","strait","stranger","strap","straw","strawberry","stream","street","streetcar","stress","stretch","strike","string","strip","structure","struggle","stud","student","studio","study","stuff","stumbling","sturgeon","style","styling","stylus","subcomponent","subconscious","submarine","subroutine","subsidence","substance","suburb","subway","success","suck","sudan","suede","suffocation","sugar","suggestion","suit","suitcase","sultan","summer","sun","sunbeam","sunbonnet","sunday","sundial","sunflower","sunglasses","sunlamp","sunroom","sunshine","supermarket","supply","support","supporter","suppression","surface","surfboard","surgeon","surgery","surname","surprise","susan","sushi","suspect","suspenders","sustainment","SUV","swallow","swamp","swan","swath","sweat","sweater","sweats","sweatshirt","sweatshop","sweatsuit","swedish","sweets","swell","swim","swimming","swimsuit","swing","swiss","switch","switchboard","swivel","sword","swordfish","sycamore","syndicate","synergy","synod","syria","syrup","system","tabby","tabernacle","table","tablecloth","tabletop","tachometer","tackle","tadpole","tail","tailor","tailspin","taiwan","tale","talk","tam","tambour","tambourine","tam-o'-shanter","tandem","tangerine","tank","tanker","tankful","tank-top","tanzania","tap","target","tassel","taste","tatami","tattler","tattoo","taurus","tavern","tax","taxi","taxicab","tea","teacher","teaching","team","tear","technician","technologist","technology","teen","teeth","telephone","telescreen","teletype","television","teller","temp","temper","temperature","temple","tempo","temporariness","temptress","tendency","tenement","tennis","tenor","tent","tepee","term","terracotta","terrapin","territory","test","text","textbook","texture","thailand","thanks","thaw","theater","theism","theme","theoretician","theory","therapist","thermals","thermometer","thigh","thing","thinking","thistle","thomas","thong","thongs","thorn","thought","thread","thrill","throat","throne","thrush","thumb","thunder","thunderbolt","thunderhead","thunderstorm","thursday","tiara","tic","ticket","tie","tiger","tight","tights","tile","till","timbale","time","timeline","timeout","timer","timpani","tin","tinderbox","tinkle","tintype","tip","tire","tissue","titanium","title","toad","toast","toe","toenail","toga","togs","toilet","tom","tomato","tomography","tomorrow","tom-tom","ton","tongue","toot","tooth","toothbrush","toothpaste","toothpick","top","top-hat","topsail","toque","torchiere","toreador","tornado","torso","tortellini","tortoise","tosser","total","tote","touch","tough","tough-guy","tour","tourist","towel","tower","town","townhouse","tow-truck","toy","trachoma","track","tracksuit","tractor","trade","tradition","traditionalism","traffic","trail","trailer","train","trainer","training","tram","tramp","transaction","translation","transmission","transom","transport","trapdoor","trapezium","trapezoid","trash","travel","tray","treatment","tree","trellis","tremor","trench","trial","triangle","tribe","trick","trigonometry","trim","trinket","trip","tripod","trolley","trombone","trooper","trouble","trousers","trout","trove","trowel","truck","truckit","trumpet","trunk","trust","try","t-shirt","tsunami","tub","tuba","tube","tuesday","tugboat","tulip","tummy","tuna","tune","tune-up","tunic","tunnel","turban","turkey","turkish","turn","turnip","turnover","turnstile","turret","turtle","tussle","tutu","tuxedo","tv","twig","twilight","twine","twist","twister","two","typewriter","typhoon","tyvek","uganda","ukraine","ukrainian","ukulele","umbrella","unblinking","uncle","underclothes","underground","underneath","underpants","underpass","undershirt","underwear","underwire","unibody","uniform","union","unit","united kingdom","urn","use","usher","utensil","uzbekistan","vacation","vacuum","vagrant","valance","valley","valuable","value","van","vane","vanity","variation","variety","vase","vast","vault","vaulting","veal","vegetable","vegetarian","vehicle","veil","vein","veldt","vellum","velodrome","velvet","venezuela","venezuelan","venom","veranda","verdict","vermicelli","verse","version","vertigo","verve","vessel","vest","vestment","veterinarian","vibe","vibraphone","vibration","vietnam","view","villa","village","vineyard","vinyl","viola","violet","violin","virginal","virgo","virtue","viscose","vise","vision","visit","visitor","visor","vixen","voice","volcano","volleyball","voyage","vulture","wad","wafer","waffle","waist","waistband","waiter","waitress","walk","walker","walkway","wall","wallaby","wallet","walnut","walrus","wampum","wannabe","war","warden","warlock","warm-up","warning","wash","washbasin","washcloth","washer","washtub","wasp","waste","wastebasket","watch","watchmaker","water","waterbed","waterfall","waterskiing","waterspout","wave","wax","way","weakness","wealth","weapon","weasel","weather","web","wedge","wednesday","weed","weeder","weedkiller","week","weekend","weekender","weight","weird","well","west","western","wet-bar","wetsuit","whale","wharf","wheel","whip","whirlpool","whirlwind","whisker","whiskey","whistle","white","whole","wholesale","wholesaler","whorl","wife","wilderness","will","william","willow","wind","windage","wind-chime","window","windscreen","windshield","wine","wing","wingman","wingtip","winter","wire","wiseguy","wish","wisteria","witch","witch-hunt","withdrawal","witness","wolf","woman","wombat","women","wood","woodland","woodshed","woodwind","wool","woolen","word","work","workbench","worker","workhorse","worklife","workshop","world","worm","worthy","wound","wrap","wraparound","wrecker","wren","wrench","wrestler","wrinkle","wrist","writer","writing","wrong","xylophone","yacht","yak","yam","yard","yarmulke","yarn","yawl","year","yellow","yesterday","yew","yin","yogurt","yoke","young","youth","yugoslavian","yurt","zampone","zebra","zebrafish","zephyr","ziggurat","zinc","zipper","zither","zone","zoo","zoologist","zoology","zoot-suit","zucchini"]`);function $I(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function kd(){const e=Math.round(Math.random()*1124),t=Math.round(Math.random()*3260);return`${$I($te[e])} ${$I(Vte[t])}`}function Qv(e){return e?.trim().length?e?.trim()?.replace(/[^a-zA-Z ]/g,"")?.split(" ").map(n=>n.length?n:"").slice(0,3).reduce((n,r)=>n+r[0],"")?.replace("undefined",""):"?"}const xh=()=>({id:void 0,name:kd(),apiKey:"",username:"",password:"",printerURL:"",printerType:0,enabled:!0});class pn extends Ei{static convertPrinterToCreateForm(t){const n=xh();return n.id=t.id,n.printerURL=t.printerURL,n.printerType=t.printerType,n.name=t.name||kd(),n.apiKey=t.apiKey,n.username=t.username,n.password=t.password,n.enabled=t.enabled,n}static openPrinterURL(t){t&&window.open(t)}static async getPrinters(){const t=Se.printerRoute;return await this.get(t)}static async stopPrintJob(t){const n=Se.printerStopJobRoute(t);return await this.post(n)}static async pausePrintJob(t){const n=Se.printerPauseJobRoute(t);return await this.post(n)}static async resumePrintJob(t){const n=Se.printerResumeJobRoute(t);return await this.post(n)}static async refreshSocket(t){const n=`${Se.refreshSocketRoute(t)}`;return await this.post(n)}static async postQuickStopM112Command(t){const n=Se.sendQuickStopM112Route(t);return await this.post(n)}static async sendPrinterConnectCommand(t){const n=Se.printerSerialConnectRoute(t);return await this.post(n)}static async sendPrinterDisconnectCommand(t){const n=Se.printerSerialDisconnectRoute(t);return await this.post(n)}static async sendPrinterJogCommand(t,n){const r=Se.printerJogCommandRoute(t);return await this.post(r,n)}static async sendPrinterHomeCommand(t,n){const r=Se.printerHomeCommandRoute(t);return await this.post(r,n)}static async createPrinter(t,n){const r=`${Se.printerRoute}?forceSave=${n}`;return await this.post(r,t)}static async batchImportPrinters(t){const n=Se.printerBatchRoute;return await this.post(n,t)}static async deletePrinter(t){const n=Se.getPrinterRoute(t);return await this.delete(n)}static async updatePrinter(t,n,r){const a=`${Se.getPrinterRoute(t)}?forceSave=${r}`;return await this.patch(a,n)}static async updatePrinterMaintenance(t,n=null){const r=Se.postPrinterDisabledReasonRoute(t);return await this.patch(r,{disabledReason:n})}static async testConnection(t){const n=Se.printerTestConnectionRoute;return await this.post(n,t)}static async toggleEnabled(t,n){const r=Se.printerEnabledRoute(t);return await this.patch(r,{enabled:n})}}class Di extends Ei{static async getSettings(){const t=Se.settingsRoute;return await this.get(t)}static async getSettingsSensitive(){const t=Se.settingsSensitiveRoute;return await this.get(t)}static async updateLoginRequiredSettings(t){const n=`${Se.updateLoginRequiredRoute}`;return await this.put(n,{loginRequired:t})}static async updateRegistrationEnabledSettings(t){const n=`${Se.updateRegistrationEnabledRoute}`;return await this.put(n,{registrationEnabled:t})}static async updateCredentialSettings(t,n,r){const i=`${Se.updateCredentialSettings}`;return await this.put(i,{jwtExpiresIn:t,refreshTokenAttempts:n,refreshTokenExpiry:r})}static async updateFrontendSettings(t){const n=`${Se.updateFrontendSettingsRoute}`;return await this.put(n,t)}static async setSentryDiagnosticsSettings(t){const n=`${Se.serverSentryDiagnosticsSettingRoute}`;return await this.patch(n,{enabled:t})}static async updateTimeoutSettings(t){const n=`${Se.updateTimeoutSettingRoute}`;return await this.put(n,t)}static async updateExperimentalMoonrakerSupport(t){const n=Se.updateExperimentalMoonrakerSupportRoute;return await this.put(n,{enabled:t})}static async updateExperimentalPrusaLinkSupport(t){const n=Se.updateExperimentalPrusaLinkSupportRoute;return await this.put(n,{enabled:t})}static async updateExperimentalBambuSupport(t){const n=Se.updateExperimentalBambuSupportRoute;return await this.put(n,{enabled:t})}static async updateExperimentalThumbnailSupport(t){const n=Se.updateExperimentalThumbnailSupportRoute;return await this.put(n,{enabled:t})}}const ra=Yi("Settings",{state:()=>({settings:void 0,frontendDebugSettings:{showPrinterStateUpdateSideNav:!1,showInterpretedPrinterState:!1,showJobsRendered:!1}}),actions:{async loadSettings(){const e=await Di.getSettings();return this.settings=e,e},async updateFrontendSettings(e){const t=await Di.updateFrontendSettings(e);return this.settings=t,t},async saveFrontendSettings(){if(!this.settings)return;const e=await Di.updateFrontendSettings(this.settings.frontend);this.settings=e},async updateTimeoutSettings(e){const t=await Di.updateTimeoutSettings(e);return this.settings=t,t}},getters:{serverSettings(){return this.settings?.server},frontendSettings(){return this.settings?.frontend},preferCancelOverQuickStop(){return this.settings?.frontend?.tilePreferCancelOverQuickStop||!1},largeTiles(){return this.settings?.frontend?.largeTiles||!1},gridCols(){return this.settings?.frontend?.gridCols||8},gridRows(){return this.settings?.frontend?.gridRows||8}}}),Pa={danger:"danger",dark:"dark",secondary:"secondary",success:"success"},Ra={DarkBlue:"#050c2e",Black:"#000000",DarkGray:"#262626",LightBrown:"#583c0e",Brown:"#580e47",Red:"#2e0905"},ju={Disabled:"Disabled",Maintenance:"Maintenance",Error:"Error",Paused:"Paused",Operational:"Operational",Printing:"Printing"};function sM(e,t,n){const i=ra().frontendDebugSettings.showInterpretedPrinterState,a={};if(!e.enabled)return e.disabledReason?.length?{...a,color:Pa.danger,rgb:Ra.Black,text:ju.Maintenance}:{...a,color:Pa.secondary,rgb:Ra.DarkBlue,text:ju.Disabled};const s=t?.api==="responding",o=t?.api==="authFail";if(!s||!t){const p=t?.api==="noResponse";return{...a,color:Pa.secondary,rgb:Ra.Red,text:o?"API key wrong":p?"API unreachable":t?.api||"-"}}if(!s)return{...a,color:Pa.danger,rgb:Ra.Red,text:o?"API key wrong":"No API connection"};const l=t.socket==="authenticated",u=t.socket==="authenticating",c=n?.current?.payload?.state,d=c?.flags;if(!l||!d)return i&&console.debug(`Socket opened ${l?1:0}, socketAuthing ${u?1:0} printerState ${n?1:0},
|
|
50
|
-
currentState: ${c}, FLAGS ${d}`),{...a,color:Pa.danger,rgb:Ra.Red,text:n?"Awaiting state":"Unknown state"};if(!d){console.error("No flags",d);return}return d.error||d.closedOrError?{...a,color:Pa.danger,rgb:Ra.Red,text:c.text?.replace("Offline","Disconnected")||ju.Error,description:c.error}:d.paused||d.pausing?{...a,color:Pa.success,rgb:Ra.Brown,text:ju.Paused}:d.printing?{...a,color:Pa.success,rgb:Ra.LightBrown,text:ju.Printing}:{...a,color:Pa.dark,rgb:Ra.DarkGray,text:ju.Operational,description:c.error}}const Xl=e=>e?.current?.payload?.state,CS=e=>Xl(e)?.flags.printing,kS=(e,t)=>!qc(e)&&e?.enabled&&!Xl(t)?.flags.operational||Xl(t)?.flags.error||Xl(t)?.flags.closedOrError,aM=e=>!qc(e)&&!e?.enabled,qc=e=>!e?.enabled&&e?.disabledReason?.length,Bte=(e,t)=>Xl(t)?.flags&&!Xl(t)?.flags.printing&&Xl(t)?.flags.operational&&!aM(e)&&!qc(e),Fr=Yi("PrinterState",{state:()=>({printerIds:[],printerEventsById:{},socketStatesById:{}}),getters:{operationalPrintersById(){const e=wn(),t={};return this.printerIds.forEach(n=>{if(this.printerEventsById[n]?.current?.payload?.state?.flags?.operational){const i=e.printer(n);if(i)t[n]=i;else throw new Error(`PrinterStore contains no printer with id ${n} but events are known`)}}),t},isPrinterOperational(){return e=>!!this.operationalPrintersById[e]},printingPrintersById(){const e={};return this.printerIds.forEach(t=>{const n=this.printerEventsById[t];n?.current?.payload?.state?.flags?.printing&&(e[t]=n)}),e},isPrinterPrinting(){return e=>!!this.printingPrintersById[e]},isPrinterStoppable(){return e=>{const t=this.printerEventsById[e];if(!t)return!1;const n=t?.current?.payload?.state?.flags;return n?.printing||n?.paused||n?.pausing}},isPrinterPaused(){return e=>{const t=this.printerEventsById[e];if(!t)return!1;const n=t?.current?.payload?.state?.flags;return n?.paused||n?.pausing}},printerCurrentEventReceivedAtById(){const e={};return this.printerIds.forEach(t=>{const n=this.printerEventsById[t];n?.current?.receivedAt&&(e[t]=n.current.receivedAt)}),e},onlinePrinters(){const e=wn(),t={};return this.printerIds.forEach(n=>{if(this.socketStatesById[n]?.api==="responding"){const i=e.printer(n);if(i)t[n]=i;else throw new Error(`PrinterStore contains no printer with id ${n} but socket state is opened`)}}),t},onlinePrintersWithStates(){return Object.values(this.onlinePrinters).map(e=>({printer:e,printerState:this.printerEventsById[e.id]}))},printingCount(){const e=Fr();return Object.values(e.onlinePrintersWithStates).filter(t=>CS(t.printerState)).length},operationalNotPrintingCount(){return this.onlinePrintersWithStates.filter(e=>Bte(e.printer,e.printerState)).length},isApiResponding(){return e=>Object.keys(this.onlinePrinters).includes(e.toString())},isPrinterNotOnline(){return e=>!this.isApiResponding(e)},printerJobsById(){const e=wn(),t=ra().frontendDebugSettings.showJobsRendered,n={};return this.printerIds.forEach(r=>{const i=this.printerEventsById[r],a=i?.current?.payload?.state?.flags;if(a?.printing||a?.paused||a?.pausing){const s=e.printer(r);if(s)n[s.id]=i?.current?.payload;else throw new Error(`PrinterStore contains no printer with id ${r} but events are known`)}}),t&&console.debug("[PrinterStateStore] rendered printerJobsById",n),n},printersWithJob(){const e=wn(),t=[];return this.printerIds.forEach(n=>{const r=this.printerEventsById[n],i=r?.current?.payload?.state?.flags;if(i?.printing||i?.paused||i?.pausing){const a=e.printer(n);if(a)t.push({printer:a,job:r?.current?.payload});else throw new Error(`PrinterStore contains no printer with id ${n} but events are known`)}}),t},printingFilePathsByPrinterId(){const e={};return this.printerIds.forEach(t=>{const n=this.printerEventsById[t],r=n?.current?.payload?.state?.flags;if(r?.printing||r?.paused||r?.pausing){const i=n?.current?.payload?.job?.file;e[t]=i?.display||i?.name||i?.path||"Unknown file"}}),e}},actions:{setSocketStates(e){this.socketStatesById=e,this.printerIds=Object.keys(e).map(Number)},setPrinterEvents(e){this.printerEventsById=e},deletePrinterEvents(e){delete this.printerEventsById[e],this.printerIds=Object.keys(this.printerEventsById).map(Number)},async selectAndPrintFile({printerId:e,fullPath:t}){if(!(!e||!wn().printer(e))){if(this.isPrinterPrinting(e)){alert("This printer is printing or not connected! Either way printing is not an option.");return}await Ja.selectAndPrintFile(e,t,!0)}}}}),wn=Yi("Printers",{state:()=>({printers:[],printerFileCache:{},selectedPrinters:[],maintenanceDialogPrinter:void 0}),getters:{printer(){return e=>this.printers.find(t=>t.id==e)},isSelectedPrinter(e){return t=>!!e.selectedPrinters.find(n=>n.id===t)},printerFiles(){return e=>this.printerFileCache[e]},disabledCount(){return this.printers.filter(aM).length},disconnectedCount(){const e=Fr();return this.printers.filter(t=>kS(t,e.printerEventsById[t.id])).length},maintenanceCount(){return this.printers.filter(e=>qc(e)).length}},actions:{async createPrinter(e,t){const n=await pn.createPrinter(e,t);return this.printers.push(n),this.printers.sort((r,i)=>r.name?.toLowerCase()?.localeCompare(i?.name?.toLowerCase())?1:-1),n},toggleSelectedPrinter(e){const t=Fr(),n=this.selectedPrinters.findIndex(r=>r.id==e.id);n===-1?t.isApiResponding(e.id)&&this.selectedPrinters.push(e):this.selectedPrinters.splice(n,1)},clearSelectedPrinters(){this.selectedPrinters=[]},setMaintenanceDialogPrinter(e){this.maintenanceDialogPrinter=e},async updatePrinter({printerId:e,updatedPrinter:t},n){const r=await pn.updatePrinter(e,t,n);return this._replacePrinter({printerId:e,printer:r}),r},async loadPrinters(){const e=await pn.getPrinters();return this.setPrinters(e),e},async deletePrinter(e){const t=await pn.deletePrinter(e);return this._popPrinter(e),t},setPrinters(e){if(!e?.length){this.printers=[];return}this.printers=e.sort((t,n)=>t.name?.toLowerCase()?.localeCompare(n?.name?.toLowerCase())?1:-1)},_popPrinter(e){const t=this.printers.findIndex(n=>n.id===e);t!==-1?this.printers.splice(t,1):console.warn("Printer was not popped as it did not occur in state",e)},_replacePrinter({printerId:e,printer:t}){const n=this.printers.findIndex(r=>r.id===e);n!==-1?this.printers[n]=t:console.warn("Printer was not purged as it did not occur in state",e)},async deletePrinterFiles(e){if(!e)throw new Error("No printerId was provided");const t=await Ja.clearFiles(e);if(!t?.failedFiles)throw new Error("No failed files were returned");this.printerFileCache[e]&&(this.printerFileCache[e]=t.failedFiles)},async loadPrinterFiles(e){const t=await Ja.getFiles(e);return t.sort((n,r)=>n.date<r.date?1:-1),this.printerFileCache[e]=t,t},async deletePrinterFile(e,t){await Ja.deleteFileOrFolder(e,t);const n=this.printerFileCache[e];if(!n?.length){console.warn("Printer file list was nonexistent",e);return}const r=n.findIndex(i=>i.path===t);return r!==-1?n.splice(r,1):console.warn("File was not purged as it did not occur in state",t),this.printerFiles(e)},async sendStopJobCommand(e){const t=Fr();if(!e)return;const n=this.printer(e);if(!n)return;const r=t.isPrinterPrinting(e)?"The printer seems idle - do you want to command it to stop anyway?":"The printer is still printing - are you sure to stop it?";confirm(r)&&await pn.stopPrintJob(n.id)}}}),Ute=Be({__name:"PrinterControlDialog",setup(e){const t=qt(Kt.PrinterControlDialog),n=wn(),r=Fr(),i=L(()=>t.context()?.printer?.id),a=L(()=>{if(i.value)return n.printer(i.value)}),s=z(10),o=L(()=>{if(!i.value)return null;const d=r.printerEventsById[i.value];return d?.current?.payload?.temps?.length&&d?.current?.payload?.temps[0]?.tool0?.actual?d?.current?.payload?.temps[0]?.tool0:null}),l=async(d,p,h)=>{i.value&&await pn.sendPrinterJogCommand(i.value,{x:d*s.value,y:p*s.value,z:h*s.value})},u=async d=>{i.value&&await pn.sendPrinterHomeCommand(i.value,d)},c=()=>{t.closeDialog()};return(d,p)=>{const h=na;return F(),Q(h,{id:re(t).dialogId,"max-width":"700px",onEscape:p[14]||(p[14]=g=>c())},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,null,{default:m(()=>[...p[15]||(p[15]=[_(" Printer Controls ",-1)])]),_:1}),f(Ye,null,{default:m(()=>[a.value?(F(),Q(Qi,{key:0},{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:12},{default:m(()=>[_(" Printer: "+U(a.value?.name)+" ",1),p[16]||(p[16]=E("br",null,null,-1)),f(Ke,{color:"primary"},{default:m(()=>[_(U(o.value?.actual)+"C / "+U(o.value?.target)+"C ",1)]),_:1})]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Re,{cols:8},{default:m(()=>[p[26]||(p[26]=_(" X/Y ",-1)),p[27]||(p[27]=E("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[0]||(p[0]=g=>l(-1,1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[17]||(p[17]=[_("north_west",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[1]||(p[1]=g=>l(0,1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[18]||(p[18]=[_("north",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[2]||(p[2]=g=>l(1,1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[19]||(p[19]=[_("north_east",-1)])]),_:1})]),_:1}),p[28]||(p[28]=E("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[3]||(p[3]=g=>l(-1,0,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[20]||(p[20]=[_("west",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[4]||(p[4]=g=>u(["x","y"]))},{default:m(()=>[f(j,null,{default:m(()=>[...p[21]||(p[21]=[_("home",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[5]||(p[5]=g=>l(1,0,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[22]||(p[22]=[_("east",-1)])]),_:1})]),_:1}),p[29]||(p[29]=E("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[6]||(p[6]=g=>l(-1,-1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[23]||(p[23]=[_("south_west",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[7]||(p[7]=g=>l(0,-1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[24]||(p[24]=[_("south",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[8]||(p[8]=g=>l(1,-1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[25]||(p[25]=[_("south_east",-1)])]),_:1})]),_:1})]),_:1}),f(Re,{cols:"4"},{default:m(()=>[p[33]||(p[33]=_(" Z ",-1)),p[34]||(p[34]=E("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[9]||(p[9]=g=>l(0,0,1))},{default:m(()=>[f(j,null,{default:m(()=>[...p[30]||(p[30]=[_("north",-1)])]),_:1})]),_:1}),p[35]||(p[35]=E("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[10]||(p[10]=g=>u(["z"]))},{default:m(()=>[f(j,null,{default:m(()=>[...p[31]||(p[31]=[_("home",-1)])]),_:1})]),_:1}),p[36]||(p[36]=E("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[11]||(p[11]=g=>l(1,0,1))},{default:m(()=>[f(j,null,{default:m(()=>[...p[32]||(p[32]=[_("south",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Re,{cols:"12"},{default:m(()=>[f(sx,{modelValue:s.value,"onUpdate:modelValue":p[12]||(p[12]=g=>s.value=g)},{default:m(()=>[f(te,{value:.1},{default:m(()=>[...p[37]||(p[37]=[_(" 0.1 ",-1)])]),_:1}),f(te,{value:1},{default:m(()=>[...p[38]||(p[38]=[_(" 1 ",-1)])]),_:1}),f(te,{value:10},{default:m(()=>[...p[39]||(p[39]=[_(" 10 ",-1)])]),_:1}),f(te,{value:100},{default:m(()=>[...p[40]||(p[40]=[_(" 100 ",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):ae("",!0)]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:p[13]||(p[13]=g=>c())},{default:m(()=>[...p[41]||(p[41]=[_(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}});class xf extends Ei{static async batchConnectUsb(t){return await this.post("/api/v2/batch/connect/usb",{printerIds:t})}static async batchConnectSocket(t){return await this.post("/api/v2/batch/connect/socket",{printerIds:t})}static async batchToggleEnabled(t,n){return await this.post("/api/v2/batch/toggle-enabled",{printerIds:t,enabled:n})}static async batchGetLastPrintedFiles(t){const n=Se.batchGetLastPrintedFilesRoute;return await this.post(n,{printerIds:t})}static async batchReprintFiles(t){const n=Se.batchReprintFilesRoute;return await this.post(n,{prints:t})}}var bl=(e=>(e[e.PrinterNotAvailable=0]="PrinterNotAvailable",e[e.NoLastPrint=1]="NoLastPrint",e[e.LastPrintReady=2]="LastPrintReady",e))(bl||{});function jte(e){return e.message?`${e.message}
|
|
51
|
-
${e.stack}`:`'${e}'`}const _S=Symbol.for("vuetify:list");function oM(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=ft(_S,{filterable:!1,hasPrepend:Le(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:Le(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return Sn(_S,n),t}function lM(){return ft(_S,null)}const Sx=e=>{const t={activate:n=>{let{id:r,value:i,activated:a}=n;return r=nt(r),e&&!i&&a.size===1&&a.has(r)||(i?a.add(r):a.delete(r)),a},in:(n,r,i)=>{let a=new Set;if(n!=null)for(const s of rr(n))a=t.activate({id:s,value:!0,activated:new Set(a),children:r,parents:i});return a},out:n=>Array.from(n)};return t},uM=e=>{const t=Sx(e);return{activate:r=>{let{activated:i,id:a,...s}=r;a=nt(a);const o=i.has(a)?new Set([a]):new Set;return t.activate({...s,id:a,activated:o})},in:(r,i,a)=>{let s=new Set;if(r!=null){const o=rr(r);o.length&&(s=t.in(o.slice(0,1),i,a))}return s},out:(r,i,a)=>t.out(r,i,a)}},zte=e=>{const t=Sx(e);return{activate:r=>{let{id:i,activated:a,children:s,...o}=r;return i=nt(i),s.has(i)?a:t.activate({id:i,activated:a,children:s,...o})},in:t.in,out:t.out}},Hte=e=>{const t=uM(e);return{activate:r=>{let{id:i,activated:a,children:s,...o}=r;return i=nt(i),s.has(i)?a:t.activate({id:i,activated:a,children:s,...o})},in:t.in,out:t.out}},Wte={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){const a=new Set;a.add(t);let s=i.get(t);for(;s!=null;)a.add(s),s=i.get(s);return a}else return r.delete(t),r},select:()=>null},cM={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){let a=i.get(t);for(r.add(t);a!=null&&a!==t;)r.add(a),a=i.get(a);return r}else r.delete(t);return r},select:()=>null},Gte={open:cM.open,select:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(!n)return r;const a=[];let s=i.get(t);for(;s!=null;)a.push(s),s=i.get(s);return new Set(a)}},wx=e=>{const t={select:n=>{let{id:r,value:i,selected:a}=n;if(r=nt(r),e&&!i){const s=Array.from(a.entries()).reduce((o,l)=>{let[u,c]=l;return c==="on"&&o.push(u),o},[]);if(s.length===1&&s[0]===r)return a}return a.set(r,i?"on":"off"),a},in:(n,r,i,a)=>{const s=new Map;for(const o of n||[])t.select({id:o,value:!0,selected:s,children:r,parents:i,disabled:a});return s},out:n=>{const r=[];for(const[i,a]of n.entries())a==="on"&&r.push(i);return r}};return t},dM=e=>{const t=wx(e);return{select:r=>{let{selected:i,id:a,...s}=r;a=nt(a);const o=i.has(a)?new Map([[a,i.get(a)]]):new Map;return t.select({...s,id:a,selected:o})},in:(r,i,a,s)=>r?.length?t.in(r.slice(0,1),i,a,s):new Map,out:(r,i,a)=>t.out(r,i,a)}},qte=e=>{const t=wx(e);return{select:r=>{let{id:i,selected:a,children:s,...o}=r;return i=nt(i),s.has(i)?a:t.select({id:i,selected:a,children:s,...o})},in:t.in,out:t.out}},Kte=e=>{const t=dM(e);return{select:r=>{let{id:i,selected:a,children:s,...o}=r;return i=nt(i),s.has(i)?a:t.select({id:i,selected:a,children:s,...o})},in:t.in,out:t.out}},fM=e=>{const t={select:n=>{let{id:r,value:i,selected:a,children:s,parents:o,disabled:l}=n;r=nt(r);const u=new Map(a),c=[r];for(;c.length;){const p=c.shift();l.has(p)||a.set(nt(p),i?"on":"off"),s.has(p)&&c.push(...s.get(p))}let d=nt(o.get(r));for(;d;){let p=!0,h=!0;for(const g of s.get(d)){const v=nt(g);if(!l.has(v)&&(a.get(v)!=="on"&&(p=!1),a.has(v)&&a.get(v)!=="off"&&(h=!1),!p&&!h))break}a.set(d,p?"on":h?"off":"indeterminate"),d=nt(o.get(d))}return e&&!i&&Array.from(a.entries()).reduce((h,g)=>{let[v,y]=g;return y==="on"&&h.push(v),h},[]).length===0?u:a},in:(n,r,i)=>{let a=new Map;for(const s of n||[])a=t.select({id:s,value:!0,selected:a,children:r,parents:i,disabled:new Set});return a},out:(n,r)=>{const i=[];for(const[a,s]of n.entries())s==="on"&&!r.has(a)&&i.push(a);return i}};return t},Yte=e=>{const t=fM(e);return{select:t.select,in:t.in,out:(r,i,a)=>{const s=[];for(const[o,l]of r.entries())if(l==="on"){if(a.has(o)){const u=a.get(o);if(r.get(u)==="on")continue}s.push(o)}return s}}},Kc=Symbol.for("vuetify:nested"),pM={id:Le(),root:{itemsRegistration:z("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:z(new Map),parents:z(new Map),disabled:z(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:z(!1),selectable:z(!1),opened:z(new Set),activated:z(new Set),selected:z(new Map),selectedValues:z([]),getPath:()=>[]}},Xte=be({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),Jte=(e,t,n)=>{let r=!1;const i=Le(new Map),a=Le(new Map),s=Le(new Set),o=gt(e,"opened",e.opened,w=>new Set(Array.isArray(w)?w.map(C=>nt(C)):w),w=>[...w.values()]),l=L(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return zte(e.mandatory);case"single-leaf":return Hte(e.mandatory);case"independent":return Sx(e.mandatory);default:return uM(e.mandatory)}}),u=L(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return Kte(e.mandatory);case"leaf":return qte(e.mandatory);case"independent":return wx(e.mandatory);case"single-independent":return dM(e.mandatory);case"trunk":return Yte(e.mandatory);default:return fM(e.mandatory)}}),c=L(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Gte;case"single":return Wte;default:return cM}}),d=gt(e,"activated",e.activated,w=>l.value.in(w,i.value,a.value),w=>l.value.out(w,i.value,a.value)),p=gt(e,"selected",e.selected,w=>u.value.in(w,i.value,a.value,s.value),w=>u.value.out(w,i.value,a.value));wr(()=>{r=!0});function h(w){const C=[];let P=nt(w);for(;P!==void 0;)C.unshift(P),P=a.value.get(P);return C}const g=zn("nested"),v=new Set,y=uQ(()=>{At(()=>{i.value=new Map(i.value),a.value=new Map(a.value)})},100);Oe(()=>[t.value,bn(n)],()=>{e.itemsRegistration==="props"&&b()},{immediate:!0});function b(){const w=new Map,C=new Map,P=new Set,k=bn(n)?I=>nt(I.raw):I=>I.value,R=[...t.value];let T=0;for(;T<R.length;){const I=R[T++],x=k(I);if(I.children){const A=[];for(const D of I.children){const B=k(D);w.set(B,x),A.push(B),R.push(D)}C.set(x,A)}I.props.disabled&&P.add(x)}i.value=C,a.value=w,s.value=P}const S={id:Le(),root:{opened:o,activatable:se(()=>e.activatable),selectable:se(()=>e.selectable),activated:d,selected:p,selectedValues:L(()=>{const w=[];for(const[C,P]of p.value.entries())P==="on"&&w.push(C);return w}),itemsRegistration:se(()=>e.itemsRegistration),register:(w,C,P,k)=>{if(v.has(w)){h(w).map(String).join(" -> "),h(C).concat(w).map(String).join(" -> ");return}else v.add(w);C&&w!==C&&a.value.set(w,C),P&&s.value.add(w),k&&i.value.set(w,[]),C!=null&&i.value.set(C,[...i.value.get(C)||[],w]),y()},unregister:w=>{if(r)return;v.delete(w),i.value.delete(w),s.value.delete(w);const C=a.value.get(w);if(C){const P=i.value.get(C)??[];i.value.set(C,P.filter(k=>k!==w))}a.value.delete(w),y()},updateDisabled:(w,C)=>{C?s.value.add(w):s.value.delete(w)},open:(w,C,P)=>{g.emit("click:open",{id:w,value:C,path:h(w),event:P});const k=c.value.open({id:w,value:C,opened:new Set(o.value),children:i.value,parents:a.value,event:P});k&&(o.value=k)},openOnSelect:(w,C,P)=>{const k=c.value.select({id:w,value:C,selected:new Map(p.value),opened:new Set(o.value),children:i.value,parents:a.value,event:P});k&&(o.value=k)},select:(w,C,P)=>{g.emit("click:select",{id:w,value:C,path:h(w),event:P});const k=u.value.select({id:w,value:C,selected:new Map(p.value),children:i.value,parents:a.value,disabled:s.value,event:P});k&&(p.value=k),S.root.openOnSelect(w,C,P)},activate:(w,C,P)=>{if(!e.activatable)return S.root.select(w,!0,P);g.emit("click:activate",{id:w,value:C,path:h(w),event:P});const k=l.value.activate({id:w,value:C,activated:new Set(d.value),children:i.value,parents:a.value,event:P});if(k.size!==d.value.size)d.value=k;else{for(const R of k)if(!d.value.has(R)){d.value=k;return}for(const R of d.value)if(!k.has(R)){d.value=k;return}}},children:i,parents:a,disabled:s,getPath:h}};return Sn(Kc,S),S.root},mM=(e,t,n)=>{const r=ft(Kc,pM),i=Symbol("nested item"),a=L(()=>{const o=nt(bn(e));return o!==void 0?o:i}),s={...r,id:a,open:(o,l)=>r.root.open(a.value,o,l),openOnSelect:(o,l)=>r.root.openOnSelect(a.value,o,l),isOpen:L(()=>r.root.opened.value.has(a.value)),parent:L(()=>r.root.parents.value.get(a.value)),activate:(o,l)=>r.root.activate(a.value,o,l),isActivated:L(()=>r.root.activated.value.has(a.value)),select:(o,l)=>r.root.select(a.value,o,l),isSelected:L(()=>r.root.selected.value.get(a.value)==="on"),isIndeterminate:L(()=>r.root.selected.value.get(a.value)==="indeterminate"),isLeaf:L(()=>!r.root.children.value.get(a.value)),isGroupActivator:r.isGroupActivator};return nl(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||At(()=>{r.root.register(a.value,r.id.value,bn(t),n)})}),wr(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(a.value)}),Oe(a,(o,l)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(l),At(()=>{r.root.register(o,r.id.value,bn(t),n)}))}),Oe(()=>bn(t),o=>{r.root.updateDisabled(a.value,o)}),n&&Sn(Kc,s),s},Qte=()=>{const e=ft(Kc,pM);Sn(Kc,{...e,isGroupActivator:!0})},Zte=Qs({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Qte(),()=>n.default?.()}}),ene=be({activeColor:String,baseColor:String,color:String,collapseIcon:{type:et,default:"$collapse"},disabled:Boolean,expandIcon:{type:et,default:"$expand"},rawId:[String,Number],prependIcon:et,appendIcon:et,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Qe(),...zt()},"VListGroup"),TS=De()({name:"VListGroup",props:ene(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:i,id:a}=mM(()=>e.value,()=>e.disabled,!0),s=L(()=>`v-list-group--id-${String(e.rawId??a.value)}`),o=lM(),{isBooted:l}=rm(),u=ft(Kc),c=se(()=>u?.root?.itemsRegistration.value==="render");function d(v){["INPUT","TEXTAREA"].includes(v.target?.tagName)||i(!r.value,v)}const p=L(()=>({onClick:d,class:"v-list-group__header",id:s.value})),h=L(()=>r.value?e.collapseIcon:e.expandIcon),g=L(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&h.value,appendIcon:e.appendIcon||!e.subgroup&&h.value,title:e.title,value:e.value}}));return Fe(()=>f(e.tag,{class:Te(["v-list-group",{"v-list-group--prepend":o?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:je(e.style)},{default:()=>[n.activator&&f(sn,{defaults:g.value},{default:()=>[f(Zte,null,{default:()=>[n.activator({props:p.value,isOpen:r.value})]})]}),f(pa,{transition:{component:lx},disabled:!l.value},{default:()=>[c.value?un(E("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[n.default?.()]),[[ai,r.value]]):r.value&&E("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[n.default?.()])]})]})),{isOpen:r}}}),tne=be({opacity:[Number,String],...Qe(),...zt()},"VListItemSubtitle"),Ou=De()({name:"VListItemSubtitle",props:tne(),setup(e,t){let{slots:n}=t;return Fe(()=>f(e.tag,{class:Te(["v-list-item-subtitle",e.class]),style:je([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Gt=_u("v-list-item-title"),nne=be({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:et,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:Lr(),onClickOnce:Lr(),...As(),...Qe(),..._r(),...Vr(),...xi(),...mr(),...Kv(),...zt(),...vn(),...ea({variant:"text"})},"VListItem"),wt=De()({name:"VListItem",directives:{vRipple:bi},props:nne(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const a=qv(e,n),s=L(()=>e.value===void 0?a.href.value:e.value),{activate:o,isActivated:l,select:u,isOpen:c,isSelected:d,isIndeterminate:p,isGroupActivator:h,root:g,parent:v,openOnSelect:y,id:b}=mM(s,()=>e.disabled,!1),S=lM(),w=L(()=>e.active!==!1&&(e.active||a.isActive?.value||(g.activatable.value?l.value:d.value))),C=se(()=>e.link!==!1&&a.isLink.value),P=L(()=>!!S&&(g.selectable.value||g.activatable.value||e.value!=null)),k=L(()=>!e.disabled&&e.link!==!1&&(e.link||a.isClickable.value||P.value)),R=L(()=>S?C.value?"link":P.value?"option":"listitem":void 0),T=L(()=>{if(P.value)return g.activatable.value?l.value:g.selectable.value?d.value:w.value}),I=se(()=>e.rounded||e.nav),x=se(()=>e.color??e.activeColor),A=se(()=>({color:w.value?x.value??e.baseColor:e.baseColor,variant:e.variant}));Oe(()=>a.isActive?.value,W=>{W&&D()}),nl(()=>{a.isActive?.value&&At(()=>D())});function D(){v.value!=null&&g.open(v.value,!0),y(!0)}const{themeClasses:B}=xn(e),{borderClasses:V}=Zs(e),{colorClasses:$,colorStyles:N,variantClasses:O}=Tu(A),{densityClasses:M}=us(e),{dimensionStyles:Y}=Br(e),{elevationClasses:X}=Ji(e),{roundedClasses:ie}=Er(I),Z=se(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),G=se(()=>e.ripple!==void 0&&e.ripple&&S?.filterable?{keys:["Enter"]}:e.ripple),le=L(()=>({isActive:w.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:p.value}));function ee(W){i("click",W),!["INPUT","TEXTAREA"].includes(W.target?.tagName)&&k.value&&(a.navigate?.(W),!h&&(g.activatable.value?o(!l.value,W):(g.selectable.value||e.value!=null&&!C.value)&&u(!d.value,W)))}function ue(W){const ne=W.target;["INPUT","TEXTAREA"].includes(ne.tagName)||(W.key==="Enter"||W.key===" "&&!S?.filterable)&&(W.preventDefault(),W.stopPropagation(),W.target.dispatchEvent(new MouseEvent("click",W)))}return Fe(()=>{const W=C.value?"a":e.tag,ne=r.title||e.title!=null,J=r.subtitle||e.subtitle!=null,ke=!!(e.appendAvatar||e.appendIcon),We=!!(ke||r.append),Ve=!!(e.prependAvatar||e.prependIcon),H=!!(Ve||r.prepend);return S?.updateHasPrepend(H),e.activeColor&&DL("active-color",["color","base-color"]),un(f(W,ve(a.linkProps,{class:["v-list-item",{"v-list-item--active":w.value,"v-list-item--disabled":e.disabled,"v-list-item--link":k.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&w.value},B.value,V.value,$.value,M.value,X.value,Z.value,ie.value,O.value,e.class],style:[{"--v-list-prepend-gap":Me(e.prependGap)},N.value,Y.value,e.style],tabindex:k.value?S?-2:0:void 0,"aria-selected":T.value,role:R.value,onClick:ee,onKeydown:k.value&&!C.value&&ue}),{default:()=>[ll(k.value||w.value,"v-list-item"),H&&E("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?f(sn,{key:"prepend-defaults",disabled:!Ve,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>[r.prepend?.(le.value)]}):E(Ne,null,[e.prependAvatar&&f(jn,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f(j,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),E("div",{class:"v-list-item__spacer"},null)]),E("div",{class:"v-list-item__content","data-no-activator":""},[ne&&f(Gt,{key:"title"},{default:()=>[r.title?.({title:e.title})??U(e.title)]}),J&&f(Ou,{key:"subtitle"},{default:()=>[r.subtitle?.({subtitle:e.subtitle})??U(e.subtitle)]}),r.default?.(le.value)]),We&&E("div",{key:"append",class:"v-list-item__append"},[r.append?f(sn,{key:"append-defaults",disabled:!ke,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>[r.append?.(le.value)]}):E(Ne,null,[e.appendIcon&&f(j,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f(jn,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),E("div",{class:"v-list-item__spacer"},null)])]}),[[bi,k.value&&G.value]])}),{activate:o,isActivated:l,isGroupActivator:h,isSelected:d,list:S,select:u,root:g,id:b,link:a}}}),rne=be({color:String,inset:Boolean,sticky:Boolean,title:String,...Qe(),...zt()},"VListSubheader"),_d=De()({name:"VListSubheader",props:rne(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:i}=Gi(()=>e.color);return Fe(()=>{const a=!!(n.default||e.title);return f(e.tag,{class:Te(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:je([{textColorStyles:i},e.style])},{default:()=>[a&&E("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})}),{}}}),ine=be({items:Array,returnObject:Boolean},"VListChildren"),hM=De()({name:"VListChildren",props:ine(),setup(e,t){let{slots:n}=t;return oM(),()=>n.default?.()??e.items?.map(r=>{let{children:i,props:a,type:s,raw:o}=r;if(s==="divider")return n.divider?.({props:a})??f(mt,a,null);if(s==="subheader")return n.subheader?.({props:a})??f(_d,a,null);const l={subtitle:n.subtitle?c=>n.subtitle?.({...c,item:o}):void 0,prepend:n.prepend?c=>n.prepend?.({...c,item:o}):void 0,append:n.append?c=>n.append?.({...c,item:o}):void 0,title:n.title?c=>n.title?.({...c,item:o}):void 0},u=TS.filterProps(a);return i?f(TS,ve(u,{value:e.returnObject?o:a?.value,rawId:a?.value}),{activator:c=>{let{props:d}=c;const p=ve(a,d,{value:e.returnObject?o:a.value});return n.header?n.header({props:p}):f(wt,p,l)},default:()=>f(hM,{items:i,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):f(wt,ve(a,{value:e.returnObject?o:a.value}),l)})}}),gM=be({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),sne=new Set(["item","divider","subheader"]);function yc(e,t){const n=Jn(t,e.itemTitle,t),r=Jn(t,e.itemValue,n),i=Jn(t,e.itemChildren),a=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Nn(t,["children"]):t:void 0:Jn(t,e.itemProps);let s=Jn(t,e.itemType,"item");sne.has(s)||(s="item");const o={title:n,value:r,...a};return{type:s,title:String(o.title??""),value:o.value,props:o,children:s==="item"&&Array.isArray(i)?vM(e,i):void 0,raw:t}}yc.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function vM(e,t){const n=Ys(e,yc.neededProps),r=[];for(const i of t)r.push(yc(n,i));return r}function yM(e){const t=L(()=>vM(e,e.items)),n=L(()=>t.value.some(o=>o.value===null)),r=Le(new Map),i=Le([]);ar(()=>{const o=t.value,l=new Map,u=[];for(let c=0;c<o.length;c++){const d=o[c];if(Jo(d.value)||d.value===null){let p=l.get(d.value);p||(p=[],l.set(d.value,p)),p.push(d)}else u.push(d)}r.value=l,i.value=u});function a(o){const l=r.value,u=t.value,c=i.value,d=n.value,p=e.returnObject,h=!!e.valueComparator,g=e.valueComparator||ti,v=Ys(e,yc.neededProps),y=[];e:for(const b of o){if(!d&&b===null)continue;if(p&&typeof b=="string"){y.push(yc(v,b));continue}const S=l.get(b);if(h||!S){for(const w of h?u:c)if(g(b,w.value)){y.push(w);continue e}y.push(yc(v,b));continue}y.push(...S)}return y}function s(o){return e.returnObject?o.map(l=>{let{raw:u}=l;return u}):o.map(l=>{let{value:u}=l;return u})}return{items:t,transformIn:a,transformOut:s}}const ane=new Set(["item","divider","subheader"]);function one(e,t){const n=Jo(t)?t:Jn(t,e.itemTitle),r=Jo(t)?t:Jn(t,e.itemValue,void 0),i=Jn(t,e.itemChildren),a=e.itemProps===!0?Nn(t,["children"]):Jn(t,e.itemProps);let s=Jn(t,e.itemType,"item");ane.has(s)||(s="item");const o={title:n,value:r,...a};return{type:s,title:o.title,value:o.value,props:o,children:s==="item"&&i?bM(e,i):void 0,raw:t}}function bM(e,t){const n=[];for(const r of t)n.push(one(e,r));return n}function lne(e){return{items:L(()=>bM(e,e.items))}}const une=be({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:et,collapseIcon:et,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":Lr(),"onClick:select":Lr(),"onUpdate:opened":Lr(),...Xte({selectStrategy:"single-leaf",openStrategy:"list"}),...As(),...Qe(),..._r(),...Vr(),...xi(),...gM(),...mr(),...zt(),...vn(),...ea({variant:"text"})},"VList"),Mr=De()({name:"VList",props:une(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=lne(e),{themeClasses:i}=xn(e),{backgroundColorClasses:a,backgroundColorStyles:s}=$n(()=>e.bgColor),{borderClasses:o}=Zs(e),{densityClasses:l}=us(e),{dimensionStyles:u}=Br(e),{elevationClasses:c}=Ji(e),{roundedClasses:d}=Er(e),{children:p,open:h,parents:g,select:v,getPath:y}=Jte(e,r,()=>e.returnObject),b=se(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=se(()=>e.activeColor),w=se(()=>e.baseColor),C=se(()=>e.color),P=se(()=>e.selectable||e.activatable);oM({filterable:e.filterable}),Sr({VListGroup:{activeColor:S,baseColor:w,color:C,expandIcon:se(()=>e.expandIcon),collapseIcon:se(()=>e.collapseIcon)},VListItem:{activeClass:se(()=>e.activeClass),activeColor:S,baseColor:w,color:C,density:se(()=>e.density),disabled:se(()=>e.disabled),lines:se(()=>e.lines),nav:se(()=>e.nav),slim:se(()=>e.slim),variant:se(()=>e.variant)}});const k=Le(!1),R=z();function T(V){k.value=!0}function I(V){k.value=!1}function x(V){!k.value&&!(V.relatedTarget&&R.value?.contains(V.relatedTarget))&&B()}function A(V){const $=V.target;if(!(!R.value||$.tagName==="INPUT"&&["Home","End"].includes(V.key)||$.tagName==="TEXTAREA")){if(V.key==="ArrowDown")B("next");else if(V.key==="ArrowUp")B("prev");else if(V.key==="Home")B("first");else if(V.key==="End")B("last");else return;V.preventDefault()}}function D(V){k.value=!0}function B(V){if(R.value)return Ef(R.value,V)}return Fe(()=>{const V=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return f(e.tag,{ref:R,class:Te(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,a.value,o.value,l.value,c.value,b.value,d.value,e.class]),style:je([{"--v-list-indent":Me(V),"--v-list-group-prepend":V?"0px":void 0,"--v-list-prepend-gap":Me(e.prependGap)},s.value,u.value,e.style]),tabindex:e.disabled?-1:0,role:P.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:T,onFocusout:I,onFocus:x,onKeydown:A,onMousedown:D},{default:()=>[f(hM,{items:r.value,returnObject:e.returnObject},n)]})}),{open:h,select:v,focus:B,children:p,parents:g,getPath:y}}}),cne={key:1},dne={key:2},fne={class:"mt-3"},pne={key:0},mne={key:1},hne={key:2},gne=Be({__name:"BatchReprintDialog",setup(e){const t=wn(),n=z(),r=qt(Kt.BatchReprintDialog),i=z(!1),a=z(!1),s=z([]),o=z([]),l=z(""),u=en();function c(g){i.value=!0}async function d(g){n.value=g;try{const v=await xf.batchGetLastPrintedFiles(n.value);s.value=v,o.value=v.filter(y=>y.connectionState==="Operational"&&y.reprintState==bl.LastPrintReady)}catch(v){l.value=v.code.toString()??""}i.value=!1}async function p(){a.value=!0;try{await xf.batchReprintFiles(o.value.filter(g=>g.file?.path).map(g=>({printerId:g.printerId,path:g.file?.path||""}))),t.clearSelectedPrinters(),u.info("Action completed","Your reprinted jobs are starting",5e3),h()}catch(g){l.value=jte(g)}finally{a.value=!1}}function h(){r.closeDialog(r.context())}return(g,v)=>{const y=na;return F(),Q(y,{id:re(r).dialogId,"max-width":"1000px",onBeforeOpened:c,onEscape:v[3]||(v[3]=b=>h()),onOpened:d},{default:m(()=>[f($e,{class:"pa-4"},{default:m(()=>[f(ot,null,{default:m(()=>[...v[4]||(v[4]=[E("span",{class:"text-h5"}," Batch - Submit Reprint Jobs ",-1)])]),_:1}),f(Ye,null,{default:m(()=>[l.value?.length?(F(),Q(kt,{key:0,color:"error"},{default:m(()=>[_(U(l.value),1)]),_:1})):ae("",!0),i.value?(F(),fe("span",cne," Loading... ")):(F(),fe("div",dne,[f(Mr,{density:"compact"},{default:m(()=>[f(_d,null,{default:m(()=>[...v[5]||(v[5]=[_(" Reprinted Files - Select from list ",-1)])]),_:1}),f(TS,{modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=b=>o.value=b),multiple:""},{default:m(()=>[(F(!0),fe(Ne,null,Zt(s.value,(b,S)=>(F(),Q(wt,{key:S,value:b,disabled:b.connectionState!=="Operational"||b.reprintState!==re(bl).LastPrintReady},{prepend:m(()=>[b.reprintState==re(bl).LastPrintReady?(F(),Q(j,{key:0},{default:m(()=>[...v[6]||(v[6]=[_("checklist",-1)])]),_:1})):ae("",!0),b.reprintState==re(bl).NoLastPrint?(F(),Q(j,{key:1},{default:m(()=>[...v[7]||(v[7]=[_(" question_mark ",-1)])]),_:1})):ae("",!0),b.reprintState==re(bl).PrinterNotAvailable?(F(),Q(j,{key:2},{default:m(()=>[...v[8]||(v[8]=[_(" signal_disconnected ",-1)])]),_:1})):ae("",!0)]),default:m(()=>[b.file?.path?.length?(F(),Q(Gt,{key:0},{default:m(()=>[_(U(b.file?.path)+" ",1),b.connectionState!=="Operational"?(F(),Q(Ke,{key:0},{default:m(()=>[...v[9]||(v[9]=[_(" Printer busy ",-1)])]),_:1})):ae("",!0)]),_:2},1024)):b.reprintState==re(bl).NoLastPrint?(F(),Q(Gt,{key:1},{default:m(()=>[...v[10]||(v[10]=[_(" No file is present to print again ",-1)])]),_:1})):(F(),Q(Gt,{key:2},{default:m(()=>[...v[11]||(v[11]=[_(" OctoPrint cant be reached ",-1)])]),_:1})),f(Ou,null,{default:m(()=>[_(" Printer '"+U(re(t).printer(b.printerId)?.name??"Unknown printer")+"' ",1)]),_:2},1024)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})])),E("div",fne,[a.value?(F(),fe("div",pne,[f(Qn,{class:"ma-3",indeterminate:"",color:"blue"}),v[12]||(v[12]=_(" Submitting ",-1))])):o.value.length>0?(F(),fe("div",mne,U(o.value.length)+" reprint selected ",1)):(F(),fe("div",hne,"Must select at least one file"))]),v[14]||(v[14]=E("br",null,null,-1)),f(te,{disabled:a.value||o.value.length===0,onClick:v[1]||(v[1]=b=>p())},{default:m(()=>[...v[13]||(v[13]=[_(" Submit Batch Reprint ",-1)])]),_:1},8,["disabled"])]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:v[2]||(v[2]=b=>re(r).closeDialog())},{default:m(()=>[...v[15]||(v[15]=[_(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}}),SM="/assets/bambu-logo-CHl3qEbB.png",wM="/assets/klipper-logo-B1Hu-a1R.svg",EM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Creator:%20CorelDRAW%202017%20--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='76.1823mm'%20height='18.3444mm'%20version='1.1'%20style='shape-rendering:geometricPrecision;%20text-rendering:geometricPrecision;%20image-rendering:optimizeQuality;%20fill-rule:evenodd;%20clip-rule:evenodd'%20viewBox='0%200%205483.86%201320.49'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c![CDATA[%20.fil0%20{fill:%23FEFEFE}%20.fil2%20{fill:%23FA6831}%20.fil3%20{fill:%23FEFEFE;fill-rule:nonzero}%20.fil1%20{fill:%232B2A29;fill-rule:nonzero}%20]]%3e%3c/style%3e%3c/defs%3e%3cg%20id='Layer_x0020_1'%3e%3cmetadata%20id='CorelCorpID_0Corel-Layer'/%3e%3cpath%20class='fil0'%20d='M-0%20385.77l3064.43%200%200%20934.72%20-3064.43%200%200%20-934.72zm5417.22%200l-2227.07%200%200%20934.72%202227.07%200%200%20-934.72z'/%3e%3cpath%20class='fil1'%20d='M3381.47%201144.22l426.16%200%200%20-131.38%20-273.43%200%200%20-454.89%20-152.73%200%200%20586.27zm-3073.6%20-463.92l102.63%200c46.8,0%2082.11,21.34%2082.11,77.18%200,53.37%20-33.66,73.08%20-82.11,73.08l-102.63%200%200%20-150.26zm-152.73%20463.92l152.73%200%200%20-195.42%20125.63%200c128.92,0%20211.85,-56.66%20211.85,-201.99%200,-138.76%20-102.64,-188.86%20-211.85,-188.86l-278.35%200%200%20586.27zm689.32%20-463.92l121.52%200c42.7,0%2077.18,19.7%2077.18,63.22%200,45.16%20-24.63,68.97%20-70.61,68.97l-128.09%200%200%20-132.2zm-152.73%20463.92l152.73%200%200%20-213.49%20115.78%200c72.26,0%2081.28,60.76%2085.39,119.88%202.46,17.25%204.1,73.08%2017.24,93.61l151.09%200c-20.53,-22.99%20-22.17,-106.74%20-24.63,-132.2%20-4.11,-55.84%20-23.81,-124.8%20-85.4,-140.41l0%20-1.64c62.41,-23.81%2091.97,-83.75%2091.97,-146.98%200,-118.24%20-102.63,-165.04%20-205.27,-165.04l-298.88%200%200%20586.27zm1073.59%20-586.27l-152.72%200%200%20353.08c0,75.54%20-27.1,114.13%20-102.64,114.13%20-75.54,0%20-102.63,-38.59%20-102.63,-114.13l0%20-353.08%20-152.73%200%200%20344.04c0,169.97%2078,254.54%20255.36,254.54%20177.36,0%20255.36,-84.57%20255.36,-254.54l0%20-344.04zm42.29%20389.21c0,150.26%20120.7,209.38%20254.54,209.38%20128.91,0%20255.36,-47.62%20255.36,-196.24%200,-105.92%20-85.39,-145.33%20-169.97,-169.15%20-85.39,-23.81%20-169.97,-31.2%20-169.97,-77.19%200,-38.59%2041.05,-50.09%2073.9,-50.09%2045.98,0%2096.89,18.07%2094.43,70.62l152.72%200c0,-131.38%20-119.06,-188.86%20-234.83,-188.86%20-110.03,0%20-238.94,50.09%20-238.94,178.18%200,108.39%2088.68,145.33%20171.61,169.15%2084.57,23.81%20168.33,32.85%20168.33,85.39%200,43.52%20-47.62,59.94%20-93.61,59.94%20-65.68,0%20-107.56,-22.17%20-110.85,-91.14l-152.72%200zm495.53%20197.06l156.83%200%2036.95%20-105.1%20204.45%200%2036.13%20105.1%20159.3%200%20-219.24%20-586.27%20-155.18%200%20-219.24%20586.27zm295.6%20-423.69l1.64%200%2064.86%20205.27%20-133.02%200%2066.51%20-205.27zm1258.56%20423.69l152.73%200%200%20-586.27%20-152.73%200%200%20586.27zm231.14%200l143.69%200%200%20-365.39%201.64%200%20203.63%20365.39%20156.83%200%200%20-586.27%20-143.69%200%200%20361.28%20-1.64%200%20-203.63%20-361.28%20-156.83%200%200%20586.27zm584.21%200l152.73%200%200%20-180.64%2062.4%20-65.68%20157.65%20246.33%20189.68%200%20-243.87%20-355.53%20216.77%20-230.74%20-189.68%200%20-192.96%20224.98%200%20-224.98%20-152.73%200%200%20586.27z'/%3e%3cpolygon%20class='fil2'%20points='5483.86,0%204170.36,0%204170.36,486.71%205483.86,486.71%20'/%3e%3cpath%20class='fil3'%20d='M4377.66%20154.79l62.68%200c16.97,0%2033.08,7.4%2033.08,30.03%200,22.2%20-19.15,29.6%20-33.08,29.6l-62.68%200%200%20-59.63zm-80.96%20248.1l149.29%200c66.6,0%20121,-22.63%20121,-96.63%200,-35.26%20-20.46,-63.55%20-53.54,-73.56%2024.38,-12.19%2040.92,-34.82%2040.92,-62.68%200,-64.42%20-58.76,-79.22%20-112.29,-77.91l-145.38%200%200%20310.77zm80.96%20-136.24l64.85%200c24.37,0%2043.53,9.14%2043.53,36.56%200,25.68%20-17.84,34.82%20-43.53,34.82l-64.85%200%200%20-71.38zm219.59%20136.24l252.01%200%200%20-69.64%20-171.05%200%200%20-59.19%20152.34%200%200%20-62.68%20-152.34%200%200%20-54.41%20166.71%200%200%20-64.85%20-247.67%200%200%20310.77zm530.8%20-310.77l-266.38%200%200%2069.64%2092.71%200%200%20241.14%2080.96%200%200%20-241.14%2092.71%200%200%20-69.64zm-49.83%20310.77l83.13%200%2019.59%20-55.72%20108.38%200%2019.15%2055.72%2084.44%200%20-116.21%20-310.77%20-82.27%200%20-116.21%20310.77zm156.69%20-224.6l0.87%200%2034.39%20108.82%20-70.51%200%2035.26%20-108.82z'/%3e%3c/g%3e%3c/svg%3e",IS="/assets/octoprint-tentacle-D_4slObB.svg",ja=0,Jl=1,Mo=2,hs=3;function vne(e){return e===ja}function PS(e){return e===Jl}function RS(e){return e===Mo}function AS(e){return e===hs}function ss(e){return vne(e)?"OctoPrint":PS(e)?"Moonraker":RS(e)?"PrusaLink":AS(e)?"Bambu":"Unknown"}function VI(e,t){const n=e?.printerModel?.toLowerCase()||"";if(n.includes("bambu")||n.includes("x1")||n.includes("p1"))return SM;if(n.includes("klipper")||n.includes("voron")||n.includes("ratrig"))return wM;if(n.includes("prusa")||n.includes("mk3")||n.includes("mk4")||n.includes("mini"))return EM;if(n.includes("ender")||n.includes("creality")||t==="gcode")return IS}const yne=[{name:ss(ja),value:ja},{name:ss(Jl),value:Jl},{name:ss(Mo),value:Mo},{name:ss(hs),value:hs}],bne={hasSerialConnection:!0,canSyncName:!0,hasWebInterface:!0,hasEmergencyStop:!0,hasPrinterControl:!0},Sne={hasSerialConnection:!1,canSyncName:!1,hasWebInterface:!1,hasEmergencyStop:!0,hasPrinterControl:!0},wne={hasSerialConnection:!1,canSyncName:!1,hasWebInterface:!0,hasEmergencyStop:!1,hasPrinterControl:!1},Ene={hasSerialConnection:!1,canSyncName:!1,hasWebInterface:!1,hasEmergencyStop:!1,hasPrinterControl:!0},im={[ja]:bne,[Jl]:Sne,[Mo]:wne,[hs]:Ene};function Ex(e){return im[e]?.hasSerialConnection??!1}function xne(e){return im[e]?.canSyncName??!1}function xM(e){return im[e]?.hasWebInterface??!1}function CM(e){return im[e]?.hasEmergencyStop??!1}function Mb(e){return im[e]?.hasPrinterControl??!1}const hr=z({isOpen:!1,currentPrinterId:void 0,loading:!0,error:!1,lastLoadedPrinterId:void 0});function sm(){const e=L(()=>hr.value.isOpen),t=L(()=>hr.value.currentPrinterId),n=L(()=>hr.value.loading),r=L(()=>hr.value.error),i=L(()=>hr.value.lastLoadedPrinterId);return{isOpen:e,currentPrinterId:t,loading:n,error:r,lastLoadedPrinterId:i,openFileExplorer:c=>{const d=hr.value.lastLoadedPrinterId!==c.id;hr.value.isOpen=!0,hr.value.currentPrinterId=c.id,d&&(hr.value.error=!1,hr.value.lastLoadedPrinterId=c.id)},closeFileExplorer:()=>{hr.value.isOpen=!1,hr.value.currentPrinterId=void 0,hr.value.error=!1,hr.value.lastLoadedPrinterId=void 0},setLoading:c=>{hr.value.loading=c},setError:c=>{hr.value.error=c},resetForPrinter:c=>{hr.value.lastLoadedPrinterId===c&&(hr.value.error=!1,hr.value.loading=!0)}}}function Cne(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const i=Le(!1),a=Le(0),s=L(()=>{const u=typeof i.value=="boolean"?"top":i.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,i.value?{[u]:Me(a.value)}:{top:r.value.top}]});Nt(()=>{Oe(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),wr(()=>{window.removeEventListener("scroll",l)});let o=0;function l(){const u=o>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(r.value.top??0),p=window.scrollY-Math.max(0,a.value-d),h=c.height+Math.max(a.value,d)-window.scrollY-window.innerHeight,g=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-d?(i.value="top",a.value=d):u==="up"&&i.value==="bottom"||u==="down"&&i.value==="top"?(a.value=window.scrollY+c.top-g,i.value=!0):u==="down"&&h<=0?(a.value=0,i.value="bottom"):u==="up"&&p<=0&&(g?i.value!=="top"&&(a.value=-p+g+d,i.value="top"):(a.value=c.top+p,i.value="top")),o=window.scrollY}return{isStuck:i,stickyStyles:s}}const kne=100,_ne=20;function BI(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function UI(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const r=BI(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-r)*Math.abs(i),n===e.length-1&&(t*=.5)}return BI(t)*1e3}function Tne(){const e={};function t(i){Array.from(i.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new BL(_ne))).push([i.timeStamp,a])})}function n(i){Array.from(i.changedTouches).forEach(a=>{delete e[a.identifier]})}function r(i){const a=e[i]?.values().reverse();if(!a)throw new Error(`No samples for touch id ${i}`);const s=a[0],o=[],l=[];for(const u of a){if(s[0]-u[0]>kne)break;o.push({t:u[0],d:u[1].clientX}),l.push({t:u[0],d:u[1].clientY})}return{x:UI(o),y:UI(l),get direction(){const{x:u,y:c}=this,[d,p]=[Math.abs(u),Math.abs(c)];return d>p&&u>=0?"right":d>p&&u<=0?"left":p>d&&c>=0?"down":p>d&&c<=0?"up":Ine()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function Ine(){throw new Error}function Pne(e){let{el:t,isActive:n,isTemporary:r,width:i,touchless:a,position:s}=e;Nt(()=>{window.addEventListener("touchstart",S,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",C,{passive:!0})}),wr(()=>{window.removeEventListener("touchstart",S),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",C)});const o=L(()=>["left","right"].includes(s.value)),{addMovement:l,endTouch:u,getVelocity:c}=Tne();let d=!1;const p=Le(!1),h=Le(0),g=Le(0);let v;function y(k,R){return(s.value==="left"?k:s.value==="right"?document.documentElement.clientWidth-k:s.value==="top"?k:s.value==="bottom"?document.documentElement.clientHeight-k:zu())-(R?i.value:0)}function b(k){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const T=s.value==="left"?(k-g.value)/i.value:s.value==="right"?(document.documentElement.clientWidth-k-g.value)/i.value:s.value==="top"?(k-g.value)/i.value:s.value==="bottom"?(document.documentElement.clientHeight-k-g.value)/i.value:zu();return R?On(T):T}function S(k){if(a.value)return;const R=k.changedTouches[0].clientX,T=k.changedTouches[0].clientY,I=25,x=s.value==="left"?R<I:s.value==="right"?R>document.documentElement.clientWidth-I:s.value==="top"?T<I:s.value==="bottom"?T>document.documentElement.clientHeight-I:zu(),A=n.value&&(s.value==="left"?R<i.value:s.value==="right"?R>document.documentElement.clientWidth-i.value:s.value==="top"?T<i.value:s.value==="bottom"?T>document.documentElement.clientHeight-i.value:zu());(x||A||n.value&&r.value)&&(v=[R,T],g.value=y(o.value?R:T,n.value),h.value=b(o.value?R:T),d=g.value>-20&&g.value<80,u(k),l(k))}function w(k){const R=k.changedTouches[0].clientX,T=k.changedTouches[0].clientY;if(d){if(!k.cancelable){d=!1;return}const x=Math.abs(R-v[0]),A=Math.abs(T-v[1]);(o.value?x>A&&x>3:A>x&&A>3)?(p.value=!0,d=!1):(o.value?A:x)>3&&(d=!1)}if(!p.value)return;k.preventDefault(),l(k);const I=b(o.value?R:T,!1);h.value=Math.max(0,Math.min(1,I)),I>1?g.value=y(o.value?R:T,!0):I<0&&(g.value=y(o.value?R:T,!1))}function C(k){if(d=!1,!p.value)return;l(k),p.value=!1;const R=c(k.changedTouches[0].identifier),T=Math.abs(R.x),I=Math.abs(R.y);(o.value?T>I&&T>400:I>T&&I>3)?n.value=R.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||zu()):n.value=h.value>.5}const P=L(()=>p.value?{transform:s.value==="left"?`translateX(calc(-100% + ${h.value*i.value}px))`:s.value==="right"?`translateX(calc(100% - ${h.value*i.value}px))`:s.value==="top"?`translateY(calc(-100% + ${h.value*i.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${h.value*i.value}px))`:zu(),transition:"none"}:void 0);return zi(p,()=>{const k=t.value?.style.transform??null,R=t.value?.style.transition??null;ar(()=>{t.value?.style.setProperty("transform",P.value?.transform||"none"),t.value?.style.setProperty("transition",P.value?.transition||null)}),Rn(()=>{t.value?.style.setProperty("transform",k),t.value?.style.setProperty("transition",R)})}),{isDragging:p,dragProgress:h,dragStyles:P}}function zu(){throw new Error}function am(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
|
|
52
|
-
KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
|
|
53
|
-
VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
|
|
54
|
-
MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
|
|
55
|
-
IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function Rne(e,t,n){const r=[];let i=[];const a=kM(e),s=_M(e),o=n??am(t)?.firstDay??0,l=(a.getDay()-o+7)%7,u=(s.getDay()-o+7)%7;for(let c=0;c<l;c++){const d=new Date(a);d.setDate(d.getDate()-(l-c)),i.push(d)}for(let c=1;c<=s.getDate();c++){const d=new Date(e.getFullYear(),e.getMonth(),c);i.push(d),i.length===7&&(r.push(i),i=[])}for(let c=1;c<7-u;c++){const d=new Date(s);d.setDate(d.getDate()+c),i.push(d)}return i.length>0&&r.push(i),r}function Cf(e,t,n){let r=(n??am(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const i=new Date(e);for(;i.getDay()!==r;)i.setDate(i.getDate()-1);return i}function Ane(e,t){const n=new Date(e),r=((am(t)?.firstDay??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function kM(e){return new Date(e.getFullYear(),e.getMonth(),1)}function _M(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function One(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const Nne=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function TM(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Nne.test(e))return One(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const jI=new Date(2e3,0,2);function Dne(e,t,n){const r=t??am(e)?.firstDay??0;return Il(7).map(i=>{const a=new Date(jI);return a.setDate(jI.getDate()+r+i),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(a)})}function Lne(e,t,n,r){const i=TM(e)??new Date,a=r?.[t];if(typeof a=="function")return a(i,t,n);let s={};switch(t){case"fullDate":s={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const o=i.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(i);return`${o} ${l}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(i.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric"};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,s).format(i).replace(/, /g," ");case"keyboardDateTime12h":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,s).format(i).replace(/, /g," ");case"keyboardDateTime24h":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,s).format(i).replace(/, /g," ");default:s=a??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,s).format(i)}function Fne(e,t){const n=e.toJsDate(t),r=n.getFullYear(),i=WT(String(n.getMonth()+1),2,"0"),a=WT(String(n.getDate()),2,"0");return`${r}-${i}-${a}`}function Mne(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function $ne(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Vne(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Ql(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Bne(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Une(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function ap(e){return e.getFullYear()}function jne(e){return e.getMonth()}function zne(e,t,n,r){const i=am(t),a=n??i?.firstDay??0,s=i?.firstWeekSize??1;return r!==void 0?Hne(e,t,a,r):Wne(e,t,a,s)}function Hne(e,t,n,r){const i=(7+r-n)%7,a=Cf(e,t,n),s=Ql(a,6);function o(p){return(7+new Date(p,0,1).getDay()-n)%7}let l=ap(a);l<ap(s)&&o(l+1)<=i&&l++;const u=new Date(l,0,1),c=o(l),d=c<=i?Ql(u,-c):Ql(u,7-c);return 1+Ag(xx(a),op(d),"weeks")}function Wne(e,t,n,r){const i=Cf(e,t,n),a=Ql(Cf(e,t,n),6);function s(d){const p=new Date(d,0,1);return 7-Ag(p,Cf(p,t,n),"days")}let o=ap(i);o<ap(a)&&s(o+1)>=r&&o++;const l=new Date(o,0,1),u=s(o),c=u>=r?Ql(l,u-7):Ql(l,u);return 1+Ag(xx(i),op(c),"weeks")}function Gne(e){return e.getDate()}function qne(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function Kne(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function Yne(e){return e.getHours()}function Xne(e){return e.getMinutes()}function Jne(e){return new Date(e.getFullYear(),0,1)}function Qne(e){return new Date(e.getFullYear(),11,31)}function Zne(e,t){return Rg(e,t[0])&&nre(e,t[1])}function ere(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Rg(e,t){return e.getTime()>t.getTime()}function tre(e,t){return Rg(op(e),op(t))}function nre(e,t){return e.getTime()<t.getTime()}function zI(e,t){return e.getTime()===t.getTime()}function rre(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function ire(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function sre(e,t){return e.getFullYear()===t.getFullYear()}function Ag(e,t,n){const r=new Date(e),i=new Date(t);switch(n){case"years":return r.getFullYear()-i.getFullYear();case"quarters":return Math.floor((r.getMonth()-i.getMonth()+(r.getFullYear()-i.getFullYear())*12)/4);case"months":return r.getMonth()-i.getMonth()+(r.getFullYear()-i.getFullYear())*12;case"weeks":return Math.floor((r.getTime()-i.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((r.getTime()-i.getTime())/(1e3*60*60*24));case"hours":return Math.floor((r.getTime()-i.getTime())/(1e3*60*60));case"minutes":return Math.floor((r.getTime()-i.getTime())/(1e3*60));case"seconds":return Math.floor((r.getTime()-i.getTime())/1e3);default:return r.getTime()-i.getTime()}}function are(e,t){const n=new Date(e);return n.setHours(t),n}function ore(e,t){const n=new Date(e);return n.setMinutes(t),n}function lre(e,t){const n=new Date(e);return n.setMonth(t),n}function ure(e,t){const n=new Date(e);return n.setDate(t),n}function cre(e,t){const n=new Date(e);return n.setFullYear(t),n}function op(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function xx(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class dre{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return TM(t)}toJsDate(t){return t}toISO(t){return Fne(this,t)}parseISO(t){return Mne(t)}addMinutes(t,n){return $ne(t,n)}addHours(t,n){return Vne(t,n)}addDays(t,n){return Ql(t,n)}addWeeks(t,n){return Bne(t,n)}addMonths(t,n){return Une(t,n)}getWeekArray(t,n){const r=n!==void 0?Number(n):void 0;return Rne(t,this.locale,r)}startOfWeek(t,n){const r=n!==void 0?Number(n):void 0;return Cf(t,this.locale,r)}endOfWeek(t){return Ane(t,this.locale)}startOfMonth(t){return kM(t)}endOfMonth(t){return _M(t)}format(t,n){return Lne(t,n,this.locale,this.formats)}isEqual(t,n){return zI(t,n)}isValid(t){return ere(t)}isWithinRange(t,n){return Zne(t,n)}isAfter(t,n){return Rg(t,n)}isAfterDay(t,n){return tre(t,n)}isBefore(t,n){return!Rg(t,n)&&!zI(t,n)}isSameDay(t,n){return rre(t,n)}isSameMonth(t,n){return ire(t,n)}isSameYear(t,n){return sre(t,n)}setMinutes(t,n){return ore(t,n)}setHours(t,n){return are(t,n)}setMonth(t,n){return lre(t,n)}setDate(t,n){return ure(t,n)}setYear(t,n){return cre(t,n)}getDiff(t,n,r){return Ag(t,n,r)}getWeekdays(t,n){const r=t!==void 0?Number(t):void 0;return Dne(this.locale,r,n)}getYear(t){return ap(t)}getMonth(t){return jne(t)}getWeek(t,n,r){const i=n!==void 0?Number(n):void 0,a=r!==void 0?Number(r):void 0;return zne(t,this.locale,i,a)}getDate(t){return Gne(t)}getNextMonth(t){return qne(t)}getPreviousMonth(t){return Kne(t)}getHours(t){return Yne(t)}getMinutes(t){return Xne(t)}startOfDay(t){return op(t)}endOfDay(t){return xx(t)}startOfYear(t){return Jne(t)}endOfYear(t){return Qne(t)}}const fre=Symbol.for("vuetify:date-options"),HI=Symbol.for("vuetify:date-adapter");function pre(e,t){const n=ei({adapter:dre,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:mre(n,t)}}function mre(e,t){const n=An(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return Oe(t.current,r=>{n.locale=e.locale[r]??r??n.locale}),n}const lp=Symbol.for("vuetify:layout"),IM=Symbol.for("vuetify:layout-item"),WI=1e3,PM=be({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),RM=be({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function AM(){const e=ft(lp);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function OM(e){const t=ft(lp);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Si()}`,r=zn("useLayoutItem");Sn(IM,{id:n});const i=Le(!1);gv(()=>i.value=!0),Nw(()=>i.value=!1);const{layoutItemStyles:a,layoutItemScrimStyles:s}=t.register(r,{...e,active:L(()=>i.value?!1:e.active.value),id:n});return wr(()=>t.unregister(n)),{layoutItemStyles:a,layoutRect:t.layoutRect,layoutItemScrimStyles:s}}const hre=(e,t,n,r)=>{let i={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...i}}];for(const s of e){const o=t.get(s),l=n.get(s),u=r.get(s);if(!o||!l||!u)continue;const c={...i,[o.value]:parseInt(i[o.value],10)+(u.value?parseInt(l.value,10):0)};a.push({id:s,layer:c}),i=c}return a};function NM(e){const t=ft(lp,null),n=L(()=>t?t.rootZIndex.value-100:WI),r=z([]),i=An(new Map),a=An(new Map),s=An(new Map),o=An(new Map),l=An(new Map),{resizeRef:u,contentRect:c}=po(),d=L(()=>{const k=new Map,R=e.overlaps??[];for(const T of R.filter(I=>I.includes(":"))){const[I,x]=T.split(":");if(!r.value.includes(I)||!r.value.includes(x))continue;const A=i.get(I),D=i.get(x),B=a.get(I),V=a.get(x);!A||!D||!B||!V||(k.set(x,{position:A.value,amount:parseInt(B.value,10)}),k.set(I,{position:D.value,amount:-parseInt(V.value,10)}))}return k}),p=L(()=>{const k=[...new Set([...s.values()].map(T=>T.value))].sort((T,I)=>T-I),R=[];for(const T of k){const I=r.value.filter(x=>s.get(x)?.value===T);R.push(...I)}return hre(R,i,a,o)}),h=L(()=>!Array.from(l.values()).some(k=>k.value)),g=L(()=>p.value[p.value.length-1].layer),v=se(()=>({"--v-layout-left":Me(g.value.left),"--v-layout-right":Me(g.value.right),"--v-layout-top":Me(g.value.top),"--v-layout-bottom":Me(g.value.bottom),...h.value?void 0:{transition:"none"}})),y=L(()=>p.value.slice(1).map((k,R)=>{let{id:T}=k;const{layer:I}=p.value[R],x=a.get(T),A=i.get(T);return{id:T,...I,size:Number(x.value),position:A.value}})),b=k=>y.value.find(R=>R.id===k),S=zn("createLayout"),w=Le(!1);Nt(()=>{w.value=!0}),Sn(lp,{register:(k,R)=>{let{id:T,order:I,position:x,layoutSize:A,elementSize:D,active:B,disableTransitions:V,absolute:$}=R;s.set(T,I),i.set(T,x),a.set(T,A),o.set(T,B),V&&l.set(T,V);const O=lc(IM,S?.vnode).indexOf(k);O>-1?r.value.splice(O,0,T):r.value.push(T);const M=L(()=>y.value.findIndex(Z=>Z.id===T)),Y=L(()=>n.value+p.value.length*2-M.value*2),X=L(()=>{const Z=x.value==="left"||x.value==="right",G=x.value==="right",le=x.value==="bottom",ee=D.value??A.value,ue=ee===0?"%":"px",W={[x.value]:0,zIndex:Y.value,transform:`translate${Z?"X":"Y"}(${(B.value?0:-(ee===0?100:ee))*(G||le?-1:1)}${ue})`,position:$.value||n.value!==WI?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!w.value)return W;const ne=y.value[M.value],J=d.value.get(T);return J&&(ne[J.position]+=J.amount),{...W,height:Z?`calc(100% - ${ne.top}px - ${ne.bottom}px)`:D.value?`${D.value}px`:void 0,left:G?void 0:`${ne.left}px`,right:G?`${ne.right}px`:void 0,top:x.value!=="bottom"?`${ne.top}px`:void 0,bottom:x.value!=="top"?`${ne.bottom}px`:void 0,width:Z?D.value?`${D.value}px`:void 0:`calc(100% - ${ne.left}px - ${ne.right}px)`}}),ie=L(()=>({zIndex:Y.value-1}));return{layoutItemStyles:X,layoutItemScrimStyles:ie,zIndex:Y}},unregister:k=>{s.delete(k),i.delete(k),a.delete(k),o.delete(k),l.delete(k),r.value=r.value.filter(R=>R!==k)},mainRect:g,mainStyles:v,getLayoutItem:b,items:y,layoutRect:c,rootZIndex:n});const C=se(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),P=se(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:C,layoutStyles:P,getLayoutItem:b,items:y,layoutRect:c,layoutRef:u}}const gre=["start","end","left","right","top","bottom"],vre=be({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>gre.includes(e)},sticky:Boolean,...As(),...Qe(),...DF(),...Ru({mobile:null}),...xi(),...RM(),...mr(),...Nn(MF(),["disableInitialFocus"]),...zt({tag:"nav"}),...vn()},"VNavigationDrawer"),Cx=De()({name:"VNavigationDrawer",props:vre(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{isRtl:a}=Tr(),{themeClasses:s}=xn(e),{borderClasses:o}=Zs(e),{backgroundColorClasses:l,backgroundColorStyles:u}=$n(()=>e.color),{elevationClasses:c}=Ji(e),{displayClasses:d,mobile:p}=ta(e),{roundedClasses:h}=Er(e),g=cF(),v=gt(e,"modelValue",null,X=>!!X),{ssrBootStyles:y}=rm(),{scopeId:b}=Au(),S=z(),w=Le(!1),{runOpenDelay:C,runCloseDelay:P}=LF(e,X=>{w.value=X}),k=L(()=>e.rail&&e.expandOnHover&&w.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),R=L(()=>uS(e.location,a.value)),T=se(()=>e.persistent),I=L(()=>!e.permanent&&(p.value||e.temporary)),x=L(()=>e.sticky&&!I.value&&R.value!=="bottom");$F(e,{isActive:v,localTop:I,contentEl:S}),zi(()=>e.expandOnHover&&e.rail!=null,()=>{Oe(w,X=>r("update:rail",!X))}),zi(()=>!e.disableResizeWatcher,()=>{Oe(I,X=>!e.permanent&&At(()=>v.value=!X))}),zi(()=>!e.disableRouteWatcher&&!!g,()=>{Oe(g.currentRoute,()=>I.value&&(v.value=!1))}),Oe(()=>e.permanent,X=>{X&&(v.value=!0)}),e.modelValue==null&&!I.value&&(v.value=e.permanent||!p.value);const{isDragging:A,dragProgress:D}=Pne({el:S,isActive:v,isTemporary:I,width:k,touchless:se(()=>e.touchless),position:R}),B=L(()=>{const X=I.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):k.value;return A.value?X*D.value:X}),{layoutItemStyles:V,layoutItemScrimStyles:$}=OM({id:e.name,order:L(()=>parseInt(e.order,10)),position:R,layoutSize:B,elementSize:k,active:va(v),disableTransitions:se(()=>A.value),absolute:L(()=>e.absolute||x.value&&typeof N.value!="string")}),{isStuck:N,stickyStyles:O}=Cne({rootEl:S,isSticky:x,layoutItemStyles:V}),M=$n(()=>typeof e.scrim=="string"?e.scrim:null),Y=L(()=>({...A.value?{opacity:D.value*.2,transition:"none"}:void 0,...$.value}));return Sr({VList:{bgColor:"transparent"}}),Fe(()=>{const X=i.image||e.image;return E(Ne,null,[f(e.tag,ve({ref:S,onMouseenter:C,onMouseleave:P,class:["v-navigation-drawer",`v-navigation-drawer--${R.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":w.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":I.value,"v-navigation-drawer--persistent":T.value,"v-navigation-drawer--active":v.value,"v-navigation-drawer--sticky":x.value},s.value,l.value,o.value,d.value,c.value,h.value,e.class],style:[u.value,V.value,y.value,O.value,e.style],inert:!v.value},b,n),{default:()=>[X&&E("div",{key:"image",class:"v-navigation-drawer__img"},[i.image?f(sn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},i.image):f(ri,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),i.prepend&&E("div",{class:"v-navigation-drawer__prepend"},[i.prepend?.()]),E("div",{class:"v-navigation-drawer__content"},[i.default?.()]),i.append&&E("div",{class:"v-navigation-drawer__append"},[i.append?.()])]}),f(so,{name:"fade-transition"},{default:()=>[I.value&&(A.value||v.value)&&!!e.scrim&&E("div",ve({class:["v-navigation-drawer__scrim",M.backgroundColorClasses.value],style:[Y.value,M.backgroundColorStyles.value],onClick:()=>{T.value||(v.value=!1)}},b),null)]})])}),{isStuck:N}}}),yre=be({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Qe(),...Cd({transition:{component:Xv}})},"VCounter"),kx=De()({name:"VCounter",functional:!0,props:yre(),setup(e,t){let{slots:n}=t;const r=se(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Fe(()=>f(pa,{transition:e.transition},{default:()=>[un(E("div",{class:Te(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:je(e.style)},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[ai,e.active]])]})),{}}}),bre=be({text:String,onClick:Lr(),...Qe(),...vn()},"VLabel"),Zv=De()({name:"VLabel",props:bre(),setup(e,t){let{slots:n}=t;return Fe(()=>E("label",{class:Te(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:je(e.style),onClick:e.onClick},[e.text,n.default?.()])),{}}}),Sre=be({floating:Boolean,...Qe()},"VFieldLabel"),zm=De()({name:"VFieldLabel",props:Sre(),setup(e,t){let{slots:n}=t;return Fe(()=>f(Zv,{class:Te(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:je(e.style)},n)),{}}});function ey(e){const{t}=Ur();function n(r){let{name:i,color:a,...s}=r;const o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],l=e[`onClick:${i}`];function u(d){d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.stopPropagation(),Qp(l,new PointerEvent("click",d)))}const c=l&&o?t(`$vuetify.input.${o}`,e.label??""):void 0;return f(j,ve({icon:e[`${i}Icon`],"aria-label":c,onClick:l,onKeydown:u,color:a},s),null)}return{InputIcon:n}}const _x=be({focused:Boolean,"onUpdate:focused":Lr()},"focus");function Nu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a();const n=gt(e,"focused"),r=se(()=>({[`${t}--focused`]:n.value}));function i(){n.value=!0}function a(){n.value=!1}return{focusClasses:r,isFocused:n,focus:i,blur:a}}const wre=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],ty=be({appendInnerIcon:et,bgColor:String,clearable:Boolean,clearIcon:{type:et,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:et,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>wre.includes(e)},"onClick:clear":Lr(),"onClick:appendInner":Lr(),"onClick:prependInner":Lr(),...Qe(),...Wv(),...mr(),...vn()},"VField"),Yc=De()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,labelId:String,..._x(),...ty()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{themeClasses:a}=xn(e),{loaderClasses:s}=tm(e),{focusClasses:o,isFocused:l,focus:u,blur:c}=Nu(e),{InputIcon:d}=ey(e),{roundedClasses:p}=Er(e),{rtlClasses:h}=Tr(),g=se(()=>e.dirty||e.active),v=se(()=>!!(e.label||i.label)),y=se(()=>!e.singleLine&&v.value),b=Si(),S=L(()=>e.id||`input-${b}`),w=se(()=>e.details?`${S.value}-messages`:void 0),C=z(),P=z(),k=z(),R=L(()=>["plain","underlined"].includes(e.variant)),T=L(()=>e.error||e.disabled?void 0:g.value&&l.value?e.color:e.baseColor),I=L(()=>{if(!(!e.iconColor||e.glow&&!l.value))return e.iconColor===!0?T.value:e.iconColor}),{backgroundColorClasses:x,backgroundColorStyles:A}=$n(()=>e.bgColor),{textColorClasses:D,textColorStyles:B}=Gi(T);Oe(g,N=>{if(y.value&&!cu()){const O=C.value.$el,M=P.value.$el;requestAnimationFrame(()=>{const Y=JE(O),X=M.getBoundingClientRect(),ie=X.x-Y.x,Z=X.y-Y.y-(Y.height/2-X.height/2),G=X.width/.75,le=Math.abs(G-Y.width)>1?{maxWidth:Me(G)}:void 0,ee=getComputedStyle(O),ue=getComputedStyle(M),W=parseFloat(ee.transitionDuration)*1e3||150,ne=parseFloat(ue.getPropertyValue("--v-field-label-scale")),J=ue.getPropertyValue("color");O.style.visibility="visible",M.style.visibility="hidden",$a(O,{transform:`translate(${ie}px, ${Z}px) scale(${ne})`,color:J,...le},{duration:W,easing:Zf,direction:N?"normal":"reverse"}).finished.then(()=>{O.style.removeProperty("visibility"),M.style.removeProperty("visibility")})})}},{flush:"post"});const V=L(()=>({isActive:g,isFocused:l,controlRef:k,iconColor:I,blur:c,focus:u}));function $(N){N.target!==document.activeElement&&N.preventDefault()}return Fe(()=>{const N=e.variant==="outlined",O=!!(i["prepend-inner"]||e.prependInnerIcon),M=!!(e.clearable||i.clear)&&!e.disabled,Y=!!(i["append-inner"]||e.appendInnerIcon||M),X=()=>i.label?i.label({...V.value,label:e.label,props:{for:S.value}}):e.label;return E("div",ve({class:["v-field",{"v-field--active":g.value,"v-field--appended":Y,"v-field--center-affix":e.centerAffix??!R.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":O,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!X(),[`v-field--variant-${e.variant}`]:!0},a.value,x.value,o.value,s.value,p.value,h.value,e.class],style:[A.value,e.style],onClick:$},n),[E("div",{class:"v-field__overlay"},null),f(Gv,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:i.loader}),O&&E("div",{key:"prepend",class:"v-field__prepend-inner"},[i["prepend-inner"]?i["prepend-inner"](V.value):e.prependInnerIcon&&f(d,{key:"prepend-icon",name:"prependInner",color:I.value},null)]),E("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&y.value&&f(zm,{key:"floating-label",ref:P,class:Te([D.value]),floating:!0,for:S.value,"aria-hidden":!g.value,style:je(B.value)},{default:()=>[X()]}),v.value&&f(zm,{key:"label",ref:C,id:e.labelId,for:S.value,"aria-hidden":y.value&&g.value},{default:()=>[X()]}),i.default?.({...V.value,props:{id:S.value,class:"v-field__input","aria-describedby":w.value},focus:u,blur:c})??E("div",{id:S.value,class:"v-field__input","aria-describedby":w.value},null)]),M&&f(CF,{key:"clear"},{default:()=>[un(E("div",{class:"v-field__clearable",onMousedown:ie=>{ie.preventDefault(),ie.stopPropagation()}},[f(sn,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[i.clear?i.clear({...V.value,props:{onFocus:u,onBlur:c,onClick:e["onClick:clear"],tabindex:-1}}):f(d,{name:"clear",onFocus:u,onBlur:c,tabindex:-1},null)]})]),[[ai,e.dirty]])]}),Y&&E("div",{key:"append",class:"v-field__append-inner"},[i["append-inner"]?i["append-inner"](V.value):e.appendInnerIcon&&f(d,{key:"append-icon",name:"appendInner",color:I.value},null)]),E("div",{class:Te(["v-field__outline",D.value]),style:je(B.value)},[N&&E(Ne,null,[E("div",{class:"v-field__outline__start"},null),y.value&&E("div",{class:"v-field__outline__notch"},[f(zm,{ref:P,floating:!0,for:S.value,"aria-hidden":!g.value},{default:()=>[X()]})]),E("div",{class:"v-field__outline__end"},null)]),R.value&&y.value&&f(zm,{ref:P,floating:!0,for:S.value,"aria-hidden":!g.value},{default:()=>[X()]})])])}),{controlRef:k,fieldIconColor:I}}}),Ere=be({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Qe(),...Cd({transition:{component:Xv,leaveAbsolute:!0,group:!0}})},"VMessages"),xre=De()({name:"VMessages",props:Ere(),setup(e,t){let{slots:n}=t;const r=L(()=>rr(e.messages)),{textColorClasses:i,textColorStyles:a}=Gi(()=>e.color);return Fe(()=>f(pa,{transition:e.transition,tag:"div",class:Te(["v-messages",i.value,e.class]),style:je([a.value,e.style])},{default:()=>[e.active&&r.value.map((s,o)=>E("div",{class:"v-messages__message",key:`${o}-${r.value}`},[n.message?n.message({message:s}):s]))]})),{}}}),DM=Symbol.for("vuetify:form"),Cre=be({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function kre(e){const t=gt(e,"modelValue"),n=se(()=>e.disabled),r=se(()=>e.readonly),i=Le(!1),a=z([]),s=z([]);async function o(){const c=[];let d=!0;s.value=[],i.value=!0;for(const p of a.value){const h=await p.validate();if(h.length>0&&(d=!1,c.push({id:p.id,errorMessages:h})),!d&&e.fastFail)break}return s.value=c,i.value=!1,{valid:d,errors:s.value}}function l(){a.value.forEach(c=>c.reset())}function u(){a.value.forEach(c=>c.resetValidation())}return Oe(a,()=>{let c=0,d=0;const p=[];for(const h of a.value)h.isValid===!1?(d++,p.push({id:h.id,errorMessages:h.errorMessages})):h.isValid===!0&&c++;s.value=p,t.value=d>0?!1:c===a.value.length?!0:null},{deep:!0,flush:"post"}),Sn(DM,{register:c=>{let{id:d,vm:p,validate:h,reset:g,resetValidation:v}=c;a.value.some(y=>y.id===d),a.value.push({id:d,validate:h,reset:g,resetValidation:v,vm:Ap(p),isValid:null,errorMessages:[]})},unregister:c=>{a.value=a.value.filter(d=>d.id!==c)},update:(c,d,p)=>{const h=a.value.find(g=>g.id===c);h&&(h.isValid=d,h.errorMessages=p)},isDisabled:n,isReadonly:r,isValidating:i,isValid:t,items:a,validateOn:se(()=>e.validateOn)}),{errors:s,isDisabled:n,isReadonly:r,isValidating:i,isValid:t,items:a,validate:o,reset:l,resetValidation:u}}function ny(e){const t=ft(DM,null);return{...t,isReadonly:L(()=>!!(e?.readonly??t?.isReadonly.value)),isDisabled:L(()=>!!(e?.disabled??t?.isDisabled.value))}}const _re=Symbol.for("vuetify:rules");function Tre(e){const t=ft(_re,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??se(e)}const Ire=be({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,..._x()},"validation");function Pre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_a(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si();const r=gt(e,"modelValue"),i=L(()=>e.validationValue===void 0?r.value:e.validationValue),a=ny(e),s=Tre(()=>e.rules),o=z([]),l=Le(!0),u=L(()=>!!(rr(r.value===""?null:r.value).length||rr(i.value===""?null:i.value).length)),c=L(()=>e.errorMessages?.length?rr(e.errorMessages).concat(o.value).slice(0,Math.max(0,Number(e.maxErrors))):o.value),d=L(()=>{let C=(e.validateOn??a.validateOn?.value)||"input";C==="lazy"&&(C="input lazy"),C==="eager"&&(C="input eager");const P=new Set(C?.split(" ")??[]);return{input:P.has("input"),blur:P.has("blur")||P.has("input")||P.has("invalid-input"),invalidInput:P.has("invalid-input"),lazy:P.has("lazy"),eager:P.has("eager")}}),p=L(()=>e.error||e.errorMessages?.length?!1:e.rules.length?l.value?o.value.length||d.value.lazy?null:!0:!o.value.length:!0),h=Le(!1),g=L(()=>({[`${t}--error`]:p.value===!1,[`${t}--dirty`]:u.value,[`${t}--disabled`]:a.isDisabled.value,[`${t}--readonly`]:a.isReadonly.value})),v=zn("validation"),y=L(()=>e.name??re(n));nl(()=>{a.register?.({id:y.value,vm:v,validate:w,reset:b,resetValidation:S})}),wr(()=>{a.unregister?.(y.value)}),Nt(async()=>{d.value.lazy||await w(!d.value.eager),a.update?.(y.value,p.value,c.value)}),zi(()=>d.value.input||d.value.invalidInput&&p.value===!1,()=>{Oe(i,()=>{if(i.value!=null)w();else if(e.focused){const C=Oe(()=>e.focused,P=>{P||w(),C()})}})}),zi(()=>d.value.blur,()=>{Oe(()=>e.focused,C=>{C||w()})}),Oe([p,c],()=>{a.update?.(y.value,p.value,c.value)});async function b(){r.value=null,await At(),await S()}async function S(){l.value=!0,d.value.lazy?o.value=[]:await w(!d.value.eager)}async function w(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const P=[];h.value=!0;for(const k of s.value){if(P.length>=Number(e.maxErrors??1))break;const T=await(typeof k=="function"?k:()=>k)(i.value);if(T!==!0){if(T!==!1&&typeof T!="string"){console.warn(`${T} is not a valid value. Rule functions must return boolean true or a string.`);continue}P.push(T||"")}}return o.value=P,h.value=!1,l.value=C,o.value}return{errorMessages:c,isDirty:u,isDisabled:a.isDisabled,isReadonly:a.isReadonly,isPristine:l,isValid:p,isValidating:h,reset:b,resetValidation:S,validate:w,validationClasses:g}}const cl=be({id:String,appendIcon:et,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:et,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Lr(),"onClick:append":Lr(),...Qe(),..._r(),...Ys(Vr(),["maxWidth","minWidth","width"]),...vn(),...Ire()},"VInput"),qi=De()({name:"VInput",props:{...cl()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const{densityClasses:a}=us(e),{dimensionStyles:s}=Br(e),{themeClasses:o}=xn(e),{rtlClasses:l}=Tr(),{InputIcon:u}=ey(e),c=Si(),d=L(()=>e.id||`input-${c}`),{errorMessages:p,isDirty:h,isDisabled:g,isReadonly:v,isPristine:y,isValid:b,isValidating:S,reset:w,resetValidation:C,validate:P,validationClasses:k}=Pre(e,"v-input",d),R=L(()=>e.errorMessages?.length||!y.value&&p.value.length?p.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages),T=se(()=>R.value.length>0),I=se(()=>!e.hideDetails||e.hideDetails==="auto"&&(T.value||!!r.details)),x=L(()=>I.value?`${d.value}-messages`:void 0),A=L(()=>({id:d,messagesId:x,isDirty:h,isDisabled:g,isReadonly:v,isPristine:y,isValid:b,isValidating:S,hasDetails:I,reset:w,resetValidation:C,validate:P})),D=se(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),B=se(()=>{if(e.iconColor)return e.iconColor===!0?D.value:e.iconColor});return Fe(()=>{const V=!!(r.prepend||e.prependIcon),$=!!(r.append||e.appendIcon);return E("div",{class:Te(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focused,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},a.value,o.value,l.value,k.value,e.class]),style:je([s.value,e.style])},[V&&E("div",{key:"prepend",class:"v-input__prepend"},[r.prepend?r.prepend(A.value):e.prependIcon&&f(u,{key:"prepend-icon",name:"prepend",color:B.value},null)]),r.default&&E("div",{class:"v-input__control"},[r.default?.(A.value)]),$&&E("div",{key:"append",class:"v-input__append"},[r.append?r.append(A.value):e.appendIcon&&f(u,{key:"append-icon",name:"append",color:B.value},null)]),I.value&&E("div",{id:x.value,class:"v-input__details",role:"alert","aria-live":"polite"},[f(xre,{active:T.value,messages:R.value},{message:r.message}),r.details?.(A.value)])])}),{reset:w,resetValidation:C,validate:P,isValid:b,errorMessages:p}}}),LM=be({autocomplete:String},"autocomplete");function Tx(e){const t=Si(),n=Le(0),r=se(()=>e.autocomplete==="suppress"),i=se(()=>{if(e.name)return r.value?`${e.name}-${t}-${n.value}`:e.name}),a=se(()=>r.value?"off":e.autocomplete);return{isSuppressing:r,fieldAutocomplete:a,fieldName:i,update:()=>n.value=new Date().getTime()}}function FM(e){function t(n,r){if(!e.autofocus||!n)return;const i=r[0].target;(i.matches("input,textarea")?i:i.querySelector("input,textarea"))?.focus()}return{onIntersect:t}}const Rre=["color","file","time","date","datetime-local","week","month"],Ix=be({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...LM(),...cl(),...ty()},"VTextField"),Et=De()({name:"VTextField",directives:{vIntersect:Uc},inheritAttrs:!1,props:Ix(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const a=gt(e,"modelValue"),{isFocused:s,focus:o,blur:l}=Nu(e),{onIntersect:u}=FM(e),c=L(()=>typeof e.counterValue=="function"?e.counterValue(a.value):typeof e.counterValue=="number"?e.counterValue:(a.value??"").toString().length),d=L(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),p=L(()=>["plain","underlined"].includes(e.variant)),h=z(),g=z(),v=z(),y=Tx(e),b=L(()=>Rre.includes(e.type)||e.persistentPlaceholder||s.value||e.active);function S(){y.isSuppressing.value&&y.update(),s.value||o(),At(()=>{v.value!==document.activeElement&&v.value?.focus()})}function w(R){r("mousedown:control",R),R.target!==v.value&&(S(),R.preventDefault())}function C(R){r("click:control",R)}function P(R,T){R.stopPropagation(),S(),At(()=>{T(),Qp(e["onClick:clear"],R)})}function k(R){const T=R.target;if(!(e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type))){a.value=T.value;return}const I=T.value,x=T.selectionStart,A=T.selectionEnd;a.value=I,At(()=>{let D=0;I.trimStart().length===T.value.length&&(D=I.length-T.value.length),x!=null&&(T.selectionStart=x-D),A!=null&&(T.selectionEnd=A-D)})}return Fe(()=>{const R=!!(i.counter||e.counter!==!1&&e.counter!=null),T=!!(R||i.details),[I,x]=ol(n),{modelValue:A,...D}=qi.filterProps(e),B=Yc.filterProps(e);return f(qi,ve({ref:h,modelValue:a.value,"onUpdate:modelValue":V=>a.value=V,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":p.value},e.class],style:e.style},I,D,{centerAffix:!p.value,focused:s.value}),{...i,default:V=>{let{id:$,isDisabled:N,isDirty:O,isReadonly:M,isValid:Y,hasDetails:X,reset:ie}=V;return f(Yc,ve({ref:g,onMousedown:w,onClick:C,"onClick:clear":Z=>P(Z,ie),role:e.role},Nn(B,["onClick:clear"]),{id:$.value,labelId:`${$.value}-label`,active:b.value||O.value,dirty:O.value||e.dirty,disabled:N.value,focused:s.value,details:X.value,error:Y.value===!1}),{...i,default:Z=>{let{props:{class:G,...le},controlRef:ee}=Z;const ue=E("input",ve({ref:W=>v.value=ee.value=W,value:a.value,onInput:k,autofocus:e.autofocus,readonly:M.value,disabled:N.value,name:y.fieldName.value,autocomplete:y.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:o,onBlur:l,"aria-labelledby":`${$.value}-label`},le,x),null);return E(Ne,null,[e.prefix&&E("span",{class:"v-text-field__prefix"},[E("span",{class:"v-text-field__prefix__text"},[e.prefix])]),un(i.default?E("div",{class:Te(G),"data-no-activator":""},[i.default({id:$}),ue]):Ks(ue,{class:G}),[[Uc,u,null,{once:!0}]]),e.suffix&&E("span",{class:"v-text-field__suffix"},[E("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:T?V=>E(Ne,null,[i.details?.(V),R&&E(Ne,null,[E("span",null,null),f(kx,{active:e.persistentCounter||s.value,value:c.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),Ci({},h,g,v)}}),Are={class:"d-flex align-center mb-3"},Ore={class:"text-h6 font-weight-bold"},Nre={class:"flex-grow-1"},Dre={class:"text-h6 font-weight-bold"},Lre={class:"text-caption text-medium-emphasis"},Fre={key:0,class:"mt-3"},Mre={class:"d-flex justify-space-between align-center mb-1"},$re={class:"text-body-2"},Vre={class:"text-body-2 font-weight-bold"},Bre={class:"ma-3"},Ure={class:"text-caption"},jre={class:"d-flex flex-wrap ga-2"},zre={class:"d-flex flex-wrap ga-2"},Hre={class:"file-list"},Wre={key:0,class:"d-flex justify-center py-4"},Gre={key:1,class:"text-center py-6"},qre={class:"d-flex align-center"},Kre={class:"flex-grow-1 min-width-0"},Yre=["title"],Xre={class:"text-caption text-medium-emphasis"},Jre={class:"d-flex ga-1"},Qre={class:"d-flex flex-wrap ga-2"},Zre=Be({__name:"FileExplorerSideNav",setup(e){const t=wn(),n=Fr(),r=sm(),i=z(void 0),a=z(void 0),s=r.isOpen,o=r.loading,l=r.error,u=r.currentPrinterId,c=L(()=>{if(u.value)return t.printer(u.value)}),d=L(()=>u.value?n.isApiResponding(u.value):!1),p=L(()=>ss(c.value?.printerType)),h=L(()=>u.value?n.isPrinterOperational(u.value):!1),g=L(()=>c.value?.enabled),v=L(()=>!!c.value?.disabledReason?.length),y=L(()=>u.value?n.isPrinterPrinting(u.value):!1),b=L(()=>a.value?.length?a.value.filter(ne=>i.value?.length?`${ne.path}`.toLowerCase().includes(i.value):!0)||[]:[]),S=L(()=>!c.value||!u.value?!1:n.isPrinterStoppable(u.value)),w=L(()=>!c.value||!u.value?!1:n.isPrinterPaused(u.value)),C=L(()=>u.value?a.value?.length&&n.isApiResponding(u.value):!1),P=L(()=>{if(!u.value)throw new Error("Printer ID not set, cannot get current job");return n.printerJobsById[u.value]}),k=L(()=>{if(!u.value)throw new Error("Printer ID not set, cannot get current printing file name");return n.printingFilePathsByPrinterId[u.value]}),R=async()=>{r.setLoading(!0),r.setError(!1);const ne=u.value;if(ne)try{n.isApiResponding(ne)?a.value=await t.loadPrinterFiles(ne):a.value=await Ja.getFileCache(ne)}catch(J){console.warn("Failed to load printer files:",J),r.setError(!0),a.value=[]}finally{r.setLoading(!1)}},T=async ne=>{u.value&&await t.deletePrinterFile(u.value,ne.path)};Oe(u,async(ne,J)=>{ne&&ne!==J?await R():ne||(a.value=void 0)});function I(ne){return ne?ne?.toFixed(1):""}function x(ne){return u.value?n.printingFilePathsByPrinterId[u.value]===ne.path:!1}function A(){const ne=c.value;if(ne&&s.value)return Qv(ne.name)}function D(){c.value&&(pn.openPrinterURL(c.value.printerURL),le())}async function B(){if(u.value){if(n.isPrinterOperational(u.value))return await pn.sendPrinterDisconnectCommand(u.value);await pn.sendPrinterConnectCommand(u.value)}}async function V(){if(!u.value)throw new Error("Printer ID not set, cant toggle enabled");if(!c.value)throw new Error("Cant toggle enabled, sidenav printer unset");const ne=!c.value.enabled;await pn.toggleEnabled(u.value,ne)}async function $(){if(!u.value)throw new Error("Printer ID not set, cant toggle maintenance");if(!c.value)throw new Error("Cant toggle enabled, sidenav printer unset");if(v.value){await pn.updatePrinterMaintenance(u.value);return}t.setMaintenanceDialogPrinter(c.value),await qt(Kt.PrinterMaintenanceDialog).openDialog(),le()}async function N(){u.value&&await pn.refreshSocket(u.value)}async function O(){u.value&&confirm("Are you sure to cancel the current print job?")&&await pn.stopPrintJob(u.value)}async function M(){u.value&&await pn.pausePrintJob(u.value)}async function Y(){u.value&&await pn.resumePrintJob(u.value)}async function X(){u.value&&confirm("Are you sure to delete all files for this printer?")&&(r.setLoading(!0),await t.deletePrinterFiles(u.value),r.setLoading(!1),a.value=t.printerFiles(u.value))}function ie(){c.value&&(qt(Kt.AddOrUpdatePrinterDialog).openDialog({id:c.value.id}),le())}async function Z(ne){u.value&&await n.selectAndPrintFile({printerId:u.value,fullPath:ne.path})}function G(ne){u.value&&Ja.downloadFile(u.value,ne)}function le(){r.closeFileExplorer()}function ee(){return g.value?d.value?y.value?"success":h.value?"primary":"medium-emphasis":"warning":"error"}function ue(){return g.value?d.value?y.value?"print":h.value?"check_circle":"radio_button_unchecked":"wifi_off":"power_off"}function W(){return g.value?d.value?y.value&&w.value?"Paused":y.value?"Printing":h.value?"Ready":"Idle":"Offline":"Disabled"}return(ne,J)=>(F(),Q(Cx,{modelValue:re(s),"onUpdate:modelValue":[J[12]||(J[12]=ke=>Ot(s)?s.value=ke:null),le],location:"right",temporary:"",width:"420",class:"printer-side-nav"},{default:m(()=>[c.value?(F(),Q($e,{key:0,class:"ma-3 mb-4",elevation:"2",rounded:"lg"},{default:m(()=>[f(Ye,{class:"pb-2"},{default:m(()=>[E("div",Are,[f(jn,{size:48,color:"primary",class:"mr-3"},{default:m(()=>[E("span",Ore,U(A()),1)]),_:1}),E("div",Nre,[E("div",Dre,U(c.value.name),1),E("div",Lre,U(p.value),1)]),c.value&&re(xM)(c.value.printerType)?(F(),Q(te,{key:0,icon:"open_in_new",variant:"text",size:"small",onClick:J[0]||(J[0]=ke=>D())})):ae("",!0)]),f(Ke,{color:ee(),"prepend-icon":ue(),size:"small",class:"mb-2"},{default:m(()=>[_(U(W()),1)]),_:1},8,["color","prepend-icon"]),P.value?.progress&&y.value?(F(),fe("div",Fre,[E("div",Mre,[E("span",$re,U(k.value),1),E("span",Vre,U(I(P.value.progress.completion))+"% ",1)]),f(ni,{"model-value":P.value.progress.completion,color:"primary",height:"6",rounded:""},null,8,["model-value"])])):ae("",!0)]),_:1})]),_:1})):ae("",!0),E("div",Bre,[g.value?d.value?ae("",!0):(F(),Q(kt,{key:1,type:"info",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...J[15]||(J[15]=[_("wifi_off",-1)])]),_:1})]),default:m(()=>[J[16]||(J[16]=_(" Printer appears offline. Attempting to reconnect... ",-1))]),_:1})):(F(),Q(kt,{key:0,type:"warning",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...J[13]||(J[13]=[_("power_off",-1)])]),_:1})]),default:m(()=>[J[14]||(J[14]=_(" Printer is disabled. Enable to receive live updates. ",-1))]),_:1})),c.value?.disabledReason?(F(),Q(kt,{key:2,type:"error",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...J[17]||(J[17]=[_("construction",-1)])]),_:1})]),default:m(()=>[E("div",null,[J[18]||(J[18]=E("div",{class:"font-weight-bold"},"Under Maintenance",-1)),E("div",Ure,U(c.value.disabledReason),1)])]),_:1})):ae("",!0),re(l)?(F(),Q(kt,{key:3,type:"warning",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...J[19]||(J[19]=[_("warning",-1)])]),_:1})]),default:m(()=>[E("div",null,[E("div",null,"Unable to load files from "+U(p.value),1),f(te,{size:"small",variant:"outlined",class:"mt-2",onClick:J[1]||(J[1]=ke=>R())},{default:m(()=>[...J[20]||(J[20]=[_(" Try Again ",-1)])]),_:1})])]),_:1})):ae("",!0)]),f($e,{class:"ma-3 mb-4",elevation:"1",rounded:"lg"},{default:m(()=>[f(ot,{class:"text-subtitle-1 py-3"},{default:m(()=>[...J[21]||(J[21]=[_(" Quick Actions ",-1)])]),_:1}),f(Ye,{class:"pt-0"},{default:m(()=>[E("div",jre,[f(te,{disabled:!g.value||!d.value,color:h.value?"warning":"success",size:"small",variant:"outlined",onClick:J[2]||(J[2]=ke=>B())},{default:m(()=>[f(j,{start:""},{default:m(()=>[_(U(h.value?"usb_off":"usb"),1)]),_:1}),_(" "+U(h.value?"Disconnect":"Connect"),1)]),_:1},8,["disabled","color"]),f(te,{color:g.value?"warning":"success",size:"small",variant:"outlined",onClick:J[3]||(J[3]=ke=>V())},{default:m(()=>[f(j,{start:""},{default:m(()=>[_(U(g.value?"pause":"play_arrow"),1)]),_:1}),_(" "+U(g.value?"Disable":"Enable"),1)]),_:1},8,["color"]),f(te,{size:"small",variant:"outlined",onClick:J[4]||(J[4]=ke=>N())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...J[22]||(J[22]=[_("refresh",-1)])]),_:1}),J[23]||(J[23]=_(" Refresh ",-1))]),_:1})])]),_:1})]),_:1}),y.value||S.value||w.value?(F(),Q($e,{key:1,class:"ma-3 mb-4",elevation:"1",rounded:"lg"},{default:m(()=>[f(ot,{class:"text-subtitle-1 py-3"},{default:m(()=>[...J[24]||(J[24]=[_(" Print Controls ",-1)])]),_:1}),f(Ye,{class:"pt-0"},{default:m(()=>[E("div",zre,[y.value||w.value?(F(),Q(te,{key:0,disabled:!d.value,color:w.value?"success":"warning",size:"small",variant:"outlined",onClick:J[5]||(J[5]=ke=>w.value?Y():M())},{default:m(()=>[f(j,{start:""},{default:m(()=>[_(U(w.value?"play_arrow":"pause"),1)]),_:1}),_(" "+U(w.value?"Resume":"Pause"),1)]),_:1},8,["disabled","color"])):ae("",!0),S.value?(F(),Q(te,{key:1,color:"error",size:"small",variant:"outlined",onClick:J[6]||(J[6]=ke=>O())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...J[25]||(J[25]=[_("stop",-1)])]),_:1}),J[26]||(J[26]=_(" Cancel Print ",-1))]),_:1})):ae("",!0)])]),_:1})]),_:1})):ae("",!0),f($e,{class:"ma-3 mb-4 flex-grow-1",elevation:"1",rounded:"lg"},{default:m(()=>[f(ot,{class:"d-flex align-center py-3"},{default:m(()=>[J[27]||(J[27]=E("span",{class:"text-subtitle-1"},"Files",-1)),f(Tt),f(te,{icon:"refresh",size:"small",variant:"text",onClick:J[7]||(J[7]=ke=>R())})]),_:1}),f(mt),f(Ye,{class:"pt-3"},{default:m(()=>[f(Et,{modelValue:i.value,"onUpdate:modelValue":J[8]||(J[8]=ke=>i.value=ke),placeholder:"Search files...","prepend-inner-icon":"search",variant:"outlined",density:"compact",clearable:"","hide-details":"",class:"mb-3"},null,8,["modelValue"]),E("div",Hre,[re(o)?(F(),fe("div",Wre,[f(Qn,{indeterminate:"",size:"32"})])):!b.value.length&&!re(l)?(F(),fe("div",Gre,[f(j,{size:"48",color:"medium-emphasis",class:"mb-2"},{default:m(()=>[...J[28]||(J[28]=[_(" folder_open ",-1)])]),_:1}),J[29]||(J[29]=E("div",{class:"text-body-2 text-medium-emphasis"}," No files found ",-1))])):ae("",!0),(F(!0),fe(Ne,null,Zt(b.value,(ke,We)=>(F(),fe("div",{key:We,class:"file-item"},[f($e,{class:Te([{"file-printing":x(ke)},"mb-2"]),variant:"outlined",rounded:"lg"},{default:m(()=>[f(Ye,{class:"py-2 px-3"},{default:m(()=>[E("div",qre,[f(j,{color:x(ke)?"primary":"medium-emphasis",class:"mr-3"},{default:m(()=>[_(U(x(ke)?"play_circle":"insert_drive_file"),1)]),_:2},1032,["color"]),E("div",Kre,[E("div",{class:Te([{"text-primary font-weight-bold":x(ke)},"text-body-2 text-truncate"]),title:ke.path},U(ke.path),11,Yre),E("div",Xre,U(re(ip)(ke.size)),1)]),E("div",Jre,[f(te,{icon:"download",size:"x-small",variant:"text",onClick:Ve=>G(ke.path)},null,8,["onClick"]),f(te,{disabled:x(ke),icon:"play_arrow",size:"x-small",variant:"text",color:"success",onClick:Ve=>Z(ke)},null,8,["disabled","onClick"]),f(te,{disabled:x(ke),icon:"delete",size:"x-small",variant:"text",color:"error",onClick:Ve=>T(ke)},null,8,["disabled","onClick"])])])]),_:2},1024)]),_:2},1032,["class"])]))),128))])]),_:1})]),_:1}),f($e,{class:"ma-3",elevation:"1",rounded:"lg"},{default:m(()=>[f(Ye,{class:"py-3"},{default:m(()=>[E("div",Qre,[f(te,{disabled:!C.value,color:"error",size:"small",variant:"outlined",onClick:J[9]||(J[9]=ke=>X())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...J[30]||(J[30]=[_("delete_sweep",-1)])]),_:1}),J[31]||(J[31]=_(" Clear All ",-1))]),_:1},8,["disabled"]),f(te,{size:"small",variant:"outlined",onClick:J[10]||(J[10]=ke=>ie())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...J[32]||(J[32]=[_("settings",-1)])]),_:1}),J[33]||(J[33]=_(" Settings ",-1))]),_:1}),v.value?(F(),Q(te,{key:0,size:"small",variant:"outlined",color:"warning",onClick:J[11]||(J[11]=ke=>$())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...J[34]||(J[34]=[_("build",-1)])]),_:1}),J[35]||(J[35]=_(" Maintenance ",-1))]),_:1})):ae("",!0)])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),eie=Cn(Zre,[["__scopeId","data-v-21d4819d"]]),Da="#FFFFFF";class ca extends Ei{static async createTag(t,n=Da){const r=`${Se.createTagRoute}`,i={name:t,color:n};return await this.post(r,i)}static async deleteTag(t){const n=`${Se.deleteTagRoute(t)}`;return await this.delete(n)}static async getTagsWithPrinters(){const t=`${Se.printerTagRoute}`;return await this.get(t)}static async addPrinterToTag(t,n){const r=`${Se.addPrinterToTagRoute(t)}`,i={printerId:n};return await this.post(r,i)}static async deletePrinterTag(t,n){const r=`${Se.deletePrinterFromTagRoute(t)}`,i={printerId:n};return await this.delete(r,i)}static async updateTagName(t,n){const r=`${Se.updateTagNameRoute(t)}`,i={name:n};return await this.patch(r,i)}static async updateTagColor(t,n){const r=`${Se.updateTagColorRoute(t)}`,i={color:n};return await this.patch(r,i)}}var Td=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tie={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nie=class{#e=tie;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Al=new nie;function rie(e){setTimeout(e,0)}var pu=typeof window>"u"||"Deno"in globalThis;function gs(){}function iie(e,t){return typeof e=="function"?e(t):e}function OS(e){return typeof e=="number"&&e>=0&&e!==1/0}function MM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jo(e,t){return typeof e=="function"?e(t):e}function vs(e,t){return typeof e=="function"?e(t):e}function GI(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==Px(s,t.options))return!1}else if(!up(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function qI(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(mu(t.options.mutationKey)!==mu(a))return!1}else if(!up(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Px(e,t){return(t?.queryKeyHashFn||mu)(e)}function mu(e){return JSON.stringify(e,(t,n)=>NS(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function up(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>up(e[n],t[n])):!1}var sie=Object.prototype.hasOwnProperty;function $M(e,t){if(e===t)return e;const n=KI(e)&&KI(t);if(!n&&!(NS(e)&&NS(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,o=n?new Array(s):{};let l=0;for(let u=0;u<s;u++){const c=n?u:a[u],d=e[c],p=t[c];if(d===p){o[c]=d,(n?u<i:sie.call(e,c))&&l++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){o[c]=p;continue}const h=$M(d,p);o[c]=h,h===d&&l++}return i===s&&l===i?e:o}function Og(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function KI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function NS(e){if(!YI(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!YI(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function YI(e){return Object.prototype.toString.call(e)==="[object Object]"}function aie(e){return new Promise(t=>{Al.setTimeout(t,e)})}function DS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$M(e,t):t}function oie(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lie(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Rx=Symbol();function VM(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Rx?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function LS(e,t){return typeof e=="function"?e(...t):!!e}function uie(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var cie=class extends Td{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!pu&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ax=new cie;function FS(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var die=rie;function fie(){let e=[],t=0,n=o=>{o()},r=o=>{o()},i=die;const a=o=>{t?e.push(o):i(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||s()}return l},batchCalls:o=>(...l)=>{a(()=>{o(...l)})},schedule:a,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Ar=fie(),pie=class extends Td{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!pu&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ng=new pie;function mie(e){return Math.min(1e3*2**e,3e4)}function BM(e){return(e??"online")==="online"?Ng.isOnline():!0}var MS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function UM(e){let t=!1,n=0,r;const i=FS(),a=()=>i.status!=="pending",s=v=>{if(!a()){const y=new MS(v);p(y),e.onCancel?.(y)}},o=()=>{t=!0},l=()=>{t=!1},u=()=>Ax.isFocused()&&(e.networkMode==="always"||Ng.isOnline())&&e.canRun(),c=()=>BM(e.networkMode)&&e.canRun(),d=v=>{a()||(r?.(),i.resolve(v))},p=v=>{a()||(r?.(),i.reject(v))},h=()=>new Promise(v=>{r=y=>{(a()||u())&&v(y)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),g=()=>{if(a())return;let v;const y=n===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(b){v=Promise.reject(b)}Promise.resolve(v).then(d).catch(b=>{if(a())return;const S=e.retry??(pu?0:3),w=e.retryDelay??mie,C=typeof w=="function"?w(n,b):w,P=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,b);if(t||!P){p(b);return}n++,e.onFail?.(n,b),aie(C).then(()=>u()?void 0:h()).then(()=>{t?p(b):g()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r?.(),i),cancelRetry:o,continueRetry:l,canStart:c,start:()=>(c()?g():h().then(g),i)}}var jM=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),OS(this.gcTime)&&(this.#e=Al.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(pu?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Al.clearTimeout(this.#e),this.#e=void 0)}},hie=class extends jM{#e;#t;#n;#i;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=JI(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=JI(this.options);t.data!==void 0&&(this.setState(XI(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=DS(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(gs).catch(gs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>vs(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rx||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>jo(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!MM(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(l=>l.options.queryFn);o&&this.setOptions(o.options)}const n=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{const o=VM(this.options,t),u=(()=>{const c={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(c),c})();return this.#o=!1,this.options.persister?this.options.persister(o,u,this):o(u)},s=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(o),o})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#s({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=UM({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:o=>{o instanceof MS&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,l)=>{this.#s({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const o=await this.#r.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#n.config.onSuccess?.(o,this),this.#n.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof MS){if(o.silent)return this.#r.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#s({type:"error",error:o}),this.#n.config.onError?.(o,this),this.#n.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...zM(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...XI(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Ar.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function zM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:BM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function XI(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function JI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var gie=class extends Td{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=FS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#a;#o;#s;#h;#f;#p;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),QI(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vs(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),t._defaulted&&!Og(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&ZI(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||vs(this.options.enabled,this.#t)!==vs(t.enabled,this.#t)||jo(this.options.staleTime,this.#t)!==jo(t.staleTime,this.#t))&&this.#g();const i=this.#v();r&&(this.#t!==n||vs(this.options.enabled,this.#t)!==vs(t.enabled,this.#t)||i!==this.#l)&&this.#y(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return yie(this,n)&&(this.#i=n,this.#a=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#E();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(gs)),t}#g(){this.#S();const e=jo(this.options.staleTime,this.#t);if(pu||this.#i.isStale||!OS(e))return;const n=MM(this.#i.dataUpdatedAt,e)+1;this.#u=Al.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(pu||vs(this.options.enabled,this.#t)===!1||!OS(this.#l)||this.#l===0)&&(this.#c=Al.setInterval(()=>{(this.options.refetchIntervalInBackground||Ax.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#S(){this.#u&&(Al.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Al.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,r=this.options,i=this.#i,a=this.#r,s=this.#a,l=e!==n?e.state:this.#n,{state:u}=e;let c={...u},d=!1,p;if(t._optimisticResults){const T=this.hasListeners(),I=!T&&QI(e,t),x=T&&ZI(e,n,t,r);(I||x)&&(c={...c,...zM(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:v}=c;p=c.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&v==="pending"){let T;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(T=i.data,y=!0):T=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,T!==void 0&&(v="success",p=DS(i?.data,T,t),d=!0)}if(t.select&&p!==void 0&&!y)if(i&&p===a?.data&&t.select===this.#h)p=this.#f;else try{this.#h=t.select,p=t.select(p),p=DS(i?.data,p,t),this.#f=p,this.#s=null}catch(T){this.#s=T}this.#s&&(h=this.#s,p=this.#f,g=Date.now(),v="error");const b=c.fetchStatus==="fetching",S=v==="pending",w=v==="error",C=S&&b,P=p!==void 0,R={status:v,fetchStatus:c.fetchStatus,isPending:S,isSuccess:v==="success",isError:w,isInitialLoading:C,isLoading:C,data:p,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:w&&!P,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&P,isStale:Ox(e,t),refetch:this.refetch,promise:this.#o,isEnabled:vs(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const T=A=>{R.status==="error"?A.reject(R.error):R.data!==void 0&&A.resolve(R.data)},I=()=>{const A=this.#o=R.promise=FS();T(A)},x=this.#o;switch(x.status){case"pending":e.queryHash===n.queryHash&&T(x);break;case"fulfilled":(R.status==="error"||R.data!==x.value)&&I();break;case"rejected":(R.status!=="error"||R.error!==x.reason)&&I();break}}return R}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Og(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#m.size)return!0;const a=new Set(i??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#i).some(s=>{const o=s;return this.#i[o]!==e[o]&&a.has(o)})};this.#x({listeners:n()})}#E(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){Ar.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function vie(e,t){return vs(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function QI(e,t){return vie(e,t)||e.state.data!==void 0&&$S(e,t,t.refetchOnMount)}function $S(e,t,n){if(vs(t.enabled,e)!==!1&&jo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ox(e,t)}return!1}function ZI(e,t,n,r){return(e!==t||vs(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ox(e,n)}function Ox(e,t){return vs(t.enabled,e)!==!1&&e.isStaleByTime(jo(t.staleTime,e))}function yie(e,t){return!Og(e.getCurrentResult(),t)}function eP(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const d=g=>{uie(g,()=>t.signal,()=>c=!0)},p=VM(t.options,t.fetchOptions),h=async(g,v,y)=>{if(c)return Promise.reject();if(v==null&&g.pages.length)return Promise.resolve(g);const S=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:v,direction:y?"backward":"forward",meta:t.options.meta};return d(k),k})(),w=await p(S),{maxPages:C}=t.options,P=y?lie:oie;return{pages:P(g.pages,w,C),pageParams:P(g.pageParams,v,C)}};if(i&&a.length){const g=i==="backward",v=g?bie:tP,y={pages:a,pageParams:s},b=v(r,y);o=await h(y,b,g)}else{const g=e??a.length;do{const v=l===0?s[0]??r.initialPageParam:tP(r,o);if(l>0&&v==null)break;o=await h(o,v),l++}while(l<g)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function tP(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function bie(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Sie=class extends jM{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||HM(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=UM({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",i=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:i})}const a=await this.#i.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{await this.#n.config.onError?.(a,e,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onError?.(a,e,this.state.context,n)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,a,e,this.state.context,n)}catch(s){Promise.reject(s)}throw this.#r({type:"error",error:a}),a}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ar.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function HM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var WM=class extends Td{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,n,r){const i=new Sie({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){this.#e.add(t);const n=Hm(t);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=Hm(t);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hm(t);if(typeof n=="string"){const i=this.#t.get(n)?.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){const n=Hm(t);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ar.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qI(n,r))}findAll(t={}){return this.getAll().filter(n=>qI(t,n))}notify(t){Ar.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ar.batch(()=>Promise.all(t.map(n=>n.continue().catch(gs))))}};function Hm(e){return e.options.scope?.id}var wie=class extends Td{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Og(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&mu(n.mutationKey)!==mu(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??HM();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Ar.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,n,r,i)}catch(a){Promise.reject(a)}try{this.#i.onSettled?.(t.data,null,n,r,i)}catch(a){Promise.reject(a)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,n,r,i)}catch(a){Promise.reject(a)}try{this.#i.onSettled?.(void 0,t.error,n,r,i)}catch(a){Promise.reject(a)}}}this.listeners.forEach(n=>{n(this.#t)})})}},GM=class extends Td{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,n,r){const i=n.queryKey,a=n.queryHash??Px(i,n);let s=this.get(a);return s||(s=new hie({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#e.get(t.queryHash);n&&(t.destroy(),n===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ar.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>GI(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>GI(t,r)):n}notify(t){Ar.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ar.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ar.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Eie=class{#e;#t;#n;#i;#r;#a;#o;#s;constructor(t={}){this.#e=t.queryCache||new GM,this.#t=t.mutationCache||new WM,this.#n=t.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Ax.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ng.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(jo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(i.queryHash)?.state.data,o=iie(n,s);if(o!==void 0)return this.#e.build(this,i).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return Ar.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;Ar.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#e;return Ar.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},i=Ar.batch(()=>this.#e.findAll(t).map(a=>a.cancel(r)));return Promise.all(i).then(gs).catch(gs)}invalidateQueries(t,n={}){return Ar.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=Ar.batch(()=>this.#e.findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,r);return r.throwOnError||(s=s.catch(gs)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(gs)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(jo(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(gs).catch(gs)}fetchInfiniteQuery(t){return t.behavior=eP(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(gs).catch(gs)}ensureInfiniteQueryData(t){return t.behavior=eP(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ng.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#i.set(mu(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#i.values()],r={};return n.forEach(i=>{up(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,n){this.#r.set(mu(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#r.values()],r={};return n.forEach(i=>{up(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=Px(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Rx&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},xie="VUE_QUERY_CLIENT";function qM(e){const t=e?`:${e}`:"";return`${xie}${t}`}function VS(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function BS(e,t,n="",r=0){if(t){const i=t(e,n,r);if(i===void 0&&Ot(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((i,a)=>BS(i,t,String(a),r+1));if(typeof e=="object"&&kie(e)){const i=Object.entries(e).map(([a,s])=>[a,BS(s,t,a,r+1)]);return Object.fromEntries(i)}return e}function Cie(e,t){return BS(e,t)}function Dt(e,t=!1){return Cie(e,(n,r,i)=>{if(i===1&&r==="queryKey")return Dt(n,!0);if(t&&_ie(n))return Dt(n(),t);if(Ot(n))return Dt(re(n),t)})}function kie(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _ie(e){return typeof e=="function"}function ry(e=""){if(!Pw())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=qM(e),n=ft(t);if(!n)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return n}var Tie=class extends GM{find(e){return super.find(Dt(e))}findAll(e={}){return super.findAll(Dt(e))}},Iie=class extends WM{find(e){return super.find(Dt(e))}findAll(e={}){return super.findAll(Dt(e))}},Pie=class extends Eie{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new Tie,mutationCache:e.mutationCache||new Iie};super(t),this.isRestoring=z(!1)}isFetching(e={}){return super.isFetching(Dt(e))}isMutating(e={}){return super.isMutating(Dt(e))}getQueryData(e){return super.getQueryData(Dt(e))}ensureQueryData(e){return super.ensureQueryData(Dt(e))}getQueriesData(e){return super.getQueriesData(Dt(e))}setQueryData(e,t,n={}){return super.setQueryData(Dt(e),t,Dt(n))}setQueriesData(e,t,n={}){return super.setQueriesData(Dt(e),t,Dt(n))}getQueryState(e){return super.getQueryState(Dt(e))}removeQueries(e={}){return super.removeQueries(Dt(e))}resetQueries(e={},t={}){return super.resetQueries(Dt(e),Dt(t))}cancelQueries(e={},t={}){return super.cancelQueries(Dt(e),Dt(t))}invalidateQueries(e={},t={}){const n=Dt(e),r=Dt(t);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const i={...n,type:n.refetchType??n.type??"active"};return At().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries(Dt(e),Dt(t))}fetchQuery(e){return super.fetchQuery(Dt(e))}prefetchQuery(e){return super.prefetchQuery(Dt(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Dt(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Dt(e))}setDefaultOptions(e){super.setDefaultOptions(Dt(e))}setQueryDefaults(e,t){super.setQueryDefaults(Dt(e),Dt(t))}getQueryDefaults(e){return super.getQueryDefaults(Dt(e))}setMutationDefaults(e,t){super.setMutationDefaults(Dt(e),Dt(t))}getMutationDefaults(e){return super.getMutationDefaults(Dt(e))}},Rie={install:(e,t={})=>{const n=qM(t.queryClientKey);let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const s="queryClientConfig"in t?t.queryClientConfig:void 0;r=new Pie(s)}pu||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[s,o]=t.clientPersister(r);i=s,o.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}const a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{const s=e.unmount;e.unmount=function(){a(),s()}}e.provide(n,r)}};function Aie(e,t,n){const r=ry(),i=L(()=>{let h=t;typeof h=="function"&&(h=h());const g=Dt(h);typeof g.enabled=="function"&&(g.enabled=g.enabled());const v=r.defaultQueryOptions(g);return v._optimisticResults=r.isRestoring?.value?"isRestoring":"optimistic",v}),a=new e(r,i.value),s=i.value.shallow?Pp(a.getCurrentResult()):An(a.getCurrentResult());let o=()=>{};r.isRestoring&&Oe(r.isRestoring,h=>{h||(o(),o=a.subscribe(g=>{VS(s,g)}))},{immediate:!0});const l=()=>{a.setOptions(i.value),VS(s,a.getCurrentResult())};Oe(i,l),Rn(()=>{o()});const u=(...h)=>(l(),s.refetch(...h)),c=()=>new Promise((h,g)=>{let v=()=>{};const y=()=>{if(i.value.enabled!==!1){a.setOptions(i.value);const b=a.getOptimisticResult(i.value);b.isStale?(v(),a.fetchOptimistic(i.value).then(h,S=>{LS(i.value.throwOnError,[S,a.getCurrentQuery()])?g(S):h(a.getCurrentResult())})):(v(),h(b))}};y(),v=Oe(i,y)});Oe(()=>s.error,h=>{if(s.isError&&!s.isFetching&&LS(i.value.throwOnError,[h,a.getCurrentQuery()]))throw h});const d=i.value.shallow?fv(s):va(s),p=Ca(d);for(const h in s)typeof s[h]=="function"&&(p[h]=s[h]);return p.suspense=c,p.refetch=u,p}function Id(e,t){return Aie(gie,e)}function Oie(e,t){const n=ry(),r=L(()=>{const c=typeof e=="function"?e():e;return n.defaultMutationOptions(Dt(c))}),i=new wie(n,r.value),a=r.value.shallow?Pp(i.getCurrentResult()):An(i.getCurrentResult()),s=i.subscribe(c=>{VS(a,c)}),o=(c,d)=>{i.mutate(c,d).catch(()=>{})};Oe(r,()=>{i.setOptions(r.value)}),Rn(()=>{s()});const l=r.value.shallow?fv(a):va(a),u=Ca(l);return Oe(()=>a.error,c=>{if(c&&LS(r.value.throwOnError,[c]))throw c}),{...u,mutate:o,mutateAsync:a.mutate,reset:a.reset}}const KM="printerTags",Nie=()=>{const e=ry();return async()=>{await e.invalidateQueries({queryKey:[KM]})}},Die=be({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...Qe()},"VColorPickerCanvas"),Lie=Qs({name:"VColorPickerCanvas",props:Die(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=Le(!1),i=z(),a=Le(parseFloat(e.width)),s=Le(parseFloat(e.height)),o=z({x:0,y:0}),l=L({get:()=>o.value,set(y){if(!i.value)return;const{x:b,y:S}=y;o.value=y,n("update:color",{h:e.color?.h??0,s:On(b,0,a.value)/a.value,v:1-On(S,0,s.value)/s.value,a:e.color?.a??1})}}),u=L(()=>{const{x:y,y:b}=l.value,S=parseInt(e.dotSize,10)/2;return{width:Me(e.dotSize),height:Me(e.dotSize),transform:`translate(${Me(y-S)}, ${Me(b-S)})`}}),{resizeRef:c}=po(y=>{if(!c.el?.offsetParent)return;const{width:b,height:S}=y[0].contentRect;a.value=b,s.value=S});function d(y,b,S){const{left:w,top:C,width:P,height:k}=S;l.value={x:On(y-w,0,P),y:On(b-C,0,k)}}function p(y){y.type==="mousedown"&&y.preventDefault(),!e.disabled&&(h(y),window.addEventListener("mousemove",h),window.addEventListener("mouseup",g),window.addEventListener("touchmove",h),window.addEventListener("touchend",g))}function h(y){if(e.disabled||!i.value)return;r.value=!0;const b=xJ(y);d(b.clientX,b.clientY,i.value.getBoundingClientRect())}function g(){window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",g),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",g)}function v(){if(!i.value)return;const y=i.value,b=y.getContext("2d");if(!b)return;const S=b.createLinearGradient(0,0,y.width,0);S.addColorStop(0,"hsla(0, 0%, 100%, 1)"),S.addColorStop(1,`hsla(${e.color?.h??0}, 100%, 50%, 1)`),b.fillStyle=S,b.fillRect(0,0,y.width,y.height);const w=b.createLinearGradient(0,0,0,y.height);w.addColorStop(0,"hsla(0, 0%, 0%, 0)"),w.addColorStop(1,"hsla(0, 0%, 0%, 1)"),b.fillStyle=w,b.fillRect(0,0,y.width,y.height)}return Oe(()=>e.color?.h,v,{immediate:!0}),Oe(()=>[a.value,s.value],(y,b)=>{v(),o.value={x:l.value.x*y[0]/b[0],y:l.value.y*y[1]/b[1]}},{flush:"post"}),Oe(()=>e.color,()=>{if(r.value){r.value=!1;return}o.value=e.color?{x:e.color.s*a.value,y:(1-e.color.v)*s.value}:{x:0,y:0}},{deep:!0,immediate:!0}),Nt(()=>v()),Fe(()=>E("div",{ref:c,class:Te(["v-color-picker-canvas",e.class]),style:je(e.style),onMousedown:p,onTouchstartPassive:p},[E("canvas",{ref:i,width:a.value,height:s.value},null),e.color&&E("div",{class:Te(["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}]),style:je(u.value)},null)])),{}}});function Fie(e,t){if(t){const{a:n,...r}=e;return r}return e}function Mie(e,t){if(t==null||typeof t=="string"){const n=e.a!==1;if(t?.startsWith("rgb(")){const{r:i,g:a,b:s,a:o}=wa(e);return`rgb(${i} ${a} ${s}`+(n?` / ${o})`:")")}else if(t?.startsWith("hsl(")){const{h:i,s:a,l:s,a:o}=dS(e);return`hsl(${i} ${Math.round(a*100)} ${Math.round(s*100)}`+(n?` / ${o})`:")")}const r=QL(e);return e.a===1?r.slice(0,7):r}if(typeof t=="object"){let n;return Pl(t,["r","g","b"])?n=wa(e):Pl(t,["h","s","l"])?n=dS(e):Pl(t,["h","s","v"])&&(n=e),Fie(n,!Pl(t,["a"])&&e.a===1)}return e}const uc={h:0,s:0,v:0,a:1},US={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)}),localeKey:"redInput"},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)}),localeKey:"greenInput"},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)}),localeKey:"blueInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:wa,from:Zp},$ie={...US,inputs:US.inputs?.slice(0,3)},jS={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)}),localeKey:"hueInput"},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)}),localeKey:"saturationInput"},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)}),localeKey:"lightnessInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:dS,from:ZE},Vie={...jS,inputs:jS.inputs.slice(0,3)},YM={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t,localeKey:"hexaInput"}],to:QL,from:KJ},Bie={...YM,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t,localeKey:"hexInput"}]},Zl={rgb:$ie,rgba:US,hsl:Vie,hsla:jS,hex:Bie,hexa:YM},Uie=e=>{let{label:t,...n}=e;return E("div",{class:"v-color-picker-edit__input"},[E("input",lv(wv(n)),null),E("span",null,[t])])},jie=be({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Zl).includes(e)},modes:{type:Array,default:()=>Object.keys(Zl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Zl).includes(t))},...Qe()},"VColorPickerEdit"),zie=Qs({name:"VColorPickerEdit",props:jie(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=Ur(),i=L(()=>e.modes.map(s=>({...Zl[s],name:s}))),a=L(()=>{const s=i.value.find(l=>l.name===e.mode);if(!s)return[];const o=e.color?s.to(e.color):null;return s.inputs?.map(l=>{let{getValue:u,getColor:c,localeKey:d,...p}=l;return{...s.inputProps,...p,ariaLabel:r(`$vuetify.colorPicker.ariaLabel.${d}`),disabled:e.disabled,value:o&&u(o),onChange:h=>{const g=h.target;g&&n("update:color",s.from(c(o??s.to(uc),g.value)))}}})});return Fe(()=>E("div",{class:Te(["v-color-picker-edit",e.class]),style:je(e.style)},[a.value?.map(s=>f(Uie,s,null)),i.value.length>1&&f(te,{icon:"$unfold",size:"x-small",variant:"plain","aria-label":r("$vuetify.colorPicker.ariaLabel.changeFormat"),onClick:()=>{const s=i.value.findIndex(o=>o.name===e.mode);n("update:mode",i.value[(s+1)%i.value.length].name)}},null)])),{}}}),Nx=Symbol.for("vuetify:v-slider");function Hie(e,t,n){const r=n==="vertical",i=t.getBoundingClientRect(),a="touches"in e?e.touches[0]:e;return r?a.clientY-(i.top+i.height/2):a.clientX-(i.left+i.width/2)}function Wie(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Gie=be({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...mr(),...xi({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),qie=e=>{const t=L(()=>parseFloat(e.min)),n=L(()=>parseFloat(e.max)),r=L(()=>Number(e.step)>0?parseFloat(e.step):0),i=L(()=>Math.max(zT(r.value),zT(t.value)));function a(s){if(s=parseFloat(s),r.value<=0)return s;const o=On(s,t.value,n.value),l=t.value%r.value;let u=Math.round((o-l)/r.value)*r.value+l;return o>u&&u+r.value>n.value&&(u=n.value),parseFloat(Math.min(u,n.value).toFixed(i.value))}return{min:t,max:n,step:r,decimals:i,roundValue:a}},Kie=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:i,onSliderEnd:a,getActiveThumb:s}=e;const o=ny(t),{isRtl:l}=Tr(),u=se(()=>t.reverse),c=L(()=>t.direction==="vertical"),d=L(()=>c.value!==u.value),{min:p,max:h,step:g,decimals:v,roundValue:y}=n,b=L(()=>parseInt(t.thumbSize,10)),S=L(()=>parseInt(t.tickSize,10)),w=L(()=>parseInt(t.trackSize,10)),C=L(()=>(h.value-p.value)/g.value),P=L(()=>t.error||o.isDisabled.value?void 0:t.thumbColor??t.color),k=L(()=>t.error||o.isDisabled.value?void 0:t.thumbColor),R=L(()=>t.error||o.isDisabled.value?void 0:t.trackColor??t.color),T=L(()=>t.error||o.isDisabled.value?void 0:t.trackFillColor??t.color),I=Le(!1),x=Le(0),A=z(),D=z();function B(W){const ne=A.value?.$el;if(!ne)return;const J=t.direction==="vertical",ke=J?"top":"left",We=J?"height":"width",Ve=J?"clientY":"clientX",{[ke]:H,[We]:q}=ne.getBoundingClientRect(),ce=Wie(W,Ve);let oe=On((ce-H-x.value)/q)||0;return(J?d.value:d.value!==l.value)&&(oe=1-oe),y(p.value+oe*(h.value-p.value))}const V=W=>{const ne=B(W);ne!=null&&a({value:ne}),I.value=!1,x.value=0},$=W=>{const ne=B(W);D.value=s(W),D.value&&(I.value=!0,D.value.contains(W.target)?x.value=Hie(W,D.value,t.direction):(x.value=0,ne!=null&&i({value:ne})),ne!=null&&r({value:ne}),At(()=>D.value?.focus()))},N={passive:!0,capture:!0};function O(W){const ne=B(W);ne!=null&&i({value:ne})}function M(W){W.stopPropagation(),W.preventDefault(),V(W),window.removeEventListener("mousemove",O,N),window.removeEventListener("mouseup",M)}function Y(W){V(W),window.removeEventListener("touchmove",O,N),W.target?.removeEventListener("touchend",Y)}function X(W){$(W),window.addEventListener("touchmove",O,N),W.target?.addEventListener("touchend",Y,{passive:!1})}function ie(W){W.button===0&&(W.preventDefault(),$(W),window.addEventListener("mousemove",O,N),window.addEventListener("mouseup",M,{passive:!1}))}Rn(()=>{window.removeEventListener("touchmove",O),window.removeEventListener("mousemove",O),window.removeEventListener("mouseup",M)});const Z=W=>{const ne=(W-p.value)/(h.value-p.value)*100;return On(isNaN(ne)?0:ne,0,100)},G=se(()=>t.showTicks),le=L(()=>G.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(W=>({value:W,position:Z(W),label:W.toString()})):Object.keys(t.ticks).map(W=>({value:parseFloat(W),position:Z(parseFloat(W)),label:t.ticks[W]})):C.value!==1/0?Il(C.value+1).map(W=>{const ne=p.value+W*g.value;return{value:ne,position:Z(ne)}}):[]:[]),ee=L(()=>le.value.some(W=>{let{label:ne}=W;return!!ne})),ue={activeThumbRef:D,color:se(()=>t.color),decimals:v,disabled:o.isDisabled,direction:se(()=>t.direction),elevation:se(()=>t.elevation),hasLabels:ee,isReversed:u,indexFromEnd:d,min:p,max:h,mousePressed:I,noKeyboard:se(()=>t.noKeyboard),numTicks:C,onSliderMousedown:ie,onSliderTouchstart:X,parsedTicks:le,parseMouseMove:B,position:Z,readonly:o.isReadonly,rounded:se(()=>t.rounded),roundValue:y,showTicks:G,startOffset:x,step:g,thumbSize:b,thumbColor:P,thumbLabelColor:k,thumbLabel:se(()=>t.thumbLabel),ticks:se(()=>t.ticks),tickSize:S,trackColor:R,trackContainerRef:A,trackFillColor:T,trackSize:w,vertical:c};return Sn(Nx,ue),ue},Yie=be({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Qe()},"VSliderThumb"),Xie=De()({name:"VSliderThumb",directives:{vRipple:bi},props:Yie(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=ft(Nx),{isRtl:a,rtlClasses:s}=Tr();if(!i)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:l,thumbColor:u,thumbLabelColor:c,step:d,disabled:p,thumbSize:h,thumbLabel:g,direction:v,isReversed:y,vertical:b,readonly:S,elevation:w,mousePressed:C,decimals:P,indexFromEnd:k}=i,R=L(()=>p.value?void 0:w.value),{elevationClasses:T}=Ji(R),{textColorClasses:I,textColorStyles:x}=Gi(u),{backgroundColorClasses:A,backgroundColorStyles:D}=$n(c),{pageup:B,pagedown:V,end:$,home:N,left:O,right:M,down:Y,up:X}=sS,ie=[B,V,$,N,O,M,Y,X],Z=L(()=>d.value?[1,2,3]:[1,5,10]);function G(ee,ue){if(e.noKeyboard||p.value||!ie.includes(ee.key))return;ee.preventDefault();const W=d.value||.1,ne=(l.value-o.value)/W;if([O,M,Y,X].includes(ee.key)){const ke=(b.value?[a.value?O:M,y.value?Y:X]:k.value!==a.value?[O,X]:[M,X]).includes(ee.key)?1:-1,We=ee.shiftKey?2:ee.ctrlKey?1:0;ke===-1&&ue===l.value&&!We&&!Number.isInteger(ne)?ue=ue-ne%1*W:ue=ue+ke*W*Z.value[We]}else if(ee.key===N)ue=o.value;else if(ee.key===$)ue=l.value;else{const J=ee.key===V?1:-1;ue=ue-J*W*(ne>100?ne/10:10)}return Math.max(e.min,Math.min(e.max,ue))}function le(ee){const ue=G(ee,e.modelValue);ue!=null&&r("update:modelValue",ue)}return Fe(()=>{const ee=Me(k.value?100-e.position:e.position,"%");return E("div",{class:Te(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&C.value},e.class,s.value]),style:je([{"--v-slider-thumb-position":ee,"--v-slider-thumb-size":Me(h.value)},e.style]),role:"slider",tabindex:p.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":l.value,"aria-valuenow":e.modelValue,"aria-readonly":!!S.value,"aria-orientation":v.value,onKeydown:S.value?void 0:le},[E("div",{class:Te(["v-slider-thumb__surface",I.value,T.value]),style:je(x.value)},null),un(E("div",{class:Te(["v-slider-thumb__ripple",I.value]),style:je(x.value)},null),[[bi,e.ripple,null,{circle:!0,center:!0}]]),f(xF,{origin:"bottom center"},{default:()=>[un(E("div",{class:"v-slider-thumb__label-container"},[E("div",{class:Te(["v-slider-thumb__label",A.value]),style:je(D.value)},[E("div",null,[n["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(d.value?P.value:1)]),E("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[ai,g.value&&e.focused||g.value==="always"]])]})])}),{}}}),Jie=be({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Qe()},"VSliderTrack"),Qie=De()({name:"VSliderTrack",props:Jie(),emits:{},setup(e,t){let{slots:n}=t;const r=ft(Nx);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:i,parsedTicks:a,rounded:s,showTicks:o,tickSize:l,trackColor:u,trackFillColor:c,trackSize:d,vertical:p,min:h,max:g,indexFromEnd:v}=r,{roundedClasses:y}=Er(s),{backgroundColorClasses:b,backgroundColorStyles:S}=$n(c),{backgroundColorClasses:w,backgroundColorStyles:C}=$n(u),P=L(()=>`inset-${p.value?"block":"inline"}-${v.value?"end":"start"}`),k=L(()=>p.value?"height":"width"),R=L(()=>({[P.value]:"0%",[k.value]:"100%"})),T=L(()=>e.stop-e.start),I=L(()=>({[P.value]:Me(e.start,"%"),[k.value]:Me(T.value,"%")})),x=L(()=>o.value?(p.value?a.value.slice().reverse():a.value).map((D,B)=>{const V=D.value!==h.value&&D.value!==g.value?Me(D.position,"%"):void 0;return E("div",{key:D.value,class:Te(["v-slider-track__tick",{"v-slider-track__tick--filled":D.position>=e.start&&D.position<=e.stop,"v-slider-track__tick--first":D.value===h.value,"v-slider-track__tick--last":D.value===g.value}]),style:{[P.value]:V}},[(D.label||n["tick-label"])&&E("div",{class:"v-slider-track__tick-label"},[n["tick-label"]?.({tick:D,index:B})??D.label])])}):[]);return Fe(()=>E("div",{class:Te(["v-slider-track",y.value,e.class]),style:je([{"--v-slider-track-size":Me(d.value),"--v-slider-tick-size":Me(l.value)},e.style])},[E("div",{class:Te(["v-slider-track__background",w.value,{"v-slider-track__background--opacity":!!i.value||!c.value}]),style:{...R.value,...C.value}},null),E("div",{class:Te(["v-slider-track__fill",b.value]),style:{...I.value,...S.value}},null),o.value&&E("div",{class:Te(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[x.value])])),{}}}),Zie=be({..._x(),...Gie(),...cl(),modelValue:{type:[Number,String],default:0}},"VSlider"),nP=De()({name:"VSlider",inheritAttrs:!1,props:Zie(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:i}=t;const a=z(),s=z(),{rtlClasses:o}=Tr(),l=qie(e),u=gt(e,"modelValue",void 0,x=>l.roundValue(x??l.min.value)),{min:c,max:d,mousePressed:p,roundValue:h,onSliderMousedown:g,onSliderTouchstart:v,trackContainerRef:y,position:b,hasLabels:S,disabled:w,readonly:C,noKeyboard:P}=Kie({props:e,steps:l,onSliderStart:()=>{!w.value&&!C.value&&r("start",u.value)},onSliderEnd:x=>{let{value:A}=x;const D=h(A);!w.value&&!C.value&&(u.value=D),r("end",D)},onSliderMove:x=>{let{value:A}=x;!w.value&&!C.value&&(u.value=h(A))},getActiveThumb:()=>a.value?.$el}),{isFocused:k,focus:R,blur:T}=Nu(e),I=L(()=>b(u.value));return Fe(()=>{const x=qi.filterProps(e),[A,D]=ol(i),B=!!(e.label||n.label||n.prepend);return f(qi,ve({ref:s,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||S.value,"v-slider--focused":k.value,"v-slider--pressed":p.value,"v-slider--disabled":w.value},o.value,e.class],style:e.style},x,A,{focused:k.value}),{...n,prepend:B?V=>E(Ne,null,[n.label?.(V)??(e.label?f(Zv,{id:V.id.value,class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(V)]):void 0,default:V=>{let{id:$,messagesId:N}=V;return E("div",{class:"v-slider__container",onMousedown:C.value?void 0:g,onTouchstartPassive:C.value?void 0:v},[E("input",{id:$.value,name:e.name||$.value,disabled:w.value,readonly:C.value,tabindex:"-1",value:u.value},null),f(Qie,{ref:y,start:0,stop:I.value},{"tick-label":n["tick-label"]}),f(Xie,ve({ref:a,"aria-describedby":N.value,focused:k.value,noKeyboard:P.value,min:c.value,max:d.value,modelValue:u.value,"onUpdate:modelValue":O=>u.value=O,position:I.value,elevation:e.elevation,onFocus:R,onBlur:T,ripple:e.ripple,name:e.name},D),{"thumb-label":n["thumb-label"]})])}})}),Ci({focus:()=>a.value?.$el.focus()},s)}}),XM=be({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,hideEyeDropper:Boolean,eyeDropperIcon:{type:et,default:"$eyeDropper"},...Qe()},"VColorPickerPreview"),ese=Qs({name:"VColorPickerPreview",props:XM(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=Ur(),i=new AbortController;xu(()=>i.abort());async function a(){if(!VT||e.disabled)return;const s=new window.EyeDropper;try{const o=await s.open({signal:i.signal}),l=Zp(is(o.sRGBHex));n("update:color",{...e.color??uc,...l})}catch{}}return Fe(()=>E("div",{class:Te(["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class]),style:je(e.style)},[VT&&!e.hideEyeDropper&&E("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[f(te,{"aria-label":r("$vuetify.colorPicker.ariaLabel.eyedropper"),density:"comfortable",disabled:e.disabled,icon:e.eyeDropperIcon,variant:"plain",onClick:a},null)]),E("div",{class:"v-color-picker-preview__dot"},[E("div",{style:{background:YL(e.color??uc)}},null)]),E("div",{class:"v-color-picker-preview__sliders"},[f(nP,{class:"v-color-picker-preview__track v-color-picker-preview__hue","aria-label":r("$vuetify.colorPicker.ariaLabel.hueSlider"),modelValue:e.color?.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??uc,h:s}),step:1,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&f(nP,{class:"v-color-picker-preview__track v-color-picker-preview__alpha","aria-label":r("$vuetify.colorPicker.ariaLabel.alphaSlider"),modelValue:e.color?.a??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??uc,a:s}),step:.01,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])),{}}}),tse={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},nse={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},rse={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},ise={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},sse={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},ase={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},ose={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},lse={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},use={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},cse={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},dse={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},fse={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},pse={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},mse={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},hse={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},gse={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},vse={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},yse={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},bse={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},Sse={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},wse={red:tse,pink:nse,purple:rse,deepPurple:ise,indigo:sse,blue:ase,lightBlue:ose,cyan:lse,teal:use,green:cse,lightGreen:dse,lime:fse,yellow:pse,amber:mse,orange:hse,deepOrange:gse,brown:vse,blueGrey:yse,grey:bse,shades:Sse},Ese=be({swatches:{type:Array,default:()=>xse(wse)},disabled:Boolean,color:Object,maxHeight:[Number,String],...Qe()},"VColorPickerSwatches");function xse(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const Cse=Qs({name:"VColorPickerSwatches",props:Ese(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;function r(i){e.disabled||!i||n("update:color",i)}return Fe(()=>E("div",{class:Te(["v-color-picker-swatches",e.class]),style:je([{maxHeight:Me(e.maxHeight)},e.style])},[E("div",null,[e.swatches.map(i=>E("div",{class:"v-color-picker-swatches__swatch"},[i.map(a=>{const s=is(a),o=Zp(s),l=KL(s);return E("div",{class:Te(["v-color-picker-swatches__color",{"v-color-picker-swatches__color--disabled":e.disabled}]),onClick:()=>r(o)},[E("div",{style:{background:l}},[e.color&&ti(e.color,o)?f(j,{size:"x-small",icon:"$success",color:QJ(a,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),kse=_u("v-picker-title"),Dx=be({color:String,...As(),...Qe(),...Vr(),...xi(),...ul(),...Ed(),...mr(),...zt(),...vn()},"VSheet"),Dg=De()({name:"VSheet",props:Dx(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=xn(e),{backgroundColorClasses:i,backgroundColorStyles:a}=$n(()=>e.color),{borderClasses:s}=Zs(e),{dimensionStyles:o}=Br(e),{elevationClasses:l}=Ji(e),{locationStyles:u}=Pu(e),{positionClasses:c}=xd(e),{roundedClasses:d}=Er(e);return Fe(()=>f(e.tag,{class:Te(["v-sheet",r.value,i.value,s.value,l.value,c.value,d.value,e.class]),style:je([a.value,o.value,u.value,e.style])},n)),{}}}),JM=be({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...Dx()},"VPicker"),rP=De()({name:"VPicker",props:JM(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=$n(()=>e.color);return Fe(()=>{const a=Dg.filterProps(e),s=!e.hideTitle&&!!(e.title||n.title);return f(Dg,ve(a,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>[!e.hideHeader&&E("div",{key:"header",class:Te(["v-picker__header-wrapper",r.value]),style:je([i.value])},[s&&f(kse,{key:"picker-title"},{default:()=>[n.title?.()??e.title]}),n.header&&E("div",{class:"v-picker__header"},[n.header()])]),E("div",{class:"v-picker__body"},[n.default?.()]),n.actions&&f(sn,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[E("div",{class:"v-picker__actions"},[n.actions()])]})]})}),{}}}),_se=be({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Zl).includes(e)},modes:{type:Array,default:()=>Object.keys(Zl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Zl).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...JM({hideHeader:!0}),...Ys(XM(),["hideEyeDropper","eyeDropperIcon"])},"VColorPicker"),iP=Qs({name:"VColorPicker",props:_se(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"mode"),i=z(null),a=gt(e,"modelValue",void 0,c=>{if(c==null||c==="")return null;let d;try{d=Zp(is(c))}catch{return null}return d},c=>c?Mie(c,e.modelValue):null),s=L(()=>a.value?{...a.value,h:i.value??a.value.h}:null),{rtlClasses:o}=Tr();let l=!0;Oe(a,c=>{if(!l){l=!0;return}c&&(i.value=c.h)},{immediate:!0});const u=c=>{l=!1,i.value=c.h,a.value=c};return nl(()=>{e.modes.includes(r.value)||(r.value=e.modes[0])}),Sr({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),Fe(()=>{const c=rP.filterProps(e);return f(rP,ve(c,{class:["v-color-picker",o.value,e.class],style:[{"--v-color-picker-color-hsv":YL({...s.value??uc,a:1})},e.style]}),{...n,default:()=>E(Ne,null,[!e.hideCanvas&&f(Lie,{key:"canvas",color:s.value,"onUpdate:color":u,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&E("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&f(ese,{key:"preview",color:s.value,"onUpdate:color":u,hideAlpha:!r.value.endsWith("a"),disabled:e.disabled,hideEyeDropper:e.hideEyeDropper,eyeDropperIcon:e.eyeDropperIcon},null),!e.hideInputs&&f(zie,{key:"edit",modes:e.modes,mode:r.value,"onUpdate:mode":d=>r.value=d,color:s.value,"onUpdate:color":u,disabled:e.disabled},null)]),e.showSwatches&&f(Cse,{key:"swatches",color:s.value,"onUpdate:color":u,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)])})}),{}}}),Tse={class:"mb-4"},Ise={class:"d-flex flex-wrap ga-2"},Pse={class:"mb-3"},Rse={class:"mb-3"},Ase={class:"d-flex ga-2"},Ose={class:"mb-3"},Nse=Be({__name:"ManageTagsDialog",setup(e){const t=qt(Kt.ManageTagsDialog),n=Nie(),r=en(),i=z([]),a=z(""),s=z(Da),o=z(null),l=z(""),u=z(Da),c=[["#FF5252","#E91E63","#9C27B0","#673AB7"],["#3F51B5","#2196F3","#03A9F4","#00BCD4"],["#009688","#4CAF50","#8BC34A","#CDDC39"],["#FFEB3B","#FFC107","#FF9800","#FF5722"],["#795548","#9E9E9E","#607D8B","#000000"]],d=()=>{t.closeDialog(),o.value=null,l.value="",u.value=Da,a.value="",s.value=Da},p=async w=>{await h(),w?.tagId&&w?.tagName&&y(w.tagId,w.tagName)},h=async()=>{i.value=await ca.getTagsWithPrinters()},g=async()=>{if(!a.value?.trim()?.length){r.error("Please set a non-empty tag name");return}await ca.createTag(a.value.trim(),s.value),await h(),await n(),a.value="",s.value=Da,r.info("Created tag")},v=async w=>{const C=i.value.find(k=>k.id===w);if(!C){r.error("Tag was not found, please reload the page");return}const P=C.printers.length;P>0&&!confirm(`This tag contains ${P} printers, are you sure to delete it?`)||(await ca.deleteTag(w),await h(),await n(),r.info("Deleted tag"))},y=(w,C)=>{const P=i.value.find(k=>k.id===w);o.value=w,l.value=C,u.value=P?.color||Da},b=()=>{o.value=null,l.value="",u.value=Da},S=async w=>{if(!l.value?.trim()?.length){r.error("Please set a non-empty tag name");return}await ca.updateTagName(w,l.value.trim()),await ca.updateTagColor(w,u.value),await h(),await n(),o.value=null,l.value="",u.value=Da,r.info("Updated tag")};return(w,C)=>(F(),Q(na,{id:re(t).dialogId,"max-width":"500",onEscape:C[11]||(C[11]=P=>d()),onOpened:p},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...C[12]||(C[12]=[_("label",-1)])]),_:1}),C[13]||(C[13]=_(" Manage Tags ",-1))]),_:1}),f(Ye,null,{default:m(()=>[E("div",Tse,[C[16]||(C[16]=E("div",{class:"text-subtitle-2 mb-2"},"Available Tags:",-1)),E("div",Ise,[(F(!0),fe(Ne,null,Zt(i.value,P=>(F(),Q(Ke,{key:P.id,color:P.color,disabled:o.value!==null,closable:"",size:"small",onClick:k=>y(P.id,P.name),"onClick:close":k=>v(P.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...C[14]||(C[14]=[_("label",-1)])]),_:1}),_(" "+U(P.name),1)]),_:2},1032,["color","disabled","onClick","onClick:close"]))),128)),i.value.length?ae("",!0):(F(),Q(Ke,{key:0,disabled:"",size:"small"},{default:m(()=>[...C[15]||(C[15]=[_(" No tags yet ",-1)])]),_:1}))])]),o.value!==null?(F(),Q($e,{key:0,variant:"elevated",elevation:"10",color:"secondary",class:"mb-3 pa-3"},{default:m(()=>[C[20]||(C[20]=E("div",{class:"text-caption mb-2"},"Editing Tag:",-1)),E("div",Pse,[f(Et,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=P=>l.value=P),density:"compact",variant:"outlined","hide-details":"",autofocus:"",label:"Tag Name",placeholder:"Enter tag name",onKeyup:[C[1]||(C[1]=Ul(P=>S(o.value),["enter"])),C[2]||(C[2]=Ul(P=>b(),["escape"]))]},null,8,["modelValue"])]),E("div",Rse,[C[17]||(C[17]=E("div",{class:"text-caption mb-2"},"Tag Color:",-1)),f(iP,{modelValue:u.value,"onUpdate:modelValue":C[3]||(C[3]=P=>u.value=P),swatches:c,"show-swatches":"","hide-inputs":"",mode:"hex"},null,8,["modelValue"])]),E("div",Ase,[f(te,{color:"primary","prepend-icon":"check",onClick:C[4]||(C[4]=P=>S(o.value))},{default:m(()=>[...C[18]||(C[18]=[_(" Save ",-1)])]),_:1}),f(te,{variant:"outlined","prepend-icon":"close",onClick:C[5]||(C[5]=P=>b())},{default:m(()=>[...C[19]||(C[19]=[_(" Cancel ",-1)])]),_:1})])]),_:1})):ae("",!0),f(mt,{class:"my-4"}),E("div",null,[C[23]||(C[23]=E("div",{class:"text-subtitle-2 mb-2"},"Create New Tag:",-1)),f(Et,{modelValue:a.value,"onUpdate:modelValue":C[6]||(C[6]=P=>a.value=P),label:"Tag Name",placeholder:"Enter tag name",density:"compact",variant:"outlined","hide-details":"",class:"mb-3",onKeyup:C[7]||(C[7]=Ul(P=>g(),["enter"]))},null,8,["modelValue"]),E("div",Ose,[C[21]||(C[21]=E("div",{class:"text-caption mb-2"},"Tag Color:",-1)),f(iP,{modelValue:s.value,"onUpdate:modelValue":C[8]||(C[8]=P=>s.value=P),swatches:c,"show-swatches":"","hide-inputs":"",mode:"hex"},null,8,["modelValue"])]),f(te,{color:"primary",size:"small","prepend-icon":"add",onClick:C[9]||(C[9]=P=>g())},{default:m(()=>[...C[22]||(C[22]=[_(" Create Tag ",-1)])]),_:1})])]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{onClick:C[10]||(C[10]=P=>d())},{default:m(()=>[...C[24]||(C[24]=[_("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"]))}});function QM(e){return typeof e>"u"||e===null}function Dse(e){return typeof e=="object"&&e!==null}function Lse(e){return Array.isArray(e)?e:QM(e)?[]:[e]}function Fse(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Mse(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function $se(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Vse=QM,Bse=Dse,Use=Lse,jse=Mse,zse=$se,Hse=Fse,br={isNothing:Vse,isObject:Bse,toArray:Use,repeat:jse,isNegativeZero:zse,extend:Hse};function ZM(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
56
|
-
|
|
57
|
-
`+e.mark.snippet),r+" "+n):r}function cp(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ZM(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}cp.prototype=Object.create(Error.prototype);cp.prototype.constructor=cp;cp.prototype.toString=function(t){return this.name+": "+ZM(this,t)};var Li=cp;function $b(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(a=" ... ",t=r-o+a.length),n-r>o&&(s=" ...",n=r+o-s.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function Vb(e,t){return br.repeat(" ",t-e.length)+e}function Wse(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,s=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var o="",l,u,c=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)u=$b(e.buffer,r[s-l],i[s-l],e.position-(r[s]-r[s-l]),d),o=br.repeat(" ",t.indent)+Vb((e.line-l+1).toString(),c)+" | "+u.str+`
|
|
58
|
-
`+o;for(u=$b(e.buffer,r[s],i[s],e.position,d),o+=br.repeat(" ",t.indent)+Vb((e.line+1).toString(),c)+" | "+u.str+`
|
|
59
|
-
`,o+=br.repeat("-",t.indent+c+3+u.pos)+`^
|
|
60
|
-
`,l=1;l<=t.linesAfter&&!(s+l>=i.length);l++)u=$b(e.buffer,r[s+l],i[s+l],e.position-(r[s]-r[s+l]),d),o+=br.repeat(" ",t.indent)+Vb((e.line+l+1).toString(),c)+" | "+u.str+`
|
|
61
|
-
`;return o.replace(/\n$/,"")}var Gse=Wse,qse=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Kse=["scalar","sequence","mapping"];function Yse(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function Xse(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(qse.indexOf(n)===-1)throw new Li('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Yse(t.styleAliases||null),Kse.indexOf(this.kind)===-1)throw new Li('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ii=Xse;function sP(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,s){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=s)}),n[i]=r}),n}function Jse(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function zS(e){return this.extend(e)}zS.prototype.extend=function(t){var n=[],r=[];if(t instanceof ii)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Li("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof ii))throw new Li("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Li("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Li("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof ii))throw new Li("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(zS.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=sP(i,"implicit"),i.compiledExplicit=sP(i,"explicit"),i.compiledTypeMap=Jse(i.compiledImplicit,i.compiledExplicit),i};var Qse=zS,Zse=new ii("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),eae=new ii("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),tae=new ii("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),nae=new Qse({explicit:[Zse,eae,tae]});function rae(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function iae(){return null}function sae(e){return e===null}var aae=new ii("tag:yaml.org,2002:null",{kind:"scalar",resolve:rae,construct:iae,predicate:sae,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function oae(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function lae(e){return e==="true"||e==="True"||e==="TRUE"}function uae(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var cae=new ii("tag:yaml.org,2002:bool",{kind:"scalar",resolve:oae,construct:lae,predicate:uae,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function dae(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fae(e){return 48<=e&&e<=55}function pae(e){return 48<=e&&e<=57}function mae(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!dae(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!fae(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!pae(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function hae(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function gae(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!br.isNegativeZero(e)}var vae=new ii("tag:yaml.org,2002:int",{kind:"scalar",resolve:mae,construct:hae,predicate:gae,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),yae=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bae(e){return!(e===null||!yae.test(e)||e[e.length-1]==="_")}function Sae(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var wae=/^[-+]?[0-9]+e/;function Eae(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(br.isNegativeZero(e))return"-0.0";return n=e.toString(10),wae.test(n)?n.replace("e",".e"):n}function xae(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||br.isNegativeZero(e))}var Cae=new ii("tag:yaml.org,2002:float",{kind:"scalar",resolve:bae,construct:Sae,predicate:xae,represent:Eae,defaultStyle:"lowercase"}),kae=nae.extend({implicit:[aae,cae,vae,Cae]}),_ae=kae,e$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Tae(e){return e===null?!1:e$.exec(e)!==null||t$.exec(e)!==null}function Iae(e){var t,n,r,i,a,s,o,l=0,u=null,c,d,p;if(t=e$.exec(e),t===null&&(t=t$.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],d=+(t[11]||0),u=(c*60+d)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(n,r,i,a,s,o,l)),u&&p.setTime(p.getTime()-u),p}function Pae(e){return e.toISOString()}var Rae=new ii("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Tae,construct:Iae,instanceOf:Date,represent:Pae});function Aae(e){return e==="<<"||e===null}var Oae=new ii("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Aae}),Lx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
62
|
-
\r`;function Nae(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=Lx;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Dae(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=Lx,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):n===18?(o.push(s>>10&255),o.push(s>>2&255)):n===12&&o.push(s>>4&255),new Uint8Array(o)}function Lae(e){var t="",n=0,r,i,a=e.length,s=Lx;for(r=0;r<a;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function Fae(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Mae=new ii("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Nae,construct:Dae,predicate:Fae,represent:Lae}),$ae=Object.prototype.hasOwnProperty,Vae=Object.prototype.toString;function Bae(e){if(e===null)return!0;var t=[],n,r,i,a,s,o=e;for(n=0,r=o.length;n<r;n+=1){if(i=o[n],s=!1,Vae.call(i)!=="[object Object]")return!1;for(a in i)if($ae.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function Uae(e){return e!==null?e:[]}var jae=new ii("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bae,construct:Uae}),zae=Object.prototype.toString;function Hae(e){if(e===null)return!0;var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],zae.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function Wae(e){if(e===null)return[];var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var Gae=new ii("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Hae,construct:Wae}),qae=Object.prototype.hasOwnProperty;function Kae(e){if(e===null)return!0;var t,n=e;for(t in n)if(qae.call(n,t)&&n[t]!==null)return!1;return!0}function Yae(e){return e!==null?e:{}}var Xae=new ii("tag:yaml.org,2002:set",{kind:"mapping",resolve:Kae,construct:Yae}),n$=_ae.extend({implicit:[Rae,Oae],explicit:[Mae,jae,Gae,Xae]}),Qo=Object.prototype.hasOwnProperty,Lg=1,r$=2,i$=3,Fg=4,Bb=1,Jae=2,aP=3,Qae=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zae=/[\x85\u2028\u2029]/,eoe=/[,\[\]\{\}]/,s$=/^(?:!|!!|![a-z\-]+!)$/i,a$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function oP(e){return Object.prototype.toString.call(e)}function ha(e){return e===10||e===13}function eu(e){return e===9||e===32}function $i(e){return e===9||e===32||e===10||e===13}function cc(e){return e===44||e===91||e===93||e===123||e===125}function toe(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function noe(e){return e===120?2:e===117?4:e===85?8:0}function roe(e){return 48<=e&&e<=57?e-48:-1}function lP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
63
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function ioe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function o$(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var l$=new Array(256),u$=new Array(256);for(var Hu=0;Hu<256;Hu++)l$[Hu]=lP(Hu)?1:0,u$[Hu]=lP(Hu);function soe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||n$,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function c$(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Gse(n),new Li(t,n)}function st(e,t){throw c$(e,t)}function Mg(e,t){e.onWarning&&e.onWarning.call(null,c$(e,t))}var uP={YAML:function(t,n,r){var i,a,s;t.version!==null&&st(t,"duplication of %YAML directive"),r.length!==1&&st(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&st(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&st(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Mg(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&st(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],s$.test(i)||st(t,"ill-formed tag handle (first argument) of the TAG directive"),Qo.call(t.tagMap,i)&&st(t,'there is a previously declared suffix for "'+i+'" tag handle'),a$.test(a)||st(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{st(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function zo(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||st(e,"expected valid JSON character");else Qae.test(o)&&st(e,"the stream contains non-printable characters");e.result+=o}}function cP(e,t,n,r){var i,a,s,o;for(br.isObject(n)||st(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,o=i.length;s<o;s+=1)a=i[s],Qo.call(t,a)||(o$(t,a,n[a]),r[a]=!0)}function dc(e,t,n,r,i,a,s,o,l){var u,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,c=i.length;u<c;u+=1)Array.isArray(i[u])&&st(e,"nested arrays are not supported inside keys"),typeof i=="object"&&oP(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&oP(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,c=a.length;u<c;u+=1)cP(e,t,a[u],n);else cP(e,t,a,n);else!e.json&&!Qo.call(n,i)&&Qo.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,st(e,"duplicated mapping key")),o$(t,i,a),delete n[i];return t}function Fx(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):st(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function dr(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;eu(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ha(i))for(Fx(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Mg(e,"deficient indentation"),r}function iy(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||$i(n)))}function Mx(e,t){t===1?e.result+=" ":t>1&&(e.result+=br.repeat(`
|
|
64
|
-
`,t-1))}function aoe(e,t,n){var r,i,a,s,o,l,u,c,d=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),$i(h)||cc(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),$i(i)||n&&cc(i)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),$i(i)||n&&cc(i))break}else if(h===35){if(r=e.input.charCodeAt(e.position-1),$i(r))break}else{if(e.position===e.lineStart&&iy(e)||n&&cc(h))break;if(ha(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,dr(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}o&&(zo(e,a,s,!1),Mx(e,e.line-l),a=s=e.position,o=!1),eu(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return zo(e,a,s,!1),e.result?!0:(e.kind=d,e.result=p,!1)}function ooe(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(zo(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else ha(n)?(zo(e,r,i,!0),Mx(e,dr(e,!1,t)),r=i=e.position):e.position===e.lineStart&&iy(e)?st(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);st(e,"unexpected end of the stream within a single quoted scalar")}function loe(e,t){var n,r,i,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return zo(e,n,e.position,!0),e.position++,!0;if(o===92){if(zo(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),ha(o))dr(e,!1,t);else if(o<256&&l$[o])e.result+=u$[o],e.position++;else if((s=noe(o))>0){for(i=s,a=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=toe(o))>=0?a=(a<<4)+s:st(e,"expected hexadecimal character");e.result+=ioe(a),e.position++}else st(e,"unknown escape sequence");n=r=e.position}else ha(o)?(zo(e,n,r,!0),Mx(e,dr(e,!1,t)),n=r=e.position):e.position===e.lineStart&&iy(e)?st(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}st(e,"unexpected end of the stream within a double quoted scalar")}function uoe(e,t){var n=!0,r,i,a,s=e.tag,o,l=e.anchor,u,c,d,p,h,g=Object.create(null),v,y,b,S;if(S=e.input.charCodeAt(e.position),S===91)c=93,h=!1,o=[];else if(S===123)c=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),S=e.input.charCodeAt(++e.position);S!==0;){if(dr(e,!0,t),S=e.input.charCodeAt(e.position),S===c)return e.position++,e.tag=s,e.anchor=l,e.kind=h?"mapping":"sequence",e.result=o,!0;n?S===44&&st(e,"expected the node content, but found ','"):st(e,"missed comma between flow collection entries"),y=v=b=null,d=p=!1,S===63&&(u=e.input.charCodeAt(e.position+1),$i(u)&&(d=p=!0,e.position++,dr(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Xc(e,t,Lg,!1,!0),y=e.tag,v=e.result,dr(e,!0,t),S=e.input.charCodeAt(e.position),(p||e.line===r)&&S===58&&(d=!0,S=e.input.charCodeAt(++e.position),dr(e,!0,t),Xc(e,t,Lg,!1,!0),b=e.result),h?dc(e,o,g,y,v,b,r,i,a):d?o.push(dc(e,null,g,y,v,b,r,i,a)):o.push(v),dr(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(n=!0,S=e.input.charCodeAt(++e.position)):n=!1}st(e,"unexpected end of the stream within a flow collection")}function coe(e,t){var n,r,i=Bb,a=!1,s=!1,o=t,l=0,u=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Bb===i?i=d===43?aP:Jae:st(e,"repeat of a chomping mode identifier");else if((c=roe(d))>=0)c===0?st(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?st(e,"repeat of an indentation width identifier"):(o=t+c-1,s=!0);else break;if(eu(d)){do d=e.input.charCodeAt(++e.position);while(eu(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ha(d)&&d!==0)}for(;d!==0;){for(Fx(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),ha(d)){l++;continue}if(e.lineIndent<o){i===aP?e.result+=br.repeat(`
|
|
65
|
-
`,a?1+l:l):i===Bb&&a&&(e.result+=`
|
|
66
|
-
`);break}for(r?eu(d)?(u=!0,e.result+=br.repeat(`
|
|
67
|
-
`,a?1+l:l)):u?(u=!1,e.result+=br.repeat(`
|
|
68
|
-
`,l+1)):l===0?a&&(e.result+=" "):e.result+=br.repeat(`
|
|
69
|
-
`,l):e.result+=br.repeat(`
|
|
70
|
-
`,a?1+l:l),a=!0,s=!0,l=0,n=e.position;!ha(d)&&d!==0;)d=e.input.charCodeAt(++e.position);zo(e,n,e.position,!1)}return!0}function dP(e,t){var n,r=e.tag,i=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,st(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!$i(s))));){if(o=!0,e.position++,dr(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Xc(e,t,i$,!1,!0),a.push(e.result),dr(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)st(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function doe(e,t,n){var r,i,a,s,o,l,u=e.tag,c=e.anchor,d={},p=Object.create(null),h=null,g=null,v=null,y=!1,b=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),S=e.input.charCodeAt(e.position);S!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,st(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(S===63||S===58)&&$i(r))S===63?(y&&(dc(e,d,p,h,g,null,s,o,l),h=g=v=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):st(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=r;else{if(s=e.line,o=e.lineStart,l=e.position,!Xc(e,n,r$,!1,!0))break;if(e.line===a){for(S=e.input.charCodeAt(e.position);eu(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),$i(S)||st(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(dc(e,d,p,h,g,null,s,o,l),h=g=v=null),b=!0,y=!1,i=!1,h=e.tag,g=e.result;else if(b)st(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(b)st(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),Xc(e,t,Fg,!0,i)&&(y?g=e.result:v=e.result),y||(dc(e,d,p,h,g,v,s,o,l),h=g=v=null),dr(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&S!==0)st(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&dc(e,d,p,h,g,null,s,o,l),b&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=d),b}function foe(e){var t,n=!1,r=!1,i,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&st(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):st(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!$i(s);)s===33&&(r?st(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),s$.test(i)||st(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),eoe.test(a)&&st(e,"tag suffix cannot contain flow indicator characters")}a&&!a$.test(a)&&st(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{st(e,"tag name is malformed: "+a)}return n?e.tag=a:Qo.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:st(e,'undeclared tag handle "'+i+'"'),!0}function poe(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&st(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!$i(n)&&!cc(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&st(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function moe(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$i(r)&&!cc(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&st(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Qo.call(e.anchorMap,n)||st(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],dr(e,!0,-1),!0}function Xc(e,t,n,r,i){var a,s,o,l=1,u=!1,c=!1,d,p,h,g,v,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=Fg===n||i$===n,r&&dr(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;foe(e)||poe(e);)dr(e,!0,-1)?(u=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=u||i),(l===1||Fg===n)&&(Lg===n||r$===n?v=t:v=t+1,y=e.position-e.lineStart,l===1?o&&(dP(e,y)||doe(e,y,v))||uoe(e,v)?c=!0:(s&&coe(e,v)||ooe(e,v)||loe(e,v)?c=!0:moe(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&st(e,"alias node should not have any properties")):aoe(e,v,Lg===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=o&&dP(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&st(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(g=e.implicitTypes[d],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Qo.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,h=e.typeMap.multi[e.kind||"fallback"],d=0,p=h.length;d<p;d+=1)if(e.tag.slice(0,h[d].tag.length)===h[d].tag){g=h[d];break}g||st(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&st(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):st(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function hoe(e){var t=e.position,n,r,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(dr(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!$i(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&st(e,"directive name must not be less than one character in length");s!==0;){for(;eu(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ha(s));break}if(ha(s))break;for(n=e.position;s!==0&&!$i(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Fx(e),Qo.call(uP,r)?uP[r](e,r,i):Mg(e,'unknown document directive "'+r+'"')}if(dr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,dr(e,!0,-1)):a&&st(e,"directives end mark is expected"),Xc(e,e.lineIndent-1,Fg,!1,!0),dr(e,!0,-1),e.checkLineBreaks&&Zae.test(e.input.slice(t,e.position))&&Mg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&iy(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,dr(e,!0,-1));return}if(e.position<e.length-1)st(e,"end of the stream or a document separator is expected");else return}function goe(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
71
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new soe(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,st(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)hoe(n);return n.documents}function voe(e,t){var n=goe(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Li("expected a single document in the stream, but found more")}}var yoe=voe,boe={load:yoe},d$=Object.prototype.toString,f$=Object.prototype.hasOwnProperty,$x=65279,Soe=9,dp=10,woe=13,Eoe=32,xoe=33,Coe=34,HS=35,koe=37,_oe=38,Toe=39,Ioe=42,p$=44,Poe=45,$g=58,Roe=61,Aoe=62,Ooe=63,Noe=64,m$=91,h$=93,Doe=96,g$=123,Loe=124,v$=125,oi={};oi[0]="\\0";oi[7]="\\a";oi[8]="\\b";oi[9]="\\t";oi[10]="\\n";oi[11]="\\v";oi[12]="\\f";oi[13]="\\r";oi[27]="\\e";oi[34]='\\"';oi[92]="\\\\";oi[133]="\\N";oi[160]="\\_";oi[8232]="\\L";oi[8233]="\\P";var Foe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Moe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $oe(e,t){var n,r,i,a,s,o,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)s=r[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&f$.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o;return n}function Voe(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Li("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+br.repeat("0",r-t.length)+t}var Boe=1,fp=2;function Uoe(e){this.schema=e.schema||n$,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=br.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=$oe(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fp:Boe,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function fP(e,t){for(var n=br.repeat(" ",t),r=0,i=-1,a="",s,o=e.length;r<o;)i=e.indexOf(`
|
|
72
|
-
`,r),i===-1?(s=e.slice(r),r=o):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
|
|
73
|
-
`&&(a+=n),a+=s;return a}function WS(e,t){return`
|
|
74
|
-
`+br.repeat(" ",e.indent*t)}function joe(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Vg(e){return e===Eoe||e===Soe}function pp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==$x||65536<=e&&e<=1114111}function pP(e){return pp(e)&&e!==$x&&e!==woe&&e!==dp}function mP(e,t,n){var r=pP(e),i=r&&!Vg(e);return(n?r:r&&e!==p$&&e!==m$&&e!==h$&&e!==g$&&e!==v$)&&e!==HS&&!(t===$g&&!i)||pP(t)&&!Vg(t)&&e===HS||t===$g&&i}function zoe(e){return pp(e)&&e!==$x&&!Vg(e)&&e!==Poe&&e!==Ooe&&e!==$g&&e!==p$&&e!==m$&&e!==h$&&e!==g$&&e!==v$&&e!==HS&&e!==_oe&&e!==Ioe&&e!==xoe&&e!==Loe&&e!==Roe&&e!==Aoe&&e!==Toe&&e!==Coe&&e!==koe&&e!==Noe&&e!==Doe}function Hoe(e){return!Vg(e)&&e!==$g}function rf(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function y$(e){var t=/^\n* /;return t.test(e)}var b$=1,GS=2,S$=3,w$=4,ec=5;function Woe(e,t,n,r,i,a,s,o){var l,u=0,c=null,d=!1,p=!1,h=r!==-1,g=-1,v=zoe(rf(e,0))&&Hoe(rf(e,e.length-1));if(t||s)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=rf(e,l),!pp(u))return ec;v=v&&mP(u,c,o),c=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=rf(e,l),u===dp)d=!0,h&&(p=p||l-g-1>r&&e[g+1]!==" ",g=l);else if(!pp(u))return ec;v=v&&mP(u,c,o),c=u}p=p||h&&l-g-1>r&&e[g+1]!==" "}return!d&&!p?v&&!s&&!i(e)?b$:a===fp?ec:GS:n>9&&y$(e)?ec:s?a===fp?ec:GS:p?w$:S$}function Goe(e,t,n,r,i){e.dump=(function(){if(t.length===0)return e.quotingType===fp?'""':"''";if(!e.noCompatMode&&(Foe.indexOf(t)!==-1||Moe.test(t)))return e.quotingType===fp?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=r||e.flowLevel>-1&&n>=e.flowLevel;function l(u){return joe(e,u)}switch(Woe(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!r,i)){case b$:return t;case GS:return"'"+t.replace(/'/g,"''")+"'";case S$:return"|"+hP(t,e.indent)+gP(fP(t,a));case w$:return">"+hP(t,e.indent)+gP(fP(qoe(t,s),a));case ec:return'"'+Koe(t)+'"';default:throw new Li("impossible error: invalid scalar style")}})()}function hP(e,t){var n=y$(e)?String(t):"",r=e[e.length-1]===`
|
|
75
|
-
`,i=r&&(e[e.length-2]===`
|
|
76
|
-
`||e===`
|
|
77
|
-
`),a=i?"+":r?"":"-";return n+a+`
|
|
78
|
-
`}function gP(e){return e[e.length-1]===`
|
|
79
|
-
`?e.slice(0,-1):e}function qoe(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var u=e.indexOf(`
|
|
80
|
-
`);return u=u!==-1?u:e.length,n.lastIndex=u,vP(e.slice(0,u),t)})(),i=e[0]===`
|
|
81
|
-
`||e[0]===" ",a,s;s=n.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",r+=o+(!i&&!a&&l!==""?`
|
|
82
|
-
`:"")+vP(l,t),i=a}return r}function vP(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,a,s=0,o=0,l="";r=n.exec(e);)o=r.index,o-i>t&&(a=s>i?s:o,l+=`
|
|
83
|
-
`+e.slice(i,a),i=a+1),s=o;return l+=`
|
|
84
|
-
`,e.length-i>t&&s>i?l+=e.slice(i,s)+`
|
|
85
|
-
`+e.slice(s+1):l+=e.slice(i),l.slice(1)}function Koe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=rf(e,i),r=oi[n],!r&&pp(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Voe(n);return t}function Yoe(e,t,n){var r="",i=e.tag,a,s,o;for(a=0,s=n.length;a<s;a+=1)o=n[a],e.replacer&&(o=e.replacer.call(n,String(a),o)),(ho(e,t,o,!1,!1)||typeof o>"u"&&ho(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function yP(e,t,n,r){var i="",a=e.tag,s,o,l;for(s=0,o=n.length;s<o;s+=1)l=n[s],e.replacer&&(l=e.replacer.call(n,String(s),l)),(ho(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&ho(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=WS(e,t)),e.dump&&dp===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function Xoe(e,t,n){var r="",i=e.tag,a=Object.keys(n),s,o,l,u,c;for(s=0,o=a.length;s<o;s+=1)c="",r!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=a[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),ho(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ho(e,t,u,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function Joe(e,t,n,r){var i="",a=e.tag,s=Object.keys(n),o,l,u,c,d,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Li("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)p="",(!r||i!=="")&&(p+=WS(e,t)),u=s[o],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),ho(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&dp===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=WS(e,t)),ho(e,t+1,c,!0,d)&&(e.dump&&dp===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=a,e.dump=i||"{}"}function bP(e,t,n){var r,i,a,s,o,l;for(i=n?e.explicitTypes:e.implicitTypes,a=0,s=i.length;a<s;a+=1)if(o=i[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,d$.call(o.represent)==="[object Function]")r=o.represent(t,l);else if(f$.call(o.represent,l))r=o.represent[l](t,l);else throw new Li("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function ho(e,t,n,r,i,a,s){e.tag=null,e.dump=n,bP(e,n,!1)||bP(e,n,!0);var o=d$.call(e.dump),l=r,u;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",d,p;if(c&&(d=e.duplicates.indexOf(n),p=d!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(Joe(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(Xoe(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?yP(e,t-1,e.dump,i):yP(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(Yoe(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Goe(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Li("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Qoe(e,t){var n=[],r=[],i,a;for(qS(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function qS(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)qS(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)qS(e[r[i]],t,n)}function Zoe(e,t){t=t||{};var n=new Uoe(t);n.noRefs||Qoe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),ho(n,0,r,!0,!0)?n.dump+`
|
|
86
|
-
`:""}var ele=Zoe,tle={dump:ele},KS=boe.load,nle=tle.dump;const E$=Be({__name:"YamlImportSummary",props:{summary:{},excludeSettingsAndUsers:{type:Boolean,default:!1}},setup(e){return(t,n)=>e.summary?(F(),Q($e,{key:0,variant:"tonal"},{default:m(()=>[f(ot,{class:"text-h6"},{default:m(()=>[f(j,{class:"mr-2",color:"success"},{default:m(()=>[...n[0]||(n[0]=[_("check_circle",-1)])]),_:1}),n[1]||(n[1]=_(" Import Summary ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(Mr,{density:"compact"},{default:m(()=>[f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[2]||(n[2]=[_("info",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[_("Version: "+U(e.summary.version),1)]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[3]||(n[3]=[_("storage",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[_("Database: "+U(e.summary.databaseType),1)]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[4]||(n[4]=[_("schedule",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[_("Exported: "+U(e.summary.exportedAt),1)]),_:1})]),_:1}),f(mt,{class:"my-2"}),f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[5]||(n[5]=[_("print",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(e.summary.printersCount)+" Printers",1)]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[6]||(n[6]=[_("layers",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(e.summary.floorsCount)+" Floors",1)]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[7]||(n[7]=[_("label",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(e.summary.groupsCount)+" Tags",1)]),_:1})]),_:1}),e.summary.hasSettings?(F(),Q(wt,{key:0},{prepend:m(()=>[f(j,{color:e.excludeSettingsAndUsers?"error":void 0},{default:m(()=>[_(U(e.excludeSettingsAndUsers?"block":"settings"),1)]),_:1},8,["color"])]),default:m(()=>[f(Gt,{class:Te(e.excludeSettingsAndUsers?"text-decoration-line-through text-medium-emphasis":"")},{default:m(()=>[_(" Settings "+U(e.excludeSettingsAndUsers?"(will be excluded)":"included"),1)]),_:1},8,["class"])]),_:1})):ae("",!0),e.summary.usersCount&&e.summary.usersCount>0?(F(),Q(wt,{key:1},{prepend:m(()=>[f(j,{color:e.excludeSettingsAndUsers?"error":void 0},{default:m(()=>[_(U(e.excludeSettingsAndUsers?"block":"people"),1)]),_:1},8,["color"])]),default:m(()=>[f(Gt,{class:Te(e.excludeSettingsAndUsers?"text-decoration-line-through text-medium-emphasis":"")},{default:m(()=>[_(U(e.summary.usersCount)+" Users "+U(e.excludeSettingsAndUsers?"(will be excluded)":""),1)]),_:1},8,["class"])]),_:1})):ae("",!0)]),_:1})]),_:1})]),_:1})):ae("",!0)}});class Bg extends Ei{static async downloadYamlExport(t){const r=await(await Gr()).request({method:"POST",url:"api/v2/server/yaml-export",data:t,responseType:"arraybuffer"});xS(r.data,"export-fdm-monster-"+Date.now()+".yaml")}static async uploadAndImportYaml(t){const n=new FormData;return n.append("file",t),await this.postUpload("api/v2/server/yaml-import",n,{})}static async downloadLogDump(){const n=await(await Gr()).request({method:"POST",url:"api/v2/server/dump-fdm-monster-logs",responseType:"arraybuffer"});xS(n.data,"logs-fdm-monster-"+Date.now()+".zip")}static async clearLogFilesOlderThanWeek(){return await this.delete("api/v2/server/clear-outdated-fdm-monster-logs")}}class $o extends Ei{static async updateClientDistGithub(t,n){return await this.post("/api/v2/server/update-client-bundle-github",{downloadRelease:t,allowDowngrade:n})}static async getGithubRateLimit(){return await this.get("/api/v2/server/github-rate-limit")}static async getClientReleases(){return await this.get("/api/v2/server/client-releases")}static async getVersion(){return await this.get("/api/v2/version")}static async getFeatures(){return await this.get("/api/v2/features")}static async test(){return await(await Gr(!1,!1)).get("/api/v2/test")}}const sy=Yi("Feature",{state:()=>({features:void 0}),getters:{getFeatures(){return this.features},getFeature:e=>t=>{if(e.features)return e.features[t]},hasFeature:e=>t=>{if(!e.features)return!1;const n=e.features[t];return n?n?.available:(console.debug(`Feature ${t} not defined. Options:`,Object.keys(e.features)),!1)}},actions:{async loadFeatures(){try{const e=await $o.getFeatures();this.setFeatures(e)}catch{this.features={}}},setFeatures(e){this.features=e}}}),x$=Symbol.for("vuetify:selection-control-group"),Vx=be({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:et,trueIcon:et,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:ti},...Qe(),..._r(),...vn()},"SelectionControlGroup"),rle=be({...Vx({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),ile=De()({name:"VSelectionControlGroup",props:rle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),i=Si(),a=se(()=>e.id||`v-selection-control-group-${i}`),s=se(()=>e.name||a.value),o=new Set;return Sn(x$,{modelValue:r,forceUpdate:()=>{o.forEach(l=>l())},onForceUpdate:l=>{o.add(l),Rn(()=>{o.delete(l)})}}),Sr({[e.defaultsTarget]:{color:se(()=>e.color),disabled:se(()=>e.disabled),density:se(()=>e.density),error:se(()=>e.error),inline:se(()=>e.inline),modelValue:r,multiple:se(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:s,falseIcon:se(()=>e.falseIcon),trueIcon:se(()=>e.trueIcon),readonly:se(()=>e.readonly),ripple:se(()=>e.ripple),type:se(()=>e.type),valueComparator:se(()=>e.valueComparator)}}),Fe(()=>E("div",{class:Te(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:je(e.style),role:e.type==="radio"?"radiogroup":void 0},[n.default?.()])),{}}}),ay=be({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Qe(),...Vx()},"VSelectionControl");function sle(e){const t=ft(x$,void 0),{densityClasses:n}=us(e),r=gt(e,"modelValue"),i=L(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),a=L(()=>e.falseValue!==void 0?e.falseValue:!1),s=L(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),o=L({get(){const h=t?t.modelValue.value:r.value;return s.value?rr(h).some(g=>e.valueComparator(g,i.value)):e.valueComparator(h,i.value)},set(h){if(e.readonly)return;const g=h?i.value:a.value;let v=g;s.value&&(v=h?[...rr(r.value),g]:rr(r.value).filter(y=>!e.valueComparator(y,i.value))),t?t.modelValue.value=v:r.value=v}}),{textColorClasses:l,textColorStyles:u}=Gi(()=>{if(!(e.error||e.disabled))return o.value?e.color:e.baseColor}),{backgroundColorClasses:c,backgroundColorStyles:d}=$n(()=>o.value&&!e.error&&!e.disabled?e.color:e.baseColor),p=L(()=>o.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:i,falseValue:a,model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:p}}const hu=De()({name:"VSelectionControl",directives:{vRipple:bi},inheritAttrs:!1,props:ay(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:i,densityClasses:a,icon:s,model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:p}=sle(e),h=Si(),g=Le(!1),v=Le(!1),y=z(),b=se(()=>e.id||`input-${h}`),S=se(()=>!e.disabled&&!e.readonly);i?.onForceUpdate(()=>{y.value&&(y.value.checked=o.value)});function w(R){S.value&&(g.value=!0,Vc(R.target,":focus-visible")!==!1&&(v.value=!0))}function C(){g.value=!1,v.value=!1}function P(R){R.stopPropagation()}function k(R){if(!S.value){y.value&&(y.value.checked=o.value);return}e.readonly&&i&&At(()=>i.forceUpdate()),o.value=R.target.checked}return Fe(()=>{const R=r.label?r.label({label:e.label,props:{for:b.value}}):e.label,[T,I]=ol(n),x=E("input",ve({ref:y,checked:o.value,disabled:!!e.disabled,id:b.value,onBlur:C,onFocus:w,onInput:k,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:p.value,name:e.name,"aria-checked":e.type==="checkbox"?o.value:void 0},I),null);return E("div",ve({class:["v-selection-control",{"v-selection-control--dirty":o.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":v.value,"v-selection-control--inline":e.inline},a.value,e.class]},T,{style:e.style}),[E("div",{class:Te(["v-selection-control__wrapper",l.value]),style:je(u.value)},[r.default?.({backgroundColorClasses:c,backgroundColorStyles:d}),un(E("div",{class:Te(["v-selection-control__input"])},[r.input?.({model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:x,icon:s.value,props:{onFocus:w,onBlur:C,id:b.value}})??E(Ne,null,[s.value&&f(j,{key:"icon",icon:s.value},null),x])]),[[bi,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),R&&f(Zv,{for:b.value,onClick:P},{default:()=>[R]})])}),{isFocused:g,input:y}}}),C$=be({indeterminate:Boolean,indeterminateIcon:{type:et,default:"$checkboxIndeterminate"},...ay({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),go=De()({name:"VCheckboxBtn",props:C$(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"indeterminate"),i=gt(e,"modelValue");function a(l){r.value&&(r.value=!1)}const s=se(()=>r.value?e.indeterminateIcon:e.falseIcon),o=se(()=>r.value?e.indeterminateIcon:e.trueIcon);return Fe(()=>{const l=Nn(hu.filterProps(e),["modelValue"]);return f(hu,ve(l,{modelValue:i.value,"onUpdate:modelValue":[u=>i.value=u,a],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:s.value,trueIcon:o.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}}),ale=be({...cl(),...Nn(C$(),["inline"])},"VCheckbox"),Bn=De()({name:"VCheckbox",inheritAttrs:!1,props:ale(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=gt(e,"modelValue"),{isFocused:a,focus:s,blur:o}=Nu(e),l=z(),u=Si();return Fe(()=>{const[c,d]=ol(n),p=qi.filterProps(e),h=go.filterProps(e);return f(qi,ve({ref:l,class:["v-checkbox",e.class]},c,p,{modelValue:i.value,"onUpdate:modelValue":g=>i.value=g,id:e.id||`checkbox-${u}`,focused:a.value,style:e.style}),{...r,default:g=>{let{id:v,messagesId:y,isDisabled:b,isReadonly:S,isValid:w}=g;return f(go,ve(h,{id:v.value,"aria-describedby":y.value,disabled:b.value,readonly:S.value},d,{error:w.value===!1,modelValue:i.value,"onUpdate:modelValue":C=>i.value=C,onFocus:s,onBlur:o}),r)}})}),Ci({},l)}});function ole(){function e(n){return[...n.dataTransfer?.items??[]].filter(i=>i.kind==="file").map(i=>i.webkitGetAsEntry()).filter(Boolean).length>0||[...n.dataTransfer?.files??[]].length>0}async function t(n){const r=[],i=[...n.dataTransfer?.items??[]].filter(a=>a.kind==="file").map(a=>a.webkitGetAsEntry()).filter(Boolean);if(i.length)for(const a of i){const s=await k$(a,_$(".",a));r.push(...s.map(o=>o.file))}else r.push(...n.dataTransfer?.files??[]);return r}return{handleDrop:t,hasFilesOrFolders:e}}function k$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((n,r)=>{e.isFile?e.file(a=>n([{file:a,path:t}]),r):e.isDirectory&&e.createReader().readEntries(async a=>{const s=[];for(const o of a)s.push(...await k$(o,_$(t,o)));n(s)})})}function _$(e,t){return t.isDirectory?`${e}/${t.name}`:e}const lle=be({filterByType:String},"file-accept");function ule(e){const t=L(()=>e.filterByType?cle(e.filterByType):null);function n(r){if(t.value){const i=r.filter(t.value);return{accepted:i,rejected:r.filter(a=>!i.includes(a))}}return{accepted:r,rejected:[]}}return{filterAccepted:n}}function cle(e){const t=e.split(",").map(a=>a.trim().toLowerCase()),n=t.filter(a=>a.startsWith(".")),r=t.filter(a=>a.endsWith("/*")),i=t.filter(a=>!n.includes(a)&&!r.includes(a));return a=>{const s=a.name.split(".").at(-1)?.toLowerCase()??"",o=a.type.split("/").at(0)?.toLowerCase()??"";return i.includes(a.type)||n.includes(`.${s}`)||r.includes(`${o}/*`)}}const dle=be({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},truncateLength:{type:[Number,String],default:22},...cl({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>rr(e).every(t=>t!=null&&typeof t=="object")},...lle(),...ty({clearable:!0})},"VFileInput"),Bx=De()({name:"VFileInput",inheritAttrs:!1,props:dle(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,rejected:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{t:a}=Ur(),{filterAccepted:s}=ule(e),o=gt(e,"modelValue",e.modelValue,Y=>rr(Y),Y=>!e.multiple&&Array.isArray(Y)?Y[0]:Y),{isFocused:l,focus:u,blur:c}=Nu(e),d=L(()=>typeof e.showSize!="boolean"?e.showSize:void 0),p=L(()=>(o.value??[]).reduce((Y,X)=>{let{size:ie=0}=X;return Y+ie},0)),h=L(()=>GT(p.value,d.value)),g=L(()=>(o.value??[]).map(Y=>{const{name:X="",size:ie=0}=Y,Z=B(X);return e.showSize?`${Z} (${GT(ie,d.value)})`:Z})),v=L(()=>{const Y=o.value?.length??0;return e.showSize?a(e.counterSizeString,Y,h.value):a(e.counterString,Y)}),y=z(),b=z(),S=z(),w=se(()=>l.value||e.active),C=L(()=>["plain","underlined"].includes(e.variant)),P=Le(!1),{handleDrop:k,hasFilesOrFolders:R}=ole();function T(){S.value!==document.activeElement&&S.value?.focus(),l.value||u()}function I(Y){S.value?.click()}function x(Y){r("mousedown:control",Y)}function A(Y){S.value?.click(),r("click:control",Y)}function D(Y){Y.stopPropagation(),T(),At(()=>{o.value=[],Qp(e["onClick:clear"],Y)})}function B(Y){if(Y.length<Number(e.truncateLength))return Y;const X=Math.floor((Number(e.truncateLength)-1)/2);return`${Y.slice(0,X)}…${Y.slice(Y.length-X)}`}function V(Y){Y.preventDefault(),Y.stopImmediatePropagation(),P.value=!0}function $(Y){Y.preventDefault(),P.value=!1}async function N(Y){if(Y.preventDefault(),Y.stopImmediatePropagation(),P.value=!1,!S.value||!R(Y))return;const X=await k(Y);M(X)}function O(Y){if(!(!Y.target||Y.repack))if(e.filterByType)M([...Y.target.files]);else{const X=Y.target;o.value=[...X.files??[]]}}function M(Y){const X=new DataTransfer,{accepted:ie,rejected:Z}=s(Y);Z.length&&r("rejected",Z);for(const le of ie)X.items.add(le);S.value.files=X.files,o.value=[...X.files];const G=new Event("change",{bubbles:!0});G.repack=!0,S.value.dispatchEvent(G)}return Oe(o,Y=>{(!Array.isArray(Y)||!Y.length)&&S.value&&(S.value.value="")}),Fe(()=>{const Y=!!(i.counter||e.counter),X=!!(Y||i.details),[ie,Z]=ol(n),{modelValue:G,...le}=qi.filterProps(e),ee={...Yc.filterProps(e),"onClick:clear":D},ue=n.webkitdirectory!==void 0&&n.webkitdirectory!==!1,W=n.accept?String(n.accept):void 0,ne=ue?void 0:e.filterByType??W;return f(qi,ve({ref:y,modelValue:e.multiple?o.value:o.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":P.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":C.value},e.class],style:e.style,"onClick:prepend":I},ie,le,{centerAffix:!C.value,focused:l.value}),{...i,default:J=>{let{id:ke,isDisabled:We,isDirty:Ve,isReadonly:H,isValid:q,hasDetails:ce}=J;return f(Yc,ve({ref:b,prependIcon:e.prependIcon,onMousedown:x,onClick:A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},ee,{id:ke.value,active:w.value||Ve.value,dirty:Ve.value||e.dirty,disabled:We.value,focused:l.value,details:ce.value,error:q.value===!1,onDragover:V,onDrop:N}),{...i,default:oe=>{let{props:{class:ge,...xe},controlRef:Ie}=oe;return E(Ne,null,[E("input",ve({ref:Ee=>S.value=Ie.value=Ee,type:"file",accept:ne,readonly:H.value,disabled:We.value,multiple:e.multiple,name:e.name,onClick:Ee=>{Ee.stopPropagation(),H.value&&Ee.preventDefault(),T()},onChange:O,onDragleave:$,onFocus:T,onBlur:c},xe,Z),null),E("div",{class:Te(ge)},[!!o.value?.length&&!e.hideInput&&(i.selection?i.selection({fileNames:g.value,totalBytes:p.value,totalBytesReadable:h.value}):e.chips?g.value.map(Ee=>f(Ke,{key:Ee,size:"small",text:Ee},null)):g.value.join(", "))])])}})},details:X?J=>E(Ne,null,[i.details?.(J),Y&&E(Ne,null,[E("span",null,null),f(kx,{active:!!o.value?.length,value:v.value,disabled:e.disabled},i.counter)])]):void 0})}),Ci({},y,b,S)}}),fle=be({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...LM(),...cl(),...ty()},"VTextarea"),T$=De()({name:"VTextarea",directives:{vIntersect:Uc},inheritAttrs:!1,props:fle(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const a=gt(e,"modelValue"),{isFocused:s,focus:o,blur:l}=Nu(e),{onIntersect:u}=FM(e),c=L(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value||"").toString().length),d=L(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),p=z(),h=z(),g=Le(""),v=z(),y=z(0),{platform:b}=ta(),S=Tx(e),w=L(()=>e.persistentPlaceholder||s.value||e.active);function C(){S.isSuppressing.value&&S.update(),v.value!==document.activeElement&&v.value?.focus(),s.value||o()}function P(V){C(),r("click:control",V)}function k(V){r("mousedown:control",V)}function R(V){V.stopPropagation(),C(),At(()=>{a.value="",Qp(e["onClick:clear"],V)})}function T(V){const $=V.target;if(!e.modelModifiers?.trim){a.value=$.value;return}const N=$.value,O=$.selectionStart,M=$.selectionEnd;a.value=N,At(()=>{let Y=0;N.trimStart().length===$.value.length&&(Y=N.length-$.value.length),O!=null&&($.selectionStart=O-Y),M!=null&&($.selectionEnd=M-Y)})}const I=z(),x=z(Number(e.rows)),A=L(()=>["plain","underlined"].includes(e.variant));ar(()=>{e.autoGrow||(x.value=Number(e.rows))});function D(){At(()=>{if(!v.value)return;if(b.value.firefox){y.value=12;return}const{offsetWidth:V,clientWidth:$}=v.value;y.value=Math.max(0,V-$)}),e.autoGrow&&At(()=>{if(!I.value||!h.value)return;const V=getComputedStyle(I.value),$=getComputedStyle(h.value.$el),N=parseFloat(V.getPropertyValue("--v-field-padding-top"))+parseFloat(V.getPropertyValue("--v-input-padding-top"))+parseFloat(V.getPropertyValue("--v-field-padding-bottom")),O=I.value.scrollHeight,M=parseFloat(V.lineHeight),Y=Math.max(parseFloat(e.rows)*M+N,parseFloat($.getPropertyValue("--v-input-control-height"))),X=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*M+N||1/0,ie=On(O??0,Y,X);x.value=Math.floor((ie-N)/M),g.value=Me(ie)})}Nt(D),Oe(a,D),Oe(()=>e.rows,D),Oe(()=>e.maxHeight,D),Oe(()=>e.maxRows,D),Oe(()=>e.density,D),Oe(x,V=>{r("update:rows",V)});let B;return Oe(I,V=>{V?(B=new ResizeObserver(D),B.observe(I.value)):B?.disconnect()}),wr(()=>{B?.disconnect()}),Fe(()=>{const V=!!(i.counter||e.counter||e.counterValue),$=!!(V||i.details),[N,O]=ol(n),{modelValue:M,...Y}=qi.filterProps(e),X={...Yc.filterProps(e),"onClick:clear":R};return f(qi,ve({ref:p,modelValue:a.value,"onUpdate:modelValue":ie=>a.value=ie,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":A.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?Me(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":Me(y.value)},e.style]},N,Y,{centerAffix:x.value===1&&!A.value,focused:s.value}),{...i,default:ie=>{let{id:Z,isDisabled:G,isDirty:le,isReadonly:ee,isValid:ue,hasDetails:W}=ie;return f(Yc,ve({ref:h,style:{"--v-textarea-control-height":g.value},onClick:P,onMousedown:k,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},X,{id:Z.value,active:w.value||le.value,labelId:`${Z.value}-label`,centerAffix:x.value===1&&!A.value,dirty:le.value||e.dirty,disabled:G.value,focused:s.value,details:W.value,error:ue.value===!1}),{...i,default:ne=>{let{props:{class:J,...ke},controlRef:We}=ne;return E(Ne,null,[e.prefix&&E("span",{class:"v-text-field__prefix"},[e.prefix]),un(E("textarea",ve({ref:Ve=>v.value=We.value=Ve,class:J,value:a.value,onInput:T,autofocus:e.autofocus,readonly:ee.value,disabled:G.value,placeholder:e.placeholder,rows:e.rows,name:S.fieldName.value,autocomplete:S.fieldAutocomplete.value,onFocus:C,onBlur:l,"aria-labelledby":`${Z.value}-label`},ke,O),null),[[Uc,{handler:u},null,{once:!0}]]),e.autoGrow&&un(E("textarea",{class:Te([J,"v-textarea__sizer"]),id:`${ke.id}-sizer`,"onUpdate:modelValue":Ve=>a.value=Ve,ref:I,readonly:!0,"aria-hidden":"true"},null),[[jf,a.value]]),e.suffix&&E("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:$?ie=>E(Ne,null,[i.details?.(ie),V&&E(Ne,null,[E("span",null,null),f(kx,{active:e.persistentCounter||s.value,value:c.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),Ci({},p,h,v)}}),ple={class:"font-weight-bold"},mle={key:0,class:"text-caption mt-2"},hle=Be({__name:"YamlImportExportDialog",setup(e){const t=sy(),n=qt(Kt.YamlImportExport),r=en(),i=z(""),a=z(""),s=z(0),o=z(!0),l=z(!0),u=z(!0),c=z(!0),d=z(!0),p=z(!0),h=z(void 0),g=z(""),v=z(!1),y=z(null),b=L(()=>!!h.value),S=L(()=>s.value===0),w=async x=>{x?(i.value="",a.value="",y.value=null,await k()):(y.value=null,i.value="No file selected",a.value="Please select a yaml file to import")},C=async()=>{await t.loadFeatures()},P=async()=>{h.value=void 0,i.value="",a.value="",g.value="",y.value=null,v.value=!1},k=async()=>{if(h.value){v.value=!0;try{const x=await h.value.text(),A=KS(x);if(!A||typeof A!="object"){i.value="Failed to parse yaml file structure",a.value="yaml load failed",y.value=null;return}y.value={version:A.version||"Unknown",databaseType:A.databaseType||"Unknown",exportedAt:A.exportedAt?new Date(A.exportedAt).toLocaleString():"Unknown",printersCount:A.printers?.length||0,floorsCount:A.floors?.length||0,groupsCount:A.groups?.length||0,hasSettings:!!A.settings,usersCount:A.users?.length||0}}catch(x){i.value="Failed to validate import file",a.value=x.message,y.value=null}finally{v.value=!1}}},R=async()=>{l.value&&(c.value=!0),await Bg.downloadYamlExport({exportPrinters:c.value,exportTags:u.value,exportFloorGrid:l.value,exportSettings:d.value,exportUsers:p.value,printerComparisonStrategiesByPriority:["name","url"],exportFloors:o.value,floorComparisonStrategiesByPriority:"floor",notes:g.value}),r.openInfoMessage({title:"Downloaded the YAML file"}),g.value=""},T=async()=>{if(i.value="",a.value="",!h.value){i.value="The import file was not specified";return}try{const x=await h.value.text(),A=KS(x);A.settings&&delete A.settings,A.users&&delete A.users,A.roles&&delete A.roles,A.user_roles&&delete A.user_roles;const D=nle(A),B=new File([D],h.value.name,{type:"application/x-yaml"});await Bg.uploadAndImportYaml(B),h.value=void 0,r.openInfoMessage({title:"Imported the YAML file (settings and users excluded)"}),I()}catch(x){i.value="An error occurred during import",a.value=x.message.toString(),h.value=void 0}},I=()=>{h.value=void 0,i.value="",a.value="",g.value="",y.value=null,v.value=!1,n.closeDialog()};return(x,A)=>(F(),Q(na,{id:re(n).dialogId,"max-width":"600px",onEscape:A[13]||(A[13]=D=>I()),onOpened:P,onBeforeOpened:C},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...A[14]||(A[14]=[_("code",-1)])]),_:1}),A[15]||(A[15]=_(" YAML Import/Export ",-1))]),_:1}),f(iM,{modelValue:s.value,"onUpdate:modelValue":A[0]||(A[0]=D=>s.value=D)},{default:m(()=>[f(Rl,{value:0},{default:m(()=>[f(j,{start:""},{default:m(()=>[...A[16]||(A[16]=[_("upload",-1)])]),_:1}),A[17]||(A[17]=_(" Import ",-1))]),_:1}),f(Rl,{value:1},{default:m(()=>[f(j,{start:""},{default:m(()=>[...A[18]||(A[18]=[_("download",-1)])]),_:1}),A[19]||(A[19]=_(" Export ",-1))]),_:1})]),_:1},8,["modelValue"]),f(Ye,{class:"pt-4"},{default:m(()=>[f(Gc,{modelValue:s.value,"onUpdate:modelValue":A[11]||(A[11]=D=>s.value=D)},{default:m(()=>[f(ma,{value:0},{default:m(()=>[f(Bx,{modelValue:h.value,"onUpdate:modelValue":[A[1]||(A[1]=D=>h.value=D),w],accept:".yaml,.yml",label:"Select YAML file","prepend-icon":"attach_file",variant:"outlined",hint:"Upload a YAML file to import printers, floors, and tags (groups)","persistent-hint":""},null,8,["modelValue"]),v.value?(F(),Q(ni,{key:0,indeterminate:"",color:"secondary",class:"mt-4"})):ae("",!0),i.value?(F(),Q(kt,{key:1,type:"error",class:"mt-4",closable:""},{default:m(()=>[E("div",ple,U(i.value),1),a.value?(F(),fe("div",mle,U(a.value),1)):ae("",!0)]),_:1})):ae("",!0),y.value?(F(),Q(E$,{key:2,summary:y.value,"exclude-settings-and-users":!0,class:"mt-4"},null,8,["summary"])):ae("",!0),S.value&&y.value?(F(),Q(te,{key:3,disabled:!b.value,block:"",color:"primary",size:"large",class:"mt-4",onClick:A[2]||(A[2]=D=>T())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...A[20]||(A[20]=[_("upload",-1)])]),_:1}),A[21]||(A[21]=_(" Import YAML Data ",-1))]),_:1},8,["disabled"])):ae("",!0)]),_:1}),f(ma,{value:1},{default:m(()=>[f(Wc,{variant:"accordion"},{default:m(()=>[f(Hc,null,{default:m(()=>[f(zc,null,{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...A[22]||(A[22]=[_("tune",-1)])]),_:1}),A[23]||(A[23]=_(" Advanced Options ",-1))]),_:1}),f(jc,null,{default:m(()=>[A[24]||(A[24]=E("div",{class:"text-caption mb-2 text-medium-emphasis"}," Select which data to include in the export: ",-1)),f(Bn,{modelValue:c.value,"onUpdate:modelValue":A[3]||(A[3]=D=>c.value=D),label:"Printers","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Bn,{modelValue:o.value,"onUpdate:modelValue":A[4]||(A[4]=D=>o.value=D),label:"Floors","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Bn,{modelValue:l.value,"onUpdate:modelValue":A[5]||(A[5]=D=>l.value=D),label:"Grid Positions",hint:"Automatically includes printers","persistent-hint":"",density:"comfortable",class:"mb-2"},null,8,["modelValue"]),f(Bn,{modelValue:u.value,"onUpdate:modelValue":A[6]||(A[6]=D=>u.value=D),label:"Tags","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Bn,{modelValue:d.value,"onUpdate:modelValue":A[7]||(A[7]=D=>d.value=D),label:"Settings","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Bn,{modelValue:p.value,"onUpdate:modelValue":A[8]||(A[8]=D=>p.value=D),label:"Users","hide-details":"",density:"comfortable"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(mt,{class:"my-4"}),f(T$,{modelValue:g.value,"onUpdate:modelValue":A[9]||(A[9]=D=>g.value=D),label:"Notes (optional)",placeholder:"Add notes for yourself...",variant:"outlined",rows:"2","auto-grow":""},null,8,["modelValue"]),f(te,{block:"",color:"primary",size:"large",class:"mt-2",onClick:A[10]||(A[10]=D=>R())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...A[25]||(A[25]=[_("download",-1)])]),_:1}),A[26]||(A[26]=_(" Download YAML File ",-1))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:A[12]||(A[12]=D=>I())},{default:m(()=>[...A[27]||(A[27]=[_(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"]))}}),gle="/assets/octofarm-printer-export-Dw0Zh14I.gif",vle={class:"d-flex align-center mb-2"},yle={class:"d-flex align-center mb-2"},ble={class:"d-flex align-center mb-2"},Sle={class:"d-flex align-center mb-2"},wle={class:"my-3"},Ele={key:0},xle={key:1},Cle={class:"d-flex align-center"},kle={class:"d-flex align-center"},_le={class:"flex-grow-1"},Tle={class:"font-weight-bold mb-1"},Ile={key:0},Ple={key:0},Rle={key:1},Ale={class:"d-flex align-center"},Ole={class:"d-flex align-center"},Nle={class:"flex-grow-1"},Dle={class:"font-weight-bold mb-1"},Lle={key:0},Fle={key:0},Mle={key:1},$le={class:"d-flex justify-space-between align-center mb-3"},Vle={class:"d-flex flex-column"},Ble={class:"text-caption"},Ule={class:"text-caption"},jle={class:"ml-4"},zle=Be({__name:"OctoFarmImportDialog",setup(e){const t=z(1),n=z(!1),r=z(!1),i=z(!1),a=z(""),s=z(""),o=z(null),l=z(0),u=z([]),c=z([]),d=z(!1),p=qt(Kt.ImportOctoFarmDialog);function h(){t.value=1,n.value=!1,a.value="",s.value="",r.value=!1,l.value=0,u.value=[],c.value=[],d.value=!1}async function g(){}const v=async()=>{if(n.value=!1,a.value="",s.value="",!o.value)return a.value="No file selected",s.value="Please select a PrintersDB.json file to import",[];try{const P=JSON.parse(await o.value.text());if(!P||typeof P!="object")return a.value="Invalid JSON file format",s.value="The file does not contain valid JSON data",[];const k=P.databases;if(!k)return a.value="Invalid OctoFarm export format",s.value='Missing "databases" property in the JSON file',[];if(!Array.isArray(k))return a.value="Invalid databases format",s.value='The "databases" property should be an array',[];if(!k?.length)return a.value="No printer data found",s.value="The databases array is empty",[];let R=k;if(k.length>0&&Array.isArray(k[0])){const D=k[0];Array.isArray(D)&&(R=D)}if(!Array.isArray(R)||!R.length)return a.value="No printers found in export",s.value="The export file does not contain any printer data",[];const T=R.map((D,B)=>(D._id&&delete D._id,D.apikey&&(D.apiKey=D.apikey,delete D.apikey),D.settingsApperance&&(D.settingsAppearance=D.settingsApperance,delete D.settingsApperance),D.settingsAppearance?.name?(D.name=D.settingsAppearance?.name,delete D.settingsAppearance):D.name=D.printerURL||`Printer ${B+1}`,{enabled:D.disabled===void 0||!D.disabled,apiKey:D.apiKey||"",printerURL:D.printerURL||"",name:D.name||D.printerURL||`Printer ${B+1}`,printerType:0,username:"",password:""}));let I=!1;const x=[],A=[];for(let D=0;D<T.length;D++){const B=T[D],V=[];if((!B.apiKey||B.apiKey.trim().length===0)&&V.push("missing or invalid API key"),(!B.printerURL||B.printerURL.trim().length===0)&&V.push("missing or invalid printer URL"),(!B.name||B.name.trim().length===0)&&V.push("missing or invalid printer name"),B.printerURL&&B.printerURL.trim().length>0)try{new URL(B.printerURL.startsWith("http")?B.printerURL:`http://${B.printerURL}`).hostname||V.push("invalid URL format")}catch{V.push("malformed URL")}if(V.length>0){const $=B.name||`Printer ${D+1}`;x.push(`${$}: ${V.join(", ")}`),I=!0}else A.push(B)}return I?(a.value=`${x.length} printer(s) failed validation`,s.value=x.join("; "),n.value=!1,A):(n.value=!0,T)}catch(P){return a.value="Failed to parse JSON file",s.value=`Parse error: ${P?.message||"Unknown error"}`,[]}},y=async()=>{if(!o.value){n.value=!1,a.value="",s.value="",l.value=0,u.value=[],c.value=[];return}try{const P=await v();if(l.value=P?.length||0,!P?.length){a.value||(a.value="No valid printers found",s.value="The import file contains no valid printer data");return}c.value=Array.from({length:P.length},(k,R)=>R),u.value=P,n.value?t.value=2:console.log("[OctoFarm] Validation failed but have valid printers, staying on step 1")}catch(P){a.value="Validation failed",s.value=`Error during validation: ${P?.message||"Unknown error"}`,n.value=!1,l.value=0}},b=P=>{const k=c.value.indexOf(P);k>-1?c.value.splice(k,1):c.value.push(P)},S=()=>{c.value.length?c.value=[]:c.value=Array.from({length:u.value.length},(k,R)=>R)},w=async()=>{const P=u.value.filter((k,R)=>c.value.includes(R));if(P?.length)try{await pn.batchImportPrinters(P),d.value=!0,C()}catch(k){d.value=!1,o.value=null,a.value="An error occurred",s.value=k.message.toString()}},C=()=>{o.value=null,p.closeDialog(),t.value=1};return(P,k)=>{const R=Cc("v-stepper-vertical-item"),T=Cc("v-stepper-vertical"),I=na;return F(),Q(I,{id:re(p).dialogId,"max-width":"700px",onBeforeOpened:k[11]||(k[11]=x=>h()),onEscape:k[12]||(k[12]=x=>C()),onOpened:k[13]||(k[13]=x=>g())},{default:m(()=>[f($e,{class:"pa-4"},{default:m(()=>[f(ot,null,{default:m(()=>[...k[14]||(k[14]=[E("span",{class:"text-h5"}," Import OctoFarm Printers ",-1)])]),_:1}),f(Ye,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:"12"},{default:m(()=>[f(T,{modelValue:t.value,"onUpdate:modelValue":k[9]||(k[9]=x=>t.value=x),color:"primary","non-linear":""},{default:m(({step:x})=>[f(R,{title:"Export PrintersDB from OctoFarm",elevation:"0",value:1,complete:x>1,editable:""},{default:m(()=>[E("ol",null,[E("li",vle,[f(j,{class:"mr-2"},{default:m(()=>[...k[15]||(k[15]=[_("mdi:mdi-navigation",-1)])]),_:1}),k[16]||(k[16]=E("span",null,"1. Go to your OctoFarm System page",-1))]),E("li",yle,[f(j,{class:"mr-2"},{default:m(()=>[...k[17]||(k[17]=[_("mdi:mdi-mouse",-1)])]),_:1}),k[18]||(k[18]=E("span",null,"2. Click 'Database'",-1))]),E("li",ble,[f(j,{class:"mr-2"},{default:m(()=>[...k[19]||(k[19]=[_("mdi:mdi-mouse",-1)])]),_:1}),k[20]||(k[20]=E("span",null,"3. Click the button 'Export Printers'",-1))]),E("li",Sle,[f(j,{class:"mr-2"},{default:m(()=>[...k[21]||(k[21]=[_("mdi:mdi-upload",-1)])]),_:1}),k[22]||(k[22]=E("span",null,"4. Upload 'PrintersDB.json' above",-1))])]),E("div",wle,[f(j,{class:"pr-2"},{default:m(()=>[...k[23]||(k[23]=[_("mdi:mdi-information",-1)])]),_:1}),k[25]||(k[25]=_(' OctoFarm printers should be exported as a JSON file. Please upload the correct "PrintersDB.json" database file using the steps provided. ',-1)),f(te,{size:"small",class:"ml-2",color:"success",onClick:k[0]||(k[0]=A=>i.value=!i.value)},{default:m(()=>[f(j,{class:"pr-2"},{default:m(()=>[...k[24]||(k[24]=[_("mdi:mdi-file-gif-box",-1)])]),_:1}),i.value?(F(),fe("span",xle,"Hide GIF")):(F(),fe("span",Ele,"Show GIF"))]),_:1})]),i.value?(F(),Q(ri,{key:0,class:"my-4",src:re(gle),style:{border:"3px solid dimgray","max-width":"800px"},elevation:"10"},null,8,["src"])):ae("",!0),f(mt,{class:"mt-10"}),f(Bx,{class:"mt-8",style:{"max-width":"400px"},modelValue:o.value,"onUpdate:modelValue":[k[1]||(k[1]=A=>o.value=A),k[2]||(k[2]=A=>y())],variant:"filled",accept:".json",clearable:"",label:"Upload PrintersDB.json file"},null,8,["modelValue"]),o.value&&n.value?(F(),Q(kt,{key:1,class:"my-2",type:"success",variant:"tonal"},{default:m(()=>[E("div",Cle,[E("div",null,[k[26]||(k[26]=E("div",{class:"font-weight-bold"},"Validation successful",-1)),E("div",null,U(l.value)+" valid printer(s) found",1)])])]),_:1})):ae("",!0),o.value&&a.value?(F(),Q(kt,{key:2,class:"my-2",type:"error",variant:"tonal"},{default:m(()=>[E("div",kle,[f(j,{class:"mr-2"},{default:m(()=>[...k[27]||(k[27]=[_("mdi:mdi-alert-circle",-1)])]),_:1}),E("div",_le,[E("div",Tle,U(a.value),1),s.value?(F(),fe("div",Ile,[!r.value&&s.value.length>150?(F(),fe("div",Ple,[_(U(s.value.slice(0,150))+"... ",1),f(te,{size:"x-small",color:"error",variant:"text",class:"ml-1",onClick:k[3]||(k[3]=A=>r.value=!0)},{default:m(()=>[...k[28]||(k[28]=[_(" Show Details ",-1)])]),_:1})])):(F(),fe("div",Rle,[_(U(s.value)+" ",1),r.value&&s.value.length>150?(F(),Q(te,{key:0,size:"x-small",color:"error",variant:"text",class:"ml-1",onClick:k[4]||(k[4]=A=>r.value=!1)},{default:m(()=>[...k[29]||(k[29]=[_(" Hide Details ",-1)])]),_:1})):ae("",!0)]))])):ae("",!0)])]),!n.value&&u.value.length>0?(F(),Q(te,{key:0,size:"small",color:"warning",variant:"outlined",class:"mt-2",onClick:k[5]||(k[5]=A=>t.value=2)},{default:m(()=>[f(j,{class:"mr-1"},{default:m(()=>[...k[30]||(k[30]=[_("mdi:mdi-alert",-1)])]),_:1}),_(" Continue with "+U(u.value.length)+" valid printer(s) ",1)]),_:1})):ae("",!0)]),_:1})):ae("",!0)]),_:1},8,["complete"]),f(R,{title:"Show printers & verify",elevation:"0",value:2,complete:x>2,editable:"","onClick:next":w},{next:m(({next:A})=>[f(te,{color:"primary",onClick:A,disabled:!c.value?.length},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...k[43]||(k[43]=[_("mdi:mdi-upload",-1)])]),_:1}),_(" Submit "+U(c.value?.length)+" printer"+U(c.value?.length!==1?"s":""),1)]),_:1},8,["onClick","disabled"])]),default:m(()=>[f(kt,{type:n.value?"success":"warning",variant:"tonal",class:"mb-4"},{default:m(()=>[E("div",Ale,[E("div",null,[k[31]||(k[31]=E("strong",null,"Import state: ",-1)),E("span",null,U(n.value?"success":"failed")+", "+U(l.value)+" printer(s) found ",1)])])]),_:1},8,["type"]),a.value?(F(),Q(kt,{key:0,class:"mb-4",type:"error",variant:"tonal"},{default:m(()=>[E("div",Ole,[f(j,{class:"mr-2"},{default:m(()=>[...k[32]||(k[32]=[_("mdi:mdi-alert-circle",-1)])]),_:1}),E("div",Nle,[E("div",Dle,U(a.value),1),s.value?(F(),fe("div",Lle,[!r.value&&s.value.length>150?(F(),fe("div",Fle,[_(U(s.value.slice(0,150))+"... ",1),f(te,{size:"x-small",color:"error",variant:"text",class:"ml-1","data-testid":"show-details-btn",onClick:k[6]||(k[6]=A=>r.value=!0)},{default:m(()=>[...k[33]||(k[33]=[_(" Show Details ",-1)])]),_:1})])):(F(),fe("div",Mle,[_(U(s.value)+" ",1),r.value&&s.value.length>150?(F(),Q(te,{key:0,size:"x-small",color:"error",variant:"text",class:"ml-1","data-testid":"hide-details-btn",onClick:k[7]||(k[7]=A=>r.value=!1)},{default:m(()=>[...k[34]||(k[34]=[_(" Hide Details ",-1)])]),_:1})):ae("",!0)]))])):ae("",!0)])]),!n.value&&u.value.length>0?(F(),Q(te,{key:0,size:"small",color:"warning",variant:"outlined",class:"mt-2","data-testid":"continue-with-valid-btn",onClick:k[8]||(k[8]=A=>t.value=2)},{default:m(()=>[f(j,{class:"mr-1"},{default:m(()=>[...k[35]||(k[35]=[_("mdi:mdi-alert",-1)])]),_:1}),_(" Continue with "+U(u.value.length)+" valid printer(s) ",1)]),_:1})):ae("",!0)]),_:1})):ae("",!0),E("div",$le,[k[38]||(k[38]=E("h4",{class:"text-subtitle-1 font-weight-medium"},"Found printers",-1)),f(te,{onClick:S,size:"small",variant:"outlined"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...k[36]||(k[36]=[_("mdi:mdi-check-all",-1)])]),_:1}),k[37]||(k[37]=_(" Toggle selection ",-1))]),_:1})]),f($e,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(Mr,{lines:"three",density:"compact"},{default:m(()=>[(F(!0),fe(Ne,null,Zt(u.value,(A,D)=>(F(),Q(wt,{key:A.name,onClick:B=>b(D)},{prepend:m(()=>[f(go,{"model-value":c.value.includes(D)},null,8,["model-value"])]),default:m(()=>[f(Gt,{class:"font-weight-medium mb-1"},{default:m(()=>[_(U(A.name),1)]),_:2},1024),f(Ou,null,{default:m(()=>[E("div",Vle,[E("span",Ble,[k[39]||(k[39]=E("strong",null,"URL:",-1)),_(" "+U(A.printerURL),1)]),E("span",Ule,[k[41]||(k[41]=E("strong",null,"Enabled:",-1)),_(" "+U(A.enabled)+" ",1),E("span",jle,[k[40]||(k[40]=E("strong",null,"API Key:",-1)),_(" "+U(A.apiKey.slice(0,20))+"...",1)])])])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1}),f(kt,{type:"info",variant:"tonal",density:"compact",class:"mb-4"},{default:m(()=>[...k[42]||(k[42]=[E("div",{class:"text-caption"},[E("strong",null,"Properties to import:"),_(" enabled, name, printerURL, apiKey ")],-1)])]),_:1})]),_:1},8,["complete"])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{onClick:k[10]||(k[10]=x=>C())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...k[44]||(k[44]=[_("mdi:mdi-close",-1)])]),_:1}),k[45]||(k[45]=_(" Close ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}}),Hle=be({id:String,submenu:Boolean,...Nn(nm({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:ox}}),["absolute"])},"VMenu"),ls=De()({name:"VMenu",props:Hle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),{scopeId:i}=Au(),{isRtl:a}=Tr(),s=Si(),o=se(()=>e.id||`v-menu-${s}`),l=z(),u=ft(SS,null),c=Le(new Set);Sn(SS,{register(){c.value.add(s)},unregister(){c.value.delete(s)},closeParents(v){setTimeout(()=>{!c.value.size&&!e.persistent&&(v==null||l.value?.contentEl&&!_J(v,l.value.contentEl))&&(r.value=!1,u?.closeParents())},40)}}),wr(()=>u?.unregister()),gv(()=>r.value=!1),Oe(r,v=>{v?u?.register():u?.unregister()},{immediate:!0});function d(v){u?.closeParents(v)}function p(v){if(!e.disabled)if(v.key==="Tab"||v.key==="Enter"&&!e.closeOnContentClick){if(v.key==="Enter"&&(v.target instanceof HTMLTextAreaElement||v.target instanceof HTMLInputElement&&v.target.closest("form")))return;v.key==="Enter"&&v.preventDefault(),!jL(Yl(l.value?.contentEl,!1),v.shiftKey?"prev":"next",b=>b.tabIndex>=0)&&!e.retainFocus&&(r.value=!1,l.value?.activatorEl?.focus())}else e.submenu&&v.key===(a.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,l.value?.activatorEl?.focus())}function h(v){if(e.disabled)return;const y=l.value?.contentEl;y&&r.value?v.key==="ArrowDown"?(v.preventDefault(),v.stopImmediatePropagation(),Ef(y,"next")):v.key==="ArrowUp"?(v.preventDefault(),v.stopImmediatePropagation(),Ef(y,"prev")):e.submenu&&(v.key===(a.value?"ArrowRight":"ArrowLeft")?r.value=!1:v.key===(a.value?"ArrowLeft":"ArrowRight")&&(v.preventDefault(),Ef(y,"first"))):(e.submenu?v.key===(a.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(v.key))&&(r.value=!0,v.preventDefault(),setTimeout(()=>setTimeout(()=>h(v))))}const g=L(()=>ve({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-controls":o.value,"aria-owns":o.value,onKeydown:h},e.activatorProps));return Fe(()=>{const v=mo.filterProps(e);return f(mo,ve({ref:l,id:o.value,class:["v-menu",e.class],style:e.style},v,{modelValue:r.value,"onUpdate:modelValue":y=>r.value=y,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":d,onKeydown:p},i),{activator:n.activator,default:function(){for(var y=arguments.length,b=new Array(y),S=0;S<y;S++)b[S]=arguments[S];return f(sn,{root:"VMenu"},{default:()=>[n.default?.(...b)]})}})}),Ci({id:o,ΨopenChildren:c},l)}}),Wle=be({renderless:Boolean,...Qe()},"VVirtualScrollItem"),Gle=De()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Wle(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{resizeRef:a,contentRect:s}=po(void 0,"border");Oe(()=>s.value?.height,o=>{o!=null&&r("update:height",o)}),Fe(()=>e.renderless?E(Ne,null,[i.default?.({itemRef:a})]):E("div",ve({ref:a,class:["v-virtual-scroll__item",e.class],style:e.style},n),[i.default?.()]))}}),qle=-1,Kle=1,Ub=100,Yle=be({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function Xle(e,t){const n=ta(),r=Le(0);ar(()=>{r.value=parseFloat(e.itemHeight||0)});const i=Le(0),a=Le(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),s=Le(0),o=Le(0),l=z(),u=z();let c=0;const{resizeRef:d,contentRect:p}=po();ar(()=>{d.value=l.value});const h=L(()=>l.value===document.documentElement?n.height.value:p.value?.height||parseInt(e.height)||0),g=L(()=>!!(l.value&&u.value&&h.value&&r.value));let v=Array.from({length:t.value.length}),y=Array.from({length:t.value.length});const b=Le(0);let S=-1;function w(X){return v[X]||r.value}const C=wJ(()=>{const X=performance.now();y[0]=0;const ie=t.value.length;for(let Z=1;Z<=ie;Z++)y[Z]=(y[Z-1]||0)+w(Z-1);b.value=Math.max(b.value,performance.now()-X)},b),P=Oe(g,X=>{X&&(P(),c=u.value.offsetTop,C.immediate(),N(),~S&&At(()=>{cn&&window.requestAnimationFrame(()=>{M(S),S=-1})}))});Rn(()=>{C.clear()});function k(X,ie){const Z=v[X],G=r.value;r.value=G?Math.min(r.value,ie):ie,(Z!==ie||G!==r.value)&&(v[X]=ie,C())}function R(X){X=On(X,0,t.value.length);const ie=Math.floor(X),Z=X%1,G=ie+1,le=y[ie]||0,ee=y[G]||le;return le+(ee-le)*Z}function T(X){return Jle(y,X)}let I=0,x=0,A=0;Oe(h,(X,ie)=>{N(),X<ie&&requestAnimationFrame(()=>{x=0,N()})});let D=-1;function B(){if(!l.value||!u.value)return;const X=l.value.scrollTop,ie=performance.now();ie-A>500?(x=Math.sign(X-I),c=u.value.offsetTop):x=X-I,I=X,A=ie,window.clearTimeout(D),D=window.setTimeout(V,500),N()}function V(){!l.value||!u.value||(x=0,A=0,window.clearTimeout(D),N())}let $=-1;function N(){cancelAnimationFrame($),$=requestAnimationFrame(O)}function O(){if(!l.value||!h.value||!r.value)return;const X=I-c,ie=Math.sign(x),Z=Math.max(0,X-Ub),G=On(T(Z),0,t.value.length),le=X+h.value+Ub,ee=On(T(le)+1,G+1,t.value.length);if((ie!==qle||G<i.value)&&(ie!==Kle||ee>a.value)){const ue=R(i.value)-R(G),W=R(ee)-R(a.value);Math.max(ue,W)>Ub?(i.value=G,a.value=ee):(G<=0&&(i.value=G),ee>=t.value.length&&(a.value=ee))}s.value=R(i.value),o.value=R(t.value.length)-R(a.value)}function M(X){const ie=R(X);!l.value||X&&!ie?S=X:l.value.scrollTop=ie}const Y=L(()=>t.value.slice(i.value,a.value).map((X,ie)=>{const Z=ie+i.value;return{raw:X,index:Z,key:Jn(X,e.itemKey,Z)}}));return Oe(t,()=>{v=Array.from({length:t.value.length}),y=Array.from({length:t.value.length}),C.immediate(),N()},{deep:1}),{calculateVisibleItems:N,containerRef:l,markerRef:u,computedItems:Y,paddingTop:s,paddingBottom:o,scrollToIndex:M,handleScroll:B,handleScrollend:V,handleItemResize:k}}function Jle(e,t){let n=e.length-1,r=0,i=0,a=null,s=-1;if(e[n]<t)return n;for(;r<=n;)if(i=r+n>>1,a=e[i],a>t)n=i-1;else if(a<t)s=i,r=i+1;else return a===t?i:r;return s}const Qle=be({items:{type:Array,default:()=>[]},renderless:Boolean,...Yle(),...Qe(),...Vr()},"VVirtualScroll"),I$=De()({name:"VVirtualScroll",props:Qle(),setup(e,t){let{slots:n}=t;const r=zn("VVirtualScroll"),{dimensionStyles:i}=Br(e),{calculateVisibleItems:a,containerRef:s,markerRef:o,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:p,paddingBottom:h,computedItems:g}=Xle(e,se(()=>e.items));return zi(()=>e.renderless,()=>{function v(){const b=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";s.value===document.documentElement?(document[b]("scroll",l,{passive:!0}),document[b]("scrollend",u)):(s.value?.[b]("scroll",l,{passive:!0}),s.value?.[b]("scrollend",u))}Nt(()=>{s.value=tx(r.vnode.el,!0),v(!0)}),Rn(v)}),Fe(()=>{const v=g.value.map(y=>f(Gle,{key:y.key,renderless:e.renderless,"onUpdate:height":b=>c(y.index,b)},{default:b=>n.default?.({item:y.raw,index:y.index,...b})}));return e.renderless?E(Ne,null,[E("div",{ref:o,class:"v-virtual-scroll__spacer",style:{paddingTop:Me(p.value)}},null),v,E("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Me(h.value)}},null)]):E("div",{ref:s,class:Te(["v-virtual-scroll",e.class]),onScrollPassive:l,onScrollend:u,style:je([i.value,e.style])},[E("div",{ref:o,class:"v-virtual-scroll__container",style:{paddingTop:Me(p.value),paddingBottom:Me(h.value)}},[v])])}),{calculateVisibleItems:a,scrollToIndex:d}}});function P$(e,t){const n=Le(!1);let r;function i(o){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function a(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(n.value){const l=Oe(n,()=>{l(),o()})}else o()})}async function s(o){if(o.key==="Tab"&&t.value?.focus(),!["PageDown","PageUp","Home","End"].includes(o.key))return;const l=e.value?.$el;if(!l)return;(o.key==="Home"||o.key==="End")&&l.scrollTo({top:o.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await a();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const c=l.getBoundingClientRect().top;for(const d of u)if(d.getBoundingClientRect().top>=c){d.focus();break}}else{const c=l.getBoundingClientRect().bottom;for(const d of[...u].reverse())if(d.getBoundingClientRect().bottom<=c){d.focus();break}}}return{onScrollPassive:i,onKeydown:s}}const Zle=be({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function R$(e,t){const n=Si(),r=L(()=>`menu-${n}`),i=se(()=>bn(t)),a=se(()=>r.value);return{menuId:r,ariaExpanded:i,ariaControls:a}}const A$=be({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:et,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...Zle(),...gM({itemChildren:!1})},"Select"),eue=be({...A$(),...Nn(Ix({modelValue:null,role:"combobox"}),["validationValue","dirty"]),...Cd({transition:{component:ox}})},"VSelect"),mi=De()({name:"VSelect",props:eue(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=Ur(),i=z(),a=z(),s=z(),{items:o,transformIn:l,transformOut:u}=yM(e),c=gt(e,"modelValue",[],ee=>l(ee===null?[null]:rr(ee)),ee=>{const ue=u(ee);return e.multiple?ue:ue[0]??null}),d=L(()=>typeof e.counterValue=="function"?e.counterValue(c.value):typeof e.counterValue=="number"?e.counterValue:c.value.length),p=ny(e),h=Tx(e),g=L(()=>c.value.map(ee=>ee.value)),v=Le(!1),y=se(()=>e.closableChips&&!p.isReadonly.value&&!p.isDisabled.value),{InputIcon:b}=ey(e);let S="",w=0,C;const P=L(()=>e.hideSelected?o.value.filter(ee=>!c.value.some(ue=>(e.valueComparator||ti)(ue,ee))):o.value),k=L(()=>e.hideNoData&&!P.value.length||p.isReadonly.value||p.isDisabled.value),R=gt(e,"menu"),T=L({get:()=>R.value,set:ee=>{R.value&&!ee&&a.value?.ΨopenChildren.size||ee&&k.value||(R.value=ee)}}),{menuId:I,ariaExpanded:x,ariaControls:A}=R$(e,T),D=L(()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),B=z(),V=P$(B,i);function $(ee){e.openOnClear&&(T.value=!0)}function N(){k.value||(T.value=!T.value)}function O(ee){Eg(ee)&&M(ee)}function M(ee){if(!ee.key||p.isReadonly.value)return;if(["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(ee.key)&&ee.preventDefault(),["Enter","ArrowDown"," "].includes(ee.key)&&(T.value=!0),["Escape","Tab"].includes(ee.key)&&(T.value=!1),e.clearable&&ee.key==="Backspace"){ee.preventDefault(),c.value=[],$();return}ee.key==="Home"?B.value?.focus("first"):ee.key==="End"&&B.value?.focus("last");const ue=1e3;if(!Eg(ee))return;const W=performance.now();W-C>ue&&(S="",w=0),S+=ee.key.toLowerCase(),C=W;const ne=P.value;function J(){let q=ke();return q||S.at(-1)===S.at(-2)&&(S=S.slice(0,-1),w++,q=ke(),q)||(w=0,q=ke(),q)?q:(S=ee.key.toLowerCase(),ke())}function ke(){for(let q=w;q<ne.length;q++){const ce=ne[q];if(ce.title.toLowerCase().startsWith(S))return[ce,q]}}const We=J();if(!We)return;const[Ve,H]=We;w=H,B.value?.focus(H),e.multiple||(c.value=[Ve])}function Y(ee){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!ee.props.disabled)if(e.multiple){const W=c.value.findIndex(J=>(e.valueComparator||ti)(J.value,ee.value)),ne=ue??!~W;if(~W){const J=ne?[...c.value,ee]:[...c.value];J.splice(W,1),c.value=J}else ne&&(c.value=[...c.value,ee])}else{const W=ue!==!1;c.value=W?[ee]:[],At(()=>{T.value=!1})}}function X(ee){B.value?.$el.contains(ee.relatedTarget)||(T.value=!1)}function ie(){e.eager&&s.value?.calculateVisibleItems()}function Z(){v.value&&i.value?.focus()}function G(ee){v.value=!0}function le(ee){if(ee==null)c.value=[];else if(Vc(i.value,":autofill")||Vc(i.value,":-webkit-autofill")){const ue=o.value.find(W=>W.title===ee);ue&&Y(ue)}else i.value&&(i.value.value="")}return Oe(T,()=>{if(!e.hideSelected&&T.value&&c.value.length){const ee=P.value.findIndex(ue=>c.value.some(W=>(e.valueComparator||ti)(W.value,ue.value)));cn&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{ee>=0&&s.value?.scrollToIndex(ee)})}}),Oe(o,(ee,ue)=>{T.value||v.value&&e.hideNoData&&!ue.length&&ee.length&&(T.value=!0)}),Fe(()=>{const ee=!!(e.chips||n.chip),ue=!!(!e.hideNoData||P.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),W=c.value.length>0,ne=Et.filterProps(e),J=W||!v.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return f(Et,ve({ref:i},ne,{modelValue:c.value.map(ke=>ke.props.title).join(", "),name:void 0,"onUpdate:modelValue":le,focused:v.value,"onUpdate:focused":ke=>v.value=ke,validationValue:c.externalValue,counterValue:d.value,dirty:W,class:["v-select",{"v-select--active-menu":T.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":c.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:J,"onClick:clear":$,"onMousedown:control":N,onBlur:X,onKeydown:M,"aria-expanded":x.value,"aria-controls":A.value}),{...n,default:ke=>{let{id:We}=ke;return E(Ne,null,[E("select",{hidden:!0,multiple:e.multiple,name:h.fieldName.value},[o.value.map(Ve=>E("option",{key:Ve.value,value:Ve.value,selected:g.value.includes(Ve.value)},null))]),f(ls,ve({id:I.value,ref:a,modelValue:T.value,"onUpdate:modelValue":Ve=>T.value=Ve,activator:"parent",contentClass:"v-select__content",disabled:k.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:ie,onAfterLeave:Z},D.value),{default:()=>[ue&&f(Mr,ve({ref:B,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Ve=>Ve.preventDefault(),onKeydown:O,onFocusin:G,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-labelledby":`${We.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},V,e.listProps),{default:()=>[n["prepend-item"]?.(),!P.value.length&&!e.hideNoData&&(n["no-data"]?.()??f(wt,{key:"no-data",title:r(e.noDataText)},null)),f(I$,{ref:s,renderless:!0,items:P.value,itemKey:"value"},{default:Ve=>{let{item:H,index:q,itemRef:ce}=Ve;const oe=TJ(H.props),ge=ve(H.props,{ref:ce,key:H.value,onClick:()=>Y(H,null),"aria-posinset":q+1,"aria-setsize":P.value.length});return H.type==="divider"?n.divider?.({props:H.raw,index:q})??f(mt,ve(H.props,{key:`divider-${q}`}),null):H.type==="subheader"?n.subheader?.({props:H.raw,index:q})??f(_d,ve(H.props,{key:`subheader-${q}`}),null):n.item?.({item:H,index:q,props:ge})??f(wt,ve(ge,{role:"option"}),{prepend:xe=>{let{isSelected:Ie}=xe;return E(Ne,null,[e.multiple&&!e.hideSelected?f(go,{key:H.value,modelValue:Ie,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:Ee=>Ee.preventDefault()},null):void 0,oe.prependAvatar&&f(jn,{image:oe.prependAvatar},null),oe.prependIcon&&f(j,{icon:oe.prependIcon},null)])}})}}),n["append-item"]?.()]})]}),c.value.map((Ve,H)=>{function q(xe){xe.stopPropagation(),xe.preventDefault(),Y(Ve,!1)}const ce=ve(Ke.filterProps(Ve.props),{"onClick:close":q,onKeydown(xe){xe.key!=="Enter"&&xe.key!==" "||(xe.preventDefault(),xe.stopPropagation(),q(xe))},onMousedown(xe){xe.preventDefault(),xe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),oe=ee?!!n.chip:!!n.selection,ge=oe?XE(ee?n.chip({item:Ve,index:H,props:ce}):n.selection({item:Ve,index:H})):void 0;if(!(oe&&!ge))return E("div",{key:Ve.value,class:"v-select__selection"},[ee?n.chip?f(sn,{key:"chip-defaults",defaults:{VChip:{closable:y.value,size:"small",text:Ve.title}}},{default:()=>[ge]}):f(Ke,ve({key:"chip",closable:y.value,size:"small",text:Ve.title,disabled:Ve.props.disabled},ce),null):ge??E("span",{class:"v-select__selection-text"},[Ve.title,e.multiple&&H<c.value.length-1&&E("span",{class:"v-select__selection-comma"},[_(",")])])])})])},"append-inner":function(){for(var ke=arguments.length,We=new Array(ke),Ve=0;Ve<ke;Ve++)We[Ve]=arguments[Ve];return E(Ne,null,[n["append-inner"]?.(...We),e.menuIcon?f(j,{class:"v-select__menu-icon",color:i.value?.fieldIconColor,icon:e.menuIcon,"aria-hidden":!0},null):void 0,e.appendInnerIcon&&f(b,{key:"append-icon",name:"appendInner",color:We[0].iconColor.value},null)])}})}),Ci({isFocused:v,menu:T,select:Y},i)}}),tue={class:"text-h5"},nue=Be({__name:"PrinterMaintenanceDialog",setup(e){const t=z([]),n=["Broken part","Blob","Maxtemp","Preheat error","Cable USB ","Bed thermal runaway","Thermistor Heatbed","Thermistor Heatblock","Thermal Runaway","Mintemp Nozzle","Mintemp Heatbed","Nozzle","Nozzle Clog","Fan Hotend","Fan Part cooling","Extruder rattle","Extruder","Z Axis","X Axis","Y Axis","Rented","Motherboard","Other","Clean"],r=z({}),i=wn(),a=qt(Kt.PrinterMaintenanceDialog),s=L(()=>i.maintenanceDialogPrinter),o=()=>{r.value.disabledReason=t.value.join(", ")},l=async()=>{const c=s.value?.id;if(!c){r.value={},u();return}const d=r.value.disabledReason;await pn.updatePrinterMaintenance(c,d),r.value={},u()},u=()=>{t.value=[],a.closeDialog(),i.setMaintenanceDialogPrinter()};return(c,d)=>{const p=na;return F(),Q(p,{id:re(a).dialogId,"max-width":"700px",onEscape:d[5]||(d[5]=h=>u())},{default:m(()=>[f($e,{class:"pa-4"},{default:m(()=>[f(ot,null,{default:m(()=>[E("span",tue," Mark '"+U(s.value?.name)+"' for maintenance ",1)]),_:1}),f(kt,{color:"secondary"},{default:m(()=>[...d[6]||(d[6]=[_(" Keep this info clear and stick to convention ",-1)])]),_:1}),f(Ye,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:"12"},{default:m(()=>[f(mi,{modelValue:t.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>t.value=h),d[1]||(d[1]=h=>o())],chips:!0,items:n,"menu-props":{closeOnBack:!0,closeOnContentClick:!0},clearable:"",color:"primary",multiple:"",placeholder:"Quick select reason"},null,8,["modelValue"]),f(T$,{modelValue:r.value.disabledReason,"onUpdate:modelValue":d[2]||(d[2]=h=>r.value.disabledReason=h),"data-vv-validate-on":"change|blur"},{label:m(()=>[...d[7]||(d[7]=[E("div",null,"Type the reason*",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(rn,null,{default:m(()=>[d[10]||(d[10]=E("em",{class:"text-red"}," * indicates required field ",-1)),f(Tt),f(te,{variant:"text",onClick:d[3]||(d[3]=h=>u())},{default:m(()=>[...d[8]||(d[8]=[_(" Close ",-1)])]),_:1}),f(te,{color:"blue-darken-1",variant:"text",onClick:d[4]||(d[4]=h=>l())},{default:m(()=>[...d[9]||(d[9]=[_(" Save ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}});class ys extends Ei{static async createUser(t){const n=Se.userRoute;return await this.post(n,t)}static async listUsers(){const t=Se.userRoute;return await this.get(t)}static async listRoles(){const t=Se.rolesRoute;return await this.get(t)}static async getProfile(){const t=Se.userProfileRoute;return await this.get(t)}static async changePassword(t,n,r){const i=Se.userChangePasswordRoute(t);return await this.post(i,{oldPassword:n,newPassword:r})}static async changeUsername(t,n){const r=Se.userChangeUsernameRoute(t);return await this.post(r,{username:n})}static async deleteUser(t){const n=Se.userDeleteRoute(t);return await this.delete(n)}static async setUserVerified(t,n){const r=Se.userSetVerifiedRoute(t);return await this.post(r,{isVerified:n})}static async setRootUser(t,n){const r=Se.userSetRootUserRoute(t);return await this.post(r,{isRootUser:n})}static async setUserRoles(t,n){const r=Se.userSetUserRolesRoute(t);return await this.post(r,{roles:n})}}const jb=!0,bc=Object.freeze({apiKeyLength:43,maxPrinterNameLength:25,minFloorNameLength:3,minUsernameLength:3}),rue={class:"text-h5"},iue={class:"pl-5"},sue=Be({__name:"CreateUserDialog",setup(e){const t=qt(Kt.CreateUserDialog),n=en(),r=z({username:"",password:"",roles:[]}),i=z(""),a=z([]);function s(){}async function o(){try{a.value=await ys.listRoles()}catch(h){n.openErrorMessage({title:"Failed to load roles",subtitle:h instanceof Error?h.message:"Unknown error"})}}const l=L(()=>r.value?.username?.length?Qv(r.value.username):"??"),u={required:h=>!!h||"Required field",minLength:h=>h.length>=bc.minUsernameLength||`Minimum ${bc.minUsernameLength} characters`,password:h=>h.length>=8?!0:"Password must be at least 8 characters",passwordMatch:h=>h===r.value.password||"Passwords must match"},c=()=>!r.value.username||r.value.username.length<bc.minUsernameLength?(n.openErrorMessage({title:"Invalid username"}),!1):!r.value.password||u.password(r.value.password)!==!0?(n.openErrorMessage({title:"Invalid password"}),!1):r.value.password!==i.value?(n.openErrorMessage({title:"Passwords do not match"}),!1):r.value.roles.length?!0:(n.openErrorMessage({title:"Please select a role"}),!1),d=async()=>{if(c())try{await ys.createUser(r.value),n.openInfoMessage({title:`User ${r.value.username} created successfully`}),p()}catch(h){n.openErrorMessage({title:"Failed to create user",subtitle:h instanceof Error?h.message:"Unknown error"})}},p=()=>{r.value={username:"",password:"",roles:[]},i.value="",t.closeDialog()};return(h,g)=>{const v=na;return F(),Q(v,{id:re(t).dialogId,"max-width":"700px",onBeforeOpened:g[4]||(g[4]=y=>void 0),onEscape:g[5]||(g[5]=y=>p()),onOpened:g[6]||(g[6]=y=>o())},{default:m(()=>[f($e,{class:"pa-4"},{default:m(()=>[f(ot,null,{default:m(()=>[E("span",rue,[f(jn,{color:"primary",size:"56"},{default:m(()=>[_(U(l.value),1)]),_:1}),E("span",iue,[g[9]||(g[9]=_("New verified User ",-1)),f(ln,{top:""},{activator:m(({props:y})=>[f(te,ve({class:"ma-2",fab:""},y,{"x-small":""}),{default:m(()=>[f(j,null,{default:m(()=>[...g[7]||(g[7]=[_("question_mark",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...g[8]||(g[8]=[_(" The user will be set to verified and assigned roles. Please share the username and password with them manually. ",-1)])]),_:1})])])]),_:1}),f(Ye,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:12},{default:m(()=>[f(Qi,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:"12",md:"6"},{default:m(()=>[f(Et,{modelValue:r.value.username,"onUpdate:modelValue":g[0]||(g[0]=y=>r.value.username=y),rules:[u.required,u.minLength],autofocus:"",label:"Username*","prepend-icon":"person",required:""},null,8,["modelValue","rules"]),f(Et,{modelValue:r.value.password,"onUpdate:modelValue":g[1]||(g[1]=y=>r.value.password=y),rules:[u.required,u.password],label:"Password*","prepend-icon":"lock",required:"",type:"password"},null,8,["modelValue","rules"]),f(Et,{modelValue:i.value,"onUpdate:modelValue":g[2]||(g[2]=y=>i.value=y),rules:[u.required,u.passwordMatch],label:"Confirm Password*","prepend-icon":"lock",required:"",type:"password"},null,8,["modelValue","rules"]),f(mi,{modelValue:r.value.roles,"onUpdate:modelValue":g[3]||(g[3]=y=>r.value.roles=y),items:a.value.map(y=>({text:y.name,value:y.name})),rules:[u.required],label:"Roles*",multiple:"","prepend-icon":"shield",required:""},null,8,["modelValue","items","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),f(rn,null,{default:m(()=>[g[12]||(g[12]=E("em",{class:"text-red"}," * indicates required field ",-1)),f(Tt),f(te,{variant:"text",onClick:p},{default:m(()=>[...g[10]||(g[10]=[_("Close",-1)])]),_:1}),f(te,{color:"blue-darken-1",variant:"text",onClick:d},{default:m(()=>[...g[11]||(g[11]=[_("Create",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}}),O$=()=>({id:void 0,name:kd(),order:"1",printers:[]});class Bs extends Ei{static convertPrinterFloorToCreateForm(t){const n=O$();return n.id=t?.id,n.name=t?.name||kd(),n.printers=[],n.order=(t?.order||1).toString(),n}static convertCreateFormToFloor(t){const n={...t};if(n.order=Number.parseInt(n.order),Number.isNaN(n.order))throw new TypeError("Floor order did not convert to number.");return n}static async getFloors(){const t=`${Se.floorRoute}/`;return await this.get(t)}static async createFloor(t){const n=`${Se.floorRoute}/`;return await this.post(n,t)}static async updateFloorName(t,n){const r=`${Se.updatePrinterFloorNameRoute(t)}/`;return await this.patch(r,{name:n})}static async updateFloorOrder(t,n){const r=`${Se.updatePrinterFloorOrderRoute(t)}/`;return await this.patch(r,{order:n})}static async deleteFloor(t){const n=`${Se.getFloorRoute(t)}/`;return await this.delete(n)}static async addPrinterToFloor(t,n){const r=`${Se.addOrRemovePrinterFromFloorRoute(t)}/`;return await this.post(r,n)}static async deletePrinterFromFloor(t,n){const r=`${Se.addOrRemovePrinterFromFloorRoute(t)}/`;return await this.delete(r,{printerId:n})}}const Is=Yi("Floors",{state:()=>({floors:[],selectedFloorIndex:0}),getters:{selectedFloor(e){return e.floors.length<=e.selectedFloorIndex?null:e.floors[e.selectedFloorIndex]},sortedFloors(e){return e.floors.sort((t,n)=>t.order-n.order)},floor(e){return t=>e.floors.find(n=>n.id===t)},floorNames(e){return e.floors.map(t=>t.name)},floorOfPrinter(){return e=>this.floors.find(t=>t.printers.map(n=>n.printerId).includes(e))},floorlessPrinters(e){return wn().printers.filter(n=>!e.floors.find(r=>r.printers.find(i=>i.printerId===n.id)))},gridSortedPrinters(){const e=ra(),t=e.gridCols,n=e.gridRows,i=wn().printers;if(!i.length)return[];if(!this.selectedFloor)return[];const a=this.selectedFloor.printers,s=[];for(let o=0;o<t;o++){const l=[];s.push(l);for(let u=0;u<n;u++){const c=a.find(d=>d.x===o&&d.y===u);if(!c)l.push(void 0);else{const d=i.find(p=>p.id===c.printerId);l.push(d)}}}return s}},actions:{async loadFloors(){const e=await Bs.getFloors();return this.saveFloors(e),e},async createFloor(e){const t=await Bs.createFloor(e);return this.floors.push(t),t},saveFloors(e){if(!e?.length)return;this.floors=e.sort((r,i)=>r.order-i.order);const t=this.selectedFloor?.id,n=this.floors.findIndex(r=>r.id===t);this.selectedFloorIndex=n===-1?0:n},async deleteFloor(e){await Bs.deleteFloor(e),this._popPrinterFloor(e)},async updateFloorName({floorId:e,name:t}){const n=await Bs.updateFloorName(e,t);return this._replaceFloor(n),n},async updateFloorOrder({floorId:e,order:t}){const n=await Bs.updateFloorOrder(e,t);return this._replaceFloor(n),n},async addPrinterToFloor({floorId:e,printerId:t,x:n,y:r}){const i=await Bs.addPrinterToFloor(e,{printerId:t,x:n,y:r});this._replaceFloor(i)},async changeSelectedFloorByIndex(e){if(!this.floors?.length)return;if(this.floors.length<=e){console.warn("Selected floor index exceeds floors array"),this.selectedFloorIndex=0;return}if(!this.floors[e]){console.warn("Selected floor index did not exist in floors array"),this.selectedFloorIndex=0;return}this.selectedFloorIndex=e},async deletePrinterFromFloor({floorId:e,printerId:t}){const n=await Bs.deletePrinterFromFloor(e,t);this._replaceFloor(n)},_popPrinterFloor(e){const t=this.floors.findIndex(n=>n.id===e);t!==-1&&this.floors.splice(t,1)},_replaceFloor(e){const t=this.floors.findIndex(n=>n.id===e.id);t!==-1&&(this.floors[t]=e)}}}),aue={class:"text-h5"},oue=Be({__name:"AddOrUpdateFloorDialog",setup(e){const t=qt(Kt.AddOrUpdateFloorDialog),n=Is(),r=en(),i=z(O$()),a=L(()=>t.context()?.printerFloorId),s=L(()=>i.value?Qv(i.value.name):""),o=()=>!i.value.name||i.value.name.length<bc.minFloorNameLength?(r.openErrorMessage({title:"Invalid floor name"}),!1):Number.isInteger(Number(i.value.order))?!0:(r.openErrorMessage({title:"Floor order must be an integer"}),!1),l=async()=>{if(!o())return;const d=Bs.convertCreateFormToFloor(i.value);if(a.value)await n.updateFloorName({floorId:a.value,name:d.name}),await n.updateFloorOrder({floorId:a.value,order:d.order}),r.openInfoMessage({title:`Floor ${d.name} updated`});else{await n.createFloor(d),r.openInfoMessage({title:`Floor ${d.name} created`}),i.value.name=kd();const p=Math.max(...n.floors.map(h=>h.order))+1;i.value.order=p.toString()}u()},u=()=>{t.closeDialog()},c=()=>{if(a.value){const d=n.floor(a.value);i.value=Bs.convertPrinterFloorToCreateForm(d)}else if(n.floors?.length){const d=Math.max(...n.floors.map(p=>p.order))+1;i.value.order=d.toString()}};return(d,p)=>{const h=na;return F(),Q(h,{id:re(t).dialogId,"max-width":"700px",onEscape:u,onOpened:c},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,null,{default:m(()=>[E("span",aue,[f(jn,{color:"primary",size:"56"},{default:m(()=>[_(U(s.value),1)]),_:1}),_(" "+U(a.value?"Edit Floor":"New Floor"),1)])]),_:1}),f(Ye,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:12},{default:m(()=>[f(Qi,null,{default:m(()=>[f(ct,null,{default:m(()=>[i.value?(F(),Q(Re,{key:0,cols:"12",md:"6"},{default:m(()=>[f(Et,{modelValue:i.value.name,"onUpdate:modelValue":p[0]||(p[0]=g=>i.value.name=g),autofocus:"",label:"Floor name*",required:""},null,8,["modelValue"]),f(Et,{modelValue:i.value.order,"onUpdate:modelValue":p[1]||(p[1]=g=>i.value.order=g),label:"Floor order",required:"",type:"number"},null,8,["modelValue"])]),_:1})):ae("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),f(rn,null,{default:m(()=>[p[3]||(p[3]=E("em",{class:"text-red"}," * indicates required field ",-1)),f(Tt),f(te,{variant:"text",onClick:u},{default:m(()=>[...p[2]||(p[2]=[_("Close",-1)])]),_:1}),f(te,{color:"blue-darken-1",variant:"text",onClick:l},{default:m(()=>[_(U(a.value?"Update":"Create"),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}});class mp extends Ei{static async listCameraStreams(){return await this.get("/api/v2/camera-stream/")}static async createCameraStream(t){return await this.post("/api/v2/camera-stream/",t)}static async getCameraStream(t){return await this.get(`/api/v2/camera-stream/${t}`)}static async updateCameraStream(t,n){return await this.put(`/api/v2/camera-stream/${t}`,n)}static async deleteCameraStream(t){return await this.delete(`/api/v2/camera-stream/${t}`)}}const lue=be({...Qe(),...Cre()},"VForm"),oy=De()({name:"VForm",props:lue(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=kre(e),a=z();function s(l){l.preventDefault(),i.reset()}function o(l){const u=l,c=i.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(d=>{let{valid:p}=d;p&&a.value?.submit()}),u.preventDefault()}return Fe(()=>E("form",{ref:a,class:Te(["v-form",e.class]),style:je(e.style),novalidate:!0,onReset:s,onSubmit:o},[n.default?.(i)])),Ci(i,a)}}),uue={class:"text-h6 font-weight-bold"},cue={class:"text-caption text-medium-emphasis"},due={class:"d-flex align-center justify-space-between pa-3 preview-header"},fue={class:"d-flex align-center"},pue={class:"camera-preview-container"},mue=["src"],hue={key:0,class:"camera-preview-loading"},gue={key:1,class:"camera-preview-error"},vue=Be({__name:"AddOrUpdateCameraStreamDialog",setup(e){const t=ry(),n=qt(Kt.AddOrUpdateCameraDialog),r=wn(),i=z(),a=z(!1),s=z(!1),o=z(!0),l=z(0),u=z({name:"",streamURL:"",printerId:void 0}),c={required:k=>!!k||"This field is required",url:k=>{if(!k)return!0;try{return new URL(k),!0}catch{return"Please enter a valid URL"}}},d=L(()=>r.printers.map(k=>({title:k.name,value:k.id}))),p=L(()=>u.value.name?.trim()&&u.value.streamURL?.trim()),h=()=>n.context()?.addOrUpdate==="update",g=L(()=>h());function v(){s.value=!0,o.value=!1}function y(){s.value=!1,o.value=!1}function b(){s.value=!1,o.value=!0,l.value++}Oe(()=>n.context(),k=>{if(s.value=!1,o.value=!0,l.value=0,!k||k?.addOrUpdate!=="update"){u.value.streamURL="",u.value.name="",u.value.printerId=void 0;return}const R=t.getQueryData(["cameraStream"])?.find(T=>T.cameraStream.id===k.cameraId);R&&(u.value.name=R.cameraStream.name||"",u.value.streamURL=R.cameraStream.streamURL||"",u.value.printerId=R.cameraStream.printerId)});function S(){n.closeDialog()}async function w(){if(i.value?.validate()){a.value=!0;try{await mp.createCameraStream({streamURL:u.value.streamURL,name:u.value.name,printerId:u.value.printerId}),await t.refetchQueries({queryKey:["cameraStream"]}),n.closeDialog()}catch(k){console.error("Failed to create camera:",k)}finally{a.value=!1}}}async function C(){if(!i.value?.validate())return;const k=n.context()?.cameraId;if(!k){console.error("No camera ID provided");return}a.value=!0;try{await mp.updateCameraStream(k,{streamURL:u.value.streamURL,name:u.value.name,printerId:u.value.printerId}),await t.refetchQueries({queryKey:["cameraStream"]}),n.closeDialog()}catch(R){console.error("Failed to update camera:",R)}finally{a.value=!1}}function P(){n.closeDialog()}return(k,R)=>{const T=na;return F(),Q(T,{id:re(n).dialogId,"max-width":"700px",onEscape:R[4]||(R[4]=I=>S())},{default:m(()=>[f($e,{rounded:"lg",color:"surface"},{default:m(()=>[f(ot,{class:"d-flex align-center pa-5"},{default:m(()=>[f(jn,{color:"primary",size:"48",class:"mr-3"},{default:m(()=>[f(j,{size:"28"},{default:m(()=>[...R[5]||(R[5]=[_("videocam",-1)])]),_:1})]),_:1}),E("div",null,[E("div",uue,U(g.value?"Update Camera Stream":"Add New Camera Stream"),1),E("div",cue,U(g.value?"Modify camera stream settings":"Connect a new camera to your printer farm"),1)])]),_:1}),f(Ye,{class:"pa-6"},{default:m(()=>[f(oy,{ref_key:"formRef",ref:i},{default:m(()=>[f(Et,{modelValue:u.value.name,"onUpdate:modelValue":R[0]||(R[0]=I=>u.value.name=I),label:"Camera Name",placeholder:"e.g., Front Camera, Ender 3 Cam","prepend-inner-icon":"label",variant:"outlined",density:"comfortable",rules:[c.required],class:"mb-2",hint:"Give your camera a descriptive name","persistent-hint":""},null,8,["modelValue","rules"]),f(Et,{modelValue:u.value.streamURL,"onUpdate:modelValue":R[1]||(R[1]=I=>u.value.streamURL=I),label:"Stream URL (MJPEG)",placeholder:"http://192.168.1.100:8080/webcam/?action=stream","prepend-inner-icon":"link",variant:"outlined",density:"comfortable",rules:[c.required,c.url],class:"mb-2",hint:"MJPEG stream URL from OctoPrint, Klipper, or IP camera","persistent-hint":""},null,8,["modelValue","rules"]),f(mi,{modelValue:u.value.printerId,"onUpdate:modelValue":R[2]||(R[2]=I=>u.value.printerId=I),items:d.value,label:"Associate with Printer (Optional)",placeholder:"Select a printer","prepend-inner-icon":"print",variant:"outlined",density:"comfortable",clearable:"",class:"mb-2",hint:"Link this camera to a specific printer","persistent-hint":""},null,8,["modelValue","items"]),u.value.streamURL?(F(),Q($e,{key:0,variant:"outlined",class:"mt-4",rounded:"lg",color:"surface"},{default:m(()=>[E("div",due,[E("div",fue,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...R[6]||(R[6]=[_("preview",-1)])]),_:1}),R[7]||(R[7]=E("span",{class:"text-subtitle-2 font-weight-medium"},"Stream Preview",-1))]),f(te,{size:"small",variant:"text",color:"primary",onClick:b},{default:m(()=>[f(j,{start:""},{default:m(()=>[...R[8]||(R[8]=[_("refresh",-1)])]),_:1}),R[9]||(R[9]=_(" Reconnect ",-1))]),_:1})]),f(Ye,{class:"pa-0"},{default:m(()=>[E("div",pue,[un((F(),fe("img",{alt:"Camera stream",key:l.value,src:u.value.streamURL,class:"camera-preview",onError:v,onLoad:y},null,40,mue)),[[ai,!s.value&&!o.value]]),o.value&&!s.value?(F(),fe("div",hue,[f(Qn,{indeterminate:"",color:"primary",size:"64"}),R[10]||(R[10]=E("div",{class:"text-body-2 mt-4"},"Connecting to camera...",-1))])):ae("",!0),s.value?(F(),fe("div",gue,[f(j,{size:"64",color:"error"},{default:m(()=>[...R[11]||(R[11]=[_("error_outline",-1)])]),_:1}),R[12]||(R[12]=E("div",{class:"text-body-2 font-weight-bold mt-2"},"Unable to load camera stream",-1)),R[13]||(R[13]=E("div",{class:"text-caption text-medium-emphasis mt-1"},"Check the URL and try again",-1))])):ae("",!0)])]),_:1})]),_:1})):ae("",!0),f(kt,{type:"info",variant:"tonal",density:"compact",class:"mt-4"},{default:m(()=>[...R[14]||(R[14]=[E("div",{class:"text-caption"},[E("strong",null,"Tip:"),_(" Most 3D printer cameras use MJPEG streams. Common URLs: "),E("ul",{class:"mt-2 ml-4"},[E("li",null,[E("code",null,"http://[ip]:8080/webcam/?action=stream"),_(" (OctoPrint/Klipper)")]),E("li",null,[E("code",null,"http://[ip]/mjpeg_stream"),_(" (IP cameras)")])])],-1)])]),_:1})]),_:1},512)]),_:1}),f(mt),f(rn,{class:"pa-4"},{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:P},{default:m(()=>[...R[15]||(R[15]=[_(" Cancel ",-1)])]),_:1}),f(te,{color:"primary",variant:"elevated",loading:a.value,disabled:!p.value,onClick:R[3]||(R[3]=I=>g.value?C():w())},{default:m(()=>[f(j,{start:""},{default:m(()=>[_(U(g.value?"save":"add"),1)]),_:1}),_(" "+U(g.value?"Update Camera":"Add Camera"),1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["id"])}}}),yue=Cn(vue,[["__scopeId","data-v-658a512c"]]),Ux=Yi("TestPrinter",{state:()=>({currentCorrelationToken:void 0,testPrinter:void 0,testPrinterEvents:[]}),getters:{getEvents(){return()=>(this.testPrinterEvents?.filter(e=>e.correlationToken===this.currentCorrelationToken)||[]).filter(e=>(e.event!=="API_STATE_UPDATED"||e.payload!=="unset")&&(e.event!=="WS_STATE_UPDATED"||e.payload!=="unopened")).map(e=>({event:e.event.startsWith("WS_")?"Socket":"API",payload:e.payload?.toString()?.replace("noResponse","unreachable").replace("authFail","authentication failure"),failure:["authFail","noResponse","aborted","globalKey","error","connection error","closed","connection closed"].includes(e.payload?.toString())}))}},actions:{clearEvents(){this.testPrinterEvents=[]},async createTestPrinter(e){return this.testPrinter=e,await pn.testConnection(e)},saveEvent(e){this.testPrinterEvents?.push(e)}}}),bue="error",Sue="success",wue=Be({__name:"PrinterChecksPanel",setup(e){const t=Ux(),n=z(4);function r(){return t.getEvents().map(i=>({label:i.event,text:i.payload,color:i.failure?bue:Sue}))}return(i,a)=>(F(),Q(Re,{cols:re(n)},{default:m(()=>[a[0]||(a[0]=E("strong",null," Checks: ",-1)),(F(!0),fe(Ne,null,Zt(r(),(s,o)=>(F(),Q(kt,{key:o,type:s.color,density:"compact"},{default:m(()=>[E("small",null,U(s.label)+" "+U(s.text),1)]),_:2},1032,["type"]))),128))]),_:1},8,["cols"]))}}),N$=Symbol.for("vuetify:v-item-group"),Eue=be({...Qe(),...bd({selectedClass:"v-item--selected"}),...zt(),...vn()},"VItemGroup"),xue=De()({name:"VItemGroup",props:Eue(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=xn(e),{isSelected:i,select:a,next:s,prev:o,selected:l}=Iu(e,N$);return()=>f(e.tag,{class:Te(["v-item-group",r.value,e.class]),style:je(e.style)},{default:()=>[n.default?.({isSelected:i,select:a,next:s,prev:o,selected:l.value})]})}}),Cue=De()({name:"VItem",props:Sd(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:i,toggle:a,selectedClass:s,value:o,disabled:l}=fu(e,N$);return()=>n.default?.({isSelected:r.value,selectedClass:s.value,select:i,toggle:a,value:o.value,disabled:l.value})}}),kue={class:"text-h5"},_ue={class:"ml-3 align-center"},Tue=Be({__name:"AddOrUpdatePrinterDialog",setup(e){const t=qt(Kt.AddOrUpdatePrinterDialog),n=wn(),r=Ux(),i=sy(),a=Is(),s=en(),o=z(null),l=z(!1),u=z(!1),c=z(!1),d=z(""),p=z(xh()),h=L(()=>{if(i.hasFeature("multiplePrinterServices")){const $=i.getFeature("multiplePrinterServices"),N=$?.subFeatures?.types?.includes("klipper"),O=$?.subFeatures?.types?.includes("prusaLink"),M=$?.subFeatures?.types?.includes("bambu");return[{name:ss(ja),type:ja,logo:IS,height:"60px"},...N?[{name:ss(Jl),type:Jl,logo:wM,height:"60px"}]:[],...O?[{name:ss(Mo),type:Mo,logo:EM,height:"20px"}]:[],...M?[{name:ss(hs),type:hs,logo:SM,height:"60px"}]:[]]}return[{name:"OctoPrint",type:ja,logo:IS,height:"75px"}]}),g=L(()=>t.context()?.id);async function v(){if(await i.loadFeatures(),!g.value){p.value=xh();return}const $=n.printer(g.value);$&&(p.value=pn.convertPrinterToCreateForm($))}const y=L(()=>!!g.value),b=L(()=>{if(y.value)return"Updating Printer";const $=t.context();if($?.floorId){const N=a.floors.find(O=>O.id===$.floorId);if(N)return`Add Printer to ${N.name}`}return"New Printer"}),S=L(()=>(u.value?"Force ":"")+(y.value?"Save":"Create")),w=L(()=>p?Qv(p.value?.name):"?"),C=L(()=>({required:!0,max:bc.maxPrinterNameLength})),P=L(()=>({required:!0,length:bc.apiKeyLength,alpha_num:!0}));function k(){p.value=xh()}function R(){c.value=!0}async function T(){if(!I())return;r.clearEvents(),R();const{correlationToken:$}=await r.createTestPrinter(p.value);r.currentCorrelationToken=$}const I=()=>{const $=p.value;return $?PS($.printerType)?$.printerURL?.length&&$.name?.length:RS($.printerType)||AS($.printerType)?$.printerURL?.length&&$.name?.length&&$.username?.length&&$.password?.length:$.printerURL?.length&&$.name?.length&&$.apiKey?.length:!1};async function x($){const N=await n.createPrinter($,u.value);return s.openInfoMessage({title:`Printer ${$.name} created`}),N}async function A($){const N=$.id,O=await n.updatePrinter({printerId:N,updatedPrinter:$},u.value);return s.openInfoMessage({title:`Printer ${$.name} updated`}),O}async function D(){if(!I())return;o.value=null,l.value=!0,p.value.printerURL?.length&&!p.value.printerURL?.startsWith("http://")&&!p.value.printerURL?.startsWith("https://")&&(p.value.printerURL="https://"+p.value.printerURL);const $=p.value;(PS($.printerType)||RS($.printerType)||AS($.printerType))&&($.apiKey="");try{if(y.value)await A($);else{const N=await x($);try{const O=t.context();O?.floorId&&typeof O.floorX=="number"&&typeof O.floorY=="number"&&O.floorX>=0&&O.floorY>=0&&await Is().addPrinterToFloor({floorId:O.floorId,printerId:N.id,y:O.floorY,x:O.floorX})}catch(O){console.warn("Attempt to add printer to floor failed",O),Gs(O)}}V()}catch(N){N instanceof Y2?(o.value=N.response?.data?.error||N.message,s.error("Validation Failed",N.message)):(o.value=N.message,s.error("Error",N.message))}finally{l.value=!1,u.value=!1}}async function B(){p.value.name=kd(),o.value=null,u.value=!1}function V(){t.closeDialog(),u.value=!1,o.value=null,c.value=!1,r.clearEvents(),k(),d.value=""}return($,N)=>{const O=na;return F(),Q(O,{id:re(t).dialogId,"max-width":c.value?"900px":"800px",onEscape:N[13]||(N[13]=M=>V()),onOpened:N[14]||(N[14]=M=>v())},{default:m(()=>[f($e,{class:"pa-4"},{default:m(()=>[f(ot,null,{default:m(()=>[E("span",kue,[f(jn,{color:"primary",size:"56"},{default:m(()=>[_(U(w.value),1)]),_:1}),_(" "+U(b.value),1)])]),_:1}),f(Ye,null,{default:m(()=>[N[17]||(N[17]=E("h4",null,"Printer type",-1)),f(xue,{modelValue:p.value.printerType,"onUpdate:modelValue":N[0]||(N[0]=M=>p.value.printerType=M),mandatory:""},{default:m(()=>[f(Qi,null,{default:m(()=>[f(ct,null,{default:m(()=>[(F(!0),fe(Ne,null,Zt(h.value,M=>(F(),Q(Re,{key:M.name,cols:"4",md:"4"},{default:m(()=>[f(Cue,{value:M.type},{default:m(({isSelected:Y,toggle:X})=>[f($e,{color:Y?"primary":"blue-grey darken-4",class:"d-flex align-center justify-center elevation-8",height:"60px",width:"225px",onClick:X},{default:m(()=>[f(ri,{height:M.height,src:M.logo,"max-width":"100px",width:"125px"},null,8,["height","src"]),f(oZ,null,{default:m(()=>[E("h3",_ue,U(M.name),1)]),_:2},1024)]),_:2},1032,["color","onClick"])]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(ct,null,{default:m(()=>[f(Re,{cols:c.value?8:12},{default:m(()=>[p.value?(F(),Q(ct,{key:0},{default:m(()=>[f(Re,null,{default:m(()=>[f(Et,{modelValue:p.value.name,"onUpdate:modelValue":N[1]||(N[1]=M=>p.value.name=M),counter:C.value.max,autofocus:"",class:"ma-1",label:"Printer name*",required:""},null,8,["modelValue","counter"])]),_:1}),f(Re,null,{default:m(()=>[f(Bn,{modelValue:p.value.enabled,"onUpdate:modelValue":N[2]||(N[2]=M=>p.value.enabled=M),hint:"Disabling makes the printer passive",label:"Enabled*","persistent-hint":"",required:""},null,8,["modelValue"])]),_:1})]),_:1})):ae("",!0),f(Et,{modelValue:p.value.printerURL,"onUpdate:modelValue":N[3]||(N[3]=M=>p.value.printerURL=M),class:"ma-1",hint:"F.e. 'octopi.local' or 'https://my.printer.com'",label:"Printer URL*"},null,8,["modelValue"]),p.value.printerType===re(ja)?(F(),Q(Et,{key:1,modelValue:p.value.apiKey,"onUpdate:modelValue":N[4]||(N[4]=M=>p.value.apiKey=M),counter:P.value.length,class:"ma-1",hint:"User or Application Key with 32 or 43 characters (Global API key will fail)",label:p.value.printerType===re(ja)||p.value.printerType===re(Jl)?"API Key (required)*":"API Key (unsupported)","persistent-hint":"",required:""},null,8,["modelValue","counter","label"])):ae("",!0),p.value.printerType===re(Mo)||p.value.printerType===re(hs)?(F(),Q(Et,{key:2,modelValue:p.value.username,"onUpdate:modelValue":N[5]||(N[5]=M=>p.value.username=M),class:"ma-1",hint:p.value.printerType===re(hs)?"Serial number from printer":"Username (often 'maker')",label:p.value.printerType===re(hs)?"Serial":"Username","persistent-hint":"",required:""},null,8,["modelValue","hint","label"])):ae("",!0),p.value.printerType===re(Mo)||p.value.printerType===re(hs)?(F(),Q(Et,{key:3,modelValue:p.value.password,"onUpdate:modelValue":N[6]||(N[6]=M=>p.value.password=M),class:"ma-1",hint:p.value.printerType===re(hs)?"Access code from printer settings":"Password (visit your printer settings)",label:p.value.printerType===re(hs)?"AccessCode":"Password","persistent-hint":"",required:""},null,8,["modelValue","hint","label"])):ae("",!0)]),_:1},8,["cols"]),c.value?(F(),Q(wue,{key:0,cols:4},{default:m(()=>[f(te,{onClick:N[7]||(N[7]=M=>c.value=!1)},{default:m(()=>[...N[15]||(N[15]=[_(" Hide checks",-1)])]),_:1})]),_:1})):ae("",!0)]),_:1}),o.value?.length?(F(),Q(kt,{key:0,class:"my-3",color:"primary"},{default:m(()=>[_(U(o.value)+" ",1),f(Bn,{modelValue:u.value,"onUpdate:modelValue":N[8]||(N[8]=M=>u.value=M),color:"warning",label:"Force save"},null,8,["modelValue"])]),_:1})):ae("",!0),l.value?(F(),Q(kt,{key:1,class:"my-3"},{default:m(()=>[N[16]||(N[16]=_(" Validating printer ",-1)),f(Qn,{indeterminate:""})]),_:1})):ae("",!0)]),_:1}),f(rn,null,{default:m(()=>[N[21]||(N[21]=E("em",{class:"text-red"}," * indicates required field ",-1)),f(Tt),f(te,{variant:"text",onClick:N[9]||(N[9]=M=>V())},{default:m(()=>[...N[18]||(N[18]=[_(" Close ",-1)])]),_:1}),y.value?(F(),Q(te,{key:0,disabled:!I(),color:"gray",variant:"text",onClick:N[10]||(N[10]=M=>B())},{default:m(()=>[...N[19]||(N[19]=[_(" Duplicate ",-1)])]),_:1},8,["disabled"])):ae("",!0),f(te,{disabled:!I(),color:"warning",variant:"text",onClick:N[11]||(N[11]=M=>T())},{default:m(()=>[...N[20]||(N[20]=[_(" Test connection ",-1)])]),_:1},8,["disabled"]),f(te,{disabled:!I(),color:"blue-darken-1",variant:"text",onClick:N[12]||(N[12]=M=>D())},{default:m(()=>[_(U(S.value),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["id","max-width"])}}}),Iue=be({text:String,...Qe(),...zt()},"VToolbarTitle"),gu=De()({name:"VToolbarTitle",props:Iue(),setup(e,t){let{slots:n}=t;return Fe(()=>{const r=!!(n.default||n.text||e.text);return f(e.tag,{class:Te(["v-toolbar-title",e.class]),style:je(e.style)},{default:()=>[r&&E("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,n.default?.()])]})}),{}}}),Pue=[null,"prominent","default","comfortable","compact"],D$=be({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>Pue.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...As(),...Qe(),...xi(),...mr(),...zt({tag:"header"}),...vn()},"VToolbar"),Ug=De()({name:"VToolbar",props:D$(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=$n(()=>e.color),{borderClasses:a}=Zs(e),{elevationClasses:s}=Ji(e),{roundedClasses:o}=Er(e),{themeClasses:l}=xn(e),{rtlClasses:u}=Tr(),c=Le(e.extended===null?!!n.extension?.():e.extended),d=L(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),p=L(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Sr({VBtn:{variant:"text"}}),Fe(()=>{const h=!!(e.title||n.title),g=!!(n.image||e.image),v=n.extension?.();return c.value=e.extended===null?!!v:e.extended,f(e.tag,{class:Te(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,a.value,s.value,o.value,l.value,u.value,e.class]),style:je([i.value,e.style])},{default:()=>[g&&E("div",{key:"image",class:"v-toolbar__image"},[n.image?f(sn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):f(ri,{key:"image-img",cover:!0,src:e.image},null)]),f(sn,{defaults:{VTabs:{height:Me(d.value)}}},{default:()=>[E("div",{class:"v-toolbar__content",style:{height:Me(d.value)}},[n.prepend&&E("div",{class:"v-toolbar__prepend"},[n.prepend?.()]),h&&f(gu,{key:"title",text:e.title},{text:n.title}),n.default?.(),n.append&&E("div",{class:"v-toolbar__append"},[n.append?.()])])]}),f(sn,{defaults:{VTabs:{height:Me(p.value)}}},{default:()=>[f(lx,null,{default:()=>[c.value&&E("div",{class:"v-toolbar__extension",style:{height:Me(p.value)}},[v])]})]})]})}),{contentHeight:d,extensionHeight:p}}}),Rue=Be({__name:"HelpOverlay",setup(e){const t=z(!1);return(n,r)=>(F(),Q(Ai,{modelValue:re(t),"onUpdate:modelValue":r[0]||(r[0]=i=>Ot(t)?t.value=i:null),fullscreen:"",eager:"",transition:"dialog-bottom-transition",width:"100%"},{activator:m(({props:i})=>[f(ln,{location:"top"},{activator:m(({props:a})=>[f(te,ve({variant:"tonal",class:"ml-2 mr-6"},{...i,...a}),{default:m(()=>[f(j,{icon:"mdi:mdi-help",class:"mr-2"}),r[1]||(r[1]=_(" help ",-1))]),_:1},16)]),default:m(()=>[r[2]||(r[2]=E("span",null," Load the online documentation webpage ",-1))]),_:2},1024)]),default:m(({isActive:i})=>[f($e,{height:"100%",width:"100%"},{default:m(()=>[f(Ug,{color:"primary"},{default:m(()=>[f(j,{class:"ml-5"},{default:m(()=>[...r[3]||(r[3]=[_("help",-1)])]),_:1}),r[6]||(r[6]=E("h2",{class:"ml-10"},"FDM Monster Documentation",-1)),f(Tt),r[7]||(r[7]=E("span",{class:"mr-10"}," docs.fdm-monster.net ",-1)),f(te,{variant:"flat",onClick:a=>i.value=!1},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...r[4]||(r[4]=[_("close",-1)])]),_:1}),r[5]||(r[5]=_(" Close help ",-1))]),_:1},8,["onClick"])]),_:2},1024),r[8]||(r[8]=E("iframe",{height:"100%",src:"https://docs.fdm-monster.net",style:{"background-color":"black","border-width":"0"},width:"100%"},null,-1))]),_:2},1024)]),_:1},8,["modelValue"]))}}),Aue=Be({__name:"TooltipButton",props:{tooltip:{},color:{default:"white"},variant:{default:"elevated"},icon:{default:""},iconClass:{default:""},text:{default:""},location:{default:"bottom"}},emits:["click"],setup(e){const t=e;return(n,r)=>(F(),Q(ln,{location:t.location},{activator:m(({props:i})=>[f(te,ve(i,{variant:e.variant,class:"ml-2",color:e.color,onClick:r[0]||(r[0]=a=>n.$emit("click"))}),{default:m(()=>[kc(n.$slots,"default",{},()=>[t.icon?.length?(F(),Q(j,{key:0,class:Te("mr-2 "+t.iconClass)},{default:m(()=>[_(U(t.icon),1)]),_:1},8,["class"])):ae("",!0),_(" "+U(t.text),1)])]),_:3},16,["variant","color"])]),default:m(()=>[E("span",null,U(t.tooltip),1)]),_:3},8,["location"]))}});const tc=typeof document<"u";function L$(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Oue(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&L$(e.default)}const yn=Object.assign;function zb(e,t){const n={};for(const r in t){const i=t[r];n[r]=Xs(i)?i.map(e):e(i)}return n}const kf=()=>{},Xs=Array.isArray;function SP(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const F$=/#/g,Nue=/&/g,Due=/\//g,Lue=/=/g,Fue=/\?/g,M$=/\+/g,Mue=/%5B/g,$ue=/%5D/g,$$=/%5E/g,Vue=/%60/g,V$=/%7B/g,Bue=/%7C/g,B$=/%7D/g,Uue=/%20/g;function jx(e){return e==null?"":encodeURI(""+e).replace(Bue,"|").replace(Mue,"[").replace($ue,"]")}function jue(e){return jx(e).replace(V$,"{").replace(B$,"}").replace($$,"^")}function YS(e){return jx(e).replace(M$,"%2B").replace(Uue,"+").replace(F$,"%23").replace(Nue,"%26").replace(Vue,"`").replace(V$,"{").replace(B$,"}").replace($$,"^")}function zue(e){return YS(e).replace(Lue,"%3D")}function Hue(e){return jx(e).replace(F$,"%23").replace(Fue,"%3F")}function Wue(e){return Hue(e).replace(Due,"%2F")}function hp(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Gue=/\/$/,que=e=>e.replace(Gue,"");function Hb(e,t,n="/"){let r,i={},a="",s="";const o=t.indexOf("#");let l=t.indexOf("?");return l=o>=0&&l>o?-1:l,l>=0&&(r=t.slice(0,l),a=t.slice(l,o>0?o:t.length),i=e(a.slice(1))),o>=0&&(r=r||t.slice(0,o),s=t.slice(o,t.length)),r=Jue(r??t,n),{fullPath:r+a+s,path:r,query:i,hash:hp(s)}}function Kue(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function wP(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yue(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Jc(t.matched[r],n.matched[i])&&U$(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function U$(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Xue(e[n],t[n]))return!1;return!0}function Xue(e,t){return Xs(e)?EP(e,t):Xs(t)?EP(t,e):e?.valueOf()===t?.valueOf()}function EP(e,t){return Xs(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jue(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const xo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let XS=(function(e){return e.pop="pop",e.push="push",e})({}),Wb=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Que(e){if(!e)if(tc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),que(e)}const Zue=/^[^#]+#/;function ece(e,t){return e.replace(Zue,"#")+t}function tce(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 ly=()=>({left:window.scrollX,top:window.scrollY});function nce(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=tce(i,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 xP(e,t){return(history.state?history.state.position-t:-1)+e}const JS=new Map;function rce(e,t){JS.set(e,t)}function ice(e){const t=JS.get(e);return JS.delete(e),t}function sce(e){return typeof e=="string"||e&&typeof e=="object"}function j$(e){return typeof e=="string"||typeof e=="symbol"}let qn=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const z$=Symbol("");qn.MATCHER_NOT_FOUND+"",qn.NAVIGATION_GUARD_REDIRECT+"",qn.NAVIGATION_ABORTED+"",qn.NAVIGATION_CANCELLED+"",qn.NAVIGATION_DUPLICATED+"";function Qc(e,t){return yn(new Error,{type:e,[z$]:!0},t)}function Aa(e,t){return e instanceof Error&&z$ in e&&(t==null||!!(e.type&t))}const ace=["params","query","hash"];function oce(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ace)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function lce(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(M$," "),a=i.indexOf("="),s=hp(a<0?i:i.slice(0,a)),o=a<0?null:hp(i.slice(a+1));if(s in t){let l=t[s];Xs(l)||(l=t[s]=[l]),l.push(o)}else t[s]=o}return t}function CP(e){let t="";for(let n in e){const r=e[n];if(n=zue(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Xs(r)?r.map(i=>i&&YS(i)):[r&&YS(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function uce(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Xs(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const cce=Symbol(""),kP=Symbol(""),uy=Symbol(""),zx=Symbol(""),QS=Symbol("");function qd(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function No(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const u=p=>{p===!1?l(Qc(qn.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?l(p):sce(p)?l(Qc(qn.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(s&&r.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),o())},c=a(()=>e.call(r&&r.instances[i],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function Gb(e,t,n,r,i=a=>a()){const a=[];for(const s of e)for(const o in s.components){let l=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(L$(l)){const u=(l.__vccOpts||l)[t];u&&a.push(No(u,n,r,s,o,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const d=Oue(c)?c.default:c;s.mods[o]=c,s.components[o]=d;const p=(d.__vccOpts||d)[t];return p&&No(p,n,r,s,o,i)()}))}}return a}function dce(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const o=t.matched[s];o&&(e.matched.find(u=>Jc(u,o))?r.push(o):n.push(o));const l=e.matched[s];l&&(t.matched.find(u=>Jc(u,l))||i.push(l))}return[n,r,i]}let fce=()=>location.protocol+"//"+location.host;function H$(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,o=i.slice(s);return o[0]!=="/"&&(o="/"+o),wP(o,"")}return wP(n,e)+r+i}function pce(e,t,n,r){let i=[],a=[],s=null;const o=({state:p})=>{const h=H$(e,location),g=n.value,v=t.value;let y=0;if(p){if(n.value=h,t.value=p,s&&s===g){s=null;return}y=v?p.position-v.position:0}else r(h);i.forEach(b=>{b(n.value,g,{delta:y,type:XS.pop,direction:y?y>0?Wb.forward:Wb.back:Wb.unknown})})};function l(){s=n.value}function u(p){i.push(p);const h=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return a.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(yn({},p.state,{scroll:ly()}),"")}}function d(){for(const p of a)p();a=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function _P(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?ly():null}}function mce(e){const{history:t,location:n}=window,r={value:H$(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:fce()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](p)}}function s(l,u){a(l,yn({},t.state,_P(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),r.value=l}function o(l,u){const c=yn({},i.value,t.state,{forward:l,scroll:ly()});a(c.current,c,!0),a(l,yn({},_P(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:i,push:o,replace:s}}function hce(e){e=Que(e);const t=mce(e),n=pce(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=yn({location:"",base:e,go:r,createHref:ece.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Ol=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var gr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(gr||{});const gce={type:Ol.Static,value:""},vce=/[a-zA-Z0-9_]/;function yce(e){if(!e)return[[]];if(e==="/")return[[gce]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=gr.Static,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let o=0,l,u="",c="";function d(){u&&(n===gr.Static?a.push({type:Ol.Static,value:u}):n===gr.Param||n===gr.ParamRegExp||n===gr.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Ol.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;o<e.length;){if(l=e[o++],l==="\\"&&n!==gr.ParamRegExp){r=n,n=gr.EscapeNext;continue}switch(n){case gr.Static:l==="/"?(u&&d(),s()):l===":"?(d(),n=gr.Param):p();break;case gr.EscapeNext:p(),n=r;break;case gr.Param:l==="("?n=gr.ParamRegExp:vce.test(l)?p():(d(),n=gr.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case gr.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=gr.ParamRegExpEnd:c+=l;break;case gr.ParamRegExpEnd:d(),n=gr.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--,c="";break;default:t("Unknown state");break}}return n===gr.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),s(),i}const TP="[^/]+?",bce={sensitive:!1,strict:!1,start:!0,end:!0};var di=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(di||{});const Sce=/[.+*?^${}()[\]/\\]/g;function wce(e,t){const n=yn({},bce,t),r=[];let i=n.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[di.Root];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const p=u[d];let h=di.Segment+(n.sensitive?di.BonusCaseSensitive:0);if(p.type===Ol.Static)d||(i+="/"),i+=p.value.replace(Sce,"\\$&"),h+=di.Static;else if(p.type===Ol.Param){const{value:g,repeatable:v,optional:y,regexp:b}=p;a.push({name:g,repeatable:v,optional:y});const S=b||TP;if(S!==TP){h+=di.BonusCustomRegExp;try{`${S}`}catch(C){throw new Error(`Invalid custom RegExp for param "${g}" (${S}): `+C.message)}}let w=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;d||(w=y&&u.length<2?`(?:/${w})`:"/"+w),y&&(w+="?"),i+=w,h+=di.Dynamic,y&&(h+=di.BonusOptional),v&&(h+=di.BonusRepeatable),S===".*"&&(h+=di.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=di.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function o(u){const c=u.match(s),d={};if(!c)return null;for(let p=1;p<c.length;p++){const h=c[p]||"",g=a[p-1];d[g.name]=h&&g.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const p of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of p)if(h.type===Ol.Static)c+=h.value;else if(h.type===Ol.Param){const{value:g,repeatable:v,optional:y}=h,b=g in u?u[g]:"";if(Xs(b)&&!v)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const S=Xs(b)?b.join("/"):b;if(!S)if(y)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);c+=S}}return c||"/"}return{re:s,score:r,keys:a,parse:o,stringify:l}}function Ece(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===di.Static+di.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===di.Static+di.Segment?1:-1:0}function W$(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=Ece(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(IP(r))return 1;if(IP(i))return-1}return i.length-r.length}function IP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const xce={strict:!1,end:!0,sensitive:!1};function Cce(e,t,n){const r=wce(yce(e.path),n),i=yn(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function kce(e,t){const n=[],r=new Map;t=SP(xce,t);function i(d){return r.get(d)}function a(d,p,h){const g=!h,v=RP(d);v.aliasOf=h&&h.record;const y=SP(t,d),b=[v];if("alias"in d){const C=typeof d.alias=="string"?[d.alias]:d.alias;for(const P of C)b.push(RP(yn({},v,{components:h?h.record.components:v.components,path:P,aliasOf:h?h.record:v})))}let S,w;for(const C of b){const{path:P}=C;if(p&&P[0]!=="/"){const k=p.record.path,R=k[k.length-1]==="/"?"":"/";C.path=p.record.path+(P&&R+P)}if(S=Cce(C,p,y),h?h.alias.push(S):(w=w||S,w!==S&&w.alias.push(S),g&&d.name&&!AP(S)&&s(d.name)),G$(S)&&l(S),v.children){const k=v.children;for(let R=0;R<k.length;R++)a(k[R],S,h&&h.children[R])}h=h||S}return w?()=>{s(w)}:kf}function s(d){if(j$(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function o(){return n}function l(d){const p=Ice(d,n);n.splice(p,0,d),d.record.name&&!AP(d)&&r.set(d.record.name,d)}function u(d,p){let h,g={},v,y;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Qc(qn.MATCHER_NOT_FOUND,{location:d});y=h.record.name,g=yn(PP(p.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&PP(d.params,h.keys.map(w=>w.name))),v=h.stringify(g)}else if(d.path!=null)v=d.path,h=n.find(w=>w.re.test(v)),h&&(g=h.parse(v),y=h.record.name);else{if(h=p.name?r.get(p.name):n.find(w=>w.re.test(p.path)),!h)throw Qc(qn.MATCHER_NOT_FOUND,{location:d,currentLocation:p});y=h.record.name,g=yn({},p.params,d.params),v=h.stringify(g)}const b=[];let S=h;for(;S;)b.unshift(S.record),S=S.parent;return{name:y,path:v,params:g,matched:b,meta:Tce(b)}}e.forEach(d=>a(d));function c(){n.length=0,r.clear()}return{addRoute:a,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:o,getRecordMatcher:i}}function PP(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function RP(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_ce(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 _ce(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 AP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tce(e){return e.reduce((t,n)=>yn(t,n.meta),{})}function Ice(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;W$(e,t[a])<0?r=a:n=a+1}const i=Pce(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Pce(e){let t=e;for(;t=t.parent;)if(G$(t)&&W$(e,t)===0)return t}function G$({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function OP(e){const t=ft(uy),n=ft(zx),r=L(()=>{const l=re(e.to);return t.resolve(l)}),i=L(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(Jc.bind(null,c));if(p>-1)return p;const h=NP(l[u-2]);return u>1&&NP(c)===h&&d[d.length-1].path!==h?d.findIndex(Jc.bind(null,l[u-2])):p}),a=L(()=>i.value>-1&&Dce(n.params,r.value.params)),s=L(()=>i.value>-1&&i.value===n.matched.length-1&&U$(n.params,r.value.params));function o(l={}){if(Nce(l)){const u=t[re(e.replace)?"replace":"push"](re(e.to)).catch(kf);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:a,isExactActive:s,navigate:o}}function Rce(e){return e.length===1?e[0]:e}const Ace=Be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:OP,setup(e,{slots:t}){const n=An(OP(e)),{options:r}=ft(uy),i=L(()=>({[DP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[DP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&Rce(t.default(n));return e.custom?a:Rs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),Oce=Ace;function Nce(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 Dce(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Xs(i)||i.length!==r.length||r.some((a,s)=>a.valueOf()!==i[s].valueOf()))return!1}return!0}function NP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const DP=(e,t,n)=>e??t??n,Lce=Be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ft(QS),i=L(()=>e.route||r.value),a=ft(kP,0),s=L(()=>{let u=re(a);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),o=L(()=>i.value.matched[s.value]);Sn(kP,L(()=>s.value+1)),Sn(cce,o),Sn(QS,i);const l=z();return Oe(()=>[l.value,o.value,e.name],([u,c,d],[p,h,g])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Jc(c,h)||!p)&&(c.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,d=o.value,p=d&&d.components[c];if(!p)return LP(n.default,{Component:p,route:u});const h=d.props[c],g=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=Rs(p,yn({},g,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return LP(n.default,{Component:y,route:u})||y}}});function LP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Fce=Lce;function Mce(e){const t=kce(e.routes,e),n=e.parseQuery||lce,r=e.stringifyQuery||CP,i=e.history,a=qd(),s=qd(),o=qd(),l=Le(xo);let u=xo;tc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=zb.bind(null,W=>""+W),d=zb.bind(null,Wue),p=zb.bind(null,hp);function h(W,ne){let J,ke;return j$(W)?(J=t.getRecordMatcher(W),ke=ne):ke=W,t.addRoute(ke,J)}function g(W){const ne=t.getRecordMatcher(W);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(W=>W.record)}function y(W){return!!t.getRecordMatcher(W)}function b(W,ne){if(ne=yn({},ne||l.value),typeof W=="string"){const q=Hb(n,W,ne.path),ce=t.resolve({path:q.path},ne),oe=i.createHref(q.fullPath);return yn(q,ce,{params:p(ce.params),hash:hp(q.hash),redirectedFrom:void 0,href:oe})}let J;if(W.path!=null)J=yn({},W,{path:Hb(n,W.path,ne.path).path});else{const q=yn({},W.params);for(const ce in q)q[ce]==null&&delete q[ce];J=yn({},W,{params:d(q)}),ne.params=d(ne.params)}const ke=t.resolve(J,ne),We=W.hash||"";ke.params=c(p(ke.params));const Ve=Kue(r,yn({},W,{hash:jue(We),path:ke.path})),H=i.createHref(Ve);return yn({fullPath:Ve,hash:We,query:r===CP?uce(W.query):W.query||{}},ke,{redirectedFrom:void 0,href:H})}function S(W){return typeof W=="string"?Hb(n,W,l.value.path):yn({},W)}function w(W,ne){if(u!==W)return Qc(qn.NAVIGATION_CANCELLED,{from:ne,to:W})}function C(W){return R(W)}function P(W){return C(yn(S(W),{replace:!0}))}function k(W,ne){const J=W.matched[W.matched.length-1];if(J&&J.redirect){const{redirect:ke}=J;let We=typeof ke=="function"?ke(W,ne):ke;return typeof We=="string"&&(We=We.includes("?")||We.includes("#")?We=S(We):{path:We},We.params={}),yn({query:W.query,hash:W.hash,params:We.path!=null?{}:W.params},We)}}function R(W,ne){const J=u=b(W),ke=l.value,We=W.state,Ve=W.force,H=W.replace===!0,q=k(J,ke);if(q)return R(yn(S(q),{state:typeof q=="object"?yn({},We,q.state):We,force:Ve,replace:H}),ne||J);const ce=J;ce.redirectedFrom=ne;let oe;return!Ve&&Yue(r,ke,J)&&(oe=Qc(qn.NAVIGATION_DUPLICATED,{to:ce,from:ke}),ie(ke,ke,!0,!1)),(oe?Promise.resolve(oe):x(ce,ke)).catch(ge=>Aa(ge)?Aa(ge,qn.NAVIGATION_GUARD_REDIRECT)?ge:X(ge):M(ge,ce,ke)).then(ge=>{if(ge){if(Aa(ge,qn.NAVIGATION_GUARD_REDIRECT))return R(yn({replace:H},S(ge.to),{state:typeof ge.to=="object"?yn({},We,ge.to.state):We,force:Ve}),ne||ce)}else ge=D(ce,ke,!0,H,We);return A(ce,ke,ge),ge})}function T(W,ne){const J=w(W,ne);return J?Promise.reject(J):Promise.resolve()}function I(W){const ne=le.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(W):W()}function x(W,ne){let J;const[ke,We,Ve]=dce(W,ne);J=Gb(ke.reverse(),"beforeRouteLeave",W,ne);for(const q of ke)q.leaveGuards.forEach(ce=>{J.push(No(ce,W,ne))});const H=T.bind(null,W,ne);return J.push(H),ue(J).then(()=>{J=[];for(const q of a.list())J.push(No(q,W,ne));return J.push(H),ue(J)}).then(()=>{J=Gb(We,"beforeRouteUpdate",W,ne);for(const q of We)q.updateGuards.forEach(ce=>{J.push(No(ce,W,ne))});return J.push(H),ue(J)}).then(()=>{J=[];for(const q of Ve)if(q.beforeEnter)if(Xs(q.beforeEnter))for(const ce of q.beforeEnter)J.push(No(ce,W,ne));else J.push(No(q.beforeEnter,W,ne));return J.push(H),ue(J)}).then(()=>(W.matched.forEach(q=>q.enterCallbacks={}),J=Gb(Ve,"beforeRouteEnter",W,ne,I),J.push(H),ue(J))).then(()=>{J=[];for(const q of s.list())J.push(No(q,W,ne));return J.push(H),ue(J)}).catch(q=>Aa(q,qn.NAVIGATION_CANCELLED)?q:Promise.reject(q))}function A(W,ne,J){o.list().forEach(ke=>I(()=>ke(W,ne,J)))}function D(W,ne,J,ke,We){const Ve=w(W,ne);if(Ve)return Ve;const H=ne===xo,q=tc?history.state:{};J&&(ke||H?i.replace(W.fullPath,yn({scroll:H&&q&&q.scroll},We)):i.push(W.fullPath,We)),l.value=W,ie(W,ne,J,H),X()}let B;function V(){B||(B=i.listen((W,ne,J)=>{if(!ee.listening)return;const ke=b(W),We=k(ke,ee.currentRoute.value);if(We){R(yn(We,{replace:!0,force:!0}),ke).catch(kf);return}u=ke;const Ve=l.value;tc&&rce(xP(Ve.fullPath,J.delta),ly()),x(ke,Ve).catch(H=>Aa(H,qn.NAVIGATION_ABORTED|qn.NAVIGATION_CANCELLED)?H:Aa(H,qn.NAVIGATION_GUARD_REDIRECT)?(R(yn(S(H.to),{force:!0}),ke).then(q=>{Aa(q,qn.NAVIGATION_ABORTED|qn.NAVIGATION_DUPLICATED)&&!J.delta&&J.type===XS.pop&&i.go(-1,!1)}).catch(kf),Promise.reject()):(J.delta&&i.go(-J.delta,!1),M(H,ke,Ve))).then(H=>{H=H||D(ke,Ve,!1),H&&(J.delta&&!Aa(H,qn.NAVIGATION_CANCELLED)?i.go(-J.delta,!1):J.type===XS.pop&&Aa(H,qn.NAVIGATION_ABORTED|qn.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),A(ke,Ve,H)}).catch(kf)}))}let $=qd(),N=qd(),O;function M(W,ne,J){X(W);const ke=N.list();return ke.length?ke.forEach(We=>We(W,ne,J)):console.error(W),Promise.reject(W)}function Y(){return O&&l.value!==xo?Promise.resolve():new Promise((W,ne)=>{$.add([W,ne])})}function X(W){return O||(O=!W,V(),$.list().forEach(([ne,J])=>W?J(W):ne()),$.reset()),W}function ie(W,ne,J,ke){const{scrollBehavior:We}=e;if(!tc||!We)return Promise.resolve();const Ve=!J&&ice(xP(W.fullPath,0))||(ke||!J)&&history.state&&history.state.scroll||null;return At().then(()=>We(W,ne,Ve)).then(H=>H&&nce(H)).catch(H=>M(H,W,ne))}const Z=W=>i.go(W);let G;const le=new Set,ee={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:P,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:N.add,isReady:Y,install(W){W.component("RouterLink",Oce),W.component("RouterView",Fce),W.config.globalProperties.$router=ee,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>re(l)}),tc&&!G&&l.value===xo&&(G=!0,C(i.location).catch(ke=>{}));const ne={};for(const ke in xo)Object.defineProperty(ne,ke,{get:()=>l.value[ke],enumerable:!0});W.provide(uy,ee),W.provide(zx,Pp(ne)),W.provide(QS,l);const J=W.unmount;le.add(W),W.unmount=function(){le.delete(W),le.size<1&&(u=xo,B&&B(),B=null,l.value=xo,G=!1,O=!1),J()}}};function ue(W){return W.reduce((ne,J)=>ne.then(()=>I(J)),Promise.resolve())}return ee}function ds(){return ft(uy)}function Pd(e){return ft(zx)}const $ce=Be({__name:"PrinterStatusMenu",setup(e){const t=z(!1),n=ds(),r=wn(),i=Fr(),a=L(()=>r.printers.length),s=L(()=>i.printingCount),o=L(()=>i.operationalNotPrintingCount),l=L(()=>r.maintenanceCount),u=L(()=>r.disconnectedCount),c=L(()=>r.disabledCount);function d(){t.value=!1,n.push("/")}return(p,h)=>(F(),Q(ls,{modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=g=>t.value=g),"close-on-content-click":!1,location:"bottom","min-width":"300"},{activator:m(({props:g})=>[f(te,ve({variant:"tonal"},g,{class:"mr-2"}),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...h[1]||(h[1]=[_("dashboard",-1)])]),_:1}),_(" "+U(a.value)+" Printers ",1)]),_:1},16)]),default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...h[2]||(h[2]=[_("dashboard",-1)])]),_:1}),h[3]||(h[3]=_(" Printer Status ",-1))]),_:1}),f(Ye,{class:"pa-0"},{default:m(()=>[f(Mr,{density:"compact"},{default:m(()=>[f(wt,null,{prepend:m(()=>[f(j,{color:"success"},{default:m(()=>[...h[4]||(h[4]=[_("print",-1)])]),_:1})]),append:m(()=>[f(Ke,{size:"small",color:"success"},{default:m(()=>[_(U(s.value),1)]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...h[5]||(h[5]=[_("Printing",-1)])]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,{color:"info"},{default:m(()=>[...h[6]||(h[6]=[_("ac_unit",-1)])]),_:1})]),append:m(()=>[f(Ke,{size:"small",color:"info"},{default:m(()=>[_(U(o.value),1)]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...h[7]||(h[7]=[_("Operational",-1)])]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,{color:"warning"},{default:m(()=>[...h[8]||(h[8]=[_("handyman",-1)])]),_:1})]),append:m(()=>[f(Ke,{size:"small",color:"warning"},{default:m(()=>[_(U(l.value),1)]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...h[9]||(h[9]=[_("Maintenance",-1)])]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,{color:"error"},{default:m(()=>[...h[10]||(h[10]=[_("usb_off",-1)])]),_:1})]),append:m(()=>[f(Ke,{size:"small",color:"error"},{default:m(()=>[_(U(u.value),1)]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...h[11]||(h[11]=[_("Disconnected",-1)])]),_:1})]),_:1}),f(wt,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...h[12]||(h[12]=[_("print_disabled",-1)])]),_:1})]),append:m(()=>[f(Ke,{size:"small"},{default:m(()=>[_(U(c.value),1)]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...h[13]||(h[13]=[_("Disabled",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),f(rn,null,{default:m(()=>[f(te,{variant:"tonal",color:"primary",block:"","prepend-icon":"dashboard",onClick:d},{default:m(()=>[...h[14]||(h[14]=[_(" View Dashboard ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class fc extends Ei{static async getGlobalQueue(t=1,n=50){const r=`${Se.printQueueRoute}?page=${t}&pageSize=${n}`;return this.get(r)}static async getPrinterQueue(t){const n=`${Se.printQueueRoute}/${t}`;return this.get(n)}static async addToQueue(t,n,r){const i=`${Se.printQueueRoute}/${t}/add/${n}`;return this.post(i,{position:r})}static async removeFromQueue(t,n){const r=`${Se.printQueueRoute}/${t}/${n}`;return this.delete(r)}static async reorderQueue(t,n){const r=`${Se.printQueueRoute}/${t}/reorder`;return this.put(r,{jobIds:n})}static async clearQueue(t){const n=`${Se.printQueueRoute}/${t}/clear`;return this.delete(n)}static async getNextInQueue(t){const n=`${Se.printQueueRoute}/${t}/next`;return this.get(n)}static async processQueue(t){const n=`${Se.printQueueRoute}/${t}/process`;return this.post(n)}static async submitToPrinter(t,n){const r=`${Se.printQueueRoute}/${n}/submit/${t}`;return this.post(r)}}const Vce="global-queue";function Bce(e){const t=new Map;e.items.forEach(r=>{t.has(r.fileName)||t.set(r.fileName,{jobId:r.jobId,fileName:r.fileName,skuCount:1,totalQueued:0,printers:[]});const i=t.get(r.fileName);i.totalQueued++,i.printers.push({printerId:r.printerId,printerName:r.printerName,queuePosition:r.queuePosition})});const n=Array.from(t.values());return{totalJobs:e.totalCount,totalPlates:n.length,plates:n}}const q$=(e=!0)=>Id({queryKey:[Vce],queryFn:async()=>{const t=await fc.getGlobalQueue();return Bce(t)},enabled:e,staleTime:1e3*30,refetchInterval:1e3*60}),Uce=be({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:et,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...Qe(),...ul({location:"top end"}),...mr(),...zt(),...vn(),...Cd({transition:"scale-rotate-transition"}),...Vr()},"VBadge"),Rd=De()({name:"VBadge",inheritAttrs:!1,props:Uce(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:r}=$n(()=>e.color),{roundedClasses:i}=Er(e),{t:a}=Ur(),{textColorClasses:s,textColorStyles:o}=Gi(()=>e.textColor),{themeClasses:l}=rx(),{locationStyles:u}=Pu(e,!0,d=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(d)?Number(e.offsetY??0):["left","right"].includes(d)?Number(e.offsetX??0):0)),{dimensionStyles:c}=Br(e);return Fe(()=>{const d=Number(e.content),p=!e.max||isNaN(d)?e.content:d<=Number(e.max)?d:`${e.max}+`,[h,g]=aS(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return f(e.tag,ve({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},g,{style:e.style}),{default:()=>[E("div",{class:"v-badge__wrapper"},[t.slots.default?.(),f(pa,{transition:e.transition},{default:()=>[un(E("span",ve({class:["v-badge__badge",l.value,n.value,i.value,s.value],style:[r.value,o.value,c.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":a(e.label,d),"aria-live":"polite",role:"status"},h),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?f(j,{icon:e.icon},null):p]),[[ai,e.modelValue]])]})])]})}),{}}}),jce={class:"text-center"},zce={class:"text-body-2 text-medium-emphasis"},Hce={class:"text-caption"},Wce=Be({__name:"QueueMenu",setup(e){const t=z(!1),{data:n,isLoading:r,error:i}=q$(),a=L(()=>n.value?.totalJobs||0),s=L(()=>n.value?.totalPlates||0),o=L(()=>n.value?.totalJobs||0),l=L(()=>n.value?.plates||[]),u=L(()=>i.value?.message||null);return(c,d)=>(F(),fe("div",jce,[f(ls,{modelValue:t.value,"onUpdate:modelValue":d[1]||(d[1]=p=>t.value=p),"close-on-content-click":!1,location:"bottom",width:"600"},{activator:m(({props:p})=>[f(te,ve({color:a.value?"primary":"",variant:"tonal",class:"mr-2"},p),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...d[2]||(d[2]=[_("queue",-1)])]),_:1}),_(" Queue ("+U(a.value)+") ",1),a.value>0?(F(),Q(Rd,{key:0,content:a.value,color:"primary",inline:"",class:"ml-2"},null,8,["content"])):ae("",!0)]),_:1},16,["color"])]),default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...d[3]||(d[3]=[_("queue",-1)])]),_:1}),d[4]||(d[4]=_(" Print Queue - Global Plate View ",-1)),f(Tt),f(Ke,{size:"small",color:"primary"},{default:m(()=>[_(U(s.value)+" Plates",1)]),_:1})]),_:1}),f(mt),re(r)?(F(),Q(Ye,{key:0,class:"text-center py-8"},{default:m(()=>[f(Qn,{indeterminate:"",color:"primary"}),d[5]||(d[5]=E("p",{class:"text-body-2 mt-4"},"Loading queue...",-1))]),_:1})):u.value?(F(),Q(Ye,{key:1,class:"text-center py-8"},{default:m(()=>[f(j,{size:"64",color:"error",class:"mb-4"},{default:m(()=>[...d[6]||(d[6]=[_("error",-1)])]),_:1}),d[7]||(d[7]=E("h3",{class:"text-h6 mb-2"},"Failed to Load Queue",-1)),E("p",zce,U(u.value),1)]),_:1})):a.value===0?(F(),Q(Ye,{key:2,class:"text-center py-8"},{default:m(()=>[f(j,{size:"64",color:"surface-variant",class:"mb-4"},{default:m(()=>[...d[8]||(d[8]=[_("inbox",-1)])]),_:1}),d[9]||(d[9]=E("h3",{class:"text-h6 mb-2"},"Queue is Empty",-1)),d[10]||(d[10]=E("p",{class:"text-body-2 text-medium-emphasis"}," No jobs are currently queued for printing. ",-1))]),_:1})):(F(),Q(Mr,{key:3,class:"queue-list",style:{"max-height":"400px","overflow-y":"auto"}},{default:m(()=>[(F(!0),fe(Ne,null,Zt(l.value,p=>(F(),Q(wt,{key:p.jobId,lines:"two"},{prepend:m(()=>[f(jn,{color:"primary",size:"48"},{default:m(()=>[E("strong",null,U(p.skuCount),1)]),_:2},1024)]),append:m(()=>[f(Ke,{size:"small",color:"info"},{default:m(()=>[_(U(p.totalQueued),1)]),_:2},1024)]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(p.fileName),1)]),_:2},1024),f(Ou,null,{default:m(()=>[_(" SKU Count: "+U(p.skuCount)+" | Queued: "+U(p.totalQueued)+"x ",1),d[11]||(d[11]=E("br",null,null,-1)),E("span",Hce," Printers: "+U(p.printers.map(h=>h.printerName).join(", ")),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})),a.value>0?(F(),Q(mt,{key:4})):ae("",!0),f(rn,null,{default:m(()=>[f(Ke,{size:"small",variant:"text"},{default:m(()=>[f(j,{size:"small",class:"mr-1"},{default:m(()=>[...d[12]||(d[12]=[_("inventory",-1)])]),_:1}),_(" "+U(o.value)+" total jobs ",1)]),_:1}),f(Tt),f(te,{variant:"text",onClick:d[0]||(d[0]=p=>t.value=!1)},{default:m(()=>[...d[13]||(d[13]=[_(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),Gce=Cn(Wce,[["__scopeId","data-v-6247b76d"]]);function om(){const e=z([]),t=z([]),n=z([]),r=z([]),i=async()=>{r.value=await ca.getTagsWithPrinters(),n.value=r.value.map(u=>({id:u.id,name:u.name,color:u.color}))},a=u=>e.value.length===0?!0:r.value.some(c=>e.value.includes(c.id)&&c.printers.some(d=>d.printerId===u)),s=u=>t.value.length===0?!0:t.value.includes(u.printerType);return{selectedTags:e,selectedPrinterTypes:t,tags:n,tagsWithPrinters:r,loadTags:i,matchesTagFilter:a,matchesPrinterTypeFilter:s,filterPrinters:u=>u.filter(c=>a(c.id)&&s(c)),clearFilters:()=>{e.value=[],t.value=[]}}}const Ad=Be({inheritAttrs:!1,__name:"PrinterTagFilter",props:{modelValue:{},tags:{},label:{default:"Filter by tags"},prependInnerIcon:{default:"label"},prependIcon:{},variant:{default:"outlined"},density:{default:"compact"},multiple:{type:Boolean,default:!0},chips:{type:Boolean,default:!0},closableChips:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},hideDetails:{type:Boolean,default:!0},hideWhenEmpty:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e){return(t,n)=>e.tags.length||!e.hideWhenEmpty?(F(),Q(mi,ve({key:0},t.$attrs,{"model-value":e.modelValue,items:e.tags,"item-title":"name","item-value":"id",label:e.label,"prepend-inner-icon":e.prependInnerIcon,"prepend-icon":e.prependIcon,variant:e.variant,density:e.density,multiple:e.multiple,chips:e.chips,"closable-chips":e.closableChips,clearable:e.clearable,"hide-details":e.hideDetails,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r))}),{chip:m(({item:r,props:i})=>[f(Ke,ve(i,{color:r.raw.color}),{default:m(()=>[_(U(r.title),1)]),_:2},1040,["color"])]),item:m(({item:r,props:i})=>[f(wt,lv(wv(i)),{prepend:m(()=>[f(Ke,{color:r.raw.color,size:"x-small",variant:"flat",class:"mr-2"},{default:m(()=>[f(j,{size:"x-small"},{default:m(()=>[...n[1]||(n[1]=[_("label",-1)])]),_:1})]),_:1},8,["color"])]),_:2},1040)]),_:1},16,["model-value","items","label","prepend-inner-icon","prepend-icon","variant","density","multiple","chips","closable-chips","clearable","hide-details"])):ae("",!0)}}),Od=Be({inheritAttrs:!1,__name:"PrinterTypeFilter",props:{modelValue:{},label:{default:"Filter by type"},prependInnerIcon:{default:"category"},prependIcon:{},variant:{default:"outlined"},density:{default:"compact"},multiple:{type:Boolean,default:!0},chips:{type:Boolean,default:!0},closableChips:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},hideDetails:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e){const t=yne;return(n,r)=>(F(),Q(mi,ve(n.$attrs,{"model-value":e.modelValue,items:re(t),"item-title":"name","item-value":"value",label:e.label,"prepend-inner-icon":e.prependInnerIcon,"prepend-icon":e.prependIcon,variant:e.variant,density:e.density,multiple:e.multiple,chips:e.chips,"closable-chips":e.closableChips,clearable:e.clearable,"hide-details":e.hideDetails,"onUpdate:modelValue":r[0]||(r[0]=i=>n.$emit("update:modelValue",i))}),null,16,["model-value","items","label","prepend-inner-icon","prepend-icon","variant","density","multiple","chips","closable-chips","clearable","hide-details"]))}}),qce={class:"text-center"},Kce={class:"d-flex ga-2 mb-3"},Yce=Be({__name:"PrintJobsMenu",setup(e){const t=Fr(),n=z(""),r=z(!1),{selectedTags:i,selectedPrinterTypes:a,tags:s,loadTags:o,matchesTagFilter:l,matchesPrinterTypeFilter:u}=om();Nt(async()=>{await o()});const c=L(()=>t.printersWithJob.filter(h=>{const v=h.job?.job?.file.name?.toLowerCase()||"",y=h.printer.printerURL?.toLowerCase()||"",b=h.printer.name?.toLowerCase()||"",S=`${v} ${y} ${b}`,w=!n.value||S.includes(n.value.toLowerCase()),C=l(h.printer.id),P=u(h.printer);return w&&C&&P})),d=L(()=>c.value.length||0);function p(h){return h?h?.toFixed(0):""}return Oe(r,()=>{n.value=""}),(h,g)=>(F(),fe("div",qce,[f(ls,{modelValue:r.value,"onUpdate:modelValue":g[4]||(g[4]=v=>r.value=v),"close-on-content-click":!1,location:"bottom",width:"800"},{activator:m(({props:v})=>[f(te,ve({color:d.value?"success":"",variant:"tonal"},v),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[5]||(g[5]=[_("work",-1)])]),_:1}),_(" Active Jobs ("+U(d.value)+") ",1),d.value>0?(F(),Q(Rd,{key:0,content:d.value,color:"success",inline:"",class:"ml-2"},null,8,["content"])):ae("",!0)]),_:1},16,["color"])]),default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[6]||(g[6]=[_("work",-1)])]),_:1}),g[7]||(g[7]=_(" Active Print Jobs ",-1)),f(Tt),f(Ke,{size:"small",color:"success"},{default:m(()=>[_(U(d.value),1)]),_:1})]),_:1}),f(Ye,{class:"pa-3"},{default:m(()=>[f(Et,{modelValue:n.value,"onUpdate:modelValue":g[0]||(g[0]=v=>n.value=v),clearable:"",label:"Search",placeholder:"Search by filename or printer name...","prepend-inner-icon":"search",variant:"outlined",density:"compact","hide-details":"",class:"mb-3"},null,8,["modelValue"]),E("div",Kce,[f(Ad,{modelValue:re(i),"onUpdate:modelValue":g[1]||(g[1]=v=>Ot(i)?i.value=v:null),tags:re(s),label:"Filter by tags",style:{flex:"1"}},null,8,["modelValue","tags"]),f(Od,{modelValue:re(a),"onUpdate:modelValue":g[2]||(g[2]=v=>Ot(a)?a.value=v:null),label:"Filter by type",style:{flex:"1"}},null,8,["modelValue"])])]),_:1}),f(mt),f(Mr,{style:{"overflow-y":"auto","flex-shrink":"1"}},{default:m(()=>[d.value?ae("",!0):(F(),Q(wt,{key:0},{default:m(()=>[...g[8]||(g[8]=[_(" No active prints ",-1)])]),_:1})),(F(!0),fe(Ne,null,Zt(c.value,({printer:v,job:y})=>(F(),Q(wt,{key:v.id,lines:"two"},{prepend:m(()=>[f(jn,{size:"70"},{default:m(()=>[f(Qn,{"model-value":y?.progress?.completion,width:5,color:"green",size:"50"},{default:m(()=>[_(U(p(y.progress?.completion)+"%"||""),1)]),_:2},1032,["model-value"])]),_:2},1024)]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(y.job?.file?.name),1)]),_:2},1024),f(Ou,null,{default:m(()=>[_(" Elapsed: "+U(Math.round(y?.progress.printTime??0/60))+" minutes ",1),g[9]||(g[9]=E("br",null,null,-1)),_(" Printer: "+U(v.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"tonal",onClick:g[3]||(g[3]=v=>r.value=!1)},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[10]||(g[10]=[_("close",-1)])]),_:1}),g[11]||(g[11]=_(" Close ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),Hx=Yi("profile",{state:()=>({username:null,isDemoUser:null,userId:null}),actions:{async getProfile(){return await ys.getProfile().then(e=>{this.username=e.username,this.userId=e.id,this.isDemoUser=e.isDemoUser})}}}),fn={Home:"Home",Dashboard:"Dashboard",Login:"Login",Registration:"Registration",PrintersView:"PrintersView",Settings:"Settings",CameraGridView:"CameraGridView",PrintJobs:"Print Jobs",Files:"Files",About:"About",PermissionDenied:"PermissionDenied",NotFound:"NotFound",FirstTimeSetup:"FirstTimeSetup"};async function Xce(e,t){return e.push({name:t})}async function K$(e){if(e.currentRoute.value.path==="/login"){console.log("routeToLogin: already at login page");return}return Xce(e,fn.Login)}const Jce=Yi("tracked-uploads",()=>{const e=z([]),t=L(()=>e.value.filter(r=>!r.completed));function n(r){e.value.splice(0),e.value.push(...r)}return{current:e,setUploads:n,activeUploads:t}}),Ea=Object.create(null);Ea.open="0";Ea.close="1";Ea.ping="2";Ea.pong="3";Ea.message="4";Ea.upgrade="5";Ea.noop="6";const Ch=Object.create(null);Object.keys(Ea).forEach(e=>{Ch[Ea[e]]=e});const ZS={type:"error",data:"parser error"},Y$=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",X$=typeof ArrayBuffer=="function",J$=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Wx=({type:e,data:t},n,r)=>Y$&&t instanceof Blob?n?r(t):FP(t,r):X$&&(t instanceof ArrayBuffer||J$(t))?n?r(t):FP(new Blob([t]),r):r(Ea[e]+(t||"")),FP=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function MP(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let qb;function Qce(e,t){if(Y$&&e.data instanceof Blob)return e.data.arrayBuffer().then(MP).then(t);if(X$&&(e.data instanceof ArrayBuffer||J$(e.data)))return t(MP(e.data));Wx(e,!1,n=>{qb||(qb=new TextEncoder),t(qb.encode(n))})}const $P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<$P.length;e++)sf[$P.charCodeAt(e)]=e;const Zce=e=>{let t=e.length*.75,n=e.length,r,i=0,a,s,o,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)a=sf[e.charCodeAt(r)],s=sf[e.charCodeAt(r+1)],o=sf[e.charCodeAt(r+2)],l=sf[e.charCodeAt(r+3)],c[i++]=a<<2|s>>4,c[i++]=(s&15)<<4|o>>2,c[i++]=(o&3)<<6|l&63;return u},ede=typeof ArrayBuffer=="function",Gx=(e,t)=>{if(typeof e!="string")return{type:"message",data:Q$(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:tde(e.substring(1),t)}:Ch[n]?e.length>1?{type:Ch[n],data:e.substring(1)}:{type:Ch[n]}:ZS},tde=(e,t)=>{if(ede){const n=Zce(e);return Q$(n,t)}else return{base64:!0,data:e}},Q$=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Z$="",nde=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,s)=>{Wx(a,!1,o=>{r[s]=o,++i===n&&t(r.join(Z$))})})},rde=(e,t)=>{const n=e.split(Z$),r=[];for(let i=0;i<n.length;i++){const a=Gx(n[i],t);if(r.push(a),a.type==="error")break}return r};function ide(){return new TransformStream({transform(e,t){Qce(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Kb;function Wm(e){return e.reduce((t,n)=>t+n.length,0)}function Gm(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function sde(e,t){Kb||(Kb=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(s,o){for(n.push(s);;){if(r===0){if(Wm(n)<1)break;const l=Gm(n,1);a=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Wm(n)<2)break;const l=Gm(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Wm(n)<8)break;const l=Gm(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),c=u.getUint32(0);if(c>Math.pow(2,21)-1){o.enqueue(ZS);break}i=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Wm(n)<i)break;const l=Gm(n,i);o.enqueue(Gx(a?l:Kb.decode(l),t)),r=0}if(i===0||i>e){o.enqueue(ZS);break}}}})}const e3=4;function fr(e){if(e)return ade(e)}function ade(e){for(var t in fr.prototype)e[t]=fr.prototype[t];return e}fr.prototype.on=fr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};fr.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};fr.prototype.off=fr.prototype.removeListener=fr.prototype.removeAllListeners=fr.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};fr.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};fr.prototype.emitReserved=fr.prototype.emit;fr.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};fr.prototype.hasListeners=function(e){return!!this.listeners(e).length};const cy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),bs=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ode="arraybuffer";function t3(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const lde=bs.setTimeout,ude=bs.clearTimeout;function dy(e,t){t.useNativeTimers?(e.setTimeoutFn=lde.bind(bs),e.clearTimeoutFn=ude.bind(bs)):(e.setTimeoutFn=bs.setTimeout.bind(bs),e.clearTimeoutFn=bs.clearTimeout.bind(bs))}const cde=1.33;function dde(e){return typeof e=="string"?fde(e):Math.ceil((e.byteLength||e.size)*cde)}function fde(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function n3(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function pde(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function mde(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class hde extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class qx extends fr{constructor(t){super(),this.writable=!1,dy(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new hde(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Gx(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=pde(t);return n.length?"?"+n:""}}class gde extends qx{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};rde(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,nde(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=n3()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let r3=!1;try{r3=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const vde=r3;function yde(){}class bde extends gde{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Sc=class kh extends fr{constructor(t,n,r){super(),this.createRequest=t,dy(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=t3(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=kh.requestsCount++,kh.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=yde,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete kh.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Sc.requestsCount=0;Sc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",VP);else if(typeof addEventListener=="function"){const e="onpagehide"in bs?"pagehide":"unload";addEventListener(e,VP,!1)}}function VP(){for(let e in Sc.requests)Sc.requests.hasOwnProperty(e)&&Sc.requests[e].abort()}const Sde=(function(){const e=i3({xdomain:!1});return e&&e.responseType!==null})();class wde extends bde{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=Sde&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Sc(i3,this.uri(),t)}}function i3(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||vde))return new XMLHttpRequest}catch{}if(!t)try{return new bs[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const s3=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ede extends qx{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=s3?{}:t3(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Wx(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}i&&cy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=n3()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Yb=bs.WebSocket||bs.MozWebSocket;class xde extends Ede{createSocket(t,n,r){return s3?new Yb(t,n,r):n?new Yb(t,n):new Yb(t)}doWrite(t,n){this.ws.send(n)}}class Cde extends qx{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=sde(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=ide();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const a=()=>{r.read().then(({done:o,value:l})=>{o||(this.onPacket(l),a())}).catch(o=>{})};a();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&cy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const kde={websocket:xde,webtransport:Cde,polling:wde},_de=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Tde=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ew(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=_de.exec(e||""),a={},s=14;for(;s--;)a[Tde[s]]=i[s]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=Ide(a,a.path),a.queryKey=Pde(a,a.query),a}function Ide(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Pde(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}const tw=typeof addEventListener=="function"&&typeof removeEventListener=="function",_h=[];tw&&addEventListener("offline",()=>{_h.forEach(e=>e())},!1);class Ho extends fr{constructor(t,n){if(super(),this.binaryType=ode,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ew(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ew(n.host).host);dy(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=mde(this.opts.query)),tw&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},_h.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=e3,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ho.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Ho.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=dde(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cy(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Ho.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),tw&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=_h.indexOf(this._offlineEventListener);r!==-1&&_h.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ho.protocol=e3;class Rde extends Ho{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Ho.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ho.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function a(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const p=new Error("probe error: "+d);p.transport=n.name,a(),this.emitReserved("upgradeError",p)};function o(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&a()}const c=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",o),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",o),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Ade=class extends Rde{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>kde[i]).filter(i=>!!i)),super(t,r)}};function Ode(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=ew(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const Nde=typeof ArrayBuffer=="function",Dde=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,a3=Object.prototype.toString,Lde=typeof Blob=="function"||typeof Blob<"u"&&a3.call(Blob)==="[object BlobConstructor]",Fde=typeof File=="function"||typeof File<"u"&&a3.call(File)==="[object FileConstructor]";function Kx(e){return Nde&&(e instanceof ArrayBuffer||Dde(e))||Lde&&e instanceof Blob||Fde&&e instanceof File}function Th(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Th(e[n]))return!0;return!1}if(Kx(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Th(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Th(e[n]))return!0;return!1}function Mde(e){const t=[],n=e.data,r=e;return r.data=nw(n,t),r.attachments=t.length,{packet:r,buffers:t}}function nw(e,t){if(!e)return e;if(Kx(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=nw(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=nw(e[r],t));return n}return e}function $de(e,t){return e.data=rw(e.data,t),delete e.attachments,e}function rw(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=rw(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=rw(e[n],t));return e}const Vde=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Bde=5;var Jt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Jt||(Jt={}));class Ude{constructor(t){this.replacer=t}encode(t){return(t.type===Jt.EVENT||t.type===Jt.ACK)&&Th(t)?this.encodeAsBinary({type:t.type===Jt.EVENT?Jt.BINARY_EVENT:Jt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Jt.BINARY_EVENT||t.type===Jt.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Mde(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function BP(e){return Object.prototype.toString.call(e)==="[object Object]"}class Yx extends fr{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Jt.BINARY_EVENT;r||n.type===Jt.BINARY_ACK?(n.type=r?Jt.EVENT:Jt.ACK,this.reconstructor=new jde(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Kx(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Jt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Jt.BINARY_EVENT||r.type===Jt.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(a,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const a=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Yx.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Jt.CONNECT:return BP(n);case Jt.DISCONNECT:return n===void 0;case Jt.CONNECT_ERROR:return typeof n=="string"||BP(n);case Jt.EVENT:case Jt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Vde.indexOf(n[0])===-1);case Jt.ACK:case Jt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class jde{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=$de(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const zde=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Yx,Encoder:Ude,get PacketType(){return Jt},protocol:Bde},Symbol.toStringTag,{value:"Module"}));function Us(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Hde=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class o3 extends fr{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Us(t,"open",this.onopen.bind(this)),Us(t,"packet",this.onpacket.bind(this)),Us(t,"error",this.onerror.bind(this)),Us(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,a;if(Hde.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:Jt.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const c=this.ids++,d=n.pop();this._registerAckCallback(c,d),s.id=c}const o=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!o||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},i),s=(...o)=>{this.io.clearTimeoutFn(a),n.apply(this,o)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const a=(s,o)=>s?i(s):r(o);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Jt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Jt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Jt.EVENT:case Jt.BINARY_EVENT:this.onevent(t);break;case Jt.ACK:case Jt.BINARY_ACK:this.onack(t);break;case Jt.DISCONNECT:this.ondisconnect();break;case Jt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Jt.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Jt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Nd(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Nd.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Nd.prototype.reset=function(){this.attempts=0};Nd.prototype.setMin=function(e){this.ms=e};Nd.prototype.setMax=function(e){this.max=e};Nd.prototype.setJitter=function(e){this.jitter=e};class iw extends fr{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,dy(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Nd({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||zde;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Ade(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Us(n,"open",function(){r.onopen(),t&&t()}),a=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},s=Us(n,"error",a);if(this._timeout!==!1){const o=this._timeout,l=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},o);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Us(t,"ping",this.onping.bind(this)),Us(t,"data",this.ondata.bind(this)),Us(t,"error",this.onerror.bind(this)),Us(t,"close",this.onclose.bind(this)),Us(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new o3(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Kd={};function Ih(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Ode(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,s=Kd[i]&&a in Kd[i].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return o?l=new iw(r,t):(Kd[i]||(Kd[i]=new iw(r,t)),l=Kd[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ih,{Manager:iw,Socket:o3,io:Ih,connect:Ih});let Wde=0;const l3=Yi("DebugSocket",{state:()=>({messages:[],maxMessages:500,enabled:!1,paused:!1,filter:""}),getters:{filteredMessages(){if(!this.filter)return this.messages;const e=this.filter.toLowerCase();return this.messages.filter(t=>t.event.toLowerCase().includes(e)||JSON.stringify(t.data).toLowerCase().includes(e))},messageCount(){return this.messages.length}},actions:{enable(){this.enabled=!0},disable(){this.enabled=!1},togglePause(){this.paused=!this.paused},logMessage(e,t,n){if(!this.enabled||this.paused)return;const r={id:++Wde,timestamp:new Date,direction:e,event:t,data:n};this.messages.push(r),this.messages.length>this.maxMessages&&(this.messages=this.messages.slice(-this.maxMessages))},clearMessages(){this.messages=[]},setFilter(e){this.filter=e},setMaxMessages(e){this.maxMessages=e,this.messages.length>e&&(this.messages=this.messages.slice(-e))}}}),Dd=Yi("Overlay",{state:()=>({loading:!0,overlay:!0,overlayMessage:"",serverDisconnected:!1,errorCaught:null,errorUrl:null,errorResponse:null,isRetrying:!1,nextRetryTime:null,isTestingConnection:!1}),actions:{setLoading(e){this.loading=e},setOverlay(e,t=""){this.overlay=e,this.overlayMessage=t},hideOverlay(){this.overlay=!1,this.overlayMessage="",this.loading=!1},setServerDisconnected(e){this.serverDisconnected=e,e?(HE().closeAllDialogs(),sm().closeFileExplorer(),this.overlay=!0,this.loading=!1):(this.overlay=!1,this.loading=!1)},setError(e,t=null,n=null){this.errorCaught=e,this.errorUrl=t,this.errorResponse=n,e&&(this.loading=!1)},clearError(){this.errorCaught=null,this.errorUrl=null,this.errorResponse=null},startRetry(e){this.isRetrying=!0,this.nextRetryTime=Date.now()+e},incrementRetry(e){this.nextRetryTime=Date.now()+e},resetRetry(){this.isRetrying=!1,this.nextRetryTime=null,this.isTestingConnection=!1},setTestingConnection(e){this.isTestingConnection=e},retryNow(){this.nextRetryTime=Date.now()}}});let Dn=null;const vr=An({connected:!1,setup:!1,id:"",active:!1});class Gde{printerStore=wn();floorStore=Is();printerStateStore=Fr();testPrinterStore=Ux();trackedUploadsStore=Jce();debugSocketStore=l3();appLoaderStore=Dd();snackbar=en();authStore=_s();socketState(){return Dn?{setup:!0,connected:Dn.connected,active:Dn.active,id:Dn.id}:(console.debug("Returning default socket state, socket was not set up"),{setup:!1})}async setupSocketConnection(){if(console.debug("Setting up socket.io client"),vr.setup)throw new Error("Cant setup socket, socket already created");vr.setup=!1;const t=await zE();this.authStore.loadTokens(),Dn=Ih(t,{auth:async n=>{if(!this.authStore.loginRequired)return n({});try{this.authStore.isLoginExpired&&(console.warn("Login expired, attempting to refresh token"),await this.authStore.refreshLoginToken()),this.authStore.token?n({token:this.authStore.token}):(console.error("No token available after refresh"),n({}))}catch(r){console.error("Token refresh failed:",r),n({})}}}),this.setupConnectionHandlers(),this.registerMessageHandlers(),vr.setup=!0}disconnect(){if(!Dn)throw new Error("Cant disconnect socket, socket not created");Dn.close(),Dn=null,vr.setup=!1,vr.connected=!1,vr.active=!1,vr.id=""}reconnect(){if(!Dn)throw new Error("Cant reconnect socket, socket not created");console.debug("Resetting socket connection. Previous state:",{connected:Dn.connected,active:Dn.active,id:Dn.id}),Dn.close(),Dn.connect()}onMessage(t){t.trackedUploads.current?.length&&(this.trackedUploadsStore.setUploads(t?.trackedUploads.current),this.trackedUploadsStore.activeUploads.forEach(n=>{this.snackbar.openProgressMessage(n.correlationToken,n.multerFile.originalname,(n.progress||0)*100,n.completed)})),t.floors?.length&&this.floorStore.saveFloors(t.floors),t.printers?.length&&this.printerStore.setPrinters(t.printers),t.socketStates&&this.printerStateStore.setSocketStates(t.socketStates),t.printerEvents&&this.printerStateStore.setPrinterEvents(t.printerEvents)}setupConnectionHandlers(){if(!Dn)throw new Error("Cant bind socket events, socket not created");Dn.on("connect",()=>{vr.id=Dn?.id??"",vr.connected=!0,vr.active=Dn?.active??!1,console.debug("Socket connected:",vr.id,"Active:",vr.active),this.appLoaderStore.setServerDisconnected(!1),this.appLoaderStore.resetRetry()}),Dn.on("disconnect",()=>{vr.id="",vr.connected=!1,vr.active=!1,console.debug("Socket disconnected"),this.appLoaderStore.setServerDisconnected(!0),pi("backend:start-retry").emit()}),Dn.on("connect_error",async t=>{if(console.error("Socket connection error:",t.message),t.message.includes("Authentication")||t.message.includes("jwt")||t.message.includes("token")||t.message.includes("auth")){console.warn("Possible JWT authentication issue detected");try{await this.authStore.refreshLoginToken(),this.reconnect()}catch{console.error("Error refreshing token"),this.disconnect(),await this.authStore.logout()}}else this.appLoaderStore.setServerDisconnected(!0)})}registerMessageHandlers(){if(!Dn)throw new Error("Cant bind socket app events, socket not created");Dn.onAny((t,...n)=>{this.debugSocketStore.logMessage("in",t,n.length===1?n[0]:n)}),Dn.on("update",t=>this.onMessage(t)),Dn.on("test-printer-state",t=>{this.testPrinterStore.saveEvent(t)})}}const qde=be({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Kde(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n,layoutSize:r}=t;let i=0,a=0;const s=z(null),o=Le(0),l=Le(0),u=Le(0),c=Le(!1),d=Le(!1),p=Le(!1),h=Le(!1),g=Le(!0),v=L(()=>Number(e.scrollThreshold)),y=L(()=>On((v.value-o.value)/v.value||0));function b(P){const k="window"in P?window.innerHeight:P.clientHeight,R="window"in P?document.documentElement.scrollHeight:P.scrollHeight;return{clientHeight:k,scrollHeight:R}}function S(){const P=s.value;if(!P)return;const{clientHeight:k,scrollHeight:R}=b(P),T=R-k,I=r?.value||0,x=v.value+I;g.value=T>x}function w(){S()}function C(){const P=s.value;if(!P||n&&!n.value)return;i=o.value,o.value="window"in P?P.pageYOffset:P.scrollTop;const k=P instanceof Window?document.documentElement.scrollHeight:P.scrollHeight;a!==k&&(k>a&&S(),a=k),d.value=o.value<i,u.value=Math.abs(o.value-v.value);const{clientHeight:R,scrollHeight:T}=b(P),I=o.value+R>=T-5;!d.value&&I&&o.value>=v.value&&g.value&&(h.value=!0);const x=Math.abs(o.value-i)>100,A=o.value<=5;(d.value&&i-o.value>1&&!I||x&&o.value<v.value||A)&&(h.value=!1),p.value=I}return Oe(d,()=>{l.value=l.value||o.value}),Oe(c,()=>{l.value=0}),Nt(()=>{Oe(()=>e.scrollTarget,P=>{const k=P?document.querySelector(P):window;k&&k!==s.value&&(s.value?.removeEventListener("scroll",C),s.value=k,s.value.addEventListener("scroll",C,{passive:!0}),Promise.resolve().then(()=>{S()}))},{immediate:!0}),window.addEventListener("resize",w,{passive:!0})}),wr(()=>{s.value?.removeEventListener("scroll",C),window.removeEventListener("resize",w)}),n&&Oe(n,C,{immediate:!0}),{scrollThreshold:v,currentScroll:o,currentThreshold:u,isScrollActive:c,scrollRatio:y,isScrollingUp:d,savedScroll:l,isAtBottom:p,reachedBottomWhileScrollingDown:h,hasEnoughScrollableSpace:g}}const Yde=be({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...D$(),...RM(),...qde(),height:{type:[Number,String],default:64}},"VAppBar"),u3=De()({name:"VAppBar",props:Yde(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=z(),i=gt(e,"modelValue"),a=L(()=>{const k=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:k.has("hide"),fullyHide:k.has("fully-hide"),inverted:k.has("inverted"),collapse:k.has("collapse"),elevate:k.has("elevate"),fadeImage:k.has("fade-image")}}),s=L(()=>{const k=a.value;return k.hide||k.fullyHide||k.inverted||k.collapse||k.elevate||k.fadeImage||!i.value}),o=L(()=>{const k=r.value?.contentHeight??0,R=r.value?.extensionHeight??0;return k+R}),{currentScroll:l,scrollThreshold:u,isScrollingUp:c,scrollRatio:d,isAtBottom:p,reachedBottomWhileScrollingDown:h,hasEnoughScrollableSpace:g}=Kde(e,{canScroll:s,layoutSize:o}),v=se(()=>a.value.hide||a.value.fullyHide),y=L(()=>e.collapse||a.value.collapse&&(a.value.inverted?d.value>0:d.value===0)),b=L(()=>e.flat||a.value.fullyHide&&!i.value||a.value.elevate&&(a.value.inverted?l.value>0:l.value===0)),S=L(()=>a.value.fadeImage?a.value.inverted?1-d.value:d.value:void 0),w=L(()=>{if(a.value.hide&&a.value.inverted)return 0;const k=r.value?.contentHeight??0,R=r.value?.extensionHeight??0;return v.value?l.value<u.value||a.value.fullyHide?k+R:k:k+R});zi(()=>!!e.scrollBehavior,()=>{ar(()=>{if(!v.value){i.value=!0;return}if(a.value.inverted){i.value=l.value>u.value;return}if(!g.value){i.value=!0;return}if(h.value){i.value=!1;return}i.value=c.value&&!p.value||l.value<u.value})});const{ssrBootStyles:C}=rm(),{layoutItemStyles:P}=OM({id:e.name,order:L(()=>parseInt(e.order,10)),position:se(()=>e.location),layoutSize:w,elementSize:Le(void 0),active:i,absolute:se(()=>e.absolute)});return Fe(()=>{const k=Ug.filterProps(e);return f(Ug,ve({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...P.value,"--v-toolbar-image-opacity":S.value,height:void 0,...C.value},e.style]},k,{collapse:y.value,flat:b.value}),n)}),{}}}),Xde={key:0,class:"text-h6 font-weight-light text-uppercase ml-1 pl-2 page-title-divider"},Jde={key:0,class:"text-uppercase text--white mr-4"},Qde=Be({__name:"TopBar",setup(e){const t=Hx(),n=_s(),r=ds(),i=Pd(),a={"Print Jobs":{title:"Print Jobs",subtitle:"Track and monitor all your 3D printing jobs"},"Print Queue":{title:"Print Queue",subtitle:"Manage your print queue"},CameraGridView:{title:"Cameras",subtitle:"Monitor your camera feeds"},PrintersView:{title:"Printer List",subtitle:"Manage your 3D printers"},PrinterGrid:{title:"Printer Grid",subtitle:"Monitor your printer farm"},Settings:{title:"Settings",subtitle:"Configure your system"}},s=L(()=>{const h=i.name,g=i.path;return g.startsWith("/settings/")?{"/settings/floors":"Settings - Floors","/settings/printer":"Settings - Printer","/settings/emergency-commands":"Settings - Emergency Commands","/settings/server-protection":"Settings - Server Protection","/settings/user-management":"Settings - Users","/settings/account":"Settings - Account","/settings/software-upgrade":"Settings - Software Upgrade","/settings/diagnostics":"Settings - Diagnostics","/settings/experimental":"Settings - Experimental","/settings/debug-socket":"Settings - SocketIO Debug","/settings/about":"Settings - About"}[g]||"Settings":a[h]?.title||""}),o=[{title:"Open Profile",icon:"mdi:mdi-account",path:"/settings/account"}],l=z(Date.now());Oj(()=>{l.value=Date.now()},1e3);const u=L(()=>{if(!n.tokenClaims?.exp)return"";const h=n.tokenClaims.exp-l.value/1e3;return`${Math.round(h)}s`}),c=L(()=>t.username),d=L(()=>n.isDemoMode);async function p(){await n.logout(!0),await K$(r)}return(h,g)=>{const v=Aue,y=Rue;return F(),Q(u3,{elevation:"0"},{default:m(()=>[f(gu,{class:"text-white d-flex align-center"},{default:m(()=>[g[1]||(g[1]=E("span",{class:"text-uppercase"},[E("span",{class:"font-weight-light"}," FDM "),E("strong",null," Monster ")],-1)),s.value?(F(),fe("span",Xde,U(s.value),1)):ae("",!0)]),_:1}),f(Tt),d.value?(F(),fe("h2",Jde," DEMO MODE ")):ae("",!0),f($ce),f(Gce),f(Yce),re(n).hasAuthToken&&!re(n).isLoginExpired?(F(),Q(ls,{key:1,"close-on-content-click":!1,location:"bottom right","open-on-hover":"",transition:"slide-y-transition"},{activator:m(({props:b})=>[f(te,ve({class:"ml-2",variant:"tonal"},b),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[2]||(g[2]=[_("mdi:mdi-account",-1)])]),_:1}),_(" "+U(c.value),1)]),_:1},16)]),default:m(()=>[f(Mr,null,{default:m(()=>[(F(),fe(Ne,null,Zt(o,(b,S)=>f(wt,{key:S,to:b.path,title:b.title,"prepend-icon":b.icon,link:""},null,8,["to","title","prepend-icon"])),64)),re(jb)?(F(),Q(mt,{key:0})):ae("",!0),re(jb)&&u.value?(F(),Q(wt,{key:1,disabled:""},{prepend:m(()=>[f(j,null,{default:m(()=>[...g[3]||(g[3]=[_("schedule",-1)])]),_:1})]),default:m(()=>[f(Gt,{class:"text-caption"},{default:m(()=>[_(" Auth Expiry: "+U(u.value),1)]),_:1})]),_:1})):ae("",!0),re(jb)?(F(),Q(wt,{key:2,disabled:""},{prepend:m(()=>[f(j,null,{default:m(()=>[...g[4]||(g[4]=[_("wifi",-1)])]),_:1})]),default:m(()=>[f(Gt,{class:"text-caption font-monospace"},{default:m(()=>[_(" SocketIO: S"+U(re(vr).setup?1:0)+" C"+U(re(vr).connected?1:0)+" A"+U(re(vr).active?1:0),1)]),_:1}),f(Ou,{class:"text-caption"},{default:m(()=>[_(U(re(vr).id),1)]),_:1})]),_:1})):ae("",!0)]),_:1})]),_:1})):ae("",!0),re(n).loginRequired===!0?(F(),Q(v,{key:2,tooltip:"Go back to login",text:"Logout",icon:"logout",variant:"tonal",onClick:g[0]||(g[0]=b=>p())})):ae("",!0),f(y)]),_:1})}}}),Zde=Cn(Qde,[["__scopeId","data-v-15956eb8"]]),Xx="/assets/logo-CJVdjy51.png",efe={class:"d-flex justify-center align-center logo-container"},tfe=Be({__name:"NavigationBar",setup(e){const t=[["dashboard","Dashboard","/dashboard"],["view_module","Printer Grid","/printer-grid"],["mdi:mdi-printer","Printers","/printer-list"],["mdi:mdi-camera","Cameras","/cameras"],["mdi:mdi-history","Print Jobs","/jobs"],["mdi:mdi-folder","Files","/files"],["mdi:mdi-cog","Settings","/settings"]];return(n,r)=>(F(),Q(Cx,{permanent:"",rail:""},{default:m(()=>[E("div",efe,[f(ri,{alt:"FDM Monster Logo",src:re(Xx),class:"logo-image",transition:"scale-transition"},null,8,["src"])]),f(mt),f(Mr,{density:"compact",nav:""},{default:m(()=>[(F(),fe(Ne,null,Zt(t,([i,a,s],o)=>f(ln,{key:o,location:"end"},{activator:m(({props:l})=>[f(wt,ve({ref_for:!0},l,{to:s,"prepend-icon":i,density:"comfortable","router-link":""}),null,16,["to","prepend-icon"])]),default:m(()=>[E("span",null,U(a),1)]),_:2},1024)),64))]),_:1})]),_:1}))}}),nfe=Cn(tfe,[["__scopeId","data-v-5a908c5c"]]);function rfe(e){const t=Le(e());let n=-1;function r(){clearInterval(n)}function i(){r(),At(()=>t.value=e())}function a(s){const o=s?getComputedStyle(s):{transitionDuration:.2},l=parseFloat(o.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&r()},l)}return Rn(r),{clear:r,time:t,start:a,reset:i}}const ife=be({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...ul({location:"bottom"}),...Ed(),...mr(),...ea(),...vn(),...Nn(nm({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),Jx=De()({name:"VSnackbar",props:ife(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),{positionClasses:i}=xd(e),{scopeId:a}=Au(),{themeClasses:s}=xn(e),{colorClasses:o,colorStyles:l,variantClasses:u}=Tu(e),{roundedClasses:c}=Er(e),d=rfe(()=>Number(e.timeout)),p=z(),h=z(),g=Le(!1),v=Le(0),y=z(),b=ft(lp,void 0);zi(()=>!!b,()=>{const A=AM();ar(()=>{y.value=A.mainStyles.value})}),Oe(r,w),Oe(()=>e.timeout,w),Nt(()=>{r.value&&w()});let S=-1;function w(){d.reset(),window.clearTimeout(S);const A=Number(e.timeout);if(!r.value||A===-1)return;const D=qE(h.value);d.start(D),S=window.setTimeout(()=>{r.value=!1},A)}function C(){d.reset(),window.clearTimeout(S)}function P(){g.value=!0,C()}function k(){g.value=!1,w()}function R(A){v.value=A.touches[0].clientY}function T(A){Math.abs(v.value-A.changedTouches[0].clientY)>50&&(r.value=!1)}function I(){g.value&&k()}const x=L(()=>e.location.split(" ").reduce((A,D)=>(A[`v-snackbar--${D}`]=!0,A),{}));return Fe(()=>{const A=mo.filterProps(e),D=!!(n.default||n.text||e.text);return f(mo,ve({ref:p,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},x.value,i.value,e.class],style:[y.value,e.style]},A,{modelValue:r.value,"onUpdate:modelValue":B=>r.value=B,contentProps:ve({class:["v-snackbar__wrapper",s.value,o.value,c.value,u.value],style:[l.value],onPointerenter:P,onPointerleave:k},A.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:R,onTouchend:T,onAfterLeave:I},a),{default:()=>[ll(!1,"v-snackbar"),e.timer&&!g.value&&E("div",{key:"timer",class:"v-snackbar__timer"},[f(ni,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:d.time.value},null)]),D&&E("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[n.text?.()??e.text,n.default?.()]),n.actions&&f(sn,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[E("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})],activator:n.activator})}),Ci({},p)}}),sfe={class:"d-flex align-start ga-3"},afe={class:"flex-grow-1 min-width-0"},ofe={class:"text-body-1 font-weight-medium text-white mb-3"},lfe={class:"d-flex align-center ga-2 mb-1"},ufe={class:"text-body-2 text-white"},cfe={class:"text-body-2 text-white font-weight-bold"},dfe=Be({__name:"AppProgressSnackbar",setup(e){const t=en(),n=z(!1),r=z(""),i=z([]),a=z(100);function s(u){return i.value.find(c=>c.key===u)}function o(u,c,d=0,p=!1,h=Date.now()+1500){console.log(`[AppProgressSnackbar] Adding ${u} tracker with progress ${d}`),i.value.push({key:u,title:c,value:d,completed:p,startedAt:Date.now(),expiresAt:h,timeoutAt:void 0})}function l(u){i.value=i.value.filter(c=>c.key!==u)}return Nt(()=>{setInterval(()=>{if(i.value.length){for(const u of i.value){const{value:c,completed:d,expiresAt:p,key:h}=u;(d||c>=100)&&p<Date.now()||u.timeoutAt&&u.timeoutAt<Date.now()?l(h):!u.timeoutAt&&p<Date.now()&&(u.timeoutAt=Date.now()+5e3)}i.value.length?(a.value=-1,n.value=!0):(a.value=2e3,r.value="Upload ended",console.debug(`[AppSnackbars] Setting timeout to ${a.value}`))}},1e3),t.onProgressMessage(u=>{const{key:c,value:d,title:p,completed:h}=u,g=s(c);if(g)Math.min(100,d)>=g.value&&(g.expiresAt=Date.now()+1500,g.value=d,g.completed=h);else{if(d>=100)return;o(c,p,d,!1,Date.now()+1500)}r.value="Uploading files"})}),(u,c)=>(F(),Q(Jx,{modelValue:n.value,"onUpdate:modelValue":c[1]||(c[1]=d=>n.value=d),timeout:a.value,location:"bottom right",class:"progress-snackbar",color:"primary",variant:"elevated",rounded:"lg","multi-line":"",width:"450","max-width":"90vw"},{default:m(()=>[E("div",sfe,[f(j,{color:"white",size:"24"},{default:m(()=>[...c[2]||(c[2]=[_(" upload ",-1)])]),_:1}),E("div",afe,[E("div",ofe,U(r.value),1),(F(!0),fe(Ne,null,Zt(i.value,(d,p)=>(F(),fe("div",{key:p,class:"mb-3"},[E("div",lfe,[f(j,{color:"white",size:"16"},{default:m(()=>[_(U(d.completed?"check":d.timeoutAt?"pause":"schedule"),1)]),_:2},1024),E("span",ufe,U(d.title),1),f(Tt),E("span",cfe,U((d.completed?100:d.value).toFixed(1))+"% ",1)]),(F(),Q(ni,{key:d.key,"model-value":d.completed?100:d.value,color:d.timeoutAt?"error":"success",height:"4",rounded:"","bg-color":"rgba(255,255,255,0.3)"},null,8,["model-value","color"]))]))),128))]),f(te,{icon:"close",variant:"text",color:"white",size:"small",class:"ml-2",onClick:c[0]||(c[0]=d=>n.value=!1)})])]),_:1},8,["modelValue","timeout"]))}}),ffe=Cn(dfe,[["__scopeId","data-v-4a864bff"]]),pfe={class:"d-flex align-center ga-3"},mfe={class:"flex-grow-1 min-width-0"},hfe={class:"text-body-1 font-weight-medium text-white"},gfe={key:0,class:"text-body-2 text-white opacity-90 mt-1"},vfe=Be({__name:"AppErrorSnackbar",setup(e){const t=en(),n=z(-1),r=z(!1),i=z(""),a=z("");return Nt(()=>{t.onErrorMessage(s=>{i.value=s.title,a.value=s.subtitle??"",r.value=!0,n.value=s.timeout??1e4})}),(s,o)=>(F(),Q(Jx,{modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=l=>r.value=l),timeout:n.value,location:"bottom right",class:"error-snackbar",color:"error",variant:"elevated",rounded:"lg","multi-line":"",width:"400","max-width":"90vw"},{default:m(()=>[E("div",pfe,[f(j,{color:"white",size:"24"},{default:m(()=>[...o[2]||(o[2]=[_(" error ",-1)])]),_:1}),E("div",mfe,[E("div",hfe,U(i.value),1),a.value?.length?(F(),fe("div",gfe,U(a.value),1)):ae("",!0)]),f(te,{icon:"close",variant:"text",color:"white",size:"small",class:"ml-2",onClick:o[0]||(o[0]=l=>r.value=!1)})])]),_:1},8,["modelValue","timeout"]))}}),yfe=Cn(vfe,[["__scopeId","data-v-3b4e7ea3"]]),bfe={class:"d-flex align-center ga-3"},Sfe={class:"flex-grow-1 min-width-0"},wfe=Be({__name:"AppInfoSnackbar",setup(e){const t=en(),n=z(!1),r=z(""),i=z(""),a=z(2e3),s=z(!1);return Nt(()=>{t.onInfoMessage(o=>{r.value=o.title,i.value=o.subtitle??"",s.value=o.warning??!1,a.value=o.timeout??2e3,n.value=!0})}),(o,l)=>(F(),Q(Jx,{modelValue:n.value,"onUpdate:modelValue":l[1]||(l[1]=u=>n.value=u),timeout:a.value,location:"bottom right",class:"info-snackbar",color:s.value?"warning":"success",variant:"elevated",rounded:"lg","multi-line":"",width:"400","max-width":"90vw"},{default:m(()=>[E("div",bfe,[f(j,{color:s.value?"black":"white",size:"24"},{default:m(()=>[_(U(s.value?"warning":"check_circle"),1)]),_:1},8,["color"]),E("div",Sfe,[E("div",{class:Te(s.value?"text-body-1 font-weight-medium text-black":"text-body-1 font-weight-medium text-white")},U(r.value),3),i.value?.length?(F(),fe("div",{key:0,class:Te(s.value?"text-body-2 text-black opacity-90 mt-1":"text-body-2 text-white opacity-90 mt-1")},U(i.value),3)):ae("",!0)]),f(te,{icon:"close",variant:"text",color:s.value?"black":"white",size:"small",class:"ml-2",onClick:l[0]||(l[0]=u=>n.value=!1)},null,8,["color"])])]),_:1},8,["modelValue","timeout","color"]))}}),Efe=Cn(wfe,[["__scopeId","data-v-6622ec4d"]]),Qx=Yi("Uploads",{state:()=>({queuedUploads:[],failedUploads:[],uploadingNow:!1}),getters:{hasPendingUploads(e){return e.queuedUploads?.length>0},isUploadingNow(e){return e.uploadingNow},nextUpload(e){return e.queuedUploads[0]}},actions:{queueUploads(e){this.failedUploads=[],this.queuedUploads.push(...e)},cancelUploads(){this.queuedUploads=[],this.failedUploads=[]},async handleNextUpload(){const e=en();if(!this.queuedUploads?.length)return;this.uploadingNow=!0;const{file:t,printer:n,startPrint:r}=this.nextUpload;this.queuedUploads.splice(0,1);try{await Ja.uploadFile(n,t,r)}catch(i){if(i.isAxiosError){const a={file:t,printer:n,error:i,startPrint:!1};this.failedUploads.push(a),e.openErrorMessage({title:"Upload failure",subtitle:`File ${t.name}Upload failed for to printer ${n.name}`})}else e.openErrorMessage({title:"Upload failure",subtitle:"Unknown upload error occurred"})}this.uploadingNow=!1}}}),xfe={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},c3={component:e=>Rs(sF,{...e,class:"mdi"})};function Cfe(){return{svg:{component:iF},class:{component:sF}}}function kfe(e){const t=Cfe(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=c3),ei({defaultSet:n,sets:t,aliases:{...xfe,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function d3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=ei(t,n),{aliases:i={},components:a={},directives:s={}}=r,o=Go();return o.run(()=>{const l=eQ(r.defaults),u=uZ(r.display,r.ssr),c=yQ(r.theme),d=kfe(r.icons),p=NQ(r.locale),h=pre(r.date,p),g=dZ(r.goTo,p);function v(b){for(const w in s)b.directive(w,s[w]);for(const w in a)b.component(w,a[w]);for(const w in i)b.component(w,Qs({...i[w],name:w,aliasName:i[w].name}));const S=Go();if(S.run(()=>{c.install(b)}),b.onUnmount(()=>S.stop()),b.provide(Bc,l),b.provide(vS,u),b.provide(ep,c),b.provide(mS,d),b.provide(kg,p),b.provide(fre,h.options),b.provide(HI,h.instance),b.provide(kF,g),cn&&r.ssr)if(b.$nuxt)b.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:w}=b;b.mount=function(){const C=w(...arguments);return At(()=>u.update()),b.mount=w,C}}b.mixin({computed:{$vuetify(){return An({defaults:Wu.call(this,Bc),display:Wu.call(this,vS),theme:Wu.call(this,ep),icons:Wu.call(this,mS),locale:Wu.call(this,kg),date:Wu.call(this,HI)})}}})}function y(){o.stop()}return{install:v,unmount:y,defaults:l,display:u,theme:c,icons:d,locale:p,date:h,goTo:g}})}const _fe="3.11.6";d3.version=_fe;function Wu(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}function f3(e){const t=jt();t.getOptions().enabled=e,e&&console.warn("Sentry enabled:",e)}const Tfe=e=>Math.random()*e,Ife={name:"GridLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#000000"},size:{type:Number,default:15},margin:{type:String,default:"2px"},sizeUnit:{type:String,default:"px"}},methods:{random:Tfe,getWrapperStyle(){return{width:`${Number.parseFloat(this.size)*3+Number.parseFloat(this.margin)*6}${this.sizeUnit}`,fontSize:0}},getCircleStyle(e){const t=`grid ${e/100+.6}s ${e/100-.2}s infinite ease`;return{display:"inline-block",backgroundColor:this.color,width:`${this.size}${this.sizeUnit}`,height:`${this.size}${this.sizeUnit}`,margin:this.margin,borderRadius:"100%",animationFillMode:"both",animation:t}}}};function Pfe(e,t,n,r,i,a){return n.loading?(F(),fe("div",{key:0,style:je(a.getWrapperStyle())},[(F(),fe(Ne,null,Zt(9,s=>E("div",{key:s,style:je(a.getCircleStyle(a.random(100)))},null,4)),64))],4)):ae("",!0)}const p3=Cn(Ife,[["render",Pfe]]),Rfe={key:0,class:"d-flex flex-column align-center"},Afe={class:"mt-8"},Ofe=Be({__name:"AppLoadingMessage",setup(e){const t=Dd();return(n,r)=>re(t).loading?(F(),fe("div",Rfe,[f(p3,{size:20,color:"#a70015"}),E("div",Afe,U(re(t).overlayMessage),1)])):ae("",!0)}}),Nfe={key:0},Zx=Be({__name:"DiscordInviteButton",props:{label:{default:"Join our Discord"},color:{default:"indigo"},variant:{default:"elevated"},size:{default:"default"},block:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}},setup(e){return(t,n)=>(F(),Q(te,ve(t.$attrs,{href:"https://discord.gg/mwA8uP8CMc",target:"_blank",color:e.color,variant:e.variant,size:e.size,block:e.block}),{default:m(()=>[f(j,{class:Te(e.iconOnly?"":"mr-2")},{default:m(()=>[...n[0]||(n[0]=[_("discord",-1)])]),_:1},8,["class"]),e.iconOnly?ae("",!0):(F(),fe("span",Nfe,U(e.label),1))]),_:1},16,["color","variant","size","block"]))}}),Dfe={key:2},eC=Be({__name:"GithubIssuesButton",props:{label:{default:"Report Issue on GitHub"},color:{default:void 0},variant:{default:"tonal"},size:{default:"default"},block:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}},setup(e){return(t,n)=>(F(),Q(te,ve(t.$attrs,{href:"https://github.com/fdm-monster/fdm-monster/issues",target:"_blank",color:e.color,variant:e.variant,size:e.size,block:e.block}),{default:m(()=>[e.iconOnly?(F(),Q(j,{key:1},{default:m(()=>[...n[1]||(n[1]=[_("mdi:mdi-github",-1)])]),_:1})):(F(),Q(j,{key:0,class:"mr-2"},{default:m(()=>[...n[0]||(n[0]=[_("mdi:mdi-github",-1)])]),_:1})),e.iconOnly?ae("",!0):(F(),fe("span",Dfe,U(e.label),1))]),_:1},16,["color","variant","size","block"]))}}),Lfe={class:"mb-8"},Ffe={key:0,class:"mt-6"},Mfe={key:2},$fe={key:3},Vfe={class:"d-flex flex-column align-center ga-4"},Bfe={class:"text-center"},Ufe={class:"d-flex ga-3 flex-wrap justify-center mb-6"},jfe={class:"d-flex flex-wrap justify-center ga-2"},zfe=Be({__name:"ServerDisconnectedMessage",setup(e){const t=Dd(),n=z(0);let r=null;function i(){if(!t.nextRetryTime){n.value=0;return}n.value=Math.max(0,Math.ceil((t.nextRetryTime-Date.now())/1e3))}return Nt(()=>{i(),r=globalThis.setInterval(i,100)}),xu(()=>{r&&clearInterval(r)}),(a,s)=>(F(),Q(Xv,null,{default:m(()=>[re(t).serverDisconnected?(F(),Q($e,{key:0,class:"pa-8 mx-auto text-center","max-width":"600",elevation:"12"},{default:m(()=>[E("div",Lfe,[f(j,{size:"80",color:"error",class:"mb-5"},{default:m(()=>[...s[1]||(s[1]=[_(" wifi_off ",-1)])]),_:1}),s[4]||(s[4]=E("h1",{class:"text-h4 font-weight-bold mb-4"},"Server Disconnected",-1)),s[5]||(s[5]=E("p",{class:"text-body-1 text-medium-emphasis mb-0"}," Cannot connect to FDM Monster server. Please ensure the server is running and try again. ",-1)),re(t).isRetrying?(F(),fe("div",Ffe,[f(Ke,{color:"primary",outline:"",size:"large",class:"px-4"},{default:m(()=>[re(t).isTestingConnection?ae("",!0):(F(),Q(j,{key:0,class:"mr-2"},{default:m(()=>[...s[2]||(s[2]=[_("mdi:mdi-refresh",-1)])]),_:1})),re(t).isTestingConnection?(F(),Q(j,{key:1,class:"mr-2"},{default:m(()=>[...s[3]||(s[3]=[_("mdi:mdi-timer",-1)])]),_:1})):ae("",!0),re(t).isTestingConnection?(F(),fe("span",Mfe,"Testing connection")):(F(),fe("span",$fe,"Retrying in "+U(n.value)+"s",1))]),_:1}),re(t).isTestingConnection?(F(),Q(ni,{key:1,indeterminate:"",color:"primary",height:"4",class:"mt-4",rounded:""})):(F(),Q(ni,{key:0,"model-value":(5-n.value)/5*100,color:"primary",height:"4",class:"mt-4",rounded:""},null,8,["model-value"]))])):ae("",!0)]),E("div",Vfe,[f(te,{disabled:!re(t).isRetrying||re(t).isTestingConnection,color:"primary",size:"large",variant:"elevated",onClick:s[0]||(s[0]=o=>re(t).retryNow()),class:"px-8"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[6]||(s[6]=[_("mdi:mdi-play",-1)])]),_:1}),s[7]||(s[7]=_(" Retry Now ",-1))]),_:1},8,["disabled"])]),f(mt,{class:"my-8"}),E("div",Bfe,[s[13]||(s[13]=E("p",{class:"text-caption text-medium-emphasis mb-3"}," Helpful links: ",-1)),E("div",Ufe,[f(te,{color:"surface-variant",variant:"outlined",href:"https://docs.fdm-monster.net",target:"_blank"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[8]||(s[8]=[_("menu_book",-1)])]),_:1}),s[9]||(s[9]=_(" Documentation ",-1))]),_:1}),f(Zx,{label:"Discord Support",variant:"elevated"}),f(eC,{label:"GitHub",variant:"outlined",color:"surface-variant"})]),s[14]||(s[14]=E("p",{class:"text-caption text-medium-emphasis mb-3"}," Common solutions: ",-1)),E("div",jfe,[f(Ke,{size:"small",variant:"outlined"},{default:m(()=>[...s[10]||(s[10]=[_("Check server status",-1)])]),_:1}),f(Ke,{size:"small",variant:"outlined"},{default:m(()=>[...s[11]||(s[11]=[_("Verify network connection",-1)])]),_:1}),f(Ke,{size:"small",variant:"outlined"},{default:m(()=>[...s[12]||(s[12]=[_("Review server logs",-1)])]),_:1})])])]),_:1})):ae("",!0)]),_:1}))}}),Hfe=Cn(zfe,[["__scopeId","data-v-3b933b98"]]),Wfe={class:"mb-6 text-center"},Gfe={class:"d-flex align-center"},qfe={class:"mb-3"},Kfe={class:"text-caption mt-1"},Yfe={key:0,class:"mb-3"},Xfe={class:"text-caption"},Jfe={key:1,class:"mb-3"},Qfe={class:"text-caption mt-1"},Zfe={class:"d-flex flex-column align-center ga-3"},epe={class:"d-flex ga-3 flex-wrap justify-center"},tpe=Be({__name:"ErrorStateMessage",setup(e){const t=Dd(),n=en();function r(){globalThis.location.reload()}function i(){navigator.clipboard.writeText(JSON.stringify(t.errorCaught)),n.openInfoMessage({title:"Copied",subtitle:"Error copied to clipboard"})}return(a,s)=>(F(),Q(Xv,null,{default:m(()=>[re(t).errorCaught?(F(),Q($e,{key:0,class:"pa-8 mx-auto align-content-center","max-width":"700",elevation:"12"},{default:m(()=>[E("div",Wfe,[f(j,{size:"80",color:"error",class:"mb-4"},{default:m(()=>[...s[2]||(s[2]=[_(" error_outline ",-1)])]),_:1}),s[3]||(s[3]=E("h1",{class:"text-h4 font-weight-bold mb-3"},"Server Error",-1)),s[4]||(s[4]=E("p",{class:"text-body-1 text-medium-emphasis mb-0"}," The server returned an unexpected response. Please check your configuration and logs. ",-1))]),f(Wc,{class:"mb-6"},{default:m(()=>[f(Hc,null,{default:m(()=>[f(zc,null,{default:m(()=>[E("div",Gfe,[f(j,{class:"mr-2"},{default:m(()=>[...s[5]||(s[5]=[_("bug_report",-1)])]),_:1}),s[6]||(s[6]=_(" Error Details ",-1))])]),_:1}),f(jc,null,{default:m(()=>[f($e,{variant:"outlined",class:"pa-4"},{default:m(()=>[E("div",qfe,[s[7]||(s[7]=E("strong",null,"Error:",-1)),E("pre",Kfe,U(JSON.stringify(re(t).errorCaught,null,2)),1)]),re(t).errorUrl?(F(),fe("div",Yfe,[s[8]||(s[8]=E("strong",null,"URL:",-1)),E("code",Xfe,U(re(t).errorUrl),1)])):ae("",!0),re(t).errorResponse?(F(),fe("div",Jfe,[s[9]||(s[9]=E("strong",null,"Response:",-1)),E("pre",Qfe,U(re(t).errorResponse),1)])):ae("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),E("div",Zfe,[f(te,{color:"primary",size:"large",variant:"elevated",onClick:s[0]||(s[0]=o=>r()),class:"px-8"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[10]||(s[10]=[_("refresh",-1)])]),_:1}),s[11]||(s[11]=_(" Reload Page ",-1))]),_:1}),E("div",epe,[f(te,{color:"secondary",variant:"outlined",onClick:s[1]||(s[1]=o=>i())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[12]||(s[12]=[_("content_copy",-1)])]),_:1}),s[13]||(s[13]=_(" Copy Error ",-1))]),_:1}),f(te,{color:"surface-variant",variant:"outlined",href:"https://docs.fdm-monster.net",target:"_blank"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[14]||(s[14]=[_("menu_book",-1)])]),_:1}),s[15]||(s[15]=_(" Documentation ",-1))]),_:1}),f(te,{color:"purple",variant:"outlined",href:"https://discord.gg/mwA8uP8CMc",target:"_blank"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[16]||(s[16]=[_("chat",-1)])]),_:1}),s[17]||(s[17]=_(" Get Support ",-1))]),_:1})])])]),_:1})):ae("",!0)]),_:1}))}}),npe=Cn(tpe,[["__scopeId","data-v-a399452b"]]),UP=5e3,rpe=Be({__name:"AppLoader",setup(e){const t=_s(),n=Dd(),r=ra(),i=sy(),a=Hx(),s=ds(),o=en(),l=new Gde,u=z(""),c=rx(),d=L(()=>c.current.value.colors.background);let p=null;function h(I,x=""){I?(n.setOverlay(!0,x),n.clearError()):n.hideOverlay()}async function g(){n.setTestingConnection(!0);try{await $o.test(),console.log("[AppLoader] Backend connection successful, reloading page"),y(),n.resetRetry(),globalThis.location.reload()}catch(I){console.log("[AppLoader] Retry attempt failed",I),n.setTestingConnection(!1),n.incrementRetry(UP)}}function v(){console.log("[AppLoader] Starting retry loop"),y(),p=globalThis.setInterval(async()=>{const I=n.nextRetryTime||0;Date.now()>=I&&I>0&&(console.log(`[AppLoader] Retry attempt at ${Date.now()}`),n.nextRetryTime=0,await g())},100)}function y(){p&&(console.log("[AppLoader] Stopping retry loop"),clearInterval(p),p=null)}async function b(){try{await r.loadSettings(),await i.loadFeatures(),await a.getProfile();const I=r.serverSettings?.sentryDiagnosticsEnabled;f3(!!I)}catch(I){console.log("Error when loading settings.",I),o.openErrorMessage({title:"Error",subtitle:"Error when loading settings, features and/or profile."}),Gs(I)}l.socketState().setup?l.reconnect():await l.setupSocketConnection(),h(!1)}pi("auth:permission-denied").on(async I=>{console.log("[AppLoader] Permission denied, going to permission denied page"),h(!0,"Permission denied"),await s.push({name:fn.PermissionDenied,query:{roles:I?.roles,page:String(s.currentRoute.value.name),permissions:I?.permissions,error:I?.error,url:I?.url}}),h(!1)}),pi("auth:failure").on(async I=>{if(console.debug(`[AppLoader] Event received: 'auth:failure', going back to login, context: ${I}`),h(!0,"Authentication failed, going back to login"),s.currentRoute.value.name!==fn.Login){const x=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;console.debug("[AppLoader] Redirecting to login with redirect:",x),await s.push({name:fn.Login,query:{redirect:x}})}h(!1)}),pi("auth:login").on(async()=>{console.debug("[AppLoader] Event received: 'auth:login', loading app"),h(!0,"Loading app"),await b()}),pi(`auth:${Ni.AccountNotVerified}`).on(async()=>{if(console.debug(`[AppLoader] Event received: 'auth:${Ni.AccountNotVerified}', going to login`),o.error("Account not verified, please ask an administrator to verify your account."),h(!0,"Account not verified, please ask an administrator to verify your account."),s.currentRoute.value.name!==fn.Login){const I=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;await s.push({name:fn.Login,query:{redirect:I}})}h(!1)}),pi(`auth:${Ni.PasswordChangeRequired}`).on(async()=>{if(console.debug(`[AppLoader] Event received: 'auth:${Ni.PasswordChangeRequired}', going to login`),o.error("Password change required, please change your password."),h(!0,"Password change required, please change your password."),s.currentRoute.value.name!==fn.Login){const I=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;await s.push({name:fn.Login,query:{redirect:I}})}h(!1)}),pi("backend:start-retry").on(()=>{console.debug("[AppLoader] Event received: backend:start-retry, starting retry loop"),n.startRetry(UP),v()}),Oe(()=>t.wizardState?.wizardCompleted,async(I,x)=>{if(I&&!x){const A=s.currentRoute.value.name;if(A===fn.Login||A===fn.Registration){console.debug("[AppLoader] Wizard completed but already on auth page, skipping loadApp");return}console.debug("[AppLoader] Wizard completed detected, triggering app load"),await T()}}),xu(()=>{y(),l.socketState().setup&&l.disconnect()});async function T(){n.setLoading(!0);const I=["Loading FDM Monster","Loading it all","Loading features","Loading what needs to be loaded","Farming potatoes","Wiping the floor","Cleaning cobwebs","Loading filament.dll","Loading 3D_printer.exe","Loading spools","Forking PrusaSlicer","Filling progress bar","Eating printed spaghetti"],x=I[Math.floor(Math.random()*I.length)];h(!0,x);try{await $o.test()}catch(B){n.setServerDisconnected(!0),Gs(B),n.startRetry(5e3),v();return}const{loginRequired:A,wizardState:D}=await t.checkAuthenticationRequirements();if(!D.wizardCompleted){console.debug("[AppLoader] Wizard not completed, going to wizard"),await t.logout(!1),s.currentRoute.value.name!==fn.FirstTimeSetup&&await s.replace({name:fn.FirstTimeSetup}),h(!1);return}if(!A)return console.debug("[AppLoader] Login not required, loading app"),await b();if(console.debug("[AppLoader] Checking if tokens are present"),!t.hasAuthToken&&!t.hasRefreshToken)return console.debug("[AppLoader] No tokens present, hiding overlay as router will have handled it"),h(!1);h(!0,"Refreshing login"),console.debug("[AppLoader] Verifying or refreshing login once");try{const{success:B,handled:V}=await t.verifyOrRefreshLoginOnceOrLogout();if(V){console.debug("[AppLoader] received handled event, hiding overlay");return}if(!B){if(console.debug("[AppLoader] No success refreshing"),h(!0,"Login expired, going back to login"),s.currentRoute.value.name!==fn.Login){const $=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;console.debug("[AppLoader] Token refresh failed, redirecting to login with redirect:",$),await s.push({name:fn.Login,query:{redirect:$}})}h(!1);return}}catch(B){console.log("[AppLoader] Error when refreshing login",B),n.setLoading(!1),n.setError(B.message,B.config?.url,B.response?.data),Gs(B);return}await b()}return nl(async()=>{u.value=s.currentRoute.value.fullPath,console.debug("[AppLoader] Initial route captured:",u.value),await T()}),(I,x)=>(F(),fe(Ne,null,[re(n).overlay?ae("",!0):kc(I.$slots,"default",{key:0}),f(mo,{modelValue:re(n).overlay,"onUpdate:modelValue":x[0]||(x[0]=A=>re(n).overlay=A),scrim:d.value,opacity:"0.98",persistent:"","no-click-animation":"",class:"align-center justify-center"},{default:m(()=>[f(Ofe),f(Hfe),f(npe)]),_:1},8,["modelValue","scrim"])],64))}}),ipe=be({...Qe(),...Nn(PM(),["fullHeight"]),...vn()},"VApp"),spe=De()({name:"VApp",props:ipe(),setup(e,t){let{slots:n}=t;const r=xn(e),{layoutClasses:i,getLayoutItem:a,items:s,layoutRef:o}=NM({...e,fullHeight:!0}),{rtlClasses:l}=Tr();return Fe(()=>E("div",{ref:o,class:Te(["v-application",r.themeClasses.value,i.value,l.value,e.class]),style:je([e.style])},[E("div",{class:"v-application__wrap"},[n.default?.()])])),{getLayoutItem:a,items:s,theme:r}}}),ape=be({scrollable:Boolean,...Qe(),...Vr(),...zt({tag:"main"})},"VMain"),ope=De()({name:"VMain",props:ape(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=Br(e),{mainStyles:i}=AM(),{ssrBootStyles:a}=rm();return Fe(()=>f(e.tag,{class:Te(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:je([i.value,a.value,r.value,e.style])},{default:()=>[e.scrollable?E("div",{class:"v-main__scroller"},[n.default?.()]):n.default?.()]})),{}}}),lpe=Be({__name:"App",setup(e){const t=Qx(),n=_s(),r=Dd(),i=t.queuedUploads;return Oe(i,async()=>{await t.handleNextUpload()}),Nt(()=>{console.debug(`App.vue mounted. Logged in: ${n.hasAuthToken}, Expired: ${n.isLoginExpired}`)}),(a,s)=>{const o=Efe,l=yfe,u=ffe,c=nfe,d=Zde,p=Cc("router-view"),h=Tue,g=yue,v=oue,y=sue,b=nue,S=zle,w=hle,C=Nse,P=eie,k=gne,R=Ute,T=Mte,I=Nte,x=lee;return F(),Q(spe,null,{default:m(()=>[f(o),f(l),f(u),!re(r).loading&&re(n).wizardState?.wizardCompleted&&(re(n).hasAuthToken&&!re(n).isLoginExpired||!re(n).loginRequired)?(F(),Q(c,{key:0})):ae("",!0),!re(r).loading&&re(n).wizardState?.wizardCompleted&&(re(n).hasAuthToken&&!re(n).isLoginExpired||!re(n).loginRequired)?(F(),Q(d,{key:1})):ae("",!0),f(rpe,null,{default:m(()=>[f(ope,null,{default:m(()=>[f(p)]),_:1})]),_:1}),f(h),f(g),f(v),f(y),f(b),f(S),f(w),f(C),f(P),f(k),f(R),f(T),f(I),f(x)]),_:1})}}});function upe(e,t=24){const n=Date.now()-t*60*60*1e3,r=e.filter(a=>(a.endedAt?new Date(a.endedAt).getTime():new Date(a.createdAt).getTime())>=n&&(a.status==="COMPLETED"||a.status==="FAILED"));if(r.length===0)return 0;const i=r.filter(a=>a.status==="COMPLETED").length;return Math.round(i/r.length*100)}function cpe(e){return e.filter(t=>t.status==="PRINTING"||t.status==="STARTING").length}function jP(e,t,n=24){const r=Date.now()-n*60*60*1e3;return e.filter(i=>i.status!==t?!1:(i.endedAt?new Date(i.endedAt).getTime():new Date(i.createdAt).getTime())>=r).length}function dpe(e,t=24){const n=Date.now()-t*60*60*1e3,r=e.filter(a=>a.status!=="COMPLETED"||!a.statistics?.actualPrintTimeSeconds?!1:(a.endedAt?new Date(a.endedAt).getTime():new Date(a.createdAt).getTime())>=n);return r.length===0?0:r.reduce((a,s)=>a+(s.statistics?.actualPrintTimeSeconds||0),0)/r.length/3600}function fpe(e,t=24){const n=Date.now()-t*60*60*1e3;return e.filter(a=>a.statistics?.actualPrintTimeSeconds?(a.endedAt?new Date(a.endedAt).getTime():new Date(a.createdAt).getTime())>=n:!1).reduce((a,s)=>a+(s.statistics?.actualPrintTimeSeconds||0),0)/3600}function ppe(e){if(e===0)return"0m";const t=Math.floor(e),n=Math.round((e-t)*60);return t===0?`${n}m`:n===0?`${t}h`:`${t}h ${n}m`}function mpe(e,t=24){return{successRate:upe(e,t),activeJobs:cpe(e),completedLast24h:jP(e,"COMPLETED",t),failedLast24h:jP(e,"FAILED",t),averagePrintTimeHours:dpe(e,t),totalPrintTimeHours:fpe(e,t)}}const hpe={class:"text-h4 font-weight-bold text-green"},gpe={class:"text-h4 font-weight-bold text-blue"},vpe={class:"text-h4 font-weight-bold text-orange"},ype={class:"text-h4 font-weight-bold text-purple"},bpe={class:"text-h6 mb-4 d-flex align-center"},Spe={class:"d-flex align-center justify-space-between mb-4"},wpe={class:"text-h6 d-flex align-center"},Epe={class:"d-flex align-center ga-2"},xpe={key:0,class:"printer-status-grid"},Cpe={class:"printer-name text-subtitle-2 font-weight-medium mb-1"},kpe={key:0,class:"mt-2"},_pe={class:"text-caption"},Tpe={key:0,class:"text-center mt-3"},Ipe={key:1,class:"text-center py-8"},Ppe={class:"text-h6 mb-4 d-flex align-center"},Rpe={class:"mb-4"},Ape={class:"d-flex justify-space-between align-center mb-2"},Ope={class:"mb-4"},Npe={class:"d-flex justify-space-between align-center mb-2"},Dpe={class:"text-green"},Lpe={class:"mt-6"},Fpe={class:"d-flex justify-space-between py-2 border-b"},Mpe={class:"d-flex justify-space-between py-2 border-b"},$pe={class:"d-flex justify-space-between py-2"},Vpe=Be({__name:"DashboardView",setup(e){const t=ds(),n=wn(),r=Fr(),i=z([]),{data:a}=q$(),{selectedTags:s,selectedPrinterTypes:o,tags:l,loadTags:u,filterPrinters:c}=om();Nt(async()=>{await u(),await d()});async function d(){try{const Z=new Date;Z.setDate(Z.getDate()-7);const G=await qr.searchJobsPaged({startDate:Z.toISOString().split("T")[0],page:1,pageSize:500});i.value=G.items}catch(Z){console.error("Failed to load recent jobs:",Z),i.value=[]}}const p=L(()=>n.printers),h=L(()=>c(p.value)),g=L(()=>p.value.length),v=L(()=>r.printingCount),y=L(()=>r.operationalNotPrintingCount),b=L(()=>p.value.filter(Z=>{const G=r.printerEventsById[Z.id];return kS(Z,G)||qc(Z)}).length),S=L(()=>g.value===0),w=L(()=>g.value===0?0:Math.round(v.value/g.value*100)),C=L(()=>mpe(i.value,24)),P=L(()=>C.value.successRate),k=L(()=>C.value.activeJobs),R=L(()=>a.value?.totalJobs||0),T=L(()=>ppe(C.value.averagePrintTimeHours)),I=()=>{t.push("/printer-grid")},x=()=>{t.push("/printer-list")},A=()=>{t.push("/cameras")},D=()=>{t.push("/jobs")},B=()=>{globalThis.open("https://docs.fdm-monster.net","_blank")},V=()=>{qt(Kt.YamlImportExport).openDialog()},$=()=>{qt(Kt.ImportOctoFarmDialog).openDialog()},N=()=>{t.push("/printer-grid")},O=Z=>{const G=r.printerEventsById[Z.id];return CS(G)},M=Z=>{const G=r.printerEventsById[Z.id];return qc(Z)?"MAINTENANCE":kS(Z,G)?"OFFLINE":CS(G)?"PRINTING":"READY"},Y=Z=>{switch(M(Z)){case"PRINTING":return"success";case"READY":return"primary";case"MAINTENANCE":return"warning";case"OFFLINE":return"error";default:return"surface"}},X=Z=>{const G=M(Z);return{"border-l-4 border-success":G==="PRINTING","border-l-4 border-primary":G==="READY","border-l-4 border-warning":G==="MAINTENANCE","border-l-4 border-error":G==="OFFLINE"}},ie=Z=>r.printerEventsById[Z.id]?.current?.payload?.progress?.completion||0;return(Z,G)=>(F(),Q(Qi,{fluid:"",class:"pa-4"},{default:m(()=>[f(ct,{class:"mb-6"},{default:m(()=>[f(Re,null,{default:m(()=>[...G[3]||(G[3]=[E("div",{class:"text-center mb-2"},[E("h1",{class:"text-h4 font-weight-bold"},"Welcome to FDM Monster"),E("p",{class:"text-subtitle-1 text-medium-emphasis mb-0"}," Manage your 3D print farm with ease ")],-1)])]),_:1})]),_:1}),f(ct,{class:"mb-6"},{default:m(()=>[f(Re,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f($e,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"green",size:"48",class:"mb-2"},{default:m(()=>[...G[4]||(G[4]=[_("print",-1)])]),_:1}),E("h2",hpe,U(v.value),1),G[5]||(G[5]=E("p",{class:"text-subtitle-2"},"Currently Printing",-1))]),_:1})]),_:1}),f(Re,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f($e,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"blue",size:"48",class:"mb-2"},{default:m(()=>[...G[6]||(G[6]=[_("settings",-1)])]),_:1}),E("h2",gpe,U(y.value),1),G[7]||(G[7]=E("p",{class:"text-subtitle-2"},"Ready to Print",-1))]),_:1})]),_:1}),f(Re,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f($e,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"orange",size:"48",class:"mb-2"},{default:m(()=>[...G[8]||(G[8]=[_("warning",-1)])]),_:1}),E("h2",vpe,U(b.value),1),G[9]||(G[9]=E("p",{class:"text-subtitle-2"},"Offline / Issues",-1))]),_:1})]),_:1}),f(Re,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f($e,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"purple",size:"48",class:"mb-2"},{default:m(()=>[...G[10]||(G[10]=[_("inventory",-1)])]),_:1}),E("h2",ype,U(g.value),1),G[11]||(G[11]=E("p",{class:"text-subtitle-2"},"Total Printers",-1))]),_:1})]),_:1})]),_:1}),S.value?(F(),Q(ct,{key:0,class:"mb-6"},{default:m(()=>[f(Re,null,{default:m(()=>[f(kt,{type:"info",variant:"tonal",class:"mb-4",icon:"rocket_launch"},{default:m(()=>[f(JF,{class:"mb-2"},{default:m(()=>[...G[12]||(G[12]=[_("Welcome to FDM Monster!",-1)])]),_:1}),G[17]||(G[17]=E("p",{class:"mb-3"}," It looks like you're just getting started. Let's help you set up your 3D print farm. ",-1)),f(te,{color:"primary",variant:"elevated",class:"mr-3",onClick:I},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[13]||(G[13]=[_("add",-1)])]),_:1}),G[14]||(G[14]=_(" Add Your First Printer ",-1))]),_:1}),f(te,{variant:"outlined",onClick:B},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[15]||(G[15]=[_("help",-1)])]),_:1}),G[16]||(G[16]=_(" View Documentation ",-1))]),_:1})]),_:1})]),_:1})]),_:1})):ae("",!0),f(ct,{class:"mb-6"},{default:m(()=>[f(Re,null,{default:m(()=>[f($e,{class:"pa-4",elevation:"2"},{default:m(()=>[E("h3",bpe,[f(j,{class:"mr-2"},{default:m(()=>[...G[18]||(G[18]=[_("flash_on",-1)])]),_:1}),G[19]||(G[19]=_(" Quick Actions ",-1))]),f(pS,{class:"d-flex flex-wrap ga-2"},{default:m(()=>[f(te,{color:"primary",variant:"elevated",onClick:I},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[20]||(G[20]=[_("view_module",-1)])]),_:1}),G[21]||(G[21]=_(" View Printer Grid ",-1))]),_:1}),f(te,{color:"secondary",variant:"elevated",onClick:x},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[22]||(G[22]=[_("view_module",-1)])]),_:1}),G[23]||(G[23]=_(" View Printer List ",-1))]),_:1}),f(te,{color:"success",variant:"elevated",onClick:A},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[24]||(G[24]=[_("camera_alt",-1)])]),_:1}),G[25]||(G[25]=_(" View Cameras ",-1))]),_:1}),f(te,{color:"warning",variant:"elevated",onClick:D},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[26]||(G[26]=[_("analytics",-1)])]),_:1}),G[27]||(G[27]=_(" View Jobs ",-1))]),_:1}),f(te,{variant:"elevated",color:"primary",onClick:V},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[28]||(G[28]=[_("code",-1)])]),_:1}),G[29]||(G[29]=_(" Import/Export backup ",-1))]),_:1}),f(te,{variant:"elevated",color:"purple",onClick:$},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[30]||(G[30]=[_("publish",-1)])]),_:1}),G[31]||(G[31]=_(" Import OctoFarm printers ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Re,{cols:"12",md:"8"},{default:m(()=>[f($e,{class:"pa-4 fill-height",elevation:"2"},{default:m(()=>[E("div",Spe,[E("h3",wpe,[f(j,{class:"mr-2"},{default:m(()=>[...G[32]||(G[32]=[_("timeline",-1)])]),_:1}),G[33]||(G[33]=_(" Farm Status Overview ",-1))]),E("div",Epe,[f(Ad,{modelValue:re(s),"onUpdate:modelValue":G[0]||(G[0]=le=>Ot(s)?s.value=le:null),tags:re(l),label:"Tags",style:{width:"200px"}},null,8,["modelValue","tags"]),f(Od,{modelValue:re(o),"onUpdate:modelValue":G[1]||(G[1]=le=>Ot(o)?o.value=le:null),label:"Type",style:{width:"200px"}},null,8,["modelValue"])])]),g.value>0?(F(),fe("div",xpe,[(F(!0),fe(Ne,null,Zt(h.value.slice(0,8),le=>(F(),fe("div",{key:le.id,class:"printer-status-item",onClick:G[2]||(G[2]=ee=>N())},[f($e,{class:Te(["pa-3 text-center cursor-pointer hover-effect",X(le)]),elevation:"1"},{default:m(()=>[E("div",Cpe,U(le.name),1),f(Ke,{color:Y(le),size:"x-small",variant:"elevated"},{default:m(()=>[_(U(M(le)),1)]),_:2},1032,["color"]),O(le)?(F(),fe("div",kpe,[f(ni,{"model-value":ie(le),height:"4",color:"success",class:"mb-1"},null,8,["model-value"]),E("div",_pe,U(ie(le))+"% ",1)])):ae("",!0)]),_:2},1032,["class"])]))),128)),g.value>8?(F(),fe("div",Tpe,[f(te,{variant:"outlined",size:"small",onClick:I},{default:m(()=>[_(" View All "+U(g.value)+" Printers ",1)]),_:1})])):ae("",!0)])):(F(),fe("div",Ipe,[f(j,{size:"80",color:"surface-variant",class:"mb-4"},{default:m(()=>[...G[34]||(G[34]=[_(" add_circle ",-1)])]),_:1}),G[37]||(G[37]=E("h3",{class:"text-h6 mb-2"},"No printers configured",-1)),G[38]||(G[38]=E("p",{class:"text-body-2 text-medium-emphasis mb-4"}," Add your first 3D printer to start monitoring your farm ",-1)),f(te,{color:"primary",variant:"elevated",onClick:I},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[35]||(G[35]=[_("add",-1)])]),_:1}),G[36]||(G[36]=_(" Add Printer ",-1))]),_:1})]))]),_:1})]),_:1}),f(Re,{cols:"12",md:"4"},{default:m(()=>[f($e,{class:"pa-4 fill-height",elevation:"2"},{default:m(()=>[E("h3",Ppe,[f(j,{class:"mr-2"},{default:m(()=>[...G[39]||(G[39]=[_("trending_up",-1)])]),_:1}),G[40]||(G[40]=_(" Performance Insights ",-1))]),E("div",Rpe,[E("div",Ape,[G[41]||(G[41]=E("span",{class:"text-body-2"},"Farm Utilization",-1)),E("strong",null,U(w.value)+"%",1)]),f(ni,{"model-value":w.value,color:"primary",height:"8",rounded:""},null,8,["model-value"])]),E("div",Ope,[E("div",Npe,[G[42]||(G[42]=E("span",{class:"text-body-2"},"Success Rate (24h)",-1)),E("strong",Dpe,U(P.value)+"%",1)]),f(ni,{"model-value":P.value,color:"success",height:"8",rounded:""},null,8,["model-value"])]),E("div",Lpe,[E("div",Fpe,[G[43]||(G[43]=E("span",{class:"text-body-2"},"Active Jobs",-1)),E("strong",null,U(k.value),1)]),E("div",Mpe,[G[44]||(G[44]=E("span",{class:"text-body-2"},"Queue Length",-1)),E("strong",null,U(R.value),1)]),E("div",$pe,[G[45]||(G[45]=E("span",{class:"text-body-2"},"Avg. Print Time",-1)),E("strong",null,U(T.value),1)])]),f(te,{color:"primary",variant:"outlined",block:"",class:"mt-4",onClick:D},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...G[46]||(G[46]=[_("analytics",-1)])]),_:1}),G[47]||(G[47]=_(" View Job Analytics ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),zP=Cn(Vpe,[["__scopeId","data-v-9eb2afc9"]]),m3=Yi("GridStore",{state:()=>({selectedTagFilter:[],selectedPrinterTypeFilter:[]}),actions:{setTagFilter(e){this.selectedTagFilter=e},setPrinterTypeFilter(e){this.selectedPrinterTypeFilter=e}}}),Bpe={class:"d-flex align-center ga-1 pa-2 rounded",style:{"background-color":"rgba(255,255,255,0.05)"}},Upe={class:"text-body-2",style:{"min-width":"20px","text-align":"center"}},jpe={class:"text-body-2",style:{"min-width":"20px","text-align":"center"}},zpe=Be({__name:"GridSizeControl",setup(e){const t=ra();async function n(){!t.frontendSettings||t.frontendSettings.gridRows>=16||await t.updateFrontendSettings({...t.frontendSettings,gridRows:t.frontendSettings.gridRows+1})}async function r(){!t.frontendSettings||t.frontendSettings.gridRows<=1||await t.updateFrontendSettings({...t.frontendSettings,gridRows:t.frontendSettings.gridRows-1})}async function i(){!t.frontendSettings||t.frontendSettings.gridCols>=12||await t.updateFrontendSettings({...t.frontendSettings,gridCols:t.frontendSettings.gridCols+1})}async function a(){!t.frontendSettings||t.frontendSettings.gridCols<=1||await t.updateFrontendSettings({...t.frontendSettings,gridCols:t.frontendSettings.gridCols-1})}return(s,o)=>(F(),fe("div",Bpe,[f(j,{size:"x-small"},{default:m(()=>[...o[4]||(o[4]=[_("table_rows",-1)])]),_:1}),f(te,{size:"x-small",icon:"",variant:"text",disabled:re(t).gridRows<=1,onClick:o[0]||(o[0]=l=>r())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[5]||(o[5]=[_("remove",-1)])]),_:1})]),_:1},8,["disabled"]),E("span",Upe,U(re(t).gridRows),1),f(te,{size:"x-small",icon:"",variant:"text",disabled:re(t).gridRows>=16,onClick:o[1]||(o[1]=l=>n())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[6]||(o[6]=[_("add",-1)])]),_:1})]),_:1},8,["disabled"]),f(mt,{vertical:"",class:"mx-1"}),f(j,{size:"x-small"},{default:m(()=>[...o[7]||(o[7]=[_("view_column",-1)])]),_:1}),f(te,{size:"x-small",icon:"",variant:"text",disabled:re(t).gridCols<=1,onClick:o[2]||(o[2]=l=>a())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[8]||(o[8]=[_("remove",-1)])]),_:1})]),_:1},8,["disabled"]),E("span",jpe,U(re(t).gridCols),1),f(te,{size:"x-small",icon:"",variant:"text",disabled:re(t).gridCols>=12,onClick:o[3]||(o[3]=l=>i())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[9]||(o[9]=[_("add",-1)])]),_:1})]),_:1},8,["disabled"])]))}}),Hpe=Be({__name:"GridSettingsMenu",setup(e){const t=ra(),n=z(t.largeTiles),r=z(t.preferCancelOverQuickStop);async function i(s){t.frontendSettings&&await t.updateFrontendSettings({...t.frontendSettings,largeTiles:s??!1})}async function a(s){t.frontendSettings&&await t.updateFrontendSettings({...t.frontendSettings,tilePreferCancelOverQuickStop:s??!1})}return(s,o)=>(F(),Q(ls,{"close-on-content-click":!1},{activator:m(({props:l})=>[f(te,ve(l,{variant:"text",size:"small",icon:"settings"}),null,16)]),default:m(()=>[f($e,{"min-width":"280"},{default:m(()=>[f(ot,{class:"text-subtitle-1"},{default:m(()=>[f(j,{class:"mr-2",size:"small"},{default:m(()=>[...o[2]||(o[2]=[_("settings",-1)])]),_:1}),o[3]||(o[3]=_(" Grid Settings ",-1))]),_:1}),f(Ye,null,{default:m(()=>[f(Bn,{modelValue:n.value,"onUpdate:modelValue":[o[0]||(o[0]=l=>n.value=l),i],label:"Large tiles",density:"compact","hide-details":""},null,8,["modelValue"]),f(Bn,{modelValue:r.value,"onUpdate:modelValue":[o[1]||(o[1]=l=>r.value=l),a],label:"Show cancel instead of quick stop",density:"compact","hide-details":"",class:"mt-2"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),fy="FDM-Monster-Client-Vue2",h3={TILE_DRAG_START:"tile-drag-start"};var py=(e=>(e.PRINTER_PLACE="PRINTER_PLACE",e))(py||{});function Wpe(e){return!e?.appId?.length||!e?.intent?.length?!1:e.appId===fy&&e.intent==="PRINTER_PLACE"}const Gpe={class:"d-flex flex-wrap ga-2"},qpe={class:"font-weight-medium"},Kpe=Be({__name:"HomeToolbar",setup(e){const t=Is(),n=m3(),{selectedTags:r,selectedPrinterTypes:i,tags:a,loadTags:s}=om(),o=L(()=>t.selectedFloorIndex),l=L(()=>t.floors);Nt(async()=>{await s()});function u(h){t.changeSelectedFloorByIndex(h)}function c(h){n.setTagFilter(h)}function d(h){n.setPrinterTypeFilter(h)}function p(h,g){!g.dataTransfer||!h.id||g.dataTransfer.setData("text",JSON.stringify({appId:fy,intent:py.PRINTER_PLACE,printerId:h.id}))}return(h,g)=>(F(),Q(Ug,{flat:"",color:"surface",class:"text-on-surface"},{default:m(()=>[f(sx,{"model-value":o.value,class:"ml-4",rounded:"",mandatory:"","onUpdate:modelValue":u},{default:m(()=>[(F(!0),fe(Ne,null,Zt(l.value,v=>(F(),Q(te,{key:v.id,size:"small"},{default:m(()=>[f(j,null,{default:m(()=>[...g[2]||(g[2]=[_("layers",-1)])]),_:1}),_(" "+U(v.name),1)]),_:2},1024))),128))]),_:1},8,["model-value"]),f(Ad,{modelValue:re(r),"onUpdate:modelValue":[g[0]||(g[0]=v=>Ot(r)?r.value=v:null),c],tags:re(a),label:"Filter by tags",class:"ml-4",style:{"max-width":"300px"}},null,8,["modelValue","tags"]),f(Od,{modelValue:re(i),"onUpdate:modelValue":[g[1]||(g[1]=v=>Ot(i)?i.value=v:null),d],label:"Filter by type",class:"ml-2",style:{"max-width":"300px"}},null,8,["modelValue"]),re(t).floorlessPrinters.length?(F(),Q(ls,{key:0,"close-on-content-click":!1},{activator:m(({props:v})=>[f(te,ve(v,{color:"warning",variant:"tonal",size:"small",class:"ml-4"}),{default:m(()=>[f(j,{start:""},{default:m(()=>[...g[3]||(g[3]=[_("warning",-1)])]),_:1}),_(" "+U(re(t).floorlessPrinters.length)+" Unplaced ",1)]),_:1},16)]),default:m(()=>[f($e,{"min-width":"300"},{default:m(()=>[f(ot,{class:"text-subtitle-1"},{default:m(()=>[f(j,{class:"mr-2",color:"warning"},{default:m(()=>[...g[4]||(g[4]=[_("warning",-1)])]),_:1}),g[5]||(g[5]=_(" Unplaced Printers ",-1))]),_:1}),f(Ye,null,{default:m(()=>[g[7]||(g[7]=E("div",{class:"text-caption mb-2 text-medium-emphasis"}," Drag these printers onto the grid: ",-1)),E("div",Gpe,[(F(!0),fe(Ne,null,Zt(re(t).floorlessPrinters,v=>(F(),Q(Ke,{key:v.id,draggable:"",size:"small",color:"warning",style:{cursor:"move"},onDragstart:y=>p(v,y)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...g[6]||(g[6]=[_("drag_indicator",-1)])]),_:1}),E("span",qpe,U(v.name),1),f(Ke,{size:"x-small",variant:"flat",class:"ml-2 px-2",style:{height:"18px"}},{default:m(()=>[_(U(re(ss)(v.printerType)),1)]),_:2},1024)]),_:2},1032,["onDragstart"]))),128))])]),_:1})]),_:1})]),_:1})):ae("",!0),f(Tt),f(zpe,{class:"ml-4"}),f(Hpe,{class:"ml-4"})]),_:1}))}});function Ype(e,t,n=!0){return e?t.map(r=>({file:r,printer:e,startPrint:n})):[]}function g3(e,t,n=!0){return!e?.length||!t?[]:e.map(r=>({file:t,printer:r,startPrint:n}))}const Xpe=be({color:String,density:String,...Qe()},"VBannerActions"),Jpe=De()({name:"VBannerActions",props:Xpe(),setup(e,t){let{slots:n}=t;return Sr({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),Fe(()=>E("div",{class:Te(["v-banner-actions",e.class]),style:je(e.style)},[n.default?.()])),{}}}),Qpe=_u("v-banner-text"),Zpe=be({avatar:String,bgColor:String,color:String,icon:et,lines:String,stacked:Boolean,sticky:Boolean,text:String,...As(),...Qe(),..._r(),...Vr(),...Ru({mobile:null}),...xi(),...ul(),...Ed(),...mr(),...zt(),...vn()},"VBanner"),eme=De()({name:"VBanner",props:Zpe(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=$n(()=>e.bgColor),{borderClasses:a}=Zs(e),{densityClasses:s}=us(e),{displayClasses:o,mobile:l}=ta(e),{dimensionStyles:u}=Br(e),{elevationClasses:c}=Ji(e),{locationStyles:d}=Pu(e),{positionClasses:p}=xd(e),{roundedClasses:h}=Er(e),{themeClasses:g}=xn(e),v=se(()=>e.color),y=se(()=>e.density);Sr({VBannerActions:{color:v,density:y}}),Fe(()=>{const b=!!(e.text||n.text),S=!!(e.avatar||e.icon),w=!!(S||n.prepend);return f(e.tag,{class:Te(["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},g.value,r.value,a.value,s.value,o.value,c.value,p.value,h.value,e.class]),style:je([i.value,u.value,d.value,e.style]),role:"banner"},{default:()=>[w&&E("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?f(sn,{key:"prepend-defaults",disabled:!S,defaults:{VAvatar:{color:v.value,density:y.value,icon:e.icon,image:e.avatar}}},n.prepend):f(jn,{key:"prepend-avatar",color:v.value,density:y.value,icon:e.icon,image:e.avatar},null)]),E("div",{class:"v-banner__content"},[b&&f(Qpe,{key:"text"},{default:()=>[n.text?.()??e.text]}),n.default?.()]),n.actions&&f(Jpe,{key:"actions"},n.actions)]})})}}),tme={class:"pl-1"},nme=Be({__name:"UploadToolbar",setup(e){const t=wn(),n=Fr(),r=Qx(),i=en(),a=z(void 0),s=z(null),o=L(()=>t.selectedPrinters.length>0),l=L(()=>t.selectedPrinters),u=()=>{s.value&&s.value.files?a.value=s.value.files[0]:a.value=void 0},c=()=>{s.value&&(s.value.value="",a.value=void 0)},d=async()=>{const y=t.selectedPrinters?.map(S=>S.id)??[],b=await qt(Kt.BatchReprintDialog).handleAsync(y);console.log("[PrinterGridView] Dialog completed",b)},p=y=>{const b=l.value,S=b.filter(P=>n.isApiResponding(P.id));if(!a.value)return;const w=b.length-S.length;w>0&&i.openInfoMessage({title:`${w} printers inaccessible`,subtitle:"These were skipped from uploading."});const C=g3(S,a.value,y);r.queueUploads(C),s.value&&(s.value.value=""),g()},h=y=>{t.toggleSelectedPrinter(y)},g=()=>{t.clearSelectedPrinters()},v=y=>{pn.openPrinterURL(y.printerURL)};return(y,b)=>{const S=$f("drop-upload");return un((F(),Q(eme,null,{default:m(()=>[f(ct,{style:{"margin-bottom":"-5px"}},{default:m(()=>[f(Re,{style:{padding:"5px 0 0 15px"}},{default:m(()=>[f(TI,{class:"d-inline-block"},{default:m(()=>[l.value.length===0?(F(),Q(Ke,{key:0,size:"small"},{default:m(()=>[...b[7]||(b[7]=[_(" No selected printers ",-1)])]),_:1})):ae("",!0),(F(!0),fe(Ne,null,Zt(l.value,w=>(F(),Q(Ke,{key:w.id,closable:"",color:"primary",size:"small",onClick:C=>v(w),"onClick:close":C=>h(w)},{default:m(()=>[_(U(w.name),1)]),_:2},1032,["onClick","onClick:close"]))),128))]),_:1})]),_:1}),f(Re,{align:"right",style:{padding:"0"}},{default:m(()=>[re(a)?(F(),Q(TI,{key:0,class:"float-end"},{default:m(()=>[f(Ke,{closable:"","onClick:close":b[0]||(b[0]=w=>c())},{default:m(()=>[_(U(re(a).name)+" ",1),E("strong",tme,U(re(ip)(re(a).size)),1)]),_:1})]),_:1})):ae("",!0),b[14]||(b[14]=E("br",null,null,-1)),f(te,{disabled:!o.value,color:"primary",variant:"elevated",size:"small",onClick:b[1]||(b[1]=w=>d())},{default:m(()=>[f(j,{class:"pr-2",size:"small"},{default:m(()=>[...b[8]||(b[8]=[_("refresh",-1)])]),_:1}),b[9]||(b[9]=_(" Batch reprint ",-1))]),_:1},8,["disabled"]),f(te,{disabled:l.value.length===0,class:"ml-2",variant:"elevated",size:"small",onClick:b[2]||(b[2]=w=>g())},{default:m(()=>[f(j,{class:"pr-2",size:"small"},{default:m(()=>[...b[10]||(b[10]=[_("delete",-1)])]),_:1}),_(" Clear all ("+U(l.value.length)+") ",1)]),_:1},8,["disabled"]),f(te,{class:"ml-2",variant:"elevated",size:"small",onClick:b[3]||(b[3]=w=>re(s)?.click())},{default:m(()=>[...b[11]||(b[11]=[_(" Select gcode file ",-1)])]),_:1}),f(te,{disabled:!re(a),class:"ml-2",color:"success",variant:"elevated",size:"small",onClick:b[4]||(b[4]=w=>p(!1))},{default:m(()=>[...b[12]||(b[12]=[_(" Upload only ",-1)])]),_:1},8,["disabled"]),f(te,{disabled:!re(a),class:"ml-2 mr-5",color:"success",variant:"elevated",size:"small",onClick:b[5]||(b[5]=w=>p(!0))},{default:m(()=>[...b[13]||(b[13]=[_(" Upload and print ",-1)])]),_:1},8,["disabled"]),E("input",{ref_key:"fileUpload",ref:s,multiple:!1,accept:".gcode,.3mf,.bgcode",style:{display:"none"},type:"file",onChange:b[6]||(b[6]=w=>u())},null,544)]),_:1})]),_:1})]),_:1})),[[S,{printers:l.value}]])}}}),tC="/img/logo.svg",rme=Be({__name:"PrinterCreateAction",props:{floorId:{},floorX:{},floorY:{},isFirstTime:{type:Boolean}},setup(e){const t=e,n=qt(Kt.AddOrUpdatePrinterDialog);function r(){n.openDialog({floorId:t.floorId,floorX:t.floorX,floorY:t.floorY})}return(i,a)=>e.isFirstTime?(F(),fe("div",{key:0,class:"text-center pa-4 clickable-first-time",onClick:a[0]||(a[0]=mn(s=>r(),["stop"]))},[f(j,{size:"large",color:"primary",class:"mb-2"},{default:m(()=>[...a[2]||(a[2]=[_("add_circle",-1)])]),_:1}),a[3]||(a[3]=E("div",{class:"text-subtitle-2 mb-2"},"No printers placed",-1)),a[4]||(a[4]=E("div",{class:"text-caption text-medium-emphasis"},"Click here to add your first printer",-1))])):(F(),Q(te,{key:1,class:"ma-2",color:"primary",size:"small",rounded:"",onClickCapture:a[1]||(a[1]=mn(s=>r(),["stop"]))},{default:m(()=>[f(j,null,{default:m(()=>[...a[5]||(a[5]=[_("add",-1)])]),_:1}),a[6]||(a[6]=_(" New printer ",-1))]),_:1}))}}),v3=Cn(rme,[["__scopeId","data-v-89f7b0e1"]]),ime="thumbnail",sme=(e,t)=>Id({queryKey:[ime,e],queryFn:async()=>e.value?Ja.getThumbnail(e.value).then(n=>n.thumbnailBase64||""):"",enabled:!!e&&!1}),ame={class:"d-flex flex flex-column justify-center align-center",style:{height:"100%"}},ome={key:1,class:"printer-file-or-stream-viewer"},lme={key:2,class:"printer-file-or-stream-viewer"},ume={key:3,class:"printer-menu"},cme={key:0,class:"temperature-display"},dme={key:0,class:"temp-item"},fme={key:1,class:"temp-item"},pme={class:"file-name"},mme={key:5,class:"centered-controls"},hme={key:0},gme={key:1},HP="rgba(100,100,100,0.1)",vme=Be({__name:"PrinterGridTile",props:{printer:{type:Object,required:!1},x:{type:Number,required:!0},y:{type:Number,required:!0}},setup(e){const t=e,n=wn(),r=Fr(),i=Is(),a=ra(),s=qt(Kt.PrinterControlDialog),o=qt(Kt.AddOrUpdatePrinterDialog),l=sm(),u=en(),c=ds(),d=L(()=>t.printer?.id),p=L(()=>t.x===0&&t.y===0),h=L(()=>n.printers.length===0),g=L(()=>a.largeTiles),v=L(()=>g.value?"80px":"40px"),{data:y}=sme(d),b=L(()=>d.value?r.isApiResponding(d.value):!1),S=L(()=>d.value?r.isPrinterOperational(d.value):!1),w=L(()=>d.value?r.isPrinterPrinting(d.value):!1),C=L(()=>d.value?r.isPrinterPaused(d.value):!1),P=L(()=>d.value?n.isSelectedPrinter(d.value):!1),k=L(()=>n.selectedPrinters?.length&&!P.value),R=L(()=>a.preferCancelOverQuickStop),T=L(()=>{if(!d.value)return;const ne=n.printer(d.value);if(!ne)return;const J=r.printerEventsById[d.value],ke=r.socketStatesById[d.value];return sM(ne,ke,J)}),I=L(()=>{const ne=T.value;return ne&&ne.rgb||HP}),x=L(()=>{if(d.value)return r.printerJobsById[d.value]}),A=L(()=>d.value?x.value?.progress?.completion:void 0),D=L(()=>{if(d.value)return r.printingFilePathsByPrinterId[d.value]}),B=L(()=>{if(!d.value)return null;const ne=r.printerEventsById[d.value];return!ne?.current?.payload?.temps||ne.current.payload.temps.length===0?null:ne.current.payload.temps[ne.current.payload.temps.length-1]}),V=L(()=>{const ne=B.value;return ne?.tool0?`${Math.round(ne.tool0.actual)}°/${Math.round(ne.tool0.target)}°`:null}),$=L(()=>{const ne=B.value;return ne?.bed?`${Math.round(ne.bed.actual)}°/${Math.round(ne.bed.target)}°`:null}),N=async()=>{d.value&&await n.sendStopJobCommand(d.value)},O=async()=>{d.value&&await pn.pausePrintJob(d.value)},M=async()=>{d.value&&await pn.resumePrintJob(d.value)},Y=()=>{t.printer&&l.openFileExplorer(t.printer)},X=async()=>{d.value&&(await pn.refreshSocket(d.value),u.openInfoMessage({title:"Refreshing connection state"}))},ie=ne=>{!ne.dataTransfer||!t.printer?.id||(globalThis.dispatchEvent(new CustomEvent(h3.TILE_DRAG_START)),ne.dataTransfer.setData("text",JSON.stringify({appId:fy,intent:py.PRINTER_PLACE,printerId:t.printer.id})))},Z=()=>{const ne=t.printer;ne&&o.openDialog({id:ne.id})},G=async()=>{if(!d.value){u.openInfoMessage({title:"No Printer",subtitle:"No printer to find jobs for"});return}await c.push({path:"/jobs",query:{printerId:d.value.toString()}})},le=async()=>{if(!d.value||!t.printer)throw new Error("PrinterId not set, cant open dialog");await s.openDialog({printer:t.printer})},ee=async()=>{d.value&&confirm("Are you sure to abort the print in Quick Stop mode? Please reconnect after.")&&await pn.postQuickStopM112Command(d.value)},ue=async()=>{d.value&&await pn.sendPrinterConnectCommand(d.value)},W=async()=>{!t.printer||!d.value||n.toggleSelectedPrinter(t.printer)};return(ne,J)=>{const ke=v3,We=$f("drop-upload"),Ve=$f("drop-printer-position");return un((F(),fe("div",null,[un((F(),Q($e,{draggable:!!e.printer,ripple:b.value,class:Te([{"tile-large":g.value,"tile-selected":P.value,"tile-unselected":k.value,"tile-no-printer":!e.printer,"tile-draggable":!!e.printer},"tile colored-tile rounded-lg"]),elevation:"5",onClick:J[8]||(J[8]=H=>W()),onDragstart:ie},{default:m(()=>[un(E("div",{class:"printer-title"},U(e.printer?.name??" "),513),[[ai,e.printer]]),e.printer?ae("",!0):(F(),fe("div",{key:0,style:je([{height:g.value?"calc(120px - 20px)":"calc(84px - 20px)"},{position:"absolute"}]),class:Te(p.value&&h.value?"plus-always-visible":"plus-hover-icon")},[E("div",ame,[f(ke,{"floor-id":re(i).selectedFloor?.id,"floor-x":e.x,"floor-y":e.y,"is-first-time":p.value&&h.value},null,8,["floor-id","floor-x","floor-y","is-first-time"])])],6)),e.printer&&b.value?(F(),fe("div",ome,[re(y)?.length?(F(),Q(ri,{key:1,src:"data:image/png;base64,"+(re(y)??""),width:v.value},null,8,["src","width"])):(F(),Q(ri,{key:0,src:re(Xx),width:v.value,alt:"No thumbnail was found in GCode",style:{opacity:"0.3",filter:"grayscale(100%)"}},null,8,["src","width"]))])):e.printer?(F(),fe("div",lme,[T.value?.text.includes("API")?(F(),Q(j,{key:0,size:v.value,color:"secondary"},{default:m(()=>[...J[9]||(J[9]=[_(" wifi_off ",-1)])]),_:1},8,["size"])):ae("",!0),e.printer.enabled?ae("",!0):(F(),Q(j,{key:1,size:v.value,color:"secondary"},{default:m(()=>[...J[10]||(J[10]=[_(" disabled_by_default ",-1)])]),_:1},8,["size"])),T.value?.text.includes("unset")?(F(),Q(j,{key:2,size:v.value,color:"secondary"},{default:m(()=>[...J[11]||(J[11]=[_(" question_mark ",-1)])]),_:1},8,["size"])):ae("",!0)])):ae("",!0),e.printer?(F(),fe("div",ume,[f(ln,{location:"top"},{activator:m(({props:H})=>[f(te,ve({color:"primary",elevation:"2",size:"x-small",rounded:"xl"},H,{onClick:J[0]||(J[0]=mn(q=>Y(),["prevent","stop"]))}),{default:m(()=>[f(j,{size:"16"},{default:m(()=>[...J[12]||(J[12]=[_("folder",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...J[13]||(J[13]=[_("Files",-1)])]),_:1}),f(ln,{location:"top"},{activator:m(({props:H})=>[f(te,ve({color:"info",elevation:"2",size:"x-small",rounded:"xl"},H,{onClick:J[1]||(J[1]=mn(q=>G(),["prevent","stop"]))}),{default:m(()=>[f(j,{size:"16"},{default:m(()=>[...J[14]||(J[14]=[_("work",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...J[15]||(J[15]=[_(" View Printer Jobs ",-1)])]),_:1})])):ae("",!0),e.printer?(F(),fe("div",{key:4,style:je([{position:g.value?"inherit":"absolute",top:g.value?"inherit":"28px"},{overflow:"clip"}]),class:"printer-info"},[V.value||$.value?(F(),fe("div",cme,[V.value?(F(),fe("small",dme," 🔥 "+U(V.value),1)):ae("",!0),$.value?(F(),fe("small",fme," 🛏️ "+U($.value),1)):ae("",!0)])):ae("",!0),E("small",pme,U(D.value??"No File"),1)],4)):ae("",!0),e.printer?(F(),fe("div",mme,[f(ln,{top:""},{activator:m(({props:H})=>[f(te,ve({disabled:!b.value||!S.value,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},H,{onClick:J[2]||(J[2]=mn(q=>le(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...J[16]||(J[16]=[_("open_with",-1)])]),_:1})]),_:1},16,["disabled","size"])]),default:m(()=>[...J[17]||(J[17]=[_("Move and home printer",-1)])]),_:1}),re(Ex)(e.printer.printerType)?(F(),Q(ln,{key:0,top:""},{activator:m(({props:H})=>[!S.value&&b.value?(F(),Q(te,ve({key:0,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},H,{onClick:J[3]||(J[3]=mn(q=>ue(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...J[18]||(J[18]=[_("usb",-1)])]),_:1})]),_:1},16,["size"])):ae("",!0)]),default:m(()=>[...J[19]||(J[19]=[_("Connect USB (only for OctoPrint)",-1)])]),_:1})):ae("",!0),re(Mb)(e.printer.printerType)?(F(),Q(ln,{key:1,top:""},{activator:m(({props:H})=>[f(te,ve({size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},H,{onClick:J[4]||(J[4]=mn(q=>X(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...J[20]||(J[20]=[_("refresh",-1)])]),_:1})]),_:1},16,["size"])]),default:m(()=>[...J[21]||(J[21]=[_("Reload printer connection and refresh all states ",-1)])]),_:1})):ae("",!0),re(Mb)(e.printer.printerType)?(F(),Q(ln,{key:2,top:""},{activator:m(({props:H})=>[f(te,ve({disabled:!b.value||!C.value&&!w.value,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},H,{onClick:J[5]||(J[5]=mn(q=>C.value?M():O(),["prevent","stop"]))}),{default:m(()=>[C.value?ae("",!0):(F(),Q(j,{key:0},{default:m(()=>[...J[22]||(J[22]=[_("pause",-1)])]),_:1})),C.value?(F(),Q(j,{key:1},{default:m(()=>[...J[23]||(J[23]=[_("play_arrow",-1)])]),_:1})):ae("",!0)]),_:1},16,["disabled","size"])]),default:m(()=>[_(U(C.value?"Resume print":"Pause print"),1)]),_:1})):ae("",!0),re(Mb)(e.printer.printerType)&&(re(CM)(e.printer.printerType)||R.value)?(F(),Q(ln,{key:3,top:""},{activator:m(({props:H})=>[f(te,ve({disabled:!b.value||R.value&&!w.value&&!C.value,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},H,{onClick:J[6]||(J[6]=mn(q=>R.value?N():ee(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[_(U(R.value?"stop":"dangerous"),1)]),_:1})]),_:1},16,["disabled","size"])]),default:m(()=>[_(U(R.value?"Cancel current print gracefully":"Perform quick stop of printer"),1)]),_:1})):ae("",!0),f(ln,{top:""},{activator:m(({props:H})=>[f(te,ve({size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},H,{onClick:J[7]||(J[7]=mn(q=>Z(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...J[24]||(J[24]=[_("settings",-1)])]),_:1})]),_:1},16,["size"])]),default:m(()=>[...J[25]||(J[25]=[_("Open printer settings",-1)])]),_:1})])):ae("",!0),e.printer?(F(),Q(ni,{key:6,"model-value":A.value,"background-color":"dark-gray",class:"progress-bar",height:"14"},{default:m(({value:H})=>[E("strong",null,U(H?.toFixed(1)+"%"),1),f(ln,{disabled:e.printer?.enabled,"close-delay":100,color:"danger","open-delay":0,top:""},{activator:m(({props:q})=>[E("span",ve({class:"xsmall-resized-font text--secondary ml-sm-2"},q),[e.printer?.disabledReason?(F(),fe("span",hme,[J[27]||(J[27]=E("small",null," MAINTENANCE",-1)),f(j,{class:"d-none d-xl-inline",color:"primary",small:""},{default:m(()=>[...J[26]||(J[26]=[_("info",-1)])]),_:1})])):(F(),fe("span",gme,[E("small",{style:je({"background-color":I.value+"99","border-left":"5px solid "+I.value+"ff",padding:"5px"})},U(T.value?.text?.toUpperCase()),5)]))],16)]),default:m(()=>[E("span",null,U(e.printer?.disabledReason??"Printer disabled"),1)]),_:1},8,["disabled"])]),_:1},8,["model-value"])):ae("",!0)]),_:1},8,["draggable","ripple","class"])),[[We,{printers:[e.printer]}]])])),[[Ve,{x:e.x,y:e.y,printerSet:e.printer}]])}}}),yme={class:"printer-grid-container"},bme=Be({__name:"PrinterGrid",props:{gap:{type:String,default:"4px"}},setup(e){const t=wn(),n=Is(),r=ra(),i=m3(),a=z([]),s=z(!1),o=z(!1),l=z(!1);globalThis.addEventListener("dragstart",k=>{s.value=!0}),globalThis.addEventListener("dragend",()=>{s.value=!1,o.value=!1}),globalThis.addEventListener(h3.TILE_DRAG_START,()=>{o.value=!0}),Nt(async()=>{await t.loadPrinters(),await n.loadFloors(),a.value=await ca.getTagsWithPrinters()});const u=e,c=L(()=>{const k=n.gridSortedPrinters,R=i.selectedTagFilter?.length>0,T=i.selectedPrinterTypeFilter?.length>0;return!R&&!T?k:k.map(I=>I.map(x=>{if(!x)return;let A=!R;R&&(A=a.value.some(B=>i.selectedTagFilter.includes(B.id)&&B.printers.some(V=>V.printerId===x.id)));let D=!T;return T&&(D=i.selectedPrinterTypeFilter.includes(x.printerType)),A&&D?x:void 0}))}),d=L(()=>r.gridCols),p=L(()=>r.gridRows),h=L(()=>r.largeTiles),g=L(()=>p.value*d.value),v=L(()=>({display:"grid",gridTemplateColumns:`repeat(${d.value}, 1fr)`,gap:u.gap})),y=k=>k%d.value,b=k=>Math.floor(k/d.value);function S(k,R){const T=k,I=R;if(!(!c.value?.length||!c.value[T]))return c.value[T][I]}function w(){l.value=!0}function C(){l.value=!1}async function P(k){if(l.value=!1,!!k.dataTransfer)try{const R=JSON.parse(k.dataTransfer.getData("text"));if(R.appId!==fy||R.intent!==py.PRINTER_PLACE)return;const T=R.printerId;if(!T||!n.selectedFloor)return;await Bs.deletePrinterFromFloor(n.selectedFloor.id,T),await n.loadFloors()}catch(R){console.error("Failed to remove printer from grid:",R)}}return(k,R)=>(F(),fe("div",null,[E("div",yme,[E("div",{class:"printer-grid",style:je(v.value)},[(F(!0),fe(Ne,null,Zt(g.value,T=>(F(),fe("div",{key:`printer-${y(T-1)}-${b(T-1)}`,class:Te(["printer-cell",{"printer-cell-large":h.value}])},[f(vme,{printer:S(y(T-1),b(T-1)),x:y(T-1),y:b(T-1)},null,8,["printer","x","y"])],2))),128))],4)]),un(E("div",{class:"remove-drop-zone",onDragover:R[0]||(R[0]=mn(()=>{},["prevent"])),onDragenter:mn(w,["prevent"]),onDragleave:mn(C,["prevent"]),onDrop:mn(P,["prevent"])},[f(j,{size:"large",class:"mr-2"},{default:m(()=>[...R[1]||(R[1]=[_("delete_forever",-1)])]),_:1}),R[2]||(R[2]=E("span",{class:"text-h6"},"Drop here to remove from grid",-1))],544),[[ai,o.value]]),R[3]||(R[3]=E("img",{alt:"FDM Monster Background",class:"grid-bg-img align-content-center",src:tC,style:{opacity:"0.08","pointer-events":"none"}},null,-1))]))}}),Sme=Cn(bme,[["__scopeId","data-v-f6c4856a"]]),wme=Be({__name:"PrinterGridView",setup(e){const t=Pd(),n=Is(),r=qt(Kt.AddOrUpdateFloorDialog);Nt(()=>{const a=t.query.floor;if(a){const s=n.floors.findIndex(o=>o.id===Number(a));s>=0&&n.changeSelectedFloorByIndex(s)}});async function i(){await r.openDialog()}return(a,s)=>(F(),fe("div",null,[re(n).floors.length?(F(),fe(Ne,{key:1},[f(Kpe),f(nme),f(Sme,{class:"ma-2"})],64)):(F(),Q($e,{key:0,class:"ma-4 pa-8 text-center"},{default:m(()=>[f(j,{size:"80",color:"primary",class:"mb-4"},{default:m(()=>[...s[0]||(s[0]=[_("layers_clear",-1)])]),_:1}),s[2]||(s[2]=E("h2",{class:"text-h5 mb-2"},"No Floors Yet",-1)),s[3]||(s[3]=E("p",{class:"text-body-1 text-medium-emphasis mb-6"}," Create your first floor to start organizing your printers in a grid layout. ",-1)),f(te,{color:"primary",size:"large","prepend-icon":"add",onClick:i},{default:m(()=>[...s[1]||(s[1]=[_(" Create First Floor ",-1)])]),_:1})]),_:1}))]))}}),Eme=Be({name:"RefreshFilesAction",components:{},props:{printer:Object},setup:()=>({printersStore:wn()}),methods:{async getFiles(){this.printer&&await this.printersStore.loadPrinterFiles(this.printer.id)}}});function xme(e,t,n,r,i,a){return F(),Q(te,{color:"secondary",onClick:t[0]||(t[0]=s=>e.getFiles())},{default:m(()=>[f(j,null,{default:m(()=>[...t[1]||(t[1]=[_("refresh",-1)])]),_:1}),t[2]||(t[2]=E("span",{class:"d-none d-lg-inline"}," Refresh files ",-1))]),_:1})}const y3=Cn(Eme,[["render",xme]]),Cme=Be({name:"PrinterDetails",components:{RefreshFilesAction:y3},props:{printer:Object},setup:()=>({printersStore:wn(),printerStateStore:Fr()}),data:()=>({dragging:!1}),computed:{printerId(){return this.printer?.id},socketState(){if(this.printerId)return this.printerStateStore.socketStatesById[this.printerId]?.socket},apiState(){if(this.printerId)return this.printerStateStore.socketStatesById[this.printerId]?.api},printerTextState(){if(this.printerId)return this.printerStateStore.printerEventsById[this.printerId]?.current?.payload?.state.text}}}),kme={class:"d-flex flex-column ga-2"},_me={class:"d-flex align-center"},Tme={class:"font-weight-medium"},Ime={class:"d-flex align-center"},Pme={class:"text-caption"},Rme={class:"d-flex align-center flex-wrap ga-2"},Ame={class:"d-flex align-center"},Ome={class:"d-flex align-center"},Nme={class:"d-flex align-center"};function Dme(e,t,n,r,i,a){const s=y3,o=$f("drop-upload");return e.printer?un((F(),fe("div",{key:0,class:"pa-4",style:je(e.dragging?"background-color: rgba(211, 47, 47, 0.1)":"background-color: rgba(0,0,0,0.2)")},[f(ct,null,{default:m(()=>[f(Re,{cols:"12",md:"8"},{default:m(()=>[E("div",kme,[E("div",_me,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...t[0]||(t[0]=[_("badge",-1)])]),_:1}),t[1]||(t[1]=E("span",{class:"text-caption text-medium-emphasis mr-2"},"Name:",-1)),E("span",Tme,U(e.printer.name),1)]),E("div",Ime,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...t[2]||(t[2]=[_("link",-1)])]),_:1}),t[3]||(t[3]=E("span",{class:"text-caption text-medium-emphasis mr-2"},"URL:",-1)),E("span",Pme,U(e.printer.printerURL),1)]),E("div",Rme,[E("div",Ame,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...t[4]||(t[4]=[_("dns",-1)])]),_:1}),t[5]||(t[5]=E("span",{class:"text-caption text-medium-emphasis mr-2"},"Host:",-1)),f(Ke,{size:"x-small",variant:"tonal"},{default:m(()=>[_(U(e.apiState),1)]),_:1})]),E("div",Ome,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...t[6]||(t[6]=[_("hub",-1)])]),_:1}),t[7]||(t[7]=E("span",{class:"text-caption text-medium-emphasis mr-2"},"Connection:",-1)),f(Ke,{size:"x-small",variant:"tonal"},{default:m(()=>[_(U(e.socketState),1)]),_:1})]),E("div",Nme,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...t[8]||(t[8]=[_("print",-1)])]),_:1}),t[9]||(t[9]=E("span",{class:"text-caption text-medium-emphasis mr-2"},"Printer:",-1)),f(Ke,{size:"x-small",variant:"tonal"},{default:m(()=>[_(U(e.printerTextState),1)]),_:1})])])])]),_:1}),f(Re,{cols:"12",md:"4",class:"d-flex align-center justify-end"},{default:m(()=>[f(s,{printer:e.printer},null,8,["printer"])]),_:1})]),_:1})],4)),[[o,{printers:[e.printer]}]]):ae("",!0)}const Lme=Cn(Cme,[["render",Dme]]),Fme=Be({__name:"PrinterUrlAction",props:{printer:{}},setup(e){const t=e;async function n(){pn.openPrinterURL(t.printer.printerURL)}return(r,i)=>re(xM)(e.printer.printerType)?(F(),Q(ln,{key:0,location:"top"},{activator:m(({props:a})=>[f(te,ve(a,{color:"secondary",class:"ms-4",rounded:"",size:"small",onClickCapture:i[0]||(i[0]=mn(s=>n(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...i[1]||(i[1]=[_("directions",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...i[2]||(i[2]=[_("Visit printer service",-1)])]),_:1})):ae("",!0)}}),Mme=Be({name:"PrinterSettingsAction",props:{printer:Object},computed:{printerId(){return this.printer.id}},methods:{openSettings(){this.$emit("update:show",this.printer.id)}}});function $me(e,t,n,r,i,a){return F(),Q(ln,{location:"top"},{activator:m(({props:s})=>[f(te,ve(s,{color:"secondary",class:"ms-4",size:"small",rounded:"",onClickCapture:t[0]||(t[0]=mn(o=>e.openSettings(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...t[1]||(t[1]=[_("settings",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...t[2]||(t[2]=[_("Update printer settings",-1)])]),_:1})}const Vme=Cn(Mme,[["render",$me]]),Bme=Be({__name:"PrinterConnectionAction",props:{printer:{}},setup(e){const t=e,n=Fr();function r(){return t.printer.id?n.isPrinterOperational(t.printer.id):!1}function i(){return t.printer.id?n.isPrinterPrinting(t.printer.id):!1}async function a(){if(r())return pn.sendPrinterDisconnectCommand(t.printer.id);await pn.sendPrinterConnectCommand(t.printer.id)}return(s,o)=>re(Ex)(e.printer.printerType)?(F(),Q(ln,{key:0,location:"top"},{activator:m(({props:l})=>[e.printer.enabled?(F(),Q(Rd,{key:0,color:r()?"green":"red",class:"ms-4"},{badge:m(()=>[r()?(F(),Q(j,{key:0},{default:m(()=>[...o[0]||(o[0]=[_("check",-1)])]),_:1})):(F(),Q(j,{key:1},{default:m(()=>[...o[1]||(o[1]=[_("close",-1)])]),_:1}))]),default:m(()=>[f(te,ve({disabled:i()},l,{color:"secondary",rounded:"",size:"small",onClick:mn(a,["stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[...o[2]||(o[2]=[_("usb",-1)])]),_:1})]),_:1},16,["disabled"])]),_:2},1032,["color"])):ae("",!0)]),default:m(()=>[...o[3]||(o[3]=[_("Connect USB (OctoPrint only)",-1)])]),_:1})):ae("",!0)}}),Ume=Be({__name:"PrinterQuickStopAction",props:{printer:{}},setup(e){const t=e;async function n(){confirm("Are you sure to quick stop this printer?")&&await pn.postQuickStopM112Command(t.printer.id)}return(r,i)=>re(CM)(e.printer.printerType)?(F(),Q(ln,{key:0,location:"top"},{activator:m(({props:a})=>[e.printer.enabled?(F(),Q(Rd,{key:0,class:"ms-4"},{badge:m(()=>[f(j,null,{default:m(()=>[...i[0]||(i[0]=[_("bolt",-1)])]),_:1})]),default:m(()=>[f(te,ve(a,{color:"secondary",size:"small",rounded:"",onClick:mn(n,["stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[...i[1]||(i[1]=[_("dangerous",-1)])]),_:1})]),_:1},16)]),_:2},1024)):ae("",!0)]),default:m(()=>[...i[2]||(i[2]=[_("Perform quick stop of printer",-1)])]),_:1})):ae("",!0)}}),jme=Be({__name:"FileExplorerAction",props:{printer:{}},setup(e){const t=e,n=sm();function r(){t.printer&&n.openFileExplorer(t.printer)}return(i,a)=>(F(),Q(ln,{location:"top"},{activator:m(({props:s})=>[f(te,ve(s,{disabled:!e.printer,color:"secondary",rounded:"",size:"small",onClickCapture:a[0]||(a[0]=mn(o=>r(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...a[1]||(a[1]=[_("folder",-1)])]),_:1})]),_:1},16,["disabled"])]),default:m(()=>[...a[2]||(a[2]=[_("Open file explorer",-1)])]),_:1}))}});class zme extends Ei{static async syncPrinterName(t){const n=`${Se.syncPrinterNameSettingRoute(t)}`;return await this.post(n)}}const Hme=Be({__name:"SyncPrinterNameAction",props:{printer:{}},setup(e){const t=e,n=en();async function r(){await zme.syncPrinterName(t.printer.id),n.openInfoMessage({title:"Synced printer name to OctoPrint"})}return(i,a)=>re(xne)(e.printer.printerType)?(F(),Q(ln,{key:0,location:"top"},{activator:m(({props:s})=>[f(te,ve(s,{color:"secondary",class:"ms-4",size:"small",rounded:"",onClickCapture:a[0]||(a[0]=mn(o=>r(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...a[1]||(a[1]=[_("badge",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...a[2]||(a[2]=[_(" Set OctoPrint name to the FDM Monster name ",-1)])]),_:1})):ae("",!0)}}),Wme=Be({__name:"PrinterDeleteAction",props:{printer:{}},setup(e){const t=e,n=wn(),r=Fr();async function i(){confirm("Are you sure to delete this printer?")&&(await n.deletePrinter(t.printer.id),r.deletePrinterEvents(t.printer.id))}return(a,s)=>(F(),Q(ln,{location:"top"},{activator:m(({props:o})=>[f(te,ve(o,{class:"ms-4",color:"secondary",size:"small",rounded:"",onClick:mn(i,["prevent","stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[...s[0]||(s[0]=[_("delete",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...s[1]||(s[1]=[_("Delete printer",-1)])]),_:1}))}}),Gme=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let i=e.indexOf(t);for(;~i;)r.push([i,i+t.length]),i=e.indexOf(t,i+t.length);return r.length?r:-1};function Xb(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const b3=be({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function qme(e,t,n){const r=[],i=n?.default??Gme,a=n?.filterKeys?rr(n.filterKeys):!1,s=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;let o=null;e:for(let l=0;l<e.length;l++){const[u,c=u]=rr(e[l]),d={},p={};let h=-1;if((t||s>0)&&!n?.noFilter){let g=!1;if(typeof u=="object"){if(u.type==="divider"||u.type==="subheader"){o?.type==="divider"&&u.type==="subheader"&&r.push(o),o={index:l,matches:{},type:u.type};continue}const b=a||Object.keys(c);g=b.length===s;for(const S of b){const w=Jn(c,S),C=n?.customKeyFilter?.[S];if(h=C?C(w,t,u):i(w,t,u),h!==-1&&h!==!1)C?d[S]=Xb(h,t):p[S]=Xb(h,t);else if(n?.filterMode==="every")continue e}}else h=i(u,t,u),h!==-1&&h!==!1&&(p.title=Xb(h,t));const v=Object.keys(p).length,y=Object.keys(d).length;if(!v&&!y||n?.filterMode==="union"&&y!==s&&!v||n?.filterMode==="intersection"&&(y!==s||!v&&s>0&&!g))continue}o&&(r.push(o),o=null),r.push({index:l,matches:{...p,...d}})}return r}function S3(e,t,n,r){const i=Le([]),a=Le(new Map),s=L(()=>r?.transform?re(t).map(l=>[l,r.transform(l)]):re(t));ar(()=>{const l=typeof n=="function"?n():re(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=qme(s.value,u,{customKeyFilter:{...e.customKeyFilter,...re(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=re(t),p=[],h=new Map;c.forEach(g=>{let{index:v,matches:y}=g;const b=d[v];p.push(b),h.set(b.value,y)}),i.value=p,a.value=h});function o(l){return a.value.get(l.value)}return{filteredItems:i,filteredMatches:a,getMatches:o}}function Kme(e,t,n){return n==null||!n.length?t:n.map((r,i)=>{const a=i===0?0:n[i-1][1],s=[E("span",{class:Te(`${e}__unmask`)},[t.slice(a,r[0])]),E("span",{class:Te(`${e}__mask`)},[t.slice(r[0],r[1])])];return i===n.length-1&&s.push(E("span",{class:Te(`${e}__unmask`)},[t.slice(r[1])])),E(Ne,null,[s])})}const Yme=be({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...b3({filterKeys:["title"]}),...A$(),...Nn(Ix({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VAutocomplete"),Xme=De()({name:"VAutocomplete",props:Yme(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=Ur(),i=z(),a=Le(!1),s=Le(!0),o=Le(!1),l=z(),u=z(),c=Le(-1),d=Le(null),{items:p,transformIn:h,transformOut:g}=yM(e),{textColorClasses:v,textColorStyles:y}=Gi(()=>i.value?.color),{InputIcon:b}=ey(e),S=gt(e,"search",""),w=gt(e,"modelValue",[],oe=>h(oe===null?[null]:rr(oe)),oe=>{const ge=g(oe);return e.multiple?ge:ge[0]??null}),C=L(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:w.value.length),P=ny(e),{filteredItems:k,getMatches:R}=S3(e,p,()=>d.value??(s.value?"":S.value)),T=L(()=>e.hideSelected&&d.value===null?k.value.filter(oe=>!w.value.some(ge=>ge.value===oe.value)):k.value),I=se(()=>e.closableChips&&!P.isReadonly.value&&!P.isDisabled.value),x=L(()=>!!(e.chips||n.chip)),A=L(()=>x.value||!!n.selection),D=L(()=>w.value.map(oe=>oe.props.value)),B=L(()=>T.value.find(oe=>oe.type==="item"&&!oe.props.disabled)),V=L(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&S.value===B.value?.title)&&T.value.length>0&&!s.value&&!o.value),$=L(()=>e.hideNoData&&!T.value.length||P.isReadonly.value||P.isDisabled.value),N=gt(e,"menu"),O=L({get:()=>N.value,set:oe=>{N.value&&!oe&&l.value?.ΨopenChildren.size||oe&&$.value||(N.value=oe)}}),{menuId:M,ariaExpanded:Y,ariaControls:X}=R$(e,O),ie=z(),Z=P$(ie,i);function G(oe){e.openOnClear&&(O.value=!0),S.value=""}function le(){$.value||(O.value=!0)}function ee(oe){$.value||(a.value&&(oe.preventDefault(),oe.stopPropagation()),O.value=!O.value)}function ue(oe){(Eg(oe)||oe.key==="Backspace")&&i.value?.focus()}function W(oe){if(P.isReadonly.value)return;const ge=i.value?.selectionStart,xe=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(oe.key)&&oe.preventDefault(),["Enter","ArrowDown"].includes(oe.key)&&(O.value=!0),["Escape"].includes(oe.key)&&(O.value=!1),V.value&&["Enter","Tab"].includes(oe.key)&&B.value&&!w.value.some(Ie=>{let{value:Ee}=Ie;return Ee===B.value.value})&&ce(B.value),oe.key==="ArrowDown"&&V.value&&ie.value?.focus("next"),["Backspace","Delete"].includes(oe.key)){if(!e.multiple&&A.value&&w.value.length>0&&!S.value)return ce(w.value[0],!1);if(~c.value){oe.preventDefault();const Ie=c.value;ce(w.value[c.value],!1),c.value=Ie>=xe-1?xe-2:Ie}else oe.key==="Backspace"&&!S.value&&(c.value=xe-1);return}if(e.multiple)if(oe.key==="ArrowLeft"){if(c.value<0&&ge&&ge>0)return;const Ie=c.value>-1?c.value-1:xe-1;if(w.value[Ie])c.value=Ie;else{const Ee=S.value?.length??null;c.value=-1,i.value?.setSelectionRange(Ee,Ee)}}else if(oe.key==="ArrowRight"){if(c.value<0)return;const Ie=c.value+1;w.value[Ie]?c.value=Ie:(c.value=-1,i.value?.setSelectionRange(0,0))}else~c.value&&Eg(oe)&&(c.value=-1)}function ne(oe){if(Vc(i.value,":autofill")||Vc(i.value,":-webkit-autofill")){const ge=p.value.find(xe=>xe.title===oe.target.value);ge&&ce(ge)}}function J(){e.eager&&u.value?.calculateVisibleItems()}function ke(){a.value&&(s.value=!0,i.value?.focus()),d.value=null}function We(oe){a.value=!0,setTimeout(()=>{o.value=!0})}function Ve(oe){o.value=!1}function H(oe){(oe==null||oe===""&&!e.multiple&&!A.value)&&(w.value=[])}const q=Le(!1);function ce(oe){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!oe||oe.props.disabled))if(e.multiple){const xe=w.value.findIndex(Ee=>(e.valueComparator||ti)(Ee.value,oe.value)),Ie=ge??!~xe;if(~xe){const Ee=Ie?[...w.value,oe]:[...w.value];Ee.splice(xe,1),w.value=Ee}else Ie&&(w.value=[...w.value,oe]);e.clearOnSelect&&(S.value="")}else{const xe=ge!==!1;w.value=xe?[oe]:[],d.value=s.value?"":S.value??"",S.value=xe&&!A.value?oe.title:"",At(()=>{O.value=!1,s.value=!0})}}return Oe(a,(oe,ge)=>{oe!==ge&&(oe?(q.value=!0,S.value=e.multiple||A.value?"":String(w.value.at(-1)?.props.title??""),s.value=!0,At(()=>q.value=!1)):(!e.multiple&&S.value==null&&(w.value=[]),O.value=!1,!s.value&&S.value&&(d.value=S.value),S.value="",c.value=-1))}),Oe(S,oe=>{!a.value||q.value||(oe&&(O.value=!0),s.value=!oe)}),Oe(O,oe=>{if(!e.hideSelected&&oe&&w.value.length&&s.value){const ge=T.value.findIndex(xe=>w.value.some(Ie=>xe.value===Ie.value));cn&&window.requestAnimationFrame(()=>{ge>=0&&u.value?.scrollToIndex(ge)})}oe&&(d.value=null)}),Oe(p,(oe,ge)=>{O.value||a.value&&!ge.length&&oe.length&&(O.value=!0)}),Fe(()=>{const oe=!!(!e.hideNoData||T.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),ge=w.value.length>0,xe=Et.filterProps(e);return f(Et,ve({ref:i},xe,{modelValue:S.value,"onUpdate:modelValue":[Ie=>S.value=Ie,H],focused:a.value,"onUpdate:focused":Ie=>a.value=Ie,validationValue:w.externalValue,counterValue:C.value,dirty:ge,onChange:ne,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":O.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!A.value,"v-autocomplete--selecting-index":c.value>-1},e.class],style:e.style,readonly:P.isReadonly.value,placeholder:ge?void 0:e.placeholder,"onClick:clear":G,"onMousedown:control":le,onKeydown:W,"aria-expanded":Y.value,"aria-controls":X.value}),{...n,default:Ie=>{let{id:Ee}=Ie;return E(Ne,null,[f(ls,ve({id:M.value,ref:l,modelValue:O.value,"onUpdate:modelValue":_e=>O.value=_e,activator:"parent",contentClass:"v-autocomplete__content",disabled:$.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:J,onAfterLeave:ke},e.menuProps),{default:()=>[oe&&f(Mr,ve({ref:ie,filterable:!0,selected:D.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:_e=>_e.preventDefault(),onKeydown:ue,onFocusin:We,onFocusout:Ve,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-labelledby":`${Ee.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},Z,e.listProps),{default:()=>[n["prepend-item"]?.(),!T.value.length&&!e.hideNoData&&(n["no-data"]?.()??f(wt,{key:"no-data",title:r(e.noDataText)},null)),f(I$,{ref:u,renderless:!0,items:T.value,itemKey:"value"},{default:_e=>{let{item:he,index:Ue,itemRef:Pe}=_e;const qe=ve(he.props,{ref:Pe,key:he.value,active:V.value&&he===B.value?!0:void 0,onClick:()=>ce(he,null),"aria-posinset":Ue+1,"aria-setsize":T.value.length});return he.type==="divider"?n.divider?.({props:he.raw,index:Ue})??f(mt,ve(he.props,{key:`divider-${Ue}`}),null):he.type==="subheader"?n.subheader?.({props:he.raw,index:Ue})??f(_d,ve(he.props,{key:`subheader-${Ue}`}),null):n.item?.({item:he,index:Ue,props:qe})??f(wt,ve(qe,{role:"option"}),{prepend:tt=>{let{isSelected:rt}=tt;return E(Ne,null,[e.multiple&&!e.hideSelected?f(go,{key:he.value,modelValue:rt,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:$t=>$t.preventDefault()},null):void 0,he.props.prependAvatar&&f(jn,{image:he.props.prependAvatar},null),he.props.prependIcon&&f(j,{icon:he.props.prependIcon},null)])},title:()=>s.value?he.title:Kme("v-autocomplete",he.title,R(he)?.title)})}}),n["append-item"]?.()]})]}),w.value.map((_e,he)=>{function Ue(rt){rt.stopPropagation(),rt.preventDefault(),ce(_e,!1)}const Pe=ve(Ke.filterProps(_e.props),{"onClick:close":Ue,onKeydown(rt){rt.key!=="Enter"&&rt.key!==" "||(rt.preventDefault(),rt.stopPropagation(),Ue(rt))},onMousedown(rt){rt.preventDefault(),rt.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),qe=x.value?!!n.chip:!!n.selection,tt=qe?XE(x.value?n.chip({item:_e,index:he,props:Pe}):n.selection({item:_e,index:he})):void 0;if(!(qe&&!tt))return E("div",{key:_e.value,class:Te(["v-autocomplete__selection",he===c.value&&["v-autocomplete__selection--selected",v.value]]),style:je(he===c.value?y.value:{})},[x.value?n.chip?f(sn,{key:"chip-defaults",defaults:{VChip:{closable:I.value,size:"small",text:_e.title}}},{default:()=>[tt]}):f(Ke,ve({key:"chip",closable:I.value,size:"small",text:_e.title,disabled:_e.props.disabled},Pe),null):tt??E("span",{class:"v-autocomplete__selection-text"},[_e.title,e.multiple&&he<w.value.length-1&&E("span",{class:"v-autocomplete__selection-comma"},[_(",")])])])})])},"append-inner":function(){for(var Ie=arguments.length,Ee=new Array(Ie),_e=0;_e<Ie;_e++)Ee[_e]=arguments[_e];return E(Ne,null,[n["append-inner"]?.(...Ee),e.menuIcon?f(j,{class:"v-autocomplete__menu-icon",color:i.value?.fieldIconColor,icon:e.menuIcon,onMousedown:ee,onClick:CJ,"aria-hidden":!0,tabindex:"-1"},null):void 0,e.appendInnerIcon&&f(b,{key:"append-icon",name:"appendInner",color:Ee[0].iconColor.value},null)])}})}),Ci({isFocused:a,isPristine:s,menu:O,search:S,filteredItems:k,select:ce},i)}}),Jme=be({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),w3=Symbol.for("vuetify:datatable:expanded");function E3(e){const t=se(()=>e.expandOnClick),n=gt(e,"expanded",e.expanded,o=>new Set(o),o=>[...o.values()]);function r(o,l){const u=new Set(n.value),c=nt(o.value);if(l)u.add(c);else{const d=[...n.value].find(p=>nt(p)===c);u.delete(d)}n.value=u}function i(o){const l=nt(o.value);return[...n.value].some(u=>nt(u)===l)}function a(o){r(o,!i(o))}const s={expand:r,expanded:n,expandOnClick:t,isExpanded:i,toggleExpand:a};return Sn(w3,s),s}function x3(){const e=ft(w3);if(!e)throw new Error("foo");return e}const Qme=be({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),C3=Symbol.for("vuetify:data-table-group");function k3(e){return{groupBy:gt(e,"groupBy")}}function _3(e){const{disableSort:t,groupBy:n,sortBy:r}=e,i=z(new Set),a=L(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t?.value?[]:r.value));function s(c){return i.value.has(c.id)}function o(c){const d=new Set(i.value);s(c)?d.delete(c.id):d.add(c.id),i.value=d}function l(c){function d(p){const h=[];for(const g of p.items)"type"in g&&g.type==="group"?h.push(...d(g)):h.push(g);return[...new Set(h)]}return d({items:c})}const u={sortByWithGroups:a,toggleGroup:o,opened:i,groupBy:n,extractRows:l,isGroupOpen:s};return Sn(C3,u),u}function T3(){const e=ft(C3);if(!e)throw new Error("Missing group!");return e}function Zme(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const i=du(r.raw,t);n.has(i)||n.set(i,[]),n.get(i).push(r)}return n}function I3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const i=Zme(e,t[0]),a=[],s=t.slice(1);return i.forEach((o,l)=>{const u=t[0],c=`${r}_${u}_${l}`;a.push({depth:n,id:c,key:u,value:l,items:s.length?I3(o,s,n+1,c):o,type:"group"})}),a}function P3(e,t,n){const r=[];for(const i of e)"type"in i&&i.type==="group"?(i.value!=null&&r.push(i),(t.has(i.id)||i.value==null)&&(r.push(...P3(i.items,t,n)),n&&r.push({...i,type:"group-summary"}))):r.push(i);return r}function R3(e,t,n,r){return{flatItems:L(()=>{if(!t.value.length)return e.value;const a=I3(e.value,t.value.map(s=>s.key));return P3(a,n.value,bn(r))})}}function A3(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:i,search:a}=e;const s=zn("VDataTable"),o=()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:i.value,search:a.value});let l=null;Oe(o,u=>{ti(l,u)||(l&&l.search!==u.search&&(t.value=1),s.emit("update:options",u),l=u)},{deep:!0,immediate:!0})}const O3=be({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),N3=Symbol.for("vuetify:data-table-pagination");function D3(e){const t=gt(e,"page",void 0,r=>Number(r??1)),n=gt(e,"itemsPerPage",void 0,r=>Number(r??10));return{page:t,itemsPerPage:n}}function L3(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,i=L(()=>n.value===-1?0:n.value*(t.value-1)),a=L(()=>n.value===-1?r.value:Math.min(r.value,i.value+n.value)),s=L(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));Oe([t,s],()=>{t.value>s.value&&(t.value=s.value)});function o(p){n.value=p,t.value=1}function l(){t.value=On(t.value+1,1,s.value)}function u(){t.value=On(t.value-1,1,s.value)}function c(p){t.value=On(p,1,s.value)}const d={page:t,itemsPerPage:n,startIndex:i,stopIndex:a,pageCount:s,itemsLength:r,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:o};return Sn(N3,d),d}function ehe(){const e=ft(N3);if(!e)throw new Error("Missing pagination!");return e}function the(e){const t=zn("usePaginatedItems"),{items:n,startIndex:r,stopIndex:i,itemsPerPage:a}=e,s=L(()=>a.value<=0?n.value:n.value.slice(r.value,i.value));return Oe(s,o=>{t.emit("update:currentItems",o)},{immediate:!0}),{paginatedItems:s}}const nhe={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:n}=e;return new Set(n?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},F3={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const i of t)n?r.add(i.value):r.delete(i.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return F3.select({items:n,value:t,selected:r})}},rhe={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const i of t)n?r.add(i.value):r.delete(i.value);return r},selectAll:e=>{let{value:t,allItems:n}=e;return new Set(t?n.map(r=>r.value):[])}},ihe=be({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),M3=Symbol.for("vuetify:data-table-selection");function $3(e,t){let{allItems:n,currentPage:r}=t;const i=gt(e,"modelValue",e.modelValue,S=>{const w=e.valueComparator;return w?new Set(rr(S).map(C=>n.value.find(P=>w(C,P.value))?.value??C)):new Set(rr(S).map(C=>Jo(C)?n.value.find(P=>C===P.value)?.value??C:n.value.find(P=>ti(C,P.value))?.value??C))},S=>[...S.values()]),a=L(()=>n.value.filter(S=>S.selectable)),s=L(()=>r.value.filter(S=>S.selectable)),o=L(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return nhe;case"all":return rhe;default:return F3}}),l=Le(null);function u(S){return rr(S).every(w=>i.value.has(w.value))}function c(S){return rr(S).some(w=>i.value.has(w.value))}function d(S,w){const C=o.value.select({items:S,value:w,selected:new Set(i.value)});i.value=C}function p(S,w,C){const P=[];if(w=w??r.value.findIndex(k=>k.value===S.value),e.selectStrategy!=="single"&&C?.shiftKey&&l.value!==null){const[k,R]=[l.value,w].sort((T,I)=>T-I);P.push(...r.value.slice(k,R+1).filter(T=>T.selectable))}else P.push(S),l.value=w;d(P,!u([S]))}function h(S){const w=o.value.selectAll({value:S,allItems:a.value,currentPage:s.value,selected:new Set(i.value)});i.value=w}const g=L(()=>i.value.size>0),v=L(()=>{const S=o.value.allSelected({allItems:a.value,currentPage:s.value});return!!S.length&&u(S)}),y=se(()=>o.value.showSelectAll),b={toggleSelect:p,select:d,selectAll:h,isSelected:u,isSomeSelected:c,someSelected:g,allSelected:v,showSelectAll:y,lastSelectedIndex:l,selectStrategy:o};return Sn(M3,b),b}function my(){const e=ft(M3);if(!e)throw new Error("Missing selection!");return e}const she=be({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),V3=Symbol.for("vuetify:data-table-sort");function B3(e){const t=se(()=>e.initialSortOrder),n=gt(e,"sortBy"),r=se(()=>e.mustSort),i=se(()=>e.multiSort);return{initialSortOrder:t,sortBy:n,multiSort:i,mustSort:r}}function ahe(e,t){if(!Qf(e))return{active:!!e};const{key:n,mode:r,modifier:i}=e,a=i==="alt"&&t?.altKey||i==="shift"&&t?.shiftKey;return{active:!n||t?.ctrlKey||t?.metaKey||!1,mode:a?r==="append"?"prepend":"append":r}}function U3(e){const{initialSortOrder:t,sortBy:n,mustSort:r,multiSort:i,page:a}=e,s=(u,c)=>{if(u.key==null)return;let d=n.value.map(v=>({...v}))??[];const p=d.find(v=>v.key===u.key),h=t.value,g=t.value==="desc"?"asc":"desc";if(p)p.order===g?r.value&&d.length===1?p.order=t.value:d=d.filter(v=>v.key!==u.key):p.order=g;else{const{active:v,mode:y}=ahe(i.value,c);v?y==="prepend"?d.unshift({key:u.key,order:h}):d.push({key:u.key,order:h}):d=[{key:u.key,order:h}]}n.value=d,a&&(a.value=1)};function o(u){return!!n.value.find(c=>c.key===u.key)}const l={sortBy:n,toggleSort:s,isSorted:o};return Sn(V3,l),l}function j3(){const e=ft(V3);if(!e)throw new Error("Missing sort!");return e}function ohe(e,t,n,r){const i=Ur();return{sortedItems:L(()=>n.value.length?lhe(t.value,n.value,i.current.value,{transform:r?.transform,sortFunctions:{...e.customKeySort,...r?.sortFunctions?.value},sortRawFunctions:r?.sortRawFunctions?.value}):t.value)}}function lhe(e,t,n,r){const i=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(s=>[s,r?.transform?r.transform(s):s]).sort((s,o)=>{for(let l=0;l<t.length;l++){let u=!1;const c=t[l].key,d=t[l].order??"asc";if(d===!1)continue;let p=du(s[1],c),h=du(o[1],c),g=s[0].raw,v=o[0].raw;if(d==="desc"&&([p,h]=[h,p],[g,v]=[v,g]),r?.sortRawFunctions?.[c]){const y=r.sortRawFunctions[c](g,v);if(y==null)continue;if(u=!0,y)return y}if(r?.sortFunctions?.[c]){const y=r.sortFunctions[c](p,h);if(y==null)continue;if(u=!0,y)return y}if(!u&&(p instanceof Date&&h instanceof Date&&(p=p.getTime(),h=h.getTime()),[p,h]=[p,h].map(y=>y!=null?y.toString().toLocaleLowerCase():y),p!==h))return Vm(p)&&Vm(h)?0:Vm(p)?-1:Vm(h)?1:!isNaN(p)&&!isNaN(h)?Number(p)-Number(h):i.compare(p,h)}return 0}).map(s=>{let[o]=s;return o})}function uhe(){const e=z([]);yv(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const che=be({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:et,default:"$first"},prevIcon:{type:et,default:"$prev"},nextIcon:{type:et,default:"$next"},lastIcon:{type:et,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...As(),...Qe(),..._r(),...xi(),...mr(),...wd(),...zt({tag:"nav"}),...vn(),...ea({variant:"text"})},"VPagination"),WP=De()({name:"VPagination",props:che(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=gt(e,"modelValue"),{t:a,n:s}=Ur(),{isRtl:o}=Tr(),{themeClasses:l}=xn(e),{width:u}=ta(),c=Le(-1);Sr(void 0,{scoped:!0});const{resizeRef:d}=po(T=>{if(!T.length)return;const{target:I,contentRect:x}=T[0],A=I.querySelector(".v-pagination__list > *");if(!A)return;const D=x.width,B=A.offsetWidth+parseFloat(getComputedStyle(A).marginRight)*2;c.value=v(D,B)}),p=L(()=>parseInt(e.length,10)),h=L(()=>parseInt(e.start,10)),g=L(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:v(u.value,58));function v(T,I){const x=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((T-I*x)/I).toFixed(2))))}const y=L(()=>{if(p.value<=0||isNaN(p.value)||p.value>Number.MAX_SAFE_INTEGER)return[];if(g.value<=0)return[];if(g.value===1)return[i.value];if(p.value<=g.value)return Il(p.value,h.value);const T=g.value%2===0,I=T?g.value/2:Math.floor(g.value/2),x=T?I:I+1,A=p.value-I;if(x-i.value>=0)return[...Il(Math.max(1,g.value-1),h.value),e.ellipsis,p.value];if(i.value-A>=(T?1:0)){const D=g.value-1,B=p.value-D+h.value;return[h.value,e.ellipsis,...Il(D,B)]}else{const D=Math.max(1,g.value-2),B=D===1?i.value:i.value-Math.ceil(D/2)+h.value;return[h.value,e.ellipsis,...Il(D,B),e.ellipsis,p.value]}});function b(T,I,x){T.preventDefault(),i.value=I,x&&r(x,I)}const{refs:S,updateRef:w}=uhe();Sr({VPaginationBtn:{color:se(()=>e.color),border:se(()=>e.border),density:se(()=>e.density),size:se(()=>e.size),variant:se(()=>e.variant),rounded:se(()=>e.rounded),elevation:se(()=>e.elevation)}});const C=L(()=>y.value.map((T,I)=>{const x=A=>w(A,I);if(typeof T=="string")return{isActive:!1,key:`ellipsis-${I}`,page:T,props:{ref:x,ellipsis:!0,icon:!0,disabled:!0}};{const A=T===i.value;return{isActive:A,key:T,page:s(T),props:{ref:x,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:A?e.activeColor:e.color,"aria-current":A,"aria-label":a(A?e.currentPageAriaLabel:e.pageAriaLabel,T),onClick:D=>b(D,T)}}}})),P=L(()=>{const T=!!e.disabled||i.value<=h.value,I=!!e.disabled||i.value>=h.value+p.value-1;return{first:e.showFirstLastPage?{icon:o.value?e.lastIcon:e.firstIcon,onClick:x=>b(x,h.value,"first"),disabled:T,"aria-label":a(e.firstAriaLabel),"aria-disabled":T}:void 0,prev:{icon:o.value?e.nextIcon:e.prevIcon,onClick:x=>b(x,i.value-1,"prev"),disabled:T,"aria-label":a(e.previousAriaLabel),"aria-disabled":T},next:{icon:o.value?e.prevIcon:e.nextIcon,onClick:x=>b(x,i.value+1,"next"),disabled:I,"aria-label":a(e.nextAriaLabel),"aria-disabled":I},last:e.showFirstLastPage?{icon:o.value?e.firstIcon:e.lastIcon,onClick:x=>b(x,h.value+p.value-1,"last"),disabled:I,"aria-label":a(e.lastAriaLabel),"aria-disabled":I}:void 0}});function k(){const T=i.value-h.value;S.value[T]?.$el.focus()}function R(T){T.key===sS.left&&!e.disabled&&i.value>Number(e.start)?(i.value=i.value-1,At(k)):T.key===sS.right&&!e.disabled&&i.value<h.value+p.value-1&&(i.value=i.value+1,At(k))}return Fe(()=>f(e.tag,{ref:d,class:Te(["v-pagination",l.value,e.class]),style:je(e.style),role:"navigation","aria-label":a(e.ariaLabel),onKeydown:R,"data-test":"v-pagination-root"},{default:()=>[E("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&E("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(P.value.first):f(te,ve({_as:"VPaginationBtn"},P.value.first),null)]),E("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(P.value.prev):f(te,ve({_as:"VPaginationBtn"},P.value.prev),null)]),C.value.map((T,I)=>E("li",{key:T.key,class:Te(["v-pagination__item",{"v-pagination__item--is-active":T.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(T):f(te,ve({_as:"VPaginationBtn"},T.props),{default:()=>[T.page]})])),E("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(P.value.next):f(te,ve({_as:"VPaginationBtn"},P.value.next),null)]),e.showFirstLastPage&&E("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(P.value.last):f(te,ve({_as:"VPaginationBtn"},P.value.last),null)])])]})),{}}}),nC=be({color:String,prevIcon:{type:et,default:"$prev"},nextIcon:{type:et,default:"$next"},firstIcon:{type:et,default:"$first"},lastIcon:{type:et,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),jg=De()({name:"VDataTableFooter",props:nC(),setup(e,t){let{slots:n}=t;const{t:r}=Ur(),{page:i,pageCount:a,startIndex:s,stopIndex:o,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=ehe(),d=L(()=>e.itemsPerPageOptions.map(p=>typeof p=="number"?{value:p,title:p===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(p)}:{...p,title:isNaN(Number(p.title))?r(p.title):p.title}));return Fe(()=>{const p=WP.filterProps(e);return E("div",{class:"v-data-table-footer"},[n.prepend?.(),E("div",{class:"v-data-table-footer__items-per-page"},[E("span",null,[r(e.itemsPerPageText)]),f(mi,{items:d.value,itemColor:e.color,modelValue:u.value,"onUpdate:modelValue":h=>c(Number(h)),density:"compact",variant:"outlined","aria-label":r(e.itemsPerPageText),hideDetails:!0},null)]),E("div",{class:"v-data-table-footer__info"},[E("div",null,[r(e.pageText,l.value?s.value+1:0,o.value,l.value)])]),E("div",{class:"v-data-table-footer__pagination"},[f(WP,ve({modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:a.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},Nn(p,["color"])),null)])])}),{}}}),gp=rQ({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const r=e.tag??"td",i=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return f(r,{class:Te(["v-data-table__td",{"v-data-table-column--fixed":i==="start","v-data-table-column--fixed-end":i==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:Me(e.height),width:Me(e.width),maxWidth:Me(e.maxWidth),left:i==="start"?Me(e.fixedOffset||null):void 0,right:i==="end"?Me(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?Me(e.indent):void 0}},{default:()=>[n.default?.()]})}),dhe=be({headers:Array},"DataTable-header"),z3=Symbol.for("vuetify:data-table-headers"),H3={title:"",sortable:!1},fhe={...H3,width:48};function phe(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let i=!1;for(let a=0;a<t.length;a++)if(t[a].priority>r){t.splice(a,0,{element:n,priority:r}),i=!0;break}i||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let i=0;i<t.length;i++)Math.floor(t[i].priority)===r&&(n+=1);return n},dequeue:()=>t.shift()}}function sw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)sw(n,t);return t}function W3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&W3(n.children,t);return t}function mhe(e){if(e.key){if(e.key==="data-table-group")return H3;if(["data-table-expand","data-table-select"].includes(e.key))return fhe}}function rC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>rC(n,t+1))):t}function hhe(e){let t=!1;function n(a,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(a)if(o!=="none"&&(a.fixed=o),a.fixed===!0&&(a.fixed="start"),a.fixed===s)if(a.children)if(s==="start")for(let l=a.children.length-1;l>=0;l--)n(a.children[l],s,s);else for(let l=0;l<a.children.length;l++)n(a.children[l],s,s);else!t&&s==="start"?a.lastFixed=!0:!t&&s==="end"?a.firstFixedEnd=!0:isNaN(Number(a.width))?(`${a.key}`,void 0):a.minWidth=Math.max(Number(a.width)||0,Number(a.minWidth)||0),t=!0;else if(a.children)if(s==="start")for(let l=a.children.length-1;l>=0;l--)n(a.children[l],s);else for(let l=0;l<a.children.length;l++)n(a.children[l],s);else t=!1}for(let a=e.length-1;a>=0;a--)n(e[a],"start");for(let a=0;a<e.length;a++)n(e[a],"end");let r=0;for(let a=0;a<e.length;a++)r=G3(e[a],r);let i=0;for(let a=e.length-1;a>=0;a--)i=q3(e[a],i)}function G3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const n of e.children)t=G3(n,t)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function q3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const n of e.children)t=q3(n,t)}else e.fixed==="end"&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function ghe(e,t){const n=[];let r=0;const i=phe(e);for(;i.size()>0;){let s=i.count();const o=[];let l=1;for(;s>0;){const{element:u,priority:c}=i.dequeue(),d=t-r-rC(u);if(o.push({...u,rowspan:d??1,colspan:u.children?sw(u).length:1}),u.children)for(const p of u.children){const h=c%1+l/Math.pow(10,r+2);i.enqueue(p,r+d+h)}l+=1,s-=1}r+=1,n.push(o)}return{columns:e.map(s=>sw(s)).flat(),headers:n}}function K3(e){const t=[];for(const n of e){const r={...mhe(n),...n},i=r.key??(typeof r.value=="string"?r.value:null),a=r.value??i??null,s={...r,key:i,value:a,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?K3(r.children):void 0};t.push(s)}return t}function Y3(e,t){const n=z([]),r=z([]),i=z({}),a=z({}),s=z({});ar(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(v=>({key:v,title:Ki(v)}))).slice(),c=W3(u);t?.groupBy?.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),t?.showExpand?.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const d=K3(u);hhe(d);const p=Math.max(...d.map(v=>rC(v)))+1,h=ghe(d,p);n.value=h.headers,r.value=h.columns;const g=h.headers.flat(1);for(const v of g)v.key&&(v.sortable&&(v.sort&&(i.value[v.key]=v.sort),v.sortRaw&&(a.value[v.key]=v.sortRaw)),v.filter&&(s.value[v.key]=v.filter))});const o={headers:n,columns:r,sortFunctions:i,sortRawFunctions:a,filterFunctions:s};return Sn(z3,o),o}function hy(){const e=ft(z3);if(!e)throw new Error("Missing headers!");return e}const X3=be({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortAscIcon:{type:et,default:"$sortAsc"},sortDescIcon:{type:et,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,..._r(),...Ru(),...Wv()},"VDataTableHeaders"),zg=De()({name:"VDataTableHeaders",props:X3(),setup(e,t){let{slots:n}=t;const{t:r}=Ur(),{toggleSort:i,sortBy:a,isSorted:s}=j3(),{someSelected:o,allSelected:l,selectAll:u,showSelectAll:c}=my(),{columns:d,headers:p}=hy(),{loaderClasses:h}=tm(e);function g(I,x){if(!(e.sticky||e.fixedHeader)&&!I.fixed)return;const A=typeof I.fixed=="string"?I.fixed:I.fixed?"start":"none";return{position:"sticky",left:A==="start"?Me(I.fixedOffset):void 0,right:A==="end"?Me(I.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${x})`:void 0}}function v(I,x){I.key==="Enter"&&!e.disableSort&&i(x,I)}function y(I){const x=a.value.find(A=>A.key===I.key);return!x&&e.initialSortOrder==="asc"||x?.order==="asc"?e.sortAscIcon:e.sortDescIcon}const{backgroundColorClasses:b,backgroundColorStyles:S}=$n(()=>e.color),{displayClasses:w,mobile:C}=ta(e),P=L(()=>({headers:p.value,columns:d.value,toggleSort:i,isSorted:s,sortBy:a.value,someSelected:o.value,allSelected:l.value,selectAll:u,getSortIcon:y})),k=L(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},w.value,h.value]),R=I=>{let{column:x,x:A,y:D}=I;const B=x.key==="data-table-select"||x.key==="data-table-expand",V=x.key==="data-table-group"&&x.width===0&&!x.title,$=ve(e.headerProps??{},x.headerProps??{});return f(gp,ve({tag:"th",align:x.align,class:[{"v-data-table__th--sortable":x.sortable&&!e.disableSort,"v-data-table__th--sorted":s(x),"v-data-table__th--fixed":x.fixed},...k.value],style:{width:Me(x.width),minWidth:Me(x.minWidth),maxWidth:Me(x.maxWidth),...g(x,D)},colspan:x.colspan,rowspan:x.rowspan,fixed:x.fixed,nowrap:x.nowrap,lastFixed:x.lastFixed,firstFixedEnd:x.firstFixedEnd,noPadding:B,empty:V,tabindex:x.sortable?0:void 0,onClick:x.sortable?N=>i(x,N):void 0,onKeydown:x.sortable?N=>v(N,x):void 0},$),{default:()=>{const N=`header.${x.key}`,O={column:x,selectAll:u,isSorted:s,toggleSort:i,sortBy:a.value,someSelected:o.value,allSelected:l.value,getSortIcon:y};return n[N]?n[N](O):V?"":x.key==="data-table-select"?n["header.data-table-select"]?.(O)??(c.value&&f(go,{color:e.color,density:e.density,modelValue:l.value,indeterminate:o.value&&!l.value,"onUpdate:modelValue":u},null)):E("div",{class:"v-data-table-header__content"},[E("span",null,[x.title]),x.sortable&&!e.disableSort&&f(j,{key:"icon",class:"v-data-table-header__sort-icon",icon:y(x)},null),e.multiSort&&s(x)&&E("div",{key:"badge",class:Te(["v-data-table-header__sort-badge",...b.value]),style:je(S.value)},[a.value.findIndex(M=>M.key===x.key)+1])])}})},T=()=>{const I=L(()=>d.value.filter(A=>A?.sortable&&!e.disableSort)),x=d.value.find(A=>A.key==="data-table-select");return f(gp,ve({tag:"th",class:[...k.value],colspan:p.value.length+1},e.headerProps),{default:()=>[E("div",{class:"v-data-table-header__content"},[f(mi,{chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:I.value,label:r("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>a.value=[]},{append:x?()=>f(go,{color:e.color,density:"compact",modelValue:l.value,indeterminate:o.value&&!l.value,"onUpdate:modelValue":()=>u(!l.value)},null):void 0,chip:A=>f(Ke,{onClick:A.item.raw?.sortable?()=>i(A.item.raw):void 0,onMousedown:D=>{D.preventDefault(),D.stopPropagation()}},{default:()=>[A.item.title,f(j,{class:Te(["v-data-table__td-sort-icon",s(A.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:y(A.item.raw),size:"small"},null)]})})])]})};Fe(()=>C.value?E("tr",null,[f(T,null,null)]):E(Ne,null,[n.headers?n.headers(P.value):p.value.map((I,x)=>E("tr",null,[I.map((A,D)=>f(R,{column:A,x:D,y:x},null))])),e.loading&&E("tr",{class:"v-data-table-progress"},[E("th",{colspan:d.value.length},[f(Gv,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"||e.loading==="true"?e.color:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),J3=be({item:{type:Object,required:!0},groupCollapseIcon:{type:et,default:"$tableGroupCollapse"},groupExpandIcon:{type:et,default:"$tableGroupExpand"},..._r()},"VDataTableGroupHeaderRow"),vhe=De()({name:"VDataTableGroupHeaderRow",props:J3(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:i,extractRows:a}=T3(),{isSelected:s,isSomeSelected:o,select:l}=my(),{columns:u}=hy(),c=L(()=>a([e.item])),d=se(()=>u.value.length-(u.value.some(p=>p.key==="data-table-select")?1:0));return()=>E("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(p=>{if(p.key==="data-table-group"){const h=r(e.item)?e.groupCollapseIcon:e.groupExpandIcon,g=()=>i(e.item);return n["data-table-group"]?.({item:e.item,count:c.value.length,props:{icon:h,onClick:g}})??f(gp,{class:"v-data-table-group-header-row__column",colspan:d.value},{default:()=>[f(te,{size:"small",variant:"text",icon:h,onClick:g},null),E("span",null,[e.item.value]),E("span",null,[_("("),c.value.length,_(")")])]})}else if(p.key==="data-table-select"){const h=c.value.filter(b=>b.selectable),g=h.length>0&&s(h),v=o(h)&&!g,y=b=>l(h,b);return n["data-table-select"]?.({props:{modelValue:g,indeterminate:v,"onUpdate:modelValue":y}})??f(gp,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[f(go,{density:e.density,disabled:h.length===0,modelValue:g,indeterminate:v,"onUpdate:modelValue":y},null)]})}return""})])}}),Q3=be({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:et,default:"$collapse"},expandIcon:{type:et,default:"$expand"},onClick:Lr(),onContextmenu:Lr(),onDblclick:Lr(),..._r(),...Ru()},"VDataTableRow"),yhe=De()({name:"VDataTableRow",props:Q3(),setup(e,t){let{slots:n}=t;const{displayClasses:r,mobile:i}=ta(e,"v-data-table__tr"),{isSelected:a,toggleSelect:s,someSelected:o,allSelected:l,selectAll:u}=my(),{isExpanded:c,toggleExpand:d}=x3(),{toggleSort:p,sortBy:h,isSorted:g}=j3(),{columns:v}=hy();Fe(()=>E("tr",{class:Te(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},r.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&v.value.map((y,b)=>{const S=e.item,w=`item.${y.key}`,C=`header.${y.key}`,P={index:e.index,item:S.raw,internalItem:S,value:du(S.columns,y.key),column:y,isSelected:a,toggleSelect:s,isExpanded:c,toggleExpand:d},k={column:y,selectAll:u,isSorted:g,toggleSort:p,sortBy:h.value,someSelected:o.value,allSelected:l.value,getSortIcon:()=>""},R=typeof e.cellProps=="function"?e.cellProps({index:P.index,item:P.item,internalItem:P.internalItem,value:P.value,column:y}):e.cellProps,T=typeof y.cellProps=="function"?y.cellProps({index:P.index,item:P.item,internalItem:P.internalItem,value:P.value}):y.cellProps,I=y.key==="data-table-select"||y.key==="data-table-expand",x=y.key==="data-table-group"&&y.width===0&&!y.title;return f(gp,ve({align:y.align,indent:y.indent,class:{"v-data-table__td--expanded-row":y.key==="data-table-expand","v-data-table__td--select-row":y.key==="data-table-select"},fixed:y.fixed,fixedOffset:y.fixedOffset,fixedEndOffset:y.fixedEndOffset,lastFixed:y.lastFixed,firstFixedEnd:y.firstFixedEnd,maxWidth:i.value?void 0:y.maxWidth,noPadding:I,empty:x,nowrap:y.nowrap,width:i.value?void 0:y.width},R,T),{default:()=>{if(y.key==="data-table-select")return n["item.data-table-select"]?.({...P,props:{color:e.color,disabled:!S.selectable,modelValue:a([S]),onClick:mn(()=>s(S),["stop"])}})??f(go,{color:e.color,disabled:!S.selectable,density:e.density,modelValue:a([S]),onClick:mn(D=>s(S,e.index,D),["stop"])},null);if(y.key==="data-table-expand")return n["item.data-table-expand"]?.({...P,props:{icon:c(S)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:mn(()=>d(S),["stop"])}})??f(te,{icon:c(S)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:mn(()=>d(S),["stop"])},null);if(n[w]&&!i.value)return n[w](P);const A=U(P.value);return i.value?E(Ne,null,[E("div",{class:"v-data-table__td-title"},[n[C]?.(k)??y.title]),E("div",{class:"v-data-table__td-value"},[n[w]?.(P)??A])]):A}})})]))}}),Z3=be({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Ys(Q3(),["collapseIcon","expandIcon","density"]),...Ys(J3(),["groupCollapseIcon","groupExpandIcon","density"]),...Ru()},"VDataTableRows"),Hg=De()({name:"VDataTableRows",inheritAttrs:!1,props:Z3(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:i}=hy(),{expandOnClick:a,toggleExpand:s,isExpanded:o}=x3(),{isSelected:l,toggleSelect:u}=my(),{toggleGroup:c,isGroupOpen:d}=T3(),{t:p}=Ur(),{mobile:h}=ta(e);return Fe(()=>{const g=Ys(e,["groupCollapseIcon","groupExpandIcon","density"]);return e.loading&&(!e.items.length||r.loading)?E("tr",{class:"v-data-table-rows-loading",key:"loading"},[E("td",{colspan:i.value.length},[r.loading?.()??p(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?E("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[E("td",{colspan:i.value.length},[r["no-data"]?.()??p(e.noDataText)])]):E(Ne,null,[e.items.map((v,y)=>{if(v.type==="group"){const w={index:y,item:v,columns:i.value,isExpanded:o,toggleExpand:s,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:d};return r["group-header"]?r["group-header"](w):f(vhe,ve({key:`group-header_${v.id}`,item:v},uI(n,":groupHeader",()=>w),g),r)}if(v.type==="group-summary"){const w={index:y,item:v,columns:i.value,toggleGroup:c};return r["group-summary"]?.(w)??""}const b={index:v.virtualIndex??y,item:v.raw,internalItem:v,columns:i.value,isExpanded:o,toggleExpand:s,isSelected:l,toggleSelect:u},S={...b,props:ve({key:`item_${v.key??v.index}`,onClick:a.value?()=>{s(v)}:void 0,index:y,item:v,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:h.value},uI(n,":row",()=>b),typeof e.rowProps=="function"?e.rowProps({item:b.item,index:b.index,internalItem:b.internalItem}):e.rowProps)};return E(Ne,{key:S.props.key},[r.item?r.item(S):f(yhe,S.props,r),o(v)&&r["expanded-row"]?.(b)])})])}),{}}}),eV=be({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...Qe(),..._r(),...zt(),...vn()},"VTable"),vp=De()({name:"VTable",props:eV(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:i}=xn(e),{densityClasses:a}=us(e);return Fe(()=>f(e.tag,{class:Te(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},i.value,a.value,e.class]),style:je(e.style)},{default:()=>[n.top?.(),n.default?E("div",{class:"v-table__wrapper",style:{height:Me(e.height)}},[E("table",null,[n.default()])]):n.wrapper?.(),n.bottom?.()]})),{}}}),bhe=be({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function She(e,t,n,r){const i=e.returnObject?t:Jn(t,e.itemValue),a=Jn(t,e.itemSelectable,!0),s=r.reduce((o,l)=>(l.key!=null&&(o[l.key]=Jn(t,l.value)),o),{});return{type:"item",key:e.returnObject?Jn(t,e.itemValue):i,index:n,value:i,selectable:a,columns:s,raw:t}}function whe(e,t,n){return t.map((r,i)=>She(e,r,i,n))}function tV(e,t){return{items:L(()=>whe(e,e.items,t.value))}}const nV=be({...Z3(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...Jme(),...Qme(),...dhe(),...bhe(),...ihe(),...she(),...Nn(X3(),["multiSort","initialSortOrder"]),...eV()},"DataTable"),Ehe=be({...O3(),...nV(),...b3(),...nC()},"VDataTable"),rV=De()({name:"VDataTable",props:Ehe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:i}=k3(e),{initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l}=B3(e),{page:u,itemsPerPage:c}=D3(e),{disableSort:d}=Ca(e),{columns:p,headers:h,sortFunctions:g,sortRawFunctions:v,filterFunctions:y}=Y3(e,{groupBy:i,showSelect:se(()=>e.showSelect),showExpand:se(()=>e.showExpand)}),{items:b}=tV(e,p),S=se(()=>e.search),{filteredItems:w}=S3(e,b,S,{transform:ne=>ne.columns,customKeyFilter:y}),{toggleSort:C}=U3({initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l,page:u}),{sortByWithGroups:P,opened:k,extractRows:R,isGroupOpen:T,toggleGroup:I}=_3({groupBy:i,sortBy:s,disableSort:d}),{sortedItems:x}=ohe(e,w,P,{transform:ne=>({...ne.raw,...ne.columns}),sortFunctions:g,sortRawFunctions:v}),{flatItems:A}=R3(x,i,k,()=>!!r["group-summary"]),D=L(()=>A.value.length),{startIndex:B,stopIndex:V,pageCount:$,setItemsPerPage:N}=L3({page:u,itemsPerPage:c,itemsLength:D}),{paginatedItems:O}=the({items:A,startIndex:B,stopIndex:V,itemsPerPage:c}),M=L(()=>R(O.value)),{isSelected:Y,select:X,selectAll:ie,toggleSelect:Z,someSelected:G,allSelected:le}=$3(e,{allItems:b,currentPage:M}),{isExpanded:ee,toggleExpand:ue}=E3(e);A3({page:u,itemsPerPage:c,sortBy:s,groupBy:i,search:S}),Sr({VDataTableRows:{hideNoData:se(()=>e.hideNoData),noDataText:se(()=>e.noDataText),loading:se(()=>e.loading),loadingText:se(()=>e.loadingText)}});const W=L(()=>({page:u.value,itemsPerPage:c.value,sortBy:s.value,pageCount:$.value,toggleSort:C,setItemsPerPage:N,someSelected:G.value,allSelected:le.value,isSelected:Y,select:X,selectAll:ie,toggleSelect:Z,isExpanded:ee,toggleExpand:ue,isGroupOpen:T,toggleGroup:I,items:M.value.map(ne=>ne.raw),internalItems:M.value,groupedItems:O.value,columns:p.value,headers:h.value}));return Fe(()=>{const ne=jg.filterProps(e),J=zg.filterProps(Nn(e,["multiSort"])),ke=Hg.filterProps(e),We=vp.filterProps(e);return f(vp,ve({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},We,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(W.value),default:()=>r.default?r.default(W.value):E(Ne,null,[r.colgroup?.(W.value),!e.hideDefaultHeader&&E("thead",{key:"thead"},[f(zg,ve(J,{multiSort:!!e.multiSort}),r)]),r.thead?.(W.value),!e.hideDefaultBody&&E("tbody",null,[r["body.prepend"]?.(W.value),r.body?r.body(W.value):f(Hg,ve(n,ke,{items:O.value}),r),r["body.append"]?.(W.value)]),r.tbody?.(W.value),r.tfoot?.(W.value)]),bottom:()=>r.bottom?r.bottom(W.value):!e.hideDefaultFooter&&E(Ne,null,[f(mt,null,null),f(jg,ne,{prepend:r["footer.prepend"]})])})}),{}}}),xhe=be({itemsLength:{type:[Number,String],required:!0},...O3(),...nV(),...nC()},"VDataTableServer"),Che=De()({name:"VDataTableServer",props:xhe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:i}=k3(e),{initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l}=B3(e),{page:u,itemsPerPage:c}=D3(e),{disableSort:d}=Ca(e),p=L(()=>parseInt(e.itemsLength,10)),{columns:h,headers:g}=Y3(e,{groupBy:i,showSelect:se(()=>e.showSelect),showExpand:se(()=>e.showExpand)}),{items:v}=tV(e,h),{toggleSort:y}=U3({initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l,page:u}),{opened:b,isGroupOpen:S,toggleGroup:w,extractRows:C}=_3({groupBy:i,sortBy:s,disableSort:d}),{pageCount:P,setItemsPerPage:k}=L3({page:u,itemsPerPage:c,itemsLength:p}),{flatItems:R}=R3(v,i,b,()=>!!r["group-summary"]),{isSelected:T,select:I,selectAll:x,toggleSelect:A,someSelected:D,allSelected:B}=$3(e,{allItems:v,currentPage:v}),{isExpanded:V,toggleExpand:$}=E3(e),N=L(()=>C(v.value));A3({page:u,itemsPerPage:c,sortBy:s,groupBy:i,search:se(()=>e.search)}),Sn("v-data-table",{toggleSort:y,sortBy:s}),Sr({VDataTableRows:{hideNoData:se(()=>e.hideNoData),noDataText:se(()=>e.noDataText),loading:se(()=>e.loading),loadingText:se(()=>e.loadingText)}});const O=L(()=>({page:u.value,itemsPerPage:c.value,sortBy:s.value,pageCount:P.value,toggleSort:y,setItemsPerPage:k,someSelected:D.value,allSelected:B.value,isSelected:T,select:I,selectAll:x,toggleSelect:A,isExpanded:V,toggleExpand:$,isGroupOpen:S,toggleGroup:w,items:N.value.map(M=>M.raw),internalItems:N.value,groupedItems:R.value,columns:h.value,headers:g.value}));Fe(()=>{const M=jg.filterProps(e),Y=zg.filterProps(Nn(e,["multiSort"])),X=Hg.filterProps(e),ie=vp.filterProps(e);return f(vp,ve({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},ie,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(O.value),default:()=>r.default?r.default(O.value):E(Ne,null,[r.colgroup?.(O.value),!e.hideDefaultHeader&&E("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[f(zg,ve(Y,{multiSort:!!e.multiSort}),r)]),r.thead?.(O.value),!e.hideDefaultBody&&E("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[r["body.prepend"]?.(O.value),r.body?r.body(O.value):f(Hg,ve(n,X,{items:R.value}),r),r["body.append"]?.(O.value)]),r.tbody?.(O.value),r.tfoot?.(O.value)]),bottom:()=>r.bottom?r.bottom(O.value):!e.hideDefaultFooter&&E(Ne,null,[f(mt,null,null),f(jg,M,{prepend:r["footer.prepend"]})])})})}}),khe=be({...Qe(),...Vr(),...PM()},"VLayout"),iC=De()({name:"VLayout",props:khe(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:i,getLayoutItem:a,items:s,layoutRef:o}=NM(e),{dimensionStyles:l}=Br(e);return Fe(()=>E("div",{ref:o,class:Te([r.value,e.class]),style:je([l.value,i.value,e.style])},[n.default?.()])),{getLayoutItem:a,items:s}}}),_he=be({...ay({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),The=De()({name:"VRadio",props:_he(),setup(e,t){let{slots:n}=t;return Fe(()=>{const r=hu.filterProps(e);return f(hu,ve(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),Ihe=be({height:{type:[Number,String],default:"auto"},...cl(),...Nn(Vx(),["multiple"]),trueIcon:{type:et,default:"$radioOn"},falseIcon:{type:et,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Phe=De()({name:"VRadioGroup",inheritAttrs:!1,props:Ihe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=Si(),a=L(()=>e.id||`radio-group-${i}`),s=gt(e,"modelValue"),o=z();return Fe(()=>{const[l,u]=ol(n),c=qi.filterProps(e),d=hu.filterProps(e),p=r.label?r.label({label:e.label,props:{for:a.value}}):e.label;return f(qi,ve({ref:o,class:["v-radio-group",e.class],style:e.style},l,c,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,id:a.value}),{...r,default:h=>{let{id:g,messagesId:v,isDisabled:y,isReadonly:b}=h;return E(Ne,null,[p&&f(Zv,{id:g.value},{default:()=>[p]}),f(ile,ve(d,{id:g.value,"aria-describedby":v.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:y.value,readonly:b.value,"aria-labelledby":p?g.value:void 0,multiple:!1},u,{modelValue:s.value,"onUpdate:modelValue":S=>s.value=S}),r)])}})}),Ci({},o)}}),Rhe={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Ahe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E("div",{class:Te(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[t])}function GP(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>gy(t))}function gy(e){let t=[];if(!e)return t;const n=Rhe[e];if(e!==n){if(e.includes(","))return qP(e);if(e.includes("@"))return GP(e);n.includes(",")?t=qP(n):n.includes("@")?t=GP(n):n&&t.push(gy(n))}return[Ahe(e,t)]}function qP(e){return e.replace(/\s/g,"").split(",").map(gy)}const Ohe=be({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Vr(),...xi(),...vn()},"VSkeletonLoader"),Nhe=De()({name:"VSkeletonLoader",inheritAttrs:!1,props:Ohe(),setup(e,t){let{attrs:n,slots:r}=t;const{backgroundColorClasses:i,backgroundColorStyles:a}=$n(()=>e.color),{dimensionStyles:s}=Br(e),{elevationClasses:o}=Ji(e),{themeClasses:l}=xn(e),{t:u}=Ur(),c=L(()=>gy(rr(e.type).join(",")));return Fe(()=>{const d=!r.default||e.loading,p=e.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(e.loadingText),role:"alert"};return d?E("div",ve({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},l.value,i.value,o.value],style:[a.value,s.value]},p,n),[c.value]):E(Ne,null,[r.default?.()])}),{}}}),sC=Symbol.for("vuetify:v-stepper"),aC=be({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),aw=De()({name:"VStepperActions",props:aC(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:i}=Ur();function a(){n("click:prev")}function s(){n("click:next")}return Fe(()=>{const o={onClick:a},l={onClick:s};return E("div",{class:"v-stepper-actions"},[f(sn,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:i(e.prevText),variant:"text"}}},{default:()=>[r.prev?.({props:o})??f(te,o,null)]}),f(sn,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:i(e.nextText),variant:"tonal"}}},{default:()=>[r.next?.({props:l})??f(te,l,null)]})])}),{}}}),iV=_u("v-stepper-header"),sV=be({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:et,default:"$complete"},editable:Boolean,editIcon:{type:et,default:"$edit"},error:Boolean,errorIcon:{type:et,default:"$error"},icon:et,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),Dhe=be({...sV(),...Sd()},"VStepperItem"),Ph=De()({name:"VStepperItem",directives:{vRipple:bi},props:Dhe(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=fu(e,sC,!0),i=L(()=>r?.value.value??e.value),a=L(()=>e.rules.every(p=>p()===!0)),s=L(()=>!e.disabled&&e.editable),o=L(()=>!e.disabled&&e.editable),l=L(()=>e.error||!a.value),u=L(()=>e.complete||e.rules.length>0&&a.value),c=L(()=>l.value?e.errorIcon:u.value?e.completeIcon:r.isSelected.value&&e.editable?e.editIcon:e.icon),d=L(()=>({canEdit:o.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:i.value,value:e.value}));return Fe(()=>{const p=(!r||r.isSelected.value||u.value||o.value)&&!l.value&&!e.disabled,h=!!(e.title!=null||n.title),g=!!(e.subtitle!=null||n.subtitle);function v(){r?.toggle()}return un(E("button",{class:Te(["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},r?.selectedClass.value]),disabled:!e.editable,type:"button",onClick:v},[s.value&&ll(!0,"v-stepper-item"),f(jn,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:p?e.color:void 0,size:24},{default:()=>[n.icon?.(d.value)??(c.value?f(j,{icon:c.value},null):i.value)]}),E("div",{class:"v-stepper-item__content"},[h&&E("div",{key:"title",class:"v-stepper-item__title"},[n.title?.(d.value)??e.title]),g&&E("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[n.subtitle?.(d.value)??e.subtitle]),n.default?.(d.value)])]),[[bi,e.editable&&e.ripple,null]])}),{}}}),Lhe=be({...Nn(yx(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),aV=De()({name:"VStepperWindow",props:Lhe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ft(sC,null),i=gt(e,"modelValue"),a=L({get(){return i.value!=null||!r?i.value:r.items.value.find(s=>r.selected.value.includes(s.id))?.value},set(s){i.value=s}});return Fe(()=>{const s=Gc.filterProps(e);return f(Gc,ve({_as:"VStepperWindow"},s,{modelValue:a.value,"onUpdate:modelValue":o=>a.value=o,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),Fhe=be({...bx()},"VStepperWindowItem"),Rh=De()({name:"VStepperWindowItem",props:Fhe(),setup(e,t){let{slots:n}=t;return Fe(()=>{const r=ma.filterProps(e);return f(ma,ve({_as:"VStepperWindowItem"},r,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),oV=be({altLabels:Boolean,bgColor:String,completeIcon:et,editIcon:et,editable:Boolean,errorIcon:et,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},nonLinear:Boolean,flat:Boolean,...Ru()},"Stepper"),Mhe=be({...oV(),...bd({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...Dx(),...Ys(aC(),["prevText","nextText"])},"VStepper"),$he=De()({name:"VStepper",props:Mhe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:i,prev:a,selected:s}=Iu(e,sC),{displayClasses:o,mobile:l}=ta(e),{completeIcon:u,editIcon:c,errorIcon:d,color:p,editable:h,prevText:g,nextText:v}=Ca(e),y=L(()=>e.items.map((w,C)=>{const P=Jn(w,e.itemTitle,w),k=Jn(w,e.itemValue,C+1),R=e.itemProps===!0?w:Jn(w,e.itemProps),T={title:P,value:k,...R};return{title:T.title,value:T.value,props:T,raw:w}})),b=L(()=>r.value.findIndex(w=>s.value.includes(w.id))),S=L(()=>e.disabled?e.disabled:b.value===0?"prev":b.value===r.value.length-1?"next":!1);return Sr({VStepperItem:{editable:h,errorIcon:d,completeIcon:u,editIcon:c,prevText:g,nextText:v},VStepperActions:{color:p,disabled:S,prevText:g,nextText:v}}),Fe(()=>{const w=Dg.filterProps(e),C=!!(n.header||e.items.length),P=e.items.length>0,k=!e.hideActions&&!!(P||n.actions);return f(Dg,ve(w,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},o.value,e.class],style:e.style}),{default:()=>[C&&f(iV,{key:"stepper-header"},{default:()=>[y.value.map((R,T)=>{let{raw:I,...x}=R;return E(Ne,null,[!!T&&f(mt,null,null),f(Ph,x.props,{default:n[`header-item.${x.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),P&&f(aV,{key:"stepper-window"},{default:()=>[y.value.map(R=>f(Rh,{value:R.value},{default:()=>n[`item.${R.value}`]?.(R)??n.item?.(R)}))]}),n.default?.({prev:a,next:i}),k&&(n.actions?.({next:i,prev:a})??f(aw,{key:"stepper-actions","onClick:prev":a,"onClick:next":i},n))]})}),{prev:a,next:i}}}),Vhe=be({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...cl(),...ay()},"VSwitch"),ow=De()({name:"VSwitch",inheritAttrs:!1,props:Vhe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=gt(e,"indeterminate"),a=gt(e,"modelValue"),{loaderClasses:s}=tm(e),{isFocused:o,focus:l,blur:u}=Nu(e),c=z(),d=z(),p=GE&&window.matchMedia("(forced-colors: active)").matches,h=se(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),g=Si(),v=se(()=>e.id||`switch-${g}`);function y(){i.value&&(i.value=!1)}function b(S){S.stopPropagation(),S.preventDefault(),c.value?.input?.click()}return Fe(()=>{const[S,w]=ol(n),C=qi.filterProps(e),P=hu.filterProps(e);return f(qi,ve({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},s.value,e.class]},S,C,{modelValue:a.value,"onUpdate:modelValue":k=>a.value=k,id:v.value,focused:o.value,style:e.style}),{...r,default:k=>{let{id:R,messagesId:T,isDisabled:I,isReadonly:x,isValid:A}=k;const D={model:a,isValid:A};return f(hu,ve({ref:c},P,{modelValue:a.value,"onUpdate:modelValue":[B=>a.value=B,y],id:R.value,"aria-describedby":T.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:I.value,readonly:x.value,onFocus:l,onBlur:u},w),{...r,default:B=>{let{backgroundColorClasses:V,backgroundColorStyles:$}=B;return E("div",{class:Te(["v-switch__track",p?void 0:V.value]),style:je($.value),onClick:b},[r["track-true"]&&E("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](D)]),r["track-false"]&&E("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](D)])])},input:B=>{let{inputNode:V,icon:$,backgroundColorClasses:N,backgroundColorStyles:O}=B;return E(Ne,null,[V,E("div",{class:Te(["v-switch__thumb",{"v-switch__thumb--filled":$||e.loading},e.inset||p?void 0:N.value]),style:je(e.inset?void 0:O.value)},[r.thumb?f(sn,{defaults:{VIcon:{icon:$,size:"x-small"}}},{default:()=>[r.thumb({...D,icon:$})]}):f(xF,null,{default:()=>[e.loading?f(Gv,{name:"v-switch",active:!0,color:A.value===!1?void 0:h.value},{default:M=>r.loader?r.loader(M):f(Qn,{active:M.isActive,color:M.color,indeterminate:!0,size:"16",width:"2"},null)}):$&&f(j,{key:String($),icon:$,size:"x-small"},null)]})])])}})}})}),Ci({},d)}}),Bhe={class:"d-flex align-center ga-2"},Uhe={class:"d-flex align-center ga-2"},jhe={class:"mt-4 mb-4"},zhe={key:0},Hhe={key:1},Whe={class:"d-flex align-center ga-1"},Ghe={key:1,class:"text-caption text-medium-emphasis"},qhe={class:"d-flex align-center flex-wrap ga-1"},Khe={key:1,class:"text-caption text-medium-emphasis"},Yhe={class:"d-flex align-center flex-wrap ga-1"},Xhe={class:"d-flex align-center"},Jhe={class:"d-flex ga-1"},Qhe={key:0},Zhe={key:1},ege=["colspan"],tge=Be({__name:"PrintersView",setup(e){const t=en(),n=ds(),r=wn(),i=z(!1),a=Fr(),s=Is(),o=sy(),l=qt(Kt.AddOrUpdatePrinterDialog),u=z([]),c=z([]),d=z([]),p=z([]),h=z([]),g=z(""),v=z([]),y=L(()=>[{title:"Enabled",key:"enabled"},{title:"Type",key:"printerType"},{title:"Printer Name",align:"start",sortable:!0,key:"name"},{title:"Floor",key:"floor",sortable:!1},{title:"Tags",key:"group",sortable:!0},{title:"Cameras",key:"cameras",sortable:!1},{title:"Actions",key:"actions",sortable:!1},{title:"Socket Update",key:"socketupdate",sortable:!1},{title:"",key:"data-table-expand"}]);async function b(){return i.value=!0,await o.loadFeatures(),u.value=await ca.getTagsWithPrinters(),c.value=u.value.map(le=>({id:le.id,name:le.name,color:le.color})),h.value=await mp.listCameraStreams(),i.value=!1,u}const S=Id({queryKey:[KM],queryFn:b}),w=L(()=>{let le=r.printers;if(d.value?.length>0){const ee=u.value.filter(ue=>d.value.includes(ue.id)).flatMap(ue=>ue.printers.map(W=>W.printerId));le=le.filter(ue=>ee.includes(ue.id))}return p.value?.length>0&&(le=le.filter(ee=>p.value.includes(ee.printerType))),le}),C=L(()=>a.printerCurrentEventReceivedAtById),P=le=>le?(Date.now()-le)/1e3:void 0,k=le=>u.value.filter(ee=>ee.printers.find(ue=>ue.printerId===le)),R=le=>u.value.filter(ee=>!ee.printers.some(ue=>ue.printerId===le)),T=le=>s.floorOfPrinter(le),I=le=>h.value.filter(ee=>ee.printerId===le),x=le=>{l.openDialog({id:le.id})},A=()=>{l.openDialog()},D=()=>{qt(Kt.ImportOctoFarmDialog).openDialog()},B=()=>{qt(Kt.YamlImportExport).openDialog()},V=()=>{qt(Kt.ManageTagsDialog).openDialog()},$=le=>{const ee=u.value.find(ue=>ue.id===le);ee&&qt(Kt.ManageTagsDialog).openDialog({tagId:le,tagName:ee.name})},N=le=>{const ee=T(le);ee?n.push({path:"/printer-grid",query:{floor:ee.id.toString()}}):n.push("/printer-grid")},O=le=>{le&&qt(Kt.AddOrUpdateFloorDialog).openDialog({printerFloorId:le})},M=le=>{le&&qt(Kt.AddOrUpdateCameraDialog).openDialog({addOrUpdate:"update",cameraId:le})},Y=le=>{n.push({path:"/cameras",query:{printer:le.toString()}})},X=async(le,ee)=>{await ca.addPrinterToTag(le,ee),await S.refetch(),t.info("Added printer to tag")},ie=async(le,ee)=>{await ca.deletePrinterTag(le,ee),await S.refetch(),t.info("Removed printer from tag")},Z=async le=>{const ee=T(le);if(!ee){t.error("Printer is not assigned to any floor");return}confirm(`Remove printer from floor "${ee.name}"?`)&&(await s.deletePrinterFromFloor({floorId:ee.id,printerId:le}),t.info("Removed printer from floor"))},G=async le=>{if(!le.id)throw new Error("Printer ID not set, cant toggle enabled");le.enabled=!le.enabled,await pn.toggleEnabled(le.id,le.enabled)};return(le,ee)=>(F(),fe("div",null,[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[E("div",Bhe,[f(Ad,{modelValue:d.value,"onUpdate:modelValue":ee[0]||(ee[0]=ue=>d.value=ue),tags:c.value,label:"Filter by tags",style:{width:"220px"}},null,8,["modelValue","tags"]),f(Od,{modelValue:p.value,"onUpdate:modelValue":ee[1]||(ee[1]=ue=>p.value=ue),style:{width:"220px"}},null,8,["modelValue"]),f(Et,{modelValue:g.value,"onUpdate:modelValue":ee[2]||(ee[2]=ue=>g.value=ue),clearable:"",label:"Search","prepend-inner-icon":"search",density:"compact",variant:"outlined","hide-details":"",style:{width:"220px"}},null,8,["modelValue"])]),f(Tt),E("div",Uhe,[f(te,{variant:"elevated",color:"purple","prepend-icon":"publish",onClick:ee[3]||(ee[3]=ue=>D())},{default:m(()=>[...ee[8]||(ee[8]=[_(" Import OctoFarm ",-1)])]),_:1}),f(te,{variant:"elevated",color:"success","prepend-icon":"add",onClick:ee[4]||(ee[4]=ue=>A())},{default:m(()=>[...ee[9]||(ee[9]=[_(" Create Printer ",-1)])]),_:1}),f(te,{variant:"elevated","prepend-icon":"label",onClick:ee[5]||(ee[5]=ue=>V())},{default:m(()=>[...ee[10]||(ee[10]=[_(" Manage Tags ",-1)])]),_:1}),f(te,{variant:"elevated",color:"primary","prepend-icon":"code",onClick:ee[6]||(ee[6]=ue=>B())},{default:m(()=>[...ee[11]||(ee[11]=[_(" Import/Export Backup ",-1)])]),_:1})])]),_:1}),f(re(rV),{expanded:v.value,"onUpdate:expanded":ee[7]||(ee[7]=ue=>v.value=ue),headers:y.value,items:w.value,search:g.value,class:"elevation-1","item-value":"id","show-expand":""},{"no-data":m(()=>[E("div",jhe,[w.value.length===0?(F(),fe("h3",zhe," No printer has been created yet. Create one here: ")):(F(),fe("h3",Hhe," No printer has been found. Adjust your filters or search criteria. ")),f(v3)])]),"item.enabled":m(({item:ue})=>[f(ow,{modelValue:ue.enabled,"onUpdate:modelValue":W=>ue.enabled=W,color:"primary",inset:"",onClickCapture:mn(W=>G(ue),["stop"])},{default:m(()=>[_(U(ue.enabled),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onClickCapture"])]),"item.printerType":m(({item:ue})=>[_(U(re(ss)(ue.printerType)),1)]),"item.name":m(({item:ue})=>[f(Ke,null,{default:m(()=>[_(U(ue.name||ue.printerURL),1)]),_:2},1024)]),"item.floor":m(({item:ue})=>[E("div",Whe,[T(ue.id)?(F(),Q(Ke,{key:0,closable:"",size:"small",onClick:W=>O(T(ue.id)?.id),"onClick:close":W=>Z(ue.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...ee[12]||(ee[12]=[_("layers",-1)])]),_:1}),_(" "+U(T(ue.id)?.name),1)]),_:2},1032,["onClick","onClick:close"])):(F(),fe("span",Ghe," No floor ")),f(ls,null,{activator:m(({props:W})=>[f(te,ve(W,{size:"x-small",icon:"",variant:"text"}),{default:m(()=>[f(j,null,{default:m(()=>[...ee[13]||(ee[13]=[_("more_vert",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(Mr,{density:"compact","min-width":"200"},{default:m(()=>[f(wt,{"prepend-icon":"grid_on",onClick:W=>N(ue.id)},{default:m(()=>[f(Gt,null,{default:m(()=>[_(U(T(ue.id)?"View Floor Grid":"View Printer Grid"),1)]),_:2},1024)]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)])]),"item.cameras":m(({item:ue})=>[E("div",qhe,[(F(!0),fe(Ne,null,Zt(I(ue.id).slice(0,2),(W,ne)=>(F(),Q(Ke,{key:W.id,size:"x-small",variant:"tonal",onClick:J=>M(W.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...ee[14]||(ee[14]=[_("videocam",-1)])]),_:1}),_(" "+U(W.name),1)]),_:2},1032,["onClick"]))),128)),I(ue.id).length>2?(F(),Q(Ke,{key:0,size:"x-small",variant:"text"},{default:m(()=>[_(" +"+U(I(ue.id).length-2)+" more ",1)]),_:2},1024)):ae("",!0),I(ue.id).length?ae("",!0):(F(),fe("span",Khe," No cameras ")),f(ls,null,{activator:m(({props:W})=>[f(te,ve(W,{size:"x-small",icon:"",variant:"text"}),{default:m(()=>[f(j,null,{default:m(()=>[...ee[15]||(ee[15]=[_("more_vert",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(Mr,{density:"compact","min-width":"180"},{default:m(()=>[f(wt,{"prepend-icon":"videocam",onClick:W=>Y(ue.id)},{default:m(()=>[f(Gt,null,{default:m(()=>[...ee[16]||(ee[16]=[_("View Cameras",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)])]),"item.group":m(({item:ue})=>[E("div",Yhe,[(F(!0),fe(Ne,null,Zt(k(ue.id),W=>(F(),Q(Ke,{key:W.id,color:W.color,size:"small",variant:"tonal",closable:"",onClick:ne=>$(W.id),"onClick:close":ne=>ie(W.id,ue.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...ee[17]||(ee[17]=[_("label",-1)])]),_:1}),_(" "+U(W.name),1)]),_:2},1032,["color","onClick","onClick:close"]))),128)),f(ls,null,{activator:m(({props:W})=>[f(te,ve(W,{disabled:!R(ue.id).length,size:"x-small",icon:"",variant:"text"}),{default:m(()=>[f(j,null,{default:m(()=>[...ee[18]||(ee[18]=[_("add",-1)])]),_:1})]),_:1},16,["disabled"])]),default:m(()=>[f(Mr,{density:"compact","min-width":"150"},{default:m(()=>[f(_d,null,{default:m(()=>[...ee[19]||(ee[19]=[_("Add Tag",-1)])]),_:1}),(F(!0),fe(Ne,null,Zt(R(ue.id),(W,ne)=>(F(),Q(wt,{key:ne,onClick:J=>X(W.id,ue.id)},{prepend:m(()=>[f(Ke,{color:W.color,size:"x-small",variant:"flat",class:"mr-2"},{default:m(()=>[f(j,{size:"x-small"},{default:m(()=>[...ee[20]||(ee[20]=[_("label",-1)])]),_:1})]),_:1},8,["color"])]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(W.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),R(ue.id).length?ae("",!0):(F(),Q(wt,{key:0,disabled:""},{default:m(()=>[f(Gt,{class:"text-caption"},{default:m(()=>[...ee[21]||(ee[21]=[_("All tags assigned",-1)])]),_:1})]),_:1}))]),_:2},1024)]),_:2},1024)])]),"item.actions":m(({item:ue})=>[E("div",Xhe,[E("div",Jhe,[f(jme,{printer:ue},null,8,["printer"]),f(Vme,{printer:ue,"onUpdate:show":W=>x(ue)},null,8,["printer","onUpdate:show"]),f(Wme,{printer:ue},null,8,["printer"]),f(Fme,{printer:ue},null,8,["printer"]),f(Ume,{printer:ue},null,8,["printer"]),f(Bme,{printer:ue},null,8,["printer"]),f(Hme,{printer:ue},null,8,["printer"])])])]),"item.socketupdate":m(({item:ue})=>[C.value[ue.id]?(F(),fe("span",Qhe," Updated "+U(P(C.value[ue.id]))+" seconds ago ",1)):(F(),fe("span",Zhe," No update received (silence) "))]),"expanded-row":m(({item:ue,columns:W})=>[E("td",{colspan:W.length},[f(Lme,{printer:ue},null,8,["printer"])],8,ege)]),_:1},8,["expanded","headers","items","search"])]),_:1})]))}}),Os={floors:"floors",printer:"printer",emergencyCommands:"emergencyCommands",users:"users",account:"account",serverProtection:"serverProtection",softwareUpgrade:"softwareUpgrade",diagnostics:"diagnostics",experimental:"experimental",debugSocket:"debugSocket",about:"about"},nge={[Os.floors]:{title:"Floors",icon:"house_siding",path:"/settings/floors",divider:!0},[Os.printer]:{title:"Printer",icon:"local_print_shop",path:"/settings/printer",divider:!1},[Os.emergencyCommands]:{title:"Emergency Commands",icon:"warning",path:"/settings/emergency-commands",divider:!0},[Os.serverProtection]:{title:"Server Protection",icon:"security",path:"/settings/server-protection",divider:!1},[Os.users]:{title:"Users",icon:"group",path:"/settings/user-management",divider:!1},[Os.account]:{title:"Account",icon:"account_circle",path:"/settings/account",divider:!0},[Os.softwareUpgrade]:{title:"Software Upgrade",icon:"upgrade",path:"/settings/software-upgrade",divider:!1},[Os.diagnostics]:{title:"Diagnostics",icon:"bug_report",path:"/settings/diagnostics",divider:!1},[Os.experimental]:{title:"Experimental",icon:"settings_applications",path:"/settings/experimental",divider:!1},[Os.debugSocket]:{title:"SocketIO Debug",icon:"wifi_tethering",path:"/settings/debug-socket",divider:!0},[Os.about]:{title:"About",icon:"info",path:"/settings/about",divider:!1}},rge=Be({__name:"SettingsView",setup(e){const t=z(nge);return(n,r)=>{const i=Cc("router-view");return F(),fe("div",null,[f(ct,{"no-gutters":""},{default:m(()=>[f(Cx,{permanent:!0},{default:m(()=>[f(Mr,{density:"compact",nav:""},{default:m(()=>[(F(!0),fe(Ne,null,Zt(re(t),a=>(F(),Q(wt,{key:a.title,to:a.path,link:"","prepend-icon":a.icon,title:a.title,"router-link":"",style:je(a.divider?"border-bottom: 1px solid gray":"")},null,8,["to","prepend-icon","title","style"]))),128))]),_:1})]),_:1}),f(Re,null,{default:m(()=>[f(i)]),_:1})]),_:1})])}}}),ige={class:"pr-3"},sge={class:"tooltip-content"},pr=Be({__name:"SettingSection",props:{title:{},tooltip:{},usecols:{type:Boolean,default:!0}},setup(e){const t=e;return(n,r)=>(F(),Q(Mr,{subheader:"","three-line":""},{default:m(()=>[f(_d,null,{default:m(()=>[E("span",ige,U(t.title),1),t.tooltip?.length?(F(),Q(ln,{key:0,bottom:""},{activator:m(({props:i})=>[f(j,ve({class:"help-icon"},i),{default:m(()=>[...r[0]||(r[0]=[_("help_outline",-1)])]),_:1},16)]),default:m(()=>[E("span",sge,U(e.tooltip),1)]),_:1})):ae("",!0)]),_:1}),f(wt,null,{default:m(()=>[e.usecols?(F(),Q(ct,{key:0},{default:m(()=>[f(Re,{cols:"4"},{default:m(()=>[kc(n.$slots,"default")]),_:3})]),_:3})):kc(n.$slots,"default",{key:1})]),_:3})]),_:3}))}}),age={class:"mb-4"},oge={class:"d-flex align-center"},lge={class:"font-weight-medium"},uge={class:"d-flex align-center ga-1"},cge={key:0,style:{"min-width":"200px"}},dge={key:1,class:"d-flex align-center ga-1 flex-wrap"},fge={class:"text-caption"},pge={class:"d-flex justify-end ga-1"},mge=Be({__name:"UserManagementSettings",setup(e){const t=en(),n=z(!1),r=z(),i=z([]),a=z([]);async function s(){n.value=!0;try{r.value=await ys.getProfile(),a.value=await ys.listRoles(),i.value=await ys.listUsers()}catch(g){throw n.value=!1,console.error(g),g}return n.value=!1,{users:i,roles:a,profile:r}}const o=Id({queryKey:["userRolesProfile"],queryFn:s});function l(g){return g.id==r.value?.id}async function u(g){if(confirm(`Are you sure you want to delete ${g.username}?`)){try{n.value=!0,await ys.deleteUser(g.id),await o.refetch()}catch(v){throw n.value=!1,console.error(v),v}n.value=!1,t.info(`User ${g.username} deleted`)}}async function c(g,v=!0){if(g.isRootUser){t.error("You are not allowed to do perform this action on an owner");return}if(confirm(`Are you sure you want to ${v?"verify":"unverify"} ${g.username}?`)){try{n.value=!0,await ys.setUserVerified(g.id,v),await o.refetch()}catch(y){throw n.value=!1,console.error(y),y}n.value=!1,t.info(v?`User ${g.username} verified`:`User ${g.username} unverified`)}}async function d(g,v=!0){if(r.value?.isRootUser||t.error("You are not allowed to do perform this action as you're not an owner"),!!confirm(`You are about to ${v?"set":"remove"} owner rights on ${g.username}. Are you sure?`)){try{n.value=!0,await ys.setRootUser(g.id,v),await o.refetch()}catch(y){throw n.value=!1,console.error(y),y}n.value=!1,t.info(v?`User ${g.username} set to owner`:`User ${g.username} is no longer owner`)}}async function p(g){try{n.value=!0,await ys.setUserRoles(g.id,g.roles),await o.refetch(),t.info(`Roles updated for ${g.username}`)}catch(v){throw n.value=!1,console.error(v),t.error(`Failed to update roles for ${g.username}`),v}n.value=!1}async function h(){await qt(Kt.CreateUserDialog).openDialog()}return(g,v)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[n.value?(F(),Q(p3,{key:0,size:20,color:"#a70015",style:{margin:"250px",position:"absolute"}})):ae("",!0),f(pr,{title:"User Management",usecols:!1},{default:m(()=>[E("div",age,[f(te,{disabled:!r.value?.isRootUser,color:"primary","prepend-icon":"add",onClick:v[0]||(v[0]=y=>h())},{default:m(()=>[...v[1]||(v[1]=[_(" Create Verified User ",-1)])]),_:1},8,["disabled"])]),f(vp,{theme:"dark",hover:""},{default:m(()=>[v[7]||(v[7]=E("thead",null,[E("tr",null,[E("th",{scope:"col",class:"text-left"},"Username"),E("th",{scope:"col",class:"text-left"},"Status"),E("th",{scope:"col",class:"text-left"},"Roles"),E("th",{scope:"col",class:"text-left"},"Created"),E("th",{scope:"col",class:"text-right"},"Actions")])],-1)),E("tbody",null,[(F(!0),fe(Ne,null,Zt(i.value,(y,b)=>(F(),fe("tr",{key:b,class:Te({"bg-grey-darken-3":l(y)})},[E("td",null,[E("div",oge,[E("span",lge,U(y.username),1),l(y)?(F(),Q(Ke,{key:0,color:"primary",size:"x-small",class:"ml-2"},{default:m(()=>[...v[2]||(v[2]=[_(" You ",-1)])]),_:1})):ae("",!0)])]),E("td",null,[E("div",uge,[f(Ke,{color:y.isVerified?"success":"warning",size:"x-small"},{default:m(()=>[_(U(y.isVerified?"Verified":"Unverified"),1)]),_:2},1032,["color"]),y.isDemoUser?(F(),Q(Ke,{key:0,size:"x-small",color:"info"},{default:m(()=>[...v[3]||(v[3]=[_(" Demo ",-1)])]),_:1})):ae("",!0)])]),E("td",null,[r.value?.isRootUser?(F(),fe("div",cge,[f(mi,{items:a.value.map(S=>({title:S.name,value:S.name})),modelValue:y.roles,"onUpdate:modelValue":[S=>y.roles=S,S=>p(y)],multiple:"",chips:"",density:"compact",variant:"outlined","hide-details":""},Fw({_:2},[y.isRootUser?{name:"prepend-item",fn:m(()=>[f(wt,null,{default:m(()=>[f(Ke,{size:"small",color:"error"},{default:m(()=>[...v[4]||(v[4]=[_("OWNER",-1)])]),_:1})]),_:1}),f(mt)]),key:"0"}:void 0]),1032,["items","modelValue","onUpdate:modelValue"])])):(F(),fe("div",dge,[y.isRootUser?(F(),Q(Ke,{key:0,size:"x-small",color:"error"},{default:m(()=>[...v[5]||(v[5]=[_(" OWNER ",-1)])]),_:1})):ae("",!0),(F(!0),fe(Ne,null,Zt(y.roles,S=>(F(),Q(Ke,{key:S,size:"x-small"},{default:m(()=>[_(U(S),1)]),_:2},1024))),128))]))]),E("td",fge,U(re(fee)(y.createdAt)),1),E("td",null,[E("div",pge,[f(ln,{text:y.isVerified?"Set user to unverified":"Set user to verified"},{activator:m(({props:S})=>[f(te,ve({ref_for:!0},S,{disabled:l(y)||y.isRootUser,color:y.isVerified?"warning":"success",size:"small",icon:"",variant:"text",onClick:w=>c(y,!y.isVerified)}),{default:m(()=>[f(j,null,{default:m(()=>[_(U(y.isVerified?"shield_off":"shield"),1)]),_:2},1024)]),_:2},1040,["disabled","color","onClick"])]),_:2},1032,["text"]),f(ln,{text:"Toggle owner status"},{activator:m(({props:S})=>[f(te,ve({ref_for:!0},S,{disabled:l(y)||!r.value?.isRootUser,color:y.isRootUser?"warning":"primary",size:"small",icon:"",variant:"text",onClick:w=>d(y,!y.isRootUser)}),{default:m(()=>[f(j,null,{default:m(()=>[_(U(y.isRootUser?"key_off":"key"),1)]),_:2},1024)]),_:2},1040,["disabled","color","onClick"])]),_:2},1024),f(ln,{text:"Delete user"},{activator:m(({props:S})=>[f(te,ve({ref_for:!0},S,{disabled:l(y)||y.isRootUser,color:"error",size:"small",icon:"",variant:"text",onClick:w=>u(y)}),{default:m(()=>[f(j,null,{default:m(()=>[...v[6]||(v[6]=[_("delete",-1)])]),_:1})]),_:1},16,["disabled","onClick"])]),_:2},1024)])])],2))),128))])]),_:1})]),_:1})]),_:1})]),_:1}))}}),hge=Be({__name:"PrinterSettings",setup(e){const t=ra(),n=en(),r=z({timeoutSettings:!1,purgeFiles:!1});async function i(){if(t.settings.timeout.apiTimeout=Number.parseInt(t.settings.timeout.apiTimeout.toString()),t.settings.timeout.apiUploadTimeout=Number.parseInt(t.settings.timeout.apiUploadTimeout.toString()),!t.settings?.timeout?.apiTimeout){n.error("Timeout not set");return}if(t.settings.timeout.apiTimeout<1e3&&(n.error("Timeout is too low - please set it to at least 1000 milliseconds"),t.settings.timeout.apiTimeout=1e3),t.settings.timeout.apiUploadTimeout<1e4)n.error("Upload timeout is too low - please set it to at least 10000 milliseconds"),t.settings.timeout.apiUploadTimeout=1e4;else{r.value.timeoutSettings=!0;try{await t.updateTimeoutSettings(t.settings.timeout),n.info("Timeout settings updated")}finally{r.value.timeoutSettings=!1}}}async function a(){r.value.purgeFiles=!0;try{await Ja.purgeFiles(),n.openInfoMessage({title:"Successfully purged all references to printer files!"})}finally{r.value.purgeFiles=!1}}return(s,o)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[re(t).settings?.timeout?(F(),Q(pr,{key:0,title:"API Timeout",tooltip:"Set the server default REST API timeout in milliseconds."},{default:m(()=>[f(Et,{modelValue:re(t).settings.timeout.apiTimeout,"onUpdate:modelValue":o[0]||(o[0]=l=>re(t).settings.timeout.apiTimeout=l),label:"Connection Timeout",min:"0",type:"number",onChange:i},null,8,["modelValue"]),r.value.timeoutSettings?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0)]),_:1})):ae("",!0),re(t).settings?.timeout?(F(),Q(pr,{key:1,title:"Upload Timeout",tooltip:"Set the server REST API file upload timeout in milliseconds."},{default:m(()=>[f(Et,{modelValue:re(t).settings.timeout.apiUploadTimeout,"onUpdate:modelValue":o[1]||(o[1]=l=>re(t).settings.timeout.apiUploadTimeout=l),label:"Upload Timeout",min:"0",type:"number",onChange:i},null,8,["modelValue"]),r.value.timeoutSettings?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0)]),_:1})):ae("",!0),f(mt),f(pr,{title:"Clean File References",tooltip:"Clear out file references without removing them from OctoPrint."},{default:m(()=>[f(te,{color:"primary",onClick:o[2]||(o[2]=l=>a())},{default:m(()=>[...o[3]||(o[3]=[_(" Purge File References ",-1)])]),_:1}),r.value.purgeFiles?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0)]),_:1})]),_:1})]),_:1}))}});function gge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vy(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ah={exports:{}},Jb={exports:{}},Qb={};const Zc=Symbol(""),wc=Symbol(""),yy=Symbol(""),yp=Symbol(""),oC=Symbol(""),Zo=Symbol(""),lC=Symbol(""),uC=Symbol(""),by=Symbol(""),Sy=Symbol(""),Ld=Symbol(""),wy=Symbol(""),cC=Symbol(""),Ey=Symbol(""),xy=Symbol(""),Cy=Symbol(""),ky=Symbol(""),_y=Symbol(""),Ty=Symbol(""),dC=Symbol(""),fC=Symbol(""),lm=Symbol(""),bp=Symbol(""),Iy=Symbol(""),Py=Symbol(""),ed=Symbol(""),Fd=Symbol(""),Ry=Symbol(""),Wg=Symbol(""),lV=Symbol(""),Gg=Symbol(""),Sp=Symbol(""),uV=Symbol(""),cV=Symbol(""),Ay=Symbol(""),dV=Symbol(""),fV=Symbol(""),Oy=Symbol(""),pC=Symbol(""),vu={[Zc]:"Fragment",[wc]:"Teleport",[yy]:"Suspense",[yp]:"KeepAlive",[oC]:"BaseTransition",[Zo]:"openBlock",[lC]:"createBlock",[uC]:"createElementBlock",[by]:"createVNode",[Sy]:"createElementVNode",[Ld]:"createCommentVNode",[wy]:"createTextVNode",[cC]:"createStaticVNode",[Ey]:"resolveComponent",[xy]:"resolveDynamicComponent",[Cy]:"resolveDirective",[ky]:"resolveFilter",[_y]:"withDirectives",[Ty]:"renderList",[dC]:"renderSlot",[fC]:"createSlots",[lm]:"toDisplayString",[bp]:"mergeProps",[Iy]:"normalizeClass",[Py]:"normalizeStyle",[ed]:"normalizeProps",[Fd]:"guardReactiveProps",[Ry]:"toHandlers",[Wg]:"camelize",[lV]:"capitalize",[Gg]:"toHandlerKey",[Sp]:"setBlockTracking",[uV]:"pushScopeId",[cV]:"popScopeId",[Ay]:"withCtx",[dV]:"unref",[fV]:"isRef",[Oy]:"withMemo",[pC]:"isMemoSame"};function pV(e){Object.getOwnPropertySymbols(e).forEach(t=>{vu[t]=e[t]})}const vge={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},yge={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},bge={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Sge={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},xr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function mV(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:xr}}function td(e,t,n,r,i,a,s,o=!1,l=!1,u=!1,c=xr){return e&&(o?(e.helper(Zo),e.helper(Su(e.inSSR,u))):e.helper(bu(e.inSSR,u)),s&&e.helper(_y)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:s,isBlock:o,disableTracking:l,isComponent:u,loc:c}}function Wo(e,t=xr){return{type:17,loc:t,elements:e}}function as(e,t=xr){return{type:15,loc:t,properties:e}}function ir(e,t){return{type:16,loc:xr,key:ht(e)?_t(e,!0):e,value:t}}function _t(e,t=!1,n=xr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function wge(e,t){return{type:5,loc:t,content:ht(e)?_t(e,!1,t):e}}function Cs(e,t=xr){return{type:8,loc:t,children:e}}function cr(e,t=[],n=xr){return{type:14,loc:n,callee:e,arguments:t}}function yu(e,t=void 0,n=!1,r=!1,i=xr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function qg(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:xr}}function hV(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:xr}}function gV(e){return{type:21,body:e,loc:xr}}function Ege(e){return{type:22,elements:e,loc:xr}}function xge(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:xr}}function Cge(e,t){return{type:24,left:e,right:t,loc:xr}}function kge(e){return{type:25,expressions:e,loc:xr}}function _ge(e){return{type:26,returns:e,loc:xr}}function bu(e,t){return e||t?by:Sy}function Su(e,t){return e||t?lC:uC}function Ny(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(bu(r,e.isComponent)),t(Zo),t(Su(r,e.isComponent)))}const KP=new Uint8Array([123,123]),YP=new Uint8Array([125,125]);function XP(e){return e>=97&&e<=122||e>=65&&e<=90}function ts(e){return e===32||e===10||e===9||e===12||e===13}function Co(e){return e===47||e===62||ts(e)}function Kg(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const jr={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tge{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=KP,this.delimiterClose=YP,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=KP,this.delimiterClose=YP}getPos(t){let n=1,r=t+1;const i=this.newlines.length;let a=-1;if(i>100){let s=-1,o=i;for(;s+1<o;){const l=s+o>>>1;this.newlines[l]<t?s=l:o=l}a=s}else for(let s=i-1;s>=0;s--)if(t>this.newlines[s]){a=s;break}return a>=0&&(n=a+2,r=t-this.newlines[a]),{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Co(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ts(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===jr.TitleEnd||this.currentSequence===jr.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===jr.Cdata[this.sequenceIndex]?++this.sequenceIndex===jr.Cdata.length&&(this.state=28,this.currentSequence=jr.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===jr.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):XP(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Co(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Co(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Kg("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ts(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=XP(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ts(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ts(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ts(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Co(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Co(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Co(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Co(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Co(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ts(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ts(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ts(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=jr.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===jr.ScriptEnd[3]?this.startSpecial(jr.ScriptEnd,4):t===jr.StyleEnd[3]?this.startSpecial(jr.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===jr.TitleEnd[3]?this.startSpecial(jr.TitleEnd,4):t===jr.TextareaEnd[3]?this.startSpecial(jr.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===jr.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const Ige={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},Pge={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function lw(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function tu(e,t){const n=lw("MODE",t),r=lw(e,t);return n===3?r===!0:r!==!1}function nd(e,t,n,...r){return tu(e,t)}function Rge(e,t,n,...r){if(lw(e,t)==="suppress-warning")return;const{message:a,link:s}=Pge[e],o=`(deprecation ${e}) ${typeof a=="function"?a(...r):a}${s?`
|
|
87
|
-
Details: ${s}`:""}`,l=new SyntaxError(o);l.code=e,n&&(l.loc=n),t.onWarn(l)}function mC(e){throw e}function vV(e){}function Pn(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(i));return a.code=e,a.loc=t,a}const Age={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},Oge={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
88
|
-
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function Nge(e,t,n=!1,r=[],i=Object.create(null)){}function Dge(e,t,n){return!1}function Lge(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function Fge(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function Mge(e,t){for(const n of e.params)for(const r of da(n))t(r)}function yV(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const r of n)if(r.type==="VariableDeclaration"){if(r.declare)continue;for(const i of r.declarations)for(const a of da(i.id))t(a)}else if(r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"){if(r.declare||!r.id)continue;t(r.id)}else $ge(r)?Vge(r,!0,t):r.type==="SwitchStatement"&&Bge(r,!0,t)}function $ge(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function Vge(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"?t:!t))for(const i of r.declarations)for(const a of da(i.id))n(a)}function Bge(e,t,n){for(const r of e.cases){for(const i of r.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const a of i.declarations)for(const s of da(a.id))n(s);yV(r,n)}}function da(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?da(r.argument,t):da(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&da(r,t)});break;case"RestElement":da(e.argument,t);break;case"AssignmentPattern":da(e.left,t);break}return t}const Uge=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),bV=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,jge=(e,t)=>bV(t)&&t.key===e,SV=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function wV(e){return SV.includes(e.type)?wV(e.expression):e}const vi=e=>e.type===4&&e.isStatic;function hC(e){switch(e){case"Teleport":case"teleport":return wc;case"Suspense":case"suspense":return yy;case"KeepAlive":case"keep-alive":return yp;case"BaseTransition":case"base-transition":return oC}}const zge=/^$|^\d|[^\$\w\xA0-\uFFFF]/,um=e=>!zge.test(e),gC=/[A-Za-z_$\xA0-\uFFFF]/,Hge=/[\.\?\w$\xA0-\uFFFF]/,Wge=/\s+[.[]\s*|\s*[.[]\s+/g,EV=e=>e.type===4?e.content:e.loc.source,xV=e=>{const t=EV(e).trim().replace(Wge,o=>o.trim());let n=0,r=[],i=0,a=0,s=null;for(let o=0;o<t.length;o++){const l=t.charAt(o);switch(n){case 0:if(l==="[")r.push(n),n=1,i++;else if(l==="(")r.push(n),n=2,a++;else if(!(o===0?gC:Hge).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,s=l):l==="["?i++:l==="]"&&(--i||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,s=l;else if(l==="(")a++;else if(l===")"){if(o===t.length-1)return!1;--a||(n=r.pop())}break;case 3:l===s&&(n=r.pop(),s=null);break}}return!i&&!a},Gge=Cr,vC=xV,qge=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,CV=e=>qge.test(EV(e)),Kge=Cr,kV=CV;function Yge(e,t,n=t.length){return _V({offset:e.offset,line:e.line,column:e.column},t,n)}function _V(e,t,n=t.length){let r=0,i=-1;for(let a=0;a<n;a++)t.charCodeAt(a)===10&&(r++,i=a);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function Xge(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function hi(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(ht(t)?i.name===t:t.test(i.name)))return i}}function cm(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name==="bind"&&(a.exp||r)&&Vo(a.arg,t))return a}}function Vo(e,t){return!!(e&&vi(e)&&e.content===t)}function TV(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Oh(e){return e.type===5||e.type===2}function uw(e){return e.type===7&&e.name==="pre"}function yC(e){return e.type===7&&e.name==="slot"}function rd(e){return e.type===1&&e.tagType===3}function wp(e){return e.type===1&&e.tagType===2}const Jge=new Set([ed,Fd]);function IV(e,t=[]){if(e&&!ht(e)&&e.type===14){const n=e.callee;if(!ht(n)&&Jge.has(n))return IV(e.arguments[0],t.concat(e))}return[e,t]}function Ep(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],s;if(i&&!ht(i)&&i.type===14){const o=IV(i);i=o[0],a=o[1],s=a[a.length-1]}if(i==null||ht(i))r=as([t]);else if(i.type===14){const o=i.arguments[0];!ht(o)&&o.type===15?JP(t,o)||o.properties.unshift(t):i.callee===Ry?r=cr(n.helper(bp),[as([t]),i]):i.arguments.unshift(as([t])),!r&&(r=i)}else i.type===15?(JP(t,i)||i.properties.unshift(t),r=i):(r=cr(n.helper(bp),[as([t]),i]),s&&s.callee===Fd&&(s=a[a.length-2]));e.type===13?s?s.arguments[0]=r:e.props=r:s?s.arguments[0]=r:e.arguments[2]=r}function JP(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function id(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Fs(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(Fs(r.arg,t)||Fs(r.exp,t)))return!0}return e.children.some(n=>Fs(n,t));case 11:return Fs(e.source,t)?!0:e.children.some(n=>Fs(n,t));case 9:return e.branches.some(n=>Fs(n,t));case 10:return Fs(e.condition,t)?!0:e.children.some(n=>Fs(n,t));case 4:return!e.isStatic&&um(e.content)&&!!t[e.content];case 8:return e.children.some(n=>dn(n)&&Fs(n,t));case 5:case 12:return Fs(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function PV(e){return e.type===14&&e.callee===Oy?e.arguments[1].returns:e}const RV=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function bC(e){for(let t=0;t<e.length;t++)if(!ts(e.charCodeAt(t)))return!1;return!0}function Dy(e){return e.type===2&&bC(e.content)||e.type===12&&Dy(e.content)}function SC(e){return e.type===3||Dy(e)}const AV={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:xl,isPreTag:xl,isIgnoreNewlineTag:xl,isCustomElement:xl,onError:mC,onWarn:vV,comments:!1,prefixIdentifiers:!1};let hn=AV,xp=null,Qa="",Wr=null,Ht=null,Ii="",La=-1,Sl=-1,wC=0,Do=!1,cw=null;const Fn=[],Yn=new Tge(Fn,{onerr:Oa,ontext(e,t){qm(Rr(e,t),e,t)},ontextentity(e,t,n){qm(e,t,n)},oninterpolation(e,t){if(Do)return qm(Rr(e,t),e,t);let n=e+Yn.delimiterOpen.length,r=t-Yn.delimiterClose.length;for(;ts(Qa.charCodeAt(n));)n++;for(;ts(Qa.charCodeAt(r-1));)r--;let i=Rr(n,r);i.includes("&")&&(i=hn.decodeEntities(i,!1)),dw({type:5,content:Dh(i,!1,nr(n,r)),loc:nr(e,t)})},onopentagname(e,t){const n=Rr(e,t);Wr={type:1,tag:n,ns:hn.getNamespace(n,Fn[0],hn.ns),tagType:0,props:[],children:[],loc:nr(e-1,t),codegenNode:void 0}},onopentagend(e){ZP(e)},onclosetag(e,t){const n=Rr(e,t);if(!hn.isVoidTag(n)){let r=!1;for(let i=0;i<Fn.length;i++)if(Fn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Oa(24,Fn[0].loc.start.offset);for(let s=0;s<=i;s++){const o=Fn.shift();Nh(o,t,s<i)}break}r||Oa(23,OV(e,60))}},onselfclosingtag(e){const t=Wr.tag;Wr.isSelfClosing=!0,ZP(e),Fn[0]&&Fn[0].tag===t&&Nh(Fn.shift(),e)},onattribname(e,t){Ht={type:6,name:Rr(e,t),nameLoc:nr(e,t),value:void 0,loc:nr(e)}},ondirname(e,t){const n=Rr(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Do&&r===""&&Oa(26,e),Do||r==="")Ht={type:6,name:n,nameLoc:nr(e,t),value:void 0,loc:nr(e)};else if(Ht={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[_t("prop")]:[],loc:nr(e)},r==="pre"){Do=Yn.inVPre=!0,cw=Wr;const i=Wr.props;for(let a=0;a<i.length;a++)i[a].type===7&&(i[a]=ove(i[a]))}},ondirarg(e,t){if(e===t)return;const n=Rr(e,t);if(Do&&!uw(Ht))Ht.name+=n,Nl(Ht.nameLoc,t);else{const r=n[0]!=="[";Ht.arg=Dh(r?n:n.slice(1,-1),r,nr(e,t),r?3:0)}},ondirmodifier(e,t){const n=Rr(e,t);if(Do&&!uw(Ht))Ht.name+="."+n,Nl(Ht.nameLoc,t);else if(Ht.name==="slot"){const r=Ht.arg;r&&(r.content+="."+n,Nl(r.loc,t))}else{const r=_t(n,!0,nr(e,t));Ht.modifiers.push(r)}},onattribdata(e,t){Ii+=Rr(e,t),La<0&&(La=e),Sl=t},onattribentity(e,t,n){Ii+=e,La<0&&(La=t),Sl=n},onattribnameend(e){const t=Ht.loc.start.offset,n=Rr(t,e);Ht.type===7&&(Ht.rawName=n),Wr.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Oa(2,t)},onattribend(e,t){if(Wr&&Ht){if(Nl(Ht.loc,t),e!==0)if(Ii.includes("&")&&(Ii=hn.decodeEntities(Ii,!0)),Ht.type===6)Ht.name==="class"&&(Ii=DV(Ii).trim()),e===1&&!Ii&&Oa(13,t),Ht.value={type:2,content:Ii,loc:e===1?nr(La,Sl):nr(La-1,Sl+1)},Yn.inSFCRoot&&Wr.tag==="template"&&Ht.name==="lang"&&Ii&&Ii!=="html"&&Yn.enterRCDATA(Kg("</template"),0);else{let n=0;Ht.exp=Dh(Ii,!1,nr(La,Sl),0,n),Ht.name==="for"&&(Ht.forParseResult=Zge(Ht.exp));let r=-1;Ht.name==="bind"&&(r=Ht.modifiers.findIndex(i=>i.content==="sync"))>-1&&nd("COMPILER_V_BIND_SYNC",hn,Ht.loc,Ht.arg.loc.source)&&(Ht.name="model",Ht.modifiers.splice(r,1))}(Ht.type!==7||Ht.name!=="pre")&&Wr.props.push(Ht)}Ii="",La=Sl=-1},oncomment(e,t){hn.comments&&dw({type:3,content:Rr(e,t),loc:nr(e-4,t+3)})},onend(){const e=Qa.length;for(let t=0;t<Fn.length;t++)Nh(Fn[t],e-1),Oa(24,Fn[t].loc.start.offset)},oncdata(e,t){Fn[0].ns!==0?qm(Rr(e,t),e,t):Oa(1,e-9)},onprocessinginstruction(e){(Fn[0]?Fn[0].ns:hn.ns)===0&&Oa(21,e-1)}}),QP=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qge=/^\(|\)$/g;function Zge(e){const t=e.loc,n=e.content,r=n.match(RV);if(!r)return;const[,i,a]=r,s=(d,p,h=!1)=>{const g=t.start.offset+p,v=g+d.length;return Dh(d,!1,nr(g,v),0,h?1:0)},o={source:s(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Qge,"").trim();const u=i.indexOf(l),c=l.match(QP);if(c){l=l.replace(QP,"").trim();const d=c[1].trim();let p;if(d&&(p=n.indexOf(d,u+l.length),o.key=s(d,p,!0)),c[2]){const h=c[2].trim();h&&(o.index=s(h,n.indexOf(h,o.key?p+d.length:u+l.length),!0))}}return l&&(o.value=s(l,u,!0)),o}function Rr(e,t){return Qa.slice(e,t)}function ZP(e){Yn.inSFCRoot&&(Wr.innerLoc=nr(e+1,e+1)),dw(Wr);const{tag:t,ns:n}=Wr;n===0&&hn.isPreTag(t)&&wC++,hn.isVoidTag(t)?Nh(Wr,e):(Fn.unshift(Wr),(n===1||n===2)&&(Yn.inXML=!0)),Wr=null}function qm(e,t,n){{const a=Fn[0]&&Fn[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=hn.decodeEntities(e,!1))}const r=Fn[0]||xp,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Nl(i.loc,n)):r.children.push({type:2,content:e,loc:nr(t,n)})}function Nh(e,t,n=!1){n?Nl(e.loc,OV(t,60)):Nl(e.loc,eve(t,62)+1),Yn.inSFCRoot&&(e.children.length?e.innerLoc.end=Mt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Mt({},e.innerLoc.start),e.innerLoc.source=Rr(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:a}=e;if(Do||(r==="slot"?e.tagType=2:eR(e)?e.tagType=3:nve(e)&&(e.tagType=1)),Yn.inRCDATA||(e.children=NV(a)),i===0&&hn.isIgnoreNewlineTag(r)){const s=a[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}i===0&&hn.isPreTag(r)&&wC--,cw===e&&(Do=Yn.inVPre=!1,cw=null),Yn.inXML&&(Fn[0]?Fn[0].ns:hn.ns)===0&&(Yn.inXML=!1);{const s=e.props;if(!Yn.inSFCRoot&&tu("COMPILER_NATIVE_TEMPLATE",hn)&&e.tag==="template"&&!eR(e)){const l=Fn[0]||xp,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const o=s.find(l=>l.type===6&&l.name==="inline-template");o&&nd("COMPILER_INLINE_TEMPLATE",hn,o.loc)&&e.children.length&&(o.value={type:2,content:Rr(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function eve(e,t){let n=e;for(;Qa.charCodeAt(n)!==t&&n<Qa.length-1;)n++;return n}function OV(e,t){let n=e;for(;Qa.charCodeAt(n)!==t&&n>=0;)n--;return n}const tve=new Set(["if","else","else-if","for","slot"]);function eR({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&tve.has(t[n].name))return!0}return!1}function nve({tag:e,props:t}){if(hn.isCustomElement(e))return!1;if(e==="component"||rve(e.charCodeAt(0))||hC(e)||hn.isBuiltInComponent&&hn.isBuiltInComponent(e)||hn.isNativeTag&&!hn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(nd("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}}else if(r.name==="bind"&&Vo(r.arg,"is")&&nd("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}return!1}function rve(e){return e>64&&e<91}const ive=/\r\n/g;function NV(e){const t=hn.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===2)if(wC)i.content=i.content.replace(ive,`
|
|
89
|
-
`);else if(bC(i.content)){const a=e[r-1]&&e[r-1].type,s=e[r+1]&&e[r+1].type;!a||!s||t&&(a===3&&(s===3||s===1)||a===1&&(s===3||s===1&&sve(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=DV(i.content))}return n?e.filter(Boolean):e}function sve(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function DV(e){let t="",n=!1;for(let r=0;r<e.length;r++)ts(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function dw(e){(Fn[0]||xp).children.push(e)}function nr(e,t){return{start:Yn.getPos(e),end:t==null?t:Yn.getPos(t),source:t==null?t:Rr(e,t)}}function ave(e){return nr(e.start.offset,e.end.offset)}function Nl(e,t){e.end=Yn.getPos(t),e.source=Rr(e.start.offset,t)}function ove(e){const t={type:6,name:e.rawName,nameLoc:nr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Dh(e,t=!1,n,r=0,i=0){return _t(e,t,n,r)}function Oa(e,t,n){hn.onError(Pn(e,nr(t,t)))}function lve(){Yn.reset(),Wr=null,Ht=null,Ii="",La=-1,Sl=-1,Fn.length=0}function EC(e,t){if(lve(),Qa=e,hn=Mt({},AV),t){let i;for(i in t)t[i]!=null&&(hn[i]=t[i])}Yn.mode=hn.parseMode==="html"?1:hn.parseMode==="sfc"?2:0,Yn.inXML=hn.ns===1||hn.ns===2;const n=t&&t.delimiters;n&&(Yn.delimiterOpen=Kg(n[0]),Yn.delimiterClose=Kg(n[1]));const r=xp=mV([],e);return Yn.parse(Qa),r.loc=nr(0,e.length),r.children=NV(r.children),xp=null,r}function uve(e,t){Lh(e,void 0,t,!!LV(e))}function LV(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!wp(t[0])?t[0]:null}function Lh(e,t,n,r=!1,i=!1){const{children:a}=e,s=[];for(let c=0;c<a.length;c++){const d=a[c];if(d.type===1&&d.tagType===0){const p=r?0:Vi(d,n);if(p>0){if(p>=2){d.codegenNode.patchFlag=-1,s.push(d);continue}}else{const h=d.codegenNode;if(h.type===13){const g=h.patchFlag;if((g===void 0||g===512||g===1)&&MV(d,n)>=2){const v=$V(d);v&&(h.props=n.hoist(v))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(d.type===12&&(r?0:Vi(d,n))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push("-1"),s.push(d);continue}if(d.type===1){const p=d.tagType===1;p&&n.scopes.vSlot++,Lh(d,e,n,!1,i),p&&n.scopes.vSlot--}else if(d.type===11)Lh(d,e,n,d.children.length===1,!0);else if(d.type===9)for(let p=0;p<d.branches.length;p++)Lh(d.branches[p],e,n,d.branches[p].children.length===1,i)}let o=!1;if(s.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Xe(e.codegenNode.children))e.codegenNode.children=l(Wo(e.codegenNode.children)),o=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Xe(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(Wo(c.returns)),o=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Xe(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=hi(e,"slot",!0),d=c&&c.arg&&u(t.codegenNode,c.arg);d&&(d.returns=l(Wo(d.returns)),o=!0)}}if(!o)for(const c of s)c.codegenNode=n.cache(c.codegenNode);function l(c){const d=n.cache(c);return d.needArraySpread=!0,d}function u(c,d){if(c.children&&!Xe(c.children)&&c.children.type===15){const p=c.children.properties.find(h=>h.key===d||h.key.content===d);return p&&p.value}}s.length&&n.transformHoist&&n.transformHoist(a,n,e)}function Vi(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let s=3;const o=MV(e,t);if(o===0)return n.set(e,0),0;o<s&&(s=o);for(let l=0;l<e.children.length;l++){const u=Vi(e.children[l],t);if(u===0)return n.set(e,0),0;u<s&&(s=u)}if(s>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=Vi(u.exp,t);if(c===0)return n.set(e,0),0;c<s&&(s=c)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Zo),t.removeHelper(Su(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(bu(t.inSSR,i.isComponent))}return n.set(e,s),s}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Vi(e.content,t);case 4:return e.constType;case 8:let a=3;for(let s=0;s<e.children.length;s++){const o=e.children[s];if(ht(o)||yi(o))continue;const l=Vi(o,t);if(l===0)return 0;l<a&&(a=l)}return a;case 20:return 2;default:return 0}}const cve=new Set([Iy,Py,ed,Fd]);function FV(e,t){if(e.type===14&&!ht(e.callee)&&cve.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Vi(n,t);if(n.type===14)return FV(n,t)}return 0}function MV(e,t){let n=3;const r=$V(e);if(r&&r.type===15){const{properties:i}=r;for(let a=0;a<i.length;a++){const{key:s,value:o}=i[a],l=Vi(s,t);if(l===0)return l;l<n&&(n=l);let u;if(o.type===4?u=Vi(o,t):o.type===14?u=FV(o,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function $V(e){const t=e.codegenNode;if(t.type===13)return t.props}function VV(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:l=null,isBuiltInComponent:u=Cr,isCustomElement:c=Cr,expressionPlugins:d=[],scopeId:p=null,slotted:h=!0,ssr:g=!1,inSSR:v=!1,ssrCssVars:y="",bindingMetadata:b=Ut,inline:S=!1,isTS:w=!1,onError:C=mC,onWarn:P=vV,compatConfig:k}){const R=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={filename:t,selfName:R&&Ki(En(R[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:s,directiveTransforms:o,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:d,scopeId:p,slotted:h,ssr:g,inSSR:v,ssrCssVars:y,bindingMetadata:b,inline:S,isTS:w,onError:C,onWarn:P,compatConfig:k,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const x=T.helpers.get(I)||0;return T.helpers.set(I,x+1),I},removeHelper(I){const x=T.helpers.get(I);if(x){const A=x-1;A?T.helpers.set(I,A):T.helpers.delete(I)}},helperString(I){return`_${vu[T.helper(I)]}`},replaceNode(I){T.parent.children[T.childIndex]=T.currentNode=I},removeNode(I){const x=T.parent.children,A=I?x.indexOf(I):T.currentNode?T.childIndex:-1;!I||I===T.currentNode?(T.currentNode=null,T.onNodeRemoved()):T.childIndex>A&&(T.childIndex--,T.onNodeRemoved()),T.parent.children.splice(A,1)},onNodeRemoved:Cr,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){ht(I)&&(I=_t(I)),T.hoists.push(I);const x=_t(`_hoisted_${T.hoists.length}`,!1,I.loc,2);return x.hoisted=I,x},cache(I,x=!1,A=!1){const D=hV(T.cached.length,I,x,A);return T.cached.push(D),D}};return T.filters=new Set,T}function BV(e,t){const n=VV(e,t);dm(e,n),t.hoistStatic&&uve(e,n),t.ssr||dve(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function dve(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=LV(e);if(i&&i.codegenNode){const a=i.codegenNode;a.type===13&&Ny(a,t),e.codegenNode=a}else e.codegenNode=r[0]}else if(r.length>1){let i=64;e.codegenNode=td(t,n(Zc),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function fve(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];ht(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,dm(i,t))}}function dm(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let a=0;a<n.length;a++){const s=n[a](e,t);if(s&&(Xe(s)?r.push(...s):r.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ld);break;case 5:t.ssr||t.helper(lm);break;case 9:for(let a=0;a<e.branches.length;a++)dm(e.branches[a],t);break;case 10:case 11:case 1:case 0:fve(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function xC(e,t){const n=ht(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:a}=r;if(r.tagType===3&&a.some(yC))return;const s=[];for(let o=0;o<a.length;o++){const l=a[o];if(l.type===7&&n(l.name)){a.splice(o,1),o--;const u=t(r,l,i);u&&s.push(u)}}return s}}}const Ly="/*@__PURE__*/",UV=e=>`${vu[e]}: _${vu[e]}`;function pve(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:a=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${vu[v]}`},push(v,y=-2,b){h.code+=v},indent(){g(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:g(--h.indentLevel)},newline(){g(h.indentLevel)}};function g(v){h.push(`
|
|
90
|
-
`+" ".repeat(v),0)}return h}function jV(e,t={}){const n=pve(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:a,indent:s,deindent:o,newline:l,scopeId:u,ssr:c}=n,d=Array.from(e.helpers),p=d.length>0,h=!a&&r!=="module";mve(e,n);const v=c?"ssrRender":"render",b=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${v}(${b}) {`),s(),h&&(i("with (_ctx) {"),s(),p&&(i(`const { ${d.map(UV).join(", ")} } = _Vue
|
|
91
|
-
`,-1),l())),e.components.length&&(Zb(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Zb(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Zb(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let S=0;S<e.temps;S++)i(`${S>0?", ":""}_temp${S}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
92
|
-
`,0),l()),c||i("return "),e.codegenNode?si(e.codegenNode,n):i("null"),h&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function mve(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:l}=t,u=o,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${u}
|
|
93
|
-
`,-1),e.hoists.length)){const d=[by,Sy,Ld,wy,cC].filter(p=>c.includes(p)).map(UV).join(", ");i(`const { ${d} } = _Vue
|
|
94
|
-
`,-1)}hve(e.hoists,t),a(),i("return ")}function Zb(e,t,{helper:n,push:r,newline:i,isTS:a}){const s=n(t==="filter"?ky:t==="component"?Ey:Cy);for(let o=0;o<e.length;o++){let l=e[o];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${id(l,t)} = ${s}(${JSON.stringify(l)}${u?", true":""})${a?"!":""}`),o<e.length-1&&i()}}function hve(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const a=e[i];a&&(n(`const _hoisted_${i+1} = `),si(a,t),r())}t.pure=!1}function CC(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),fm(e,t,n),n&&t.deindent(),t.push("]")}function fm(e,t,n=!1,r=!0){const{push:i,newline:a}=t;for(let s=0;s<e.length;s++){const o=e[s];ht(o)?i(o,-3):Xe(o)?CC(o,t):si(o,t),s<e.length-1&&(n?(r&&i(","),a()):r&&i(", "))}}function si(e,t){if(ht(e)){t.push(e,-3);return}if(yi(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:si(e.codegenNode,t);break;case 2:gve(e,t);break;case 4:zV(e,t);break;case 5:vve(e,t);break;case 12:si(e.codegenNode,t);break;case 8:HV(e,t);break;case 3:bve(e,t);break;case 13:Sve(e,t);break;case 14:Eve(e,t);break;case 15:xve(e,t);break;case 17:Cve(e,t);break;case 18:kve(e,t);break;case 19:_ve(e,t);break;case 20:Tve(e,t);break;case 21:fm(e.body,t,!0,!1);break}}function gve(e,t){t.push(JSON.stringify(e.content),-3,e)}function zV(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function vve(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Ly),n(`${r(lm)}(`),si(e.content,t),n(")")}function HV(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];ht(r)?t.push(r,-3):si(r,t)}}function yve(e,t){const{push:n}=t;if(e.type===8)n("["),HV(e,t),n("]");else if(e.isStatic){const r=um(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function bve(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Ly),n(`${r(Ld)}(${JSON.stringify(e.content)})`,-3,e)}function Sve(e,t){const{push:n,helper:r,pure:i}=t,{tag:a,props:s,children:o,patchFlag:l,dynamicProps:u,directives:c,isBlock:d,disableTracking:p,isComponent:h}=e;let g;l&&(g=String(l)),c&&n(r(_y)+"("),d&&n(`(${r(Zo)}(${p?"true":""}), `),i&&n(Ly);const v=d?Su(t.inSSR,h):bu(t.inSSR,h);n(r(v)+"(",-2,e),fm(wve([a,s,o,g,u]),t),n(")"),d&&n(")"),c&&(n(", "),si(c,t),n(")"))}function wve(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Eve(e,t){const{push:n,helper:r,pure:i}=t,a=ht(e.callee)?e.callee:r(e.callee);i&&n(Ly),n(a+"(",-2,e),fm(e.arguments,t),n(")")}function xve(e,t){const{push:n,indent:r,deindent:i,newline:a}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}const o=s.length>1||!1;n(o?"{":"{ "),o&&r();for(let l=0;l<s.length;l++){const{key:u,value:c}=s[l];yve(u,t),n(": "),si(c,t),l<s.length-1&&(n(","),a())}o&&i(),n(o?"}":" }")}function Cve(e,t){CC(e.elements,t)}function kve(e,t){const{push:n,indent:r,deindent:i}=t,{params:a,returns:s,body:o,newline:l,isSlot:u}=e;u&&n(`_${vu[Ay]}(`),n("(",-2,e),Xe(a)?fm(a,t):a&&si(a,t),n(") => "),(l||o)&&(n("{"),r()),s?(l&&n("return "),Xe(s)?CC(s,t):si(s,t)):o&&si(o,t),(l||o)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function _ve(e,t){const{test:n,consequent:r,alternate:i,newline:a}=e,{push:s,indent:o,deindent:l,newline:u}=t;if(n.type===4){const d=!um(n.content);d&&s("("),zV(n,t),d&&s(")")}else s("("),si(n,t),s(")");a&&o(),t.indentLevel++,a||s(" "),s("? "),si(r,t),t.indentLevel--,a&&u(),a||s(" "),s(": ");const c=i.type===19;c||t.indentLevel++,si(i,t),c||t.indentLevel--,a&&l(!0)}function Tve(e,t){const{push:n,helper:r,indent:i,deindent:a,newline:s}=t,{needPauseTracking:o,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),o&&(i(),n(`${r(Sp)}(-1`),e.inVOnce&&n(", true"),n("),"),s(),n("(")),n(`_cache[${e.index}] = `),si(e.value,t),o&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(Sp)}(1),`),s(),n(`_cache[${e.index}]`),a()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Ive=(e,t)=>{if(e.type===5)e.content=Fh(e.content,t);else if(e.type===1){const n=hi(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const a=i.exp,s=i.arg;a&&a.type===4&&!(i.name==="on"&&s)&&!(n&&s&&s.type===4&&s.content==="key")&&(i.exp=Fh(a,t,i.name==="slot")),s&&s.type===4&&!s.isStatic&&(i.arg=Fh(s,t))}}}};function Fh(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function WV(e){return ht(e)?e:e.type===4?e.content:e.children.map(WV).join("")}const Pve=xC(/^(?:if|else|else-if)$/,(e,t,n)=>GV(e,t,n,(r,i,a)=>{const s=n.parent.children;let o=s.indexOf(r),l=0;for(;o-->=0;){const u=s[o];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(a)r.codegenNode=nR(i,l,n);else{const u=Rve(r.codegenNode);u.alternate=nR(i,l+r.branches.length-1,n)}}}));function GV(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Pn(28,t.loc)),t.exp=_t("true",!1,i)}if(t.name==="if"){const i=tR(e,t),a={type:9,loc:ave(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);for(;a-->=-1;){const s=i[a];if(s&&SC(s)){n.removeNode(s);continue}if(s&&s.type===9){(t.name==="else-if"||t.name==="else")&&s.branches[s.branches.length-1].condition===void 0&&n.onError(Pn(30,e.loc)),n.removeNode();const o=tR(e,t);s.branches.push(o);const l=r&&r(s,o,!1);dm(o,n),l&&l(),n.currentNode=null}else n.onError(Pn(30,e.loc));break}}}function tR(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!hi(e,"for")?e.children:[e],userKey:cm(e,"key"),isTemplateIf:n}}function nR(e,t,n){return e.condition?qg(e.condition,rR(e,t,n),cr(n.helper(Ld),['""',"true"])):rR(e,t,n)}function rR(e,t,n){const{helper:r}=n,i=ir("key",_t(`${t}`,!1,xr,2)),{children:a}=e,s=a[0];if(a.length!==1||s.type!==1)if(a.length===1&&s.type===11){const l=s.codegenNode;return Ep(l,i,n),l}else return td(n,r(Zc),as([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=s.codegenNode,u=PV(l);return u.type===13&&Ny(u,n),Ep(u,i,n),l}}function Rve(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const Ave=xC("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return qV(e,t,n,a=>{const s=cr(r(Ty),[a.source]),o=rd(e),l=hi(e,"memo"),u=cm(e,"key",!1,!0);u&&u.type;let c=u&&(u.type===6?u.value?_t(u.value.content,!0):void 0:u.exp);const d=u&&c?ir("key",c):null,p=a.source.type===4&&a.source.constType>0,h=p?64:u?128:256;return a.codegenNode=td(n,r(Zc),void 0,s,h,void 0,void 0,!0,!p,!1,e.loc),()=>{let g;const{children:v}=a,y=v.length!==1||v[0].type!==1,b=wp(e)?e:o&&e.children.length===1&&wp(e.children[0])?e.children[0]:null;if(b?(g=b.codegenNode,o&&d&&Ep(g,d,n)):y?g=td(n,r(Zc),d?as([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(g=v[0].codegenNode,o&&d&&Ep(g,d,n),g.isBlock!==!p&&(g.isBlock?(i(Zo),i(Su(n.inSSR,g.isComponent))):i(bu(n.inSSR,g.isComponent))),g.isBlock=!p,g.isBlock?(r(Zo),r(Su(n.inSSR,g.isComponent))):r(bu(n.inSSR,g.isComponent))),l){const S=yu(Yg(a.parseResult,[_t("_cached")]));S.body=gV([Cs(["const _memo = (",l.exp,")"]),Cs(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(pC)}(_cached, _memo)) return _cached`]),Cs(["const _item = ",g]),_t("_item.memo = _memo"),_t("return _item")]),s.arguments.push(S,_t("_cache"),_t(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(yu(Yg(a.parseResult),g,!0))}})});function qV(e,t,n,r){if(!t.exp){n.onError(Pn(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Pn(32,t.loc));return}kC(i);const{addIdentifiers:a,removeIdentifiers:s,scopes:o}=n,{source:l,value:u,key:c,index:d}=i,p={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:d,parseResult:i,children:rd(e)?e.children:[e]};n.replaceNode(p),o.vFor++;const h=r&&r(p);return()=>{o.vFor--,h&&h()}}function kC(e,t){e.finalized||(e.finalized=!0)}function Yg({value:e,key:t,index:n},r=[]){return Ove([e,t,n,...r])}function Ove(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||_t("_".repeat(r+1),!1))}const iR=_t("undefined",!1),KV=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=hi(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Nve=(e,t)=>{let n;if(rd(e)&&e.props.some(yC)&&(n=hi(e,"for"))){const r=n.forParseResult;if(r){kC(r);const{value:i,key:a,index:s}=r,{addIdentifiers:o,removeIdentifiers:l}=t;return i&&o(i),a&&o(a),s&&o(s),()=>{i&&l(i),a&&l(a),s&&l(s)}}}},Dve=(e,t,n,r)=>yu(e,n,!1,!0,n.length?n[0].loc:r);function YV(e,t,n=Dve){t.helper(Ay);const{children:r,loc:i}=e,a=[],s=[];let o=t.scopes.vSlot>0||t.scopes.vFor>0;const l=hi(e,"slot",!0);if(l){const{arg:y,exp:b}=l;y&&!vi(y)&&(o=!0),a.push(ir(y||_t("default",!0),n(b,void 0,r,i)))}let u=!1,c=!1;const d=[],p=new Set;let h=0;for(let y=0;y<r.length;y++){const b=r[y];let S;if(!rd(b)||!(S=hi(b,"slot",!0))){b.type!==3&&d.push(b);continue}if(l){t.onError(Pn(37,S.loc));break}u=!0;const{children:w,loc:C}=b,{arg:P=_t("default",!0),exp:k,loc:R}=S;let T;vi(P)?T=P?P.content:"default":o=!0;const I=hi(b,"for"),x=n(k,I,w,C);let A,D;if(A=hi(b,"if"))o=!0,s.push(qg(A.exp,Km(P,x,h++),iR));else if(D=hi(b,/^else(?:-if)?$/,!0)){let B=y,V;for(;B--&&(V=r[B],!!SC(V)););if(V&&rd(V)&&hi(V,/^(?:else-)?if$/)){let $=s[s.length-1];for(;$.alternate.type===19;)$=$.alternate;$.alternate=D.exp?qg(D.exp,Km(P,x,h++),iR):Km(P,x,h++)}else t.onError(Pn(30,D.loc))}else if(I){o=!0;const B=I.forParseResult;B?(kC(B),s.push(cr(t.helper(Ty),[B.source,yu(Yg(B),Km(P,x),!0)]))):t.onError(Pn(32,I.loc))}else{if(T){if(p.has(T)){t.onError(Pn(38,R));continue}p.add(T),T==="default"&&(c=!0)}a.push(ir(P,x))}}if(!l){const y=(b,S)=>{const w=n(b,void 0,S,i);return t.compatConfig&&(w.isNonScopedSlot=!0),ir("default",w)};u?d.length&&!d.every(Dy)&&(c?t.onError(Pn(39,d[0].loc)):a.push(y(void 0,d))):a.push(y(void 0,r))}const g=o?2:Mh(e.children)?3:1;let v=as(a.concat(ir("_",_t(g+"",!1))),i);return s.length&&(v=cr(t.helper(fC),[v,Wo(s)])),{slots:v,hasDynamicSlots:o}}function Km(e,t,n){const r=[ir("name",e),ir("fn",t)];return n!=null&&r.push(ir("key",_t(String(n),!0))),as(r)}function Mh(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Mh(n.children))return!0;break;case 9:if(Mh(n.branches))return!0;break;case 10:case 11:if(Mh(n.children))return!0;break}}return!1}const XV=new WeakMap,JV=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,a=e.tagType===1;let s=a?QV(e,t):`"${r}"`;const o=dn(s)&&s.callee===xy;let l,u,c=0,d,p,h,g=o||s===wc||s===yy||!a&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const v=_C(e,t,void 0,a,o);l=v.props,c=v.patchFlag,p=v.dynamicPropNames;const y=v.directives;h=y&&y.length?Wo(y.map(b=>ZV(b,t))):void 0,v.shouldUseBlock&&(g=!0)}if(e.children.length>0)if(s===yp&&(g=!0,c|=1024),a&&s!==wc&&s!==yp){const{slots:y,hasDynamicSlots:b}=YV(e,t);u=y,b&&(c|=1024)}else if(e.children.length===1&&s!==wc){const y=e.children[0],b=y.type,S=b===5||b===8;S&&Vi(y,t)===0&&(c|=1),S||b===2?u=y:u=e.children}else u=e.children;p&&p.length&&(d=Fve(p)),e.codegenNode=td(t,s,l,u,c===0?void 0:c,d,h,!!g,!1,a,e.loc)};function QV(e,t,n=!1){let{tag:r}=e;const i=fw(r),a=cm(e,"is",!1,!0);if(a)if(i||tu("COMPILER_IS_ON_ELEMENT",t)){let o;if(a.type===6?o=a.value&&_t(a.value.content,!0):(o=a.exp,o||(o=_t("is",!1,a.arg.loc))),o)return cr(t.helper(xy),[o])}else a.type===6&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const s=hC(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(Ey),t.components.add(r),id(r,"component"))}function _C(e,t,n=e.props,r,i,a=!1){const{tag:s,loc:o,children:l}=e;let u=[];const c=[],d=[],p=l.length>0;let h=!1,g=0,v=!1,y=!1,b=!1,S=!1,w=!1,C=!1;const P=[],k=x=>{u.length&&(c.push(as(sR(u),o)),u=[]),x&&c.push(x)},R=()=>{t.scopes.vFor>0&&u.push(ir(_t("ref_for",!0),_t("true")))},T=({key:x,value:A})=>{if(vi(x)){const D=x.content,B=el(D);if(B&&(!r||i)&&D.toLowerCase()!=="onclick"&&D!=="onUpdate:modelValue"&&!Ha(D)&&(S=!0),B&&Ha(D)&&(C=!0),B&&A.type===14&&(A=A.arguments[0]),A.type===20||(A.type===4||A.type===8)&&Vi(A,t)>0)return;D==="ref"?v=!0:D==="class"?y=!0:D==="style"?b=!0:D!=="key"&&!P.includes(D)&&P.push(D),r&&(D==="class"||D==="style")&&!P.includes(D)&&P.push(D)}else w=!0};for(let x=0;x<n.length;x++){const A=n[x];if(A.type===6){const{loc:D,name:B,nameLoc:V,value:$}=A;let N=!0;if(B==="ref"&&(v=!0,R()),B==="is"&&(fw(s)||$&&$.content.startsWith("vue:")||tu("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(ir(_t(B,!0,V),_t($?$.content:"",N,$?$.loc:D)))}else{const{name:D,arg:B,exp:V,loc:$,modifiers:N}=A,O=D==="bind",M=D==="on";if(D==="slot"){r||t.onError(Pn(40,$));continue}if(D==="once"||D==="memo"||D==="is"||O&&Vo(B,"is")&&(fw(s)||tu("COMPILER_IS_ON_ELEMENT",t))||M&&a)continue;if((O&&Vo(B,"key")||M&&p&&Vo(B,"vue:before-update"))&&(h=!0),O&&Vo(B,"ref")&&R(),!B&&(O||M)){if(w=!0,V)if(O){if(k(),tu("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(V);continue}R(),k(),c.push(V)}else k({type:14,loc:$,callee:t.helper(Ry),arguments:r?[V]:[V,"true"]});else t.onError(Pn(O?34:35,$));continue}O&&N.some(X=>X.content==="prop")&&(g|=32);const Y=t.directiveTransforms[D];if(Y){const{props:X,needRuntime:ie}=Y(A,e,t);!a&&X.forEach(T),M&&B&&!vi(B)?k(as(X,o)):u.push(...X),ie&&(d.push(A),yi(ie)&&XV.set(A,ie))}else EA(D)||(d.push(A),p&&(h=!0))}}let I;if(c.length?(k(),c.length>1?I=cr(t.helper(bp),c,o):I=c[0]):u.length&&(I=as(sR(u),o)),w?g|=16:(y&&!r&&(g|=2),b&&!r&&(g|=4),P.length&&(g|=8),S&&(g|=32)),!h&&(g===0||g===32)&&(v||C||d.length>0)&&(g|=512),!t.inSSR&&I)switch(I.type){case 15:let x=-1,A=-1,D=!1;for(let $=0;$<I.properties.length;$++){const N=I.properties[$].key;vi(N)?N.content==="class"?x=$:N.content==="style"&&(A=$):N.isHandlerKey||(D=!0)}const B=I.properties[x],V=I.properties[A];D?I=cr(t.helper(ed),[I]):(B&&!vi(B.value)&&(B.value=cr(t.helper(Iy),[B.value])),V&&(b||V.value.type===4&&V.value.content.trim()[0]==="["||V.value.type===17)&&(V.value=cr(t.helper(Py),[V.value])));break;case 14:break;default:I=cr(t.helper(ed),[cr(t.helper(Fd),[I])]);break}return{props:I,directives:d,patchFlag:g,dynamicPropNames:P,shouldUseBlock:h}}function sR(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const a=i.key.content,s=t.get(a);s?(a==="style"||a==="class"||el(a))&&Lve(s,i):(t.set(a,i),n.push(i))}return n}function Lve(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Wo([e.value,t.value],e.loc)}function ZV(e,t){const n=[],r=XV.get(e);r?n.push(t.helperString(r)):(t.helper(Cy),t.directives.add(e.name),n.push(id(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const a=_t("true",!1,i);n.push(as(e.modifiers.map(s=>ir(s,a)),i))}return Wo(n,e.loc)}function Fve(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function fw(e){return e==="component"||e==="Component"}const Mve=(e,t)=>{if(wp(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:a}=e4(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let o=2;a&&(s[2]=a,o=3),n.length&&(s[3]=yu([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=cr(t.helper(dC),s,r)}};function e4(e,t){let n='"default"',r;const i=[];for(let a=0;a<e.props.length;a++){const s=e.props[a];if(s.type===6)s.value&&(s.name==="name"?n=JSON.stringify(s.value.content):(s.name=En(s.name),i.push(s)));else if(s.name==="bind"&&Vo(s.arg,"name")){if(s.exp)n=s.exp;else if(s.arg&&s.arg.type===4){const o=En(s.arg.content);n=s.exp=_t(o,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&vi(s.arg)&&(s.arg.content=En(s.arg.content)),i.push(s)}if(i.length>0){const{props:a,directives:s}=_C(e,t,i,!1,!1);r=a,s.length&&t.onError(Pn(36,s[0].loc))}return{slotName:n,slotProps:r}}const TC=(e,t,n,r)=>{const{loc:i,modifiers:a,arg:s}=e;!e.exp&&!a.length&&n.onError(Pn(35,i));let o;if(s.type===4)if(s.isStatic){let d=s.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const p=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Fl(En(d)):`on:${d}`;o=_t(p,!0,s.loc)}else o=Cs([`${n.helperString(Gg)}(`,s,")"]);else o=s,o.children.unshift(`${n.helperString(Gg)}(`),o.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const d=vC(l),p=!(d||kV(l)),h=l.content.includes(";");(p||u&&d)&&(l=Cs([`${p?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let c={props:[ir(o,l||_t("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(d=>d.key.isHandlerKey=!0),c},t4=(e,t,n)=>{const{modifiers:r,loc:i}=e,a=e.arg;let{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),r.some(o=>o.content==="camel")&&(a.type===4?a.isStatic?a.content=En(a.content):a.content=`${n.helperString(Wg)}(${a.content})`:(a.children.unshift(`${n.helperString(Wg)}(`),a.children.push(")"))),n.inSSR||(r.some(o=>o.content==="prop")&&aR(a,"."),r.some(o=>o.content==="attr")&&aR(a,"^")),{props:[ir(a,s)]}},aR=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},$ve=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let a=0;a<n.length;a++){const s=n[a];if(Oh(s)){i=!0;for(let o=a+1;o<n.length;o++){const l=n[o];if(Oh(l))r||(r=n[a]=Cs([s],s.loc)),r.children.push(" + ",l),n.splice(o,1),o--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(a=>a.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a<n.length;a++){const s=n[a];if(Oh(s)||s.type===8){const o=[];(s.type!==2||s.content!==" ")&&o.push(s),!t.ssr&&Vi(s,t)===0&&o.push("1"),n[a]={type:12,content:s,loc:s.loc,codegenNode:cr(t.helper(wy),o)}}}}},oR=new WeakSet,Vve=(e,t)=>{if(e.type===1&&hi(e,"once",!0))return oR.has(e)||t.inVOnce||t.inSSR?void 0:(oR.add(e),t.inVOnce=!0,t.helper(Sp),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},IC=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Pn(41,e.loc)),Yd();const a=r.loc.source.trim(),s=r.type===4?r.content:a,o=n.bindingMetadata[a];if(o==="props"||o==="props-aliased")return n.onError(Pn(44,r.loc)),Yd();if(o==="literal-const"||o==="setup-const")return n.onError(Pn(45,r.loc)),Yd();if(!s.trim()||!vC(r))return n.onError(Pn(42,r.loc)),Yd();const l=i||_t("modelValue",!0),u=i?vi(i)?`onUpdate:${En(i.content)}`:Cs(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;const d=n.isTS?"($event: any)":"$event";c=Cs([`${d} => ((`,r,") = $event)"]);const p=[ir(l,e.exp),ir(u,c)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(um(v)?v:JSON.stringify(v))+": true").join(", "),g=i?vi(i)?`${i.content}Modifiers`:Cs([i,' + "Modifiers"']):"modelModifiers";p.push(ir(g,_t(`{ ${h} }`,!1,e.loc,2)))}return Yd(p)};function Yd(e=[]){return{props:e}}const Bve=/[\w).+\-_$\]]/,Uve=(e,t)=>{tu("COMPILER_FILTERS",t)&&(e.type===5?Xg(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Xg(n.exp,t)}))};function Xg(e,t){if(e.type===4)lR(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?lR(r,t):r.type===8?Xg(e,t):r.type===5&&Xg(r.content,t))}}function lR(e,t){const n=e.content;let r=!1,i=!1,a=!1,s=!1,o=0,l=0,u=0,c=0,d,p,h,g,v=[];for(h=0;h<n.length;h++)if(p=d,d=n.charCodeAt(h),r)d===39&&p!==92&&(r=!1);else if(i)d===34&&p!==92&&(i=!1);else if(a)d===96&&p!==92&&(a=!1);else if(s)d===47&&p!==92&&(s=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!o&&!l&&!u)g===void 0?(c=h+1,g=n.slice(0,h).trim()):y();else{switch(d){case 34:i=!0;break;case 39:r=!0;break;case 96:a=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:o++;break;case 125:o--;break}if(d===47){let b=h-1,S;for(;b>=0&&(S=n.charAt(b),S===" ");b--);(!S||!Bve.test(S))&&(s=!0)}}g===void 0?g=n.slice(0,h).trim():c!==0&&y();function y(){v.push(n.slice(c,h).trim()),c=h+1}if(v.length){for(h=0;h<v.length;h++)g=jve(g,v[h],t);e.content=g,e.ast=void 0}}function jve(e,t,n){n.helper(ky);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${id(t,"filter")}(${e})`;{const i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${id(i,"filter")}(${e}${a!==")"?","+a:a}`}}const uR=new WeakSet,zve=(e,t)=>{if(e.type===1){const n=hi(e,"memo");return!n||uR.has(e)||t.inSSR?void 0:(uR.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Ny(r,t),e.codegenNode=cr(t.helper(Oy),[n.exp,yu(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}},n4=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const r=n.arg;if(r.type!==4||!r.isStatic)t.onError(Pn(53,r.loc)),n.exp=_t("",!0,r.loc);else{const i=En(r.content);(gC.test(i[0])||i[0]==="-")&&(n.exp=_t(i,!1,r.loc))}}}};function r4(e){return[[n4,Vve,Pve,zve,Ave,Uve,Mve,JV,KV,$ve],{on:TC,bind:t4,model:IC}]}function i4(e,t={}){const n=t.onError||mC,r=t.mode==="module";t.prefixIdentifiers===!0?n(Pn(48)):r&&n(Pn(49));const i=!1;t.cacheHandlers&&n(Pn(50)),t.scopeId&&!r&&n(Pn(51));const a=Mt({},t,{prefixIdentifiers:i}),s=ht(e)?EC(e,a):e,[o,l]=r4();return BV(s,Mt({},a,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:Mt({},l,t.directiveTransforms||{})})),jV(s,a)}const Hve={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},s4=()=>({props:[]});const PC=Symbol(""),RC=Symbol(""),AC=Symbol(""),OC=Symbol(""),Jg=Symbol(""),NC=Symbol(""),DC=Symbol(""),LC=Symbol(""),FC=Symbol(""),MC=Symbol("");pV({[PC]:"vModelRadio",[RC]:"vModelCheckbox",[AC]:"vModelText",[OC]:"vModelSelect",[Jg]:"vModelDynamic",[NC]:"withModifiers",[DC]:"withKeys",[LC]:"vShow",[FC]:"Transition",[MC]:"TransitionGroup"});let Gu;function Wve(e,t=!1){return Gu||(Gu=document.createElement("div")),t?(Gu.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Gu.children[0].getAttribute("foo")):(Gu.innerHTML=e,Gu.textContent)}const $C={parseMode:"html",isVoidTag:TA,isNativeTag:e=>CA(e)||kA(e)||_A(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Wve,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return FC;if(e==="TransitionGroup"||e==="transition-group")return MC},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},a4=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:_t("style",!0,t.loc),exp:Gve(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Gve=(e,t)=>{const n=ww(e);return _t(JSON.stringify(n),!1,t,3)};function Za(e,t){return Pn(e,t)}const qve={X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},Kve={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Yve=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Za(54,i)),t.children.length&&(n.onError(Za(55,i)),t.children.length=0),{props:[ir(_t("innerHTML",!0,i),r||_t("",!0))]}},Xve=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Za(56,i)),t.children.length&&(n.onError(Za(57,i)),t.children.length=0),{props:[ir(_t("textContent",!0),r?Vi(r,n)>0?r:cr(n.helperString(lm),[r],i):_t("",!0))]}},Jve=(e,t,n)=>{const r=IC(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Za(59,e.arg.loc));const{tag:i}=t,a=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||a){let s=AC,o=!1;if(i==="input"||a){const l=cm(t,"type");if(l){if(l.type===7)s=Jg;else if(l.value)switch(l.value.content){case"radio":s=PC;break;case"checkbox":s=RC;break;case"file":o=!0,n.onError(Za(60,e.loc));break}}else TV(t)&&(s=Jg)}else i==="select"&&(s=OC);o||(r.needRuntime=n.helper(s))}else n.onError(Za(58,e.loc));return r.props=r.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),r},Qve=kr("passive,once,capture"),Zve=kr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),eye=kr("left,right"),o4=kr("onkeyup,onkeydown,onkeypress"),tye=(e,t,n,r)=>{const i=[],a=[],s=[];for(let o=0;o<t.length;o++){const l=t[o].content;l==="native"&&nd("COMPILER_V_ON_NATIVE",n)||Qve(l)?s.push(l):eye(l)?vi(e)?o4(e.content.toLowerCase())?i.push(l):a.push(l):(i.push(l),a.push(l)):Zve(l)?a.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:s}},cR=(e,t)=>vi(e)&&e.content.toLowerCase()==="onclick"?_t(t,!0):e.type!==4?Cs(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,nye=(e,t,n)=>TC(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:a,value:s}=r.props[0];const{keyModifiers:o,nonKeyModifiers:l,eventOptionModifiers:u}=tye(a,i,n,e.loc);if(l.includes("right")&&(a=cR(a,"onContextmenu")),l.includes("middle")&&(a=cR(a,"onMouseup")),l.length&&(s=cr(n.helper(NC),[s,JSON.stringify(l)])),o.length&&(!vi(a)||o4(a.content.toLowerCase()))&&(s=cr(n.helper(DC),[s,JSON.stringify(o)])),u.length){const c=u.map(Ki).join("");a=vi(a)?_t(`${a.content}${c}`,!0):Cs(["(",a,`) + "${c}"`])}return{props:[ir(a,s)]}}),rye=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Za(62,i)),{props:[],needRuntime:n.helper(LC)}},iye=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},l4=[a4],u4={cloak:s4,html:Yve,text:Xve,model:Jve,on:nye,show:rye};function sye(e,t={}){return i4(e,Mt({},$C,t,{nodeTransforms:[iye,...l4,...t.nodeTransforms||[]],directiveTransforms:Mt({},u4,t.directiveTransforms||{}),transformHoist:null}))}function aye(e,t={}){return EC(e,Mt({},$C,t))}const oye=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:oC,BindingTypes:Hve,CAMELIZE:Wg,CAPITALIZE:lV,CREATE_BLOCK:lC,CREATE_COMMENT:Ld,CREATE_ELEMENT_BLOCK:uC,CREATE_ELEMENT_VNODE:Sy,CREATE_SLOTS:fC,CREATE_STATIC:cC,CREATE_TEXT:wy,CREATE_VNODE:by,CompilerDeprecationTypes:Ige,ConstantTypes:Sge,DOMDirectiveTransforms:u4,DOMErrorCodes:qve,DOMErrorMessages:Kve,DOMNodeTransforms:l4,ElementTypes:bge,ErrorCodes:Age,FRAGMENT:Zc,GUARD_REACTIVE_PROPS:Fd,IS_MEMO_SAME:pC,IS_REF:fV,KEEP_ALIVE:yp,MERGE_PROPS:bp,NORMALIZE_CLASS:Iy,NORMALIZE_PROPS:ed,NORMALIZE_STYLE:Py,Namespaces:vge,NodeTypes:yge,OPEN_BLOCK:Zo,POP_SCOPE_ID:cV,PUSH_SCOPE_ID:uV,RENDER_LIST:Ty,RENDER_SLOT:dC,RESOLVE_COMPONENT:Ey,RESOLVE_DIRECTIVE:Cy,RESOLVE_DYNAMIC_COMPONENT:xy,RESOLVE_FILTER:ky,SET_BLOCK_TRACKING:Sp,SUSPENSE:yy,TELEPORT:wc,TO_DISPLAY_STRING:lm,TO_HANDLERS:Ry,TO_HANDLER_KEY:Gg,TRANSITION:FC,TRANSITION_GROUP:MC,TS_NODE_TYPES:SV,UNREF:dV,V_MODEL_CHECKBOX:RC,V_MODEL_DYNAMIC:Jg,V_MODEL_RADIO:PC,V_MODEL_SELECT:OC,V_MODEL_TEXT:AC,V_ON_WITH_KEYS:DC,V_ON_WITH_MODIFIERS:NC,V_SHOW:LC,WITH_CTX:Ay,WITH_DIRECTIVES:_y,WITH_MEMO:Oy,advancePositionWithClone:Yge,advancePositionWithMutation:_V,assert:Xge,baseCompile:i4,baseParse:EC,buildDirectiveArgs:ZV,buildProps:_C,buildSlots:YV,checkCompatEnabled:nd,compile:sye,convertToBlock:Ny,createArrayExpression:Wo,createAssignmentExpression:Cge,createBlockStatement:gV,createCacheExpression:hV,createCallExpression:cr,createCompilerError:Pn,createCompoundExpression:Cs,createConditionalExpression:qg,createDOMCompilerError:Za,createForLoopParams:Yg,createFunctionExpression:yu,createIfStatement:xge,createInterpolation:wge,createObjectExpression:as,createObjectProperty:ir,createReturnStatement:_ge,createRoot:mV,createSequenceExpression:kge,createSimpleExpression:_t,createStructuralDirectiveTransform:xC,createTemplateLiteral:Ege,createTransformContext:VV,createVNodeCall:td,errorMessages:Oge,extractIdentifiers:da,findDir:hi,findProp:cm,forAliasRE:RV,generate:jV,generateCodeFrame:xA,getBaseTransformPreset:r4,getConstantType:Vi,getMemoedVNodeCall:PV,getVNodeBlockHelper:Su,getVNodeHelper:bu,hasDynamicKeyVBind:TV,hasScopeRef:Fs,helperNameMap:vu,injectProp:Ep,isAllWhitespace:bC,isCommentOrWhitespace:SC,isCoreComponent:hC,isFnExpression:kV,isFnExpressionBrowser:CV,isFnExpressionNode:Kge,isFunctionType:Uge,isInDestructureAssignment:Lge,isInNewExpression:Fge,isMemberExpression:vC,isMemberExpressionBrowser:xV,isMemberExpressionNode:Gge,isReferencedIdentifier:Dge,isSimpleIdentifier:um,isSlotOutlet:wp,isStaticArgOf:Vo,isStaticExp:vi,isStaticProperty:bV,isStaticPropertyKey:jge,isTemplateNode:rd,isText:Oh,isVPre:uw,isVSlot:yC,isWhitespaceText:Dy,locStub:xr,noopDirectiveTransform:s4,parse:aye,parserOptions:$C,processExpression:Fh,processFor:qV,processIf:GV,processSlotOutlet:e4,registerRuntimeHelpers:pV,resolveComponentType:QV,stringifyExpression:WV,toValidAssetId:id,trackSlotScopes:KV,trackVForSlotScopes:Nve,transform:BV,transformBind:t4,transformElement:JV,transformExpression:Ive,transformModel:IC,transformOn:TC,transformStyle:a4,transformVBindShorthand:n4,traverseNode:dm,unwrapTSNode:wV,validFirstIdentCharRE:gC,walkBlockDeclarations:yV,walkFunctionParams:Mge,walkIdentifiers:Nge,warnDeprecation:Rge},Symbol.toStringTag,{value:"Module"})),lye=vy(oye),uye=vy(U5),cye=vy(MB);var dR;function dye(){return dR||(dR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lye,n=uye,r=cye;function i(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var a=i(n);const s=Object.create(null);function o(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),d=s[c];if(d)return d;if(l[0]==="#"){const v=document.querySelector(l);l=v?v.innerHTML:""}const p=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!p.isCustomElement&&typeof customElements<"u"&&(p.isCustomElement=v=>!!customElements.get(v));const{code:h}=t.compile(l,p),g=new Function("Vue",h)(a);return g._rc=!0,s[c]=g}n.registerRuntimeCompiler(o),e.compile=o,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(Qb)),Qb}var fR;function fye(){return fR||(fR=1,Jb.exports=dye()),Jb.exports}function pR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(n),!0).forEach(function(r){pye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $h(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$h=function(t){return typeof t}:$h=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$h(e)}function pye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(){return Ps=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps.apply(this,arguments)}function mye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hye(e,t){if(e==null)return{};var n=mye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gye(e){return vye(e)||yye(e)||bye(e)||Sye()}function vye(e){if(Array.isArray(e))return pw(e)}function yye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bye(e,t){if(e){if(typeof e=="string")return pw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pw(e,t)}}function pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
95
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wye="1.14.0";function eo(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var bo=eo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),pm=eo(/Edge/i),mR=eo(/firefox/i),_f=eo(/safari/i)&&!eo(/chrome/i)&&!eo(/android/i),c4=eo(/iP(ad|od|hone)/i),Eye=eo(/chrome/i)&&eo(/android/i),d4={capture:!1,passive:!1};function Wt(e,t,n){e.addEventListener(t,n,!bo&&d4)}function Ft(e,t,n){e.removeEventListener(t,n,!bo&&d4)}function Qg(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function xye(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function js(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Qg(e,t):Qg(e,t))||r&&e===n)return e;if(e===n)break}while(e=xye(e))}return null}var hR=/\s+/g;function Vn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(hR," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(hR," ")}}function Ze(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function nu(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ze(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function f4(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function ga(){var e=document.scrollingElement;return e||document.documentElement}function Mn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,o,l,u,c,d;if(e!==window&&e.parentNode&&e!==ga()?(a=e.getBoundingClientRect(),s=a.top,o=a.left,l=a.bottom,u=a.right,c=a.height,d=a.width):(s=0,o=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!bo))do if(i&&i.getBoundingClientRect&&(Ze(i,"transform")!=="none"||n&&Ze(i,"position")!=="static")){var p=i.getBoundingClientRect();s-=p.top+parseInt(Ze(i,"border-top-width")),o-=p.left+parseInt(Ze(i,"border-left-width")),l=s+a.height,u=o+a.width;break}while(i=i.parentNode);if(r&&e!==window){var h=nu(i||e),g=h&&h.a,v=h&&h.d;h&&(s/=v,o/=g,d/=g,c/=v,l=s+c,u=o+d)}return{top:s,left:o,bottom:l,right:u,width:d,height:c}}}function gR(e,t,n){for(var r=Bo(e,!0),i=Mn(e)[t];r;){var a=Mn(r)[n],s=void 0;if(s=i>=a,!s)return r;if(r===ga())break;r=Bo(r,!1)}return!1}function sd(e,t,n,r){for(var i=0,a=0,s=e.children;a<s.length;){if(s[a].style.display!=="none"&&s[a]!==pt.ghost&&(r||s[a]!==pt.dragged)&&js(s[a],n.draggable,e,!1)){if(i===t)return s[a];i++}a++}return null}function VC(e,t){for(var n=e.lastElementChild;n&&(n===pt.ghost||Ze(n,"display")==="none"||t&&!Qg(n,t));)n=n.previousElementSibling;return n||null}function Kn(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==pt.clone&&(!t||Qg(e,t))&&n++;return n}function vR(e){var t=0,n=0,r=ga();if(e)do{var i=nu(e),a=i.a,s=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function Cye(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Bo(e,t){if(!e||!e.getBoundingClientRect)return ga();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ze(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ga();if(r||t)return n;r=!0}}while(n=n.parentNode);return ga()}function kye(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function e1(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Tf;function p4(e,t){return function(){if(!Tf){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Tf=setTimeout(function(){Tf=void 0},t)}}}function _ye(){clearTimeout(Tf),Tf=void 0}function m4(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function BC(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function yR(e,t){Ze(e,"position","absolute"),Ze(e,"top",t.top),Ze(e,"left",t.left),Ze(e,"width",t.width),Ze(e,"height",t.height)}function t1(e){Ze(e,"position",""),Ze(e,"top",""),Ze(e,"left",""),Ze(e,"width",""),Ze(e,"height","")}var Qr="Sortable"+new Date().getTime();function Tye(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Ze(i,"display")==="none"||i===pt.ghost)){e.push({target:i,rect:Mn(i)});var a=xa({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=nu(i,!0);s&&(a.top-=s.f,a.left-=s.e)}i.fromRect=a}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(Cye(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var a=!1,s=0;e.forEach(function(o){var l=0,u=o.target,c=u.fromRect,d=Mn(u),p=u.prevFromRect,h=u.prevToRect,g=o.rect,v=nu(u,!0);v&&(d.top-=v.f,d.left-=v.e),u.toRect=d,u.thisAnimationDuration&&e1(p,d)&&!e1(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=Pye(g,p,h,i.options)),e1(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=i.options.animation),i.animate(u,g,d,l)),l&&(a=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,a,s){if(s){Ze(r,"transition",""),Ze(r,"transform","");var o=nu(this.el),l=o&&o.a,u=o&&o.d,c=(i.left-a.left)/(l||1),d=(i.top-a.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,Ze(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=Iye(r),Ze(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),Ze(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ze(r,"transition",""),Ze(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function Iye(e){return e.offsetWidth}function Pye(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var qu=[],n1={initializeByDefault:!0},mm={mount:function(t){for(var n in n1)n1.hasOwnProperty(n)&&!(n in t)&&(t[n]=n1[n]);qu.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),qu.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var a=t+"Global";qu.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][a]&&n[s.pluginName][a](xa({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](xa({sortable:n},r)))})},initializePlugins:function(t,n,r,i){qu.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var u=new o(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,Ps(r,u.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s<"u"&&(t.options[a]=s)}},getEventProperties:function(t,n){var r={};return qu.forEach(function(i){typeof i.eventProperties=="function"&&Ps(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return qu.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(i=a.optionListeners[n].call(t[a.pluginName],r))}),i}};function af(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,s=e.toEl,o=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[Qr],!!t){var v,y=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!bo&&!pm?v=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(r,!0,!0)),v.to=s||n,v.from=o||n,v.item=i||n,v.clone=a,v.oldIndex=l,v.newIndex=u,v.oldDraggableIndex=c,v.newDraggableIndex=d,v.originalEvent=p,v.pullMode=h?h.lastPutMode:void 0;var S=xa(xa({},g),mm.getEventProperties(r,t));for(var w in S)v[w]=S[w];n&&n.dispatchEvent(v),y[b]&&y[b].call(t,v)}}var Rye=["evt"],_i=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,a=hye(r,Rye);mm.pluginEvent.bind(pt)(t,n,xa({dragEl:He,parentEl:Wn,ghostEl:Pt,rootEl:Ln,nextEl:wl,lastDownEl:Vh,cloneEl:Gn,cloneHidden:Fo,dragStarted:of,putSortable:Pr,activeSortable:pt.active,originalEvent:i,oldIndex:pc,oldDraggableIndex:If,newIndex:es,newDraggableIndex:Lo,hideGhostForTarget:y4,unhideGhostForTarget:b4,cloneNowHidden:function(){Fo=!0},cloneNowShown:function(){Fo=!1},dispatchSortableEvent:function(o){ui({sortable:n,name:o,originalEvent:i})}},a))};function ui(e){af(xa({putSortable:Pr,cloneEl:Gn,targetEl:He,rootEl:Ln,oldIndex:pc,oldDraggableIndex:If,newIndex:es,newDraggableIndex:Lo},e))}var He,Wn,Pt,Ln,wl,Vh,Gn,Fo,pc,es,If,Lo,Ym,Pr,nc=!1,Zg=!1,ev=[],gl,Ns,r1,i1,bR,SR,of,Ku,Pf,Rf=!1,Xm=!1,Bh,zr,s1=[],mw=!1,tv=[],Fy=typeof document<"u",Jm=c4,wR=pm||bo?"cssFloat":"float",Aye=Fy&&!Eye&&!c4&&"draggable"in document.createElement("div"),h4=(function(){if(Fy){if(bo)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),g4=function(t,n){var r=Ze(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=sd(t,0,n),s=sd(t,1,n),o=a&&Ze(a),l=s&&Ze(s),u=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Mn(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Mn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return a&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||u>=i&&r[wR]==="none"||s&&r[wR]==="none"&&u+c>i)?"vertical":"horizontal"},Oye=function(t,n,r){var i=r?t.left:t.top,a=r?t.right:t.bottom,s=r?t.width:t.height,o=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===o||a===l||i+s/2===o+u/2},Nye=function(t,n){var r;return ev.some(function(i){var a=i[Qr].options.emptyInsertThreshold;if(!(!a||VC(i))){var s=Mn(i),o=t>=s.left-a&&t<=s.right+a,l=n>=s.top-a&&n<=s.bottom+a;if(o&&l)return r=i}}),r},v4=function(t){function n(a,s){return function(o,l,u,c){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(a==null&&(s||d))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(o,l,u,c),s)(o,l,u,c);var p=(s?o:l).options.group.name;return a===!0||typeof a=="string"&&a===p||a.join&&a.indexOf(p)>-1}}var r={},i=t.group;(!i||$h(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},y4=function(){!h4&&Pt&&Ze(Pt,"display","none")},b4=function(){!h4&&Pt&&Ze(Pt,"display","")};Fy&&document.addEventListener("click",function(e){if(Zg)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Zg=!1,!1},!0);var vl=function(t){if(He){t=t.touches?t.touches[0]:t;var n=Nye(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[Qr]._onDragOver(r)}}},Dye=function(t){He&&He.parentNode[Qr]._isOutsideThisEl(t.target)};function pt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ps({},t),e[Qr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return g4(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,o){s.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:pt.supportPointer!==!1&&"PointerEvent"in window&&!_f,emptyInsertThreshold:5};mm.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);v4(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Aye,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Wt(e,"pointerdown",this._onTapStart):(Wt(e,"mousedown",this._onTapStart),Wt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Wt(e,"dragover",this),Wt(e,"dragenter",this)),ev.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ps(this,Tye())}pt.prototype={constructor:pt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ku=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,He):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,a=i.preventOnFilter,s=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(o||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(jye(r),!He&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&_f&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=js(l,i.draggable,r,!1),!(l&&l.animated)&&Vh!==l)){if(pc=Kn(l),If=Kn(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){ui({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),_i("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=js(u,d.trim(),r,!1),d)return ui({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),_i("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!js(u,i.handle,r,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function(t,n,r){var i=this,a=i.el,s=i.options,o=a.ownerDocument,l;if(r&&!He&&r.parentNode===a){var u=Mn(r);if(Ln=a,He=r,Wn=He.parentNode,wl=He.nextSibling,Vh=r,Ym=s.group,pt.dragged=He,gl={target:He,clientX:(n||t).clientX,clientY:(n||t).clientY},bR=gl.clientX-u.left,SR=gl.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,He.style["will-change"]="all",l=function(){if(_i("delayEnded",i,{evt:t}),pt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!mR&&i.nativeDraggable&&(He.draggable=!0),i._triggerDragStart(t,n),ui({sortable:i,name:"choose",originalEvent:t}),Vn(He,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){f4(He,c.trim(),a1)}),Wt(o,"dragover",vl),Wt(o,"mousemove",vl),Wt(o,"touchmove",vl),Wt(o,"mouseup",i._onDrop),Wt(o,"touchend",i._onDrop),Wt(o,"touchcancel",i._onDrop),mR&&this.nativeDraggable&&(this.options.touchStartThreshold=4,He.draggable=!0),_i("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(pm||bo))){if(pt.eventCanceled){this._onDrop();return}Wt(o,"mouseup",i._disableDelayedDrag),Wt(o,"touchend",i._disableDelayedDrag),Wt(o,"touchcancel",i._disableDelayedDrag),Wt(o,"mousemove",i._delayedDragTouchMoveHandler),Wt(o,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Wt(o,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){He&&a1(He),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ft(t,"mouseup",this._disableDelayedDrag),Ft(t,"touchend",this._disableDelayedDrag),Ft(t,"touchcancel",this._disableDelayedDrag),Ft(t,"mousemove",this._delayedDragTouchMoveHandler),Ft(t,"touchmove",this._delayedDragTouchMoveHandler),Ft(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Wt(document,"pointermove",this._onTouchMove):n?Wt(document,"touchmove",this._onTouchMove):Wt(document,"mousemove",this._onTouchMove):(Wt(He,"dragend",this),Wt(Ln,"dragstart",this._onDragStart));try{document.selection?Uh(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(nc=!1,Ln&&He){_i("dragStarted",this,{evt:n}),this.nativeDraggable&&Wt(document,"dragover",Dye);var r=this.options;!t&&Vn(He,r.dragClass,!1),Vn(He,r.ghostClass,!0),pt.active=this,t&&this._appendGhost(),ui({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ns){this._lastX=Ns.clientX,this._lastY=Ns.clientY,y4();for(var t=document.elementFromPoint(Ns.clientX,Ns.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ns.clientX,Ns.clientY),t!==n);)n=t;if(He.parentNode[Qr]._isOutsideThisEl(t),n)do{if(n[Qr]){var r=void 0;if(r=n[Qr]._onDragOver({clientX:Ns.clientX,clientY:Ns.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);b4()}},_onTouchMove:function(t){if(gl){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=Pt&&nu(Pt,!0),o=Pt&&s&&s.a,l=Pt&&s&&s.d,u=Jm&&zr&&vR(zr),c=(a.clientX-gl.clientX+i.x)/(o||1)+(u?u[0]-s1[0]:0)/(o||1),d=(a.clientY-gl.clientY+i.y)/(l||1)+(u?u[1]-s1[1]:0)/(l||1);if(!pt.active&&!nc){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Pt){s?(s.e+=c-(r1||0),s.f+=d-(i1||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");Ze(Pt,"webkitTransform",p),Ze(Pt,"mozTransform",p),Ze(Pt,"msTransform",p),Ze(Pt,"transform",p),r1=c,i1=d,Ns=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Pt){var t=this.options.fallbackOnBody?document.body:Ln,n=Mn(He,!0,Jm,!0,t),r=this.options;if(Jm){for(zr=t;Ze(zr,"position")==="static"&&Ze(zr,"transform")==="none"&&zr!==document;)zr=zr.parentNode;zr!==document.body&&zr!==document.documentElement?(zr===document&&(zr=ga()),n.top+=zr.scrollTop,n.left+=zr.scrollLeft):zr=ga(),s1=vR(zr)}Pt=He.cloneNode(!0),Vn(Pt,r.ghostClass,!1),Vn(Pt,r.fallbackClass,!0),Vn(Pt,r.dragClass,!0),Ze(Pt,"transition",""),Ze(Pt,"transform",""),Ze(Pt,"box-sizing","border-box"),Ze(Pt,"margin",0),Ze(Pt,"top",n.top),Ze(Pt,"left",n.left),Ze(Pt,"width",n.width),Ze(Pt,"height",n.height),Ze(Pt,"opacity","0.8"),Ze(Pt,"position",Jm?"absolute":"fixed"),Ze(Pt,"zIndex","100000"),Ze(Pt,"pointerEvents","none"),pt.ghost=Pt,t.appendChild(Pt),Ze(Pt,"transform-origin",bR/parseInt(Pt.style.width)*100+"% "+SR/parseInt(Pt.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,a=r.options;if(_i("dragStart",this,{evt:t}),pt.eventCanceled){this._onDrop();return}_i("setupClone",this),pt.eventCanceled||(Gn=BC(He),Gn.draggable=!1,Gn.style["will-change"]="",this._hideClone(),Vn(Gn,this.options.chosenClass,!1),pt.clone=Gn),r.cloneId=Uh(function(){_i("clone",r),!pt.eventCanceled&&(r.options.removeCloneOnHide||Ln.insertBefore(Gn,He),r._hideClone(),ui({sortable:r,name:"clone"}))}),!n&&Vn(He,a.dragClass,!0),n?(Zg=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Ft(document,"mouseup",r._onDrop),Ft(document,"touchend",r._onDrop),Ft(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(r,i,He)),Wt(document,"drop",r),Ze(He,"transform","translateZ(0)")),nc=!0,r._dragStartId=Uh(r._dragStarted.bind(r,n,t)),Wt(document,"selectstart",r),of=!0,_f&&Ze(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,a,s,o=this.options,l=o.group,u=pt.active,c=Ym===l,d=o.sort,p=Pr||u,h,g=this,v=!1;if(mw)return;function y(M,Y){_i(M,g,xa({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:s,dragRect:i,targetRect:a,canSort:d,fromSortable:p,target:r,completed:S,onMove:function(ie,Z){return Qm(Ln,n,He,i,ie,Mn(ie),t,Z)},changed:w},Y))}function b(){y("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function S(M){return y("dragOverCompleted",{insertion:M}),M&&(c?u._hideClone():u._showClone(g),g!==p&&(Vn(He,Pr?Pr.options.ghostClass:u.options.ghostClass,!1),Vn(He,o.ghostClass,!0)),Pr!==g&&g!==pt.active?Pr=g:g===pt.active&&Pr&&(Pr=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){y("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===He&&!He.animated||r===n&&!r.animated)&&(Ku=null),!o.dragoverBubble&&!t.rootEl&&r!==document&&(He.parentNode[Qr]._isOutsideThisEl(t.target),!M&&vl(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function w(){es=Kn(He),Lo=Kn(He,o.draggable),ui({sortable:g,name:"change",toEl:n,newIndex:es,newDraggableIndex:Lo,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=js(r,o.draggable,n,!0),y("dragOver"),pt.eventCanceled)return v;if(He.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return S(!1);if(Zg=!1,u&&!o.disabled&&(c?d||(s=Wn!==Ln):Pr===this||(this.lastPutMode=Ym.checkPull(this,u,He,t))&&l.checkPut(this,u,He,t))){if(h=this._getDirection(t,r)==="vertical",i=Mn(He),y("dragOverValid"),pt.eventCanceled)return v;if(s)return Wn=Ln,b(),this._hideClone(),y("revert"),pt.eventCanceled||(wl?Ln.insertBefore(He,wl):Ln.appendChild(He)),S(!0);var C=VC(n,o.draggable);if(!C||$ye(t,h,this)&&!C.animated){if(C===He)return S(!1);if(C&&n===t.target&&(r=C),r&&(a=Mn(r)),Qm(Ln,n,He,i,r,a,t,!!r)!==!1)return b(),n.appendChild(He),Wn=n,w(),S(!0)}else if(C&&Mye(t,h,this)){var P=sd(n,0,o,!0);if(P===He)return S(!1);if(r=P,a=Mn(r),Qm(Ln,n,He,i,r,a,t,!1)!==!1)return b(),n.insertBefore(He,P),Wn=n,w(),S(!0)}else if(r.parentNode===n){a=Mn(r);var k=0,R,T=He.parentNode!==n,I=!Oye(He.animated&&He.toRect||i,r.animated&&r.toRect||a,h),x=h?"top":"left",A=gR(r,"top","top")||gR(He,"top","top"),D=A?A.scrollTop:void 0;Ku!==r&&(R=a[x],Rf=!1,Xm=!I&&o.invertSwap||T),k=Vye(t,r,a,h,I?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Xm,Ku===r);var B;if(k!==0){var V=Kn(He);do V-=k,B=Wn.children[V];while(B&&(Ze(B,"display")==="none"||B===Pt))}if(k===0||B===r)return S(!1);Ku=r,Pf=k;var $=r.nextElementSibling,N=!1;N=k===1;var O=Qm(Ln,n,He,i,r,a,t,N);if(O!==!1)return(O===1||O===-1)&&(N=O===1),mw=!0,setTimeout(Fye,30),b(),N&&!$?n.appendChild(He):r.parentNode.insertBefore(He,N?$:r),A&&m4(A,0,D-A.scrollTop),Wn=He.parentNode,R!==void 0&&!Xm&&(Bh=Math.abs(R-Mn(r)[x])),w(),S(!0)}if(n.contains(He))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ft(document,"mousemove",this._onTouchMove),Ft(document,"touchmove",this._onTouchMove),Ft(document,"pointermove",this._onTouchMove),Ft(document,"dragover",vl),Ft(document,"mousemove",vl),Ft(document,"touchmove",vl)},_offUpEvents:function(){var t=this.el.ownerDocument;Ft(t,"mouseup",this._onDrop),Ft(t,"touchend",this._onDrop),Ft(t,"pointerup",this._onDrop),Ft(t,"touchcancel",this._onDrop),Ft(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(es=Kn(He),Lo=Kn(He,r.draggable),_i("drop",this,{evt:t}),Wn=He&&He.parentNode,es=Kn(He),Lo=Kn(He,r.draggable),pt.eventCanceled){this._nulling();return}nc=!1,Xm=!1,Rf=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),hw(this.cloneId),hw(this._dragStartId),this.nativeDraggable&&(Ft(document,"drop",this),Ft(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_f&&Ze(document.body,"user-select",""),Ze(He,"transform",""),t&&(of&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Pt&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),(Ln===Wn||Pr&&Pr.lastPutMode!=="clone")&&Gn&&Gn.parentNode&&Gn.parentNode.removeChild(Gn),He&&(this.nativeDraggable&&Ft(He,"dragend",this),a1(He),He.style["will-change"]="",of&&!nc&&Vn(He,Pr?Pr.options.ghostClass:this.options.ghostClass,!1),Vn(He,this.options.chosenClass,!1),ui({sortable:this,name:"unchoose",toEl:Wn,newIndex:null,newDraggableIndex:null,originalEvent:t}),Ln!==Wn?(es>=0&&(ui({rootEl:Wn,name:"add",toEl:Wn,fromEl:Ln,originalEvent:t}),ui({sortable:this,name:"remove",toEl:Wn,originalEvent:t}),ui({rootEl:Wn,name:"sort",toEl:Wn,fromEl:Ln,originalEvent:t}),ui({sortable:this,name:"sort",toEl:Wn,originalEvent:t})),Pr&&Pr.save()):es!==pc&&es>=0&&(ui({sortable:this,name:"update",toEl:Wn,originalEvent:t}),ui({sortable:this,name:"sort",toEl:Wn,originalEvent:t})),pt.active&&((es==null||es===-1)&&(es=pc,Lo=If),ui({sortable:this,name:"end",toEl:Wn,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){_i("nulling",this),Ln=He=Wn=Pt=wl=Gn=Vh=Fo=gl=Ns=of=es=Lo=pc=If=Ku=Pf=Pr=Ym=pt.dragged=pt.ghost=pt.clone=pt.active=null,tv.forEach(function(t){t.checked=!0}),tv.length=r1=i1=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":He&&(this._onDragOver(t),Lye(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,a=r.length,s=this.options;i<a;i++)n=r[i],js(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||Uye(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(a,s){var o=i.children[s];js(o,this.options.draggable,i,!1)&&(r[a]=o)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(i.removeChild(r[a]),i.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return js(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=mm.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&v4(r)},destroy:function(){_i("destroy",this);var t=this.el;t[Qr]=null,Ft(t,"mousedown",this._onTapStart),Ft(t,"touchstart",this._onTapStart),Ft(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ft(t,"dragover",this),Ft(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ev.splice(ev.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Fo){if(_i("hideClone",this),pt.eventCanceled)return;Ze(Gn,"display","none"),this.options.removeCloneOnHide&&Gn.parentNode&&Gn.parentNode.removeChild(Gn),Fo=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Fo){if(_i("showClone",this),pt.eventCanceled)return;He.parentNode==Ln&&!this.options.group.revertClone?Ln.insertBefore(Gn,He):wl?Ln.insertBefore(Gn,wl):Ln.appendChild(Gn),this.options.group.revertClone&&this.animate(He,Gn),Ze(Gn,"display",""),Fo=!1}}};function Lye(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Qm(e,t,n,r,i,a,s,o){var l,u=e[Qr],c=u.options.onMove,d;return window.CustomEvent&&!bo&&!pm?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=a||Mn(t),l.willInsertAfter=o,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function a1(e){e.draggable=!1}function Fye(){mw=!1}function Mye(e,t,n){var r=Mn(sd(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function $ye(e,t,n){var r=Mn(VC(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function Vye(e,t,n,r,i,a,s,o){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!s){if(o&&Bh<u*i){if(!Rf&&(Pf===1?l>c+u*a/2:l<d-u*a/2)&&(Rf=!0),Rf)p=!0;else if(Pf===1?l<c+Bh:l>d-Bh)return-Pf}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return Bye(t)}return p=p||s,p&&(l<c+u*a/2||l>d-u*a/2)?l>c+u/2?1:-1:0}function Bye(e){return Kn(He)<Kn(e)?1:-1}function Uye(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function jye(e){tv.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&tv.push(r)}}function Uh(e){return setTimeout(e,0)}function hw(e){return clearTimeout(e)}Fy&&Wt(document,"touchmove",function(e){(pt.active||nc)&&e.cancelable&&e.preventDefault()});pt.utils={on:Wt,off:Ft,css:Ze,find:f4,is:function(t,n){return!!js(t,n,t,!1)},extend:kye,throttle:p4,closest:js,toggleClass:Vn,clone:BC,index:Kn,nextTick:Uh,cancelNextTick:hw,detectDirection:g4,getChild:sd};pt.get=function(e){return e[Qr]};pt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(pt.utils=xa(xa({},pt.utils),r.utils)),mm.mount(r)})};pt.create=function(e,t){return new pt(e,t)};pt.version=wye;var or=[],lf,gw,vw=!1,o1,l1,nv,uf;function zye(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Wt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Wt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Wt(document,"touchmove",this._handleFallbackAutoScroll):Wt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Ft(document,"dragover",this._handleAutoScroll):(Ft(document,"pointermove",this._handleFallbackAutoScroll),Ft(document,"touchmove",this._handleFallbackAutoScroll),Ft(document,"mousemove",this._handleFallbackAutoScroll)),ER(),jh(),_ye()},nulling:function(){nv=gw=lf=vw=uf=o1=l1=null,or.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,a=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,o=document.elementFromPoint(a,s);if(nv=n,r||this.options.forceAutoScrollFallback||pm||bo||_f){u1(n,this.options,o,r);var l=Bo(o,!0);vw&&(!uf||a!==o1||s!==l1)&&(uf&&ER(),uf=setInterval(function(){var u=Bo(document.elementFromPoint(a,s),!0);u!==l&&(l=u,jh()),u1(n,i.options,u,r)},10),o1=a,l1=s)}else{if(!this.options.bubbleScroll||Bo(o,!0)===ga()){jh();return}u1(n,this.options,Bo(o,!1),!1)}}},Ps(e,{pluginName:"scroll",initializeByDefault:!0})}function jh(){or.forEach(function(e){clearInterval(e.pid)}),or=[]}function ER(){clearInterval(uf)}var u1=p4(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,o=t.scrollSpeed,l=ga(),u=!1,c;gw!==n&&(gw=n,jh(),lf=t.scroll,c=t.scrollFn,lf===!0&&(lf=Bo(n,!0)));var d=0,p=lf;do{var h=p,g=Mn(h),v=g.top,y=g.bottom,b=g.left,S=g.right,w=g.width,C=g.height,P=void 0,k=void 0,R=h.scrollWidth,T=h.scrollHeight,I=Ze(h),x=h.scrollLeft,A=h.scrollTop;h===l?(P=w<R&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),k=C<T&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(P=w<R&&(I.overflowX==="auto"||I.overflowX==="scroll"),k=C<T&&(I.overflowY==="auto"||I.overflowY==="scroll"));var D=P&&(Math.abs(S-i)<=s&&x+w<R)-(Math.abs(b-i)<=s&&!!x),B=k&&(Math.abs(y-a)<=s&&A+C<T)-(Math.abs(v-a)<=s&&!!A);if(!or[d])for(var V=0;V<=d;V++)or[V]||(or[V]={});(or[d].vx!=D||or[d].vy!=B||or[d].el!==h)&&(or[d].el=h,or[d].vx=D,or[d].vy=B,clearInterval(or[d].pid),(D!=0||B!=0)&&(u=!0,or[d].pid=setInterval((function(){r&&this.layer===0&&pt.active._onTouchMove(nv);var $=or[this.layer].vy?or[this.layer].vy*o:0,N=or[this.layer].vx?or[this.layer].vx*o:0;typeof c=="function"&&c.call(pt.dragged.parentNode[Qr],N,$,e,nv,or[this.layer].el)!=="continue"||m4(or[this.layer].el,N,$)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=Bo(p,!1)));vw=u}},30),S4=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||a;o();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function UC(){}UC.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=sd(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:S4};Ps(UC,{pluginName:"revertOnSpill"});function jC(){}jC.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:S4};Ps(jC,{pluginName:"removeOnSpill"});var ms;function Hye(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;ms=r},dragOverValid:function(n){var r=n.completed,i=n.target,a=n.onMove,s=n.activeSortable,o=n.changed,l=n.cancel;if(s.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var d=ms;a(i)!==!1?(Vn(i,c.swapClass,!0),ms=i):ms=null,d&&d!==ms&&Vn(d,c.swapClass,!1)}o(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,a=n.dragEl,s=i||this.sortable,o=this.options;ms&&Vn(ms,o.swapClass,!1),ms&&(o.swap||i&&i.options.swap)&&a!==ms&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),Wye(a,ms),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){ms=null}},Ps(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ms}}})}function Wye(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Kn(e),a=Kn(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}var Ct=[],Zi=[],Xd,Ds,Jd=!1,Ti=!1,Yu=!1,_n,Qd,Zm;function Gye(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?Wt(document,"pointerup",this._deselectMultiDrag):(Wt(document,"mouseup",this._deselectMultiDrag),Wt(document,"touchend",this._deselectMultiDrag)),Wt(document,"keydown",this._checkKeyDown),Wt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var s="";Ct.length&&Ds===t?Ct.forEach(function(o,l){s+=(l?", ":"")+o.textContent}):s=a.textContent,i.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;_n=r},delayEnded:function(){this.isMultiDrag=~Ct.indexOf(_n)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var a=0;a<Ct.length;a++)Zi.push(BC(Ct[a])),Zi[a].sortableIndex=Ct[a].sortableIndex,Zi[a].draggable=!1,Zi[a].style["will-change"]="",Vn(Zi[a],this.options.selectedClass,!1),Ct[a]===_n&&Vn(Zi[a],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,a=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ct.length&&Ds===r&&(xR(!0,i),a("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,a=n.cancel;this.isMultiDrag&&(xR(!1,i),Zi.forEach(function(s){Ze(s,"display","")}),r(),Zm=!1,a())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(Zi.forEach(function(s){Ze(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),Zm=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ds&&Ds.multiDrag._deselectMultiDrag(),Ct.forEach(function(r){r.sortableIndex=Kn(r)}),Ct=Ct.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),Yu=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Ct.forEach(function(s){s!==_n&&Ze(s,"position","absolute")});var a=Mn(_n,!1,!0,!0);Ct.forEach(function(s){s!==_n&&yR(s,a)}),Ti=!0,Jd=!0}i.animateAll(function(){Ti=!1,Jd=!1,r.options.animation&&Ct.forEach(function(s){t1(s)}),r.options.sort&&eh()})}},dragOver:function(n){var r=n.target,i=n.completed,a=n.cancel;Ti&&~Ct.indexOf(r)&&(i(!1),a())},revert:function(n){var r=n.fromSortable,i=n.rootEl,a=n.sortable,s=n.dragRect;Ct.length>1&&(Ct.forEach(function(o){a.addAnimationState({target:o,rect:Ti?Mn(o):s}),t1(o),o.fromRect=s,r.removeAnimationState(o)}),Ti=!1,qye(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,a=n.insertion,s=n.activeSortable,o=n.parentEl,l=n.putSortable,u=this.options;if(a){if(i&&s._hideClone(),Jd=!1,u.animation&&Ct.length>1&&(Ti||!i&&!s.options.sort&&!l)){var c=Mn(_n,!1,!0,!0);Ct.forEach(function(p){p!==_n&&(yR(p,c),o.appendChild(p))}),Ti=!0}if(!i)if(Ti||eh(),Ct.length>1){var d=Zm;s._showClone(r),s.options.animation&&!Zm&&d&&Zi.forEach(function(p){s.addAnimationState({target:p,rect:Qd}),p.fromRect=Qd,p.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,a=n.activeSortable;if(Ct.forEach(function(o){o.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){Qd=Ps({},r);var s=nu(_n,!0);Qd.top-=s.f,Qd.left-=s.e}},dragOverAnimationComplete:function(){Ti&&(Ti=!1,eh())},drop:function(n){var r=n.originalEvent,i=n.rootEl,a=n.parentEl,s=n.sortable,o=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,p=a.children;if(!Yu)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Vn(_n,d.selectedClass,!~Ct.indexOf(_n)),~Ct.indexOf(_n))Ct.splice(Ct.indexOf(_n),1),Xd=null,af({sortable:s,rootEl:i,name:"deselect",targetEl:_n});else{if(Ct.push(_n),af({sortable:s,rootEl:i,name:"select",targetEl:_n}),r.shiftKey&&Xd&&s.el.contains(Xd)){var h=Kn(Xd),g=Kn(_n);if(~h&&~g&&h!==g){var v,y;for(g>h?(y=h,v=g):(y=g,v=h+1);y<v;y++)~Ct.indexOf(p[y])||(Vn(p[y],d.selectedClass,!0),Ct.push(p[y]),af({sortable:s,rootEl:i,name:"select",targetEl:p[y]}))}}else Xd=_n;Ds=c}if(Yu&&this.isMultiDrag){if(Ti=!1,(a[Qr].options.sort||a!==i)&&Ct.length>1){var b=Mn(_n),S=Kn(_n,":not(."+this.options.selectedClass+")");if(!Jd&&d.animation&&(_n.thisAnimationDuration=null),c.captureAnimationState(),!Jd&&(d.animation&&(_n.fromRect=b,Ct.forEach(function(C){if(C.thisAnimationDuration=null,C!==_n){var P=Ti?Mn(C):b;C.fromRect=P,c.addAnimationState({target:C,rect:P})}})),eh(),Ct.forEach(function(C){p[S]?a.insertBefore(C,p[S]):a.appendChild(C),S++}),l===Kn(_n))){var w=!1;Ct.forEach(function(C){if(C.sortableIndex!==Kn(C)){w=!0;return}}),w&&o("update")}Ct.forEach(function(C){t1(C)}),c.animateAll()}Ds=c}(i===a||u&&u.lastPutMode!=="clone")&&Zi.forEach(function(C){C.parentNode&&C.parentNode.removeChild(C)})}},nullingGlobal:function(){this.isMultiDrag=Yu=!1,Zi.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Ft(document,"pointerup",this._deselectMultiDrag),Ft(document,"mouseup",this._deselectMultiDrag),Ft(document,"touchend",this._deselectMultiDrag),Ft(document,"keydown",this._checkKeyDown),Ft(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Yu<"u"&&Yu)&&Ds===this.sortable&&!(n&&js(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Ct.length;){var r=Ct[0];Vn(r,this.options.selectedClass,!1),Ct.shift(),af({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ps(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[Qr];!r||!r.options.multiDrag||~Ct.indexOf(n)||(Ds&&Ds!==r&&(Ds.multiDrag._deselectMultiDrag(),Ds=r),Vn(n,r.options.selectedClass,!0),Ct.push(n))},deselect:function(n){var r=n.parentNode[Qr],i=Ct.indexOf(n);!r||!r.options.multiDrag||!~i||(Vn(n,r.options.selectedClass,!1),Ct.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Ct.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var s;Ti&&a!==_n?s=-1:Ti?s=Kn(a,":not(."+n.options.selectedClass+")"):s=Kn(a),i.push({multiDragElement:a,index:s})}),{items:gye(Ct),clones:[].concat(Zi),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function qye(e,t){Ct.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function xR(e,t){Zi.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function eh(){Ct.forEach(function(e){e!==_n&&e.parentNode&&e.parentNode.removeChild(e)})}pt.mount(new zye);pt.mount(jC,UC);const Kye=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Gye,Sortable:pt,Swap:Hye,default:pt},Symbol.toStringTag,{value:"Module"})),Yye=vy(Kye);var Xye=Ah.exports,CR;function Jye(){return CR||(CR=1,(function(e,t){(function(r,i){e.exports=i(fye(),Yye)})(typeof self<"u"?self:Xye,function(n,r){return(function(i){var a={};function s(o){if(a[o])return a[o].exports;var l=a[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=a,s.d=function(o,l,u){s.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:u})},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s.t=function(o,l){if(l&1&&(o=s(o)),l&8||l&4&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),l&2&&typeof o!="string")for(var c in o)s.d(u,c,(function(d){return o[d]}).bind(null,c));return u},s.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(l,"a",l),l},s.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},s.p="",s(s.s="fb15")})({"00ee":(function(i,a,s){var o=s("b622"),l=o("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"}),"0366":(function(i,a,s){var o=s("1c0b");i.exports=function(l,u,c){if(o(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,p){return l.call(u,d,p)};case 3:return function(d,p,h){return l.call(u,d,p,h)}}return function(){return l.apply(u,arguments)}}}),"057f":(function(i,a,s){var o=s("fc6a"),l=s("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(p){try{return l(p)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?d(h):l(o(h))}}),"06cf":(function(i,a,s){var o=s("83ab"),l=s("d1e7"),u=s("5c6c"),c=s("fc6a"),d=s("c04e"),p=s("5135"),h=s("0cfb"),g=Object.getOwnPropertyDescriptor;a.f=o?g:function(y,b){if(y=c(y),b=d(b,!0),h)try{return g(y,b)}catch{}if(p(y,b))return u(!l.f.call(y,b),y[b])}}),"0cfb":(function(i,a,s){var o=s("83ab"),l=s("d039"),u=s("cc12");i.exports=!o&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,a,s){var o=s("23e7"),l=s("d58f").left,u=s("a640"),c=s("ae40"),d=u("reduce"),p=c("reduce",{1:0});o({target:"Array",proto:!0,forced:!d||!p},{reduce:function(g){return l(this,g,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,a,s){var o=s("c6b6"),l=s("9263");i.exports=function(u,c){var d=u.exec;if(typeof d=="function"){var p=d.call(u,c);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(o(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}}),"159b":(function(i,a,s){var o=s("da84"),l=s("fdbc"),u=s("17c2"),c=s("9112");for(var d in l){var p=o[d],h=p&&p.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}}),"17c2":(function(i,a,s){var o=s("b727").forEach,l=s("a640"),u=s("ae40"),c=l("forEach"),d=u("forEach");i.exports=!c||!d?function(h){return o(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,a,s){var o=s("d066");i.exports=o("document","documentElement")}),"1c0b":(function(i,a){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}}),"1c7e":(function(i,a,s){var o=s("b622"),l=o("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}i.exports=function(p,h){if(!h&&!u)return!1;var g=!1;try{var v={};v[l]=function(){return{next:function(){return{done:g=!0}}}},p(v)}catch{}return g}}),"1d80":(function(i,a){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}}),"1dde":(function(i,a,s){var o=s("d039"),l=s("b622"),u=s("2d00"),c=l("species");i.exports=function(d){return u>=51||!o(function(){var p=[],h=p.constructor={};return h[c]=function(){return{foo:1}},p[d](Boolean).foo!==1})}}),"23cb":(function(i,a,s){var o=s("a691"),l=Math.max,u=Math.min;i.exports=function(c,d){var p=o(c);return p<0?l(p+d,0):u(p,d)}}),"23e7":(function(i,a,s){var o=s("da84"),l=s("06cf").f,u=s("9112"),c=s("6eeb"),d=s("ce4e"),p=s("e893"),h=s("94ca");i.exports=function(g,v){var y=g.target,b=g.global,S=g.stat,w,C,P,k,R,T;if(b?C=o:S?C=o[y]||d(y,{}):C=(o[y]||{}).prototype,C)for(P in v){if(R=v[P],g.noTargetGet?(T=l(C,P),k=T&&T.value):k=C[P],w=h(b?P:y+(S?".":"#")+P,g.forced),!w&&k!==void 0){if(typeof R==typeof k)continue;p(R,k)}(g.sham||k&&k.sham)&&u(R,"sham",!0),c(C,P,R,g)}}}),"241c":(function(i,a,s){var o=s("ca84"),l=s("7839"),u=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(d){return o(d,u)}}),"25f0":(function(i,a,s){var o=s("6eeb"),l=s("825a"),u=s("d039"),c=s("ad6d"),d="toString",p=RegExp.prototype,h=p[d],g=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=d;(g||v)&&o(RegExp.prototype,d,function(){var b=l(this),S=String(b.source),w=b.flags,C=String(w===void 0&&b instanceof RegExp&&!("flags"in p)?c.call(b):w);return"/"+S+"/"+C},{unsafe:!0})}),"2ca0":(function(i,a,s){var o=s("23e7"),l=s("06cf").f,u=s("50c4"),c=s("5a34"),d=s("1d80"),p=s("ab13"),h=s("c430"),g="".startsWith,v=Math.min,y=p("startsWith"),b=!h&&!y&&!!(function(){var S=l(String.prototype,"startsWith");return S&&!S.writable})();o({target:"String",proto:!0,forced:!b&&!y},{startsWith:function(w){var C=String(d(this));c(w);var P=u(v(arguments.length>1?arguments[1]:void 0,C.length)),k=String(w);return g?g.call(C,k,P):C.slice(P,P+k.length)===k}})}),"2d00":(function(i,a,s){var o=s("da84"),l=s("342f"),u=o.process,c=u&&u.versions,d=c&&c.v8,p,h;d?(p=d.split("."),h=p[0]+p[1]):l&&(p=l.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=l.match(/Chrome\/(\d+)/),p&&(h=p[1]))),i.exports=h&&+h}),"342f":(function(i,a,s){var o=s("d066");i.exports=o("navigator","userAgent")||""}),"35a1":(function(i,a,s){var o=s("f5df"),l=s("3f8c"),u=s("b622"),c=u("iterator");i.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[o(d)]}}),"37e8":(function(i,a,s){var o=s("83ab"),l=s("9bf2"),u=s("825a"),c=s("df75");i.exports=o?Object.defineProperties:function(p,h){u(p);for(var g=c(h),v=g.length,y=0,b;v>y;)l.f(p,b=g[y++],h[b]);return p}}),"3bbe":(function(i,a,s){var o=s("861d");i.exports=function(l){if(!o(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(i,a,s){var o=s("6547").charAt,l=s("69f3"),u=s("7dd0"),c="String Iterator",d=l.set,p=l.getterFor(c);u(String,"String",function(h){d(this,{type:c,string:String(h),index:0})},function(){var g=p(this),v=g.string,y=g.index,b;return y>=v.length?{value:void 0,done:!0}:(b=o(v,y),g.index+=b.length,{value:b,done:!1})})}),"3f8c":(function(i,a){i.exports={}}),4160:(function(i,a,s){var o=s("23e7"),l=s("17c2");o({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(i,a,s){var o=s("da84");i.exports=o}),"44ad":(function(i,a,s){var o=s("d039"),l=s("c6b6"),u="".split;i.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object}),"44d2":(function(i,a,s){var o=s("b622"),l=s("7c73"),u=s("9bf2"),c=o("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),i.exports=function(p){d[c][p]=!0}}),"44e7":(function(i,a,s){var o=s("861d"),l=s("c6b6"),u=s("b622"),c=u("match");i.exports=function(d){var p;return o(d)&&((p=d[c])!==void 0?!!p:l(d)=="RegExp")}}),4930:(function(i,a,s){var o=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})}),"4d64":(function(i,a,s){var o=s("fc6a"),l=s("50c4"),u=s("23cb"),c=function(d){return function(p,h,g){var v=o(p),y=l(v.length),b=u(g,y),S;if(d&&h!=h){for(;y>b;)if(S=v[b++],S!=S)return!0}else for(;y>b;b++)if((d||b in v)&&v[b]===h)return d||b||0;return!d&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}}),"4de4":(function(i,a,s){var o=s("23e7"),l=s("b727").filter,u=s("1dde"),c=s("ae40"),d=u("filter"),p=c("filter");o({target:"Array",proto:!0,forced:!d||!p},{filter:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,a,s){var o=s("0366"),l=s("7b0b"),u=s("9bdd"),c=s("e95a"),d=s("50c4"),p=s("8418"),h=s("35a1");i.exports=function(v){var y=l(v),b=typeof this=="function"?this:Array,S=arguments.length,w=S>1?arguments[1]:void 0,C=w!==void 0,P=h(y),k=0,R,T,I,x,A,D;if(C&&(w=o(w,S>2?arguments[2]:void 0,2)),P!=null&&!(b==Array&&c(P)))for(x=P.call(y),A=x.next,T=new b;!(I=A.call(x)).done;k++)D=C?u(x,w,[I.value,k],!0):I.value,p(T,k,D);else for(R=d(y.length),T=new b(R);R>k;k++)D=C?w(y[k],k):y[k],p(T,k,D);return T.length=k,T}}),"4fad":(function(i,a,s){var o=s("23e7"),l=s("6f53").entries;o({target:"Object",stat:!0},{entries:function(c){return l(c)}})}),"50c4":(function(i,a,s){var o=s("a691"),l=Math.min;i.exports=function(u){return u>0?l(o(u),9007199254740991):0}}),5135:(function(i,a){var s={}.hasOwnProperty;i.exports=function(o,l){return s.call(o,l)}}),5319:(function(i,a,s){var o=s("d784"),l=s("825a"),u=s("7b0b"),c=s("50c4"),d=s("a691"),p=s("1d80"),h=s("8aa5"),g=s("14c3"),v=Math.max,y=Math.min,b=Math.floor,S=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g,C=function(P){return P===void 0?P:String(P)};o("replace",2,function(P,k,R,T){var I=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,x=T.REPLACE_KEEPS_$0,A=I?"$":"$0";return[function(V,$){var N=p(this),O=V?.[P];return O!==void 0?O.call(V,N,$):k.call(String(N),V,$)},function(B,V){if(!I&&x||typeof V=="string"&&V.indexOf(A)===-1){var $=R(k,B,this,V);if($.done)return $.value}var N=l(B),O=String(this),M=typeof V=="function";M||(V=String(V));var Y=N.global;if(Y){var X=N.unicode;N.lastIndex=0}for(var ie=[];;){var Z=g(N,O);if(Z===null||(ie.push(Z),!Y))break;var G=String(Z[0]);G===""&&(N.lastIndex=h(O,c(N.lastIndex),X))}for(var le="",ee=0,ue=0;ue<ie.length;ue++){Z=ie[ue];for(var W=String(Z[0]),ne=v(y(d(Z.index),O.length),0),J=[],ke=1;ke<Z.length;ke++)J.push(C(Z[ke]));var We=Z.groups;if(M){var Ve=[W].concat(J,ne,O);We!==void 0&&Ve.push(We);var H=String(V.apply(void 0,Ve))}else H=D(W,O,ne,J,We,V);ne>=ee&&(le+=O.slice(ee,ne)+H,ee=ne+W.length)}return le+O.slice(ee)}];function D(B,V,$,N,O,M){var Y=$+B.length,X=N.length,ie=w;return O!==void 0&&(O=u(O),ie=S),k.call(M,ie,function(Z,G){var le;switch(G.charAt(0)){case"$":return"$";case"&":return B;case"`":return V.slice(0,$);case"'":return V.slice(Y);case"<":le=O[G.slice(1,-1)];break;default:var ee=+G;if(ee===0)return Z;if(ee>X){var ue=b(ee/10);return ue===0?Z:ue<=X?N[ue-1]===void 0?G.charAt(1):N[ue-1]+G.charAt(1):Z}le=N[ee-1]}return le===void 0?"":le})}})}),5692:(function(i,a,s){var o=s("c430"),l=s("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,a,s){var o=s("d066"),l=s("241c"),u=s("7418"),c=s("825a");i.exports=o("Reflect","ownKeys")||function(p){var h=l.f(c(p)),g=u.f;return g?h.concat(g(p)):h}}),"5a34":(function(i,a,s){var o=s("44e7");i.exports=function(l){if(o(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(i,a){i.exports=function(s,o){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:o}}}),"5db7":(function(i,a,s){var o=s("23e7"),l=s("a2bf"),u=s("7b0b"),c=s("50c4"),d=s("1c0b"),p=s("65f0");o({target:"Array",proto:!0},{flatMap:function(g){var v=u(this),y=c(v.length),b;return d(g),b=p(v,0),b.length=l(b,v,v,y,0,1,g,arguments.length>1?arguments[1]:void 0),b}})}),6547:(function(i,a,s){var o=s("a691"),l=s("1d80"),u=function(c){return function(d,p){var h=String(l(d)),g=o(p),v=h.length,y,b;return g<0||g>=v?c?"":void 0:(y=h.charCodeAt(g),y<55296||y>56319||g+1===v||(b=h.charCodeAt(g+1))<56320||b>57343?c?h.charAt(g):y:c?h.slice(g,g+2):(y-55296<<10)+(b-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}}),"65f0":(function(i,a,s){var o=s("861d"),l=s("e8b5"),u=s("b622"),c=u("species");i.exports=function(d,p){var h;return l(d)&&(h=d.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:o(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(p===0?0:p)}}),"69f3":(function(i,a,s){var o=s("7f9a"),l=s("da84"),u=s("861d"),c=s("9112"),d=s("5135"),p=s("f772"),h=s("d012"),g=l.WeakMap,v,y,b,S=function(I){return b(I)?y(I):v(I,{})},w=function(I){return function(x){var A;if(!u(x)||(A=y(x)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return A}};if(o){var C=new g,P=C.get,k=C.has,R=C.set;v=function(I,x){return R.call(C,I,x),x},y=function(I){return P.call(C,I)||{}},b=function(I){return k.call(C,I)}}else{var T=p("state");h[T]=!0,v=function(I,x){return c(I,T,x),x},y=function(I){return d(I,T)?I[T]:{}},b=function(I){return d(I,T)}}i.exports={set:v,get:y,has:b,enforce:S,getterFor:w}}),"6eeb":(function(i,a,s){var o=s("da84"),l=s("9112"),u=s("5135"),c=s("ce4e"),d=s("8925"),p=s("69f3"),h=p.get,g=p.enforce,v=String(String).split("String");(i.exports=function(y,b,S,w){var C=w?!!w.unsafe:!1,P=w?!!w.enumerable:!1,k=w?!!w.noTargetGet:!1;if(typeof S=="function"&&(typeof b=="string"&&!u(S,"name")&&l(S,"name",b),g(S).source=v.join(typeof b=="string"?b:"")),y===o){P?y[b]=S:c(b,S);return}else C?!k&&y[b]&&(P=!0):delete y[b];P?y[b]=S:l(y,b,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||d(this)})}),"6f53":(function(i,a,s){var o=s("83ab"),l=s("df75"),u=s("fc6a"),c=s("d1e7").f,d=function(p){return function(h){for(var g=u(h),v=l(g),y=v.length,b=0,S=[],w;y>b;)w=v[b++],(!o||c.call(g,w))&&S.push(p?[w,g[w]]:g[w]);return S}};i.exports={entries:d(!0),values:d(!1)}}),"73d9":(function(i,a,s){var o=s("44d2");o("flatMap")}),7418:(function(i,a){a.f=Object.getOwnPropertySymbols}),"746f":(function(i,a,s){var o=s("428f"),l=s("5135"),u=s("e538"),c=s("9bf2").f;i.exports=function(d){var p=o.Symbol||(o.Symbol={});l(p,d)||c(p,d,{value:u.f(d)})}}),7839:(function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,a,s){var o=s("1d80");i.exports=function(l){return Object(o(l))}}),"7c73":(function(i,a,s){var o=s("825a"),l=s("37e8"),u=s("7839"),c=s("d012"),d=s("1be4"),p=s("cc12"),h=s("f772"),g=">",v="<",y="prototype",b="script",S=h("IE_PROTO"),w=function(){},C=function(I){return v+b+g+I+v+"/"+b+g},P=function(I){I.write(C("")),I.close();var x=I.parentWindow.Object;return I=null,x},k=function(){var I=p("iframe"),x="java"+b+":",A;return I.style.display="none",d.appendChild(I),I.src=String(x),A=I.contentWindow.document,A.open(),A.write(C("document.F=Object")),A.close(),A.F},R,T=function(){try{R=document.domain&&new ActiveXObject("htmlfile")}catch{}T=R?P(R):k();for(var I=u.length;I--;)delete T[y][u[I]];return T()};c[S]=!0,i.exports=Object.create||function(x,A){var D;return x!==null?(w[y]=o(x),D=new w,w[y]=null,D[S]=x):D=T(),A===void 0?D:l(D,A)}}),"7dd0":(function(i,a,s){var o=s("23e7"),l=s("9ed3"),u=s("e163"),c=s("d2bb"),d=s("d44e"),p=s("9112"),h=s("6eeb"),g=s("b622"),v=s("c430"),y=s("3f8c"),b=s("ae93"),S=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,C=g("iterator"),P="keys",k="values",R="entries",T=function(){return this};i.exports=function(I,x,A,D,B,V,$){l(A,x,D);var N=function(ue){if(ue===B&&ie)return ie;if(!w&&ue in Y)return Y[ue];switch(ue){case P:return function(){return new A(this,ue)};case k:return function(){return new A(this,ue)};case R:return function(){return new A(this,ue)}}return function(){return new A(this)}},O=x+" Iterator",M=!1,Y=I.prototype,X=Y[C]||Y["@@iterator"]||B&&Y[B],ie=!w&&X||N(B),Z=x=="Array"&&Y.entries||X,G,le,ee;if(Z&&(G=u(Z.call(new I)),S!==Object.prototype&&G.next&&(!v&&u(G)!==S&&(c?c(G,S):typeof G[C]!="function"&&p(G,C,T)),d(G,O,!0,!0),v&&(y[O]=T))),B==k&&X&&X.name!==k&&(M=!0,ie=function(){return X.call(this)}),(!v||$)&&Y[C]!==ie&&p(Y,C,ie),y[x]=ie,B)if(le={values:N(k),keys:V?ie:N(P),entries:N(R)},$)for(ee in le)(w||M||!(ee in Y))&&h(Y,ee,le[ee]);else o({target:x,proto:!0,forced:w||M},le);return le}}),"7f9a":(function(i,a,s){var o=s("da84"),l=s("8925"),u=o.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))}),"825a":(function(i,a,s){var o=s("861d");i.exports=function(l){if(!o(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(i,a,s){var o=s("d039");i.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,a,s){var o=s("c04e"),l=s("9bf2"),u=s("5c6c");i.exports=function(c,d,p){var h=o(d);h in c?l.f(c,h,u(0,p)):c[h]=p}}),"861d":(function(i,a){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}}),8875:(function(i,a,s){var o,l,u;(function(c,d){l=[],o=d,u=typeof o=="function"?o.apply(a,l):o,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(R){var p=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,g=p.exec(R.stack)||h.exec(R.stack),v=g&&g[1]||!1,y=g&&g[2]||!1,b=document.location.href.replace(document.location.hash,""),S,w,C,P=document.getElementsByTagName("script");v===b&&(S=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),C=S.replace(w,"$1").trim());for(var k=0;k<P.length;k++)if(P[k].readyState==="interactive"||P[k].src===v||v===b&&P[k].innerHTML&&P[k].innerHTML.trim()===C)return P[k];return null}}return c})}),8925:(function(i,a,s){var o=s("c6cd"),l=Function.toString;typeof o.inspectSource!="function"&&(o.inspectSource=function(u){return l.call(u)}),i.exports=o.inspectSource}),"8aa5":(function(i,a,s){var o=s("6547").charAt;i.exports=function(l,u,c){return u+(c?o(l,u).length:1)}}),"8bbf":(function(i,a){i.exports=n}),"90e3":(function(i,a){var s=0,o=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+o).toString(36)}}),9112:(function(i,a,s){var o=s("83ab"),l=s("9bf2"),u=s("5c6c");i.exports=o?function(c,d,p){return l.f(c,d,u(1,p))}:function(c,d,p){return c[d]=p,c}}),9263:(function(i,a,s){var o=s("ad6d"),l=s("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,d=u,p=(function(){var y=/a/,b=/b*/g;return u.call(y,"a"),u.call(b,"a"),y.lastIndex!==0||b.lastIndex!==0})(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,v=p||g||h;v&&(d=function(b){var S=this,w,C,P,k,R=h&&S.sticky,T=o.call(S),I=S.source,x=0,A=b;return R&&(T=T.replace("y",""),T.indexOf("g")===-1&&(T+="g"),A=String(b).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&b[S.lastIndex-1]!==`
|
|
96
|
-
`)&&(I="(?: "+I+")",A=" "+A,x++),C=new RegExp("^(?:"+I+")",T)),g&&(C=new RegExp("^"+I+"$(?!\\s)",T)),p&&(w=S.lastIndex),P=u.call(R?C:S,A),R?P?(P.input=P.input.slice(x),P[0]=P[0].slice(x),P.index=S.lastIndex,S.lastIndex+=P[0].length):S.lastIndex=0:p&&P&&(S.lastIndex=S.global?P.index+P[0].length:w),g&&P&&P.length>1&&c.call(P[0],C,function(){for(k=1;k<arguments.length-2;k++)arguments[k]===void 0&&(P[k]=void 0)}),P}),i.exports=d}),"94ca":(function(i,a,s){var o=s("d039"),l=/#|\.prototype\./,u=function(g,v){var y=d[c(g)];return y==h?!0:y==p?!1:typeof v=="function"?o(v):!!v},c=u.normalize=function(g){return String(g).replace(l,".").toLowerCase()},d=u.data={},p=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u}),"99af":(function(i,a,s){var o=s("23e7"),l=s("d039"),u=s("e8b5"),c=s("861d"),d=s("7b0b"),p=s("50c4"),h=s("8418"),g=s("65f0"),v=s("1dde"),y=s("b622"),b=s("2d00"),S=y("isConcatSpreadable"),w=9007199254740991,C="Maximum allowed index exceeded",P=b>=51||!l(function(){var I=[];return I[S]=!1,I.concat()[0]!==I}),k=v("concat"),R=function(I){if(!c(I))return!1;var x=I[S];return x!==void 0?!!x:u(I)},T=!P||!k;o({target:"Array",proto:!0,forced:T},{concat:function(x){var A=d(this),D=g(A,0),B=0,V,$,N,O,M;for(V=-1,N=arguments.length;V<N;V++)if(M=V===-1?A:arguments[V],R(M)){if(O=p(M.length),B+O>w)throw TypeError(C);for($=0;$<O;$++,B++)$ in M&&h(D,B,M[$])}else{if(B>=w)throw TypeError(C);h(D,B++,M)}return D.length=B,D}})}),"9bdd":(function(i,a,s){var o=s("825a");i.exports=function(l,u,c,d){try{return d?u(o(c)[0],c[1]):u(c)}catch(h){var p=l.return;throw p!==void 0&&o(p.call(l)),h}}}),"9bf2":(function(i,a,s){var o=s("83ab"),l=s("0cfb"),u=s("825a"),c=s("c04e"),d=Object.defineProperty;a.f=o?d:function(h,g,v){if(u(h),g=c(g,!0),u(v),l)try{return d(h,g,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(h[g]=v.value),h}}),"9ed3":(function(i,a,s){var o=s("ae93").IteratorPrototype,l=s("7c73"),u=s("5c6c"),c=s("d44e"),d=s("3f8c"),p=function(){return this};i.exports=function(h,g,v){var y=g+" Iterator";return h.prototype=l(o,{next:u(1,v)}),c(h,y,!1,!0),d[y]=p,h}}),"9f7f":(function(i,a,s){var o=s("d039");function l(u,c){return RegExp(u,c)}a.UNSUPPORTED_Y=o(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),a.BROKEN_CARET=o(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})}),a2bf:(function(i,a,s){var o=s("e8b5"),l=s("50c4"),u=s("0366"),c=function(d,p,h,g,v,y,b,S){for(var w=v,C=0,P=b?u(b,S,3):!1,k;C<g;){if(C in h){if(k=P?P(h[C],C,p):h[C],y>0&&o(k))w=c(d,p,k,l(k.length),w,y-1)-1;else{if(w>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[w]=k}w++}C++}return w};i.exports=c}),a352:(function(i,a){i.exports=r}),a434:(function(i,a,s){var o=s("23e7"),l=s("23cb"),u=s("a691"),c=s("50c4"),d=s("7b0b"),p=s("65f0"),h=s("8418"),g=s("1dde"),v=s("ae40"),y=g("splice"),b=v("splice",{ACCESSORS:!0,0:0,1:2}),S=Math.max,w=Math.min,C=9007199254740991,P="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!y||!b},{splice:function(R,T){var I=d(this),x=c(I.length),A=l(R,x),D=arguments.length,B,V,$,N,O,M;if(D===0?B=V=0:D===1?(B=0,V=x-A):(B=D-2,V=w(S(u(T),0),x-A)),x+B-V>C)throw TypeError(P);for($=p(I,V),N=0;N<V;N++)O=A+N,O in I&&h($,N,I[O]);if($.length=V,B<V){for(N=A;N<x-V;N++)O=N+V,M=N+B,O in I?I[M]=I[O]:delete I[M];for(N=x;N>x-V+B;N--)delete I[N-1]}else if(B>V)for(N=x-V;N>A;N--)O=N+V-1,M=N+B-1,O in I?I[M]=I[O]:delete I[M];for(N=0;N<B;N++)I[N+A]=arguments[N+2];return I.length=x-V+B,$}})}),a4d3:(function(i,a,s){var o=s("23e7"),l=s("da84"),u=s("d066"),c=s("c430"),d=s("83ab"),p=s("4930"),h=s("fdbf"),g=s("d039"),v=s("5135"),y=s("e8b5"),b=s("861d"),S=s("825a"),w=s("7b0b"),C=s("fc6a"),P=s("c04e"),k=s("5c6c"),R=s("7c73"),T=s("df75"),I=s("241c"),x=s("057f"),A=s("7418"),D=s("06cf"),B=s("9bf2"),V=s("d1e7"),$=s("9112"),N=s("6eeb"),O=s("5692"),M=s("f772"),Y=s("d012"),X=s("90e3"),ie=s("b622"),Z=s("e538"),G=s("746f"),le=s("d44e"),ee=s("69f3"),ue=s("b727").forEach,W=M("hidden"),ne="Symbol",J="prototype",ke=ie("toPrimitive"),We=ee.set,Ve=ee.getterFor(ne),H=Object[J],q=l.Symbol,ce=u("JSON","stringify"),oe=D.f,ge=B.f,xe=x.f,Ie=V.f,Ee=O("symbols"),_e=O("op-symbols"),he=O("string-to-symbol-registry"),Ue=O("symbol-to-string-registry"),Pe=O("wks"),qe=l.QObject,tt=!qe||!qe[J]||!qe[J].findChild,rt=d&&g(function(){return R(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a!=7})?function(ut,Je,lt){var Vt=oe(H,Je);Vt&&delete H[Je],ge(ut,Je,lt),Vt&&ut!==H&&ge(H,Je,Vt)}:ge,$t=function(ut,Je){var lt=Ee[ut]=R(q[J]);return We(lt,{type:ne,tag:ut,description:Je}),d||(lt.description=Je),lt},de=h?function(ut){return typeof ut=="symbol"}:function(ut){return Object(ut)instanceof q},pe=function(Je,lt,Vt){Je===H&&pe(_e,lt,Vt),S(Je);var Xt=P(lt,!0);return S(Vt),v(Ee,Xt)?(Vt.enumerable?(v(Je,W)&&Je[W][Xt]&&(Je[W][Xt]=!1),Vt=R(Vt,{enumerable:k(0,!1)})):(v(Je,W)||ge(Je,W,k(1,{})),Je[W][Xt]=!0),rt(Je,Xt,Vt)):ge(Je,Xt,Vt)},we=function(Je,lt){S(Je);var Vt=C(lt),Xt=T(Vt).concat(yt(Vt));return ue(Xt,function(Ir){(!d||Ge.call(Vt,Ir))&&pe(Je,Ir,Vt[Ir])}),Je},Ae=function(Je,lt){return lt===void 0?R(Je):we(R(Je),lt)},Ge=function(Je){var lt=P(Je,!0),Vt=Ie.call(this,lt);return this===H&&v(Ee,lt)&&!v(_e,lt)?!1:Vt||!v(this,lt)||!v(Ee,lt)||v(this,W)&&this[W][lt]?Vt:!0},at=function(Je,lt){var Vt=C(Je),Xt=P(lt,!0);if(!(Vt===H&&v(Ee,Xt)&&!v(_e,Xt))){var Ir=oe(Vt,Xt);return Ir&&v(Ee,Xt)&&!(v(Vt,W)&&Vt[W][Xt])&&(Ir.enumerable=!0),Ir}},vt=function(Je){var lt=xe(C(Je)),Vt=[];return ue(lt,function(Xt){!v(Ee,Xt)&&!v(Y,Xt)&&Vt.push(Xt)}),Vt},yt=function(Je){var lt=Je===H,Vt=xe(lt?_e:C(Je)),Xt=[];return ue(Vt,function(Ir){v(Ee,Ir)&&(!lt||v(H,Ir))&&Xt.push(Ee[Ir])}),Xt};if(p||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var Je=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),lt=X(Je),Vt=function(Xt){this===H&&Vt.call(_e,Xt),v(this,W)&&v(this[W],lt)&&(this[W][lt]=!1),rt(this,lt,k(1,Xt))};return d&&tt&&rt(H,lt,{configurable:!0,set:Vt}),$t(lt,Je)},N(q[J],"toString",function(){return Ve(this).tag}),N(q,"withoutSetter",function(ut){return $t(X(ut),ut)}),V.f=Ge,B.f=pe,D.f=at,I.f=x.f=vt,A.f=yt,Z.f=function(ut){return $t(ie(ut),ut)},d&&(ge(q[J],"description",{configurable:!0,get:function(){return Ve(this).description}}),c||N(H,"propertyIsEnumerable",Ge,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:q}),ue(T(Pe),function(ut){G(ut)}),o({target:ne,stat:!0,forced:!p},{for:function(ut){var Je=String(ut);if(v(he,Je))return he[Je];var lt=q(Je);return he[Je]=lt,Ue[lt]=Je,lt},keyFor:function(Je){if(!de(Je))throw TypeError(Je+" is not a symbol");if(v(Ue,Je))return Ue[Je]},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),o({target:"Object",stat:!0,forced:!p,sham:!d},{create:Ae,defineProperty:pe,defineProperties:we,getOwnPropertyDescriptor:at}),o({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:vt,getOwnPropertySymbols:yt}),o({target:"Object",stat:!0,forced:g(function(){A.f(1)})},{getOwnPropertySymbols:function(Je){return A.f(w(Je))}}),ce){var tn=!p||g(function(){var ut=q();return ce([ut])!="[null]"||ce({a:ut})!="{}"||ce(Object(ut))!="{}"});o({target:"JSON",stat:!0,forced:tn},{stringify:function(Je,lt,Vt){for(var Xt=[Je],Ir=1,$d;arguments.length>Ir;)Xt.push(arguments[Ir++]);if($d=lt,!(!b(lt)&&Je===void 0||de(Je)))return y(lt)||(lt=function(jy,Du){if(typeof $d=="function"&&(Du=$d.call(this,jy,Du)),!de(Du))return Du}),Xt[1]=lt,ce.apply(null,Xt)}})}q[J][ke]||$(q[J],ke,q[J].valueOf),le(q,ne),Y[W]=!0}),a630:(function(i,a,s){var o=s("23e7"),l=s("4df4"),u=s("1c7e"),c=!u(function(d){Array.from(d)});o({target:"Array",stat:!0,forced:c},{from:l})}),a640:(function(i,a,s){var o=s("d039");i.exports=function(l,u){var c=[][l];return!!c&&o(function(){c.call(null,u||function(){throw 1},1)})}}),a691:(function(i,a){var s=Math.ceil,o=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?o:s)(l)}}),ab13:(function(i,a,s){var o=s("b622"),l=o("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}}),ac1f:(function(i,a,s){var o=s("23e7"),l=s("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(i,a,s){var o=s("825a");i.exports=function(){var l=o(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}}),ae40:(function(i,a,s){var o=s("83ab"),l=s("d039"),u=s("5135"),c=Object.defineProperty,d={},p=function(h){throw h};i.exports=function(h,g){if(u(d,h))return d[h];g||(g={});var v=[][h],y=u(g,"ACCESSORS")?g.ACCESSORS:!1,b=u(g,0)?g[0]:p,S=u(g,1)?g[1]:void 0;return d[h]=!!v&&!l(function(){if(y&&!o)return!0;var w={length:-1};y?c(w,1,{enumerable:!0,get:p}):w[1]=1,v.call(w,b,S)})}}),ae93:(function(i,a,s){var o=s("e163"),l=s("9112"),u=s("5135"),c=s("b622"),d=s("c430"),p=c("iterator"),h=!1,g=function(){return this},v,y,b;[].keys&&(b=[].keys(),"next"in b?(y=o(o(b)),y!==Object.prototype&&(v=y)):h=!0),v==null&&(v={}),!d&&!u(v,p)&&l(v,p,g),i.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:h}}),b041:(function(i,a,s){var o=s("00ee"),l=s("f5df");i.exports=o?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(i,a,s){var o=s("83ab"),l=s("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,p="name";o&&!(p in u)&&l(u,p,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})}),b622:(function(i,a,s){var o=s("da84"),l=s("5692"),u=s("5135"),c=s("90e3"),d=s("4930"),p=s("fdbf"),h=l("wks"),g=o.Symbol,v=p?g:g&&g.withoutSetter||c;i.exports=function(y){return u(h,y)||(d&&u(g,y)?h[y]=g[y]:h[y]=v("Symbol."+y)),h[y]}}),b64b:(function(i,a,s){var o=s("23e7"),l=s("7b0b"),u=s("df75"),c=s("d039"),d=c(function(){u(1)});o({target:"Object",stat:!0,forced:d},{keys:function(h){return u(l(h))}})}),b727:(function(i,a,s){var o=s("0366"),l=s("44ad"),u=s("7b0b"),c=s("50c4"),d=s("65f0"),p=[].push,h=function(g){var v=g==1,y=g==2,b=g==3,S=g==4,w=g==6,C=g==5||w;return function(P,k,R,T){for(var I=u(P),x=l(I),A=o(k,R,3),D=c(x.length),B=0,V=T||d,$=v?V(P,D):y?V(P,0):void 0,N,O;D>B;B++)if((C||B in x)&&(N=x[B],O=A(N,B,I),g)){if(v)$[B]=O;else if(O)switch(g){case 3:return!0;case 5:return N;case 6:return B;case 2:p.call($,N)}else if(S)return!1}return w?-1:b||S?S:$}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}}),c04e:(function(i,a,s){var o=s("861d");i.exports=function(l,u){if(!o(l))return l;var c,d;if(u&&typeof(c=l.toString)=="function"&&!o(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!o(d=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!o(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,a){i.exports=!1}),c6b6:(function(i,a){var s={}.toString;i.exports=function(o){return s.call(o).slice(8,-1)}}),c6cd:(function(i,a,s){var o=s("da84"),l=s("ce4e"),u="__core-js_shared__",c=o[u]||l(u,{});i.exports=c}),c740:(function(i,a,s){var o=s("23e7"),l=s("b727").findIndex,u=s("44d2"),c=s("ae40"),d="findIndex",p=!0,h=c(d);d in[]&&Array(1)[d](function(){p=!1}),o({target:"Array",proto:!0,forced:p||!h},{findIndex:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}}),u(d)}),c8ba:(function(i,a){var s;s=(function(){return this})();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s}),c975:(function(i,a,s){var o=s("23e7"),l=s("4d64").indexOf,u=s("a640"),c=s("ae40"),d=[].indexOf,p=!!d&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),g=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:p||!h||!g},{indexOf:function(y){return p?d.apply(this,arguments)||0:l(this,y,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(i,a,s){var o=s("5135"),l=s("fc6a"),u=s("4d64").indexOf,c=s("d012");i.exports=function(d,p){var h=l(d),g=0,v=[],y;for(y in h)!o(c,y)&&o(h,y)&&v.push(y);for(;p.length>g;)o(h,y=p[g++])&&(~u(v,y)||v.push(y));return v}}),caad:(function(i,a,s){var o=s("23e7"),l=s("4d64").includes,u=s("44d2"),c=s("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!d},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")}),cc12:(function(i,a,s){var o=s("da84"),l=s("861d"),u=o.document,c=l(u)&&l(u.createElement);i.exports=function(d){return c?u.createElement(d):{}}}),ce4e:(function(i,a,s){var o=s("da84"),l=s("9112");i.exports=function(u,c){try{l(o,u,c)}catch{o[u]=c}return c}}),d012:(function(i,a){i.exports={}}),d039:(function(i,a){i.exports=function(s){try{return!!s()}catch{return!0}}}),d066:(function(i,a,s){var o=s("428f"),l=s("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,d){return arguments.length<2?u(o[c])||u(l[c]):o[c]&&o[c][d]||l[c]&&l[c][d]}}),d1e7:(function(i,a,s){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!o.call({1:2},1);a.f=u?function(d){var p=l(this,d);return!!p&&p.enumerable}:o}),d28b:(function(i,a,s){var o=s("746f");o("iterator")}),d2bb:(function(i,a,s){var o=s("825a"),l=s("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var u=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),u=c instanceof Array}catch{}return function(h,g){return o(h),l(g),u?d.call(h,g):h.__proto__=g,h}})():void 0)}),d3b7:(function(i,a,s){var o=s("00ee"),l=s("6eeb"),u=s("b041");o||l(Object.prototype,"toString",u,{unsafe:!0})}),d44e:(function(i,a,s){var o=s("9bf2").f,l=s("5135"),u=s("b622"),c=u("toStringTag");i.exports=function(d,p,h){d&&!l(d=h?d:d.prototype,c)&&o(d,c,{configurable:!0,value:p})}}),d58f:(function(i,a,s){var o=s("1c0b"),l=s("7b0b"),u=s("44ad"),c=s("50c4"),d=function(p){return function(h,g,v,y){o(g);var b=l(h),S=u(b),w=c(b.length),C=p?w-1:0,P=p?-1:1;if(v<2)for(;;){if(C in S){y=S[C],C+=P;break}if(C+=P,p?C<0:w<=C)throw TypeError("Reduce of empty array with no initial value")}for(;p?C>=0:w>C;C+=P)C in S&&(y=g(y,S[C],C,b));return y}};i.exports={left:d(!1),right:d(!0)}}),d784:(function(i,a,s){s("ac1f");var o=s("6eeb"),l=s("d039"),u=s("b622"),c=s("9263"),d=s("9112"),p=u("species"),h=!l(function(){var S=/./;return S.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(S,"$<a>")!=="7"}),g=(function(){return"a".replace(/./,"$0")==="$0"})(),v=u("replace"),y=(function(){return/./[v]?/./[v]("a","$0")==="":!1})(),b=!l(function(){var S=/(?:)/,w=S.exec;S.exec=function(){return w.apply(this,arguments)};var C="ab".split(S);return C.length!==2||C[0]!=="a"||C[1]!=="b"});i.exports=function(S,w,C,P){var k=u(S),R=!l(function(){var B={};return B[k]=function(){return 7},""[S](B)!=7}),T=R&&!l(function(){var B=!1,V=/a/;return S==="split"&&(V={},V.constructor={},V.constructor[p]=function(){return V},V.flags="",V[k]=/./[k]),V.exec=function(){return B=!0,null},V[k](""),!B});if(!R||!T||S==="replace"&&!(h&&g&&!y)||S==="split"&&!b){var I=/./[k],x=C(k,""[S],function(B,V,$,N,O){return V.exec===c?R&&!O?{done:!0,value:I.call(V,$,N)}:{done:!0,value:B.call($,V,N)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),A=x[0],D=x[1];o(String.prototype,S,A),o(RegExp.prototype,k,w==2?function(B,V){return D.call(B,this,V)}:function(B){return D.call(B,this)})}P&&d(RegExp.prototype[k],"sham",!0)}}),d81d:(function(i,a,s){var o=s("23e7"),l=s("b727").map,u=s("1dde"),c=s("ae40"),d=u("map"),p=c("map");o({target:"Array",proto:!0,forced:!d||!p},{map:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(i,a,s){(function(o){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof o=="object"&&o)||Function("return this")()}).call(this,s("c8ba"))}),dbb4:(function(i,a,s){var o=s("23e7"),l=s("83ab"),u=s("56ef"),c=s("fc6a"),d=s("06cf"),p=s("8418");o({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(g){for(var v=c(g),y=d.f,b=u(v),S={},w=0,C,P;b.length>w;)P=y(v,C=b[w++]),P!==void 0&&p(S,C,P);return S}})}),dbf1:(function(i,a,s){(function(o){s.d(a,"a",function(){return u});function l(){return typeof window<"u"?window.console:o.console}var u=l()}).call(this,s("c8ba"))}),ddb0:(function(i,a,s){var o=s("da84"),l=s("fdbc"),u=s("e260"),c=s("9112"),d=s("b622"),p=d("iterator"),h=d("toStringTag"),g=u.values;for(var v in l){var y=o[v],b=y&&y.prototype;if(b){if(b[p]!==g)try{c(b,p,g)}catch{b[p]=g}if(b[h]||c(b,h,v),l[v]){for(var S in u)if(b[S]!==u[S])try{c(b,S,u[S])}catch{b[S]=u[S]}}}}}),df75:(function(i,a,s){var o=s("ca84"),l=s("7839");i.exports=Object.keys||function(c){return o(c,l)}}),e01a:(function(i,a,s){var o=s("23e7"),l=s("83ab"),u=s("da84"),c=s("5135"),d=s("861d"),p=s("9bf2").f,h=s("e893"),g=u.Symbol;if(l&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var v={},y=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),R=this instanceof y?new g(k):k===void 0?g():g(k);return k===""&&(v[R]=!0),R};h(y,g);var b=y.prototype=g.prototype;b.constructor=y;var S=b.toString,w=String(g("test"))=="Symbol(test)",C=/^Symbol\((.*)\)[^)]+$/;p(b,"description",{configurable:!0,get:function(){var k=d(this)?this.valueOf():this,R=S.call(k);if(c(v,k))return"";var T=w?R.slice(7,-1):R.replace(C,"$1");return T===""?void 0:T}}),o({global:!0,forced:!0},{Symbol:y})}}),e163:(function(i,a,s){var o=s("5135"),l=s("7b0b"),u=s("f772"),c=s("e177"),d=u("IE_PROTO"),p=Object.prototype;i.exports=c?Object.getPrototypeOf:function(h){return h=l(h),o(h,d)?h[d]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?p:null}}),e177:(function(i,a,s){var o=s("d039");i.exports=!o(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(i,a,s){var o=s("fc6a"),l=s("44d2"),u=s("3f8c"),c=s("69f3"),d=s("7dd0"),p="Array Iterator",h=c.set,g=c.getterFor(p);i.exports=d(Array,"Array",function(v,y){h(this,{type:p,target:o(v),index:0,kind:y})},function(){var v=g(this),y=v.target,b=v.kind,S=v.index++;return!y||S>=y.length?(v.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:S,done:!1}:b=="values"?{value:y[S],done:!1}:{value:[S,y[S]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")}),e439:(function(i,a,s){var o=s("23e7"),l=s("d039"),u=s("fc6a"),c=s("06cf").f,d=s("83ab"),p=l(function(){c(1)}),h=!d||p;o({target:"Object",stat:!0,forced:h,sham:!d},{getOwnPropertyDescriptor:function(v,y){return c(u(v),y)}})}),e538:(function(i,a,s){var o=s("b622");a.f=o}),e893:(function(i,a,s){var o=s("5135"),l=s("56ef"),u=s("06cf"),c=s("9bf2");i.exports=function(d,p){for(var h=l(p),g=c.f,v=u.f,y=0;y<h.length;y++){var b=h[y];o(d,b)||g(d,b,v(p,b))}}}),e8b5:(function(i,a,s){var o=s("c6b6");i.exports=Array.isArray||function(u){return o(u)=="Array"}}),e95a:(function(i,a,s){var o=s("b622"),l=s("3f8c"),u=o("iterator"),c=Array.prototype;i.exports=function(d){return d!==void 0&&(l.Array===d||c[u]===d)}}),f5df:(function(i,a,s){var o=s("00ee"),l=s("c6b6"),u=s("b622"),c=u("toStringTag"),d=l((function(){return arguments})())=="Arguments",p=function(h,g){try{return h[g]}catch{}};i.exports=o?l:function(h){var g,v,y;return h===void 0?"Undefined":h===null?"Null":typeof(v=p(g=Object(h),c))=="string"?v:d?l(g):(y=l(g))=="Object"&&typeof g.callee=="function"?"Arguments":y}}),f772:(function(i,a,s){var o=s("5692"),l=s("90e3"),u=o("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}}),fb15:(function(i,a,s){if(s.r(a),typeof window<"u"){var o=window.document.currentScript;{var l=s("8875");o=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function c(de,pe,we){return pe in de?Object.defineProperty(de,pe,{value:we,enumerable:!0,configurable:!0,writable:!0}):de[pe]=we,de}function d(de,pe){var we=Object.keys(de);if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(de);pe&&(Ae=Ae.filter(function(Ge){return Object.getOwnPropertyDescriptor(de,Ge).enumerable})),we.push.apply(we,Ae)}return we}function p(de){for(var pe=1;pe<arguments.length;pe++){var we=arguments[pe]!=null?arguments[pe]:{};pe%2?d(Object(we),!0).forEach(function(Ae){c(de,Ae,we[Ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(we)):d(Object(we)).forEach(function(Ae){Object.defineProperty(de,Ae,Object.getOwnPropertyDescriptor(we,Ae))})}return de}function h(de){if(Array.isArray(de))return de}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function g(de,pe){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(de)))){var we=[],Ae=!0,Ge=!1,at=void 0;try{for(var vt=de[Symbol.iterator](),yt;!(Ae=(yt=vt.next()).done)&&(we.push(yt.value),!(pe&&we.length===pe));Ae=!0);}catch(tn){Ge=!0,at=tn}finally{try{!Ae&&vt.return!=null&&vt.return()}finally{if(Ge)throw at}}return we}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function v(de,pe){(pe==null||pe>de.length)&&(pe=de.length);for(var we=0,Ae=new Array(pe);we<pe;we++)Ae[we]=de[we];return Ae}function y(de,pe){if(de){if(typeof de=="string")return v(de,pe);var we=Object.prototype.toString.call(de).slice(8,-1);if(we==="Object"&&de.constructor&&(we=de.constructor.name),we==="Map"||we==="Set")return Array.from(de);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return v(de,pe)}}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
97
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(de,pe){return h(de)||g(de,pe)||y(de,pe)||b()}function w(de){if(Array.isArray(de))return v(de)}function C(de){if(typeof Symbol<"u"&&Symbol.iterator in Object(de))return Array.from(de)}function P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
98
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(de){return w(de)||C(de)||y(de)||P()}var R=s("a352"),T=s.n(R);function I(de){de.parentElement!==null&&de.parentElement.removeChild(de)}function x(de,pe,we){var Ae=we===0?de.children[0]:de.children[we-1].nextSibling;de.insertBefore(pe,Ae)}var A=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function D(de){var pe=Object.create(null);return function(Ae){var Ge=pe[Ae];return Ge||(pe[Ae]=de(Ae))}}var B=/-(\w)/g,V=D(function(de){return de.replace(B,function(pe,we){return we.toUpperCase()})});s("5db7"),s("73d9");var $=["Start","Add","Remove","Update","End"],N=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"],M=[O,$,N].flatMap(function(de){return de}).map(function(de){return"on".concat(de)}),Y={manage:O,manageAndEmit:$,emit:N};function X(de){return M.indexOf(de)!==-1}s("caad"),s("2ca0");var ie=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Z(de){return ie.includes(de)}function G(de){return["transition-group","TransitionGroup"].includes(de)}function le(de){return["id","class","role","style"].includes(de)||de.startsWith("data-")||de.startsWith("aria-")||de.startsWith("on")}function ee(de){return de.reduce(function(pe,we){var Ae=S(we,2),Ge=Ae[0],at=Ae[1];return pe[Ge]=at,pe},{})}function ue(de){var pe=de.$attrs,we=de.componentData,Ae=we===void 0?{}:we,Ge=ee(Object.entries(pe).filter(function(at){var vt=S(at,2),yt=vt[0];return vt[1],le(yt)}));return p(p({},Ge),Ae)}function W(de){var pe=de.$attrs,we=de.callBackBuilder,Ae=ee(ne(pe));Object.entries(we).forEach(function(at){var vt=S(at,2),yt=vt[0],tn=vt[1];Y[yt].forEach(function(ut){Ae["on".concat(ut)]=tn(ut)})});var Ge="[data-draggable]".concat(Ae.draggable||"");return p(p({},Ae),{},{draggable:Ge})}function ne(de){return Object.entries(de).filter(function(pe){var we=S(pe,2),Ae=we[0];return we[1],!le(Ae)}).map(function(pe){var we=S(pe,2),Ae=we[0],Ge=we[1];return[V(Ae),Ge]}).filter(function(pe){var we=S(pe,2),Ae=we[0];return we[1],!X(Ae)})}s("c740");function J(de,pe){if(!(de instanceof pe))throw new TypeError("Cannot call a class as a function")}function ke(de,pe){for(var we=0;we<pe.length;we++){var Ae=pe[we];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(de,Ae.key,Ae)}}function We(de,pe,we){return pe&&ke(de.prototype,pe),de}var Ve=function(pe){var we=pe.el;return we},H=function(pe,we){return pe.__draggable_context=we},q=function(pe){return pe.__draggable_context},ce=(function(){function de(pe){var we=pe.nodes,Ae=we.header,Ge=we.default,at=we.footer,vt=pe.root,yt=pe.realList;J(this,de),this.defaultNodes=Ge,this.children=[].concat(k(Ae),k(Ge),k(at)),this.externalComponent=vt.externalComponent,this.rootTransition=vt.transition,this.tag=vt.tag,this.realList=yt}return We(de,[{key:"render",value:function(we,Ae){var Ge=this.tag,at=this.children,vt=this._isRootComponent,yt=vt?{default:function(){return at}}:at;return we(Ge,Ae,yt)}},{key:"updated",value:function(){var we=this.defaultNodes,Ae=this.realList;we.forEach(function(Ge,at){H(Ve(Ge),{element:Ae[at],index:at})})}},{key:"getUnderlyingVm",value:function(we){return q(we)}},{key:"getVmIndexFromDomIndex",value:function(we,Ae){var Ge=this.defaultNodes,at=Ge.length,vt=Ae.children,yt=vt.item(we);if(yt===null)return at;var tn=q(yt);if(tn)return tn.index;if(at===0)return 0;var ut=Ve(Ge[0]),Je=k(vt).findIndex(function(lt){return lt===ut});return we<Je?0:at}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),de})(),oe=s("8bbf");function ge(de,pe){var we=de[pe];return we?we():[]}function xe(de){var pe=de.$slots,we=de.realList,Ae=de.getKey,Ge=we||[],at=["header","footer"].map(function(lt){return ge(pe,lt)}),vt=S(at,2),yt=vt[0],tn=vt[1],ut=pe.item;if(!ut)throw new Error("draggable element must have an item slot");var Je=Ge.flatMap(function(lt,Vt){return ut({element:lt,index:Vt}).map(function(Xt){return Xt.key=Ae(lt),Xt.props=p(p({},Xt.props||{}),{},{"data-draggable":!0}),Xt})});if(Je.length!==Ge.length)throw new Error("Item slot must have only one child");return{header:yt,footer:tn,default:Je}}function Ie(de){var pe=G(de),we=!Z(de)&&!pe;return{transition:pe,externalComponent:we,tag:we?Object(oe.resolveComponent)(de):pe?oe.TransitionGroup:de}}function Ee(de){var pe=de.$slots,we=de.tag,Ae=de.realList,Ge=de.getKey,at=xe({$slots:pe,realList:Ae,getKey:Ge}),vt=Ie(we);return new ce({nodes:at,root:vt,realList:Ae})}function _e(de,pe){var we=this;Object(oe.nextTick)(function(){return we.$emit(de.toLowerCase(),pe)})}function he(de){var pe=this;return function(we,Ae){if(pe.realList!==null)return pe["onDrag".concat(de)](we,Ae)}}function Ue(de){var pe=this,we=he.call(this,de);return function(Ae,Ge){we.call(pe,Ae,Ge),_e.call(pe,de,Ae)}}var Pe=null,qe={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(pe){return pe}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},tt=["update:modelValue","change"].concat(k([].concat(k(Y.manageAndEmit),k(Y.emit)).map(function(de){return de.toLowerCase()}))),rt=Object(oe.defineComponent)({name:"draggable",inheritAttrs:!1,props:qe,emits:tt,data:function(){return{error:!1}},render:function(){try{this.error=!1;var pe=this.$slots,we=this.$attrs,Ae=this.tag,Ge=this.componentData,at=this.realList,vt=this.getKey,yt=Ee({$slots:pe,tag:Ae,realList:at,getKey:vt});this.componentStructure=yt;var tn=ue({$attrs:we,componentData:Ge});return yt.render(oe.h,tn)}catch(ut){return this.error=!0,Object(oe.h)("pre",{style:{color:"red"}},ut.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&A.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var pe=this;if(!this.error){var we=this.$attrs,Ae=this.$el,Ge=this.componentStructure;Ge.updated();var at=W({$attrs:we,callBackBuilder:{manageAndEmit:function(tn){return Ue.call(pe,tn)},emit:function(tn){return _e.bind(pe,tn)},manage:function(tn){return he.call(pe,tn)}}}),vt=Ae.nodeType===1?Ae:Ae.parentElement;this._sortable=new T.a(vt,at),this.targetDomElement=vt,vt.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var pe=this.list;return pe||this.modelValue},getKey:function(){var pe=this.itemKey;return typeof pe=="function"?pe:function(we){return we[pe]}}},watch:{$attrs:{handler:function(pe){var we=this._sortable;we&&ne(pe).forEach(function(Ae){var Ge=S(Ae,2),at=Ge[0],vt=Ge[1];we.option(at,vt)})},deep:!0}},methods:{getUnderlyingVm:function(pe){return this.componentStructure.getUnderlyingVm(pe)||null},getUnderlyingPotencialDraggableComponent:function(pe){return pe.__draggable_component__},emitChanges:function(pe){var we=this;Object(oe.nextTick)(function(){return we.$emit("change",pe)})},alterList:function(pe){if(this.list){pe(this.list);return}var we=k(this.modelValue);pe(we),this.$emit("update:modelValue",we)},spliceList:function(){var pe=arguments,we=function(Ge){return Ge.splice.apply(Ge,k(pe))};this.alterList(we)},updatePosition:function(pe,we){var Ae=function(at){return at.splice(we,0,at.splice(pe,1)[0])};this.alterList(Ae)},getRelatedContextFromMoveEvent:function(pe){var we=pe.to,Ae=pe.related,Ge=this.getUnderlyingPotencialDraggableComponent(we);if(!Ge)return{component:Ge};var at=Ge.realList,vt={list:at,component:Ge};if(we!==Ae&&at){var yt=Ge.getUnderlyingVm(Ae)||{};return p(p({},yt),vt)}return vt},getVmIndexFromDomIndex:function(pe){return this.componentStructure.getVmIndexFromDomIndex(pe,this.targetDomElement)},onDragStart:function(pe){this.context=this.getUnderlyingVm(pe.item),pe.item._underlying_vm_=this.clone(this.context.element),Pe=pe.item},onDragAdd:function(pe){var we=pe.item._underlying_vm_;if(we!==void 0){I(pe.item);var Ae=this.getVmIndexFromDomIndex(pe.newIndex);this.spliceList(Ae,0,we);var Ge={element:we,newIndex:Ae};this.emitChanges({added:Ge})}},onDragRemove:function(pe){if(x(this.$el,pe.item,pe.oldIndex),pe.pullMode==="clone"){I(pe.clone);return}var we=this.context,Ae=we.index,Ge=we.element;this.spliceList(Ae,1);var at={element:Ge,oldIndex:Ae};this.emitChanges({removed:at})},onDragUpdate:function(pe){I(pe.item),x(pe.from,pe.item,pe.oldIndex);var we=this.context.index,Ae=this.getVmIndexFromDomIndex(pe.newIndex);this.updatePosition(we,Ae);var Ge={element:this.context.element,oldIndex:we,newIndex:Ae};this.emitChanges({moved:Ge})},computeFutureIndex:function(pe,we){if(!pe.element)return 0;var Ae=k(we.to.children).filter(function(yt){return yt.style.display!=="none"}),Ge=Ae.indexOf(we.related),at=pe.component.getVmIndexFromDomIndex(Ge),vt=Ae.indexOf(Pe)!==-1;return vt||!we.willInsertAfter?at:at+1},onDragMove:function(pe,we){var Ae=this.move,Ge=this.realList;if(!Ae||!Ge)return!0;var at=this.getRelatedContextFromMoveEvent(pe),vt=this.computeFutureIndex(at,pe),yt=p(p({},this.context),{},{futureIndex:vt}),tn=p(p({},pe),{},{relatedContext:at,draggedContext:yt});return Ae(tn,we)},onDragEnd:function(){Pe=null}}}),$t=rt;a.default=$t}),fb6a:(function(i,a,s){var o=s("23e7"),l=s("861d"),u=s("e8b5"),c=s("23cb"),d=s("50c4"),p=s("fc6a"),h=s("8418"),g=s("b622"),v=s("1dde"),y=s("ae40"),b=v("slice"),S=y("slice",{ACCESSORS:!0,0:0,1:2}),w=g("species"),C=[].slice,P=Math.max;o({target:"Array",proto:!0,forced:!b||!S},{slice:function(R,T){var I=p(this),x=d(I.length),A=c(R,x),D=c(T===void 0?x:T,x),B,V,$;if(u(I)&&(B=I.constructor,typeof B=="function"&&(B===Array||u(B.prototype))?B=void 0:l(B)&&(B=B[w],B===null&&(B=void 0)),B===Array||B===void 0))return C.call(I,A,D);for(V=new(B===void 0?Array:B)(P(D-A,0)),$=0;A<D;A++,$++)A in I&&h(V,$,I[A]);return V.length=$,V}})}),fc6a:(function(i,a,s){var o=s("44ad"),l=s("1d80");i.exports=function(u){return o(l(u))}}),fdbc:(function(i,a){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(i,a,s){var o=s("4930");i.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(Ah)),Ah.exports}var Qye=Jye();const Zye=gge(Qye),ebe={class:"mb-4 d-flex align-center ga-3"},tbe={class:"text-caption text-medium-emphasis"},nbe={class:"d-flex align-center justify-space-between",style:{width:"100%"}},rbe={class:"d-flex align-center"},ibe={class:"text-subtitle-1 font-weight-medium"},sbe={class:"text-caption text-medium-emphasis"},abe={class:"mb-4"},obe={class:"mb-4"},lbe={key:0,class:"mb-3"},ube={class:"d-flex flex-wrap ga-2"},cbe={key:1,class:"text-caption text-medium-emphasis mb-3"},dbe={key:0,class:"text-center pa-8 text-medium-emphasis"},fbe=Be({__name:"FloorSettings",setup(e){const t=ds(),n=Is(),r=wn(),i=en(),a=qt(Kt.AddOrUpdateFloorDialog),s=L(()=>n.floors),o=z([]);Oe(s,b=>{o.value=[...b]},{immediate:!0});const l=L({get:()=>o.value,set:b=>{o.value=b}});function u(b){return r.printers.find(w=>w.id===b)?.name||`Printer ${b}`}function c(b){t.push({path:"/printer-grid",query:{floor:b.toString()}})}async function d(){await a.openDialog()}async function p(b,S){S.trim()&&(await n.updateFloorName({floorId:b,name:S.trim()}),i.info("Floor name updated"))}async function h(b,S){!S||S<0||(await n.updateFloorOrder({floorId:b,order:S}),i.info("Floor order updated"))}async function g(b){confirm("Are you sure you want to delete this floor? Printers will not be deleted.")&&(await n.deleteFloor(b),i.info("Floor deleted"))}async function v(b,S){await n.deletePrinterFromFloor({floorId:b,printerId:S}),i.info("Printer removed from floor")}async function y(b){const{oldIndex:S,newIndex:w}=b;if(S===w)return;const C=[];if(o.value.forEach((P,k)=>{const R=k+1;P.order!==R&&C.push(n.updateFloorOrder({floorId:P.id,order:R}))}),C.length>0)try{await Promise.all(C),i.info("Floor order updated")}catch{o.value=[...s.value],i.error("Failed to update floor order")}}return(b,S)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[f(pr,{title:"Manage Floors",usecols:!1},{default:m(()=>[E("div",ebe,[f(te,{color:"primary","prepend-icon":"add",onClick:S[0]||(S[0]=w=>d())},{default:m(()=>[...S[2]||(S[2]=[_(" Create New Floor ",-1)])]),_:1}),E("div",tbe,[f(j,{size:"small",class:"mr-1"},{default:m(()=>[...S[3]||(S[3]=[_("drag_indicator",-1)])]),_:1}),S[4]||(S[4]=_(" Drag floors to reorder them ",-1))])]),f(re(Zye),{modelValue:l.value,"onUpdate:modelValue":S[1]||(S[1]=w=>l.value=w),"item-key":"id",handle:".drag-handle",onEnd:y},{item:m(({element:w})=>[f(Wc,{variant:"accordion",class:"mb-2"},{default:m(()=>[f(Hc,null,{default:m(()=>[f(zc,null,{default:m(()=>[E("div",nbe,[E("div",rbe,[f(j,{class:"drag-handle mr-2",style:{cursor:"move"}},{default:m(()=>[...S[5]||(S[5]=[_("drag_indicator",-1)])]),_:1}),f(j,{class:"mr-3"},{default:m(()=>[...S[6]||(S[6]=[_("layers",-1)])]),_:1}),E("div",null,[E("div",ibe,U(w.name),1),E("div",sbe," Floor Order #"+U(w.order)+" • "+U(w.printers.length)+" printer(s) assigned ",1)])])])]),_:2},1024),f(jc,null,{default:m(()=>[E("div",abe,[f(ct,null,{default:m(()=>[f(Re,{cols:"6"},{default:m(()=>[f(Et,{"model-value":w.name,label:"Floor Name",variant:"outlined",density:"compact","hide-details":"",onBlur:C=>p(w.id,C.target.value)},null,8,["model-value","onBlur"])]),_:2},1024),f(Re,{cols:"6"},{default:m(()=>[f(Et,{"model-value":w.order,label:"Floor Order",type:"number",variant:"outlined",density:"compact","hide-details":"",onBlur:C=>h(w.id,Number(C.target.value))},null,8,["model-value","onBlur"])]),_:2},1024)]),_:2},1024)]),E("div",obe,[f(te,{color:"primary",variant:"tonal","prepend-icon":"grid_on",onClick:C=>c(w.id)},{default:m(()=>[...S[7]||(S[7]=[_(" Manage Printers on Grid ",-1)])]),_:1},8,["onClick"])]),f(mt,{class:"my-3"}),w.printers.length>0?(F(),fe("div",lbe,[S[9]||(S[9]=E("div",{class:"text-subtitle-2 mb-2"},"Assigned Printers:",-1)),E("div",ube,[(F(!0),fe(Ne,null,Zt(w.printers,C=>(F(),Q(Ke,{key:C.printerId,closable:"",size:"small","onClick:close":P=>v(w.id,C.printerId)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...S[8]||(S[8]=[_("print",-1)])]),_:1}),_(" "+U(u(C.printerId))+" ",1),f(Ke,{size:"x-small",variant:"flat",class:"ml-1"},{default:m(()=>[_(U(C.x)+","+U(C.y),1)]),_:2},1024)]),_:2},1032,["onClick:close"]))),128))])])):(F(),fe("div",cbe," No printers assigned to this floor yet. ")),f(mt,{class:"my-3"}),f(te,{color:"error",variant:"outlined",size:"small","prepend-icon":"delete",onClick:C=>g(w.id)},{default:m(()=>[...S[10]||(S[10]=[_(" Delete Floor ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]),s.value.length?ae("",!0):(F(),fe("div",dbe,[f(j,{size:"large",class:"mb-2"},{default:m(()=>[...S[11]||(S[11]=[_("layers_clear",-1)])]),_:1}),S[12]||(S[12]=E("div",null,'No floors created yet. Click "Create New Floor" to get started.',-1))]))]),_:1})]),_:1})]),_:1}))}}),pbe=Be({__name:"EmergencyCommands",setup(e){const t=wn(),n=z(!1),r=L(()=>t.printers.some(u=>Ex(u.printerType))),i=L(()=>t.printers.every(u=>!u.enabled)),a=L(()=>t.printers.every(u=>!!u.enabled));async function s(u){if(confirm("Are you sure you want to toggle all printers?")){n.value=!0;try{await xf.batchToggleEnabled(t.printers.map(c=>c.id),u)}finally{n.value=!1}}}async function o(){if(confirm("Are you sure you want to connect all USBs?"))try{await xf.batchConnectUsb(t.printers.map(u=>u.id))}finally{n.value=!1}}async function l(){confirm("Are you sure you want to connect all sockets?")&&(n.value=!0,await xf.batchConnectSocket(t.printers.map(u=>u.id)),n.value=!1)}return(u,c)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[f(pr,{title:"Batch disabling",tooltip:"Disable all printers in batch (will not affect print)"},{default:m(()=>[f(te,{disabled:n.value||i.value,color:"primary",onClick:c[0]||(c[0]=d=>s(!1))},{default:m(()=>[...c[2]||(c[2]=[_(" Batch disable ",-1)])]),_:1},8,["disabled"]),n.value?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0),i.value?(F(),Q(j,{key:1,class:"ml-2",color:"warning"},{default:m(()=>[...c[3]||(c[3]=[_(" warning ",-1)])]),_:1})):ae("",!0)]),_:1}),f(mt),f(pr,{title:"Batch enabling",tooltip:"Enabling all printers in batch (will not affect print and it will skip printers in maintenance mode)"},{default:m(()=>[f(te,{disabled:n.value||a.value,color:"primary",onClick:c[1]||(c[1]=d=>s(!0))},{default:m(()=>[...c[4]||(c[4]=[_(" Batch enable ",-1)])]),_:1},8,["disabled"]),n.value?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0),a.value?(F(),Q(j,{key:1,class:"ml-2",color:"warning"},{default:m(()=>[...c[5]||(c[5]=[_(" warning ",-1)])]),_:1})):ae("",!0)]),_:1}),r.value?(F(),Q(mt,{key:0})):ae("",!0),r.value?(F(),Q(pr,{key:1,title:"Batch USB connect",tooltip:"Connect all USB devices (OctoPrint only)"},{default:m(()=>[f(te,{disabled:n.value||i.value,color:"primary",onClick:o},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...c[6]||(c[6]=[_("usb",-1)])]),_:1}),c[7]||(c[7]=_(" Connect USBs ",-1))]),_:1},8,["disabled"]),n.value?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0)]),_:1})):ae("",!0),f(pr,{title:"Batch Socket connect",tooltip:"Connect all Network Connections"},{default:m(()=>[f(te,{disabled:n.value||i.value,color:"primary",onClick:l},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...c[8]||(c[8]=[_("hub",-1)])]),_:1}),c[9]||(c[9]=_(" Refresh Network Connections ",-1))]),_:1},8,["disabled"]),n.value?(F(),Q(Qn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):ae("",!0)]),_:1})]),_:1})]),_:1}))}}),mbe={class:"text-center"},hbe=Be({__name:"NotFoundView",setup(e){const t=ds(),n=()=>{t.go(-1)};return(r,i)=>(F(),Q(Qi,null,{default:m(()=>[i[6]||(i[6]=E("h2",{class:"text-center mt-lg-12"},"This page was not found.",-1)),i[7]||(i[7]=E("h1",{class:"text-center"},": (",-1)),i[8]||(i[8]=E("br",null,null,-1)),E("h4",mbe,[f(te,{class:"align-center",color:"primary",to:"/",variant:"elevated"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...i[1]||(i[1]=[_("home",-1)])]),_:1}),i[2]||(i[2]=_(" Go home ",-1))]),_:1}),i[5]||(i[5]=E("span",{class:"pa-5"}," or ",-1)),f(te,{class:"align-center",variant:"elevated",onClick:i[0]||(i[0]=a=>n())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...i[3]||(i[3]=[_("arrow_left",-1)])]),_:1}),i[4]||(i[4]=_(" Go back ",-1))]),_:1})])]),_:1}))}}),gbe={key:0},vbe={key:1},ybe={key:2},bbe={key:3},Sbe={key:4},wbe=Be({__name:"PermissionDenied",setup(e){const t=Pd(),n=L(()=>t.query);return(r,i)=>(F(),Q(Qi,{"fill-height":"",fluid:""},{default:m(()=>[f(u3,{color:"primary"},{default:m(()=>[f(gu,{class:"text-uppercase text-white"},{default:m(()=>[...i[0]||(i[0]=[E("span",{class:"font-weight-light"}," FDM ",-1),E("strong",null," Monster ",-1)])]),_:1})]),_:1}),i[11]||(i[11]=E("img",{alt:"FDM Monster Background",class:"grid-bg-img align-content-center",src:tC,style:{opacity:"0.06"}},null,-1)),f(iC,{"align-center":"",column:"","justify-center":""},{default:m(()=>[f($e,{class:"flex align-center justify-center pa-lg-16 pa-sm-10",style:{width:"80%"}},{default:m(()=>[f(ot,null,{default:m(()=>[f(j,{class:"mr-4",size:"50"},{default:m(()=>[...i[1]||(i[1]=[_(" lock ",-1)])]),_:1}),i[2]||(i[2]=E("h3",null,"Permission Denied",-1))]),_:1}),f(Yv,{class:"mt-1"},{default:m(()=>[...i[3]||(i[3]=[_(" You do not have permission to access a specific resource on this page. ",-1)])]),_:1}),n.value?(F(),Q(Ye,{key:0},{default:m(()=>[n.value.page?(F(),fe("div",gbe,[i[4]||(i[4]=_(" Page: ",-1)),E("strong",null,U(n.value?.page),1)])):ae("",!0),n.value.permissions?(F(),fe("div",vbe,[i[5]||(i[5]=_(" Required permission(s): ",-1)),(F(!0),fe(Ne,null,Zt(n.value.permissions,a=>(F(),fe("strong",{key:a},U(a),1))),128))])):ae("",!0),n.value.roles?(F(),fe("div",ybe,[i[6]||(i[6]=_(" Usable roles: ",-1)),E("strong",null,U(n.value.roles?.join(", ")),1)])):ae("",!0),n.value.url?(F(),fe("div",bbe,[i[7]||(i[7]=_(" Problematic API path: ",-1)),E("strong",null,U(n.value.url),1)])):ae("",!0),n.value.error?(F(),fe("div",Sbe,[i[8]||(i[8]=_(" Error: ",-1)),E("strong",null,U(n.value.error),1)])):ae("",!0)]),_:1})):ae("",!0),f(rn,{class:"mt-6"},{default:m(()=>[f(te,{class:"align-center",color:"primary",to:"/",variant:"elevated"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...i[9]||(i[9]=[_("home",-1)])]),_:1}),i[10]||(i[10]=_(" Go home ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),Ebe=Be({__name:"Logo",setup(e){return(t,n)=>(F(),Q(ri,{src:re(Xx),class:"shrink mr-1 pt-3 ml-1",contain:"",style:{opacity:"0.85"},width:"150"},null,8,["src"]))}}),xbe=Be({__name:"LoginForm",setup(e){const t=_s(),n=z(""),r=z(""),i=z(!1),a=z(""),s=ds(),o=Pd(),l=z(!1),u=pi("auth:login"),c=en(),d=L(()=>(r.value??"")?.length<3||(a.value??"").length<3);Nt(async()=>{if(t.loadTokens(),await t.checkAuthenticationRequirements(),t.loginRequired===!1){if(console.debug("LoginView, no login required, checking redirect:",o.query.redirect),o.query.redirect)return console.debug("LoginView, redirecting to:",o.query.redirect),u.emit(!0),await g();console.debug("LoginView, no redirect query, emitting login event only"),u.emit(!0);return}if(!t.hasRefreshToken)return;await t.verifyOrRefreshLoginOnceOrLogout()&&await g()});async function p(){return await s.push({name:fn.Registration})}async function h(){try{l.value=!0,await t.login(r.value,a.value),t.lastLogoutReason=null,a.value="",l.value=!1}catch(v){if(l.value=!1,v?.response?.status===401){a.value="";const y=v?.response?.data?.reasonCode,b=Yw(y);y===Ni.AccountNotVerified?c.error(b,"Please ask your administrator to verify your account and try again."):y===Ni.PasswordChangeRequired&&c.error(b,"Your password needs to be changed. This feature is sadly not finished"),n.value=b;return}c.openErrorMessage({title:"Error logging in",subtitle:"Please test your connection and try again."}),n.value="Error logging in - status code "+v?.response?.status,a.value="";return}return n.value="",u.emit(!0),await g()}async function g(){const v=o.query.redirect;if(v){console.debug("[LoginForm] Redirecting to ",v),await s.push({path:v});return}else{console.debug("[LoginForm] Redirecting to home"),await s.push({name:fn.Home});return}}return(v,y)=>(F(),Q($e,{class:"pa-4",elevation:"10",style:{"border-radius":"10px"}},{default:m(()=>[f(Ye,null,{default:m(()=>[f(oy,null,{default:m(()=>[y[7]||(y[7]=E("label",null," Username ",-1)),f(Et,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=b=>r.value=b),"prepend-icon":"person",autofocus:"",label:"Username",name:"login",type:"text",variant:"underlined",onKeyup:y[1]||(y[1]=Ul(b=>d.value||h(),["enter"]))},null,8,["modelValue"]),f(Et,{modelValue:a.value,"onUpdate:modelValue":y[2]||(y[2]=b=>a.value=b),"append-inner-icon":i.value?"visibility_off":"visibility","onClick:appendInner":y[3]||(y[3]=b=>i.value=!i.value),type:i.value?"text":"password",label:"Password",name:"password",password:"","prepend-icon":"lock",variant:"underlined",onKeyup:y[4]||(y[4]=Ul(b=>d.value||h(),["enter"]))},null,8,["modelValue","append-inner-icon","type"]),n.value?(F(),Q(kt,{key:0,class:"mt-6",color:"error",density:"compact",variant:"outlined"},{default:m(()=>[_(U(n.value),1)]),_:1})):ae("",!0),re(t).lastLogoutReason?(F(),Q(kt,{key:1,class:"mt-6",color:"error-darken-1",density:"compact",variant:"outlined"},{default:m(()=>[_(" Reason for automatic logout: "+U(re(t).lastLogoutReason),1)]),_:1})):ae("",!0)]),_:1})]),_:1}),f(rn,null,{default:m(()=>[f(te,{loading:l.value,class:"pa-4",color:"primary",size:"lg",variant:"flat",style:{width:"100%"},onClick:y[5]||(y[5]=b=>h())},{default:m(()=>[...y[8]||(y[8]=[_(" Login ",-1)])]),_:1},8,["loading"])]),_:1}),f(rn,null,{default:m(()=>[f(te,{disabled:!re(t).registration,class:"pa-4",size:"lg",variant:"flat",style:{width:"100%"},onClick:y[6]||(y[6]=b=>p())},{default:m(()=>[_(" Register new account "+U(re(t).registration?"":"(not enabled)")+" ",1),f(j,{class:"pl-5",icon:"right"})]),_:1},8,["disabled"])]),_:1})]),_:1}))}}),Cbe={class:"d-flex align-center",style:{"min-height":"calc(100vh - 148px)"}},kbe={class:"pt-6 pl-6 d-flex flex-column align-center"},_be=Be({__name:"LoginView",setup(e){return(t,n)=>{const r=Ebe;return F(),Q(ct,{class:"position-relative","no-gutters":""},{default:m(()=>[f(Re,{cols:"12",lg:"12"},{default:m(()=>[f(Qi,null,{default:m(()=>[E("div",Cbe,[f(ct,{justify:"center",class:"align-content-center"},{default:m(()=>[E("div",kbe,[f(r),f(gu,{class:"text-uppercase text-red"},{default:m(()=>[...n[0]||(n[0]=[E("strong",null," FDM ",-1),E("strong",null," Monster ",-1)])]),_:1}),f(gu,{class:"mt-lg-6 mt-sm-5 mb-md-5"},{default:m(()=>[...n[1]||(n[1]=[_(" Login to your account ",-1)])]),_:1}),f(Yv,{class:"text-grey mb-md-5"},{default:m(()=>[...n[2]||(n[2]=[_(" Welcome back! Please enter your details ",-1)])]),_:1})]),f(Re,{cols:"12",md:"12"},{default:m(()=>[f(xbe,{class:"login-card"})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1})}}}),Tbe={class:"d-flex flex-column align-center"},Ibe=Be({__name:"RegistrationForm",setup(e){const t=_s(),n=ds(),r=z(""),i=z(""),a=z(!1),s=z(!1),o=z(""),l=z(""),u=z(!1),c=en();async function d(){return await n.push({name:fn.Login})}const p=L(()=>(i.value??"")?.length<3||(o.value??"").length<3||o.value!=l.value);Nt(async()=>{await t.logout(),await t.checkAuthenticationRequirements(),t.registration||(c.info("Registration is disabled, please contact your administrator"),await n.push({name:fn.Login}))});async function h(){try{u.value=!0,await yl.registerAccount(i.value,o.value),u.value=!1}catch(g){if(u.value=!1,g?.response?.status===401){r.value="Invalid credentials";return}c.openErrorMessage({title:"Error logging in",subtitle:"Please test your connection and try again."});return}r.value="",c.info("Account created, please login"),await d()}return(g,v)=>{const y=Cc("v-flex");return F(),Q(Qi,{"fill-height":"",fluid:""},{default:m(()=>[f(iC,{"align-content-center":"","justify-center":""},{default:m(()=>[f(y,{class:"d-flex flex-column align-content-center",md4:"",sm8:"",style:{"max-width":"450px","margin-top":"10%"},xs12:""},{default:m(()=>[E("div",Tbe,[f(ri,{src:require("@/assets/logo.png"),class:"shrink mr-1 pt-3 ml-1",contain:"",style:{opacity:"0.85"},width:"150"},null,8,["src"]),f(gu,{class:"text-uppercase text-red"},{default:m(()=>[...v[8]||(v[8]=[E("strong",null," FDM ",-1),E("strong",null," Monster ",-1)])]),_:1}),f(gu,{class:"mt-lg-6 mt-sm-5"},{default:m(()=>[...v[9]||(v[9]=[_(" Register new account ",-1)])]),_:1}),f(Yv,{class:"text-grey"},{default:m(()=>[...v[10]||(v[10]=[_(" Welcome! Please register your guest account ",-1)])]),_:1})]),f($e,{class:"elevation-4 pa-4",style:{"border-radius":"10px"}},{default:m(()=>[f(Ye,null,{default:m(()=>[f(oy,null,{default:m(()=>[v[11]||(v[11]=E("label",null," Username ",-1)),f(Et,{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=b=>i.value=b),rules:[b=>!!b||"Username is required",b=>(b?.length??0)>=3||"Username must be of length 3 or greater",b=>!b.toLowerCase().includes("admin")||"Username may not contain the word admin",b=>!b.toLowerCase().includes("root")||"Username may not contain the word root",b=>b.toLowerCase()!=="demo"||"Username may not equal the word demo"],autofocus:"",name:"login",label:"Username","prepend-icon":"person",type:"text"},null,8,["modelValue","rules"]),f(Et,{id:"password",modelValue:o.value,"onUpdate:modelValue":v[1]||(v[1]=b=>o.value=b),"append-icon":a.value?"visibility":"visibility_off",type:a.value?"text":"password",label:"Password",name:"password",rules:[b=>!!b||"Password is required",b=>!!b&&b?.length>=8||"Password must be of length 8 or greater"],password:"","prepend-icon":"lock","onClick:append":v[2]||(v[2]=b=>a.value=!a.value)},null,8,["modelValue","append-icon","type","rules"]),f(Et,{id:"password",modelValue:l.value,"onUpdate:modelValue":v[3]||(v[3]=b=>l.value=b),"append-icon":s.value?"visibility":"visibility_off",type:s.value?"text":"password",rules:[b=>!!b||"Repeated password is required",b=>b===o.value||"Passwords are not equal"],label:"Repeated Password",name:"password",password:"","prepend-icon":"lock","onClick:append":v[4]||(v[4]=b=>s.value=!s.value),onKeyup:v[5]||(v[5]=Ul(b=>p.value||h(),["enter"]))},null,8,["modelValue","append-icon","type","rules"]),r.value?(F(),Q(kt,{key:0,class:"mt-6",color:"error",density:"compact",variant:"outlined"},{default:m(()=>[_(U(r.value),1)]),_:1})):ae("",!0)]),_:1})]),_:1}),f(rn,null,{default:m(()=>[f(te,{loading:u.value,class:"pa-4",color:"primary",size:"large",style:{width:"100%"},onClick:v[6]||(v[6]=b=>h())},{default:m(()=>[...v[12]||(v[12]=[_(" Register account ",-1)])]),_:1},8,["loading"])]),_:1}),f(rn,null,{default:m(()=>[f(te,{style:{width:"100%"},class:"pa-4",size:"large",onClick:v[7]||(v[7]=b=>d())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...v[13]||(v[13]=[_("arrow_left",-1)])]),_:1}),v[14]||(v[14]=_("Back to Login ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}}),Pbe=Be({__name:"RegistrationView",setup(e){return(t,n)=>(F(),Q(Qi,{"fill-height":"",fluid:""},{default:m(()=>[f(iC,{"align-center":"","justify-center":""},{default:m(()=>[f(Ibe)]),_:1})]),_:1}))}}),Rbe={class:"camera-grid-view"},Abe={class:"pa-4"},Obe={class:"d-flex align-center ga-2"},Nbe={class:"pa-4"},Dbe={key:0,class:"d-flex justify-center align-center py-12"},Lbe={class:"empty-tile-content"},Fbe={class:"flex-grow-1 text-truncate"},Mbe={class:"d-flex align-center gap-2 mb-1"},$be={class:"text-subtitle-2 font-weight-bold text-truncate"},Vbe={key:0,class:"text-caption text-medium-emphasis text-truncate"},Bbe={class:"camera-stream-container"},Ube=["src","onError","onLoad"],jbe={key:1,class:"camera-loading"},zbe={key:2,class:"camera-unavailable"},Hbe=Be({__name:"CameraGridView",setup(e){const t=Pd(),n=wn(),r=qt(Kt.AddOrUpdateCameraDialog),i=sm(),{selectedTags:a,selectedPrinterTypes:s,tags:o,tagsWithPrinters:l,loadTags:u}=om(),c=z(""),d=z(null),p=z(!1),h=An({}),g=An({});Nt(async()=>{await u();const $=t.query.printer;$&&(d.value=Number($))});const y=Id({queryKey:["cameraStream"],queryFn:async()=>(await mp.listCameraStreams()).map(N=>({printer:n.printers.find(O=>O.id===N.printerId),cameraStream:N}))}),b=Oie({mutationFn:$=>mp.deleteCameraStream($),onSuccess:()=>y.refetch()}),S=L(()=>{const $=[{title:"All Cameras",value:null},{title:"Unassigned Cameras",value:-1}];return n.printers.forEach(N=>{$.push({title:N.name,value:N.id})}),$}),w=L(()=>y.data.value?y.data.value.filter($=>{const N=!c.value||$.cameraStream.name?.toLowerCase().includes(c.value.toLowerCase())||$.printer?.name?.toLowerCase().includes(c.value.toLowerCase()),O=d.value===null||d.value===-1&&!$.cameraStream.printerId||$.cameraStream.printerId===d.value;let M=a.value.length===0;a.value.length>0&&$.printer?.id&&(M=l.value.some(ie=>a.value.includes(ie.id)&&ie.printers.some(Z=>Z.printerId===$.printer?.id)));let Y=s.value.length===0;s.value.length>0&&$.printer&&(Y=s.value.includes($.printer.printerType));const X=!p.value||h[$.cameraStream.id];return N&&O&&M&&Y&&X}):[]),C=L(()=>Object.values(h).filter(Boolean).length),P=L(()=>d.value!==null&&d.value!==void 0||p.value||a.value.length>0||s.value.length>0),k=L(()=>{let $=0;return d.value!==null&&d.value!==void 0&&$++,p.value&&$++,a.value.length>0&&$++,s.value.length>0&&$++,$});function R($){$&&(h[$]=!0,g[$]=!1)}function T($){$&&(h[$]=!1,g[$]=!1)}Oe(()=>y.data.value,$=>{$&&$.forEach(N=>{N.cameraStream.id&&g[N.cameraStream.id]===void 0&&(g[N.cameraStream.id]=!0)})},{immediate:!0});function I(){d.value=null,p.value=!1,a.value=[],s.value=[]}function x(){r.openDialog({addOrUpdate:"add"})}function A($){$&&r.openDialog({addOrUpdate:"update",cameraId:$})}function D($){const N=$.cameraStream.name||$.printer?.name||"this camera";confirm(`Are you sure you want to delete ${N}?`)&&B($.cameraStream.id)}function B($){$&&b.mutateAsync($)}function V($){i.openFileExplorer($)}return($,N)=>(F(),fe("div",Rbe,[E("div",Abe,[f(ct,{align:"center"},{default:m(()=>[f(Re,{cols:"12",md:"6"},{default:m(()=>[E("div",Obe,[f(te,{color:"primary",variant:"elevated",onClick:N[0]||(N[0]=O=>x())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...N[8]||(N[8]=[_("add",-1)])]),_:1}),N[9]||(N[9]=_(" Add Camera ",-1))]),_:1}),f(ls,{"close-on-content-click":!1},{activator:m(({props:O})=>[f(te,ve(O,{variant:"outlined",color:P.value?"primary":void 0}),{default:m(()=>[f(j,{start:""},{default:m(()=>[...N[10]||(N[10]=[_("filter_list",-1)])]),_:1}),N[11]||(N[11]=_(" Filter ",-1)),P.value?(F(),Q(Rd,{key:0,color:"primary",content:k.value,inline:"",class:"ml-2"},null,8,["content"])):ae("",!0)]),_:1},16,["color"])]),default:m(()=>[f($e,{"min-width":"350"},{default:m(()=>[f(Ye,null,{default:m(()=>[f(mi,{modelValue:d.value,"onUpdate:modelValue":N[1]||(N[1]=O=>d.value=O),items:S.value,label:"Filter by Printer","prepend-inner-icon":"print",variant:"outlined",density:"compact",clearable:"","hide-details":"",class:"mb-3","onClick:clear":N[2]||(N[2]=O=>d.value=null)},null,8,["modelValue","items"]),f(Ad,{modelValue:re(a),"onUpdate:modelValue":N[3]||(N[3]=O=>Ot(a)?a.value=O:null),tags:re(o),label:"Filter by Tags",class:"mb-3"},null,8,["modelValue","tags"]),f(Od,{modelValue:re(s),"onUpdate:modelValue":N[4]||(N[4]=O=>Ot(s)?s.value=O:null),label:"Filter by Type",class:"mb-3"},null,8,["modelValue"]),f(Bn,{modelValue:p.value,"onUpdate:modelValue":N[5]||(N[5]=O=>p.value=O),label:"Show only unavailable cameras",density:"compact","hide-details":""},null,8,["modelValue"])]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",size:"small",onClick:I},{default:m(()=>[...N[12]||(N[12]=[_(" Clear All ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),f(Et,{modelValue:c.value,"onUpdate:modelValue":N[6]||(N[6]=O=>c.value=O),placeholder:"Search cameras by name...","prepend-inner-icon":"search",variant:"outlined",density:"compact",clearable:"","hide-details":"",class:"flex-grow-1"},null,8,["modelValue"])])]),_:1}),f(Re,{cols:"12",md:"6",class:"text-md-right"},{default:m(()=>[f(Ke,{class:"mr-2",color:"primary"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...N[13]||(N[13]=[_("videocam",-1)])]),_:1}),_(" "+U(w.value.length)+" cameras ",1)]),_:1}),C.value>0?(F(),Q(Ke,{key:0,color:"error"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...N[14]||(N[14]=[_("error_outline",-1)])]),_:1}),_(" "+U(C.value)+" unavailable ",1)]),_:1})):ae("",!0)]),_:1})]),_:1})]),E("div",Nbe,[re(y).isLoading.value?(F(),fe("div",Dbe,[f(Qn,{indeterminate:"",color:"primary",size:"64"})])):re(y).data.value?.length&&!w.value.length?(F(),Q($e,{key:1,variant:"outlined",class:"text-center py-12"},{default:m(()=>[f(j,{size:"64",color:"medium-emphasis",class:"mb-4"},{default:m(()=>[...N[15]||(N[15]=[_(" search_off ",-1)])]),_:1}),N[16]||(N[16]=E("div",{class:"text-h6 text-medium-emphasis mb-2"}," No cameras match your filters ",-1)),N[17]||(N[17]=E("div",{class:"text-body-2 text-medium-emphasis mb-4"}," Try adjusting your search or filters ",-1))]),_:1})):(F(),Q(ct,{key:2},{default:m(()=>[re(y).data.value?.length?ae("",!0):(F(),Q(Re,{key:0,cols:"12",sm:"6",md:"4",lg:"3"},{default:m(()=>[f($e,{class:"camera-card empty-camera-tile",elevation:"2",rounded:"lg",hover:"",onClick:N[7]||(N[7]=O=>x())},{default:m(()=>[E("div",Lbe,[f(jn,{color:"primary",size:"64",class:"mb-4"},{default:m(()=>[f(j,{size:"32"},{default:m(()=>[...N[18]||(N[18]=[_("add_a_photo",-1)])]),_:1})]),_:1}),N[21]||(N[21]=E("div",{class:"text-h6 font-weight-bold mb-2"}," Get Started ",-1)),N[22]||(N[22]=E("div",{class:"text-body-2 text-medium-emphasis mb-4 px-4"}," Add your first camera stream to monitor your 3D printers ",-1)),f(te,{color:"primary",variant:"elevated",size:"small"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...N[19]||(N[19]=[_("add",-1)])]),_:1}),N[20]||(N[20]=_(" Add Camera ",-1))]),_:1})])]),_:1})]),_:1})),(F(!0),fe(Ne,null,Zt(w.value,O=>(F(),Q(Re,{key:O.cameraStream.id,cols:"12",sm:"6",md:"4",lg:"3"},{default:m(()=>[f($e,{class:"camera-card",elevation:"2",rounded:"lg"},{default:m(()=>[f(ot,{class:"d-flex align-center pa-3"},{default:m(()=>[f(jn,{color:O.cameraStream.printerId?"primary":"secondary",size:"32",class:"mr-2"},{default:m(()=>[f(j,{size:"20"},{default:m(()=>[_(U(O.cameraStream.printerId?"print":"videocam"),1)]),_:2},1024)]),_:2},1032,["color"]),E("div",Fbe,[E("div",Mbe,[E("div",$be,U(O.cameraStream.name||O.printer?.name||"Camera"),1)]),O.printer?(F(),fe("div",Vbe,[_(U(O.printer.name)+" ",1),O.printer?(F(),Q(Ke,{key:0,size:"x-small",color:"primary",variant:"tonal"},{default:m(()=>[_(U(re(ss)(O.printer.printerType)),1)]),_:2},1024)):ae("",!0)])):ae("",!0)])]),_:2},1024),E("div",Bbe,[O.cameraStream.id?un((F(),fe("img",{key:0,alt:"Camera stream",src:O.cameraStream.streamURL,class:"camera-stream",onError:M=>R(O.cameraStream.id),onLoad:M=>T(O.cameraStream.id)},null,40,Ube)),[[ai,O.cameraStream.id&&!h[O.cameraStream.id]&&!g[O.cameraStream.id]]]):ae("",!0),O.cameraStream.id&&g[O.cameraStream.id]&&!h[O.cameraStream.id]?(F(),fe("div",jbe,[f(Qn,{indeterminate:"",color:"primary",size:"48"}),N[23]||(N[23]=E("div",{class:"text-caption mt-2"},"Connecting...",-1))])):ae("",!0),O.cameraStream.id&&h[O.cameraStream.id]?(F(),fe("div",zbe,[f(j,{size:"48",color:"error"},{default:m(()=>[...N[24]||(N[24]=[_("videocam_off",-1)])]),_:1}),N[25]||(N[25]=E("div",{class:"text-body-2 font-weight-bold mt-2"},"Camera stream unavailable",-1)),N[26]||(N[26]=E("div",{class:"text-caption text-medium-emphasis mt-1"},"Unable to connect to stream",-1))])):ae("",!0)]),f(rn,{class:"pa-3"},{default:m(()=>[f(te,{variant:"text",size:"small",onClick:M=>A(O.cameraStream.id)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...N[27]||(N[27]=[_("edit",-1)])]),_:1}),N[28]||(N[28]=_(" Edit ",-1))]),_:1},8,["onClick"]),O.printer?(F(),Q(te,{key:0,variant:"text",size:"small",color:"primary",onClick:M=>V(O.printer)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...N[29]||(N[29]=[_("folder",-1)])]),_:1}),N[30]||(N[30]=_(" Printer Files ",-1))]),_:1},8,["onClick"])):ae("",!0),f(Tt),f(te,{variant:"text",size:"small",color:"error",onClick:M=>D(O)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...N[31]||(N[31]=[_("delete",-1)])]),_:1}),N[32]||(N[32]=_(" Delete ",-1))]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}))])]))}}),Wbe=Cn(Hbe,[["__scopeId","data-v-7295d63b"]]),Gbe="/img/OIG.jpg";class kR extends Ei{static async postFirstTimeSetup(t){const n=Se.completeFirstTimeSetupRoute;return await this.post(n,t)}static async postYamlImport(t){const n=new FormData;return n.append("file",t),await this.postUpload("api/v2/first-time-setup/yaml-import",n,{})}}const qbe={class:"d-flex align-start",style:{gap:"12px"}},Kbe={class:"text-body-2 mb-3"},Ybe={class:"d-flex gap-2 flex-wrap"},c1=Be({__name:"HelpBanner",props:{message:{default:"Need help getting started?"},buttonSize:{default:"small"},githubVariant:{default:"outlined"},githubColor:{default:"default"},discordVariant:{default:"elevated"}},setup(e){return(t,n)=>(F(),fe("div",qbe,[f(j,{color:"info"},{default:m(()=>[...n[0]||(n[0]=[_("help_outline",-1)])]),_:1}),E("div",null,[E("div",Kbe,U(e.message),1),E("div",Ybe,[f(eC,{size:e.buttonSize,color:e.githubColor,variant:e.githubVariant},null,8,["size","color","variant"]),f(Zx,{class:"ml-2",size:e.buttonSize,variant:e.discordVariant},null,8,["size","variant"])])])]))}}),Xbe={class:"setup-option-box pa-8"},Jbe={class:"setup-option-box pa-8",style:{overflow:"visible"}},Qbe={class:"mb-4"},Zbe={key:2,class:"mb-4"},e1e={class:"d-flex align-start",style:{gap:"8px"}},t1e={class:"px-6 pb-6"},n1e={class:"setup-option-box ma-6 pa-8"},r1e={class:"d-flex flex-column align-center",style:{"max-width":"500px",margin:"0 auto"}},i1e={class:"text-caption"},s1e={class:"text-caption"},a1e={class:"text-caption"},o1e={class:"px-6 pb-6"},l1e={class:"setup-option-box ma-6 pa-6"},u1e={class:"d-flex flex-column align-center text-center"},c1e={class:"d-flex justify-center mt-8"},d1e={class:"px-6 pb-6"},f1e=Be({__name:"FirstTimeSetupView",setup(e){const t=ds(),n=en(),r=z(!1),i=_s(),a=z({loginRequired:!0,registration:!1}),s=z({rootUsername:"admin",rootPassword:"",rootPassword2:""}),o=z(null),l=z(!1),u=z(null),c=z(""),d=z(1);Nt(async()=>{await i.checkAuthenticationRequirements(),i.wizardState?.wizardCompleted&&(n.info("Setup already completed."),i.loginRequired?await t.push({name:"Login"}):await t.push({name:"Home"}))});async function p(){if(!r.value){n.error("Please fill out all required fields.");return}const y=a.value,b=s.value;await kR.postFirstTimeSetup({loginRequired:y.loginRequired,registration:y.registration,rootUsername:b.rootUsername,rootPassword:b.rootPassword}),n.openInfoMessage({title:"Setup completed"}),d.value=3}async function h(){await i.checkAuthenticationRequirements()}async function g(){if(u.value=null,c.value="",!o.value){c.value="No file selected",u.value=null;return}l.value=!0;try{const y=await o.value.text(),b=KS(y);if(!b||typeof b!="object"){c.value="Invalid YAML file structure",u.value=null;return}u.value={version:b.version||"Unknown",databaseType:b.databaseType||"Unknown",exportedAt:b.exportedAt?new Date(b.exportedAt).toLocaleString():"Unknown",printersCount:b.printers?.length||0,floorsCount:b.floors?.length||0,groupsCount:b.groups?.length||0,hasSettings:!!b.settings,usersCount:b.users?.length||0}}catch(y){c.value="Failed to validate YAML file: "+y.message,u.value=null}finally{l.value=!1}}async function v(){if(!o.value){n.error("Please select a YAML file to import.");return}if(!(o.value instanceof File)){n.error("Invalid file selected. Please try again.");return}if(o.value.size===0){n.error("The selected file is empty.");return}try{await kR.postYamlImport(o.value),n.openInfoMessage({title:"Import successful!",subtitle:"Your configuration has been restored."}),await i.checkAuthenticationRequirements(),i.loginRequired?await t.push({name:"Login"}):await t.push({name:"Home"})}catch{n.error("Failed to import YAML configuration.")}}return(y,b)=>(F(),Q(Qi,{fluid:""},{default:m(()=>[b[42]||(b[42]=E("img",{alt:"FDM Monster Background",class:"grid-bg-img align-content-center",src:tC,style:{opacity:"0.08"}},null,-1)),f(ct,{class:"justify-center"},{default:m(()=>[f(Re,{cols:"12",md:"10",lg:"8"},{default:m(()=>[f($he,{modelValue:d.value,"onUpdate:modelValue":b[13]||(b[13]=S=>d.value=S),class:"bg-grey-darken-4"},{default:m(()=>[f(iV,null,{default:m(()=>[f(Ph,{complete:d.value>1,value:1,title:"Introduction"},null,8,["complete"]),f(mt),f(Ph,{complete:d.value>2,value:2,title:"Login & Registration"},null,8,["complete"]),f(mt),f(Ph,{value:3,title:"What's Next?"})]),_:1}),f(aV,{modelValue:d.value,"onUpdate:modelValue":b[12]||(b[12]=S=>d.value=S)},{default:m(()=>[f(Rh,{value:1},{default:m(()=>[b[23]||(b[23]=E("div",{class:"d-flex flex-column align-center text-center",style:{padding:"60px 40px 40px"}},[E("div",{class:"d-flex align-center justify-center mb-4"},[E("img",{class:"rounded-pill",alt:"User setting up software",src:Gbe,style:{opacity:"0.7"},width:"80",height:"80"}),E("h1",{class:"text-h3 ml-4"},"FDM Monster")]),E("p",{class:"text-subtitle-1 text-medium-emphasis"},[_(" Welcome! Let's set up your 3D printing farm management system. "),E("br"),_(" Choose an option below. ")])],-1)),f(ct,{class:"px-6 pb-6",align:"start"},{default:m(()=>[f(Re,{cols:"12",md:"6"},{default:m(()=>[E("div",Xbe,[b[16]||(b[16]=E("div",{class:"text-center mb-8"},[E("h2",{class:"text-h5 mb-2"},"Start Setup"),E("p",{class:"text-body-2 text-medium-emphasis"}," Configure your FDM Monster server step by step with the setup wizard. ")],-1)),f(te,{color:"primary",size:"x-large",block:"",onClick:b[0]||(b[0]=S=>d.value=2)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...b[14]||(b[14]=[_("rocket_launch",-1)])]),_:1}),b[15]||(b[15]=_(" START SETUP ",-1))]),_:1})])]),_:1}),f(Re,{cols:"12",md:"6"},{default:m(()=>[E("div",Jbe,[b[22]||(b[22]=E("div",{class:"text-center mb-6"},[E("h2",{class:"text-h5 mb-1"},"Import Backup"),E("p",{class:"text-body-2 text-medium-emphasis"}," A .yaml/.yml file is required ")],-1)),E("div",Qbe,[f(Bx,{modelValue:o.value,"onUpdate:modelValue":[b[1]||(b[1]=S=>o.value=S),g],accept:".yaml,.yml",label:"Select YAML file",variant:"outlined","prepend-icon":"",density:"default","hide-details":""},{"prepend-inner":m(()=>[f(j,null,{default:m(()=>[...b[17]||(b[17]=[_("attach_file",-1)])]),_:1})]),_:1},8,["modelValue"])]),l.value?(F(),Q(ni,{key:0,indeterminate:"",color:"primary",class:"mb-4"})):ae("",!0),c.value?(F(),Q(kt,{key:1,type:"error",variant:"tonal",density:"compact",class:"mb-4",closable:""},{default:m(()=>[_(U(c.value),1)]),_:1})):ae("",!0),u.value?(F(),fe("div",Zbe,[f(E$,{summary:u.value},null,8,["summary"])])):ae("",!0),f(te,{disabled:!u.value,color:"primary",size:"x-large",block:"",class:"mb-4",onClick:b[2]||(b[2]=S=>v())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...b[18]||(b[18]=[_("upload",-1)])]),_:1}),b[19]||(b[19]=_(" IMPORT CONFIGURATION ",-1))]),_:1},8,["disabled"]),E("div",e1e,[f(j,{size:"small",color:"info"},{default:m(()=>[...b[20]||(b[20]=[_("info",-1)])]),_:1}),b[21]||(b[21]=E("div",{class:"text-caption text-medium-emphasis",style:{"line-height":"1.4"}}," This will skip the wizard and restore your configuration. ",-1))])])]),_:1})]),_:1}),E("div",t1e,[f(c1)])]),_:1}),f(Rh,{value:2},{default:m(()=>[E("div",n1e,[E("div",r1e,[b[36]||(b[36]=E("h2",{class:"text-h5 mb-4 text-center"},"Login Configuration",-1)),f(oy,{modelValue:r.value,"onUpdate:modelValue":b[8]||(b[8]=S=>r.value=S),class:"w-100"},{default:m(()=>[f(ow,{modelValue:a.value.loginRequired,"onUpdate:modelValue":b[3]||(b[3]=S=>a.value.loginRequired=S),label:"Enable Login",color:"primary",density:"compact","hide-details":""},null,8,["modelValue"]),f(kt,{type:a.value.loginRequired?"success":"warning",variant:"tonal",density:"compact",class:"mt-2 mb-3"},{default:m(()=>[E("div",i1e,[f(j,{size:"x-small",class:"mr-1"},{default:m(()=>[_(U(a.value.loginRequired?"check":"warning"),1)]),_:1}),_(" "+U(a.value.loginRequired?"Login is required for all users.":"No login required. Admin role assumed."),1)])]),_:1},8,["type"]),a.value.loginRequired?ae("",!0):(F(),Q(kt,{key:0,type:"error",variant:"tonal",density:"compact",class:"mb-3"},{default:m(()=>[E("div",s1e,[f(j,{size:"x-small",class:"mr-1"},{default:m(()=>[...b[24]||(b[24]=[_("security",-1)])]),_:1}),b[25]||(b[25]=_(" Server may be publicly exposed. Carefully evaluate ",-1)),b[26]||(b[26]=E("strong",null,"Enable Login",-1)),b[27]||(b[27]=_(". ",-1))])]),_:1})),f(ow,{modelValue:a.value.registration,"onUpdate:modelValue":b[4]||(b[4]=S=>a.value.registration=S),label:"Enable Registration",color:"primary",density:"compact",class:"mt-3","hide-details":""},null,8,["modelValue"]),f(kt,{type:a.value.registration?"info":"warning",variant:"tonal",density:"compact",class:"mt-2 mb-4"},{default:m(()=>[E("div",a1e,[f(j,{size:"x-small",class:"mr-1"},{default:m(()=>[_(U(a.value.registration?"check":"block"),1)]),_:1}),_(" "+U(a.value.registration?"New accounts can be registered with guest role.":"Only admin can create accounts."),1)])]),_:1},8,["type"]),f(mt,{class:"my-6 w-100"}),b[31]||(b[31]=E("h2",{class:"text-h5 mb-4 text-center"},"Admin Account",-1)),f(Et,{modelValue:s.value.rootUsername,"onUpdate:modelValue":b[5]||(b[5]=S=>s.value.rootUsername=S),rules:[S=>!!S||"Username is required"],label:"Username",variant:"outlined",density:"compact",class:"mb-3"},{"prepend-inner":m(()=>[f(j,{size:"small"},{default:m(()=>[...b[28]||(b[28]=[_("person",-1)])]),_:1})]),_:1},8,["modelValue","rules"]),f(Et,{modelValue:s.value.rootPassword,"onUpdate:modelValue":b[6]||(b[6]=S=>s.value.rootPassword=S),type:"password",rules:[S=>!!S||"Password is required",S=>!!S&&S?.length>=8||"Password must be at least 8 characters"],label:"Password",variant:"outlined",density:"compact",class:"mb-3"},{"prepend-inner":m(()=>[f(j,{size:"small"},{default:m(()=>[...b[29]||(b[29]=[_("lock",-1)])]),_:1})]),_:1},8,["modelValue","rules"]),f(Et,{modelValue:s.value.rootPassword2,"onUpdate:modelValue":b[7]||(b[7]=S=>s.value.rootPassword2=S),type:"password",rules:[S=>!!S||"Please repeat password",S=>S===s.value.rootPassword||"Passwords do not match"],label:"Repeat Password",variant:"outlined",density:"compact",class:"mb-4"},{"prepend-inner":m(()=>[f(j,{size:"small"},{default:m(()=>[...b[30]||(b[30]=[_("lock",-1)])]),_:1})]),_:1},8,["modelValue","rules"])]),_:1},8,["modelValue"]),f(rn,{class:"px-0 mt-4"},{default:m(()=>[f(te,{variant:"elevated",onClick:b[9]||(b[9]=S=>d.value=1)},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...b[32]||(b[32]=[_("arrow_back",-1)])]),_:1}),b[33]||(b[33]=_(" Back ",-1))]),_:1}),f(Tt),f(te,{disabled:!r.value,color:"primary",variant:"elevated",onClick:b[10]||(b[10]=S=>p())},{default:m(()=>[f(j,{class:"mr-2",size:"small"},{default:m(()=>[...b[34]||(b[34]=[_("mdi:mdi-check",-1)])]),_:1}),b[35]||(b[35]=_(" Submit ",-1))]),_:1},8,["disabled"])]),_:1})])]),E("div",o1e,[f(c1)])]),_:1}),f(Rh,{value:3},{default:m(()=>[E("div",l1e,[E("div",u1e,[f(j,{size:"120",color:"success",class:"mb-4"},{default:m(()=>[...b[37]||(b[37]=[_(" check_circle ",-1)])]),_:1}),b[38]||(b[38]=E("h2",{class:"text-h4 mb-2"},"Setup Completed!",-1)),b[39]||(b[39]=E("p",{class:"text-subtitle-1 text-medium-emphasis"}," Your FDM Monster server is now configured and ready to use. ",-1))]),E("div",c1e,[f(te,{color:"primary",size:"large",onClick:b[11]||(b[11]=S=>h())},{default:m(()=>[b[41]||(b[41]=_(" Continue to Login ",-1)),f(j,{end:""},{default:m(()=>[...b[40]||(b[40]=[_("arrow_forward",-1)])]),_:1})]),_:1})])]),E("div",d1e,[f(c1,{message:"Need help?"})])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),p1e=Cn(f1e,[["__scopeId","data-v-3f167de9"]]),m1e=Be({__name:"AccountSettings",setup(e){const t=ra(),n=Hx(),r=_s(),i=ds(),a=en(),s=z(),o=z(null),l=z({username:"",newPassword:"",oldPassword:"",repeatPassword:""});Nt(async()=>{await t.loadSettings(),s.value=t.settings?.server.loginRequired,await n.getProfile(),l.value.username=n.username,o.value=n.userId});async function u(){if(!o.value?.toString()?.length){a.openErrorMessage({title:"User not loaded"});return}await ys.changeUsername(o.value,l.value.username),await n.getProfile(),l.value.username=n.username,a.openInfoMessage({title:"Username changed"})}async function c(){if(!o.value?.toString()?.length){a.openErrorMessage({title:"User not loaded"});return}if(l.value.newPassword!==l.value.repeatPassword){a.openErrorMessage({title:"Passwords do not match"});return}await ys.changePassword(o.value,l.value.oldPassword,l.value.newPassword),l.value.oldPassword="",l.value.newPassword="",l.value.repeatPassword="",a.openInfoMessage({title:"Password changed"}),await r.logout(!0),await K$(i)}return(d,p)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[s.value?ae("",!0):(F(),Q(kt,{key:0,color:"primary",variant:"tonal",class:"mb-4"},{default:m(()=>[...p[6]||(p[6]=[_(" Login is currently disabled. To adjust your username and password, please enable that setting at the Server Protection settings page. Then log in and visit this page. ",-1)])]),_:1})),f(pr,{title:"Change Username",usecols:!1},{default:m(()=>[f(Et,{modelValue:l.value.username,"onUpdate:modelValue":p[0]||(p[0]=h=>l.value.username=h),disabled:!s.value,label:"Fill in your username"},null,8,["modelValue","disabled"]),f(te,{disabled:!s.value,color:"primary",class:"mt-2",onClick:p[1]||(p[1]=h=>u())},{default:m(()=>[...p[7]||(p[7]=[_(" Change username ",-1)])]),_:1},8,["disabled"])]),_:1}),f(mt),f(pr,{title:"Change Password",usecols:!1},{default:m(()=>[f(Et,{modelValue:l.value.oldPassword,"onUpdate:modelValue":p[2]||(p[2]=h=>l.value.oldPassword=h),disabled:!s.value,placeholder:"Old password",type:"password",label:"Old Password",class:"mb-3"},null,8,["modelValue","disabled"]),f(Et,{modelValue:l.value.newPassword,"onUpdate:modelValue":p[3]||(p[3]=h=>l.value.newPassword=h),disabled:!s.value,placeholder:"New password",type:"password",label:"New Password",class:"mb-3"},null,8,["modelValue","disabled"]),f(Et,{modelValue:l.value.repeatPassword,"onUpdate:modelValue":p[4]||(p[4]=h=>l.value.repeatPassword=h),disabled:!s.value,placeholder:"Repeat new password",type:"password",label:"Repeat New Password",class:"mb-3"},null,8,["modelValue","disabled"]),f(te,{disabled:!s.value,color:"primary",onClick:p[5]||(p[5]=h=>c())},{default:m(()=>[...p[8]||(p[8]=[_(" Change password ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1}))}}),h1e=Be({__name:"ServerProtectionSettings",setup(e){const t=ds(),n=en(),r=_s(),i=z(""),a=z(!1),s=z(!1),o=z(),l=z(!1),u=z(-1),c=z(14);async function d(){const b=await Di.getSettings();a.value=b.server.loginRequired,s.value=b.server.registration,i.value=b.connection?.clientIp??"127.0.0.1";const S=await Di.getSettingsSensitive();o.value=S.credentials.jwtExpiresIn,l.value=S.credentials.refreshTokenAttempts!==-1,u.value=S.credentials.refreshTokenAttempts,c.value=S.credentials.refreshTokenExpiry/24/3600}Nt(async()=>{await d()});function p(){l.value||(u.value=-1)}async function h(){const b=a.value;!b&&!confirm("Disabling login will expose your server. Continue?")||(await Di.updateLoginRequiredSettings(b),await r.logout(!0),await r.checkAuthenticationRequirements(),b?await t.push({name:fn.Login}):await t.push({name:fn.Home}),n.info("Login Required settings updated"))}async function g(){await Di.updateRegistrationEnabledSettings(s.value),await r.checkAuthenticationRequirements(),n.info("Registration settings updated")}async function v(){o.value=3600,l.value=!1,u.value=-1,c.value=14,await y(),n.info("Login expiry settings reset to default")}async function y(){if(o.value=Number.parseInt((o.value??"")?.toString()),u.value=Number.parseInt((u.value??"").toString()),!o.value||o.value<120||o.value>7200)throw new Error("JWT Expiry must be between 2 and 120 minutes");if(l.value||(u.value=-1),l.value&&(u.value<1||u.value>50))throw new Error("Refresh Token Attempts must be between 1 and 50");if(c.value<1||c.value>30)throw new Error("Refresh Token Expiry must be between 1 and 30 days");await Di.updateCredentialSettings(o.value,u.value,c.value*24*3600),n.info("Login expiry settings updated")}return(b,S)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[f(pr,{usecols:!1,title:"Login and registration"},{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Bn,{modelValue:a.value,"onUpdate:modelValue":S[0]||(S[0]=w=>a.value=w),label:"Require Login",onChange:h},null,8,["modelValue"])]),_:1}),f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Bn,{modelValue:s.value,"onUpdate:modelValue":S[1]||(S[1]=w=>s.value=w),label:"Enable Registration",onChange:g},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(mt),f(pr,{usecols:!1,title:"Login expiry settings (advanced)"},{default:m(()=>[f(kt,{class:"mb-6",color:"secondary"},{default:m(()=>[f(j,null,{default:m(()=>[...S[9]||(S[9]=[_("info",-1)])]),_:1}),S[10]||(S[10]=_(" Be cautious, setting the wrong expiry could make you lose access to the server or make your user experience highly degraded! ",-1))]),_:1}),f(ct,null,{default:m(()=>[f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Et,{modelValue:o.value,"onUpdate:modelValue":S[2]||(S[2]=w=>o.value=w),rules:[w=>!!w&&w>=120&&w<=7200],label:"JWT Expiry (seconds)"},null,8,["modelValue","rules"])]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Bn,{modelValue:l.value,"onUpdate:modelValue":S[3]||(S[3]=w=>l.value=w),label:"Enable Refresh Token Attempts",onChange:S[4]||(S[4]=w=>p())},null,8,["modelValue"])]),_:1}),f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Et,{modelValue:u.value,"onUpdate:modelValue":S[5]||(S[5]=w=>u.value=w),disabled:!l.value,rules:[w=>!!w&&w>=1],label:"Refresh Token Attempts (disabled: -1, range: 1 to 50)",type:"number"},null,8,["modelValue","disabled","rules"])]),_:1}),f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Et,{modelValue:c.value,"onUpdate:modelValue":S[6]||(S[6]=w=>c.value=w),rules:[w=>!!w&&w>=1&&w<=30],label:"Refresh Token Expiry (days)"},null,8,["modelValue","rules"])]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(te,{color:"primary",onClick:S[7]||(S[7]=w=>y())},{default:m(()=>[...S[11]||(S[11]=[_(" save login expiry settings ",-1)])]),_:1})]),_:1}),f(Re,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(te,{color:"default",onClick:S[8]||(S[8]=w=>v())},{default:m(()=>[...S[12]||(S[12]=[_(" reset to default ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),w4="2.0.1";var th={exports:{}},d1,_R;function My(){if(_R)return d1;_R=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,i=t-6;return d1={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},d1}var f1,TR;function $y(){if(TR)return f1;TR=1;var e={};return f1=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},f1}var IR;function hm(){return IR||(IR=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=My(),a=$y();t=e.exports={};const s=t.re=[],o=t.safeRe=[],l=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],g=y=>{for(const[b,S]of h)y=y.split(`${b}*`).join(`${b}{0,${S}}`).split(`${b}+`).join(`${b}{1,${S}}`);return y},v=(y,b,S)=>{const w=g(b),C=d++;a(y,C,b),c[y]=C,l[C]=b,u[C]=w,s[C]=new RegExp(b,S?"g":void 0),o[C]=new RegExp(w,S?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),v("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[c.NONNUMERICIDENTIFIER]}|${l[c.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NONNUMERICIDENTIFIER]}|${l[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${p}+`),v("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),v("FULL",`^${l[c.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),v("LOOSE",`^${l[c.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),v("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),v("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",l[c.COERCE],!0),v("COERCERTLFULL",l[c.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(th,th.exports)),th.exports}var p1,PR;function zC(){if(PR)return p1;PR=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return p1=r=>r?typeof r!="object"?e:r:t,p1}var m1,RR;function E4(){if(RR)return m1;RR=1;const e=/^[0-9]+$/,t=(r,i)=>{if(typeof r=="number"&&typeof i=="number")return r===i?0:r<i?-1:1;const a=e.test(r),s=e.test(i);return a&&s&&(r=+r,i=+i),r===i?0:a&&!s?-1:s&&!a?1:r<i?-1:1};return m1={compareIdentifiers:t,rcompareIdentifiers:(r,i)=>t(i,r)},m1}var h1,AR;function ki(){if(AR)return h1;AR=1;const e=$y(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=My(),{safeRe:r,t:i}=hm(),a=zC(),{compareIdentifiers:s}=E4();class o{constructor(u,c){if(c=a(c),u instanceof o){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const h=+p;if(h>=0&&h<n)return h}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof o)){if(typeof u=="string"&&u===this.version)return 0;u=new o(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof o||(u=new o(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof o||(u=new o(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],p=u.prerelease[c];if(e("prerelease compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return s(d,p)}while(++c)}compareBuild(u){u instanceof o||(u=new o(u,this.options));let c=0;do{const d=this.build[c],p=u.build[c];if(e("build compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return s(d,p)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const p=`-${c}`.match(this.options.loose?r[i.PRERELEASELOOSE]:r[i.PRERELEASE]);if(!p||p[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(c){let h=[c,p];d===!1&&(h=[c]),s(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return h1=o,h1}var g1,OR;function Md(){if(OR)return g1;OR=1;const e=ki();return g1=(n,r,i=!1)=>{if(n instanceof e)return n;try{return new e(n,r)}catch(a){if(!i)return null;throw a}},g1}var v1,NR;function g1e(){if(NR)return v1;NR=1;const e=Md();return v1=(n,r)=>{const i=e(n,r);return i?i.version:null},v1}var y1,DR;function v1e(){if(DR)return y1;DR=1;const e=Md();return y1=(n,r)=>{const i=e(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null},y1}var b1,LR;function y1e(){if(LR)return b1;LR=1;const e=ki();return b1=(n,r,i,a,s)=>{typeof i=="string"&&(s=a,a=i,i=void 0);try{return new e(n instanceof e?n.version:n,i).inc(r,a,s).version}catch{return null}},b1}var S1,FR;function b1e(){if(FR)return S1;FR=1;const e=Md();return S1=(n,r)=>{const i=e(n,null,!0),a=e(r,null,!0),s=i.compare(a);if(s===0)return null;const o=s>0,l=o?i:a,u=o?a:i,c=!!l.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(l)===0)return u.minor&&!u.patch?"minor":"patch"}const p=c?"pre":"";return i.major!==a.major?p+"major":i.minor!==a.minor?p+"minor":i.patch!==a.patch?p+"patch":"prerelease"},S1}var w1,MR;function S1e(){if(MR)return w1;MR=1;const e=ki();return w1=(n,r)=>new e(n,r).major,w1}var E1,$R;function w1e(){if($R)return E1;$R=1;const e=ki();return E1=(n,r)=>new e(n,r).minor,E1}var x1,VR;function E1e(){if(VR)return x1;VR=1;const e=ki();return x1=(n,r)=>new e(n,r).patch,x1}var C1,BR;function x1e(){if(BR)return C1;BR=1;const e=Md();return C1=(n,r)=>{const i=e(n,r);return i&&i.prerelease.length?i.prerelease:null},C1}var k1,UR;function ia(){if(UR)return k1;UR=1;const e=ki();return k1=(n,r,i)=>new e(n,i).compare(new e(r,i)),k1}var _1,jR;function C1e(){if(jR)return _1;jR=1;const e=ia();return _1=(n,r,i)=>e(r,n,i),_1}var T1,zR;function k1e(){if(zR)return T1;zR=1;const e=ia();return T1=(n,r)=>e(n,r,!0),T1}var I1,HR;function HC(){if(HR)return I1;HR=1;const e=ki();return I1=(n,r,i)=>{const a=new e(n,i),s=new e(r,i);return a.compare(s)||a.compareBuild(s)},I1}var P1,WR;function _1e(){if(WR)return P1;WR=1;const e=HC();return P1=(n,r)=>n.sort((i,a)=>e(i,a,r)),P1}var R1,GR;function T1e(){if(GR)return R1;GR=1;const e=HC();return R1=(n,r)=>n.sort((i,a)=>e(a,i,r)),R1}var A1,qR;function Vy(){if(qR)return A1;qR=1;const e=ia();return A1=(n,r,i)=>e(n,r,i)>0,A1}var O1,KR;function WC(){if(KR)return O1;KR=1;const e=ia();return O1=(n,r,i)=>e(n,r,i)<0,O1}var N1,YR;function x4(){if(YR)return N1;YR=1;const e=ia();return N1=(n,r,i)=>e(n,r,i)===0,N1}var D1,XR;function C4(){if(XR)return D1;XR=1;const e=ia();return D1=(n,r,i)=>e(n,r,i)!==0,D1}var L1,JR;function GC(){if(JR)return L1;JR=1;const e=ia();return L1=(n,r,i)=>e(n,r,i)>=0,L1}var F1,QR;function qC(){if(QR)return F1;QR=1;const e=ia();return F1=(n,r,i)=>e(n,r,i)<=0,F1}var M1,ZR;function k4(){if(ZR)return M1;ZR=1;const e=x4(),t=C4(),n=Vy(),r=GC(),i=WC(),a=qC();return M1=(o,l,u,c)=>{switch(l){case"===":return typeof o=="object"&&(o=o.version),typeof u=="object"&&(u=u.version),o===u;case"!==":return typeof o=="object"&&(o=o.version),typeof u=="object"&&(u=u.version),o!==u;case"":case"=":case"==":return e(o,u,c);case"!=":return t(o,u,c);case">":return n(o,u,c);case">=":return r(o,u,c);case"<":return i(o,u,c);case"<=":return a(o,u,c);default:throw new TypeError(`Invalid operator: ${l}`)}},M1}var $1,eA;function I1e(){if(eA)return $1;eA=1;const e=ki(),t=Md(),{safeRe:n,t:r}=hm();return $1=(a,s)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;s=s||{};let o=null;if(!s.rtl)o=a.match(s.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);else{const h=s.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let g;for(;(g=h.exec(a))&&(!o||o.index+o[0].length!==a.length);)(!o||g.index+g[0].length!==o.index+o[0].length)&&(o=g),h.lastIndex=g.index+g[1].length+g[2].length;h.lastIndex=-1}if(o===null)return null;const l=o[2],u=o[3]||"0",c=o[4]||"0",d=s.includePrerelease&&o[5]?`-${o[5]}`:"",p=s.includePrerelease&&o[6]?`+${o[6]}`:"";return t(`${l}.${u}.${c}${d}${p}`,s)},$1}var V1,tA;function P1e(){if(tA)return V1;tA=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const r=this.map.get(n);if(r!==void 0)return this.map.delete(n),this.map.set(n,r),r}delete(n){return this.map.delete(n)}set(n,r){if(!this.delete(n)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(n,r)}return this}}return V1=e,V1}var B1,nA;function sa(){if(nA)return B1;nA=1;const e=/\s+/g;class t{constructor($,N){if(N=i(N),$ instanceof t)return $.loose===!!N.loose&&$.includePrerelease===!!N.includePrerelease?$:new t($.raw,N);if($ instanceof a)return this.raw=$.value,this.set=[[$]],this.formatted=void 0,this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=$.trim().replace(e," "),this.set=this.raw.split("||").map(O=>this.parseRange(O.trim())).filter(O=>O.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const O=this.set[0];if(this.set=this.set.filter(M=>!v(M[0])),this.set.length===0)this.set=[O];else if(this.set.length>1){for(const M of this.set)if(M.length===1&&y(M[0])){this.set=[M];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let $=0;$<this.set.length;$++){$>0&&(this.formatted+="||");const N=this.set[$];for(let O=0;O<N.length;O++)O>0&&(this.formatted+=" "),this.formatted+=N[O].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange($){const O=((this.options.includePrerelease&&h)|(this.options.loose&&g))+":"+$,M=r.get(O);if(M)return M;const Y=this.options.loose,X=Y?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];$=$.replace(X,D(this.options.includePrerelease)),s("hyphen replace",$),$=$.replace(l[u.COMPARATORTRIM],c),s("comparator trim",$),$=$.replace(l[u.TILDETRIM],d),s("tilde trim",$),$=$.replace(l[u.CARETTRIM],p),s("caret trim",$);let ie=$.split(" ").map(ee=>S(ee,this.options)).join(" ").split(/\s+/).map(ee=>A(ee,this.options));Y&&(ie=ie.filter(ee=>(s("loose invalid filter",ee,this.options),!!ee.match(l[u.COMPARATORLOOSE])))),s("range list",ie);const Z=new Map,G=ie.map(ee=>new a(ee,this.options));for(const ee of G){if(v(ee))return[ee];Z.set(ee.value,ee)}Z.size>1&&Z.has("")&&Z.delete("");const le=[...Z.values()];return r.set(O,le),le}intersects($,N){if(!($ instanceof t))throw new TypeError("a Range is required");return this.set.some(O=>b(O,N)&&$.set.some(M=>b(M,N)&&O.every(Y=>M.every(X=>Y.intersects(X,N)))))}test($){if(!$)return!1;if(typeof $=="string")try{$=new o($,this.options)}catch{return!1}for(let N=0;N<this.set.length;N++)if(B(this.set[N],$,this.options))return!0;return!1}}B1=t;const n=P1e(),r=new n,i=zC(),a=By(),s=$y(),o=ki(),{safeRe:l,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:p}=hm(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=My(),v=V=>V.value==="<0.0.0-0",y=V=>V.value==="",b=(V,$)=>{let N=!0;const O=V.slice();let M=O.pop();for(;N&&O.length;)N=O.every(Y=>M.intersects(Y,$)),M=O.pop();return N},S=(V,$)=>(V=V.replace(l[u.BUILD],""),s("comp",V,$),V=k(V,$),s("caret",V),V=C(V,$),s("tildes",V),V=T(V,$),s("xrange",V),V=x(V,$),s("stars",V),V),w=V=>!V||V.toLowerCase()==="x"||V==="*",C=(V,$)=>V.trim().split(/\s+/).map(N=>P(N,$)).join(" "),P=(V,$)=>{const N=$.loose?l[u.TILDELOOSE]:l[u.TILDE];return V.replace(N,(O,M,Y,X,ie)=>{s("tilde",V,O,M,Y,X,ie);let Z;return w(M)?Z="":w(Y)?Z=`>=${M}.0.0 <${+M+1}.0.0-0`:w(X)?Z=`>=${M}.${Y}.0 <${M}.${+Y+1}.0-0`:ie?(s("replaceTilde pr",ie),Z=`>=${M}.${Y}.${X}-${ie} <${M}.${+Y+1}.0-0`):Z=`>=${M}.${Y}.${X} <${M}.${+Y+1}.0-0`,s("tilde return",Z),Z})},k=(V,$)=>V.trim().split(/\s+/).map(N=>R(N,$)).join(" "),R=(V,$)=>{s("caret",V,$);const N=$.loose?l[u.CARETLOOSE]:l[u.CARET],O=$.includePrerelease?"-0":"";return V.replace(N,(M,Y,X,ie,Z)=>{s("caret",V,M,Y,X,ie,Z);let G;return w(Y)?G="":w(X)?G=`>=${Y}.0.0${O} <${+Y+1}.0.0-0`:w(ie)?Y==="0"?G=`>=${Y}.${X}.0${O} <${Y}.${+X+1}.0-0`:G=`>=${Y}.${X}.0${O} <${+Y+1}.0.0-0`:Z?(s("replaceCaret pr",Z),Y==="0"?X==="0"?G=`>=${Y}.${X}.${ie}-${Z} <${Y}.${X}.${+ie+1}-0`:G=`>=${Y}.${X}.${ie}-${Z} <${Y}.${+X+1}.0-0`:G=`>=${Y}.${X}.${ie}-${Z} <${+Y+1}.0.0-0`):(s("no pr"),Y==="0"?X==="0"?G=`>=${Y}.${X}.${ie}${O} <${Y}.${X}.${+ie+1}-0`:G=`>=${Y}.${X}.${ie}${O} <${Y}.${+X+1}.0-0`:G=`>=${Y}.${X}.${ie} <${+Y+1}.0.0-0`),s("caret return",G),G})},T=(V,$)=>(s("replaceXRanges",V,$),V.split(/\s+/).map(N=>I(N,$)).join(" ")),I=(V,$)=>{V=V.trim();const N=$.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return V.replace(N,(O,M,Y,X,ie,Z)=>{s("xRange",V,O,M,Y,X,ie,Z);const G=w(Y),le=G||w(X),ee=le||w(ie),ue=ee;return M==="="&&ue&&(M=""),Z=$.includePrerelease?"-0":"",G?M===">"||M==="<"?O="<0.0.0-0":O="*":M&&ue?(le&&(X=0),ie=0,M===">"?(M=">=",le?(Y=+Y+1,X=0,ie=0):(X=+X+1,ie=0)):M==="<="&&(M="<",le?Y=+Y+1:X=+X+1),M==="<"&&(Z="-0"),O=`${M+Y}.${X}.${ie}${Z}`):le?O=`>=${Y}.0.0${Z} <${+Y+1}.0.0-0`:ee&&(O=`>=${Y}.${X}.0${Z} <${Y}.${+X+1}.0-0`),s("xRange return",O),O})},x=(V,$)=>(s("replaceStars",V,$),V.trim().replace(l[u.STAR],"")),A=(V,$)=>(s("replaceGTE0",V,$),V.trim().replace(l[$.includePrerelease?u.GTE0PRE:u.GTE0],"")),D=V=>($,N,O,M,Y,X,ie,Z,G,le,ee,ue)=>(w(O)?N="":w(M)?N=`>=${O}.0.0${V?"-0":""}`:w(Y)?N=`>=${O}.${M}.0${V?"-0":""}`:X?N=`>=${N}`:N=`>=${N}${V?"-0":""}`,w(G)?Z="":w(le)?Z=`<${+G+1}.0.0-0`:w(ee)?Z=`<${G}.${+le+1}.0-0`:ue?Z=`<=${G}.${le}.${ee}-${ue}`:V?Z=`<${G}.${le}.${+ee+1}-0`:Z=`<=${Z}`,`${N} ${Z}`.trim()),B=(V,$,N)=>{for(let O=0;O<V.length;O++)if(!V[O].test($))return!1;if($.prerelease.length&&!N.includePrerelease){for(let O=0;O<V.length;O++)if(s(V[O].semver),V[O].semver!==a.ANY&&V[O].semver.prerelease.length>0){const M=V[O].semver;if(M.major===$.major&&M.minor===$.minor&&M.patch===$.patch)return!0}return!1}return!0};return B1}var U1,rA;function By(){if(rA)return U1;rA=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),s("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new o(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(s("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}U1=t;const n=zC(),{safeRe:r,t:i}=hm(),a=k4(),s=$y(),o=ki(),l=sa();return U1}var j1,iA;function Uy(){if(iA)return j1;iA=1;const e=sa();return j1=(n,r,i)=>{try{r=new e(r,i)}catch{return!1}return r.test(n)},j1}var z1,sA;function R1e(){if(sA)return z1;sA=1;const e=sa();return z1=(n,r)=>new e(n,r).set.map(i=>i.map(a=>a.value).join(" ").trim().split(" ")),z1}var H1,aA;function A1e(){if(aA)return H1;aA=1;const e=ki(),t=sa();return H1=(r,i,a)=>{let s=null,o=null,l=null;try{l=new t(i,a)}catch{return null}return r.forEach(u=>{l.test(u)&&(!s||o.compare(u)===-1)&&(s=u,o=new e(s,a))}),s},H1}var W1,oA;function O1e(){if(oA)return W1;oA=1;const e=ki(),t=sa();return W1=(r,i,a)=>{let s=null,o=null,l=null;try{l=new t(i,a)}catch{return null}return r.forEach(u=>{l.test(u)&&(!s||o.compare(u)===1)&&(s=u,o=new e(s,a))}),s},W1}var G1,lA;function N1e(){if(lA)return G1;lA=1;const e=ki(),t=sa(),n=Vy();return G1=(i,a)=>{i=new t(i,a);let s=new e("0.0.0");if(i.test(s)||(s=new e("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){const l=i.set[o];let u=null;l.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||n(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!s||n(s,u))&&(s=u)}return s&&i.test(s)?s:null},G1}var q1,uA;function D1e(){if(uA)return q1;uA=1;const e=sa();return q1=(n,r)=>{try{return new e(n,r).range||"*"}catch{return null}},q1}var K1,cA;function KC(){if(cA)return K1;cA=1;const e=ki(),t=By(),{ANY:n}=t,r=sa(),i=Uy(),a=Vy(),s=WC(),o=qC(),l=GC();return K1=(c,d,p,h)=>{c=new e(c,h),d=new r(d,h);let g,v,y,b,S;switch(p){case">":g=a,v=o,y=s,b=">",S=">=";break;case"<":g=s,v=l,y=a,b="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(c,d,h))return!1;for(let w=0;w<d.set.length;++w){const C=d.set[w];let P=null,k=null;if(C.forEach(R=>{R.semver===n&&(R=new t(">=0.0.0")),P=P||R,k=k||R,g(R.semver,P.semver,h)?P=R:y(R.semver,k.semver,h)&&(k=R)}),P.operator===b||P.operator===S||(!k.operator||k.operator===b)&&v(c,k.semver))return!1;if(k.operator===S&&y(c,k.semver))return!1}return!0},K1}var Y1,dA;function L1e(){if(dA)return Y1;dA=1;const e=KC();return Y1=(n,r,i)=>e(n,r,">",i),Y1}var X1,fA;function F1e(){if(fA)return X1;fA=1;const e=KC();return X1=(n,r,i)=>e(n,r,"<",i),X1}var J1,pA;function M1e(){if(pA)return J1;pA=1;const e=sa();return J1=(n,r,i)=>(n=new e(n,i),r=new e(r,i),n.intersects(r,i)),J1}var Q1,mA;function $1e(){if(mA)return Q1;mA=1;const e=Uy(),t=ia();return Q1=(n,r,i)=>{const a=[];let s=null,o=null;const l=n.sort((p,h)=>t(p,h,i));for(const p of l)e(p,r,i)?(o=p,s||(s=p)):(o&&a.push([s,o]),o=null,s=null);s&&a.push([s,null]);const u=[];for(const[p,h]of a)p===h?u.push(p):!h&&p===l[0]?u.push("*"):h?p===l[0]?u.push(`<=${h}`):u.push(`${p} - ${h}`):u.push(`>=${p}`);const c=u.join(" || "),d=typeof r.raw=="string"?r.raw:String(r);return c.length<d.length?c:r},Q1}var Z1,hA;function V1e(){if(hA)return Z1;hA=1;const e=sa(),t=By(),{ANY:n}=t,r=Uy(),i=ia(),a=(d,p,h={})=>{if(d===p)return!0;d=new e(d,h),p=new e(p,h);let g=!1;e:for(const v of d.set){for(const y of p.set){const b=l(v,y,h);if(g=g||b!==null,b)continue e}if(g)return!1}return!0},s=[new t(">=0.0.0-0")],o=[new t(">=0.0.0")],l=(d,p,h)=>{if(d===p)return!0;if(d.length===1&&d[0].semver===n){if(p.length===1&&p[0].semver===n)return!0;h.includePrerelease?d=s:d=o}if(p.length===1&&p[0].semver===n){if(h.includePrerelease)return!0;p=o}const g=new Set;let v,y;for(const T of d)T.operator===">"||T.operator===">="?v=u(v,T,h):T.operator==="<"||T.operator==="<="?y=c(y,T,h):g.add(T.semver);if(g.size>1)return null;let b;if(v&&y){if(b=i(v.semver,y.semver,h),b>0)return null;if(b===0&&(v.operator!==">="||y.operator!=="<="))return null}for(const T of g){if(v&&!r(T,String(v),h)||y&&!r(T,String(y),h))return null;for(const I of p)if(!r(T,String(I),h))return!1;return!0}let S,w,C,P,k=y&&!h.includePrerelease&&y.semver.prerelease.length?y.semver:!1,R=v&&!h.includePrerelease&&v.semver.prerelease.length?v.semver:!1;k&&k.prerelease.length===1&&y.operator==="<"&&k.prerelease[0]===0&&(k=!1);for(const T of p){if(P=P||T.operator===">"||T.operator===">=",C=C||T.operator==="<"||T.operator==="<=",v){if(R&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===R.major&&T.semver.minor===R.minor&&T.semver.patch===R.patch&&(R=!1),T.operator===">"||T.operator===">="){if(S=u(v,T,h),S===T&&S!==v)return!1}else if(v.operator===">="&&!r(v.semver,String(T),h))return!1}if(y){if(k&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===k.major&&T.semver.minor===k.minor&&T.semver.patch===k.patch&&(k=!1),T.operator==="<"||T.operator==="<="){if(w=c(y,T,h),w===T&&w!==y)return!1}else if(y.operator==="<="&&!r(y.semver,String(T),h))return!1}if(!T.operator&&(y||v)&&b!==0)return!1}return!(v&&C&&!y&&b!==0||y&&P&&!v&&b!==0||R||k)},u=(d,p,h)=>{if(!d)return p;const g=i(d.semver,p.semver,h);return g>0?d:g<0||p.operator===">"&&d.operator===">="?p:d},c=(d,p,h)=>{if(!d)return p;const g=i(d.semver,p.semver,h);return g<0?d:g>0||p.operator==="<"&&d.operator==="<="?p:d};return Z1=a,Z1}var e0,gA;function B1e(){if(gA)return e0;gA=1;const e=hm(),t=My(),n=ki(),r=E4(),i=Md(),a=g1e(),s=v1e(),o=y1e(),l=b1e(),u=S1e(),c=w1e(),d=E1e(),p=x1e(),h=ia(),g=C1e(),v=k1e(),y=HC(),b=_1e(),S=T1e(),w=Vy(),C=WC(),P=x4(),k=C4(),R=GC(),T=qC(),I=k4(),x=I1e(),A=By(),D=sa(),B=Uy(),V=R1e(),$=A1e(),N=O1e(),O=N1e(),M=D1e(),Y=KC(),X=L1e(),ie=F1e(),Z=M1e(),G=$1e(),le=V1e();return e0={parse:i,valid:a,clean:s,inc:o,diff:l,major:u,minor:c,patch:d,prerelease:p,compare:h,rcompare:g,compareLoose:v,compareBuild:y,sort:b,rsort:S,gt:w,lt:C,eq:P,neq:k,gte:R,lte:T,cmp:I,coerce:x,Comparator:A,Range:D,satisfies:B,toComparators:V,maxSatisfying:$,minSatisfying:N,minVersion:O,validRange:M,outside:Y,gtr:X,ltr:ie,intersects:Z,simplifyRange:G,subset:le,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers},e0}var Zd=B1e();const U1e={key:0},j1e={key:1},z1e={class:"mb-2"},H1e={class:"mt-3"},W1e=Be({__name:"SoftwareUpgradeSettings",setup(e){const t=z(""),n=z(!0),r=z(!1),i=z(!1),a=z(""),s=z(""),o=z(w4),l=z(),u=z(),c=z(),d=z(!1),p=z([]);Nt(async()=>{await h();const T=await $o.getVersion();a.value=T.version,s.value=T.monsterPi?.trim()||""});async function h(){n.value=!0,t.value="",r.value=!1;try{const T=await $o.getGithubRateLimit();if(T.rate.remaining===0){const x=new Date(T.rate.reset).toLocaleTimeString(),A=T.rate.reset*1e3-Date.now(),D=Math.ceil(A/6e4);t.value=`Server has reached a rate limit of the Github API. This limit will be reset at ${x} (in ${D} minutes)`,n.value=!1,r.value=!0;return}}catch{n.value=!1;return}try{const T=await $o.getClientReleases();l.value=T.current,u.value=T.minimum,p.value=T.releases}catch(T){t.value="An error occurred loading the releases: "+T.message}finally{n.value=!1}}const g=L(()=>p.value.filter(T=>{const I=Zd.minor(T.tag_name)===Zd.minor(u.value.tag_name),x=w(T),A=T.draft;return I&&(y()||d.value||!x)&&!A})),v=L(()=>y());function y(){const T=l.value;return w(T)}function b(T){return k(T)||!P(T,l.value)||C(T)}function S(T){const I=w(T)?`${T.tag_name}, unstable`:T.tag_name;return k(T)?`${I}, currently installed`:C(T)?`${I}, below minimum`:P(T,l.value)?I:`${I}, downgrade not allowed`}function w(T){return T?.tag_name?.length?T.prerelease||T.tag_name.includes("rc")||T.tag_name.includes("unstable"):!1}function C(T){return Zd.compare(T.tag_name,u.value.tag_name)===-1}function P(T,I){if(!I)throw new Error("No current release is known, cannot compare.");return i.value?!0:Zd.compare(T.tag_name,I.tag_name)!==-1&&Zd.compare(T.tag_name,u.value.tag_name)!==-1}function k(T){return T.tag_name===l.value?.tag_name}async function R(T){confirm("Are you sure? This might cause breaking changes, if the server is outdated")&&(await $o.updateClientDistGithub(T,i.value),location.reload())}return(T,I)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[f(pr,{title:"Current versions in use",usecols:!1},{default:m(()=>[E("div",null,"Your server's version is: "+U(a.value),1),E("div",null,"Your client's version is: "+U(o.value),1),s.value?(F(),fe("div",U1e," Your MonsterPi version is: "+U(s.value),1)):(F(),fe("div",j1e," MonsterPi: No MonsterPi distro was detected. "))]),_:1}),f(mt),f(pr,{title:"Server upgrade",tooltip:"Please visit the installation documentation for instructions",usecols:!1},{default:m(()=>[...I[5]||(I[5]=[E("div",null,[_(" Please visit "),E("a",{href:"https://docs.fdm-monster.net/docs/installing/"}," the installation documentation "),_(" for instructions on how to upgrade the server. ")],-1)])]),_:1}),f(mt),f(pr,{title:"Client upgrade",tooltip:"Upgrade the client webapp for quickly retrieving small fixes and features",usecols:!1},{default:m(()=>[I[12]||(I[12]=E("div",{class:"mb-3"},[_(" Please visit "),E("a",{href:"https://docs.fdm-monster.net/docs/configuration/updating_client_bundle"}," the installation documentation "),_(" for instructions on how to upgrade the client bundle. ")],-1)),I[13]||(I[13]=E("div",{class:"font-weight-bold mb-2"},"Select a release to upgrade to:",-1)),E("div",z1e," Minimum required version: "+U(u.value?.tag_name),1),n.value?(F(),Q(kt,{key:0},{default:m(()=>[...I[6]||(I[6]=[_("Loading releases...",-1)])]),_:1})):ae("",!0),!n.value&&!g.value?.length?(F(),Q(kt,{key:1},{default:m(()=>[...I[7]||(I[7]=[_(" No releases to show. ",-1)])]),_:1})):ae("",!0),f(Phe,{modelValue:c.value,"onUpdate:modelValue":I[0]||(I[0]=x=>c.value=x)},{default:m(()=>[(F(!0),fe(Ne,null,Zt(g.value,x=>(F(),Q(The,{key:x.tag_name,disabled:b(x),label:S(x),value:x.tag_name},null,8,["disabled","label","value"]))),128))]),_:1},8,["modelValue"]),d.value?(F(),Q(kt,{key:2,color:"primary","max-width":"500px",class:"mb-3"},{default:m(()=>[...I[8]||(I[8]=[_(" You are viewing prereleases, please install such versions at your own risk! ",-1)])]),_:1})):ae("",!0),f(Bn,{modelValue:i.value,"onUpdate:modelValue":I[1]||(I[1]=x=>i.value=x),label:"Allow downgrade"},null,8,["modelValue"]),f(Bn,{modelValue:d.value,"onUpdate:modelValue":I[2]||(I[2]=x=>d.value=x),disabled:v.value,label:v.value?"Show prerelease versions (Currently already on prerelease version)":"Show prerelease versions"},null,8,["modelValue","disabled","label"]),E("div",H1e,[f(te,{class:"mr-4",color:"secondary",onClick:I[3]||(I[3]=x=>h())},{default:m(()=>[...I[9]||(I[9]=[_(" Reload release version list ",-1)])]),_:1}),f(te,{disabled:!c.value?.length||c.value===l.value?.tag_name,color:"primary",variant:"flat",onClick:I[4]||(I[4]=x=>R(c.value))},{default:m(()=>[f(j,null,{default:m(()=>[...I[10]||(I[10]=[_("upgrade",-1)])]),_:1}),I[11]||(I[11]=_(" Upgrade/downgrade client ",-1))]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1}))}}),G1e=Be({__name:"DiagnosticsSettings",setup(e){const t=en(),n=ra(),r=z(!1);Nt(async()=>{await n.loadSettings(),r.value=n.serverSettings?.sentryDiagnosticsEnabled||!1});async function i(){await Di.setSentryDiagnosticsSettings(r.value),f3(r.value)}async function a(){const l=`Test Error ${Date.now()} Sentry enabled: ${r.value}`;try{throw new Error(l)}catch(u){Gs(u),t.openInfoMessage({title:"Test report was sent",subtitle:`Content: ${l}`})}}async function s(){await Bg.downloadLogDump()}async function o(){await Bg.clearLogFilesOlderThanWeek(),t.openInfoMessage({title:"Action success",subtitle:"Log files older than a week have been deleted"})}return(l,u)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[f(pr,{title:"Remote Sentry diagnostic reports"},{default:m(()=>[f(Bn,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=c=>r.value=c),label:"Enable remote Sentry diagnostic reports",onChange:i},null,8,["modelValue"]),f(te,{color:"secondary",onClick:u[1]||(u[1]=c=>a())},{default:m(()=>[f(j,{class:"pr-2"},{default:m(()=>[...u[4]||(u[4]=[_("bug_report",-1)])]),_:1}),u[5]||(u[5]=_(" Test Error ",-1))]),_:1})]),_:1}),f(mt),f(pr,{usecols:!1,title:"Download a .zip file containing all logs from the server"},{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:"3"},{default:m(()=>[f(te,{color:"primary",onClick:u[2]||(u[2]=c=>s())},{default:m(()=>[f(j,null,{default:m(()=>[...u[6]||(u[6]=[_("download",-1)])]),_:1}),u[7]||(u[7]=_(" Download Log Files (.zip) ",-1))]),_:1})]),_:1})]),_:1})]),_:1}),f(mt),f(pr,{title:"Clear log files"},{default:m(()=>[f(te,{color:"default",onClick:u[3]||(u[3]=c=>o())},{default:m(()=>[f(j,null,{default:m(()=>[...u[8]||(u[8]=[_("download",-1)])]),_:1}),u[9]||(u[9]=_(" Clear log files older than a week ",-1))]),_:1})]),_:1})]),_:1})]),_:1}))}}),q1e="job-thumbnail",K1e=(e,t)=>Id({queryKey:[q1e,e],queryFn:async()=>{if(!e.value)return null;try{const n=await qr.getThumbnails(e.value);if(!n||n.length===0)return null;const r=Y1e(n);return r?await qr.getThumbnailUrl(e.value,r.index):null}catch(n){return console.debug(`Failed to load thumbnail for job ${e.value}:`,n),null}},enabled:!!e.value&&t!==!1,staleTime:1e3*60*60,retry:!1});function Y1e(e){if(!e||e.length===0)return null;const t=e.filter(s=>s.width>=100&&s.height>=100);if(t.length===0)return e.reduce((s,o)=>{const l=s.width*s.height;return o.width*o.height>l?o:s},e[0]);const n=400*400,r=800*800;let i=t[0],a=1/0;for(const s of t){const o=s.width*s.height;if(o>r)continue;const l=Math.abs(o-n);l<a&&(a=l,i=s)}return i}const X1e={class:"thumbnail-overlay"},J1e={key:1,class:"thumbnail-placeholder"},Q1e=Be({__name:"JobThumbnailCell",props:{jobId:{}},setup(e){const t=e,n=L(()=>t.jobId),{data:r,isLoading:i}=K1e(n),a=qt(Kt.JobThumbnailViewer),s=()=>{r.value&&a.openDialog({jobId:t.jobId})};return(o,l)=>(F(),fe("div",{class:Te(["thumbnail-container",{clickable:re(r)}]),onClick:s},[re(r)?(F(),Q(ri,{key:0,src:re(r),alt:"Job thumbnail",class:"thumbnail-image"},{default:m(()=>[E("div",X1e,[f(j,{color:"white",size:"x-small"},{default:m(()=>[...l[0]||(l[0]=[_("zoom_in",-1)])]),_:1})])]),_:1},8,["src"])):!re(i)&&!re(r)?(F(),fe("div",J1e,[f(j,{size:"small",color:"grey-darken-1"},{default:m(()=>[...l[1]||(l[1]=[_("image_not_supported",-1)])]),_:1})])):(F(),Q(Qn,{key:2,indeterminate:"",size:"24",width:"2",color:"primary"}))],2))}}),Z1e=Cn(Q1e,[["__scopeId","data-v-f62e903a"]]),e0e={class:"text-subtitle-1"},t0e={key:0,class:"text-caption text-medium-emphasis"},n0e={key:1,class:"text-caption text-medium-emphasis"},r0e={class:"text-body-2"},i0e={class:"text-caption text-medium-emphasis"},s0e={key:0,class:"text-body-2"},a0e={class:"text-caption text-medium-emphasis"},o0e={key:1,class:"text-medium-emphasis"},l0e={key:0,class:"progress-container"},u0e={class:"text-caption font-weight-bold"},c0e={key:1,class:"text-medium-emphasis"},d0e={key:0,class:"text-body-2"},f0e={key:1,class:"text-medium-emphasis"},p0e={class:"d-flex align-center"},m0e={class:"text-body-2 font-weight-medium"},h0e={key:0,class:"text-caption text-medium-emphasis"},g0e={key:1,class:"text-caption text-medium-emphasis"},v0e={class:"d-flex align-center"},y0e={class:"text-body-2 font-weight-medium"},b0e={key:0,class:"text-caption text-medium-emphasis"},S0e={key:1,class:"text-caption text-medium-emphasis"},w0e={key:1,class:"text-medium-emphasis"},E0e={key:0,class:"filament-info"},x0e={key:1,class:"text-caption text-medium-emphasis mt-1"},C0e={key:1,class:"text-body-2"},k0e={key:2,class:"text-medium-emphasis"},_0e={key:0},T0e=Be({__name:"PrintJobs",setup(e){const t=Pd(),n=z("jobs");Oe(n,me=>{me==="queue"&&Ae()});const r=z([]),i=z(!1),a=z(1),s=z(25),o=z(0),l=z([]),u=z(!1),c=z(1),d=z(50),p=z(0),{info:h,error:g}=en(),v=wn(),y=Fr(),b=Is(),S=qt(Kt.PrintJobDetailsDialog),w=z(!1),C=z(null),P=z(!1),k=z(!1),R=z(!1),T=z(null),I=z(!1),x=z(!1),A=z(null),D=z(!1),B=z(!1),V=z(null),$=z(!1),N=z(!1),O=z(null),M=z(!1),Y=z(!1),X=z(null),ie=z([]),Z=z(!1),G=z(!1),le=z(null),ee=z(null),ue=z(!1),{selectedTags:W,selectedPrinterTypes:ne,tags:J,tagsWithPrinters:ke,loadTags:We}=om(),Ve=z([]),H=z([]),q=z([]),ce=z([]),oe=z([]),ge=new Date,xe=new Date(ge);xe.setDate(xe.getDate()-7);const Ie=z({searchPrinter:"",searchFile:"",startDate:xe.toISOString().split("T")[0],endDate:ge.toISOString().split("T")[0],page:1,pageSize:25}),Ee=L(()=>[Ie.value.searchPrinter,Ie.value.searchFile].filter(Boolean).join(" ")),_e=L(()=>{const me=new Set;return r.value.forEach(K=>{K.status&&me.add(K.status)}),Array.from(me).sort()}),he=L(()=>{const me=new Set;return r.value.forEach(K=>{K.metadata?.filamentType&&me.add(K.metadata.filamentType)}),Array.from(me).sort()}),Ue=L(()=>{const me=new Set;return r.value.forEach(K=>{K.metadata?.printerModel&&me.add(K.metadata.printerModel)}),Array.from(me).sort()}),Pe=me=>{if(!me)return"Unknown";const K=v.printers.find(tB=>tB.id===me);if(!K)return"Unknown";const ye=y.socketStatesById[me],Bt=y.printerEventsById[me];return!ye||!Bt?"Unknown":sM(K,ye,Bt)?.text||"Unknown"},qe=L(()=>{let me=r.value;return Ve.value.length>0&&(me=me.filter(K=>K.printerId&&Ve.value.includes(K.printerId))),W.value.length>0&&(me=me.filter(K=>K.printerId?ke.value.some(ye=>W.value.includes(ye.id)&&ye.printers.some(Bt=>Bt.printerId===K.printerId)):!1)),ne.value.length>0&&(me=me.filter(K=>{if(!K.printerId)return!1;const ye=v.printers.find(Bt=>Bt.id===K.printerId);return ye&&ne.value.includes(ye.printerType)})),H.value.length>0&&(me=me.filter(K=>H.value.includes(K.status))),q.value.length>0&&(me=me.filter(K=>{const ye=Pe(K.printerId);return q.value.includes(ye)})),ce.value.length>0&&(me=me.filter(K=>K.metadata?.filamentType&&ce.value.includes(K.metadata.filamentType))),oe.value.length>0&&(me=me.filter(K=>K.metadata?.printerModel&&oe.value.includes(K.metadata.printerModel))),me}),tt=L(()=>n.value==="queue"?[{title:"Position",key:"queuePosition",sortable:!1},{title:"Printer",key:"printerName",sortable:!1},{title:"File Name",key:"fileName",sortable:!1},{title:"Status",key:"status",sortable:!1},{title:"Queued At",key:"createdAt",sortable:!1},{title:"Filament",key:"filament",sortable:!1},{title:"Actions",key:"actions",sortable:!1,align:"center"}]:[{title:"",key:"thumbnail",sortable:!1,width:"80px"},{title:"Printer",key:"printerName",sortable:!1},{title:"File Name",key:"fileName",sortable:!1},{title:"Status",key:"status",sortable:!1},{title:"Progress",key:"progress",sortable:!1},{title:"Started",key:"createdAt",sortable:!1},{title:"Ended",key:"endedAt",sortable:!1},{title:"Duration",key:"duration",sortable:!1},{title:"Filament",key:"filament",sortable:!1},{title:"Reason",key:"reason",sortable:!1},{title:"Actions",key:"actions",sortable:!1,align:"center"}]),rt=L({get:()=>n.value==="jobs"?s.value:d.value,set:me=>{n.value==="jobs"?s.value=me:d.value=me}}),$t=L({get:()=>n.value==="jobs"?a.value:c.value,set:me=>{n.value==="jobs"?a.value=me:c.value=me}}),de=()=>{n.value==="jobs"?we():Ae()},pe=Aj(()=>{a.value=1,we()},500);Nt(async()=>{await v.loadPrinters();const me=t.query.printerId;if(me){const K=Number(me);Ve.value=[K]}await we(),await We()});const we=async()=>{if(console.debug("[LoadJobs] loadPrintJobs called, loading state:",i.value),i.value){console.debug("[LoadJobs] Already loading, skipping...");return}i.value=!0;try{const me={...Ie.value,page:a.value,pageSize:s.value};Object.keys(me).forEach(ye=>{me[ye]===""&&delete me[ye]}),console.debug("[LoadJobs] Fetching jobs with params:",me);const K=await qr.searchJobsPaged(me);r.value=K.items,o.value=K.count,console.debug("[LoadJobs] Received",K.items.length,"jobs")}catch(me){console.error("Failed to load print jobs:",me),r.value=[],o.value=0}finally{i.value=!1}},Ae=async()=>{u.value=!0;try{const me=await fc.getGlobalQueue(c.value,d.value);l.value=me.items,p.value=me.totalCount}catch(me){console.error("Failed to load queue:",me),l.value=[],p.value=0}finally{u.value=!1}},Ge=async(me,K)=>{try{await fc.removeFromQueue(me,K),h("Removed from Queue","Job removed from queue successfully"),await Ae()}catch(ye){console.error("Failed to remove from queue:",ye),g("Remove Failed",ye?.response?.data?.message||"Failed to remove job from queue")}},at=me=>({QUEUED:"info",PENDING:"warning",PRINTING:"success",COMPLETED:"success",FAILED:"error",CANCELLED:"warning"})[me]||"default",vt=me=>{switch(me){case"COMPLETED":return"success";case"FAILED":return"error";case"CANCELLED":return"warning";case"PRINTING":case"STARTING":return"primary";case"PAUSED":return"orange";case"ANALYZING":case"ANALYZED":case"QUEUED":return"info";case"PENDING":return"grey-darken-1";case"UNKNOWN":return"grey";default:return"grey"}},yt=me=>{switch(me){case"COMPLETED":return"check_circle";case"FAILED":return"error";case"CANCELLED":return"cancel";case"PRINTING":return"play_circle";case"STARTING":return"play_arrow";case"PAUSED":return"pause_circle";case"QUEUED":return"queue";case"PENDING":return"schedule";case"UNKNOWN":return"help_outline";default:return"help"}},tn=me=>me>=90?"success":me>=50?"primary":me>=25?"warning":"error",ut=me=>{const K=me/3600;return K<1?"success":K<4?"primary":K<8?"warning":"error"},Je=me=>me?b.floorOfPrinter(me)?.name||"No floor assigned":"Unknown",lt=()=>{Ie.value={searchPrinter:"",searchFile:"",startDate:"",endDate:"",page:1,pageSize:25},Ve.value=[],W.value=[],ne.value=[],H.value=[],q.value=[],ce.value=[],oe.value=[],a.value=1,we()},Vt=me=>{S.openDialog({jobId:me.id})},Xt=L(()=>v.printers),Ir=L(()=>v.printers.filter(me=>me.enabled)),$d=me=>me.status==="COMPLETED",jy=me=>me.status!=="PRINTING"&&me.status!=="STARTING",Du=me=>me.status==="PRINTING"||me.status==="PAUSED"||me.status==="FAILED"||me.status==="CANCELLED"||me.status==="UNKNOWN",P4=me=>me.status==="PRINTING"||me.status==="PAUSED"||me.status==="COMPLETED"||me.status==="CANCELLED"||me.status==="UNKNOWN",R4=me=>me.status==="PRINTING"||me.status==="PAUSED"||me.status==="COMPLETED"||me.status==="FAILED"||me.status==="UNKNOWN",A4=me=>me.status==="PRINTING"||me.status==="PAUSED"||me.status==="COMPLETED"||me.status==="FAILED"||me.status==="CANCELLED",O4=me=>me.status!=="PRINTING"&&me.status!=="STARTING",N4=me=>me.status==="COMPLETED"||me.status==="FAILED"||me.status==="CANCELLED",D4=async me=>{try{const K=await qr.reAnalyzeJob(me.id),ye=r.value.findIndex(Bt=>Bt.id===me.id);ye!==-1&&(r.value[ye]=K),h("Job Re-Analysis Started",`Re-analysis triggered for "${me.fileName}". The job will be analyzed in the background.`,5e3)}catch(K){console.error("Failed to re-analyze job:",K),g("Re-Analysis Failed",K?.response?.data?.message||K?.message||"Failed to trigger job re-analysis. Please try again.")}},L4=me=>{T.value=me,R.value=!0},F4=async()=>{if(T.value){I.value=!0;try{const me=await qr.setJobCompleted(T.value.id),K=r.value.findIndex(ye=>ye.id===T.value.id);K!==-1&&(r.value[K]=me),h("Job Marked as Completed",`Successfully marked "${T.value.fileName}" as completed.`,3e3),R.value=!1,T.value=null}catch(me){console.error("Failed to mark job as completed:",me),g("Mark as Completed Failed",me?.response?.data?.message||me?.message||"Failed to mark job as completed. Please try again.")}finally{I.value=!1}}},M4=()=>{R.value=!1,T.value=null},$4=me=>{A.value=me,x.value=!0},V4=async()=>{if(A.value){D.value=!0;try{const me=await qr.setJobFailed(A.value.id),K=r.value.findIndex(ye=>ye.id===A.value.id);K!==-1&&(r.value[K]=me),h("Job Marked as Failed",`Successfully marked "${A.value.fileName}" as failed.`,3e3),x.value=!1,A.value=null}catch(me){console.error("Failed to mark job as failed:",me),g("Mark as Failed Failed",me?.response?.data?.message||me?.message||"Failed to mark job as failed. Please try again.")}finally{D.value=!1}}},B4=()=>{x.value=!1,A.value=null},U4=me=>{V.value=me,B.value=!0},j4=async()=>{if(V.value){$.value=!0;try{const me=await qr.setJobCancelled(V.value.id),K=r.value.findIndex(ye=>ye.id===V.value.id);K!==-1&&(r.value[K]=me),h("Job Marked as Cancelled",`Successfully marked "${V.value.fileName}" as cancelled.`,3e3),B.value=!1,V.value=null}catch(me){console.error("Failed to mark job as cancelled:",me),g("Mark as Cancelled Failed",me?.response?.data?.message||me?.message||"Failed to mark job as cancelled. Please try again.")}finally{$.value=!1}}},z4=()=>{B.value=!1,V.value=null},H4=me=>{O.value=me,N.value=!0},W4=async()=>{if(O.value){M.value=!0;try{const me=await qr.setJobUnknown(O.value.id),K=r.value.findIndex(ye=>ye.id===O.value.id);K!==-1&&(r.value[K]=me),h("Job Marked as Unknown",`Successfully marked "${O.value.fileName}" as unknown.`,3e3),N.value=!1,O.value=null}catch(me){console.error("Failed to mark job as unknown:",me),g("Mark as Unknown Failed",me?.response?.data?.message||me?.message||"Failed to mark job as unknown. Please try again.")}finally{M.value=!1}}},G4=()=>{N.value=!1,O.value=null},q4=me=>{C.value=me,k.value=!1,w.value=!0},K4=async()=>{if(C.value){P.value=!0;try{const me=await qr.deleteJob(C.value.id,k.value),K=r.value.findIndex(Bt=>Bt.id===C.value.id);K!==-1&&(r.value.splice(K,1),o.value--);let ye=`Successfully deleted job "${C.value.fileName}".`;me?.fileDeleted?ye+=" File was also deleted from storage.":me?.remainingReferences?ye+=` File kept (used by ${me.remainingReferences} other job${me.remainingReferences>1?"s":""}).`:k.value&&!me?.fileDeleted&&(ye+=" File was kept (no other jobs reference it)."),h("Job Deleted",ye,4e3),w.value=!1,C.value=null,k.value=!1}catch(me){console.error("Failed to delete job:",me),g("Delete Failed",me?.response?.data?.message||me?.message||"Failed to delete job. Please try again.")}finally{P.value=!1}}},Y4=()=>{w.value=!1,C.value=null,k.value=!1},X4=me=>{X.value=me,ie.value=[],Y.value=!0},J4=async()=>{if(!(!X.value||ie.value.length===0)){Z.value=!0;try{for(const me of ie.value)await fc.addToQueue(me,X.value.id);h("Job Added to Queue",`Successfully added "${X.value.fileName}" to ${ie.value.length} printer queue(s).`,3e3),Y.value=!1,X.value=null,ie.value=[]}catch(me){console.error("Failed to add job to queue:",me),g("Add to Queue Failed",me?.response?.data?.message||me?.message||"Failed to add job to queue. Please try again.")}finally{Z.value=!1}}},Q4=()=>{Y.value=!1,X.value=null,ie.value=[]},XC=me=>{le.value=me,G.value=!0},Z4=async()=>{if(!(!le.value||!ee.value)){ue.value=!0;try{await fc.submitToPrinter(le.value.jobId,ee.value),h("Job Submitted to Printer",`Successfully submitted "${le.value.fileName}" to the printer.`,3e3),G.value=!1,le.value=null,ee.value=null}catch(me){console.error("Failed to submit job to printer:",me),g("Submit to Printer Failed",me?.response?.data?.message||me?.message||"Failed to submit job to printer. Please try again.")}finally{ue.value=!1}}},eB=()=>{G.value=!1,le.value=null,ee.value=null};return(me,K)=>(F(),Q(Qi,{fluid:"",class:"print-jobs-container"},{default:m(()=>[f($e,{class:"mb-4",elevation:"1"},{default:m(()=>[f(ot,{class:"d-flex align-center py-2"},{default:m(()=>[f(j,{class:"mr-2",color:"primary",size:"small"},{default:m(()=>[...K[24]||(K[24]=[_("search",-1)])]),_:1}),K[30]||(K[30]=E("span",{class:"text-subtitle-1"},"Search & Filters",-1)),f(Tt),f(sx,{modelValue:n.value,"onUpdate:modelValue":K[0]||(K[0]=ye=>n.value=ye),color:"primary",variant:"outlined",mandatory:"",divided:"",class:"mr-3"},{default:m(()=>[f(te,{value:"jobs",size:"small"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...K[25]||(K[25]=[_("history",-1)])]),_:1}),K[26]||(K[26]=_(" Jobs ",-1))]),_:1}),f(te,{value:"queue",size:"small"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...K[27]||(K[27]=[_("queue",-1)])]),_:1}),K[28]||(K[28]=_(" Queue ",-1)),p.value>0?(F(),Q(Rd,{key:0,content:p.value,color:"primary",inline:"",class:"ml-1"},null,8,["content"])):ae("",!0)]),_:1})]),_:1},8,["modelValue"]),f(te,{color:"primary",onClick:K[1]||(K[1]=ye=>n.value==="jobs"?we():Ae()),loading:n.value==="jobs"?i.value:u.value,variant:"elevated",size:"small"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...K[29]||(K[29]=[_("refresh",-1)])]),_:1})]),_:1},8,["loading"])]),_:1}),f(Ye,{class:"py-3"},{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Re,{cols:"12",md:"6"},{default:m(()=>[f(Xme,{modelValue:Ve.value,"onUpdate:modelValue":[K[2]||(K[2]=ye=>Ve.value=ye),re(pe)],items:Xt.value,"item-title":"name","item-value":"id",label:"Filter by printer","prepend-inner-icon":"print",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","closable-chips":"","hide-details":""},{chip:m(({item:ye,props:Bt})=>[f(Ke,ve(Bt,{size:"small",closable:""}),{default:m(()=>[_(U(ye.title),1)]),_:2},1040)]),_:1},8,["modelValue","items","onUpdate:modelValue"])]),_:1}),f(Re,{cols:"12",md:"6"},{default:m(()=>[f(Et,{modelValue:Ie.value.searchFile,"onUpdate:modelValue":K[3]||(K[3]=ye=>Ie.value.searchFile=ye),label:"Search by file","prepend-inner-icon":"description",variant:"outlined",density:"compact",clearable:"","hide-details":"",onInput:re(pe)},null,8,["modelValue","onInput"])]),_:1})]),_:1}),f(ct,{dense:"",class:"mt-2"},{default:m(()=>[f(Re,{cols:"12",md:"3"},{default:m(()=>[f(Et,{modelValue:Ie.value.startDate,"onUpdate:modelValue":K[4]||(K[4]=ye=>Ie.value.startDate=ye),label:"Start Date",type:"date",variant:"outlined",density:"compact","prepend-inner-icon":"event","hide-details":"",onInput:re(pe)},null,8,["modelValue","onInput"])]),_:1}),f(Re,{cols:"12",md:"3"},{default:m(()=>[f(Et,{modelValue:Ie.value.endDate,"onUpdate:modelValue":K[5]||(K[5]=ye=>Ie.value.endDate=ye),label:"End Date",type:"date",variant:"outlined",density:"compact","prepend-inner-icon":"event","hide-details":"",onInput:re(pe)},null,8,["modelValue","onInput"])]),_:1}),f(Re,{cols:"12",md:"3"},{default:m(()=>[f(Od,{modelValue:re(ne),"onUpdate:modelValue":K[6]||(K[6]=ye=>Ot(ne)?ne.value=ye:null),label:"Filter by Type"},null,8,["modelValue"])]),_:1}),re(J).length?(F(),Q(Re,{key:0,cols:"12",md:"3"},{default:m(()=>[f(Ad,{modelValue:re(W),"onUpdate:modelValue":K[7]||(K[7]=ye=>Ot(W)?W.value=ye:null),tags:re(J),label:"Filter by Tags"},null,8,["modelValue","tags"])]),_:1})):ae("",!0)]),_:1}),f(ct,{dense:"",class:"mt-2"},{default:m(()=>[f(Re,{cols:"12",md:"3"},{default:m(()=>[f(mi,{modelValue:H.value,"onUpdate:modelValue":K[8]||(K[8]=ye=>H.value=ye),items:_e.value,label:"Filter by Job Status","prepend-inner-icon":"info",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:ye,props:Bt})=>[f(Ke,ve(Bt,{color:vt(ye.value),size:"small",closable:""}),{default:m(()=>[_(U(ye.value),1)]),_:2},1040,["color"])]),_:1},8,["modelValue","items"])]),_:1}),f(Re,{cols:"12",md:"3"},{default:m(()=>[f(mi,{modelValue:q.value,"onUpdate:modelValue":K[9]||(K[9]=ye=>q.value=ye),items:["Disabled","Maintenance","Offline","Error","Paused","Operational","Printing"],label:"Filter by Printer State","prepend-inner-icon":"settings",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:ye,props:Bt})=>[f(Ke,ve(Bt,{size:"small",closable:""}),{default:m(()=>[_(U(ye.value),1)]),_:2},1040)]),_:1},8,["modelValue"])]),_:1}),f(Re,{cols:"12",md:"3"},{default:m(()=>[f(mi,{modelValue:ce.value,"onUpdate:modelValue":K[10]||(K[10]=ye=>ce.value=ye),items:he.value,label:"Filter by Material Type","prepend-inner-icon":"fiber_manual_record",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:ye,props:Bt})=>[f(Ke,ve(Bt,{size:"small",closable:"",color:"green"}),{default:m(()=>[_(U(ye.value),1)]),_:2},1040)]),_:1},8,["modelValue","items"])]),_:1}),f(Re,{cols:"12",md:"3"},{default:m(()=>[f(mi,{modelValue:oe.value,"onUpdate:modelValue":K[11]||(K[11]=ye=>oe.value=ye),items:Ue.value,label:"Filter by Printer Model","prepend-inner-icon":"print",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:ye,props:Bt})=>[f(Ke,ve(Bt,{size:"small",closable:"",color:"primary"}),{default:m(()=>[_(U(ye.value),1)]),_:2},1040)]),_:1},8,["modelValue","items"])]),_:1})]),_:1})]),_:1})]),_:1}),f($e,{elevation:"1"},{default:m(()=>[f(ot,{class:"d-flex align-center py-2"},{default:m(()=>[f(j,{class:"mr-2",color:"primary",size:"small"},{default:m(()=>[_(U(n.value==="jobs"?"list_alt":"queue"),1)]),_:1}),E("span",e0e,U(n.value==="jobs"?"Results":"Queue"),1),f(Tt),n.value==="jobs"&&!i.value&&o.value>0?(F(),fe("div",t0e,U((a.value-1)*s.value+1)+"-"+U(Math.min(a.value*s.value,o.value))+" of "+U(o.value),1)):ae("",!0),n.value==="queue"&&!u.value&&p.value>0?(F(),fe("div",n0e,U((c.value-1)*d.value+1)+"-"+U(Math.min(c.value*d.value,p.value))+" of "+U(p.value),1)):ae("",!0)]),_:1}),f(Ye,{class:"pa-0"},{default:m(()=>[f(Che,{"items-per-page":rt.value,"onUpdate:itemsPerPage":K[12]||(K[12]=ye=>rt.value=ye),page:$t.value,"onUpdate:page":K[13]||(K[13]=ye=>$t.value=ye),headers:tt.value,items:n.value==="jobs"?qe.value:l.value,"items-length":n.value==="jobs"?o.value:p.value,loading:n.value==="jobs"?i.value:u.value,search:n.value==="jobs"?Ee.value:"",class:"print-jobs-table","loading-text":n.value==="jobs"?"Loading print jobs...":"Loading queue...","no-data-text":n.value==="jobs"?"No print jobs found":"No jobs in queue","onUpdate:options":de},Fw({"item.status":m(({item:ye})=>[f(Ke,{color:n.value==="jobs"?vt(ye.status):at(ye.status),icon:n.value==="jobs"?yt(ye.status):void 0,size:"small",variant:"elevated"},{default:m(()=>[_(U(ye.status||"Unknown"),1)]),_:2},1032,["color","icon"])]),"item.createdAt":m(({item:ye})=>[E("div",r0e,[E("div",null,U(re(Vs)(ye.createdAt)),1),E("div",i0e,U(re(wS)(ye.createdAt)),1)])]),"item.printerName":m(({item:ye})=>[E("div",p0e,[f(jn,{size:"24",class:"mr-2",color:"primary"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...K[33]||(K[33]=[_("print",-1)])]),_:1})]),_:1}),E("div",null,[E("div",m0e,U(ye.printerName||`Printer ${ye.printerId}`),1),n.value==="jobs"?(F(),fe("div",h0e,U(Je(ye.printerId)),1)):(F(),fe("div",g0e," ID: "+U(ye.printerId),1))])])]),"item.fileName":m(({item:ye})=>[E("div",v0e,[f(j,{class:"mr-2",size:"small",color:"primary"},{default:m(()=>[...K[34]||(K[34]=[_("description",-1)])]),_:1}),E("div",null,[E("div",y0e,U(ye.fileName),1),n.value==="jobs"&&ye.metadata?.gcodePrintTimeSeconds?(F(),fe("div",b0e," Est. "+U(re(za)(ye.metadata.gcodePrintTimeSeconds)),1)):ae("",!0),n.value==="queue"&&ye.estimatedTimeSeconds?(F(),fe("div",S0e," Est. "+U(re(za)(ye.estimatedTimeSeconds)),1)):ae("",!0)])])]),"item.filament":m(({item:ye})=>[n.value==="jobs"&&(ye.metadata?.filamentUsedGrams||ye.metadata?.filamentUsedMm)?(F(),fe("div",E0e,[ye.metadata?.filamentUsedGrams?(F(),Q(Ke,{key:0,color:"green",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...K[36]||(K[36]=[_("fitness_center",-1)])]),_:1}),_(" "+U(Math.round(ye.metadata.filamentUsedGrams))+"g ",1)]),_:2},1024)):ae("",!0),ye.metadata?.filamentUsedMm?(F(),fe("div",x0e,U(Math.round(ye.metadata.filamentUsedMm/1e3))+"m ",1)):ae("",!0)])):n.value==="queue"&&ye.filamentGrams?(F(),fe("div",C0e,[f(Ke,{color:"purple",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...K[37]||(K[37]=[_("science",-1)])]),_:1}),_(" "+U(ye.filamentGrams.toFixed(1))+"g ",1)]),_:2},1024)])):(F(),fe("span",k0e,"-"))]),"item.actions":m(({item:ye})=>[n.value==="queue"?(F(),fe("div",_0e,[f(te,{icon:"send",size:"small",variant:"text",color:"success",onClick:Bt=>XC(ye)},{default:m(()=>[f(j,null,{default:m(()=>[...K[38]||(K[38]=[_("send",-1)])]),_:1}),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...K[39]||(K[39]=[_(" Submit to printer ",-1)])]),_:1})]),_:1},8,["onClick"]),f(te,{icon:"delete",size:"small",variant:"text",color:"error",onClick:Bt=>Ge(ye.printerId,ye.jobId)},{default:m(()=>[f(j,null,{default:m(()=>[...K[40]||(K[40]=[_("delete",-1)])]),_:1}),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...K[41]||(K[41]=[_(" Remove from queue ",-1)])]),_:1})]),_:1},8,["onClick"])])):(F(),Q(ls,{key:1},{activator:m(({props:Bt})=>[f(te,ve({icon:"",size:"small",variant:"text"},Bt),{default:m(()=>[f(j,null,{default:m(()=>[...K[42]||(K[42]=[_("more_vert",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(Mr,null,{default:m(()=>[f(wt,{onClick:Bt=>Vt(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[43]||(K[43]=[_("info",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[44]||(K[44]=[_("View Details",-1)])]),_:1})]),_:1},8,["onClick"]),f(wt,{onClick:Bt=>X4(ye),disabled:!$d(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[45]||(K[45]=[_("playlist_add",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[46]||(K[46]=[_("Add to Queue",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(wt,{onClick:Bt=>XC(ye),disabled:!N4(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[47]||(K[47]=[_("send",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[48]||(K[48]=[_("Submit to Printer",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(mt),f(wt,{onClick:Bt=>D4(ye),disabled:!jy(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[49]||(K[49]=[_("refresh",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[50]||(K[50]=[_("Re-Analyze",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(wt,{onClick:Bt=>L4(ye),disabled:!Du(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[51]||(K[51]=[_("check_circle",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[52]||(K[52]=[_("Mark as Completed",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(wt,{onClick:Bt=>$4(ye),disabled:!P4(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[53]||(K[53]=[_("error",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[54]||(K[54]=[_("Mark as Failed",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(wt,{onClick:Bt=>U4(ye),disabled:!R4(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[55]||(K[55]=[_("cancel",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[56]||(K[56]=[_("Mark as Cancelled",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(wt,{onClick:Bt=>H4(ye),disabled:!A4(ye)},{prepend:m(()=>[f(j,null,{default:m(()=>[...K[57]||(K[57]=[_("help",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[58]||(K[58]=[_("Mark as Unknown",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(mt),f(wt,{onClick:Bt=>q4(ye),disabled:!O4(ye),class:"text-error"},{prepend:m(()=>[f(j,{color:"error"},{default:m(()=>[...K[59]||(K[59]=[_("delete",-1)])]),_:1})]),default:m(()=>[f(Gt,null,{default:m(()=>[...K[60]||(K[60]=[_("Delete Job",-1)])]),_:1})]),_:1},8,["onClick","disabled"])]),_:2},1024)]),_:2},1024))]),loading:m(()=>[f(Nhe,{type:"table-row@5"})]),_:2},[n.value==="jobs"?{name:"item.thumbnail",fn:m(({item:ye})=>[f(Z1e,{"job-id":ye.id},null,8,["job-id"])]),key:"0"}:void 0,n.value==="queue"?{name:"item.queuePosition",fn:m(({item:ye})=>[f(Ke,{size:"small",color:"info",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...K[31]||(K[31]=[_("format_list_numbered",-1)])]),_:1}),_(" Position "+U(ye.queuePosition),1)]),_:2},1024)]),key:"1"}:void 0,n.value==="jobs"?{name:"item.endedAt",fn:m(({item:ye})=>[ye.endedAt?(F(),fe("div",s0e,[E("div",null,U(re(Vs)(ye.endedAt)),1),E("div",a0e,U(re(wS)(ye.endedAt)),1)])):(F(),fe("span",o0e,"-"))]),key:"2"}:void 0,n.value==="jobs"?{name:"item.progress",fn:m(({item:ye})=>[ye.progress!==null?(F(),fe("div",l0e,[f(ni,{"model-value":ye.progress,color:tn(ye.progress),height:"20",rounded:"",class:"mb-1"},{default:m(()=>[E("span",u0e,U(Math.round(ye.progress))+"% ",1)]),_:2},1032,["model-value","color"])])):(F(),fe("span",c0e,"-"))]),key:"3"}:void 0,n.value==="jobs"?{name:"item.duration",fn:m(({item:ye})=>[ye.statistics?.actualPrintTimeSeconds?(F(),fe("div",d0e,[f(Ke,{color:ut(ye.statistics.actualPrintTimeSeconds),size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...K[32]||(K[32]=[_("schedule",-1)])]),_:1}),_(" "+U(re(za)(ye.statistics.actualPrintTimeSeconds)),1)]),_:2},1032,["color"])])):(F(),fe("span",f0e,"-"))]),key:"4"}:void 0,n.value==="jobs"?{name:"item.reason",fn:m(({item:ye})=>[ye.statusReason?(F(),Q(ln,{key:0,location:"top"},{activator:m(({props:Bt})=>[f(j,ve(Bt,{color:"warning",size:"small"}),{default:m(()=>[...K[35]||(K[35]=[_("info",-1)])]),_:1},16)]),default:m(()=>[E("span",null,U(ye.statusReason),1)]),_:2},1024)):(F(),fe("span",w0e,"-"))]),key:"5"}:void 0]),1032,["items-per-page","page","headers","items","items-length","loading","search","loading-text","no-data-text"])]),_:1})]),_:1}),n.value==="jobs"&&!i.value&&o.value===0?(F(),Q($e,{key:0,class:"mt-4",elevation:"1"},{default:m(()=>[f(Ye,{class:"text-center py-8"},{default:m(()=>[f(j,{size:"48",color:"grey-lighten-1",class:"mb-3"},{default:m(()=>[...K[61]||(K[61]=[_("work_off",-1)])]),_:1}),K[64]||(K[64]=E("h3",{class:"text-subtitle-1 mb-2"},"No Print Jobs Found",-1)),K[65]||(K[65]=E("p",{class:"text-body-2 text-medium-emphasis mb-3"}," Try adjusting your search criteria or date range ",-1)),f(te,{color:"primary",size:"small",onClick:lt},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...K[62]||(K[62]=[_("clear_all",-1)])]),_:1}),K[63]||(K[63]=_(" Clear Filters ",-1))]),_:1})]),_:1})]),_:1})):ae("",!0),f(Ai,{modelValue:R.value,"onUpdate:modelValue":K[14]||(K[14]=ye=>R.value=ye),"max-width":"500"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-success text-on-success"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[66]||(K[66]=[_("check_circle",-1)])]),_:1}),K[67]||(K[67]=E("span",null,"Mark Job as Completed?",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[69]||(K[69]=E("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job as completed? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[K[68]||(K[68]=E("strong",null,"Job:",-1)),_(" "+U(T.value?.fileName),1)]),_:1}),K[70]||(K[70]=E("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to COMPLETED and update the end time to now. ",-1))]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:M4,disabled:I.value},{default:m(()=>[...K[71]||(K[71]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"success",variant:"elevated",onClick:F4,loading:I.value},{default:m(()=>[...K[72]||(K[72]=[_(" Mark as Completed ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ai,{modelValue:x.value,"onUpdate:modelValue":K[15]||(K[15]=ye=>x.value=ye),"max-width":"500"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-error text-on-error"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[73]||(K[73]=[_("error",-1)])]),_:1}),K[74]||(K[74]=E("span",null,"Mark Job as Failed?",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[76]||(K[76]=E("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job as failed? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[K[75]||(K[75]=E("strong",null,"Job:",-1)),_(" "+U(A.value?.fileName),1)]),_:1}),K[77]||(K[77]=E("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to FAILED and update the end time to now. ",-1))]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:B4,disabled:D.value},{default:m(()=>[...K[78]||(K[78]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"error",variant:"elevated",onClick:V4,loading:D.value},{default:m(()=>[...K[79]||(K[79]=[_(" Mark as Failed ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ai,{modelValue:B.value,"onUpdate:modelValue":K[16]||(K[16]=ye=>B.value=ye),"max-width":"500"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-warning text-on-warning"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[80]||(K[80]=[_("cancel",-1)])]),_:1}),K[81]||(K[81]=E("span",null,"Mark Job as Cancelled?",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[83]||(K[83]=E("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job as cancelled? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[K[82]||(K[82]=E("strong",null,"Job:",-1)),_(" "+U(V.value?.fileName),1)]),_:1}),K[84]||(K[84]=E("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to CANCELLED and update the end time to now. ",-1))]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:z4,disabled:$.value},{default:m(()=>[...K[85]||(K[85]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"warning",variant:"elevated",onClick:j4,loading:$.value},{default:m(()=>[...K[86]||(K[86]=[_(" Mark as Cancelled ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ai,{modelValue:N.value,"onUpdate:modelValue":K[17]||(K[17]=ye=>N.value=ye),"max-width":"500"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-grey text-on-grey"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[87]||(K[87]=[_("help",-1)])]),_:1}),K[88]||(K[88]=E("span",null,"Mark Job as Unknown?",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[90]||(K[90]=E("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job status as unknown? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[K[89]||(K[89]=E("strong",null,"Job:",-1)),_(" "+U(O.value?.fileName),1)]),_:1}),K[91]||(K[91]=E("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to UNKNOWN. ",-1))]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:G4,disabled:M.value},{default:m(()=>[...K[92]||(K[92]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"grey",variant:"elevated",onClick:W4,loading:M.value},{default:m(()=>[...K[93]||(K[93]=[_(" Mark as Unknown ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ai,{modelValue:Y.value,"onUpdate:modelValue":K[19]||(K[19]=ye=>Y.value=ye),"max-width":"600"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-primary text-on-primary"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[94]||(K[94]=[_("playlist_add",-1)])]),_:1}),K[95]||(K[95]=E("span",null,"Add Job to Queue",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[97]||(K[97]=E("p",{class:"text-body-1 mb-3"}," Select which printer(s) should queue this job: ",-1)),f(kt,{type:"info",density:"compact",class:"mb-3"},{default:m(()=>[K[96]||(K[96]=E("strong",null,"Job:",-1)),_(" "+U(X.value?.fileName),1)]),_:1}),f(mi,{modelValue:ie.value,"onUpdate:modelValue":K[18]||(K[18]=ye=>ie.value=ye),items:Ir.value,"item-title":"name","item-value":"id",label:"Select Printer(s)",multiple:"",chips:"","prepend-inner-icon":"print",variant:"outlined",density:"comfortable",hint:"You can select multiple printers","persistent-hint":""},{chip:m(({item:ye,props:Bt})=>[f(Ke,ve(Bt,{color:"primary",closable:""}),{default:m(()=>[_(U(ye.title),1)]),_:2},1040)]),_:1},8,["modelValue","items"])]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:Q4,disabled:Z.value},{default:m(()=>[...K[98]||(K[98]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"primary",variant:"elevated",onClick:J4,loading:Z.value,disabled:ie.value.length===0},{default:m(()=>[_(" Add to Queue ("+U(ie.value.length)+") ",1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ai,{modelValue:w.value,"onUpdate:modelValue":K[21]||(K[21]=ye=>w.value=ye),"max-width":"500"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-error text-on-error"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[99]||(K[99]=[_("warning",-1)])]),_:1}),K[100]||(K[100]=E("span",null,"Delete Print Job?",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[103]||(K[103]=E("p",{class:"text-body-1 mb-2"}," Are you sure you want to delete this print job? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[K[101]||(K[101]=E("strong",null,"Job:",-1)),_(" "+U(C.value?.fileName),1)]),_:1}),C.value?.fileStorageId?(F(),Q(Bn,{key:0,modelValue:k.value,"onUpdate:modelValue":K[20]||(K[20]=ye=>k.value=ye),label:"Also delete the file from storage",color:"error",density:"compact","hide-details":"",class:"mb-2"},{label:m(()=>[...K[102]||(K[102]=[E("div",{class:"text-body-2"},[_(" Also delete the file from storage "),E("div",{class:"text-caption text-medium-emphasis"}," (File will only be deleted if not used by other jobs) ")],-1)])]),_:1},8,["modelValue"])):ae("",!0),K[104]||(K[104]=E("p",{class:"text-body-2 text-medium-emphasis"}," This action cannot be undone. All job data and metadata will be permanently removed. ",-1))]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:Y4,disabled:P.value},{default:m(()=>[...K[105]||(K[105]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"error",variant:"elevated",onClick:K4,loading:P.value},{default:m(()=>[...K[106]||(K[106]=[_(" Delete Job ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ai,{modelValue:G.value,"onUpdate:modelValue":K[23]||(K[23]=ye=>G.value=ye),"max-width":"500"},{default:m(()=>[f($e,null,{default:m(()=>[f(ot,{class:"d-flex align-center bg-success text-on-success"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...K[107]||(K[107]=[_("print",-1)])]),_:1}),K[108]||(K[108]=E("span",null,"Submit Job to Printer",-1))]),_:1}),f(Ye,{class:"pt-4"},{default:m(()=>[K[110]||(K[110]=E("p",{class:"text-body-1 mb-2"}," Select the printer you want to submit this job to: ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[K[109]||(K[109]=E("strong",null,"Job:",-1)),_(" "+U(le.value?.fileName),1)]),_:1}),f(mi,{modelValue:ee.value,"onUpdate:modelValue":K[22]||(K[22]=ye=>ee.value=ye),items:Ir.value,"item-title":"name","item-value":"id",label:"Select Printer","prepend-inner-icon":"print",variant:"outlined",density:"comfortable"},null,8,["modelValue","items"])]),_:1}),f(mt),f(rn,null,{default:m(()=>[f(Tt),f(te,{variant:"text",onClick:eB,disabled:ue.value},{default:m(()=>[...K[111]||(K[111]=[_(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"success",variant:"elevated",onClick:Z4,loading:ue.value,disabled:!ee.value},{default:m(()=>[...K[112]||(K[112]=[_(" Submit to Printer ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}))}}),_4=Cn(T0e,[["__scopeId","data-v-8c0eba31"]]),I0e=Be({name:"PrintJobsView",components:{PrintJobs:_4}});function P0e(e,t,n,r,i,a){const s=_4;return F(),Q(Qi,{fluid:""},{default:m(()=>[f(s)]),_:1})}const R0e=Cn(I0e,[["render",P0e]]);class nh extends Ei{static async listFiles(){return this.get("/api/v2/file-storage")}static async getFileMetadata(t){const n=`/api/v2/file-storage/${t}`;return this.get(n)}static async deleteFile(t){const n=`/api/v2/file-storage/${t}`;return this.delete(n)}static getThumbnailUrl(t,n=0){return`/api/v2/file-storage/${t}/thumbnail/${n}`}static async uploadFile(t){const n=new FormData;return n.append("file",t),(await this.postUpload("/api/v2/file-storage/upload",n,{headers:{"Content-Type":"multipart/form-data"}})).data}}const A0e={class:"d-flex align-center justify-space-between"},O0e={key:0,class:"mt-4"},N0e={class:"text-caption"},D0e={class:"d-flex align-center"},L0e={class:"text-body-2 font-weight-medium"},F0e={class:"text-caption text-medium-emphasis"},M0e={key:1,class:"text-medium-emphasis"},$0e={key:1,class:"text-medium-emphasis"},V0e={key:0,class:"text-caption"},B0e={key:0},U0e={key:1},j0e={key:1,class:"text-medium-emphasis"},z0e={key:0,class:"text-caption"},H0e={key:1,class:"text-medium-emphasis"},W0e={key:0,class:"text-body-2"},G0e={key:1,class:"text-medium-emphasis"},q0e={key:0,class:"text-body-2"},K0e={key:1,class:"text-medium-emphasis"},Y0e={key:1,class:"text-medium-emphasis"},X0e={class:"text-body-2"},J0e={class:"text-caption text-medium-emphasis"},Q0e={class:"mb-2"},Z0e={class:"mb-2"},eSe={class:"mb-2"},tSe={class:"mb-2"},nSe={class:"mb-2"},rSe={class:"mb-2"},iSe={key:0},sSe={key:0,class:"mb-2"},aSe={key:1,class:"mb-2"},oSe={key:2,class:"mb-2"},lSe={key:3,class:"mb-2"},uSe={key:4,class:"mb-2"},cSe={key:1,class:"text-medium-emphasis"},dSe={class:"text-h6 mb-3"},fSe={class:"d-flex flex-wrap ga-2"},pSe={class:"mb-4"},mSe=Be({__name:"FilesView",setup(e){const t=en(),n=wn(),r=z([]),i=z(!1),a=z(""),s=z(!1),o=z(null),l=z(!1),u=z(null),c=z([]),d=z(!1),p=z(!1),h=z(!1),g=z([]),v=z(null),y=[{title:"File Name",key:"fileName",sortable:!0},{title:"Type",key:"printerType",sortable:!1},{title:"Material",key:"material",sortable:!1},{title:"Temps",key:"temperatures",sortable:!1},{title:"Plates",key:"plates",sortable:!1},{title:"Model",key:"printerModel",sortable:!1},{title:"Print Time",key:"printTime",sortable:!1},{title:"Filament",key:"filament",sortable:!1},{title:"Thumbnails",key:"thumbnailCount",sortable:!1},{title:"Created",key:"createdAt",sortable:!0},{title:"Actions",key:"actions",sortable:!1,align:"end"}],b=L(()=>r.value.length),S=L(()=>n.printers.filter(N=>N.enabled)),w=L(()=>{if(!a.value)return r.value;const N=a.value.toLowerCase();return r.value.filter(O=>O.fileName.toLowerCase().includes(N)||O.fileHash.toLowerCase().includes(N)||O.fileStorageId.toLowerCase().includes(N))});Nt(async()=>{await C(),await n.loadPrinters()});const C=async()=>{i.value=!0;try{const N=await nh.listFiles();r.value=N.files}catch(N){console.error("Failed to load files:",N),t.error("Failed to load files")}finally{i.value=!1}},P=N=>{o.value=N,s.value=!0},k=async N=>{if(confirm(`Delete file "${N.fileName}"? This cannot be undone.`))try{await nh.deleteFile(N.fileStorageId),t.info("File deleted successfully"),await C()}catch(O){console.error("Failed to delete file:",O),t.error("Failed to delete file")}},R=N=>{h.value=!0},T=N=>{h.value=!1},I=async N=>{h.value=!1;const O=Array.from(N.dataTransfer?.files||[]);await A(O)},x=async N=>{const O=N.target,M=Array.from(O.files||[]);await A(M),v.value&&(v.value.value="")},A=async N=>{if(N.length!==0){p.value=!0,g.value=N.map(O=>({fileName:O.name,percent:0}));for(let O=0;O<N.length;O++){const M=N[O];try{await nh.uploadFile(M),g.value[O].percent=100,t.info(`Uploaded ${M.name}`)}catch(Y){console.error(`Failed to upload ${M.name}:`,Y),g.value[O].error="Failed",g.value[O].percent=100,t.error(`Failed to upload ${M.name}`)}}p.value=!1,setTimeout(()=>{g.value=[],C()},2e3)}},D=N=>{u.value=N,c.value=[],l.value=!0},B=N=>{const O=c.value.indexOf(N);O>-1?c.value.splice(O,1):c.value.push(N)},V=async()=>{if(!u.value||c.value.length===0)return;d.value=!0;let N=0,O=0;try{for(const M of c.value)try{const Y=await qr.createFromFile(u.value.fileStorageId,M);await fc.addToQueue(M,Y.id),N++}catch(Y){console.error(`Failed to queue to printer ${M}:`,Y),O++}N>0&&t.info(`Queued file to ${N} printer(s)`),O>0&&t.error(`Failed to queue to ${O} printer(s)`),l.value=!1,u.value=null,c.value=[]}catch(M){console.error("Failed to queue file:",M),t.error("Failed to queue file")}finally{d.value=!1}},$=(N,O=0)=>nh.getThumbnailUrl(N,O);return(N,O)=>(F(),Q(Qi,{fluid:""},{default:m(()=>[f(ct,{class:"mb-6"},{default:m(()=>[f(Re,{cols:"12"},{default:m(()=>[E("div",A0e,[b.value>0?(F(),Q(Ke,{key:0,color:"primary",variant:"elevated",size:"large",class:"px-4"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...O[8]||(O[8]=[_("folder",-1)])]),_:1}),_(" "+U(b.value)+" files ",1)]),_:1})):ae("",!0)])]),_:1})]),_:1}),f($e,{class:Te(["mb-6 upload-drop-zone",{"drag-over":h.value}]),elevation:"2",onDragover:mn(R,["prevent"]),onDragleave:mn(T,["prevent"]),onDrop:mn(I,["prevent"])},{default:m(()=>[f(Ye,{class:"text-center pa-6"},{default:m(()=>[f(j,{size:"64",color:"primary",class:"mb-4"},{default:m(()=>[...O[9]||(O[9]=[_("cloud_upload",-1)])]),_:1}),O[12]||(O[12]=E("h3",{class:"text-h6 mb-2"},"Upload Files",-1)),O[13]||(O[13]=E("p",{class:"text-body-2 text-medium-emphasis mb-4"}," Drag and drop files here or click to browse ",-1)),E("input",{ref_key:"fileInput",ref:v,type:"file",multiple:"",accept:".gcode,.3mf,.bgcode",style:{display:"none"},onChange:x},null,544),f(te,{color:"primary",variant:"elevated",onClick:O[0]||(O[0]=M=>v.value?.click()),loading:p.value},{default:m(()=>[f(j,{start:""},{default:m(()=>[...O[10]||(O[10]=[_("folder_open",-1)])]),_:1}),O[11]||(O[11]=_(" Select Files ",-1))]),_:1},8,["loading"]),g.value.length>0?(F(),fe("div",O0e,[(F(!0),fe(Ne,null,Zt(g.value,(M,Y)=>(F(),Q(ni,{key:Y,"model-value":M.percent,color:M.error?"error":"primary",height:"25",class:"mb-2"},{default:m(()=>[E("div",N0e,U(M.fileName)+" - "+U(M.error||`${M.percent}%`),1)]),_:2},1032,["model-value","color"]))),128))])):ae("",!0)]),_:1})]),_:1},8,["class"]),f($e,{elevation:"2"},{default:m(()=>[f(ot,{class:"d-flex align-center pb-0"},{default:m(()=>[f(j,{class:"mr-3",color:"primary"},{default:m(()=>[...O[14]||(O[14]=[_("inventory_2",-1)])]),_:1}),O[17]||(O[17]=E("span",{class:"text-h6"},"File Storage",-1)),f(Tt),f(Et,{modelValue:a.value,"onUpdate:modelValue":O[1]||(O[1]=M=>a.value=M),"prepend-inner-icon":"search",label:"Search files",variant:"outlined",density:"compact","hide-details":"",clearable:"",class:"mr-4",style:{"max-width":"300px"}},null,8,["modelValue"]),f(te,{color:"primary",onClick:C,loading:i.value,variant:"elevated"},{default:m(()=>[f(j,{left:""},{default:m(()=>[...O[15]||(O[15]=[_("refresh",-1)])]),_:1}),O[16]||(O[16]=_(" Refresh ",-1))]),_:1},8,["loading"])]),_:1}),f(Ye,null,{default:m(()=>[f(rV,{headers:y,items:w.value,loading:i.value,class:"files-table","loading-text":"Loading files...","no-data-text":"No files found","items-per-page":25},{"item.fileName":m(({item:M})=>[E("div",D0e,[f(jn,{size:"40",class:"mr-3",rounded:""},{default:m(()=>[M.thumbnailCount>0?(F(),Q(ri,{key:0,src:$(M.fileStorageId),cover:""},{error:m(()=>[f(j,null,{default:m(()=>[...O[18]||(O[18]=[_("description",-1)])]),_:1})]),_:1},8,["src"])):(F(),Q(j,{key:1,color:"primary"},{default:m(()=>[...O[19]||(O[19]=[_("description",-1)])]),_:1}))]),_:2},1024),E("div",null,[E("div",L0e,U(M.metadata?._originalFileName||M.fileName),1),E("div",F0e,U(M.fileFormat.toUpperCase())+" • "+U(re(ip)(M.fileSize)),1)])])]),"item.printerType":m(({item:M})=>[re(VI)(M.metadata||{},M.fileFormat)?(F(),Q(jn,{key:0,size:"32",rounded:"0"},{default:m(()=>[f(ri,{src:re(VI)(M.metadata||{},M.fileFormat),contain:""},null,8,["src"])]),_:2},1024)):(F(),fe("span",M0e,"-"))]),"item.material":m(({item:M})=>[M.metadata?.filamentType?(F(),Q(Ke,{key:0,size:"small",variant:"tonal",color:"orange"},{default:m(()=>[_(U(M.metadata.filamentType),1)]),_:2},1024)):(F(),fe("span",$0e,"-"))]),"item.temperatures":m(({item:M})=>[M.metadata?.nozzleTemperature||M.metadata?.bedTemperature?(F(),fe("div",V0e,[M.metadata.nozzleTemperature?(F(),fe("div",B0e," 🔥 "+U(M.metadata.nozzleTemperature)+"°C ",1)):ae("",!0),M.metadata.bedTemperature?(F(),fe("div",U0e," 🛏️ "+U(M.metadata.bedTemperature)+"°C ",1)):ae("",!0)])):(F(),fe("span",j0e,"-"))]),"item.plates":m(({item:M})=>[f(Ke,{size:"small",variant:"tonal",color:"blue"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...O[20]||(O[20]=[_("layers",-1)])]),_:1}),_(" "+U(M.metadata?.totalPlates??1),1)]),_:2},1024)]),"item.printerModel":m(({item:M})=>[M.metadata?.printerModel?(F(),fe("div",z0e,U(M.metadata.printerModel),1)):(F(),fe("span",H0e,"-"))]),"item.printTime":m(({item:M})=>[M.metadata?.gcodePrintTimeSeconds?(F(),fe("div",W0e,[f(Ke,{color:"info",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...O[21]||(O[21]=[_("schedule",-1)])]),_:1}),_(" "+U(re(za)(M.metadata.gcodePrintTimeSeconds)),1)]),_:2},1024)])):(F(),fe("span",G0e,"-"))]),"item.filament":m(({item:M})=>[M.metadata?.filamentUsedGrams?(F(),fe("div",q0e,[f(Ke,{color:"purple",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...O[22]||(O[22]=[_("science",-1)])]),_:1}),_(" "+U(M.metadata.filamentUsedGrams.toFixed(1))+"g ",1)]),_:2},1024)])):(F(),fe("span",K0e,"-"))]),"item.thumbnailCount":m(({item:M})=>[M.thumbnailCount>0?(F(),Q(Ke,{key:0,size:"small",color:"success",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...O[23]||(O[23]=[_("image",-1)])]),_:1}),_(" "+U(M.thumbnailCount),1)]),_:2},1024)):(F(),fe("span",Y0e,"None"))]),"item.createdAt":m(({item:M})=>[E("div",X0e,[E("div",null,U(re(Vs)(M.createdAt)),1),E("div",J0e,U(re(wS)(M.createdAt)),1)])]),"item.actions":m(({item:M})=>[f(te,{icon:"add_to_queue",size:"small",variant:"text",color:"primary",onClick:Y=>D(M)},{default:m(()=>[f(j,null,{default:m(()=>[...O[24]||(O[24]=[_("add_to_queue",-1)])]),_:1}),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...O[25]||(O[25]=[_(" Add to queue ",-1)])]),_:1})]),_:1},8,["onClick"]),f(te,{icon:"visibility",size:"small",variant:"text",color:"primary",onClick:Y=>P(M)},{default:m(()=>[f(j,null,{default:m(()=>[...O[26]||(O[26]=[_("visibility",-1)])]),_:1}),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...O[27]||(O[27]=[_(" View details ",-1)])]),_:1})]),_:1},8,["onClick"]),f(te,{icon:"delete",size:"small",variant:"text",color:"error",onClick:Y=>k(M)},{default:m(()=>[f(j,null,{default:m(()=>[...O[28]||(O[28]=[_("delete",-1)])]),_:1}),f(ln,{activator:"parent",location:"top"},{default:m(()=>[...O[29]||(O[29]=[_(" Delete file ",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1},8,["items","loading"])]),_:1})]),_:1}),f(Ai,{modelValue:s.value,"onUpdate:modelValue":O[4]||(O[4]=M=>s.value=M),"max-width":"800"},{default:m(()=>[o.value?(F(),Q($e,{key:0},{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...O[30]||(O[30]=[_("description",-1)])]),_:1}),O[31]||(O[31]=_(" File Details ",-1)),f(Tt),f(te,{icon:"close",variant:"text",onClick:O[2]||(O[2]=M=>s.value=!1)})]),_:1}),f(Ye,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Re,{cols:"12",md:"6"},{default:m(()=>[O[40]||(O[40]=E("h3",{class:"text-h6 mb-3"},"File Information",-1)),E("div",Q0e,[O[32]||(O[32]=E("strong",null,"Name:",-1)),_(" "+U(o.value.metadata?._originalFileName||o.value.fileName),1)]),E("div",Z0e,[O[33]||(O[33]=E("strong",null,"Format:",-1)),_(" "+U(o.value.fileFormat.toUpperCase()),1)]),E("div",eSe,[O[34]||(O[34]=E("strong",null,"Size:",-1)),_(" "+U(re(ip)(o.value.fileSize)),1)]),E("div",tSe,[O[35]||(O[35]=E("strong",null,"Hash:",-1)),O[36]||(O[36]=_()),E("code",null,U(o.value.fileHash),1)]),E("div",nSe,[O[37]||(O[37]=E("strong",null,"Storage ID:",-1)),O[38]||(O[38]=_()),E("code",null,U(o.value.fileStorageId),1)]),E("div",rSe,[O[39]||(O[39]=E("strong",null,"Created:",-1)),_(" "+U(re(Vs)(o.value.createdAt)),1)])]),_:1}),f(Re,{cols:"12",md:"6"},{default:m(()=>[O[46]||(O[46]=E("h3",{class:"text-h6 mb-3"},"Print Metadata",-1)),o.value.metadata?(F(),fe("div",iSe,[o.value.metadata.gcodePrintTimeSeconds?(F(),fe("div",sSe,[O[41]||(O[41]=E("strong",null,"Print Time:",-1)),_(" "+U(re(za)(o.value.metadata.gcodePrintTimeSeconds)),1)])):ae("",!0),o.value.metadata.filamentUsedGrams?(F(),fe("div",aSe,[O[42]||(O[42]=E("strong",null,"Filament:",-1)),_(" "+U(o.value.metadata.filamentUsedGrams.toFixed(1))+"g ",1)])):ae("",!0),o.value.metadata.nozzleDiameterMm?(F(),fe("div",oSe,[O[43]||(O[43]=E("strong",null,"Nozzle Diameter:",-1)),_(" "+U(o.value.metadata.nozzleDiameterMm)+"mm ",1)])):ae("",!0),o.value.metadata.layerHeight?(F(),fe("div",lSe,[O[44]||(O[44]=E("strong",null,"Layer Height:",-1)),_(" "+U(o.value.metadata.layerHeight)+"mm ",1)])):ae("",!0),o.value.metadata.totalLayers?(F(),fe("div",uSe,[O[45]||(O[45]=E("strong",null,"Total Layers:",-1)),_(" "+U(o.value.metadata.totalLayers),1)])):ae("",!0)])):(F(),fe("div",cSe," No metadata available "))]),_:1}),o.value.thumbnailCount>0?(F(),Q(Re,{key:0,cols:"12"},{default:m(()=>[E("h3",dSe,"Thumbnails ("+U(o.value.thumbnailCount)+")",1),E("div",fSe,[(F(!0),fe(Ne,null,Zt(o.value.thumbnailCount,M=>(F(),Q(ri,{key:M,src:$(o.value.fileStorageId,M-1),width:"150",height:"150",cover:"",class:"rounded"},null,8,["src"]))),128))])]),_:1})):ae("",!0)]),_:1})]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{color:"primary",variant:"text",onClick:O[3]||(O[3]=M=>s.value=!1)},{default:m(()=>[...O[47]||(O[47]=[_(" Close ",-1)])]),_:1})]),_:1})]),_:1})):ae("",!0)]),_:1},8,["modelValue"]),f(Ai,{modelValue:l.value,"onUpdate:modelValue":O[7]||(O[7]=M=>l.value=M),"max-width":"600"},{default:m(()=>[u.value?(F(),Q($e,{key:0},{default:m(()=>[f(ot,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...O[48]||(O[48]=[_("add_to_queue",-1)])]),_:1}),O[49]||(O[49]=_(" Queue File to Printers ",-1)),f(Tt),f(te,{icon:"close",variant:"text",onClick:O[5]||(O[5]=M=>l.value=!1)})]),_:1}),f(Ye,null,{default:m(()=>[E("div",pSe,[O[50]||(O[50]=E("strong",null,"File:",-1)),_(" "+U(u.value.metadata?._originalFileName||u.value.fileName),1)]),f(kt,{type:"info",variant:"tonal",class:"mb-4"},{default:m(()=>[...O[51]||(O[51]=[_(" Select one or more printers to queue this file to ",-1)])]),_:1}),f(Mr,null,{default:m(()=>[(F(!0),fe(Ne,null,Zt(S.value,M=>(F(),Q(wt,{key:M.id,onClick:Y=>B(M.id)},{prepend:m(()=>[f(Bn,{"model-value":c.value.includes(M.id),onClick:mn(Y=>B(M.id),["stop"])},null,8,["model-value","onClick"])]),default:m(()=>[f(Gt,null,{default:m(()=>[_(U(M.name),1)]),_:2},1024),f(Ou,null,{default:m(()=>[_(U(re(ss)(M.printerType)),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),S.value.length===0?(F(),Q(kt,{key:0,type:"warning",variant:"tonal"},{default:m(()=>[...O[52]||(O[52]=[_(" No printers available ",-1)])]),_:1})):ae("",!0)]),_:1}),f(rn,null,{default:m(()=>[f(Tt),f(te,{color:"grey",variant:"text",onClick:O[6]||(O[6]=M=>l.value=!1)},{default:m(()=>[...O[53]||(O[53]=[_(" Cancel ",-1)])]),_:1}),f(te,{color:"primary",variant:"elevated",disabled:c.value.length===0,onClick:V,loading:d.value},{default:m(()=>[_(" Queue to "+U(c.value.length)+" Printer(s) ",1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1})):ae("",!0)]),_:1},8,["modelValue"])]),_:1}))}}),hSe=Cn(mSe,[["__scopeId","data-v-791eeaf8"]]),gSe={class:"d-flex align-center mb-2"},vSe={class:"d-flex align-center mb-2"},ySe={class:"d-flex align-center"},bSe=Be({__name:"ExperimentalSettings",setup(e){const t=z(!1),n=z(!1),r=z(!1),i=z(!1),a=z(!1),s=z(!1),o=z(!1),l=z(!1),u=z(!1);async function c(){const g=await Di.getSettings();t.value=g.server.experimentalMoonrakerSupport,n.value=g.server.experimentalPrusaLinkSupport,r.value=g.server.experimentalBambuSupport}Nt(async()=>{await c()});const d=async()=>{i.value=!0,o.value=!1;try{await Di.updateExperimentalMoonrakerSupport(t.value),await c(),setTimeout(()=>{i.value=!1,o.value=!0},250),setTimeout(()=>{o.value=!1},3e3)}catch(g){console.error("Failed to update Moonraker support:",g),t.value=!t.value,i.value=!1}},p=async()=>{a.value=!0,l.value=!1;try{await Di.updateExperimentalPrusaLinkSupport(n.value),await c(),setTimeout(()=>{a.value=!1,l.value=!0},250),setTimeout(()=>{l.value=!1},3e3)}catch(g){console.error("Failed to update PrusaLink support:",g),n.value=!n.value,a.value=!1}},h=async()=>{s.value=!0,u.value=!1;try{await Di.updateExperimentalBambuSupport(r.value),await c(),setTimeout(()=>{s.value=!1,u.value=!0},250),setTimeout(()=>{u.value=!1},3e3)}catch(g){console.error("Failed to update Bambu support:",g),r.value=!r.value,s.value=!1}};return(g,v)=>(F(),Q($e,null,{default:m(()=>[f(Ye,null,{default:m(()=>[f(pr,{title:"Experimental Server Features",tooltip:"Moonraker support is currently in beta, use at your own risk.",usecols:!1},{default:m(()=>[E("div",gSe,[f(Bn,{modelValue:t.value,"onUpdate:modelValue":v[0]||(v[0]=y=>t.value=y),disabled:i.value,onChange:d,"hide-details":"",label:"Enable Experimental Moonraker Support"},null,8,["modelValue","disabled"]),i.value?(F(),Q(Qn,{key:0,indeterminate:"",size:"30",width:"4",class:"ml-2"})):ae("",!0),o.value?(F(),Q(j,{key:1,color:"success",class:"ml-2"},{default:m(()=>[...v[3]||(v[3]=[_(" check_circle ",-1)])]),_:1})):ae("",!0)]),t.value?(F(),Q(kt,{key:0,color:"warning",variant:"tonal",class:"mb-2"},{default:m(()=>[...v[4]||(v[4]=[_(" Disabling Moonraker support will disable all printers of type Moonraker. You need to re-enable them after re-enabling this feature. ",-1)])]),_:1})):ae("",!0),E("div",vSe,[f(Bn,{modelValue:n.value,"onUpdate:modelValue":v[1]||(v[1]=y=>n.value=y),disabled:a.value,onChange:p,"hide-details":"",label:"Enable Experimental PrusaLink Support"},null,8,["modelValue","disabled"]),a.value?(F(),Q(Qn,{key:0,indeterminate:"",size:"30",width:"4",class:"ml-2"})):ae("",!0),l.value?(F(),Q(j,{key:1,color:"success",class:"ml-2"},{default:m(()=>[...v[5]||(v[5]=[_(" check_circle ",-1)])]),_:1})):ae("",!0)]),E("div",ySe,[f(Bn,{modelValue:r.value,"onUpdate:modelValue":v[2]||(v[2]=y=>r.value=y),disabled:s.value,onChange:h,"hide-details":"",label:"Enable Experimental Bambu Support"},null,8,["modelValue","disabled"]),s.value?(F(),Q(Qn,{key:0,indeterminate:"",size:"30",width:"4",class:"ml-2"})):ae("",!0),u.value?(F(),Q(j,{key:1,color:"success",class:"ml-2"},{default:m(()=>[...v[6]||(v[6]=[_(" check_circle ",-1)])]),_:1})):ae("",!0)])]),_:1})]),_:1})]),_:1}))}}),SSe={class:"d-flex align-center flex-wrap gap-2 mb-2"},wSe=["onClick"],ESe={class:"msg-time"},xSe={class:"msg-event"},CSe={class:"msg-preview"},kSe={key:0,class:"no-messages"},_Se={class:"mt-2 grey--text"},TSe=Be({__name:"DebugSocketSettings",setup(e){const t=l3(),n=qt(Kt.JsonViewerDialog),r=z(""),i=z(!0),a=z(null);Nt(()=>{t.enabled||t.enable()});function s(){t.enabled?(t.disable(),t.paused&&t.togglePause()):t.enable()}function o(){t.setFilter(r.value||"")}function l(d){return d.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}function u(d){try{const p=JSON.stringify(d);return p.length>100?p.substring(0,100)+"...":p}catch{return String(d)}}function c(d){n.openDialog({title:`${d.event} (${d.direction==="in"?"Received":"Sent"})`,data:d.data})}return Oe(()=>t.messages.length,async()=>{i.value&&a.value&&(await At(),a.value.scrollTop=a.value.scrollHeight)}),(d,p)=>(F(),Q($e,null,{default:m(()=>[f(Ye,{class:"pa-2"},{default:m(()=>[E("div",SSe,[f(te,{color:re(t).enabled?"error":"primary",small:"",onClick:s},{default:m(()=>[f(j,{small:"",class:"mr-1"},{default:m(()=>[_(U(re(t).enabled?"mdi:mdi-stop":"mdi:mdi-play"),1)]),_:1}),_(" "+U(re(t).enabled?"Stop":"Start"),1)]),_:1},8,["color"]),f(te,{disabled:!re(t).enabled,color:re(t).paused?"warning":"default",small:"",onClick:p[0]||(p[0]=h=>re(t).togglePause())},{default:m(()=>[f(j,{small:"",class:"mr-1"},{default:m(()=>[_(U(re(t).paused?"play_arrow":"pause"),1)]),_:1}),_(" "+U(re(t).paused?"Resume":"Pause"),1)]),_:1},8,["disabled","color"]),f(te,{small:"",color:"default",onClick:p[1]||(p[1]=h=>re(t).clearMessages())},{default:m(()=>[f(j,{small:"",class:"mr-1"},{default:m(()=>[...p[4]||(p[4]=[_("delete",-1)])]),_:1}),p[5]||(p[5]=_(" Clear ",-1))]),_:1}),f(Tt),f(Ke,{small:"",outlined:""},{default:m(()=>[_(U(re(t).filteredMessages.length)+" / "+U(re(t).messageCount)+" messages ",1)]),_:1}),f(Et,{modelValue:r.value,"onUpdate:modelValue":p[2]||(p[2]=h=>r.value=h),dense:"","hide-details":"",outlined:"",placeholder:"Filter...","prepend-inner-icon":"search",clearable:"",style:{"max-width":"200px"},onInput:o},null,8,["modelValue"]),f(Bn,{modelValue:i.value,"onUpdate:modelValue":p[3]||(p[3]=h=>i.value=h),dense:"","hide-details":"",label:"Auto-scroll",class:"mt-0 pt-0"},null,8,["modelValue"])]),E("div",{ref_key:"messagesContainer",ref:a,class:"messages-container"},[(F(!0),fe(Ne,null,Zt(re(t).filteredMessages,h=>(F(),fe("div",{key:h.id,class:"message-row",onClick:g=>c(h)},[E("span",ESe,U(l(h.timestamp)),1),f(Ke,{"x-small":"",color:h.direction==="in"?"blue":"green",class:"msg-direction"},{default:m(()=>[_(U(h.direction==="in"?"IN":"OUT"),1)]),_:2},1032,["color"]),E("span",xSe,U(h.event),1),E("span",CSe,U(u(h.data)),1)],8,wSe))),128)),re(t).filteredMessages.length===0?(F(),fe("div",kSe,[f(j,{large:"",color:"grey"},{default:m(()=>[...p[6]||(p[6]=[_("speaker_notes_off",-1)])]),_:1}),E("div",_Se,U(re(t).enabled?"Waiting for messages...":"Click Start to begin capturing"),1)])):ae("",!0)],512)]),_:1})]),_:1}))}}),ISe=Cn(TSe,[["__scopeId","data-v-1928c92e"]]),PSe="/img/DavidZwart.jpg",RSe={class:"mt-4"},ASe={key:0},OSe={key:1},NSe={class:"d-flex align-center"},DSe={class:"d-flex gap-2"},LSe=Be({__name:"AboutSettings",setup(e){const t=z(""),n=z(""),r=z(w4);return Nt(async()=>{const i=await $o.getVersion();t.value=i.version,n.value=i.monsterPi}),(i,a)=>(F(),Q($e,null,{default:m(()=>[f(ot,null,{default:m(()=>[...a[0]||(a[0]=[_("About FDM Monster",-1)])]),_:1}),f(Ye,null,{default:m(()=>[a[7]||(a[7]=E("p",null," FDM Monster is an open-source 3D printing farm management system created by David Zwart in 2021. ",-1)),E("p",RSe,[a[1]||(a[1]=E("strong",null,"Server version:",-1)),_(" "+U(t.value),1),a[2]||(a[2]=E("br",null,null,-1)),a[3]||(a[3]=E("strong",null,"Client version:",-1)),_(" "+U(r.value),1),a[4]||(a[4]=E("br",null,null,-1)),n.value?(F(),fe("strong",ASe,"MonsterPi version: "+U(n.value),1)):(F(),fe("strong",OSe,"No MonsterPi distro detected."))]),f(te,{class:"mt-3",variant:"outlined",to:"/settings/software-upgrade"},{default:m(()=>[f(j,null,{default:m(()=>[...a[5]||(a[5]=[_("mdi:mdi-upgrade",-1)])]),_:1}),a[6]||(a[6]=_(" Visit Upgrade Settings ",-1))]),_:1})]),_:1}),f(ot,null,{default:m(()=>[...a[8]||(a[8]=[_("Documentation & Support",-1)])]),_:1}),f(Ye,null,{default:m(()=>[f(te,{href:"https://docs.fdm-monster.net",target:"_blank",variant:"tonal",class:"mb-2"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...a[9]||(a[9]=[_("menu_book",-1)])]),_:1}),a[10]||(a[10]=_(" Documentation ",-1))]),_:1}),a[11]||(a[11]=E("br",null,null,-1)),f(Zx,{class:"mb-2"}),a[12]||(a[12]=E("br",null,null,-1)),f(eC)]),_:1}),f(ot,null,{default:m(()=>[...a[13]||(a[13]=[_("Author",-1)])]),_:1}),f(Ye,null,{default:m(()=>[E("div",NSe,[a[17]||(a[17]=E("img",{src:PSe,width:"100",class:"mr-4",alt:"Creator David Zwart"},null,-1)),E("div",null,[a[16]||(a[16]=E("div",{class:"mb-2"},"David Zwart MSc.",-1)),E("div",DSe,[f(te,{icon:"",size:"small",variant:"tonal",class:"mr-2",href:"https://www.linkedin.com/in/david-zwart-88514083/",target:"_blank"},{default:m(()=>[f(j,null,{default:m(()=>[...a[14]||(a[14]=[_("mdi:mdi-linkedin",-1)])]),_:1})]),_:1}),f(te,{icon:"",size:"small",variant:"tonal",href:"https://github.com/davidzwa",target:"_blank"},{default:m(()=>[f(j,null,{default:m(()=>[...a[15]||(a[15]=[_("mdi:mdi-github",-1)])]),_:1})]),_:1})])])])]),_:1})]),_:1}))}}),tr={requiresAuth:!0},t0={requiresAuth:!1},YC=Mce({history:hce("/"),routes:[{path:"/",name:fn.Home,meta:tr,component:zP},{path:"/dashboard",name:fn.Dashboard,meta:tr,component:zP},{path:"/printer-grid",name:"PrinterGrid",meta:tr,component:wme},{path:"/first-time-setup",name:fn.FirstTimeSetup,meta:t0,component:p1e},{path:"/login",name:fn.Login,meta:t0,component:_be},{path:"/registration",name:fn.Registration,meta:t0,component:Pbe},{path:"/printer-list",name:fn.PrintersView,meta:tr,component:tge},{path:"/cameras",name:fn.CameraGridView,meta:tr,component:Wbe},{path:"/settings",component:rge,meta:tr,children:[{path:"",meta:tr,redirect:"/settings/floors"},{path:"account",meta:tr,component:m1e},{path:"server-protection",meta:tr,component:h1e},{path:"floors",meta:tr,component:fbe},{path:"user-management",meta:tr,component:mge},{path:"printer",meta:tr,component:hge},{path:"emergency-commands",meta:tr,component:pbe},{path:"software-upgrade",meta:tr,component:W1e},{path:"diagnostics",meta:tr,component:G1e},{path:"experimental",meta:tr,component:bSe},{path:"debug-socket",meta:tr,component:ISe},{path:"about",meta:tr,component:LSe}]},{path:"/jobs",name:fn.PrintJobs,meta:tr,component:R0e},{path:"/files",name:fn.Files,meta:tr,component:hSe},{path:"/permission-denied",name:fn.PermissionDenied,meta:tr,component:wbe},{path:"/:pathMatch(.*)*",name:"NotFound",component:hbe}]});YC.beforeEach(async(e,t,n)=>{const r=_s();return!e?.meta?.requiresAuth||r.loginRequired===!1?(console.debug(`No auth required on route ${e.fullPath}`),n()):(console.debug(`Auth required on route ${e.fullPath} (loginRequired=${r.loginRequired}, registration=${r.registration}, wizardState=${r.wizardState}, requiresAuth=${e?.meta?.requiresAuth})`),r.loadTokens(),!r.hasAuthToken&&!r.hasRefreshToken?(console.debug("Not logged in, redirecting to login page"),e.name===fn.Login?(console.debug("Already on login page, allowing navigation"),n()):n({path:"/login",query:{redirect:e.fullPath}})):n())});const vA=(e,t,n)=>{const r=wn(),i=Qx(),a=en();if(t?.length){const s=t.length===1,o=t[0];e.ondrop=async l=>{l.preventDefault(),e.style.border=rv;const u=l.dataTransfer?.files;if(!u?.length)return;const c=Array.from(u);let d=[];if(s){const p=c.length===1?c[0].name:null;console.debug("Single printer upload mode",t.length,c.length,p),d=Ype(o,c,!0)}else{if(c.length>1)throw new Error("Cannot upload multiple files to multiple printers");console.debug("Multi printer upload mode",t.length,c.length);const p=c[0];d=g3(t,p,!0)}i.queueUploads(d),r.clearSelectedPrinters()};return}e.ondrop=async s=>{s.preventDefault(),e.style.border=rv,a.openInfoMessage({title:"No action performed",subtitle:"Please select one or more printers",warning:!0})}},rv="1px solid #2b2a27",FSe="background-color 0.5s ease",yA="1px solid red";function MSe(){return{mounted:(e,t,n)=>{e.style.border=rv,e.style.transition=FSe,e.ondragenter=r=>{r.preventDefault(),e.style.border=yA},e.ondragover=r=>{r.preventDefault(),e.style.border=yA},e.ondragleave=r=>{r.preventDefault(),e.style.border=rv},vA(e,t.value?.printers,n.appContext)},beforeUpdate:(e,t,n)=>{vA(e,t.value?.printers,n.appContext)}}}const n0="none",$Se="2px dashed rgba(255, 255, 255, 0.4)",bA=(e,t,n)=>{const r=t?.printerSet,i=Is();if(r){e.ondrop=null,e.ondragover=null,e.ondragleave=null;return}e.style.border=n0,e.ondrop=async a=>{if(e.style.border=n0,a.preventDefault(),!a.dataTransfer)return;const s=a.dataTransfer.getData("text"),o=JSON.parse(s);if(!Wpe(o)){console.debug("Drop not recognized",o);return}const u=i.selectedFloor?.id;if(!u)throw new Error("Floor is not set");const c=o.printerId;if(!c)throw new Error("PrinterId was not provided");await Bs.addPrinterToFloor(u,{printerId:c,x:t.x,y:t.y})},e.ondragover=a=>{a?.dataTransfer&&(a.dataTransfer&&Array.from(a.dataTransfer.items).filter(s=>s.kind==="file").length||(e.style.border=$Se,a.preventDefault()))},e.ondragleave=a=>{e.style.border=n0,a.preventDefault()}};function VSe(){return{mounted:(e,t,n)=>{bA(e,t.value,n.appContext)},beforeUpdate:(e,t,n)=>{bA(e,t.value,n.appContext)}}}const BSe={collapse:"keyboard_arrow_up",complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"cancel",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sortAsc:"arrow_upward",sortDesc:"arrow_downward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove",calendar:"event",treeviewCollapse:"arrow_drop_down",treeviewExpand:"arrow_right",tableGroupCollapse:"chevron_down",tableGroupExpand:"chevron_right",eyeDropper:"colorize",upload:"cloud_upload",color:"palette",command:"keyboard_command_key",ctrl:"keyboard_control_key",shift:"shift",alt:"keyboard_option_key",space:"keyboard_space",enter:"keyboard_return",arrowup:"keyboard_arrow_up",arrowdown:"keyboard_arrow_down",arrowleft:"keyboard_arrow_left",arrowright:"keyboard_arrow_right",backspace:"backspace",play:"play",pause:"pause",fullscreen:"fullscreen",fullscreenExit:"fullscreen_exit",volumeHigh:"volume_high",volumeMedium:"volume_medium",volumeLow:"volume_low",volumeOff:"volume_variant_off"},USe={component:e=>Rs(kQ,{...e,class:"material-icons"})},jSe=be({...aC()},"VStepperActions"),zSe=De()({name:"VStepperVerticalActions",props:jSe(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;function i(){n("click:prev")}function a(){n("click:next")}return Fe(()=>{const s=aw.filterProps(e);return f(aw,ve({class:"v-stepper-vertical-actions"},s,{"onClick:prev":i,"onClick:next":a}),r)}),{}}}),HSe=be({hideActions:Boolean,...sV(),...Nn(gx({expandIcon:"",collapseIcon:""}),["hideActions"])},"VStepperVerticalItem"),T4=De()({name:"VStepperVerticalItem",props:HSe(),emits:{"click:next":()=>!0,"click:prev":()=>!0,"click:finish":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=z(),a=L(()=>isNaN(parseInt(e.value))?e.value:Number(e.value)),s=L(()=>i.value?.groupItem),o=L(()=>e.rules.every(b=>b()===!0)),l=L(()=>!e.disabled&&e.editable),u=L(()=>e.error||!o.value),c=L(()=>e.complete||e.rules.length>0&&o.value),d=L(()=>e.disabled?e.disabled:s.value?.isFirst.value?"prev":!1),p=L(()=>u.value?e.errorIcon:c.value?e.completeIcon:s.value?.isSelected.value&&e.editable?e.editIcon:e.icon),h=L(()=>({canEdit:l.value,hasError:u.value,hasCompleted:c.value,title:e.title,subtitle:e.subtitle,step:a.value})),g=L(()=>({...h.value,prev:y,next:v}));function v(){n("click:next"),!s.value?.isLast.value&&s.value.group.next()}function y(){n("click:prev"),s.value.group.prev()}return Fe(()=>{const b=(!s.value||s.value?.isSelected.value||c.value||l.value)&&!u.value&&!e.disabled,S=!e.hideActions||!!r.actions,w=Hc.filterProps(e);return f(Hc,ve({_as:"VStepperVerticalItem",ref:i},w,{class:["v-stepper-vertical-item",{"v-stepper-vertical-item--complete":c.value,"v-stepper-vertical-item--disabled":e.disabled,"v-stepper-vertical-item--editable":l.value,"v-stepper-vertical-item--error":u.value},e.class],readonly:!e.editable,style:e.style,color:"",hideActions:!1,value:a.value}),{title:()=>E(Ne,null,[f(jn,{key:"stepper-avatar",class:"v-stepper-vertical-item__avatar",color:b?e.color:void 0,size:24,start:!0},{default:()=>[r.icon?.(h.value)??(p.value?f(j,{icon:p.value},null):a.value)]}),E("div",null,[E("div",{class:"v-stepper-vertical-item__title"},[r.title?.(h.value)??e.title]),E("div",{class:"v-stepper-vertical-item__subtitle"},[r.subtitle?.(h.value)??e.subtitle])])]),text:()=>E(Ne,null,[r.default?.(h.value)??e.text,S&&f(sn,{defaults:{VStepperVerticalActions:{disabled:d.value,finish:s.value?.isLast.value}}},{default:()=>[r.actions?.(g.value)??f(zSe,{"onClick:next":v,"onClick:prev":y},{prev:r.prev?()=>r.prev?.(g.value):void 0,next:r.next?()=>r.next?.(g.value):void 0})]})])})}),{}}}),WSe=be({prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"},...oV(),...Nn(eM({mandatory:"force",variant:"accordion"}),["static"])},"VStepperVertical"),GSe=De()({name:"VStepperVertical",props:WSe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=z(),{color:i,eager:a,editable:s,prevText:o,nextText:l,hideActions:u}=Ca(e),c=gt(e,"modelValue"),d=L(()=>e.items.map((p,h)=>{const g=Jn(p,e.itemTitle,p),v=Jn(p,e.itemValue,h+1),y=e.itemProps===!0?p:Jn(p,e.itemProps),b={title:g,value:v,...y};return{title:b.title,value:b.value,props:b,raw:p}}));return Sr({VStepperVerticalItem:{color:i,eager:a,editable:s,hideActions:u,static:!0},VStepperVerticalActions:{color:i,nextText:l,prevText:o}}),Fe(()=>{const p=Wc.filterProps(e);return f(Wc,ve(p,{modelValue:c.value,"onUpdate:modelValue":h=>c.value=h,ref:r,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":e.mobile},e.class],style:e.style}),{...n,default:h=>{let{prev:g,next:v}=h;return E(Ne,null,[d.value.map(y=>{let{raw:b,...S}=y;return f(T4,S.props,{...n,default:n[`item.${S.value}`]})}),n.default?.({prev:g,next:v,step:c.value})])}})}),{}}}),qSe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Discord-Logo'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20126.644%2096'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%235865f2;}%3c/style%3e%3c/defs%3e%3cpath%20id='Discord-Symbol-Blurple'%20class='cls-1'%20d='M81.15,0c-1.2376,2.1973-2.3489,4.4704-3.3591,6.794-9.5975-1.4396-19.3718-1.4396-28.9945,0-.985-2.3236-2.1216-4.5967-3.3591-6.794-9.0166,1.5407-17.8059,4.2431-26.1405,8.0568C2.779,32.5304-1.6914,56.3725.5312,79.8863c9.6732,7.1476,20.5083,12.603,32.0505,16.0884,2.6014-3.4854,4.8998-7.1981,6.8698-11.0623-3.738-1.3891-7.3497-3.1318-10.8098-5.1523.9092-.6567,1.7932-1.3386,2.6519-1.9953,20.281,9.547,43.7696,9.547,64.0758,0,.8587.7072,1.7427,1.3891,2.6519,1.9953-3.4601,2.0457-7.0718,3.7632-10.835,5.1776,1.97,3.8642,4.2683,7.5769,6.8698,11.0623,11.5419-3.4854,22.3769-8.9156,32.0509-16.0631,2.626-27.2771-4.496-50.9172-18.817-71.8548C98.9811,4.2684,90.1918,1.5659,81.1752.0505l-.0252-.0505ZM42.2802,65.4144c-6.2383,0-11.4159-5.6575-11.4159-12.6535s4.9755-12.6788,11.3907-12.6788,11.5169,5.708,11.4159,12.6788c-.101,6.9708-5.026,12.6535-11.3907,12.6535ZM84.3576,65.4144c-6.2637,0-11.3907-5.6575-11.3907-12.6535s4.9755-12.6788,11.3907-12.6788,11.4917,5.708,11.3906,12.6788c-.101,6.9708-5.026,12.6535-11.3906,12.6535Z'/%3e%3c/svg%3e",KSe=d3({theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{primary:"#1eb6c3",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FFC107"}},light:{dark:!1,colors:{primary:"#1eb6c3",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FFC107"}}}},icons:{defaultSet:"md",aliases:{...BSe,discord:qSe},sets:{md:USe,mdi:c3,custom:{component:e=>e.icon}}},components:{VStepperVertical:GSe,VStepperVerticalItem:T4}}),So=ng(lpe);console.log("[DEV: false][PROD: true]","2.0.1");fJ({app:So,dsn:"https://0831d0eec221b85ee4ae69b8410fe31c@o4503975545733120.ingest.us.sentry.io/4510641487937536",integrations:[hJ({router:YC}),AX()],release:"2.0.1",environment:"production",enabled:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,sendDefaultPii:!1});So.config.errorHandler=e=>{if(e instanceof Y2){console.error(`An error was caught [${e.name}]:
|
|
99
|
-
${e.message}
|
|
100
|
-
${e.config?.url}
|
|
101
|
-
${e.stack}`);let t="An error occurred",n=e.message;const r=e.response?.status;r===500?(t="Server Error",n="The server encountered an unexpected error. Please try again later."):r===404?(t="Resource Not Found",n="The requested resource could not be found."):r===403?(t="Access Denied",n="You do not have permission to access this resource."):r===401?(t="Authentication Required",n="Please log in to continue."):r&&r>=400&&r<500?(t="Request Error",n="There was a problem with your request. Please check and try again."):r&&r>=500?(t="Server Error",n="The server is experiencing difficulties. Please try again later."):(e.code==="NETWORK_ERROR"||e.code==="ECONNREFUSED")&&(t="Connection Error",n="Unable to connect to the server. Please check your connection."),en().openErrorMessage({title:t,subtitle:n,timeout:5e3});return}else e instanceof Error?(console.error(`An error was caught [${e.name}]:
|
|
102
|
-
${e.message}
|
|
103
|
-
${e.stack}`),en().openErrorMessage({title:"An error occurred",subtitle:e.message,timeout:5e3})):(console.error("Unknown error caught:",e),en().openErrorMessage({title:"An error occurred",subtitle:"An unexpected error occurred",timeout:5e3}));Gs(e)};So.directive("drop-upload",MSe());So.directive("drop-printer-position",VSe());const I4=vj();I4.use(vJ());So.use(I4);So.use(Rie);So.use(KSe);So.use(YC);So.mount("#app");
|
|
104
|
-
//# sourceMappingURL=index-BL5AV5pQ.js.map
|