@ddd-tool/domain-designer-cli 0.0.0-alpha.29 → 0.0.0-alpha.30
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.
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`)}function Oo(t){if(hr(t)){let e={};for(let r=0;r<t.length;r++){let n=t[r],s=rt(n)?Hu(n):Oo(n);if(s)for(let i in s)e[i]=s[i]}return e}else if(rt(t)||Vt(t))return t}var nb=/;(?![^(]*\))/g,sb=/:([^]+)/,ib=/\/\*[^]*?\*\//g;function Hu(t){let e={};return t.replace(ib,"").split(nb).forEach(r=>{if(r){let n=r.split(sb);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function ob(t){if(!t)return"";if(rt(t))return t;let e="";for(let r in t){let n=t[r];if(rt(n)||typeof n=="number"){let s=r.startsWith("--")?r:Fu(r);e+=`${s}:${n};`}}return e}function Ao(t){let e="";if(rt(t))e=t;else if(hr(t))for(let r=0;r<t.length;r++){let n=Ao(t[r]);n&&(e+=n+" ")}else if(Vt(t))for(let r in t)t[r]&&(e+=r+" ");return e.trim()}function ab(t){if(!t)return null;let{class:e,style:r}=t;return e&&!rt(e)&&(t.class=Ao(e)),r&&(t.style=Oo(r)),t}var cb="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",lb="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",ub="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",hb="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",db=ke(cb),pb=ke(lb),fb=ke(ub),mb=ke(hb),Gu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gb=ke(Gu),vb=ke(Gu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function _b(t){return!!t||t===""}var bb=/[>/="'\u0009\u000a\u000c\u0020]/,Eo={};function yb(t){if(Eo.hasOwnProperty(t))return Eo[t];let e=bb.test(t);return e&&console.error(`unsafe attribute name: ${t}`),Eo[t]=!e}var wb={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Eb=ke("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"),Sb=ke("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"),xb=ke("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 Cb(t){if(t==null)return!1;let e=typeof t;return e==="string"||e==="number"||e==="boolean"}var Ob=/["'&<>]/;function Ab(t){let e=""+t,r=Ob.exec(e);if(!r)return e;let n="",s,i,o=0;for(i=r.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(n+=e.slice(o,i)),o=i+1,n+=s}return o!==i?n+e.slice(o,i):n}var Tb=/^-?>|<!--|-->|--!>|<!-$/g;function Nb(t){return t.replace(Tb,"")}var Uu=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Rb(t,e){return t.replace(Uu,r=>e?r==='"'?'\\\\\\"':`\\\\${r}`:`\\${r}`)}function kb(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=ms(t[n],e[n]);return r}function ms(t,e){if(t===e)return!0;let r=xo(t),n=xo(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=mn(t),n=mn(e),r||n)return t===e;if(r=hr(t),n=hr(e),r||n)return r&&n?kb(t,e):!1;if(r=Vt(t),n=Vt(e),r||n){if(!r||!n)return!1;let s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(let o in t){let a=t.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!ms(t[o],e[o]))return!1}}return String(t)===String(e)}function Db(t,e){return t.findIndex(r=>ms(r,e))}var Wu=t=>!!(t&&t.__v_isRef===!0),Bu=t=>rt(t)?t:t==null?"":hr(t)||Vt(t)&&(t.toString===Co||!fn(t.toString))?Wu(t)?Bu(t.value):JSON.stringify(t,Ku,2):String(t),Ku=(t,e)=>Wu(e)?Ku(t,e.value):Mu(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,s],i)=>(r[So(n,i)+" =>"]=s,r),{})}:ju(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>So(r))}:mn(e)?So(e):Vt(e)&&!hr(e)&&!Vu(e)?String(e):e,So=(t,e="")=>{var r;return mn(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};y.EMPTY_ARR=w_;y.EMPTY_OBJ=y_;y.NO=S_;y.NOOP=E_;y.PatchFlagNames=J_;y.PatchFlags=Y_;y.ShapeFlags=X_;y.SlotFlags=Z_;y.camelize=j_;y.capitalize=Lu;y.cssVarNameEscapeSymbolsRE=Uu;y.def=H_;y.escapeHtml=Ab;y.escapeHtmlComment=Nb;y.extend=O_;y.genCacheKey=z_;y.genPropsAccessExp=K_;y.generateCodeFrame=rb;y.getEscapedCssVarName=Rb;y.getGlobalThis=W_;y.hasChanged=L_;y.hasOwn=N_;y.hyphenate=Fu;y.includeBooleanAttr=_b;y.invokeArrayFns=q_;y.isArray=hr;y.isBooleanAttr=vb;y.isBuiltInDirective=P_;y.isDate=xo;y.isFunction=fn;y.isGloballyAllowed=qu;y.isGloballyWhitelisted=tb;y.isHTMLTag=db;y.isIntegerKey=$_;y.isKnownHtmlAttr=Eb;y.isKnownMathMLAttr=xb;y.isKnownSvgAttr=Sb;y.isMap=Mu;y.isMathMLTag=fb;y.isModelListener=C_;y.isObject=Vt;y.isOn=x_;y.isPlainObject=Vu;y.isPromise=k_;y.isRegExp=R_;y.isRenderableAttrValue=Cb;y.isReservedProp=I_;y.isSSRSafeAttrName=yb;y.isSVGTag=pb;y.isSet=ju;y.isSpecialBooleanAttr=gb;y.isString=rt;y.isSymbol=mn;y.isVoidTag=mb;y.looseEqual=ms;y.looseIndexOf=Db;y.looseToNumber=G_;y.makeMap=ke;y.normalizeClass=Ao;y.normalizeProps=ab;y.normalizeStyle=Oo;y.objectToString=Co;y.parseStringStyle=Hu;y.propsToAttrMap=wb;y.remove=A_;y.slotFlagsText=Q_;y.stringifyStyle=ob;y.toDisplayString=Bu;y.toHandlerKey=F_;y.toNumber=U_;y.toRawType=D_;y.toTypeString=dr});var lh=b(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});function De(t){let e=Object.create(null);for(let r of t.split(","))e[r]=1;return r=>r in e}var $b=Object.freeze({}),Ib=Object.freeze([]),Pb=()=>{},Mb=()=>!1,jb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Vb=t=>t.startsWith("onUpdate:"),Fb=Object.assign,Lb=(t,e)=>{let r=t.indexOf(e);r>-1&&t.splice(r,1)},qb=Object.prototype.hasOwnProperty,Hb=(t,e)=>qb.call(t,e),pr=Array.isArray,Xu=t=>fr(t)==="[object Map]",Zu=t=>fr(t)==="[object Set]",Ro=t=>fr(t)==="[object Date]",Gb=t=>fr(t)==="[object RegExp]",gn=t=>typeof t=="function",nt=t=>typeof t=="string",vn=t=>typeof t=="symbol",Ft=t=>t!==null&&typeof t=="object",Ub=t=>(Ft(t)||gn(t))&&gn(t.then)&&gn(t.catch),ko=Object.prototype.toString,fr=t=>ko.call(t),Wb=t=>fr(t).slice(8,-1),Qu=t=>fr(t)==="[object Object]",Bb=t=>nt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Kb=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zb=De("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),gs=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Yb=/-(\w)/g,Jb=gs(t=>t.replace(Yb,(e,r)=>r?r.toUpperCase():"")),Xb=/\B([A-Z])/g,eh=gs(t=>t.replace(Xb,"-$1").toLowerCase()),th=gs(t=>t.charAt(0).toUpperCase()+t.slice(1)),Zb=gs(t=>t?`on${th(t)}`:""),Qb=(t,e)=>!Object.is(t,e),ey=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},ty=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},ry=t=>{let e=parseFloat(t);return isNaN(e)?t:e},ny=t=>{let e=nt(t)?Number(t):NaN;return isNaN(e)?t:e},Yu,sy=()=>Yu||(Yu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),iy=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function oy(t){return iy.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`}function ay(t,e){return t+JSON.stringify(e,(r,n)=>typeof n=="function"?n.toString():n)}var cy={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"},ly={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]:"HOISTED",[-2]:"BAIL"},uy={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"},hy={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},dy={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},py="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",rh=De(py),fy=rh,Ju=2;function my(t,e=0,r=t.length){if(e=Math.max(0,Math.min(e,t.length)),r=Math.max(0,Math.min(r,t.length)),e>r)return"";let n=t.split(/(\r?\n)/),s=n.filter((a,c)=>c%2===1);n=n.filter((a,c)=>c%2===0);let i=0,o=[];for(let a=0;a<n.length;a++)if(i+=n[a].length+(s[a]&&s[a].length||0),i>=e){for(let c=a-Ju;c<=a+Ju||r>i;c++){if(c<0||c>=n.length)continue;let h=c+1;o.push(`${h}${" ".repeat(Math.max(3-String(h).length,0))}| ${n[c]}`);let d=n[c].length,l=s[c]&&s[c].length||0;if(c===a){let u=e-(i-(d+l)),p=Math.max(1,r>i?d-u:r-e);o.push(" | "+" ".repeat(u)+"^".repeat(p))}else if(c>a){if(r>i){let u=Math.max(Math.min(r-i,d),1);o.push(" | "+"^".repeat(u))}i+=d+l}}break}return o.join(`
|
|
3
|
-
`)}function Do(t){if(pr(t)){let e={};for(let r=0;r<t.length;r++){let n=t[r],s=nt(n)?nh(n):Do(n);if(s)for(let i in s)e[i]=s[i]}return e}else if(nt(t)||Ft(t))return t}var gy=/;(?![^(]*\))/g,vy=/:([^]+)/,_y=/\/\*[^]*?\*\//g;function nh(t){let e={};return t.replace(_y,"").split(gy).forEach(r=>{if(r){let n=r.split(vy);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function by(t){if(!t)return"";if(nt(t))return t;let e="";for(let r in t){let n=t[r];if(nt(n)||typeof n=="number"){let s=r.startsWith("--")?r:eh(r);e+=`${s}:${n};`}}return e}function $o(t){let e="";if(nt(t))e=t;else if(pr(t))for(let r=0;r<t.length;r++){let n=$o(t[r]);n&&(e+=n+" ")}else if(Ft(t))for(let r in t)t[r]&&(e+=r+" ");return e.trim()}function yy(t){if(!t)return null;let{class:e,style:r}=t;return e&&!nt(e)&&(t.class=$o(e)),r&&(t.style=Do(r)),t}var wy="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",Ey="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",Sy="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",xy="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Cy=De(wy),Oy=De(Ey),Ay=De(Sy),Ty=De(xy),sh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ny=De(sh),Ry=De(sh+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ky(t){return!!t||t===""}var Dy=/[>/="'\u0009\u000a\u000c\u0020]/,To={};function $y(t){if(To.hasOwnProperty(t))return To[t];let e=Dy.test(t);return e&&console.error(`unsafe attribute name: ${t}`),To[t]=!e}var Iy={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Py=De("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"),My=De("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"),jy=De("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 Vy(t){if(t==null)return!1;let e=typeof t;return e==="string"||e==="number"||e==="boolean"}var Fy=/["'&<>]/;function Ly(t){let e=""+t,r=Fy.exec(e);if(!r)return e;let n="",s,i,o=0;for(i=r.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(n+=e.slice(o,i)),o=i+1,n+=s}return o!==i?n+e.slice(o,i):n}var qy=/^-?>|<!--|-->|--!>|<!-$/g;function Hy(t){return t.replace(qy,"")}var ih=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Gy(t,e){return t.replace(ih,r=>e?r==='"'?'\\\\\\"':`\\\\${r}`:`\\${r}`)}function Uy(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=vs(t[n],e[n]);return r}function vs(t,e){if(t===e)return!0;let r=Ro(t),n=Ro(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=vn(t),n=vn(e),r||n)return t===e;if(r=pr(t),n=pr(e),r||n)return r&&n?Uy(t,e):!1;if(r=Ft(t),n=Ft(e),r||n){if(!r||!n)return!1;let s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(let o in t){let a=t.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!vs(t[o],e[o]))return!1}}return String(t)===String(e)}function Wy(t,e){return t.findIndex(r=>vs(r,e))}var oh=t=>!!(t&&t.__v_isRef===!0),ah=t=>nt(t)?t:t==null?"":pr(t)||Ft(t)&&(t.toString===ko||!gn(t.toString))?oh(t)?ah(t.value):JSON.stringify(t,ch,2):String(t),ch=(t,e)=>oh(e)?ch(t,e.value):Xu(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,s],i)=>(r[No(n,i)+" =>"]=s,r),{})}:Zu(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>No(r))}:vn(e)?No(e):Ft(e)&&!pr(e)&&!Qu(e)?String(e):e,No=(t,e="")=>{var r;return vn(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};w.EMPTY_ARR=Ib;w.EMPTY_OBJ=$b;w.NO=Mb;w.NOOP=Pb;w.PatchFlagNames=ly;w.PatchFlags=cy;w.ShapeFlags=uy;w.SlotFlags=hy;w.camelize=Jb;w.capitalize=th;w.cssVarNameEscapeSymbolsRE=ih;w.def=ty;w.escapeHtml=Ly;w.escapeHtmlComment=Hy;w.extend=Fb;w.genCacheKey=ay;w.genPropsAccessExp=oy;w.generateCodeFrame=my;w.getEscapedCssVarName=Gy;w.getGlobalThis=sy;w.hasChanged=Qb;w.hasOwn=Hb;w.hyphenate=eh;w.includeBooleanAttr=ky;w.invokeArrayFns=ey;w.isArray=pr;w.isBooleanAttr=Ry;w.isBuiltInDirective=zb;w.isDate=Ro;w.isFunction=gn;w.isGloballyAllowed=rh;w.isGloballyWhitelisted=fy;w.isHTMLTag=Cy;w.isIntegerKey=Bb;w.isKnownHtmlAttr=Py;w.isKnownMathMLAttr=jy;w.isKnownSvgAttr=My;w.isMap=Xu;w.isMathMLTag=Ay;w.isModelListener=Vb;w.isObject=Ft;w.isOn=jb;w.isPlainObject=Qu;w.isPromise=Ub;w.isRegExp=Gb;w.isRenderableAttrValue=Vy;w.isReservedProp=Kb;w.isSSRSafeAttrName=$y;w.isSVGTag=Oy;w.isSet=Zu;w.isSpecialBooleanAttr=Ny;w.isString=nt;w.isSymbol=vn;w.isVoidTag=Ty;w.looseEqual=vs;w.looseIndexOf=Wy;w.looseToNumber=ry;w.makeMap=De;w.normalizeClass=$o;w.normalizeProps=yy;w.normalizeStyle=Do;w.objectToString=ko;w.parseStringStyle=nh;w.propsToAttrMap=Iy;w.remove=Lb;w.slotFlagsText=dy;w.stringifyStyle=by;w.toDisplayString=ah;w.toHandlerKey=Zb;w.toNumber=ny;w.toRawType=Wb;w.toTypeString=fr});var Po=b((LT,Io)=>{"use strict";process.env.NODE_ENV==="production"?Io.exports=zu():Io.exports=lh()});var Nh=b(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});var O=Po(),de,ws=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){let r=de;try{return de=this,e()}finally{de=r}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}};function By(t){return new ws(t)}function dh(){return de}function Ky(t,e=!1){de&&de.cleanups.push(t)}var V,zy={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED"},Mo=new WeakSet,gr=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,de&&de.active&&de.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Mo.has(this)&&(Mo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uh(this),mh(this);let e=V,r=$e;V=this,$e=!0;try{return this.fn()}finally{gh(this),V=e,$e=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Yo(e);this.deps=this.depsTail=void 0,uh(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Mo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fo(this)&&this.run()}get dirty(){return Fo(this)}},ph=0,bn,yn;function fh(t,e=!1){if(t.flags|=8,e){t.next=yn,yn=t;return}t.next=bn,bn=t}function Ko(){ph++}function zo(){if(--ph>0)return;if(yn){let e=yn;for(yn=void 0;e;){let r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;bn;){let e=bn;for(bn=void 0;e;){let r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function mh(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function gh(t){let e,r=t.depsTail,n=r;for(;n;){let s=n.prevDep;n.version===-1?(n===r&&(r=s),Yo(n),Yy(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=e,t.depsTail=r}function Fo(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(vh(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function vh(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===wn))return;t.globalVersion=wn;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Fo(t)){t.flags&=-3;return}let r=V,n=$e;V=t,$e=!0;try{mh(t);let s=t.fn(t._value);(e.version===0||O.hasChanged(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{V=r,$e=n,gh(t),t.flags&=-3}}function Yo(t,e=!1){let{dep:r,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Yo(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function Yy(t){let{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function Jy(t,e){t.effect instanceof gr&&(t=t.effect.fn);let r=new gr(t);e&&O.extend(r,e);try{r.run()}catch(s){throw r.stop(),s}let n=r.run.bind(r);return n.effect=r,n}function Xy(t){t.effect.stop()}var $e=!0,Jo=[];function Xo(){Jo.push($e),$e=!1}function Zy(){Jo.push($e),$e=!0}function Zo(){let t=Jo.pop();$e=t===void 0?!0:t}function Qy(t,e=!1){V instanceof gr&&(V.cleanup=t)}function uh(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let r=V;V=void 0;try{e()}finally{V=r}}}var wn=0,Lo=class{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Pr=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!V||!$e||V===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==V)r=this.activeLink=new Lo(V,this),V.deps?(r.prevDep=V.depsTail,V.depsTail.nextDep=r,V.depsTail=r):V.deps=V.depsTail=r,_h(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=V.depsTail,r.nextDep=void 0,V.depsTail.nextDep=r,V.depsTail=r,V.deps===r&&(V.deps=n)}return r}trigger(e){this.version++,wn++,this.notify(e)}notify(e){Ko();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{zo()}}};function _h(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)_h(n)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}var Es=new WeakMap,qt=Symbol(""),Ss=Symbol(""),Mr=Symbol("");function pe(t,e,r){if($e&&V){let n=Es.get(t);n||Es.set(t,n=new Map);let s=n.get(r);s||(n.set(r,s=new Pr),s.map=n,s.key=r),s.track()}}function vt(t,e,r,n,s,i){let o=Es.get(t);if(!o){wn++;return}let a=c=>{c&&c.trigger()};if(Ko(),e==="clear")o.forEach(a);else{let c=O.isArray(t),h=c&&O.isIntegerKey(r);if(c&&r==="length"){let d=Number(n);o.forEach((l,u)=>{(u==="length"||u===Mr||!O.isSymbol(u)&&u>=d)&&a(l)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),h&&a(o.get(Mr)),e){case"add":c?h&&a(o.get("length")):(a(o.get(qt)),O.isMap(t)&&a(o.get(Ss)));break;case"delete":c||(a(o.get(qt)),O.isMap(t)&&a(o.get(Ss)));break;case"set":O.isMap(t)&&a(o.get(qt));break}}zo()}function ew(t,e){let r=Es.get(t);return r&&r.get(e)}function mr(t){let e=P(t);return e===t?e:(pe(e,"iterate",Mr),Le(t)?e:e.map(oe))}function Ns(t){return pe(t=P(t),"iterate",Mr),t}var tw={__proto__:null,[Symbol.iterator](){return jo(this,Symbol.iterator,oe)},concat(...t){return mr(this).concat(...t.map(e=>O.isArray(e)?mr(e):e))},entries(){return jo(this,"entries",t=>(t[1]=oe(t[1]),t))},every(t,e){return gt(this,"every",t,e,void 0,arguments)},filter(t,e){return gt(this,"filter",t,e,r=>r.map(oe),arguments)},find(t,e){return gt(this,"find",t,e,oe,arguments)},findIndex(t,e){return gt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return gt(this,"findLast",t,e,oe,arguments)},findLastIndex(t,e){return gt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return gt(this,"forEach",t,e,void 0,arguments)},includes(...t){return Vo(this,"includes",t)},indexOf(...t){return Vo(this,"indexOf",t)},join(t){return mr(this).join(t)},lastIndexOf(...t){return Vo(this,"lastIndexOf",t)},map(t,e){return gt(this,"map",t,e,void 0,arguments)},pop(){return _n(this,"pop")},push(...t){return _n(this,"push",t)},reduce(t,...e){return hh(this,"reduce",t,e)},reduceRight(t,...e){return hh(this,"reduceRight",t,e)},shift(){return _n(this,"shift")},some(t,e){return gt(this,"some",t,e,void 0,arguments)},splice(...t){return _n(this,"splice",t)},toReversed(){return mr(this).toReversed()},toSorted(t){return mr(this).toSorted(t)},toSpliced(...t){return mr(this).toSpliced(...t)},unshift(...t){return _n(this,"unshift",t)},values(){return jo(this,"values",oe)}};function jo(t,e,r){let n=Ns(t),s=n[e]();return n!==t&&!Le(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=r(i.value)),i}),s}var rw=Array.prototype;function gt(t,e,r,n,s,i){let o=Ns(t),a=o!==t&&!Le(t),c=o[e];if(c!==rw[e]){let l=c.apply(t,i);return a?oe(l):l}let h=r;o!==t&&(a?h=function(l,u){return r.call(this,oe(l),u,t)}:r.length>2&&(h=function(l,u){return r.call(this,l,u,t)}));let d=c.call(o,h,n);return a&&s?s(d):d}function hh(t,e,r,n){let s=Ns(t),i=r;return s!==t&&(Le(t)?r.length>3&&(i=function(o,a,c){return r.call(this,o,a,c,t)}):i=function(o,a,c){return r.call(this,o,oe(a),c,t)}),s[e](i,...n)}function Vo(t,e,r){let n=P(t);pe(n,"iterate",Mr);let s=n[e](...r);return(s===-1||s===!1)&&xh(r[0])?(r[0]=P(r[0]),n[e](...r)):s}function _n(t,e,r=[]){Xo(),Ko();let n=P(t)[e].apply(t,r);return zo(),Zo(),n}var nw=O.makeMap("__proto__,__v_isRef,__isVue"),bh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(O.isSymbol));function sw(t){O.isSymbol(t)||(t=String(t));let e=P(this);return pe(e,"has",t),e.hasOwnProperty(t)}var xs=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?Sh:Eh:i?wh:yh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let o=O.isArray(e);if(!s){let c;if(o&&(c=tw[r]))return c;if(r==="hasOwnProperty")return sw}let a=Reflect.get(e,r,fe(e)?e:n);return(O.isSymbol(r)?bh.has(r):nw(r))||(s||pe(e,"get",r),i)?a:fe(a)?o&&O.isIntegerKey(r)?a:a.value:O.isObject(a)?s?ea(a):Qo(a):a}},Cs=class extends xs{constructor(e=!1){super(!1,e)}set(e,r,n,s){let i=e[r];if(!this._isShallow){let c=Ht(i);if(!Le(n)&&!Ht(n)&&(i=P(i),n=P(n)),!O.isArray(e)&&fe(i)&&!fe(n))return c?!1:(i.value=n,!0)}let o=O.isArray(e)&&O.isIntegerKey(r)?Number(r)<e.length:O.hasOwn(e,r),a=Reflect.set(e,r,n,fe(e)?e:s);return e===P(s)&&(o?O.hasChanged(n,i)&&vt(e,"set",r,n):vt(e,"add",r,n)),a}deleteProperty(e,r){let n=O.hasOwn(e,r);e[r];let s=Reflect.deleteProperty(e,r);return s&&n&&vt(e,"delete",r,void 0),s}has(e,r){let n=Reflect.has(e,r);return(!O.isSymbol(r)||!bh.has(r))&&pe(e,"has",r),n}ownKeys(e){return pe(e,"iterate",O.isArray(e)?"length":qt),Reflect.ownKeys(e)}},Os=class extends xs{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}},iw=new Cs,ow=new Os,aw=new Cs(!0),cw=new Os(!0),qo=t=>t,_s=t=>Reflect.getPrototypeOf(t);function lw(t,e,r){return function(...n){let s=this.__v_raw,i=P(s),o=O.isMap(i),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,h=s[t](...n),d=r?qo:e?As:oe;return!e&&pe(i,"iterate",c?Ss:qt),{next(){let{value:l,done:u}=h.next();return u?{value:l,done:u}:{value:a?[d(l[0]),d(l[1])]:d(l),done:u}},[Symbol.iterator](){return this}}}}function bs(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function uw(t,e){let r={get(s){let i=this.__v_raw,o=P(i),a=P(s);t||(O.hasChanged(s,a)&&pe(o,"get",s),pe(o,"get",a));let{has:c}=_s(o),h=e?qo:t?As:oe;if(c.call(o,s))return h(i.get(s));if(c.call(o,a))return h(i.get(a));i!==o&&i.get(s)},get size(){let s=this.__v_raw;return!t&&pe(P(s),"iterate",qt),Reflect.get(s,"size",s)},has(s){let i=this.__v_raw,o=P(i),a=P(s);return t||(O.hasChanged(s,a)&&pe(o,"has",s),pe(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){let o=this,a=o.__v_raw,c=P(a),h=e?qo:t?As:oe;return!t&&pe(c,"iterate",qt),a.forEach((d,l)=>s.call(i,h(d),h(l),o))}};return O.extend(r,t?{add:bs("add"),set:bs("set"),delete:bs("delete"),clear:bs("clear")}:{add(s){!e&&!Le(s)&&!Ht(s)&&(s=P(s));let i=P(this);return _s(i).has.call(i,s)||(i.add(s),vt(i,"add",s,s)),this},set(s,i){!e&&!Le(i)&&!Ht(i)&&(i=P(i));let o=P(this),{has:a,get:c}=_s(o),h=a.call(o,s);h||(s=P(s),h=a.call(o,s));let d=c.call(o,s);return o.set(s,i),h?O.hasChanged(i,d)&&vt(o,"set",s,i):vt(o,"add",s,i),this},delete(s){let i=P(this),{has:o,get:a}=_s(i),c=o.call(i,s);c||(s=P(s),c=o.call(i,s)),a&&a.call(i,s);let h=i.delete(s);return c&&vt(i,"delete",s,void 0),h},clear(){let s=P(this),i=s.size!==0,o=s.clear();return i&&vt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=lw(s,t,e)}),r}function Rs(t,e){let r=uw(t,e);return(n,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(O.hasOwn(r,s)&&s in n?r:n,s,i)}var hw={get:Rs(!1,!1)},dw={get:Rs(!1,!0)},pw={get:Rs(!0,!1)},fw={get:Rs(!0,!0)},yh=new WeakMap,wh=new WeakMap,Eh=new WeakMap,Sh=new WeakMap;function mw(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gw(t){return t.__v_skip||!Object.isExtensible(t)?0:mw(O.toRawType(t))}function Qo(t){return Ht(t)?t:ks(t,!1,iw,hw,yh)}function vw(t){return ks(t,!1,aw,dw,wh)}function ea(t){return ks(t,!0,ow,pw,Eh)}function _w(t){return ks(t,!0,cw,fw,Sh)}function ks(t,e,r,n,s){if(!O.isObject(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=gw(t);if(o===0)return t;let a=new Proxy(t,o===2?n:r);return s.set(t,a),a}function Ir(t){return Ht(t)?Ir(t.__v_raw):!!(t&&t.__v_isReactive)}function Ht(t){return!!(t&&t.__v_isReadonly)}function Le(t){return!!(t&&t.__v_isShallow)}function xh(t){return t?!!t.__v_raw:!1}function P(t){let e=t&&t.__v_raw;return e?P(e):t}function bw(t){return!O.hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&O.def(t,"__v_skip",!0),t}var oe=t=>O.isObject(t)?Qo(t):t,As=t=>O.isObject(t)?ea(t):t;function fe(t){return t?t.__v_isRef===!0:!1}function Ch(t){return Oh(t,!1)}function yw(t){return Oh(t,!0)}function Oh(t,e){return fe(t)?t:new Ho(t,e)}var Ho=class{constructor(e,r){this.dep=new Pr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:P(e),this._value=r?e:oe(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){let r=this._rawValue,n=this.__v_isShallow||Le(e)||Ht(e);e=n?e:P(e),O.hasChanged(e,r)&&(this._rawValue=e,this._value=n?e:oe(e),this.dep.trigger())}};function ww(t){t.dep&&t.dep.trigger()}function ta(t){return fe(t)?t.value:t}function Ew(t){return O.isFunction(t)?t():ta(t)}var Sw={get:(t,e,r)=>e==="__v_raw"?t:ta(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let s=t[e];return fe(s)&&!fe(r)?(s.value=r,!0):Reflect.set(t,e,r,n)}};function xw(t){return Ir(t)?t:new Proxy(t,Sw)}var Go=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let r=this.dep=new Pr,{get:n,set:s}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Cw(t){return new Go(t)}function Ow(t){let e=O.isArray(t)?new Array(t.length):{};for(let r in t)e[r]=Ah(t,r);return e}var Uo=class{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ew(P(this._object),this._key)}},Wo=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Aw(t,e,r){return fe(t)?t:O.isFunction(t)?new Wo(t):O.isObject(t)&&arguments.length>1?Ah(t,e,r):Ch(t)}function Ah(t,e,r){let n=t[e];return fe(n)?n:new Uo(t,e,r)}var Bo=class{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Pr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&V!==this)return fh(this,!0),!0}get value(){let e=this.dep.track();return vh(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Tw(t,e,r=!1){let n,s;return O.isFunction(t)?n=t:(n=t.get,s=t.set),new Bo(n,s,r)}var Nw={GET:"get",HAS:"has",ITERATE:"iterate"},Rw={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},kw={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},Dw={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},ys={},Ts=new WeakMap,Lt;function $w(){return Lt}function Th(t,e=!1,r=Lt){if(r){let n=Ts.get(r);n||Ts.set(r,n=[]),n.push(t)}}function Iw(t,e,r=O.EMPTY_OBJ){let{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=r,h=g=>s?g:Le(g)||s===!1||s===0?_t(g,1):_t(g),d,l,u,p,f=!1,m=!1;if(fe(t)?(l=()=>t.value,f=Le(t)):Ir(t)?(l=()=>h(t),f=!0):O.isArray(t)?(m=!0,f=t.some(g=>Ir(g)||Le(g)),l=()=>t.map(g=>{if(fe(g))return g.value;if(Ir(g))return h(g);if(O.isFunction(g))return c?c(g,2):g()})):O.isFunction(t)?e?l=c?()=>c(t,2):t:l=()=>{if(u){Xo();try{u()}finally{Zo()}}let g=Lt;Lt=d;try{return c?c(t,3,[p]):t(p)}finally{Lt=g}}:l=O.NOOP,e&&s){let g=l,x=s===!0?1/0:s;l=()=>_t(g(),x)}let _=dh(),v=()=>{d.stop(),_&&_.active&&O.remove(_.effects,d)};if(i&&e){let g=e;e=(...x)=>{g(...x),v()}}let S=m?new Array(t.length).fill(ys):ys,$=g=>{if(!(!(d.flags&1)||!d.dirty&&!g))if(e){let x=d.run();if(s||f||(m?x.some((K,te)=>O.hasChanged(K,S[te])):O.hasChanged(x,S))){u&&u();let K=Lt;Lt=d;try{let te=[x,S===ys?void 0:m&&S[0]===ys?[]:S,p];c?c(e,3,te):e(...te),S=x}finally{Lt=K}}}else d.run()};return a&&a($),d=new gr(l),d.scheduler=o?()=>o($,!1):$,p=g=>Th(g,!1,d),u=d.onStop=()=>{let g=Ts.get(d);if(g){if(c)c(g,4);else for(let x of g)x();Ts.delete(d)}},e?n?$(!0):S=d.run():o?o($.bind(null,!0),!0):d.run(),v.pause=d.pause.bind(d),v.resume=d.resume.bind(d),v.stop=v,v}function _t(t,e=1/0,r){if(e<=0||!O.isObject(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,fe(t))_t(t.value,e,r);else if(O.isArray(t))for(let n=0;n<t.length;n++)_t(t[n],e,r);else if(O.isSet(t)||O.isMap(t))t.forEach(n=>{_t(n,e,r)});else if(O.isPlainObject(t)){for(let n in t)_t(t[n],e,r);for(let n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&_t(t[n],e,r)}return t}A.ARRAY_ITERATE_KEY=Mr;A.EffectFlags=zy;A.EffectScope=ws;A.ITERATE_KEY=qt;A.MAP_KEY_ITERATE_KEY=Ss;A.ReactiveEffect=gr;A.ReactiveFlags=kw;A.TrackOpTypes=Nw;A.TriggerOpTypes=Rw;A.WatchErrorCodes=Dw;A.computed=Tw;A.customRef=Cw;A.effect=Jy;A.effectScope=By;A.enableTracking=Zy;A.getCurrentScope=dh;A.getCurrentWatcher=$w;A.isProxy=xh;A.isReactive=Ir;A.isReadonly=Ht;A.isRef=fe;A.isShallow=Le;A.markRaw=bw;A.onEffectCleanup=Qy;A.onScopeDispose=Ky;A.onWatcherCleanup=Th;A.pauseTracking=Xo;A.proxyRefs=xw;A.reactive=Qo;A.reactiveReadArray=mr;A.readonly=ea;A.ref=Ch;A.resetTracking=Zo;A.shallowReactive=vw;A.shallowReadArray=Ns;A.shallowReadonly=_w;A.shallowRef=yw;A.stop=Xy;A.toRaw=P;A.toReactive=oe;A.toReadonly=As;A.toRef=Aw;A.toRefs=Ow;A.toValue=Ew;A.track=pe;A.traverse=_t;A.trigger=vt;A.triggerRef=ww;A.unref=ta;A.watch=Iw});var Yh=b(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var C=Po();function Pe(t,...e){console.warn(`[Vue warn] ${t}`,...e)}var me,Ps=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=me,!e&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){let r=me;try{return me=this,e()}finally{me=r}}else Pe("cannot run an inactive effect scope.")}on(){me=this}off(){me=this.parent}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}};function Pw(t){return new Ps(t)}function $h(){return me}function Mw(t,e=!1){me?me.cleanups.push(t):e||Pe("onScopeDispose() is called when there is no active effect scope to be associated with.")}var k,jw={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED"},ra=new WeakSet,_r=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,me&&me.active&&me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ra.has(this)&&(ra.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ph(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Rh(this),Mh(this);let e=k,r=Ie;k=this,Ie=!0;try{return this.fn()}finally{k!==this&&Pe("Active effect was not restored correctly - this is likely a Vue internal bug."),jh(this),k=e,Ie=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ma(e);this.deps=this.depsTail=void 0,Rh(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ra.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ia(this)&&this.run()}get dirty(){return ia(this)}},Ih=0,Sn,xn;function Ph(t,e=!1){if(t.flags|=8,e){t.next=xn,xn=t;return}t.next=Sn,Sn=t}function pa(){Ih++}function fa(){if(--Ih>0)return;if(xn){let e=xn;for(xn=void 0;e;){let r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Sn;){let e=Sn;for(Sn=void 0;e;){let r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function Mh(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function jh(t){let e,r=t.depsTail,n=r;for(;n;){let s=n.prevDep;n.version===-1?(n===r&&(r=s),ma(n),Vw(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=e,t.depsTail=r}function ia(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Vh(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Vh(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Cn))return;t.globalVersion=Cn;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!ia(t)){t.flags&=-3;return}let r=k,n=Ie;k=t,Ie=!0;try{Mh(t);let s=t.fn(t._value);(e.version===0||C.hasChanged(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{k=r,Ie=n,jh(t),t.flags&=-3}}function ma(t,e=!1){let{dep:r,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),r.subsHead===t&&(r.subsHead=s),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)ma(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function Vw(t){let{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function Fw(t,e){t.effect instanceof _r&&(t=t.effect.fn);let r=new _r(t);e&&C.extend(r,e);try{r.run()}catch(s){throw r.stop(),s}let n=r.run.bind(r);return n.effect=r,n}function Lw(t){t.effect.stop()}var Ie=!0,ga=[];function va(){ga.push(Ie),Ie=!1}function qw(){ga.push(Ie),Ie=!0}function _a(){let t=ga.pop();Ie=t===void 0?!0:t}function Hw(t,e=!1){k instanceof _r?k.cleanup=t:e||Pe("onEffectCleanup() was called when there was no active effect to associate with.")}function Rh(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let r=k;k=void 0;try{e()}finally{k=r}}}var Cn=0,oa=class{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Vr=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.subsHead=void 0}track(e){if(!k||!Ie||k===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==k)r=this.activeLink=new oa(k,this),k.deps?(r.prevDep=k.depsTail,k.depsTail.nextDep=r,k.depsTail=r):k.deps=k.depsTail=r,Fh(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=k.depsTail,r.nextDep=void 0,k.depsTail.nextDep=r,k.depsTail=r,k.deps===r&&(k.deps=n)}return k.onTrack&&k.onTrack(C.extend({effect:k},e)),r}trigger(e){this.version++,Cn++,this.notify(e)}notify(e){pa();try{for(let r=this.subsHead;r;r=r.nextSub)r.sub.onTrigger&&!(r.sub.flags&8)&&r.sub.onTrigger(C.extend({effect:r.sub},e));for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{fa()}}};function Fh(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Fh(n)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subsHead===void 0&&(t.dep.subsHead=t),t.dep.subs=t}}var Ms=new WeakMap,Ut=Symbol("Object iterate"),js=Symbol("Map keys iterate"),Fr=Symbol("Array iterate");function ge(t,e,r){if(Ie&&k){let n=Ms.get(t);n||Ms.set(t,n=new Map);let s=n.get(r);s||(n.set(r,s=new Vr),s.map=n,s.key=r),s.track({target:t,type:e,key:r})}}function yt(t,e,r,n,s,i){let o=Ms.get(t);if(!o){Cn++;return}let a=c=>{c&&c.trigger({target:t,type:e,key:r,newValue:n,oldValue:s,oldTarget:i})};if(pa(),e==="clear")o.forEach(a);else{let c=C.isArray(t),h=c&&C.isIntegerKey(r);if(c&&r==="length"){let d=Number(n);o.forEach((l,u)=>{(u==="length"||u===Fr||!C.isSymbol(u)&&u>=d)&&a(l)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),h&&a(o.get(Fr)),e){case"add":c?h&&a(o.get("length")):(a(o.get(Ut)),C.isMap(t)&&a(o.get(js)));break;case"delete":c||(a(o.get(Ut)),C.isMap(t)&&a(o.get(js)));break;case"set":C.isMap(t)&&a(o.get(Ut));break}}fa()}function Gw(t,e){let r=Ms.get(t);return r&&r.get(e)}function vr(t){let e=D(t);return e===t?e:(ge(e,"iterate",Fr),qe(t)?e:e.map(ae))}function Gs(t){return ge(t=D(t),"iterate",Fr),t}var Uw={__proto__:null,[Symbol.iterator](){return na(this,Symbol.iterator,ae)},concat(...t){return vr(this).concat(...t.map(e=>C.isArray(e)?vr(e):e))},entries(){return na(this,"entries",t=>(t[1]=ae(t[1]),t))},every(t,e){return bt(this,"every",t,e,void 0,arguments)},filter(t,e){return bt(this,"filter",t,e,r=>r.map(ae),arguments)},find(t,e){return bt(this,"find",t,e,ae,arguments)},findIndex(t,e){return bt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return bt(this,"findLast",t,e,ae,arguments)},findLastIndex(t,e){return bt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return bt(this,"forEach",t,e,void 0,arguments)},includes(...t){return sa(this,"includes",t)},indexOf(...t){return sa(this,"indexOf",t)},join(t){return vr(this).join(t)},lastIndexOf(...t){return sa(this,"lastIndexOf",t)},map(t,e){return bt(this,"map",t,e,void 0,arguments)},pop(){return En(this,"pop")},push(...t){return En(this,"push",t)},reduce(t,...e){return kh(this,"reduce",t,e)},reduceRight(t,...e){return kh(this,"reduceRight",t,e)},shift(){return En(this,"shift")},some(t,e){return bt(this,"some",t,e,void 0,arguments)},splice(...t){return En(this,"splice",t)},toReversed(){return vr(this).toReversed()},toSorted(t){return vr(this).toSorted(t)},toSpliced(...t){return vr(this).toSpliced(...t)},unshift(...t){return En(this,"unshift",t)},values(){return na(this,"values",ae)}};function na(t,e,r){let n=Gs(t),s=n[e]();return n!==t&&!qe(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=r(i.value)),i}),s}var Ww=Array.prototype;function bt(t,e,r,n,s,i){let o=Gs(t),a=o!==t&&!qe(t),c=o[e];if(c!==Ww[e]){let l=c.apply(t,i);return a?ae(l):l}let h=r;o!==t&&(a?h=function(l,u){return r.call(this,ae(l),u,t)}:r.length>2&&(h=function(l,u){return r.call(this,l,u,t)}));let d=c.call(o,h,n);return a&&s?s(d):d}function kh(t,e,r,n){let s=Gs(t),i=r;return s!==t&&(qe(t)?r.length>3&&(i=function(o,a,c){return r.call(this,o,a,c,t)}):i=function(o,a,c){return r.call(this,o,ae(a),c,t)}),s[e](i,...n)}function sa(t,e,r){let n=D(t);ge(n,"iterate",Fr);let s=n[e](...r);return(s===-1||s===!1)&&wa(r[0])?(r[0]=D(r[0]),n[e](...r)):s}function En(t,e,r=[]){va(),pa();let n=D(t)[e].apply(t,r);return fa(),_a(),n}var Bw=C.makeMap("__proto__,__v_isRef,__isVue"),Lh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(C.isSymbol));function Kw(t){C.isSymbol(t)||(t=String(t));let e=D(this);return ge(e,"has",t),e.hasOwnProperty(t)}var Vs=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?Uh:Gh:i?Hh:qh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let o=C.isArray(e);if(!s){let c;if(o&&(c=Uw[r]))return c;if(r==="hasOwnProperty")return Kw}let a=Reflect.get(e,r,ve(e)?e:n);return(C.isSymbol(r)?Lh.has(r):Bw(r))||(s||ge(e,"get",r),i)?a:ve(a)?o&&C.isIntegerKey(r)?a:a.value:C.isObject(a)?s?ya(a):ba(a):a}},Fs=class extends Vs{constructor(e=!1){super(!1,e)}set(e,r,n,s){let i=e[r];if(!this._isShallow){let c=Wt(i);if(!qe(n)&&!Wt(n)&&(i=D(i),n=D(n)),!C.isArray(e)&&ve(i)&&!ve(n))return c?!1:(i.value=n,!0)}let o=C.isArray(e)&&C.isIntegerKey(r)?Number(r)<e.length:C.hasOwn(e,r),a=Reflect.set(e,r,n,ve(e)?e:s);return e===D(s)&&(o?C.hasChanged(n,i)&&yt(e,"set",r,n,i):yt(e,"add",r,n)),a}deleteProperty(e,r){let n=C.hasOwn(e,r),s=e[r],i=Reflect.deleteProperty(e,r);return i&&n&&yt(e,"delete",r,void 0,s),i}has(e,r){let n=Reflect.has(e,r);return(!C.isSymbol(r)||!Lh.has(r))&&ge(e,"has",r),n}ownKeys(e){return ge(e,"iterate",C.isArray(e)?"length":Ut),Reflect.ownKeys(e)}},Ls=class extends Vs{constructor(e=!1){super(!0,e)}set(e,r){return Pe(`Set operation on key "${String(r)}" failed: target is readonly.`,e),!0}deleteProperty(e,r){return Pe(`Delete operation on key "${String(r)}" failed: target is readonly.`,e),!0}},zw=new Fs,Yw=new Ls,Jw=new Fs(!0),Xw=new Ls(!0),aa=t=>t,Ds=t=>Reflect.getPrototypeOf(t);function Zw(t,e,r){return function(...n){let s=this.__v_raw,i=D(s),o=C.isMap(i),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,h=s[t](...n),d=r?aa:e?qs:ae;return!e&&ge(i,"iterate",c?js:Ut),{next(){let{value:l,done:u}=h.next();return u?{value:l,done:u}:{value:a?[d(l[0]),d(l[1])]:d(l),done:u}},[Symbol.iterator](){return this}}}}function $s(t){return function(...e){{let r=e[0]?`on key "${e[0]}" `:"";Pe(`${C.capitalize(t)} operation ${r}failed: target is readonly.`,D(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function Qw(t,e){let r={get(s){let i=this.__v_raw,o=D(i),a=D(s);t||(C.hasChanged(s,a)&&ge(o,"get",s),ge(o,"get",a));let{has:c}=Ds(o),h=e?aa:t?qs:ae;if(c.call(o,s))return h(i.get(s));if(c.call(o,a))return h(i.get(a));i!==o&&i.get(s)},get size(){let s=this.__v_raw;return!t&&ge(D(s),"iterate",Ut),Reflect.get(s,"size",s)},has(s){let i=this.__v_raw,o=D(i),a=D(s);return t||(C.hasChanged(s,a)&&ge(o,"has",s),ge(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){let o=this,a=o.__v_raw,c=D(a),h=e?aa:t?qs:ae;return!t&&ge(c,"iterate",Ut),a.forEach((d,l)=>s.call(i,h(d),h(l),o))}};return C.extend(r,t?{add:$s("add"),set:$s("set"),delete:$s("delete"),clear:$s("clear")}:{add(s){!e&&!qe(s)&&!Wt(s)&&(s=D(s));let i=D(this);return Ds(i).has.call(i,s)||(i.add(s),yt(i,"add",s,s)),this},set(s,i){!e&&!qe(i)&&!Wt(i)&&(i=D(i));let o=D(this),{has:a,get:c}=Ds(o),h=a.call(o,s);h?Dh(o,a,s):(s=D(s),h=a.call(o,s));let d=c.call(o,s);return o.set(s,i),h?C.hasChanged(i,d)&&yt(o,"set",s,i,d):yt(o,"add",s,i),this},delete(s){let i=D(this),{has:o,get:a}=Ds(i),c=o.call(i,s);c?Dh(i,o,s):(s=D(s),c=o.call(i,s));let h=a?a.call(i,s):void 0,d=i.delete(s);return c&&yt(i,"delete",s,void 0,h),d},clear(){let s=D(this),i=s.size!==0,o=C.isMap(s)?new Map(s):new Set(s),a=s.clear();return i&&yt(s,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=Zw(s,t,e)}),r}function Us(t,e){let r=Qw(t,e);return(n,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(C.hasOwn(r,s)&&s in n?r:n,s,i)}var eE={get:Us(!1,!1)},tE={get:Us(!1,!0)},rE={get:Us(!0,!1)},nE={get:Us(!0,!0)};function Dh(t,e,r){let n=D(r);if(n!==r&&e.call(t,n)){let s=C.toRawType(t);Pe(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var qh=new WeakMap,Hh=new WeakMap,Gh=new WeakMap,Uh=new WeakMap;function sE(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function iE(t){return t.__v_skip||!Object.isExtensible(t)?0:sE(C.toRawType(t))}function ba(t){return Wt(t)?t:Ws(t,!1,zw,eE,qh)}function oE(t){return Ws(t,!1,Jw,tE,Hh)}function ya(t){return Ws(t,!0,Yw,rE,Gh)}function aE(t){return Ws(t,!0,Xw,nE,Uh)}function Ws(t,e,r,n,s){if(!C.isObject(t))return Pe(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=iE(t);if(o===0)return t;let a=new Proxy(t,o===2?n:r);return s.set(t,a),a}function jr(t){return Wt(t)?jr(t.__v_raw):!!(t&&t.__v_isReactive)}function Wt(t){return!!(t&&t.__v_isReadonly)}function qe(t){return!!(t&&t.__v_isShallow)}function wa(t){return t?!!t.__v_raw:!1}function D(t){let e=t&&t.__v_raw;return e?D(e):t}function cE(t){return!C.hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&C.def(t,"__v_skip",!0),t}var ae=t=>C.isObject(t)?ba(t):t,qs=t=>C.isObject(t)?ya(t):t;function ve(t){return t?t.__v_isRef===!0:!1}function Wh(t){return Bh(t,!1)}function lE(t){return Bh(t,!0)}function Bh(t,e){return ve(t)?t:new ca(t,e)}var ca=class{constructor(e,r){this.dep=new Vr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:D(e),this._value=r?e:ae(e),this.__v_isShallow=r}get value(){return this.dep.track({target:this,type:"get",key:"value"}),this._value}set value(e){let r=this._rawValue,n=this.__v_isShallow||qe(e)||Wt(e);e=n?e:D(e),C.hasChanged(e,r)&&(this._rawValue=e,this._value=n?e:ae(e),this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:r}))}};function uE(t){t.dep&&t.dep.trigger({target:t,type:"set",key:"value",newValue:t._value})}function Ea(t){return ve(t)?t.value:t}function hE(t){return C.isFunction(t)?t():Ea(t)}var dE={get:(t,e,r)=>e==="__v_raw"?t:Ea(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let s=t[e];return ve(s)&&!ve(r)?(s.value=r,!0):Reflect.set(t,e,r,n)}};function pE(t){return jr(t)?t:new Proxy(t,dE)}var la=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let r=this.dep=new Vr,{get:n,set:s}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}};function fE(t){return new la(t)}function mE(t){wa(t)||Pe("toRefs() expects a reactive object but received a plain one.");let e=C.isArray(t)?new Array(t.length):{};for(let r in t)e[r]=Kh(t,r);return e}var ua=class{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Gw(D(this._object),this._key)}},ha=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function gE(t,e,r){return ve(t)?t:C.isFunction(t)?new ha(t):C.isObject(t)&&arguments.length>1?Kh(t,e,r):Wh(t)}function Kh(t,e,r){let n=t[e];return ve(n)?n:new ua(t,e,r)}var da=class{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Vr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&k!==this)return Ph(this,!0),!0}get value(){let e=this.dep.track({target:this,type:"get",key:"value"});return Vh(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):Pe("Write operation failed: computed value is readonly")}};function vE(t,e,r=!1){let n,s;C.isFunction(t)?n=t:(n=t.get,s=t.set);let i=new da(n,s,r);return e&&!r&&(i.onTrack=e.onTrack,i.onTrigger=e.onTrigger),i}var _E={GET:"get",HAS:"has",ITERATE:"iterate"},bE={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},yE={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},wE={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},Is={},Hs=new WeakMap,Gt;function EE(){return Gt}function zh(t,e=!1,r=Gt){if(r){let n=Hs.get(r);n||Hs.set(r,n=[]),n.push(t)}else e||Pe("onWatcherCleanup() was called when there was no active watcher to associate with.")}function SE(t,e,r=C.EMPTY_OBJ){let{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=r,h=x=>{(r.onWarn||Pe)("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=x=>s?x:qe(x)||s===!1||s===0?wt(x,1):wt(x),l,u,p,f,m=!1,_=!1;if(ve(t)?(u=()=>t.value,m=qe(t)):jr(t)?(u=()=>d(t),m=!0):C.isArray(t)?(_=!0,m=t.some(x=>jr(x)||qe(x)),u=()=>t.map(x=>{if(ve(x))return x.value;if(jr(x))return d(x);if(C.isFunction(x))return c?c(x,2):x();h(x)})):C.isFunction(t)?e?u=c?()=>c(t,2):t:u=()=>{if(p){va();try{p()}finally{_a()}}let x=Gt;Gt=l;try{return c?c(t,3,[f]):t(f)}finally{Gt=x}}:(u=C.NOOP,h(t)),e&&s){let x=u,K=s===!0?1/0:s;u=()=>wt(x(),K)}let v=$h(),S=()=>{l.stop(),v&&v.active&&C.remove(v.effects,l)};if(i&&e){let x=e;e=(...K)=>{x(...K),S()}}let $=_?new Array(t.length).fill(Is):Is,g=x=>{if(!(!(l.flags&1)||!l.dirty&&!x))if(e){let K=l.run();if(s||m||(_?K.some((te,ps)=>C.hasChanged(te,$[ps])):C.hasChanged(K,$))){p&&p();let te=Gt;Gt=l;try{let ps=[K,$===Is?void 0:_&&$[0]===Is?[]:$,f];c?c(e,3,ps):e(...ps),$=K}finally{Gt=te}}}else l.run()};return a&&a(g),l=new _r(u),l.scheduler=o?()=>o(g,!1):g,f=x=>zh(x,!1,l),p=l.onStop=()=>{let x=Hs.get(l);if(x){if(c)c(x,4);else for(let K of x)K();Hs.delete(l)}},l.onTrack=r.onTrack,l.onTrigger=r.onTrigger,e?n?g(!0):$=l.run():o?o(g.bind(null,!0),!0):l.run(),S.pause=l.pause.bind(l),S.resume=l.resume.bind(l),S.stop=S,S}function wt(t,e=1/0,r){if(e<=0||!C.isObject(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,ve(t))wt(t.value,e,r);else if(C.isArray(t))for(let n=0;n<t.length;n++)wt(t[n],e,r);else if(C.isSet(t)||C.isMap(t))t.forEach(n=>{wt(n,e,r)});else if(C.isPlainObject(t)){for(let n in t)wt(t[n],e,r);for(let n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&wt(t[n],e,r)}return t}T.ARRAY_ITERATE_KEY=Fr;T.EffectFlags=jw;T.EffectScope=Ps;T.ITERATE_KEY=Ut;T.MAP_KEY_ITERATE_KEY=js;T.ReactiveEffect=_r;T.ReactiveFlags=yE;T.TrackOpTypes=_E;T.TriggerOpTypes=bE;T.WatchErrorCodes=wE;T.computed=vE;T.customRef=fE;T.effect=Fw;T.effectScope=Pw;T.enableTracking=qw;T.getCurrentScope=$h;T.getCurrentWatcher=EE;T.isProxy=wa;T.isReactive=jr;T.isReadonly=Wt;T.isRef=ve;T.isShallow=qe;T.markRaw=cE;T.onEffectCleanup=Hw;T.onScopeDispose=Mw;T.onWatcherCleanup=zh;T.pauseTracking=va;T.proxyRefs=pE;T.reactive=ba;T.reactiveReadArray=vr;T.readonly=ya;T.ref=Wh;T.resetTracking=_a;T.shallowReactive=oE;T.shallowReadArray=Gs;T.shallowReadonly=aE;T.shallowRef=lE;T.stop=Lw;T.toRaw=D;T.toReactive=ae;T.toReadonly=qs;T.toRef=gE;T.toRefs=mE;T.toValue=hE;T.track=ge;T.traverse=wt;T.trigger=yt;T.triggerRef=uE;T.unref=Ea;T.watch=SE});var Bs=b((GT,Sa)=>{"use strict";process.env.NODE_ENV==="production"?Sa.exports=Nh():Sa.exports=Yh()});var On=b(Ca=>{"use strict";var Ks=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},xa=class extends Ks{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Ca.CommanderError=Ks;Ca.InvalidArgumentError=xa});var zs=b(Aa=>{"use strict";var{InvalidArgumentError:xE}=On(),Oa=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new xE(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function CE(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Aa.Argument=Oa;Aa.humanReadableArgName=CE});var Na=b(Jh=>{"use strict";var{humanReadableArgName:OE}=zs(),Ta=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(s=>!s._hidden),n=e._getHelpCommand();return n&&!n._hidden&&r.push(n),this.sortSubcommands&&r.sort((s,i)=>s.name().localeCompare(i.name())),r}compareOptions(e,r){let n=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._getHelpOption();if(n&&!n.hidden){let s=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);!s&&!i?r.push(n):n.long&&!i?r.push(e.createOption(n.long,n.description)):n.short&&!s&&r.push(e.createOption(n.short,n.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let s=n.options.filter(i=>!i.hidden);r.push(...s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>OE(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,s)=>Math.max(n,r.subcommandTerm(s).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,s)=>Math.max(n,r.optionTerm(s).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,s)=>Math.max(n,r.optionTerm(s).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,s)=>Math.max(n,r.argumentTerm(s).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let s=e.parent;s;s=s.parent)n=s.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),s=r.helpWidth||80,i=2,o=2;function a(f,m){if(m){let _=`${f.padEnd(n+o)}${m}`;return r.wrap(_,s-i,n+o)}return f}function c(f){return f.join(`
|
|
4
|
-
`).replace(/^/gm," ".repeat(i))}let
|
|
5
|
-
`)}padWidth(e,
|
|
1
|
+
"use strict";var y_=Object.create;var Pu=Object.defineProperty;var w_=Object.getOwnPropertyDescriptor;var C_=Object.getOwnPropertyNames;var E_=Object.getPrototypeOf,S_=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var x_=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of C_(e))!S_.call(t,s)&&s!==n&&Pu(t,s,{get:()=>e[s],enumerable:!(r=w_(e,s))||r.enumerable});return t};var W=(t,e,n)=>(n=t!=null?y_(E_(t)):{},x_(e||!t||!t.__esModule?Pu(n,"default",{value:t,enumerable:!0}):n,t));var Ju=b(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});function De(t){let e=Object.create(null);for(let n of t.split(","))e[n]=1;return n=>n in e}var O_={},A_=[],T_=()=>{},N_=()=>!1,k_=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),R_=t=>t.startsWith("onUpdate:"),D_=Object.assign,$_=(t,e)=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)},I_=Object.prototype.hasOwnProperty,P_=(t,e)=>I_.call(t,e),hn=Array.isArray,Vu=t=>pn(t)==="[object Map]",Fu=t=>pn(t)==="[object Set]",Ao=t=>pn(t)==="[object Date]",M_=t=>pn(t)==="[object RegExp]",gr=t=>typeof t=="function",st=t=>typeof t=="string",vr=t=>typeof t=="symbol",Vt=t=>t!==null&&typeof t=="object",j_=t=>(Vt(t)||gr(t))&&gr(t.then)&&gr(t.catch),To=Object.prototype.toString,pn=t=>To.call(t),V_=t=>pn(t).slice(8,-1),Lu=t=>pn(t)==="[object Object]",F_=t=>st(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,L_=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q_=De("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vs=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},H_=/-(\w)/g,G_=vs(t=>t.replace(H_,(e,n)=>n?n.toUpperCase():"")),U_=/\B([A-Z])/g,qu=vs(t=>t.replace(U_,"-$1").toLowerCase()),Hu=vs(t=>t.charAt(0).toUpperCase()+t.slice(1)),W_=vs(t=>t?`on${Hu(t)}`:""),B_=(t,e)=>!Object.is(t,e),K_=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},z_=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Y_=t=>{let e=parseFloat(t);return isNaN(e)?t:e},J_=t=>{let e=st(t)?Number(t):NaN;return isNaN(e)?t:e},Mu,X_=()=>Mu||(Mu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Z_=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Q_(t){return Z_.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`}function eb(t,e){return t+JSON.stringify(e,(n,r)=>typeof r=="function"?r.toString():r)}var tb={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"},nb={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]:"HOISTED",[-2]:"BAIL"},rb={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"},sb={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},ib={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},ob="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",Gu=De(ob),ab=Gu,ju=2;function lb(t,e=0,n=t.length){if(e=Math.max(0,Math.min(e,t.length)),n=Math.max(0,Math.min(n,t.length)),e>n)return"";let r=t.split(/(\r?\n)/),s=r.filter((a,l)=>l%2===1);r=r.filter((a,l)=>l%2===0);let i=0,o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+(s[a]&&s[a].length||0),i>=e){for(let l=a-ju;l<=a+ju||n>i;l++){if(l<0||l>=r.length)continue;let u=l+1;o.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);let h=r[l].length,c=s[l]&&s[l].length||0;if(l===a){let d=e-(i-(h+c)),p=Math.max(1,n>i?h-d:n-e);o.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(l>a){if(n>i){let d=Math.max(Math.min(n-i,h),1);o.push(" | "+"^".repeat(d))}i+=h+c}}break}return o.join(`
|
|
2
|
+
`)}function No(t){if(hn(t)){let e={};for(let n=0;n<t.length;n++){let r=t[n],s=st(r)?Uu(r):No(r);if(s)for(let i in s)e[i]=s[i]}return e}else if(st(t)||Vt(t))return t}var cb=/;(?![^(]*\))/g,ub=/:([^]+)/,db=/\/\*[^]*?\*\//g;function Uu(t){let e={};return t.replace(db,"").split(cb).forEach(n=>{if(n){let r=n.split(ub);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function hb(t){if(!t)return"";if(st(t))return t;let e="";for(let n in t){let r=t[n];if(st(r)||typeof r=="number"){let s=n.startsWith("--")?n:qu(n);e+=`${s}:${r};`}}return e}function ko(t){let e="";if(st(t))e=t;else if(hn(t))for(let n=0;n<t.length;n++){let r=ko(t[n]);r&&(e+=r+" ")}else if(Vt(t))for(let n in t)t[n]&&(e+=n+" ");return e.trim()}function pb(t){if(!t)return null;let{class:e,style:n}=t;return e&&!st(e)&&(t.class=ko(e)),n&&(t.style=No(n)),t}var fb="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",mb="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",gb="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",vb="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",_b=De(fb),bb=De(mb),yb=De(gb),wb=De(vb),Wu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Cb=De(Wu),Eb=De(Wu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Sb(t){return!!t||t===""}var xb=/[>/="'\u0009\u000a\u000c\u0020]/,xo={};function Ob(t){if(xo.hasOwnProperty(t))return xo[t];let e=xb.test(t);return e&&console.error(`unsafe attribute name: ${t}`),xo[t]=!e}var Ab={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Tb=De("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"),Nb=De("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"),kb=De("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(t){if(t==null)return!1;let e=typeof t;return e==="string"||e==="number"||e==="boolean"}var Db=/["'&<>]/;function $b(t){let e=""+t,n=Db.exec(e);if(!n)return e;let r="",s,i,o=0;for(i=n.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(r+=e.slice(o,i)),o=i+1,r+=s}return o!==i?r+e.slice(o,i):r}var Ib=/^-?>|<!--|-->|--!>|<!-$/g;function Pb(t){return t.replace(Ib,"")}var Bu=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Mb(t,e){return t.replace(Bu,n=>e?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function jb(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=_s(t[r],e[r]);return n}function _s(t,e){if(t===e)return!0;let n=Ao(t),r=Ao(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=vr(t),r=vr(e),n||r)return t===e;if(n=hn(t),r=hn(e),n||r)return n&&r?jb(t,e):!1;if(n=Vt(t),r=Vt(e),n||r){if(!n||!r)return!1;let s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(let o in t){let a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!_s(t[o],e[o]))return!1}}return String(t)===String(e)}function Vb(t,e){return t.findIndex(n=>_s(n,e))}var Ku=t=>!!(t&&t.__v_isRef===!0),zu=t=>st(t)?t:t==null?"":hn(t)||Vt(t)&&(t.toString===To||!gr(t.toString))?Ku(t)?zu(t.value):JSON.stringify(t,Yu,2):String(t),Yu=(t,e)=>Ku(e)?Yu(t,e.value):Vu(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],i)=>(n[Oo(r,i)+" =>"]=s,n),{})}:Fu(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Oo(n))}:vr(e)?Oo(e):Vt(e)&&!hn(e)&&!Lu(e)?String(e):e,Oo=(t,e="")=>{var n;return vr(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};y.EMPTY_ARR=A_;y.EMPTY_OBJ=O_;y.NO=N_;y.NOOP=T_;y.PatchFlagNames=nb;y.PatchFlags=tb;y.ShapeFlags=rb;y.SlotFlags=sb;y.camelize=G_;y.capitalize=Hu;y.cssVarNameEscapeSymbolsRE=Bu;y.def=z_;y.escapeHtml=$b;y.escapeHtmlComment=Pb;y.extend=D_;y.genCacheKey=eb;y.genPropsAccessExp=Q_;y.generateCodeFrame=lb;y.getEscapedCssVarName=Mb;y.getGlobalThis=X_;y.hasChanged=B_;y.hasOwn=P_;y.hyphenate=qu;y.includeBooleanAttr=Sb;y.invokeArrayFns=K_;y.isArray=hn;y.isBooleanAttr=Eb;y.isBuiltInDirective=q_;y.isDate=Ao;y.isFunction=gr;y.isGloballyAllowed=Gu;y.isGloballyWhitelisted=ab;y.isHTMLTag=_b;y.isIntegerKey=F_;y.isKnownHtmlAttr=Tb;y.isKnownMathMLAttr=kb;y.isKnownSvgAttr=Nb;y.isMap=Vu;y.isMathMLTag=yb;y.isModelListener=R_;y.isObject=Vt;y.isOn=k_;y.isPlainObject=Lu;y.isPromise=j_;y.isRegExp=M_;y.isRenderableAttrValue=Rb;y.isReservedProp=L_;y.isSSRSafeAttrName=Ob;y.isSVGTag=bb;y.isSet=Fu;y.isSpecialBooleanAttr=Cb;y.isString=st;y.isSymbol=vr;y.isVoidTag=wb;y.looseEqual=_s;y.looseIndexOf=Vb;y.looseToNumber=Y_;y.makeMap=De;y.normalizeClass=ko;y.normalizeProps=pb;y.normalizeStyle=No;y.objectToString=To;y.parseStringStyle=Uu;y.propsToAttrMap=Ab;y.remove=$_;y.slotFlagsText=ib;y.stringifyStyle=hb;y.toDisplayString=zu;y.toHandlerKey=W_;y.toNumber=J_;y.toRawType=V_;y.toTypeString=pn});var dd=b(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});function $e(t){let e=Object.create(null);for(let n of t.split(","))e[n]=1;return n=>n in e}var Fb=Object.freeze({}),Lb=Object.freeze([]),qb=()=>{},Hb=()=>!1,Gb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ub=t=>t.startsWith("onUpdate:"),Wb=Object.assign,Bb=(t,e)=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)},Kb=Object.prototype.hasOwnProperty,zb=(t,e)=>Kb.call(t,e),fn=Array.isArray,Qu=t=>mn(t)==="[object Map]",ed=t=>mn(t)==="[object Set]",$o=t=>mn(t)==="[object Date]",Yb=t=>mn(t)==="[object RegExp]",_r=t=>typeof t=="function",it=t=>typeof t=="string",br=t=>typeof t=="symbol",Ft=t=>t!==null&&typeof t=="object",Jb=t=>(Ft(t)||_r(t))&&_r(t.then)&&_r(t.catch),Io=Object.prototype.toString,mn=t=>Io.call(t),Xb=t=>mn(t).slice(8,-1),td=t=>mn(t)==="[object Object]",Zb=t=>it(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Qb=$e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ey=$e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),bs=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ty=/-(\w)/g,ny=bs(t=>t.replace(ty,(e,n)=>n?n.toUpperCase():"")),ry=/\B([A-Z])/g,nd=bs(t=>t.replace(ry,"-$1").toLowerCase()),rd=bs(t=>t.charAt(0).toUpperCase()+t.slice(1)),sy=bs(t=>t?`on${rd(t)}`:""),iy=(t,e)=>!Object.is(t,e),oy=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},ay=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},ly=t=>{let e=parseFloat(t);return isNaN(e)?t:e},cy=t=>{let e=it(t)?Number(t):NaN;return isNaN(e)?t:e},Xu,uy=()=>Xu||(Xu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),dy=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function hy(t){return dy.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`}function py(t,e){return t+JSON.stringify(e,(n,r)=>typeof r=="function"?r.toString():r)}var fy={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"},my={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]:"HOISTED",[-2]:"BAIL"},gy={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"},vy={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},_y={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},by="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",sd=$e(by),yy=sd,Zu=2;function wy(t,e=0,n=t.length){if(e=Math.max(0,Math.min(e,t.length)),n=Math.max(0,Math.min(n,t.length)),e>n)return"";let r=t.split(/(\r?\n)/),s=r.filter((a,l)=>l%2===1);r=r.filter((a,l)=>l%2===0);let i=0,o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+(s[a]&&s[a].length||0),i>=e){for(let l=a-Zu;l<=a+Zu||n>i;l++){if(l<0||l>=r.length)continue;let u=l+1;o.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);let h=r[l].length,c=s[l]&&s[l].length||0;if(l===a){let d=e-(i-(h+c)),p=Math.max(1,n>i?h-d:n-e);o.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(l>a){if(n>i){let d=Math.max(Math.min(n-i,h),1);o.push(" | "+"^".repeat(d))}i+=h+c}}break}return o.join(`
|
|
3
|
+
`)}function Po(t){if(fn(t)){let e={};for(let n=0;n<t.length;n++){let r=t[n],s=it(r)?id(r):Po(r);if(s)for(let i in s)e[i]=s[i]}return e}else if(it(t)||Ft(t))return t}var Cy=/;(?![^(]*\))/g,Ey=/:([^]+)/,Sy=/\/\*[^]*?\*\//g;function id(t){let e={};return t.replace(Sy,"").split(Cy).forEach(n=>{if(n){let r=n.split(Ey);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function xy(t){if(!t)return"";if(it(t))return t;let e="";for(let n in t){let r=t[n];if(it(r)||typeof r=="number"){let s=n.startsWith("--")?n:nd(n);e+=`${s}:${r};`}}return e}function Mo(t){let e="";if(it(t))e=t;else if(fn(t))for(let n=0;n<t.length;n++){let r=Mo(t[n]);r&&(e+=r+" ")}else if(Ft(t))for(let n in t)t[n]&&(e+=n+" ");return e.trim()}function Oy(t){if(!t)return null;let{class:e,style:n}=t;return e&&!it(e)&&(t.class=Mo(e)),n&&(t.style=Po(n)),t}var Ay="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",Ty="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",Ny="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",ky="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Ry=$e(Ay),Dy=$e(Ty),$y=$e(Ny),Iy=$e(ky),od="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Py=$e(od),My=$e(od+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function jy(t){return!!t||t===""}var Vy=/[>/="'\u0009\u000a\u000c\u0020]/,Ro={};function Fy(t){if(Ro.hasOwnProperty(t))return Ro[t];let e=Vy.test(t);return e&&console.error(`unsafe attribute name: ${t}`),Ro[t]=!e}var Ly={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},qy=$e("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"),Hy=$e("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"),Gy=$e("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 Uy(t){if(t==null)return!1;let e=typeof t;return e==="string"||e==="number"||e==="boolean"}var Wy=/["'&<>]/;function By(t){let e=""+t,n=Wy.exec(e);if(!n)return e;let r="",s,i,o=0;for(i=n.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(r+=e.slice(o,i)),o=i+1,r+=s}return o!==i?r+e.slice(o,i):r}var Ky=/^-?>|<!--|-->|--!>|<!-$/g;function zy(t){return t.replace(Ky,"")}var ad=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Yy(t,e){return t.replace(ad,n=>e?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function Jy(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=ys(t[r],e[r]);return n}function ys(t,e){if(t===e)return!0;let n=$o(t),r=$o(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=br(t),r=br(e),n||r)return t===e;if(n=fn(t),r=fn(e),n||r)return n&&r?Jy(t,e):!1;if(n=Ft(t),r=Ft(e),n||r){if(!n||!r)return!1;let s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(let o in t){let a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!ys(t[o],e[o]))return!1}}return String(t)===String(e)}function Xy(t,e){return t.findIndex(n=>ys(n,e))}var ld=t=>!!(t&&t.__v_isRef===!0),cd=t=>it(t)?t:t==null?"":fn(t)||Ft(t)&&(t.toString===Io||!_r(t.toString))?ld(t)?cd(t.value):JSON.stringify(t,ud,2):String(t),ud=(t,e)=>ld(e)?ud(t,e.value):Qu(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],i)=>(n[Do(r,i)+" =>"]=s,n),{})}:ed(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Do(n))}:br(e)?Do(e):Ft(e)&&!fn(e)&&!td(e)?String(e):e,Do=(t,e="")=>{var n;return br(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};w.EMPTY_ARR=Lb;w.EMPTY_OBJ=Fb;w.NO=Hb;w.NOOP=qb;w.PatchFlagNames=my;w.PatchFlags=fy;w.ShapeFlags=gy;w.SlotFlags=vy;w.camelize=ny;w.capitalize=rd;w.cssVarNameEscapeSymbolsRE=ad;w.def=ay;w.escapeHtml=By;w.escapeHtmlComment=zy;w.extend=Wb;w.genCacheKey=py;w.genPropsAccessExp=hy;w.generateCodeFrame=wy;w.getEscapedCssVarName=Yy;w.getGlobalThis=uy;w.hasChanged=iy;w.hasOwn=zb;w.hyphenate=nd;w.includeBooleanAttr=jy;w.invokeArrayFns=oy;w.isArray=fn;w.isBooleanAttr=My;w.isBuiltInDirective=ey;w.isDate=$o;w.isFunction=_r;w.isGloballyAllowed=sd;w.isGloballyWhitelisted=yy;w.isHTMLTag=Ry;w.isIntegerKey=Zb;w.isKnownHtmlAttr=qy;w.isKnownMathMLAttr=Gy;w.isKnownSvgAttr=Hy;w.isMap=Qu;w.isMathMLTag=$y;w.isModelListener=Ub;w.isObject=Ft;w.isOn=Gb;w.isPlainObject=td;w.isPromise=Jb;w.isRegExp=Yb;w.isRenderableAttrValue=Uy;w.isReservedProp=Qb;w.isSSRSafeAttrName=Fy;w.isSVGTag=Dy;w.isSet=ed;w.isSpecialBooleanAttr=Py;w.isString=it;w.isSymbol=br;w.isVoidTag=Iy;w.looseEqual=ys;w.looseIndexOf=Xy;w.looseToNumber=ly;w.makeMap=$e;w.normalizeClass=Mo;w.normalizeProps=Oy;w.normalizeStyle=Po;w.objectToString=Io;w.parseStringStyle=id;w.propsToAttrMap=Ly;w.remove=Bb;w.slotFlagsText=_y;w.stringifyStyle=xy;w.toDisplayString=cd;w.toHandlerKey=sy;w.toNumber=cy;w.toRawType=Xb;w.toTypeString=mn});var Vo=b((WT,jo)=>{"use strict";process.env.NODE_ENV==="production"?jo.exports=Ju():jo.exports=dd()});var Rd=b(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});var O=Vo(),pe,Ss=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=pe,!e&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){let n=pe;try{return pe=this,e()}finally{pe=n}}}on(){pe=this}off(){pe=this.parent}stop(e){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&&!e){let s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}};function Zy(t){return new Ss(t)}function fd(){return pe}function Qy(t,e=!1){pe&&pe.cleanups.push(t)}var L,ew={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED"},Fo=new WeakSet,vn=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,pe&&pe.active&&pe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fo.has(this)&&(Fo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,hd(this),vd(this);let e=L,n=Ie;L=this,Ie=!0;try{return this.fn()}finally{_d(this),L=e,Ie=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Zo(e);this.deps=this.depsTail=void 0,hd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ho(this)&&this.run()}get dirty(){return Ho(this)}},md=0,wr,Cr;function gd(t,e=!1){if(t.flags|=8,e){t.next=Cr,Cr=t;return}t.next=wr,wr=t}function Jo(){md++}function Xo(){if(--md>0)return;if(Cr){let e=Cr;for(Cr=void 0;e;){let n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;wr;){let e=wr;for(wr=void 0;e;){let n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function vd(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function _d(t){let e,n=t.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),Zo(r),tw(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function Ho(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(bd(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function bd(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Er))return;t.globalVersion=Er;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Ho(t)){t.flags&=-3;return}let n=L,r=Ie;L=t,Ie=!0;try{vd(t);let s=t.fn(t._value);(e.version===0||O.hasChanged(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{L=n,Ie=r,_d(t),t.flags&=-3}}function Zo(t,e=!1){let{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Zo(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function tw(t){let{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function nw(t,e){t.effect instanceof vn&&(t=t.effect.fn);let n=new vn(t);e&&O.extend(n,e);try{n.run()}catch(s){throw n.stop(),s}let r=n.run.bind(n);return r.effect=n,r}function rw(t){t.effect.stop()}var Ie=!0,Qo=[];function ea(){Qo.push(Ie),Ie=!1}function sw(){Qo.push(Ie),Ie=!0}function ta(){let t=Qo.pop();Ie=t===void 0?!0:t}function iw(t,e=!1){L instanceof vn&&(L.cleanup=t)}function hd(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let n=L;L=void 0;try{e()}finally{L=n}}}var Er=0,Go=class{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Mn=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!L||!Ie||L===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==L)n=this.activeLink=new Go(L,this),L.deps?(n.prevDep=L.depsTail,L.depsTail.nextDep=n,L.depsTail=n):L.deps=L.depsTail=n,yd(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=L.depsTail,n.nextDep=void 0,L.depsTail.nextDep=n,L.depsTail=n,L.deps===n&&(L.deps=r)}return n}trigger(e){this.version++,Er++,this.notify(e)}notify(e){Jo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Xo()}}};function yd(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)yd(r)}let n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}var xs=new WeakMap,qt=Symbol(""),Os=Symbol(""),jn=Symbol("");function fe(t,e,n){if(Ie&&L){let r=xs.get(t);r||xs.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Mn),s.map=r,s.key=n),s.track()}}function _t(t,e,n,r,s,i){let o=xs.get(t);if(!o){Er++;return}let a=l=>{l&&l.trigger()};if(Jo(),e==="clear")o.forEach(a);else{let l=O.isArray(t),u=l&&O.isIntegerKey(n);if(l&&n==="length"){let h=Number(r);o.forEach((c,d)=>{(d==="length"||d===jn||!O.isSymbol(d)&&d>=h)&&a(c)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(jn)),e){case"add":l?u&&a(o.get("length")):(a(o.get(qt)),O.isMap(t)&&a(o.get(Os)));break;case"delete":l||(a(o.get(qt)),O.isMap(t)&&a(o.get(Os)));break;case"set":O.isMap(t)&&a(o.get(qt));break}}Xo()}function ow(t,e){let n=xs.get(t);return n&&n.get(e)}function gn(t){let e=j(t);return e===t?e:(fe(e,"iterate",jn),qe(t)?e:e.map(ae))}function Ds(t){return fe(t=j(t),"iterate",jn),t}var aw={__proto__:null,[Symbol.iterator](){return Lo(this,Symbol.iterator,ae)},concat(...t){return gn(this).concat(...t.map(e=>O.isArray(e)?gn(e):e))},entries(){return Lo(this,"entries",t=>(t[1]=ae(t[1]),t))},every(t,e){return vt(this,"every",t,e,void 0,arguments)},filter(t,e){return vt(this,"filter",t,e,n=>n.map(ae),arguments)},find(t,e){return vt(this,"find",t,e,ae,arguments)},findIndex(t,e){return vt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return vt(this,"findLast",t,e,ae,arguments)},findLastIndex(t,e){return vt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return vt(this,"forEach",t,e,void 0,arguments)},includes(...t){return qo(this,"includes",t)},indexOf(...t){return qo(this,"indexOf",t)},join(t){return gn(this).join(t)},lastIndexOf(...t){return qo(this,"lastIndexOf",t)},map(t,e){return vt(this,"map",t,e,void 0,arguments)},pop(){return yr(this,"pop")},push(...t){return yr(this,"push",t)},reduce(t,...e){return pd(this,"reduce",t,e)},reduceRight(t,...e){return pd(this,"reduceRight",t,e)},shift(){return yr(this,"shift")},some(t,e){return vt(this,"some",t,e,void 0,arguments)},splice(...t){return yr(this,"splice",t)},toReversed(){return gn(this).toReversed()},toSorted(t){return gn(this).toSorted(t)},toSpliced(...t){return gn(this).toSpliced(...t)},unshift(...t){return yr(this,"unshift",t)},values(){return Lo(this,"values",ae)}};function Lo(t,e,n){let r=Ds(t),s=r[e]();return r!==t&&!qe(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=n(i.value)),i}),s}var lw=Array.prototype;function vt(t,e,n,r,s,i){let o=Ds(t),a=o!==t&&!qe(t),l=o[e];if(l!==lw[e]){let c=l.apply(t,i);return a?ae(c):c}let u=n;o!==t&&(a?u=function(c,d){return n.call(this,ae(c),d,t)}:n.length>2&&(u=function(c,d){return n.call(this,c,d,t)}));let h=l.call(o,u,r);return a&&s?s(h):h}function pd(t,e,n,r){let s=Ds(t),i=n;return s!==t&&(qe(t)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,t)}):i=function(o,a,l){return n.call(this,o,ae(a),l,t)}),s[e](i,...r)}function qo(t,e,n){let r=j(t);fe(r,"iterate",jn);let s=r[e](...n);return(s===-1||s===!1)&&Od(n[0])?(n[0]=j(n[0]),r[e](...n)):s}function yr(t,e,n=[]){ea(),Jo();let r=j(t)[e].apply(t,n);return Xo(),ta(),r}var cw=O.makeMap("__proto__,__v_isRef,__isVue"),wd=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(O.isSymbol));function uw(t){O.isSymbol(t)||(t=String(t));let e=j(this);return fe(e,"has",t),e.hasOwnProperty(t)}var As=class{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?xd:Sd:i?Ed:Cd).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=O.isArray(e);if(!s){let l;if(o&&(l=aw[n]))return l;if(n==="hasOwnProperty")return uw}let a=Reflect.get(e,n,me(e)?e:r);return(O.isSymbol(n)?wd.has(n):cw(n))||(s||fe(e,"get",n),i)?a:me(a)?o&&O.isIntegerKey(n)?a:a.value:O.isObject(a)?s?ra(a):na(a):a}},Ts=class extends As{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];if(!this._isShallow){let l=Ht(i);if(!qe(r)&&!Ht(r)&&(i=j(i),r=j(r)),!O.isArray(e)&&me(i)&&!me(r))return l?!1:(i.value=r,!0)}let o=O.isArray(e)&&O.isIntegerKey(n)?Number(n)<e.length:O.hasOwn(e,n),a=Reflect.set(e,n,r,me(e)?e:s);return e===j(s)&&(o?O.hasChanged(r,i)&&_t(e,"set",n,r):_t(e,"add",n,r)),a}deleteProperty(e,n){let r=O.hasOwn(e,n);e[n];let s=Reflect.deleteProperty(e,n);return s&&r&&_t(e,"delete",n,void 0),s}has(e,n){let r=Reflect.has(e,n);return(!O.isSymbol(n)||!wd.has(n))&&fe(e,"has",n),r}ownKeys(e){return fe(e,"iterate",O.isArray(e)?"length":qt),Reflect.ownKeys(e)}},Ns=class extends As{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}},dw=new Ts,hw=new Ns,pw=new Ts(!0),fw=new Ns(!0),Uo=t=>t,ws=t=>Reflect.getPrototypeOf(t);function mw(t,e,n){return function(...r){let s=this.__v_raw,i=j(s),o=O.isMap(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),h=n?Uo:e?ks:ae;return!e&&fe(i,"iterate",l?Os:qt),{next(){let{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:a?[h(c[0]),h(c[1])]:h(c),done:d}},[Symbol.iterator](){return this}}}}function Cs(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function gw(t,e){let n={get(s){let i=this.__v_raw,o=j(i),a=j(s);t||(O.hasChanged(s,a)&&fe(o,"get",s),fe(o,"get",a));let{has:l}=ws(o),u=e?Uo:t?ks:ae;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){let s=this.__v_raw;return!t&&fe(j(s),"iterate",qt),Reflect.get(s,"size",s)},has(s){let i=this.__v_raw,o=j(i),a=j(s);return t||(O.hasChanged(s,a)&&fe(o,"has",s),fe(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){let o=this,a=o.__v_raw,l=j(a),u=e?Uo:t?ks:ae;return!t&&fe(l,"iterate",qt),a.forEach((h,c)=>s.call(i,u(h),u(c),o))}};return O.extend(n,t?{add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear")}:{add(s){!e&&!qe(s)&&!Ht(s)&&(s=j(s));let i=j(this);return ws(i).has.call(i,s)||(i.add(s),_t(i,"add",s,s)),this},set(s,i){!e&&!qe(i)&&!Ht(i)&&(i=j(i));let o=j(this),{has:a,get:l}=ws(o),u=a.call(o,s);u||(s=j(s),u=a.call(o,s));let h=l.call(o,s);return o.set(s,i),u?O.hasChanged(i,h)&&_t(o,"set",s,i):_t(o,"add",s,i),this},delete(s){let i=j(this),{has:o,get:a}=ws(i),l=o.call(i,s);l||(s=j(s),l=o.call(i,s)),a&&a.call(i,s);let u=i.delete(s);return l&&_t(i,"delete",s,void 0),u},clear(){let s=j(this),i=s.size!==0,o=s.clear();return i&&_t(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=mw(s,t,e)}),n}function $s(t,e){let n=gw(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(O.hasOwn(n,s)&&s in r?n:r,s,i)}var vw={get:$s(!1,!1)},_w={get:$s(!1,!0)},bw={get:$s(!0,!1)},yw={get:$s(!0,!0)},Cd=new WeakMap,Ed=new WeakMap,Sd=new WeakMap,xd=new WeakMap;function ww(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Cw(t){return t.__v_skip||!Object.isExtensible(t)?0:ww(O.toRawType(t))}function na(t){return Ht(t)?t:Is(t,!1,dw,vw,Cd)}function Ew(t){return Is(t,!1,pw,_w,Ed)}function ra(t){return Is(t,!0,hw,bw,Sd)}function Sw(t){return Is(t,!0,fw,yw,xd)}function Is(t,e,n,r,s){if(!O.isObject(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=Cw(t);if(o===0)return t;let a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function Pn(t){return Ht(t)?Pn(t.__v_raw):!!(t&&t.__v_isReactive)}function Ht(t){return!!(t&&t.__v_isReadonly)}function qe(t){return!!(t&&t.__v_isShallow)}function Od(t){return t?!!t.__v_raw:!1}function j(t){let e=t&&t.__v_raw;return e?j(e):t}function xw(t){return!O.hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&O.def(t,"__v_skip",!0),t}var ae=t=>O.isObject(t)?na(t):t,ks=t=>O.isObject(t)?ra(t):t;function me(t){return t?t.__v_isRef===!0:!1}function Ad(t){return Td(t,!1)}function Ow(t){return Td(t,!0)}function Td(t,e){return me(t)?t:new Wo(t,e)}var Wo=class{constructor(e,n){this.dep=new Mn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:j(e),this._value=n?e:ae(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){let n=this._rawValue,r=this.__v_isShallow||qe(e)||Ht(e);e=r?e:j(e),O.hasChanged(e,n)&&(this._rawValue=e,this._value=r?e:ae(e),this.dep.trigger())}};function Aw(t){t.dep&&t.dep.trigger()}function sa(t){return me(t)?t.value:t}function Tw(t){return O.isFunction(t)?t():sa(t)}var Nw={get:(t,e,n)=>e==="__v_raw"?t:sa(Reflect.get(t,e,n)),set:(t,e,n,r)=>{let s=t[e];return me(s)&&!me(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function kw(t){return Pn(t)?t:new Proxy(t,Nw)}var Bo=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let n=this.dep=new Mn,{get:r,set:s}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Rw(t){return new Bo(t)}function Dw(t){let e=O.isArray(t)?new Array(t.length):{};for(let n in t)e[n]=Nd(t,n);return e}var Ko=class{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ow(j(this._object),this._key)}},zo=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function $w(t,e,n){return me(t)?t:O.isFunction(t)?new zo(t):O.isObject(t)&&arguments.length>1?Nd(t,e,n):Ad(t)}function Nd(t,e,n){let r=t[e];return me(r)?r:new Ko(t,e,n)}var Yo=class{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Mn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Er-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&L!==this)return gd(this,!0),!0}get value(){let e=this.dep.track();return bd(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Iw(t,e,n=!1){let r,s;return O.isFunction(t)?r=t:(r=t.get,s=t.set),new Yo(r,s,n)}var Pw={GET:"get",HAS:"has",ITERATE:"iterate"},Mw={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},jw={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},Vw={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},Es={},Rs=new WeakMap,Lt;function Fw(){return Lt}function kd(t,e=!1,n=Lt){if(n){let r=Rs.get(n);r||Rs.set(n,r=[]),r.push(t)}}function Lw(t,e,n=O.EMPTY_OBJ){let{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>s?_:qe(_)||s===!1||s===0?bt(_,1):bt(_),h,c,d,p,f=!1,g=!1;if(me(t)?(c=()=>t.value,f=qe(t)):Pn(t)?(c=()=>u(t),f=!0):O.isArray(t)?(g=!0,f=t.some(_=>Pn(_)||qe(_)),c=()=>t.map(_=>{if(me(_))return _.value;if(Pn(_))return u(_);if(O.isFunction(_))return l?l(_,2):_()})):O.isFunction(t)?e?c=l?()=>l(t,2):t:c=()=>{if(d){ea();try{d()}finally{ta()}}let _=Lt;Lt=h;try{return l?l(t,3,[p]):t(p)}finally{Lt=_}}:c=O.NOOP,e&&s){let _=c,S=s===!0?1/0:s;c=()=>bt(_(),S)}let v=fd(),m=()=>{h.stop(),v&&v.active&&O.remove(v.effects,h)};if(i&&e){let _=e;e=(...S)=>{_(...S),m()}}let E=g?new Array(t.length).fill(Es):Es,N=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(e){let S=h.run();if(s||f||(g?S.some((Y,ne)=>O.hasChanged(Y,E[ne])):O.hasChanged(S,E))){d&&d();let Y=Lt;Lt=h;try{let ne=[S,E===Es?void 0:g&&E[0]===Es?[]:E,p];l?l(e,3,ne):e(...ne),E=S}finally{Lt=Y}}}else h.run()};return a&&a(N),h=new vn(c),h.scheduler=o?()=>o(N,!1):N,p=_=>kd(_,!1,h),d=h.onStop=()=>{let _=Rs.get(h);if(_){if(l)l(_,4);else for(let S of _)S();Rs.delete(h)}},e?r?N(!0):E=h.run():o?o(N.bind(null,!0),!0):h.run(),m.pause=h.pause.bind(h),m.resume=h.resume.bind(h),m.stop=m,m}function bt(t,e=1/0,n){if(e<=0||!O.isObject(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,me(t))bt(t.value,e,n);else if(O.isArray(t))for(let r=0;r<t.length;r++)bt(t[r],e,n);else if(O.isSet(t)||O.isMap(t))t.forEach(r=>{bt(r,e,n)});else if(O.isPlainObject(t)){for(let r in t)bt(t[r],e,n);for(let r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&bt(t[r],e,n)}return t}A.ARRAY_ITERATE_KEY=jn;A.EffectFlags=ew;A.EffectScope=Ss;A.ITERATE_KEY=qt;A.MAP_KEY_ITERATE_KEY=Os;A.ReactiveEffect=vn;A.ReactiveFlags=jw;A.TrackOpTypes=Pw;A.TriggerOpTypes=Mw;A.WatchErrorCodes=Vw;A.computed=Iw;A.customRef=Rw;A.effect=nw;A.effectScope=Zy;A.enableTracking=sw;A.getCurrentScope=fd;A.getCurrentWatcher=Fw;A.isProxy=Od;A.isReactive=Pn;A.isReadonly=Ht;A.isRef=me;A.isShallow=qe;A.markRaw=xw;A.onEffectCleanup=iw;A.onScopeDispose=Qy;A.onWatcherCleanup=kd;A.pauseTracking=ea;A.proxyRefs=kw;A.reactive=na;A.reactiveReadArray=gn;A.readonly=ra;A.ref=Ad;A.resetTracking=ta;A.shallowReactive=Ew;A.shallowReadArray=Ds;A.shallowReadonly=Sw;A.shallowRef=Ow;A.stop=rw;A.toRaw=j;A.toReactive=ae;A.toReadonly=ks;A.toRef=$w;A.toRefs=Dw;A.toValue=Tw;A.track=fe;A.traverse=bt;A.trigger=_t;A.triggerRef=Aw;A.unref=sa;A.watch=Lw});var Xd=b(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var x=Vo();function Me(t,...e){console.warn(`[Vue warn] ${t}`,...e)}var ge,Vs=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ge,!e&&ge&&(this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){let n=ge;try{return ge=this,e()}finally{ge=n}}else Me("cannot run an inactive effect scope.")}on(){ge=this}off(){ge=this.parent}stop(e){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&&!e){let s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}};function qw(t){return new Vs(t)}function Pd(){return ge}function Hw(t,e=!1){ge?ge.cleanups.push(t):e||Me("onScopeDispose() is called when there is no active effect scope to be associated with.")}var $,Gw={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED"},ia=new WeakSet,bn=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ge&&ge.active&&ge.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ia.has(this)&&(ia.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||jd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dd(this),Vd(this);let e=$,n=Pe;$=this,Pe=!0;try{return this.fn()}finally{$!==this&&Me("Active effect was not restored correctly - this is likely a Vue internal bug."),Fd(this),$=e,Pe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)_a(e);this.deps=this.depsTail=void 0,Dd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ia.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){la(this)&&this.run()}get dirty(){return la(this)}},Md=0,xr,Or;function jd(t,e=!1){if(t.flags|=8,e){t.next=Or,Or=t;return}t.next=xr,xr=t}function ga(){Md++}function va(){if(--Md>0)return;if(Or){let e=Or;for(Or=void 0;e;){let n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;xr;){let e=xr;for(xr=void 0;e;){let n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Vd(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Fd(t){let e,n=t.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),_a(r),Uw(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function la(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ld(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ld(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ar))return;t.globalVersion=Ar;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!la(t)){t.flags&=-3;return}let n=$,r=Pe;$=t,Pe=!0;try{Vd(t);let s=t.fn(t._value);(e.version===0||x.hasChanged(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{$=n,Pe=r,Fd(t),t.flags&=-3}}function _a(t,e=!1){let{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subsHead===t&&(n.subsHead=s),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)_a(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function Uw(t){let{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function Ww(t,e){t.effect instanceof bn&&(t=t.effect.fn);let n=new bn(t);e&&x.extend(n,e);try{n.run()}catch(s){throw n.stop(),s}let r=n.run.bind(n);return r.effect=n,r}function Bw(t){t.effect.stop()}var Pe=!0,ba=[];function ya(){ba.push(Pe),Pe=!1}function Kw(){ba.push(Pe),Pe=!0}function wa(){let t=ba.pop();Pe=t===void 0?!0:t}function zw(t,e=!1){$ instanceof bn?$.cleanup=t:e||Me("onEffectCleanup() was called when there was no active effect to associate with.")}function Dd(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let n=$;$=void 0;try{e()}finally{$=n}}}var Ar=0,ca=class{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Fn=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.subsHead=void 0}track(e){if(!$||!Pe||$===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$)n=this.activeLink=new ca($,this),$.deps?(n.prevDep=$.depsTail,$.depsTail.nextDep=n,$.depsTail=n):$.deps=$.depsTail=n,qd(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$.depsTail,n.nextDep=void 0,$.depsTail.nextDep=n,$.depsTail=n,$.deps===n&&($.deps=r)}return $.onTrack&&$.onTrack(x.extend({effect:$},e)),n}trigger(e){this.version++,Ar++,this.notify(e)}notify(e){ga();try{for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(x.extend({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{va()}}};function qd(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)qd(r)}let n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subsHead===void 0&&(t.dep.subsHead=t),t.dep.subs=t}}var Fs=new WeakMap,Ut=Symbol("Object iterate"),Ls=Symbol("Map keys iterate"),Ln=Symbol("Array iterate");function ve(t,e,n){if(Pe&&$){let r=Fs.get(t);r||Fs.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Fn),s.map=r,s.key=n),s.track({target:t,type:e,key:n})}}function wt(t,e,n,r,s,i){let o=Fs.get(t);if(!o){Ar++;return}let a=l=>{l&&l.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i})};if(ga(),e==="clear")o.forEach(a);else{let l=x.isArray(t),u=l&&x.isIntegerKey(n);if(l&&n==="length"){let h=Number(r);o.forEach((c,d)=>{(d==="length"||d===Ln||!x.isSymbol(d)&&d>=h)&&a(c)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Ln)),e){case"add":l?u&&a(o.get("length")):(a(o.get(Ut)),x.isMap(t)&&a(o.get(Ls)));break;case"delete":l||(a(o.get(Ut)),x.isMap(t)&&a(o.get(Ls)));break;case"set":x.isMap(t)&&a(o.get(Ut));break}}va()}function Yw(t,e){let n=Fs.get(t);return n&&n.get(e)}function _n(t){let e=P(t);return e===t?e:(ve(e,"iterate",Ln),He(t)?e:e.map(le))}function Bs(t){return ve(t=P(t),"iterate",Ln),t}var Jw={__proto__:null,[Symbol.iterator](){return oa(this,Symbol.iterator,le)},concat(...t){return _n(this).concat(...t.map(e=>x.isArray(e)?_n(e):e))},entries(){return oa(this,"entries",t=>(t[1]=le(t[1]),t))},every(t,e){return yt(this,"every",t,e,void 0,arguments)},filter(t,e){return yt(this,"filter",t,e,n=>n.map(le),arguments)},find(t,e){return yt(this,"find",t,e,le,arguments)},findIndex(t,e){return yt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return yt(this,"findLast",t,e,le,arguments)},findLastIndex(t,e){return yt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return yt(this,"forEach",t,e,void 0,arguments)},includes(...t){return aa(this,"includes",t)},indexOf(...t){return aa(this,"indexOf",t)},join(t){return _n(this).join(t)},lastIndexOf(...t){return aa(this,"lastIndexOf",t)},map(t,e){return yt(this,"map",t,e,void 0,arguments)},pop(){return Sr(this,"pop")},push(...t){return Sr(this,"push",t)},reduce(t,...e){return $d(this,"reduce",t,e)},reduceRight(t,...e){return $d(this,"reduceRight",t,e)},shift(){return Sr(this,"shift")},some(t,e){return yt(this,"some",t,e,void 0,arguments)},splice(...t){return Sr(this,"splice",t)},toReversed(){return _n(this).toReversed()},toSorted(t){return _n(this).toSorted(t)},toSpliced(...t){return _n(this).toSpliced(...t)},unshift(...t){return Sr(this,"unshift",t)},values(){return oa(this,"values",le)}};function oa(t,e,n){let r=Bs(t),s=r[e]();return r!==t&&!He(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=n(i.value)),i}),s}var Xw=Array.prototype;function yt(t,e,n,r,s,i){let o=Bs(t),a=o!==t&&!He(t),l=o[e];if(l!==Xw[e]){let c=l.apply(t,i);return a?le(c):c}let u=n;o!==t&&(a?u=function(c,d){return n.call(this,le(c),d,t)}:n.length>2&&(u=function(c,d){return n.call(this,c,d,t)}));let h=l.call(o,u,r);return a&&s?s(h):h}function $d(t,e,n,r){let s=Bs(t),i=n;return s!==t&&(He(t)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,t)}):i=function(o,a,l){return n.call(this,o,le(a),l,t)}),s[e](i,...r)}function aa(t,e,n){let r=P(t);ve(r,"iterate",Ln);let s=r[e](...n);return(s===-1||s===!1)&&Sa(n[0])?(n[0]=P(n[0]),r[e](...n)):s}function Sr(t,e,n=[]){ya(),ga();let r=P(t)[e].apply(t,n);return va(),wa(),r}var Zw=x.makeMap("__proto__,__v_isRef,__isVue"),Hd=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(x.isSymbol));function Qw(t){x.isSymbol(t)||(t=String(t));let e=P(this);return ve(e,"has",t),e.hasOwnProperty(t)}var qs=class{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Bd:Wd:i?Ud:Gd).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=x.isArray(e);if(!s){let l;if(o&&(l=Jw[n]))return l;if(n==="hasOwnProperty")return Qw}let a=Reflect.get(e,n,_e(e)?e:r);return(x.isSymbol(n)?Hd.has(n):Zw(n))||(s||ve(e,"get",n),i)?a:_e(a)?o&&x.isIntegerKey(n)?a:a.value:x.isObject(a)?s?Ea(a):Ca(a):a}},Hs=class extends qs{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];if(!this._isShallow){let l=Wt(i);if(!He(r)&&!Wt(r)&&(i=P(i),r=P(r)),!x.isArray(e)&&_e(i)&&!_e(r))return l?!1:(i.value=r,!0)}let o=x.isArray(e)&&x.isIntegerKey(n)?Number(n)<e.length:x.hasOwn(e,n),a=Reflect.set(e,n,r,_e(e)?e:s);return e===P(s)&&(o?x.hasChanged(r,i)&&wt(e,"set",n,r,i):wt(e,"add",n,r)),a}deleteProperty(e,n){let r=x.hasOwn(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&wt(e,"delete",n,void 0,s),i}has(e,n){let r=Reflect.has(e,n);return(!x.isSymbol(n)||!Hd.has(n))&&ve(e,"has",n),r}ownKeys(e){return ve(e,"iterate",x.isArray(e)?"length":Ut),Reflect.ownKeys(e)}},Gs=class extends qs{constructor(e=!1){super(!0,e)}set(e,n){return Me(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return Me(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}},eC=new Hs,tC=new Gs,nC=new Hs(!0),rC=new Gs(!0),ua=t=>t,Ps=t=>Reflect.getPrototypeOf(t);function sC(t,e,n){return function(...r){let s=this.__v_raw,i=P(s),o=x.isMap(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),h=n?ua:e?Us:le;return!e&&ve(i,"iterate",l?Ls:Ut),{next(){let{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:a?[h(c[0]),h(c[1])]:h(c),done:d}},[Symbol.iterator](){return this}}}}function Ms(t){return function(...e){{let n=e[0]?`on key "${e[0]}" `:"";Me(`${x.capitalize(t)} operation ${n}failed: target is readonly.`,P(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function iC(t,e){let n={get(s){let i=this.__v_raw,o=P(i),a=P(s);t||(x.hasChanged(s,a)&&ve(o,"get",s),ve(o,"get",a));let{has:l}=Ps(o),u=e?ua:t?Us:le;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){let s=this.__v_raw;return!t&&ve(P(s),"iterate",Ut),Reflect.get(s,"size",s)},has(s){let i=this.__v_raw,o=P(i),a=P(s);return t||(x.hasChanged(s,a)&&ve(o,"has",s),ve(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){let o=this,a=o.__v_raw,l=P(a),u=e?ua:t?Us:le;return!t&&ve(l,"iterate",Ut),a.forEach((h,c)=>s.call(i,u(h),u(c),o))}};return x.extend(n,t?{add:Ms("add"),set:Ms("set"),delete:Ms("delete"),clear:Ms("clear")}:{add(s){!e&&!He(s)&&!Wt(s)&&(s=P(s));let i=P(this);return Ps(i).has.call(i,s)||(i.add(s),wt(i,"add",s,s)),this},set(s,i){!e&&!He(i)&&!Wt(i)&&(i=P(i));let o=P(this),{has:a,get:l}=Ps(o),u=a.call(o,s);u?Id(o,a,s):(s=P(s),u=a.call(o,s));let h=l.call(o,s);return o.set(s,i),u?x.hasChanged(i,h)&&wt(o,"set",s,i,h):wt(o,"add",s,i),this},delete(s){let i=P(this),{has:o,get:a}=Ps(i),l=o.call(i,s);l?Id(i,o,s):(s=P(s),l=o.call(i,s));let u=a?a.call(i,s):void 0,h=i.delete(s);return l&&wt(i,"delete",s,void 0,u),h},clear(){let s=P(this),i=s.size!==0,o=x.isMap(s)?new Map(s):new Set(s),a=s.clear();return i&&wt(s,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=sC(s,t,e)}),n}function Ks(t,e){let n=iC(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(x.hasOwn(n,s)&&s in r?n:r,s,i)}var oC={get:Ks(!1,!1)},aC={get:Ks(!1,!0)},lC={get:Ks(!0,!1)},cC={get:Ks(!0,!0)};function Id(t,e,n){let r=P(n);if(r!==n&&e.call(t,r)){let s=x.toRawType(t);Me(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Gd=new WeakMap,Ud=new WeakMap,Wd=new WeakMap,Bd=new WeakMap;function uC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dC(t){return t.__v_skip||!Object.isExtensible(t)?0:uC(x.toRawType(t))}function Ca(t){return Wt(t)?t:zs(t,!1,eC,oC,Gd)}function hC(t){return zs(t,!1,nC,aC,Ud)}function Ea(t){return zs(t,!0,tC,lC,Wd)}function pC(t){return zs(t,!0,rC,cC,Bd)}function zs(t,e,n,r,s){if(!x.isObject(t))return Me(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=dC(t);if(o===0)return t;let a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function Vn(t){return Wt(t)?Vn(t.__v_raw):!!(t&&t.__v_isReactive)}function Wt(t){return!!(t&&t.__v_isReadonly)}function He(t){return!!(t&&t.__v_isShallow)}function Sa(t){return t?!!t.__v_raw:!1}function P(t){let e=t&&t.__v_raw;return e?P(e):t}function fC(t){return!x.hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&x.def(t,"__v_skip",!0),t}var le=t=>x.isObject(t)?Ca(t):t,Us=t=>x.isObject(t)?Ea(t):t;function _e(t){return t?t.__v_isRef===!0:!1}function Kd(t){return zd(t,!1)}function mC(t){return zd(t,!0)}function zd(t,e){return _e(t)?t:new da(t,e)}var da=class{constructor(e,n){this.dep=new Fn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:P(e),this._value=n?e:le(e),this.__v_isShallow=n}get value(){return this.dep.track({target:this,type:"get",key:"value"}),this._value}set value(e){let n=this._rawValue,r=this.__v_isShallow||He(e)||Wt(e);e=r?e:P(e),x.hasChanged(e,n)&&(this._rawValue=e,this._value=r?e:le(e),this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:n}))}};function gC(t){t.dep&&t.dep.trigger({target:t,type:"set",key:"value",newValue:t._value})}function xa(t){return _e(t)?t.value:t}function vC(t){return x.isFunction(t)?t():xa(t)}var _C={get:(t,e,n)=>e==="__v_raw"?t:xa(Reflect.get(t,e,n)),set:(t,e,n,r)=>{let s=t[e];return _e(s)&&!_e(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function bC(t){return Vn(t)?t:new Proxy(t,_C)}var ha=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let n=this.dep=new Fn,{get:r,set:s}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}};function yC(t){return new ha(t)}function wC(t){Sa(t)||Me("toRefs() expects a reactive object but received a plain one.");let e=x.isArray(t)?new Array(t.length):{};for(let n in t)e[n]=Yd(t,n);return e}var pa=class{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Yw(P(this._object),this._key)}},fa=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function CC(t,e,n){return _e(t)?t:x.isFunction(t)?new fa(t):x.isObject(t)&&arguments.length>1?Yd(t,e,n):Kd(t)}function Yd(t,e,n){let r=t[e];return _e(r)?r:new pa(t,e,n)}var ma=class{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Fn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ar-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$!==this)return jd(this,!0),!0}get value(){let e=this.dep.track({target:this,type:"get",key:"value"});return Ld(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):Me("Write operation failed: computed value is readonly")}};function EC(t,e,n=!1){let r,s;x.isFunction(t)?r=t:(r=t.get,s=t.set);let i=new ma(r,s,n);return e&&!n&&(i.onTrack=e.onTrack,i.onTrigger=e.onTrigger),i}var SC={GET:"get",HAS:"has",ITERATE:"iterate"},xC={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},OC={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},AC={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},js={},Ws=new WeakMap,Gt;function TC(){return Gt}function Jd(t,e=!1,n=Gt){if(n){let r=Ws.get(n);r||Ws.set(n,r=[]),r.push(t)}else e||Me("onWatcherCleanup() was called when there was no active watcher to associate with.")}function NC(t,e,n=x.EMPTY_OBJ){let{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=S=>{(n.onWarn||Me)("Invalid watch source: ",S,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=S=>s?S:He(S)||s===!1||s===0?Ct(S,1):Ct(S),c,d,p,f,g=!1,v=!1;if(_e(t)?(d=()=>t.value,g=He(t)):Vn(t)?(d=()=>h(t),g=!0):x.isArray(t)?(v=!0,g=t.some(S=>Vn(S)||He(S)),d=()=>t.map(S=>{if(_e(S))return S.value;if(Vn(S))return h(S);if(x.isFunction(S))return l?l(S,2):S();u(S)})):x.isFunction(t)?e?d=l?()=>l(t,2):t:d=()=>{if(p){ya();try{p()}finally{wa()}}let S=Gt;Gt=c;try{return l?l(t,3,[f]):t(f)}finally{Gt=S}}:(d=x.NOOP,u(t)),e&&s){let S=d,Y=s===!0?1/0:s;d=()=>Ct(S(),Y)}let m=Pd(),E=()=>{c.stop(),m&&m.active&&x.remove(m.effects,c)};if(i&&e){let S=e;e=(...Y)=>{S(...Y),E()}}let N=v?new Array(t.length).fill(js):js,_=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(e){let Y=c.run();if(s||g||(v?Y.some((ne,gs)=>x.hasChanged(ne,N[gs])):x.hasChanged(Y,N))){p&&p();let ne=Gt;Gt=c;try{let gs=[Y,N===js?void 0:v&&N[0]===js?[]:N,f];l?l(e,3,gs):e(...gs),N=Y}finally{Gt=ne}}}else c.run()};return a&&a(_),c=new bn(d),c.scheduler=o?()=>o(_,!1):_,f=S=>Jd(S,!1,c),p=c.onStop=()=>{let S=Ws.get(c);if(S){if(l)l(S,4);else for(let Y of S)Y();Ws.delete(c)}},c.onTrack=n.onTrack,c.onTrigger=n.onTrigger,e?r?_(!0):N=c.run():o?o(_.bind(null,!0),!0):c.run(),E.pause=c.pause.bind(c),E.resume=c.resume.bind(c),E.stop=E,E}function Ct(t,e=1/0,n){if(e<=0||!x.isObject(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,_e(t))Ct(t.value,e,n);else if(x.isArray(t))for(let r=0;r<t.length;r++)Ct(t[r],e,n);else if(x.isSet(t)||x.isMap(t))t.forEach(r=>{Ct(r,e,n)});else if(x.isPlainObject(t)){for(let r in t)Ct(t[r],e,n);for(let r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Ct(t[r],e,n)}return t}T.ARRAY_ITERATE_KEY=Ln;T.EffectFlags=Gw;T.EffectScope=Vs;T.ITERATE_KEY=Ut;T.MAP_KEY_ITERATE_KEY=Ls;T.ReactiveEffect=bn;T.ReactiveFlags=OC;T.TrackOpTypes=SC;T.TriggerOpTypes=xC;T.WatchErrorCodes=AC;T.computed=EC;T.customRef=yC;T.effect=Ww;T.effectScope=qw;T.enableTracking=Kw;T.getCurrentScope=Pd;T.getCurrentWatcher=TC;T.isProxy=Sa;T.isReactive=Vn;T.isReadonly=Wt;T.isRef=_e;T.isShallow=He;T.markRaw=fC;T.onEffectCleanup=zw;T.onScopeDispose=Hw;T.onWatcherCleanup=Jd;T.pauseTracking=ya;T.proxyRefs=bC;T.reactive=Ca;T.reactiveReadArray=_n;T.readonly=Ea;T.ref=Kd;T.resetTracking=wa;T.shallowReactive=hC;T.shallowReadArray=Bs;T.shallowReadonly=pC;T.shallowRef=mC;T.stop=Bw;T.toRaw=P;T.toReactive=le;T.toReadonly=Us;T.toRef=CC;T.toRefs=wC;T.toValue=vC;T.track=ve;T.traverse=Ct;T.trigger=wt;T.triggerRef=gC;T.unref=xa;T.watch=NC});var Ys=b((zT,Oa)=>{"use strict";process.env.NODE_ENV==="production"?Oa.exports=Rd():Oa.exports=Xd()});var Tr=b(Ta=>{"use strict";var Js=class extends Error{constructor(e,n,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=e,this.nestedError=void 0}},Aa=class extends Js{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Ta.CommanderError=Js;Ta.InvalidArgumentError=Aa});var Xs=b(ka=>{"use strict";var{InvalidArgumentError:kC}=Tr(),Na=class{constructor(e,n){switch(this.description=n||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,n){return n===this.defaultValue||!Array.isArray(n)?[e]:n.concat(e)}default(e,n){return this.defaultValue=e,this.defaultValueDescription=n,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(n,r)=>{if(!this.argChoices.includes(n))throw new kC(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,r):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function RC(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}ka.Argument=Na;ka.humanReadableArgName=RC});var Da=b(Zd=>{"use strict";var{humanReadableArgName:DC}=Xs(),Ra=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let n=e.commands.filter(s=>!s._hidden),r=e._getHelpCommand();return r&&!r._hidden&&n.push(r),this.sortSubcommands&&n.sort((s,i)=>s.name().localeCompare(i.name())),n}compareOptions(e,n){let r=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return r(e).localeCompare(r(n))}visibleOptions(e){let n=e.options.filter(s=>!s.hidden),r=e._getHelpOption();if(r&&!r.hidden){let s=r.short&&e._findOption(r.short),i=r.long&&e._findOption(r.long);!s&&!i?n.push(r):r.long&&!i?n.push(e.createOption(r.long,r.description)):r.short&&!s&&n.push(e.createOption(r.short,r.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let n=[];for(let r=e.parent;r;r=r.parent){let s=r.options.filter(i=>!i.hidden);n.push(...s)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(n=>{n.description=n.description||e._argsDescription[n.name()]||""}),e.registeredArguments.find(n=>n.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(r=>DC(r)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,n){return n.visibleCommands(e).reduce((r,s)=>Math.max(r,n.subcommandTerm(s).length),0)}longestOptionTermLength(e,n){return n.visibleOptions(e).reduce((r,s)=>Math.max(r,n.optionTerm(s).length),0)}longestGlobalOptionTermLength(e,n){return n.visibleGlobalOptions(e).reduce((r,s)=>Math.max(r,n.optionTerm(s).length),0)}longestArgumentTermLength(e,n){return n.visibleArguments(e).reduce((r,s)=>Math.max(r,n.argumentTerm(s).length),0)}commandUsage(e){let n=e._name;e._aliases[0]&&(n=n+"|"+e._aliases[0]);let r="";for(let s=e.parent;s;s=s.parent)r=s.name()+" "+r;return r+n+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let n=[];return e.argChoices&&n.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&n.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&n.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&n.push(`env: ${e.envVar}`),n.length>0?`${e.description} (${n.join(", ")})`:e.description}argumentDescription(e){let n=[];if(e.argChoices&&n.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&n.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),n.length>0){let r=`(${n.join(", ")})`;return e.description?`${e.description} ${r}`:r}return e.description}formatHelp(e,n){let r=n.padWidth(e,n),s=n.helpWidth||80,i=2,o=2;function a(f,g){if(g){let v=`${f.padEnd(r+o)}${g}`;return n.wrap(v,s-i,r+o)}return f}function l(f){return f.join(`
|
|
4
|
+
`).replace(/^/gm," ".repeat(i))}let u=[`Usage: ${n.commandUsage(e)}`,""],h=n.commandDescription(e);h.length>0&&(u=u.concat([n.wrap(h,s,0),""]));let c=n.visibleArguments(e).map(f=>a(n.argumentTerm(f),n.argumentDescription(f)));c.length>0&&(u=u.concat(["Arguments:",l(c),""]));let d=n.visibleOptions(e).map(f=>a(n.optionTerm(f),n.optionDescription(f)));if(d.length>0&&(u=u.concat(["Options:",l(d),""])),this.showGlobalOptions){let f=n.visibleGlobalOptions(e).map(g=>a(n.optionTerm(g),n.optionDescription(g)));f.length>0&&(u=u.concat(["Global Options:",l(f),""]))}let p=n.visibleCommands(e).map(f=>a(n.subcommandTerm(f),n.subcommandDescription(f)));return p.length>0&&(u=u.concat(["Commands:",l(p),""])),u.join(`
|
|
5
|
+
`)}padWidth(e,n){return Math.max(n.longestOptionTermLength(e,n),n.longestGlobalOptionTermLength(e,n),n.longestSubcommandTermLength(e,n),n.longestArgumentTermLength(e,n))}wrap(e,n,r,s=40){let i=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${i}]+`);if(e.match(o))return e;let a=n-r;if(a<s)return e;let l=e.slice(0,r),u=e.slice(r).replace(`\r
|
|
6
6
|
`,`
|
|
7
|
-
`),
|
|
8
|
-
|.{1,${a-1}}([${
|
|
9
|
-
`?"":(
|
|
10
|
-
`)}};
|
|
11
|
-
(Did you mean one of ${
|
|
12
|
-
(Did you mean ${
|
|
13
|
-
- specify the name in Command constructor or using .name()`);return
|
|
14
|
-
Expecting one of '${
|
|
15
|
-
- already used by option '${
|
|
7
|
+
`),h=" ".repeat(r),d="\\s\u200B",p=new RegExp(`
|
|
8
|
+
|.{1,${a-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),f=u.match(p)||[];return l+f.map((g,v)=>g===`
|
|
9
|
+
`?"":(v>0?h:"")+g.trimEnd()).join(`
|
|
10
|
+
`)}};Zd.Help=Ra});var Ma=b(Pa=>{"use strict";var{InvalidArgumentError:$C}=Tr(),$a=class{constructor(e,n){this.flags=e,this.description=n||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let r=PC(e);this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,n){return this.defaultValue=e,this.defaultValueDescription=n,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let n=e;return typeof e=="string"&&(n={[e]:!0}),this.implied=Object.assign(this.implied||{},n),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,n){return n===this.defaultValue||!Array.isArray(n)?[e]:n.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(n,r)=>{if(!this.argChoices.includes(n))throw new $C(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,r):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return IC(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Ia=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,r)=>{this.positiveOptions.has(r)&&this.dualOptions.add(r)})}valueFromOption(e,n){let r=n.attributeName();if(!this.dualOptions.has(r))return!0;let s=this.negativeOptions.get(r).presetArg,i=s!==void 0?s:!1;return n.negate===(i===e)}};function IC(t){return t.split("-").reduce((e,n)=>e+n[0].toUpperCase()+n.slice(1))}function PC(t){let e,n,r=t.split(/[ |,]+/);return r.length>1&&!/^[[<]/.test(r[1])&&(e=r.shift()),n=r.shift(),!e&&/^-[^-]$/.test(n)&&(e=n,n=void 0),{shortFlag:e,longFlag:n}}Pa.Option=$a;Pa.DualOptions=Ia});var eh=b(Qd=>{"use strict";function MC(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let n=[];for(let r=0;r<=t.length;r++)n[r]=[r];for(let r=0;r<=e.length;r++)n[0][r]=r;for(let r=1;r<=e.length;r++)for(let s=1;s<=t.length;s++){let i=1;t[s-1]===e[r-1]?i=0:i=1,n[s][r]=Math.min(n[s-1][r]+1,n[s][r-1]+1,n[s-1][r-1]+i),s>1&&r>1&&t[s-1]===e[r-2]&&t[s-2]===e[r-1]&&(n[s][r]=Math.min(n[s][r],n[s-2][r-2]+1))}return n[t.length][e.length]}function jC(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let n=t.startsWith("--");n&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let r=[],s=3,i=.4;return e.forEach(o=>{if(o.length<=1)return;let a=MC(t,o),l=Math.max(t.length,o.length);(l-a)/l>i&&(a<s?(s=a,r=[o]):a===s&&r.push(o))}),r.sort((o,a)=>o.localeCompare(a)),n&&(r=r.map(o=>`--${o}`)),r.length>1?`
|
|
11
|
+
(Did you mean one of ${r.join(", ")}?)`:r.length===1?`
|
|
12
|
+
(Did you mean ${r[0]}?)`:""}Qd.suggestSimilar=jC});var ih=b(sh=>{"use strict";var VC=require("node:events").EventEmitter,ja=require("node:child_process"),Et=require("node:path"),Va=require("node:fs"),J=require("node:process"),{Argument:FC,humanReadableArgName:LC}=Xs(),{CommanderError:Fa}=Tr(),{Help:qC}=Da(),{Option:th,DualOptions:HC}=Ma(),{suggestSimilar:nh}=eh(),La=class t extends VC{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:n=>J.stdout.write(n),writeErr:n=>J.stderr.write(n),getOutHelpWidth:()=>J.stdout.isTTY?J.stdout.columns:void 0,getErrHelpWidth:()=>J.stderr.isTTY?J.stderr.columns:void 0,outputError:(n,r)=>r(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let n=this;n;n=n.parent)e.push(n);return e}command(e,n,r){let s=n,i=r;typeof s=="object"&&s!==null&&(i=s,s=null),i=i||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return s&&(l.description(s),l._executableHandler=!0),i.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(i.noHelp||i.hidden),l._executableFile=i.executableFile||null,a&&l.arguments(a),this._registerCommand(l),l.parent=this,l.copyInheritedSettings(this),s?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new qC,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,n){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
13
|
+
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=e._name),(n.noHelp||n.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,n){return new FC(e,n)}argument(e,n,r,s){let i=this.createArgument(e,n);return typeof r=="function"?i.default(s).argParser(r):i.default(r),this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(e){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,n){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,r,s]=e.match(/([^ ]+) *(.*)/),i=n??"display help for command",o=this.createCommand(r);return o.helpOption(!1),s&&o.arguments(s),i&&o.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=o,this}addHelpCommand(e,n){return typeof e!="object"?(this.helpCommand(e,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,n){let r=["preSubcommand","preAction","postAction"];if(!r.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
14
|
+
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(n):this._lifeCycleHooks[e]=[n],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(e,n,r){this._exitCallback&&this._exitCallback(new Fa(e,n,r)),J.exit(e)}action(e){let n=r=>{let s=this.registeredArguments.length,i=r.slice(0,s);return this._storeOptionsAsProperties?i[s]=this:i[s]=this.opts(),i.push(this),e.apply(this,i)};return this._actionHandler=n,this}createOption(e,n){return new th(e,n)}_callParseArg(e,n,r,s){try{return e.parseArg(n,r)}catch(i){if(i.code==="commander.invalidArgument"){let o=`${s} ${i.message}`;this.error(o,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(e){let n=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(n){let r=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'
|
|
15
|
+
- already used by option '${n.flags}'`)}this.options.push(e)}_registerCommand(e){let n=s=>[s.name()].concat(s.aliases()),r=n(e).find(s=>this._findCommand(s));if(r){let s=n(this._findCommand(r)).join("|"),i=n(e).join("|");throw new Error(`cannot add command '${i}' as already have command '${s}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let n=e.name(),r=e.attributeName();if(e.negate){let i=e.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(r,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(r,e.defaultValue,"default");let s=(i,o,a)=>{i==null&&e.presetArg!==void 0&&(i=e.presetArg);let l=this.getOptionValue(r);i!==null&&e.parseArg?i=this._callParseArg(e,i,l,o):i!==null&&e.variadic&&(i=e._concatValue(i,l)),i==null&&(e.negate?i=!1:e.isBoolean()||e.optional?i=!0:i=""),this.setOptionValueWithSource(r,i,a)};return this.on("option:"+n,i=>{let o=`error: option '${e.flags}' argument '${i}' is invalid.`;s(i,o,"cli")}),e.envVar&&this.on("optionEnv:"+n,i=>{let o=`error: option '${e.flags}' value '${i}' from env '${e.envVar}' is invalid.`;s(i,o,"env")}),this}_optionEx(e,n,r,s,i){if(typeof n=="object"&&n instanceof th)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(n,r);if(o.makeOptionMandatory(!!e.mandatory),typeof s=="function")o.default(i).argParser(s);else if(s instanceof RegExp){let a=s;s=(l,u)=>{let h=a.exec(l);return h?h[0]:u},o.default(i).argParser(s)}else o.default(s);return this.addOption(o)}option(e,n,r,s){return this._optionEx({},e,n,r,s)}requiredOption(e,n,r,s){return this._optionEx({mandatory:!0},e,n,r,s)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,n){return this.setOptionValueWithSource(e,n,void 0)}setOptionValueWithSource(e,n,r){return this._storeOptionsAsProperties?this[e]=n:this._optionValues[e]=n,this._optionValueSources[e]=r,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let n;return this._getCommandAndAncestors().forEach(r=>{r.getOptionValueSource(e)!==void 0&&(n=r.getOptionValueSource(e))}),n}_prepareUserArgs(e,n){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},e===void 0&&n.from===void 0){J.versions?.electron&&(n.from="electron");let s=J.execArgv??[];(s.includes("-e")||s.includes("--eval")||s.includes("-p")||s.includes("--print"))&&(n.from="eval")}e===void 0&&(e=J.argv),this.rawArgs=e.slice();let r;switch(n.from){case void 0:case"node":this._scriptPath=e[1],r=e.slice(2);break;case"electron":J.defaultApp?(this._scriptPath=e[1],r=e.slice(2)):r=e.slice(1);break;case"user":r=e.slice(0);break;case"eval":r=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(e,n){let r=this._prepareUserArgs(e,n);return this._parseCommand([],r),this}async parseAsync(e,n){let r=this._prepareUserArgs(e,n);return await this._parseCommand([],r),this}_executeSubCommand(e,n){n=n.slice();let r=!1,s=[".js",".ts",".tsx",".mjs",".cjs"];function i(h,c){let d=Et.resolve(h,c);if(Va.existsSync(d))return d;if(s.includes(Et.extname(c)))return;let p=s.find(f=>Va.existsSync(`${d}${f}`));if(p)return`${d}${p}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let h;try{h=Va.realpathSync(this._scriptPath)}catch{h=this._scriptPath}a=Et.resolve(Et.dirname(h),a)}if(a){let h=i(a,o);if(!h&&!e._executableFile&&this._scriptPath){let c=Et.basename(this._scriptPath,Et.extname(this._scriptPath));c!==this._name&&(h=i(a,`${c}-${e._name}`))}o=h||o}r=s.includes(Et.extname(o));let l;J.platform!=="win32"?r?(n.unshift(o),n=rh(J.execArgv).concat(n),l=ja.spawn(J.argv[0],n,{stdio:"inherit"})):l=ja.spawn(o,n,{stdio:"inherit"}):(n.unshift(o),n=rh(J.execArgv).concat(n),l=ja.spawn(J.execPath,n,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(c=>{J.on(c,()=>{l.killed===!1&&l.exitCode===null&&l.kill(c)})});let u=this._exitCallback;l.on("close",h=>{h=h??1,u?u(new Fa(h,"commander.executeSubCommandAsync","(close)")):J.exit(h)}),l.on("error",h=>{if(h.code==="ENOENT"){let c=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",d=`'${o}' does not exist
|
|
16
16
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
17
17
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
18
|
-
- ${
|
|
18
|
+
- ${c}`;throw new Error(d)}else if(h.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)J.exit(1);else{let c=new Fa(1,"commander.executeSubCommandAsync","(error)");c.nestedError=h,u(c)}}),this.runningCommand=l}_dispatchSubcommand(e,n,r){let s=this._findCommand(e);s||this.help({error:!0});let i;return i=this._chainOrCallSubCommandHook(i,s,"preSubcommand"),i=this._chainOrCall(i,()=>{if(s._executableHandler)this._executeSubCommand(s,n.concat(r));else return s._parseCommand(n,r)}),i}_dispatchHelpCommand(e){e||this.help();let n=this._findCommand(e);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,n)=>{e.required&&this.args[n]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(r,s,i)=>{let o=s;if(s!==null&&r.parseArg){let a=`error: command-argument value '${s}' is invalid for argument '${r.name()}'.`;o=this._callParseArg(r,s,i,a)}return o};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((r,s)=>{let i=r.defaultValue;r.variadic?s<this.args.length?(i=this.args.slice(s),r.parseArg&&(i=i.reduce((o,a)=>e(r,a,o),r.defaultValue))):i===void 0&&(i=[]):s<this.args.length&&(i=this.args[s],r.parseArg&&(i=e(r,i,r.defaultValue))),n[s]=i}),this.processedArgs=n}_chainOrCall(e,n){return e&&e.then&&typeof e.then=="function"?e.then(()=>n()):n()}_chainOrCallHooks(e,n){let r=e,s=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[n]!==void 0).forEach(i=>{i._lifeCycleHooks[n].forEach(o=>{s.push({hookedCommand:i,callback:o})})}),n==="postAction"&&s.reverse(),s.forEach(i=>{r=this._chainOrCall(r,()=>i.callback(i.hookedCommand,this))}),r}_chainOrCallSubCommandHook(e,n,r){let s=e;return this._lifeCycleHooks[r]!==void 0&&this._lifeCycleHooks[r].forEach(i=>{s=this._chainOrCall(s,()=>i(this,n))}),s}_parseCommand(e,n){let r=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(r.operands),n=r.unknown,this.args=e.concat(n),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),n);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,e,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){s(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(i,e,n)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(i))s(),this._processArguments(),this.parent.emit(i,e,n);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,n);this.listenerCount("command:*")?this.emit("command:*",e,n):this.commands.length?this.unknownCommand():(s(),this._processArguments())}else this.commands.length?(s(),this.help({error:!0})):(s(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(n=>n._name===e||n._aliases.includes(e))}_findOption(e){return this.options.find(n=>n.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(n=>{n.mandatory&&e.getOptionValue(n.attributeName())===void 0&&e.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(r=>{let s=r.attributeName();return this.getOptionValue(s)===void 0?!1:this.getOptionValueSource(s)!=="default"});e.filter(r=>r.conflictsWith.length>0).forEach(r=>{let s=e.find(i=>r.conflictsWith.includes(i.attributeName()));s&&this._conflictingOption(r,s)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let n=[],r=[],s=n,i=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;i.length;){let l=i.shift();if(l==="--"){s===r&&s.push(l),s.push(...i);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let u=this._findOption(l);if(u){if(u.required){let h=i.shift();h===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,h)}else if(u.optional){let h=null;i.length>0&&!o(i[0])&&(h=i.shift()),this.emit(`option:${u.name()}`,h)}else this.emit(`option:${u.name()}`);a=u.variadic?u:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let u=this._findOption(`-${l[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,l.slice(2)):(this.emit(`option:${u.name()}`),i.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let u=l.indexOf("="),h=this._findOption(l.slice(0,u));if(h&&(h.required||h.optional)){this.emit(`option:${h.name()}`,l.slice(u+1));continue}}if(o(l)&&(s=r),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&r.length===0){if(this._findCommand(l)){n.push(l),i.length>0&&r.push(...i);break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){n.push(l),i.length>0&&n.push(...i);break}else if(this._defaultCommandName){r.push(l),i.length>0&&r.push(...i);break}}if(this._passThroughOptions){s.push(l),i.length>0&&s.push(...i);break}s.push(l)}return{operands:n,unknown:r}}opts(){if(this._storeOptionsAsProperties){let e={},n=this.options.length;for(let r=0;r<n;r++){let s=this.options[r].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,n)=>Object.assign(e,n.opts()),{})}error(e,n){this._outputConfiguration.outputError(`${e}
|
|
19
19
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
20
20
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
21
|
-
`),this.outputHelp({error:!0}));let n
|
|
22
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,
|
|
23
|
-
Expecting one of '${
|
|
24
|
-
`)}),this}_outputHelpIfRequested(e){let
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){
|
|
21
|
+
`),this.outputHelp({error:!0}));let r=n||{},s=r.exitCode||1,i=r.code||"commander.error";this._exit(s,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in J.env){let n=e.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,J.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new HC(this.options),n=r=>this.getOptionValue(r)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter(r=>r.implied!==void 0&&n(r.attributeName())&&e.valueFromOption(this.getOptionValue(r.attributeName()),r)).forEach(r=>{Object.keys(r.implied).filter(s=>!n(s)).forEach(s=>{this.setOptionValueWithSource(s,r.implied[s],"implied")})})}missingArgument(e){let n=`error: missing required argument '${e}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(e){let n=`error: option '${e.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let n=`error: required option '${e.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,n){let r=o=>{let a=o.attributeName(),l=this.getOptionValue(a),u=this.options.find(c=>c.negate&&a===c.attributeName()),h=this.options.find(c=>!c.negate&&a===c.attributeName());return u&&(u.presetArg===void 0&&l===!1||u.presetArg!==void 0&&l===u.presetArg)?u:h||o},s=o=>{let a=r(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},i=`error: ${s(e)} cannot be used with ${s(n)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let n="";if(e.startsWith("--")&&this._showSuggestionAfterError){let s=[],i=this;do{let o=i.createHelp().visibleOptions(i).filter(a=>a.long).map(a=>a.long);s=s.concat(o),i=i.parent}while(i&&!i._enablePositionalOptions);n=nh(e,s)}let r=`error: unknown option '${e}'${n}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,r=n===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${r} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],n="";if(this._showSuggestionAfterError){let s=[];this.createHelp().visibleCommands(this).forEach(i=>{s.push(i.name()),i.alias()&&s.push(i.alias())}),n=nh(e,s)}let r=`error: unknown command '${e}'${n}`;this.error(r,{code:"commander.unknownCommand"})}version(e,n,r){if(e===void 0)return this._version;this._version=e,n=n||"-V, --version",r=r||"output the version number";let s=this.createOption(n,r);return this._versionOptionName=s.attributeName(),this._registerOption(s),this.on("option:"+s.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
22
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,n){return e===void 0&&n===void 0?this._description:(this._description=e,n&&(this._argsDescription=n),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),e===n._name)throw new Error("Command alias can't be the same as its name");let r=this.parent?._findCommand(e);if(r){let s=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${s}'`)}return n._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(n=>this.alias(n)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(r=>LC(r));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Et.basename(e,Et.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let n=this.createHelp();return n.helpWidth===void 0&&(n.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),n.formatHelp(this,n)}_getHelpContext(e){e=e||{};let n={error:!!e.error},r;return n.error?r=s=>this._outputConfiguration.writeErr(s):r=s=>this._outputConfiguration.writeOut(s),n.write=e.write||r,n.command=this,n}outputHelp(e){let n;typeof e=="function"&&(n=e,e=void 0);let r=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(i=>i.emit("beforeAllHelp",r)),this.emit("beforeHelp",r);let s=this.helpInformation(r);if(n&&(s=n(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(s),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",r),this._getCommandAndAncestors().forEach(i=>i.emit("afterAllHelp",r))}helpOption(e,n){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",n=n??"display help for command",this._helpOption=this.createOption(e,n),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let n=J.exitCode||0;n===0&&e&&typeof e!="function"&&e.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(e,n){let r=["beforeAll","before","after","afterAll"];if(!r.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
23
|
+
Expecting one of '${r.join("', '")}'`);let s=`${e}Help`;return this.on(s,i=>{let o;typeof n=="function"?o=n({error:i.error,command:i.command}):o=n,o&&i.write(`${o}
|
|
24
|
+
`)}),this}_outputHelpIfRequested(e){let n=this._getHelpOption();n&&e.find(s=>n.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function rh(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let n,r="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?n=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=i[1],/^\d+$/.test(i[3])?s=i[3]:r=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=i[1],r=i[3],s=i[4]),n&&s!=="0"?`${n}=${r}:${parseInt(s)+1}`:e})}sh.Command=La});var ch=b(Ge=>{"use strict";var{Argument:oh}=Xs(),{Command:qa}=ih(),{CommanderError:GC,InvalidArgumentError:ah}=Tr(),{Help:UC}=Da(),{Option:lh}=Ma();Ge.program=new qa;Ge.createCommand=t=>new qa(t);Ge.createOption=(t,e)=>new lh(t,e);Ge.createArgument=(t,e)=>new oh(t,e);Ge.Command=qa;Ge.Option=lh;Ge.Argument=oh;Ge.Help=UC;Ge.CommanderError=GC;Ge.InvalidArgumentError=ah;Ge.InvalidOptionArgumentError=ah});var B=b((hN,ph)=>{"use strict";var{FORCE_COLOR:WC,NODE_DISABLE_COLORS:BC,TERM:KC}=process.env,V={enabled:!BC&&KC!=="dumb"&&WC!=="0",reset:q(0,0),bold:q(1,22),dim:q(2,22),italic:q(3,23),underline:q(4,24),inverse:q(7,27),hidden:q(8,28),strikethrough:q(9,29),black:q(30,39),red:q(31,39),green:q(32,39),yellow:q(33,39),blue:q(34,39),magenta:q(35,39),cyan:q(36,39),white:q(37,39),gray:q(90,39),grey:q(90,39),bgBlack:q(40,49),bgRed:q(41,49),bgGreen:q(42,49),bgYellow:q(43,49),bgBlue:q(44,49),bgMagenta:q(45,49),bgCyan:q(46,49),bgWhite:q(47,49)};function hh(t,e){let n=0,r,s="",i="";for(;n<t.length;n++)r=t[n],s+=r.open,i+=r.close,e.includes(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return s+e+i}function zC(t,e){let n={has:t,keys:e};return n.reset=V.reset.bind(n),n.bold=V.bold.bind(n),n.dim=V.dim.bind(n),n.italic=V.italic.bind(n),n.underline=V.underline.bind(n),n.inverse=V.inverse.bind(n),n.hidden=V.hidden.bind(n),n.strikethrough=V.strikethrough.bind(n),n.black=V.black.bind(n),n.red=V.red.bind(n),n.green=V.green.bind(n),n.yellow=V.yellow.bind(n),n.blue=V.blue.bind(n),n.magenta=V.magenta.bind(n),n.cyan=V.cyan.bind(n),n.white=V.white.bind(n),n.gray=V.gray.bind(n),n.grey=V.grey.bind(n),n.bgBlack=V.bgBlack.bind(n),n.bgRed=V.bgRed.bind(n),n.bgGreen=V.bgGreen.bind(n),n.bgYellow=V.bgYellow.bind(n),n.bgBlue=V.bgBlue.bind(n),n.bgMagenta=V.bgMagenta.bind(n),n.bgCyan=V.bgCyan.bind(n),n.bgWhite=V.bgWhite.bind(n),n}function q(t,e){let n={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(r){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(n)),r===void 0?this:V.enabled?hh(this.keys,r+""):r+""):r===void 0?zC([t],[n]):V.enabled?hh([n],r+""):r+""}}ph.exports=V});var mh=b((pN,fh)=>{"use strict";fh.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Zs=b((fN,gh)=>{"use strict";gh.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(e,"g");return typeof t=="string"?t.replace(n,""):t}});var z=b((mN,vh)=>{"use strict";var Ha="\x1B",K=`${Ha}[`,YC="\x07",Ga={to(t,e){return e?`${K}${e+1};${t+1}H`:`${K}${t+1}G`},move(t,e){let n="";return t<0?n+=`${K}${-t}D`:t>0&&(n+=`${K}${t}C`),e<0?n+=`${K}${-e}A`:e>0&&(n+=`${K}${e}B`),n},up:(t=1)=>`${K}${t}A`,down:(t=1)=>`${K}${t}B`,forward:(t=1)=>`${K}${t}C`,backward:(t=1)=>`${K}${t}D`,nextLine:(t=1)=>`${K}E`.repeat(t),prevLine:(t=1)=>`${K}F`.repeat(t),left:`${K}G`,hide:`${K}?25l`,show:`${K}?25h`,save:`${Ha}7`,restore:`${Ha}8`},JC={up:(t=1)=>`${K}S`.repeat(t),down:(t=1)=>`${K}T`.repeat(t)},XC={screen:`${K}2J`,up:(t=1)=>`${K}1J`.repeat(t),down:(t=1)=>`${K}J`.repeat(t),line:`${K}2K`,lineEnd:`${K}K`,lineStart:`${K}1K`,lines(t){let e="";for(let n=0;n<t;n++)e+=this.line+(n<t-1?Ga.up():"");return t&&(e+=Ga.left),e}};vh.exports={cursor:Ga,scroll:JC,erase:XC,beep:YC}});var Ch=b((gN,wh)=>{"use strict";function ZC(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=QC(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,s=function(){};return{s,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function QC(t,e){if(t){if(typeof t=="string")return _h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _h(t,e)}}function _h(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var eE=Zs(),yh=z(),bh=yh.erase,tE=yh.cursor,nE=t=>[...eE(t)].length;wh.exports=function(t,e){if(!e)return bh.line+tE.to(0);let n=0,r=t.split(/\r?\n/);var s=ZC(r),i;try{for(s.s();!(i=s.n()).done;){let o=i.value;n+=1+Math.floor(Math.max(nE(o)-1,0)/e)}}catch(o){s.e(o)}finally{s.f()}return bh.lines(n)}});var Ua=b((vN,Eh)=>{"use strict";var Nr={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},rE={arrowUp:Nr.arrowUp,arrowDown:Nr.arrowDown,arrowLeft:Nr.arrowLeft,arrowRight:Nr.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},sE=process.platform==="win32"?rE:Nr;Eh.exports=sE});var xh=b((_N,Sh)=>{"use strict";var qn=B(),yn=Ua(),Wa=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),iE=t=>Wa[t]||Wa.default,kr=Object.freeze({aborted:qn.red(yn.cross),done:qn.green(yn.tick),exited:qn.yellow(yn.cross),default:qn.cyan("?")}),oE=(t,e,n)=>e?kr.aborted:n?kr.exited:t?kr.done:kr.default,aE=t=>qn.gray(t?yn.ellipsis:yn.pointerSmall),lE=(t,e)=>qn.gray(t?e?yn.pointerSmall:"+":yn.line);Sh.exports={styles:Wa,render:iE,symbols:kr,symbol:oE,delimiter:aE,item:lE}});var Ah=b((bN,Oh)=>{"use strict";var cE=Zs();Oh.exports=function(t,e){let n=String(cE(t)||"").split(/\r?\n/);return e?n.map(r=>Math.ceil(r.length/e)).reduce((r,s)=>r+s):n.length}});var Nh=b((yN,Th)=>{"use strict";Th.exports=(t,e={})=>{let n=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",r=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((i,o)=>(o.length+n.length>=r||i[i.length-1].length+o.length+1<r?i[i.length-1]+=` ${o}`:i.push(`${n}${o}`),i),[n]).join(`
|
|
26
26
|
`)).join(`
|
|
27
|
-
`)}});var
|
|
28
|
-
`),this.close()}validate(){var e=this;return
|
|
29
|
-
`),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,
|
|
30
|
-
`).reduce((e,r
|
|
31
|
-
${
|
|
27
|
+
`)}});var Rh=b((wN,kh)=>{"use strict";kh.exports=(t,e,n)=>{n=n||e;let r=Math.min(e-n,t-Math.floor(n/2));r<0&&(r=0);let s=Math.min(r+n,e);return{startIndex:r,endIndex:s}}});var Je=b((CN,Dh)=>{"use strict";Dh.exports={action:mh(),clear:Ch(),style:xh(),strip:Zs(),figures:Ua(),lines:Ah(),wrap:Nh(),entriesToDisplay:Rh()}});var St=b((EN,Ph)=>{"use strict";var $h=require("readline"),uE=Je(),dE=uE.action,hE=require("events"),Ih=z(),pE=Ih.beep,fE=Ih.cursor,mE=B(),Ba=class extends hE{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let n=$h.createInterface({input:this.in,escapeCodeTimeout:50});$h.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(i,o)=>{let a=dE(o,r);a===!1?this._&&this._(i,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(fE.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(pE)}render(){this.onRender(mE),this.firstRender&&(this.firstRender=!1)}};Ph.exports=Ba});var Lh=b((SN,Fh)=>{"use strict";function Mh(t,e,n,r,s,i,o){try{var a=t[i](o),l=a.value}catch(u){n(u);return}a.done?e(l):Promise.resolve(l).then(r,s)}function jh(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function o(l){Mh(i,r,s,o,a,"next",l)}function a(l){Mh(i,r,s,o,a,"throw",l)}o(void 0)})}}var Qs=B(),gE=St(),Vh=z(),vE=Vh.erase,Rr=Vh.cursor,ei=Je(),Ka=ei.style,za=ei.clear,_E=ei.lines,bE=ei.figures,Ya=class extends gE{constructor(e={}){super(e),this.transform=Ka.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=za("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Qs.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
28
|
+
`),this.close()}validate(){var e=this;return jh(function*(){let n=yield e.validator(e.value);typeof n=="string"&&(e.errorMsg=n,n=!1),e.error=!n})()}submit(){var e=this;return jh(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
|
|
29
|
+
`),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,n){let r=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${r}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),n=this.value.slice(this.cursor);this.value=`${e}${n}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor+1);this.value=`${e}${n}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Rr.down(_E(this.outputError,this.out.columns)-1)+za(this.outputError,this.out.columns)),this.out.write(za(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Ka.symbol(this.done,this.aborted),Qs.bold(this.msg),Ka.delimiter(this.done),this.red?Qs.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
30
|
+
`).reduce((e,n,r)=>e+`
|
|
31
|
+
${r?" ":bE.pointerSmall} ${Qs.red().italic(n)}`,"")),this.out.write(vE.line+Rr.to(0)+this.outputText+Rr.save+this.outputError+Rr.restore+Rr.move(this.cursorOffset,0)))}};Fh.exports=Ya});var Uh=b((xN,Gh)=>{"use strict";var xt=B(),yE=St(),Dr=Je(),qh=Dr.style,Hh=Dr.clear,ti=Dr.figures,wE=Dr.wrap,CE=Dr.entriesToDisplay,EE=z(),SE=EE.cursor,Ja=class extends yE{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((n,r)=>(typeof n=="string"&&(n={title:n,value:r}),{title:n&&(n.title||n.value||n),value:n&&(n.value===void 0?r:n.value),description:n&&n.description,selected:n&&n.selected,disabled:n&&n.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Hh("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
32
32
|
`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
33
|
-
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,
|
|
34
|
-
`;for(let s=
|
|
35
|
-
`+
|
|
36
|
-
`}}this.out.write(this.outputText)}};
|
|
33
|
+
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,n){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(SE.hide):this.out.write(Hh(this.outputText,this.out.columns)),super.render();let e=CE(this.cursor,this.choices.length,this.optionsPerPage),n=e.startIndex,r=e.endIndex;if(this.outputText=[qh.symbol(this.done,this.aborted),xt.bold(this.msg),qh.delimiter(!1),this.done?this.selection.title:this.selection.disabled?xt.yellow(this.warn):xt.gray(this.hint)].join(" "),!this.done){this.outputText+=`
|
|
34
|
+
`;for(let s=n;s<r;s++){let i,o,a="",l=this.choices[s];s===n&&n>0?o=ti.arrowUp:s===r-1&&r<this.choices.length?o=ti.arrowDown:o=" ",l.disabled?(i=this.cursor===s?xt.gray().underline(l.title):xt.strikethrough().gray(l.title),o=(this.cursor===s?xt.bold().gray(ti.pointer)+" ":" ")+o):(i=this.cursor===s?xt.cyan().underline(l.title):l.title,o=(this.cursor===s?xt.cyan(ti.pointer)+" ":" ")+o,l.description&&this.cursor===s&&(a=` - ${l.description}`,(o.length+i.length+a.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(a=`
|
|
35
|
+
`+wE(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${i}${xt.gray(a)}
|
|
36
|
+
`}}this.out.write(this.outputText)}};Gh.exports=Ja});var Jh=b((ON,Yh)=>{"use strict";var ni=B(),xE=St(),Kh=Je(),Wh=Kh.style,OE=Kh.clear,zh=z(),Bh=zh.cursor,AE=zh.erase,Xa=class extends xE{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
37
37
|
`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
38
|
-
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,
|
|
39
|
-
`),this.close()}validate(){var e=this;return
|
|
40
|
-
`),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(
|
|
41
|
-
`).reduce((e,r
|
|
42
|
-
${
|
|
43
|
-
`),this.close()}validate(){var e=this;return
|
|
44
|
-
`),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,
|
|
45
|
-
`).reduce((e,r
|
|
46
|
-
${
|
|
47
|
-
`),this.close()}submit(){let e=this.value.filter(
|
|
48
|
-
`),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(
|
|
38
|
+
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,n){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Bh.hide):this.out.write(OE(this.outputText,this.out.columns)),super.render(),this.outputText=[Wh.symbol(this.done,this.aborted),ni.bold(this.msg),Wh.delimiter(this.done),this.value?this.inactive:ni.cyan().underline(this.inactive),ni.gray("/"),this.value?ni.cyan().underline(this.active):this.active].join(" "),this.out.write(AE.line+Bh.to(0)+this.outputText))}};Yh.exports=Xa});var ot=b((AN,Xh)=>{"use strict";var Za=class t{constructor({token:e,date:n,parts:r,locales:s}){this.token=e,this.date=n||new Date,this.parts=r||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((n,r)=>r>e&&n instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),n=e.indexOf(this);return e.find((r,s)=>s>n&&r instanceof t)}toString(){return String(this.date)}};Xh.exports=Za});var Qh=b((TN,Zh)=>{"use strict";var TE=ot(),Qa=class extends TE{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Zh.exports=Qa});var tp=b((NN,ep)=>{"use strict";var NE=ot(),kE=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),el=class extends NE{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),n=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+kE(e):this.token==="d"?n+1:this.token==="ddd"?this.locales.weekdaysShort[n]:this.token==="dddd"?this.locales.weekdays[n]:e}};ep.exports=el});var rp=b((kN,np)=>{"use strict";var RE=ot(),tl=class extends RE{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};np.exports=tl});var ip=b((RN,sp)=>{"use strict";var DE=ot(),nl=class extends DE{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};sp.exports=nl});var ap=b((DN,op)=>{"use strict";var $E=ot(),rl=class extends $E{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};op.exports=rl});var cp=b(($N,lp)=>{"use strict";var IE=ot(),sl=class extends IE{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),n=this.token.length;return n===2?String(e+1).padStart(2,"0"):n===3?this.locales.monthsShort[e]:n===4?this.locales.months[e]:String(e+1)}};lp.exports=sl});var dp=b((IN,up)=>{"use strict";var PE=ot(),il=class extends PE{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};up.exports=il});var pp=b((PN,hp)=>{"use strict";var ME=ot(),ol=class extends ME{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};hp.exports=ol});var mp=b((MN,fp)=>{"use strict";fp.exports={DatePart:ot(),Meridiem:Qh(),Day:tp(),Hours:rp(),Milliseconds:ip(),Minutes:ap(),Month:cp(),Seconds:dp(),Year:pp()}});var xp=b((jN,Sp)=>{"use strict";function gp(t,e,n,r,s,i,o){try{var a=t[i](o),l=a.value}catch(u){n(u);return}a.done?e(l):Promise.resolve(l).then(r,s)}function vp(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function o(l){gp(i,r,s,o,a,"next",l)}function a(l){gp(i,r,s,o,a,"throw",l)}o(void 0)})}}var al=B(),jE=St(),cl=Je(),_p=cl.style,bp=cl.clear,VE=cl.figures,Ep=z(),FE=Ep.erase,yp=Ep.cursor,Ot=mp(),wp=Ot.DatePart,LE=Ot.Meridiem,qE=Ot.Day,HE=Ot.Hours,GE=Ot.Milliseconds,UE=Ot.Minutes,WE=Ot.Month,BE=Ot.Seconds,KE=Ot.Year,zE=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,Cp={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new qE(t),3:t=>new WE(t),4:t=>new KE(t),5:t=>new LE(t),6:t=>new HE(t),7:t=>new UE(t),8:t=>new BE(t),9:t=>new GE(t)},YE={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},ll=class extends jE{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(YE,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=bp("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let n;for(this.parts=[];n=zE.exec(e);){let s=n.shift(),i=n.findIndex(o=>o!=null);this.parts.push(i in Cp?Cp[i]({token:n[i]||s,date:this.date,parts:this.parts,locales:this.locales}):n[i]||s)}let r=this.parts.reduce((s,i)=>(typeof i=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=i:s.push(i),s),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof wp)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
39
|
+
`),this.close()}validate(){var e=this;return vp(function*(){let n=yield e.validator(e.value);typeof n=="string"&&(e.errorMsg=n,n=!1),e.error=!n})()}submit(){var e=this;return vp(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
|
|
40
|
+
`),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(n=>n instanceof wp)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(yp.hide):this.out.write(bp(this.outputText,this.out.columns)),super.render(),this.outputText=[_p.symbol(this.done,this.aborted),al.bold(this.msg),_p.delimiter(!1),this.parts.reduce((e,n,r)=>e.concat(r===this.cursor&&!this.done?al.cyan().underline(n.toString()):n),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
|
|
41
|
+
`).reduce((e,n,r)=>e+`
|
|
42
|
+
${r?" ":VE.pointerSmall} ${al.red().italic(n)}`,"")),this.out.write(FE.line+yp.to(0)+this.outputText))}};Sp.exports=ll});var Dp=b((VN,Rp)=>{"use strict";function Op(t,e,n,r,s,i,o){try{var a=t[i](o),l=a.value}catch(u){n(u);return}a.done?e(l):Promise.resolve(l).then(r,s)}function Ap(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function o(l){Op(i,r,s,o,a,"next",l)}function a(l){Op(i,r,s,o,a,"throw",l)}o(void 0)})}}var ri=B(),JE=St(),kp=z(),si=kp.cursor,XE=kp.erase,ii=Je(),ul=ii.style,ZE=ii.figures,Tp=ii.clear,QE=ii.lines,eS=/[0-9]/,dl=t=>t!==void 0,Np=(t,e)=>{let n=Math.pow(10,e);return Math.round(t*n)/n},hl=class extends JE{constructor(e={}){super(e),this.transform=ul.render(e.style),this.msg=e.message,this.initial=dl(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=dl(e.min)?e.min:-1/0,this.max=dl(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=ri.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Np(e,this.round)}`),this._value=Np(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||eS.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
43
|
+
`),this.close()}validate(){var e=this;return Ap(function*(){let n=yield e.validator(e.value);typeof n=="string"&&(e.errorMsg=n,n=!1),e.error=!n})()}submit(){var e=this;return Ap(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let n=e.value;e.value=n!==""?n:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(`
|
|
44
|
+
`),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,n){if(!this.valid(e))return this.bell();let r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(si.down(QE(this.outputError,this.out.columns)-1)+Tp(this.outputError,this.out.columns)),this.out.write(Tp(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ul.symbol(this.done,this.aborted),ri.bold(this.msg),ul.delimiter(this.done),!this.done||!this.done&&!this.placeholder?ri[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
45
|
+
`).reduce((e,n,r)=>e+`
|
|
46
|
+
${r?" ":ZE.pointerSmall} ${ri.red().italic(n)}`,"")),this.out.write(XE.line+si.to(0)+this.outputText+si.save+this.outputError+si.restore))}};Rp.exports=hl});var fl=b((FN,Pp)=>{"use strict";var at=B(),tS=z(),nS=tS.cursor,rS=St(),$r=Je(),$p=$r.clear,Bt=$r.figures,Ip=$r.style,sS=$r.wrap,iS=$r.entriesToDisplay,pl=class extends rS{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((n,r)=>(typeof n=="string"&&(n={title:n,value:r}),{title:n&&(n.title||n.value||n),description:n&&n.description,value:n&&(n.value===void 0?r:n.value),selected:n&&n.selected,disabled:n&&n.disabled})),this.clear=$p("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
47
|
+
`),this.close()}submit(){let e=this.value.filter(n=>n.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
48
|
+
`),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(n=>!n.disabled).forEach(n=>n.selected=e),this.render()}_(e,n){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
49
49
|
Instructions:
|
|
50
50
|
${Bt.arrowUp}/${Bt.arrowDown}: Highlight option
|
|
51
51
|
${Bt.arrowLeft}/${Bt.arrowRight}/[space]: Toggle selection
|
|
52
52
|
`+(this.maxChoices===void 0?` a: Toggle all
|
|
53
|
-
`:"")+" enter/return: Complete answer":""}renderOption(e,r,
|
|
54
|
-
`+
|
|
53
|
+
`:"")+" enter/return: Complete answer":""}renderOption(e,n,r,s){let i=(n.selected?at.green(Bt.radioOn):Bt.radioOff)+" "+s+" ",o,a;return n.disabled?o=e===r?at.gray().underline(n.title):at.strikethrough().gray(n.title):(o=e===r?at.cyan().underline(n.title):n.title,e===r&&n.description&&(a=` - ${n.description}`,(i.length+o.length+a.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(a=`
|
|
54
|
+
`+sS(n.description,{margin:i.length,width:this.out.columns})))),i+o+at.gray(a||"")}paginateOptions(e){if(e.length===0)return at.red("No matches for this query.");let n=iS(this.cursor,e.length,this.optionsPerPage),r=n.startIndex,s=n.endIndex,i,o=[];for(let a=r;a<s;a++)a===r&&r>0?i=Bt.arrowUp:a===s-1&&s<e.length?i=Bt.arrowDown:i=" ",o.push(this.renderOption(this.cursor,e[a],a,i));return`
|
|
55
55
|
`+o.join(`
|
|
56
|
-
`)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(
|
|
56
|
+
`)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let e=[at.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(at.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(nS.hide),super.render();let e=[Ip.symbol(this.done,this.aborted),at.bold(this.msg),Ip.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=at.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=$p(e,this.out.columns)}};Pp.exports=pl});var Hp=b((LN,qp)=>{"use strict";function Mp(t,e,n,r,s,i,o){try{var a=t[i](o),l=a.value}catch(u){n(u);return}a.done?e(l):Promise.resolve(l).then(r,s)}function oS(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function o(l){Mp(i,r,s,o,a,"next",l)}function a(l){Mp(i,r,s,o,a,"throw",l)}o(void 0)})}}var Ir=B(),aS=St(),Lp=z(),lS=Lp.erase,jp=Lp.cursor,Pr=Je(),ml=Pr.style,Vp=Pr.clear,gl=Pr.figures,cS=Pr.wrap,uS=Pr.entriesToDisplay,Fp=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),dS=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),hS=(t,e)=>{let n=t.findIndex(r=>r.value===e||r.title===e);return n>-1?n:void 0},vl=class extends aS{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:hS(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=ml.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Vp("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Fp(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var n=this;return oS(function*(){let r=n.completing=n.suggest(n.input,n.choices),s=yield r;if(n.completing!==r)return;n.suggestions=s.map((o,a,l)=>({title:dS(l,a),value:Fp(l,a),description:o.description})),n.completing=!1;let i=Math.max(s.length-1,0);n.moveSelect(Math.min(i,n.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
57
57
|
`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
|
|
58
58
|
`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
|
|
59
|
-
`),this.close()}_(e,
|
|
60
|
-
`+
|
|
59
|
+
`),this.close()}_(e,n){let r=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${r}${e}${s}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),n=this.input.slice(this.cursor);this.input=`${e}${n}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor+1);this.input=`${e}${n}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,n,r,s){let i,o=r?gl.arrowUp:s?gl.arrowDown:" ",a=n?Ir.cyan().underline(e.title):e.title;return o=(n?Ir.cyan(gl.pointer)+" ":" ")+o,e.description&&(i=` - ${e.description}`,(o.length+a.length+i.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(i=`
|
|
60
|
+
`+cS(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Ir.gray(i||"")}render(){if(this.closed)return;this.firstRender?this.out.write(jp.hide):this.out.write(Vp(this.outputText,this.out.columns)),super.render();let e=uS(this.select,this.choices.length,this.limit),n=e.startIndex,r=e.endIndex;if(this.outputText=[ml.symbol(this.done,this.aborted,this.exited),Ir.bold(this.msg),ml.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let s=this.suggestions.slice(n,r).map((i,o)=>this.renderOption(i,this.select===o+n,o===0&&n>0,o+n===r-1&&r<this.choices.length)).join(`
|
|
61
61
|
`);this.outputText+=`
|
|
62
|
-
`+(s||
|
|
62
|
+
`+(s||Ir.gray(this.fallback.title))}this.out.write(lS.line+jp.to(0)+this.outputText)}};qp.exports=vl});var Bp=b((qN,Wp)=>{"use strict";var At=B(),pS=z(),fS=pS.cursor,mS=fl(),bl=Je(),Gp=bl.clear,Up=bl.style,Hn=bl.figures,_l=class extends mS{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=Gp("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(r=>this.inputValue?!!(typeof r.title=="string"&&r.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof r.value=="string"&&r.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let n=this.filteredOptions.findIndex(r=>r===e);this.cursor=n<0?0:n,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,n){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
63
63
|
Instructions:
|
|
64
|
-
${
|
|
65
|
-
${
|
|
64
|
+
${Hn.arrowUp}/${Hn.arrowDown}: Highlight option
|
|
65
|
+
${Hn.arrowLeft}/${Hn.arrowRight}/[space]: Toggle selection
|
|
66
66
|
[a,b,c]/delete: Filter choices
|
|
67
67
|
enter/return: Complete answer
|
|
68
68
|
`:""}renderCurrentInput(){return`
|
|
69
|
-
Filtered results for: ${this.inputValue?this.inputValue:
|
|
70
|
-
`}renderOption(e,r
|
|
69
|
+
Filtered results for: ${this.inputValue?this.inputValue:At.gray("Enter something to filter")}
|
|
70
|
+
`}renderOption(e,n,r){let s;return n.disabled?s=e===r?At.gray().underline(n.title):At.strikethrough().gray(n.title):s=e===r?At.cyan().underline(n.title):n.title,(n.selected?At.green(Hn.radioOn):Hn.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let e=[At.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(At.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(fS.hide),super.render();let e=[Up.symbol(this.done,this.aborted),At.bold(this.msg),Up.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=At.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=Gp(e,this.out.columns)}};Wp.exports=_l});var Qp=b((HN,Zp)=>{"use strict";var Kp=B(),gS=St(),Jp=Je(),zp=Jp.style,vS=Jp.clear,Xp=z(),_S=Xp.erase,Yp=Xp.cursor,yl=class extends gS{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
71
71
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
72
|
-
`),this.close()}_(e,
|
|
73
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){
|
|
72
|
+
`),this.close()}_(e,n){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Yp.hide):this.out.write(vS(this.outputText,this.out.columns)),super.render(),this.outputText=[zp.symbol(this.done,this.aborted),Kp.bold(this.msg),zp.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Kp.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(_S.line+Yp.to(0)+this.outputText))}};Zp.exports=yl});var tf=b((GN,ef)=>{"use strict";ef.exports={TextPrompt:Lh(),SelectPrompt:Uh(),TogglePrompt:Jh(),DatePrompt:xp(),NumberPrompt:Dp(),MultiselectPrompt:fl(),AutocompletePrompt:Hp(),AutocompleteMultiselectPrompt:Bp(),ConfirmPrompt:Qp()}});var rf=b(nf=>{"use strict";var Oe=nf,bS=tf(),oi=t=>t;function lt(t,e,n={}){return new Promise((r,s)=>{let i=new bS[t](e),o=n.onAbort||oi,a=n.onSubmit||oi,l=n.onExit||oi;i.on("state",e.onState||oi),i.on("submit",u=>r(a(u))),i.on("exit",u=>r(l(u))),i.on("abort",u=>s(o(u)))})}Oe.text=t=>lt("TextPrompt",t);Oe.password=t=>(t.style="password",Oe.text(t));Oe.invisible=t=>(t.style="invisible",Oe.text(t));Oe.number=t=>lt("NumberPrompt",t);Oe.date=t=>lt("DatePrompt",t);Oe.confirm=t=>lt("ConfirmPrompt",t);Oe.list=t=>{let e=t.separator||",";return lt("TextPrompt",t,{onSubmit:n=>n.split(e).map(r=>r.trim())})};Oe.toggle=t=>lt("TogglePrompt",t);Oe.select=t=>lt("SelectPrompt",t);Oe.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=n=>n.filter(r=>r.selected).map(r=>r.value);return lt("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};Oe.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=n=>n.filter(r=>r.selected).map(r=>r.value);return lt("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var yS=(t,e)=>Promise.resolve(e.filter(n=>n.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));Oe.autocomplete=t=>(t.suggest=t.suggest||yS,t.choices=[].concat(t.choices||[]),lt("AutocompletePrompt",t))});var hf=b((WN,df)=>{"use strict";function sf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function of(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sf(Object(n),!0).forEach(function(r){wS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function CS(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ES(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,s=function(){};return{s,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
73
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function ES(t,e){if(t){if(typeof t=="string")return af(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return af(t,e)}}function af(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function lf(t,e,n,r,s,i,o){try{var a=t[i](o),l=a.value}catch(u){n(u);return}a.done?e(l):Promise.resolve(l).then(r,s)}function cf(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function o(l){lf(i,r,s,o,a,"next",l)}function a(l){lf(i,r,s,o,a,"throw",l)}o(void 0)})}}var wl=rf(),SS=["suggest","format","onState","validate","onRender","type"],uf=()=>{};function Kt(){return Cl.apply(this,arguments)}function Cl(){return Cl=cf(function*(t=[],{onSubmit:e=uf,onCancel:n=uf}={}){let r={},s=Kt._override||{};t=[].concat(t);let i,o,a,l,u,h,c=function(){var v=cf(function*(m,E,N=!1){if(!(!N&&m.validate&&m.validate(E)!==!0))return m.format?yield m.format(E,r):E});return function(E,N){return v.apply(this,arguments)}}();var d=CS(t),p;try{for(d.s();!(p=d.n()).done;){o=p.value;var f=o;if(l=f.name,u=f.type,typeof u=="function"&&(u=yield u(i,of({},r),o),o.type=u),!!u){for(let v in o){if(SS.includes(v))continue;let m=o[v];o[v]=typeof m=="function"?yield m(i,of({},r),h):m}if(h=o,typeof o.message!="string")throw new Error("prompt message is required");var g=o;if(l=g.name,u=g.type,wl[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(i=yield c(o,s[o.name]),i!==void 0)){r[l]=i;continue}try{i=Kt._injected?xS(Kt._injected,o.initial):yield wl[u](o),r[l]=i=yield c(o,i,!0),a=yield e(o,i,r)}catch{a=!(yield n(o,r))}if(a)return r}}}catch(v){d.e(v)}finally{d.f()}return r}),Cl.apply(this,arguments)}function xS(t,e){let n=t.shift();if(n instanceof Error)throw n;return n===void 0?e:n}function OS(t){Kt._injected=(Kt._injected||[]).concat(t)}function AS(t){Kt._override=Object.assign({},t)}df.exports=Object.assign(Kt,{prompt:Kt,prompts:wl,inject:OS,override:AS})});var ff=b((BN,pf)=>{"use strict";pf.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var ai=b((KN,mf)=>{"use strict";mf.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(e,"g");return typeof t=="string"?t.replace(n,""):t}});var _f=b((zN,vf)=>{"use strict";var TS=ai(),{erase:gf,cursor:NS}=z(),kS=t=>[...TS(t)].length;vf.exports=function(t,e){if(!e)return gf.line+NS.to(0);let n=0,r=t.split(/\r?\n/);for(let s of r)n+=1+Math.floor(Math.max(kS(s)-1,0)/e);return gf.lines(n)}});var El=b((YN,bf)=>{"use strict";var Mr={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},RS={arrowUp:Mr.arrowUp,arrowDown:Mr.arrowDown,arrowLeft:Mr.arrowLeft,arrowRight:Mr.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},DS=process.platform==="win32"?RS:Mr;bf.exports=DS});var wf=b((JN,yf)=>{"use strict";var Gn=B(),wn=El(),Sl=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),$S=t=>Sl[t]||Sl.default,jr=Object.freeze({aborted:Gn.red(wn.cross),done:Gn.green(wn.tick),exited:Gn.yellow(wn.cross),default:Gn.cyan("?")}),IS=(t,e,n)=>e?jr.aborted:n?jr.exited:t?jr.done:jr.default,PS=t=>Gn.gray(t?wn.ellipsis:wn.pointerSmall),MS=(t,e)=>Gn.gray(t?e?wn.pointerSmall:"+":wn.line);yf.exports={styles:Sl,render:$S,symbols:jr,symbol:IS,delimiter:PS,item:MS}});var Ef=b((XN,Cf)=>{"use strict";var jS=ai();Cf.exports=function(t,e){let n=String(jS(t)||"").split(/\r?\n/);return e?n.map(r=>Math.ceil(r.length/e)).reduce((r,s)=>r+s):n.length}});var xf=b((ZN,Sf)=>{"use strict";Sf.exports=(t,e={})=>{let n=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",r=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((i,o)=>(o.length+n.length>=r||i[i.length-1].length+o.length+1<r?i[i.length-1]+=` ${o}`:i.push(`${n}${o}`),i),[n]).join(`
|
|
74
74
|
`)).join(`
|
|
75
|
-
`)}});var
|
|
75
|
+
`)}});var Af=b((QN,Of)=>{"use strict";Of.exports=(t,e,n)=>{n=n||e;let r=Math.min(e-n,t-Math.floor(n/2));r<0&&(r=0);let s=Math.min(r+n,e);return{startIndex:r,endIndex:s}}});var Xe=b((ek,Tf)=>{"use strict";Tf.exports={action:ff(),clear:_f(),style:wf(),strip:ai(),figures:El(),lines:Ef(),wrap:xf(),entriesToDisplay:Af()}});var Tt=b((tk,kf)=>{"use strict";var Nf=require("readline"),{action:VS}=Xe(),FS=require("events"),{beep:LS,cursor:qS}=z(),HS=B(),xl=class extends FS{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let n=Nf.createInterface({input:this.in,escapeCodeTimeout:50});Nf.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(i,o)=>{let a=VS(o,r);a===!1?this._&&this._(i,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(qS.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(LS)}render(){this.onRender(HS),this.firstRender&&(this.firstRender=!1)}};kf.exports=xl});var Df=b((nk,Rf)=>{"use strict";var li=B(),GS=Tt(),{erase:US,cursor:Vr}=z(),{style:Ol,clear:Al,lines:WS,figures:BS}=Xe(),Tl=class extends GS{constructor(e={}){super(e),this.transform=Ol.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=Al("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=li.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
76
76
|
`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
77
|
-
`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,
|
|
78
|
-
`).reduce((e,r
|
|
79
|
-
${
|
|
77
|
+
`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,n){let r=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${r}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),n=this.value.slice(this.cursor);this.value=`${e}${n}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor+1);this.value=`${e}${n}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Vr.down(WS(this.outputError,this.out.columns)-1)+Al(this.outputError,this.out.columns)),this.out.write(Al(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Ol.symbol(this.done,this.aborted),li.bold(this.msg),Ol.delimiter(this.done),this.red?li.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
78
|
+
`).reduce((e,n,r)=>e+`
|
|
79
|
+
${r?" ":BS.pointerSmall} ${li.red().italic(n)}`,"")),this.out.write(US.line+Vr.to(0)+this.outputText+Vr.save+this.outputError+Vr.restore+Vr.move(this.cursorOffset,0)))}};Rf.exports=Tl});var Mf=b((rk,Pf)=>{"use strict";var Nt=B(),KS=Tt(),{style:$f,clear:If,figures:ci,wrap:zS,entriesToDisplay:YS}=Xe(),{cursor:JS}=z(),Nl=class extends KS{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((n,r)=>(typeof n=="string"&&(n={title:n,value:r}),{title:n&&(n.title||n.value||n),value:n&&(n.value===void 0?r:n.value),description:n&&n.description,selected:n&&n.selected,disabled:n&&n.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=If("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
80
80
|
`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
81
|
-
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,
|
|
82
|
-
`;for(let
|
|
83
|
-
`+
|
|
84
|
-
`}}this.out.write(this.outputText)}}
|
|
81
|
+
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,n){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(JS.hide):this.out.write(If(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:n}=YS(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[$f.symbol(this.done,this.aborted),Nt.bold(this.msg),$f.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Nt.yellow(this.warn):Nt.gray(this.hint)].join(" "),!this.done){this.outputText+=`
|
|
82
|
+
`;for(let r=e;r<n;r++){let s,i,o="",a=this.choices[r];r===e&&e>0?i=ci.arrowUp:r===n-1&&n<this.choices.length?i=ci.arrowDown:i=" ",a.disabled?(s=this.cursor===r?Nt.gray().underline(a.title):Nt.strikethrough().gray(a.title),i=(this.cursor===r?Nt.bold().gray(ci.pointer)+" ":" ")+i):(s=this.cursor===r?Nt.cyan().underline(a.title):a.title,i=(this.cursor===r?Nt.cyan(ci.pointer)+" ":" ")+i,a.description&&this.cursor===r&&(o=` - ${a.description}`,(i.length+s.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o=`
|
|
83
|
+
`+zS(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${i} ${s}${Nt.gray(o)}
|
|
84
|
+
`}}this.out.write(this.outputText)}};Pf.exports=Nl});var Lf=b((sk,Ff)=>{"use strict";var ui=B(),XS=Tt(),{style:jf,clear:ZS}=Xe(),{cursor:Vf,erase:QS}=z(),kl=class extends XS{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
85
85
|
`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
86
|
-
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,
|
|
86
|
+
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,n){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Vf.hide):this.out.write(ZS(this.outputText,this.out.columns)),super.render(),this.outputText=[jf.symbol(this.done,this.aborted),ui.bold(this.msg),jf.delimiter(this.done),this.value?this.inactive:ui.cyan().underline(this.inactive),ui.gray("/"),this.value?ui.cyan().underline(this.active):this.active].join(" "),this.out.write(QS.line+Vf.to(0)+this.outputText))}};Ff.exports=kl});var ct=b((ik,qf)=>{"use strict";var Rl=class t{constructor({token:e,date:n,parts:r,locales:s}){this.token=e,this.date=n||new Date,this.parts=r||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((n,r)=>r>e&&n instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),n=e.indexOf(this);return e.find((r,s)=>s>n&&r instanceof t)}toString(){return String(this.date)}};qf.exports=Rl});var Gf=b((ok,Hf)=>{"use strict";var ex=ct(),Dl=class extends ex{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Hf.exports=Dl});var Wf=b((ak,Uf)=>{"use strict";var tx=ct(),nx=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),$l=class extends tx{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),n=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+nx(e):this.token==="d"?n+1:this.token==="ddd"?this.locales.weekdaysShort[n]:this.token==="dddd"?this.locales.weekdays[n]:e}};Uf.exports=$l});var Kf=b((lk,Bf)=>{"use strict";var rx=ct(),Il=class extends rx{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Bf.exports=Il});var Yf=b((ck,zf)=>{"use strict";var sx=ct(),Pl=class extends sx{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};zf.exports=Pl});var Xf=b((uk,Jf)=>{"use strict";var ix=ct(),Ml=class extends ix{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Jf.exports=Ml});var Qf=b((dk,Zf)=>{"use strict";var ox=ct(),jl=class extends ox{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),n=this.token.length;return n===2?String(e+1).padStart(2,"0"):n===3?this.locales.monthsShort[e]:n===4?this.locales.months[e]:String(e+1)}};Zf.exports=jl});var tm=b((hk,em)=>{"use strict";var ax=ct(),Vl=class extends ax{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};em.exports=Vl});var rm=b((pk,nm)=>{"use strict";var lx=ct(),Fl=class extends lx{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};nm.exports=Fl});var im=b((fk,sm)=>{"use strict";sm.exports={DatePart:ct(),Meridiem:Gf(),Day:Wf(),Hours:Kf(),Milliseconds:Yf(),Minutes:Xf(),Month:Qf(),Seconds:tm(),Year:rm()}});var hm=b((mk,dm)=>{"use strict";var Ll=B(),cx=Tt(),{style:om,clear:am,figures:ux}=Xe(),{erase:dx,cursor:lm}=z(),{DatePart:cm,Meridiem:hx,Day:px,Hours:fx,Milliseconds:mx,Minutes:gx,Month:vx,Seconds:_x,Year:bx}=im(),yx=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,um={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new px(t),3:t=>new vx(t),4:t=>new bx(t),5:t=>new hx(t),6:t=>new fx(t),7:t=>new gx(t),8:t=>new _x(t),9:t=>new mx(t)},wx={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},ql=class extends cx{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(wx,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=am("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let n;for(this.parts=[];n=yx.exec(e);){let s=n.shift(),i=n.findIndex(o=>o!=null);this.parts.push(i in um?um[i]({token:n[i]||s,date:this.date,parts:this.parts,locales:this.locales}):n[i]||s)}let r=this.parts.reduce((s,i)=>(typeof i=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=i:s.push(i),s),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof cm)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
87
87
|
`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
88
|
-
`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(
|
|
89
|
-
`).reduce((e,r
|
|
90
|
-
${
|
|
88
|
+
`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(n=>n instanceof cm)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(lm.hide):this.out.write(am(this.outputText,this.out.columns)),super.render(),this.outputText=[om.symbol(this.done,this.aborted),Ll.bold(this.msg),om.delimiter(!1),this.parts.reduce((e,n,r)=>e.concat(r===this.cursor&&!this.done?Ll.cyan().underline(n.toString()):n),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
|
|
89
|
+
`).reduce((e,n,r)=>e+`
|
|
90
|
+
${r?" ":ux.pointerSmall} ${Ll.red().italic(n)}`,"")),this.out.write(dx.line+lm.to(0)+this.outputText))}};dm.exports=ql});var gm=b((gk,mm)=>{"use strict";var di=B(),Cx=Tt(),{cursor:hi,erase:Ex}=z(),{style:Hl,figures:Sx,clear:pm,lines:xx}=Xe(),Ox=/[0-9]/,Gl=t=>t!==void 0,fm=(t,e)=>{let n=Math.pow(10,e);return Math.round(t*n)/n},Ul=class extends Cx{constructor(e={}){super(e),this.transform=Hl.render(e.style),this.msg=e.message,this.initial=Gl(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Gl(e.min)?e.min:-1/0,this.max=Gl(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=di.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${fm(e,this.round)}`),this._value=fm(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||Ox.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
91
91
|
`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
92
|
-
`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,
|
|
93
|
-
`).reduce((e,r
|
|
94
|
-
${
|
|
95
|
-
`),this.close()}submit(){let e=this.value.filter(
|
|
96
|
-
`),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(
|
|
92
|
+
`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,n){if(!this.valid(e))return this.bell();let r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(hi.down(xx(this.outputError,this.out.columns)-1)+pm(this.outputError,this.out.columns)),this.out.write(pm(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Hl.symbol(this.done,this.aborted),di.bold(this.msg),Hl.delimiter(this.done),!this.done||!this.done&&!this.placeholder?di[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
93
|
+
`).reduce((e,n,r)=>e+`
|
|
94
|
+
${r?" ":Sx.pointerSmall} ${di.red().italic(n)}`,"")),this.out.write(Ex.line+hi.to(0)+this.outputText+hi.save+this.outputError+hi.restore))}};mm.exports=Ul});var Bl=b((vk,bm)=>{"use strict";var ut=B(),{cursor:Ax}=z(),Tx=Tt(),{clear:vm,figures:zt,style:_m,wrap:Nx,entriesToDisplay:kx}=Xe(),Wl=class extends Tx{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((n,r)=>(typeof n=="string"&&(n={title:n,value:r}),{title:n&&(n.title||n.value||n),description:n&&n.description,value:n&&(n.value===void 0?r:n.value),selected:n&&n.selected,disabled:n&&n.disabled})),this.clear=vm("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
95
|
+
`),this.close()}submit(){let e=this.value.filter(n=>n.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
96
|
+
`),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(n=>!n.disabled).forEach(n=>n.selected=e),this.render()}_(e,n){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
97
97
|
Instructions:
|
|
98
98
|
${zt.arrowUp}/${zt.arrowDown}: Highlight option
|
|
99
99
|
${zt.arrowLeft}/${zt.arrowRight}/[space]: Toggle selection
|
|
100
100
|
`+(this.maxChoices===void 0?` a: Toggle all
|
|
101
|
-
`:"")+" enter/return: Complete answer":""}renderOption(e,r,
|
|
102
|
-
`+
|
|
101
|
+
`:"")+" enter/return: Complete answer":""}renderOption(e,n,r,s){let i=(n.selected?ut.green(zt.radioOn):zt.radioOff)+" "+s+" ",o,a;return n.disabled?o=e===r?ut.gray().underline(n.title):ut.strikethrough().gray(n.title):(o=e===r?ut.cyan().underline(n.title):n.title,e===r&&n.description&&(a=` - ${n.description}`,(i.length+o.length+a.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(a=`
|
|
102
|
+
`+Nx(n.description,{margin:i.length,width:this.out.columns})))),i+o+ut.gray(a||"")}paginateOptions(e){if(e.length===0)return ut.red("No matches for this query.");let{startIndex:n,endIndex:r}=kx(this.cursor,e.length,this.optionsPerPage),s,i=[];for(let o=n;o<r;o++)o===n&&n>0?s=zt.arrowUp:o===r-1&&r<e.length?s=zt.arrowDown:s=" ",i.push(this.renderOption(this.cursor,e[o],o,s));return`
|
|
103
103
|
`+i.join(`
|
|
104
|
-
`)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(
|
|
104
|
+
`)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let e=[ut.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(ut.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Ax.hide),super.render();let e=[_m.symbol(this.done,this.aborted),ut.bold(this.msg),_m.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=ut.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=vm(e,this.out.columns)}};bm.exports=Wl});var Sm=b((_k,Em)=>{"use strict";var Fr=B(),Rx=Tt(),{erase:Dx,cursor:ym}=z(),{style:Kl,clear:wm,figures:zl,wrap:$x,entriesToDisplay:Ix}=Xe(),Cm=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),Px=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),Mx=(t,e)=>{let n=t.findIndex(r=>r.value===e||r.title===e);return n>-1?n:void 0},Yl=class extends Rx{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:Mx(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=Kl.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=wm("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Cm(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let n=this.completing=this.suggest(this.input,this.choices),r=await n;if(this.completing!==n)return;this.suggestions=r.map((i,o,a)=>({title:Px(a,o),value:Cm(a,o),description:i.description})),this.completing=!1;let s=Math.max(r.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
105
105
|
`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
|
|
106
106
|
`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
|
|
107
|
-
`),this.close()}_(e,
|
|
108
|
-
|
|
107
|
+
`),this.close()}_(e,n){let r=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${r}${e}${s}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),n=this.input.slice(this.cursor);this.input=`${e}${n}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor+1);this.input=`${e}${n}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,n,r,s){let i,o=r?zl.arrowUp:s?zl.arrowDown:" ",a=n?Fr.cyan().underline(e.title):e.title;return o=(n?Fr.cyan(zl.pointer)+" ":" ")+o,e.description&&(i=` - ${e.description}`,(o.length+a.length+i.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(i=`
|
|
108
|
+
`+$x(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Fr.gray(i||"")}render(){if(this.closed)return;this.firstRender?this.out.write(ym.hide):this.out.write(wm(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:n}=Ix(this.select,this.choices.length,this.limit);if(this.outputText=[Kl.symbol(this.done,this.aborted,this.exited),Fr.bold(this.msg),Kl.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let r=this.suggestions.slice(e,n).map((s,i)=>this.renderOption(s,this.select===i+e,i===0&&e>0,i+e===n-1&&n<this.choices.length)).join(`
|
|
109
109
|
`);this.outputText+=`
|
|
110
|
-
`+(
|
|
110
|
+
`+(r||Fr.gray(this.fallback.title))}this.out.write(Dx.line+ym.to(0)+this.outputText)}};Em.exports=Yl});var Tm=b((bk,Am)=>{"use strict";var kt=B(),{cursor:jx}=z(),Vx=Bl(),{clear:xm,style:Om,figures:Un}=Xe(),Jl=class extends Vx{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=xm("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(r=>this.inputValue?!!(typeof r.title=="string"&&r.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof r.value=="string"&&r.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let n=this.filteredOptions.findIndex(r=>r===e);this.cursor=n<0?0:n,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,n){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
111
111
|
Instructions:
|
|
112
|
-
${
|
|
113
|
-
${
|
|
112
|
+
${Un.arrowUp}/${Un.arrowDown}: Highlight option
|
|
113
|
+
${Un.arrowLeft}/${Un.arrowRight}/[space]: Toggle selection
|
|
114
114
|
[a,b,c]/delete: Filter choices
|
|
115
115
|
enter/return: Complete answer
|
|
116
116
|
`:""}renderCurrentInput(){return`
|
|
117
|
-
Filtered results for: ${this.inputValue?this.inputValue:
|
|
118
|
-
`}renderOption(e,r
|
|
117
|
+
Filtered results for: ${this.inputValue?this.inputValue:kt.gray("Enter something to filter")}
|
|
118
|
+
`}renderOption(e,n,r){let s;return n.disabled?s=e===r?kt.gray().underline(n.title):kt.strikethrough().gray(n.title):s=e===r?kt.cyan().underline(n.title):n.title,(n.selected?kt.green(Un.radioOn):Un.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let e=[kt.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(kt.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(jx.hide),super.render();let e=[Om.symbol(this.done,this.aborted),kt.bold(this.msg),Om.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=kt.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=xm(e,this.out.columns)}};Am.exports=Jl});var $m=b((yk,Dm)=>{"use strict";var Nm=B(),Fx=Tt(),{style:km,clear:Lx}=Xe(),{erase:qx,cursor:Rm}=z(),Xl=class extends Fx{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
119
119
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
120
|
-
`),this.close()}_(e,
|
|
120
|
+
`),this.close()}_(e,n){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Rm.hide):this.out.write(Lx(this.outputText,this.out.columns)),super.render(),this.outputText=[km.symbol(this.done,this.aborted),Nm.bold(this.msg),km.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Nm.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(qx.line+Rm.to(0)+this.outputText))}};Dm.exports=Xl});var Pm=b((wk,Im)=>{"use strict";Im.exports={TextPrompt:Df(),SelectPrompt:Mf(),TogglePrompt:Lf(),DatePrompt:hm(),NumberPrompt:gm(),MultiselectPrompt:Bl(),AutocompletePrompt:Sm(),AutocompleteMultiselectPrompt:Tm(),ConfirmPrompt:$m()}});var jm=b(Mm=>{"use strict";var Ae=Mm,Hx=Pm(),pi=t=>t;function dt(t,e,n={}){return new Promise((r,s)=>{let i=new Hx[t](e),o=n.onAbort||pi,a=n.onSubmit||pi,l=n.onExit||pi;i.on("state",e.onState||pi),i.on("submit",u=>r(a(u))),i.on("exit",u=>r(l(u))),i.on("abort",u=>s(o(u)))})}Ae.text=t=>dt("TextPrompt",t);Ae.password=t=>(t.style="password",Ae.text(t));Ae.invisible=t=>(t.style="invisible",Ae.text(t));Ae.number=t=>dt("NumberPrompt",t);Ae.date=t=>dt("DatePrompt",t);Ae.confirm=t=>dt("ConfirmPrompt",t);Ae.list=t=>{let e=t.separator||",";return dt("TextPrompt",t,{onSubmit:n=>n.split(e).map(r=>r.trim())})};Ae.toggle=t=>dt("TogglePrompt",t);Ae.select=t=>dt("SelectPrompt",t);Ae.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=n=>n.filter(r=>r.selected).map(r=>r.value);return dt("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};Ae.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=n=>n.filter(r=>r.selected).map(r=>r.value);return dt("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var Gx=(t,e)=>Promise.resolve(e.filter(n=>n.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));Ae.autocomplete=t=>(t.suggest=t.suggest||Gx,t.choices=[].concat(t.choices||[]),dt("AutocompletePrompt",t))});var Lm=b((Ek,Fm)=>{"use strict";var Zl=jm(),Ux=["suggest","format","onState","validate","onRender","type"],Vm=()=>{};async function Yt(t=[],{onSubmit:e=Vm,onCancel:n=Vm}={}){let r={},s=Yt._override||{};t=[].concat(t);let i,o,a,l,u,h,c=async(d,p,f=!1)=>{if(!(!f&&d.validate&&d.validate(p)!==!0))return d.format?await d.format(p,r):p};for(o of t)if({name:l,type:u}=o,typeof u=="function"&&(u=await u(i,{...r},o),o.type=u),!!u){for(let d in o){if(Ux.includes(d))continue;let p=o[d];o[d]=typeof p=="function"?await p(i,{...r},h):p}if(h=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:l,type:u}=o,Zl[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(i=await c(o,s[o.name]),i!==void 0)){r[l]=i;continue}try{i=Yt._injected?Wx(Yt._injected,o.initial):await Zl[u](o),r[l]=i=await c(o,i,!0),a=await e(o,i,r)}catch{a=!await n(o,r)}if(a)return r}return r}function Wx(t,e){let n=t.shift();if(n instanceof Error)throw n;return n===void 0?e:n}function Bx(t){Yt._injected=(Yt._injected||[]).concat(t)}function Kx(t){Yt._override=Object.assign({},t)}Fm.exports=Object.assign(Yt,{prompt:Yt,prompts:Zl,inject:Bx,override:Kx})});var Lr=b((Sk,qm)=>{"use strict";function zx(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,n=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(n[e]>t[e])return!1;if(t[e]>n[e])return!0}return!1}qm.exports=zx("8.6.0")?hf():Lm()});var dn=W(Ys(),1);var uh=W(ch(),1),{program:nN,createCommand:rN,createArgument:sN,createOption:iN,CommanderError:oN,InvalidArgumentError:aN,InvalidOptionArgumentError:lN,Command:Ue,Argument:cN,Option:dh,Help:uN}=uh.default;var $u=W(Lr(),1);var Hm=(t=0)=>e=>`\x1B[${e+t}m`,Gm=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Um=(t=0)=>(e,n,r)=>`\x1B[${38+t};2;${e};${n};${r}m`,H={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},xk=Object.keys(H.modifier),Yx=Object.keys(H.color),Jx=Object.keys(H.bgColor),Ok=[...Yx,...Jx];function Xx(){let t=new Map;for(let[e,n]of Object.entries(H)){for(let[r,s]of Object.entries(n))H[r]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[r]=H[r],t.set(s[0],s[1]);Object.defineProperty(H,e,{value:n,enumerable:!1})}return Object.defineProperty(H,"codes",{value:t,enumerable:!1}),H.color.close="\x1B[39m",H.bgColor.close="\x1B[49m",H.color.ansi=Hm(),H.color.ansi256=Gm(),H.color.ansi16m=Um(),H.bgColor.ansi=Hm(10),H.bgColor.ansi256=Gm(10),H.bgColor.ansi16m=Um(10),Object.defineProperties(H,{rgbToAnsi256:{value(e,n,r){return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(e){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(i=>i+i).join(""));let s=Number.parseInt(r,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>H.rgbToAnsi256(...H.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let n,r,s;if(e>=232)n=((e-232)*10+8)/255,r=n,s=n;else{e-=16;let a=e%36;n=Math.floor(e/36)/5,r=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(n,r,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,n,r)=>H.ansi256ToAnsi(H.rgbToAnsi256(e,n,r)),enumerable:!1},hexToAnsi:{value:e=>H.ansi256ToAnsi(H.hexToAnsi256(e)),enumerable:!1}}),H}var Zx=Xx(),Ze=Zx;var mi=W(require("node:process"),1),Bm=W(require("node:os"),1),Ql=W(require("node:tty"),1);function We(t,e=globalThis.Deno?globalThis.Deno.args:mi.default.argv){let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),s=e.indexOf("--");return r!==-1&&(s===-1||r<s)}var{env:X}=mi.default,fi;We("no-color")||We("no-colors")||We("color=false")||We("color=never")?fi=0:(We("color")||We("colors")||We("color=true")||We("color=always"))&&(fi=1);function Qx(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function e0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function t0(t,{streamIsTTY:e,sniffFlags:n=!0}={}){let r=Qx();r!==void 0&&(fi=r);let s=n?fi:r;if(s===0)return 0;if(n){if(We("color=16m")||We("color=full")||We("color=truecolor"))return 3;if(We("color=256"))return 2}if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(t&&!e&&s===void 0)return 0;let i=s||0;if(X.TERM==="dumb")return i;if(mi.default.platform==="win32"){let o=Bm.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in X)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if(X.COLORTERM==="truecolor"||X.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:i}function Wm(t,e={}){let n=t0(t,{streamIsTTY:t&&t.isTTY,...e});return e0(n)}var n0={stdout:Wm({isTTY:Ql.default.isatty(1)}),stderr:Wm({isTTY:Ql.default.isatty(2)})},Km=n0;function zm(t,e,n){let r=t.indexOf(e);if(r===-1)return t;let s=e.length,i=0,o="";do o+=t.slice(i,r)+e+n,i=r+s,r=t.indexOf(e,i);while(r!==-1);return o+=t.slice(i),o}function Ym(t,e,n,r){let s=0,i="";do{let o=t[r-1]==="\r";i+=t.slice(s,o?r-1:r)+e+(o?`\r
|
|
121
121
|
`:`
|
|
122
|
-
`)+
|
|
123
|
-
`,s)}while(
|
|
124
|
-
`);return i!==-1&&(e=
|
|
125
|
-
`+
|
|
126
|
-
Stack : ${
|
|
127
|
-
REM Script Version: ${
|
|
122
|
+
`)+n,s=r+1,r=t.indexOf(`
|
|
123
|
+
`,s)}while(r!==-1);return i+=t.slice(s),i}var{stdout:Jm,stderr:Xm}=Km,ec=Symbol("GENERATOR"),Wn=Symbol("STYLER"),qr=Symbol("IS_EMPTY"),Zm=["ansi","ansi","ansi256","ansi16m"],Bn=Object.create(null),r0=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=Jm?Jm.level:0;t.level=e.level===void 0?n:e.level};var s0=t=>{let e=(...n)=>n.join(" ");return r0(e,t),Object.setPrototypeOf(e,Hr.prototype),e};function Hr(t){return s0(t)}Object.setPrototypeOf(Hr.prototype,Function.prototype);for(let[t,e]of Object.entries(Ze))Bn[t]={get(){let n=gi(this,nc(e.open,e.close,this[Wn]),this[qr]);return Object.defineProperty(this,t,{value:n}),n}};Bn.visible={get(){let t=gi(this,this[Wn],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var tc=(t,e,n,...r)=>t==="rgb"?e==="ansi16m"?Ze[n].ansi16m(...r):e==="ansi256"?Ze[n].ansi256(Ze.rgbToAnsi256(...r)):Ze[n].ansi(Ze.rgbToAnsi(...r)):t==="hex"?tc("rgb",e,n,...Ze.hexToRgb(...r)):Ze[n][t](...r),i0=["rgb","hex","ansi256"];for(let t of i0){Bn[t]={get(){let{level:n}=this;return function(...r){let s=nc(tc(t,Zm[n],"color",...r),Ze.color.close,this[Wn]);return gi(this,s,this[qr])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Bn[e]={get(){let{level:n}=this;return function(...r){let s=nc(tc(t,Zm[n],"bgColor",...r),Ze.bgColor.close,this[Wn]);return gi(this,s,this[qr])}}}}var o0=Object.defineProperties(()=>{},{...Bn,level:{enumerable:!0,get(){return this[ec].level},set(t){this[ec].level=t}}}),nc=(t,e,n)=>{let r,s;return n===void 0?(r=t,s=e):(r=n.openAll+t,s=e+n.closeAll),{open:t,close:e,openAll:r,closeAll:s,parent:n}},gi=(t,e,n)=>{let r=(...s)=>a0(r,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(r,o0),r[ec]=t,r[Wn]=e,r[qr]=n,r},a0=(t,e)=>{if(t.level<=0||!e)return t[qr]?"":e;let n=t[Wn];if(n===void 0)return e;let{openAll:r,closeAll:s}=n;if(e.includes("\x1B"))for(;n!==void 0;)e=zm(e,n.close,n.open),n=n.parent;let i=e.indexOf(`
|
|
124
|
+
`);return i!==-1&&(e=Ym(e,s,r,i)),r+e+s};Object.defineProperties(Hr.prototype,Bn);var l0=Hr(),$k=Hr({level:Xm?Xm.level:0});var Jt=l0;var C={print(...t){console.log(...t)},printError(...t){console.error(this.error(...ht(...t)))},printSuccess(...t){console.log(this.success(...ht(...t)))},printWarn(...t){console.log(this.warn(...ht(...t)))},printInfo(...t){console.log(this.info(...ht(...t)))},printDebug(...t){console.log(this.debug(...ht(...t)))},error(...t){return Jt.red(...ht(...t))},success(...t){return Jt.green(...ht(...t))},warn(...t){return Jt.yellow(...ht(...t))},info(...t){return Jt.blueBright(...ht(...t))},debug(...t){return Jt.gray(...ht(...t))}};function ht(...t){return t?t.reduce((e,n)=>(n||e.push(""),n instanceof Error?e.push(n.message+`
|
|
125
|
+
`+n.stack):typeof n=="string"?e.push(n):typeof n=="object"?e.push(JSON.stringify(n,null,2)):e.push(n.toString()),e),[]):[""]}var sc=W(Ys(),1);var Z=W(Ys(),1);var c0="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Qm=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=c0[n[t]&63];return e};function u0(t,e=!0,n=!1){let r=(0,Z.ref)(),s,i=(0,Z.ref)(!1),o=()=>{},a=new Proxy(t,{apply:function(h,c,d){let p=h(...d);if(p instanceof Error){if(r.value=p,s=p,e)throw o(),p}else i.value=!0,r.value=void 0,s=!0,o()}}),l=()=>{},u=new Proxy(h=>{r.value=h},{apply:function(h,c,d){h(...d),l(...d)}});return{promise:new Promise((h,c)=>{if(e&&s instanceof Error){c(s);return}else if(s===!0){h();return}let d;n&&(d=setTimeout(()=>{let p=new Error("timeout!");r.value=p,e&&c(p)},n)),o=()=>{d&&(clearTimeout(d),d=void 0),h()}}),callback:a,onError:u,resolved:(0,Z.computed)(()=>i.value),error:(0,Z.computed)(()=>r.value)}}function d0(){return Qm()}function h0(t){let e=p0(t);return(0,Z.shallowReadonly)({states:e.states,commands:e.commands,events:e.events})}function p0(t){let e=t.states;for(let o of Object.keys(t.states))e[o]=(0,Z.readonly)(e[o]);let n=(0,Z.shallowReadonly)(t.states),r=(0,Z.readonly)(t.commands),s={},i=t.events;for(let o in t.events)s[o]=i[o].api;return(0,Z.shallowReadonly)({states:n,commands:r,events:(0,Z.shallowReadonly)(s),destroy:t.destroy})}function vi(t){let{callback:e,onError:n,promise:r,resolved:s}=u0(()=>{},!1,5e3);function i(c){if(s.value===!0)throw new Error("Agg already initialized");o.push(c())}let o=[],a=t({onCreated(c){Promise.resolve().then(c)},onBeforeInitialize:i,isInitialized:(0,Z.computed)(()=>s.value),untilInitialized:r});setTimeout(()=>Promise.all(o).then(()=>{e()}).catch(c=>{n(c)}));let l=a.states||{},u=a.commands||{},h=a.events||{};return{_code:d0(),type:"Singleton",api:h0({states:l,commands:u,events:h,destroy:()=>{}}),isInitialized:s,async untilInitialized(){return await r.catch(c=>{throw new Error(`Failed to initialize Agg: ${c.message}
|
|
126
|
+
Stack : ${c.stack||"unkown"}`)})}}}var f0={"signal.{str}":"Error: {str}","signal.scriptStart":"===== Script start =====","signal.successComplete":"===== Program execution succeeded =====","signal.exitWithError":"===== Exit with error =====","question.subcommand":"Select the business type","question.subcommand.genCode":"Generate code","question.subcommand.genCode.language":"Select your programming language","question.subcommand.genCode.namespace":"Input your domain namespace","question.subcommand.genCode.package":"Input your domain package","question.subcommand.genCode.csharp.additions":"Select additional options","question.subcommand.genCode.kotlin.additions":"Select additional options","question.subcommand.genCode.kotlin.additions.commandHandler":"Generate CommandHandler for each command","question.subcommand.genCode.kotlin.additions.valueClass":"Use value class (Kotlin1.5+)","question.subcommand.genCode.kotlin.additions.timezone":"Use [OffsetDateTime] to represent time","question.subcommand.genCode.java.additions":"Select additional options","question.subcommand.genCode.java.additions.springFramework":"Use spring container for development","question.subcommand.genCode.java.additions.lombok":"Use [@Getter, @RequiredArgsConstructor...] of lombok","question.subcommand.genCode.java.additions.lombokBuilder":"Use [@Builder] of lombok to avoid long parameter lists","question.subcommand.genCode.java.additions.commandHandler":"Generate CommandHandler for each command","question.subcommand.genCode.java.additions.recordVakueObject":"Use [java record] to generate value object (JDK16+)","question.subcommand.genCode.java.additions.timezone":"Use [OffsetDateTime] to represent time","question.subcommand.genCode.java.nonNullAnnotation":"Select non-null annotation","question.subcommand.genCode.additions.hint":"- Space to select. Return to submit","question.subcommand.init":"Initialize project","question.subcommand.updateWorkspace":"Update Workspace","question.subcommand.runWeb":"Run Web server","question.subcommand.runWeb.source":"Please enter the ts file directory","question.subcommand.info":"[ test ]","error.userCancel":"User canceled","error.invalidArgs{str}":"Invalid args: {str}","error.badArgs":"Bad args","error.shouldBeValidDir{dir}":"{dir} should be a valid directory","error.shouldBeEmptyDir{dir}":"{dir} should be an empty directory","error.noPackageManager":"No package manager found, please install bun or pnpm"},rc=f0;var m0={"signal.{str}":"\u9519\u8BEF: {str}","signal.scriptStart":"===== \u811A\u672C\u5F00\u59CB\u6267\u884C =====","signal.successComplete":"===== \u811A\u672C\u6267\u884C\u6210\u529F =====","signal.exitWithError":"===== \u811A\u672C\u5F02\u5E38\u9000\u51FA =====","question.subcommand":"\u8BF7\u9009\u62E9\u8981\u6267\u884C\u7684\u4E1A\u52A1\u7C7B\u578B","question.subcommand.genCode":"\u751F\u6210\u4EE3\u7801","question.subcommand.genCode.language":"\u9009\u62E9\u4F60\u7684\u7F16\u7A0B\u8BED\u8A00","question.subcommand.genCode.namespace":"\u8F93\u5165\u9886\u57DF\u6A21\u5757\u7684namespace\u540D\u79F0","question.subcommand.genCode.package":"\u8F93\u5165\u9886\u57DF\u6A21\u5757\u7684package\u540D\u79F0","question.subcommand.genCode.csharp.additions":"\u9009\u62E9\u9644\u52A0\u9009\u9879","question.subcommand.genCode.kotlin.additions":"\u9009\u62E9\u9644\u52A0\u9009\u9879","question.subcommand.genCode.kotlin.additions.commandHandler":"\u4E3A\u6BCF\u4E2A\u547D\u4EE4\u751F\u6210CommandHandler","question.subcommand.genCode.kotlin.additions.valueClass":"\u4F7F\u7528\u503C\u7C7B\uFF08Kotlin1.5+\uFF09","question.subcommand.genCode.kotlin.additions.timezone":"\u4F7F\u7528\u5E26\u65F6\u533A\u7684OffsetDateTime\u8868\u793A\u65F6\u95F4","question.subcommand.genCode.java.additions":"\u9009\u62E9\u9644\u52A0\u9009\u9879","question.subcommand.genCode.java.additions.springFramework":"\u4F7F\u7528spring\u5BB9\u5668\u8FDB\u884C\u5F00\u53D1","question.subcommand.genCode.java.additions.lombok":"\u4F7F\u7528lombok\u5E38\u7528\u7684Getter\u7B49\u6CE8\u89E3","question.subcommand.genCode.java.additions.lombokBuilder":"\u4F7F\u7528lombok\u7684Builder\u6CE8\u89E3\u907F\u514D\u957F\u53C2\u6570\u5217\u8868","question.subcommand.genCode.java.additions.commandHandler":"\u4E3A\u6BCF\u4E2A\u547D\u4EE4\u751F\u6210CommandHandler","question.subcommand.genCode.java.additions.recordVakueObject":"\u4F7F\u7528record\u7C7B\u751F\u6210\u503C\u5BF9\u8C61\uFF08JDK16+\uFF09","question.subcommand.genCode.java.additions.timezone":"\u4F7F\u7528\u5E26\u65F6\u533A\u7684OffsetDateTime\u8868\u793A\u65F6\u95F4","question.subcommand.genCode.java.nonNullAnnotation":"\u9009\u62E9\u975E\u7A7A\u6CE8\u89E3","question.subcommand.genCode.additions.hint":"- \u7A7A\u683C\u52FE\u9009\uFF0C\u56DE\u8F66\u63D0\u4EA4","question.subcommand.init":"\u521D\u59CB\u5316\u9879\u76EE","question.subcommand.updateWorkspace":"\u66F4\u65B0\u4F9D\u8D56","question.subcommand.runWeb":"\u8FD0\u884C Web \u670D\u52A1","question.subcommand.runWeb.source":"\u8BF7\u8F93\u5165ts\u6587\u4EF6\u76EE\u5F55","question.subcommand.info":"\u3010\u6D4B\u8BD5\u3011","error.userCancel":"\u7528\u6237\u7EC8\u6B62\u4E86\u811A\u672C\u6267\u884C","error.invalidArgs{str}":"\u65E0\u6548\u7684\u53C2\u6570: {str}","error.badArgs":"\u9519\u8BEF\u7684\u53C2\u6570","error.shouldBeValidDir{dir}":"{dir} \u5E94\u8BE5\u662F\u4E00\u4E2A\u6709\u6548\u7684\u76EE\u5F55","error.shouldBeEmptyDir{dir}":"{dir} \u5E94\u8BE5\u662F\u4E00\u4E2A\u7A7A\u76EE\u5F55","error.noPackageManager":"\u672A\u627E\u5230\u5305\u7BA1\u7406\u5668,\u8BF7\u5B89\u88C5 bun \u6216 pnpm"},eg=m0;var g0=vi(()=>{let t=(0,sc.ref)("zh"),e=(0,sc.ref)(rc);function n(r,s,i){let o=e.value[r];return o||(typeof s=="string"?o=s:typeof i=="string"&&(o=i)),o?(typeof s=="object"&&(o=o.replace(/\{\s*([a-zA-z_]+)\s*\}/g,(a,l)=>String(s[l]))),o):""}return{states:{currentLang:t},commands:{t:n,setCurrentLang(r){r==="en"?e.value=rc:r==="zh"?e.value=eg:isNever(r),t.value=r}}}});function ce(){return g0.api}var v0=ce().commands.t;function Be(){throw Error(v0("error.userCancel"))}var Q={name:"@ddd-tool/domain-designer-cli",version:"0.0.0-alpha.30",private:!0,type:"module",files:["./src"],repository:{type:"git",url:"git+https://github.com/ddd-tool/domain-designer-cli-node.git"},dependencies:{},bugs:{url:"https://github.com/ddd-tool/domain-designer-cli-node/issues"},readme:"ERROR: No README data found!",homepage:"https://github.com/ddd-tool/domain-designer-cli-node#readme",_id:"@ddd-tool/domain-designer-cli@0.0.0-alpha.30"};var Cn=require("child_process"),tg=W(require("os"),1);function ng(){let t=Gr(),e=null;return t==="windows"?e=(0,Cn.spawnSync)("where bun",{encoding:"utf-8",shell:!0}).status:t==="linux"?e=(0,Cn.spawnSync)("hash bun",{encoding:"utf-8",shell:!0}).status:t==="mac"&&(e=(0,Cn.spawnSync)("hash bun",{encoding:"utf-8",shell:!0}).status),e===0}function rg(){let t=Gr(),e=null;return t==="windows"?e=(0,Cn.spawnSync)("where pnpm",{encoding:"utf-8",shell:!0}).status:t==="linux"?e=(0,Cn.spawnSync)("hash pnpm",{encoding:"utf-8",shell:!0}).status:t==="mac"&&(e=(0,Cn.spawnSync)("hash pnpm",{encoding:"utf-8",shell:!0}).status),e===0}function Gr(){let t=tg.default.type();return t==="Windows_NT"?"windows":t==="Linux"?"linux":t==="Darwin"?"mac":"undefined"}function bi(){let t=Q.repository.url.replace(/git\+/g,""),e=`REM App Name: Domain Designer Cli
|
|
127
|
+
REM Script Version: ${Q.version}
|
|
128
128
|
REM Repo Addr: ${t}
|
|
129
129
|
REM Package Manager: ${process.env.PACKAGE_MANAGER}
|
|
130
130
|
|
|
@@ -133,22 +133,22 @@ setlocal
|
|
|
133
133
|
set "scriptPath=%~dp0"
|
|
134
134
|
|
|
135
135
|
domain-designer-cli runWeb --source=%scriptPath%
|
|
136
|
-
`,
|
|
136
|
+
`,n=`#!/bin/bash
|
|
137
137
|
# App Name: Domain Designer Cli
|
|
138
|
-
# Script Version: ${
|
|
138
|
+
# Script Version: ${Q.version}
|
|
139
139
|
# Repo Addr: ${t}
|
|
140
140
|
# Package Manager: ${process.env.PACKAGE_MANAGER}
|
|
141
141
|
|
|
142
142
|
domain-designer-cli runWeb --source="$(dirname "$(realpath "$0")")"
|
|
143
|
-
`,
|
|
143
|
+
`,r=`#!/bin/bash
|
|
144
144
|
# App Name: Domain Designer Cli
|
|
145
|
-
# Script Version: ${
|
|
145
|
+
# Script Version: ${Q.version}
|
|
146
146
|
# Repo Addr: ${t}
|
|
147
147
|
# Package Manager: ${process.env.PACKAGE_MANAGER}
|
|
148
148
|
|
|
149
149
|
domain-designer-cli runWeb --source="$(dirname "$(realpath "$0")")"
|
|
150
|
-
`,s=
|
|
151
|
-
REM Script Version: ${
|
|
150
|
+
`,s=Gr();if(s==="windows")return{name:"RunWeb.bat",content:e};if(s==="linux")return{name:"RunWeb.sh",content:n};if(s==="mac")return{name:"RunWeb.sh",content:r};C.printError(`Unsupported OS: ${s}`)}function yi(){let t=Q.repository.url.replace(/git\+/g,""),e=`REM App Name: Domain Designer Cli
|
|
151
|
+
REM Script Version: ${Q.version}
|
|
152
152
|
REM Repo Addr: ${t}
|
|
153
153
|
REM Package Manager: ${process.env.PACKAGE_MANAGER}
|
|
154
154
|
|
|
@@ -157,76 +157,89 @@ setlocal
|
|
|
157
157
|
set "scriptPath=%~dp0"
|
|
158
158
|
|
|
159
159
|
domain-designer-cli genCode --source=%scriptPath%
|
|
160
|
-
`,
|
|
160
|
+
`,n=`#!/bin/bash
|
|
161
161
|
# App Name: Domain Designer Cli
|
|
162
|
-
# Script Version: ${
|
|
162
|
+
# Script Version: ${Q.version}
|
|
163
163
|
# Repo Addr: ${t}
|
|
164
164
|
# Package Manager: ${process.env.PACKAGE_MANAGER}
|
|
165
165
|
|
|
166
166
|
domain-designer-cli genCode --source="$(dirname "$(realpath "$0")")"
|
|
167
|
-
`,
|
|
167
|
+
`,r=`#!/bin/bash
|
|
168
168
|
# App Name: Domain Designer Cli
|
|
169
|
-
# Script Version: ${
|
|
169
|
+
# Script Version: ${Q.version}
|
|
170
170
|
# Repo Addr: ${t}
|
|
171
171
|
# Package Manager: ${process.env.PACKAGE_MANAGER}
|
|
172
172
|
|
|
173
173
|
domain-designer-cli genCode --source="$(dirname "$(realpath "$0")")"
|
|
174
|
-
`,s=
|
|
174
|
+
`,s=Gr();if(s==="windows")return{name:"GenCode.bat",content:e};if(s==="linux")return{name:"GenCode.sh",content:n};if(s==="mac")return{name:"GenCode.sh",content:r};C.printError(`Unsupported OS: ${s}`)}function wi(){return{name:".gitignore",content:`!node_modules
|
|
175
175
|
.output
|
|
176
176
|
|
|
177
177
|
!*.bat
|
|
178
178
|
!*.sh
|
|
179
|
-
`}}var
|
|
179
|
+
`}}var Iu=W(require("path"),1);var Kn=W(require("path"),1),En=W(require("fs"),1);var Qe=W(require("fs"),1),ic=W(require("path"),1);function Ur(t,e,n={}){if(!Qe.default.existsSync(t))throw new Error(`Source folder does not exist: ${t}`);Qe.default.existsSync(e)||Qe.default.mkdirSync(e,{recursive:!0});let r=Qe.default.readdirSync(t,{withFileTypes:!0});for(let s of r){let i=ic.default.join(t,s.name),o=ic.default.join(e,s.name);n.ignore&&n.ignore.includes(s.name)||n.pattern&&!n.pattern.test(s.name)||(s.isDirectory()?Ur(i,o):Qe.default.copyFileSync(i,o))}}function Wr(t){Qe.default.existsSync(t)&&(Qe.default.readdirSync(t).forEach(e=>{let n=t+"/"+e;Qe.default.lstatSync(n).isDirectory()?Wr(n):Qe.default.unlinkSync(n)}),Qe.default.rmdirSync(t))}var sg=ce().commands.t;function ig(t){return new Ue().name("init").option("--source <sourceDir>","ts files' dir").action(e=>{t.currentCommand.value="init",e.source&&(t.args.source=e.source)}).addHelpText("before",`Initialize the workspace.
|
|
180
180
|
`).addHelpText("before",`\u521D\u59CB\u5316\u4E00\u4E2A\u5DE5\u4F5C\u7A7A\u95F4
|
|
181
|
-
`)}async function
|
|
181
|
+
`)}async function og(t){t.currentCommand.value="init"}async function ag(t){let e=Kn.default.join(t.source);if(!En.default.existsSync(e)||!En.default.statSync(e).isDirectory())throw new Error(sg("error.shouldBeValidDir{dir}",{dir:e}));if(En.default.readdirSync(e).length>0)throw new Error(sg("error.shouldBeEmptyDir{dir}",{dir:e}));C.printInfo("================ \u521D\u59CB\u5316\u5DE5\u4F5C\u7A7A\u95F4: Starting... ================"),Ur(Kn.default.join(t.webRoot,"templates"),e);let n=bi();n&&En.default.writeFileSync(Kn.default.join(e,n.name),n.content,"utf-8");let r=yi();r&&En.default.writeFileSync(Kn.default.join(e,r.name),r.content,"utf-8");let s=wi();En.default.writeFileSync(Kn.default.join(e,s.name),s.content,"utf-8"),C.printSuccess("================ \u521D\u59CB\u5316\u5DE5\u4F5C\u7A7A\u95F4: Succeeded ================")}var lg=require("child_process");function cg(t){return new Ue().name("info").action(()=>{t.currentCommand.value="info"}).addHelpText("before",`Print info.
|
|
182
182
|
`).addHelpText("before",`\u6253\u5370\u4FE1\u606F
|
|
183
|
-
`)}async function
|
|
183
|
+
`)}async function ug(t){t.currentCommand.value="info"}async function dg(){C.printInfo("================ Print info: Starting... ================"),(0,lg.spawnSync)('echo "print domain-designer info"',{encoding:"utf-8",stdio:"inherit",shell:!0}),C.print("");let t=process.env.LANG||process.env.LANGUAGE||process.env.LC_ALL||process.env.LC_MESSAGES||!1;C.print(C.info("DEBUG_MODE:"),process.env.DEBUG_MODE),C.print(""),C.print(C.info("lang:"),t),C.print(""),C.print(C.info("__dirname:"),__dirname),C.print(""),C.print(C.info("cwd():"),process.cwd()),C.print(""),C.print(C.info("PACKAGE_MANAGER:"),process.env.PACKAGE_MANAGER),C.print(""),C.printSuccess("================ Print info: Succeeded ================")}var be=W(require("fs"),1),ue=W(require("path"),1);function hg(t){return new Ue().name("update").option("--source <sourceDir>","ts files' dir").action(e=>{t.currentCommand.value="updateWorkspace",e.source&&(t.args.source=e.source)}).addHelpText("before",`Update the workspace.
|
|
184
184
|
`).addHelpText("before",`\u66F4\u65B0\u5DE5\u4F5C\u7A7A\u95F4
|
|
185
|
-
`)}async function
|
|
185
|
+
`)}async function pg(t){t.currentCommand.value="updateWorkspace"}async function fg(t){let e=ue.default.join(t.source);if(C.printInfo("================ \u66F4\u65B0\u4F9D\u8D56: Starting... ================"),!be.default.existsSync(ue.default.join(e,"node_modules"))||be.default.existsSync(ue.default.join(t.source,"package.json"))){C.printWarn("\u8BE5\u76EE\u5F55\u4E0D\u662F\u5DE5\u4F5C\u7A7A\u95F4\uFF0C\u65E0\u6CD5\u66F4\u65B0"),C.printWarn("================ \u66F4\u65B0\u4F9D\u8D56: End ================");return}let n=ue.default.join(e,"node_modules","version.txt"),r=be.default.existsSync(n)&&be.default.statSync(n).isFile()?be.default.readFileSync(n).toString().trim():"unknown";if(r===Q.version){C.print("\u5DE5\u4F5C\u76EE\u5F55\u5DF2\u662F\u6700\u65B0\u7248\u672C\uFF0C\u65E0\u9700\u66F4\u65B0"),C.printSuccess("================ \u66F4\u65B0\u4F9D\u8D56: Succeeded ================");return}C.print("\u5DE5\u4F5C\u76EE\u5F55\u7248\u672C\uFF1A",r),Wr(ue.default.join(e,"node_modules"));let s=bi();s&&be.default.existsSync(ue.default.join(e,s.name))&&be.default.rmSync(ue.default.join(e,s.name));let i=yi();i&&be.default.existsSync(ue.default.join(e,i.name))&&be.default.rmSync(ue.default.join(e,i.name));let o=wi();be.default.existsSync(ue.default.join(e,o.name))&&be.default.rmSync(ue.default.join(e,o.name)),Ur(ue.default.join(t.webRoot,"templates"),e,{ignore:["example.ts","example-agg.ts"]}),s&&be.default.writeFileSync(ue.default.join(e,s.name),s.content,"utf-8"),i&&be.default.writeFileSync(ue.default.join(e,i.name),i.content,"utf-8"),be.default.writeFileSync(ue.default.join(e,o.name),o.content,"utf-8"),C.print(`\u76EE\u5F55\u5DF2\u66F4\u65B0\u81F3 ${Q.version}`),C.printSuccess("================ \u66F4\u65B0\u4F9D\u8D56: Succeeded ================")}var Kr=require("child_process");var Ci=W(require("path"),1),Xt=W(require("fs"),1);var _0=ce().commands.t;function mg(t){return new Ue().name("runWeb").option("--source <sourceDir>","ts files' dir").action(e=>{t.currentCommand.value="runWeb",e.source&&(t.args.source=e.source)}).addHelpText("before",`Run web server.
|
|
186
186
|
`).addHelpText("before",`\u8FD0\u884C web \u670D\u52A1
|
|
187
|
-
`)}async function
|
|
187
|
+
`)}async function gg(t){t.currentCommand.value="runWeb"}async function vg(t){let e=t.webRoot;C.printDebug("webRoot\u8DEF\u5F84",e);let n=process.env.PACKAGE_MANAGER;C.printInfo("================ \u5B89\u88C5\u8FD0\u884C\u4F9D\u8D56: Starting... ================"),n==="bun"?(0,Kr.spawnSync)(`bun i --cwd "${e}"`,{encoding:"utf-8",stdio:"inherit",shell:!0}):n==="pnpm"?(0,Kr.spawnSync)(`pnpm i --prefix "${e}"`,{encoding:"utf-8",stdio:"inherit",shell:!0}):isNever(n),C.printSuccess("================ \u5B89\u88C5\u8FD0\u884C\u4F9D\u8D56: Succeeded ================"),C.printInfo("================ \u88C5\u914D\u4EE3\u7801\u6587\u4EF6: Starting... ================"),b0(e,t.source),C.printSuccess("================ \u88C5\u914D\u4EE3\u7801\u6587\u4EF6: Succeeded ================"),C.printInfo("================ \u8FD0\u884CWeb\u670D\u52A1: Starting... ================"),n==="bun"?(0,Kr.spawnSync)(`bun --cwd "${e}" dev`,{encoding:"utf-8",stdio:"inherit",shell:!0}):n==="pnpm"?(0,Kr.spawnSync)(`pnpm --prefix "${e}" dev`,{encoding:"utf-8",stdio:"inherit",shell:!0}):isNever(n)}async function b0(t,e){if(!Xt.default.existsSync(e)||!Xt.default.statSync(e).isDirectory())throw new Error(_0("error.shouldBeValidDir{dir}",{dir:e}));let n=Ci.default.join(e,"node_modules","version.txt");(!Xt.default.existsSync(n)||!Xt.default.statSync(n).isFile()||Xt.default.readFileSync(n,"utf-8").trim()!==Q.version)&&(C.printWarn("\u68C0\u6D4B\u5230\u5DE5\u4F5C\u76EE\u5F55\u7248\u672C\u4E0E\u811A\u624B\u67B6\u7248\u672C\u4E0D\u5339\u914D"),C.printWarn("\u8BF7\u6267\u884C\u5728\u5DE5\u4F5C\u76EE\u5F55\u6267\u884Cupdate\u547D\u4EE4\u8FDB\u884C\u66F4\u65B0"),C.print(Jt.bgYellow("domain-designer-cli update")));let r=[],s=new RegExp(/(.+)\.ts$/),i=0;Xt.default.readdirSync(e).forEach(a=>{if(s.test(a)){let l=s.exec(a)[1];r.push({name:l,flag:`__d${++i}`,importCode:`(await import('${Ci.default.join(e,l).replace(/\\/g,"/")}')).default`})}});let o=`import { type DomainDesigner, isDomainDesigner } from '@ddd-tool/domain-designer-core'
|
|
188
188
|
|
|
189
|
-
${
|
|
189
|
+
${r.map(a=>`const ${a.flag} = ${a.importCode}`).join(`
|
|
190
190
|
`)}
|
|
191
191
|
|
|
192
192
|
const data: Record<string, DomainDesigner> = {}
|
|
193
193
|
|
|
194
|
-
${
|
|
194
|
+
${r.map(a=>`if (isDomainDesigner(${a.flag})) {
|
|
195
195
|
data['${a.name}'] = ${a.flag}
|
|
196
196
|
}`).join(`
|
|
197
197
|
`)}
|
|
198
198
|
|
|
199
199
|
export default data
|
|
200
|
-
`;Xt.default.writeFileSync(bi.default.join(t,"src","views","index.ts"),o,{encoding:"utf-8"})}var dn=z(require("fs"),1),ds=z(require("path"),1);var yo=require("child_process");function Cg(t){let e=t;return!!(e&&typeof e.actor=="function"&&typeof e.startWorkflow=="function"&&typeof e.defineUserStory=="function"&&typeof e._getContext=="function"&&typeof e.desc=="function"&&typeof e.info=="object"&&typeof e.command=="function"&&typeof e.facadeCmd=="function"&&typeof e.agg=="function"&&typeof e.event=="function"&&typeof e.system=="function"&&typeof e.policy=="function"&&typeof e.service=="function"&&typeof e.readModel=="function")}function f0(t){let e=Object.create(null);for(let r of t.split(","))e[r]=1;return r=>r in e}var Ze=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);var Jr=()=>{},m0=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ve=Object.assign,g0=Object.prototype.hasOwnProperty,Q=(t,e)=>g0.call(t,e),q=Array.isArray,Xr=t=>Pi(t)==="[object Map]",v0=t=>Pi(t)==="[object Set]",se=t=>typeof t=="function",dt=t=>typeof t=="string",Qn=t=>typeof t=="symbol",Ae=t=>t!==null&&typeof t=="object",_0=t=>(Ae(t)||se(t))&&se(t.then)&&se(t.catch),b0=Object.prototype.toString,Pi=t=>b0.call(t),Og=t=>Pi(t).slice(8,-1),y0=t=>Pi(t)==="[object Object]",Sl=t=>dt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,w0=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},E0=w0(t=>t.charAt(0).toUpperCase()+t.slice(1)),xr=(t,e)=>!Object.is(t,e),S0=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},gg,Mi=()=>gg||(gg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xl(t){if(q(t)){let e={};for(let r=0;r<t.length;r++){let n=t[r],s=dt(n)?A0(n):xl(n);if(s)for(let i in s)e[i]=s[i]}return e}else if(dt(t)||Ae(t))return t}var x0=/;(?![^(]*\))/g,C0=/:([^]+)/,O0=/\/\*[^]*?\*\//g;function A0(t){let e={};return t.replace(O0,"").split(x0).forEach(r=>{if(r){let n=r.split(C0);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Cl(t){let e="";if(dt(t))e=t;else if(q(t))for(let r=0;r<t.length;r++){let n=Cl(t[r]);n&&(e+=n+" ")}else if(Ae(t))for(let r in t)t[r]&&(e+=r+" ");return e.trim()}function tr(t,...e){}var j,sl=new WeakSet,hl=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,sl.has(this)&&(sl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||T0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,vg(this),Tg(this);let e=j,r=Qe;j=this,Qe=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&j!==this&&tr("Active effect was not restored correctly - this is likely a Vue internal bug."),Ng(this),j=e,Qe=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Tl(e);this.deps=this.depsTail=void 0,vg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?sl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){dl(this)&&this.run()}get dirty(){return dl(this)}},Ag=0,Kn,zn;function T0(t,e=!1){if(t.flags|=8,e){t.next=zn,zn=t;return}t.next=Kn,Kn=t}function Ol(){Ag++}function Al(){if(--Ag>0)return;if(zn){let e=zn;for(zn=void 0;e;){let r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Kn;){let e=Kn;for(Kn=void 0;e;){let r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function Tg(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ng(t){let e,r=t.depsTail,n=r;for(;n;){let s=n.prevDep;n.version===-1?(n===r&&(r=s),Tl(n),R0(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=e,t.depsTail=r}function dl(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(N0(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function N0(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ci))return;t.globalVersion=Ci;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!dl(t)){t.flags&=-3;return}let r=j,n=Qe;j=t,Qe=!0;try{Tg(t);let s=t.fn(t._value);(e.version===0||xr(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{j=r,Qe=n,Ng(t),t.flags&=-3}}function Tl(t,e=!1){let{dep:r,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),process.env.NODE_ENV!=="production"&&r.subsHead===t&&(r.subsHead=s),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Tl(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function R0(t){let{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}var Qe=!0,Rg=[];function ji(){Rg.push(Qe),Qe=!1}function Vi(){let t=Rg.pop();Qe=t===void 0?!0:t}function vg(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let r=j;j=void 0;try{e()}finally{j=r}}}var Ci=0,pl=class{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},fl=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){if(!j||!Qe||j===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==j)r=this.activeLink=new pl(j,this),j.deps?(r.prevDep=j.depsTail,j.depsTail.nextDep=r,j.depsTail=r):j.deps=j.depsTail=r,kg(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=j.depsTail,r.nextDep=void 0,j.depsTail.nextDep=r,j.depsTail=r,j.deps===r&&(j.deps=n)}return process.env.NODE_ENV!=="production"&&j.onTrack&&j.onTrack(Ve({effect:j},e)),r}trigger(e){this.version++,Ci++,this.notify(e)}notify(e){Ol();try{if(process.env.NODE_ENV!=="production")for(let r=this.subsHead;r;r=r.nextSub)r.sub.onTrigger&&!(r.sub.flags&8)&&r.sub.onTrigger(Ve({effect:r.sub},e));for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Al()}}};function kg(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)kg(n)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),process.env.NODE_ENV!=="production"&&t.dep.subsHead===void 0&&(t.dep.subsHead=t),t.dep.subs=t}}var ml=new WeakMap,Cr=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),gl=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Jn=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function le(t,e,r){if(Qe&&j){let n=ml.get(t);n||ml.set(t,n=new Map);let s=n.get(r);s||(n.set(r,s=new fl),s.map=n,s.key=r),process.env.NODE_ENV!=="production"?s.track({target:t,type:e,key:r}):s.track()}}function Qt(t,e,r,n,s,i){let o=ml.get(t);if(!o){Ci++;return}let a=c=>{c&&(process.env.NODE_ENV!=="production"?c.trigger({target:t,type:e,key:r,newValue:n,oldValue:s,oldTarget:i}):c.trigger())};if(Ol(),e==="clear")o.forEach(a);else{let c=q(t),h=c&&Sl(r);if(c&&r==="length"){let d=Number(n);o.forEach((l,u)=>{(u==="length"||u===Jn||!Qn(u)&&u>=d)&&a(l)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),h&&a(o.get(Jn)),e){case"add":c?h&&a(o.get("length")):(a(o.get(Cr)),Xr(t)&&a(o.get(gl)));break;case"delete":c||(a(o.get(Cr)),Xr(t)&&a(o.get(gl)));break;case"set":Xr(t)&&a(o.get(Cr));break}}Al()}function Kr(t){let e=R(t);return e===t?e:(le(e,"iterate",Jn),je(t)?e:e.map(Me))}function Nl(t){return le(t=R(t),"iterate",Jn),t}var k0={__proto__:null,[Symbol.iterator](){return il(this,Symbol.iterator,Me)},concat(...t){return Kr(this).concat(...t.map(e=>q(e)?Kr(e):e))},entries(){return il(this,"entries",t=>(t[1]=Me(t[1]),t))},every(t,e){return Rt(this,"every",t,e,void 0,arguments)},filter(t,e){return Rt(this,"filter",t,e,r=>r.map(Me),arguments)},find(t,e){return Rt(this,"find",t,e,Me,arguments)},findIndex(t,e){return Rt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Rt(this,"findLast",t,e,Me,arguments)},findLastIndex(t,e){return Rt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Rt(this,"forEach",t,e,void 0,arguments)},includes(...t){return ol(this,"includes",t)},indexOf(...t){return ol(this,"indexOf",t)},join(t){return Kr(this).join(t)},lastIndexOf(...t){return ol(this,"lastIndexOf",t)},map(t,e){return Rt(this,"map",t,e,void 0,arguments)},pop(){return Wn(this,"pop")},push(...t){return Wn(this,"push",t)},reduce(t,...e){return _g(this,"reduce",t,e)},reduceRight(t,...e){return _g(this,"reduceRight",t,e)},shift(){return Wn(this,"shift")},some(t,e){return Rt(this,"some",t,e,void 0,arguments)},splice(...t){return Wn(this,"splice",t)},toReversed(){return Kr(this).toReversed()},toSorted(t){return Kr(this).toSorted(t)},toSpliced(...t){return Kr(this).toSpliced(...t)},unshift(...t){return Wn(this,"unshift",t)},values(){return il(this,"values",Me)}};function il(t,e,r){let n=Nl(t),s=n[e]();return n!==t&&!je(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=r(i.value)),i}),s}var D0=Array.prototype;function Rt(t,e,r,n,s,i){let o=Nl(t),a=o!==t&&!je(t),c=o[e];if(c!==D0[e]){let l=c.apply(t,i);return a?Me(l):l}let h=r;o!==t&&(a?h=function(l,u){return r.call(this,Me(l),u,t)}:r.length>2&&(h=function(l,u){return r.call(this,l,u,t)}));let d=c.call(o,h,n);return a&&s?s(d):d}function _g(t,e,r,n){let s=Nl(t),i=r;return s!==t&&(je(t)?r.length>3&&(i=function(o,a,c){return r.call(this,o,a,c,t)}):i=function(o,a,c){return r.call(this,o,Me(a),c,t)}),s[e](i,...n)}function ol(t,e,r){let n=R(t);le(n,"iterate",Jn);let s=n[e](...r);return(s===-1||s===!1)&&Ti(r[0])?(r[0]=R(r[0]),n[e](...r)):s}function Wn(t,e,r=[]){ji(),Ol();let n=R(t)[e].apply(t,r);return Al(),Vi(),n}var $0=f0("__proto__,__v_isRef,__isVue"),Dg=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Qn));function I0(t){Qn(t)||(t=String(t));let e=R(this);return le(e,"has",t),e.hasOwnProperty(t)}var Oi=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?Pg:Ig:i?G0:$g).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let o=q(e);if(!s){let c;if(o&&(c=k0[r]))return c;if(r==="hasOwnProperty")return I0}let a=Reflect.get(e,r,Te(e)?e:n);return(Qn(r)?Dg.has(r):$0(r))||(s||le(e,"get",r),i)?a:Te(a)?o&&Sl(r)?a:a.value:Ae(a)?s?jg(a):Mg(a):a}},vl=class extends Oi{constructor(e=!1){super(!1,e)}set(e,r,n,s){let i=e[r];if(!this._isShallow){let c=rr(i);if(!je(n)&&!rr(n)&&(i=R(i),n=R(n)),!q(e)&&Te(i)&&!Te(n))return c?!1:(i.value=n,!0)}let o=q(e)&&Sl(r)?Number(r)<e.length:Q(e,r),a=Reflect.set(e,r,n,Te(e)?e:s);return e===R(s)&&(o?xr(n,i)&&Qt(e,"set",r,n,i):Qt(e,"add",r,n)),a}deleteProperty(e,r){let n=Q(e,r),s=e[r],i=Reflect.deleteProperty(e,r);return i&&n&&Qt(e,"delete",r,void 0,s),i}has(e,r){let n=Reflect.has(e,r);return(!Qn(r)||!Dg.has(r))&&le(e,"has",r),n}ownKeys(e){return le(e,"iterate",q(e)?"length":Cr),Reflect.ownKeys(e)}},Ai=class extends Oi{constructor(e=!1){super(!0,e)}set(e,r){return process.env.NODE_ENV!=="production"&&tr(`Set operation on key "${String(r)}" failed: target is readonly.`,e),!0}deleteProperty(e,r){return process.env.NODE_ENV!=="production"&&tr(`Delete operation on key "${String(r)}" failed: target is readonly.`,e),!0}},P0=new vl,M0=new Ai,j0=new Ai(!0),_l=t=>t,yi=t=>Reflect.getPrototypeOf(t);function V0(t,e,r){return function(...n){let s=this.__v_raw,i=R(s),o=Xr(i),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,h=s[t](...n),d=r?_l:e?bl:Me;return!e&&le(i,"iterate",c?gl:Cr),{next(){let{value:l,done:u}=h.next();return u?{value:l,done:u}:{value:a?[d(l[0]),d(l[1])]:d(l),done:u}},[Symbol.iterator](){return this}}}}function wi(t){return function(...e){if(process.env.NODE_ENV!=="production"){let r=e[0]?`on key "${e[0]}" `:"";tr(`${E0(t)} operation ${r}failed: target is readonly.`,R(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function F0(t,e){let r={get(n){let s=this.__v_raw,i=R(s),o=R(n);t||(xr(n,o)&&le(i,"get",n),le(i,"get",o));let{has:a}=yi(i),c=e?_l:t?bl:Me;if(a.call(i,n))return c(s.get(n));if(a.call(i,o))return c(s.get(o));s!==i&&s.get(n)},get size(){let n=this.__v_raw;return!t&&le(R(n),"iterate",Cr),Reflect.get(n,"size",n)},has(n){let s=this.__v_raw,i=R(s),o=R(n);return t||(xr(n,o)&&le(i,"has",n),le(i,"has",o)),n===o?s.has(n):s.has(n)||s.has(o)},forEach(n,s){let i=this,o=i.__v_raw,a=R(o),c=e?_l:t?bl:Me;return!t&&le(a,"iterate",Cr),o.forEach((h,d)=>n.call(s,c(h),c(d),i))}};return Ve(r,t?{add:wi("add"),set:wi("set"),delete:wi("delete"),clear:wi("clear")}:{add(n){!e&&!je(n)&&!rr(n)&&(n=R(n));let s=R(this);return yi(s).has.call(s,n)||(s.add(n),Qt(s,"add",n,n)),this},set(n,s){!e&&!je(s)&&!rr(s)&&(s=R(s));let i=R(this),{has:o,get:a}=yi(i),c=o.call(i,n);c?process.env.NODE_ENV!=="production"&&bg(i,o,n):(n=R(n),c=o.call(i,n));let h=a.call(i,n);return i.set(n,s),c?xr(s,h)&&Qt(i,"set",n,s,h):Qt(i,"add",n,s),this},delete(n){let s=R(this),{has:i,get:o}=yi(s),a=i.call(s,n);a?process.env.NODE_ENV!=="production"&&bg(s,i,n):(n=R(n),a=i.call(s,n));let c=o?o.call(s,n):void 0,h=s.delete(n);return a&&Qt(s,"delete",n,void 0,c),h},clear(){let n=R(this),s=n.size!==0,i=process.env.NODE_ENV!=="production"?Xr(n)?new Map(n):new Set(n):void 0,o=n.clear();return s&&Qt(n,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=V0(n,t,e)}),r}function Rl(t,e){let r=F0(t,e);return(n,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(Q(r,s)&&s in n?r:n,s,i)}var L0={get:Rl(!1,!1)},q0={get:Rl(!0,!1)},H0={get:Rl(!0,!0)};function bg(t,e,r){let n=R(r);if(n!==r&&e.call(t,n)){let s=Og(t);tr(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var $g=new WeakMap,G0=new WeakMap,Ig=new WeakMap,Pg=new WeakMap;function U0(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function W0(t){return t.__v_skip||!Object.isExtensible(t)?0:U0(Og(t))}function Mg(t){return rr(t)?t:kl(t,!1,P0,L0,$g)}function jg(t){return kl(t,!0,M0,q0,Ig)}function Ei(t){return kl(t,!0,j0,H0,Pg)}function kl(t,e,r,n,s){if(!Ae(t))return process.env.NODE_ENV!=="production"&&tr(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=W0(t);if(o===0)return t;let a=new Proxy(t,o===2?n:r);return s.set(t,a),a}function Zr(t){return rr(t)?Zr(t.__v_raw):!!(t&&t.__v_isReactive)}function rr(t){return!!(t&&t.__v_isReadonly)}function je(t){return!!(t&&t.__v_isShallow)}function Ti(t){return t?!!t.__v_raw:!1}function R(t){let e=t&&t.__v_raw;return e?R(e):t}function B0(t){return!Q(t,"__v_skip")&&Object.isExtensible(t)&&S0(t,"__v_skip",!0),t}var Me=t=>Ae(t)?Mg(t):t,bl=t=>Ae(t)?jg(t):t;function Te(t){return t?t.__v_isRef===!0:!1}function K0(t){return Te(t)?t.value:t}var z0={get:(t,e,r)=>e==="__v_raw"?t:K0(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let s=t[e];return Te(s)&&!Te(r)?(s.value=r,!0):Reflect.set(t,e,r,n)}};function Y0(t){return Zr(t)?t:new Proxy(t,z0)}var Si={},Ni=new WeakMap,Sr;function J0(t,e=!1,r=Sr){if(r){let n=Ni.get(r);n||Ni.set(r,n=[]),n.push(t)}else process.env.NODE_ENV!=="production"&&!e&&tr("onWatcherCleanup() was called when there was no active watcher to associate with.")}function X0(t,e,r=Ze){let{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=r,h=g=>{(r.onWarn||tr)("Invalid watch source: ",g,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=g=>s?g:je(g)||s===!1||s===0?er(g,1):er(g),l,u,p,f,m=!1,_=!1;if(Te(t)?(u=()=>t.value,m=je(t)):Zr(t)?(u=()=>d(t),m=!0):q(t)?(_=!0,m=t.some(g=>Zr(g)||je(g)),u=()=>t.map(g=>{if(Te(g))return g.value;if(Zr(g))return d(g);if(se(g))return c?c(g,2):g();process.env.NODE_ENV!=="production"&&h(g)})):se(t)?e?u=c?()=>c(t,2):t:u=()=>{if(p){ji();try{p()}finally{Vi()}}let g=Sr;Sr=l;try{return c?c(t,3,[f]):t(f)}finally{Sr=g}}:(u=Jr,process.env.NODE_ENV!=="production"&&h(t)),e&&s){let g=u,x=s===!0?1/0:s;u=()=>er(g(),x)}let v=()=>{l.stop()};if(i&&e){let g=e;e=(...x)=>{g(...x),v()}}let S=_?new Array(t.length).fill(Si):Si,$=g=>{if(!(!(l.flags&1)||!l.dirty&&!g))if(e){let x=l.run();if(s||m||(_?x.some((K,te)=>xr(K,S[te])):xr(x,S))){p&&p();let K=Sr;Sr=l;try{let te=[x,S===Si?void 0:_&&S[0]===Si?[]:S,f];c?c(e,3,te):e(...te),S=x}finally{Sr=K}}}else l.run()};return a&&a($),l=new hl(u),l.scheduler=o?()=>o($,!1):$,f=g=>J0(g,!1,l),p=l.onStop=()=>{let g=Ni.get(l);if(g){if(c)c(g,4);else for(let x of g)x();Ni.delete(l)}},process.env.NODE_ENV!=="production"&&(l.onTrack=r.onTrack,l.onTrigger=r.onTrigger),e?n?$(!0):S=l.run():o?o($.bind(null,!0),!0):l.run(),v.pause=l.pause.bind(l),v.resume=l.resume.bind(l),v.stop=v,v}function er(t,e=1/0,r){if(e<=0||!Ae(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Te(t))er(t.value,e,r);else if(q(t))for(let n=0;n<t.length;n++)er(t[n],e,r);else if(v0(t)||Xr(t))t.forEach(n=>{er(n,e,r)});else if(y0(t)){for(let n in t)er(t[n],e,r);for(let n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&er(t[n],e,r)}return t}var Or=[];function Z0(t){Or.push(t)}function Q0(){Or.pop()}var al=!1;function ne(t,...e){if(al)return;al=!0,ji();let r=Or.length?Or[Or.length-1].component:null,n=r&&r.appContext.config.warnHandler,s=eO();if(n)Fi(n,r,11,[t+e.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),r&&r.proxy,s.map(({vnode:i})=>`at <${Qg(r,i.type)}>`).join(`
|
|
200
|
+
`;Xt.default.writeFileSync(Ci.default.join(t,"src","views","index.ts"),o,{encoding:"utf-8"})}var fr=W(require("fs"),1),ms=W(require("path"),1);var Eo=require("child_process");function Ag(t){let e=t;return!!(e&&typeof e.actor=="function"&&typeof e.startWorkflow=="function"&&typeof e.defineUserStory=="function"&&typeof e._getContext=="function"&&typeof e.desc=="function"&&typeof e.info=="object"&&typeof e.command=="function"&&typeof e.facadeCmd=="function"&&typeof e.agg=="function"&&typeof e.event=="function"&&typeof e.system=="function"&&typeof e.policy=="function"&&typeof e.service=="function"&&typeof e.readModel=="function")}function y0(t){let e=Object.create(null);for(let n of t.split(","))e[n]=1;return n=>n in e}var et=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);var Xn=()=>{},w0=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Fe=Object.assign,C0=Object.prototype.hasOwnProperty,ee=(t,e)=>C0.call(t,e),G=Array.isArray,Zn=t=>Vi(t)==="[object Map]",E0=t=>Vi(t)==="[object Set]",ie=t=>typeof t=="function",pt=t=>typeof t=="string",ns=t=>typeof t=="symbol",Te=t=>t!==null&&typeof t=="object",S0=t=>(Te(t)||ie(t))&&ie(t.then)&&ie(t.catch),x0=Object.prototype.toString,Vi=t=>x0.call(t),Tg=t=>Vi(t).slice(8,-1),O0=t=>Vi(t)==="[object Object]",xc=t=>pt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,A0=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},T0=A0(t=>t.charAt(0).toUpperCase()+t.slice(1)),xn=(t,e)=>!Object.is(t,e),N0=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},_g,Fi=()=>_g||(_g=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oc(t){if(G(t)){let e={};for(let n=0;n<t.length;n++){let r=t[n],s=pt(r)?$0(r):Oc(r);if(s)for(let i in s)e[i]=s[i]}return e}else if(pt(t)||Te(t))return t}var k0=/;(?![^(]*\))/g,R0=/:([^]+)/,D0=/\/\*[^]*?\*\//g;function $0(t){let e={};return t.replace(D0,"").split(k0).forEach(n=>{if(n){let r=n.split(R0);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ac(t){let e="";if(pt(t))e=t;else if(G(t))for(let n=0;n<t.length;n++){let r=Ac(t[n]);r&&(e+=r+" ")}else if(Te(t))for(let n in t)t[n]&&(e+=n+" ");return e.trim()}function tn(t,...e){}var F,oc=new WeakSet,pc=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,oc.has(this)&&(oc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||I0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,bg(this),kg(this);let e=F,n=tt;F=this,tt=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&F!==this&&tn("Active effect was not restored correctly - this is likely a Vue internal bug."),Rg(this),F=e,tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)kc(e);this.deps=this.depsTail=void 0,bg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?oc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fc(this)&&this.run()}get dirty(){return fc(this)}},Ng=0,Jr,Xr;function I0(t,e=!1){if(t.flags|=8,e){t.next=Xr,Xr=t;return}t.next=Jr,Jr=t}function Tc(){Ng++}function Nc(){if(--Ng>0)return;if(Xr){let e=Xr;for(Xr=void 0;e;){let n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Jr;){let e=Jr;for(Jr=void 0;e;){let n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function kg(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Rg(t){let e,n=t.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),kc(r),M0(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function fc(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(P0(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function P0(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ti))return;t.globalVersion=Ti;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!fc(t)){t.flags&=-3;return}let n=F,r=tt;F=t,tt=!0;try{kg(t);let s=t.fn(t._value);(e.version===0||xn(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{F=n,tt=r,Rg(t),t.flags&=-3}}function kc(t,e=!1){let{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===t&&(n.subsHead=s),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)kc(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function M0(t){let{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}var tt=!0,Dg=[];function Li(){Dg.push(tt),tt=!1}function qi(){let t=Dg.pop();tt=t===void 0?!0:t}function bg(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let n=F;F=void 0;try{e()}finally{F=n}}}var Ti=0,mc=class{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},gc=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){if(!F||!tt||F===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==F)n=this.activeLink=new mc(F,this),F.deps?(n.prevDep=F.depsTail,F.depsTail.nextDep=n,F.depsTail=n):F.deps=F.depsTail=n,$g(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=F.depsTail,n.nextDep=void 0,F.depsTail.nextDep=n,F.depsTail=n,F.deps===n&&(F.deps=r)}return process.env.NODE_ENV!=="production"&&F.onTrack&&F.onTrack(Fe({effect:F},e)),n}trigger(e){this.version++,Ti++,this.notify(e)}notify(e){Tc();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Fe({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nc()}}};function $g(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)$g(r)}let n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),process.env.NODE_ENV!=="production"&&t.dep.subsHead===void 0&&(t.dep.subsHead=t),t.dep.subs=t}}var vc=new WeakMap,On=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),_c=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Qr=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function de(t,e,n){if(tt&&F){let r=vc.get(t);r||vc.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new gc),s.map=r,s.key=n),process.env.NODE_ENV!=="production"?s.track({target:t,type:e,key:n}):s.track()}}function Qt(t,e,n,r,s,i){let o=vc.get(t);if(!o){Ti++;return}let a=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):l.trigger())};if(Tc(),e==="clear")o.forEach(a);else{let l=G(t),u=l&&xc(n);if(l&&n==="length"){let h=Number(r);o.forEach((c,d)=>{(d==="length"||d===Qr||!ns(d)&&d>=h)&&a(c)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Qr)),e){case"add":l?u&&a(o.get("length")):(a(o.get(On)),Zn(t)&&a(o.get(_c)));break;case"delete":l||(a(o.get(On)),Zn(t)&&a(o.get(_c)));break;case"set":Zn(t)&&a(o.get(On));break}}Nc()}function zn(t){let e=D(t);return e===t?e:(de(e,"iterate",Qr),Ve(t)?e:e.map(je))}function Rc(t){return de(t=D(t),"iterate",Qr),t}var j0={__proto__:null,[Symbol.iterator](){return ac(this,Symbol.iterator,je)},concat(...t){return zn(this).concat(...t.map(e=>G(e)?zn(e):e))},entries(){return ac(this,"entries",t=>(t[1]=je(t[1]),t))},every(t,e){return Rt(this,"every",t,e,void 0,arguments)},filter(t,e){return Rt(this,"filter",t,e,n=>n.map(je),arguments)},find(t,e){return Rt(this,"find",t,e,je,arguments)},findIndex(t,e){return Rt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Rt(this,"findLast",t,e,je,arguments)},findLastIndex(t,e){return Rt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Rt(this,"forEach",t,e,void 0,arguments)},includes(...t){return lc(this,"includes",t)},indexOf(...t){return lc(this,"indexOf",t)},join(t){return zn(this).join(t)},lastIndexOf(...t){return lc(this,"lastIndexOf",t)},map(t,e){return Rt(this,"map",t,e,void 0,arguments)},pop(){return zr(this,"pop")},push(...t){return zr(this,"push",t)},reduce(t,...e){return yg(this,"reduce",t,e)},reduceRight(t,...e){return yg(this,"reduceRight",t,e)},shift(){return zr(this,"shift")},some(t,e){return Rt(this,"some",t,e,void 0,arguments)},splice(...t){return zr(this,"splice",t)},toReversed(){return zn(this).toReversed()},toSorted(t){return zn(this).toSorted(t)},toSpliced(...t){return zn(this).toSpliced(...t)},unshift(...t){return zr(this,"unshift",t)},values(){return ac(this,"values",je)}};function ac(t,e,n){let r=Rc(t),s=r[e]();return r!==t&&!Ve(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=n(i.value)),i}),s}var V0=Array.prototype;function Rt(t,e,n,r,s,i){let o=Rc(t),a=o!==t&&!Ve(t),l=o[e];if(l!==V0[e]){let c=l.apply(t,i);return a?je(c):c}let u=n;o!==t&&(a?u=function(c,d){return n.call(this,je(c),d,t)}:n.length>2&&(u=function(c,d){return n.call(this,c,d,t)}));let h=l.call(o,u,r);return a&&s?s(h):h}function yg(t,e,n,r){let s=Rc(t),i=n;return s!==t&&(Ve(t)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,t)}):i=function(o,a,l){return n.call(this,o,je(a),l,t)}),s[e](i,...r)}function lc(t,e,n){let r=D(t);de(r,"iterate",Qr);let s=r[e](...n);return(s===-1||s===!1)&&Ri(n[0])?(n[0]=D(n[0]),r[e](...n)):s}function zr(t,e,n=[]){Li(),Tc();let r=D(t)[e].apply(t,n);return Nc(),qi(),r}var F0=y0("__proto__,__v_isRef,__isVue"),Ig=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ns));function L0(t){ns(t)||(t=String(t));let e=D(this);return de(e,"has",t),e.hasOwnProperty(t)}var Ni=class{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?jg:Mg:i?Y0:Pg).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=G(e);if(!s){let l;if(o&&(l=j0[n]))return l;if(n==="hasOwnProperty")return L0}let a=Reflect.get(e,n,Ne(e)?e:r);return(ns(n)?Ig.has(n):F0(n))||(s||de(e,"get",n),i)?a:Ne(a)?o&&xc(n)?a:a.value:Te(a)?s?Fg(a):Vg(a):a}},bc=class extends Ni{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];if(!this._isShallow){let l=nn(i);if(!Ve(r)&&!nn(r)&&(i=D(i),r=D(r)),!G(e)&&Ne(i)&&!Ne(r))return l?!1:(i.value=r,!0)}let o=G(e)&&xc(n)?Number(n)<e.length:ee(e,n),a=Reflect.set(e,n,r,Ne(e)?e:s);return e===D(s)&&(o?xn(r,i)&&Qt(e,"set",n,r,i):Qt(e,"add",n,r)),a}deleteProperty(e,n){let r=ee(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&Qt(e,"delete",n,void 0,s),i}has(e,n){let r=Reflect.has(e,n);return(!ns(n)||!Ig.has(n))&&de(e,"has",n),r}ownKeys(e){return de(e,"iterate",G(e)?"length":On),Reflect.ownKeys(e)}},ki=class extends Ni{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&tn(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&tn(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}},q0=new bc,H0=new ki,G0=new ki(!0),yc=t=>t,Ei=t=>Reflect.getPrototypeOf(t);function U0(t,e,n){return function(...r){let s=this.__v_raw,i=D(s),o=Zn(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),h=n?yc:e?wc:je;return!e&&de(i,"iterate",l?_c:On),{next(){let{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:a?[h(c[0]),h(c[1])]:h(c),done:d}},[Symbol.iterator](){return this}}}}function Si(t){return function(...e){if(process.env.NODE_ENV!=="production"){let n=e[0]?`on key "${e[0]}" `:"";tn(`${T0(t)} operation ${n}failed: target is readonly.`,D(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function W0(t,e){let n={get(r){let s=this.__v_raw,i=D(s),o=D(r);t||(xn(r,o)&&de(i,"get",r),de(i,"get",o));let{has:a}=Ei(i),l=e?yc:t?wc:je;if(a.call(i,r))return l(s.get(r));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(r)},get size(){let r=this.__v_raw;return!t&&de(D(r),"iterate",On),Reflect.get(r,"size",r)},has(r){let s=this.__v_raw,i=D(s),o=D(r);return t||(xn(r,o)&&de(i,"has",r),de(i,"has",o)),r===o?s.has(r):s.has(r)||s.has(o)},forEach(r,s){let i=this,o=i.__v_raw,a=D(o),l=e?yc:t?wc:je;return!t&&de(a,"iterate",On),o.forEach((u,h)=>r.call(s,l(u),l(h),i))}};return Fe(n,t?{add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear")}:{add(r){!e&&!Ve(r)&&!nn(r)&&(r=D(r));let s=D(this);return Ei(s).has.call(s,r)||(s.add(r),Qt(s,"add",r,r)),this},set(r,s){!e&&!Ve(s)&&!nn(s)&&(s=D(s));let i=D(this),{has:o,get:a}=Ei(i),l=o.call(i,r);l?process.env.NODE_ENV!=="production"&&wg(i,o,r):(r=D(r),l=o.call(i,r));let u=a.call(i,r);return i.set(r,s),l?xn(s,u)&&Qt(i,"set",r,s,u):Qt(i,"add",r,s),this},delete(r){let s=D(this),{has:i,get:o}=Ei(s),a=i.call(s,r);a?process.env.NODE_ENV!=="production"&&wg(s,i,r):(r=D(r),a=i.call(s,r));let l=o?o.call(s,r):void 0,u=s.delete(r);return a&&Qt(s,"delete",r,void 0,l),u},clear(){let r=D(this),s=r.size!==0,i=process.env.NODE_ENV!=="production"?Zn(r)?new Map(r):new Set(r):void 0,o=r.clear();return s&&Qt(r,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=U0(r,t,e)}),n}function Dc(t,e){let n=W0(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(ee(n,s)&&s in r?n:r,s,i)}var B0={get:Dc(!1,!1)},K0={get:Dc(!0,!1)},z0={get:Dc(!0,!0)};function wg(t,e,n){let r=D(n);if(r!==n&&e.call(t,r)){let s=Tg(t);tn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Pg=new WeakMap,Y0=new WeakMap,Mg=new WeakMap,jg=new WeakMap;function J0(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function X0(t){return t.__v_skip||!Object.isExtensible(t)?0:J0(Tg(t))}function Vg(t){return nn(t)?t:$c(t,!1,q0,B0,Pg)}function Fg(t){return $c(t,!0,H0,K0,Mg)}function xi(t){return $c(t,!0,G0,z0,jg)}function $c(t,e,n,r,s){if(!Te(t))return process.env.NODE_ENV!=="production"&&tn(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=X0(t);if(o===0)return t;let a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function Qn(t){return nn(t)?Qn(t.__v_raw):!!(t&&t.__v_isReactive)}function nn(t){return!!(t&&t.__v_isReadonly)}function Ve(t){return!!(t&&t.__v_isShallow)}function Ri(t){return t?!!t.__v_raw:!1}function D(t){let e=t&&t.__v_raw;return e?D(e):t}function Z0(t){return!ee(t,"__v_skip")&&Object.isExtensible(t)&&N0(t,"__v_skip",!0),t}var je=t=>Te(t)?Vg(t):t,wc=t=>Te(t)?Fg(t):t;function Ne(t){return t?t.__v_isRef===!0:!1}function Q0(t){return Ne(t)?t.value:t}var eO={get:(t,e,n)=>e==="__v_raw"?t:Q0(Reflect.get(t,e,n)),set:(t,e,n,r)=>{let s=t[e];return Ne(s)&&!Ne(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function tO(t){return Qn(t)?t:new Proxy(t,eO)}var Oi={},Di=new WeakMap,Sn;function nO(t,e=!1,n=Sn){if(n){let r=Di.get(n);r||Di.set(n,r=[]),r.push(t)}else process.env.NODE_ENV!=="production"&&!e&&tn("onWatcherCleanup() was called when there was no active watcher to associate with.")}function rO(t,e,n=et){let{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>{(n.onWarn||tn)("Invalid watch source: ",_,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=_=>s?_:Ve(_)||s===!1||s===0?en(_,1):en(_),c,d,p,f,g=!1,v=!1;if(Ne(t)?(d=()=>t.value,g=Ve(t)):Qn(t)?(d=()=>h(t),g=!0):G(t)?(v=!0,g=t.some(_=>Qn(_)||Ve(_)),d=()=>t.map(_=>{if(Ne(_))return _.value;if(Qn(_))return h(_);if(ie(_))return l?l(_,2):_();process.env.NODE_ENV!=="production"&&u(_)})):ie(t)?e?d=l?()=>l(t,2):t:d=()=>{if(p){Li();try{p()}finally{qi()}}let _=Sn;Sn=c;try{return l?l(t,3,[f]):t(f)}finally{Sn=_}}:(d=Xn,process.env.NODE_ENV!=="production"&&u(t)),e&&s){let _=d,S=s===!0?1/0:s;d=()=>en(_(),S)}let m=()=>{c.stop()};if(i&&e){let _=e;e=(...S)=>{_(...S),m()}}let E=v?new Array(t.length).fill(Oi):Oi,N=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(e){let S=c.run();if(s||g||(v?S.some((Y,ne)=>xn(Y,E[ne])):xn(S,E))){p&&p();let Y=Sn;Sn=c;try{let ne=[S,E===Oi?void 0:v&&E[0]===Oi?[]:E,f];l?l(e,3,ne):e(...ne),E=S}finally{Sn=Y}}}else c.run()};return a&&a(N),c=new pc(d),c.scheduler=o?()=>o(N,!1):N,f=_=>nO(_,!1,c),p=c.onStop=()=>{let _=Di.get(c);if(_){if(l)l(_,4);else for(let S of _)S();Di.delete(c)}},process.env.NODE_ENV!=="production"&&(c.onTrack=n.onTrack,c.onTrigger=n.onTrigger),e?r?N(!0):E=c.run():o?o(N.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function en(t,e=1/0,n){if(e<=0||!Te(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Ne(t))en(t.value,e,n);else if(G(t))for(let r=0;r<t.length;r++)en(t[r],e,n);else if(E0(t)||Zn(t))t.forEach(r=>{en(r,e,n)});else if(O0(t)){for(let r in t)en(t[r],e,n);for(let r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&en(t[r],e,n)}return t}var An=[];function sO(t){An.push(t)}function iO(){An.pop()}var cc=!1;function se(t,...e){if(cc)return;cc=!0,Li();let n=An.length?An[An.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=oO();if(r)Hi(r,n,11,[t+e.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${tv(n,i.type)}>`).join(`
|
|
201
201
|
`),s]);else{let i=[`[Vue warn]: ${t}`,...e];s.length&&i.push(`
|
|
202
|
-
`,...
|
|
203
|
-
`],...rO(r))}),e}function rO({vnode:t,recurseCount:e}){let r=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,s=` at <${Qg(t.component,t.type,n)}`,i=">"+r;return t.props?[s,...nO(t.props),i]:[s+i]}function nO(t){let e=[],r=Object.keys(t);return r.slice(0,3).forEach(n=>{e.push(...Vg(n,t[n]))}),r.length>3&&e.push(" ..."),e}function Vg(t,e,r){return dt(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?r?e:[`${t}=${e}`]:Te(e)?(e=Vg(t,R(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):se(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=R(e),r?e:[`${t}=`,e])}var Fg={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 Fi(t,e,r,n){try{return n?t(...n):t()}catch(s){Dl(s,e,r)}}function Lg(t,e,r,n){if(se(t)){let s=Fi(t,e,r,n);return s&&_0(s)&&s.catch(i=>{Dl(i,e,r)}),s}if(q(t)){let s=[];for(let i=0;i<t.length;i++)s.push(Lg(t[i],e,r,n));return s}else process.env.NODE_ENV!=="production"&&ne(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function Dl(t,e,r,n=!0){let s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Ze;if(e){let a=e.parent,c=e.proxy,h=process.env.NODE_ENV!=="production"?Fg[r]:`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){let d=a.ec;if(d){for(let l=0;l<d.length;l++)if(d[l](t,c,h)===!1)return}a=a.parent}if(i){ji(),Fi(i,null,10,[t,c,h]),Vi();return}}sO(t,r,s,n,o)}function sO(t,e,r,n=!0,s=!1){if(process.env.NODE_ENV!=="production"){let i=Fg[e];if(r&&Z0(r),ne(`Unhandled error${i?` during execution of ${i}`:""}`),r&&Q0(),n)throw t}else if(s)throw t}var We=[],kt=-1,Qr=[],Zt=null,zr=0,qg=Promise.resolve(),Ri=null,iO=100;function oO(t){let e=Ri||qg;return t?e.then(this?t.bind(this):t):e}function aO(t){let e=kt+1,r=We.length;for(;e<r;){let n=e+r>>>1,s=We[n],i=Xn(s);i<t||i===t&&s.flags&2?e=n+1:r=n}return e}function $l(t){if(!(t.flags&1)){let e=Xn(t),r=We[We.length-1];!r||!(t.flags&2)&&e>=Xn(r)?We.push(t):We.splice(aO(e),0,t),t.flags|=1,Hg()}}function Hg(){Ri||(Ri=qg.then(Ug))}function Gg(t){q(t)?Qr.push(...t):Zt&&t.id===-1?Zt.splice(zr+1,0,t):t.flags&1||(Qr.push(t),t.flags|=1),Hg()}function cO(t){if(Qr.length){let e=[...new Set(Qr)].sort((r,n)=>Xn(r)-Xn(n));if(Qr.length=0,Zt){Zt.push(...e);return}for(Zt=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),zr=0;zr<Zt.length;zr++){let r=Zt[zr];process.env.NODE_ENV!=="production"&&Wg(t,r)||(r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2)}Zt=null,zr=0}}var Xn=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Ug(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);let e=process.env.NODE_ENV!=="production"?r=>Wg(t,r):Jr;try{for(kt=0;kt<We.length;kt++){let r=We[kt];if(r&&!(r.flags&8)){if(process.env.NODE_ENV!=="production"&&e(r))continue;r.flags&4&&(r.flags&=-2),Fi(r,r.i,r.i?15:14),r.flags&4||(r.flags&=-2)}}}finally{for(;kt<We.length;kt++){let r=We[kt];r&&(r.flags&=-2)}kt=-1,We.length=0,cO(t),Ri=null,(We.length||Qr.length)&&Ug(t)}}function Wg(t,e){let r=t.get(e)||0;if(r>iO){let n=e.i,s=n&&Zg(n.type);return Dl(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,r+1),!1}var cl=new Map;process.env.NODE_ENV!=="production"&&(Mi().__VUE_HMR_RUNTIME__={createRecord:ll(lO),rerender:ll(uO),reload:ll(hO)});var ki=new Map;function lO(t,e){return ki.has(t)?!1:(ki.set(t,{initialDef:Di(e),instances:new Set}),!0)}function Di(t){return ev(t)?t.__vccOpts:t}function uO(t,e){let r=ki.get(t);r&&(r.initialDef.render=e,[...r.instances].forEach(n=>{e&&(n.render=e,Di(n.type).render=e),n.renderCache=[],n.update()}))}function hO(t,e){let r=ki.get(t);if(!r)return;e=Di(e),yg(r.initialDef,e);let n=[...r.instances];for(let s=0;s<n.length;s++){let i=n[s],o=Di(i.type),a=cl.get(o);a||(o!==r.initialDef&&yg(o,e),cl.set(o,a=new Set)),a.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(a.add(i),i.ceReload(e.styles),a.delete(i)):i.parent?$l(()=>{i.parent.update(),a.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"&&window.location.reload(),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}Gg(()=>{cl.clear()})}function yg(t,e){Ve(t,e);for(let r in t)r!=="__file"&&!(r in e)&&delete t[r]}function ll(t){return(e,r)=>{try{return t(e,r)}catch{}}}var Zn=null,dO=null,pO=t=>t.__isTeleport;function Bg(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Bg(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}Mi().requestIdleCallback;Mi().cancelIdleCallback;var fO=Symbol.for("v-ndc"),yl=t=>t?HO(t)?GO(t):yl(t.parent):null,Yn=Ve(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>process.env.NODE_ENV!=="production"?Ei(t.props):t.props,$attrs:t=>process.env.NODE_ENV!=="production"?Ei(t.attrs):t.attrs,$slots:t=>process.env.NODE_ENV!=="production"?Ei(t.slots):t.slots,$refs:t=>process.env.NODE_ENV!=="production"?Ei(t.refs):t.refs,$parent:t=>yl(t.parent),$root:t=>yl(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?vO(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{$l(t.update)}),$nextTick:t=>t.n||(t.n=oO.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?TO.bind(t):Jr}),ul=(t,e)=>t!==Ze&&!t.__isScriptSetup&&Q(t,e),mO={get({_:t},e){if(e==="__v_skip")return!0;let{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:c}=t;if(process.env.NODE_ENV!=="production"&&e==="__isVue")return!0;let h;if(e[0]!=="$"){let p=o[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return s[e];case 4:return r[e];case 3:return i[e]}else{if(ul(n,e))return o[e]=1,n[e];if(s!==Ze&&Q(s,e))return o[e]=2,s[e];if((h=t.propsOptions[0])&&Q(h,e))return o[e]=3,i[e];if(r!==Ze&&Q(r,e))return o[e]=4,r[e];(!__VUE_OPTIONS_API__||gO)&&(o[e]=0)}}let d=Yn[e],l,u;if(d)return e==="$attrs"?(le(t.attrs,"get",""),process.env.NODE_ENV):process.env.NODE_ENV!=="production"&&e==="$slots"&&le(t,"get",e),d(t);if((l=a.__cssModules)&&(l=l[e]))return l;if(r!==Ze&&Q(r,e))return o[e]=4,r[e];if(u=c.config.globalProperties,Q(u,e))return u[e];process.env.NODE_ENV},set({_:t},e,r){let{data:n,setupState:s,ctx:i}=t;return ul(s,e)?(s[e]=r,!0):process.env.NODE_ENV!=="production"&&s.__isScriptSetup&&Q(s,e)?(ne(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):n!==Ze&&Q(n,e)?(n[e]=r,!0):Q(t.props,e)?(process.env.NODE_ENV!=="production"&&ne(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(process.env.NODE_ENV!=="production"&&ne(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(i,e,{enumerable:!0,configurable:!0,value:r}):i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:s,propsOptions:i}},o){let a;return!!r[o]||t!==Ze&&Q(t,o)||ul(e,o)||(a=i[0])&&Q(a,o)||Q(n,o)||Q(Yn,o)||Q(s.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Q(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};process.env.NODE_ENV!=="production"&&(mO.ownKeys=t=>(ne("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function wg(t){return q(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}var gO=!0;function vO(t){let e=t.type,{mixins:r,extends:n}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e),c;return a?c=a:!s.length&&!r&&!n?c=e:(c={},s.length&&s.forEach(h=>$i(c,h,o,!0)),$i(c,e,o)),Ae(e)&&i.set(e,c),c}function $i(t,e,r,n=!1){let{mixins:s,extends:i}=e;i&&$i(t,i,r,!0),s&&s.forEach(o=>$i(t,o,r,!0));for(let o in e)if(n&&o==="expose")process.env.NODE_ENV!=="production"&&ne('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{let a=_O[o]||r&&r[o];t[o]=a?a(t[o],e[o]):e[o]}return t}var _O={data:Eg,props:xg,emits:xg,methods:Bn,computed:Bn,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:Bn,directives:Bn,watch:yO,provide:Eg,inject:bO};function Eg(t,e){return e?t?function(){return Ve(se(t)?t.call(this,this):t,se(e)?e.call(this,this):e)}:e:t}function bO(t,e){return Bn(Sg(t),Sg(e))}function Sg(t){if(q(t)){let e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function be(t,e){return t?[...new Set([].concat(t,e))]:e}function Bn(t,e){return t?Ve(Object.create(null),t,e):e}function xg(t,e){return t?q(t)&&q(e)?[...new Set([...t,...e])]:Ve(Object.create(null),wg(t),wg(e??{})):e}function yO(t,e){if(!t)return e;if(!e)return t;let r=Ve(Object.create(null),t);for(let n in e)r[n]=be(t[n],e[n]);return r}var wO=null;function EO(t,e,r=!1){let n=Li||Zn;if(n||wO){let s=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return r&&se(e)?e.call(n&&n.proxy):e;process.env.NODE_ENV!=="production"&&ne(`injection "${String(t)}" not found.`)}else process.env.NODE_ENV!=="production"&&ne("inject() can only be used inside setup() or functional components.")}var SO={},Kg=t=>Object.getPrototypeOf(t)===SO,xO=kO,CO=Symbol.for("v-scx"),OO=()=>{{let t=EO(CO);return t||process.env.NODE_ENV!=="production"&&ne("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function AO(t,e,r=Ze){let{immediate:n,deep:s,flush:i,once:o}=r;process.env.NODE_ENV!=="production"&&!e&&(n!==void 0&&ne('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&ne('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&ne('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));let a=Ve({},r);process.env.NODE_ENV!=="production"&&(a.onWarn=ne);let c=e&&n||!e&&i!=="post",h;if(El){if(i==="sync"){let p=OO();h=p.__watcherHandles||(p.__watcherHandles=[])}else if(!c){let p=()=>{};return p.stop=Jr,p.resume=Jr,p.pause=Jr,p}}let d=Li;a.call=(p,f,m)=>Lg(p,d,f,m);let l=!1;i==="post"?a.scheduler=p=>{xO(p,d&&d.suspense)}:i!=="sync"&&(l=!0,a.scheduler=(p,f)=>{f?p():$l(p)}),a.augmentJob=p=>{e&&(p.flags|=4),l&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};let u=X0(t,e,a);return El&&(h?h.push(u):c&&u()),u}function TO(t,e,r){let n=this.proxy,s=dt(t)?t.includes(".")?NO(n,t):()=>n[t]:t.bind(n,n),i;se(e)?i=e:(i=e.handler,r=e);let o=qO(this),a=AO(s,i.bind(n),r);return o(),a}function NO(t,e){let r=e.split(".");return()=>{let n=t;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}var RO=t=>t.__isSuspense;function kO(t,e){e&&e.pendingBranch?q(t)?e.effects.push(...t):e.effects.push(t):Gg(t)}var zg=Symbol.for("v-fgt"),DO=Symbol.for("v-txt"),$O=Symbol.for("v-cmt"),Yr=null;function IO(t){return t?t.__v_isVNode===!0:!1}var PO=(...t)=>Jg(...t),Yg=({key:t})=>t??null,xi=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?dt(t)||Te(t)||se(t)?{i:Zn,r:t,k:e,f:!!r}:t:null);function MO(t,e=null,r=null,n=0,s=null,i=t===zg?0:1,o=!1,a=!1){let c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Yg(e),ref:e&&xi(e),scopeId:dO,slotScopeIds:null,children:r,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:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Zn};return a?(Il(c,r),i&128&&t.normalize(c)):r&&(c.shapeFlag|=dt(r)?8:16),process.env.NODE_ENV!=="production"&&c.key!==c.key&&ne("VNode created with invalid key (NaN). VNode type:",c.type),!o&&Yr&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Yr.push(c),c}var jO=process.env.NODE_ENV!=="production"?PO:Jg;function Jg(t,e=null,r=null,n=0,s=null,i=!1){if((!t||t===fO)&&(process.env.NODE_ENV!=="production"&&!t&&ne(`Invalid vnode type when creating vnode: ${t}.`),t=$O),IO(t)){let a=Ii(t,e,!0);return r&&Il(a,r),!i&&Yr&&(a.shapeFlag&6?Yr[Yr.indexOf(t)]=a:Yr.push(a)),a.patchFlag=-2,a}if(ev(t)&&(t=t.__vccOpts),e){e=VO(e);let{class:a,style:c}=e;a&&!dt(a)&&(e.class=Cl(a)),Ae(c)&&(Ti(c)&&!q(c)&&(c=Ve({},c)),e.style=xl(c))}let o=dt(t)?1:RO(t)?128:pO(t)?64:Ae(t)?4:se(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&Ti(t)&&(t=R(t),ne("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
204
|
-
Component that was made reactive: `,t)),MO(t,e,r,n,s,o,i,!0)}function VO(t){return t?Ti(t)||Kg(t)?Ve({},t):t:null}function Ii(t,e,r=!1,n=!1){let{props:s,ref:i,patchFlag:o,children:a,transition:c}=t,h=e?LO(s||{},e):s,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Yg(h),ref:e&&e.ref?r&&i?q(i)?i.concat(xi(e)):[i,xi(e)]:xi(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&q(a)?a.map(Xg):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==zg?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ii(t.ssContent),ssFallback:t.ssFallback&&Ii(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&n&&Bg(d,c.clone(d)),d}function Xg(t){let e=Ii(t);return q(t.children)&&(e.children=t.children.map(Xg)),e}function FO(t=" ",e=0){return jO(DO,null,t,e)}function Il(t,e){let r=0,{shapeFlag:n}=t;if(e==null)e=null;else if(q(e))r=16;else if(typeof e=="object")if(n&65){let s=e.default;s&&(s._c&&(s._d=!1),Il(t,s()),s._c&&(s._d=!0));return}else r=32,!e._&&!Kg(e)&&(e._ctx=Zn);else se(e)?(e={default:e,_ctx:Zn},r=32):(e=String(e),n&64?(r=16,e=[FO(e)]):r=8);t.children=e,t.shapeFlag|=r}function LO(...t){let e={};for(let r=0;r<t.length;r++){let n=t[r];for(let s in n)if(s==="class")e.class!==n.class&&(e.class=Cl([e.class,n.class]));else if(s==="style")e.style=xl([e.style,n.style]);else if(m0(s)){let i=e[s],o=n[s];o&&i!==o&&!(q(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=n[s])}return e}var Li=null,wl;{let t=Mi(),e=(r,n)=>{let s;return(s=t[r])||(s=t[r]=[]),s.push(n),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};wl=e("__VUE_INSTANCE_SETTERS__",r=>Li=r),e("__VUE_SSR_SETTERS__",r=>El=r)}var qO=t=>{let e=Li;return wl(t),t.scope.on(),()=>{t.scope.off(),wl(e)}};function HO(t){return t.vnode.shapeFlag&4}var El=!1;process.env.NODE_ENV;function GO(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Y0(B0(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Yn)return Yn[r](t)},has(e,r){return r in e||r in Yn}})):t.proxy}var UO=/(?:^|[-_])(\w)/g,WO=t=>t.replace(UO,e=>e.toUpperCase()).replace(/[-_]/g,"");function Zg(t,e=!0){return se(t)?t.displayName||t.name:t.name||e&&t.__name}function Qg(t,e,r=!1){let n=Zg(e);if(!n&&e.__file){let s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(n=s[1])}if(!n&&t&&t.parent){let s=i=>{for(let o in i)if(i[o]===e)return o};n=s(t.components||t.parent.type.components)||s(t.appContext.components)}return n?WO(n):r?"App":"Anonymous"}function ev(t){return se(t)&&"__vccOpts"in t}function BO(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;let t={style:"color:#3ba776"},e={style:"color:#1677ff"},r={style:"color:#f5222d"},n={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(l){return Ae(l)?l.__isVue?["div",t,"VueInstance"]:Te(l)?["div",{},["span",t,d(l)],"<",a("_value"in l?l._value:l),">"]:Zr(l)?["div",{},["span",t,je(l)?"ShallowReactive":"Reactive"],"<",a(l),`>${rr(l)?" (readonly)":""}`]:rr(l)?["div",{},["span",t,je(l)?"ShallowReadonly":"Readonly"],"<",a(l),">"]:null:null},hasBody(l){return l&&l.__isVue},body(l){if(l&&l.__isVue)return["div",{},...i(l.$)]}};function i(l){let u=[];l.type.props&&l.props&&u.push(o("props",R(l.props))),l.setupState!==Ze&&u.push(o("setup",l.setupState)),l.data!==Ze&&u.push(o("data",R(l.data)));let p=c(l,"computed");p&&u.push(o("computed",p));let f=c(l,"inject");return f&&u.push(o("injected",f)),u.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:l}]]),u}function o(l,u){return u=Ve({},u),Object.keys(u).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},l],["div",{style:"padding-left:1.25em"},...Object.keys(u).map(p=>["div",{},["span",n,p+": "],a(u[p],!1)])]]:["span",{}]}function a(l,u=!0){return typeof l=="number"?["span",e,l]:typeof l=="string"?["span",r,JSON.stringify(l)]:typeof l=="boolean"?["span",n,l]:Ae(l)?["object",{object:u?R(l):l}]:["span",r,String(l)]}function c(l,u){let p=l.type;if(se(p))return;let f={};for(let m in l.ctx)h(p,m,u)&&(f[m]=l.ctx[m]);return f}function h(l,u,p){let f=l[p];if(q(f)&&f.includes(u)||Ae(f)&&u in f||l.extends&&h(l.extends,u,p)||l.mixins&&l.mixins.some(m=>h(m,u,p)))return!0}function d(l){return je(l)?"ShallowRef":l.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;function KO(){BO()}process.env.NODE_ENV!=="production"&&KO();function zO(t){let e=Object.create(null);for(let r of t.split(","))e[r]=1;return r=>r in e}var et=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);var on=()=>{},YO=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Fe=Object.assign,JO=Object.prototype.hasOwnProperty,ee=(t,e)=>JO.call(t,e),G=Array.isArray,an=t=>ho(t)==="[object Map]",XO=t=>ho(t)==="[object Set]",re=t=>typeof t=="function",pt=t=>typeof t=="string",us=t=>typeof t=="symbol",Ne=t=>t!==null&&typeof t=="object",ZO=t=>(Ne(t)||re(t))&&re(t.then)&&re(t.catch),QO=Object.prototype.toString,ho=t=>QO.call(t),dv=t=>ho(t).slice(8,-1),eA=t=>ho(t)==="[object Object]",pu=t=>pt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,tA=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},rA=tA(t=>t.charAt(0).toUpperCase()+t.slice(1)),cr=(t,e)=>!Object.is(t,e),nA=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},tv,po=()=>tv||(tv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fu(t){if(G(t)){let e={};for(let r=0;r<t.length;r++){let n=t[r],s=pt(n)?aA(n):fu(n);if(s)for(let i in s)e[i]=s[i]}return e}else if(pt(t)||Ne(t))return t}var sA=/;(?![^(]*\))/g,iA=/:([^]+)/,oA=/\/\*[^]*?\*\//g;function aA(t){let e={};return t.replace(oA,"").split(sA).forEach(r=>{if(r){let n=r.split(iA);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function mu(t){let e="";if(pt(t))e=t;else if(G(t))for(let r=0;r<t.length;r++){let n=mu(t[r]);n&&(e+=n+" ")}else if(Ne(t))for(let r in t)t[r]&&(e+=r+" ");return e.trim()}function Mt(t,...e){}var I,Pl=new WeakSet,Bl=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pl.has(this)&&(Pl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fv(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,rv(this),mv(this);let e=I,r=tt;I=this,tt=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&I!==this&&Mt("Active effect was not restored correctly - this is likely a Vue internal bug."),gv(this),I=e,tt=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)_u(e);this.deps=this.depsTail=void 0,rv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kl(this)&&this.run()}get dirty(){return Kl(this)}},pv=0,rs,ns;function fv(t,e=!1){if(t.flags|=8,e){t.next=ns,ns=t;return}t.next=rs,rs=t}function gu(){pv++}function vu(){if(--pv>0)return;if(ns){let e=ns;for(ns=void 0;e;){let r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;rs;){let e=rs;for(rs=void 0;e;){let r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function mv(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function gv(t){let e,r=t.depsTail,n=r;for(;n;){let s=n.prevDep;n.version===-1?(n===r&&(r=s),_u(n),cA(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=e,t.depsTail=r}function Kl(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(vv(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function vv(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===is))return;t.globalVersion=is;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Kl(t)){t.flags&=-3;return}let r=I,n=tt;I=t,tt=!0;try{mv(t);let s=t.fn(t._value);(e.version===0||cr(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{I=r,tt=n,gv(t),t.flags&=-3}}function _u(t,e=!1){let{dep:r,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),process.env.NODE_ENV!=="production"&&r.subsHead===t&&(r.subsHead=s),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)_u(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function cA(t){let{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}var tt=!0,_v=[];function fo(){_v.push(tt),tt=!1}function mo(){let t=_v.pop();tt=t===void 0?!0:t}function rv(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let r=I;I=void 0;try{e()}finally{I=r}}}var is=0,zl=class{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},os=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){if(!I||!tt||I===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==I)r=this.activeLink=new zl(I,this),I.deps?(r.prevDep=I.depsTail,I.depsTail.nextDep=r,I.depsTail=r):I.deps=I.depsTail=r,bv(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=I.depsTail,r.nextDep=void 0,I.depsTail.nextDep=r,I.depsTail=r,I.deps===r&&(I.deps=n)}return process.env.NODE_ENV!=="production"&&I.onTrack&&I.onTrack(Fe({effect:I},e)),r}trigger(e){this.version++,is++,this.notify(e)}notify(e){gu();try{if(process.env.NODE_ENV!=="production")for(let r=this.subsHead;r;r=r.nextSub)r.sub.onTrigger&&!(r.sub.flags&8)&&r.sub.onTrigger(Fe({effect:r.sub},e));for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{vu()}}};function bv(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)bv(n)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),process.env.NODE_ENV!=="production"&&t.dep.subsHead===void 0&&(t.dep.subsHead=t),t.dep.subs=t}}var Yl=new WeakMap,Tr=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Jl=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),as=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function ue(t,e,r){if(tt&&I){let n=Yl.get(t);n||Yl.set(t,n=new Map);let s=n.get(r);s||(n.set(r,s=new os),s.map=n,s.key=r),process.env.NODE_ENV!=="production"?s.track({target:t,type:e,key:r}):s.track()}}function ir(t,e,r,n,s,i){let o=Yl.get(t);if(!o){is++;return}let a=c=>{c&&(process.env.NODE_ENV!=="production"?c.trigger({target:t,type:e,key:r,newValue:n,oldValue:s,oldTarget:i}):c.trigger())};if(gu(),e==="clear")o.forEach(a);else{let c=G(t),h=c&&pu(r);if(c&&r==="length"){let d=Number(n);o.forEach((l,u)=>{(u==="length"||u===as||!us(u)&&u>=d)&&a(l)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),h&&a(o.get(as)),e){case"add":c?h&&a(o.get("length")):(a(o.get(Tr)),an(t)&&a(o.get(Jl)));break;case"delete":c||(a(o.get(Tr)),an(t)&&a(o.get(Jl)));break;case"set":an(t)&&a(o.get(Tr));break}}vu()}function en(t){let e=N(t);return e===t?e:(ue(e,"iterate",as),Re(t)?e:e.map(Ee))}function bu(t){return ue(t=N(t),"iterate",as),t}var lA={__proto__:null,[Symbol.iterator](){return Ml(this,Symbol.iterator,Ee)},concat(...t){return en(this).concat(...t.map(e=>G(e)?en(e):e))},entries(){return Ml(this,"entries",t=>(t[1]=Ee(t[1]),t))},every(t,e){return Dt(this,"every",t,e,void 0,arguments)},filter(t,e){return Dt(this,"filter",t,e,r=>r.map(Ee),arguments)},find(t,e){return Dt(this,"find",t,e,Ee,arguments)},findIndex(t,e){return Dt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Dt(this,"findLast",t,e,Ee,arguments)},findLastIndex(t,e){return Dt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Dt(this,"forEach",t,e,void 0,arguments)},includes(...t){return jl(this,"includes",t)},indexOf(...t){return jl(this,"indexOf",t)},join(t){return en(this).join(t)},lastIndexOf(...t){return jl(this,"lastIndexOf",t)},map(t,e){return Dt(this,"map",t,e,void 0,arguments)},pop(){return es(this,"pop")},push(...t){return es(this,"push",t)},reduce(t,...e){return nv(this,"reduce",t,e)},reduceRight(t,...e){return nv(this,"reduceRight",t,e)},shift(){return es(this,"shift")},some(t,e){return Dt(this,"some",t,e,void 0,arguments)},splice(...t){return es(this,"splice",t)},toReversed(){return en(this).toReversed()},toSorted(t){return en(this).toSorted(t)},toSpliced(...t){return en(this).toSpliced(...t)},unshift(...t){return es(this,"unshift",t)},values(){return Ml(this,"values",Ee)}};function Ml(t,e,r){let n=bu(t),s=n[e]();return n!==t&&!Re(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=r(i.value)),i}),s}var uA=Array.prototype;function Dt(t,e,r,n,s,i){let o=bu(t),a=o!==t&&!Re(t),c=o[e];if(c!==uA[e]){let l=c.apply(t,i);return a?Ee(l):l}let h=r;o!==t&&(a?h=function(l,u){return r.call(this,Ee(l),u,t)}:r.length>2&&(h=function(l,u){return r.call(this,l,u,t)}));let d=c.call(o,h,n);return a&&s?s(d):d}function nv(t,e,r,n){let s=bu(t),i=r;return s!==t&&(Re(t)?r.length>3&&(i=function(o,a,c){return r.call(this,o,a,c,t)}):i=function(o,a,c){return r.call(this,o,Ee(a),c,t)}),s[e](i,...n)}function jl(t,e,r){let n=N(t);ue(n,"iterate",as);let s=n[e](...r);return(s===-1||s===!1)&&Ji(r[0])?(r[0]=N(r[0]),n[e](...r)):s}function es(t,e,r=[]){fo(),gu();let n=N(t)[e].apply(t,r);return vu(),mo(),n}var hA=zO("__proto__,__v_isRef,__isVue"),yv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(us));function dA(t){us(t)||(t=String(t));let e=N(this);return ue(e,"has",t),e.hasOwnProperty(t)}var Ki=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?Sv:Ev:i?wA:wv).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let o=G(e);if(!s){let c;if(o&&(c=lA[r]))return c;if(r==="hasOwnProperty")return dA}let a=Reflect.get(e,r,Se(e)?e:n);return(us(r)?yv.has(r):hA(r))||(s||ue(e,"get",r),i)?a:Se(a)?o&&pu(r)?a:a.value:Ne(a)?s?Yi(a):xv(a):a}},Xl=class extends Ki{constructor(e=!1){super(!1,e)}set(e,r,n,s){let i=e[r];if(!this._isShallow){let c=jt(i);if(!Re(n)&&!jt(n)&&(i=N(i),n=N(n)),!G(e)&&Se(i)&&!Se(n))return c?!1:(i.value=n,!0)}let o=G(e)&&pu(r)?Number(r)<e.length:ee(e,r),a=Reflect.set(e,r,n,Se(e)?e:s);return e===N(s)&&(o?cr(n,i)&&ir(e,"set",r,n,i):ir(e,"add",r,n)),a}deleteProperty(e,r){let n=ee(e,r),s=e[r],i=Reflect.deleteProperty(e,r);return i&&n&&ir(e,"delete",r,void 0,s),i}has(e,r){let n=Reflect.has(e,r);return(!us(r)||!yv.has(r))&&ue(e,"has",r),n}ownKeys(e){return ue(e,"iterate",G(e)?"length":Tr),Reflect.ownKeys(e)}},zi=class extends Ki{constructor(e=!1){super(!0,e)}set(e,r){return process.env.NODE_ENV!=="production"&&Mt(`Set operation on key "${String(r)}" failed: target is readonly.`,e),!0}deleteProperty(e,r){return process.env.NODE_ENV!=="production"&&Mt(`Delete operation on key "${String(r)}" failed: target is readonly.`,e),!0}},pA=new Xl,fA=new zi,mA=new zi(!0),Zl=t=>t,qi=t=>Reflect.getPrototypeOf(t);function gA(t,e,r){return function(...n){let s=this.__v_raw,i=N(s),o=an(i),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,h=s[t](...n),d=r?Zl:e?Ql:Ee;return!e&&ue(i,"iterate",c?Jl:Tr),{next(){let{value:l,done:u}=h.next();return u?{value:l,done:u}:{value:a?[d(l[0]),d(l[1])]:d(l),done:u}},[Symbol.iterator](){return this}}}}function Hi(t){return function(...e){if(process.env.NODE_ENV!=="production"){let r=e[0]?`on key "${e[0]}" `:"";Mt(`${rA(t)} operation ${r}failed: target is readonly.`,N(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function vA(t,e){let r={get(n){let s=this.__v_raw,i=N(s),o=N(n);t||(cr(n,o)&&ue(i,"get",n),ue(i,"get",o));let{has:a}=qi(i),c=e?Zl:t?Ql:Ee;if(a.call(i,n))return c(s.get(n));if(a.call(i,o))return c(s.get(o));s!==i&&s.get(n)},get size(){let n=this.__v_raw;return!t&&ue(N(n),"iterate",Tr),Reflect.get(n,"size",n)},has(n){let s=this.__v_raw,i=N(s),o=N(n);return t||(cr(n,o)&&ue(i,"has",n),ue(i,"has",o)),n===o?s.has(n):s.has(n)||s.has(o)},forEach(n,s){let i=this,o=i.__v_raw,a=N(o),c=e?Zl:t?Ql:Ee;return!t&&ue(a,"iterate",Tr),o.forEach((h,d)=>n.call(s,c(h),c(d),i))}};return Fe(r,t?{add:Hi("add"),set:Hi("set"),delete:Hi("delete"),clear:Hi("clear")}:{add(n){!e&&!Re(n)&&!jt(n)&&(n=N(n));let s=N(this);return qi(s).has.call(s,n)||(s.add(n),ir(s,"add",n,n)),this},set(n,s){!e&&!Re(s)&&!jt(s)&&(s=N(s));let i=N(this),{has:o,get:a}=qi(i),c=o.call(i,n);c?process.env.NODE_ENV!=="production"&&sv(i,o,n):(n=N(n),c=o.call(i,n));let h=a.call(i,n);return i.set(n,s),c?cr(s,h)&&ir(i,"set",n,s,h):ir(i,"add",n,s),this},delete(n){let s=N(this),{has:i,get:o}=qi(s),a=i.call(s,n);a?process.env.NODE_ENV!=="production"&&sv(s,i,n):(n=N(n),a=i.call(s,n));let c=o?o.call(s,n):void 0,h=s.delete(n);return a&&ir(s,"delete",n,void 0,c),h},clear(){let n=N(this),s=n.size!==0,i=process.env.NODE_ENV!=="production"?an(n)?new Map(n):new Set(n):void 0,o=n.clear();return s&&ir(n,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=gA(n,t,e)}),r}function yu(t,e){let r=vA(t,e);return(n,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(ee(r,s)&&s in n?r:n,s,i)}var _A={get:yu(!1,!1)},bA={get:yu(!0,!1)},yA={get:yu(!0,!0)};function sv(t,e,r){let n=N(r);if(n!==r&&e.call(t,n)){let s=dv(t);Mt(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var wv=new WeakMap,wA=new WeakMap,Ev=new WeakMap,Sv=new WeakMap;function EA(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function SA(t){return t.__v_skip||!Object.isExtensible(t)?0:EA(dv(t))}function xv(t){return jt(t)?t:wu(t,!1,pA,_A,wv)}function Yi(t){return wu(t,!0,fA,bA,Ev)}function ar(t){return wu(t,!0,mA,yA,Sv)}function wu(t,e,r,n,s){if(!Ne(t))return process.env.NODE_ENV!=="production"&&Mt(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=SA(t);if(o===0)return t;let a=new Proxy(t,o===2?n:r);return s.set(t,a),a}function cn(t){return jt(t)?cn(t.__v_raw):!!(t&&t.__v_isReactive)}function jt(t){return!!(t&&t.__v_isReadonly)}function Re(t){return!!(t&&t.__v_isShallow)}function Ji(t){return t?!!t.__v_raw:!1}function N(t){let e=t&&t.__v_raw;return e?N(e):t}function xA(t){return!ee(t,"__v_skip")&&Object.isExtensible(t)&&nA(t,"__v_skip",!0),t}var Ee=t=>Ne(t)?xv(t):t,Ql=t=>Ne(t)?Yi(t):t;function Se(t){return t?t.__v_isRef===!0:!1}function Xi(t){return CA(t,!1)}function CA(t,e){return Se(t)?t:new eu(t,e)}var eu=class{constructor(e,r){this.dep=new os,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:N(e),this._value=r?e:Ee(e),this.__v_isShallow=r}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){let r=this._rawValue,n=this.__v_isShallow||Re(e)||jt(e);e=n?e:N(e),cr(e,r)&&(this._rawValue=e,this._value=n?e:Ee(e),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:r}):this.dep.trigger())}};function OA(t){return Se(t)?t.value:t}var AA={get:(t,e,r)=>e==="__v_raw"?t:OA(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let s=t[e];return Se(s)&&!Se(r)?(s.value=r,!0):Reflect.set(t,e,r,n)}};function TA(t){return cn(t)?t:new Proxy(t,AA)}var tu=class{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new os(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=is-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&I!==this)return fv(this,!0),!0;process.env.NODE_ENV}get value(){let e=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return vv(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):process.env.NODE_ENV!=="production"&&Mt("Write operation failed: computed value is readonly")}};function NA(t,e,r=!1){let n,s;re(t)?n=t:(n=t.get,s=t.set);let i=new tu(n,s,r);return process.env.NODE_ENV,i}var Gi={},Zi=new WeakMap,Ar;function RA(t,e=!1,r=Ar){if(r){let n=Zi.get(r);n||Zi.set(r,n=[]),n.push(t)}else process.env.NODE_ENV!=="production"&&!e&&Mt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function kA(t,e,r=et){let{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=r,h=g=>{(r.onWarn||Mt)("Invalid watch source: ",g,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=g=>s?g:Re(g)||s===!1||s===0?or(g,1):or(g),l,u,p,f,m=!1,_=!1;if(Se(t)?(u=()=>t.value,m=Re(t)):cn(t)?(u=()=>d(t),m=!0):G(t)?(_=!0,m=t.some(g=>cn(g)||Re(g)),u=()=>t.map(g=>{if(Se(g))return g.value;if(cn(g))return d(g);if(re(g))return c?c(g,2):g();process.env.NODE_ENV!=="production"&&h(g)})):re(t)?e?u=c?()=>c(t,2):t:u=()=>{if(p){fo();try{p()}finally{mo()}}let g=Ar;Ar=l;try{return c?c(t,3,[f]):t(f)}finally{Ar=g}}:(u=on,process.env.NODE_ENV!=="production"&&h(t)),e&&s){let g=u,x=s===!0?1/0:s;u=()=>or(g(),x)}let v=()=>{l.stop()};if(i&&e){let g=e;e=(...x)=>{g(...x),v()}}let S=_?new Array(t.length).fill(Gi):Gi,$=g=>{if(!(!(l.flags&1)||!l.dirty&&!g))if(e){let x=l.run();if(s||m||(_?x.some((K,te)=>cr(K,S[te])):cr(x,S))){p&&p();let K=Ar;Ar=l;try{let te=[x,S===Gi?void 0:_&&S[0]===Gi?[]:S,f];c?c(e,3,te):e(...te),S=x}finally{Ar=K}}}else l.run()};return a&&a($),l=new Bl(u),l.scheduler=o?()=>o($,!1):$,f=g=>RA(g,!1,l),p=l.onStop=()=>{let g=Zi.get(l);if(g){if(c)c(g,4);else for(let x of g)x();Zi.delete(l)}},process.env.NODE_ENV!=="production"&&(l.onTrack=r.onTrack,l.onTrigger=r.onTrigger),e?n?$(!0):S=l.run():o?o($.bind(null,!0),!0):l.run(),v.pause=l.pause.bind(l),v.resume=l.resume.bind(l),v.stop=v,v}function or(t,e=1/0,r){if(e<=0||!Ne(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Se(t))or(t.value,e,r);else if(G(t))for(let n=0;n<t.length;n++)or(t[n],e,r);else if(XO(t)||an(t))t.forEach(n=>{or(n,e,r)});else if(eA(t)){for(let n in t)or(t[n],e,r);for(let n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&or(t[n],e,r)}return t}var Nr=[];function DA(t){Nr.push(t)}function $A(){Nr.pop()}var Vl=!1;function ie(t,...e){if(Vl)return;Vl=!0,fo();let r=Nr.length?Nr[Nr.length-1].component:null,n=r&&r.appContext.config.warnHandler,s=IA();if(n)go(n,r,11,[t+e.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),r&&r.proxy,s.map(({vnode:i})=>`at <${Lv(r,i.type)}>`).join(`
|
|
202
|
+
`,...aO(s))}qi(),cc=!1}function oO(){let t=An[An.length-1];if(!t)return[];let e=[];for(;t;){let n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});let r=t.component&&t.component.parent;t=r&&r.vnode}return e}function aO(t){let e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
203
|
+
`],...lO(n))}),e}function lO({vnode:t,recurseCount:e}){let n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${tv(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...cO(t.props),i]:[s+i]}function cO(t){let e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Lg(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Lg(t,e,n){return pt(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Ne(e)?(e=Lg(t,D(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):ie(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=D(e),n?e:[`${t}=`,e])}var qg={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 Hi(t,e,n,r){try{return r?t(...r):t()}catch(s){Ic(s,e,n)}}function Hg(t,e,n,r){if(ie(t)){let s=Hi(t,e,n,r);return s&&S0(s)&&s.catch(i=>{Ic(i,e,n)}),s}if(G(t)){let s=[];for(let i=0;i<t.length;i++)s.push(Hg(t[i],e,n,r));return s}else process.env.NODE_ENV!=="production"&&se(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function Ic(t,e,n,r=!0){let s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||et;if(e){let a=e.parent,l=e.proxy,u=process.env.NODE_ENV!=="production"?qg[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){let h=a.ec;if(h){for(let c=0;c<h.length;c++)if(h[c](t,l,u)===!1)return}a=a.parent}if(i){Li(),Hi(i,null,10,[t,l,u]),qi();return}}uO(t,n,s,r,o)}function uO(t,e,n,r=!0,s=!1){if(process.env.NODE_ENV!=="production"){let i=qg[e];if(n&&sO(n),se(`Unhandled error${i?` during execution of ${i}`:""}`),n&&iO(),r)throw t}else if(s)throw t}var Ke=[],Dt=-1,er=[],Zt=null,Yn=0,Gg=Promise.resolve(),$i=null,dO=100;function hO(t){let e=$i||Gg;return t?e.then(this?t.bind(this):t):e}function pO(t){let e=Dt+1,n=Ke.length;for(;e<n;){let r=e+n>>>1,s=Ke[r],i=es(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function Pc(t){if(!(t.flags&1)){let e=es(t),n=Ke[Ke.length-1];!n||!(t.flags&2)&&e>=es(n)?Ke.push(t):Ke.splice(pO(e),0,t),t.flags|=1,Ug()}}function Ug(){$i||($i=Gg.then(Bg))}function Wg(t){G(t)?er.push(...t):Zt&&t.id===-1?Zt.splice(Yn+1,0,t):t.flags&1||(er.push(t),t.flags|=1),Ug()}function fO(t){if(er.length){let e=[...new Set(er)].sort((n,r)=>es(n)-es(r));if(er.length=0,Zt){Zt.push(...e);return}for(Zt=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),Yn=0;Yn<Zt.length;Yn++){let n=Zt[Yn];process.env.NODE_ENV!=="production"&&Kg(t,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}Zt=null,Yn=0}}var es=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Bg(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);let e=process.env.NODE_ENV!=="production"?n=>Kg(t,n):Xn;try{for(Dt=0;Dt<Ke.length;Dt++){let n=Ke[Dt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&e(n))continue;n.flags&4&&(n.flags&=-2),Hi(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Dt<Ke.length;Dt++){let n=Ke[Dt];n&&(n.flags&=-2)}Dt=-1,Ke.length=0,fO(t),$i=null,(Ke.length||er.length)&&Bg(t)}}function Kg(t,e){let n=t.get(e)||0;if(n>dO){let r=e.i,s=r&&ev(r.type);return Ic(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}var uc=new Map;process.env.NODE_ENV!=="production"&&(Fi().__VUE_HMR_RUNTIME__={createRecord:dc(mO),rerender:dc(gO),reload:dc(vO)});var Ii=new Map;function mO(t,e){return Ii.has(t)?!1:(Ii.set(t,{initialDef:Pi(e),instances:new Set}),!0)}function Pi(t){return nv(t)?t.__vccOpts:t}function gO(t,e){let n=Ii.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,Pi(r.type).render=e),r.renderCache=[],r.update()}))}function vO(t,e){let n=Ii.get(t);if(!n)return;e=Pi(e),Cg(n.initialDef,e);let r=[...n.instances];for(let s=0;s<r.length;s++){let i=r[s],o=Pi(i.type),a=uc.get(o);a||(o!==n.initialDef&&Cg(o,e),uc.set(o,a=new Set)),a.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(a.add(i),i.ceReload(e.styles),a.delete(i)):i.parent?Pc(()=>{i.parent.update(),a.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"&&window.location.reload(),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}Wg(()=>{uc.clear()})}function Cg(t,e){Fe(t,e);for(let n in t)n!=="__file"&&!(n in e)&&delete t[n]}function dc(t){return(e,n)=>{try{return t(e,n)}catch{}}}var ts=null,_O=null,bO=t=>t.__isTeleport;function zg(t,e){t.shapeFlag&6&&t.component?(t.transition=e,zg(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}Fi().requestIdleCallback;Fi().cancelIdleCallback;var yO=Symbol.for("v-ndc"),Cc=t=>t?zO(t)?YO(t):Cc(t.parent):null,Zr=Fe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>process.env.NODE_ENV!=="production"?xi(t.props):t.props,$attrs:t=>process.env.NODE_ENV!=="production"?xi(t.attrs):t.attrs,$slots:t=>process.env.NODE_ENV!=="production"?xi(t.slots):t.slots,$refs:t=>process.env.NODE_ENV!=="production"?xi(t.refs):t.refs,$parent:t=>Cc(t.parent),$root:t=>Cc(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?EO(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{Pc(t.update)}),$nextTick:t=>t.n||(t.n=hO.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?IO.bind(t):Xn}),hc=(t,e)=>t!==et&&!t.__isScriptSetup&&ee(t,e),wO={get({_:t},e){if(e==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=t;if(process.env.NODE_ENV!=="production"&&e==="__isVue")return!0;let u;if(e[0]!=="$"){let p=o[e];if(p!==void 0)switch(p){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(hc(r,e))return o[e]=1,r[e];if(s!==et&&ee(s,e))return o[e]=2,s[e];if((u=t.propsOptions[0])&&ee(u,e))return o[e]=3,i[e];if(n!==et&&ee(n,e))return o[e]=4,n[e];(!__VUE_OPTIONS_API__||CO)&&(o[e]=0)}}let h=Zr[e],c,d;if(h)return e==="$attrs"?(de(t.attrs,"get",""),process.env.NODE_ENV):process.env.NODE_ENV!=="production"&&e==="$slots"&&de(t,"get",e),h(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==et&&ee(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,ee(d,e))return d[e];process.env.NODE_ENV},set({_:t},e,n){let{data:r,setupState:s,ctx:i}=t;return hc(s,e)?(s[e]=n,!0):process.env.NODE_ENV!=="production"&&s.__isScriptSetup&&ee(s,e)?(se(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):r!==et&&ee(r,e)?(r[e]=n,!0):ee(t.props,e)?(process.env.NODE_ENV!=="production"&&se(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(process.env.NODE_ENV!=="production"&&se(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(i,e,{enumerable:!0,configurable:!0,value:n}):i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||t!==et&&ee(t,o)||hc(e,o)||(a=i[0])&&ee(a,o)||ee(r,o)||ee(Zr,o)||ee(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ee(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};process.env.NODE_ENV!=="production"&&(wO.ownKeys=t=>(se("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function Eg(t){return G(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}var CO=!0;function EO(t){let e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e),l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(u=>Mi(l,u,o,!0)),Mi(l,e,o)),Te(e)&&i.set(e,l),l}function Mi(t,e,n,r=!1){let{mixins:s,extends:i}=e;i&&Mi(t,i,n,!0),s&&s.forEach(o=>Mi(t,o,n,!0));for(let o in e)if(r&&o==="expose")process.env.NODE_ENV!=="production"&&se('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{let a=SO[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}var SO={data:Sg,props:Og,emits:Og,methods:Yr,computed:Yr,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Yr,directives:Yr,watch:OO,provide:Sg,inject:xO};function Sg(t,e){return e?t?function(){return Fe(ie(t)?t.call(this,this):t,ie(e)?e.call(this,this):e)}:e:t}function xO(t,e){return Yr(xg(t),xg(e))}function xg(t){if(G(t)){let e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ye(t,e){return t?[...new Set([].concat(t,e))]:e}function Yr(t,e){return t?Fe(Object.create(null),t,e):e}function Og(t,e){return t?G(t)&&G(e)?[...new Set([...t,...e])]:Fe(Object.create(null),Eg(t),Eg(e??{})):e}function OO(t,e){if(!t)return e;if(!e)return t;let n=Fe(Object.create(null),t);for(let r in e)n[r]=ye(t[r],e[r]);return n}var AO=null;function TO(t,e,n=!1){let r=Gi||ts;if(r||AO){let s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&ie(e)?e.call(r&&r.proxy):e;process.env.NODE_ENV!=="production"&&se(`injection "${String(t)}" not found.`)}else process.env.NODE_ENV!=="production"&&se("inject() can only be used inside setup() or functional components.")}var NO={},Yg=t=>Object.getPrototypeOf(t)===NO,kO=jO,RO=Symbol.for("v-scx"),DO=()=>{{let t=TO(RO);return t||process.env.NODE_ENV!=="production"&&se("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function $O(t,e,n=et){let{immediate:r,deep:s,flush:i,once:o}=n;process.env.NODE_ENV!=="production"&&!e&&(r!==void 0&&se('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&se('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&se('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));let a=Fe({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=se);let l=e&&r||!e&&i!=="post",u;if(Sc){if(i==="sync"){let p=DO();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){let p=()=>{};return p.stop=Xn,p.resume=Xn,p.pause=Xn,p}}let h=Gi;a.call=(p,f,g)=>Hg(p,h,f,g);let c=!1;i==="post"?a.scheduler=p=>{kO(p,h&&h.suspense)}:i!=="sync"&&(c=!0,a.scheduler=(p,f)=>{f?p():Pc(p)}),a.augmentJob=p=>{e&&(p.flags|=4),c&&(p.flags|=2,h&&(p.id=h.uid,p.i=h))};let d=rO(t,e,a);return Sc&&(u?u.push(d):l&&d()),d}function IO(t,e,n){let r=this.proxy,s=pt(t)?t.includes(".")?PO(r,t):()=>r[t]:t.bind(r,r),i;ie(e)?i=e:(i=e.handler,n=e);let o=KO(this),a=$O(s,i.bind(r),n);return o(),a}function PO(t,e){let n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}var MO=t=>t.__isSuspense;function jO(t,e){e&&e.pendingBranch?G(t)?e.effects.push(...t):e.effects.push(t):Wg(t)}var Jg=Symbol.for("v-fgt"),VO=Symbol.for("v-txt"),FO=Symbol.for("v-cmt"),Jn=null;function LO(t){return t?t.__v_isVNode===!0:!1}var qO=(...t)=>Zg(...t),Xg=({key:t})=>t??null,Ai=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?pt(t)||Ne(t)||ie(t)?{i:ts,r:t,k:e,f:!!n}:t:null);function HO(t,e=null,n=null,r=0,s=null,i=t===Jg?0:1,o=!1,a=!1){let l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Xg(e),ref:e&&Ai(e),scopeId:_O,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ts};return a?(Mc(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=pt(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&se("VNode created with invalid key (NaN). VNode type:",l.type),!o&&Jn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Jn.push(l),l}var GO=process.env.NODE_ENV!=="production"?qO:Zg;function Zg(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===yO)&&(process.env.NODE_ENV!=="production"&&!t&&se(`Invalid vnode type when creating vnode: ${t}.`),t=FO),LO(t)){let a=ji(t,e,!0);return n&&Mc(a,n),!i&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(t)]=a:Jn.push(a)),a.patchFlag=-2,a}if(nv(t)&&(t=t.__vccOpts),e){e=UO(e);let{class:a,style:l}=e;a&&!pt(a)&&(e.class=Ac(a)),Te(l)&&(Ri(l)&&!G(l)&&(l=Fe({},l)),e.style=Oc(l))}let o=pt(t)?1:MO(t)?128:bO(t)?64:Te(t)?4:ie(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&Ri(t)&&(t=D(t),se("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
204
|
+
Component that was made reactive: `,t)),HO(t,e,n,r,s,o,i,!0)}function UO(t){return t?Ri(t)||Yg(t)?Fe({},t):t:null}function ji(t,e,n=!1,r=!1){let{props:s,ref:i,patchFlag:o,children:a,transition:l}=t,u=e?BO(s||{},e):s,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Xg(u),ref:e&&e.ref?n&&i?G(i)?i.concat(Ai(e)):[i,Ai(e)]:Ai(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&G(a)?a.map(Qg):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Jg?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ji(t.ssContent),ssFallback:t.ssFallback&&ji(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&zg(h,l.clone(h)),h}function Qg(t){let e=ji(t);return G(t.children)&&(e.children=t.children.map(Qg)),e}function WO(t=" ",e=0){return GO(VO,null,t,e)}function Mc(t,e){let n=0,{shapeFlag:r}=t;if(e==null)e=null;else if(G(e))n=16;else if(typeof e=="object")if(r&65){let s=e.default;s&&(s._c&&(s._d=!1),Mc(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!Yg(e)&&(e._ctx=ts);else ie(e)?(e={default:e,_ctx:ts},n=32):(e=String(e),r&64?(n=16,e=[WO(e)]):n=8);t.children=e,t.shapeFlag|=n}function BO(...t){let e={};for(let n=0;n<t.length;n++){let r=t[n];for(let s in r)if(s==="class")e.class!==r.class&&(e.class=Ac([e.class,r.class]));else if(s==="style")e.style=Oc([e.style,r.style]);else if(w0(s)){let i=e[s],o=r[s];o&&i!==o&&!(G(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=r[s])}return e}var Gi=null,Ec;{let t=Fi(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Ec=e("__VUE_INSTANCE_SETTERS__",n=>Gi=n),e("__VUE_SSR_SETTERS__",n=>Sc=n)}var KO=t=>{let e=Gi;return Ec(t),t.scope.on(),()=>{t.scope.off(),Ec(e)}};function zO(t){return t.vnode.shapeFlag&4}var Sc=!1;process.env.NODE_ENV;function YO(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(tO(Z0(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Zr)return Zr[n](t)},has(e,n){return n in e||n in Zr}})):t.proxy}var JO=/(?:^|[-_])(\w)/g,XO=t=>t.replace(JO,e=>e.toUpperCase()).replace(/[-_]/g,"");function ev(t,e=!0){return ie(t)?t.displayName||t.name:t.name||e&&t.__name}function tv(t,e,n=!1){let r=ev(e);if(!r&&e.__file){let s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t&&t.parent){let s=i=>{for(let o in i)if(i[o]===e)return o};r=s(t.components||t.parent.type.components)||s(t.appContext.components)}return r?XO(r):n?"App":"Anonymous"}function nv(t){return ie(t)&&"__vccOpts"in t}function ZO(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;let t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(c){return Te(c)?c.__isVue?["div",t,"VueInstance"]:Ne(c)?["div",{},["span",t,h(c)],"<",a("_value"in c?c._value:c),">"]:Qn(c)?["div",{},["span",t,Ve(c)?"ShallowReactive":"Reactive"],"<",a(c),`>${nn(c)?" (readonly)":""}`]:nn(c)?["div",{},["span",t,Ve(c)?"ShallowReadonly":"Readonly"],"<",a(c),">"]:null:null},hasBody(c){return c&&c.__isVue},body(c){if(c&&c.__isVue)return["div",{},...i(c.$)]}};function i(c){let d=[];c.type.props&&c.props&&d.push(o("props",D(c.props))),c.setupState!==et&&d.push(o("setup",c.setupState)),c.data!==et&&d.push(o("data",D(c.data)));let p=l(c,"computed");p&&d.push(o("computed",p));let f=l(c,"inject");return f&&d.push(o("injected",f)),d.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:c}]]),d}function o(c,d){return d=Fe({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},c],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",r,p+": "],a(d[p],!1)])]]:["span",{}]}function a(c,d=!0){return typeof c=="number"?["span",e,c]:typeof c=="string"?["span",n,JSON.stringify(c)]:typeof c=="boolean"?["span",r,c]:Te(c)?["object",{object:d?D(c):c}]:["span",n,String(c)]}function l(c,d){let p=c.type;if(ie(p))return;let f={};for(let g in c.ctx)u(p,g,d)&&(f[g]=c.ctx[g]);return f}function u(c,d,p){let f=c[p];if(G(f)&&f.includes(d)||Te(f)&&d in f||c.extends&&u(c.extends,d,p)||c.mixins&&c.mixins.some(g=>u(g,d,p)))return!0}function h(c){return Ve(c)?"ShallowRef":c.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;function QO(){ZO()}process.env.NODE_ENV!=="production"&&QO();function eA(t){let e=Object.create(null);for(let n of t.split(","))e[n]=1;return n=>n in e}var nt=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);var or=()=>{},tA=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Le=Object.assign,nA=Object.prototype.hasOwnProperty,te=(t,e)=>nA.call(t,e),U=Array.isArray,ar=t=>go(t)==="[object Map]",rA=t=>go(t)==="[object Set]",re=t=>typeof t=="function",ft=t=>typeof t=="string",ps=t=>typeof t=="symbol",ke=t=>t!==null&&typeof t=="object",sA=t=>(ke(t)||re(t))&&re(t.then)&&re(t.catch),iA=Object.prototype.toString,go=t=>iA.call(t),fv=t=>go(t).slice(8,-1),oA=t=>go(t)==="[object Object]",mu=t=>ft(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,aA=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},lA=aA(t=>t.charAt(0).toUpperCase()+t.slice(1)),cn=(t,e)=>!Object.is(t,e),cA=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},rv,vo=()=>rv||(rv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gu(t){if(U(t)){let e={};for(let n=0;n<t.length;n++){let r=t[n],s=ft(r)?pA(r):gu(r);if(s)for(let i in s)e[i]=s[i]}return e}else if(ft(t)||ke(t))return t}var uA=/;(?![^(]*\))/g,dA=/:([^]+)/,hA=/\/\*[^]*?\*\//g;function pA(t){let e={};return t.replace(hA,"").split(uA).forEach(n=>{if(n){let r=n.split(dA);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function vu(t){let e="";if(ft(t))e=t;else if(U(t))for(let n=0;n<t.length;n++){let r=vu(t[n]);r&&(e+=r+" ")}else if(ke(t))for(let n in t)t[n]&&(e+=n+" ");return e.trim()}function Mt(t,...e){}var M,jc=new WeakSet,Yc=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,jc.has(this)&&(jc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gv(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sv(this),vv(this);let e=M,n=rt;M=this,rt=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&M!==this&&Mt("Active effect was not restored correctly - this is likely a Vue internal bug."),_v(this),M=e,rt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)yu(e);this.deps=this.depsTail=void 0,sv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?jc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jc(this)&&this.run()}get dirty(){return Jc(this)}},mv=0,is,os;function gv(t,e=!1){if(t.flags|=8,e){t.next=os,os=t;return}t.next=is,is=t}function _u(){mv++}function bu(){if(--mv>0)return;if(os){let e=os;for(os=void 0;e;){let n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;is;){let e=is;for(is=void 0;e;){let n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function vv(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function _v(t){let e,n=t.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),yu(r),fA(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function Jc(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(bv(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function bv(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ls))return;t.globalVersion=ls;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Jc(t)){t.flags&=-3;return}let n=M,r=rt;M=t,rt=!0;try{vv(t);let s=t.fn(t._value);(e.version===0||cn(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{M=n,rt=r,_v(t),t.flags&=-3}}function yu(t,e=!1){let{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===t&&(n.subsHead=s),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)yu(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function fA(t){let{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}var rt=!0,yv=[];function _o(){yv.push(rt),rt=!1}function bo(){let t=yv.pop();rt=t===void 0?!0:t}function sv(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let n=M;M=void 0;try{e()}finally{M=n}}}var ls=0,Xc=class{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},cs=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){if(!M||!rt||M===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==M)n=this.activeLink=new Xc(M,this),M.deps?(n.prevDep=M.depsTail,M.depsTail.nextDep=n,M.depsTail=n):M.deps=M.depsTail=n,wv(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=M.depsTail,n.nextDep=void 0,M.depsTail.nextDep=n,M.depsTail=n,M.deps===n&&(M.deps=r)}return process.env.NODE_ENV!=="production"&&M.onTrack&&M.onTrack(Le({effect:M},e)),n}trigger(e){this.version++,ls++,this.notify(e)}notify(e){_u();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Le({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{bu()}}};function wv(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)wv(r)}let n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),process.env.NODE_ENV!=="production"&&t.dep.subsHead===void 0&&(t.dep.subsHead=t),t.dep.subs=t}}var Zc=new WeakMap,Nn=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Qc=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),us=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function he(t,e,n){if(rt&&M){let r=Zc.get(t);r||Zc.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new cs),s.map=r,s.key=n),process.env.NODE_ENV!=="production"?s.track({target:t,type:e,key:n}):s.track()}}function on(t,e,n,r,s,i){let o=Zc.get(t);if(!o){ls++;return}let a=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):l.trigger())};if(_u(),e==="clear")o.forEach(a);else{let l=U(t),u=l&&mu(n);if(l&&n==="length"){let h=Number(r);o.forEach((c,d)=>{(d==="length"||d===us||!ps(d)&&d>=h)&&a(c)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(us)),e){case"add":l?u&&a(o.get("length")):(a(o.get(Nn)),ar(t)&&a(o.get(Qc)));break;case"delete":l||(a(o.get(Nn)),ar(t)&&a(o.get(Qc)));break;case"set":ar(t)&&a(o.get(Nn));break}}bu()}function tr(t){let e=k(t);return e===t?e:(he(e,"iterate",us),Re(t)?e:e.map(Se))}function wu(t){return he(t=k(t),"iterate",us),t}var mA={__proto__:null,[Symbol.iterator](){return Vc(this,Symbol.iterator,Se)},concat(...t){return tr(this).concat(...t.map(e=>U(e)?tr(e):e))},entries(){return Vc(this,"entries",t=>(t[1]=Se(t[1]),t))},every(t,e){return $t(this,"every",t,e,void 0,arguments)},filter(t,e){return $t(this,"filter",t,e,n=>n.map(Se),arguments)},find(t,e){return $t(this,"find",t,e,Se,arguments)},findIndex(t,e){return $t(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return $t(this,"findLast",t,e,Se,arguments)},findLastIndex(t,e){return $t(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return $t(this,"forEach",t,e,void 0,arguments)},includes(...t){return Fc(this,"includes",t)},indexOf(...t){return Fc(this,"indexOf",t)},join(t){return tr(this).join(t)},lastIndexOf(...t){return Fc(this,"lastIndexOf",t)},map(t,e){return $t(this,"map",t,e,void 0,arguments)},pop(){return rs(this,"pop")},push(...t){return rs(this,"push",t)},reduce(t,...e){return iv(this,"reduce",t,e)},reduceRight(t,...e){return iv(this,"reduceRight",t,e)},shift(){return rs(this,"shift")},some(t,e){return $t(this,"some",t,e,void 0,arguments)},splice(...t){return rs(this,"splice",t)},toReversed(){return tr(this).toReversed()},toSorted(t){return tr(this).toSorted(t)},toSpliced(...t){return tr(this).toSpliced(...t)},unshift(...t){return rs(this,"unshift",t)},values(){return Vc(this,"values",Se)}};function Vc(t,e,n){let r=wu(t),s=r[e]();return r!==t&&!Re(t)&&(s._next=s.next,s.next=()=>{let i=s._next();return i.value&&(i.value=n(i.value)),i}),s}var gA=Array.prototype;function $t(t,e,n,r,s,i){let o=wu(t),a=o!==t&&!Re(t),l=o[e];if(l!==gA[e]){let c=l.apply(t,i);return a?Se(c):c}let u=n;o!==t&&(a?u=function(c,d){return n.call(this,Se(c),d,t)}:n.length>2&&(u=function(c,d){return n.call(this,c,d,t)}));let h=l.call(o,u,r);return a&&s?s(h):h}function iv(t,e,n,r){let s=wu(t),i=n;return s!==t&&(Re(t)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,t)}):i=function(o,a,l){return n.call(this,o,Se(a),l,t)}),s[e](i,...r)}function Fc(t,e,n){let r=k(t);he(r,"iterate",us);let s=r[e](...n);return(s===-1||s===!1)&&Qi(n[0])?(n[0]=k(n[0]),r[e](...n)):s}function rs(t,e,n=[]){_o(),_u();let r=k(t)[e].apply(t,n);return bu(),bo(),r}var vA=eA("__proto__,__v_isRef,__isVue"),Cv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ps));function _A(t){ps(t)||(t=String(t));let e=k(this);return he(e,"has",t),e.hasOwnProperty(t)}var Ji=class{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?xv:Sv:i?AA:Ev).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=U(e);if(!s){let l;if(o&&(l=mA[n]))return l;if(n==="hasOwnProperty")return _A}let a=Reflect.get(e,n,xe(e)?e:r);return(ps(n)?Cv.has(n):vA(n))||(s||he(e,"get",n),i)?a:xe(a)?o&&mu(n)?a:a.value:ke(a)?s?Zi(a):Ov(a):a}},eu=class extends Ji{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];if(!this._isShallow){let l=jt(i);if(!Re(r)&&!jt(r)&&(i=k(i),r=k(r)),!U(e)&&xe(i)&&!xe(r))return l?!1:(i.value=r,!0)}let o=U(e)&&mu(n)?Number(n)<e.length:te(e,n),a=Reflect.set(e,n,r,xe(e)?e:s);return e===k(s)&&(o?cn(r,i)&&on(e,"set",n,r,i):on(e,"add",n,r)),a}deleteProperty(e,n){let r=te(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&on(e,"delete",n,void 0,s),i}has(e,n){let r=Reflect.has(e,n);return(!ps(n)||!Cv.has(n))&&he(e,"has",n),r}ownKeys(e){return he(e,"iterate",U(e)?"length":Nn),Reflect.ownKeys(e)}},Xi=class extends Ji{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&Mt(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&Mt(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}},bA=new eu,yA=new Xi,wA=new Xi(!0),tu=t=>t,Ui=t=>Reflect.getPrototypeOf(t);function CA(t,e,n){return function(...r){let s=this.__v_raw,i=k(s),o=ar(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),h=n?tu:e?nu:Se;return!e&&he(i,"iterate",l?Qc:Nn),{next(){let{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:a?[h(c[0]),h(c[1])]:h(c),done:d}},[Symbol.iterator](){return this}}}}function Wi(t){return function(...e){if(process.env.NODE_ENV!=="production"){let n=e[0]?`on key "${e[0]}" `:"";Mt(`${lA(t)} operation ${n}failed: target is readonly.`,k(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function EA(t,e){let n={get(r){let s=this.__v_raw,i=k(s),o=k(r);t||(cn(r,o)&&he(i,"get",r),he(i,"get",o));let{has:a}=Ui(i),l=e?tu:t?nu:Se;if(a.call(i,r))return l(s.get(r));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(r)},get size(){let r=this.__v_raw;return!t&&he(k(r),"iterate",Nn),Reflect.get(r,"size",r)},has(r){let s=this.__v_raw,i=k(s),o=k(r);return t||(cn(r,o)&&he(i,"has",r),he(i,"has",o)),r===o?s.has(r):s.has(r)||s.has(o)},forEach(r,s){let i=this,o=i.__v_raw,a=k(o),l=e?tu:t?nu:Se;return!t&&he(a,"iterate",Nn),o.forEach((u,h)=>r.call(s,l(u),l(h),i))}};return Le(n,t?{add:Wi("add"),set:Wi("set"),delete:Wi("delete"),clear:Wi("clear")}:{add(r){!e&&!Re(r)&&!jt(r)&&(r=k(r));let s=k(this);return Ui(s).has.call(s,r)||(s.add(r),on(s,"add",r,r)),this},set(r,s){!e&&!Re(s)&&!jt(s)&&(s=k(s));let i=k(this),{has:o,get:a}=Ui(i),l=o.call(i,r);l?process.env.NODE_ENV!=="production"&&ov(i,o,r):(r=k(r),l=o.call(i,r));let u=a.call(i,r);return i.set(r,s),l?cn(s,u)&&on(i,"set",r,s,u):on(i,"add",r,s),this},delete(r){let s=k(this),{has:i,get:o}=Ui(s),a=i.call(s,r);a?process.env.NODE_ENV!=="production"&&ov(s,i,r):(r=k(r),a=i.call(s,r));let l=o?o.call(s,r):void 0,u=s.delete(r);return a&&on(s,"delete",r,void 0,l),u},clear(){let r=k(this),s=r.size!==0,i=process.env.NODE_ENV!=="production"?ar(r)?new Map(r):new Set(r):void 0,o=r.clear();return s&&on(r,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=CA(r,t,e)}),n}function Cu(t,e){let n=EA(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(te(n,s)&&s in r?n:r,s,i)}var SA={get:Cu(!1,!1)},xA={get:Cu(!0,!1)},OA={get:Cu(!0,!0)};function ov(t,e,n){let r=k(n);if(r!==n&&e.call(t,r)){let s=fv(t);Mt(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Ev=new WeakMap,AA=new WeakMap,Sv=new WeakMap,xv=new WeakMap;function TA(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function NA(t){return t.__v_skip||!Object.isExtensible(t)?0:TA(fv(t))}function Ov(t){return jt(t)?t:Eu(t,!1,bA,SA,Ev)}function Zi(t){return Eu(t,!0,yA,xA,Sv)}function ln(t){return Eu(t,!0,wA,OA,xv)}function Eu(t,e,n,r,s){if(!ke(t))return process.env.NODE_ENV!=="production"&&Mt(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=s.get(t);if(i)return i;let o=NA(t);if(o===0)return t;let a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function lr(t){return jt(t)?lr(t.__v_raw):!!(t&&t.__v_isReactive)}function jt(t){return!!(t&&t.__v_isReadonly)}function Re(t){return!!(t&&t.__v_isShallow)}function Qi(t){return t?!!t.__v_raw:!1}function k(t){let e=t&&t.__v_raw;return e?k(e):t}function kA(t){return!te(t,"__v_skip")&&Object.isExtensible(t)&&cA(t,"__v_skip",!0),t}var Se=t=>ke(t)?Ov(t):t,nu=t=>ke(t)?Zi(t):t;function xe(t){return t?t.__v_isRef===!0:!1}function eo(t){return RA(t,!1)}function RA(t,e){return xe(t)?t:new ru(t,e)}var ru=class{constructor(e,n){this.dep=new cs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:k(e),this._value=n?e:Se(e),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){let n=this._rawValue,r=this.__v_isShallow||Re(e)||jt(e);e=r?e:k(e),cn(e,n)&&(this._rawValue=e,this._value=r?e:Se(e),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:n}):this.dep.trigger())}};function DA(t){return xe(t)?t.value:t}var $A={get:(t,e,n)=>e==="__v_raw"?t:DA(Reflect.get(t,e,n)),set:(t,e,n,r)=>{let s=t[e];return xe(s)&&!xe(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function IA(t){return lr(t)?t:new Proxy(t,$A)}var su=class{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new cs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ls-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&M!==this)return gv(this,!0),!0;process.env.NODE_ENV}get value(){let e=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return bv(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):process.env.NODE_ENV!=="production"&&Mt("Write operation failed: computed value is readonly")}};function PA(t,e,n=!1){let r,s;re(t)?r=t:(r=t.get,s=t.set);let i=new su(r,s,n);return process.env.NODE_ENV,i}var Bi={},to=new WeakMap,Tn;function MA(t,e=!1,n=Tn){if(n){let r=to.get(n);r||to.set(n,r=[]),r.push(t)}else process.env.NODE_ENV!=="production"&&!e&&Mt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function jA(t,e,n=nt){let{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>{(n.onWarn||Mt)("Invalid watch source: ",_,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=_=>s?_:Re(_)||s===!1||s===0?an(_,1):an(_),c,d,p,f,g=!1,v=!1;if(xe(t)?(d=()=>t.value,g=Re(t)):lr(t)?(d=()=>h(t),g=!0):U(t)?(v=!0,g=t.some(_=>lr(_)||Re(_)),d=()=>t.map(_=>{if(xe(_))return _.value;if(lr(_))return h(_);if(re(_))return l?l(_,2):_();process.env.NODE_ENV!=="production"&&u(_)})):re(t)?e?d=l?()=>l(t,2):t:d=()=>{if(p){_o();try{p()}finally{bo()}}let _=Tn;Tn=c;try{return l?l(t,3,[f]):t(f)}finally{Tn=_}}:(d=or,process.env.NODE_ENV!=="production"&&u(t)),e&&s){let _=d,S=s===!0?1/0:s;d=()=>an(_(),S)}let m=()=>{c.stop()};if(i&&e){let _=e;e=(...S)=>{_(...S),m()}}let E=v?new Array(t.length).fill(Bi):Bi,N=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(e){let S=c.run();if(s||g||(v?S.some((Y,ne)=>cn(Y,E[ne])):cn(S,E))){p&&p();let Y=Tn;Tn=c;try{let ne=[S,E===Bi?void 0:v&&E[0]===Bi?[]:E,f];l?l(e,3,ne):e(...ne),E=S}finally{Tn=Y}}}else c.run()};return a&&a(N),c=new Yc(d),c.scheduler=o?()=>o(N,!1):N,f=_=>MA(_,!1,c),p=c.onStop=()=>{let _=to.get(c);if(_){if(l)l(_,4);else for(let S of _)S();to.delete(c)}},process.env.NODE_ENV!=="production"&&(c.onTrack=n.onTrack,c.onTrigger=n.onTrigger),e?r?N(!0):E=c.run():o?o(N.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function an(t,e=1/0,n){if(e<=0||!ke(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,xe(t))an(t.value,e,n);else if(U(t))for(let r=0;r<t.length;r++)an(t[r],e,n);else if(rA(t)||ar(t))t.forEach(r=>{an(r,e,n)});else if(oA(t)){for(let r in t)an(t[r],e,n);for(let r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&an(t[r],e,n)}return t}var kn=[];function VA(t){kn.push(t)}function FA(){kn.pop()}var Lc=!1;function oe(t,...e){if(Lc)return;Lc=!0,_o();let n=kn.length?kn[kn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=LA();if(r)yo(r,n,11,[t+e.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${Hv(n,i.type)}>`).join(`
|
|
205
205
|
`),s]);else{let i=[`[Vue warn]: ${t}`,...e];s.length&&i.push(`
|
|
206
|
-
`,...
|
|
207
|
-
`],...MA(r))}),e}function MA({vnode:t,recurseCount:e}){let r=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,s=` at <${Lv(t.component,t.type,n)}`,i=">"+r;return t.props?[s,...jA(t.props),i]:[s+i]}function jA(t){let e=[],r=Object.keys(t);return r.slice(0,3).forEach(n=>{e.push(...Cv(n,t[n]))}),r.length>3&&e.push(" ..."),e}function Cv(t,e,r){return pt(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?r?e:[`${t}=${e}`]:Se(e)?(e=Cv(t,N(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):re(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=N(e),r?e:[`${t}=`,e])}var Ov={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 go(t,e,r,n){try{return n?t(...n):t()}catch(s){Eu(s,e,r)}}function Av(t,e,r,n){if(re(t)){let s=go(t,e,r,n);return s&&ZO(s)&&s.catch(i=>{Eu(i,e,r)}),s}if(G(t)){let s=[];for(let i=0;i<t.length;i++)s.push(Av(t[i],e,r,n));return s}else process.env.NODE_ENV!=="production"&&ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function Eu(t,e,r,n=!0){let s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||et;if(e){let a=e.parent,c=e.proxy,h=process.env.NODE_ENV!=="production"?Ov[r]:`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){let d=a.ec;if(d){for(let l=0;l<d.length;l++)if(d[l](t,c,h)===!1)return}a=a.parent}if(i){fo(),go(i,null,10,[t,c,h]),mo();return}}VA(t,r,s,n,o)}function VA(t,e,r,n=!0,s=!1){if(process.env.NODE_ENV!=="production"){let i=Ov[e];if(r&&DA(r),ie(`Unhandled error${i?` during execution of ${i}`:""}`),r&&$A(),n)throw t}else if(s)throw t}var Be=[],$t=-1,ln=[],nr=null,tn=0,Tv=Promise.resolve(),Qi=null,FA=100;function LA(t){let e=Qi||Tv;return t?e.then(this?t.bind(this):t):e}function qA(t){let e=$t+1,r=Be.length;for(;e<r;){let n=e+r>>>1,s=Be[n],i=cs(s);i<t||i===t&&s.flags&2?e=n+1:r=n}return e}function Su(t){if(!(t.flags&1)){let e=cs(t),r=Be[Be.length-1];!r||!(t.flags&2)&&e>=cs(r)?Be.push(t):Be.splice(qA(e),0,t),t.flags|=1,Nv()}}function Nv(){Qi||(Qi=Tv.then(kv))}function Rv(t){G(t)?ln.push(...t):nr&&t.id===-1?nr.splice(tn+1,0,t):t.flags&1||(ln.push(t),t.flags|=1),Nv()}function HA(t){if(ln.length){let e=[...new Set(ln)].sort((r,n)=>cs(r)-cs(n));if(ln.length=0,nr){nr.push(...e);return}for(nr=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),tn=0;tn<nr.length;tn++){let r=nr[tn];process.env.NODE_ENV!=="production"&&Dv(t,r)||(r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2)}nr=null,tn=0}}var cs=t=>t.id==null?t.flags&2?-1:1/0:t.id;function kv(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);let e=process.env.NODE_ENV!=="production"?r=>Dv(t,r):on;try{for($t=0;$t<Be.length;$t++){let r=Be[$t];if(r&&!(r.flags&8)){if(process.env.NODE_ENV!=="production"&&e(r))continue;r.flags&4&&(r.flags&=-2),go(r,r.i,r.i?15:14),r.flags&4||(r.flags&=-2)}}}finally{for(;$t<Be.length;$t++){let r=Be[$t];r&&(r.flags&=-2)}$t=-1,Be.length=0,HA(t),Qi=null,(Be.length||ln.length)&&kv(t)}}function Dv(t,e){let r=t.get(e)||0;if(r>FA){let n=e.i,s=n&&Fv(n.type);return Eu(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,r+1),!1}var Fl=new Map;process.env.NODE_ENV!=="production"&&(po().__VUE_HMR_RUNTIME__={createRecord:Ll(GA),rerender:Ll(UA),reload:Ll(WA)});var eo=new Map;function GA(t,e){return eo.has(t)?!1:(eo.set(t,{initialDef:to(e),instances:new Set}),!0)}function to(t){return qv(t)?t.__vccOpts:t}function UA(t,e){let r=eo.get(t);r&&(r.initialDef.render=e,[...r.instances].forEach(n=>{e&&(n.render=e,to(n.type).render=e),n.renderCache=[],n.update()}))}function WA(t,e){let r=eo.get(t);if(!r)return;e=to(e),iv(r.initialDef,e);let n=[...r.instances];for(let s=0;s<n.length;s++){let i=n[s],o=to(i.type),a=Fl.get(o);a||(o!==r.initialDef&&iv(o,e),Fl.set(o,a=new Set)),a.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(a.add(i),i.ceReload(e.styles),a.delete(i)):i.parent?Su(()=>{i.parent.update(),a.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"&&window.location.reload(),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}Rv(()=>{Fl.clear()})}function iv(t,e){Fe(t,e);for(let r in t)r!=="__file"&&!(r in e)&&delete t[r]}function Ll(t){return(e,r)=>{try{return t(e,r)}catch{}}}var hn=null,BA=null,KA=t=>t.__isTeleport;function $v(t,e){t.shapeFlag&6&&t.component?(t.transition=e,$v(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}po().requestIdleCallback;po().cancelIdleCallback;var zA=Symbol.for("v-ndc"),ru=t=>t?S1(t)?x1(t):ru(t.parent):null,ss=Fe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>process.env.NODE_ENV!=="production"?ar(t.props):t.props,$attrs:t=>process.env.NODE_ENV!=="production"?ar(t.attrs):t.attrs,$slots:t=>process.env.NODE_ENV!=="production"?ar(t.slots):t.slots,$refs:t=>process.env.NODE_ENV!=="production"?ar(t.refs):t.refs,$parent:t=>ru(t.parent),$root:t=>ru(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?XA(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{Su(t.update)}),$nextTick:t=>t.n||(t.n=LA.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?c1.bind(t):on}),ql=(t,e)=>t!==et&&!t.__isScriptSetup&&ee(t,e),YA={get({_:t},e){if(e==="__v_skip")return!0;let{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:c}=t;if(process.env.NODE_ENV!=="production"&&e==="__isVue")return!0;let h;if(e[0]!=="$"){let p=o[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return s[e];case 4:return r[e];case 3:return i[e]}else{if(ql(n,e))return o[e]=1,n[e];if(s!==et&&ee(s,e))return o[e]=2,s[e];if((h=t.propsOptions[0])&&ee(h,e))return o[e]=3,i[e];if(r!==et&&ee(r,e))return o[e]=4,r[e];(!__VUE_OPTIONS_API__||JA)&&(o[e]=0)}}let d=ss[e],l,u;if(d)return e==="$attrs"?(ue(t.attrs,"get",""),process.env.NODE_ENV):process.env.NODE_ENV!=="production"&&e==="$slots"&&ue(t,"get",e),d(t);if((l=a.__cssModules)&&(l=l[e]))return l;if(r!==et&&ee(r,e))return o[e]=4,r[e];if(u=c.config.globalProperties,ee(u,e))return u[e];process.env.NODE_ENV},set({_:t},e,r){let{data:n,setupState:s,ctx:i}=t;return ql(s,e)?(s[e]=r,!0):process.env.NODE_ENV!=="production"&&s.__isScriptSetup&&ee(s,e)?(ie(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):n!==et&&ee(n,e)?(n[e]=r,!0):ee(t.props,e)?(process.env.NODE_ENV!=="production"&&ie(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(process.env.NODE_ENV!=="production"&&ie(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(i,e,{enumerable:!0,configurable:!0,value:r}):i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:s,propsOptions:i}},o){let a;return!!r[o]||t!==et&&ee(t,o)||ql(e,o)||(a=i[0])&&ee(a,o)||ee(n,o)||ee(ss,o)||ee(s.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:ee(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};process.env.NODE_ENV!=="production"&&(YA.ownKeys=t=>(ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function ov(t){return G(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}var JA=!0;function XA(t){let e=t.type,{mixins:r,extends:n}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e),c;return a?c=a:!s.length&&!r&&!n?c=e:(c={},s.length&&s.forEach(h=>ro(c,h,o,!0)),ro(c,e,o)),Ne(e)&&i.set(e,c),c}function ro(t,e,r,n=!1){let{mixins:s,extends:i}=e;i&&ro(t,i,r,!0),s&&s.forEach(o=>ro(t,o,r,!0));for(let o in e)if(n&&o==="expose")process.env.NODE_ENV!=="production"&&ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{let a=ZA[o]||r&&r[o];t[o]=a?a(t[o],e[o]):e[o]}return t}var ZA={data:av,props:lv,emits:lv,methods:ts,computed:ts,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:ts,directives:ts,watch:e1,provide:av,inject:QA};function av(t,e){return e?t?function(){return Fe(re(t)?t.call(this,this):t,re(e)?e.call(this,this):e)}:e:t}function QA(t,e){return ts(cv(t),cv(e))}function cv(t){if(G(t)){let e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function we(t,e){return t?[...new Set([].concat(t,e))]:e}function ts(t,e){return t?Fe(Object.create(null),t,e):e}function lv(t,e){return t?G(t)&&G(e)?[...new Set([...t,...e])]:Fe(Object.create(null),ov(t),ov(e??{})):e}function e1(t,e){if(!t)return e;if(!e)return t;let r=Fe(Object.create(null),t);for(let n in e)r[n]=we(t[n],e[n]);return r}var t1=null;function r1(t,e,r=!1){let n=hs||hn;if(n||t1){let s=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return r&&re(e)?e.call(n&&n.proxy):e;process.env.NODE_ENV!=="production"&&ie(`injection "${String(t)}" not found.`)}else process.env.NODE_ENV!=="production"&&ie("inject() can only be used inside setup() or functional components.")}var n1={},Iv=t=>Object.getPrototypeOf(t)===n1,s1=h1,i1=Symbol.for("v-scx"),o1=()=>{{let t=r1(i1);return t||process.env.NODE_ENV!=="production"&&ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function a1(t,e,r=et){let{immediate:n,deep:s,flush:i,once:o}=r;process.env.NODE_ENV!=="production"&&!e&&(n!==void 0&&ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));let a=Fe({},r);process.env.NODE_ENV!=="production"&&(a.onWarn=ie);let c=e&&n||!e&&i!=="post",h;if(so){if(i==="sync"){let p=o1();h=p.__watcherHandles||(p.__watcherHandles=[])}else if(!c){let p=()=>{};return p.stop=on,p.resume=on,p.pause=on,p}}let d=hs;a.call=(p,f,m)=>Av(p,d,f,m);let l=!1;i==="post"?a.scheduler=p=>{s1(p,d&&d.suspense)}:i!=="sync"&&(l=!0,a.scheduler=(p,f)=>{f?p():Su(p)}),a.augmentJob=p=>{e&&(p.flags|=4),l&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};let u=kA(t,e,a);return so&&(h?h.push(u):c&&u()),u}function c1(t,e,r){let n=this.proxy,s=pt(t)?t.includes(".")?l1(n,t):()=>n[t]:t.bind(n,n),i;re(e)?i=e:(i=e.handler,r=e);let o=E1(this),a=a1(s,i.bind(n),r);return o(),a}function l1(t,e){let r=e.split(".");return()=>{let n=t;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}var u1=t=>t.__isSuspense;function h1(t,e){e&&e.pendingBranch?G(t)?e.effects.push(...t):e.effects.push(t):Rv(t)}var Pv=Symbol.for("v-fgt"),d1=Symbol.for("v-txt"),p1=Symbol.for("v-cmt"),nn=null;function f1(t){return t?t.__v_isVNode===!0:!1}var m1=(...t)=>jv(...t),Mv=({key:t})=>t??null,Wi=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?pt(t)||Se(t)||re(t)?{i:hn,r:t,k:e,f:!!r}:t:null);function g1(t,e=null,r=null,n=0,s=null,i=t===Pv?0:1,o=!1,a=!1){let c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Mv(e),ref:e&&Wi(e),scopeId:BA,slotScopeIds:null,children:r,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:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:hn};return a?(xu(c,r),i&128&&t.normalize(c)):r&&(c.shapeFlag|=pt(r)?8:16),process.env.NODE_ENV!=="production"&&c.key!==c.key&&ie("VNode created with invalid key (NaN). VNode type:",c.type),!o&&nn&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&nn.push(c),c}var v1=process.env.NODE_ENV!=="production"?m1:jv;function jv(t,e=null,r=null,n=0,s=null,i=!1){if((!t||t===zA)&&(process.env.NODE_ENV!=="production"&&!t&&ie(`Invalid vnode type when creating vnode: ${t}.`),t=p1),f1(t)){let a=no(t,e,!0);return r&&xu(a,r),!i&&nn&&(a.shapeFlag&6?nn[nn.indexOf(t)]=a:nn.push(a)),a.patchFlag=-2,a}if(qv(t)&&(t=t.__vccOpts),e){e=_1(e);let{class:a,style:c}=e;a&&!pt(a)&&(e.class=mu(a)),Ne(c)&&(Ji(c)&&!G(c)&&(c=Fe({},c)),e.style=fu(c))}let o=pt(t)?1:u1(t)?128:KA(t)?64:Ne(t)?4:re(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&Ji(t)&&(t=N(t),ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
208
|
-
Component that was made reactive: `,t)),
|
|
209
|
-
Stack : ${
|
|
206
|
+
`,...qA(s))}bo(),Lc=!1}function LA(){let t=kn[kn.length-1];if(!t)return[];let e=[];for(;t;){let n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});let r=t.component&&t.component.parent;t=r&&r.vnode}return e}function qA(t){let e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
207
|
+
`],...HA(n))}),e}function HA({vnode:t,recurseCount:e}){let n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${Hv(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...GA(t.props),i]:[s+i]}function GA(t){let e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Av(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Av(t,e,n){return ft(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:xe(e)?(e=Av(t,k(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):re(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=k(e),n?e:[`${t}=`,e])}var Tv={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 yo(t,e,n,r){try{return r?t(...r):t()}catch(s){Su(s,e,n)}}function Nv(t,e,n,r){if(re(t)){let s=yo(t,e,n,r);return s&&sA(s)&&s.catch(i=>{Su(i,e,n)}),s}if(U(t)){let s=[];for(let i=0;i<t.length;i++)s.push(Nv(t[i],e,n,r));return s}else process.env.NODE_ENV!=="production"&&oe(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function Su(t,e,n,r=!0){let s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||nt;if(e){let a=e.parent,l=e.proxy,u=process.env.NODE_ENV!=="production"?Tv[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){let h=a.ec;if(h){for(let c=0;c<h.length;c++)if(h[c](t,l,u)===!1)return}a=a.parent}if(i){_o(),yo(i,null,10,[t,l,u]),bo();return}}UA(t,n,s,r,o)}function UA(t,e,n,r=!0,s=!1){if(process.env.NODE_ENV!=="production"){let i=Tv[e];if(n&&VA(n),oe(`Unhandled error${i?` during execution of ${i}`:""}`),n&&FA(),r)throw t}else if(s)throw t}var ze=[],It=-1,cr=[],rn=null,nr=0,kv=Promise.resolve(),no=null,WA=100;function BA(t){let e=no||kv;return t?e.then(this?t.bind(this):t):e}function KA(t){let e=It+1,n=ze.length;for(;e<n;){let r=e+n>>>1,s=ze[r],i=ds(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function xu(t){if(!(t.flags&1)){let e=ds(t),n=ze[ze.length-1];!n||!(t.flags&2)&&e>=ds(n)?ze.push(t):ze.splice(KA(e),0,t),t.flags|=1,Rv()}}function Rv(){no||(no=kv.then($v))}function Dv(t){U(t)?cr.push(...t):rn&&t.id===-1?rn.splice(nr+1,0,t):t.flags&1||(cr.push(t),t.flags|=1),Rv()}function zA(t){if(cr.length){let e=[...new Set(cr)].sort((n,r)=>ds(n)-ds(r));if(cr.length=0,rn){rn.push(...e);return}for(rn=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),nr=0;nr<rn.length;nr++){let n=rn[nr];process.env.NODE_ENV!=="production"&&Iv(t,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}rn=null,nr=0}}var ds=t=>t.id==null?t.flags&2?-1:1/0:t.id;function $v(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);let e=process.env.NODE_ENV!=="production"?n=>Iv(t,n):or;try{for(It=0;It<ze.length;It++){let n=ze[It];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&e(n))continue;n.flags&4&&(n.flags&=-2),yo(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;It<ze.length;It++){let n=ze[It];n&&(n.flags&=-2)}It=-1,ze.length=0,zA(t),no=null,(ze.length||cr.length)&&$v(t)}}function Iv(t,e){let n=t.get(e)||0;if(n>WA){let r=e.i,s=r&&qv(r.type);return Su(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}var qc=new Map;process.env.NODE_ENV!=="production"&&(vo().__VUE_HMR_RUNTIME__={createRecord:Hc(YA),rerender:Hc(JA),reload:Hc(XA)});var ro=new Map;function YA(t,e){return ro.has(t)?!1:(ro.set(t,{initialDef:so(e),instances:new Set}),!0)}function so(t){return Gv(t)?t.__vccOpts:t}function JA(t,e){let n=ro.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,so(r.type).render=e),r.renderCache=[],r.update()}))}function XA(t,e){let n=ro.get(t);if(!n)return;e=so(e),av(n.initialDef,e);let r=[...n.instances];for(let s=0;s<r.length;s++){let i=r[s],o=so(i.type),a=qc.get(o);a||(o!==n.initialDef&&av(o,e),qc.set(o,a=new Set)),a.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(a.add(i),i.ceReload(e.styles),a.delete(i)):i.parent?xu(()=>{i.parent.update(),a.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"&&window.location.reload(),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}Dv(()=>{qc.clear()})}function av(t,e){Le(t,e);for(let n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Hc(t){return(e,n)=>{try{return t(e,n)}catch{}}}var dr=null,ZA=null,QA=t=>t.__isTeleport;function Pv(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Pv(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}vo().requestIdleCallback;vo().cancelIdleCallback;var e1=Symbol.for("v-ndc"),iu=t=>t?N1(t)?k1(t):iu(t.parent):null,as=Le(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>process.env.NODE_ENV!=="production"?ln(t.props):t.props,$attrs:t=>process.env.NODE_ENV!=="production"?ln(t.attrs):t.attrs,$slots:t=>process.env.NODE_ENV!=="production"?ln(t.slots):t.slots,$refs:t=>process.env.NODE_ENV!=="production"?ln(t.refs):t.refs,$parent:t=>iu(t.parent),$root:t=>iu(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?r1(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{xu(t.update)}),$nextTick:t=>t.n||(t.n=BA.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?f1.bind(t):or}),Gc=(t,e)=>t!==nt&&!t.__isScriptSetup&&te(t,e),t1={get({_:t},e){if(e==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=t;if(process.env.NODE_ENV!=="production"&&e==="__isVue")return!0;let u;if(e[0]!=="$"){let p=o[e];if(p!==void 0)switch(p){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(Gc(r,e))return o[e]=1,r[e];if(s!==nt&&te(s,e))return o[e]=2,s[e];if((u=t.propsOptions[0])&&te(u,e))return o[e]=3,i[e];if(n!==nt&&te(n,e))return o[e]=4,n[e];(!__VUE_OPTIONS_API__||n1)&&(o[e]=0)}}let h=as[e],c,d;if(h)return e==="$attrs"?(he(t.attrs,"get",""),process.env.NODE_ENV):process.env.NODE_ENV!=="production"&&e==="$slots"&&he(t,"get",e),h(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==nt&&te(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,te(d,e))return d[e];process.env.NODE_ENV},set({_:t},e,n){let{data:r,setupState:s,ctx:i}=t;return Gc(s,e)?(s[e]=n,!0):process.env.NODE_ENV!=="production"&&s.__isScriptSetup&&te(s,e)?(oe(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):r!==nt&&te(r,e)?(r[e]=n,!0):te(t.props,e)?(process.env.NODE_ENV!=="production"&&oe(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(process.env.NODE_ENV!=="production"&&oe(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(i,e,{enumerable:!0,configurable:!0,value:n}):i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||t!==nt&&te(t,o)||Gc(e,o)||(a=i[0])&&te(a,o)||te(r,o)||te(as,o)||te(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:te(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};process.env.NODE_ENV!=="production"&&(t1.ownKeys=t=>(oe("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function lv(t){return U(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}var n1=!0;function r1(t){let e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e),l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(u=>io(l,u,o,!0)),io(l,e,o)),ke(e)&&i.set(e,l),l}function io(t,e,n,r=!1){let{mixins:s,extends:i}=e;i&&io(t,i,n,!0),s&&s.forEach(o=>io(t,o,n,!0));for(let o in e)if(r&&o==="expose")process.env.NODE_ENV!=="production"&&oe('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{let a=s1[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}var s1={data:cv,props:dv,emits:dv,methods:ss,computed:ss,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:ss,directives:ss,watch:o1,provide:cv,inject:i1};function cv(t,e){return e?t?function(){return Le(re(t)?t.call(this,this):t,re(e)?e.call(this,this):e)}:e:t}function i1(t,e){return ss(uv(t),uv(e))}function uv(t){if(U(t)){let e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ce(t,e){return t?[...new Set([].concat(t,e))]:e}function ss(t,e){return t?Le(Object.create(null),t,e):e}function dv(t,e){return t?U(t)&&U(e)?[...new Set([...t,...e])]:Le(Object.create(null),lv(t),lv(e??{})):e}function o1(t,e){if(!t)return e;if(!e)return t;let n=Le(Object.create(null),t);for(let r in e)n[r]=Ce(t[r],e[r]);return n}var a1=null;function l1(t,e,n=!1){let r=fs||dr;if(r||a1){let s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&re(e)?e.call(r&&r.proxy):e;process.env.NODE_ENV!=="production"&&oe(`injection "${String(t)}" not found.`)}else process.env.NODE_ENV!=="production"&&oe("inject() can only be used inside setup() or functional components.")}var c1={},Mv=t=>Object.getPrototypeOf(t)===c1,u1=v1,d1=Symbol.for("v-scx"),h1=()=>{{let t=l1(d1);return t||process.env.NODE_ENV!=="production"&&oe("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function p1(t,e,n=nt){let{immediate:r,deep:s,flush:i,once:o}=n;process.env.NODE_ENV!=="production"&&!e&&(r!==void 0&&oe('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&oe('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&oe('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));let a=Le({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=oe);let l=e&&r||!e&&i!=="post",u;if(ao){if(i==="sync"){let p=h1();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){let p=()=>{};return p.stop=or,p.resume=or,p.pause=or,p}}let h=fs;a.call=(p,f,g)=>Nv(p,h,f,g);let c=!1;i==="post"?a.scheduler=p=>{u1(p,h&&h.suspense)}:i!=="sync"&&(c=!0,a.scheduler=(p,f)=>{f?p():xu(p)}),a.augmentJob=p=>{e&&(p.flags|=4),c&&(p.flags|=2,h&&(p.id=h.uid,p.i=h))};let d=jA(t,e,a);return ao&&(u?u.push(d):l&&d()),d}function f1(t,e,n){let r=this.proxy,s=ft(t)?t.includes(".")?m1(r,t):()=>r[t]:t.bind(r,r),i;re(e)?i=e:(i=e.handler,n=e);let o=T1(this),a=p1(s,i.bind(r),n);return o(),a}function m1(t,e){let n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}var g1=t=>t.__isSuspense;function v1(t,e){e&&e.pendingBranch?U(t)?e.effects.push(...t):e.effects.push(t):Dv(t)}var jv=Symbol.for("v-fgt"),_1=Symbol.for("v-txt"),b1=Symbol.for("v-cmt"),sr=null;function y1(t){return t?t.__v_isVNode===!0:!1}var w1=(...t)=>Fv(...t),Vv=({key:t})=>t??null,zi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ft(t)||xe(t)||re(t)?{i:dr,r:t,k:e,f:!!n}:t:null);function C1(t,e=null,n=null,r=0,s=null,i=t===jv?0:1,o=!1,a=!1){let l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Vv(e),ref:e&&zi(e),scopeId:ZA,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:dr};return a?(Ou(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=ft(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&oe("VNode created with invalid key (NaN). VNode type:",l.type),!o&&sr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&sr.push(l),l}var E1=process.env.NODE_ENV!=="production"?w1:Fv;function Fv(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===e1)&&(process.env.NODE_ENV!=="production"&&!t&&oe(`Invalid vnode type when creating vnode: ${t}.`),t=b1),y1(t)){let a=oo(t,e,!0);return n&&Ou(a,n),!i&&sr&&(a.shapeFlag&6?sr[sr.indexOf(t)]=a:sr.push(a)),a.patchFlag=-2,a}if(Gv(t)&&(t=t.__vccOpts),e){e=S1(e);let{class:a,style:l}=e;a&&!ft(a)&&(e.class=vu(a)),ke(l)&&(Qi(l)&&!U(l)&&(l=Le({},l)),e.style=gu(l))}let o=ft(t)?1:g1(t)?128:QA(t)?64:ke(t)?4:re(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&Qi(t)&&(t=k(t),oe("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
208
|
+
Component that was made reactive: `,t)),C1(t,e,n,r,s,o,i,!0)}function S1(t){return t?Qi(t)||Mv(t)?Le({},t):t:null}function oo(t,e,n=!1,r=!1){let{props:s,ref:i,patchFlag:o,children:a,transition:l}=t,u=e?O1(s||{},e):s,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Vv(u),ref:e&&e.ref?n&&i?U(i)?i.concat(zi(e)):[i,zi(e)]:zi(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&U(a)?a.map(Lv):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==jv?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&oo(t.ssContent),ssFallback:t.ssFallback&&oo(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Pv(h,l.clone(h)),h}function Lv(t){let e=oo(t);return U(t.children)&&(e.children=t.children.map(Lv)),e}function x1(t=" ",e=0){return E1(_1,null,t,e)}function Ou(t,e){let n=0,{shapeFlag:r}=t;if(e==null)e=null;else if(U(e))n=16;else if(typeof e=="object")if(r&65){let s=e.default;s&&(s._c&&(s._d=!1),Ou(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!Mv(e)&&(e._ctx=dr);else re(e)?(e={default:e,_ctx:dr},n=32):(e=String(e),r&64?(n=16,e=[x1(e)]):n=8);t.children=e,t.shapeFlag|=n}function O1(...t){let e={};for(let n=0;n<t.length;n++){let r=t[n];for(let s in r)if(s==="class")e.class!==r.class&&(e.class=vu([e.class,r.class]));else if(s==="style")e.style=gu([e.style,r.style]);else if(tA(s)){let i=e[s],o=r[s];o&&i!==o&&!(U(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=r[s])}return e}var fs=null,A1=()=>fs||dr,ou;{let t=vo(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};ou=e("__VUE_INSTANCE_SETTERS__",n=>fs=n),e("__VUE_SSR_SETTERS__",n=>ao=n)}var T1=t=>{let e=fs;return ou(t),t.scope.on(),()=>{t.scope.off(),ou(e)}};function N1(t){return t.vnode.shapeFlag&4}var ao=!1;process.env.NODE_ENV;function k1(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(IA(kA(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in as)return as[n](t)},has(e,n){return n in e||n in as}})):t.proxy}var R1=/(?:^|[-_])(\w)/g,D1=t=>t.replace(R1,e=>e.toUpperCase()).replace(/[-_]/g,"");function qv(t,e=!0){return re(t)?t.displayName||t.name:t.name||e&&t.__name}function Hv(t,e,n=!1){let r=qv(e);if(!r&&e.__file){let s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t&&t.parent){let s=i=>{for(let o in i)if(i[o]===e)return o};r=s(t.components||t.parent.type.components)||s(t.appContext.components)}return r?D1(r):n?"App":"Anonymous"}function Gv(t){return re(t)&&"__vccOpts"in t}var au=(t,e)=>{let n=PA(t,e,ao);if(process.env.NODE_ENV!=="production"){let r=A1();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function $1(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;let t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(c){return ke(c)?c.__isVue?["div",t,"VueInstance"]:xe(c)?["div",{},["span",t,h(c)],"<",a("_value"in c?c._value:c),">"]:lr(c)?["div",{},["span",t,Re(c)?"ShallowReactive":"Reactive"],"<",a(c),`>${jt(c)?" (readonly)":""}`]:jt(c)?["div",{},["span",t,Re(c)?"ShallowReadonly":"Readonly"],"<",a(c),">"]:null:null},hasBody(c){return c&&c.__isVue},body(c){if(c&&c.__isVue)return["div",{},...i(c.$)]}};function i(c){let d=[];c.type.props&&c.props&&d.push(o("props",k(c.props))),c.setupState!==nt&&d.push(o("setup",c.setupState)),c.data!==nt&&d.push(o("data",k(c.data)));let p=l(c,"computed");p&&d.push(o("computed",p));let f=l(c,"inject");return f&&d.push(o("injected",f)),d.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:c}]]),d}function o(c,d){return d=Le({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},c],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",r,p+": "],a(d[p],!1)])]]:["span",{}]}function a(c,d=!0){return typeof c=="number"?["span",e,c]:typeof c=="string"?["span",n,JSON.stringify(c)]:typeof c=="boolean"?["span",r,c]:ke(c)?["object",{object:d?k(c):c}]:["span",n,String(c)]}function l(c,d){let p=c.type;if(re(p))return;let f={};for(let g in c.ctx)u(p,g,d)&&(f[g]=c.ctx[g]);return f}function u(c,d,p){let f=c[p];if(U(f)&&f.includes(d)||ke(f)&&d in f||c.extends&&u(c.extends,d,p)||c.mixins&&c.mixins.some(g=>u(g,d,p)))return!0}function h(c){return Re(c)?"ShallowRef":c.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;function I1(){$1()}process.env.NODE_ENV!=="production"&&I1();var P1="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",M1=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=P1[n[t]&63];return e};function j1(t,e=!0,n=!1){let r=eo(),s,i=eo(!1),o=()=>{},a=new Proxy(t,{apply:function(h,c,d){let p=h(...d);if(p instanceof Error){if(r.value=p,s=p,e)throw o(),p}else i.value=!0,r.value=void 0,s=!0,o()}}),l=()=>{},u=new Proxy(h=>{r.value=h},{apply:function(h,c,d){h(...d),l(...d)}});return{promise:new Promise((h,c)=>{if(e&&s instanceof Error){c(s);return}else if(s===!0){h();return}let d;n&&(d=setTimeout(()=>{let p=new Error("timeout!");r.value=p,e&&c(p)},n)),o=()=>{d&&(clearTimeout(d),d=void 0),h()}}),callback:a,onError:u,resolved:au(()=>i.value),error:au(()=>r.value)}}function lu(){return M1()}function V1(){let t={},e={},n=new WeakMap,r={};return Object.freeze({registerAgg(s){if(s.isInitialized.value)throw new Error("Agg must register before initialized");if(r[s._code])throw new Error("Agg already registered");s.type==="MultiInstance"&&s.api.events.destroyed.watchPublish(()=>{delete r[s._code]}),r[s._code]=s;let i=[];for(let o of Object.values(t))o.mount({api:s.api,aggHash:s._code,isInitialized:s.isInitialized});for(let o of Object.values(e))o.mount({api:s.api,aggHash:s._code}),i.push(o._code);n.set(s,i)},createSetupPlugin(s){let i;return s instanceof Function?i=s():i=s,Object.freeze({_code:lu(),type:"Setup",mount(o){if(o.isInitialized.value)throw new Error("Can not setup after initialized");i.mount({api:o.api,aggHash:o.aggHash})}})},createHotSwapPlugin(s){let i;return s instanceof Function?i=s():i=s,Object.freeze({_code:lu(),type:"HotSwap",mount:i.mount,unmount:i.unmount})},registerPlugin(s){if(s.type==="Setup"){if(t[s._code])throw new Error("Plugin already registered");t[s._code]=s;for(let i in r)s.mount({api:r[i].api,aggHash:r[i]._code,isInitialized:r[i].isInitialized})}else if(s.type==="HotSwap"){e[s._code]=s;for(let i in r)n.has(r[i])&&!n.get(r[i]).includes(s._code)&&(s.mount({api:r[i].api,aggHash:r[i]._code}),n.get(r[i]).push(s._code))}else isNever(s)},unregisterPlugin(s){if(s.type==="Setup")throw new Error("Can not unregister setup plugin");if(s.type==="HotSwap"){for(let i in r)n.has(r[i])&&n.get(r[i]).includes(s._code)&&s.unmount({api:r[i].api,aggHash:r[i]._code});delete e[s._code]}else isNever(s)}})}function F1(t){return V1()}function L1(t){let e=q1(t);return ln({states:e.states,commands:e.commands,events:e.events})}function q1(t){let e=t.states;for(let o of Object.keys(t.states))e[o]=Zi(e[o]);let n=ln(t.states),r=Zi(t.commands),s={},i=t.events;for(let o in t.events)s[o]=i[o].api;return ln({states:n,commands:r,events:ln(s),destroy:t.destroy})}function H1(t){let{callback:e,onError:n,promise:r,resolved:s}=j1(()=>{},!1,5e3);function i(c){if(s.value===!0)throw new Error("Agg already initialized");o.push(c())}let o=[],a=t({onCreated(c){Promise.resolve().then(c)},onBeforeInitialize:i,isInitialized:au(()=>s.value),untilInitialized:r});setTimeout(()=>Promise.all(o).then(()=>{e()}).catch(c=>{n(c)}));let l=a.states||{},u=a.commands||{},h=a.events||{};return{_code:lu(),type:"Singleton",api:L1({states:l,commands:u,events:h,destroy:()=>{}}),isInitialized:s,async untilInitialized(){return await r.catch(c=>{throw new Error(`Failed to initialize Agg: ${c.message}
|
|
209
|
+
Stack : ${c.stack||"unkown"}`)})}}}var Ki;function G1(t){return H1(()=>{let e=eo(t),n=eo({}),r=()=>[],s=()=>[],i=()=>[],o=()=>[],a=()=>[],l=()=>[],u=()=>[];return{states:{designer:e,context:n},commands:{genCodeFiles(){return u()},clearCaches(){},setContext(h){n.value=h},setDomainDesigner(h){this.clearCaches(),e.value=h},_genInfoCode(...h){return r(...h)},_setInfoCodeProvider(h){r=h},_genCommandCode(...h){return s(...h)},_setCommandCodeProvider(h){s=h},_genFacadeCommandCode(...h){return i(...h)},_setFacadeCommandCodeProvider(h){i=h},_genAggCode(...h){return o(...h)},_setAggCodeProvider(h){o=h},_genEventCode(...h){return a(...h)},_setEventCodeProvider(h){a=h},_genReadModelCode(...h){return l(...h)},_setReadModelCodeProvider(h){l=h},_setCodeFileProvider(h){u=h}}}})}var hr=F1();function Uv(t){if(!Ki){if(!t)throw new Error("designer is required");Ki=G1(t),hr.registerAgg(Ki)}return Ki.api}function Wv(t){return t&&t._attributes&&t._attributes.rule==="Info"}function U1(t){return t&&t._attributes&&t._attributes.rule==="Agg"}function W1(t){return t&&t._attributes&&t._attributes.rule==="Command"}function B1(t){return t&&t._attributes&&t._attributes.rule==="FacadeCommand"}function K1(t){return t&&t._attributes&&t._attributes.rule==="Event"}function z1(t){return t&&t._attributes&&t._attributes.rule==="ReadModel"}var cu=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);var Y1=()=>{},J1=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),wo=Object.assign,mt=Array.isArray,In=t=>typeof t=="function",un=t=>typeof t=="string",X1=t=>typeof t=="symbol",Rn=t=>t!==null&&typeof t=="object",hv,Co=()=>hv||(hv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Au(t){if(mt(t)){let e={};for(let n=0;n<t.length;n++){let r=t[n],s=un(r)?tT(r):Au(r);if(s)for(let i in s)e[i]=s[i]}return e}else if(un(t)||Rn(t))return t}var Z1=/;(?![^(]*\))/g,Q1=/:([^]+)/,eT=/\/\*[^]*?\*\//g;function tT(t){let e={};return t.replace(eT,"").split(Z1).forEach(n=>{if(n){let r=n.split(Q1);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Tu(t){let e="";if(un(t))e=t;else if(mt(t))for(let n=0;n<t.length;n++){let r=Tu(t[n]);r&&(e+=r+" ")}else if(Rn(t))for(let n in t)t[n]&&(e+=n+" ");return e.trim()}Symbol(process.env.NODE_ENV!=="production"?"Object iterate":"");Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":"");Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(X1));function Bv(t){return uu(t)?Bv(t.__v_raw):!!(t&&t.__v_isReactive)}function uu(t){return!!(t&&t.__v_isReadonly)}function Uc(t){return!!(t&&t.__v_isShallow)}function du(t){return t?!!t.__v_raw:!1}function Dn(t){let e=t&&t.__v_raw;return e?Dn(e):t}function Nu(t){return t?t.__v_isRef===!0:!1}var $n=[];function nT(t){$n.push(t)}function rT(){$n.pop()}var Wc=!1;function lo(t,...e){if(Wc)return;Wc=!0;let n=$n.length?$n[$n.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=sT();if(r)ku(r,n,11,[t+e.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${o_(n,i.type)}>`).join(`
|
|
210
210
|
`),s]);else{let i=[`[Vue warn]: ${t}`,...e];s.length&&i.push(`
|
|
211
|
-
`,...
|
|
212
|
-
`],...
|
|
213
|
-
Component that was made reactive: `,t)),
|
|
214
|
-
`}getContent(){return this.content}getName(){return this.name}setName(e){this.name=e}getParentDir(){return this.parentDir}setParentDir(e){this.parentDir=e}},
|
|
215
|
-
`)}]});function i(o){let a=[],
|
|
216
|
-
${
|
|
217
|
-
`)),
|
|
218
|
-
`)})
|
|
219
|
-
`)})}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
`))
|
|
224
|
-
`)}
|
|
211
|
+
`,...iT(s))}Wc=!1}function sT(){let t=$n[$n.length-1];if(!t)return[];let e=[];for(;t;){let n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});let r=t.component&&t.component.parent;t=r&&r.vnode}return e}function iT(t){let e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
212
|
+
`],...oT(n))}),e}function oT({vnode:t,recurseCount:e}){let n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${o_(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...aT(t.props),i]:[s+i]}function aT(t){let e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Kv(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Kv(t,e,n){return un(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Nu(e)?(e=Kv(t,Dn(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):In(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Dn(e),n?e:[`${t}=`,e])}var zv={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 ku(t,e,n,r){try{return r?t(...r):t()}catch(s){Yv(s,e,n)}}function Yv(t,e,n,r=!0){let s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||cu;if(e){let a=e.parent,l=e.proxy,u=process.env.NODE_ENV!=="production"?zv[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){let h=a.ec;if(h){for(let c=0;c<h.length;c++)if(h[c](t,l,u)===!1)return}a=a.parent}if(i){ku(i,null,10,[t,l,u]);return}}lT(t,n,s,r,o)}function lT(t,e,n,r=!0,s=!1){if(process.env.NODE_ENV!=="production"){let i=zv[e];if(n&&nT(n),lo(`Unhandled error${i?` during execution of ${i}`:""}`),n&&rT(),r)throw t}else if(s)throw t}var Ye=[],Pt=-1,ur=[],sn=null,rr=0,cT=Promise.resolve(),hu=null,uT=100;function dT(t){let e=Pt+1,n=Ye.length;for(;e<n;){let r=e+n>>>1,s=Ye[r],i=hs(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function hT(t){if(!(t.flags&1)){let e=hs(t),n=Ye[Ye.length-1];!n||!(t.flags&2)&&e>=hs(n)?Ye.push(t):Ye.splice(dT(e),0,t),t.flags|=1,Jv()}}function Jv(){hu||(hu=cT.then(Xv))}function pT(t){mt(t)?ur.push(...t):sn&&t.id===-1?sn.splice(rr+1,0,t):t.flags&1||(ur.push(t),t.flags|=1),Jv()}function fT(t){if(ur.length){let e=[...new Set(ur)].sort((n,r)=>hs(n)-hs(r));if(ur.length=0,sn){sn.push(...e);return}for(sn=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),rr=0;rr<sn.length;rr++){let n=sn[rr];process.env.NODE_ENV!=="production"&&Zv(t,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}sn=null,rr=0}}var hs=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Xv(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);let e=process.env.NODE_ENV!=="production"?n=>Zv(t,n):Y1;try{for(Pt=0;Pt<Ye.length;Pt++){let n=Ye[Pt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&e(n))continue;n.flags&4&&(n.flags&=-2),ku(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Pt<Ye.length;Pt++){let n=Ye[Pt];n&&(n.flags&=-2)}Pt=-1,Ye.length=0,fT(t),hu=null,(Ye.length||ur.length)&&Xv(t)}}function Zv(t,e){let n=t.get(e)||0;if(n>uT){let r=e.i,s=r&&i_(r.type);return Yv(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}var Bc=new Map;process.env.NODE_ENV!=="production"&&(Co().__VUE_HMR_RUNTIME__={createRecord:Kc(mT),rerender:Kc(gT),reload:Kc(vT)});var co=new Map;function mT(t,e){return co.has(t)?!1:(co.set(t,{initialDef:uo(e),instances:new Set}),!0)}function uo(t){return a_(t)?t.__vccOpts:t}function gT(t,e){let n=co.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,uo(r.type).render=e),r.renderCache=[],r.update()}))}function vT(t,e){let n=co.get(t);if(!n)return;e=uo(e),pv(n.initialDef,e);let r=[...n.instances];for(let s=0;s<r.length;s++){let i=r[s],o=uo(i.type),a=Bc.get(o);a||(o!==n.initialDef&&pv(o,e),Bc.set(o,a=new Set)),a.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(a.add(i),i.ceReload(e.styles),a.delete(i)):i.parent?hT(()=>{i.parent.update(),a.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"&&window.location.reload(),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}pT(()=>{Bc.clear()})}function pv(t,e){wo(t,e);for(let n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Kc(t){return(e,n)=>{try{return t(e,n)}catch{}}}var ho=null,_T=null,bT=t=>t.__isTeleport;function Qv(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Qv(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}Co().requestIdleCallback;Co().cancelIdleCallback;var yT=Symbol.for("v-ndc");process.env.NODE_ENV;var wT={},e_=t=>Object.getPrototypeOf(t)===wT,CT=t=>t.__isSuspense,t_=Symbol.for("v-fgt"),ET=Symbol.for("v-txt"),ST=Symbol.for("v-cmt"),ir=null;function xT(t){return t?t.__v_isVNode===!0:!1}var OT=(...t)=>r_(...t),n_=({key:t})=>t??null,Yi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?un(t)||Nu(t)||In(t)?{i:ho,r:t,k:e,f:!!n}:t:null);function AT(t,e=null,n=null,r=0,s=null,i=t===t_?0:1,o=!1,a=!1){let l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&n_(e),ref:e&&Yi(e),scopeId:_T,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ho};return a?(Ru(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=un(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&lo("VNode created with invalid key (NaN). VNode type:",l.type),!o&&ir&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ir.push(l),l}var TT=process.env.NODE_ENV!=="production"?OT:r_;function r_(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===yT)&&(process.env.NODE_ENV!=="production"&&!t&&lo(`Invalid vnode type when creating vnode: ${t}.`),t=ST),xT(t)){let a=po(t,e,!0);return n&&Ru(a,n),!i&&ir&&(a.shapeFlag&6?ir[ir.indexOf(t)]=a:ir.push(a)),a.patchFlag=-2,a}if(a_(t)&&(t=t.__vccOpts),e){e=NT(e);let{class:a,style:l}=e;a&&!un(a)&&(e.class=Tu(a)),Rn(l)&&(du(l)&&!mt(l)&&(l=wo({},l)),e.style=Au(l))}let o=un(t)?1:CT(t)?128:bT(t)?64:Rn(t)?4:In(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&du(t)&&(t=Dn(t),lo("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
213
|
+
Component that was made reactive: `,t)),AT(t,e,n,r,s,o,i,!0)}function NT(t){return t?du(t)||e_(t)?wo({},t):t:null}function po(t,e,n=!1,r=!1){let{props:s,ref:i,patchFlag:o,children:a,transition:l}=t,u=e?RT(s||{},e):s,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&n_(u),ref:e&&e.ref?n&&i?mt(i)?i.concat(Yi(e)):[i,Yi(e)]:Yi(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&mt(a)?a.map(s_):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==t_?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&po(t.ssContent),ssFallback:t.ssFallback&&po(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Qv(h,l.clone(h)),h}function s_(t){let e=po(t);return mt(t.children)&&(e.children=t.children.map(s_)),e}function kT(t=" ",e=0){return TT(ET,null,t,e)}function Ru(t,e){let n=0,{shapeFlag:r}=t;if(e==null)e=null;else if(mt(e))n=16;else if(typeof e=="object")if(r&65){let s=e.default;s&&(s._c&&(s._d=!1),Ru(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!e_(e)&&(e._ctx=ho);else In(e)?(e={default:e,_ctx:ho},n=32):(e=String(e),r&64?(n=16,e=[kT(e)]):n=8);t.children=e,t.shapeFlag|=n}function RT(...t){let e={};for(let n=0;n<t.length;n++){let r=t[n];for(let s in r)if(s==="class")e.class!==r.class&&(e.class=Tu([e.class,r.class]));else if(s==="style")e.style=Au([e.style,r.style]);else if(J1(s)){let i=e[s],o=r[s];o&&i!==o&&!(mt(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=r[s])}return e}{let t=Co(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};e("__VUE_INSTANCE_SETTERS__",n=>n),e("__VUE_SSR_SETTERS__",n=>n)}process.env.NODE_ENV;var DT=/(?:^|[-_])(\w)/g,$T=t=>t.replace(DT,e=>e.toUpperCase()).replace(/[-_]/g,"");function i_(t,e=!0){return In(t)?t.displayName||t.name:t.name||e&&t.__name}function o_(t,e,n=!1){let r=i_(e);if(!r&&e.__file){let s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t&&t.parent){let s=i=>{for(let o in i)if(i[o]===e)return o};r=s(t.components||t.parent.type.components)||s(t.appContext.components)}return r?$T(r):n?"App":"Anonymous"}function a_(t){return In(t)&&"__vccOpts"in t}function IT(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;let t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(c){return Rn(c)?c.__isVue?["div",t,"VueInstance"]:Nu(c)?["div",{},["span",t,h(c)],"<",a("_value"in c?c._value:c),">"]:Bv(c)?["div",{},["span",t,Uc(c)?"ShallowReactive":"Reactive"],"<",a(c),`>${uu(c)?" (readonly)":""}`]:uu(c)?["div",{},["span",t,Uc(c)?"ShallowReadonly":"Readonly"],"<",a(c),">"]:null:null},hasBody(c){return c&&c.__isVue},body(c){if(c&&c.__isVue)return["div",{},...i(c.$)]}};function i(c){let d=[];c.type.props&&c.props&&d.push(o("props",Dn(c.props))),c.setupState!==cu&&d.push(o("setup",c.setupState)),c.data!==cu&&d.push(o("data",Dn(c.data)));let p=l(c,"computed");p&&d.push(o("computed",p));let f=l(c,"inject");return f&&d.push(o("injected",f)),d.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:c}]]),d}function o(c,d){return d=wo({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},c],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",r,p+": "],a(d[p],!1)])]]:["span",{}]}function a(c,d=!0){return typeof c=="number"?["span",e,c]:typeof c=="string"?["span",n,JSON.stringify(c)]:typeof c=="boolean"?["span",r,c]:Rn(c)?["object",{object:d?Dn(c):c}]:["span",n,String(c)]}function l(c,d){let p=c.type;if(In(p))return;let f={};for(let g in c.ctx)u(p,g,d)&&(f[g]=c.ctx[g]);return f}function u(c,d,p){let f=c[p];if(mt(f)&&f.includes(d)||Rn(f)&&d in f||c.extends&&u(c.extends,d,p)||c.mixins&&c.mixins.some(g=>u(g,d,p)))return!0}function h(c){return Uc(c)?"ShallowRef":c.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;function PT(){IT()}process.env.NODE_ENV!=="production"&&PT();function MT(t){return W1(t)||B1(t)||U1(t)||K1(t)||z1(t)}var l_=(t=>(t.Java="java",t.Kotlin="kotlin",t.CSharp="csharp",t.Go="go",t))(l_||{}),Ee=class{imports=new Set;parentDir;name;content="";constructor(e,n){this.parentDir=e,this.name=n}addImport(e){this.imports.add(e)}addImports(e){for(let n of e)this.imports.add(n)}getImports(){return Array.from(this.imports)}appendContent(e){this.content+=e}appendContentln(e){this.content+=e+`
|
|
214
|
+
`}getContent(){return this.content}getName(){return this.name}setName(e){this.name=e}getParentDir(){return this.parentDir}setParentDir(e){this.parentDir=e}},fo;(t=>{(e=>{e.Lombok="Lombok",e.LombokBuilder="LombokBuilder",e.RecordVakueObject="RecordVakueObject",e.CommandHandler="CommandHandler",e.Jpa="Jpa",e.Timezone="Timezone",e.SpringFramework="SpringFramework"})(t.JavaGeneratorAddition||(t.JavaGeneratorAddition={}))})(fo||(fo={}));var mo;(t=>{(e=>{e.ValueClass="ValueClass",e.CommandHandler="CommandHandler",e.Timezone="Timezone"})(t.KotlinGeneratorAddition||(t.KotlinGeneratorAddition={}))})(mo||(mo={}));var pu;(t=>{t.CSharpGeneratorAddition||(t.CSharpGeneratorAddition={})})(pu||(pu={}));var fu;(t=>{t.GoGeneratorAddition||(t.GoGeneratorAddition={})})(fu||(fu={}));var R=Object.freeze(Object.defineProperty({__proto__:null,CodeFile:Ee,Language:l_,get csharp(){return pu},get go(){return fu},isStruct:MT,get java(){return fo},get kotlin(){return mo}},Symbol.toStringTag,{value:"Module"})),I;(t=>{function e(u){return u.trim().split(u.includes("_")?/_|\s/:/(?=[A-Z])/g).map(h=>h.charAt(0).toUpperCase()+h.toLowerCase().slice(1)).join("")}t.stringToUpperCamel=e;function n(u){let h=!0;return u.trim().split(u.includes("_")?/_|\s/:/(?=[A-Z])/g).map(c=>h?(h=!1,c.toLowerCase()):c.charAt(0).toUpperCase()+c.toLowerCase().slice(1)).join("")}t.stringToLowerCamel=n;function r(u){return u.includes("_")?u.toLowerCase():i(u)}t.stringToLowerSnake=r;function s(u){return u.trim().split(/(?=[A-Z])/g).join("_").toUpperCase()}t.camelToUpperSnake=s;function i(u){return u.trim().split(/(?=[A-Z])/g).join("_").toLowerCase()}t.camelToLowerSnake=i;function o(u){return u.trim().split("_").map(h=>h.charAt(0).toUpperCase()+h.slice(1)).join("")}t.snakeToUpperCamel=o;function a(u){return u.trim().charAt(0).toLowerCase()+u.slice(1)}t.lowerFirst=a;function l(u){return u.trim().charAt(0).toUpperCase()+u.slice(1)}t.upperFirst=l})(I||(I={}));var we=fo.JavaGeneratorAddition,c_=hr.createHotSwapPlugin(()=>{let t="value";function e(n){return I.stringToUpperCamel(n._attributes.name)}return{unmount({api:n}){n.commands.clearCaches(),n.commands._setCommandCodeProvider(()=>[]),n.commands._setFacadeCommandCodeProvider(()=>[]),n.commands._setAggCodeProvider(()=>[]),n.commands._setEventCodeProvider(()=>[]),n.commands._setReadModelCodeProvider(()=>[]),n.commands._setCodeFileProvider(()=>[]),n.commands.setContext({})},mount({api:n}){let r=n.states.context;function s(o,a){let l=r.value.additions,u=I.stringToLowerSnake(a._attributes.name).replace(/_/," ");return/\b(time|timestamp|date|deadline|expire)\b/.test(u)?l.has(we.Timezone)?(o.add("java.time.OffsetDateTime"),"OffsetDateTime"):(o.add("java.time.LocalDateTime"),"LocalDateTime"):/\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(u)?"Integer":/\b(price)$/.test(u)?(o.add("java.math.BigDecimal"),"BigDecimal"):/^(if|is)\b/.test(u)?"Boolean":Wv(a)&&(a._attributes.type==="Id"||a._attributes.type==="Version")?"Long":"String"}n.commands._setInfoCodeProvider(o=>{let a=new Set;a.add(r.value.nonNullAnnotation);let l=r.value.nonNullAnnotation.split(".").pop(),u=e(o),h=r.value.additions,c=[];return h.has(we.RecordVakueObject)?(c.push(`public record ${u}(@${l} ${s(a,o)} value) {`),c.push(` public ${u} {`),c.push(" // HACK check value"),c.push(" }"),c.push("}")):h.has(we.Lombok)?(c.push("@lombok.Getter"),c.push(`public class ${u} {`),c.push(` private final ${s(a,o)} value;`),c.push(""),c.push(` public ${u} (@${l} ${s(a,o)} value) {`),c.push(" // HACK check value"),c.push(" this.value = value;"),c.push(" }"),c.push("}")):(c.push(`public class ${e(o)} {`),c.push(` private final ${s(a,o)} value;`),c.push(""),c.push(` public ${u} (@${l} ${s(a,o)} value) {`),c.push(" // HACK check value"),c.push(" this.value = value;"),c.push(" }"),c.push(""),c.push(` public ${s(a,o)} getValue() {`),c.push(" return this.value;"),c.push(" }"),c.push("}")),[{type:"Info",imports:a,content:c.join(`
|
|
215
|
+
`)}]});function i(o){let a=[],l=r.value.additions,u=r.value.nonNullAnnotation.split(".").pop();{let h=new Set;h.add(r.value.nonNullAnnotation);let c=e(o),d=[],p=Object.values(o.inner);for(let f of p)h.add(`${r.value.namespace}.${r.value.moduleName}.${t}.${e(f)}`);if(l.has(we.RecordVakueObject)){l.has(we.LombokBuilder)&&d.push("@lombok.Builder(toBuilder = true)"),d.push(`public record ${c}(`);let f=[];for(let g of p){let v=e(g);f.push(` @${u}
|
|
216
|
+
${v} ${I.lowerFirst(v)}`)}d.push(f.join(`,
|
|
217
|
+
`)),d.push(") {"),d.push(` public ${c} {`),d.push(" // HACK check value"),d.push(" }"),d.push("}")}else if(l.has(we.Lombok)){d.push("@lombok.AllArgsConstructor"),d.push("@lombok.Getter"),l.has(we.LombokBuilder)&&d.push("@lombok.Builder(toBuilder = true)"),d.push(`public class ${c} {`);for(let f of p){let g=e(f);d.push(` @${u}`),d.push(` private final ${g} ${I.lowerFirst(g)};`)}d.push("}")}else{d.push(`public class ${c} {`);for(let v of p){let m=e(v);d.push(` @${u}`),d.push(` private final ${s(h,v)} ${I.lowerFirst(m)};`)}d.push("");let f=[],g=[];for(let v of p){let m=e(v);f.push(`@${u} ${s(h,v)} ${I.lowerFirst(m)}`),g.push(`this.${I.lowerFirst(m)} = ${I.lowerFirst(m)};`)}d.push(` public ${c}(${f.join(", ")}) {`),d.push(` ${g.join(`
|
|
218
|
+
`)}`),d.push(" }");for(let v of p){let m=e(v);d.push(""),d.push(` public ${s(h,v)} get${m} () {`),d.push(` return this.${I.lowerFirst(m)};`),d.push(" }")}d.push("}")}a.push({type:"Command",imports:h,content:d.join(`
|
|
219
|
+
`)})}if(!l.has(we.CommandHandler))return a;{let h=new Set;h.add(r.value.nonNullAnnotation);let c=e(o),d=[];l.has(we.SpringFramework)&&(h.add("org.springframework.stereotype.Component"),d.push("@Component")),l.has(we.Lombok)&&d.push("@lombok.RequiredArgsConstructor"),d.push(`public class ${c}Handler {`);let p=[...n.states.designer.value._getContext().getAssociationMap()[o._attributes.__id]].filter(f=>f._attributes.rule==="Agg");for(let f of p)h.add(`${r.value.namespace}.${r.value.moduleName}.${e(f)}`),d.push(` public ${e(f)} handle(@${u} ${c} command) {`),d.push(" // HACK Implement"),d.push(" }");d.push("}"),a.push({type:"CommandHandler",imports:h,content:d.join(`
|
|
220
|
+
`)})}return a}n.commands._setCommandCodeProvider(i),n.commands._setFacadeCommandCodeProvider(i),n.commands._setAggCodeProvider(o=>{let a=r.value.additions,l=n.states.designer.value,u=r.value.nonNullAnnotation.split(".").pop(),h=e(o),c=[];{let d=new Set;d.add(r.value.nonNullAnnotation);let p=[],f=[],g=[...l._getContext().getAssociationMap()[o._attributes.__id]].filter(v=>v._attributes.rule==="Command"||v._attributes.rule==="FacadeCommand");for(let v of g){let m=e(v);f.push(`public void handle${m}(@${u} ${m} command);`)}p.push(`public interface ${h} {`),p.push(` ${f.join(`
|
|
221
|
+
|
|
222
|
+
`)}`),p.push("}"),c.push({type:"Agg",imports:d,content:p.join(`
|
|
223
|
+
`)})}{let d=new Set;d.add(r.value.nonNullAnnotation);let p=[],f=Object.values(o.inner);for(let g of f)d.add(`${r.value.namespace}.${r.value.moduleName}.${t}.${e(g)}`);if(a.has(we.Lombok)){p.push("@lombok.AllArgsConstructor"),p.push("@lombok.Getter"),p.push(`public class ${h}Impl implements ${h} {`);for(let v of f){let m=e(v);p.push(` @${u}`),p.push(` private ${m} ${I.lowerFirst(m)};`)}let g=[...l._getContext().getAssociationMap()[o._attributes.__id]].filter(v=>v._attributes.rule==="Command"||v._attributes.rule==="FacadeCommand");for(let v of g){let m=e(v);p.push(""),p.push(` public void handle${m}(@${u} ${m} ${I.lowerFirst(m)}) {`),p.push(" // HACK need implement"),p.push(" }")}p.push("}")}else{p.push(`public class ${h}Impl implements ${h} {`);for(let E of f){let N=e(E);p.push(` @${u}`),p.push(` private ${N} ${I.lowerFirst(N)};`)}p.push("");let g=[],v=[];for(let E of f){let N=e(E);g.push(`@${u} ${N} ${I.lowerFirst(N)}`),v.push(`this.${I.lowerFirst(N)} = ${I.lowerFirst(N)};`)}p.push(` public ${h}(${g.join(", ")}) {`),p.push(` ${v.join(`
|
|
224
|
+
`)}`),p.push(" }");for(let E of f){let N=e(E);p.push(""),p.push(` @${u}`),p.push(` public ${N} get${N}() {`),p.push(` return this.${I.lowerFirst(N)};`),p.push(" }")}let m=[...l._getContext().getAssociationMap()[o._attributes.__id]].filter(E=>E._attributes.rule==="Command"||E._attributes.rule==="FacadeCommand");for(let E of m){let N=e(E);p.push(""),p.push(` public void handle${N}(@${u} ${N} ${I.lowerFirst(N)}) {`),p.push(" // HACK need implement"),p.push(" }")}p.push("}")}c.push({type:"AggImpl",imports:d,content:p.join(`
|
|
225
|
+
`)})}return c}),n.commands._setEventCodeProvider(o=>{let a=new Set;a.add(r.value.nonNullAnnotation);let l=r.value.nonNullAnnotation.split(".").pop(),u=r.value.additions,h=e(o),c=[],d=Object.values(o.inner);for(let p of d)a.add(`${r.value.namespace}.${r.value.moduleName}.${t}.${e(p)}`);if(u.has(we.RecordVakueObject)){u.has(we.LombokBuilder)&&c.push("@lombok.Builder(toBuilder = true)"),c.push(`public record ${h}(`);let p=[];for(let f of d){let g=e(f);p.push(` @${l}
|
|
226
|
+
${g} ${I.lowerFirst(g)}`)}c.push(p.join(`,
|
|
227
|
+
`)),c.push(") {"),c.push(` public ${h} {`),c.push(" // HACK check value"),c.push(" }"),c.push("}")}else if(u.has(we.Lombok)){c.push("@lombok.AllArgsConstructor"),c.push("@lombok.Getter"),u.has(we.LombokBuilder)&&c.push("@lombok.Builder(toBuilder = true)"),c.push(`public class ${h} {`);for(let p of d){let f=e(p);c.push(` @${l}`),c.push(` private final ${f} ${I.lowerFirst(f)};`)}c.push("}")}else{c.push(`public class ${h} {`);for(let g of d){let v=e(g);c.push(` @${l}`),c.push(` private final ${v} ${I.lowerFirst(v)};`)}c.push("");let p=[],f=[];for(let g of d){let v=e(g);p.push(`@${l} ${s(a,g)} ${I.lowerFirst(v)}`),f.push(`this.${I.lowerFirst(v)} = ${I.lowerFirst(v)};`)}c.push(` public ${h}(${p.join(", ")}) {`),c.push(` ${f.join(`
|
|
228
|
+
`)}`),c.push(" }");for(let g of d){let v=e(g);c.push(""),c.push(` public ${v} get${v} () {`),c.push(` return this.${I.lowerFirst(v)};`),c.push(" }")}c.push("}")}return[{type:"Event",imports:a,content:c.join(`
|
|
229
|
+
`)}]}),n.commands._setReadModelCodeProvider(()=>[]),n.commands._setCodeFileProvider(()=>{let o=[],a={};function l(p){for(let f of Object.values(p)){let g=[...r.value.namespace.split(/\./),r.value.moduleName,t],v=e(f)+".java";if(a[`${g}/${v}`]===!0)continue;let m=n.commands._genInfoCode(f);if(m.length===0)continue;let E=new Ee(g,v);E.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${t};`),E.appendContentln("");for(let N of m[0].imports)E.appendContentln(`import ${N};`);E.appendContentln(""),E.appendContentln(m[0].content),o.push(E),a[`${g}/${v}`]=!0}}let u=n.states.designer.value._getContext().getCommands();for(let p of u){l(p.inner);let f=n.commands._genCommandCode(p),g=[...r.value.namespace.split(/\./),r.value.moduleName];f.forEach(v=>{if(v.type==="Command"){let m=new Ee(g,e(p)+".java");m.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`),m.appendContentln(""),m.addImports(v.imports);for(let E of v.imports)m.appendContentln(`import ${E};`);m.appendContentln(""),m.appendContentln(v.content),o.push(m)}else if(v.type==="CommandHandler"){let m=new Ee(g,e(p)+"Handler.java");m.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`),m.appendContentln(""),m.addImports(v.imports);for(let E of v.imports)m.appendContentln(`import ${E};`);m.appendContentln(""),m.appendContentln(v.content),o.push(m)}else isNever(v.type)})}let h=n.states.designer.value._getContext().getFacadeCommands();for(let p of h){l(p.inner);let f=n.commands._genFacadeCommandCode(p),g=[...r.value.namespace.split(/\./),r.value.moduleName];f.forEach(v=>{if(v.type==="FacadeCommand"){let m=new Ee(g,e(p)+".java");m.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`),m.appendContentln(""),m.addImports(v.imports);for(let E of v.imports)m.appendContentln(`import ${E};`);m.appendContentln(""),m.appendContentln(v.content),o.push(m)}else isNever(v.type)})}let c=n.states.designer.value._getContext().getAggs();for(let p of c){l(p.inner);let f=n.commands._genAggCode(p),g=[...r.value.namespace.split(/\./),r.value.moduleName];f.forEach(v=>{if(v.type==="Agg"){let m=new Ee(g,e(p)+".java");m.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`),m.appendContentln(""),m.addImports(v.imports);for(let E of v.imports)m.appendContentln(`import ${E};`);m.appendContentln(""),m.appendContentln(v.content),o.push(m)}else if(v.type==="AggImpl"){let m=new Ee(g,e(p)+"Impl.java");m.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`),m.appendContentln(""),m.addImports(v.imports);for(let E of v.imports)m.appendContentln(`import ${E};`);m.appendContentln(""),m.appendContentln(v.content),o.push(m)}else isNever(v.type)})}let d=n.states.designer.value._getContext().getEvents();for(let p of d){l(p.inner);let f=n.commands._genEventCode(p),g=[...r.value.namespace.split(/\./),r.value.moduleName];f.forEach(v=>{let m=new Ee(g,e(p)+".java");m.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`),m.appendContentln(""),m.addImports(v.imports);for(let E of v.imports)m.appendContentln(`import ${E};`);m.appendContentln(""),m.appendContentln(v.content),o.push(m)})}return o})}}}),zc=mo.KotlinGeneratorAddition,u_=hr.createHotSwapPlugin(()=>({unmount({api:t}){t.commands.clearCaches(),t.commands._setCommandCodeProvider(()=>[]),t.commands._setFacadeCommandCodeProvider(()=>[]),t.commands._setAggCodeProvider(()=>[]),t.commands._setEventCodeProvider(()=>[]),t.commands._setReadModelCodeProvider(()=>[]),t.commands._setCodeFileProvider(()=>[]),t.commands.setContext({})},mount({api:t}){let e="value",n=t.states.context;function r(i){return I.stringToUpperCamel(i._attributes.name)}function s(i,o){let a=n.value.additions,l=I.stringToLowerSnake(o._attributes.name).replace(/_/," ");return/\b(time|timestamp|date|deadline|expire)\b/.test(l)?a.has(zc.Timezone)?(i.add("java.time.OffsetDateTime"),"OffsetDateTime"):(i.add("java.time.LocalDateTime"),"LocalDateTime"):/\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l)?"Integer":/\b(price)$/.test(l)?(i.add("java.math.BigDecimal"),"BigDecimal"):/^(if|is)\b/.test(l)?"Boolean":Wv(o)&&(o._attributes.type==="Id"||o._attributes.type==="Version")?"Long":"String"}t.commands._setInfoCodeProvider(i=>{let o=new Set,a=r(i),l=n.value.additions,u=[];return l.has(zc.ValueClass)?(o.add("kotlin.jvm.JvmInline"),u.push("@JvmInline"),u.push(`value class ${a}(val value: ${s(o,i)})`)):u.push(`data class ${a}(val value: ${s(o,i)})`),[{type:"Info",imports:o,content:u.join(`
|
|
230
|
+
`)}]}),t.commands._setCommandCodeProvider(i=>{let o=[],a=n.value.additions;{let l=new Set,u=r(i),h=[],c=Object.values(i.inner);for(let p of c)l.add(`${n.value.namespace}.${n.value.moduleName}.${e}.${r(p)}`);let d=[];for(let p of c){let f=r(p);d.push(`val ${I.lowerFirst(f)}: ${f}`)}h.push(`data class ${u}(${d.join(", ")})`),o.push({type:"Command",imports:l,content:h.join(`
|
|
231
|
+
`)})}if(!a.has(zc.CommandHandler))return o;{let l=new Set,u=r(i),h=[];h.push(`class ${u}Handler {`);let c=[...t.states.designer.value._getContext().getAssociationMap()[i._attributes.__id]].filter(d=>d._attributes.rule==="Agg");for(let d of c)l.add(`${n.value.namespace}.${n.value.moduleName}.${r(d)}`),h.push(` fun handle(command: ${u}): ${r(d)} {`),h.push(" // HACK Implement"),h.push(" }");h.push("}"),o.push({type:"CommandHandler",imports:l,content:h.join(`
|
|
232
|
+
`)})}return o}),t.commands._setFacadeCommandCodeProvider(i=>{let o=new Set,a=r(i),l=[],u=Object.values(i.inner);for(let c of u)o.add(`${n.value.namespace}.${n.value.moduleName}.${e}.${r(c)}`);let h=[];for(let c of u){let d=r(c);h.push(`val ${I.lowerFirst(d)}: ${d}`)}return l.push(`data class ${a}(${h.join(", ")})`),[{type:"FacadeCommand",imports:o,content:l.join(`
|
|
233
|
+
`)}]}),t.commands._setAggCodeProvider(i=>{let o=new Set,a=t.states.designer.value,l=r(i),u=[],h=Object.values(i.inner);for(let f of h)o.add(`${n.value.namespace}.${n.value.moduleName}.${e}.${r(f)}`);let c=[],d=[...a._getContext().getAssociationMap()[i._attributes.__id]].filter(f=>f._attributes.rule==="Command"||f._attributes.rule==="FacadeCommand");for(let f of d){let g=r(f);c.push(`fun handle(command: ${g})`)}u.push(`interface ${l} {`),u.push(` ${c.join(`
|
|
234
|
+
`)}`),u.push("}"),u.push(""),u.push(`class ${l}Impl(`);let p=[];for(let f of h){let g=r(f);p.push(`val ${I.lowerFirst(g)}: ${g}`)}u.push(` ${p.join(`,
|
|
235
|
+
`)}`),u.push(`): ${l} {`);for(let f of d){let g=r(f);u.push(` override fun handle(command: ${g}) {`),u.push(" // HACK Implement"),u.push(" }")}return u.push("}"),[{type:"Agg",imports:o,content:u.join(`
|
|
236
|
+
`)}]}),t.commands._setEventCodeProvider(i=>{let o=new Set,a=r(i),l=[],u=Object.values(i.inner);for(let c of u)o.add(`${n.value.namespace}.${n.value.moduleName}.${e}.${r(c)}`);let h=[];for(let c of u){let d=r(c);h.push(`val ${I.lowerFirst(d)}: ${d}`)}return l.push(`data class ${a}(${h.join(", ")})`),[{type:"Event",imports:o,content:l.join(`
|
|
237
|
+
`)}]}),t.commands._setReadModelCodeProvider(()=>[]),t.commands._setCodeFileProvider(()=>{let i=[],o={};function a(d){for(let p of Object.values(d)){let f=[...n.value.namespace.split(/\./),n.value.moduleName,e],g=r(p)+".kt";if(o[`${f}/${g}`]===!0)continue;let v=t.commands._genInfoCode(p);if(v.length===0)continue;let m=new Ee(f,g);m.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}.${e}`),m.appendContentln("");for(let E of v[0].imports)m.appendContentln(`import ${E}`);m.appendContentln(""),m.appendContentln(v[0].content),i.push(m),o[`${f}/${g}`]=!0}}let l=t.states.designer.value._getContext().getCommands();for(let d of l){a(d.inner);let p=t.commands._genCommandCode(d),f=[...n.value.namespace.split(/\./),n.value.moduleName],g=new Ee(f,r(d)+".kt"),v=[];g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`),g.appendContentln(""),p.forEach(m=>{m.type==="Command"||m.type==="CommandHandler"?(g.addImports(m.imports),v.push(m.content)):isNever(m.type)});for(let m of g.getImports())g.appendContentln(`import ${m}`);g.appendContentln("");for(let m of v)g.appendContentln(m);i.push(g)}let u=t.states.designer.value._getContext().getFacadeCommands();for(let d of u){a(d.inner);let p=t.commands._genFacadeCommandCode(d),f=[...n.value.namespace.split(/\./),n.value.moduleName];p.forEach(g=>{if(g.type==="FacadeCommand"){let v=new Ee(f,r(d)+".kt");v.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`),v.appendContentln(""),v.addImports(g.imports);for(let m of g.imports)v.appendContentln(`import ${m}`);v.appendContentln(""),v.appendContentln(g.content),i.push(v)}else isNever(g.type)})}let h=t.states.designer.value._getContext().getAggs();for(let d of h){a(d.inner);let p=t.commands._genAggCode(d),f=[...n.value.namespace.split(/\./),n.value.moduleName],g=new Ee(f,r(d)+".kt"),v=[];g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`),g.appendContentln(""),p.forEach(m=>{m.type==="Agg"||m.type==="AggImpl"?(g.addImports(m.imports),v.push(m.content)):isNever(m.type)});for(let m of g.getImports())g.appendContentln(`import ${m}`);g.appendContentln("");for(let m of v)g.appendContentln(m);i.push(g)}let c=t.states.designer.value._getContext().getEvents();for(let d of c){a(d.inner);let p=t.commands._genEventCode(d),f=[...n.value.namespace.split(/\./),n.value.moduleName];p.forEach(g=>{if(g.type==="Event"){let v=new Ee(f,r(d)+".kt");v.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`),v.appendContentln(""),v.addImports(g.imports);for(let m of g.imports)v.appendContentln(`import ${m}`);v.appendContentln(""),v.appendContentln(g.content),i.push(v)}else isNever(g.type)})}return i})}}));var f_=W(Lr(),1);var Du=W(Lr(),1);var{t:gt}=ce().commands;async function d_(){let t={},{namespace:e,additions:n}=await(0,Du.default)([{name:"namespace",type:"text",message:gt("question.subcommand.genCode.package"),initial:"com.github.example"},{name:"additions",type:"multiselect",message:gt("question.subcommand.genCode.java.additions"),choices:[{title:R.java.JavaGeneratorAddition.SpringFramework,value:R.java.JavaGeneratorAddition.SpringFramework,selected:!0,description:gt("question.subcommand.genCode.java.additions.springFramework")},{title:R.java.JavaGeneratorAddition.Lombok,value:R.java.JavaGeneratorAddition.Lombok,selected:!0,description:gt("question.subcommand.genCode.java.additions.lombok")},{title:R.java.JavaGeneratorAddition.LombokBuilder,value:R.java.JavaGeneratorAddition.LombokBuilder,description:gt("question.subcommand.genCode.java.additions.lombokBuilder")},{title:R.java.JavaGeneratorAddition.CommandHandler,value:R.java.JavaGeneratorAddition.CommandHandler,selected:!0,description:gt("question.subcommand.genCode.java.additions.commandHandler")},{title:R.java.JavaGeneratorAddition.RecordVakueObject,value:R.java.JavaGeneratorAddition.RecordVakueObject,description:gt("question.subcommand.genCode.java.additions.recordVakueObject")},{title:R.java.JavaGeneratorAddition.Timezone,value:R.java.JavaGeneratorAddition.Timezone,selected:!0,description:gt("question.subcommand.genCode.java.additions.timezone")}],hint:gt("question.subcommand.genCode.additions.hint")}],{onCancel:Be}),r=n.includes(R.java.JavaGeneratorAddition.SpringFramework)?"org.springframework.lang.NonNull":void 0;return r===void 0&&(r=(await(0,Du.default)([{name:"nonNullAnnotation",type:"select",message:gt("question.subcommand.genCode.java.nonNullAnnotation"),choices:[{title:"org.springframework.lang.NonNull",value:"org.springframework.lang.NonNull"},{title:"org.jetbrains.annotations.NotNull",value:"org.jetbrains.annotations.NotNull"},{title:"javax.annotation.Nonnull",value:"javax.annotation.Nonnull"}]}],{onCancel:Be})).nonNullAnnotation),t.namespace=e,t.additions=new Set(n),t.moduleName="",t.nonNullAnnotation=r,t}var h_=W(Lr(),1),{t:pr}=ce().commands;async function p_(){let t={},{namespace:e,additions:n}=await(0,h_.default)([{name:"namespace",type:"text",message:pr("question.subcommand.genCode.package"),initial:"com.github.example"},{name:"additions",type:"multiselect",message:pr("question.subcommand.genCode.kotlin.additions"),choices:[{title:R.kotlin.KotlinGeneratorAddition.CommandHandler,value:R.kotlin.KotlinGeneratorAddition.CommandHandler,selected:!0,description:pr("question.subcommand.genCode.kotlin.additions.commandHandler")},{title:R.kotlin.KotlinGeneratorAddition.ValueClass,value:R.kotlin.KotlinGeneratorAddition.ValueClass,selected:!0,description:pr("question.subcommand.genCode.kotlin.additions.valueClass")},{title:R.kotlin.KotlinGeneratorAddition.Timezone,value:R.kotlin.KotlinGeneratorAddition.Timezone,description:pr("question.subcommand.genCode.kotlin.additions.timezone")}],hint:pr("question.subcommand.genCode.additions.hint")}],{onCancel:Be});return t.namespace=e,t.additions=new Set(n),t}var{t:jT}=ce().commands;function m_(t){return new Ue().name("genCode").option("--source <sourceDir>","ts files' dir").action(e=>{t.currentCommand.value="GenCode",e.source&&(t.args.source=e.source)}).addHelpText("before",`Generate code.
|
|
225
238
|
`).addHelpText("before",`\u751F\u6210\u4EE3\u7801
|
|
226
|
-
`)}async function
|
|
239
|
+
`)}async function g_(t){let e=(await(0,f_.default)([{name:"language",type:"select",message:jT("question.subcommand.genCode.language"),choices:[{title:R.Language.Java,value:R.Language.Java},{title:R.Language.Kotlin,value:R.Language.Kotlin}]}],{onCancel:Be})).language;if(t.args.language=e,e===R.Language.Java)t.args.context=await d_();else if(e===R.Language.Kotlin)t.args.context=await p_();else{if(e===R.Language.CSharp)throw new Error("C# not support, yet...");if(e===R.Language.Go)throw new Error("GoLang not support, yet...");isNever(e)}}async function v_(t){let e=t.webRoot,n=t.source,r=process.env.PACKAGE_MANAGER;C.printInfo("================ Install dependencies: Starting... ================"),r==="bun"?(0,Eo.spawnSync)(`bun i --cwd "${e}"`,{encoding:"utf-8",stdio:"inherit",shell:!0}):r==="pnpm"?(0,Eo.spawnSync)(`pnpm i --prefix "${e}"`,{encoding:"utf-8",stdio:"inherit",shell:!0}):isNever(r),C.printSuccess("================ Install dependencies: Succeeded ================"),C.printInfo("================ Compliling ts code: Starting... ================"),(0,Eo.spawnSync)(`${r==="bun"?"bunx":"pnpx"} zx ${e.replace(/\\/g,"/")}/scripts/build-ts.mjs --source=${n}`,{encoding:"utf-8",stdio:"inherit",shell:!0}),C.printSuccess("================ Compliling ts code: Succeeded ================"),C.printInfo("================ Generating code: Starting... ================");let i=fr.default.readdirSync(ms.default.join(n,".output","esm")),o,a=!1;Wr(`${n.replace(/\\/g,"/")}/.output/${t.language}`);for(let l of i){if(fr.default.statSync(ms.default.join(n,".output","esm",l)).isDirectory()||!l.endsWith(".mjs"))continue;let u=await import(`file://${n.replace(/\\/g,"/")}/.output/esm/${l}`);if(!Ag(u.default))continue;let h=u.default;if(!a){if(t.language===R.Language.Java)hr.registerPlugin(c_);else if(t.language===R.Language.Kotlin)hr.registerPlugin(u_);else{if(t.language===R.Language.CSharp)throw new Error("C# not support, yet...");if(t.language===R.Language.Go)throw new Error("GoLang not support, yet...");isNever(t.language)}a=!0}o=Uv(h),o.commands.setDomainDesigner(h),t.context.moduleName=h._getContext().getModuleName()||l.split(".")[0],o.commands.setContext(t.context);let c=o.commands.genCodeFiles();for(let d of c){let p=ms.default.join(n,".output",t.language,...d.getParentDir());fr.default.existsSync(p)||fr.default.mkdirSync(p,{recursive:!0}),fr.default.writeFileSync(ms.default.join(p,d.getName()),d.getContent(),"utf-8")}}C.printSuccess("================ Generating code: Succeeded ================")}var{t:mr,setCurrentLang:VT}=ce().commands;function FT(){return Iu.default.resolve(Iu.default.dirname(process.argv[1]),"..").replace(/\\/g,"/")}var LT=vi(()=>{let t=(0,dn.ref)(!1),e=(0,dn.ref)("none"),n=FT(),r=process.cwd(),s=(0,dn.reactive)({webRoot:n,source:r}),i=(0,dn.reactive)({webRoot:n,source:r}),o=(0,dn.reactive)({webRoot:n,source:r}),a=(0,dn.reactive)({webRoot:n,source:r});new Ue().name("domain-designer-cli").version(Q.version).addOption(new dh("--debug","debug mode").default(!1)).hook("preAction",h=>{h.opts().debug===!0&&C.printDebug("\u8C03\u8BD5\u6A21\u5F0F\u5DF2\u5F00\u542F"),process.env.DEBUG_MODE}).addCommand(ig({currentCommand:e,args:s})).addCommand(cg({currentCommand:e})).addCommand(hg({currentCommand:e,args:i})).addCommand(mg({currentCommand:e,args:o})).addCommand(m_({currentCommand:e,args:a})).parse(process.argv),"GenCode"!==e.value&&"none"!==e.value&&(t.value=!0),process.env.DEBUG_MODE==="T"&&(C.printDebug(typeof process.env.DEBUG_MODE,process.env.DEBUG_MODE),C.printDebug("- DEBUG: args\u4FE1\u606F\uFF1A",`[
|
|
227
240
|
${process.argv.join(`
|
|
228
241
|
`)}
|
|
229
|
-
]`),
|
|
242
|
+
]`),C.printDebug("- DEBUG: packageManager",process.env.PACKAGE_MANAGER));async function u(){let{langurage:h}=await(0,$u.default)([{name:"langurage",type:"select",message:"Choose The language during this creation process",choices:[{title:"\u4E2D\u6587",value:"zh"},{title:"English",value:"en"}]}],{onCancel:Be});if(VT(h),e.value==="none"){let d=await(0,$u.default)([{name:"subcommand",type:"select",message:mr("question.subcommand"),choices:[{title:mr("question.subcommand.genCode"),value:"GenCode"},{title:mr("question.subcommand.init"),value:"init"},{title:mr("question.subcommand.updateWorkspace"),value:"updateWorkspace"},{title:mr("question.subcommand.runWeb"),value:"runWeb"},{title:mr("question.subcommand.info"),value:"info"}]}],{onCancel:Be});e.value=d.subcommand}let c=e.value;if(c==="init")await og({currentCommand:e,args:s});else if(c==="updateWorkspace")await pg({currentCommand:e,args:i});else if(c==="runWeb")await gg({currentCommand:e,args:o});else if(c==="info")await ug({currentCommand:e});else if(c==="GenCode")await g_({currentCommand:e,args:a});else{if(c==="none")return;isNever(c)}}return{states:{initCommandArgs:s,updateCommandArgs:i},commands:{async init(){t.value||(await u(),t.value=!0)},async exec(){let h=e.value;h==="info"?await dg():h==="init"?await ag(s):h==="runWeb"?await vg(o):h==="updateWorkspace"?await fg(i):h==="GenCode"?await v_(a):h==="none"||isNever(h)}}}});function __(){return LT.api}var So=ce().commands.t;C.printInfo(So("signal.scriptStart"));var b_=__();qT().then(()=>{C.printSuccess(So("signal.successComplete"))}).catch(t=>{C.printError(t.message),C.printError(So("signal.exitWithError"))});process.on("SIGINT",Be);async function qT(){if(C.print("Repo Addr:",C.info(Q.repository.url.replace(/git\+/g,""))),C.print(""),C.print("Script Version:",C.info(Q.version)),C.print(""),ng())process.env.PACKAGE_MANAGER="bun",C.printDebug("Package Manager: bun detected");else if(rg())process.env.PACKAGE_MANAGER="pnpm",C.printDebug("Package Manager: pnpm detected");else throw new Error(So("error.noPackageManager"));await b_.commands.init(),await b_.commands.exec()}
|
|
230
243
|
/*! Bundled license information:
|
|
231
244
|
|
|
232
245
|
@vue/shared/dist/shared.cjs.prod.js:
|