@articles-media/articles-dev-box 1.0.23 → 1.0.24

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.
Files changed (35) hide show
  1. package/dist/Ad-BAvmOFcq.js +503 -0
  2. package/dist/Ad.js +1 -1
  3. package/dist/AdConfirmExitModal-BNFKKayL.js +55 -0
  4. package/dist/AdDetailsModal-Cv1ll9G-.js +107 -0
  5. package/dist/ArticlesAd.js +7 -8
  6. package/dist/{Button-BlAdEbSd.js → Button-CU11ETla.js} +9 -9
  7. package/dist/CreditsModal.js +23 -24
  8. package/dist/DarkModeHandler.js +11 -12
  9. package/dist/FriendsList.js +40 -41
  10. package/dist/{GameScoreboard-CBY3JsFa.js → GameScoreboard-Dj5mTFTn.js} +48 -49
  11. package/dist/GameScoreboard.js +1 -1
  12. package/dist/GlobalBody.js +20 -20
  13. package/dist/GlobalHead.js +2 -3
  14. package/dist/Link-8nSDV4sI.js +16 -0
  15. package/dist/ReturnToLauncherButton.js +17 -18
  16. package/dist/SettingsModal-tXcbd23J.js +246 -0
  17. package/dist/SettingsModal.js +1 -1
  18. package/dist/StatusModal-CBzdZdAm.js +69 -0
  19. package/dist/ViewUserModal-C_gWUvXi.js +1544 -0
  20. package/dist/ViewUserModal.js +1 -1
  21. package/dist/{classnames-DP6dWde5.js → classnames-CpG5mzJ5.js} +12 -4
  22. package/dist/index.js +4 -4
  23. package/dist/numberWithCommas-rN3cZDJL.js +1170 -0
  24. package/package.json +1 -1
  25. package/dist/Ad-Ck5UdTq3.js +0 -387
  26. package/dist/AdConfirmExitModal-CJ-HtcVC.js +0 -56
  27. package/dist/AdDetailsModal-DRNRTL2W.js +0 -108
  28. package/dist/Link-MFZblBb4.js +0 -17
  29. package/dist/Modal-BX1s6CCU.js +0 -1631
  30. package/dist/SettingsModal-XI2dMI09.js +0 -247
  31. package/dist/StatusModal-elrPJvX1.js +0 -70
  32. package/dist/ViewUserModal-DDjWLpyM.js +0 -3094
  33. package/dist/jsx-runtime-VZk6y-ec.js +0 -191
  34. package/dist/numberWithCommas-BSKBdR-e.js +0 -18
  35. /package/dist/{useAuthSiteStatus-1rHjYC4N.js → useAuthSiteStatus-Cj9IjMj7.js} +0 -0
@@ -1,1631 +0,0 @@
1
- import { n as e, r as t, t as n } from "./jsx-runtime-VZk6y-ec.js";
2
- import { t as r } from "./classnames-DP6dWde5.js";
3
- import * as i from "react";
4
- import a, { cloneElement as o, createContext as s, forwardRef as c, useCallback as l, useContext as u, useEffect as d, useImperativeHandle as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g } from "react";
5
- import _ from "react-dom";
6
- //#region node_modules/dom-helpers/esm/canUseDOM.js
7
- var v = !!(typeof window < "u" && window.document && window.document.createElement), y = !1, b = !1;
8
- try {
9
- var x = {
10
- get passive() {
11
- return y = !0;
12
- },
13
- get once() {
14
- return b = y = !0;
15
- }
16
- };
17
- v && (window.addEventListener("test", x, x), window.removeEventListener("test", x, !0));
18
- } catch {}
19
- function S(e, t, n, r) {
20
- if (r && typeof r != "boolean" && !b) {
21
- var i = r.once, a = r.capture, o = n;
22
- !b && i && (o = n.__once || function e(r) {
23
- this.removeEventListener(t, e, a), n.call(this, r);
24
- }, n.__once = o), e.addEventListener(t, o, y ? r : a);
25
- }
26
- e.addEventListener(t, n, r);
27
- }
28
- //#endregion
29
- //#region node_modules/dom-helpers/esm/ownerDocument.js
30
- function C(e) {
31
- return e && e.ownerDocument || document;
32
- }
33
- //#endregion
34
- //#region node_modules/dom-helpers/esm/removeEventListener.js
35
- function w(e, t, n, r) {
36
- var i = r && typeof r != "boolean" ? r.capture : r;
37
- e.removeEventListener(t, n, i), n.__once && e.removeEventListener(t, n.__once, i);
38
- }
39
- //#endregion
40
- //#region node_modules/dom-helpers/esm/scrollbarSize.js
41
- var T;
42
- function ee(e) {
43
- if ((!T && T !== 0 || e) && v) {
44
- var t = document.createElement("div");
45
- t.style.position = "absolute", t.style.top = "-9999px", t.style.width = "50px", t.style.height = "50px", t.style.overflow = "scroll", document.body.appendChild(t), T = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
46
- }
47
- return T;
48
- }
49
- //#endregion
50
- //#region node_modules/@restart/hooks/esm/useCallbackRef.js
51
- function te() {
52
- return g(null);
53
- }
54
- //#endregion
55
- //#region node_modules/@restart/hooks/esm/useCommittedRef.js
56
- function ne(e) {
57
- let t = h(e);
58
- return d(() => {
59
- t.current = e;
60
- }, [e]), t;
61
- }
62
- //#endregion
63
- //#region node_modules/@restart/hooks/esm/useEventCallback.js
64
- function E(e) {
65
- let t = ne(e);
66
- return l(function(...e) {
67
- return t.current && t.current(...e);
68
- }, [t]);
69
- }
70
- //#endregion
71
- //#region node_modules/@restart/hooks/esm/useMergedRefs.js
72
- var D = (e) => !e || typeof e == "function" ? e : (t) => {
73
- e.current = t;
74
- };
75
- function O(e, t) {
76
- let n = D(e), r = D(t);
77
- return (e) => {
78
- n && n(e), r && r(e);
79
- };
80
- }
81
- function k(e, t) {
82
- return m(() => O(e, t), [e, t]);
83
- }
84
- //#endregion
85
- //#region node_modules/@restart/hooks/esm/useUpdatedRef.js
86
- function A(e) {
87
- let t = h(e);
88
- return t.current = e, t;
89
- }
90
- //#endregion
91
- //#region node_modules/@restart/hooks/esm/useWillUnmount.js
92
- function re(e) {
93
- let t = A(e);
94
- d(() => () => t.current(), []);
95
- }
96
- //#endregion
97
- //#region node_modules/dom-helpers/esm/ownerWindow.js
98
- function j(e) {
99
- var t = C(e);
100
- return t && t.defaultView || window;
101
- }
102
- //#endregion
103
- //#region node_modules/dom-helpers/esm/getComputedStyle.js
104
- function ie(e, t) {
105
- return j(e).getComputedStyle(e, t);
106
- }
107
- //#endregion
108
- //#region node_modules/dom-helpers/esm/hyphenate.js
109
- var ae = /([A-Z])/g;
110
- function oe(e) {
111
- return e.replace(ae, "-$1").toLowerCase();
112
- }
113
- //#endregion
114
- //#region node_modules/dom-helpers/esm/hyphenateStyle.js
115
- var M = /^ms-/;
116
- function N(e) {
117
- return oe(e).replace(M, "-ms-");
118
- }
119
- //#endregion
120
- //#region node_modules/dom-helpers/esm/isTransform.js
121
- var P = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
122
- function se(e) {
123
- return !!(e && P.test(e));
124
- }
125
- //#endregion
126
- //#region node_modules/dom-helpers/esm/css.js
127
- function F(e, t) {
128
- var n = "", r = "";
129
- if (typeof t == "string") return e.style.getPropertyValue(N(t)) || ie(e).getPropertyValue(N(t));
130
- Object.keys(t).forEach(function(i) {
131
- var a = t[i];
132
- !a && a !== 0 ? e.style.removeProperty(N(i)) : se(i) ? r += i + "(" + a + ") " : n += N(i) + ": " + a + ";";
133
- }), r && (n += "transform: " + r + ";"), e.style.cssText += ";" + n;
134
- }
135
- //#endregion
136
- //#region node_modules/dom-helpers/esm/listen.js
137
- function I(e, t, n, r) {
138
- return S(e, t, n, r), function() {
139
- w(e, t, n, r);
140
- };
141
- }
142
- //#endregion
143
- //#region node_modules/dom-helpers/esm/triggerEvent.js
144
- function ce(e, t, n, r) {
145
- if (n === void 0 && (n = !1), r === void 0 && (r = !0), e) {
146
- var i = document.createEvent("HTMLEvents");
147
- i.initEvent(t, n, r), e.dispatchEvent(i);
148
- }
149
- }
150
- //#endregion
151
- //#region node_modules/dom-helpers/esm/transitionEnd.js
152
- function le(e) {
153
- var t = F(e, "transitionDuration") || "", n = t.indexOf("ms") === -1 ? 1e3 : 1;
154
- return parseFloat(t) * n;
155
- }
156
- function L(e, t, n) {
157
- n === void 0 && (n = 5);
158
- var r = !1, i = setTimeout(function() {
159
- r || ce(e, "transitionend", !0);
160
- }, t + n), a = I(e, "transitionend", function() {
161
- r = !0;
162
- }, { once: !0 });
163
- return function() {
164
- clearTimeout(i), a();
165
- };
166
- }
167
- function ue(e, t, n, r) {
168
- n ??= le(e) || 0;
169
- var i = L(e, n, r), a = I(e, "transitionend", t);
170
- return function() {
171
- i(), a();
172
- };
173
- }
174
- //#endregion
175
- //#region node_modules/dom-helpers/esm/activeElement.js
176
- function de(e) {
177
- e === void 0 && (e = C());
178
- try {
179
- var t = e.activeElement;
180
- return !t || !t.nodeName ? null : t;
181
- } catch {
182
- return e.body;
183
- }
184
- }
185
- //#endregion
186
- //#region node_modules/dom-helpers/esm/contains.js
187
- function fe(e, t) {
188
- if (e.contains) return e.contains(t);
189
- if (e.compareDocumentPosition) return e === t || !!(e.compareDocumentPosition(t) & 16);
190
- }
191
- //#endregion
192
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
193
- function pe() {
194
- let e = h(!0), t = h(() => e.current);
195
- return d(() => (e.current = !0, () => {
196
- e.current = !1;
197
- }), []), t.current;
198
- }
199
- //#endregion
200
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
201
- function R(e) {
202
- let t = h(e);
203
- return t.current = e, t;
204
- }
205
- //#endregion
206
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
207
- function z(e) {
208
- let t = R(e);
209
- d(() => () => t.current(), []);
210
- }
211
- //#endregion
212
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
213
- function B(e) {
214
- let t = h(null);
215
- return d(() => {
216
- t.current = e;
217
- }), t.current;
218
- }
219
- //#endregion
220
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
221
- function me(e) {
222
- let t = h(e);
223
- return d(() => {
224
- t.current = e;
225
- }, [e]), t;
226
- }
227
- //#endregion
228
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
229
- function V(e) {
230
- let t = me(e);
231
- return l(function(...e) {
232
- return t.current && t.current(...e);
233
- }, [t]);
234
- }
235
- //#endregion
236
- //#region node_modules/@restart/ui/esm/DataKey.js
237
- var he = "data-rr-ui-";
238
- function ge(e) {
239
- return `${he}${e}`;
240
- }
241
- //#endregion
242
- //#region node_modules/@restart/ui/esm/getScrollbarWidth.js
243
- function _e(e = document) {
244
- let t = e.defaultView;
245
- return Math.abs(t.innerWidth - e.documentElement.clientWidth);
246
- }
247
- //#endregion
248
- //#region node_modules/@restart/ui/esm/ModalManager.js
249
- var H = ge("modal-open"), U = class {
250
- constructor({ ownerDocument: e, handleContainerOverflow: t = !0, isRTL: n = !1 } = {}) {
251
- this.handleContainerOverflow = t, this.isRTL = n, this.modals = [], this.ownerDocument = e;
252
- }
253
- getScrollbarWidth() {
254
- return _e(this.ownerDocument);
255
- }
256
- getElement() {
257
- return (this.ownerDocument || document).body;
258
- }
259
- setModalAttributes(e) {}
260
- removeModalAttributes(e) {}
261
- setContainerStyle(e) {
262
- let t = { overflow: "hidden" }, n = this.isRTL ? "paddingLeft" : "paddingRight", r = this.getElement();
263
- e.style = {
264
- overflow: r.style.overflow,
265
- [n]: r.style[n]
266
- }, e.scrollBarWidth && (t[n] = `${parseInt(F(r, n) || "0", 10) + e.scrollBarWidth}px`), r.setAttribute(H, ""), F(r, t);
267
- }
268
- reset() {
269
- [...this.modals].forEach((e) => this.remove(e));
270
- }
271
- removeContainerStyle(e) {
272
- let t = this.getElement();
273
- t.removeAttribute(H), Object.assign(t.style, e.style);
274
- }
275
- add(e) {
276
- let t = this.modals.indexOf(e);
277
- return t !== -1 || (t = this.modals.length, this.modals.push(e), this.setModalAttributes(e), t !== 0) ? t : (this.state = {
278
- scrollBarWidth: this.getScrollbarWidth(),
279
- style: {}
280
- }, this.handleContainerOverflow && this.setContainerStyle(this.state), t);
281
- }
282
- remove(e) {
283
- let t = this.modals.indexOf(e);
284
- t !== -1 && (this.modals.splice(t, 1), !this.modals.length && this.handleContainerOverflow && this.removeContainerStyle(this.state), this.removeModalAttributes(e));
285
- }
286
- isTopModal(e) {
287
- return !!this.modals.length && this.modals[this.modals.length - 1] === e;
288
- }
289
- }, W = /* @__PURE__ */ s(v ? window : void 0);
290
- W.Provider;
291
- function ve() {
292
- return u(W);
293
- }
294
- //#endregion
295
- //#region node_modules/@restart/ui/esm/useWaitForDOMRef.js
296
- var G = (e, t) => v ? e == null ? (t || C()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
297
- function ye(e, t) {
298
- let n = ve(), [r, i] = g(() => G(e, n?.document));
299
- if (!r) {
300
- let t = G(e);
301
- t && i(t);
302
- }
303
- return d(() => {
304
- t && r && t(r);
305
- }, [t, r]), d(() => {
306
- let t = G(e);
307
- t !== r && i(t);
308
- }, [e, r]), r;
309
- }
310
- //#endregion
311
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
312
- var K = (e) => !e || typeof e == "function" ? e : (t) => {
313
- e.current = t;
314
- };
315
- function be(e, t) {
316
- let n = K(e), r = K(t);
317
- return (e) => {
318
- n && n(e), r && r(e);
319
- };
320
- }
321
- function xe(e, t) {
322
- return m(() => be(e, t), [e, t]);
323
- }
324
- //#endregion
325
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
326
- var Se = typeof global < "u" && global.navigator && global.navigator.product === "ReactNative", Ce = typeof document < "u" || Se ? p : d;
327
- //#endregion
328
- //#region node_modules/@restart/ui/esm/utils.js
329
- function we(e) {
330
- return e.code === "Escape" || e.keyCode === 27;
331
- }
332
- function Te() {
333
- let e = i.version.split(".");
334
- return {
335
- major: +e[0],
336
- minor: +e[1],
337
- patch: +e[2]
338
- };
339
- }
340
- function q(e) {
341
- if (!e || typeof e == "function") return null;
342
- let { major: t } = Te();
343
- return t >= 19 ? e.props.ref : e.ref;
344
- }
345
- //#endregion
346
- //#region node_modules/@restart/ui/esm/NoopTransition.js
347
- function Ee({ children: e, in: t, onExited: n, mountOnEnter: r, unmountOnExit: i }) {
348
- let a = h(null), s = h(t), c = V(n);
349
- d(() => {
350
- t ? s.current = !0 : c(a.current);
351
- }, [t, c]);
352
- let l = /* @__PURE__ */ o(e, { ref: xe(a, q(e)) });
353
- return t ? l : i || !s.current && r ? null : l;
354
- }
355
- //#endregion
356
- //#region node_modules/@restart/ui/esm/useRTGTransitionProps.js
357
- var De = [
358
- "onEnter",
359
- "onEntering",
360
- "onEntered",
361
- "onExit",
362
- "onExiting",
363
- "onExited",
364
- "addEndListener",
365
- "children"
366
- ];
367
- function Oe(e, t) {
368
- if (e == null) return {};
369
- var n = {};
370
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
371
- if (t.indexOf(r) >= 0) continue;
372
- n[r] = e[r];
373
- }
374
- return n;
375
- }
376
- function ke(e) {
377
- let { onEnter: t, onEntering: n, onEntered: r, onExit: i, onExiting: a, onExited: s, addEndListener: c, children: u } = e, d = Oe(e, De), f = h(null), p = xe(f, q(u)), m = (e) => (t) => {
378
- e && f.current && e(f.current, t);
379
- }, g = l(m(t), [t]), _ = l(m(n), [n]), v = l(m(r), [r]), y = l(m(i), [i]), b = l(m(a), [a]), x = l(m(s), [s]), S = l(m(c), [c]);
380
- return Object.assign({}, d, { nodeRef: f }, t && { onEnter: g }, n && { onEntering: _ }, r && { onEntered: v }, i && { onExit: y }, a && { onExiting: b }, s && { onExited: x }, c && { addEndListener: S }, { children: typeof u == "function" ? (e, t) => u(e, Object.assign({}, t, { ref: p })) : /* @__PURE__ */ o(u, { ref: p }) });
381
- }
382
- //#endregion
383
- //#region node_modules/@restart/ui/esm/RTGTransition.js
384
- var J = n(), Ae = ["component"];
385
- function je(e, t) {
386
- if (e == null) return {};
387
- var n = {};
388
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
389
- if (t.indexOf(r) >= 0) continue;
390
- n[r] = e[r];
391
- }
392
- return n;
393
- }
394
- var Me = /* @__PURE__ */ i.forwardRef((e, t) => {
395
- let { component: n } = e, r = ke(je(e, Ae));
396
- return /* @__PURE__ */ (0, J.jsx)(n, Object.assign({ ref: t }, r));
397
- });
398
- //#endregion
399
- //#region node_modules/@restart/ui/esm/ImperativeTransition.js
400
- function Ne({ in: e, onTransition: t }) {
401
- let n = h(null), r = h(!0), i = V(t);
402
- return Ce(() => {
403
- if (!n.current) return;
404
- let t = !1;
405
- return i({
406
- in: e,
407
- element: n.current,
408
- initial: r.current,
409
- isStale: () => t
410
- }), () => {
411
- t = !0;
412
- };
413
- }, [e, i]), Ce(() => (r.current = !1, () => {
414
- r.current = !0;
415
- }), []), n;
416
- }
417
- function Pe({ children: e, in: t, onExited: n, onEntered: r, transition: i }) {
418
- let [a, s] = g(!t);
419
- t && a && s(!1);
420
- let c = xe(Ne({
421
- in: !!t,
422
- onTransition: (e) => {
423
- Promise.resolve(i(e)).then(() => {
424
- e.isStale() || (e.in ? r?.(e.element, e.initial) : (s(!0), n?.(e.element)));
425
- }, (t) => {
426
- throw e.in || s(!0), t;
427
- });
428
- }
429
- }), q(e));
430
- return a && !t ? null : /* @__PURE__ */ o(e, { ref: c });
431
- }
432
- function Fe(e, t, n) {
433
- return e ? /* @__PURE__ */ (0, J.jsx)(Me, Object.assign({}, n, { component: e })) : t ? /* @__PURE__ */ (0, J.jsx)(Pe, Object.assign({}, n, { transition: t })) : /* @__PURE__ */ (0, J.jsx)(Ee, Object.assign({}, n));
434
- }
435
- //#endregion
436
- //#region node_modules/@restart/ui/esm/Modal.js
437
- var Ie = /* @__PURE__ */ "show.role.className.style.children.backdrop.keyboard.onBackdropClick.onEscapeKeyDown.transition.runTransition.backdropTransition.runBackdropTransition.autoFocus.enforceFocus.restoreFocus.restoreFocusOptions.renderDialog.renderBackdrop.manager.container.onShow.onHide.onExit.onExited.onExiting.onEnter.onEntering.onEntered".split(".");
438
- function Le(e, t) {
439
- if (e == null) return {};
440
- var n = {};
441
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
442
- if (t.indexOf(r) >= 0) continue;
443
- n[r] = e[r];
444
- }
445
- return n;
446
- }
447
- var Re;
448
- function ze(e) {
449
- return Re ||= new U({ ownerDocument: e?.document }), Re;
450
- }
451
- function Be(e) {
452
- let t = ve(), n = e || ze(t), r = h({
453
- dialog: null,
454
- backdrop: null
455
- });
456
- return Object.assign(r.current, {
457
- add: () => n.add(r.current),
458
- remove: () => n.remove(r.current),
459
- isTopModal: () => n.isTopModal(r.current),
460
- setDialogRef: l((e) => {
461
- r.current.dialog = e;
462
- }, []),
463
- setBackdropRef: l((e) => {
464
- r.current.backdrop = e;
465
- }, [])
466
- });
467
- }
468
- var Ve = /* @__PURE__ */ c((e, t) => {
469
- let { show: n = !1, role: r = "dialog", className: a, style: o, children: s, backdrop: c = !0, keyboard: l = !0, onBackdropClick: u, onEscapeKeyDown: p, transition: m, runTransition: y, backdropTransition: b, runBackdropTransition: x, autoFocus: S = !0, enforceFocus: C = !0, restoreFocus: w = !0, restoreFocusOptions: T, renderDialog: ee, renderBackdrop: te = (e) => /* @__PURE__ */ (0, J.jsx)("div", Object.assign({}, e)), manager: ne, container: E, onShow: D, onHide: O = () => {}, onExit: k, onExited: A, onExiting: re, onEnter: j, onEntering: ie, onEntered: ae } = e, oe = Le(e, Ie), M = ve(), N = ye(E), P = Be(ne), se = pe(), F = B(n), [ce, le] = g(!n), L = h(null);
470
- f(t, () => P, [P]), v && !F && n && (L.current = de(M?.document)), n && ce && le(!1);
471
- let ue = V(() => {
472
- if (P.add(), H.current = I(document, "keydown", ge), _e.current = I(document, "focus", () => setTimeout(me), !0), D && D(), S) {
473
- let e = de(P.dialog?.ownerDocument ?? M?.document);
474
- P.dialog && e && !fe(P.dialog, e) && (L.current = e, P.dialog.focus());
475
- }
476
- }), R = V(() => {
477
- if (P.remove(), H.current == null || H.current(), _e.current == null || _e.current(), w) {
478
- var e;
479
- (e = L.current) == null || e.focus == null || e.focus(T), L.current = null;
480
- }
481
- });
482
- d(() => {
483
- !n || !N || ue();
484
- }, [
485
- n,
486
- N,
487
- ue
488
- ]), d(() => {
489
- ce && R();
490
- }, [ce, R]), z(() => {
491
- R();
492
- });
493
- let me = V(() => {
494
- if (!C || !se() || !P.isTopModal()) return;
495
- let e = de(M?.document);
496
- P.dialog && e && !fe(P.dialog, e) && P.dialog.focus();
497
- }), he = V((e) => {
498
- e.target === e.currentTarget && (u?.(e), c === !0 && O());
499
- }), ge = V((e) => {
500
- l && we(e) && P.isTopModal() && (p?.(e), e.defaultPrevented || O());
501
- }), _e = h(), H = h(), U = (...e) => {
502
- le(!0), A?.(...e);
503
- };
504
- if (!N) return null;
505
- let W = Object.assign({
506
- role: r,
507
- ref: P.setDialogRef,
508
- "aria-modal": r === "dialog" ? !0 : void 0
509
- }, oe, {
510
- style: o,
511
- className: a,
512
- tabIndex: -1
513
- }), G = ee ? ee(W) : /* @__PURE__ */ (0, J.jsx)("div", Object.assign({}, W, { children: /* @__PURE__ */ i.cloneElement(s, { role: "document" }) }));
514
- G = Fe(m, y, {
515
- unmountOnExit: !0,
516
- mountOnEnter: !0,
517
- appear: !0,
518
- in: !!n,
519
- onExit: k,
520
- onExiting: re,
521
- onExited: U,
522
- onEnter: j,
523
- onEntering: ie,
524
- onEntered: ae,
525
- children: G
526
- });
527
- let K = null;
528
- return c && (K = te({
529
- ref: P.setBackdropRef,
530
- onClick: he
531
- }), K = Fe(b, x, {
532
- in: !!n,
533
- appear: !0,
534
- mountOnEnter: !0,
535
- unmountOnExit: !0,
536
- children: K
537
- })), /* @__PURE__ */ (0, J.jsx)(J.Fragment, { children: /* @__PURE__ */ _.createPortal(/* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [K, G] }), N) });
538
- });
539
- Ve.displayName = "Modal";
540
- var He = Object.assign(Ve, { Manager: U });
541
- //#endregion
542
- //#region node_modules/dom-helpers/esm/hasClass.js
543
- function Ue(e, t) {
544
- return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
545
- }
546
- //#endregion
547
- //#region node_modules/dom-helpers/esm/addClass.js
548
- function We(e, t) {
549
- e.classList ? e.classList.add(t) : Ue(e, t) || (typeof e.className == "string" ? e.className = e.className + " " + t : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + t));
550
- }
551
- //#endregion
552
- //#region node_modules/dom-helpers/esm/querySelectorAll.js
553
- var Ge = Function.prototype.bind.call(Function.prototype.call, [].slice);
554
- function Ke(e, t) {
555
- return Ge(e.querySelectorAll(t));
556
- }
557
- //#endregion
558
- //#region node_modules/dom-helpers/esm/removeClass.js
559
- function qe(e, t) {
560
- return e.replace(RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
561
- }
562
- function Je(e, t) {
563
- e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className = qe(e.className, t) : e.setAttribute("class", qe(e.className && e.className.baseVal || "", t));
564
- }
565
- //#endregion
566
- //#region node_modules/react-bootstrap/esm/BootstrapModalManager.js
567
- var Ye = {
568
- FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
569
- STICKY_CONTENT: ".sticky-top",
570
- NAVBAR_TOGGLER: ".navbar-toggler"
571
- }, Xe = class extends U {
572
- adjustAndStore(e, t, n) {
573
- let r = t.style[e];
574
- t.dataset[e] = r, F(t, { [e]: `${parseFloat(F(t, e)) + n}px` });
575
- }
576
- restore(e, t) {
577
- let n = t.dataset[e];
578
- n !== void 0 && (delete t.dataset[e], F(t, { [e]: n }));
579
- }
580
- setContainerStyle(e) {
581
- super.setContainerStyle(e);
582
- let t = this.getElement();
583
- if (We(t, "modal-open"), !e.scrollBarWidth) return;
584
- let n = this.isRTL ? "paddingLeft" : "paddingRight", r = this.isRTL ? "marginLeft" : "marginRight";
585
- Ke(t, Ye.FIXED_CONTENT).forEach((t) => this.adjustAndStore(n, t, e.scrollBarWidth)), Ke(t, Ye.STICKY_CONTENT).forEach((t) => this.adjustAndStore(r, t, -e.scrollBarWidth)), Ke(t, Ye.NAVBAR_TOGGLER).forEach((t) => this.adjustAndStore(r, t, e.scrollBarWidth));
586
- }
587
- removeContainerStyle(e) {
588
- super.removeContainerStyle(e);
589
- let t = this.getElement();
590
- Je(t, "modal-open");
591
- let n = this.isRTL ? "paddingLeft" : "paddingRight", r = this.isRTL ? "marginLeft" : "marginRight";
592
- Ke(t, Ye.FIXED_CONTENT).forEach((e) => this.restore(n, e)), Ke(t, Ye.STICKY_CONTENT).forEach((e) => this.restore(r, e)), Ke(t, Ye.NAVBAR_TOGGLER).forEach((e) => this.restore(r, e));
593
- }
594
- }, Ze;
595
- function Qe(e) {
596
- return Ze ||= new Xe(e), Ze;
597
- }
598
- //#endregion
599
- //#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
600
- function $e(e, t) {
601
- if (e == null) return {};
602
- var n = {};
603
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
604
- if (t.indexOf(r) !== -1) continue;
605
- n[r] = e[r];
606
- }
607
- return n;
608
- }
609
- //#endregion
610
- //#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
611
- function et(e, t) {
612
- return et = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
613
- return e.__proto__ = t, e;
614
- }, et(e, t);
615
- }
616
- //#endregion
617
- //#region node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
618
- function tt(e, t) {
619
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, et(e, t);
620
- }
621
- //#endregion
622
- //#region node_modules/react-is/cjs/react-is.production.min.js
623
- var nt = /* @__PURE__ */ e(((e) => {
624
- var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
625
- function b(e) {
626
- if (typeof e == "object" && e) {
627
- var t = e.$$typeof;
628
- switch (t) {
629
- case n: switch (e = e.type, e) {
630
- case l:
631
- case u:
632
- case i:
633
- case o:
634
- case a:
635
- case f: return e;
636
- default: switch (e &&= e.$$typeof, e) {
637
- case c:
638
- case d:
639
- case h:
640
- case m:
641
- case s: return e;
642
- default: return t;
643
- }
644
- }
645
- case r: return t;
646
- }
647
- }
648
- }
649
- function x(e) {
650
- return b(e) === u;
651
- }
652
- e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
653
- return x(e) || b(e) === l;
654
- }, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
655
- return b(e) === c;
656
- }, e.isContextProvider = function(e) {
657
- return b(e) === s;
658
- }, e.isElement = function(e) {
659
- return typeof e == "object" && !!e && e.$$typeof === n;
660
- }, e.isForwardRef = function(e) {
661
- return b(e) === d;
662
- }, e.isFragment = function(e) {
663
- return b(e) === i;
664
- }, e.isLazy = function(e) {
665
- return b(e) === h;
666
- }, e.isMemo = function(e) {
667
- return b(e) === m;
668
- }, e.isPortal = function(e) {
669
- return b(e) === r;
670
- }, e.isProfiler = function(e) {
671
- return b(e) === o;
672
- }, e.isStrictMode = function(e) {
673
- return b(e) === a;
674
- }, e.isSuspense = function(e) {
675
- return b(e) === f;
676
- }, e.isValidElementType = function(e) {
677
- return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
678
- }, e.typeOf = b;
679
- })), rt = /* @__PURE__ */ e(((e) => {
680
- process.env.NODE_ENV !== "production" && (function() {
681
- var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
682
- function b(e) {
683
- return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
684
- }
685
- function x(e) {
686
- if (typeof e == "object" && e) {
687
- var t = e.$$typeof;
688
- switch (t) {
689
- case n:
690
- var p = e.type;
691
- switch (p) {
692
- case l:
693
- case u:
694
- case i:
695
- case o:
696
- case a:
697
- case f: return p;
698
- default:
699
- var g = p && p.$$typeof;
700
- switch (g) {
701
- case c:
702
- case d:
703
- case h:
704
- case m:
705
- case s: return g;
706
- default: return t;
707
- }
708
- }
709
- case r: return t;
710
- }
711
- }
712
- }
713
- var S = l, C = u, w = c, T = s, ee = n, te = d, ne = i, E = h, D = m, O = r, k = o, A = a, re = f, j = !1;
714
- function ie(e) {
715
- return j || (j = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ae(e) || x(e) === l;
716
- }
717
- function ae(e) {
718
- return x(e) === u;
719
- }
720
- function oe(e) {
721
- return x(e) === c;
722
- }
723
- function M(e) {
724
- return x(e) === s;
725
- }
726
- function N(e) {
727
- return typeof e == "object" && !!e && e.$$typeof === n;
728
- }
729
- function P(e) {
730
- return x(e) === d;
731
- }
732
- function se(e) {
733
- return x(e) === i;
734
- }
735
- function F(e) {
736
- return x(e) === h;
737
- }
738
- function I(e) {
739
- return x(e) === m;
740
- }
741
- function ce(e) {
742
- return x(e) === r;
743
- }
744
- function le(e) {
745
- return x(e) === o;
746
- }
747
- function L(e) {
748
- return x(e) === a;
749
- }
750
- function ue(e) {
751
- return x(e) === f;
752
- }
753
- e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = ee, e.ForwardRef = te, e.Fragment = ne, e.Lazy = E, e.Memo = D, e.Portal = O, e.Profiler = k, e.StrictMode = A, e.Suspense = re, e.isAsyncMode = ie, e.isConcurrentMode = ae, e.isContextConsumer = oe, e.isContextProvider = M, e.isElement = N, e.isForwardRef = P, e.isFragment = se, e.isLazy = F, e.isMemo = I, e.isPortal = ce, e.isProfiler = le, e.isStrictMode = L, e.isSuspense = ue, e.isValidElementType = b, e.typeOf = x;
754
- })();
755
- })), it = /* @__PURE__ */ e(((e, t) => {
756
- process.env.NODE_ENV === "production" ? t.exports = nt() : t.exports = rt();
757
- })), at = /* @__PURE__ */ e(((e, t) => {
758
- var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
759
- function a(e) {
760
- if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
761
- return Object(e);
762
- }
763
- function o() {
764
- try {
765
- if (!Object.assign) return !1;
766
- var e = /* @__PURE__ */ new String("abc");
767
- if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") return !1;
768
- for (var t = {}, n = 0; n < 10; n++) t["_" + String.fromCharCode(n)] = n;
769
- if (Object.getOwnPropertyNames(t).map(function(e) {
770
- return t[e];
771
- }).join("") !== "0123456789") return !1;
772
- var r = {};
773
- return "abcdefghijklmnopqrst".split("").forEach(function(e) {
774
- r[e] = e;
775
- }), Object.keys(Object.assign({}, r)).join("") === "abcdefghijklmnopqrst";
776
- } catch {
777
- return !1;
778
- }
779
- }
780
- t.exports = o() ? Object.assign : function(e, t) {
781
- for (var o, s = a(e), c, l = 1; l < arguments.length; l++) {
782
- for (var u in o = Object(arguments[l]), o) r.call(o, u) && (s[u] = o[u]);
783
- if (n) {
784
- c = n(o);
785
- for (var d = 0; d < c.length; d++) i.call(o, c[d]) && (s[c[d]] = o[c[d]]);
786
- }
787
- }
788
- return s;
789
- };
790
- })), ot = /* @__PURE__ */ e(((e, t) => {
791
- t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
792
- })), st = /* @__PURE__ */ e(((e, t) => {
793
- t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
794
- })), ct = /* @__PURE__ */ e(((e, t) => {
795
- var n = function() {};
796
- if (process.env.NODE_ENV !== "production") {
797
- var r = ot(), i = {}, a = st();
798
- n = function(e) {
799
- var t = "Warning: " + e;
800
- typeof console < "u" && console.error(t);
801
- try {
802
- throw Error(t);
803
- } catch {}
804
- };
805
- }
806
- function o(e, t, o, s, c) {
807
- if (process.env.NODE_ENV !== "production") {
808
- for (var l in e) if (a(e, l)) {
809
- var u;
810
- try {
811
- if (typeof e[l] != "function") {
812
- var d = Error((s || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
813
- throw d.name = "Invariant Violation", d;
814
- }
815
- u = e[l](t, l, s, o, null, r);
816
- } catch (e) {
817
- u = e;
818
- }
819
- if (u && !(u instanceof Error) && n((s || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), u instanceof Error && !(u.message in i)) {
820
- i[u.message] = !0;
821
- var f = c ? c() : "";
822
- n("Failed " + o + " type: " + u.message + (f ?? ""));
823
- }
824
- }
825
- }
826
- }
827
- o.resetWarningCache = function() {
828
- process.env.NODE_ENV !== "production" && (i = {});
829
- }, t.exports = o;
830
- })), lt = /* @__PURE__ */ e(((e, t) => {
831
- var n = it(), r = at(), i = ot(), a = st(), o = ct(), s = function() {};
832
- process.env.NODE_ENV !== "production" && (s = function(e) {
833
- var t = "Warning: " + e;
834
- typeof console < "u" && console.error(t);
835
- try {
836
- throw Error(t);
837
- } catch {}
838
- });
839
- function c() {
840
- return null;
841
- }
842
- t.exports = function(e, t) {
843
- var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
844
- function d(e) {
845
- var t = e && (l && e[l] || e[u]);
846
- if (typeof t == "function") return t;
847
- }
848
- var f = "<<anonymous>>", p = {
849
- array: _("array"),
850
- bigint: _("bigint"),
851
- bool: _("boolean"),
852
- func: _("function"),
853
- number: _("number"),
854
- object: _("object"),
855
- string: _("string"),
856
- symbol: _("symbol"),
857
- any: v(),
858
- arrayOf: y,
859
- element: b(),
860
- elementType: x(),
861
- instanceOf: S,
862
- node: ee(),
863
- objectOf: w,
864
- oneOf: C,
865
- oneOfType: T,
866
- shape: ne,
867
- exact: E
868
- };
869
- function m(e, t) {
870
- return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
871
- }
872
- function h(e, t) {
873
- this.message = e, this.data = t && typeof t == "object" ? t : {}, this.stack = "";
874
- }
875
- h.prototype = Error.prototype;
876
- function g(e) {
877
- if (process.env.NODE_ENV !== "production") var n = {}, r = 0;
878
- function a(a, o, c, l, u, d, p) {
879
- if (l ||= f, d ||= c, p !== i) {
880
- if (t) {
881
- var m = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
882
- throw m.name = "Invariant Violation", m;
883
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
884
- var g = l + ":" + c;
885
- !n[g] && r < 3 && (s("You are manually calling a React.PropTypes validation function for the `" + d + "` prop on `" + l + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), n[g] = !0, r++);
886
- }
887
- }
888
- return o[c] == null ? a ? o[c] === null ? new h("The " + u + " `" + d + "` is marked as required " + ("in `" + l + "`, but its value is `null`.")) : new h("The " + u + " `" + d + "` is marked as required in " + ("`" + l + "`, but its value is `undefined`.")) : null : e(o, c, l, u, d);
889
- }
890
- var o = a.bind(null, !1);
891
- return o.isRequired = a.bind(null, !0), o;
892
- }
893
- function _(e) {
894
- function t(t, n, r, i, a, o) {
895
- var s = t[n];
896
- if (k(s) !== e) {
897
- var c = A(s);
898
- return new h("Invalid " + i + " `" + a + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected ") + ("`" + e + "`."), { expectedType: e });
899
- }
900
- return null;
901
- }
902
- return g(t);
903
- }
904
- function v() {
905
- return g(c);
906
- }
907
- function y(e) {
908
- function t(t, n, r, a, o) {
909
- if (typeof e != "function") return new h("Property `" + o + "` of component `" + r + "` has invalid PropType notation inside arrayOf.");
910
- var s = t[n];
911
- if (!Array.isArray(s)) {
912
- var c = k(s);
913
- return new h("Invalid " + a + " `" + o + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected an array."));
914
- }
915
- for (var l = 0; l < s.length; l++) {
916
- var u = e(s, l, r, a, o + "[" + l + "]", i);
917
- if (u instanceof Error) return u;
918
- }
919
- return null;
920
- }
921
- return g(t);
922
- }
923
- function b() {
924
- function t(t, n, r, i, a) {
925
- var o = t[n];
926
- if (!e(o)) {
927
- var s = k(o);
928
- return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement."));
929
- }
930
- return null;
931
- }
932
- return g(t);
933
- }
934
- function x() {
935
- function e(e, t, r, i, a) {
936
- var o = e[t];
937
- if (!n.isValidElementType(o)) {
938
- var s = k(o);
939
- return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement type."));
940
- }
941
- return null;
942
- }
943
- return g(e);
944
- }
945
- function S(e) {
946
- function t(t, n, r, i, a) {
947
- if (!(t[n] instanceof e)) {
948
- var o = e.name || f, s = j(t[n]);
949
- return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected ") + ("instance of `" + o + "`."));
950
- }
951
- return null;
952
- }
953
- return g(t);
954
- }
955
- function C(e) {
956
- if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), c;
957
- function t(t, n, r, i, a) {
958
- for (var o = t[n], s = 0; s < e.length; s++) if (m(o, e[s])) return null;
959
- var c = JSON.stringify(e, function(e, t) {
960
- return A(t) === "symbol" ? String(t) : t;
961
- });
962
- return new h("Invalid " + i + " `" + a + "` of value `" + String(o) + "` " + ("supplied to `" + r + "`, expected one of " + c + "."));
963
- }
964
- return g(t);
965
- }
966
- function w(e) {
967
- function t(t, n, r, o, s) {
968
- if (typeof e != "function") return new h("Property `" + s + "` of component `" + r + "` has invalid PropType notation inside objectOf.");
969
- var c = t[n], l = k(c);
970
- if (l !== "object") return new h("Invalid " + o + " `" + s + "` of type " + ("`" + l + "` supplied to `" + r + "`, expected an object."));
971
- for (var u in c) if (a(c, u)) {
972
- var d = e(c, u, r, o, s + "." + u, i);
973
- if (d instanceof Error) return d;
974
- }
975
- return null;
976
- }
977
- return g(t);
978
- }
979
- function T(e) {
980
- if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), c;
981
- for (var t = 0; t < e.length; t++) {
982
- var n = e[t];
983
- if (typeof n != "function") return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(n) + " at index " + t + "."), c;
984
- }
985
- function r(t, n, r, o, s) {
986
- for (var c = [], l = 0; l < e.length; l++) {
987
- var u = e[l], d = u(t, n, r, o, s, i);
988
- if (d == null) return null;
989
- d.data && a(d.data, "expectedType") && c.push(d.data.expectedType);
990
- }
991
- var f = c.length > 0 ? ", expected one of type [" + c.join(", ") + "]" : "";
992
- return new h("Invalid " + o + " `" + s + "` supplied to " + ("`" + r + "`" + f + "."));
993
- }
994
- return g(r);
995
- }
996
- function ee() {
997
- function e(e, t, n, r, i) {
998
- return D(e[t]) ? null : new h("Invalid " + r + " `" + i + "` supplied to " + ("`" + n + "`, expected a ReactNode."));
999
- }
1000
- return g(e);
1001
- }
1002
- function te(e, t, n, r, i) {
1003
- return new h((e || "React class") + ": " + t + " type `" + n + "." + r + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + i + "`.");
1004
- }
1005
- function ne(e) {
1006
- function t(t, n, r, a, o) {
1007
- var s = t[n], c = k(s);
1008
- if (c !== "object") return new h("Invalid " + a + " `" + o + "` of type `" + c + "` " + ("supplied to `" + r + "`, expected `object`."));
1009
- for (var l in e) {
1010
- var u = e[l];
1011
- if (typeof u != "function") return te(r, a, o, l, A(u));
1012
- var d = u(s, l, r, a, o + "." + l, i);
1013
- if (d) return d;
1014
- }
1015
- return null;
1016
- }
1017
- return g(t);
1018
- }
1019
- function E(e) {
1020
- function t(t, n, o, s, c) {
1021
- var l = t[n], u = k(l);
1022
- if (u !== "object") return new h("Invalid " + s + " `" + c + "` of type `" + u + "` " + ("supplied to `" + o + "`, expected `object`."));
1023
- for (var d in r({}, t[n], e)) {
1024
- var f = e[d];
1025
- if (a(e, d) && typeof f != "function") return te(o, s, c, d, A(f));
1026
- if (!f) return new h("Invalid " + s + " `" + c + "` key `" + d + "` supplied to `" + o + "`.\nBad object: " + JSON.stringify(t[n], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e), null, " "));
1027
- var p = f(l, d, o, s, c + "." + d, i);
1028
- if (p) return p;
1029
- }
1030
- return null;
1031
- }
1032
- return g(t);
1033
- }
1034
- function D(t) {
1035
- switch (typeof t) {
1036
- case "number":
1037
- case "string":
1038
- case "undefined": return !0;
1039
- case "boolean": return !t;
1040
- case "object":
1041
- if (Array.isArray(t)) return t.every(D);
1042
- if (t === null || e(t)) return !0;
1043
- var n = d(t);
1044
- if (n) {
1045
- var r = n.call(t), i;
1046
- if (n !== t.entries) {
1047
- for (; !(i = r.next()).done;) if (!D(i.value)) return !1;
1048
- } else for (; !(i = r.next()).done;) {
1049
- var a = i.value;
1050
- if (a && !D(a[1])) return !1;
1051
- }
1052
- } else return !1;
1053
- return !0;
1054
- default: return !1;
1055
- }
1056
- }
1057
- function O(e, t) {
1058
- return e === "symbol" ? !0 : t ? t["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && t instanceof Symbol : !1;
1059
- }
1060
- function k(e) {
1061
- var t = typeof e;
1062
- return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : O(t, e) ? "symbol" : t;
1063
- }
1064
- function A(e) {
1065
- if (e == null) return "" + e;
1066
- var t = k(e);
1067
- if (t === "object") {
1068
- if (e instanceof Date) return "date";
1069
- if (e instanceof RegExp) return "regexp";
1070
- }
1071
- return t;
1072
- }
1073
- function re(e) {
1074
- var t = A(e);
1075
- switch (t) {
1076
- case "array":
1077
- case "object": return "an " + t;
1078
- case "boolean":
1079
- case "date":
1080
- case "regexp": return "a " + t;
1081
- default: return t;
1082
- }
1083
- }
1084
- function j(e) {
1085
- return !e.constructor || !e.constructor.name ? f : e.constructor.name;
1086
- }
1087
- return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
1088
- };
1089
- })), ut = /* @__PURE__ */ e(((e, t) => {
1090
- var n = ot();
1091
- function r() {}
1092
- function i() {}
1093
- i.resetWarningCache = r, t.exports = function() {
1094
- function e(e, t, r, i, a, o) {
1095
- if (o !== n) {
1096
- var s = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
1097
- throw s.name = "Invariant Violation", s;
1098
- }
1099
- }
1100
- e.isRequired = e;
1101
- function t() {
1102
- return e;
1103
- }
1104
- var a = {
1105
- array: e,
1106
- bigint: e,
1107
- bool: e,
1108
- func: e,
1109
- number: e,
1110
- object: e,
1111
- string: e,
1112
- symbol: e,
1113
- any: e,
1114
- arrayOf: t,
1115
- element: e,
1116
- elementType: e,
1117
- instanceOf: t,
1118
- node: e,
1119
- objectOf: t,
1120
- oneOf: t,
1121
- oneOfType: t,
1122
- shape: t,
1123
- exact: t,
1124
- checkPropTypes: i,
1125
- resetWarningCache: r
1126
- };
1127
- return a.PropTypes = a, a;
1128
- };
1129
- })), dt = /* @__PURE__ */ e(((e, t) => {
1130
- if (process.env.NODE_ENV !== "production") {
1131
- var n = it();
1132
- t.exports = lt()(n.isElement, !0);
1133
- } else t.exports = ut()();
1134
- })), ft = { disabled: !1 }, Y = /* @__PURE__ */ t(dt()), pt = process.env.NODE_ENV === "production" ? null : Y.default.oneOfType([Y.default.number, Y.default.shape({
1135
- enter: Y.default.number,
1136
- exit: Y.default.number,
1137
- appear: Y.default.number
1138
- }).isRequired]);
1139
- process.env.NODE_ENV === "production" || Y.default.oneOfType([
1140
- Y.default.string,
1141
- Y.default.shape({
1142
- enter: Y.default.string,
1143
- exit: Y.default.string,
1144
- active: Y.default.string
1145
- }),
1146
- Y.default.shape({
1147
- enter: Y.default.string,
1148
- enterDone: Y.default.string,
1149
- enterActive: Y.default.string,
1150
- exit: Y.default.string,
1151
- exitDone: Y.default.string,
1152
- exitActive: Y.default.string
1153
- })
1154
- ]);
1155
- //#endregion
1156
- //#region node_modules/react-transition-group/esm/TransitionGroupContext.js
1157
- var mt = a.createContext(null), ht = function(e) {
1158
- return e.scrollTop;
1159
- }, gt = "unmounted", _t = "exited", vt = "entering", yt = "entered", bt = "exiting", X = /* @__PURE__ */ function(e) {
1160
- tt(t, e);
1161
- function t(t, n) {
1162
- var r = e.call(this, t, n) || this, i = n, a = i && !i.isMounting ? t.enter : t.appear, o;
1163
- return r.appearStatus = null, t.in ? a ? (o = _t, r.appearStatus = vt) : o = yt : o = t.unmountOnExit || t.mountOnEnter ? gt : _t, r.state = { status: o }, r.nextCallback = null, r;
1164
- }
1165
- t.getDerivedStateFromProps = function(e, t) {
1166
- return e.in && t.status === "unmounted" ? { status: _t } : null;
1167
- };
1168
- var n = t.prototype;
1169
- return n.componentDidMount = function() {
1170
- this.updateStatus(!0, this.appearStatus);
1171
- }, n.componentDidUpdate = function(e) {
1172
- var t = null;
1173
- if (e !== this.props) {
1174
- var n = this.state.status;
1175
- this.props.in ? n !== "entering" && n !== "entered" && (t = vt) : (n === "entering" || n === "entered") && (t = bt);
1176
- }
1177
- this.updateStatus(!1, t);
1178
- }, n.componentWillUnmount = function() {
1179
- this.cancelNextCallback();
1180
- }, n.getTimeouts = function() {
1181
- var e = this.props.timeout, t = n = r = e, n, r;
1182
- return e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear === void 0 ? n : e.appear), {
1183
- exit: t,
1184
- enter: n,
1185
- appear: r
1186
- };
1187
- }, n.updateStatus = function(e, t) {
1188
- if (e === void 0 && (e = !1), t !== null) if (this.cancelNextCallback(), t === "entering") {
1189
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
1190
- var n = this.props.nodeRef ? this.props.nodeRef.current : _.findDOMNode(this);
1191
- n && ht(n);
1192
- }
1193
- this.performEnter(e);
1194
- } else this.performExit();
1195
- else this.props.unmountOnExit && this.state.status === "exited" && this.setState({ status: gt });
1196
- }, n.performEnter = function(e) {
1197
- var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, i = this.props.nodeRef ? [r] : [_.findDOMNode(this), r], a = i[0], o = i[1], s = this.getTimeouts(), c = r ? s.appear : s.enter;
1198
- if (!e && !n || ft.disabled) {
1199
- this.safeSetState({ status: yt }, function() {
1200
- t.props.onEntered(a);
1201
- });
1202
- return;
1203
- }
1204
- this.props.onEnter(a, o), this.safeSetState({ status: vt }, function() {
1205
- t.props.onEntering(a, o), t.onTransitionEnd(c, function() {
1206
- t.safeSetState({ status: yt }, function() {
1207
- t.props.onEntered(a, o);
1208
- });
1209
- });
1210
- });
1211
- }, n.performExit = function() {
1212
- var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : _.findDOMNode(this);
1213
- if (!t || ft.disabled) {
1214
- this.safeSetState({ status: _t }, function() {
1215
- e.props.onExited(r);
1216
- });
1217
- return;
1218
- }
1219
- this.props.onExit(r), this.safeSetState({ status: bt }, function() {
1220
- e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
1221
- e.safeSetState({ status: _t }, function() {
1222
- e.props.onExited(r);
1223
- });
1224
- });
1225
- });
1226
- }, n.cancelNextCallback = function() {
1227
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
1228
- }, n.safeSetState = function(e, t) {
1229
- t = this.setNextCallback(t), this.setState(e, t);
1230
- }, n.setNextCallback = function(e) {
1231
- var t = this, n = !0;
1232
- return this.nextCallback = function(r) {
1233
- n && (n = !1, t.nextCallback = null, e(r));
1234
- }, this.nextCallback.cancel = function() {
1235
- n = !1;
1236
- }, this.nextCallback;
1237
- }, n.onTransitionEnd = function(e, t) {
1238
- this.setNextCallback(t);
1239
- var n = this.props.nodeRef ? this.props.nodeRef.current : _.findDOMNode(this), r = e == null && !this.props.addEndListener;
1240
- if (!n || r) {
1241
- setTimeout(this.nextCallback, 0);
1242
- return;
1243
- }
1244
- if (this.props.addEndListener) {
1245
- var i = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], a = i[0], o = i[1];
1246
- this.props.addEndListener(a, o);
1247
- }
1248
- e != null && setTimeout(this.nextCallback, e);
1249
- }, n.render = function() {
1250
- var e = this.state.status;
1251
- if (e === "unmounted") return null;
1252
- var t = this.props, n = t.children;
1253
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
1254
- var r = $e(t, [
1255
- "children",
1256
- "in",
1257
- "mountOnEnter",
1258
- "unmountOnExit",
1259
- "appear",
1260
- "enter",
1261
- "exit",
1262
- "timeout",
1263
- "addEndListener",
1264
- "onEnter",
1265
- "onEntering",
1266
- "onEntered",
1267
- "onExit",
1268
- "onExiting",
1269
- "onExited",
1270
- "nodeRef"
1271
- ]);
1272
- return /* @__PURE__ */ a.createElement(mt.Provider, { value: null }, typeof n == "function" ? n(e, r) : a.cloneElement(a.Children.only(n), r));
1273
- }, t;
1274
- }(a.Component);
1275
- X.contextType = mt, X.propTypes = process.env.NODE_ENV === "production" ? {} : {
1276
- nodeRef: Y.default.shape({ current: typeof Element > "u" ? Y.default.any : function(e, t, n, r, i, a) {
1277
- var o = e[t];
1278
- return Y.default.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(e, t, n, r, i, a);
1279
- } }),
1280
- children: Y.default.oneOfType([Y.default.func.isRequired, Y.default.element.isRequired]).isRequired,
1281
- in: Y.default.bool,
1282
- mountOnEnter: Y.default.bool,
1283
- unmountOnExit: Y.default.bool,
1284
- appear: Y.default.bool,
1285
- enter: Y.default.bool,
1286
- exit: Y.default.bool,
1287
- timeout: function(e) {
1288
- var t = pt;
1289
- e.addEndListener || (t = t.isRequired);
1290
- var n = [...arguments].slice(1);
1291
- return t.apply(void 0, [e].concat(n));
1292
- },
1293
- addEndListener: Y.default.func,
1294
- onEnter: Y.default.func,
1295
- onEntering: Y.default.func,
1296
- onEntered: Y.default.func,
1297
- onExit: Y.default.func,
1298
- onExiting: Y.default.func,
1299
- onExited: Y.default.func
1300
- };
1301
- function Z() {}
1302
- X.defaultProps = {
1303
- in: !1,
1304
- mountOnEnter: !1,
1305
- unmountOnExit: !1,
1306
- appear: !1,
1307
- enter: !0,
1308
- exit: !0,
1309
- onEnter: Z,
1310
- onEntering: Z,
1311
- onEntered: Z,
1312
- onExit: Z,
1313
- onExiting: Z,
1314
- onExited: Z
1315
- }, X.UNMOUNTED = gt, X.EXITED = _t, X.ENTERING = vt, X.ENTERED = yt, X.EXITING = bt;
1316
- //#endregion
1317
- //#region node_modules/react-bootstrap/esm/transitionEndListener.js
1318
- function xt(e, t) {
1319
- let n = F(e, t) || "", r = n.indexOf("ms") === -1 ? 1e3 : 1;
1320
- return parseFloat(n) * r;
1321
- }
1322
- function St(e, t) {
1323
- let n = ue(e, (r) => {
1324
- r.target === e && (n(), t(r));
1325
- }, xt(e, "transitionDuration") + xt(e, "transitionDelay"));
1326
- }
1327
- //#endregion
1328
- //#region node_modules/react-bootstrap/esm/triggerBrowserReflow.js
1329
- function Ct(e) {
1330
- e.offsetHeight;
1331
- }
1332
- //#endregion
1333
- //#region node_modules/react-bootstrap/esm/safeFindDOMNode.js
1334
- function wt(e) {
1335
- return e && "setState" in e ? _.findDOMNode(e) : e ?? null;
1336
- }
1337
- //#endregion
1338
- //#region node_modules/react-bootstrap/esm/TransitionWrapper.js
1339
- var Tt = /* @__PURE__ */ a.forwardRef(({ onEnter: e, onEntering: t, onEntered: n, onExit: r, onExiting: i, onExited: o, addEndListener: s, children: c, childRef: u, ...d }, f) => {
1340
- let p = h(null), m = k(p, u), g = (e) => {
1341
- m(wt(e));
1342
- }, _ = (e) => (t) => {
1343
- e && p.current && e(p.current, t);
1344
- }, v = l(_(e), [e]), y = l(_(t), [t]), b = l(_(n), [n]), x = l(_(r), [r]), S = l(_(i), [i]), C = l(_(o), [o]), w = l(_(s), [s]);
1345
- return /* @__PURE__ */ (0, J.jsx)(X, {
1346
- ref: f,
1347
- ...d,
1348
- onEnter: v,
1349
- onEntered: b,
1350
- onEntering: y,
1351
- onExit: x,
1352
- onExited: C,
1353
- onExiting: S,
1354
- addEndListener: w,
1355
- nodeRef: p,
1356
- children: typeof c == "function" ? (e, t) => c(e, {
1357
- ...t,
1358
- ref: g
1359
- }) : /* @__PURE__ */ a.cloneElement(c, { ref: g })
1360
- });
1361
- });
1362
- Tt.displayName = "TransitionWrapper";
1363
- //#endregion
1364
- //#region node_modules/react-bootstrap/esm/Fade.js
1365
- var Q = /* @__PURE__ */ t(r()), Et = {
1366
- [vt]: "show",
1367
- [yt]: "show"
1368
- }, Dt = /* @__PURE__ */ i.forwardRef(({ className: e, children: t, transitionClasses: n = {}, onEnter: r, ...a }, o) => {
1369
- let s = {
1370
- in: !1,
1371
- timeout: 300,
1372
- mountOnEnter: !1,
1373
- unmountOnExit: !1,
1374
- appear: !1,
1375
- ...a
1376
- }, c = l((e, t) => {
1377
- Ct(e), r?.(e, t);
1378
- }, [r]);
1379
- return /* @__PURE__ */ (0, J.jsx)(Tt, {
1380
- ref: o,
1381
- addEndListener: St,
1382
- ...s,
1383
- onEnter: c,
1384
- childRef: q(t),
1385
- children: (r, a) => /* @__PURE__ */ i.cloneElement(t, {
1386
- ...a,
1387
- className: (0, Q.default)("fade", e, t.props.className, Et[r], n[r])
1388
- })
1389
- });
1390
- });
1391
- Dt.displayName = "Fade";
1392
- var Ot = /* @__PURE__ */ i.createContext({
1393
- prefixes: {},
1394
- breakpoints: [
1395
- "xxl",
1396
- "xl",
1397
- "lg",
1398
- "md",
1399
- "sm",
1400
- "xs"
1401
- ],
1402
- minBreakpoint: "xs"
1403
- }), { Consumer: kt, Provider: At } = Ot;
1404
- function $(e, t) {
1405
- let { prefixes: n } = u(Ot);
1406
- return e || n[t] || t;
1407
- }
1408
- function jt() {
1409
- let { dir: e } = u(Ot);
1410
- return e === "rtl";
1411
- }
1412
- //#endregion
1413
- //#region node_modules/react-bootstrap/esm/ModalBody.js
1414
- var Mt = /* @__PURE__ */ i.forwardRef(({ className: e, bsPrefix: t, as: n = "div", ...r }, i) => (t = $(t, "modal-body"), /* @__PURE__ */ (0, J.jsx)(n, {
1415
- ref: i,
1416
- className: (0, Q.default)(e, t),
1417
- ...r
1418
- })));
1419
- Mt.displayName = "ModalBody";
1420
- //#endregion
1421
- //#region node_modules/react-bootstrap/esm/ModalContext.js
1422
- var Nt = /* @__PURE__ */ i.createContext({ onHide() {} }), Pt = /* @__PURE__ */ i.forwardRef(({ bsPrefix: e, className: t, contentClassName: n, centered: r, size: i, fullscreen: a, children: o, scrollable: s, ...c }, l) => {
1423
- e = $(e, "modal");
1424
- let u = `${e}-dialog`, d = typeof a == "string" ? `${e}-fullscreen-${a}` : `${e}-fullscreen`;
1425
- return /* @__PURE__ */ (0, J.jsx)("div", {
1426
- ...c,
1427
- ref: l,
1428
- className: (0, Q.default)(u, t, i && `${e}-${i}`, r && `${u}-centered`, s && `${u}-scrollable`, a && d),
1429
- children: /* @__PURE__ */ (0, J.jsx)("div", {
1430
- className: (0, Q.default)(`${e}-content`, n),
1431
- children: o
1432
- })
1433
- });
1434
- });
1435
- Pt.displayName = "ModalDialog";
1436
- //#endregion
1437
- //#region node_modules/react-bootstrap/esm/ModalFooter.js
1438
- var Ft = /* @__PURE__ */ i.forwardRef(({ className: e, bsPrefix: t, as: n = "div", ...r }, i) => (t = $(t, "modal-footer"), /* @__PURE__ */ (0, J.jsx)(n, {
1439
- ref: i,
1440
- className: (0, Q.default)(e, t),
1441
- ...r
1442
- })));
1443
- Ft.displayName = "ModalFooter";
1444
- //#endregion
1445
- //#region node_modules/react-bootstrap/esm/CloseButton.js
1446
- var It = {
1447
- "aria-label": Y.default.string,
1448
- onClick: Y.default.func,
1449
- variant: Y.default.oneOf(["white"])
1450
- }, Lt = /* @__PURE__ */ i.forwardRef(({ className: e, variant: t, "aria-label": n = "Close", ...r }, i) => /* @__PURE__ */ (0, J.jsx)("button", {
1451
- ref: i,
1452
- type: "button",
1453
- className: (0, Q.default)("btn-close", t && `btn-close-${t}`, e),
1454
- "aria-label": n,
1455
- ...r
1456
- }));
1457
- Lt.displayName = "CloseButton", Lt.propTypes = It;
1458
- //#endregion
1459
- //#region node_modules/react-bootstrap/esm/AbstractModalHeader.js
1460
- var Rt = /* @__PURE__ */ i.forwardRef(({ closeLabel: e = "Close", closeVariant: t, closeButton: n = !1, onHide: r, children: i, ...a }, o) => {
1461
- let s = u(Nt), c = E(() => {
1462
- s?.onHide(), r?.();
1463
- });
1464
- return /* @__PURE__ */ (0, J.jsxs)("div", {
1465
- ref: o,
1466
- ...a,
1467
- children: [i, n && /* @__PURE__ */ (0, J.jsx)(Lt, {
1468
- "aria-label": e,
1469
- variant: t,
1470
- onClick: c
1471
- })]
1472
- });
1473
- });
1474
- Rt.displayName = "AbstractModalHeader";
1475
- //#endregion
1476
- //#region node_modules/react-bootstrap/esm/ModalHeader.js
1477
- var zt = /* @__PURE__ */ i.forwardRef(({ bsPrefix: e, className: t, closeLabel: n = "Close", closeButton: r = !1, ...i }, a) => (e = $(e, "modal-header"), /* @__PURE__ */ (0, J.jsx)(Rt, {
1478
- ref: a,
1479
- ...i,
1480
- className: (0, Q.default)(t, e),
1481
- closeLabel: n,
1482
- closeButton: r
1483
- })));
1484
- zt.displayName = "ModalHeader";
1485
- //#endregion
1486
- //#region node_modules/react-bootstrap/esm/ModalTitle.js
1487
- var Bt = ((e) => /* @__PURE__ */ i.forwardRef((t, n) => /* @__PURE__ */ (0, J.jsx)("div", {
1488
- ...t,
1489
- ref: n,
1490
- className: (0, Q.default)(t.className, e)
1491
- })))("h4"), Vt = /* @__PURE__ */ i.forwardRef(({ className: e, bsPrefix: t, as: n = Bt, ...r }, i) => (t = $(t, "modal-title"), /* @__PURE__ */ (0, J.jsx)(n, {
1492
- ref: i,
1493
- className: (0, Q.default)(e, t),
1494
- ...r
1495
- })));
1496
- Vt.displayName = "ModalTitle";
1497
- //#endregion
1498
- //#region node_modules/react-bootstrap/esm/Modal.js
1499
- function Ht(e) {
1500
- return /* @__PURE__ */ (0, J.jsx)(Dt, {
1501
- ...e,
1502
- timeout: null
1503
- });
1504
- }
1505
- function Ut(e) {
1506
- return /* @__PURE__ */ (0, J.jsx)(Dt, {
1507
- ...e,
1508
- timeout: null
1509
- });
1510
- }
1511
- var Wt = /* @__PURE__ */ i.forwardRef(({ bsPrefix: e, className: t, style: n, dialogClassName: r, contentClassName: i, children: a, dialogAs: o = Pt, "data-bs-theme": s, "aria-labelledby": c, "aria-describedby": u, "aria-label": d, show: f = !1, animation: p = !0, backdrop: _ = !0, keyboard: y = !0, onEscapeKeyDown: b, onShow: x, onHide: T, container: ne, autoFocus: D = !0, enforceFocus: O = !0, restoreFocus: A = !0, restoreFocusOptions: j, onEntered: ie, onExit: ae, onExiting: oe, onEnter: M, onEntering: N, onExited: P, backdropClassName: se, manager: F, ...I }, ce) => {
1512
- let [le, L] = g({}), [de, fe] = g(!1), pe = h(!1), R = h(!1), z = h(null), [B, me] = te(), V = k(ce, me), he = E(T), ge = jt();
1513
- e = $(e, "modal");
1514
- let _e = m(() => ({ onHide: he }), [he]);
1515
- function H() {
1516
- return F || Qe({ isRTL: ge });
1517
- }
1518
- function U(e) {
1519
- if (!v) return;
1520
- let t = H().getScrollbarWidth() > 0, n = e.scrollHeight > C(e).documentElement.clientHeight;
1521
- L({
1522
- paddingRight: t && !n ? ee() : void 0,
1523
- paddingLeft: !t && n ? ee() : void 0
1524
- });
1525
- }
1526
- let W = E(() => {
1527
- B && U(B.dialog);
1528
- });
1529
- re(() => {
1530
- w(window, "resize", W), z.current == null || z.current();
1531
- });
1532
- let ve = () => {
1533
- pe.current = !0;
1534
- }, G = (e) => {
1535
- pe.current && B && e.target === B.dialog && (R.current = !0), pe.current = !1;
1536
- }, ye = () => {
1537
- fe(!0), z.current = ue(B.dialog, () => {
1538
- fe(!1);
1539
- });
1540
- }, K = (e) => {
1541
- e.target === e.currentTarget && ye();
1542
- }, be = (e) => {
1543
- if (_ === "static") {
1544
- K(e);
1545
- return;
1546
- }
1547
- if (R.current || e.target !== e.currentTarget) {
1548
- R.current = !1;
1549
- return;
1550
- }
1551
- T?.();
1552
- }, xe = (e) => {
1553
- y ? b?.(e) : (e.preventDefault(), _ === "static" && ye());
1554
- }, Se = (e, t) => {
1555
- e && U(e), M?.(e, t);
1556
- }, Ce = (e) => {
1557
- z.current == null || z.current(), ae?.(e);
1558
- }, we = (e, t) => {
1559
- N?.(e, t), S(window, "resize", W);
1560
- }, Te = (e) => {
1561
- e && (e.style.display = ""), P?.(e), w(window, "resize", W);
1562
- }, q = l((t) => /* @__PURE__ */ (0, J.jsx)("div", {
1563
- ...t,
1564
- className: (0, Q.default)(`${e}-backdrop`, se, !p && "show")
1565
- }), [
1566
- p,
1567
- se,
1568
- e
1569
- ]), Ee = {
1570
- ...n,
1571
- ...le
1572
- };
1573
- return Ee.display = "block", /* @__PURE__ */ (0, J.jsx)(Nt.Provider, {
1574
- value: _e,
1575
- children: /* @__PURE__ */ (0, J.jsx)(He, {
1576
- show: f,
1577
- ref: V,
1578
- backdrop: _,
1579
- container: ne,
1580
- keyboard: !0,
1581
- autoFocus: D,
1582
- enforceFocus: O,
1583
- restoreFocus: A,
1584
- restoreFocusOptions: j,
1585
- onEscapeKeyDown: xe,
1586
- onShow: x,
1587
- onHide: T,
1588
- onEnter: Se,
1589
- onEntering: we,
1590
- onEntered: ie,
1591
- onExit: Ce,
1592
- onExiting: oe,
1593
- onExited: Te,
1594
- manager: H(),
1595
- transition: p ? Ht : void 0,
1596
- backdropTransition: p ? Ut : void 0,
1597
- renderBackdrop: q,
1598
- renderDialog: (n) => /* @__PURE__ */ (0, J.jsx)("div", {
1599
- role: "dialog",
1600
- ...n,
1601
- style: Ee,
1602
- className: (0, Q.default)(t, e, de && `${e}-static`, !p && "show"),
1603
- onClick: _ ? be : void 0,
1604
- onMouseUp: G,
1605
- "data-bs-theme": s,
1606
- "aria-label": d,
1607
- "aria-labelledby": c,
1608
- "aria-describedby": u,
1609
- children: /* @__PURE__ */ (0, J.jsx)(o, {
1610
- ...I,
1611
- onMouseDown: ve,
1612
- className: r,
1613
- contentClassName: i,
1614
- children: a
1615
- })
1616
- })
1617
- })
1618
- });
1619
- });
1620
- Wt.displayName = "Modal";
1621
- var Gt = Object.assign(Wt, {
1622
- Body: Mt,
1623
- Header: zt,
1624
- Title: Vt,
1625
- Footer: Ft,
1626
- Dialog: Pt,
1627
- TRANSITION_DURATION: 300,
1628
- BACKDROP_TRANSITION_DURATION: 150
1629
- });
1630
- //#endregion
1631
- export { re as _, wt as a, C as b, Fe as c, xe as d, ye as f, I as g, fe as h, Dt as i, q as l, pe as m, $ as n, dt as o, V as p, jt as r, Ue as s, Gt as t, we as u, k as v, E as y };