@opengis/admin
Version:
This project Softpro Admin
1,630 lines • 2.19 MB
JavaScript
import { ref as it, getCurrentInstance as hr, onMounted as $o, resolveComponent as je, createBlock as Dt, createCommentVNode as ht, openBlock as Z, withCtx as Et, createElementVNode as R, createVNode as ze, createElementBlock as ee, Fragment as _t, watch as ts, inject as Nl, shallowRef as NC, defineComponent as ja, unref as Qs, shallowReactive as VC, reactive as $C, computed as yn, h as eu, provide as Sg, watchEffect as jC, nextTick as Tw, normalizeClass as Zt, toDisplayString as Fe, withDirectives as Kn, vModelText as n_, renderList as $t, normalizeStyle as La, vModelCheckbox as Fa, renderSlot as r_, resolveDynamicComponent as Jr, vModelRadio as UC, createStaticVNode as vs, vShow as rh, withModifiers as Aa, onUnmounted as HC, TransitionGroup as WC, Transition as sh, createTextVNode as kn, Teleport as s_, onBeforeUnmount as Aw, useModel as oh, mergeModels as qC, mergeProps as Bd, createSlots as GC, createApp as o_, defineCustomElement as ZC } from "vue";
import YC from "vuedraggable";
function Dw(t, e) {
return function() {
return t.apply(e, arguments);
};
}
const { toString: XC } = Object.prototype, { getPrototypeOf: a_ } = Object, { iterator: Pp, toStringTag: Mw } = Symbol, Rp = /* @__PURE__ */ ((t) => (e) => {
const i = XC.call(e);
return t[i] || (t[i] = i.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), Os = (t) => (t = t.toLowerCase(), (e) => Rp(e) === t), Op = (t) => (e) => typeof e === t, { isArray: mu } = Array, au = Op("undefined");
function ah(t) {
return t !== null && !au(t) && t.constructor !== null && !au(t.constructor) && Fr(t.constructor.isBuffer) && t.constructor.isBuffer(t);
}
const Iw = Os("ArrayBuffer");
function KC(t) {
let e;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Iw(t.buffer), e;
}
const JC = Op("string"), Fr = Op("function"), Pw = Op("number"), lh = (t) => t !== null && typeof t == "object", QC = (t) => t === !0 || t === !1, Gf = (t) => {
if (Rp(t) !== "object")
return !1;
const e = a_(t);
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Mw in t) && !(Pp in t);
}, eT = (t) => {
if (!lh(t) || ah(t))
return !1;
try {
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
} catch {
return !1;
}
}, tT = Os("Date"), iT = Os("File"), nT = Os("Blob"), rT = Os("FileList"), sT = (t) => lh(t) && Fr(t.pipe), oT = (t) => {
let e;
return t && (typeof FormData == "function" && t instanceof FormData || Fr(t.append) && ((e = Rp(t)) === "formdata" || // detect form-data instance
e === "object" && Fr(t.toString) && t.toString() === "[object FormData]"));
}, aT = Os("URLSearchParams"), [lT, cT, uT, dT] = ["ReadableStream", "Request", "Response", "Headers"].map(Os), hT = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function ch(t, e, { allOwnKeys: i = !1 } = {}) {
if (t === null || typeof t > "u")
return;
let n, o;
if (typeof t != "object" && (t = [t]), mu(t))
for (n = 0, o = t.length; n < o; n++)
e.call(null, t[n], n, t);
else {
if (ah(t))
return;
const u = i ? Object.getOwnPropertyNames(t) : Object.keys(t), h = u.length;
let c;
for (n = 0; n < h; n++)
c = u[n], e.call(null, t[c], c, t);
}
}
function Rw(t, e) {
if (ah(t))
return null;
e = e.toLowerCase();
const i = Object.keys(t);
let n = i.length, o;
for (; n-- > 0; )
if (o = i[n], e === o.toLowerCase())
return o;
return null;
}
const Ml = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ow = (t) => !au(t) && t !== Ml;
function yy() {
const { caseless: t, skipUndefined: e } = Ow(this) && this || {}, i = {}, n = (o, u) => {
const h = t && Rw(i, u) || u;
Gf(i[h]) && Gf(o) ? i[h] = yy(i[h], o) : Gf(o) ? i[h] = yy({}, o) : mu(o) ? i[h] = o.slice() : (!e || !au(o)) && (i[h] = o);
};
for (let o = 0, u = arguments.length; o < u; o++)
arguments[o] && ch(arguments[o], n);
return i;
}
const fT = (t, e, i, { allOwnKeys: n } = {}) => (ch(e, (o, u) => {
i && Fr(o) ? t[u] = Dw(o, i) : t[u] = o;
}, { allOwnKeys: n }), t), pT = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), mT = (t, e, i, n) => {
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
value: e.prototype
}), i && Object.assign(t.prototype, i);
}, gT = (t, e, i, n) => {
let o, u, h;
const c = {};
if (e = e || {}, t == null) return e;
do {
for (o = Object.getOwnPropertyNames(t), u = o.length; u-- > 0; )
h = o[u], (!n || n(h, t, e)) && !c[h] && (e[h] = t[h], c[h] = !0);
t = i !== !1 && a_(t);
} while (t && (!i || i(t, e)) && t !== Object.prototype);
return e;
}, yT = (t, e, i) => {
t = String(t), (i === void 0 || i > t.length) && (i = t.length), i -= e.length;
const n = t.indexOf(e, i);
return n !== -1 && n === i;
}, _T = (t) => {
if (!t) return null;
if (mu(t)) return t;
let e = t.length;
if (!Pw(e)) return null;
const i = new Array(e);
for (; e-- > 0; )
i[e] = t[e];
return i;
}, vT = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && a_(Uint8Array)), bT = (t, e) => {
const n = (t && t[Pp]).call(t);
let o;
for (; (o = n.next()) && !o.done; ) {
const u = o.value;
e.call(t, u[0], u[1]);
}
}, xT = (t, e) => {
let i;
const n = [];
for (; (i = t.exec(e)) !== null; )
n.push(i);
return n;
}, wT = Os("HTMLFormElement"), ST = (t) => t.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(i, n, o) {
return n.toUpperCase() + o;
}
), ob = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), kT = Os("RegExp"), zw = (t, e) => {
const i = Object.getOwnPropertyDescriptors(t), n = {};
ch(i, (o, u) => {
let h;
(h = e(o, u, t)) !== !1 && (n[u] = h || o);
}), Object.defineProperties(t, n);
}, ET = (t) => {
zw(t, (e, i) => {
if (Fr(t) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
return !1;
const n = t[i];
if (Fr(n)) {
if (e.enumerable = !1, "writable" in e) {
e.writable = !1;
return;
}
e.set || (e.set = () => {
throw Error("Can not rewrite read-only method '" + i + "'");
});
}
});
}, CT = (t, e) => {
const i = {}, n = (o) => {
o.forEach((u) => {
i[u] = !0;
});
};
return mu(t) ? n(t) : n(String(t).split(e)), i;
}, TT = () => {
}, AT = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
function DT(t) {
return !!(t && Fr(t.append) && t[Mw] === "FormData" && t[Pp]);
}
const MT = (t) => {
const e = new Array(10), i = (n, o) => {
if (lh(n)) {
if (e.indexOf(n) >= 0)
return;
if (ah(n))
return n;
if (!("toJSON" in n)) {
e[o] = n;
const u = mu(n) ? [] : {};
return ch(n, (h, c) => {
const x = i(h, o + 1);
!au(x) && (u[c] = x);
}), e[o] = void 0, u;
}
}
return n;
};
return i(t, 0);
}, IT = Os("AsyncFunction"), PT = (t) => t && (lh(t) || Fr(t)) && Fr(t.then) && Fr(t.catch), Lw = ((t, e) => t ? setImmediate : e ? ((i, n) => (Ml.addEventListener("message", ({ source: o, data: u }) => {
o === Ml && u === i && n.length && n.shift()();
}, !1), (o) => {
n.push(o), Ml.postMessage(i, "*");
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
typeof setImmediate == "function",
Fr(Ml.postMessage)
), RT = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ml) : typeof process < "u" && process.nextTick || Lw, OT = (t) => t != null && Fr(t[Pp]), Pe = {
isArray: mu,
isArrayBuffer: Iw,
isBuffer: ah,
isFormData: oT,
isArrayBufferView: KC,
isString: JC,
isNumber: Pw,
isBoolean: QC,
isObject: lh,
isPlainObject: Gf,
isEmptyObject: eT,
isReadableStream: lT,
isRequest: cT,
isResponse: uT,
isHeaders: dT,
isUndefined: au,
isDate: tT,
isFile: iT,
isBlob: nT,
isRegExp: kT,
isFunction: Fr,
isStream: sT,
isURLSearchParams: aT,
isTypedArray: vT,
isFileList: rT,
forEach: ch,
merge: yy,
extend: fT,
trim: hT,
stripBOM: pT,
inherits: mT,
toFlatObject: gT,
kindOf: Rp,
kindOfTest: Os,
endsWith: yT,
toArray: _T,
forEachEntry: bT,
matchAll: xT,
isHTMLForm: wT,
hasOwnProperty: ob,
hasOwnProp: ob,
// an alias to avoid ESLint no-prototype-builtins detection
reduceDescriptors: zw,
freezeMethods: ET,
toObjectSet: CT,
toCamelCase: ST,
noop: TT,
toFiniteNumber: AT,
findKey: Rw,
global: Ml,
isContextDefined: Ow,
isSpecCompliantForm: DT,
toJSONObject: MT,
isAsyncFn: IT,
isThenable: PT,
setImmediate: Lw,
asap: RT,
isIterable: OT
};
function ti(t, e, i, n, o) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), i && (this.config = i), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
}
Pe.inherits(ti, 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: Pe.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const Fw = ti.prototype, Bw = {};
[
"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((t) => {
Bw[t] = { value: t };
});
Object.defineProperties(ti, Bw);
Object.defineProperty(Fw, "isAxiosError", { value: !0 });
ti.from = (t, e, i, n, o, u) => {
const h = Object.create(Fw);
Pe.toFlatObject(t, h, function(S) {
return S !== Error.prototype;
}, (w) => w !== "isAxiosError");
const c = t && t.message ? t.message : "Error", x = e == null && t ? t.code : e;
return ti.call(h, c, x, i, n, o), t && h.cause == null && Object.defineProperty(h, "cause", { value: t, configurable: !0 }), h.name = t && t.name || "Error", u && Object.assign(h, u), h;
};
const zT = null;
function _y(t) {
return Pe.isPlainObject(t) || Pe.isArray(t);
}
function Nw(t) {
return Pe.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function ab(t, e, i) {
return t ? t.concat(e).map(function(o, u) {
return o = Nw(o), !i && u ? "[" + o + "]" : o;
}).join(i ? "." : "") : e;
}
function LT(t) {
return Pe.isArray(t) && !t.some(_y);
}
const FT = Pe.toFlatObject(Pe, {}, null, function(e) {
return /^is[A-Z]/.test(e);
});
function zp(t, e, i) {
if (!Pe.isObject(t))
throw new TypeError("target must be an object");
e = e || new FormData(), i = Pe.toFlatObject(i, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(j, $) {
return !Pe.isUndefined($[j]);
});
const n = i.metaTokens, o = i.visitor || S, u = i.dots, h = i.indexes, x = (i.Blob || typeof Blob < "u" && Blob) && Pe.isSpecCompliantForm(e);
if (!Pe.isFunction(o))
throw new TypeError("visitor must be a function");
function w(L) {
if (L === null) return "";
if (Pe.isDate(L))
return L.toISOString();
if (Pe.isBoolean(L))
return L.toString();
if (!x && Pe.isBlob(L))
throw new ti("Blob is not supported. Use a Buffer instead.");
return Pe.isArrayBuffer(L) || Pe.isTypedArray(L) ? x && typeof Blob == "function" ? new Blob([L]) : Buffer.from(L) : L;
}
function S(L, j, $) {
let Y = L;
if (L && !$ && typeof L == "object") {
if (Pe.endsWith(j, "{}"))
j = n ? j : j.slice(0, -2), L = JSON.stringify(L);
else if (Pe.isArray(L) && LT(L) || (Pe.isFileList(L) || Pe.endsWith(j, "[]")) && (Y = Pe.toArray(L)))
return j = Nw(j), Y.forEach(function(ie, ve) {
!(Pe.isUndefined(ie) || ie === null) && e.append(
// eslint-disable-next-line no-nested-ternary
h === !0 ? ab([j], ve, u) : h === null ? j : j + "[]",
w(ie)
);
}), !1;
}
return _y(L) ? !0 : (e.append(ab($, j, u), w(L)), !1);
}
const E = [], T = Object.assign(FT, {
defaultVisitor: S,
convertValue: w,
isVisitable: _y
});
function M(L, j) {
if (!Pe.isUndefined(L)) {
if (E.indexOf(L) !== -1)
throw Error("Circular reference detected in " + j.join("."));
E.push(L), Pe.forEach(L, function(Y, te) {
(!(Pe.isUndefined(Y) || Y === null) && o.call(
e,
Y,
Pe.isString(te) ? te.trim() : te,
j,
T
)) === !0 && M(Y, j ? j.concat(te) : [te]);
}), E.pop();
}
}
if (!Pe.isObject(t))
throw new TypeError("data must be an object");
return M(t), e;
}
function lb(t) {
const e = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
return e[n];
});
}
function l_(t, e) {
this._pairs = [], t && zp(t, this, e);
}
const Vw = l_.prototype;
Vw.append = function(e, i) {
this._pairs.push([e, i]);
};
Vw.toString = function(e) {
const i = e ? function(n) {
return e.call(this, n, lb);
} : lb;
return this._pairs.map(function(o) {
return i(o[0]) + "=" + i(o[1]);
}, "").join("&");
};
function BT(t) {
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
}
function $w(t, e, i) {
if (!e)
return t;
const n = i && i.encode || BT;
Pe.isFunction(i) && (i = {
serialize: i
});
const o = i && i.serialize;
let u;
if (o ? u = o(e, i) : u = Pe.isURLSearchParams(e) ? e.toString() : new l_(e, i).toString(n), u) {
const h = t.indexOf("#");
h !== -1 && (t = t.slice(0, h)), t += (t.indexOf("?") === -1 ? "?" : "&") + u;
}
return t;
}
class cb {
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(e, i, n) {
return this.handlers.push({
fulfilled: e,
rejected: i,
synchronous: n ? n.synchronous : !1,
runWhen: n ? n.runWhen : null
}), this.handlers.length - 1;
}
/**
* Remove an interceptor from the stack
*
* @param {Number} id The ID that was returned by `use`
*
* @returns {void}
*/
eject(e) {
this.handlers[e] && (this.handlers[e] = 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(e) {
Pe.forEach(this.handlers, function(n) {
n !== null && e(n);
});
}
}
const jw = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, NT = typeof URLSearchParams < "u" ? URLSearchParams : l_, VT = typeof FormData < "u" ? FormData : null, $T = typeof Blob < "u" ? Blob : null, jT = {
isBrowser: !0,
classes: {
URLSearchParams: NT,
FormData: VT,
Blob: $T
},
protocols: ["http", "https", "file", "blob", "url", "data"]
}, c_ = typeof window < "u" && typeof document < "u", vy = typeof navigator == "object" && navigator || void 0, UT = c_ && (!vy || ["ReactNative", "NativeScript", "NS"].indexOf(vy.product) < 0), HT = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", WT = c_ && window.location.href || "http://localhost", qT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
hasBrowserEnv: c_,
hasStandardBrowserEnv: UT,
hasStandardBrowserWebWorkerEnv: HT,
navigator: vy,
origin: WT
}, Symbol.toStringTag, { value: "Module" })), lr = {
...qT,
...jT
};
function GT(t, e) {
return zp(t, new lr.classes.URLSearchParams(), {
visitor: function(i, n, o, u) {
return lr.isNode && Pe.isBuffer(i) ? (this.append(n, i.toString("base64")), !1) : u.defaultVisitor.apply(this, arguments);
},
...e
});
}
function ZT(t) {
return Pe.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
}
function YT(t) {
const e = {}, i = Object.keys(t);
let n;
const o = i.length;
let u;
for (n = 0; n < o; n++)
u = i[n], e[u] = t[u];
return e;
}
function Uw(t) {
function e(i, n, o, u) {
let h = i[u++];
if (h === "__proto__") return !0;
const c = Number.isFinite(+h), x = u >= i.length;
return h = !h && Pe.isArray(o) ? o.length : h, x ? (Pe.hasOwnProp(o, h) ? o[h] = [o[h], n] : o[h] = n, !c) : ((!o[h] || !Pe.isObject(o[h])) && (o[h] = []), e(i, n, o[h], u) && Pe.isArray(o[h]) && (o[h] = YT(o[h])), !c);
}
if (Pe.isFormData(t) && Pe.isFunction(t.entries)) {
const i = {};
return Pe.forEachEntry(t, (n, o) => {
e(ZT(n), o, i, 0);
}), i;
}
return null;
}
function XT(t, e, i) {
if (Pe.isString(t))
try {
return (e || JSON.parse)(t), Pe.trim(t);
} catch (n) {
if (n.name !== "SyntaxError")
throw n;
}
return (i || JSON.stringify)(t);
}
const uh = {
transitional: jw,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(e, i) {
const n = i.getContentType() || "", o = n.indexOf("application/json") > -1, u = Pe.isObject(e);
if (u && Pe.isHTMLForm(e) && (e = new FormData(e)), Pe.isFormData(e))
return o ? JSON.stringify(Uw(e)) : e;
if (Pe.isArrayBuffer(e) || Pe.isBuffer(e) || Pe.isStream(e) || Pe.isFile(e) || Pe.isBlob(e) || Pe.isReadableStream(e))
return e;
if (Pe.isArrayBufferView(e))
return e.buffer;
if (Pe.isURLSearchParams(e))
return i.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
let c;
if (u) {
if (n.indexOf("application/x-www-form-urlencoded") > -1)
return GT(e, this.formSerializer).toString();
if ((c = Pe.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
const x = this.env && this.env.FormData;
return zp(
c ? { "files[]": e } : e,
x && new x(),
this.formSerializer
);
}
}
return u || o ? (i.setContentType("application/json", !1), XT(e)) : e;
}],
transformResponse: [function(e) {
const i = this.transitional || uh.transitional, n = i && i.forcedJSONParsing, o = this.responseType === "json";
if (Pe.isResponse(e) || Pe.isReadableStream(e))
return e;
if (e && Pe.isString(e) && (n && !this.responseType || o)) {
const h = !(i && i.silentJSONParsing) && o;
try {
return JSON.parse(e, this.parseReviver);
} catch (c) {
if (h)
throw c.name === "SyntaxError" ? ti.from(c, ti.ERR_BAD_RESPONSE, this, null, this.response) : c;
}
}
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: lr.classes.FormData,
Blob: lr.classes.Blob
},
validateStatus: function(e) {
return e >= 200 && e < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
}
}
};
Pe.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
uh.headers[t] = {};
});
const KT = Pe.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"
]), JT = (t) => {
const e = {};
let i, n, o;
return t && t.split(`
`).forEach(function(h) {
o = h.indexOf(":"), i = h.substring(0, o).trim().toLowerCase(), n = h.substring(o + 1).trim(), !(!i || e[i] && KT[i]) && (i === "set-cookie" ? e[i] ? e[i].push(n) : e[i] = [n] : e[i] = e[i] ? e[i] + ", " + n : n);
}), e;
}, ub = Symbol("internals");
function Md(t) {
return t && String(t).trim().toLowerCase();
}
function Zf(t) {
return t === !1 || t == null ? t : Pe.isArray(t) ? t.map(Zf) : String(t);
}
function QT(t) {
const e = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let n;
for (; n = i.exec(t); )
e[n[1]] = n[2];
return e;
}
const eA = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
function kg(t, e, i, n, o) {
if (Pe.isFunction(n))
return n.call(this, e, i);
if (o && (e = i), !!Pe.isString(e)) {
if (Pe.isString(n))
return e.indexOf(n) !== -1;
if (Pe.isRegExp(n))
return n.test(e);
}
}
function tA(t) {
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, i, n) => i.toUpperCase() + n);
}
function iA(t, e) {
const i = Pe.toCamelCase(" " + e);
["get", "set", "has"].forEach((n) => {
Object.defineProperty(t, n + i, {
value: function(o, u, h) {
return this[n].call(this, e, o, u, h);
},
configurable: !0
});
});
}
let Br = class {
constructor(e) {
e && this.set(e);
}
set(e, i, n) {
const o = this;
function u(c, x, w) {
const S = Md(x);
if (!S)
throw new Error("header name must be a non-empty string");
const E = Pe.findKey(o, S);
(!E || o[E] === void 0 || w === !0 || w === void 0 && o[E] !== !1) && (o[E || x] = Zf(c));
}
const h = (c, x) => Pe.forEach(c, (w, S) => u(w, S, x));
if (Pe.isPlainObject(e) || e instanceof this.constructor)
h(e, i);
else if (Pe.isString(e) && (e = e.trim()) && !eA(e))
h(JT(e), i);
else if (Pe.isObject(e) && Pe.isIterable(e)) {
let c = {}, x, w;
for (const S of e) {
if (!Pe.isArray(S))
throw TypeError("Object iterator must return a key-value pair");
c[w = S[0]] = (x = c[w]) ? Pe.isArray(x) ? [...x, S[1]] : [x, S[1]] : S[1];
}
h(c, i);
} else
e != null && u(i, e, n);
return this;
}
get(e, i) {
if (e = Md(e), e) {
const n = Pe.findKey(this, e);
if (n) {
const o = this[n];
if (!i)
return o;
if (i === !0)
return QT(o);
if (Pe.isFunction(i))
return i.call(this, o, n);
if (Pe.isRegExp(i))
return i.exec(o);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(e, i) {
if (e = Md(e), e) {
const n = Pe.findKey(this, e);
return !!(n && this[n] !== void 0 && (!i || kg(this, this[n], n, i)));
}
return !1;
}
delete(e, i) {
const n = this;
let o = !1;
function u(h) {
if (h = Md(h), h) {
const c = Pe.findKey(n, h);
c && (!i || kg(n, n[c], c, i)) && (delete n[c], o = !0);
}
}
return Pe.isArray(e) ? e.forEach(u) : u(e), o;
}
clear(e) {
const i = Object.keys(this);
let n = i.length, o = !1;
for (; n--; ) {
const u = i[n];
(!e || kg(this, this[u], u, e, !0)) && (delete this[u], o = !0);
}
return o;
}
normalize(e) {
const i = this, n = {};
return Pe.forEach(this, (o, u) => {
const h = Pe.findKey(n, u);
if (h) {
i[h] = Zf(o), delete i[u];
return;
}
const c = e ? tA(u) : String(u).trim();
c !== u && delete i[u], i[c] = Zf(o), n[c] = !0;
}), this;
}
concat(...e) {
return this.constructor.concat(this, ...e);
}
toJSON(e) {
const i = /* @__PURE__ */ Object.create(null);
return Pe.forEach(this, (n, o) => {
n != null && n !== !1 && (i[o] = e && Pe.isArray(n) ? n.join(", ") : n);
}), i;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([e, i]) => e + ": " + i).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, ...i) {
const n = new this(e);
return i.forEach((o) => n.set(o)), n;
}
static accessor(e) {
const n = (this[ub] = this[ub] = {
accessors: {}
}).accessors, o = this.prototype;
function u(h) {
const c = Md(h);
n[c] || (iA(o, h), n[c] = !0);
}
return Pe.isArray(e) ? e.forEach(u) : u(e), this;
}
};
Br.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
Pe.reduceDescriptors(Br.prototype, ({ value: t }, e) => {
let i = e[0].toUpperCase() + e.slice(1);
return {
get: () => t,
set(n) {
this[i] = n;
}
};
});
Pe.freezeMethods(Br);
function Eg(t, e) {
const i = this || uh, n = e || i, o = Br.from(n.headers);
let u = n.data;
return Pe.forEach(t, function(c) {
u = c.call(i, u, o.normalize(), e ? e.status : void 0);
}), o.normalize(), u;
}
function Hw(t) {
return !!(t && t.__CANCEL__);
}
function gu(t, e, i) {
ti.call(this, t ?? "canceled", ti.ERR_CANCELED, e, i), this.name = "CanceledError";
}
Pe.inherits(gu, ti, {
__CANCEL__: !0
});
function Ww(t, e, i) {
const n = i.config.validateStatus;
!i.status || !n || n(i.status) ? t(i) : e(new ti(
"Request failed with status code " + i.status,
[ti.ERR_BAD_REQUEST, ti.ERR_BAD_RESPONSE][Math.floor(i.status / 100) - 4],
i.config,
i.request,
i
));
}
function nA(t) {
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
return e && e[1] || "";
}
function rA(t, e) {
t = t || 10;
const i = new Array(t), n = new Array(t);
let o = 0, u = 0, h;
return e = e !== void 0 ? e : 1e3, function(x) {
const w = Date.now(), S = n[u];
h || (h = w), i[o] = x, n[o] = w;
let E = u, T = 0;
for (; E !== o; )
T += i[E++], E = E % t;
if (o = (o + 1) % t, o === u && (u = (u + 1) % t), w - h < e)
return;
const M = S && w - S;
return M ? Math.round(T * 1e3 / M) : void 0;
};
}
function sA(t, e) {
let i = 0, n = 1e3 / e, o, u;
const h = (w, S = Date.now()) => {
i = S, o = null, u && (clearTimeout(u), u = null), t(...w);
};
return [(...w) => {
const S = Date.now(), E = S - i;
E >= n ? h(w, S) : (o = w, u || (u = setTimeout(() => {
u = null, h(o);
}, n - E)));
}, () => o && h(o)];
}
const op = (t, e, i = 3) => {
let n = 0;
const o = rA(50, 250);
return sA((u) => {
const h = u.loaded, c = u.lengthComputable ? u.total : void 0, x = h - n, w = o(x), S = h <= c;
n = h;
const E = {
loaded: h,
total: c,
progress: c ? h / c : void 0,
bytes: x,
rate: w || void 0,
estimated: w && c && S ? (c - h) / w : void 0,
event: u,
lengthComputable: c != null,
[e ? "download" : "upload"]: !0
};
t(E);
}, i);
}, db = (t, e) => {
const i = t != null;
return [(n) => e[0]({
lengthComputable: i,
total: t,
loaded: n
}), e[1]];
}, hb = (t) => (...e) => Pe.asap(() => t(...e)), oA = lr.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (i) => (i = new URL(i, lr.origin), t.protocol === i.protocol && t.host === i.host && (e || t.port === i.port)))(
new URL(lr.origin),
lr.navigator && /(msie|trident)/i.test(lr.navigator.userAgent)
) : () => !0, aA = lr.hasStandardBrowserEnv ? (
// Standard browser envs support document.cookie
{
write(t, e, i, n, o, u, h) {
if (typeof document > "u") return;
const c = [`${t}=${encodeURIComponent(e)}`];
Pe.isNumber(i) && c.push(`expires=${new Date(i).toUTCString()}`), Pe.isString(n) && c.push(`path=${n}`), Pe.isString(o) && c.push(`domain=${o}`), u === !0 && c.push("secure"), Pe.isString(h) && c.push(`SameSite=${h}`), document.cookie = c.join("; ");
},
read(t) {
if (typeof document > "u") return null;
const e = document.cookie.match(new RegExp("(?:^|; )" + t + "=([^;]*)"));
return e ? decodeURIComponent(e[1]) : null;
},
remove(t) {
this.write(t, "", Date.now() - 864e5, "/");
}
}
) : (
// Non-standard browser env (web workers, react-native) lack needed support.
{
write() {
},
read() {
return null;
},
remove() {
}
}
);
function lA(t) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
}
function cA(t, e) {
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
}
function qw(t, e, i) {
let n = !lA(e);
return t && (n || i == !1) ? cA(t, e) : e;
}
const fb = (t) => t instanceof Br ? { ...t } : t;
function Vl(t, e) {
e = e || {};
const i = {};
function n(w, S, E, T) {
return Pe.isPlainObject(w) && Pe.isPlainObject(S) ? Pe.merge.call({ caseless: T }, w, S) : Pe.isPlainObject(S) ? Pe.merge({}, S) : Pe.isArray(S) ? S.slice() : S;
}
function o(w, S, E, T) {
if (Pe.isUndefined(S)) {
if (!Pe.isUndefined(w))
return n(void 0, w, E, T);
} else return n(w, S, E, T);
}
function u(w, S) {
if (!Pe.isUndefined(S))
return n(void 0, S);
}
function h(w, S) {
if (Pe.isUndefined(S)) {
if (!Pe.isUndefined(w))
return n(void 0, w);
} else return n(void 0, S);
}
function c(w, S, E) {
if (E in e)
return n(w, S);
if (E in t)
return n(void 0, w);
}
const x = {
url: u,
method: u,
data: u,
baseURL: h,
transformRequest: h,
transformResponse: h,
paramsSerializer: h,
timeout: h,
timeoutMessage: h,
withCredentials: h,
withXSRFToken: h,
adapter: h,
responseType: h,
xsrfCookieName: h,
xsrfHeaderName: h,
onUploadProgress: h,
onDownloadProgress: h,
decompress: h,
maxContentLength: h,
maxBodyLength: h,
beforeRedirect: h,
transport: h,
httpAgent: h,
httpsAgent: h,
cancelToken: h,
socketPath: h,
responseEncoding: h,
validateStatus: c,
headers: (w, S, E) => o(fb(w), fb(S), E, !0)
};
return Pe.forEach(Object.keys({ ...t, ...e }), function(S) {
const E = x[S] || o, T = E(t[S], e[S], S);
Pe.isUndefined(T) && E !== c || (i[S] = T);
}), i;
}
const Gw = (t) => {
const e = Vl({}, t);
let { data: i, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: u, headers: h, auth: c } = e;
if (e.headers = h = Br.from(h), e.url = $w(qw(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && h.set(
"Authorization",
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
), Pe.isFormData(i)) {
if (lr.hasStandardBrowserEnv || lr.hasStandardBrowserWebWorkerEnv)
h.setContentType(void 0);
else if (Pe.isFunction(i.getHeaders)) {
const x = i.getHeaders(), w = ["content-type", "content-length"];
Object.entries(x).forEach(([S, E]) => {
w.includes(S.toLowerCase()) && h.set(S, E);
});
}
}
if (lr.hasStandardBrowserEnv && (n && Pe.isFunction(n) && (n = n(e)), n || n !== !1 && oA(e.url))) {
const x = o && u && aA.read(u);
x && h.set(o, x);
}
return e;
}, uA = typeof XMLHttpRequest < "u", dA = uA && function(t) {
return new Promise(function(i, n) {
const o = Gw(t);
let u = o.data;
const h = Br.from(o.headers).normalize();
let { responseType: c, onUploadProgress: x, onDownloadProgress: w } = o, S, E, T, M, L;
function j() {
M && M(), L && L(), o.cancelToken && o.cancelToken.unsubscribe(S), o.signal && o.signal.removeEventListener("abort", S);
}
let $ = new XMLHttpRequest();
$.open(o.method.toUpperCase(), o.url, !0), $.timeout = o.timeout;
function Y() {
if (!$)
return;
const ie = Br.from(
"getAllResponseHeaders" in $ && $.getAllResponseHeaders()
), Ce = {
data: !c || c === "text" || c === "json" ? $.responseText : $.response,
status: $.status,
statusText: $.statusText,
headers: ie,
config: t,
request: $
};
Ww(function(Re) {
i(Re), j();
}, function(Re) {
n(Re), j();
}, Ce), $ = null;
}
"onloadend" in $ ? $.onloadend = Y : $.onreadystatechange = function() {
!$ || $.readyState !== 4 || $.status === 0 && !($.responseURL && $.responseURL.indexOf("file:") === 0) || setTimeout(Y);
}, $.onabort = function() {
$ && (n(new ti("Request aborted", ti.ECONNABORTED, t, $)), $ = null);
}, $.onerror = function(ve) {
const Ce = ve && ve.message ? ve.message : "Network Error", Ve = new ti(Ce, ti.ERR_NETWORK, t, $);
Ve.event = ve || null, n(Ve), $ = null;
}, $.ontimeout = function() {
let ve = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
const Ce = o.transitional || jw;
o.timeoutErrorMessage && (ve = o.timeoutErrorMessage), n(new ti(
ve,
Ce.clarifyTimeoutError ? ti.ETIMEDOUT : ti.ECONNABORTED,
t,
$
)), $ = null;
}, u === void 0 && h.setContentType(null), "setRequestHeader" in $ && Pe.forEach(h.toJSON(), function(ve, Ce) {
$.setRequestHeader(Ce, ve);
}), Pe.isUndefined(o.withCredentials) || ($.withCredentials = !!o.withCredentials), c && c !== "json" && ($.responseType = o.responseType), w && ([T, L] = op(w, !0), $.addEventListener("progress", T)), x && $.upload && ([E, M] = op(x), $.upload.addEventListener("progress", E), $.upload.addEventListener("loadend", M)), (o.cancelToken || o.signal) && (S = (ie) => {
$ && (n(!ie || ie.type ? new gu(null, t, $) : ie), $.abort(), $ = null);
}, o.cancelToken && o.cancelToken.subscribe(S), o.signal && (o.signal.aborted ? S() : o.signal.addEventListener("abort", S)));
const te = nA(o.url);
if (te && lr.protocols.indexOf(te) === -1) {
n(new ti("Unsupported protocol " + te + ":", ti.ERR_BAD_REQUEST, t));
return;
}
$.send(u || null);
});
}, hA = (t, e) => {
const { length: i } = t = t ? t.filter(Boolean) : [];
if (e || i) {
let n = new AbortController(), o;
const u = function(w) {
if (!o) {
o = !0, c();
const S = w instanceof Error ? w : this.reason;
n.abort(S instanceof ti ? S : new gu(S instanceof Error ? S.message : S));
}
};
let h = e && setTimeout(() => {
h = null, u(new ti(`timeout ${e} of ms exceeded`, ti.ETIMEDOUT));
}, e);
const c = () => {
t && (h && clearTimeout(h), h = null, t.forEach((w) => {
w.unsubscribe ? w.unsubscribe(u) : w.removeEventListener("abort", u);
}), t = null);
};
t.forEach((w) => w.addEventListener("abort", u));
const { signal: x } = n;
return x.unsubscribe = () => Pe.asap(c), x;
}
}, fA = function* (t, e) {
let i = t.byteLength;
if (i < e) {
yield t;
return;
}
let n = 0, o;
for (; n < i; )
o = n + e, yield t.slice(n, o), n = o;
}, pA = async function* (t, e) {
for await (const i of mA(t))
yield* fA(i, e);
}, mA = async function* (t) {
if (t[Symbol.asyncIterator]) {
yield* t;
return;
}
const e = t.getReader();
try {
for (; ; ) {
const { done: i, value: n } = await e.read();
if (i)
break;
yield n;
}
} finally {
await e.cancel();
}
}, pb = (t, e, i, n) => {
const o = pA(t, e);
let u = 0, h, c = (x) => {
h || (h = !0, n && n(x));
};
return new ReadableStream({
async pull(x) {
try {
const { done: w, value: S } = await o.next();
if (w) {
c(), x.close();
return;
}
let E = S.byteLength;
if (i) {
let T = u += E;
i(T);
}
x.enqueue(new Uint8Array(S));
} catch (w) {
throw c(w), w;
}
},
cancel(x) {
return c(x), o.return();
}
}, {
highWaterMark: 2
});
}, mb = 64 * 1024, { isFunction: Sf } = Pe, gA = (({ Request: t, Response: e }) => ({
Request: t,
Response: e
}))(Pe.global), {
ReadableStream: gb,
TextEncoder: yb
} = Pe.global, _b = (t, ...e) => {
try {
return !!t(...e);
} catch {
return !1;
}
}, yA = (t) => {
t = Pe.merge.call({
skipUndefined: !0
}, gA, t);
const { fetch: e, Request: i, Response: n } = t, o = e ? Sf(e) : typeof fetch == "function", u = Sf(i), h = Sf(n);
if (!o)
return !1;
const c = o && Sf(gb), x = o && (typeof yb == "function" ? /* @__PURE__ */ ((L) => (j) => L.encode(j))(new yb()) : async (L) => new Uint8Array(await new i(L).arrayBuffer())), w = u && c && _b(() => {
let L = !1;
const j = new i(lr.origin, {
body: new gb(),
method: "POST",
get duplex() {
return L = !0, "half";
}
}).headers.has("Content-Type");
return L && !j;
}), S = h && c && _b(() => Pe.isReadableStream(new n("").body)), E = {
stream: S && ((L) => L.body)
};
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((L) => {
!E[L] && (E[L] = (j, $) => {
let Y = j && j[L];
if (Y)
return Y.call(j);
throw new ti(`Response type '${L}' is not supported`, ti.ERR_NOT_SUPPORT, $);
});
});
const T = async (L) => {
if (L == null)
return 0;
if (Pe.isBlob(L))
return L.size;
if (Pe.isSpecCompliantForm(L))
return (await new i(lr.origin, {
method: "POST",
body: L
}).arrayBuffer()).byteLength;
if (Pe.isArrayBufferView(L) || Pe.isArrayBuffer(L))
return L.byteLength;
if (Pe.isURLSearchParams(L) && (L = L + ""), Pe.isString(L))
return (await x(L)).byteLength;
}, M = async (L, j) => {
const $ = Pe.toFiniteNumber(L.getContentLength());
return $ ?? T(j);
};
return async (L) => {
let {
url: j,
method: $,
data: Y,
signal: te,
cancelToken: ie,
timeout: ve,
onDownloadProgress: Ce,
onUploadProgress: Ve,
responseType: Re,
headers: Ke,
withCredentials: Ne = "same-origin",
fetchOptions: nt
} = Gw(L), ut = e || fetch;
Re = Re ? (Re + "").toLowerCase() : "text";
let Ye = hA([te, ie && ie.toAbortSignal()], ve), st = null;
const he = Ye && Ye.unsubscribe && (() => {
Ye.unsubscribe();
});
let Qt;
try {
if (Ve && w && $ !== "get" && $ !== "head" && (Qt = await M(Ke, Y)) !== 0) {
let oi = new i(j, {
method: "POST",
body: Y,
duplex: "half"
}), hi;
if (Pe.isFormData(Y) && (hi = oi.headers.get("content-type")) && Ke.setContentType(hi), oi.body) {
const [Ii, Pi] = db(
Qt,
op(hb(Ve))
);
Y = pb(oi.body, mb, Ii, Pi);
}
}
Pe.isString(Ne) || (Ne = Ne ? "include" : "omit");
const bt = u && "credentials" in i.prototype, Kt = {
...nt,
signal: Ye,
method: $.toUpperCase(),
headers: Ke.normalize().toJSON(),
body: Y,
duplex: "half",
credentials: bt ? Ne : void 0
};
st = u && new i(j, Kt);
let ii = await (u ? ut(st, nt) : ut(j, Kt));
const wi = S && (Re === "stream" || Re === "response");
if (S && (Ce || wi && he)) {
const oi = {};
["status", "statusText", "headers"].forEach((Ri) => {
oi[Ri] = ii[Ri];
});
const hi = Pe.toFiniteNumber(ii.headers.get("content-length")), [Ii, Pi] = Ce && db(
hi,
op(hb(Ce), !0)
) || [];
ii = new n(
pb(ii.body, mb, Ii, () => {
Pi && Pi(), he && he();
}),
oi
);
}
Re = Re || "text";
let Si = await E[Pe.findKey(E, Re) || "text"](ii, L);
return !wi && he && he(), await new Promise((oi, hi) => {
Ww(oi, hi, {
data: Si,
headers: Br.from(ii.headers),
status: ii.status,
statusText: ii.statusText,
config: L,
request: st
});
});
} catch (bt) {
throw he && he(), bt && bt.name === "TypeError" && /Load failed|fetch/i.test(bt.message) ? Object.assign(
new ti("Network Error", ti.ERR_NETWORK, L, st),
{
cause: bt.cause || bt
}
) : ti.from(bt, bt && bt.code, L, st);
}
};
}, _A = /* @__PURE__ */ new Map(), Zw = (t) => {
let e = t && t.env || {};
const { fetch: i, Request: n, Response: o } = e, u = [
n,
o,
i
];
let h = u.length, c = h, x, w, S = _A;
for (; c--; )
x = u[c], w = S.get(x), w === void 0 && S.set(x, w = c ? /* @__PURE__ */ new Map() : yA(e)), S = w;
return w;
};
Zw();
const u_ = {
http: zT,
xhr: dA,
fetch: {
get: Zw
}
};
Pe.forEach(u_, (t, e) => {
if (t) {
try {
Object.defineProperty(t, "name", { value: e });
} catch {
}
Object.defineProperty(t, "adapterName", { value: e });
}
});
const vb = (t) => `- ${t}`, vA = (t) => Pe.isFunction(t) || t === null || t === !1;
function bA(t, e) {
t = Pe.isArray(t) ? t : [t];
const { length: i } = t;
let n, o;
const u = {};
for (let h = 0; h < i; h++) {
n = t[h];
let c;
if (o = n, !vA(n) && (o = u_[(c = String(n)).toLowerCase()], o === void 0))
throw new ti(`Unknown adapter '${c}'`);
if (o && (Pe.isFunction(o) || (o = o.get(e))))
break;
u[c || "#" + h] = o;
}
if (!o) {
const h = Object.entries(u).map(
([x, w]) => `adapter ${x} ` + (w === !1 ? "is not supported by the environment" : "is not available in the build")
);
let c = i ? h.length > 1 ? `since :
` + h.map(vb).join(`
`) : " " + vb(h[0]) : "as no adapter specified";
throw new ti(
"There is no suitable adapter to dispatch the request " + c,
"ERR_NOT_SUPPORT"
);
}
return o;
}
const Yw = {
/**
* Resolve an adapter from a list of adapter names or functions.
* @type {Function}
*/
getAdapter: bA,
/**
* Exposes all known adapters
* @type {Object<string, Function|Object>}
*/
adapters: u_
};
function Cg(t) {
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
throw new gu(null, t);
}
function bb(t) {
return Cg(t), t.headers = Br.from(t.headers), t.data = Eg.call(
t,
t.transformRequest
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Yw.getAdapter(t.adapter || uh.adapter, t)(t).then(function(n) {
return Cg(t), n.data = Eg.call(
t,
t.transformResponse,
n
), n.headers = Br.from(n.headers), n;
}, function(n) {
return Hw(n) || (Cg(t), n && n.response && (n.response.data = Eg.call(
t,
t.transformResponse,
n.response
), n.response.headers = Br.from(n.response.headers))), Promise.reject(n);
});
}
const Xw = "1.13.2", Lp = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
Lp[t] = function(n) {
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
};
});
const xb = {};
Lp.transitional = function(e, i, n) {
function o(u, h) {
return "[Axios v" + Xw + "] Transitional option '" + u + "'" + h + (n ? ". " + n : "");
}
return (u, h, c) => {
if (e === !1)
throw new ti(
o(h, " has been removed" + (i ? " in " + i : "")),
ti.ERR_DEPRECATED
);
return i && !xb[h] && (xb[h] = !0, console.warn(
o(
h,
" has been deprecated since v" + i + " and will be removed in the near future"
)
)), e ? e(u, h, c) : !0;
};
};
Lp.spelling = function(e) {
return (i, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
};
function xA(t, e, i) {
if (typeof t != "object")
throw new ti("options must be an object", ti.ERR_BAD_OPTION_VALUE);
const n = Object.keys(t);
let o = n.length;
for (; o-- > 0; ) {
const u = n[o], h = e[u];
if (h) {
const c = t[u], x = c === void 0 || h(c, u, t);
if (x !== !0)
throw new ti("option " + u + " must be " + x, ti.ERR_BAD_OPTION_VALUE);
continue;
}
if (i !== !0)
throw new ti("Unknown option " + u, ti.ERR_BAD_OPTION);
}
}
const Yf = {
assertOptions: xA,
validators: Lp
}, Ys = Yf.validators;
let zl = class {
constructor(e) {
this.defaults = e || {}, this.interceptors = {
request: new cb(),
response: new cb()
};
}
/**
* 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, i) {
try {
return await this._request(e, i);
} catch (n) {
if (n instanceof Error) {
let o = {};
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
const u = o.stack ? o.stack.replace(/^.+\n/, "") : "";
try {
n.stack ? u && !String(n.stack).endsWith(u.replace(/^.+\n.+\n/, "")) && (n.stack += `
` + u) : n.stack = u;
} catch {
}
}
throw n;
}
}
_request(e, i) {
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = Vl(this.defaults, i);
const { transitional: n, paramsSerializer: o, headers: u } = i;
n !== void 0 && Yf.assertOptions(n, {
silentJSONParsing: Ys.transitional(Ys.boolean),
forcedJSONParsing: Ys.transitional(Ys.boolean),
clarifyTimeoutError: Ys.transitional(Ys.boolean)
}, !1), o != null && (Pe.isFunction(o) ? i.paramsSerializer = {
serialize: o
} : Yf.assertOptions(o, {
encode: Ys.function,
serialize: Ys.function
}, !0)), i.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? i.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : i.allowAbsoluteUrls = !0), Yf.assertOptions(i, {
baseUrl: Ys.spelling("baseURL"),
withXsrfToken: Ys.spelling("withXSRFToken")
}, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
let h = u && Pe.merge(
u.common,
u[i.method]
);
u && Pe.forEach(
["delete", "get", "head", "post", "put", "patch", "common"],
(L) => {
delete u[L];
}
), i.headers = Br.concat(h, u);
const c = [];
let x = !0;
this.interceptors.request.forEach(function(j) {
typeof j.runWhen == "function" && j.runWhen(i) === !1 || (x = x && j.synchronous, c.unshift(j.fulfilled, j.rejected));
});
const w = [];
this.interceptors.response.forEach(function(j) {
w.push(j.fulfilled, j.rejected);
});
let S, E = 0, T;
if (!x) {
const L = [bb.bind(this), void 0];
for (L.unshift(...c), L.push(...w), T = L.length, S = Promise.resolve(i); E < T; )
S = S.then(L[E++], L[E++]);
return S;
}
T = c.length;
let M = i;
for (; E < T; ) {
const L = c[E++], j = c[E++];
try {
M = L(M);
} catch ($) {
j.call(this, $);
break;
}
}
try {
S = bb.call(this, M);
} catch (L) {
return Promise.reject(L);
}
for (E = 0, T = w.length; E < T; )
S = S.then(w[E++], w[E++]);
return S;
}
getUri(e) {
e = Vl(this.defaults, e);
const i = qw(e.baseURL, e.url, e.allowAbsoluteUrls);
return $w(i, e.params, e.paramsSerializer);
}
};
Pe.forEach(["delete", "get", "head", "options"], function(e) {
zl.prototype[e] = function(i, n) {
return this.request(Vl(n || {}, {
method: e,
url: i,
data: (n || {}).data
}));
};
});
Pe.forEach(["post", "put", "patch"], function(e) {
function i(n) {
return function(u, h, c) {
return this.request(Vl(c || {}, {
method: e,
headers: n ? {
"Content-Type": "multipart/form-data"
} : {},
url: u,
data: h
}));
};
}
zl.prototype[e] = i(), zl.prototype[e + "Form"] = i(!0);
});
let wA = class Kw {
constructor(e) {
if (typeof e != "function")
throw new TypeError("executor must be a function.");
let i;
this.promise = new Promise(function(u) {
i = u;
});
const n = this;
this.promise.then((o) => {
if (!n._listeners) return;
let u = n._listeners.length;
for (; u-- > 0; )
n._listeners[u](o);
n._listeners = null;
}), this.promise.then = (o) => {
let u;
const h = new Promise((c) => {
n.subscribe(c), u = c;
}).then(o);
return h.cancel = function() {
n.unsubscribe(u);
}, h;
}, e(function(u, h, c) {
n.reason || (n.reason = new gu(u, h, c), i(n.reason));
});
}
/**
* Throws a `CanceledError` if cancellation has been requested.
*/
throwIfRequested() {
if (this.reason)
throw this.reason;
}
/**
* Subscribe to the cancel signal
*/
subscribe(e) {
if (this.reason) {
e(this.reason);
return;
}
this._listeners ? this._listeners.push(e) : this._listeners = [e];
}
/**
* Unsubscribe from the cancel signal
*/
unsubscribe(e) {
if (!this._listeners)
return;
const i = this._listeners.indexOf(e);
i !== -1 && this._listeners.splice(i, 1);
}
toAbortSignal() {
const e = new AbortController(), i = (n) => {
e.abort(n);
};
return this.subscribe(i), e.signal.unsubscri