@uptiqai/widgets-sdk 1.259.0 → 1.264.0
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/headless.js +177 -174
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15724 -15749
- package/dist/index.umd.cjs +146 -146
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -395,7 +395,7 @@ function wg(e, t) {
|
|
|
395
395
|
});
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
let
|
|
398
|
+
let ce = class {
|
|
399
399
|
constructor(t) {
|
|
400
400
|
t && this.set(t);
|
|
401
401
|
}
|
|
@@ -521,7 +521,7 @@ let se = class {
|
|
|
521
521
|
return p.isArray(t) ? t.forEach(o) : o(t), this;
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
-
|
|
524
|
+
ce.accessor([
|
|
525
525
|
"Content-Type",
|
|
526
526
|
"Content-Length",
|
|
527
527
|
"Accept",
|
|
@@ -529,7 +529,7 @@ se.accessor([
|
|
|
529
529
|
"User-Agent",
|
|
530
530
|
"Authorization"
|
|
531
531
|
]);
|
|
532
|
-
p.reduceDescriptors(
|
|
532
|
+
p.reduceDescriptors(ce.prototype, ({ value: e }, t) => {
|
|
533
533
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
534
534
|
return {
|
|
535
535
|
get: () => e,
|
|
@@ -538,7 +538,7 @@ p.reduceDescriptors(se.prototype, ({ value: e }, t) => {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
});
|
|
541
|
-
p.freezeMethods(
|
|
541
|
+
p.freezeMethods(ce);
|
|
542
542
|
const kg = "[REDACTED ****]";
|
|
543
543
|
function Sg(e) {
|
|
544
544
|
if (p.hasOwnProp(e, "toJSON"))
|
|
@@ -555,7 +555,7 @@ function Ig(e, t) {
|
|
|
555
555
|
const r = new Set(t.map((o) => String(o).toLowerCase())), i = [], n = (o) => {
|
|
556
556
|
if (o === null || typeof o != "object" || p.isBuffer(o)) return o;
|
|
557
557
|
if (i.indexOf(o) !== -1) return;
|
|
558
|
-
o instanceof
|
|
558
|
+
o instanceof ce && (o = o.toJSON()), i.push(o);
|
|
559
559
|
let a;
|
|
560
560
|
if (p.isArray(o))
|
|
561
561
|
a = [], o.forEach((s, c) => {
|
|
@@ -872,14 +872,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ag
|
|
|
872
872
|
hasStandardBrowserWebWorkerEnv: Pg,
|
|
873
873
|
navigator: ki,
|
|
874
874
|
origin: Ag
|
|
875
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
875
|
+
}, Symbol.toStringTag, { value: "Module" })), ne = {
|
|
876
876
|
...Rg,
|
|
877
877
|
...jg
|
|
878
878
|
};
|
|
879
879
|
function Cg(e, t) {
|
|
880
|
-
return lr(e, new
|
|
880
|
+
return lr(e, new ne.classes.URLSearchParams(), {
|
|
881
881
|
visitor: function(r, i, n, o) {
|
|
882
|
-
return
|
|
882
|
+
return ne.isNode && p.isBuffer(r) ? (this.append(i, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
883
883
|
},
|
|
884
884
|
...t
|
|
885
885
|
});
|
|
@@ -993,8 +993,8 @@ const nn = {
|
|
|
993
993
|
maxContentLength: -1,
|
|
994
994
|
maxBodyLength: -1,
|
|
995
995
|
env: {
|
|
996
|
-
FormData:
|
|
997
|
-
Blob:
|
|
996
|
+
FormData: ne.classes.FormData,
|
|
997
|
+
Blob: ne.classes.Blob
|
|
998
998
|
},
|
|
999
999
|
validateStatus: function(t) {
|
|
1000
1000
|
return t >= 200 && t < 300;
|
|
@@ -1010,7 +1010,7 @@ p.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => {
|
|
|
1010
1010
|
nn.headers[e] = {};
|
|
1011
1011
|
});
|
|
1012
1012
|
function mi(e, t) {
|
|
1013
|
-
const r = this || nn, i = t || r, n =
|
|
1013
|
+
const r = this || nn, i = t || r, n = ce.from(i.headers);
|
|
1014
1014
|
let o = i.data;
|
|
1015
1015
|
return p.forEach(e, function(s) {
|
|
1016
1016
|
o = s.call(r, o, n.normalize(), t ? t.status : void 0);
|
|
@@ -1106,10 +1106,10 @@ const Hn = (e, t, r = 3) => {
|
|
|
1106
1106
|
}),
|
|
1107
1107
|
t[1]
|
|
1108
1108
|
];
|
|
1109
|
-
}, ys = (e) => (...t) => p.asap(() => e(...t)), Jg =
|
|
1110
|
-
new URL(
|
|
1111
|
-
|
|
1112
|
-
) : () => !0, Vg =
|
|
1109
|
+
}, ys = (e) => (...t) => p.asap(() => e(...t)), Jg = ne.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, ne.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
1110
|
+
new URL(ne.origin),
|
|
1111
|
+
ne.navigator && /(msie|trident)/i.test(ne.navigator.userAgent)
|
|
1112
|
+
) : () => !0, Vg = ne.hasStandardBrowserEnv ? (
|
|
1113
1113
|
// Standard browser envs support document.cookie
|
|
1114
1114
|
{
|
|
1115
1115
|
write(e, t, r, i, n, o, a) {
|
|
@@ -1176,7 +1176,7 @@ function Ac(e, t, r, i) {
|
|
|
1176
1176
|
let n = !Kg(t);
|
|
1177
1177
|
return e && (n || r === !1) ? (_s(e, i), Wg(e, t)) : t;
|
|
1178
1178
|
}
|
|
1179
|
-
const bs = (e) => e instanceof
|
|
1179
|
+
const bs = (e) => e instanceof ce ? { ...e } : e;
|
|
1180
1180
|
function lt(e, t) {
|
|
1181
1181
|
e = e || {}, t = t || {};
|
|
1182
1182
|
const r = /* @__PURE__ */ Object.create(null);
|
|
@@ -1284,7 +1284,7 @@ function Rc(e) {
|
|
|
1284
1284
|
const o = r("xsrfHeaderName"), a = r("xsrfCookieName");
|
|
1285
1285
|
let s = r("headers");
|
|
1286
1286
|
const c = r("auth"), u = r("baseURL"), l = r("allowAbsoluteUrls"), d = r("url");
|
|
1287
|
-
if (t.headers = s =
|
|
1287
|
+
if (t.headers = s = ce.from(s), t.url = Dc(
|
|
1288
1288
|
Ac(u, d, l, t),
|
|
1289
1289
|
r("params"),
|
|
1290
1290
|
r("paramsSerializer")
|
|
@@ -1299,7 +1299,7 @@ function Rc(e) {
|
|
|
1299
1299
|
throw O.from(g, O.ERR_BAD_OPTION_VALUE, e);
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
|
-
if (p.isFormData(i) && (
|
|
1302
|
+
if (p.isFormData(i) && (ne.hasStandardBrowserEnv || ne.hasStandardBrowserWebWorkerEnv || p.isReactNative(i) ? s.setContentType(void 0) : p.isFunction(i.getHeaders) && ev(s, i.getHeaders(), r("formDataHeaderPolicy"))), ne.hasStandardBrowserEnv && (p.isFunction(n) && (n = n(t)), n === !0 || n == null && Jg(t.url))) {
|
|
1303
1303
|
const m = o && a && Vg.read(a);
|
|
1304
1304
|
m && s.set(o, m);
|
|
1305
1305
|
}
|
|
@@ -1309,7 +1309,7 @@ const nv = typeof XMLHttpRequest < "u", rv = nv && function(e) {
|
|
|
1309
1309
|
return new Promise(function(r, i) {
|
|
1310
1310
|
const n = Rc(e);
|
|
1311
1311
|
let o = n.data;
|
|
1312
|
-
const a =
|
|
1312
|
+
const a = ce.from(n.headers).normalize();
|
|
1313
1313
|
let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = n, l, d, f, m, g;
|
|
1314
1314
|
function y() {
|
|
1315
1315
|
m && m(), g && g(), n.cancelToken && n.cancelToken.unsubscribe(l), n.signal && n.signal.removeEventListener("abort", l);
|
|
@@ -1319,7 +1319,7 @@ const nv = typeof XMLHttpRequest < "u", rv = nv && function(e) {
|
|
|
1319
1319
|
function v() {
|
|
1320
1320
|
if (!b)
|
|
1321
1321
|
return;
|
|
1322
|
-
const k =
|
|
1322
|
+
const k = ce.from(
|
|
1323
1323
|
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
1324
1324
|
), j = {
|
|
1325
1325
|
data: !s || s === "text" || s === "json" ? b.responseText : b.response,
|
|
@@ -1363,7 +1363,7 @@ const nv = typeof XMLHttpRequest < "u", rv = nv && function(e) {
|
|
|
1363
1363
|
b && (i(!k || k.type ? new rn(null, e, b) : k), b.abort(), y(), b = null);
|
|
1364
1364
|
}, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l)));
|
|
1365
1365
|
const I = Fg(n.url);
|
|
1366
|
-
if (I && !
|
|
1366
|
+
if (I && !ne.protocols.includes(I)) {
|
|
1367
1367
|
i(
|
|
1368
1368
|
new O(
|
|
1369
1369
|
"Unsupported protocol " + I + ":",
|
|
@@ -1537,7 +1537,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1537
1537
|
return !1;
|
|
1538
1538
|
const l = s && Dn(r), d = s && (typeof i == "function" ? /* @__PURE__ */ ((v) => (I) => v.encode(I))(new i()) : async (v) => new Uint8Array(await new o(v).arrayBuffer())), f = c && l && Ss(() => {
|
|
1539
1539
|
let v = !1;
|
|
1540
|
-
const I = new o(
|
|
1540
|
+
const I = new o(ne.origin, {
|
|
1541
1541
|
body: new r(),
|
|
1542
1542
|
method: "POST",
|
|
1543
1543
|
get duplex() {
|
|
@@ -1566,7 +1566,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1566
1566
|
if (p.isBlob(v))
|
|
1567
1567
|
return v.size;
|
|
1568
1568
|
if (p.isSpecCompliantForm(v))
|
|
1569
|
-
return (await new o(
|
|
1569
|
+
return (await new o(ne.origin, {
|
|
1570
1570
|
method: "POST",
|
|
1571
1571
|
body: v
|
|
1572
1572
|
}).arrayBuffer()).byteLength;
|
|
@@ -1586,7 +1586,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1586
1586
|
signal: j,
|
|
1587
1587
|
cancelToken: x,
|
|
1588
1588
|
timeout: Z,
|
|
1589
|
-
onDownloadProgress:
|
|
1589
|
+
onDownloadProgress: X,
|
|
1590
1590
|
onUploadProgress: Re,
|
|
1591
1591
|
responseType: be,
|
|
1592
1592
|
headers: G,
|
|
@@ -1601,7 +1601,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1601
1601
|
let qe = iv(
|
|
1602
1602
|
[j, x && x.toAbortSignal()],
|
|
1603
1603
|
Z
|
|
1604
|
-
),
|
|
1604
|
+
), ee = null;
|
|
1605
1605
|
const rt = qe && qe.unsubscribe && (() => {
|
|
1606
1606
|
qe.unsubscribe();
|
|
1607
1607
|
});
|
|
@@ -1610,7 +1610,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1610
1610
|
"Request body larger than maxBodyLength limit",
|
|
1611
1611
|
O.ERR_BAD_REQUEST,
|
|
1612
1612
|
v,
|
|
1613
|
-
|
|
1613
|
+
ee
|
|
1614
1614
|
);
|
|
1615
1615
|
try {
|
|
1616
1616
|
let F;
|
|
@@ -1623,7 +1623,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
1625
|
if (dv(I)) {
|
|
1626
|
-
const R = new URL(I,
|
|
1626
|
+
const R = new URL(I, ne.origin);
|
|
1627
1627
|
if (!F && (R.username || R.password)) {
|
|
1628
1628
|
const ge = ks(R.username), Je = ks(R.password);
|
|
1629
1629
|
F = {
|
|
@@ -1641,7 +1641,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1641
1641
|
"maxContentLength size of " + fe + " exceeded",
|
|
1642
1642
|
O.ERR_BAD_RESPONSE,
|
|
1643
1643
|
v,
|
|
1644
|
-
|
|
1644
|
+
ee
|
|
1645
1645
|
);
|
|
1646
1646
|
if (ui && k !== "get" && k !== "head") {
|
|
1647
1647
|
const R = await y(S);
|
|
@@ -1680,7 +1680,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1680
1680
|
"Stream request bodies are not supported by the current fetch implementation",
|
|
1681
1681
|
O.ERR_NOT_SUPPORT,
|
|
1682
1682
|
v,
|
|
1683
|
-
|
|
1683
|
+
ee
|
|
1684
1684
|
);
|
|
1685
1685
|
p.isString(Ce) || (Ce = Ce ? "include" : "omit");
|
|
1686
1686
|
const bh = c && "credentials" in o.prototype;
|
|
@@ -1698,9 +1698,9 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1698
1698
|
duplex: "half",
|
|
1699
1699
|
credentials: bh ? Ce : void 0
|
|
1700
1700
|
};
|
|
1701
|
-
|
|
1702
|
-
let Me = await (c ? os(
|
|
1703
|
-
const us =
|
|
1701
|
+
ee = c && new o(I, cs);
|
|
1702
|
+
let Me = await (c ? os(ee, nt) : os(I, cs));
|
|
1703
|
+
const us = ce.from(Me.headers);
|
|
1704
1704
|
if (L) {
|
|
1705
1705
|
const R = p.toFiniteNumber(us.getContentLength());
|
|
1706
1706
|
if (R != null && R > fe)
|
|
@@ -1708,18 +1708,18 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1708
1708
|
"maxContentLength size of " + fe + " exceeded",
|
|
1709
1709
|
O.ERR_BAD_RESPONSE,
|
|
1710
1710
|
v,
|
|
1711
|
-
|
|
1711
|
+
ee
|
|
1712
1712
|
);
|
|
1713
1713
|
}
|
|
1714
1714
|
const li = m && (be === "stream" || be === "response");
|
|
1715
|
-
if (m && Me.body && (
|
|
1715
|
+
if (m && Me.body && (X || L || li && rt)) {
|
|
1716
1716
|
const R = {};
|
|
1717
1717
|
["status", "statusText", "headers"].forEach((Ct) => {
|
|
1718
1718
|
R[Ct] = Me[Ct];
|
|
1719
1719
|
});
|
|
1720
|
-
const ge = p.toFiniteNumber(us.getContentLength()), [Je, it] =
|
|
1720
|
+
const ge = p.toFiniteNumber(us.getContentLength()), [Je, it] = X && vs(
|
|
1721
1721
|
ge,
|
|
1722
|
-
Hn(ys(
|
|
1722
|
+
Hn(ys(X), !0)
|
|
1723
1723
|
) || [];
|
|
1724
1724
|
let ls = 0;
|
|
1725
1725
|
const $h = (Ct) => {
|
|
@@ -1728,7 +1728,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1728
1728
|
"maxContentLength size of " + fe + " exceeded",
|
|
1729
1729
|
O.ERR_BAD_RESPONSE,
|
|
1730
1730
|
v,
|
|
1731
|
-
|
|
1731
|
+
ee
|
|
1732
1732
|
);
|
|
1733
1733
|
Je && Je(Ct);
|
|
1734
1734
|
};
|
|
@@ -1751,23 +1751,23 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1751
1751
|
"maxContentLength size of " + fe + " exceeded",
|
|
1752
1752
|
O.ERR_BAD_RESPONSE,
|
|
1753
1753
|
v,
|
|
1754
|
-
|
|
1754
|
+
ee
|
|
1755
1755
|
);
|
|
1756
1756
|
}
|
|
1757
1757
|
return !li && rt && rt(), await new Promise((R, ge) => {
|
|
1758
1758
|
Pc(R, ge, {
|
|
1759
1759
|
data: Le,
|
|
1760
|
-
headers:
|
|
1760
|
+
headers: ce.from(Me.headers),
|
|
1761
1761
|
status: Me.status,
|
|
1762
1762
|
statusText: Me.statusText,
|
|
1763
1763
|
config: v,
|
|
1764
|
-
request:
|
|
1764
|
+
request: ee
|
|
1765
1765
|
});
|
|
1766
1766
|
});
|
|
1767
1767
|
} catch (F) {
|
|
1768
1768
|
if (rt && rt(), qe && qe.aborted && qe.reason instanceof O) {
|
|
1769
1769
|
const $e = qe.reason;
|
|
1770
|
-
throw $e.config = v,
|
|
1770
|
+
throw $e.config = v, ee && ($e.request = ee), F !== $e && Object.defineProperty($e, "cause", {
|
|
1771
1771
|
__proto__: null,
|
|
1772
1772
|
value: F,
|
|
1773
1773
|
writable: !0,
|
|
@@ -1776,15 +1776,15 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1776
1776
|
}), $e;
|
|
1777
1777
|
}
|
|
1778
1778
|
if (Rt)
|
|
1779
|
-
throw
|
|
1779
|
+
throw ee && !Rt.request && (Rt.request = ee), Rt;
|
|
1780
1780
|
if (F instanceof O)
|
|
1781
|
-
throw
|
|
1781
|
+
throw ee && !F.request && (F.request = ee), F;
|
|
1782
1782
|
if (F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message)) {
|
|
1783
1783
|
const $e = new O(
|
|
1784
1784
|
"Network Error",
|
|
1785
1785
|
O.ERR_NETWORK,
|
|
1786
1786
|
v,
|
|
1787
|
-
|
|
1787
|
+
ee,
|
|
1788
1788
|
F && F.response
|
|
1789
1789
|
);
|
|
1790
1790
|
throw Object.defineProperty($e, "cause", {
|
|
@@ -1795,7 +1795,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, lv = (e) => encodeU
|
|
|
1795
1795
|
configurable: !0
|
|
1796
1796
|
}), $e;
|
|
1797
1797
|
}
|
|
1798
|
-
throw O.from(F, F && F.code, v,
|
|
1798
|
+
throw O.from(F, F && F.code, v, ee, F && F.response);
|
|
1799
1799
|
}
|
|
1800
1800
|
};
|
|
1801
1801
|
}, mv = /* @__PURE__ */ new Map(), Cc = (e) => {
|
|
@@ -1869,7 +1869,7 @@ function pi(e) {
|
|
|
1869
1869
|
throw new rn(null, e);
|
|
1870
1870
|
}
|
|
1871
1871
|
function zs(e) {
|
|
1872
|
-
return pi(e), e.headers =
|
|
1872
|
+
return pi(e), e.headers = ce.from(e.headers), e.data = mi.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Mc.getAdapter(e.adapter || nn.adapter, e)(e).then(
|
|
1873
1873
|
function(i) {
|
|
1874
1874
|
pi(e), e.response = i;
|
|
1875
1875
|
try {
|
|
@@ -1877,7 +1877,7 @@ function zs(e) {
|
|
|
1877
1877
|
} finally {
|
|
1878
1878
|
delete e.response;
|
|
1879
1879
|
}
|
|
1880
|
-
return i.headers =
|
|
1880
|
+
return i.headers = ce.from(i.headers), i;
|
|
1881
1881
|
},
|
|
1882
1882
|
function(i) {
|
|
1883
1883
|
if (!Uc(i) && (pi(e), i && i.response)) {
|
|
@@ -1891,7 +1891,7 @@ function zs(e) {
|
|
|
1891
1891
|
} finally {
|
|
1892
1892
|
delete e.response;
|
|
1893
1893
|
}
|
|
1894
|
-
i.response.headers =
|
|
1894
|
+
i.response.headers = ce.from(i.response.headers);
|
|
1895
1895
|
}
|
|
1896
1896
|
return Promise.reject(i);
|
|
1897
1897
|
}
|
|
@@ -1948,7 +1948,7 @@ function gv(e, t, r) {
|
|
|
1948
1948
|
const Ln = {
|
|
1949
1949
|
assertOptions: gv,
|
|
1950
1950
|
validators: dr
|
|
1951
|
-
},
|
|
1951
|
+
}, oe = Ln.validators;
|
|
1952
1952
|
let st = class {
|
|
1953
1953
|
constructor(t) {
|
|
1954
1954
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -2000,12 +2000,12 @@ let st = class {
|
|
|
2000
2000
|
i !== void 0 && Ln.assertOptions(
|
|
2001
2001
|
i,
|
|
2002
2002
|
{
|
|
2003
|
-
silentJSONParsing:
|
|
2004
|
-
forcedJSONParsing:
|
|
2005
|
-
clarifyTimeoutError:
|
|
2006
|
-
legacyInterceptorReqResOrdering:
|
|
2007
|
-
advertiseZstdAcceptEncoding:
|
|
2008
|
-
validateStatusUndefinedResolves:
|
|
2003
|
+
silentJSONParsing: oe.transitional(oe.boolean),
|
|
2004
|
+
forcedJSONParsing: oe.transitional(oe.boolean),
|
|
2005
|
+
clarifyTimeoutError: oe.transitional(oe.boolean),
|
|
2006
|
+
legacyInterceptorReqResOrdering: oe.transitional(oe.boolean),
|
|
2007
|
+
advertiseZstdAcceptEncoding: oe.transitional(oe.boolean),
|
|
2008
|
+
validateStatusUndefinedResolves: oe.transitional(oe.boolean)
|
|
2009
2009
|
},
|
|
2010
2010
|
!1
|
|
2011
2011
|
), n != null && (p.isFunction(n) ? r.paramsSerializer = {
|
|
@@ -2013,22 +2013,22 @@ let st = class {
|
|
|
2013
2013
|
} : Ln.assertOptions(
|
|
2014
2014
|
n,
|
|
2015
2015
|
{
|
|
2016
|
-
encode:
|
|
2017
|
-
serialize:
|
|
2016
|
+
encode: oe.function,
|
|
2017
|
+
serialize: oe.function
|
|
2018
2018
|
},
|
|
2019
2019
|
!0
|
|
2020
2020
|
)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Ln.assertOptions(
|
|
2021
2021
|
r,
|
|
2022
2022
|
{
|
|
2023
|
-
baseUrl:
|
|
2024
|
-
withXsrfToken:
|
|
2023
|
+
baseUrl: oe.spelling("baseURL"),
|
|
2024
|
+
withXsrfToken: oe.spelling("withXSRFToken")
|
|
2025
2025
|
},
|
|
2026
2026
|
!0
|
|
2027
2027
|
), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
2028
2028
|
let a = o && p.merge(o.common, o[r.method]);
|
|
2029
2029
|
o && p.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (g) => {
|
|
2030
2030
|
delete o[g];
|
|
2031
|
-
}), r.headers =
|
|
2031
|
+
}), r.headers = ce.concat(a, o);
|
|
2032
2032
|
const s = [];
|
|
2033
2033
|
let c = !0;
|
|
2034
2034
|
this.interceptors.request.forEach(function(y) {
|
|
@@ -2279,7 +2279,7 @@ W.all = function(t) {
|
|
|
2279
2279
|
W.spread = yv;
|
|
2280
2280
|
W.isAxiosError = _v;
|
|
2281
2281
|
W.mergeConfig = lt;
|
|
2282
|
-
W.AxiosHeaders =
|
|
2282
|
+
W.AxiosHeaders = ce;
|
|
2283
2283
|
W.formToJSON = (e) => jc(p.isHTMLForm(e) ? new FormData(e) : e);
|
|
2284
2284
|
W.getAdapter = Mc.getAdapter;
|
|
2285
2285
|
W.HttpStatusCode = Si;
|
|
@@ -4687,7 +4687,7 @@ class pr extends Error {
|
|
|
4687
4687
|
}
|
|
4688
4688
|
(Us = globalThis).__zod_globalConfig ?? (Us.__zod_globalConfig = {});
|
|
4689
4689
|
const Jt = globalThis.__zod_globalConfig;
|
|
4690
|
-
function
|
|
4690
|
+
function ie(e) {
|
|
4691
4691
|
return e && Object.assign(Jt, e), Jt;
|
|
4692
4692
|
}
|
|
4693
4693
|
function yy(e) {
|
|
@@ -5304,7 +5304,7 @@ const an = (e) => (t, r, i, n) => {
|
|
|
5304
5304
|
if (a instanceof Promise)
|
|
5305
5305
|
throw new ct();
|
|
5306
5306
|
if (a.issues.length) {
|
|
5307
|
-
const s = new (n?.Err ?? e)(a.issues.map((c) => ve(c, o,
|
|
5307
|
+
const s = new (n?.Err ?? e)(a.issues.map((c) => ve(c, o, ie())));
|
|
5308
5308
|
throw ao(s, n?.callee), s;
|
|
5309
5309
|
}
|
|
5310
5310
|
return a.value;
|
|
@@ -5312,7 +5312,7 @@ const an = (e) => (t, r, i, n) => {
|
|
|
5312
5312
|
const o = i ? { ...i, async: !0 } : { async: !0 };
|
|
5313
5313
|
let a = t._zod.run({ value: r, issues: [] }, o);
|
|
5314
5314
|
if (a instanceof Promise && (a = await a), a.issues.length) {
|
|
5315
|
-
const s = new (n?.Err ?? e)(a.issues.map((c) => ve(c, o,
|
|
5315
|
+
const s = new (n?.Err ?? e)(a.issues.map((c) => ve(c, o, ie())));
|
|
5316
5316
|
throw ao(s, n?.callee), s;
|
|
5317
5317
|
}
|
|
5318
5318
|
return a.value;
|
|
@@ -5322,14 +5322,14 @@ const an = (e) => (t, r, i, n) => {
|
|
|
5322
5322
|
throw new ct();
|
|
5323
5323
|
return o.issues.length ? {
|
|
5324
5324
|
success: !1,
|
|
5325
|
-
error: new (e ?? so)(o.issues.map((a) => ve(a, n,
|
|
5325
|
+
error: new (e ?? so)(o.issues.map((a) => ve(a, n, ie())))
|
|
5326
5326
|
} : { success: !0, data: o.value };
|
|
5327
5327
|
}, Iu = /* @__PURE__ */ cn(ye), un = (e) => async (t, r, i) => {
|
|
5328
5328
|
const n = i ? { ...i, async: !0 } : { async: !0 };
|
|
5329
5329
|
let o = t._zod.run({ value: r, issues: [] }, n);
|
|
5330
5330
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
5331
5331
|
success: !1,
|
|
5332
|
-
error: new e(o.issues.map((a) => ve(a, n,
|
|
5332
|
+
error: new e(o.issues.map((a) => ve(a, n, ie())))
|
|
5333
5333
|
} : { success: !0, data: o.value };
|
|
5334
5334
|
}, zu = /* @__PURE__ */ un(ye), lo = (e) => (t, r, i) => {
|
|
5335
5335
|
const n = i ? { ...i, direction: "backward" } : { direction: "backward" };
|
|
@@ -6409,8 +6409,8 @@ const pd = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
6409
6409
|
b[k] = `key_${v++}`;
|
|
6410
6410
|
m.write("const newResult = {};");
|
|
6411
6411
|
for (const k of g.keys) {
|
|
6412
|
-
const S = b[k], j = Di(k), x = f[k], Z = x?._zod?.optin === "optional",
|
|
6413
|
-
m.write(`const ${S} = ${y(k)};`), Z &&
|
|
6412
|
+
const S = b[k], j = Di(k), x = f[k], Z = x?._zod?.optin === "optional", X = x?._zod?.optout === "optional";
|
|
6413
|
+
m.write(`const ${S} = ${y(k)};`), Z && X ? m.write(`
|
|
6414
6414
|
if (${S}.issues.length) {
|
|
6415
6415
|
if (${j} in input) {
|
|
6416
6416
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
@@ -6498,7 +6498,7 @@ function Cs(e, t, r, i) {
|
|
|
6498
6498
|
code: "invalid_union",
|
|
6499
6499
|
input: t.value,
|
|
6500
6500
|
inst: r,
|
|
6501
|
-
errors: e.map((o) => o.issues.map((a) => ve(a, i,
|
|
6501
|
+
errors: e.map((o) => o.issues.map((a) => ve(a, i, ie())))
|
|
6502
6502
|
}), t);
|
|
6503
6503
|
}
|
|
6504
6504
|
const _r = /* @__PURE__ */ h("$ZodUnion", (e, t) => {
|
|
@@ -6539,7 +6539,7 @@ function Ms(e, t, r, i) {
|
|
|
6539
6539
|
code: "invalid_union",
|
|
6540
6540
|
input: t.value,
|
|
6541
6541
|
inst: r,
|
|
6542
|
-
errors: e.map((o) => o.issues.map((a) => ve(a, i,
|
|
6542
|
+
errors: e.map((o) => o.issues.map((a) => ve(a, i, ie())))
|
|
6543
6543
|
}) : t.issues.push({
|
|
6544
6544
|
code: "invalid_union",
|
|
6545
6545
|
input: t.value,
|
|
@@ -6783,7 +6783,7 @@ const _d = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
|
|
|
6783
6783
|
r.issues.push({
|
|
6784
6784
|
code: "invalid_key",
|
|
6785
6785
|
origin: "record",
|
|
6786
|
-
issues: l.issues.map((m) => ve(m, i,
|
|
6786
|
+
issues: l.issues.map((m) => ve(m, i, ie())),
|
|
6787
6787
|
input: u,
|
|
6788
6788
|
path: [u],
|
|
6789
6789
|
inst: e
|
|
@@ -6822,7 +6822,7 @@ const _d = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
|
|
|
6822
6822
|
t.mode === "loose" ? r.value[s] = n[s] : r.issues.push({
|
|
6823
6823
|
code: "invalid_key",
|
|
6824
6824
|
origin: "record",
|
|
6825
|
-
issues: c.issues.map((d) => ve(d, i,
|
|
6825
|
+
issues: c.issues.map((d) => ve(d, i, ie())),
|
|
6826
6826
|
input: s,
|
|
6827
6827
|
path: [s],
|
|
6828
6828
|
inst: e
|
|
@@ -6864,14 +6864,14 @@ function qs(e, t, r, i, n, o, a) {
|
|
|
6864
6864
|
origin: "map",
|
|
6865
6865
|
input: n,
|
|
6866
6866
|
inst: o,
|
|
6867
|
-
issues: e.issues.map((s) => ve(s, a,
|
|
6867
|
+
issues: e.issues.map((s) => ve(s, a, ie()))
|
|
6868
6868
|
})), t.issues.length && (Yn.has(typeof i) ? r.issues.push(...ke(i, t.issues)) : r.issues.push({
|
|
6869
6869
|
origin: "map",
|
|
6870
6870
|
code: "invalid_element",
|
|
6871
6871
|
input: n,
|
|
6872
6872
|
inst: o,
|
|
6873
6873
|
key: i,
|
|
6874
|
-
issues: t.issues.map((s) => ve(s, a,
|
|
6874
|
+
issues: t.issues.map((s) => ve(s, a, ie()))
|
|
6875
6875
|
})), r.value.set(e.value, t.value);
|
|
6876
6876
|
}
|
|
6877
6877
|
const $d = /* @__PURE__ */ h("$ZodSet", (e, t) => {
|
|
@@ -7011,13 +7011,13 @@ const Dd = /* @__PURE__ */ h("$ZodSuccess", (e, t) => {
|
|
|
7011
7011
|
return n instanceof Promise ? n.then((o) => (r.value = o.value, o.issues.length && (r.value = t.catchValue({
|
|
7012
7012
|
...r,
|
|
7013
7013
|
error: {
|
|
7014
|
-
issues: o.issues.map((a) => ve(a, i,
|
|
7014
|
+
issues: o.issues.map((a) => ve(a, i, ie()))
|
|
7015
7015
|
},
|
|
7016
7016
|
input: r.value
|
|
7017
7017
|
}), r.issues = [], r.fallback = !0), r)) : (r.value = n.value, n.issues.length && (r.value = t.catchValue({
|
|
7018
7018
|
...r,
|
|
7019
7019
|
error: {
|
|
7020
|
-
issues: n.issues.map((o) => ve(o, i,
|
|
7020
|
+
issues: n.issues.map((o) => ve(o, i, ie()))
|
|
7021
7021
|
},
|
|
7022
7022
|
input: r.value
|
|
7023
7023
|
}), r.issues = [], r.fallback = !0), r);
|
|
@@ -12860,7 +12860,7 @@ function B(e, t, r = { path: [], schemaPath: [] }) {
|
|
|
12860
12860
|
d && (a.ref || (a.ref = d), B(d, t, l), t.seen.get(d).isParent = !0);
|
|
12861
12861
|
}
|
|
12862
12862
|
const c = t.metadataRegistry.get(e);
|
|
12863
|
-
return c && Object.assign(a.schema, c), t.io === "input" &&
|
|
12863
|
+
return c && Object.assign(a.schema, c), t.io === "input" && le(e) && (delete a.schema.examples, delete a.schema.default), t.io === "input" && "_prefault" in a.schema && ((i = a.schema).default ?? (i.default = a.schema._prefault)), delete a.schema._prefault, t.seen.get(e).schema;
|
|
12864
12864
|
}
|
|
12865
12865
|
function Ot(e, t) {
|
|
12866
12866
|
const r = e.seen.get(t);
|
|
@@ -13002,7 +13002,7 @@ function xt(e, t) {
|
|
|
13002
13002
|
throw new Error("Error converting schema to JSON.");
|
|
13003
13003
|
}
|
|
13004
13004
|
}
|
|
13005
|
-
function
|
|
13005
|
+
function le(e, t) {
|
|
13006
13006
|
const r = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
13007
13007
|
if (r.seen.has(e))
|
|
13008
13008
|
return !1;
|
|
@@ -13011,36 +13011,36 @@ function ue(e, t) {
|
|
|
13011
13011
|
if (i.type === "transform")
|
|
13012
13012
|
return !0;
|
|
13013
13013
|
if (i.type === "array")
|
|
13014
|
-
return
|
|
13014
|
+
return le(i.element, r);
|
|
13015
13015
|
if (i.type === "set")
|
|
13016
|
-
return
|
|
13016
|
+
return le(i.valueType, r);
|
|
13017
13017
|
if (i.type === "lazy")
|
|
13018
|
-
return
|
|
13018
|
+
return le(i.getter(), r);
|
|
13019
13019
|
if (i.type === "promise" || i.type === "optional" || i.type === "nonoptional" || i.type === "nullable" || i.type === "readonly" || i.type === "default" || i.type === "prefault")
|
|
13020
|
-
return
|
|
13020
|
+
return le(i.innerType, r);
|
|
13021
13021
|
if (i.type === "intersection")
|
|
13022
|
-
return
|
|
13022
|
+
return le(i.left, r) || le(i.right, r);
|
|
13023
13023
|
if (i.type === "record" || i.type === "map")
|
|
13024
|
-
return
|
|
13024
|
+
return le(i.keyType, r) || le(i.valueType, r);
|
|
13025
13025
|
if (i.type === "pipe")
|
|
13026
|
-
return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
13026
|
+
return e._zod.traits.has("$ZodCodec") ? !0 : le(i.in, r) || le(i.out, r);
|
|
13027
13027
|
if (i.type === "object") {
|
|
13028
13028
|
for (const n in i.shape)
|
|
13029
|
-
if (
|
|
13029
|
+
if (le(i.shape[n], r))
|
|
13030
13030
|
return !0;
|
|
13031
13031
|
return !1;
|
|
13032
13032
|
}
|
|
13033
13033
|
if (i.type === "union") {
|
|
13034
13034
|
for (const n of i.options)
|
|
13035
|
-
if (
|
|
13035
|
+
if (le(n, r))
|
|
13036
13036
|
return !0;
|
|
13037
13037
|
return !1;
|
|
13038
13038
|
}
|
|
13039
13039
|
if (i.type === "tuple") {
|
|
13040
13040
|
for (const n of i.items)
|
|
13041
|
-
if (
|
|
13041
|
+
if (le(n, r))
|
|
13042
13042
|
return !0;
|
|
13043
|
-
return !!(i.rest &&
|
|
13043
|
+
return !!(i.rest && le(i.rest, r));
|
|
13044
13044
|
}
|
|
13045
13045
|
return !1;
|
|
13046
13046
|
}
|
|
@@ -13656,7 +13656,7 @@ const D0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13656
13656
|
_xid: qo,
|
|
13657
13657
|
_xor: s0,
|
|
13658
13658
|
clone: ze,
|
|
13659
|
-
config:
|
|
13659
|
+
config: ie,
|
|
13660
13660
|
createStandardJSONSchemaMethod: Vt,
|
|
13661
13661
|
createToJSONSchemaMethod: Pf,
|
|
13662
13662
|
decode: Cy,
|
|
@@ -14982,12 +14982,12 @@ const P0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14982
14982
|
custom: "custom"
|
|
14983
14983
|
};
|
|
14984
14984
|
function R0(e) {
|
|
14985
|
-
|
|
14985
|
+
ie({
|
|
14986
14986
|
customError: e
|
|
14987
14987
|
});
|
|
14988
14988
|
}
|
|
14989
14989
|
function C0() {
|
|
14990
|
-
return
|
|
14990
|
+
return ie().customError;
|
|
14991
14991
|
}
|
|
14992
14992
|
var Ai;
|
|
14993
14993
|
Ai || (Ai = {});
|
|
@@ -15110,7 +15110,7 @@ function Yp(e, t) {
|
|
|
15110
15110
|
return t.refs.get(n);
|
|
15111
15111
|
});
|
|
15112
15112
|
t.processing.add(n);
|
|
15113
|
-
const o = Z0(n, t), a =
|
|
15113
|
+
const o = Z0(n, t), a = ae(o, t);
|
|
15114
15114
|
return t.refs.set(n, a), t.processing.delete(n), a;
|
|
15115
15115
|
}
|
|
15116
15116
|
if (e.enum !== void 0) {
|
|
@@ -15166,11 +15166,11 @@ function Yp(e, t) {
|
|
|
15166
15166
|
case "object": {
|
|
15167
15167
|
const n = {}, o = e.properties || {}, a = new Set(e.required || []);
|
|
15168
15168
|
for (const [c, u] of Object.entries(o)) {
|
|
15169
|
-
const l =
|
|
15169
|
+
const l = ae(u, t);
|
|
15170
15170
|
n[c] = a.has(c) ? l : l.optional();
|
|
15171
15171
|
}
|
|
15172
15172
|
if (e.propertyNames) {
|
|
15173
|
-
const c =
|
|
15173
|
+
const c = ae(e.propertyNames, t), u = e.additionalProperties && typeof e.additionalProperties == "object" ? ae(e.additionalProperties, t) : z.any();
|
|
15174
15174
|
if (Object.keys(n).length === 0) {
|
|
15175
15175
|
i = z.record(c, u);
|
|
15176
15176
|
break;
|
|
@@ -15182,7 +15182,7 @@ function Yp(e, t) {
|
|
|
15182
15182
|
if (e.patternProperties) {
|
|
15183
15183
|
const c = e.patternProperties, u = Object.keys(c), l = [];
|
|
15184
15184
|
for (const f of u) {
|
|
15185
|
-
const m =
|
|
15185
|
+
const m = ae(c[f], t), g = z.string().regex(new RegExp(f));
|
|
15186
15186
|
l.push(z.looseRecord(g, m));
|
|
15187
15187
|
}
|
|
15188
15188
|
const d = [];
|
|
@@ -15199,19 +15199,19 @@ function Yp(e, t) {
|
|
|
15199
15199
|
break;
|
|
15200
15200
|
}
|
|
15201
15201
|
const s = z.object(n);
|
|
15202
|
-
e.additionalProperties === !1 ? i = s.strict() : typeof e.additionalProperties == "object" ? i = s.catchall(
|
|
15202
|
+
e.additionalProperties === !1 ? i = s.strict() : typeof e.additionalProperties == "object" ? i = s.catchall(ae(e.additionalProperties, t)) : i = s.passthrough();
|
|
15203
15203
|
break;
|
|
15204
15204
|
}
|
|
15205
15205
|
case "array": {
|
|
15206
15206
|
const n = e.prefixItems, o = e.items;
|
|
15207
15207
|
if (n && Array.isArray(n)) {
|
|
15208
|
-
const a = n.map((c) =>
|
|
15208
|
+
const a = n.map((c) => ae(c, t)), s = o && typeof o == "object" && !Array.isArray(o) ? ae(o, t) : void 0;
|
|
15209
15209
|
s ? i = z.tuple(a).rest(s) : i = z.tuple(a), typeof e.minItems == "number" && (i = i.check(z.minLength(e.minItems))), typeof e.maxItems == "number" && (i = i.check(z.maxLength(e.maxItems)));
|
|
15210
15210
|
} else if (Array.isArray(o)) {
|
|
15211
|
-
const a = o.map((c) =>
|
|
15211
|
+
const a = o.map((c) => ae(c, t)), s = e.additionalItems && typeof e.additionalItems == "object" ? ae(e.additionalItems, t) : void 0;
|
|
15212
15212
|
s ? i = z.tuple(a).rest(s) : i = z.tuple(a), typeof e.minItems == "number" && (i = i.check(z.minLength(e.minItems))), typeof e.maxItems == "number" && (i = i.check(z.maxLength(e.maxItems)));
|
|
15213
15213
|
} else if (o !== void 0) {
|
|
15214
|
-
const a =
|
|
15214
|
+
const a = ae(o, t);
|
|
15215
15215
|
let s = z.array(a);
|
|
15216
15216
|
typeof e.minItems == "number" && (s = s.min(e.minItems)), typeof e.maxItems == "number" && (s = s.max(e.maxItems)), i = s;
|
|
15217
15217
|
} else
|
|
@@ -15223,27 +15223,27 @@ function Yp(e, t) {
|
|
|
15223
15223
|
}
|
|
15224
15224
|
return i;
|
|
15225
15225
|
}
|
|
15226
|
-
function
|
|
15226
|
+
function ae(e, t) {
|
|
15227
15227
|
if (typeof e == "boolean")
|
|
15228
15228
|
return e ? z.any() : z.never();
|
|
15229
15229
|
let r = Yp(e, t);
|
|
15230
15230
|
const i = e.type || e.enum !== void 0 || e.const !== void 0;
|
|
15231
15231
|
if (e.anyOf && Array.isArray(e.anyOf)) {
|
|
15232
|
-
const s = e.anyOf.map((u) =>
|
|
15232
|
+
const s = e.anyOf.map((u) => ae(u, t)), c = z.union(s);
|
|
15233
15233
|
r = i ? z.intersection(r, c) : c;
|
|
15234
15234
|
}
|
|
15235
15235
|
if (e.oneOf && Array.isArray(e.oneOf)) {
|
|
15236
|
-
const s = e.oneOf.map((u) =>
|
|
15236
|
+
const s = e.oneOf.map((u) => ae(u, t)), c = z.xor(s);
|
|
15237
15237
|
r = i ? z.intersection(r, c) : c;
|
|
15238
15238
|
}
|
|
15239
15239
|
if (e.allOf && Array.isArray(e.allOf))
|
|
15240
15240
|
if (e.allOf.length === 0)
|
|
15241
15241
|
r = i ? r : z.any();
|
|
15242
15242
|
else {
|
|
15243
|
-
let s = i ? r :
|
|
15243
|
+
let s = i ? r : ae(e.allOf[0], t);
|
|
15244
15244
|
const c = i ? 0 : 1;
|
|
15245
15245
|
for (let u = c; u < e.allOf.length; u++)
|
|
15246
|
-
s = z.intersection(s,
|
|
15246
|
+
s = z.intersection(s, ae(e.allOf[u], t));
|
|
15247
15247
|
r = s;
|
|
15248
15248
|
}
|
|
15249
15249
|
e.nullable === !0 && t.version === "openapi-3.0" && (r = z.nullable(r)), e.readOnly === !0 && (r = z.readonly(r)), e.default !== void 0 && (r = r.default(e.default));
|
|
@@ -15274,7 +15274,7 @@ function F0(e, t) {
|
|
|
15274
15274
|
rootSchema: r,
|
|
15275
15275
|
registry: t?.registry ?? Se
|
|
15276
15276
|
};
|
|
15277
|
-
return
|
|
15277
|
+
return ae(r, o);
|
|
15278
15278
|
}
|
|
15279
15279
|
function B0(e) {
|
|
15280
15280
|
return /* @__PURE__ */ Hd(_n, e);
|
|
@@ -15299,8 +15299,8 @@ const W0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15299
15299
|
number: q0,
|
|
15300
15300
|
string: B0
|
|
15301
15301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15302
|
-
|
|
15303
|
-
const
|
|
15302
|
+
ie(Zd());
|
|
15303
|
+
const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15304
15304
|
__proto__: null,
|
|
15305
15305
|
$brand: nu,
|
|
15306
15306
|
$input: Vd,
|
|
@@ -15402,7 +15402,7 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15402
15402
|
clone: ze,
|
|
15403
15403
|
codec: Lp,
|
|
15404
15404
|
coerce: W0,
|
|
15405
|
-
config:
|
|
15405
|
+
config: ie,
|
|
15406
15406
|
core: T0,
|
|
15407
15407
|
cuid: Wm,
|
|
15408
15408
|
cuid2: Hm,
|
|
@@ -15542,25 +15542,25 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15542
15542
|
void: wp,
|
|
15543
15543
|
xid: Qm,
|
|
15544
15544
|
xor: xp
|
|
15545
|
-
}, Symbol.toStringTag, { value: "Module" })), H0 =
|
|
15546
|
-
agentId:
|
|
15547
|
-
widgetKey:
|
|
15548
|
-
serverUrl:
|
|
15549
|
-
appId:
|
|
15550
|
-
accountId:
|
|
15551
|
-
appWidgetKey:
|
|
15552
|
-
variables:
|
|
15553
|
-
}), G0 =
|
|
15554
|
-
uid:
|
|
15555
|
-
firstName:
|
|
15556
|
-
email:
|
|
15557
|
-
lastName:
|
|
15545
|
+
}, Symbol.toStringTag, { value: "Module" })), H0 = se.object({
|
|
15546
|
+
agentId: se.string({ error: "Agent ID is required" }).min(1, "Agent ID is required"),
|
|
15547
|
+
widgetKey: se.string({ error: "Widget Key is required" }).min(1, "Widget Key is required"),
|
|
15548
|
+
serverUrl: se.url("Server URL must be a valid URL"),
|
|
15549
|
+
appId: se.string({ error: "App ID is required" }).optional(),
|
|
15550
|
+
accountId: se.string({ error: "Account ID is required" }).optional(),
|
|
15551
|
+
appWidgetKey: se.string({ error: "App Widget Key is required" }).optional(),
|
|
15552
|
+
variables: se.record(se.string(), se.string()).optional()
|
|
15553
|
+
}), G0 = se.object({
|
|
15554
|
+
uid: se.string({ error: "User UID is required" }).min(1, "User UID is required"),
|
|
15555
|
+
firstName: se.string({ error: "User first name is required" }).min(1, "User first name is required"),
|
|
15556
|
+
email: se.email({ error: "Invalid user email" }).min(1, "User email is required"),
|
|
15557
|
+
lastName: se.string().optional()
|
|
15558
15558
|
}), Q0 = (e) => {
|
|
15559
15559
|
const { config: t, user: r } = e || {};
|
|
15560
15560
|
try {
|
|
15561
15561
|
H0.parse(t), G0.parse(r);
|
|
15562
15562
|
} catch (i) {
|
|
15563
|
-
if (i instanceof
|
|
15563
|
+
if (i instanceof se.ZodError) {
|
|
15564
15564
|
const n = JSON.parse(i.message).map((o) => o.message).join(", ");
|
|
15565
15565
|
throw new Error(n);
|
|
15566
15566
|
}
|
|
@@ -15624,11 +15624,11 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15624
15624
|
e.clear();
|
|
15625
15625
|
}
|
|
15626
15626
|
};
|
|
15627
|
-
},
|
|
15627
|
+
}, te = [];
|
|
15628
15628
|
for (let e = 0; e < 256; ++e)
|
|
15629
|
-
|
|
15629
|
+
te.push((e + 256).toString(16).slice(1));
|
|
15630
15630
|
function n$(e, t = 0) {
|
|
15631
|
-
return (
|
|
15631
|
+
return (te[e[t + 0]] + te[e[t + 1]] + te[e[t + 2]] + te[e[t + 3]] + "-" + te[e[t + 4]] + te[e[t + 5]] + "-" + te[e[t + 6]] + te[e[t + 7]] + "-" + te[e[t + 8]] + te[e[t + 9]] + "-" + te[e[t + 10]] + te[e[t + 11]] + te[e[t + 12]] + te[e[t + 13]] + te[e[t + 14]] + te[e[t + 15]]).toLowerCase();
|
|
15632
15632
|
}
|
|
15633
15633
|
let _i;
|
|
15634
15634
|
const r$ = new Uint8Array(16);
|
|
@@ -15714,7 +15714,7 @@ var _t = 9e15, tt = 1e9, Ci = "0123456789abcdef", ir = "2.3025850929940456840179
|
|
|
15714
15714
|
// Whether to use cryptographically-secure random number generation, if available.
|
|
15715
15715
|
crypto: !1
|
|
15716
15716
|
// true/false
|
|
15717
|
-
}, eh, Ze, U = !0, ii = "[DecimalError] ", Xe = ii + "Invalid argument: ", th = ii + "Precision limit exceeded", nh = ii + "crypto unavailable", rh = "[object Decimal]",
|
|
15717
|
+
}, eh, Ze, U = !0, ii = "[DecimalError] ", Xe = ii + "Invalid argument: ", th = ii + "Precision limit exceeded", nh = ii + "crypto unavailable", rh = "[object Decimal]", ue = Math.floor, Y = Math.pow, s$ = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, c$ = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, u$ = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, ih = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Ee = 1e7, D = 7, l$ = 9007199254740991, d$ = ir.length - 1, Li = or.length - 1, $ = { toStringTag: rh };
|
|
15718
15718
|
$.absoluteValue = $.abs = function() {
|
|
15719
15719
|
var e = new this.constructor(this);
|
|
15720
15720
|
return e.s < 0 && (e.s = 1), E(e);
|
|
@@ -15746,8 +15746,8 @@ $.cosine = $.cos = function() {
|
|
|
15746
15746
|
$.cubeRoot = $.cbrt = function() {
|
|
15747
15747
|
var e, t, r, i, n, o, a, s, c, u, l = this, d = l.constructor;
|
|
15748
15748
|
if (!l.isFinite() || l.isZero()) return new d(l);
|
|
15749
|
-
for (U = !1, o = l.s * Y(l.s * l, 1 / 3), !o || Math.abs(o) == 1 / 0 ? (r =
|
|
15750
|
-
if (s = i, c = s.times(s).times(s), u = c.plus(l), i = q(u.plus(l).times(s), u.plus(c), a + 2, 1),
|
|
15749
|
+
for (U = !1, o = l.s * Y(l.s * l, 1 / 3), !o || Math.abs(o) == 1 / 0 ? (r = re(l.d), e = l.e, (o = (e - r.length + 1) % 3) && (r += o == 1 || o == -2 ? "0" : "00"), o = Y(r, 1 / 3), e = ue((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), o == 1 / 0 ? r = "5e" + e : (r = o.toExponential(), r = r.slice(0, r.indexOf("e") + 1) + e), i = new d(r), i.s = l.s) : i = new d(o.toString()), a = (e = d.precision) + 3; ; )
|
|
15750
|
+
if (s = i, c = s.times(s).times(s), u = c.plus(l), i = q(u.plus(l).times(s), u.plus(c), a + 2, 1), re(s.d).slice(0, a) === (r = re(i.d)).slice(0, a))
|
|
15751
15751
|
if (r = r.slice(a - 3, a + 1), r == "9999" || !n && r == "4999") {
|
|
15752
15752
|
if (!n && (E(s, e + 1, 0), s.times(s).times(s).eq(l))) {
|
|
15753
15753
|
i = s;
|
|
@@ -15763,7 +15763,7 @@ $.cubeRoot = $.cbrt = function() {
|
|
|
15763
15763
|
$.decimalPlaces = $.dp = function() {
|
|
15764
15764
|
var e, t = this.d, r = NaN;
|
|
15765
15765
|
if (t) {
|
|
15766
|
-
if (e = t.length - 1, r = (e -
|
|
15766
|
+
if (e = t.length - 1, r = (e - ue(this.e / D)) * D, e = t[e], e) for (; e % 10 == 0; e /= 10) r--;
|
|
15767
15767
|
r < 0 && (r = 0);
|
|
15768
15768
|
}
|
|
15769
15769
|
return r;
|
|
@@ -15854,7 +15854,7 @@ $.isFinite = function() {
|
|
|
15854
15854
|
return !!this.d;
|
|
15855
15855
|
};
|
|
15856
15856
|
$.isInteger = $.isInt = function() {
|
|
15857
|
-
return !!this.d &&
|
|
15857
|
+
return !!this.d && ue(this.e / D) > this.d.length - 2;
|
|
15858
15858
|
};
|
|
15859
15859
|
$.isNaN = function() {
|
|
15860
15860
|
return !this.s;
|
|
@@ -15894,7 +15894,7 @@ $.logarithm = $.log = function(e) {
|
|
|
15894
15894
|
if (U = !1, s = d + m, a = We(u, s), i = t ? ar(l, s + 10) : We(e, s), c = q(a, i, s, 1), Qt(c.d, n = d, f))
|
|
15895
15895
|
do
|
|
15896
15896
|
if (s += 10, a = We(u, s), i = t ? ar(l, s + 10) : We(e, s), c = q(a, i, s, 1), !o) {
|
|
15897
|
-
+
|
|
15897
|
+
+re(c.d).slice(n + 1, n + 15) + 1 == 1e14 && (c = E(c, d + 1, 0));
|
|
15898
15898
|
break;
|
|
15899
15899
|
}
|
|
15900
15900
|
while (Qt(c.d, n += 10, f));
|
|
@@ -15912,7 +15912,7 @@ $.minus = $.sub = function(e) {
|
|
|
15912
15912
|
else return new g(c === 3 ? -0 : 0);
|
|
15913
15913
|
return U ? E(e, s, c) : e;
|
|
15914
15914
|
}
|
|
15915
|
-
if (r =
|
|
15915
|
+
if (r = ue(e.e / D), l = ue(m.e / D), u = u.slice(), o = l - r, o) {
|
|
15916
15916
|
for (d = o < 0, d ? (t = u, o = -o, a = f.length) : (t = f, r = l, a = u.length), i = Math.max(Math.ceil(s / D), a) + 2, o > i && (o = i, t.length = 1), t.reverse(), i = o; i--; ) t.push(0);
|
|
15917
15917
|
t.reverse();
|
|
15918
15918
|
} else {
|
|
@@ -15957,7 +15957,7 @@ $.plus = $.add = function(e) {
|
|
|
15957
15957
|
return e.s = -e.s, d.minus(e);
|
|
15958
15958
|
if (u = d.d, l = e.d, s = f.precision, c = f.rounding, !u[0] || !l[0])
|
|
15959
15959
|
return l[0] || (e = new f(d)), U ? E(e, s, c) : e;
|
|
15960
|
-
if (o =
|
|
15960
|
+
if (o = ue(d.e / D), i = ue(e.e / D), u = u.slice(), n = o - i, n) {
|
|
15961
15961
|
for (n < 0 ? (r = u, n = -n, a = l.length) : (r = l, i = o, a = u.length), o = Math.ceil(s / D), a = o > a ? o + 1 : a + 1, n > a && (n = a, r.length = 1), r.reverse(); n--; ) r.push(0);
|
|
15962
15962
|
r.reverse();
|
|
15963
15963
|
}
|
|
@@ -15983,8 +15983,8 @@ $.squareRoot = $.sqrt = function() {
|
|
|
15983
15983
|
var e, t, r, i, n, o, a = this, s = a.d, c = a.e, u = a.s, l = a.constructor;
|
|
15984
15984
|
if (u !== 1 || !s || !s[0])
|
|
15985
15985
|
return new l(!u || u < 0 && (!s || s[0]) ? NaN : s ? a : 1 / 0);
|
|
15986
|
-
for (U = !1, u = Math.sqrt(+a), u == 0 || u == 1 / 0 ? (t =
|
|
15987
|
-
if (o = i, i = o.plus(q(a, o, r + 2, 1)).times(0.5),
|
|
15986
|
+
for (U = !1, u = Math.sqrt(+a), u == 0 || u == 1 / 0 ? (t = re(s), (t.length + c) % 2 == 0 && (t += "0"), u = Math.sqrt(t), c = ue((c + 1) / 2) - (c < 0 || c % 2), u == 1 / 0 ? t = "5e" + c : (t = u.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), i = new l(t)) : i = new l(u.toString()), r = (c = l.precision) + 3; ; )
|
|
15987
|
+
if (o = i, i = o.plus(q(a, o, r + 2, 1)).times(0.5), re(o.d).slice(0, r) === (t = re(i.d)).slice(0, r))
|
|
15988
15988
|
if (t = t.slice(r - 3, r + 1), t == "9999" || !n && t == "4999") {
|
|
15989
15989
|
if (!n && (E(o, c + 1, 0), o.times(o).eq(a))) {
|
|
15990
15990
|
i = o;
|
|
@@ -16005,7 +16005,7 @@ $.times = $.mul = function(e) {
|
|
|
16005
16005
|
var t, r, i, n, o, a, s, c, u, l = this, d = l.constructor, f = l.d, m = (e = new d(e)).d;
|
|
16006
16006
|
if (e.s *= l.s, !f || !f[0] || !m || !m[0])
|
|
16007
16007
|
return new d(!e.s || f && !f[0] && !m || m && !m[0] && !f ? NaN : !f || !m ? e.s / 0 : e.s * 0);
|
|
16008
|
-
for (r =
|
|
16008
|
+
for (r = ue(l.e / D) + ue(e.e / D), c = f.length, u = m.length, c < u && (o = f, f = m, m = o, a = c, c = u, u = a), o = [], a = c + u, i = a; i--; ) o.push(0);
|
|
16009
16009
|
for (i = u; --i >= 0; ) {
|
|
16010
16010
|
for (t = 0, n = c + i; n > i; )
|
|
16011
16011
|
s = o[n] + m[i] * f[n - i - 1] + t, o[n--] = s % Ee | 0, t = s / Ee | 0;
|
|
@@ -16038,7 +16038,7 @@ $.toFraction = function(e) {
|
|
|
16038
16038
|
if (s = new y(e), !s.isInt() || s.lt(u)) throw Error(Xe + s);
|
|
16039
16039
|
e = s.gt(t) ? o > 0 ? t : u : s;
|
|
16040
16040
|
}
|
|
16041
|
-
for (U = !1, s = new y(
|
|
16041
|
+
for (U = !1, s = new y(re(g)), l = y.precision, y.precision = o = g.length * D * 2; d = q(s, t, 0, 1, 1), n = r.plus(d.times(i)), n.cmp(e) != 1; )
|
|
16042
16042
|
r = i, i = n, n = u, u = c.plus(d.times(n)), c = n, n = t, t = s.minus(d.times(n)), s = n;
|
|
16043
16043
|
return n = q(e.minus(r), i, 0, 1, 1), c = c.plus(n.times(u)), r = r.plus(n.times(i)), c.s = u.s = m.s, f = q(u, i, o, 1).minus(m).abs().cmp(q(c, r, o, 1).minus(m).abs()) < 1 ? [u, i] : [c, r], y.precision = l, U = !0, f;
|
|
16044
16044
|
};
|
|
@@ -16068,14 +16068,14 @@ $.toPower = $.pow = function(e) {
|
|
|
16068
16068
|
if (!s.d || !e.d || !s.d[0] || !e.d[0]) return new c(Y(+s, u));
|
|
16069
16069
|
if (s = new c(s), s.eq(1)) return s;
|
|
16070
16070
|
if (i = c.precision, o = c.rounding, e.eq(1)) return E(s, i, o);
|
|
16071
|
-
if (t =
|
|
16071
|
+
if (t = ue(e.e / D), t >= e.d.length - 1 && (r = u < 0 ? -u : u) <= l$)
|
|
16072
16072
|
return n = ah(c, s, r, i), e.s < 0 ? new c(1).div(n) : E(n, i, o);
|
|
16073
16073
|
if (a = s.s, a < 0) {
|
|
16074
16074
|
if (t < e.d.length - 1) return new c(NaN);
|
|
16075
16075
|
if ((e.d[t] & 1) == 0 && (a = 1), s.e == 0 && s.d[0] == 1 && s.d.length == 1)
|
|
16076
16076
|
return s.s = a, s;
|
|
16077
16077
|
}
|
|
16078
|
-
return r = Y(+s, u), t = r == 0 || !isFinite(r) ?
|
|
16078
|
+
return r = Y(+s, u), t = r == 0 || !isFinite(r) ? ue(u * (Math.log("0." + re(s.d)) / Math.LN10 + s.e + 1)) : new c(r + "").e, t > c.maxE + 1 || t < c.minE - 1 ? new c(t > 0 ? a / 0 : 0) : (U = !1, c.rounding = s.s = 1, r = Math.min(12, (t + "").length), n = Zi(e.times(We(s, i + r)), i), n.d && (n = E(n, i + 5, 1), Qt(n.d, i, o) && (t = i + 10, n = E(Zi(e.times(We(s, t + r)), t), t + 5, 1), +re(n.d).slice(i + 1, i + 15) + 1 == 1e14 && (n = E(n, i + 1, 0)))), n.s = a, U = !0, c.rounding = o, E(n, i, o));
|
|
16079
16079
|
};
|
|
16080
16080
|
$.toPrecision = function(e, t) {
|
|
16081
16081
|
var r, i = this, n = i.constructor;
|
|
@@ -16096,7 +16096,7 @@ $.valueOf = $.toJSON = function() {
|
|
|
16096
16096
|
var e = this, t = e.constructor, r = Pe(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
|
|
16097
16097
|
return e.isNeg() ? "-" + r : r;
|
|
16098
16098
|
};
|
|
16099
|
-
function
|
|
16099
|
+
function re(e) {
|
|
16100
16100
|
var t, r, i, n = e.length - 1, o = "", a = e[0];
|
|
16101
16101
|
if (n > 0) {
|
|
16102
16102
|
for (o += a, t = 1; t < n; t++)
|
|
@@ -16159,7 +16159,7 @@ var q = /* @__PURE__ */ (function() {
|
|
|
16159
16159
|
for (; !i[0] && i.length > 1; ) i.shift();
|
|
16160
16160
|
}
|
|
16161
16161
|
return function(i, n, o, a, s, c) {
|
|
16162
|
-
var u, l, d, f, m, g, y, b, v, I, k, S, j, x, Z,
|
|
16162
|
+
var u, l, d, f, m, g, y, b, v, I, k, S, j, x, Z, X, Re, be, G, Ce, nt = i.constructor, fe = i.s == n.s ? 1 : -1, H = i.d, L = n.d;
|
|
16163
16163
|
if (!H || !H[0] || !L || !L[0])
|
|
16164
16164
|
return new nt(
|
|
16165
16165
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -16168,7 +16168,7 @@ var q = /* @__PURE__ */ (function() {
|
|
|
16168
16168
|
H && H[0] == 0 || !L ? fe * 0 : fe / 0
|
|
16169
16169
|
)
|
|
16170
16170
|
);
|
|
16171
|
-
for (c ? (m = 1, l = i.e - n.e) : (c = Ee, m = D, l =
|
|
16171
|
+
for (c ? (m = 1, l = i.e - n.e) : (c = Ee, m = D, l = ue(i.e / m) - ue(n.e / m)), G = L.length, Re = H.length, v = new nt(fe), I = v.d = [], d = 0; L[d] == (H[d] || 0); d++) ;
|
|
16172
16172
|
if (L[d] > (H[d] || 0) && l--, o == null ? (x = o = nt.precision, a = nt.rounding) : s ? x = o + (i.e - n.e) + 1 : x = o, x < 0)
|
|
16173
16173
|
I.push(1), g = !0;
|
|
16174
16174
|
else {
|
|
@@ -16177,11 +16177,11 @@ var q = /* @__PURE__ */ (function() {
|
|
|
16177
16177
|
Z = f * c + (H[d] || 0), I[d] = Z / L | 0, f = Z % L | 0;
|
|
16178
16178
|
g = f || d < Re;
|
|
16179
16179
|
} else {
|
|
16180
|
-
for (f = c / (L[0] + 1) | 0, f > 1 && (L = e(L, f, c), H = e(H, f, c), G = L.length, Re = H.length),
|
|
16180
|
+
for (f = c / (L[0] + 1) | 0, f > 1 && (L = e(L, f, c), H = e(H, f, c), G = L.length, Re = H.length), X = G, k = H.slice(0, G), S = k.length; S < G; ) k[S++] = 0;
|
|
16181
16181
|
Ce = L.slice(), Ce.unshift(0), be = L[0], L[1] >= c / 2 && ++be;
|
|
16182
16182
|
do
|
|
16183
|
-
f = 0, u = t(L, k, G, S), u < 0 ? (j = k[0], G != S && (j = j * c + (k[1] || 0)), f = j / be | 0, f > 1 ? (f >= c && (f = c - 1), y = e(L, f, c), b = y.length, S = k.length, u = t(y, k, b, S), u == 1 && (f--, r(y, G < b ? Ce : L, b, c))) : (f == 0 && (u = f = 1), y = L.slice()), b = y.length, b < S && y.unshift(0), r(k, y, S, c), u == -1 && (S = k.length, u = t(L, k, G, S), u < 1 && (f++, r(k, G < S ? Ce : L, S, c))), S = k.length) : u === 0 && (f++, k = [0]), I[d++] = f, u && k[0] ? k[S++] = H[
|
|
16184
|
-
while ((
|
|
16183
|
+
f = 0, u = t(L, k, G, S), u < 0 ? (j = k[0], G != S && (j = j * c + (k[1] || 0)), f = j / be | 0, f > 1 ? (f >= c && (f = c - 1), y = e(L, f, c), b = y.length, S = k.length, u = t(y, k, b, S), u == 1 && (f--, r(y, G < b ? Ce : L, b, c))) : (f == 0 && (u = f = 1), y = L.slice()), b = y.length, b < S && y.unshift(0), r(k, y, S, c), u == -1 && (S = k.length, u = t(L, k, G, S), u < 1 && (f++, r(k, G < S ? Ce : L, S, c))), S = k.length) : u === 0 && (f++, k = [0]), I[d++] = f, u && k[0] ? k[S++] = H[X] || 0 : (k = [H[X]], S = 1);
|
|
16184
|
+
while ((X++ < Re || k[0] !== void 0) && x--);
|
|
16185
16185
|
g = k[0] !== void 0;
|
|
16186
16186
|
}
|
|
16187
16187
|
I[0] || I.shift();
|
|
@@ -16232,7 +16232,7 @@ function E(e, t, r, i) {
|
|
|
16232
16232
|
}
|
|
16233
16233
|
function Pe(e, t, r) {
|
|
16234
16234
|
if (!e.isFinite()) return ch(e);
|
|
16235
|
-
var i, n = e.e, o =
|
|
16235
|
+
var i, n = e.e, o = re(e.d), a = o.length;
|
|
16236
16236
|
return t ? (r && (i = r - a) > 0 ? o = o.charAt(0) + "." + o.slice(1) + Ve(i) : a > 1 && (o = o.charAt(0) + "." + o.slice(1)), o = o + (e.e < 0 ? "e" : "e+") + e.e) : n < 0 ? (o = "0." + Ve(-n - 1) + o, r && (i = r - a) > 0 && (o += Ve(i))) : n >= a ? (o += Ve(n + 1 - a), r && (i = r - n - 1) > 0 && (o = o + "." + Ve(i))) : ((i = n + 1) < a && (o = o.slice(0, i) + "." + o.slice(i)), r && (i = r - a) > 0 && (n + 1 === a && (o += "."), o += Ve(i))), o;
|
|
16237
16237
|
}
|
|
16238
16238
|
function oi(e, t) {
|
|
@@ -16264,7 +16264,7 @@ function Ve(e) {
|
|
|
16264
16264
|
function ah(e, t, r, i) {
|
|
16265
16265
|
var n, o = new e(1), a = Math.ceil(i / D + 4);
|
|
16266
16266
|
for (U = !1; ; ) {
|
|
16267
|
-
if (r % 2 && (o = o.times(t), ac(o.d, a) && (n = !0)), r =
|
|
16267
|
+
if (r % 2 && (o = o.times(t), ac(o.d, a) && (n = !0)), r = ue(r / 2), r === 0) {
|
|
16268
16268
|
r = o.d.length - 1, n && o.d[r] === 0 && ++o.d[r];
|
|
16269
16269
|
break;
|
|
16270
16270
|
}
|
|
@@ -16292,7 +16292,7 @@ function Zi(e, t) {
|
|
|
16292
16292
|
for (t == null ? (U = !1, c = g) : c = t, s = new f(0.03125); e.e > -2; )
|
|
16293
16293
|
e = e.times(s), d += 5;
|
|
16294
16294
|
for (i = Math.log(Y(2, d)) / Math.LN10 * 2 + 5 | 0, c += i, r = o = a = new f(1), f.precision = c; ; ) {
|
|
16295
|
-
if (o = E(o.times(e), c, 1), r = r.times(++l), s = a.plus(q(o, r, c, 1)),
|
|
16295
|
+
if (o = E(o.times(e), c, 1), r = r.times(++l), s = a.plus(q(o, r, c, 1)), re(s.d).slice(0, c) === re(a.d).slice(0, c)) {
|
|
16296
16296
|
for (n = d; n--; ) a = E(a.times(a), c, 1);
|
|
16297
16297
|
if (t == null)
|
|
16298
16298
|
if (u < 3 && Qt(a.d, c - i, m, u))
|
|
@@ -16309,14 +16309,14 @@ function We(e, t) {
|
|
|
16309
16309
|
var r, i, n, o, a, s, c, u, l, d, f, m = 1, g = 10, y = e, b = y.d, v = y.constructor, I = v.rounding, k = v.precision;
|
|
16310
16310
|
if (y.s < 0 || !b || !b[0] || !y.e && b[0] == 1 && b.length == 1)
|
|
16311
16311
|
return new v(b && !b[0] ? -1 / 0 : y.s != 1 ? NaN : b ? 0 : y);
|
|
16312
|
-
if (t == null ? (U = !1, l = k) : l = t, v.precision = l += g, r =
|
|
16312
|
+
if (t == null ? (U = !1, l = k) : l = t, v.precision = l += g, r = re(b), i = r.charAt(0), Math.abs(o = y.e) < 15e14) {
|
|
16313
16313
|
for (; i < 7 && i != 1 || i == 1 && r.charAt(1) > 3; )
|
|
16314
|
-
y = y.times(e), r =
|
|
16314
|
+
y = y.times(e), r = re(y.d), i = r.charAt(0), m++;
|
|
16315
16315
|
o = y.e, i > 1 ? (y = new v("0." + r), o++) : y = new v(i + "." + r.slice(1));
|
|
16316
16316
|
} else
|
|
16317
16317
|
return u = ar(v, l + 2, k).times(o + ""), y = We(new v(i + "." + r.slice(1)), l - g).plus(u), v.precision = k, t == null ? E(y, k, I, U = !0) : y;
|
|
16318
16318
|
for (d = y, c = a = y = q(y.minus(1), y.plus(1), l, 1), f = E(y.times(y), l, 1), n = 3; ; ) {
|
|
16319
|
-
if (a = E(a.times(f), l, 1), u = c.plus(q(a, new v(n), l, 1)),
|
|
16319
|
+
if (a = E(a.times(f), l, 1), u = c.plus(q(a, new v(n), l, 1)), re(u.d).slice(0, l) === re(c.d).slice(0, l))
|
|
16320
16320
|
if (c = c.times(2), o !== 0 && (c = c.plus(ar(v, l + 2, k).times(o + ""))), c = q(c, new v(m), l, 1), t == null)
|
|
16321
16321
|
if (Qt(c.d, l - g, I, s))
|
|
16322
16322
|
v.precision = l += g, u = a = y = q(d.minus(1), d.plus(1), l, 1), f = E(y.times(y), l, 1), n = s = 1;
|
|
@@ -16502,7 +16502,7 @@ function O$(e) {
|
|
|
16502
16502
|
];
|
|
16503
16503
|
for (t = 0; t < o.length; t += 3)
|
|
16504
16504
|
if (r = o[t], n && (this[r] = Mi[r]), (i = e[r]) !== void 0)
|
|
16505
|
-
if (
|
|
16505
|
+
if (ue(i) === i && i >= o[t + 1] && i <= o[t + 2]) this[r] = i;
|
|
16506
16506
|
else throw Error(Xe + r + ": " + i);
|
|
16507
16507
|
if (r = "crypto", n && (this[r] = Mi[r]), (i = e[r]) !== void 0)
|
|
16508
16508
|
if (i === !0 || i === !1 || i === 0 || i === 1)
|
|
@@ -17093,7 +17093,7 @@ function bw() {
|
|
|
17093
17093
|
}
|
|
17094
17094
|
};
|
|
17095
17095
|
}
|
|
17096
|
-
var
|
|
17096
|
+
var de = bw(), $w = class extends ci {
|
|
17097
17097
|
#e = !0;
|
|
17098
17098
|
#t;
|
|
17099
17099
|
#n;
|
|
@@ -17560,7 +17560,7 @@ var Iw = class extends gh {
|
|
|
17560
17560
|
};
|
|
17561
17561
|
}
|
|
17562
17562
|
};
|
|
17563
|
-
this.state = t(this.state),
|
|
17563
|
+
this.state = t(this.state), de.batch(() => {
|
|
17564
17564
|
this.observers.forEach((r) => {
|
|
17565
17565
|
r.onQueryUpdate();
|
|
17566
17566
|
}), this.#i.notify({ query: this, type: "updated", action: e });
|
|
@@ -17812,7 +17812,7 @@ var Ow = class extends gh {
|
|
|
17812
17812
|
};
|
|
17813
17813
|
}
|
|
17814
17814
|
};
|
|
17815
|
-
this.state = t(this.state),
|
|
17815
|
+
this.state = t(this.state), de.batch(() => {
|
|
17816
17816
|
this.#t.forEach((r) => {
|
|
17817
17817
|
r.onMutationUpdate(e);
|
|
17818
17818
|
}), this.#n.notify({
|
|
@@ -17891,7 +17891,7 @@ var vh = class extends ci {
|
|
|
17891
17891
|
return typeof t == "string" ? this.#t.get(t)?.find((i) => i !== e && i.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
17892
17892
|
}
|
|
17893
17893
|
clear() {
|
|
17894
|
-
|
|
17894
|
+
de.batch(() => {
|
|
17895
17895
|
this.#e.forEach((e) => {
|
|
17896
17896
|
this.notify({ type: "removed", mutation: e });
|
|
17897
17897
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -17910,7 +17910,7 @@ var vh = class extends ci {
|
|
|
17910
17910
|
return this.getAll().filter((t) => uc(e, t));
|
|
17911
17911
|
}
|
|
17912
17912
|
notify(e) {
|
|
17913
|
-
|
|
17913
|
+
de.batch(() => {
|
|
17914
17914
|
this.listeners.forEach((t) => {
|
|
17915
17915
|
t(e);
|
|
17916
17916
|
});
|
|
@@ -17918,7 +17918,7 @@ var vh = class extends ci {
|
|
|
17918
17918
|
}
|
|
17919
17919
|
resumePausedMutations() {
|
|
17920
17920
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
|
17921
|
-
return
|
|
17921
|
+
return de.batch(
|
|
17922
17922
|
() => Promise.all(
|
|
17923
17923
|
e.map((t) => t.continue().catch(Oe))
|
|
17924
17924
|
)
|
|
@@ -17956,7 +17956,7 @@ var yh = class extends ci {
|
|
|
17956
17956
|
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
17957
17957
|
}
|
|
17958
17958
|
clear() {
|
|
17959
|
-
|
|
17959
|
+
de.batch(() => {
|
|
17960
17960
|
this.getAll().forEach((e) => {
|
|
17961
17961
|
this.remove(e);
|
|
17962
17962
|
});
|
|
@@ -17979,21 +17979,21 @@ var yh = class extends ci {
|
|
|
17979
17979
|
return Object.keys(e).length > 0 ? t.filter((r) => cc(e, r)) : t;
|
|
17980
17980
|
}
|
|
17981
17981
|
notify(e) {
|
|
17982
|
-
|
|
17982
|
+
de.batch(() => {
|
|
17983
17983
|
this.listeners.forEach((t) => {
|
|
17984
17984
|
t(e);
|
|
17985
17985
|
});
|
|
17986
17986
|
});
|
|
17987
17987
|
}
|
|
17988
17988
|
onFocus() {
|
|
17989
|
-
|
|
17989
|
+
de.batch(() => {
|
|
17990
17990
|
this.getAll().forEach((e) => {
|
|
17991
17991
|
e.onFocus();
|
|
17992
17992
|
});
|
|
17993
17993
|
});
|
|
17994
17994
|
}
|
|
17995
17995
|
onOnline() {
|
|
17996
|
-
|
|
17996
|
+
de.batch(() => {
|
|
17997
17997
|
this.getAll().forEach((e) => {
|
|
17998
17998
|
e.onOnline();
|
|
17999
17999
|
});
|
|
@@ -18056,7 +18056,7 @@ var yh = class extends ci {
|
|
|
18056
18056
|
return this.#e.build(this, i).setData(a, { ...r, manual: !0 });
|
|
18057
18057
|
}
|
|
18058
18058
|
setQueriesData(e, t, r) {
|
|
18059
|
-
return
|
|
18059
|
+
return de.batch(
|
|
18060
18060
|
() => this.#e.findAll(e).map(({ queryKey: i }) => [
|
|
18061
18061
|
i,
|
|
18062
18062
|
this.setQueryData(i, t, r)
|
|
@@ -18071,7 +18071,7 @@ var yh = class extends ci {
|
|
|
18071
18071
|
}
|
|
18072
18072
|
removeQueries(e) {
|
|
18073
18073
|
const t = this.#e;
|
|
18074
|
-
|
|
18074
|
+
de.batch(() => {
|
|
18075
18075
|
t.findAll(e).forEach((r) => {
|
|
18076
18076
|
t.remove(r);
|
|
18077
18077
|
});
|
|
@@ -18079,7 +18079,7 @@ var yh = class extends ci {
|
|
|
18079
18079
|
}
|
|
18080
18080
|
resetQueries(e, t) {
|
|
18081
18081
|
const r = this.#e;
|
|
18082
|
-
return
|
|
18082
|
+
return de.batch(() => (r.findAll(e).forEach((i) => {
|
|
18083
18083
|
i.reset();
|
|
18084
18084
|
}), this.refetchQueries(
|
|
18085
18085
|
{
|
|
@@ -18090,13 +18090,13 @@ var yh = class extends ci {
|
|
|
18090
18090
|
)));
|
|
18091
18091
|
}
|
|
18092
18092
|
cancelQueries(e, t = {}) {
|
|
18093
|
-
const r = { revert: !0, ...t }, i =
|
|
18093
|
+
const r = { revert: !0, ...t }, i = de.batch(
|
|
18094
18094
|
() => this.#e.findAll(e).map((n) => n.cancel(r))
|
|
18095
18095
|
);
|
|
18096
18096
|
return Promise.all(i).then(Oe).catch(Oe);
|
|
18097
18097
|
}
|
|
18098
18098
|
invalidateQueries(e, t = {}) {
|
|
18099
|
-
return
|
|
18099
|
+
return de.batch(() => (this.#e.findAll(e).forEach((r) => {
|
|
18100
18100
|
r.invalidate();
|
|
18101
18101
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
|
|
18102
18102
|
{
|
|
@@ -18110,7 +18110,7 @@ var yh = class extends ci {
|
|
|
18110
18110
|
const r = {
|
|
18111
18111
|
...t,
|
|
18112
18112
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
18113
|
-
}, i =
|
|
18113
|
+
}, i = de.batch(
|
|
18114
18114
|
() => this.#e.findAll(e).filter((n) => !n.isDisabled() && !n.isStatic()).map((n) => {
|
|
18115
18115
|
let o = n.fetch(void 0, r);
|
|
18116
18116
|
return r.throwOnError || (o = o.catch(Oe)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
@@ -18275,19 +18275,21 @@ const bi = () => {
|
|
|
18275
18275
|
}, m = (x) => {
|
|
18276
18276
|
c?.();
|
|
18277
18277
|
const Z = Uw(x);
|
|
18278
|
-
o.on(Z, f)
|
|
18278
|
+
o.on(Z, f);
|
|
18279
|
+
const X = () => {
|
|
18279
18280
|
o.off(Z, f);
|
|
18280
18281
|
};
|
|
18282
|
+
return c = X, X;
|
|
18281
18283
|
}, g = () => {
|
|
18282
18284
|
u?.(), u = void 0;
|
|
18283
18285
|
}, y = (x) => {
|
|
18284
18286
|
g();
|
|
18285
|
-
const Z = Pw(x),
|
|
18287
|
+
const Z = Pw(x), X = () => {
|
|
18286
18288
|
d.notifyListeners({ executionId: x });
|
|
18287
18289
|
};
|
|
18288
|
-
o.on(Z,
|
|
18289
|
-
o.off(Z,
|
|
18290
|
-
},
|
|
18290
|
+
o.on(Z, X), u = () => {
|
|
18291
|
+
o.off(Z, X);
|
|
18292
|
+
}, X();
|
|
18291
18293
|
}, b = nw({
|
|
18292
18294
|
socket: o,
|
|
18293
18295
|
agentId: t.agentId,
|
|
@@ -18318,6 +18320,7 @@ const bi = () => {
|
|
|
18318
18320
|
return {
|
|
18319
18321
|
emit: I,
|
|
18320
18322
|
on: v,
|
|
18323
|
+
subscribeToConversation: m,
|
|
18321
18324
|
cleanup: () => {
|
|
18322
18325
|
c?.(), g(), l.clearListeners(), d.clearListeners();
|
|
18323
18326
|
},
|