@kroyd/ui-core 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,2221 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const qe = globalThis, yt = qe.ShadowRoot && (qe.ShadyCSS === void 0 || qe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), sr = /* @__PURE__ */ new WeakMap();
7
+ let gr = class {
8
+ constructor(t, n, o) {
9
+ if (this._$cssResult$ = !0, o !== _t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = t, this.t = n;
11
+ }
12
+ get styleSheet() {
13
+ let t = this.o;
14
+ const n = this.t;
15
+ if (yt && t === void 0) {
16
+ const o = n !== void 0 && n.length === 1;
17
+ o && (t = sr.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && sr.set(n, t));
18
+ }
19
+ return t;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ };
25
+ const kn = (c) => new gr(typeof c == "string" ? c : c + "", void 0, _t), xn = (c, ...t) => {
26
+ const n = c.length === 1 ? c[0] : t.reduce((o, a, l) => o + ((d) => {
27
+ if (d._$cssResult$ === !0) return d.cssText;
28
+ if (typeof d == "number") return d;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + d + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(a) + c[l + 1], c[0]);
31
+ return new gr(n, c, _t);
32
+ }, jn = (c, t) => {
33
+ if (yt) c.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
34
+ else for (const n of t) {
35
+ const o = document.createElement("style"), a = qe.litNonce;
36
+ a !== void 0 && o.setAttribute("nonce", a), o.textContent = n.cssText, c.appendChild(o);
37
+ }
38
+ }, ar = yt ? (c) => c : (c) => c instanceof CSSStyleSheet ? ((t) => {
39
+ let n = "";
40
+ for (const o of t.cssRules) n += o.cssText;
41
+ return kn(n);
42
+ })(c) : c;
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */
48
+ const { is: Mn, defineProperty: Dn, getOwnPropertyDescriptor: Un, getOwnPropertyNames: In, getOwnPropertySymbols: Nn, getPrototypeOf: Ln } = Object, Z = globalThis, ur = Z.trustedTypes, Fn = ur ? ur.emptyScript : "", lt = Z.reactiveElementPolyfillSupport, we = (c, t) => c, Ke = { toAttribute(c, t) {
49
+ switch (t) {
50
+ case Boolean:
51
+ c = c ? Fn : null;
52
+ break;
53
+ case Object:
54
+ case Array:
55
+ c = c == null ? c : JSON.stringify(c);
56
+ }
57
+ return c;
58
+ }, fromAttribute(c, t) {
59
+ let n = c;
60
+ switch (t) {
61
+ case Boolean:
62
+ n = c !== null;
63
+ break;
64
+ case Number:
65
+ n = c === null ? null : Number(c);
66
+ break;
67
+ case Object:
68
+ case Array:
69
+ try {
70
+ n = JSON.parse(c);
71
+ } catch {
72
+ n = null;
73
+ }
74
+ }
75
+ return n;
76
+ } }, mt = (c, t) => !Mn(c, t), cr = { attribute: !0, type: String, converter: Ke, reflect: !1, useDefault: !1, hasChanged: mt };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Z.litPropertyMetadata ?? (Z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let pe = class extends HTMLElement {
79
+ static addInitializer(t) {
80
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
+ }
82
+ static get observedAttributes() {
83
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
+ }
85
+ static createProperty(t, n = cr) {
86
+ if (n.state && (n.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((n = Object.create(n)).wrapped = !0), this.elementProperties.set(t, n), !n.noAccessor) {
87
+ const o = Symbol(), a = this.getPropertyDescriptor(t, o, n);
88
+ a !== void 0 && Dn(this.prototype, t, a);
89
+ }
90
+ }
91
+ static getPropertyDescriptor(t, n, o) {
92
+ const { get: a, set: l } = Un(this.prototype, t) ?? { get() {
93
+ return this[n];
94
+ }, set(d) {
95
+ this[n] = d;
96
+ } };
97
+ return { get: a, set(d) {
98
+ const g = a == null ? void 0 : a.call(this);
99
+ l == null || l.call(this, d), this.requestUpdate(t, g, o);
100
+ }, configurable: !0, enumerable: !0 };
101
+ }
102
+ static getPropertyOptions(t) {
103
+ return this.elementProperties.get(t) ?? cr;
104
+ }
105
+ static _$Ei() {
106
+ if (this.hasOwnProperty(we("elementProperties"))) return;
107
+ const t = Ln(this);
108
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
+ }
110
+ static finalize() {
111
+ if (this.hasOwnProperty(we("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(we("properties"))) {
113
+ const n = this.properties, o = [...In(n), ...Nn(n)];
114
+ for (const a of o) this.createProperty(a, n[a]);
115
+ }
116
+ const t = this[Symbol.metadata];
117
+ if (t !== null) {
118
+ const n = litPropertyMetadata.get(t);
119
+ if (n !== void 0) for (const [o, a] of n) this.elementProperties.set(o, a);
120
+ }
121
+ this._$Eh = /* @__PURE__ */ new Map();
122
+ for (const [n, o] of this.elementProperties) {
123
+ const a = this._$Eu(n, o);
124
+ a !== void 0 && this._$Eh.set(a, n);
125
+ }
126
+ this.elementStyles = this.finalizeStyles(this.styles);
127
+ }
128
+ static finalizeStyles(t) {
129
+ const n = [];
130
+ if (Array.isArray(t)) {
131
+ const o = new Set(t.flat(1 / 0).reverse());
132
+ for (const a of o) n.unshift(ar(a));
133
+ } else t !== void 0 && n.push(ar(t));
134
+ return n;
135
+ }
136
+ static _$Eu(t, n) {
137
+ const o = n.attribute;
138
+ return o === !1 ? void 0 : typeof o == "string" ? o : typeof t == "string" ? t.toLowerCase() : void 0;
139
+ }
140
+ constructor() {
141
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
+ }
143
+ _$Ev() {
144
+ var t;
145
+ this._$ES = new Promise((n) => this.enableUpdating = n), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((n) => n(this));
146
+ }
147
+ addController(t) {
148
+ var n;
149
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((n = t.hostConnected) == null || n.call(t));
150
+ }
151
+ removeController(t) {
152
+ var n;
153
+ (n = this._$EO) == null || n.delete(t);
154
+ }
155
+ _$E_() {
156
+ const t = /* @__PURE__ */ new Map(), n = this.constructor.elementProperties;
157
+ for (const o of n.keys()) this.hasOwnProperty(o) && (t.set(o, this[o]), delete this[o]);
158
+ t.size > 0 && (this._$Ep = t);
159
+ }
160
+ createRenderRoot() {
161
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
+ return jn(t, this.constructor.elementStyles), t;
163
+ }
164
+ connectedCallback() {
165
+ var t;
166
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((n) => {
167
+ var o;
168
+ return (o = n.hostConnected) == null ? void 0 : o.call(n);
169
+ });
170
+ }
171
+ enableUpdating(t) {
172
+ }
173
+ disconnectedCallback() {
174
+ var t;
175
+ (t = this._$EO) == null || t.forEach((n) => {
176
+ var o;
177
+ return (o = n.hostDisconnected) == null ? void 0 : o.call(n);
178
+ });
179
+ }
180
+ attributeChangedCallback(t, n, o) {
181
+ this._$AK(t, o);
182
+ }
183
+ _$ET(t, n) {
184
+ var l;
185
+ const o = this.constructor.elementProperties.get(t), a = this.constructor._$Eu(t, o);
186
+ if (a !== void 0 && o.reflect === !0) {
187
+ const d = (((l = o.converter) == null ? void 0 : l.toAttribute) !== void 0 ? o.converter : Ke).toAttribute(n, o.type);
188
+ this._$Em = t, d == null ? this.removeAttribute(a) : this.setAttribute(a, d), this._$Em = null;
189
+ }
190
+ }
191
+ _$AK(t, n) {
192
+ var l, d;
193
+ const o = this.constructor, a = o._$Eh.get(t);
194
+ if (a !== void 0 && this._$Em !== a) {
195
+ const g = o.getPropertyOptions(a), v = typeof g.converter == "function" ? { fromAttribute: g.converter } : ((l = g.converter) == null ? void 0 : l.fromAttribute) !== void 0 ? g.converter : Ke;
196
+ this._$Em = a;
197
+ const C = v.fromAttribute(n, g.type);
198
+ this[a] = C ?? ((d = this._$Ej) == null ? void 0 : d.get(a)) ?? C, this._$Em = null;
199
+ }
200
+ }
201
+ requestUpdate(t, n, o) {
202
+ var a;
203
+ if (t !== void 0) {
204
+ const l = this.constructor, d = this[t];
205
+ if (o ?? (o = l.getPropertyOptions(t)), !((o.hasChanged ?? mt)(d, n) || o.useDefault && o.reflect && d === ((a = this._$Ej) == null ? void 0 : a.get(t)) && !this.hasAttribute(l._$Eu(t, o)))) return;
206
+ this.C(t, n, o);
207
+ }
208
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
209
+ }
210
+ C(t, n, { useDefault: o, reflect: a, wrapped: l }, d) {
211
+ o && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, d ?? n ?? this[t]), l !== !0 || d !== void 0) || (this._$AL.has(t) || (this.hasUpdated || o || (n = void 0), this._$AL.set(t, n)), a === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
212
+ }
213
+ async _$EP() {
214
+ this.isUpdatePending = !0;
215
+ try {
216
+ await this._$ES;
217
+ } catch (n) {
218
+ Promise.reject(n);
219
+ }
220
+ const t = this.scheduleUpdate();
221
+ return t != null && await t, !this.isUpdatePending;
222
+ }
223
+ scheduleUpdate() {
224
+ return this.performUpdate();
225
+ }
226
+ performUpdate() {
227
+ var o;
228
+ if (!this.isUpdatePending) return;
229
+ if (!this.hasUpdated) {
230
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
231
+ for (const [l, d] of this._$Ep) this[l] = d;
232
+ this._$Ep = void 0;
233
+ }
234
+ const a = this.constructor.elementProperties;
235
+ if (a.size > 0) for (const [l, d] of a) {
236
+ const { wrapped: g } = d, v = this[l];
237
+ g !== !0 || this._$AL.has(l) || v === void 0 || this.C(l, void 0, d, v);
238
+ }
239
+ }
240
+ let t = !1;
241
+ const n = this._$AL;
242
+ try {
243
+ t = this.shouldUpdate(n), t ? (this.willUpdate(n), (o = this._$EO) == null || o.forEach((a) => {
244
+ var l;
245
+ return (l = a.hostUpdate) == null ? void 0 : l.call(a);
246
+ }), this.update(n)) : this._$EM();
247
+ } catch (a) {
248
+ throw t = !1, this._$EM(), a;
249
+ }
250
+ t && this._$AE(n);
251
+ }
252
+ willUpdate(t) {
253
+ }
254
+ _$AE(t) {
255
+ var n;
256
+ (n = this._$EO) == null || n.forEach((o) => {
257
+ var a;
258
+ return (a = o.hostUpdated) == null ? void 0 : a.call(o);
259
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
260
+ }
261
+ _$EM() {
262
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
263
+ }
264
+ get updateComplete() {
265
+ return this.getUpdateComplete();
266
+ }
267
+ getUpdateComplete() {
268
+ return this._$ES;
269
+ }
270
+ shouldUpdate(t) {
271
+ return !0;
272
+ }
273
+ update(t) {
274
+ this._$Eq && (this._$Eq = this._$Eq.forEach((n) => this._$ET(n, this[n]))), this._$EM();
275
+ }
276
+ updated(t) {
277
+ }
278
+ firstUpdated(t) {
279
+ }
280
+ };
281
+ pe.elementStyles = [], pe.shadowRootOptions = { mode: "open" }, pe[we("elementProperties")] = /* @__PURE__ */ new Map(), pe[we("finalized")] = /* @__PURE__ */ new Map(), lt == null || lt({ ReactiveElement: pe }), (Z.reactiveElementVersions ?? (Z.reactiveElementVersions = [])).push("2.1.1");
282
+ /**
283
+ * @license
284
+ * Copyright 2017 Google LLC
285
+ * SPDX-License-Identifier: BSD-3-Clause
286
+ */
287
+ const Ae = globalThis, Ge = Ae.trustedTypes, lr = Ge ? Ge.createPolicy("lit-html", { createHTML: (c) => c }) : void 0, br = "$lit$", X = `lit$${Math.random().toFixed(9).slice(2)}$`, Er = "?" + X, Hn = `<${Er}>`, ie = document, Re = () => ie.createComment(""), Oe = (c) => c === null || typeof c != "object" && typeof c != "function", gt = Array.isArray, zn = (c) => gt(c) || typeof (c == null ? void 0 : c[Symbol.iterator]) == "function", ft = `[
288
+ \f\r]`, $e = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fr = /-->/g, dr = />/g, re = RegExp(`>|${ft}(?:([^\\s"'>=/]+)(${ft}*=${ft}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), pr = /'/g, hr = /"/g, $r = /^(?:script|style|textarea|title)$/i, Vn = (c) => (t, ...n) => ({ _$litType$: c, strings: t, values: n }), Wn = Vn(1), he = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), vr = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
290
+ function Sr(c, t) {
291
+ if (!gt(c) || !c.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
+ return lr !== void 0 ? lr.createHTML(t) : t;
293
+ }
294
+ const Bn = (c, t) => {
295
+ const n = c.length - 1, o = [];
296
+ let a, l = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", d = $e;
297
+ for (let g = 0; g < n; g++) {
298
+ const v = c[g];
299
+ let C, P, w = -1, H = 0;
300
+ for (; H < v.length && (d.lastIndex = H, P = d.exec(v), P !== null); ) H = d.lastIndex, d === $e ? P[1] === "!--" ? d = fr : P[1] !== void 0 ? d = dr : P[2] !== void 0 ? ($r.test(P[2]) && (a = RegExp("</" + P[2], "g")), d = re) : P[3] !== void 0 && (d = re) : d === re ? P[0] === ">" ? (d = a ?? $e, w = -1) : P[1] === void 0 ? w = -2 : (w = d.lastIndex - P[2].length, C = P[1], d = P[3] === void 0 ? re : P[3] === '"' ? hr : pr) : d === hr || d === pr ? d = re : d === fr || d === dr ? d = $e : (d = re, a = void 0);
301
+ const I = d === re && c[g + 1].startsWith("/>") ? " " : "";
302
+ l += d === $e ? v + Hn : w >= 0 ? (o.push(C), v.slice(0, w) + br + v.slice(w) + X + I) : v + X + (w === -2 ? g : I);
303
+ }
304
+ return [Sr(c, l + (c[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
305
+ };
306
+ class Pe {
307
+ constructor({ strings: t, _$litType$: n }, o) {
308
+ let a;
309
+ this.parts = [];
310
+ let l = 0, d = 0;
311
+ const g = t.length - 1, v = this.parts, [C, P] = Bn(t, n);
312
+ if (this.el = Pe.createElement(C, o), ne.currentNode = this.el.content, n === 2 || n === 3) {
313
+ const w = this.el.content.firstChild;
314
+ w.replaceWith(...w.childNodes);
315
+ }
316
+ for (; (a = ne.nextNode()) !== null && v.length < g; ) {
317
+ if (a.nodeType === 1) {
318
+ if (a.hasAttributes()) for (const w of a.getAttributeNames()) if (w.endsWith(br)) {
319
+ const H = P[d++], I = a.getAttribute(w).split(X), B = /([.?@])?(.*)/.exec(H);
320
+ v.push({ type: 1, index: l, name: B[2], strings: I, ctor: B[1] === "." ? qn : B[1] === "?" ? Kn : B[1] === "@" ? Gn : Je }), a.removeAttribute(w);
321
+ } else w.startsWith(X) && (v.push({ type: 6, index: l }), a.removeAttribute(w));
322
+ if ($r.test(a.tagName)) {
323
+ const w = a.textContent.split(X), H = w.length - 1;
324
+ if (H > 0) {
325
+ a.textContent = Ge ? Ge.emptyScript : "";
326
+ for (let I = 0; I < H; I++) a.append(w[I], Re()), ne.nextNode(), v.push({ type: 2, index: ++l });
327
+ a.append(w[H], Re());
328
+ }
329
+ }
330
+ } else if (a.nodeType === 8) if (a.data === Er) v.push({ type: 2, index: l });
331
+ else {
332
+ let w = -1;
333
+ for (; (w = a.data.indexOf(X, w + 1)) !== -1; ) v.push({ type: 7, index: l }), w += X.length - 1;
334
+ }
335
+ l++;
336
+ }
337
+ }
338
+ static createElement(t, n) {
339
+ const o = ie.createElement("template");
340
+ return o.innerHTML = t, o;
341
+ }
342
+ }
343
+ function ve(c, t, n = c, o) {
344
+ var d, g;
345
+ if (t === he) return t;
346
+ let a = o !== void 0 ? (d = n._$Co) == null ? void 0 : d[o] : n._$Cl;
347
+ const l = Oe(t) ? void 0 : t._$litDirective$;
348
+ return (a == null ? void 0 : a.constructor) !== l && ((g = a == null ? void 0 : a._$AO) == null || g.call(a, !1), l === void 0 ? a = void 0 : (a = new l(c), a._$AT(c, n, o)), o !== void 0 ? (n._$Co ?? (n._$Co = []))[o] = a : n._$Cl = a), a !== void 0 && (t = ve(c, a._$AS(c, t.values), a, o)), t;
349
+ }
350
+ class Yn {
351
+ constructor(t, n) {
352
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
353
+ }
354
+ get parentNode() {
355
+ return this._$AM.parentNode;
356
+ }
357
+ get _$AU() {
358
+ return this._$AM._$AU;
359
+ }
360
+ u(t) {
361
+ const { el: { content: n }, parts: o } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? ie).importNode(n, !0);
362
+ ne.currentNode = a;
363
+ let l = ne.nextNode(), d = 0, g = 0, v = o[0];
364
+ for (; v !== void 0; ) {
365
+ if (d === v.index) {
366
+ let C;
367
+ v.type === 2 ? C = new Te(l, l.nextSibling, this, t) : v.type === 1 ? C = new v.ctor(l, v.name, v.strings, this, t) : v.type === 6 && (C = new Jn(l, this, t)), this._$AV.push(C), v = o[++g];
368
+ }
369
+ d !== (v == null ? void 0 : v.index) && (l = ne.nextNode(), d++);
370
+ }
371
+ return ne.currentNode = ie, a;
372
+ }
373
+ p(t) {
374
+ let n = 0;
375
+ for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, n), n += o.strings.length - 2) : o._$AI(t[n])), n++;
376
+ }
377
+ }
378
+ class Te {
379
+ get _$AU() {
380
+ var t;
381
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
382
+ }
383
+ constructor(t, n, o, a) {
384
+ this.type = 2, this._$AH = L, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = o, this.options = a, this._$Cv = (a == null ? void 0 : a.isConnected) ?? !0;
385
+ }
386
+ get parentNode() {
387
+ let t = this._$AA.parentNode;
388
+ const n = this._$AM;
389
+ return n !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = n.parentNode), t;
390
+ }
391
+ get startNode() {
392
+ return this._$AA;
393
+ }
394
+ get endNode() {
395
+ return this._$AB;
396
+ }
397
+ _$AI(t, n = this) {
398
+ t = ve(this, t, n), Oe(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== he && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : zn(t) ? this.k(t) : this._(t);
399
+ }
400
+ O(t) {
401
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
402
+ }
403
+ T(t) {
404
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
405
+ }
406
+ _(t) {
407
+ this._$AH !== L && Oe(this._$AH) ? this._$AA.nextSibling.data = t : this.T(ie.createTextNode(t)), this._$AH = t;
408
+ }
409
+ $(t) {
410
+ var l;
411
+ const { values: n, _$litType$: o } = t, a = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = Pe.createElement(Sr(o.h, o.h[0]), this.options)), o);
412
+ if (((l = this._$AH) == null ? void 0 : l._$AD) === a) this._$AH.p(n);
413
+ else {
414
+ const d = new Yn(a, this), g = d.u(this.options);
415
+ d.p(n), this.T(g), this._$AH = d;
416
+ }
417
+ }
418
+ _$AC(t) {
419
+ let n = vr.get(t.strings);
420
+ return n === void 0 && vr.set(t.strings, n = new Pe(t)), n;
421
+ }
422
+ k(t) {
423
+ gt(this._$AH) || (this._$AH = [], this._$AR());
424
+ const n = this._$AH;
425
+ let o, a = 0;
426
+ for (const l of t) a === n.length ? n.push(o = new Te(this.O(Re()), this.O(Re()), this, this.options)) : o = n[a], o._$AI(l), a++;
427
+ a < n.length && (this._$AR(o && o._$AB.nextSibling, a), n.length = a);
428
+ }
429
+ _$AR(t = this._$AA.nextSibling, n) {
430
+ var o;
431
+ for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, n); t !== this._$AB; ) {
432
+ const a = t.nextSibling;
433
+ t.remove(), t = a;
434
+ }
435
+ }
436
+ setConnected(t) {
437
+ var n;
438
+ this._$AM === void 0 && (this._$Cv = t, (n = this._$AP) == null || n.call(this, t));
439
+ }
440
+ }
441
+ class Je {
442
+ get tagName() {
443
+ return this.element.tagName;
444
+ }
445
+ get _$AU() {
446
+ return this._$AM._$AU;
447
+ }
448
+ constructor(t, n, o, a, l) {
449
+ this.type = 1, this._$AH = L, this._$AN = void 0, this.element = t, this.name = n, this._$AM = a, this.options = l, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = L;
450
+ }
451
+ _$AI(t, n = this, o, a) {
452
+ const l = this.strings;
453
+ let d = !1;
454
+ if (l === void 0) t = ve(this, t, n, 0), d = !Oe(t) || t !== this._$AH && t !== he, d && (this._$AH = t);
455
+ else {
456
+ const g = t;
457
+ let v, C;
458
+ for (t = l[0], v = 0; v < l.length - 1; v++) C = ve(this, g[o + v], n, v), C === he && (C = this._$AH[v]), d || (d = !Oe(C) || C !== this._$AH[v]), C === L ? t = L : t !== L && (t += (C ?? "") + l[v + 1]), this._$AH[v] = C;
459
+ }
460
+ d && !a && this.j(t);
461
+ }
462
+ j(t) {
463
+ t === L ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
464
+ }
465
+ }
466
+ class qn extends Je {
467
+ constructor() {
468
+ super(...arguments), this.type = 3;
469
+ }
470
+ j(t) {
471
+ this.element[this.name] = t === L ? void 0 : t;
472
+ }
473
+ }
474
+ class Kn extends Je {
475
+ constructor() {
476
+ super(...arguments), this.type = 4;
477
+ }
478
+ j(t) {
479
+ this.element.toggleAttribute(this.name, !!t && t !== L);
480
+ }
481
+ }
482
+ class Gn extends Je {
483
+ constructor(t, n, o, a, l) {
484
+ super(t, n, o, a, l), this.type = 5;
485
+ }
486
+ _$AI(t, n = this) {
487
+ if ((t = ve(this, t, n, 0) ?? L) === he) return;
488
+ const o = this._$AH, a = t === L && o !== L || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, l = t !== L && (o === L || a);
489
+ a && this.element.removeEventListener(this.name, this, o), l && this.element.addEventListener(this.name, this, t), this._$AH = t;
490
+ }
491
+ handleEvent(t) {
492
+ var n;
493
+ typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
494
+ }
495
+ }
496
+ class Jn {
497
+ constructor(t, n, o) {
498
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = o;
499
+ }
500
+ get _$AU() {
501
+ return this._$AM._$AU;
502
+ }
503
+ _$AI(t) {
504
+ ve(this, t);
505
+ }
506
+ }
507
+ const dt = Ae.litHtmlPolyfillSupport;
508
+ dt == null || dt(Pe, Te), (Ae.litHtmlVersions ?? (Ae.litHtmlVersions = [])).push("3.3.1");
509
+ const Qn = (c, t, n) => {
510
+ const o = (n == null ? void 0 : n.renderBefore) ?? t;
511
+ let a = o._$litPart$;
512
+ if (a === void 0) {
513
+ const l = (n == null ? void 0 : n.renderBefore) ?? null;
514
+ o._$litPart$ = a = new Te(t.insertBefore(Re(), l), l, void 0, n ?? {});
515
+ }
516
+ return a._$AI(c), a;
517
+ };
518
+ /**
519
+ * @license
520
+ * Copyright 2017 Google LLC
521
+ * SPDX-License-Identifier: BSD-3-Clause
522
+ */
523
+ const oe = globalThis;
524
+ class Ce extends pe {
525
+ constructor() {
526
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
+ }
528
+ createRenderRoot() {
529
+ var n;
530
+ const t = super.createRenderRoot();
531
+ return (n = this.renderOptions).renderBefore ?? (n.renderBefore = t.firstChild), t;
532
+ }
533
+ update(t) {
534
+ const n = this.render();
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Qn(n, this.renderRoot, this.renderOptions);
536
+ }
537
+ connectedCallback() {
538
+ var t;
539
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
540
+ }
541
+ disconnectedCallback() {
542
+ var t;
543
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
544
+ }
545
+ render() {
546
+ return he;
547
+ }
548
+ }
549
+ var mr;
550
+ Ce._$litElement$ = !0, Ce.finalized = !0, (mr = oe.litElementHydrateSupport) == null || mr.call(oe, { LitElement: Ce });
551
+ const pt = oe.litElementPolyfillSupport;
552
+ pt == null || pt({ LitElement: Ce });
553
+ (oe.litElementVersions ?? (oe.litElementVersions = [])).push("4.2.1");
554
+ /**
555
+ * @license
556
+ * Copyright 2017 Google LLC
557
+ * SPDX-License-Identifier: BSD-3-Clause
558
+ */
559
+ const Xn = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: mt }, Zn = (c = Xn, t, n) => {
560
+ const { kind: o, metadata: a } = n;
561
+ let l = globalThis.litPropertyMetadata.get(a);
562
+ if (l === void 0 && globalThis.litPropertyMetadata.set(a, l = /* @__PURE__ */ new Map()), o === "setter" && ((c = Object.create(c)).wrapped = !0), l.set(n.name, c), o === "accessor") {
563
+ const { name: d } = n;
564
+ return { set(g) {
565
+ const v = t.get.call(this);
566
+ t.set.call(this, g), this.requestUpdate(d, v, c);
567
+ }, init(g) {
568
+ return g !== void 0 && this.C(d, void 0, c, g), g;
569
+ } };
570
+ }
571
+ if (o === "setter") {
572
+ const { name: d } = n;
573
+ return function(g) {
574
+ const v = this[d];
575
+ t.call(this, g), this.requestUpdate(d, v, c);
576
+ };
577
+ }
578
+ throw Error("Unsupported decorator location: " + o);
579
+ };
580
+ function bt(c) {
581
+ return (t, n) => typeof n == "object" ? Zn(c, t, n) : ((o, a, l) => {
582
+ const d = a.hasOwnProperty(l);
583
+ return a.constructor.createProperty(l, o), d ? Object.getOwnPropertyDescriptor(a, l) : void 0;
584
+ })(c, t, n);
585
+ }
586
+ const eo = xn`
587
+ :host {
588
+ display: inline-block;
589
+ }
1
590
 
591
+ .button {
592
+ padding: 8px 12px;
593
+ user-select: none;
594
+ cursor: pointer;
595
+ background-color: var(--grey);
596
+ text-align: center;
597
+ color: var(--text-primary);
598
+ border-radius: 10px;
599
+ font-weight: 500;
600
+ font-size: 12px;
601
+ line-height: 16px;
602
+ transition: opacity 200ms;
603
+ box-sizing: border-box;
604
+ border: none;
605
+ }
606
+
607
+ /* ================== variants ================== */
608
+
609
+ .button__primary {
610
+ background-color: var(--main-primary);
611
+ color: var(--cards-white);
612
+ outline: none;
613
+ }
614
+
615
+ .button__error {
616
+ background-color: var(--error);
617
+ border: 1px solid var(--error);
618
+ color: var(--cards-white);
619
+ padding: 7px 12px;
620
+ }
621
+
622
+ .button__error_outline {
623
+ background-color: var(--cards-white);
624
+ border: 1px solid var(--error);
625
+ color: var(--error);
626
+ padding: 7px 12px;
627
+ }
628
+
629
+ .button__success {
630
+ background-color: var(--success);
631
+ border: 1px solid var(--success);
632
+ color: var(--cards-white);
633
+ outline: none;
634
+ }
635
+
636
+ /* ================== sizes ================== */
637
+
638
+ .button__lg {
639
+ padding: 12px 20px;
640
+ line-height: 20px;
641
+ font-size: 16px;
642
+ }
643
+
644
+ .button__md {
645
+ padding: 10px 12px;
646
+ line-height: 20px;
647
+ }
648
+
649
+ .button__sm {
650
+ padding: 8px 12px;
651
+ line-height: 16px;
652
+ font-size: 12px;
653
+ }
654
+
655
+ /* ================== states ================== */
656
+
657
+ .button:hover {
658
+ opacity: 0.85;
659
+ }
660
+
661
+ .button:disabled {
662
+ opacity: 0.4;
663
+ cursor: not-allowed;
664
+ }
665
+
666
+ .button:disabled:hover {
667
+ opacity: 0.4;
668
+ }
669
+ `;
670
+ var to = Object.defineProperty, Et = (c, t, n, o) => {
671
+ for (var a = void 0, l = c.length - 1, d; l >= 0; l--)
672
+ (d = c[l]) && (a = d(t, n, a) || a);
673
+ return a && to(t, n, a), a;
674
+ };
675
+ const $t = class $t extends Ce {
676
+ constructor() {
677
+ super(...arguments), this.disabled = !1, this.variant = "primary", this.size = "md";
678
+ }
679
+ handleClick(t) {
680
+ this.disabled || this.dispatchEvent(
681
+ new CustomEvent("ui-click", {
682
+ detail: {
683
+ variant: this.variant,
684
+ size: this.size,
685
+ disabled: this.disabled,
686
+ originalEvent: t
687
+ },
688
+ bubbles: !0,
689
+ composed: !0
690
+ })
691
+ );
692
+ }
693
+ render() {
694
+ return Wn`
695
+ <button
696
+ class="
697
+ button
698
+ button__${this.variant}
699
+ button__${this.size}
700
+ "
701
+ ?disabled=${this.disabled}
702
+ @click=${this.handleClick}
703
+ >
704
+ <slot></slot>
705
+ </button>
706
+ `;
707
+ }
708
+ };
709
+ $t.styles = eo;
710
+ let ye = $t;
711
+ Et([
712
+ bt({ type: Boolean, reflect: !0 })
713
+ ], ye.prototype, "disabled");
714
+ Et([
715
+ bt({ reflect: !0 })
716
+ ], ye.prototype, "variant");
717
+ Et([
718
+ bt({ reflect: !0 })
719
+ ], ye.prototype, "size");
720
+ customElements.define("ui-button", ye);
721
+ function ro(c) {
722
+ return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
723
+ }
724
+ var ht = { exports: {} }, b = {};
725
+ /**
726
+ * @license React
727
+ * react.production.min.js
728
+ *
729
+ * Copyright (c) Facebook, Inc. and its affiliates.
730
+ *
731
+ * This source code is licensed under the MIT license found in the
732
+ * LICENSE file in the root directory of this source tree.
733
+ */
734
+ var yr;
735
+ function no() {
736
+ if (yr) return b;
737
+ yr = 1;
738
+ var c = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), C = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), w = Symbol.iterator;
739
+ function H(i) {
740
+ return i === null || typeof i != "object" ? null : (i = w && i[w] || i["@@iterator"], typeof i == "function" ? i : null);
741
+ }
742
+ var I = { isMounted: function() {
743
+ return !1;
744
+ }, enqueueForceUpdate: function() {
745
+ }, enqueueReplaceState: function() {
746
+ }, enqueueSetState: function() {
747
+ } }, B = Object.assign, ke = {};
748
+ function q(i, f, E) {
749
+ this.props = i, this.context = f, this.refs = ke, this.updater = E || I;
750
+ }
751
+ q.prototype.isReactComponent = {}, q.prototype.setState = function(i, f) {
752
+ if (typeof i != "object" && typeof i != "function" && i != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
753
+ this.updater.enqueueSetState(this, i, f, "setState");
754
+ }, q.prototype.forceUpdate = function(i) {
755
+ this.updater.enqueueForceUpdate(this, i, "forceUpdate");
756
+ };
757
+ function xe() {
758
+ }
759
+ xe.prototype = q.prototype;
760
+ function se(i, f, E) {
761
+ this.props = i, this.context = f, this.refs = ke, this.updater = E || I;
762
+ }
763
+ var ae = se.prototype = new xe();
764
+ ae.constructor = se, B(ae, q.prototype), ae.isPureReactComponent = !0;
765
+ var K = Array.isArray, N = Object.prototype.hasOwnProperty, W = { current: null }, G = { key: !0, ref: !0, __self: !0, __source: !0 };
766
+ function ee(i, f, E) {
767
+ var S, A = {}, D = null, x = null;
768
+ if (f != null) for (S in f.ref !== void 0 && (x = f.ref), f.key !== void 0 && (D = "" + f.key), f) N.call(f, S) && !G.hasOwnProperty(S) && (A[S] = f[S]);
769
+ var j = arguments.length - 2;
770
+ if (j === 1) A.children = E;
771
+ else if (1 < j) {
772
+ for (var O = Array(j), z = 0; z < j; z++) O[z] = arguments[z + 2];
773
+ A.children = O;
774
+ }
775
+ if (i && i.defaultProps) for (S in j = i.defaultProps, j) A[S] === void 0 && (A[S] = j[S]);
776
+ return { $$typeof: c, type: i, key: D, ref: x, props: A, _owner: W.current };
777
+ }
778
+ function je(i, f) {
779
+ return { $$typeof: c, type: i.type, key: f, ref: i.ref, props: i.props, _owner: i._owner };
780
+ }
781
+ function _e(i) {
782
+ return typeof i == "object" && i !== null && i.$$typeof === c;
783
+ }
784
+ function Qe(i) {
785
+ var f = { "=": "=0", ":": "=2" };
786
+ return "$" + i.replace(/[=:]/g, function(E) {
787
+ return f[E];
788
+ });
789
+ }
790
+ var Me = /\/+/g;
791
+ function me(i, f) {
792
+ return typeof i == "object" && i !== null && i.key != null ? Qe("" + i.key) : f.toString(36);
793
+ }
794
+ function ue(i, f, E, S, A) {
795
+ var D = typeof i;
796
+ (D === "undefined" || D === "boolean") && (i = null);
797
+ var x = !1;
798
+ if (i === null) x = !0;
799
+ else switch (D) {
800
+ case "string":
801
+ case "number":
802
+ x = !0;
803
+ break;
804
+ case "object":
805
+ switch (i.$$typeof) {
806
+ case c:
807
+ case t:
808
+ x = !0;
809
+ }
810
+ }
811
+ if (x) return x = i, A = A(x), i = S === "" ? "." + me(x, 0) : S, K(A) ? (E = "", i != null && (E = i.replace(Me, "$&/") + "/"), ue(A, f, E, "", function(z) {
812
+ return z;
813
+ })) : A != null && (_e(A) && (A = je(A, E + (!A.key || x && x.key === A.key ? "" : ("" + A.key).replace(Me, "$&/") + "/") + i)), f.push(A)), 1;
814
+ if (x = 0, S = S === "" ? "." : S + ":", K(i)) for (var j = 0; j < i.length; j++) {
815
+ D = i[j];
816
+ var O = S + me(D, j);
817
+ x += ue(D, f, E, O, A);
818
+ }
819
+ else if (O = H(i), typeof O == "function") for (i = O.call(i), j = 0; !(D = i.next()).done; ) D = D.value, O = S + me(D, j++), x += ue(D, f, E, O, A);
820
+ else if (D === "object") throw f = String(i), Error("Objects are not valid as a React child (found: " + (f === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : f) + "). If you meant to render a collection of children, use an array instead.");
821
+ return x;
822
+ }
823
+ function Y(i, f, E) {
824
+ if (i == null) return i;
825
+ var S = [], A = 0;
826
+ return ue(i, S, "", "", function(D) {
827
+ return f.call(E, D, A++);
828
+ }), S;
829
+ }
830
+ function J(i) {
831
+ if (i._status === -1) {
832
+ var f = i._result;
833
+ f = f(), f.then(function(E) {
834
+ (i._status === 0 || i._status === -1) && (i._status = 1, i._result = E);
835
+ }, function(E) {
836
+ (i._status === 0 || i._status === -1) && (i._status = 2, i._result = E);
837
+ }), i._status === -1 && (i._status = 0, i._result = f);
838
+ }
839
+ if (i._status === 1) return i._result.default;
840
+ throw i._result;
841
+ }
842
+ var _ = { current: null }, te = { transition: null }, De = { ReactCurrentDispatcher: _, ReactCurrentBatchConfig: te, ReactCurrentOwner: W };
843
+ function ce() {
844
+ throw Error("act(...) is not supported in production builds of React.");
845
+ }
846
+ return b.Children = { map: Y, forEach: function(i, f, E) {
847
+ Y(i, function() {
848
+ f.apply(this, arguments);
849
+ }, E);
850
+ }, count: function(i) {
851
+ var f = 0;
852
+ return Y(i, function() {
853
+ f++;
854
+ }), f;
855
+ }, toArray: function(i) {
856
+ return Y(i, function(f) {
857
+ return f;
858
+ }) || [];
859
+ }, only: function(i) {
860
+ if (!_e(i)) throw Error("React.Children.only expected to receive a single React element child.");
861
+ return i;
862
+ } }, b.Component = q, b.Fragment = n, b.Profiler = a, b.PureComponent = se, b.StrictMode = o, b.Suspense = v, b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = De, b.act = ce, b.cloneElement = function(i, f, E) {
863
+ if (i == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + i + ".");
864
+ var S = B({}, i.props), A = i.key, D = i.ref, x = i._owner;
865
+ if (f != null) {
866
+ if (f.ref !== void 0 && (D = f.ref, x = W.current), f.key !== void 0 && (A = "" + f.key), i.type && i.type.defaultProps) var j = i.type.defaultProps;
867
+ for (O in f) N.call(f, O) && !G.hasOwnProperty(O) && (S[O] = f[O] === void 0 && j !== void 0 ? j[O] : f[O]);
868
+ }
869
+ var O = arguments.length - 2;
870
+ if (O === 1) S.children = E;
871
+ else if (1 < O) {
872
+ j = Array(O);
873
+ for (var z = 0; z < O; z++) j[z] = arguments[z + 2];
874
+ S.children = j;
875
+ }
876
+ return { $$typeof: c, type: i.type, key: A, ref: D, props: S, _owner: x };
877
+ }, b.createContext = function(i) {
878
+ return i = { $$typeof: d, _currentValue: i, _currentValue2: i, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, i.Provider = { $$typeof: l, _context: i }, i.Consumer = i;
879
+ }, b.createElement = ee, b.createFactory = function(i) {
880
+ var f = ee.bind(null, i);
881
+ return f.type = i, f;
882
+ }, b.createRef = function() {
883
+ return { current: null };
884
+ }, b.forwardRef = function(i) {
885
+ return { $$typeof: g, render: i };
886
+ }, b.isValidElement = _e, b.lazy = function(i) {
887
+ return { $$typeof: P, _payload: { _status: -1, _result: i }, _init: J };
888
+ }, b.memo = function(i, f) {
889
+ return { $$typeof: C, type: i, compare: f === void 0 ? null : f };
890
+ }, b.startTransition = function(i) {
891
+ var f = te.transition;
892
+ te.transition = {};
893
+ try {
894
+ i();
895
+ } finally {
896
+ te.transition = f;
897
+ }
898
+ }, b.unstable_act = ce, b.useCallback = function(i, f) {
899
+ return _.current.useCallback(i, f);
900
+ }, b.useContext = function(i) {
901
+ return _.current.useContext(i);
902
+ }, b.useDebugValue = function() {
903
+ }, b.useDeferredValue = function(i) {
904
+ return _.current.useDeferredValue(i);
905
+ }, b.useEffect = function(i, f) {
906
+ return _.current.useEffect(i, f);
907
+ }, b.useId = function() {
908
+ return _.current.useId();
909
+ }, b.useImperativeHandle = function(i, f, E) {
910
+ return _.current.useImperativeHandle(i, f, E);
911
+ }, b.useInsertionEffect = function(i, f) {
912
+ return _.current.useInsertionEffect(i, f);
913
+ }, b.useLayoutEffect = function(i, f) {
914
+ return _.current.useLayoutEffect(i, f);
915
+ }, b.useMemo = function(i, f) {
916
+ return _.current.useMemo(i, f);
917
+ }, b.useReducer = function(i, f, E) {
918
+ return _.current.useReducer(i, f, E);
919
+ }, b.useRef = function(i) {
920
+ return _.current.useRef(i);
921
+ }, b.useState = function(i) {
922
+ return _.current.useState(i);
923
+ }, b.useSyncExternalStore = function(i, f, E) {
924
+ return _.current.useSyncExternalStore(i, f, E);
925
+ }, b.useTransition = function() {
926
+ return _.current.useTransition();
927
+ }, b.version = "18.3.1", b;
928
+ }
929
+ var Se = { exports: {} };
930
+ /**
931
+ * @license React
932
+ * react.development.js
933
+ *
934
+ * Copyright (c) Facebook, Inc. and its affiliates.
935
+ *
936
+ * This source code is licensed under the MIT license found in the
937
+ * LICENSE file in the root directory of this source tree.
938
+ */
939
+ Se.exports;
940
+ var _r;
941
+ function oo() {
942
+ return _r || (_r = 1, function(c, t) {
943
+ process.env.NODE_ENV !== "production" && function() {
944
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
945
+ var n = "18.3.1", o = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), C = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), ke = Symbol.for("react.offscreen"), q = Symbol.iterator, xe = "@@iterator";
946
+ function se(e) {
947
+ if (e === null || typeof e != "object")
948
+ return null;
949
+ var r = q && e[q] || e[xe];
950
+ return typeof r == "function" ? r : null;
951
+ }
952
+ var ae = {
953
+ /**
954
+ * @internal
955
+ * @type {ReactComponent}
956
+ */
957
+ current: null
958
+ }, K = {
959
+ transition: null
960
+ }, N = {
961
+ current: null,
962
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
963
+ isBatchingLegacy: !1,
964
+ didScheduleLegacyUpdate: !1
965
+ }, W = {
966
+ /**
967
+ * @internal
968
+ * @type {ReactComponent}
969
+ */
970
+ current: null
971
+ }, G = {}, ee = null;
972
+ function je(e) {
973
+ ee = e;
974
+ }
975
+ G.setExtraStackFrame = function(e) {
976
+ ee = e;
977
+ }, G.getCurrentStack = null, G.getStackAddendum = function() {
978
+ var e = "";
979
+ ee && (e += ee);
980
+ var r = G.getCurrentStack;
981
+ return r && (e += r() || ""), e;
982
+ };
983
+ var _e = !1, Qe = !1, Me = !1, me = !1, ue = !1, Y = {
984
+ ReactCurrentDispatcher: ae,
985
+ ReactCurrentBatchConfig: K,
986
+ ReactCurrentOwner: W
987
+ };
988
+ Y.ReactDebugCurrentFrame = G, Y.ReactCurrentActQueue = N;
989
+ function J(e) {
990
+ {
991
+ for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
992
+ s[u - 1] = arguments[u];
993
+ te("warn", e, s);
994
+ }
995
+ }
996
+ function _(e) {
997
+ {
998
+ for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
999
+ s[u - 1] = arguments[u];
1000
+ te("error", e, s);
1001
+ }
1002
+ }
1003
+ function te(e, r, s) {
1004
+ {
1005
+ var u = Y.ReactDebugCurrentFrame, p = u.getStackAddendum();
1006
+ p !== "" && (r += "%s", s = s.concat([p]));
1007
+ var y = s.map(function(h) {
1008
+ return String(h);
1009
+ });
1010
+ y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y);
1011
+ }
1012
+ }
1013
+ var De = {};
1014
+ function ce(e, r) {
1015
+ {
1016
+ var s = e.constructor, u = s && (s.displayName || s.name) || "ReactClass", p = u + "." + r;
1017
+ if (De[p])
1018
+ return;
1019
+ _("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, u), De[p] = !0;
1020
+ }
1021
+ }
1022
+ var i = {
1023
+ /**
1024
+ * Checks whether or not this composite component is mounted.
1025
+ * @param {ReactClass} publicInstance The instance we want to test.
1026
+ * @return {boolean} True if mounted, false otherwise.
1027
+ * @protected
1028
+ * @final
1029
+ */
1030
+ isMounted: function(e) {
1031
+ return !1;
1032
+ },
1033
+ /**
1034
+ * Forces an update. This should only be invoked when it is known with
1035
+ * certainty that we are **not** in a DOM transaction.
1036
+ *
1037
+ * You may want to call this when you know that some deeper aspect of the
1038
+ * component's state has changed but `setState` was not called.
1039
+ *
1040
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
1041
+ * `componentWillUpdate` and `componentDidUpdate`.
1042
+ *
1043
+ * @param {ReactClass} publicInstance The instance that should rerender.
1044
+ * @param {?function} callback Called after component is updated.
1045
+ * @param {?string} callerName name of the calling function in the public API.
1046
+ * @internal
1047
+ */
1048
+ enqueueForceUpdate: function(e, r, s) {
1049
+ ce(e, "forceUpdate");
1050
+ },
1051
+ /**
1052
+ * Replaces all of the state. Always use this or `setState` to mutate state.
1053
+ * You should treat `this.state` as immutable.
1054
+ *
1055
+ * There is no guarantee that `this.state` will be immediately updated, so
1056
+ * accessing `this.state` after calling this method may return the old value.
1057
+ *
1058
+ * @param {ReactClass} publicInstance The instance that should rerender.
1059
+ * @param {object} completeState Next state.
1060
+ * @param {?function} callback Called after component is updated.
1061
+ * @param {?string} callerName name of the calling function in the public API.
1062
+ * @internal
1063
+ */
1064
+ enqueueReplaceState: function(e, r, s, u) {
1065
+ ce(e, "replaceState");
1066
+ },
1067
+ /**
1068
+ * Sets a subset of the state. This only exists because _pendingState is
1069
+ * internal. This provides a merging strategy that is not available to deep
1070
+ * properties which is confusing. TODO: Expose pendingState or don't use it
1071
+ * during the merge.
1072
+ *
1073
+ * @param {ReactClass} publicInstance The instance that should rerender.
1074
+ * @param {object} partialState Next partial state to be merged with state.
1075
+ * @param {?function} callback Called after component is updated.
1076
+ * @param {?string} Name of the calling function in the public API.
1077
+ * @internal
1078
+ */
1079
+ enqueueSetState: function(e, r, s, u) {
1080
+ ce(e, "setState");
1081
+ }
1082
+ }, f = Object.assign, E = {};
1083
+ Object.freeze(E);
1084
+ function S(e, r, s) {
1085
+ this.props = e, this.context = r, this.refs = E, this.updater = s || i;
1086
+ }
1087
+ S.prototype.isReactComponent = {}, S.prototype.setState = function(e, r) {
1088
+ if (typeof e != "object" && typeof e != "function" && e != null)
1089
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
1090
+ this.updater.enqueueSetState(this, e, r, "setState");
1091
+ }, S.prototype.forceUpdate = function(e) {
1092
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1093
+ };
1094
+ {
1095
+ var A = {
1096
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
1097
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
1098
+ }, D = function(e, r) {
1099
+ Object.defineProperty(S.prototype, e, {
1100
+ get: function() {
1101
+ J("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
1102
+ }
1103
+ });
1104
+ };
1105
+ for (var x in A)
1106
+ A.hasOwnProperty(x) && D(x, A[x]);
1107
+ }
1108
+ function j() {
1109
+ }
1110
+ j.prototype = S.prototype;
1111
+ function O(e, r, s) {
1112
+ this.props = e, this.context = r, this.refs = E, this.updater = s || i;
1113
+ }
1114
+ var z = O.prototype = new j();
1115
+ z.constructor = O, f(z, S.prototype), z.isPureReactComponent = !0;
1116
+ function wr() {
1117
+ var e = {
1118
+ current: null
1119
+ };
1120
+ return Object.seal(e), e;
1121
+ }
1122
+ var Ar = Array.isArray;
1123
+ function Ue(e) {
1124
+ return Ar(e);
1125
+ }
1126
+ function Cr(e) {
1127
+ {
1128
+ var r = typeof Symbol == "function" && Symbol.toStringTag, s = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
1129
+ return s;
1130
+ }
1131
+ }
1132
+ function Rr(e) {
1133
+ try {
1134
+ return St(e), !1;
1135
+ } catch {
1136
+ return !0;
1137
+ }
1138
+ }
1139
+ function St(e) {
1140
+ return "" + e;
1141
+ }
1142
+ function Ie(e) {
1143
+ if (Rr(e))
1144
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cr(e)), St(e);
1145
+ }
1146
+ function Or(e, r, s) {
1147
+ var u = e.displayName;
1148
+ if (u)
1149
+ return u;
1150
+ var p = r.displayName || r.name || "";
1151
+ return p !== "" ? s + "(" + p + ")" : s;
1152
+ }
1153
+ function wt(e) {
1154
+ return e.displayName || "Context";
1155
+ }
1156
+ function Q(e) {
1157
+ if (e == null)
1158
+ return null;
1159
+ if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
1160
+ return e.displayName || e.name || null;
1161
+ if (typeof e == "string")
1162
+ return e;
1163
+ switch (e) {
1164
+ case l:
1165
+ return "Fragment";
1166
+ case a:
1167
+ return "Portal";
1168
+ case g:
1169
+ return "Profiler";
1170
+ case d:
1171
+ return "StrictMode";
1172
+ case w:
1173
+ return "Suspense";
1174
+ case H:
1175
+ return "SuspenseList";
1176
+ }
1177
+ if (typeof e == "object")
1178
+ switch (e.$$typeof) {
1179
+ case C:
1180
+ var r = e;
1181
+ return wt(r) + ".Consumer";
1182
+ case v:
1183
+ var s = e;
1184
+ return wt(s._context) + ".Provider";
1185
+ case P:
1186
+ return Or(e, e.render, "ForwardRef");
1187
+ case I:
1188
+ var u = e.displayName || null;
1189
+ return u !== null ? u : Q(e.type) || "Memo";
1190
+ case B: {
1191
+ var p = e, y = p._payload, h = p._init;
1192
+ try {
1193
+ return Q(h(y));
1194
+ } catch {
1195
+ return null;
1196
+ }
1197
+ }
1198
+ }
1199
+ return null;
1200
+ }
1201
+ var ge = Object.prototype.hasOwnProperty, At = {
1202
+ key: !0,
1203
+ ref: !0,
1204
+ __self: !0,
1205
+ __source: !0
1206
+ }, Ct, Rt, Xe;
1207
+ Xe = {};
1208
+ function Ot(e) {
1209
+ if (ge.call(e, "ref")) {
1210
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
1211
+ if (r && r.isReactWarning)
1212
+ return !1;
1213
+ }
1214
+ return e.ref !== void 0;
1215
+ }
1216
+ function Pt(e) {
1217
+ if (ge.call(e, "key")) {
1218
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
1219
+ if (r && r.isReactWarning)
1220
+ return !1;
1221
+ }
1222
+ return e.key !== void 0;
1223
+ }
1224
+ function Pr(e, r) {
1225
+ var s = function() {
1226
+ Ct || (Ct = !0, _("%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)", r));
1227
+ };
1228
+ s.isReactWarning = !0, Object.defineProperty(e, "key", {
1229
+ get: s,
1230
+ configurable: !0
1231
+ });
1232
+ }
1233
+ function Tr(e, r) {
1234
+ var s = function() {
1235
+ Rt || (Rt = !0, _("%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)", r));
1236
+ };
1237
+ s.isReactWarning = !0, Object.defineProperty(e, "ref", {
1238
+ get: s,
1239
+ configurable: !0
1240
+ });
1241
+ }
1242
+ function kr(e) {
1243
+ if (typeof e.ref == "string" && W.current && e.__self && W.current.stateNode !== e.__self) {
1244
+ var r = Q(W.current.type);
1245
+ Xe[r] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), Xe[r] = !0);
1246
+ }
1247
+ }
1248
+ var Ze = function(e, r, s, u, p, y, h) {
1249
+ var m = {
1250
+ // This tag allows us to uniquely identify this as a React Element
1251
+ $$typeof: o,
1252
+ // Built-in properties that belong on the element
1253
+ type: e,
1254
+ key: r,
1255
+ ref: s,
1256
+ props: h,
1257
+ // Record the component responsible for creating this element.
1258
+ _owner: y
1259
+ };
1260
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
1261
+ configurable: !1,
1262
+ enumerable: !1,
1263
+ writable: !0,
1264
+ value: !1
1265
+ }), Object.defineProperty(m, "_self", {
1266
+ configurable: !1,
1267
+ enumerable: !1,
1268
+ writable: !1,
1269
+ value: u
1270
+ }), Object.defineProperty(m, "_source", {
1271
+ configurable: !1,
1272
+ enumerable: !1,
1273
+ writable: !1,
1274
+ value: p
1275
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
1276
+ };
1277
+ function xr(e, r, s) {
1278
+ var u, p = {}, y = null, h = null, m = null, $ = null;
1279
+ if (r != null) {
1280
+ Ot(r) && (h = r.ref, kr(r)), Pt(r) && (Ie(r.key), y = "" + r.key), m = r.__self === void 0 ? null : r.__self, $ = r.__source === void 0 ? null : r.__source;
1281
+ for (u in r)
1282
+ ge.call(r, u) && !At.hasOwnProperty(u) && (p[u] = r[u]);
1283
+ }
1284
+ var R = arguments.length - 2;
1285
+ if (R === 1)
1286
+ p.children = s;
1287
+ else if (R > 1) {
1288
+ for (var T = Array(R), k = 0; k < R; k++)
1289
+ T[k] = arguments[k + 2];
1290
+ Object.freeze && Object.freeze(T), p.children = T;
1291
+ }
1292
+ if (e && e.defaultProps) {
1293
+ var M = e.defaultProps;
1294
+ for (u in M)
1295
+ p[u] === void 0 && (p[u] = M[u]);
1296
+ }
1297
+ if (y || h) {
1298
+ var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1299
+ y && Pr(p, U), h && Tr(p, U);
1300
+ }
1301
+ return Ze(e, y, h, m, $, W.current, p);
1302
+ }
1303
+ function jr(e, r) {
1304
+ var s = Ze(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
1305
+ return s;
1306
+ }
1307
+ function Mr(e, r, s) {
1308
+ if (e == null)
1309
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
1310
+ var u, p = f({}, e.props), y = e.key, h = e.ref, m = e._self, $ = e._source, R = e._owner;
1311
+ if (r != null) {
1312
+ Ot(r) && (h = r.ref, R = W.current), Pt(r) && (Ie(r.key), y = "" + r.key);
1313
+ var T;
1314
+ e.type && e.type.defaultProps && (T = e.type.defaultProps);
1315
+ for (u in r)
1316
+ ge.call(r, u) && !At.hasOwnProperty(u) && (r[u] === void 0 && T !== void 0 ? p[u] = T[u] : p[u] = r[u]);
1317
+ }
1318
+ var k = arguments.length - 2;
1319
+ if (k === 1)
1320
+ p.children = s;
1321
+ else if (k > 1) {
1322
+ for (var M = Array(k), U = 0; U < k; U++)
1323
+ M[U] = arguments[U + 2];
1324
+ p.children = M;
1325
+ }
1326
+ return Ze(e.type, y, h, m, $, R, p);
1327
+ }
1328
+ function le(e) {
1329
+ return typeof e == "object" && e !== null && e.$$typeof === o;
1330
+ }
1331
+ var Tt = ".", Dr = ":";
1332
+ function Ur(e) {
1333
+ var r = /[=:]/g, s = {
1334
+ "=": "=0",
1335
+ ":": "=2"
1336
+ }, u = e.replace(r, function(p) {
1337
+ return s[p];
1338
+ });
1339
+ return "$" + u;
1340
+ }
1341
+ var kt = !1, Ir = /\/+/g;
1342
+ function xt(e) {
1343
+ return e.replace(Ir, "$&/");
1344
+ }
1345
+ function et(e, r) {
1346
+ return typeof e == "object" && e !== null && e.key != null ? (Ie(e.key), Ur("" + e.key)) : r.toString(36);
1347
+ }
1348
+ function Ne(e, r, s, u, p) {
1349
+ var y = typeof e;
1350
+ (y === "undefined" || y === "boolean") && (e = null);
1351
+ var h = !1;
1352
+ if (e === null)
1353
+ h = !0;
1354
+ else
1355
+ switch (y) {
1356
+ case "string":
1357
+ case "number":
1358
+ h = !0;
1359
+ break;
1360
+ case "object":
1361
+ switch (e.$$typeof) {
1362
+ case o:
1363
+ case a:
1364
+ h = !0;
1365
+ }
1366
+ }
1367
+ if (h) {
1368
+ var m = e, $ = p(m), R = u === "" ? Tt + et(m, 0) : u;
1369
+ if (Ue($)) {
1370
+ var T = "";
1371
+ R != null && (T = xt(R) + "/"), Ne($, r, T, "", function(Tn) {
1372
+ return Tn;
1373
+ });
1374
+ } else $ != null && (le($) && ($.key && (!m || m.key !== $.key) && Ie($.key), $ = jr(
1375
+ $,
1376
+ // Keep both the (mapped) and old keys if they differ, just as
1377
+ // traverseAllChildren used to do for objects as children
1378
+ s + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1379
+ ($.key && (!m || m.key !== $.key) ? (
1380
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1381
+ // eslint-disable-next-line react-internal/safe-string-coercion
1382
+ xt("" + $.key) + "/"
1383
+ ) : "") + R
1384
+ )), r.push($));
1385
+ return 1;
1386
+ }
1387
+ var k, M, U = 0, F = u === "" ? Tt : u + Dr;
1388
+ if (Ue(e))
1389
+ for (var Ye = 0; Ye < e.length; Ye++)
1390
+ k = e[Ye], M = F + et(k, Ye), U += Ne(k, r, s, M, p);
1391
+ else {
1392
+ var ct = se(e);
1393
+ if (typeof ct == "function") {
1394
+ var nr = e;
1395
+ ct === nr.entries && (kt || J("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), kt = !0);
1396
+ for (var On = ct.call(nr), or, Pn = 0; !(or = On.next()).done; )
1397
+ k = or.value, M = F + et(k, Pn++), U += Ne(k, r, s, M, p);
1398
+ } else if (y === "object") {
1399
+ var ir = String(e);
1400
+ throw new Error("Objects are not valid as a React child (found: " + (ir === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : ir) + "). If you meant to render a collection of children, use an array instead.");
1401
+ }
1402
+ }
1403
+ return U;
1404
+ }
1405
+ function Le(e, r, s) {
1406
+ if (e == null)
1407
+ return e;
1408
+ var u = [], p = 0;
1409
+ return Ne(e, u, "", "", function(y) {
1410
+ return r.call(s, y, p++);
1411
+ }), u;
1412
+ }
1413
+ function Nr(e) {
1414
+ var r = 0;
1415
+ return Le(e, function() {
1416
+ r++;
1417
+ }), r;
1418
+ }
1419
+ function Lr(e, r, s) {
1420
+ Le(e, function() {
1421
+ r.apply(this, arguments);
1422
+ }, s);
1423
+ }
1424
+ function Fr(e) {
1425
+ return Le(e, function(r) {
1426
+ return r;
1427
+ }) || [];
1428
+ }
1429
+ function Hr(e) {
1430
+ if (!le(e))
1431
+ throw new Error("React.Children.only expected to receive a single React element child.");
1432
+ return e;
1433
+ }
1434
+ function zr(e) {
1435
+ var r = {
1436
+ $$typeof: C,
1437
+ // As a workaround to support multiple concurrent renderers, we categorize
1438
+ // some renderers as primary and others as secondary. We only expect
1439
+ // there to be two concurrent renderers at most: React Native (primary) and
1440
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1441
+ // Secondary renderers store their context values on separate fields.
1442
+ _currentValue: e,
1443
+ _currentValue2: e,
1444
+ // Used to track how many concurrent renderers this context currently
1445
+ // supports within in a single renderer. Such as parallel server rendering.
1446
+ _threadCount: 0,
1447
+ // These are circular
1448
+ Provider: null,
1449
+ Consumer: null,
1450
+ // Add these to use same hidden class in VM as ServerContext
1451
+ _defaultValue: null,
1452
+ _globalName: null
1453
+ };
1454
+ r.Provider = {
1455
+ $$typeof: v,
1456
+ _context: r
1457
+ };
1458
+ var s = !1, u = !1, p = !1;
1459
+ {
1460
+ var y = {
1461
+ $$typeof: C,
1462
+ _context: r
1463
+ };
1464
+ Object.defineProperties(y, {
1465
+ Provider: {
1466
+ get: function() {
1467
+ return u || (u = !0, _("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
1468
+ },
1469
+ set: function(h) {
1470
+ r.Provider = h;
1471
+ }
1472
+ },
1473
+ _currentValue: {
1474
+ get: function() {
1475
+ return r._currentValue;
1476
+ },
1477
+ set: function(h) {
1478
+ r._currentValue = h;
1479
+ }
1480
+ },
1481
+ _currentValue2: {
1482
+ get: function() {
1483
+ return r._currentValue2;
1484
+ },
1485
+ set: function(h) {
1486
+ r._currentValue2 = h;
1487
+ }
1488
+ },
1489
+ _threadCount: {
1490
+ get: function() {
1491
+ return r._threadCount;
1492
+ },
1493
+ set: function(h) {
1494
+ r._threadCount = h;
1495
+ }
1496
+ },
1497
+ Consumer: {
1498
+ get: function() {
1499
+ return s || (s = !0, _("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
1500
+ }
1501
+ },
1502
+ displayName: {
1503
+ get: function() {
1504
+ return r.displayName;
1505
+ },
1506
+ set: function(h) {
1507
+ p || (J("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", h), p = !0);
1508
+ }
1509
+ }
1510
+ }), r.Consumer = y;
1511
+ }
1512
+ return r._currentRenderer = null, r._currentRenderer2 = null, r;
1513
+ }
1514
+ var be = -1, tt = 0, jt = 1, Vr = 2;
1515
+ function Wr(e) {
1516
+ if (e._status === be) {
1517
+ var r = e._result, s = r();
1518
+ if (s.then(function(y) {
1519
+ if (e._status === tt || e._status === be) {
1520
+ var h = e;
1521
+ h._status = jt, h._result = y;
1522
+ }
1523
+ }, function(y) {
1524
+ if (e._status === tt || e._status === be) {
1525
+ var h = e;
1526
+ h._status = Vr, h._result = y;
1527
+ }
1528
+ }), e._status === be) {
1529
+ var u = e;
1530
+ u._status = tt, u._result = s;
1531
+ }
1532
+ }
1533
+ if (e._status === jt) {
1534
+ var p = e._result;
1535
+ return p === void 0 && _(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1536
+
1537
+ Your code should look like:
1538
+ const MyComponent = lazy(() => import('./MyComponent'))
1539
+
1540
+ Did you accidentally put curly braces around the import?`, p), "default" in p || _(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1541
+
1542
+ Your code should look like:
1543
+ const MyComponent = lazy(() => import('./MyComponent'))`, p), p.default;
1544
+ } else
1545
+ throw e._result;
1546
+ }
1547
+ function Br(e) {
1548
+ var r = {
1549
+ // We use these fields to store the result.
1550
+ _status: be,
1551
+ _result: e
1552
+ }, s = {
1553
+ $$typeof: B,
1554
+ _payload: r,
1555
+ _init: Wr
1556
+ };
1557
+ {
1558
+ var u, p;
1559
+ Object.defineProperties(s, {
1560
+ defaultProps: {
1561
+ configurable: !0,
1562
+ get: function() {
1563
+ return u;
1564
+ },
1565
+ set: function(y) {
1566
+ _("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = y, Object.defineProperty(s, "defaultProps", {
1567
+ enumerable: !0
1568
+ });
1569
+ }
1570
+ },
1571
+ propTypes: {
1572
+ configurable: !0,
1573
+ get: function() {
1574
+ return p;
1575
+ },
1576
+ set: function(y) {
1577
+ _("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), p = y, Object.defineProperty(s, "propTypes", {
1578
+ enumerable: !0
1579
+ });
1580
+ }
1581
+ }
1582
+ });
1583
+ }
1584
+ return s;
1585
+ }
1586
+ function Yr(e) {
1587
+ e != null && e.$$typeof === I ? _("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? _("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && _("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && _("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1588
+ var r = {
1589
+ $$typeof: P,
1590
+ render: e
1591
+ };
1592
+ {
1593
+ var s;
1594
+ Object.defineProperty(r, "displayName", {
1595
+ enumerable: !1,
1596
+ configurable: !0,
1597
+ get: function() {
1598
+ return s;
1599
+ },
1600
+ set: function(u) {
1601
+ s = u, !e.name && !e.displayName && (e.displayName = u);
1602
+ }
1603
+ });
1604
+ }
1605
+ return r;
1606
+ }
1607
+ var Mt;
1608
+ Mt = Symbol.for("react.module.reference");
1609
+ function Dt(e) {
1610
+ return !!(typeof e == "string" || typeof e == "function" || e === l || e === g || ue || e === d || e === w || e === H || me || e === ke || _e || Qe || Me || typeof e == "object" && e !== null && (e.$$typeof === B || e.$$typeof === I || e.$$typeof === v || e.$$typeof === C || e.$$typeof === P || // This needs to include all possible module reference object
1611
+ // types supported by any Flight configuration anywhere since
1612
+ // we don't know which Flight build this will end up being used
1613
+ // with.
1614
+ e.$$typeof === Mt || e.getModuleId !== void 0));
1615
+ }
1616
+ function qr(e, r) {
1617
+ Dt(e) || _("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
1618
+ var s = {
1619
+ $$typeof: I,
1620
+ type: e,
1621
+ compare: r === void 0 ? null : r
1622
+ };
1623
+ {
1624
+ var u;
1625
+ Object.defineProperty(s, "displayName", {
1626
+ enumerable: !1,
1627
+ configurable: !0,
1628
+ get: function() {
1629
+ return u;
1630
+ },
1631
+ set: function(p) {
1632
+ u = p, !e.name && !e.displayName && (e.displayName = p);
1633
+ }
1634
+ });
1635
+ }
1636
+ return s;
1637
+ }
1638
+ function V() {
1639
+ var e = ae.current;
1640
+ return e === null && _(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1641
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
1642
+ 2. You might be breaking the Rules of Hooks
1643
+ 3. You might have more than one copy of React in the same app
1644
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
1645
+ }
1646
+ function Kr(e) {
1647
+ var r = V();
1648
+ if (e._context !== void 0) {
1649
+ var s = e._context;
1650
+ s.Consumer === e ? _("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : s.Provider === e && _("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1651
+ }
1652
+ return r.useContext(e);
1653
+ }
1654
+ function Gr(e) {
1655
+ var r = V();
1656
+ return r.useState(e);
1657
+ }
1658
+ function Jr(e, r, s) {
1659
+ var u = V();
1660
+ return u.useReducer(e, r, s);
1661
+ }
1662
+ function Qr(e) {
1663
+ var r = V();
1664
+ return r.useRef(e);
1665
+ }
1666
+ function Xr(e, r) {
1667
+ var s = V();
1668
+ return s.useEffect(e, r);
1669
+ }
1670
+ function Zr(e, r) {
1671
+ var s = V();
1672
+ return s.useInsertionEffect(e, r);
1673
+ }
1674
+ function en(e, r) {
1675
+ var s = V();
1676
+ return s.useLayoutEffect(e, r);
1677
+ }
1678
+ function tn(e, r) {
1679
+ var s = V();
1680
+ return s.useCallback(e, r);
1681
+ }
1682
+ function rn(e, r) {
1683
+ var s = V();
1684
+ return s.useMemo(e, r);
1685
+ }
1686
+ function nn(e, r, s) {
1687
+ var u = V();
1688
+ return u.useImperativeHandle(e, r, s);
1689
+ }
1690
+ function on(e, r) {
1691
+ {
1692
+ var s = V();
1693
+ return s.useDebugValue(e, r);
1694
+ }
1695
+ }
1696
+ function sn() {
1697
+ var e = V();
1698
+ return e.useTransition();
1699
+ }
1700
+ function an(e) {
1701
+ var r = V();
1702
+ return r.useDeferredValue(e);
1703
+ }
1704
+ function un() {
1705
+ var e = V();
1706
+ return e.useId();
1707
+ }
1708
+ function cn(e, r, s) {
1709
+ var u = V();
1710
+ return u.useSyncExternalStore(e, r, s);
1711
+ }
1712
+ var Ee = 0, Ut, It, Nt, Lt, Ft, Ht, zt;
1713
+ function Vt() {
1714
+ }
1715
+ Vt.__reactDisabledLog = !0;
1716
+ function ln() {
1717
+ {
1718
+ if (Ee === 0) {
1719
+ Ut = console.log, It = console.info, Nt = console.warn, Lt = console.error, Ft = console.group, Ht = console.groupCollapsed, zt = console.groupEnd;
1720
+ var e = {
1721
+ configurable: !0,
1722
+ enumerable: !0,
1723
+ value: Vt,
1724
+ writable: !0
1725
+ };
1726
+ Object.defineProperties(console, {
1727
+ info: e,
1728
+ log: e,
1729
+ warn: e,
1730
+ error: e,
1731
+ group: e,
1732
+ groupCollapsed: e,
1733
+ groupEnd: e
1734
+ });
1735
+ }
1736
+ Ee++;
1737
+ }
1738
+ }
1739
+ function fn() {
1740
+ {
1741
+ if (Ee--, Ee === 0) {
1742
+ var e = {
1743
+ configurable: !0,
1744
+ enumerable: !0,
1745
+ writable: !0
1746
+ };
1747
+ Object.defineProperties(console, {
1748
+ log: f({}, e, {
1749
+ value: Ut
1750
+ }),
1751
+ info: f({}, e, {
1752
+ value: It
1753
+ }),
1754
+ warn: f({}, e, {
1755
+ value: Nt
1756
+ }),
1757
+ error: f({}, e, {
1758
+ value: Lt
1759
+ }),
1760
+ group: f({}, e, {
1761
+ value: Ft
1762
+ }),
1763
+ groupCollapsed: f({}, e, {
1764
+ value: Ht
1765
+ }),
1766
+ groupEnd: f({}, e, {
1767
+ value: zt
1768
+ })
1769
+ });
1770
+ }
1771
+ Ee < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1772
+ }
1773
+ }
1774
+ var rt = Y.ReactCurrentDispatcher, nt;
1775
+ function Fe(e, r, s) {
1776
+ {
1777
+ if (nt === void 0)
1778
+ try {
1779
+ throw Error();
1780
+ } catch (p) {
1781
+ var u = p.stack.trim().match(/\n( *(at )?)/);
1782
+ nt = u && u[1] || "";
1783
+ }
1784
+ return `
1785
+ ` + nt + e;
1786
+ }
1787
+ }
1788
+ var ot = !1, He;
1789
+ {
1790
+ var dn = typeof WeakMap == "function" ? WeakMap : Map;
1791
+ He = new dn();
1792
+ }
1793
+ function Wt(e, r) {
1794
+ if (!e || ot)
1795
+ return "";
1796
+ {
1797
+ var s = He.get(e);
1798
+ if (s !== void 0)
1799
+ return s;
1800
+ }
1801
+ var u;
1802
+ ot = !0;
1803
+ var p = Error.prepareStackTrace;
1804
+ Error.prepareStackTrace = void 0;
1805
+ var y;
1806
+ y = rt.current, rt.current = null, ln();
1807
+ try {
1808
+ if (r) {
1809
+ var h = function() {
1810
+ throw Error();
1811
+ };
1812
+ if (Object.defineProperty(h.prototype, "props", {
1813
+ set: function() {
1814
+ throw Error();
1815
+ }
1816
+ }), typeof Reflect == "object" && Reflect.construct) {
1817
+ try {
1818
+ Reflect.construct(h, []);
1819
+ } catch (F) {
1820
+ u = F;
1821
+ }
1822
+ Reflect.construct(e, [], h);
1823
+ } else {
1824
+ try {
1825
+ h.call();
1826
+ } catch (F) {
1827
+ u = F;
1828
+ }
1829
+ e.call(h.prototype);
1830
+ }
1831
+ } else {
1832
+ try {
1833
+ throw Error();
1834
+ } catch (F) {
1835
+ u = F;
1836
+ }
1837
+ e();
1838
+ }
1839
+ } catch (F) {
1840
+ if (F && u && typeof F.stack == "string") {
1841
+ for (var m = F.stack.split(`
1842
+ `), $ = u.stack.split(`
1843
+ `), R = m.length - 1, T = $.length - 1; R >= 1 && T >= 0 && m[R] !== $[T]; )
1844
+ T--;
1845
+ for (; R >= 1 && T >= 0; R--, T--)
1846
+ if (m[R] !== $[T]) {
1847
+ if (R !== 1 || T !== 1)
1848
+ do
1849
+ if (R--, T--, T < 0 || m[R] !== $[T]) {
1850
+ var k = `
1851
+ ` + m[R].replace(" at new ", " at ");
1852
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && He.set(e, k), k;
1853
+ }
1854
+ while (R >= 1 && T >= 0);
1855
+ break;
1856
+ }
1857
+ }
1858
+ } finally {
1859
+ ot = !1, rt.current = y, fn(), Error.prepareStackTrace = p;
1860
+ }
1861
+ var M = e ? e.displayName || e.name : "", U = M ? Fe(M) : "";
1862
+ return typeof e == "function" && He.set(e, U), U;
1863
+ }
1864
+ function pn(e, r, s) {
1865
+ return Wt(e, !1);
1866
+ }
1867
+ function hn(e) {
1868
+ var r = e.prototype;
1869
+ return !!(r && r.isReactComponent);
1870
+ }
1871
+ function ze(e, r, s) {
1872
+ if (e == null)
1873
+ return "";
1874
+ if (typeof e == "function")
1875
+ return Wt(e, hn(e));
1876
+ if (typeof e == "string")
1877
+ return Fe(e);
1878
+ switch (e) {
1879
+ case w:
1880
+ return Fe("Suspense");
1881
+ case H:
1882
+ return Fe("SuspenseList");
1883
+ }
1884
+ if (typeof e == "object")
1885
+ switch (e.$$typeof) {
1886
+ case P:
1887
+ return pn(e.render);
1888
+ case I:
1889
+ return ze(e.type, r, s);
1890
+ case B: {
1891
+ var u = e, p = u._payload, y = u._init;
1892
+ try {
1893
+ return ze(y(p), r, s);
1894
+ } catch {
1895
+ }
1896
+ }
1897
+ }
1898
+ return "";
1899
+ }
1900
+ var Bt = {}, Yt = Y.ReactDebugCurrentFrame;
1901
+ function Ve(e) {
1902
+ if (e) {
1903
+ var r = e._owner, s = ze(e.type, e._source, r ? r.type : null);
1904
+ Yt.setExtraStackFrame(s);
1905
+ } else
1906
+ Yt.setExtraStackFrame(null);
1907
+ }
1908
+ function vn(e, r, s, u, p) {
1909
+ {
1910
+ var y = Function.call.bind(ge);
1911
+ for (var h in e)
1912
+ if (y(e, h)) {
1913
+ var m = void 0;
1914
+ try {
1915
+ if (typeof e[h] != "function") {
1916
+ var $ = Error((u || "React class") + ": " + s + " 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`.");
1917
+ throw $.name = "Invariant Violation", $;
1918
+ }
1919
+ m = e[h](r, h, u, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1920
+ } catch (R) {
1921
+ m = R;
1922
+ }
1923
+ m && !(m instanceof Error) && (Ve(p), _("%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).", u || "React class", s, h, typeof m), Ve(null)), m instanceof Error && !(m.message in Bt) && (Bt[m.message] = !0, Ve(p), _("Failed %s type: %s", s, m.message), Ve(null));
1924
+ }
1925
+ }
1926
+ }
1927
+ function fe(e) {
1928
+ if (e) {
1929
+ var r = e._owner, s = ze(e.type, e._source, r ? r.type : null);
1930
+ je(s);
1931
+ } else
1932
+ je(null);
1933
+ }
1934
+ var it;
1935
+ it = !1;
1936
+ function qt() {
1937
+ if (W.current) {
1938
+ var e = Q(W.current.type);
1939
+ if (e)
1940
+ return `
1941
+
1942
+ Check the render method of \`` + e + "`.";
1943
+ }
1944
+ return "";
1945
+ }
1946
+ function yn(e) {
1947
+ if (e !== void 0) {
1948
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
1949
+ return `
1950
+
1951
+ Check your code at ` + r + ":" + s + ".";
1952
+ }
1953
+ return "";
1954
+ }
1955
+ function _n(e) {
1956
+ return e != null ? yn(e.__source) : "";
1957
+ }
1958
+ var Kt = {};
1959
+ function mn(e) {
1960
+ var r = qt();
1961
+ if (!r) {
1962
+ var s = typeof e == "string" ? e : e.displayName || e.name;
1963
+ s && (r = `
1964
+
1965
+ Check the top-level render call using <` + s + ">.");
1966
+ }
1967
+ return r;
1968
+ }
1969
+ function Gt(e, r) {
1970
+ if (!(!e._store || e._store.validated || e.key != null)) {
1971
+ e._store.validated = !0;
1972
+ var s = mn(r);
1973
+ if (!Kt[s]) {
1974
+ Kt[s] = !0;
1975
+ var u = "";
1976
+ e && e._owner && e._owner !== W.current && (u = " It was passed a child from " + Q(e._owner.type) + "."), fe(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, u), fe(null);
1977
+ }
1978
+ }
1979
+ }
1980
+ function Jt(e, r) {
1981
+ if (typeof e == "object") {
1982
+ if (Ue(e))
1983
+ for (var s = 0; s < e.length; s++) {
1984
+ var u = e[s];
1985
+ le(u) && Gt(u, r);
1986
+ }
1987
+ else if (le(e))
1988
+ e._store && (e._store.validated = !0);
1989
+ else if (e) {
1990
+ var p = se(e);
1991
+ if (typeof p == "function" && p !== e.entries)
1992
+ for (var y = p.call(e), h; !(h = y.next()).done; )
1993
+ le(h.value) && Gt(h.value, r);
1994
+ }
1995
+ }
1996
+ }
1997
+ function Qt(e) {
1998
+ {
1999
+ var r = e.type;
2000
+ if (r == null || typeof r == "string")
2001
+ return;
2002
+ var s;
2003
+ if (typeof r == "function")
2004
+ s = r.propTypes;
2005
+ else if (typeof r == "object" && (r.$$typeof === P || // Note: Memo only checks outer props here.
2006
+ // Inner props are checked in the reconciler.
2007
+ r.$$typeof === I))
2008
+ s = r.propTypes;
2009
+ else
2010
+ return;
2011
+ if (s) {
2012
+ var u = Q(r);
2013
+ vn(s, e.props, "prop", u, e);
2014
+ } else if (r.PropTypes !== void 0 && !it) {
2015
+ it = !0;
2016
+ var p = Q(r);
2017
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
2018
+ }
2019
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2020
+ }
2021
+ }
2022
+ function gn(e) {
2023
+ {
2024
+ for (var r = Object.keys(e.props), s = 0; s < r.length; s++) {
2025
+ var u = r[s];
2026
+ if (u !== "children" && u !== "key") {
2027
+ fe(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), fe(null);
2028
+ break;
2029
+ }
2030
+ }
2031
+ e.ref !== null && (fe(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
2032
+ }
2033
+ }
2034
+ function Xt(e, r, s) {
2035
+ var u = Dt(e);
2036
+ if (!u) {
2037
+ var p = "";
2038
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2039
+ var y = _n(r);
2040
+ y ? p += y : p += qt();
2041
+ var h;
2042
+ e === null ? h = "null" : Ue(e) ? h = "array" : e !== void 0 && e.$$typeof === o ? (h = "<" + (Q(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, _("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, p);
2043
+ }
2044
+ var m = xr.apply(this, arguments);
2045
+ if (m == null)
2046
+ return m;
2047
+ if (u)
2048
+ for (var $ = 2; $ < arguments.length; $++)
2049
+ Jt(arguments[$], e);
2050
+ return e === l ? gn(m) : Qt(m), m;
2051
+ }
2052
+ var Zt = !1;
2053
+ function bn(e) {
2054
+ var r = Xt.bind(null, e);
2055
+ return r.type = e, Zt || (Zt = !0, J("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
2056
+ enumerable: !1,
2057
+ get: function() {
2058
+ return J("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
2059
+ value: e
2060
+ }), e;
2061
+ }
2062
+ }), r;
2063
+ }
2064
+ function En(e, r, s) {
2065
+ for (var u = Mr.apply(this, arguments), p = 2; p < arguments.length; p++)
2066
+ Jt(arguments[p], u.type);
2067
+ return Qt(u), u;
2068
+ }
2069
+ function $n(e, r) {
2070
+ var s = K.transition;
2071
+ K.transition = {};
2072
+ var u = K.transition;
2073
+ K.transition._updatedFibers = /* @__PURE__ */ new Set();
2074
+ try {
2075
+ e();
2076
+ } finally {
2077
+ if (K.transition = s, s === null && u._updatedFibers) {
2078
+ var p = u._updatedFibers.size;
2079
+ p > 10 && J("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), u._updatedFibers.clear();
2080
+ }
2081
+ }
2082
+ }
2083
+ var er = !1, We = null;
2084
+ function Sn(e) {
2085
+ if (We === null)
2086
+ try {
2087
+ var r = ("require" + Math.random()).slice(0, 7), s = c && c[r];
2088
+ We = s.call(c, "timers").setImmediate;
2089
+ } catch {
2090
+ We = function(p) {
2091
+ er === !1 && (er = !0, typeof MessageChannel > "u" && _("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
2092
+ var y = new MessageChannel();
2093
+ y.port1.onmessage = p, y.port2.postMessage(void 0);
2094
+ };
2095
+ }
2096
+ return We(e);
2097
+ }
2098
+ var de = 0, tr = !1;
2099
+ function rr(e) {
2100
+ {
2101
+ var r = de;
2102
+ de++, N.current === null && (N.current = []);
2103
+ var s = N.isBatchingLegacy, u;
2104
+ try {
2105
+ if (N.isBatchingLegacy = !0, u = e(), !s && N.didScheduleLegacyUpdate) {
2106
+ var p = N.current;
2107
+ p !== null && (N.didScheduleLegacyUpdate = !1, ut(p));
2108
+ }
2109
+ } catch (M) {
2110
+ throw Be(r), M;
2111
+ } finally {
2112
+ N.isBatchingLegacy = s;
2113
+ }
2114
+ if (u !== null && typeof u == "object" && typeof u.then == "function") {
2115
+ var y = u, h = !1, m = {
2116
+ then: function(M, U) {
2117
+ h = !0, y.then(function(F) {
2118
+ Be(r), de === 0 ? st(F, M, U) : M(F);
2119
+ }, function(F) {
2120
+ Be(r), U(F);
2121
+ });
2122
+ }
2123
+ };
2124
+ return !tr && typeof Promise < "u" && Promise.resolve().then(function() {
2125
+ }).then(function() {
2126
+ h || (tr = !0, _("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
2127
+ }), m;
2128
+ } else {
2129
+ var $ = u;
2130
+ if (Be(r), de === 0) {
2131
+ var R = N.current;
2132
+ R !== null && (ut(R), N.current = null);
2133
+ var T = {
2134
+ then: function(M, U) {
2135
+ N.current === null ? (N.current = [], st($, M, U)) : M($);
2136
+ }
2137
+ };
2138
+ return T;
2139
+ } else {
2140
+ var k = {
2141
+ then: function(M, U) {
2142
+ M($);
2143
+ }
2144
+ };
2145
+ return k;
2146
+ }
2147
+ }
2148
+ }
2149
+ }
2150
+ function Be(e) {
2151
+ e !== de - 1 && _("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), de = e;
2152
+ }
2153
+ function st(e, r, s) {
2154
+ {
2155
+ var u = N.current;
2156
+ if (u !== null)
2157
+ try {
2158
+ ut(u), Sn(function() {
2159
+ u.length === 0 ? (N.current = null, r(e)) : st(e, r, s);
2160
+ });
2161
+ } catch (p) {
2162
+ s(p);
2163
+ }
2164
+ else
2165
+ r(e);
2166
+ }
2167
+ }
2168
+ var at = !1;
2169
+ function ut(e) {
2170
+ if (!at) {
2171
+ at = !0;
2172
+ var r = 0;
2173
+ try {
2174
+ for (; r < e.length; r++) {
2175
+ var s = e[r];
2176
+ do
2177
+ s = s(!0);
2178
+ while (s !== null);
2179
+ }
2180
+ e.length = 0;
2181
+ } catch (u) {
2182
+ throw e = e.slice(r + 1), u;
2183
+ } finally {
2184
+ at = !1;
2185
+ }
2186
+ }
2187
+ }
2188
+ var wn = Xt, An = En, Cn = bn, Rn = {
2189
+ map: Le,
2190
+ forEach: Lr,
2191
+ count: Nr,
2192
+ toArray: Fr,
2193
+ only: Hr
2194
+ };
2195
+ t.Children = Rn, t.Component = S, t.Fragment = l, t.Profiler = g, t.PureComponent = O, t.StrictMode = d, t.Suspense = w, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Y, t.act = rr, t.cloneElement = An, t.createContext = zr, t.createElement = wn, t.createFactory = Cn, t.createRef = wr, t.forwardRef = Yr, t.isValidElement = le, t.lazy = Br, t.memo = qr, t.startTransition = $n, t.unstable_act = rr, t.useCallback = tn, t.useContext = Kr, t.useDebugValue = on, t.useDeferredValue = an, t.useEffect = Xr, t.useId = un, t.useImperativeHandle = nn, t.useInsertionEffect = Zr, t.useLayoutEffect = en, t.useMemo = rn, t.useReducer = Jr, t.useRef = Qr, t.useState = Gr, t.useSyncExternalStore = cn, t.useTransition = sn, t.version = n, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2196
+ }();
2197
+ }(Se, Se.exports)), Se.exports;
2198
+ }
2199
+ process.env.NODE_ENV === "production" ? ht.exports = no() : ht.exports = oo();
2200
+ var vt = ht.exports;
2201
+ const io = /* @__PURE__ */ ro(vt), uo = ({
2202
+ onUiClick: c,
2203
+ children: t,
2204
+ ...n
2205
+ }) => {
2206
+ const o = vt.useRef(null);
2207
+ return vt.useEffect(() => {
2208
+ const a = o.current;
2209
+ if (!a || !c) return;
2210
+ const l = (d) => {
2211
+ c(d);
2212
+ };
2213
+ return a.addEventListener("ui-click", l), () => {
2214
+ a.removeEventListener("ui-click", l);
2215
+ };
2216
+ }, [c]), /* @__PURE__ */ io.createElement("ui-button", { ref: o, ...n }, t);
2217
+ };
2218
+ export {
2219
+ ye as UiButton,
2220
+ uo as iButton
2221
+ };