react-luminus-components 2.0.32 → 2.0.34

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.
@@ -1,24 +1,25 @@
1
- import { t as re, bR as Ne, c as N, bS as Oe, R as ce, an as He, bT as Ae, a5 as H, ak as Ue, S as ie, bU as We, ar as je, ap as Fe, bd as _e, by as Re, bf as J, aq as Be, bV as ze, aF as we, bW as Ge, bX as Ve, bY as L, bZ as Xe, b_ as U, b$ as l, c0 as pe, c1 as Le, c2 as G, c3 as E, c4 as q, c5 as ae, c6 as Ie, c7 as Ke, c8 as Se, c9 as Je, ca as Qe, cb as Ye, cc as qe, cd as be, ce as z, cf as Me, cg as ye, ch as Ze, ci as fe, cj as et, ao as tt, b8 as nt, a6 as ot } from "./nivo-bar-wBsr2P1t.js";
2
- import { ck as un, ah as dn } from "./nivo-bar-wBsr2P1t.js";
3
- import { jsxs as I, jsx as C } from "react/jsx-runtime";
4
- import { useState as R, useContext as X, useEffect as B, useRef as Q, useMemo as F, useCallback as Y, useSyncExternalStore as st } from "react";
5
- import { EventType as ge, InteractionStatus as Ce, InteractionRequiredAuthError as rt } from "@azure/msal-browser";
6
- import { useMsal as it, MsalProvider as at } from "@azure/msal-react";
1
+ import { t as re, bR as Oe, c as N, bS as He, R as ae, an as Ue, bT as De, a5 as H, ak as We, S as ie, bU as je, ar as Fe, ap as Be, bd as pe, by as Re, bf as J, aq as ze, bV as Ge, aF as we, bW as Ve, bX as Xe, bY as L, bZ as Ke, b_ as U, b$ as l, c0 as _e, c1 as Le, c2 as V, c3 as E, c4 as q, c5 as ce, c6 as Ie, c7 as Je, c8 as Se, c9 as Qe, ca as Ye, cb as qe, cc as Ze, cd as be, ce as G, cf as Me, cg as Ce, ch as et, ci as fe, cj as $e, ao as tt, b8 as nt, a6 as ot } from "./nivo-bar-wBsr2P1t.js";
2
+ import { ck as gn, ah as pn } from "./nivo-bar-wBsr2P1t.js";
3
+ import { jsxs as I, jsx as y } from "react/jsx-runtime";
4
+ import { useState as R, useContext as z, useEffect as B, useRef as Q, useMemo as F, useCallback as Y, useSyncExternalStore as st } from "react";
5
+ import { EventType as ge, InteractionStatus as ye, InteractionRequiredAuthError as rt } from "@azure/msal-browser";
6
+ import { useMsal as it, MsalProvider as ct } from "@azure/msal-react";
7
7
  import "react-router";
8
8
  import "react-dom";
9
9
  import "react-hook-form";
10
10
  import "react-flexmonster";
11
- import { L as ct, b as lt } from "./FormDisabledProvider-CknAF8EI.js";
12
- import { F as gn } from "./FormDisabledProvider-CknAF8EI.js";
11
+ import { L as at, b as lt } from "./FormDisabledProvider-CknAF8EI.js";
12
+ import { F as mn } from "./FormDisabledProvider-CknAF8EI.js";
13
13
  import { a as ht, u as ut } from "./useLocalStorageState-DBd2vOH1.js";
14
- function dt(t) {
14
+ import { u as dt } from "./useIsBrowserOnline-RAirIO4c.js";
15
+ function ft(t) {
15
16
  const e = re(t);
16
17
  return e.setHours(23, 59, 59, 999), e;
17
18
  }
18
- function ft() {
19
- return dt(Date.now());
19
+ function gt() {
20
+ return ft(Date.now());
20
21
  }
21
- function gt(t, e) {
22
+ function pt(t, e) {
22
23
  const n = +re(t), [s, o] = [
23
24
  +re(e.start),
24
25
  +re(e.end)
@@ -26,261 +27,261 @@ function gt(t, e) {
26
27
  return n >= s && n <= o;
27
28
  }
28
29
  function _t() {
29
- return Ne(Date.now());
30
+ return Oe(Date.now());
30
31
  }
31
- const pt = (t) => {
32
+ const mt = (t) => {
32
33
  const e = N.c(10), {
33
34
  children: n
34
- } = t, [s, o] = R(!1), [i, r] = R(""), [a, c] = R(void 0);
35
+ } = t, [s, o] = R(!1), [i, r] = R(""), [c, a] = R(void 0);
35
36
  let h;
36
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (m, S) => {
37
- o(!0), r(m), c(S);
37
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (S, g) => {
38
+ o(!0), r(S), a(g);
38
39
  }, e[0] = h) : h = e[0];
39
40
  const u = h;
40
- let g;
41
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
41
+ let m;
42
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
42
43
  o(!1);
43
- }, e[1] = g) : g = e[1];
44
- const p = g;
45
- let _;
46
- e[2] !== s || e[3] !== i || e[4] !== a ? (_ = {
44
+ }, e[1] = m) : m = e[1];
45
+ const f = m;
46
+ let p;
47
+ e[2] !== s || e[3] !== i || e[4] !== c ? (p = {
47
48
  show: s,
48
49
  text: i,
49
50
  showConfirm: u,
50
- hideConfirm: p,
51
- textSm: a
52
- }, e[2] = s, e[3] = i, e[4] = a, e[5] = _) : _ = e[5];
53
- const w = _;
54
- let f;
55
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ C(Ft, {}), e[6] = f) : f = e[6];
51
+ hideConfirm: f,
52
+ textSm: c
53
+ }, e[2] = s, e[3] = i, e[4] = c, e[5] = p) : p = e[5];
54
+ const w = p;
55
+ let b;
56
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ y(Bt, {}), e[6] = b) : b = e[6];
56
57
  let d;
57
- return e[7] !== n || e[8] !== w ? (d = /* @__PURE__ */ I(Oe.Provider, { value: w, children: [
58
- f,
58
+ return e[7] !== n || e[8] !== w ? (d = /* @__PURE__ */ I(He.Provider, { value: w, children: [
59
+ b,
59
60
  n
60
61
  ] }), e[7] = n, e[8] = w, e[9] = d) : d = e[9], d;
61
- }, mt = () => {
62
+ }, wt = () => {
62
63
  const t = N.c(43), {
63
64
  texts: e
64
- } = X(ce), {
65
+ } = z(ae), {
65
66
  confirm: n
66
67
  } = e, {
67
68
  isShown: s,
68
69
  text: o,
69
70
  onFinish: i
70
- } = He(), {
71
+ } = Ue(), {
71
72
  options: r
72
- } = X(Ae), [a, c] = R(r.defaultValue ?? "");
73
+ } = z(De), [c, a] = R(r.defaultValue ?? "");
73
74
  let h;
74
75
  t[0] !== i ? (h = () => {
75
76
  i(null);
76
77
  }, t[0] = i, t[1] = h) : h = t[1];
77
78
  const u = h;
78
- let g;
79
- t[2] !== i || t[3] !== r.required || t[4] !== a ? (g = (j) => {
80
- j.preventDefault(), !(r.required && !a) && (i(a), c(""));
81
- }, t[2] = i, t[3] = r.required, t[4] = a, t[5] = g) : g = t[5];
82
- const p = g;
83
- let _;
84
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (_ = (j) => c(j.currentTarget.value), t[6] = _) : _ = t[6];
79
+ let m;
80
+ t[2] !== i || t[3] !== r.required || t[4] !== c ? (m = (j) => {
81
+ j.preventDefault(), !(r.required && !c) && (i(c), a(""));
82
+ }, t[2] = i, t[3] = r.required, t[4] = c, t[5] = m) : m = t[5];
83
+ const f = m;
84
+ let p;
85
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (p = (j) => a(j.currentTarget.value), t[6] = p) : p = t[6];
85
86
  let w;
86
- t[7] !== a ? (w = {
87
- value: a,
88
- onChange: _,
87
+ t[7] !== c ? (w = {
88
+ value: c,
89
+ onChange: p,
89
90
  className: "w-100",
90
91
  autoFocus: !0,
91
92
  tabIndex: 0
92
- }, t[7] = a, t[8] = w) : w = t[8];
93
- const f = w;
94
- let d, m;
93
+ }, t[7] = c, t[8] = w) : w = t[8];
94
+ const b = w;
95
+ let d, S;
95
96
  t[9] !== s || t[10] !== r.defaultValue ? (d = () => {
96
- s === !0 && c(r.defaultValue ?? "");
97
- }, m = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = m) : (d = t[11], m = t[12]), B(d, m);
98
- let S;
99
- t[13] !== o ? (S = /* @__PURE__ */ C(H.Header, { className: "justify-content-center", children: /* @__PURE__ */ C(H.Title, { children: o }) }), t[13] = o, t[14] = S) : S = t[14];
100
- let b;
101
- t[15] !== f || t[16] !== r.input ? (b = r.input === "textarea" ? /* @__PURE__ */ C("textarea", { ...f, rows: 5 }) : void 0, t[15] = f, t[16] = r.input, t[17] = b) : b = t[17];
102
- let y;
103
- t[18] !== f || t[19] !== r.input || t[20] !== r.type ? (y = r.input === "input" ? /* @__PURE__ */ C(Ue, { ...f, type: r.type }) : void 0, t[18] = f, t[19] = r.input, t[20] = r.type, t[21] = y) : y = t[21];
97
+ s === !0 && a(r.defaultValue ?? "");
98
+ }, S = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = S) : (d = t[11], S = t[12]), B(d, S);
99
+ let g;
100
+ t[13] !== o ? (g = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: /* @__PURE__ */ y(H.Title, { children: o }) }), t[13] = o, t[14] = g) : g = t[14];
101
+ let C;
102
+ t[15] !== b || t[16] !== r.input ? (C = r.input === "textarea" ? /* @__PURE__ */ y("textarea", { ...b, rows: 5 }) : void 0, t[15] = b, t[16] = r.input, t[17] = C) : C = t[17];
103
+ let _;
104
+ t[18] !== b || t[19] !== r.input || t[20] !== r.type ? (_ = r.input === "input" ? /* @__PURE__ */ y(We, { ...b, type: r.type }) : void 0, t[18] = b, t[19] = r.input, t[20] = r.type, t[21] = _) : _ = t[21];
104
105
  let v;
105
- t[22] !== b || t[23] !== y ? (v = /* @__PURE__ */ I(H.Body, { children: [
106
- b,
107
- y
108
- ] }), t[22] = b, t[23] = y, t[24] = v) : v = t[24];
109
- let T;
110
- t[25] !== n.cancel || t[26] !== u ? (T = /* @__PURE__ */ C(ie, { variant: "outlined", color: "secondary", onClick: u, className: "flex-grow-1", children: n.cancel }), t[25] = n.cancel, t[26] = u, t[27] = T) : T = t[27];
111
- const W = r.required && !a;
106
+ t[22] !== C || t[23] !== _ ? (v = /* @__PURE__ */ I(H.Body, { children: [
107
+ C,
108
+ _
109
+ ] }), t[22] = C, t[23] = _, t[24] = v) : v = t[24];
110
+ let k;
111
+ t[25] !== n.cancel || t[26] !== u ? (k = /* @__PURE__ */ y(ie, { variant: "outlined", color: "secondary", onClick: u, className: "flex-grow-1", children: n.cancel }), t[25] = n.cancel, t[26] = u, t[27] = k) : k = t[27];
112
+ const W = r.required && !c;
112
113
  let P;
113
- t[28] !== n.confirm || t[29] !== W ? (P = /* @__PURE__ */ C(ie, { color: "primary", disabled: W, type: "submit", className: "flex-grow-1", children: n.confirm }), t[28] = n.confirm, t[29] = W, t[30] = P) : P = t[30];
114
+ t[28] !== n.confirm || t[29] !== W ? (P = /* @__PURE__ */ y(ie, { color: "primary", disabled: W, type: "submit", className: "flex-grow-1", children: n.confirm }), t[28] = n.confirm, t[29] = W, t[30] = P) : P = t[30];
114
115
  let M;
115
- t[31] !== T || t[32] !== P ? (M = /* @__PURE__ */ I(H.Footer, { className: "w-100 d-flex gap-5", children: [
116
- T,
116
+ t[31] !== k || t[32] !== P ? (M = /* @__PURE__ */ I(H.Footer, { className: "w-100 d-flex gap-5", children: [
117
+ k,
117
118
  P
118
- ] }), t[31] = T, t[32] = P, t[33] = M) : M = t[33];
119
+ ] }), t[31] = k, t[32] = P, t[33] = M) : M = t[33];
119
120
  let x;
120
- t[34] !== p || t[35] !== v || t[36] !== M ? (x = /* @__PURE__ */ I("form", { onSubmit: p, onKeyDown: wt, children: [
121
+ t[34] !== f || t[35] !== v || t[36] !== M ? (x = /* @__PURE__ */ I("form", { onSubmit: f, onKeyDown: St, children: [
121
122
  v,
122
123
  M
123
- ] }), t[34] = p, t[35] = v, t[36] = M, t[37] = x) : x = t[37];
124
+ ] }), t[34] = f, t[35] = v, t[36] = M, t[37] = x) : x = t[37];
124
125
  let O;
125
- return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !== S ? (O = /* @__PURE__ */ I(H, { show: s, size: "sm", centered: !0, onHide: u, children: [
126
- S,
126
+ return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !== g ? (O = /* @__PURE__ */ I(H, { show: s, size: "sm", centered: !0, onHide: u, children: [
127
+ g,
127
128
  x
128
- ] }), t[38] = s, t[39] = u, t[40] = x, t[41] = S, t[42] = O) : O = t[42], O;
129
+ ] }), t[38] = s, t[39] = u, t[40] = x, t[41] = g, t[42] = O) : O = t[42], O;
129
130
  };
130
- function wt(t) {
131
+ function St(t) {
131
132
  return t.stopPropagation();
132
133
  }
133
- const St = (t) => {
134
+ const bt = (t) => {
134
135
  const e = N.c(11), {
135
136
  children: n
136
137
  } = t, [s, o] = R(!1), [i, r] = R("");
137
- let a;
138
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
138
+ let c;
139
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
139
140
  input: "textarea",
140
141
  type: "text"
141
- }, e[0] = a) : a = e[0];
142
- const [c, h] = R(a), u = Q(bt);
143
- let g;
144
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (g = (b) => {
145
- r(b), o(!0);
146
- }, e[1] = g) : g = e[1];
147
- const p = g;
148
- let _;
149
- e[2] === Symbol.for("react.memo_cache_sentinel") ? (_ = () => {
142
+ }, e[0] = c) : c = e[0];
143
+ const [a, h] = R(c), u = Q(Ct);
144
+ let m;
145
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (m = (C) => {
146
+ r(C), o(!0);
147
+ }, e[1] = m) : m = e[1];
148
+ const f = m;
149
+ let p;
150
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
150
151
  o(!1);
151
- }, e[2] = _) : _ = e[2];
152
- const w = _;
153
- let f;
154
- e[3] !== s || e[4] !== c || e[5] !== i ? (f = {
152
+ }, e[2] = p) : p = e[2];
153
+ const w = p;
154
+ let b;
155
+ e[3] !== s || e[4] !== a || e[5] !== i ? (b = {
155
156
  isShown: s,
156
157
  text: i,
157
- showPrompt: p,
158
+ showPrompt: f,
158
159
  hidePrompt: w,
159
160
  resolveRef: u,
160
- options: c,
161
+ options: a,
161
162
  setOptions: h
162
- }, e[3] = s, e[4] = c, e[5] = i, e[6] = f) : f = e[6];
163
- const d = f;
164
- let m;
165
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ C(mt, {}), e[7] = m) : m = e[7];
163
+ }, e[3] = s, e[4] = a, e[5] = i, e[6] = b) : b = e[6];
164
+ const d = b;
166
165
  let S;
167
- return e[8] !== n || e[9] !== d ? (S = /* @__PURE__ */ I(Ae.Provider, { value: d, children: [
166
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(wt, {}), e[7] = S) : S = e[7];
167
+ let g;
168
+ return e[8] !== n || e[9] !== d ? (g = /* @__PURE__ */ I(De.Provider, { value: d, children: [
168
169
  n,
169
- m
170
- ] }), e[8] = n, e[9] = d, e[10] = S) : S = e[10], S;
170
+ S
171
+ ] }), e[8] = n, e[9] = d, e[10] = g) : g = e[10], g;
171
172
  };
172
- function bt() {
173
+ function Ct() {
173
174
  }
174
- const en = (t) => {
175
+ const nn = (t) => {
175
176
  const e = N.c(14), {
176
177
  cookieDomain: n,
177
178
  axiosOptions: s,
178
179
  language: o,
179
180
  texts: i,
180
181
  ProjectIconComponent: r,
181
- localizationContext: a,
182
- chartColorPalette: c,
182
+ localizationContext: c,
183
+ chartColorPalette: a,
183
184
  children: h
184
185
  } = t;
185
186
  let u;
186
- e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== o || e[5] !== a || e[6] !== i ? (u = {
187
+ e[0] !== r || e[1] !== s || e[2] !== a || e[3] !== n || e[4] !== o || e[5] !== c || e[6] !== i ? (u = {
187
188
  axiosOptions: s,
188
189
  cookieDomain: n,
189
190
  language: o,
190
191
  texts: i,
191
192
  ProjectIconComponent: r,
192
- localizationContext: a,
193
- chartColorPalette: c
194
- }, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = o, e[5] = a, e[6] = i, e[7] = u) : u = e[7];
195
- const g = u;
193
+ localizationContext: c,
194
+ chartColorPalette: a
195
+ }, e[0] = r, e[1] = s, e[2] = a, e[3] = n, e[4] = o, e[5] = c, e[6] = i, e[7] = u) : u = e[7];
196
+ const m = u;
197
+ let f;
198
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(je, {}), e[8] = f) : f = e[8];
196
199
  let p;
197
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ C(We, {}), e[8] = p) : p = e[8];
198
- let _;
199
- e[9] !== h ? (_ = /* @__PURE__ */ C(pt, { children: /* @__PURE__ */ I(St, { children: [
200
- p,
200
+ e[9] !== h ? (p = /* @__PURE__ */ y(mt, { children: /* @__PURE__ */ I(bt, { children: [
201
+ f,
201
202
  h
202
- ] }) }), e[9] = h, e[10] = _) : _ = e[10];
203
+ ] }) }), e[9] = h, e[10] = p) : p = e[10];
203
204
  let w;
204
- return e[11] !== g || e[12] !== _ ? (w = /* @__PURE__ */ C(ce.Provider, { value: g, children: _ }), e[11] = g, e[12] = _, e[13] = w) : w = e[13], w;
205
- }, tn = (t) => {
205
+ return e[11] !== m || e[12] !== p ? (w = /* @__PURE__ */ y(ae.Provider, { value: m, children: p }), e[11] = m, e[12] = p, e[13] = w) : w = e[13], w;
206
+ }, on = (t) => {
206
207
  const e = N.c(15), {
207
208
  children: n
208
209
  } = t, [s, o] = R(!1);
209
210
  let i;
210
211
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ new Set(), e[0] = i) : i = e[0];
211
212
  const [r] = R(i);
212
- let a;
213
- e[1] !== r ? (a = (f) => {
214
- r.add(f), o(!0);
215
- }, e[1] = r, e[2] = a) : a = e[2];
216
- const c = a;
213
+ let c;
214
+ e[1] !== r ? (c = (b) => {
215
+ r.add(b), o(!0);
216
+ }, e[1] = r, e[2] = c) : c = e[2];
217
+ const a = c;
217
218
  let h;
218
- e[3] !== r ? (h = (f) => {
219
- r.delete(f), r.size === 0 && o(!1);
219
+ e[3] !== r ? (h = (b) => {
220
+ r.delete(b), r.size === 0 && o(!1);
220
221
  }, e[3] = r, e[4] = h) : h = e[4];
221
222
  const u = h;
222
- let g;
223
- e[5] !== s || e[6] !== c || e[7] !== u ? (g = {
223
+ let m;
224
+ e[5] !== s || e[6] !== a || e[7] !== u ? (m = {
224
225
  isLoading: s,
225
- startLoading: c,
226
+ startLoading: a,
226
227
  stopLoading: u
227
- }, e[5] = s, e[6] = c, e[7] = u, e[8] = g) : g = e[8];
228
- const p = g;
229
- let _;
230
- e[9] !== s ? (_ = s && /* @__PURE__ */ C(ct, {}), e[9] = s, e[10] = _) : _ = e[10];
228
+ }, e[5] = s, e[6] = a, e[7] = u, e[8] = m) : m = e[8];
229
+ const f = m;
230
+ let p;
231
+ e[9] !== s ? (p = s && /* @__PURE__ */ y(at, {}), e[9] = s, e[10] = p) : p = e[10];
231
232
  let w;
232
- return e[11] !== n || e[12] !== p || e[13] !== _ ? (w = /* @__PURE__ */ I(je.Provider, { value: p, children: [
233
- _,
233
+ return e[11] !== n || e[12] !== f || e[13] !== p ? (w = /* @__PURE__ */ I(Fe.Provider, { value: f, children: [
234
+ p,
234
235
  n
235
- ] }), e[11] = n, e[12] = p, e[13] = _, e[14] = w) : w = e[14], w;
236
- }, nn = (t) => {
236
+ ] }), e[11] = n, e[12] = f, e[13] = p, e[14] = w) : w = e[14], w;
237
+ }, sn = (t) => {
237
238
  const e = N.c(39), {
238
239
  children: n
239
- } = t, s = Fe(), {
240
+ } = t, s = Be(), {
240
241
  msalInstance: o,
241
242
  getToken: i
242
- } = X(_e), {
243
+ } = z(pe), {
243
244
  delegation: r,
244
- setDelegation: a,
245
- setAvailableDelegations: c,
245
+ setDelegation: c,
246
+ setAvailableDelegations: a,
246
247
  refreshAvailableDelegations: h
247
- } = X(Re), [u, g] = R(null);
248
- let p;
249
- e[0] !== i ? (p = async () => {
250
- const D = await i();
251
- D && g(D.token);
252
- }, e[0] = i, e[1] = p) : p = e[1];
253
- const _ = p;
254
- let w, f;
255
- e[2] !== _ ? (w = () => {
256
- _();
257
- }, f = [_], e[2] = _, e[3] = w, e[4] = f) : (w = e[3], f = e[4]), B(w, f);
248
+ } = z(Re), [u, m] = R(null);
249
+ let f;
250
+ e[0] !== i ? (f = async () => {
251
+ const A = await i();
252
+ A && m(A.token);
253
+ }, e[0] = i, e[1] = f) : f = e[1];
254
+ const p = f;
255
+ let w, b;
256
+ e[2] !== p ? (w = () => {
257
+ p();
258
+ }, b = [p], e[2] = p, e[3] = w, e[4] = b) : (w = e[3], b = e[4]), B(w, b);
258
259
  let d;
259
260
  if (e[5] === Symbol.for("react.memo_cache_sentinel")) {
260
261
  e: {
261
- const D = localStorage.getItem("user") ?? null;
262
- if (!D) {
262
+ const A = localStorage.getItem("user") ?? null;
263
+ if (!A) {
263
264
  d = null;
264
265
  break e;
265
266
  }
266
- d = JSON.parse(D ?? "");
267
+ d = JSON.parse(A ?? "");
267
268
  }
268
269
  e[5] = d;
269
270
  } else
270
271
  d = e[5];
271
- const m = d;
272
- let S;
273
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (S = {
274
- state: m ? J.LOGGED_IN : J.LOGGED_OUT,
275
- user: m
276
- }, e[6] = S) : S = e[6];
277
- const [b, y] = R(S);
272
+ const S = d;
273
+ let g;
274
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (g = {
275
+ state: S ? J.LOGGED_IN : J.LOGGED_OUT,
276
+ user: S
277
+ }, e[6] = g) : g = e[6];
278
+ const [C, _] = R(g);
278
279
  let v;
279
- e[7] !== s ? (v = async (D) => {
280
+ e[7] !== s ? (v = async (A) => {
280
281
  let $ = null;
281
- return await s.get("/user/detail", D ? {
282
+ return await s.get("/user/detail", A ? {
282
283
  headers: {
283
- Authorization: `Bearer ${D}`
284
+ Authorization: `Bearer ${A}`
284
285
  }
285
286
  } : void 0).then((de) => {
286
287
  $ = de.data;
@@ -288,42 +289,42 @@ const en = (t) => {
288
289
  $ = null;
289
290
  }), $;
290
291
  }, e[7] = s, e[8] = v) : v = e[8];
291
- const T = v;
292
+ const k = v;
292
293
  let W;
293
- e[9] !== c || e[10] !== a ? (W = () => {
294
- localStorage.removeItem("user"), y({
294
+ e[9] !== a || e[10] !== c ? (W = () => {
295
+ localStorage.removeItem("user"), _({
295
296
  state: J.LOGGED_OUT,
296
297
  user: null
297
- }), a(null), c(null);
298
- }, e[9] = c, e[10] = a, e[11] = W) : W = e[11];
298
+ }), c(null), a(null);
299
+ }, e[9] = a, e[10] = c, e[11] = W) : W = e[11];
299
300
  const P = W;
300
301
  let M;
301
- e[12] !== T || e[13] !== h ? (M = async (D) => {
302
- y({
302
+ e[12] !== k || e[13] !== h ? (M = async (A) => {
303
+ _({
303
304
  state: J.LOGGING_IN,
304
305
  user: null
305
306
  });
306
- const $ = await T(D);
307
- return $ ? (y({
307
+ const $ = await k(A);
308
+ return $ ? (_({
308
309
  state: J.LOGGED_IN,
309
310
  user: $
310
- }), localStorage.setItem("user", JSON.stringify($)), await h(), !0) : (y({
311
+ }), localStorage.setItem("user", JSON.stringify($)), await h(), !0) : (_({
311
312
  state: J.LOGIN_FAILED,
312
313
  user: null
313
314
  }), !1);
314
- }, e[12] = T, e[13] = h, e[14] = M) : M = e[14];
315
+ }, e[12] = k, e[13] = h, e[14] = M) : M = e[14];
315
316
  const x = M;
316
317
  let O;
317
318
  e[15] !== o ? (O = () => {
318
319
  if (o) {
319
- const D = o.addEventCallback(($) => {
320
+ const A = o.addEventCallback(($) => {
320
321
  if ($.eventType === ge.LOGIN_SUCCESS && $.payload) {
321
322
  const de = $.payload;
322
- g(de.accessToken);
323
+ m(de.accessToken);
323
324
  }
324
325
  });
325
326
  return () => {
326
- D && o.removeEventCallback(D);
327
+ A && o.removeEventCallback(A);
327
328
  };
328
329
  }
329
330
  return yt;
@@ -331,11 +332,11 @@ const en = (t) => {
331
332
  let j;
332
333
  e[17] !== x || e[18] !== P || e[19] !== o ? (j = [o, x, P], e[17] = x, e[18] = P, e[19] = o, e[20] = j) : j = e[20], B(O, j);
333
334
  let Z;
334
- e[21] !== x || e[22] !== P || e[23] !== a ? (Z = async (D) => {
335
- D && await x(D).catch(() => {
336
- P(), a(null);
335
+ e[21] !== x || e[22] !== P || e[23] !== c ? (Z = async (A) => {
336
+ A && await x(A).catch(() => {
337
+ P(), c(null);
337
338
  });
338
- }, e[21] = x, e[22] = P, e[23] = a, e[24] = Z) : Z = e[24];
339
+ }, e[21] = x, e[22] = P, e[23] = c, e[24] = Z) : Z = e[24];
339
340
  const K = Z;
340
341
  let ee;
341
342
  e[25] !== u || e[26] !== K ? (ee = () => {
@@ -345,46 +346,46 @@ const en = (t) => {
345
346
  let te;
346
347
  e[28] !== u || e[29] !== K || e[30] !== he ? (te = [u, he, K], e[28] = u, e[29] = K, e[30] = he, e[31] = te) : te = e[31], B(ee, te);
347
348
  let ne;
348
- e[32] !== x || e[33] !== P || e[34] !== b ? (ne = {
349
- user: b.user,
350
- userLoginState: b,
349
+ e[32] !== x || e[33] !== P || e[34] !== C ? (ne = {
350
+ user: C.user,
351
+ userLoginState: C,
351
352
  loginUser: x,
352
353
  logoutUser: P
353
- }, e[32] = x, e[33] = P, e[34] = b, e[35] = ne) : ne = e[35];
354
+ }, e[32] = x, e[33] = P, e[34] = C, e[35] = ne) : ne = e[35];
354
355
  const ue = ne;
355
356
  let oe;
356
- return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ C(Be.Provider, { value: ue, children: n }), e[36] = n, e[37] = ue, e[38] = oe) : oe = e[38], oe;
357
+ return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(ze.Provider, { value: ue, children: n }), e[36] = n, e[37] = ue, e[38] = oe) : oe = e[38], oe;
357
358
  };
358
359
  function yt() {
359
360
  }
360
361
  const ve = () => {
361
362
  const t = N.c(2);
362
363
  let e;
363
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ C("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
364
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
364
365
  let n;
365
366
  return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ I("div", { children: [
366
367
  e,
367
368
  /* @__PURE__ */ I("p", { children: [
368
369
  "If you are not redirected within 10 seconds, please click",
369
370
  " ",
370
- /* @__PURE__ */ C("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
371
+ /* @__PURE__ */ y("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
371
372
  ] })
372
373
  ] }), t[1] = n) : n = t[1], n;
373
- }, Ct = (t) => {
374
+ }, vt = (t) => {
374
375
  const e = t == null ? void 0 : t.getActiveAccount();
375
376
  console.log("getTokenMsal activeAccount", e);
376
377
  const n = t == null ? void 0 : t.getAllAccounts();
377
378
  console.log("getTokenMsal allAccounts", n);
378
379
  const s = (n == null ? void 0 : n.at(0)) ?? void 0;
379
380
  return console.log("getTokenMsal account", s), s ? (e || t == null || t.setActiveAccount(s), s) : null;
380
- }, on = ({
381
+ }, rn = ({
381
382
  ...t
382
383
  }) => {
383
384
  const {
384
385
  inProgress: e
385
386
  } = it(), {
386
387
  cookieDomain: n
387
- } = X(ce), [, s] = ze(["Authorization"]), o = F(
388
+ } = z(ae), [, s] = Ge(["Authorization"]), o = F(
388
389
  () => t.useMsal ? t.msalInstance : null,
389
390
  // eslint-disable-next-line react-hooks/exhaustive-deps
390
391
  [t.useMsal, t.useMsal ? t.msalInstance : null]
@@ -396,7 +397,7 @@ const ve = () => {
396
397
  () => t.useMsal ? t.msalExtraScopes : [],
397
398
  // eslint-disable-next-line react-hooks/exhaustive-deps
398
399
  [t.useMsal, t.useMsal ? t.msalExtraScopes : null]
399
- ), a = Q(null), c = Q(!1), h = Y(() => {
400
+ ), c = Q(null), a = Q(!1), h = Y(() => {
400
401
  const d = localStorage.getItem("token");
401
402
  return d ? {
402
403
  token: d,
@@ -405,11 +406,11 @@ const ve = () => {
405
406
  }, []), u = Y(async () => {
406
407
  if (console.log("getTokenMsal"), o == null)
407
408
  throw console.log("getTokenMsal throwing error because msalInstance is null"), new Error("getTokenMsal: msalInstance is null");
408
- if (a.current)
409
- return console.log("getTokenMsal returning tokenRequestPromise.current", a.current), a.current;
410
- const d = new Promise((m, S) => {
411
- const b = (y) => {
412
- const v = Ct(o);
409
+ if (c.current)
410
+ return console.log("getTokenMsal returning tokenRequestPromise.current", c.current), c.current;
411
+ const d = new Promise((S, g) => {
412
+ const C = (_) => {
413
+ const v = vt(o);
413
414
  if (!v) {
414
415
  console.log("getTokenMsal no account found. Redirecting to login"), o == null || o.loginRedirect({
415
416
  scopes: i,
@@ -421,62 +422,62 @@ const ve = () => {
421
422
  scopes: i,
422
423
  account: v,
423
424
  redirectUri: t.useMsal ? t.msalSilentRedirectUri : void 0
424
- }).then((T) => {
425
- y(), m({
426
- token: T.accessToken,
427
- expiresOn: T.expiresOn ?? new Date(Date.now())
425
+ }).then((k) => {
426
+ _(), S({
427
+ token: k.accessToken,
428
+ expiresOn: k.expiresOn ?? new Date(Date.now())
428
429
  });
429
- }).catch((T) => {
430
- console.error("Error acquiring token", T), T instanceof rt && (console.log("Silent token acquisition failed. Acquiring token using redirect"), o == null || o.acquireTokenRedirect({
430
+ }).catch((k) => {
431
+ console.error("Error acquiring token", k), k instanceof rt && (console.log("Silent token acquisition failed. Acquiring token using redirect"), o == null || o.acquireTokenRedirect({
431
432
  scopes: i,
432
433
  extraScopesToConsent: r
433
- }), y(), m(null)), y(), S(T);
434
+ }), _(), S(null)), _(), g(k);
434
435
  }).finally(() => {
435
- y(), S(new Error("No access token returned from handleRedirectPromise"));
436
+ _(), g(new Error("No access token returned from handleRedirectPromise"));
436
437
  });
437
438
  };
438
- if (e !== Ce.None) {
439
- console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None", e), S(new Error("Authentication in progress"));
439
+ if (e !== ye.None) {
440
+ console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None", e), g(new Error("Authentication in progress"));
440
441
  return;
441
442
  }
442
- c.current ? b(() => {
443
- a.current = null;
444
- }) : o.handleRedirectPromise().then((y) => {
445
- if (console.log("getTokenMsal tokenResponse", y), !(y != null && y.accessToken)) {
446
- b(() => {
447
- a.current = null, c.current = !0;
443
+ a.current ? C(() => {
444
+ c.current = null;
445
+ }) : o.handleRedirectPromise().then((_) => {
446
+ if (console.log("getTokenMsal tokenResponse", _), !(_ != null && _.accessToken)) {
447
+ C(() => {
448
+ c.current = null, a.current = !0;
448
449
  });
449
450
  return;
450
451
  }
451
- a.current = null, c.current = !0, m({
452
- token: y.accessToken,
453
- expiresOn: y.expiresOn ?? new Date(Date.now())
452
+ c.current = null, a.current = !0, S({
453
+ token: _.accessToken,
454
+ expiresOn: _.expiresOn ?? new Date(Date.now())
454
455
  });
455
456
  });
456
457
  });
457
- return a.current = d, d;
458
- }, [e, r, o, i, t.msalSilentRedirectUri, t.useMsal]), g = Y(async () => t.useMsal ? u() : h(), [h, u, t.useMsal]), p = Y((d) => t.useMsal ? () => {
458
+ return c.current = d, d;
459
+ }, [e, r, o, i, t.msalSilentRedirectUri, t.useMsal]), m = Y(async () => t.useMsal ? u() : h(), [h, u, t.useMsal]), f = Y((d) => t.useMsal ? () => {
459
460
  } : (window.addEventListener("storage", d), window.addEventListener("dev-auth-change", d), () => {
460
461
  window.removeEventListener("storage", d), window.removeEventListener("dev-auth-change", d);
461
- }), [t.useMsal]), _ = st(p, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), w = F(() => {
462
+ }), [t.useMsal]), p = st(f, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), w = F(() => {
462
463
  var d;
463
- return t.useMsal ? e !== Ce.None ? "AUTH_IN_PROGRESS" : (o == null ? void 0 : o.getActiveAccount()) ?? ((d = o == null ? void 0 : o.getAllAccounts()) == null ? void 0 : d[0]) ?? null ? "AUTH_OK" : "NO_AUTH" : _;
464
- }, [_, e, o, t.useMsal]), f = F(() => ({
464
+ return t.useMsal ? e !== ye.None ? "AUTH_IN_PROGRESS" : (o == null ? void 0 : o.getActiveAccount()) ?? ((d = o == null ? void 0 : o.getAllAccounts()) == null ? void 0 : d[0]) ?? null ? "AUTH_OK" : "NO_AUTH" : p;
465
+ }, [p, e, o, t.useMsal]), b = F(() => ({
465
466
  useMsal: t.useMsal ?? !1,
466
467
  msalInstance: o,
467
468
  msalScopes: i,
468
469
  msalExtraScopes: r,
469
- getToken: g,
470
+ getToken: m,
470
471
  authState: w
471
- }), [t.useMsal, o, i, r, g, w]);
472
+ }), [t.useMsal, o, i, r, m, w]);
472
473
  return B(() => {
473
474
  if (t.useMsal && o) {
474
- const d = o.addEventCallback((m) => {
475
- if (m.eventType === ge.LOGIN_SUCCESS || m.eventType === ge.ACQUIRE_TOKEN_SUCCESS && m.payload) {
476
- const S = m.payload, b = S.account;
477
- o.setActiveAccount(b);
478
- const y = S.accessToken, v = S.expiresOn;
479
- s("Authorization", y, {
475
+ const d = o.addEventCallback((S) => {
476
+ if (S.eventType === ge.LOGIN_SUCCESS || S.eventType === ge.ACQUIRE_TOKEN_SUCCESS && S.payload) {
477
+ const g = S.payload, C = g.account;
478
+ o.setActiveAccount(C);
479
+ const _ = g.accessToken, v = g.expiresOn;
480
+ s("Authorization", _, {
480
481
  path: "/",
481
482
  secure: !0,
482
483
  sameSite: "none",
@@ -484,7 +485,7 @@ const ve = () => {
484
485
  expires: v ?? void 0
485
486
  });
486
487
  }
487
- m.error && console.error("AuthProvider MSAL Error", m);
488
+ S.error && console.error("AuthProvider MSAL Error", S);
488
489
  });
489
490
  return () => {
490
491
  d && o.removeEventCallback(d);
@@ -492,29 +493,29 @@ const ve = () => {
492
493
  }
493
494
  return () => {
494
495
  };
495
- }, [t.useMsal, o, s, n]), /* @__PURE__ */ C(_e.Provider, { value: f, children: t.useMsal ? /* @__PURE__ */ C(at, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ C(ve, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ C(ve, {}) : t.children });
496
- }, sn = (t) => {
496
+ }, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children: t.useMsal ? /* @__PURE__ */ y(ct, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ y(ve, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ y(ve, {}) : t.children });
497
+ }, cn = (t) => {
497
498
  const e = N.c(18), {
498
499
  children: n,
499
500
  relativeEndpoint: s
500
501
  } = t, [o, i, r] = ht("user-delegation", null);
501
- let a;
502
+ let c;
502
503
  e: {
503
504
  if (!o) {
504
- a = null;
505
+ c = null;
505
506
  break e;
506
507
  }
507
- const v = o.from ? we(o.from) : _t(), T = o.to ? we(o.to) : ft();
508
- if (!gt(new Date(Date.now()), {
508
+ const v = o.from ? we(o.from) : _t(), k = o.to ? we(o.to) : gt();
509
+ if (!pt(new Date(Date.now()), {
509
510
  start: v,
510
- end: T
511
+ end: k
511
512
  })) {
512
- i(null), a = null;
513
+ i(null), c = null;
513
514
  break e;
514
515
  }
515
- a = o;
516
+ c = o;
516
517
  }
517
- const c = a;
518
+ const a = c;
518
519
  let h;
519
520
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
520
521
  nullStateBeforeLoad: !1,
@@ -522,18 +523,18 @@ const ve = () => {
522
523
  }, e[0] = h) : h = e[0];
523
524
  const {
524
525
  data: u,
525
- setData: g,
526
- reloadData: p
527
- } = ut(s, h), _ = Q(null);
528
- let w, f;
529
- e[1] !== p ? (w = () => {
526
+ setData: m,
527
+ reloadData: f
528
+ } = ut(s, h), p = Q(null);
529
+ let w, b;
530
+ e[1] !== f ? (w = () => {
530
531
  const v = () => {
531
- p(), _.current = window.setTimeout(v, Ge() + 5e3);
532
+ f(), p.current = window.setTimeout(v, Ve() + 5e3);
532
533
  };
533
534
  return v(), () => {
534
- _.current !== null && window.clearTimeout(_.current);
535
+ p.current !== null && window.clearTimeout(p.current);
535
536
  };
536
- }, f = [p], e[1] = p, e[2] = w, e[3] = f) : (w = e[2], f = e[3]), B(w, f);
537
+ }, b = [f], e[1] = f, e[2] = w, e[3] = b) : (w = e[2], b = e[3]), B(w, b);
537
538
  let d;
538
539
  e[4] !== r ? (d = () => {
539
540
  const v = () => {
@@ -543,61 +544,61 @@ const ve = () => {
543
544
  window.removeEventListener("focus", v);
544
545
  };
545
546
  }, e[4] = r, e[5] = d) : d = e[5];
546
- let m;
547
- e[6] !== r || e[7] !== p ? (m = [r, p], e[6] = r, e[7] = p, e[8] = m) : m = e[8], B(d, m);
548
547
  let S;
549
- e[9] !== u || e[10] !== p || e[11] !== g || e[12] !== i || e[13] !== c ? (S = {
550
- delegation: c,
548
+ e[6] !== r || e[7] !== f ? (S = [r, f], e[6] = r, e[7] = f, e[8] = S) : S = e[8], B(d, S);
549
+ let g;
550
+ e[9] !== u || e[10] !== f || e[11] !== m || e[12] !== i || e[13] !== a ? (g = {
551
+ delegation: a,
551
552
  setDelegation: i,
552
553
  availableDelegations: u,
553
- setAvailableDelegations: g,
554
- refreshAvailableDelegations: p
555
- }, e[9] = u, e[10] = p, e[11] = g, e[12] = i, e[13] = c, e[14] = S) : S = e[14];
556
- const b = S;
557
- let y;
558
- return e[15] !== n || e[16] !== b ? (y = /* @__PURE__ */ C(Re.Provider, { value: b, children: n }), e[15] = n, e[16] = b, e[17] = y) : y = e[17], y;
559
- }, Te = (t, e) => t ? `${t} | ${e}` : e, rn = (t) => {
554
+ setAvailableDelegations: m,
555
+ refreshAvailableDelegations: f
556
+ }, e[9] = u, e[10] = f, e[11] = m, e[12] = i, e[13] = a, e[14] = g) : g = e[14];
557
+ const C = g;
558
+ let _;
559
+ return e[15] !== n || e[16] !== C ? (_ = /* @__PURE__ */ y(Re.Provider, { value: C, children: n }), e[15] = n, e[16] = C, e[17] = _) : _ = e[17], _;
560
+ }, ke = (t, e) => t ? `${t} | ${e}` : e, an = (t) => {
560
561
  const e = N.c(18), {
561
562
  defaultHelmet: n,
562
563
  children: s,
563
564
  helmetPrefix: o
564
565
  } = t, i = o ?? "";
565
566
  let r;
566
- e[0] !== n || e[1] !== i ? (r = Te(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
567
- let a;
568
- e[3] !== r ? (a = [r], e[3] = r, e[4] = a) : a = e[4];
569
- const [c, h] = R(a);
567
+ e[0] !== n || e[1] !== i ? (r = ke(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
568
+ let c;
569
+ e[3] !== r ? (c = [r], e[3] = r, e[4] = c) : c = e[4];
570
+ const [a, h] = R(c);
570
571
  let u;
571
- e[5] !== o ? (u = (y) => {
572
- h((v) => [...v, Te(o ?? "", y)]);
572
+ e[5] !== o ? (u = (_) => {
573
+ h((v) => [...v, ke(o ?? "", _)]);
573
574
  }, e[5] = o, e[6] = u) : u = e[6];
574
- const g = u;
575
- let p;
576
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
577
- h(vt);
578
- }, e[7] = p) : p = e[7];
579
- const _ = p;
575
+ const m = u;
576
+ let f;
577
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
578
+ h(kt);
579
+ }, e[7] = f) : f = e[7];
580
+ const p = f;
580
581
  let w;
581
- e[8] !== c ? (w = c.at(-1) ?? "", e[8] = c, e[9] = w) : w = e[9];
582
- const f = w;
582
+ e[8] !== a ? (w = a.at(-1) ?? "", e[8] = a, e[9] = w) : w = e[9];
583
+ const b = w;
583
584
  let d;
584
- e[10] !== g ? (d = {
585
- addHelmet: g,
586
- removeHelmet: _
587
- }, e[10] = g, e[11] = d) : d = e[11];
588
- const m = d;
589
- let S;
590
- e[12] !== f ? (S = /* @__PURE__ */ C("title", { children: f }), e[12] = f, e[13] = S) : S = e[13];
591
- let b;
592
- return e[14] !== s || e[15] !== m || e[16] !== S ? (b = /* @__PURE__ */ I(Ve.Provider, { value: m, children: [
593
- S,
585
+ e[10] !== m ? (d = {
586
+ addHelmet: m,
587
+ removeHelmet: p
588
+ }, e[10] = m, e[11] = d) : d = e[11];
589
+ const S = d;
590
+ let g;
591
+ e[12] !== b ? (g = /* @__PURE__ */ y("title", { children: b }), e[12] = b, e[13] = g) : g = e[13];
592
+ let C;
593
+ return e[14] !== s || e[15] !== S || e[16] !== g ? (C = /* @__PURE__ */ I(Xe.Provider, { value: S, children: [
594
+ g,
594
595
  s
595
- ] }), e[14] = s, e[15] = m, e[16] = S, e[17] = b) : b = e[17], b;
596
+ ] }), e[14] = s, e[15] = S, e[16] = g, e[17] = C) : C = e[17], C;
596
597
  };
597
- function vt(t) {
598
+ function kt(t) {
598
599
  return t.length > 1 ? t.slice(0, -1) : t;
599
600
  }
600
- class $e {
601
+ class Ne {
601
602
  constructor(e, n, s) {
602
603
  this.statusCode = e, this.statusText = n, this.content = s;
603
604
  }
@@ -640,7 +641,7 @@ class Tt extends le {
640
641
  const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
641
642
  this._jar = new (n("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = n("node-fetch") : this._fetchType = fetch, this._fetchType = n("fetch-cookie")(this._fetchType, this._jar);
642
643
  } else
643
- this._fetchType = fetch.bind(Xe());
644
+ this._fetchType = fetch.bind(Ke());
644
645
  if (typeof AbortController > "u") {
645
646
  const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
646
647
  this._abortControllerType = n("abort-controller");
@@ -662,10 +663,10 @@ class Tt extends le {
662
663
  });
663
664
  let o = null;
664
665
  if (e.timeout) {
665
- const c = e.timeout;
666
+ const a = e.timeout;
666
667
  o = setTimeout(() => {
667
- n.abort(), this._logger.log(l.Warning, "Timeout from HTTP request."), s = new pe();
668
- }, c);
668
+ n.abort(), this._logger.log(l.Warning, "Timeout from HTTP request."), s = new _e();
669
+ }, a);
669
670
  }
670
671
  e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Le(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
671
672
  let i;
@@ -683,24 +684,24 @@ class Tt extends le {
683
684
  redirect: "follow",
684
685
  signal: n.signal
685
686
  });
686
- } catch (c) {
687
- throw s || (this._logger.log(l.Warning, `Error from HTTP request. ${c}.`), c);
687
+ } catch (a) {
688
+ throw s || (this._logger.log(l.Warning, `Error from HTTP request. ${a}.`), a);
688
689
  } finally {
689
690
  o && clearTimeout(o), e.abortSignal && (e.abortSignal.onabort = null);
690
691
  }
691
692
  if (!i.ok) {
692
- const c = await ke(i, "text");
693
- throw new G(c || i.statusText, i.status);
693
+ const a = await Te(i, "text");
694
+ throw new V(a || i.statusText, i.status);
694
695
  }
695
- const a = await ke(i, e.responseType);
696
- return new $e(i.status, i.statusText, a);
696
+ const c = await Te(i, e.responseType);
697
+ return new Ne(i.status, i.statusText, c);
697
698
  }
698
699
  getCookieString(e) {
699
700
  let n = "";
700
701
  return L.isNode && this._jar && this._jar.getCookies(e, (s, o) => n = o.join("; ")), n;
701
702
  }
702
703
  }
703
- function ke(t, e) {
704
+ function Te(t, e) {
704
705
  let n;
705
706
  switch (e) {
706
707
  case "arraybuffer":
@@ -719,7 +720,7 @@ function ke(t, e) {
719
720
  }
720
721
  return n;
721
722
  }
722
- class kt extends le {
723
+ class Et extends le {
723
724
  constructor(e) {
724
725
  super(), this._logger = e;
725
726
  }
@@ -734,22 +735,22 @@ class kt extends le {
734
735
  }), e.responseType && (o.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
735
736
  o.abort(), s(new U());
736
737
  }), e.timeout && (o.timeout = e.timeout), o.onload = () => {
737
- e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new $e(o.status, o.statusText, o.response || o.responseText)) : s(new G(o.response || o.responseText || o.statusText, o.status));
738
+ e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new Ne(o.status, o.statusText, o.response || o.responseText)) : s(new V(o.response || o.responseText || o.statusText, o.status));
738
739
  }, o.onerror = () => {
739
- this._logger.log(l.Warning, `Error from HTTP request. ${o.status}: ${o.statusText}.`), s(new G(o.statusText, o.status));
740
+ this._logger.log(l.Warning, `Error from HTTP request. ${o.status}: ${o.statusText}.`), s(new V(o.statusText, o.status));
740
741
  }, o.ontimeout = () => {
741
- this._logger.log(l.Warning, "Timeout from HTTP request."), s(new pe());
742
+ this._logger.log(l.Warning, "Timeout from HTTP request."), s(new _e());
742
743
  }, o.send(e.content);
743
744
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
744
745
  }
745
746
  }
746
- class Et extends le {
747
+ class Pt extends le {
747
748
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
748
749
  constructor(e) {
749
750
  if (super(), typeof fetch < "u" || L.isNode)
750
751
  this._httpClient = new Tt(e);
751
752
  else if (typeof XMLHttpRequest < "u")
752
- this._httpClient = new kt(e);
753
+ this._httpClient = new Et(e);
753
754
  else
754
755
  throw new Error("No usable HttpClient found.");
755
756
  }
@@ -761,20 +762,20 @@ class Et extends le {
761
762
  return this._httpClient.getCookieString(e);
762
763
  }
763
764
  }
764
- const Pt = [0, 2e3, 1e4, 3e4, null];
765
+ const xt = [0, 2e3, 1e4, 3e4, null];
765
766
  class Ee {
766
767
  constructor(e) {
767
- this._retryDelays = e !== void 0 ? [...e, null] : Pt;
768
+ this._retryDelays = e !== void 0 ? [...e, null] : xt;
768
769
  }
769
770
  nextRetryDelayInMilliseconds(e) {
770
771
  return this._retryDelays[e.previousRetryCount];
771
772
  }
772
773
  }
773
- class V {
774
+ class X {
774
775
  }
775
- V.Authorization = "Authorization";
776
- V.Cookie = "Cookie";
777
- class xt extends le {
776
+ X.Authorization = "Authorization";
777
+ X.Cookie = "Cookie";
778
+ class At extends le {
778
779
  constructor(e, n) {
779
780
  super(), this._innerClient = e, this._accessTokenFactory = n;
780
781
  }
@@ -785,20 +786,20 @@ class xt extends le {
785
786
  return n && s.statusCode === 401 && this._accessTokenFactory ? (this._accessToken = await this._accessTokenFactory(), this._setAuthorizationHeader(e), await this._innerClient.send(e)) : s;
786
787
  }
787
788
  _setAuthorizationHeader(e) {
788
- e.headers || (e.headers = {}), this._accessToken ? e.headers[V.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[V.Authorization] && delete e.headers[V.Authorization];
789
+ e.headers || (e.headers = {}), this._accessToken ? e.headers[X.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[X.Authorization] && delete e.headers[X.Authorization];
789
790
  }
790
791
  getCookieString(e) {
791
792
  return this._innerClient.getCookieString(e);
792
793
  }
793
794
  }
794
- var k;
795
+ var T;
795
796
  (function(t) {
796
797
  t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
797
- })(k || (k = {}));
798
- var A;
798
+ })(T || (T = {}));
799
+ var D;
799
800
  (function(t) {
800
801
  t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
801
- })(A || (A = {}));
802
+ })(D || (D = {}));
802
803
  let Dt = class {
803
804
  constructor() {
804
805
  this._isAborted = !1, this.onabort = null;
@@ -822,7 +823,7 @@ class Pe {
822
823
  this._httpClient = e, this._logger = n, this._pollAbort = new Dt(), this._options = s, this._running = !1, this.onreceive = null, this.onclose = null;
823
824
  }
824
825
  async connect(e, n) {
825
- if (E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, A, "transferFormat"), this._url = e, this._logger.log(l.Trace, "(LongPolling transport) Connecting."), n === A.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
826
+ if (E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, D, "transferFormat"), this._url = e, this._logger.log(l.Trace, "(LongPolling transport) Connecting."), n === D.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
826
827
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
827
828
  const [s, o] = q(), i = { [s]: o, ...this._options.headers }, r = {
828
829
  abortSignal: this._pollAbort.signal,
@@ -830,11 +831,11 @@ class Pe {
830
831
  timeout: 1e5,
831
832
  withCredentials: this._options.withCredentials
832
833
  };
833
- n === A.Binary && (r.responseType = "arraybuffer");
834
- const a = `${e}&_=${Date.now()}`;
835
- this._logger.log(l.Trace, `(LongPolling transport) polling: ${a}.`);
836
- const c = await this._httpClient.get(a, r);
837
- c.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new G(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, r);
834
+ n === D.Binary && (r.responseType = "arraybuffer");
835
+ const c = `${e}&_=${Date.now()}`;
836
+ this._logger.log(l.Trace, `(LongPolling transport) polling: ${c}.`);
837
+ const a = await this._httpClient.get(c, r);
838
+ a.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${a.statusCode}.`), this._closeError = new V(a.statusText || "", a.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, r);
838
839
  }
839
840
  async _poll(e, n) {
840
841
  try {
@@ -843,9 +844,9 @@ class Pe {
843
844
  const s = `${e}&_=${Date.now()}`;
844
845
  this._logger.log(l.Trace, `(LongPolling transport) polling: ${s}.`);
845
846
  const o = await this._httpClient.get(s, n);
846
- o.statusCode === 204 ? (this._logger.log(l.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : o.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${o.statusCode}.`), this._closeError = new G(o.statusText || "", o.statusCode), this._running = !1) : o.content ? (this._logger.log(l.Trace, `(LongPolling transport) data received. ${ae(o.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(o.content)) : this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.");
847
+ o.statusCode === 204 ? (this._logger.log(l.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : o.statusCode !== 200 ? (this._logger.log(l.Error, `(LongPolling transport) Unexpected response code: ${o.statusCode}.`), this._closeError = new V(o.statusText || "", o.statusCode), this._running = !1) : o.content ? (this._logger.log(l.Trace, `(LongPolling transport) data received. ${ce(o.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(o.content)) : this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.");
847
848
  } catch (s) {
848
- this._running ? s instanceof pe ? this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = s, this._running = !1) : this._logger.log(l.Trace, `(LongPolling transport) Poll errored after shutdown: ${s.message}`);
849
+ this._running ? s instanceof _e ? this._logger.log(l.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = s, this._running = !1) : this._logger.log(l.Trace, `(LongPolling transport) Poll errored after shutdown: ${s.message}`);
849
850
  }
850
851
  } finally {
851
852
  this._logger.log(l.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
@@ -871,7 +872,7 @@ class Pe {
871
872
  } catch (r) {
872
873
  i = r;
873
874
  }
874
- i ? i instanceof G && (i.statusCode === 404 ? this._logger.log(l.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(l.Trace, `(LongPolling transport) Error sending a DELETE request: ${i}`)) : this._logger.log(l.Trace, "(LongPolling transport) DELETE request accepted.");
875
+ i ? i instanceof V && (i.statusCode === 404 ? this._logger.log(l.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(l.Trace, `(LongPolling transport) Error sending a DELETE request: ${i}`)) : this._logger.log(l.Trace, "(LongPolling transport) DELETE request accepted.");
875
876
  } finally {
876
877
  this._logger.log(l.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
877
878
  }
@@ -883,14 +884,14 @@ class Pe {
883
884
  }
884
885
  }
885
886
  }
886
- class At {
887
+ class Rt {
887
888
  constructor(e, n, s, o) {
888
889
  this._httpClient = e, this._accessToken = n, this._logger = s, this._options = o, this.onreceive = null, this.onclose = null;
889
890
  }
890
891
  async connect(e, n) {
891
- return E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, A, "transferFormat"), this._logger.log(l.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((s, o) => {
892
+ return E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, D, "transferFormat"), this._logger.log(l.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((s, o) => {
892
893
  let i = !1;
893
- if (n !== A.Text) {
894
+ if (n !== D.Text) {
894
895
  o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
895
896
  return;
896
897
  }
@@ -898,27 +899,27 @@ class At {
898
899
  if (L.isBrowser || L.isWebWorker)
899
900
  r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
900
901
  else {
901
- const a = this._httpClient.getCookieString(e), c = {};
902
- c.Cookie = a;
902
+ const c = this._httpClient.getCookieString(e), a = {};
903
+ a.Cookie = c;
903
904
  const [h, u] = q();
904
- c[h] = u, r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...c, ...this._options.headers } });
905
+ a[h] = u, r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...a, ...this._options.headers } });
905
906
  }
906
907
  try {
907
- r.onmessage = (a) => {
908
+ r.onmessage = (c) => {
908
909
  if (this.onreceive)
909
910
  try {
910
- this._logger.log(l.Trace, `(SSE transport) data received. ${ae(a.data, this._options.logMessageContent)}.`), this.onreceive(a.data);
911
- } catch (c) {
912
- this._close(c);
911
+ this._logger.log(l.Trace, `(SSE transport) data received. ${ce(c.data, this._options.logMessageContent)}.`), this.onreceive(c.data);
912
+ } catch (a) {
913
+ this._close(a);
913
914
  return;
914
915
  }
915
- }, r.onerror = (a) => {
916
+ }, r.onerror = (c) => {
916
917
  i ? this._close() : o(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
917
918
  }, r.onopen = () => {
918
919
  this._logger.log(l.Information, `SSE connected to ${this._url}`), this._eventSource = r, i = !0, s();
919
920
  };
920
- } catch (a) {
921
- o(a);
921
+ } catch (c) {
922
+ o(c);
922
923
  return;
923
924
  }
924
925
  });
@@ -933,32 +934,32 @@ class At {
933
934
  this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
934
935
  }
935
936
  }
936
- class Rt {
937
+ class Lt {
937
938
  constructor(e, n, s, o, i, r) {
938
939
  this._logger = s, this._accessTokenFactory = n, this._logMessageContent = o, this._webSocketConstructor = i, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = r;
939
940
  }
940
941
  async connect(e, n) {
941
- E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, A, "transferFormat"), this._logger.log(l.Trace, "(WebSockets transport) Connecting.");
942
+ E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, D, "transferFormat"), this._logger.log(l.Trace, "(WebSockets transport) Connecting.");
942
943
  let s;
943
944
  return this._accessTokenFactory && (s = await this._accessTokenFactory()), new Promise((o, i) => {
944
945
  e = e.replace(/^http/, "ws");
945
946
  let r;
946
- const a = this._httpClient.getCookieString(e);
947
- let c = !1;
947
+ const c = this._httpClient.getCookieString(e);
948
+ let a = !1;
948
949
  if (L.isNode || L.isReactNative) {
949
- const h = {}, [u, g] = q();
950
- h[u] = g, s && (h[V.Authorization] = `Bearer ${s}`), a && (h[V.Cookie] = a), r = new this._webSocketConstructor(e, void 0, {
950
+ const h = {}, [u, m] = q();
951
+ h[u] = m, s && (h[X.Authorization] = `Bearer ${s}`), c && (h[X.Cookie] = c), r = new this._webSocketConstructor(e, void 0, {
951
952
  headers: { ...h, ...this._headers }
952
953
  });
953
954
  } else
954
955
  s && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(s)}`);
955
- r || (r = new this._webSocketConstructor(e)), n === A.Binary && (r.binaryType = "arraybuffer"), r.onopen = (h) => {
956
- this._logger.log(l.Information, `WebSocket connected to ${e}.`), this._webSocket = r, c = !0, o();
956
+ r || (r = new this._webSocketConstructor(e)), n === D.Binary && (r.binaryType = "arraybuffer"), r.onopen = (h) => {
957
+ this._logger.log(l.Information, `WebSocket connected to ${e}.`), this._webSocket = r, a = !0, o();
957
958
  }, r.onerror = (h) => {
958
959
  let u = null;
959
960
  typeof ErrorEvent < "u" && h instanceof ErrorEvent ? u = h.error : u = "There was an error with the transport", this._logger.log(l.Information, `(WebSockets transport) ${u}.`);
960
961
  }, r.onmessage = (h) => {
961
- if (this._logger.log(l.Trace, `(WebSockets transport) data received. ${ae(h.data, this._logMessageContent)}.`), this.onreceive)
962
+ if (this._logger.log(l.Trace, `(WebSockets transport) data received. ${ce(h.data, this._logMessageContent)}.`), this.onreceive)
962
963
  try {
963
964
  this.onreceive(h.data);
964
965
  } catch (u) {
@@ -966,7 +967,7 @@ class Rt {
966
967
  return;
967
968
  }
968
969
  }, r.onclose = (h) => {
969
- if (c)
970
+ if (a)
970
971
  this._close(h);
971
972
  else {
972
973
  let u = null;
@@ -976,7 +977,7 @@ class Rt {
976
977
  });
977
978
  }
978
979
  send(e) {
979
- return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(l.Trace, `(WebSockets transport) sending data. ${ae(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
980
+ return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(l.Trace, `(WebSockets transport) sending data. ${ce(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
980
981
  }
981
982
  stop() {
982
983
  return this._webSocket && this._close(void 0), Promise.resolve();
@@ -992,10 +993,10 @@ class Rt {
992
993
  }
993
994
  }
994
995
  const xe = 100;
995
- class Lt {
996
+ class It {
996
997
  constructor(e, n = {}) {
997
998
  if (this._stopPromiseResolver = () => {
998
- }, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger = Ke(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
999
+ }, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger = Je(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
999
1000
  n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
1000
1001
  else
1001
1002
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
@@ -1005,10 +1006,10 @@ class Lt {
1005
1006
  const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
1006
1007
  s = i("ws"), o = i("eventsource");
1007
1008
  }
1008
- !L.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : L.isNode && !n.WebSocket && s && (n.WebSocket = s), !L.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : L.isNode && !n.EventSource && typeof o < "u" && (n.EventSource = o), this._httpClient = new xt(n.httpClient || new Et(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
1009
+ !L.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : L.isNode && !n.WebSocket && s && (n.WebSocket = s), !L.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : L.isNode && !n.EventSource && typeof o < "u" && (n.EventSource = o), this._httpClient = new At(n.httpClient || new Pt(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
1009
1010
  }
1010
1011
  async start(e) {
1011
- if (e = e || A.Binary, E.isIn(e, A, "transferFormat"), this._logger.log(l.Debug, `Starting connection with transfer format '${A[e]}'.`), this._connectionState !== "Disconnected")
1012
+ if (e = e || D.Binary, E.isIn(e, D, "transferFormat"), this._logger.log(l.Debug, `Starting connection with transfer format '${D[e]}'.`), this._connectionState !== "Disconnected")
1012
1013
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
1013
1014
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
1014
1015
  const n = "Failed to start the HttpConnection before stop() was called.";
@@ -1052,8 +1053,8 @@ class Lt {
1052
1053
  this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
1053
1054
  try {
1054
1055
  if (this._options.skipNegotiation)
1055
- if (this._options.transport === k.WebSockets)
1056
- this.transport = this._constructTransport(k.WebSockets), await this._startTransport(n, e);
1056
+ if (this._options.transport === T.WebSockets)
1057
+ this.transport = this._constructTransport(T.WebSockets), await this._startTransport(n, e);
1057
1058
  else
1058
1059
  throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
1059
1060
  else {
@@ -1094,11 +1095,11 @@ class Lt {
1094
1095
  });
1095
1096
  if (r.statusCode !== 200)
1096
1097
  return Promise.reject(new Error(`Unexpected status code returned from negotiate '${r.statusCode}'`));
1097
- const a = JSON.parse(r.content);
1098
- return (!a.negotiateVersion || a.negotiateVersion < 1) && (a.connectionToken = a.connectionId), a.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Se("Client didn't negotiate Stateful Reconnect but the server did.")) : a;
1098
+ const c = JSON.parse(r.content);
1099
+ return (!c.negotiateVersion || c.negotiateVersion < 1) && (c.connectionToken = c.connectionId), c.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Se("Client didn't negotiate Stateful Reconnect but the server did.")) : c;
1099
1100
  } catch (r) {
1100
- let a = "Failed to complete negotiation with the server: " + r;
1101
- return r instanceof G && r.statusCode === 404 && (a = a + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(l.Error, a), Promise.reject(new Se(a));
1101
+ let c = "Failed to complete negotiation with the server: " + r;
1102
+ return r instanceof V && r.statusCode === 404 && (c = c + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(l.Error, c), Promise.reject(new Se(c));
1102
1103
  }
1103
1104
  }
1104
1105
  _createConnectUrl(e, n) {
@@ -1110,45 +1111,45 @@ class Lt {
1110
1111
  this._logger.log(l.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = n, await this._startTransport(i, o), this.connectionId = s.connectionId;
1111
1112
  return;
1112
1113
  }
1113
- const r = [], a = s.availableTransports || [];
1114
- let c = s;
1115
- for (const h of a) {
1116
- const u = this._resolveTransportOrError(h, n, o, (c == null ? void 0 : c.useStatefulReconnect) === !0);
1114
+ const r = [], c = s.availableTransports || [];
1115
+ let a = s;
1116
+ for (const h of c) {
1117
+ const u = this._resolveTransportOrError(h, n, o, (a == null ? void 0 : a.useStatefulReconnect) === !0);
1117
1118
  if (u instanceof Error)
1118
1119
  r.push(`${h.transport} failed:`), r.push(u);
1119
1120
  else if (this._isITransport(u)) {
1120
- if (this.transport = u, !c) {
1121
+ if (this.transport = u, !a) {
1121
1122
  try {
1122
- c = await this._getNegotiationResponse(e);
1123
- } catch (g) {
1124
- return Promise.reject(g);
1123
+ a = await this._getNegotiationResponse(e);
1124
+ } catch (m) {
1125
+ return Promise.reject(m);
1125
1126
  }
1126
- i = this._createConnectUrl(e, c.connectionToken);
1127
+ i = this._createConnectUrl(e, a.connectionToken);
1127
1128
  }
1128
1129
  try {
1129
- await this._startTransport(i, o), this.connectionId = c.connectionId;
1130
+ await this._startTransport(i, o), this.connectionId = a.connectionId;
1130
1131
  return;
1131
- } catch (g) {
1132
- if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${g}`), c = void 0, r.push(new Je(`${h.transport} failed: ${g}`, k[h.transport])), this._connectionState !== "Connecting") {
1133
- const p = "Failed to select transport before stop() was called.";
1134
- return this._logger.log(l.Debug, p), Promise.reject(new U(p));
1132
+ } catch (m) {
1133
+ if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${m}`), a = void 0, r.push(new Qe(`${h.transport} failed: ${m}`, T[h.transport])), this._connectionState !== "Connecting") {
1134
+ const f = "Failed to select transport before stop() was called.";
1135
+ return this._logger.log(l.Debug, f), Promise.reject(new U(f));
1135
1136
  }
1136
1137
  }
1137
1138
  }
1138
1139
  }
1139
- return r.length > 0 ? Promise.reject(new Qe(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`, r)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
1140
+ return r.length > 0 ? Promise.reject(new Ye(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`, r)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
1140
1141
  }
1141
1142
  _constructTransport(e) {
1142
1143
  switch (e) {
1143
- case k.WebSockets:
1144
+ case T.WebSockets:
1144
1145
  if (!this._options.WebSocket)
1145
1146
  throw new Error("'WebSocket' is not supported in your environment.");
1146
- return new Rt(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
1147
- case k.ServerSentEvents:
1147
+ return new Lt(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
1148
+ case T.ServerSentEvents:
1148
1149
  if (!this._options.EventSource)
1149
1150
  throw new Error("'EventSource' is not supported in your environment.");
1150
- return new At(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
1151
- case k.LongPolling:
1151
+ return new Rt(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
1152
+ case T.LongPolling:
1152
1153
  return new Pe(this._httpClient, this._logger, this._options);
1153
1154
  default:
1154
1155
  throw new Error(`Unknown transport: ${e}.`);
@@ -1171,23 +1172,23 @@ class Lt {
1171
1172
  } : this.transport.onclose = (s) => this._stopConnection(s), this.transport.connect(e, n);
1172
1173
  }
1173
1174
  _resolveTransportOrError(e, n, s, o) {
1174
- const i = k[e.transport];
1175
+ const i = T[e.transport];
1175
1176
  if (i == null)
1176
1177
  return this._logger.log(l.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
1177
- if (It(n, i))
1178
- if (e.transferFormats.map((a) => A[a]).indexOf(s) >= 0) {
1179
- if (i === k.WebSockets && !this._options.WebSocket || i === k.ServerSentEvents && !this._options.EventSource)
1180
- return this._logger.log(l.Debug, `Skipping transport '${k[i]}' because it is not supported in your environment.'`), new Ye(`'${k[i]}' is not supported in your environment.`, i);
1181
- this._logger.log(l.Debug, `Selecting transport '${k[i]}'.`);
1178
+ if (Mt(n, i))
1179
+ if (e.transferFormats.map((c) => D[c]).indexOf(s) >= 0) {
1180
+ if (i === T.WebSockets && !this._options.WebSocket || i === T.ServerSentEvents && !this._options.EventSource)
1181
+ return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new qe(`'${T[i]}' is not supported in your environment.`, i);
1182
+ this._logger.log(l.Debug, `Selecting transport '${T[i]}'.`);
1182
1183
  try {
1183
- return this.features.reconnect = i === k.WebSockets ? o : void 0, this._constructTransport(i);
1184
- } catch (a) {
1185
- return a;
1184
+ return this.features.reconnect = i === T.WebSockets ? o : void 0, this._constructTransport(i);
1185
+ } catch (c) {
1186
+ return c;
1186
1187
  }
1187
1188
  } else
1188
- return this._logger.log(l.Debug, `Skipping transport '${k[i]}' because it does not support the requested transfer format '${A[s]}'.`), new Error(`'${k[i]}' does not support ${A[s]}.`);
1189
+ return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it does not support the requested transfer format '${D[s]}'.`), new Error(`'${T[i]}' does not support ${D[s]}.`);
1189
1190
  else
1190
- return this._logger.log(l.Debug, `Skipping transport '${k[i]}' because it was disabled by the client.`), new qe(`'${k[i]}' is disabled by the client.`, i);
1191
+ return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new Ze(`'${T[i]}' is disabled by the client.`, i);
1191
1192
  }
1192
1193
  _isITransport(e) {
1193
1194
  return e && typeof e == "object" && "connect" in e;
@@ -1225,7 +1226,7 @@ class Lt {
1225
1226
  return s.has("negotiateVersion") || s.append("negotiateVersion", this._negotiateVersion.toString()), s.has("useStatefulReconnect") ? s.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && s.append("useStatefulReconnect", "true"), n.search = s.toString(), n.toString();
1226
1227
  }
1227
1228
  }
1228
- function It(t, e) {
1229
+ function Mt(t, e) {
1229
1230
  return !t || (e & t) !== 0;
1230
1231
  }
1231
1232
  class me {
@@ -1280,10 +1281,10 @@ class se {
1280
1281
  this._rejecter(e);
1281
1282
  }
1282
1283
  }
1283
- const Mt = "json";
1284
- class $t {
1284
+ const $t = "json";
1285
+ class Nt {
1285
1286
  constructor() {
1286
- this.name = Mt, this.version = 2, this.transferFormat = A.Text;
1287
+ this.name = $t, this.version = 2, this.transferFormat = D.Text;
1287
1288
  }
1288
1289
  /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
1289
1290
  *
@@ -1302,23 +1303,23 @@ class $t {
1302
1303
  if (typeof r.type != "number")
1303
1304
  throw new Error("Invalid payload.");
1304
1305
  switch (r.type) {
1305
- case z.Invocation:
1306
+ case G.Invocation:
1306
1307
  this._isInvocationMessage(r);
1307
1308
  break;
1308
- case z.StreamItem:
1309
+ case G.StreamItem:
1309
1310
  this._isStreamItemMessage(r);
1310
1311
  break;
1311
- case z.Completion:
1312
+ case G.Completion:
1312
1313
  this._isCompletionMessage(r);
1313
1314
  break;
1314
- case z.Ping:
1315
+ case G.Ping:
1315
1316
  break;
1316
- case z.Close:
1317
+ case G.Close:
1317
1318
  break;
1318
- case z.Ack:
1319
+ case G.Ack:
1319
1320
  this._isAckMessage(r);
1320
1321
  break;
1321
- case z.Sequence:
1322
+ case G.Sequence:
1322
1323
  this._isSequenceMessage(r);
1323
1324
  break;
1324
1325
  default:
@@ -1362,7 +1363,7 @@ class $t {
1362
1363
  throw new Error(n);
1363
1364
  }
1364
1365
  }
1365
- const Nt = {
1366
+ const Ot = {
1366
1367
  trace: l.Trace,
1367
1368
  debug: l.Debug,
1368
1369
  info: l.Information,
@@ -1373,21 +1374,21 @@ const Nt = {
1373
1374
  critical: l.Critical,
1374
1375
  none: l.None
1375
1376
  };
1376
- function Ot(t) {
1377
- const e = Nt[t.toLowerCase()];
1377
+ function Ht(t) {
1378
+ const e = Ot[t.toLowerCase()];
1378
1379
  if (typeof e < "u")
1379
1380
  return e;
1380
1381
  throw new Error(`Unknown log level: ${t}`);
1381
1382
  }
1382
- class Ht {
1383
+ class Ut {
1383
1384
  configureLogging(e) {
1384
- if (E.isRequired(e, "logging"), Ut(e))
1385
+ if (E.isRequired(e, "logging"), Wt(e))
1385
1386
  this.logger = e;
1386
1387
  else if (typeof e == "string") {
1387
- const n = Ot(e);
1388
- this.logger = new ye(n);
1388
+ const n = Ht(e);
1389
+ this.logger = new Ce(n);
1389
1390
  } else
1390
- this.logger = new ye(e);
1391
+ this.logger = new Ce(e);
1391
1392
  return this;
1392
1393
  }
1393
1394
  withUrl(e, n) {
@@ -1437,14 +1438,14 @@ class Ht {
1437
1438
  const e = this.httpConnectionOptions || {};
1438
1439
  if (e.logger === void 0 && (e.logger = this.logger), !this.url)
1439
1440
  throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
1440
- const n = new Lt(this.url, e);
1441
- return Ze.create(n, this.logger || Me.instance, this.protocol || new $t(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
1441
+ const n = new It(this.url, e);
1442
+ return et.create(n, this.logger || Me.instance, this.protocol || new Nt(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
1442
1443
  }
1443
1444
  }
1444
- function Ut(t) {
1445
+ function Wt(t) {
1445
1446
  return t.log !== void 0;
1446
1447
  }
1447
- const Wt = 10 * 1e3, jt = 15 * 1e3, cn = ({
1448
+ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
1448
1449
  children: t,
1449
1450
  apiUrl: e,
1450
1451
  endpoint: n
@@ -1452,110 +1453,122 @@ const Wt = 10 * 1e3, jt = 15 * 1e3, cn = ({
1452
1453
  const {
1453
1454
  authState: s,
1454
1455
  getToken: o
1455
- } = X(_e), [i, r] = R(fe.Disconnected), [a, c] = R(!1), h = Q(null), u = Q(o);
1456
- u.current = o;
1457
- const g = Y(() => {
1458
- var f;
1459
- return r(((f = h.current) == null ? void 0 : f.state) ?? fe.Disconnected);
1456
+ } = z(pe), i = dt(), [r, c] = R(fe.Disconnected), [a, h] = R(!1), u = Q(null), m = Q(o);
1457
+ m.current = o;
1458
+ const f = Y(() => {
1459
+ var d;
1460
+ return c(((d = u.current) == null ? void 0 : d.state) ?? fe.Disconnected);
1460
1461
  }, []);
1461
1462
  B(() => {
1462
- if (s !== "AUTH_OK")
1463
+ if (s !== "AUTH_OK" || !i)
1463
1464
  return;
1464
- let f = !1, d = null;
1465
- const m = new Ht().withUrl(`${e}/${n}`, {
1466
- accessTokenFactory: () => u.current().then((b) => (b == null ? void 0 : b.token) ?? "")
1465
+ let d = !1, S = null;
1466
+ const g = new Ut().withUrl(`${e}/${n}`, {
1467
+ accessTokenFactory: () => m.current().then((_) => (_ == null ? void 0 : _.token) ?? "")
1467
1468
  }).withAutomaticReconnect({
1468
- nextRetryDelayInMilliseconds: (b) => Math.min(1e3 * 2 ** b.previousRetryCount, jt)
1469
+ nextRetryDelayInMilliseconds: (_) => Math.min(1e3 * 2 ** _.previousRetryCount, Ft)
1469
1470
  }).build();
1470
- h.current = m, m.on("Connected", (b) => {
1471
- console.log("Server says:", b);
1472
- }), m.onreconnecting((b) => {
1473
- f || (console.log("Reconnecting...", b), g(), c(!0));
1474
- }), m.onreconnected(() => {
1475
- f || (console.log("Reconnected"), g(), c(!1));
1476
- }), m.onclose((b) => {
1477
- f || (console.log("Connection closed", b), g(), c(!0));
1471
+ u.current = g, g.on("Connected", (_) => {
1472
+ console.log("Server says:", _);
1473
+ }), g.onreconnecting((_) => {
1474
+ d || (console.log("Reconnecting...", _), f(), h(!0));
1475
+ }), g.onreconnected(() => {
1476
+ d || (console.log("Reconnected"), f(), h(!1));
1477
+ }), g.onclose((_) => {
1478
+ d || (console.log("Connection closed", _), f(), h(!0));
1478
1479
  });
1479
- const S = () => {
1480
- m.start().then(() => {
1481
- f || (console.log("Connection started"), g(), c(!1));
1482
- }).catch((b) => {
1483
- f || (console.log("Error starting connection:", b), g(), c(!0), d = window.setTimeout(S, Wt));
1480
+ const C = () => {
1481
+ S !== null && window.clearTimeout(S), g.start().then(() => {
1482
+ if (d) {
1483
+ g.stop().catch((_) => {
1484
+ console.log("Error stopping connection:", _);
1485
+ });
1486
+ return;
1487
+ }
1488
+ console.log("Connection started"), f(), h(!1);
1489
+ }).catch((_) => {
1490
+ d || (console.log("Error starting connection:", _), f(), h(!0), S = window.setTimeout(C, jt));
1484
1491
  });
1485
1492
  };
1486
- return S(), () => {
1487
- f = !0, d !== null && window.clearTimeout(d), h.current = null, m.stop().catch((b) => {
1488
- console.log("Error stopping connection:", b);
1493
+ return C(), () => {
1494
+ d = !0, S !== null && window.clearTimeout(S), u.current = null, g.stop().catch((_) => {
1495
+ console.log("Error stopping connection:", _);
1489
1496
  });
1490
1497
  };
1491
- }, [e, s, n, g]);
1492
- const p = F(() => i === fe.Connected, [i]), _ = F(() => s === "AUTH_OK", [s]), w = F(() => ({
1498
+ }, [e, s, n, f, i]);
1499
+ const p = F(() => r === fe.Connected, [r]), w = F(() => s === "AUTH_OK", [s]), b = F(() => ({
1493
1500
  isAlive: p,
1494
- shouldBeAlive: _,
1495
- connectionState: i,
1501
+ shouldBeAlive: w,
1502
+ connectionState: r,
1496
1503
  hasLastConnectionEnded: a
1497
- }), [p, _, i, a]);
1498
- return /* @__PURE__ */ C(et.Provider, { value: w, children: t });
1499
- }, De = 50, Ft = () => {
1504
+ }), [p, w, r, a]);
1505
+ return /* @__PURE__ */ y($e.Provider, { value: b, children: t });
1506
+ }, un = () => {
1507
+ const t = z($e);
1508
+ if (!t)
1509
+ throw new Error("useApiWebSocket must be used within a ApiWebSocketProvider");
1510
+ return t;
1511
+ }, Ae = 50, Bt = () => {
1500
1512
  const t = N.c(22), {
1501
1513
  texts: e
1502
- } = X(ce), {
1514
+ } = z(ae), {
1503
1515
  confirm: n
1504
1516
  } = e, {
1505
1517
  onConfirm: s,
1506
1518
  onCancel: o,
1507
1519
  text: i,
1508
1520
  show: r,
1509
- textSm: a
1510
- } = tt(), c = a === void 0 ? i.length > De : a, h = i.length > De;
1521
+ textSm: c
1522
+ } = tt(), a = c === void 0 ? i.length > Ae : c, h = i.length > Ae;
1511
1523
  let u;
1512
- t[0] !== o || t[1] !== s || t[2] !== r ? (u = (S) => {
1524
+ t[0] !== o || t[1] !== s || t[2] !== r ? (u = (g) => {
1513
1525
  if (r)
1514
- e: switch (S.key) {
1526
+ e: switch (g.key) {
1515
1527
  case "Enter": {
1516
- S.preventDefault(), S.stopPropagation(), s();
1528
+ g.preventDefault(), g.stopPropagation(), s();
1517
1529
  break e;
1518
1530
  }
1519
1531
  case "Escape": {
1520
- S.preventDefault(), S.stopPropagation(), o();
1532
+ g.preventDefault(), g.stopPropagation(), o();
1521
1533
  break e;
1522
1534
  }
1523
1535
  }
1524
1536
  }, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3], nt(u);
1525
- const p = h ? void 0 : "sm";
1526
- let _;
1527
- t[4] !== c || t[5] !== i ? (_ = /* @__PURE__ */ C(H.Header, { className: "justify-content-center", children: c ? /* @__PURE__ */ C(ot, { variant: "body", children: i }) : /* @__PURE__ */ C(H.Title, { children: i }) }), t[4] = c, t[5] = i, t[6] = _) : _ = t[6];
1537
+ const f = h ? void 0 : "sm";
1538
+ let p;
1539
+ t[4] !== a || t[5] !== i ? (p = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: a ? /* @__PURE__ */ y(ot, { variant: "body", children: i }) : /* @__PURE__ */ y(H.Title, { children: i }) }), t[4] = a, t[5] = i, t[6] = p) : p = t[6];
1528
1540
  let w;
1529
- t[7] !== n.no || t[8] !== o ? (w = /* @__PURE__ */ C(ie, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: o, children: n.no }), t[7] = n.no, t[8] = o, t[9] = w) : w = t[9];
1530
- let f;
1531
- t[10] !== n.yes || t[11] !== s ? (f = /* @__PURE__ */ C(ie, { type: "button", color: "primary", onClick: s, className: "w-100 ml", children: n.yes }), t[10] = n.yes, t[11] = s, t[12] = f) : f = t[12];
1541
+ t[7] !== n.no || t[8] !== o ? (w = /* @__PURE__ */ y(ie, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: o, children: n.no }), t[7] = n.no, t[8] = o, t[9] = w) : w = t[9];
1542
+ let b;
1543
+ t[10] !== n.yes || t[11] !== s ? (b = /* @__PURE__ */ y(ie, { type: "button", color: "primary", onClick: s, className: "w-100 ml", children: n.yes }), t[10] = n.yes, t[11] = s, t[12] = b) : b = t[12];
1532
1544
  let d;
1533
- t[13] !== w || t[14] !== f ? (d = /* @__PURE__ */ C(H.Body, { children: /* @__PURE__ */ I("div", { className: "w-100 d-flex gap-5", children: [
1545
+ t[13] !== w || t[14] !== b ? (d = /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */ I("div", { className: "w-100 d-flex gap-5", children: [
1534
1546
  w,
1535
- f
1536
- ] }) }), t[13] = w, t[14] = f, t[15] = d) : d = t[15];
1537
- let m;
1538
- return t[16] !== o || t[17] !== r || t[18] !== p || t[19] !== _ || t[20] !== d ? (m = /* @__PURE__ */ I(H, { show: r, size: p, centered: !0, onHide: o, children: [
1539
- _,
1547
+ b
1548
+ ] }) }), t[13] = w, t[14] = b, t[15] = d) : d = t[15];
1549
+ let S;
1550
+ return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !== p || t[20] !== d ? (S = /* @__PURE__ */ I(H, { show: r, size: f, centered: !0, onHide: o, children: [
1551
+ p,
1540
1552
  d
1541
- ] }), t[16] = o, t[17] = r, t[18] = p, t[19] = _, t[20] = d, t[21] = m) : m = t[21], m;
1553
+ ] }), t[16] = o, t[17] = r, t[18] = f, t[19] = p, t[20] = d, t[21] = S) : S = t[21], S;
1542
1554
  };
1543
1555
  export {
1544
- et as ApiWebSocketContext,
1545
- cn as ApiWebSocketProvider,
1546
- _e as AuthContext,
1547
- on as AuthProvider,
1556
+ $e as ApiWebSocketContext,
1557
+ hn as ApiWebSocketProvider,
1558
+ pe as AuthContext,
1559
+ rn as AuthProvider,
1548
1560
  Re as DelegationContext,
1549
- sn as DelegationProvider,
1550
- un as FormDisabledContext,
1551
- gn as FormDisabledProvider,
1552
- Ve as HelmetContext,
1553
- rn as HelmetProvider,
1554
- je as LoadingContext,
1555
- tn as LoadingProvider,
1556
- ce as LuminusComponentsContext,
1557
- en as LuminusComponentsProvider,
1558
- Be as UserContext,
1559
- nn as UserProvider,
1560
- dn as useFormDisabledContext
1561
+ cn as DelegationProvider,
1562
+ gn as FormDisabledContext,
1563
+ mn as FormDisabledProvider,
1564
+ Xe as HelmetContext,
1565
+ an as HelmetProvider,
1566
+ Fe as LoadingContext,
1567
+ on as LoadingProvider,
1568
+ ae as LuminusComponentsContext,
1569
+ nn as LuminusComponentsProvider,
1570
+ ze as UserContext,
1571
+ sn as UserProvider,
1572
+ un as useApiWebSocketContext,
1573
+ pn as useFormDisabledContext
1561
1574
  };