Files
ff-dist/dist/common/vender-BkiRbACr.js
2026-04-21 15:23:48 +08:00

1865 lines
94 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function je(t, e) {
return function() {
return t.apply(e, arguments);
};
}
const { toString: sr } = Object.prototype, { getPrototypeOf: Jt } = Object, ft = (bt = /* @__PURE__ */ Object.create(null), (t) => {
const e = sr.call(t);
return bt[e] || (bt[e] = e.slice(8, -1).toLowerCase());
});
var bt;
const B = (t) => (t = t.toLowerCase(), (e) => ft(e) === t), gt = (t) => (e) => typeof e === t, { isArray: J } = Array, Z = gt("undefined"), Xt = B("ArrayBuffer"), ir = gt("string"), k = gt("function"), Qt = gt("number"), ot = (t) => t !== null && typeof t == "object", st = (t) => {
if (ft(t) !== "object") return !1;
const e = Jt(t);
return !(e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.toStringTag in t || Symbol.iterator in t);
}, ar = B("Date"), cr = B("File"), ur = B("Blob"), lr = B("FileList"), fr = B("URLSearchParams"), [hr, dr, pr, gr] = ["ReadableStream", "Request", "Response", "Headers"].map(B);
function Y(t, e, { allOwnKeys: r = !1 } = {}) {
if (t == null) return;
let n, o;
if (typeof t != "object" && (t = [t]), J(t)) for (n = 0, o = t.length; n < o; n++) e.call(null, t[n], n, t);
else {
const c = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = c.length;
let m;
for (n = 0; n < a; n++) m = c[n], e.call(null, t[m], m, t);
}
}
function Zt(t, e) {
e = e.toLowerCase();
const r = Object.keys(t);
let n, o = r.length;
for (; o-- > 0; ) if (n = r[o], e === n.toLowerCase()) return n;
return null;
}
const ke = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yt = (t) => !Z(t) && t !== ke, yr = (wt = typeof Uint8Array < "u" && Jt(Uint8Array), (t) => wt && t instanceof wt);
var wt;
const mr = B("HTMLFormElement"), te = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), br = B("RegExp"), ee = (t, e) => {
const r = Object.getOwnPropertyDescriptors(t), n = {};
Y(r, (o, c) => {
let a;
(a = e(o, c, t)) !== !1 && (n[c] = a || o);
}), Object.defineProperties(t, n);
}, vt = "abcdefghijklmnopqrstuvwxyz", re = "0123456789", ne = { DIGIT: re, ALPHA: vt, ALPHA_DIGIT: vt + vt.toUpperCase() + re }, wr = B("AsyncFunction"), v = { isArray: J, isArrayBuffer: Xt, isBuffer: function(t) {
return t !== null && !Z(t) && t.constructor !== null && !Z(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t);
}, isFormData: (t) => {
let e;
return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e = ft(t)) === "formdata" || e === "object" && k(t.toString) && t.toString() === "[object FormData]"));
}, isArrayBufferView: function(t) {
let e;
return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && Xt(t.buffer), e;
}, isString: ir, isNumber: Qt, isBoolean: (t) => t === !0 || t === !1, isObject: ot, isPlainObject: st, isReadableStream: hr, isRequest: dr, isResponse: pr, isHeaders: gr, isUndefined: Z, isDate: ar, isFile: cr, isBlob: ur, isRegExp: br, isFunction: k, isStream: (t) => ot(t) && k(t.pipe), isURLSearchParams: fr, isTypedArray: yr, isFileList: lr, forEach: Y, merge: function t() {
const { caseless: e } = Yt(this) && this || {}, r = {}, n = (o, c) => {
const a = e && Zt(r, c) || c;
st(r[a]) && st(o) ? r[a] = t(r[a], o) : st(o) ? r[a] = t({}, o) : J(o) ? r[a] = o.slice() : r[a] = o;
};
for (let o = 0, c = arguments.length; o < c; o++) arguments[o] && Y(arguments[o], n);
return r;
}, extend: (t, e, r, { allOwnKeys: n } = {}) => (Y(e, (o, c) => {
r && k(o) ? t[c] = je(o, r) : t[c] = o;
}, { allOwnKeys: n }), t), trim: (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), stripBOM: (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), inherits: (t, e, r, n) => {
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), r && Object.assign(t.prototype, r);
}, toFlatObject: (t, e, r, n) => {
let o, c, a;
const m = {};
if (e = e || {}, t == null) return e;
do {
for (o = Object.getOwnPropertyNames(t), c = o.length; c-- > 0; ) a = o[c], n && !n(a, t, e) || m[a] || (e[a] = t[a], m[a] = !0);
t = r !== !1 && Jt(t);
} while (t && (!r || r(t, e)) && t !== Object.prototype);
return e;
}, kindOf: ft, kindOfTest: B, endsWith: (t, e, r) => {
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
const n = t.indexOf(e, r);
return n !== -1 && n === r;
}, toArray: (t) => {
if (!t) return null;
if (J(t)) return t;
let e = t.length;
if (!Qt(e)) return null;
const r = new Array(e);
for (; e-- > 0; ) r[e] = t[e];
return r;
}, forEachEntry: (t, e) => {
const r = (t && t[Symbol.iterator]).call(t);
let n;
for (; (n = r.next()) && !n.done; ) {
const o = n.value;
e.call(t, o[0], o[1]);
}
}, matchAll: (t, e) => {
let r;
const n = [];
for (; (r = t.exec(e)) !== null; ) n.push(r);
return n;
}, isHTMLForm: mr, hasOwnProperty: te, hasOwnProp: te, reduceDescriptors: ee, freezeMethods: (t) => {
ee(t, (e, r) => {
if (k(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1;
const n = t[r];
k(n) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => {
throw Error("Can not rewrite read-only method '" + r + "'");
}));
});
}, toObjectSet: (t, e) => {
const r = {}, n = (o) => {
o.forEach((c) => {
r[c] = !0;
});
};
return J(t) ? n(t) : n(String(t).split(e)), r;
}, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, r, n) {
return r.toUpperCase() + n;
}), noop: () => {
}, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: Zt, global: ke, isContextDefined: Yt, ALPHABET: ne, generateString: (t = 16, e = ne.ALPHA_DIGIT) => {
let r = "";
const { length: n } = e;
for (; t--; ) r += e[Math.random() * n | 0];
return r;
}, isSpecCompliantForm: function(t) {
return !!(t && k(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
}, toJSONObject: (t) => {
const e = new Array(10), r = (n, o) => {
if (ot(n)) {
if (e.indexOf(n) >= 0) return;
if (!("toJSON" in n)) {
e[o] = n;
const c = J(n) ? [] : {};
return Y(n, (a, m) => {
const y = r(a, o + 1);
!Z(y) && (c[m] = y);
}), e[o] = void 0, c;
}
}
return n;
};
return r(t, 0);
}, isAsyncFn: wr, isThenable: (t) => t && (ot(t) || k(t)) && k(t.then) && k(t.catch) };
function C(t, e, r, 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), r && (this.config = r), n && (this.request = n), o && (this.response = o);
}
v.inherits(C, 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: v.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null };
} });
const oe = C.prototype, se = {};
["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((t) => {
se[t] = { value: t };
}), Object.defineProperties(C, se), Object.defineProperty(oe, "isAxiosError", { value: !0 }), C.from = (t, e, r, n, o, c) => {
const a = Object.create(oe);
return v.toFlatObject(t, a, function(m) {
return m !== Error.prototype;
}, (m) => m !== "isAxiosError"), C.call(a, t.message, e, r, n, o), a.cause = t, a.name = t.name, c && Object.assign(a, c), a;
};
function Et(t) {
return v.isPlainObject(t) || v.isArray(t);
}
function Ue(t) {
return v.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function ie(t, e, r) {
return t ? t.concat(e).map(function(n, o) {
return n = Ue(n), !r && o ? "[" + n + "]" : n;
}).join(r ? "." : "") : e;
}
const vr = v.toFlatObject(v, {}, null, function(t) {
return /^is[A-Z]/.test(t);
});
function ht(t, e, r) {
if (!v.isObject(t)) throw new TypeError("target must be an object");
e = e || new FormData();
const n = (r = v.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, E) {
return !v.isUndefined(E[w]);
})).metaTokens, o = r.visitor || g, c = r.dots, a = r.indexes, m = (r.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
if (!v.isFunction(o)) throw new TypeError("visitor must be a function");
function y(w) {
if (w === null) return "";
if (v.isDate(w)) return w.toISOString();
if (!m && v.isBlob(w)) throw new C("Blob is not supported. Use a Buffer instead.");
return v.isArrayBuffer(w) || v.isTypedArray(w) ? m && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w;
}
function g(w, E, d) {
let l = w;
if (w && !d && typeof w == "object") {
if (v.endsWith(E, "{}")) E = n ? E : E.slice(0, -2), w = JSON.stringify(w);
else if (v.isArray(w) && function(i) {
return v.isArray(i) && !i.some(Et);
}(w) || (v.isFileList(w) || v.endsWith(E, "[]")) && (l = v.toArray(w))) return E = Ue(E), l.forEach(function(i, u) {
!v.isUndefined(i) && i !== null && e.append(a === !0 ? ie([E], u, c) : a === null ? E : E + "[]", y(i));
}), !1;
}
return !!Et(w) || (e.append(ie(d, E, c), y(w)), !1);
}
const s = [], b = Object.assign(vr, { defaultVisitor: g, convertValue: y, isVisitable: Et });
if (!v.isObject(t)) throw new TypeError("data must be an object");
return function w(E, d) {
if (!v.isUndefined(E)) {
if (s.indexOf(E) !== -1) throw Error("Circular reference detected in " + d.join("."));
s.push(E), v.forEach(E, function(l, i) {
(!(v.isUndefined(l) || l === null) && o.call(e, l, v.isString(i) ? i.trim() : i, d, b)) === !0 && w(l, d ? d.concat(i) : [i]);
}), s.pop();
}
}(t), e;
}
function ae(t) {
const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" };
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
return e[r];
});
}
function zt(t, e) {
this._pairs = [], t && ht(t, this, e);
}
const ce = zt.prototype;
function Er(t) {
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function Be(t, e, r) {
if (!e) return t;
const n = r && r.encode || Er, o = r && r.serialize;
let c;
if (c = o ? o(e, r) : v.isURLSearchParams(e) ? e.toString() : new zt(e, r).toString(n), c) {
const a = t.indexOf("#");
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + c;
}
return t;
}
ce.append = function(t, e) {
this._pairs.push([t, e]);
}, ce.toString = function(t) {
const e = t ? function(r) {
return t.call(this, r, ae);
} : ae;
return this._pairs.map(function(r) {
return e(r[0]) + "=" + e(r[1]);
}, "").join("&");
};
class ue {
constructor() {
this.handlers = [];
}
use(e, r, n) {
return this.handlers.push({ fulfilled: e, rejected: r, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null }), this.handlers.length - 1;
}
eject(e) {
this.handlers[e] && (this.handlers[e] = null);
}
clear() {
this.handlers && (this.handlers = []);
}
forEach(e) {
v.forEach(this.handlers, function(r) {
r !== null && e(r);
});
}
}
const Me = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, Ar = { isBrowser: !0, classes: { URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : zt, FormData: typeof FormData < "u" ? FormData : null, Blob: typeof Blob < "u" ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, Vt = typeof window < "u" && typeof document < "u", Or = (le = typeof navigator < "u" && navigator.product, Vt && ["ReactNative", "NativeScript", "NS"].indexOf(le) < 0);
var le;
const Sr = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cr = Vt && window.location.href || "http://localhost", U = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: Vt, hasStandardBrowserEnv: Or, hasStandardBrowserWebWorkerEnv: Sr, origin: Cr }, Symbol.toStringTag, { value: "Module" })), ...Ar };
function Le(t) {
function e(r, n, o, c) {
let a = r[c++];
if (a === "__proto__") return !0;
const m = Number.isFinite(+a), y = c >= r.length;
return a = !a && v.isArray(o) ? o.length : a, y ? (v.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !m) : (o[a] && v.isObject(o[a]) || (o[a] = []), e(r, n, o[a], c) && v.isArray(o[a]) && (o[a] = function(g) {
const s = {}, b = Object.keys(g);
let w;
const E = b.length;
let d;
for (w = 0; w < E; w++) d = b[w], s[d] = g[d];
return s;
}(o[a])), !m);
}
if (v.isFormData(t) && v.isFunction(t.entries)) {
const r = {};
return v.forEachEntry(t, (n, o) => {
e(function(c) {
return v.matchAll(/\w+|\[(\w*)]/g, c).map((a) => a[0] === "[]" ? "" : a[1] || a[0]);
}(n), o, r, 0);
}), r;
}
return null;
}
const rt = { transitional: Me, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, e) {
const r = e.getContentType() || "", n = r.indexOf("application/json") > -1, o = v.isObject(t);
if (o && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t)) return n ? JSON.stringify(Le(t)) : t;
if (v.isArrayBuffer(t) || v.isBuffer(t) || v.isStream(t) || v.isFile(t) || v.isBlob(t) || v.isReadableStream(t)) return t;
if (v.isArrayBufferView(t)) return t.buffer;
if (v.isURLSearchParams(t)) return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
let c;
if (o) {
if (r.indexOf("application/x-www-form-urlencoded") > -1) return function(a, m) {
return ht(a, new U.classes.URLSearchParams(), Object.assign({ visitor: function(y, g, s, b) {
return U.isNode && v.isBuffer(y) ? (this.append(g, y.toString("base64")), !1) : b.defaultVisitor.apply(this, arguments);
} }, m));
}(t, this.formSerializer).toString();
if ((c = v.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
const a = this.env && this.env.FormData;
return ht(c ? { "files[]": t } : t, a && new a(), this.formSerializer);
}
}
return o || n ? (e.setContentType("application/json", !1), function(a, m, y) {
if (v.isString(a)) try {
return (m || JSON.parse)(a), v.trim(a);
} catch (g) {
if (g.name !== "SyntaxError") throw g;
}
return (y || JSON.stringify)(a);
}(t)) : t;
}], transformResponse: [function(t) {
const e = this.transitional || rt.transitional, r = e && e.forcedJSONParsing, n = this.responseType === "json";
if (v.isResponse(t) || v.isReadableStream(t)) return t;
if (t && v.isString(t) && (r && !this.responseType || n)) {
const o = !(e && e.silentJSONParsing) && n;
try {
return JSON.parse(t);
} catch (c) {
if (o)
throw c.name === "SyntaxError" ? C.from(c, C.ERR_BAD_RESPONSE, this, null, this.response) : c;
}
}
return t;
}], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: U.classes.FormData, Blob: U.classes.Blob }, validateStatus: function(t) {
return t >= 200 && t < 300;
}, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } };
v.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
rt.headers[t] = {};
});
const Rr = v.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"]), fe = Symbol("internals");
function X(t) {
return t && String(t).trim().toLowerCase();
}
function it(t) {
return t === !1 || t == null ? t : v.isArray(t) ? t.map(it) : String(t);
}
function At(t, e, r, n, o) {
return v.isFunction(n) ? n.call(this, e, r) : (o && (e = r), v.isString(e) ? v.isString(n) ? e.indexOf(n) !== -1 : v.isRegExp(n) ? n.test(e) : void 0 : void 0);
}
let j = class {
constructor(t) {
t && this.set(t);
}
set(t, e, r) {
const n = this;
function o(a, m, y) {
const g = X(m);
if (!g) throw new Error("header name must be a non-empty string");
const s = v.findKey(n, g);
(!s || n[s] === void 0 || y === !0 || y === void 0 && n[s] !== !1) && (n[s || m] = it(a));
}
const c = (a, m) => v.forEach(a, (y, g) => o(y, g, m));
if (v.isPlainObject(t) || t instanceof this.constructor) c(t, e);
else if (v.isString(t) && (t = t.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())) c(((a) => {
const m = {};
let y, g, s;
return a && a.split(`
`).forEach(function(b) {
s = b.indexOf(":"), y = b.substring(0, s).trim().toLowerCase(), g = b.substring(s + 1).trim(), !y || m[y] && Rr[y] || (y === "set-cookie" ? m[y] ? m[y].push(g) : m[y] = [g] : m[y] = m[y] ? m[y] + ", " + g : g);
}), m;
})(t), e);
else if (v.isHeaders(t)) for (const [a, m] of t.entries()) o(m, a, r);
else t != null && o(e, t, r);
return this;
}
get(t, e) {
if (t = X(t)) {
const r = v.findKey(this, t);
if (r) {
const n = this[r];
if (!e) return n;
if (e === !0) return function(o) {
const c = /* @__PURE__ */ Object.create(null), a = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let m;
for (; m = a.exec(o); ) c[m[1]] = m[2];
return c;
}(n);
if (v.isFunction(e)) return e.call(this, n, r);
if (v.isRegExp(e)) return e.exec(n);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(t, e) {
if (t = X(t)) {
const r = v.findKey(this, t);
return !(!r || this[r] === void 0 || e && !At(0, this[r], r, e));
}
return !1;
}
delete(t, e) {
const r = this;
let n = !1;
function o(c) {
if (c = X(c)) {
const a = v.findKey(r, c);
!a || e && !At(0, r[a], a, e) || (delete r[a], n = !0);
}
}
return v.isArray(t) ? t.forEach(o) : o(t), n;
}
clear(t) {
const e = Object.keys(this);
let r = e.length, n = !1;
for (; r--; ) {
const o = e[r];
t && !At(0, this[o], o, t, !0) || (delete this[o], n = !0);
}
return n;
}
normalize(t) {
const e = this, r = {};
return v.forEach(this, (n, o) => {
const c = v.findKey(r, o);
if (c) return e[c] = it(n), void delete e[o];
const a = t ? function(m) {
return m.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (y, g, s) => g.toUpperCase() + s);
}(o) : String(o).trim();
a !== o && delete e[o], e[a] = it(n), r[a] = !0;
}), this;
}
concat(...t) {
return this.constructor.concat(this, ...t);
}
toJSON(t) {
const e = /* @__PURE__ */ Object.create(null);
return v.forEach(this, (r, n) => {
r != null && r !== !1 && (e[n] = t && v.isArray(r) ? r.join(", ") : r);
}), e;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
`);
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(t) {
return t instanceof this ? t : new this(t);
}
static concat(t, ...e) {
const r = new this(t);
return e.forEach((n) => r.set(n)), r;
}
static accessor(t) {
const e = (this[fe] = this[fe] = { accessors: {} }).accessors, r = this.prototype;
function n(o) {
const c = X(o);
e[c] || (function(a, m) {
const y = v.toCamelCase(" " + m);
["get", "set", "has"].forEach((g) => {
Object.defineProperty(a, g + y, { value: function(s, b, w) {
return this[g].call(this, m, s, b, w);
}, configurable: !0 });
});
}(r, o), e[c] = !0);
}
return v.isArray(t) ? t.forEach(n) : n(t), this;
}
};
function Ot(t, e) {
const r = this || rt, n = e || r, o = j.from(n.headers);
let c = n.data;
return v.forEach(t, function(a) {
c = a.call(r, c, o.normalize(), e ? e.status : void 0);
}), o.normalize(), c;
}
function De(t) {
return !(!t || !t.__CANCEL__);
}
function G(t, e, r) {
C.call(this, t ?? "canceled", C.ERR_CANCELED, e, r), this.name = "CanceledError";
}
function Fe(t, e, r) {
const n = r.config.validateStatus;
r.status && n && !n(r.status) ? e(new C("Request failed with status code " + r.status, [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : t(r);
}
j.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), v.reduceDescriptors(j.prototype, ({ value: t }, e) => {
let r = e[0].toUpperCase() + e.slice(1);
return { get: () => t, set(n) {
this[r] = n;
} };
}), v.freezeMethods(j), v.inherits(G, C, { __CANCEL__: !0 });
const dt = (t, e, r = 3) => {
let n = 0;
const o = function(c, a) {
c = c || 10;
const m = new Array(c), y = new Array(c);
let g, s = 0, b = 0;
return a = a !== void 0 ? a : 1e3, function(w) {
const E = Date.now(), d = y[b];
g || (g = E), m[s] = w, y[s] = E;
let l = b, i = 0;
for (; l !== s; ) i += m[l++], l %= c;
if (s = (s + 1) % c, s === b && (b = (b + 1) % c), E - g < a) return;
const u = d && E - d;
return u ? Math.round(1e3 * i / u) : void 0;
};
}(50, 250);
return function(c, a) {
let m = 0;
const y = 1e3 / a;
let g = null;
return function() {
const s = this === !0, b = Date.now();
if (s || b - m > y) return g && (clearTimeout(g), g = null), m = b, c.apply(null, arguments);
g || (g = setTimeout(() => (g = null, m = Date.now(), c.apply(null, arguments)), y - (b - m)));
};
}((c) => {
const a = c.loaded, m = c.lengthComputable ? c.total : void 0, y = a - n, g = o(y);
n = a;
const s = { loaded: a, total: m, progress: m ? a / m : void 0, bytes: y, rate: g || void 0, estimated: g && m && a <= m ? (m - a) / g : void 0, event: c, lengthComputable: m != null };
s[e ? "download" : "upload"] = !0, t(s);
}, r);
}, Tr = U.hasStandardBrowserEnv ? function() {
const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a");
let r;
function n(o) {
let c = o;
return t && (e.setAttribute("href", c), c = e.href), e.setAttribute("href", c), { href: e.href, protocol: e.protocol ? e.protocol.replace(/:$/, "") : "", host: e.host, search: e.search ? e.search.replace(/^\?/, "") : "", hash: e.hash ? e.hash.replace(/^#/, "") : "", hostname: e.hostname, port: e.port, pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname };
}
return r = n(window.location.href), function(o) {
const c = v.isString(o) ? n(o) : o;
return c.protocol === r.protocol && c.host === r.host;
};
}() : function() {
return !0;
}, xr = U.hasStandardBrowserEnv ? { write(t, e, r, n, o, c) {
const a = [t + "=" + encodeURIComponent(e)];
v.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), v.isString(n) && a.push("path=" + n), v.isString(o) && a.push("domain=" + o), c === !0 && a.push("secure"), document.cookie = a.join("; ");
}, read(t) {
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
return e ? decodeURIComponent(e[3]) : null;
}, remove(t) {
this.write(t, "", Date.now() - 864e5);
} } : { write() {
}, read: () => null, remove() {
} };
function Ie(t, e) {
return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(r, n) {
return n ? r.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : r;
}(t, e) : e;
}
const he = (t) => t instanceof j ? { ...t } : t;
function H(t, e) {
e = e || {};
const r = {};
function n(g, s, b) {
return v.isPlainObject(g) && v.isPlainObject(s) ? v.merge.call({ caseless: b }, g, s) : v.isPlainObject(s) ? v.merge({}, s) : v.isArray(s) ? s.slice() : s;
}
function o(g, s, b) {
return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g, b) : n(g, s, b);
}
function c(g, s) {
if (!v.isUndefined(s)) return n(void 0, s);
}
function a(g, s) {
return v.isUndefined(s) ? v.isUndefined(g) ? void 0 : n(void 0, g) : n(void 0, s);
}
function m(g, s, b) {
return b in e ? n(g, s) : b in t ? n(void 0, g) : void 0;
}
const y = { url: c, method: c, data: c, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, withXSRFToken: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: m, headers: (g, s) => o(he(g), he(s), !0) };
return v.forEach(Object.keys(Object.assign({}, t, e)), function(g) {
const s = y[g] || o, b = s(t[g], e[g], g);
v.isUndefined(b) && s !== m || (r[g] = b);
}), r;
}
const qe = (t) => {
const e = H({}, t);
let r, { data: n, withXSRFToken: o, xsrfHeaderName: c, xsrfCookieName: a, headers: m, auth: y } = e;
if (e.headers = m = j.from(m), e.url = Be(Ie(e.baseURL, e.url), t.params, t.paramsSerializer), y && m.set("Authorization", "Basic " + btoa((y.username || "") + ":" + (y.password ? unescape(encodeURIComponent(y.password)) : ""))), v.isFormData(n)) {
if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv) m.setContentType(void 0);
else if ((r = m.getContentType()) !== !1) {
const [g, ...s] = r ? r.split(";").map((b) => b.trim()).filter(Boolean) : [];
m.setContentType([g || "multipart/form-data", ...s].join("; "));
}
}
if (U.hasStandardBrowserEnv && (o && v.isFunction(o) && (o = o(e)), o || o !== !1 && Tr(e.url))) {
const g = c && a && xr.read(a);
g && m.set(c, g);
}
return e;
}, Nr = typeof XMLHttpRequest < "u" && function(t) {
return new Promise(function(e, r) {
const n = qe(t);
let o = n.data;
const c = j.from(n.headers).normalize();
let a, { responseType: m } = n;
function y() {
n.cancelToken && n.cancelToken.unsubscribe(a), n.signal && n.signal.removeEventListener("abort", a);
}
let g = new XMLHttpRequest();
function s() {
if (!g) return;
const w = j.from("getAllResponseHeaders" in g && g.getAllResponseHeaders());
Fe(function(E) {
e(E), y();
}, function(E) {
r(E), y();
}, { data: m && m !== "text" && m !== "json" ? g.response : g.responseText, status: g.status, statusText: g.statusText, headers: w, config: t, request: g }), g = null;
}
g.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout, "onloadend" in g ? g.onloadend = s : g.onreadystatechange = function() {
g && g.readyState === 4 && (g.status !== 0 || g.responseURL && g.responseURL.indexOf("file:") === 0) && setTimeout(s);
}, g.onabort = function() {
g && (r(new C("Request aborted", C.ECONNABORTED, n, g)), g = null);
}, g.onerror = function() {
r(new C("Network Error", C.ERR_NETWORK, n, g)), g = null;
}, g.ontimeout = function() {
let w = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
const E = n.transitional || Me;
n.timeoutErrorMessage && (w = n.timeoutErrorMessage), r(new C(w, E.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED, n, g)), g = null;
}, o === void 0 && c.setContentType(null), "setRequestHeader" in g && v.forEach(c.toJSON(), function(w, E) {
g.setRequestHeader(E, w);
}), v.isUndefined(n.withCredentials) || (g.withCredentials = !!n.withCredentials), m && m !== "json" && (g.responseType = n.responseType), typeof n.onDownloadProgress == "function" && g.addEventListener("progress", dt(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && g.upload && g.upload.addEventListener("progress", dt(n.onUploadProgress)), (n.cancelToken || n.signal) && (a = (w) => {
g && (r(!w || w.type ? new G(null, t, g) : w), g.abort(), g = null);
}, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a)));
const b = function(w) {
const E = /^([-+\w]{1,25})(:?\/\/|:)/.exec(w);
return E && E[1] || "";
}(n.url);
b && U.protocols.indexOf(b) === -1 ? r(new C("Unsupported protocol " + b + ":", C.ERR_BAD_REQUEST, t)) : g.send(o || null);
});
}, _r = (t, e) => {
let r, n = new AbortController();
const o = function(y) {
if (!r) {
r = !0, a();
const g = y instanceof Error ? y : this.reason;
n.abort(g instanceof C ? g : new G(g instanceof Error ? g.message : g));
}
};
let c = e && setTimeout(() => {
o(new C(`timeout ${e} of ms exceeded`, C.ETIMEDOUT));
}, e);
const a = () => {
t && (c && clearTimeout(c), c = null, t.forEach((y) => {
y && (y.removeEventListener ? y.removeEventListener("abort", o) : y.unsubscribe(o));
}), t = null);
};
t.forEach((y) => y && y.addEventListener && y.addEventListener("abort", o));
const { signal: m } = n;
return m.unsubscribe = a, [m, () => {
c && clearTimeout(c), c = null;
}];
}, Pr = function* (t, e) {
let r = t.byteLength;
if (!e || r < e) return void (yield t);
let n, o = 0;
for (; o < r; ) n = o + e, yield t.slice(o, n), o = n;
}, de = (t, e, r, n, o) => {
const c = async function* (m, y, g) {
for await (const s of m) yield* Pr(ArrayBuffer.isView(s) ? s : await g(String(s)), y);
}(t, e, o);
let a = 0;
return new ReadableStream({ type: "bytes", async pull(m) {
const { done: y, value: g } = await c.next();
if (y) return m.close(), void n();
let s = g.byteLength;
r && r(a += s), m.enqueue(new Uint8Array(g));
}, cancel: (m) => (n(m), c.return()) }, { highWaterMark: 2 });
}, pe = (t, e) => {
const r = t != null;
return (n) => setTimeout(() => e({ lengthComputable: r, total: t, loaded: n }));
}, yt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = yt && typeof ReadableStream == "function", _t = yt && (typeof TextEncoder == "function" ? (ge = new TextEncoder(), (t) => ge.encode(t)) : async (t) => new Uint8Array(await new Response(t).arrayBuffer()));
var ge;
const jr = We && (() => {
let t = !1;
const e = new Request(U.origin, { body: new ReadableStream(), method: "POST", get duplex() {
return t = !0, "half";
} }).headers.has("Content-Type");
return t && !e;
})(), Pt = We && !!(() => {
try {
return v.isReadableStream(new Response("").body);
} catch {
}
})(), pt = { stream: Pt && ((t) => t.body) };
var ye;
yt && (ye = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
!pt[t] && (pt[t] = v.isFunction(ye[t]) ? (e) => e[t]() : (e, r) => {
throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r);
});
}));
const kr = async (t, e) => {
const r = v.toFiniteNumber(t.getContentLength());
return r ?? (async (n) => n == null ? 0 : v.isBlob(n) ? n.size : v.isSpecCompliantForm(n) ? (await new Request(n).arrayBuffer()).byteLength : v.isArrayBufferView(n) ? n.byteLength : (v.isURLSearchParams(n) && (n += ""), v.isString(n) ? (await _t(n)).byteLength : void 0))(e);
}, $e = { http: null, xhr: Nr, fetch: yt && (async (t) => {
let { url: e, method: r, data: n, signal: o, cancelToken: c, timeout: a, onDownloadProgress: m, onUploadProgress: y, responseType: g, headers: s, withCredentials: b = "same-origin", fetchOptions: w } = qe(t);
g = g ? (g + "").toLowerCase() : "text";
let E, d, [l, i] = o || c || a ? _r([o, c], a) : [];
const u = () => {
!E && setTimeout(() => {
l && l.unsubscribe();
}), E = !0;
};
let h;
try {
if (y && jr && r !== "get" && r !== "head" && (h = await kr(s, n)) !== 0) {
let O, T = new Request(e, { method: "POST", body: n, duplex: "half" });
v.isFormData(n) && (O = T.headers.get("content-type")) && s.setContentType(O), T.body && (n = de(T.body, 65536, pe(h, dt(y)), null, _t));
}
v.isString(b) || (b = b ? "cors" : "omit"), d = new Request(e, { ...w, signal: l, method: r.toUpperCase(), headers: s.normalize().toJSON(), body: n, duplex: "half", withCredentials: b });
let p = await fetch(d);
const f = Pt && (g === "stream" || g === "response");
if (Pt && (m || f)) {
const O = {};
["status", "statusText", "headers"].forEach((P) => {
O[P] = p[P];
});
const T = v.toFiniteNumber(p.headers.get("content-length"));
p = new Response(de(p.body, 65536, m && pe(T, dt(m, !0)), f && u, _t), O);
}
g = g || "text";
let A = await pt[v.findKey(pt, g) || "text"](p, t);
return !f && u(), i && i(), await new Promise((O, T) => {
Fe(O, T, { data: A, headers: j.from(p.headers), status: p.status, statusText: p.statusText, config: t, request: d });
});
} catch (p) {
throw u(), p && p.name === "TypeError" && /fetch/i.test(p.message) ? Object.assign(new C("Network Error", C.ERR_NETWORK, t, d), { cause: p.cause || p }) : C.from(p, p && p.code, t, d);
}
}) };
v.forEach($e, (t, e) => {
if (t) {
try {
Object.defineProperty(t, "name", { value: e });
} catch {
}
Object.defineProperty(t, "adapterName", { value: e });
}
});
const me = (t) => `- ${t}`, Ur = (t) => v.isFunction(t) || t === null || t === !1, He = (t) => {
t = v.isArray(t) ? t : [t];
const { length: e } = t;
let r, n;
const o = {};
for (let c = 0; c < e; c++) {
let a;
if (r = t[c], n = r, !Ur(r) && (n = $e[(a = String(r)).toLowerCase()], n === void 0)) throw new C(`Unknown adapter '${a}'`);
if (n) break;
o[a || "#" + c] = n;
}
if (!n) {
const c = Object.entries(o).map(([a, m]) => `adapter ${a} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build"));
throw new C("There is no suitable adapter to dispatch the request " + (e ? c.length > 1 ? `since :
` + c.map(me).join(`
`) : " " + me(c[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
}
return n;
};
function St(t) {
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new G(null, t);
}
function be(t) {
return St(t), t.headers = j.from(t.headers), t.data = Ot.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), He(t.adapter || rt.adapter)(t).then(function(e) {
return St(t), e.data = Ot.call(t, t.transformResponse, e), e.headers = j.from(e.headers), e;
}, function(e) {
return De(e) || (St(t), e && e.response && (e.response.data = Ot.call(t, t.transformResponse, e.response), e.response.headers = j.from(e.response.headers))), Promise.reject(e);
});
}
const Br = "1.7.2", Kt = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
Kt[t] = function(r) {
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
};
});
const we = {};
Kt.transitional = function(t, e, r) {
function n(o, c) {
return "[Axios v1.7.2] Transitional option '" + o + "'" + c + (r ? ". " + r : "");
}
return (o, c, a) => {
if (t === !1) throw new C(n(c, " has been removed" + (e ? " in " + e : "")), C.ERR_DEPRECATED);
return e && !we[c] && (we[c] = !0, console.warn(n(c, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(o, c, a);
};
};
const jt = { assertOptions: function(t, e, r) {
if (typeof t != "object") throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
const n = Object.keys(t);
let o = n.length;
for (; o-- > 0; ) {
const c = n[o], a = e[c];
if (a) {
const m = t[c], y = m === void 0 || a(m, c, t);
if (y !== !0) throw new C("option " + c + " must be " + y, C.ERR_BAD_OPTION_VALUE);
} else if (r !== !0) throw new C("Unknown option " + c, C.ERR_BAD_OPTION);
}
}, validators: Kt }, F = jt.validators;
let $ = class {
constructor(t) {
this.defaults = t, this.interceptors = { request: new ue(), response: new ue() };
}
async request(t, e) {
try {
return await this._request(t, e);
} catch (r) {
if (r instanceof Error) {
let n;
Error.captureStackTrace ? Error.captureStackTrace(n = {}) : n = new Error();
const o = n.stack ? n.stack.replace(/^.+\n/, "") : "";
try {
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + o) : r.stack = o;
} catch {
}
}
throw r;
}
}
_request(t, e) {
typeof t == "string" ? (e = e || {}).url = t : e = t || {}, e = H(this.defaults, e);
const { transitional: r, paramsSerializer: n, headers: o } = e;
r !== void 0 && jt.assertOptions(r, { silentJSONParsing: F.transitional(F.boolean), forcedJSONParsing: F.transitional(F.boolean), clarifyTimeoutError: F.transitional(F.boolean) }, !1), n != null && (v.isFunction(n) ? e.paramsSerializer = { serialize: n } : jt.assertOptions(n, { encode: F.function, serialize: F.function }, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
let c = o && v.merge(o.common, o[e.method]);
o && v.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (E) => {
delete o[E];
}), e.headers = j.concat(c, o);
const a = [];
let m = !0;
this.interceptors.request.forEach(function(E) {
typeof E.runWhen == "function" && E.runWhen(e) === !1 || (m = m && E.synchronous, a.unshift(E.fulfilled, E.rejected));
});
const y = [];
let g;
this.interceptors.response.forEach(function(E) {
y.push(E.fulfilled, E.rejected);
});
let s, b = 0;
if (!m) {
const E = [be.bind(this), void 0];
for (E.unshift.apply(E, a), E.push.apply(E, y), s = E.length, g = Promise.resolve(e); b < s; ) g = g.then(E[b++], E[b++]);
return g;
}
s = a.length;
let w = e;
for (b = 0; b < s; ) {
const E = a[b++], d = a[b++];
try {
w = E(w);
} catch (l) {
d.call(this, l);
break;
}
}
try {
g = be.call(this, w);
} catch (E) {
return Promise.reject(E);
}
for (b = 0, s = y.length; b < s; ) g = g.then(y[b++], y[b++]);
return g;
}
getUri(t) {
return Be(Ie((t = H(this.defaults, t)).baseURL, t.url), t.params, t.paramsSerializer);
}
};
v.forEach(["delete", "get", "head", "options"], function(t) {
$.prototype[t] = function(e, r) {
return this.request(H(r || {}, { method: t, url: e, data: (r || {}).data }));
};
}), v.forEach(["post", "put", "patch"], function(t) {
function e(r) {
return function(n, o, c) {
return this.request(H(c || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: o }));
};
}
$.prototype[t] = e(), $.prototype[t + "Form"] = e(!0);
});
const kt = { 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(kt).forEach(([t, e]) => {
kt[e] = t;
});
const N = function t(e) {
const r = new $(e), n = je($.prototype.request, r);
return v.extend(n, $.prototype, r, { allOwnKeys: !0 }), v.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(o) {
return t(H(e, o));
}, n;
}(rt);
N.Axios = $, N.CanceledError = G, N.CancelToken = class Je {
constructor(e) {
if (typeof e != "function") throw new TypeError("executor must be a function.");
let r;
this.promise = new Promise(function(o) {
r = o;
});
const n = this;
this.promise.then((o) => {
if (!n._listeners) return;
let c = n._listeners.length;
for (; c-- > 0; ) n._listeners[c](o);
n._listeners = null;
}), this.promise.then = (o) => {
let c;
const a = new Promise((m) => {
n.subscribe(m), c = m;
}).then(o);
return a.cancel = function() {
n.unsubscribe(c);
}, a;
}, e(function(o, c, a) {
n.reason || (n.reason = new G(o, c, a), r(n.reason));
});
}
throwIfRequested() {
if (this.reason) throw this.reason;
}
subscribe(e) {
this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e];
}
unsubscribe(e) {
if (!this._listeners) return;
const r = this._listeners.indexOf(e);
r !== -1 && this._listeners.splice(r, 1);
}
static source() {
let e;
return { token: new Je(function(r) {
e = r;
}), cancel: e };
}
}, N.isCancel = De, N.VERSION = Br, N.toFormData = ht, N.AxiosError = C, N.Cancel = N.CanceledError, N.all = function(t) {
return Promise.all(t);
}, N.spread = function(t) {
return function(e) {
return t.apply(null, e);
};
}, N.isAxiosError = function(t) {
return v.isObject(t) && t.isAxiosError === !0;
}, N.mergeConfig = H, N.AxiosHeaders = j, N.formToJSON = (t) => Le(v.isHTMLForm(t) ? new FormData(t) : t), N.getAdapter = He, N.HttpStatusCode = kt, N.default = N;
const { Axios: Mr, AxiosError: Lr, CanceledError: Dr, isCancel: Fr, CancelToken: Ir, VERSION: qr, all: Wr, Cancel: $r, isAxiosError: Hr, spread: Jr, toFormData: zr, AxiosHeaders: Vr, HttpStatusCode: Kr, formToJSON: Gr, getAdapter: Xr, mergeConfig: Qr } = N, Zr = Object.freeze(Object.defineProperty({ __proto__: null, Axios: Mr, AxiosError: Lr, AxiosHeaders: Vr, Cancel: $r, CancelToken: Ir, CanceledError: Dr, HttpStatusCode: Kr, VERSION: qr, all: Wr, default: N, formToJSON: Gr, getAdapter: Xr, isAxiosError: Hr, isCancel: Fr, mergeConfig: Qr, spread: Jr, toFormData: zr }, Symbol.toStringTag, { value: "Module" }));
function mt(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
function Yr(t) {
if (t.__esModule) return t;
var e = t.default;
if (typeof e == "function") {
var r = function n() {
return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
};
r.prototype = e.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) {
var o = Object.getOwnPropertyDescriptor(t, n);
Object.defineProperty(r, n, o.get ? o : { enumerable: !0, get: function() {
return t[n];
} });
}), r;
}
var Ut = { exports: {} };
const ve = Yr(Zr), ze = function t(e, r) {
if (e === r) return !0;
if (e && r && typeof e == "object" && typeof r == "object") {
if (e.constructor !== r.constructor) return !1;
var n, o, c;
if (Array.isArray(e)) {
if ((n = e.length) != r.length) return !1;
for (o = n; o-- != 0; ) if (!t(e[o], r[o])) return !1;
return !0;
}
if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf();
if (e.toString !== Object.prototype.toString) return e.toString() === r.toString();
if ((n = (c = Object.keys(e)).length) !== Object.keys(r).length) return !1;
for (o = n; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(r, c[o])) return !1;
for (o = n; o-- != 0; ) {
var a = c[o];
if (!t(e[a], r[a])) return !1;
}
return !0;
}
return e != e && r != r;
}, Ve = function(t) {
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
}, Ke = (
/*!
* MIT License
*
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
function(t) {
return typeof Blob < "u" && (t instanceof Blob || Object.prototype.toString.call(t) === "[object Blob]");
}
), Ge = Object.prototype.toString;
function Ee(t, e) {
const r = t.length;
for (let n = 0; n < r; n++) {
const o = t[n];
if (e(o)) return o;
}
}
function Gt(t) {
return t !== null && typeof t == "object";
}
function tn(t) {
return Gt(t) && function(e) {
return Ge.call(e) === "[object Function]";
}(t.pipe);
}
function Ae(t, e) {
return t ? `${t.replace(/\/+$/, "")}/${e.replace(/^\/+/, "")}` : e;
}
function Oe(t, e) {
return (t[0] === "/" ? t.substr(1) : t) === (e[0] === "/" ? e.substr(1) : e);
}
function Se(t, e, r) {
return Bt(e, r.params) && function(n, o) {
if (o === void 0) return !0;
let c;
try {
c = JSON.parse(n);
} catch {
}
return Bt(c || n, o);
}(t, r.data);
}
function Bt(t, e) {
return e === void 0 || (typeof e.asymmetricMatch == "function" ? e.asymmetricMatch(t) : ze(t, e));
}
function en(t) {
return e = t, Ge.call(e) === "[object ArrayBuffer]" || Ve(t) || tn(t) || Ke(t) ? t : Gt(t) ? JSON.parse(JSON.stringify(t)) : t;
var e;
}
function Ce(t, e, r, n) {
if (typeof ve.AxiosError == "function") return ve.AxiosError.from(new Error(t), n, e, null, r);
const o = new Error(t);
return o.isAxiosError = !0, o.config = e, r !== void 0 && (o.response = r), n !== void 0 && (o.code = n), o.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: this.config, code: this.code };
}, o;
}
var Xe = { find: Ee, findHandler: function(t, e, r, n, o, c, a) {
return Ee(t[e.toLowerCase()], function(m) {
let y = !1;
return typeof m.url == "string" ? y = Oe(r, m.url) || Oe(Ae(a, r), m.url) : m.url instanceof RegExp && (y = m.url.test(r) || m.url.test(Ae(a, r))), y && Se(n, o, m) && Bt(c, m.headers);
});
}, purgeIfReplyOnce: function(t, e) {
const r = t.handlers.indexOf(e);
r > -1 && t.handlers.splice(r, 1);
}, settle: async function(t, e, r) {
r > 0 && await new Promise((o) => setTimeout(o, r));
const n = await async function(o, c) {
typeof o == "function" && (o = await o(c));
const a = o.status || o[0], m = en(o.data || o[1]), y = o.headers || o[2];
return o.config && (c = o.config), { status: a, data: m, headers: y, config: c, request: { responseURL: c.url } };
}(e, t);
if (!n.config.validateStatus || n.config.validateStatus(n.status)) return n;
throw Ce(`Request failed with status code ${n.status}`, n.config, n);
}, isObjectOrArray: Gt, isBuffer: Ve, isBlob: Ke, isBodyOrParametersMatching: Se, isEqual: ze, createAxiosError: Ce, createCouldNotFindMockError: function(t) {
const e = `Could not find mock for:
${JSON.stringify({ method: t.method, url: t.url, params: t.params, headers: t.headers }, null, 2)}`, r = new Error(e);
return r.isCouldNotFindMockError = !0, r.url = t.url, r.method = t.method, r;
} };
const Q = Xe;
function Re(t, e) {
let r = e.baseURL;
return r && !/^https?:/.test(r) && (r = void 0), typeof t.originalAdapter == "function" ? t.originalAdapter(e) : t.axiosInstanceWithoutInterceptors(Object.assign({}, e, { baseURL: r, adapter: t.originalAdapter, transformRequest: [], transformResponse: [] }));
}
const rn = async function(t, e) {
let r = e.url || "";
e.baseURL && r.substr(0, e.baseURL.length) === e.baseURL && (r = r.slice(e.baseURL.length)), delete e.adapter, t.history.push(e);
const n = Q.findHandler(t.handlers, e.method, r, e.data, e.params, e.headers && e.headers.constructor.name === "AxiosHeaders" ? Object.assign({}, e.headers.toJSON()) : e.headers, e.baseURL);
if (n) return n.replyOnce && Q.purgeIfReplyOnce(t, n), n.passThrough ? Re(t, e) : Q.settle(e, n.response, function(o, c) {
return typeof c.delay == "number" ? c.delay : o.delayResponse;
}(t, n));
switch (t.onNoMatch) {
case "passthrough":
return Re(t, e);
case "throwException":
throw Q.createCouldNotFindMockError(e);
default:
return Q.settle(e, { status: 404 }, t.delayResponse);
}
}, D = Xe, Qe = ["get", "post", "head", "delete", "patch", "put", "options", "list", "link", "unlink"];
function Te() {
const t = [];
return Qe.forEach(function(e) {
Object.defineProperty(t, e, { get: () => t.filter(function(r) {
return !r.method || r.method === e;
}) });
}), t;
}
class Ct {
constructor(e, r = {}) {
if (this.reset(), !e) throw new Error("Please provide an instance of axios to mock");
this.axiosInstance = e, this.axiosInstanceWithoutInterceptors = e.create ? e.create() : void 0, this.originalAdapter = e.defaults.adapter, this.delayResponse = r.delayResponse > 0 ? r.delayResponse : null, this.onNoMatch = r.onNoMatch || null, e.defaults.adapter = this.adapter();
}
adapter() {
return (e) => rn(this, e);
}
restore() {
this.axiosInstance && (this.axiosInstance.defaults.adapter = this.originalAdapter, this.axiosInstance = void 0);
}
reset() {
this.resetHandlers(), this.resetHistory();
}
resetHandlers() {
this.handlers ? this.handlers.length = 0 : this.handlers = Te();
}
resetHistory() {
this.history ? this.history.length = 0 : this.history = Te();
}
}
const nn = ["any", "get", "delete", "head", "options"], on = ["headers", "params", "data"];
function xe(t, e) {
for (const r in e) if (!on.includes(r)) throw new Error(`Invalid config property ${JSON.stringify(r)} provided to ${Ze(t)}. Config: ${JSON.stringify(e)}`);
return e;
}
function Ze(t) {
return `on${t.charAt(0).toUpperCase()}${t.slice(1)}`;
}
function Rt(t, e, r) {
if (t === "any") e.push(r);
else {
const n = function(o, c) {
let a = -1;
for (let m = 0; m < o.length; m += 1) {
const y = o[m], g = y.url instanceof RegExp && c.url instanceof RegExp ? String(y.url) === String(c.url) : y.url === c.url;
(!y.method || y.method === c.method) && g && D.isEqual(y.params, c.params) && D.isEqual(y.data, c.data) && D.isEqual(y.headers, c.headers) && !y.replyOnce && (a = m);
}
return a;
}(e, r);
n > -1 && !r.replyOnce ? e.splice(n, 1, r) : e.push(r);
}
}
Qe.concat("any").forEach(function(t) {
Ct.prototype[Ze(t)] = function(e, r, n) {
const o = this;
let c;
e = e === void 0 ? /.*/ : e;
const a = function(s, b, w) {
return nn.includes(s) ? xe(s, b || {}) : xe(s, Object.assign({}, w, { data: b }));
}(t, r, n);
function m(s, b, w) {
const E = { url: e, method: t === "any" ? void 0 : t, params: a.params, data: a.data, headers: a.headers, replyOnce: !1, delay: c, response: typeof s == "function" ? s : [s, b, w] };
return Rt(t, o.handlers, E), o;
}
function y(s, b, w) {
const E = { url: e, method: t === "any" ? void 0 : t, params: a.params, data: a.data, headers: a.headers, replyOnce: !0, delay: c, response: typeof s == "function" ? s : [s, b, w] };
return Rt(t, o.handlers, E), o;
}
const g = { reply: m, replyOnce: y, withDelayInMs: function(s) {
c = s;
const b = g.reply.bind(g);
return Object.assign(b, g), b;
}, passThrough() {
const s = { passThrough: !0, method: t === "any" ? void 0 : t, url: e, params: a.params, data: a.data, headers: a.headers };
return Rt(t, o.handlers, s), o;
}, abortRequest: () => m(async function(s) {
throw D.createAxiosError("Request aborted", s, void 0, "ECONNABORTED");
}), abortRequestOnce: () => y(async function(s) {
throw D.createAxiosError("Request aborted", s, void 0, "ECONNABORTED");
}), networkError: () => m(async function(s) {
throw D.createAxiosError("Network Error", s);
}), networkErrorOnce: () => y(async function(s) {
throw D.createAxiosError("Network Error", s);
}), timeout: () => m(async function(s) {
throw D.createAxiosError(s.timeoutErrorMessage || `timeout of ${s.timeout}ms exceeded`, s, void 0, s.transitional && s.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED");
}), timeoutOnce: () => y(async function(s) {
throw D.createAxiosError(s.timeoutErrorMessage || `timeout of ${s.timeout}ms exceeded`, s, void 0, s.transitional && s.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED");
}) };
return g;
};
}), Ut.exports = Ct, Ut.exports.default = Ct;
const hn = mt(Ut.exports);
var sn = Object.defineProperty, Ye = (t) => {
throw TypeError(t);
}, x = (t, e, r) => ((n, o, c) => o in n ? sn(n, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[o] = c)(t, typeof e != "symbol" ? e + "" : e, r), tr = (t, e, r) => e.has(t) || Ye("Cannot " + r), S = (t, e, r) => (tr(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ? Ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, n) => (tr(t, e, "write to private field"), e.set(t, r), r);
function an(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Ne, er = {};
Ne = er, function(t, e) {
var r = e();
for (var n in r) Ne[n] = r[n];
}(0, function() {
var t = function(c) {
return typeof c != "string" ? c : c.replace(/[\+ \|\^\%]/g, function(a) {
return { " ": "+", "+": "%2B", "|": "%7C", "^": "%5E", "%": "%25" }[a];
});
}, e = function(c) {
return typeof c != "string" ? c : c.replace(/\+|%2B|%7C|%5E|%25/g, function(a) {
return { "+": " ", "%2B": "+", "%7C": "|", "%5E": "^", "%25": "%" }[a];
});
}, r = function(c) {
return Number.prototype.toString.call(c, 36).toUpperCase();
}, n = function(c) {
return parseInt(c, 36);
}, o = Array.prototype.indexOf || function(c, a) {
for (var m = a || 0, y = this.length; m < y; m++) if (this[m] === c) return m;
return -1;
};
return { JSON, pack: function(c, a) {
var m = (a = a || {}).verbose || !1;
m && console.log("Normalize the JSON Object"), c = typeof c == "string" ? this.JSON.parse(c) : c, m && console.log("Creating a empty dictionary");
var y = { strings: [], integers: [], floats: [] };
m && console.log("Creating the AST");
var g = function E(d) {
m && console.log("Calling recursiveAstBuilder with " + this.JSON.stringify(d));
var l, i = typeof d;
if (d === null) return { type: "null", index: -3 };
if (typeof d > "u") return { type: "undefined", index: -5 };
if (d instanceof Array) {
var u = ["@"];
for (var h in d) d.hasOwnProperty(h) && u.push(E(d[h]));
return u;
}
if (i === "object") {
for (var p in u = ["$"], d) d.hasOwnProperty(p) && (u.push(E(p)), u.push(E(d[p])));
return u;
}
if (d === "") return { type: "empty", index: -4 };
if (i === "string") return (l = o.call(y.strings, d)) == -1 && (y.strings.push(t(d)), l = y.strings.length - 1), { type: "strings", index: l };
if (i === "number" && d % 1 == 0) return (l = o.call(y.integers, d)) == -1 && (y.integers.push(r(d)), l = y.integers.length - 1), { type: "integers", index: l };
if (i === "number") return (l = o.call(y.floats, d)) == -1 && (y.floats.push(d), l = y.floats.length - 1), { type: "floats", index: l };
if (i === "boolean") return { type: "boolean", index: d ? -1 : -2 };
throw new Error("Unexpected argument of type " + typeof d);
}(c), s = y.strings.length, b = y.integers.length;
y.floats.length, m && console.log("Parsing the dictionary");
var w = y.strings.join("|");
return w += "^" + y.integers.join("|"), w += "^" + y.floats.join("|"), m && console.log("Parsing the structure"), w += "^" + function E(d) {
if (m && console.log("Calling a recursiveParser with " + this.JSON.stringify(d)), d instanceof Array) {
var l = d.shift();
for (var i in d) d.hasOwnProperty(i) && (l += E(d[i]) + "|");
return (l[l.length - 1] === "|" ? l.slice(0, -1) : l) + "]";
}
var u = d.type, h = d.index;
if (u === "strings") return r(h);
if (u === "integers") return r(s + h);
if (u === "floats") return r(s + b + h);
if (u === "boolean") return d.index;
if (u === "null") return -3;
if (u === "undefined") return -5;
if (u === "empty") return -4;
throw new TypeError("The item is alien!");
}(g), m && console.log("Ending parser"), a.debug ? { dictionary: y, ast: g, packed: w } : w;
}, unpack: function(c, a) {
a = a || {};
var m = c.split("^");
a.verbose && console.log("Building dictionary");
var y = [], g = m[0];
if (g !== "") {
g = g.split("|"), a.verbose && console.log("Parse the strings dictionary");
for (var s = 0, b = g.length; s < b; s++) y.push(e(g[s]));
}
if ((g = m[1]) !== "") for (g = g.split("|"), a.verbose && console.log("Parse the integers dictionary"), s = 0, b = g.length; s < b; s++) y.push(n(g[s]));
if ((g = m[2]) !== "") for (g = g.split("|"), a.verbose && console.log("Parse the floats dictionary"), s = 0, b = g.length; s < b; s++) y.push(parseFloat(g[s]));
g = null, a.verbose && console.log("Tokenizing the structure");
var w = "", E = [], d = m[3].length;
for (s = 0; s < d; s++) {
var l = m[3].charAt(s);
l === "|" || l === "$" || l === "@" || l === "]" ? (w && (E.push(n(w)), w = ""), l !== "|" && E.push(l)) : w += l;
}
var i = E.length, u = 0;
return a.verbose && console.log("Starting recursive parser"), function h() {
var p = E[u++];
if (a.verbose && console.log("Reading collection type " + (p === "$" ? "object" : "Array")), p === "@") {
for (var f = []; u < i; u++) {
var A = E[u];
if (a.verbose && console.log("Read " + A + " symbol"), A === "]") return f;
if (A === "@" || A === "$") f.push(h());
else switch (A) {
case -1:
f.push(!0);
break;
case -2:
f.push(!1);
break;
case -3:
f.push(null);
break;
case -5:
f.push(void 0);
break;
case -4:
f.push("");
break;
default:
f.push(y[A]);
}
}
return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f;
}
if (p === "$") {
for (f = {}; u < i; u++) {
var O = E[u];
if (O === "]") return f;
if (O = O === -4 ? "" : y[O], (A = E[++u]) === "@" || A === "$") f[O] = h();
else switch (A) {
case -1:
f[O] = !0;
break;
case -2:
f[O] = !1;
break;
case -3:
f[O] = null;
break;
case -5:
f[O] = void 0;
break;
case -4:
f[O] = "";
break;
default:
f[O] = y[A];
}
}
return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f;
}
throw new TypeError("Bad token " + p + " isn't a type");
}();
} };
});
const _e = an(er);
var tt, et, z, q, Mt, Lt, at, Dt, Ft;
class It {
constructor(e, r, n, o, c) {
return x(this, "code", 0), x(this, "message", "操作成功"), x(this, "data", null), x(this, "url", ""), x(this, "res", ""), _(this, tt), _(this, et, !0), _(this, z, !0), _(this, q, { get: (a, m) => S(this, Mt).call(this, m), ownKeys: () => Object.keys(S(this, q).getPrototypeOf() || {}), getPrototypeOf: () => S(this, et) ? this : this.data, getOwnPropertyDescriptor: () => ({ configurable: !0, enumerable: !0, writable: !0, value: S(this, q).getPrototypeOf() }) }), _(this, Mt, (a) => a === "$echoMsg" ? S(this, at) : a === "msg" ? S(this, Lt) : a === "then" || a === "resp" ? (M(this, z, !0), M(this, et, a === "resp"), S(this, Dt)) : a === "catch" ? S(this, Ft) : a === "IS_ECHO_MSG" ? S(this, z) : Reflect.get(this, a)), _(this, Lt, (a = (y) => y, m = !1) => (S(this, at).call(this), M(this, et, m), Promise.resolve(a == null ? void 0 : a(S(this, q).getPrototypeOf())))), _(this, at, () => {
S(this, z) && (M(this, z, !1), $t.onMsg(this.code, this.message));
}), _(this, Dt, (a) => [0, 1].includes(this.code) ? Promise.resolve(a == null ? void 0 : a(S(this, q).getPrototypeOf())) : Promise.reject(S(this, tt))), _(this, Ft, (a) => Promise.resolve(a(S(this, tt)))), this.code = e, this.message = r, this.data = n, this.url = o, this.res = c, M(this, tt, new Proxy(this, S(this, q)));
}
}
tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap();
const Tt = (t, e, r, n = "/", o = "") => new It(t, e, r, n, o);
var Pe = ["utf8", "utf-8", "unicode-1-1-utf-8"], rr = { TextEncoder: function(t) {
if (Pe.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported");
this.encoding = "utf-8", this.encode = function(e) {
if (typeof e != "string") throw new TypeError("passed argument must be of tye string");
var r = unescape(encodeURIComponent(e)), n = new Uint8Array(r.length);
const o = r.split("");
for (let c = 0; c < o.length; c++) n[c] = o[c].charCodeAt(0);
return n;
};
}, TextDecoder: function(t) {
if (Pe.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported");
this.encoding = "utf-8", this.decode = function(e, r) {
if (typeof e > "u") return "";
var n = typeof r < "u" && n in r && r.stream;
if (typeof n != "boolean") throw new TypeError("stream option must be boolean");
if (ArrayBuffer.isView(e)) {
var o = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), c = new Array(o.length);
for (let a = 0; a < o.length; a++) c[a] = String.fromCharCode(o[a]);
return decodeURIComponent(escape(c.join("")));
}
throw new TypeError("passed argument must be an array buffer view");
};
} };
const cn = new rr.TextEncoder("utf8");
new rr.TextDecoder("utf8");
class un {
constructor(e) {
if (x(this, "encodeTable", []), x(this, "decodeMap", new Uint8Array(256).fill(255)), e.length !== 62) throw new Error("Encoding alphabet must be 62 characters long");
if (e.includes(`
`) || e.includes("\r")) throw new Error("Encoding alphabet contains newline character");
this.encodeTable = e.split(""), this.decodeMap = new Uint8Array(256).fill(255);
for (let r = 0; r < e.length; r++) this.decodeMap[e.charCodeAt(r)] = r;
}
encode(e) {
if (!e || e.length === 0) return "";
const r = new ln(this).encodeV2(e);
return String.fromCharCode(...r);
}
decode(e) {
if (!e || e.length === 0) return "";
const r = new fn(this).decode(e);
return new TextDecoder().decode(r);
}
}
var ct, ut, V, W, qt, L, I, K, Wt, lt;
class ln {
constructor(e) {
_(this, ct), x(this, "src", new Uint8Array()), x(this, "pos", 0), M(this, ct, e);
}
get6bits() {
let e = 7 & this.pos, r = this.pos >> 3;
e === 0 && (r -= 1, e = 8);
let n = this.src[r] >> 8 - e;
return e < 6 && r > 0 && (n |= this.src[r - 1] << e), 63 & n;
}
encodeV2(e) {
this.src = function(n) {
return cn.encode(n || "");
}(e), this.pos = 8 * this.src.length;
const r = [];
for (; this.pos > 0; ) {
let n = 6, o = this.get6bits();
!(30 & ~o) && ((this.pos > 6 || o > 31) && (n = 5), o &= 31), r.push(S(this, ct).encodeTable[o].charCodeAt(0)), this.pos -= n;
}
return r;
}
}
ct = /* @__PURE__ */ new WeakMap();
class fn {
constructor(e) {
_(this, ut), M(this, ut, e);
}
decode(e) {
const r = new Uint8Array(Math.ceil(6 * e.length / 8) + 1);
let n = r.length, o = 0, c = 0;
for (let a = 0; a < e.length; a++) {
const m = e[a].charCodeAt(0), y = S(this, ut).decodeMap[m];
if (y === 255) throw new Error(`CorruptInputError at index ${a}`);
a === e.length - 1 ? (c |= y << o, o += Math.ceil(Math.log2(y + 1))) : 30 & ~y ? (c |= y << o, o += 6) : (c |= y << o, o += 5), o >= 8 && (n--, r[n] = 255 & c, o %= 8, c >>= 8);
}
return o > 0 && (n--, r[n] = 255 & c), r.slice(n);
}
}
ut = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() {
let t, e;
return { promise: new Promise((r, n) => {
t = r, e = n;
}), resolve: t, reject: e };
});
class $t {
constructor(e, r, n) {
_(this, V), _(this, W), _(this, qt), _(this, L, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), _(this, I, /* @__PURE__ */ new Map()), _(this, K, /* @__PURE__ */ new Set()), x(this, "init", (o, c, a) => {
o && M(this, qt, o), a && M(this, V, a), c && M(this, W, new un(c)), S(this, Wt).call(this);
}), _(this, Wt, () => {
!S(this, K).size || !S(this, V) || (S(this, K).forEach((o) => S(this, lt).call(this, ...o)), S(this, K).clear());
}), _(this, lt, (o, c, a, m = !1) => {
if (S(this, V)) {
const { url: y, method: g, ...s } = a || {};
S(this, V).call(this, { url: y, method: g, ...s }).then((b) => {
if (![0, 1].includes(b.code)) throw Tt(b.code, b.msg, b.data, y, b == null ? void 0 : b.res);
return [b.code, b.msg, b.data, y, (b == null ? void 0 : b.res) ?? ""];
}).then((b) => {
const w = b;
return (c == "#" || g == "GET") && S(this, L)[c].set(o, w), c != "#" && g == "GET" && !m && setTimeout(() => {
S(this, L)[c].delete(o);
}, 300), w;
}).then((b) => {
var w;
return (w = S(this, I).get(o)) == null ? void 0 : w.forEach((E, d, l) => {
E && E[0](b), delete l[d];
});
}).catch((b) => {
var w;
S(this, L)[c].delete(o), (w = S(this, I).get(o)) == null || w.forEach((E, d, l) => {
E && E[1](b instanceof It ? b : Tt(-1, b, null, y)), delete l[d];
});
}).finally(() => S(this, I).delete(o));
} else S(this, K).add([o, c, a, m]);
}), x(this, "request", ({ url: o = "/", method: c = "GET", ...a }, m = !1) => {
var y, g;
o = function(i, u) {
return i.replace(new RegExp(`^${u}+|${u}+$`, "g"), "");
}(o, "/");
const s = c.toUpperCase(), b = function(i) {
let u = 5381;
for (let h = 0; h < i.length; h++) u = 33 * u ^ i.charCodeAt(h);
return (u >>> 0).toString(16);
}(JSON.stringify([o, s, a])), w = (y = o == null ? void 0 : o.includes) != null && y.call(o, "/_/") ? "#" : "$", { promise: E, resolve: d, reject: l } = Promise.withResolvers();
return S(this, L)[w].has(b) ? (console.log("cache", o), d(S(this, L)[w].get(b))) : S(this, I).has(b) ? (g = S(this, I).get(b)) == null || g.push([d, l]) : (S(this, I).set(b, [[d, l]]), S(this, lt).call(this, b, w, { url: o, method: s, ...a }, m)), new Proxy(E, { get: (i, u) => (...h) => i.then((p) => Tt(...p)[u](...h)).catch((p) => {
if (!(p instanceof It)) throw p;
return typeof p[u] == "function" ? p[u](...h) : p[u];
}) });
}), x(this, "get", (o, c = {}) => this.request({ url: o, method: "GET", params: c })), x(this, "post", (o, c = {}, a = {}) => this.request({ url: o, method: "POST", data: c, params: a })), x(this, "put", (o, c = {}, a = {}) => this.request({ url: o, method: "PUT", data: c, params: a })), x(this, "del", (o, c = {}, a = {}) => this.request({ url: o, method: "DELETE", data: c, params: a })), x(this, "download", (o, c) => {
}), x(this, "cache", (o, c = {}) => this.request({ url: o, method: "GET", params: c }, !0)), x(this, "list", (o, c = {}) => this.get(`/api/${o}/${this.encode(c)}`)), x(this, "getAppInfo", () => {
}), x(this, "refreshCache", (o = !1) => {
o && S(this, L)["#"].clear(), S(this, L).$.clear();
}), x(this, "decode", (o = "", c = {}) => {
if (o === void 0 || o === "" || o === null) return c;
try {
if (!S(this, W)) throw new Error("未初始化 appSecret请先通过 init 设置 appSecret");
const a = S(this, W).decode(o);
return _e.unpack(a);
} catch {
return console.warn("core.decode", o), c;
}
}), x(this, "encode", (o = {}) => {
if (!S(this, W)) throw new Error("未初始化 appSecret请先通过 init 设置 appSecret");
const c = JSON.stringify(o, (a, m) => m === void 0 ? null : m);
return S(this, W).encode(_e.pack(c));
}), this.init(e, r, n);
}
}
V = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), $t.onUnhandledRejection = (t) => {
var e, r, n, o, c, a;
t != null && t.IS_ECHO_MSG ? ((e = t == null ? void 0 : t.$echoMsg) == null || e.call(t), (r = t == null ? void 0 : t.preventDefault) == null || r.call(t)) : (n = t.reason) != null && n.IS_ECHO_MSG && ((c = (o = t.reason) == null ? void 0 : o.$echoMsg) == null || c.call(o), (a = t == null ? void 0 : t.preventDefault) == null || a.call(t));
}, $t.onMsg = (t, e) => [0, 1].includes(t) ? console.log(e) : console.warn(e);
var nr = { exports: {} };
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
nr.exports = function() {
var t, e, r = { version: "0.2.0" }, n = r.settings = { minimum: 0.08, easing: "ease", positionUsing: "", speed: 200, trickle: !0, trickleRate: 0.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>' };
function o(d, l, i) {
return d < l ? l : d > i ? i : d;
}
function c(d) {
return 100 * (-1 + d);
}
function a(d, l, i) {
var u;
return (u = n.positionUsing === "translate3d" ? { transform: "translate3d(" + c(d) + "%,0,0)" } : n.positionUsing === "translate" ? { transform: "translate(" + c(d) + "%,0)" } : { "margin-left": c(d) + "%" }).transition = "all " + l + "ms " + i, u;
}
r.configure = function(d) {
var l, i;
for (l in d) (i = d[l]) !== void 0 && d.hasOwnProperty(l) && (n[l] = i);
return this;
}, r.status = null, r.set = function(d) {
var l = r.isStarted();
d = o(d, n.minimum, 1), r.status = d === 1 ? null : d;
var i = r.render(!l), u = i.querySelector(n.barSelector), h = n.speed, p = n.easing;
return i.offsetWidth, m(function(f) {
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), y(u, a(d, h, p)), d === 1 ? (y(i, { transition: "none", opacity: 1 }), i.offsetWidth, setTimeout(function() {
y(i, { transition: "all " + h + "ms linear", opacity: 0 }), setTimeout(function() {
r.remove(), f();
}, h);
}, h)) : setTimeout(f, h);
}), this;
}, r.isStarted = function() {
return typeof r.status == "number";
}, r.start = function() {
r.status || r.set(0);
var d = function() {
setTimeout(function() {
r.status && (r.trickle(), d());
}, n.trickleSpeed);
};
return n.trickle && d(), this;
}, r.done = function(d) {
return d || r.status ? r.inc(0.3 + 0.5 * Math.random()).set(1) : this;
}, r.inc = function(d) {
var l = r.status;
return l ? (typeof d != "number" && (d = (1 - l) * o(Math.random() * l, 0.1, 0.95)), l = o(l + d, 0, 0.994), r.set(l)) : r.start();
}, r.trickle = function() {
return r.inc(Math.random() * n.trickleRate);
}, t = 0, e = 0, r.promise = function(d) {
return d && d.state() !== "resolved" ? (e === 0 && r.start(), t++, e++, d.always(function() {
--e == 0 ? (t = 0, r.done()) : r.set((t - e) / t);
}), this) : this;
}, r.render = function(d) {
if (r.isRendered()) return document.getElementById("nprogress");
s(document.documentElement, "nprogress-busy");
var l = document.createElement("div");
l.id = "nprogress", l.innerHTML = n.template;
var i, u = l.querySelector(n.barSelector), h = d ? "-100" : c(r.status || 0), p = document.querySelector(n.parent);
return y(u, { transition: "all 0 linear", transform: "translate3d(" + h + "%,0,0)" }), n.showSpinner || (i = l.querySelector(n.spinnerSelector)) && E(i), p != document.body && s(p, "nprogress-custom-parent"), p.appendChild(l), l;
}, r.remove = function() {
b(document.documentElement, "nprogress-busy"), b(document.querySelector(n.parent), "nprogress-custom-parent");
var d = document.getElementById("nprogress");
d && E(d);
}, r.isRendered = function() {
return !!document.getElementById("nprogress");
}, r.getPositioningCSS = function() {
var d = document.body.style, l = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : "";
return l + "Perspective" in d ? "translate3d" : l + "Transform" in d ? "translate" : "margin";
};
var m = /* @__PURE__ */ function() {
var d = [];
function l() {
var i = d.shift();
i && i(l);
}
return function(i) {
d.push(i), d.length == 1 && l();
};
}(), y = /* @__PURE__ */ function() {
var d = ["Webkit", "O", "Moz", "ms"], l = {};
function i(f) {
return f.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A, O) {
return O.toUpperCase();
});
}
function u(f) {
var A = document.body.style;
if (f in A) return f;
for (var O, T = d.length, P = f.charAt(0).toUpperCase() + f.slice(1); T--; ) if ((O = d[T] + P) in A) return O;
return f;
}
function h(f) {
return f = i(f), l[f] || (l[f] = u(f));
}
function p(f, A, O) {
A = h(A), f.style[A] = O;
}
return function(f, A) {
var O, T, P = arguments;
if (P.length == 2) for (O in A) (T = A[O]) !== void 0 && A.hasOwnProperty(O) && p(f, O, T);
else p(f, P[1], P[2]);
};
}();
function g(d, l) {
return (typeof d == "string" ? d : w(d)).indexOf(" " + l + " ") >= 0;
}
function s(d, l) {
var i = w(d), u = i + l;
g(i, l) || (d.className = u.substring(1));
}
function b(d, l) {
var i, u = w(d);
g(d, l) && (i = u.replace(" " + l + " ", " "), d.className = i.substring(1, i.length - 1));
}
function w(d) {
return (" " + (d.className || "") + " ").replace(/\s+/gi, " ");
}
function E(d) {
d && d.parentNode && d.parentNode.removeChild(d);
}
return r;
}();
const dn = mt(nr.exports);
var xt, Nt, Ht = { exports: {} };
xt = Ht, Nt = Ht.exports, function() {
var t = { version: "3.0.1", x86: {}, x64: {} };
function e(s, b) {
return (65535 & s) * b + (((s >>> 16) * b & 65535) << 16);
}
function r(s, b) {
return s << b | s >>> 32 - b;
}
function n(s) {
return s = e(s ^= s >>> 16, 2246822507), s = e(s ^= s >>> 13, 3266489909), s ^= s >>> 16;
}
function o(s, b) {
s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], b = [b[0] >>> 16, 65535 & b[0], b[1] >>> 16, 65535 & b[1]];
var w = [0, 0, 0, 0];
return w[3] += s[3] + b[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] + b[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] + b[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] + b[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]];
}
function c(s, b) {
s = [s[0] >>> 16, 65535 & s[0], s[1] >>> 16, 65535 & s[1]], b = [b[0] >>> 16, 65535 & b[0], b[1] >>> 16, 65535 & b[1]];
var w = [0, 0, 0, 0];
return w[3] += s[3] * b[3], w[2] += w[3] >>> 16, w[3] &= 65535, w[2] += s[2] * b[3], w[1] += w[2] >>> 16, w[2] &= 65535, w[2] += s[3] * b[2], w[1] += w[2] >>> 16, w[2] &= 65535, w[1] += s[1] * b[3], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[2] * b[2], w[0] += w[1] >>> 16, w[1] &= 65535, w[1] += s[3] * b[1], w[0] += w[1] >>> 16, w[1] &= 65535, w[0] += s[0] * b[3] + s[1] * b[2] + s[2] * b[1] + s[3] * b[0], w[0] &= 65535, [w[0] << 16 | w[1], w[2] << 16 | w[3]];
}
function a(s, b) {
return (b %= 64) == 32 ? [s[1], s[0]] : b < 32 ? [s[0] << b | s[1] >>> 32 - b, s[1] << b | s[0] >>> 32 - b] : (b -= 32, [s[1] << b | s[0] >>> 32 - b, s[0] << b | s[1] >>> 32 - b]);
}
function m(s, b) {
return (b %= 64) == 0 ? s : b < 32 ? [s[0] << b | s[1] >>> 32 - b, s[1] << b] : [s[1] << b - 32, 0];
}
function y(s, b) {
return [s[0] ^ b[0], s[1] ^ b[1]];
}
function g(s) {
return s = y(s, [0, s[0] >>> 1]), s = y(s = c(s, [4283543511, 3981806797]), [0, s[0] >>> 1]), s = y(s = c(s, [3301882366, 444984403]), [0, s[0] >>> 1]);
}
t.x86.hash32 = function(s, b) {
b = b || 0;
for (var w = (s = s || "").length % 4, E = s.length - w, d = b, l = 0, i = 3432918353, u = 461845907, h = 0; h < E; h += 4) l = e(l = 255 & s.charCodeAt(h) | (255 & s.charCodeAt(h + 1)) << 8 | (255 & s.charCodeAt(h + 2)) << 16 | (255 & s.charCodeAt(h + 3)) << 24, i), l = e(l = r(l, 15), u), d = e(d = r(d ^= l, 13), 5) + 3864292196;
switch (l = 0, w) {
case 3:
l ^= (255 & s.charCodeAt(h + 2)) << 16;
case 2:
l ^= (255 & s.charCodeAt(h + 1)) << 8;
case 1:
l = e(l ^= 255 & s.charCodeAt(h), i), d ^= l = e(l = r(l, 15), u);
}
return (d = n(d ^= s.length)) >>> 0;
}, t.x86.hash128 = function(s, b) {
b = b || 0;
for (var w = (s = s || "").length % 16, E = s.length - w, d = b, l = b, i = b, u = b, h = 0, p = 0, f = 0, A = 0, O = 597399067, T = 2869860233, P = 951274213, nt = 2716044179, R = 0; R < E; R += 16) h = 255 & s.charCodeAt(R) | (255 & s.charCodeAt(R + 1)) << 8 | (255 & s.charCodeAt(R + 2)) << 16 | (255 & s.charCodeAt(R + 3)) << 24, p = 255 & s.charCodeAt(R + 4) | (255 & s.charCodeAt(R + 5)) << 8 | (255 & s.charCodeAt(R + 6)) << 16 | (255 & s.charCodeAt(R + 7)) << 24, f = 255 & s.charCodeAt(R + 8) | (255 & s.charCodeAt(R + 9)) << 8 | (255 & s.charCodeAt(R + 10)) << 16 | (255 & s.charCodeAt(R + 11)) << 24, A = 255 & s.charCodeAt(R + 12) | (255 & s.charCodeAt(R + 13)) << 8 | (255 & s.charCodeAt(R + 14)) << 16 | (255 & s.charCodeAt(R + 15)) << 24, h = r(h = e(h, O), 15), d = r(d ^= h = e(h, T), 19), d = e(d += l, 5) + 1444728091, p = r(p = e(p, T), 16), l = r(l ^= p = e(p, P), 17), l = e(l += i, 5) + 197830471, f = r(f = e(f, P), 17), i = r(i ^= f = e(f, nt), 15), i = e(i += u, 5) + 2530024501, A = r(A = e(A, nt), 18), u = r(u ^= A = e(A, O), 13), u = e(u += d, 5) + 850148119;
switch (h = 0, p = 0, f = 0, A = 0, w) {
case 15:
A ^= s.charCodeAt(R + 14) << 16;
case 14:
A ^= s.charCodeAt(R + 13) << 8;
case 13:
A = e(A ^= s.charCodeAt(R + 12), nt), u ^= A = e(A = r(A, 18), O);
case 12:
f ^= s.charCodeAt(R + 11) << 24;
case 11:
f ^= s.charCodeAt(R + 10) << 16;
case 10:
f ^= s.charCodeAt(R + 9) << 8;
case 9:
f = e(f ^= s.charCodeAt(R + 8), P), i ^= f = e(f = r(f, 17), nt);
case 8:
p ^= s.charCodeAt(R + 7) << 24;
case 7:
p ^= s.charCodeAt(R + 6) << 16;
case 6:
p ^= s.charCodeAt(R + 5) << 8;
case 5:
p = e(p ^= s.charCodeAt(R + 4), T), l ^= p = e(p = r(p, 16), P);
case 4:
h ^= s.charCodeAt(R + 3) << 24;
case 3:
h ^= s.charCodeAt(R + 2) << 16;
case 2:
h ^= s.charCodeAt(R + 1) << 8;
case 1:
h = e(h ^= s.charCodeAt(R), O), d ^= h = e(h = r(h, 15), T);
}
return d ^= s.length, d += l ^= s.length, d += i ^= s.length, l += d += u ^= s.length, i += d, u += d, d = n(d), d += l = n(l), d += i = n(i), l += d += u = n(u), i += d, u += d, ("00000000" + (d >>> 0).toString(16)).slice(-8) + ("00000000" + (l >>> 0).toString(16)).slice(-8) + ("00000000" + (i >>> 0).toString(16)).slice(-8) + ("00000000" + (u >>> 0).toString(16)).slice(-8);
}, t.x64.hash128 = function(s, b) {
b = b || 0;
for (var w = (s = s || "").length % 16, E = s.length - w, d = [0, b], l = [0, b], i = [0, 0], u = [0, 0], h = [2277735313, 289559509], p = [1291169091, 658871167], f = 0; f < E; f += 16) i = [255 & s.charCodeAt(f + 4) | (255 & s.charCodeAt(f + 5)) << 8 | (255 & s.charCodeAt(f + 6)) << 16 | (255 & s.charCodeAt(f + 7)) << 24, 255 & s.charCodeAt(f) | (255 & s.charCodeAt(f + 1)) << 8 | (255 & s.charCodeAt(f + 2)) << 16 | (255 & s.charCodeAt(f + 3)) << 24], u = [255 & s.charCodeAt(f + 12) | (255 & s.charCodeAt(f + 13)) << 8 | (255 & s.charCodeAt(f + 14)) << 16 | (255 & s.charCodeAt(f + 15)) << 24, 255 & s.charCodeAt(f + 8) | (255 & s.charCodeAt(f + 9)) << 8 | (255 & s.charCodeAt(f + 10)) << 16 | (255 & s.charCodeAt(f + 11)) << 24], i = a(i = c(i, h), 31), d = o(d = a(d = y(d, i = c(i, p)), 27), l), d = o(c(d, [0, 5]), [0, 1390208809]), u = a(u = c(u, p), 33), l = o(l = a(l = y(l, u = c(u, h)), 31), d), l = o(c(l, [0, 5]), [0, 944331445]);
switch (i = [0, 0], u = [0, 0], w) {
case 15:
u = y(u, m([0, s.charCodeAt(f + 14)], 48));
case 14:
u = y(u, m([0, s.charCodeAt(f + 13)], 40));
case 13:
u = y(u, m([0, s.charCodeAt(f + 12)], 32));
case 12:
u = y(u, m([0, s.charCodeAt(f + 11)], 24));
case 11:
u = y(u, m([0, s.charCodeAt(f + 10)], 16));
case 10:
u = y(u, m([0, s.charCodeAt(f + 9)], 8));
case 9:
u = c(u = y(u, [0, s.charCodeAt(f + 8)]), p), l = y(l, u = c(u = a(u, 33), h));
case 8:
i = y(i, m([0, s.charCodeAt(f + 7)], 56));
case 7:
i = y(i, m([0, s.charCodeAt(f + 6)], 48));
case 6:
i = y(i, m([0, s.charCodeAt(f + 5)], 40));
case 5:
i = y(i, m([0, s.charCodeAt(f + 4)], 32));
case 4:
i = y(i, m([0, s.charCodeAt(f + 3)], 24));
case 3:
i = y(i, m([0, s.charCodeAt(f + 2)], 16));
case 2:
i = y(i, m([0, s.charCodeAt(f + 1)], 8));
case 1:
i = c(i = y(i, [0, s.charCodeAt(f)]), h), d = y(d, i = c(i = a(i, 31), p));
}
return d = o(d = y(d, [0, s.length]), l = y(l, [0, s.length])), l = o(l, d), d = o(d = g(d), l = g(l)), l = o(l, d), ("00000000" + (d[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (d[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[1] >>> 0).toString(16)).slice(-8);
}, xt.exports && (Nt = xt.exports = t), Nt.murmurHash3 = t;
}();
const pn = mt(Ht.exports);
var or = { exports: {} };
or.exports = function(t) {
var e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
function r(l, i) {
var u = l[0], h = l[1], p = l[2], f = l[3];
h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[0] - 680876936 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[1] - 389564586 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[2] + 606105819 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[3] - 1044525330 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[4] - 176418897 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[5] + 1200080426 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[6] - 1473231341 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[7] - 45705983 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[8] + 1770035416 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[9] - 1958414417 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[10] - 42063 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[11] - 1990404162 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & p | ~h & f) + i[12] + 1804603682 | 0) << 7 | u >>> 25) + h | 0) & h | ~u & p) + i[13] - 40341101 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & h) + i[14] - 1502002290 | 0) << 17 | p >>> 15) + f | 0) & f | ~p & u) + i[15] + 1236535329 | 0) << 22 | h >>> 10) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[1] - 165796510 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[6] - 1069501632 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[11] + 643717713 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[0] - 373897302 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[5] - 701558691 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[10] + 38016083 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[15] - 660478335 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[4] - 405537848 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[9] + 568446438 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[14] - 1019803690 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[3] - 187363961 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[8] + 1163531501 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h & f | p & ~f) + i[13] - 1444681467 | 0) << 5 | u >>> 27) + h | 0) & p | h & ~p) + i[2] - 51403784 | 0) << 9 | f >>> 23) + u | 0) & h | u & ~h) + i[7] + 1735328473 | 0) << 14 | p >>> 18) + f | 0) & u | f & ~u) + i[12] - 1926607734 | 0) << 20 | h >>> 12) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[5] - 378558 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[8] - 2022574463 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[11] + 1839030562 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[14] - 35309556 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[1] - 1530992060 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[4] + 1272893353 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[7] - 155497632 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[10] - 1094730640 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[13] + 681279174 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[0] - 358537222 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[3] - 722521979 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[6] + 76029189 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((p = ((p += ((f = ((f += ((u = ((u += (h ^ p ^ f) + i[9] - 640364487 | 0) << 4 | u >>> 28) + h | 0) ^ h ^ p) + i[12] - 421815835 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ h) + i[15] + 530742520 | 0) << 16 | p >>> 16) + f | 0) ^ f ^ u) + i[2] - 995338651 | 0) << 23 | h >>> 9) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[0] - 198630844 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[7] + 1126891415 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[14] - 1416354905 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[5] - 57434055 | 0) << 21 | h >>> 11) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[12] + 1700485571 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[3] - 1894986606 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[10] - 1051523 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[1] - 2054922799 | 0) << 21 | h >>> 11) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[8] + 1873313359 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[15] - 30611744 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[6] - 1560198380 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[13] + 1309151649 | 0) << 21 | h >>> 11) + p | 0, h = ((h += ((f = ((f += (h ^ ((u = ((u += (p ^ (h | ~f)) + i[4] - 145523070 | 0) << 6 | u >>> 26) + h | 0) | ~p)) + i[11] - 1120210379 | 0) << 10 | f >>> 22) + u | 0) ^ ((p = ((p += (u ^ (f | ~h)) + i[2] + 718787259 | 0) << 15 | p >>> 17) + f | 0) | ~u)) + i[9] - 343485551 | 0) << 21 | h >>> 11) + p | 0, l[0] = u + l[0] | 0, l[1] = h + l[1] | 0, l[2] = p + l[2] | 0, l[3] = f + l[3] | 0;
}
function n(l) {
var i, u = [];
for (i = 0; i < 64; i += 4) u[i >> 2] = l.charCodeAt(i) + (l.charCodeAt(i + 1) << 8) + (l.charCodeAt(i + 2) << 16) + (l.charCodeAt(i + 3) << 24);
return u;
}
function o(l) {
var i, u = [];
for (i = 0; i < 64; i += 4) u[i >> 2] = l[i] + (l[i + 1] << 8) + (l[i + 2] << 16) + (l[i + 3] << 24);
return u;
}
function c(l) {
var i, u, h, p, f, A, O = l.length, T = [1732584193, -271733879, -1732584194, 271733878];
for (i = 64; i <= O; i += 64) r(T, n(l.substring(i - 64, i)));
for (u = (l = l.substring(i - 64)).length, h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], i = 0; i < u; i += 1) h[i >> 2] |= l.charCodeAt(i) << (i % 4 << 3);
if (h[i >> 2] |= 128 << (i % 4 << 3), i > 55) for (r(T, h), i = 0; i < 16; i += 1) h[i] = 0;
return p = (p = 8 * O).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(p[2], 16), A = parseInt(p[1], 16) || 0, h[14] = f, h[15] = A, r(T, h), T;
}
function a(l) {
var i, u, h, p, f, A, O = l.length, T = [1732584193, -271733879, -1732584194, 271733878];
for (i = 64; i <= O; i += 64) r(T, o(l.subarray(i - 64, i)));
for (u = (l = i - 64 < O ? l.subarray(i - 64) : new Uint8Array(0)).length, h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], i = 0; i < u; i += 1) h[i >> 2] |= l[i] << (i % 4 << 3);
if (h[i >> 2] |= 128 << (i % 4 << 3), i > 55) for (r(T, h), i = 0; i < 16; i += 1) h[i] = 0;
return p = (p = 8 * O).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(p[2], 16), A = parseInt(p[1], 16) || 0, h[14] = f, h[15] = A, r(T, h), T;
}
function m(l) {
var i, u = "";
for (i = 0; i < 4; i += 1) u += e[l >> 8 * i + 4 & 15] + e[l >> 8 * i & 15];
return u;
}
function y(l) {
var i;
for (i = 0; i < l.length; i += 1) l[i] = m(l[i]);
return l.join("");
}
function g(l) {
return /[\u0080-\uFFFF]/.test(l) && (l = unescape(encodeURIComponent(l))), l;
}
function s(l, i) {
var u, h = l.length, p = new ArrayBuffer(h), f = new Uint8Array(p);
for (u = 0; u < h; u += 1) f[u] = l.charCodeAt(u);
return i ? f : p;
}
function b(l) {
return String.fromCharCode.apply(null, new Uint8Array(l));
}
function w(l, i, u) {
var h = new Uint8Array(l.byteLength + i.byteLength);
return h.set(new Uint8Array(l)), h.set(new Uint8Array(i), l.byteLength), h;
}
function E(l) {
var i, u = [], h = l.length;
for (i = 0; i < h - 1; i += 2) u.push(parseInt(l.substr(i, 2), 16));
return String.fromCharCode.apply(String, u);
}
function d() {
this.reset();
}
return y(c("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() {
function l(i, u) {
return (i = 0 | i || 0) < 0 ? Math.max(i + u, 0) : Math.min(i, u);
}
ArrayBuffer.prototype.slice = function(i, u) {
var h, p, f, A, O = this.byteLength, T = l(i, O), P = O;
return u !== t && (P = l(u, O)), T > P ? new ArrayBuffer(0) : (h = P - T, p = new ArrayBuffer(h), f = new Uint8Array(p), A = new Uint8Array(this, T, h), f.set(A), p);
};
}(), d.prototype.append = function(l) {
return this.appendBinary(g(l)), this;
}, d.prototype.appendBinary = function(l) {
this._buff += l, this._length += l.length;
var i, u = this._buff.length;
for (i = 64; i <= u; i += 64) r(this._hash, n(this._buff.substring(i - 64, i)));
return this._buff = this._buff.substring(i - 64), this;
}, d.prototype.end = function(l) {
var i, u, h = this._buff, p = h.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
for (i = 0; i < p; i += 1) f[i >> 2] |= h.charCodeAt(i) << (i % 4 << 3);
return this._finish(f, p), u = y(this._hash), l && (u = E(u)), this.reset(), u;
}, d.prototype.reset = function() {
return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
}, d.prototype.getState = function() {
return { buff: this._buff, length: this._length, hash: this._hash.slice() };
}, d.prototype.setState = function(l) {
return this._buff = l.buff, this._length = l.length, this._hash = l.hash, this;
}, d.prototype.destroy = function() {
delete this._hash, delete this._buff, delete this._length;
}, d.prototype._finish = function(l, i) {
var u, h, p, f = i;
if (l[f >> 2] |= 128 << (f % 4 << 3), f > 55) for (r(this._hash, l), f = 0; f < 16; f += 1) l[f] = 0;
u = (u = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), h = parseInt(u[2], 16), p = parseInt(u[1], 16) || 0, l[14] = h, l[15] = p, r(this._hash, l);
}, d.hash = function(l, i) {
return d.hashBinary(g(l), i);
}, d.hashBinary = function(l, i) {
var u = y(c(l));
return i ? E(u) : u;
}, d.ArrayBuffer = function() {
this.reset();
}, d.ArrayBuffer.prototype.append = function(l) {
var i, u = w(this._buff.buffer, l), h = u.length;
for (this._length += l.byteLength, i = 64; i <= h; i += 64) r(this._hash, o(u.subarray(i - 64, i)));
return this._buff = i - 64 < h ? new Uint8Array(u.buffer.slice(i - 64)) : new Uint8Array(0), this;
}, d.ArrayBuffer.prototype.end = function(l) {
var i, u, h = this._buff, p = h.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
for (i = 0; i < p; i += 1) f[i >> 2] |= h[i] << (i % 4 << 3);
return this._finish(f, p), u = y(this._hash), l && (u = E(u)), this.reset(), u;
}, d.ArrayBuffer.prototype.reset = function() {
return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
}, d.ArrayBuffer.prototype.getState = function() {
var l = d.prototype.getState.call(this);
return l.buff = b(l.buff), l;
}, d.ArrayBuffer.prototype.setState = function(l) {
return l.buff = s(l.buff, !0), d.prototype.setState.call(this, l);
}, d.ArrayBuffer.prototype.destroy = d.prototype.destroy, d.ArrayBuffer.prototype._finish = d.prototype._finish, d.ArrayBuffer.hash = function(l, i) {
var u = y(a(new Uint8Array(l)));
return i ? E(u) : u;
}, d;
}();
const gn = mt(or.exports);
export {
pn as M,
dn as N,
gn as S,
N as a,
hn as b,
$t as s
};