@uptiqai/widgets-sdk 1.244.0 → 1.250.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 +242 -238
- package/dist/index.css +1 -1
- package/dist/index.js +24260 -24148
- package/dist/index.umd.cjs +181 -181
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -87,7 +87,7 @@ function bc(e, t) {
|
|
|
87
87
|
return n;
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const ot = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $c = (e) => !$t(e) && e !== ot;
|
|
91
91
|
function $i(...e) {
|
|
92
92
|
const { caseless: t, skipUndefined: r } = $c(this) && this || {}, i = {}, n = (o, a) => {
|
|
93
93
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
@@ -228,15 +228,15 @@ const ag = (e) => {
|
|
|
228
228
|
return i;
|
|
229
229
|
};
|
|
230
230
|
return r(e);
|
|
231
|
-
}, sg = Ee("AsyncFunction"), cg = (e) => e && (jt(e) || me(e)) && me(e.then) && me(e.catch), kc = ((e, t) => e ? setImmediate : t ? ((r, i) => (
|
|
231
|
+
}, sg = Ee("AsyncFunction"), cg = (e) => e && (jt(e) || me(e)) && me(e.then) && me(e.catch), kc = ((e, t) => e ? setImmediate : t ? ((r, i) => (ot.addEventListener(
|
|
232
232
|
"message",
|
|
233
233
|
({ source: n, data: o }) => {
|
|
234
|
-
n ===
|
|
234
|
+
n === ot && o === r && i.length && i.shift()();
|
|
235
235
|
},
|
|
236
236
|
!1
|
|
237
237
|
), (n) => {
|
|
238
|
-
i.push(n),
|
|
239
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", me(
|
|
238
|
+
i.push(n), ot.postMessage(r, "*");
|
|
239
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", me(ot.postMessage)), ug = typeof queueMicrotask < "u" ? queueMicrotask.bind(ot) : typeof process < "u" && process.nextTick || kc, Sc = (e) => e != null && me(e[en]), lg = (e) => e != null && qt(e, en) && Sc(e), p = {
|
|
240
240
|
isArray: ut,
|
|
241
241
|
isArrayBuffer: yc,
|
|
242
242
|
isBuffer: Tt,
|
|
@@ -290,7 +290,7 @@ const ag = (e) => {
|
|
|
290
290
|
noop: rg,
|
|
291
291
|
toFiniteNumber: ig,
|
|
292
292
|
findKey: bc,
|
|
293
|
-
global:
|
|
293
|
+
global: ot,
|
|
294
294
|
isContextDefined: $c,
|
|
295
295
|
isSpecCompliantForm: og,
|
|
296
296
|
toJSONObject: ag,
|
|
@@ -707,12 +707,12 @@ function lr(e, t, r) {
|
|
|
707
707
|
if (c === 1 / 0)
|
|
708
708
|
return JSON.stringify(v);
|
|
709
709
|
const w = [];
|
|
710
|
-
return JSON.stringify(v, function(T,
|
|
711
|
-
if (!p.isObject(
|
|
712
|
-
return
|
|
710
|
+
return JSON.stringify(v, function(T, P) {
|
|
711
|
+
if (!p.isObject(P))
|
|
712
|
+
return P;
|
|
713
713
|
for (; w.length && w[w.length - 1] !== this; )
|
|
714
714
|
w.pop();
|
|
715
|
-
return w.push(
|
|
715
|
+
return w.push(P), f(S + w.length - 1), P;
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
function g(v, S, w) {
|
|
@@ -723,11 +723,11 @@ function lr(e, t, r) {
|
|
|
723
723
|
if (p.endsWith(S, "{}"))
|
|
724
724
|
S = i ? S : S.slice(0, -2), v = m(v, 1);
|
|
725
725
|
else if (p.isArray(v) && zg(v) || (p.isFileList(v) || p.endsWith(S, "[]")) && (I = p.toArray(v)))
|
|
726
|
-
return S = xc(S), I.forEach(function(
|
|
727
|
-
!(p.isUndefined(
|
|
726
|
+
return S = xc(S), I.forEach(function(P, ce) {
|
|
727
|
+
!(p.isUndefined(P) || P === null) && t.append(
|
|
728
728
|
// eslint-disable-next-line no-nested-ternary
|
|
729
729
|
a === !0 ? fi([S], ce, o) : a === null ? S : S + "[]",
|
|
730
|
-
d(
|
|
730
|
+
d(P)
|
|
731
731
|
);
|
|
732
732
|
}), !1;
|
|
733
733
|
}
|
|
@@ -742,8 +742,8 @@ function lr(e, t, r) {
|
|
|
742
742
|
if (!p.isUndefined(v)) {
|
|
743
743
|
if (f(w), l.indexOf(v) !== -1)
|
|
744
744
|
throw new Error("Circular reference detected in " + S.join("."));
|
|
745
|
-
l.push(v), p.forEach(v, function(T,
|
|
746
|
-
(!(p.isUndefined(T) || T === null) && n.call(t, T, p.isString(
|
|
745
|
+
l.push(v), p.forEach(v, function(T, P) {
|
|
746
|
+
(!(p.isUndefined(T) || T === null) && n.call(t, T, p.isString(P) ? P.trim() : P, S, y)) === !0 && b(T, S ? S.concat(P) : [P], w + 1);
|
|
747
747
|
}), l.pop();
|
|
748
748
|
}
|
|
749
749
|
}
|
|
@@ -1344,8 +1344,8 @@ const tv = typeof XMLHttpRequest < "u", nv = tv && function(e) {
|
|
|
1344
1344
|
}, b.onabort = function() {
|
|
1345
1345
|
b && (i(new O("Request aborted", O.ECONNABORTED, e, b)), y(), b = null);
|
|
1346
1346
|
}, b.onerror = function(I) {
|
|
1347
|
-
const T = I && I.message ? I.message : "Network Error",
|
|
1348
|
-
|
|
1347
|
+
const T = I && I.message ? I.message : "Network Error", P = new O(T, O.ERR_NETWORK, e, b);
|
|
1348
|
+
P.event = I || null, i(P), y(), b = null;
|
|
1349
1349
|
}, b.ontimeout = function() {
|
|
1350
1350
|
let I = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1351
1351
|
const T = n.transitional || Gi;
|
|
@@ -1584,14 +1584,14 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1584
1584
|
method: w,
|
|
1585
1585
|
data: I,
|
|
1586
1586
|
signal: T,
|
|
1587
|
-
cancelToken:
|
|
1587
|
+
cancelToken: P,
|
|
1588
1588
|
timeout: ce,
|
|
1589
1589
|
onDownloadProgress: Ne,
|
|
1590
1590
|
onUploadProgress: Re,
|
|
1591
1591
|
responseType: _e,
|
|
1592
1592
|
headers: H,
|
|
1593
1593
|
withCredentials: Ce = "same-origin",
|
|
1594
|
-
fetchOptions:
|
|
1594
|
+
fetchOptions: nt,
|
|
1595
1595
|
maxContentLength: de,
|
|
1596
1596
|
maxBodyLength: W
|
|
1597
1597
|
} = Ac(v);
|
|
@@ -1599,10 +1599,10 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1599
1599
|
let os = n || fetch;
|
|
1600
1600
|
_e = _e ? (_e + "").toLowerCase() : "text";
|
|
1601
1601
|
let qe = rv(
|
|
1602
|
-
[T,
|
|
1602
|
+
[T, P && P.toAbortSignal()],
|
|
1603
1603
|
ce
|
|
1604
1604
|
), Y = null;
|
|
1605
|
-
const
|
|
1605
|
+
const rt = qe && qe.unsubscribe && (() => {
|
|
1606
1606
|
qe.unsubscribe();
|
|
1607
1607
|
});
|
|
1608
1608
|
let gt, Rt = null;
|
|
@@ -1616,22 +1616,22 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1616
1616
|
let Z;
|
|
1617
1617
|
const be = yh("auth");
|
|
1618
1618
|
if (be) {
|
|
1619
|
-
const
|
|
1619
|
+
const R = p.getSafeProp(be, "username") || "", he = p.getSafeProp(be, "password") || "";
|
|
1620
1620
|
Z = {
|
|
1621
|
-
username:
|
|
1621
|
+
username: R,
|
|
1622
1622
|
password: he
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
1625
|
if (lv(S)) {
|
|
1626
|
-
const
|
|
1627
|
-
if (!Z && (
|
|
1628
|
-
const he = ks(
|
|
1626
|
+
const R = new URL(S, ee.origin);
|
|
1627
|
+
if (!Z && (R.username || R.password)) {
|
|
1628
|
+
const he = ks(R.username), Je = ks(R.password);
|
|
1629
1629
|
Z = {
|
|
1630
1630
|
username: he,
|
|
1631
1631
|
password: Je
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
|
-
(
|
|
1634
|
+
(R.username || R.password) && (R.username = "", R.password = "", S = R.href);
|
|
1635
1635
|
}
|
|
1636
1636
|
if (Z && (H.delete("authorization"), H.set(
|
|
1637
1637
|
"Authorization",
|
|
@@ -1644,33 +1644,33 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1644
1644
|
Y
|
|
1645
1645
|
);
|
|
1646
1646
|
if (ui && w !== "get" && w !== "head") {
|
|
1647
|
-
const
|
|
1648
|
-
if (typeof
|
|
1647
|
+
const R = await y(I);
|
|
1648
|
+
if (typeof R == "number" && isFinite(R) && (gt = R, R > W))
|
|
1649
1649
|
throw as();
|
|
1650
1650
|
}
|
|
1651
|
-
const Nn = ui && (p.isReadableStream(I) || p.isStream(I)), ss = (
|
|
1652
|
-
|
|
1651
|
+
const Nn = ui && (p.isReadableStream(I) || p.isStream(I)), ss = (R, he, Je) => $s(
|
|
1652
|
+
R,
|
|
1653
1653
|
ws,
|
|
1654
|
-
(
|
|
1655
|
-
if (ui &&
|
|
1654
|
+
(it) => {
|
|
1655
|
+
if (ui && it > W)
|
|
1656
1656
|
throw Rt = as();
|
|
1657
|
-
he && he(
|
|
1657
|
+
he && he(it);
|
|
1658
1658
|
},
|
|
1659
1659
|
Je
|
|
1660
1660
|
);
|
|
1661
1661
|
if (f && w !== "get" && w !== "head" && (Re || Nn)) {
|
|
1662
1662
|
if (gt = gt ?? await b(H, I), gt !== 0 || Nn) {
|
|
1663
|
-
let
|
|
1663
|
+
let R = new o(S, {
|
|
1664
1664
|
method: "POST",
|
|
1665
1665
|
body: I,
|
|
1666
1666
|
duplex: "half"
|
|
1667
1667
|
}), he;
|
|
1668
|
-
if (p.isFormData(I) && (he =
|
|
1669
|
-
const [Je,
|
|
1668
|
+
if (p.isFormData(I) && (he = R.headers.get("content-type")) && H.setContentType(he), R.body) {
|
|
1669
|
+
const [Je, it] = Re && vs(
|
|
1670
1670
|
gt,
|
|
1671
1671
|
Hn(ys(Re))
|
|
1672
1672
|
) || [];
|
|
1673
|
-
I = ss(
|
|
1673
|
+
I = ss(R.body, Je, it);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
} else if (Nn && !c && l && w !== "get" && w !== "head")
|
|
@@ -1685,12 +1685,12 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1685
1685
|
p.isString(Ce) || (Ce = Ce ? "include" : "omit");
|
|
1686
1686
|
const _h = c && "credentials" in o.prototype;
|
|
1687
1687
|
if (p.isFormData(I)) {
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1688
|
+
const R = H.getContentType();
|
|
1689
|
+
R && /^multipart\/form-data/i.test(R) && !/boundary=/i.test(R) && H.delete("content-type");
|
|
1690
1690
|
}
|
|
1691
1691
|
H.set("User-Agent", "axios/" + Yi, !1);
|
|
1692
1692
|
const cs = {
|
|
1693
|
-
...
|
|
1693
|
+
...nt,
|
|
1694
1694
|
signal: qe,
|
|
1695
1695
|
method: w.toUpperCase(),
|
|
1696
1696
|
headers: Ic(H.normalize()),
|
|
@@ -1699,11 +1699,11 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1699
1699
|
credentials: _h ? Ce : void 0
|
|
1700
1700
|
};
|
|
1701
1701
|
Y = c && new o(S, cs);
|
|
1702
|
-
let Me = await (c ? os(Y,
|
|
1702
|
+
let Me = await (c ? os(Y, nt) : os(S, cs));
|
|
1703
1703
|
const us = ae.from(Me.headers);
|
|
1704
1704
|
if (L) {
|
|
1705
|
-
const
|
|
1706
|
-
if (
|
|
1705
|
+
const R = p.toFiniteNumber(us.getContentLength());
|
|
1706
|
+
if (R != null && R > de)
|
|
1707
1707
|
throw new O(
|
|
1708
1708
|
"maxContentLength size of " + de + " exceeded",
|
|
1709
1709
|
O.ERR_BAD_RESPONSE,
|
|
@@ -1712,12 +1712,12 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1712
1712
|
);
|
|
1713
1713
|
}
|
|
1714
1714
|
const li = m && (_e === "stream" || _e === "response");
|
|
1715
|
-
if (m && Me.body && (Ne || L || li &&
|
|
1716
|
-
const
|
|
1715
|
+
if (m && Me.body && (Ne || L || li && rt)) {
|
|
1716
|
+
const R = {};
|
|
1717
1717
|
["status", "statusText", "headers"].forEach((Ct) => {
|
|
1718
|
-
|
|
1718
|
+
R[Ct] = Me[Ct];
|
|
1719
1719
|
});
|
|
1720
|
-
const he = p.toFiniteNumber(us.getContentLength()), [Je,
|
|
1720
|
+
const he = p.toFiniteNumber(us.getContentLength()), [Je, it] = Ne && vs(
|
|
1721
1721
|
he,
|
|
1722
1722
|
Hn(ys(Ne), !0)
|
|
1723
1723
|
) || [];
|
|
@@ -1734,9 +1734,9 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1734
1734
|
};
|
|
1735
1735
|
Me = new a(
|
|
1736
1736
|
$s(Me.body, ws, bh, () => {
|
|
1737
|
-
|
|
1737
|
+
it && it(), rt && rt();
|
|
1738
1738
|
}),
|
|
1739
|
-
|
|
1739
|
+
R
|
|
1740
1740
|
);
|
|
1741
1741
|
}
|
|
1742
1742
|
_e = _e || "text";
|
|
@@ -1745,8 +1745,8 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1745
1745
|
v
|
|
1746
1746
|
);
|
|
1747
1747
|
if (L && !m && !li) {
|
|
1748
|
-
let
|
|
1749
|
-
if (Le != null && (typeof Le.byteLength == "number" ?
|
|
1748
|
+
let R;
|
|
1749
|
+
if (Le != null && (typeof Le.byteLength == "number" ? R = Le.byteLength : typeof Le.size == "number" ? R = Le.size : typeof Le == "string" && (R = typeof i == "function" ? new i().encode(Le).byteLength : Le.length)), typeof R == "number" && R > de)
|
|
1750
1750
|
throw new O(
|
|
1751
1751
|
"maxContentLength size of " + de + " exceeded",
|
|
1752
1752
|
O.ERR_BAD_RESPONSE,
|
|
@@ -1754,8 +1754,8 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1754
1754
|
Y
|
|
1755
1755
|
);
|
|
1756
1756
|
}
|
|
1757
|
-
return !li &&
|
|
1758
|
-
Uc(
|
|
1757
|
+
return !li && rt && rt(), await new Promise((R, he) => {
|
|
1758
|
+
Uc(R, he, {
|
|
1759
1759
|
data: Le,
|
|
1760
1760
|
headers: ae.from(Me.headers),
|
|
1761
1761
|
status: Me.status,
|
|
@@ -1765,7 +1765,7 @@ const Yi = "1.18.1", ws = 64 * 1024, { isFunction: Dn } = p, uv = (e) => encodeU
|
|
|
1765
1765
|
});
|
|
1766
1766
|
});
|
|
1767
1767
|
} catch (Z) {
|
|
1768
|
-
if (
|
|
1768
|
+
if (rt && rt(), qe && qe.aborted && qe.reason instanceof O) {
|
|
1769
1769
|
const be = qe.reason;
|
|
1770
1770
|
throw be.config = v, Y && (be.request = Y), Z !== be && Object.defineProperty(be, "cause", {
|
|
1771
1771
|
__proto__: null,
|
|
@@ -1949,7 +1949,7 @@ const Ln = {
|
|
|
1949
1949
|
assertOptions: hv,
|
|
1950
1950
|
validators: dr
|
|
1951
1951
|
}, re = Ln.validators;
|
|
1952
|
-
let
|
|
1952
|
+
let st = class {
|
|
1953
1953
|
constructor(t) {
|
|
1954
1954
|
this.defaults = t || {}, this.interceptors = {
|
|
1955
1955
|
request: new hs(),
|
|
@@ -2076,7 +2076,7 @@ let at = class {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
};
|
|
2078
2078
|
p.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2079
|
-
|
|
2079
|
+
st.prototype[t] = function(r, i) {
|
|
2080
2080
|
return this.request(
|
|
2081
2081
|
lt(i || {}, {
|
|
2082
2082
|
method: t,
|
|
@@ -2101,7 +2101,7 @@ p.forEach(["post", "put", "patch", "query"], function(t) {
|
|
|
2101
2101
|
);
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
|
|
2104
|
+
st.prototype[t] = r(), t !== "query" && (st.prototype[t + "Form"] = r(!0));
|
|
2105
2105
|
});
|
|
2106
2106
|
let gv = class Mc {
|
|
2107
2107
|
constructor(t) {
|
|
@@ -2259,13 +2259,13 @@ Object.entries(Si).forEach(([e, t]) => {
|
|
|
2259
2259
|
Si[t] = e;
|
|
2260
2260
|
});
|
|
2261
2261
|
function Lc(e) {
|
|
2262
|
-
const t = new
|
|
2263
|
-
return p.extend(r,
|
|
2262
|
+
const t = new st(e), r = gc(st.prototype.request, t);
|
|
2263
|
+
return p.extend(r, st.prototype, t, { allOwnKeys: !0 }), p.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
|
|
2264
2264
|
return Lc(lt(e, n));
|
|
2265
2265
|
}, r;
|
|
2266
2266
|
}
|
|
2267
2267
|
const K = Lc(nn);
|
|
2268
|
-
K.Axios =
|
|
2268
|
+
K.Axios = st;
|
|
2269
2269
|
K.CanceledError = rn;
|
|
2270
2270
|
K.CancelToken = gv;
|
|
2271
2271
|
K.isCancel = jc;
|
|
@@ -2302,7 +2302,7 @@ const {
|
|
|
2302
2302
|
getAdapter: Yw,
|
|
2303
2303
|
mergeConfig: Xw,
|
|
2304
2304
|
create: e1
|
|
2305
|
-
} = K,
|
|
2305
|
+
} = K, Ke = K.create({
|
|
2306
2306
|
baseURL: "",
|
|
2307
2307
|
// will be set at runtime in widgets-initialization
|
|
2308
2308
|
headers: {}
|
|
@@ -2310,12 +2310,12 @@ const {
|
|
|
2310
2310
|
const r = new Date(t);
|
|
2311
2311
|
return !Number.isNaN(r.valueOf()) && r?.toISOString() === t ? r : t;
|
|
2312
2312
|
}, bv = (e) => (e?.config?.responseType === "blob" || e?.config?.responseType === "stream" || e.data !== void 0 && (e.data = JSON.parse(JSON.stringify(e.data), _v)), e), $v = async (e) => e.response?.data ? Promise.reject(new Error(e.response.data.message || e.response.data)) : Promise.reject(e);
|
|
2313
|
-
|
|
2313
|
+
Ke.interceptors.response.use(bv, $v);
|
|
2314
2314
|
let Ii;
|
|
2315
2315
|
const wv = (e) => {
|
|
2316
2316
|
Ii = e;
|
|
2317
2317
|
};
|
|
2318
|
-
|
|
2318
|
+
Ke.interceptors.request.use(async (e) => {
|
|
2319
2319
|
if (!Ii) return e;
|
|
2320
2320
|
try {
|
|
2321
2321
|
const t = await Ii();
|
|
@@ -3106,7 +3106,7 @@ const xi = typeof addEventListener == "function" && typeof removeEventListener =
|
|
|
3106
3106
|
xi && addEventListener("offline", () => {
|
|
3107
3107
|
Fn.forEach((e) => e());
|
|
3108
3108
|
}, !1);
|
|
3109
|
-
class
|
|
3109
|
+
class He extends G {
|
|
3110
3110
|
/**
|
|
3111
3111
|
* Socket constructor.
|
|
3112
3112
|
*
|
|
@@ -3174,7 +3174,7 @@ class We extends G {
|
|
|
3174
3174
|
}, 0);
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
|
-
const t = this.opts.rememberUpgrade &&
|
|
3177
|
+
const t = this.opts.rememberUpgrade && He.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1 ? "websocket" : this.transports[0];
|
|
3178
3178
|
this.readyState = "opening";
|
|
3179
3179
|
const r = this.createTransport(t);
|
|
3180
3180
|
r.open(), this.setTransport(r);
|
|
@@ -3193,7 +3193,7 @@ class We extends G {
|
|
|
3193
3193
|
* @private
|
|
3194
3194
|
*/
|
|
3195
3195
|
onOpen() {
|
|
3196
|
-
this.readyState = "open",
|
|
3196
|
+
this.readyState = "open", He.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush();
|
|
3197
3197
|
}
|
|
3198
3198
|
/**
|
|
3199
3199
|
* Handles a packet.
|
|
@@ -3357,7 +3357,7 @@ class We extends G {
|
|
|
3357
3357
|
* @private
|
|
3358
3358
|
*/
|
|
3359
3359
|
_onError(t) {
|
|
3360
|
-
if (
|
|
3360
|
+
if (He.priorWebsocketSuccess = !1, this.opts.tryAllTransports && this.transports.length > 1 && this.readyState === "opening")
|
|
3361
3361
|
return this.transports.shift(), this._open();
|
|
3362
3362
|
this.emitReserved("error", t), this._onClose("transport error", t);
|
|
3363
3363
|
}
|
|
@@ -3376,8 +3376,8 @@ class We extends G {
|
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
|
-
|
|
3380
|
-
class ty extends
|
|
3379
|
+
He.protocol = Vc;
|
|
3380
|
+
class ty extends He {
|
|
3381
3381
|
constructor() {
|
|
3382
3382
|
super(...arguments), this._upgrades = [];
|
|
3383
3383
|
}
|
|
@@ -3394,14 +3394,14 @@ class ty extends We {
|
|
|
3394
3394
|
*/
|
|
3395
3395
|
_probe(t) {
|
|
3396
3396
|
let r = this.createTransport(t), i = !1;
|
|
3397
|
-
|
|
3397
|
+
He.priorWebsocketSuccess = !1;
|
|
3398
3398
|
const n = () => {
|
|
3399
3399
|
i || (r.send([{ type: "ping", data: "probe" }]), r.once("packet", (d) => {
|
|
3400
3400
|
if (!i)
|
|
3401
3401
|
if (d.type === "pong" && d.data === "probe") {
|
|
3402
3402
|
if (this.upgrading = !0, this.emitReserved("upgrading", r), !r)
|
|
3403
3403
|
return;
|
|
3404
|
-
|
|
3404
|
+
He.priorWebsocketSuccess = r.name === "websocket", this.transport.pause(() => {
|
|
3405
3405
|
i || this.readyState !== "closed" && (l(), this.setTransport(r), r.send([{ type: "upgrade" }]), this.emitReserved("upgrade", r), r = null, this.upgrading = !1, this.flush());
|
|
3406
3406
|
});
|
|
3407
3407
|
} else {
|
|
@@ -4735,7 +4735,7 @@ function nu(e, t) {
|
|
|
4735
4735
|
return Math.abs(r - i) < n ? 0 : r - i;
|
|
4736
4736
|
}
|
|
4737
4737
|
const Ps = /* @__PURE__ */ Symbol("evaluating");
|
|
4738
|
-
function
|
|
4738
|
+
function C(e, t, r) {
|
|
4739
4739
|
let i;
|
|
4740
4740
|
Object.defineProperty(e, t, {
|
|
4741
4741
|
get() {
|
|
@@ -4754,7 +4754,7 @@ function R(e, t, r) {
|
|
|
4754
4754
|
function wy(e) {
|
|
4755
4755
|
return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e));
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4757
|
+
function et(e, t, r) {
|
|
4758
4758
|
Object.defineProperty(e, t, {
|
|
4759
4759
|
value: r,
|
|
4760
4760
|
writable: !0,
|
|
@@ -4935,7 +4935,7 @@ function uu(e, t) {
|
|
|
4935
4935
|
throw new Error(`Unrecognized key: "${s}"`);
|
|
4936
4936
|
t[s] && (a[s] = r.shape[s]);
|
|
4937
4937
|
}
|
|
4938
|
-
return
|
|
4938
|
+
return et(this, "shape", a), a;
|
|
4939
4939
|
},
|
|
4940
4940
|
checks: []
|
|
4941
4941
|
});
|
|
@@ -4953,7 +4953,7 @@ function lu(e, t) {
|
|
|
4953
4953
|
throw new Error(`Unrecognized key: "${s}"`);
|
|
4954
4954
|
t[s] && delete a[s];
|
|
4955
4955
|
}
|
|
4956
|
-
return
|
|
4956
|
+
return et(this, "shape", a), a;
|
|
4957
4957
|
},
|
|
4958
4958
|
checks: []
|
|
4959
4959
|
});
|
|
@@ -4972,7 +4972,7 @@ function du(e, t) {
|
|
|
4972
4972
|
const n = Ae(e._zod.def, {
|
|
4973
4973
|
get shape() {
|
|
4974
4974
|
const o = { ...e._zod.def.shape, ...t };
|
|
4975
|
-
return
|
|
4975
|
+
return et(this, "shape", o), o;
|
|
4976
4976
|
}
|
|
4977
4977
|
});
|
|
4978
4978
|
return Ie(e, n);
|
|
@@ -4983,7 +4983,7 @@ function fu(e, t) {
|
|
|
4983
4983
|
const r = Ae(e._zod.def, {
|
|
4984
4984
|
get shape() {
|
|
4985
4985
|
const i = { ...e._zod.def.shape, ...t };
|
|
4986
|
-
return
|
|
4986
|
+
return et(this, "shape", i), i;
|
|
4987
4987
|
}
|
|
4988
4988
|
});
|
|
4989
4989
|
return Ie(e, r);
|
|
@@ -4994,7 +4994,7 @@ function mu(e, t) {
|
|
|
4994
4994
|
const r = Ae(e._zod.def, {
|
|
4995
4995
|
get shape() {
|
|
4996
4996
|
const i = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
4997
|
-
return
|
|
4997
|
+
return et(this, "shape", i), i;
|
|
4998
4998
|
},
|
|
4999
4999
|
get catchall() {
|
|
5000
5000
|
return t._zod.def.catchall;
|
|
@@ -5025,7 +5025,7 @@ function pu(e, t, r) {
|
|
|
5025
5025
|
type: "optional",
|
|
5026
5026
|
innerType: s[u]
|
|
5027
5027
|
}) : s[u];
|
|
5028
|
-
return
|
|
5028
|
+
return et(this, "shape", c), c;
|
|
5029
5029
|
},
|
|
5030
5030
|
checks: []
|
|
5031
5031
|
});
|
|
@@ -5050,12 +5050,12 @@ function hu(e, t, r) {
|
|
|
5050
5050
|
type: "nonoptional",
|
|
5051
5051
|
innerType: n[a]
|
|
5052
5052
|
});
|
|
5053
|
-
return
|
|
5053
|
+
return et(this, "shape", o), o;
|
|
5054
5054
|
}
|
|
5055
5055
|
});
|
|
5056
5056
|
return Ie(t, i);
|
|
5057
5057
|
}
|
|
5058
|
-
function
|
|
5058
|
+
function at(e, t = 0) {
|
|
5059
5059
|
if (e.aborted === !0)
|
|
5060
5060
|
return !0;
|
|
5061
5061
|
for (let r = t; r < e.issues.length; r++)
|
|
@@ -5159,14 +5159,14 @@ const _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5159
5159
|
BIGINT_FORMAT_RANGES: cu,
|
|
5160
5160
|
Class: Py,
|
|
5161
5161
|
NUMBER_FORMAT_RANGES: su,
|
|
5162
|
-
aborted:
|
|
5162
|
+
aborted: at,
|
|
5163
5163
|
allowsEval: iu,
|
|
5164
5164
|
assert: $y,
|
|
5165
5165
|
assertEqual: vy,
|
|
5166
5166
|
assertIs: _y,
|
|
5167
5167
|
assertNever: by,
|
|
5168
5168
|
assertNotEqual: yy,
|
|
5169
|
-
assignProp:
|
|
5169
|
+
assignProp: et,
|
|
5170
5170
|
base64ToUint8Array: vu,
|
|
5171
5171
|
base64urlToUint8Array: Dy,
|
|
5172
5172
|
cached: on,
|
|
@@ -5176,7 +5176,7 @@ const _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5176
5176
|
clone: Ie,
|
|
5177
5177
|
cloneDef: ky,
|
|
5178
5178
|
createTransparentProxy: Ey,
|
|
5179
|
-
defineLazy:
|
|
5179
|
+
defineLazy: C,
|
|
5180
5180
|
esc: Di,
|
|
5181
5181
|
escapeRegex: Fe,
|
|
5182
5182
|
explicitlyAborted: gu,
|
|
@@ -5869,7 +5869,7 @@ const zl = {
|
|
|
5869
5869
|
});
|
|
5870
5870
|
else {
|
|
5871
5871
|
const n = (a, s, c) => {
|
|
5872
|
-
let u =
|
|
5872
|
+
let u = at(a), l;
|
|
5873
5873
|
for (const d of s) {
|
|
5874
5874
|
if (d._zod.def.when) {
|
|
5875
5875
|
if (gu(a) || !d._zod.def.when(a))
|
|
@@ -5881,17 +5881,17 @@ const zl = {
|
|
|
5881
5881
|
throw new ct();
|
|
5882
5882
|
if (l || m instanceof Promise)
|
|
5883
5883
|
l = (l ?? Promise.resolve()).then(async () => {
|
|
5884
|
-
await m, a.issues.length !== f && (u || (u =
|
|
5884
|
+
await m, a.issues.length !== f && (u || (u = at(a, f)));
|
|
5885
5885
|
});
|
|
5886
5886
|
else {
|
|
5887
5887
|
if (a.issues.length === f)
|
|
5888
5888
|
continue;
|
|
5889
|
-
u || (u =
|
|
5889
|
+
u || (u = at(a, f));
|
|
5890
5890
|
}
|
|
5891
5891
|
}
|
|
5892
5892
|
return l ? l.then(() => a) : a;
|
|
5893
5893
|
}, o = (a, s, c) => {
|
|
5894
|
-
if (
|
|
5894
|
+
if (at(a))
|
|
5895
5895
|
return a.aborted = !0, a;
|
|
5896
5896
|
const u = n(s, i, c);
|
|
5897
5897
|
if (u instanceof Promise) {
|
|
@@ -5917,7 +5917,7 @@ const zl = {
|
|
|
5917
5917
|
return n(c, i, s);
|
|
5918
5918
|
};
|
|
5919
5919
|
}
|
|
5920
|
-
|
|
5920
|
+
C(e, "~standard", () => ({
|
|
5921
5921
|
validate: (n) => {
|
|
5922
5922
|
try {
|
|
5923
5923
|
const o = Su(e, n);
|
|
@@ -6363,7 +6363,7 @@ const md = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
6363
6363
|
});
|
|
6364
6364
|
}
|
|
6365
6365
|
const i = on(() => dd(t));
|
|
6366
|
-
|
|
6366
|
+
C(e._zod, "propValues", () => {
|
|
6367
6367
|
const s = t.shape, c = {};
|
|
6368
6368
|
for (const u in s) {
|
|
6369
6369
|
const l = s[u]._zod;
|
|
@@ -6409,7 +6409,7 @@ const md = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
6409
6409
|
b[w] = `key_${v++}`;
|
|
6410
6410
|
m.write("const newResult = {};");
|
|
6411
6411
|
for (const w of g.keys) {
|
|
6412
|
-
const I = b[w], T = Di(w),
|
|
6412
|
+
const I = b[w], T = Di(w), P = f[w], ce = P?._zod?.optin === "optional", Ne = P?._zod?.optout === "optional";
|
|
6413
6413
|
m.write(`const ${I} = ${y(w)};`), ce && Ne ? m.write(`
|
|
6414
6414
|
if (${I}.issues.length) {
|
|
6415
6415
|
if (${T} in input) {
|
|
@@ -6493,7 +6493,7 @@ function Cs(e, t, r, i) {
|
|
|
6493
6493
|
for (const o of e)
|
|
6494
6494
|
if (o.issues.length === 0)
|
|
6495
6495
|
return t.value = o.value, t;
|
|
6496
|
-
const n = e.filter((o) => !
|
|
6496
|
+
const n = e.filter((o) => !at(o));
|
|
6497
6497
|
return n.length === 1 ? (t.value = n[0].value, n[0]) : (t.issues.push({
|
|
6498
6498
|
code: "invalid_union",
|
|
6499
6499
|
input: t.value,
|
|
@@ -6502,10 +6502,10 @@ function Cs(e, t, r, i) {
|
|
|
6502
6502
|
}), t);
|
|
6503
6503
|
}
|
|
6504
6504
|
const _r = /* @__PURE__ */ h("$ZodUnion", (e, t) => {
|
|
6505
|
-
U.init(e, t),
|
|
6505
|
+
U.init(e, t), C(e._zod, "optin", () => t.options.some((i) => i._zod.optin === "optional") ? "optional" : void 0), C(e._zod, "optout", () => t.options.some((i) => i._zod.optout === "optional") ? "optional" : void 0), C(e._zod, "values", () => {
|
|
6506
6506
|
if (t.options.every((i) => i._zod.values))
|
|
6507
6507
|
return new Set(t.options.flatMap((i) => Array.from(i._zod.values)));
|
|
6508
|
-
}),
|
|
6508
|
+
}), C(e._zod, "pattern", () => {
|
|
6509
6509
|
if (t.options.every((i) => i._zod.pattern)) {
|
|
6510
6510
|
const i = t.options.map((n) => n._zod.pattern);
|
|
6511
6511
|
return new RegExp(`^(${i.map((n) => hr(n.source)).join("|")})$`);
|
|
@@ -6568,7 +6568,7 @@ const hd = /* @__PURE__ */ h("$ZodXor", (e, t) => {
|
|
|
6568
6568
|
}), gd = /* @__PURE__ */ h("$ZodDiscriminatedUnion", (e, t) => {
|
|
6569
6569
|
t.inclusive = !1, _r.init(e, t);
|
|
6570
6570
|
const r = e._zod.parse;
|
|
6571
|
-
|
|
6571
|
+
C(e._zod, "propValues", () => {
|
|
6572
6572
|
const n = {};
|
|
6573
6573
|
for (const o of t.options) {
|
|
6574
6574
|
const a = o._zod.propValues;
|
|
@@ -6675,7 +6675,7 @@ function Ls(e, t, r) {
|
|
|
6675
6675
|
else
|
|
6676
6676
|
e.issues.push(s);
|
|
6677
6677
|
const o = [...i].filter(([, s]) => s.l && s.r).map(([s]) => s);
|
|
6678
|
-
if (o.length && n && e.issues.push({ ...n, keys: o }),
|
|
6678
|
+
if (o.length && n && e.issues.push({ ...n, keys: o }), at(e))
|
|
6679
6679
|
return e;
|
|
6680
6680
|
const a = Ui(t.value, r.value);
|
|
6681
6681
|
if (!a.valid)
|
|
@@ -6947,7 +6947,7 @@ function Vs(e, t) {
|
|
|
6947
6947
|
return t === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e;
|
|
6948
6948
|
}
|
|
6949
6949
|
const No = /* @__PURE__ */ h("$ZodOptional", (e, t) => {
|
|
6950
|
-
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
6950
|
+
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", C(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), C(e._zod, "pattern", () => {
|
|
6951
6951
|
const r = t.innerType._zod.pattern;
|
|
6952
6952
|
return r ? new RegExp(`^(${hr(r.source)})?$`) : void 0;
|
|
6953
6953
|
}), e._zod.parse = (r, i) => {
|
|
@@ -6958,14 +6958,14 @@ const No = /* @__PURE__ */ h("$ZodOptional", (e, t) => {
|
|
|
6958
6958
|
return r.value === void 0 ? r : t.innerType._zod.run(r, i);
|
|
6959
6959
|
};
|
|
6960
6960
|
}), Id = /* @__PURE__ */ h("$ZodExactOptional", (e, t) => {
|
|
6961
|
-
No.init(e, t),
|
|
6961
|
+
No.init(e, t), C(e._zod, "values", () => t.innerType._zod.values), C(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (r, i) => t.innerType._zod.run(r, i);
|
|
6962
6962
|
}), zd = /* @__PURE__ */ h("$ZodNullable", (e, t) => {
|
|
6963
|
-
U.init(e, t),
|
|
6963
|
+
U.init(e, t), C(e._zod, "optin", () => t.innerType._zod.optin), C(e._zod, "optout", () => t.innerType._zod.optout), C(e._zod, "pattern", () => {
|
|
6964
6964
|
const r = t.innerType._zod.pattern;
|
|
6965
6965
|
return r ? new RegExp(`^(${hr(r.source)}|null)$`) : void 0;
|
|
6966
|
-
}),
|
|
6966
|
+
}), C(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, i) => r.value === null ? r : t.innerType._zod.run(r, i);
|
|
6967
6967
|
}), Od = /* @__PURE__ */ h("$ZodDefault", (e, t) => {
|
|
6968
|
-
U.init(e, t), e._zod.optin = "optional",
|
|
6968
|
+
U.init(e, t), e._zod.optin = "optional", C(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, i) => {
|
|
6969
6969
|
if (i.direction === "backward")
|
|
6970
6970
|
return t.innerType._zod.run(r, i);
|
|
6971
6971
|
if (r.value === void 0)
|
|
@@ -6978,9 +6978,9 @@ function Ks(e, t) {
|
|
|
6978
6978
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
6979
6979
|
}
|
|
6980
6980
|
const xd = /* @__PURE__ */ h("$ZodPrefault", (e, t) => {
|
|
6981
|
-
U.init(e, t), e._zod.optin = "optional",
|
|
6981
|
+
U.init(e, t), e._zod.optin = "optional", C(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, i) => (i.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, i));
|
|
6982
6982
|
}), Ed = /* @__PURE__ */ h("$ZodNonOptional", (e, t) => {
|
|
6983
|
-
U.init(e, t),
|
|
6983
|
+
U.init(e, t), C(e._zod, "values", () => {
|
|
6984
6984
|
const r = t.innerType._zod.values;
|
|
6985
6985
|
return r ? new Set([...r].filter((i) => i !== void 0)) : void 0;
|
|
6986
6986
|
}), e._zod.parse = (r, i) => {
|
|
@@ -7004,7 +7004,7 @@ const Nd = /* @__PURE__ */ h("$ZodSuccess", (e, t) => {
|
|
|
7004
7004
|
return n instanceof Promise ? n.then((o) => (r.value = o.issues.length === 0, r)) : (r.value = n.issues.length === 0, r);
|
|
7005
7005
|
};
|
|
7006
7006
|
}), Dd = /* @__PURE__ */ h("$ZodCatch", (e, t) => {
|
|
7007
|
-
U.init(e, t), e._zod.optin = "optional",
|
|
7007
|
+
U.init(e, t), e._zod.optin = "optional", C(e._zod, "optout", () => t.innerType._zod.optout), C(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, i) => {
|
|
7008
7008
|
if (i.direction === "backward")
|
|
7009
7009
|
return t.innerType._zod.run(r, i);
|
|
7010
7010
|
const n = t.innerType._zod.run(r, i);
|
|
@@ -7030,7 +7030,7 @@ const Nd = /* @__PURE__ */ h("$ZodSuccess", (e, t) => {
|
|
|
7030
7030
|
code: "invalid_type"
|
|
7031
7031
|
}), r);
|
|
7032
7032
|
}), Do = /* @__PURE__ */ h("$ZodPipe", (e, t) => {
|
|
7033
|
-
U.init(e, t),
|
|
7033
|
+
U.init(e, t), C(e._zod, "values", () => t.in._zod.values), C(e._zod, "optin", () => t.in._zod.optin), C(e._zod, "optout", () => t.out._zod.optout), C(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, i) => {
|
|
7034
7034
|
if (i.direction === "backward") {
|
|
7035
7035
|
const o = t.out._zod.run(r, i);
|
|
7036
7036
|
return o instanceof Promise ? o.then((a) => Un(a, t.in, i)) : Un(o, t.in, i);
|
|
@@ -7043,7 +7043,7 @@ function Un(e, t, r) {
|
|
|
7043
7043
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, r);
|
|
7044
7044
|
}
|
|
7045
7045
|
const To = /* @__PURE__ */ h("$ZodCodec", (e, t) => {
|
|
7046
|
-
U.init(e, t),
|
|
7046
|
+
U.init(e, t), C(e._zod, "values", () => t.in._zod.values), C(e._zod, "optin", () => t.in._zod.optin), C(e._zod, "optout", () => t.out._zod.optout), C(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, i) => {
|
|
7047
7047
|
if ((i.direction || "forward") === "forward") {
|
|
7048
7048
|
const o = t.in._zod.run(r, i);
|
|
7049
7049
|
return o instanceof Promise ? o.then((a) => Pn(a, t, i)) : Pn(o, t, i);
|
|
@@ -7070,7 +7070,7 @@ function An(e, t, r, i) {
|
|
|
7070
7070
|
const jd = /* @__PURE__ */ h("$ZodPreprocess", (e, t) => {
|
|
7071
7071
|
Do.init(e, t);
|
|
7072
7072
|
}), Ud = /* @__PURE__ */ h("$ZodReadonly", (e, t) => {
|
|
7073
|
-
U.init(e, t),
|
|
7073
|
+
U.init(e, t), C(e._zod, "propValues", () => t.innerType._zod.propValues), C(e._zod, "values", () => t.innerType._zod.values), C(e._zod, "optin", () => t.innerType?._zod?.optin), C(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (r, i) => {
|
|
7074
7074
|
if (i.direction === "backward")
|
|
7075
7075
|
return t.innerType._zod.run(r, i);
|
|
7076
7076
|
const n = t.innerType._zod.run(r, i);
|
|
@@ -7152,10 +7152,10 @@ const Pd = /* @__PURE__ */ h("$ZodTemplateLiteral", (e, t) => {
|
|
|
7152
7152
|
}, e)), Rd = /* @__PURE__ */ h("$ZodPromise", (e, t) => {
|
|
7153
7153
|
U.init(e, t), e._zod.parse = (r, i) => Promise.resolve(r.value).then((n) => t.innerType._zod.run({ value: n, issues: [] }, i));
|
|
7154
7154
|
}), Cd = /* @__PURE__ */ h("$ZodLazy", (e, t) => {
|
|
7155
|
-
U.init(e, t),
|
|
7155
|
+
U.init(e, t), C(e._zod, "innerType", () => {
|
|
7156
7156
|
const r = t;
|
|
7157
7157
|
return r._cachedInner || (r._cachedInner = t.getter()), r._cachedInner;
|
|
7158
|
-
}),
|
|
7158
|
+
}), C(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), C(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), C(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), C(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (r, i) => e._zod.innerType._zod.run(r, i);
|
|
7159
7159
|
}), Md = /* @__PURE__ */ h("$ZodCustom", (e, t) => {
|
|
7160
7160
|
V.init(e, t), U.init(e, t), e._zod.parse = (r, i) => r, e._zod.check = (r) => {
|
|
7161
7161
|
const i = r.value, n = t.fn(i);
|
|
@@ -12311,7 +12311,7 @@ function Sf(e, t) {
|
|
|
12311
12311
|
});
|
|
12312
12312
|
}
|
|
12313
12313
|
// @__NO_SIDE_EFFECTS__
|
|
12314
|
-
function
|
|
12314
|
+
function Ge(e, t) {
|
|
12315
12315
|
return new ko({
|
|
12316
12316
|
check: "less_than",
|
|
12317
12317
|
..._(t),
|
|
@@ -12329,7 +12329,7 @@ function Se(e, t) {
|
|
|
12329
12329
|
});
|
|
12330
12330
|
}
|
|
12331
12331
|
// @__NO_SIDE_EFFECTS__
|
|
12332
|
-
function
|
|
12332
|
+
function Qe(e, t) {
|
|
12333
12333
|
return new So({
|
|
12334
12334
|
check: "greater_than",
|
|
12335
12335
|
..._(t),
|
|
@@ -12348,11 +12348,11 @@ function fe(e, t) {
|
|
|
12348
12348
|
}
|
|
12349
12349
|
// @__NO_SIDE_EFFECTS__
|
|
12350
12350
|
function ea(e) {
|
|
12351
|
-
return /* @__PURE__ */
|
|
12351
|
+
return /* @__PURE__ */ Qe(0, e);
|
|
12352
12352
|
}
|
|
12353
12353
|
// @__NO_SIDE_EFFECTS__
|
|
12354
12354
|
function ta(e) {
|
|
12355
|
-
return /* @__PURE__ */
|
|
12355
|
+
return /* @__PURE__ */ Ge(0, e);
|
|
12356
12356
|
}
|
|
12357
12357
|
// @__NO_SIDE_EFFECTS__
|
|
12358
12358
|
function na(e) {
|
|
@@ -12379,7 +12379,7 @@ function Pt(e, t) {
|
|
|
12379
12379
|
});
|
|
12380
12380
|
}
|
|
12381
12381
|
// @__NO_SIDE_EFFECTS__
|
|
12382
|
-
function
|
|
12382
|
+
function Ye(e, t) {
|
|
12383
12383
|
return new dl({
|
|
12384
12384
|
check: "min_size",
|
|
12385
12385
|
..._(t),
|
|
@@ -13562,7 +13562,7 @@ const N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13562
13562
|
_file: zf,
|
|
13563
13563
|
_float32: of,
|
|
13564
13564
|
_float64: af,
|
|
13565
|
-
_gt:
|
|
13565
|
+
_gt: Qe,
|
|
13566
13566
|
_gte: fe,
|
|
13567
13567
|
_guid: er,
|
|
13568
13568
|
_includes: Sr,
|
|
@@ -13582,7 +13582,7 @@ const N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13582
13582
|
_length: gn,
|
|
13583
13583
|
_literal: h0,
|
|
13584
13584
|
_lowercase: wr,
|
|
13585
|
-
_lt:
|
|
13585
|
+
_lt: Ge,
|
|
13586
13586
|
_lte: Se,
|
|
13587
13587
|
_mac: Hd,
|
|
13588
13588
|
_map: d0,
|
|
@@ -13592,7 +13592,7 @@ const N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13592
13592
|
_mime: Or,
|
|
13593
13593
|
_min: fe,
|
|
13594
13594
|
_minLength: ft,
|
|
13595
|
-
_minSize:
|
|
13595
|
+
_minSize: Ye,
|
|
13596
13596
|
_multipleOf: It,
|
|
13597
13597
|
_nan: Sf,
|
|
13598
13598
|
_nanoid: Lo,
|
|
@@ -13696,18 +13696,18 @@ const N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13696
13696
|
}, Symbol.toStringTag, { value: "Module" })), T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13697
13697
|
__proto__: null,
|
|
13698
13698
|
endsWith: zr,
|
|
13699
|
-
gt:
|
|
13699
|
+
gt: Qe,
|
|
13700
13700
|
gte: fe,
|
|
13701
13701
|
includes: Sr,
|
|
13702
13702
|
length: gn,
|
|
13703
13703
|
lowercase: wr,
|
|
13704
|
-
lt:
|
|
13704
|
+
lt: Ge,
|
|
13705
13705
|
lte: Se,
|
|
13706
13706
|
maxLength: hn,
|
|
13707
13707
|
maxSize: Pt,
|
|
13708
13708
|
mime: Or,
|
|
13709
13709
|
minLength: ft,
|
|
13710
|
-
minSize:
|
|
13710
|
+
minSize: Ye,
|
|
13711
13711
|
multipleOf: It,
|
|
13712
13712
|
negative: ta,
|
|
13713
13713
|
nonnegative: ra,
|
|
@@ -13821,7 +13821,7 @@ function yn(e, t, r) {
|
|
|
13821
13821
|
}
|
|
13822
13822
|
}
|
|
13823
13823
|
}
|
|
13824
|
-
const
|
|
13824
|
+
const A = /* @__PURE__ */ h("ZodType", (e, t) => (U.init(e, t), Object.assign(e["~standard"], {
|
|
13825
13825
|
jsonSchema: {
|
|
13826
13826
|
input: Vt(e, "input"),
|
|
13827
13827
|
output: Vt(e, "output")
|
|
@@ -13924,7 +13924,7 @@ const P = /* @__PURE__ */ h("ZodType", (e, t) => (U.init(e, t), Object.assign(e[
|
|
|
13924
13924
|
},
|
|
13925
13925
|
configurable: !0
|
|
13926
13926
|
}), e)), jr = /* @__PURE__ */ h("_ZodString", (e, t) => {
|
|
13927
|
-
mn.init(e, t),
|
|
13927
|
+
mn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (i, n, o) => Pf(e, i, n);
|
|
13928
13928
|
const r = e._zod.bag;
|
|
13929
13929
|
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, yn(e, "_ZodString", {
|
|
13930
13930
|
regex(...i) {
|
|
@@ -14136,9 +14136,9 @@ function lp(e, t) {
|
|
|
14136
14136
|
return /* @__PURE__ */ vn(At, i, n, t);
|
|
14137
14137
|
}
|
|
14138
14138
|
const $n = /* @__PURE__ */ h("ZodNumber", (e, t) => {
|
|
14139
|
-
zo.init(e, t),
|
|
14139
|
+
zo.init(e, t), A.init(e, t), e._zod.processJSONSchema = (i, n, o) => Af(e, i, n), yn(e, "ZodNumber", {
|
|
14140
14140
|
gt(i, n) {
|
|
14141
|
-
return this.check(/* @__PURE__ */
|
|
14141
|
+
return this.check(/* @__PURE__ */ Qe(i, n));
|
|
14142
14142
|
},
|
|
14143
14143
|
gte(i, n) {
|
|
14144
14144
|
return this.check(/* @__PURE__ */ fe(i, n));
|
|
@@ -14147,7 +14147,7 @@ const $n = /* @__PURE__ */ h("ZodNumber", (e, t) => {
|
|
|
14147
14147
|
return this.check(/* @__PURE__ */ fe(i, n));
|
|
14148
14148
|
},
|
|
14149
14149
|
lt(i, n) {
|
|
14150
|
-
return this.check(/* @__PURE__ */
|
|
14150
|
+
return this.check(/* @__PURE__ */ Ge(i, n));
|
|
14151
14151
|
},
|
|
14152
14152
|
lte(i, n) {
|
|
14153
14153
|
return this.check(/* @__PURE__ */ Se(i, n));
|
|
@@ -14162,13 +14162,13 @@ const $n = /* @__PURE__ */ h("ZodNumber", (e, t) => {
|
|
|
14162
14162
|
return this.check(tr(i));
|
|
14163
14163
|
},
|
|
14164
14164
|
positive(i) {
|
|
14165
|
-
return this.check(/* @__PURE__ */
|
|
14165
|
+
return this.check(/* @__PURE__ */ Qe(0, i));
|
|
14166
14166
|
},
|
|
14167
14167
|
nonnegative(i) {
|
|
14168
14168
|
return this.check(/* @__PURE__ */ fe(0, i));
|
|
14169
14169
|
},
|
|
14170
14170
|
negative(i) {
|
|
14171
|
-
return this.check(/* @__PURE__ */
|
|
14171
|
+
return this.check(/* @__PURE__ */ Ge(0, i));
|
|
14172
14172
|
},
|
|
14173
14173
|
nonpositive(i) {
|
|
14174
14174
|
return this.check(/* @__PURE__ */ Se(0, i));
|
|
@@ -14208,13 +14208,13 @@ function pp(e) {
|
|
|
14208
14208
|
return /* @__PURE__ */ cf(ht, e);
|
|
14209
14209
|
}
|
|
14210
14210
|
const wn = /* @__PURE__ */ h("ZodBoolean", (e, t) => {
|
|
14211
|
-
Oo.init(e, t),
|
|
14211
|
+
Oo.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Rf(e, r, i);
|
|
14212
14212
|
});
|
|
14213
14213
|
function ma(e) {
|
|
14214
14214
|
return /* @__PURE__ */ uf(wn, e);
|
|
14215
14215
|
}
|
|
14216
14216
|
const kn = /* @__PURE__ */ h("ZodBigInt", (e, t) => {
|
|
14217
|
-
xo.init(e, t),
|
|
14217
|
+
xo.init(e, t), A.init(e, t), e._zod.processJSONSchema = (i, n, o) => Cf(e, i), e.gte = (i, n) => e.check(/* @__PURE__ */ fe(i, n)), e.min = (i, n) => e.check(/* @__PURE__ */ fe(i, n)), e.gt = (i, n) => e.check(/* @__PURE__ */ Qe(i, n)), e.gte = (i, n) => e.check(/* @__PURE__ */ fe(i, n)), e.min = (i, n) => e.check(/* @__PURE__ */ fe(i, n)), e.lt = (i, n) => e.check(/* @__PURE__ */ Ge(i, n)), e.lte = (i, n) => e.check(/* @__PURE__ */ Se(i, n)), e.max = (i, n) => e.check(/* @__PURE__ */ Se(i, n)), e.positive = (i) => e.check(/* @__PURE__ */ Qe(BigInt(0), i)), e.negative = (i) => e.check(/* @__PURE__ */ Ge(BigInt(0), i)), e.nonpositive = (i) => e.check(/* @__PURE__ */ Se(BigInt(0), i)), e.nonnegative = (i) => e.check(/* @__PURE__ */ fe(BigInt(0), i)), e.multipleOf = (i, n) => e.check(/* @__PURE__ */ It(i, n));
|
|
14218
14218
|
const r = e._zod.bag;
|
|
14219
14219
|
e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null;
|
|
14220
14220
|
});
|
|
@@ -14231,49 +14231,49 @@ function vp(e) {
|
|
|
14231
14231
|
return /* @__PURE__ */ pf(Gr, e);
|
|
14232
14232
|
}
|
|
14233
14233
|
const pa = /* @__PURE__ */ h("ZodSymbol", (e, t) => {
|
|
14234
|
-
nd.init(e, t),
|
|
14234
|
+
nd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Mf(e, r);
|
|
14235
14235
|
});
|
|
14236
14236
|
function yp(e) {
|
|
14237
14237
|
return /* @__PURE__ */ hf(pa, e);
|
|
14238
14238
|
}
|
|
14239
14239
|
const ha = /* @__PURE__ */ h("ZodUndefined", (e, t) => {
|
|
14240
|
-
rd.init(e, t),
|
|
14240
|
+
rd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Zf(e, r);
|
|
14241
14241
|
});
|
|
14242
14242
|
function _p(e) {
|
|
14243
14243
|
return /* @__PURE__ */ gf(ha, e);
|
|
14244
14244
|
}
|
|
14245
14245
|
const ga = /* @__PURE__ */ h("ZodNull", (e, t) => {
|
|
14246
|
-
id.init(e, t),
|
|
14246
|
+
id.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Lf(e, r, i);
|
|
14247
14247
|
});
|
|
14248
14248
|
function va(e) {
|
|
14249
14249
|
return /* @__PURE__ */ vf(ga, e);
|
|
14250
14250
|
}
|
|
14251
14251
|
const ya = /* @__PURE__ */ h("ZodAny", (e, t) => {
|
|
14252
|
-
od.init(e, t),
|
|
14252
|
+
od.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => qf();
|
|
14253
14253
|
});
|
|
14254
14254
|
function bp() {
|
|
14255
14255
|
return /* @__PURE__ */ yf(ya);
|
|
14256
14256
|
}
|
|
14257
14257
|
const _a = /* @__PURE__ */ h("ZodUnknown", (e, t) => {
|
|
14258
|
-
ad.init(e, t),
|
|
14258
|
+
ad.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Jf();
|
|
14259
14259
|
});
|
|
14260
14260
|
function mt() {
|
|
14261
14261
|
return /* @__PURE__ */ _f(_a);
|
|
14262
14262
|
}
|
|
14263
14263
|
const ba = /* @__PURE__ */ h("ZodNever", (e, t) => {
|
|
14264
|
-
sd.init(e, t),
|
|
14264
|
+
sd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Bf(e, r, i);
|
|
14265
14265
|
});
|
|
14266
14266
|
function Qr(e) {
|
|
14267
14267
|
return /* @__PURE__ */ bf(ba, e);
|
|
14268
14268
|
}
|
|
14269
14269
|
const $a = /* @__PURE__ */ h("ZodVoid", (e, t) => {
|
|
14270
|
-
cd.init(e, t),
|
|
14270
|
+
cd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Ff(e, r);
|
|
14271
14271
|
});
|
|
14272
14272
|
function $p(e) {
|
|
14273
14273
|
return /* @__PURE__ */ $f($a, e);
|
|
14274
14274
|
}
|
|
14275
14275
|
const Yr = /* @__PURE__ */ h("ZodDate", (e, t) => {
|
|
14276
|
-
ud.init(e, t),
|
|
14276
|
+
ud.init(e, t), A.init(e, t), e._zod.processJSONSchema = (i, n, o) => Vf(e, i), e.min = (i, n) => e.check(/* @__PURE__ */ fe(i, n)), e.max = (i, n) => e.check(/* @__PURE__ */ Se(i, n));
|
|
14277
14277
|
const r = e._zod.bag;
|
|
14278
14278
|
e.minDate = r.minimum ? new Date(r.minimum) : null, e.maxDate = r.maximum ? new Date(r.maximum) : null;
|
|
14279
14279
|
});
|
|
@@ -14281,7 +14281,7 @@ function wp(e) {
|
|
|
14281
14281
|
return /* @__PURE__ */ wf(Yr, e);
|
|
14282
14282
|
}
|
|
14283
14283
|
const wa = /* @__PURE__ */ h("ZodArray", (e, t) => {
|
|
14284
|
-
ld.init(e, t),
|
|
14284
|
+
ld.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => im(e, r, i, n), e.element = t.element, yn(e, "ZodArray", {
|
|
14285
14285
|
min(r, i) {
|
|
14286
14286
|
return this.check(/* @__PURE__ */ ft(r, i));
|
|
14287
14287
|
},
|
|
@@ -14307,7 +14307,7 @@ function kp(e) {
|
|
|
14307
14307
|
return ei(Object.keys(t));
|
|
14308
14308
|
}
|
|
14309
14309
|
const In = /* @__PURE__ */ h("ZodObject", (e, t) => {
|
|
14310
|
-
pd.init(e, t),
|
|
14310
|
+
pd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => om(e, r, i, n), C(e, "shape", () => t.shape), yn(e, "ZodObject", {
|
|
14311
14311
|
keyof() {
|
|
14312
14312
|
return ei(Object.keys(this._zod.def.shape));
|
|
14313
14313
|
},
|
|
@@ -14374,7 +14374,7 @@ function zp(e, t) {
|
|
|
14374
14374
|
});
|
|
14375
14375
|
}
|
|
14376
14376
|
const zn = /* @__PURE__ */ h("ZodUnion", (e, t) => {
|
|
14377
|
-
_r.init(e, t),
|
|
14377
|
+
_r.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => oa(e, r, i, n), e.options = t.options;
|
|
14378
14378
|
});
|
|
14379
14379
|
function Xr(e, t) {
|
|
14380
14380
|
return new zn({
|
|
@@ -14406,7 +14406,7 @@ function xp(e, t, r) {
|
|
|
14406
14406
|
});
|
|
14407
14407
|
}
|
|
14408
14408
|
const Ia = /* @__PURE__ */ h("ZodIntersection", (e, t) => {
|
|
14409
|
-
vd.init(e, t),
|
|
14409
|
+
vd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => am(e, r, i, n);
|
|
14410
14410
|
});
|
|
14411
14411
|
function za(e, t) {
|
|
14412
14412
|
return new Ia({
|
|
@@ -14416,7 +14416,7 @@ function za(e, t) {
|
|
|
14416
14416
|
});
|
|
14417
14417
|
}
|
|
14418
14418
|
const Oa = /* @__PURE__ */ h("ZodTuple", (e, t) => {
|
|
14419
|
-
Eo.init(e, t),
|
|
14419
|
+
Eo.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => sm(e, r, i, n), e.rest = (r) => e.clone({
|
|
14420
14420
|
...e._zod.def,
|
|
14421
14421
|
rest: r
|
|
14422
14422
|
});
|
|
@@ -14431,7 +14431,7 @@ function xa(e, t, r) {
|
|
|
14431
14431
|
});
|
|
14432
14432
|
}
|
|
14433
14433
|
const Et = /* @__PURE__ */ h("ZodRecord", (e, t) => {
|
|
14434
|
-
yd.init(e, t),
|
|
14434
|
+
yd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => cm(e, r, i, n), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
14435
14435
|
});
|
|
14436
14436
|
function Ea(e, t, r) {
|
|
14437
14437
|
return !t || !t._zod ? new Et({
|
|
@@ -14465,7 +14465,7 @@ function Np(e, t, r) {
|
|
|
14465
14465
|
});
|
|
14466
14466
|
}
|
|
14467
14467
|
const Na = /* @__PURE__ */ h("ZodMap", (e, t) => {
|
|
14468
|
-
_d.init(e, t),
|
|
14468
|
+
_d.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => nm(e, r), e.keyType = t.keyType, e.valueType = t.valueType, e.min = (...r) => e.check(/* @__PURE__ */ Ye(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ye(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ Pt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ pn(...r));
|
|
14469
14469
|
});
|
|
14470
14470
|
function Dp(e, t, r) {
|
|
14471
14471
|
return new Na({
|
|
@@ -14476,7 +14476,7 @@ function Dp(e, t, r) {
|
|
|
14476
14476
|
});
|
|
14477
14477
|
}
|
|
14478
14478
|
const Da = /* @__PURE__ */ h("ZodSet", (e, t) => {
|
|
14479
|
-
bd.init(e, t),
|
|
14479
|
+
bd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => rm(e, r), e.min = (...r) => e.check(/* @__PURE__ */ Ye(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ye(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ Pt(...r)), e.size = (...r) => e.check(/* @__PURE__ */ pn(...r));
|
|
14480
14480
|
});
|
|
14481
14481
|
function Tp(e, t) {
|
|
14482
14482
|
return new Da({
|
|
@@ -14486,7 +14486,7 @@ function Tp(e, t) {
|
|
|
14486
14486
|
});
|
|
14487
14487
|
}
|
|
14488
14488
|
const Nt = /* @__PURE__ */ h("ZodEnum", (e, t) => {
|
|
14489
|
-
$d.init(e, t),
|
|
14489
|
+
$d.init(e, t), A.init(e, t), e._zod.processJSONSchema = (i, n, o) => Kf(e, i, n), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
14490
14490
|
const r = new Set(Object.keys(t.entries));
|
|
14491
14491
|
e.extract = (i, n) => {
|
|
14492
14492
|
const o = {};
|
|
@@ -14532,7 +14532,7 @@ function jp(e, t) {
|
|
|
14532
14532
|
});
|
|
14533
14533
|
}
|
|
14534
14534
|
const Ta = /* @__PURE__ */ h("ZodLiteral", (e, t) => {
|
|
14535
|
-
wd.init(e, t),
|
|
14535
|
+
wd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Wf(e, r, i), e.values = new Set(t.values), Object.defineProperty(e, "value", {
|
|
14536
14536
|
get() {
|
|
14537
14537
|
if (t.values.length > 1)
|
|
14538
14538
|
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
@@ -14548,13 +14548,13 @@ function Up(e, t) {
|
|
|
14548
14548
|
});
|
|
14549
14549
|
}
|
|
14550
14550
|
const ja = /* @__PURE__ */ h("ZodFile", (e, t) => {
|
|
14551
|
-
kd.init(e, t),
|
|
14551
|
+
kd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Qf(e, r, i), e.min = (r, i) => e.check(/* @__PURE__ */ Ye(r, i)), e.max = (r, i) => e.check(/* @__PURE__ */ Pt(r, i)), e.mime = (r, i) => e.check(/* @__PURE__ */ Or(Array.isArray(r) ? r : [r], i));
|
|
14552
14552
|
});
|
|
14553
14553
|
function Pp(e) {
|
|
14554
14554
|
return /* @__PURE__ */ zf(ja, e);
|
|
14555
14555
|
}
|
|
14556
14556
|
const Ua = /* @__PURE__ */ h("ZodTransform", (e, t) => {
|
|
14557
|
-
Sd.init(e, t),
|
|
14557
|
+
Sd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => tm(e, r), e._zod.parse = (r, i) => {
|
|
14558
14558
|
if (i.direction === "backward")
|
|
14559
14559
|
throw new pr(e.constructor.name);
|
|
14560
14560
|
r.addIssue = (o) => {
|
|
@@ -14576,7 +14576,7 @@ function ti(e) {
|
|
|
14576
14576
|
});
|
|
14577
14577
|
}
|
|
14578
14578
|
const ni = /* @__PURE__ */ h("ZodOptional", (e, t) => {
|
|
14579
|
-
No.init(e, t),
|
|
14579
|
+
No.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => aa(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14580
14580
|
});
|
|
14581
14581
|
function Ht(e) {
|
|
14582
14582
|
return new ni({
|
|
@@ -14585,7 +14585,7 @@ function Ht(e) {
|
|
|
14585
14585
|
});
|
|
14586
14586
|
}
|
|
14587
14587
|
const Pa = /* @__PURE__ */ h("ZodExactOptional", (e, t) => {
|
|
14588
|
-
Id.init(e, t),
|
|
14588
|
+
Id.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => aa(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14589
14589
|
});
|
|
14590
14590
|
function Aa(e) {
|
|
14591
14591
|
return new Pa({
|
|
@@ -14594,7 +14594,7 @@ function Aa(e) {
|
|
|
14594
14594
|
});
|
|
14595
14595
|
}
|
|
14596
14596
|
const Ra = /* @__PURE__ */ h("ZodNullable", (e, t) => {
|
|
14597
|
-
zd.init(e, t),
|
|
14597
|
+
zd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => um(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14598
14598
|
});
|
|
14599
14599
|
function Gt(e) {
|
|
14600
14600
|
return new Ra({
|
|
@@ -14606,7 +14606,7 @@ function Ap(e) {
|
|
|
14606
14606
|
return Ht(Gt(e));
|
|
14607
14607
|
}
|
|
14608
14608
|
const Ca = /* @__PURE__ */ h("ZodDefault", (e, t) => {
|
|
14609
|
-
Od.init(e, t),
|
|
14609
|
+
Od.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => dm(e, r, i, n), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
14610
14610
|
});
|
|
14611
14611
|
function Ma(e, t) {
|
|
14612
14612
|
return new Ca({
|
|
@@ -14618,7 +14618,7 @@ function Ma(e, t) {
|
|
|
14618
14618
|
});
|
|
14619
14619
|
}
|
|
14620
14620
|
const La = /* @__PURE__ */ h("ZodPrefault", (e, t) => {
|
|
14621
|
-
xd.init(e, t),
|
|
14621
|
+
xd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => fm(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14622
14622
|
});
|
|
14623
14623
|
function Za(e, t) {
|
|
14624
14624
|
return new La({
|
|
@@ -14630,7 +14630,7 @@ function Za(e, t) {
|
|
|
14630
14630
|
});
|
|
14631
14631
|
}
|
|
14632
14632
|
const ri = /* @__PURE__ */ h("ZodNonOptional", (e, t) => {
|
|
14633
|
-
Ed.init(e, t),
|
|
14633
|
+
Ed.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => lm(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14634
14634
|
});
|
|
14635
14635
|
function Fa(e, t) {
|
|
14636
14636
|
return new ri({
|
|
@@ -14640,7 +14640,7 @@ function Fa(e, t) {
|
|
|
14640
14640
|
});
|
|
14641
14641
|
}
|
|
14642
14642
|
const Ba = /* @__PURE__ */ h("ZodSuccess", (e, t) => {
|
|
14643
|
-
Nd.init(e, t),
|
|
14643
|
+
Nd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Yf(e, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
14644
14644
|
});
|
|
14645
14645
|
function Rp(e) {
|
|
14646
14646
|
return new Ba({
|
|
@@ -14649,7 +14649,7 @@ function Rp(e) {
|
|
|
14649
14649
|
});
|
|
14650
14650
|
}
|
|
14651
14651
|
const qa = /* @__PURE__ */ h("ZodCatch", (e, t) => {
|
|
14652
|
-
Dd.init(e, t),
|
|
14652
|
+
Dd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => mm(e, r, i, n), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
14653
14653
|
});
|
|
14654
14654
|
function Ja(e, t) {
|
|
14655
14655
|
return new qa({
|
|
@@ -14659,13 +14659,13 @@ function Ja(e, t) {
|
|
|
14659
14659
|
});
|
|
14660
14660
|
}
|
|
14661
14661
|
const Va = /* @__PURE__ */ h("ZodNaN", (e, t) => {
|
|
14662
|
-
Td.init(e, t),
|
|
14662
|
+
Td.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Hf(e, r);
|
|
14663
14663
|
});
|
|
14664
14664
|
function Cp(e) {
|
|
14665
14665
|
return /* @__PURE__ */ Sf(Va, e);
|
|
14666
14666
|
}
|
|
14667
14667
|
const On = /* @__PURE__ */ h("ZodPipe", (e, t) => {
|
|
14668
|
-
Do.init(e, t),
|
|
14668
|
+
Do.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => pm(e, r, i, n), e.in = t.in, e.out = t.out;
|
|
14669
14669
|
});
|
|
14670
14670
|
function nr(e, t) {
|
|
14671
14671
|
return new On({
|
|
@@ -14700,7 +14700,7 @@ function Lp(e) {
|
|
|
14700
14700
|
const Ka = /* @__PURE__ */ h("ZodPreprocess", (e, t) => {
|
|
14701
14701
|
On.init(e, t), jd.init(e, t);
|
|
14702
14702
|
}), Wa = /* @__PURE__ */ h("ZodReadonly", (e, t) => {
|
|
14703
|
-
Ud.init(e, t),
|
|
14703
|
+
Ud.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => hm(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14704
14704
|
});
|
|
14705
14705
|
function Ha(e) {
|
|
14706
14706
|
return new Wa({
|
|
@@ -14709,7 +14709,7 @@ function Ha(e) {
|
|
|
14709
14709
|
});
|
|
14710
14710
|
}
|
|
14711
14711
|
const Ga = /* @__PURE__ */ h("ZodTemplateLiteral", (e, t) => {
|
|
14712
|
-
Pd.init(e, t),
|
|
14712
|
+
Pd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Gf(e, r, i);
|
|
14713
14713
|
});
|
|
14714
14714
|
function Zp(e, t) {
|
|
14715
14715
|
return new Ga({
|
|
@@ -14719,7 +14719,7 @@ function Zp(e, t) {
|
|
|
14719
14719
|
});
|
|
14720
14720
|
}
|
|
14721
14721
|
const Qa = /* @__PURE__ */ h("ZodLazy", (e, t) => {
|
|
14722
|
-
Cd.init(e, t),
|
|
14722
|
+
Cd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => vm(e, r, i, n), e.unwrap = () => e._zod.def.getter();
|
|
14723
14723
|
});
|
|
14724
14724
|
function Ya(e) {
|
|
14725
14725
|
return new Qa({
|
|
@@ -14728,7 +14728,7 @@ function Ya(e) {
|
|
|
14728
14728
|
});
|
|
14729
14729
|
}
|
|
14730
14730
|
const Xa = /* @__PURE__ */ h("ZodPromise", (e, t) => {
|
|
14731
|
-
Rd.init(e, t),
|
|
14731
|
+
Rd.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => gm(e, r, i, n), e.unwrap = () => e._zod.def.innerType;
|
|
14732
14732
|
});
|
|
14733
14733
|
function Fp(e) {
|
|
14734
14734
|
return new Xa({
|
|
@@ -14737,7 +14737,7 @@ function Fp(e) {
|
|
|
14737
14737
|
});
|
|
14738
14738
|
}
|
|
14739
14739
|
const es = /* @__PURE__ */ h("ZodFunction", (e, t) => {
|
|
14740
|
-
Ad.init(e, t),
|
|
14740
|
+
Ad.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => em(e, r);
|
|
14741
14741
|
});
|
|
14742
14742
|
function rr(e) {
|
|
14743
14743
|
return new es({
|
|
@@ -14747,7 +14747,7 @@ function rr(e) {
|
|
|
14747
14747
|
});
|
|
14748
14748
|
}
|
|
14749
14749
|
const En = /* @__PURE__ */ h("ZodCustom", (e, t) => {
|
|
14750
|
-
Md.init(e, t),
|
|
14750
|
+
Md.init(e, t), A.init(e, t), e._zod.processJSONSchema = (r, i, n) => Xf(e, r);
|
|
14751
14751
|
});
|
|
14752
14752
|
function Bp(e) {
|
|
14753
14753
|
const t = new V({
|
|
@@ -14861,7 +14861,7 @@ const U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14861
14861
|
ZodTemplateLiteral: Ga,
|
|
14862
14862
|
ZodTransform: Ua,
|
|
14863
14863
|
ZodTuple: Oa,
|
|
14864
|
-
ZodType:
|
|
14864
|
+
ZodType: A,
|
|
14865
14865
|
ZodULID: Mr,
|
|
14866
14866
|
ZodURL: bn,
|
|
14867
14867
|
ZodUUID: De,
|
|
@@ -15376,7 +15376,7 @@ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15376
15376
|
ZodTemplateLiteral: Ga,
|
|
15377
15377
|
ZodTransform: Ua,
|
|
15378
15378
|
ZodTuple: Oa,
|
|
15379
|
-
ZodType:
|
|
15379
|
+
ZodType: A,
|
|
15380
15380
|
ZodULID: Mr,
|
|
15381
15381
|
ZodURL: bn,
|
|
15382
15382
|
ZodUUID: De,
|
|
@@ -15429,7 +15429,7 @@ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15429
15429
|
function: rr,
|
|
15430
15430
|
getErrorMap: R0,
|
|
15431
15431
|
globalRegistry: ke,
|
|
15432
|
-
gt:
|
|
15432
|
+
gt: Qe,
|
|
15433
15433
|
gte: fe,
|
|
15434
15434
|
guid: Cm,
|
|
15435
15435
|
hash: lp,
|
|
@@ -15457,7 +15457,7 @@ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15457
15457
|
looseObject: zp,
|
|
15458
15458
|
looseRecord: Np,
|
|
15459
15459
|
lowercase: wr,
|
|
15460
|
-
lt:
|
|
15460
|
+
lt: Ge,
|
|
15461
15461
|
lte: Se,
|
|
15462
15462
|
mac: Xm,
|
|
15463
15463
|
map: Dp,
|
|
@@ -15466,7 +15466,7 @@ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15466
15466
|
meta: Vp,
|
|
15467
15467
|
mime: Or,
|
|
15468
15468
|
minLength: ft,
|
|
15469
|
-
minSize:
|
|
15469
|
+
minSize: Ye,
|
|
15470
15470
|
multipleOf: It,
|
|
15471
15471
|
nan: Cp,
|
|
15472
15472
|
nanoid: Vm,
|
|
@@ -15566,7 +15566,7 @@ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15566
15566
|
}
|
|
15567
15567
|
}
|
|
15568
15568
|
}, yi = {}, Q0 = (e, t, r) => {
|
|
15569
|
-
const i = Y0(e.serverUrl, e.agentExecutorVersion), n = `${t.uid}-${i}-${e.widgetKey}`;
|
|
15569
|
+
const i = Y0(e.serverUrl, e.agentExecutorVersion), n = `${t.uid}-${i}-${e.widgetKey}-${e.appId ?? ""}`;
|
|
15570
15570
|
if (yi[n]) return { socket: yi[n], socketKey: n };
|
|
15571
15571
|
const o = gy(i, r), a = () => e.appId && e.accountId && e.appWidgetKey ? {
|
|
15572
15572
|
uid: t.uid,
|
|
@@ -15577,14 +15577,15 @@ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15577
15577
|
} : {
|
|
15578
15578
|
widgetKey: e.widgetKey,
|
|
15579
15579
|
uid: t.uid,
|
|
15580
|
-
user: t
|
|
15580
|
+
user: t,
|
|
15581
|
+
...e.appId && { projectId: e.appId }
|
|
15581
15582
|
}, { getAccessToken: s } = e;
|
|
15582
15583
|
return s ? o.auth = (c) => {
|
|
15583
15584
|
Promise.resolve().then(s).then((u) => c({ ...a(), ...u && { token: u } })).catch(() => c(a()));
|
|
15584
15585
|
} : o.auth = a(), o.connect(), yi[n] = o, { socket: o, socketKey: n };
|
|
15585
15586
|
}, Y0 = (e, t) => `${e.includes("localhost:3000") ? e.replace("3000", "3001") : e}/agent-executor-socket${t ? `/${t}` : ""}`, X0 = (e) => {
|
|
15586
15587
|
const t = e.agentExecutorVersion;
|
|
15587
|
-
|
|
15588
|
+
Ke.defaults.url = `${e.serverUrl}/agent-executor${t ? `/${t}` : ""}`, Ke.defaults.baseURL = `${e.serverUrl}/agent-executor${t ? `/${t}` : ""}`, Ke.defaults.params = { ...e.appId && { projectId: e.appId } }, Ke.defaults.headers.common = {
|
|
15588
15589
|
...e.accountId && e.appId && e.appWidgetKey ? {
|
|
15589
15590
|
"app-id": e.appId,
|
|
15590
15591
|
"account-id": e.accountId,
|
|
@@ -15657,7 +15658,7 @@ new URL("data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2
|
|
|
15657
15658
|
new URL("data:image/svg+xml,%3csvg%20width='42'%20height='38'%20viewBox='0%200%2042%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_d_22324_951)'%3e%3cpath%20d='M21.7279%205.27482C19.3848%202.93167%2015.5858%202.93167%2013.2426%205.27482L4.75736%2013.7601C2.41421%2016.1032%202.41421%2019.9022%204.75736%2022.2454L13.2426%2030.7307C15.5858%2033.0738%2019.3848%2033.0738%2021.7279%2030.7307L25.7766%2026.6819C22.4062%2025.3816%2020.0151%2022.1111%2020.0151%2018.2822C20.0151%2014.3006%2022.6005%2010.9229%2026.1841%209.73643C26.1141%209.66276%2026.0429%209.58976%2025.9706%209.51746L21.7279%205.27482Z'%20fill='url(%23paint0_linear_22324_951)'%20class='fill-background'/%3e%3cpath%20opacity='0.7'%20d='M25.7773%2026.6848C26.7821%2027.0724%2027.8739%2027.2849%2029.0154%2027.2849C33.9859%2027.2849%2038.0154%2023.2555%2038.0154%2018.2849C38.0154%2013.3143%2033.9859%209.28491%2029.0154%209.28491C28.0265%209.28491%2027.0749%209.44439%2026.1849%209.73903C30.6566%2014.4401%2030.5855%2021.8767%2025.9714%2026.4907L25.7773%2026.6848Z'%20fill='url(%23paint1_linear_22324_951)'%20class='fill-background'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_22324_951'%20x='0'%20y='-0.75'%20width='41.25'%20height='42'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeMorphology%20radius='1.5'%20operator='erode'%20in='SourceAlpha'%20result='effect1_dropShadow_22324_951'/%3e%3cfeOffset%20dy='2.25'/%3e%3cfeGaussianBlur%20stdDeviation='2.25'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.141176%200%200%200%200%200.141176%200%200%200%200%200.141176%200%200%200%200.1%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_22324_951'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_22324_951'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_22324_951'%20x1='14.5921'%20y1='3.51746'%20x2='14.5921'%20y2='32.488'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.8'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0.5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_22324_951'%20x1='31.8964'%20y1='9.28491'%20x2='31.8964'%20y2='27.2849'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.8'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0.5'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href;
|
|
15658
15659
|
new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzE5OTg5XzQ3MTY3X2NsaXBfcGF0aCkiIGRhdGEtZmlnbWEtc2tpcC1wYXJzZT0idHJ1ZSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAwLjAxNCAtMC4wMTUgMCAxNiAxNikiPjxmb3JlaWduT2JqZWN0IHg9Ii0xMTc1LjgyIiB5PSItMTE3NS44MiIgd2lkdGg9IjIzNTEuNjUiIGhlaWdodD0iMjM1MS42NSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tncm91bmQ6Y29uaWMtZ3JhZGllbnQoZnJvbSA5MGRlZyxyZ2JhKDIyLCAxNjMsIDc0LCAxKSAwZGVnLHJnYmEoNjAsIDIwMCwgMTExLCAxKSAzNjBkZWcpO2hlaWdodDoxMDAlO3dpZHRoOjEwMCU7b3BhY2l0eToxIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PC9nPjwvZz48cGF0aCBkPSJNMSAxNS45NjA5QzEgOC4yNjA3NCA3LjM4NjcyIDIgMTUuMzIyMyAyQzIzLjI1NzggMiAyOS42NDU1IDguMjYwNzQgMjkuNjQ1NSAxNS45NjA5QzI5LjY0NTUgMTkuMDI5MyAyOC42NTE0IDIxLjg2MTMgMjYuOTYgMjQuMTY3SDMwLjAzMjJDMzAuNjkwNCAyNC4xNjcgMzEgMjQuNDc3NSAzMSAyNS4xMzg3VjI5LjAyNzNDMzEgMjkuNjg4NSAzMC42OTA0IDMwIDMwLjAzMjIgMzBIMTYuNDE1VjIyLjkyMzhDMTkuNzMwNSAyMi40MjE5IDIyLjI5IDE5LjQ5NjEgMjIuMjkgMTUuOTYwOUMyMi4yOSAxMi4xNTA0IDE5LjE5MzQgOSAxNS40MDA0IDlDMTEuNDUxMiA5IDguMzU0NDkgMTIuMTUwNCA4LjM1NDQ5IDE1Ljk2MDlDOC4zNTQ0OSAxOS44NDk2IDExLjQ1MTIgMjMgMTUuNDAwNCAyM0gxNS40MTVWMzBIMTUuMzIyM0M3LjM4NjcyIDMwIDEgMjMuNzM5MyAxIDE1Ljk2MDlaIiBkYXRhLWZpZ21hLWdyYWRpZW50LWZpbGw9InsmIzM0O3R5cGUmIzM0OzomIzM0O0dSQURJRU5UX0FOR1VMQVImIzM0OywmIzM0O3N0b3BzJiMzNDs6W3smIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjAuMDg2Mjc0NTEyMTEyMTQwNjU2LCYjMzQ7ZyYjMzQ7OjAuNjM5MjE1NzA3Nzc4OTMwNjYsJiMzNDtiJiMzNDs6MC4yOTAxOTYwOTA5MzY2NjA3NywmIzM0O2EmIzM0OzoxLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzowLjB9LHsmIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjAuMjM2MzAwNzIxNzY0NTY0NTEsJiMzNDtnJiMzNDs6MC43ODYxMTQwMzcwMzY4OTU3NSwmIzM0O2ImIzM0OzowLjQzOTA2ODc5NDI1MDQ4ODI4LCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjEuMH1dLCYjMzQ7c3RvcHNWYXImIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MC4wODYyNzQ1MTIxMTIxNDA2NTYsJiMzNDtnJiMzNDs6MC42MzkyMTU3MDc3Nzg5MzA2NiwmIzM0O2ImIzM0OzowLjI5MDE5NjA5MDkzNjY2MDc3LCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuMH0seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MC4yMzYzMDA3MjE3NjQ1NjQ1MSwmIzM0O2cmIzM0OzowLjc4NjExNDAzNzAzNjg5NTc1LCYjMzQ7YiYjMzQ7OjAuNDM5MDY4Nzk0MjUwNDg4MjgsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MS4wfV0sJiMzNDt0cmFuc2Zvcm0mIzM0Ozp7JiMzNDttMDAmIzM0OzoxLjgzNjk3MDMwNTM0NzUzMTRlLTE1LCYjMzQ7bTAxJiMzNDs6LTMwLjAsJiMzNDttMDImIzM0OzozMS4wLCYjMzQ7bTEwJiMzNDs6MjguMCwmIzM0O20xMSYjMzQ7OjEuNzE0NTA1NjQ2NTU4Nzk0MmUtMTUsJiMzNDttMTImIzM0OzoyLjB9LCYjMzQ7b3BhY2l0eSYjMzQ7OjEuMCwmIzM0O2JsZW5kTW9kZSYjMzQ7OiYjMzQ7Tk9STUFMJiMzNDssJiMzNDt2aXNpYmxlJiMzNDs6dHJ1ZX0iLz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0icGFpbnQwX2FuZ3VsYXJfMTk5ODlfNDcxNjdfY2xpcF9wYXRoIj48cGF0aCBkPSJNMSAxNS45NjA5QzEgOC4yNjA3NCA3LjM4NjcyIDIgMTUuMzIyMyAyQzIzLjI1NzggMiAyOS42NDU1IDguMjYwNzQgMjkuNjQ1NSAxNS45NjA5QzI5LjY0NTUgMTkuMDI5MyAyOC42NTE0IDIxLjg2MTMgMjYuOTYgMjQuMTY3SDMwLjAzMjJDMzAuNjkwNCAyNC4xNjcgMzEgMjQuNDc3NSAzMSAyNS4xMzg3VjI5LjAyNzNDMzEgMjkuNjg4NSAzMC42OTA0IDMwIDMwLjAzMjIgMzBIMTYuNDE1VjIyLjkyMzhDMTkuNzMwNSAyMi40MjE5IDIyLjI5IDE5LjQ5NjEgMjIuMjkgMTUuOTYwOUMyMi4yOSAxMi4xNTA0IDE5LjE5MzQgOSAxNS40MDA0IDlDMTEuNDUxMiA5IDguMzU0NDkgMTIuMTUwNCA4LjM1NDQ5IDE1Ljk2MDlDOC4zNTQ0OSAxOS44NDk2IDExLjQ1MTIgMjMgMTUuNDAwNCAyM0gxNS40MTVWMzBIMTUuMzIyM0M3LjM4NjcyIDMwIDEgMjMuNzM5MyAxIDE1Ljk2MDlaIi8+PC9jbGlwUGF0aD48L2RlZnM+Cjwvc3ZnPgo=", import.meta.url).href;
|
|
15659
15660
|
process.env.WIDGET_ROOT_CLASS;
|
|
15660
|
-
var _t = 9e15,
|
|
15661
|
+
var _t = 9e15, tt = 1e9, Ci = "0123456789abcdef", ir = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", or = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", Mi = {
|
|
15661
15662
|
// These values must be integers within the stated ranges (inclusive).
|
|
15662
15663
|
// Most of these values can be changed at run-time using the `Decimal.config` method.
|
|
15663
15664
|
// The maximum number of significant digits of the result of a calculation or base conversion.
|
|
@@ -15715,7 +15716,7 @@ var _t = 9e15, et = 1e9, Ci = "0123456789abcdef", ir = "2.3025850929940456840179
|
|
|
15715
15716
|
// Whether to use cryptographically-secure random number generation, if available.
|
|
15716
15717
|
crypto: !1
|
|
15717
15718
|
// true/false
|
|
15718
|
-
}, Xp, Ze, j = !0, ii = "[DecimalError] ",
|
|
15719
|
+
}, Xp, Ze, j = !0, ii = "[DecimalError] ", Xe = ii + "Invalid argument: ", eh = ii + "Precision limit exceeded", th = ii + "crypto unavailable", nh = "[object Decimal]", se = Math.floor, Q = 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, rh = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, xe = 1e7, N = 7, l$ = 9007199254740991, d$ = ir.length - 1, Li = or.length - 1, $ = { toStringTag: nh };
|
|
15719
15720
|
$.absoluteValue = $.abs = function() {
|
|
15720
15721
|
var e = new this.constructor(this);
|
|
15721
15722
|
return e.s < 0 && (e.s = 1), x(e);
|
|
@@ -15726,7 +15727,7 @@ $.ceil = function() {
|
|
|
15726
15727
|
$.clampedTo = $.clamp = function(e, t) {
|
|
15727
15728
|
var r, i = this, n = i.constructor;
|
|
15728
15729
|
if (e = new n(e), t = new n(t), !e.s || !t.s) return new n(NaN);
|
|
15729
|
-
if (e.gt(t)) throw Error(
|
|
15730
|
+
if (e.gt(t)) throw Error(Xe + t);
|
|
15730
15731
|
return r = i.cmp(e), r < 0 ? e : i.cmp(t) > 0 ? t : new n(i);
|
|
15731
15732
|
};
|
|
15732
15733
|
$.comparedTo = $.cmp = function(e) {
|
|
@@ -15892,9 +15893,9 @@ $.logarithm = $.log = function(e) {
|
|
|
15892
15893
|
for (n = r[0]; n % 10 === 0; ) n /= 10;
|
|
15893
15894
|
o = n !== 1;
|
|
15894
15895
|
}
|
|
15895
|
-
if (j = !1, s = d + m, a =
|
|
15896
|
+
if (j = !1, s = d + m, a = We(u, s), i = t ? ar(l, s + 10) : We(e, s), c = B(a, i, s, 1), Qt(c.d, n = d, f))
|
|
15896
15897
|
do
|
|
15897
|
-
if (s += 10, a =
|
|
15898
|
+
if (s += 10, a = We(u, s), i = t ? ar(l, s + 10) : We(e, s), c = B(a, i, s, 1), !o) {
|
|
15898
15899
|
+te(c.d).slice(n + 1, n + 15) + 1 == 1e14 && (c = x(c, d + 1, 0));
|
|
15899
15900
|
break;
|
|
15900
15901
|
}
|
|
@@ -15944,7 +15945,7 @@ $.naturalExponential = $.exp = function() {
|
|
|
15944
15945
|
return Zi(this);
|
|
15945
15946
|
};
|
|
15946
15947
|
$.naturalLogarithm = $.ln = function() {
|
|
15947
|
-
return
|
|
15948
|
+
return We(this);
|
|
15948
15949
|
};
|
|
15949
15950
|
$.negated = $.neg = function() {
|
|
15950
15951
|
var e = new this.constructor(this);
|
|
@@ -15969,7 +15970,7 @@ $.plus = $.add = function(e) {
|
|
|
15969
15970
|
};
|
|
15970
15971
|
$.precision = $.sd = function(e) {
|
|
15971
15972
|
var t, r = this;
|
|
15972
|
-
if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(
|
|
15973
|
+
if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(Xe + e);
|
|
15973
15974
|
return r.d ? (t = ih(r.d), e && r.e + 1 > t && (t = r.e + 1)) : t = NaN, t;
|
|
15974
15975
|
};
|
|
15975
15976
|
$.round = function() {
|
|
@@ -16020,15 +16021,15 @@ $.toBinary = function(e, t) {
|
|
|
16020
16021
|
};
|
|
16021
16022
|
$.toDecimalPlaces = $.toDP = function(e, t) {
|
|
16022
16023
|
var r = this, i = r.constructor;
|
|
16023
|
-
return r = new i(r), e === void 0 ? r : (pe(e, 0,
|
|
16024
|
+
return r = new i(r), e === void 0 ? r : (pe(e, 0, tt), t === void 0 ? t = i.rounding : pe(t, 0, 8), x(r, e + r.e + 1, t));
|
|
16024
16025
|
};
|
|
16025
16026
|
$.toExponential = function(e, t) {
|
|
16026
16027
|
var r, i = this, n = i.constructor;
|
|
16027
|
-
return e === void 0 ? r = Pe(i, !0) : (pe(e, 0,
|
|
16028
|
+
return e === void 0 ? r = Pe(i, !0) : (pe(e, 0, tt), t === void 0 ? t = n.rounding : pe(t, 0, 8), i = x(new n(i), e + 1, t), r = Pe(i, !0, e + 1)), i.isNeg() && !i.isZero() ? "-" + r : r;
|
|
16028
16029
|
};
|
|
16029
16030
|
$.toFixed = function(e, t) {
|
|
16030
16031
|
var r, i, n = this, o = n.constructor;
|
|
16031
|
-
return e === void 0 ? r = Pe(n) : (pe(e, 0,
|
|
16032
|
+
return e === void 0 ? r = Pe(n) : (pe(e, 0, tt), t === void 0 ? t = o.rounding : pe(t, 0, 8), i = x(new o(n), e + n.e + 1, t), r = Pe(i, !1, e + i.e + 1)), n.isNeg() && !n.isZero() ? "-" + r : r;
|
|
16032
16033
|
};
|
|
16033
16034
|
$.toFraction = function(e) {
|
|
16034
16035
|
var t, r, i, n, o, a, s, c, u, l, d, f, m = this, g = m.d, y = m.constructor;
|
|
@@ -16036,7 +16037,7 @@ $.toFraction = function(e) {
|
|
|
16036
16037
|
if (u = r = new y(1), i = c = new y(0), t = new y(i), o = t.e = ih(g) - m.e - 1, a = o % N, t.d[0] = Q(10, a < 0 ? N + a : a), e == null)
|
|
16037
16038
|
e = o > 0 ? t : u;
|
|
16038
16039
|
else {
|
|
16039
|
-
if (s = new y(e), !s.isInt() || s.lt(u)) throw Error(
|
|
16040
|
+
if (s = new y(e), !s.isInt() || s.lt(u)) throw Error(Xe + s);
|
|
16040
16041
|
e = s.gt(t) ? o > 0 ? t : u : s;
|
|
16041
16042
|
}
|
|
16042
16043
|
for (j = !1, s = new y(te(g)), l = y.precision, y.precision = o = g.length * N * 2; d = B(s, t, 0, 1, 1), n = r.plus(d.times(i)), n.cmp(e) != 1; )
|
|
@@ -16076,15 +16077,15 @@ $.toPower = $.pow = function(e) {
|
|
|
16076
16077
|
if ((e.d[t] & 1) == 0 && (a = 1), s.e == 0 && s.d[0] == 1 && s.d.length == 1)
|
|
16077
16078
|
return s.s = a, s;
|
|
16078
16079
|
}
|
|
16079
|
-
return r = Q(+s, u), t = r == 0 || !isFinite(r) ? se(u * (Math.log("0." + te(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) : (j = !1, c.rounding = s.s = 1, r = Math.min(12, (t + "").length), n = Zi(e.times(
|
|
16080
|
+
return r = Q(+s, u), t = r == 0 || !isFinite(r) ? se(u * (Math.log("0." + te(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) : (j = !1, c.rounding = s.s = 1, r = Math.min(12, (t + "").length), n = Zi(e.times(We(s, i + r)), i), n.d && (n = x(n, i + 5, 1), Qt(n.d, i, o) && (t = i + 10, n = x(Zi(e.times(We(s, t + r)), t), t + 5, 1), +te(n.d).slice(i + 1, i + 15) + 1 == 1e14 && (n = x(n, i + 1, 0)))), n.s = a, j = !0, c.rounding = o, x(n, i, o));
|
|
16080
16081
|
};
|
|
16081
16082
|
$.toPrecision = function(e, t) {
|
|
16082
16083
|
var r, i = this, n = i.constructor;
|
|
16083
|
-
return e === void 0 ? r = Pe(i, i.e <= n.toExpNeg || i.e >= n.toExpPos) : (pe(e, 1,
|
|
16084
|
+
return e === void 0 ? r = Pe(i, i.e <= n.toExpNeg || i.e >= n.toExpPos) : (pe(e, 1, tt), t === void 0 ? t = n.rounding : pe(t, 0, 8), i = x(new n(i), e, t), r = Pe(i, e <= i.e || i.e <= n.toExpNeg, e)), i.isNeg() && !i.isZero() ? "-" + r : r;
|
|
16084
16085
|
};
|
|
16085
16086
|
$.toSignificantDigits = $.toSD = function(e, t) {
|
|
16086
16087
|
var r = this, i = r.constructor;
|
|
16087
|
-
return e === void 0 ? (e = i.precision, t = i.rounding) : (pe(e, 1,
|
|
16088
|
+
return e === void 0 ? (e = i.precision, t = i.rounding) : (pe(e, 1, tt), t === void 0 ? t = i.rounding : pe(t, 0, 8)), x(new i(r), e, t);
|
|
16088
16089
|
};
|
|
16089
16090
|
$.toString = function() {
|
|
16090
16091
|
var e = this, t = e.constructor, r = Pe(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
|
|
@@ -16110,7 +16111,7 @@ function te(e) {
|
|
|
16110
16111
|
}
|
|
16111
16112
|
function pe(e, t, r) {
|
|
16112
16113
|
if (e !== ~~e || e < t || e > r)
|
|
16113
|
-
throw Error(
|
|
16114
|
+
throw Error(Xe + e);
|
|
16114
16115
|
}
|
|
16115
16116
|
function Qt(e, t, r, i) {
|
|
16116
16117
|
var n, o, a, s;
|
|
@@ -16160,21 +16161,21 @@ var B = /* @__PURE__ */ (function() {
|
|
|
16160
16161
|
for (; !i[0] && i.length > 1; ) i.shift();
|
|
16161
16162
|
}
|
|
16162
16163
|
return function(i, n, o, a, s, c) {
|
|
16163
|
-
var u, l, d, f, m, g, y, b, v, S, w, I, T,
|
|
16164
|
+
var u, l, d, f, m, g, y, b, v, S, w, I, T, P, ce, Ne, Re, _e, H, Ce, nt = i.constructor, de = i.s == n.s ? 1 : -1, W = i.d, L = n.d;
|
|
16164
16165
|
if (!W || !W[0] || !L || !L[0])
|
|
16165
|
-
return new
|
|
16166
|
+
return new nt(
|
|
16166
16167
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
16167
16168
|
!i.s || !n.s || (W ? L && W[0] == L[0] : !L) ? NaN : (
|
|
16168
16169
|
// Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
|
|
16169
16170
|
W && W[0] == 0 || !L ? de * 0 : de / 0
|
|
16170
16171
|
)
|
|
16171
16172
|
);
|
|
16172
|
-
for (c ? (m = 1, l = i.e - n.e) : (c = xe, m = N, l = se(i.e / m) - se(n.e / m)), H = L.length, Re = W.length, v = new
|
|
16173
|
-
if (L[d] > (W[d] || 0) && l--, o == null ? (
|
|
16173
|
+
for (c ? (m = 1, l = i.e - n.e) : (c = xe, m = N, l = se(i.e / m) - se(n.e / m)), H = L.length, Re = W.length, v = new nt(de), S = v.d = [], d = 0; L[d] == (W[d] || 0); d++) ;
|
|
16174
|
+
if (L[d] > (W[d] || 0) && l--, o == null ? (P = o = nt.precision, a = nt.rounding) : s ? P = o + (i.e - n.e) + 1 : P = o, P < 0)
|
|
16174
16175
|
S.push(1), g = !0;
|
|
16175
16176
|
else {
|
|
16176
|
-
if (
|
|
16177
|
-
for (f = 0, L = L[0],
|
|
16177
|
+
if (P = P / m + 2 | 0, d = 0, H == 1) {
|
|
16178
|
+
for (f = 0, L = L[0], P++; (d < Re || f) && P--; d++)
|
|
16178
16179
|
ce = f * c + (W[d] || 0), S[d] = ce / L | 0, f = ce % L | 0;
|
|
16179
16180
|
g = f || d < Re;
|
|
16180
16181
|
} else {
|
|
@@ -16182,7 +16183,7 @@ var B = /* @__PURE__ */ (function() {
|
|
|
16182
16183
|
Ce = L.slice(), Ce.unshift(0), _e = L[0], L[1] >= c / 2 && ++_e;
|
|
16183
16184
|
do
|
|
16184
16185
|
f = 0, u = t(L, w, H, I), u < 0 ? (T = w[0], H != I && (T = T * c + (w[1] || 0)), f = T / _e | 0, f > 1 ? (f >= c && (f = c - 1), y = e(L, f, c), b = y.length, I = w.length, u = t(y, w, b, I), u == 1 && (f--, r(y, H < b ? Ce : L, b, c))) : (f == 0 && (u = f = 1), y = L.slice()), b = y.length, b < I && y.unshift(0), r(w, y, I, c), u == -1 && (I = w.length, u = t(L, w, H, I), u < 1 && (f++, r(w, H < I ? Ce : L, I, c))), I = w.length) : u === 0 && (f++, w = [0]), S[d++] = f, u && w[0] ? w[I++] = W[Ne] || 0 : (w = [W[Ne]], I = 1);
|
|
16185
|
-
while ((Ne++ < Re || w[0] !== void 0) &&
|
|
16186
|
+
while ((Ne++ < Re || w[0] !== void 0) && P--);
|
|
16186
16187
|
g = w[0] !== void 0;
|
|
16187
16188
|
}
|
|
16188
16189
|
S[0] || S.shift();
|
|
@@ -16306,7 +16307,7 @@ function Zi(e, t) {
|
|
|
16306
16307
|
a = s;
|
|
16307
16308
|
}
|
|
16308
16309
|
}
|
|
16309
|
-
function
|
|
16310
|
+
function We(e, t) {
|
|
16310
16311
|
var r, i, n, o, a, s, c, u, l, d, f, m = 1, g = 10, y = e, b = y.d, v = y.constructor, S = v.rounding, w = v.precision;
|
|
16311
16312
|
if (y.s < 0 || !b || !b[0] || !y.e && b[0] == 1 && b.length == 1)
|
|
16312
16313
|
return new v(b && !b[0] ? -1 / 0 : y.s != 1 ? NaN : b ? 0 : y);
|
|
@@ -16315,7 +16316,7 @@ function Ke(e, t) {
|
|
|
16315
16316
|
y = y.times(e), r = te(y.d), i = r.charAt(0), m++;
|
|
16316
16317
|
o = y.e, i > 1 ? (y = new v("0." + r), o++) : y = new v(i + "." + r.slice(1));
|
|
16317
16318
|
} else
|
|
16318
|
-
return u = ar(v, l + 2, w).times(o + ""), y =
|
|
16319
|
+
return u = ar(v, l + 2, w).times(o + ""), y = We(new v(i + "." + r.slice(1)), l - g).plus(u), v.precision = w, t == null ? x(y, w, S, j = !0) : y;
|
|
16319
16320
|
for (d = y, c = a = y = B(y.minus(1), y.plus(1), l, 1), f = x(y.times(y), l, 1), n = 3; ; ) {
|
|
16320
16321
|
if (a = x(a.times(f), l, 1), u = c.plus(B(a, new v(n), l, 1)), te(u.d).slice(0, l) === te(c.d).slice(0, l))
|
|
16321
16322
|
if (c = c.times(2), o !== 0 && (c = c.plus(ar(v, l + 2, w).times(o + ""))), c = B(c, new v(m), l, 1), t == null)
|
|
@@ -16360,7 +16361,7 @@ function m$(e, t) {
|
|
|
16360
16361
|
else if (u$.test(t))
|
|
16361
16362
|
r = 8;
|
|
16362
16363
|
else
|
|
16363
|
-
throw Error(
|
|
16364
|
+
throw Error(Xe + t);
|
|
16364
16365
|
for (o = t.search(/p/i), o > 0 ? (c = +t.slice(o + 1), t = t.substring(2, o)) : t = t.slice(2), o = t.indexOf("."), a = o >= 0, i = e.constructor, a && (t = t.replace(".", ""), s = t.length, o = s - o, n = oh(i, new i(r), o, o * 2)), u = Vn(t, r, xe), l = u.length - 1, o = l; u[o] === 0; --o) u.pop();
|
|
16365
16366
|
return o < 0 ? new i(e.s * 0) : (e.e = oi(u, l), e.d = u, j = !1, a && (e = B(e, n, s * 4)), c && (e = e.times(Math.abs(c) < 54 ? Q(2, c) : si.pow(2, c))), j = !0, e);
|
|
16366
16367
|
}
|
|
@@ -16403,7 +16404,7 @@ function ch(e, t) {
|
|
|
16403
16404
|
}
|
|
16404
16405
|
function rs(e, t, r, i) {
|
|
16405
16406
|
var n, o, a, s, c, u, l, d, f, m = e.constructor, g = r !== void 0;
|
|
16406
|
-
if (g ? (pe(r, 1,
|
|
16407
|
+
if (g ? (pe(r, 1, tt), i === void 0 ? i = m.rounding : pe(i, 0, 8)) : (r = m.precision, i = m.rounding), !e.isFinite())
|
|
16407
16408
|
l = sh(e);
|
|
16408
16409
|
else {
|
|
16409
16410
|
for (l = Pe(e), a = l.indexOf("."), g ? (n = 2, t == 16 ? r = r * 4 - 3 : t == 8 && (r = r * 3 - 2)) : n = t, a >= 0 && (l = l.replace(".", ""), f = new m(1), f.e = l.length - a, f.d = Vn(Pe(f), 10, n), f.e = f.d.length), d = Vn(l, 10, n), o = c = d.length; d[--c] == 0; ) d.pop();
|
|
@@ -16481,7 +16482,7 @@ function O$(e) {
|
|
|
16481
16482
|
var t, r, i, n = e.defaults === !0, o = [
|
|
16482
16483
|
"precision",
|
|
16483
16484
|
1,
|
|
16484
|
-
|
|
16485
|
+
tt,
|
|
16485
16486
|
"rounding",
|
|
16486
16487
|
0,
|
|
16487
16488
|
8,
|
|
@@ -16504,7 +16505,7 @@ function O$(e) {
|
|
|
16504
16505
|
for (t = 0; t < o.length; t += 3)
|
|
16505
16506
|
if (r = o[t], n && (this[r] = Mi[r]), (i = e[r]) !== void 0)
|
|
16506
16507
|
if (se(i) === i && i >= o[t + 1] && i <= o[t + 2]) this[r] = i;
|
|
16507
|
-
else throw Error(
|
|
16508
|
+
else throw Error(Xe + r + ": " + i);
|
|
16508
16509
|
if (r = "crypto", n && (this[r] = Mi[r]), (i = e[r]) !== void 0)
|
|
16509
16510
|
if (i === !0 || i === !1 || i === 0 || i === 1)
|
|
16510
16511
|
if (i)
|
|
@@ -16515,7 +16516,7 @@ function O$(e) {
|
|
|
16515
16516
|
else
|
|
16516
16517
|
this[r] = !1;
|
|
16517
16518
|
else
|
|
16518
|
-
throw Error(
|
|
16519
|
+
throw Error(Xe + r + ": " + i);
|
|
16519
16520
|
return this;
|
|
16520
16521
|
}
|
|
16521
16522
|
function x$(e) {
|
|
@@ -16553,7 +16554,7 @@ function uh(e) {
|
|
|
16553
16554
|
return (s = o.charCodeAt(0)) === 45 ? (o = o.slice(1), u.s = -1) : (s === 43 && (o = o.slice(1)), u.s = 1), rh.test(o) ? Kn(u, o) : m$(u, o);
|
|
16554
16555
|
if (c === "bigint")
|
|
16555
16556
|
return o < 0 ? (o = -o, u.s = -1) : u.s = 1, Kn(u, o.toString());
|
|
16556
|
-
throw Error(
|
|
16557
|
+
throw Error(Xe + o);
|
|
16557
16558
|
}
|
|
16558
16559
|
if (n.prototype = $, n.ROUND_UP = 0, n.ROUND_DOWN = 1, n.ROUND_CEIL = 2, n.ROUND_FLOOR = 3, n.ROUND_HALF_UP = 4, n.ROUND_HALF_DOWN = 5, n.ROUND_HALF_EVEN = 6, n.ROUND_HALF_CEIL = 7, n.ROUND_HALF_FLOOR = 8, n.EUCLID = 9, n.config = n.set = O$, n.clone = uh, n.isDecimal = ac, n.abs = h$, n.acos = g$, n.acosh = v$, n.add = y$, n.asin = _$, n.asinh = b$, n.atan = $$, n.atanh = w$, n.atan2 = k$, n.cbrt = S$, n.ceil = I$, n.clamp = z$, n.cos = x$, n.cosh = E$, n.div = N$, n.exp = D$, n.floor = T$, n.hypot = j$, n.ln = U$, n.log = P$, n.log10 = R$, n.log2 = A$, n.max = C$, n.min = M$, n.mod = L$, n.mul = Z$, n.pow = F$, n.random = B$, n.round = q$, n.sign = J$, n.sin = V$, n.sinh = K$, n.sqrt = W$, n.sub = H$, n.sum = G$, n.tan = Q$, n.tanh = Y$, n.trunc = X$, e === void 0 && (e = {}), e && e.defaults !== !0)
|
|
16559
16560
|
for (i = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], t = 0; t < i.length; ) e.hasOwnProperty(r = i[t++]) || (e[r] = this[r]);
|
|
@@ -16612,7 +16613,7 @@ function F$(e, t) {
|
|
|
16612
16613
|
}
|
|
16613
16614
|
function B$(e) {
|
|
16614
16615
|
var t, r, i, n, o = 0, a = new this(1), s = [];
|
|
16615
|
-
if (e === void 0 ? e = this.precision : pe(e, 1,
|
|
16616
|
+
if (e === void 0 ? e = this.precision : pe(e, 1, tt), i = Math.ceil(e / N), this.crypto)
|
|
16616
16617
|
if (crypto.getRandomValues)
|
|
16617
16618
|
for (t = crypto.getRandomValues(new Uint32Array(i)); o < i; )
|
|
16618
16619
|
n = t[o], n >= 429e7 ? t[o] = crypto.getRandomValues(new Uint32Array(1))[0] : s[o++] = n % 1e7;
|
|
@@ -16680,7 +16681,7 @@ const ew = (e) => e?.map((t) => ({
|
|
|
16680
16681
|
sourceType: Yp.AgentExecutorDocument,
|
|
16681
16682
|
fileName: s.name,
|
|
16682
16683
|
mimeType: s.type || void 0
|
|
16683
|
-
})), { data: o } = await
|
|
16684
|
+
})), { data: o } = await Ke.post(`/agents/${r}/uploads/signed-urls`, {
|
|
16684
16685
|
documents: n
|
|
16685
16686
|
}), a = o.data;
|
|
16686
16687
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -16702,44 +16703,46 @@ const ew = (e) => e?.map((t) => ({
|
|
|
16702
16703
|
socket: t,
|
|
16703
16704
|
agentId: r,
|
|
16704
16705
|
uid: i,
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
16706
|
+
projectId: n,
|
|
16707
|
+
variables: o,
|
|
16708
|
+
getCurrentConversationId: a,
|
|
16709
|
+
setCurrentConversationId: s,
|
|
16710
|
+
getCurrentExecutionId: c,
|
|
16711
|
+
setCurrentExecutionId: u,
|
|
16712
|
+
subscribeToConversation: l
|
|
16711
16713
|
} = e;
|
|
16712
|
-
return async (
|
|
16714
|
+
return async (d) => {
|
|
16713
16715
|
const {
|
|
16714
|
-
content:
|
|
16715
|
-
conversationId:
|
|
16716
|
-
executionId:
|
|
16717
|
-
files:
|
|
16718
|
-
documents:
|
|
16719
|
-
payload:
|
|
16720
|
-
} =
|
|
16721
|
-
|
|
16722
|
-
let
|
|
16723
|
-
|
|
16724
|
-
files:
|
|
16716
|
+
content: f,
|
|
16717
|
+
conversationId: m,
|
|
16718
|
+
executionId: g,
|
|
16719
|
+
files: y,
|
|
16720
|
+
documents: b,
|
|
16721
|
+
payload: v
|
|
16722
|
+
} = d, S = m ?? g ?? a() ?? Ri(), w = Ri();
|
|
16723
|
+
s(S), l(S), t.connected || t.connect();
|
|
16724
|
+
let I;
|
|
16725
|
+
y?.length && (I = await tw({
|
|
16726
|
+
files: y,
|
|
16725
16727
|
agentId: r,
|
|
16726
|
-
sourceId:
|
|
16728
|
+
sourceId: c() ?? r
|
|
16727
16729
|
}));
|
|
16728
|
-
const
|
|
16729
|
-
|
|
16730
|
+
const T = I?.length ? ew(I) || [] : [];
|
|
16731
|
+
b?.length && b.forEach((P) => T.push(P)), t.emit(
|
|
16730
16732
|
"chat-query",
|
|
16731
16733
|
{
|
|
16732
|
-
conversationId:
|
|
16734
|
+
conversationId: S,
|
|
16733
16735
|
agentId: r,
|
|
16734
|
-
message:
|
|
16735
|
-
messageId:
|
|
16736
|
+
message: f,
|
|
16737
|
+
messageId: w,
|
|
16736
16738
|
...i && { uid: i },
|
|
16737
|
-
...n &&
|
|
16738
|
-
...
|
|
16739
|
-
...
|
|
16739
|
+
...n && { projectId: n },
|
|
16740
|
+
...o && Object.keys(o).length > 0 && { variables: o },
|
|
16741
|
+
...T?.length && { documents: T },
|
|
16742
|
+
...v != null && { payload: v }
|
|
16740
16743
|
},
|
|
16741
|
-
(
|
|
16742
|
-
!
|
|
16744
|
+
(P) => {
|
|
16745
|
+
!P?.executionId || a() !== S || u(P.executionId);
|
|
16743
16746
|
}
|
|
16744
16747
|
);
|
|
16745
16748
|
};
|
|
@@ -17227,14 +17230,14 @@ function kw(e) {
|
|
|
17227
17230
|
if (y == null && g.pages.length)
|
|
17228
17231
|
return Promise.resolve(g);
|
|
17229
17232
|
const S = (() => {
|
|
17230
|
-
const
|
|
17233
|
+
const P = {
|
|
17231
17234
|
client: t.client,
|
|
17232
17235
|
queryKey: t.queryKey,
|
|
17233
17236
|
pageParam: y,
|
|
17234
17237
|
direction: b ? "backward" : "forward",
|
|
17235
17238
|
meta: t.options.meta
|
|
17236
17239
|
};
|
|
17237
|
-
return d(
|
|
17240
|
+
return d(P), P;
|
|
17238
17241
|
})(), w = await f(S), { maxPages: I } = t.options, T = b ? gw : hw;
|
|
17239
17242
|
return {
|
|
17240
17243
|
pages: T(g.pages, w, I),
|
|
@@ -18210,7 +18213,7 @@ const bi = () => {
|
|
|
18210
18213
|
let r = "", i = {};
|
|
18211
18214
|
for (const o of e)
|
|
18212
18215
|
typeof o == "string" ? r = `${r}/${o}` : typeof o == "object" && (i = { ...i, ...o });
|
|
18213
|
-
const { data: n } = await
|
|
18216
|
+
const { data: n } = await Ke.get(r, { params: i });
|
|
18214
18217
|
return n;
|
|
18215
18218
|
}, pc = new Ew({
|
|
18216
18219
|
defaultOptions: {
|
|
@@ -18279,6 +18282,7 @@ const bi = () => {
|
|
|
18279
18282
|
socket: o,
|
|
18280
18283
|
agentId: t.agentId,
|
|
18281
18284
|
uid: r.uid,
|
|
18285
|
+
projectId: t.appId,
|
|
18282
18286
|
variables: t.variables,
|
|
18283
18287
|
getCurrentConversationId: () => a,
|
|
18284
18288
|
setCurrentConversationId: (S) => {
|