@ibdop/platform-kit 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,138 +1,138 @@
1
- import Ge, { useState as T, useRef as kt, useCallback as j, useEffect as Z, useMemo as Fe, Component as Ot, createContext as jt, useContext as Mt } from "react";
2
- import Nt from "axios";
3
- const Ue = {
4
- log: (...n) => {
1
+ import Je, { useState as C, useRef as Pt, useCallback as k, useEffect as Q, useMemo as We, Component as Dt, createContext as Ft, useContext as Lt } from "react";
2
+ import $t from "axios";
3
+ const Be = {
4
+ log: (...t) => {
5
5
  },
6
- warn: (...n) => {
6
+ warn: (...t) => {
7
7
  }
8
8
  };
9
- function ce() {
9
+ function fe() {
10
10
  if (typeof window > "u") return null;
11
- const n = window;
12
- if (n.__SHELL_AUTH_INSTANCE__)
13
- return n.__SHELL_AUTH_INSTANCE__;
11
+ const t = window;
12
+ if (t.__SHELL_AUTH_INSTANCE__)
13
+ return t.__SHELL_AUTH_INSTANCE__;
14
14
  const r = window;
15
15
  return r.__SHELL_AUTH__?.authInstance ? r.__SHELL_AUTH__.authInstance : null;
16
16
  }
17
- function Pt() {
18
- const [n, r] = T(null), [o, l] = T(!0), i = kt(0), d = 20, s = j(() => ce(), []);
19
- Z(() => {
20
- const y = s();
21
- if (y) {
22
- r(y), l(!1);
17
+ function Ut() {
18
+ const [t, r] = C(null), [o, l] = C(!0), a = Pt(0), d = 20, s = k(() => fe(), []);
19
+ Q(() => {
20
+ const E = s();
21
+ if (E) {
22
+ r(E), l(!1);
23
23
  return;
24
24
  }
25
- const h = (u) => {
25
+ const g = (u) => {
26
26
  r(u.detail), l(!1);
27
27
  }, b = setInterval(() => {
28
- i.current++;
28
+ a.current++;
29
29
  const u = s();
30
- u ? (Ue.log("Auth found via polling, attempts:", i.current), r(u), l(!1), clearInterval(b)) : i.current >= d && (l(!1), clearInterval(b));
30
+ u ? (Be.log("Auth found via polling, attempts:", a.current), r(u), l(!1), clearInterval(b)) : a.current >= d && (l(!1), clearInterval(b));
31
31
  }, 500);
32
- return window.addEventListener("shell-auth-ready", h), () => {
33
- clearInterval(b), window.removeEventListener("shell-auth-ready", h);
32
+ return window.addEventListener("shell-auth-ready", g), () => {
33
+ clearInterval(b), window.removeEventListener("shell-auth-ready", g);
34
34
  };
35
35
  }, [s]);
36
- const p = n || {
36
+ const p = t || {
37
37
  user: null,
38
38
  isAuthenticated: !1,
39
39
  isLoading: o,
40
40
  signinRedirect: async () => {
41
- const y = ce();
42
- y?.signinRedirect ? await y.signinRedirect() : typeof window < "u" && (window.location.href = "/");
41
+ const E = fe();
42
+ E?.signinRedirect ? await E.signinRedirect() : typeof window < "u" && (window.location.href = "/");
43
43
  },
44
44
  removeUser: async () => {
45
- const y = ce();
46
- y?.removeUser && await y.removeUser();
45
+ const E = fe();
46
+ E?.removeUser && await E.removeUser();
47
47
  }
48
48
  };
49
- return Ue.log("Auth result:", { isAuthenticated: p.isAuthenticated, isLoading: p.isLoading }), p;
49
+ return Be.log("Auth result:", { isAuthenticated: p.isAuthenticated, isLoading: p.isLoading }), p;
50
50
  }
51
- const Dt = {
52
- log: (...n) => {
51
+ const Vt = {
52
+ log: (...t) => {
53
53
  },
54
- warn: (...n) => {
54
+ warn: (...t) => {
55
55
  },
56
- error: (...n) => {
57
- console.error("[useInfoData]", ...n);
56
+ error: (...t) => {
57
+ console.error("[useInfoData]", ...t);
58
58
  }
59
59
  };
60
- function Lt(n) {
61
- if (n) return n;
60
+ function Wt(t) {
61
+ if (t) return t;
62
62
  if (typeof window < "u") {
63
63
  const r = window;
64
64
  if (r.__MF_NAME__) return r.__MF_NAME__;
65
65
  }
66
66
  return "unknown-mfe";
67
67
  }
68
- function $t(n) {
69
- const [r, o] = T(null), [l, i] = T(!0), [d, s] = T(null), x = j(() => {
70
- const y = Lt(n?.mfeName).replace("@ib-dop/", "");
71
- i(!0), s(null), fetch(`/svc/${y}/info.json`).then((h) => {
72
- if (!h.ok)
73
- throw new Error(`HTTP ${h.status}: ${h.statusText}`);
74
- return h.json();
75
- }).then((h) => {
76
- o(h);
77
- }).catch((h) => {
78
- Dt.error("Failed to load info:", h), s(h instanceof Error ? h.message : String(h));
68
+ function Bt(t) {
69
+ const [r, o] = C(null), [l, a] = C(!0), [d, s] = C(null), w = k(() => {
70
+ const E = Wt(t?.mfeName).replace("@ib-dop/", "");
71
+ a(!0), s(null), fetch(`/svc/${E}/info.json`).then((g) => {
72
+ if (!g.ok)
73
+ throw new Error(`HTTP ${g.status}: ${g.statusText}`);
74
+ return g.json();
75
+ }).then((g) => {
76
+ o(g);
77
+ }).catch((g) => {
78
+ Vt.error("Failed to load info:", g), s(g instanceof Error ? g.message : String(g));
79
79
  }).finally(() => {
80
- i(!1);
80
+ a(!1);
81
81
  });
82
- }, [n?.mfeName]);
83
- return Z(() => {
84
- x();
85
- }, [x]), {
82
+ }, [t?.mfeName]);
83
+ return Q(() => {
84
+ w();
85
+ }, [w]), {
86
86
  data: r,
87
87
  isLoading: l,
88
88
  error: d,
89
- refetch: x
89
+ refetch: w
90
90
  };
91
91
  }
92
- const fe = {
93
- log: (...n) => {
92
+ const de = {
93
+ log: (...t) => {
94
94
  },
95
- warn: (...n) => {
95
+ warn: (...t) => {
96
96
  },
97
- error: (...n) => {
98
- console.error("[useV1Config]", ...n);
97
+ error: (...t) => {
98
+ console.error("[useV1Config]", ...t);
99
99
  }
100
100
  }, K = {
101
101
  authority: "",
102
102
  client_id: "",
103
103
  environment: "development"
104
104
  };
105
- function Kt() {
106
- const [n, r] = T(null), [o, l] = T(!0), [i, d] = T(null);
107
- return Z(() => {
105
+ function ir() {
106
+ const [t, r] = C(null), [o, l] = C(!0), [a, d] = C(null);
107
+ return Q(() => {
108
108
  (() => {
109
109
  if (typeof sessionStorage > "u") {
110
110
  d("sessionStorage not available"), r(K), l(!1);
111
111
  return;
112
112
  }
113
113
  try {
114
- const x = sessionStorage.getItem("config");
115
- if (x) {
116
- const p = JSON.parse(x);
117
- r({ ...K, ...p }), d(null), fe.log("Config loaded successfully");
114
+ const w = sessionStorage.getItem("config");
115
+ if (w) {
116
+ const p = JSON.parse(w);
117
+ r({ ...K, ...p }), d(null), de.log("Config loaded successfully");
118
118
  } else
119
- r(K), d("Config not found in sessionStorage"), fe.warn("Config not found in sessionStorage");
120
- } catch (x) {
121
- fe.error("Error parsing config:", x), r(K), d("Error parsing config");
119
+ r(K), d("Config not found in sessionStorage"), de.warn("Config not found in sessionStorage");
120
+ } catch (w) {
121
+ de.error("Error parsing config:", w), r(K), d("Error parsing config");
122
122
  } finally {
123
123
  l(!1);
124
124
  }
125
125
  })();
126
126
  }, []), {
127
- data: n,
127
+ data: t,
128
128
  isLoading: o,
129
- error: i
129
+ error: a
130
130
  };
131
131
  }
132
- function ze(n) {
132
+ function qe(t) {
133
133
  if (typeof window > "u") return;
134
134
  const r = window.__MF_NAME__ || "unknown", o = {
135
- ...n,
135
+ ...t,
136
136
  mfeName: r,
137
137
  timestamp: Date.now()
138
138
  };
@@ -141,7 +141,7 @@ function ze(n) {
141
141
  bubbles: !0
142
142
  }));
143
143
  }
144
- function Ve(n, r) {
144
+ function He(t, r) {
145
145
  const o = {
146
146
  network: {
147
147
  title: "Нет подключения",
@@ -165,66 +165,66 @@ function Ve(n, r) {
165
165
  },
166
166
  client: {
167
167
  title: "Ошибка",
168
- message: n.message || "Произошла ошибка при выполнении запроса."
168
+ message: t.message || "Произошла ошибка при выполнении запроса."
169
169
  },
170
170
  unknown: {
171
171
  title: "Неизвестная ошибка",
172
- message: n.message || "Произошла неизвестная ошибка."
172
+ message: t.message || "Произошла неизвестная ошибка."
173
173
  }
174
- }, l = o[n.type] || o.unknown;
175
- ze({
176
- type: n.type === "network" ? "warning" : "error",
174
+ }, l = o[t.type] || o.unknown;
175
+ qe({
176
+ type: t.type === "network" ? "warning" : "error",
177
177
  title: l.title,
178
178
  message: r ? `${l.message} (${r})` : l.message
179
179
  });
180
180
  }
181
- function Xt(n, r = {}) {
181
+ function ar(t, r = {}) {
182
182
  const {
183
183
  notifyOnError: o = !0,
184
184
  notifyOnSuccess: l = !1,
185
- successMessage: i,
185
+ successMessage: a,
186
186
  errorContext: d,
187
187
  onSuccess: s,
188
- onError: x
189
- } = r, [p, y] = T(null), [h, b] = T(null), [u, v] = T(!1), C = h !== null, M = p !== null && !u && !C, te = j(async () => {
190
- v(!0), b(null);
188
+ onError: w
189
+ } = r, [p, E] = C(null), [g, b] = C(null), [u, _] = C(!1), A = g !== null, O = p !== null && !u && !A, re = k(async () => {
190
+ _(!0), b(null);
191
191
  try {
192
- const w = await n();
193
- if (w.ok)
194
- return y(w.data), l && i && ze({
192
+ const x = await t();
193
+ if (x.ok)
194
+ return E(x.data), l && a && qe({
195
195
  type: "success",
196
196
  title: "Успешно",
197
- message: i
198
- }), s?.(w.data), w.data;
197
+ message: a
198
+ }), s?.(x.data), x.data;
199
199
  {
200
- const N = {
201
- message: w.data || "Request failed",
202
- status: w.status,
200
+ const j = {
201
+ message: x.data || "Request failed",
202
+ status: x.status,
203
203
  type: "client",
204
204
  timestamp: Date.now()
205
205
  };
206
- return b(N), o && Ve(N, d), x?.(N), null;
206
+ return b(j), o && He(j, d), w?.(j), null;
207
207
  }
208
- } catch (w) {
209
- const N = w;
210
- return b(N), o && Ve(N, d), x?.(N), null;
208
+ } catch (x) {
209
+ const j = x;
210
+ return b(j), o && He(j, d), w?.(j), null;
211
211
  } finally {
212
- v(!1);
212
+ _(!1);
213
213
  }
214
- }, [n, o, l, i, d, s, x]), P = j(() => {
215
- y(null), b(null), v(!1);
214
+ }, [t, o, l, a, d, s, w]), P = k(() => {
215
+ E(null), b(null), _(!1);
216
216
  }, []);
217
217
  return {
218
218
  data: p,
219
- error: h,
219
+ error: g,
220
220
  isLoading: u,
221
- isError: C,
222
- isSuccess: M,
223
- execute: te,
221
+ isError: A,
222
+ isSuccess: O,
223
+ execute: re,
224
224
  reset: P
225
225
  };
226
226
  }
227
- const Ft = {
227
+ const Ht = {
228
228
  canView: ["all"],
229
229
  canEdit: ["ibdop-user", "ibdop-admin", "ibdop-devops"],
230
230
  canDelete: ["ibdop-admin", "ibdop-devops"],
@@ -233,91 +233,91 @@ const Ft = {
233
233
  canExportData: ["ibdop-user"],
234
234
  canManageUsers: ["ibdop-admin"]
235
235
  };
236
- function Zt(n = {}) {
237
- const r = Pt(), o = Fe(() => ({
238
- ...Ft,
239
- ...n
240
- }), [n]), l = Fe(() => {
236
+ function sr(t = {}) {
237
+ const r = Ut(), o = We(() => ({
238
+ ...Ht,
239
+ ...t
240
+ }), [t]), l = We(() => {
241
241
  const d = r.user?.profile?.realm_roles || r.user?.profile?.roles || [];
242
242
  return Array.isArray(d) ? d : [d];
243
- }, [r.user]), i = (d) => d.includes("all") ? !0 : d.some((s) => l.includes(s));
243
+ }, [r.user]), a = (d) => d.includes("all") ? !0 : d.some((s) => l.includes(s));
244
244
  return {
245
- canView: i(o.canView),
246
- canEdit: i(o.canEdit),
247
- canDelete: i(o.canDelete),
248
- canAdmin: i(o.canAdmin),
249
- canViewSensitiveData: i(o.canViewSensitiveData),
250
- canExportData: i(o.canExportData),
251
- canManageUsers: i(o.canManageUsers)
245
+ canView: a(o.canView),
246
+ canEdit: a(o.canEdit),
247
+ canDelete: a(o.canDelete),
248
+ canAdmin: a(o.canAdmin),
249
+ canViewSensitiveData: a(o.canViewSensitiveData),
250
+ canExportData: a(o.canExportData),
251
+ canManageUsers: a(o.canManageUsers)
252
252
  };
253
253
  }
254
254
  var X = { exports: {} }, B = {};
255
- var We;
256
- function Ut() {
257
- if (We) return B;
258
- We = 1;
259
- var n = Ge, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
260
- function s(x, p, y) {
261
- var h, b = {}, u = null, v = null;
262
- y !== void 0 && (u = "" + y), p.key !== void 0 && (u = "" + p.key), p.ref !== void 0 && (v = p.ref);
263
- for (h in p) l.call(p, h) && !d.hasOwnProperty(h) && (b[h] = p[h]);
264
- if (x && x.defaultProps) for (h in p = x.defaultProps, p) b[h] === void 0 && (b[h] = p[h]);
265
- return { $$typeof: r, type: x, key: u, ref: v, props: b, _owner: i.current };
255
+ var Ge;
256
+ function Gt() {
257
+ if (Ge) return B;
258
+ Ge = 1;
259
+ var t = Je, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
260
+ function s(w, p, E) {
261
+ var g, b = {}, u = null, _ = null;
262
+ E !== void 0 && (u = "" + E), p.key !== void 0 && (u = "" + p.key), p.ref !== void 0 && (_ = p.ref);
263
+ for (g in p) l.call(p, g) && !d.hasOwnProperty(g) && (b[g] = p[g]);
264
+ if (w && w.defaultProps) for (g in p = w.defaultProps, p) b[g] === void 0 && (b[g] = p[g]);
265
+ return { $$typeof: r, type: w, key: u, ref: _, props: b, _owner: a.current };
266
266
  }
267
267
  return B.Fragment = o, B.jsx = s, B.jsxs = s, B;
268
268
  }
269
269
  var H = {};
270
- var Be;
271
- function Vt() {
272
- return Be || (Be = 1, process.env.NODE_ENV !== "production" && (function() {
273
- var n = Ge, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), l = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), s = /* @__PURE__ */ Symbol.for("react.provider"), x = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), y = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), v = /* @__PURE__ */ Symbol.for("react.offscreen"), C = Symbol.iterator, M = "@@iterator";
274
- function te(e) {
270
+ var ze;
271
+ function zt() {
272
+ return ze || (ze = 1, process.env.NODE_ENV !== "production" && (function() {
273
+ var t = Je, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), l = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), s = /* @__PURE__ */ Symbol.for("react.provider"), w = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, O = "@@iterator";
274
+ function re(e) {
275
275
  if (e === null || typeof e != "object")
276
276
  return null;
277
- var t = C && e[C] || e[M];
278
- return typeof t == "function" ? t : null;
277
+ var n = A && e[A] || e[O];
278
+ return typeof n == "function" ? n : null;
279
279
  }
280
- var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
281
- function w(e) {
280
+ var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
281
+ function x(e) {
282
282
  {
283
- for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
284
- a[c - 1] = arguments[c];
285
- N("error", e, a);
283
+ for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
284
+ i[c - 1] = arguments[c];
285
+ j("error", e, i);
286
286
  }
287
287
  }
288
- function N(e, t, a) {
288
+ function j(e, n, i) {
289
289
  {
290
- var c = P.ReactDebugCurrentFrame, _ = c.getStackAddendum();
291
- _ !== "" && (t += "%s", a = a.concat([_]));
292
- var E = a.map(function(m) {
293
- return String(m);
290
+ var c = P.ReactDebugCurrentFrame, v = c.getStackAddendum();
291
+ v !== "" && (n += "%s", i = i.concat([v]));
292
+ var y = i.map(function(h) {
293
+ return String(h);
294
294
  });
295
- E.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, E);
295
+ y.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, y);
296
296
  }
297
297
  }
298
- var Ke = !1, Xe = !1, Ze = !1, Qe = !1, et = !1, he;
299
- he = /* @__PURE__ */ Symbol.for("react.module.reference");
300
- function tt(e) {
301
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === d || et || e === i || e === y || e === h || Qe || e === v || Ke || Xe || Ze || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === b || e.$$typeof === s || e.$$typeof === x || e.$$typeof === p || // This needs to include all possible module reference object
298
+ var tt = !1, rt = !1, nt = !1, ot = !1, it = !1, _e;
299
+ _e = /* @__PURE__ */ Symbol.for("react.module.reference");
300
+ function at(e) {
301
+ return !!(typeof e == "string" || typeof e == "function" || e === l || e === d || it || e === a || e === E || e === g || ot || e === _ || tt || rt || nt || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === b || e.$$typeof === s || e.$$typeof === w || e.$$typeof === p || // This needs to include all possible module reference object
302
302
  // types supported by any Flight configuration anywhere since
303
303
  // we don't know which Flight build this will end up being used
304
304
  // with.
305
- e.$$typeof === he || e.getModuleId !== void 0));
305
+ e.$$typeof === _e || e.getModuleId !== void 0));
306
306
  }
307
- function rt(e, t, a) {
307
+ function st(e, n, i) {
308
308
  var c = e.displayName;
309
309
  if (c)
310
310
  return c;
311
- var _ = t.displayName || t.name || "";
312
- return _ !== "" ? a + "(" + _ + ")" : a;
311
+ var v = n.displayName || n.name || "";
312
+ return v !== "" ? i + "(" + v + ")" : i;
313
313
  }
314
- function ge(e) {
314
+ function ve(e) {
315
315
  return e.displayName || "Context";
316
316
  }
317
317
  function D(e) {
318
318
  if (e == null)
319
319
  return null;
320
- if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
320
+ if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
321
321
  return e.displayName || e.name || null;
322
322
  if (typeof e == "string")
323
323
  return e;
@@ -328,30 +328,30 @@ function Vt() {
328
328
  return "Portal";
329
329
  case d:
330
330
  return "Profiler";
331
- case i:
331
+ case a:
332
332
  return "StrictMode";
333
- case y:
333
+ case E:
334
334
  return "Suspense";
335
- case h:
335
+ case g:
336
336
  return "SuspenseList";
337
337
  }
338
338
  if (typeof e == "object")
339
339
  switch (e.$$typeof) {
340
- case x:
341
- var t = e;
342
- return ge(t) + ".Consumer";
340
+ case w:
341
+ var n = e;
342
+ return ve(n) + ".Consumer";
343
343
  case s:
344
- var a = e;
345
- return ge(a._context) + ".Provider";
344
+ var i = e;
345
+ return ve(i._context) + ".Provider";
346
346
  case p:
347
- return rt(e, e.render, "ForwardRef");
347
+ return st(e, e.render, "ForwardRef");
348
348
  case b:
349
349
  var c = e.displayName || null;
350
350
  return c !== null ? c : D(e.type) || "Memo";
351
351
  case u: {
352
- var _ = e, E = _._payload, m = _._init;
352
+ var v = e, y = v._payload, h = v._init;
353
353
  try {
354
- return D(m(E));
354
+ return D(h(y));
355
355
  } catch {
356
356
  return null;
357
357
  }
@@ -359,18 +359,18 @@ function Vt() {
359
359
  }
360
360
  return null;
361
361
  }
362
- var L = Object.assign, V = 0, me, ve, _e, ye, Ee, xe, we;
363
- function be() {
362
+ var F = Object.assign, V = 0, Ee, ye, we, xe, be, Se, Re;
363
+ function Ae() {
364
364
  }
365
- be.__reactDisabledLog = !0;
366
- function nt() {
365
+ Ae.__reactDisabledLog = !0;
366
+ function lt() {
367
367
  {
368
368
  if (V === 0) {
369
- me = console.log, ve = console.info, _e = console.warn, ye = console.error, Ee = console.group, xe = console.groupCollapsed, we = console.groupEnd;
369
+ Ee = console.log, ye = console.info, we = console.warn, xe = console.error, be = console.group, Se = console.groupCollapsed, Re = console.groupEnd;
370
370
  var e = {
371
371
  configurable: !0,
372
372
  enumerable: !0,
373
- value: be,
373
+ value: Ae,
374
374
  writable: !0
375
375
  };
376
376
  Object.defineProperties(console, {
@@ -386,7 +386,7 @@ function Vt() {
386
386
  V++;
387
387
  }
388
388
  }
389
- function ot() {
389
+ function ut() {
390
390
  {
391
391
  if (V--, V === 0) {
392
392
  var e = {
@@ -395,320 +395,320 @@ function Vt() {
395
395
  writable: !0
396
396
  };
397
397
  Object.defineProperties(console, {
398
- log: L({}, e, {
399
- value: me
400
- }),
401
- info: L({}, e, {
402
- value: ve
403
- }),
404
- warn: L({}, e, {
405
- value: _e
398
+ log: F({}, e, {
399
+ value: Ee
406
400
  }),
407
- error: L({}, e, {
401
+ info: F({}, e, {
408
402
  value: ye
409
403
  }),
410
- group: L({}, e, {
411
- value: Ee
404
+ warn: F({}, e, {
405
+ value: we
412
406
  }),
413
- groupCollapsed: L({}, e, {
407
+ error: F({}, e, {
414
408
  value: xe
415
409
  }),
416
- groupEnd: L({}, e, {
417
- value: we
410
+ group: F({}, e, {
411
+ value: be
412
+ }),
413
+ groupCollapsed: F({}, e, {
414
+ value: Se
415
+ }),
416
+ groupEnd: F({}, e, {
417
+ value: Re
418
418
  })
419
419
  });
420
420
  }
421
- V < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
421
+ V < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
422
422
  }
423
423
  }
424
- var re = P.ReactCurrentDispatcher, ne;
425
- function z(e, t, a) {
424
+ var ne = P.ReactCurrentDispatcher, oe;
425
+ function z(e, n, i) {
426
426
  {
427
- if (ne === void 0)
427
+ if (oe === void 0)
428
428
  try {
429
429
  throw Error();
430
- } catch (_) {
431
- var c = _.stack.trim().match(/\n( *(at )?)/);
432
- ne = c && c[1] || "";
430
+ } catch (v) {
431
+ var c = v.stack.trim().match(/\n( *(at )?)/);
432
+ oe = c && c[1] || "";
433
433
  }
434
434
  return `
435
- ` + ne + e;
435
+ ` + oe + e;
436
436
  }
437
437
  }
438
- var oe = !1, Y;
438
+ var ie = !1, Y;
439
439
  {
440
- var at = typeof WeakMap == "function" ? WeakMap : Map;
441
- Y = new at();
440
+ var ct = typeof WeakMap == "function" ? WeakMap : Map;
441
+ Y = new ct();
442
442
  }
443
- function Re(e, t) {
444
- if (!e || oe)
443
+ function Ie(e, n) {
444
+ if (!e || ie)
445
445
  return "";
446
446
  {
447
- var a = Y.get(e);
448
- if (a !== void 0)
449
- return a;
447
+ var i = Y.get(e);
448
+ if (i !== void 0)
449
+ return i;
450
450
  }
451
451
  var c;
452
- oe = !0;
453
- var _ = Error.prepareStackTrace;
452
+ ie = !0;
453
+ var v = Error.prepareStackTrace;
454
454
  Error.prepareStackTrace = void 0;
455
- var E;
456
- E = re.current, re.current = null, nt();
455
+ var y;
456
+ y = ne.current, ne.current = null, lt();
457
457
  try {
458
- if (t) {
459
- var m = function() {
458
+ if (n) {
459
+ var h = function() {
460
460
  throw Error();
461
461
  };
462
- if (Object.defineProperty(m.prototype, "props", {
462
+ if (Object.defineProperty(h.prototype, "props", {
463
463
  set: function() {
464
464
  throw Error();
465
465
  }
466
466
  }), typeof Reflect == "object" && Reflect.construct) {
467
467
  try {
468
- Reflect.construct(m, []);
469
- } catch (I) {
470
- c = I;
468
+ Reflect.construct(h, []);
469
+ } catch (M) {
470
+ c = M;
471
471
  }
472
- Reflect.construct(e, [], m);
472
+ Reflect.construct(e, [], h);
473
473
  } else {
474
474
  try {
475
- m.call();
476
- } catch (I) {
477
- c = I;
475
+ h.call();
476
+ } catch (M) {
477
+ c = M;
478
478
  }
479
- e.call(m.prototype);
479
+ e.call(h.prototype);
480
480
  }
481
481
  } else {
482
482
  try {
483
483
  throw Error();
484
- } catch (I) {
485
- c = I;
484
+ } catch (M) {
485
+ c = M;
486
486
  }
487
487
  e();
488
488
  }
489
- } catch (I) {
490
- if (I && c && typeof I.stack == "string") {
491
- for (var g = I.stack.split(`
492
- `), A = c.stack.split(`
493
- `), R = g.length - 1, S = A.length - 1; R >= 1 && S >= 0 && g[R] !== A[S]; )
494
- S--;
495
- for (; R >= 1 && S >= 0; R--, S--)
496
- if (g[R] !== A[S]) {
497
- if (R !== 1 || S !== 1)
489
+ } catch (M) {
490
+ if (M && c && typeof M.stack == "string") {
491
+ for (var m = M.stack.split(`
492
+ `), I = c.stack.split(`
493
+ `), S = m.length - 1, R = I.length - 1; S >= 1 && R >= 0 && m[S] !== I[R]; )
494
+ R--;
495
+ for (; S >= 1 && R >= 0; S--, R--)
496
+ if (m[S] !== I[R]) {
497
+ if (S !== 1 || R !== 1)
498
498
  do
499
- if (R--, S--, S < 0 || g[R] !== A[S]) {
500
- var k = `
501
- ` + g[R].replace(" at new ", " at ");
502
- return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, k), k;
499
+ if (S--, R--, R < 0 || m[S] !== I[R]) {
500
+ var T = `
501
+ ` + m[S].replace(" at new ", " at ");
502
+ return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, T), T;
503
503
  }
504
- while (R >= 1 && S >= 0);
504
+ while (S >= 1 && R >= 0);
505
505
  break;
506
506
  }
507
507
  }
508
508
  } finally {
509
- oe = !1, re.current = E, ot(), Error.prepareStackTrace = _;
509
+ ie = !1, ne.current = y, ut(), Error.prepareStackTrace = v;
510
510
  }
511
- var U = e ? e.displayName || e.name : "", $ = U ? z(U) : "";
512
- return typeof e == "function" && Y.set(e, $), $;
511
+ var U = e ? e.displayName || e.name : "", L = U ? z(U) : "";
512
+ return typeof e == "function" && Y.set(e, L), L;
513
513
  }
514
- function it(e, t, a) {
515
- return Re(e, !1);
514
+ function ft(e, n, i) {
515
+ return Ie(e, !1);
516
516
  }
517
- function st(e) {
518
- var t = e.prototype;
519
- return !!(t && t.isReactComponent);
517
+ function dt(e) {
518
+ var n = e.prototype;
519
+ return !!(n && n.isReactComponent);
520
520
  }
521
- function J(e, t, a) {
521
+ function J(e, n, i) {
522
522
  if (e == null)
523
523
  return "";
524
524
  if (typeof e == "function")
525
- return Re(e, st(e));
525
+ return Ie(e, dt(e));
526
526
  if (typeof e == "string")
527
527
  return z(e);
528
528
  switch (e) {
529
- case y:
529
+ case E:
530
530
  return z("Suspense");
531
- case h:
531
+ case g:
532
532
  return z("SuspenseList");
533
533
  }
534
534
  if (typeof e == "object")
535
535
  switch (e.$$typeof) {
536
536
  case p:
537
- return it(e.render);
537
+ return ft(e.render);
538
538
  case b:
539
- return J(e.type, t, a);
539
+ return J(e.type, n, i);
540
540
  case u: {
541
- var c = e, _ = c._payload, E = c._init;
541
+ var c = e, v = c._payload, y = c._init;
542
542
  try {
543
- return J(E(_), t, a);
543
+ return J(y(v), n, i);
544
544
  } catch {
545
545
  }
546
546
  }
547
547
  }
548
548
  return "";
549
549
  }
550
- var W = Object.prototype.hasOwnProperty, Se = {}, Ce = P.ReactDebugCurrentFrame;
550
+ var W = Object.prototype.hasOwnProperty, Me = {}, Ce = P.ReactDebugCurrentFrame;
551
551
  function q(e) {
552
552
  if (e) {
553
- var t = e._owner, a = J(e.type, e._source, t ? t.type : null);
554
- Ce.setExtraStackFrame(a);
553
+ var n = e._owner, i = J(e.type, e._source, n ? n.type : null);
554
+ Ce.setExtraStackFrame(i);
555
555
  } else
556
556
  Ce.setExtraStackFrame(null);
557
557
  }
558
- function lt(e, t, a, c, _) {
558
+ function pt(e, n, i, c, v) {
559
559
  {
560
- var E = Function.call.bind(W);
561
- for (var m in e)
562
- if (E(e, m)) {
563
- var g = void 0;
560
+ var y = Function.call.bind(W);
561
+ for (var h in e)
562
+ if (y(e, h)) {
563
+ var m = void 0;
564
564
  try {
565
- if (typeof e[m] != "function") {
566
- var A = Error((c || "React class") + ": " + a + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
567
- throw A.name = "Invariant Violation", A;
565
+ if (typeof e[h] != "function") {
566
+ var I = Error((c || "React class") + ": " + i + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
567
+ throw I.name = "Invariant Violation", I;
568
568
  }
569
- g = e[m](t, m, c, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
570
- } catch (R) {
571
- g = R;
569
+ m = e[h](n, h, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
570
+ } catch (S) {
571
+ m = S;
572
572
  }
573
- g && !(g instanceof Error) && (q(_), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", a, m, typeof g), q(null)), g instanceof Error && !(g.message in Se) && (Se[g.message] = !0, q(_), w("Failed %s type: %s", a, g.message), q(null));
573
+ m && !(m instanceof Error) && (q(v), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", i, h, typeof m), q(null)), m instanceof Error && !(m.message in Me) && (Me[m.message] = !0, q(v), x("Failed %s type: %s", i, m.message), q(null));
574
574
  }
575
575
  }
576
576
  }
577
- var ut = Array.isArray;
577
+ var gt = Array.isArray;
578
578
  function ae(e) {
579
- return ut(e);
579
+ return gt(e);
580
580
  }
581
- function ct(e) {
581
+ function mt(e) {
582
582
  {
583
- var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
584
- return a;
583
+ var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
584
+ return i;
585
585
  }
586
586
  }
587
- function ft(e) {
587
+ function ht(e) {
588
588
  try {
589
- return Ae(e), !1;
589
+ return Te(e), !1;
590
590
  } catch {
591
591
  return !0;
592
592
  }
593
593
  }
594
- function Ae(e) {
594
+ function Te(e) {
595
595
  return "" + e;
596
596
  }
597
- function Ie(e) {
598
- if (ft(e))
599
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)), Ae(e);
597
+ function Ne(e) {
598
+ if (ht(e))
599
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mt(e)), Te(e);
600
600
  }
601
- var Te = P.ReactCurrentOwner, dt = {
601
+ var ke = P.ReactCurrentOwner, _t = {
602
602
  key: !0,
603
603
  ref: !0,
604
604
  __self: !0,
605
605
  __source: !0
606
- }, ke, Oe;
607
- function pt(e) {
606
+ }, Oe, je;
607
+ function vt(e) {
608
608
  if (W.call(e, "ref")) {
609
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
610
- if (t && t.isReactWarning)
609
+ var n = Object.getOwnPropertyDescriptor(e, "ref").get;
610
+ if (n && n.isReactWarning)
611
611
  return !1;
612
612
  }
613
613
  return e.ref !== void 0;
614
614
  }
615
- function ht(e) {
615
+ function Et(e) {
616
616
  if (W.call(e, "key")) {
617
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
618
- if (t && t.isReactWarning)
617
+ var n = Object.getOwnPropertyDescriptor(e, "key").get;
618
+ if (n && n.isReactWarning)
619
619
  return !1;
620
620
  }
621
621
  return e.key !== void 0;
622
622
  }
623
- function gt(e, t) {
624
- typeof e.ref == "string" && Te.current;
623
+ function yt(e, n) {
624
+ typeof e.ref == "string" && ke.current;
625
625
  }
626
- function mt(e, t) {
626
+ function wt(e, n) {
627
627
  {
628
- var a = function() {
629
- ke || (ke = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
628
+ var i = function() {
629
+ Oe || (Oe = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
630
630
  };
631
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
632
- get: a,
631
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
632
+ get: i,
633
633
  configurable: !0
634
634
  });
635
635
  }
636
636
  }
637
- function vt(e, t) {
637
+ function xt(e, n) {
638
638
  {
639
- var a = function() {
640
- Oe || (Oe = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
639
+ var i = function() {
640
+ je || (je = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
641
641
  };
642
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
643
- get: a,
642
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
643
+ get: i,
644
644
  configurable: !0
645
645
  });
646
646
  }
647
647
  }
648
- var _t = function(e, t, a, c, _, E, m) {
649
- var g = {
648
+ var bt = function(e, n, i, c, v, y, h) {
649
+ var m = {
650
650
  // This tag allows us to uniquely identify this as a React Element
651
651
  $$typeof: r,
652
652
  // Built-in properties that belong on the element
653
653
  type: e,
654
- key: t,
655
- ref: a,
656
- props: m,
654
+ key: n,
655
+ ref: i,
656
+ props: h,
657
657
  // Record the component responsible for creating this element.
658
- _owner: E
658
+ _owner: y
659
659
  };
660
- return g._store = {}, Object.defineProperty(g._store, "validated", {
660
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
661
661
  configurable: !1,
662
662
  enumerable: !1,
663
663
  writable: !0,
664
664
  value: !1
665
- }), Object.defineProperty(g, "_self", {
665
+ }), Object.defineProperty(m, "_self", {
666
666
  configurable: !1,
667
667
  enumerable: !1,
668
668
  writable: !1,
669
669
  value: c
670
- }), Object.defineProperty(g, "_source", {
670
+ }), Object.defineProperty(m, "_source", {
671
671
  configurable: !1,
672
672
  enumerable: !1,
673
673
  writable: !1,
674
- value: _
675
- }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
674
+ value: v
675
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
676
676
  };
677
- function yt(e, t, a, c, _) {
677
+ function St(e, n, i, c, v) {
678
678
  {
679
- var E, m = {}, g = null, A = null;
680
- a !== void 0 && (Ie(a), g = "" + a), ht(t) && (Ie(t.key), g = "" + t.key), pt(t) && (A = t.ref, gt(t, _));
681
- for (E in t)
682
- W.call(t, E) && !dt.hasOwnProperty(E) && (m[E] = t[E]);
679
+ var y, h = {}, m = null, I = null;
680
+ i !== void 0 && (Ne(i), m = "" + i), Et(n) && (Ne(n.key), m = "" + n.key), vt(n) && (I = n.ref, yt(n, v));
681
+ for (y in n)
682
+ W.call(n, y) && !_t.hasOwnProperty(y) && (h[y] = n[y]);
683
683
  if (e && e.defaultProps) {
684
- var R = e.defaultProps;
685
- for (E in R)
686
- m[E] === void 0 && (m[E] = R[E]);
684
+ var S = e.defaultProps;
685
+ for (y in S)
686
+ h[y] === void 0 && (h[y] = S[y]);
687
687
  }
688
- if (g || A) {
689
- var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
690
- g && mt(m, S), A && vt(m, S);
688
+ if (m || I) {
689
+ var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
690
+ m && wt(h, R), I && xt(h, R);
691
691
  }
692
- return _t(e, g, A, _, c, Te.current, m);
692
+ return bt(e, m, I, v, c, ke.current, h);
693
693
  }
694
694
  }
695
- var ie = P.ReactCurrentOwner, je = P.ReactDebugCurrentFrame;
696
- function F(e) {
695
+ var se = P.ReactCurrentOwner, Pe = P.ReactDebugCurrentFrame;
696
+ function $(e) {
697
697
  if (e) {
698
- var t = e._owner, a = J(e.type, e._source, t ? t.type : null);
699
- je.setExtraStackFrame(a);
698
+ var n = e._owner, i = J(e.type, e._source, n ? n.type : null);
699
+ Pe.setExtraStackFrame(i);
700
700
  } else
701
- je.setExtraStackFrame(null);
701
+ Pe.setExtraStackFrame(null);
702
702
  }
703
- var se;
704
- se = !1;
705
- function le(e) {
703
+ var le;
704
+ le = !1;
705
+ function ue(e) {
706
706
  return typeof e == "object" && e !== null && e.$$typeof === r;
707
707
  }
708
- function Me() {
708
+ function De() {
709
709
  {
710
- if (ie.current) {
711
- var e = D(ie.current.type);
710
+ if (se.current) {
711
+ var e = D(se.current.type);
712
712
  if (e)
713
713
  return `
714
714
 
@@ -717,161 +717,161 @@ Check the render method of \`` + e + "`.";
717
717
  return "";
718
718
  }
719
719
  }
720
- function Et(e) {
720
+ function Rt(e) {
721
721
  return "";
722
722
  }
723
- var Ne = {};
724
- function xt(e) {
723
+ var Fe = {};
724
+ function At(e) {
725
725
  {
726
- var t = Me();
727
- if (!t) {
728
- var a = typeof e == "string" ? e : e.displayName || e.name;
729
- a && (t = `
726
+ var n = De();
727
+ if (!n) {
728
+ var i = typeof e == "string" ? e : e.displayName || e.name;
729
+ i && (n = `
730
730
 
731
- Check the top-level render call using <` + a + ">.");
731
+ Check the top-level render call using <` + i + ">.");
732
732
  }
733
- return t;
733
+ return n;
734
734
  }
735
735
  }
736
- function Pe(e, t) {
736
+ function Le(e, n) {
737
737
  {
738
738
  if (!e._store || e._store.validated || e.key != null)
739
739
  return;
740
740
  e._store.validated = !0;
741
- var a = xt(t);
742
- if (Ne[a])
741
+ var i = At(n);
742
+ if (Fe[i])
743
743
  return;
744
- Ne[a] = !0;
744
+ Fe[i] = !0;
745
745
  var c = "";
746
- e && e._owner && e._owner !== ie.current && (c = " It was passed a child from " + D(e._owner.type) + "."), F(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), F(null);
746
+ e && e._owner && e._owner !== se.current && (c = " It was passed a child from " + D(e._owner.type) + "."), $(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, c), $(null);
747
747
  }
748
748
  }
749
- function De(e, t) {
749
+ function $e(e, n) {
750
750
  {
751
751
  if (typeof e != "object")
752
752
  return;
753
753
  if (ae(e))
754
- for (var a = 0; a < e.length; a++) {
755
- var c = e[a];
756
- le(c) && Pe(c, t);
754
+ for (var i = 0; i < e.length; i++) {
755
+ var c = e[i];
756
+ ue(c) && Le(c, n);
757
757
  }
758
- else if (le(e))
758
+ else if (ue(e))
759
759
  e._store && (e._store.validated = !0);
760
760
  else if (e) {
761
- var _ = te(e);
762
- if (typeof _ == "function" && _ !== e.entries)
763
- for (var E = _.call(e), m; !(m = E.next()).done; )
764
- le(m.value) && Pe(m.value, t);
761
+ var v = re(e);
762
+ if (typeof v == "function" && v !== e.entries)
763
+ for (var y = v.call(e), h; !(h = y.next()).done; )
764
+ ue(h.value) && Le(h.value, n);
765
765
  }
766
766
  }
767
767
  }
768
- function wt(e) {
768
+ function It(e) {
769
769
  {
770
- var t = e.type;
771
- if (t == null || typeof t == "string")
770
+ var n = e.type;
771
+ if (n == null || typeof n == "string")
772
772
  return;
773
- var a;
774
- if (typeof t == "function")
775
- a = t.propTypes;
776
- else if (typeof t == "object" && (t.$$typeof === p || // Note: Memo only checks outer props here.
773
+ var i;
774
+ if (typeof n == "function")
775
+ i = n.propTypes;
776
+ else if (typeof n == "object" && (n.$$typeof === p || // Note: Memo only checks outer props here.
777
777
  // Inner props are checked in the reconciler.
778
- t.$$typeof === b))
779
- a = t.propTypes;
778
+ n.$$typeof === b))
779
+ i = n.propTypes;
780
780
  else
781
781
  return;
782
- if (a) {
783
- var c = D(t);
784
- lt(a, e.props, "prop", c, e);
785
- } else if (t.PropTypes !== void 0 && !se) {
786
- se = !0;
787
- var _ = D(t);
788
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
782
+ if (i) {
783
+ var c = D(n);
784
+ pt(i, e.props, "prop", c, e);
785
+ } else if (n.PropTypes !== void 0 && !le) {
786
+ le = !0;
787
+ var v = D(n);
788
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
789
789
  }
790
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
790
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
791
791
  }
792
792
  }
793
- function bt(e) {
793
+ function Mt(e) {
794
794
  {
795
- for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
796
- var c = t[a];
795
+ for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
796
+ var c = n[i];
797
797
  if (c !== "children" && c !== "key") {
798
- F(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), F(null);
798
+ $(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), $(null);
799
799
  break;
800
800
  }
801
801
  }
802
- e.ref !== null && (F(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
802
+ e.ref !== null && ($(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
803
803
  }
804
804
  }
805
- var Le = {};
806
- function $e(e, t, a, c, _, E) {
805
+ var Ue = {};
806
+ function Ve(e, n, i, c, v, y) {
807
807
  {
808
- var m = tt(e);
809
- if (!m) {
810
- var g = "";
811
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
812
- var A = Et();
813
- A ? g += A : g += Me();
814
- var R;
815
- e === null ? R = "null" : ae(e) ? R = "array" : e !== void 0 && e.$$typeof === r ? (R = "<" + (D(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, g);
808
+ var h = at(e);
809
+ if (!h) {
810
+ var m = "";
811
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
812
+ var I = Rt();
813
+ I ? m += I : m += De();
814
+ var S;
815
+ e === null ? S = "null" : ae(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (D(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, m);
816
816
  }
817
- var S = yt(e, t, a, _, E);
818
- if (S == null)
819
- return S;
820
- if (m) {
821
- var k = t.children;
822
- if (k !== void 0)
817
+ var R = St(e, n, i, v, y);
818
+ if (R == null)
819
+ return R;
820
+ if (h) {
821
+ var T = n.children;
822
+ if (T !== void 0)
823
823
  if (c)
824
- if (ae(k)) {
825
- for (var U = 0; U < k.length; U++)
826
- De(k[U], e);
827
- Object.freeze && Object.freeze(k);
824
+ if (ae(T)) {
825
+ for (var U = 0; U < T.length; U++)
826
+ $e(T[U], e);
827
+ Object.freeze && Object.freeze(T);
828
828
  } else
829
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
829
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
830
830
  else
831
- De(k, e);
831
+ $e(T, e);
832
832
  }
833
- if (W.call(t, "key")) {
834
- var $ = D(e), I = Object.keys(t).filter(function(Tt) {
835
- return Tt !== "key";
836
- }), ue = I.length > 0 ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}";
837
- if (!Le[$ + ue]) {
838
- var It = I.length > 0 ? "{" + I.join(": ..., ") + ": ...}" : "{}";
839
- w(`A props object containing a "key" prop is being spread into JSX:
833
+ if (W.call(n, "key")) {
834
+ var L = D(e), M = Object.keys(n).filter(function(jt) {
835
+ return jt !== "key";
836
+ }), ce = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
837
+ if (!Ue[L + ce]) {
838
+ var Ot = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
839
+ x(`A props object containing a "key" prop is being spread into JSX:
840
840
  let props = %s;
841
841
  <%s {...props} />
842
842
  React keys must be passed directly to JSX without using spread:
843
843
  let props = %s;
844
- <%s key={someKey} {...props} />`, ue, $, It, $), Le[$ + ue] = !0;
844
+ <%s key={someKey} {...props} />`, ce, L, Ot, L), Ue[L + ce] = !0;
845
845
  }
846
846
  }
847
- return e === l ? bt(S) : wt(S), S;
847
+ return e === l ? Mt(R) : It(R), R;
848
848
  }
849
849
  }
850
- function Rt(e, t, a) {
851
- return $e(e, t, a, !0);
850
+ function Ct(e, n, i) {
851
+ return Ve(e, n, i, !0);
852
852
  }
853
- function St(e, t, a) {
854
- return $e(e, t, a, !1);
853
+ function Tt(e, n, i) {
854
+ return Ve(e, n, i, !1);
855
855
  }
856
- var Ct = St, At = Rt;
857
- H.Fragment = l, H.jsx = Ct, H.jsxs = At;
856
+ var Nt = Tt, kt = Ct;
857
+ H.Fragment = l, H.jsx = Nt, H.jsxs = kt;
858
858
  })()), H;
859
859
  }
860
- var He;
861
- function Wt() {
862
- return He || (He = 1, process.env.NODE_ENV === "production" ? X.exports = Ut() : X.exports = Vt()), X.exports;
860
+ var Ye;
861
+ function Yt() {
862
+ return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? X.exports = Gt() : X.exports = zt()), X.exports;
863
863
  }
864
- var f = Wt();
865
- const Ye = "platform-kit", Bt = !1, de = {
866
- log: (...n) => {
864
+ var f = Yt();
865
+ const Ke = "platform-kit", Jt = !1, pe = {
866
+ log: (...t) => {
867
867
  },
868
- warn: (...n) => {
868
+ warn: (...t) => {
869
869
  },
870
- error: (...n) => {
871
- console.error(`[${Ye}]`, ...n);
870
+ error: (...t) => {
871
+ console.error(`[${Ke}]`, ...t);
872
872
  }
873
873
  };
874
- class Qt extends Ot {
874
+ class lr extends Dt {
875
875
  hasDispatched = !1;
876
876
  constructor(r) {
877
877
  super(r), this.state = { hasError: !1 };
@@ -885,7 +885,7 @@ class Qt extends Ot {
885
885
  const r = window;
886
886
  if (r.__MF_NAME__) return r.__MF_NAME__;
887
887
  }
888
- return Ye;
888
+ return Ke;
889
889
  }
890
890
  /**
891
891
  * Определить нужно ли показывать детали ошибки
@@ -903,7 +903,7 @@ class Qt extends Ot {
903
903
  }
904
904
  } catch {
905
905
  }
906
- return Bt;
906
+ return Jt;
907
907
  }
908
908
  /**
909
909
  * Dispatch ошибки в shell
@@ -912,7 +912,7 @@ class Qt extends Ot {
912
912
  if (this.hasDispatched || typeof window > "u") return;
913
913
  this.hasDispatched = !0;
914
914
  const l = this.getMfeName();
915
- de.error("ErrorBoundary caught:", r);
915
+ pe.error("ErrorBoundary caught:", r);
916
916
  try {
917
917
  window.dispatchEvent(new CustomEvent("mfe-error", {
918
918
  detail: {
@@ -924,8 +924,8 @@ class Qt extends Ot {
924
924
  },
925
925
  bubbles: !0
926
926
  }));
927
- } catch (i) {
928
- de.error("Failed to dispatch mfe-error event:", i);
927
+ } catch (a) {
928
+ pe.error("Failed to dispatch mfe-error event:", a);
929
929
  }
930
930
  }
931
931
  /**
@@ -938,7 +938,7 @@ class Qt extends Ot {
938
938
  * Обработать ошибку
939
939
  */
940
940
  componentDidCatch(r, o) {
941
- this.dispatchError(r, o), de.error("Error info:", o.componentStack);
941
+ this.dispatchError(r, o), pe.error("Error info:", o.componentStack);
942
942
  }
943
943
  /**
944
944
  * Копировать ошибку в буфер обмена
@@ -970,7 +970,7 @@ ${this.state.error?.stack}`;
970
970
  */
971
971
  render() {
972
972
  if (this.state.hasError) {
973
- const r = this.state.error?.message || "Unknown error", o = this.state.error?.stack || "", l = this.shouldShowDetails(), i = this.getMfeName();
973
+ const r = this.state.error?.message || "Unknown error", o = this.state.error?.stack || "", l = this.shouldShowDetails(), a = this.getMfeName();
974
974
  return /* @__PURE__ */ f.jsxs("div", { style: {
975
975
  padding: "20px",
976
976
  textAlign: "center",
@@ -983,7 +983,7 @@ ${this.state.error?.stack}`;
983
983
  }, children: [
984
984
  /* @__PURE__ */ f.jsxs("h2", { style: { fontSize: "16px", margin: "0 0 8px 0" }, children: [
985
985
  "⚠️ Ошибка в ",
986
- i
986
+ a
987
987
  ] }),
988
988
  /* @__PURE__ */ f.jsx("p", { style: { fontSize: "12px", margin: 0 }, children: "Произошла ошибка в микрофронтенде. Сообщение отправлено в shell." }),
989
989
  l && /* @__PURE__ */ f.jsxs("details", { style: {
@@ -1062,7 +1062,7 @@ ${o}`
1062
1062
  return this.props.children == null ? null : this.props.children;
1063
1063
  }
1064
1064
  }
1065
- const O = {
1065
+ const N = {
1066
1066
  info: "ℹ️",
1067
1067
  code: "💻",
1068
1068
  link: "🔗",
@@ -1073,8 +1073,8 @@ const O = {
1073
1073
  tags: "🏷️",
1074
1074
  spreadsheet: "📊"
1075
1075
  };
1076
- function er({ mfeName: n }) {
1077
- const { data: r, isLoading: o, error: l } = $t({ mfeName: n }), [i, d] = T(!1);
1076
+ function ur({ mfeName: t }) {
1077
+ const { data: r, isLoading: o, error: l } = Bt({ mfeName: t }), [a, d] = C(!1);
1078
1078
  if (o)
1079
1079
  return /* @__PURE__ */ f.jsxs("span", { className: "text-muted small me-2", children: [
1080
1080
  /* @__PURE__ */ f.jsx("span", { className: "me-1", children: "⏳" }),
@@ -1085,12 +1085,12 @@ function er({ mfeName: n }) {
1085
1085
  /* @__PURE__ */ f.jsx("span", { className: "me-1", children: "ℹ️" }),
1086
1086
  "N/A"
1087
1087
  ] });
1088
- const s = r, x = s.BUILD_VERSION || s.IMAGE_VERSION || s.APP_NAME || "N/A", p = [];
1089
- return s.APP_NAME && p.push({ key: "APP_NAME", value: s.APP_NAME, label: "Приложение", icon: O.apps }), s.BUILD_VERSION && p.push({ key: "BUILD_VERSION", value: s.BUILD_VERSION, label: "Версия", icon: O.tags }), s.IMAGE_VERSION && p.push({ key: "IMAGE_VERSION", value: s.IMAGE_VERSION, label: "Образ", icon: O.storage }), s.GIT_COMMIT && p.push({ key: "GIT_COMMIT", value: s.GIT_COMMIT, label: "Commit", icon: O.spreadsheet }), s.GIT_BRANCH && p.push({ key: "GIT_BRANCH", value: s.GIT_BRANCH, label: "Ветка", icon: O.spreadsheet }), s.CI_COMMIT_AUTHOR && p.push({ key: "CI_COMMIT_AUTHOR", value: s.CI_COMMIT_AUTHOR, label: "Автор", icon: O.user }), s.CI_COMMIT_TIMESTAMP && p.push({ key: "CI_COMMIT_TIMESTAMP", value: s.CI_COMMIT_TIMESTAMP, label: "Дата", icon: O.clock }), s.CI_JOB_URL && p.push({ key: "CI_JOB_URL", value: s.CI_JOB_URL, label: "CI Job", icon: O.link }), s.CI_PIPELINE_URL && p.push({ key: "CI_PIPELINE_URL", value: s.CI_PIPELINE_URL, label: "Pipeline", icon: O.link }), s.CI_COMMIT_MESSAGE && (s.CI_COMMIT_MESSAGE.length > 60 ? s.CI_COMMIT_MESSAGE.substring(0, 57) + "" : s.CI_COMMIT_MESSAGE, p.push({ key: "CI_COMMIT_MESSAGE", value: s.CI_COMMIT_MESSAGE, label: "Сообщение", icon: O.code })), /* @__PURE__ */ f.jsxs("div", { style: { display: "inline-block", position: "relative" }, children: [
1088
+ const s = r, w = s.BUILD_VERSION || s.IMAGE_VERSION || s.APP_NAME || "N/A", p = [];
1089
+ return s.APP_NAME && p.push({ key: "APP_NAME", value: s.APP_NAME, label: "Приложение", icon: N.apps }), s.BUILD_VERSION && p.push({ key: "BUILD_VERSION", value: s.BUILD_VERSION, label: "Версия", icon: N.tags }), s.IMAGE_VERSION && p.push({ key: "IMAGE_VERSION", value: s.IMAGE_VERSION, label: "Образ", icon: N.storage }), s.GIT_COMMIT && p.push({ key: "GIT_COMMIT", value: s.GIT_COMMIT, label: "Commit", icon: N.spreadsheet }), s.GIT_BRANCH && p.push({ key: "GIT_BRANCH", value: s.GIT_BRANCH, label: "Ветка", icon: N.spreadsheet }), s.CI_COMMIT_AUTHOR && p.push({ key: "CI_COMMIT_AUTHOR", value: s.CI_COMMIT_AUTHOR, label: "Автор", icon: N.user }), s.CI_COMMIT_TIMESTAMP && p.push({ key: "CI_COMMIT_TIMESTAMP", value: s.CI_COMMIT_TIMESTAMP, label: "Дата", icon: N.clock }), s.CI_JOB_URL && p.push({ key: "CI_JOB_URL", value: s.CI_JOB_URL, label: "CI Job", icon: N.link }), s.CI_PIPELINE_URL && p.push({ key: "CI_PIPELINE_URL", value: s.CI_PIPELINE_URL, label: "Pipeline", icon: N.link }), s.CI_COMMIT_MESSAGE && (s.CI_COMMIT_MESSAGE.length > 60 ? s.CI_COMMIT_MESSAGE.substring(0, 57) + "" : s.CI_COMMIT_MESSAGE, p.push({ key: "CI_COMMIT_MESSAGE", value: s.CI_COMMIT_MESSAGE, label: "Сообщение", icon: N.code })), /* @__PURE__ */ f.jsxs("div", { style: { display: "inline-block", position: "relative" }, children: [
1090
1090
  /* @__PURE__ */ f.jsxs(
1091
1091
  "button",
1092
1092
  {
1093
- onClick: () => d(!i),
1093
+ onClick: () => d(!a),
1094
1094
  style: {
1095
1095
  background: "transparent",
1096
1096
  border: "none",
@@ -1102,12 +1102,12 @@ function er({ mfeName: n }) {
1102
1102
  },
1103
1103
  title: "Информация о версии",
1104
1104
  children: [
1105
- /* @__PURE__ */ f.jsx("span", { className: "me-1", children: O.info }),
1106
- /* @__PURE__ */ f.jsx("span", { className: "text-dark", children: x })
1105
+ /* @__PURE__ */ f.jsx("span", { className: "me-1", children: N.info }),
1106
+ /* @__PURE__ */ f.jsx("span", { className: "text-dark", children: w })
1107
1107
  ]
1108
1108
  }
1109
1109
  ),
1110
- i && /* @__PURE__ */ f.jsxs(
1110
+ a && /* @__PURE__ */ f.jsxs(
1111
1111
  "div",
1112
1112
  {
1113
1113
  style: {
@@ -1131,15 +1131,15 @@ function er({ mfeName: n }) {
1131
1131
  display: "flex",
1132
1132
  alignItems: "center"
1133
1133
  }, children: [
1134
- /* @__PURE__ */ f.jsx("span", { className: "me-2", children: O.apps }),
1135
- /* @__PURE__ */ f.jsx("strong", { children: s.APP_NAME || n })
1134
+ /* @__PURE__ */ f.jsx("span", { className: "me-2", children: N.apps }),
1135
+ /* @__PURE__ */ f.jsx("strong", { children: s.APP_NAME || t })
1136
1136
  ] }),
1137
1137
  /* @__PURE__ */ f.jsxs("div", { style: { marginBottom: "12px" }, children: [
1138
1138
  /* @__PURE__ */ f.jsx("span", { className: "text-muted", children: "Версия: " }),
1139
- /* @__PURE__ */ f.jsx("strong", { children: x })
1139
+ /* @__PURE__ */ f.jsx("strong", { children: w })
1140
1140
  ] }),
1141
- p.length > 0 && /* @__PURE__ */ f.jsx("div", { style: { fontSize: "13px" }, children: p.map(({ key: y, value: h, label: b, icon: u }) => {
1142
- const v = h.length > 40 && (y.includes("URL") || y.includes("MESSAGE")) ? `${h.substring(0, 37)}...` : h;
1141
+ p.length > 0 && /* @__PURE__ */ f.jsx("div", { style: { fontSize: "13px" }, children: p.map(({ key: E, value: g, label: b, icon: u }) => {
1142
+ const _ = g.length > 40 && (E.includes("URL") || E.includes("MESSAGE")) ? `${g.substring(0, 37)}...` : g;
1143
1143
  return /* @__PURE__ */ f.jsxs("div", { style: { marginBottom: "8px", display: "flex", alignItems: "flex-start" }, children: [
1144
1144
  /* @__PURE__ */ f.jsx("span", { className: "me-2", style: { flexShrink: 0 }, children: u }),
1145
1145
  /* @__PURE__ */ f.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
@@ -1149,21 +1149,21 @@ function er({ mfeName: n }) {
1149
1149
  {
1150
1150
  className: "font-monospace small text-truncate",
1151
1151
  style: { maxWidth: "100%" },
1152
- title: h,
1153
- children: y.includes("URL") ? /* @__PURE__ */ f.jsx(
1152
+ title: g,
1153
+ children: E.includes("URL") ? /* @__PURE__ */ f.jsx(
1154
1154
  "a",
1155
1155
  {
1156
- href: h,
1156
+ href: g,
1157
1157
  target: "_blank",
1158
1158
  rel: "noopener noreferrer",
1159
1159
  style: { color: "#007bff" },
1160
- children: v
1160
+ children: _
1161
1161
  }
1162
- ) : v
1162
+ ) : _
1163
1163
  }
1164
1164
  )
1165
1165
  ] })
1166
- ] }, y);
1166
+ ] }, E);
1167
1167
  }) }),
1168
1168
  p.length === 0 && /* @__PURE__ */ f.jsx("div", { className: "text-center text-muted py-2 small", children: "Нет информации о версии" }),
1169
1169
  /* @__PURE__ */ f.jsx("div", { style: {
@@ -1194,7 +1194,7 @@ function er({ mfeName: n }) {
1194
1194
  ]
1195
1195
  }
1196
1196
  ),
1197
- i && /* @__PURE__ */ f.jsx(
1197
+ a && /* @__PURE__ */ f.jsx(
1198
1198
  "div",
1199
1199
  {
1200
1200
  onClick: () => d(!1),
@@ -1210,63 +1210,63 @@ function er({ mfeName: n }) {
1210
1210
  )
1211
1211
  ] });
1212
1212
  }
1213
- const pe = "platform-kit", Je = jt(null);
1214
- function tr({ children: n }) {
1215
- const [r, o] = T([]), l = typeof window < "u" && window.__MF_NAME__ || pe, i = j((u, v, C, M) => ({
1213
+ const ge = "platform-kit", Xe = Ft(null);
1214
+ function cr({ children: t }) {
1215
+ const [r, o] = C([]), l = typeof window < "u" && window.__MF_NAME__ || ge, a = k((u, _, A, O) => ({
1216
1216
  id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
1217
1217
  type: u,
1218
- title: v,
1219
- message: C,
1218
+ title: _,
1219
+ message: A,
1220
1220
  mfeName: l,
1221
1221
  timestamp: Date.now(),
1222
- duration: M
1223
- }), [l]), d = j((u) => {
1224
- o((C) => [...C, u].slice(0, 5));
1225
- const v = u.duration || 5e3;
1226
- v > 0 && setTimeout(() => {
1227
- o((C) => C.filter((M) => M.id !== u.id));
1228
- }, v);
1229
- }, []), s = j((u) => {
1230
- const v = i(u.type, u.title, u.message, u.duration);
1231
- d(v), typeof window < "u" && window.dispatchEvent(new CustomEvent("mfe-notification", {
1232
- detail: v,
1222
+ duration: O
1223
+ }), [l]), d = k((u) => {
1224
+ o((A) => [...A, u].slice(0, 5));
1225
+ const _ = u.duration || 5e3;
1226
+ _ > 0 && setTimeout(() => {
1227
+ o((A) => A.filter((O) => O.id !== u.id));
1228
+ }, _);
1229
+ }, []), s = k((u) => {
1230
+ const _ = a(u.type, u.title, u.message, u.duration);
1231
+ d(_), typeof window < "u" && window.dispatchEvent(new CustomEvent("mfe-notification", {
1232
+ detail: _,
1233
1233
  bubbles: !0
1234
1234
  }));
1235
- }, [i, d]), x = j((u, v = "Успешно") => {
1236
- s({ type: "success", title: v, message: u });
1237
- }, [s]), p = j((u, v = "Ошибка") => {
1238
- s({ type: "error", title: v, message: u });
1239
- }, [s]), y = j((u, v = "Предупреждение") => {
1240
- s({ type: "warning", title: v, message: u });
1241
- }, [s]), h = j((u, v = "Информация") => {
1242
- s({ type: "info", title: v, message: u });
1243
- }, [s]), b = j((u) => {
1244
- o((v) => v.filter((C) => C.id !== u));
1235
+ }, [a, d]), w = k((u, _ = "Успешно") => {
1236
+ s({ type: "success", title: _, message: u });
1237
+ }, [s]), p = k((u, _ = "Ошибка") => {
1238
+ s({ type: "error", title: _, message: u });
1239
+ }, [s]), E = k((u, _ = "Предупреждение") => {
1240
+ s({ type: "warning", title: _, message: u });
1241
+ }, [s]), g = k((u, _ = "Информация") => {
1242
+ s({ type: "info", title: _, message: u });
1243
+ }, [s]), b = k((u) => {
1244
+ o((_) => _.filter((A) => A.id !== u));
1245
1245
  }, []);
1246
- return Z(() => {
1246
+ return Q(() => {
1247
1247
  if (typeof window > "u") return;
1248
- const u = (v) => {
1249
- const C = v.detail;
1250
- if (C && C.type && C.title && C.message) {
1251
- const M = {
1252
- ...C,
1248
+ const u = (_) => {
1249
+ const A = _.detail;
1250
+ if (A && A.type && A.title && A.message) {
1251
+ const O = {
1252
+ ...A,
1253
1253
  id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
1254
1254
  };
1255
- d(M);
1255
+ d(O);
1256
1256
  }
1257
1257
  };
1258
1258
  return window.addEventListener("mfe-notification", u), () => {
1259
1259
  window.removeEventListener("mfe-notification", u);
1260
1260
  };
1261
- }, [d]), /* @__PURE__ */ f.jsxs(Je.Provider, { value: {
1261
+ }, [d]), /* @__PURE__ */ f.jsxs(Xe.Provider, { value: {
1262
1262
  notify: s,
1263
- notifySuccess: x,
1263
+ notifySuccess: w,
1264
1264
  notifyError: p,
1265
- notifyWarning: y,
1266
- notifyInfo: h,
1265
+ notifyWarning: E,
1266
+ notifyInfo: g,
1267
1267
  removeNotification: b
1268
1268
  }, children: [
1269
- n,
1269
+ t,
1270
1270
  r.length > 0 && /* @__PURE__ */ f.jsx(
1271
1271
  "div",
1272
1272
  {
@@ -1326,9 +1326,9 @@ function tr({ children: n }) {
1326
1326
  )
1327
1327
  ] });
1328
1328
  }
1329
- function rr() {
1330
- const n = Mt(Je);
1331
- return n || {
1329
+ function fr() {
1330
+ const t = Lt(Xe);
1331
+ return t || {
1332
1332
  notify: () => {
1333
1333
  },
1334
1334
  notifySuccess: () => {
@@ -1343,10 +1343,10 @@ function rr() {
1343
1343
  }
1344
1344
  };
1345
1345
  }
1346
- function nr(n) {
1346
+ function dr(t) {
1347
1347
  if (typeof window > "u") return;
1348
- const r = window.__MF_NAME__ || pe, o = {
1349
- ...n,
1348
+ const r = window.__MF_NAME__ || ge, o = {
1349
+ ...t,
1350
1350
  mfeName: r,
1351
1351
  timestamp: Date.now()
1352
1352
  };
@@ -1355,112 +1355,112 @@ function nr(n) {
1355
1355
  bubbles: !0
1356
1356
  }));
1357
1357
  }
1358
- const qe = "platform-kit", G = {
1359
- log: (...n) => {
1358
+ const Ze = "platform-kit", G = {
1359
+ log: (...t) => {
1360
1360
  },
1361
- warn: (...n) => {
1361
+ warn: (...t) => {
1362
1362
  },
1363
- error: (...n) => {
1364
- console.error(`[${qe}]`, ...n);
1363
+ error: (...t) => {
1364
+ console.error(`[${Ze}]`, ...t);
1365
1365
  },
1366
- info: (...n) => {
1366
+ info: (...t) => {
1367
1367
  }
1368
1368
  };
1369
- function Ht() {
1369
+ function qt() {
1370
1370
  if (typeof window > "u")
1371
1371
  return { isAuthenticated: !1 };
1372
- const n = window.__SHELL_AUTH_INSTANCE__;
1373
- if (n)
1374
- return n;
1372
+ const t = window.__SHELL_AUTH_INSTANCE__;
1373
+ if (t)
1374
+ return t;
1375
1375
  const r = window.__SHELL_AUTH__;
1376
1376
  return r?.authInstance ? r.authInstance : { isAuthenticated: !1 };
1377
1377
  }
1378
- function Gt() {
1378
+ function Kt() {
1379
1379
  if (typeof window > "u") return;
1380
- const n = window.__SHELL_AUTH_INSTANCE__;
1381
- n?.signinRedirect ? n.signinRedirect().catch((r) => {
1380
+ const t = window.__SHELL_AUTH_INSTANCE__;
1381
+ t?.signinRedirect ? t.signinRedirect().catch((r) => {
1382
1382
  G.error("Failed to redirect to login:", r);
1383
1383
  }) : window.location.href = "/";
1384
1384
  }
1385
- function zt(n) {
1386
- const r = n.response;
1385
+ function Xt(t) {
1386
+ const r = t.response;
1387
1387
  let o = "unknown";
1388
1388
  return r ? r.status === 401 ? o = "unauthorized" : r.status === 403 ? o = "forbidden" : r.status === 404 ? o = "not_found" : r.status >= 500 && (o = "server") : o = "network", {
1389
- message: r?.data?.message ?? n.message ?? "Unknown error",
1389
+ message: r?.data?.message ?? t.message ?? "Unknown error",
1390
1390
  code: r?.data?.code,
1391
1391
  status: r?.status,
1392
1392
  type: o,
1393
1393
  timestamp: Date.now(),
1394
- url: n.config?.url
1394
+ url: t.config?.url
1395
1395
  };
1396
1396
  }
1397
- function Yt(n = {}) {
1398
- const r = n.name || qe, o = {
1399
- log: (...i) => G.log(`[API:${r}]`, ...i),
1400
- warn: (...i) => G.warn(`[API:${r}]`, ...i),
1401
- error: (...i) => G.error(`[API:${r}]`, ...i),
1402
- info: (...i) => G.info(`[API:${r}]`, ...i)
1403
- }, l = Nt.create({
1404
- timeout: n.timeout ?? 1e4,
1405
- baseURL: n.baseURL ?? "",
1397
+ function Zt(t = {}) {
1398
+ const r = t.name || Ze, o = {
1399
+ log: (...a) => G.log(`[API:${r}]`, ...a),
1400
+ warn: (...a) => G.warn(`[API:${r}]`, ...a),
1401
+ error: (...a) => G.error(`[API:${r}]`, ...a),
1402
+ info: (...a) => G.info(`[API:${r}]`, ...a)
1403
+ }, l = $t.create({
1404
+ timeout: t.timeout ?? 1e4,
1405
+ baseURL: t.baseURL ?? "",
1406
1406
  headers: {
1407
1407
  "Content-Type": "application/json"
1408
1408
  }
1409
1409
  });
1410
1410
  return l.interceptors.request.use(
1411
- (i) => {
1412
- const d = Ht();
1411
+ (a) => {
1412
+ const d = qt();
1413
1413
  if (d?.isAuthenticated) {
1414
1414
  const s = d.user?.profile?.access_token;
1415
- s && i.headers && (i.headers.Authorization = `Bearer ${s}`, o.info("Auth token attached"));
1415
+ s && a.headers && (a.headers.Authorization = `Bearer ${s}`, o.info("Auth token attached"));
1416
1416
  } else
1417
1417
  o.info("User not authenticated - request without token");
1418
- return o.log(`${i.method?.toUpperCase()} ${i.url}`), i;
1418
+ return o.log(`${a.method?.toUpperCase()} ${a.url}`), a;
1419
1419
  },
1420
- (i) => (o.error("Request interceptor error:", i.message), Promise.reject(i))
1420
+ (a) => (o.error("Request interceptor error:", a.message), Promise.reject(a))
1421
1421
  ), l.interceptors.response.use(
1422
- (i) => (o.log(`Response ${i.status}:`, i.config.url), i),
1423
- (i) => {
1424
- const d = i.response?.status, s = i.config?.url;
1425
- return d === 401 ? (o.warn("401 Unauthorized - triggering re-auth"), Gt()) : d === 403 ? o.warn("403 Forbidden - insufficient permissions") : d === 404 ? o.warn("404 Not found:", s) : d === 429 ? o.warn("429 Rate limited") : d === 500 ? o.error("500 Server error:", s) : i.response ? o.warn(`Error ${d}:`, i.message) : o.error("Network error - backend may be unavailable:", s), Promise.reject(zt(i));
1422
+ (a) => (o.log(`Response ${a.status}:`, a.config.url), a),
1423
+ (a) => {
1424
+ const d = a.response?.status, s = a.config?.url;
1425
+ return d === 401 ? (o.warn("401 Unauthorized - triggering re-auth"), Kt()) : d === 403 ? o.warn("403 Forbidden - insufficient permissions") : d === 404 ? o.warn("404 Not found:", s) : d === 429 ? o.warn("429 Rate limited") : d === 500 ? o.error("500 Server error:", s) : a.response ? o.warn(`Error ${d}:`, a.message) : o.error("Network error - backend may be unavailable:", s), Promise.reject(Xt(a));
1426
1426
  }
1427
1427
  ), l;
1428
1428
  }
1429
- const Q = Yt();
1430
- async function or(n, r, o = Q) {
1431
- const l = await o.get(n, { params: r });
1429
+ const ee = Zt();
1430
+ async function pr(t, r, o = ee) {
1431
+ const l = await o.get(t, { params: r });
1432
1432
  return {
1433
1433
  data: l.data,
1434
1434
  status: l.status,
1435
1435
  ok: l.status >= 200 && l.status < 300
1436
1436
  };
1437
1437
  }
1438
- async function ar(n, r, o = Q) {
1439
- const l = await o.post(n, r);
1438
+ async function gr(t, r, o = ee) {
1439
+ const l = await o.post(t, r);
1440
1440
  return {
1441
1441
  data: l.data,
1442
1442
  status: l.status,
1443
1443
  ok: l.status >= 200 && l.status < 300
1444
1444
  };
1445
1445
  }
1446
- async function ir(n, r, o = Q) {
1447
- const l = await o.put(n, r);
1446
+ async function mr(t, r, o = ee) {
1447
+ const l = await o.put(t, r);
1448
1448
  return {
1449
1449
  data: l.data,
1450
1450
  status: l.status,
1451
1451
  ok: l.status >= 200 && l.status < 300
1452
1452
  };
1453
1453
  }
1454
- async function sr(n, r = Q) {
1455
- const o = await r.delete(n);
1454
+ async function hr(t, r = ee) {
1455
+ const o = await r.delete(t);
1456
1456
  return {
1457
1457
  data: o.data,
1458
1458
  status: o.status,
1459
1459
  ok: o.status >= 200 && o.status < 300
1460
1460
  };
1461
1461
  }
1462
- function ee(n, r) {
1463
- const o = r?.prefix ? `[${r.prefix}]` : `[${n}]`;
1462
+ function te(t, r) {
1463
+ const o = r?.prefix ? `[${r.prefix}]` : `[${t}]`;
1464
1464
  return {
1465
1465
  log: (...l) => {
1466
1466
  },
@@ -1473,28 +1473,98 @@ function ee(n, r) {
1473
1473
  }
1474
1474
  };
1475
1475
  }
1476
- const lr = ee("platform-kit", { prefix: "AUTH" }), ur = ee("platform-kit", { prefix: "API" }), cr = ee("platform-kit", { prefix: "ERROR" }), fr = ee("platform-kit", { prefix: "INFO" });
1476
+ const _r = te("platform-kit", { prefix: "AUTH" }), vr = te("platform-kit", { prefix: "API" }), Er = te("platform-kit", { prefix: "ERROR" }), yr = te("platform-kit", { prefix: "INFO" }), Qt = {}, er = {
1477
+ log: (...t) => {
1478
+ },
1479
+ warn: (...t) => {
1480
+ },
1481
+ error: (...t) => {
1482
+ console.error("[getMfeName]", ...t);
1483
+ }
1484
+ };
1485
+ function Qe() {
1486
+ if (typeof window > "u") return null;
1487
+ const t = window;
1488
+ return t.__MF_NAME__ ? t.__MF_NAME__ : null;
1489
+ }
1490
+ function et() {
1491
+ if (typeof window > "u") return null;
1492
+ try {
1493
+ const t = sessionStorage.getItem("mf-config");
1494
+ if (t) {
1495
+ const r = JSON.parse(t);
1496
+ if (r.mfeName) return r.mfeName;
1497
+ if (r.name) return r.name;
1498
+ if (r.appName) return r.appName;
1499
+ }
1500
+ } catch {
1501
+ }
1502
+ return null;
1503
+ }
1504
+ function he() {
1505
+ const t = Qt;
1506
+ return t.VITE_MFE_NAME ? String(t.VITE_MFE_NAME) : t.MFE_NAME ? String(t.MFE_NAME) : null;
1507
+ }
1508
+ let Z = null, me = !1;
1509
+ function tr(t) {
1510
+ if (me && Z)
1511
+ return Z;
1512
+ const r = [
1513
+ { source: "window.__MF_NAME__", value: Qe() },
1514
+ { source: "sessionStorage.mf-config", value: et() },
1515
+ { source: "import.meta.env.VITE_MFE_NAME", value: he() }
1516
+ ];
1517
+ for (const { source: l, value: a } of r)
1518
+ if (a)
1519
+ return Z = a, me = !0, a;
1520
+ if (t)
1521
+ return t;
1522
+ const o = "Cannot determine MFE name. Please set one of: window.__MF_NAME__, sessionStorage.mf-config, or VITE_MFE_NAME";
1523
+ throw er.error(o), new Error(o);
1524
+ }
1525
+ function wr() {
1526
+ return tr();
1527
+ }
1528
+ function rr() {
1529
+ return Qe() ? "window.__MF_NAME__" : et() ? "sessionStorage.mf-config" : he() ? "import.meta.env.VITE_MFE_NAME" : null;
1530
+ }
1531
+ function xr() {
1532
+ return rr() !== null;
1533
+ }
1534
+ function br() {
1535
+ Z = null, me = !1;
1536
+ }
1537
+ function Sr() {
1538
+ const t = [];
1539
+ return typeof window < "u" && (window.__MF_NAME__ && t.push("window.__MF_NAME__"), sessionStorage.getItem("mf-config") && t.push("sessionStorage.mf-config")), he() && t.push("import.meta.env.VITE_MFE_NAME"), t;
1540
+ }
1477
1541
  export {
1478
- Qt as ErrorBoundary,
1479
- tr as NotificationProvider,
1480
- er as VersionInfo,
1481
- Q as api,
1482
- ur as apiLogger,
1483
- lr as authLogger,
1484
- Yt as createApiClient,
1485
- ee as createMfLogger,
1486
- sr as del,
1487
- nr as dispatchNotification,
1488
- cr as errorLogger,
1489
- or as get,
1490
- ce as getAuth,
1491
- fr as infoLogger,
1492
- ar as post,
1493
- ir as put,
1494
- Xt as useApi,
1495
- $t as useInfoData,
1496
- rr as useNotification,
1497
- Zt as usePermissions,
1498
- Pt as useShellAuth,
1499
- Kt as useV1Config
1542
+ lr as ErrorBoundary,
1543
+ cr as NotificationProvider,
1544
+ ur as VersionInfo,
1545
+ ee as api,
1546
+ vr as apiLogger,
1547
+ _r as authLogger,
1548
+ Zt as createApiClient,
1549
+ te as createMfLogger,
1550
+ hr as del,
1551
+ dr as dispatchNotification,
1552
+ Er as errorLogger,
1553
+ pr as get,
1554
+ Sr as getAllMfeNameSources,
1555
+ fe as getAuth,
1556
+ tr as getMfeName,
1557
+ rr as getMfeNameSource,
1558
+ xr as hasMfeName,
1559
+ yr as infoLogger,
1560
+ gr as post,
1561
+ mr as put,
1562
+ wr as requireMfeName,
1563
+ br as resetMfeNameCache,
1564
+ ar as useApi,
1565
+ Bt as useInfoData,
1566
+ fr as useNotification,
1567
+ sr as usePermissions,
1568
+ Ut as useShellAuth,
1569
+ ir as useV1Config
1500
1570
  };