@eloquentai/chat-sdk 0.30.3 → 0.30.5-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-Bf7skbL8.js → index-3Ld74Qds.js} +2 -2
- package/dist/{index-Bf7skbL8.js.map → index-3Ld74Qds.js.map} +1 -1
- package/dist/{index-CzTUqNbz.js → index-CxaQgxtY.js} +736 -722
- package/dist/index-CxaQgxtY.js.map +1 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/index-CzTUqNbz.js.map +0 -1
|
@@ -6,26 +6,38 @@ import Vg, { createPortal as gs } from "react-dom";
|
|
|
6
6
|
import Wg from "react-dom/client";
|
|
7
7
|
try {
|
|
8
8
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
9
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
9
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9fd4547a-f80c-49b8-9185-34599dd52fd6", e._sentryDebugIdIdentifier = "sentry-dbid-9fd4547a-f80c-49b8-9185-34599dd52fd6");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
{
|
|
13
13
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
14
|
-
e.SENTRY_RELEASE = { id: "
|
|
14
|
+
e.SENTRY_RELEASE = { id: "654a7e3cb5c6d68f02c98f99bad90c10100692b9" };
|
|
15
15
|
}
|
|
16
16
|
if (typeof window < "u") {
|
|
17
|
-
const e = "
|
|
18
|
-
import("./index-
|
|
17
|
+
const e = "development";
|
|
18
|
+
import("./index-3Ld74Qds.js").then((t) => {
|
|
19
19
|
t.init({
|
|
20
20
|
dsn: void 0,
|
|
21
21
|
environment: e,
|
|
22
|
-
sendDefaultPii: !
|
|
22
|
+
sendDefaultPii: !1,
|
|
23
23
|
integrations: [t.replayIntegration()],
|
|
24
24
|
tracesSampleRate: 1,
|
|
25
25
|
replaysSessionSampleRate: 0.1,
|
|
26
26
|
replaysOnErrorSampleRate: 1,
|
|
27
27
|
debug: !1,
|
|
28
|
-
enabled: !0
|
|
28
|
+
enabled: !0,
|
|
29
|
+
beforeSend(n) {
|
|
30
|
+
const r = /* @__PURE__ */ new Set([
|
|
31
|
+
"authorization",
|
|
32
|
+
"cookie",
|
|
33
|
+
"x-api-key",
|
|
34
|
+
"x-auth-token"
|
|
35
|
+
]), i = n.request?.headers;
|
|
36
|
+
if (i)
|
|
37
|
+
for (const o of Object.keys(i))
|
|
38
|
+
r.has(o.toLowerCase()) && (i[o] = "[Filtered]");
|
|
39
|
+
return n.request && (n.request.data = "[Filtered]"), n;
|
|
40
|
+
}
|
|
29
41
|
});
|
|
30
42
|
});
|
|
31
43
|
}
|
|
@@ -5586,7 +5598,7 @@ hh.displayName = dh;
|
|
|
5586
5598
|
function sl(e) {
|
|
5587
5599
|
return e ? "open" : "closed";
|
|
5588
5600
|
}
|
|
5589
|
-
var ph = "DialogTitleWarning", [
|
|
5601
|
+
var ph = "DialogTitleWarning", [LN, mh] = Hv(ph, {
|
|
5590
5602
|
contentName: br,
|
|
5591
5603
|
titleName: al,
|
|
5592
5604
|
docsSlug: "dialog"
|
|
@@ -11610,7 +11622,7 @@ function Tw() {
|
|
|
11610
11622
|
})(Va)), Va;
|
|
11611
11623
|
}
|
|
11612
11624
|
var fi = Tw();
|
|
11613
|
-
const Pw = { BASE_URL: "/", DEV: !1, MODE: "
|
|
11625
|
+
const Pw = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" }, Ow = "/assets/logo-waiting-simple.riv";
|
|
11614
11626
|
function ll(e) {
|
|
11615
11627
|
return typeof window > "u" || typeof import.meta > "u" ? "" : Pw[e] || "";
|
|
11616
11628
|
}
|
|
@@ -22941,7 +22953,7 @@ function SC({ messageData: e }) {
|
|
|
22941
22953
|
)
|
|
22942
22954
|
] });
|
|
22943
22955
|
}
|
|
22944
|
-
const Xu = /* @__PURE__ */ new Set(), CC = "Thinking
|
|
22956
|
+
const Xu = /* @__PURE__ */ new Set(), CC = /* @__PURE__ */ new Set(["Routing"]), EC = /^Thinking\.+$/;
|
|
22945
22957
|
function Ku({
|
|
22946
22958
|
messageData: e,
|
|
22947
22959
|
nextMessage: t,
|
|
@@ -22954,12 +22966,14 @@ function Ku({
|
|
|
22954
22966
|
), h = We({
|
|
22955
22967
|
[s.botBubbleColor]: e.sender === "assistant",
|
|
22956
22968
|
[s.userBubbleColor]: e.sender === "user"
|
|
22957
|
-
}), p = e.content === "...", v =
|
|
22958
|
-
|
|
22969
|
+
}), p = e.content === "...", v = CC.has(
|
|
22970
|
+
e.content.replace(/\.+$/, "")
|
|
22971
|
+
), m = () => n && e.isThinking ? /* @__PURE__ */ De("div", { className: "flex items-center gap-2 px-1 py-1 animate-in fade-in slide-in-from-bottom-2 duration-300 ease-out", children: [
|
|
22972
|
+
!p && !v && u && /* @__PURE__ */ D(
|
|
22959
22973
|
"span",
|
|
22960
22974
|
{
|
|
22961
22975
|
className: "text-xs text-gray-400 font-medium animate-in fade-in duration-500 ease-out",
|
|
22962
|
-
children:
|
|
22976
|
+
children: u.replace(EC, "Thinking")
|
|
22963
22977
|
},
|
|
22964
22978
|
u
|
|
22965
22979
|
),
|
|
@@ -23046,7 +23060,7 @@ function Ku({
|
|
|
23046
23060
|
] }) })
|
|
23047
23061
|
] });
|
|
23048
23062
|
}
|
|
23049
|
-
function
|
|
23063
|
+
function AC({
|
|
23050
23064
|
className: e,
|
|
23051
23065
|
message: t,
|
|
23052
23066
|
nextMessage: n,
|
|
@@ -23134,7 +23148,7 @@ function EC({
|
|
|
23134
23148
|
i
|
|
23135
23149
|
);
|
|
23136
23150
|
}
|
|
23137
|
-
function
|
|
23151
|
+
function IC({
|
|
23138
23152
|
value: e,
|
|
23139
23153
|
onChange: t,
|
|
23140
23154
|
disabled: n = !1
|
|
@@ -23165,16 +23179,16 @@ function AC({
|
|
|
23165
23179
|
a
|
|
23166
23180
|
)) });
|
|
23167
23181
|
}
|
|
23168
|
-
function
|
|
23182
|
+
function RC({ onRate: e }) {
|
|
23169
23183
|
const [t, n] = je(0), [r, i] = je(!1);
|
|
23170
23184
|
return /* @__PURE__ */ D("div", { className: "flex justify-center pt-2 pb-2", children: /* @__PURE__ */ De("div", { className: "rounded-2xl bg-muted px-4 py-3 flex flex-col items-center gap-1.5", children: [
|
|
23171
23185
|
/* @__PURE__ */ D("p", { className: "text-sm font-medium text-foreground", children: r ? "Thanks for your feedback!" : "How was your experience" }),
|
|
23172
|
-
/* @__PURE__ */ D(
|
|
23186
|
+
/* @__PURE__ */ D(IC, { value: t, onChange: (a) => {
|
|
23173
23187
|
n(a), i(!0), e(a);
|
|
23174
23188
|
} })
|
|
23175
23189
|
] }) });
|
|
23176
23190
|
}
|
|
23177
|
-
const Mp = Go(null),
|
|
23191
|
+
const Mp = Go(null), TC = {
|
|
23178
23192
|
isVisible: !1,
|
|
23179
23193
|
content: null,
|
|
23180
23194
|
showCognition: () => {
|
|
@@ -23186,9 +23200,9 @@ function zp() {
|
|
|
23186
23200
|
const e = Yo(Mp);
|
|
23187
23201
|
return e || (console.warn(
|
|
23188
23202
|
"useAgentCognitionContext: AgentCognitionContext is not provided. Using default values."
|
|
23189
|
-
),
|
|
23203
|
+
), TC);
|
|
23190
23204
|
}
|
|
23191
|
-
function
|
|
23205
|
+
function PC() {
|
|
23192
23206
|
const e = Zr(), t = zp(), n = rt(null), r = rt(!0), i = rt(0), [o, a] = je(!1), [s, l] = je(!1), u = (m) => m.scrollHeight - m.scrollTop <= m.clientHeight + 60, h = (m) => {
|
|
23193
23207
|
const y = m.target;
|
|
23194
23208
|
u(y) ? (a(!1), l(!1)) : (a(!0), l(!0));
|
|
@@ -23243,13 +23257,13 @@ function TC() {
|
|
|
23243
23257
|
children: /* @__PURE__ */ D("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: v.map((m, y, C) => {
|
|
23244
23258
|
const N = Array.isArray(m) ? m.map((R) => R.id).join("-") : m.id;
|
|
23245
23259
|
return !Array.isArray(m) && m.isRatingRequest ? /* @__PURE__ */ D(
|
|
23246
|
-
|
|
23260
|
+
RC,
|
|
23247
23261
|
{
|
|
23248
23262
|
onRate: (R) => e.onRateChat?.(R)
|
|
23249
23263
|
},
|
|
23250
23264
|
N
|
|
23251
23265
|
) : /* @__PURE__ */ D(
|
|
23252
|
-
|
|
23266
|
+
AC,
|
|
23253
23267
|
{
|
|
23254
23268
|
message: m,
|
|
23255
23269
|
nextMessage: C[y + 1],
|
|
@@ -23287,7 +23301,7 @@ const Fp = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ D(
|
|
|
23287
23301
|
}
|
|
23288
23302
|
));
|
|
23289
23303
|
Fp.displayName = "Textarea";
|
|
23290
|
-
function
|
|
23304
|
+
function OC() {
|
|
23291
23305
|
const e = rt(!1), t = rt(0), n = rt(0);
|
|
23292
23306
|
return {
|
|
23293
23307
|
onMouseDown: (s) => {
|
|
@@ -23330,7 +23344,7 @@ const Ju = {
|
|
|
23330
23344
|
if (e === void 0)
|
|
23331
23345
|
throw new Error("useError must be used within an ErrorProvider");
|
|
23332
23346
|
return e;
|
|
23333
|
-
},
|
|
23347
|
+
}, NC = (e) => (t) => {
|
|
23334
23348
|
const n = Number(t.response.errors[0].error_code), r = $p(n);
|
|
23335
23349
|
e({ code: n, message: r });
|
|
23336
23350
|
}, Qu = {
|
|
@@ -23362,7 +23376,7 @@ const Ju = {
|
|
|
23362
23376
|
iconColor: "text-green-500",
|
|
23363
23377
|
icon: Kb
|
|
23364
23378
|
}
|
|
23365
|
-
},
|
|
23379
|
+
}, LC = ({ message: e, type: t }) => {
|
|
23366
23380
|
const n = Qu[t] || Qu.warning, r = n.icon;
|
|
23367
23381
|
return /* @__PURE__ */ De(
|
|
23368
23382
|
"div",
|
|
@@ -23375,8 +23389,8 @@ const Ju = {
|
|
|
23375
23389
|
}
|
|
23376
23390
|
);
|
|
23377
23391
|
};
|
|
23378
|
-
function
|
|
23379
|
-
const { error: e } = ji(), t = !!e, n = Zr(), r = rt(null), [i, o] = je(""), a =
|
|
23392
|
+
function DC() {
|
|
23393
|
+
const { error: e } = ji(), t = !!e, n = Zr(), r = rt(null), [i, o] = je(""), a = OC(), s = Ys(), l = !!n.messages?.some((m) => m.isRatingRequest), u = () => i.trim() && !t && !l ? { backgroundColor: s.userBubbleColor } : {}, h = () => n.suggestedMessages ? /* @__PURE__ */ D(
|
|
23380
23394
|
"div",
|
|
23381
23395
|
{
|
|
23382
23396
|
className: "w-full px-4 pb-10 -mt-20 overflow-x-auto no-scrollbar z-10 cursor-grab",
|
|
@@ -23443,7 +23457,7 @@ function LC() {
|
|
|
23443
23457
|
) }) : /* @__PURE__ */ De(kn, { children: [
|
|
23444
23458
|
h(),
|
|
23445
23459
|
/* @__PURE__ */ De("div", { className: "flex flex-col w-full items-center px-4 mx-1 pb-4 -mt-6 z-20", children: [
|
|
23446
|
-
t && /* @__PURE__ */ D(
|
|
23460
|
+
t && /* @__PURE__ */ D(LC, { message: e.message, type: "error" }),
|
|
23447
23461
|
/* @__PURE__ */ De(
|
|
23448
23462
|
"form",
|
|
23449
23463
|
{
|
|
@@ -23511,7 +23525,7 @@ function LC() {
|
|
|
23511
23525
|
] })
|
|
23512
23526
|
] });
|
|
23513
23527
|
}
|
|
23514
|
-
function
|
|
23528
|
+
function MC(e, t = []) {
|
|
23515
23529
|
let n = [];
|
|
23516
23530
|
function r(o, a) {
|
|
23517
23531
|
const s = P.createContext(a);
|
|
@@ -23541,9 +23555,9 @@ function DC(e, t = []) {
|
|
|
23541
23555
|
);
|
|
23542
23556
|
};
|
|
23543
23557
|
};
|
|
23544
|
-
return i.scopeName = e, [r,
|
|
23558
|
+
return i.scopeName = e, [r, zC(i, ...t)];
|
|
23545
23559
|
}
|
|
23546
|
-
function
|
|
23560
|
+
function zC(...e) {
|
|
23547
23561
|
const t = e[0];
|
|
23548
23562
|
if (e.length === 1) return t;
|
|
23549
23563
|
const n = () => {
|
|
@@ -23561,19 +23575,19 @@ function MC(...e) {
|
|
|
23561
23575
|
};
|
|
23562
23576
|
return n.scopeName = t.scopeName, n;
|
|
23563
23577
|
}
|
|
23564
|
-
var
|
|
23565
|
-
function
|
|
23578
|
+
var FC = Symbol.for("react.lazy"), Vo = P[" use ".trim().toString()];
|
|
23579
|
+
function $C(e) {
|
|
23566
23580
|
return typeof e == "object" && e !== null && "then" in e;
|
|
23567
23581
|
}
|
|
23568
23582
|
function Up(e) {
|
|
23569
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
23583
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === FC && "_payload" in e && $C(e._payload);
|
|
23570
23584
|
}
|
|
23571
23585
|
// @__NO_SIDE_EFFECTS__
|
|
23572
|
-
function
|
|
23573
|
-
const t = /* @__PURE__ */
|
|
23586
|
+
function jC(e) {
|
|
23587
|
+
const t = /* @__PURE__ */ UC(e), n = P.forwardRef((r, i) => {
|
|
23574
23588
|
let { children: o, ...a } = r;
|
|
23575
23589
|
Up(o) && typeof Vo == "function" && (o = Vo(o._payload));
|
|
23576
|
-
const s = P.Children.toArray(o), l = s.find(
|
|
23590
|
+
const s = P.Children.toArray(o), l = s.find(VC);
|
|
23577
23591
|
if (l) {
|
|
23578
23592
|
const u = l.props.children, h = s.map((p) => p === l ? P.Children.count(u) > 1 ? P.Children.only(null) : P.isValidElement(u) ? u.props.children : null : p);
|
|
23579
23593
|
return /* @__PURE__ */ D(t, { ...a, ref: i, children: P.isValidElement(u) ? P.cloneElement(u, void 0, h) : null });
|
|
@@ -23583,22 +23597,22 @@ function $C(e) {
|
|
|
23583
23597
|
return n.displayName = `${e}.Slot`, n;
|
|
23584
23598
|
}
|
|
23585
23599
|
// @__NO_SIDE_EFFECTS__
|
|
23586
|
-
function
|
|
23600
|
+
function UC(e) {
|
|
23587
23601
|
const t = P.forwardRef((n, r) => {
|
|
23588
23602
|
let { children: i, ...o } = n;
|
|
23589
23603
|
if (Up(i) && typeof Vo == "function" && (i = Vo(i._payload)), P.isValidElement(i)) {
|
|
23590
|
-
const a =
|
|
23604
|
+
const a = qC(i), s = WC(o, i.props);
|
|
23591
23605
|
return i.type !== P.Fragment && (s.ref = r ? Ks(r, a) : a), P.cloneElement(i, s);
|
|
23592
23606
|
}
|
|
23593
23607
|
return P.Children.count(i) > 1 ? P.Children.only(null) : null;
|
|
23594
23608
|
});
|
|
23595
23609
|
return t.displayName = `${e}.SlotClone`, t;
|
|
23596
23610
|
}
|
|
23597
|
-
var
|
|
23598
|
-
function
|
|
23599
|
-
return P.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
23611
|
+
var BC = Symbol("radix.slottable");
|
|
23612
|
+
function VC(e) {
|
|
23613
|
+
return P.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === BC;
|
|
23600
23614
|
}
|
|
23601
|
-
function
|
|
23615
|
+
function WC(e, t) {
|
|
23602
23616
|
const n = { ...t };
|
|
23603
23617
|
for (const r in t) {
|
|
23604
23618
|
const i = e[r], o = t[r];
|
|
@@ -23609,11 +23623,11 @@ function VC(e, t) {
|
|
|
23609
23623
|
}
|
|
23610
23624
|
return { ...e, ...n };
|
|
23611
23625
|
}
|
|
23612
|
-
function
|
|
23626
|
+
function qC(e) {
|
|
23613
23627
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
23614
23628
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
23615
23629
|
}
|
|
23616
|
-
var
|
|
23630
|
+
var HC = [
|
|
23617
23631
|
"a",
|
|
23618
23632
|
"button",
|
|
23619
23633
|
"div",
|
|
@@ -23631,8 +23645,8 @@ var qC = [
|
|
|
23631
23645
|
"span",
|
|
23632
23646
|
"svg",
|
|
23633
23647
|
"ul"
|
|
23634
|
-
], Al =
|
|
23635
|
-
const n = /* @__PURE__ */
|
|
23648
|
+
], Al = HC.reduce((e, t) => {
|
|
23649
|
+
const n = /* @__PURE__ */ jC(`Primitive.${t}`), r = P.forwardRef((i, o) => {
|
|
23636
23650
|
const { asChild: a, ...s } = i, l = a ? n : t;
|
|
23637
23651
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ D(l, { ...s, ref: o });
|
|
23638
23652
|
});
|
|
@@ -23648,7 +23662,7 @@ var qC = [
|
|
|
23648
23662
|
* LICENSE file in the root directory of this source tree.
|
|
23649
23663
|
*/
|
|
23650
23664
|
var ef;
|
|
23651
|
-
function
|
|
23665
|
+
function ZC() {
|
|
23652
23666
|
if (ef) return ls;
|
|
23653
23667
|
ef = 1;
|
|
23654
23668
|
var e = id;
|
|
@@ -23689,26 +23703,26 @@ function HC() {
|
|
|
23689
23703
|
return ls.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, ls;
|
|
23690
23704
|
}
|
|
23691
23705
|
var tf;
|
|
23692
|
-
function
|
|
23693
|
-
return tf || (tf = 1, ss.exports =
|
|
23706
|
+
function GC() {
|
|
23707
|
+
return tf || (tf = 1, ss.exports = ZC()), ss.exports;
|
|
23694
23708
|
}
|
|
23695
|
-
var
|
|
23696
|
-
function
|
|
23697
|
-
return
|
|
23698
|
-
|
|
23709
|
+
var YC = GC();
|
|
23710
|
+
function XC() {
|
|
23711
|
+
return YC.useSyncExternalStore(
|
|
23712
|
+
KC,
|
|
23699
23713
|
() => !0,
|
|
23700
23714
|
() => !1
|
|
23701
23715
|
);
|
|
23702
23716
|
}
|
|
23703
|
-
function
|
|
23717
|
+
function KC() {
|
|
23704
23718
|
return () => {
|
|
23705
23719
|
};
|
|
23706
23720
|
}
|
|
23707
|
-
var Il = "Avatar", [
|
|
23721
|
+
var Il = "Avatar", [JC] = MC(Il), [QC, Bp] = JC(Il), Vp = P.forwardRef(
|
|
23708
23722
|
(e, t) => {
|
|
23709
23723
|
const { __scopeAvatar: n, ...r } = e, [i, o] = P.useState("idle");
|
|
23710
23724
|
return /* @__PURE__ */ D(
|
|
23711
|
-
|
|
23725
|
+
QC,
|
|
23712
23726
|
{
|
|
23713
23727
|
scope: n,
|
|
23714
23728
|
imageLoadingStatus: i,
|
|
@@ -23722,7 +23736,7 @@ Vp.displayName = Il;
|
|
|
23722
23736
|
var Wp = "AvatarImage", qp = P.forwardRef(
|
|
23723
23737
|
(e, t) => {
|
|
23724
23738
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: i = () => {
|
|
23725
|
-
}, ...o } = e, a = Bp(Wp, n), s =
|
|
23739
|
+
}, ...o } = e, a = Bp(Wp, n), s = eE(r, o), l = an((u) => {
|
|
23726
23740
|
i(u), a.onImageLoadingStatusChange(u);
|
|
23727
23741
|
});
|
|
23728
23742
|
return Hn(() => {
|
|
@@ -23746,8 +23760,8 @@ Zp.displayName = Hp;
|
|
|
23746
23760
|
function nf(e, t) {
|
|
23747
23761
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
23748
23762
|
}
|
|
23749
|
-
function
|
|
23750
|
-
const r =
|
|
23763
|
+
function eE(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
23764
|
+
const r = XC(), i = P.useRef(null), o = r ? (i.current || (i.current = new window.Image()), i.current) : null, [a, s] = P.useState(
|
|
23751
23765
|
() => nf(o, e)
|
|
23752
23766
|
);
|
|
23753
23767
|
return Hn(() => {
|
|
@@ -23776,7 +23790,7 @@ const Kp = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ D(
|
|
|
23776
23790
|
}
|
|
23777
23791
|
));
|
|
23778
23792
|
Kp.displayName = Gp.displayName;
|
|
23779
|
-
const
|
|
23793
|
+
const tE = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ D(
|
|
23780
23794
|
Yp,
|
|
23781
23795
|
{
|
|
23782
23796
|
ref: n,
|
|
@@ -23784,8 +23798,8 @@ const eE = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ D(
|
|
|
23784
23798
|
...t
|
|
23785
23799
|
}
|
|
23786
23800
|
));
|
|
23787
|
-
|
|
23788
|
-
const
|
|
23801
|
+
tE.displayName = Yp.displayName;
|
|
23802
|
+
const nE = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ D(
|
|
23789
23803
|
Xp,
|
|
23790
23804
|
{
|
|
23791
23805
|
ref: n,
|
|
@@ -23796,8 +23810,8 @@ const tE = P.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ D(
|
|
|
23796
23810
|
...t
|
|
23797
23811
|
}
|
|
23798
23812
|
));
|
|
23799
|
-
|
|
23800
|
-
function
|
|
23813
|
+
nE.displayName = Xp.displayName;
|
|
23814
|
+
function rE({
|
|
23801
23815
|
onCleanChat: e,
|
|
23802
23816
|
onClose: t
|
|
23803
23817
|
}) {
|
|
@@ -23890,20 +23904,20 @@ function Qp({
|
|
|
23890
23904
|
/* @__PURE__ */ D(Gs, { children: /* @__PURE__ */ D(Tn, { className: "h-12 w-full rounded-full" }) })
|
|
23891
23905
|
] }, "chat-interface-sekelton");
|
|
23892
23906
|
}
|
|
23893
|
-
function
|
|
23907
|
+
function iE(e) {
|
|
23894
23908
|
const { isOpen: t = !1, isMobile: n, onCleanChat: r, onClose: i, theme: o } = e, a = Ws(t, 50), [s, l] = je(!1), u = Jp({
|
|
23895
23909
|
isOpen: a,
|
|
23896
23910
|
isMobile: n
|
|
23897
23911
|
}), h = () => s ? /* @__PURE__ */ De(qs, { className: u, children: [
|
|
23898
23912
|
/* @__PURE__ */ D(
|
|
23899
|
-
|
|
23913
|
+
rE,
|
|
23900
23914
|
{
|
|
23901
23915
|
onCleanChat: () => r?.(),
|
|
23902
23916
|
onClose: () => i?.()
|
|
23903
23917
|
}
|
|
23904
23918
|
),
|
|
23905
|
-
/* @__PURE__ */ D(
|
|
23906
|
-
/* @__PURE__ */ D(
|
|
23919
|
+
/* @__PURE__ */ D(PC, {}),
|
|
23920
|
+
/* @__PURE__ */ D(DC, {})
|
|
23907
23921
|
] }) : /* @__PURE__ */ De(kn, { children: [
|
|
23908
23922
|
/* @__PURE__ */ D(Qp, { isOpen: t, isMobile: n }),
|
|
23909
23923
|
!s && /* @__PURE__ */ D(
|
|
@@ -23934,10 +23948,10 @@ function cs({ children: e, head: t, ...n }) {
|
|
|
23934
23948
|
a && gs(e, a)
|
|
23935
23949
|
] });
|
|
23936
23950
|
}
|
|
23937
|
-
function
|
|
23951
|
+
function oE({ children: e, container: t }) {
|
|
23938
23952
|
return gs(e, t);
|
|
23939
23953
|
}
|
|
23940
|
-
function
|
|
23954
|
+
function aE({
|
|
23941
23955
|
message: e,
|
|
23942
23956
|
isVisible: t,
|
|
23943
23957
|
onDismiss: n,
|
|
@@ -24016,7 +24030,7 @@ function oE({
|
|
|
24016
24030
|
}
|
|
24017
24031
|
) : null;
|
|
24018
24032
|
}
|
|
24019
|
-
function
|
|
24033
|
+
function sE({
|
|
24020
24034
|
chatProps: e,
|
|
24021
24035
|
chatSettings: t
|
|
24022
24036
|
}) {
|
|
@@ -24049,7 +24063,7 @@ class mr extends Error {
|
|
|
24049
24063
|
super(n), this.name = "ServerError", this.status = t, this.response = r;
|
|
24050
24064
|
}
|
|
24051
24065
|
}
|
|
24052
|
-
class
|
|
24066
|
+
class lE {
|
|
24053
24067
|
baseURL;
|
|
24054
24068
|
headers;
|
|
24055
24069
|
region = null;
|
|
@@ -24123,7 +24137,7 @@ class sE {
|
|
|
24123
24137
|
return r;
|
|
24124
24138
|
}
|
|
24125
24139
|
}
|
|
24126
|
-
function
|
|
24140
|
+
function cE() {
|
|
24127
24141
|
if (typeof window > "u")
|
|
24128
24142
|
return {};
|
|
24129
24143
|
const e = new URLSearchParams(window.location.search), t = {};
|
|
@@ -24131,9 +24145,9 @@ function lE() {
|
|
|
24131
24145
|
t[r] = n;
|
|
24132
24146
|
}), t;
|
|
24133
24147
|
}
|
|
24134
|
-
const
|
|
24148
|
+
const uE = "eloquent-ai::conversation-data", go = typeof window < "u", fE = 1800 * 1e3;
|
|
24135
24149
|
function Tl({ appId: e }) {
|
|
24136
|
-
const t = er(() => `${
|
|
24150
|
+
const t = er(() => `${uE}-${e}`, [e]), n = er(
|
|
24137
24151
|
() => ({
|
|
24138
24152
|
conversationId: null,
|
|
24139
24153
|
userId: null,
|
|
@@ -24155,7 +24169,7 @@ function Tl({ appId: e }) {
|
|
|
24155
24169
|
}, [t, n]), i = dt(() => {
|
|
24156
24170
|
try {
|
|
24157
24171
|
const l = r();
|
|
24158
|
-
return l.lastActivity ? Date.now() - l.lastActivity >
|
|
24172
|
+
return l.lastActivity ? Date.now() - l.lastActivity > fE : !0;
|
|
24159
24173
|
} catch (l) {
|
|
24160
24174
|
return console.error("Error checking conversation expiration:", l), !0;
|
|
24161
24175
|
}
|
|
@@ -24214,7 +24228,7 @@ function Tl({ appId: e }) {
|
|
|
24214
24228
|
updateLastActivity: s
|
|
24215
24229
|
};
|
|
24216
24230
|
}
|
|
24217
|
-
const
|
|
24231
|
+
const dE = "Logging", hE = "x-amz-user-agent", pE = "NoHubcallbackProvidedException";
|
|
24218
24232
|
var on;
|
|
24219
24233
|
(function(e) {
|
|
24220
24234
|
e.DEBUG = "DEBUG", e.ERROR = "ERROR", e.INFO = "INFO", e.WARN = "WARN", e.VERBOSE = "VERBOSE", e.NONE = "NONE";
|
|
@@ -24331,7 +24345,7 @@ class bn {
|
|
|
24331
24345
|
this._log(on.VERBOSE, ...t);
|
|
24332
24346
|
}
|
|
24333
24347
|
addPluggable(t) {
|
|
24334
|
-
t && t.getCategoryName() ===
|
|
24348
|
+
t && t.getCategoryName() === dE && (this._pluggables.push(t), t.configure(this._config));
|
|
24335
24349
|
}
|
|
24336
24350
|
listPluggables() {
|
|
24337
24351
|
return this._pluggables;
|
|
@@ -24357,7 +24371,7 @@ class Vr extends Error {
|
|
|
24357
24371
|
}
|
|
24358
24372
|
}
|
|
24359
24373
|
const Pl = typeof Symbol < "u" ? Symbol("amplify_default") : "@@amplify_default", gi = new bn("Hub");
|
|
24360
|
-
class
|
|
24374
|
+
class mE {
|
|
24361
24375
|
constructor(t) {
|
|
24362
24376
|
this.listeners = /* @__PURE__ */ new Map(), this.protectedChannels = [
|
|
24363
24377
|
"core",
|
|
@@ -24405,7 +24419,7 @@ class pE {
|
|
|
24405
24419
|
let i;
|
|
24406
24420
|
if (typeof n != "function")
|
|
24407
24421
|
throw new Vr({
|
|
24408
|
-
name:
|
|
24422
|
+
name: pE,
|
|
24409
24423
|
message: "No callback supplied to Hub"
|
|
24410
24424
|
});
|
|
24411
24425
|
i = n;
|
|
@@ -24429,7 +24443,7 @@ class pE {
|
|
|
24429
24443
|
});
|
|
24430
24444
|
}
|
|
24431
24445
|
}
|
|
24432
|
-
const Ol = new
|
|
24446
|
+
const Ol = new mE("__default__"), gE = () => {
|
|
24433
24447
|
if (typeof window < "u" && typeof window.btoa == "function")
|
|
24434
24448
|
return window.btoa;
|
|
24435
24449
|
if (typeof btoa == "function")
|
|
@@ -24439,7 +24453,7 @@ const Ol = new pE("__default__"), mE = () => {
|
|
|
24439
24453
|
message: "Cannot resolve the `btoa` function from the environment."
|
|
24440
24454
|
});
|
|
24441
24455
|
}, em = (e) => e && e["nonRetryable"], bo = new bn("retryUtil");
|
|
24442
|
-
async function
|
|
24456
|
+
async function bE(e, t, n, r) {
|
|
24443
24457
|
if (typeof e != "function")
|
|
24444
24458
|
throw Error("functionToRetry must be a function");
|
|
24445
24459
|
return new Promise(async (i, o) => {
|
|
@@ -24475,7 +24489,7 @@ const tm = (e) => {
|
|
|
24475
24489
|
(r && typeof r == "object" || typeof r == "function") && tm(r);
|
|
24476
24490
|
}
|
|
24477
24491
|
return Object.freeze(e);
|
|
24478
|
-
},
|
|
24492
|
+
}, vE = new bn("parseAWSExports"), yE = {
|
|
24479
24493
|
API_KEY: "apiKey",
|
|
24480
24494
|
AWS_IAM: "iam",
|
|
24481
24495
|
AMAZON_COGNITO_USER_POOLS: "userPool",
|
|
@@ -24488,7 +24502,7 @@ const tm = (e) => {
|
|
|
24488
24502
|
// ref: https://github.com/aws-amplify/amplify-js/pull/12922
|
|
24489
24503
|
// TODO: @v7 remove next line
|
|
24490
24504
|
LAMBDA: "lambda"
|
|
24491
|
-
},
|
|
24505
|
+
}, wE = (e = {}) => {
|
|
24492
24506
|
if (!Object.prototype.hasOwnProperty.call(e, "aws_project_region"))
|
|
24493
24507
|
throw new Vr({
|
|
24494
24508
|
name: "InvalidParameterException",
|
|
@@ -24531,8 +24545,8 @@ const tm = (e) => {
|
|
|
24531
24545
|
if (Array.isArray(o) && (q.Interactions = {
|
|
24532
24546
|
LexV1: Object.fromEntries(o.map((se) => [se.name, se]))
|
|
24533
24547
|
}), r) {
|
|
24534
|
-
const se =
|
|
24535
|
-
se ||
|
|
24548
|
+
const se = yE[n];
|
|
24549
|
+
se || vE.debug(`Invalid authentication type ${n}. Falling back to IAM.`), q.API = {
|
|
24536
24550
|
GraphQL: {
|
|
24537
24551
|
endpoint: r,
|
|
24538
24552
|
apiKey: t,
|
|
@@ -24580,9 +24594,9 @@ const tm = (e) => {
|
|
|
24580
24594
|
if (q.Auth && ge && (q.Auth.Cognito.loginWith = {
|
|
24581
24595
|
...q.Auth.Cognito.loginWith,
|
|
24582
24596
|
oauth: {
|
|
24583
|
-
...
|
|
24597
|
+
...xE(te),
|
|
24584
24598
|
...O && {
|
|
24585
|
-
providers:
|
|
24599
|
+
providers: _E(m)
|
|
24586
24600
|
}
|
|
24587
24601
|
}
|
|
24588
24602
|
}), U && (q.Storage = {
|
|
@@ -24629,31 +24643,31 @@ const tm = (e) => {
|
|
|
24629
24643
|
} : H;
|
|
24630
24644
|
}
|
|
24631
24645
|
return q;
|
|
24632
|
-
}, of = (e) => e?.split(",") ?? [],
|
|
24646
|
+
}, of = (e) => e?.split(",") ?? [], xE = ({ domain: e, scope: t, redirectSignIn: n, redirectSignOut: r, responseType: i }) => ({
|
|
24633
24647
|
domain: e,
|
|
24634
24648
|
scopes: t,
|
|
24635
24649
|
redirectSignIn: of(n),
|
|
24636
24650
|
redirectSignOut: of(r),
|
|
24637
24651
|
responseType: i
|
|
24638
|
-
}),
|
|
24652
|
+
}), _E = (e) => e.map((t) => {
|
|
24639
24653
|
const n = t.toLowerCase();
|
|
24640
24654
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
24641
|
-
}),
|
|
24655
|
+
}), kE = Symbol("oauth-listener"), Ft = [];
|
|
24642
24656
|
for (let e = 0; e < 256; ++e)
|
|
24643
24657
|
Ft.push((e + 256).toString(16).slice(1));
|
|
24644
|
-
function
|
|
24658
|
+
function SE(e, t = 0) {
|
|
24645
24659
|
return (Ft[e[t + 0]] + Ft[e[t + 1]] + Ft[e[t + 2]] + Ft[e[t + 3]] + "-" + Ft[e[t + 4]] + Ft[e[t + 5]] + "-" + Ft[e[t + 6]] + Ft[e[t + 7]] + "-" + Ft[e[t + 8]] + Ft[e[t + 9]] + "-" + Ft[e[t + 10]] + Ft[e[t + 11]] + Ft[e[t + 12]] + Ft[e[t + 13]] + Ft[e[t + 14]] + Ft[e[t + 15]]).toLowerCase();
|
|
24646
24660
|
}
|
|
24647
|
-
const
|
|
24648
|
-
function
|
|
24649
|
-
return crypto.getRandomValues(
|
|
24650
|
-
}
|
|
24651
|
-
function EE(e, t, n) {
|
|
24652
|
-
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : AE(e, t, n);
|
|
24661
|
+
const CE = new Uint8Array(16);
|
|
24662
|
+
function EE() {
|
|
24663
|
+
return crypto.getRandomValues(CE);
|
|
24653
24664
|
}
|
|
24654
24665
|
function AE(e, t, n) {
|
|
24666
|
+
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : IE(e, t, n);
|
|
24667
|
+
}
|
|
24668
|
+
function IE(e, t, n) {
|
|
24655
24669
|
e = e || {};
|
|
24656
|
-
const r = e.random ?? e.rng?.() ??
|
|
24670
|
+
const r = e.random ?? e.rng?.() ?? EE();
|
|
24657
24671
|
if (r.length < 16)
|
|
24658
24672
|
throw new Error("Random bytes length must be >= 16");
|
|
24659
24673
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
@@ -24663,13 +24677,13 @@ function AE(e, t, n) {
|
|
|
24663
24677
|
t[n + i] = r[i];
|
|
24664
24678
|
return t;
|
|
24665
24679
|
}
|
|
24666
|
-
return
|
|
24680
|
+
return SE(r);
|
|
24667
24681
|
}
|
|
24668
|
-
function
|
|
24682
|
+
function RE(e) {
|
|
24669
24683
|
const { version: t } = e;
|
|
24670
24684
|
return t ? t.startsWith("1") : !1;
|
|
24671
24685
|
}
|
|
24672
|
-
function
|
|
24686
|
+
function TE(e) {
|
|
24673
24687
|
if (!e)
|
|
24674
24688
|
return;
|
|
24675
24689
|
const { bucket_name: t, aws_region: n, buckets: r } = e;
|
|
@@ -24677,11 +24691,11 @@ function RE(e) {
|
|
|
24677
24691
|
S3: {
|
|
24678
24692
|
bucket: t,
|
|
24679
24693
|
region: n,
|
|
24680
|
-
buckets: r &&
|
|
24694
|
+
buckets: r && UE(r)
|
|
24681
24695
|
}
|
|
24682
24696
|
};
|
|
24683
24697
|
}
|
|
24684
|
-
function
|
|
24698
|
+
function PE(e) {
|
|
24685
24699
|
if (!e)
|
|
24686
24700
|
return;
|
|
24687
24701
|
const { user_pool_id: t, user_pool_client_id: n, identity_pool_id: r, password_policy: i, mfa_configuration: o, mfa_methods: a, unauthenticated_identities_enabled: s, oauth: l, username_attributes: u, standard_required_attributes: h, groups: p, passwordless: v } = e, m = {
|
|
@@ -24701,7 +24715,7 @@ function TE(e) {
|
|
|
24701
24715
|
requireSpecialCharacters: i.require_symbols,
|
|
24702
24716
|
minLength: i.min_length ?? 6
|
|
24703
24717
|
}), o && (m.Cognito.mfa = {
|
|
24704
|
-
status:
|
|
24718
|
+
status: jE(o),
|
|
24705
24719
|
smsEnabled: a?.includes("SMS"),
|
|
24706
24720
|
totpEnabled: a?.includes("TOTP")
|
|
24707
24721
|
}), s && (m.Cognito.allowGuestAccess = s), l && (m.Cognito.loginWith = {
|
|
@@ -24711,7 +24725,7 @@ function TE(e) {
|
|
|
24711
24725
|
redirectSignOut: l.redirect_sign_out_uri,
|
|
24712
24726
|
responseType: l.response_type === "token" ? "token" : "code",
|
|
24713
24727
|
scopes: l.scopes,
|
|
24714
|
-
providers:
|
|
24728
|
+
providers: $E(l.identity_providers)
|
|
24715
24729
|
}
|
|
24716
24730
|
}), u && (m.Cognito.loginWith = {
|
|
24717
24731
|
...m.Cognito.loginWith,
|
|
@@ -24729,7 +24743,7 @@ function TE(e) {
|
|
|
24729
24743
|
preferredChallenge: v.preferred_challenge
|
|
24730
24744
|
}), m;
|
|
24731
24745
|
}
|
|
24732
|
-
function
|
|
24746
|
+
function OE(e) {
|
|
24733
24747
|
if (!e?.amazon_pinpoint)
|
|
24734
24748
|
return;
|
|
24735
24749
|
const { amazon_pinpoint: t } = e;
|
|
@@ -24740,7 +24754,7 @@ function PE(e) {
|
|
|
24740
24754
|
}
|
|
24741
24755
|
};
|
|
24742
24756
|
}
|
|
24743
|
-
function
|
|
24757
|
+
function NE(e) {
|
|
24744
24758
|
if (!e)
|
|
24745
24759
|
return;
|
|
24746
24760
|
const { aws_region: t, geofence_collections: n, maps: r, search_indices: i } = e;
|
|
@@ -24753,7 +24767,7 @@ function OE(e) {
|
|
|
24753
24767
|
}
|
|
24754
24768
|
};
|
|
24755
24769
|
}
|
|
24756
|
-
function
|
|
24770
|
+
function LE(e) {
|
|
24757
24771
|
if (!e)
|
|
24758
24772
|
return;
|
|
24759
24773
|
const { aws_region: t, default_authorization_type: n, url: r, api_key: i, model_introspection: o } = e;
|
|
@@ -24767,7 +24781,7 @@ function NE(e) {
|
|
|
24767
24781
|
}
|
|
24768
24782
|
};
|
|
24769
24783
|
}
|
|
24770
|
-
function
|
|
24784
|
+
function DE(e) {
|
|
24771
24785
|
if (!e?.events)
|
|
24772
24786
|
return;
|
|
24773
24787
|
const { url: t, aws_region: n, api_key: r, default_authorization_type: i } = e.events;
|
|
@@ -24780,7 +24794,7 @@ function LE(e) {
|
|
|
24780
24794
|
}
|
|
24781
24795
|
};
|
|
24782
24796
|
}
|
|
24783
|
-
function
|
|
24797
|
+
function ME(e) {
|
|
24784
24798
|
if (!e)
|
|
24785
24799
|
return;
|
|
24786
24800
|
const { aws_region: t, channels: n, amazon_pinpoint_app_id: r } = e, i = n.includes("IN_APP_MESSAGING"), o = n.includes("APNS") || n.includes("FCM");
|
|
@@ -24799,15 +24813,15 @@ function DE(e) {
|
|
|
24799
24813
|
}
|
|
24800
24814
|
}), a;
|
|
24801
24815
|
}
|
|
24802
|
-
function
|
|
24816
|
+
function zE(e) {
|
|
24803
24817
|
const t = {};
|
|
24804
|
-
if (e.storage && (t.Storage =
|
|
24805
|
-
const n =
|
|
24818
|
+
if (e.storage && (t.Storage = TE(e.storage)), e.auth && (t.Auth = PE(e.auth)), e.analytics && (t.Analytics = OE(e.analytics)), e.geo && (t.Geo = NE(e.geo)), e.data && (t.API = LE(e.data)), e.custom) {
|
|
24819
|
+
const n = DE(e.custom);
|
|
24806
24820
|
n && "Events" in n && (t.API = { ...t.API, ...n });
|
|
24807
24821
|
}
|
|
24808
|
-
return e.notifications && (t.Notifications =
|
|
24822
|
+
return e.notifications && (t.Notifications = ME(e.notifications)), t;
|
|
24809
24823
|
}
|
|
24810
|
-
const
|
|
24824
|
+
const FE = {
|
|
24811
24825
|
AMAZON_COGNITO_USER_POOLS: "userPool",
|
|
24812
24826
|
API_KEY: "apiKey",
|
|
24813
24827
|
AWS_IAM: "iam",
|
|
@@ -24815,7 +24829,7 @@ const zE = {
|
|
|
24815
24829
|
OPENID_CONNECT: "oidc"
|
|
24816
24830
|
};
|
|
24817
24831
|
function nm(e) {
|
|
24818
|
-
return
|
|
24832
|
+
return FE[e];
|
|
24819
24833
|
}
|
|
24820
24834
|
const af = {
|
|
24821
24835
|
GOOGLE: "Google",
|
|
@@ -24823,13 +24837,13 @@ const af = {
|
|
|
24823
24837
|
FACEBOOK: "Facebook",
|
|
24824
24838
|
SIGN_IN_WITH_APPLE: "Apple"
|
|
24825
24839
|
};
|
|
24826
|
-
function
|
|
24840
|
+
function $E(e = []) {
|
|
24827
24841
|
return e.reduce((t, n) => (af[n] !== void 0 && t.push(af[n]), t), []);
|
|
24828
24842
|
}
|
|
24829
|
-
function
|
|
24843
|
+
function jE(e) {
|
|
24830
24844
|
return e === "OPTIONAL" ? "optional" : e === "REQUIRED" ? "on" : "off";
|
|
24831
24845
|
}
|
|
24832
|
-
function
|
|
24846
|
+
function UE(e) {
|
|
24833
24847
|
const t = {};
|
|
24834
24848
|
return e.forEach(({ name: n, bucket_name: r, aws_region: i, paths: o }) => {
|
|
24835
24849
|
if (n in t)
|
|
@@ -24842,8 +24856,8 @@ function jE(e) {
|
|
|
24842
24856
|
};
|
|
24843
24857
|
}), t;
|
|
24844
24858
|
}
|
|
24845
|
-
const
|
|
24846
|
-
var pn = 64,
|
|
24859
|
+
const BE = (e) => Object.keys(e).some((t) => t.startsWith("aws_")) ? wE(e) : RE(e) ? zE(e) : e;
|
|
24860
|
+
var pn = 64, VE = 32, WE = new Uint32Array([
|
|
24847
24861
|
1116352408,
|
|
24848
24862
|
1899447441,
|
|
24849
24863
|
3049323471,
|
|
@@ -24908,7 +24922,7 @@ var pn = 64, BE = 32, VE = new Uint32Array([
|
|
|
24908
24922
|
2756734187,
|
|
24909
24923
|
3204031479,
|
|
24910
24924
|
3329325298
|
|
24911
|
-
]),
|
|
24925
|
+
]), qE = [
|
|
24912
24926
|
1779033703,
|
|
24913
24927
|
3144134277,
|
|
24914
24928
|
1013904242,
|
|
@@ -24917,17 +24931,17 @@ var pn = 64, BE = 32, VE = new Uint32Array([
|
|
|
24917
24931
|
2600822924,
|
|
24918
24932
|
528734635,
|
|
24919
24933
|
1541459225
|
|
24920
|
-
],
|
|
24934
|
+
], HE = Math.pow(2, 53) - 1, Ro = (
|
|
24921
24935
|
/** @class */
|
|
24922
24936
|
(function() {
|
|
24923
24937
|
function e() {
|
|
24924
|
-
this.state = Int32Array.from(
|
|
24938
|
+
this.state = Int32Array.from(qE), this.temp = new Int32Array(64), this.buffer = new Uint8Array(64), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1;
|
|
24925
24939
|
}
|
|
24926
24940
|
return e.prototype.update = function(t) {
|
|
24927
24941
|
if (this.finished)
|
|
24928
24942
|
throw new Error("Attempted to update an already finished hash.");
|
|
24929
24943
|
var n = 0, r = t.byteLength;
|
|
24930
|
-
if (this.bytesHashed += r, this.bytesHashed * 8 >
|
|
24944
|
+
if (this.bytesHashed += r, this.bytesHashed * 8 > HE)
|
|
24931
24945
|
throw new Error("Cannot hash more than 2^53 - 1 bits");
|
|
24932
24946
|
for (; r > 0; )
|
|
24933
24947
|
this.buffer[this.bufferLength++] = t[n++], r--, this.bufferLength === pn && (this.hashBuffer(), this.bufferLength = 0);
|
|
@@ -24943,7 +24957,7 @@ var pn = 64, BE = 32, VE = new Uint32Array([
|
|
|
24943
24957
|
n.setUint8(i, 0);
|
|
24944
24958
|
n.setUint32(pn - 8, Math.floor(t / 4294967296), !0), n.setUint32(pn - 4, t), this.hashBuffer(), this.finished = !0;
|
|
24945
24959
|
}
|
|
24946
|
-
for (var o = new Uint8Array(
|
|
24960
|
+
for (var o = new Uint8Array(VE), i = 0; i < 8; i++)
|
|
24947
24961
|
o[i * 4] = this.state[i] >>> 24 & 255, o[i * 4 + 1] = this.state[i] >>> 16 & 255, o[i * 4 + 2] = this.state[i] >>> 8 & 255, o[i * 4 + 3] = this.state[i] >>> 0 & 255;
|
|
24948
24962
|
return o;
|
|
24949
24963
|
}, e.prototype.hashBuffer = function() {
|
|
@@ -24956,31 +24970,31 @@ var pn = 64, BE = 32, VE = new Uint32Array([
|
|
|
24956
24970
|
var C = (m >>> 7 | m << 25) ^ (m >>> 18 | m << 14) ^ m >>> 3;
|
|
24957
24971
|
this.temp[v] = (y + this.temp[v - 7] | 0) + (C + this.temp[v - 16] | 0);
|
|
24958
24972
|
}
|
|
24959
|
-
var N = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (
|
|
24973
|
+
var N = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (WE[v] + this.temp[v] | 0) | 0) | 0, R = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & a ^ o & a) | 0;
|
|
24960
24974
|
p = h, h = u, u = l, l = s + N | 0, s = a, a = o, o = i, i = N + R | 0;
|
|
24961
24975
|
}
|
|
24962
24976
|
r[0] += i, r[1] += o, r[2] += a, r[3] += s, r[4] += l, r[5] += u, r[6] += h, r[7] += p;
|
|
24963
24977
|
}, e;
|
|
24964
24978
|
})()
|
|
24965
24979
|
);
|
|
24966
|
-
const
|
|
24967
|
-
var
|
|
24980
|
+
const ZE = (e) => new TextEncoder().encode(e);
|
|
24981
|
+
var GE = typeof Buffer < "u" && Buffer.from ? function(e) {
|
|
24968
24982
|
return Buffer.from(e, "utf8");
|
|
24969
|
-
} :
|
|
24983
|
+
} : ZE;
|
|
24970
24984
|
function rm(e) {
|
|
24971
|
-
return e instanceof Uint8Array ? e : typeof e == "string" ?
|
|
24985
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? GE(e) : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(e);
|
|
24972
24986
|
}
|
|
24973
|
-
function
|
|
24987
|
+
function YE(e) {
|
|
24974
24988
|
return typeof e == "string" ? e.length === 0 : e.byteLength === 0;
|
|
24975
24989
|
}
|
|
24976
|
-
var
|
|
24990
|
+
var XE = (
|
|
24977
24991
|
/** @class */
|
|
24978
24992
|
(function() {
|
|
24979
24993
|
function e(t) {
|
|
24980
24994
|
this.secret = t, this.hash = new Ro(), this.reset();
|
|
24981
24995
|
}
|
|
24982
24996
|
return e.prototype.update = function(t) {
|
|
24983
|
-
if (!(
|
|
24997
|
+
if (!(YE(t) || this.error))
|
|
24984
24998
|
try {
|
|
24985
24999
|
this.hash.update(rm(t));
|
|
24986
25000
|
} catch (n) {
|
|
@@ -24999,7 +25013,7 @@ var YE = (
|
|
|
24999
25013
|
}, e.prototype.reset = function() {
|
|
25000
25014
|
if (this.hash = new Ro(), this.secret) {
|
|
25001
25015
|
this.outer = new Ro();
|
|
25002
|
-
var t =
|
|
25016
|
+
var t = KE(this.secret), n = new Uint8Array(pn);
|
|
25003
25017
|
n.set(t);
|
|
25004
25018
|
for (var r = 0; r < pn; r++)
|
|
25005
25019
|
t[r] ^= 54, n[r] ^= 92;
|
|
@@ -25010,7 +25024,7 @@ var YE = (
|
|
|
25010
25024
|
}, e;
|
|
25011
25025
|
})()
|
|
25012
25026
|
);
|
|
25013
|
-
function
|
|
25027
|
+
function KE(e) {
|
|
25014
25028
|
var t = rm(e);
|
|
25015
25029
|
if (t.byteLength > pn) {
|
|
25016
25030
|
var n = new Ro();
|
|
@@ -25024,7 +25038,7 @@ for (let e = 0; e < 256; e++) {
|
|
|
25024
25038
|
let t = e.toString(16).toLowerCase();
|
|
25025
25039
|
t.length === 1 && (t = `0${t}`), im[e] = t;
|
|
25026
25040
|
}
|
|
25027
|
-
function
|
|
25041
|
+
function JE(e) {
|
|
25028
25042
|
let t = "";
|
|
25029
25043
|
for (let n = 0; n < e.byteLength; n++)
|
|
25030
25044
|
t += im[e[n]];
|
|
@@ -25086,123 +25100,123 @@ var yf;
|
|
|
25086
25100
|
(function(e) {
|
|
25087
25101
|
e.UploadData = "1", e.DownloadData = "2", e.List = "3", e.Copy = "4", e.Remove = "5", e.GetProperties = "6", e.GetUrl = "7", e.GetDataAccess = "8", e.ListCallerAccessGrants = "9";
|
|
25088
25102
|
})(yf || (yf = {}));
|
|
25089
|
-
const
|
|
25090
|
-
function
|
|
25103
|
+
const QE = "6.16.4", aa = () => typeof global < "u", Xr = () => typeof window < "u", om = () => typeof document < "u", Nl = () => typeof process < "u", Ri = (e, t) => !!Object.keys(e).find((n) => n.startsWith(t));
|
|
25104
|
+
function eA() {
|
|
25091
25105
|
const e = (r) => r.startsWith("_react") || r.startsWith("__react"), t = (r) => Object.keys(r).find(e), n = () => Array.from(document.querySelectorAll("[id]"));
|
|
25092
25106
|
return om() && n().some(t);
|
|
25093
25107
|
}
|
|
25094
|
-
function
|
|
25108
|
+
function tA() {
|
|
25095
25109
|
return Nl() && typeof process.env < "u" && !!Object.keys(process.env).find((e) => e.includes("react"));
|
|
25096
25110
|
}
|
|
25097
|
-
function
|
|
25111
|
+
function nA() {
|
|
25098
25112
|
return Xr() && Ri(window, "__VUE");
|
|
25099
25113
|
}
|
|
25100
|
-
function
|
|
25114
|
+
function rA() {
|
|
25101
25115
|
return aa() && Ri(global, "__VUE");
|
|
25102
25116
|
}
|
|
25103
|
-
function
|
|
25117
|
+
function iA() {
|
|
25104
25118
|
return Xr() && Ri(window, "__SVELTE");
|
|
25105
25119
|
}
|
|
25106
|
-
function
|
|
25120
|
+
function oA() {
|
|
25107
25121
|
return Nl() && typeof process.env < "u" && !!Object.keys(process.env).find((e) => e.includes("svelte"));
|
|
25108
25122
|
}
|
|
25109
|
-
function
|
|
25123
|
+
function aA() {
|
|
25110
25124
|
return Xr() && window.next && typeof window.next == "object";
|
|
25111
25125
|
}
|
|
25112
|
-
function
|
|
25126
|
+
function sA() {
|
|
25113
25127
|
return aa() && (Ri(global, "__next") || Ri(global, "__NEXT"));
|
|
25114
25128
|
}
|
|
25115
|
-
function
|
|
25129
|
+
function lA() {
|
|
25116
25130
|
return Xr() && (window.__NUXT__ !== void 0 || window.$nuxt !== void 0);
|
|
25117
25131
|
}
|
|
25118
|
-
function
|
|
25132
|
+
function cA() {
|
|
25119
25133
|
return aa() && typeof global.__NUXT_PATHS__ < "u";
|
|
25120
25134
|
}
|
|
25121
|
-
function
|
|
25135
|
+
function uA() {
|
|
25122
25136
|
const e = !!(om() && document.querySelector("[ng-version]")), t = !!(Xr() && typeof window.ng < "u");
|
|
25123
25137
|
return e || t;
|
|
25124
25138
|
}
|
|
25125
|
-
function uA() {
|
|
25126
|
-
return Nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
|
|
25127
|
-
}
|
|
25128
25139
|
function fA() {
|
|
25129
|
-
return typeof
|
|
25140
|
+
return Nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
|
|
25130
25141
|
}
|
|
25131
25142
|
function dA() {
|
|
25132
|
-
return
|
|
25143
|
+
return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
|
|
25133
25144
|
}
|
|
25134
25145
|
function hA() {
|
|
25146
|
+
return aa() && typeof global.expo < "u";
|
|
25147
|
+
}
|
|
25148
|
+
function pA() {
|
|
25135
25149
|
return Xr();
|
|
25136
25150
|
}
|
|
25137
|
-
const
|
|
25151
|
+
const mA = [
|
|
25138
25152
|
// First, detect mobile
|
|
25139
|
-
{ platform: It.Expo, detectionMethod:
|
|
25140
|
-
{ platform: It.ReactNative, detectionMethod:
|
|
25153
|
+
{ platform: It.Expo, detectionMethod: hA },
|
|
25154
|
+
{ platform: It.ReactNative, detectionMethod: dA },
|
|
25141
25155
|
// Next, detect web frameworks
|
|
25142
|
-
{ platform: It.NextJs, detectionMethod:
|
|
25143
|
-
{ platform: It.Nuxt, detectionMethod:
|
|
25144
|
-
{ platform: It.Angular, detectionMethod:
|
|
25145
|
-
{ platform: It.React, detectionMethod:
|
|
25146
|
-
{ platform: It.VueJs, detectionMethod:
|
|
25147
|
-
{ platform: It.Svelte, detectionMethod:
|
|
25148
|
-
{ platform: It.WebUnknown, detectionMethod:
|
|
25156
|
+
{ platform: It.NextJs, detectionMethod: aA },
|
|
25157
|
+
{ platform: It.Nuxt, detectionMethod: lA },
|
|
25158
|
+
{ platform: It.Angular, detectionMethod: uA },
|
|
25159
|
+
{ platform: It.React, detectionMethod: eA },
|
|
25160
|
+
{ platform: It.VueJs, detectionMethod: nA },
|
|
25161
|
+
{ platform: It.Svelte, detectionMethod: iA },
|
|
25162
|
+
{ platform: It.WebUnknown, detectionMethod: pA },
|
|
25149
25163
|
// Last, detect ssr frameworks
|
|
25150
|
-
{ platform: It.NextJsSSR, detectionMethod:
|
|
25151
|
-
{ platform: It.NuxtSSR, detectionMethod:
|
|
25152
|
-
{ platform: It.ReactSSR, detectionMethod:
|
|
25153
|
-
{ platform: It.VueJsSSR, detectionMethod:
|
|
25154
|
-
{ platform: It.AngularSSR, detectionMethod:
|
|
25155
|
-
{ platform: It.SvelteSSR, detectionMethod:
|
|
25164
|
+
{ platform: It.NextJsSSR, detectionMethod: sA },
|
|
25165
|
+
{ platform: It.NuxtSSR, detectionMethod: cA },
|
|
25166
|
+
{ platform: It.ReactSSR, detectionMethod: tA },
|
|
25167
|
+
{ platform: It.VueJsSSR, detectionMethod: rA },
|
|
25168
|
+
{ platform: It.AngularSSR, detectionMethod: fA },
|
|
25169
|
+
{ platform: It.SvelteSSR, detectionMethod: oA }
|
|
25156
25170
|
];
|
|
25157
|
-
function
|
|
25158
|
-
return
|
|
25171
|
+
function gA() {
|
|
25172
|
+
return mA.find((e) => e.detectionMethod())?.platform || It.ServerSideUnknown;
|
|
25159
25173
|
}
|
|
25160
25174
|
let Si;
|
|
25161
25175
|
const us = [];
|
|
25162
25176
|
let Ns = !1;
|
|
25163
|
-
const
|
|
25177
|
+
const bA = 10, vA = 10, yA = 1e3, am = () => {
|
|
25164
25178
|
if (!Si) {
|
|
25165
|
-
if (Si =
|
|
25179
|
+
if (Si = gA(), Ns)
|
|
25166
25180
|
for (; us.length; )
|
|
25167
25181
|
us.pop()?.();
|
|
25168
25182
|
else
|
|
25169
25183
|
us.forEach((e) => {
|
|
25170
25184
|
e();
|
|
25171
25185
|
});
|
|
25172
|
-
wf(It.ServerSideUnknown,
|
|
25186
|
+
wf(It.ServerSideUnknown, bA), wf(It.WebUnknown, vA);
|
|
25173
25187
|
}
|
|
25174
25188
|
return Si;
|
|
25175
25189
|
};
|
|
25176
|
-
function
|
|
25190
|
+
function wA() {
|
|
25177
25191
|
Si = void 0;
|
|
25178
25192
|
}
|
|
25179
25193
|
function wf(e, t) {
|
|
25180
25194
|
Si === e && !Ns && setTimeout(() => {
|
|
25181
|
-
|
|
25195
|
+
wA(), Ns = !0, setTimeout(am, yA);
|
|
25182
25196
|
}, t);
|
|
25183
25197
|
}
|
|
25184
|
-
const
|
|
25198
|
+
const xA = {}, _A = (e, t) => xA[e]?.[t]?.additionalDetails, kA = "aws-amplify", SA = (e) => e.replace(/\+.*/, ""), CA = ({ category: e, action: t } = {}) => {
|
|
25185
25199
|
const n = [
|
|
25186
|
-
[
|
|
25200
|
+
[kA, SA(QE)]
|
|
25187
25201
|
];
|
|
25188
25202
|
if (e && n.push([e, t]), n.push(["framework", am()]), e && t) {
|
|
25189
|
-
const r =
|
|
25203
|
+
const r = _A(e, t);
|
|
25190
25204
|
r && r.forEach((i) => {
|
|
25191
25205
|
n.push(i);
|
|
25192
25206
|
});
|
|
25193
25207
|
}
|
|
25194
25208
|
return n;
|
|
25195
|
-
},
|
|
25209
|
+
}, EA = (e) => CA(e).map(([r, i]) => r && i ? `${r}/${i}` : r).join(" ");
|
|
25196
25210
|
function $t(e) {
|
|
25197
25211
|
return typeof e == "function";
|
|
25198
25212
|
}
|
|
25199
|
-
function
|
|
25213
|
+
function AA(e) {
|
|
25200
25214
|
var t = function(r) {
|
|
25201
25215
|
Error.call(r), r.stack = new Error().stack;
|
|
25202
25216
|
}, n = e(t);
|
|
25203
25217
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
25204
25218
|
}
|
|
25205
|
-
var fs =
|
|
25219
|
+
var fs = AA(function(e) {
|
|
25206
25220
|
return function(n) {
|
|
25207
25221
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
25208
25222
|
` + n.map(function(r, i) {
|
|
@@ -25313,9 +25327,9 @@ function sm(e) {
|
|
|
25313
25327
|
function _f(e) {
|
|
25314
25328
|
$t(e) ? e() : e.unsubscribe();
|
|
25315
25329
|
}
|
|
25316
|
-
var
|
|
25330
|
+
var IA = {
|
|
25317
25331
|
Promise: void 0
|
|
25318
|
-
},
|
|
25332
|
+
}, RA = {
|
|
25319
25333
|
setTimeout: function(e, t) {
|
|
25320
25334
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
25321
25335
|
n[r - 2] = arguments[r];
|
|
@@ -25327,20 +25341,20 @@ var AA = {
|
|
|
25327
25341
|
delegate: void 0
|
|
25328
25342
|
};
|
|
25329
25343
|
function lm(e) {
|
|
25330
|
-
|
|
25344
|
+
RA.setTimeout(function() {
|
|
25331
25345
|
throw e;
|
|
25332
25346
|
});
|
|
25333
25347
|
}
|
|
25334
25348
|
function kf() {
|
|
25335
25349
|
}
|
|
25336
|
-
function
|
|
25350
|
+
function TA(e) {
|
|
25337
25351
|
e();
|
|
25338
25352
|
}
|
|
25339
25353
|
var Dl = (function(e) {
|
|
25340
25354
|
rl(t, e);
|
|
25341
25355
|
function t(n) {
|
|
25342
25356
|
var r = e.call(this) || this;
|
|
25343
|
-
return r.isStopped = !1, n ? (r.destination = n, sm(n) && n.add(r)) : r.destination =
|
|
25357
|
+
return r.isStopped = !1, n ? (r.destination = n, sm(n) && n.add(r)) : r.destination = NA, r;
|
|
25344
25358
|
}
|
|
25345
25359
|
return t.create = function(n, r, i) {
|
|
25346
25360
|
return new Ls(n, r, i);
|
|
@@ -25367,7 +25381,7 @@ var Dl = (function(e) {
|
|
|
25367
25381
|
this.unsubscribe();
|
|
25368
25382
|
}
|
|
25369
25383
|
}, t;
|
|
25370
|
-
})(Ll),
|
|
25384
|
+
})(Ll), PA = (function() {
|
|
25371
25385
|
function e(t) {
|
|
25372
25386
|
this.partialObserver = t;
|
|
25373
25387
|
}
|
|
@@ -25406,29 +25420,29 @@ var Dl = (function(e) {
|
|
|
25406
25420
|
next: n ?? void 0,
|
|
25407
25421
|
error: r ?? void 0,
|
|
25408
25422
|
complete: i ?? void 0
|
|
25409
|
-
} : a = n, o.destination = new
|
|
25423
|
+
} : a = n, o.destination = new PA(a), o;
|
|
25410
25424
|
}
|
|
25411
25425
|
return t;
|
|
25412
25426
|
})(Dl);
|
|
25413
25427
|
function vo(e) {
|
|
25414
25428
|
lm(e);
|
|
25415
25429
|
}
|
|
25416
|
-
function
|
|
25430
|
+
function OA(e) {
|
|
25417
25431
|
throw e;
|
|
25418
25432
|
}
|
|
25419
|
-
var
|
|
25433
|
+
var NA = {
|
|
25420
25434
|
closed: !0,
|
|
25421
25435
|
next: kf,
|
|
25422
|
-
error:
|
|
25436
|
+
error: OA,
|
|
25423
25437
|
complete: kf
|
|
25424
25438
|
}, Ml = (function() {
|
|
25425
25439
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
25426
25440
|
})();
|
|
25427
|
-
function
|
|
25441
|
+
function LA(e) {
|
|
25428
25442
|
return e;
|
|
25429
25443
|
}
|
|
25430
|
-
function
|
|
25431
|
-
return e.length === 0 ?
|
|
25444
|
+
function DA(e) {
|
|
25445
|
+
return e.length === 0 ? LA : e.length === 1 ? e[0] : function(n) {
|
|
25432
25446
|
return e.reduce(function(r, i) {
|
|
25433
25447
|
return i(r);
|
|
25434
25448
|
}, n);
|
|
@@ -25442,8 +25456,8 @@ var ln = (function() {
|
|
|
25442
25456
|
var n = new e();
|
|
25443
25457
|
return n.source = this, n.operator = t, n;
|
|
25444
25458
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
25445
|
-
var i = this, o =
|
|
25446
|
-
return
|
|
25459
|
+
var i = this, o = zA(t) ? t : new Ls(t, n, r);
|
|
25460
|
+
return TA(function() {
|
|
25447
25461
|
var a = i, s = a.operator, l = a.source;
|
|
25448
25462
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
25449
25463
|
}), o;
|
|
@@ -25477,7 +25491,7 @@ var ln = (function() {
|
|
|
25477
25491
|
}, e.prototype.pipe = function() {
|
|
25478
25492
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
25479
25493
|
t[n] = arguments[n];
|
|
25480
|
-
return
|
|
25494
|
+
return DA(t)(this);
|
|
25481
25495
|
}, e.prototype.toPromise = function(t) {
|
|
25482
25496
|
var n = this;
|
|
25483
25497
|
return t = Sf(t), new t(function(r, i) {
|
|
@@ -25496,20 +25510,20 @@ var ln = (function() {
|
|
|
25496
25510
|
})();
|
|
25497
25511
|
function Sf(e) {
|
|
25498
25512
|
var t;
|
|
25499
|
-
return (t = e ??
|
|
25500
|
-
}
|
|
25501
|
-
function DA(e) {
|
|
25502
|
-
return e && $t(e.next) && $t(e.error) && $t(e.complete);
|
|
25513
|
+
return (t = e ?? IA.Promise) !== null && t !== void 0 ? t : Promise;
|
|
25503
25514
|
}
|
|
25504
25515
|
function MA(e) {
|
|
25505
|
-
return e && e
|
|
25516
|
+
return e && $t(e.next) && $t(e.error) && $t(e.complete);
|
|
25506
25517
|
}
|
|
25507
25518
|
function zA(e) {
|
|
25519
|
+
return e && e instanceof Dl || MA(e) && sm(e);
|
|
25520
|
+
}
|
|
25521
|
+
function FA(e) {
|
|
25508
25522
|
return $t(e?.lift);
|
|
25509
25523
|
}
|
|
25510
25524
|
function sa(e) {
|
|
25511
25525
|
return function(t) {
|
|
25512
|
-
if (
|
|
25526
|
+
if (FA(t))
|
|
25513
25527
|
return t.lift(function(n) {
|
|
25514
25528
|
try {
|
|
25515
25529
|
return e(n, this);
|
|
@@ -25521,9 +25535,9 @@ function sa(e) {
|
|
|
25521
25535
|
};
|
|
25522
25536
|
}
|
|
25523
25537
|
function zl(e, t, n, r, i) {
|
|
25524
|
-
return new
|
|
25538
|
+
return new $A(e, t, n, r, i);
|
|
25525
25539
|
}
|
|
25526
|
-
var
|
|
25540
|
+
var $A = (function(e) {
|
|
25527
25541
|
rl(t, e);
|
|
25528
25542
|
function t(n, r, i, o, a, s) {
|
|
25529
25543
|
var l = e.call(this, n) || this;
|
|
@@ -25573,10 +25587,10 @@ function dm(e) {
|
|
|
25573
25587
|
function hm(e) {
|
|
25574
25588
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
25575
25589
|
}
|
|
25576
|
-
function
|
|
25590
|
+
function jA() {
|
|
25577
25591
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
25578
25592
|
}
|
|
25579
|
-
var pm =
|
|
25593
|
+
var pm = jA();
|
|
25580
25594
|
function mm(e) {
|
|
25581
25595
|
return $t(e?.[pm]);
|
|
25582
25596
|
}
|
|
@@ -25619,21 +25633,21 @@ function Fl(e) {
|
|
|
25619
25633
|
return e;
|
|
25620
25634
|
if (e != null) {
|
|
25621
25635
|
if (fm(e))
|
|
25622
|
-
return jA(e);
|
|
25623
|
-
if (cm(e))
|
|
25624
25636
|
return UA(e);
|
|
25625
|
-
if (
|
|
25637
|
+
if (cm(e))
|
|
25626
25638
|
return BA(e);
|
|
25639
|
+
if (um(e))
|
|
25640
|
+
return VA(e);
|
|
25627
25641
|
if (dm(e))
|
|
25628
25642
|
return vm(e);
|
|
25629
25643
|
if (mm(e))
|
|
25630
|
-
return VA(e);
|
|
25631
|
-
if (bm(e))
|
|
25632
25644
|
return WA(e);
|
|
25645
|
+
if (bm(e))
|
|
25646
|
+
return qA(e);
|
|
25633
25647
|
}
|
|
25634
25648
|
throw hm(e);
|
|
25635
25649
|
}
|
|
25636
|
-
function
|
|
25650
|
+
function UA(e) {
|
|
25637
25651
|
return new ln(function(t) {
|
|
25638
25652
|
var n = e[Ml]();
|
|
25639
25653
|
if ($t(n.subscribe))
|
|
@@ -25641,14 +25655,14 @@ function jA(e) {
|
|
|
25641
25655
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
25642
25656
|
});
|
|
25643
25657
|
}
|
|
25644
|
-
function
|
|
25658
|
+
function BA(e) {
|
|
25645
25659
|
return new ln(function(t) {
|
|
25646
25660
|
for (var n = 0; n < e.length && !t.closed; n++)
|
|
25647
25661
|
t.next(e[n]);
|
|
25648
25662
|
t.complete();
|
|
25649
25663
|
});
|
|
25650
25664
|
}
|
|
25651
|
-
function
|
|
25665
|
+
function VA(e) {
|
|
25652
25666
|
return new ln(function(t) {
|
|
25653
25667
|
e.then(function(n) {
|
|
25654
25668
|
t.closed || (t.next(n), t.complete());
|
|
@@ -25657,7 +25671,7 @@ function BA(e) {
|
|
|
25657
25671
|
}).then(null, lm);
|
|
25658
25672
|
});
|
|
25659
25673
|
}
|
|
25660
|
-
function
|
|
25674
|
+
function WA(e) {
|
|
25661
25675
|
return new ln(function(t) {
|
|
25662
25676
|
var n, r;
|
|
25663
25677
|
try {
|
|
@@ -25680,15 +25694,15 @@ function VA(e) {
|
|
|
25680
25694
|
}
|
|
25681
25695
|
function vm(e) {
|
|
25682
25696
|
return new ln(function(t) {
|
|
25683
|
-
|
|
25697
|
+
HA(e, t).catch(function(n) {
|
|
25684
25698
|
return t.error(n);
|
|
25685
25699
|
});
|
|
25686
25700
|
});
|
|
25687
25701
|
}
|
|
25688
|
-
function
|
|
25702
|
+
function qA(e) {
|
|
25689
25703
|
return vm(gm(e));
|
|
25690
25704
|
}
|
|
25691
|
-
function
|
|
25705
|
+
function HA(e, t) {
|
|
25692
25706
|
var n, r, i, o;
|
|
25693
25707
|
return Hd(this, void 0, void 0, function() {
|
|
25694
25708
|
var a, s;
|
|
@@ -25758,13 +25772,13 @@ function wm(e, t) {
|
|
|
25758
25772
|
}, t));
|
|
25759
25773
|
});
|
|
25760
25774
|
}
|
|
25761
|
-
function HA(e, t) {
|
|
25762
|
-
return Fl(e).pipe(wm(t), ym(t));
|
|
25763
|
-
}
|
|
25764
25775
|
function ZA(e, t) {
|
|
25765
25776
|
return Fl(e).pipe(wm(t), ym(t));
|
|
25766
25777
|
}
|
|
25767
25778
|
function GA(e, t) {
|
|
25779
|
+
return Fl(e).pipe(wm(t), ym(t));
|
|
25780
|
+
}
|
|
25781
|
+
function YA(e, t) {
|
|
25768
25782
|
return new ln(function(n) {
|
|
25769
25783
|
var r = 0;
|
|
25770
25784
|
return t.schedule(function() {
|
|
@@ -25772,7 +25786,7 @@ function GA(e, t) {
|
|
|
25772
25786
|
});
|
|
25773
25787
|
});
|
|
25774
25788
|
}
|
|
25775
|
-
function
|
|
25789
|
+
function XA(e, t) {
|
|
25776
25790
|
return new ln(function(n) {
|
|
25777
25791
|
var r;
|
|
25778
25792
|
return gr(n, t, function() {
|
|
@@ -25805,30 +25819,30 @@ function xm(e, t) {
|
|
|
25805
25819
|
});
|
|
25806
25820
|
});
|
|
25807
25821
|
}
|
|
25808
|
-
function
|
|
25822
|
+
function KA(e, t) {
|
|
25809
25823
|
return xm(gm(e), t);
|
|
25810
25824
|
}
|
|
25811
|
-
function
|
|
25825
|
+
function JA(e, t) {
|
|
25812
25826
|
if (e != null) {
|
|
25813
25827
|
if (fm(e))
|
|
25814
|
-
return
|
|
25828
|
+
return ZA(e, t);
|
|
25815
25829
|
if (cm(e))
|
|
25816
|
-
return
|
|
25830
|
+
return YA(e, t);
|
|
25817
25831
|
if (um(e))
|
|
25818
|
-
return
|
|
25832
|
+
return GA(e, t);
|
|
25819
25833
|
if (dm(e))
|
|
25820
25834
|
return xm(e, t);
|
|
25821
25835
|
if (mm(e))
|
|
25822
|
-
return YA(e, t);
|
|
25823
|
-
if (bm(e))
|
|
25824
25836
|
return XA(e, t);
|
|
25837
|
+
if (bm(e))
|
|
25838
|
+
return KA(e, t);
|
|
25825
25839
|
}
|
|
25826
25840
|
throw hm(e);
|
|
25827
25841
|
}
|
|
25828
|
-
function JA(e, t) {
|
|
25829
|
-
return t ? KA(e, t) : Fl(e);
|
|
25830
|
-
}
|
|
25831
25842
|
function QA(e, t) {
|
|
25843
|
+
return t ? JA(e, t) : Fl(e);
|
|
25844
|
+
}
|
|
25845
|
+
function eI(e, t) {
|
|
25832
25846
|
return sa(function(n, r) {
|
|
25833
25847
|
var i = 0;
|
|
25834
25848
|
n.subscribe(zl(r, function(o) {
|
|
@@ -25836,7 +25850,7 @@ function QA(e, t) {
|
|
|
25836
25850
|
}));
|
|
25837
25851
|
});
|
|
25838
25852
|
}
|
|
25839
|
-
function
|
|
25853
|
+
function tI(e, t) {
|
|
25840
25854
|
return sa(function(n, r) {
|
|
25841
25855
|
var i = 0;
|
|
25842
25856
|
n.subscribe(zl(r, function(o) {
|
|
@@ -25844,7 +25858,7 @@ function eI(e, t) {
|
|
|
25844
25858
|
}));
|
|
25845
25859
|
});
|
|
25846
25860
|
}
|
|
25847
|
-
const
|
|
25861
|
+
const nI = () => {
|
|
25848
25862
|
if (typeof self > "u")
|
|
25849
25863
|
return !1;
|
|
25850
25864
|
const e = self;
|
|
@@ -25852,7 +25866,7 @@ const tI = () => {
|
|
|
25852
25866
|
};
|
|
25853
25867
|
class $r {
|
|
25854
25868
|
networkMonitor(t) {
|
|
25855
|
-
const n =
|
|
25869
|
+
const n = nI() ? self : typeof window < "u" && window;
|
|
25856
25870
|
return n ? new ln((r) => {
|
|
25857
25871
|
r.next({ online: n.navigator.onLine });
|
|
25858
25872
|
const i = () => {
|
|
@@ -25863,7 +25877,7 @@ class $r {
|
|
|
25863
25877
|
return n.addEventListener("online", i), n.addEventListener("offline", o), $r._observers.push(r), () => {
|
|
25864
25878
|
n.removeEventListener("online", i), n.removeEventListener("offline", o), $r._observers = $r._observers.filter((a) => a !== r);
|
|
25865
25879
|
};
|
|
25866
|
-
}) :
|
|
25880
|
+
}) : QA([{ online: !0 }]);
|
|
25867
25881
|
}
|
|
25868
25882
|
// expose observers to simulate offline mode for integration testing
|
|
25869
25883
|
static _observerOverride(t) {
|
|
@@ -25878,7 +25892,7 @@ class $r {
|
|
|
25878
25892
|
}
|
|
25879
25893
|
$r._observers = [];
|
|
25880
25894
|
const Cf = new bn("Auth");
|
|
25881
|
-
class
|
|
25895
|
+
class rI {
|
|
25882
25896
|
/**
|
|
25883
25897
|
* Configure Auth category
|
|
25884
25898
|
*
|
|
@@ -25928,9 +25942,9 @@ class nI {
|
|
|
25928
25942
|
}
|
|
25929
25943
|
}
|
|
25930
25944
|
const Ef = (e) => `You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;
|
|
25931
|
-
class
|
|
25945
|
+
class iI {
|
|
25932
25946
|
constructor() {
|
|
25933
|
-
this.oAuthListener = void 0, this.isConfigured = !1, this.resourcesConfig = {}, this.libraryOptions = {}, this.Auth = new
|
|
25947
|
+
this.oAuthListener = void 0, this.isConfigured = !1, this.resourcesConfig = {}, this.libraryOptions = {}, this.Auth = new rI();
|
|
25934
25948
|
}
|
|
25935
25949
|
/**
|
|
25936
25950
|
* Configures Amplify for use with your back-end resources.
|
|
@@ -25946,7 +25960,7 @@ class rI {
|
|
|
25946
25960
|
* @param libraryOptions - Additional options for customizing the behavior of the library.
|
|
25947
25961
|
*/
|
|
25948
25962
|
configure(t, n) {
|
|
25949
|
-
const r =
|
|
25963
|
+
const r = BE(t);
|
|
25950
25964
|
this.resourcesConfig = r, n && (this.libraryOptions = n), this.resourcesConfig = tm(this.resourcesConfig), this.Auth.configure(this.resourcesConfig.Auth, this.libraryOptions.Auth), (this.resourcesConfig.Analytics?.Pinpoint || this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint || this.resourcesConfig.Notifications?.PushNotification?.Pinpoint) && console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."), Ol.dispatch("core", {
|
|
25951
25965
|
event: "configure",
|
|
25952
25966
|
data: this.resourcesConfig
|
|
@@ -25961,28 +25975,28 @@ class rI {
|
|
|
25961
25975
|
return this.isConfigured || console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."), this.resourcesConfig;
|
|
25962
25976
|
}
|
|
25963
25977
|
/** @internal */
|
|
25964
|
-
[
|
|
25978
|
+
[kE](t) {
|
|
25965
25979
|
this.resourcesConfig.Auth?.Cognito.loginWith?.oauth ? t(this.resourcesConfig.Auth?.Cognito) : this.oAuthListener = t;
|
|
25966
25980
|
}
|
|
25967
25981
|
notifyOAuthListener() {
|
|
25968
25982
|
!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth || !this.oAuthListener || (this.oAuthListener(this.resourcesConfig.Auth?.Cognito), this.oAuthListener = void 0);
|
|
25969
25983
|
}
|
|
25970
25984
|
}
|
|
25971
|
-
const $l = new
|
|
25972
|
-
function
|
|
25985
|
+
const $l = new iI(), oI = (e, t) => e.Auth.fetchAuthSession(t), _m = (e) => oI($l, e), km = 300 * 1e3;
|
|
25986
|
+
function aI(e = km) {
|
|
25973
25987
|
return (r) => {
|
|
25974
25988
|
const i = 2 ** r * 100 + 100 * Math.random();
|
|
25975
25989
|
return i > e ? !1 : i;
|
|
25976
25990
|
};
|
|
25977
25991
|
}
|
|
25978
|
-
const Ds =
|
|
25992
|
+
const Ds = AE, jl = URL, Sm = URLSearchParams, Cm = (e) => Object.keys(e).map((t) => t.toLowerCase()).sort().join(";"), sI = "X-Amz-Date", lI = "X-Amz-Security-Token", cI = "authorization", uI = "host", fI = sI.toLowerCase(), dI = lI.toLowerCase(), Em = "aws4_request", Am = "AWS4-HMAC-SHA256", hI = "AWS4", pI = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", Im = "UNSIGNED-PAYLOAD", mI = (e, t, n) => `${e}/${t}/${n}/${Em}`, gI = (e) => {
|
|
25979
25993
|
const t = e.toISOString().replace(/[:-]|\.\d{3}/g, "");
|
|
25980
25994
|
return {
|
|
25981
25995
|
longDate: t,
|
|
25982
25996
|
shortDate: t.slice(0, 8)
|
|
25983
25997
|
};
|
|
25984
|
-
},
|
|
25985
|
-
const { accessKeyId: o, secretAccessKey: a, sessionToken: s } = e, { longDate: l, shortDate: u } =
|
|
25998
|
+
}, bI = ({ credentials: e, signingDate: t = /* @__PURE__ */ new Date(), signingRegion: n, signingService: r, uriEscapePath: i = !0 }) => {
|
|
25999
|
+
const { accessKeyId: o, secretAccessKey: a, sessionToken: s } = e, { longDate: l, shortDate: u } = gI(t), h = mI(u, n, r);
|
|
25986
26000
|
return {
|
|
25987
26001
|
accessKeyId: o,
|
|
25988
26002
|
credentialScope: h,
|
|
@@ -25995,38 +26009,38 @@ const Ds = EE, jl = URL, Sm = URLSearchParams, Cm = (e) => Object.keys(e).map((t
|
|
|
25995
26009
|
uriEscapePath: i
|
|
25996
26010
|
};
|
|
25997
26011
|
}, vi = (e, t) => {
|
|
25998
|
-
const n = new
|
|
26012
|
+
const n = new XE(e ?? void 0);
|
|
25999
26013
|
return n.update(t), n.digestSync();
|
|
26000
26014
|
}, Ms = (e, t) => {
|
|
26001
26015
|
const n = vi(e, t);
|
|
26002
|
-
return
|
|
26003
|
-
},
|
|
26016
|
+
return JE(n);
|
|
26017
|
+
}, vI = (e) => Object.entries(e).map(([t, n]) => ({
|
|
26004
26018
|
key: t.toLowerCase(),
|
|
26005
26019
|
value: n?.trim().replace(/\s+/g, " ") ?? ""
|
|
26006
26020
|
})).sort((t, n) => t.key < n.key ? -1 : 1).map((t) => `${t.key}:${t.value}
|
|
26007
|
-
`).join(""),
|
|
26021
|
+
`).join(""), yI = (e) => Array.from(e).sort(([t, n], [r, i]) => t === r ? n < i ? -1 : 1 : t < r ? -1 : 1).map(([t, n]) => `${Af(t)}=${Af(n)}`).join("&"), Af = (e) => encodeURIComponent(e).replace(/[!'()*]/g, wI), wI = (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`, xI = (e, t = !0) => e ? t ? encodeURIComponent(e).replace(/%2F/g, "/") : e : "/", _I = (e) => e == null ? pI : kI(e) ? Ms(null, e) : Im, kI = (e) => (
|
|
26008
26022
|
// Exclude UNSIGNED_PAYLOAD constant to prevent it from being hashed as a string
|
|
26009
|
-
e !== Im && (typeof e == "string" || ArrayBuffer.isView(e) ||
|
|
26010
|
-
),
|
|
26023
|
+
e !== Im && (typeof e == "string" || ArrayBuffer.isView(e) || SI(e))
|
|
26024
|
+
), SI = (e) => typeof ArrayBuffer == "function" && e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", CI = ({ body: e, headers: t, method: n, url: r }, i = !0) => [
|
|
26011
26025
|
n,
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
26026
|
+
xI(r.pathname, i),
|
|
26027
|
+
yI(r.searchParams),
|
|
26028
|
+
vI(t),
|
|
26015
26029
|
Cm(t),
|
|
26016
|
-
|
|
26030
|
+
_I(e)
|
|
26017
26031
|
].join(`
|
|
26018
|
-
`),
|
|
26019
|
-
const i = `${
|
|
26032
|
+
`), EI = (e, t, n, r) => {
|
|
26033
|
+
const i = `${hI}${e}`, o = vi(i, t), a = vi(o, n), s = vi(a, r);
|
|
26020
26034
|
return vi(s, Em);
|
|
26021
|
-
},
|
|
26022
|
-
`),
|
|
26023
|
-
const l =
|
|
26024
|
-
return Ms(
|
|
26025
|
-
},
|
|
26026
|
-
const n =
|
|
26027
|
-
s[
|
|
26028
|
-
const l = { ...e, headers: s }, u =
|
|
26029
|
-
return s[
|
|
26035
|
+
}, AI = (e, t, n) => [Am, e, t, n].join(`
|
|
26036
|
+
`), II = (e, { credentialScope: t, longDate: n, secretAccessKey: r, shortDate: i, signingRegion: o, signingService: a, uriEscapePath: s }) => {
|
|
26037
|
+
const l = CI(e, s), u = Ms(null, l), h = AI(n, t, u);
|
|
26038
|
+
return Ms(EI(r, i, o, a), h);
|
|
26039
|
+
}, RI = (e, t) => {
|
|
26040
|
+
const n = bI(t), { accessKeyId: r, credentialScope: i, longDate: o, sessionToken: a } = n, s = { ...e.headers };
|
|
26041
|
+
s[uI] = e.url.host, s[fI] = o, a && (s[dI] = a);
|
|
26042
|
+
const l = { ...e, headers: s }, u = II(l, n), h = `Credential=${r}/${i}`, p = `SignedHeaders=${Cm(s)}`, v = `Signature=${u}`;
|
|
26043
|
+
return s[cI] = `${Am} ${h}, ${p}, ${v}`, l;
|
|
26030
26044
|
};
|
|
26031
26045
|
function To(e) {
|
|
26032
26046
|
"@babel/helpers - typeof";
|
|
@@ -26036,10 +26050,10 @@ function To(e) {
|
|
|
26036
26050
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
26037
26051
|
}, To(e);
|
|
26038
26052
|
}
|
|
26039
|
-
function
|
|
26053
|
+
function TI(e) {
|
|
26040
26054
|
return To(e) == "object" && e !== null;
|
|
26041
26055
|
}
|
|
26042
|
-
var
|
|
26056
|
+
var PI = typeof Symbol == "function" && Symbol.toStringTag != null ? Symbol.toStringTag : "@@toStringTag";
|
|
26043
26057
|
function zs(e, t) {
|
|
26044
26058
|
for (var n = /\r\n|[\n\r]/g, r = 1, i = t + 1, o; (o = n.exec(e.body)) && o.index < t; )
|
|
26045
26059
|
r += 1, i = t + 1 - (o.index + o[0].length);
|
|
@@ -26048,7 +26062,7 @@ function zs(e, t) {
|
|
|
26048
26062
|
column: i
|
|
26049
26063
|
};
|
|
26050
26064
|
}
|
|
26051
|
-
function
|
|
26065
|
+
function OI(e) {
|
|
26052
26066
|
return Rm(e.source, zs(e.source, e.start));
|
|
26053
26067
|
}
|
|
26054
26068
|
function Rm(e, t) {
|
|
@@ -26080,14 +26094,14 @@ function If(e) {
|
|
|
26080
26094
|
}));
|
|
26081
26095
|
return t.map(function(r) {
|
|
26082
26096
|
var i = r[0], o = r[1];
|
|
26083
|
-
return
|
|
26097
|
+
return NI(n, i) + (o ? " | " + o : " |");
|
|
26084
26098
|
}).join(`
|
|
26085
26099
|
`);
|
|
26086
26100
|
}
|
|
26087
26101
|
function Po(e) {
|
|
26088
26102
|
return Array(e + 1).join(" ");
|
|
26089
26103
|
}
|
|
26090
|
-
function
|
|
26104
|
+
function NI(e, t) {
|
|
26091
26105
|
return Po(e - t.length) + t;
|
|
26092
26106
|
}
|
|
26093
26107
|
function Oo(e) {
|
|
@@ -26108,39 +26122,39 @@ function Rf(e, t) {
|
|
|
26108
26122
|
}
|
|
26109
26123
|
return n;
|
|
26110
26124
|
}
|
|
26111
|
-
function
|
|
26125
|
+
function LI(e) {
|
|
26112
26126
|
for (var t = 1; t < arguments.length; t++) {
|
|
26113
26127
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
26114
26128
|
t % 2 ? Rf(Object(n), !0).forEach(function(r) {
|
|
26115
|
-
|
|
26129
|
+
DI(e, r, n[r]);
|
|
26116
26130
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rf(Object(n)).forEach(function(r) {
|
|
26117
26131
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
26118
26132
|
});
|
|
26119
26133
|
}
|
|
26120
26134
|
return e;
|
|
26121
26135
|
}
|
|
26122
|
-
function
|
|
26136
|
+
function DI(e, t, n) {
|
|
26123
26137
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
26124
26138
|
}
|
|
26125
|
-
function
|
|
26139
|
+
function MI(e, t) {
|
|
26126
26140
|
if (!(e instanceof t))
|
|
26127
26141
|
throw new TypeError("Cannot call a class as a function");
|
|
26128
26142
|
}
|
|
26129
|
-
function
|
|
26143
|
+
function zI(e, t) {
|
|
26130
26144
|
for (var n = 0; n < t.length; n++) {
|
|
26131
26145
|
var r = t[n];
|
|
26132
26146
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
26133
26147
|
}
|
|
26134
26148
|
}
|
|
26135
|
-
function
|
|
26136
|
-
return t &&
|
|
26149
|
+
function FI(e, t, n) {
|
|
26150
|
+
return t && zI(e.prototype, t), e;
|
|
26137
26151
|
}
|
|
26138
|
-
function
|
|
26152
|
+
function $I(e, t) {
|
|
26139
26153
|
if (typeof t != "function" && t !== null)
|
|
26140
26154
|
throw new TypeError("Super expression must either be null or a function");
|
|
26141
26155
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Ti(e, t);
|
|
26142
26156
|
}
|
|
26143
|
-
function
|
|
26157
|
+
function jI(e) {
|
|
26144
26158
|
var t = Pm();
|
|
26145
26159
|
return function() {
|
|
26146
26160
|
var r = Pi(e), i;
|
|
@@ -26163,7 +26177,7 @@ function yi(e) {
|
|
|
26163
26177
|
function Fs(e) {
|
|
26164
26178
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
26165
26179
|
return Fs = function(r) {
|
|
26166
|
-
if (r === null || !
|
|
26180
|
+
if (r === null || !UI(r)) return r;
|
|
26167
26181
|
if (typeof r != "function")
|
|
26168
26182
|
throw new TypeError("Super expression must either be null or a function");
|
|
26169
26183
|
if (typeof t < "u") {
|
|
@@ -26194,7 +26208,7 @@ function Pm() {
|
|
|
26194
26208
|
return !1;
|
|
26195
26209
|
}
|
|
26196
26210
|
}
|
|
26197
|
-
function
|
|
26211
|
+
function UI(e) {
|
|
26198
26212
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
26199
26213
|
}
|
|
26200
26214
|
function Ti(e, t) {
|
|
@@ -26208,11 +26222,11 @@ function Pi(e) {
|
|
|
26208
26222
|
}, Pi(e);
|
|
26209
26223
|
}
|
|
26210
26224
|
var ds = /* @__PURE__ */ (function(e) {
|
|
26211
|
-
|
|
26212
|
-
var t =
|
|
26225
|
+
$I(n, e);
|
|
26226
|
+
var t = jI(n);
|
|
26213
26227
|
function n(r, i, o, a, s, l, u) {
|
|
26214
26228
|
var h, p, v, m;
|
|
26215
|
-
|
|
26229
|
+
MI(this, n), m = t.call(this, r), m.name = "GraphQLError", m.originalError = l ?? void 0, m.nodes = Tf(Array.isArray(i) ? i : i ? [i] : void 0);
|
|
26216
26230
|
for (var y = [], C = 0, N = (R = m.nodes) !== null && R !== void 0 ? R : []; C < N.length; C++) {
|
|
26217
26231
|
var R, U = N[C], F = U.loc;
|
|
26218
26232
|
F != null && y.push(F);
|
|
@@ -26225,7 +26239,7 @@ var ds = /* @__PURE__ */ (function(e) {
|
|
|
26225
26239
|
return zs(K.source, K.start);
|
|
26226
26240
|
}), m.path = s ?? void 0;
|
|
26227
26241
|
var Z = l?.extensions;
|
|
26228
|
-
return u == null &&
|
|
26242
|
+
return u == null && TI(Z) ? m.extensions = LI({}, Z) : m.extensions = u ?? {}, Object.defineProperties(yi(m), {
|
|
26229
26243
|
message: {
|
|
26230
26244
|
enumerable: !0
|
|
26231
26245
|
},
|
|
@@ -26263,15 +26277,15 @@ var ds = /* @__PURE__ */ (function(e) {
|
|
|
26263
26277
|
configurable: !0
|
|
26264
26278
|
}), m);
|
|
26265
26279
|
}
|
|
26266
|
-
return
|
|
26280
|
+
return FI(n, [{
|
|
26267
26281
|
key: "toString",
|
|
26268
26282
|
value: function() {
|
|
26269
|
-
return
|
|
26283
|
+
return BI(this);
|
|
26270
26284
|
}
|
|
26271
26285
|
// FIXME: workaround to not break chai comparisons, should be remove in v16
|
|
26272
26286
|
// $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet
|
|
26273
26287
|
}, {
|
|
26274
|
-
key:
|
|
26288
|
+
key: PI,
|
|
26275
26289
|
get: function() {
|
|
26276
26290
|
return "Object";
|
|
26277
26291
|
}
|
|
@@ -26280,14 +26294,14 @@ var ds = /* @__PURE__ */ (function(e) {
|
|
|
26280
26294
|
function Tf(e) {
|
|
26281
26295
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
26282
26296
|
}
|
|
26283
|
-
function
|
|
26297
|
+
function BI(e) {
|
|
26284
26298
|
var t = e.message;
|
|
26285
26299
|
if (e.nodes)
|
|
26286
26300
|
for (var n = 0, r = e.nodes; n < r.length; n++) {
|
|
26287
26301
|
var i = r[n];
|
|
26288
26302
|
i.loc && (t += `
|
|
26289
26303
|
|
|
26290
|
-
` +
|
|
26304
|
+
` + OI(i.loc));
|
|
26291
26305
|
}
|
|
26292
26306
|
else if (e.source && e.locations)
|
|
26293
26307
|
for (var o = 0, a = e.locations; o < a.length; o++) {
|
|
@@ -26298,16 +26312,16 @@ function UI(e) {
|
|
|
26298
26312
|
}
|
|
26299
26313
|
return t;
|
|
26300
26314
|
}
|
|
26301
|
-
class
|
|
26315
|
+
class VI extends Error {
|
|
26302
26316
|
constructor() {
|
|
26303
26317
|
super(...arguments), this.nonRetryable = !0;
|
|
26304
26318
|
}
|
|
26305
26319
|
}
|
|
26306
|
-
const
|
|
26307
|
-
function
|
|
26320
|
+
const WI = (e, t, n = km, r) => bE(e, t, aI(n));
|
|
26321
|
+
function qI(e) {
|
|
26308
26322
|
return Array.from(e, (t) => String.fromCodePoint(t)).join("");
|
|
26309
26323
|
}
|
|
26310
|
-
const
|
|
26324
|
+
const HI = {
|
|
26311
26325
|
/**
|
|
26312
26326
|
* Convert input to base64-encoded string
|
|
26313
26327
|
* @param input - string to convert to base64
|
|
@@ -26318,11 +26332,11 @@ const qI = {
|
|
|
26318
26332
|
urlSafe: !1,
|
|
26319
26333
|
skipPadding: !1
|
|
26320
26334
|
}) {
|
|
26321
|
-
const n = typeof e == "string" ? e :
|
|
26322
|
-
let r =
|
|
26335
|
+
const n = typeof e == "string" ? e : qI(e);
|
|
26336
|
+
let r = gE()(n);
|
|
26323
26337
|
return t.urlSafe && (r = r.replace(/\+/g, "-").replace(/\//g, "_")), t.skipPadding && (r = r.replace(/=/g, "")), r;
|
|
26324
26338
|
}
|
|
26325
|
-
},
|
|
26339
|
+
}, ZI = 5e3, GI = [400, 401, 403], YI = [
|
|
26326
26340
|
"BadRequestException",
|
|
26327
26341
|
"UnauthorizedException"
|
|
26328
26342
|
], Om = "ConnectionStateChange";
|
|
@@ -26338,11 +26352,11 @@ var Ht;
|
|
|
26338
26352
|
(function(e) {
|
|
26339
26353
|
e[e.CLOSED = 0] = "CLOSED", e[e.READY = 1] = "READY", e[e.CONNECTING = 2] = "CONNECTING";
|
|
26340
26354
|
})(Ht || (Ht = {}));
|
|
26341
|
-
const
|
|
26355
|
+
const XI = {
|
|
26342
26356
|
accept: "application/json, text/javascript",
|
|
26343
26357
|
"content-encoding": "amz-1.0",
|
|
26344
26358
|
"content-type": "application/json; charset=UTF-8"
|
|
26345
|
-
}, Pf = 15e3,
|
|
26359
|
+
}, Pf = 15e3, KI = 15e3, JI = 300 * 1e3, QI = 5 * 1e3, eR = 65 * 1e3, tR = 5 * 1e3, nR = 60 * 1e3;
|
|
26346
26360
|
var xn;
|
|
26347
26361
|
(function(e) {
|
|
26348
26362
|
e.CONNECTION_CLOSED = "Connection closed", e.CONNECTION_FAILED = "Connection failed", e.REALTIME_SUBSCRIPTION_INIT_ERROR = "AppSync Realtime subscription init error", e.SUBSCRIPTION_ACK = "Subscription ack", e.TIMEOUT_DISCONNECT = "Timeout disconnect";
|
|
@@ -26368,7 +26382,7 @@ const Of = () => new $r().networkMonitor(), mn = {
|
|
|
26368
26382
|
ONLINE: { networkState: "connected" },
|
|
26369
26383
|
OFFLINE: { networkState: "disconnected" }
|
|
26370
26384
|
};
|
|
26371
|
-
class
|
|
26385
|
+
class rR {
|
|
26372
26386
|
constructor() {
|
|
26373
26387
|
this._networkMonitoringSubscription = void 0, this._linkedConnectionState = {
|
|
26374
26388
|
networkState: "connected",
|
|
@@ -26402,7 +26416,7 @@ class nR {
|
|
|
26402
26416
|
*/
|
|
26403
26417
|
get connectionStateObservable() {
|
|
26404
26418
|
let t;
|
|
26405
|
-
return this._linkedConnectionStateObservable.pipe(
|
|
26419
|
+
return this._linkedConnectionStateObservable.pipe(eI((n) => this.connectionStatesTranslator(n))).pipe(tI((n) => {
|
|
26406
26420
|
const r = n !== t;
|
|
26407
26421
|
return t = n, r;
|
|
26408
26422
|
}));
|
|
@@ -26429,7 +26443,7 @@ var Wr;
|
|
|
26429
26443
|
(function(e) {
|
|
26430
26444
|
e.START_RECONNECT = "START_RECONNECT", e.HALT_RECONNECT = "HALT_RECONNECT";
|
|
26431
26445
|
})(Wr || (Wr = {}));
|
|
26432
|
-
class
|
|
26446
|
+
class iR {
|
|
26433
26447
|
constructor() {
|
|
26434
26448
|
this.reconnectObservers = [];
|
|
26435
26449
|
}
|
|
@@ -26446,8 +26460,8 @@ class rR {
|
|
|
26446
26460
|
t === Wr.START_RECONNECT && this.reconnectSetTimeoutId === void 0 && this.reconnectIntervalId === void 0 && (this.reconnectSetTimeoutId = setTimeout(() => {
|
|
26447
26461
|
this._triggerReconnect(), this.reconnectIntervalId = setInterval(() => {
|
|
26448
26462
|
this._triggerReconnect();
|
|
26449
|
-
},
|
|
26450
|
-
},
|
|
26463
|
+
}, nR);
|
|
26464
|
+
}, tR)), t === Wr.HALT_RECONNECT && (this.reconnectIntervalId && (clearInterval(this.reconnectIntervalId), this.reconnectIntervalId = void 0), this.reconnectSetTimeoutId && (clearTimeout(this.reconnectSetTimeoutId), this.reconnectSetTimeoutId = void 0));
|
|
26451
26465
|
}
|
|
26452
26466
|
/**
|
|
26453
26467
|
* Complete all reconnect observers
|
|
@@ -26463,10 +26477,10 @@ class rR {
|
|
|
26463
26477
|
});
|
|
26464
26478
|
}
|
|
26465
26479
|
}
|
|
26466
|
-
const Nf = "wss://",
|
|
26480
|
+
const Nf = "wss://", oR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/graphql$/i, aR = /^https:\/\/\w{26}\.\w+-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/event$/i, Lf = "/realtime", sR = (e) => e.match(oR) === null, lR = (e) => e.match(aR) !== null, cR = (e) => {
|
|
26467
26481
|
let t = e ?? "";
|
|
26468
|
-
return
|
|
26469
|
-
},
|
|
26482
|
+
return lR(t) ? t = t.concat(Lf).replace("ddpg-api", "grt-gamma").replace("appsync-api", "appsync-realtime-api") : sR(t) ? t = t.concat(Lf) : t = t.replace("appsync-api", "appsync-realtime-api").replace("gogi-beta", "grt-beta").replace("ddpg-api", "grt-gamma"), t = t.replace("https://", Nf).replace("http://", Nf), new jl(t);
|
|
26483
|
+
}, uR = (e) => {
|
|
26470
26484
|
if (!e)
|
|
26471
26485
|
return {};
|
|
26472
26486
|
if ("Authorization" in e) {
|
|
@@ -26474,13 +26488,13 @@ const Nf = "wss://", iR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26474
26488
|
return n;
|
|
26475
26489
|
}
|
|
26476
26490
|
return e;
|
|
26477
|
-
},
|
|
26478
|
-
const t =
|
|
26491
|
+
}, fR = (e) => {
|
|
26492
|
+
const t = uR(e), n = new Sm();
|
|
26479
26493
|
return Object.entries(t).forEach(([r, i]) => {
|
|
26480
26494
|
n.append(r, i);
|
|
26481
26495
|
}), n;
|
|
26482
|
-
},
|
|
26483
|
-
const n =
|
|
26496
|
+
}, dR = (e, t) => {
|
|
26497
|
+
const n = cR(e), r = new Sm(n.search);
|
|
26484
26498
|
for (const [i, o] of t.entries())
|
|
26485
26499
|
r.append(i, o);
|
|
26486
26500
|
return n.search = r.toString(), n.toString();
|
|
@@ -26501,14 +26515,14 @@ const Nf = "wss://", iR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26501
26515
|
}, Df = new bn("AWSAppSyncRealTimeProvider Auth"), Mf = async ({ host: e }) => ({
|
|
26502
26516
|
Authorization: (await _m())?.tokens?.accessToken?.toString(),
|
|
26503
26517
|
host: e
|
|
26504
|
-
}),
|
|
26518
|
+
}), hR = async ({ apiKey: e, host: t }) => {
|
|
26505
26519
|
const r = (/* @__PURE__ */ new Date()).toISOString().replace(/[:-]|\.\d{3}/g, "");
|
|
26506
26520
|
return {
|
|
26507
26521
|
host: t,
|
|
26508
26522
|
"x-amz-date": r,
|
|
26509
26523
|
"x-api-key": e
|
|
26510
26524
|
};
|
|
26511
|
-
},
|
|
26525
|
+
}, pR = async ({ payload: e, canonicalUri: t, appSyncGraphqlEndpoint: n, region: r }) => {
|
|
26512
26526
|
const i = {
|
|
26513
26527
|
region: r,
|
|
26514
26528
|
service: "appsync"
|
|
@@ -26516,9 +26530,9 @@ const Nf = "wss://", iR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26516
26530
|
url: `${n}${t}`,
|
|
26517
26531
|
data: e,
|
|
26518
26532
|
method: "POST",
|
|
26519
|
-
headers: { ...
|
|
26533
|
+
headers: { ...XI }
|
|
26520
26534
|
};
|
|
26521
|
-
return
|
|
26535
|
+
return RI({
|
|
26522
26536
|
headers: a.headers,
|
|
26523
26537
|
method: a.method,
|
|
26524
26538
|
url: new jl(a.url),
|
|
@@ -26537,8 +26551,8 @@ const Nf = "wss://", iR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26537
26551
|
};
|
|
26538
26552
|
}, Nm = async ({ apiKey: e, authenticationType: t, canonicalUri: n, appSyncGraphqlEndpoint: r, region: i, additionalCustomHeaders: o, payload: a }) => {
|
|
26539
26553
|
const s = {
|
|
26540
|
-
apiKey:
|
|
26541
|
-
iam:
|
|
26554
|
+
apiKey: hR,
|
|
26555
|
+
iam: pR,
|
|
26542
26556
|
oidc: Mf,
|
|
26543
26557
|
userPool: Mf,
|
|
26544
26558
|
lambda: zf,
|
|
@@ -26562,17 +26576,17 @@ const Nf = "wss://", iR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26562
26576
|
}, Ff = (e) => {
|
|
26563
26577
|
Ol.dispatch("api", e, "PubSub", Pl);
|
|
26564
26578
|
};
|
|
26565
|
-
class
|
|
26579
|
+
class mR {
|
|
26566
26580
|
constructor(t) {
|
|
26567
|
-
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus = Ht.CLOSED, this.keepAliveTimestamp = Date.now(), this.promiseArray = [], this.connectionStateMonitor = new
|
|
26581
|
+
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus = Ht.CLOSED, this.keepAliveTimestamp = Date.now(), this.promiseArray = [], this.connectionStateMonitor = new rR(), this.reconnectionMonitor = new iR(), this._establishConnection = async (n, r) => {
|
|
26568
26582
|
this.logger.debug(`Establishing WebSocket connection to ${n}`);
|
|
26569
26583
|
try {
|
|
26570
26584
|
await this._openConnection(n, r), await this._initiateHandshake();
|
|
26571
26585
|
} catch (i) {
|
|
26572
26586
|
const { errorType: o, errorCode: a } = i;
|
|
26573
|
-
throw
|
|
26587
|
+
throw GI.includes(a) || // Event API does not currently return `errorCode`. This may change in the future.
|
|
26574
26588
|
// For now fall back to also checking known non-retryable error types
|
|
26575
|
-
|
|
26589
|
+
YI.includes(o) ? new VI(o) : o ? new Error(o) : i;
|
|
26576
26590
|
}
|
|
26577
26591
|
}, this.logger = new bn(t.providerName), this.wsProtocolName = t.wsProtocolName, this.wsConnectUri = t.connectUri, this.connectionStateMonitorSubscription = this._startConnectionStateMonitoring();
|
|
26578
26592
|
}
|
|
@@ -26738,7 +26752,7 @@ class pR {
|
|
|
26738
26752
|
subscriptionFailedCallback: h,
|
|
26739
26753
|
startAckTimeoutId: setTimeout(() => {
|
|
26740
26754
|
this._timeoutStartSubscriptionAck(r);
|
|
26741
|
-
},
|
|
26755
|
+
}, KI)
|
|
26742
26756
|
}), this.awsRealTimeSocket && this.awsRealTimeSocket.send(u);
|
|
26743
26757
|
}
|
|
26744
26758
|
// Log logic for start subscription failures
|
|
@@ -26809,7 +26823,7 @@ class pR {
|
|
|
26809
26823
|
}
|
|
26810
26824
|
keepAliveHeartbeat(t) {
|
|
26811
26825
|
const n = Date.now();
|
|
26812
|
-
n - this.keepAliveTimestamp >
|
|
26826
|
+
n - this.keepAliveTimestamp > eR ? this.connectionStateMonitor.record(mn.KEEP_ALIVE_MISSED) : this.connectionStateMonitor.record(mn.KEEP_ALIVE), n - this.keepAliveTimestamp > t && this._errorDisconnect(xn.TIMEOUT_DISCONNECT);
|
|
26813
26827
|
}
|
|
26814
26828
|
_handleIncomingSubscriptionMessage(t) {
|
|
26815
26829
|
if (typeof t.data != "string")
|
|
@@ -26917,10 +26931,10 @@ class pR {
|
|
|
26917
26931
|
appSyncGraphqlEndpoint: t,
|
|
26918
26932
|
region: i,
|
|
26919
26933
|
additionalCustomHeaders: o
|
|
26920
|
-
}), h = u ? JSON.stringify(u) : "", v = `header-${
|
|
26934
|
+
}), h = u ? JSON.stringify(u) : "", v = `header-${HI.convert(h, {
|
|
26921
26935
|
urlSafe: !0,
|
|
26922
26936
|
skipPadding: !0
|
|
26923
|
-
})}`, m =
|
|
26937
|
+
})}`, m = fR(o), y = dR(t, m);
|
|
26924
26938
|
await this._establishRetryableConnection(y, v), this.promiseArray.forEach(({ res: C }) => {
|
|
26925
26939
|
this.logger.debug("Notifying connection successful"), C();
|
|
26926
26940
|
}), this.socketStatus = Ht.READY, this.promiseArray = [];
|
|
@@ -26932,7 +26946,7 @@ class pR {
|
|
|
26932
26946
|
});
|
|
26933
26947
|
}
|
|
26934
26948
|
async _establishRetryableConnection(t, n) {
|
|
26935
|
-
this.logger.debug("Establishing retryable connection"), await
|
|
26949
|
+
this.logger.debug("Establishing retryable connection"), await WI(this._establishConnection.bind(this), [t, n], ZI);
|
|
26936
26950
|
}
|
|
26937
26951
|
async _openConnection(t, n) {
|
|
26938
26952
|
return new Promise((r, i) => {
|
|
@@ -26992,14 +27006,14 @@ class pR {
|
|
|
26992
27006
|
_registerWebsocketHandlers(t) {
|
|
26993
27007
|
this.awsRealTimeSocket && (this.keepAliveHeartbeatIntervalId = setInterval(() => {
|
|
26994
27008
|
this.keepAliveHeartbeat(t);
|
|
26995
|
-
},
|
|
27009
|
+
}, QI), this.awsRealTimeSocket.onmessage = this._handleIncomingSubscriptionMessage.bind(this), this.awsRealTimeSocket.onerror = (n) => {
|
|
26996
27010
|
this.logger.debug(n), this._errorDisconnect(xn.CONNECTION_CLOSED);
|
|
26997
27011
|
}, this.awsRealTimeSocket.onclose = (n) => {
|
|
26998
27012
|
this.logger.debug(`WebSocket closed ${n.reason}`), this._closeSocket(), this._errorDisconnect(xn.CONNECTION_CLOSED);
|
|
26999
27013
|
});
|
|
27000
27014
|
}
|
|
27001
27015
|
}
|
|
27002
|
-
const Lo = (e, t) => e ? e === "identityPool" ? "iam" : e : t,
|
|
27016
|
+
const Lo = (e, t) => e ? e === "identityPool" ? "iam" : e : t, gR = () => {
|
|
27003
27017
|
const t = $l.getConfig().API?.Events;
|
|
27004
27018
|
if (!t)
|
|
27005
27019
|
throw new Error("Amplify configuration is missing. Have you called Amplify.configure()?");
|
|
@@ -27022,13 +27036,13 @@ const Lo = (e, t) => e ? e === "identityPool" ? "iam" : e : t, mR = () => {
|
|
|
27022
27036
|
if (t === void 0)
|
|
27023
27037
|
throw new Error(`Event must be a valid JSON value. Received ${e}`);
|
|
27024
27038
|
return [t];
|
|
27025
|
-
}, $f = "AWSAppSyncEventsProvider",
|
|
27026
|
-
class
|
|
27039
|
+
}, $f = "AWSAppSyncEventsProvider", bR = "aws-appsync-event-ws", vR = "";
|
|
27040
|
+
class yR extends mR {
|
|
27027
27041
|
constructor() {
|
|
27028
27042
|
super({
|
|
27029
27043
|
providerName: $f,
|
|
27030
|
-
wsProtocolName:
|
|
27031
|
-
connectUri:
|
|
27044
|
+
wsProtocolName: bR,
|
|
27045
|
+
connectUri: vR
|
|
27032
27046
|
}), this.allowNoSubscriptions = !0;
|
|
27033
27047
|
}
|
|
27034
27048
|
getProviderName() {
|
|
@@ -27062,7 +27076,7 @@ class vR extends pR {
|
|
|
27062
27076
|
}),
|
|
27063
27077
|
...o,
|
|
27064
27078
|
...i,
|
|
27065
|
-
[
|
|
27079
|
+
[hE]: EA(r)
|
|
27066
27080
|
}, N = {
|
|
27067
27081
|
id: n,
|
|
27068
27082
|
channel: u,
|
|
@@ -27099,7 +27113,7 @@ class vR extends pR {
|
|
|
27099
27113
|
};
|
|
27100
27114
|
}
|
|
27101
27115
|
_extractConnectionTimeout(t) {
|
|
27102
|
-
const { connectionTimeoutMs: n =
|
|
27116
|
+
const { connectionTimeoutMs: n = JI } = t;
|
|
27103
27117
|
return n;
|
|
27104
27118
|
}
|
|
27105
27119
|
_extractErrorCodeAndType(t) {
|
|
@@ -27107,9 +27121,9 @@ class vR extends pR {
|
|
|
27107
27121
|
return { errorCode: r, errorType: n };
|
|
27108
27122
|
}
|
|
27109
27123
|
}
|
|
27110
|
-
const yo = new
|
|
27111
|
-
async function
|
|
27112
|
-
const n =
|
|
27124
|
+
const yo = new yR(), bi = /* @__PURE__ */ new Set();
|
|
27125
|
+
async function wR(e, t) {
|
|
27126
|
+
const n = gR();
|
|
27113
27127
|
n.authenticationType = Lo(t?.authMode, n.authenticationType), n.apiKey = t?.apiKey || n.apiKey, n.authToken = t?.authToken || n.authToken, await yo.connect(n);
|
|
27114
27128
|
const r = Ds();
|
|
27115
27129
|
bi.add(r);
|
|
@@ -27246,7 +27260,7 @@ function ir(...e) {
|
|
|
27246
27260
|
function Uf(e) {
|
|
27247
27261
|
return JSON.stringify(e);
|
|
27248
27262
|
}
|
|
27249
|
-
function
|
|
27263
|
+
function xR(e) {
|
|
27250
27264
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
27251
27265
|
}
|
|
27252
27266
|
const zm = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
@@ -27254,7 +27268,7 @@ const zm = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
|
27254
27268
|
function Wo(e) {
|
|
27255
27269
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
27256
27270
|
}
|
|
27257
|
-
const
|
|
27271
|
+
const _R = Ul(() => {
|
|
27258
27272
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
27259
27273
|
return !1;
|
|
27260
27274
|
try {
|
|
@@ -27276,7 +27290,7 @@ function Oi(e) {
|
|
|
27276
27290
|
function Fm(e) {
|
|
27277
27291
|
return Oi(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
27278
27292
|
}
|
|
27279
|
-
const
|
|
27293
|
+
const kR = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
27280
27294
|
function qr(e) {
|
|
27281
27295
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
27282
27296
|
}
|
|
@@ -27297,10 +27311,10 @@ function Te(e) {
|
|
|
27297
27311
|
}
|
|
27298
27312
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
27299
27313
|
}
|
|
27300
|
-
function
|
|
27314
|
+
function SR(e) {
|
|
27301
27315
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
27302
27316
|
}
|
|
27303
|
-
function
|
|
27317
|
+
function CR(e, t) {
|
|
27304
27318
|
const n = e._zod.def, r = n.checks;
|
|
27305
27319
|
if (r && r.length > 0)
|
|
27306
27320
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
@@ -27318,7 +27332,7 @@ function SR(e, t) {
|
|
|
27318
27332
|
});
|
|
27319
27333
|
return or(e, o);
|
|
27320
27334
|
}
|
|
27321
|
-
function
|
|
27335
|
+
function ER(e, t) {
|
|
27322
27336
|
const n = e._zod.def, r = n.checks;
|
|
27323
27337
|
if (r && r.length > 0)
|
|
27324
27338
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
@@ -27336,7 +27350,7 @@ function CR(e, t) {
|
|
|
27336
27350
|
});
|
|
27337
27351
|
return or(e, o);
|
|
27338
27352
|
}
|
|
27339
|
-
function
|
|
27353
|
+
function AR(e, t) {
|
|
27340
27354
|
if (!Oi(t))
|
|
27341
27355
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
27342
27356
|
const n = e._zod.def.checks;
|
|
@@ -27354,7 +27368,7 @@ function ER(e, t) {
|
|
|
27354
27368
|
});
|
|
27355
27369
|
return or(e, i);
|
|
27356
27370
|
}
|
|
27357
|
-
function
|
|
27371
|
+
function IR(e, t) {
|
|
27358
27372
|
if (!Oi(t))
|
|
27359
27373
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
27360
27374
|
const n = ir(e._zod.def, {
|
|
@@ -27365,7 +27379,7 @@ function AR(e, t) {
|
|
|
27365
27379
|
});
|
|
27366
27380
|
return or(e, n);
|
|
27367
27381
|
}
|
|
27368
|
-
function
|
|
27382
|
+
function RR(e, t) {
|
|
27369
27383
|
const n = ir(e._zod.def, {
|
|
27370
27384
|
get shape() {
|
|
27371
27385
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
@@ -27379,7 +27393,7 @@ function IR(e, t) {
|
|
|
27379
27393
|
});
|
|
27380
27394
|
return or(e, n);
|
|
27381
27395
|
}
|
|
27382
|
-
function
|
|
27396
|
+
function TR(e, t, n) {
|
|
27383
27397
|
const i = t._zod.def.checks;
|
|
27384
27398
|
if (i && i.length > 0)
|
|
27385
27399
|
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
@@ -27407,7 +27421,7 @@ function RR(e, t, n) {
|
|
|
27407
27421
|
});
|
|
27408
27422
|
return or(t, a);
|
|
27409
27423
|
}
|
|
27410
|
-
function
|
|
27424
|
+
function PR(e, t, n) {
|
|
27411
27425
|
const r = ir(t._zod.def, {
|
|
27412
27426
|
get shape() {
|
|
27413
27427
|
const i = t._zod.def.shape, o = { ...i };
|
|
@@ -27480,13 +27494,13 @@ const jm = (e, t) => {
|
|
|
27480
27494
|
enumerable: !1
|
|
27481
27495
|
});
|
|
27482
27496
|
}, Um = oe("$ZodError", jm), Bm = oe("$ZodError", jm, { Parent: Error });
|
|
27483
|
-
function
|
|
27497
|
+
function OR(e, t = (n) => n.message) {
|
|
27484
27498
|
const n = {}, r = [];
|
|
27485
27499
|
for (const i of e.issues)
|
|
27486
27500
|
i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
|
|
27487
27501
|
return { formErrors: r, fieldErrors: n };
|
|
27488
27502
|
}
|
|
27489
|
-
function
|
|
27503
|
+
function NR(e, t = (n) => n.message) {
|
|
27490
27504
|
const n = { _errors: [] }, r = (i) => {
|
|
27491
27505
|
for (const o of i.issues)
|
|
27492
27506
|
if (o.code === "invalid_union" && o.errors.length)
|
|
@@ -27532,50 +27546,50 @@ const ql = (e) => (t, n, r, i) => {
|
|
|
27532
27546
|
success: !1,
|
|
27533
27547
|
error: new (e ?? Um)(o.issues.map((a) => wr(a, i, yr())))
|
|
27534
27548
|
} : { success: !0, data: o.value };
|
|
27535
|
-
},
|
|
27549
|
+
}, LR = /* @__PURE__ */ la(Bm), ca = (e) => async (t, n, r) => {
|
|
27536
27550
|
const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
27537
27551
|
let o = t._zod.run({ value: n, issues: [] }, i);
|
|
27538
27552
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
27539
27553
|
success: !1,
|
|
27540
27554
|
error: new e(o.issues.map((a) => wr(a, i, yr())))
|
|
27541
27555
|
} : { success: !0, data: o.value };
|
|
27542
|
-
},
|
|
27556
|
+
}, DR = /* @__PURE__ */ ca(Bm), MR = (e) => (t, n, r) => {
|
|
27543
27557
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27544
27558
|
return ql(e)(t, n, i);
|
|
27545
|
-
},
|
|
27559
|
+
}, zR = (e) => (t, n, r) => ql(e)(t, n, r), FR = (e) => async (t, n, r) => {
|
|
27546
27560
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27547
27561
|
return Hl(e)(t, n, i);
|
|
27548
|
-
},
|
|
27562
|
+
}, $R = (e) => async (t, n, r) => Hl(e)(t, n, r), jR = (e) => (t, n, r) => {
|
|
27549
27563
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27550
27564
|
return la(e)(t, n, i);
|
|
27551
|
-
},
|
|
27565
|
+
}, UR = (e) => (t, n, r) => la(e)(t, n, r), BR = (e) => async (t, n, r) => {
|
|
27552
27566
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27553
27567
|
return ca(e)(t, n, i);
|
|
27554
|
-
},
|
|
27555
|
-
function
|
|
27556
|
-
return new RegExp(
|
|
27568
|
+
}, VR = (e) => async (t, n, r) => ca(e)(t, n, r), WR = /^[cC][^\s-]{8,}$/, qR = /^[0-9a-z]+$/, HR = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ZR = /^[0-9a-vA-V]{20}$/, GR = /^[A-Za-z0-9]{27}$/, YR = /^[a-zA-Z0-9_-]{21}$/, XR = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, KR = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Bf = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, JR = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, QR = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
27569
|
+
function eT() {
|
|
27570
|
+
return new RegExp(QR, "u");
|
|
27557
27571
|
}
|
|
27558
|
-
const
|
|
27572
|
+
const tT = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, nT = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, rT = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, iT = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, oT = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Vm = /^[A-Za-z0-9_-]*$/, aT = /^\+[1-9]\d{6,14}$/, Wm = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", sT = /* @__PURE__ */ new RegExp(`^${Wm}$`);
|
|
27559
27573
|
function qm(e) {
|
|
27560
27574
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
27561
27575
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
27562
27576
|
}
|
|
27563
|
-
function
|
|
27577
|
+
function lT(e) {
|
|
27564
27578
|
return new RegExp(`^${qm(e)}$`);
|
|
27565
27579
|
}
|
|
27566
|
-
function
|
|
27580
|
+
function cT(e) {
|
|
27567
27581
|
const t = qm({ precision: e.precision }), n = ["Z"];
|
|
27568
27582
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
27569
27583
|
const r = `${t}(?:${n.join("|")})`;
|
|
27570
27584
|
return new RegExp(`^${Wm}T(?:${r})$`);
|
|
27571
27585
|
}
|
|
27572
|
-
const
|
|
27586
|
+
const uT = (e) => {
|
|
27573
27587
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
27574
27588
|
return new RegExp(`^${t}$`);
|
|
27575
|
-
},
|
|
27589
|
+
}, fT = /^null$/i, dT = /^[^A-Z]*$/, hT = /^[^a-z]*$/, Dn = /* @__PURE__ */ oe("$ZodCheck", (e, t) => {
|
|
27576
27590
|
var n;
|
|
27577
27591
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
27578
|
-
}),
|
|
27592
|
+
}), pT = /* @__PURE__ */ oe("$ZodCheckMaxLength", (e, t) => {
|
|
27579
27593
|
var n;
|
|
27580
27594
|
Dn.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
27581
27595
|
const i = r.value;
|
|
@@ -27598,7 +27612,7 @@ const cT = (e) => {
|
|
|
27598
27612
|
continue: !t.abort
|
|
27599
27613
|
});
|
|
27600
27614
|
};
|
|
27601
|
-
}),
|
|
27615
|
+
}), mT = /* @__PURE__ */ oe("$ZodCheckMinLength", (e, t) => {
|
|
27602
27616
|
var n;
|
|
27603
27617
|
Dn.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
27604
27618
|
const i = r.value;
|
|
@@ -27621,7 +27635,7 @@ const cT = (e) => {
|
|
|
27621
27635
|
continue: !t.abort
|
|
27622
27636
|
});
|
|
27623
27637
|
};
|
|
27624
|
-
}),
|
|
27638
|
+
}), gT = /* @__PURE__ */ oe("$ZodCheckLengthEquals", (e, t) => {
|
|
27625
27639
|
var n;
|
|
27626
27640
|
Dn.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
27627
27641
|
const i = r.value;
|
|
@@ -27661,7 +27675,7 @@ const cT = (e) => {
|
|
|
27661
27675
|
});
|
|
27662
27676
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
27663
27677
|
});
|
|
27664
|
-
}),
|
|
27678
|
+
}), bT = /* @__PURE__ */ oe("$ZodCheckRegex", (e, t) => {
|
|
27665
27679
|
ua.init(e, t), e._zod.check = (n) => {
|
|
27666
27680
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
27667
27681
|
origin: "string",
|
|
@@ -27673,11 +27687,11 @@ const cT = (e) => {
|
|
|
27673
27687
|
continue: !t.abort
|
|
27674
27688
|
});
|
|
27675
27689
|
};
|
|
27676
|
-
}),
|
|
27677
|
-
t.pattern ?? (t.pattern = fT), ua.init(e, t);
|
|
27678
|
-
}), vT = /* @__PURE__ */ oe("$ZodCheckUpperCase", (e, t) => {
|
|
27690
|
+
}), vT = /* @__PURE__ */ oe("$ZodCheckLowerCase", (e, t) => {
|
|
27679
27691
|
t.pattern ?? (t.pattern = dT), ua.init(e, t);
|
|
27680
|
-
}), yT = /* @__PURE__ */ oe("$
|
|
27692
|
+
}), yT = /* @__PURE__ */ oe("$ZodCheckUpperCase", (e, t) => {
|
|
27693
|
+
t.pattern ?? (t.pattern = hT), ua.init(e, t);
|
|
27694
|
+
}), wT = /* @__PURE__ */ oe("$ZodCheckIncludes", (e, t) => {
|
|
27681
27695
|
Dn.init(e, t);
|
|
27682
27696
|
const n = qr(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
27683
27697
|
t.pattern = r, e._zod.onattach.push((i) => {
|
|
@@ -27694,7 +27708,7 @@ const cT = (e) => {
|
|
|
27694
27708
|
continue: !t.abort
|
|
27695
27709
|
});
|
|
27696
27710
|
};
|
|
27697
|
-
}),
|
|
27711
|
+
}), xT = /* @__PURE__ */ oe("$ZodCheckStartsWith", (e, t) => {
|
|
27698
27712
|
Dn.init(e, t);
|
|
27699
27713
|
const n = new RegExp(`^${qr(t.prefix)}.*`);
|
|
27700
27714
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -27711,7 +27725,7 @@ const cT = (e) => {
|
|
|
27711
27725
|
continue: !t.abort
|
|
27712
27726
|
});
|
|
27713
27727
|
};
|
|
27714
|
-
}),
|
|
27728
|
+
}), _T = /* @__PURE__ */ oe("$ZodCheckEndsWith", (e, t) => {
|
|
27715
27729
|
Dn.init(e, t);
|
|
27716
27730
|
const n = new RegExp(`.*${qr(t.suffix)}$`);
|
|
27717
27731
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -27728,12 +27742,12 @@ const cT = (e) => {
|
|
|
27728
27742
|
continue: !t.abort
|
|
27729
27743
|
});
|
|
27730
27744
|
};
|
|
27731
|
-
}),
|
|
27745
|
+
}), kT = /* @__PURE__ */ oe("$ZodCheckOverwrite", (e, t) => {
|
|
27732
27746
|
Dn.init(e, t), e._zod.check = (n) => {
|
|
27733
27747
|
n.value = t.tx(n.value);
|
|
27734
27748
|
};
|
|
27735
27749
|
});
|
|
27736
|
-
class
|
|
27750
|
+
class ST {
|
|
27737
27751
|
constructor(t = []) {
|
|
27738
27752
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
27739
27753
|
}
|
|
@@ -27756,13 +27770,13 @@ class kT {
|
|
|
27756
27770
|
`));
|
|
27757
27771
|
}
|
|
27758
27772
|
}
|
|
27759
|
-
const
|
|
27773
|
+
const CT = {
|
|
27760
27774
|
major: 4,
|
|
27761
27775
|
minor: 3,
|
|
27762
27776
|
patch: 6
|
|
27763
27777
|
}, Ct = /* @__PURE__ */ oe("$ZodType", (e, t) => {
|
|
27764
27778
|
var n;
|
|
27765
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
27779
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = CT;
|
|
27766
27780
|
const r = [...e._zod.def.checks ?? []];
|
|
27767
27781
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
27768
27782
|
for (const i of r)
|
|
@@ -27825,17 +27839,17 @@ const ST = {
|
|
|
27825
27839
|
ut(e, "~standard", () => ({
|
|
27826
27840
|
validate: (i) => {
|
|
27827
27841
|
try {
|
|
27828
|
-
const o =
|
|
27842
|
+
const o = LR(e, i);
|
|
27829
27843
|
return o.success ? { value: o.data } : { issues: o.error?.issues };
|
|
27830
27844
|
} catch {
|
|
27831
|
-
return
|
|
27845
|
+
return DR(e, i).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
|
|
27832
27846
|
}
|
|
27833
27847
|
},
|
|
27834
27848
|
vendor: "zod",
|
|
27835
27849
|
version: 1
|
|
27836
27850
|
}));
|
|
27837
27851
|
}), Zl = /* @__PURE__ */ oe("$ZodString", (e, t) => {
|
|
27838
|
-
Ct.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ??
|
|
27852
|
+
Ct.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? uT(e._zod.bag), e._zod.parse = (n, r) => {
|
|
27839
27853
|
if (t.coerce)
|
|
27840
27854
|
try {
|
|
27841
27855
|
n.value = String(n.value);
|
|
@@ -27850,9 +27864,9 @@ const ST = {
|
|
|
27850
27864
|
};
|
|
27851
27865
|
}), wt = /* @__PURE__ */ oe("$ZodStringFormat", (e, t) => {
|
|
27852
27866
|
ua.init(e, t), Zl.init(e, t);
|
|
27853
|
-
}),
|
|
27854
|
-
t.pattern ?? (t.pattern =
|
|
27855
|
-
}),
|
|
27867
|
+
}), ET = /* @__PURE__ */ oe("$ZodGUID", (e, t) => {
|
|
27868
|
+
t.pattern ?? (t.pattern = KR), wt.init(e, t);
|
|
27869
|
+
}), AT = /* @__PURE__ */ oe("$ZodUUID", (e, t) => {
|
|
27856
27870
|
if (t.version) {
|
|
27857
27871
|
const r = {
|
|
27858
27872
|
v1: 1,
|
|
@@ -27870,9 +27884,9 @@ const ST = {
|
|
|
27870
27884
|
} else
|
|
27871
27885
|
t.pattern ?? (t.pattern = Bf());
|
|
27872
27886
|
wt.init(e, t);
|
|
27873
|
-
}),
|
|
27874
|
-
t.pattern ?? (t.pattern =
|
|
27875
|
-
}),
|
|
27887
|
+
}), IT = /* @__PURE__ */ oe("$ZodEmail", (e, t) => {
|
|
27888
|
+
t.pattern ?? (t.pattern = JR), wt.init(e, t);
|
|
27889
|
+
}), RT = /* @__PURE__ */ oe("$ZodURL", (e, t) => {
|
|
27876
27890
|
wt.init(e, t), e._zod.check = (n) => {
|
|
27877
27891
|
try {
|
|
27878
27892
|
const r = n.value.trim(), i = new URL(r);
|
|
@@ -27904,32 +27918,32 @@ const ST = {
|
|
|
27904
27918
|
});
|
|
27905
27919
|
}
|
|
27906
27920
|
};
|
|
27907
|
-
}),
|
|
27908
|
-
t.pattern ?? (t.pattern =
|
|
27909
|
-
}),
|
|
27910
|
-
t.pattern ?? (t.pattern =
|
|
27911
|
-
}),
|
|
27912
|
-
t.pattern ?? (t.pattern = VR), wt.init(e, t);
|
|
27913
|
-
}), OT = /* @__PURE__ */ oe("$ZodCUID2", (e, t) => {
|
|
27921
|
+
}), TT = /* @__PURE__ */ oe("$ZodEmoji", (e, t) => {
|
|
27922
|
+
t.pattern ?? (t.pattern = eT()), wt.init(e, t);
|
|
27923
|
+
}), PT = /* @__PURE__ */ oe("$ZodNanoID", (e, t) => {
|
|
27924
|
+
t.pattern ?? (t.pattern = YR), wt.init(e, t);
|
|
27925
|
+
}), OT = /* @__PURE__ */ oe("$ZodCUID", (e, t) => {
|
|
27914
27926
|
t.pattern ?? (t.pattern = WR), wt.init(e, t);
|
|
27915
|
-
}), NT = /* @__PURE__ */ oe("$
|
|
27927
|
+
}), NT = /* @__PURE__ */ oe("$ZodCUID2", (e, t) => {
|
|
27916
27928
|
t.pattern ?? (t.pattern = qR), wt.init(e, t);
|
|
27917
|
-
}), LT = /* @__PURE__ */ oe("$
|
|
27929
|
+
}), LT = /* @__PURE__ */ oe("$ZodULID", (e, t) => {
|
|
27918
27930
|
t.pattern ?? (t.pattern = HR), wt.init(e, t);
|
|
27919
|
-
}), DT = /* @__PURE__ */ oe("$
|
|
27931
|
+
}), DT = /* @__PURE__ */ oe("$ZodXID", (e, t) => {
|
|
27920
27932
|
t.pattern ?? (t.pattern = ZR), wt.init(e, t);
|
|
27921
|
-
}), MT = /* @__PURE__ */ oe("$
|
|
27933
|
+
}), MT = /* @__PURE__ */ oe("$ZodKSUID", (e, t) => {
|
|
27934
|
+
t.pattern ?? (t.pattern = GR), wt.init(e, t);
|
|
27935
|
+
}), zT = /* @__PURE__ */ oe("$ZodISODateTime", (e, t) => {
|
|
27936
|
+
t.pattern ?? (t.pattern = cT(t)), wt.init(e, t);
|
|
27937
|
+
}), FT = /* @__PURE__ */ oe("$ZodISODate", (e, t) => {
|
|
27938
|
+
t.pattern ?? (t.pattern = sT), wt.init(e, t);
|
|
27939
|
+
}), $T = /* @__PURE__ */ oe("$ZodISOTime", (e, t) => {
|
|
27922
27940
|
t.pattern ?? (t.pattern = lT(t)), wt.init(e, t);
|
|
27923
|
-
}),
|
|
27924
|
-
t.pattern ?? (t.pattern =
|
|
27925
|
-
}),
|
|
27926
|
-
t.pattern ?? (t.pattern =
|
|
27927
|
-
}),
|
|
27928
|
-
t.pattern ?? (t.pattern =
|
|
27929
|
-
}), jT = /* @__PURE__ */ oe("$ZodIPv4", (e, t) => {
|
|
27930
|
-
t.pattern ?? (t.pattern = eT), wt.init(e, t), e._zod.bag.format = "ipv4";
|
|
27931
|
-
}), UT = /* @__PURE__ */ oe("$ZodIPv6", (e, t) => {
|
|
27932
|
-
t.pattern ?? (t.pattern = tT), wt.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
27941
|
+
}), jT = /* @__PURE__ */ oe("$ZodISODuration", (e, t) => {
|
|
27942
|
+
t.pattern ?? (t.pattern = XR), wt.init(e, t);
|
|
27943
|
+
}), UT = /* @__PURE__ */ oe("$ZodIPv4", (e, t) => {
|
|
27944
|
+
t.pattern ?? (t.pattern = tT), wt.init(e, t), e._zod.bag.format = "ipv4";
|
|
27945
|
+
}), BT = /* @__PURE__ */ oe("$ZodIPv6", (e, t) => {
|
|
27946
|
+
t.pattern ?? (t.pattern = nT), wt.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
27933
27947
|
try {
|
|
27934
27948
|
new URL(`http://[${n.value}]`);
|
|
27935
27949
|
} catch {
|
|
@@ -27942,10 +27956,10 @@ const ST = {
|
|
|
27942
27956
|
});
|
|
27943
27957
|
}
|
|
27944
27958
|
};
|
|
27945
|
-
}),
|
|
27946
|
-
t.pattern ?? (t.pattern =
|
|
27947
|
-
}),
|
|
27948
|
-
t.pattern ?? (t.pattern =
|
|
27959
|
+
}), VT = /* @__PURE__ */ oe("$ZodCIDRv4", (e, t) => {
|
|
27960
|
+
t.pattern ?? (t.pattern = rT), wt.init(e, t);
|
|
27961
|
+
}), WT = /* @__PURE__ */ oe("$ZodCIDRv6", (e, t) => {
|
|
27962
|
+
t.pattern ?? (t.pattern = iT), wt.init(e, t), e._zod.check = (n) => {
|
|
27949
27963
|
const r = n.value.split("/");
|
|
27950
27964
|
try {
|
|
27951
27965
|
if (r.length !== 2)
|
|
@@ -27981,8 +27995,8 @@ function Hm(e) {
|
|
|
27981
27995
|
return !1;
|
|
27982
27996
|
}
|
|
27983
27997
|
}
|
|
27984
|
-
const
|
|
27985
|
-
t.pattern ?? (t.pattern =
|
|
27998
|
+
const qT = /* @__PURE__ */ oe("$ZodBase64", (e, t) => {
|
|
27999
|
+
t.pattern ?? (t.pattern = oT), wt.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
27986
28000
|
Hm(n.value) || n.issues.push({
|
|
27987
28001
|
code: "invalid_format",
|
|
27988
28002
|
format: "base64",
|
|
@@ -27992,15 +28006,15 @@ const WT = /* @__PURE__ */ oe("$ZodBase64", (e, t) => {
|
|
|
27992
28006
|
});
|
|
27993
28007
|
};
|
|
27994
28008
|
});
|
|
27995
|
-
function
|
|
28009
|
+
function HT(e) {
|
|
27996
28010
|
if (!Vm.test(e))
|
|
27997
28011
|
return !1;
|
|
27998
28012
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
27999
28013
|
return Hm(n);
|
|
28000
28014
|
}
|
|
28001
|
-
const
|
|
28015
|
+
const ZT = /* @__PURE__ */ oe("$ZodBase64URL", (e, t) => {
|
|
28002
28016
|
t.pattern ?? (t.pattern = Vm), wt.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
28003
|
-
|
|
28017
|
+
HT(n.value) || n.issues.push({
|
|
28004
28018
|
code: "invalid_format",
|
|
28005
28019
|
format: "base64url",
|
|
28006
28020
|
input: n.value,
|
|
@@ -28008,10 +28022,10 @@ const HT = /* @__PURE__ */ oe("$ZodBase64URL", (e, t) => {
|
|
|
28008
28022
|
continue: !t.abort
|
|
28009
28023
|
});
|
|
28010
28024
|
};
|
|
28011
|
-
}),
|
|
28012
|
-
t.pattern ?? (t.pattern =
|
|
28025
|
+
}), GT = /* @__PURE__ */ oe("$ZodE164", (e, t) => {
|
|
28026
|
+
t.pattern ?? (t.pattern = aT), wt.init(e, t);
|
|
28013
28027
|
});
|
|
28014
|
-
function
|
|
28028
|
+
function YT(e, t = null) {
|
|
28015
28029
|
try {
|
|
28016
28030
|
const n = e.split(".");
|
|
28017
28031
|
if (n.length !== 3)
|
|
@@ -28025,9 +28039,9 @@ function GT(e, t = null) {
|
|
|
28025
28039
|
return !1;
|
|
28026
28040
|
}
|
|
28027
28041
|
}
|
|
28028
|
-
const
|
|
28042
|
+
const XT = /* @__PURE__ */ oe("$ZodJWT", (e, t) => {
|
|
28029
28043
|
wt.init(e, t), e._zod.check = (n) => {
|
|
28030
|
-
|
|
28044
|
+
YT(n.value, t.alg) || n.issues.push({
|
|
28031
28045
|
code: "invalid_format",
|
|
28032
28046
|
format: "jwt",
|
|
28033
28047
|
input: n.value,
|
|
@@ -28035,8 +28049,8 @@ const YT = /* @__PURE__ */ oe("$ZodJWT", (e, t) => {
|
|
|
28035
28049
|
continue: !t.abort
|
|
28036
28050
|
});
|
|
28037
28051
|
};
|
|
28038
|
-
}),
|
|
28039
|
-
Ct.init(e, t), e._zod.pattern =
|
|
28052
|
+
}), KT = /* @__PURE__ */ oe("$ZodNull", (e, t) => {
|
|
28053
|
+
Ct.init(e, t), e._zod.pattern = fT, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (n, r) => {
|
|
28040
28054
|
const i = n.value;
|
|
28041
28055
|
return i === null || n.issues.push({
|
|
28042
28056
|
expected: "null",
|
|
@@ -28045,9 +28059,9 @@ const YT = /* @__PURE__ */ oe("$ZodJWT", (e, t) => {
|
|
|
28045
28059
|
inst: e
|
|
28046
28060
|
}), n;
|
|
28047
28061
|
};
|
|
28048
|
-
}),
|
|
28062
|
+
}), JT = /* @__PURE__ */ oe("$ZodUnknown", (e, t) => {
|
|
28049
28063
|
Ct.init(e, t), e._zod.parse = (n) => n;
|
|
28050
|
-
}),
|
|
28064
|
+
}), QT = /* @__PURE__ */ oe("$ZodNever", (e, t) => {
|
|
28051
28065
|
Ct.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
28052
28066
|
expected: "never",
|
|
28053
28067
|
code: "invalid_type",
|
|
@@ -28058,7 +28072,7 @@ const YT = /* @__PURE__ */ oe("$ZodJWT", (e, t) => {
|
|
|
28058
28072
|
function Vf(e, t, n) {
|
|
28059
28073
|
e.issues.length && t.issues.push(...$m(n, e.issues)), t.value[n] = e.value;
|
|
28060
28074
|
}
|
|
28061
|
-
const
|
|
28075
|
+
const e2 = /* @__PURE__ */ oe("$ZodArray", (e, t) => {
|
|
28062
28076
|
Ct.init(e, t), e._zod.parse = (n, r) => {
|
|
28063
28077
|
const i = n.value;
|
|
28064
28078
|
if (!Array.isArray(i))
|
|
@@ -28093,7 +28107,7 @@ function Zm(e) {
|
|
|
28093
28107
|
for (const r of t)
|
|
28094
28108
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
28095
28109
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
28096
|
-
const n =
|
|
28110
|
+
const n = SR(e.shape);
|
|
28097
28111
|
return {
|
|
28098
28112
|
...e,
|
|
28099
28113
|
keys: t,
|
|
@@ -28121,7 +28135,7 @@ function Gm(e, t, n, r, i, o) {
|
|
|
28121
28135
|
inst: o
|
|
28122
28136
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
28123
28137
|
}
|
|
28124
|
-
const
|
|
28138
|
+
const t2 = /* @__PURE__ */ oe("$ZodObject", (e, t) => {
|
|
28125
28139
|
if (Ct.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
28126
28140
|
const s = t.shape;
|
|
28127
28141
|
Object.defineProperty(t, "shape", {
|
|
@@ -28166,10 +28180,10 @@ const e2 = /* @__PURE__ */ oe("$ZodObject", (e, t) => {
|
|
|
28166
28180
|
}
|
|
28167
28181
|
return o ? Gm(h, u, s, l, r.value, e) : h.length ? Promise.all(h).then(() => s) : s;
|
|
28168
28182
|
};
|
|
28169
|
-
}),
|
|
28170
|
-
|
|
28183
|
+
}), n2 = /* @__PURE__ */ oe("$ZodObjectJIT", (e, t) => {
|
|
28184
|
+
t2.init(e, t);
|
|
28171
28185
|
const n = e._zod.parse, r = Ul(() => Zm(t)), i = (v) => {
|
|
28172
|
-
const m = new
|
|
28186
|
+
const m = new ST(["shape", "payload", "ctx"]), y = r.value, C = (F) => {
|
|
28173
28187
|
const Z = Uf(F);
|
|
28174
28188
|
return `shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`;
|
|
28175
28189
|
};
|
|
@@ -28222,7 +28236,7 @@ const e2 = /* @__PURE__ */ oe("$ZodObject", (e, t) => {
|
|
|
28222
28236
|
return (F, Z) => U(v, F, Z);
|
|
28223
28237
|
};
|
|
28224
28238
|
let o;
|
|
28225
|
-
const a = Wo, s = !Dm.jitless, u = s &&
|
|
28239
|
+
const a = Wo, s = !Dm.jitless, u = s && _R.value, h = t.catchall;
|
|
28226
28240
|
let p;
|
|
28227
28241
|
e._zod.parse = (v, m) => {
|
|
28228
28242
|
p ?? (p = r.value);
|
|
@@ -28247,7 +28261,7 @@ function Wf(e, t, n, r) {
|
|
|
28247
28261
|
errors: e.map((o) => o.issues.map((a) => wr(a, r, yr())))
|
|
28248
28262
|
}), t);
|
|
28249
28263
|
}
|
|
28250
|
-
const
|
|
28264
|
+
const r2 = /* @__PURE__ */ oe("$ZodUnion", (e, t) => {
|
|
28251
28265
|
Ct.init(e, t), ut(e._zod, "optin", () => t.options.some((i) => i._zod.optin === "optional") ? "optional" : void 0), ut(e._zod, "optout", () => t.options.some((i) => i._zod.optout === "optional") ? "optional" : void 0), ut(e._zod, "values", () => {
|
|
28252
28266
|
if (t.options.every((i) => i._zod.values))
|
|
28253
28267
|
return new Set(t.options.flatMap((i) => Array.from(i._zod.values)));
|
|
@@ -28278,7 +28292,7 @@ const n2 = /* @__PURE__ */ oe("$ZodUnion", (e, t) => {
|
|
|
28278
28292
|
}
|
|
28279
28293
|
return a ? Promise.all(s).then((l) => Wf(l, i, e, o)) : Wf(s, i, e, o);
|
|
28280
28294
|
};
|
|
28281
|
-
}),
|
|
28295
|
+
}), i2 = /* @__PURE__ */ oe("$ZodIntersection", (e, t) => {
|
|
28282
28296
|
Ct.init(e, t), e._zod.parse = (n, r) => {
|
|
28283
28297
|
const i = n.value, o = t.left._zod.run({ value: i, issues: [] }, r), a = t.right._zod.run({ value: i, issues: [] }, r);
|
|
28284
28298
|
return o instanceof Promise || a instanceof Promise ? Promise.all([o, a]).then(([l, u]) => qf(n, l, u)) : qf(n, o, a);
|
|
@@ -28343,10 +28357,10 @@ function qf(e, t, n) {
|
|
|
28343
28357
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);
|
|
28344
28358
|
return e.value = a.data, e;
|
|
28345
28359
|
}
|
|
28346
|
-
const
|
|
28360
|
+
const o2 = /* @__PURE__ */ oe("$ZodEnum", (e, t) => {
|
|
28347
28361
|
Ct.init(e, t);
|
|
28348
28362
|
const n = Mm(t.entries), r = new Set(n);
|
|
28349
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((i) =>
|
|
28363
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((i) => kR.has(typeof i)).map((i) => typeof i == "string" ? qr(i) : i.toString()).join("|")})$`), e._zod.parse = (i, o) => {
|
|
28350
28364
|
const a = i.value;
|
|
28351
28365
|
return r.has(a) || i.issues.push({
|
|
28352
28366
|
code: "invalid_value",
|
|
@@ -28355,7 +28369,7 @@ const i2 = /* @__PURE__ */ oe("$ZodEnum", (e, t) => {
|
|
|
28355
28369
|
inst: e
|
|
28356
28370
|
}), i;
|
|
28357
28371
|
};
|
|
28358
|
-
}),
|
|
28372
|
+
}), a2 = /* @__PURE__ */ oe("$ZodLiteral", (e, t) => {
|
|
28359
28373
|
if (Ct.init(e, t), t.values.length === 0)
|
|
28360
28374
|
throw new Error("Cannot create literal schema with no valid values");
|
|
28361
28375
|
const n = new Set(t.values);
|
|
@@ -28368,7 +28382,7 @@ const i2 = /* @__PURE__ */ oe("$ZodEnum", (e, t) => {
|
|
|
28368
28382
|
inst: e
|
|
28369
28383
|
}), r;
|
|
28370
28384
|
};
|
|
28371
|
-
}),
|
|
28385
|
+
}), s2 = /* @__PURE__ */ oe("$ZodTransform", (e, t) => {
|
|
28372
28386
|
Ct.init(e, t), e._zod.parse = (n, r) => {
|
|
28373
28387
|
if (r.direction === "backward")
|
|
28374
28388
|
throw new Lm(e.constructor.name);
|
|
@@ -28394,14 +28408,14 @@ const Ym = /* @__PURE__ */ oe("$ZodOptional", (e, t) => {
|
|
|
28394
28408
|
}
|
|
28395
28409
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
28396
28410
|
};
|
|
28397
|
-
}),
|
|
28411
|
+
}), l2 = /* @__PURE__ */ oe("$ZodExactOptional", (e, t) => {
|
|
28398
28412
|
Ym.init(e, t), ut(e._zod, "values", () => t.innerType._zod.values), ut(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
|
|
28399
|
-
}),
|
|
28413
|
+
}), c2 = /* @__PURE__ */ oe("$ZodNullable", (e, t) => {
|
|
28400
28414
|
Ct.init(e, t), ut(e._zod, "optin", () => t.innerType._zod.optin), ut(e._zod, "optout", () => t.innerType._zod.optout), ut(e._zod, "pattern", () => {
|
|
28401
28415
|
const n = t.innerType._zod.pattern;
|
|
28402
28416
|
return n ? new RegExp(`^(${Vl(n.source)}|null)$`) : void 0;
|
|
28403
28417
|
}), ut(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
28404
|
-
}),
|
|
28418
|
+
}), u2 = /* @__PURE__ */ oe("$ZodDefault", (e, t) => {
|
|
28405
28419
|
Ct.init(e, t), e._zod.optin = "optional", ut(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
28406
28420
|
if (r.direction === "backward")
|
|
28407
28421
|
return t.innerType._zod.run(n, r);
|
|
@@ -28414,9 +28428,9 @@ const Ym = /* @__PURE__ */ oe("$ZodOptional", (e, t) => {
|
|
|
28414
28428
|
function Zf(e, t) {
|
|
28415
28429
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
28416
28430
|
}
|
|
28417
|
-
const
|
|
28431
|
+
const f2 = /* @__PURE__ */ oe("$ZodPrefault", (e, t) => {
|
|
28418
28432
|
Ct.init(e, t), e._zod.optin = "optional", ut(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
28419
|
-
}),
|
|
28433
|
+
}), d2 = /* @__PURE__ */ oe("$ZodNonOptional", (e, t) => {
|
|
28420
28434
|
Ct.init(e, t), ut(e._zod, "values", () => {
|
|
28421
28435
|
const n = t.innerType._zod.values;
|
|
28422
28436
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
@@ -28433,7 +28447,7 @@ function Gf(e, t) {
|
|
|
28433
28447
|
inst: t
|
|
28434
28448
|
}), e;
|
|
28435
28449
|
}
|
|
28436
|
-
const
|
|
28450
|
+
const h2 = /* @__PURE__ */ oe("$ZodCatch", (e, t) => {
|
|
28437
28451
|
Ct.init(e, t), ut(e._zod, "optin", () => t.innerType._zod.optin), ut(e._zod, "optout", () => t.innerType._zod.optout), ut(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
28438
28452
|
if (r.direction === "backward")
|
|
28439
28453
|
return t.innerType._zod.run(n, r);
|
|
@@ -28452,7 +28466,7 @@ const d2 = /* @__PURE__ */ oe("$ZodCatch", (e, t) => {
|
|
|
28452
28466
|
input: n.value
|
|
28453
28467
|
}), n.issues = []), n);
|
|
28454
28468
|
};
|
|
28455
|
-
}),
|
|
28469
|
+
}), p2 = /* @__PURE__ */ oe("$ZodPipe", (e, t) => {
|
|
28456
28470
|
Ct.init(e, t), ut(e._zod, "values", () => t.in._zod.values), ut(e._zod, "optin", () => t.in._zod.optin), ut(e._zod, "optout", () => t.out._zod.optout), ut(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
28457
28471
|
if (r.direction === "backward") {
|
|
28458
28472
|
const o = t.out._zod.run(n, r);
|
|
@@ -28465,7 +28479,7 @@ const d2 = /* @__PURE__ */ oe("$ZodCatch", (e, t) => {
|
|
|
28465
28479
|
function xo(e, t, n) {
|
|
28466
28480
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
28467
28481
|
}
|
|
28468
|
-
const
|
|
28482
|
+
const m2 = /* @__PURE__ */ oe("$ZodReadonly", (e, t) => {
|
|
28469
28483
|
Ct.init(e, t), ut(e._zod, "propValues", () => t.innerType._zod.propValues), ut(e._zod, "values", () => t.innerType._zod.values), ut(e._zod, "optin", () => t.innerType?._zod?.optin), ut(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
|
|
28470
28484
|
if (r.direction === "backward")
|
|
28471
28485
|
return t.innerType._zod.run(n, r);
|
|
@@ -28476,7 +28490,7 @@ const p2 = /* @__PURE__ */ oe("$ZodReadonly", (e, t) => {
|
|
|
28476
28490
|
function Yf(e) {
|
|
28477
28491
|
return e.value = Object.freeze(e.value), e;
|
|
28478
28492
|
}
|
|
28479
|
-
const
|
|
28493
|
+
const g2 = /* @__PURE__ */ oe("$ZodCustom", (e, t) => {
|
|
28480
28494
|
Dn.init(e, t), Ct.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
28481
28495
|
const r = n.value, i = t.fn(r);
|
|
28482
28496
|
if (i instanceof Promise)
|
|
@@ -28500,7 +28514,7 @@ function Xf(e, t, n, r) {
|
|
|
28500
28514
|
}
|
|
28501
28515
|
}
|
|
28502
28516
|
var Kf;
|
|
28503
|
-
class
|
|
28517
|
+
class b2 {
|
|
28504
28518
|
constructor() {
|
|
28505
28519
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
28506
28520
|
}
|
|
@@ -28529,20 +28543,20 @@ class g2 {
|
|
|
28529
28543
|
return this._map.has(t);
|
|
28530
28544
|
}
|
|
28531
28545
|
}
|
|
28532
|
-
function
|
|
28533
|
-
return new
|
|
28546
|
+
function v2() {
|
|
28547
|
+
return new b2();
|
|
28534
28548
|
}
|
|
28535
|
-
(Kf = globalThis).__zod_globalRegistry ?? (Kf.__zod_globalRegistry =
|
|
28549
|
+
(Kf = globalThis).__zod_globalRegistry ?? (Kf.__zod_globalRegistry = v2());
|
|
28536
28550
|
const wi = globalThis.__zod_globalRegistry;
|
|
28537
28551
|
// @__NO_SIDE_EFFECTS__
|
|
28538
|
-
function
|
|
28552
|
+
function y2(e, t) {
|
|
28539
28553
|
return new e({
|
|
28540
28554
|
type: "string",
|
|
28541
28555
|
...Te(t)
|
|
28542
28556
|
});
|
|
28543
28557
|
}
|
|
28544
28558
|
// @__NO_SIDE_EFFECTS__
|
|
28545
|
-
function
|
|
28559
|
+
function w2(e, t) {
|
|
28546
28560
|
return new e({
|
|
28547
28561
|
type: "string",
|
|
28548
28562
|
format: "email",
|
|
@@ -28562,7 +28576,7 @@ function Jf(e, t) {
|
|
|
28562
28576
|
});
|
|
28563
28577
|
}
|
|
28564
28578
|
// @__NO_SIDE_EFFECTS__
|
|
28565
|
-
function
|
|
28579
|
+
function x2(e, t) {
|
|
28566
28580
|
return new e({
|
|
28567
28581
|
type: "string",
|
|
28568
28582
|
format: "uuid",
|
|
@@ -28572,7 +28586,7 @@ function w2(e, t) {
|
|
|
28572
28586
|
});
|
|
28573
28587
|
}
|
|
28574
28588
|
// @__NO_SIDE_EFFECTS__
|
|
28575
|
-
function
|
|
28589
|
+
function _2(e, t) {
|
|
28576
28590
|
return new e({
|
|
28577
28591
|
type: "string",
|
|
28578
28592
|
format: "uuid",
|
|
@@ -28583,7 +28597,7 @@ function x2(e, t) {
|
|
|
28583
28597
|
});
|
|
28584
28598
|
}
|
|
28585
28599
|
// @__NO_SIDE_EFFECTS__
|
|
28586
|
-
function
|
|
28600
|
+
function k2(e, t) {
|
|
28587
28601
|
return new e({
|
|
28588
28602
|
type: "string",
|
|
28589
28603
|
format: "uuid",
|
|
@@ -28594,7 +28608,7 @@ function _2(e, t) {
|
|
|
28594
28608
|
});
|
|
28595
28609
|
}
|
|
28596
28610
|
// @__NO_SIDE_EFFECTS__
|
|
28597
|
-
function
|
|
28611
|
+
function S2(e, t) {
|
|
28598
28612
|
return new e({
|
|
28599
28613
|
type: "string",
|
|
28600
28614
|
format: "uuid",
|
|
@@ -28605,7 +28619,7 @@ function k2(e, t) {
|
|
|
28605
28619
|
});
|
|
28606
28620
|
}
|
|
28607
28621
|
// @__NO_SIDE_EFFECTS__
|
|
28608
|
-
function
|
|
28622
|
+
function C2(e, t) {
|
|
28609
28623
|
return new e({
|
|
28610
28624
|
type: "string",
|
|
28611
28625
|
format: "url",
|
|
@@ -28615,7 +28629,7 @@ function S2(e, t) {
|
|
|
28615
28629
|
});
|
|
28616
28630
|
}
|
|
28617
28631
|
// @__NO_SIDE_EFFECTS__
|
|
28618
|
-
function
|
|
28632
|
+
function E2(e, t) {
|
|
28619
28633
|
return new e({
|
|
28620
28634
|
type: "string",
|
|
28621
28635
|
format: "emoji",
|
|
@@ -28625,7 +28639,7 @@ function C2(e, t) {
|
|
|
28625
28639
|
});
|
|
28626
28640
|
}
|
|
28627
28641
|
// @__NO_SIDE_EFFECTS__
|
|
28628
|
-
function
|
|
28642
|
+
function A2(e, t) {
|
|
28629
28643
|
return new e({
|
|
28630
28644
|
type: "string",
|
|
28631
28645
|
format: "nanoid",
|
|
@@ -28635,7 +28649,7 @@ function E2(e, t) {
|
|
|
28635
28649
|
});
|
|
28636
28650
|
}
|
|
28637
28651
|
// @__NO_SIDE_EFFECTS__
|
|
28638
|
-
function
|
|
28652
|
+
function I2(e, t) {
|
|
28639
28653
|
return new e({
|
|
28640
28654
|
type: "string",
|
|
28641
28655
|
format: "cuid",
|
|
@@ -28645,7 +28659,7 @@ function A2(e, t) {
|
|
|
28645
28659
|
});
|
|
28646
28660
|
}
|
|
28647
28661
|
// @__NO_SIDE_EFFECTS__
|
|
28648
|
-
function
|
|
28662
|
+
function R2(e, t) {
|
|
28649
28663
|
return new e({
|
|
28650
28664
|
type: "string",
|
|
28651
28665
|
format: "cuid2",
|
|
@@ -28655,7 +28669,7 @@ function I2(e, t) {
|
|
|
28655
28669
|
});
|
|
28656
28670
|
}
|
|
28657
28671
|
// @__NO_SIDE_EFFECTS__
|
|
28658
|
-
function
|
|
28672
|
+
function T2(e, t) {
|
|
28659
28673
|
return new e({
|
|
28660
28674
|
type: "string",
|
|
28661
28675
|
format: "ulid",
|
|
@@ -28665,7 +28679,7 @@ function R2(e, t) {
|
|
|
28665
28679
|
});
|
|
28666
28680
|
}
|
|
28667
28681
|
// @__NO_SIDE_EFFECTS__
|
|
28668
|
-
function
|
|
28682
|
+
function P2(e, t) {
|
|
28669
28683
|
return new e({
|
|
28670
28684
|
type: "string",
|
|
28671
28685
|
format: "xid",
|
|
@@ -28675,7 +28689,7 @@ function T2(e, t) {
|
|
|
28675
28689
|
});
|
|
28676
28690
|
}
|
|
28677
28691
|
// @__NO_SIDE_EFFECTS__
|
|
28678
|
-
function
|
|
28692
|
+
function O2(e, t) {
|
|
28679
28693
|
return new e({
|
|
28680
28694
|
type: "string",
|
|
28681
28695
|
format: "ksuid",
|
|
@@ -28685,7 +28699,7 @@ function P2(e, t) {
|
|
|
28685
28699
|
});
|
|
28686
28700
|
}
|
|
28687
28701
|
// @__NO_SIDE_EFFECTS__
|
|
28688
|
-
function
|
|
28702
|
+
function N2(e, t) {
|
|
28689
28703
|
return new e({
|
|
28690
28704
|
type: "string",
|
|
28691
28705
|
format: "ipv4",
|
|
@@ -28695,7 +28709,7 @@ function O2(e, t) {
|
|
|
28695
28709
|
});
|
|
28696
28710
|
}
|
|
28697
28711
|
// @__NO_SIDE_EFFECTS__
|
|
28698
|
-
function
|
|
28712
|
+
function L2(e, t) {
|
|
28699
28713
|
return new e({
|
|
28700
28714
|
type: "string",
|
|
28701
28715
|
format: "ipv6",
|
|
@@ -28705,7 +28719,7 @@ function N2(e, t) {
|
|
|
28705
28719
|
});
|
|
28706
28720
|
}
|
|
28707
28721
|
// @__NO_SIDE_EFFECTS__
|
|
28708
|
-
function
|
|
28722
|
+
function D2(e, t) {
|
|
28709
28723
|
return new e({
|
|
28710
28724
|
type: "string",
|
|
28711
28725
|
format: "cidrv4",
|
|
@@ -28715,7 +28729,7 @@ function L2(e, t) {
|
|
|
28715
28729
|
});
|
|
28716
28730
|
}
|
|
28717
28731
|
// @__NO_SIDE_EFFECTS__
|
|
28718
|
-
function
|
|
28732
|
+
function M2(e, t) {
|
|
28719
28733
|
return new e({
|
|
28720
28734
|
type: "string",
|
|
28721
28735
|
format: "cidrv6",
|
|
@@ -28725,7 +28739,7 @@ function D2(e, t) {
|
|
|
28725
28739
|
});
|
|
28726
28740
|
}
|
|
28727
28741
|
// @__NO_SIDE_EFFECTS__
|
|
28728
|
-
function
|
|
28742
|
+
function z2(e, t) {
|
|
28729
28743
|
return new e({
|
|
28730
28744
|
type: "string",
|
|
28731
28745
|
format: "base64",
|
|
@@ -28735,7 +28749,7 @@ function M2(e, t) {
|
|
|
28735
28749
|
});
|
|
28736
28750
|
}
|
|
28737
28751
|
// @__NO_SIDE_EFFECTS__
|
|
28738
|
-
function
|
|
28752
|
+
function F2(e, t) {
|
|
28739
28753
|
return new e({
|
|
28740
28754
|
type: "string",
|
|
28741
28755
|
format: "base64url",
|
|
@@ -28745,7 +28759,7 @@ function z2(e, t) {
|
|
|
28745
28759
|
});
|
|
28746
28760
|
}
|
|
28747
28761
|
// @__NO_SIDE_EFFECTS__
|
|
28748
|
-
function
|
|
28762
|
+
function $2(e, t) {
|
|
28749
28763
|
return new e({
|
|
28750
28764
|
type: "string",
|
|
28751
28765
|
format: "e164",
|
|
@@ -28755,7 +28769,7 @@ function F2(e, t) {
|
|
|
28755
28769
|
});
|
|
28756
28770
|
}
|
|
28757
28771
|
// @__NO_SIDE_EFFECTS__
|
|
28758
|
-
function
|
|
28772
|
+
function j2(e, t) {
|
|
28759
28773
|
return new e({
|
|
28760
28774
|
type: "string",
|
|
28761
28775
|
format: "jwt",
|
|
@@ -28765,7 +28779,7 @@ function $2(e, t) {
|
|
|
28765
28779
|
});
|
|
28766
28780
|
}
|
|
28767
28781
|
// @__NO_SIDE_EFFECTS__
|
|
28768
|
-
function
|
|
28782
|
+
function U2(e, t) {
|
|
28769
28783
|
return new e({
|
|
28770
28784
|
type: "string",
|
|
28771
28785
|
format: "datetime",
|
|
@@ -28777,7 +28791,7 @@ function j2(e, t) {
|
|
|
28777
28791
|
});
|
|
28778
28792
|
}
|
|
28779
28793
|
// @__NO_SIDE_EFFECTS__
|
|
28780
|
-
function
|
|
28794
|
+
function B2(e, t) {
|
|
28781
28795
|
return new e({
|
|
28782
28796
|
type: "string",
|
|
28783
28797
|
format: "date",
|
|
@@ -28786,7 +28800,7 @@ function U2(e, t) {
|
|
|
28786
28800
|
});
|
|
28787
28801
|
}
|
|
28788
28802
|
// @__NO_SIDE_EFFECTS__
|
|
28789
|
-
function
|
|
28803
|
+
function V2(e, t) {
|
|
28790
28804
|
return new e({
|
|
28791
28805
|
type: "string",
|
|
28792
28806
|
format: "time",
|
|
@@ -28796,7 +28810,7 @@ function B2(e, t) {
|
|
|
28796
28810
|
});
|
|
28797
28811
|
}
|
|
28798
28812
|
// @__NO_SIDE_EFFECTS__
|
|
28799
|
-
function
|
|
28813
|
+
function W2(e, t) {
|
|
28800
28814
|
return new e({
|
|
28801
28815
|
type: "string",
|
|
28802
28816
|
format: "duration",
|
|
@@ -28805,20 +28819,20 @@ function V2(e, t) {
|
|
|
28805
28819
|
});
|
|
28806
28820
|
}
|
|
28807
28821
|
// @__NO_SIDE_EFFECTS__
|
|
28808
|
-
function
|
|
28822
|
+
function q2(e, t) {
|
|
28809
28823
|
return new e({
|
|
28810
28824
|
type: "null",
|
|
28811
28825
|
...Te(t)
|
|
28812
28826
|
});
|
|
28813
28827
|
}
|
|
28814
28828
|
// @__NO_SIDE_EFFECTS__
|
|
28815
|
-
function
|
|
28829
|
+
function H2(e) {
|
|
28816
28830
|
return new e({
|
|
28817
28831
|
type: "unknown"
|
|
28818
28832
|
});
|
|
28819
28833
|
}
|
|
28820
28834
|
// @__NO_SIDE_EFFECTS__
|
|
28821
|
-
function
|
|
28835
|
+
function Z2(e, t) {
|
|
28822
28836
|
return new e({
|
|
28823
28837
|
type: "never",
|
|
28824
28838
|
...Te(t)
|
|
@@ -28826,7 +28840,7 @@ function H2(e, t) {
|
|
|
28826
28840
|
}
|
|
28827
28841
|
// @__NO_SIDE_EFFECTS__
|
|
28828
28842
|
function Xm(e, t) {
|
|
28829
|
-
return new
|
|
28843
|
+
return new pT({
|
|
28830
28844
|
check: "max_length",
|
|
28831
28845
|
...Te(t),
|
|
28832
28846
|
maximum: e
|
|
@@ -28834,7 +28848,7 @@ function Xm(e, t) {
|
|
|
28834
28848
|
}
|
|
28835
28849
|
// @__NO_SIDE_EFFECTS__
|
|
28836
28850
|
function Ho(e, t) {
|
|
28837
|
-
return new
|
|
28851
|
+
return new mT({
|
|
28838
28852
|
check: "min_length",
|
|
28839
28853
|
...Te(t),
|
|
28840
28854
|
minimum: e
|
|
@@ -28842,15 +28856,15 @@ function Ho(e, t) {
|
|
|
28842
28856
|
}
|
|
28843
28857
|
// @__NO_SIDE_EFFECTS__
|
|
28844
28858
|
function Km(e, t) {
|
|
28845
|
-
return new
|
|
28859
|
+
return new gT({
|
|
28846
28860
|
check: "length_equals",
|
|
28847
28861
|
...Te(t),
|
|
28848
28862
|
length: e
|
|
28849
28863
|
});
|
|
28850
28864
|
}
|
|
28851
28865
|
// @__NO_SIDE_EFFECTS__
|
|
28852
|
-
function
|
|
28853
|
-
return new
|
|
28866
|
+
function G2(e, t) {
|
|
28867
|
+
return new bT({
|
|
28854
28868
|
check: "string_format",
|
|
28855
28869
|
format: "regex",
|
|
28856
28870
|
...Te(t),
|
|
@@ -28858,24 +28872,24 @@ function Z2(e, t) {
|
|
|
28858
28872
|
});
|
|
28859
28873
|
}
|
|
28860
28874
|
// @__NO_SIDE_EFFECTS__
|
|
28861
|
-
function
|
|
28862
|
-
return new
|
|
28875
|
+
function Y2(e) {
|
|
28876
|
+
return new vT({
|
|
28863
28877
|
check: "string_format",
|
|
28864
28878
|
format: "lowercase",
|
|
28865
28879
|
...Te(e)
|
|
28866
28880
|
});
|
|
28867
28881
|
}
|
|
28868
28882
|
// @__NO_SIDE_EFFECTS__
|
|
28869
|
-
function
|
|
28870
|
-
return new
|
|
28883
|
+
function X2(e) {
|
|
28884
|
+
return new yT({
|
|
28871
28885
|
check: "string_format",
|
|
28872
28886
|
format: "uppercase",
|
|
28873
28887
|
...Te(e)
|
|
28874
28888
|
});
|
|
28875
28889
|
}
|
|
28876
28890
|
// @__NO_SIDE_EFFECTS__
|
|
28877
|
-
function
|
|
28878
|
-
return new
|
|
28891
|
+
function K2(e, t) {
|
|
28892
|
+
return new wT({
|
|
28879
28893
|
check: "string_format",
|
|
28880
28894
|
format: "includes",
|
|
28881
28895
|
...Te(t),
|
|
@@ -28883,8 +28897,8 @@ function X2(e, t) {
|
|
|
28883
28897
|
});
|
|
28884
28898
|
}
|
|
28885
28899
|
// @__NO_SIDE_EFFECTS__
|
|
28886
|
-
function
|
|
28887
|
-
return new
|
|
28900
|
+
function J2(e, t) {
|
|
28901
|
+
return new xT({
|
|
28888
28902
|
check: "string_format",
|
|
28889
28903
|
format: "starts_with",
|
|
28890
28904
|
...Te(t),
|
|
@@ -28892,8 +28906,8 @@ function K2(e, t) {
|
|
|
28892
28906
|
});
|
|
28893
28907
|
}
|
|
28894
28908
|
// @__NO_SIDE_EFFECTS__
|
|
28895
|
-
function
|
|
28896
|
-
return new
|
|
28909
|
+
function Q2(e, t) {
|
|
28910
|
+
return new _T({
|
|
28897
28911
|
check: "string_format",
|
|
28898
28912
|
format: "ends_with",
|
|
28899
28913
|
...Te(t),
|
|
@@ -28902,33 +28916,33 @@ function J2(e, t) {
|
|
|
28902
28916
|
}
|
|
28903
28917
|
// @__NO_SIDE_EFFECTS__
|
|
28904
28918
|
function Kr(e) {
|
|
28905
|
-
return new
|
|
28919
|
+
return new kT({
|
|
28906
28920
|
check: "overwrite",
|
|
28907
28921
|
tx: e
|
|
28908
28922
|
});
|
|
28909
28923
|
}
|
|
28910
28924
|
// @__NO_SIDE_EFFECTS__
|
|
28911
|
-
function
|
|
28925
|
+
function eP(e) {
|
|
28912
28926
|
return /* @__PURE__ */ Kr((t) => t.normalize(e));
|
|
28913
28927
|
}
|
|
28914
28928
|
// @__NO_SIDE_EFFECTS__
|
|
28915
|
-
function
|
|
28929
|
+
function tP() {
|
|
28916
28930
|
return /* @__PURE__ */ Kr((e) => e.trim());
|
|
28917
28931
|
}
|
|
28918
28932
|
// @__NO_SIDE_EFFECTS__
|
|
28919
|
-
function
|
|
28933
|
+
function nP() {
|
|
28920
28934
|
return /* @__PURE__ */ Kr((e) => e.toLowerCase());
|
|
28921
28935
|
}
|
|
28922
28936
|
// @__NO_SIDE_EFFECTS__
|
|
28923
|
-
function
|
|
28937
|
+
function rP() {
|
|
28924
28938
|
return /* @__PURE__ */ Kr((e) => e.toUpperCase());
|
|
28925
28939
|
}
|
|
28926
28940
|
// @__NO_SIDE_EFFECTS__
|
|
28927
|
-
function
|
|
28928
|
-
return /* @__PURE__ */ Kr((e) =>
|
|
28941
|
+
function iP() {
|
|
28942
|
+
return /* @__PURE__ */ Kr((e) => xR(e));
|
|
28929
28943
|
}
|
|
28930
28944
|
// @__NO_SIDE_EFFECTS__
|
|
28931
|
-
function
|
|
28945
|
+
function oP(e, t, n) {
|
|
28932
28946
|
return new e({
|
|
28933
28947
|
type: "array",
|
|
28934
28948
|
element: t,
|
|
@@ -28939,7 +28953,7 @@ function iP(e, t, n) {
|
|
|
28939
28953
|
});
|
|
28940
28954
|
}
|
|
28941
28955
|
// @__NO_SIDE_EFFECTS__
|
|
28942
|
-
function
|
|
28956
|
+
function aP(e, t, n) {
|
|
28943
28957
|
return new e({
|
|
28944
28958
|
type: "custom",
|
|
28945
28959
|
check: "custom",
|
|
@@ -28948,8 +28962,8 @@ function oP(e, t, n) {
|
|
|
28948
28962
|
});
|
|
28949
28963
|
}
|
|
28950
28964
|
// @__NO_SIDE_EFFECTS__
|
|
28951
|
-
function
|
|
28952
|
-
const t = /* @__PURE__ */
|
|
28965
|
+
function sP(e) {
|
|
28966
|
+
const t = /* @__PURE__ */ lP((n) => (n.addIssue = (r) => {
|
|
28953
28967
|
if (typeof r == "string")
|
|
28954
28968
|
n.issues.push(Ni(r, n.value, t._zod.def));
|
|
28955
28969
|
else {
|
|
@@ -28960,7 +28974,7 @@ function aP(e) {
|
|
|
28960
28974
|
return t;
|
|
28961
28975
|
}
|
|
28962
28976
|
// @__NO_SIDE_EFFECTS__
|
|
28963
|
-
function
|
|
28977
|
+
function lP(e, t) {
|
|
28964
28978
|
const n = new Dn({
|
|
28965
28979
|
check: "custom",
|
|
28966
28980
|
...Te(t)
|
|
@@ -29194,24 +29208,24 @@ function qt(e, t) {
|
|
|
29194
29208
|
}
|
|
29195
29209
|
return !1;
|
|
29196
29210
|
}
|
|
29197
|
-
const
|
|
29211
|
+
const cP = (e, t = {}) => (n) => {
|
|
29198
29212
|
const r = Jm({ ...n, processors: t });
|
|
29199
29213
|
return jt(e, r), Qm(r, e), eg(r, e);
|
|
29200
29214
|
}, Zo = (e, t, n = {}) => (r) => {
|
|
29201
29215
|
const { libraryOptions: i, target: o } = r ?? {}, a = Jm({ ...i ?? {}, target: o, io: t, processors: n });
|
|
29202
29216
|
return jt(e, a), Qm(a, e), eg(a, e);
|
|
29203
|
-
},
|
|
29217
|
+
}, uP = {
|
|
29204
29218
|
guid: "uuid",
|
|
29205
29219
|
url: "uri",
|
|
29206
29220
|
datetime: "date-time",
|
|
29207
29221
|
json_string: "json-string",
|
|
29208
29222
|
regex: ""
|
|
29209
29223
|
// do not set
|
|
29210
|
-
},
|
|
29224
|
+
}, fP = (e, t, n, r) => {
|
|
29211
29225
|
const i = n;
|
|
29212
29226
|
i.type = "string";
|
|
29213
29227
|
const { minimum: o, maximum: a, format: s, patterns: l, contentEncoding: u } = e._zod.bag;
|
|
29214
|
-
if (typeof o == "number" && (i.minLength = o), typeof a == "number" && (i.maxLength = a), s && (i.format =
|
|
29228
|
+
if (typeof o == "number" && (i.minLength = o), typeof a == "number" && (i.maxLength = a), s && (i.format = uP[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), u && (i.contentEncoding = u), l && l.size > 0) {
|
|
29215
29229
|
const h = [...l];
|
|
29216
29230
|
h.length === 1 ? i.pattern = h[0].source : h.length > 1 && (i.allOf = [
|
|
29217
29231
|
...h.map((p) => ({
|
|
@@ -29220,15 +29234,15 @@ const lP = (e, t = {}) => (n) => {
|
|
|
29220
29234
|
}))
|
|
29221
29235
|
]);
|
|
29222
29236
|
}
|
|
29223
|
-
}, fP = (e, t, n, r) => {
|
|
29224
|
-
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
29225
29237
|
}, dP = (e, t, n, r) => {
|
|
29226
|
-
n.
|
|
29238
|
+
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
29227
29239
|
}, hP = (e, t, n, r) => {
|
|
29240
|
+
n.not = {};
|
|
29228
29241
|
}, pP = (e, t, n, r) => {
|
|
29242
|
+
}, mP = (e, t, n, r) => {
|
|
29229
29243
|
const i = e._zod.def, o = Mm(i.entries);
|
|
29230
29244
|
o.every((a) => typeof a == "number") && (n.type = "number"), o.every((a) => typeof a == "string") && (n.type = "string"), n.enum = o;
|
|
29231
|
-
},
|
|
29245
|
+
}, gP = (e, t, n, r) => {
|
|
29232
29246
|
const i = e._zod.def, o = [];
|
|
29233
29247
|
for (const a of i.values)
|
|
29234
29248
|
if (a === void 0) {
|
|
@@ -29245,16 +29259,16 @@ const lP = (e, t = {}) => (n) => {
|
|
|
29245
29259
|
n.type = a === null ? "null" : typeof a, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [a] : n.const = a;
|
|
29246
29260
|
} else
|
|
29247
29261
|
o.every((a) => typeof a == "number") && (n.type = "number"), o.every((a) => typeof a == "string") && (n.type = "string"), o.every((a) => typeof a == "boolean") && (n.type = "boolean"), o.every((a) => a === null) && (n.type = "null"), n.enum = o;
|
|
29248
|
-
},
|
|
29262
|
+
}, bP = (e, t, n, r) => {
|
|
29249
29263
|
if (t.unrepresentable === "throw")
|
|
29250
29264
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
29251
|
-
},
|
|
29265
|
+
}, vP = (e, t, n, r) => {
|
|
29252
29266
|
if (t.unrepresentable === "throw")
|
|
29253
29267
|
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
29254
|
-
},
|
|
29268
|
+
}, yP = (e, t, n, r) => {
|
|
29255
29269
|
const i = n, o = e._zod.def, { minimum: a, maximum: s } = e._zod.bag;
|
|
29256
29270
|
typeof a == "number" && (i.minItems = a), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = jt(o.element, t, { ...r, path: [...r.path, "items"] });
|
|
29257
|
-
},
|
|
29271
|
+
}, wP = (e, t, n, r) => {
|
|
29258
29272
|
const i = n, o = e._zod.def;
|
|
29259
29273
|
i.type = "object", i.properties = {};
|
|
29260
29274
|
const a = o.shape;
|
|
@@ -29271,13 +29285,13 @@ const lP = (e, t = {}) => (n) => {
|
|
|
29271
29285
|
...r,
|
|
29272
29286
|
path: [...r.path, "additionalProperties"]
|
|
29273
29287
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
29274
|
-
},
|
|
29288
|
+
}, xP = (e, t, n, r) => {
|
|
29275
29289
|
const i = e._zod.def, o = i.inclusive === !1, a = i.options.map((s, l) => jt(s, t, {
|
|
29276
29290
|
...r,
|
|
29277
29291
|
path: [...r.path, o ? "oneOf" : "anyOf", l]
|
|
29278
29292
|
}));
|
|
29279
29293
|
o ? n.oneOf = a : n.anyOf = a;
|
|
29280
|
-
},
|
|
29294
|
+
}, _P = (e, t, n, r) => {
|
|
29281
29295
|
const i = e._zod.def, o = jt(i.left, t, {
|
|
29282
29296
|
...r,
|
|
29283
29297
|
path: [...r.path, "allOf", 0]
|
|
@@ -29289,25 +29303,25 @@ const lP = (e, t = {}) => (n) => {
|
|
|
29289
29303
|
...s(a) ? a.allOf : [a]
|
|
29290
29304
|
];
|
|
29291
29305
|
n.allOf = l;
|
|
29292
|
-
},
|
|
29306
|
+
}, kP = (e, t, n, r) => {
|
|
29293
29307
|
const i = e._zod.def, o = jt(i.innerType, t, r), a = t.seen.get(e);
|
|
29294
29308
|
t.target === "openapi-3.0" ? (a.ref = i.innerType, n.nullable = !0) : n.anyOf = [o, { type: "null" }];
|
|
29295
|
-
},
|
|
29309
|
+
}, SP = (e, t, n, r) => {
|
|
29296
29310
|
const i = e._zod.def;
|
|
29297
29311
|
jt(i.innerType, t, r);
|
|
29298
29312
|
const o = t.seen.get(e);
|
|
29299
29313
|
o.ref = i.innerType;
|
|
29300
|
-
},
|
|
29314
|
+
}, CP = (e, t, n, r) => {
|
|
29301
29315
|
const i = e._zod.def;
|
|
29302
29316
|
jt(i.innerType, t, r);
|
|
29303
29317
|
const o = t.seen.get(e);
|
|
29304
29318
|
o.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
29305
|
-
},
|
|
29319
|
+
}, EP = (e, t, n, r) => {
|
|
29306
29320
|
const i = e._zod.def;
|
|
29307
29321
|
jt(i.innerType, t, r);
|
|
29308
29322
|
const o = t.seen.get(e);
|
|
29309
29323
|
o.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
29310
|
-
},
|
|
29324
|
+
}, AP = (e, t, n, r) => {
|
|
29311
29325
|
const i = e._zod.def;
|
|
29312
29326
|
jt(i.innerType, t, r);
|
|
29313
29327
|
const o = t.seen.get(e);
|
|
@@ -29319,12 +29333,12 @@ const lP = (e, t = {}) => (n) => {
|
|
|
29319
29333
|
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
29320
29334
|
}
|
|
29321
29335
|
n.default = a;
|
|
29322
|
-
},
|
|
29336
|
+
}, IP = (e, t, n, r) => {
|
|
29323
29337
|
const i = e._zod.def, o = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
|
|
29324
29338
|
jt(o, t, r);
|
|
29325
29339
|
const a = t.seen.get(e);
|
|
29326
29340
|
a.ref = o;
|
|
29327
|
-
},
|
|
29341
|
+
}, RP = (e, t, n, r) => {
|
|
29328
29342
|
const i = e._zod.def;
|
|
29329
29343
|
jt(i.innerType, t, r);
|
|
29330
29344
|
const o = t.seen.get(e);
|
|
@@ -29334,38 +29348,38 @@ const lP = (e, t = {}) => (n) => {
|
|
|
29334
29348
|
jt(i.innerType, t, r);
|
|
29335
29349
|
const o = t.seen.get(e);
|
|
29336
29350
|
o.ref = i.innerType;
|
|
29337
|
-
},
|
|
29338
|
-
MT.init(e, t), xt.init(e, t);
|
|
29339
|
-
});
|
|
29340
|
-
function TP(e) {
|
|
29341
|
-
return /* @__PURE__ */ j2(RP, e);
|
|
29342
|
-
}
|
|
29343
|
-
const PP = /* @__PURE__ */ oe("ZodISODate", (e, t) => {
|
|
29351
|
+
}, TP = /* @__PURE__ */ oe("ZodISODateTime", (e, t) => {
|
|
29344
29352
|
zT.init(e, t), xt.init(e, t);
|
|
29345
29353
|
});
|
|
29346
|
-
function
|
|
29347
|
-
return /* @__PURE__ */ U2(
|
|
29354
|
+
function PP(e) {
|
|
29355
|
+
return /* @__PURE__ */ U2(TP, e);
|
|
29348
29356
|
}
|
|
29349
|
-
const
|
|
29357
|
+
const OP = /* @__PURE__ */ oe("ZodISODate", (e, t) => {
|
|
29350
29358
|
FT.init(e, t), xt.init(e, t);
|
|
29351
29359
|
});
|
|
29352
|
-
function
|
|
29353
|
-
return /* @__PURE__ */ B2(
|
|
29360
|
+
function NP(e) {
|
|
29361
|
+
return /* @__PURE__ */ B2(OP, e);
|
|
29354
29362
|
}
|
|
29355
|
-
const
|
|
29363
|
+
const LP = /* @__PURE__ */ oe("ZodISOTime", (e, t) => {
|
|
29356
29364
|
$T.init(e, t), xt.init(e, t);
|
|
29357
29365
|
});
|
|
29358
|
-
function
|
|
29359
|
-
return /* @__PURE__ */ V2(
|
|
29366
|
+
function DP(e) {
|
|
29367
|
+
return /* @__PURE__ */ V2(LP, e);
|
|
29368
|
+
}
|
|
29369
|
+
const MP = /* @__PURE__ */ oe("ZodISODuration", (e, t) => {
|
|
29370
|
+
jT.init(e, t), xt.init(e, t);
|
|
29371
|
+
});
|
|
29372
|
+
function zP(e) {
|
|
29373
|
+
return /* @__PURE__ */ W2(MP, e);
|
|
29360
29374
|
}
|
|
29361
|
-
const
|
|
29375
|
+
const FP = (e, t) => {
|
|
29362
29376
|
Um.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
29363
29377
|
format: {
|
|
29364
|
-
value: (n) =>
|
|
29378
|
+
value: (n) => NR(e, n)
|
|
29365
29379
|
// enumerable: false,
|
|
29366
29380
|
},
|
|
29367
29381
|
flatten: {
|
|
29368
|
-
value: (n) =>
|
|
29382
|
+
value: (n) => OR(e, n)
|
|
29369
29383
|
// enumerable: false,
|
|
29370
29384
|
},
|
|
29371
29385
|
addIssue: {
|
|
@@ -29387,21 +29401,21 @@ const zP = (e, t) => {
|
|
|
29387
29401
|
// enumerable: false,
|
|
29388
29402
|
}
|
|
29389
29403
|
});
|
|
29390
|
-
}, yn = oe("ZodError",
|
|
29404
|
+
}, yn = oe("ZodError", FP, {
|
|
29391
29405
|
Parent: Error
|
|
29392
|
-
}),
|
|
29406
|
+
}), $P = /* @__PURE__ */ ql(yn), jP = /* @__PURE__ */ Hl(yn), UP = /* @__PURE__ */ la(yn), BP = /* @__PURE__ */ ca(yn), VP = /* @__PURE__ */ MR(yn), WP = /* @__PURE__ */ zR(yn), qP = /* @__PURE__ */ FR(yn), HP = /* @__PURE__ */ $R(yn), ZP = /* @__PURE__ */ jR(yn), GP = /* @__PURE__ */ UR(yn), YP = /* @__PURE__ */ BR(yn), XP = /* @__PURE__ */ VR(yn), Et = /* @__PURE__ */ oe("ZodType", (e, t) => (Ct.init(e, t), Object.assign(e["~standard"], {
|
|
29393
29407
|
jsonSchema: {
|
|
29394
29408
|
input: Zo(e, "input"),
|
|
29395
29409
|
output: Zo(e, "output")
|
|
29396
29410
|
}
|
|
29397
|
-
}), e.toJSONSchema =
|
|
29411
|
+
}), e.toJSONSchema = cP(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(ir(t, {
|
|
29398
29412
|
checks: [
|
|
29399
29413
|
...t.checks ?? [],
|
|
29400
29414
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
29401
29415
|
]
|
|
29402
29416
|
}), {
|
|
29403
29417
|
parent: !0
|
|
29404
|
-
}), e.with = e.check, e.clone = (n, r) => or(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) =>
|
|
29418
|
+
}), e.with = e.check, e.clone = (n, r) => or(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => $P(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => UP(e, n, r), e.parseAsync = async (n, r) => jP(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => BP(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => VP(e, n, r), e.decode = (n, r) => WP(e, n, r), e.encodeAsync = async (n, r) => qP(e, n, r), e.decodeAsync = async (n, r) => HP(e, n, r), e.safeEncode = (n, r) => ZP(e, n, r), e.safeDecode = (n, r) => GP(e, n, r), e.safeEncodeAsync = async (n, r) => YP(e, n, r), e.safeDecodeAsync = async (n, r) => XP(e, n, r), e.refine = (n, r) => e.check(WO(n, r)), e.superRefine = (n) => e.check(qO(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ Kr(n)), e.optional = () => td(e), e.exactOptional = () => PO(e), e.nullable = () => nd(e), e.nullish = () => td(nd(e)), e.nonoptional = (n) => zO(e, n), e.array = () => xO(e), e.or = (n) => rg([e, n]), e.and = (n) => CO(e, n), e.transform = (n) => rd(e, RO(n)), e.default = (n) => LO(e, n), e.prefault = (n) => MO(e, n), e.catch = (n) => $O(e, n), e.pipe = (n) => rd(e, n), e.readonly = () => BO(e), e.describe = (n) => {
|
|
29405
29419
|
const r = e.clone();
|
|
29406
29420
|
return wi.add(r, { description: n }), r;
|
|
29407
29421
|
}, Object.defineProperty(e, "description", {
|
|
@@ -29415,81 +29429,81 @@ const zP = (e, t) => {
|
|
|
29415
29429
|
const r = e.clone();
|
|
29416
29430
|
return wi.add(r, n[0]), r;
|
|
29417
29431
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), ng = /* @__PURE__ */ oe("_ZodString", (e, t) => {
|
|
29418
|
-
Zl.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (r, i, o) =>
|
|
29432
|
+
Zl.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (r, i, o) => fP(e, r, i);
|
|
29419
29433
|
const n = e._zod.bag;
|
|
29420
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */
|
|
29421
|
-
}),
|
|
29422
|
-
Zl.init(e, t), ng.init(e, t), e.email = (n) => e.check(/* @__PURE__ */
|
|
29434
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ G2(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ K2(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ J2(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ Q2(...r)), e.min = (...r) => e.check(/* @__PURE__ */ Ho(...r)), e.max = (...r) => e.check(/* @__PURE__ */ Xm(...r)), e.length = (...r) => e.check(/* @__PURE__ */ Km(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ Ho(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ Y2(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ X2(r)), e.trim = () => e.check(/* @__PURE__ */ tP()), e.normalize = (...r) => e.check(/* @__PURE__ */ eP(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ nP()), e.toUpperCase = () => e.check(/* @__PURE__ */ rP()), e.slugify = () => e.check(/* @__PURE__ */ iP());
|
|
29435
|
+
}), KP = /* @__PURE__ */ oe("ZodString", (e, t) => {
|
|
29436
|
+
Zl.init(e, t), ng.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ w2(JP, n)), e.url = (n) => e.check(/* @__PURE__ */ C2(QP, n)), e.jwt = (n) => e.check(/* @__PURE__ */ j2(pO, n)), e.emoji = (n) => e.check(/* @__PURE__ */ E2(eO, n)), e.guid = (n) => e.check(/* @__PURE__ */ Jf(Qf, n)), e.uuid = (n) => e.check(/* @__PURE__ */ x2(_o, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ _2(_o, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ k2(_o, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ S2(_o, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ A2(tO, n)), e.guid = (n) => e.check(/* @__PURE__ */ Jf(Qf, n)), e.cuid = (n) => e.check(/* @__PURE__ */ I2(nO, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ R2(rO, n)), e.ulid = (n) => e.check(/* @__PURE__ */ T2(iO, n)), e.base64 = (n) => e.check(/* @__PURE__ */ z2(fO, n)), e.base64url = (n) => e.check(/* @__PURE__ */ F2(dO, n)), e.xid = (n) => e.check(/* @__PURE__ */ P2(oO, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ O2(aO, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ N2(sO, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ L2(lO, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ D2(cO, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ M2(uO, n)), e.e164 = (n) => e.check(/* @__PURE__ */ $2(hO, n)), e.datetime = (n) => e.check(PP(n)), e.date = (n) => e.check(NP(n)), e.time = (n) => e.check(DP(n)), e.duration = (n) => e.check(zP(n));
|
|
29423
29437
|
});
|
|
29424
29438
|
function ht(e) {
|
|
29425
|
-
return /* @__PURE__ */
|
|
29439
|
+
return /* @__PURE__ */ y2(KP, e);
|
|
29426
29440
|
}
|
|
29427
29441
|
const xt = /* @__PURE__ */ oe("ZodStringFormat", (e, t) => {
|
|
29428
29442
|
wt.init(e, t), ng.init(e, t);
|
|
29429
|
-
}),
|
|
29430
|
-
|
|
29443
|
+
}), JP = /* @__PURE__ */ oe("ZodEmail", (e, t) => {
|
|
29444
|
+
IT.init(e, t), xt.init(e, t);
|
|
29431
29445
|
}), Qf = /* @__PURE__ */ oe("ZodGUID", (e, t) => {
|
|
29432
|
-
CT.init(e, t), xt.init(e, t);
|
|
29433
|
-
}), _o = /* @__PURE__ */ oe("ZodUUID", (e, t) => {
|
|
29434
29446
|
ET.init(e, t), xt.init(e, t);
|
|
29435
|
-
}),
|
|
29436
|
-
|
|
29437
|
-
}), QP = /* @__PURE__ */ oe("
|
|
29447
|
+
}), _o = /* @__PURE__ */ oe("ZodUUID", (e, t) => {
|
|
29448
|
+
AT.init(e, t), xt.init(e, t);
|
|
29449
|
+
}), QP = /* @__PURE__ */ oe("ZodURL", (e, t) => {
|
|
29438
29450
|
RT.init(e, t), xt.init(e, t);
|
|
29439
|
-
}), eO = /* @__PURE__ */ oe("
|
|
29451
|
+
}), eO = /* @__PURE__ */ oe("ZodEmoji", (e, t) => {
|
|
29440
29452
|
TT.init(e, t), xt.init(e, t);
|
|
29441
|
-
}), tO = /* @__PURE__ */ oe("
|
|
29453
|
+
}), tO = /* @__PURE__ */ oe("ZodNanoID", (e, t) => {
|
|
29442
29454
|
PT.init(e, t), xt.init(e, t);
|
|
29443
|
-
}), nO = /* @__PURE__ */ oe("
|
|
29455
|
+
}), nO = /* @__PURE__ */ oe("ZodCUID", (e, t) => {
|
|
29444
29456
|
OT.init(e, t), xt.init(e, t);
|
|
29445
|
-
}), rO = /* @__PURE__ */ oe("
|
|
29457
|
+
}), rO = /* @__PURE__ */ oe("ZodCUID2", (e, t) => {
|
|
29446
29458
|
NT.init(e, t), xt.init(e, t);
|
|
29447
|
-
}), iO = /* @__PURE__ */ oe("
|
|
29459
|
+
}), iO = /* @__PURE__ */ oe("ZodULID", (e, t) => {
|
|
29448
29460
|
LT.init(e, t), xt.init(e, t);
|
|
29449
|
-
}), oO = /* @__PURE__ */ oe("
|
|
29461
|
+
}), oO = /* @__PURE__ */ oe("ZodXID", (e, t) => {
|
|
29450
29462
|
DT.init(e, t), xt.init(e, t);
|
|
29451
|
-
}), aO = /* @__PURE__ */ oe("
|
|
29452
|
-
|
|
29453
|
-
}), sO = /* @__PURE__ */ oe("
|
|
29463
|
+
}), aO = /* @__PURE__ */ oe("ZodKSUID", (e, t) => {
|
|
29464
|
+
MT.init(e, t), xt.init(e, t);
|
|
29465
|
+
}), sO = /* @__PURE__ */ oe("ZodIPv4", (e, t) => {
|
|
29454
29466
|
UT.init(e, t), xt.init(e, t);
|
|
29455
|
-
}), lO = /* @__PURE__ */ oe("
|
|
29467
|
+
}), lO = /* @__PURE__ */ oe("ZodIPv6", (e, t) => {
|
|
29456
29468
|
BT.init(e, t), xt.init(e, t);
|
|
29457
|
-
}), cO = /* @__PURE__ */ oe("
|
|
29469
|
+
}), cO = /* @__PURE__ */ oe("ZodCIDRv4", (e, t) => {
|
|
29458
29470
|
VT.init(e, t), xt.init(e, t);
|
|
29459
|
-
}), uO = /* @__PURE__ */ oe("
|
|
29471
|
+
}), uO = /* @__PURE__ */ oe("ZodCIDRv6", (e, t) => {
|
|
29460
29472
|
WT.init(e, t), xt.init(e, t);
|
|
29461
|
-
}), fO = /* @__PURE__ */ oe("
|
|
29462
|
-
|
|
29463
|
-
}), dO = /* @__PURE__ */ oe("
|
|
29473
|
+
}), fO = /* @__PURE__ */ oe("ZodBase64", (e, t) => {
|
|
29474
|
+
qT.init(e, t), xt.init(e, t);
|
|
29475
|
+
}), dO = /* @__PURE__ */ oe("ZodBase64URL", (e, t) => {
|
|
29464
29476
|
ZT.init(e, t), xt.init(e, t);
|
|
29465
|
-
}), hO = /* @__PURE__ */ oe("
|
|
29466
|
-
|
|
29467
|
-
}), pO = /* @__PURE__ */ oe("
|
|
29468
|
-
XT.init(e, t),
|
|
29477
|
+
}), hO = /* @__PURE__ */ oe("ZodE164", (e, t) => {
|
|
29478
|
+
GT.init(e, t), xt.init(e, t);
|
|
29479
|
+
}), pO = /* @__PURE__ */ oe("ZodJWT", (e, t) => {
|
|
29480
|
+
XT.init(e, t), xt.init(e, t);
|
|
29481
|
+
}), mO = /* @__PURE__ */ oe("ZodNull", (e, t) => {
|
|
29482
|
+
KT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => dP(e, n, r);
|
|
29469
29483
|
});
|
|
29470
|
-
function
|
|
29471
|
-
return /* @__PURE__ */
|
|
29484
|
+
function gO(e) {
|
|
29485
|
+
return /* @__PURE__ */ q2(mO, e);
|
|
29472
29486
|
}
|
|
29473
|
-
const
|
|
29474
|
-
|
|
29487
|
+
const bO = /* @__PURE__ */ oe("ZodUnknown", (e, t) => {
|
|
29488
|
+
JT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => pP();
|
|
29475
29489
|
});
|
|
29476
29490
|
function ed() {
|
|
29477
|
-
return /* @__PURE__ */
|
|
29491
|
+
return /* @__PURE__ */ H2(bO);
|
|
29478
29492
|
}
|
|
29479
|
-
const
|
|
29480
|
-
|
|
29493
|
+
const vO = /* @__PURE__ */ oe("ZodNever", (e, t) => {
|
|
29494
|
+
QT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => hP(e, n, r);
|
|
29481
29495
|
});
|
|
29482
|
-
function
|
|
29483
|
-
return /* @__PURE__ */
|
|
29496
|
+
function yO(e) {
|
|
29497
|
+
return /* @__PURE__ */ Z2(vO, e);
|
|
29484
29498
|
}
|
|
29485
|
-
const
|
|
29486
|
-
|
|
29499
|
+
const wO = /* @__PURE__ */ oe("ZodArray", (e, t) => {
|
|
29500
|
+
e2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => yP(e, n, r, i), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ Ho(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ Ho(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ Xm(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ Km(n, r)), e.unwrap = () => e.element;
|
|
29487
29501
|
});
|
|
29488
|
-
function
|
|
29489
|
-
return /* @__PURE__ */
|
|
29502
|
+
function xO(e, t) {
|
|
29503
|
+
return /* @__PURE__ */ oP(wO, e, t);
|
|
29490
29504
|
}
|
|
29491
|
-
const
|
|
29492
|
-
|
|
29505
|
+
const _O = /* @__PURE__ */ oe("ZodObject", (e, t) => {
|
|
29506
|
+
n2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => wP(e, n, r, i), ut(e, "shape", () => t.shape), e.keyof = () => EO(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: ed() }), e.loose = () => e.clone({ ...e._zod.def, catchall: ed() }), e.strict = () => e.clone({ ...e._zod.def, catchall: yO() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => AR(e, n), e.safeExtend = (n) => IR(e, n), e.merge = (n) => RR(e, n), e.pick = (n) => CR(e, n), e.omit = (n) => ER(e, n), e.partial = (...n) => TR(ig, e, n[0]), e.required = (...n) => PR(og, e, n[0]);
|
|
29493
29507
|
});
|
|
29494
29508
|
function _t(e, t) {
|
|
29495
29509
|
const n = {
|
|
@@ -29497,30 +29511,30 @@ function _t(e, t) {
|
|
|
29497
29511
|
shape: e ?? {},
|
|
29498
29512
|
...Te(t)
|
|
29499
29513
|
};
|
|
29500
|
-
return new
|
|
29514
|
+
return new _O(n);
|
|
29501
29515
|
}
|
|
29502
|
-
const
|
|
29503
|
-
|
|
29516
|
+
const kO = /* @__PURE__ */ oe("ZodUnion", (e, t) => {
|
|
29517
|
+
r2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => xP(e, n, r, i), e.options = t.options;
|
|
29504
29518
|
});
|
|
29505
29519
|
function rg(e, t) {
|
|
29506
|
-
return new
|
|
29520
|
+
return new kO({
|
|
29507
29521
|
type: "union",
|
|
29508
29522
|
options: e,
|
|
29509
29523
|
...Te(t)
|
|
29510
29524
|
});
|
|
29511
29525
|
}
|
|
29512
|
-
const
|
|
29513
|
-
|
|
29526
|
+
const SO = /* @__PURE__ */ oe("ZodIntersection", (e, t) => {
|
|
29527
|
+
i2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => _P(e, n, r, i);
|
|
29514
29528
|
});
|
|
29515
|
-
function
|
|
29516
|
-
return new
|
|
29529
|
+
function CO(e, t) {
|
|
29530
|
+
return new SO({
|
|
29517
29531
|
type: "intersection",
|
|
29518
29532
|
left: e,
|
|
29519
29533
|
right: t
|
|
29520
29534
|
});
|
|
29521
29535
|
}
|
|
29522
29536
|
const Us = /* @__PURE__ */ oe("ZodEnum", (e, t) => {
|
|
29523
|
-
|
|
29537
|
+
o2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (r, i, o) => mP(e, r, i), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
29524
29538
|
const n = new Set(Object.keys(t.entries));
|
|
29525
29539
|
e.extract = (r, i) => {
|
|
29526
29540
|
const o = {};
|
|
@@ -29550,7 +29564,7 @@ const Us = /* @__PURE__ */ oe("ZodEnum", (e, t) => {
|
|
|
29550
29564
|
});
|
|
29551
29565
|
};
|
|
29552
29566
|
});
|
|
29553
|
-
function
|
|
29567
|
+
function EO(e, t) {
|
|
29554
29568
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
29555
29569
|
return new Us({
|
|
29556
29570
|
type: "enum",
|
|
@@ -29558,8 +29572,8 @@ function CO(e, t) {
|
|
|
29558
29572
|
...Te(t)
|
|
29559
29573
|
});
|
|
29560
29574
|
}
|
|
29561
|
-
const
|
|
29562
|
-
|
|
29575
|
+
const AO = /* @__PURE__ */ oe("ZodLiteral", (e, t) => {
|
|
29576
|
+
a2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => gP(e, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", {
|
|
29563
29577
|
get() {
|
|
29564
29578
|
if (t.values.length > 1)
|
|
29565
29579
|
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
@@ -29568,14 +29582,14 @@ const EO = /* @__PURE__ */ oe("ZodLiteral", (e, t) => {
|
|
|
29568
29582
|
});
|
|
29569
29583
|
});
|
|
29570
29584
|
function Mn(e, t) {
|
|
29571
|
-
return new
|
|
29585
|
+
return new AO({
|
|
29572
29586
|
type: "literal",
|
|
29573
29587
|
values: Array.isArray(e) ? e : [e],
|
|
29574
29588
|
...Te(t)
|
|
29575
29589
|
});
|
|
29576
29590
|
}
|
|
29577
|
-
const
|
|
29578
|
-
|
|
29591
|
+
const IO = /* @__PURE__ */ oe("ZodTransform", (e, t) => {
|
|
29592
|
+
s2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => vP(e, n), e._zod.parse = (n, r) => {
|
|
29579
29593
|
if (r.direction === "backward")
|
|
29580
29594
|
throw new Lm(e.constructor.name);
|
|
29581
29595
|
n.addIssue = (o) => {
|
|
@@ -29590,8 +29604,8 @@ const AO = /* @__PURE__ */ oe("ZodTransform", (e, t) => {
|
|
|
29590
29604
|
return i instanceof Promise ? i.then((o) => (n.value = o, n)) : (n.value = i, n);
|
|
29591
29605
|
};
|
|
29592
29606
|
});
|
|
29593
|
-
function
|
|
29594
|
-
return new
|
|
29607
|
+
function RO(e) {
|
|
29608
|
+
return new IO({
|
|
29595
29609
|
type: "transform",
|
|
29596
29610
|
transform: e
|
|
29597
29611
|
});
|
|
@@ -29605,29 +29619,29 @@ function td(e) {
|
|
|
29605
29619
|
innerType: e
|
|
29606
29620
|
});
|
|
29607
29621
|
}
|
|
29608
|
-
const
|
|
29609
|
-
|
|
29622
|
+
const TO = /* @__PURE__ */ oe("ZodExactOptional", (e, t) => {
|
|
29623
|
+
l2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => tg(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29610
29624
|
});
|
|
29611
|
-
function
|
|
29612
|
-
return new
|
|
29625
|
+
function PO(e) {
|
|
29626
|
+
return new TO({
|
|
29613
29627
|
type: "optional",
|
|
29614
29628
|
innerType: e
|
|
29615
29629
|
});
|
|
29616
29630
|
}
|
|
29617
|
-
const
|
|
29618
|
-
|
|
29631
|
+
const OO = /* @__PURE__ */ oe("ZodNullable", (e, t) => {
|
|
29632
|
+
c2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => kP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29619
29633
|
});
|
|
29620
29634
|
function nd(e) {
|
|
29621
|
-
return new
|
|
29635
|
+
return new OO({
|
|
29622
29636
|
type: "nullable",
|
|
29623
29637
|
innerType: e
|
|
29624
29638
|
});
|
|
29625
29639
|
}
|
|
29626
|
-
const
|
|
29627
|
-
|
|
29640
|
+
const NO = /* @__PURE__ */ oe("ZodDefault", (e, t) => {
|
|
29641
|
+
u2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => CP(e, n, r, i), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
29628
29642
|
});
|
|
29629
|
-
function
|
|
29630
|
-
return new
|
|
29643
|
+
function LO(e, t) {
|
|
29644
|
+
return new NO({
|
|
29631
29645
|
type: "default",
|
|
29632
29646
|
innerType: e,
|
|
29633
29647
|
get defaultValue() {
|
|
@@ -29635,11 +29649,11 @@ function NO(e, t) {
|
|
|
29635
29649
|
}
|
|
29636
29650
|
});
|
|
29637
29651
|
}
|
|
29638
|
-
const
|
|
29639
|
-
|
|
29652
|
+
const DO = /* @__PURE__ */ oe("ZodPrefault", (e, t) => {
|
|
29653
|
+
f2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => EP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29640
29654
|
});
|
|
29641
|
-
function
|
|
29642
|
-
return new
|
|
29655
|
+
function MO(e, t) {
|
|
29656
|
+
return new DO({
|
|
29643
29657
|
type: "prefault",
|
|
29644
29658
|
innerType: e,
|
|
29645
29659
|
get defaultValue() {
|
|
@@ -29648,100 +29662,97 @@ function DO(e, t) {
|
|
|
29648
29662
|
});
|
|
29649
29663
|
}
|
|
29650
29664
|
const og = /* @__PURE__ */ oe("ZodNonOptional", (e, t) => {
|
|
29651
|
-
|
|
29665
|
+
d2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => SP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29652
29666
|
});
|
|
29653
|
-
function
|
|
29667
|
+
function zO(e, t) {
|
|
29654
29668
|
return new og({
|
|
29655
29669
|
type: "nonoptional",
|
|
29656
29670
|
innerType: e,
|
|
29657
29671
|
...Te(t)
|
|
29658
29672
|
});
|
|
29659
29673
|
}
|
|
29660
|
-
const
|
|
29661
|
-
|
|
29674
|
+
const FO = /* @__PURE__ */ oe("ZodCatch", (e, t) => {
|
|
29675
|
+
h2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => AP(e, n, r, i), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
29662
29676
|
});
|
|
29663
|
-
function
|
|
29664
|
-
return new
|
|
29677
|
+
function $O(e, t) {
|
|
29678
|
+
return new FO({
|
|
29665
29679
|
type: "catch",
|
|
29666
29680
|
innerType: e,
|
|
29667
29681
|
catchValue: typeof t == "function" ? t : () => t
|
|
29668
29682
|
});
|
|
29669
29683
|
}
|
|
29670
|
-
const
|
|
29671
|
-
|
|
29684
|
+
const jO = /* @__PURE__ */ oe("ZodPipe", (e, t) => {
|
|
29685
|
+
p2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => IP(e, n, r, i), e.in = t.in, e.out = t.out;
|
|
29672
29686
|
});
|
|
29673
29687
|
function rd(e, t) {
|
|
29674
|
-
return new
|
|
29688
|
+
return new jO({
|
|
29675
29689
|
type: "pipe",
|
|
29676
29690
|
in: e,
|
|
29677
29691
|
out: t
|
|
29678
29692
|
// ...util.normalizeParams(params),
|
|
29679
29693
|
});
|
|
29680
29694
|
}
|
|
29681
|
-
const
|
|
29682
|
-
|
|
29695
|
+
const UO = /* @__PURE__ */ oe("ZodReadonly", (e, t) => {
|
|
29696
|
+
m2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => RP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29683
29697
|
});
|
|
29684
|
-
function
|
|
29685
|
-
return new
|
|
29698
|
+
function BO(e) {
|
|
29699
|
+
return new UO({
|
|
29686
29700
|
type: "readonly",
|
|
29687
29701
|
innerType: e
|
|
29688
29702
|
});
|
|
29689
29703
|
}
|
|
29690
|
-
const
|
|
29691
|
-
|
|
29704
|
+
const VO = /* @__PURE__ */ oe("ZodCustom", (e, t) => {
|
|
29705
|
+
g2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => bP(e, n);
|
|
29692
29706
|
});
|
|
29693
|
-
function
|
|
29694
|
-
return /* @__PURE__ */
|
|
29707
|
+
function WO(e, t = {}) {
|
|
29708
|
+
return /* @__PURE__ */ aP(VO, e, t);
|
|
29695
29709
|
}
|
|
29696
|
-
function
|
|
29697
|
-
return /* @__PURE__ */
|
|
29710
|
+
function qO(e) {
|
|
29711
|
+
return /* @__PURE__ */ sP(e);
|
|
29698
29712
|
}
|
|
29699
|
-
const
|
|
29713
|
+
const HO = _t({
|
|
29700
29714
|
type: Mn("utterance"),
|
|
29701
29715
|
content: ht(),
|
|
29702
29716
|
role: ht()
|
|
29703
|
-
}),
|
|
29717
|
+
}), ZO = _t({
|
|
29704
29718
|
type: Mn("agent_cognition"),
|
|
29705
29719
|
content: ht()
|
|
29706
|
-
}),
|
|
29720
|
+
}), GO = _t({
|
|
29707
29721
|
type: Mn("chat_closed_expired"),
|
|
29708
29722
|
content: ht()
|
|
29709
|
-
}),
|
|
29723
|
+
}), YO = _t({
|
|
29710
29724
|
type: Mn("agent_captured_url"),
|
|
29711
29725
|
content: ht()
|
|
29712
|
-
}),
|
|
29726
|
+
}), XO = _t({
|
|
29713
29727
|
type: Mn("agent_topic"),
|
|
29714
29728
|
content: ht()
|
|
29715
|
-
}),
|
|
29729
|
+
}), KO = _t({
|
|
29716
29730
|
type: Mn("agent_summary"),
|
|
29717
29731
|
content: ht()
|
|
29718
|
-
}),
|
|
29732
|
+
}), JO = _t({
|
|
29719
29733
|
type: Mn("chat_rating"),
|
|
29720
29734
|
content: ht()
|
|
29721
|
-
}),
|
|
29735
|
+
}), QO = _t({
|
|
29722
29736
|
type: Mn("breadcrumb"),
|
|
29723
29737
|
content: ht()
|
|
29724
|
-
}), QO = _t({
|
|
29725
|
-
type: Mn("chat_escalated"),
|
|
29726
|
-
content: mO()
|
|
29727
29738
|
}), eN = _t({
|
|
29739
|
+
type: Mn("chat_escalated"),
|
|
29740
|
+
content: gO()
|
|
29741
|
+
}), tN = _t({
|
|
29728
29742
|
type: Mn("error"),
|
|
29729
29743
|
code: ht()
|
|
29730
|
-
}), tN = _t({
|
|
29731
|
-
message_id: ht().nullable(),
|
|
29732
|
-
created_at: ht(),
|
|
29733
|
-
data: qO
|
|
29734
29744
|
}), nN = _t({
|
|
29745
|
+
message_id: ht().nullable(),
|
|
29735
29746
|
created_at: ht(),
|
|
29736
|
-
data:
|
|
29747
|
+
data: HO
|
|
29737
29748
|
}), rN = _t({
|
|
29738
29749
|
created_at: ht(),
|
|
29739
|
-
data:
|
|
29750
|
+
data: tN
|
|
29740
29751
|
}), iN = _t({
|
|
29741
|
-
message_id: ht().nullable(),
|
|
29742
29752
|
created_at: ht(),
|
|
29743
29753
|
data: ZO
|
|
29744
29754
|
}), oN = _t({
|
|
29755
|
+
message_id: ht().nullable(),
|
|
29745
29756
|
created_at: ht(),
|
|
29746
29757
|
data: GO
|
|
29747
29758
|
}), aN = _t({
|
|
@@ -29757,20 +29768,23 @@ const qO = _t({
|
|
|
29757
29768
|
created_at: ht(),
|
|
29758
29769
|
data: JO
|
|
29759
29770
|
}), uN = _t({
|
|
29760
|
-
message_id: ht().nullable(),
|
|
29761
29771
|
created_at: ht(),
|
|
29762
29772
|
data: QO
|
|
29763
|
-
}), fN =
|
|
29764
|
-
|
|
29773
|
+
}), fN = _t({
|
|
29774
|
+
message_id: ht().nullable(),
|
|
29775
|
+
created_at: ht(),
|
|
29776
|
+
data: eN
|
|
29777
|
+
}), dN = rg([
|
|
29765
29778
|
nN,
|
|
29766
29779
|
rN,
|
|
29767
|
-
|
|
29780
|
+
iN,
|
|
29768
29781
|
aN,
|
|
29769
29782
|
sN,
|
|
29770
|
-
iN,
|
|
29771
29783
|
lN,
|
|
29784
|
+
oN,
|
|
29772
29785
|
cN,
|
|
29773
|
-
uN
|
|
29786
|
+
uN,
|
|
29787
|
+
fN
|
|
29774
29788
|
]);
|
|
29775
29789
|
_t({
|
|
29776
29790
|
message_id: ht(),
|
|
@@ -29782,8 +29796,8 @@ _t({
|
|
|
29782
29796
|
content: ht()
|
|
29783
29797
|
})
|
|
29784
29798
|
});
|
|
29785
|
-
const
|
|
29786
|
-
function
|
|
29799
|
+
const hN = 500, pN = 3e4, mN = 6e4;
|
|
29800
|
+
function gN({
|
|
29787
29801
|
chatSettings: e,
|
|
29788
29802
|
chatId: t,
|
|
29789
29803
|
messages: n,
|
|
@@ -29798,7 +29812,7 @@ function mN({
|
|
|
29798
29812
|
onRatingRequest: p,
|
|
29799
29813
|
onBreadcrumb: v,
|
|
29800
29814
|
fetchHistory: m,
|
|
29801
|
-
backupPollingInterval: y =
|
|
29815
|
+
backupPollingInterval: y = mN
|
|
29802
29816
|
}) {
|
|
29803
29817
|
const [C, N] = je(!1), R = rt(/* @__PURE__ */ new Set());
|
|
29804
29818
|
et(() => {
|
|
@@ -29844,7 +29858,7 @@ function mN({
|
|
|
29844
29858
|
}, []), Xe = dt(
|
|
29845
29859
|
async (Ue) => {
|
|
29846
29860
|
ue();
|
|
29847
|
-
const bt = se ? { authMode: "lambda", authToken: se } : void 0, Be = await
|
|
29861
|
+
const bt = se ? { authMode: "lambda", authToken: se } : void 0, Be = await wR(
|
|
29848
29862
|
`/default/chat/${Ue}`,
|
|
29849
29863
|
bt
|
|
29850
29864
|
);
|
|
@@ -29854,7 +29868,7 @@ function mN({
|
|
|
29854
29868
|
console.warn("Unexpected event type:", Ie.type);
|
|
29855
29869
|
return;
|
|
29856
29870
|
}
|
|
29857
|
-
const zt =
|
|
29871
|
+
const zt = dN.safeParse(Ie.event);
|
|
29858
29872
|
if (!zt.success) {
|
|
29859
29873
|
console.error("Invalid conversation response:", zt.error);
|
|
29860
29874
|
return;
|
|
@@ -29958,8 +29972,8 @@ function mN({
|
|
|
29958
29972
|
const Ue = F.current;
|
|
29959
29973
|
if (!Ue) return;
|
|
29960
29974
|
const bt = Math.min(
|
|
29961
|
-
|
|
29962
|
-
|
|
29975
|
+
hN * Math.pow(2, Z.current),
|
|
29976
|
+
pN
|
|
29963
29977
|
);
|
|
29964
29978
|
Z.current += 1, K.current = setTimeout(async () => {
|
|
29965
29979
|
K.current = null, te.current = !0;
|
|
@@ -30003,7 +30017,7 @@ function mN({
|
|
|
30003
30017
|
ot();
|
|
30004
30018
|
}, [ot]), { connect: Ne, disconnect: ot, clearProcessedIds: at };
|
|
30005
30019
|
}
|
|
30006
|
-
function
|
|
30020
|
+
function bN({
|
|
30007
30021
|
appId: e,
|
|
30008
30022
|
userId: t,
|
|
30009
30023
|
userName: n,
|
|
@@ -30059,7 +30073,7 @@ function gN({
|
|
|
30059
30073
|
}, [u]);
|
|
30060
30074
|
et(() => {
|
|
30061
30075
|
}, [te]);
|
|
30062
|
-
const H = dt((W) => K.current ? K.current.getChatHistory(W) : Promise.resolve([]), []), { connect: T, disconnect: A, clearProcessedIds: z } =
|
|
30076
|
+
const H = dt((W) => K.current ? K.current.getChatHistory(W) : Promise.resolve([]), []), { connect: T, disconnect: A, clearProcessedIds: z } = gN({
|
|
30063
30077
|
chatSettings: s,
|
|
30064
30078
|
chatId: h?.id ?? null,
|
|
30065
30079
|
messages: l,
|
|
@@ -30113,7 +30127,7 @@ function gN({
|
|
|
30113
30127
|
userName: n,
|
|
30114
30128
|
userData: r,
|
|
30115
30129
|
externalMetadata: {
|
|
30116
|
-
searchParams:
|
|
30130
|
+
searchParams: cE()
|
|
30117
30131
|
}
|
|
30118
30132
|
})).chat_id, p({ id: X }), await T(X));
|
|
30119
30133
|
const _ = await a.replyToConversation({
|
|
@@ -30170,12 +30184,12 @@ function gN({
|
|
|
30170
30184
|
onRateChat: L
|
|
30171
30185
|
};
|
|
30172
30186
|
}
|
|
30173
|
-
class
|
|
30187
|
+
class vN {
|
|
30174
30188
|
httpClient;
|
|
30175
30189
|
userId = null;
|
|
30176
30190
|
conversationId = null;
|
|
30177
30191
|
constructor(t) {
|
|
30178
|
-
this.userId = t.userId || null, this.httpClient = new
|
|
30192
|
+
this.userId = t.userId || null, this.httpClient = new lE(t);
|
|
30179
30193
|
}
|
|
30180
30194
|
getUserData() {
|
|
30181
30195
|
return {
|
|
@@ -30251,7 +30265,7 @@ class bN {
|
|
|
30251
30265
|
}
|
|
30252
30266
|
}
|
|
30253
30267
|
const ko = /* @__PURE__ */ new Map(), So = /* @__PURE__ */ new Map();
|
|
30254
|
-
function
|
|
30268
|
+
function yN(e, t, n) {
|
|
30255
30269
|
const r = n?.dedupe !== !1, [i, o] = je(
|
|
30256
30270
|
() => ko.get(e)
|
|
30257
30271
|
), { publishApiError: a, publishNetworkError: s } = ji(), [l, u] = je(void 0), [h, p] = je(!1), v = rt(!0);
|
|
@@ -30279,7 +30293,7 @@ function vN(e, t, n) {
|
|
|
30279
30293
|
}, [e, r, t, a, s]);
|
|
30280
30294
|
return { data: i, error: l, isLoading: h, fetch: m };
|
|
30281
30295
|
}
|
|
30282
|
-
function
|
|
30296
|
+
function wN(e) {
|
|
30283
30297
|
const { appId: t, initialUserId: n } = e, { getSavedChatData: r } = Tl({ appId: t }), [i, o] = je(!1), [a, s] = je(""), [l, u] = je(""), [h, p] = je(null);
|
|
30284
30298
|
return et(() => {
|
|
30285
30299
|
const v = r();
|
|
@@ -30291,7 +30305,7 @@ function yN(e) {
|
|
|
30291
30305
|
externalId: h
|
|
30292
30306
|
};
|
|
30293
30307
|
}
|
|
30294
|
-
function
|
|
30308
|
+
function xN({
|
|
30295
30309
|
apiUrl: e,
|
|
30296
30310
|
appId: t,
|
|
30297
30311
|
initialUserId: n,
|
|
@@ -30303,14 +30317,14 @@ function wN({
|
|
|
30303
30317
|
externalId: a,
|
|
30304
30318
|
deviceId: s,
|
|
30305
30319
|
isReady: l
|
|
30306
|
-
} =
|
|
30320
|
+
} = wN({ appId: t, initialUserId: n }), { isChatExpired: u, clearChatData: h, getSavedChatData: p } = Tl({
|
|
30307
30321
|
appId: t
|
|
30308
30322
|
}), { current: v } = rt(e || zw()), [m] = je(
|
|
30309
|
-
new
|
|
30323
|
+
new vN({
|
|
30310
30324
|
baseURL: v,
|
|
30311
30325
|
appId: t
|
|
30312
30326
|
})
|
|
30313
|
-
), [y, C] = je(null), [N, R] = je(null), [U, F] = je([]), [Z, K] = je(!1), ie =
|
|
30327
|
+
), [y, C] = je(null), [N, R] = je(null), [U, F] = je([]), [Z, K] = je(!1), ie = yN(`sdk-boot-${t}`, () => m.boot()).fetch;
|
|
30314
30328
|
return et(() => {
|
|
30315
30329
|
if (u())
|
|
30316
30330
|
h();
|
|
@@ -30364,7 +30378,7 @@ function wN({
|
|
|
30364
30378
|
isReady: Z
|
|
30365
30379
|
};
|
|
30366
30380
|
}
|
|
30367
|
-
function
|
|
30381
|
+
function _N(e) {
|
|
30368
30382
|
const [t, n] = je(!1), [r, i] = je(
|
|
30369
30383
|
null
|
|
30370
30384
|
), o = e ?? t, a = typeof window > "u";
|
|
@@ -30386,7 +30400,7 @@ function xN(e) {
|
|
|
30386
30400
|
portalContainer: r
|
|
30387
30401
|
};
|
|
30388
30402
|
}
|
|
30389
|
-
function
|
|
30403
|
+
function kN({
|
|
30390
30404
|
environment: e,
|
|
30391
30405
|
apiUrl: t,
|
|
30392
30406
|
appId: n,
|
|
@@ -30398,7 +30412,7 @@ function _N({
|
|
|
30398
30412
|
initialOpen: l = !1,
|
|
30399
30413
|
proactiveMessageHideDelay: u = 5e3
|
|
30400
30414
|
}) {
|
|
30401
|
-
const { isMobile: h, portalContainer: p } =
|
|
30415
|
+
const { isMobile: h, portalContainer: p } = _N(s), {
|
|
30402
30416
|
userId: v,
|
|
30403
30417
|
externalId: m,
|
|
30404
30418
|
deviceId: y,
|
|
@@ -30407,13 +30421,13 @@ function _N({
|
|
|
30407
30421
|
currentChat: R,
|
|
30408
30422
|
messages: U,
|
|
30409
30423
|
isReady: F
|
|
30410
|
-
} =
|
|
30424
|
+
} = xN({
|
|
30411
30425
|
apiUrl: t,
|
|
30412
30426
|
appId: n,
|
|
30413
30427
|
initialUserId: r,
|
|
30414
30428
|
userName: i,
|
|
30415
30429
|
userData: o
|
|
30416
|
-
}), Z =
|
|
30430
|
+
}), Z = sE({ chatProps: a, chatSettings: N }), [K, B] = je(l ?? h), ie = Ws(K, 400), [te, H] = je(
|
|
30417
30431
|
a?.messages ?? []
|
|
30418
30432
|
), [T, A] = je(R), [z, q] = je(!1), I = dt(() => {
|
|
30419
30433
|
q(!0);
|
|
@@ -30421,7 +30435,7 @@ function _N({
|
|
|
30421
30435
|
text: "",
|
|
30422
30436
|
isVisible: !1,
|
|
30423
30437
|
autoHideDelay: u
|
|
30424
|
-
}), { onSendMessage: J, onCleanMessages: ae, onRateChat: X } =
|
|
30438
|
+
}), { onSendMessage: J, onCleanMessages: ae, onRateChat: X } = bN({
|
|
30425
30439
|
appId: n,
|
|
30426
30440
|
userId: v,
|
|
30427
30441
|
userName: i,
|
|
@@ -30495,7 +30509,7 @@ function _N({
|
|
|
30495
30509
|
onRateChat: X
|
|
30496
30510
|
};
|
|
30497
30511
|
}
|
|
30498
|
-
function
|
|
30512
|
+
function SN() {
|
|
30499
30513
|
const [e, t] = je(!1), [n, r] = je(null), i = rt(null), o = rt(null), a = dt((l = "...") => {
|
|
30500
30514
|
const u = () => {
|
|
30501
30515
|
r(l), t(!0), o.current = null, i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
@@ -30513,16 +30527,16 @@ function kN() {
|
|
|
30513
30527
|
hideCognition: s
|
|
30514
30528
|
};
|
|
30515
30529
|
}
|
|
30516
|
-
function
|
|
30530
|
+
function CN({
|
|
30517
30531
|
children: e
|
|
30518
30532
|
}) {
|
|
30519
|
-
const t =
|
|
30533
|
+
const t = SN();
|
|
30520
30534
|
return /* @__PURE__ */ D(Mp.Provider, { value: t, children: e });
|
|
30521
30535
|
}
|
|
30522
|
-
const
|
|
30536
|
+
const EN = ({
|
|
30523
30537
|
children: e
|
|
30524
30538
|
}) => {
|
|
30525
|
-
const [t, n] = je(null), [r, i] = je(!1), o =
|
|
30539
|
+
const [t, n] = je(null), [r, i] = je(!1), o = NC(n), u = {
|
|
30526
30540
|
error: t,
|
|
30527
30541
|
hideSdk: r,
|
|
30528
30542
|
publishApiError: o,
|
|
@@ -30531,8 +30545,8 @@ const CN = ({
|
|
|
30531
30545
|
clearError: () => n(null)
|
|
30532
30546
|
};
|
|
30533
30547
|
return /* @__PURE__ */ D(jp.Provider, { value: u, children: e });
|
|
30534
|
-
},
|
|
30535
|
-
function
|
|
30548
|
+
}, AN = 100;
|
|
30549
|
+
function IN({
|
|
30536
30550
|
appId: e,
|
|
30537
30551
|
userId: t,
|
|
30538
30552
|
userName: n,
|
|
@@ -30567,7 +30581,7 @@ function AN({
|
|
|
30567
30581
|
isChatClosed: I,
|
|
30568
30582
|
onStartNewChat: L,
|
|
30569
30583
|
onRateChat: W
|
|
30570
|
-
} =
|
|
30584
|
+
} = kN({
|
|
30571
30585
|
environment: N,
|
|
30572
30586
|
apiUrl: R,
|
|
30573
30587
|
appId: e,
|
|
@@ -30619,7 +30633,7 @@ function AN({
|
|
|
30619
30633
|
// 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
|
|
30620
30634
|
"--chat-mobile-viewport-height": "100dvh",
|
|
30621
30635
|
height: Z ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
|
|
30622
|
-
maxHeight: Z ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${
|
|
30636
|
+
maxHeight: Z ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${AN}px)`,
|
|
30623
30637
|
border: "none",
|
|
30624
30638
|
zIndex: 2147483e3,
|
|
30625
30639
|
position: "fixed",
|
|
@@ -30640,7 +30654,7 @@ function AN({
|
|
|
30640
30654
|
} : {}
|
|
30641
30655
|
},
|
|
30642
30656
|
children: F ? /* @__PURE__ */ D(
|
|
30643
|
-
|
|
30657
|
+
iE,
|
|
30644
30658
|
{
|
|
30645
30659
|
...B,
|
|
30646
30660
|
isOpen: K,
|
|
@@ -30700,7 +30714,7 @@ function AN({
|
|
|
30700
30714
|
right: 17
|
|
30701
30715
|
},
|
|
30702
30716
|
children: /* @__PURE__ */ D(_d, { ...B?.theme ?? {}, children: !p && z && !u && /* @__PURE__ */ D(
|
|
30703
|
-
|
|
30717
|
+
aE,
|
|
30704
30718
|
{
|
|
30705
30719
|
message: z.text,
|
|
30706
30720
|
isVisible: z.isVisible,
|
|
@@ -30716,22 +30730,22 @@ function AN({
|
|
|
30716
30730
|
]
|
|
30717
30731
|
}
|
|
30718
30732
|
);
|
|
30719
|
-
return /* @__PURE__ */ D(kn, { children: v ? J() : H ? /* @__PURE__ */ D(
|
|
30733
|
+
return /* @__PURE__ */ D(kn, { children: v ? J() : H ? /* @__PURE__ */ D(oE, { container: H, children: J() }) : null });
|
|
30720
30734
|
}
|
|
30721
|
-
function
|
|
30722
|
-
return /* @__PURE__ */ D(
|
|
30735
|
+
function RN(e) {
|
|
30736
|
+
return /* @__PURE__ */ D(EN, { children: /* @__PURE__ */ D(CN, { children: /* @__PURE__ */ D(IN, { ...e }) }) });
|
|
30723
30737
|
}
|
|
30724
|
-
function
|
|
30738
|
+
function DN(e, t) {
|
|
30725
30739
|
return ((r, i, o) => {
|
|
30726
30740
|
const a = Wg.createRoot(i);
|
|
30727
30741
|
return a.render(/* @__PURE__ */ D(r, { ...o })), a.unmount;
|
|
30728
|
-
})(
|
|
30742
|
+
})(RN, e, t);
|
|
30729
30743
|
}
|
|
30730
30744
|
export {
|
|
30731
|
-
|
|
30732
|
-
|
|
30745
|
+
RN as C,
|
|
30746
|
+
iE as a,
|
|
30733
30747
|
Ch as g,
|
|
30734
|
-
|
|
30735
|
-
|
|
30748
|
+
DN as r,
|
|
30749
|
+
gN as u
|
|
30736
30750
|
};
|
|
30737
|
-
//# sourceMappingURL=index-
|
|
30751
|
+
//# sourceMappingURL=index-CxaQgxtY.js.map
|