blob: a370bc3e1941d5361a7eda5ba745f984db896ba8 [file] [log] [blame]
import{aa as Je,N as We,W as Ve}from"./index-_yryC3Xm.js";function Re(e,t){return function(){return e.apply(t,arguments)}}const{toString:$e}=Object.prototype,{getPrototypeOf:se}=Object,z=(e=>t=>{const n=$e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>z(t)===e),J=e=>t=>typeof t===e,{isArray:B}=Array,D=J("undefined");function Ke(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Oe=x("ArrayBuffer");function Ge(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oe(e.buffer),t}const Xe=J("string"),A=J("function"),Ae=J("number"),W=e=>e!==null&&typeof e=="object",Qe=e=>e===!0||e===!1,q=e=>{if(z(e)!=="object")return!1;const t=se(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ze=x("Date"),Ye=x("File"),et=x("Blob"),tt=x("FileList"),nt=e=>W(e)&&A(e.pipe),rt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=z(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},st=x("URLSearchParams"),ot=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let f;for(r=0;r<i;r++)f=o[r],t.call(null,e[f],f,e)}}function Te(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ne=e=>!D(e)&&e!==Pe;function Z(){const{caseless:e}=Ne(this)&&this||{},t={},n=(r,s)=>{const o=e&&Te(t,s)||s;q(t[o])&&q(r)?t[o]=Z(t[o],r):q(r)?t[o]=Z({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&j(arguments[r],n);return t}const it=(e,t,n,{allOwnKeys:r}={})=>(j(t,(s,o)=>{n&&A(s)?e[o]=Re(s,n):e[o]=s},{allOwnKeys:r}),e),at=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ct=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ut=(e,t,n,r)=>{let s,o,i;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=n!==!1&&se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ft=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!Ae(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&se(Uint8Array)),pt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},ht=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mt=x("HTMLFormElement"),yt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bt=x("RegExp"),xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Et=e=>{xe(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},St=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},wt=()=>{},gt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),K="abcdefghijklmnopqrstuvwxyz",de="0123456789",Ce={DIGIT:de,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+de},Rt=(e=16,t=Ce.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ot(e){return!!(e&&A(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const At=e=>{const t=new Array(10),n=(r,s)=>{if(W(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return j(r,(i,f)=>{const h=n(i,s+1);!D(h)&&(o[f]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Tt=x("AsyncFunction"),Pt=e=>e&&(W(e)||A(e))&&A(e.then)&&A(e.catch),c={isArray:B,isArrayBuffer:Oe,isBuffer:Ke,isFormData:rt,isArrayBufferView:Ge,isString:Xe,isNumber:Ae,isBoolean:Qe,isObject:W,isPlainObject:q,isUndefined:D,isDate:Ze,isFile:Ye,isBlob:et,isRegExp:bt,isFunction:A,isStream:nt,isURLSearchParams:st,isTypedArray:dt,isFileList:tt,forEach:j,merge:Z,extend:it,trim:ot,stripBOM:at,inherits:ct,toFlatObject:ut,kindOf:z,kindOfTest:x,endsWith:lt,toArray:ft,forEachEntry:pt,matchAll:ht,isHTMLForm:mt,hasOwnProperty:fe,hasOwnProp:fe,reduceDescriptors:xe,freezeMethods:Et,toObjectSet:St,toCamelCase:yt,noop:wt,toFiniteNumber:gt,findKey:Te,global:Pe,isContextDefined:Ne,ALPHABET:Ce,generateString:Rt,isSpecCompliantForm:Ot,toJSONObject:At,isAsyncFn:Tt,isThenable:Pt};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,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:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fe=y.prototype,_e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_e[e]={value:e}});Object.defineProperties(y,_e);Object.defineProperty(Fe,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(Fe);return c.toFlatObject(e,i,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Nt=null;function Y(e){return c.isPlainObject(e)||c.isArray(e)}function ke(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){return e?e.concat(t).map(function(s,o){return s=ke(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function xt(e){return c.isArray(e)&&!e.some(Y)}const Ct=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function V(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,p){return!c.isUndefined(p[u])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function m(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!h&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?h&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function d(a,u,p){let b=a;if(a&&!p&&typeof a=="object"){if(c.endsWith(u,"{}"))u=r?u:u.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&xt(a)||(c.isFileList(a)||c.endsWith(u,"[]"))&&(b=c.toArray(a)))return u=ke(u),b.forEach(function(R,E){!(c.isUndefined(R)||R===null)&&t.append(i===!0?pe([u],E,o):i===null?u:u+"[]",m(R))}),!1}return Y(a)?!0:(t.append(pe(p,u,o),m(a)),!1)}const l=[],S=Object.assign(Ct,{defaultVisitor:d,convertValue:m,isVisitable:Y});function O(a,u){if(!c.isUndefined(a)){if(l.indexOf(a)!==-1)throw Error("Circular reference detected in "+u.join("."));l.push(a),c.forEach(a,function(b,w){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(w)?w.trim():w,u,S))===!0&&O(b,u?u.concat(w):[w])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return O(e),t}function he(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oe(e,t){this._pairs=[],e&&V(e,this,t)}const Ue=oe.prototype;Ue.append=function(t,n){this._pairs.push([t,n])};Ue.toString=function(t){const n=t?function(r){return t.call(this,r,he)}:he;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ft(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Be(e,t,n){if(!t)return e;const r=n&&n.encode||Ft,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new oe(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class me{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_t=typeof URLSearchParams<"u"?URLSearchParams:oe,kt=typeof FormData<"u"?FormData:null,Ut=typeof Blob<"u"?Blob:null,Bt={isBrowser:!0,classes:{URLSearchParams:_t,FormData:kt,Blob:Ut},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",Lt=(e=>De&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:Lt,hasStandardBrowserWebWorkerEnv:Dt},Symbol.toStringTag,{value:"Module"})),N={...jt,...Bt};function vt(e,t){return V(e,new N.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return N.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function qt(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ht(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function je(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const f=Number.isFinite(+i),h=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,h?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!f):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Ht(s[i])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(qt(r),s,n,0)}),n}return null}function It(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ie={transitional:Le,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(je(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vt(t,this.formSerializer).toString();if((f=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return V(f?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),It(t)):t}],transformResponse:[function(t){const n=this.transitional||ie.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?y.from(f,y.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ie.headers[e]={}});const ae=ie,Mt=c.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"]),zt=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Mt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ye=Symbol("internals");function L(e){return e&&String(e).trim().toLowerCase()}function H(e){return e===!1||e==null?e:c.isArray(e)?e.map(H):String(e)}function Jt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function G(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Vt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $t(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ${constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(f,h,m){const d=L(h);if(!d)throw new Error("header name must be a non-empty string");const l=c.findKey(s,d);(!l||s[l]===void 0||m===!0||m===void 0&&s[l]!==!1)&&(s[l||h]=H(f))}const i=(f,h)=>c.forEach(f,(m,d)=>o(m,d,h));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Wt(t)?i(zt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=L(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Jt(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=L(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||G(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=L(i),i){const f=c.findKey(r,i);f&&(!n||G(r,r[f],f,n))&&(delete r[f],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||G(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=H(s),delete n[o];return}const f=t?Vt(o):String(o).trim();f!==o&&delete n[o],n[f]=H(s),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ye]=this[ye]={accessors:{}}).accessors,s=this.prototype;function o(i){const f=L(i);r[f]||($t(s,i),r[f]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors($.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods($);const C=$;function X(e,t){const n=this||ae,r=t||n,s=C.from(r.headers);let o=r.data;return c.forEach(e,function(f){o=f.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ve(e){return!!(e&&e.__CANCEL__)}function v(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(v,y,{__CANCEL__:!0});function Kt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Gt=N.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Xt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qe(e,t){return e&&!Xt(t)?Qt(e,t):t}const Zt=N.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const f=c.isString(i)?s(i):i;return f.protocol===r.protocol&&f.host===r.host}}():function(){return function(){return!0}}();function Yt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function en(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),d=r[o];i||(i=m),n[s]=h,r[s]=m;let l=o,S=0;for(;l!==s;)S+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),m-i<t)return;const O=d&&m-d;return O?Math.round(S*1e3/O):void 0}}function be(e,t){let n=0;const r=en(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,f=o-n,h=r(f),m=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:f,rate:h||void 0,estimated:h&&i&&m?(i-o)/h:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const tn=typeof XMLHttpRequest<"u",nn=tn&&function(e){return new Promise(function(n,r){let s=e.data;const o=C.from(e.headers).normalize();let{responseType:i,withXSRFToken:f}=e,h;function m(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}let d;if(c.isFormData(s)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[u,...p]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...p].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(u+":"+p))}const S=qe(e.baseURL,e.url);l.open(e.method.toUpperCase(),Be(S,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function O(){if(!l)return;const u=C.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:u,config:e,request:l};Kt(function(R){n(R),m()},function(R){r(R),m()},b),l=null}if("onloadend"in l?l.onloadend=O:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(O)},l.onabort=function(){l&&(r(new y("Request aborted",y.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||Le;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new y(p,b.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,l)),l=null},N.hasStandardBrowserEnv&&(f&&c.isFunction(f)&&(f=f(e)),f||f!==!1&&Zt(S))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&Gt.read(e.xsrfCookieName);u&&o.set(e.xsrfHeaderName,u)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&c.forEach(o.toJSON(),function(p,b){l.setRequestHeader(b,p)}),c.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",be(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",be(e.onUploadProgress)),(e.cancelToken||e.signal)&&(h=u=>{l&&(r(!u||u.type?new v(null,e,l):u),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h)));const a=Yt(S);if(a&&N.protocols.indexOf(a)===-1){r(new y("Unsupported protocol "+a+":",y.ERR_BAD_REQUEST,e));return}l.send(s||null)})},ee={http:Nt,xhr:nn};c.forEach(ee,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ee=e=>`- ${e}`,rn=e=>c.isFunction(e)||e===null||e===!1,He={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!rn(n)&&(r=ee[(i=String(n)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
`+o.map(Ee).join(`
`):" "+Ee(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ee};function Q(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v(null,e)}function Se(e){return Q(e),e.headers=C.from(e.headers),e.data=X.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),He.getAdapter(e.adapter||ae.adapter)(e).then(function(r){return Q(e),r.data=X.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return ve(r)||(Q(e),r&&r.response&&(r.response.data=X.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const we=e=>e instanceof C?e.toJSON():e;function U(e,t){t=t||{};const n={};function r(m,d,l){return c.isPlainObject(m)&&c.isPlainObject(d)?c.merge.call({caseless:l},m,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function s(m,d,l){if(c.isUndefined(d)){if(!c.isUndefined(m))return r(void 0,m,l)}else return r(m,d,l)}function o(m,d){if(!c.isUndefined(d))return r(void 0,d)}function i(m,d){if(c.isUndefined(d)){if(!c.isUndefined(m))return r(void 0,m)}else return r(void 0,d)}function f(m,d,l){if(l in t)return r(m,d);if(l in e)return r(void 0,m)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:f,headers:(m,d)=>s(we(m),we(d),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=h[d]||s,S=l(e[d],t[d],d);c.isUndefined(S)&&l!==f||(n[d]=S)}),n}const Ie="1.6.7",ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ge={};ce.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ie+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,f)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!ge[i]&&(ge[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,f):!0}};function sn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const f=e[o],h=f===void 0||i(f,o,e);if(h!==!0)throw new y("option "+o+" must be "+h,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const te={assertOptions:sn,validators:ce},F=te.validators;class M{constructor(t){this.defaults=t,this.interceptors={request:new me,response:new me}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=C.concat(i,o);const f=[];let h=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(n)===!1||(h=h&&u.synchronous,f.unshift(u.fulfilled,u.rejected))});const m=[];this.interceptors.response.forEach(function(u){m.push(u.fulfilled,u.rejected)});let d,l=0,S;if(!h){const a=[Se.bind(this),void 0];for(a.unshift.apply(a,f),a.push.apply(a,m),S=a.length,d=Promise.resolve(n);l<S;)d=d.then(a[l++],a[l++]);return d}S=f.length;let O=n;for(l=0;l<S;){const a=f[l++],u=f[l++];try{O=a(O)}catch(p){u.call(this,p);break}}try{d=Se.call(this,O)}catch(a){return Promise.reject(a)}for(l=0,S=m.length;l<S;)d=d.then(m[l++],m[l++]);return d}getUri(t){t=U(this.defaults,t);const n=qe(t.baseURL,t.url);return Be(n,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){M.prototype[t]=function(n,r){return this.request(U(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,f){return this.request(U(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}M.prototype[t]=n(),M.prototype[t+"Form"]=n(!0)});const I=M;class ue{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(f=>{r.subscribe(f),o=f}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,f){r.reason||(r.reason=new v(o,i,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ue(function(s){t=s}),cancel:t}}}const on=ue;function an(e){return function(n){return e.apply(null,n)}}function cn(e){return c.isObject(e)&&e.isAxiosError===!0}const ne={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ne).forEach(([e,t])=>{ne[t]=e});const un=ne;function Me(e){const t=new I(e),n=Re(I.prototype.request,t);return c.extend(n,I.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Me(U(e,s))},n}const g=Me(ae);g.Axios=I;g.CanceledError=v;g.CancelToken=on;g.isCancel=ve;g.VERSION=Ie;g.toFormData=V;g.AxiosError=y;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=an;g.isAxiosError=cn;g.mergeConfig=U;g.AxiosHeaders=C;g.formToJSON=e=>je(c.isHTMLForm(e)?new FormData(e):e);g.getAdapter=He.getAdapter;g.HttpStatusCode=un;g.default=g;var ze={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Je,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(a){var u,p;for(u in a)p=a[u],p!==void 0&&a.hasOwnProperty(u)&&(r[u]=p);return this},n.status=null,n.set=function(a){var u=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var p=n.render(!u),b=p.querySelector(r.barSelector),w=r.speed,R=r.easing;return p.offsetWidth,f(function(E){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(b,i(a,w,R)),a===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){n.remove(),E()},w)},w)):setTimeout(E,w)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var u=n.status;return u?(typeof a!="number"&&(a=(1-u)*s(Math.random()*u,.1,.95)),u=s(u+a,0,.994),n.set(u)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,u=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(u===0&&n.start(),a++,u++,p.always(function(){u--,u===0?(a=0,n.done()):n.set((a-u)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var u=document.createElement("div");u.id="nprogress",u.innerHTML=r.template;var p=u.querySelector(r.barSelector),b=a?"-100":o(n.status||0),w=document.querySelector(r.parent),R;return h(p,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),r.showSpinner||(R=u.querySelector(r.spinnerSelector),R&&O(R)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(u),u},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&O(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,u="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return u+"Perspective"in a?"translate3d":u+"Transform"in a?"translate":"margin"};function s(a,u,p){return a<u?u:a>p?p:a}function o(a){return(-1+a)*100}function i(a,u,p){var b;return r.positionUsing==="translate3d"?b={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?b={transform:"translate("+o(a)+"%,0)"}:b={"margin-left":o(a)+"%"},b.transition="all "+u+"ms "+p,b}var f=function(){var a=[];function u(){var p=a.shift();p&&p(u)}return function(p){a.push(p),a.length==1&&u()}}(),h=function(){var a=["Webkit","O","Moz","ms"],u={};function p(E){return E.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,P){return P.toUpperCase()})}function b(E){var T=document.body.style;if(E in T)return E;for(var P=a.length,k=E.charAt(0).toUpperCase()+E.slice(1),_;P--;)if(_=a[P]+k,_ in T)return _;return E}function w(E){return E=p(E),u[E]||(u[E]=b(E))}function R(E,T,P){T=w(T),E.style[T]=P}return function(E,T){var P=arguments,k,_;if(P.length==2)for(k in T)_=T[k],_!==void 0&&T.hasOwnProperty(k)&&R(E,k,_);else R(E,P[1],P[2])}}();function m(a,u){var p=typeof a=="string"?a:S(a);return p.indexOf(" "+u+" ")>=0}function d(a,u){var p=S(a),b=p+u;m(p,u)||(a.className=b.substring(1))}function l(a,u){var p=S(a),b;m(a,u)&&(b=p.replace(" "+u+" "," "),a.className=b.substring(1,b.length-1))}function S(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function O(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(ze);var ln=ze.exports;const re=We(ln),le=g.create({baseURL:"/mock",timeout:30*1e3}),fn=le.interceptors.request,dn=le.interceptors.response;fn.use(e=>(e.data=JSON.stringify(e.data),e.headers={"Content-Type":"application/json"},re.start(),e),e=>{Promise.reject(e)});dn.use(e=>(re.done(),e.status===200?Promise.resolve(e.data):Promise.reject(e)),e=>(re.done(),Ve.error(e.message),Promise.resolve(e.response)));const hn=le;export{hn as r};