UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

8 lines 1.39 MB
/*! fm-dev v1.0.85 */import{defineComponent as w,reactive as Ne,computed as Au,watch as ne,resolveComponent as Eu,createBlock as Bu,openBlock as v,withCtx as lu,createVNode as su,createElementVNode as h,createTextVNode as Ju,toDisplayString as Su,withDirectives as Ie,createElementBlock as y,Fragment as me,renderList as Se,vShow as S5,ref as Du,onMounted as ot,nextTick as Ve,normalizeStyle as Xu,createCommentVNode as ku,normalizeClass as it,withModifiers as Qt,mergeModels as ve,useModel as He,effectScope as k5,getCurrentInstance as wt,shallowRef as J2,isRef as Ke,inject as za,onUnmounted as X2,h as Na,Text as Z2,markRaw as lt,hasInjectionContext as Q2,toRaw as u0,isReactive as L5,toRef as P5,unref as Cu,getCurrentScope as u3,onScopeDispose as e3,toRefs as Ia,resolveDirective as e0,resolveDynamicComponent as Tt,useSlots as Va,mergeProps as Zu,createSlots as O5,renderSlot as fe,toHandlers as Ha,onBeforeUnmount as t3,onUpdated as r3,useAttrs as n3,normalizeProps as Ua,guardReactiveProps as qa}from"vue";import a3 from"crypto";import M5 from"url";import $a from"http";import ja from"https";import Ga from"util";import Ue,{Readable as o3}from"stream";import i3 from"assert";import Ye from"zlib";import{ElMessage as Qu,ElLoading as l3,dayjs as s3}from"element-plus";const c3={class:"fm-transfer-panel"},E3={class:"fm-transfer-panel__header"},d3={class:"fm-transfer-panel__body"},C3={class:"fm-transfer-buttons__item"},p3={class:"fm-transfer-buttons__item"},F3={class:"fm-transfer-buttons__item"},m3={class:"fm-transfer-buttons__item"},f3={class:"fm-transfer-panel"},B3={class:"fm-transfer-panel__header"},D3={class:"fm-transfer-panel__body"};var h3=w({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(u,{emit:e}){const t=u,r=e,n=Ne({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),a=Au(()=>{let p=t.leftData.filter(m=>m[t.options.label].toLowerCase().includes(n.leftKeyword.toLowerCase()));if(n.leftChecked.length>0)for(let m=n.leftChecked.length-1;m>=0;m--)p.findIndex(B=>B[t.options.value]==n.leftChecked[m])==-1&&n.leftChecked.splice(m,1);return p}),o=p=>{n.leftChecked=p?a.value.filter(m=>m[t.options.disabled]==!1).map(m=>m[t.options.value]):[]},i=Au(()=>{const p=n.leftChecked.length;return p>0&&p<a.value.filter(g=>g[t.options.disabled]==!1).length});ne(()=>n.leftChecked,p=>{n.leftAllChecked=p.length>0&&p.length==a.value.filter(m=>m[t.options.disabled]==!1).length});const s=Au(()=>{let p=t.rightData.filter(m=>m[t.options.label].toLowerCase().includes(n.rightKeyword.toLowerCase()));if(n.rightChecked.length>0)for(let m=n.rightChecked.length-1;m>=0;m--)p.findIndex(B=>B[t.options.value]==n.rightChecked[m])==-1&&n.rightChecked.splice(m,1);return p}),l=p=>{n.rightChecked=p?s.value.filter(m=>m[t.options.disabled]==!1).map(m=>m[t.options.value]):[]},c=Au(()=>{const p=n.rightChecked.length;return p>0&&p<s.value.filter(g=>g[t.options.disabled]==!1).length});ne(()=>n.rightChecked,p=>{n.rightAllChecked=p.length>0&&p.length==s.value.filter(m=>m[t.options.disabled]==!1).length});const C=p=>{if(p[t.options.value]&&p[t.options.disabled]===!1){let m=t.leftData.filter(B=>p[t.options.value]==B[t.options.value]),g=t.leftData.filter(B=>p[t.options.value]!=B[t.options.value]);r("update:leftData",g),r("update:rightData",t.rightData.concat(m)),r("right"),n.leftChecked=n.leftChecked.filter(B=>p[t.options.value]!=B)}},d=()=>{if(n.leftChecked?.length>0){let p=t.leftData.filter(g=>n.leftChecked.some(B=>B==g[t.options.value])),m=t.leftData.filter(g=>n.leftChecked.every(B=>B!=g[t.options.value]));r("update:leftData",m),r("update:rightData",t.rightData.concat(p)),r("right"),n.leftChecked=[]}},f=()=>{if(a.value?.length>0){let p=a.value.filter(B=>B[t.options.disabled]==!1),m=t.leftData.filter(B=>p.some(A=>A[t.options.value]==B[t.options.value])),g=t.leftData.filter(B=>p.every(A=>A[t.options.value]!=B[t.options.value]));r("update:leftData",g),r("update:rightData",t.rightData.concat(m)),r("allRight"),n.leftChecked=[]}},E=p=>{if(p[t.options.value]&&p[t.options.disabled]===!1){let m=t.rightData.filter(B=>p[t.options.value]==B[t.options.value]),g=t.rightData.filter(B=>p[t.options.value]!=B[t.options.value]);r("update:leftData",t.leftData.concat(m)),r("update:rightData",g),r("left"),n.rightChecked=n.rightChecked.filter(B=>p[t.options.value]!=B)}},D=()=>{if(n.rightChecked?.length>0){let p=t.rightData.filter(g=>n.rightChecked.some(B=>B==g[t.options.value])),m=t.rightData.filter(g=>n.rightChecked.every(B=>B!=g[t.options.value]));r("update:leftData",t.leftData.concat(p)),r("update:rightData",m),r("left"),n.rightChecked=[]}},F=()=>{if(s.value?.length>0){let p=s.value.filter(B=>B[t.options.disabled]==!1),m=t.rightData.filter(B=>p.some(A=>A[t.options.value]==B[t.options.value])),g=t.rightData.filter(B=>p.every(A=>A[t.options.value]!=B[t.options.value]));r("update:leftData",t.leftData.concat(m)),r("update:rightData",g),r("allLeft"),n.rightChecked=[]}};return(p,m)=>{const g=Eu("el-checkbox"),B=Eu("el-input"),A=Eu("el-checkbox-group"),x=Eu("el-col"),_=Eu("el-button"),T=Eu("el-row");return v(),Bu(T,{gutter:10},{default:lu(()=>[su(x,{span:10},{default:lu(()=>[h("div",c3,[h("p",E3,[su(g,{modelValue:n.leftAllChecked,"onUpdate:modelValue":m[0]||(m[0]=P=>n.leftAllChecked=P),indeterminate:i.value,"validate-event":!1,onChange:o},{default:lu(()=>[Ju(Su(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),h("span",null,Su(n.leftChecked.length)+"/"+Su(t.leftData.length),1)]),h("div",d3,[su(B,{class:"transfer-panel__filter",modelValue:n.leftKeyword,"onUpdate:modelValue":m[1]||(m[1]=P=>n.leftKeyword=P),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),Ie(su(A,{modelValue:n.leftChecked,"onUpdate:modelValue":m[2]||(m[2]=P=>n.leftChecked=P),"validate-event":!1,class:"fm-transfer-panel__list"},{default:lu(()=>[(v(!0),y(me,null,Se(a.value,(P,b)=>(v(),Bu(g,{key:b,value:P[t.options.value],label:P[t.options.label],disabled:P[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:S=>C(P)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[S5,!0]])])])]),_:1}),su(x,{span:4,class:"fm-transfer-buttons"},{default:lu(()=>[h("div",C3,[su(_,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:d})]),h("div",p3,[su(_,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:D})]),h("div",F3,[su(_,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:f})]),h("div",m3,[su(_,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:F})])]),_:1}),su(x,{span:10},{default:lu(()=>[h("div",f3,[h("p",B3,[su(g,{modelValue:n.rightAllChecked,"onUpdate:modelValue":m[3]||(m[3]=P=>n.rightAllChecked=P),indeterminate:c.value,"validate-event":!1,onChange:l},{default:lu(()=>[Ju(Su(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),h("span",null,Su(n.rightChecked.length)+"/"+Su(t.rightData.length),1)]),h("div",D3,[su(B,{class:"transfer-panel__filter",modelValue:n.rightKeyword,"onUpdate:modelValue":m[4]||(m[4]=P=>n.rightKeyword=P),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),Ie(su(A,{modelValue:n.rightChecked,"onUpdate:modelValue":m[5]||(m[5]=P=>n.rightChecked=P),"validate-event":!1,class:"fm-transfer-panel__list"},{default:lu(()=>[(v(!0),y(me,null,Se(s.value,(P,b)=>(v(),Bu(g,{key:b,value:P[t.options.value],label:P[t.options.label],disabled:P[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:S=>E(P)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[S5,!0]])])])]),_:1})]),_:1})}}});const g3={class:"notice-bar-warp-text-box"},_3=["innerHTML"];var A3=w({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(u,{emit:e}){const t=u,r=Du(null),n=Du(null),a=Ne({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});ot(async()=>{t.scrollable||o()});const o=()=>{Ve(()=>{if(r.value&&n.value){a.warpOWidth=r.value.offsetWidth,a.textOWidth=n.value.scrollWidth,a.animationDuration=(a.textOWidth+a.warpOWidth)/t.speed,n.value.style.animation="none",n.value.offsetHeight,n.value.style.animation=`marquee ${a.animationDuration}s linear infinite`;const i=` @keyframes marquee { 0% { transform: translateX(${a.warpOWidth}px); } 100% { transform: translateX(-${a.textOWidth}px); } } `,s=document.createElement("style");s.innerText=i,document.head.appendChild(s)}})};return(i,s)=>Ie((v(),y("div",{class:"fm-notice-bar",style:Xu({background:u.background,height:`${u.height}px`})},[h("div",{class:"notice-bar-warp",style:Xu({color:u.color,fontSize:`${u.size}px`}),ref_key:"noticeBarWarpRef",ref:r},[u.leftIcon?(v(),y("i",{key:0,class:it(["notice-bar-warp-left-icon",u.leftIcon])},null,2)):ku("v-if",!0),h("div",g3,[h("div",{class:"notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:n},[h("div",{innerHTML:t.text,"data-slate-editor":""},null,8,_3)],512)])],4)],4)),[[S5,!a.isMode]])}}),v3={name:"dragVerify",props:{isPassing:{type:Boolean,default:!1},width:{type:Number,default:250},height:{type:Number,default:40},text:{type:String,default:"swiping to the right side"},successText:{type:String,default:"success"},background:{type:String,default:"#eee"},progressBarBg:{type:String,default:"#76c61d"},completedBg:{type:String,default:"#76c61d"},circle:{type:Boolean,default:!1},radius:{type:String,default:"4px"},handlerIcon:{type:String},successIcon:{type:String},handlerBg:{type:String,default:"#fff"},textSize:{type:String,default:"14px"},textColor:{type:String,default:"#333"},imgsrc:{type:String},showTips:{type:Boolean,default:!0},successTip:{type:String,default:"\u9A8C\u8BC1\u901A\u8FC7"},failTip:{type:String,default:"\u9A8C\u8BC1\u5931\u8D25"},diffDegree:{type:Number,default:10},minDegree:{type:Number,default:90},maxDegree:{type:Number,default:270}},mounted:function(){const u=this.$refs.dragVerify;u.style.setProperty("--textColor",this.textColor),u.style.setProperty("--width",Math.floor(this.width/2)+"px"),u.style.setProperty("--pwidth",-Math.floor(this.width/2)+"px")},computed:{handlerStyle:function(){return{width:this.height+"px",height:this.height+"px",background:this.handlerBg}},message:function(){return this.isPassing?"":this.text},successMessage:function(){return this.isPassing?this.successText:""},dragVerifyStyle:function(){return{width:this.width+"px",height:this.height+"px",lineHeight:this.height+"px",marginTop:"20px",background:this.background,borderRadius:this.circle?this.height/2+"px":this.radius}},dragVerifyImgStyle:function(){return{width:this.width+"px",height:this.width+"px",position:"relative",overflow:"hidden","border-radius":"50%"}},progressBarStyle:function(){return{background:this.progressBarBg,height:this.height+"px",borderRadius:this.circle?this.height/2+"px 0 0 "+this.height/2+"px":this.radius}},textStyle:function(){return{height:this.height+"px",width:this.width+"px",fontSize:this.textSize}},factor:function(){return this.minDegree==this.maxDegree?Math.floor(1+Math.random()*6)/10+1:1}},data(){return{isMoving:!1,x:0,isOk:!1,showBar:!1,showErrorTip:!1,ranRotate:0,cRotate:0,imgStyle:{}}},methods:{checkimgLoaded:function(){var u=this.minDegree,e=this.maxDegree,t=Math.floor(u+Math.random()*(e-u));this.ranRotate=t,this.imgStyle={transform:`rotateZ(${t}deg)`}},dragStart:function(u){this.isPassing||(this.isMoving=!0,this.x=u.pageX||u.touches[0].pageX),this.showBar=!0,this.showErrorTip=!1,this.$emit("handlerMove")},dragMoving:function(u){if(this.isMoving&&!this.isPassing){var e=(u.pageX||u.touches[0].pageX)-this.x,t=this.$refs.handler;t.style.left=e+"px";var r=this.$refs.progressBar;r.style.width=e+this.height/2+"px";var n=Math.ceil(e/(this.width-this.height)*this.maxDegree*this.factor);this.cRotate=n;var a=this.ranRotate-n;this.imgStyle={transform:`rotateZ(${a}deg)`}}},dragFinish:function(u){if(this.isMoving&&!this.isPassing){if(Math.abs(this.ranRotate-this.cRotate)>this.diffDegree){this.isOk=!0,this.imgStyle={transform:`rotateZ(${this.ranRotate}deg)`};var e=this;setTimeout(function(){var t=e.$refs.handler,r=e.$refs.progressBar;t.style.left="0",r.style.width="0",e.isOk=!1},500),this.showErrorTip=!0,this.$emit("passfail")}else this.passVerify();this.isMoving=!1}},passVerify:function(){this.$emit("update:isPassing",!0),this.isMoving=!1;var u=this.$refs.handler;u.children[0].className=this.successIcon,this.$refs.progressBar.style.background=this.completedBg,this.$refs.message.style["-webkit-text-fill-color"]="unset",this.$refs.message.style.animation="slidetounlock2 3s infinite",this.$refs.progressBar.style.color="#fff",this.$refs.progressBar.style.fontSize=this.textSize,this.$emit("passcallback")},reset:function(){this.reImg(),this.checkimgLoaded()},reImg:function(){this.$emit("update:isPassing",!1);const u=this.$options.data();for(const r in u)Object.prototype.hasOwnProperty.call(u,r)&&(this[r]=u[r]);var e=this.$refs.handler,t=this.$refs.message;e.style.left="0",this.$refs.progressBar.style.width="0",e.children[0].className=this.handlerIcon,t.style["-webkit-text-fill-color"]="transparent",t.style.animation="slidetounlock 3s infinite",t.style.color=this.background},refreshimg:function(){this.$emit("refresh")}},watch:{imgsrc:{immediate:!1,handler:function(){this.reImg()}}}},x3=(u,e)=>{const t=u.__vccOpts||u;for(const[r,n]of e)t[r]=n;return t};const y3={class:"drag-verify-container"},b3=["src"],w3={key:0,class:"tips success"},T3={key:1,class:"tips danger"};function S3(u,e,t,r,n,a){return v(),y("div",y3,[h("div",{style:Xu([a.dragVerifyImgStyle,{"background-color":"var(--el-color-primary)"}])},[h("img",{ref:"checkImg",src:t.imgsrc,class:it(["check-img",{goOrigin:n.isOk}]),onLoad:e[0]||(e[0]=(...o)=>a.checkimgLoaded&&a.checkimgLoaded(...o)),style:Xu(n.imgStyle),alt:""},null,46,b3),t.showTips&&t.isPassing?(v(),y("div",w3,Su(t.successTip),1)):ku("v-if",!0),t.showTips&&!t.isPassing&&n.showErrorTip?(v(),y("div",T3,Su(t.failTip),1)):ku("v-if",!0)],4),h("div",{ref:"dragVerify",class:"drag_verify",style:Xu(a.dragVerifyStyle),onMousemove:e[3]||(e[3]=(...o)=>a.dragMoving&&a.dragMoving(...o)),onMouseup:e[4]||(e[4]=(...o)=>a.dragFinish&&a.dragFinish(...o)),onMouseleave:e[5]||(e[5]=(...o)=>a.dragFinish&&a.dragFinish(...o)),onTouchmove:e[6]||(e[6]=Qt((...o)=>a.dragMoving&&a.dragMoving(...o),["prevent"])),onTouchend:e[7]||(e[7]=Qt((...o)=>a.dragFinish&&a.dragFinish(...o),["prevent"]))},[h("div",{class:it(["dv_progress_bar",{goFirst2:n.isOk}]),ref:"progressBar",style:Xu(a.progressBarStyle)},Su(a.successMessage),7),h("div",{class:"dv_text",style:Xu(a.textStyle),ref:"message"},Su(a.message),5),h("div",{class:it(["dv_handler dv_handler_bg",{goFirst:n.isOk}]),onMousedown:e[1]||(e[1]=(...o)=>a.dragStart&&a.dragStart(...o)),onTouchstart:e[2]||(e[2]=Qt((...o)=>a.dragStart&&a.dragStart(...o),["prevent"])),ref:"handler",style:Xu([a.handlerStyle,{"background-color":"var(--el-color-primary)"}])},[h("i",{class:it(t.handlerIcon),style:{color:"#fff"}},null,2)],38)],36)])}var k3=x3(v3,[["render",S3],["__scopeId","data-v-9e8c9ed2"]]),L3=w({name:"Fmselect",__name:"index",props:ve({optionData:{type:Array,default:[]},bvalue:{type:String,default:"id"},blabel:{type:String,default:"name"}},{id:{type:Number,default:0},idModifiers:{},name:{type:String,default:""},nameModifiers:{}}),emits:ve(["change"],["update:id","update:name"]),setup(u,{emit:e}){const t=He(u,"id"),r=He(u,"name"),n=u,a=e,o=i=>{const s=n.optionData.find(l=>l[n.bvalue]==i);r.value=s==null?"":s[n.blabel],a("change",s)};return(i,s)=>{const l=Eu("el-option"),c=Eu("el-select");return v(),Bu(c,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=C=>t.value=C),placeholder:"\u8BF7\u9009\u62E9",onChange:o},{default:lu(()=>[su(l,{value:0,label:""}),(v(!0),y(me,null,Se(u.optionData,(C,d)=>(v(),Bu(l,{key:d,value:C[u.bvalue],label:C[u.blabel]},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])}}});function Wa(u,e){return function(){return u.apply(e,arguments)}}const{toString:P3}=Object.prototype,{getPrototypeOf:R5}=Object,{iterator:Z0,toStringTag:Ka}=Symbol,Q0=(u=>e=>{const t=P3.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),xe=u=>(u=u.toLowerCase(),e=>Q0(e)===u),ur=u=>e=>typeof e===u,{isArray:St}=Array,t0=ur("undefined");function O3(u){return u!==null&&!t0(u)&&u.constructor!==null&&!t0(u.constructor)&&le(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const Ya=xe("ArrayBuffer");function M3(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&Ya(u.buffer),e}const R3=ur("string"),le=ur("function"),Ja=ur("number"),er=u=>u!==null&&typeof u=="object",z3=u=>u===!0||u===!1,tr=u=>{if(Q0(u)!=="object")return!1;const e=R5(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ka in u)&&!(Z0 in u)},N3=xe("Date"),I3=xe("File"),V3=xe("Blob"),H3=xe("FileList"),U3=u=>er(u)&&le(u.pipe),q3=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||le(u.append)&&((e=Q0(u))==="formdata"||e==="object"&&le(u.toString)&&u.toString()==="[object FormData]"))},$3=xe("URLSearchParams"),[j3,G3,W3,K3]=["ReadableStream","Request","Response","Headers"].map(xe),Y3=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function r0(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let r,n;if(typeof u!="object"&&(u=[u]),St(u))for(r=0,n=u.length;r<n;r++)e.call(null,u[r],r,u);else{const a=t?Object.getOwnPropertyNames(u):Object.keys(u),o=a.length;let i;for(r=0;r<o;r++)i=a[r],e.call(null,u[i],i,u)}}function Xa(u,e){e=e.toLowerCase();const t=Object.keys(u);let r=t.length,n;for(;r-- >0;)if(n=t[r],e===n.toLowerCase())return n;return null}const st=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Za=u=>!t0(u)&&u!==st;function z5(){const{caseless:u}=Za(this)&&this||{},e={},t=(r,n)=>{const a=u&&Xa(e,n)||n;tr(e[a])&&tr(r)?e[a]=z5(e[a],r):tr(r)?e[a]=z5({},r):St(r)?e[a]=r.slice():e[a]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&r0(arguments[r],t);return e}const J3=(u,e,t,{allOwnKeys:r}={})=>(r0(e,(n,a)=>{t&&le(n)?u[a]=Wa(n,t):u[a]=n},{allOwnKeys:r}),u),X3=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),Z3=(u,e,t,r)=>{u.prototype=Object.create(e.prototype,r),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},Q3=(u,e,t,r)=>{let n,a,o;const i={};if(e=e||{},u==null)return e;do{for(n=Object.getOwnPropertyNames(u),a=n.length;a-- >0;)o=n[a],(!r||r(o,u,e))&&!i[o]&&(e[o]=u[o],i[o]=!0);u=t!==!1&&R5(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},u7=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const r=u.indexOf(e,t);return r!==-1&&r===t},e7=u=>{if(!u)return null;if(St(u))return u;let e=u.length;if(!Ja(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},t7=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&R5(Uint8Array)),r7=(u,e)=>{const r=(u&&u[Z0]).call(u);let n;for(;(n=r.next())&&!n.done;){const a=n.value;e.call(u,a[0],a[1])}},n7=(u,e)=>{let t;const r=[];for(;(t=u.exec(e))!==null;)r.push(t);return r},a7=xe("HTMLFormElement"),o7=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Qa=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),i7=xe("RegExp"),uo=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),r={};r0(t,(n,a)=>{let o;(o=e(n,a,u))!==!1&&(r[a]=o||n)}),Object.defineProperties(u,r)},l7=u=>{uo(u,(e,t)=>{if(le(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=u[t];if(le(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},s7=(u,e)=>{const t={},r=n=>{n.forEach(a=>{t[a]=!0})};return St(u)?r(u):r(String(u).split(e)),t},c7=()=>{},E7=(u,e)=>u!=null&&Number.isFinite(u=+u)?u:e;function d7(u){return!!(u&&le(u.append)&&u[Ka]==="FormData"&&u[Z0])}const C7=u=>{const e=new Array(10),t=(r,n)=>{if(er(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const a=St(r)?[]:{};return r0(r,(o,i)=>{const s=t(o,n+1);!t0(s)&&(a[i]=s)}),e[n]=void 0,a}}return r};return t(u,0)},p7=xe("AsyncFunction"),F7=u=>u&&(er(u)||le(u))&&le(u.then)&&le(u.catch),eo=((u,e)=>u?setImmediate:e?((t,r)=>(st.addEventListener("message",({source:n,data:a})=>{n===st&&a===t&&r.length&&r.shift()()},!1),n=>{r.push(n),st.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",le(st.postMessage)),m7=typeof queueMicrotask<"u"?queueMicrotask.bind(st):typeof process<"u"&&process.nextTick||eo,f7=u=>u!=null&&le(u[Z0]);var $={isArray:St,isArrayBuffer:Ya,isBuffer:O3,isFormData:q3,isArrayBufferView:M3,isString:R3,isNumber:Ja,isBoolean:z3,isObject:er,isPlainObject:tr,isReadableStream:j3,isRequest:G3,isResponse:W3,isHeaders:K3,isUndefined:t0,isDate:N3,isFile:I3,isBlob:V3,isRegExp:i7,isFunction:le,isStream:U3,isURLSearchParams:$3,isTypedArray:t7,isFileList:H3,forEach:r0,merge:z5,extend:J3,trim:Y3,stripBOM:X3,inherits:Z3,toFlatObject:Q3,kindOf:Q0,kindOfTest:xe,endsWith:u7,toArray:e7,forEachEntry:r7,matchAll:n7,isHTMLForm:a7,hasOwnProperty:Qa,hasOwnProp:Qa,reduceDescriptors:uo,freezeMethods:l7,toObjectSet:s7,toCamelCase:o7,noop:c7,toFiniteNumber:E7,findKey:Xa,global:st,isContextDefined:Za,isSpecCompliantForm:d7,toJSONObject:C7,isAsyncFn:p7,isThenable:F7,setImmediate:eo,asap:m7,isIterable:f7};function ou(u,e,t,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}$.inherits(ou,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const to=ou.prototype,ro={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{ro[u]={value:u}}),Object.defineProperties(ou,ro),Object.defineProperty(to,"isAxiosError",{value:!0}),ou.from=(u,e,t,r,n,a)=>{const o=Object.create(to);return $.toFlatObject(u,o,function(s){return s!==Error.prototype},i=>i!=="isAxiosError"),ou.call(o,u.message,e,t,r,n),o.cause=u,o.name=u.name,a&&Object.assign(o,a),o};var N5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ru(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var I5,no;function B7(){return no||(no=1,I5=typeof self=="object"?self.FormData:window.FormData),I5}var D7=B7(),ao=Ru(D7);function V5(u){return $.isPlainObject(u)||$.isArray(u)}function oo(u){return $.endsWith(u,"[]")?u.slice(0,-2):u}function io(u,e,t){return u?u.concat(e).map(function(n,a){return n=oo(n),!t&&a?"["+n+"]":n}).join(t?".":""):e}function h7(u){return $.isArray(u)&&!u.some(V5)}const g7=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function rr(u,e,t){if(!$.isObject(u))throw new TypeError("target must be an object");e=e||new(ao||FormData),t=$.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(D,F){return!$.isUndefined(F[D])});const r=t.metaTokens,n=t.visitor||c,a=t.dots,o=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(n))throw new TypeError("visitor must be a function");function l(E){if(E===null)return"";if($.isDate(E))return E.toISOString();if($.isBoolean(E))return E.toString();if(!s&&$.isBlob(E))throw new ou("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(E)||$.isTypedArray(E)?s&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function c(E,D,F){let p=E;if(E&&!F&&typeof E=="object"){if($.endsWith(D,"{}"))D=r?D:D.slice(0,-2),E=JSON.stringify(E);else if($.isArray(E)&&h7(E)||($.isFileList(E)||$.endsWith(D,"[]"))&&(p=$.toArray(E)))return D=oo(D),p.forEach(function(g,B){!($.isUndefined(g)||g===null)&&e.append(o===!0?io([D],B,a):o===null?D:D+"[]",l(g))}),!1}return V5(E)?!0:(e.append(io(F,D,a),l(E)),!1)}const C=[],d=Object.assign(g7,{defaultVisitor:c,convertValue:l,isVisitable:V5});function f(E,D){if(!$.isUndefined(E)){if(C.indexOf(E)!==-1)throw Error("Circular reference detected in "+D.join("."));C.push(E),$.forEach(E,function(p,m){(!($.isUndefined(p)||p===null)&&n.call(e,p,$.isString(m)?m.trim():m,D,d))===!0&&f(p,D?D.concat(m):[m])}),C.pop()}}if(!$.isObject(u))throw new TypeError("data must be an object");return f(u),e}function lo(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function so(u,e){this._pairs=[],u&&rr(u,this,e)}const co=so.prototype;co.append=function(e,t){this._pairs.push([e,t])},co.toString=function(e){const t=e?function(r){return e.call(this,r,lo)}:lo;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function _7(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H5(u,e,t){if(!e)return u;const r=t&&t.encode||_7;$.isFunction(t)&&(t={serialize:t});const n=t&&t.serialize;let a;if(n?a=n(e,t):a=$.isURLSearchParams(e)?e.toString():new so(e,t).toString(r),a){const o=u.indexOf("#");o!==-1&&(u=u.slice(0,o)),u+=(u.indexOf("?")===-1?"?":"&")+a}return u}class Eo{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(r){r!==null&&e(r)})}}var U5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},A7=M5.URLSearchParams;const q5="abcdefghijklmnopqrstuvwxyz",Co="0123456789",po={DIGIT:Co,ALPHA:q5,ALPHA_DIGIT:q5+q5.toUpperCase()+Co},v7=(u=16,e=po.ALPHA_DIGIT)=>{let t="";const{length:r}=e,n=new Uint32Array(u);a3.randomFillSync(n);for(let a=0;a<u;a++)t+=e[n[a]%r];return t};var x7={isNode:!0,classes:{URLSearchParams:A7,FormData:ao,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:po,generateString:v7,protocols:["http","https","file","data"]};const $5=typeof window<"u"&&typeof document<"u",j5=typeof navigator=="object"&&navigator||void 0,y7=$5&&(!j5||["ReactNative","NativeScript","NS"].indexOf(j5.product)<0),b7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",w7=$5&&window.location.href||"http://localhost";var T7=Object.freeze({__proto__:null,hasBrowserEnv:$5,hasStandardBrowserEnv:y7,hasStandardBrowserWebWorkerEnv:b7,navigator:j5,origin:w7}),Pu={...T7,...x7};function S7(u,e){return rr(u,new Pu.classes.URLSearchParams,Object.assign({visitor:function(t,r,n,a){return Pu.isNode&&$.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function k7(u){return $.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function L7(u){const e={},t=Object.keys(u);let r;const n=t.length;let a;for(r=0;r<n;r++)a=t[r],e[a]=u[a];return e}function Fo(u){function e(t,r,n,a){let o=t[a++];if(o==="__proto__")return!0;const i=Number.isFinite(+o),s=a>=t.length;return o=!o&&$.isArray(n)?n.length:o,s?($.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!i):((!n[o]||!$.isObject(n[o]))&&(n[o]=[]),e(t,r,n[o],a)&&$.isArray(n[o])&&(n[o]=L7(n[o])),!i)}if($.isFormData(u)&&$.isFunction(u.entries)){const t={};return $.forEachEntry(u,(r,n)=>{e(k7(r),n,t,0)}),t}return null}function P7(u,e,t){if($.isString(u))try{return(e||JSON.parse)(u),$.trim(u)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(u)}const n0={transitional:U5,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,a=$.isObject(e);if(a&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return n?JSON.stringify(Fo(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return S7(e,this.formSerializer).toString();if((i=$.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return rr(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),P7(e)):e}],transformResponse:[function(e){const t=this.transitional||n0.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(r&&!this.responseType||n)){const o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?ou.from(i,ou.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pu.classes.FormData,Blob:Pu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],u=>{n0.headers[u]={}});const O7=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var M7=u=>{const e={};let t,r,n;return u&&u.split(` `).forEach(function(o){n=o.indexOf(":"),t=o.substring(0,n).trim().toLowerCase(),r=o.substring(n+1).trim(),!(!t||e[t]&&O7[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e};const mo=Symbol("internals");function a0(u){return u&&String(u).trim().toLowerCase()}function nr(u){return u===!1||u==null?u:$.isArray(u)?u.map(nr):String(u)}function R7(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(u);)e[r[1]]=r[2];return e}const z7=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function G5(u,e,t,r,n){if($.isFunction(r))return r.call(this,e,t);if(n&&(e=t),!!$.isString(e)){if($.isString(r))return e.indexOf(r)!==-1;if($.isRegExp(r))return r.test(e)}}function N7(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function I7(u,e){const t=$.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(u,r+t,{value:function(n,a,o){return this[r].call(this,e,n,a,o)},configurable:!0})})}let Wu=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function a(i,s,l){const c=a0(s);if(!c)throw new Error("header name must be a non-empty string");const C=$.findKey(n,c);(!C||n[C]===void 0||l===!0||l===void 0&&n[C]!==!1)&&(n[C||s]=nr(i))}const o=(i,s)=>$.forEach(i,(l,c)=>a(l,c,s));if($.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if($.isString(e)&&(e=e.trim())&&!z7(e))o(M7(e),t);else if($.isObject(e)&&$.isIterable(e)){let i={},s,l;for(const c of e){if(!$.isArray(c))throw TypeError("Object iterator must return a key-value pair");i[l=c[0]]=(s=i[l])?$.isArray(s)?[...s,c[1]]:[s,c[1]]:c[1]}o(i,t)}else e!=null&&a(t,e,r);return this}get(e,t){if(e=a0(e),e){const r=$.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return R7(n);if($.isFunction(t))return t.call(this,n,r);if($.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=a0(e),e){const r=$.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||G5(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function a(o){if(o=a0(o),o){const i=$.findKey(r,o);i&&(!t||G5(r,r[i],i,t))&&(delete r[i],n=!0)}}return $.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const a=t[r];(!e||G5(this,this[a],a,e,!0))&&(delete this[a],n=!0)}return n}normalize(e){const t=this,r={};return $.forEach(this,(n,a)=>{const o=$.findKey(r,a);if(o){t[o]=nr(n),delete t[a];return}const i=e?N7(a):String(a).trim();i!==a&&delete t[a],t[i]=nr(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&$.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[mo]=this[mo]={accessors:{}}).accessors,n=this.prototype;function a(o){const i=a0(o);r[i]||(I7(n,o),r[i]=!0)}return $.isArray(e)?e.forEach(a):a(e),this}};Wu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(Wu.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(r){this[t]=r}}}),$.freezeMethods(Wu);function W5(u,e){const t=this||n0,r=e||t,n=Wu.from(r.headers);let a=r.data;return $.forEach(u,function(i){a=i.call(t,a,n.normalize(),e?e.status:void 0)}),n.normalize(),a}function fo(u){return!!(u&&u.__CANCEL__)}function Je(u,e,t){ou.call(this,u??"canceled",ou.ERR_CANCELED,e,t),this.name="CanceledError"}$.inherits(Je,ou,{__CANCEL__:!0});function kt(u,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?u(t):e(new ou("Request failed with status code "+t.status,[ou.ERR_BAD_REQUEST,ou.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function V7(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function H7(u,e){return e?u.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):u}function K5(u,e,t){let r=!V7(e);return u&&(r||t==!1)?H7(u,e):e}var Y5={},Bo;function U7(){if(Bo)return Y5;Bo=1;var u=M5.parse,e={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},t=String.prototype.endsWith||function(o){return o.length<=this.length&&this.indexOf(o,this.length-o.length)!==-1};function r(o){var i=typeof o=="string"?u(o):o||{},s=i.protocol,l=i.host,c=i.port;if(typeof l!="string"||!l||typeof s!="string"||(s=s.split(":",1)[0],l=l.replace(/:\d*$/,""),c=parseInt(c)||e[s]||0,!n(l,c)))return"";var C=a("npm_config_"+s+"_proxy")||a(s+"_proxy")||a("npm_config_proxy")||a("all_proxy");return C&&C.indexOf("://")===-1&&(C=s+"://"+C),C}function n(o,i){var s=(a("npm_config_no_proxy")||a("no_proxy")).toLowerCase();return s?s==="*"?!1:s.split(/[,\s]/).every(function(l){if(!l)return!0;var c=l.match(/^(.+):(\d+)$/),C=c?c[1]:l,d=c?parseInt(c[2]):0;return d&&d!==i?!0:/^[.*]/.test(C)?(C.charAt(0)==="*"&&(C=C.slice(1)),!t.call(o,C)):o!==C}):!0}function a(o){return process.env[o.toLowerCase()]||process.env[o.toUpperCase()]||""}return Y5.getProxyForUrl=r,Y5}var q7=U7(),$7=Ru(q7),ar={exports:{}},or={exports:{}},J5,Do;function j7(){if(Do)return J5;Do=1;var u=1e3,e=u*60,t=e*60,r=t*24,n=r*7,a=r*365.25;J5=function(c,C){C=C||{};var d=typeof c;if(d==="string"&&c.length>0)return o(c);if(d==="number"&&isFinite(c))return C.long?s(c):i(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var C=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(C){var d=parseFloat(C[1]),f=(C[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return d*a;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*t;case"minutes":case"minute":case"mins":case"min":case"m":return d*e;case"seconds":case"second":case"secs":case"sec":case"s":return d*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function i(c){var C=Math.abs(c);return C>=r?Math.round(c/r)+"d":C>=t?Math.round(c/t)+"h":C>=e?Math.round(c/e)+"m":C>=u?Math.round(c/u)+"s":c+"ms"}function s(c){var C=Math.abs(c);return C>=r?l(c,C,r,"day"):C>=t?l(c,C,t,"hour"):C>=e?l(c,C,e,"minute"):C>=u?l(c,C,u,"second"):c+" ms"}function l(c,C,d,f){var E=C>=d*1.5;return Math.round(c/d)+" "+f+(E?"s":"")}return J5}var X5,ho;function G7(){if(ho)return X5;ho=1;function u(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=a,r.enabled=s,r.humanize=j7(),r.destroy=c,Object.keys(e).forEach(C=>{r[C]=e[C]}),r.names=[],r.skips=[],r.formatters={};function t(C){let d=0;for(let f=0;f<C.length;f++)d=(d<<5)-d+C.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(C){let d,f=null,E,D;function F(...p){if(!F.enabled)return;const m=F,g=Number(new Date),B=g-(d||g);m.diff=B,m.prev=d,m.curr=g,d=g,p[0]=r.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let A=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(_,T)=>{if(_==="%%")return"%";A++;const P=r.formatters[T];if(typeof P=="function"){const b=p[A];_=P.call(m,b),p.splice(A,1),A--}return _}),r.formatArgs.call(m,p),(m.log||r.log).apply(m,p)}return F.namespace=C,F.useColors=r.useColors(),F.color=r.selectColor(C),F.extend=n,F.destroy=r.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(E!==r.namespaces&&(E=r.namespaces,D=r.enabled(C)),D),set:p=>{f=p}}),typeof r.init=="function"&&r.init(F),F}function n(C,d){const f=r(this.namespace+(typeof d>"u"?":":d)+C);return f.log=this.log,f}function a(C){r.save(C),r.namespaces=C,r.names=[],r.skips=[];const d=(typeof C=="string"?C:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function o(C,d){let f=0,E=0,D=-1,F=0;for(;f<C.length;)if(E<d.length&&(d[E]===C[f]||d[E]==="*"))d[E]==="*"?(D=E,F=f,E++):(f++,E++);else if(D!==-1)E=D+1,F++,f=F;else return!1;for(;E<d.length&&d[E]==="*";)E++;return E===d.length}function i(){const C=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),C}function s(C){for(const d of r.skips)if(o(C,d))return!1;for(const d of r.names)if(o(C,d))return!0;return!1}function l(C){return C instanceof Error?C.stack||C.message:C}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return X5=u,X5}var go;function W7(){return go||(go=1,function(u,e){e.formatArgs=r,e.save=save,e.load=n,e.useColors=t,e.storage=a(),e.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;i.splice(1,0,s,"color: inherit");let l=0,c=0;i[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(l++,C==="%c"&&(c=l))}),i.splice(c,0,s)}e.log=console.debug||function(s){try{s?e.storage.setItem("debug",s):e.storage.removeItem("debug")}catch{}};function n(){let i;try{i=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function a(){try{return localStorage}catch{}}u.exports=G7()(e);const{formatters:o}=u.exports;o.j=function(i){try{return JSON.stringify(i)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}}(or,or.exports)),or.exports}var Z5,_o;function K7(){if(_o)return Z5;_o=1;var u;return Z5=function(){if(!u){try{u=W7()("follow-redirects")}catch{}typeof u!="function"&&(u=function(){})}u.apply(null,arguments)},Z5}var Ao;function Y7(){if(Ao)return ar.exports;Ao=1;var u=M5,e=u.URL,t=$a,r=ja,n=Ue.Writable,a=i3,o=K7();(function(){var N=typeof process<"u",L=typeof window<"u"&&typeof document<"u",q=G(Error.captureStackTrace);!N&&(L||!q)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var i=!1;try{a(new e(""))}catch(I){i=I.code==="ERR_INVALID_URL"}var s=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],l=["abort","aborted","connect","error","socket","timeout"],c=Object.create(null);l.forEach(function(I){c[I]=function(N,L,q){this._redirectable.emit(I,N,L,q)}});var C=P("ERR_INVALID_URL","Invalid URL",TypeError),d=P("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),f=P("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",d),E=P("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),D=P("ERR_STREAM_WRITE_AFTER_END","write after end"),F=n.prototype.destroy||g;function p(I,N){n.call(this),this._sanitizeOptions(I),this._options=I,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],N&&this.on("response",N);var L=this;this._onNativeResponse=function(q){try{L._processResponse(q)}catch(J){L.emit("error",J instanceof d?J:new d({cause:J}))}},this._performRequest()}p.prototype=Object.create(n.prototype),p.prototype.abort=function(){b(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},p.prototype.destroy=function(I){return b(this._currentRequest,I),F.call(this,I),this},p.prototype.write=function(I,N,L){if(this._ending)throw new D;if(!V(I)&&!uu(I))throw new TypeError("data should be a string, Buffer or Uint8Array");if(G(N)&&(L=N,N=null),I.length===0){L&&L();return}this._requestBodyLength+I.length<=this._options.maxBodyLength?(this._requestBodyLength+=I.length,this._requestBodyBuffers.push({data:I,encoding:N}),this._currentRequest.write(I,N,L)):(this.emit("error",new E),this.abort())},p.prototype.end=function(I,N,L){if(G(I)?(L=I,I=N=null):G(N)&&(L=N,N=null),!I)this._ended=this._ending=!0,this._currentRequest.end(null,null,L);else{var q=this,J=this._currentRequest;this.write(I,N,function(){q._ended=!0,J.end(null,null,L)}),this._ending=!0}},p.prototype.setHeader=function(I,N){this._options.headers[I]=N,this._currentRequest.setHeader(I,N)},p.prototype.removeHeader=function(I){delete this._options.headers[I],this._currentRequest.removeHeader(I)},p.prototype.setTimeout=function(I,N){var L=this;function q(z){z.setTimeout(I),z.removeListener("timeout",z.destroy),z.addListener("timeout",z.destroy)}function J(z){L._timeout&&clearTimeout(L._timeout),L._timeout=setTimeout(function(){L.emit("timeout"),M()},I),q(z)}function M(){L._timeout&&(clearTimeout(L._timeout),L._timeout=null),L.removeListener("abort",M),L.removeListener("error",M),L.removeListener("response",M),L.removeListener("close",M),N&&L.removeListener("timeout",N),L.socket||L._currentRequest.removeListener("socket",J)}return N&&this.on("timeout",N),this.socket?J(this.socket):this._currentRequest.once("socket",J),this.on("socket",q),this.on("abort",M),this.on("error",M),this.on("response",M),this.on("close",M),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(I){p.prototype[I]=function(N,L){return this._currentRequest[I](N,L)}}),["aborted","connection","socket"].forEach(function(I){Object.defineProperty(p.prototype,I,{get:function(){return this._currentRequest[I]}})}),p.prototype._sanitizeOptions=function(I){if(I.headers||(I.headers={}),I.host&&(I.hostname||(I.hostname=I.host),delete I.host),!I.pathname&&I.path){var N=I.path.indexOf("?");N<0?I.pathname=I.path:(I.pathname=I.path.substring(0,N),I.search=I.path.substring(N))}},p.prototype._performRequest=function(){var I=this._options.protocol,N=this._options.nativeProtocols[I];if(!N)throw new TypeError("Unsupported protocol "+I);if(this._options.agents){var L=I.slice(0,-1);this._options.agent=this._options.agents[L]}var q=this._currentRequest=N.request(this._options,this._onNativeResponse);q._redirectable=this;for(var J of l)q.on(J,c[J]);if(this._currentUrl=/^\//.test(this._options.path)?u.format(this._options):this._options.path,this._isRedirect){var M=0,z=this,H=this._requestBodyBuffers;(function k(Y){if(q===z._currentRequest)if(Y)z.emit("error",Y);else if(M<H.length){var K=H[M++];q.finished||q.write(K.data,K.encoding,k)}else z._ended&&q.end()})()}},p.prototype._processResponse=function(I){var N=I.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:I.headers,statusCode:N});var L=I.headers.location;if(!L||this._options.followRedirects===!1||N<300||N>=400){I.responseUrl=this._currentUrl,I.redirects=this._redirects,this.emit("response",I),this._requestBodyBuffers=[];return}if(b(this._currentRequest),I.destroy(),++this._redirectCount>this._options.maxRedirects)throw new f;var q,J=this._options.beforeRedirect;J&&(q=Object.assign({Host:I.req.getHeader("host")},this._options.headers));var M=this._options.method;((N===301||N===302)&&this._options.method==="POST"||N===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var z=T(/^host$/i,this._options.headers),H=B(this._currentUrl),k=z||H.host,Y=/^\w+:/.test(L)?this._currentUrl:u.format(Object.assign(H,{host:k})),K=A(L,Y);if(o("redirecting to",K.href),this._isRedirect=!0,_(K,this._options),(K.protocol!==H.protocol&&K.protocol!=="https:"||K.host!==k&&!S(K.host,k))&&T(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),G(J)){var nu={headers:I.headers,statusCode:N},eu={url:Y,method:M,headers:q};J(this._options,nu,eu),this._sanitizeOptions(this._options)}this._performRequest()};function m(I){var N={maxRedirects:21,maxBodyLength:10485760},L={};return Object.keys(I).forEach(function(q){var J=q+":",M=L[J]=I[q],z=N[q]=Object.create(M);function H(Y,K,nu){return tu(Y)?Y=_(Y):V(Y)?Y=_(B(Y)):(nu=K,K=x(Y),Y={protocol:J}),G(K)&&(nu=K,K=null),K=Object.assign({maxRedirects:N.maxRedirects,maxBodyLength:N.maxBodyLength},Y,K),K.nativeProtocols=L,!V(K.host)&&!V(K.hostname)&&(K.hostname="::1"),a.equal(K.protocol,J,"protocol mismatch"),o("options",K),new p(K,nu)}function k(Y,K,nu){var eu=z.request(Y,K,nu);return eu.end(),eu}Object.defineProperties(z,{request:{value:H,configurable:!0,enumerable:!0,writable:!0},get:{value:k,configurable:!0,enumerable:!0,writable:!0}})}),N}function g(){}function B(I){var N;if(i)N=new e(I);else if(N=x(u.parse(I)),!V(N.protocol))throw new C({input:I});return N}function A(I,N){return i?new e(I,N):B(u.resolve(N,I))}function x(I){if(/^\[/.test(I.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(I.hostname))throw new C({input:I.href||I});if(/^\[/.test(I.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(I.host))throw new C({input:I.href||I});return I}function _(I,N){var L=N||{};for(var q of s)L[q]=I[q];return L.hostname.startsWith("[")&&(L.hostname=L.hostname.slice(1,-1)),L.port!==""&&(L.port=Number(L.port)),L.path=L.search?L.pathname+L.search:L.pathname,L}function T(I,N){var L;for(var q in N)I.test(q)&&(L=N[q],delete N[q]);return L===null||typeof L>"u"?void 0:String(L).trim()}function P(I,N,L){function q(J){G(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,J||{}),this.code=I,this.message=this.cause?N+": "+this.cause.message:N}return q.prototype=new(L||Error),Object.defineProperties(q.prototype,{constructor:{value:q,enumerable:!1},name:{value:"Error ["+I+"]",enumerable:!1}}),q}function b(I,N){for(var L of l)I.removeListener(L,c[L]);I.on("error",g),I.destroy(N)}function S(I,N){a(V(I)&&V(N));var L=I.length-N.length-1;return L>0&&I[L]==="."&&I.endsWith(N)}function V(I){return typeof I=="string"||I instanceof String}function G(I){return typeof I=="function"}function uu(I){retur