bstp-agent-widget 0.2.22 → 0.2.23
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 +888 -901
- package/dist/agent-widget.js.map +1 -1
- package/package.json +1 -1
package/dist/agent-widget.js
CHANGED
|
@@ -23912,106 +23912,20 @@ function YO({ opened: e, onClose: t, zIndex: n, withinPortal: r, messages: i, co
|
|
|
23912
23912
|
}) });
|
|
23913
23913
|
}
|
|
23914
23914
|
//#endregion
|
|
23915
|
-
//#region src/hooks/usePointerInteraction.ts
|
|
23916
|
-
function XO() {
|
|
23917
|
-
let e = v(null);
|
|
23918
|
-
return {
|
|
23919
|
-
startInteraction: u((t) => {
|
|
23920
|
-
let { cursor: n, onMove: r, onEnd: i } = t;
|
|
23921
|
-
document.body.style.cursor = n, document.body.style.userSelect = "none";
|
|
23922
|
-
let a = () => {
|
|
23923
|
-
document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", a), i?.(), e.current = null;
|
|
23924
|
-
};
|
|
23925
|
-
document.addEventListener("pointermove", r), document.addEventListener("pointerup", a), e.current = a;
|
|
23926
|
-
}, []),
|
|
23927
|
-
cleanup: u(() => {
|
|
23928
|
-
e.current?.();
|
|
23929
|
-
}, [])
|
|
23930
|
-
};
|
|
23931
|
-
}
|
|
23932
|
-
//#endregion
|
|
23933
|
-
//#region src/hooks/useDraggable.ts
|
|
23934
|
-
var ZO = 4;
|
|
23935
|
-
function QO(e = {}) {
|
|
23936
|
-
let { skipSelector: t = "button, [role=\"button\"], a, input, textarea", onDragChange: n } = e, [r, i] = y({
|
|
23937
|
-
x: 0,
|
|
23938
|
-
y: 0
|
|
23939
|
-
}), [a, o] = y(!1), s = v({
|
|
23940
|
-
startX: 0,
|
|
23941
|
-
startY: 0,
|
|
23942
|
-
startOffset: {
|
|
23943
|
-
x: 0,
|
|
23944
|
-
y: 0
|
|
23945
|
-
}
|
|
23946
|
-
}), { startInteraction: c } = XO();
|
|
23947
|
-
return {
|
|
23948
|
-
offset: r,
|
|
23949
|
-
isDragging: a,
|
|
23950
|
-
handlePointerDown: u((e) => {
|
|
23951
|
-
let a = e.target;
|
|
23952
|
-
if (t && a?.closest(t)) return;
|
|
23953
|
-
let l = e.clientX, u = e.clientY, d = { ...r }, f = 0, p = !1;
|
|
23954
|
-
s.current = {
|
|
23955
|
-
startX: l,
|
|
23956
|
-
startY: u,
|
|
23957
|
-
startOffset: d
|
|
23958
|
-
}, c({
|
|
23959
|
-
cursor: "grab",
|
|
23960
|
-
onMove: (e) => {
|
|
23961
|
-
let t = e.clientX - l, r = e.clientY - u;
|
|
23962
|
-
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) {
|
|
23963
|
-
let e = {
|
|
23964
|
-
x: d.x + t,
|
|
23965
|
-
y: d.y + r
|
|
23966
|
-
};
|
|
23967
|
-
i(e), n?.(e);
|
|
23968
|
-
}
|
|
23969
|
-
},
|
|
23970
|
-
onEnd: () => {
|
|
23971
|
-
p && o(!1);
|
|
23972
|
-
}
|
|
23973
|
-
});
|
|
23974
|
-
}, [
|
|
23975
|
-
r,
|
|
23976
|
-
t,
|
|
23977
|
-
n,
|
|
23978
|
-
c
|
|
23979
|
-
]),
|
|
23980
|
-
style: {
|
|
23981
|
-
transform: `translate(${r.x}px, ${r.y}px)`,
|
|
23982
|
-
cursor: a ? "grabbing" : "grab",
|
|
23983
|
-
touchAction: "none"
|
|
23984
|
-
}
|
|
23985
|
-
};
|
|
23986
|
-
}
|
|
23987
|
-
//#endregion
|
|
23988
23915
|
//#region src/components/AgentChat/AgentChatFab.tsx
|
|
23989
|
-
function
|
|
23990
|
-
let r = QO({ skipSelector: "" }), i = v(null), a = v(!1), o = (e) => {
|
|
23991
|
-
i.current = {
|
|
23992
|
-
x: e.clientX,
|
|
23993
|
-
y: e.clientY
|
|
23994
|
-
}, a.current = !1, r.handlePointerDown(e);
|
|
23995
|
-
}, s = (e) => {
|
|
23996
|
-
i.current && Math.abs(e.clientX - i.current.x) + Math.abs(e.clientY - i.current.y) >= 4 && (a.current = !0);
|
|
23997
|
-
}, c = () => {
|
|
23998
|
-
a.current || e();
|
|
23999
|
-
};
|
|
23916
|
+
function XO({ onClick: e, zIndex: t, position: n }) {
|
|
24000
23917
|
return /* @__PURE__ */ T("div", {
|
|
24001
|
-
onPointerDown: o,
|
|
24002
|
-
onPointerMove: s,
|
|
24003
23918
|
style: {
|
|
24004
23919
|
position: "fixed",
|
|
24005
23920
|
bottom: `${n.bottom}px`,
|
|
24006
23921
|
right: `${n.right}px`,
|
|
24007
|
-
zIndex: t
|
|
24008
|
-
...r.style
|
|
23922
|
+
zIndex: t
|
|
24009
23923
|
},
|
|
24010
23924
|
children: /* @__PURE__ */ T(_v, {
|
|
24011
23925
|
label: "Open agent widget",
|
|
24012
23926
|
position: "left",
|
|
24013
23927
|
children: /* @__PURE__ */ T(yl, {
|
|
24014
|
-
onClick:
|
|
23928
|
+
onClick: e,
|
|
24015
23929
|
size: "lg",
|
|
24016
23930
|
radius: 999,
|
|
24017
23931
|
variant: "transparent",
|
|
@@ -24039,46 +23953,46 @@ function $O({ onClick: e, zIndex: t, position: n }) {
|
|
|
24039
23953
|
}
|
|
24040
23954
|
//#endregion
|
|
24041
23955
|
//#region src/context/AgentChatRuntimeContext.tsx
|
|
24042
|
-
var
|
|
23956
|
+
var ZO = o(null);
|
|
24043
23957
|
//#endregion
|
|
24044
23958
|
//#region src/hooks/useAgentChatRuntime.ts
|
|
24045
|
-
function
|
|
24046
|
-
return d(
|
|
23959
|
+
function QO() {
|
|
23960
|
+
return d(ZO);
|
|
24047
23961
|
}
|
|
24048
23962
|
//#endregion
|
|
24049
23963
|
//#region src/context/AgentChatConfigContext.tsx
|
|
24050
|
-
var
|
|
23964
|
+
var $O = o(null);
|
|
24051
23965
|
//#endregion
|
|
24052
23966
|
//#region src/hooks/useAgentChatConfig.ts
|
|
24053
|
-
function
|
|
24054
|
-
return d(
|
|
23967
|
+
function ek() {
|
|
23968
|
+
return d($O);
|
|
24055
23969
|
}
|
|
24056
23970
|
//#endregion
|
|
24057
23971
|
//#region src/types/models/agent-chat-runtime.ts
|
|
24058
|
-
function
|
|
23972
|
+
function tk(e) {
|
|
24059
23973
|
return "customerId" in e ? e.customerId : e.getCustomerId();
|
|
24060
23974
|
}
|
|
24061
|
-
async function
|
|
23975
|
+
async function nk(e) {
|
|
24062
23976
|
return "customerToken" in e ? e.customerToken : e.getCustomerToken();
|
|
24063
23977
|
}
|
|
24064
|
-
function
|
|
23978
|
+
function rk(e) {
|
|
24065
23979
|
return "language" in e ? e.language ?? null : "getLanguage" in e && e.getLanguage ? e.getLanguage() : null;
|
|
24066
23980
|
}
|
|
24067
23981
|
//#endregion
|
|
24068
23982
|
//#region src/types/models/agent-chat-config.ts
|
|
24069
|
-
function
|
|
23983
|
+
function ik(e) {
|
|
24070
23984
|
return "assistantId" in e ? e.assistantId : e.getAssistantId();
|
|
24071
23985
|
}
|
|
24072
|
-
function
|
|
23986
|
+
function ak(e) {
|
|
24073
23987
|
return "assistants" in e ? e.assistants ?? [] : "getAssistants" in e ? e.getAssistants?.() ?? [] : [];
|
|
24074
23988
|
}
|
|
24075
|
-
function
|
|
24076
|
-
let t =
|
|
24077
|
-
return t ?
|
|
23989
|
+
function ok(e) {
|
|
23990
|
+
let t = ik(e);
|
|
23991
|
+
return t ? ak(e).find((e) => e.assistantId === t)?.initialMessage ?? null : null;
|
|
24078
23992
|
}
|
|
24079
23993
|
//#endregion
|
|
24080
23994
|
//#region src/api/genai.mapper.ts
|
|
24081
|
-
function
|
|
23995
|
+
function sk(e) {
|
|
24082
23996
|
if (!e || typeof e != "object") return null;
|
|
24083
23997
|
let t = e, n = t.message ?? (Array.isArray(t.messages) ? t.messages[0] : null);
|
|
24084
23998
|
if (!n || typeof n != "object") return null;
|
|
@@ -24091,7 +24005,7 @@ function uk(e) {
|
|
|
24091
24005
|
}
|
|
24092
24006
|
//#endregion
|
|
24093
24007
|
//#region node_modules/zustand/esm/vanilla.mjs
|
|
24094
|
-
var
|
|
24008
|
+
var ck = (e) => {
|
|
24095
24009
|
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
24096
24010
|
let i = typeof e == "function" ? e(t) : e;
|
|
24097
24011
|
if (!Object.is(i, t)) {
|
|
@@ -24105,20 +24019,20 @@ var dk = (e) => {
|
|
|
24105
24019
|
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
24106
24020
|
}, o = t = e(r, i, a);
|
|
24107
24021
|
return a;
|
|
24108
|
-
},
|
|
24109
|
-
function
|
|
24022
|
+
}, lk = ((e) => e ? ck(e) : ck), uk = (e) => e;
|
|
24023
|
+
function dk(e, n = uk) {
|
|
24110
24024
|
let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
|
|
24111
24025
|
return t.useDebugValue(r), r;
|
|
24112
24026
|
}
|
|
24113
|
-
var
|
|
24114
|
-
let t =
|
|
24027
|
+
var fk = (e) => {
|
|
24028
|
+
let t = lk(e), n = (e) => dk(t, e);
|
|
24115
24029
|
return Object.assign(n, t), n;
|
|
24116
|
-
},
|
|
24030
|
+
}, pk = ((e) => e ? fk(e) : fk), mk = { runtimeInfo: {
|
|
24117
24031
|
customerId: null,
|
|
24118
24032
|
hasCustomerToken: !1,
|
|
24119
24033
|
hasGenaiToken: !1
|
|
24120
|
-
} },
|
|
24121
|
-
...
|
|
24034
|
+
} }, hk = pk((e) => ({
|
|
24035
|
+
...mk,
|
|
24122
24036
|
setRuntimeInfo: (t) => e({ runtimeInfo: t }),
|
|
24123
24037
|
updateCustomerId: (t) => e((e) => ({ runtimeInfo: {
|
|
24124
24038
|
...e.runtimeInfo,
|
|
@@ -24132,17 +24046,17 @@ var hk = (e) => {
|
|
|
24132
24046
|
...e.runtimeInfo,
|
|
24133
24047
|
hasGenaiToken: t
|
|
24134
24048
|
} })),
|
|
24135
|
-
resetRuntimeInfo: () => e({ runtimeInfo:
|
|
24136
|
-
})),
|
|
24137
|
-
function
|
|
24138
|
-
return typeof sessionStorage < "u" ? sessionStorage.getItem(
|
|
24049
|
+
resetRuntimeInfo: () => e({ runtimeInfo: mk.runtimeInfo })
|
|
24050
|
+
})), gk = "genai_access_token";
|
|
24051
|
+
function _k() {
|
|
24052
|
+
return typeof sessionStorage < "u" ? sessionStorage.getItem(gk) : null;
|
|
24139
24053
|
}
|
|
24140
|
-
function
|
|
24141
|
-
typeof sessionStorage < "u" && sessionStorage.setItem(
|
|
24054
|
+
function vk(e) {
|
|
24055
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(gk, e);
|
|
24142
24056
|
}
|
|
24143
24057
|
//#endregion
|
|
24144
24058
|
//#region node_modules/moo/moo.js
|
|
24145
|
-
var
|
|
24059
|
+
var yk = /* @__PURE__ */ P(((e, t) => {
|
|
24146
24060
|
(function(e, n) {
|
|
24147
24061
|
typeof define == "function" && define.amd ? define([], n) : typeof t == "object" && t.exports ? t.exports = n() : e.moo = n();
|
|
24148
24062
|
})(e, function() {
|
|
@@ -24459,12 +24373,12 @@ var Sk = /* @__PURE__ */ P(((e, t) => {
|
|
|
24459
24373
|
keywords: x
|
|
24460
24374
|
};
|
|
24461
24375
|
});
|
|
24462
|
-
})),
|
|
24376
|
+
})), bk = /* @__PURE__ */ P(((e) => {
|
|
24463
24377
|
var t = e && e.__importDefault || function(e) {
|
|
24464
24378
|
return e && e.__esModule ? e : { default: e };
|
|
24465
24379
|
};
|
|
24466
24380
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.lexer = e.states = void 0;
|
|
24467
|
-
var n = t(
|
|
24381
|
+
var n = t(yk());
|
|
24468
24382
|
e.states = {
|
|
24469
24383
|
body: {
|
|
24470
24384
|
doubleapos: {
|
|
@@ -24533,9 +24447,9 @@ var Sk = /* @__PURE__ */ P(((e, t) => {
|
|
|
24533
24447
|
}
|
|
24534
24448
|
}
|
|
24535
24449
|
}, e.lexer = n.default.states(e.states);
|
|
24536
|
-
})),
|
|
24450
|
+
})), xk = (/* @__PURE__ */ P(((e) => {
|
|
24537
24451
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ParseError = void 0, e.parse = l;
|
|
24538
|
-
var t =
|
|
24452
|
+
var t = bk(), n = (e) => ({
|
|
24539
24453
|
offset: e.offset,
|
|
24540
24454
|
line: e.line,
|
|
24541
24455
|
col: e.col,
|
|
@@ -24693,22 +24607,22 @@ var Sk = /* @__PURE__ */ P(((e, t) => {
|
|
|
24693
24607
|
function l(e, t = {}) {
|
|
24694
24608
|
return new c(e, t).parse();
|
|
24695
24609
|
}
|
|
24696
|
-
})))(),
|
|
24610
|
+
})))(), Sk = class extends Error {
|
|
24697
24611
|
constructor(e, t, n) {
|
|
24698
24612
|
super(e), this.token = t, this.type = n || "error";
|
|
24699
24613
|
}
|
|
24700
|
-
},
|
|
24701
|
-
function
|
|
24614
|
+
}, Ck = (e) => e < 4 ? "short" : e === 4 ? "long" : "narrow", wk = (e) => e % 2 == 0 ? "2-digit" : "numeric";
|
|
24615
|
+
function Tk(e, t) {
|
|
24702
24616
|
switch (e.char) {
|
|
24703
|
-
case "y": return { year:
|
|
24617
|
+
case "y": return { year: wk(e.width) };
|
|
24704
24618
|
case "r": return {
|
|
24705
24619
|
calendar: "gregory",
|
|
24706
24620
|
year: "numeric"
|
|
24707
24621
|
};
|
|
24708
|
-
default: return t(`${e.desc} is not supported; falling back to year:numeric`,
|
|
24622
|
+
default: return t(`${e.desc} is not supported; falling back to year:numeric`, Sk.WARNING), { year: "numeric" };
|
|
24709
24623
|
}
|
|
24710
24624
|
}
|
|
24711
|
-
function
|
|
24625
|
+
function Ek(e, t) {
|
|
24712
24626
|
switch (e.width) {
|
|
24713
24627
|
case 1: return "numeric";
|
|
24714
24628
|
case 2: return "2-digit";
|
|
@@ -24720,17 +24634,17 @@ function kk(e, t) {
|
|
|
24720
24634
|
return;
|
|
24721
24635
|
}
|
|
24722
24636
|
}
|
|
24723
|
-
function
|
|
24637
|
+
function Dk(e, t) {
|
|
24724
24638
|
let { char: n, desc: r, width: i } = e;
|
|
24725
|
-
if (n === "d") return
|
|
24639
|
+
if (n === "d") return wk(i);
|
|
24726
24640
|
t(`${r} is not supported`);
|
|
24727
24641
|
}
|
|
24728
|
-
function
|
|
24642
|
+
function Ok(e, t) {
|
|
24729
24643
|
let { char: n, desc: r, width: i } = e;
|
|
24730
|
-
return (n === "c" || n === "e") && i < 3 && t(`Numeric value is not supported for ${r}; falling back to weekday:short`,
|
|
24644
|
+
return (n === "c" || n === "e") && i < 3 && t(`Numeric value is not supported for ${r}; falling back to weekday:short`, Sk.WARNING), Ck(i);
|
|
24731
24645
|
}
|
|
24732
|
-
function
|
|
24733
|
-
let t =
|
|
24646
|
+
function kk(e) {
|
|
24647
|
+
let t = wk(e.width), n;
|
|
24734
24648
|
switch (e.char) {
|
|
24735
24649
|
case "h":
|
|
24736
24650
|
n = "h12";
|
|
@@ -24750,7 +24664,7 @@ function Mk(e) {
|
|
|
24750
24664
|
hourCycle: n
|
|
24751
24665
|
} : { hour: t };
|
|
24752
24666
|
}
|
|
24753
|
-
function
|
|
24667
|
+
function Ak(e, t) {
|
|
24754
24668
|
let { char: n, desc: r, width: i } = e;
|
|
24755
24669
|
switch (n) {
|
|
24756
24670
|
case "v":
|
|
@@ -24765,41 +24679,41 @@ function Nk(e, t) {
|
|
|
24765
24679
|
}
|
|
24766
24680
|
return "short";
|
|
24767
24681
|
}
|
|
24768
|
-
function
|
|
24682
|
+
function jk(e, t) {
|
|
24769
24683
|
switch (e.field) {
|
|
24770
|
-
case "era": return { era:
|
|
24771
|
-
case "year": return
|
|
24772
|
-
case "month": return { month:
|
|
24773
|
-
case "day": return { day:
|
|
24774
|
-
case "weekday": return { weekday:
|
|
24684
|
+
case "era": return { era: Ck(e.width) };
|
|
24685
|
+
case "year": return Tk(e, t);
|
|
24686
|
+
case "month": return { month: Ek(e, t) };
|
|
24687
|
+
case "day": return { day: Dk(e, t) };
|
|
24688
|
+
case "weekday": return { weekday: Ok(e, t) };
|
|
24775
24689
|
case "period": return;
|
|
24776
|
-
case "hour": return
|
|
24777
|
-
case "min": return { minute:
|
|
24778
|
-
case "sec": return { second:
|
|
24779
|
-
case "tz": return { timeZoneName:
|
|
24690
|
+
case "hour": return kk(e);
|
|
24691
|
+
case "min": return { minute: wk(e.width) };
|
|
24692
|
+
case "sec": return { second: wk(e.width) };
|
|
24693
|
+
case "tz": return { timeZoneName: Ak(e, t) };
|
|
24780
24694
|
case "quarter":
|
|
24781
24695
|
case "week":
|
|
24782
24696
|
case "sec-frac":
|
|
24783
24697
|
case "ms": t(`${e.desc} is not supported`);
|
|
24784
24698
|
}
|
|
24785
24699
|
}
|
|
24786
|
-
function
|
|
24700
|
+
function Mk(e, t, n = (e) => {
|
|
24787
24701
|
throw e;
|
|
24788
24702
|
}) {
|
|
24789
24703
|
let r = { timeZone: t }, i = [];
|
|
24790
24704
|
for (let t of e) {
|
|
24791
24705
|
let { error: e, field: a, str: o } = t;
|
|
24792
24706
|
if (e) {
|
|
24793
|
-
let r = new
|
|
24707
|
+
let r = new Sk(e.message, t);
|
|
24794
24708
|
r.stack = e.stack, n(r);
|
|
24795
24709
|
}
|
|
24796
|
-
o && n(new
|
|
24797
|
-
let s =
|
|
24710
|
+
o && n(new Sk(`Ignoring string part: ${o}`, t, Sk.WARNING)), a && (i.indexOf(a) === -1 ? i.push(a) : n(new Sk(`Duplicate ${a} token`, t)));
|
|
24711
|
+
let s = jk(t, (e, r) => n(new Sk(e, t, r)));
|
|
24798
24712
|
s && Object.assign(r, s);
|
|
24799
24713
|
}
|
|
24800
24714
|
return r;
|
|
24801
24715
|
}
|
|
24802
|
-
var
|
|
24716
|
+
var Nk = {
|
|
24803
24717
|
G: {
|
|
24804
24718
|
field: "era",
|
|
24805
24719
|
desc: "Era"
|
|
@@ -24960,11 +24874,11 @@ var Ik = {
|
|
|
24960
24874
|
field: "tz",
|
|
24961
24875
|
desc: "Time Zone: ISO8601"
|
|
24962
24876
|
}
|
|
24963
|
-
},
|
|
24964
|
-
function
|
|
24877
|
+
}, Pk = (e) => e >= "A" && e <= "Z" || e >= "a" && e <= "z";
|
|
24878
|
+
function Fk(e, t) {
|
|
24965
24879
|
let n = e[t], r = 1;
|
|
24966
24880
|
for (; e[++t] === n;) ++r;
|
|
24967
|
-
let i =
|
|
24881
|
+
let i = Nk[n];
|
|
24968
24882
|
if (!i) {
|
|
24969
24883
|
let e = `The letter ${n} is not a valid field identifier`;
|
|
24970
24884
|
return {
|
|
@@ -24980,7 +24894,7 @@ function Rk(e, t) {
|
|
|
24980
24894
|
width: r
|
|
24981
24895
|
};
|
|
24982
24896
|
}
|
|
24983
|
-
function
|
|
24897
|
+
function Ik(e, t) {
|
|
24984
24898
|
let n = e[++t], r = 2;
|
|
24985
24899
|
if (n === "'") return {
|
|
24986
24900
|
char: "'",
|
|
@@ -25008,15 +24922,15 @@ function zk(e, t) {
|
|
|
25008
24922
|
n += i;
|
|
25009
24923
|
}
|
|
25010
24924
|
}
|
|
25011
|
-
function
|
|
24925
|
+
function Lk(e, t) {
|
|
25012
24926
|
let n = e[t];
|
|
25013
24927
|
if (!n) return null;
|
|
25014
|
-
if (
|
|
25015
|
-
if (n === "'") return
|
|
24928
|
+
if (Pk(n)) return Fk(e, t);
|
|
24929
|
+
if (n === "'") return Ik(e, t);
|
|
25016
24930
|
let r = n, i = 1;
|
|
25017
24931
|
for (;;) {
|
|
25018
24932
|
let a = e[++t];
|
|
25019
|
-
if (!a ||
|
|
24933
|
+
if (!a || Pk(a) || a === "'") return {
|
|
25020
24934
|
char: n,
|
|
25021
24935
|
str: r,
|
|
25022
24936
|
width: i
|
|
@@ -25024,15 +24938,15 @@ function Bk(e, t) {
|
|
|
25024
24938
|
r += a, i += 1;
|
|
25025
24939
|
}
|
|
25026
24940
|
}
|
|
25027
|
-
function
|
|
24941
|
+
function Rk(e) {
|
|
25028
24942
|
let t = [], n = 0;
|
|
25029
24943
|
for (;;) {
|
|
25030
|
-
let r =
|
|
24944
|
+
let r = Lk(e, n);
|
|
25031
24945
|
if (!r) return t;
|
|
25032
24946
|
t.push(r), n += r.width;
|
|
25033
24947
|
}
|
|
25034
24948
|
}
|
|
25035
|
-
function
|
|
24949
|
+
function zk(e, t) {
|
|
25036
24950
|
return e.filter((e) => e.type !== "content").length ? e.map((e) => {
|
|
25037
24951
|
if (e.type === "content") return t(e.value);
|
|
25038
24952
|
if (e.type === "octothorpe") return "#";
|
|
@@ -25040,7 +24954,7 @@ function Hk(e, t) {
|
|
|
25040
24954
|
if (e.type === "function") {
|
|
25041
24955
|
let t = e?.param?.[0];
|
|
25042
24956
|
if (e.key === "date" && t) {
|
|
25043
|
-
let n =
|
|
24957
|
+
let n = Bk(t.value.trim(), (e) => {
|
|
25044
24958
|
throw Error(`Unable to compile date expression: ${e.message}`);
|
|
25045
24959
|
});
|
|
25046
24960
|
return [
|
|
@@ -25058,7 +24972,7 @@ function Hk(e, t) {
|
|
|
25058
24972
|
let n = e.pluralOffset, r = {};
|
|
25059
24973
|
return e.cases.forEach(({ key: e, tokens: n }) => {
|
|
25060
24974
|
let i = e[0] === "=" ? e.slice(1) : e;
|
|
25061
|
-
r[i] =
|
|
24975
|
+
r[i] = zk(n, t);
|
|
25062
24976
|
}), [
|
|
25063
24977
|
e.arg,
|
|
25064
24978
|
e.type,
|
|
@@ -25069,15 +24983,15 @@ function Hk(e, t) {
|
|
|
25069
24983
|
];
|
|
25070
24984
|
}) : e.map((e) => t(e.value));
|
|
25071
24985
|
}
|
|
25072
|
-
function
|
|
25073
|
-
return /^::/.test(e) ?
|
|
24986
|
+
function Bk(e, t) {
|
|
24987
|
+
return /^::/.test(e) ? Mk(Rk(e.substring(2)), void 0, t) : e;
|
|
25074
24988
|
}
|
|
25075
|
-
function
|
|
25076
|
-
return
|
|
24989
|
+
function Vk(e, t = (e) => e) {
|
|
24990
|
+
return zk((0, xk.parse)(e), t);
|
|
25077
24991
|
}
|
|
25078
|
-
function
|
|
24992
|
+
function Hk(e, t = (e) => e) {
|
|
25079
24993
|
try {
|
|
25080
|
-
return
|
|
24994
|
+
return Vk(e, t);
|
|
25081
24995
|
} catch (t) {
|
|
25082
24996
|
return console.error(`${t.message}
|
|
25083
24997
|
|
|
@@ -25086,12 +25000,12 @@ Message: ${e}`), [e];
|
|
|
25086
25000
|
}
|
|
25087
25001
|
//#endregion
|
|
25088
25002
|
//#region node_modules/@lingui/core/dist/index.mjs
|
|
25089
|
-
var
|
|
25090
|
-
function
|
|
25091
|
-
return [...Array.isArray(e) ? e : [e],
|
|
25003
|
+
var Uk = (e) => typeof e == "string", Wk = (e) => typeof e == "function", Gk = /* @__PURE__ */ new Map(), Kk = "en";
|
|
25004
|
+
function qk(e) {
|
|
25005
|
+
return [...Array.isArray(e) ? e : [e], Kk];
|
|
25092
25006
|
}
|
|
25093
|
-
function
|
|
25094
|
-
let r =
|
|
25007
|
+
function Jk(e, t, n) {
|
|
25008
|
+
let r = qk(e);
|
|
25095
25009
|
n ||= "default";
|
|
25096
25010
|
let i;
|
|
25097
25011
|
if (typeof n == "string") switch (i = {
|
|
@@ -25108,9 +25022,9 @@ function Zk(e, t, n) {
|
|
|
25108
25022
|
break;
|
|
25109
25023
|
}
|
|
25110
25024
|
else i = n;
|
|
25111
|
-
return
|
|
25025
|
+
return Qk(() => $k("date", r, n), () => new Intl.DateTimeFormat(r, i)).format(Uk(t) ? new Date(t) : t);
|
|
25112
25026
|
}
|
|
25113
|
-
function
|
|
25027
|
+
function Yk(e, t, n) {
|
|
25114
25028
|
let r;
|
|
25115
25029
|
if (n ||= "default", typeof n == "string") switch (r = {
|
|
25116
25030
|
second: "numeric",
|
|
@@ -25124,24 +25038,24 @@ function Qk(e, t, n) {
|
|
|
25124
25038
|
case "short": delete r.second;
|
|
25125
25039
|
}
|
|
25126
25040
|
else r = n;
|
|
25127
|
-
return
|
|
25041
|
+
return Jk(e, t, r);
|
|
25128
25042
|
}
|
|
25129
|
-
function
|
|
25130
|
-
let r =
|
|
25131
|
-
return
|
|
25043
|
+
function Xk(e, t, n) {
|
|
25044
|
+
let r = qk(e);
|
|
25045
|
+
return Qk(() => $k("number", r, n), () => new Intl.NumberFormat(r, n)).format(t);
|
|
25132
25046
|
}
|
|
25133
|
-
function
|
|
25134
|
-
let a =
|
|
25047
|
+
function Zk(e, t, n, { offset: r = 0, ...i }) {
|
|
25048
|
+
let a = qk(e), o = t ? Qk(() => $k("plural-ordinal", a), () => new Intl.PluralRules(a, { type: "ordinal" })) : Qk(() => $k("plural-cardinal", a), () => new Intl.PluralRules(a, { type: "cardinal" }));
|
|
25135
25049
|
return i[n] ?? i[o.select(n - r)] ?? i.other;
|
|
25136
25050
|
}
|
|
25137
|
-
function
|
|
25138
|
-
let n = e(), r =
|
|
25139
|
-
return r || (r = t(),
|
|
25051
|
+
function Qk(e, t) {
|
|
25052
|
+
let n = e(), r = Gk.get(n);
|
|
25053
|
+
return r || (r = t(), Gk.set(n, r)), r;
|
|
25140
25054
|
}
|
|
25141
|
-
function
|
|
25055
|
+
function $k(e, t, n) {
|
|
25142
25056
|
return `${e}-${t.join("-")}-${JSON.stringify(n)}`;
|
|
25143
25057
|
}
|
|
25144
|
-
var
|
|
25058
|
+
var eA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, tA = (e) => e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g, (e, t, n) => {
|
|
25145
25059
|
if (t) {
|
|
25146
25060
|
let e = parseInt(t, 16);
|
|
25147
25061
|
return String.fromCharCode(e);
|
|
@@ -25149,31 +25063,31 @@ var rA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, iA = (e) => e.replace(/\\u([a-fA
|
|
|
25149
25063
|
let e = parseInt(n, 16);
|
|
25150
25064
|
return String.fromCharCode(e);
|
|
25151
25065
|
}
|
|
25152
|
-
}),
|
|
25066
|
+
}), nA = "%__lingui_octothorpe__%", rA = (e, t, n = {}) => {
|
|
25153
25067
|
let r = t || e, i = (e) => typeof e == "object" ? e : n[e], a = (e, t) => {
|
|
25154
|
-
let a =
|
|
25155
|
-
return t.replace(new RegExp(
|
|
25068
|
+
let a = Xk(r, e, Object.keys(n).length ? i("number") : void 0);
|
|
25069
|
+
return t.replace(new RegExp(nA, "g"), a);
|
|
25156
25070
|
};
|
|
25157
25071
|
return {
|
|
25158
25072
|
plural: (e, t) => {
|
|
25159
|
-
let { offset: n = 0 } = t, i =
|
|
25073
|
+
let { offset: n = 0 } = t, i = Zk(r, !1, e, t);
|
|
25160
25074
|
return a(e - n, i);
|
|
25161
25075
|
},
|
|
25162
25076
|
selectordinal: (e, t) => {
|
|
25163
|
-
let { offset: n = 0 } = t, i =
|
|
25077
|
+
let { offset: n = 0 } = t, i = Zk(r, !0, e, t);
|
|
25164
25078
|
return a(e - n, i);
|
|
25165
25079
|
},
|
|
25166
|
-
select:
|
|
25167
|
-
number: (e, t) =>
|
|
25168
|
-
date: (e, t) =>
|
|
25169
|
-
time: (e, t) =>
|
|
25080
|
+
select: iA,
|
|
25081
|
+
number: (e, t) => Xk(r, e, i(t) || { style: t }),
|
|
25082
|
+
date: (e, t) => Jk(r, e, i(t) || t),
|
|
25083
|
+
time: (e, t) => Yk(r, e, i(t) || t)
|
|
25170
25084
|
};
|
|
25171
|
-
},
|
|
25172
|
-
function
|
|
25085
|
+
}, iA = (e, t) => t[e] ?? t.other;
|
|
25086
|
+
function aA(e, t, n) {
|
|
25173
25087
|
return (r = {}, i) => {
|
|
25174
|
-
let a =
|
|
25175
|
-
if (n === "#" && t) return e +
|
|
25176
|
-
if (
|
|
25088
|
+
let a = rA(t, n, i), o = (e, t = !1) => Array.isArray(e) ? e.reduce((e, n) => {
|
|
25089
|
+
if (n === "#" && t) return e + nA;
|
|
25090
|
+
if (Uk(n)) return e + n;
|
|
25177
25091
|
let [i, s, c] = n, l = {};
|
|
25178
25092
|
s === "plural" || s === "selectordinal" || s === "select" ? Object.entries(c).forEach(([e, t]) => {
|
|
25179
25093
|
l[e] = o(t, s === "plural" || s === "selectordinal");
|
|
@@ -25185,17 +25099,17 @@ function cA(e, t, n) {
|
|
|
25185
25099
|
} else u = r[i];
|
|
25186
25100
|
return u == null ? e : e + u;
|
|
25187
25101
|
}, "") : e, s = o(e);
|
|
25188
|
-
return
|
|
25102
|
+
return Uk(s) && eA.test(s) ? tA(s) : Uk(s) ? s : s ? String(s) : "";
|
|
25189
25103
|
};
|
|
25190
25104
|
}
|
|
25191
|
-
var
|
|
25105
|
+
var oA = Object.defineProperty, sA = (e, t, n) => t in e ? oA(e, t, {
|
|
25192
25106
|
enumerable: !0,
|
|
25193
25107
|
configurable: !0,
|
|
25194
25108
|
writable: !0,
|
|
25195
25109
|
value: n
|
|
25196
|
-
}) : e[t] = n,
|
|
25110
|
+
}) : e[t] = n, cA = (e, t, n) => (sA(e, typeof t == "symbol" ? t : t + "", n), n), lA = class {
|
|
25197
25111
|
constructor() {
|
|
25198
|
-
|
|
25112
|
+
cA(this, "_events", {});
|
|
25199
25113
|
}
|
|
25200
25114
|
on(e, t) {
|
|
25201
25115
|
var n;
|
|
@@ -25215,14 +25129,14 @@ var lA = Object.defineProperty, uA = (e, t, n) => t in e ? lA(e, t, {
|
|
|
25215
25129
|
let t = this._events[e];
|
|
25216
25130
|
return Array.isArray(t) ? t : !1;
|
|
25217
25131
|
}
|
|
25218
|
-
},
|
|
25132
|
+
}, uA = Object.defineProperty, dA = (e, t, n) => t in e ? uA(e, t, {
|
|
25219
25133
|
enumerable: !0,
|
|
25220
25134
|
configurable: !0,
|
|
25221
25135
|
writable: !0,
|
|
25222
25136
|
value: n
|
|
25223
|
-
}) : e[t] = n,
|
|
25137
|
+
}) : e[t] = n, fA = (e, t, n) => (dA(e, typeof t == "symbol" ? t : t + "", n), n), pA = class extends lA {
|
|
25224
25138
|
constructor(e) {
|
|
25225
|
-
super(),
|
|
25139
|
+
super(), fA(this, "_locale", ""), fA(this, "_locales"), fA(this, "_localeData", {}), fA(this, "_messages", {}), fA(this, "_missing"), fA(this, "_messageCompiler"), fA(this, "t", this._.bind(this)), process.env.NODE_ENV !== "production" && this.setMessagesCompiler(Hk), 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 ?? Kk, e.locales);
|
|
25226
25140
|
}
|
|
25227
25141
|
get locale() {
|
|
25228
25142
|
return this._locale;
|
|
@@ -25262,15 +25176,15 @@ var lA = Object.defineProperty, uA = (e, t, n) => t in e ? lA(e, t, {
|
|
|
25262
25176
|
_(e, t, n) {
|
|
25263
25177
|
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.");
|
|
25264
25178
|
let r = n?.message;
|
|
25265
|
-
e ||= "",
|
|
25179
|
+
e ||= "", Uk(e) || (t = e.values || t, r = e.message, e = e.id);
|
|
25266
25180
|
let i = this.messages[e], a = i === void 0, o = this._missing;
|
|
25267
|
-
if (o && a) return
|
|
25181
|
+
if (o && a) return Wk(o) ? o(this._locale, e) : o;
|
|
25268
25182
|
a && this.emit("missing", {
|
|
25269
25183
|
id: e,
|
|
25270
25184
|
locale: this._locale
|
|
25271
25185
|
});
|
|
25272
25186
|
let s = i || r || e;
|
|
25273
|
-
return
|
|
25187
|
+
return Uk(s) && (this._messageCompiler ? s = this._messageCompiler(s) : console.warn(`Uncompiled message detected! Message:
|
|
25274
25188
|
|
|
25275
25189
|
> ${s}
|
|
25276
25190
|
|
|
@@ -25278,22 +25192,22 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
25278
25192
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
25279
25193
|
|
|
25280
25194
|
Please compile your catalog first.
|
|
25281
|
-
`)),
|
|
25195
|
+
`)), Uk(s) && eA.test(s) ? tA(s) : Uk(s) ? s : aA(s, this._locale, this._locales)(t, n?.formats);
|
|
25282
25196
|
}
|
|
25283
25197
|
date(e, t) {
|
|
25284
|
-
return
|
|
25198
|
+
return Jk(this._locales || this._locale, e, t);
|
|
25285
25199
|
}
|
|
25286
25200
|
number(e, t) {
|
|
25287
|
-
return
|
|
25201
|
+
return Xk(this._locales || this._locale, e, t);
|
|
25288
25202
|
}
|
|
25289
25203
|
};
|
|
25290
|
-
function
|
|
25291
|
-
return new
|
|
25204
|
+
function mA(e = {}) {
|
|
25205
|
+
return new pA(e);
|
|
25292
25206
|
}
|
|
25293
|
-
var
|
|
25207
|
+
var hA = mA();
|
|
25294
25208
|
//#endregion
|
|
25295
25209
|
//#region node_modules/@mantine/store/esm/store.mjs
|
|
25296
|
-
function
|
|
25210
|
+
function gA(e) {
|
|
25297
25211
|
let t = e, n = !1, r = /* @__PURE__ */ new Set();
|
|
25298
25212
|
return {
|
|
25299
25213
|
getState() {
|
|
@@ -25315,7 +25229,7 @@ function yA(e) {
|
|
|
25315
25229
|
}
|
|
25316
25230
|
//#endregion
|
|
25317
25231
|
//#region node_modules/@mantine/notifications/esm/notifications.store.mjs
|
|
25318
|
-
function
|
|
25232
|
+
function _A(e, t, n) {
|
|
25319
25233
|
let r = [], i = [], a = {};
|
|
25320
25234
|
for (let o of e) {
|
|
25321
25235
|
let e = o.position || t;
|
|
@@ -25326,14 +25240,14 @@ function bA(e, t, n) {
|
|
|
25326
25240
|
queue: r
|
|
25327
25241
|
};
|
|
25328
25242
|
}
|
|
25329
|
-
var
|
|
25243
|
+
var vA = gA({
|
|
25330
25244
|
notifications: [],
|
|
25331
25245
|
queue: [],
|
|
25332
25246
|
defaultPosition: "bottom-right",
|
|
25333
25247
|
limit: 5
|
|
25334
25248
|
});
|
|
25335
|
-
function
|
|
25336
|
-
let n = e.getState(), r =
|
|
25249
|
+
function yA(e, t) {
|
|
25250
|
+
let n = e.getState(), r = _A(t([...n.notifications, ...n.queue]), n.defaultPosition, n.limit);
|
|
25337
25251
|
e.setState({
|
|
25338
25252
|
notifications: r.notifications,
|
|
25339
25253
|
queue: r.queue,
|
|
@@ -25341,16 +25255,16 @@ function SA(e, t) {
|
|
|
25341
25255
|
defaultPosition: n.defaultPosition
|
|
25342
25256
|
});
|
|
25343
25257
|
}
|
|
25344
|
-
function
|
|
25258
|
+
function bA(e, t = vA) {
|
|
25345
25259
|
let n = e.id || Oe();
|
|
25346
|
-
return
|
|
25260
|
+
return yA(t, (t) => e.id && t.some((t) => t.id === e.id) ? t : [...t, {
|
|
25347
25261
|
...e,
|
|
25348
25262
|
id: n
|
|
25349
25263
|
}]), n;
|
|
25350
25264
|
}
|
|
25351
25265
|
//#endregion
|
|
25352
25266
|
//#region src/components/VNotification/notification-variant-icons.tsx
|
|
25353
|
-
var
|
|
25267
|
+
var xA = {
|
|
25354
25268
|
danger: /* @__PURE__ */ T(FO, {}),
|
|
25355
25269
|
info: /* @__PURE__ */ T(MO, {}),
|
|
25356
25270
|
success: /* @__PURE__ */ T(NO, {}),
|
|
@@ -25358,43 +25272,43 @@ var wA = {
|
|
|
25358
25272
|
};
|
|
25359
25273
|
//#endregion
|
|
25360
25274
|
//#region src/components/VNotification/showNotification.tsx
|
|
25361
|
-
function
|
|
25362
|
-
let n =
|
|
25363
|
-
|
|
25275
|
+
function SA(e, t) {
|
|
25276
|
+
let n = xA[e];
|
|
25277
|
+
bA({
|
|
25364
25278
|
...t,
|
|
25365
25279
|
variant: e,
|
|
25366
25280
|
icon: n
|
|
25367
25281
|
});
|
|
25368
25282
|
}
|
|
25369
|
-
function
|
|
25370
|
-
|
|
25371
|
-
title:
|
|
25283
|
+
function CA(e) {
|
|
25284
|
+
SA("danger", {
|
|
25285
|
+
title: hA._({ id: "SlfejT" }),
|
|
25372
25286
|
...e
|
|
25373
25287
|
});
|
|
25374
25288
|
}
|
|
25375
25289
|
//#endregion
|
|
25376
25290
|
//#region src/constant/error-messages.constant.ts
|
|
25377
|
-
function
|
|
25378
|
-
return
|
|
25291
|
+
function wA() {
|
|
25292
|
+
return hA._({ id: "Qlh+W2" });
|
|
25379
25293
|
}
|
|
25380
|
-
function
|
|
25294
|
+
function TA(e, t) {
|
|
25381
25295
|
let {} = t ?? {};
|
|
25382
25296
|
return {}[e];
|
|
25383
25297
|
}
|
|
25384
|
-
function
|
|
25298
|
+
function EA(e) {
|
|
25385
25299
|
return e ? {
|
|
25386
|
-
401:
|
|
25387
|
-
403:
|
|
25388
|
-
404:
|
|
25389
|
-
500:
|
|
25390
|
-
502:
|
|
25391
|
-
503:
|
|
25392
|
-
504:
|
|
25300
|
+
401: hA._({ id: "9cOLBO" }),
|
|
25301
|
+
403: hA._({ id: "qriaXz" }),
|
|
25302
|
+
404: hA._({ id: "373i3G" }),
|
|
25303
|
+
500: hA._({ id: "lkE00/" }),
|
|
25304
|
+
502: hA._({ id: "9dPdtH" }),
|
|
25305
|
+
503: hA._({ id: "Vw36Gt" }),
|
|
25306
|
+
504: hA._({ id: "3R0fAs" })
|
|
25393
25307
|
}[e] : "";
|
|
25394
25308
|
}
|
|
25395
25309
|
//#endregion
|
|
25396
25310
|
//#region src/utils/local-storage.utils.ts
|
|
25397
|
-
function
|
|
25311
|
+
function DA(e, t = null) {
|
|
25398
25312
|
let n = localStorage.getItem(e);
|
|
25399
25313
|
if (n === null) return t;
|
|
25400
25314
|
try {
|
|
@@ -25406,33 +25320,33 @@ function AA(e, t = null) {
|
|
|
25406
25320
|
}
|
|
25407
25321
|
//#endregion
|
|
25408
25322
|
//#region src/utils/debug.utils.ts
|
|
25409
|
-
function
|
|
25410
|
-
return
|
|
25323
|
+
function OA() {
|
|
25324
|
+
return DA(Ky.DEBUG, !1);
|
|
25411
25325
|
}
|
|
25412
|
-
function
|
|
25413
|
-
return
|
|
25326
|
+
function kA() {
|
|
25327
|
+
return OA() ? DA(Ky.SHOW_HTTP_ERROR_DEBUG_TOASTER, !1) : !1;
|
|
25414
25328
|
}
|
|
25415
25329
|
//#endregion
|
|
25416
25330
|
//#region src/utils/error.utils.tsx
|
|
25417
|
-
function
|
|
25331
|
+
function AA(e) {
|
|
25418
25332
|
return e?.operationResultCode !== void 0;
|
|
25419
25333
|
}
|
|
25420
|
-
function
|
|
25334
|
+
function jA(e) {
|
|
25421
25335
|
return e?.error !== void 0;
|
|
25422
25336
|
}
|
|
25423
|
-
function
|
|
25337
|
+
function MA(e) {
|
|
25424
25338
|
let t = e.response?.headers;
|
|
25425
25339
|
if (!t) return !1;
|
|
25426
25340
|
let n = "application/problem+json", r = "Content-Type";
|
|
25427
25341
|
return typeof t.get == "function" ? t.get(r) === n : t[r] === n;
|
|
25428
25342
|
}
|
|
25429
|
-
function
|
|
25430
|
-
return
|
|
25343
|
+
function NA(e) {
|
|
25344
|
+
return AA(e) ? e.description : jA(e) ? e.error : e?.message || e?.errorCode || wA();
|
|
25431
25345
|
}
|
|
25432
|
-
function
|
|
25433
|
-
return e.code ?
|
|
25346
|
+
function PA(e) {
|
|
25347
|
+
return e.code ? TA(e.code) || wA() : "";
|
|
25434
25348
|
}
|
|
25435
|
-
function
|
|
25349
|
+
function FA(e) {
|
|
25436
25350
|
return {
|
|
25437
25351
|
url: e.config?.url,
|
|
25438
25352
|
method: e.config?.method?.toUpperCase(),
|
|
@@ -25440,26 +25354,26 @@ function RA(e) {
|
|
|
25440
25354
|
response: e.response?.data
|
|
25441
25355
|
};
|
|
25442
25356
|
}
|
|
25443
|
-
function
|
|
25357
|
+
function IA(e) {
|
|
25444
25358
|
try {
|
|
25445
25359
|
return JSON.stringify(e, null, 2);
|
|
25446
25360
|
} catch {
|
|
25447
25361
|
return String(e);
|
|
25448
25362
|
}
|
|
25449
25363
|
}
|
|
25450
|
-
function
|
|
25364
|
+
function LA({ url: e, method: t, status: n, response: r }) {
|
|
25451
25365
|
let i = r != null && Object.keys(r).length > 0;
|
|
25452
25366
|
return /* @__PURE__ */ E(zv, { children: [[
|
|
25453
25367
|
{
|
|
25454
|
-
label:
|
|
25368
|
+
label: hA._({ id: "IagCbF" }),
|
|
25455
25369
|
value: e
|
|
25456
25370
|
},
|
|
25457
25371
|
{
|
|
25458
|
-
label:
|
|
25372
|
+
label: hA._({ id: "fiPesM" }),
|
|
25459
25373
|
value: t
|
|
25460
25374
|
},
|
|
25461
25375
|
{
|
|
25462
|
-
label:
|
|
25376
|
+
label: hA._({ id: "uAQUqI" }),
|
|
25463
25377
|
value: n
|
|
25464
25378
|
}
|
|
25465
25379
|
].filter((e) => !!e.value).map(({ label: e, value: t }, n) => /* @__PURE__ */ E(kl, {
|
|
@@ -25475,36 +25389,36 @@ function BA({ url: e, method: t, status: n, response: r }) {
|
|
|
25475
25389
|
}, n)), i && /* @__PURE__ */ T(Lp, {
|
|
25476
25390
|
block: !0,
|
|
25477
25391
|
lh: 1.2,
|
|
25478
|
-
children:
|
|
25392
|
+
children: IA(r)
|
|
25479
25393
|
})] });
|
|
25480
25394
|
}
|
|
25481
|
-
function
|
|
25395
|
+
function RA(e) {
|
|
25482
25396
|
let t = e.response?.data;
|
|
25483
|
-
return
|
|
25397
|
+
return AA(t) ? t.operationResultCode : jA(t) ? t.error : t?.errorCode || t?.code || t?.message || "";
|
|
25484
25398
|
}
|
|
25485
|
-
function
|
|
25399
|
+
function zA(e) {
|
|
25486
25400
|
return e.response?.data?.status || e.response?.status || e.status;
|
|
25487
25401
|
}
|
|
25488
|
-
function
|
|
25489
|
-
let t = e.response?.data, n =
|
|
25402
|
+
function BA(e) {
|
|
25403
|
+
let t = e.response?.data, n = RA(e);
|
|
25490
25404
|
if (n) {
|
|
25491
|
-
let e =
|
|
25405
|
+
let e = TA(n);
|
|
25492
25406
|
if (e) return e;
|
|
25493
25407
|
}
|
|
25494
|
-
return
|
|
25408
|
+
return NA(t);
|
|
25495
25409
|
}
|
|
25496
|
-
function
|
|
25410
|
+
function VA(e) {
|
|
25497
25411
|
let t = e.response?.data;
|
|
25498
|
-
return
|
|
25412
|
+
return PA(t) || EA(zA(e));
|
|
25499
25413
|
}
|
|
25500
|
-
function
|
|
25501
|
-
return e.response?.data ?
|
|
25414
|
+
function HA(e) {
|
|
25415
|
+
return e.response?.data ? MA(e) ? VA(e) : BA(e) : e.message;
|
|
25502
25416
|
}
|
|
25503
|
-
function
|
|
25417
|
+
function UA(e) {
|
|
25504
25418
|
return e.response?.data?.errorId;
|
|
25505
25419
|
}
|
|
25506
|
-
function
|
|
25507
|
-
let t =
|
|
25420
|
+
function WA(e) {
|
|
25421
|
+
let t = HA(e), n = MA(e) ? UA(e) : void 0;
|
|
25508
25422
|
return n ? /* @__PURE__ */ E(zv, {
|
|
25509
25423
|
gap: 8,
|
|
25510
25424
|
children: [/* @__PURE__ */ T(Xd, {
|
|
@@ -25515,34 +25429,34 @@ function qA(e) {
|
|
|
25515
25429
|
c: "var(--mantine-custom-color-danger-dark)",
|
|
25516
25430
|
size: "sm",
|
|
25517
25431
|
children: [
|
|
25518
|
-
|
|
25432
|
+
hA._({ id: "jf+o1U" }),
|
|
25519
25433
|
": ",
|
|
25520
25434
|
n
|
|
25521
25435
|
]
|
|
25522
25436
|
})]
|
|
25523
25437
|
}) : t;
|
|
25524
25438
|
}
|
|
25525
|
-
function
|
|
25526
|
-
if (!e) return
|
|
25527
|
-
if (
|
|
25528
|
-
let t =
|
|
25529
|
-
return Object.values(t).some(Boolean) ? /* @__PURE__ */ T(zv, { children:
|
|
25439
|
+
function GA(e) {
|
|
25440
|
+
if (!e) return wA();
|
|
25441
|
+
if (kA()) {
|
|
25442
|
+
let t = FA(e);
|
|
25443
|
+
return Object.values(t).some(Boolean) ? /* @__PURE__ */ T(zv, { children: LA(t) }) : WA(e);
|
|
25530
25444
|
}
|
|
25531
|
-
return
|
|
25445
|
+
return WA(e);
|
|
25532
25446
|
}
|
|
25533
|
-
function
|
|
25534
|
-
return
|
|
25447
|
+
function KA() {
|
|
25448
|
+
return kA() ? hA._({ id: "J5ej6L" }) : hA._({ id: "SlfejT" });
|
|
25535
25449
|
}
|
|
25536
|
-
function
|
|
25537
|
-
|
|
25538
|
-
title:
|
|
25539
|
-
message:
|
|
25540
|
-
autoClose:
|
|
25450
|
+
function qA(e) {
|
|
25451
|
+
CA({
|
|
25452
|
+
title: KA(),
|
|
25453
|
+
message: GA(e),
|
|
25454
|
+
autoClose: kA() ? !1 : 5e3
|
|
25541
25455
|
});
|
|
25542
25456
|
}
|
|
25543
25457
|
//#endregion
|
|
25544
25458
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
25545
|
-
var
|
|
25459
|
+
var JA = class {
|
|
25546
25460
|
constructor() {
|
|
25547
25461
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
25548
25462
|
}
|
|
@@ -25556,7 +25470,7 @@ var ZA = class {
|
|
|
25556
25470
|
}
|
|
25557
25471
|
onSubscribe() {}
|
|
25558
25472
|
onUnsubscribe() {}
|
|
25559
|
-
},
|
|
25473
|
+
}, YA = new class extends JA {
|
|
25560
25474
|
#e;
|
|
25561
25475
|
#t;
|
|
25562
25476
|
#n;
|
|
@@ -25593,13 +25507,13 @@ var ZA = class {
|
|
|
25593
25507
|
isFocused() {
|
|
25594
25508
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
25595
25509
|
}
|
|
25596
|
-
}(),
|
|
25510
|
+
}(), XA = {
|
|
25597
25511
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
25598
25512
|
clearTimeout: (e) => clearTimeout(e),
|
|
25599
25513
|
setInterval: (e, t) => setInterval(e, t),
|
|
25600
25514
|
clearInterval: (e) => clearInterval(e)
|
|
25601
|
-
},
|
|
25602
|
-
#e =
|
|
25515
|
+
}, ZA = new class {
|
|
25516
|
+
#e = XA;
|
|
25603
25517
|
#t = !1;
|
|
25604
25518
|
setTimeoutProvider(e) {
|
|
25605
25519
|
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.", {
|
|
@@ -25620,34 +25534,34 @@ var ZA = class {
|
|
|
25620
25534
|
this.#e.clearInterval(e);
|
|
25621
25535
|
}
|
|
25622
25536
|
}();
|
|
25623
|
-
function
|
|
25537
|
+
function QA(e) {
|
|
25624
25538
|
setTimeout(e, 0);
|
|
25625
25539
|
}
|
|
25626
25540
|
//#endregion
|
|
25627
25541
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
25628
|
-
var
|
|
25629
|
-
function
|
|
25630
|
-
function
|
|
25542
|
+
var $A = typeof window > "u" || "Deno" in globalThis;
|
|
25543
|
+
function ej() {}
|
|
25544
|
+
function tj(e, t) {
|
|
25631
25545
|
return typeof e == "function" ? e(t) : e;
|
|
25632
25546
|
}
|
|
25633
|
-
function
|
|
25547
|
+
function nj(e) {
|
|
25634
25548
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
25635
25549
|
}
|
|
25636
|
-
function
|
|
25550
|
+
function rj(e, t) {
|
|
25637
25551
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
25638
25552
|
}
|
|
25639
|
-
function
|
|
25553
|
+
function ij(e, t) {
|
|
25640
25554
|
return typeof e == "function" ? e(t) : e;
|
|
25641
25555
|
}
|
|
25642
|
-
function
|
|
25556
|
+
function aj(e, t) {
|
|
25643
25557
|
return typeof e == "function" ? e(t) : e;
|
|
25644
25558
|
}
|
|
25645
|
-
function
|
|
25559
|
+
function oj(e, t) {
|
|
25646
25560
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
25647
25561
|
if (o) {
|
|
25648
25562
|
if (r) {
|
|
25649
|
-
if (t.queryHash !==
|
|
25650
|
-
} else if (!
|
|
25563
|
+
if (t.queryHash !== cj(o, t.options)) return !1;
|
|
25564
|
+
} else if (!uj(t.queryKey, o)) return !1;
|
|
25651
25565
|
}
|
|
25652
25566
|
if (n !== "all") {
|
|
25653
25567
|
let e = t.isActive();
|
|
@@ -25655,98 +25569,98 @@ function lj(e, t) {
|
|
|
25655
25569
|
}
|
|
25656
25570
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
25657
25571
|
}
|
|
25658
|
-
function
|
|
25572
|
+
function sj(e, t) {
|
|
25659
25573
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
25660
25574
|
if (a) {
|
|
25661
25575
|
if (!t.options.mutationKey) return !1;
|
|
25662
25576
|
if (n) {
|
|
25663
|
-
if (
|
|
25664
|
-
} else if (!
|
|
25577
|
+
if (lj(t.options.mutationKey) !== lj(a)) return !1;
|
|
25578
|
+
} else if (!uj(t.options.mutationKey, a)) return !1;
|
|
25665
25579
|
}
|
|
25666
25580
|
return !(r && t.state.status !== r || i && !i(t));
|
|
25667
25581
|
}
|
|
25668
|
-
function
|
|
25669
|
-
return (t?.queryKeyHashFn ||
|
|
25582
|
+
function cj(e, t) {
|
|
25583
|
+
return (t?.queryKeyHashFn || lj)(e);
|
|
25670
25584
|
}
|
|
25671
|
-
function
|
|
25672
|
-
return JSON.stringify(e, (e, t) =>
|
|
25585
|
+
function lj(e) {
|
|
25586
|
+
return JSON.stringify(e, (e, t) => hj(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
25673
25587
|
}
|
|
25674
|
-
function
|
|
25675
|
-
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
25588
|
+
function uj(e, t) {
|
|
25589
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => uj(e[n], t[n])) : !1;
|
|
25676
25590
|
}
|
|
25677
|
-
var
|
|
25678
|
-
function
|
|
25591
|
+
var dj = Object.prototype.hasOwnProperty;
|
|
25592
|
+
function fj(e, t, n = 0) {
|
|
25679
25593
|
if (e === t) return e;
|
|
25680
25594
|
if (n > 500) return t;
|
|
25681
|
-
let r =
|
|
25682
|
-
if (!r && !(
|
|
25595
|
+
let r = mj(e) && mj(t);
|
|
25596
|
+
if (!r && !(hj(e) && hj(t))) return t;
|
|
25683
25597
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
25684
25598
|
for (let l = 0; l < o; l++) {
|
|
25685
25599
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
25686
25600
|
if (u === d) {
|
|
25687
|
-
s[o] = u, (r ? l < i :
|
|
25601
|
+
s[o] = u, (r ? l < i : dj.call(e, o)) && c++;
|
|
25688
25602
|
continue;
|
|
25689
25603
|
}
|
|
25690
25604
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
25691
25605
|
s[o] = d;
|
|
25692
25606
|
continue;
|
|
25693
25607
|
}
|
|
25694
|
-
let f =
|
|
25608
|
+
let f = fj(u, d, n + 1);
|
|
25695
25609
|
s[o] = f, f === u && c++;
|
|
25696
25610
|
}
|
|
25697
25611
|
return i === o && c === i ? e : s;
|
|
25698
25612
|
}
|
|
25699
|
-
function
|
|
25613
|
+
function pj(e, t) {
|
|
25700
25614
|
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
25701
25615
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
25702
25616
|
return !0;
|
|
25703
25617
|
}
|
|
25704
|
-
function
|
|
25618
|
+
function mj(e) {
|
|
25705
25619
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
25706
25620
|
}
|
|
25707
|
-
function
|
|
25708
|
-
if (!
|
|
25621
|
+
function hj(e) {
|
|
25622
|
+
if (!gj(e)) return !1;
|
|
25709
25623
|
let t = e.constructor;
|
|
25710
25624
|
if (t === void 0) return !0;
|
|
25711
25625
|
let n = t.prototype;
|
|
25712
|
-
return !(!
|
|
25626
|
+
return !(!gj(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
25713
25627
|
}
|
|
25714
|
-
function
|
|
25628
|
+
function gj(e) {
|
|
25715
25629
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
25716
25630
|
}
|
|
25717
|
-
function
|
|
25631
|
+
function _j(e) {
|
|
25718
25632
|
return new Promise((t) => {
|
|
25719
|
-
|
|
25633
|
+
ZA.setTimeout(t, e);
|
|
25720
25634
|
});
|
|
25721
25635
|
}
|
|
25722
|
-
function
|
|
25636
|
+
function vj(e, t, n) {
|
|
25723
25637
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
25724
25638
|
if (n.structuralSharing !== !1) {
|
|
25725
25639
|
if (process.env.NODE_ENV !== "production") try {
|
|
25726
|
-
return
|
|
25640
|
+
return fj(e, t);
|
|
25727
25641
|
} catch (e) {
|
|
25728
25642
|
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;
|
|
25729
25643
|
}
|
|
25730
|
-
return
|
|
25644
|
+
return fj(e, t);
|
|
25731
25645
|
}
|
|
25732
25646
|
return t;
|
|
25733
25647
|
}
|
|
25734
|
-
function
|
|
25648
|
+
function yj(e, t, n = 0) {
|
|
25735
25649
|
let r = [...e, t];
|
|
25736
25650
|
return n && r.length > n ? r.slice(1) : r;
|
|
25737
25651
|
}
|
|
25738
|
-
function
|
|
25652
|
+
function bj(e, t, n = 0) {
|
|
25739
25653
|
let r = [t, ...e];
|
|
25740
25654
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
25741
25655
|
}
|
|
25742
|
-
var
|
|
25743
|
-
function
|
|
25744
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
25656
|
+
var xj = /* @__PURE__ */ Symbol();
|
|
25657
|
+
function Sj(e, t) {
|
|
25658
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === xj && 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 === xj ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
25745
25659
|
}
|
|
25746
|
-
function
|
|
25660
|
+
function Cj(e, t) {
|
|
25747
25661
|
return typeof e == "function" ? e(...t) : !!e;
|
|
25748
25662
|
}
|
|
25749
|
-
function
|
|
25663
|
+
function wj(e, t, n) {
|
|
25750
25664
|
let r = !1, i;
|
|
25751
25665
|
return Object.defineProperty(e, "signal", {
|
|
25752
25666
|
enumerable: !0,
|
|
@@ -25755,8 +25669,8 @@ function Dj(e, t, n) {
|
|
|
25755
25669
|
}
|
|
25756
25670
|
//#endregion
|
|
25757
25671
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
25758
|
-
var
|
|
25759
|
-
let e = () =>
|
|
25672
|
+
var Tj = /* @__PURE__ */ (() => {
|
|
25673
|
+
let e = () => $A;
|
|
25760
25674
|
return {
|
|
25761
25675
|
isServer() {
|
|
25762
25676
|
return e();
|
|
@@ -25768,7 +25682,7 @@ var Oj = /* @__PURE__ */ (() => {
|
|
|
25768
25682
|
})();
|
|
25769
25683
|
//#endregion
|
|
25770
25684
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
25771
|
-
function
|
|
25685
|
+
function Ej() {
|
|
25772
25686
|
let e, t, n = new Promise((n, r) => {
|
|
25773
25687
|
e = n, t = r;
|
|
25774
25688
|
});
|
|
@@ -25790,13 +25704,13 @@ function kj() {
|
|
|
25790
25704
|
}
|
|
25791
25705
|
//#endregion
|
|
25792
25706
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
25793
|
-
var
|
|
25794
|
-
function
|
|
25707
|
+
var Dj = QA;
|
|
25708
|
+
function Oj() {
|
|
25795
25709
|
let e = [], t = 0, n = (e) => {
|
|
25796
25710
|
e();
|
|
25797
25711
|
}, r = (e) => {
|
|
25798
25712
|
e();
|
|
25799
|
-
}, i =
|
|
25713
|
+
}, i = Dj, a = (r) => {
|
|
25800
25714
|
t ? e.push(r) : i(() => {
|
|
25801
25715
|
n(r);
|
|
25802
25716
|
});
|
|
@@ -25838,7 +25752,7 @@ function jj() {
|
|
|
25838
25752
|
}
|
|
25839
25753
|
};
|
|
25840
25754
|
}
|
|
25841
|
-
var
|
|
25755
|
+
var kj = Oj(), Aj = new class extends JA {
|
|
25842
25756
|
#e = !0;
|
|
25843
25757
|
#t;
|
|
25844
25758
|
#n;
|
|
@@ -25872,28 +25786,28 @@ var Mj = jj(), Nj = new class extends ZA {
|
|
|
25872
25786
|
}();
|
|
25873
25787
|
//#endregion
|
|
25874
25788
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
25875
|
-
function
|
|
25789
|
+
function jj(e) {
|
|
25876
25790
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
25877
25791
|
}
|
|
25878
|
-
function
|
|
25879
|
-
return (e ?? "online") === "online" ?
|
|
25792
|
+
function Mj(e) {
|
|
25793
|
+
return (e ?? "online") === "online" ? Aj.isOnline() : !0;
|
|
25880
25794
|
}
|
|
25881
|
-
var
|
|
25795
|
+
var Nj = class extends Error {
|
|
25882
25796
|
constructor(e) {
|
|
25883
25797
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
25884
25798
|
}
|
|
25885
25799
|
};
|
|
25886
|
-
function
|
|
25887
|
-
let t = !1, n = 0, r, i =
|
|
25800
|
+
function Pj(e) {
|
|
25801
|
+
let t = !1, n = 0, r, i = Ej(), a = () => i.status !== "pending", o = (t) => {
|
|
25888
25802
|
if (!a()) {
|
|
25889
|
-
let n = new
|
|
25803
|
+
let n = new Nj(t);
|
|
25890
25804
|
f(n), e.onCancel?.(n);
|
|
25891
25805
|
}
|
|
25892
25806
|
}, s = () => {
|
|
25893
25807
|
t = !0;
|
|
25894
25808
|
}, c = () => {
|
|
25895
25809
|
t = !1;
|
|
25896
|
-
}, l = () =>
|
|
25810
|
+
}, l = () => YA.isFocused() && (e.networkMode === "always" || Aj.isOnline()) && e.canRun(), u = () => Mj(e.networkMode) && e.canRun(), d = (e) => {
|
|
25897
25811
|
a() || (r?.(), i.resolve(e));
|
|
25898
25812
|
}, f = (e) => {
|
|
25899
25813
|
a() || (r?.(), i.reject(e));
|
|
@@ -25913,12 +25827,12 @@ function Lj(e) {
|
|
|
25913
25827
|
}
|
|
25914
25828
|
Promise.resolve(r).then(d).catch((r) => {
|
|
25915
25829
|
if (a()) return;
|
|
25916
|
-
let i = e.retry ?? (
|
|
25830
|
+
let i = e.retry ?? (Tj.isServer() ? 0 : 3), o = e.retryDelay ?? jj, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
25917
25831
|
if (t || !c) {
|
|
25918
25832
|
f(r);
|
|
25919
25833
|
return;
|
|
25920
25834
|
}
|
|
25921
|
-
n++, e.onFail?.(n, r),
|
|
25835
|
+
n++, e.onFail?.(n, r), _j(s).then(() => l() ? void 0 : p()).then(() => {
|
|
25922
25836
|
t ? f(r) : m();
|
|
25923
25837
|
});
|
|
25924
25838
|
});
|
|
@@ -25936,23 +25850,23 @@ function Lj(e) {
|
|
|
25936
25850
|
}
|
|
25937
25851
|
//#endregion
|
|
25938
25852
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
25939
|
-
var
|
|
25853
|
+
var Fj = class {
|
|
25940
25854
|
#e;
|
|
25941
25855
|
destroy() {
|
|
25942
25856
|
this.clearGcTimeout();
|
|
25943
25857
|
}
|
|
25944
25858
|
scheduleGc() {
|
|
25945
|
-
this.clearGcTimeout(),
|
|
25859
|
+
this.clearGcTimeout(), nj(this.gcTime) && (this.#e = ZA.setTimeout(() => {
|
|
25946
25860
|
this.optionalRemove();
|
|
25947
25861
|
}, this.gcTime));
|
|
25948
25862
|
}
|
|
25949
25863
|
updateGcTime(e) {
|
|
25950
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
25864
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (Tj.isServer() ? Infinity : 300 * 1e3));
|
|
25951
25865
|
}
|
|
25952
25866
|
clearGcTimeout() {
|
|
25953
|
-
this.#e &&= (
|
|
25867
|
+
this.#e &&= (ZA.clearTimeout(this.#e), void 0);
|
|
25954
25868
|
}
|
|
25955
|
-
},
|
|
25869
|
+
}, Ij = class extends Fj {
|
|
25956
25870
|
#e;
|
|
25957
25871
|
#t;
|
|
25958
25872
|
#n;
|
|
@@ -25961,7 +25875,7 @@ var Rj = class {
|
|
|
25961
25875
|
#a;
|
|
25962
25876
|
#o;
|
|
25963
25877
|
constructor(e) {
|
|
25964
|
-
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 =
|
|
25878
|
+
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 = zj(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
|
|
25965
25879
|
}
|
|
25966
25880
|
get meta() {
|
|
25967
25881
|
return this.options.meta;
|
|
@@ -25974,15 +25888,15 @@ var Rj = class {
|
|
|
25974
25888
|
...this.#a,
|
|
25975
25889
|
...e
|
|
25976
25890
|
}, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
25977
|
-
let e =
|
|
25978
|
-
e.data !== void 0 && (this.setState(
|
|
25891
|
+
let e = zj(this.options);
|
|
25892
|
+
e.data !== void 0 && (this.setState(Rj(e.data, e.dataUpdatedAt)), this.#e = e);
|
|
25979
25893
|
}
|
|
25980
25894
|
}
|
|
25981
25895
|
optionalRemove() {
|
|
25982
25896
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#n.remove(this);
|
|
25983
25897
|
}
|
|
25984
25898
|
setData(e, t) {
|
|
25985
|
-
let n =
|
|
25899
|
+
let n = vj(this.state.data, e, this.options);
|
|
25986
25900
|
return this.#c({
|
|
25987
25901
|
data: n,
|
|
25988
25902
|
type: "success",
|
|
@@ -25999,7 +25913,7 @@ var Rj = class {
|
|
|
25999
25913
|
}
|
|
26000
25914
|
cancel(e) {
|
|
26001
25915
|
let t = this.#i?.promise;
|
|
26002
|
-
return this.#i?.cancel(e), t ? t.then(
|
|
25916
|
+
return this.#i?.cancel(e), t ? t.then(ej).catch(ej) : Promise.resolve();
|
|
26003
25917
|
}
|
|
26004
25918
|
destroy() {
|
|
26005
25919
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -26011,22 +25925,22 @@ var Rj = class {
|
|
|
26011
25925
|
this.destroy(), this.setState(this.resetState);
|
|
26012
25926
|
}
|
|
26013
25927
|
isActive() {
|
|
26014
|
-
return this.observers.some((e) =>
|
|
25928
|
+
return this.observers.some((e) => aj(e.options.enabled, this) !== !1);
|
|
26015
25929
|
}
|
|
26016
25930
|
isDisabled() {
|
|
26017
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
25931
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === xj || !this.isFetched();
|
|
26018
25932
|
}
|
|
26019
25933
|
isFetched() {
|
|
26020
25934
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
26021
25935
|
}
|
|
26022
25936
|
isStatic() {
|
|
26023
|
-
return this.getObserversCount() > 0 ? this.observers.some((e) =>
|
|
25937
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => ij(e.options.staleTime, this) === "static") : !1;
|
|
26024
25938
|
}
|
|
26025
25939
|
isStale() {
|
|
26026
25940
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
26027
25941
|
}
|
|
26028
25942
|
isStaleByTime(e = 0) {
|
|
26029
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
25943
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !rj(this.state.dataUpdatedAt, e);
|
|
26030
25944
|
}
|
|
26031
25945
|
onFocus() {
|
|
26032
25946
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
|
|
@@ -26073,7 +25987,7 @@ var Rj = class {
|
|
|
26073
25987
|
get: () => (this.#o = !0, n.signal)
|
|
26074
25988
|
});
|
|
26075
25989
|
}, i = () => {
|
|
26076
|
-
let e =
|
|
25990
|
+
let e = Sj(this.options, t), n = (() => {
|
|
26077
25991
|
let e = {
|
|
26078
25992
|
client: this.#r,
|
|
26079
25993
|
queryKey: this.queryKey,
|
|
@@ -26096,11 +26010,11 @@ var Rj = class {
|
|
|
26096
26010
|
this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
|
|
26097
26011
|
type: "fetch",
|
|
26098
26012
|
meta: a.fetchOptions?.meta
|
|
26099
|
-
}), this.#i =
|
|
26013
|
+
}), this.#i = Pj({
|
|
26100
26014
|
initialPromise: t?.initialPromise,
|
|
26101
26015
|
fn: a.fetchFn,
|
|
26102
26016
|
onCancel: (e) => {
|
|
26103
|
-
e instanceof
|
|
26017
|
+
e instanceof Nj && e.revert && this.setState({
|
|
26104
26018
|
...this.#t,
|
|
26105
26019
|
fetchStatus: "idle"
|
|
26106
26020
|
}), n.abort();
|
|
@@ -26128,7 +26042,7 @@ var Rj = class {
|
|
|
26128
26042
|
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`);
|
|
26129
26043
|
return this.setData(e), this.#n.config.onSuccess?.(e, this), this.#n.config.onSettled?.(e, this.state.error, this), e;
|
|
26130
26044
|
} catch (e) {
|
|
26131
|
-
if (e instanceof
|
|
26045
|
+
if (e instanceof Nj) {
|
|
26132
26046
|
if (e.silent) return this.#i.promise;
|
|
26133
26047
|
if (e.revert) {
|
|
26134
26048
|
if (this.state.data === void 0) throw e;
|
|
@@ -26161,13 +26075,13 @@ var Rj = class {
|
|
|
26161
26075
|
};
|
|
26162
26076
|
case "fetch": return {
|
|
26163
26077
|
...t,
|
|
26164
|
-
...
|
|
26078
|
+
...Lj(t.data, this.options),
|
|
26165
26079
|
fetchMeta: e.meta ?? null
|
|
26166
26080
|
};
|
|
26167
26081
|
case "success":
|
|
26168
26082
|
let n = {
|
|
26169
26083
|
...t,
|
|
26170
|
-
...
|
|
26084
|
+
...Rj(e.data, e.dataUpdatedAt),
|
|
26171
26085
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
26172
26086
|
...!e.manual && {
|
|
26173
26087
|
fetchStatus: "idle",
|
|
@@ -26198,7 +26112,7 @@ var Rj = class {
|
|
|
26198
26112
|
...e.state
|
|
26199
26113
|
};
|
|
26200
26114
|
}
|
|
26201
|
-
})(this.state),
|
|
26115
|
+
})(this.state), kj.batch(() => {
|
|
26202
26116
|
this.observers.forEach((e) => {
|
|
26203
26117
|
e.onQueryUpdate();
|
|
26204
26118
|
}), this.#n.notify({
|
|
@@ -26209,18 +26123,18 @@ var Rj = class {
|
|
|
26209
26123
|
});
|
|
26210
26124
|
}
|
|
26211
26125
|
};
|
|
26212
|
-
function
|
|
26126
|
+
function Lj(e, t) {
|
|
26213
26127
|
return {
|
|
26214
26128
|
fetchFailureCount: 0,
|
|
26215
26129
|
fetchFailureReason: null,
|
|
26216
|
-
fetchStatus:
|
|
26130
|
+
fetchStatus: Mj(t.networkMode) ? "fetching" : "paused",
|
|
26217
26131
|
...e === void 0 && {
|
|
26218
26132
|
error: null,
|
|
26219
26133
|
status: "pending"
|
|
26220
26134
|
}
|
|
26221
26135
|
};
|
|
26222
26136
|
}
|
|
26223
|
-
function
|
|
26137
|
+
function Rj(e, t) {
|
|
26224
26138
|
return {
|
|
26225
26139
|
data: e,
|
|
26226
26140
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -26229,7 +26143,7 @@ function Vj(e, t) {
|
|
|
26229
26143
|
status: "success"
|
|
26230
26144
|
};
|
|
26231
26145
|
}
|
|
26232
|
-
function
|
|
26146
|
+
function zj(e) {
|
|
26233
26147
|
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;
|
|
26234
26148
|
return {
|
|
26235
26149
|
data: t,
|
|
@@ -26248,15 +26162,15 @@ function Hj(e) {
|
|
|
26248
26162
|
}
|
|
26249
26163
|
//#endregion
|
|
26250
26164
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
26251
|
-
function
|
|
26165
|
+
function Bj(e) {
|
|
26252
26166
|
return { onFetch: (t, n) => {
|
|
26253
26167
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
26254
26168
|
pages: [],
|
|
26255
26169
|
pageParams: []
|
|
26256
26170
|
}, c = 0, l = async () => {
|
|
26257
26171
|
let n = !1, l = (e) => {
|
|
26258
|
-
|
|
26259
|
-
}, u =
|
|
26172
|
+
wj(e, () => t.signal, () => n = !0);
|
|
26173
|
+
}, u = Sj(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
26260
26174
|
if (n) return Promise.reject();
|
|
26261
26175
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
26262
26176
|
let a = await u((() => {
|
|
@@ -26268,14 +26182,14 @@ function Uj(e) {
|
|
|
26268
26182
|
meta: t.options.meta
|
|
26269
26183
|
};
|
|
26270
26184
|
return l(e), e;
|
|
26271
|
-
})()), { maxPages: o } = t.options, s = i ?
|
|
26185
|
+
})()), { maxPages: o } = t.options, s = i ? bj : yj;
|
|
26272
26186
|
return {
|
|
26273
26187
|
pages: s(e.pages, a, o),
|
|
26274
26188
|
pageParams: s(e.pageParams, r, o)
|
|
26275
26189
|
};
|
|
26276
26190
|
};
|
|
26277
26191
|
if (i && a.length) {
|
|
26278
|
-
let e = i === "backward", t = e ?
|
|
26192
|
+
let e = i === "backward", t = e ? Hj : Vj, n = {
|
|
26279
26193
|
pages: a,
|
|
26280
26194
|
pageParams: o
|
|
26281
26195
|
};
|
|
@@ -26283,7 +26197,7 @@ function Uj(e) {
|
|
|
26283
26197
|
} else {
|
|
26284
26198
|
let t = e ?? a.length;
|
|
26285
26199
|
do {
|
|
26286
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
26200
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Vj(r, s);
|
|
26287
26201
|
if (c > 0 && e == null) break;
|
|
26288
26202
|
s = await d(s, e), c++;
|
|
26289
26203
|
} while (c < t);
|
|
@@ -26298,22 +26212,22 @@ function Uj(e) {
|
|
|
26298
26212
|
}, n) : t.fetchFn = l;
|
|
26299
26213
|
} };
|
|
26300
26214
|
}
|
|
26301
|
-
function
|
|
26215
|
+
function Vj(e, { pages: t, pageParams: n }) {
|
|
26302
26216
|
let r = t.length - 1;
|
|
26303
26217
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
26304
26218
|
}
|
|
26305
|
-
function
|
|
26219
|
+
function Hj(e, { pages: t, pageParams: n }) {
|
|
26306
26220
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
26307
26221
|
}
|
|
26308
26222
|
//#endregion
|
|
26309
26223
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
26310
|
-
var
|
|
26224
|
+
var Uj = class extends Fj {
|
|
26311
26225
|
#e;
|
|
26312
26226
|
#t;
|
|
26313
26227
|
#n;
|
|
26314
26228
|
#r;
|
|
26315
26229
|
constructor(e) {
|
|
26316
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
26230
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Wj(), this.setOptions(e.options), this.scheduleGc();
|
|
26317
26231
|
}
|
|
26318
26232
|
setOptions(e) {
|
|
26319
26233
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -26349,7 +26263,7 @@ var Kj = class extends Rj {
|
|
|
26349
26263
|
meta: this.options.meta,
|
|
26350
26264
|
mutationKey: this.options.mutationKey
|
|
26351
26265
|
};
|
|
26352
|
-
this.#r =
|
|
26266
|
+
this.#r = Pj({
|
|
26353
26267
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
26354
26268
|
onFail: (e, t) => {
|
|
26355
26269
|
this.#i({
|
|
@@ -26465,7 +26379,7 @@ var Kj = class extends Rj {
|
|
|
26465
26379
|
status: "error"
|
|
26466
26380
|
};
|
|
26467
26381
|
}
|
|
26468
|
-
})(this.state),
|
|
26382
|
+
})(this.state), kj.batch(() => {
|
|
26469
26383
|
this.#t.forEach((t) => {
|
|
26470
26384
|
t.onMutationUpdate(e);
|
|
26471
26385
|
}), this.#n.notify({
|
|
@@ -26476,7 +26390,7 @@ var Kj = class extends Rj {
|
|
|
26476
26390
|
});
|
|
26477
26391
|
}
|
|
26478
26392
|
};
|
|
26479
|
-
function
|
|
26393
|
+
function Wj() {
|
|
26480
26394
|
return {
|
|
26481
26395
|
context: void 0,
|
|
26482
26396
|
data: void 0,
|
|
@@ -26491,7 +26405,7 @@ function qj() {
|
|
|
26491
26405
|
}
|
|
26492
26406
|
//#endregion
|
|
26493
26407
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
26494
|
-
var
|
|
26408
|
+
var Gj = class extends JA {
|
|
26495
26409
|
constructor(e = {}) {
|
|
26496
26410
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
26497
26411
|
}
|
|
@@ -26499,7 +26413,7 @@ var Jj = class extends ZA {
|
|
|
26499
26413
|
#t;
|
|
26500
26414
|
#n;
|
|
26501
26415
|
build(e, t, n) {
|
|
26502
|
-
let r = new
|
|
26416
|
+
let r = new Uj({
|
|
26503
26417
|
client: e,
|
|
26504
26418
|
mutationCache: this,
|
|
26505
26419
|
mutationId: ++this.#n,
|
|
@@ -26510,7 +26424,7 @@ var Jj = class extends ZA {
|
|
|
26510
26424
|
}
|
|
26511
26425
|
add(e) {
|
|
26512
26426
|
this.#e.add(e);
|
|
26513
|
-
let t =
|
|
26427
|
+
let t = Kj(e);
|
|
26514
26428
|
if (typeof t == "string") {
|
|
26515
26429
|
let n = this.#t.get(t);
|
|
26516
26430
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -26522,7 +26436,7 @@ var Jj = class extends ZA {
|
|
|
26522
26436
|
}
|
|
26523
26437
|
remove(e) {
|
|
26524
26438
|
if (this.#e.delete(e)) {
|
|
26525
|
-
let t =
|
|
26439
|
+
let t = Kj(e);
|
|
26526
26440
|
if (typeof t == "string") {
|
|
26527
26441
|
let n = this.#t.get(t);
|
|
26528
26442
|
if (n) if (n.length > 1) {
|
|
@@ -26537,18 +26451,18 @@ var Jj = class extends ZA {
|
|
|
26537
26451
|
});
|
|
26538
26452
|
}
|
|
26539
26453
|
canRun(e) {
|
|
26540
|
-
let t =
|
|
26454
|
+
let t = Kj(e);
|
|
26541
26455
|
if (typeof t == "string") {
|
|
26542
26456
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
26543
26457
|
return !n || n === e;
|
|
26544
26458
|
} else return !0;
|
|
26545
26459
|
}
|
|
26546
26460
|
runNext(e) {
|
|
26547
|
-
let t =
|
|
26461
|
+
let t = Kj(e);
|
|
26548
26462
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
26549
26463
|
}
|
|
26550
26464
|
clear() {
|
|
26551
|
-
|
|
26465
|
+
kj.batch(() => {
|
|
26552
26466
|
this.#e.forEach((e) => {
|
|
26553
26467
|
this.notify({
|
|
26554
26468
|
type: "removed",
|
|
@@ -26565,13 +26479,13 @@ var Jj = class extends ZA {
|
|
|
26565
26479
|
exact: !0,
|
|
26566
26480
|
...e
|
|
26567
26481
|
};
|
|
26568
|
-
return this.getAll().find((e) =>
|
|
26482
|
+
return this.getAll().find((e) => sj(t, e));
|
|
26569
26483
|
}
|
|
26570
26484
|
findAll(e = {}) {
|
|
26571
|
-
return this.getAll().filter((t) =>
|
|
26485
|
+
return this.getAll().filter((t) => sj(e, t));
|
|
26572
26486
|
}
|
|
26573
26487
|
notify(e) {
|
|
26574
|
-
|
|
26488
|
+
kj.batch(() => {
|
|
26575
26489
|
this.listeners.forEach((t) => {
|
|
26576
26490
|
t(e);
|
|
26577
26491
|
});
|
|
@@ -26579,15 +26493,15 @@ var Jj = class extends ZA {
|
|
|
26579
26493
|
}
|
|
26580
26494
|
resumePausedMutations() {
|
|
26581
26495
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
26582
|
-
return
|
|
26496
|
+
return kj.batch(() => Promise.all(e.map((e) => e.continue().catch(ej))));
|
|
26583
26497
|
}
|
|
26584
26498
|
};
|
|
26585
|
-
function
|
|
26499
|
+
function Kj(e) {
|
|
26586
26500
|
return e.options.scope?.id;
|
|
26587
26501
|
}
|
|
26588
26502
|
//#endregion
|
|
26589
26503
|
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
26590
|
-
var
|
|
26504
|
+
var qj = class extends JA {
|
|
26591
26505
|
#e;
|
|
26592
26506
|
#t = void 0;
|
|
26593
26507
|
#n;
|
|
@@ -26600,11 +26514,11 @@ var Xj = class extends ZA {
|
|
|
26600
26514
|
}
|
|
26601
26515
|
setOptions(e) {
|
|
26602
26516
|
let t = this.options;
|
|
26603
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
26517
|
+
this.options = this.#e.defaultMutationOptions(e), pj(this.options, t) || this.#e.getMutationCache().notify({
|
|
26604
26518
|
type: "observerOptionsUpdated",
|
|
26605
26519
|
mutation: this.#n,
|
|
26606
26520
|
observer: this
|
|
26607
|
-
}), t?.mutationKey && this.options.mutationKey &&
|
|
26521
|
+
}), t?.mutationKey && this.options.mutationKey && lj(t.mutationKey) !== lj(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
|
|
26608
26522
|
}
|
|
26609
26523
|
onUnsubscribe() {
|
|
26610
26524
|
this.hasListeners() || this.#n?.removeObserver(this);
|
|
@@ -26622,7 +26536,7 @@ var Xj = class extends ZA {
|
|
|
26622
26536
|
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);
|
|
26623
26537
|
}
|
|
26624
26538
|
#i() {
|
|
26625
|
-
let e = this.#n?.state ??
|
|
26539
|
+
let e = this.#n?.state ?? Wj();
|
|
26626
26540
|
this.#t = {
|
|
26627
26541
|
...e,
|
|
26628
26542
|
isPending: e.status === "pending",
|
|
@@ -26634,7 +26548,7 @@ var Xj = class extends ZA {
|
|
|
26634
26548
|
};
|
|
26635
26549
|
}
|
|
26636
26550
|
#a(e) {
|
|
26637
|
-
|
|
26551
|
+
kj.batch(() => {
|
|
26638
26552
|
if (this.#r && this.hasListeners()) {
|
|
26639
26553
|
let t = this.#t.variables, n = this.#t.context, r = {
|
|
26640
26554
|
client: this.#e,
|
|
@@ -26670,14 +26584,14 @@ var Xj = class extends ZA {
|
|
|
26670
26584
|
});
|
|
26671
26585
|
});
|
|
26672
26586
|
}
|
|
26673
|
-
},
|
|
26587
|
+
}, Jj = class extends JA {
|
|
26674
26588
|
constructor(e = {}) {
|
|
26675
26589
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
26676
26590
|
}
|
|
26677
26591
|
#e;
|
|
26678
26592
|
build(e, t, n) {
|
|
26679
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
26680
|
-
return a || (a = new
|
|
26593
|
+
let r = t.queryKey, i = t.queryHash ?? cj(r, t), a = this.get(i);
|
|
26594
|
+
return a || (a = new Ij({
|
|
26681
26595
|
client: e,
|
|
26682
26596
|
queryKey: r,
|
|
26683
26597
|
queryHash: i,
|
|
@@ -26700,7 +26614,7 @@ var Xj = class extends ZA {
|
|
|
26700
26614
|
}));
|
|
26701
26615
|
}
|
|
26702
26616
|
clear() {
|
|
26703
|
-
|
|
26617
|
+
kj.batch(() => {
|
|
26704
26618
|
this.getAll().forEach((e) => {
|
|
26705
26619
|
this.remove(e);
|
|
26706
26620
|
});
|
|
@@ -26717,34 +26631,34 @@ var Xj = class extends ZA {
|
|
|
26717
26631
|
exact: !0,
|
|
26718
26632
|
...e
|
|
26719
26633
|
};
|
|
26720
|
-
return this.getAll().find((e) =>
|
|
26634
|
+
return this.getAll().find((e) => oj(t, e));
|
|
26721
26635
|
}
|
|
26722
26636
|
findAll(e = {}) {
|
|
26723
26637
|
let t = this.getAll();
|
|
26724
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
26638
|
+
return Object.keys(e).length > 0 ? t.filter((t) => oj(e, t)) : t;
|
|
26725
26639
|
}
|
|
26726
26640
|
notify(e) {
|
|
26727
|
-
|
|
26641
|
+
kj.batch(() => {
|
|
26728
26642
|
this.listeners.forEach((t) => {
|
|
26729
26643
|
t(e);
|
|
26730
26644
|
});
|
|
26731
26645
|
});
|
|
26732
26646
|
}
|
|
26733
26647
|
onFocus() {
|
|
26734
|
-
|
|
26648
|
+
kj.batch(() => {
|
|
26735
26649
|
this.getAll().forEach((e) => {
|
|
26736
26650
|
e.onFocus();
|
|
26737
26651
|
});
|
|
26738
26652
|
});
|
|
26739
26653
|
}
|
|
26740
26654
|
onOnline() {
|
|
26741
|
-
|
|
26655
|
+
kj.batch(() => {
|
|
26742
26656
|
this.getAll().forEach((e) => {
|
|
26743
26657
|
e.onOnline();
|
|
26744
26658
|
});
|
|
26745
26659
|
});
|
|
26746
26660
|
}
|
|
26747
|
-
},
|
|
26661
|
+
}, Yj = class {
|
|
26748
26662
|
#e;
|
|
26749
26663
|
#t;
|
|
26750
26664
|
#n;
|
|
@@ -26754,12 +26668,12 @@ var Xj = class extends ZA {
|
|
|
26754
26668
|
#o;
|
|
26755
26669
|
#s;
|
|
26756
26670
|
constructor(e = {}) {
|
|
26757
|
-
this.#e = e.queryCache || new
|
|
26671
|
+
this.#e = e.queryCache || new Jj(), this.#t = e.mutationCache || new Gj(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
26758
26672
|
}
|
|
26759
26673
|
mount() {
|
|
26760
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
26674
|
+
this.#a++, this.#a === 1 && (this.#o = YA.subscribe(async (e) => {
|
|
26761
26675
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
26762
|
-
}), this.#s =
|
|
26676
|
+
}), this.#s = Aj.subscribe(async (e) => {
|
|
26763
26677
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
26764
26678
|
}));
|
|
26765
26679
|
}
|
|
@@ -26784,20 +26698,20 @@ var Xj = class extends ZA {
|
|
|
26784
26698
|
}
|
|
26785
26699
|
ensureQueryData(e) {
|
|
26786
26700
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
26787
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
26701
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ij(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
26788
26702
|
}
|
|
26789
26703
|
getQueriesData(e) {
|
|
26790
26704
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
26791
26705
|
}
|
|
26792
26706
|
setQueryData(e, t, n) {
|
|
26793
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
26707
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = tj(t, i);
|
|
26794
26708
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
26795
26709
|
...n,
|
|
26796
26710
|
manual: !0
|
|
26797
26711
|
});
|
|
26798
26712
|
}
|
|
26799
26713
|
setQueriesData(e, t, n) {
|
|
26800
|
-
return
|
|
26714
|
+
return kj.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
26801
26715
|
}
|
|
26802
26716
|
getQueryState(e) {
|
|
26803
26717
|
let t = this.defaultQueryOptions({ queryKey: e });
|
|
@@ -26805,7 +26719,7 @@ var Xj = class extends ZA {
|
|
|
26805
26719
|
}
|
|
26806
26720
|
removeQueries(e) {
|
|
26807
26721
|
let t = this.#e;
|
|
26808
|
-
|
|
26722
|
+
kj.batch(() => {
|
|
26809
26723
|
t.findAll(e).forEach((e) => {
|
|
26810
26724
|
t.remove(e);
|
|
26811
26725
|
});
|
|
@@ -26813,7 +26727,7 @@ var Xj = class extends ZA {
|
|
|
26813
26727
|
}
|
|
26814
26728
|
resetQueries(e, t) {
|
|
26815
26729
|
let n = this.#e;
|
|
26816
|
-
return
|
|
26730
|
+
return kj.batch(() => (n.findAll(e).forEach((e) => {
|
|
26817
26731
|
e.reset();
|
|
26818
26732
|
}), this.refetchQueries({
|
|
26819
26733
|
type: "active",
|
|
@@ -26824,11 +26738,11 @@ var Xj = class extends ZA {
|
|
|
26824
26738
|
let n = {
|
|
26825
26739
|
revert: !0,
|
|
26826
26740
|
...t
|
|
26827
|
-
}, r =
|
|
26828
|
-
return Promise.all(r).then(
|
|
26741
|
+
}, r = kj.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
26742
|
+
return Promise.all(r).then(ej).catch(ej);
|
|
26829
26743
|
}
|
|
26830
26744
|
invalidateQueries(e, t = {}) {
|
|
26831
|
-
return
|
|
26745
|
+
return kj.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
26832
26746
|
e.invalidate();
|
|
26833
26747
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
26834
26748
|
...e,
|
|
@@ -26839,32 +26753,32 @@ var Xj = class extends ZA {
|
|
|
26839
26753
|
let n = {
|
|
26840
26754
|
...t,
|
|
26841
26755
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
26842
|
-
}, r =
|
|
26756
|
+
}, r = kj.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
26843
26757
|
let t = e.fetch(void 0, n);
|
|
26844
|
-
return n.throwOnError || (t = t.catch(
|
|
26758
|
+
return n.throwOnError || (t = t.catch(ej)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
26845
26759
|
}));
|
|
26846
|
-
return Promise.all(r).then(
|
|
26760
|
+
return Promise.all(r).then(ej);
|
|
26847
26761
|
}
|
|
26848
26762
|
fetchQuery(e) {
|
|
26849
26763
|
let t = this.defaultQueryOptions(e);
|
|
26850
26764
|
t.retry === void 0 && (t.retry = !1);
|
|
26851
26765
|
let n = this.#e.build(this, t);
|
|
26852
|
-
return n.isStaleByTime(
|
|
26766
|
+
return n.isStaleByTime(ij(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
26853
26767
|
}
|
|
26854
26768
|
prefetchQuery(e) {
|
|
26855
|
-
return this.fetchQuery(e).then(
|
|
26769
|
+
return this.fetchQuery(e).then(ej).catch(ej);
|
|
26856
26770
|
}
|
|
26857
26771
|
fetchInfiniteQuery(e) {
|
|
26858
|
-
return e.behavior =
|
|
26772
|
+
return e.behavior = Bj(e.pages), this.fetchQuery(e);
|
|
26859
26773
|
}
|
|
26860
26774
|
prefetchInfiniteQuery(e) {
|
|
26861
|
-
return this.fetchInfiniteQuery(e).then(
|
|
26775
|
+
return this.fetchInfiniteQuery(e).then(ej).catch(ej);
|
|
26862
26776
|
}
|
|
26863
26777
|
ensureInfiniteQueryData(e) {
|
|
26864
|
-
return e.behavior =
|
|
26778
|
+
return e.behavior = Bj(e.pages), this.ensureQueryData(e);
|
|
26865
26779
|
}
|
|
26866
26780
|
resumePausedMutations() {
|
|
26867
|
-
return
|
|
26781
|
+
return Aj.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
26868
26782
|
}
|
|
26869
26783
|
getQueryCache() {
|
|
26870
26784
|
return this.#e;
|
|
@@ -26879,7 +26793,7 @@ var Xj = class extends ZA {
|
|
|
26879
26793
|
this.#n = e;
|
|
26880
26794
|
}
|
|
26881
26795
|
setQueryDefaults(e, t) {
|
|
26882
|
-
this.#r.set(
|
|
26796
|
+
this.#r.set(lj(e), {
|
|
26883
26797
|
queryKey: e,
|
|
26884
26798
|
defaultOptions: t
|
|
26885
26799
|
});
|
|
@@ -26887,11 +26801,11 @@ var Xj = class extends ZA {
|
|
|
26887
26801
|
getQueryDefaults(e) {
|
|
26888
26802
|
let t = [...this.#r.values()], n = {};
|
|
26889
26803
|
return t.forEach((t) => {
|
|
26890
|
-
|
|
26804
|
+
uj(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
26891
26805
|
}), n;
|
|
26892
26806
|
}
|
|
26893
26807
|
setMutationDefaults(e, t) {
|
|
26894
|
-
this.#i.set(
|
|
26808
|
+
this.#i.set(lj(e), {
|
|
26895
26809
|
mutationKey: e,
|
|
26896
26810
|
defaultOptions: t
|
|
26897
26811
|
});
|
|
@@ -26899,7 +26813,7 @@ var Xj = class extends ZA {
|
|
|
26899
26813
|
getMutationDefaults(e) {
|
|
26900
26814
|
let t = [...this.#i.values()], n = {};
|
|
26901
26815
|
return t.forEach((t) => {
|
|
26902
|
-
|
|
26816
|
+
uj(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
26903
26817
|
}), n;
|
|
26904
26818
|
}
|
|
26905
26819
|
defaultQueryOptions(e) {
|
|
@@ -26910,7 +26824,7 @@ var Xj = class extends ZA {
|
|
|
26910
26824
|
...e,
|
|
26911
26825
|
_defaulted: !0
|
|
26912
26826
|
};
|
|
26913
|
-
return t.queryHash ||=
|
|
26827
|
+
return t.queryHash ||= cj(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 === xj && (t.enabled = !1), t;
|
|
26914
26828
|
}
|
|
26915
26829
|
defaultMutationOptions(e) {
|
|
26916
26830
|
return e?._defaulted ? e : {
|
|
@@ -26923,28 +26837,28 @@ var Xj = class extends ZA {
|
|
|
26923
26837
|
clear() {
|
|
26924
26838
|
this.#e.clear(), this.#t.clear();
|
|
26925
26839
|
}
|
|
26926
|
-
},
|
|
26927
|
-
let n = e.useContext(
|
|
26840
|
+
}, Xj = e.createContext(void 0), Zj = (t) => {
|
|
26841
|
+
let n = e.useContext(Xj);
|
|
26928
26842
|
if (t) return t;
|
|
26929
26843
|
if (!n) throw Error("No QueryClient set, use QueryClientProvider to set one");
|
|
26930
26844
|
return n;
|
|
26931
|
-
},
|
|
26845
|
+
}, Qj = ({ client: t, children: n }) => (e.useEffect(() => (t.mount(), () => {
|
|
26932
26846
|
t.unmount();
|
|
26933
|
-
}), [t]), /* @__PURE__ */ T(
|
|
26847
|
+
}), [t]), /* @__PURE__ */ T(Xj.Provider, {
|
|
26934
26848
|
value: t,
|
|
26935
26849
|
children: n
|
|
26936
26850
|
}));
|
|
26937
26851
|
//#endregion
|
|
26938
26852
|
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
|
|
26939
|
-
function
|
|
26940
|
-
let r =
|
|
26853
|
+
function $j(t, n) {
|
|
26854
|
+
let r = Zj(n), [i] = e.useState(() => new qj(r, t));
|
|
26941
26855
|
e.useEffect(() => {
|
|
26942
26856
|
i.setOptions(t);
|
|
26943
26857
|
}, [i, t]);
|
|
26944
|
-
let a = e.useSyncExternalStore(e.useCallback((e) => i.subscribe(
|
|
26945
|
-
i.mutate(e, t).catch(
|
|
26858
|
+
let a = e.useSyncExternalStore(e.useCallback((e) => i.subscribe(kj.batchCalls(e)), [i]), () => i.getCurrentResult(), () => i.getCurrentResult()), o = e.useCallback((e, t) => {
|
|
26859
|
+
i.mutate(e, t).catch(ej);
|
|
26946
26860
|
}, [i]);
|
|
26947
|
-
if (a.error &&
|
|
26861
|
+
if (a.error && Cj(i.options.throwOnError, [a.error])) throw a.error;
|
|
26948
26862
|
return {
|
|
26949
26863
|
...a,
|
|
26950
26864
|
mutate: o,
|
|
@@ -26953,79 +26867,79 @@ function nM(t, n) {
|
|
|
26953
26867
|
}
|
|
26954
26868
|
//#endregion
|
|
26955
26869
|
//#region node_modules/axios/lib/helpers/bind.js
|
|
26956
|
-
function
|
|
26870
|
+
function eM(e, t) {
|
|
26957
26871
|
return function() {
|
|
26958
26872
|
return e.apply(t, arguments);
|
|
26959
26873
|
};
|
|
26960
26874
|
}
|
|
26961
26875
|
//#endregion
|
|
26962
26876
|
//#region node_modules/axios/lib/utils.js
|
|
26963
|
-
var { toString:
|
|
26964
|
-
let n =
|
|
26877
|
+
var { toString: tM } = Object.prototype, { getPrototypeOf: nM } = Object, { iterator: rM, toStringTag: iM } = Symbol, aM = ((e) => (t) => {
|
|
26878
|
+
let n = tM.call(t);
|
|
26965
26879
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
26966
|
-
})(Object.create(null)),
|
|
26967
|
-
function
|
|
26968
|
-
return e !== null && !
|
|
26880
|
+
})(Object.create(null)), oM = (e) => (e = e.toLowerCase(), (t) => aM(t) === e), sM = (e) => (t) => typeof t === e, { isArray: cM } = Array, lM = sM("undefined");
|
|
26881
|
+
function uM(e) {
|
|
26882
|
+
return e !== null && !lM(e) && e.constructor !== null && !lM(e.constructor) && mM(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
26969
26883
|
}
|
|
26970
|
-
var
|
|
26971
|
-
function
|
|
26884
|
+
var dM = oM("ArrayBuffer");
|
|
26885
|
+
function fM(e) {
|
|
26972
26886
|
let t;
|
|
26973
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer &&
|
|
26974
|
-
}
|
|
26975
|
-
var
|
|
26976
|
-
if (
|
|
26977
|
-
let t =
|
|
26978
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
26979
|
-
},
|
|
26980
|
-
if (!
|
|
26887
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && dM(e.buffer), t;
|
|
26888
|
+
}
|
|
26889
|
+
var pM = sM("string"), mM = sM("function"), hM = sM("number"), gM = (e) => typeof e == "object" && !!e, _M = (e) => e === !0 || e === !1, vM = (e) => {
|
|
26890
|
+
if (aM(e) !== "object") return !1;
|
|
26891
|
+
let t = nM(e);
|
|
26892
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(iM in e) && !(rM in e);
|
|
26893
|
+
}, yM = (e) => {
|
|
26894
|
+
if (!gM(e) || uM(e)) return !1;
|
|
26981
26895
|
try {
|
|
26982
26896
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
26983
26897
|
} catch {
|
|
26984
26898
|
return !1;
|
|
26985
26899
|
}
|
|
26986
|
-
},
|
|
26987
|
-
function
|
|
26900
|
+
}, bM = oM("Date"), xM = oM("File"), SM = (e) => !!(e && e.uri !== void 0), CM = (e) => e && e.getParts !== void 0, wM = oM("Blob"), TM = oM("FileList"), EM = (e) => gM(e) && mM(e.pipe);
|
|
26901
|
+
function DM() {
|
|
26988
26902
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
26989
26903
|
}
|
|
26990
|
-
var
|
|
26904
|
+
var OM = DM(), kM = OM.FormData === void 0 ? void 0 : OM.FormData, AM = (e) => {
|
|
26991
26905
|
let t;
|
|
26992
|
-
return e && (
|
|
26993
|
-
},
|
|
26906
|
+
return e && (kM && e instanceof kM || mM(e.append) && ((t = aM(e)) === "formdata" || t === "object" && mM(e.toString) && e.toString() === "[object FormData]"));
|
|
26907
|
+
}, jM = oM("URLSearchParams"), [MM, NM, PM, FM] = [
|
|
26994
26908
|
"ReadableStream",
|
|
26995
26909
|
"Request",
|
|
26996
26910
|
"Response",
|
|
26997
26911
|
"Headers"
|
|
26998
|
-
].map(
|
|
26999
|
-
function
|
|
26912
|
+
].map(oM), IM = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
26913
|
+
function LM(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
27000
26914
|
if (e == null) return;
|
|
27001
26915
|
let r, i;
|
|
27002
|
-
if (typeof e != "object" && (e = [e]),
|
|
26916
|
+
if (typeof e != "object" && (e = [e]), cM(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
27003
26917
|
else {
|
|
27004
|
-
if (
|
|
26918
|
+
if (uM(e)) return;
|
|
27005
26919
|
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
27006
26920
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
27007
26921
|
}
|
|
27008
26922
|
}
|
|
27009
|
-
function
|
|
27010
|
-
if (
|
|
26923
|
+
function RM(e, t) {
|
|
26924
|
+
if (uM(e)) return null;
|
|
27011
26925
|
t = t.toLowerCase();
|
|
27012
26926
|
let n = Object.keys(e), r = n.length, i;
|
|
27013
26927
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
27014
26928
|
return null;
|
|
27015
26929
|
}
|
|
27016
|
-
var
|
|
27017
|
-
function
|
|
27018
|
-
let { caseless: e, skipUndefined: t } =
|
|
26930
|
+
var zM = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, BM = (e) => !lM(e) && e !== zM;
|
|
26931
|
+
function VM() {
|
|
26932
|
+
let { caseless: e, skipUndefined: t } = BM(this) && this || {}, n = {}, r = (r, i) => {
|
|
27019
26933
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
27020
|
-
let a = e &&
|
|
27021
|
-
|
|
26934
|
+
let a = e && RM(n, i) || i;
|
|
26935
|
+
vM(n[a]) && vM(r) ? n[a] = VM(n[a], r) : vM(r) ? n[a] = VM({}, r) : cM(r) ? n[a] = r.slice() : (!t || !lM(r)) && (n[a] = r);
|
|
27022
26936
|
};
|
|
27023
|
-
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] &&
|
|
26937
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && LM(arguments[e], r);
|
|
27024
26938
|
return n;
|
|
27025
26939
|
}
|
|
27026
|
-
var
|
|
27027
|
-
n &&
|
|
27028
|
-
value:
|
|
26940
|
+
var HM = (e, t, n, { allOwnKeys: r } = {}) => (LM(t, (t, r) => {
|
|
26941
|
+
n && mM(t) ? Object.defineProperty(e, r, {
|
|
26942
|
+
value: eM(t, n),
|
|
27029
26943
|
writable: !0,
|
|
27030
26944
|
enumerable: !0,
|
|
27031
26945
|
configurable: !0
|
|
@@ -27035,60 +26949,60 @@ var GM = (e, t, n, { allOwnKeys: r } = {}) => (BM(t, (t, r) => {
|
|
|
27035
26949
|
enumerable: !0,
|
|
27036
26950
|
configurable: !0
|
|
27037
26951
|
});
|
|
27038
|
-
}, { allOwnKeys: r }), e),
|
|
26952
|
+
}, { allOwnKeys: r }), e), UM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), WM = (e, t, n, r) => {
|
|
27039
26953
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
27040
26954
|
value: e,
|
|
27041
26955
|
writable: !0,
|
|
27042
26956
|
enumerable: !1,
|
|
27043
26957
|
configurable: !0
|
|
27044
26958
|
}), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
27045
|
-
},
|
|
26959
|
+
}, GM = (e, t, n, r) => {
|
|
27046
26960
|
let i, a, o, s = {};
|
|
27047
26961
|
if (t ||= {}, e == null) return t;
|
|
27048
26962
|
do {
|
|
27049
26963
|
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);
|
|
27050
|
-
e = n !== !1 &&
|
|
26964
|
+
e = n !== !1 && nM(e);
|
|
27051
26965
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
27052
26966
|
return t;
|
|
27053
|
-
},
|
|
26967
|
+
}, KM = (e, t, n) => {
|
|
27054
26968
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
27055
26969
|
let r = e.indexOf(t, n);
|
|
27056
26970
|
return r !== -1 && r === n;
|
|
27057
|
-
},
|
|
26971
|
+
}, qM = (e) => {
|
|
27058
26972
|
if (!e) return null;
|
|
27059
|
-
if (
|
|
26973
|
+
if (cM(e)) return e;
|
|
27060
26974
|
let t = e.length;
|
|
27061
|
-
if (!
|
|
26975
|
+
if (!hM(t)) return null;
|
|
27062
26976
|
let n = Array(t);
|
|
27063
26977
|
for (; t-- > 0;) n[t] = e[t];
|
|
27064
26978
|
return n;
|
|
27065
|
-
},
|
|
27066
|
-
let n = (e && e[
|
|
26979
|
+
}, JM = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && nM(Uint8Array)), YM = (e, t) => {
|
|
26980
|
+
let n = (e && e[rM]).call(e), r;
|
|
27067
26981
|
for (; (r = n.next()) && !r.done;) {
|
|
27068
26982
|
let n = r.value;
|
|
27069
26983
|
t.call(e, n[0], n[1]);
|
|
27070
26984
|
}
|
|
27071
|
-
},
|
|
26985
|
+
}, XM = (e, t) => {
|
|
27072
26986
|
let n, r = [];
|
|
27073
26987
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
27074
26988
|
return r;
|
|
27075
|
-
},
|
|
26989
|
+
}, ZM = oM("HTMLFormElement"), QM = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
27076
26990
|
return t.toUpperCase() + n;
|
|
27077
|
-
}),
|
|
26991
|
+
}), $M = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), eN = oM("RegExp"), tN = (e, t) => {
|
|
27078
26992
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
27079
|
-
|
|
26993
|
+
LM(n, (n, i) => {
|
|
27080
26994
|
let a;
|
|
27081
26995
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
27082
26996
|
}), Object.defineProperties(e, r);
|
|
27083
|
-
},
|
|
27084
|
-
|
|
27085
|
-
if (
|
|
26997
|
+
}, nN = (e) => {
|
|
26998
|
+
tN(e, (t, n) => {
|
|
26999
|
+
if (mM(e) && [
|
|
27086
27000
|
"arguments",
|
|
27087
27001
|
"caller",
|
|
27088
27002
|
"callee"
|
|
27089
27003
|
].indexOf(n) !== -1) return !1;
|
|
27090
27004
|
let r = e[n];
|
|
27091
|
-
if (
|
|
27005
|
+
if (mM(r)) {
|
|
27092
27006
|
if (t.enumerable = !1, "writable" in t) {
|
|
27093
27007
|
t.writable = !1;
|
|
27094
27008
|
return;
|
|
@@ -27098,99 +27012,99 @@ var GM = (e, t, n, { allOwnKeys: r } = {}) => (BM(t, (t, r) => {
|
|
|
27098
27012
|
};
|
|
27099
27013
|
}
|
|
27100
27014
|
});
|
|
27101
|
-
},
|
|
27015
|
+
}, rN = (e, t) => {
|
|
27102
27016
|
let n = {}, r = (e) => {
|
|
27103
27017
|
e.forEach((e) => {
|
|
27104
27018
|
n[e] = !0;
|
|
27105
27019
|
});
|
|
27106
27020
|
};
|
|
27107
|
-
return
|
|
27108
|
-
},
|
|
27109
|
-
function
|
|
27110
|
-
return !!(e &&
|
|
27021
|
+
return cM(e) ? r(e) : r(String(e).split(t)), n;
|
|
27022
|
+
}, iN = () => {}, aN = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
27023
|
+
function oN(e) {
|
|
27024
|
+
return !!(e && mM(e.append) && e[iM] === "FormData" && e[rM]);
|
|
27111
27025
|
}
|
|
27112
|
-
var
|
|
27026
|
+
var sN = (e) => {
|
|
27113
27027
|
let t = Array(10), n = (e, r) => {
|
|
27114
|
-
if (
|
|
27028
|
+
if (gM(e)) {
|
|
27115
27029
|
if (t.indexOf(e) >= 0) return;
|
|
27116
|
-
if (
|
|
27030
|
+
if (uM(e)) return e;
|
|
27117
27031
|
if (!("toJSON" in e)) {
|
|
27118
27032
|
t[r] = e;
|
|
27119
|
-
let i =
|
|
27120
|
-
return
|
|
27033
|
+
let i = cM(e) ? [] : {};
|
|
27034
|
+
return LM(e, (e, t) => {
|
|
27121
27035
|
let a = n(e, r + 1);
|
|
27122
|
-
!
|
|
27036
|
+
!lM(a) && (i[t] = a);
|
|
27123
27037
|
}), t[r] = void 0, i;
|
|
27124
27038
|
}
|
|
27125
27039
|
}
|
|
27126
27040
|
return e;
|
|
27127
27041
|
};
|
|
27128
27042
|
return n(e, 0);
|
|
27129
|
-
},
|
|
27130
|
-
n ===
|
|
27043
|
+
}, cN = oM("AsyncFunction"), lN = (e) => e && (gM(e) || mM(e)) && mM(e.then) && mM(e.catch), uN = ((e, t) => e ? setImmediate : t ? ((e, t) => (zM.addEventListener("message", ({ source: n, data: r }) => {
|
|
27044
|
+
n === zM && r === e && t.length && t.shift()();
|
|
27131
27045
|
}, !1), (n) => {
|
|
27132
|
-
t.push(n),
|
|
27133
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
27134
|
-
isArray:
|
|
27135
|
-
isArrayBuffer:
|
|
27136
|
-
isBuffer:
|
|
27137
|
-
isFormData:
|
|
27138
|
-
isArrayBufferView:
|
|
27139
|
-
isString:
|
|
27140
|
-
isNumber:
|
|
27141
|
-
isBoolean:
|
|
27142
|
-
isObject:
|
|
27143
|
-
isPlainObject:
|
|
27144
|
-
isEmptyObject:
|
|
27145
|
-
isReadableStream:
|
|
27146
|
-
isRequest:
|
|
27147
|
-
isResponse:
|
|
27148
|
-
isHeaders:
|
|
27149
|
-
isUndefined:
|
|
27150
|
-
isDate:
|
|
27151
|
-
isFile:
|
|
27152
|
-
isReactNativeBlob:
|
|
27153
|
-
isReactNative:
|
|
27154
|
-
isBlob:
|
|
27155
|
-
isRegExp:
|
|
27156
|
-
isFunction:
|
|
27157
|
-
isStream:
|
|
27158
|
-
isURLSearchParams:
|
|
27159
|
-
isTypedArray:
|
|
27160
|
-
isFileList:
|
|
27161
|
-
forEach:
|
|
27162
|
-
merge:
|
|
27163
|
-
extend:
|
|
27164
|
-
trim:
|
|
27165
|
-
stripBOM:
|
|
27166
|
-
inherits:
|
|
27167
|
-
toFlatObject:
|
|
27168
|
-
kindOf:
|
|
27169
|
-
kindOfTest:
|
|
27170
|
-
endsWith:
|
|
27171
|
-
toArray:
|
|
27172
|
-
forEachEntry:
|
|
27173
|
-
matchAll:
|
|
27174
|
-
isHTMLForm:
|
|
27175
|
-
hasOwnProperty:
|
|
27176
|
-
hasOwnProp:
|
|
27177
|
-
reduceDescriptors:
|
|
27178
|
-
freezeMethods:
|
|
27179
|
-
toObjectSet:
|
|
27180
|
-
toCamelCase:
|
|
27181
|
-
noop:
|
|
27182
|
-
toFiniteNumber:
|
|
27183
|
-
findKey:
|
|
27184
|
-
global:
|
|
27185
|
-
isContextDefined:
|
|
27186
|
-
isSpecCompliantForm:
|
|
27187
|
-
toJSONObject:
|
|
27188
|
-
isAsyncFn:
|
|
27189
|
-
isThenable:
|
|
27190
|
-
setImmediate:
|
|
27191
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
27192
|
-
isIterable: (e) => e != null &&
|
|
27193
|
-
},
|
|
27046
|
+
t.push(n), zM.postMessage(e, "*");
|
|
27047
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", mM(zM.postMessage)), $ = {
|
|
27048
|
+
isArray: cM,
|
|
27049
|
+
isArrayBuffer: dM,
|
|
27050
|
+
isBuffer: uM,
|
|
27051
|
+
isFormData: AM,
|
|
27052
|
+
isArrayBufferView: fM,
|
|
27053
|
+
isString: pM,
|
|
27054
|
+
isNumber: hM,
|
|
27055
|
+
isBoolean: _M,
|
|
27056
|
+
isObject: gM,
|
|
27057
|
+
isPlainObject: vM,
|
|
27058
|
+
isEmptyObject: yM,
|
|
27059
|
+
isReadableStream: MM,
|
|
27060
|
+
isRequest: NM,
|
|
27061
|
+
isResponse: PM,
|
|
27062
|
+
isHeaders: FM,
|
|
27063
|
+
isUndefined: lM,
|
|
27064
|
+
isDate: bM,
|
|
27065
|
+
isFile: xM,
|
|
27066
|
+
isReactNativeBlob: SM,
|
|
27067
|
+
isReactNative: CM,
|
|
27068
|
+
isBlob: wM,
|
|
27069
|
+
isRegExp: eN,
|
|
27070
|
+
isFunction: mM,
|
|
27071
|
+
isStream: EM,
|
|
27072
|
+
isURLSearchParams: jM,
|
|
27073
|
+
isTypedArray: JM,
|
|
27074
|
+
isFileList: TM,
|
|
27075
|
+
forEach: LM,
|
|
27076
|
+
merge: VM,
|
|
27077
|
+
extend: HM,
|
|
27078
|
+
trim: IM,
|
|
27079
|
+
stripBOM: UM,
|
|
27080
|
+
inherits: WM,
|
|
27081
|
+
toFlatObject: GM,
|
|
27082
|
+
kindOf: aM,
|
|
27083
|
+
kindOfTest: oM,
|
|
27084
|
+
endsWith: KM,
|
|
27085
|
+
toArray: qM,
|
|
27086
|
+
forEachEntry: YM,
|
|
27087
|
+
matchAll: XM,
|
|
27088
|
+
isHTMLForm: ZM,
|
|
27089
|
+
hasOwnProperty: $M,
|
|
27090
|
+
hasOwnProp: $M,
|
|
27091
|
+
reduceDescriptors: tN,
|
|
27092
|
+
freezeMethods: nN,
|
|
27093
|
+
toObjectSet: rN,
|
|
27094
|
+
toCamelCase: QM,
|
|
27095
|
+
noop: iN,
|
|
27096
|
+
toFiniteNumber: aN,
|
|
27097
|
+
findKey: RM,
|
|
27098
|
+
global: zM,
|
|
27099
|
+
isContextDefined: BM,
|
|
27100
|
+
isSpecCompliantForm: oN,
|
|
27101
|
+
toJSONObject: sN,
|
|
27102
|
+
isAsyncFn: cN,
|
|
27103
|
+
isThenable: lN,
|
|
27104
|
+
setImmediate: uN,
|
|
27105
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(zM) : typeof process < "u" && process.nextTick || uN,
|
|
27106
|
+
isIterable: (e) => e != null && mM(e[rM])
|
|
27107
|
+
}, dN = class e extends Error {
|
|
27194
27108
|
static from(t, n, r, i, a, o) {
|
|
27195
27109
|
let s = new e(t.message, n || t.code, r, i, a);
|
|
27196
27110
|
return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
|
|
@@ -27219,27 +27133,27 @@ var uN = (e) => {
|
|
|
27219
27133
|
};
|
|
27220
27134
|
}
|
|
27221
27135
|
};
|
|
27222
|
-
|
|
27136
|
+
dN.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", dN.ERR_BAD_OPTION = "ERR_BAD_OPTION", dN.ECONNABORTED = "ECONNABORTED", dN.ETIMEDOUT = "ETIMEDOUT", dN.ERR_NETWORK = "ERR_NETWORK", dN.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", dN.ERR_DEPRECATED = "ERR_DEPRECATED", dN.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", dN.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", dN.ERR_CANCELED = "ERR_CANCELED", dN.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", dN.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
27223
27137
|
//#endregion
|
|
27224
27138
|
//#region node_modules/axios/lib/helpers/toFormData.js
|
|
27225
|
-
function
|
|
27139
|
+
function fN(e) {
|
|
27226
27140
|
return $.isPlainObject(e) || $.isArray(e);
|
|
27227
27141
|
}
|
|
27228
|
-
function
|
|
27142
|
+
function pN(e) {
|
|
27229
27143
|
return $.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
27230
27144
|
}
|
|
27231
|
-
function
|
|
27145
|
+
function mN(e, t, n) {
|
|
27232
27146
|
return e ? e.concat(t).map(function(e, t) {
|
|
27233
|
-
return e =
|
|
27147
|
+
return e = pN(e), !n && t ? "[" + e + "]" : e;
|
|
27234
27148
|
}).join(n ? "." : "") : t;
|
|
27235
27149
|
}
|
|
27236
|
-
function
|
|
27237
|
-
return $.isArray(e) && !e.some(
|
|
27150
|
+
function hN(e) {
|
|
27151
|
+
return $.isArray(e) && !e.some(fN);
|
|
27238
27152
|
}
|
|
27239
|
-
var
|
|
27153
|
+
var gN = $.toFlatObject($, {}, null, function(e) {
|
|
27240
27154
|
return /^is[A-Z]/.test(e);
|
|
27241
27155
|
});
|
|
27242
|
-
function
|
|
27156
|
+
function _N(e, t, n) {
|
|
27243
27157
|
if (!$.isObject(e)) throw TypeError("target must be an object");
|
|
27244
27158
|
t ||= new FormData(), n = $.toFlatObject(n, {
|
|
27245
27159
|
metaTokens: !0,
|
|
@@ -27254,24 +27168,24 @@ function bN(e, t, n) {
|
|
|
27254
27168
|
if (e === null) return "";
|
|
27255
27169
|
if ($.isDate(e)) return e.toISOString();
|
|
27256
27170
|
if ($.isBoolean(e)) return e.toString();
|
|
27257
|
-
if (!s && $.isBlob(e)) throw new
|
|
27171
|
+
if (!s && $.isBlob(e)) throw new dN("Blob is not supported. Use a Buffer instead.");
|
|
27258
27172
|
return $.isArrayBuffer(e) || $.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
27259
27173
|
}
|
|
27260
27174
|
function l(e, n, i) {
|
|
27261
27175
|
let s = e;
|
|
27262
|
-
if ($.isReactNative(t) && $.isReactNativeBlob(e)) return t.append(
|
|
27176
|
+
if ($.isReactNative(t) && $.isReactNativeBlob(e)) return t.append(mN(i, n, a), c(e)), !1;
|
|
27263
27177
|
if (e && !i && typeof e == "object") {
|
|
27264
27178
|
if ($.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
27265
|
-
else if ($.isArray(e) &&
|
|
27266
|
-
!($.isUndefined(e) || e === null) && t.append(o === !0 ?
|
|
27179
|
+
else if ($.isArray(e) && hN(e) || ($.isFileList(e) || $.endsWith(n, "[]")) && (s = $.toArray(e))) return n = pN(n), s.forEach(function(e, r) {
|
|
27180
|
+
!($.isUndefined(e) || e === null) && t.append(o === !0 ? mN([n], r, a) : o === null ? n : n + "[]", c(e));
|
|
27267
27181
|
}), !1;
|
|
27268
27182
|
}
|
|
27269
|
-
return
|
|
27183
|
+
return fN(e) ? !0 : (t.append(mN(i, n, a), c(e)), !1);
|
|
27270
27184
|
}
|
|
27271
|
-
let u = [], d = Object.assign(
|
|
27185
|
+
let u = [], d = Object.assign(gN, {
|
|
27272
27186
|
defaultVisitor: l,
|
|
27273
27187
|
convertValue: c,
|
|
27274
|
-
isVisitable:
|
|
27188
|
+
isVisitable: fN
|
|
27275
27189
|
});
|
|
27276
27190
|
function f(e, n) {
|
|
27277
27191
|
if (!$.isUndefined(e)) {
|
|
@@ -27286,7 +27200,7 @@ function bN(e, t, n) {
|
|
|
27286
27200
|
}
|
|
27287
27201
|
//#endregion
|
|
27288
27202
|
//#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
27289
|
-
function
|
|
27203
|
+
function vN(e) {
|
|
27290
27204
|
let t = {
|
|
27291
27205
|
"!": "%21",
|
|
27292
27206
|
"'": "%27",
|
|
@@ -27300,29 +27214,29 @@ function xN(e) {
|
|
|
27300
27214
|
return t[e];
|
|
27301
27215
|
});
|
|
27302
27216
|
}
|
|
27303
|
-
function
|
|
27304
|
-
this._pairs = [], e &&
|
|
27217
|
+
function yN(e, t) {
|
|
27218
|
+
this._pairs = [], e && _N(e, this, t);
|
|
27305
27219
|
}
|
|
27306
|
-
var
|
|
27307
|
-
|
|
27220
|
+
var bN = yN.prototype;
|
|
27221
|
+
bN.append = function(e, t) {
|
|
27308
27222
|
this._pairs.push([e, t]);
|
|
27309
|
-
},
|
|
27223
|
+
}, bN.toString = function(e) {
|
|
27310
27224
|
let t = e ? function(t) {
|
|
27311
|
-
return e.call(this, t,
|
|
27312
|
-
} :
|
|
27225
|
+
return e.call(this, t, vN);
|
|
27226
|
+
} : vN;
|
|
27313
27227
|
return this._pairs.map(function(e) {
|
|
27314
27228
|
return t(e[0]) + "=" + t(e[1]);
|
|
27315
27229
|
}, "").join("&");
|
|
27316
27230
|
};
|
|
27317
27231
|
//#endregion
|
|
27318
27232
|
//#region node_modules/axios/lib/helpers/buildURL.js
|
|
27319
|
-
function
|
|
27233
|
+
function xN(e) {
|
|
27320
27234
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
27321
27235
|
}
|
|
27322
|
-
function
|
|
27236
|
+
function SN(e, t, n) {
|
|
27323
27237
|
if (!t) return e;
|
|
27324
|
-
let r = n && n.encode ||
|
|
27325
|
-
if (o = a ? a(t, i) : $.isURLSearchParams(t) ? t.toString() : new
|
|
27238
|
+
let r = n && n.encode || xN, i = $.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
27239
|
+
if (o = a ? a(t, i) : $.isURLSearchParams(t) ? t.toString() : new yN(t, i).toString(r), o) {
|
|
27326
27240
|
let t = e.indexOf("#");
|
|
27327
27241
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
27328
27242
|
}
|
|
@@ -27330,7 +27244,7 @@ function TN(e, t, n) {
|
|
|
27330
27244
|
}
|
|
27331
27245
|
//#endregion
|
|
27332
27246
|
//#region node_modules/axios/lib/core/InterceptorManager.js
|
|
27333
|
-
var
|
|
27247
|
+
var CN = class {
|
|
27334
27248
|
constructor() {
|
|
27335
27249
|
this.handlers = [];
|
|
27336
27250
|
}
|
|
@@ -27353,15 +27267,15 @@ var EN = class {
|
|
|
27353
27267
|
t !== null && e(t);
|
|
27354
27268
|
});
|
|
27355
27269
|
}
|
|
27356
|
-
},
|
|
27270
|
+
}, wN = {
|
|
27357
27271
|
silentJSONParsing: !0,
|
|
27358
27272
|
forcedJSONParsing: !0,
|
|
27359
27273
|
clarifyTimeoutError: !1,
|
|
27360
27274
|
legacyInterceptorReqResOrdering: !0
|
|
27361
|
-
},
|
|
27275
|
+
}, TN = {
|
|
27362
27276
|
isBrowser: !0,
|
|
27363
27277
|
classes: {
|
|
27364
|
-
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams :
|
|
27278
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : yN,
|
|
27365
27279
|
FormData: typeof FormData < "u" ? FormData : null,
|
|
27366
27280
|
Blob: typeof Blob < "u" ? Blob : null
|
|
27367
27281
|
},
|
|
@@ -27373,58 +27287,58 @@ var EN = class {
|
|
|
27373
27287
|
"url",
|
|
27374
27288
|
"data"
|
|
27375
27289
|
]
|
|
27376
|
-
},
|
|
27377
|
-
hasBrowserEnv: () =>
|
|
27378
|
-
hasStandardBrowserEnv: () =>
|
|
27379
|
-
hasStandardBrowserWebWorkerEnv: () =>
|
|
27380
|
-
navigator: () =>
|
|
27381
|
-
origin: () =>
|
|
27382
|
-
}),
|
|
27290
|
+
}, EN = /* @__PURE__ */ F({
|
|
27291
|
+
hasBrowserEnv: () => DN,
|
|
27292
|
+
hasStandardBrowserEnv: () => kN,
|
|
27293
|
+
hasStandardBrowserWebWorkerEnv: () => AN,
|
|
27294
|
+
navigator: () => ON,
|
|
27295
|
+
origin: () => jN
|
|
27296
|
+
}), DN = typeof window < "u" && typeof document < "u", ON = typeof navigator == "object" && navigator || void 0, kN = DN && (!ON || [
|
|
27383
27297
|
"ReactNative",
|
|
27384
27298
|
"NativeScript",
|
|
27385
27299
|
"NS"
|
|
27386
|
-
].indexOf(
|
|
27387
|
-
...
|
|
27388
|
-
...
|
|
27300
|
+
].indexOf(ON.product) < 0), AN = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jN = DN && window.location.href || "http://localhost", MN = {
|
|
27301
|
+
...EN,
|
|
27302
|
+
...TN
|
|
27389
27303
|
};
|
|
27390
27304
|
//#endregion
|
|
27391
27305
|
//#region node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
27392
|
-
function
|
|
27393
|
-
return
|
|
27306
|
+
function NN(e, t) {
|
|
27307
|
+
return _N(e, new MN.classes.URLSearchParams(), {
|
|
27394
27308
|
visitor: function(e, t, n, r) {
|
|
27395
|
-
return
|
|
27309
|
+
return MN.isNode && $.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
27396
27310
|
},
|
|
27397
27311
|
...t
|
|
27398
27312
|
});
|
|
27399
27313
|
}
|
|
27400
27314
|
//#endregion
|
|
27401
27315
|
//#region node_modules/axios/lib/helpers/formDataToJSON.js
|
|
27402
|
-
function
|
|
27316
|
+
function PN(e) {
|
|
27403
27317
|
return $.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
27404
27318
|
}
|
|
27405
|
-
function
|
|
27319
|
+
function FN(e) {
|
|
27406
27320
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
27407
27321
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
27408
27322
|
return t;
|
|
27409
27323
|
}
|
|
27410
|
-
function
|
|
27324
|
+
function IN(e) {
|
|
27411
27325
|
function t(e, n, r, i) {
|
|
27412
27326
|
let a = e[i++];
|
|
27413
27327
|
if (a === "__proto__") return !0;
|
|
27414
27328
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
27415
|
-
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] =
|
|
27329
|
+
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] = FN(r[a])), !o);
|
|
27416
27330
|
}
|
|
27417
27331
|
if ($.isFormData(e) && $.isFunction(e.entries)) {
|
|
27418
27332
|
let n = {};
|
|
27419
27333
|
return $.forEachEntry(e, (e, r) => {
|
|
27420
|
-
t(
|
|
27334
|
+
t(PN(e), r, n, 0);
|
|
27421
27335
|
}), n;
|
|
27422
27336
|
}
|
|
27423
27337
|
return null;
|
|
27424
27338
|
}
|
|
27425
27339
|
//#endregion
|
|
27426
27340
|
//#region node_modules/axios/lib/defaults/index.js
|
|
27427
|
-
function
|
|
27341
|
+
function LN(e, t, n) {
|
|
27428
27342
|
if ($.isString(e)) try {
|
|
27429
27343
|
return (t || JSON.parse)(e), $.trim(e);
|
|
27430
27344
|
} catch (e) {
|
|
@@ -27432,8 +27346,8 @@ function BN(e, t, n) {
|
|
|
27432
27346
|
}
|
|
27433
27347
|
return (n || JSON.stringify)(e);
|
|
27434
27348
|
}
|
|
27435
|
-
var
|
|
27436
|
-
transitional:
|
|
27349
|
+
var RN = {
|
|
27350
|
+
transitional: wN,
|
|
27437
27351
|
adapter: [
|
|
27438
27352
|
"xhr",
|
|
27439
27353
|
"http",
|
|
@@ -27441,29 +27355,29 @@ var VN = {
|
|
|
27441
27355
|
],
|
|
27442
27356
|
transformRequest: [function(e, t) {
|
|
27443
27357
|
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = $.isObject(e);
|
|
27444
|
-
if (i && $.isHTMLForm(e) && (e = new FormData(e)), $.isFormData(e)) return r ? JSON.stringify(
|
|
27358
|
+
if (i && $.isHTMLForm(e) && (e = new FormData(e)), $.isFormData(e)) return r ? JSON.stringify(IN(e)) : e;
|
|
27445
27359
|
if ($.isArrayBuffer(e) || $.isBuffer(e) || $.isStream(e) || $.isFile(e) || $.isBlob(e) || $.isReadableStream(e)) return e;
|
|
27446
27360
|
if ($.isArrayBufferView(e)) return e.buffer;
|
|
27447
27361
|
if ($.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
27448
27362
|
let a;
|
|
27449
27363
|
if (i) {
|
|
27450
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
27364
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return NN(e, this.formSerializer).toString();
|
|
27451
27365
|
if ((a = $.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
27452
27366
|
let t = this.env && this.env.FormData;
|
|
27453
|
-
return
|
|
27367
|
+
return _N(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
|
|
27454
27368
|
}
|
|
27455
27369
|
}
|
|
27456
|
-
return i || r ? (t.setContentType("application/json", !1),
|
|
27370
|
+
return i || r ? (t.setContentType("application/json", !1), LN(e)) : e;
|
|
27457
27371
|
}],
|
|
27458
27372
|
transformResponse: [function(e) {
|
|
27459
|
-
let t = this.transitional ||
|
|
27373
|
+
let t = this.transitional || RN.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
27460
27374
|
if ($.isResponse(e) || $.isReadableStream(e)) return e;
|
|
27461
27375
|
if (e && $.isString(e) && (n && !this.responseType || r)) {
|
|
27462
27376
|
let n = !(t && t.silentJSONParsing) && r;
|
|
27463
27377
|
try {
|
|
27464
27378
|
return JSON.parse(e, this.parseReviver);
|
|
27465
27379
|
} catch (e) {
|
|
27466
|
-
if (n) throw e.name === "SyntaxError" ?
|
|
27380
|
+
if (n) throw e.name === "SyntaxError" ? dN.from(e, dN.ERR_BAD_RESPONSE, this, null, this.response) : e;
|
|
27467
27381
|
}
|
|
27468
27382
|
}
|
|
27469
27383
|
return e;
|
|
@@ -27474,8 +27388,8 @@ var VN = {
|
|
|
27474
27388
|
maxContentLength: -1,
|
|
27475
27389
|
maxBodyLength: -1,
|
|
27476
27390
|
env: {
|
|
27477
|
-
FormData:
|
|
27478
|
-
Blob:
|
|
27391
|
+
FormData: MN.classes.FormData,
|
|
27392
|
+
Blob: MN.classes.Blob
|
|
27479
27393
|
},
|
|
27480
27394
|
validateStatus: function(e) {
|
|
27481
27395
|
return e >= 200 && e < 300;
|
|
@@ -27493,11 +27407,11 @@ $.forEach([
|
|
|
27493
27407
|
"put",
|
|
27494
27408
|
"patch"
|
|
27495
27409
|
], (e) => {
|
|
27496
|
-
|
|
27410
|
+
RN.headers[e] = {};
|
|
27497
27411
|
});
|
|
27498
27412
|
//#endregion
|
|
27499
27413
|
//#region node_modules/axios/lib/helpers/parseHeaders.js
|
|
27500
|
-
var
|
|
27414
|
+
var zN = $.toObjectSet([
|
|
27501
27415
|
"age",
|
|
27502
27416
|
"authorization",
|
|
27503
27417
|
"content-length",
|
|
@@ -27515,35 +27429,35 @@ var HN = $.toObjectSet([
|
|
|
27515
27429
|
"referer",
|
|
27516
27430
|
"retry-after",
|
|
27517
27431
|
"user-agent"
|
|
27518
|
-
]),
|
|
27432
|
+
]), BN = (e) => {
|
|
27519
27433
|
let t = {}, n, r, i;
|
|
27520
27434
|
return e && e.split("\n").forEach(function(e) {
|
|
27521
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] &&
|
|
27435
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && zN[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
27522
27436
|
}), t;
|
|
27523
|
-
},
|
|
27524
|
-
function
|
|
27437
|
+
}, VN = Symbol("internals");
|
|
27438
|
+
function HN(e) {
|
|
27525
27439
|
return e && String(e).trim().toLowerCase();
|
|
27526
27440
|
}
|
|
27527
|
-
function
|
|
27528
|
-
return e === !1 || e == null ? e : $.isArray(e) ? e.map(
|
|
27441
|
+
function UN(e) {
|
|
27442
|
+
return e === !1 || e == null ? e : $.isArray(e) ? e.map(UN) : String(e).replace(/[\r\n]+$/, "");
|
|
27529
27443
|
}
|
|
27530
|
-
function
|
|
27444
|
+
function WN(e) {
|
|
27531
27445
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
27532
27446
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
27533
27447
|
return t;
|
|
27534
27448
|
}
|
|
27535
|
-
var
|
|
27536
|
-
function
|
|
27449
|
+
var GN = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
27450
|
+
function KN(e, t, n, r, i) {
|
|
27537
27451
|
if ($.isFunction(r)) return r.call(this, t, n);
|
|
27538
27452
|
if (i && (t = n), $.isString(t)) {
|
|
27539
27453
|
if ($.isString(r)) return t.indexOf(r) !== -1;
|
|
27540
27454
|
if ($.isRegExp(r)) return r.test(t);
|
|
27541
27455
|
}
|
|
27542
27456
|
}
|
|
27543
|
-
function
|
|
27457
|
+
function qN(e) {
|
|
27544
27458
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
27545
27459
|
}
|
|
27546
|
-
function
|
|
27460
|
+
function JN(e, t) {
|
|
27547
27461
|
let n = $.toCamelCase(" " + t);
|
|
27548
27462
|
[
|
|
27549
27463
|
"get",
|
|
@@ -27558,21 +27472,21 @@ function ZN(e, t) {
|
|
|
27558
27472
|
});
|
|
27559
27473
|
});
|
|
27560
27474
|
}
|
|
27561
|
-
var
|
|
27475
|
+
var YN = class {
|
|
27562
27476
|
constructor(e) {
|
|
27563
27477
|
e && this.set(e);
|
|
27564
27478
|
}
|
|
27565
27479
|
set(e, t, n) {
|
|
27566
27480
|
let r = this;
|
|
27567
27481
|
function i(e, t, n) {
|
|
27568
|
-
let i =
|
|
27482
|
+
let i = HN(t);
|
|
27569
27483
|
if (!i) throw Error("header name must be a non-empty string");
|
|
27570
27484
|
let a = $.findKey(r, i);
|
|
27571
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] =
|
|
27485
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = UN(e));
|
|
27572
27486
|
}
|
|
27573
27487
|
let a = (e, t) => $.forEach(e, (e, n) => i(e, n, t));
|
|
27574
27488
|
if ($.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
27575
|
-
else if ($.isString(e) && (e = e.trim()) && !
|
|
27489
|
+
else if ($.isString(e) && (e = e.trim()) && !GN(e)) a(BN(e), t);
|
|
27576
27490
|
else if ($.isObject(e) && $.isIterable(e)) {
|
|
27577
27491
|
let n = {}, r, i;
|
|
27578
27492
|
for (let t of e) {
|
|
@@ -27584,12 +27498,12 @@ var QN = class {
|
|
|
27584
27498
|
return this;
|
|
27585
27499
|
}
|
|
27586
27500
|
get(e, t) {
|
|
27587
|
-
if (e =
|
|
27501
|
+
if (e = HN(e), e) {
|
|
27588
27502
|
let n = $.findKey(this, e);
|
|
27589
27503
|
if (n) {
|
|
27590
27504
|
let e = this[n];
|
|
27591
27505
|
if (!t) return e;
|
|
27592
|
-
if (t === !0) return
|
|
27506
|
+
if (t === !0) return WN(e);
|
|
27593
27507
|
if ($.isFunction(t)) return t.call(this, e, n);
|
|
27594
27508
|
if ($.isRegExp(t)) return t.exec(e);
|
|
27595
27509
|
throw TypeError("parser must be boolean|regexp|function");
|
|
@@ -27597,18 +27511,18 @@ var QN = class {
|
|
|
27597
27511
|
}
|
|
27598
27512
|
}
|
|
27599
27513
|
has(e, t) {
|
|
27600
|
-
if (e =
|
|
27514
|
+
if (e = HN(e), e) {
|
|
27601
27515
|
let n = $.findKey(this, e);
|
|
27602
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
27516
|
+
return !!(n && this[n] !== void 0 && (!t || KN(this, this[n], n, t)));
|
|
27603
27517
|
}
|
|
27604
27518
|
return !1;
|
|
27605
27519
|
}
|
|
27606
27520
|
delete(e, t) {
|
|
27607
27521
|
let n = this, r = !1;
|
|
27608
27522
|
function i(e) {
|
|
27609
|
-
if (e =
|
|
27523
|
+
if (e = HN(e), e) {
|
|
27610
27524
|
let i = $.findKey(n, e);
|
|
27611
|
-
i && (!t ||
|
|
27525
|
+
i && (!t || KN(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
27612
27526
|
}
|
|
27613
27527
|
}
|
|
27614
27528
|
return $.isArray(e) ? e.forEach(i) : i(e), r;
|
|
@@ -27617,7 +27531,7 @@ var QN = class {
|
|
|
27617
27531
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
27618
27532
|
for (; n--;) {
|
|
27619
27533
|
let i = t[n];
|
|
27620
|
-
(!e ||
|
|
27534
|
+
(!e || KN(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
27621
27535
|
}
|
|
27622
27536
|
return r;
|
|
27623
27537
|
}
|
|
@@ -27626,11 +27540,11 @@ var QN = class {
|
|
|
27626
27540
|
return $.forEach(this, (r, i) => {
|
|
27627
27541
|
let a = $.findKey(n, i);
|
|
27628
27542
|
if (a) {
|
|
27629
|
-
t[a] =
|
|
27543
|
+
t[a] = UN(r), delete t[i];
|
|
27630
27544
|
return;
|
|
27631
27545
|
}
|
|
27632
|
-
let o = e ?
|
|
27633
|
-
o !== i && delete t[i], t[o] =
|
|
27546
|
+
let o = e ? qN(i) : String(i).trim();
|
|
27547
|
+
o !== i && delete t[i], t[o] = UN(r), n[o] = !0;
|
|
27634
27548
|
}), this;
|
|
27635
27549
|
}
|
|
27636
27550
|
concat(...e) {
|
|
@@ -27662,22 +27576,22 @@ var QN = class {
|
|
|
27662
27576
|
return t.forEach((e) => n.set(e)), n;
|
|
27663
27577
|
}
|
|
27664
27578
|
static accessor(e) {
|
|
27665
|
-
let t = (this[
|
|
27579
|
+
let t = (this[VN] = this[VN] = { accessors: {} }).accessors, n = this.prototype;
|
|
27666
27580
|
function r(e) {
|
|
27667
|
-
let r =
|
|
27668
|
-
t[r] || (
|
|
27581
|
+
let r = HN(e);
|
|
27582
|
+
t[r] || (JN(n, e), t[r] = !0);
|
|
27669
27583
|
}
|
|
27670
27584
|
return $.isArray(e) ? e.forEach(r) : r(e), this;
|
|
27671
27585
|
}
|
|
27672
27586
|
};
|
|
27673
|
-
|
|
27587
|
+
YN.accessor([
|
|
27674
27588
|
"Content-Type",
|
|
27675
27589
|
"Content-Length",
|
|
27676
27590
|
"Accept",
|
|
27677
27591
|
"Accept-Encoding",
|
|
27678
27592
|
"User-Agent",
|
|
27679
27593
|
"Authorization"
|
|
27680
|
-
]), $.reduceDescriptors(
|
|
27594
|
+
]), $.reduceDescriptors(YN.prototype, ({ value: e }, t) => {
|
|
27681
27595
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
27682
27596
|
return {
|
|
27683
27597
|
get: () => e,
|
|
@@ -27685,42 +27599,42 @@ QN.accessor([
|
|
|
27685
27599
|
this[n] = e;
|
|
27686
27600
|
}
|
|
27687
27601
|
};
|
|
27688
|
-
}), $.freezeMethods(
|
|
27602
|
+
}), $.freezeMethods(YN);
|
|
27689
27603
|
//#endregion
|
|
27690
27604
|
//#region node_modules/axios/lib/core/transformData.js
|
|
27691
|
-
function
|
|
27692
|
-
let n = this ||
|
|
27605
|
+
function XN(e, t) {
|
|
27606
|
+
let n = this || RN, r = t || n, i = YN.from(r.headers), a = r.data;
|
|
27693
27607
|
return $.forEach(e, function(e) {
|
|
27694
27608
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
27695
27609
|
}), i.normalize(), a;
|
|
27696
27610
|
}
|
|
27697
27611
|
//#endregion
|
|
27698
27612
|
//#region node_modules/axios/lib/cancel/isCancel.js
|
|
27699
|
-
function
|
|
27613
|
+
function ZN(e) {
|
|
27700
27614
|
return !!(e && e.__CANCEL__);
|
|
27701
27615
|
}
|
|
27702
27616
|
//#endregion
|
|
27703
27617
|
//#region node_modules/axios/lib/cancel/CanceledError.js
|
|
27704
|
-
var
|
|
27618
|
+
var QN = class extends dN {
|
|
27705
27619
|
constructor(e, t, n) {
|
|
27706
|
-
super(e ?? "canceled",
|
|
27620
|
+
super(e ?? "canceled", dN.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
27707
27621
|
}
|
|
27708
27622
|
};
|
|
27709
27623
|
//#endregion
|
|
27710
27624
|
//#region node_modules/axios/lib/core/settle.js
|
|
27711
|
-
function
|
|
27625
|
+
function $N(e, t, n) {
|
|
27712
27626
|
let r = n.config.validateStatus;
|
|
27713
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
27627
|
+
!n.status || !r || r(n.status) ? e(n) : t(new dN("Request failed with status code " + n.status, [dN.ERR_BAD_REQUEST, dN.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
27714
27628
|
}
|
|
27715
27629
|
//#endregion
|
|
27716
27630
|
//#region node_modules/axios/lib/helpers/parseProtocol.js
|
|
27717
|
-
function
|
|
27631
|
+
function eP(e) {
|
|
27718
27632
|
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
27719
27633
|
return t && t[1] || "";
|
|
27720
27634
|
}
|
|
27721
27635
|
//#endregion
|
|
27722
27636
|
//#region node_modules/axios/lib/helpers/speedometer.js
|
|
27723
|
-
function
|
|
27637
|
+
function tP(e, t) {
|
|
27724
27638
|
e ||= 10;
|
|
27725
27639
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
27726
27640
|
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
@@ -27735,7 +27649,7 @@ function iP(e, t) {
|
|
|
27735
27649
|
}
|
|
27736
27650
|
//#endregion
|
|
27737
27651
|
//#region node_modules/axios/lib/helpers/throttle.js
|
|
27738
|
-
function
|
|
27652
|
+
function nP(e, t) {
|
|
27739
27653
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
27740
27654
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
27741
27655
|
};
|
|
@@ -27748,9 +27662,9 @@ function aP(e, t) {
|
|
|
27748
27662
|
}
|
|
27749
27663
|
//#endregion
|
|
27750
27664
|
//#region node_modules/axios/lib/helpers/progressEventReducer.js
|
|
27751
|
-
var
|
|
27752
|
-
let r = 0, i =
|
|
27753
|
-
return
|
|
27665
|
+
var rP = (e, t, n = 3) => {
|
|
27666
|
+
let r = 0, i = tP(50, 250);
|
|
27667
|
+
return nP((n) => {
|
|
27754
27668
|
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
|
|
27755
27669
|
r = a, e({
|
|
27756
27670
|
loaded: a,
|
|
@@ -27764,14 +27678,14 @@ var oP = (e, t, n = 3) => {
|
|
|
27764
27678
|
[t ? "download" : "upload"]: !0
|
|
27765
27679
|
});
|
|
27766
27680
|
}, n);
|
|
27767
|
-
},
|
|
27681
|
+
}, iP = (e, t) => {
|
|
27768
27682
|
let n = e != null;
|
|
27769
27683
|
return [(r) => t[0]({
|
|
27770
27684
|
lengthComputable: n,
|
|
27771
27685
|
total: e,
|
|
27772
27686
|
loaded: r
|
|
27773
27687
|
}), t[1]];
|
|
27774
|
-
},
|
|
27688
|
+
}, aP = (e) => (...t) => $.asap(() => e(...t)), oP = MN.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, MN.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(MN.origin), MN.navigator && /(msie|trident)/i.test(MN.navigator.userAgent)) : () => !0, sP = MN.hasStandardBrowserEnv ? {
|
|
27775
27689
|
write(e, t, n, r, i, a, o) {
|
|
27776
27690
|
if (typeof document > "u") return;
|
|
27777
27691
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
@@ -27794,24 +27708,24 @@ var oP = (e, t, n = 3) => {
|
|
|
27794
27708
|
};
|
|
27795
27709
|
//#endregion
|
|
27796
27710
|
//#region node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
27797
|
-
function
|
|
27711
|
+
function cP(e) {
|
|
27798
27712
|
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
27799
27713
|
}
|
|
27800
27714
|
//#endregion
|
|
27801
27715
|
//#region node_modules/axios/lib/helpers/combineURLs.js
|
|
27802
|
-
function
|
|
27716
|
+
function lP(e, t) {
|
|
27803
27717
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
27804
27718
|
}
|
|
27805
27719
|
//#endregion
|
|
27806
27720
|
//#region node_modules/axios/lib/core/buildFullPath.js
|
|
27807
|
-
function
|
|
27808
|
-
let r = !
|
|
27809
|
-
return e && (r || n == 0) ?
|
|
27721
|
+
function uP(e, t, n) {
|
|
27722
|
+
let r = !cP(t);
|
|
27723
|
+
return e && (r || n == 0) ? lP(e, t) : t;
|
|
27810
27724
|
}
|
|
27811
27725
|
//#endregion
|
|
27812
27726
|
//#region node_modules/axios/lib/core/mergeConfig.js
|
|
27813
|
-
var
|
|
27814
|
-
function
|
|
27727
|
+
var dP = (e) => e instanceof YN ? { ...e } : e;
|
|
27728
|
+
function fP(e, t) {
|
|
27815
27729
|
t ||= {};
|
|
27816
27730
|
let n = {};
|
|
27817
27731
|
function r(e, t, n, r) {
|
|
@@ -27861,7 +27775,7 @@ function hP(e, t) {
|
|
|
27861
27775
|
socketPath: o,
|
|
27862
27776
|
responseEncoding: o,
|
|
27863
27777
|
validateStatus: s,
|
|
27864
|
-
headers: (e, t, n) => i(
|
|
27778
|
+
headers: (e, t, n) => i(dP(e), dP(t), n, !0)
|
|
27865
27779
|
};
|
|
27866
27780
|
return $.forEach(Object.keys({
|
|
27867
27781
|
...e,
|
|
@@ -27874,10 +27788,10 @@ function hP(e, t) {
|
|
|
27874
27788
|
}
|
|
27875
27789
|
//#endregion
|
|
27876
27790
|
//#region node_modules/axios/lib/helpers/resolveConfig.js
|
|
27877
|
-
var
|
|
27878
|
-
let t =
|
|
27879
|
-
if (t.headers = o =
|
|
27880
|
-
if (
|
|
27791
|
+
var pP = (e) => {
|
|
27792
|
+
let t = fP({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
27793
|
+
if (t.headers = o = YN.from(o), t.url = SN(uP(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)) {
|
|
27794
|
+
if (MN.hasStandardBrowserEnv || MN.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
27881
27795
|
else if ($.isFunction(n.getHeaders)) {
|
|
27882
27796
|
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
27883
27797
|
Object.entries(e).forEach(([e, n]) => {
|
|
@@ -27885,14 +27799,14 @@ var gP = (e) => {
|
|
|
27885
27799
|
});
|
|
27886
27800
|
}
|
|
27887
27801
|
}
|
|
27888
|
-
if (
|
|
27889
|
-
let e = i && a &&
|
|
27802
|
+
if (MN.hasStandardBrowserEnv && (r && $.isFunction(r) && (r = r(t)), r || r !== !1 && oP(t.url))) {
|
|
27803
|
+
let e = i && a && sP.read(a);
|
|
27890
27804
|
e && o.set(i, e);
|
|
27891
27805
|
}
|
|
27892
27806
|
return t;
|
|
27893
|
-
},
|
|
27807
|
+
}, mP = typeof XMLHttpRequest < "u" && function(e) {
|
|
27894
27808
|
return new Promise(function(t, n) {
|
|
27895
|
-
let r =
|
|
27809
|
+
let r = pP(e), i = r.data, a = YN.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
27896
27810
|
function m() {
|
|
27897
27811
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
27898
27812
|
}
|
|
@@ -27900,8 +27814,8 @@ var gP = (e) => {
|
|
|
27900
27814
|
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
27901
27815
|
function g() {
|
|
27902
27816
|
if (!h) return;
|
|
27903
|
-
let r =
|
|
27904
|
-
|
|
27817
|
+
let r = YN.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
27818
|
+
$N(function(e) {
|
|
27905
27819
|
t(e), m();
|
|
27906
27820
|
}, function(e) {
|
|
27907
27821
|
n(e), m();
|
|
@@ -27917,36 +27831,36 @@ var gP = (e) => {
|
|
|
27917
27831
|
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
27918
27832
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
27919
27833
|
}, h.onabort = function() {
|
|
27920
|
-
h &&= (n(new
|
|
27834
|
+
h &&= (n(new dN("Request aborted", dN.ECONNABORTED, e, h)), null);
|
|
27921
27835
|
}, h.onerror = function(t) {
|
|
27922
|
-
let r = new
|
|
27836
|
+
let r = new dN(t && t.message ? t.message : "Network Error", dN.ERR_NETWORK, e, h);
|
|
27923
27837
|
r.event = t || null, n(r), h = null;
|
|
27924
27838
|
}, h.ontimeout = function() {
|
|
27925
|
-
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional ||
|
|
27926
|
-
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new
|
|
27839
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || wN;
|
|
27840
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new dN(t, i.clarifyTimeoutError ? dN.ETIMEDOUT : dN.ECONNABORTED, e, h)), h = null;
|
|
27927
27841
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && $.forEach(a.toJSON(), function(e, t) {
|
|
27928
27842
|
h.setRequestHeader(t, e);
|
|
27929
|
-
}), $.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] =
|
|
27930
|
-
h &&= (n(!t || t.type ? new
|
|
27843
|
+
}), $.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = rP(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = rP(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
27844
|
+
h &&= (n(!t || t.type ? new QN(null, e, h) : t), h.abort(), null);
|
|
27931
27845
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
27932
|
-
let _ =
|
|
27933
|
-
if (_ &&
|
|
27934
|
-
n(new
|
|
27846
|
+
let _ = eP(r.url);
|
|
27847
|
+
if (_ && MN.protocols.indexOf(_) === -1) {
|
|
27848
|
+
n(new dN("Unsupported protocol " + _ + ":", dN.ERR_BAD_REQUEST, e));
|
|
27935
27849
|
return;
|
|
27936
27850
|
}
|
|
27937
27851
|
h.send(i || null);
|
|
27938
27852
|
});
|
|
27939
|
-
},
|
|
27853
|
+
}, hP = (e, t) => {
|
|
27940
27854
|
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
27941
27855
|
if (t || n) {
|
|
27942
27856
|
let n = new AbortController(), r, i = function(e) {
|
|
27943
27857
|
if (!r) {
|
|
27944
27858
|
r = !0, o();
|
|
27945
27859
|
let t = e instanceof Error ? e : this.reason;
|
|
27946
|
-
n.abort(t instanceof
|
|
27860
|
+
n.abort(t instanceof dN ? t : new QN(t instanceof Error ? t.message : t));
|
|
27947
27861
|
}
|
|
27948
27862
|
}, a = t && setTimeout(() => {
|
|
27949
|
-
a = null, i(new
|
|
27863
|
+
a = null, i(new dN(`timeout of ${t}ms exceeded`, dN.ETIMEDOUT));
|
|
27950
27864
|
}, t), o = () => {
|
|
27951
27865
|
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
27952
27866
|
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
@@ -27956,7 +27870,7 @@ var gP = (e) => {
|
|
|
27956
27870
|
let { signal: s } = n;
|
|
27957
27871
|
return s.unsubscribe = () => $.asap(o), s;
|
|
27958
27872
|
}
|
|
27959
|
-
},
|
|
27873
|
+
}, gP = function* (e, t) {
|
|
27960
27874
|
let n = e.byteLength;
|
|
27961
27875
|
if (!t || n < t) {
|
|
27962
27876
|
yield e;
|
|
@@ -27964,9 +27878,9 @@ var gP = (e) => {
|
|
|
27964
27878
|
}
|
|
27965
27879
|
let r = 0, i;
|
|
27966
27880
|
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
27967
|
-
},
|
|
27968
|
-
for await (let n of
|
|
27969
|
-
},
|
|
27881
|
+
}, _P = async function* (e, t) {
|
|
27882
|
+
for await (let n of vP(e)) yield* gP(n, t);
|
|
27883
|
+
}, vP = async function* (e) {
|
|
27970
27884
|
if (e[Symbol.asyncIterator]) {
|
|
27971
27885
|
yield* e;
|
|
27972
27886
|
return;
|
|
@@ -27981,8 +27895,8 @@ var gP = (e) => {
|
|
|
27981
27895
|
} finally {
|
|
27982
27896
|
await t.cancel();
|
|
27983
27897
|
}
|
|
27984
|
-
},
|
|
27985
|
-
let i =
|
|
27898
|
+
}, yP = (e, t, n, r) => {
|
|
27899
|
+
let i = _P(e, t), a = 0, o, s = (e) => {
|
|
27986
27900
|
o || (o = !0, r && r(e));
|
|
27987
27901
|
};
|
|
27988
27902
|
return new ReadableStream({
|
|
@@ -28003,21 +27917,21 @@ var gP = (e) => {
|
|
|
28003
27917
|
return s(e), i.return();
|
|
28004
27918
|
}
|
|
28005
27919
|
}, { highWaterMark: 2 });
|
|
28006
|
-
},
|
|
27920
|
+
}, bP = 64 * 1024, { isFunction: xP } = $, SP = (({ Request: e, Response: t }) => ({
|
|
28007
27921
|
Request: e,
|
|
28008
27922
|
Response: t
|
|
28009
|
-
}))($.global), { ReadableStream:
|
|
27923
|
+
}))($.global), { ReadableStream: CP, TextEncoder: wP } = $.global, TP = (e, ...t) => {
|
|
28010
27924
|
try {
|
|
28011
27925
|
return !!e(...t);
|
|
28012
27926
|
} catch {
|
|
28013
27927
|
return !1;
|
|
28014
27928
|
}
|
|
28015
|
-
},
|
|
28016
|
-
e = $.merge.call({ skipUndefined: !0 },
|
|
28017
|
-
let { fetch: t, Request: n, Response: r } = e, i = t ?
|
|
27929
|
+
}, EP = (e) => {
|
|
27930
|
+
e = $.merge.call({ skipUndefined: !0 }, SP, e);
|
|
27931
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? xP(t) : typeof fetch == "function", a = xP(n), o = xP(r);
|
|
28018
27932
|
if (!i) return !1;
|
|
28019
|
-
let s = i &&
|
|
28020
|
-
let e = !1, t = new
|
|
27933
|
+
let s = i && xP(CP), c = i && (typeof wP == "function" ? ((e) => (t) => e.encode(t))(new wP()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && TP(() => {
|
|
27934
|
+
let e = !1, t = new CP(), r = new n(MN.origin, {
|
|
28021
27935
|
body: t,
|
|
28022
27936
|
method: "POST",
|
|
28023
27937
|
get duplex() {
|
|
@@ -28025,7 +27939,7 @@ var gP = (e) => {
|
|
|
28025
27939
|
}
|
|
28026
27940
|
}).headers.has("Content-Type");
|
|
28027
27941
|
return t.cancel(), e && !r;
|
|
28028
|
-
}), u = o && s &&
|
|
27942
|
+
}), u = o && s && TP(() => $.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
28029
27943
|
i && [
|
|
28030
27944
|
"text",
|
|
28031
27945
|
"arrayBuffer",
|
|
@@ -28036,13 +27950,13 @@ var gP = (e) => {
|
|
|
28036
27950
|
!d[e] && (d[e] = (t, n) => {
|
|
28037
27951
|
let r = t && t[e];
|
|
28038
27952
|
if (r) return r.call(t);
|
|
28039
|
-
throw new
|
|
27953
|
+
throw new dN(`Response type '${e}' is not supported`, dN.ERR_NOT_SUPPORT, n);
|
|
28040
27954
|
});
|
|
28041
27955
|
});
|
|
28042
27956
|
let f = async (e) => {
|
|
28043
27957
|
if (e == null) return 0;
|
|
28044
27958
|
if ($.isBlob(e)) return e.size;
|
|
28045
|
-
if ($.isSpecCompliantForm(e)) return (await new n(
|
|
27959
|
+
if ($.isSpecCompliantForm(e)) return (await new n(MN.origin, {
|
|
28046
27960
|
method: "POST",
|
|
28047
27961
|
body: e
|
|
28048
27962
|
}).arrayBuffer()).byteLength;
|
|
@@ -28050,9 +27964,9 @@ var gP = (e) => {
|
|
|
28050
27964
|
if ($.isURLSearchParams(e) && (e += ""), $.isString(e)) return (await c(e)).byteLength;
|
|
28051
27965
|
}, p = async (e, t) => $.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
28052
27966
|
return async (e) => {
|
|
28053
|
-
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 } =
|
|
27967
|
+
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 } = pP(e), x = t || fetch;
|
|
28054
27968
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
28055
|
-
let S =
|
|
27969
|
+
let S = hP([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
28056
27970
|
S.unsubscribe();
|
|
28057
27971
|
}), T;
|
|
28058
27972
|
try {
|
|
@@ -28063,8 +27977,8 @@ var gP = (e) => {
|
|
|
28063
27977
|
duplex: "half"
|
|
28064
27978
|
}), t;
|
|
28065
27979
|
if ($.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
28066
|
-
let [t, n] =
|
|
28067
|
-
s =
|
|
27980
|
+
let [t, n] = iP(T, rP(aP(g)));
|
|
27981
|
+
s = yP(e.body, bP, t, n);
|
|
28068
27982
|
}
|
|
28069
27983
|
}
|
|
28070
27984
|
$.isString(y) || (y = y ? "include" : "omit");
|
|
@@ -28088,17 +28002,17 @@ var gP = (e) => {
|
|
|
28088
28002
|
].forEach((t) => {
|
|
28089
28003
|
e[t] = f[t];
|
|
28090
28004
|
});
|
|
28091
|
-
let t = $.toFiniteNumber(f.headers.get("content-length")), [n, i] = h &&
|
|
28092
|
-
f = new r(
|
|
28005
|
+
let t = $.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && iP(t, rP(aP(h), !0)) || [];
|
|
28006
|
+
f = new r(yP(f.body, bP, n, () => {
|
|
28093
28007
|
i && i(), w && w();
|
|
28094
28008
|
}), e);
|
|
28095
28009
|
}
|
|
28096
28010
|
_ ||= "text";
|
|
28097
28011
|
let E = await d[$.findKey(d, _) || "text"](f, e);
|
|
28098
28012
|
return !m && w && w(), await new Promise((t, n) => {
|
|
28099
|
-
|
|
28013
|
+
$N(t, n, {
|
|
28100
28014
|
data: E,
|
|
28101
|
-
headers:
|
|
28015
|
+
headers: YN.from(f.headers),
|
|
28102
28016
|
status: f.status,
|
|
28103
28017
|
statusText: f.statusText,
|
|
28104
28018
|
config: e,
|
|
@@ -28106,27 +28020,27 @@ var gP = (e) => {
|
|
|
28106
28020
|
});
|
|
28107
28021
|
});
|
|
28108
28022
|
} catch (t) {
|
|
28109
|
-
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new
|
|
28023
|
+
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new dN("Network Error", dN.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : dN.from(t, t && t.code, e, C, t && t.response);
|
|
28110
28024
|
}
|
|
28111
28025
|
};
|
|
28112
|
-
},
|
|
28026
|
+
}, DP = /* @__PURE__ */ new Map(), OP = (e) => {
|
|
28113
28027
|
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
28114
28028
|
r,
|
|
28115
28029
|
i,
|
|
28116
28030
|
n
|
|
28117
|
-
], o = a.length, s, c, l =
|
|
28118
|
-
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() :
|
|
28031
|
+
], o = a.length, s, c, l = DP;
|
|
28032
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : EP(t)), l = c;
|
|
28119
28033
|
return c;
|
|
28120
28034
|
};
|
|
28121
|
-
|
|
28035
|
+
OP();
|
|
28122
28036
|
//#endregion
|
|
28123
28037
|
//#region node_modules/axios/lib/adapters/adapters.js
|
|
28124
|
-
var
|
|
28038
|
+
var kP = {
|
|
28125
28039
|
http: null,
|
|
28126
|
-
xhr:
|
|
28127
|
-
fetch: { get:
|
|
28040
|
+
xhr: mP,
|
|
28041
|
+
fetch: { get: OP }
|
|
28128
28042
|
};
|
|
28129
|
-
$.forEach(
|
|
28043
|
+
$.forEach(kP, (e, t) => {
|
|
28130
28044
|
if (e) {
|
|
28131
28045
|
try {
|
|
28132
28046
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -28134,46 +28048,46 @@ $.forEach(MP, (e, t) => {
|
|
|
28134
28048
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
28135
28049
|
}
|
|
28136
28050
|
});
|
|
28137
|
-
var
|
|
28138
|
-
function
|
|
28051
|
+
var AP = (e) => `- ${e}`, jP = (e) => $.isFunction(e) || e === null || e === !1;
|
|
28052
|
+
function MP(e, t) {
|
|
28139
28053
|
e = $.isArray(e) ? e : [e];
|
|
28140
28054
|
let { length: n } = e, r, i, a = {};
|
|
28141
28055
|
for (let o = 0; o < n; o++) {
|
|
28142
28056
|
r = e[o];
|
|
28143
28057
|
let n;
|
|
28144
|
-
if (i = r, !
|
|
28058
|
+
if (i = r, !jP(r) && (i = kP[(n = String(r)).toLowerCase()], i === void 0)) throw new dN(`Unknown adapter '${n}'`);
|
|
28145
28059
|
if (i && ($.isFunction(i) || (i = i.get(t)))) break;
|
|
28146
28060
|
a[n || "#" + o] = i;
|
|
28147
28061
|
}
|
|
28148
28062
|
if (!i) {
|
|
28149
28063
|
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
28150
|
-
throw new
|
|
28064
|
+
throw new dN("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(AP).join("\n") : " " + AP(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
28151
28065
|
}
|
|
28152
28066
|
return i;
|
|
28153
28067
|
}
|
|
28154
|
-
var
|
|
28155
|
-
getAdapter:
|
|
28156
|
-
adapters:
|
|
28068
|
+
var NP = {
|
|
28069
|
+
getAdapter: MP,
|
|
28070
|
+
adapters: kP
|
|
28157
28071
|
};
|
|
28158
28072
|
//#endregion
|
|
28159
28073
|
//#region node_modules/axios/lib/core/dispatchRequest.js
|
|
28160
|
-
function
|
|
28161
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new
|
|
28074
|
+
function PP(e) {
|
|
28075
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new QN(null, e);
|
|
28162
28076
|
}
|
|
28163
|
-
function
|
|
28164
|
-
return
|
|
28077
|
+
function FP(e) {
|
|
28078
|
+
return PP(e), e.headers = YN.from(e.headers), e.data = XN.call(e, e.transformRequest), [
|
|
28165
28079
|
"post",
|
|
28166
28080
|
"put",
|
|
28167
28081
|
"patch"
|
|
28168
|
-
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
28169
|
-
return
|
|
28082
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), NP.getAdapter(e.adapter || RN.adapter, e)(e).then(function(t) {
|
|
28083
|
+
return PP(e), t.data = XN.call(e, e.transformResponse, t), t.headers = YN.from(t.headers), t;
|
|
28170
28084
|
}, function(t) {
|
|
28171
|
-
return
|
|
28085
|
+
return ZN(t) || (PP(e), t && t.response && (t.response.data = XN.call(e, e.transformResponse, t.response), t.response.headers = YN.from(t.response.headers))), Promise.reject(t);
|
|
28172
28086
|
});
|
|
28173
28087
|
}
|
|
28174
28088
|
//#endregion
|
|
28175
28089
|
//#region node_modules/axios/lib/env/data.js
|
|
28176
|
-
var
|
|
28090
|
+
var IP = "1.14.0", LP = {};
|
|
28177
28091
|
[
|
|
28178
28092
|
"object",
|
|
28179
28093
|
"boolean",
|
|
@@ -28182,43 +28096,43 @@ var zP = "1.14.0", BP = {};
|
|
|
28182
28096
|
"string",
|
|
28183
28097
|
"symbol"
|
|
28184
28098
|
].forEach((e, t) => {
|
|
28185
|
-
|
|
28099
|
+
LP[e] = function(n) {
|
|
28186
28100
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
28187
28101
|
};
|
|
28188
28102
|
});
|
|
28189
|
-
var
|
|
28190
|
-
|
|
28103
|
+
var RP = {};
|
|
28104
|
+
LP.transitional = function(e, t, n) {
|
|
28191
28105
|
function r(e, t) {
|
|
28192
|
-
return "[Axios v" +
|
|
28106
|
+
return "[Axios v" + IP + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
28193
28107
|
}
|
|
28194
28108
|
return (n, i, a) => {
|
|
28195
|
-
if (e === !1) throw new
|
|
28196
|
-
return t && !
|
|
28109
|
+
if (e === !1) throw new dN(r(i, " has been removed" + (t ? " in " + t : "")), dN.ERR_DEPRECATED);
|
|
28110
|
+
return t && !RP[i] && (RP[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;
|
|
28197
28111
|
};
|
|
28198
|
-
},
|
|
28112
|
+
}, LP.spelling = function(e) {
|
|
28199
28113
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
28200
28114
|
};
|
|
28201
|
-
function
|
|
28202
|
-
if (typeof e != "object") throw new
|
|
28115
|
+
function zP(e, t, n) {
|
|
28116
|
+
if (typeof e != "object") throw new dN("options must be an object", dN.ERR_BAD_OPTION_VALUE);
|
|
28203
28117
|
let r = Object.keys(e), i = r.length;
|
|
28204
28118
|
for (; i-- > 0;) {
|
|
28205
28119
|
let a = r[i], o = t[a];
|
|
28206
28120
|
if (o) {
|
|
28207
28121
|
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
28208
|
-
if (n !== !0) throw new
|
|
28122
|
+
if (n !== !0) throw new dN("option " + a + " must be " + n, dN.ERR_BAD_OPTION_VALUE);
|
|
28209
28123
|
continue;
|
|
28210
28124
|
}
|
|
28211
|
-
if (n !== !0) throw new
|
|
28125
|
+
if (n !== !0) throw new dN("Unknown option " + a, dN.ERR_BAD_OPTION);
|
|
28212
28126
|
}
|
|
28213
28127
|
}
|
|
28214
|
-
var
|
|
28215
|
-
assertOptions:
|
|
28216
|
-
validators:
|
|
28217
|
-
},
|
|
28128
|
+
var BP = {
|
|
28129
|
+
assertOptions: zP,
|
|
28130
|
+
validators: LP
|
|
28131
|
+
}, VP = BP.validators, HP = class {
|
|
28218
28132
|
constructor(e) {
|
|
28219
28133
|
this.defaults = e || {}, this.interceptors = {
|
|
28220
|
-
request: new
|
|
28221
|
-
response: new
|
|
28134
|
+
request: new CN(),
|
|
28135
|
+
response: new CN()
|
|
28222
28136
|
};
|
|
28223
28137
|
}
|
|
28224
28138
|
async request(e, t) {
|
|
@@ -28237,19 +28151,19 @@ var UP = {
|
|
|
28237
28151
|
}
|
|
28238
28152
|
}
|
|
28239
28153
|
_request(e, t) {
|
|
28240
|
-
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t =
|
|
28154
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = fP(this.defaults, t);
|
|
28241
28155
|
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
28242
|
-
n !== void 0 &&
|
|
28243
|
-
silentJSONParsing:
|
|
28244
|
-
forcedJSONParsing:
|
|
28245
|
-
clarifyTimeoutError:
|
|
28246
|
-
legacyInterceptorReqResOrdering:
|
|
28247
|
-
}, !1), r != null && ($.isFunction(r) ? t.paramsSerializer = { serialize: r } :
|
|
28248
|
-
encode:
|
|
28249
|
-
serialize:
|
|
28250
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls),
|
|
28251
|
-
baseUrl:
|
|
28252
|
-
withXsrfToken:
|
|
28156
|
+
n !== void 0 && BP.assertOptions(n, {
|
|
28157
|
+
silentJSONParsing: VP.transitional(VP.boolean),
|
|
28158
|
+
forcedJSONParsing: VP.transitional(VP.boolean),
|
|
28159
|
+
clarifyTimeoutError: VP.transitional(VP.boolean),
|
|
28160
|
+
legacyInterceptorReqResOrdering: VP.transitional(VP.boolean)
|
|
28161
|
+
}, !1), r != null && ($.isFunction(r) ? t.paramsSerializer = { serialize: r } : BP.assertOptions(r, {
|
|
28162
|
+
encode: VP.function,
|
|
28163
|
+
serialize: VP.function
|
|
28164
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), BP.assertOptions(t, {
|
|
28165
|
+
baseUrl: VP.spelling("baseURL"),
|
|
28166
|
+
withXsrfToken: VP.spelling("withXSRFToken")
|
|
28253
28167
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
28254
28168
|
let a = i && $.merge(i.common, i[t.method]);
|
|
28255
28169
|
i && $.forEach([
|
|
@@ -28262,12 +28176,12 @@ var UP = {
|
|
|
28262
28176
|
"common"
|
|
28263
28177
|
], (e) => {
|
|
28264
28178
|
delete i[e];
|
|
28265
|
-
}), t.headers =
|
|
28179
|
+
}), t.headers = YN.concat(a, i);
|
|
28266
28180
|
let o = [], s = !0;
|
|
28267
28181
|
this.interceptors.request.forEach(function(e) {
|
|
28268
28182
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
28269
28183
|
s &&= e.synchronous;
|
|
28270
|
-
let n = t.transitional ||
|
|
28184
|
+
let n = t.transitional || wN;
|
|
28271
28185
|
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
28272
28186
|
});
|
|
28273
28187
|
let c = [];
|
|
@@ -28276,7 +28190,7 @@ var UP = {
|
|
|
28276
28190
|
});
|
|
28277
28191
|
let l, u = 0, d;
|
|
28278
28192
|
if (!s) {
|
|
28279
|
-
let e = [
|
|
28193
|
+
let e = [FP.bind(this), void 0];
|
|
28280
28194
|
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
28281
28195
|
return l;
|
|
28282
28196
|
}
|
|
@@ -28292,7 +28206,7 @@ var UP = {
|
|
|
28292
28206
|
}
|
|
28293
28207
|
}
|
|
28294
28208
|
try {
|
|
28295
|
-
l =
|
|
28209
|
+
l = FP.call(this, f);
|
|
28296
28210
|
} catch (e) {
|
|
28297
28211
|
return Promise.reject(e);
|
|
28298
28212
|
}
|
|
@@ -28300,7 +28214,7 @@ var UP = {
|
|
|
28300
28214
|
return l;
|
|
28301
28215
|
}
|
|
28302
28216
|
getUri(e) {
|
|
28303
|
-
return e =
|
|
28217
|
+
return e = fP(this.defaults, e), SN(uP(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
28304
28218
|
}
|
|
28305
28219
|
};
|
|
28306
28220
|
$.forEach([
|
|
@@ -28309,8 +28223,8 @@ $.forEach([
|
|
|
28309
28223
|
"head",
|
|
28310
28224
|
"options"
|
|
28311
28225
|
], function(e) {
|
|
28312
|
-
|
|
28313
|
-
return this.request(
|
|
28226
|
+
HP.prototype[e] = function(t, n) {
|
|
28227
|
+
return this.request(fP(n || {}, {
|
|
28314
28228
|
method: e,
|
|
28315
28229
|
url: t,
|
|
28316
28230
|
data: (n || {}).data
|
|
@@ -28323,7 +28237,7 @@ $.forEach([
|
|
|
28323
28237
|
], function(e) {
|
|
28324
28238
|
function t(t) {
|
|
28325
28239
|
return function(n, r, i) {
|
|
28326
|
-
return this.request(
|
|
28240
|
+
return this.request(fP(i || {}, {
|
|
28327
28241
|
method: e,
|
|
28328
28242
|
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
28329
28243
|
url: n,
|
|
@@ -28331,11 +28245,11 @@ $.forEach([
|
|
|
28331
28245
|
}));
|
|
28332
28246
|
};
|
|
28333
28247
|
}
|
|
28334
|
-
|
|
28248
|
+
HP.prototype[e] = t(), HP.prototype[e + "Form"] = t(!0);
|
|
28335
28249
|
});
|
|
28336
28250
|
//#endregion
|
|
28337
28251
|
//#region node_modules/axios/lib/cancel/CancelToken.js
|
|
28338
|
-
var
|
|
28252
|
+
var UP = class e {
|
|
28339
28253
|
constructor(e) {
|
|
28340
28254
|
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
28341
28255
|
let t;
|
|
@@ -28356,7 +28270,7 @@ var KP = class e {
|
|
|
28356
28270
|
n.unsubscribe(t);
|
|
28357
28271
|
}, r;
|
|
28358
28272
|
}, e(function(e, r, i) {
|
|
28359
|
-
n.reason || (n.reason = new
|
|
28273
|
+
n.reason || (n.reason = new QN(e, r, i), t(n.reason));
|
|
28360
28274
|
});
|
|
28361
28275
|
}
|
|
28362
28276
|
throwIfRequested() {
|
|
@@ -28392,19 +28306,19 @@ var KP = class e {
|
|
|
28392
28306
|
};
|
|
28393
28307
|
//#endregion
|
|
28394
28308
|
//#region node_modules/axios/lib/helpers/spread.js
|
|
28395
|
-
function
|
|
28309
|
+
function WP(e) {
|
|
28396
28310
|
return function(t) {
|
|
28397
28311
|
return e.apply(null, t);
|
|
28398
28312
|
};
|
|
28399
28313
|
}
|
|
28400
28314
|
//#endregion
|
|
28401
28315
|
//#region node_modules/axios/lib/helpers/isAxiosError.js
|
|
28402
|
-
function
|
|
28316
|
+
function GP(e) {
|
|
28403
28317
|
return $.isObject(e) && e.isAxiosError === !0;
|
|
28404
28318
|
}
|
|
28405
28319
|
//#endregion
|
|
28406
28320
|
//#region node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
28407
|
-
var
|
|
28321
|
+
var KP = {
|
|
28408
28322
|
Continue: 100,
|
|
28409
28323
|
SwitchingProtocols: 101,
|
|
28410
28324
|
Processing: 102,
|
|
@@ -28475,24 +28389,24 @@ var YP = {
|
|
|
28475
28389
|
SslHandshakeFailed: 525,
|
|
28476
28390
|
InvalidSslCertificate: 526
|
|
28477
28391
|
};
|
|
28478
|
-
Object.entries(
|
|
28479
|
-
|
|
28392
|
+
Object.entries(KP).forEach(([e, t]) => {
|
|
28393
|
+
KP[t] = e;
|
|
28480
28394
|
});
|
|
28481
28395
|
//#endregion
|
|
28482
28396
|
//#region node_modules/axios/lib/axios.js
|
|
28483
|
-
function
|
|
28484
|
-
let t = new
|
|
28485
|
-
return $.extend(n,
|
|
28486
|
-
return
|
|
28397
|
+
function qP(e) {
|
|
28398
|
+
let t = new HP(e), n = eM(HP.prototype.request, t);
|
|
28399
|
+
return $.extend(n, HP.prototype, t, { allOwnKeys: !0 }), $.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
28400
|
+
return qP(fP(e, t));
|
|
28487
28401
|
}, n;
|
|
28488
28402
|
}
|
|
28489
|
-
var
|
|
28490
|
-
|
|
28403
|
+
var JP = qP(RN);
|
|
28404
|
+
JP.Axios = HP, JP.CanceledError = QN, JP.CancelToken = UP, JP.isCancel = ZN, JP.VERSION = IP, JP.toFormData = _N, JP.AxiosError = dN, JP.Cancel = JP.CanceledError, JP.all = function(e) {
|
|
28491
28405
|
return Promise.all(e);
|
|
28492
|
-
},
|
|
28406
|
+
}, JP.spread = WP, JP.isAxiosError = GP, JP.mergeConfig = fP, JP.AxiosHeaders = YN, JP.formToJSON = (e) => IN($.isHTMLForm(e) ? new FormData(e) : e), JP.getAdapter = NP.getAdapter, JP.HttpStatusCode = KP, JP.default = JP;
|
|
28493
28407
|
//#endregion
|
|
28494
28408
|
//#region node_modules/axios/index.js
|
|
28495
|
-
var { Axios:
|
|
28409
|
+
var { Axios: YP, AxiosError: XP, CanceledError: ZP, isCancel: QP, CancelToken: $P, VERSION: eF, all: tF, Cancel: nF, isAxiosError: rF, spread: iF, toFormData: aF, AxiosHeaders: oF, HttpStatusCode: sF, formToJSON: cF, getAdapter: lF, mergeConfig: uF } = JP, dF = {
|
|
28496
28410
|
DEBUG: 1e4,
|
|
28497
28411
|
INFO: 2e4,
|
|
28498
28412
|
WARN: 3e4,
|
|
@@ -28500,13 +28414,13 @@ var { Axios: QP, AxiosError: $P, CanceledError: eF, isCancel: tF, CancelToken: n
|
|
|
28500
28414
|
};
|
|
28501
28415
|
//#endregion
|
|
28502
28416
|
//#region src/utils/logger/trace-utils.ts
|
|
28503
|
-
function
|
|
28417
|
+
function fF() {
|
|
28504
28418
|
let e = crypto.getRandomValues(new Uint8Array(16));
|
|
28505
28419
|
return Array.from(e).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
28506
28420
|
}
|
|
28507
28421
|
//#endregion
|
|
28508
28422
|
//#region src/utils/logger/logger.ts
|
|
28509
|
-
var
|
|
28423
|
+
var pF = class e {
|
|
28510
28424
|
static instance;
|
|
28511
28425
|
contextMap = /* @__PURE__ */ new Map();
|
|
28512
28426
|
static getInstance() {
|
|
@@ -28514,15 +28428,15 @@ var gF = class e {
|
|
|
28514
28428
|
}
|
|
28515
28429
|
startTrace(e) {
|
|
28516
28430
|
let t = {
|
|
28517
|
-
traceId:
|
|
28518
|
-
spanId:
|
|
28431
|
+
traceId: fF(),
|
|
28432
|
+
spanId: fF().substring(0, 16)
|
|
28519
28433
|
};
|
|
28520
28434
|
return this.contextMap.set(e, t), t;
|
|
28521
28435
|
}
|
|
28522
28436
|
startSpan(e) {
|
|
28523
28437
|
let t = this.contextMap.get(e);
|
|
28524
28438
|
if (!t) return this.startTrace(e);
|
|
28525
|
-
let n =
|
|
28439
|
+
let n = fF().substring(0, 16), r = {
|
|
28526
28440
|
traceId: t.traceId,
|
|
28527
28441
|
spanId: n,
|
|
28528
28442
|
parentSpanId: t.spanId
|
|
@@ -28552,13 +28466,13 @@ new class e {
|
|
|
28552
28466
|
};
|
|
28553
28467
|
}
|
|
28554
28468
|
createLogEntry(t, n, r) {
|
|
28555
|
-
let i =
|
|
28469
|
+
let i = pF.getCurrentContext(this.name) ?? pF.startTrace(this.name);
|
|
28556
28470
|
return {
|
|
28557
28471
|
"@timestamp": (/* @__PURE__ */ new Date()).toISOString(),
|
|
28558
28472
|
message: n,
|
|
28559
28473
|
logger_name: this.name,
|
|
28560
28474
|
level: t,
|
|
28561
|
-
level_value:
|
|
28475
|
+
level_value: dF[t],
|
|
28562
28476
|
applicationName: e.globalConfig.applicationName,
|
|
28563
28477
|
traceId: i.traceId,
|
|
28564
28478
|
spanId: i.spanId,
|
|
@@ -28568,7 +28482,7 @@ new class e {
|
|
|
28568
28482
|
};
|
|
28569
28483
|
}
|
|
28570
28484
|
log(t, n, r) {
|
|
28571
|
-
if (!(!this.config.enabled || !e.globalConfig.enabled ||
|
|
28485
|
+
if (!(!this.config.enabled || !e.globalConfig.enabled || dF[t] < dF[this.config.minLogLevel])) {
|
|
28572
28486
|
let e = this.createLogEntry(t, n, r);
|
|
28573
28487
|
console.log(JSON.stringify(e));
|
|
28574
28488
|
}
|
|
@@ -28586,10 +28500,10 @@ new class e {
|
|
|
28586
28500
|
this.log("ERROR", e, t);
|
|
28587
28501
|
}
|
|
28588
28502
|
startSpan() {
|
|
28589
|
-
|
|
28503
|
+
pF.startSpan(this.name);
|
|
28590
28504
|
}
|
|
28591
28505
|
clearTraceContext() {
|
|
28592
|
-
|
|
28506
|
+
pF.clearContext(this.name);
|
|
28593
28507
|
}
|
|
28594
28508
|
setEnabled(e) {
|
|
28595
28509
|
this.config.enabled = e;
|
|
@@ -28613,21 +28527,21 @@ new class e {
|
|
|
28613
28527
|
e.globalConfig.applicationName = t;
|
|
28614
28528
|
}
|
|
28615
28529
|
}("KeycloakService");
|
|
28616
|
-
var
|
|
28617
|
-
function
|
|
28618
|
-
return
|
|
28530
|
+
var mF = null;
|
|
28531
|
+
function hF() {
|
|
28532
|
+
return mF?.token ? `Bearer ${mF.token}` : void 0;
|
|
28619
28533
|
}
|
|
28620
|
-
function
|
|
28621
|
-
return
|
|
28534
|
+
function gF() {
|
|
28535
|
+
return mF;
|
|
28622
28536
|
}
|
|
28623
28537
|
//#endregion
|
|
28624
28538
|
//#region src/api/rest.service.ts
|
|
28625
|
-
var
|
|
28626
|
-
queryCache: new
|
|
28627
|
-
(t.meta?.handleGlobalError ?? !0) && e instanceof
|
|
28539
|
+
var _F = new Yj({
|
|
28540
|
+
queryCache: new Jj({ onError: (e, t) => {
|
|
28541
|
+
(t.meta?.handleGlobalError ?? !0) && e instanceof XP && qA(e);
|
|
28628
28542
|
} }),
|
|
28629
|
-
mutationCache: new
|
|
28630
|
-
(r.meta?.handleGlobalError ?? !0) && e instanceof
|
|
28543
|
+
mutationCache: new Gj({ onError: (e, t, n, r) => {
|
|
28544
|
+
(r.meta?.handleGlobalError ?? !0) && e instanceof XP && qA(e);
|
|
28631
28545
|
} }),
|
|
28632
28546
|
defaultOptions: {
|
|
28633
28547
|
queries: {
|
|
@@ -28638,39 +28552,39 @@ var bF = new Qj({
|
|
|
28638
28552
|
mutations: { retry: !1 }
|
|
28639
28553
|
}
|
|
28640
28554
|
});
|
|
28641
|
-
function
|
|
28555
|
+
function vF(e, t, n) {
|
|
28642
28556
|
let r = e.startsWith("/") ? e : `/${e}`;
|
|
28643
|
-
return t ? t === "public" ?
|
|
28557
|
+
return t ? t === "public" ? yF(r) : t === "private" ? (r.includes("/public/") && console.warn("[RestService] Private accessScope includes \"/public\" segment:", r), bF(r)) : n ? bF(r) : yF(r) : r;
|
|
28644
28558
|
}
|
|
28645
|
-
function
|
|
28559
|
+
function yF(e) {
|
|
28646
28560
|
return e.startsWith("/public/") ? e : `/public${e}`;
|
|
28647
28561
|
}
|
|
28648
|
-
function
|
|
28562
|
+
function bF(e) {
|
|
28649
28563
|
return e.startsWith("/public/") ? e.replace(/^\/public/, "") : e;
|
|
28650
28564
|
}
|
|
28651
|
-
function
|
|
28565
|
+
function xF(e, t = "") {
|
|
28652
28566
|
return `${e.replace(/\/+$/, "")}${t ? `/${t.replace(/^\/+/, "")}` : ""}`;
|
|
28653
28567
|
}
|
|
28654
|
-
function
|
|
28655
|
-
let r =
|
|
28656
|
-
baseURL:
|
|
28568
|
+
function SF({ baseUrl: e, prefix: t = "", withCollation: n = !0 }) {
|
|
28569
|
+
let r = JP.create({
|
|
28570
|
+
baseURL: xF(e, t),
|
|
28657
28571
|
paramsSerializer: { indexes: null }
|
|
28658
28572
|
});
|
|
28659
28573
|
return r.interceptors.request.use((e) => {
|
|
28660
|
-
let t =
|
|
28661
|
-
e.accessScope && (e.url =
|
|
28662
|
-
let i =
|
|
28663
|
-
return i && !r && (e.headers.Authorization = i), n && (e.headers.Collation =
|
|
28574
|
+
let t = gF()?.authenticated ?? !1, r = e.anonymous ?? !1;
|
|
28575
|
+
e.accessScope && (e.url = vF(e.url || "", e.accessScope, t));
|
|
28576
|
+
let i = hF();
|
|
28577
|
+
return i && !r && (e.headers.Authorization = i), n && (e.headers.Collation = hA.locale), !e.headers.has("Content-Type") && !(e.data instanceof FormData) && (e.headers["Content-Type"] = "application/json"), e.method?.toLowerCase() === "get" && (e.data = {}), e;
|
|
28664
28578
|
}, (e) => Promise.reject(e)), r;
|
|
28665
28579
|
}
|
|
28666
|
-
var
|
|
28667
|
-
function
|
|
28668
|
-
|
|
28580
|
+
var CF;
|
|
28581
|
+
function wF(e, t = "") {
|
|
28582
|
+
CF = SF({
|
|
28669
28583
|
baseUrl: e,
|
|
28670
28584
|
prefix: t
|
|
28671
28585
|
});
|
|
28672
28586
|
}
|
|
28673
|
-
function
|
|
28587
|
+
function TF(e) {
|
|
28674
28588
|
if (!e || typeof e != "object") return null;
|
|
28675
28589
|
let t = e, n = t.url?.api, r = t.url?.apiPaths?.genai;
|
|
28676
28590
|
return !n || !r ? null : {
|
|
@@ -28678,36 +28592,36 @@ function OF(e) {
|
|
|
28678
28592
|
genaiApiPath: r
|
|
28679
28593
|
};
|
|
28680
28594
|
}
|
|
28681
|
-
function
|
|
28682
|
-
let t =
|
|
28595
|
+
function EF(e) {
|
|
28596
|
+
let t = TF(e);
|
|
28683
28597
|
if (!t) throw Error("GenAI API base URL is missing in environment.json.");
|
|
28684
|
-
|
|
28598
|
+
wF(t.apiBaseUrl, t.genaiApiPath);
|
|
28685
28599
|
}
|
|
28686
28600
|
//#endregion
|
|
28687
28601
|
//#region src/api/genai.service.ts
|
|
28688
|
-
async function
|
|
28689
|
-
if (!
|
|
28602
|
+
async function DF(e, t) {
|
|
28603
|
+
if (!CF) throw Error("RestGenaiService is not initialized.");
|
|
28690
28604
|
let n = new URLSearchParams();
|
|
28691
28605
|
n.set("username", e), n.set("password", t);
|
|
28692
|
-
let r = await
|
|
28606
|
+
let r = await CF.post("/login", n, {
|
|
28693
28607
|
anonymous: !0,
|
|
28694
28608
|
headers: { "Content-Type": "application/x-www-form-urlencoded" }
|
|
28695
28609
|
});
|
|
28696
|
-
return r.data?.access_token &&
|
|
28610
|
+
return r.data?.access_token && vk(r.data.access_token), r.data;
|
|
28697
28611
|
}
|
|
28698
|
-
async function
|
|
28699
|
-
if (!
|
|
28700
|
-
let t =
|
|
28701
|
-
return t && (n.Authorization = `Bearer ${t}`), (await
|
|
28612
|
+
async function OF(e) {
|
|
28613
|
+
if (!CF) throw Error("RestGenaiService is not initialized.");
|
|
28614
|
+
let t = _k(), n = { "Content-Type": "application/json" };
|
|
28615
|
+
return t && (n.Authorization = `Bearer ${t}`), (await CF.post("/agent-message", e, {
|
|
28702
28616
|
anonymous: !0,
|
|
28703
28617
|
headers: n
|
|
28704
28618
|
})).data;
|
|
28705
28619
|
}
|
|
28706
28620
|
//#endregion
|
|
28707
28621
|
//#region src/queries/utils/createApiMutation.ts
|
|
28708
|
-
function
|
|
28622
|
+
function kF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
|
|
28709
28623
|
return function(r) {
|
|
28710
|
-
return
|
|
28624
|
+
return $j({
|
|
28711
28625
|
...n,
|
|
28712
28626
|
...r,
|
|
28713
28627
|
meta: {
|
|
@@ -28721,27 +28635,27 @@ function MF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
|
|
|
28721
28635
|
}
|
|
28722
28636
|
//#endregion
|
|
28723
28637
|
//#region src/queries/genai/useSendAgentMessageMutation.ts
|
|
28724
|
-
var
|
|
28638
|
+
var AF = kF({
|
|
28725
28639
|
mutationKey: ["genai", "agent-message"],
|
|
28726
|
-
mutationFn: async ({ payload: e }) =>
|
|
28640
|
+
mutationFn: async ({ payload: e }) => OF(e)
|
|
28727
28641
|
});
|
|
28728
28642
|
//#endregion
|
|
28729
28643
|
//#region src/hooks/useAgentChat.ts
|
|
28730
|
-
function
|
|
28644
|
+
function jF() {
|
|
28731
28645
|
let e = globalThis.crypto;
|
|
28732
28646
|
return e?.randomUUID ? e.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
28733
28647
|
}
|
|
28734
|
-
function
|
|
28735
|
-
let e =
|
|
28648
|
+
function MF() {
|
|
28649
|
+
let e = QO(), t = ek(), n = AF(), [r, i] = y([]), [a, o] = y(""), [s, c] = y(null), [l, d] = y(!1), [f, p] = y(null), m = v(!1), h = u((e) => {
|
|
28736
28650
|
let t = {
|
|
28737
|
-
id:
|
|
28651
|
+
id: jF(),
|
|
28738
28652
|
sentBy: "user",
|
|
28739
28653
|
text: e
|
|
28740
28654
|
};
|
|
28741
28655
|
i((e) => [...e, t]);
|
|
28742
28656
|
}, []), g = u((e, t) => {
|
|
28743
28657
|
let n = {
|
|
28744
|
-
id:
|
|
28658
|
+
id: jF(),
|
|
28745
28659
|
sentBy: "assistant",
|
|
28746
28660
|
text: e,
|
|
28747
28661
|
createdAt: t
|
|
@@ -28753,19 +28667,19 @@ function FF() {
|
|
|
28753
28667
|
p("Chat is not configured.");
|
|
28754
28668
|
return;
|
|
28755
28669
|
}
|
|
28756
|
-
let a =
|
|
28670
|
+
let a = ik(t);
|
|
28757
28671
|
if (!a) {
|
|
28758
28672
|
p("Chat configuration is missing.");
|
|
28759
28673
|
return;
|
|
28760
28674
|
}
|
|
28761
|
-
let l =
|
|
28675
|
+
let l = tk(e), u = await nk(e);
|
|
28762
28676
|
if (!l || !u) {
|
|
28763
28677
|
p("Missing customer runtime.");
|
|
28764
28678
|
return;
|
|
28765
28679
|
}
|
|
28766
28680
|
d(!0), p(null);
|
|
28767
28681
|
try {
|
|
28768
|
-
let e =
|
|
28682
|
+
let e = sk(await n.mutateAsync({ payload: {
|
|
28769
28683
|
message: r,
|
|
28770
28684
|
chat_id: s,
|
|
28771
28685
|
assistant_id: a,
|
|
@@ -28797,7 +28711,7 @@ function FF() {
|
|
|
28797
28711
|
sendMessage: _,
|
|
28798
28712
|
sendInitialMessage: u(async () => {
|
|
28799
28713
|
if (m.current || l || r.length > 0 || !e || !t) return;
|
|
28800
|
-
let n =
|
|
28714
|
+
let n = tk(e), i = ok(t), a = i ? `${i} ${n}`.trim() : `Hello, my customer id is ${n}`;
|
|
28801
28715
|
m.current = !0, await _(a, { showUserBubble: !1 });
|
|
28802
28716
|
}, [
|
|
28803
28717
|
e,
|
|
@@ -28814,8 +28728,8 @@ function FF() {
|
|
|
28814
28728
|
}
|
|
28815
28729
|
//#endregion
|
|
28816
28730
|
//#region src/hooks/useAgentChatRuntimeInfo.ts
|
|
28817
|
-
function
|
|
28818
|
-
let e =
|
|
28731
|
+
function NF() {
|
|
28732
|
+
let e = QO(), { runtimeInfo: t, setRuntimeInfo: n } = hk(), r = u(async () => {
|
|
28819
28733
|
if (!e) {
|
|
28820
28734
|
n({
|
|
28821
28735
|
customerId: null,
|
|
@@ -28824,7 +28738,7 @@ function IF() {
|
|
|
28824
28738
|
});
|
|
28825
28739
|
return;
|
|
28826
28740
|
}
|
|
28827
|
-
let t =
|
|
28741
|
+
let t = tk(e), r = await nk(e), i = _k();
|
|
28828
28742
|
n({
|
|
28829
28743
|
customerId: t,
|
|
28830
28744
|
hasCustomerToken: !!r,
|
|
@@ -28839,12 +28753,85 @@ function IF() {
|
|
|
28839
28753
|
};
|
|
28840
28754
|
}
|
|
28841
28755
|
//#endregion
|
|
28756
|
+
//#region src/hooks/usePointerInteraction.ts
|
|
28757
|
+
function PF() {
|
|
28758
|
+
let e = v(null);
|
|
28759
|
+
return {
|
|
28760
|
+
startInteraction: u((t) => {
|
|
28761
|
+
let { cursor: n, onMove: r, onEnd: i } = t;
|
|
28762
|
+
document.body.style.cursor = n, document.body.style.userSelect = "none";
|
|
28763
|
+
let a = () => {
|
|
28764
|
+
document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", a), i?.(), e.current = null;
|
|
28765
|
+
};
|
|
28766
|
+
document.addEventListener("pointermove", r), document.addEventListener("pointerup", a), e.current = a;
|
|
28767
|
+
}, []),
|
|
28768
|
+
cleanup: u(() => {
|
|
28769
|
+
e.current?.();
|
|
28770
|
+
}, [])
|
|
28771
|
+
};
|
|
28772
|
+
}
|
|
28773
|
+
//#endregion
|
|
28774
|
+
//#region src/hooks/useDraggable.ts
|
|
28775
|
+
var FF = 4;
|
|
28776
|
+
function IF(e = {}) {
|
|
28777
|
+
let { skipSelector: t = "button, [role=\"button\"], a, input, textarea", onDragChange: n } = e, [r, i] = y({
|
|
28778
|
+
x: 0,
|
|
28779
|
+
y: 0
|
|
28780
|
+
}), [a, o] = y(!1), s = v({
|
|
28781
|
+
startX: 0,
|
|
28782
|
+
startY: 0,
|
|
28783
|
+
startOffset: {
|
|
28784
|
+
x: 0,
|
|
28785
|
+
y: 0
|
|
28786
|
+
}
|
|
28787
|
+
}), { startInteraction: c } = PF();
|
|
28788
|
+
return {
|
|
28789
|
+
offset: r,
|
|
28790
|
+
isDragging: a,
|
|
28791
|
+
handlePointerDown: u((e) => {
|
|
28792
|
+
let a = e.target;
|
|
28793
|
+
if (t && a?.closest(t)) return;
|
|
28794
|
+
let l = e.clientX, u = e.clientY, d = { ...r }, f = 0, p = !1;
|
|
28795
|
+
s.current = {
|
|
28796
|
+
startX: l,
|
|
28797
|
+
startY: u,
|
|
28798
|
+
startOffset: d
|
|
28799
|
+
}, c({
|
|
28800
|
+
cursor: "grab",
|
|
28801
|
+
onMove: (e) => {
|
|
28802
|
+
let t = e.clientX - l, r = e.clientY - u;
|
|
28803
|
+
if (f = Math.abs(t) + Math.abs(r), !p && f >= FF && (p = !0, o(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none"), p) {
|
|
28804
|
+
let e = {
|
|
28805
|
+
x: d.x + t,
|
|
28806
|
+
y: d.y + r
|
|
28807
|
+
};
|
|
28808
|
+
i(e), n?.(e);
|
|
28809
|
+
}
|
|
28810
|
+
},
|
|
28811
|
+
onEnd: () => {
|
|
28812
|
+
p && o(!1);
|
|
28813
|
+
}
|
|
28814
|
+
});
|
|
28815
|
+
}, [
|
|
28816
|
+
r,
|
|
28817
|
+
t,
|
|
28818
|
+
n,
|
|
28819
|
+
c
|
|
28820
|
+
]),
|
|
28821
|
+
style: {
|
|
28822
|
+
transform: `translate(${r.x}px, ${r.y}px)`,
|
|
28823
|
+
cursor: a ? "grabbing" : "grab",
|
|
28824
|
+
touchAction: "none"
|
|
28825
|
+
}
|
|
28826
|
+
};
|
|
28827
|
+
}
|
|
28828
|
+
//#endregion
|
|
28842
28829
|
//#region src/hooks/useResizable.ts
|
|
28843
28830
|
function LF(e = {}) {
|
|
28844
28831
|
let { axis: t = "y", direction: n = 1, onResizeChange: r } = e, [i, a] = y(0), o = v({
|
|
28845
28832
|
startPos: 0,
|
|
28846
28833
|
startOffset: 0
|
|
28847
|
-
}), { startInteraction: s } =
|
|
28834
|
+
}), { startInteraction: s } = PF(), c = t === "y" ? "ns-resize" : t === "x" ? "ew-resize" : "nwse-resize";
|
|
28848
28835
|
return {
|
|
28849
28836
|
offset: i,
|
|
28850
28837
|
handlePointerDown: u((e) => {
|
|
@@ -29000,8 +28987,8 @@ function BF(e = {}) {
|
|
|
29000
28987
|
//#endregion
|
|
29001
28988
|
//#region src/hooks/useAgentChatSpeechLanguage.ts
|
|
29002
28989
|
function VF() {
|
|
29003
|
-
let e =
|
|
29004
|
-
return _(() => e &&
|
|
28990
|
+
let e = QO();
|
|
28991
|
+
return _(() => e && rk(e) || "en-US", [e]);
|
|
29005
28992
|
}
|
|
29006
28993
|
var HF = o({
|
|
29007
28994
|
keycloak: {
|
|
@@ -29033,9 +29020,9 @@ function UF() {
|
|
|
29033
29020
|
}
|
|
29034
29021
|
//#endregion
|
|
29035
29022
|
//#region src/queries/genai/useGenaiLoginMutation.ts
|
|
29036
|
-
var WF =
|
|
29023
|
+
var WF = kF({
|
|
29037
29024
|
mutationKey: ["genai", "login"],
|
|
29038
|
-
mutationFn: async ({ email: e, clientSecret: t }) =>
|
|
29025
|
+
mutationFn: async ({ email: e, clientSecret: t }) => DF(e, t)
|
|
29039
29026
|
});
|
|
29040
29027
|
//#endregion
|
|
29041
29028
|
//#region src/hooks/useGenaiLogin.ts
|
|
@@ -29043,7 +29030,7 @@ function GF() {
|
|
|
29043
29030
|
let e = UF(), { mutateAsync: t } = WF(), [n, r] = y(!1), [i, a] = y(null), [o, s] = y(!1), c = v(null);
|
|
29044
29031
|
return f(() => {
|
|
29045
29032
|
(async () => {
|
|
29046
|
-
if (
|
|
29033
|
+
if (_k()) {
|
|
29047
29034
|
s(!0);
|
|
29048
29035
|
return;
|
|
29049
29036
|
}
|
|
@@ -29081,7 +29068,7 @@ function JF({ ui: e }) {
|
|
|
29081
29068
|
let [t, { open: n, close: r }] = mt(!1), i = e?.zIndex ?? KF, a = e?.withinPortal ?? !0, o = {
|
|
29082
29069
|
bottom: e?.fabPosition?.bottom ?? qF.bottom,
|
|
29083
29070
|
right: e?.fabPosition?.right ?? qF.right
|
|
29084
|
-
}, { messages: s, composerText: c, setComposerText: l, isLoading: u, error: d, sendMessage: f, sendInitialMessage: p, canSend: m } =
|
|
29071
|
+
}, { messages: s, composerText: c, setComposerText: l, isLoading: u, error: d, sendMessage: f, sendInitialMessage: p, canSend: m } = MF(), { runtimeInfo: h, refreshRuntimeInfo: g } = NF(), v = IF({ skipSelector: "button, input, textarea, [role=\"button\"]" }), y = LF({ axis: "y" }), b = LF({
|
|
29085
29072
|
axis: "x",
|
|
29086
29073
|
direction: -1
|
|
29087
29074
|
}), x = zF([s.length, u]), { isListening: S, isSupported: C, startListening: D, stopListening: O, reset: k } = BF({
|
|
@@ -29095,7 +29082,7 @@ function JF({ ui: e }) {
|
|
|
29095
29082
|
}), []), j = async () => {
|
|
29096
29083
|
n(), await g(), await p();
|
|
29097
29084
|
};
|
|
29098
|
-
return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T(
|
|
29085
|
+
return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T(XO, {
|
|
29099
29086
|
onClick: () => void j(),
|
|
29100
29087
|
zIndex: i,
|
|
29101
29088
|
position: o
|
|
@@ -29131,13 +29118,13 @@ function JF({ ui: e }) {
|
|
|
29131
29118
|
//#endregion
|
|
29132
29119
|
//#region src/providers/AgentChatProviders.tsx
|
|
29133
29120
|
function YF({ runtime: e, children: t }) {
|
|
29134
|
-
return /* @__PURE__ */ T(
|
|
29121
|
+
return /* @__PURE__ */ T(ZO.Provider, {
|
|
29135
29122
|
value: e,
|
|
29136
29123
|
children: t
|
|
29137
29124
|
});
|
|
29138
29125
|
}
|
|
29139
29126
|
function XF({ config: e, children: t }) {
|
|
29140
|
-
return /* @__PURE__ */ T(
|
|
29127
|
+
return /* @__PURE__ */ T($O.Provider, {
|
|
29141
29128
|
value: e,
|
|
29142
29129
|
children: t
|
|
29143
29130
|
});
|
|
@@ -33554,13 +33541,13 @@ async function IB(e) {
|
|
|
33554
33541
|
//#endregion
|
|
33555
33542
|
//#region src/lib/agent-widget.tsx
|
|
33556
33543
|
function LB({ config: e, runtime: t, ui: n }) {
|
|
33557
|
-
return
|
|
33558
|
-
i18n:
|
|
33544
|
+
return hA.locale || hA.activate("en"), /* @__PURE__ */ T(ob, {
|
|
33545
|
+
i18n: hA,
|
|
33559
33546
|
children: /* @__PURE__ */ T(Gn, {
|
|
33560
33547
|
theme: PB,
|
|
33561
33548
|
defaultColorScheme: "auto",
|
|
33562
|
-
children: /* @__PURE__ */ T(
|
|
33563
|
-
client:
|
|
33549
|
+
children: /* @__PURE__ */ T(Qj, {
|
|
33550
|
+
client: _F,
|
|
33564
33551
|
children: /* @__PURE__ */ T(XF, {
|
|
33565
33552
|
config: e,
|
|
33566
33553
|
children: /* @__PURE__ */ T(YF, {
|
|
@@ -33600,7 +33587,7 @@ function VB(e, t) {
|
|
|
33600
33587
|
}
|
|
33601
33588
|
async function HB(e, t) {
|
|
33602
33589
|
let n = await IB(t.environmentUrl);
|
|
33603
|
-
return
|
|
33590
|
+
return EF(n), zB(e, {
|
|
33604
33591
|
config: VB(BB(n), t.config),
|
|
33605
33592
|
runtime: t.runtime,
|
|
33606
33593
|
ui: t.ui
|