@fmdevui/fm-dev
Version:
Page level components developed based on Element Plus.
8 lines • 1.78 MB
JavaScript
/*! fm-dev v1.0.113 */(function(j,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","util","stream","assert","zlib","element-plus"],r):(j=typeof globalThis<"u"?globalThis:j||self,r(j.FmPlus={},j.Vue,j.crypto,j.require$$0,j.require$$1,j.require$$2,j.util,j.stream,j.require$$4,j.zlib,j.ElementPlus))})(this,function(j,r,a2,a6,Z7,ur,er,ce,o2,ve,_u){"use strict";const E2={class:"fm-transfer-panel"},l2={class:"fm-transfer-panel__header"},i2={class:"fm-transfer-panel__body"},s2={class:"fm-transfer-buttons__item"},C2={class:"fm-transfer-buttons__item"},F2={class:"fm-transfer-buttons__item"},c2={class:"fm-transfer-buttons__item"},B2={class:"fm-transfer-panel"},D2={class:"fm-transfer-panel__header"},d2={class:"fm-transfer-panel__body"};var p2=r.defineComponent({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,n=e,a=r.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),o=r.computed(()=>{let c=t.leftData.filter(p=>p[t.options.label].toLowerCase().includes(a.leftKeyword.toLowerCase()));if(a.leftChecked.length>0)for(let p=a.leftChecked.length-1;p>=0;p--)c.findIndex(A=>A[t.options.value]==a.leftChecked[p])==-1&&a.leftChecked.splice(p,1);return c}),E=c=>{a.leftChecked=c?o.value.filter(p=>p[t.options.disabled]==!1).map(p=>p[t.options.value]):[]},l=r.computed(()=>{const c=a.leftChecked.length;return c>0&&c<o.value.filter(h=>h[t.options.disabled]==!1).length});r.watch(()=>a.leftChecked,c=>{a.leftAllChecked=c.length>0&&c.length==o.value.filter(p=>p[t.options.disabled]==!1).length});const i=r.computed(()=>{let c=t.rightData.filter(p=>p[t.options.label].toLowerCase().includes(a.rightKeyword.toLowerCase()));if(a.rightChecked.length>0)for(let p=a.rightChecked.length-1;p>=0;p--)c.findIndex(A=>A[t.options.value]==a.rightChecked[p])==-1&&a.rightChecked.splice(p,1);return c}),s=c=>{a.rightChecked=c?i.value.filter(p=>p[t.options.disabled]==!1).map(p=>p[t.options.value]):[]},C=r.computed(()=>{const c=a.rightChecked.length;return c>0&&c<i.value.filter(h=>h[t.options.disabled]==!1).length});r.watch(()=>a.rightChecked,c=>{a.rightAllChecked=c.length>0&&c.length==i.value.filter(p=>p[t.options.disabled]==!1).length});const B=c=>{if(c[t.options.value]&&c[t.options.disabled]===!1){let p=t.leftData.filter(A=>c[t.options.value]==A[t.options.value]),h=t.leftData.filter(A=>c[t.options.value]!=A[t.options.value]);n("update:leftData",h),n("update:rightData",t.rightData.concat(p)),n("right"),a.leftChecked=a.leftChecked.filter(A=>c[t.options.value]!=A)}},D=()=>{if(a.leftChecked?.length>0){let c=t.leftData.filter(h=>a.leftChecked.some(A=>A==h[t.options.value])),p=t.leftData.filter(h=>a.leftChecked.every(A=>A!=h[t.options.value]));n("update:leftData",p),n("update:rightData",t.rightData.concat(c)),n("right"),a.leftChecked=[]}},m=()=>{if(o.value?.length>0){let c=o.value.filter(A=>A[t.options.disabled]==!1),p=t.leftData.filter(A=>c.some(x=>x[t.options.value]==A[t.options.value])),h=t.leftData.filter(A=>c.every(x=>x[t.options.value]!=A[t.options.value]));n("update:leftData",h),n("update:rightData",t.rightData.concat(p)),n("allRight"),a.leftChecked=[]}},F=c=>{if(c[t.options.value]&&c[t.options.disabled]===!1){let p=t.rightData.filter(A=>c[t.options.value]==A[t.options.value]),h=t.rightData.filter(A=>c[t.options.value]!=A[t.options.value]);n("update:leftData",t.leftData.concat(p)),n("update:rightData",h),n("left"),a.rightChecked=a.rightChecked.filter(A=>c[t.options.value]!=A)}},f=()=>{if(a.rightChecked?.length>0){let c=t.rightData.filter(h=>a.rightChecked.some(A=>A==h[t.options.value])),p=t.rightData.filter(h=>a.rightChecked.every(A=>A!=h[t.options.value]));n("update:leftData",t.leftData.concat(c)),n("update:rightData",p),n("left"),a.rightChecked=[]}},d=()=>{if(i.value?.length>0){let c=i.value.filter(A=>A[t.options.disabled]==!1),p=t.rightData.filter(A=>c.some(x=>x[t.options.value]==A[t.options.value])),h=t.rightData.filter(A=>c.every(x=>x[t.options.value]!=A[t.options.value]));n("update:leftData",t.leftData.concat(p)),n("update:rightData",h),n("allLeft"),a.rightChecked=[]}};return(c,p)=>{const h=r.resolveComponent("el-checkbox"),A=r.resolveComponent("el-input"),x=r.resolveComponent("el-checkbox-group"),_=r.resolveComponent("el-col"),g=r.resolveComponent("el-button"),b=r.resolveComponent("el-row");return r.openBlock(),r.createBlock(b,{gutter:10},{default:r.withCtx(()=>[r.createVNode(_,{span:10},{default:r.withCtx(()=>[r.createElementVNode("div",E2,[r.createElementVNode("p",l2,[r.createVNode(h,{modelValue:a.leftAllChecked,"onUpdate:modelValue":p[0]||(p[0]=w=>a.leftAllChecked=w),indeterminate:l.value,"validate-event":!1,onChange:E},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),r.createElementVNode("span",null,r.toDisplayString(a.leftChecked.length)+"/"+r.toDisplayString(t.leftData.length),1)]),r.createElementVNode("div",i2,[r.createVNode(A,{class:"transfer-panel__filter",modelValue:a.leftKeyword,"onUpdate:modelValue":p[1]||(p[1]=w=>a.leftKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),r.withDirectives(r.createVNode(x,{modelValue:a.leftChecked,"onUpdate:modelValue":p[2]||(p[2]=w=>a.leftChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(w,y)=>(r.openBlock(),r.createBlock(h,{key:y,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:v=>B(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[r.vShow,!0]])])])]),_:1}),r.createVNode(_,{span:4,class:"fm-transfer-buttons"},{default:r.withCtx(()=>[r.createElementVNode("div",s2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:D})]),r.createElementVNode("div",C2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:f})]),r.createElementVNode("div",F2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:m})]),r.createElementVNode("div",c2,[r.createVNode(g,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:d})])]),_:1}),r.createVNode(_,{span:10},{default:r.withCtx(()=>[r.createElementVNode("div",B2,[r.createElementVNode("p",D2,[r.createVNode(h,{modelValue:a.rightAllChecked,"onUpdate:modelValue":p[3]||(p[3]=w=>a.rightAllChecked=w),indeterminate:C.value,"validate-event":!1,onChange:s},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),r.createElementVNode("span",null,r.toDisplayString(a.rightChecked.length)+"/"+r.toDisplayString(t.rightData.length),1)]),r.createElementVNode("div",d2,[r.createVNode(A,{class:"transfer-panel__filter",modelValue:a.rightKeyword,"onUpdate:modelValue":p[4]||(p[4]=w=>a.rightKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),r.withDirectives(r.createVNode(x,{modelValue:a.rightChecked,"onUpdate:modelValue":p[5]||(p[5]=w=>a.rightChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(w,y)=>(r.openBlock(),r.createBlock(h,{key:y,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:v=>F(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[r.vShow,!0]])])])]),_:1})]),_:1})}}});const A2={class:"notice-bar-warp-text-box"},m2=["innerHTML"];var f2=r.defineComponent({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,n=r.ref(null),a=r.ref(null),o=r.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});r.onMounted(async()=>{t.scrollable||E()});const E=()=>{r.nextTick(()=>{if(n.value&&a.value){o.warpOWidth=n.value.offsetWidth,o.textOWidth=a.value.scrollWidth,o.animationDuration=(o.textOWidth+o.warpOWidth)/t.speed,a.value.style.animation="none",a.value.offsetHeight,a.value.style.animation=`marquee ${o.animationDuration}s linear infinite`;const l=`
@keyframes marquee {
0% { transform: translateX(${o.warpOWidth}px); }
100% { transform: translateX(-${o.textOWidth}px); }
}
`,i=document.createElement("style");i.innerText=l,document.head.appendChild(i)}})};return(l,i)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:"fm-notice-bar",style:r.normalizeStyle({background:u.background,height:`${u.height}px`})},[r.createElementVNode("div",{class:"notice-bar-warp",style:r.normalizeStyle({color:u.color,fontSize:`${u.size}px`}),ref_key:"noticeBarWarpRef",ref:n},[u.leftIcon?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["notice-bar-warp-left-icon",u.leftIcon])},null,2)):r.createCommentVNode("v-if",!0),r.createElementVNode("div",A2,[r.createElementVNode("div",{class:"notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:a},[r.createElementVNode("div",{innerHTML:t.text,"data-slate-editor":""},null,8,m2)],512)])],4)],4)),[[r.vShow,!o.isMode]])}}),h2={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 n=this.$refs.progressBar;n.style.width=e+this.height/2+"px";var a=Math.ceil(e/(this.width-this.height)*this.maxDegree*this.factor);this.cRotate=a;var o=this.ranRotate-a;this.imgStyle={transform:`rotateZ(${o}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,n=e.$refs.progressBar;t.style.left="0",n.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 n in u)Object.prototype.hasOwnProperty.call(u,n)&&(this[n]=u[n]);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()}}}},tr=(u,e)=>{const t=u.__vccOpts||u;for(const[n,a]of e)t[n]=a;return t};const g2={class:"drag-verify-container"},x2=["src"],_2={key:0,class:"tips success"},y2={key:1,class:"tips danger"};function b2(u,e,t,n,a,o){return r.openBlock(),r.createElementBlock("div",g2,[r.createElementVNode("div",{style:r.normalizeStyle([o.dragVerifyImgStyle,{"background-color":"var(--el-color-primary)"}])},[r.createElementVNode("img",{ref:"checkImg",src:t.imgsrc,class:r.normalizeClass(["check-img",{goOrigin:a.isOk}]),onLoad:e[0]||(e[0]=(...E)=>o.checkimgLoaded&&o.checkimgLoaded(...E)),style:r.normalizeStyle(a.imgStyle),alt:""},null,46,x2),t.showTips&&t.isPassing?(r.openBlock(),r.createElementBlock("div",_2,r.toDisplayString(t.successTip),1)):r.createCommentVNode("v-if",!0),t.showTips&&!t.isPassing&&a.showErrorTip?(r.openBlock(),r.createElementBlock("div",y2,r.toDisplayString(t.failTip),1)):r.createCommentVNode("v-if",!0)],4),r.createElementVNode("div",{ref:"dragVerify",class:"drag_verify",style:r.normalizeStyle(o.dragVerifyStyle),onMousemove:e[3]||(e[3]=(...E)=>o.dragMoving&&o.dragMoving(...E)),onMouseup:e[4]||(e[4]=(...E)=>o.dragFinish&&o.dragFinish(...E)),onMouseleave:e[5]||(e[5]=(...E)=>o.dragFinish&&o.dragFinish(...E)),onTouchmove:e[6]||(e[6]=r.withModifiers((...E)=>o.dragMoving&&o.dragMoving(...E),["prevent"])),onTouchend:e[7]||(e[7]=r.withModifiers((...E)=>o.dragFinish&&o.dragFinish(...E),["prevent"]))},[r.createElementVNode("div",{class:r.normalizeClass(["dv_progress_bar",{goFirst2:a.isOk}]),ref:"progressBar",style:r.normalizeStyle(o.progressBarStyle)},r.toDisplayString(o.successMessage),7),r.createElementVNode("div",{class:"dv_text",style:r.normalizeStyle(o.textStyle),ref:"message"},r.toDisplayString(o.message),5),r.createElementVNode("div",{class:r.normalizeClass(["dv_handler dv_handler_bg",{goFirst:a.isOk}]),onMousedown:e[1]||(e[1]=(...E)=>o.dragStart&&o.dragStart(...E)),onTouchstart:e[2]||(e[2]=r.withModifiers((...E)=>o.dragStart&&o.dragStart(...E),["prevent"])),ref:"handler",style:r.normalizeStyle([o.handlerStyle,{"background-color":"var(--el-color-primary)"}])},[r.createElementVNode("i",{class:r.normalizeClass(t.handlerIcon),style:{color:"#fff"}},null,2)],38)],36)])}var v2=tr(h2,[["render",b2],["__scopeId","data-v-9e8c9ed2"]]),w2=r.defineComponent({name:"Fmselect",__name:"index",props:r.mergeModels({optionData:{type:Array,default:[]},bvalue:{type:String,default:"id"},blabel:{type:String,default:"name"},elabel:{type:String,default:"\u8BF7\u9009\u62E9"},isshowelabel:{type:Boolean,default:!0},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"}},{id:{type:Number,default:0},idModifiers:{},name:{type:String,default:""},nameModifiers:{}}),emits:r.mergeModels(["change"],["update:id","update:name"]),setup(u,{emit:e}){const t=r.useModel(u,"id"),n=r.useModel(u,"name"),a=u,o=e,E=l=>{const i=a.optionData.find(s=>s[a.bvalue]==l);n.value=i==null?"":i[a.blabel],o("change",i)};return(l,i)=>{const s=r.resolveComponent("el-option"),C=r.resolveComponent("el-select");return r.openBlock(),r.createBlock(C,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=B=>t.value=B),placeholder:u.placeholder,onChange:E},{default:r.withCtx(()=>[u.isshowelabel?(r.openBlock(),r.createBlock(s,{key:0,value:0,label:u.elabel},null,8,["label"])):r.createCommentVNode("v-if",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.optionData,(B,D)=>(r.openBlock(),r.createBlock(s,{key:D,value:B[u.bvalue],label:B[u.blabel]},null,8,["value","label"]))),128))]),_:1},8,["modelValue","placeholder"])}}});function rr(u,e){return function(){return u.apply(e,arguments)}}const{toString:k2}=Object.prototype,{getPrototypeOf:o6}=Object,{iterator:b0,toStringTag:nr}=Symbol,v0=(u=>e=>{const t=k2.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ae=u=>(u=u.toLowerCase(),e=>v0(e)===u),w0=u=>e=>typeof e===u,{isArray:E5}=Array,S5=w0("undefined");function L5(u){return u!==null&&!S5(u)&&u.constructor!==null&&!S5(u.constructor)&&Wu(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const ar=ae("ArrayBuffer");function T2(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&ar(u.buffer),e}const S2=w0("string"),Wu=w0("function"),or=w0("number"),N5=u=>u!==null&&typeof u=="object",L2=u=>u===!0||u===!1,k0=u=>{if(v0(u)!=="object")return!1;const e=o6(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(nr in u)&&!(b0 in u)},N2=u=>{if(!N5(u)||L5(u))return!1;try{return Object.keys(u).length===0&&Object.getPrototypeOf(u)===Object.prototype}catch{return!1}},P2=ae("Date"),M2=ae("File"),V2=ae("Blob"),O2=ae("FileList"),R2=u=>N5(u)&&Wu(u.pipe),z2=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||Wu(u.append)&&((e=v0(u))==="formdata"||e==="object"&&Wu(u.toString)&&u.toString()==="[object FormData]"))},I2=ae("URLSearchParams"),[H2,q2,U2,j2]=["ReadableStream","Request","Response","Headers"].map(ae),$2=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P5(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,a;if(typeof u!="object"&&(u=[u]),E5(u))for(n=0,a=u.length;n<a;n++)e.call(null,u[n],n,u);else{if(L5(u))return;const o=t?Object.getOwnPropertyNames(u):Object.keys(u),E=o.length;let l;for(n=0;n<E;n++)l=o[n],e.call(null,u[l],l,u)}}function Er(u,e){if(L5(u))return null;e=e.toLowerCase();const t=Object.keys(u);let n=t.length,a;for(;n-- >0;)if(a=t[n],e===a.toLowerCase())return a;return null}const Ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lr=u=>!S5(u)&&u!==Ie;function E6(){const{caseless:u}=lr(this)&&this||{},e={},t=(n,a)=>{const o=u&&Er(e,a)||a;k0(e[o])&&k0(n)?e[o]=E6(e[o],n):k0(n)?e[o]=E6({},n):E5(n)?e[o]=n.slice():e[o]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&P5(arguments[n],t);return e}const W2=(u,e,t,{allOwnKeys:n}={})=>(P5(e,(a,o)=>{t&&Wu(a)?u[o]=rr(a,t):u[o]=a},{allOwnKeys:n}),u),G2=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),K2=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},Y2=(u,e,t,n)=>{let a,o,E;const l={};if(e=e||{},u==null)return e;do{for(a=Object.getOwnPropertyNames(u),o=a.length;o-- >0;)E=a[o],(!n||n(E,u,e))&&!l[E]&&(e[E]=u[E],l[E]=!0);u=t!==!1&&o6(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},J2=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},X2=u=>{if(!u)return null;if(E5(u))return u;let e=u.length;if(!or(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},Q2=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&o6(Uint8Array)),Z2=(u,e)=>{const n=(u&&u[b0]).call(u);let a;for(;(a=n.next())&&!a.done;){const o=a.value;e.call(u,o[0],o[1])}},ul=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},el=ae("HTMLFormElement"),tl=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),ir=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),rl=ae("RegExp"),sr=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};P5(t,(a,o)=>{let E;(E=e(a,o,u))!==!1&&(n[o]=E||a)}),Object.defineProperties(u,n)},nl=u=>{sr(u,(e,t)=>{if(Wu(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(Wu(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},al=(u,e)=>{const t={},n=a=>{a.forEach(o=>{t[o]=!0})};return E5(u)?n(u):n(String(u).split(e)),t},ol=()=>{},El=(u,e)=>u!=null&&Number.isFinite(u=+u)?u:e;function ll(u){return!!(u&&Wu(u.append)&&u[nr]==="FormData"&&u[b0])}const il=u=>{const e=new Array(10),t=(n,a)=>{if(N5(n)){if(e.indexOf(n)>=0)return;if(L5(n))return n;if(!("toJSON"in n)){e[a]=n;const o=E5(n)?[]:{};return P5(n,(E,l)=>{const i=t(E,a+1);!S5(i)&&(o[l]=i)}),e[a]=void 0,o}}return n};return t(u,0)},sl=ae("AsyncFunction"),Cl=u=>u&&(N5(u)||Wu(u))&&Wu(u.then)&&Wu(u.catch),Cr=((u,e)=>u?setImmediate:e?((t,n)=>(Ie.addEventListener("message",({source:a,data:o})=>{a===Ie&&o===t&&n.length&&n.shift()()},!1),a=>{n.push(a),Ie.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Wu(Ie.postMessage)),Fl=typeof queueMicrotask<"u"?queueMicrotask.bind(Ie):typeof process<"u"&&process.nextTick||Cr;var H={isArray:E5,isArrayBuffer:ar,isBuffer:L5,isFormData:z2,isArrayBufferView:T2,isString:S2,isNumber:or,isBoolean:L2,isObject:N5,isPlainObject:k0,isEmptyObject:N2,isReadableStream:H2,isRequest:q2,isResponse:U2,isHeaders:j2,isUndefined:S5,isDate:P2,isFile:M2,isBlob:V2,isRegExp:rl,isFunction:Wu,isStream:R2,isURLSearchParams:I2,isTypedArray:Q2,isFileList:O2,forEach:P5,merge:E6,extend:W2,trim:$2,stripBOM:G2,inherits:K2,toFlatObject:Y2,kindOf:v0,kindOfTest:ae,endsWith:J2,toArray:X2,forEachEntry:Z2,matchAll:ul,isHTMLForm:el,hasOwnProperty:ir,hasOwnProp:ir,reduceDescriptors:sr,freezeMethods:nl,toObjectSet:al,toCamelCase:tl,noop:ol,toFiniteNumber:El,findKey:Er,global:Ie,isContextDefined:lr,isSpecCompliantForm:ll,toJSONObject:il,isAsyncFn:sl,isThenable:Cl,setImmediate:Cr,asap:Fl,isIterable:u=>u!=null&&Wu(u[b0])};function ru(u,e,t,n,a){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),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}H.inherits(ru,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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Fr=ru.prototype,cr={};["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=>{cr[u]={value:u}}),Object.defineProperties(ru,cr),Object.defineProperty(Fr,"isAxiosError",{value:!0}),ru.from=(u,e,t,n,a,o)=>{const E=Object.create(Fr);return H.toFlatObject(u,E,function(i){return i!==Error.prototype},l=>l!=="isAxiosError"),ru.call(E,u.message,e,t,n,a),E.cause=u,E.name=u.name,o&&Object.assign(E,o),E};var l6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var i6,Br;function cl(){return Br||(Br=1,i6=typeof self=="object"?self.FormData:window.FormData),i6}var Bl=cl(),Dr=bu(Bl);function s6(u){return H.isPlainObject(u)||H.isArray(u)}function dr(u){return H.endsWith(u,"[]")?u.slice(0,-2):u}function pr(u,e,t){return u?u.concat(e).map(function(a,o){return a=dr(a),!t&&o?"["+a+"]":a}).join(t?".":""):e}function Dl(u){return H.isArray(u)&&!u.some(s6)}const dl=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function T0(u,e,t){if(!H.isObject(u))throw new TypeError("target must be an object");e=e||new(Dr||FormData),t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,d){return!H.isUndefined(d[f])});const n=t.metaTokens,a=t.visitor||C,o=t.dots,E=t.indexes,i=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function s(F){if(F===null)return"";if(H.isDate(F))return F.toISOString();if(H.isBoolean(F))return F.toString();if(!i&&H.isBlob(F))throw new ru("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(F)||H.isTypedArray(F)?i&&typeof Blob=="function"?new Blob([F]):Buffer.from(F):F}function C(F,f,d){let c=F;if(F&&!d&&typeof F=="object"){if(H.endsWith(f,"{}"))f=n?f:f.slice(0,-2),F=JSON.stringify(F);else if(H.isArray(F)&&Dl(F)||(H.isFileList(F)||H.endsWith(f,"[]"))&&(c=H.toArray(F)))return f=dr(f),c.forEach(function(h,A){!(H.isUndefined(h)||h===null)&&e.append(E===!0?pr([f],A,o):E===null?f:f+"[]",s(h))}),!1}return s6(F)?!0:(e.append(pr(d,f,o),s(F)),!1)}const B=[],D=Object.assign(dl,{defaultVisitor:C,convertValue:s,isVisitable:s6});function m(F,f){if(!H.isUndefined(F)){if(B.indexOf(F)!==-1)throw Error("Circular reference detected in "+f.join("."));B.push(F),H.forEach(F,function(c,p){(!(H.isUndefined(c)||c===null)&&a.call(e,c,H.isString(p)?p.trim():p,f,D))===!0&&m(c,f?f.concat(p):[p])}),B.pop()}}if(!H.isObject(u))throw new TypeError("data must be an object");return m(u),e}function Ar(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function mr(u,e){this._pairs=[],u&&T0(u,this,e)}const fr=mr.prototype;fr.append=function(e,t){this._pairs.push([e,t])},fr.toString=function(e){const t=e?function(n){return e.call(this,n,Ar)}:Ar;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function pl(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function C6(u,e,t){if(!e)return u;const n=t&&t.encode||pl;H.isFunction(t)&&(t={serialize:t});const a=t&&t.serialize;let o;if(a?o=a(e,t):o=H.isURLSearchParams(e)?e.toString():new mr(e,t).toString(n),o){const E=u.indexOf("#");E!==-1&&(u=u.slice(0,E)),u+=(u.indexOf("?")===-1?"?":"&")+o}return u}class hr{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(n){n!==null&&e(n)})}}var F6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Al=a6.URLSearchParams;const c6="abcdefghijklmnopqrstuvwxyz",gr="0123456789",xr={DIGIT:gr,ALPHA:c6,ALPHA_DIGIT:c6+c6.toUpperCase()+gr};var ml={isNode:!0,classes:{URLSearchParams:Al,FormData:Dr,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:xr,generateString:(u=16,e=xr.ALPHA_DIGIT)=>{let t="";const{length:n}=e,a=new Uint32Array(u);a2.randomFillSync(a);for(let o=0;o<u;o++)t+=e[a[o]%n];return t},protocols:["http","https","file","data"]};const B6=typeof window<"u"&&typeof document<"u",D6=typeof navigator=="object"&&navigator||void 0,fl=B6&&(!D6||["ReactNative","NativeScript","NS"].indexOf(D6.product)<0),hl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gl=B6&&window.location.href||"http://localhost";var xl=Object.freeze({__proto__:null,hasBrowserEnv:B6,hasStandardBrowserEnv:fl,hasStandardBrowserWebWorkerEnv:hl,navigator:D6,origin:gl}),gu={...xl,...ml};function _l(u,e){return T0(u,new gu.classes.URLSearchParams,{visitor:function(t,n,a,o){return gu.isNode&&H.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function yl(u){return H.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bl(u){const e={},t=Object.keys(u);let n;const a=t.length;let o;for(n=0;n<a;n++)o=t[n],e[o]=u[o];return e}function _r(u){function e(t,n,a,o){let E=t[o++];if(E==="__proto__")return!0;const l=Number.isFinite(+E),i=o>=t.length;return E=!E&&H.isArray(a)?a.length:E,i?(H.hasOwnProp(a,E)?a[E]=[a[E],n]:a[E]=n,!l):((!a[E]||!H.isObject(a[E]))&&(a[E]=[]),e(t,n,a[E],o)&&H.isArray(a[E])&&(a[E]=bl(a[E])),!l)}if(H.isFormData(u)&&H.isFunction(u.entries)){const t={};return H.forEachEntry(u,(n,a)=>{e(yl(n),a,t,0)}),t}return null}function vl(u,e,t){if(H.isString(u))try{return(e||JSON.parse)(u),H.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const M5={transitional:F6,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=H.isObject(e);if(o&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return a?JSON.stringify(_r(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _l(e,this.formSerializer).toString();if((l=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return T0(l?{"files[]":e}:e,i&&new i,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),vl(e)):e}],transformResponse:[function(e){const t=this.transitional||M5.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||a)){const E=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(l){if(E)throw l.name==="SyntaxError"?ru.from(l,ru.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gu.classes.FormData,Blob:gu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],u=>{M5.headers[u]={}});const wl=H.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 kl=u=>{const e={};let t,n,a;return u&&u.split(`
`).forEach(function(E){a=E.indexOf(":"),t=E.substring(0,a).trim().toLowerCase(),n=E.substring(a+1).trim(),!(!t||e[t]&&wl[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};const yr=Symbol("internals");function V5(u){return u&&String(u).trim().toLowerCase()}function S0(u){return u===!1||u==null?u:H.isArray(u)?u.map(S0):String(u)}function Tl(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const Sl=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function d6(u,e,t,n,a){if(H.isFunction(n))return n.call(this,e,t);if(a&&(e=t),!!H.isString(e)){if(H.isString(n))return e.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(e)}}function Ll(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Nl(u,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(a,o,E){return this[n].call(this,e,a,o,E)},configurable:!0})})}let Mu=class{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(l,i,s){const C=V5(i);if(!C)throw new Error("header name must be a non-empty string");const B=H.findKey(a,C);(!B||a[B]===void 0||s===!0||s===void 0&&a[B]!==!1)&&(a[B||i]=S0(l))}const E=(l,i)=>H.forEach(l,(s,C)=>o(s,C,i));if(H.isPlainObject(e)||e instanceof this.constructor)E(e,t);else if(H.isString(e)&&(e=e.trim())&&!Sl(e))E(kl(e),t);else if(H.isObject(e)&&H.isIterable(e)){let l={},i,s;for(const C of e){if(!H.isArray(C))throw TypeError("Object iterator must return a key-value pair");l[s=C[0]]=(i=l[s])?H.isArray(i)?[...i,C[1]]:[i,C[1]]:C[1]}E(l,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=V5(e),e){const n=H.findKey(this,e);if(n){const a=this[n];if(!t)return a;if(t===!0)return Tl(a);if(H.isFunction(t))return t.call(this,a,n);if(H.isRegExp(t))return t.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=V5(e),e){const n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||d6(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let a=!1;function o(E){if(E=V5(E),E){const l=H.findKey(n,E);l&&(!t||d6(n,n[l],l,t))&&(delete n[l],a=!0)}}return H.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const o=t[n];(!e||d6(this,this[o],o,e,!0))&&(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return H.forEach(this,(a,o)=>{const E=H.findKey(n,o);if(E){t[E]=S0(a),delete t[o];return}const l=e?Ll(o):String(o).trim();l!==o&&delete t[o],t[l]=S0(a),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(t[a]=e&&H.isArray(n)?n.join(", "):n)}),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 n=new this(e);return t.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[yr]=this[yr]={accessors:{}}).accessors,a=this.prototype;function o(E){const l=V5(E);n[l]||(Nl(a,E),n[l]=!0)}return H.isArray(e)?e.forEach(o):o(e),this}};Mu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Mu.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}}),H.freezeMethods(Mu);function p6(u,e){const t=this||M5,n=e||t,a=Mu.from(n.headers);let o=n.data;return H.forEach(u,function(l){o=l.call(t,o,a.normalize(),e?e.status:void 0)}),a.normalize(),o}function br(u){return!!(u&&u.__CANCEL__)}function we(u,e,t){ru.call(this,u??"canceled",ru.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(we,ru,{__CANCEL__:!0});function l5(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new ru("Request failed with status code "+t.status,[ru.ERR_BAD_REQUEST,ru.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Pl(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function Ml(u,e){return e?u.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):u}function A6(u,e,t){let n=!Pl(e);return u&&(n||t==!1)?Ml(u,e):e}var m6={},vr;function Vl(){if(vr)return m6;vr=1;var u=a6.parse,e={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},t=String.prototype.endsWith||function(E){return E.length<=this.length&&this.indexOf(E,this.length-E.length)!==-1};function n(E){var l=typeof E=="string"?u(E):E||{},i=l.protocol,s=l.host,C=l.port;if(typeof s!="string"||!s||typeof i!="string"||(i=i.split(":",1)[0],s=s.replace(/:\d*$/,""),C=parseInt(C)||e[i]||0,!a(s,C)))return"";var B=o("npm_config_"+i+"_proxy")||o(i+"_proxy")||o("npm_config_proxy")||o("all_proxy");return B&&B.indexOf("://")===-1&&(B=i+"://"+B),B}function a(E,l){var i=(o("npm_config_no_proxy")||o("no_proxy")).toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(s){if(!s)return!0;var C=s.match(/^(.+):(\d+)$/),B=C?C[1]:s,D=C?parseInt(C[2]):0;return D&&D!==l?!0:/^[.*]/.test(B)?(B.charAt(0)==="*"&&(B=B.slice(1)),!t.call(E,B)):E!==B}):!0}function o(E){return process.env[E.toLowerCase()]||process.env[E.toUpperCase()]||""}return m6.getProxyForUrl=n,m6}var Ol=Vl(),Rl=bu(Ol),L0={exports:{}},N0={exports:{}},f6,wr;function zl(){if(wr)return f6;wr=1;var u=1e3,e=u*60,t=e*60,n=t*24,a=n*7,o=n*365.25;f6=function(C,B){B=B||{};var D=typeof C;if(D==="string"&&C.length>0)return E(C);if(D==="number"&&isFinite(C))return B.long?i(C):l(C);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))};function E(C){if(C=String(C),!(C.length>100)){var B=/^(-?(?:\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(B){var D=parseFloat(B[1]),m=(B[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return D*o;case"weeks":case"week":case"w":return D*a;case"days":case"day":case"d":return D*n;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 l(C){var B=Math.abs(C);return B>=n?Math.round(C/n)+"d":B>=t?Math.round(C/t)+"h":B>=e?Math.round(C/e)+"m":B>=u?Math.round(C/u)+"s":C+"ms"}function i(C){var B=Math.abs(C);return B>=n?s(C,B,n,"day"):B>=t?s(C,B,t,"hour"):B>=e?s(C,B,e,"minute"):B>=u?s(C,B,u,"second"):C+" ms"}function s(C,B,D,m){var F=B>=D*1.5;return Math.round(C/D)+" "+m+(F?"s":"")}return f6}var h6,kr;function Il(){if(kr)return h6;kr=1;function u(e){n.debug=n,n.default=n,n.coerce=s,n.disable=l,n.enable=o,n.enabled=i,n.humanize=zl(),n.destroy=C,Object.keys(e).forEach(B=>{n[B]=e[B]}),n.names=[],n.skips=[],n.formatters={};function t(B){let D=0;for(let m=0;m<B.length;m++)D=(D<<5)-D+B.charCodeAt(m),D|=0;return n.colors[Math.abs(D)%n.colors.length]}n.selectColor=t;function n(B){let D,m=null,F,f;function d(...c){if(!d.enabled)return;const p=d,h=Number(new Date),A=h-(D||h);p.diff=A,p.prev=D,p.curr=h,D=h,c[0]=n.coerce(c[0]),typeof c[0]!="string"&&c.unshift("%O");let x=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,(g,b)=>{if(g==="%%")return"%";x++;const w=n.formatters[b];if(typeof w=="function"){const y=c[x];g=w.call(p,y),c.splice(x,1),x--}return g}),n.formatArgs.call(p,c),(p.log||n.log).apply(p,c)}return d.namespace=B,d.useColors=n.useColors(),d.color=n.selectColor(B),d.extend=a,d.destroy=n.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(F!==n.namespaces&&(F=n.namespaces,f=n.enabled(B)),f),set:c=>{m=c}}),typeof n.init=="function"&&n.init(d),d}function a(B,D){const m=n(this.namespace+(typeof D>"u"?":":D)+B);return m.log=this.log,m}function o(B){n.save(B),n.namespaces=B,n.names=[],n.skips=[];const D=(typeof B=="string"?B:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of D)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}function E(B,D){let m=0,F=0,f=-1,d=0;for(;m<B.length;)if(F<D.length&&(D[F]===B[m]||D[F]==="*"))D[F]==="*"?(f=F,d=m,F++):(m++,F++);else if(f!==-1)F=f+1,d++,m=d;else return!1;for(;F<D.length&&D[F]==="*";)F++;return F===D.length}function l(){const B=[...n.names,...n.skips.map(D=>"-"+D)].join(",");return n.enable(""),B}function i(B){for(const D of n.skips)if(E(B,D))return!1;for(const D of n.names)if(E(B,D))return!0;return!1}function s(B){return B instanceof Error?B.stack||B.message:B}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 n.enable(n.load()),n}return h6=u,h6}var Tr;function Hl(){return Tr||(Tr=1,function(u,e){e.formatArgs=n,e.save=save,e.load=a,e.useColors=t,e.storage=o(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!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 l;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&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const i="color: "+this.color;l.splice(1,0,i,"color: inherit");let s=0,C=0;l[0].replace(/%[a-zA-Z%]/g,B=>{B!=="%%"&&(s++,B==="%c"&&(C=s))}),l.splice(C,0,i)}e.log=console.debug||function(i){try{i?e.storage.setItem("debug",i):e.storage.removeItem("debug")}catch{}};function a(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function o(){try{return localStorage}catch{}}u.exports=Il()(e);const{formatters:E}=u.exports;E.j=function(l){try{return JSON.stringify(l)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}(N0,N0.exports)),N0.exports}var g6,Sr;function ql(){if(Sr)return g6;Sr=1;var u;return g6=function(){if(!u){try{u=Hl()("follow-redirects")}catch{}typeof u!="function"&&(u=function(){})}u.apply(null,arguments)},g6}var Lr;function Ul(){if(Lr)return L0.exports;Lr=1;var u=a6,e=u.URL,t=Z7,n=ur,a=ce.Writable,o=o2,E=ql();(function(){var P=typeof process<"u",k=typeof window<"u"&&typeof document<"u",I=q(Error.captureStackTrace);!P&&(k||!I)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var l=!1;try{o(new e(""))}catch(S){l=S.code==="ERR_INVALID_URL"}var i=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],s=["abort","aborted","connect","error","socket","timeout"],C=Object.create(null);s.forEach(function(S){C[S]=function(P,k,I){this._redirectable.emit(S,P,k,I)}});var B=w("ERR_INVALID_URL","Invalid URL",TypeError),D=w("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),m=w("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",D),F=w("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),f=w("ERR_STREAM_WRITE_AFTER_END","write after end"),d=a.prototype.destroy||h;function c(S,P){a.call(this),this._sanitizeOptions(S),this._options=S,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],P&&this.on("response",P);var k=this;this._onNativeResponse=function(I){try{k._processResponse(I)}catch(J){k.emit("error",J instanceof D?J:new D({cause:J}))}},this._performRequest()}c.prototype=Object.create(a.prototype),c.prototype.abort=function(){y(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},c.prototype.destroy=function(S){return y(this._currentRequest,S),d.call(this,S),this},c.prototype.write=function(S,P,k){if(this._ending)throw new f;if(!R(S)&&!L(S))throw new TypeError("data should be a string, Buffer or Uint8Array");if(q(P)&&(k=P,P=null),S.length===0){k&&k();return}this._requestBodyLength+S.length<=this._options.maxBodyLength?(this._requestBodyLength+=S.length,this._requestBodyBuffers.push({data:S,encoding:P}),this._currentRequest.write(S,P,k)):(this.emit("error",new F),this.abort())},c.prototype.end=function(S,P,k){if(q(S)?(k=S,S=P=null):q(P)&&(k=P,P=null),!S)this._ended=this._ending=!0,this._currentRequest.end(null,null,k);else{var I=this,J=this._currentRequest;this.write(S,P,function(){I._ended=!0,J.end(null,null,k)}),this._ending=!0}},c.prototype.setHeader=function(S,P){this._options.headers[S]=P,this._currentRequest.setHeader(S,P)},c.prototype.removeHeader=function(S){delete this._options.headers[S],this._currentRequest.removeHeader(S)},c.prototype.setTimeout=function(S,P){var k=this;function I(V){V.setTimeout(S),V.removeListener("timeout",V.destroy),V.addListener("timeout",V.destroy)}function J(V){k._timeout&&clearTimeout(k._timeout),k._timeout=setTimeout(function(){k.emit("timeout"),M()},S),I(V)}function M(){k._timeout&&(clearTimeout(k._timeout),k._timeout=null),k.removeListener("abort",M),k.removeListener("error",M),k.removeListener("response",M),k.removeListener("close",M),P&&k.removeListener("timeout",P),k.socket||k._currentRequest.removeListener("socket",J)}return P&&this.on("timeout",P),this.socket?J(this.socket):this._currentRequest.once("socket",J),this.on("socket",I),this.on("abort",M),this.on("error",M),this.on("response",M),this.on("close",M),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(S){c.prototype[S]=function(P,k){return this._currentRequest[S](P,k)}}),["aborted","connection","socket"].forEach(function(S){Object.defineProperty(c.prototype,S,{get:function(){return this._currentRequest[S]}})}),c.prototype._sanitizeOptions=function(S){if(S.headers||(S.headers={}),S.host&&(S.hostname||(S.hostname=S.host),delete S.host),!S.pathname&&S.path){var P=S.path.indexOf("?");P<0?S.pathname=S.path:(S.pathname=S.path.substring(0,P),S.search=S.path.substring(P))}},c.prototype._performRequest=function(){var S=this._options.protocol,P=this._options.nativeProtocols[S];if(!P)throw new TypeError("Unsupported protocol "+S);if(this._options.agents){var k=S.slice(0,-1);this._options.agent=this._options.agents[k]}var I=this._currentRequest=P.request(this._options,this._onNativeResponse);I._redirectable=this;for(var J of s)I.on(J,C[J]);if(this._currentUrl=/^\//.test(this._options.path)?u.format(this._options):this._options.path,this._isRedirect){var M=0,V=this,z=this._requestBodyBuffers;(function T(Y){if(I===V._currentRequest)if(Y)V.emit("error",Y);else if(M<z.length){var G=z[M++];I.finished||I.write(G.data,G.encoding,T)}else V._ended&&I.end()})()}},c.prototype._processResponse=function(S){var P=S.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:S.headers,statusCode:P});var k=S.headers.location;if(!k||this._options.followRedirects===!1||P<300||P>=400){S.responseUrl=this._currentUrl,S.redirects=this._redirects,this.emit("response",S),this._requestBodyBuffers=[];return}if(y(this._currentRequest),S.destroy(),++this._redirectCount>this._options.maxRedirects)throw new m;var I,J=this._options.beforeRedirect;J&&(I=Object.assign({Host:S.req.getHeader("host")},this._options.headers));var M=this._options.method;((P===301||P===302)&&this._options.method==="POST"||P===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],b(/^content-/i,this._options.headers));var V=b(/^host$/i,this._options.headers),z=A(this._currentUrl),T=V||z.host,Y=/^\w+:/.test(k)?this._currentUrl:u.format(Object.assign(z,{host:T})),G=x(k,Y);if(E("redirecting to",G.href),this._isRedirect=!0,g(G,this._options),(G.protocol!==z.protocol&&G.protocol!=="https:"||G.host!==T&&!v(G.host,T))&&b(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),q(J)){var eu={headers:S.headers,statusCode:P},uu={url:Y,method:M,headers:I};J(this._options,eu,uu),this._sanitizeOptions(this._options)}this._performRequest()};function p(S){var P={maxRedirects:21,maxBodyLength:10485760},k={};return Object.keys(S).forEach(function(I){var J=I+":",M=k[J]=S[I],V=P[I]=Object.create(M);function z(Y,G,eu){return $(Y)?Y=g(Y):R(Y)?Y=g(A(Y)):(eu=G,G=_(Y),Y={protocol:J}),q(G)&&(eu=G,G=null),G=Object.assign({maxRedirects:P.maxRedirects,maxBodyLength:P.maxBodyLength},Y,G),G.nativeProtocols=k,!R(G.host)&&!R(G.hostname)&&(G.hostname="::1"),o.equal(G.protocol,J,"p