@konnec/vue-eloquent
Version:
An interface for Vue and Laravel Eloquent through API
1,828 lines • 224 kB
JavaScript
var xu = Object.defineProperty;
var ku = (e, t, r) => t in e ? xu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var A = (e, t, r) => ku(e, typeof t != "symbol" ? t + "" : t, r);
import { getCurrentInstance as Lu, ref as te, onBeforeMount as Fu, watch as Be, isRef as pn, reactive as H, onBeforeUnmount as ho, computed as x, unref as P, isReactive as Nu, isReadonly as Uu, inject as ss, provide as as, nextTick as _n } from "vue";
let pe;
function gp(e) {
if (!e) throw new Error("Client is required when creating Broadcast");
pe = e;
}
var Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Ke(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var At, is;
function Te() {
if (is) return At;
is = 1;
var e = Array.isArray;
return At = e, At;
}
var Rt, os;
function po() {
if (os) return Rt;
os = 1;
var e = typeof Je == "object" && Je && Je.Object === Object && Je;
return Rt = e, Rt;
}
var Tt, us;
function ot() {
if (us) return Tt;
us = 1;
var e = po(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
return Tt = r, Tt;
}
var Ct, ls;
function Ln() {
if (ls) return Ct;
ls = 1;
var e = ot(), t = e.Symbol;
return Ct = t, Ct;
}
var Dt, cs;
function Vu() {
if (cs) return Dt;
cs = 1;
var e = Ln(), t = Object.prototype, r = t.hasOwnProperty, n = t.toString, s = e ? e.toStringTag : void 0;
function a(i) {
var o = r.call(i, s), l = i[s];
try {
i[s] = void 0;
var u = !0;
} catch {
}
var f = n.call(i);
return u && (o ? i[s] = l : delete i[s]), f;
}
return Dt = a, Dt;
}
var Pt, ds;
function Bu() {
if (ds) return Pt;
ds = 1;
var e = Object.prototype, t = e.toString;
function r(n) {
return t.call(n);
}
return Pt = r, Pt;
}
var It, fs;
function ut() {
if (fs) return It;
fs = 1;
var e = Ln(), t = Vu(), r = Bu(), n = "[object Null]", s = "[object Undefined]", a = e ? e.toStringTag : void 0;
function i(o) {
return o == null ? o === void 0 ? s : n : a && a in Object(o) ? t(o) : r(o);
}
return It = i, It;
}
var xt, hs;
function lt() {
if (hs) return xt;
hs = 1;
function e(t) {
return t != null && typeof t == "object";
}
return xt = e, xt;
}
var kt, ps;
function Fn() {
if (ps) return kt;
ps = 1;
var e = ut(), t = lt(), r = "[object Symbol]";
function n(s) {
return typeof s == "symbol" || t(s) && e(s) == r;
}
return kt = n, kt;
}
var Lt, _s;
function $u() {
if (_s) return Lt;
_s = 1;
var e = Te(), t = Fn(), r = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
function s(a, i) {
if (e(a))
return !1;
var o = typeof a;
return o == "number" || o == "symbol" || o == "boolean" || a == null || t(a) ? !0 : n.test(a) || !r.test(a) || i != null && a in Object(i);
}
return Lt = s, Lt;
}
var Ft, gs;
function Nn() {
if (gs) return Ft;
gs = 1;
function e(t) {
var r = typeof t;
return t != null && (r == "object" || r == "function");
}
return Ft = e, Ft;
}
var Nt, ms;
function _o() {
if (ms) return Nt;
ms = 1;
var e = ut(), t = Nn(), r = "[object AsyncFunction]", n = "[object Function]", s = "[object GeneratorFunction]", a = "[object Proxy]";
function i(o) {
if (!t(o))
return !1;
var l = e(o);
return l == n || l == s || l == r || l == a;
}
return Nt = i, Nt;
}
var Ut, Es;
function qu() {
if (Es) return Ut;
Es = 1;
var e = ot(), t = e["__core-js_shared__"];
return Ut = t, Ut;
}
var Vt, vs;
function Mu() {
if (vs) return Vt;
vs = 1;
var e = qu(), t = function() {
var n = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
return n ? "Symbol(src)_1." + n : "";
}();
function r(n) {
return !!t && t in n;
}
return Vt = r, Vt;
}
var Bt, ys;
function ju() {
if (ys) return Bt;
ys = 1;
var e = Function.prototype, t = e.toString;
function r(n) {
if (n != null) {
try {
return t.call(n);
} catch {
}
try {
return n + "";
} catch {
}
}
return "";
}
return Bt = r, Bt;
}
var $t, bs;
function Hu() {
if (bs) return $t;
bs = 1;
var e = _o(), t = Mu(), r = Nn(), n = ju(), s = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, i = Function.prototype, o = Object.prototype, l = i.toString, u = o.hasOwnProperty, f = RegExp(
"^" + l.call(u).replace(s, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function d(E) {
if (!r(E) || t(E))
return !1;
var _ = e(E) ? f : a;
return _.test(n(E));
}
return $t = d, $t;
}
var qt, Ss;
function Ku() {
if (Ss) return qt;
Ss = 1;
function e(t, r) {
return t == null ? void 0 : t[r];
}
return qt = e, qt;
}
var Mt, ws;
function Un() {
if (ws) return Mt;
ws = 1;
var e = Hu(), t = Ku();
function r(n, s) {
var a = t(n, s);
return e(a) ? a : void 0;
}
return Mt = r, Mt;
}
var jt, Os;
function ct() {
if (Os) return jt;
Os = 1;
var e = Un(), t = e(Object, "create");
return jt = t, jt;
}
var Ht, As;
function zu() {
if (As) return Ht;
As = 1;
var e = ct();
function t() {
this.__data__ = e ? e(null) : {}, this.size = 0;
}
return Ht = t, Ht;
}
var Kt, Rs;
function Gu() {
if (Rs) return Kt;
Rs = 1;
function e(t) {
var r = this.has(t) && delete this.__data__[t];
return this.size -= r ? 1 : 0, r;
}
return Kt = e, Kt;
}
var zt, Ts;
function Wu() {
if (Ts) return zt;
Ts = 1;
var e = ct(), t = "__lodash_hash_undefined__", r = Object.prototype, n = r.hasOwnProperty;
function s(a) {
var i = this.__data__;
if (e) {
var o = i[a];
return o === t ? void 0 : o;
}
return n.call(i, a) ? i[a] : void 0;
}
return zt = s, zt;
}
var Gt, Cs;
function Ju() {
if (Cs) return Gt;
Cs = 1;
var e = ct(), t = Object.prototype, r = t.hasOwnProperty;
function n(s) {
var a = this.__data__;
return e ? a[s] !== void 0 : r.call(a, s);
}
return Gt = n, Gt;
}
var Wt, Ds;
function Yu() {
if (Ds) return Wt;
Ds = 1;
var e = ct(), t = "__lodash_hash_undefined__";
function r(n, s) {
var a = this.__data__;
return this.size += this.has(n) ? 0 : 1, a[n] = e && s === void 0 ? t : s, this;
}
return Wt = r, Wt;
}
var Jt, Ps;
function Xu() {
if (Ps) return Jt;
Ps = 1;
var e = zu(), t = Gu(), r = Wu(), n = Ju(), s = Yu();
function a(i) {
var o = -1, l = i == null ? 0 : i.length;
for (this.clear(); ++o < l; ) {
var u = i[o];
this.set(u[0], u[1]);
}
}
return a.prototype.clear = e, a.prototype.delete = t, a.prototype.get = r, a.prototype.has = n, a.prototype.set = s, Jt = a, Jt;
}
var Yt, Is;
function Zu() {
if (Is) return Yt;
Is = 1;
function e() {
this.__data__ = [], this.size = 0;
}
return Yt = e, Yt;
}
var Xt, xs;
function go() {
if (xs) return Xt;
xs = 1;
function e(t, r) {
return t === r || t !== t && r !== r;
}
return Xt = e, Xt;
}
var Zt, ks;
function dt() {
if (ks) return Zt;
ks = 1;
var e = go();
function t(r, n) {
for (var s = r.length; s--; )
if (e(r[s][0], n))
return s;
return -1;
}
return Zt = t, Zt;
}
var Qt, Ls;
function Qu() {
if (Ls) return Qt;
Ls = 1;
var e = dt(), t = Array.prototype, r = t.splice;
function n(s) {
var a = this.__data__, i = e(a, s);
if (i < 0)
return !1;
var o = a.length - 1;
return i == o ? a.pop() : r.call(a, i, 1), --this.size, !0;
}
return Qt = n, Qt;
}
var er, Fs;
function el() {
if (Fs) return er;
Fs = 1;
var e = dt();
function t(r) {
var n = this.__data__, s = e(n, r);
return s < 0 ? void 0 : n[s][1];
}
return er = t, er;
}
var tr, Ns;
function tl() {
if (Ns) return tr;
Ns = 1;
var e = dt();
function t(r) {
return e(this.__data__, r) > -1;
}
return tr = t, tr;
}
var rr, Us;
function rl() {
if (Us) return rr;
Us = 1;
var e = dt();
function t(r, n) {
var s = this.__data__, a = e(s, r);
return a < 0 ? (++this.size, s.push([r, n])) : s[a][1] = n, this;
}
return rr = t, rr;
}
var nr, Vs;
function nl() {
if (Vs) return nr;
Vs = 1;
var e = Zu(), t = Qu(), r = el(), n = tl(), s = rl();
function a(i) {
var o = -1, l = i == null ? 0 : i.length;
for (this.clear(); ++o < l; ) {
var u = i[o];
this.set(u[0], u[1]);
}
}
return a.prototype.clear = e, a.prototype.delete = t, a.prototype.get = r, a.prototype.has = n, a.prototype.set = s, nr = a, nr;
}
var sr, Bs;
function sl() {
if (Bs) return sr;
Bs = 1;
var e = Un(), t = ot(), r = e(t, "Map");
return sr = r, sr;
}
var ar, $s;
function al() {
if ($s) return ar;
$s = 1;
var e = Xu(), t = nl(), r = sl();
function n() {
this.size = 0, this.__data__ = {
hash: new e(),
map: new (r || t)(),
string: new e()
};
}
return ar = n, ar;
}
var ir, qs;
function il() {
if (qs) return ir;
qs = 1;
function e(t) {
var r = typeof t;
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? t !== "__proto__" : t === null;
}
return ir = e, ir;
}
var or, Ms;
function ft() {
if (Ms) return or;
Ms = 1;
var e = il();
function t(r, n) {
var s = r.__data__;
return e(n) ? s[typeof n == "string" ? "string" : "hash"] : s.map;
}
return or = t, or;
}
var ur, js;
function ol() {
if (js) return ur;
js = 1;
var e = ft();
function t(r) {
var n = e(this, r).delete(r);
return this.size -= n ? 1 : 0, n;
}
return ur = t, ur;
}
var lr, Hs;
function ul() {
if (Hs) return lr;
Hs = 1;
var e = ft();
function t(r) {
return e(this, r).get(r);
}
return lr = t, lr;
}
var cr, Ks;
function ll() {
if (Ks) return cr;
Ks = 1;
var e = ft();
function t(r) {
return e(this, r).has(r);
}
return cr = t, cr;
}
var dr, zs;
function cl() {
if (zs) return dr;
zs = 1;
var e = ft();
function t(r, n) {
var s = e(this, r), a = s.size;
return s.set(r, n), this.size += s.size == a ? 0 : 1, this;
}
return dr = t, dr;
}
var fr, Gs;
function dl() {
if (Gs) return fr;
Gs = 1;
var e = al(), t = ol(), r = ul(), n = ll(), s = cl();
function a(i) {
var o = -1, l = i == null ? 0 : i.length;
for (this.clear(); ++o < l; ) {
var u = i[o];
this.set(u[0], u[1]);
}
}
return a.prototype.clear = e, a.prototype.delete = t, a.prototype.get = r, a.prototype.has = n, a.prototype.set = s, fr = a, fr;
}
var hr, Ws;
function fl() {
if (Ws) return hr;
Ws = 1;
var e = dl(), t = "Expected a function";
function r(n, s) {
if (typeof n != "function" || s != null && typeof s != "function")
throw new TypeError(t);
var a = function() {
var i = arguments, o = s ? s.apply(this, i) : i[0], l = a.cache;
if (l.has(o))
return l.get(o);
var u = n.apply(this, i);
return a.cache = l.set(o, u) || l, u;
};
return a.cache = new (r.Cache || e)(), a;
}
return r.Cache = e, hr = r, hr;
}
var pr, Js;
function hl() {
if (Js) return pr;
Js = 1;
var e = fl(), t = 500;
function r(n) {
var s = e(n, function(i) {
return a.size === t && a.clear(), i;
}), a = s.cache;
return s;
}
return pr = r, pr;
}
var _r, Ys;
function pl() {
if (Ys) return _r;
Ys = 1;
var e = hl(), t = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, r = /\\(\\)?/g, n = e(function(s) {
var a = [];
return s.charCodeAt(0) === 46 && a.push(""), s.replace(t, function(i, o, l, u) {
a.push(l ? u.replace(r, "$1") : o || i);
}), a;
});
return _r = n, _r;
}
var gr, Xs;
function _l() {
if (Xs) return gr;
Xs = 1;
function e(t, r) {
for (var n = -1, s = t == null ? 0 : t.length, a = Array(s); ++n < s; )
a[n] = r(t[n], n, t);
return a;
}
return gr = e, gr;
}
var mr, Zs;
function gl() {
if (Zs) return mr;
Zs = 1;
var e = Ln(), t = _l(), r = Te(), n = Fn(), s = 1 / 0, a = e ? e.prototype : void 0, i = a ? a.toString : void 0;
function o(l) {
if (typeof l == "string")
return l;
if (r(l))
return t(l, o) + "";
if (n(l))
return i ? i.call(l) : "";
var u = l + "";
return u == "0" && 1 / l == -s ? "-0" : u;
}
return mr = o, mr;
}
var Er, Qs;
function ml() {
if (Qs) return Er;
Qs = 1;
var e = gl();
function t(r) {
return r == null ? "" : e(r);
}
return Er = t, Er;
}
var vr, ea;
function Vn() {
if (ea) return vr;
ea = 1;
var e = Te(), t = $u(), r = pl(), n = ml();
function s(a, i) {
return e(a) ? a : t(a, i) ? [a] : r(n(a));
}
return vr = s, vr;
}
var yr, ta;
function Bn() {
if (ta) return yr;
ta = 1;
var e = Fn(), t = 1 / 0;
function r(n) {
if (typeof n == "string" || e(n))
return n;
var s = n + "";
return s == "0" && 1 / n == -t ? "-0" : s;
}
return yr = r, yr;
}
var br, ra;
function El() {
if (ra) return br;
ra = 1;
var e = Vn(), t = Bn();
function r(n, s) {
s = e(s, n);
for (var a = 0, i = s.length; n != null && a < i; )
n = n[t(s[a++])];
return a && a == i ? n : void 0;
}
return br = r, br;
}
var Sr, na;
function vl() {
if (na) return Sr;
na = 1;
var e = El();
function t(r, n, s) {
var a = r == null ? void 0 : e(r, n);
return a === void 0 ? s : a;
}
return Sr = t, Sr;
}
var yl = vl();
const bl = /* @__PURE__ */ Ke(yl);
var wr, sa;
function Sl() {
if (sa) return wr;
sa = 1;
var e = Object.prototype, t = e.hasOwnProperty;
function r(n, s) {
return n != null && t.call(n, s);
}
return wr = r, wr;
}
var Or, aa;
function wl() {
if (aa) return Or;
aa = 1;
var e = ut(), t = lt(), r = "[object Arguments]";
function n(s) {
return t(s) && e(s) == r;
}
return Or = n, Or;
}
var Ar, ia;
function mo() {
if (ia) return Ar;
ia = 1;
var e = wl(), t = lt(), r = Object.prototype, n = r.hasOwnProperty, s = r.propertyIsEnumerable, a = e(/* @__PURE__ */ function() {
return arguments;
}()) ? e : function(i) {
return t(i) && n.call(i, "callee") && !s.call(i, "callee");
};
return Ar = a, Ar;
}
var Rr, oa;
function $n() {
if (oa) return Rr;
oa = 1;
var e = 9007199254740991, t = /^(?:0|[1-9]\d*)$/;
function r(n, s) {
var a = typeof n;
return s = s ?? e, !!s && (a == "number" || a != "symbol" && t.test(n)) && n > -1 && n % 1 == 0 && n < s;
}
return Rr = r, Rr;
}
var Tr, ua;
function qn() {
if (ua) return Tr;
ua = 1;
var e = 9007199254740991;
function t(r) {
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= e;
}
return Tr = t, Tr;
}
var Cr, la;
function Ol() {
if (la) return Cr;
la = 1;
var e = Vn(), t = mo(), r = Te(), n = $n(), s = qn(), a = Bn();
function i(o, l, u) {
l = e(l, o);
for (var f = -1, d = l.length, E = !1; ++f < d; ) {
var _ = a(l[f]);
if (!(E = o != null && u(o, _)))
break;
o = o[_];
}
return E || ++f != d ? E : (d = o == null ? 0 : o.length, !!d && s(d) && n(_, d) && (r(o) || t(o)));
}
return Cr = i, Cr;
}
var Dr, ca;
function Al() {
if (ca) return Dr;
ca = 1;
var e = Sl(), t = Ol();
function r(n, s) {
return n != null && t(n, s, e);
}
return Dr = r, Dr;
}
var Rl = Al();
const Tl = /* @__PURE__ */ Ke(Rl);
var Pr, da;
function Cl() {
if (da) return Pr;
da = 1;
var e = Un(), t = function() {
try {
var r = e(Object, "defineProperty");
return r({}, "", {}), r;
} catch {
}
}();
return Pr = t, Pr;
}
var Ir, fa;
function Dl() {
if (fa) return Ir;
fa = 1;
var e = Cl();
function t(r, n, s) {
n == "__proto__" && e ? e(r, n, {
configurable: !0,
enumerable: !0,
value: s,
writable: !0
}) : r[n] = s;
}
return Ir = t, Ir;
}
var xr, ha;
function Pl() {
if (ha) return xr;
ha = 1;
var e = Dl(), t = go(), r = Object.prototype, n = r.hasOwnProperty;
function s(a, i, o) {
var l = a[i];
(!(n.call(a, i) && t(l, o)) || o === void 0 && !(i in a)) && e(a, i, o);
}
return xr = s, xr;
}
var kr, pa;
function Il() {
if (pa) return kr;
pa = 1;
var e = Pl(), t = Vn(), r = $n(), n = Nn(), s = Bn();
function a(i, o, l, u) {
if (!n(i))
return i;
o = t(o, i);
for (var f = -1, d = o.length, E = d - 1, _ = i; _ != null && ++f < d; ) {
var c = s(o[f]), g = l;
if (c === "__proto__" || c === "constructor" || c === "prototype")
return i;
if (f != E) {
var h = _[c];
g = u ? u(h, c, _) : void 0, g === void 0 && (g = n(h) ? h : r(o[f + 1]) ? [] : {});
}
e(_, c, g), _ = _[c];
}
return i;
}
return kr = a, kr;
}
var Lr, _a;
function xl() {
if (_a) return Lr;
_a = 1;
var e = Il();
function t(r, n, s) {
return r == null ? r : e(r, n, s);
}
return Lr = t, Lr;
}
var kl = xl();
const Ll = /* @__PURE__ */ Ke(kl), ga = (e, t) => (t.forEach((r) => {
const s = r.split(".").join(".");
if (Tl(e, s)) {
const a = bl(e, s);
a && Ll(e, s, new Date(a));
}
}), e), Fl = (e, t) => typeof e < "u" ? typeof e.length > "u" ? (e = ga(e, t), e) : (e.forEach((r) => {
ga(r, t);
}), e) : e;
function Eo(e, t) {
return function() {
return e.apply(t, arguments);
};
}
const { toString: Nl } = Object.prototype, { getPrototypeOf: Mn } = Object, ht = /* @__PURE__ */ ((e) => (t) => {
const r = Nl.call(t);
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), ae = (e) => (e = e.toLowerCase(), (t) => ht(t) === e), pt = (e) => (t) => typeof t === e, { isArray: Ce } = Array, $e = pt("undefined");
function Ul(e) {
return e !== null && !$e(e) && e.constructor !== null && !$e(e.constructor) && Z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const vo = ae("ArrayBuffer");
function Vl(e) {
let t;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && vo(e.buffer), t;
}
const Bl = pt("string"), Z = pt("function"), yo = pt("number"), _t = (e) => e !== null && typeof e == "object", $l = (e) => e === !0 || e === !1, Xe = (e) => {
if (ht(e) !== "object")
return !1;
const t = Mn(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}, ql = ae("Date"), Ml = ae("File"), jl = ae("Blob"), Hl = ae("FileList"), Kl = (e) => _t(e) && Z(e.pipe), zl = (e) => {
let t;
return e && (typeof FormData == "function" && e instanceof FormData || Z(e.append) && ((t = ht(e)) === "formdata" || // detect form-data instance
t === "object" && Z(e.toString) && e.toString() === "[object FormData]"));
}, Gl = ae("URLSearchParams"), [Wl, Jl, Yl, Xl] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Zl = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function ze(e, t, { allOwnKeys: r = !1 } = {}) {
if (e === null || typeof e > "u")
return;
let n, s;
if (typeof e != "object" && (e = [e]), Ce(e))
for (n = 0, s = e.length; n < s; n++)
t.call(null, e[n], n, e);
else {
const a = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length;
let o;
for (n = 0; n < i; n++)
o = a[n], t.call(null, e[o], o, e);
}
}
function bo(e, t) {
t = t.toLowerCase();
const r = Object.keys(e);
let n = r.length, s;
for (; n-- > 0; )
if (s = r[n], t === s.toLowerCase())
return s;
return null;
}
const _e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, So = (e) => !$e(e) && e !== _e;
function gn() {
const { caseless: e } = So(this) && this || {}, t = {}, r = (n, s) => {
const a = e && bo(t, s) || s;
Xe(t[a]) && Xe(n) ? t[a] = gn(t[a], n) : Xe(n) ? t[a] = gn({}, n) : Ce(n) ? t[a] = n.slice() : t[a] = n;
};
for (let n = 0, s = arguments.length; n < s; n++)
arguments[n] && ze(arguments[n], r);
return t;
}
const Ql = (e, t, r, { allOwnKeys: n } = {}) => (ze(t, (s, a) => {
r && Z(s) ? e[a] = Eo(s, r) : e[a] = s;
}, { allOwnKeys: n }), e), ec = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), tc = (e, t, r, n) => {
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
value: t.prototype
}), r && Object.assign(e.prototype, r);
}, rc = (e, t, r, n) => {
let s, a, i;
const o = {};
if (t = t || {}, e == null) return t;
do {
for (s = Object.getOwnPropertyNames(e), a = s.length; a-- > 0; )
i = s[a], (!n || n(i, e, t)) && !o[i] && (t[i] = e[i], o[i] = !0);
e = r !== !1 && Mn(e);
} while (e && (!r || r(e, t)) && e !== Object.prototype);
return t;
}, nc = (e, t, r) => {
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
const n = e.indexOf(t, r);
return n !== -1 && n === r;
}, sc = (e) => {
if (!e) return null;
if (Ce(e)) return e;
let t = e.length;
if (!yo(t)) return null;
const r = new Array(t);
for (; t-- > 0; )
r[t] = e[t];
return r;
}, ac = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Mn(Uint8Array)), ic = (e, t) => {
const n = (e && e[Symbol.iterator]).call(e);
let s;
for (; (s = n.next()) && !s.done; ) {
const a = s.value;
t.call(e, a[0], a[1]);
}
}, oc = (e, t) => {
let r;
const n = [];
for (; (r = e.exec(t)) !== null; )
n.push(r);
return n;
}, uc = ae("HTMLFormElement"), lc = (e) => e.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(r, n, s) {
return n.toUpperCase() + s;
}
), ma = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), cc = ae("RegExp"), wo = (e, t) => {
const r = Object.getOwnPropertyDescriptors(e), n = {};
ze(r, (s, a) => {
let i;
(i = t(s, a, e)) !== !1 && (n[a] = i || s);
}), Object.defineProperties(e, n);
}, dc = (e) => {
wo(e, (t, r) => {
if (Z(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
return !1;
const n = e[r];
if (Z(n)) {
if (t.enumerable = !1, "writable" in t) {
t.writable = !1;
return;
}
t.set || (t.set = () => {
throw Error("Can not rewrite read-only method '" + r + "'");
});
}
});
}, fc = (e, t) => {
const r = {}, n = (s) => {
s.forEach((a) => {
r[a] = !0;
});
};
return Ce(e) ? n(e) : n(String(e).split(t)), r;
}, hc = () => {
}, pc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Fr = "abcdefghijklmnopqrstuvwxyz", Ea = "0123456789", Oo = {
DIGIT: Ea,
ALPHA: Fr,
ALPHA_DIGIT: Fr + Fr.toUpperCase() + Ea
}, _c = (e = 16, t = Oo.ALPHA_DIGIT) => {
let r = "";
const { length: n } = t;
for (; e--; )
r += t[Math.random() * n | 0];
return r;
};
function gc(e) {
return !!(e && Z(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
}
const mc = (e) => {
const t = new Array(10), r = (n, s) => {
if (_t(n)) {
if (t.indexOf(n) >= 0)
return;
if (!("toJSON" in n)) {
t[s] = n;
const a = Ce(n) ? [] : {};
return ze(n, (i, o) => {
const l = r(i, s + 1);
!$e(l) && (a[o] = l);
}), t[s] = void 0, a;
}
}
return n;
};
return r(e, 0);
}, Ec = ae("AsyncFunction"), vc = (e) => e && (_t(e) || Z(e)) && Z(e.then) && Z(e.catch), Ao = ((e, t) => e ? setImmediate : t ? ((r, n) => (_e.addEventListener("message", ({ source: s, data: a }) => {
s === _e && a === r && n.length && n.shift()();
}, !1), (s) => {
n.push(s), _e.postMessage(r, "*");
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
typeof setImmediate == "function",
Z(_e.postMessage)
), yc = typeof queueMicrotask < "u" ? queueMicrotask.bind(_e) : typeof process < "u" && process.nextTick || Ao, p = {
isArray: Ce,
isArrayBuffer: vo,
isBuffer: Ul,
isFormData: zl,
isArrayBufferView: Vl,
isString: Bl,
isNumber: yo,
isBoolean: $l,
isObject: _t,
isPlainObject: Xe,
isReadableStream: Wl,
isRequest: Jl,
isResponse: Yl,
isHeaders: Xl,
isUndefined: $e,
isDate: ql,
isFile: Ml,
isBlob: jl,
isRegExp: cc,
isFunction: Z,
isStream: Kl,
isURLSearchParams: Gl,
isTypedArray: ac,
isFileList: Hl,
forEach: ze,
merge: gn,
extend: Ql,
trim: Zl,
stripBOM: ec,
inherits: tc,
toFlatObject: rc,
kindOf: ht,
kindOfTest: ae,
endsWith: nc,
toArray: sc,
forEachEntry: ic,
matchAll: oc,
isHTMLForm: uc,
hasOwnProperty: ma,
hasOwnProp: ma,
// an alias to avoid ESLint no-prototype-builtins detection
reduceDescriptors: wo,
freezeMethods: dc,
toObjectSet: fc,
toCamelCase: lc,
noop: hc,
toFiniteNumber: pc,
findKey: bo,
global: _e,
isContextDefined: So,
ALPHABET: Oo,
generateString: _c,
isSpecCompliantForm: gc,
toJSONObject: mc,
isAsyncFn: Ec,
isThenable: vc,
setImmediate: Ao,
asap: yc
};
function w(e, t, r, n, s) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
}
p.inherits(w, 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: p.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const Ro = w.prototype, To = {};
[
"ERR_BAD_OPTION_VALUE",
"ERR_BAD_OPTION",
"ECONNABORTED",
"ETIMEDOUT",
"ERR_NETWORK",
"ERR_FR_TOO_MANY_REDIRECTS",
"ERR_DEPRECATED",
"ERR_BAD_RESPONSE",
"ERR_BAD_REQUEST",
"ERR_CANCELED",
"ERR_NOT_SUPPORT",
"ERR_INVALID_URL"
// eslint-disable-next-line func-names
].forEach((e) => {
To[e] = { value: e };
});
Object.defineProperties(w, To);
Object.defineProperty(Ro, "isAxiosError", { value: !0 });
w.from = (e, t, r, n, s, a) => {
const i = Object.create(Ro);
return p.toFlatObject(e, i, function(l) {
return l !== Error.prototype;
}, (o) => o !== "isAxiosError"), w.call(i, e.message, t, r, n, s), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
};
const bc = null;
function mn(e) {
return p.isPlainObject(e) || p.isArray(e);
}
function Co(e) {
return p.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function va(e, t, r) {
return e ? e.concat(t).map(function(s, a) {
return s = Co(s), !r && a ? "[" + s + "]" : s;
}).join(r ? "." : "") : t;
}
function Sc(e) {
return p.isArray(e) && !e.some(mn);
}
const wc = p.toFlatObject(p, {}, null, function(t) {
return /^is[A-Z]/.test(t);
});
function gt(e, t, r) {
if (!p.isObject(e))
throw new TypeError("target must be an object");
t = t || new FormData(), r = p.toFlatObject(r, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(g, h) {
return !p.isUndefined(h[g]);
});
const n = r.metaTokens, s = r.visitor || f, a = r.dots, i = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(t);
if (!p.isFunction(s))
throw new TypeError("visitor must be a function");
function u(c) {
if (c === null) return "";
if (p.isDate(c))
return c.toISOString();
if (!l && p.isBlob(c))
throw new w("Blob is not supported. Use a Buffer instead.");
return p.isArrayBuffer(c) || p.isTypedArray(c) ? l && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
}
function f(c, g, h) {
let m = c;
if (c && !h && typeof c == "object") {
if (p.endsWith(g, "{}"))
g = n ? g : g.slice(0, -2), c = JSON.stringify(c);
else if (p.isArray(c) && Sc(c) || (p.isFileList(c) || p.endsWith(g, "[]")) && (m = p.toArray(c)))
return g = Co(g), m.forEach(function(S, C) {
!(p.isUndefined(S) || S === null) && t.append(
// eslint-disable-next-line no-nested-ternary
i === !0 ? va([g], C, a) : i === null ? g : g + "[]",
u(S)
);
}), !1;
}
return mn(c) ? !0 : (t.append(va(h, g, a), u(c)), !1);
}
const d = [], E = Object.assign(wc, {
defaultVisitor: f,
convertValue: u,
isVisitable: mn
});
function _(c, g) {
if (!p.isUndefined(c)) {
if (d.indexOf(c) !== -1)
throw Error("Circular reference detected in " + g.join("."));
d.push(c), p.forEach(c, function(m, b) {
(!(p.isUndefined(m) || m === null) && s.call(
t,
m,
p.isString(b) ? b.trim() : b,
g,
E
)) === !0 && _(m, g ? g.concat(b) : [b]);
}), d.pop();
}
}
if (!p.isObject(e))
throw new TypeError("data must be an object");
return _(e), t;
}
function ya(e) {
const t = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
return t[n];
});
}
function jn(e, t) {
this._pairs = [], e && gt(e, this, t);
}
const Do = jn.prototype;
Do.append = function(t, r) {
this._pairs.push([t, r]);
};
Do.toString = function(t) {
const r = t ? function(n) {
return t.call(this, n, ya);
} : ya;
return this._pairs.map(function(s) {
return r(s[0]) + "=" + r(s[1]);
}, "").join("&");
};
function Oc(e) {
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function Po(e, t, r) {
if (!t)
return e;
const n = r && r.encode || Oc;
p.isFunction(r) && (r = {
serialize: r
});
const s = r && r.serialize;
let a;
if (s ? a = s(t, r) : a = p.isURLSearchParams(t) ? t.toString() : new jn(t, r).toString(n), a) {
const i = e.indexOf("#");
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
}
return e;
}
class ba {
constructor() {
this.handlers = [];
}
/**
* Add a new interceptor to the stack
*
* @param {Function} fulfilled The function to handle `then` for a `Promise`
* @param {Function} rejected The function to handle `reject` for a `Promise`
*
* @return {Number} An ID used to remove interceptor later
*/
use(t, r, n) {
return this.handlers.push({
fulfilled: t,
rejected: r,
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 {Boolean} `true` if the interceptor was removed, `false` otherwise
*/
eject(t) {
this.handlers[t] && (this.handlers[t] = null);
}
/**
* Clear all interceptors from the stack
*
* @returns {void}
*/
clear() {
this.handlers && (this.handlers = []);
}
/**
* Iterate over all the registered interceptors
*
* This method is particularly useful for skipping over any
* interceptors that may have become `null` calling `eject`.
*
* @param {Function} fn The function to call for each interceptor
*
* @returns {void}
*/
forEach(t) {
p.forEach(this.handlers, function(n) {
n !== null && t(n);
});
}
}
const Io = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, Ac = typeof URLSearchParams < "u" ? URLSearchParams : jn, Rc = typeof FormData < "u" ? FormData : null, Tc = typeof Blob < "u" ? Blob : null, Cc = {
isBrowser: !0,
classes: {
URLSearchParams: Ac,
FormData: Rc,
Blob: Tc
},
protocols: ["http", "https", "file", "blob", "url", "data"]
}, Hn = typeof window < "u" && typeof document < "u", En = typeof navigator == "object" && navigator || void 0, Dc = Hn && (!En || ["ReactNative", "NativeScript", "NS"].indexOf(En.product) < 0), Pc = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ic = Hn && window.location.href || "http://localhost", xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
hasBrowserEnv: Hn,
hasStandardBrowserEnv: Dc,
hasStandardBrowserWebWorkerEnv: Pc,
navigator: En,
origin: Ic
}, Symbol.toStringTag, { value: "Module" })), z = {
...xc,
...Cc
};
function kc(e, t) {
return gt(e, new z.classes.URLSearchParams(), Object.assign({
visitor: function(r, n, s, a) {
return z.isNode && p.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
}
}, t));
}
function Lc(e) {
return p.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function Fc(e) {
const t = {}, r = Object.keys(e);
let n;
const s = r.length;
let a;
for (n = 0; n < s; n++)
a = r[n], t[a] = e[a];
return t;
}
function xo(e) {
function t(r, n, s, a) {
let i = r[a++];
if (i === "__proto__") return !0;
const o = Number.isFinite(+i), l = a >= r.length;
return i = !i && p.isArray(s) ? s.length : i, l ? (p.hasOwnProp(s, i) ? s[i] = [s[i], n] : s[i] = n, !o) : ((!s[i] || !p.isObject(s[i])) && (s[i] = []), t(r, n, s[i], a) && p.isArray(s[i]) && (s[i] = Fc(s[i])), !o);
}
if (p.isFormData(e) && p.isFunction(e.entries)) {
const r = {};
return p.forEachEntry(e, (n, s) => {
t(Lc(n), s, r, 0);
}), r;
}
return null;
}
function Nc(e, t, r) {
if (p.isString(e))
try {
return (t || JSON.parse)(e), p.trim(e);
} catch (n) {
if (n.name !== "SyntaxError")
throw n;
}
return (0, JSON.stringify)(e);
}
const Ge = {
transitional: Io,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(t, r) {
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, a = p.isObject(t);
if (a && p.isHTMLForm(t) && (t = new FormData(t)), p.isFormData(t))
return s ? JSON.stringify(xo(t)) : t;
if (p.isArrayBuffer(t) || p.isBuffer(t) || p.isStream(t) || p.isFile(t) || p.isBlob(t) || p.isReadableStream(t))
return t;
if (p.isArrayBufferView(t))
return t.buffer;
if (p.isURLSearchParams(t))
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
let o;
if (a) {
if (n.indexOf("application/x-www-form-urlencoded") > -1)
return kc(t, this.formSerializer).toString();
if ((o = p.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
const l = this.env && this.env.FormData;
return gt(
o ? { "files[]": t } : t,
l && new l(),
this.formSerializer
);
}
}
return a || s ? (r.setContentType("application/json", !1), Nc(t)) : t;
}],
transformResponse: [function(t) {
const r = this.transitional || Ge.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
if (p.isResponse(t) || p.isReadableStream(t))
return t;
if (t && p.isString(t) && (n && !this.responseType || s)) {
const i = !(r && r.silentJSONParsing) && s;
try {
return JSON.parse(t);
} catch (o) {
if (i)
throw o.name === "SyntaxError" ? w.from(o, w.ERR_BAD_RESPONSE, this, null, this.response) : o;
}
}
return t;
}],
/**
* 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: z.classes.FormData,
Blob: z.classes.Blob
},
validateStatus: function(t) {
return t >= 200 && t < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
}
}
};
p.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
Ge.headers[e] = {};
});
const Uc = p.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"
]), Vc = (e) => {
const t = {};
let r, n, s;
return e && e.split(`
`).forEach(function(i) {
s = i.indexOf(":"), r = i.substring(0, s).trim().toLowerCase(), n = i.substring(s + 1).trim(), !(!r || t[r] && Uc[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
}), t;
}, Sa = Symbol("internals");
function Le(e) {
return e && String(e).trim().toLowerCase();
}
function Ze(e) {
return e === !1 || e == null ? e : p.isArray(e) ? e.map(Ze) : String(e);
}
function Bc(e) {
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let n;
for (; n = r.exec(e); )
t[n[1]] = n[2];
return t;
}
const $c = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function Nr(e, t, r, n, s) {
if (p.isFunction(n))
return n.call(this, t, r);
if (s && (t = r), !!p.isString(t)) {
if (p.isString(n))
return t.indexOf(n) !== -1;
if (p.isRegExp(n))
return n.test(t);
}
}
function qc(e) {
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
}
function Mc(e, t) {
const r = p.toCamelCase(" " + t);
["get", "set", "has"].forEach((n) => {
Object.defineProperty(e, n + r, {
value: function(s, a, i) {
return this[n].call(this, t, s, a, i);
},
configurable: !0
});
});
}
class J {
constructor(t) {
t && this.set(t);
}
set(t, r, n) {
const s = this;
function a(o, l, u) {
const f = Le(l);
if (!f)
throw new Error("header name must be a non-empty string");
const d = p.findKey(s, f);
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || l] = Ze(o));
}
const i = (o, l) => p.forEach(o, (u, f) => a(u, f, l));
if (p.isPlainObject(t) || t instanceof this.constructor)
i(t, r);
else if (p.isString(t) && (t = t.trim()) && !$c(t))
i(Vc(t), r);
else if (p.isHeaders(t))
for (const [o, l] of t.entries())
a(l, o, n);
else
t != null && a(r, t, n);
return this;
}
get(t, r) {
if (t = Le(t), t) {
const n = p.findKey(this, t);
if (n) {
const s = this[n];
if (!r)
return s;
if (r === !0)
return Bc(s);
if (p.isFunction(r))
return r.call(this, s, n);
if (p.isRegExp(r))
return r.exec(s);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(t, r) {
if (t = Le(t), t) {
const n = p.findKey(this, t);
return !!(n && this[n] !== void 0 && (!r || Nr(this, this[n], n, r)));
}
return !1;
}
delete(t, r) {
const n = this;
let s = !1;
function a(i) {
if (i = Le(i), i) {
const o = p.findKey(n, i);
o && (!r || Nr(n, n[o], o, r)) && (delete n[o], s = !0);
}
}
return p.isArray(t) ? t.forEach(a) : a(t), s;
}
clear(t) {
const r = Object.keys(this);
let n = r.length, s = !1;
for (; n--; ) {
const a = r[n];
(!t || Nr(this, this[a], a, t, !0)) && (delete this[a], s = !0);
}
return s;
}
normalize(t) {
const r = this, n = {};
return p.forEach(this, (s, a) => {
const i = p.findKey(n, a);
if (i) {
r[i] = Ze(s), delete r[a];
return;
}
const o = t ? qc(a) : String(a).trim();
o !== a && delete r[a], r[o] = Ze(s), n[o] = !0;
}), this;
}
concat(...t) {
return this.constructor.concat(this, ...t);
}
toJSON(t) {
const r = /* @__PURE__ */ Object.create(null);
return p.forEach(this, (n, s) => {
n != null && n !== !1 && (r[s] = t && p.isArray(n) ? n.join(", ") : n);
}), r;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
`);
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(t) {
return t instanceof this ? t : new this(t);
}
static concat(t, ...r) {
const n = new this(t);
return r.forEach((s) => n.set(s)), n;
}
static accessor(t) {
const n = (this[Sa] = this[Sa] = {
accessors: {}
}).accessors, s = this.prototype;
function a(i) {
const o = Le(i);
n[o] || (Mc(s, i), n[o] = !0);
}
return p.isArray(t) ? t.forEach(a) : a(t), this;
}
}
J.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
p.reduceDescriptors(J.prototype, ({ value: e }, t) => {
let r = t[0].toUpperCase() + t.slice(1);
return {
get: () => e,
set(n) {
this[r] = n;
}
};
});
p.freezeMethods(J);
function Ur(e, t) {
const r = this || Ge, n = t || r, s = J.from(n.headers);
let a = n.data;
return p.forEach(e, function(o) {
a = o.call(r, a, s.normalize(), t ? t.status : void 0);
}), s.normalize(), a;
}
function ko(e) {
return !!(e && e.__CANCEL__);
}
function De(e, t, r) {
w.call(this, e ?? "canceled", w.ERR_CANCELED, t, r), this.name = "CanceledError";
}
p.inherits(De, w, {
__CANCEL__: !0
});
function Lo(e, t, r) {
const n = r.config.validateStatus;
!r.status || !n || n(r.status) ? e(r) : t(new w(
"Request failed with status code " + r.status,
[w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
r.config,
r.request,
r
));
}
function jc(e) {
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
return t && t[1] || "";
}
function Hc(e, t) {
e = e || 10;
const r = new Array(e), n = new Array(e);
let s = 0, a = 0, i;
return t = t !== void 0 ? t : 1e3, function(l) {
const u = Date.now(), f = n[a];
i || (i = u), r[s] = l, n[s] = u;
let d = a, E = 0;
for (; d !== s; )
E += r[d++], d = d % e;
if (s = (s + 1) % e, s === a && (a = (a + 1) % e), u - i < t)
return;
const _ = f && u - f;
return _ ? Math.round(E * 1e3 / _) : void 0;
};
}
function Kc(e, t) {
let r = 0, n = 1e3 / t, s, a;
const i = (u, f = Date.now()) => {
r = f, s = null, a && (clearTimeout(a), a = null), e.apply(null, u);
};
return [(...u) => {
const f = Date.now(), d = f - r;
d >= n ? i(u, f) : (s = u, a || (a = setTimeout(() => {
a = null, i(s);
}, n - d)));
}, () => s && i(s)];
}
const nt = (e, t, r = 3) => {
let n = 0;
const s = Hc(50, 250);
return Kc((a) => {
const i = a.loaded, o = a.lengthComputable ? a.total : void 0, l = i - n, u = s(l), f = i <= o;
n = i;
const d = {
loaded: i,
total: o,
progress: o ? i / o : void 0,
bytes: l,
rate: u || void 0,
estimated: u && o && f ? (o - i) / u : void 0,
event: a,
lengthComputable: o != null,
[t ? "download" : "upload"]: !0
};
e(d);
}, r);
}, wa = (e, t) => {
const r = e != null;
return [(n) => t[0]({
lengthComputable: r,
total: e,
loaded: n
}), t[1]];
}, Oa = (e) => (...t) => p.asap(() => e(...t)), zc = z.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, z.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
new URL(z.origin),
z.navigator && /(msie|trident)/i.test(z.navigator.userAgent)
) : () => !0, Gc = z.hasStandardBrowserEnv ? (
// Standard browser envs support document.cookie
{
write(e, t, r, n, s, a) {
const i = [e + "=" + encodeURIComponent(t)];
p.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), p.isString(n) && i.push("path=" + n), p.isString(s) && i.push("domain=" + s), a === !0 && i.push("secure"), document.cookie = i.join("; ");
},
read(e) {
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
return t ? decodeURIComponent(t[3]) : null;
},
remove(e) {
this.write(e, "", Date.now() - 864e5);
}
}
) : (
// Non-standard browser env (web workers, react-native) lack needed support.
{
write() {
},
read() {
return null;
},
remove() {
}
}
);
function Wc(e) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function Jc(e, t) {
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function Fo(e, t) {
return e && !Wc(t) ? Jc(e, t) : t;
}
const Aa = (e) => e instanceof J ? { ...e } : e;
function Ee(e, t) {
t = t || {};
const r = {};
function n(u, f, d, E) {
return p.isPlainObject(u) && p.isPlainObject(f) ? p.merge.call({ caseless: E }, u, f) : p.isPlainObject(f) ? p.merge({}, f) : p.isArray(f) ? f.slice() : f;
}
function s(u, f, d, E) {
if (p.isUndefined(f)) {
if (!p.isUndefined(u))
return n(void 0, u, d, E);
} else return n(u, f, d, E);
}
function a(u, f) {
if (!p.isUndefined(f))
return n(void 0, f);
}
function i(u, f) {
if (p.isUndefined(f)) {
if (!p.isUndefined(u))
return n(void 0, u);
} else return n(void 0, f);
}
function o(u, f, d) {
if (d in t)
return n(u, f);
if (d in e)
return n(void 0, u);
}
const l = {
url: a,
method: a,
data: a,
baseURL: i,
transformRequest: i,
transformResponse: i,
paramsSerializer: i,
timeout: i,
timeoutMessage: i,
withCredentials: i,
withXSRFToken: i,
adapter: i,
responseType: i,
xsrfCookieName: i,
xsrfHeaderName: i,
onUploadProgress: i,
onDownloadProgress: i,
decompress: i,
maxContentLength: i,
maxBodyLength: i,
beforeRedirect: i,
transport: i,
httpAgent: i,
httpsAgent: i,
cancelToken: i,
socketPath: i,
responseEncoding: i,
validateStatus: o,
headers: (u, f, d) => s(Aa(u), Aa(f), d, !0)
};
return p.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
const d = l[f] || s, E = d(e[f], t[f], f);
p.isUndefined(E) && d !== o || (r[f] = E);
}), r;
}
const No = (e) => {
const t = Ee({}, e);
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: a, headers: i, auth: o } = t;
t.headers = i = J.from(i), t.url = Po(Fo(t.baseURL, t.url), e.params, e.paramsSerializer), o && i.set(
"Authorization",
"Basic " + btoa((o.username || "") + ":" + (o.password ? unescape(encodeURIComponent(o.password)) : ""))
);
let l;
if (p.isFormData(r)) {
if (z.hasStandardBrowserEnv || z.hasStandardBrowserWebWorkerEnv)
i.setContentType(void 0);
else if ((l = i.getContentType()) !== !1) {
const [u, ...f] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
i.setContentType([u || "multipart/form-data", ...f].join("; "));
}
}
if (z.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(t)), n || n !== !1 && zc(t.url))) {
const u = s && a && Gc.read(a);
u && i.set(s, u);
}
return t;
}, Yc = typeof XMLHttpRequest < "u", Xc = Yc && function(e) {
return new Promise(function(r, n) {
const s = No(e);
let a = s.data;
const i = J.from(s.headers).normalize();
let { responseType: o, onUploadProgress: l, onDownloadProgress: u } = s, f, d, E, _, c;
function g() {
_ && _(), c && c(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
}
let h = new XMLHttpRequest();
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
function m() {
if (!h)
return;
const S = J.from(
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
), L = {
data: !o || o === "text" || o === "json" ? h.responseText : h.response,
status: h.status,
statusText: h.statusText,
headers: S,
config: e,
request: h
};
Lo(function(W) {
r(W), g();
}, function(W) {
n(W), g();
}, L), h = null;
}
"onloadend" in h ? h.onloadend = m : h.onreadystatechange = function() {
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(m);
}, h.onabort = function() {
h && (n(new w("Request aborted", w.ECONNABORTED, e, h)), h = null);
}, h.onerror = function() {
n(new w("Network Error", w.ERR_NETWORK, e, h)), h = null;
}, h.ontimeout = function() {
let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
const L = s.transitional || Io;
s.timeoutErrorMessage && (C = s.timeoutErrorMessage), n(new w(
C,
L.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
e,
h
)), h = null;
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(C, L) {
h.setRequestHeader(L, C);
}), p.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), o && o !== "json" && (h.responseType = s.responseType), u && ([E, c] = nt(u, !0), h.addEventListener("progress", E)), l && h.upload && ([d, _] = nt(l), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", _)), (s.cancelToken || s.signal) && (f = (S) => {
h && (n(!S || S.type ? new De(null, e, h) : S), h.abort(), h = null);
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
const b = jc(s.url);
if (b && z.protocols.indexOf(b) === -1) {
n(new w("Unsupported protocol " + b + ":", w.ERR_BAD_REQUEST, e));
return;
}
h.sen