bstp-agent-widget 0.2.34 → 0.2.35
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/agent-widget.js +893 -890
- package/dist/agent-widget.js.map +1 -1
- package/package.json +1 -1
package/dist/agent-widget.js
CHANGED
|
@@ -23927,14 +23927,90 @@ function YO({ opened: e, onClose: t, zIndex: n, withinPortal: r, messages: i, co
|
|
|
23927
23927
|
}) });
|
|
23928
23928
|
}
|
|
23929
23929
|
//#endregion
|
|
23930
|
+
//#region src/hooks/usePointerInteraction.ts
|
|
23931
|
+
function XO() {
|
|
23932
|
+
let e = v(null);
|
|
23933
|
+
return {
|
|
23934
|
+
startInteraction: u((t) => {
|
|
23935
|
+
let { cursor: n, onMove: r, onEnd: i } = t;
|
|
23936
|
+
document.body.style.cursor = n, document.body.style.userSelect = "none";
|
|
23937
|
+
let a = () => {
|
|
23938
|
+
document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", a), i?.(), e.current = null;
|
|
23939
|
+
};
|
|
23940
|
+
document.addEventListener("pointermove", r), document.addEventListener("pointerup", a), e.current = a;
|
|
23941
|
+
}, []),
|
|
23942
|
+
cleanup: u(() => {
|
|
23943
|
+
e.current?.();
|
|
23944
|
+
}, [])
|
|
23945
|
+
};
|
|
23946
|
+
}
|
|
23947
|
+
//#endregion
|
|
23948
|
+
//#region src/hooks/useDraggable.ts
|
|
23949
|
+
var ZO = 4;
|
|
23950
|
+
function QO(e = {}) {
|
|
23951
|
+
let { skipSelector: t = "button, [role=\"button\"], a, input, textarea", onDragChange: n } = e, [r, i] = y({
|
|
23952
|
+
x: 0,
|
|
23953
|
+
y: 0
|
|
23954
|
+
}), [a, o] = y(!1), s = v({
|
|
23955
|
+
startX: 0,
|
|
23956
|
+
startY: 0,
|
|
23957
|
+
startOffset: {
|
|
23958
|
+
x: 0,
|
|
23959
|
+
y: 0
|
|
23960
|
+
}
|
|
23961
|
+
}), { startInteraction: c } = XO();
|
|
23962
|
+
return {
|
|
23963
|
+
offset: r,
|
|
23964
|
+
isDragging: a,
|
|
23965
|
+
handlePointerDown: u((e) => {
|
|
23966
|
+
let a = e.target;
|
|
23967
|
+
if (t && a?.closest(t)) return;
|
|
23968
|
+
let l = e.clientX, u = e.clientY, d = { ...r }, f = 0, p = !1;
|
|
23969
|
+
s.current = {
|
|
23970
|
+
startX: l,
|
|
23971
|
+
startY: u,
|
|
23972
|
+
startOffset: d
|
|
23973
|
+
}, c({
|
|
23974
|
+
cursor: "grab",
|
|
23975
|
+
onMove: (e) => {
|
|
23976
|
+
let t = e.clientX - l, r = e.clientY - u;
|
|
23977
|
+
if (f = Math.abs(t) + Math.abs(r), !p && f >= ZO && (p = !0, o(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none"), p) {
|
|
23978
|
+
let e = {
|
|
23979
|
+
x: d.x + t,
|
|
23980
|
+
y: d.y + r
|
|
23981
|
+
};
|
|
23982
|
+
i(e), n?.(e);
|
|
23983
|
+
}
|
|
23984
|
+
},
|
|
23985
|
+
onEnd: () => {
|
|
23986
|
+
p && o(!1);
|
|
23987
|
+
}
|
|
23988
|
+
});
|
|
23989
|
+
}, [
|
|
23990
|
+
r,
|
|
23991
|
+
t,
|
|
23992
|
+
n,
|
|
23993
|
+
c
|
|
23994
|
+
]),
|
|
23995
|
+
style: {
|
|
23996
|
+
transform: `translate(${r.x}px, ${r.y}px)`,
|
|
23997
|
+
cursor: a ? "grabbing" : "grab",
|
|
23998
|
+
touchAction: "none"
|
|
23999
|
+
}
|
|
24000
|
+
};
|
|
24001
|
+
}
|
|
24002
|
+
//#endregion
|
|
23930
24003
|
//#region src/components/AgentChat/AgentChatFab.tsx
|
|
23931
|
-
function
|
|
24004
|
+
function $O({ onClick: e, zIndex: t, position: n }) {
|
|
24005
|
+
let { handlePointerDown: r, style: i } = QO({ skipSelector: "" });
|
|
23932
24006
|
return /* @__PURE__ */ T("div", {
|
|
24007
|
+
onPointerDown: r,
|
|
23933
24008
|
style: {
|
|
23934
24009
|
position: "fixed",
|
|
23935
24010
|
bottom: `${n.bottom}px`,
|
|
23936
24011
|
right: `${n.right}px`,
|
|
23937
|
-
zIndex: t
|
|
24012
|
+
zIndex: t,
|
|
24013
|
+
...i
|
|
23938
24014
|
},
|
|
23939
24015
|
children: /* @__PURE__ */ T(_v, {
|
|
23940
24016
|
label: "Open agent widget",
|
|
@@ -23968,49 +24044,49 @@ function XO({ onClick: e, zIndex: t, position: n }) {
|
|
|
23968
24044
|
}
|
|
23969
24045
|
//#endregion
|
|
23970
24046
|
//#region src/context/AgentChatRuntimeContext.tsx
|
|
23971
|
-
var
|
|
24047
|
+
var ek = o(null);
|
|
23972
24048
|
//#endregion
|
|
23973
24049
|
//#region src/hooks/useAgentChatRuntime.ts
|
|
23974
|
-
function
|
|
23975
|
-
return d(
|
|
24050
|
+
function tk() {
|
|
24051
|
+
return d(ek);
|
|
23976
24052
|
}
|
|
23977
24053
|
//#endregion
|
|
23978
24054
|
//#region src/context/AgentChatConfigContext.tsx
|
|
23979
|
-
var
|
|
24055
|
+
var nk = o(null);
|
|
23980
24056
|
//#endregion
|
|
23981
24057
|
//#region src/hooks/useAgentChatConfig.ts
|
|
23982
|
-
function
|
|
23983
|
-
return d(
|
|
24058
|
+
function rk() {
|
|
24059
|
+
return d(nk);
|
|
23984
24060
|
}
|
|
23985
24061
|
//#endregion
|
|
23986
24062
|
//#region src/types/models/agent-chat-runtime.ts
|
|
23987
|
-
function
|
|
24063
|
+
function ik(e) {
|
|
23988
24064
|
return "customerId" in e ? e.customerId : e.getCustomerId();
|
|
23989
24065
|
}
|
|
23990
|
-
async function
|
|
24066
|
+
async function ak(e) {
|
|
23991
24067
|
return "customerToken" in e ? e.customerToken : e.getCustomerToken();
|
|
23992
24068
|
}
|
|
23993
|
-
function
|
|
24069
|
+
function ok(e) {
|
|
23994
24070
|
return "language" in e ? e.language ?? null : "getLanguage" in e && e.getLanguage ? e.getLanguage() : null;
|
|
23995
24071
|
}
|
|
23996
24072
|
//#endregion
|
|
23997
24073
|
//#region src/types/models/agent-chat-config.ts
|
|
23998
|
-
function
|
|
24074
|
+
function sk(e) {
|
|
23999
24075
|
return "assistantId" in e ? e.assistantId : e.getAssistantId();
|
|
24000
24076
|
}
|
|
24001
|
-
function
|
|
24077
|
+
function ck(e) {
|
|
24002
24078
|
return "assistants" in e ? e.assistants ?? [] : "getAssistants" in e ? e.getAssistants?.() ?? [] : [];
|
|
24003
24079
|
}
|
|
24004
|
-
function
|
|
24080
|
+
function lk(e) {
|
|
24005
24081
|
return "genaiInit" in e ? e.genaiInit ?? null : "getGenaiInit" in e ? e.getGenaiInit?.() ?? null : null;
|
|
24006
24082
|
}
|
|
24007
|
-
function
|
|
24008
|
-
let t =
|
|
24009
|
-
return t ?
|
|
24083
|
+
function uk(e) {
|
|
24084
|
+
let t = sk(e);
|
|
24085
|
+
return t ? ck(e).find((e) => e.assistantId === t)?.initialMessage ?? null : null;
|
|
24010
24086
|
}
|
|
24011
24087
|
//#endregion
|
|
24012
24088
|
//#region src/api/genai.mapper.ts
|
|
24013
|
-
function
|
|
24089
|
+
function dk(e) {
|
|
24014
24090
|
if (!e || typeof e != "object") return null;
|
|
24015
24091
|
let t = e, n = t.message ?? (Array.isArray(t.messages) ? t.messages[0] : null);
|
|
24016
24092
|
if (!n || typeof n != "object") return null;
|
|
@@ -24023,7 +24099,7 @@ function ck(e) {
|
|
|
24023
24099
|
}
|
|
24024
24100
|
//#endregion
|
|
24025
24101
|
//#region node_modules/zustand/esm/vanilla.mjs
|
|
24026
|
-
var
|
|
24102
|
+
var fk = (e) => {
|
|
24027
24103
|
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
24028
24104
|
let i = typeof e == "function" ? e(t) : e;
|
|
24029
24105
|
if (!Object.is(i, t)) {
|
|
@@ -24037,20 +24113,20 @@ var lk = (e) => {
|
|
|
24037
24113
|
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
24038
24114
|
}, o = t = e(r, i, a);
|
|
24039
24115
|
return a;
|
|
24040
|
-
},
|
|
24041
|
-
function
|
|
24116
|
+
}, pk = ((e) => e ? fk(e) : fk), mk = (e) => e;
|
|
24117
|
+
function hk(e, n = mk) {
|
|
24042
24118
|
let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
|
|
24043
24119
|
return t.useDebugValue(r), r;
|
|
24044
24120
|
}
|
|
24045
|
-
var
|
|
24046
|
-
let t =
|
|
24121
|
+
var gk = (e) => {
|
|
24122
|
+
let t = pk(e), n = (e) => hk(t, e);
|
|
24047
24123
|
return Object.assign(n, t), n;
|
|
24048
|
-
},
|
|
24124
|
+
}, _k = ((e) => e ? gk(e) : gk), vk = { runtimeInfo: {
|
|
24049
24125
|
customerId: null,
|
|
24050
24126
|
hasCustomerToken: !1,
|
|
24051
24127
|
hasGenaiToken: !1
|
|
24052
|
-
} },
|
|
24053
|
-
...
|
|
24128
|
+
} }, yk = _k((e) => ({
|
|
24129
|
+
...vk,
|
|
24054
24130
|
setRuntimeInfo: (t) => e({ runtimeInfo: t }),
|
|
24055
24131
|
updateCustomerId: (t) => e((e) => ({ runtimeInfo: {
|
|
24056
24132
|
...e.runtimeInfo,
|
|
@@ -24064,17 +24140,17 @@ var pk = (e) => {
|
|
|
24064
24140
|
...e.runtimeInfo,
|
|
24065
24141
|
hasGenaiToken: t
|
|
24066
24142
|
} })),
|
|
24067
|
-
resetRuntimeInfo: () => e({ runtimeInfo:
|
|
24068
|
-
})),
|
|
24069
|
-
function
|
|
24070
|
-
return typeof sessionStorage < "u" ? sessionStorage.getItem(
|
|
24143
|
+
resetRuntimeInfo: () => e({ runtimeInfo: vk.runtimeInfo })
|
|
24144
|
+
})), bk = "genai_access_token";
|
|
24145
|
+
function xk() {
|
|
24146
|
+
return typeof sessionStorage < "u" ? sessionStorage.getItem(bk) : null;
|
|
24071
24147
|
}
|
|
24072
|
-
function
|
|
24073
|
-
typeof sessionStorage < "u" && sessionStorage.setItem(
|
|
24148
|
+
function Sk(e) {
|
|
24149
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(bk, e);
|
|
24074
24150
|
}
|
|
24075
24151
|
//#endregion
|
|
24076
24152
|
//#region node_modules/moo/moo.js
|
|
24077
|
-
var
|
|
24153
|
+
var Ck = /* @__PURE__ */ P(((e, t) => {
|
|
24078
24154
|
(function(e, n) {
|
|
24079
24155
|
typeof define == "function" && define.amd ? define([], n) : typeof t == "object" && t.exports ? t.exports = n() : e.moo = n();
|
|
24080
24156
|
})(e, function() {
|
|
@@ -24391,12 +24467,12 @@ var bk = /* @__PURE__ */ P(((e, t) => {
|
|
|
24391
24467
|
keywords: x
|
|
24392
24468
|
};
|
|
24393
24469
|
});
|
|
24394
|
-
})),
|
|
24470
|
+
})), wk = /* @__PURE__ */ P(((e) => {
|
|
24395
24471
|
var t = e && e.__importDefault || function(e) {
|
|
24396
24472
|
return e && e.__esModule ? e : { default: e };
|
|
24397
24473
|
};
|
|
24398
24474
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.lexer = e.states = void 0;
|
|
24399
|
-
var n = t(
|
|
24475
|
+
var n = t(Ck());
|
|
24400
24476
|
e.states = {
|
|
24401
24477
|
body: {
|
|
24402
24478
|
doubleapos: {
|
|
@@ -24465,9 +24541,9 @@ var bk = /* @__PURE__ */ P(((e, t) => {
|
|
|
24465
24541
|
}
|
|
24466
24542
|
}
|
|
24467
24543
|
}, e.lexer = n.default.states(e.states);
|
|
24468
|
-
})),
|
|
24544
|
+
})), Tk = (/* @__PURE__ */ P(((e) => {
|
|
24469
24545
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ParseError = void 0, e.parse = l;
|
|
24470
|
-
var t =
|
|
24546
|
+
var t = wk(), n = (e) => ({
|
|
24471
24547
|
offset: e.offset,
|
|
24472
24548
|
line: e.line,
|
|
24473
24549
|
col: e.col,
|
|
@@ -24625,22 +24701,22 @@ var bk = /* @__PURE__ */ P(((e, t) => {
|
|
|
24625
24701
|
function l(e, t = {}) {
|
|
24626
24702
|
return new c(e, t).parse();
|
|
24627
24703
|
}
|
|
24628
|
-
})))(),
|
|
24704
|
+
})))(), Ek = class extends Error {
|
|
24629
24705
|
constructor(e, t, n) {
|
|
24630
24706
|
super(e), this.token = t, this.type = n || "error";
|
|
24631
24707
|
}
|
|
24632
|
-
},
|
|
24633
|
-
function
|
|
24708
|
+
}, Dk = (e) => e < 4 ? "short" : e === 4 ? "long" : "narrow", Ok = (e) => e % 2 == 0 ? "2-digit" : "numeric";
|
|
24709
|
+
function kk(e, t) {
|
|
24634
24710
|
switch (e.char) {
|
|
24635
|
-
case "y": return { year:
|
|
24711
|
+
case "y": return { year: Ok(e.width) };
|
|
24636
24712
|
case "r": return {
|
|
24637
24713
|
calendar: "gregory",
|
|
24638
24714
|
year: "numeric"
|
|
24639
24715
|
};
|
|
24640
|
-
default: return t(`${e.desc} is not supported; falling back to year:numeric`,
|
|
24716
|
+
default: return t(`${e.desc} is not supported; falling back to year:numeric`, Ek.WARNING), { year: "numeric" };
|
|
24641
24717
|
}
|
|
24642
24718
|
}
|
|
24643
|
-
function
|
|
24719
|
+
function Ak(e, t) {
|
|
24644
24720
|
switch (e.width) {
|
|
24645
24721
|
case 1: return "numeric";
|
|
24646
24722
|
case 2: return "2-digit";
|
|
@@ -24652,17 +24728,17 @@ function Dk(e, t) {
|
|
|
24652
24728
|
return;
|
|
24653
24729
|
}
|
|
24654
24730
|
}
|
|
24655
|
-
function
|
|
24731
|
+
function jk(e, t) {
|
|
24656
24732
|
let { char: n, desc: r, width: i } = e;
|
|
24657
|
-
if (n === "d") return
|
|
24733
|
+
if (n === "d") return Ok(i);
|
|
24658
24734
|
t(`${r} is not supported`);
|
|
24659
24735
|
}
|
|
24660
|
-
function
|
|
24736
|
+
function Mk(e, t) {
|
|
24661
24737
|
let { char: n, desc: r, width: i } = e;
|
|
24662
|
-
return (n === "c" || n === "e") && i < 3 && t(`Numeric value is not supported for ${r}; falling back to weekday:short`,
|
|
24738
|
+
return (n === "c" || n === "e") && i < 3 && t(`Numeric value is not supported for ${r}; falling back to weekday:short`, Ek.WARNING), Dk(i);
|
|
24663
24739
|
}
|
|
24664
|
-
function
|
|
24665
|
-
let t =
|
|
24740
|
+
function Nk(e) {
|
|
24741
|
+
let t = Ok(e.width), n;
|
|
24666
24742
|
switch (e.char) {
|
|
24667
24743
|
case "h":
|
|
24668
24744
|
n = "h12";
|
|
@@ -24682,7 +24758,7 @@ function Ak(e) {
|
|
|
24682
24758
|
hourCycle: n
|
|
24683
24759
|
} : { hour: t };
|
|
24684
24760
|
}
|
|
24685
|
-
function
|
|
24761
|
+
function Pk(e, t) {
|
|
24686
24762
|
let { char: n, desc: r, width: i } = e;
|
|
24687
24763
|
switch (n) {
|
|
24688
24764
|
case "v":
|
|
@@ -24697,41 +24773,41 @@ function jk(e, t) {
|
|
|
24697
24773
|
}
|
|
24698
24774
|
return "short";
|
|
24699
24775
|
}
|
|
24700
|
-
function
|
|
24776
|
+
function Fk(e, t) {
|
|
24701
24777
|
switch (e.field) {
|
|
24702
|
-
case "era": return { era:
|
|
24703
|
-
case "year": return
|
|
24704
|
-
case "month": return { month:
|
|
24705
|
-
case "day": return { day:
|
|
24706
|
-
case "weekday": return { weekday:
|
|
24778
|
+
case "era": return { era: Dk(e.width) };
|
|
24779
|
+
case "year": return kk(e, t);
|
|
24780
|
+
case "month": return { month: Ak(e, t) };
|
|
24781
|
+
case "day": return { day: jk(e, t) };
|
|
24782
|
+
case "weekday": return { weekday: Mk(e, t) };
|
|
24707
24783
|
case "period": return;
|
|
24708
|
-
case "hour": return
|
|
24709
|
-
case "min": return { minute:
|
|
24710
|
-
case "sec": return { second:
|
|
24711
|
-
case "tz": return { timeZoneName:
|
|
24784
|
+
case "hour": return Nk(e);
|
|
24785
|
+
case "min": return { minute: Ok(e.width) };
|
|
24786
|
+
case "sec": return { second: Ok(e.width) };
|
|
24787
|
+
case "tz": return { timeZoneName: Pk(e, t) };
|
|
24712
24788
|
case "quarter":
|
|
24713
24789
|
case "week":
|
|
24714
24790
|
case "sec-frac":
|
|
24715
24791
|
case "ms": t(`${e.desc} is not supported`);
|
|
24716
24792
|
}
|
|
24717
24793
|
}
|
|
24718
|
-
function
|
|
24794
|
+
function Ik(e, t, n = (e) => {
|
|
24719
24795
|
throw e;
|
|
24720
24796
|
}) {
|
|
24721
24797
|
let r = { timeZone: t }, i = [];
|
|
24722
24798
|
for (let t of e) {
|
|
24723
24799
|
let { error: e, field: a, str: o } = t;
|
|
24724
24800
|
if (e) {
|
|
24725
|
-
let r = new
|
|
24801
|
+
let r = new Ek(e.message, t);
|
|
24726
24802
|
r.stack = e.stack, n(r);
|
|
24727
24803
|
}
|
|
24728
|
-
o && n(new
|
|
24729
|
-
let s =
|
|
24804
|
+
o && n(new Ek(`Ignoring string part: ${o}`, t, Ek.WARNING)), a && (i.indexOf(a) === -1 ? i.push(a) : n(new Ek(`Duplicate ${a} token`, t)));
|
|
24805
|
+
let s = Fk(t, (e, r) => n(new Ek(e, t, r)));
|
|
24730
24806
|
s && Object.assign(r, s);
|
|
24731
24807
|
}
|
|
24732
24808
|
return r;
|
|
24733
24809
|
}
|
|
24734
|
-
var
|
|
24810
|
+
var Lk = {
|
|
24735
24811
|
G: {
|
|
24736
24812
|
field: "era",
|
|
24737
24813
|
desc: "Era"
|
|
@@ -24892,11 +24968,11 @@ var Pk = {
|
|
|
24892
24968
|
field: "tz",
|
|
24893
24969
|
desc: "Time Zone: ISO8601"
|
|
24894
24970
|
}
|
|
24895
|
-
},
|
|
24896
|
-
function
|
|
24971
|
+
}, Rk = (e) => e >= "A" && e <= "Z" || e >= "a" && e <= "z";
|
|
24972
|
+
function zk(e, t) {
|
|
24897
24973
|
let n = e[t], r = 1;
|
|
24898
24974
|
for (; e[++t] === n;) ++r;
|
|
24899
|
-
let i =
|
|
24975
|
+
let i = Lk[n];
|
|
24900
24976
|
if (!i) {
|
|
24901
24977
|
let e = `The letter ${n} is not a valid field identifier`;
|
|
24902
24978
|
return {
|
|
@@ -24912,7 +24988,7 @@ function Ik(e, t) {
|
|
|
24912
24988
|
width: r
|
|
24913
24989
|
};
|
|
24914
24990
|
}
|
|
24915
|
-
function
|
|
24991
|
+
function Bk(e, t) {
|
|
24916
24992
|
let n = e[++t], r = 2;
|
|
24917
24993
|
if (n === "'") return {
|
|
24918
24994
|
char: "'",
|
|
@@ -24940,15 +25016,15 @@ function Lk(e, t) {
|
|
|
24940
25016
|
n += i;
|
|
24941
25017
|
}
|
|
24942
25018
|
}
|
|
24943
|
-
function
|
|
25019
|
+
function Vk(e, t) {
|
|
24944
25020
|
let n = e[t];
|
|
24945
25021
|
if (!n) return null;
|
|
24946
|
-
if (
|
|
24947
|
-
if (n === "'") return
|
|
25022
|
+
if (Rk(n)) return zk(e, t);
|
|
25023
|
+
if (n === "'") return Bk(e, t);
|
|
24948
25024
|
let r = n, i = 1;
|
|
24949
25025
|
for (;;) {
|
|
24950
25026
|
let a = e[++t];
|
|
24951
|
-
if (!a ||
|
|
25027
|
+
if (!a || Rk(a) || a === "'") return {
|
|
24952
25028
|
char: n,
|
|
24953
25029
|
str: r,
|
|
24954
25030
|
width: i
|
|
@@ -24956,15 +25032,15 @@ function Rk(e, t) {
|
|
|
24956
25032
|
r += a, i += 1;
|
|
24957
25033
|
}
|
|
24958
25034
|
}
|
|
24959
|
-
function
|
|
25035
|
+
function Hk(e) {
|
|
24960
25036
|
let t = [], n = 0;
|
|
24961
25037
|
for (;;) {
|
|
24962
|
-
let r =
|
|
25038
|
+
let r = Vk(e, n);
|
|
24963
25039
|
if (!r) return t;
|
|
24964
25040
|
t.push(r), n += r.width;
|
|
24965
25041
|
}
|
|
24966
25042
|
}
|
|
24967
|
-
function
|
|
25043
|
+
function Uk(e, t) {
|
|
24968
25044
|
return e.filter((e) => e.type !== "content").length ? e.map((e) => {
|
|
24969
25045
|
if (e.type === "content") return t(e.value);
|
|
24970
25046
|
if (e.type === "octothorpe") return "#";
|
|
@@ -24972,7 +25048,7 @@ function Bk(e, t) {
|
|
|
24972
25048
|
if (e.type === "function") {
|
|
24973
25049
|
let t = e?.param?.[0];
|
|
24974
25050
|
if (e.key === "date" && t) {
|
|
24975
|
-
let n =
|
|
25051
|
+
let n = Wk(t.value.trim(), (e) => {
|
|
24976
25052
|
throw Error(`Unable to compile date expression: ${e.message}`);
|
|
24977
25053
|
});
|
|
24978
25054
|
return [
|
|
@@ -24990,7 +25066,7 @@ function Bk(e, t) {
|
|
|
24990
25066
|
let n = e.pluralOffset, r = {};
|
|
24991
25067
|
return e.cases.forEach(({ key: e, tokens: n }) => {
|
|
24992
25068
|
let i = e[0] === "=" ? e.slice(1) : e;
|
|
24993
|
-
r[i] =
|
|
25069
|
+
r[i] = Uk(n, t);
|
|
24994
25070
|
}), [
|
|
24995
25071
|
e.arg,
|
|
24996
25072
|
e.type,
|
|
@@ -25001,15 +25077,15 @@ function Bk(e, t) {
|
|
|
25001
25077
|
];
|
|
25002
25078
|
}) : e.map((e) => t(e.value));
|
|
25003
25079
|
}
|
|
25004
|
-
function
|
|
25005
|
-
return /^::/.test(e) ?
|
|
25080
|
+
function Wk(e, t) {
|
|
25081
|
+
return /^::/.test(e) ? Ik(Hk(e.substring(2)), void 0, t) : e;
|
|
25006
25082
|
}
|
|
25007
|
-
function
|
|
25008
|
-
return
|
|
25083
|
+
function Gk(e, t = (e) => e) {
|
|
25084
|
+
return Uk((0, Tk.parse)(e), t);
|
|
25009
25085
|
}
|
|
25010
|
-
function
|
|
25086
|
+
function Kk(e, t = (e) => e) {
|
|
25011
25087
|
try {
|
|
25012
|
-
return
|
|
25088
|
+
return Gk(e, t);
|
|
25013
25089
|
} catch (t) {
|
|
25014
25090
|
return console.error(`${t.message}
|
|
25015
25091
|
|
|
@@ -25018,12 +25094,12 @@ Message: ${e}`), [e];
|
|
|
25018
25094
|
}
|
|
25019
25095
|
//#endregion
|
|
25020
25096
|
//#region node_modules/@lingui/core/dist/index.mjs
|
|
25021
|
-
var
|
|
25022
|
-
function
|
|
25023
|
-
return [...Array.isArray(e) ? e : [e],
|
|
25097
|
+
var qk = (e) => typeof e == "string", Jk = (e) => typeof e == "function", Yk = /* @__PURE__ */ new Map(), Xk = "en";
|
|
25098
|
+
function Zk(e) {
|
|
25099
|
+
return [...Array.isArray(e) ? e : [e], Xk];
|
|
25024
25100
|
}
|
|
25025
|
-
function
|
|
25026
|
-
let r =
|
|
25101
|
+
function Qk(e, t, n) {
|
|
25102
|
+
let r = Zk(e);
|
|
25027
25103
|
n ||= "default";
|
|
25028
25104
|
let i;
|
|
25029
25105
|
if (typeof n == "string") switch (i = {
|
|
@@ -25040,9 +25116,9 @@ function Yk(e, t, n) {
|
|
|
25040
25116
|
break;
|
|
25041
25117
|
}
|
|
25042
25118
|
else i = n;
|
|
25043
|
-
return
|
|
25119
|
+
return nA(() => rA("date", r, n), () => new Intl.DateTimeFormat(r, i)).format(qk(t) ? new Date(t) : t);
|
|
25044
25120
|
}
|
|
25045
|
-
function
|
|
25121
|
+
function $k(e, t, n) {
|
|
25046
25122
|
let r;
|
|
25047
25123
|
if (n ||= "default", typeof n == "string") switch (r = {
|
|
25048
25124
|
second: "numeric",
|
|
@@ -25056,24 +25132,24 @@ function Xk(e, t, n) {
|
|
|
25056
25132
|
case "short": delete r.second;
|
|
25057
25133
|
}
|
|
25058
25134
|
else r = n;
|
|
25059
|
-
return
|
|
25135
|
+
return Qk(e, t, r);
|
|
25060
25136
|
}
|
|
25061
|
-
function
|
|
25062
|
-
let r =
|
|
25063
|
-
return
|
|
25137
|
+
function eA(e, t, n) {
|
|
25138
|
+
let r = Zk(e);
|
|
25139
|
+
return nA(() => rA("number", r, n), () => new Intl.NumberFormat(r, n)).format(t);
|
|
25064
25140
|
}
|
|
25065
|
-
function
|
|
25066
|
-
let a =
|
|
25141
|
+
function tA(e, t, n, { offset: r = 0, ...i }) {
|
|
25142
|
+
let a = Zk(e), o = t ? nA(() => rA("plural-ordinal", a), () => new Intl.PluralRules(a, { type: "ordinal" })) : nA(() => rA("plural-cardinal", a), () => new Intl.PluralRules(a, { type: "cardinal" }));
|
|
25067
25143
|
return i[n] ?? i[o.select(n - r)] ?? i.other;
|
|
25068
25144
|
}
|
|
25069
|
-
function
|
|
25070
|
-
let n = e(), r =
|
|
25071
|
-
return r || (r = t(),
|
|
25145
|
+
function nA(e, t) {
|
|
25146
|
+
let n = e(), r = Yk.get(n);
|
|
25147
|
+
return r || (r = t(), Yk.set(n, r)), r;
|
|
25072
25148
|
}
|
|
25073
|
-
function
|
|
25149
|
+
function rA(e, t, n) {
|
|
25074
25150
|
return `${e}-${t.join("-")}-${JSON.stringify(n)}`;
|
|
25075
25151
|
}
|
|
25076
|
-
var
|
|
25152
|
+
var iA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, aA = (e) => e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g, (e, t, n) => {
|
|
25077
25153
|
if (t) {
|
|
25078
25154
|
let e = parseInt(t, 16);
|
|
25079
25155
|
return String.fromCharCode(e);
|
|
@@ -25081,31 +25157,31 @@ var tA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, nA = (e) => e.replace(/\\u([a-fA
|
|
|
25081
25157
|
let e = parseInt(n, 16);
|
|
25082
25158
|
return String.fromCharCode(e);
|
|
25083
25159
|
}
|
|
25084
|
-
}),
|
|
25160
|
+
}), oA = "%__lingui_octothorpe__%", sA = (e, t, n = {}) => {
|
|
25085
25161
|
let r = t || e, i = (e) => typeof e == "object" ? e : n[e], a = (e, t) => {
|
|
25086
|
-
let a =
|
|
25087
|
-
return t.replace(new RegExp(
|
|
25162
|
+
let a = eA(r, e, Object.keys(n).length ? i("number") : void 0);
|
|
25163
|
+
return t.replace(new RegExp(oA, "g"), a);
|
|
25088
25164
|
};
|
|
25089
25165
|
return {
|
|
25090
25166
|
plural: (e, t) => {
|
|
25091
|
-
let { offset: n = 0 } = t, i =
|
|
25167
|
+
let { offset: n = 0 } = t, i = tA(r, !1, e, t);
|
|
25092
25168
|
return a(e - n, i);
|
|
25093
25169
|
},
|
|
25094
25170
|
selectordinal: (e, t) => {
|
|
25095
|
-
let { offset: n = 0 } = t, i =
|
|
25171
|
+
let { offset: n = 0 } = t, i = tA(r, !0, e, t);
|
|
25096
25172
|
return a(e - n, i);
|
|
25097
25173
|
},
|
|
25098
|
-
select:
|
|
25099
|
-
number: (e, t) =>
|
|
25100
|
-
date: (e, t) =>
|
|
25101
|
-
time: (e, t) =>
|
|
25174
|
+
select: cA,
|
|
25175
|
+
number: (e, t) => eA(r, e, i(t) || { style: t }),
|
|
25176
|
+
date: (e, t) => Qk(r, e, i(t) || t),
|
|
25177
|
+
time: (e, t) => $k(r, e, i(t) || t)
|
|
25102
25178
|
};
|
|
25103
|
-
},
|
|
25104
|
-
function
|
|
25179
|
+
}, cA = (e, t) => t[e] ?? t.other;
|
|
25180
|
+
function lA(e, t, n) {
|
|
25105
25181
|
return (r = {}, i) => {
|
|
25106
|
-
let a =
|
|
25107
|
-
if (n === "#" && t) return e +
|
|
25108
|
-
if (
|
|
25182
|
+
let a = sA(t, n, i), o = (e, t = !1) => Array.isArray(e) ? e.reduce((e, n) => {
|
|
25183
|
+
if (n === "#" && t) return e + oA;
|
|
25184
|
+
if (qk(n)) return e + n;
|
|
25109
25185
|
let [i, s, c] = n, l = {};
|
|
25110
25186
|
s === "plural" || s === "selectordinal" || s === "select" ? Object.entries(c).forEach(([e, t]) => {
|
|
25111
25187
|
l[e] = o(t, s === "plural" || s === "selectordinal");
|
|
@@ -25117,17 +25193,17 @@ function oA(e, t, n) {
|
|
|
25117
25193
|
} else u = r[i];
|
|
25118
25194
|
return u == null ? e : e + u;
|
|
25119
25195
|
}, "") : e, s = o(e);
|
|
25120
|
-
return
|
|
25196
|
+
return qk(s) && iA.test(s) ? aA(s) : qk(s) ? s : s ? String(s) : "";
|
|
25121
25197
|
};
|
|
25122
25198
|
}
|
|
25123
|
-
var
|
|
25199
|
+
var uA = Object.defineProperty, dA = (e, t, n) => t in e ? uA(e, t, {
|
|
25124
25200
|
enumerable: !0,
|
|
25125
25201
|
configurable: !0,
|
|
25126
25202
|
writable: !0,
|
|
25127
25203
|
value: n
|
|
25128
|
-
}) : e[t] = n,
|
|
25204
|
+
}) : e[t] = n, fA = (e, t, n) => (dA(e, typeof t == "symbol" ? t : t + "", n), n), pA = class {
|
|
25129
25205
|
constructor() {
|
|
25130
|
-
|
|
25206
|
+
fA(this, "_events", {});
|
|
25131
25207
|
}
|
|
25132
25208
|
on(e, t) {
|
|
25133
25209
|
var n;
|
|
@@ -25147,14 +25223,14 @@ var sA = Object.defineProperty, cA = (e, t, n) => t in e ? sA(e, t, {
|
|
|
25147
25223
|
let t = this._events[e];
|
|
25148
25224
|
return Array.isArray(t) ? t : !1;
|
|
25149
25225
|
}
|
|
25150
|
-
},
|
|
25226
|
+
}, mA = Object.defineProperty, hA = (e, t, n) => t in e ? mA(e, t, {
|
|
25151
25227
|
enumerable: !0,
|
|
25152
25228
|
configurable: !0,
|
|
25153
25229
|
writable: !0,
|
|
25154
25230
|
value: n
|
|
25155
|
-
}) : e[t] = n,
|
|
25231
|
+
}) : e[t] = n, gA = (e, t, n) => (hA(e, typeof t == "symbol" ? t : t + "", n), n), _A = class extends pA {
|
|
25156
25232
|
constructor(e) {
|
|
25157
|
-
super(),
|
|
25233
|
+
super(), gA(this, "_locale", ""), gA(this, "_locales"), gA(this, "_localeData", {}), gA(this, "_messages", {}), gA(this, "_missing"), gA(this, "_messageCompiler"), gA(this, "t", this._.bind(this)), process.env.NODE_ENV !== "production" && this.setMessagesCompiler(Kk), e.missing != null && (this._missing = e.missing), e.messages != null && this.load(e.messages), e.localeData != null && this.loadLocaleData(e.localeData), (typeof e.locale == "string" || e.locales) && this.activate(e.locale ?? Xk, e.locales);
|
|
25158
25234
|
}
|
|
25159
25235
|
get locale() {
|
|
25160
25236
|
return this._locale;
|
|
@@ -25194,15 +25270,15 @@ var sA = Object.defineProperty, cA = (e, t, n) => t in e ? sA(e, t, {
|
|
|
25194
25270
|
_(e, t, n) {
|
|
25195
25271
|
if (!this.locale) throw Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");
|
|
25196
25272
|
let r = n?.message;
|
|
25197
|
-
e ||= "",
|
|
25273
|
+
e ||= "", qk(e) || (t = e.values || t, r = e.message, e = e.id);
|
|
25198
25274
|
let i = this.messages[e], a = i === void 0, o = this._missing;
|
|
25199
|
-
if (o && a) return
|
|
25275
|
+
if (o && a) return Jk(o) ? o(this._locale, e) : o;
|
|
25200
25276
|
a && this.emit("missing", {
|
|
25201
25277
|
id: e,
|
|
25202
25278
|
locale: this._locale
|
|
25203
25279
|
});
|
|
25204
25280
|
let s = i || r || e;
|
|
25205
|
-
return
|
|
25281
|
+
return qk(s) && (this._messageCompiler ? s = this._messageCompiler(s) : console.warn(`Uncompiled message detected! Message:
|
|
25206
25282
|
|
|
25207
25283
|
> ${s}
|
|
25208
25284
|
|
|
@@ -25210,22 +25286,22 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
25210
25286
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
25211
25287
|
|
|
25212
25288
|
Please compile your catalog first.
|
|
25213
|
-
`)),
|
|
25289
|
+
`)), qk(s) && iA.test(s) ? aA(s) : qk(s) ? s : lA(s, this._locale, this._locales)(t, n?.formats);
|
|
25214
25290
|
}
|
|
25215
25291
|
date(e, t) {
|
|
25216
|
-
return
|
|
25292
|
+
return Qk(this._locales || this._locale, e, t);
|
|
25217
25293
|
}
|
|
25218
25294
|
number(e, t) {
|
|
25219
|
-
return
|
|
25295
|
+
return eA(this._locales || this._locale, e, t);
|
|
25220
25296
|
}
|
|
25221
25297
|
};
|
|
25222
|
-
function
|
|
25223
|
-
return new
|
|
25298
|
+
function vA(e = {}) {
|
|
25299
|
+
return new _A(e);
|
|
25224
25300
|
}
|
|
25225
|
-
var
|
|
25301
|
+
var yA = vA();
|
|
25226
25302
|
//#endregion
|
|
25227
25303
|
//#region node_modules/@mantine/store/esm/store.mjs
|
|
25228
|
-
function
|
|
25304
|
+
function bA(e) {
|
|
25229
25305
|
let t = e, n = !1, r = /* @__PURE__ */ new Set();
|
|
25230
25306
|
return {
|
|
25231
25307
|
getState() {
|
|
@@ -25247,7 +25323,7 @@ function _A(e) {
|
|
|
25247
25323
|
}
|
|
25248
25324
|
//#endregion
|
|
25249
25325
|
//#region node_modules/@mantine/notifications/esm/notifications.store.mjs
|
|
25250
|
-
function
|
|
25326
|
+
function xA(e, t, n) {
|
|
25251
25327
|
let r = [], i = [], a = {};
|
|
25252
25328
|
for (let o of e) {
|
|
25253
25329
|
let e = o.position || t;
|
|
@@ -25258,14 +25334,14 @@ function vA(e, t, n) {
|
|
|
25258
25334
|
queue: r
|
|
25259
25335
|
};
|
|
25260
25336
|
}
|
|
25261
|
-
var
|
|
25337
|
+
var SA = bA({
|
|
25262
25338
|
notifications: [],
|
|
25263
25339
|
queue: [],
|
|
25264
25340
|
defaultPosition: "bottom-right",
|
|
25265
25341
|
limit: 5
|
|
25266
25342
|
});
|
|
25267
|
-
function
|
|
25268
|
-
let n = e.getState(), r =
|
|
25343
|
+
function CA(e, t) {
|
|
25344
|
+
let n = e.getState(), r = xA(t([...n.notifications, ...n.queue]), n.defaultPosition, n.limit);
|
|
25269
25345
|
e.setState({
|
|
25270
25346
|
notifications: r.notifications,
|
|
25271
25347
|
queue: r.queue,
|
|
@@ -25273,16 +25349,16 @@ function bA(e, t) {
|
|
|
25273
25349
|
defaultPosition: n.defaultPosition
|
|
25274
25350
|
});
|
|
25275
25351
|
}
|
|
25276
|
-
function
|
|
25352
|
+
function wA(e, t = SA) {
|
|
25277
25353
|
let n = e.id || Oe();
|
|
25278
|
-
return
|
|
25354
|
+
return CA(t, (t) => e.id && t.some((t) => t.id === e.id) ? t : [...t, {
|
|
25279
25355
|
...e,
|
|
25280
25356
|
id: n
|
|
25281
25357
|
}]), n;
|
|
25282
25358
|
}
|
|
25283
25359
|
//#endregion
|
|
25284
25360
|
//#region src/components/VNotification/notification-variant-icons.tsx
|
|
25285
|
-
var
|
|
25361
|
+
var TA = {
|
|
25286
25362
|
danger: /* @__PURE__ */ T(FO, {}),
|
|
25287
25363
|
info: /* @__PURE__ */ T(MO, {}),
|
|
25288
25364
|
success: /* @__PURE__ */ T(NO, {}),
|
|
@@ -25290,43 +25366,43 @@ var SA = {
|
|
|
25290
25366
|
};
|
|
25291
25367
|
//#endregion
|
|
25292
25368
|
//#region src/components/VNotification/showNotification.tsx
|
|
25293
|
-
function
|
|
25294
|
-
let n =
|
|
25295
|
-
|
|
25369
|
+
function EA(e, t) {
|
|
25370
|
+
let n = TA[e];
|
|
25371
|
+
wA({
|
|
25296
25372
|
...t,
|
|
25297
25373
|
variant: e,
|
|
25298
25374
|
icon: n
|
|
25299
25375
|
});
|
|
25300
25376
|
}
|
|
25301
|
-
function
|
|
25302
|
-
|
|
25303
|
-
title:
|
|
25377
|
+
function DA(e) {
|
|
25378
|
+
EA("danger", {
|
|
25379
|
+
title: yA._({ id: "SlfejT" }),
|
|
25304
25380
|
...e
|
|
25305
25381
|
});
|
|
25306
25382
|
}
|
|
25307
25383
|
//#endregion
|
|
25308
25384
|
//#region src/constant/error-messages.constant.ts
|
|
25309
|
-
function
|
|
25310
|
-
return
|
|
25385
|
+
function OA() {
|
|
25386
|
+
return yA._({ id: "Qlh+W2" });
|
|
25311
25387
|
}
|
|
25312
|
-
function
|
|
25388
|
+
function kA(e, t) {
|
|
25313
25389
|
let {} = t ?? {};
|
|
25314
25390
|
return {}[e];
|
|
25315
25391
|
}
|
|
25316
|
-
function
|
|
25392
|
+
function AA(e) {
|
|
25317
25393
|
return e ? {
|
|
25318
|
-
401:
|
|
25319
|
-
403:
|
|
25320
|
-
404:
|
|
25321
|
-
500:
|
|
25322
|
-
502:
|
|
25323
|
-
503:
|
|
25324
|
-
504:
|
|
25394
|
+
401: yA._({ id: "9cOLBO" }),
|
|
25395
|
+
403: yA._({ id: "qriaXz" }),
|
|
25396
|
+
404: yA._({ id: "373i3G" }),
|
|
25397
|
+
500: yA._({ id: "lkE00/" }),
|
|
25398
|
+
502: yA._({ id: "9dPdtH" }),
|
|
25399
|
+
503: yA._({ id: "Vw36Gt" }),
|
|
25400
|
+
504: yA._({ id: "3R0fAs" })
|
|
25325
25401
|
}[e] : "";
|
|
25326
25402
|
}
|
|
25327
25403
|
//#endregion
|
|
25328
25404
|
//#region src/utils/local-storage.utils.ts
|
|
25329
|
-
function
|
|
25405
|
+
function jA(e, t = null) {
|
|
25330
25406
|
let n = localStorage.getItem(e);
|
|
25331
25407
|
if (n === null) return t;
|
|
25332
25408
|
try {
|
|
@@ -25338,33 +25414,33 @@ function OA(e, t = null) {
|
|
|
25338
25414
|
}
|
|
25339
25415
|
//#endregion
|
|
25340
25416
|
//#region src/utils/debug.utils.ts
|
|
25341
|
-
function
|
|
25342
|
-
return
|
|
25417
|
+
function MA() {
|
|
25418
|
+
return jA(Ky.DEBUG, !1);
|
|
25343
25419
|
}
|
|
25344
|
-
function
|
|
25345
|
-
return
|
|
25420
|
+
function NA() {
|
|
25421
|
+
return MA() ? jA(Ky.SHOW_HTTP_ERROR_DEBUG_TOASTER, !1) : !1;
|
|
25346
25422
|
}
|
|
25347
25423
|
//#endregion
|
|
25348
25424
|
//#region src/utils/error.utils.tsx
|
|
25349
|
-
function
|
|
25425
|
+
function PA(e) {
|
|
25350
25426
|
return e?.operationResultCode !== void 0;
|
|
25351
25427
|
}
|
|
25352
|
-
function
|
|
25428
|
+
function FA(e) {
|
|
25353
25429
|
return e?.error !== void 0;
|
|
25354
25430
|
}
|
|
25355
|
-
function
|
|
25431
|
+
function IA(e) {
|
|
25356
25432
|
let t = e.response?.headers;
|
|
25357
25433
|
if (!t) return !1;
|
|
25358
25434
|
let n = "application/problem+json", r = "Content-Type";
|
|
25359
25435
|
return typeof t.get == "function" ? t.get(r) === n : t[r] === n;
|
|
25360
25436
|
}
|
|
25361
|
-
function
|
|
25362
|
-
return
|
|
25437
|
+
function LA(e) {
|
|
25438
|
+
return PA(e) ? e.description : FA(e) ? e.error : e?.message || e?.errorCode || OA();
|
|
25363
25439
|
}
|
|
25364
|
-
function
|
|
25365
|
-
return e.code ?
|
|
25440
|
+
function RA(e) {
|
|
25441
|
+
return e.code ? kA(e.code) || OA() : "";
|
|
25366
25442
|
}
|
|
25367
|
-
function
|
|
25443
|
+
function zA(e) {
|
|
25368
25444
|
return {
|
|
25369
25445
|
url: e.config?.url,
|
|
25370
25446
|
method: e.config?.method?.toUpperCase(),
|
|
@@ -25372,26 +25448,26 @@ function IA(e) {
|
|
|
25372
25448
|
response: e.response?.data
|
|
25373
25449
|
};
|
|
25374
25450
|
}
|
|
25375
|
-
function
|
|
25451
|
+
function BA(e) {
|
|
25376
25452
|
try {
|
|
25377
25453
|
return JSON.stringify(e, null, 2);
|
|
25378
25454
|
} catch {
|
|
25379
25455
|
return String(e);
|
|
25380
25456
|
}
|
|
25381
25457
|
}
|
|
25382
|
-
function
|
|
25458
|
+
function VA({ url: e, method: t, status: n, response: r }) {
|
|
25383
25459
|
let i = r != null && Object.keys(r).length > 0;
|
|
25384
25460
|
return /* @__PURE__ */ E(zv, { children: [[
|
|
25385
25461
|
{
|
|
25386
|
-
label:
|
|
25462
|
+
label: yA._({ id: "IagCbF" }),
|
|
25387
25463
|
value: e
|
|
25388
25464
|
},
|
|
25389
25465
|
{
|
|
25390
|
-
label:
|
|
25466
|
+
label: yA._({ id: "fiPesM" }),
|
|
25391
25467
|
value: t
|
|
25392
25468
|
},
|
|
25393
25469
|
{
|
|
25394
|
-
label:
|
|
25470
|
+
label: yA._({ id: "uAQUqI" }),
|
|
25395
25471
|
value: n
|
|
25396
25472
|
}
|
|
25397
25473
|
].filter((e) => !!e.value).map(({ label: e, value: t }, n) => /* @__PURE__ */ E(kl, {
|
|
@@ -25407,36 +25483,36 @@ function RA({ url: e, method: t, status: n, response: r }) {
|
|
|
25407
25483
|
}, n)), i && /* @__PURE__ */ T(Lp, {
|
|
25408
25484
|
block: !0,
|
|
25409
25485
|
lh: 1.2,
|
|
25410
|
-
children:
|
|
25486
|
+
children: BA(r)
|
|
25411
25487
|
})] });
|
|
25412
25488
|
}
|
|
25413
|
-
function
|
|
25489
|
+
function HA(e) {
|
|
25414
25490
|
let t = e.response?.data;
|
|
25415
|
-
return
|
|
25491
|
+
return PA(t) ? t.operationResultCode : FA(t) ? t.error : t?.errorCode || t?.code || t?.message || "";
|
|
25416
25492
|
}
|
|
25417
|
-
function
|
|
25493
|
+
function UA(e) {
|
|
25418
25494
|
return e.response?.data?.status || e.response?.status || e.status;
|
|
25419
25495
|
}
|
|
25420
|
-
function
|
|
25421
|
-
let t = e.response?.data, n =
|
|
25496
|
+
function WA(e) {
|
|
25497
|
+
let t = e.response?.data, n = HA(e);
|
|
25422
25498
|
if (n) {
|
|
25423
|
-
let e =
|
|
25499
|
+
let e = kA(n);
|
|
25424
25500
|
if (e) return e;
|
|
25425
25501
|
}
|
|
25426
|
-
return
|
|
25502
|
+
return LA(t);
|
|
25427
25503
|
}
|
|
25428
|
-
function
|
|
25504
|
+
function GA(e) {
|
|
25429
25505
|
let t = e.response?.data;
|
|
25430
|
-
return
|
|
25506
|
+
return RA(t) || AA(UA(e));
|
|
25431
25507
|
}
|
|
25432
|
-
function
|
|
25433
|
-
return e.response?.data ?
|
|
25508
|
+
function KA(e) {
|
|
25509
|
+
return e.response?.data ? IA(e) ? GA(e) : WA(e) : e.message;
|
|
25434
25510
|
}
|
|
25435
|
-
function
|
|
25511
|
+
function qA(e) {
|
|
25436
25512
|
return e.response?.data?.errorId;
|
|
25437
25513
|
}
|
|
25438
|
-
function
|
|
25439
|
-
let t =
|
|
25514
|
+
function JA(e) {
|
|
25515
|
+
let t = KA(e), n = IA(e) ? qA(e) : void 0;
|
|
25440
25516
|
return n ? /* @__PURE__ */ E(zv, {
|
|
25441
25517
|
gap: 8,
|
|
25442
25518
|
children: [/* @__PURE__ */ T(Xd, {
|
|
@@ -25447,34 +25523,34 @@ function GA(e) {
|
|
|
25447
25523
|
c: "var(--mantine-custom-color-danger-dark)",
|
|
25448
25524
|
size: "sm",
|
|
25449
25525
|
children: [
|
|
25450
|
-
|
|
25526
|
+
yA._({ id: "jf+o1U" }),
|
|
25451
25527
|
": ",
|
|
25452
25528
|
n
|
|
25453
25529
|
]
|
|
25454
25530
|
})]
|
|
25455
25531
|
}) : t;
|
|
25456
25532
|
}
|
|
25457
|
-
function
|
|
25458
|
-
if (!e) return
|
|
25459
|
-
if (
|
|
25460
|
-
let t =
|
|
25461
|
-
return Object.values(t).some(Boolean) ? /* @__PURE__ */ T(zv, { children:
|
|
25533
|
+
function YA(e) {
|
|
25534
|
+
if (!e) return OA();
|
|
25535
|
+
if (NA()) {
|
|
25536
|
+
let t = zA(e);
|
|
25537
|
+
return Object.values(t).some(Boolean) ? /* @__PURE__ */ T(zv, { children: VA(t) }) : JA(e);
|
|
25462
25538
|
}
|
|
25463
|
-
return
|
|
25539
|
+
return JA(e);
|
|
25464
25540
|
}
|
|
25465
|
-
function
|
|
25466
|
-
return
|
|
25541
|
+
function XA() {
|
|
25542
|
+
return NA() ? yA._({ id: "J5ej6L" }) : yA._({ id: "SlfejT" });
|
|
25467
25543
|
}
|
|
25468
|
-
function
|
|
25469
|
-
|
|
25470
|
-
title:
|
|
25471
|
-
message:
|
|
25472
|
-
autoClose:
|
|
25544
|
+
function ZA(e) {
|
|
25545
|
+
DA({
|
|
25546
|
+
title: XA(),
|
|
25547
|
+
message: YA(e),
|
|
25548
|
+
autoClose: NA() ? !1 : 5e3
|
|
25473
25549
|
});
|
|
25474
25550
|
}
|
|
25475
25551
|
//#endregion
|
|
25476
25552
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
25477
|
-
var
|
|
25553
|
+
var QA = class {
|
|
25478
25554
|
constructor() {
|
|
25479
25555
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
25480
25556
|
}
|
|
@@ -25488,7 +25564,7 @@ var YA = class {
|
|
|
25488
25564
|
}
|
|
25489
25565
|
onSubscribe() {}
|
|
25490
25566
|
onUnsubscribe() {}
|
|
25491
|
-
},
|
|
25567
|
+
}, $A = new class extends QA {
|
|
25492
25568
|
#e;
|
|
25493
25569
|
#t;
|
|
25494
25570
|
#n;
|
|
@@ -25525,13 +25601,13 @@ var YA = class {
|
|
|
25525
25601
|
isFocused() {
|
|
25526
25602
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
25527
25603
|
}
|
|
25528
|
-
}(),
|
|
25604
|
+
}(), ej = {
|
|
25529
25605
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
25530
25606
|
clearTimeout: (e) => clearTimeout(e),
|
|
25531
25607
|
setInterval: (e, t) => setInterval(e, t),
|
|
25532
25608
|
clearInterval: (e) => clearInterval(e)
|
|
25533
|
-
},
|
|
25534
|
-
#e =
|
|
25609
|
+
}, tj = new class {
|
|
25610
|
+
#e = ej;
|
|
25535
25611
|
#t = !1;
|
|
25536
25612
|
setTimeoutProvider(e) {
|
|
25537
25613
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
@@ -25552,34 +25628,34 @@ var YA = class {
|
|
|
25552
25628
|
this.#e.clearInterval(e);
|
|
25553
25629
|
}
|
|
25554
25630
|
}();
|
|
25555
|
-
function
|
|
25631
|
+
function nj(e) {
|
|
25556
25632
|
setTimeout(e, 0);
|
|
25557
25633
|
}
|
|
25558
25634
|
//#endregion
|
|
25559
25635
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
25560
|
-
var
|
|
25561
|
-
function
|
|
25562
|
-
function
|
|
25636
|
+
var rj = typeof window > "u" || "Deno" in globalThis;
|
|
25637
|
+
function ij() {}
|
|
25638
|
+
function aj(e, t) {
|
|
25563
25639
|
return typeof e == "function" ? e(t) : e;
|
|
25564
25640
|
}
|
|
25565
|
-
function
|
|
25641
|
+
function oj(e) {
|
|
25566
25642
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
25567
25643
|
}
|
|
25568
|
-
function
|
|
25644
|
+
function sj(e, t) {
|
|
25569
25645
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
25570
25646
|
}
|
|
25571
|
-
function
|
|
25647
|
+
function cj(e, t) {
|
|
25572
25648
|
return typeof e == "function" ? e(t) : e;
|
|
25573
25649
|
}
|
|
25574
|
-
function
|
|
25650
|
+
function lj(e, t) {
|
|
25575
25651
|
return typeof e == "function" ? e(t) : e;
|
|
25576
25652
|
}
|
|
25577
|
-
function
|
|
25653
|
+
function uj(e, t) {
|
|
25578
25654
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
25579
25655
|
if (o) {
|
|
25580
25656
|
if (r) {
|
|
25581
|
-
if (t.queryHash !==
|
|
25582
|
-
} else if (!
|
|
25657
|
+
if (t.queryHash !== fj(o, t.options)) return !1;
|
|
25658
|
+
} else if (!mj(t.queryKey, o)) return !1;
|
|
25583
25659
|
}
|
|
25584
25660
|
if (n !== "all") {
|
|
25585
25661
|
let e = t.isActive();
|
|
@@ -25587,98 +25663,98 @@ function sj(e, t) {
|
|
|
25587
25663
|
}
|
|
25588
25664
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
25589
25665
|
}
|
|
25590
|
-
function
|
|
25666
|
+
function dj(e, t) {
|
|
25591
25667
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
25592
25668
|
if (a) {
|
|
25593
25669
|
if (!t.options.mutationKey) return !1;
|
|
25594
25670
|
if (n) {
|
|
25595
|
-
if (
|
|
25596
|
-
} else if (!
|
|
25671
|
+
if (pj(t.options.mutationKey) !== pj(a)) return !1;
|
|
25672
|
+
} else if (!mj(t.options.mutationKey, a)) return !1;
|
|
25597
25673
|
}
|
|
25598
25674
|
return !(r && t.state.status !== r || i && !i(t));
|
|
25599
25675
|
}
|
|
25600
|
-
function
|
|
25601
|
-
return (t?.queryKeyHashFn ||
|
|
25676
|
+
function fj(e, t) {
|
|
25677
|
+
return (t?.queryKeyHashFn || pj)(e);
|
|
25602
25678
|
}
|
|
25603
|
-
function
|
|
25604
|
-
return JSON.stringify(e, (e, t) =>
|
|
25679
|
+
function pj(e) {
|
|
25680
|
+
return JSON.stringify(e, (e, t) => yj(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
25605
25681
|
}
|
|
25606
|
-
function
|
|
25607
|
-
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
25682
|
+
function mj(e, t) {
|
|
25683
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => mj(e[n], t[n])) : !1;
|
|
25608
25684
|
}
|
|
25609
|
-
var
|
|
25610
|
-
function
|
|
25685
|
+
var hj = Object.prototype.hasOwnProperty;
|
|
25686
|
+
function gj(e, t, n = 0) {
|
|
25611
25687
|
if (e === t) return e;
|
|
25612
25688
|
if (n > 500) return t;
|
|
25613
|
-
let r =
|
|
25614
|
-
if (!r && !(
|
|
25689
|
+
let r = vj(e) && vj(t);
|
|
25690
|
+
if (!r && !(yj(e) && yj(t))) return t;
|
|
25615
25691
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
25616
25692
|
for (let l = 0; l < o; l++) {
|
|
25617
25693
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
25618
25694
|
if (u === d) {
|
|
25619
|
-
s[o] = u, (r ? l < i :
|
|
25695
|
+
s[o] = u, (r ? l < i : hj.call(e, o)) && c++;
|
|
25620
25696
|
continue;
|
|
25621
25697
|
}
|
|
25622
25698
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
25623
25699
|
s[o] = d;
|
|
25624
25700
|
continue;
|
|
25625
25701
|
}
|
|
25626
|
-
let f =
|
|
25702
|
+
let f = gj(u, d, n + 1);
|
|
25627
25703
|
s[o] = f, f === u && c++;
|
|
25628
25704
|
}
|
|
25629
25705
|
return i === o && c === i ? e : s;
|
|
25630
25706
|
}
|
|
25631
|
-
function
|
|
25707
|
+
function _j(e, t) {
|
|
25632
25708
|
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
25633
25709
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
25634
25710
|
return !0;
|
|
25635
25711
|
}
|
|
25636
|
-
function
|
|
25712
|
+
function vj(e) {
|
|
25637
25713
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
25638
25714
|
}
|
|
25639
|
-
function
|
|
25640
|
-
if (!
|
|
25715
|
+
function yj(e) {
|
|
25716
|
+
if (!bj(e)) return !1;
|
|
25641
25717
|
let t = e.constructor;
|
|
25642
25718
|
if (t === void 0) return !0;
|
|
25643
25719
|
let n = t.prototype;
|
|
25644
|
-
return !(!
|
|
25720
|
+
return !(!bj(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
25645
25721
|
}
|
|
25646
|
-
function
|
|
25722
|
+
function bj(e) {
|
|
25647
25723
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
25648
25724
|
}
|
|
25649
|
-
function
|
|
25725
|
+
function xj(e) {
|
|
25650
25726
|
return new Promise((t) => {
|
|
25651
|
-
|
|
25727
|
+
tj.setTimeout(t, e);
|
|
25652
25728
|
});
|
|
25653
25729
|
}
|
|
25654
|
-
function
|
|
25730
|
+
function Sj(e, t, n) {
|
|
25655
25731
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
25656
25732
|
if (n.structuralSharing !== !1) {
|
|
25657
25733
|
if (process.env.NODE_ENV !== "production") try {
|
|
25658
|
-
return
|
|
25734
|
+
return gj(e, t);
|
|
25659
25735
|
} catch (e) {
|
|
25660
25736
|
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
|
|
25661
25737
|
}
|
|
25662
|
-
return
|
|
25738
|
+
return gj(e, t);
|
|
25663
25739
|
}
|
|
25664
25740
|
return t;
|
|
25665
25741
|
}
|
|
25666
|
-
function
|
|
25742
|
+
function Cj(e, t, n = 0) {
|
|
25667
25743
|
let r = [...e, t];
|
|
25668
25744
|
return n && r.length > n ? r.slice(1) : r;
|
|
25669
25745
|
}
|
|
25670
|
-
function
|
|
25746
|
+
function wj(e, t, n = 0) {
|
|
25671
25747
|
let r = [t, ...e];
|
|
25672
25748
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
25673
25749
|
}
|
|
25674
|
-
var
|
|
25675
|
-
function
|
|
25676
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
25750
|
+
var Tj = /* @__PURE__ */ Symbol();
|
|
25751
|
+
function Ej(e, t) {
|
|
25752
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Tj && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Tj ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
25677
25753
|
}
|
|
25678
|
-
function
|
|
25754
|
+
function Dj(e, t) {
|
|
25679
25755
|
return typeof e == "function" ? e(...t) : !!e;
|
|
25680
25756
|
}
|
|
25681
|
-
function
|
|
25757
|
+
function Oj(e, t, n) {
|
|
25682
25758
|
let r = !1, i;
|
|
25683
25759
|
return Object.defineProperty(e, "signal", {
|
|
25684
25760
|
enumerable: !0,
|
|
@@ -25687,8 +25763,8 @@ function Tj(e, t, n) {
|
|
|
25687
25763
|
}
|
|
25688
25764
|
//#endregion
|
|
25689
25765
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
25690
|
-
var
|
|
25691
|
-
let e = () =>
|
|
25766
|
+
var kj = /* @__PURE__ */ (() => {
|
|
25767
|
+
let e = () => rj;
|
|
25692
25768
|
return {
|
|
25693
25769
|
isServer() {
|
|
25694
25770
|
return e();
|
|
@@ -25700,7 +25776,7 @@ var Ej = /* @__PURE__ */ (() => {
|
|
|
25700
25776
|
})();
|
|
25701
25777
|
//#endregion
|
|
25702
25778
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
25703
|
-
function
|
|
25779
|
+
function Aj() {
|
|
25704
25780
|
let e, t, n = new Promise((n, r) => {
|
|
25705
25781
|
e = n, t = r;
|
|
25706
25782
|
});
|
|
@@ -25722,13 +25798,13 @@ function Dj() {
|
|
|
25722
25798
|
}
|
|
25723
25799
|
//#endregion
|
|
25724
25800
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
25725
|
-
var
|
|
25726
|
-
function
|
|
25801
|
+
var jj = nj;
|
|
25802
|
+
function Mj() {
|
|
25727
25803
|
let e = [], t = 0, n = (e) => {
|
|
25728
25804
|
e();
|
|
25729
25805
|
}, r = (e) => {
|
|
25730
25806
|
e();
|
|
25731
|
-
}, i =
|
|
25807
|
+
}, i = jj, a = (r) => {
|
|
25732
25808
|
t ? e.push(r) : i(() => {
|
|
25733
25809
|
n(r);
|
|
25734
25810
|
});
|
|
@@ -25770,7 +25846,7 @@ function kj() {
|
|
|
25770
25846
|
}
|
|
25771
25847
|
};
|
|
25772
25848
|
}
|
|
25773
|
-
var
|
|
25849
|
+
var Nj = Mj(), Pj = new class extends QA {
|
|
25774
25850
|
#e = !0;
|
|
25775
25851
|
#t;
|
|
25776
25852
|
#n;
|
|
@@ -25804,28 +25880,28 @@ var Aj = kj(), jj = new class extends YA {
|
|
|
25804
25880
|
}();
|
|
25805
25881
|
//#endregion
|
|
25806
25882
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
25807
|
-
function
|
|
25883
|
+
function Fj(e) {
|
|
25808
25884
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
25809
25885
|
}
|
|
25810
|
-
function
|
|
25811
|
-
return (e ?? "online") === "online" ?
|
|
25886
|
+
function Ij(e) {
|
|
25887
|
+
return (e ?? "online") === "online" ? Pj.isOnline() : !0;
|
|
25812
25888
|
}
|
|
25813
|
-
var
|
|
25889
|
+
var Lj = class extends Error {
|
|
25814
25890
|
constructor(e) {
|
|
25815
25891
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
25816
25892
|
}
|
|
25817
25893
|
};
|
|
25818
|
-
function
|
|
25819
|
-
let t = !1, n = 0, r, i =
|
|
25894
|
+
function Rj(e) {
|
|
25895
|
+
let t = !1, n = 0, r, i = Aj(), a = () => i.status !== "pending", o = (t) => {
|
|
25820
25896
|
if (!a()) {
|
|
25821
|
-
let n = new
|
|
25897
|
+
let n = new Lj(t);
|
|
25822
25898
|
f(n), e.onCancel?.(n);
|
|
25823
25899
|
}
|
|
25824
25900
|
}, s = () => {
|
|
25825
25901
|
t = !0;
|
|
25826
25902
|
}, c = () => {
|
|
25827
25903
|
t = !1;
|
|
25828
|
-
}, l = () =>
|
|
25904
|
+
}, l = () => $A.isFocused() && (e.networkMode === "always" || Pj.isOnline()) && e.canRun(), u = () => Ij(e.networkMode) && e.canRun(), d = (e) => {
|
|
25829
25905
|
a() || (r?.(), i.resolve(e));
|
|
25830
25906
|
}, f = (e) => {
|
|
25831
25907
|
a() || (r?.(), i.reject(e));
|
|
@@ -25845,12 +25921,12 @@ function Fj(e) {
|
|
|
25845
25921
|
}
|
|
25846
25922
|
Promise.resolve(r).then(d).catch((r) => {
|
|
25847
25923
|
if (a()) return;
|
|
25848
|
-
let i = e.retry ?? (
|
|
25924
|
+
let i = e.retry ?? (kj.isServer() ? 0 : 3), o = e.retryDelay ?? Fj, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
25849
25925
|
if (t || !c) {
|
|
25850
25926
|
f(r);
|
|
25851
25927
|
return;
|
|
25852
25928
|
}
|
|
25853
|
-
n++, e.onFail?.(n, r),
|
|
25929
|
+
n++, e.onFail?.(n, r), xj(s).then(() => l() ? void 0 : p()).then(() => {
|
|
25854
25930
|
t ? f(r) : m();
|
|
25855
25931
|
});
|
|
25856
25932
|
});
|
|
@@ -25868,23 +25944,23 @@ function Fj(e) {
|
|
|
25868
25944
|
}
|
|
25869
25945
|
//#endregion
|
|
25870
25946
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
25871
|
-
var
|
|
25947
|
+
var zj = class {
|
|
25872
25948
|
#e;
|
|
25873
25949
|
destroy() {
|
|
25874
25950
|
this.clearGcTimeout();
|
|
25875
25951
|
}
|
|
25876
25952
|
scheduleGc() {
|
|
25877
|
-
this.clearGcTimeout(),
|
|
25953
|
+
this.clearGcTimeout(), oj(this.gcTime) && (this.#e = tj.setTimeout(() => {
|
|
25878
25954
|
this.optionalRemove();
|
|
25879
25955
|
}, this.gcTime));
|
|
25880
25956
|
}
|
|
25881
25957
|
updateGcTime(e) {
|
|
25882
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
25958
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (kj.isServer() ? Infinity : 300 * 1e3));
|
|
25883
25959
|
}
|
|
25884
25960
|
clearGcTimeout() {
|
|
25885
|
-
this.#e &&= (
|
|
25961
|
+
this.#e &&= (tj.clearTimeout(this.#e), void 0);
|
|
25886
25962
|
}
|
|
25887
|
-
},
|
|
25963
|
+
}, Bj = class extends zj {
|
|
25888
25964
|
#e;
|
|
25889
25965
|
#t;
|
|
25890
25966
|
#n;
|
|
@@ -25893,7 +25969,7 @@ var Ij = class {
|
|
|
25893
25969
|
#a;
|
|
25894
25970
|
#o;
|
|
25895
25971
|
constructor(e) {
|
|
25896
|
-
super(), this.#o = !1, this.#a = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#r = e.client, this.#n = this.#r.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e =
|
|
25972
|
+
super(), this.#o = !1, this.#a = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#r = e.client, this.#n = this.#r.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Uj(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
|
|
25897
25973
|
}
|
|
25898
25974
|
get meta() {
|
|
25899
25975
|
return this.options.meta;
|
|
@@ -25906,15 +25982,15 @@ var Ij = class {
|
|
|
25906
25982
|
...this.#a,
|
|
25907
25983
|
...e
|
|
25908
25984
|
}, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
25909
|
-
let e =
|
|
25910
|
-
e.data !== void 0 && (this.setState(
|
|
25985
|
+
let e = Uj(this.options);
|
|
25986
|
+
e.data !== void 0 && (this.setState(Hj(e.data, e.dataUpdatedAt)), this.#e = e);
|
|
25911
25987
|
}
|
|
25912
25988
|
}
|
|
25913
25989
|
optionalRemove() {
|
|
25914
25990
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#n.remove(this);
|
|
25915
25991
|
}
|
|
25916
25992
|
setData(e, t) {
|
|
25917
|
-
let n =
|
|
25993
|
+
let n = Sj(this.state.data, e, this.options);
|
|
25918
25994
|
return this.#c({
|
|
25919
25995
|
data: n,
|
|
25920
25996
|
type: "success",
|
|
@@ -25931,7 +26007,7 @@ var Ij = class {
|
|
|
25931
26007
|
}
|
|
25932
26008
|
cancel(e) {
|
|
25933
26009
|
let t = this.#i?.promise;
|
|
25934
|
-
return this.#i?.cancel(e), t ? t.then(
|
|
26010
|
+
return this.#i?.cancel(e), t ? t.then(ij).catch(ij) : Promise.resolve();
|
|
25935
26011
|
}
|
|
25936
26012
|
destroy() {
|
|
25937
26013
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -25943,22 +26019,22 @@ var Ij = class {
|
|
|
25943
26019
|
this.destroy(), this.setState(this.resetState);
|
|
25944
26020
|
}
|
|
25945
26021
|
isActive() {
|
|
25946
|
-
return this.observers.some((e) =>
|
|
26022
|
+
return this.observers.some((e) => lj(e.options.enabled, this) !== !1);
|
|
25947
26023
|
}
|
|
25948
26024
|
isDisabled() {
|
|
25949
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
26025
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Tj || !this.isFetched();
|
|
25950
26026
|
}
|
|
25951
26027
|
isFetched() {
|
|
25952
26028
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
25953
26029
|
}
|
|
25954
26030
|
isStatic() {
|
|
25955
|
-
return this.getObserversCount() > 0 ? this.observers.some((e) =>
|
|
26031
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => cj(e.options.staleTime, this) === "static") : !1;
|
|
25956
26032
|
}
|
|
25957
26033
|
isStale() {
|
|
25958
26034
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
25959
26035
|
}
|
|
25960
26036
|
isStaleByTime(e = 0) {
|
|
25961
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
26037
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !sj(this.state.dataUpdatedAt, e);
|
|
25962
26038
|
}
|
|
25963
26039
|
onFocus() {
|
|
25964
26040
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
|
|
@@ -26005,7 +26081,7 @@ var Ij = class {
|
|
|
26005
26081
|
get: () => (this.#o = !0, n.signal)
|
|
26006
26082
|
});
|
|
26007
26083
|
}, i = () => {
|
|
26008
|
-
let e =
|
|
26084
|
+
let e = Ej(this.options, t), n = (() => {
|
|
26009
26085
|
let e = {
|
|
26010
26086
|
client: this.#r,
|
|
26011
26087
|
queryKey: this.queryKey,
|
|
@@ -26028,11 +26104,11 @@ var Ij = class {
|
|
|
26028
26104
|
this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
|
|
26029
26105
|
type: "fetch",
|
|
26030
26106
|
meta: a.fetchOptions?.meta
|
|
26031
|
-
}), this.#i =
|
|
26107
|
+
}), this.#i = Rj({
|
|
26032
26108
|
initialPromise: t?.initialPromise,
|
|
26033
26109
|
fn: a.fetchFn,
|
|
26034
26110
|
onCancel: (e) => {
|
|
26035
|
-
e instanceof
|
|
26111
|
+
e instanceof Lj && e.revert && this.setState({
|
|
26036
26112
|
...this.#t,
|
|
26037
26113
|
fetchStatus: "idle"
|
|
26038
26114
|
}), n.abort();
|
|
@@ -26060,7 +26136,7 @@ var Ij = class {
|
|
|
26060
26136
|
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
26061
26137
|
return this.setData(e), this.#n.config.onSuccess?.(e, this), this.#n.config.onSettled?.(e, this.state.error, this), e;
|
|
26062
26138
|
} catch (e) {
|
|
26063
|
-
if (e instanceof
|
|
26139
|
+
if (e instanceof Lj) {
|
|
26064
26140
|
if (e.silent) return this.#i.promise;
|
|
26065
26141
|
if (e.revert) {
|
|
26066
26142
|
if (this.state.data === void 0) throw e;
|
|
@@ -26093,13 +26169,13 @@ var Ij = class {
|
|
|
26093
26169
|
};
|
|
26094
26170
|
case "fetch": return {
|
|
26095
26171
|
...t,
|
|
26096
|
-
...
|
|
26172
|
+
...Vj(t.data, this.options),
|
|
26097
26173
|
fetchMeta: e.meta ?? null
|
|
26098
26174
|
};
|
|
26099
26175
|
case "success":
|
|
26100
26176
|
let n = {
|
|
26101
26177
|
...t,
|
|
26102
|
-
...
|
|
26178
|
+
...Hj(e.data, e.dataUpdatedAt),
|
|
26103
26179
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
26104
26180
|
...!e.manual && {
|
|
26105
26181
|
fetchStatus: "idle",
|
|
@@ -26130,7 +26206,7 @@ var Ij = class {
|
|
|
26130
26206
|
...e.state
|
|
26131
26207
|
};
|
|
26132
26208
|
}
|
|
26133
|
-
})(this.state),
|
|
26209
|
+
})(this.state), Nj.batch(() => {
|
|
26134
26210
|
this.observers.forEach((e) => {
|
|
26135
26211
|
e.onQueryUpdate();
|
|
26136
26212
|
}), this.#n.notify({
|
|
@@ -26141,18 +26217,18 @@ var Ij = class {
|
|
|
26141
26217
|
});
|
|
26142
26218
|
}
|
|
26143
26219
|
};
|
|
26144
|
-
function
|
|
26220
|
+
function Vj(e, t) {
|
|
26145
26221
|
return {
|
|
26146
26222
|
fetchFailureCount: 0,
|
|
26147
26223
|
fetchFailureReason: null,
|
|
26148
|
-
fetchStatus:
|
|
26224
|
+
fetchStatus: Ij(t.networkMode) ? "fetching" : "paused",
|
|
26149
26225
|
...e === void 0 && {
|
|
26150
26226
|
error: null,
|
|
26151
26227
|
status: "pending"
|
|
26152
26228
|
}
|
|
26153
26229
|
};
|
|
26154
26230
|
}
|
|
26155
|
-
function
|
|
26231
|
+
function Hj(e, t) {
|
|
26156
26232
|
return {
|
|
26157
26233
|
data: e,
|
|
26158
26234
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -26161,7 +26237,7 @@ function zj(e, t) {
|
|
|
26161
26237
|
status: "success"
|
|
26162
26238
|
};
|
|
26163
26239
|
}
|
|
26164
|
-
function
|
|
26240
|
+
function Uj(e) {
|
|
26165
26241
|
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
26166
26242
|
return {
|
|
26167
26243
|
data: t,
|
|
@@ -26180,15 +26256,15 @@ function Bj(e) {
|
|
|
26180
26256
|
}
|
|
26181
26257
|
//#endregion
|
|
26182
26258
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
26183
|
-
function
|
|
26259
|
+
function Wj(e) {
|
|
26184
26260
|
return { onFetch: (t, n) => {
|
|
26185
26261
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
26186
26262
|
pages: [],
|
|
26187
26263
|
pageParams: []
|
|
26188
26264
|
}, c = 0, l = async () => {
|
|
26189
26265
|
let n = !1, l = (e) => {
|
|
26190
|
-
|
|
26191
|
-
}, u =
|
|
26266
|
+
Oj(e, () => t.signal, () => n = !0);
|
|
26267
|
+
}, u = Ej(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
26192
26268
|
if (n) return Promise.reject();
|
|
26193
26269
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
26194
26270
|
let a = await u((() => {
|
|
@@ -26200,14 +26276,14 @@ function Vj(e) {
|
|
|
26200
26276
|
meta: t.options.meta
|
|
26201
26277
|
};
|
|
26202
26278
|
return l(e), e;
|
|
26203
|
-
})()), { maxPages: o } = t.options, s = i ?
|
|
26279
|
+
})()), { maxPages: o } = t.options, s = i ? wj : Cj;
|
|
26204
26280
|
return {
|
|
26205
26281
|
pages: s(e.pages, a, o),
|
|
26206
26282
|
pageParams: s(e.pageParams, r, o)
|
|
26207
26283
|
};
|
|
26208
26284
|
};
|
|
26209
26285
|
if (i && a.length) {
|
|
26210
|
-
let e = i === "backward", t = e ?
|
|
26286
|
+
let e = i === "backward", t = e ? Kj : Gj, n = {
|
|
26211
26287
|
pages: a,
|
|
26212
26288
|
pageParams: o
|
|
26213
26289
|
};
|
|
@@ -26215,7 +26291,7 @@ function Vj(e) {
|
|
|
26215
26291
|
} else {
|
|
26216
26292
|
let t = e ?? a.length;
|
|
26217
26293
|
do {
|
|
26218
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
26294
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Gj(r, s);
|
|
26219
26295
|
if (c > 0 && e == null) break;
|
|
26220
26296
|
s = await d(s, e), c++;
|
|
26221
26297
|
} while (c < t);
|
|
@@ -26230,22 +26306,22 @@ function Vj(e) {
|
|
|
26230
26306
|
}, n) : t.fetchFn = l;
|
|
26231
26307
|
} };
|
|
26232
26308
|
}
|
|
26233
|
-
function
|
|
26309
|
+
function Gj(e, { pages: t, pageParams: n }) {
|
|
26234
26310
|
let r = t.length - 1;
|
|
26235
26311
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
26236
26312
|
}
|
|
26237
|
-
function
|
|
26313
|
+
function Kj(e, { pages: t, pageParams: n }) {
|
|
26238
26314
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
26239
26315
|
}
|
|
26240
26316
|
//#endregion
|
|
26241
26317
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
26242
|
-
var
|
|
26318
|
+
var qj = class extends zj {
|
|
26243
26319
|
#e;
|
|
26244
26320
|
#t;
|
|
26245
26321
|
#n;
|
|
26246
26322
|
#r;
|
|
26247
26323
|
constructor(e) {
|
|
26248
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
26324
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Jj(), this.setOptions(e.options), this.scheduleGc();
|
|
26249
26325
|
}
|
|
26250
26326
|
setOptions(e) {
|
|
26251
26327
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -26281,7 +26357,7 @@ var Wj = class extends Ij {
|
|
|
26281
26357
|
meta: this.options.meta,
|
|
26282
26358
|
mutationKey: this.options.mutationKey
|
|
26283
26359
|
};
|
|
26284
|
-
this.#r =
|
|
26360
|
+
this.#r = Rj({
|
|
26285
26361
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
26286
26362
|
onFail: (e, t) => {
|
|
26287
26363
|
this.#i({
|
|
@@ -26397,7 +26473,7 @@ var Wj = class extends Ij {
|
|
|
26397
26473
|
status: "error"
|
|
26398
26474
|
};
|
|
26399
26475
|
}
|
|
26400
|
-
})(this.state),
|
|
26476
|
+
})(this.state), Nj.batch(() => {
|
|
26401
26477
|
this.#t.forEach((t) => {
|
|
26402
26478
|
t.onMutationUpdate(e);
|
|
26403
26479
|
}), this.#n.notify({
|
|
@@ -26408,7 +26484,7 @@ var Wj = class extends Ij {
|
|
|
26408
26484
|
});
|
|
26409
26485
|
}
|
|
26410
26486
|
};
|
|
26411
|
-
function
|
|
26487
|
+
function Jj() {
|
|
26412
26488
|
return {
|
|
26413
26489
|
context: void 0,
|
|
26414
26490
|
data: void 0,
|
|
@@ -26423,7 +26499,7 @@ function Gj() {
|
|
|
26423
26499
|
}
|
|
26424
26500
|
//#endregion
|
|
26425
26501
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
26426
|
-
var
|
|
26502
|
+
var Yj = class extends QA {
|
|
26427
26503
|
constructor(e = {}) {
|
|
26428
26504
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
26429
26505
|
}
|
|
@@ -26431,7 +26507,7 @@ var Kj = class extends YA {
|
|
|
26431
26507
|
#t;
|
|
26432
26508
|
#n;
|
|
26433
26509
|
build(e, t, n) {
|
|
26434
|
-
let r = new
|
|
26510
|
+
let r = new qj({
|
|
26435
26511
|
client: e,
|
|
26436
26512
|
mutationCache: this,
|
|
26437
26513
|
mutationId: ++this.#n,
|
|
@@ -26442,7 +26518,7 @@ var Kj = class extends YA {
|
|
|
26442
26518
|
}
|
|
26443
26519
|
add(e) {
|
|
26444
26520
|
this.#e.add(e);
|
|
26445
|
-
let t =
|
|
26521
|
+
let t = Xj(e);
|
|
26446
26522
|
if (typeof t == "string") {
|
|
26447
26523
|
let n = this.#t.get(t);
|
|
26448
26524
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -26454,7 +26530,7 @@ var Kj = class extends YA {
|
|
|
26454
26530
|
}
|
|
26455
26531
|
remove(e) {
|
|
26456
26532
|
if (this.#e.delete(e)) {
|
|
26457
|
-
let t =
|
|
26533
|
+
let t = Xj(e);
|
|
26458
26534
|
if (typeof t == "string") {
|
|
26459
26535
|
let n = this.#t.get(t);
|
|
26460
26536
|
if (n) if (n.length > 1) {
|
|
@@ -26469,18 +26545,18 @@ var Kj = class extends YA {
|
|
|
26469
26545
|
});
|
|
26470
26546
|
}
|
|
26471
26547
|
canRun(e) {
|
|
26472
|
-
let t =
|
|
26548
|
+
let t = Xj(e);
|
|
26473
26549
|
if (typeof t == "string") {
|
|
26474
26550
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
26475
26551
|
return !n || n === e;
|
|
26476
26552
|
} else return !0;
|
|
26477
26553
|
}
|
|
26478
26554
|
runNext(e) {
|
|
26479
|
-
let t =
|
|
26555
|
+
let t = Xj(e);
|
|
26480
26556
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
26481
26557
|
}
|
|
26482
26558
|
clear() {
|
|
26483
|
-
|
|
26559
|
+
Nj.batch(() => {
|
|
26484
26560
|
this.#e.forEach((e) => {
|
|
26485
26561
|
this.notify({
|
|
26486
26562
|
type: "removed",
|
|
@@ -26497,13 +26573,13 @@ var Kj = class extends YA {
|
|
|
26497
26573
|
exact: !0,
|
|
26498
26574
|
...e
|
|
26499
26575
|
};
|
|
26500
|
-
return this.getAll().find((e) =>
|
|
26576
|
+
return this.getAll().find((e) => dj(t, e));
|
|
26501
26577
|
}
|
|
26502
26578
|
findAll(e = {}) {
|
|
26503
|
-
return this.getAll().filter((t) =>
|
|
26579
|
+
return this.getAll().filter((t) => dj(e, t));
|
|
26504
26580
|
}
|
|
26505
26581
|
notify(e) {
|
|
26506
|
-
|
|
26582
|
+
Nj.batch(() => {
|
|
26507
26583
|
this.listeners.forEach((t) => {
|
|
26508
26584
|
t(e);
|
|
26509
26585
|
});
|
|
@@ -26511,15 +26587,15 @@ var Kj = class extends YA {
|
|
|
26511
26587
|
}
|
|
26512
26588
|
resumePausedMutations() {
|
|
26513
26589
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
26514
|
-
return
|
|
26590
|
+
return Nj.batch(() => Promise.all(e.map((e) => e.continue().catch(ij))));
|
|
26515
26591
|
}
|
|
26516
26592
|
};
|
|
26517
|
-
function
|
|
26593
|
+
function Xj(e) {
|
|
26518
26594
|
return e.options.scope?.id;
|
|
26519
26595
|
}
|
|
26520
26596
|
//#endregion
|
|
26521
26597
|
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
26522
|
-
var
|
|
26598
|
+
var Zj = class extends QA {
|
|
26523
26599
|
#e;
|
|
26524
26600
|
#t = void 0;
|
|
26525
26601
|
#n;
|
|
@@ -26532,11 +26608,11 @@ var Jj = class extends YA {
|
|
|
26532
26608
|
}
|
|
26533
26609
|
setOptions(e) {
|
|
26534
26610
|
let t = this.options;
|
|
26535
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
26611
|
+
this.options = this.#e.defaultMutationOptions(e), _j(this.options, t) || this.#e.getMutationCache().notify({
|
|
26536
26612
|
type: "observerOptionsUpdated",
|
|
26537
26613
|
mutation: this.#n,
|
|
26538
26614
|
observer: this
|
|
26539
|
-
}), t?.mutationKey && this.options.mutationKey &&
|
|
26615
|
+
}), t?.mutationKey && this.options.mutationKey && pj(t.mutationKey) !== pj(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
|
|
26540
26616
|
}
|
|
26541
26617
|
onUnsubscribe() {
|
|
26542
26618
|
this.hasListeners() || this.#n?.removeObserver(this);
|
|
@@ -26554,7 +26630,7 @@ var Jj = class extends YA {
|
|
|
26554
26630
|
return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
|
|
26555
26631
|
}
|
|
26556
26632
|
#i() {
|
|
26557
|
-
let e = this.#n?.state ??
|
|
26633
|
+
let e = this.#n?.state ?? Jj();
|
|
26558
26634
|
this.#t = {
|
|
26559
26635
|
...e,
|
|
26560
26636
|
isPending: e.status === "pending",
|
|
@@ -26566,7 +26642,7 @@ var Jj = class extends YA {
|
|
|
26566
26642
|
};
|
|
26567
26643
|
}
|
|
26568
26644
|
#a(e) {
|
|
26569
|
-
|
|
26645
|
+
Nj.batch(() => {
|
|
26570
26646
|
if (this.#r && this.hasListeners()) {
|
|
26571
26647
|
let t = this.#t.variables, n = this.#t.context, r = {
|
|
26572
26648
|
client: this.#e,
|
|
@@ -26602,14 +26678,14 @@ var Jj = class extends YA {
|
|
|
26602
26678
|
});
|
|
26603
26679
|
});
|
|
26604
26680
|
}
|
|
26605
|
-
},
|
|
26681
|
+
}, Qj = class extends QA {
|
|
26606
26682
|
constructor(e = {}) {
|
|
26607
26683
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
26608
26684
|
}
|
|
26609
26685
|
#e;
|
|
26610
26686
|
build(e, t, n) {
|
|
26611
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
26612
|
-
return a || (a = new
|
|
26687
|
+
let r = t.queryKey, i = t.queryHash ?? fj(r, t), a = this.get(i);
|
|
26688
|
+
return a || (a = new Bj({
|
|
26613
26689
|
client: e,
|
|
26614
26690
|
queryKey: r,
|
|
26615
26691
|
queryHash: i,
|
|
@@ -26632,7 +26708,7 @@ var Jj = class extends YA {
|
|
|
26632
26708
|
}));
|
|
26633
26709
|
}
|
|
26634
26710
|
clear() {
|
|
26635
|
-
|
|
26711
|
+
Nj.batch(() => {
|
|
26636
26712
|
this.getAll().forEach((e) => {
|
|
26637
26713
|
this.remove(e);
|
|
26638
26714
|
});
|
|
@@ -26649,34 +26725,34 @@ var Jj = class extends YA {
|
|
|
26649
26725
|
exact: !0,
|
|
26650
26726
|
...e
|
|
26651
26727
|
};
|
|
26652
|
-
return this.getAll().find((e) =>
|
|
26728
|
+
return this.getAll().find((e) => uj(t, e));
|
|
26653
26729
|
}
|
|
26654
26730
|
findAll(e = {}) {
|
|
26655
26731
|
let t = this.getAll();
|
|
26656
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
26732
|
+
return Object.keys(e).length > 0 ? t.filter((t) => uj(e, t)) : t;
|
|
26657
26733
|
}
|
|
26658
26734
|
notify(e) {
|
|
26659
|
-
|
|
26735
|
+
Nj.batch(() => {
|
|
26660
26736
|
this.listeners.forEach((t) => {
|
|
26661
26737
|
t(e);
|
|
26662
26738
|
});
|
|
26663
26739
|
});
|
|
26664
26740
|
}
|
|
26665
26741
|
onFocus() {
|
|
26666
|
-
|
|
26742
|
+
Nj.batch(() => {
|
|
26667
26743
|
this.getAll().forEach((e) => {
|
|
26668
26744
|
e.onFocus();
|
|
26669
26745
|
});
|
|
26670
26746
|
});
|
|
26671
26747
|
}
|
|
26672
26748
|
onOnline() {
|
|
26673
|
-
|
|
26749
|
+
Nj.batch(() => {
|
|
26674
26750
|
this.getAll().forEach((e) => {
|
|
26675
26751
|
e.onOnline();
|
|
26676
26752
|
});
|
|
26677
26753
|
});
|
|
26678
26754
|
}
|
|
26679
|
-
},
|
|
26755
|
+
}, $j = class {
|
|
26680
26756
|
#e;
|
|
26681
26757
|
#t;
|
|
26682
26758
|
#n;
|
|
@@ -26686,12 +26762,12 @@ var Jj = class extends YA {
|
|
|
26686
26762
|
#o;
|
|
26687
26763
|
#s;
|
|
26688
26764
|
constructor(e = {}) {
|
|
26689
|
-
this.#e = e.queryCache || new
|
|
26765
|
+
this.#e = e.queryCache || new Qj(), this.#t = e.mutationCache || new Yj(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
26690
26766
|
}
|
|
26691
26767
|
mount() {
|
|
26692
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
26768
|
+
this.#a++, this.#a === 1 && (this.#o = $A.subscribe(async (e) => {
|
|
26693
26769
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
26694
|
-
}), this.#s =
|
|
26770
|
+
}), this.#s = Pj.subscribe(async (e) => {
|
|
26695
26771
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
26696
26772
|
}));
|
|
26697
26773
|
}
|
|
@@ -26716,20 +26792,20 @@ var Jj = class extends YA {
|
|
|
26716
26792
|
}
|
|
26717
26793
|
ensureQueryData(e) {
|
|
26718
26794
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
26719
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
26795
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(cj(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
26720
26796
|
}
|
|
26721
26797
|
getQueriesData(e) {
|
|
26722
26798
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
26723
26799
|
}
|
|
26724
26800
|
setQueryData(e, t, n) {
|
|
26725
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
26801
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = aj(t, i);
|
|
26726
26802
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
26727
26803
|
...n,
|
|
26728
26804
|
manual: !0
|
|
26729
26805
|
});
|
|
26730
26806
|
}
|
|
26731
26807
|
setQueriesData(e, t, n) {
|
|
26732
|
-
return
|
|
26808
|
+
return Nj.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
26733
26809
|
}
|
|
26734
26810
|
getQueryState(e) {
|
|
26735
26811
|
let t = this.defaultQueryOptions({ queryKey: e });
|
|
@@ -26737,7 +26813,7 @@ var Jj = class extends YA {
|
|
|
26737
26813
|
}
|
|
26738
26814
|
removeQueries(e) {
|
|
26739
26815
|
let t = this.#e;
|
|
26740
|
-
|
|
26816
|
+
Nj.batch(() => {
|
|
26741
26817
|
t.findAll(e).forEach((e) => {
|
|
26742
26818
|
t.remove(e);
|
|
26743
26819
|
});
|
|
@@ -26745,7 +26821,7 @@ var Jj = class extends YA {
|
|
|
26745
26821
|
}
|
|
26746
26822
|
resetQueries(e, t) {
|
|
26747
26823
|
let n = this.#e;
|
|
26748
|
-
return
|
|
26824
|
+
return Nj.batch(() => (n.findAll(e).forEach((e) => {
|
|
26749
26825
|
e.reset();
|
|
26750
26826
|
}), this.refetchQueries({
|
|
26751
26827
|
type: "active",
|
|
@@ -26756,11 +26832,11 @@ var Jj = class extends YA {
|
|
|
26756
26832
|
let n = {
|
|
26757
26833
|
revert: !0,
|
|
26758
26834
|
...t
|
|
26759
|
-
}, r =
|
|
26760
|
-
return Promise.all(r).then(
|
|
26835
|
+
}, r = Nj.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
26836
|
+
return Promise.all(r).then(ij).catch(ij);
|
|
26761
26837
|
}
|
|
26762
26838
|
invalidateQueries(e, t = {}) {
|
|
26763
|
-
return
|
|
26839
|
+
return Nj.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
26764
26840
|
e.invalidate();
|
|
26765
26841
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
26766
26842
|
...e,
|
|
@@ -26771,32 +26847,32 @@ var Jj = class extends YA {
|
|
|
26771
26847
|
let n = {
|
|
26772
26848
|
...t,
|
|
26773
26849
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
26774
|
-
}, r =
|
|
26850
|
+
}, r = Nj.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
26775
26851
|
let t = e.fetch(void 0, n);
|
|
26776
|
-
return n.throwOnError || (t = t.catch(
|
|
26852
|
+
return n.throwOnError || (t = t.catch(ij)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
26777
26853
|
}));
|
|
26778
|
-
return Promise.all(r).then(
|
|
26854
|
+
return Promise.all(r).then(ij);
|
|
26779
26855
|
}
|
|
26780
26856
|
fetchQuery(e) {
|
|
26781
26857
|
let t = this.defaultQueryOptions(e);
|
|
26782
26858
|
t.retry === void 0 && (t.retry = !1);
|
|
26783
26859
|
let n = this.#e.build(this, t);
|
|
26784
|
-
return n.isStaleByTime(
|
|
26860
|
+
return n.isStaleByTime(cj(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
26785
26861
|
}
|
|
26786
26862
|
prefetchQuery(e) {
|
|
26787
|
-
return this.fetchQuery(e).then(
|
|
26863
|
+
return this.fetchQuery(e).then(ij).catch(ij);
|
|
26788
26864
|
}
|
|
26789
26865
|
fetchInfiniteQuery(e) {
|
|
26790
|
-
return e.behavior =
|
|
26866
|
+
return e.behavior = Wj(e.pages), this.fetchQuery(e);
|
|
26791
26867
|
}
|
|
26792
26868
|
prefetchInfiniteQuery(e) {
|
|
26793
|
-
return this.fetchInfiniteQuery(e).then(
|
|
26869
|
+
return this.fetchInfiniteQuery(e).then(ij).catch(ij);
|
|
26794
26870
|
}
|
|
26795
26871
|
ensureInfiniteQueryData(e) {
|
|
26796
|
-
return e.behavior =
|
|
26872
|
+
return e.behavior = Wj(e.pages), this.ensureQueryData(e);
|
|
26797
26873
|
}
|
|
26798
26874
|
resumePausedMutations() {
|
|
26799
|
-
return
|
|
26875
|
+
return Pj.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
26800
26876
|
}
|
|
26801
26877
|
getQueryCache() {
|
|
26802
26878
|
return this.#e;
|
|
@@ -26811,7 +26887,7 @@ var Jj = class extends YA {
|
|
|
26811
26887
|
this.#n = e;
|
|
26812
26888
|
}
|
|
26813
26889
|
setQueryDefaults(e, t) {
|
|
26814
|
-
this.#r.set(
|
|
26890
|
+
this.#r.set(pj(e), {
|
|
26815
26891
|
queryKey: e,
|
|
26816
26892
|
defaultOptions: t
|
|
26817
26893
|
});
|
|
@@ -26819,11 +26895,11 @@ var Jj = class extends YA {
|
|
|
26819
26895
|
getQueryDefaults(e) {
|
|
26820
26896
|
let t = [...this.#r.values()], n = {};
|
|
26821
26897
|
return t.forEach((t) => {
|
|
26822
|
-
|
|
26898
|
+
mj(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
26823
26899
|
}), n;
|
|
26824
26900
|
}
|
|
26825
26901
|
setMutationDefaults(e, t) {
|
|
26826
|
-
this.#i.set(
|
|
26902
|
+
this.#i.set(pj(e), {
|
|
26827
26903
|
mutationKey: e,
|
|
26828
26904
|
defaultOptions: t
|
|
26829
26905
|
});
|
|
@@ -26831,7 +26907,7 @@ var Jj = class extends YA {
|
|
|
26831
26907
|
getMutationDefaults(e) {
|
|
26832
26908
|
let t = [...this.#i.values()], n = {};
|
|
26833
26909
|
return t.forEach((t) => {
|
|
26834
|
-
|
|
26910
|
+
mj(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
26835
26911
|
}), n;
|
|
26836
26912
|
}
|
|
26837
26913
|
defaultQueryOptions(e) {
|
|
@@ -26842,7 +26918,7 @@ var Jj = class extends YA {
|
|
|
26842
26918
|
...e,
|
|
26843
26919
|
_defaulted: !0
|
|
26844
26920
|
};
|
|
26845
|
-
return t.queryHash ||=
|
|
26921
|
+
return t.queryHash ||= fj(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Tj && (t.enabled = !1), t;
|
|
26846
26922
|
}
|
|
26847
26923
|
defaultMutationOptions(e) {
|
|
26848
26924
|
return e?._defaulted ? e : {
|
|
@@ -26855,28 +26931,28 @@ var Jj = class extends YA {
|
|
|
26855
26931
|
clear() {
|
|
26856
26932
|
this.#e.clear(), this.#t.clear();
|
|
26857
26933
|
}
|
|
26858
|
-
},
|
|
26859
|
-
let n = e.useContext(
|
|
26934
|
+
}, eM = e.createContext(void 0), tM = (t) => {
|
|
26935
|
+
let n = e.useContext(eM);
|
|
26860
26936
|
if (t) return t;
|
|
26861
26937
|
if (!n) throw Error("No QueryClient set, use QueryClientProvider to set one");
|
|
26862
26938
|
return n;
|
|
26863
|
-
},
|
|
26939
|
+
}, nM = ({ client: t, children: n }) => (e.useEffect(() => (t.mount(), () => {
|
|
26864
26940
|
t.unmount();
|
|
26865
|
-
}), [t]), /* @__PURE__ */ T(
|
|
26941
|
+
}), [t]), /* @__PURE__ */ T(eM.Provider, {
|
|
26866
26942
|
value: t,
|
|
26867
26943
|
children: n
|
|
26868
26944
|
}));
|
|
26869
26945
|
//#endregion
|
|
26870
26946
|
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
|
|
26871
|
-
function
|
|
26872
|
-
let r =
|
|
26947
|
+
function rM(t, n) {
|
|
26948
|
+
let r = tM(n), [i] = e.useState(() => new Zj(r, t));
|
|
26873
26949
|
e.useEffect(() => {
|
|
26874
26950
|
i.setOptions(t);
|
|
26875
26951
|
}, [i, t]);
|
|
26876
|
-
let a = e.useSyncExternalStore(e.useCallback((e) => i.subscribe(
|
|
26877
|
-
i.mutate(e, t).catch(
|
|
26952
|
+
let a = e.useSyncExternalStore(e.useCallback((e) => i.subscribe(Nj.batchCalls(e)), [i]), () => i.getCurrentResult(), () => i.getCurrentResult()), o = e.useCallback((e, t) => {
|
|
26953
|
+
i.mutate(e, t).catch(ij);
|
|
26878
26954
|
}, [i]);
|
|
26879
|
-
if (a.error &&
|
|
26955
|
+
if (a.error && Dj(i.options.throwOnError, [a.error])) throw a.error;
|
|
26880
26956
|
return {
|
|
26881
26957
|
...a,
|
|
26882
26958
|
mutate: o,
|
|
@@ -26885,79 +26961,79 @@ function eM(t, n) {
|
|
|
26885
26961
|
}
|
|
26886
26962
|
//#endregion
|
|
26887
26963
|
//#region node_modules/axios/lib/helpers/bind.js
|
|
26888
|
-
function
|
|
26964
|
+
function iM(e, t) {
|
|
26889
26965
|
return function() {
|
|
26890
26966
|
return e.apply(t, arguments);
|
|
26891
26967
|
};
|
|
26892
26968
|
}
|
|
26893
26969
|
//#endregion
|
|
26894
26970
|
//#region node_modules/axios/lib/utils.js
|
|
26895
|
-
var { toString:
|
|
26896
|
-
let n =
|
|
26971
|
+
var { toString: aM } = Object.prototype, { getPrototypeOf: oM } = Object, { iterator: sM, toStringTag: cM } = Symbol, lM = ((e) => (t) => {
|
|
26972
|
+
let n = aM.call(t);
|
|
26897
26973
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
26898
|
-
})(Object.create(null)),
|
|
26899
|
-
function
|
|
26900
|
-
return e !== null && !
|
|
26974
|
+
})(Object.create(null)), uM = (e) => (e = e.toLowerCase(), (t) => lM(t) === e), dM = (e) => (t) => typeof t === e, { isArray: fM } = Array, pM = dM("undefined");
|
|
26975
|
+
function mM(e) {
|
|
26976
|
+
return e !== null && !pM(e) && e.constructor !== null && !pM(e.constructor) && vM(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
26901
26977
|
}
|
|
26902
|
-
var
|
|
26903
|
-
function
|
|
26978
|
+
var hM = uM("ArrayBuffer");
|
|
26979
|
+
function gM(e) {
|
|
26904
26980
|
let t;
|
|
26905
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer &&
|
|
26906
|
-
}
|
|
26907
|
-
var
|
|
26908
|
-
if (
|
|
26909
|
-
let t =
|
|
26910
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
26911
|
-
},
|
|
26912
|
-
if (!
|
|
26981
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && hM(e.buffer), t;
|
|
26982
|
+
}
|
|
26983
|
+
var _M = dM("string"), vM = dM("function"), yM = dM("number"), bM = (e) => typeof e == "object" && !!e, xM = (e) => e === !0 || e === !1, SM = (e) => {
|
|
26984
|
+
if (lM(e) !== "object") return !1;
|
|
26985
|
+
let t = oM(e);
|
|
26986
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(cM in e) && !(sM in e);
|
|
26987
|
+
}, CM = (e) => {
|
|
26988
|
+
if (!bM(e) || mM(e)) return !1;
|
|
26913
26989
|
try {
|
|
26914
26990
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
26915
26991
|
} catch {
|
|
26916
26992
|
return !1;
|
|
26917
26993
|
}
|
|
26918
|
-
},
|
|
26919
|
-
function
|
|
26994
|
+
}, wM = uM("Date"), TM = uM("File"), EM = (e) => !!(e && e.uri !== void 0), DM = (e) => e && e.getParts !== void 0, OM = uM("Blob"), kM = uM("FileList"), AM = (e) => bM(e) && vM(e.pipe);
|
|
26995
|
+
function jM() {
|
|
26920
26996
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
26921
26997
|
}
|
|
26922
|
-
var
|
|
26998
|
+
var MM = jM(), NM = MM.FormData === void 0 ? void 0 : MM.FormData, PM = (e) => {
|
|
26923
26999
|
let t;
|
|
26924
|
-
return e && (
|
|
26925
|
-
},
|
|
27000
|
+
return e && (NM && e instanceof NM || vM(e.append) && ((t = lM(e)) === "formdata" || t === "object" && vM(e.toString) && e.toString() === "[object FormData]"));
|
|
27001
|
+
}, FM = uM("URLSearchParams"), [IM, LM, RM, zM] = [
|
|
26926
27002
|
"ReadableStream",
|
|
26927
27003
|
"Request",
|
|
26928
27004
|
"Response",
|
|
26929
27005
|
"Headers"
|
|
26930
|
-
].map(
|
|
26931
|
-
function
|
|
27006
|
+
].map(uM), BM = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
27007
|
+
function VM(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
26932
27008
|
if (e == null) return;
|
|
26933
27009
|
let r, i;
|
|
26934
|
-
if (typeof e != "object" && (e = [e]),
|
|
27010
|
+
if (typeof e != "object" && (e = [e]), fM(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
26935
27011
|
else {
|
|
26936
|
-
if (
|
|
27012
|
+
if (mM(e)) return;
|
|
26937
27013
|
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
26938
27014
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
26939
27015
|
}
|
|
26940
27016
|
}
|
|
26941
|
-
function
|
|
26942
|
-
if (
|
|
27017
|
+
function HM(e, t) {
|
|
27018
|
+
if (mM(e)) return null;
|
|
26943
27019
|
t = t.toLowerCase();
|
|
26944
27020
|
let n = Object.keys(e), r = n.length, i;
|
|
26945
27021
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
26946
27022
|
return null;
|
|
26947
27023
|
}
|
|
26948
|
-
var
|
|
26949
|
-
function
|
|
26950
|
-
let { caseless: e, skipUndefined: t } =
|
|
27024
|
+
var UM = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, WM = (e) => !pM(e) && e !== UM;
|
|
27025
|
+
function GM() {
|
|
27026
|
+
let { caseless: e, skipUndefined: t } = WM(this) && this || {}, n = {}, r = (r, i) => {
|
|
26951
27027
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
26952
|
-
let a = e &&
|
|
26953
|
-
|
|
27028
|
+
let a = e && HM(n, i) || i;
|
|
27029
|
+
SM(n[a]) && SM(r) ? n[a] = GM(n[a], r) : SM(r) ? n[a] = GM({}, r) : fM(r) ? n[a] = r.slice() : (!t || !pM(r)) && (n[a] = r);
|
|
26954
27030
|
};
|
|
26955
|
-
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] &&
|
|
27031
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && VM(arguments[e], r);
|
|
26956
27032
|
return n;
|
|
26957
27033
|
}
|
|
26958
|
-
var
|
|
26959
|
-
n &&
|
|
26960
|
-
value:
|
|
27034
|
+
var KM = (e, t, n, { allOwnKeys: r } = {}) => (VM(t, (t, r) => {
|
|
27035
|
+
n && vM(t) ? Object.defineProperty(e, r, {
|
|
27036
|
+
value: iM(t, n),
|
|
26961
27037
|
writable: !0,
|
|
26962
27038
|
enumerable: !0,
|
|
26963
27039
|
configurable: !0
|
|
@@ -26967,60 +27043,60 @@ var UM = (e, t, n, { allOwnKeys: r } = {}) => (RM(t, (t, r) => {
|
|
|
26967
27043
|
enumerable: !0,
|
|
26968
27044
|
configurable: !0
|
|
26969
27045
|
});
|
|
26970
|
-
}, { allOwnKeys: r }), e),
|
|
27046
|
+
}, { allOwnKeys: r }), e), qM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), JM = (e, t, n, r) => {
|
|
26971
27047
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
26972
27048
|
value: e,
|
|
26973
27049
|
writable: !0,
|
|
26974
27050
|
enumerable: !1,
|
|
26975
27051
|
configurable: !0
|
|
26976
27052
|
}), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
26977
|
-
},
|
|
27053
|
+
}, YM = (e, t, n, r) => {
|
|
26978
27054
|
let i, a, o, s = {};
|
|
26979
27055
|
if (t ||= {}, e == null) return t;
|
|
26980
27056
|
do {
|
|
26981
27057
|
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
|
26982
|
-
e = n !== !1 &&
|
|
27058
|
+
e = n !== !1 && oM(e);
|
|
26983
27059
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
26984
27060
|
return t;
|
|
26985
|
-
},
|
|
27061
|
+
}, XM = (e, t, n) => {
|
|
26986
27062
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
26987
27063
|
let r = e.indexOf(t, n);
|
|
26988
27064
|
return r !== -1 && r === n;
|
|
26989
|
-
},
|
|
27065
|
+
}, ZM = (e) => {
|
|
26990
27066
|
if (!e) return null;
|
|
26991
|
-
if (
|
|
27067
|
+
if (fM(e)) return e;
|
|
26992
27068
|
let t = e.length;
|
|
26993
|
-
if (!
|
|
27069
|
+
if (!yM(t)) return null;
|
|
26994
27070
|
let n = Array(t);
|
|
26995
27071
|
for (; t-- > 0;) n[t] = e[t];
|
|
26996
27072
|
return n;
|
|
26997
|
-
},
|
|
26998
|
-
let n = (e && e[
|
|
27073
|
+
}, QM = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && oM(Uint8Array)), $M = (e, t) => {
|
|
27074
|
+
let n = (e && e[sM]).call(e), r;
|
|
26999
27075
|
for (; (r = n.next()) && !r.done;) {
|
|
27000
27076
|
let n = r.value;
|
|
27001
27077
|
t.call(e, n[0], n[1]);
|
|
27002
27078
|
}
|
|
27003
|
-
},
|
|
27079
|
+
}, eN = (e, t) => {
|
|
27004
27080
|
let n, r = [];
|
|
27005
27081
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
27006
27082
|
return r;
|
|
27007
|
-
},
|
|
27083
|
+
}, tN = uM("HTMLFormElement"), nN = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
27008
27084
|
return t.toUpperCase() + n;
|
|
27009
|
-
}),
|
|
27085
|
+
}), rN = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), iN = uM("RegExp"), aN = (e, t) => {
|
|
27010
27086
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
27011
|
-
|
|
27087
|
+
VM(n, (n, i) => {
|
|
27012
27088
|
let a;
|
|
27013
27089
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
27014
27090
|
}), Object.defineProperties(e, r);
|
|
27015
|
-
},
|
|
27016
|
-
|
|
27017
|
-
if (
|
|
27091
|
+
}, oN = (e) => {
|
|
27092
|
+
aN(e, (t, n) => {
|
|
27093
|
+
if (vM(e) && [
|
|
27018
27094
|
"arguments",
|
|
27019
27095
|
"caller",
|
|
27020
27096
|
"callee"
|
|
27021
27097
|
].indexOf(n) !== -1) return !1;
|
|
27022
27098
|
let r = e[n];
|
|
27023
|
-
if (
|
|
27099
|
+
if (vM(r)) {
|
|
27024
27100
|
if (t.enumerable = !1, "writable" in t) {
|
|
27025
27101
|
t.writable = !1;
|
|
27026
27102
|
return;
|
|
@@ -27030,99 +27106,99 @@ var UM = (e, t, n, { allOwnKeys: r } = {}) => (RM(t, (t, r) => {
|
|
|
27030
27106
|
};
|
|
27031
27107
|
}
|
|
27032
27108
|
});
|
|
27033
|
-
},
|
|
27109
|
+
}, sN = (e, t) => {
|
|
27034
27110
|
let n = {}, r = (e) => {
|
|
27035
27111
|
e.forEach((e) => {
|
|
27036
27112
|
n[e] = !0;
|
|
27037
27113
|
});
|
|
27038
27114
|
};
|
|
27039
|
-
return
|
|
27040
|
-
},
|
|
27041
|
-
function
|
|
27042
|
-
return !!(e &&
|
|
27115
|
+
return fM(e) ? r(e) : r(String(e).split(t)), n;
|
|
27116
|
+
}, cN = () => {}, lN = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
27117
|
+
function uN(e) {
|
|
27118
|
+
return !!(e && vM(e.append) && e[cM] === "FormData" && e[sM]);
|
|
27043
27119
|
}
|
|
27044
|
-
var
|
|
27120
|
+
var dN = (e) => {
|
|
27045
27121
|
let t = Array(10), n = (e, r) => {
|
|
27046
|
-
if (
|
|
27122
|
+
if (bM(e)) {
|
|
27047
27123
|
if (t.indexOf(e) >= 0) return;
|
|
27048
|
-
if (
|
|
27124
|
+
if (mM(e)) return e;
|
|
27049
27125
|
if (!("toJSON" in e)) {
|
|
27050
27126
|
t[r] = e;
|
|
27051
|
-
let i =
|
|
27052
|
-
return
|
|
27127
|
+
let i = fM(e) ? [] : {};
|
|
27128
|
+
return VM(e, (e, t) => {
|
|
27053
27129
|
let a = n(e, r + 1);
|
|
27054
|
-
!
|
|
27130
|
+
!pM(a) && (i[t] = a);
|
|
27055
27131
|
}), t[r] = void 0, i;
|
|
27056
27132
|
}
|
|
27057
27133
|
}
|
|
27058
27134
|
return e;
|
|
27059
27135
|
};
|
|
27060
27136
|
return n(e, 0);
|
|
27061
|
-
},
|
|
27062
|
-
n ===
|
|
27137
|
+
}, fN = uM("AsyncFunction"), pN = (e) => e && (bM(e) || vM(e)) && vM(e.then) && vM(e.catch), mN = ((e, t) => e ? setImmediate : t ? ((e, t) => (UM.addEventListener("message", ({ source: n, data: r }) => {
|
|
27138
|
+
n === UM && r === e && t.length && t.shift()();
|
|
27063
27139
|
}, !1), (n) => {
|
|
27064
|
-
t.push(n),
|
|
27065
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
27066
|
-
isArray:
|
|
27067
|
-
isArrayBuffer:
|
|
27068
|
-
isBuffer:
|
|
27069
|
-
isFormData:
|
|
27070
|
-
isArrayBufferView:
|
|
27071
|
-
isString:
|
|
27072
|
-
isNumber:
|
|
27073
|
-
isBoolean:
|
|
27074
|
-
isObject:
|
|
27075
|
-
isPlainObject:
|
|
27076
|
-
isEmptyObject:
|
|
27077
|
-
isReadableStream:
|
|
27078
|
-
isRequest:
|
|
27079
|
-
isResponse:
|
|
27080
|
-
isHeaders:
|
|
27081
|
-
isUndefined:
|
|
27082
|
-
isDate:
|
|
27083
|
-
isFile:
|
|
27084
|
-
isReactNativeBlob:
|
|
27085
|
-
isReactNative:
|
|
27086
|
-
isBlob:
|
|
27087
|
-
isRegExp:
|
|
27088
|
-
isFunction:
|
|
27089
|
-
isStream:
|
|
27090
|
-
isURLSearchParams:
|
|
27091
|
-
isTypedArray:
|
|
27092
|
-
isFileList:
|
|
27093
|
-
forEach:
|
|
27094
|
-
merge:
|
|
27095
|
-
extend:
|
|
27096
|
-
trim:
|
|
27097
|
-
stripBOM:
|
|
27098
|
-
inherits:
|
|
27099
|
-
toFlatObject:
|
|
27100
|
-
kindOf:
|
|
27101
|
-
kindOfTest:
|
|
27102
|
-
endsWith:
|
|
27103
|
-
toArray:
|
|
27104
|
-
forEachEntry:
|
|
27105
|
-
matchAll:
|
|
27106
|
-
isHTMLForm:
|
|
27107
|
-
hasOwnProperty:
|
|
27108
|
-
hasOwnProp:
|
|
27109
|
-
reduceDescriptors:
|
|
27110
|
-
freezeMethods:
|
|
27111
|
-
toObjectSet:
|
|
27112
|
-
toCamelCase:
|
|
27113
|
-
noop:
|
|
27114
|
-
toFiniteNumber:
|
|
27115
|
-
findKey:
|
|
27116
|
-
global:
|
|
27117
|
-
isContextDefined:
|
|
27118
|
-
isSpecCompliantForm:
|
|
27119
|
-
toJSONObject:
|
|
27120
|
-
isAsyncFn:
|
|
27121
|
-
isThenable:
|
|
27122
|
-
setImmediate:
|
|
27123
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
27124
|
-
isIterable: (e) => e != null &&
|
|
27125
|
-
},
|
|
27140
|
+
t.push(n), UM.postMessage(e, "*");
|
|
27141
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", vM(UM.postMessage)), $ = {
|
|
27142
|
+
isArray: fM,
|
|
27143
|
+
isArrayBuffer: hM,
|
|
27144
|
+
isBuffer: mM,
|
|
27145
|
+
isFormData: PM,
|
|
27146
|
+
isArrayBufferView: gM,
|
|
27147
|
+
isString: _M,
|
|
27148
|
+
isNumber: yM,
|
|
27149
|
+
isBoolean: xM,
|
|
27150
|
+
isObject: bM,
|
|
27151
|
+
isPlainObject: SM,
|
|
27152
|
+
isEmptyObject: CM,
|
|
27153
|
+
isReadableStream: IM,
|
|
27154
|
+
isRequest: LM,
|
|
27155
|
+
isResponse: RM,
|
|
27156
|
+
isHeaders: zM,
|
|
27157
|
+
isUndefined: pM,
|
|
27158
|
+
isDate: wM,
|
|
27159
|
+
isFile: TM,
|
|
27160
|
+
isReactNativeBlob: EM,
|
|
27161
|
+
isReactNative: DM,
|
|
27162
|
+
isBlob: OM,
|
|
27163
|
+
isRegExp: iN,
|
|
27164
|
+
isFunction: vM,
|
|
27165
|
+
isStream: AM,
|
|
27166
|
+
isURLSearchParams: FM,
|
|
27167
|
+
isTypedArray: QM,
|
|
27168
|
+
isFileList: kM,
|
|
27169
|
+
forEach: VM,
|
|
27170
|
+
merge: GM,
|
|
27171
|
+
extend: KM,
|
|
27172
|
+
trim: BM,
|
|
27173
|
+
stripBOM: qM,
|
|
27174
|
+
inherits: JM,
|
|
27175
|
+
toFlatObject: YM,
|
|
27176
|
+
kindOf: lM,
|
|
27177
|
+
kindOfTest: uM,
|
|
27178
|
+
endsWith: XM,
|
|
27179
|
+
toArray: ZM,
|
|
27180
|
+
forEachEntry: $M,
|
|
27181
|
+
matchAll: eN,
|
|
27182
|
+
isHTMLForm: tN,
|
|
27183
|
+
hasOwnProperty: rN,
|
|
27184
|
+
hasOwnProp: rN,
|
|
27185
|
+
reduceDescriptors: aN,
|
|
27186
|
+
freezeMethods: oN,
|
|
27187
|
+
toObjectSet: sN,
|
|
27188
|
+
toCamelCase: nN,
|
|
27189
|
+
noop: cN,
|
|
27190
|
+
toFiniteNumber: lN,
|
|
27191
|
+
findKey: HM,
|
|
27192
|
+
global: UM,
|
|
27193
|
+
isContextDefined: WM,
|
|
27194
|
+
isSpecCompliantForm: uN,
|
|
27195
|
+
toJSONObject: dN,
|
|
27196
|
+
isAsyncFn: fN,
|
|
27197
|
+
isThenable: pN,
|
|
27198
|
+
setImmediate: mN,
|
|
27199
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(UM) : typeof process < "u" && process.nextTick || mN,
|
|
27200
|
+
isIterable: (e) => e != null && vM(e[sM])
|
|
27201
|
+
}, hN = class e extends Error {
|
|
27126
27202
|
static from(t, n, r, i, a, o) {
|
|
27127
27203
|
let s = new e(t.message, n || t.code, r, i, a);
|
|
27128
27204
|
return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
|
|
@@ -27151,27 +27227,27 @@ var cN = (e) => {
|
|
|
27151
27227
|
};
|
|
27152
27228
|
}
|
|
27153
27229
|
};
|
|
27154
|
-
|
|
27230
|
+
hN.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", hN.ERR_BAD_OPTION = "ERR_BAD_OPTION", hN.ECONNABORTED = "ECONNABORTED", hN.ETIMEDOUT = "ETIMEDOUT", hN.ERR_NETWORK = "ERR_NETWORK", hN.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", hN.ERR_DEPRECATED = "ERR_DEPRECATED", hN.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", hN.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", hN.ERR_CANCELED = "ERR_CANCELED", hN.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", hN.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
27155
27231
|
//#endregion
|
|
27156
27232
|
//#region node_modules/axios/lib/helpers/toFormData.js
|
|
27157
|
-
function
|
|
27233
|
+
function gN(e) {
|
|
27158
27234
|
return $.isPlainObject(e) || $.isArray(e);
|
|
27159
27235
|
}
|
|
27160
|
-
function
|
|
27236
|
+
function _N(e) {
|
|
27161
27237
|
return $.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
27162
27238
|
}
|
|
27163
|
-
function
|
|
27239
|
+
function vN(e, t, n) {
|
|
27164
27240
|
return e ? e.concat(t).map(function(e, t) {
|
|
27165
|
-
return e =
|
|
27241
|
+
return e = _N(e), !n && t ? "[" + e + "]" : e;
|
|
27166
27242
|
}).join(n ? "." : "") : t;
|
|
27167
27243
|
}
|
|
27168
|
-
function
|
|
27169
|
-
return $.isArray(e) && !e.some(
|
|
27244
|
+
function yN(e) {
|
|
27245
|
+
return $.isArray(e) && !e.some(gN);
|
|
27170
27246
|
}
|
|
27171
|
-
var
|
|
27247
|
+
var bN = $.toFlatObject($, {}, null, function(e) {
|
|
27172
27248
|
return /^is[A-Z]/.test(e);
|
|
27173
27249
|
});
|
|
27174
|
-
function
|
|
27250
|
+
function xN(e, t, n) {
|
|
27175
27251
|
if (!$.isObject(e)) throw TypeError("target must be an object");
|
|
27176
27252
|
t ||= new FormData(), n = $.toFlatObject(n, {
|
|
27177
27253
|
metaTokens: !0,
|
|
@@ -27186,24 +27262,24 @@ function vN(e, t, n) {
|
|
|
27186
27262
|
if (e === null) return "";
|
|
27187
27263
|
if ($.isDate(e)) return e.toISOString();
|
|
27188
27264
|
if ($.isBoolean(e)) return e.toString();
|
|
27189
|
-
if (!s && $.isBlob(e)) throw new
|
|
27265
|
+
if (!s && $.isBlob(e)) throw new hN("Blob is not supported. Use a Buffer instead.");
|
|
27190
27266
|
return $.isArrayBuffer(e) || $.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
27191
27267
|
}
|
|
27192
27268
|
function l(e, n, i) {
|
|
27193
27269
|
let s = e;
|
|
27194
|
-
if ($.isReactNative(t) && $.isReactNativeBlob(e)) return t.append(
|
|
27270
|
+
if ($.isReactNative(t) && $.isReactNativeBlob(e)) return t.append(vN(i, n, a), c(e)), !1;
|
|
27195
27271
|
if (e && !i && typeof e == "object") {
|
|
27196
27272
|
if ($.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
27197
|
-
else if ($.isArray(e) &&
|
|
27198
|
-
!($.isUndefined(e) || e === null) && t.append(o === !0 ?
|
|
27273
|
+
else if ($.isArray(e) && yN(e) || ($.isFileList(e) || $.endsWith(n, "[]")) && (s = $.toArray(e))) return n = _N(n), s.forEach(function(e, r) {
|
|
27274
|
+
!($.isUndefined(e) || e === null) && t.append(o === !0 ? vN([n], r, a) : o === null ? n : n + "[]", c(e));
|
|
27199
27275
|
}), !1;
|
|
27200
27276
|
}
|
|
27201
|
-
return
|
|
27277
|
+
return gN(e) ? !0 : (t.append(vN(i, n, a), c(e)), !1);
|
|
27202
27278
|
}
|
|
27203
|
-
let u = [], d = Object.assign(
|
|
27279
|
+
let u = [], d = Object.assign(bN, {
|
|
27204
27280
|
defaultVisitor: l,
|
|
27205
27281
|
convertValue: c,
|
|
27206
|
-
isVisitable:
|
|
27282
|
+
isVisitable: gN
|
|
27207
27283
|
});
|
|
27208
27284
|
function f(e, n) {
|
|
27209
27285
|
if (!$.isUndefined(e)) {
|
|
@@ -27218,7 +27294,7 @@ function vN(e, t, n) {
|
|
|
27218
27294
|
}
|
|
27219
27295
|
//#endregion
|
|
27220
27296
|
//#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
27221
|
-
function
|
|
27297
|
+
function SN(e) {
|
|
27222
27298
|
let t = {
|
|
27223
27299
|
"!": "%21",
|
|
27224
27300
|
"'": "%27",
|
|
@@ -27232,29 +27308,29 @@ function yN(e) {
|
|
|
27232
27308
|
return t[e];
|
|
27233
27309
|
});
|
|
27234
27310
|
}
|
|
27235
|
-
function
|
|
27236
|
-
this._pairs = [], e &&
|
|
27311
|
+
function CN(e, t) {
|
|
27312
|
+
this._pairs = [], e && xN(e, this, t);
|
|
27237
27313
|
}
|
|
27238
|
-
var
|
|
27239
|
-
|
|
27314
|
+
var wN = CN.prototype;
|
|
27315
|
+
wN.append = function(e, t) {
|
|
27240
27316
|
this._pairs.push([e, t]);
|
|
27241
|
-
},
|
|
27317
|
+
}, wN.toString = function(e) {
|
|
27242
27318
|
let t = e ? function(t) {
|
|
27243
|
-
return e.call(this, t,
|
|
27244
|
-
} :
|
|
27319
|
+
return e.call(this, t, SN);
|
|
27320
|
+
} : SN;
|
|
27245
27321
|
return this._pairs.map(function(e) {
|
|
27246
27322
|
return t(e[0]) + "=" + t(e[1]);
|
|
27247
27323
|
}, "").join("&");
|
|
27248
27324
|
};
|
|
27249
27325
|
//#endregion
|
|
27250
27326
|
//#region node_modules/axios/lib/helpers/buildURL.js
|
|
27251
|
-
function
|
|
27327
|
+
function TN(e) {
|
|
27252
27328
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
27253
27329
|
}
|
|
27254
|
-
function
|
|
27330
|
+
function EN(e, t, n) {
|
|
27255
27331
|
if (!t) return e;
|
|
27256
|
-
let r = n && n.encode ||
|
|
27257
|
-
if (o = a ? a(t, i) : $.isURLSearchParams(t) ? t.toString() : new
|
|
27332
|
+
let r = n && n.encode || TN, i = $.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
27333
|
+
if (o = a ? a(t, i) : $.isURLSearchParams(t) ? t.toString() : new CN(t, i).toString(r), o) {
|
|
27258
27334
|
let t = e.indexOf("#");
|
|
27259
27335
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
27260
27336
|
}
|
|
@@ -27262,7 +27338,7 @@ function CN(e, t, n) {
|
|
|
27262
27338
|
}
|
|
27263
27339
|
//#endregion
|
|
27264
27340
|
//#region node_modules/axios/lib/core/InterceptorManager.js
|
|
27265
|
-
var
|
|
27341
|
+
var DN = class {
|
|
27266
27342
|
constructor() {
|
|
27267
27343
|
this.handlers = [];
|
|
27268
27344
|
}
|
|
@@ -27285,15 +27361,15 @@ var wN = class {
|
|
|
27285
27361
|
t !== null && e(t);
|
|
27286
27362
|
});
|
|
27287
27363
|
}
|
|
27288
|
-
},
|
|
27364
|
+
}, ON = {
|
|
27289
27365
|
silentJSONParsing: !0,
|
|
27290
27366
|
forcedJSONParsing: !0,
|
|
27291
27367
|
clarifyTimeoutError: !1,
|
|
27292
27368
|
legacyInterceptorReqResOrdering: !0
|
|
27293
|
-
},
|
|
27369
|
+
}, kN = {
|
|
27294
27370
|
isBrowser: !0,
|
|
27295
27371
|
classes: {
|
|
27296
|
-
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams :
|
|
27372
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : CN,
|
|
27297
27373
|
FormData: typeof FormData < "u" ? FormData : null,
|
|
27298
27374
|
Blob: typeof Blob < "u" ? Blob : null
|
|
27299
27375
|
},
|
|
@@ -27305,58 +27381,58 @@ var wN = class {
|
|
|
27305
27381
|
"url",
|
|
27306
27382
|
"data"
|
|
27307
27383
|
]
|
|
27308
|
-
},
|
|
27309
|
-
hasBrowserEnv: () =>
|
|
27310
|
-
hasStandardBrowserEnv: () =>
|
|
27311
|
-
hasStandardBrowserWebWorkerEnv: () =>
|
|
27312
|
-
navigator: () =>
|
|
27313
|
-
origin: () =>
|
|
27314
|
-
}),
|
|
27384
|
+
}, AN = /* @__PURE__ */ F({
|
|
27385
|
+
hasBrowserEnv: () => jN,
|
|
27386
|
+
hasStandardBrowserEnv: () => NN,
|
|
27387
|
+
hasStandardBrowserWebWorkerEnv: () => PN,
|
|
27388
|
+
navigator: () => MN,
|
|
27389
|
+
origin: () => FN
|
|
27390
|
+
}), jN = typeof window < "u" && typeof document < "u", MN = typeof navigator == "object" && navigator || void 0, NN = jN && (!MN || [
|
|
27315
27391
|
"ReactNative",
|
|
27316
27392
|
"NativeScript",
|
|
27317
27393
|
"NS"
|
|
27318
|
-
].indexOf(
|
|
27319
|
-
...
|
|
27320
|
-
...
|
|
27394
|
+
].indexOf(MN.product) < 0), PN = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", FN = jN && window.location.href || "http://localhost", IN = {
|
|
27395
|
+
...AN,
|
|
27396
|
+
...kN
|
|
27321
27397
|
};
|
|
27322
27398
|
//#endregion
|
|
27323
27399
|
//#region node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
27324
|
-
function
|
|
27325
|
-
return
|
|
27400
|
+
function LN(e, t) {
|
|
27401
|
+
return xN(e, new IN.classes.URLSearchParams(), {
|
|
27326
27402
|
visitor: function(e, t, n, r) {
|
|
27327
|
-
return
|
|
27403
|
+
return IN.isNode && $.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
27328
27404
|
},
|
|
27329
27405
|
...t
|
|
27330
27406
|
});
|
|
27331
27407
|
}
|
|
27332
27408
|
//#endregion
|
|
27333
27409
|
//#region node_modules/axios/lib/helpers/formDataToJSON.js
|
|
27334
|
-
function
|
|
27410
|
+
function RN(e) {
|
|
27335
27411
|
return $.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
27336
27412
|
}
|
|
27337
|
-
function
|
|
27413
|
+
function zN(e) {
|
|
27338
27414
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
27339
27415
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
27340
27416
|
return t;
|
|
27341
27417
|
}
|
|
27342
|
-
function
|
|
27418
|
+
function BN(e) {
|
|
27343
27419
|
function t(e, n, r, i) {
|
|
27344
27420
|
let a = e[i++];
|
|
27345
27421
|
if (a === "__proto__") return !0;
|
|
27346
27422
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
27347
|
-
return a = !a && $.isArray(r) ? r.length : a, s ? ($.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !$.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && $.isArray(r[a]) && (r[a] =
|
|
27423
|
+
return a = !a && $.isArray(r) ? r.length : a, s ? ($.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !$.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && $.isArray(r[a]) && (r[a] = zN(r[a])), !o);
|
|
27348
27424
|
}
|
|
27349
27425
|
if ($.isFormData(e) && $.isFunction(e.entries)) {
|
|
27350
27426
|
let n = {};
|
|
27351
27427
|
return $.forEachEntry(e, (e, r) => {
|
|
27352
|
-
t(
|
|
27428
|
+
t(RN(e), r, n, 0);
|
|
27353
27429
|
}), n;
|
|
27354
27430
|
}
|
|
27355
27431
|
return null;
|
|
27356
27432
|
}
|
|
27357
27433
|
//#endregion
|
|
27358
27434
|
//#region node_modules/axios/lib/defaults/index.js
|
|
27359
|
-
function
|
|
27435
|
+
function VN(e, t, n) {
|
|
27360
27436
|
if ($.isString(e)) try {
|
|
27361
27437
|
return (t || JSON.parse)(e), $.trim(e);
|
|
27362
27438
|
} catch (e) {
|
|
@@ -27364,8 +27440,8 @@ function RN(e, t, n) {
|
|
|
27364
27440
|
}
|
|
27365
27441
|
return (n || JSON.stringify)(e);
|
|
27366
27442
|
}
|
|
27367
|
-
var
|
|
27368
|
-
transitional:
|
|
27443
|
+
var HN = {
|
|
27444
|
+
transitional: ON,
|
|
27369
27445
|
adapter: [
|
|
27370
27446
|
"xhr",
|
|
27371
27447
|
"http",
|
|
@@ -27373,29 +27449,29 @@ var zN = {
|
|
|
27373
27449
|
],
|
|
27374
27450
|
transformRequest: [function(e, t) {
|
|
27375
27451
|
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = $.isObject(e);
|
|
27376
|
-
if (i && $.isHTMLForm(e) && (e = new FormData(e)), $.isFormData(e)) return r ? JSON.stringify(
|
|
27452
|
+
if (i && $.isHTMLForm(e) && (e = new FormData(e)), $.isFormData(e)) return r ? JSON.stringify(BN(e)) : e;
|
|
27377
27453
|
if ($.isArrayBuffer(e) || $.isBuffer(e) || $.isStream(e) || $.isFile(e) || $.isBlob(e) || $.isReadableStream(e)) return e;
|
|
27378
27454
|
if ($.isArrayBufferView(e)) return e.buffer;
|
|
27379
27455
|
if ($.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
27380
27456
|
let a;
|
|
27381
27457
|
if (i) {
|
|
27382
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
27458
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return LN(e, this.formSerializer).toString();
|
|
27383
27459
|
if ((a = $.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
27384
27460
|
let t = this.env && this.env.FormData;
|
|
27385
|
-
return
|
|
27461
|
+
return xN(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
|
|
27386
27462
|
}
|
|
27387
27463
|
}
|
|
27388
|
-
return i || r ? (t.setContentType("application/json", !1),
|
|
27464
|
+
return i || r ? (t.setContentType("application/json", !1), VN(e)) : e;
|
|
27389
27465
|
}],
|
|
27390
27466
|
transformResponse: [function(e) {
|
|
27391
|
-
let t = this.transitional ||
|
|
27467
|
+
let t = this.transitional || HN.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
27392
27468
|
if ($.isResponse(e) || $.isReadableStream(e)) return e;
|
|
27393
27469
|
if (e && $.isString(e) && (n && !this.responseType || r)) {
|
|
27394
27470
|
let n = !(t && t.silentJSONParsing) && r;
|
|
27395
27471
|
try {
|
|
27396
27472
|
return JSON.parse(e, this.parseReviver);
|
|
27397
27473
|
} catch (e) {
|
|
27398
|
-
if (n) throw e.name === "SyntaxError" ?
|
|
27474
|
+
if (n) throw e.name === "SyntaxError" ? hN.from(e, hN.ERR_BAD_RESPONSE, this, null, this.response) : e;
|
|
27399
27475
|
}
|
|
27400
27476
|
}
|
|
27401
27477
|
return e;
|
|
@@ -27406,8 +27482,8 @@ var zN = {
|
|
|
27406
27482
|
maxContentLength: -1,
|
|
27407
27483
|
maxBodyLength: -1,
|
|
27408
27484
|
env: {
|
|
27409
|
-
FormData:
|
|
27410
|
-
Blob:
|
|
27485
|
+
FormData: IN.classes.FormData,
|
|
27486
|
+
Blob: IN.classes.Blob
|
|
27411
27487
|
},
|
|
27412
27488
|
validateStatus: function(e) {
|
|
27413
27489
|
return e >= 200 && e < 300;
|
|
@@ -27425,11 +27501,11 @@ $.forEach([
|
|
|
27425
27501
|
"put",
|
|
27426
27502
|
"patch"
|
|
27427
27503
|
], (e) => {
|
|
27428
|
-
|
|
27504
|
+
HN.headers[e] = {};
|
|
27429
27505
|
});
|
|
27430
27506
|
//#endregion
|
|
27431
27507
|
//#region node_modules/axios/lib/helpers/parseHeaders.js
|
|
27432
|
-
var
|
|
27508
|
+
var UN = $.toObjectSet([
|
|
27433
27509
|
"age",
|
|
27434
27510
|
"authorization",
|
|
27435
27511
|
"content-length",
|
|
@@ -27447,35 +27523,35 @@ var BN = $.toObjectSet([
|
|
|
27447
27523
|
"referer",
|
|
27448
27524
|
"retry-after",
|
|
27449
27525
|
"user-agent"
|
|
27450
|
-
]),
|
|
27526
|
+
]), WN = (e) => {
|
|
27451
27527
|
let t = {}, n, r, i;
|
|
27452
27528
|
return e && e.split("\n").forEach(function(e) {
|
|
27453
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] &&
|
|
27529
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && UN[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
27454
27530
|
}), t;
|
|
27455
|
-
},
|
|
27456
|
-
function
|
|
27531
|
+
}, GN = Symbol("internals");
|
|
27532
|
+
function KN(e) {
|
|
27457
27533
|
return e && String(e).trim().toLowerCase();
|
|
27458
27534
|
}
|
|
27459
|
-
function
|
|
27460
|
-
return e === !1 || e == null ? e : $.isArray(e) ? e.map(
|
|
27535
|
+
function qN(e) {
|
|
27536
|
+
return e === !1 || e == null ? e : $.isArray(e) ? e.map(qN) : String(e).replace(/[\r\n]+$/, "");
|
|
27461
27537
|
}
|
|
27462
|
-
function
|
|
27538
|
+
function JN(e) {
|
|
27463
27539
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
27464
27540
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
27465
27541
|
return t;
|
|
27466
27542
|
}
|
|
27467
|
-
var
|
|
27468
|
-
function
|
|
27543
|
+
var YN = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
27544
|
+
function XN(e, t, n, r, i) {
|
|
27469
27545
|
if ($.isFunction(r)) return r.call(this, t, n);
|
|
27470
27546
|
if (i && (t = n), $.isString(t)) {
|
|
27471
27547
|
if ($.isString(r)) return t.indexOf(r) !== -1;
|
|
27472
27548
|
if ($.isRegExp(r)) return r.test(t);
|
|
27473
27549
|
}
|
|
27474
27550
|
}
|
|
27475
|
-
function
|
|
27551
|
+
function ZN(e) {
|
|
27476
27552
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
27477
27553
|
}
|
|
27478
|
-
function
|
|
27554
|
+
function QN(e, t) {
|
|
27479
27555
|
let n = $.toCamelCase(" " + t);
|
|
27480
27556
|
[
|
|
27481
27557
|
"get",
|
|
@@ -27490,21 +27566,21 @@ function YN(e, t) {
|
|
|
27490
27566
|
});
|
|
27491
27567
|
});
|
|
27492
27568
|
}
|
|
27493
|
-
var
|
|
27569
|
+
var $N = class {
|
|
27494
27570
|
constructor(e) {
|
|
27495
27571
|
e && this.set(e);
|
|
27496
27572
|
}
|
|
27497
27573
|
set(e, t, n) {
|
|
27498
27574
|
let r = this;
|
|
27499
27575
|
function i(e, t, n) {
|
|
27500
|
-
let i =
|
|
27576
|
+
let i = KN(t);
|
|
27501
27577
|
if (!i) throw Error("header name must be a non-empty string");
|
|
27502
27578
|
let a = $.findKey(r, i);
|
|
27503
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] =
|
|
27579
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = qN(e));
|
|
27504
27580
|
}
|
|
27505
27581
|
let a = (e, t) => $.forEach(e, (e, n) => i(e, n, t));
|
|
27506
27582
|
if ($.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
27507
|
-
else if ($.isString(e) && (e = e.trim()) && !
|
|
27583
|
+
else if ($.isString(e) && (e = e.trim()) && !YN(e)) a(WN(e), t);
|
|
27508
27584
|
else if ($.isObject(e) && $.isIterable(e)) {
|
|
27509
27585
|
let n = {}, r, i;
|
|
27510
27586
|
for (let t of e) {
|
|
@@ -27516,12 +27592,12 @@ var XN = class {
|
|
|
27516
27592
|
return this;
|
|
27517
27593
|
}
|
|
27518
27594
|
get(e, t) {
|
|
27519
|
-
if (e =
|
|
27595
|
+
if (e = KN(e), e) {
|
|
27520
27596
|
let n = $.findKey(this, e);
|
|
27521
27597
|
if (n) {
|
|
27522
27598
|
let e = this[n];
|
|
27523
27599
|
if (!t) return e;
|
|
27524
|
-
if (t === !0) return
|
|
27600
|
+
if (t === !0) return JN(e);
|
|
27525
27601
|
if ($.isFunction(t)) return t.call(this, e, n);
|
|
27526
27602
|
if ($.isRegExp(t)) return t.exec(e);
|
|
27527
27603
|
throw TypeError("parser must be boolean|regexp|function");
|
|
@@ -27529,18 +27605,18 @@ var XN = class {
|
|
|
27529
27605
|
}
|
|
27530
27606
|
}
|
|
27531
27607
|
has(e, t) {
|
|
27532
|
-
if (e =
|
|
27608
|
+
if (e = KN(e), e) {
|
|
27533
27609
|
let n = $.findKey(this, e);
|
|
27534
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
27610
|
+
return !!(n && this[n] !== void 0 && (!t || XN(this, this[n], n, t)));
|
|
27535
27611
|
}
|
|
27536
27612
|
return !1;
|
|
27537
27613
|
}
|
|
27538
27614
|
delete(e, t) {
|
|
27539
27615
|
let n = this, r = !1;
|
|
27540
27616
|
function i(e) {
|
|
27541
|
-
if (e =
|
|
27617
|
+
if (e = KN(e), e) {
|
|
27542
27618
|
let i = $.findKey(n, e);
|
|
27543
|
-
i && (!t ||
|
|
27619
|
+
i && (!t || XN(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
27544
27620
|
}
|
|
27545
27621
|
}
|
|
27546
27622
|
return $.isArray(e) ? e.forEach(i) : i(e), r;
|
|
@@ -27549,7 +27625,7 @@ var XN = class {
|
|
|
27549
27625
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
27550
27626
|
for (; n--;) {
|
|
27551
27627
|
let i = t[n];
|
|
27552
|
-
(!e ||
|
|
27628
|
+
(!e || XN(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
27553
27629
|
}
|
|
27554
27630
|
return r;
|
|
27555
27631
|
}
|
|
@@ -27558,11 +27634,11 @@ var XN = class {
|
|
|
27558
27634
|
return $.forEach(this, (r, i) => {
|
|
27559
27635
|
let a = $.findKey(n, i);
|
|
27560
27636
|
if (a) {
|
|
27561
|
-
t[a] =
|
|
27637
|
+
t[a] = qN(r), delete t[i];
|
|
27562
27638
|
return;
|
|
27563
27639
|
}
|
|
27564
|
-
let o = e ?
|
|
27565
|
-
o !== i && delete t[i], t[o] =
|
|
27640
|
+
let o = e ? ZN(i) : String(i).trim();
|
|
27641
|
+
o !== i && delete t[i], t[o] = qN(r), n[o] = !0;
|
|
27566
27642
|
}), this;
|
|
27567
27643
|
}
|
|
27568
27644
|
concat(...e) {
|
|
@@ -27594,22 +27670,22 @@ var XN = class {
|
|
|
27594
27670
|
return t.forEach((e) => n.set(e)), n;
|
|
27595
27671
|
}
|
|
27596
27672
|
static accessor(e) {
|
|
27597
|
-
let t = (this[
|
|
27673
|
+
let t = (this[GN] = this[GN] = { accessors: {} }).accessors, n = this.prototype;
|
|
27598
27674
|
function r(e) {
|
|
27599
|
-
let r =
|
|
27600
|
-
t[r] || (
|
|
27675
|
+
let r = KN(e);
|
|
27676
|
+
t[r] || (QN(n, e), t[r] = !0);
|
|
27601
27677
|
}
|
|
27602
27678
|
return $.isArray(e) ? e.forEach(r) : r(e), this;
|
|
27603
27679
|
}
|
|
27604
27680
|
};
|
|
27605
|
-
|
|
27681
|
+
$N.accessor([
|
|
27606
27682
|
"Content-Type",
|
|
27607
27683
|
"Content-Length",
|
|
27608
27684
|
"Accept",
|
|
27609
27685
|
"Accept-Encoding",
|
|
27610
27686
|
"User-Agent",
|
|
27611
27687
|
"Authorization"
|
|
27612
|
-
]), $.reduceDescriptors(
|
|
27688
|
+
]), $.reduceDescriptors($N.prototype, ({ value: e }, t) => {
|
|
27613
27689
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
27614
27690
|
return {
|
|
27615
27691
|
get: () => e,
|
|
@@ -27617,42 +27693,42 @@ XN.accessor([
|
|
|
27617
27693
|
this[n] = e;
|
|
27618
27694
|
}
|
|
27619
27695
|
};
|
|
27620
|
-
}), $.freezeMethods(
|
|
27696
|
+
}), $.freezeMethods($N);
|
|
27621
27697
|
//#endregion
|
|
27622
27698
|
//#region node_modules/axios/lib/core/transformData.js
|
|
27623
|
-
function
|
|
27624
|
-
let n = this ||
|
|
27699
|
+
function eP(e, t) {
|
|
27700
|
+
let n = this || HN, r = t || n, i = $N.from(r.headers), a = r.data;
|
|
27625
27701
|
return $.forEach(e, function(e) {
|
|
27626
27702
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
27627
27703
|
}), i.normalize(), a;
|
|
27628
27704
|
}
|
|
27629
27705
|
//#endregion
|
|
27630
27706
|
//#region node_modules/axios/lib/cancel/isCancel.js
|
|
27631
|
-
function
|
|
27707
|
+
function tP(e) {
|
|
27632
27708
|
return !!(e && e.__CANCEL__);
|
|
27633
27709
|
}
|
|
27634
27710
|
//#endregion
|
|
27635
27711
|
//#region node_modules/axios/lib/cancel/CanceledError.js
|
|
27636
|
-
var
|
|
27712
|
+
var nP = class extends hN {
|
|
27637
27713
|
constructor(e, t, n) {
|
|
27638
|
-
super(e ?? "canceled",
|
|
27714
|
+
super(e ?? "canceled", hN.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
27639
27715
|
}
|
|
27640
27716
|
};
|
|
27641
27717
|
//#endregion
|
|
27642
27718
|
//#region node_modules/axios/lib/core/settle.js
|
|
27643
|
-
function
|
|
27719
|
+
function rP(e, t, n) {
|
|
27644
27720
|
let r = n.config.validateStatus;
|
|
27645
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
27721
|
+
!n.status || !r || r(n.status) ? e(n) : t(new hN("Request failed with status code " + n.status, [hN.ERR_BAD_REQUEST, hN.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
27646
27722
|
}
|
|
27647
27723
|
//#endregion
|
|
27648
27724
|
//#region node_modules/axios/lib/helpers/parseProtocol.js
|
|
27649
|
-
function
|
|
27725
|
+
function iP(e) {
|
|
27650
27726
|
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
27651
27727
|
return t && t[1] || "";
|
|
27652
27728
|
}
|
|
27653
27729
|
//#endregion
|
|
27654
27730
|
//#region node_modules/axios/lib/helpers/speedometer.js
|
|
27655
|
-
function
|
|
27731
|
+
function aP(e, t) {
|
|
27656
27732
|
e ||= 10;
|
|
27657
27733
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
27658
27734
|
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
@@ -27667,7 +27743,7 @@ function nP(e, t) {
|
|
|
27667
27743
|
}
|
|
27668
27744
|
//#endregion
|
|
27669
27745
|
//#region node_modules/axios/lib/helpers/throttle.js
|
|
27670
|
-
function
|
|
27746
|
+
function oP(e, t) {
|
|
27671
27747
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
27672
27748
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
27673
27749
|
};
|
|
@@ -27680,9 +27756,9 @@ function rP(e, t) {
|
|
|
27680
27756
|
}
|
|
27681
27757
|
//#endregion
|
|
27682
27758
|
//#region node_modules/axios/lib/helpers/progressEventReducer.js
|
|
27683
|
-
var
|
|
27684
|
-
let r = 0, i =
|
|
27685
|
-
return
|
|
27759
|
+
var sP = (e, t, n = 3) => {
|
|
27760
|
+
let r = 0, i = aP(50, 250);
|
|
27761
|
+
return oP((n) => {
|
|
27686
27762
|
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
|
|
27687
27763
|
r = a, e({
|
|
27688
27764
|
loaded: a,
|
|
@@ -27696,14 +27772,14 @@ var iP = (e, t, n = 3) => {
|
|
|
27696
27772
|
[t ? "download" : "upload"]: !0
|
|
27697
27773
|
});
|
|
27698
27774
|
}, n);
|
|
27699
|
-
},
|
|
27775
|
+
}, cP = (e, t) => {
|
|
27700
27776
|
let n = e != null;
|
|
27701
27777
|
return [(r) => t[0]({
|
|
27702
27778
|
lengthComputable: n,
|
|
27703
27779
|
total: e,
|
|
27704
27780
|
loaded: r
|
|
27705
27781
|
}), t[1]];
|
|
27706
|
-
},
|
|
27782
|
+
}, lP = (e) => (...t) => $.asap(() => e(...t)), uP = IN.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, IN.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(IN.origin), IN.navigator && /(msie|trident)/i.test(IN.navigator.userAgent)) : () => !0, dP = IN.hasStandardBrowserEnv ? {
|
|
27707
27783
|
write(e, t, n, r, i, a, o) {
|
|
27708
27784
|
if (typeof document > "u") return;
|
|
27709
27785
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
@@ -27726,24 +27802,24 @@ var iP = (e, t, n = 3) => {
|
|
|
27726
27802
|
};
|
|
27727
27803
|
//#endregion
|
|
27728
27804
|
//#region node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
27729
|
-
function
|
|
27805
|
+
function fP(e) {
|
|
27730
27806
|
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
27731
27807
|
}
|
|
27732
27808
|
//#endregion
|
|
27733
27809
|
//#region node_modules/axios/lib/helpers/combineURLs.js
|
|
27734
|
-
function
|
|
27810
|
+
function pP(e, t) {
|
|
27735
27811
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
27736
27812
|
}
|
|
27737
27813
|
//#endregion
|
|
27738
27814
|
//#region node_modules/axios/lib/core/buildFullPath.js
|
|
27739
|
-
function
|
|
27740
|
-
let r = !
|
|
27741
|
-
return e && (r || n == 0) ?
|
|
27815
|
+
function mP(e, t, n) {
|
|
27816
|
+
let r = !fP(t);
|
|
27817
|
+
return e && (r || n == 0) ? pP(e, t) : t;
|
|
27742
27818
|
}
|
|
27743
27819
|
//#endregion
|
|
27744
27820
|
//#region node_modules/axios/lib/core/mergeConfig.js
|
|
27745
|
-
var
|
|
27746
|
-
function
|
|
27821
|
+
var hP = (e) => e instanceof $N ? { ...e } : e;
|
|
27822
|
+
function gP(e, t) {
|
|
27747
27823
|
t ||= {};
|
|
27748
27824
|
let n = {};
|
|
27749
27825
|
function r(e, t, n, r) {
|
|
@@ -27793,7 +27869,7 @@ function pP(e, t) {
|
|
|
27793
27869
|
socketPath: o,
|
|
27794
27870
|
responseEncoding: o,
|
|
27795
27871
|
validateStatus: s,
|
|
27796
|
-
headers: (e, t, n) => i(
|
|
27872
|
+
headers: (e, t, n) => i(hP(e), hP(t), n, !0)
|
|
27797
27873
|
};
|
|
27798
27874
|
return $.forEach(Object.keys({
|
|
27799
27875
|
...e,
|
|
@@ -27806,10 +27882,10 @@ function pP(e, t) {
|
|
|
27806
27882
|
}
|
|
27807
27883
|
//#endregion
|
|
27808
27884
|
//#region node_modules/axios/lib/helpers/resolveConfig.js
|
|
27809
|
-
var
|
|
27810
|
-
let t =
|
|
27811
|
-
if (t.headers = o =
|
|
27812
|
-
if (
|
|
27885
|
+
var _P = (e) => {
|
|
27886
|
+
let t = gP({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
27887
|
+
if (t.headers = o = $N.from(o), t.url = EN(mP(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), $.isFormData(n)) {
|
|
27888
|
+
if (IN.hasStandardBrowserEnv || IN.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
27813
27889
|
else if ($.isFunction(n.getHeaders)) {
|
|
27814
27890
|
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
27815
27891
|
Object.entries(e).forEach(([e, n]) => {
|
|
@@ -27817,14 +27893,14 @@ var mP = (e) => {
|
|
|
27817
27893
|
});
|
|
27818
27894
|
}
|
|
27819
27895
|
}
|
|
27820
|
-
if (
|
|
27821
|
-
let e = i && a &&
|
|
27896
|
+
if (IN.hasStandardBrowserEnv && (r && $.isFunction(r) && (r = r(t)), r || r !== !1 && uP(t.url))) {
|
|
27897
|
+
let e = i && a && dP.read(a);
|
|
27822
27898
|
e && o.set(i, e);
|
|
27823
27899
|
}
|
|
27824
27900
|
return t;
|
|
27825
|
-
},
|
|
27901
|
+
}, vP = typeof XMLHttpRequest < "u" && function(e) {
|
|
27826
27902
|
return new Promise(function(t, n) {
|
|
27827
|
-
let r =
|
|
27903
|
+
let r = _P(e), i = r.data, a = $N.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
27828
27904
|
function m() {
|
|
27829
27905
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
27830
27906
|
}
|
|
@@ -27832,8 +27908,8 @@ var mP = (e) => {
|
|
|
27832
27908
|
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
27833
27909
|
function g() {
|
|
27834
27910
|
if (!h) return;
|
|
27835
|
-
let r =
|
|
27836
|
-
|
|
27911
|
+
let r = $N.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
27912
|
+
rP(function(e) {
|
|
27837
27913
|
t(e), m();
|
|
27838
27914
|
}, function(e) {
|
|
27839
27915
|
n(e), m();
|
|
@@ -27849,36 +27925,36 @@ var mP = (e) => {
|
|
|
27849
27925
|
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
27850
27926
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
27851
27927
|
}, h.onabort = function() {
|
|
27852
|
-
h &&= (n(new
|
|
27928
|
+
h &&= (n(new hN("Request aborted", hN.ECONNABORTED, e, h)), null);
|
|
27853
27929
|
}, h.onerror = function(t) {
|
|
27854
|
-
let r = new
|
|
27930
|
+
let r = new hN(t && t.message ? t.message : "Network Error", hN.ERR_NETWORK, e, h);
|
|
27855
27931
|
r.event = t || null, n(r), h = null;
|
|
27856
27932
|
}, h.ontimeout = function() {
|
|
27857
|
-
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional ||
|
|
27858
|
-
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new
|
|
27933
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || ON;
|
|
27934
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new hN(t, i.clarifyTimeoutError ? hN.ETIMEDOUT : hN.ECONNABORTED, e, h)), h = null;
|
|
27859
27935
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && $.forEach(a.toJSON(), function(e, t) {
|
|
27860
27936
|
h.setRequestHeader(t, e);
|
|
27861
|
-
}), $.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] =
|
|
27862
|
-
h &&= (n(!t || t.type ? new
|
|
27937
|
+
}), $.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = sP(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = sP(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
27938
|
+
h &&= (n(!t || t.type ? new nP(null, e, h) : t), h.abort(), null);
|
|
27863
27939
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
27864
|
-
let _ =
|
|
27865
|
-
if (_ &&
|
|
27866
|
-
n(new
|
|
27940
|
+
let _ = iP(r.url);
|
|
27941
|
+
if (_ && IN.protocols.indexOf(_) === -1) {
|
|
27942
|
+
n(new hN("Unsupported protocol " + _ + ":", hN.ERR_BAD_REQUEST, e));
|
|
27867
27943
|
return;
|
|
27868
27944
|
}
|
|
27869
27945
|
h.send(i || null);
|
|
27870
27946
|
});
|
|
27871
|
-
},
|
|
27947
|
+
}, yP = (e, t) => {
|
|
27872
27948
|
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
27873
27949
|
if (t || n) {
|
|
27874
27950
|
let n = new AbortController(), r, i = function(e) {
|
|
27875
27951
|
if (!r) {
|
|
27876
27952
|
r = !0, o();
|
|
27877
27953
|
let t = e instanceof Error ? e : this.reason;
|
|
27878
|
-
n.abort(t instanceof
|
|
27954
|
+
n.abort(t instanceof hN ? t : new nP(t instanceof Error ? t.message : t));
|
|
27879
27955
|
}
|
|
27880
27956
|
}, a = t && setTimeout(() => {
|
|
27881
|
-
a = null, i(new
|
|
27957
|
+
a = null, i(new hN(`timeout of ${t}ms exceeded`, hN.ETIMEDOUT));
|
|
27882
27958
|
}, t), o = () => {
|
|
27883
27959
|
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
27884
27960
|
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
@@ -27888,7 +27964,7 @@ var mP = (e) => {
|
|
|
27888
27964
|
let { signal: s } = n;
|
|
27889
27965
|
return s.unsubscribe = () => $.asap(o), s;
|
|
27890
27966
|
}
|
|
27891
|
-
},
|
|
27967
|
+
}, bP = function* (e, t) {
|
|
27892
27968
|
let n = e.byteLength;
|
|
27893
27969
|
if (!t || n < t) {
|
|
27894
27970
|
yield e;
|
|
@@ -27896,9 +27972,9 @@ var mP = (e) => {
|
|
|
27896
27972
|
}
|
|
27897
27973
|
let r = 0, i;
|
|
27898
27974
|
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
27899
|
-
},
|
|
27900
|
-
for await (let n of
|
|
27901
|
-
},
|
|
27975
|
+
}, xP = async function* (e, t) {
|
|
27976
|
+
for await (let n of SP(e)) yield* bP(n, t);
|
|
27977
|
+
}, SP = async function* (e) {
|
|
27902
27978
|
if (e[Symbol.asyncIterator]) {
|
|
27903
27979
|
yield* e;
|
|
27904
27980
|
return;
|
|
@@ -27913,8 +27989,8 @@ var mP = (e) => {
|
|
|
27913
27989
|
} finally {
|
|
27914
27990
|
await t.cancel();
|
|
27915
27991
|
}
|
|
27916
|
-
},
|
|
27917
|
-
let i =
|
|
27992
|
+
}, CP = (e, t, n, r) => {
|
|
27993
|
+
let i = xP(e, t), a = 0, o, s = (e) => {
|
|
27918
27994
|
o || (o = !0, r && r(e));
|
|
27919
27995
|
};
|
|
27920
27996
|
return new ReadableStream({
|
|
@@ -27935,21 +28011,21 @@ var mP = (e) => {
|
|
|
27935
28011
|
return s(e), i.return();
|
|
27936
28012
|
}
|
|
27937
28013
|
}, { highWaterMark: 2 });
|
|
27938
|
-
},
|
|
28014
|
+
}, wP = 64 * 1024, { isFunction: TP } = $, EP = (({ Request: e, Response: t }) => ({
|
|
27939
28015
|
Request: e,
|
|
27940
28016
|
Response: t
|
|
27941
|
-
}))($.global), { ReadableStream:
|
|
28017
|
+
}))($.global), { ReadableStream: DP, TextEncoder: OP } = $.global, kP = (e, ...t) => {
|
|
27942
28018
|
try {
|
|
27943
28019
|
return !!e(...t);
|
|
27944
28020
|
} catch {
|
|
27945
28021
|
return !1;
|
|
27946
28022
|
}
|
|
27947
|
-
},
|
|
27948
|
-
e = $.merge.call({ skipUndefined: !0 },
|
|
27949
|
-
let { fetch: t, Request: n, Response: r } = e, i = t ?
|
|
28023
|
+
}, AP = (e) => {
|
|
28024
|
+
e = $.merge.call({ skipUndefined: !0 }, EP, e);
|
|
28025
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? TP(t) : typeof fetch == "function", a = TP(n), o = TP(r);
|
|
27950
28026
|
if (!i) return !1;
|
|
27951
|
-
let s = i &&
|
|
27952
|
-
let e = !1, t = new
|
|
28027
|
+
let s = i && TP(DP), c = i && (typeof OP == "function" ? ((e) => (t) => e.encode(t))(new OP()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && kP(() => {
|
|
28028
|
+
let e = !1, t = new DP(), r = new n(IN.origin, {
|
|
27953
28029
|
body: t,
|
|
27954
28030
|
method: "POST",
|
|
27955
28031
|
get duplex() {
|
|
@@ -27957,7 +28033,7 @@ var mP = (e) => {
|
|
|
27957
28033
|
}
|
|
27958
28034
|
}).headers.has("Content-Type");
|
|
27959
28035
|
return t.cancel(), e && !r;
|
|
27960
|
-
}), u = o && s &&
|
|
28036
|
+
}), u = o && s && kP(() => $.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
27961
28037
|
i && [
|
|
27962
28038
|
"text",
|
|
27963
28039
|
"arrayBuffer",
|
|
@@ -27968,13 +28044,13 @@ var mP = (e) => {
|
|
|
27968
28044
|
!d[e] && (d[e] = (t, n) => {
|
|
27969
28045
|
let r = t && t[e];
|
|
27970
28046
|
if (r) return r.call(t);
|
|
27971
|
-
throw new
|
|
28047
|
+
throw new hN(`Response type '${e}' is not supported`, hN.ERR_NOT_SUPPORT, n);
|
|
27972
28048
|
});
|
|
27973
28049
|
});
|
|
27974
28050
|
let f = async (e) => {
|
|
27975
28051
|
if (e == null) return 0;
|
|
27976
28052
|
if ($.isBlob(e)) return e.size;
|
|
27977
|
-
if ($.isSpecCompliantForm(e)) return (await new n(
|
|
28053
|
+
if ($.isSpecCompliantForm(e)) return (await new n(IN.origin, {
|
|
27978
28054
|
method: "POST",
|
|
27979
28055
|
body: e
|
|
27980
28056
|
}).arrayBuffer()).byteLength;
|
|
@@ -27982,9 +28058,9 @@ var mP = (e) => {
|
|
|
27982
28058
|
if ($.isURLSearchParams(e) && (e += ""), $.isString(e)) return (await c(e)).byteLength;
|
|
27983
28059
|
}, p = async (e, t) => $.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
27984
28060
|
return async (e) => {
|
|
27985
|
-
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } =
|
|
28061
|
+
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = _P(e), x = t || fetch;
|
|
27986
28062
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
27987
|
-
let S =
|
|
28063
|
+
let S = yP([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
27988
28064
|
S.unsubscribe();
|
|
27989
28065
|
}), T;
|
|
27990
28066
|
try {
|
|
@@ -27995,8 +28071,8 @@ var mP = (e) => {
|
|
|
27995
28071
|
duplex: "half"
|
|
27996
28072
|
}), t;
|
|
27997
28073
|
if ($.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
27998
|
-
let [t, n] =
|
|
27999
|
-
s =
|
|
28074
|
+
let [t, n] = cP(T, sP(lP(g)));
|
|
28075
|
+
s = CP(e.body, wP, t, n);
|
|
28000
28076
|
}
|
|
28001
28077
|
}
|
|
28002
28078
|
$.isString(y) || (y = y ? "include" : "omit");
|
|
@@ -28020,17 +28096,17 @@ var mP = (e) => {
|
|
|
28020
28096
|
].forEach((t) => {
|
|
28021
28097
|
e[t] = f[t];
|
|
28022
28098
|
});
|
|
28023
|
-
let t = $.toFiniteNumber(f.headers.get("content-length")), [n, i] = h &&
|
|
28024
|
-
f = new r(
|
|
28099
|
+
let t = $.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && cP(t, sP(lP(h), !0)) || [];
|
|
28100
|
+
f = new r(CP(f.body, wP, n, () => {
|
|
28025
28101
|
i && i(), w && w();
|
|
28026
28102
|
}), e);
|
|
28027
28103
|
}
|
|
28028
28104
|
_ ||= "text";
|
|
28029
28105
|
let E = await d[$.findKey(d, _) || "text"](f, e);
|
|
28030
28106
|
return !m && w && w(), await new Promise((t, n) => {
|
|
28031
|
-
|
|
28107
|
+
rP(t, n, {
|
|
28032
28108
|
data: E,
|
|
28033
|
-
headers:
|
|
28109
|
+
headers: $N.from(f.headers),
|
|
28034
28110
|
status: f.status,
|
|
28035
28111
|
statusText: f.statusText,
|
|
28036
28112
|
config: e,
|
|
@@ -28038,27 +28114,27 @@ var mP = (e) => {
|
|
|
28038
28114
|
});
|
|
28039
28115
|
});
|
|
28040
28116
|
} catch (t) {
|
|
28041
|
-
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new
|
|
28117
|
+
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new hN("Network Error", hN.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : hN.from(t, t && t.code, e, C, t && t.response);
|
|
28042
28118
|
}
|
|
28043
28119
|
};
|
|
28044
|
-
},
|
|
28120
|
+
}, jP = /* @__PURE__ */ new Map(), MP = (e) => {
|
|
28045
28121
|
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
28046
28122
|
r,
|
|
28047
28123
|
i,
|
|
28048
28124
|
n
|
|
28049
|
-
], o = a.length, s, c, l =
|
|
28050
|
-
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() :
|
|
28125
|
+
], o = a.length, s, c, l = jP;
|
|
28126
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : AP(t)), l = c;
|
|
28051
28127
|
return c;
|
|
28052
28128
|
};
|
|
28053
|
-
|
|
28129
|
+
MP();
|
|
28054
28130
|
//#endregion
|
|
28055
28131
|
//#region node_modules/axios/lib/adapters/adapters.js
|
|
28056
|
-
var
|
|
28132
|
+
var NP = {
|
|
28057
28133
|
http: null,
|
|
28058
|
-
xhr:
|
|
28059
|
-
fetch: { get:
|
|
28134
|
+
xhr: vP,
|
|
28135
|
+
fetch: { get: MP }
|
|
28060
28136
|
};
|
|
28061
|
-
$.forEach(
|
|
28137
|
+
$.forEach(NP, (e, t) => {
|
|
28062
28138
|
if (e) {
|
|
28063
28139
|
try {
|
|
28064
28140
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -28066,46 +28142,46 @@ $.forEach(AP, (e, t) => {
|
|
|
28066
28142
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
28067
28143
|
}
|
|
28068
28144
|
});
|
|
28069
|
-
var
|
|
28070
|
-
function
|
|
28145
|
+
var PP = (e) => `- ${e}`, FP = (e) => $.isFunction(e) || e === null || e === !1;
|
|
28146
|
+
function IP(e, t) {
|
|
28071
28147
|
e = $.isArray(e) ? e : [e];
|
|
28072
28148
|
let { length: n } = e, r, i, a = {};
|
|
28073
28149
|
for (let o = 0; o < n; o++) {
|
|
28074
28150
|
r = e[o];
|
|
28075
28151
|
let n;
|
|
28076
|
-
if (i = r, !
|
|
28152
|
+
if (i = r, !FP(r) && (i = NP[(n = String(r)).toLowerCase()], i === void 0)) throw new hN(`Unknown adapter '${n}'`);
|
|
28077
28153
|
if (i && ($.isFunction(i) || (i = i.get(t)))) break;
|
|
28078
28154
|
a[n || "#" + o] = i;
|
|
28079
28155
|
}
|
|
28080
28156
|
if (!i) {
|
|
28081
28157
|
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
28082
|
-
throw new
|
|
28158
|
+
throw new hN("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(PP).join("\n") : " " + PP(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
28083
28159
|
}
|
|
28084
28160
|
return i;
|
|
28085
28161
|
}
|
|
28086
|
-
var
|
|
28087
|
-
getAdapter:
|
|
28088
|
-
adapters:
|
|
28162
|
+
var LP = {
|
|
28163
|
+
getAdapter: IP,
|
|
28164
|
+
adapters: NP
|
|
28089
28165
|
};
|
|
28090
28166
|
//#endregion
|
|
28091
28167
|
//#region node_modules/axios/lib/core/dispatchRequest.js
|
|
28092
|
-
function
|
|
28093
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new
|
|
28168
|
+
function RP(e) {
|
|
28169
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new nP(null, e);
|
|
28094
28170
|
}
|
|
28095
|
-
function
|
|
28096
|
-
return
|
|
28171
|
+
function zP(e) {
|
|
28172
|
+
return RP(e), e.headers = $N.from(e.headers), e.data = eP.call(e, e.transformRequest), [
|
|
28097
28173
|
"post",
|
|
28098
28174
|
"put",
|
|
28099
28175
|
"patch"
|
|
28100
|
-
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
28101
|
-
return
|
|
28176
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), LP.getAdapter(e.adapter || HN.adapter, e)(e).then(function(t) {
|
|
28177
|
+
return RP(e), t.data = eP.call(e, e.transformResponse, t), t.headers = $N.from(t.headers), t;
|
|
28102
28178
|
}, function(t) {
|
|
28103
|
-
return
|
|
28179
|
+
return tP(t) || (RP(e), t && t.response && (t.response.data = eP.call(e, e.transformResponse, t.response), t.response.headers = $N.from(t.response.headers))), Promise.reject(t);
|
|
28104
28180
|
});
|
|
28105
28181
|
}
|
|
28106
28182
|
//#endregion
|
|
28107
28183
|
//#region node_modules/axios/lib/env/data.js
|
|
28108
|
-
var
|
|
28184
|
+
var BP = "1.14.0", VP = {};
|
|
28109
28185
|
[
|
|
28110
28186
|
"object",
|
|
28111
28187
|
"boolean",
|
|
@@ -28114,43 +28190,43 @@ var LP = "1.14.0", RP = {};
|
|
|
28114
28190
|
"string",
|
|
28115
28191
|
"symbol"
|
|
28116
28192
|
].forEach((e, t) => {
|
|
28117
|
-
|
|
28193
|
+
VP[e] = function(n) {
|
|
28118
28194
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
28119
28195
|
};
|
|
28120
28196
|
});
|
|
28121
|
-
var
|
|
28122
|
-
|
|
28197
|
+
var HP = {};
|
|
28198
|
+
VP.transitional = function(e, t, n) {
|
|
28123
28199
|
function r(e, t) {
|
|
28124
|
-
return "[Axios v" +
|
|
28200
|
+
return "[Axios v" + BP + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
28125
28201
|
}
|
|
28126
28202
|
return (n, i, a) => {
|
|
28127
|
-
if (e === !1) throw new
|
|
28128
|
-
return t && !
|
|
28203
|
+
if (e === !1) throw new hN(r(i, " has been removed" + (t ? " in " + t : "")), hN.ERR_DEPRECATED);
|
|
28204
|
+
return t && !HP[i] && (HP[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
|
|
28129
28205
|
};
|
|
28130
|
-
},
|
|
28206
|
+
}, VP.spelling = function(e) {
|
|
28131
28207
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
28132
28208
|
};
|
|
28133
|
-
function
|
|
28134
|
-
if (typeof e != "object") throw new
|
|
28209
|
+
function UP(e, t, n) {
|
|
28210
|
+
if (typeof e != "object") throw new hN("options must be an object", hN.ERR_BAD_OPTION_VALUE);
|
|
28135
28211
|
let r = Object.keys(e), i = r.length;
|
|
28136
28212
|
for (; i-- > 0;) {
|
|
28137
28213
|
let a = r[i], o = t[a];
|
|
28138
28214
|
if (o) {
|
|
28139
28215
|
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
28140
|
-
if (n !== !0) throw new
|
|
28216
|
+
if (n !== !0) throw new hN("option " + a + " must be " + n, hN.ERR_BAD_OPTION_VALUE);
|
|
28141
28217
|
continue;
|
|
28142
28218
|
}
|
|
28143
|
-
if (n !== !0) throw new
|
|
28219
|
+
if (n !== !0) throw new hN("Unknown option " + a, hN.ERR_BAD_OPTION);
|
|
28144
28220
|
}
|
|
28145
28221
|
}
|
|
28146
|
-
var
|
|
28147
|
-
assertOptions:
|
|
28148
|
-
validators:
|
|
28149
|
-
},
|
|
28222
|
+
var WP = {
|
|
28223
|
+
assertOptions: UP,
|
|
28224
|
+
validators: VP
|
|
28225
|
+
}, GP = WP.validators, KP = class {
|
|
28150
28226
|
constructor(e) {
|
|
28151
28227
|
this.defaults = e || {}, this.interceptors = {
|
|
28152
|
-
request: new
|
|
28153
|
-
response: new
|
|
28228
|
+
request: new DN(),
|
|
28229
|
+
response: new DN()
|
|
28154
28230
|
};
|
|
28155
28231
|
}
|
|
28156
28232
|
async request(e, t) {
|
|
@@ -28169,19 +28245,19 @@ var VP = {
|
|
|
28169
28245
|
}
|
|
28170
28246
|
}
|
|
28171
28247
|
_request(e, t) {
|
|
28172
|
-
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t =
|
|
28248
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = gP(this.defaults, t);
|
|
28173
28249
|
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
28174
|
-
n !== void 0 &&
|
|
28175
|
-
silentJSONParsing:
|
|
28176
|
-
forcedJSONParsing:
|
|
28177
|
-
clarifyTimeoutError:
|
|
28178
|
-
legacyInterceptorReqResOrdering:
|
|
28179
|
-
}, !1), r != null && ($.isFunction(r) ? t.paramsSerializer = { serialize: r } :
|
|
28180
|
-
encode:
|
|
28181
|
-
serialize:
|
|
28182
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls),
|
|
28183
|
-
baseUrl:
|
|
28184
|
-
withXsrfToken:
|
|
28250
|
+
n !== void 0 && WP.assertOptions(n, {
|
|
28251
|
+
silentJSONParsing: GP.transitional(GP.boolean),
|
|
28252
|
+
forcedJSONParsing: GP.transitional(GP.boolean),
|
|
28253
|
+
clarifyTimeoutError: GP.transitional(GP.boolean),
|
|
28254
|
+
legacyInterceptorReqResOrdering: GP.transitional(GP.boolean)
|
|
28255
|
+
}, !1), r != null && ($.isFunction(r) ? t.paramsSerializer = { serialize: r } : WP.assertOptions(r, {
|
|
28256
|
+
encode: GP.function,
|
|
28257
|
+
serialize: GP.function
|
|
28258
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), WP.assertOptions(t, {
|
|
28259
|
+
baseUrl: GP.spelling("baseURL"),
|
|
28260
|
+
withXsrfToken: GP.spelling("withXSRFToken")
|
|
28185
28261
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
28186
28262
|
let a = i && $.merge(i.common, i[t.method]);
|
|
28187
28263
|
i && $.forEach([
|
|
@@ -28194,12 +28270,12 @@ var VP = {
|
|
|
28194
28270
|
"common"
|
|
28195
28271
|
], (e) => {
|
|
28196
28272
|
delete i[e];
|
|
28197
|
-
}), t.headers =
|
|
28273
|
+
}), t.headers = $N.concat(a, i);
|
|
28198
28274
|
let o = [], s = !0;
|
|
28199
28275
|
this.interceptors.request.forEach(function(e) {
|
|
28200
28276
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
28201
28277
|
s &&= e.synchronous;
|
|
28202
|
-
let n = t.transitional ||
|
|
28278
|
+
let n = t.transitional || ON;
|
|
28203
28279
|
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
28204
28280
|
});
|
|
28205
28281
|
let c = [];
|
|
@@ -28208,7 +28284,7 @@ var VP = {
|
|
|
28208
28284
|
});
|
|
28209
28285
|
let l, u = 0, d;
|
|
28210
28286
|
if (!s) {
|
|
28211
|
-
let e = [
|
|
28287
|
+
let e = [zP.bind(this), void 0];
|
|
28212
28288
|
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
28213
28289
|
return l;
|
|
28214
28290
|
}
|
|
@@ -28224,7 +28300,7 @@ var VP = {
|
|
|
28224
28300
|
}
|
|
28225
28301
|
}
|
|
28226
28302
|
try {
|
|
28227
|
-
l =
|
|
28303
|
+
l = zP.call(this, f);
|
|
28228
28304
|
} catch (e) {
|
|
28229
28305
|
return Promise.reject(e);
|
|
28230
28306
|
}
|
|
@@ -28232,7 +28308,7 @@ var VP = {
|
|
|
28232
28308
|
return l;
|
|
28233
28309
|
}
|
|
28234
28310
|
getUri(e) {
|
|
28235
|
-
return e =
|
|
28311
|
+
return e = gP(this.defaults, e), EN(mP(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
28236
28312
|
}
|
|
28237
28313
|
};
|
|
28238
28314
|
$.forEach([
|
|
@@ -28241,8 +28317,8 @@ $.forEach([
|
|
|
28241
28317
|
"head",
|
|
28242
28318
|
"options"
|
|
28243
28319
|
], function(e) {
|
|
28244
|
-
|
|
28245
|
-
return this.request(
|
|
28320
|
+
KP.prototype[e] = function(t, n) {
|
|
28321
|
+
return this.request(gP(n || {}, {
|
|
28246
28322
|
method: e,
|
|
28247
28323
|
url: t,
|
|
28248
28324
|
data: (n || {}).data
|
|
@@ -28255,7 +28331,7 @@ $.forEach([
|
|
|
28255
28331
|
], function(e) {
|
|
28256
28332
|
function t(t) {
|
|
28257
28333
|
return function(n, r, i) {
|
|
28258
|
-
return this.request(
|
|
28334
|
+
return this.request(gP(i || {}, {
|
|
28259
28335
|
method: e,
|
|
28260
28336
|
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
28261
28337
|
url: n,
|
|
@@ -28263,11 +28339,11 @@ $.forEach([
|
|
|
28263
28339
|
}));
|
|
28264
28340
|
};
|
|
28265
28341
|
}
|
|
28266
|
-
|
|
28342
|
+
KP.prototype[e] = t(), KP.prototype[e + "Form"] = t(!0);
|
|
28267
28343
|
});
|
|
28268
28344
|
//#endregion
|
|
28269
28345
|
//#region node_modules/axios/lib/cancel/CancelToken.js
|
|
28270
|
-
var
|
|
28346
|
+
var qP = class e {
|
|
28271
28347
|
constructor(e) {
|
|
28272
28348
|
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
28273
28349
|
let t;
|
|
@@ -28288,7 +28364,7 @@ var WP = class e {
|
|
|
28288
28364
|
n.unsubscribe(t);
|
|
28289
28365
|
}, r;
|
|
28290
28366
|
}, e(function(e, r, i) {
|
|
28291
|
-
n.reason || (n.reason = new
|
|
28367
|
+
n.reason || (n.reason = new nP(e, r, i), t(n.reason));
|
|
28292
28368
|
});
|
|
28293
28369
|
}
|
|
28294
28370
|
throwIfRequested() {
|
|
@@ -28324,19 +28400,19 @@ var WP = class e {
|
|
|
28324
28400
|
};
|
|
28325
28401
|
//#endregion
|
|
28326
28402
|
//#region node_modules/axios/lib/helpers/spread.js
|
|
28327
|
-
function
|
|
28403
|
+
function JP(e) {
|
|
28328
28404
|
return function(t) {
|
|
28329
28405
|
return e.apply(null, t);
|
|
28330
28406
|
};
|
|
28331
28407
|
}
|
|
28332
28408
|
//#endregion
|
|
28333
28409
|
//#region node_modules/axios/lib/helpers/isAxiosError.js
|
|
28334
|
-
function
|
|
28410
|
+
function YP(e) {
|
|
28335
28411
|
return $.isObject(e) && e.isAxiosError === !0;
|
|
28336
28412
|
}
|
|
28337
28413
|
//#endregion
|
|
28338
28414
|
//#region node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
28339
|
-
var
|
|
28415
|
+
var XP = {
|
|
28340
28416
|
Continue: 100,
|
|
28341
28417
|
SwitchingProtocols: 101,
|
|
28342
28418
|
Processing: 102,
|
|
@@ -28407,24 +28483,24 @@ var qP = {
|
|
|
28407
28483
|
SslHandshakeFailed: 525,
|
|
28408
28484
|
InvalidSslCertificate: 526
|
|
28409
28485
|
};
|
|
28410
|
-
Object.entries(
|
|
28411
|
-
|
|
28486
|
+
Object.entries(XP).forEach(([e, t]) => {
|
|
28487
|
+
XP[t] = e;
|
|
28412
28488
|
});
|
|
28413
28489
|
//#endregion
|
|
28414
28490
|
//#region node_modules/axios/lib/axios.js
|
|
28415
|
-
function
|
|
28416
|
-
let t = new
|
|
28417
|
-
return $.extend(n,
|
|
28418
|
-
return
|
|
28491
|
+
function ZP(e) {
|
|
28492
|
+
let t = new KP(e), n = iM(KP.prototype.request, t);
|
|
28493
|
+
return $.extend(n, KP.prototype, t, { allOwnKeys: !0 }), $.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
28494
|
+
return ZP(gP(e, t));
|
|
28419
28495
|
}, n;
|
|
28420
28496
|
}
|
|
28421
|
-
var
|
|
28422
|
-
|
|
28497
|
+
var QP = ZP(HN);
|
|
28498
|
+
QP.Axios = KP, QP.CanceledError = nP, QP.CancelToken = qP, QP.isCancel = tP, QP.VERSION = BP, QP.toFormData = xN, QP.AxiosError = hN, QP.Cancel = QP.CanceledError, QP.all = function(e) {
|
|
28423
28499
|
return Promise.all(e);
|
|
28424
|
-
},
|
|
28500
|
+
}, QP.spread = JP, QP.isAxiosError = YP, QP.mergeConfig = gP, QP.AxiosHeaders = $N, QP.formToJSON = (e) => BN($.isHTMLForm(e) ? new FormData(e) : e), QP.getAdapter = LP.getAdapter, QP.HttpStatusCode = XP, QP.default = QP;
|
|
28425
28501
|
//#endregion
|
|
28426
28502
|
//#region node_modules/axios/index.js
|
|
28427
|
-
var { Axios:
|
|
28503
|
+
var { Axios: $P, AxiosError: eF, CanceledError: tF, isCancel: nF, CancelToken: rF, VERSION: iF, all: aF, Cancel: oF, isAxiosError: sF, spread: cF, toFormData: lF, AxiosHeaders: uF, HttpStatusCode: dF, formToJSON: fF, getAdapter: pF, mergeConfig: mF } = QP, hF = {
|
|
28428
28504
|
DEBUG: 1e4,
|
|
28429
28505
|
INFO: 2e4,
|
|
28430
28506
|
WARN: 3e4,
|
|
@@ -28432,13 +28508,13 @@ var { Axios: XP, AxiosError: ZP, CanceledError: QP, isCancel: $P, CancelToken: e
|
|
|
28432
28508
|
};
|
|
28433
28509
|
//#endregion
|
|
28434
28510
|
//#region src/utils/logger/trace-utils.ts
|
|
28435
|
-
function
|
|
28511
|
+
function gF() {
|
|
28436
28512
|
let e = crypto.getRandomValues(new Uint8Array(16));
|
|
28437
28513
|
return Array.from(e).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
28438
28514
|
}
|
|
28439
28515
|
//#endregion
|
|
28440
28516
|
//#region src/utils/logger/logger.ts
|
|
28441
|
-
var
|
|
28517
|
+
var _F = class e {
|
|
28442
28518
|
static instance;
|
|
28443
28519
|
contextMap = /* @__PURE__ */ new Map();
|
|
28444
28520
|
static getInstance() {
|
|
@@ -28446,15 +28522,15 @@ var mF = class e {
|
|
|
28446
28522
|
}
|
|
28447
28523
|
startTrace(e) {
|
|
28448
28524
|
let t = {
|
|
28449
|
-
traceId:
|
|
28450
|
-
spanId:
|
|
28525
|
+
traceId: gF(),
|
|
28526
|
+
spanId: gF().substring(0, 16)
|
|
28451
28527
|
};
|
|
28452
28528
|
return this.contextMap.set(e, t), t;
|
|
28453
28529
|
}
|
|
28454
28530
|
startSpan(e) {
|
|
28455
28531
|
let t = this.contextMap.get(e);
|
|
28456
28532
|
if (!t) return this.startTrace(e);
|
|
28457
|
-
let n =
|
|
28533
|
+
let n = gF().substring(0, 16), r = {
|
|
28458
28534
|
traceId: t.traceId,
|
|
28459
28535
|
spanId: n,
|
|
28460
28536
|
parentSpanId: t.spanId
|
|
@@ -28484,13 +28560,13 @@ new class e {
|
|
|
28484
28560
|
};
|
|
28485
28561
|
}
|
|
28486
28562
|
createLogEntry(t, n, r) {
|
|
28487
|
-
let i =
|
|
28563
|
+
let i = _F.getCurrentContext(this.name) ?? _F.startTrace(this.name);
|
|
28488
28564
|
return {
|
|
28489
28565
|
"@timestamp": (/* @__PURE__ */ new Date()).toISOString(),
|
|
28490
28566
|
message: n,
|
|
28491
28567
|
logger_name: this.name,
|
|
28492
28568
|
level: t,
|
|
28493
|
-
level_value:
|
|
28569
|
+
level_value: hF[t],
|
|
28494
28570
|
applicationName: e.globalConfig.applicationName,
|
|
28495
28571
|
traceId: i.traceId,
|
|
28496
28572
|
spanId: i.spanId,
|
|
@@ -28500,7 +28576,7 @@ new class e {
|
|
|
28500
28576
|
};
|
|
28501
28577
|
}
|
|
28502
28578
|
log(t, n, r) {
|
|
28503
|
-
if (!(!this.config.enabled || !e.globalConfig.enabled ||
|
|
28579
|
+
if (!(!this.config.enabled || !e.globalConfig.enabled || hF[t] < hF[this.config.minLogLevel])) {
|
|
28504
28580
|
let e = this.createLogEntry(t, n, r);
|
|
28505
28581
|
console.log(JSON.stringify(e));
|
|
28506
28582
|
}
|
|
@@ -28518,10 +28594,10 @@ new class e {
|
|
|
28518
28594
|
this.log("ERROR", e, t);
|
|
28519
28595
|
}
|
|
28520
28596
|
startSpan() {
|
|
28521
|
-
|
|
28597
|
+
_F.startSpan(this.name);
|
|
28522
28598
|
}
|
|
28523
28599
|
clearTraceContext() {
|
|
28524
|
-
|
|
28600
|
+
_F.clearContext(this.name);
|
|
28525
28601
|
}
|
|
28526
28602
|
setEnabled(e) {
|
|
28527
28603
|
this.config.enabled = e;
|
|
@@ -28545,21 +28621,21 @@ new class e {
|
|
|
28545
28621
|
e.globalConfig.applicationName = t;
|
|
28546
28622
|
}
|
|
28547
28623
|
}("KeycloakService");
|
|
28548
|
-
var
|
|
28549
|
-
function
|
|
28550
|
-
return
|
|
28624
|
+
var vF = null;
|
|
28625
|
+
function yF() {
|
|
28626
|
+
return vF?.token ? `Bearer ${vF.token}` : void 0;
|
|
28551
28627
|
}
|
|
28552
|
-
function
|
|
28553
|
-
return
|
|
28628
|
+
function bF() {
|
|
28629
|
+
return vF;
|
|
28554
28630
|
}
|
|
28555
28631
|
//#endregion
|
|
28556
28632
|
//#region src/api/rest.service.ts
|
|
28557
|
-
var
|
|
28558
|
-
queryCache: new
|
|
28559
|
-
(t.meta?.handleGlobalError ?? !0) && e instanceof
|
|
28633
|
+
var xF = new $j({
|
|
28634
|
+
queryCache: new Qj({ onError: (e, t) => {
|
|
28635
|
+
(t.meta?.handleGlobalError ?? !0) && e instanceof eF && ZA(e);
|
|
28560
28636
|
} }),
|
|
28561
|
-
mutationCache: new
|
|
28562
|
-
(r.meta?.handleGlobalError ?? !0) && e instanceof
|
|
28637
|
+
mutationCache: new Yj({ onError: (e, t, n, r) => {
|
|
28638
|
+
(r.meta?.handleGlobalError ?? !0) && e instanceof eF && ZA(e);
|
|
28563
28639
|
} }),
|
|
28564
28640
|
defaultOptions: {
|
|
28565
28641
|
queries: {
|
|
@@ -28570,39 +28646,39 @@ var vF = new Xj({
|
|
|
28570
28646
|
mutations: { retry: !1 }
|
|
28571
28647
|
}
|
|
28572
28648
|
});
|
|
28573
|
-
function
|
|
28649
|
+
function SF(e, t, n) {
|
|
28574
28650
|
let r = e.startsWith("/") ? e : `/${e}`;
|
|
28575
|
-
return t ? t === "public" ?
|
|
28651
|
+
return t ? t === "public" ? CF(r) : t === "private" ? (r.includes("/public/") && console.warn("[RestService] Private accessScope includes \"/public\" segment:", r), wF(r)) : n ? wF(r) : CF(r) : r;
|
|
28576
28652
|
}
|
|
28577
|
-
function
|
|
28653
|
+
function CF(e) {
|
|
28578
28654
|
return e.startsWith("/public/") ? e : `/public${e}`;
|
|
28579
28655
|
}
|
|
28580
|
-
function
|
|
28656
|
+
function wF(e) {
|
|
28581
28657
|
return e.startsWith("/public/") ? e.replace(/^\/public/, "") : e;
|
|
28582
28658
|
}
|
|
28583
|
-
function
|
|
28659
|
+
function TF(e, t = "") {
|
|
28584
28660
|
return `${e.replace(/\/+$/, "")}${t ? `/${t.replace(/^\/+/, "")}` : ""}`;
|
|
28585
28661
|
}
|
|
28586
|
-
function
|
|
28587
|
-
let r =
|
|
28588
|
-
baseURL:
|
|
28662
|
+
function EF({ baseUrl: e, prefix: t = "", withCollation: n = !0 }) {
|
|
28663
|
+
let r = QP.create({
|
|
28664
|
+
baseURL: TF(e, t),
|
|
28589
28665
|
paramsSerializer: { indexes: null }
|
|
28590
28666
|
});
|
|
28591
28667
|
return r.interceptors.request.use((e) => {
|
|
28592
|
-
let t =
|
|
28593
|
-
e.accessScope && (e.url =
|
|
28594
|
-
let i =
|
|
28595
|
-
return i && !r && (e.headers.Authorization = i), n && (e.headers.Collation =
|
|
28668
|
+
let t = bF()?.authenticated ?? !1, r = e.anonymous ?? !1;
|
|
28669
|
+
e.accessScope && (e.url = SF(e.url || "", e.accessScope, t));
|
|
28670
|
+
let i = yF();
|
|
28671
|
+
return i && !r && (e.headers.Authorization = i), n && (e.headers.Collation = yA.locale), !e.headers.has("Content-Type") && !(e.data instanceof FormData) && (e.headers["Content-Type"] = "application/json"), e.method?.toLowerCase() === "get" && (e.data = {}), e;
|
|
28596
28672
|
}, (e) => Promise.reject(e)), r;
|
|
28597
28673
|
}
|
|
28598
|
-
var
|
|
28599
|
-
function
|
|
28600
|
-
|
|
28674
|
+
var DF;
|
|
28675
|
+
function OF(e, t = "") {
|
|
28676
|
+
DF = EF({
|
|
28601
28677
|
baseUrl: e,
|
|
28602
28678
|
prefix: t
|
|
28603
28679
|
});
|
|
28604
28680
|
}
|
|
28605
|
-
function
|
|
28681
|
+
function kF(e) {
|
|
28606
28682
|
if (!e || typeof e != "object") return null;
|
|
28607
28683
|
let t = e, n = t.url?.api, r = t.url?.apiPaths?.genai;
|
|
28608
28684
|
return !n || !r ? null : {
|
|
@@ -28610,36 +28686,36 @@ function EF(e) {
|
|
|
28610
28686
|
genaiApiPath: r
|
|
28611
28687
|
};
|
|
28612
28688
|
}
|
|
28613
|
-
function
|
|
28614
|
-
let t =
|
|
28689
|
+
function AF(e) {
|
|
28690
|
+
let t = kF(e);
|
|
28615
28691
|
if (!t) throw Error("GenAI API base URL is missing in environment.json.");
|
|
28616
|
-
|
|
28692
|
+
OF(t.apiBaseUrl, t.genaiApiPath);
|
|
28617
28693
|
}
|
|
28618
28694
|
//#endregion
|
|
28619
28695
|
//#region src/api/genai.service.ts
|
|
28620
|
-
async function
|
|
28621
|
-
if (!
|
|
28696
|
+
async function jF(e, t) {
|
|
28697
|
+
if (!DF) throw Error("RestGenaiService is not initialized.");
|
|
28622
28698
|
let n = new URLSearchParams();
|
|
28623
28699
|
n.set("username", e), n.set("password", t);
|
|
28624
|
-
let r = await
|
|
28700
|
+
let r = await DF.post("/login", n, {
|
|
28625
28701
|
anonymous: !0,
|
|
28626
28702
|
headers: { "Content-Type": "application/x-www-form-urlencoded" }
|
|
28627
28703
|
});
|
|
28628
|
-
return r.data?.access_token &&
|
|
28704
|
+
return r.data?.access_token && Sk(r.data.access_token), r.data;
|
|
28629
28705
|
}
|
|
28630
|
-
async function
|
|
28631
|
-
if (!
|
|
28632
|
-
let t =
|
|
28633
|
-
return t && (n.Authorization = `Bearer ${t}`), (await
|
|
28706
|
+
async function MF(e) {
|
|
28707
|
+
if (!DF) throw Error("RestGenaiService is not initialized.");
|
|
28708
|
+
let t = xk(), n = { "Content-Type": "application/json" };
|
|
28709
|
+
return t && (n.Authorization = `Bearer ${t}`), (await DF.post("/agent-message", e, {
|
|
28634
28710
|
anonymous: !0,
|
|
28635
28711
|
headers: n
|
|
28636
28712
|
})).data;
|
|
28637
28713
|
}
|
|
28638
28714
|
//#endregion
|
|
28639
28715
|
//#region src/queries/utils/createApiMutation.ts
|
|
28640
|
-
function
|
|
28716
|
+
function NF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
|
|
28641
28717
|
return function(r) {
|
|
28642
|
-
return
|
|
28718
|
+
return rM({
|
|
28643
28719
|
...n,
|
|
28644
28720
|
...r,
|
|
28645
28721
|
meta: {
|
|
@@ -28653,27 +28729,27 @@ function AF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
|
|
|
28653
28729
|
}
|
|
28654
28730
|
//#endregion
|
|
28655
28731
|
//#region src/queries/genai/useSendAgentMessageMutation.ts
|
|
28656
|
-
var
|
|
28732
|
+
var PF = NF({
|
|
28657
28733
|
mutationKey: ["genai", "agent-message"],
|
|
28658
|
-
mutationFn: async ({ payload: e }) =>
|
|
28734
|
+
mutationFn: async ({ payload: e }) => MF(e)
|
|
28659
28735
|
});
|
|
28660
28736
|
//#endregion
|
|
28661
28737
|
//#region src/hooks/useAgentChat.ts
|
|
28662
|
-
function
|
|
28738
|
+
function FF() {
|
|
28663
28739
|
let e = globalThis.crypto;
|
|
28664
28740
|
return e?.randomUUID ? e.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
28665
28741
|
}
|
|
28666
|
-
function
|
|
28667
|
-
let e =
|
|
28742
|
+
function IF() {
|
|
28743
|
+
let e = tk(), t = rk(), n = PF(), [r, i] = y([]), [a, o] = y(""), [s, c] = y(null), [l, d] = y(!1), [f, p] = y(null), m = v(!1), h = u((e) => {
|
|
28668
28744
|
let t = {
|
|
28669
|
-
id:
|
|
28745
|
+
id: FF(),
|
|
28670
28746
|
sentBy: "user",
|
|
28671
28747
|
text: e
|
|
28672
28748
|
};
|
|
28673
28749
|
i((e) => [...e, t]);
|
|
28674
28750
|
}, []), g = u((e, t) => {
|
|
28675
28751
|
let n = {
|
|
28676
|
-
id:
|
|
28752
|
+
id: FF(),
|
|
28677
28753
|
sentBy: "assistant",
|
|
28678
28754
|
text: e,
|
|
28679
28755
|
createdAt: t
|
|
@@ -28685,19 +28761,19 @@ function NF() {
|
|
|
28685
28761
|
p("Chat is not configured.");
|
|
28686
28762
|
return;
|
|
28687
28763
|
}
|
|
28688
|
-
let a =
|
|
28764
|
+
let a = sk(t);
|
|
28689
28765
|
if (!a) {
|
|
28690
28766
|
p("Chat configuration is missing.");
|
|
28691
28767
|
return;
|
|
28692
28768
|
}
|
|
28693
|
-
let l =
|
|
28769
|
+
let l = ik(e), u = await ak(e);
|
|
28694
28770
|
if (!l || !u) {
|
|
28695
28771
|
p("Missing customer runtime.");
|
|
28696
28772
|
return;
|
|
28697
28773
|
}
|
|
28698
28774
|
d(!0), p(null);
|
|
28699
28775
|
try {
|
|
28700
|
-
let e =
|
|
28776
|
+
let e = dk(await n.mutateAsync({ payload: {
|
|
28701
28777
|
message: r,
|
|
28702
28778
|
chat_id: s,
|
|
28703
28779
|
assistant_id: a,
|
|
@@ -28729,7 +28805,7 @@ function NF() {
|
|
|
28729
28805
|
sendMessage: _,
|
|
28730
28806
|
sendInitialMessage: u(async () => {
|
|
28731
28807
|
if (m.current || l || r.length > 0 || !e || !t) return;
|
|
28732
|
-
let n =
|
|
28808
|
+
let n = ik(e), i = uk(t), a = i ? `${i} ${n}`.trim() : `Hello, my customer id is ${n}`;
|
|
28733
28809
|
m.current = !0, await _(a, { showUserBubble: !1 });
|
|
28734
28810
|
}, [
|
|
28735
28811
|
e,
|
|
@@ -28746,8 +28822,8 @@ function NF() {
|
|
|
28746
28822
|
}
|
|
28747
28823
|
//#endregion
|
|
28748
28824
|
//#region src/hooks/useAgentChatRuntimeInfo.ts
|
|
28749
|
-
function
|
|
28750
|
-
let e =
|
|
28825
|
+
function LF() {
|
|
28826
|
+
let e = tk(), { runtimeInfo: t, setRuntimeInfo: n } = yk(), r = u(async () => {
|
|
28751
28827
|
if (!e) {
|
|
28752
28828
|
n({
|
|
28753
28829
|
customerId: null,
|
|
@@ -28756,7 +28832,7 @@ function PF() {
|
|
|
28756
28832
|
});
|
|
28757
28833
|
return;
|
|
28758
28834
|
}
|
|
28759
|
-
let t =
|
|
28835
|
+
let t = ik(e), r = await ak(e), i = xk();
|
|
28760
28836
|
n({
|
|
28761
28837
|
customerId: t,
|
|
28762
28838
|
hasCustomerToken: !!r,
|
|
@@ -28771,85 +28847,12 @@ function PF() {
|
|
|
28771
28847
|
};
|
|
28772
28848
|
}
|
|
28773
28849
|
//#endregion
|
|
28774
|
-
//#region src/hooks/usePointerInteraction.ts
|
|
28775
|
-
function FF() {
|
|
28776
|
-
let e = v(null);
|
|
28777
|
-
return {
|
|
28778
|
-
startInteraction: u((t) => {
|
|
28779
|
-
let { cursor: n, onMove: r, onEnd: i } = t;
|
|
28780
|
-
document.body.style.cursor = n, document.body.style.userSelect = "none";
|
|
28781
|
-
let a = () => {
|
|
28782
|
-
document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", a), i?.(), e.current = null;
|
|
28783
|
-
};
|
|
28784
|
-
document.addEventListener("pointermove", r), document.addEventListener("pointerup", a), e.current = a;
|
|
28785
|
-
}, []),
|
|
28786
|
-
cleanup: u(() => {
|
|
28787
|
-
e.current?.();
|
|
28788
|
-
}, [])
|
|
28789
|
-
};
|
|
28790
|
-
}
|
|
28791
|
-
//#endregion
|
|
28792
|
-
//#region src/hooks/useDraggable.ts
|
|
28793
|
-
var IF = 4;
|
|
28794
|
-
function LF(e = {}) {
|
|
28795
|
-
let { skipSelector: t = "button, [role=\"button\"], a, input, textarea", onDragChange: n } = e, [r, i] = y({
|
|
28796
|
-
x: 0,
|
|
28797
|
-
y: 0
|
|
28798
|
-
}), [a, o] = y(!1), s = v({
|
|
28799
|
-
startX: 0,
|
|
28800
|
-
startY: 0,
|
|
28801
|
-
startOffset: {
|
|
28802
|
-
x: 0,
|
|
28803
|
-
y: 0
|
|
28804
|
-
}
|
|
28805
|
-
}), { startInteraction: c } = FF();
|
|
28806
|
-
return {
|
|
28807
|
-
offset: r,
|
|
28808
|
-
isDragging: a,
|
|
28809
|
-
handlePointerDown: u((e) => {
|
|
28810
|
-
let a = e.target;
|
|
28811
|
-
if (t && a?.closest(t)) return;
|
|
28812
|
-
let l = e.clientX, u = e.clientY, d = { ...r }, f = 0, p = !1;
|
|
28813
|
-
s.current = {
|
|
28814
|
-
startX: l,
|
|
28815
|
-
startY: u,
|
|
28816
|
-
startOffset: d
|
|
28817
|
-
}, c({
|
|
28818
|
-
cursor: "grab",
|
|
28819
|
-
onMove: (e) => {
|
|
28820
|
-
let t = e.clientX - l, r = e.clientY - u;
|
|
28821
|
-
if (f = Math.abs(t) + Math.abs(r), !p && f >= IF && (p = !0, o(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none"), p) {
|
|
28822
|
-
let e = {
|
|
28823
|
-
x: d.x + t,
|
|
28824
|
-
y: d.y + r
|
|
28825
|
-
};
|
|
28826
|
-
i(e), n?.(e);
|
|
28827
|
-
}
|
|
28828
|
-
},
|
|
28829
|
-
onEnd: () => {
|
|
28830
|
-
p && o(!1);
|
|
28831
|
-
}
|
|
28832
|
-
});
|
|
28833
|
-
}, [
|
|
28834
|
-
r,
|
|
28835
|
-
t,
|
|
28836
|
-
n,
|
|
28837
|
-
c
|
|
28838
|
-
]),
|
|
28839
|
-
style: {
|
|
28840
|
-
transform: `translate(${r.x}px, ${r.y}px)`,
|
|
28841
|
-
cursor: a ? "grabbing" : "grab",
|
|
28842
|
-
touchAction: "none"
|
|
28843
|
-
}
|
|
28844
|
-
};
|
|
28845
|
-
}
|
|
28846
|
-
//#endregion
|
|
28847
28850
|
//#region src/hooks/useResizable.ts
|
|
28848
28851
|
function RF(e = {}) {
|
|
28849
28852
|
let { axis: t = "y", direction: n = 1, onResizeChange: r } = e, [i, a] = y(0), o = v({
|
|
28850
28853
|
startPos: 0,
|
|
28851
28854
|
startOffset: 0
|
|
28852
|
-
}), { startInteraction: s } =
|
|
28855
|
+
}), { startInteraction: s } = XO(), c = t === "y" ? "ns-resize" : t === "x" ? "ew-resize" : "nwse-resize";
|
|
28853
28856
|
return {
|
|
28854
28857
|
offset: i,
|
|
28855
28858
|
handlePointerDown: u((e) => {
|
|
@@ -29005,8 +29008,8 @@ function VF(e = {}) {
|
|
|
29005
29008
|
//#endregion
|
|
29006
29009
|
//#region src/hooks/useAgentChatSpeechLanguage.ts
|
|
29007
29010
|
function HF() {
|
|
29008
|
-
let e =
|
|
29009
|
-
return _(() => e &&
|
|
29011
|
+
let e = tk();
|
|
29012
|
+
return _(() => e && ok(e) || "en-US", [e]);
|
|
29010
29013
|
}
|
|
29011
29014
|
var UF = o({
|
|
29012
29015
|
keycloak: {
|
|
@@ -29038,21 +29041,21 @@ function WF() {
|
|
|
29038
29041
|
}
|
|
29039
29042
|
//#endregion
|
|
29040
29043
|
//#region src/queries/genai/useGenaiLoginMutation.ts
|
|
29041
|
-
var GF =
|
|
29044
|
+
var GF = NF({
|
|
29042
29045
|
mutationKey: ["genai", "login"],
|
|
29043
|
-
mutationFn: async ({ email: e, clientSecret: t }) =>
|
|
29046
|
+
mutationFn: async ({ email: e, clientSecret: t }) => jF(e, t)
|
|
29044
29047
|
});
|
|
29045
29048
|
//#endregion
|
|
29046
29049
|
//#region src/hooks/useGenaiLogin.ts
|
|
29047
29050
|
function KF() {
|
|
29048
|
-
let e = WF(), t =
|
|
29051
|
+
let e = WF(), t = rk(), { mutateAsync: n } = GF(), [r, i] = y(!1), [a, o] = y(null), [s, c] = y(!1), l = v(null);
|
|
29049
29052
|
return f(() => {
|
|
29050
29053
|
(async () => {
|
|
29051
|
-
if (
|
|
29054
|
+
if (xk()) {
|
|
29052
29055
|
c(!0);
|
|
29053
29056
|
return;
|
|
29054
29057
|
}
|
|
29055
|
-
let r = e?.genai?.init ?? null, a = t ?
|
|
29058
|
+
let r = e?.genai?.init ?? null, a = t ? lk(t) : null, s = r ?? a;
|
|
29056
29059
|
if (!s) return;
|
|
29057
29060
|
let u = `${s.email}::${s.clientSecret}`;
|
|
29058
29061
|
if (l.current !== u) {
|
|
@@ -29090,7 +29093,7 @@ function YF({ ui: e }) {
|
|
|
29090
29093
|
let [t, { open: n, close: r }] = mt(!1), i = e?.zIndex ?? qF, a = e?.withinPortal ?? !0, o = e?.drawerWidth ?? 420, s = e?.topOffset ?? 0, c = {
|
|
29091
29094
|
bottom: e?.fabPosition?.bottom ?? JF.bottom,
|
|
29092
29095
|
right: e?.fabPosition?.right ?? JF.right
|
|
29093
|
-
}, { messages: l, composerText: u, setComposerText: d, isLoading: f, error: p, sendMessage: m, sendInitialMessage: h, canSend: g } =
|
|
29096
|
+
}, { messages: l, composerText: u, setComposerText: d, isLoading: f, error: p, sendMessage: m, sendInitialMessage: h, canSend: g } = IF(), { runtimeInfo: v, refreshRuntimeInfo: y } = LF(), b = QO({ skipSelector: "button, input, textarea, [role=\"button\"]" }), x = RF({ axis: "y" }), S = RF({
|
|
29094
29097
|
axis: "x",
|
|
29095
29098
|
direction: -1
|
|
29096
29099
|
}), C = BF([l.length, f]), { isListening: D, isSupported: O, startListening: k, stopListening: A, reset: j } = VF({
|
|
@@ -29104,7 +29107,7 @@ function YF({ ui: e }) {
|
|
|
29104
29107
|
}), []), N = async () => {
|
|
29105
29108
|
n(), await y(), await h();
|
|
29106
29109
|
};
|
|
29107
|
-
return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T(
|
|
29110
|
+
return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T($O, {
|
|
29108
29111
|
onClick: () => void N(),
|
|
29109
29112
|
zIndex: i,
|
|
29110
29113
|
position: c
|
|
@@ -29142,13 +29145,13 @@ function YF({ ui: e }) {
|
|
|
29142
29145
|
//#endregion
|
|
29143
29146
|
//#region src/providers/AgentChatProviders.tsx
|
|
29144
29147
|
function XF({ runtime: e, children: t }) {
|
|
29145
|
-
return /* @__PURE__ */ T(
|
|
29148
|
+
return /* @__PURE__ */ T(ek.Provider, {
|
|
29146
29149
|
value: e,
|
|
29147
29150
|
children: t
|
|
29148
29151
|
});
|
|
29149
29152
|
}
|
|
29150
29153
|
function ZF({ config: e, children: t }) {
|
|
29151
|
-
return /* @__PURE__ */ T(
|
|
29154
|
+
return /* @__PURE__ */ T(nk.Provider, {
|
|
29152
29155
|
value: e,
|
|
29153
29156
|
children: t
|
|
29154
29157
|
});
|
|
@@ -33565,13 +33568,13 @@ async function LB(e) {
|
|
|
33565
33568
|
//#endregion
|
|
33566
33569
|
//#region src/lib/agent-widget.tsx
|
|
33567
33570
|
function RB({ config: e, runtime: t, ui: n }) {
|
|
33568
|
-
return
|
|
33569
|
-
i18n:
|
|
33571
|
+
return yA.locale || yA.activate("en"), /* @__PURE__ */ T(ob, {
|
|
33572
|
+
i18n: yA,
|
|
33570
33573
|
children: /* @__PURE__ */ T(Gn, {
|
|
33571
33574
|
theme: FB,
|
|
33572
33575
|
defaultColorScheme: "auto",
|
|
33573
|
-
children: /* @__PURE__ */ T(
|
|
33574
|
-
client:
|
|
33576
|
+
children: /* @__PURE__ */ T(nM, {
|
|
33577
|
+
client: xF,
|
|
33575
33578
|
children: /* @__PURE__ */ T(ZF, {
|
|
33576
33579
|
config: e,
|
|
33577
33580
|
children: /* @__PURE__ */ T(XF, {
|
|
@@ -33611,7 +33614,7 @@ function HB(e, t) {
|
|
|
33611
33614
|
}
|
|
33612
33615
|
async function UB(e, t) {
|
|
33613
33616
|
let n = await LB(t.environmentUrl);
|
|
33614
|
-
return
|
|
33617
|
+
return AF(n), BB(e, {
|
|
33615
33618
|
config: HB(VB(n), t.config),
|
|
33616
33619
|
runtime: t.runtime,
|
|
33617
33620
|
ui: t.ui
|