@rainte/js 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +189 -186
- package/dist/index.umd.cjs +7 -7
- package/dist/types/src/hash/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Br = (r, i, u) =>
|
|
4
|
-
var
|
|
1
|
+
var Ps = Object.defineProperty;
|
|
2
|
+
var $s = (r, i, u) => i in r ? Ps(r, i, { enumerable: !0, configurable: !0, writable: !0, value: u }) : r[i] = u;
|
|
3
|
+
var Br = (r, i, u) => $s(r, typeof i != "symbol" ? i + "" : i, u);
|
|
4
|
+
var Ds = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Ct(r) {
|
|
6
6
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
7
|
}
|
|
8
|
-
var Bn = { exports: {} },
|
|
9
|
-
function
|
|
8
|
+
var Bn = { exports: {} }, Cs = Bn.exports, Fo;
|
|
9
|
+
function js() {
|
|
10
10
|
return Fo || (Fo = 1, function(r, i) {
|
|
11
11
|
(function(u, a) {
|
|
12
12
|
r.exports = a();
|
|
13
|
-
})(
|
|
13
|
+
})(Cs, function() {
|
|
14
14
|
var u = 1e3, a = 6e4, l = 36e5, d = "millisecond", h = "second", x = "minute", P = "hour", C = "day", D = "week", M = "month", ae = "quarter", ue = "year", N = "date", j = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, J = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, re = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(Q) {
|
|
15
15
|
var H = ["th", "st", "nd", "rd"], I = Q % 100;
|
|
16
16
|
return "[" + Q + (H[(I - 20) % 10] || H[I] || H[0]) + "]";
|
|
@@ -283,14 +283,14 @@ function $s() {
|
|
|
283
283
|
});
|
|
284
284
|
}(Bn)), Bn.exports;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
const nn = /* @__PURE__ */ Ct(
|
|
288
|
-
var Kn = { exports: {} },
|
|
289
|
-
function
|
|
286
|
+
var Ms = js();
|
|
287
|
+
const nn = /* @__PURE__ */ Ct(Ms);
|
|
288
|
+
var Kn = { exports: {} }, Ns = Kn.exports, Bo;
|
|
289
|
+
function qs() {
|
|
290
290
|
return Bo || (Bo = 1, function(r, i) {
|
|
291
291
|
(function(u, a) {
|
|
292
292
|
r.exports = a();
|
|
293
|
-
})(
|
|
293
|
+
})(Ns, function() {
|
|
294
294
|
var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, d = /\d\d/, h = /\d\d?/, x = /\d*[^-_:/,()\s\d]+/, P = {}, C = function(E) {
|
|
295
295
|
return (E = +E) + (E > 68 ? 1900 : 2e3);
|
|
296
296
|
}, D = function(E) {
|
|
@@ -408,14 +408,14 @@ function js() {
|
|
|
408
408
|
});
|
|
409
409
|
}(Kn)), Kn.exports;
|
|
410
410
|
}
|
|
411
|
-
var
|
|
412
|
-
const
|
|
413
|
-
var In = { exports: {} },
|
|
414
|
-
function
|
|
411
|
+
var Fs = qs();
|
|
412
|
+
const Bs = /* @__PURE__ */ Ct(Fs);
|
|
413
|
+
var In = { exports: {} }, Ks = In.exports, Ko;
|
|
414
|
+
function Is() {
|
|
415
415
|
return Ko || (Ko = 1, function(r, i) {
|
|
416
416
|
(function(u, a) {
|
|
417
417
|
r.exports = a();
|
|
418
|
-
})(
|
|
418
|
+
})(Ks, function() {
|
|
419
419
|
var u, a, l = 1e3, d = 6e4, h = 36e5, x = 864e5, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = 31536e6, D = 2628e6, M = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, ae = { years: C, months: D, days: x, hours: h, minutes: d, seconds: l, milliseconds: 1, weeks: 6048e5 }, ue = function(te) {
|
|
420
420
|
return te instanceof _e;
|
|
421
421
|
}, N = function(te, U, K) {
|
|
@@ -542,14 +542,14 @@ function Fs() {
|
|
|
542
542
|
});
|
|
543
543
|
}(In)), In.exports;
|
|
544
544
|
}
|
|
545
|
-
var
|
|
546
|
-
const
|
|
547
|
-
var Ln = { exports: {} },
|
|
548
|
-
function
|
|
545
|
+
var Ls = Is();
|
|
546
|
+
const Us = /* @__PURE__ */ Ct(Ls);
|
|
547
|
+
var Ln = { exports: {} }, Ys = Ln.exports, Io;
|
|
548
|
+
function Hs() {
|
|
549
549
|
return Io || (Io = 1, function(r, i) {
|
|
550
550
|
(function(u, a) {
|
|
551
551
|
r.exports = a();
|
|
552
|
-
})(
|
|
552
|
+
})(Ys, function() {
|
|
553
553
|
var u = "minute", a = /[+-]\d\d(?::?\d\d)?/g, l = /([+-]|\d\d)/g;
|
|
554
554
|
return function(d, h, x) {
|
|
555
555
|
var P = h.prototype;
|
|
@@ -620,11 +620,11 @@ function Ls() {
|
|
|
620
620
|
});
|
|
621
621
|
}(Ln)), Ln.exports;
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
const
|
|
625
|
-
nn.extend(
|
|
626
|
-
nn.extend(
|
|
627
|
-
nn.extend(
|
|
623
|
+
var zs = Hs();
|
|
624
|
+
const Vs = /* @__PURE__ */ Ct(zs);
|
|
625
|
+
nn.extend(Bs);
|
|
626
|
+
nn.extend(Us);
|
|
627
|
+
nn.extend(Vs);
|
|
628
628
|
const ui = {
|
|
629
629
|
DATETIME: "YYYY-MM-DD HH:mm:ss",
|
|
630
630
|
DATE: "YYYY-MM-DD",
|
|
@@ -633,21 +633,21 @@ const ui = {
|
|
|
633
633
|
MONTH: "YYYY-MM",
|
|
634
634
|
HOUR: "YYYY-MM-DD HH",
|
|
635
635
|
MINUTE: "YYYY-MM-DD HH:mm"
|
|
636
|
-
},
|
|
636
|
+
}, Ws = {
|
|
637
637
|
dayjs: nn,
|
|
638
638
|
FORMAT: ui
|
|
639
639
|
}, Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
640
640
|
__proto__: null,
|
|
641
641
|
FORMAT: ui,
|
|
642
642
|
dayjs: nn,
|
|
643
|
-
default:
|
|
643
|
+
default: Ws
|
|
644
644
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
645
|
-
var Un = { exports: {} },
|
|
646
|
-
function
|
|
645
|
+
var Un = { exports: {} }, Js = Un.exports, Lo;
|
|
646
|
+
function Gs() {
|
|
647
647
|
return Lo || (Lo = 1, function(r, i) {
|
|
648
648
|
(function(u, a) {
|
|
649
649
|
r.exports = a();
|
|
650
|
-
})(
|
|
650
|
+
})(Js, function() {
|
|
651
651
|
var u = function(e, t) {
|
|
652
652
|
return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
653
653
|
n.__proto__ = o;
|
|
@@ -664,7 +664,7 @@ function Vs() {
|
|
|
664
664
|
for (var o, s = 0, c = t.length; s < c; s++) !o && s in t || ((o = o || Array.prototype.slice.call(t, 0, s))[s] = t[s]);
|
|
665
665
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
666
666
|
}
|
|
667
|
-
var d = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window :
|
|
667
|
+
var d = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ds, h = Object.keys, x = Array.isArray;
|
|
668
668
|
function P(e, t) {
|
|
669
669
|
return typeof t != "object" || h(t).forEach(function(n) {
|
|
670
670
|
e[n] = t[n];
|
|
@@ -903,7 +903,7 @@ function Vs() {
|
|
|
903
903
|
var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
|
|
904
904
|
return [t, C(t), e];
|
|
905
905
|
}(), It = dt[0], Ge = dt[1], dt = dt[2], Ge = Ge && Ge.then, ht = It && It.constructor, or = !!dt, Lt = function(e, t) {
|
|
906
|
-
Ut.push([e, t]), cn && (queueMicrotask(
|
|
906
|
+
Ut.push([e, t]), cn && (queueMicrotask(ss), cn = !1);
|
|
907
907
|
}, ir = !0, cn = !0, pt = [], ln = [], sr = Ue, it = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: ye, pgp: !1, env: {}, finalize: ye }, oe = it, Ut = [], mt = 0, fn = [];
|
|
908
908
|
function W(e) {
|
|
909
909
|
if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
|
|
@@ -965,10 +965,10 @@ function Vs() {
|
|
|
965
965
|
if (e._state !== null) {
|
|
966
966
|
var n = e._state ? t.onFulfilled : t.onRejected;
|
|
967
967
|
if (n === null) return (e._state ? t.resolve : t.reject)(e._value);
|
|
968
|
-
++t.psd.ref, ++mt, Lt(
|
|
968
|
+
++t.psd.ref, ++mt, Lt(is, [n, e, t]);
|
|
969
969
|
} else e._listeners.push(t);
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function is(e, t, n) {
|
|
972
972
|
try {
|
|
973
973
|
var o, s = t._value;
|
|
974
974
|
!t._state && ln.length && (ln = []), o = Qe && t._consoleTask ? t._consoleTask.run(function() {
|
|
@@ -982,7 +982,7 @@ function Vs() {
|
|
|
982
982
|
--mt == 0 && lr(), --n.psd.ref || n.psd.finalize();
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function ss() {
|
|
986
986
|
yt(it, function() {
|
|
987
987
|
kt() && Tt();
|
|
988
988
|
});
|
|
@@ -1133,15 +1133,15 @@ function Vs() {
|
|
|
1133
1133
|
});
|
|
1134
1134
|
});
|
|
1135
1135
|
}), ht.withResolvers && (W.withResolvers = ht.withResolvers));
|
|
1136
|
-
var je = { awaits: 0, echoes: 0, id: 0 },
|
|
1136
|
+
var je = { awaits: 0, echoes: 0, id: 0 }, as = 0, hn = [], pn = 0, mn = 0, us = 0;
|
|
1137
1137
|
function st(e, t, n, o) {
|
|
1138
1138
|
var s = oe, c = Object.create(s);
|
|
1139
|
-
return c.parent = s, c.ref = 0, c.global = !1, c.id = ++
|
|
1139
|
+
return c.parent = s, c.ref = 0, c.global = !1, c.id = ++us, it.env, c.env = or ? { Promise: W, PromiseProp: { value: W, configurable: !0, writable: !0 }, all: W.all, race: W.race, allSettled: W.allSettled, any: W.any, resolve: W.resolve, reject: W.reject } : {}, t && P(c, t), ++s.ref, c.finalize = function() {
|
|
1140
1140
|
--this.parent.ref || this.parent.finalize();
|
|
1141
1141
|
}, o = yt(c, e, n, o), c.ref === 0 && c.finalize(), o;
|
|
1142
1142
|
}
|
|
1143
1143
|
function Rt() {
|
|
1144
|
-
return je.id || (je.id = ++
|
|
1144
|
+
return je.id || (je.id = ++as), ++je.awaits, je.echoes += io, je.id;
|
|
1145
1145
|
}
|
|
1146
1146
|
function at() {
|
|
1147
1147
|
return !!je.awaits && (--je.awaits == 0 && (je.id = 0), je.echoes = je.awaits * io, !0);
|
|
@@ -1153,7 +1153,7 @@ function Vs() {
|
|
|
1153
1153
|
return at(), Ae(t);
|
|
1154
1154
|
})) : e;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function cs() {
|
|
1157
1157
|
var e = hn[hn.length - 1];
|
|
1158
1158
|
hn.pop(), ut(e, !1);
|
|
1159
1159
|
}
|
|
@@ -1161,7 +1161,7 @@ function Vs() {
|
|
|
1161
1161
|
var n, o = oe;
|
|
1162
1162
|
(t ? !je.echoes || pn++ && e === oe : !pn || --pn && e === oe) || queueMicrotask(t ? (function(s) {
|
|
1163
1163
|
++mn, je.echoes && --je.echoes != 0 || (je.echoes = je.awaits = je.id = 0), hn.push(oe), ut(s, !0);
|
|
1164
|
-
}).bind(null, e) :
|
|
1164
|
+
}).bind(null, e) : cs), e !== oe && (oe = e, o === it && (it.env = uo()), or && (n = it.env.Promise, t = e.env, (o.global || e.global) && (Object.defineProperty(d, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
|
|
1165
1165
|
}
|
|
1166
1166
|
function uo() {
|
|
1167
1167
|
var e = d.Promise;
|
|
@@ -1642,7 +1642,7 @@ function Vs() {
|
|
|
1642
1642
|
function bo(e) {
|
|
1643
1643
|
this["@@propmod"] = e;
|
|
1644
1644
|
}
|
|
1645
|
-
var
|
|
1645
|
+
var ls = (Se.prototype._read = function(e, t) {
|
|
1646
1646
|
var n = this._ctx;
|
|
1647
1647
|
return n.error ? n.table._trans(null, Ae.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
|
|
1648
1648
|
}, Se.prototype._write = function(e) {
|
|
@@ -1876,10 +1876,10 @@ function Vs() {
|
|
|
1876
1876
|
var yr = function(e, t) {
|
|
1877
1877
|
return t.value = null;
|
|
1878
1878
|
};
|
|
1879
|
-
function
|
|
1879
|
+
function fs(e, t) {
|
|
1880
1880
|
return e < t ? -1 : e === t ? 0 : 1;
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function ds(e, t) {
|
|
1883
1883
|
return t < e ? -1 : e === t ? 0 : 1;
|
|
1884
1884
|
}
|
|
1885
1885
|
function ze(e, t, n) {
|
|
@@ -1904,7 +1904,7 @@ function Vs() {
|
|
|
1904
1904
|
return b.toLowerCase();
|
|
1905
1905
|
} : function(b) {
|
|
1906
1906
|
return b.toUpperCase();
|
|
1907
|
-
}, f = w === "next" ?
|
|
1907
|
+
}, f = w === "next" ? fs : ds;
|
|
1908
1908
|
var S = n.map(function(b) {
|
|
1909
1909
|
return { lower: c(b), upper: s(b) };
|
|
1910
1910
|
}).sort(function(b, k) {
|
|
@@ -2098,7 +2098,7 @@ function Vs() {
|
|
|
2098
2098
|
function Vt(e) {
|
|
2099
2099
|
e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
|
|
2100
2100
|
}
|
|
2101
|
-
var Wt = "storagemutated", vr = "x-storagemutated-1", lt = Yt(null, Wt),
|
|
2101
|
+
var Wt = "storagemutated", vr = "x-storagemutated-1", lt = Yt(null, Wt), hs = (et.prototype._lock = function() {
|
|
2102
2102
|
return _e(!oe.global), ++this._reculock, this._reculock !== 1 || oe.global || (oe.lockOwnerFor = this), this;
|
|
2103
2103
|
}, et.prototype._unlock = function() {
|
|
2104
2104
|
if (_e(!oe.global), --this._reculock == 0) for (oe.global || (oe.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
|
|
@@ -2225,11 +2225,11 @@ function Vs() {
|
|
|
2225
2225
|
function So(e) {
|
|
2226
2226
|
return [].slice.call(e);
|
|
2227
2227
|
}
|
|
2228
|
-
var
|
|
2228
|
+
var ps = 0;
|
|
2229
2229
|
function Gt(e) {
|
|
2230
2230
|
return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function ms(e, t, y) {
|
|
2233
2233
|
function o(b) {
|
|
2234
2234
|
if (b.type === 3) return null;
|
|
2235
2235
|
if (b.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
|
|
@@ -2307,7 +2307,7 @@ function Vs() {
|
|
|
2307
2307
|
var V = T.index, F = T.range, B = b.objectStore(w), B = V.isPrimaryKey ? B : B.index(V.name), V = R ? $ ? "prevunique" : "prev" : $ ? "nextunique" : "next", Y = !k && "openKeyCursor" in B ? B.openKeyCursor(o(F), V) : B.openCursor(o(F), V);
|
|
2308
2308
|
Y.onerror = Ze(z), Y.onsuccess = Te(function(X) {
|
|
2309
2309
|
var pe, ve, ge, Ve, he = Y.result;
|
|
2310
|
-
he ? (he.___id = ++
|
|
2310
|
+
he ? (he.___id = ++ps, he.done = !1, pe = he.continue.bind(he), ve = (ve = he.continuePrimaryKey) && ve.bind(he), ge = he.advance.bind(he), Ve = function() {
|
|
2311
2311
|
throw new Error("Cursor not stopped");
|
|
2312
2312
|
}, he.trans = b, he.stop = he.continue = he.continuePrimaryKey = he.advance = function() {
|
|
2313
2313
|
throw new Error("Cursor not started");
|
|
@@ -2370,14 +2370,14 @@ function Vs() {
|
|
|
2370
2370
|
return m[O];
|
|
2371
2371
|
}, MIN_KEY: -1 / 0, MAX_KEY: Jt(t), schema: y };
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function ys(e, t, n, o) {
|
|
2374
2374
|
var s = n.IDBKeyRange;
|
|
2375
|
-
return n.indexedDB, { dbcore: (o =
|
|
2375
|
+
return n.indexedDB, { dbcore: (o = ms(t, s, o), e.dbcore.reduce(function(c, f) {
|
|
2376
2376
|
return f = f.create, a(a({}, c), f(c));
|
|
2377
2377
|
}, o)) };
|
|
2378
2378
|
}
|
|
2379
2379
|
function xn(e, o) {
|
|
2380
|
-
var n = o.db, o =
|
|
2380
|
+
var n = o.db, o = ys(e._middlewares, n, e._deps, o);
|
|
2381
2381
|
e.core = o.dbcore, e.tables.forEach(function(s) {
|
|
2382
2382
|
var c = s.name;
|
|
2383
2383
|
e.core.schema.tables.some(function(f) {
|
|
@@ -2405,10 +2405,10 @@ function Vs() {
|
|
|
2405
2405
|
for (var o in n) n[o] instanceof e.Table && delete n[o];
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function vs(e, t) {
|
|
2409
2409
|
return e._cfg.version - t._cfg.version;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function gs(e, t, n, o) {
|
|
2412
2412
|
var s = e._dbSchema;
|
|
2413
2413
|
n.objectStoreNames.contains("$meta") && !s.$meta && (s.$meta = br("$meta", Eo("")[0], []), e._storeNames.push("$meta"));
|
|
2414
2414
|
var c = e._createTransaction("readwrite", e._storeNames, s);
|
|
@@ -2477,7 +2477,7 @@ function Vs() {
|
|
|
2477
2477
|
var y, g;
|
|
2478
2478
|
});
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function bs(e, t) {
|
|
2481
2481
|
Oo(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
|
|
2482
2482
|
var n = En(0, e.idbdb, t);
|
|
2483
2483
|
kn(e, e._dbSchema, t);
|
|
@@ -2554,7 +2554,7 @@ function Vs() {
|
|
|
2554
2554
|
return gr(o, s || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), x(s), n === 0);
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
|
-
var
|
|
2557
|
+
var ws = (Tn.prototype._parseStoresSpec = function(e, t) {
|
|
2558
2558
|
h(e).forEach(function(n) {
|
|
2559
2559
|
if (e[n] !== null) {
|
|
2560
2560
|
var o = Eo(e[n]), s = o.shift();
|
|
@@ -2715,7 +2715,7 @@ function Vs() {
|
|
|
2715
2715
|
e.queries.query[y] = g;
|
|
2716
2716
|
}
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2718
|
+
function _s(e) {
|
|
2719
2719
|
var t = e._state, n = e._deps.indexedDB;
|
|
2720
2720
|
if (t.isBeingOpened || e.idbdb) return t.dbReadyPromise.then(function() {
|
|
2721
2721
|
return t.dbOpenError ? Ae(t.dbOpenError) : e;
|
|
@@ -2734,7 +2734,7 @@ function Vs() {
|
|
|
2734
2734
|
var k;
|
|
2735
2735
|
_ = S.transaction, t.autoSchema && !e._options.allowEmptyDB ? (S.onerror = Vt, _.abort(), S.result.close(), (k = n.deleteDatabase(w)).onsuccess = k.onerror = Te(function() {
|
|
2736
2736
|
v(new Z.NoSuchDatabase("Database ".concat(w, " doesnt exist")));
|
|
2737
|
-
})) : (_.onerror = Ze(v), b = b.oldVersion > Math.pow(2, 62) ? 0 : b.oldVersion, m = b < 1, e.idbdb = S.result, c &&
|
|
2737
|
+
})) : (_.onerror = Ze(v), b = b.oldVersion > Math.pow(2, 62) ? 0 : b.oldVersion, m = b < 1, e.idbdb = S.result, c && bs(e, _), gs(e, b / 10, _, v));
|
|
2738
2738
|
}, v), S.onsuccess = Te(function() {
|
|
2739
2739
|
_ = null;
|
|
2740
2740
|
var b, k, T, R, $, q = e.idbdb = S.result, z = re(q.objectStoreNames);
|
|
@@ -2822,7 +2822,7 @@ function Vs() {
|
|
|
2822
2822
|
for (var o = x(e) ? e.slice() : [e], s = 0; s < n; ++s) o.push(t);
|
|
2823
2823
|
return o;
|
|
2824
2824
|
}
|
|
2825
|
-
var
|
|
2825
|
+
var xs = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
|
|
2826
2826
|
return a(a({}, e), { table: function(t) {
|
|
2827
2827
|
var n = e.table(t), o = n.schema, s = {}, c = [];
|
|
2828
2828
|
function f(m, O, v) {
|
|
@@ -2879,7 +2879,7 @@ function Vs() {
|
|
|
2879
2879
|
function jr(e, t) {
|
|
2880
2880
|
return t.type === "delete" ? t.keys : t.keys || t.values.map(e.extractKey);
|
|
2881
2881
|
}
|
|
2882
|
-
var
|
|
2882
|
+
var Ss = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
|
|
2883
2883
|
return a(a({}, e), { table: function(t) {
|
|
2884
2884
|
var n = e.table(t), o = n.schema.primaryKey;
|
|
2885
2885
|
return a(a({}, n), { mutate: function(s) {
|
|
@@ -2949,7 +2949,7 @@ function Vs() {
|
|
|
2949
2949
|
return null;
|
|
2950
2950
|
}
|
|
2951
2951
|
}
|
|
2952
|
-
var
|
|
2952
|
+
var Os = { stack: "dbcore", level: -1, create: function(e) {
|
|
2953
2953
|
return { table: function(t) {
|
|
2954
2954
|
var n = e.table(t);
|
|
2955
2955
|
return a(a({}, n), { getMany: function(o) {
|
|
@@ -2977,7 +2977,7 @@ function Vs() {
|
|
|
2977
2977
|
return !1;
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
|
-
var
|
|
2980
|
+
var Es = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
|
|
2981
2981
|
var t = e.schema.name, n = new qe(e.MIN_KEY, e.MAX_KEY);
|
|
2982
2982
|
return a(a({}, e), { transaction: function(o, s, c) {
|
|
2983
2983
|
if (oe.subscr && s !== "readonly") throw new Z.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(oe.querier));
|
|
@@ -3132,7 +3132,7 @@ function Vs() {
|
|
|
3132
3132
|
function Mo(e, t) {
|
|
3133
3133
|
return xe(e.lower, t.lower) === 0 && xe(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
|
|
3134
3134
|
}
|
|
3135
|
-
function
|
|
3135
|
+
function ks(e, t) {
|
|
3136
3136
|
return function(n, o, s, c) {
|
|
3137
3137
|
if (n === void 0) return o !== void 0 ? -1 : 0;
|
|
3138
3138
|
if (o === void 0) return 1;
|
|
@@ -3153,7 +3153,7 @@ function Vs() {
|
|
|
3153
3153
|
return o;
|
|
3154
3154
|
}(e.upper, t.upper, e.upperOpen, t.upperOpen);
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function Ts(e, t, n, o) {
|
|
3157
3157
|
e.subscribers.add(n), o.addEventListener("abort", function() {
|
|
3158
3158
|
var s, c;
|
|
3159
3159
|
e.subscribers.delete(n), e.subscribers.size === 0 && (s = e, c = t, setTimeout(function() {
|
|
@@ -3161,7 +3161,7 @@ function Vs() {
|
|
|
3161
3161
|
}, 3e3));
|
|
3162
3162
|
});
|
|
3163
3163
|
}
|
|
3164
|
-
var
|
|
3164
|
+
var Rs = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
|
|
3165
3165
|
var t = e.schema.name;
|
|
3166
3166
|
return a(a({}, e), { transaction: function(n, o, s) {
|
|
3167
3167
|
var c, f, p = e.transaction(n, o, s);
|
|
@@ -3230,7 +3230,7 @@ function Vs() {
|
|
|
3230
3230
|
return q.req.limit === k.limit && q.req.values === k.values && Mo(q.req.query.range, k.query.range);
|
|
3231
3231
|
});
|
|
3232
3232
|
return $ ? [$, !0, T, R] : [R.find(function(q) {
|
|
3233
|
-
return ("limit" in q.req ? q.req.limit : 1 / 0) >= k.limit && (!k.values || q.req.values) &&
|
|
3233
|
+
return ("limit" in q.req ? q.req.limit : 1 / 0) >= k.limit && (!k.values || q.req.values) && ks(q.req.query.range, k.query.range);
|
|
3234
3234
|
}), !1, T, R];
|
|
3235
3235
|
case "count":
|
|
3236
3236
|
return $ = R.find(function(q) {
|
|
@@ -3247,7 +3247,7 @@ function Vs() {
|
|
|
3247
3247
|
return w;
|
|
3248
3248
|
}).catch(function(w) {
|
|
3249
3249
|
return v && _ && L(v, _), Promise.reject(w);
|
|
3250
|
-
}), _ = { obsSet: c.obsSet, promise: m, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, v ? v.push(_) : (v = [_], (O = O || (bt["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = v)),
|
|
3250
|
+
}), _ = { obsSet: c.obsSet, promise: m, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, v ? v.push(_) : (v = [_], (O = O || (bt["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = v)), Ts(_, v, p, y), _.promise.then(function(w) {
|
|
3251
3251
|
return { result: jo(w.result, c, O == null ? void 0 : O.optimisticOps, o, _, f) };
|
|
3252
3252
|
});
|
|
3253
3253
|
} });
|
|
@@ -3265,7 +3265,7 @@ function Vs() {
|
|
|
3265
3265
|
var t = this._versions, n = t.filter(function(o) {
|
|
3266
3266
|
return o._cfg.version === e;
|
|
3267
3267
|
})[0];
|
|
3268
|
-
return n || (n = new this.Version(e), t.push(n), t.sort(
|
|
3268
|
+
return n || (n = new this.Version(e), t.push(n), t.sort(vs), n.stores({}), this._state.autoSchema = !1, n);
|
|
3269
3269
|
}, Pe.prototype._whenReady = function(e) {
|
|
3270
3270
|
var t = this;
|
|
3271
3271
|
return this.idbdb && (this._state.openComplete || oe.letThrough || this._vip) ? e() : new W(function(n, o) {
|
|
@@ -3289,7 +3289,7 @@ function Vs() {
|
|
|
3289
3289
|
}, Pe.prototype.open = function() {
|
|
3290
3290
|
var e = this;
|
|
3291
3291
|
return yt(it, function() {
|
|
3292
|
-
return
|
|
3292
|
+
return _s(e);
|
|
3293
3293
|
});
|
|
3294
3294
|
}, Pe.prototype._close = function() {
|
|
3295
3295
|
var e = this._state, t = At.indexOf(this);
|
|
@@ -3433,7 +3433,7 @@ function Vs() {
|
|
|
3433
3433
|
}));
|
|
3434
3434
|
});
|
|
3435
3435
|
};
|
|
3436
|
-
}), this.Collection = (s = this, Ht(
|
|
3436
|
+
}), this.Collection = (s = this, Ht(ls.prototype, function(k, b) {
|
|
3437
3437
|
this.db = s;
|
|
3438
3438
|
var v = fo, w = null;
|
|
3439
3439
|
if (b) try {
|
|
@@ -3445,7 +3445,7 @@ function Vs() {
|
|
|
3445
3445
|
this._ctx = { table: b, index: S.index, isPrimKey: !S.index || b.schema.primKey.keyPath && S.index === b.schema.primKey.name, range: v, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: w, or: S.or, valueMapper: k !== Ue ? k : null };
|
|
3446
3446
|
})), this.Table = (c = this, Ht(yo.prototype, function(m, O, v) {
|
|
3447
3447
|
this.db = c, this._tx = v, this.name = m, this.schema = O, this.hook = c._allTables[m] ? c._allTables[m].hook : Yt(null, { creating: [Nt, ye], reading: [Et, Ue], updating: [Ft, ye], deleting: [qt, ye] });
|
|
3448
|
-
})), this.Transaction = (f = this, Ht(
|
|
3448
|
+
})), this.Transaction = (f = this, Ht(hs.prototype, function(m, O, v, w, S) {
|
|
3449
3449
|
var b = this;
|
|
3450
3450
|
this.db = f, this.mode = m, this.storeNames = O, this.schema = v, this.chromeTransactionDurability = w, this.idbtrans = null, this.on = Yt(this, "complete", "error", "abort"), this.parent = S || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new W(function(k, T) {
|
|
3451
3451
|
b._resolve = k, b._reject = T;
|
|
@@ -3455,7 +3455,7 @@ function Vs() {
|
|
|
3455
3455
|
var T = b.active;
|
|
3456
3456
|
return b.active = !1, b.on.error.fire(k), b.parent ? b.parent._reject(k) : T && b.idbtrans && b.idbtrans.abort(), Ae(k);
|
|
3457
3457
|
});
|
|
3458
|
-
})), this.Version = (p = this, Ht(
|
|
3458
|
+
})), this.Version = (p = this, Ht(ws.prototype, function(m) {
|
|
3459
3459
|
this.db = p, this._cfg = { version: m, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
|
|
3460
3460
|
})), this.WhereClause = (y = this, Ht(_o.prototype, function(m, O, v) {
|
|
3461
3461
|
if (this.db = y, this._ctx = { table: m, index: O === ":id" ? null : O, or: v }, this._cmp = this._ascending = xe, this._descending = function(w, S) {
|
|
@@ -3477,7 +3477,7 @@ function Vs() {
|
|
|
3477
3477
|
}).map(function(O) {
|
|
3478
3478
|
return O.on("versionchange").fire(m);
|
|
3479
3479
|
});
|
|
3480
|
-
}, this.use(
|
|
3480
|
+
}, this.use(Os), this.use(Rs), this.use(Es), this.use(xs), this.use(Ss);
|
|
3481
3481
|
var _ = new Proxy(this, { get: function(m, O, v) {
|
|
3482
3482
|
if (O === "_vip") return !0;
|
|
3483
3483
|
if (O === "table") return function(S) {
|
|
@@ -3494,7 +3494,7 @@ function Vs() {
|
|
|
3494
3494
|
return m(n);
|
|
3495
3495
|
});
|
|
3496
3496
|
}
|
|
3497
|
-
var Cn, Ge = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable",
|
|
3497
|
+
var Cn, Ge = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", As = (Nr.prototype.subscribe = function(e, t, n) {
|
|
3498
3498
|
return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
|
|
3499
3499
|
}, Nr.prototype[Ge] = function() {
|
|
3500
3500
|
return this;
|
|
@@ -3508,7 +3508,7 @@ function Vs() {
|
|
|
3508
3508
|
Cn = { indexedDB: null, IDBKeyRange: null };
|
|
3509
3509
|
}
|
|
3510
3510
|
function No(e) {
|
|
3511
|
-
var t, n = !1, o = new
|
|
3511
|
+
var t, n = !1, o = new As(function(s) {
|
|
3512
3512
|
var c = de(e), f, p = !1, y = {}, g = {}, _ = { get closed() {
|
|
3513
3513
|
return p;
|
|
3514
3514
|
}, unsubscribe: function() {
|
|
@@ -3653,8 +3653,8 @@ function Vs() {
|
|
|
3653
3653
|
});
|
|
3654
3654
|
}(Un)), Un.exports;
|
|
3655
3655
|
}
|
|
3656
|
-
var
|
|
3657
|
-
const Hr = /* @__PURE__ */ Ct(
|
|
3656
|
+
var Xs = Gs();
|
|
3657
|
+
const Hr = /* @__PURE__ */ Ct(Xs), Uo = Symbol.for("Dexie"), Vn = globalThis[Uo] || (globalThis[Uo] = Hr);
|
|
3658
3658
|
if (Hr.semVer !== Vn.semVer)
|
|
3659
3659
|
throw new Error(`Two different versions of Dexie loaded in the same app: ${Hr.semVer} and ${Vn.semVer}`);
|
|
3660
3660
|
const {
|
|
@@ -3680,28 +3680,28 @@ class ci extends Vn {
|
|
|
3680
3680
|
}
|
|
3681
3681
|
const Wn = new ci(), Qr = (r, i = !0) => Wn.rows.where({ key: r }).first().then((u) => i ? u == null ? void 0 : u.value : u), li = async (r, i) => {
|
|
3682
3682
|
await Qr(r, !1) ? await Wn.rows.where({ key: r }).modify({ value: i }) : await Wn.rows.add({ key: r, value: i });
|
|
3683
|
-
},
|
|
3683
|
+
}, Qs = {
|
|
3684
3684
|
get: Qr,
|
|
3685
3685
|
set: li
|
|
3686
3686
|
}, Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3687
3687
|
__proto__: null,
|
|
3688
3688
|
SubDexie: ci,
|
|
3689
3689
|
db: Wn,
|
|
3690
|
-
default:
|
|
3690
|
+
default: Qs,
|
|
3691
3691
|
get: Qr,
|
|
3692
3692
|
set: li
|
|
3693
3693
|
}, Symbol.toStringTag, { value: "Module" })), fi = (r, i) => r.find((u) => u.value == (Array.isArray(i) ? i[0] : i)), di = (r) => new Promise((i) => setTimeout(i, r)), hi = (r, i) => {
|
|
3694
3694
|
i ? console.log(i, r) : console.log(r);
|
|
3695
3695
|
}, pi = (r) => {
|
|
3696
3696
|
throw new Error(r);
|
|
3697
|
-
},
|
|
3697
|
+
}, Zs = {
|
|
3698
3698
|
findByValue: fi,
|
|
3699
3699
|
sleep: di,
|
|
3700
3700
|
log: hi,
|
|
3701
3701
|
fail: pi
|
|
3702
3702
|
}, ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3703
3703
|
__proto__: null,
|
|
3704
|
-
default:
|
|
3704
|
+
default: Zs,
|
|
3705
3705
|
fail: pi,
|
|
3706
3706
|
findByValue: fi,
|
|
3707
3707
|
log: hi,
|
|
@@ -3723,13 +3723,13 @@ const Wn = new ci(), Qr = (r, i = !0) => Wn.rows.where({ key: r }).first().then(
|
|
|
3723
3723
|
}, vi = (r, i) => {
|
|
3724
3724
|
const u = document.createElement("a");
|
|
3725
3725
|
u.href = URL.createObjectURL(i), u.download = r, u.click(), URL.revokeObjectURL(u.href);
|
|
3726
|
-
},
|
|
3726
|
+
}, ea = {
|
|
3727
3727
|
toBase64: mi,
|
|
3728
3728
|
toBlob: yi,
|
|
3729
3729
|
download: vi
|
|
3730
3730
|
}, tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3731
3731
|
__proto__: null,
|
|
3732
|
-
default:
|
|
3732
|
+
default: ea,
|
|
3733
3733
|
download: vi,
|
|
3734
3734
|
toBase64: mi,
|
|
3735
3735
|
toBlob: yi
|
|
@@ -3752,7 +3752,7 @@ function gi() {
|
|
|
3752
3752
|
return Kr;
|
|
3753
3753
|
}
|
|
3754
3754
|
var Zt = {}, Ho;
|
|
3755
|
-
function
|
|
3755
|
+
function ta() {
|
|
3756
3756
|
if (Ho) return Zt;
|
|
3757
3757
|
Ho = 1;
|
|
3758
3758
|
var r = gi(), i = bi();
|
|
@@ -3806,10 +3806,10 @@ function Qs() {
|
|
|
3806
3806
|
}, Zt;
|
|
3807
3807
|
}
|
|
3808
3808
|
var zo;
|
|
3809
|
-
function
|
|
3809
|
+
function na() {
|
|
3810
3810
|
if (zo) return Nn;
|
|
3811
3811
|
zo = 1, gi();
|
|
3812
|
-
var r =
|
|
3812
|
+
var r = ta(), i = typeof WeakMap < "u" ? WeakMap : function() {
|
|
3813
3813
|
var u = [], a = [];
|
|
3814
3814
|
return {
|
|
3815
3815
|
set: function(l, d) {
|
|
@@ -3907,7 +3907,7 @@ var Vo;
|
|
|
3907
3907
|
function bi() {
|
|
3908
3908
|
if (Vo) return Mn;
|
|
3909
3909
|
Vo = 1;
|
|
3910
|
-
var r =
|
|
3910
|
+
var r = na();
|
|
3911
3911
|
return Mn.stringify = function(u, a, l, d) {
|
|
3912
3912
|
if (arguments.length < 4)
|
|
3913
3913
|
try {
|
|
@@ -3935,11 +3935,11 @@ function bi() {
|
|
|
3935
3935
|
}, Mn;
|
|
3936
3936
|
}
|
|
3937
3937
|
var Ir, Wo;
|
|
3938
|
-
function
|
|
3938
|
+
function ra() {
|
|
3939
3939
|
return Wo || (Wo = 1, Ir = bi()), Ir;
|
|
3940
3940
|
}
|
|
3941
|
-
var
|
|
3942
|
-
const wi = /* @__PURE__ */ Ct(
|
|
3941
|
+
var oa = ra();
|
|
3942
|
+
const wi = /* @__PURE__ */ Ct(oa), _i = (r = null, i, u, a = !0) => wi.stringify(r, i, u, a), xi = (r, i) => wi.parse(r, i), Jn = {
|
|
3943
3943
|
stringify: _i,
|
|
3944
3944
|
parse: xi
|
|
3945
3945
|
}, nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3947,24 +3947,27 @@ const wi = /* @__PURE__ */ Ct(ta), _i = (r = null, i, u, a = !0) => wi.stringify
|
|
|
3947
3947
|
default: Jn,
|
|
3948
3948
|
parse: xi,
|
|
3949
3949
|
stringify: _i
|
|
3950
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3950
|
+
}, Symbol.toStringTag, { value: "Module" })), Si = async (r, i = !0) => {
|
|
3951
3951
|
const u = i ? Jn.stringify(r) : r, l = new TextEncoder().encode(u), d = await crypto.subtle.digest("SHA-256", l);
|
|
3952
3952
|
return Array.from(new Uint8Array(d)).map((x) => x.toString(16).padStart(2, "0")).join("");
|
|
3953
|
-
},
|
|
3953
|
+
}, Oi = () => {
|
|
3954
3954
|
const r = new Uint32Array(1);
|
|
3955
3955
|
return crypto.getRandomValues(r), r[0];
|
|
3956
|
-
},
|
|
3956
|
+
}, Ei = () => {
|
|
3957
3957
|
const r = Date.now(), i = Math.floor(Math.random() * 1e6), u = `${r}${i}`;
|
|
3958
3958
|
return parseInt(u).toString(32);
|
|
3959
3959
|
}, ia = {
|
|
3960
|
-
SHA256:
|
|
3961
|
-
random:
|
|
3962
|
-
id:
|
|
3960
|
+
SHA256: Si,
|
|
3961
|
+
random: Oi,
|
|
3962
|
+
id: Ei
|
|
3963
3963
|
}, rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3964
3964
|
__proto__: null,
|
|
3965
|
-
|
|
3965
|
+
SHA256: Si,
|
|
3966
|
+
default: ia,
|
|
3967
|
+
id: Ei,
|
|
3968
|
+
random: Oi
|
|
3966
3969
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3967
|
-
function
|
|
3970
|
+
function ki(r, i) {
|
|
3968
3971
|
return function() {
|
|
3969
3972
|
return r.apply(i, arguments);
|
|
3970
3973
|
};
|
|
@@ -3976,12 +3979,12 @@ const { toString: sa } = Object.prototype, { getPrototypeOf: Zr } = Object, Qn =
|
|
|
3976
3979
|
function aa(r) {
|
|
3977
3980
|
return r !== null && !tn(r) && r.constructor !== null && !tn(r.constructor) && We(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
3978
3981
|
}
|
|
3979
|
-
const
|
|
3982
|
+
const Ti = Xe("ArrayBuffer");
|
|
3980
3983
|
function ua(r) {
|
|
3981
3984
|
let i;
|
|
3982
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? i = ArrayBuffer.isView(r) : i = r && r.buffer &&
|
|
3985
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? i = ArrayBuffer.isView(r) : i = r && r.buffer && Ti(r.buffer), i;
|
|
3983
3986
|
}
|
|
3984
|
-
const ca = Zn("string"), We = Zn("function"),
|
|
3987
|
+
const ca = Zn("string"), We = Zn("function"), Ri = Zn("number"), er = (r) => r !== null && typeof r == "object", la = (r) => r === !0 || r === !1, Yn = (r) => {
|
|
3985
3988
|
if (Qn(r) !== "object")
|
|
3986
3989
|
return !1;
|
|
3987
3990
|
const i = Zr(r);
|
|
@@ -4005,7 +4008,7 @@ function rn(r, i, { allOwnKeys: u = !1 } = {}) {
|
|
|
4005
4008
|
x = d[a], i.call(null, r[x], x, r);
|
|
4006
4009
|
}
|
|
4007
4010
|
}
|
|
4008
|
-
function
|
|
4011
|
+
function Ai(r, i) {
|
|
4009
4012
|
i = i.toLowerCase();
|
|
4010
4013
|
const u = Object.keys(r);
|
|
4011
4014
|
let a = u.length, l;
|
|
@@ -4014,10 +4017,10 @@ function ki(r, i) {
|
|
|
4014
4017
|
return l;
|
|
4015
4018
|
return null;
|
|
4016
4019
|
}
|
|
4017
|
-
const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
4020
|
+
const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pi = (r) => !tn(r) && r !== xt;
|
|
4018
4021
|
function zr() {
|
|
4019
|
-
const { caseless: r } =
|
|
4020
|
-
const d = r &&
|
|
4022
|
+
const { caseless: r } = Pi(this) && this || {}, i = {}, u = (a, l) => {
|
|
4023
|
+
const d = r && Ai(i, l) || l;
|
|
4021
4024
|
Yn(i[d]) && Yn(a) ? i[d] = zr(i[d], a) : Yn(a) ? i[d] = zr({}, a) : jt(a) ? i[d] = a.slice() : i[d] = a;
|
|
4022
4025
|
};
|
|
4023
4026
|
for (let a = 0, l = arguments.length; a < l; a++)
|
|
@@ -4025,7 +4028,7 @@ function zr() {
|
|
|
4025
4028
|
return i;
|
|
4026
4029
|
}
|
|
4027
4030
|
const Sa = (r, i, u, { allOwnKeys: a } = {}) => (rn(i, (l, d) => {
|
|
4028
|
-
u && We(l) ? r[d] =
|
|
4031
|
+
u && We(l) ? r[d] = ki(l, u) : r[d] = l;
|
|
4029
4032
|
}, { allOwnKeys: a }), r), Oa = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), Ea = (r, i, u, a) => {
|
|
4030
4033
|
r.prototype = Object.create(i.prototype, a), r.prototype.constructor = r, Object.defineProperty(r, "super", {
|
|
4031
4034
|
value: i.prototype
|
|
@@ -4048,7 +4051,7 @@ const Sa = (r, i, u, { allOwnKeys: a } = {}) => (rn(i, (l, d) => {
|
|
|
4048
4051
|
if (!r) return null;
|
|
4049
4052
|
if (jt(r)) return r;
|
|
4050
4053
|
let i = r.length;
|
|
4051
|
-
if (!
|
|
4054
|
+
if (!Ri(i)) return null;
|
|
4052
4055
|
const u = new Array(i);
|
|
4053
4056
|
for (; i-- > 0; )
|
|
4054
4057
|
u[i] = r[i];
|
|
@@ -4071,14 +4074,14 @@ const Sa = (r, i, u, { allOwnKeys: a } = {}) => (rn(i, (l, d) => {
|
|
|
4071
4074
|
function(u, a, l) {
|
|
4072
4075
|
return a.toUpperCase() + l;
|
|
4073
4076
|
}
|
|
4074
|
-
), Jo = (({ hasOwnProperty: r }) => (i, u) => r.call(i, u))(Object.prototype), ja = Xe("RegExp"),
|
|
4077
|
+
), Jo = (({ hasOwnProperty: r }) => (i, u) => r.call(i, u))(Object.prototype), ja = Xe("RegExp"), $i = (r, i) => {
|
|
4075
4078
|
const u = Object.getOwnPropertyDescriptors(r), a = {};
|
|
4076
4079
|
rn(u, (l, d) => {
|
|
4077
4080
|
let h;
|
|
4078
4081
|
(h = i(l, d, r)) !== !1 && (a[d] = h || l);
|
|
4079
4082
|
}), Object.defineProperties(r, a);
|
|
4080
4083
|
}, Ma = (r) => {
|
|
4081
|
-
|
|
4084
|
+
$i(r, (i, u) => {
|
|
4082
4085
|
if (We(r) && ["arguments", "caller", "callee"].indexOf(u) !== -1)
|
|
4083
4086
|
return !1;
|
|
4084
4087
|
const a = r[u];
|
|
@@ -4121,21 +4124,21 @@ const Ka = (r) => {
|
|
|
4121
4124
|
return a;
|
|
4122
4125
|
};
|
|
4123
4126
|
return u(r, 0);
|
|
4124
|
-
}, Ia = Xe("AsyncFunction"), La = (r) => r && (er(r) || We(r)) && We(r.then) && We(r.catch),
|
|
4127
|
+
}, Ia = Xe("AsyncFunction"), La = (r) => r && (er(r) || We(r)) && We(r.then) && We(r.catch), Di = ((r, i) => r ? setImmediate : i ? ((u, a) => (xt.addEventListener("message", ({ source: l, data: d }) => {
|
|
4125
4128
|
l === xt && d === u && a.length && a.shift()();
|
|
4126
4129
|
}, !1), (l) => {
|
|
4127
4130
|
a.push(l), xt.postMessage(u, "*");
|
|
4128
4131
|
}))(`axios@${Math.random()}`, []) : (u) => setTimeout(u))(
|
|
4129
4132
|
typeof setImmediate == "function",
|
|
4130
4133
|
We(xt.postMessage)
|
|
4131
|
-
), Ua = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick ||
|
|
4134
|
+
), Ua = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick || Di, A = {
|
|
4132
4135
|
isArray: jt,
|
|
4133
|
-
isArrayBuffer:
|
|
4136
|
+
isArrayBuffer: Ti,
|
|
4134
4137
|
isBuffer: aa,
|
|
4135
4138
|
isFormData: ya,
|
|
4136
4139
|
isArrayBufferView: ua,
|
|
4137
4140
|
isString: ca,
|
|
4138
|
-
isNumber:
|
|
4141
|
+
isNumber: Ri,
|
|
4139
4142
|
isBoolean: la,
|
|
4140
4143
|
isObject: er,
|
|
4141
4144
|
isPlainObject: Yn,
|
|
@@ -4170,20 +4173,20 @@ const Ka = (r) => {
|
|
|
4170
4173
|
hasOwnProperty: Jo,
|
|
4171
4174
|
hasOwnProp: Jo,
|
|
4172
4175
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
4173
|
-
reduceDescriptors:
|
|
4176
|
+
reduceDescriptors: $i,
|
|
4174
4177
|
freezeMethods: Ma,
|
|
4175
4178
|
toObjectSet: Na,
|
|
4176
4179
|
toCamelCase: Ca,
|
|
4177
4180
|
noop: qa,
|
|
4178
4181
|
toFiniteNumber: Fa,
|
|
4179
|
-
findKey:
|
|
4182
|
+
findKey: Ai,
|
|
4180
4183
|
global: xt,
|
|
4181
|
-
isContextDefined:
|
|
4184
|
+
isContextDefined: Pi,
|
|
4182
4185
|
isSpecCompliantForm: Ba,
|
|
4183
4186
|
toJSONObject: Ka,
|
|
4184
4187
|
isAsyncFn: Ia,
|
|
4185
4188
|
isThenable: La,
|
|
4186
|
-
setImmediate:
|
|
4189
|
+
setImmediate: Di,
|
|
4187
4190
|
asap: Ua
|
|
4188
4191
|
};
|
|
4189
4192
|
function me(r, i, u, a, l) {
|
|
@@ -4210,7 +4213,7 @@ A.inherits(me, Error, {
|
|
|
4210
4213
|
};
|
|
4211
4214
|
}
|
|
4212
4215
|
});
|
|
4213
|
-
const
|
|
4216
|
+
const Ci = me.prototype, ji = {};
|
|
4214
4217
|
[
|
|
4215
4218
|
"ERR_BAD_OPTION_VALUE",
|
|
4216
4219
|
"ERR_BAD_OPTION",
|
|
@@ -4226,12 +4229,12 @@ const Pi = me.prototype, $i = {};
|
|
|
4226
4229
|
"ERR_INVALID_URL"
|
|
4227
4230
|
// eslint-disable-next-line func-names
|
|
4228
4231
|
].forEach((r) => {
|
|
4229
|
-
|
|
4232
|
+
ji[r] = { value: r };
|
|
4230
4233
|
});
|
|
4231
|
-
Object.defineProperties(me,
|
|
4232
|
-
Object.defineProperty(
|
|
4234
|
+
Object.defineProperties(me, ji);
|
|
4235
|
+
Object.defineProperty(Ci, "isAxiosError", { value: !0 });
|
|
4233
4236
|
me.from = (r, i, u, a, l, d) => {
|
|
4234
|
-
const h = Object.create(
|
|
4237
|
+
const h = Object.create(Ci);
|
|
4235
4238
|
return A.toFlatObject(r, h, function(P) {
|
|
4236
4239
|
return P !== Error.prototype;
|
|
4237
4240
|
}, (x) => x !== "isAxiosError"), me.call(h, r.message, i, u, a, l), h.cause = r, h.name = r.name, d && Object.assign(h, d), h;
|
|
@@ -4240,12 +4243,12 @@ const Ya = null;
|
|
|
4240
4243
|
function Vr(r) {
|
|
4241
4244
|
return A.isPlainObject(r) || A.isArray(r);
|
|
4242
4245
|
}
|
|
4243
|
-
function
|
|
4246
|
+
function Mi(r) {
|
|
4244
4247
|
return A.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
4245
4248
|
}
|
|
4246
4249
|
function Go(r, i, u) {
|
|
4247
4250
|
return r ? r.concat(i).map(function(l, d) {
|
|
4248
|
-
return l =
|
|
4251
|
+
return l = Mi(l), !u && d ? "[" + l + "]" : l;
|
|
4249
4252
|
}).join(u ? "." : "") : i;
|
|
4250
4253
|
}
|
|
4251
4254
|
function Ha(r) {
|
|
@@ -4281,7 +4284,7 @@ function tr(r, i, u) {
|
|
|
4281
4284
|
if (A.endsWith(j, "{}"))
|
|
4282
4285
|
j = a ? j : j.slice(0, -2), N = JSON.stringify(N);
|
|
4283
4286
|
else if (A.isArray(N) && Ha(N) || (A.isFileList(N) || A.endsWith(j, "[]")) && (J = A.toArray(N)))
|
|
4284
|
-
return j =
|
|
4287
|
+
return j = Mi(j), J.forEach(function(G, _e) {
|
|
4285
4288
|
!(A.isUndefined(G) || G === null) && i.append(
|
|
4286
4289
|
// eslint-disable-next-line no-nested-ternary
|
|
4287
4290
|
h === !0 ? Go([j], _e, d) : h === null ? j : j + "[]",
|
|
@@ -4332,11 +4335,11 @@ function Xo(r) {
|
|
|
4332
4335
|
function eo(r, i) {
|
|
4333
4336
|
this._pairs = [], r && tr(r, this, i);
|
|
4334
4337
|
}
|
|
4335
|
-
const
|
|
4336
|
-
|
|
4338
|
+
const Ni = eo.prototype;
|
|
4339
|
+
Ni.append = function(i, u) {
|
|
4337
4340
|
this._pairs.push([i, u]);
|
|
4338
4341
|
};
|
|
4339
|
-
|
|
4342
|
+
Ni.toString = function(i) {
|
|
4340
4343
|
const u = i ? function(a) {
|
|
4341
4344
|
return i.call(this, a, Xo);
|
|
4342
4345
|
} : Xo;
|
|
@@ -4347,7 +4350,7 @@ Ci.toString = function(i) {
|
|
|
4347
4350
|
function Va(r) {
|
|
4348
4351
|
return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
4349
4352
|
}
|
|
4350
|
-
function
|
|
4353
|
+
function qi(r, i, u) {
|
|
4351
4354
|
if (!i)
|
|
4352
4355
|
return r;
|
|
4353
4356
|
const a = u && u.encode || Va;
|
|
@@ -4416,7 +4419,7 @@ class Qo {
|
|
|
4416
4419
|
});
|
|
4417
4420
|
}
|
|
4418
4421
|
}
|
|
4419
|
-
const
|
|
4422
|
+
const Fi = {
|
|
4420
4423
|
silentJSONParsing: !0,
|
|
4421
4424
|
forcedJSONParsing: !0,
|
|
4422
4425
|
clarifyTimeoutError: !1
|
|
@@ -4459,7 +4462,7 @@ function ou(r) {
|
|
|
4459
4462
|
d = u[a], i[d] = r[d];
|
|
4460
4463
|
return i;
|
|
4461
4464
|
}
|
|
4462
|
-
function
|
|
4465
|
+
function Bi(r) {
|
|
4463
4466
|
function i(u, a, l, d) {
|
|
4464
4467
|
let h = u[d++];
|
|
4465
4468
|
if (h === "__proto__") return !0;
|
|
@@ -4485,12 +4488,12 @@ function iu(r, i, u) {
|
|
|
4485
4488
|
return (u || JSON.stringify)(r);
|
|
4486
4489
|
}
|
|
4487
4490
|
const on = {
|
|
4488
|
-
transitional:
|
|
4491
|
+
transitional: Fi,
|
|
4489
4492
|
adapter: ["xhr", "http", "fetch"],
|
|
4490
4493
|
transformRequest: [function(i, u) {
|
|
4491
4494
|
const a = u.getContentType() || "", l = a.indexOf("application/json") > -1, d = A.isObject(i);
|
|
4492
4495
|
if (d && A.isHTMLForm(i) && (i = new FormData(i)), A.isFormData(i))
|
|
4493
|
-
return l ? JSON.stringify(
|
|
4496
|
+
return l ? JSON.stringify(Bi(i)) : i;
|
|
4494
4497
|
if (A.isArrayBuffer(i) || A.isBuffer(i) || A.isStream(i) || A.isFile(i) || A.isBlob(i) || A.isReadableStream(i))
|
|
4495
4498
|
return i;
|
|
4496
4499
|
if (A.isArrayBufferView(i))
|
|
@@ -4753,7 +4756,7 @@ function Ur(r, i) {
|
|
|
4753
4756
|
d = x.call(u, d, l.normalize(), i ? i.status : void 0);
|
|
4754
4757
|
}), l.normalize(), d;
|
|
4755
4758
|
}
|
|
4756
|
-
function
|
|
4759
|
+
function Ki(r) {
|
|
4757
4760
|
return !!(r && r.__CANCEL__);
|
|
4758
4761
|
}
|
|
4759
4762
|
function Mt(r, i, u) {
|
|
@@ -4762,7 +4765,7 @@ function Mt(r, i, u) {
|
|
|
4762
4765
|
A.inherits(Mt, me, {
|
|
4763
4766
|
__CANCEL__: !0
|
|
4764
4767
|
});
|
|
4765
|
-
function
|
|
4768
|
+
function Ii(r, i, u) {
|
|
4766
4769
|
const a = u.config.validateStatus;
|
|
4767
4770
|
!u.status || !a || a(u.status) ? r(u) : i(new me(
|
|
4768
4771
|
"Request failed with status code " + u.status,
|
|
@@ -4866,7 +4869,7 @@ function vu(r) {
|
|
|
4866
4869
|
function gu(r, i) {
|
|
4867
4870
|
return i ? r.replace(/\/?\/$/, "") + "/" + i.replace(/^\/+/, "") : r;
|
|
4868
4871
|
}
|
|
4869
|
-
function
|
|
4872
|
+
function Li(r, i, u) {
|
|
4870
4873
|
let a = !vu(i);
|
|
4871
4874
|
return r && a || u == !1 ? gu(r, i) : i;
|
|
4872
4875
|
}
|
|
@@ -4935,10 +4938,10 @@ function Ot(r, i) {
|
|
|
4935
4938
|
A.isUndefined(ae) && M !== x || (u[D] = ae);
|
|
4936
4939
|
}), u;
|
|
4937
4940
|
}
|
|
4938
|
-
const
|
|
4941
|
+
const Ui = (r) => {
|
|
4939
4942
|
const i = Ot({}, r);
|
|
4940
4943
|
let { data: u, withXSRFToken: a, xsrfHeaderName: l, xsrfCookieName: d, headers: h, auth: x } = i;
|
|
4941
|
-
i.headers = h = Ye.from(h), i.url =
|
|
4944
|
+
i.headers = h = Ye.from(h), i.url = qi(Li(i.baseURL, i.url, i.allowAbsoluteUrls), r.params, r.paramsSerializer), x && h.set(
|
|
4942
4945
|
"Authorization",
|
|
4943
4946
|
"Basic " + btoa((x.username || "") + ":" + (x.password ? unescape(encodeURIComponent(x.password)) : ""))
|
|
4944
4947
|
);
|
|
@@ -4958,7 +4961,7 @@ const Ki = (r) => {
|
|
|
4958
4961
|
return i;
|
|
4959
4962
|
}, bu = typeof XMLHttpRequest < "u", wu = bu && function(r) {
|
|
4960
4963
|
return new Promise(function(u, a) {
|
|
4961
|
-
const l =
|
|
4964
|
+
const l = Ui(r);
|
|
4962
4965
|
let d = l.data;
|
|
4963
4966
|
const h = Ye.from(l.headers).normalize();
|
|
4964
4967
|
let { responseType: x, onUploadProgress: P, onDownloadProgress: C } = l, D, M, ae, ue, N;
|
|
@@ -4980,7 +4983,7 @@ const Ki = (r) => {
|
|
|
4980
4983
|
config: r,
|
|
4981
4984
|
request: E
|
|
4982
4985
|
};
|
|
4983
|
-
|
|
4986
|
+
Ii(function(U) {
|
|
4984
4987
|
u(U), j();
|
|
4985
4988
|
}, function(U) {
|
|
4986
4989
|
a(U), j();
|
|
@@ -4994,7 +4997,7 @@ const Ki = (r) => {
|
|
|
4994
4997
|
a(new me("Network Error", me.ERR_NETWORK, r, E)), E = null;
|
|
4995
4998
|
}, E.ontimeout = function() {
|
|
4996
4999
|
let _e = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded";
|
|
4997
|
-
const fe = l.transitional ||
|
|
5000
|
+
const fe = l.transitional || Fi;
|
|
4998
5001
|
l.timeoutErrorMessage && (_e = l.timeoutErrorMessage), a(new me(
|
|
4999
5002
|
_e,
|
|
5000
5003
|
fe.clarifyTimeoutError ? me.ETIMEDOUT : me.ECONNABORTED,
|
|
@@ -5093,13 +5096,13 @@ const Ki = (r) => {
|
|
|
5093
5096
|
}, {
|
|
5094
5097
|
highWaterMark: 2
|
|
5095
5098
|
});
|
|
5096
|
-
}, nr = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
5099
|
+
}, nr = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Yi = nr && typeof ReadableStream == "function", Eu = nr && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((r) => (i) => r.encode(i))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), Hi = (r, ...i) => {
|
|
5097
5100
|
try {
|
|
5098
5101
|
return !!r(...i);
|
|
5099
5102
|
} catch {
|
|
5100
5103
|
return !1;
|
|
5101
5104
|
}
|
|
5102
|
-
}, ku =
|
|
5105
|
+
}, ku = Yi && Hi(() => {
|
|
5103
5106
|
let r = !1;
|
|
5104
5107
|
const i = new Request(Ke.origin, {
|
|
5105
5108
|
body: new ReadableStream(),
|
|
@@ -5109,7 +5112,7 @@ const Ki = (r) => {
|
|
|
5109
5112
|
}
|
|
5110
5113
|
}).headers.has("Content-Type");
|
|
5111
5114
|
return r && !i;
|
|
5112
|
-
}), oi = 64 * 1024, Jr =
|
|
5115
|
+
}), oi = 64 * 1024, Jr = Yi && Hi(() => A.isReadableStream(new Response("").body)), Xn = {
|
|
5113
5116
|
stream: Jr && ((r) => r.body)
|
|
5114
5117
|
};
|
|
5115
5118
|
nr && ((r) => {
|
|
@@ -5150,7 +5153,7 @@ const Tu = async (r) => {
|
|
|
5150
5153
|
headers: D,
|
|
5151
5154
|
withCredentials: M = "same-origin",
|
|
5152
5155
|
fetchOptions: ae
|
|
5153
|
-
} =
|
|
5156
|
+
} = Ui(r);
|
|
5154
5157
|
C = C ? (C + "").toLowerCase() : "text";
|
|
5155
5158
|
let ue = _u([l, d && d.toAbortSignal()], h), N;
|
|
5156
5159
|
const j = ue && ue.unsubscribe && (() => {
|
|
@@ -5204,7 +5207,7 @@ const Tu = async (r) => {
|
|
|
5204
5207
|
C = C || "text";
|
|
5205
5208
|
let _e = await Xn[A.findKey(Xn, C) || "text"](re, r);
|
|
5206
5209
|
return !G && j && j(), await new Promise((fe, te) => {
|
|
5207
|
-
|
|
5210
|
+
Ii(fe, te, {
|
|
5208
5211
|
data: _e,
|
|
5209
5212
|
headers: Ye.from(re.headers),
|
|
5210
5213
|
status: re.status,
|
|
@@ -5235,7 +5238,7 @@ A.forEach(Gr, (r, i) => {
|
|
|
5235
5238
|
Object.defineProperty(r, "adapterName", { value: i });
|
|
5236
5239
|
}
|
|
5237
5240
|
});
|
|
5238
|
-
const ii = (r) => `- ${r}`, Pu = (r) => A.isFunction(r) || r === null || r === !1,
|
|
5241
|
+
const ii = (r) => `- ${r}`, Pu = (r) => A.isFunction(r) || r === null || r === !1, zi = {
|
|
5239
5242
|
getAdapter: (r) => {
|
|
5240
5243
|
r = A.isArray(r) ? r : [r];
|
|
5241
5244
|
const { length: i } = r;
|
|
@@ -5274,21 +5277,21 @@ function si(r) {
|
|
|
5274
5277
|
return Yr(r), r.headers = Ye.from(r.headers), r.data = Ur.call(
|
|
5275
5278
|
r,
|
|
5276
5279
|
r.transformRequest
|
|
5277
|
-
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
5280
|
+
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), zi.getAdapter(r.adapter || on.adapter)(r).then(function(a) {
|
|
5278
5281
|
return Yr(r), a.data = Ur.call(
|
|
5279
5282
|
r,
|
|
5280
5283
|
r.transformResponse,
|
|
5281
5284
|
a
|
|
5282
5285
|
), a.headers = Ye.from(a.headers), a;
|
|
5283
5286
|
}, function(a) {
|
|
5284
|
-
return
|
|
5287
|
+
return Ki(a) || (Yr(r), a && a.response && (a.response.data = Ur.call(
|
|
5285
5288
|
r,
|
|
5286
5289
|
r.transformResponse,
|
|
5287
5290
|
a.response
|
|
5288
5291
|
), a.response.headers = Ye.from(a.response.headers))), Promise.reject(a);
|
|
5289
5292
|
});
|
|
5290
5293
|
}
|
|
5291
|
-
const
|
|
5294
|
+
const Vi = "1.8.3", rr = {};
|
|
5292
5295
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((r, i) => {
|
|
5293
5296
|
rr[r] = function(a) {
|
|
5294
5297
|
return typeof a === r || "a" + (i < 1 ? "n " : " ") + r;
|
|
@@ -5297,7 +5300,7 @@ const Yi = "1.8.3", rr = {};
|
|
|
5297
5300
|
const ai = {};
|
|
5298
5301
|
rr.transitional = function(i, u, a) {
|
|
5299
5302
|
function l(d, h) {
|
|
5300
|
-
return "[Axios v" +
|
|
5303
|
+
return "[Axios v" + Vi + "] Transitional option '" + d + "'" + h + (a ? ". " + a : "");
|
|
5301
5304
|
}
|
|
5302
5305
|
return (d, h, x) => {
|
|
5303
5306
|
if (i === !1)
|
|
@@ -5433,8 +5436,8 @@ let St = class {
|
|
|
5433
5436
|
}
|
|
5434
5437
|
getUri(i) {
|
|
5435
5438
|
i = Ot(this.defaults, i);
|
|
5436
|
-
const u =
|
|
5437
|
-
return
|
|
5439
|
+
const u = Li(i.baseURL, i.url, i.allowAbsoluteUrls);
|
|
5440
|
+
return qi(u, i.params, i.paramsSerializer);
|
|
5438
5441
|
}
|
|
5439
5442
|
};
|
|
5440
5443
|
A.forEach(["delete", "get", "head", "options"], function(i) {
|
|
@@ -5461,7 +5464,7 @@ A.forEach(["post", "put", "patch"], function(i) {
|
|
|
5461
5464
|
}
|
|
5462
5465
|
St.prototype[i] = u(), St.prototype[i + "Form"] = u(!0);
|
|
5463
5466
|
});
|
|
5464
|
-
let Du = class
|
|
5467
|
+
let Du = class Wi {
|
|
5465
5468
|
constructor(i) {
|
|
5466
5469
|
if (typeof i != "function")
|
|
5467
5470
|
throw new TypeError("executor must be a function.");
|
|
@@ -5527,7 +5530,7 @@ let Du = class Hi {
|
|
|
5527
5530
|
static source() {
|
|
5528
5531
|
let i;
|
|
5529
5532
|
return {
|
|
5530
|
-
token: new
|
|
5533
|
+
token: new Wi(function(l) {
|
|
5531
5534
|
i = l;
|
|
5532
5535
|
}),
|
|
5533
5536
|
cancel: i
|
|
@@ -5610,18 +5613,18 @@ const Xr = {
|
|
|
5610
5613
|
Object.entries(Xr).forEach(([r, i]) => {
|
|
5611
5614
|
Xr[i] = r;
|
|
5612
5615
|
});
|
|
5613
|
-
function
|
|
5614
|
-
const i = new St(r), u =
|
|
5616
|
+
function Ji(r) {
|
|
5617
|
+
const i = new St(r), u = ki(St.prototype.request, i);
|
|
5615
5618
|
return A.extend(u, St.prototype, i, { allOwnKeys: !0 }), A.extend(u, i, null, { allOwnKeys: !0 }), u.create = function(l) {
|
|
5616
|
-
return
|
|
5619
|
+
return Ji(Ot(r, l));
|
|
5617
5620
|
}, u;
|
|
5618
5621
|
}
|
|
5619
|
-
const $e =
|
|
5622
|
+
const $e = Ji(on);
|
|
5620
5623
|
$e.Axios = St;
|
|
5621
5624
|
$e.CanceledError = Mt;
|
|
5622
5625
|
$e.CancelToken = Du;
|
|
5623
|
-
$e.isCancel =
|
|
5624
|
-
$e.VERSION =
|
|
5626
|
+
$e.isCancel = Ki;
|
|
5627
|
+
$e.VERSION = Vi;
|
|
5625
5628
|
$e.toFormData = tr;
|
|
5626
5629
|
$e.AxiosError = me;
|
|
5627
5630
|
$e.Cancel = $e.CanceledError;
|
|
@@ -5632,8 +5635,8 @@ $e.spread = Cu;
|
|
|
5632
5635
|
$e.isAxiosError = ju;
|
|
5633
5636
|
$e.mergeConfig = Ot;
|
|
5634
5637
|
$e.AxiosHeaders = Ye;
|
|
5635
|
-
$e.formToJSON = (r) =>
|
|
5636
|
-
$e.getAdapter =
|
|
5638
|
+
$e.formToJSON = (r) => Bi(A.isHTMLForm(r) ? new FormData(r) : r);
|
|
5639
|
+
$e.getAdapter = zi.getAdapter;
|
|
5637
5640
|
$e.HttpStatusCode = Xr;
|
|
5638
5641
|
$e.default = $e;
|
|
5639
5642
|
const {
|
|
@@ -5654,7 +5657,7 @@ const {
|
|
|
5654
5657
|
getAdapter: wc,
|
|
5655
5658
|
mergeConfig: _c
|
|
5656
5659
|
} = $e;
|
|
5657
|
-
class
|
|
5660
|
+
class Gi {
|
|
5658
5661
|
constructor(i) {
|
|
5659
5662
|
Br(this, "storage");
|
|
5660
5663
|
this.storage = i;
|
|
@@ -5679,27 +5682,27 @@ class Vi {
|
|
|
5679
5682
|
this.storage.clear();
|
|
5680
5683
|
}
|
|
5681
5684
|
}
|
|
5682
|
-
const no = new
|
|
5685
|
+
const no = new Gi(localStorage), Xi = new Gi(sessionStorage), Mu = {
|
|
5683
5686
|
local: no,
|
|
5684
|
-
session:
|
|
5687
|
+
session: Xi
|
|
5685
5688
|
}, xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5686
5689
|
__proto__: null,
|
|
5687
5690
|
default: Mu,
|
|
5688
5691
|
local: no,
|
|
5689
|
-
session:
|
|
5690
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5692
|
+
session: Xi
|
|
5693
|
+
}, Symbol.toStringTag, { value: "Module" })), Qi = "access_token", Zi = (r, i = "请求异常.") => r.message ?? r.msg ?? i, sn = $e.create({
|
|
5691
5694
|
baseURL: "",
|
|
5692
5695
|
timeout: 3e3,
|
|
5693
5696
|
headers: { "Content-Type": "application/json" }
|
|
5694
5697
|
}), Nu = () => sn.interceptors.request.use((r) => {
|
|
5695
|
-
const i = no.get(
|
|
5698
|
+
const i = no.get(Qi);
|
|
5696
5699
|
return i && (r.headers.Authorization = `Bearer ${i}`), r;
|
|
5697
5700
|
}), qu = (r) => sn.interceptors.response.use(
|
|
5698
5701
|
(i) => {
|
|
5699
5702
|
const u = i.data;
|
|
5700
5703
|
if (i.status === 200)
|
|
5701
5704
|
return u.data;
|
|
5702
|
-
const a = new Error(
|
|
5705
|
+
const a = new Error(Zi(u));
|
|
5703
5706
|
return r ? r(a) : Promise.reject(a);
|
|
5704
5707
|
},
|
|
5705
5708
|
(i) => r ? r(i) : Promise.reject(i)
|
|
@@ -5712,20 +5715,20 @@ const Fu = (r, i, u) => {
|
|
|
5712
5715
|
})), new Promise((l) => {
|
|
5713
5716
|
Fn.push(() => l(sn(a.config)));
|
|
5714
5717
|
}));
|
|
5715
|
-
},
|
|
5716
|
-
get:
|
|
5717
|
-
post:
|
|
5718
|
-
download:
|
|
5718
|
+
}, es = (r, i) => an({ url: r, method: "GET", params: i }), ts = (r, i) => an({ url: r, method: "POST", data: i }), ns = (r) => (r.responseType ?? (r.responseType = "blob"), an(r)), an = (r) => sn.request(r), Bu = {
|
|
5719
|
+
get: es,
|
|
5720
|
+
post: ts,
|
|
5721
|
+
download: ns,
|
|
5719
5722
|
request: an
|
|
5720
5723
|
}, Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5721
5724
|
__proto__: null,
|
|
5722
|
-
ACCESS_TOKEN:
|
|
5725
|
+
ACCESS_TOKEN: Qi,
|
|
5723
5726
|
axios: sn,
|
|
5724
5727
|
default: Bu,
|
|
5725
|
-
download:
|
|
5726
|
-
get:
|
|
5727
|
-
message:
|
|
5728
|
-
post:
|
|
5728
|
+
download: ns,
|
|
5729
|
+
get: es,
|
|
5730
|
+
message: Zi,
|
|
5731
|
+
post: ts,
|
|
5729
5732
|
request: an,
|
|
5730
5733
|
responseInterceptor: qu,
|
|
5731
5734
|
retry: Fu,
|
|
@@ -5733,22 +5736,22 @@ const Fu = (r, i, u) => {
|
|
|
5733
5736
|
}, Symbol.toStringTag, { value: "Module" })), ro = () => {
|
|
5734
5737
|
const r = decodeURIComponent(location.search);
|
|
5735
5738
|
return new URLSearchParams(r);
|
|
5736
|
-
},
|
|
5739
|
+
}, rs = () => {
|
|
5737
5740
|
let r = {};
|
|
5738
5741
|
for (let [i, u] of ro().entries())
|
|
5739
5742
|
r[i] = u;
|
|
5740
5743
|
return r;
|
|
5741
|
-
},
|
|
5744
|
+
}, os = (r, i, u) => {
|
|
5742
5745
|
i ?? (i = "_blank"), window.open(r, i, u);
|
|
5743
5746
|
}, Ku = {
|
|
5744
5747
|
search: ro,
|
|
5745
|
-
all:
|
|
5746
|
-
open:
|
|
5748
|
+
all: rs,
|
|
5749
|
+
open: os
|
|
5747
5750
|
}, Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5748
5751
|
__proto__: null,
|
|
5749
|
-
all:
|
|
5752
|
+
all: rs,
|
|
5750
5753
|
default: Ku,
|
|
5751
|
-
open:
|
|
5754
|
+
open: os,
|
|
5752
5755
|
search: ro
|
|
5753
5756
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5754
5757
|
export {
|