UNPKG

@xhq-xlcdp/list-scaffold

Version:

## Props

1,661 lines 121 kB
import { defineComponent as Ho, ref as he, watch as Vo, onMounted as $o, onActivated as Jo, resolveComponent as Rt, resolveDirective as Go, createElementBlock as Ae, openBlock as H, createElementVNode as ue, renderSlot as Be, createVNode as Re, unref as xe, withCtx as re, Fragment as He, renderList as et, createBlock as le, resolveDynamicComponent as jt, mergeProps as Ve, createTextVNode as _t, withDirectives as Qo, createCommentVNode as tt, createSlots as jr, toDisplayString as Pt, Transition as Xo } from "vue"; import { ElForm as Yo, ElFormItem as Zo, ElTable as ea, ElTableColumn as xt, ElPagination as ta, ElMessage as ra } from "element-plus"; import { useRoute as na, useRouter as oa } from "vue-router"; import './index.CyzbSP1g.css';var aa = Object.defineProperty, ia = (e, t, n) => t in e ? aa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, me = (e, t, n) => ia(e, typeof t != "symbol" ? t + "" : t, n); function to(e, t) { return function() { return e.apply(t, arguments); }; } const { toString: sa } = Object.prototype, { getPrototypeOf: lr } = Object, { iterator: st, toStringTag: ro } = Symbol, ut = /* @__PURE__ */ ((e) => (t) => { const n = sa.call(t); return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)), se = (e) => (e = e.toLowerCase(), (t) => ut(t) === e), lt = (e) => (t) => typeof t === e, { isArray: Me } = Array, Je = lt("undefined"); function ua(e) { return e !== null && !Je(e) && e.constructor !== null && !Je(e.constructor) && G(e.constructor.isBuffer) && e.constructor.isBuffer(e); } const no = se("ArrayBuffer"); function la(e) { let t; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && no(e.buffer), t; } const ca = lt("string"), G = lt("function"), oo = lt("number"), ct = (e) => e !== null && typeof e == "object", fa = (e) => e === !0 || e === !1, rt = (e) => { if (ut(e) !== "object") return !1; const t = lr(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ro in e) && !(st in e); }, pa = se("Date"), ya = se("File"), da = se("Blob"), ha = se("FileList"), ma = (e) => ct(e) && G(e.pipe), ga = (e) => { let t; return e && (typeof FormData == "function" && e instanceof FormData || G(e.append) && ((t = ut(e)) === "formdata" || // detect form-data instance t === "object" && G(e.toString) && e.toString() === "[object FormData]")); }, ba = se("URLSearchParams"), [wa, va, Sa, Oa] = ["ReadableStream", "Request", "Response", "Headers"].map(se), Ea = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); function Ge(e, t, { allOwnKeys: n = !1 } = {}) { if (e === null || typeof e > "u") return; let r, o; if (typeof e != "object" && (e = [e]), Me(e)) for (r = 0, o = e.length; r < o; r++) t.call(null, e[r], r, e); else { const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length; let f; for (r = 0; r < i; r++) f = a[r], t.call(null, e[f], f, e); } } function ao(e, t) { t = t.toLowerCase(); const n = Object.keys(e); let r = n.length, o; for (; r-- > 0; ) if (o = n[r], t === o.toLowerCase()) return o; return null; } const Te = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, io = (e) => !Je(e) && e !== Te; function nr() { const { caseless: e } = io(this) && this || {}, t = {}, n = (r, o) => { const a = e && ao(t, o) || o; rt(t[a]) && rt(r) ? t[a] = nr(t[a], r) : rt(r) ? t[a] = nr({}, r) : Me(r) ? t[a] = r.slice() : t[a] = r; }; for (let r = 0, o = arguments.length; r < o; r++) arguments[r] && Ge(arguments[r], n); return t; } const Aa = (e, t, n, { allOwnKeys: r } = {}) => (Ge(t, (o, a) => { n && G(o) ? e[a] = to(o, n) : e[a] = o; }, { allOwnKeys: r }), e), Ra = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ja = (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); }, _a = (e, t, n, r) => { let o, a, i; const f = {}; if (t = t || {}, e == null) return t; do { for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; ) i = o[a], (!r || r(i, e, t)) && !f[i] && (t[i] = e[i], f[i] = !0); e = n !== !1 && lr(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; }, Pa = (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; }, xa = (e) => { if (!e) return null; if (Me(e)) return e; let t = e.length; if (!oo(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n; }, Ta = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && lr(Uint8Array)), ka = (e, t) => { const n = (e && e[st]).call(e); let r; for (; (r = n.next()) && !r.done; ) { const o = r.value; t.call(e, o[0], o[1]); } }, Fa = (e, t) => { let n; const r = []; for (; (n = e.exec(t)) !== null; ) r.push(n); return r; }, Na = se("HTMLFormElement"), Ca = (e) => e.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(t, n, r) { return n.toUpperCase() + r; } ), _r = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Da = se("RegExp"), so = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; Ge(n, (o, a) => { let i; (i = t(o, a, e)) !== !1 && (r[a] = i || o); }), Object.defineProperties(e, r); }, Ua = (e) => { so(e, (t, n) => { if (G(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return !1; const r = e[n]; if (G(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 + "'"); }); } }); }, La = (e, t) => { const n = {}, r = (o) => { o.forEach((a) => { n[a] = !0; }); }; return Me(e) ? r(e) : r(String(e).split(t)), n; }, Ia = () => { }, Ba = (e, t) => e != null && Number.isFinite(e = +e) ? e : t; function Ma(e) { return !!(e && G(e.append) && e[ro] === "FormData" && e[st]); } const Wa = (e) => { const t = new Array(10), n = (r, o) => { if (ct(r)) { if (t.indexOf(r) >= 0) return; if (!("toJSON" in r)) { t[o] = r; const a = Me(r) ? [] : {}; return Ge(r, (i, f) => { const g = n(i, o + 1); !Je(g) && (a[f] = g); }), t[o] = void 0, a; } } return r; }; return n(e, 0); }, za = se("AsyncFunction"), Ka = (e) => e && (ct(e) || G(e)) && G(e.then) && G(e.catch), uo = ((e, t) => e ? setImmediate : t ? ((n, r) => (Te.addEventListener("message", ({ source: o, data: a }) => { o === Te && a === n && r.length && r.shift()(); }, !1), (o) => { r.push(o), Te.postMessage(n, "*"); }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))( typeof setImmediate == "function", G(Te.postMessage) ), qa = typeof queueMicrotask < "u" ? queueMicrotask.bind(Te) : typeof process < "u" && process.nextTick || uo, Ha = (e) => e != null && G(e[st]), d = { isArray: Me, isArrayBuffer: no, isBuffer: ua, isFormData: ga, isArrayBufferView: la, isString: ca, isNumber: oo, isBoolean: fa, isObject: ct, isPlainObject: rt, isReadableStream: wa, isRequest: va, isResponse: Sa, isHeaders: Oa, isUndefined: Je, isDate: pa, isFile: ya, isBlob: da, isRegExp: Da, isFunction: G, isStream: ma, isURLSearchParams: ba, isTypedArray: Ta, isFileList: ha, forEach: Ge, merge: nr, extend: Aa, trim: Ea, stripBOM: Ra, inherits: ja, toFlatObject: _a, kindOf: ut, kindOfTest: se, endsWith: Pa, toArray: xa, forEachEntry: ka, matchAll: Fa, isHTMLForm: Na, hasOwnProperty: _r, hasOwnProp: _r, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors: so, freezeMethods: Ua, toObjectSet: La, toCamelCase: Ca, noop: Ia, toFiniteNumber: Ba, findKey: ao, global: Te, isContextDefined: io, isSpecCompliantForm: Ma, toJSONObject: Wa, isAsyncFn: za, isThenable: Ka, setImmediate: uo, asap: qa, isIterable: Ha }; function T(e, t, n, r, o) { 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), o && (this.response = o, this.status = o.status ? o.status : null); } d.inherits(T, Error, { toJSON: function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: d.toJSONObject(this.config), code: this.code, status: this.status }; } }); const lo = T.prototype, co = {}; [ "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" // eslint-disable-next-line func-names ].forEach((e) => { co[e] = { value: e }; }); Object.defineProperties(T, co); Object.defineProperty(lo, "isAxiosError", { value: !0 }); T.from = (e, t, n, r, o, a) => { const i = Object.create(lo); return d.toFlatObject(e, i, function(f) { return f !== Error.prototype; }, (f) => f !== "isAxiosError"), T.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i; }; const Va = null; function or(e) { return d.isPlainObject(e) || d.isArray(e); } function fo(e) { return d.endsWith(e, "[]") ? e.slice(0, -2) : e; } function Pr(e, t, n) { return e ? e.concat(t).map(function(r, o) { return r = fo(r), !n && o ? "[" + r + "]" : r; }).join(n ? "." : "") : t; } function $a(e) { return d.isArray(e) && !e.some(or); } const Ja = d.toFlatObject(d, {}, null, function(e) { return /^is[A-Z]/.test(e); }); function ft(e, t, n) { if (!d.isObject(e)) throw new TypeError("target must be an object"); t = t || new FormData(), n = d.toFlatObject(n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(p, S) { return !d.isUndefined(S[p]); }); const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t); if (!d.isFunction(o)) throw new TypeError("visitor must be a function"); function g(p) { if (p === null) return ""; if (d.isDate(p)) return p.toISOString(); if (d.isBoolean(p)) return p.toString(); if (!f && d.isBlob(p)) throw new T("Blob is not supported. Use a Buffer instead."); return d.isArrayBuffer(p) || d.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; } function l(p, S, s) { let w = p; if (p && !s && typeof p == "object") { if (d.endsWith(S, "{}")) S = r ? S : S.slice(0, -2), p = JSON.stringify(p); else if (d.isArray(p) && $a(p) || (d.isFileList(p) || d.endsWith(S, "[]")) && (w = d.toArray(p))) return S = fo(S), w.forEach(function(b, m) { !(d.isUndefined(b) || b === null) && t.append( // eslint-disable-next-line no-nested-ternary i === !0 ? Pr([S], m, a) : i === null ? S : S + "[]", g(b) ); }), !1; } return or(p) ? !0 : (t.append(Pr(s, S, a), g(p)), !1); } const u = [], E = Object.assign(Ja, { defaultVisitor: l, convertValue: g, isVisitable: or }); function y(p, S) { if (!d.isUndefined(p)) { if (u.indexOf(p) !== -1) throw Error("Circular reference detected in " + S.join(".")); u.push(p), d.forEach(p, function(s, w) { (!(d.isUndefined(s) || s === null) && o.call( t, s, d.isString(w) ? w.trim() : w, S, E )) === !0 && y(s, S ? S.concat(w) : [w]); }), u.pop(); } } if (!d.isObject(e)) throw new TypeError("data must be an object"); return y(e), t; } function xr(e) { const t = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) { return t[n]; }); } function cr(e, t) { this._pairs = [], e && ft(e, this, t); } const po = cr.prototype; po.append = function(e, t) { this._pairs.push([e, t]); }; po.toString = function(e) { const t = e ? function(n) { return e.call(this, n, xr); } : xr; return this._pairs.map(function(n) { return t(n[0]) + "=" + t(n[1]); }, "").join("&"); }; function Ga(e) { return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } function yo(e, t, n) { if (!t) return e; const r = n && n.encode || Ga; d.isFunction(n) && (n = { serialize: n }); const o = n && n.serialize; let a; if (o ? a = o(t, n) : a = d.isURLSearchParams(t) ? t.toString() : new cr(t, n).toString(r), a) { const i = e.indexOf("#"); i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a; } return e; } class Tr { constructor() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ 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; } /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` * * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise */ eject(t) { this.handlers[t] && (this.handlers[t] = null); } /** * Clear all interceptors from the stack * * @returns {void} */ clear() { this.handlers && (this.handlers = []); } /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor * * @returns {void} */ forEach(t) { d.forEach(this.handlers, function(n) { n !== null && t(n); }); } } const ho = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, Qa = typeof URLSearchParams < "u" ? URLSearchParams : cr, Xa = typeof FormData < "u" ? FormData : null, Ya = typeof Blob < "u" ? Blob : null, Za = { isBrowser: !0, classes: { URLSearchParams: Qa, FormData: Xa, Blob: Ya }, protocols: ["http", "https", "file", "blob", "url", "data"] }, fr = typeof window < "u" && typeof document < "u", ar = typeof navigator == "object" && navigator || void 0, ei = fr && (!ar || ["ReactNative", "NativeScript", "NS"].indexOf(ar.product) < 0), ti = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ri = fr && window.location.href || "http://localhost", ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, hasBrowserEnv: fr, hasStandardBrowserEnv: ei, hasStandardBrowserWebWorkerEnv: ti, navigator: ar, origin: ri }, Symbol.toStringTag, { value: "Module" })), J = { ...ni, ...Za }; function oi(e, t) { return ft(e, new J.classes.URLSearchParams(), Object.assign({ visitor: function(n, r, o, a) { return J.isNode && d.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments); } }, t)); } function ai(e) { return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); } function ii(e) { const t = {}, n = Object.keys(e); let r; const o = n.length; let a; for (r = 0; r < o; r++) a = n[r], t[a] = e[a]; return t; } function mo(e) { function t(n, r, o, a) { let i = n[a++]; if (i === "__proto__") return !0; const f = Number.isFinite(+i), g = a >= n.length; return i = !i && d.isArray(o) ? o.length : i, g ? (d.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !f) : ((!o[i] || !d.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && d.isArray(o[i]) && (o[i] = ii(o[i])), !f); } if (d.isFormData(e) && d.isFunction(e.entries)) { const n = {}; return d.forEachEntry(e, (r, o) => { t(ai(r), o, n, 0); }), n; } return null; } function si(e, t, n) { if (d.isString(e)) try { return (t || JSON.parse)(e), d.trim(e); } catch (r) { if (r.name !== "SyntaxError") throw r; } return (n || JSON.stringify)(e); } const Qe = { transitional: ho, adapter: ["xhr", "http", "fetch"], transformRequest: [function(e, t) { const n = t.getContentType() || "", r = n.indexOf("application/json") > -1, o = d.isObject(e); if (o && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e)) return r ? JSON.stringify(mo(e)) : e; if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e) || d.isReadableStream(e)) return e; if (d.isArrayBufferView(e)) return e.buffer; if (d.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString(); let a; if (o) { if (n.indexOf("application/x-www-form-urlencoded") > -1) return oi(e, this.formSerializer).toString(); if ((a = d.isFileList(e)) || n.indexOf("multipart/form-data") > -1) { const i = this.env && this.env.FormData; return ft( a ? { "files[]": e } : e, i && new i(), this.formSerializer ); } } return o || r ? (t.setContentType("application/json", !1), si(e)) : e; }], transformResponse: [function(e) { const t = this.transitional || Qe.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json"; if (d.isResponse(e) || d.isReadableStream(e)) return e; if (e && d.isString(e) && (n && !this.responseType || r)) { const o = !(t && t.silentJSONParsing) && r; try { return JSON.parse(e); } catch (a) { if (o) throw a.name === "SyntaxError" ? T.from(a, T.ERR_BAD_RESPONSE, this, null, this.response) : a; } } return e; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: J.classes.FormData, Blob: J.classes.Blob }, validateStatus: function(e) { return e >= 200 && e < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { Qe.headers[e] = {}; }); const ui = d.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" ]), li = (e) => { const t = {}; let n, r, o; return e && e.split(` `).forEach(function(a) { o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && ui[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); }), t; }, kr = Symbol("internals"); function $e(e) { return e && String(e).trim().toLowerCase(); } function nt(e) { return e === !1 || e == null ? e : d.isArray(e) ? e.map(nt) : String(e); } function ci(e) { const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let r; for (; r = n.exec(e); ) t[r[1]] = r[2]; return t; } const fi = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); function Tt(e, t, n, r, o) { if (d.isFunction(r)) return r.call(this, t, n); if (o && (t = n), !!d.isString(t)) { if (d.isString(r)) return t.indexOf(r) !== -1; if (d.isRegExp(r)) return r.test(t); } } function pi(e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r); } function yi(e, t) { const n = d.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + n, { value: function(o, a, i) { return this[r].call(this, t, o, a, i); }, configurable: !0 }); }); } let Q = class { constructor(e) { e && this.set(e); } set(e, t, n) { const r = this; function o(i, f, g) { const l = $e(f); if (!l) throw new Error("header name must be a non-empty string"); const u = d.findKey(r, l); (!u || r[u] === void 0 || g === !0 || g === void 0 && r[u] !== !1) && (r[u || f] = nt(i)); } const a = (i, f) => d.forEach(i, (g, l) => o(g, l, f)); if (d.isPlainObject(e) || e instanceof this.constructor) a(e, t); else if (d.isString(e) && (e = e.trim()) && !fi(e)) a(li(e), t); else if (d.isObject(e) && d.isIterable(e)) { let i = {}, f, g; for (const l of e) { if (!d.isArray(l)) throw TypeError("Object iterator must return a key-value pair"); i[g = l[0]] = (f = i[g]) ? d.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1]; } a(i, t); } else e != null && o(t, e, n); return this; } get(e, t) { if (e = $e(e), e) { const n = d.findKey(this, e); if (n) { const r = this[n]; if (!t) return r; if (t === !0) return ci(r); if (d.isFunction(t)) return t.call(this, r, n); if (d.isRegExp(t)) return t.exec(r); throw new TypeError("parser must be boolean|regexp|function"); } } } has(e, t) { if (e = $e(e), e) { const n = d.findKey(this, e); return !!(n && this[n] !== void 0 && (!t || Tt(this, this[n], n, t))); } return !1; } delete(e, t) { const n = this; let r = !1; function o(a) { if (a = $e(a), a) { const i = d.findKey(n, a); i && (!t || Tt(n, n[i], i, t)) && (delete n[i], r = !0); } } return d.isArray(e) ? e.forEach(o) : o(e), r; } clear(e) { const t = Object.keys(this); let n = t.length, r = !1; for (; n--; ) { const o = t[n]; (!e || Tt(this, this[o], o, e, !0)) && (delete this[o], r = !0); } return r; } normalize(e) { const t = this, n = {}; return d.forEach(this, (r, o) => { const a = d.findKey(n, o); if (a) { t[a] = nt(r), delete t[o]; return; } const i = e ? pi(o) : String(o).trim(); i !== o && delete t[o], t[i] = nt(r), n[i] = !0; }), this; } concat(...e) { return this.constructor.concat(this, ...e); } toJSON(e) { const t = /* @__PURE__ */ Object.create(null); return d.forEach(this, (n, r) => { n != null && n !== !1 && (t[r] = e && d.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((r) => n.set(r)), n; } static accessor(e) { const t = (this[kr] = this[kr] = { accessors: {} }).accessors, n = this.prototype; function r(o) { const a = $e(o); t[a] || (yi(n, o), t[a] = !0); } return d.isArray(e) ? e.forEach(r) : r(e), this; } }; Q.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); d.reduceDescriptors(Q.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, set(r) { this[n] = r; } }; }); d.freezeMethods(Q); function kt(e, t) { const n = this || Qe, r = t || n, o = Q.from(r.headers); let a = r.data; return d.forEach(e, function(i) { a = i.call(n, a, o.normalize(), t ? t.status : void 0); }), o.normalize(), a; } function go(e) { return !!(e && e.__CANCEL__); } function We(e, t, n) { T.call(this, e ?? "canceled", T.ERR_CANCELED, t, n), this.name = "CanceledError"; } d.inherits(We, T, { __CANCEL__: !0 }); function bo(e, t, n) { const r = n.config.validateStatus; !n.status || !r || r(n.status) ? e(n) : t(new T( "Request failed with status code " + n.status, [T.ERR_BAD_REQUEST, T.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n )); } function di(e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return t && t[1] || ""; } function hi(e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let o = 0, a = 0, i; return t = t !== void 0 ? t : 1e3, function(f) { const g = Date.now(), l = r[a]; i || (i = g), n[o] = f, r[o] = g; let u = a, E = 0; for (; u !== o; ) E += n[u++], u = u % e; if (o = (o + 1) % e, o === a && (a = (a + 1) % e), g - i < t) return; const y = l && g - l; return y ? Math.round(E * 1e3 / y) : void 0; }; } function mi(e, t) { let n = 0, r = 1e3 / t, o, a; const i = (f, g = Date.now()) => { n = g, o = null, a && (clearTimeout(a), a = null), e.apply(null, f); }; return [(...f) => { const g = Date.now(), l = g - n; l >= r ? i(f, g) : (o = f, a || (a = setTimeout(() => { a = null, i(o); }, r - l))); }, () => o && i(o)]; } const at = (e, t, n = 3) => { let r = 0; const o = hi(50, 250); return mi((a) => { const i = a.loaded, f = a.lengthComputable ? a.total : void 0, g = i - r, l = o(g), u = i <= f; r = i; const E = { loaded: i, total: f, progress: f ? i / f : void 0, bytes: g, rate: l || void 0, estimated: l && f && u ? (f - i) / l : void 0, event: a, lengthComputable: f != null, [t ? "download" : "upload"]: !0 }; e(E); }, n); }, Fr = (e, t) => { const n = e != null; return [(r) => t[0]({ lengthComputable: n, total: e, loaded: r }), t[1]]; }, Nr = (e) => (...t) => d.asap(() => e(...t)), gi = J.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, J.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))( new URL(J.origin), J.navigator && /(msie|trident)/i.test(J.navigator.userAgent) ) : () => !0, bi = J.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(e, t, n, r, o, a) { const i = [e + "=" + encodeURIComponent(t)]; d.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), d.isString(r) && i.push("path=" + r), d.isString(o) && i.push("domain=" + o), a === !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); } } ) : ( // Non-standard browser env (web workers, react-native) lack needed support. { write() { }, read() { return null; }, remove() { } } ); function wi(e) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); } function vi(e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; } function wo(e, t, n) { let r = !wi(t); return e && (r || n == !1) ? vi(e, t) : t; } const Cr = (e) => e instanceof Q ? { ...e } : e; function Fe(e, t) { t = t || {}; const n = {}; function r(l, u, E, y) { return d.isPlainObject(l) && d.isPlainObject(u) ? d.merge.call({ caseless: y }, l, u) : d.isPlainObject(u) ? d.merge({}, u) : d.isArray(u) ? u.slice() : u; } function o(l, u, E, y) { if (d.isUndefined(u)) { if (!d.isUndefined(l)) return r(void 0, l, E, y); } else return r(l, u, E, y); } function a(l, u) { if (!d.isUndefined(u)) return r(void 0, u); } function i(l, u) { if (d.isUndefined(u)) { if (!d.isUndefined(l)) return r(void 0, l); } else return r(void 0, u); } function f(l, u, E) { if (E in t) return r(l, u); if (E in e) return r(void 0, l); } const g = { url: a, method: a, data: a, 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: (l, u, E) => o(Cr(l), Cr(u), E, !0) }; return d.forEach(Object.keys(Object.assign({}, e, t)), function(l) { const u = g[l] || o, E = u(e[l], t[l], l); d.isUndefined(E) && u !== f || (n[l] = E); }), n; } const vo = (e) => { const t = Fe({}, e); let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: f } = t; t.headers = i = Q.from(i), t.url = yo(wo(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), f && i.set( "Authorization", "Basic " + btoa((f.username || "") + ":" + (f.password ? unescape(encodeURIComponent(f.password)) : "")) ); let g; if (d.isFormData(n)) { if (J.hasStandardBrowserEnv || J.hasStandardBrowserWebWorkerEnv) i.setContentType(void 0); else if ((g = i.getContentType()) !== !1) { const [l, ...u] = g ? g.split(";").map((E) => E.trim()).filter(Boolean) : []; i.setContentType([l || "multipart/form-data", ...u].join("; ")); } } if (J.hasStandardBrowserEnv && (r && d.isFunction(r) && (r = r(t)), r || r !== !1 && gi(t.url))) { const l = o && a && bi.read(a); l && i.set(o, l); } return t; }, Si = typeof XMLHttpRequest < "u", Oi = Si && function(e) { return new Promise(function(t, n) { const r = vo(e); let o = r.data; const a = Q.from(r.headers).normalize(); let { responseType: i, onUploadProgress: f, onDownloadProgress: g } = r, l, u, E, y, p; function S() { y && y(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l); } let s = new XMLHttpRequest(); s.open(r.method.toUpperCase(), r.url, !0), s.timeout = r.timeout; function w() { if (!s) return; const m = Q.from( "getAllResponseHeaders" in s && s.getAllResponseHeaders() ), O = { data: !i || i === "text" || i === "json" ? s.responseText : s.response, status: s.status, statusText: s.statusText, headers: m, config: e, request: s }; bo(function(_) { t(_), S(); }, function(_) { n(_), S(); }, O), s = null; } "onloadend" in s ? s.onloadend = w : s.onreadystatechange = function() { !s || s.readyState !== 4 || s.status === 0 && !(s.responseURL && s.responseURL.indexOf("file:") === 0) || setTimeout(w); }, s.onabort = function() { s && (n(new T("Request aborted", T.ECONNABORTED, e, s)), s = null); }, s.onerror = function() { n(new T("Network Error", T.ERR_NETWORK, e, s)), s = null; }, s.ontimeout = function() { let m = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded"; const O = r.transitional || ho; r.timeoutErrorMessage && (m = r.timeoutErrorMessage), n(new T( m, O.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED, e, s )), s = null; }, o === void 0 && a.setContentType(null), "setRequestHeader" in s && d.forEach(a.toJSON(), function(m, O) { s.setRequestHeader(O, m); }), d.isUndefined(r.withCredentials) || (s.withCredentials = !!r.withCredentials), i && i !== "json" && (s.responseType = r.responseType), g && ([E, p] = at(g, !0), s.addEventListener("progress", E)), f && s.upload && ([u, y] = at(f), s.upload.addEventListener("progress", u), s.upload.addEventListener("loadend", y)), (r.cancelToken || r.signal) && (l = (m) => { s && (n(!m || m.type ? new We(null, e, s) : m), s.abort(), s = null); }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l))); const b = di(r.url); if (b && J.protocols.indexOf(b) === -1) { n(new T("Unsupported protocol " + b + ":", T.ERR_BAD_REQUEST, e)); return; } s.send(o || null); }); }, Ei = (e, t) => { const { length: n } = e = e ? e.filter(Boolean) : []; if (t || n) { let r = new AbortController(), o; const a = function(l) { if (!o) { o = !0, f(); const u = l instanceof Error ? l : this.reason; r.abort(u instanceof T ? u : new We(u instanceof Error ? u.message : u)); } }; let i = t && setTimeout(() => { i = null, a(new T(`timeout ${t} of ms exceeded`, T.ETIMEDOUT)); }, t); const f = () => { e && (i && clearTimeout(i), i = null, e.forEach((l) => { l.unsubscribe ? l.unsubscribe(a) : l.removeEventListener("abort", a); }), e = null); }; e.forEach((l) => l.addEventListener("abort", a)); const { signal: g } = r; return g.unsubscribe = () => d.asap(f), g; } }, Ai = function* (e, t) { let n = e.byteLength; if (n < t) { yield e; return; } let r = 0, o; for (; r < n; ) o = r + t, yield e.slice(r, o), r = o; }, Ri = async function* (e, t) { for await (const n of ji(e)) yield* Ai(n, t); }, ji = async function* (e) { if (e[Symbol.asyncIterator]) { yield* e; return; } const t = e.getReader(); try { for (; ; ) { const { done: n, value: r } = await t.read(); if (n) break; yield r; } } finally { await t.cancel(); } }, Dr = (e, t, n, r) => { const o = Ri(e, t); let a = 0, i, f = (g) => { i || (i = !0, r && r(g)); }; return new ReadableStream({ async pull(g) { try { const { done: l, value: u } = await o.next(); if (l) { f(), g.close(); return; } let E = u.byteLength; if (n) { let y = a += E; n(y); } g.enqueue(new Uint8Array(u)); } catch (l) { throw f(l), l; } }, cancel(g) { return f(g), o.return(); } }, { highWaterMark: 2 }); }, pt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", So = pt && typeof ReadableStream == "function", _i = pt && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Oo = (e, ...t) => { try { return !!e(...t); } catch { return !1; } }, Pi = So && Oo(() => { let e = !1; const t = new Request(J.origin, { body: new ReadableStream(), method: "POST", get duplex() { return e = !0, "half"; } }).headers.has("Content-Type"); return e && !t; }), Ur = 64 * 1024, ir = So && Oo(() => d.isReadableStream(new Response("").body)), it = { stream: ir && ((e) => e.body) }; pt && ((e) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { !it[t] && (it[t] = d.isFunction(e[t]) ? (n) => n[t]() : (n, r) => { throw new T(`Response type '${t}' is not supported`, T.ERR_NOT_SUPPORT, r); }); }); })(new Response()); const xi = async (e) => { if (e == null) return 0; if (d.isBlob(e)) return e.size; if (d.isSpecCompliantForm(e)) return (await new Request(J.origin, { method: "POST", body: e }).arrayBuffer()).byteLength; if (d.isArrayBufferView(e) || d.isArrayBuffer(e)) return e.byteLength; if (d.isURLSearchParams(e) && (e = e + ""), d.isString(e)) return (await _i(e)).byteLength; }, Ti = async (e, t) => d.toFiniteNumber(e.getContentLength()) ?? xi(t), ki = pt && (async (e) => { let { url: t, method: n, data: r, signal: o, cancelToken: a, timeout: i, onDownloadProgress: f, onUploadProgress: g, responseType: l, headers: u, withCredentials: E = "same-origin", fetchOptions: y } = vo(e); l = l ? (l + "").toLowerCase() : "text"; let p = Ei([o, a && a.toAbortSignal()], i), S; const s = p && p.unsubscribe && (() => { p.unsubscribe(); }); let w; try { if (g && Pi && n !== "get" && n !== "head" && (w = await Ti(u, r)) !== 0) { let v = new Request(t, { method: "POST", body: r, duplex: "half" }), j; if (d.isFormData(r) && (j = v.headers.get("content-type")) && u.setContentType(j), v.body) { const [A, P] = Fr( w, at(Nr(g)) ); r = Dr(v.body, Ur, A, P); } } d.isString(E) || (E = E ? "include" : "omit"); const b = "credentials" in Request.prototype; S = new Request(t, { ...y, signal: p, method: n.toUpperCase(), headers: u.normalize().toJSON(), body: r, duplex: "half", credentials: b ? E : void 0 }); let m = await fetch(S, y); const O = ir && (l === "stream" || l === "response"); if (ir && (f || O && s)) { const v = {}; ["status", "statusText", "headers"].forEach((x) => { v[x] = m[x]; }); const j = d.toFiniteNumber(m.headers.get("content-length")), [A, P] = f && Fr( j, at(Nr(f), !0) ) || []; m = new Response( Dr(m.body, Ur, A, () => { P && P(), s && s(); }), v ); } l = l || "text"; let _ = await it[d.findKey(it, l) || "text"](m, e); return !O && s && s(), await new Promise((v, j) => { bo(v, j, { data: _, headers: Q.from(m.headers), status: m.status, statusText: m.statusText, config: e, request: S }); }); } catch (b) { throw s && s(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign( new T("Network Error", T.ERR_NETWORK, e, S), { cause: b.cause || b } ) : T.from(b, b && b.code, e, S); } }), sr = { http: Va, xhr: Oi, fetch: ki }; d.forEach(sr, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { value: t }); } catch { } Object.defineProperty(e, "adapterName", { value: t }); } }); const Lr = (e) => `- ${e}`, Fi = (e) => d.isFunction(e) || e === null || e === !1, Eo = { getAdapter: (e) => { e = d.isArray(e) ? e : [e]; const { length: t } = e; let n, r; const o = {}; for (let a = 0; a < t; a++) { n = e[a]; let i; if (r = n, !Fi(n) && (r = sr[(i = String(n)).toLowerCase()], r === void 0)) throw new T(`Unknown adapter '${i}'`); if (r) break; o[i || "#" + a] = r; } if (!r) { const a = Object.entries(o).map( ([f, g]) => `adapter ${f} ` + (g === !1 ? "is not supported by the environment" : "is not available in the build") ); let i = t ? a.length > 1 ? `since : ` + a.map(Lr).join(` `) : " " + Lr(a[0]) : "as no adapter specified"; throw new T( "There is no suitable adapter to dispatch the request " + i, "ERR_NOT_SUPPORT" ); } return r; }, adapters: sr }; function Ft(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new We(null, e); } function Ir(e) { return Ft(e), e.headers = Q.from(e.headers), e.data = kt.call( e, e.transformRequest ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Eo.getAdapter(e.adapter || Qe.adapter)(e).then(function(t) { return Ft(e), t.data = kt.call( e, e.transformResponse, t ), t.headers = Q.from(t.headers), t; }, function(t) { return go(t) || (Ft(e), t && t.response && (t.response.data = kt.call( e, e.transformResponse, t.response ), t.response.headers = Q.from(t.response.headers))), Promise.reject(t); }); } const Ao = "1.10.0", yt = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => { yt[e] = function(n) { return typeof n === e || "a" + (t < 1 ? "n " : " ") + e; }; }); const Br = {}; yt.transitional = function(e, t, n) { function r(o, a) { return "[Axios v" + Ao + "] Transitional option '" + o + "'" + a + (n ? ". " + n : ""); } return (o, a, i) => { if (e === !1) throw new T( r(a, " has been removed" + (t ? " in " + t : "")), T.ERR_DEPRECATED ); return t && !Br[a] && (Br[a] = !0, console.warn( r( a, " has been deprecated since v" + t + " and will be removed in the near future" ) )), e ? e(o, a, i) : !0; }; }; yt.spelling = function(e) { return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0); }; function Ni(e, t, n) { if (typeof e != "object") throw new T("options must be an object", T.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); let o = r.length; for (; o-- > 0; ) { const a = r[o], i = t[a]; if (i) { const f = e[a], g = f === void 0 || i(f, a, e); if (g !== !0) throw new T("option " + a + " must be " + g, T.ERR_BAD_OPTION_VALUE); continue; } if (n !== !0) throw new T("Unknown option " + a, T.ERR_BAD_OPTION); } } const ot = { assertOptions: Ni, validators: yt }, ce = ot.validators; let ke = class { constructor(e) { this.defaults = e || {}, this.interceptors = { request: new Tr(), response: new Tr() }; } /** * Dispatch a request * * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) * @param {?Object} config * * @returns {Promise} The Promise to be fulfilled */ async request(e, t) { try { return await this._request(e, t); } catch (n) { if (n instanceof Error) { let r = {}; Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error(); const o = r.stack ? r.stack.replace(/^.+\n/, "") : ""; try { n.stack ? o && !String(n.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (n.stack += ` ` + o) : n.stack = o; } catch { } } throw n; } } _request(e, t) { typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Fe(this.defaults, t); const { transitional: n, paramsSerializer: r, headers: o } = t; n !== void 0 && ot.assertOptions(n, { silentJSONParsing: ce.transitional(ce.boolean), forcedJSONParsing: ce.transitional(ce.boolean), clarifyTimeoutError: ce.transitional(ce.boolean) }, !1), r != null && (d.isFunction(r) ? t.paramsSerializer = { serialize: r } : ot.assertOptions(r, { encode: ce.function, serialize: ce.function }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), ot.assertOptions(t, { baseUrl: ce.spelling("baseURL"), withXsrfToken: ce.spelling("withXSRFToken") }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase(); let a = o && d.merge( o.common, o[t.method] ); o && d.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (p) => { delete o[p]; } ), t.headers = Q.concat(a, o); const i = []; let f = !0; this.interceptors.request.forEach(function(p) { typeof p.runWhen == "function" && p.runWhen(t) === !1 || (f = f && p.synchronous, i.unshift(p.fulfilled, p.rejected)); }); const g = []; this.interceptors.response.forEach(function(p) { g.push(p.fulfilled, p.rejected); }); let l, u = 0, E; if (!f) { const p = [Ir.bind(this), void 0]; for (p.unshift.apply(p, i), p.push.apply(p, g), E = p.length, l = Promise.resolve(t); u < E; ) l = l.then(p[u++], p[u++]); return l; } E = i.length; let y = t; for (u = 0; u < E; ) { const p = i[u++], S = i[u++]; try { y = p(y); } catch (s) { S.call(this, s); break; } } try { l = Ir.call(this, y); } catch (p) { return Promise.reject(p); } for (u = 0, E = g.length; u < E; ) l = l.then(g[u++], g[u++]); return l; } getUri(e) { e = Fe(this.defaults, e); const t = wo(e.baseURL, e.url, e.allowAbsoluteUrls); return yo(t, e.params, e.paramsSerializer); } }; d.forEach(["delete", "get", "head", "options"], function(e) { ke.prototype[e] = function(t, n) { return this.request(Fe(n || {}, { method: e, url: t, data: (n || {}).data })); }; }); d.forEach(["post", "put", "patch"], function(e) { function t(n) { return function(r, o, a) { return this.request(Fe(a || {}, { method: e, headers: n ? { "Content-Type": "multipart/form-data" } : {}, url: r, data: o })); }; } ke.prototype[e] = t(), ke.prototype[e + "Form"] = t(!0); }); let Ci = class Ro { 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((o) => { if (!r._listeners) return; let a = r._listeners.length; for (; a-- > 0; ) r._listeners[a](o); r._listeners = null; }), this.promise.then = (o) => { let a; const i = new Promise((f) => { r.subscribe(f), a = f; }).then(o); return i.cancel = function() { r.unsubscribe(a); }, i; }, t(function(o, a, i) { r.reason || (r.reason = new We(o, a, i), n(r.reason)); }); } /** * Throws a `CanceledError` if cancellation has been requested. */ throwIfRequested() { if (this.reason) throw this.reason; } /** * Subscribe to the cancel signal */ subscribe(t) { if (this.reason) { t(this.reason); return; } this._listeners ? this._listeners.push(t) : this._listeners = [t]; } /** * Unsubscribe from the cancel signal */ unsubscribe(t) { if (!this._listeners) return; const n = this._listeners.indexOf(t); n !== -1 && this._listeners.splice(n, 1); } toAbortSignal() { const t = new AbortController(), n = (r) => { t.abort(r); }; return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal; } /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ static source() { let t; return { token: new Ro(function(n) { t = n; }), cancel: t }; } }; function Di(e) { return function(t) { return e.apply(null, t); }; } function Ui(e) { return d.isObject(e) && e.isAxiosError === !0; } const ur = { 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(ur).forEach(([e, t]) => { ur[t] = e; }); function jo(e) { const t = new ke(e), n = to(ke.prototype.request, t); return d.extend(n,