@arcgis/instant-apps-components-react 4.34.0-next.51 → 4.34.0-next.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1,2990 @@
1
- export * from "./components";
1
+ var An = Object.getPrototypeOf;
2
+ var Cn = Reflect.get;
3
+ var It = (s) => {
4
+ throw TypeError(s);
5
+ };
6
+ var ct = (s, e, t) => e.has(s) || It("Cannot " + t);
7
+ var L = (s, e, t) => (ct(s, e, "read from private field"), t ? t.call(s) : e.get(s)), F = (s, e, t) => e.has(s) ? It("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), V = (s, e, t, o) => (ct(s, e, "write to private field"), o ? o.call(s, t) : e.set(s, t), t), ge = (s, e, t) => (ct(s, e, "access private method"), t);
8
+ var Mt = (s, e, t) => Cn(An(s), t, e);
9
+ function On(s) {
10
+ return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
11
+ }
12
+ var Qe = { exports: {} }, w = {};
13
+ /**
14
+ * @license React
15
+ * react.production.js
16
+ *
17
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+ var jt;
23
+ function Sn() {
24
+ if (jt) return w;
25
+ jt = 1;
26
+ var s = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), _ = Symbol.iterator;
27
+ function D(i) {
28
+ return i === null || typeof i != "object" ? null : (i = _ && i[_] || i["@@iterator"], typeof i == "function" ? i : null);
29
+ }
30
+ var N = {
31
+ isMounted: function() {
32
+ return !1;
33
+ },
34
+ enqueueForceUpdate: function() {
35
+ },
36
+ enqueueReplaceState: function() {
37
+ },
38
+ enqueueSetState: function() {
39
+ }
40
+ }, I = Object.assign, Z = {};
41
+ function q(i, l, E) {
42
+ this.props = i, this.context = l, this.refs = Z, this.updater = E || N;
43
+ }
44
+ q.prototype.isReactComponent = {}, q.prototype.setState = function(i, l) {
45
+ if (typeof i != "object" && typeof i != "function" && i != null)
46
+ throw Error(
47
+ "takes an object of state variables to update or a function which returns an object of state variables."
48
+ );
49
+ this.updater.enqueueSetState(this, i, l, "setState");
50
+ }, q.prototype.forceUpdate = function(i) {
51
+ this.updater.enqueueForceUpdate(this, i, "forceUpdate");
52
+ };
53
+ function pe() {
54
+ }
55
+ pe.prototype = q.prototype;
56
+ function Oe(i, l, E) {
57
+ this.props = i, this.context = l, this.refs = Z, this.updater = E || N;
58
+ }
59
+ var K = Oe.prototype = new pe();
60
+ K.constructor = Oe, I(K, q.prototype), K.isPureReactComponent = !0;
61
+ var qe = Array.isArray, k = { H: null, A: null, T: null, S: null, V: null }, Se = Object.prototype.hasOwnProperty;
62
+ function Re(i, l, E, v, S, M) {
63
+ return E = M.ref, {
64
+ $$typeof: s,
65
+ type: i,
66
+ key: l,
67
+ ref: E !== void 0 ? E : null,
68
+ props: M
69
+ };
70
+ }
71
+ function J(i, l) {
72
+ return Re(
73
+ i.type,
74
+ l,
75
+ void 0,
76
+ void 0,
77
+ void 0,
78
+ i.props
79
+ );
80
+ }
81
+ function ee(i) {
82
+ return typeof i == "object" && i !== null && i.$$typeof === s;
83
+ }
84
+ function st(i) {
85
+ var l = { "=": "=0", ":": "=2" };
86
+ return "$" + i.replace(/[=:]/g, function(E) {
87
+ return l[E];
88
+ });
89
+ }
90
+ var j = /\/+/g;
91
+ function Te(i, l) {
92
+ return typeof i == "object" && i !== null && i.key != null ? st("" + i.key) : l.toString(36);
93
+ }
94
+ function se() {
95
+ }
96
+ function ie(i) {
97
+ switch (i.status) {
98
+ case "fulfilled":
99
+ return i.value;
100
+ case "rejected":
101
+ throw i.reason;
102
+ default:
103
+ switch (typeof i.status == "string" ? i.then(se, se) : (i.status = "pending", i.then(
104
+ function(l) {
105
+ i.status === "pending" && (i.status = "fulfilled", i.value = l);
106
+ },
107
+ function(l) {
108
+ i.status === "pending" && (i.status = "rejected", i.reason = l);
109
+ }
110
+ )), i.status) {
111
+ case "fulfilled":
112
+ return i.value;
113
+ case "rejected":
114
+ throw i.reason;
115
+ }
116
+ }
117
+ throw i;
118
+ }
119
+ function B(i, l, E, v, S) {
120
+ var M = typeof i;
121
+ (M === "undefined" || M === "boolean") && (i = null);
122
+ var $ = !1;
123
+ if (i === null) $ = !0;
124
+ else
125
+ switch (M) {
126
+ case "bigint":
127
+ case "string":
128
+ case "number":
129
+ $ = !0;
130
+ break;
131
+ case "object":
132
+ switch (i.$$typeof) {
133
+ case s:
134
+ case e:
135
+ $ = !0;
136
+ break;
137
+ case g:
138
+ return $ = i._init, B(
139
+ $(i._payload),
140
+ l,
141
+ E,
142
+ v,
143
+ S
144
+ );
145
+ }
146
+ }
147
+ if ($)
148
+ return S = S(i), $ = v === "" ? "." + Te(i, 0) : v, qe(S) ? (E = "", $ != null && (E = $.replace(j, "$&/") + "/"), B(S, l, E, "", function(ye) {
149
+ return ye;
150
+ })) : S != null && (ee(S) && (S = J(
151
+ S,
152
+ E + (S.key == null || i && i.key === S.key ? "" : ("" + S.key).replace(
153
+ j,
154
+ "$&/"
155
+ ) + "/") + $
156
+ )), l.push(S)), 1;
157
+ $ = 0;
158
+ var G = v === "" ? "." : v + ":";
159
+ if (qe(i))
160
+ for (var H = 0; H < i.length; H++)
161
+ v = i[H], M = G + Te(v, H), $ += B(
162
+ v,
163
+ l,
164
+ E,
165
+ M,
166
+ S
167
+ );
168
+ else if (H = D(i), typeof H == "function")
169
+ for (i = H.call(i), H = 0; !(v = i.next()).done; )
170
+ v = v.value, M = G + Te(v, H++), $ += B(
171
+ v,
172
+ l,
173
+ E,
174
+ M,
175
+ S
176
+ );
177
+ else if (M === "object") {
178
+ if (typeof i.then == "function")
179
+ return B(
180
+ ie(i),
181
+ l,
182
+ E,
183
+ v,
184
+ S
185
+ );
186
+ throw l = String(i), Error(
187
+ "Objects are not valid as a React child (found: " + (l === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : l) + "). If you meant to render a collection of children, use an array instead."
188
+ );
189
+ }
190
+ return $;
191
+ }
192
+ function te(i, l, E) {
193
+ if (i == null) return i;
194
+ var v = [], S = 0;
195
+ return B(i, v, "", "", function(M) {
196
+ return l.call(E, M, S++);
197
+ }), v;
198
+ }
199
+ function Ne(i) {
200
+ if (i._status === -1) {
201
+ var l = i._result;
202
+ l = l(), l.then(
203
+ function(E) {
204
+ (i._status === 0 || i._status === -1) && (i._status = 1, i._result = E);
205
+ },
206
+ function(E) {
207
+ (i._status === 0 || i._status === -1) && (i._status = 2, i._result = E);
208
+ }
209
+ ), i._status === -1 && (i._status = 0, i._result = l);
210
+ }
211
+ if (i._status === 1) return i._result.default;
212
+ throw i._result;
213
+ }
214
+ var fe = typeof reportError == "function" ? reportError : function(i) {
215
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
216
+ var l = new window.ErrorEvent("error", {
217
+ bubbles: !0,
218
+ cancelable: !0,
219
+ message: typeof i == "object" && i !== null && typeof i.message == "string" ? String(i.message) : String(i),
220
+ error: i
221
+ });
222
+ if (!window.dispatchEvent(l)) return;
223
+ } else if (typeof process == "object" && typeof process.emit == "function") {
224
+ process.emit("uncaughtException", i);
225
+ return;
226
+ }
227
+ console.error(i);
228
+ };
229
+ function Ye() {
230
+ }
231
+ return w.Children = {
232
+ map: te,
233
+ forEach: function(i, l, E) {
234
+ te(
235
+ i,
236
+ function() {
237
+ l.apply(this, arguments);
238
+ },
239
+ E
240
+ );
241
+ },
242
+ count: function(i) {
243
+ var l = 0;
244
+ return te(i, function() {
245
+ l++;
246
+ }), l;
247
+ },
248
+ toArray: function(i) {
249
+ return te(i, function(l) {
250
+ return l;
251
+ }) || [];
252
+ },
253
+ only: function(i) {
254
+ if (!ee(i))
255
+ throw Error(
256
+ "React.Children.only expected to receive a single React element child."
257
+ );
258
+ return i;
259
+ }
260
+ }, w.Component = q, w.Fragment = t, w.Profiler = r, w.PureComponent = Oe, w.StrictMode = o, w.Suspense = h, w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = k, w.__COMPILER_RUNTIME = {
261
+ __proto__: null,
262
+ c: function(i) {
263
+ return k.H.useMemoCache(i);
264
+ }
265
+ }, w.cache = function(i) {
266
+ return function() {
267
+ return i.apply(null, arguments);
268
+ };
269
+ }, w.cloneElement = function(i, l, E) {
270
+ if (i == null)
271
+ throw Error(
272
+ "The argument must be a React element, but you passed " + i + "."
273
+ );
274
+ var v = I({}, i.props), S = i.key, M = void 0;
275
+ if (l != null)
276
+ for ($ in l.ref !== void 0 && (M = void 0), l.key !== void 0 && (S = "" + l.key), l)
277
+ !Se.call(l, $) || $ === "key" || $ === "__self" || $ === "__source" || $ === "ref" && l.ref === void 0 || (v[$] = l[$]);
278
+ var $ = arguments.length - 2;
279
+ if ($ === 1) v.children = E;
280
+ else if (1 < $) {
281
+ for (var G = Array($), H = 0; H < $; H++)
282
+ G[H] = arguments[H + 2];
283
+ v.children = G;
284
+ }
285
+ return Re(i.type, S, void 0, void 0, M, v);
286
+ }, w.createContext = function(i) {
287
+ return i = {
288
+ $$typeof: u,
289
+ _currentValue: i,
290
+ _currentValue2: i,
291
+ _threadCount: 0,
292
+ Provider: null,
293
+ Consumer: null
294
+ }, i.Provider = i, i.Consumer = {
295
+ $$typeof: c,
296
+ _context: i
297
+ }, i;
298
+ }, w.createElement = function(i, l, E) {
299
+ var v, S = {}, M = null;
300
+ if (l != null)
301
+ for (v in l.key !== void 0 && (M = "" + l.key), l)
302
+ Se.call(l, v) && v !== "key" && v !== "__self" && v !== "__source" && (S[v] = l[v]);
303
+ var $ = arguments.length - 2;
304
+ if ($ === 1) S.children = E;
305
+ else if (1 < $) {
306
+ for (var G = Array($), H = 0; H < $; H++)
307
+ G[H] = arguments[H + 2];
308
+ S.children = G;
309
+ }
310
+ if (i && i.defaultProps)
311
+ for (v in $ = i.defaultProps, $)
312
+ S[v] === void 0 && (S[v] = $[v]);
313
+ return Re(i, M, void 0, void 0, null, S);
314
+ }, w.createRef = function() {
315
+ return { current: null };
316
+ }, w.forwardRef = function(i) {
317
+ return { $$typeof: p, render: i };
318
+ }, w.isValidElement = ee, w.lazy = function(i) {
319
+ return {
320
+ $$typeof: g,
321
+ _payload: { _status: -1, _result: i },
322
+ _init: Ne
323
+ };
324
+ }, w.memo = function(i, l) {
325
+ return {
326
+ $$typeof: m,
327
+ type: i,
328
+ compare: l === void 0 ? null : l
329
+ };
330
+ }, w.startTransition = function(i) {
331
+ var l = k.T, E = {};
332
+ k.T = E;
333
+ try {
334
+ var v = i(), S = k.S;
335
+ S !== null && S(E, v), typeof v == "object" && v !== null && typeof v.then == "function" && v.then(Ye, fe);
336
+ } catch (M) {
337
+ fe(M);
338
+ } finally {
339
+ k.T = l;
340
+ }
341
+ }, w.unstable_useCacheRefresh = function() {
342
+ return k.H.useCacheRefresh();
343
+ }, w.use = function(i) {
344
+ return k.H.use(i);
345
+ }, w.useActionState = function(i, l, E) {
346
+ return k.H.useActionState(i, l, E);
347
+ }, w.useCallback = function(i, l) {
348
+ return k.H.useCallback(i, l);
349
+ }, w.useContext = function(i) {
350
+ return k.H.useContext(i);
351
+ }, w.useDebugValue = function() {
352
+ }, w.useDeferredValue = function(i, l) {
353
+ return k.H.useDeferredValue(i, l);
354
+ }, w.useEffect = function(i, l, E) {
355
+ var v = k.H;
356
+ if (typeof E == "function")
357
+ throw Error(
358
+ "useEffect CRUD overload is not enabled in this build of React."
359
+ );
360
+ return v.useEffect(i, l);
361
+ }, w.useId = function() {
362
+ return k.H.useId();
363
+ }, w.useImperativeHandle = function(i, l, E) {
364
+ return k.H.useImperativeHandle(i, l, E);
365
+ }, w.useInsertionEffect = function(i, l) {
366
+ return k.H.useInsertionEffect(i, l);
367
+ }, w.useLayoutEffect = function(i, l) {
368
+ return k.H.useLayoutEffect(i, l);
369
+ }, w.useMemo = function(i, l) {
370
+ return k.H.useMemo(i, l);
371
+ }, w.useOptimistic = function(i, l) {
372
+ return k.H.useOptimistic(i, l);
373
+ }, w.useReducer = function(i, l, E) {
374
+ return k.H.useReducer(i, l, E);
375
+ }, w.useRef = function(i) {
376
+ return k.H.useRef(i);
377
+ }, w.useState = function(i) {
378
+ return k.H.useState(i);
379
+ }, w.useSyncExternalStore = function(i, l, E) {
380
+ return k.H.useSyncExternalStore(
381
+ i,
382
+ l,
383
+ E
384
+ );
385
+ }, w.useTransition = function() {
386
+ return k.H.useTransition();
387
+ }, w.version = "19.1.0", w;
388
+ }
389
+ var Pe = { exports: {} };
390
+ /**
391
+ * @license React
392
+ * react.development.js
393
+ *
394
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
395
+ *
396
+ * This source code is licensed under the MIT license found in the
397
+ * LICENSE file in the root directory of this source tree.
398
+ */
399
+ Pe.exports;
400
+ var Ht;
401
+ function Rn() {
402
+ return Ht || (Ht = 1, function(s, e) {
403
+ process.env.NODE_ENV !== "production" && function() {
404
+ function t(n, a) {
405
+ Object.defineProperty(c.prototype, n, {
406
+ get: function() {
407
+ console.warn(
408
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
409
+ a[0],
410
+ a[1]
411
+ );
412
+ }
413
+ });
414
+ }
415
+ function o(n) {
416
+ return n === null || typeof n != "object" ? null : (n = bt && n[bt] || n["@@iterator"], typeof n == "function" ? n : null);
417
+ }
418
+ function r(n, a) {
419
+ n = (n = n.constructor) && (n.displayName || n.name) || "ReactClass";
420
+ var d = n + "." + a;
421
+ $t[d] || (console.error(
422
+ "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.",
423
+ a,
424
+ n
425
+ ), $t[d] = !0);
426
+ }
427
+ function c(n, a, d) {
428
+ this.props = n, this.context = a, this.refs = it, this.updater = d || At;
429
+ }
430
+ function u() {
431
+ }
432
+ function p(n, a, d) {
433
+ this.props = n, this.context = a, this.refs = it, this.updater = d || At;
434
+ }
435
+ function h(n) {
436
+ return "" + n;
437
+ }
438
+ function m(n) {
439
+ try {
440
+ h(n);
441
+ var a = !1;
442
+ } catch {
443
+ a = !0;
444
+ }
445
+ if (a) {
446
+ a = console;
447
+ var d = a.error, f = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
448
+ return d.call(
449
+ a,
450
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
451
+ f
452
+ ), h(n);
453
+ }
454
+ }
455
+ function g(n) {
456
+ if (n == null) return null;
457
+ if (typeof n == "function")
458
+ return n.$$typeof === En ? null : n.displayName || n.name || null;
459
+ if (typeof n == "string") return n;
460
+ switch (n) {
461
+ case i:
462
+ return "Fragment";
463
+ case E:
464
+ return "Profiler";
465
+ case l:
466
+ return "StrictMode";
467
+ case $:
468
+ return "Suspense";
469
+ case G:
470
+ return "SuspenseList";
471
+ case vn:
472
+ return "Activity";
473
+ }
474
+ if (typeof n == "object")
475
+ switch (typeof n.tag == "number" && console.error(
476
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
477
+ ), n.$$typeof) {
478
+ case Ye:
479
+ return "Portal";
480
+ case S:
481
+ return (n.displayName || "Context") + ".Provider";
482
+ case v:
483
+ return (n._context.displayName || "Context") + ".Consumer";
484
+ case M:
485
+ var a = n.render;
486
+ return n = n.displayName, n || (n = a.displayName || a.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
487
+ case H:
488
+ return a = n.displayName || null, a !== null ? a : g(n.type) || "Memo";
489
+ case ye:
490
+ a = n._payload, n = n._init;
491
+ try {
492
+ return g(n(a));
493
+ } catch {
494
+ }
495
+ }
496
+ return null;
497
+ }
498
+ function _(n) {
499
+ if (n === i) return "<>";
500
+ if (typeof n == "object" && n !== null && n.$$typeof === ye)
501
+ return "<...>";
502
+ try {
503
+ var a = g(n);
504
+ return a ? "<" + a + ">" : "<...>";
505
+ } catch {
506
+ return "<...>";
507
+ }
508
+ }
509
+ function D() {
510
+ var n = C.A;
511
+ return n === null ? null : n.getOwner();
512
+ }
513
+ function N() {
514
+ return Error("react-stack-top-frame");
515
+ }
516
+ function I(n) {
517
+ if (Be.call(n, "key")) {
518
+ var a = Object.getOwnPropertyDescriptor(n, "key").get;
519
+ if (a && a.isReactWarning) return !1;
520
+ }
521
+ return n.key !== void 0;
522
+ }
523
+ function Z(n, a) {
524
+ function d() {
525
+ Rt || (Rt = !0, console.error(
526
+ "%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://react.dev/link/special-props)",
527
+ a
528
+ ));
529
+ }
530
+ d.isReactWarning = !0, Object.defineProperty(n, "key", {
531
+ get: d,
532
+ configurable: !0
533
+ });
534
+ }
535
+ function q() {
536
+ var n = g(this.type);
537
+ return Nt[n] || (Nt[n] = !0, console.error(
538
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
539
+ )), n = this.props.ref, n !== void 0 ? n : null;
540
+ }
541
+ function pe(n, a, d, f, y, O, b, P) {
542
+ return d = O.ref, n = {
543
+ $$typeof: fe,
544
+ type: n,
545
+ key: a,
546
+ props: O,
547
+ _owner: y
548
+ }, (d !== void 0 ? d : null) !== null ? Object.defineProperty(n, "ref", {
549
+ enumerable: !1,
550
+ get: q
551
+ }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
552
+ configurable: !1,
553
+ enumerable: !1,
554
+ writable: !0,
555
+ value: 0
556
+ }), Object.defineProperty(n, "_debugInfo", {
557
+ configurable: !1,
558
+ enumerable: !1,
559
+ writable: !0,
560
+ value: null
561
+ }), Object.defineProperty(n, "_debugStack", {
562
+ configurable: !1,
563
+ enumerable: !1,
564
+ writable: !0,
565
+ value: b
566
+ }), Object.defineProperty(n, "_debugTask", {
567
+ configurable: !1,
568
+ enumerable: !1,
569
+ writable: !0,
570
+ value: P
571
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
572
+ }
573
+ function Oe(n, a) {
574
+ return a = pe(
575
+ n.type,
576
+ a,
577
+ void 0,
578
+ void 0,
579
+ n._owner,
580
+ n.props,
581
+ n._debugStack,
582
+ n._debugTask
583
+ ), n._store && (a._store.validated = n._store.validated), a;
584
+ }
585
+ function K(n) {
586
+ return typeof n == "object" && n !== null && n.$$typeof === fe;
587
+ }
588
+ function qe(n) {
589
+ var a = { "=": "=0", ":": "=2" };
590
+ return "$" + n.replace(/[=:]/g, function(d) {
591
+ return a[d];
592
+ });
593
+ }
594
+ function k(n, a) {
595
+ return typeof n == "object" && n !== null && n.key != null ? (m(n.key), qe("" + n.key)) : a.toString(36);
596
+ }
597
+ function Se() {
598
+ }
599
+ function Re(n) {
600
+ switch (n.status) {
601
+ case "fulfilled":
602
+ return n.value;
603
+ case "rejected":
604
+ throw n.reason;
605
+ default:
606
+ switch (typeof n.status == "string" ? n.then(Se, Se) : (n.status = "pending", n.then(
607
+ function(a) {
608
+ n.status === "pending" && (n.status = "fulfilled", n.value = a);
609
+ },
610
+ function(a) {
611
+ n.status === "pending" && (n.status = "rejected", n.reason = a);
612
+ }
613
+ )), n.status) {
614
+ case "fulfilled":
615
+ return n.value;
616
+ case "rejected":
617
+ throw n.reason;
618
+ }
619
+ }
620
+ throw n;
621
+ }
622
+ function J(n, a, d, f, y) {
623
+ var O = typeof n;
624
+ (O === "undefined" || O === "boolean") && (n = null);
625
+ var b = !1;
626
+ if (n === null) b = !0;
627
+ else
628
+ switch (O) {
629
+ case "bigint":
630
+ case "string":
631
+ case "number":
632
+ b = !0;
633
+ break;
634
+ case "object":
635
+ switch (n.$$typeof) {
636
+ case fe:
637
+ case Ye:
638
+ b = !0;
639
+ break;
640
+ case ye:
641
+ return b = n._init, J(
642
+ b(n._payload),
643
+ a,
644
+ d,
645
+ f,
646
+ y
647
+ );
648
+ }
649
+ }
650
+ if (b) {
651
+ b = n, y = y(b);
652
+ var P = f === "" ? "." + k(b, 0) : f;
653
+ return Ot(y) ? (d = "", P != null && (d = P.replace(Pt, "$&/") + "/"), J(y, a, d, "", function(ne) {
654
+ return ne;
655
+ })) : y != null && (K(y) && (y.key != null && (b && b.key === y.key || m(y.key)), d = Oe(
656
+ y,
657
+ d + (y.key == null || b && b.key === y.key ? "" : ("" + y.key).replace(
658
+ Pt,
659
+ "$&/"
660
+ ) + "/") + P
661
+ ), f !== "" && b != null && K(b) && b.key == null && b._store && !b._store.validated && (d._store.validated = 2), y = d), a.push(y)), 1;
662
+ }
663
+ if (b = 0, P = f === "" ? "." : f + ":", Ot(n))
664
+ for (var A = 0; A < n.length; A++)
665
+ f = n[A], O = P + k(f, A), b += J(
666
+ f,
667
+ a,
668
+ d,
669
+ O,
670
+ y
671
+ );
672
+ else if (A = o(n), typeof A == "function")
673
+ for (A === n.entries && (Lt || console.warn(
674
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
675
+ ), Lt = !0), n = A.call(n), A = 0; !(f = n.next()).done; )
676
+ f = f.value, O = P + k(f, A++), b += J(
677
+ f,
678
+ a,
679
+ d,
680
+ O,
681
+ y
682
+ );
683
+ else if (O === "object") {
684
+ if (typeof n.then == "function")
685
+ return J(
686
+ Re(n),
687
+ a,
688
+ d,
689
+ f,
690
+ y
691
+ );
692
+ throw a = String(n), Error(
693
+ "Objects are not valid as a React child (found: " + (a === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : a) + "). If you meant to render a collection of children, use an array instead."
694
+ );
695
+ }
696
+ return b;
697
+ }
698
+ function ee(n, a, d) {
699
+ if (n == null) return n;
700
+ var f = [], y = 0;
701
+ return J(n, f, "", "", function(O) {
702
+ return a.call(d, O, y++);
703
+ }), f;
704
+ }
705
+ function st(n) {
706
+ if (n._status === -1) {
707
+ var a = n._result;
708
+ a = a(), a.then(
709
+ function(d) {
710
+ (n._status === 0 || n._status === -1) && (n._status = 1, n._result = d);
711
+ },
712
+ function(d) {
713
+ (n._status === 0 || n._status === -1) && (n._status = 2, n._result = d);
714
+ }
715
+ ), n._status === -1 && (n._status = 0, n._result = a);
716
+ }
717
+ if (n._status === 1)
718
+ return a = n._result, a === void 0 && console.error(
719
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
720
+
721
+ Your code should look like:
722
+ const MyComponent = lazy(() => import('./MyComponent'))
723
+
724
+ Did you accidentally put curly braces around the import?`,
725
+ a
726
+ ), "default" in a || console.error(
727
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
728
+
729
+ Your code should look like:
730
+ const MyComponent = lazy(() => import('./MyComponent'))`,
731
+ a
732
+ ), a.default;
733
+ throw n._result;
734
+ }
735
+ function j() {
736
+ var n = C.H;
737
+ return n === null && console.error(
738
+ `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:
739
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
740
+ 2. You might be breaking the Rules of Hooks
741
+ 3. You might have more than one copy of React in the same app
742
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
743
+ ), n;
744
+ }
745
+ function Te() {
746
+ }
747
+ function se(n) {
748
+ if (Fe === null)
749
+ try {
750
+ var a = ("require" + Math.random()).slice(0, 7);
751
+ Fe = (s && s[a]).call(
752
+ s,
753
+ "timers"
754
+ ).setImmediate;
755
+ } catch {
756
+ Fe = function(f) {
757
+ Dt === !1 && (Dt = !0, typeof MessageChannel > "u" && console.error(
758
+ "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."
759
+ ));
760
+ var y = new MessageChannel();
761
+ y.port1.onmessage = f, y.port2.postMessage(void 0);
762
+ };
763
+ }
764
+ return Fe(n);
765
+ }
766
+ function ie(n) {
767
+ return 1 < n.length && typeof AggregateError == "function" ? new AggregateError(n) : n[0];
768
+ }
769
+ function B(n, a) {
770
+ a !== Ke - 1 && console.error(
771
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
772
+ ), Ke = a;
773
+ }
774
+ function te(n, a, d) {
775
+ var f = C.actQueue;
776
+ if (f !== null)
777
+ if (f.length !== 0)
778
+ try {
779
+ Ne(f), se(function() {
780
+ return te(n, a, d);
781
+ });
782
+ return;
783
+ } catch (y) {
784
+ C.thrownErrors.push(y);
785
+ }
786
+ else C.actQueue = null;
787
+ 0 < C.thrownErrors.length ? (f = ie(C.thrownErrors), C.thrownErrors.length = 0, d(f)) : a(n);
788
+ }
789
+ function Ne(n) {
790
+ if (!at) {
791
+ at = !0;
792
+ var a = 0;
793
+ try {
794
+ for (; a < n.length; a++) {
795
+ var d = n[a];
796
+ do {
797
+ C.didUsePromise = !1;
798
+ var f = d(!1);
799
+ if (f !== null) {
800
+ if (C.didUsePromise) {
801
+ n[a] = d, n.splice(0, a);
802
+ return;
803
+ }
804
+ d = f;
805
+ } else break;
806
+ } while (!0);
807
+ }
808
+ n.length = 0;
809
+ } catch (y) {
810
+ n.splice(0, a + 1), C.thrownErrors.push(y);
811
+ } finally {
812
+ at = !1;
813
+ }
814
+ }
815
+ }
816
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
817
+ var fe = Symbol.for("react.transitional.element"), Ye = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), S = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), ye = Symbol.for("react.lazy"), vn = Symbol.for("react.activity"), bt = Symbol.iterator, $t = {}, At = {
818
+ isMounted: function() {
819
+ return !1;
820
+ },
821
+ enqueueForceUpdate: function(n) {
822
+ r(n, "forceUpdate");
823
+ },
824
+ enqueueReplaceState: function(n) {
825
+ r(n, "replaceState");
826
+ },
827
+ enqueueSetState: function(n) {
828
+ r(n, "setState");
829
+ }
830
+ }, Ct = Object.assign, it = {};
831
+ Object.freeze(it), c.prototype.isReactComponent = {}, c.prototype.setState = function(n, a) {
832
+ if (typeof n != "object" && typeof n != "function" && n != null)
833
+ throw Error(
834
+ "takes an object of state variables to update or a function which returns an object of state variables."
835
+ );
836
+ this.updater.enqueueSetState(this, n, a, "setState");
837
+ }, c.prototype.forceUpdate = function(n) {
838
+ this.updater.enqueueForceUpdate(this, n, "forceUpdate");
839
+ };
840
+ var Y = {
841
+ isMounted: [
842
+ "isMounted",
843
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
844
+ ],
845
+ replaceState: [
846
+ "replaceState",
847
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
848
+ ]
849
+ }, Ve;
850
+ for (Ve in Y)
851
+ Y.hasOwnProperty(Ve) && t(Ve, Y[Ve]);
852
+ u.prototype = c.prototype, Y = p.prototype = new u(), Y.constructor = p, Ct(Y, c.prototype), Y.isPureReactComponent = !0;
853
+ var Ot = Array.isArray, En = Symbol.for("react.client.reference"), C = {
854
+ H: null,
855
+ A: null,
856
+ T: null,
857
+ S: null,
858
+ V: null,
859
+ actQueue: null,
860
+ isBatchingLegacy: !1,
861
+ didScheduleLegacyUpdate: !1,
862
+ didUsePromise: !1,
863
+ thrownErrors: [],
864
+ getCurrentStack: null,
865
+ recentlyCreatedOwnerStacks: 0
866
+ }, Be = Object.prototype.hasOwnProperty, St = console.createTask ? console.createTask : function() {
867
+ return null;
868
+ };
869
+ Y = {
870
+ "react-stack-bottom-frame": function(n) {
871
+ return n();
872
+ }
873
+ };
874
+ var Rt, Tt, Nt = {}, _n = Y["react-stack-bottom-frame"].bind(Y, N)(), wn = St(_(N)), Lt = !1, Pt = /\/+/g, kt = typeof reportError == "function" ? reportError : function(n) {
875
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
876
+ var a = new window.ErrorEvent("error", {
877
+ bubbles: !0,
878
+ cancelable: !0,
879
+ message: typeof n == "object" && n !== null && typeof n.message == "string" ? String(n.message) : String(n),
880
+ error: n
881
+ });
882
+ if (!window.dispatchEvent(a)) return;
883
+ } else if (typeof process == "object" && typeof process.emit == "function") {
884
+ process.emit("uncaughtException", n);
885
+ return;
886
+ }
887
+ console.error(n);
888
+ }, Dt = !1, Fe = null, Ke = 0, Ge = !1, at = !1, Ut = typeof queueMicrotask == "function" ? function(n) {
889
+ queueMicrotask(function() {
890
+ return queueMicrotask(n);
891
+ });
892
+ } : se;
893
+ Y = Object.freeze({
894
+ __proto__: null,
895
+ c: function(n) {
896
+ return j().useMemoCache(n);
897
+ }
898
+ }), e.Children = {
899
+ map: ee,
900
+ forEach: function(n, a, d) {
901
+ ee(
902
+ n,
903
+ function() {
904
+ a.apply(this, arguments);
905
+ },
906
+ d
907
+ );
908
+ },
909
+ count: function(n) {
910
+ var a = 0;
911
+ return ee(n, function() {
912
+ a++;
913
+ }), a;
914
+ },
915
+ toArray: function(n) {
916
+ return ee(n, function(a) {
917
+ return a;
918
+ }) || [];
919
+ },
920
+ only: function(n) {
921
+ if (!K(n))
922
+ throw Error(
923
+ "React.Children.only expected to receive a single React element child."
924
+ );
925
+ return n;
926
+ }
927
+ }, e.Component = c, e.Fragment = i, e.Profiler = E, e.PureComponent = p, e.StrictMode = l, e.Suspense = $, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, e.__COMPILER_RUNTIME = Y, e.act = function(n) {
928
+ var a = C.actQueue, d = Ke;
929
+ Ke++;
930
+ var f = C.actQueue = a !== null ? a : [], y = !1;
931
+ try {
932
+ var O = n();
933
+ } catch (A) {
934
+ C.thrownErrors.push(A);
935
+ }
936
+ if (0 < C.thrownErrors.length)
937
+ throw B(a, d), n = ie(C.thrownErrors), C.thrownErrors.length = 0, n;
938
+ if (O !== null && typeof O == "object" && typeof O.then == "function") {
939
+ var b = O;
940
+ return Ut(function() {
941
+ y || Ge || (Ge = !0, console.error(
942
+ "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 () => ...);"
943
+ ));
944
+ }), {
945
+ then: function(A, ne) {
946
+ y = !0, b.then(
947
+ function(me) {
948
+ if (B(a, d), d === 0) {
949
+ try {
950
+ Ne(f), se(function() {
951
+ return te(
952
+ me,
953
+ A,
954
+ ne
955
+ );
956
+ });
957
+ } catch ($n) {
958
+ C.thrownErrors.push($n);
959
+ }
960
+ if (0 < C.thrownErrors.length) {
961
+ var bn = ie(
962
+ C.thrownErrors
963
+ );
964
+ C.thrownErrors.length = 0, ne(bn);
965
+ }
966
+ } else A(me);
967
+ },
968
+ function(me) {
969
+ B(a, d), 0 < C.thrownErrors.length && (me = ie(
970
+ C.thrownErrors
971
+ ), C.thrownErrors.length = 0), ne(me);
972
+ }
973
+ );
974
+ }
975
+ };
976
+ }
977
+ var P = O;
978
+ if (B(a, d), d === 0 && (Ne(f), f.length !== 0 && Ut(function() {
979
+ y || Ge || (Ge = !0, console.error(
980
+ "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
981
+ ));
982
+ }), C.actQueue = null), 0 < C.thrownErrors.length)
983
+ throw n = ie(C.thrownErrors), C.thrownErrors.length = 0, n;
984
+ return {
985
+ then: function(A, ne) {
986
+ y = !0, d === 0 ? (C.actQueue = f, se(function() {
987
+ return te(
988
+ P,
989
+ A,
990
+ ne
991
+ );
992
+ })) : A(P);
993
+ }
994
+ };
995
+ }, e.cache = function(n) {
996
+ return function() {
997
+ return n.apply(null, arguments);
998
+ };
999
+ }, e.captureOwnerStack = function() {
1000
+ var n = C.getCurrentStack;
1001
+ return n === null ? null : n();
1002
+ }, e.cloneElement = function(n, a, d) {
1003
+ if (n == null)
1004
+ throw Error(
1005
+ "The argument must be a React element, but you passed " + n + "."
1006
+ );
1007
+ var f = Ct({}, n.props), y = n.key, O = n._owner;
1008
+ if (a != null) {
1009
+ var b;
1010
+ e: {
1011
+ if (Be.call(a, "ref") && (b = Object.getOwnPropertyDescriptor(
1012
+ a,
1013
+ "ref"
1014
+ ).get) && b.isReactWarning) {
1015
+ b = !1;
1016
+ break e;
1017
+ }
1018
+ b = a.ref !== void 0;
1019
+ }
1020
+ b && (O = D()), I(a) && (m(a.key), y = "" + a.key);
1021
+ for (P in a)
1022
+ !Be.call(a, P) || P === "key" || P === "__self" || P === "__source" || P === "ref" && a.ref === void 0 || (f[P] = a[P]);
1023
+ }
1024
+ var P = arguments.length - 2;
1025
+ if (P === 1) f.children = d;
1026
+ else if (1 < P) {
1027
+ b = Array(P);
1028
+ for (var A = 0; A < P; A++)
1029
+ b[A] = arguments[A + 2];
1030
+ f.children = b;
1031
+ }
1032
+ for (f = pe(
1033
+ n.type,
1034
+ y,
1035
+ void 0,
1036
+ void 0,
1037
+ O,
1038
+ f,
1039
+ n._debugStack,
1040
+ n._debugTask
1041
+ ), y = 2; y < arguments.length; y++)
1042
+ O = arguments[y], K(O) && O._store && (O._store.validated = 1);
1043
+ return f;
1044
+ }, e.createContext = function(n) {
1045
+ return n = {
1046
+ $$typeof: S,
1047
+ _currentValue: n,
1048
+ _currentValue2: n,
1049
+ _threadCount: 0,
1050
+ Provider: null,
1051
+ Consumer: null
1052
+ }, n.Provider = n, n.Consumer = {
1053
+ $$typeof: v,
1054
+ _context: n
1055
+ }, n._currentRenderer = null, n._currentRenderer2 = null, n;
1056
+ }, e.createElement = function(n, a, d) {
1057
+ for (var f = 2; f < arguments.length; f++) {
1058
+ var y = arguments[f];
1059
+ K(y) && y._store && (y._store.validated = 1);
1060
+ }
1061
+ if (f = {}, y = null, a != null)
1062
+ for (A in Tt || !("__self" in a) || "key" in a || (Tt = !0, console.warn(
1063
+ "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1064
+ )), I(a) && (m(a.key), y = "" + a.key), a)
1065
+ Be.call(a, A) && A !== "key" && A !== "__self" && A !== "__source" && (f[A] = a[A]);
1066
+ var O = arguments.length - 2;
1067
+ if (O === 1) f.children = d;
1068
+ else if (1 < O) {
1069
+ for (var b = Array(O), P = 0; P < O; P++)
1070
+ b[P] = arguments[P + 2];
1071
+ Object.freeze && Object.freeze(b), f.children = b;
1072
+ }
1073
+ if (n && n.defaultProps)
1074
+ for (A in O = n.defaultProps, O)
1075
+ f[A] === void 0 && (f[A] = O[A]);
1076
+ y && Z(
1077
+ f,
1078
+ typeof n == "function" ? n.displayName || n.name || "Unknown" : n
1079
+ );
1080
+ var A = 1e4 > C.recentlyCreatedOwnerStacks++;
1081
+ return pe(
1082
+ n,
1083
+ y,
1084
+ void 0,
1085
+ void 0,
1086
+ D(),
1087
+ f,
1088
+ A ? Error("react-stack-top-frame") : _n,
1089
+ A ? St(_(n)) : wn
1090
+ );
1091
+ }, e.createRef = function() {
1092
+ var n = { current: null };
1093
+ return Object.seal(n), n;
1094
+ }, e.forwardRef = function(n) {
1095
+ n != null && n.$$typeof === H ? console.error(
1096
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1097
+ ) : typeof n != "function" ? console.error(
1098
+ "forwardRef requires a render function but was given %s.",
1099
+ n === null ? "null" : typeof n
1100
+ ) : n.length !== 0 && n.length !== 2 && console.error(
1101
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1102
+ n.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1103
+ ), n != null && n.defaultProps != null && console.error(
1104
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1105
+ );
1106
+ var a = { $$typeof: M, render: n }, d;
1107
+ return Object.defineProperty(a, "displayName", {
1108
+ enumerable: !1,
1109
+ configurable: !0,
1110
+ get: function() {
1111
+ return d;
1112
+ },
1113
+ set: function(f) {
1114
+ d = f, n.name || n.displayName || (Object.defineProperty(n, "name", { value: f }), n.displayName = f);
1115
+ }
1116
+ }), a;
1117
+ }, e.isValidElement = K, e.lazy = function(n) {
1118
+ return {
1119
+ $$typeof: ye,
1120
+ _payload: { _status: -1, _result: n },
1121
+ _init: st
1122
+ };
1123
+ }, e.memo = function(n, a) {
1124
+ n == null && console.error(
1125
+ "memo: The first argument must be a component. Instead received: %s",
1126
+ n === null ? "null" : typeof n
1127
+ ), a = {
1128
+ $$typeof: H,
1129
+ type: n,
1130
+ compare: a === void 0 ? null : a
1131
+ };
1132
+ var d;
1133
+ return Object.defineProperty(a, "displayName", {
1134
+ enumerable: !1,
1135
+ configurable: !0,
1136
+ get: function() {
1137
+ return d;
1138
+ },
1139
+ set: function(f) {
1140
+ d = f, n.name || n.displayName || (Object.defineProperty(n, "name", { value: f }), n.displayName = f);
1141
+ }
1142
+ }), a;
1143
+ }, e.startTransition = function(n) {
1144
+ var a = C.T, d = {};
1145
+ C.T = d, d._updatedFibers = /* @__PURE__ */ new Set();
1146
+ try {
1147
+ var f = n(), y = C.S;
1148
+ y !== null && y(d, f), typeof f == "object" && f !== null && typeof f.then == "function" && f.then(Te, kt);
1149
+ } catch (O) {
1150
+ kt(O);
1151
+ } finally {
1152
+ a === null && d._updatedFibers && (n = d._updatedFibers.size, d._updatedFibers.clear(), 10 < n && console.warn(
1153
+ "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."
1154
+ )), C.T = a;
1155
+ }
1156
+ }, e.unstable_useCacheRefresh = function() {
1157
+ return j().useCacheRefresh();
1158
+ }, e.use = function(n) {
1159
+ return j().use(n);
1160
+ }, e.useActionState = function(n, a, d) {
1161
+ return j().useActionState(
1162
+ n,
1163
+ a,
1164
+ d
1165
+ );
1166
+ }, e.useCallback = function(n, a) {
1167
+ return j().useCallback(n, a);
1168
+ }, e.useContext = function(n) {
1169
+ var a = j();
1170
+ return n.$$typeof === v && console.error(
1171
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1172
+ ), a.useContext(n);
1173
+ }, e.useDebugValue = function(n, a) {
1174
+ return j().useDebugValue(n, a);
1175
+ }, e.useDeferredValue = function(n, a) {
1176
+ return j().useDeferredValue(n, a);
1177
+ }, e.useEffect = function(n, a, d) {
1178
+ n == null && console.warn(
1179
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1180
+ );
1181
+ var f = j();
1182
+ if (typeof d == "function")
1183
+ throw Error(
1184
+ "useEffect CRUD overload is not enabled in this build of React."
1185
+ );
1186
+ return f.useEffect(n, a);
1187
+ }, e.useId = function() {
1188
+ return j().useId();
1189
+ }, e.useImperativeHandle = function(n, a, d) {
1190
+ return j().useImperativeHandle(n, a, d);
1191
+ }, e.useInsertionEffect = function(n, a) {
1192
+ return n == null && console.warn(
1193
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1194
+ ), j().useInsertionEffect(n, a);
1195
+ }, e.useLayoutEffect = function(n, a) {
1196
+ return n == null && console.warn(
1197
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1198
+ ), j().useLayoutEffect(n, a);
1199
+ }, e.useMemo = function(n, a) {
1200
+ return j().useMemo(n, a);
1201
+ }, e.useOptimistic = function(n, a) {
1202
+ return j().useOptimistic(n, a);
1203
+ }, e.useReducer = function(n, a, d) {
1204
+ return j().useReducer(n, a, d);
1205
+ }, e.useRef = function(n) {
1206
+ return j().useRef(n);
1207
+ }, e.useState = function(n) {
1208
+ return j().useState(n);
1209
+ }, e.useSyncExternalStore = function(n, a, d) {
1210
+ return j().useSyncExternalStore(
1211
+ n,
1212
+ a,
1213
+ d
1214
+ );
1215
+ }, e.useTransition = function() {
1216
+ return j().useTransition();
1217
+ }, e.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1218
+ }();
1219
+ }(Pe, Pe.exports)), Pe.exports;
1220
+ }
1221
+ var xt;
1222
+ function Tn() {
1223
+ return xt || (xt = 1, process.env.NODE_ENV === "production" ? Qe.exports = Sn() : Qe.exports = Rn()), Qe.exports;
1224
+ }
1225
+ var Nn = Tn();
1226
+ const Ln = /* @__PURE__ */ On(Nn);
1227
+ /**
1228
+ * @license
1229
+ * Copyright 2018 Google LLC
1230
+ * SPDX-License-Identifier: BSD-3-Clause
1231
+ */
1232
+ const Pn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Wt = /* @__PURE__ */ new WeakMap(), zt = (s, e, t, o, r) => {
1233
+ const c = r?.[e];
1234
+ c === void 0 ? (s[e] = t, t == null && e in HTMLElement.prototype && s.removeAttribute(e)) : t !== o && ((u, p, h) => {
1235
+ let m = Wt.get(u);
1236
+ m === void 0 && Wt.set(u, m = /* @__PURE__ */ new Map());
1237
+ let g = m.get(p);
1238
+ h !== void 0 ? g === void 0 ? (m.set(p, g = { handleEvent: h }), u.addEventListener(p, g)) : g.handleEvent = h : g !== void 0 && (m.delete(p), u.removeEventListener(p, g));
1239
+ })(s, c, t);
1240
+ }, kn = ({ react: s, tagName: e, elementClass: t, events: o, displayName: r }) => {
1241
+ const c = new Set(Object.keys(o ?? {})), u = s.forwardRef((p, h) => {
1242
+ const m = s.useRef(/* @__PURE__ */ new Map()), g = s.useRef(null), _ = {}, D = {};
1243
+ for (const [N, I] of Object.entries(p)) Pn.has(N) ? _[N === "className" ? "class" : N] = I : c.has(N) || N in t.prototype ? D[N] = I : _[N] = I;
1244
+ return s.useLayoutEffect(() => {
1245
+ if (g.current === null) return;
1246
+ const N = /* @__PURE__ */ new Map();
1247
+ for (const I in D) zt(g.current, I, p[I], m.current.get(I), o), m.current.delete(I), N.set(I, p[I]);
1248
+ for (const [I, Z] of m.current) zt(g.current, I, void 0, Z, o);
1249
+ m.current = N;
1250
+ }), s.useLayoutEffect(() => {
1251
+ g.current?.removeAttribute("defer-hydration");
1252
+ }, []), _.suppressHydrationWarning = !0, s.createElement(e, { ..._, ref: s.useCallback((N) => {
1253
+ g.current = N, typeof h == "function" ? h(N) : h !== null && (h.current = N);
1254
+ }, [h]) });
1255
+ });
1256
+ return u.displayName = r ?? t.name, u;
1257
+ };
1258
+ class Ie {
1259
+ /**
1260
+ * Creates a new deferred promise.
1261
+ */
1262
+ constructor() {
1263
+ this.promise = new Promise((e, t) => {
1264
+ this.resolve = e, this.reject = t;
1265
+ });
1266
+ }
1267
+ }
1268
+ const U = () => (
1269
+ /*
1270
+ * `globalThis.` is important here. Some bundlers remove the `typeof process`
1271
+ * checks, but don't remove the usages of undefined variables - this can cause
1272
+ * runtime error. By adding `globalThis.`, we avoid having `typeof process`
1273
+ * check removed by the bundler.
1274
+ * This does meant tree-shaking won't happen for the isEsriInternalEnv()
1275
+ * check, but this is ok since this check is meant to always be behind the
1276
+ * development/test guard.
1277
+ * See https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/2087#issuecomment-5152454
1278
+ */
1279
+ typeof globalThis.process == "object" && !!process.env.ESRI_INTERNAL
1280
+ ), x = (s, e, ...t) => {
1281
+ try {
1282
+ return s?.call(e, ...t);
1283
+ } catch (o) {
1284
+ console.error(o, s);
1285
+ }
1286
+ }, lt = async (s, e, ...t) => {
1287
+ try {
1288
+ return await s?.call(e, ...t);
1289
+ } catch (o) {
1290
+ console.error(o, s);
1291
+ }
1292
+ }, Dn = (s) => s.replace(Un, (e, t) => `${t === 0 ? "" : "-"}${e.toLowerCase()}`), Un = /[A-Z]+(?![a-z])|[A-Z]/gu, In = (s, e) => {
1293
+ const t = e / Mn;
1294
+ let o = 0;
1295
+ const r = setInterval(() => {
1296
+ o += t, o >= e && (clearInterval(r), s());
1297
+ }, t);
1298
+ return r;
1299
+ }, Mn = 4, ht = Symbol.for("controller"), jn = (s) => typeof s == "object" && s !== null && (ht in s || "hostConnected" in s || "hostDisconnected" in s || "hostUpdate" in s || "hostUpdated" in s);
1300
+ let Ee;
1301
+ const ke = (s) => {
1302
+ Ee !== s && (Ee = s, queueMicrotask(() => Ee === s ? Ee = void 0 : 0));
1303
+ }, nt = (s) => {
1304
+ if (process.env.NODE_ENV !== "production" && Ee === void 0)
1305
+ throw new Error(
1306
+ [
1307
+ `Unable to find out which component ${s || "this"} controller `,
1308
+ `belongs to. Possible causes:
1309
+ `,
1310
+ "- You might have multiple versions of ",
1311
+ `@arcgis/lumina package installed
1312
+ `,
1313
+ ...U() ? [
1314
+ "- You tried to create controller outside the component. If so, ",
1315
+ "please wrap your controller definition in an arrow function (like",
1316
+ "`const myController = ()=>makeController(...);`) and call that",
1317
+ "function inside the component (`my = myController();`), or ",
1318
+ "define your controller using makeGenericController/GenericController ",
1319
+ `instead.
1320
+ `,
1321
+ "- You tried to create a controller inside an async function. ",
1322
+ "This is allowed without calling controller.use(). Make sure you ",
1323
+ "use it like `await controller.use(useController())`."
1324
+ ] : []
1325
+ ].join("")
1326
+ );
1327
+ return Ee;
1328
+ };
1329
+ let ce = [];
1330
+ const Hn = (s) => {
1331
+ if (s === void 0) {
1332
+ ce = [];
1333
+ return;
1334
+ }
1335
+ const e = ce.indexOf(s);
1336
+ ce = e === -1 ? [...ce, s] : ce.slice(0, e + 1), queueMicrotask(() => ce = []);
1337
+ }, xn = () => ce;
1338
+ let qt;
1339
+ const Wn = () => {
1340
+ const s = qt;
1341
+ return qt = void 0, s;
1342
+ }, zn = async (s, e) => {
1343
+ const t = pt(s);
1344
+ if (t === void 0) {
1345
+ if (process.env.NODE_ENV !== "production" && U() && typeof e == "function")
1346
+ throw new Error(
1347
+ "Unable to resolve a controller from the provided value, so can't watch it's exports. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
1348
+ );
1349
+ return s;
1350
+ }
1351
+ if (await t.ready, typeof e == "function") {
1352
+ if (process.env.NODE_ENV !== "production" && U() && t.watchExports === void 0)
1353
+ throw new Error("The controller must implement watchExports method to support watching exports");
1354
+ const o = t.watchExports(
1355
+ (r) => e(r, o)
1356
+ );
1357
+ }
1358
+ return t.exports;
1359
+ }, qn = async (s) => {
1360
+ const e = pt(s);
1361
+ if (process.env.NODE_ENV !== "production" && U() && e === void 0)
1362
+ throw new Error(
1363
+ "Unable to resolve a controller from the provided value. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
1364
+ );
1365
+ return await e.ready, e;
1366
+ }, pt = (s) => {
1367
+ const t = nt().manager.X(s);
1368
+ if (t !== void 0)
1369
+ return t;
1370
+ if (jn(s))
1371
+ return s;
1372
+ const o = Wn();
1373
+ if (o !== void 0)
1374
+ return o;
1375
+ };
1376
+ /**
1377
+ * @license
1378
+ * Copyright 2019 Google LLC
1379
+ * SPDX-License-Identifier: BSD-3-Clause
1380
+ */
1381
+ const Xe = globalThis, ft = Xe.ShadowRoot && (Xe.ShadyCSS === void 0 || Xe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, cn = Symbol(), Yt = /* @__PURE__ */ new WeakMap();
1382
+ let Yn = class {
1383
+ constructor(e, t, o) {
1384
+ if (this._$cssResult$ = !0, o !== cn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1385
+ this.cssText = e, this.t = t;
1386
+ }
1387
+ get styleSheet() {
1388
+ let e = this.o;
1389
+ const t = this.t;
1390
+ if (ft && e === void 0) {
1391
+ const o = t !== void 0 && t.length === 1;
1392
+ o && (e = Yt.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && Yt.set(t, e));
1393
+ }
1394
+ return e;
1395
+ }
1396
+ toString() {
1397
+ return this.cssText;
1398
+ }
1399
+ };
1400
+ const Vn = (s) => new Yn(typeof s == "string" ? s : s + "", void 0, cn), Bn = (s, e) => {
1401
+ if (ft) s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
1402
+ else for (const t of e) {
1403
+ const o = document.createElement("style"), r = Xe.litNonce;
1404
+ r !== void 0 && o.setAttribute("nonce", r), o.textContent = t.cssText, s.appendChild(o);
1405
+ }
1406
+ }, Vt = ft ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
1407
+ let t = "";
1408
+ for (const o of e.cssRules) t += o.cssText;
1409
+ return Vn(t);
1410
+ })(s) : s;
1411
+ /**
1412
+ * @license
1413
+ * Copyright 2017 Google LLC
1414
+ * SPDX-License-Identifier: BSD-3-Clause
1415
+ */
1416
+ const { is: Fn, defineProperty: Kn, getOwnPropertyDescriptor: Gn, getOwnPropertyNames: Qn, getOwnPropertySymbols: Xn, getPrototypeOf: Zn } = Object, ot = globalThis, Bt = ot.trustedTypes, Jn = Bt ? Bt.emptyScript : "", eo = ot.reactiveElementPolyfillSupport, De = (s, e) => s, dt = { toAttribute(s, e) {
1417
+ switch (e) {
1418
+ case Boolean:
1419
+ s = s ? Jn : null;
1420
+ break;
1421
+ case Object:
1422
+ case Array:
1423
+ s = s == null ? s : JSON.stringify(s);
1424
+ }
1425
+ return s;
1426
+ }, fromAttribute(s, e) {
1427
+ let t = s;
1428
+ switch (e) {
1429
+ case Boolean:
1430
+ t = s !== null;
1431
+ break;
1432
+ case Number:
1433
+ t = s === null ? null : Number(s);
1434
+ break;
1435
+ case Object:
1436
+ case Array:
1437
+ try {
1438
+ t = JSON.parse(s);
1439
+ } catch {
1440
+ t = null;
1441
+ }
1442
+ }
1443
+ return t;
1444
+ } }, yt = (s, e) => !Fn(s, e), Ft = { attribute: !0, type: String, converter: dt, reflect: !1, useDefault: !1, hasChanged: yt };
1445
+ Symbol.metadata ??= Symbol("metadata"), ot.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
1446
+ class ve extends HTMLElement {
1447
+ static addInitializer(e) {
1448
+ this._$Ei(), (this.l ??= []).push(e);
1449
+ }
1450
+ static get observedAttributes() {
1451
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1452
+ }
1453
+ static createProperty(e, t = Ft) {
1454
+ if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
1455
+ const o = Symbol(), r = this.getPropertyDescriptor(e, o, t);
1456
+ r !== void 0 && Kn(this.prototype, e, r);
1457
+ }
1458
+ }
1459
+ static getPropertyDescriptor(e, t, o) {
1460
+ const { get: r, set: c } = Gn(this.prototype, e) ?? { get() {
1461
+ return this[t];
1462
+ }, set(u) {
1463
+ this[t] = u;
1464
+ } };
1465
+ return { get: r, set(u) {
1466
+ const p = r?.call(this);
1467
+ c?.call(this, u), this.requestUpdate(e, p, o);
1468
+ }, configurable: !0, enumerable: !0 };
1469
+ }
1470
+ static getPropertyOptions(e) {
1471
+ return this.elementProperties.get(e) ?? Ft;
1472
+ }
1473
+ static _$Ei() {
1474
+ if (this.hasOwnProperty(De("elementProperties"))) return;
1475
+ const e = Zn(this);
1476
+ e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
1477
+ }
1478
+ static finalize() {
1479
+ if (this.hasOwnProperty(De("finalized"))) return;
1480
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(De("properties"))) {
1481
+ const t = this.properties, o = [...Qn(t), ...Xn(t)];
1482
+ for (const r of o) this.createProperty(r, t[r]);
1483
+ }
1484
+ const e = this[Symbol.metadata];
1485
+ if (e !== null) {
1486
+ const t = litPropertyMetadata.get(e);
1487
+ if (t !== void 0) for (const [o, r] of t) this.elementProperties.set(o, r);
1488
+ }
1489
+ this._$Eh = /* @__PURE__ */ new Map();
1490
+ for (const [t, o] of this.elementProperties) {
1491
+ const r = this._$Eu(t, o);
1492
+ r !== void 0 && this._$Eh.set(r, t);
1493
+ }
1494
+ this.elementStyles = this.finalizeStyles(this.styles);
1495
+ }
1496
+ static finalizeStyles(e) {
1497
+ const t = [];
1498
+ if (Array.isArray(e)) {
1499
+ const o = new Set(e.flat(1 / 0).reverse());
1500
+ for (const r of o) t.unshift(Vt(r));
1501
+ } else e !== void 0 && t.push(Vt(e));
1502
+ return t;
1503
+ }
1504
+ static _$Eu(e, t) {
1505
+ const o = t.attribute;
1506
+ return o === !1 ? void 0 : typeof o == "string" ? o : typeof e == "string" ? e.toLowerCase() : void 0;
1507
+ }
1508
+ constructor() {
1509
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
1510
+ }
1511
+ _$Ev() {
1512
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
1513
+ }
1514
+ addController(e) {
1515
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
1516
+ }
1517
+ removeController(e) {
1518
+ this._$EO?.delete(e);
1519
+ }
1520
+ _$E_() {
1521
+ const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
1522
+ for (const o of t.keys()) this.hasOwnProperty(o) && (e.set(o, this[o]), delete this[o]);
1523
+ e.size > 0 && (this._$Ep = e);
1524
+ }
1525
+ createRenderRoot() {
1526
+ const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1527
+ return Bn(e, this.constructor.elementStyles), e;
1528
+ }
1529
+ connectedCallback() {
1530
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
1531
+ }
1532
+ enableUpdating(e) {
1533
+ }
1534
+ disconnectedCallback() {
1535
+ this._$EO?.forEach((e) => e.hostDisconnected?.());
1536
+ }
1537
+ attributeChangedCallback(e, t, o) {
1538
+ this._$AK(e, o);
1539
+ }
1540
+ _$ET(e, t) {
1541
+ const o = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, o);
1542
+ if (r !== void 0 && o.reflect === !0) {
1543
+ const c = (o.converter?.toAttribute !== void 0 ? o.converter : dt).toAttribute(t, o.type);
1544
+ this._$Em = e, c == null ? this.removeAttribute(r) : this.setAttribute(r, c), this._$Em = null;
1545
+ }
1546
+ }
1547
+ _$AK(e, t) {
1548
+ const o = this.constructor, r = o._$Eh.get(e);
1549
+ if (r !== void 0 && this._$Em !== r) {
1550
+ const c = o.getPropertyOptions(r), u = typeof c.converter == "function" ? { fromAttribute: c.converter } : c.converter?.fromAttribute !== void 0 ? c.converter : dt;
1551
+ this._$Em = r, this[r] = u.fromAttribute(t, c.type) ?? this._$Ej?.get(r) ?? null, this._$Em = null;
1552
+ }
1553
+ }
1554
+ requestUpdate(e, t, o) {
1555
+ if (e !== void 0) {
1556
+ const r = this.constructor, c = this[e];
1557
+ if (o ??= r.getPropertyOptions(e), !((o.hasChanged ?? yt)(c, t) || o.useDefault && o.reflect && c === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, o)))) return;
1558
+ this.C(e, t, o);
1559
+ }
1560
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
1561
+ }
1562
+ C(e, t, { useDefault: o, reflect: r, wrapped: c }, u) {
1563
+ o && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, u ?? t ?? this[e]), c !== !0 || u !== void 0) || (this._$AL.has(e) || (this.hasUpdated || o || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
1564
+ }
1565
+ async _$EP() {
1566
+ this.isUpdatePending = !0;
1567
+ try {
1568
+ await this._$ES;
1569
+ } catch (t) {
1570
+ Promise.reject(t);
1571
+ }
1572
+ const e = this.scheduleUpdate();
1573
+ return e != null && await e, !this.isUpdatePending;
1574
+ }
1575
+ scheduleUpdate() {
1576
+ return this.performUpdate();
1577
+ }
1578
+ performUpdate() {
1579
+ if (!this.isUpdatePending) return;
1580
+ if (!this.hasUpdated) {
1581
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
1582
+ for (const [r, c] of this._$Ep) this[r] = c;
1583
+ this._$Ep = void 0;
1584
+ }
1585
+ const o = this.constructor.elementProperties;
1586
+ if (o.size > 0) for (const [r, c] of o) {
1587
+ const { wrapped: u } = c, p = this[r];
1588
+ u !== !0 || this._$AL.has(r) || p === void 0 || this.C(r, void 0, c, p);
1589
+ }
1590
+ }
1591
+ let e = !1;
1592
+ const t = this._$AL;
1593
+ try {
1594
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((o) => o.hostUpdate?.()), this.update(t)) : this._$EM();
1595
+ } catch (o) {
1596
+ throw e = !1, this._$EM(), o;
1597
+ }
1598
+ e && this._$AE(t);
1599
+ }
1600
+ willUpdate(e) {
1601
+ }
1602
+ _$AE(e) {
1603
+ this._$EO?.forEach((t) => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
1604
+ }
1605
+ _$EM() {
1606
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1607
+ }
1608
+ get updateComplete() {
1609
+ return this.getUpdateComplete();
1610
+ }
1611
+ getUpdateComplete() {
1612
+ return this._$ES;
1613
+ }
1614
+ shouldUpdate(e) {
1615
+ return !0;
1616
+ }
1617
+ update(e) {
1618
+ this._$Eq &&= this._$Eq.forEach((t) => this._$ET(t, this[t])), this._$EM();
1619
+ }
1620
+ updated(e) {
1621
+ }
1622
+ firstUpdated(e) {
1623
+ }
1624
+ }
1625
+ ve.elementStyles = [], ve.shadowRootOptions = { mode: "open" }, ve[De("elementProperties")] = /* @__PURE__ */ new Map(), ve[De("finalized")] = /* @__PURE__ */ new Map(), eo?.({ ReactiveElement: ve }), (ot.reactiveElementVersions ??= []).push("2.1.0");
1626
+ /**
1627
+ * @license
1628
+ * Copyright 2017 Google LLC
1629
+ * SPDX-License-Identifier: BSD-3-Clause
1630
+ */
1631
+ const mt = globalThis, et = mt.trustedTypes, Kt = et ? et.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, un = "$lit$", oe = `lit$${Math.random().toFixed(9).slice(2)}$`, ln = "?" + oe, to = `<${ln}>`, he = document, Me = () => he.createComment(""), je = (s) => s === null || typeof s != "object" && typeof s != "function", gt = Array.isArray, no = (s) => gt(s) || typeof s?.[Symbol.iterator] == "function", ut = `[
1632
+ \f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ae = RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
1633
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, dn = /^(?:script|style|textarea|title)$/i, $e = Symbol.for("lit-noChange"), W = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), ue = he.createTreeWalker(he, 129);
1634
+ function hn(s, e) {
1635
+ if (!gt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
1636
+ return Kt !== void 0 ? Kt.createHTML(e) : e;
1637
+ }
1638
+ const oo = (s, e) => {
1639
+ const t = s.length - 1, o = [];
1640
+ let r, c = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", u = Le;
1641
+ for (let p = 0; p < t; p++) {
1642
+ const h = s[p];
1643
+ let m, g, _ = -1, D = 0;
1644
+ for (; D < h.length && (u.lastIndex = D, g = u.exec(h), g !== null); ) D = u.lastIndex, u === Le ? g[1] === "!--" ? u = Gt : g[1] !== void 0 ? u = Qt : g[2] !== void 0 ? (dn.test(g[2]) && (r = RegExp("</" + g[2], "g")), u = ae) : g[3] !== void 0 && (u = ae) : u === ae ? g[0] === ">" ? (u = r ?? Le, _ = -1) : g[1] === void 0 ? _ = -2 : (_ = u.lastIndex - g[2].length, m = g[1], u = g[3] === void 0 ? ae : g[3] === '"' ? Zt : Xt) : u === Zt || u === Xt ? u = ae : u === Gt || u === Qt ? u = Le : (u = ae, r = void 0);
1645
+ const N = u === ae && s[p + 1].startsWith("/>") ? " " : "";
1646
+ c += u === Le ? h + to : _ >= 0 ? (o.push(m), h.slice(0, _) + un + h.slice(_) + oe + N) : h + oe + (_ === -2 ? p : N);
1647
+ }
1648
+ return [hn(s, c + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
1649
+ };
1650
+ class He {
1651
+ constructor({ strings: e, _$litType$: t }, o) {
1652
+ let r;
1653
+ this.parts = [];
1654
+ let c = 0, u = 0;
1655
+ const p = e.length - 1, h = this.parts, [m, g] = oo(e, t);
1656
+ if (this.el = He.createElement(m, o), ue.currentNode = this.el.content, t === 2 || t === 3) {
1657
+ const _ = this.el.content.firstChild;
1658
+ _.replaceWith(..._.childNodes);
1659
+ }
1660
+ for (; (r = ue.nextNode()) !== null && h.length < p; ) {
1661
+ if (r.nodeType === 1) {
1662
+ if (r.hasAttributes()) for (const _ of r.getAttributeNames()) if (_.endsWith(un)) {
1663
+ const D = g[u++], N = r.getAttribute(_).split(oe), I = /([.?@])?(.*)/.exec(D);
1664
+ h.push({ type: 1, index: c, name: I[2], strings: N, ctor: I[1] === "." ? so : I[1] === "?" ? io : I[1] === "@" ? ao : rt }), r.removeAttribute(_);
1665
+ } else _.startsWith(oe) && (h.push({ type: 6, index: c }), r.removeAttribute(_));
1666
+ if (dn.test(r.tagName)) {
1667
+ const _ = r.textContent.split(oe), D = _.length - 1;
1668
+ if (D > 0) {
1669
+ r.textContent = et ? et.emptyScript : "";
1670
+ for (let N = 0; N < D; N++) r.append(_[N], Me()), ue.nextNode(), h.push({ type: 2, index: ++c });
1671
+ r.append(_[D], Me());
1672
+ }
1673
+ }
1674
+ } else if (r.nodeType === 8) if (r.data === ln) h.push({ type: 2, index: c });
1675
+ else {
1676
+ let _ = -1;
1677
+ for (; (_ = r.data.indexOf(oe, _ + 1)) !== -1; ) h.push({ type: 7, index: c }), _ += oe.length - 1;
1678
+ }
1679
+ c++;
1680
+ }
1681
+ }
1682
+ static createElement(e, t) {
1683
+ const o = he.createElement("template");
1684
+ return o.innerHTML = e, o;
1685
+ }
1686
+ }
1687
+ function Ae(s, e, t = s, o) {
1688
+ if (e === $e) return e;
1689
+ let r = o !== void 0 ? t._$Co?.[o] : t._$Cl;
1690
+ const c = je(e) ? void 0 : e._$litDirective$;
1691
+ return r?.constructor !== c && (r?._$AO?.(!1), c === void 0 ? r = void 0 : (r = new c(s), r._$AT(s, t, o)), o !== void 0 ? (t._$Co ??= [])[o] = r : t._$Cl = r), r !== void 0 && (e = Ae(s, r._$AS(s, e.values), r, o)), e;
1692
+ }
1693
+ class ro {
1694
+ constructor(e, t) {
1695
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
1696
+ }
1697
+ get parentNode() {
1698
+ return this._$AM.parentNode;
1699
+ }
1700
+ get _$AU() {
1701
+ return this._$AM._$AU;
1702
+ }
1703
+ u(e) {
1704
+ const { el: { content: t }, parts: o } = this._$AD, r = (e?.creationScope ?? he).importNode(t, !0);
1705
+ ue.currentNode = r;
1706
+ let c = ue.nextNode(), u = 0, p = 0, h = o[0];
1707
+ for (; h !== void 0; ) {
1708
+ if (u === h.index) {
1709
+ let m;
1710
+ h.type === 2 ? m = new ze(c, c.nextSibling, this, e) : h.type === 1 ? m = new h.ctor(c, h.name, h.strings, this, e) : h.type === 6 && (m = new co(c, this, e)), this._$AV.push(m), h = o[++p];
1711
+ }
1712
+ u !== h?.index && (c = ue.nextNode(), u++);
1713
+ }
1714
+ return ue.currentNode = he, r;
1715
+ }
1716
+ p(e) {
1717
+ let t = 0;
1718
+ for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, t), t += o.strings.length - 2) : o._$AI(e[t])), t++;
1719
+ }
1720
+ }
1721
+ class ze {
1722
+ get _$AU() {
1723
+ return this._$AM?._$AU ?? this._$Cv;
1724
+ }
1725
+ constructor(e, t, o, r) {
1726
+ this.type = 2, this._$AH = W, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = o, this.options = r, this._$Cv = r?.isConnected ?? !0;
1727
+ }
1728
+ get parentNode() {
1729
+ let e = this._$AA.parentNode;
1730
+ const t = this._$AM;
1731
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
1732
+ }
1733
+ get startNode() {
1734
+ return this._$AA;
1735
+ }
1736
+ get endNode() {
1737
+ return this._$AB;
1738
+ }
1739
+ _$AI(e, t = this) {
1740
+ e = Ae(this, e, t), je(e) ? e === W || e == null || e === "" ? (this._$AH !== W && this._$AR(), this._$AH = W) : e !== this._$AH && e !== $e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : no(e) ? this.k(e) : this._(e);
1741
+ }
1742
+ O(e) {
1743
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
1744
+ }
1745
+ T(e) {
1746
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
1747
+ }
1748
+ _(e) {
1749
+ this._$AH !== W && je(this._$AH) ? this._$AA.nextSibling.data = e : this.T(he.createTextNode(e)), this._$AH = e;
1750
+ }
1751
+ $(e) {
1752
+ const { values: t, _$litType$: o } = e, r = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = He.createElement(hn(o.h, o.h[0]), this.options)), o);
1753
+ if (this._$AH?._$AD === r) this._$AH.p(t);
1754
+ else {
1755
+ const c = new ro(r, this), u = c.u(this.options);
1756
+ c.p(t), this.T(u), this._$AH = c;
1757
+ }
1758
+ }
1759
+ _$AC(e) {
1760
+ let t = Jt.get(e.strings);
1761
+ return t === void 0 && Jt.set(e.strings, t = new He(e)), t;
1762
+ }
1763
+ k(e) {
1764
+ gt(this._$AH) || (this._$AH = [], this._$AR());
1765
+ const t = this._$AH;
1766
+ let o, r = 0;
1767
+ for (const c of e) r === t.length ? t.push(o = new ze(this.O(Me()), this.O(Me()), this, this.options)) : o = t[r], o._$AI(c), r++;
1768
+ r < t.length && (this._$AR(o && o._$AB.nextSibling, r), t.length = r);
1769
+ }
1770
+ _$AR(e = this._$AA.nextSibling, t) {
1771
+ for (this._$AP?.(!1, !0, t); e && e !== this._$AB; ) {
1772
+ const o = e.nextSibling;
1773
+ e.remove(), e = o;
1774
+ }
1775
+ }
1776
+ setConnected(e) {
1777
+ this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
1778
+ }
1779
+ }
1780
+ class rt {
1781
+ get tagName() {
1782
+ return this.element.tagName;
1783
+ }
1784
+ get _$AU() {
1785
+ return this._$AM._$AU;
1786
+ }
1787
+ constructor(e, t, o, r, c) {
1788
+ this.type = 1, this._$AH = W, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = c, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = W;
1789
+ }
1790
+ _$AI(e, t = this, o, r) {
1791
+ const c = this.strings;
1792
+ let u = !1;
1793
+ if (c === void 0) e = Ae(this, e, t, 0), u = !je(e) || e !== this._$AH && e !== $e, u && (this._$AH = e);
1794
+ else {
1795
+ const p = e;
1796
+ let h, m;
1797
+ for (e = c[0], h = 0; h < c.length - 1; h++) m = Ae(this, p[o + h], t, h), m === $e && (m = this._$AH[h]), u ||= !je(m) || m !== this._$AH[h], m === W ? e = W : e !== W && (e += (m ?? "") + c[h + 1]), this._$AH[h] = m;
1798
+ }
1799
+ u && !r && this.j(e);
1800
+ }
1801
+ j(e) {
1802
+ e === W ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
1803
+ }
1804
+ }
1805
+ class so extends rt {
1806
+ constructor() {
1807
+ super(...arguments), this.type = 3;
1808
+ }
1809
+ j(e) {
1810
+ this.element[this.name] = e === W ? void 0 : e;
1811
+ }
1812
+ }
1813
+ class io extends rt {
1814
+ constructor() {
1815
+ super(...arguments), this.type = 4;
1816
+ }
1817
+ j(e) {
1818
+ this.element.toggleAttribute(this.name, !!e && e !== W);
1819
+ }
1820
+ }
1821
+ class ao extends rt {
1822
+ constructor(e, t, o, r, c) {
1823
+ super(e, t, o, r, c), this.type = 5;
1824
+ }
1825
+ _$AI(e, t = this) {
1826
+ if ((e = Ae(this, e, t, 0) ?? W) === $e) return;
1827
+ const o = this._$AH, r = e === W && o !== W || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, c = e !== W && (o === W || r);
1828
+ r && this.element.removeEventListener(this.name, this, o), c && this.element.addEventListener(this.name, this, e), this._$AH = e;
1829
+ }
1830
+ handleEvent(e) {
1831
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
1832
+ }
1833
+ }
1834
+ class co {
1835
+ constructor(e, t, o) {
1836
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
1837
+ }
1838
+ get _$AU() {
1839
+ return this._$AM._$AU;
1840
+ }
1841
+ _$AI(e) {
1842
+ Ae(this, e);
1843
+ }
1844
+ }
1845
+ const uo = mt.litHtmlPolyfillSupport;
1846
+ uo?.(He, ze), (mt.litHtmlVersions ??= []).push("3.3.0");
1847
+ const lo = (s, e, t) => {
1848
+ const o = t?.renderBefore ?? e;
1849
+ let r = o._$litPart$;
1850
+ if (r === void 0) {
1851
+ const c = t?.renderBefore ?? null;
1852
+ o._$litPart$ = r = new ze(e.insertBefore(Me(), c), c, void 0, t ?? {});
1853
+ }
1854
+ return r._$AI(s), r;
1855
+ };
1856
+ /**
1857
+ * @license
1858
+ * Copyright 2017 Google LLC
1859
+ * SPDX-License-Identifier: BSD-3-Clause
1860
+ */
1861
+ const vt = globalThis;
1862
+ class re extends ve {
1863
+ constructor() {
1864
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1865
+ }
1866
+ createRenderRoot() {
1867
+ const e = super.createRenderRoot();
1868
+ return this.renderOptions.renderBefore ??= e.firstChild, e;
1869
+ }
1870
+ update(e) {
1871
+ const t = this.render();
1872
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = lo(t, this.renderRoot, this.renderOptions);
1873
+ }
1874
+ connectedCallback() {
1875
+ super.connectedCallback(), this._$Do?.setConnected(!0);
1876
+ }
1877
+ disconnectedCallback() {
1878
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
1879
+ }
1880
+ render() {
1881
+ return $e;
1882
+ }
1883
+ }
1884
+ re._$litElement$ = !0, re.finalized = !0, vt.litElementHydrateSupport?.({ LitElement: re });
1885
+ const ho = vt.litElementPolyfillSupport;
1886
+ ho?.({ LitElement: re });
1887
+ (vt.litElementVersions ??= []).push("4.2.0");
1888
+ const po = (s, e, t) => {
1889
+ const o = Object.keys(s), r = o.length;
1890
+ _e === void 0 && queueMicrotask(Et), _e ??= /* @__PURE__ */ new Map();
1891
+ let c = _e.get(s);
1892
+ return c === void 0 && (c = { callbacks: [], keyCount: r }, _e.set(s, c)), c.keyCount !== r && (c.callbacks.forEach((u) => u(o)), c.callbacks = [], c.keyCount = r), c.callbacks.push((u) => {
1893
+ const p = (m) => x(e, null, m), h = u[r];
1894
+ h === void 0 ? p(void 0) : s[h] === t ? p(h) : p(void 0);
1895
+ }), t;
1896
+ };
1897
+ let _e;
1898
+ const Et = () => {
1899
+ _e?.forEach(({ callbacks: s }, e) => {
1900
+ const t = Object.keys(e);
1901
+ s.forEach((o) => o(t));
1902
+ }), _e = void 0;
1903
+ }, fo = (s, e, t) => {
1904
+ const o = s.manager;
1905
+ return o.V !== W && o.V !== t && o.S(void 0, void 0), o.T.length === 0 && queueMicrotask(() => o.S(void 0, void 0)), o.V = t, o.T.push((r, c) => x(e, void 0, t === c ? r : void 0)), t;
1906
+ }, yo = (s = [
1907
+ nt(),
1908
+ ...xn()
1909
+ ], e, t) => {
1910
+ const o = Array.isArray(s) ? s : [s];
1911
+ let r = o.length + 1;
1912
+ const c = (u) => {
1913
+ r -= 1, u !== void 0 && (r = Math.min(r, 0)), r === 0 && e(u);
1914
+ };
1915
+ o.forEach(
1916
+ (u) => po(
1917
+ u,
1918
+ (p) => c(p === void 0 ? void 0 : { key: p, host: u, isReactive: !1 }),
1919
+ t
1920
+ )
1921
+ );
1922
+ for (const u of o)
1923
+ if ("manager" in u && u.manager.component === u) {
1924
+ fo(
1925
+ u,
1926
+ (p) => c(p === void 0 ? void 0 : { key: p, host: u, isReactive: !0 }),
1927
+ t
1928
+ );
1929
+ break;
1930
+ }
1931
+ return t;
1932
+ }, mo = (s = "", e = {}, t = nt()) => {
1933
+ const o = {
1934
+ emit: (r) => {
1935
+ if (process.env.NODE_ENV !== "production" && U() && !t.el.isConnected && console.warn(`Trying to emit an ${s} event on a disconnected element ${t.el.localName}`), s === "" && (Et(), process.env.NODE_ENV !== "production" && U() && s === ""))
1936
+ throw new Error("Unable to resolve event name from property name");
1937
+ const c = new CustomEvent(s, {
1938
+ detail: r,
1939
+ cancelable: !0,
1940
+ bubbles: !0,
1941
+ composed: !0,
1942
+ ...e
1943
+ });
1944
+ return t.el.dispatchEvent(c), c;
1945
+ }
1946
+ };
1947
+ return s === "" && yo(
1948
+ void 0,
1949
+ process.env.NODE_ENV !== "production" && U() ? (r) => {
1950
+ if (r === void 0)
1951
+ throw new Error("createEvent must be called in property default value only");
1952
+ s = r.key;
1953
+ } : (r) => s = r.key,
1954
+ o
1955
+ ), o;
1956
+ };
1957
+ mo.bind(null, "");
1958
+ var pn;
1959
+ pn = ht;
1960
+ class go {
1961
+ constructor(e) {
1962
+ this.#n = [], this.#t = [], this.#o = [], this.#c = [], this.#u = [], this.#l = [], this.#d = [], this.#h = [], this.#i = [], this.#a = !1, this.P = new Ie(), this.connectedCalled = !1, this.loadedCalled = !1, this[pn] = !0, this.#s = [];
1963
+ const t = this, o = e ?? nt(new.target.name);
1964
+ t.#e = o, t.ready = t.P.promise, t.#r = tn(t), process.env.NODE_ENV !== "production" ? (Object.defineProperty(this, "component", {
1965
+ writable: !1,
1966
+ enumerable: !1,
1967
+ configurable: !0,
1968
+ value: o
1969
+ }), "hostDestroy" in this && t.#e.manager.devOnly$ensureHasDestroy?.()) : t.component = o, t.#e.addController(t), t.#e.manager === void 0 || (Hn(t), queueMicrotask(() => t.catchUpLifecycle()));
1970
+ }
1971
+ #n;
1972
+ #t;
1973
+ #o;
1974
+ #c;
1975
+ #u;
1976
+ #l;
1977
+ #d;
1978
+ #h;
1979
+ #i;
1980
+ #a;
1981
+ #e;
1982
+ /**
1983
+ * If controller is being added dynamically, after the component
1984
+ * construction, then trigger connected and load right away
1985
+ */
1986
+ catchUpLifecycle() {
1987
+ const { manager: e } = this.#e;
1988
+ e.connectedCalled && !this.connectedCalled && this.triggerConnected(), e.#a && this.triggerLoad().then(
1989
+ () => (
1990
+ // Call loaded ourself, unless manager is going to do it
1991
+ e.loadedCalled && this.triggerLoaded()
1992
+ )
1993
+ ).catch(console.error);
1994
+ }
1995
+ #r;
1996
+ get exports() {
1997
+ return this.#r;
1998
+ }
1999
+ /**
2000
+ * Set controller's exports property (for usage with proxyExports()) and mark
2001
+ * controller as ready (for usage in other controllers). Also, triggers
2002
+ * re-render of the component
2003
+ */
2004
+ set exports(e) {
2005
+ const t = this.#r;
2006
+ t !== e && (this.#r = e, this.#s.forEach(x), this.connectedCalled && this.O !== !1 && this.#e.requestUpdate(this.O, t)), this.P.resolve(e);
2007
+ }
2008
+ setProvisionalExports(e, t = !0) {
2009
+ this.#r = t ? tn(e) : e, this.#s.forEach(x);
2010
+ }
2011
+ #s;
2012
+ watchExports(e) {
2013
+ const t = () => e(this.#r);
2014
+ return this.#s.push(t), () => void this.#s.splice(this.#s.indexOf(t), 1);
2015
+ }
2016
+ /**
2017
+ * A flexible utility for making sure a controller is loaded before it's used,
2018
+ * regardless of how or where a controller was defined:
2019
+ *
2020
+ * @example
2021
+ * makeGenericController(async (component, controller) => {
2022
+ * // Await some controller from the component:
2023
+ * await controller.use(component.someController);
2024
+ * // Initialize new controllers
2025
+ * await controller.use(load(importCoreReactiveUtils));
2026
+ * await controller.use(new ViewModelController(component,newWidgetsHomeHomeViewModel));
2027
+ * await controller.use(someController(component));
2028
+ * });
2029
+ *
2030
+ * @remarks
2031
+ * If your controller is not async, and you are not creating it async, then
2032
+ * you are not required to use controller.use - you can use it directly.
2033
+ * Similarly, accessing controllers after componentWillLoad callback does not
2034
+ * require awaiting them as they are guaranteed to be loaded by then.
2035
+ */
2036
+ get use() {
2037
+ return ke(this.#e), zn;
2038
+ }
2039
+ /**
2040
+ * Just like controller.use, but returns the controller itself, rather than it's
2041
+ * exports
2042
+ *
2043
+ * Use cases:
2044
+ * - You have a controller and you want to make sure it's loaded before you
2045
+ * try to use it
2046
+ * - Your controller is not using exports, so you wish to access some props on
2047
+ * it directly
2048
+ * - You have a controller exports only, and you want to retrieve the
2049
+ * controller itself. This is useful if you wish to call .watchExports() or
2050
+ * some other method on the controller
2051
+ */
2052
+ get useRef() {
2053
+ return ke(this.#e), qn;
2054
+ }
2055
+ /**
2056
+ * Like useRef, but doesn't wait for the controller to get ready
2057
+ *
2058
+ * @private
2059
+ */
2060
+ get useRefSync() {
2061
+ return ke(this.#e), pt;
2062
+ }
2063
+ controllerRemoved() {
2064
+ this.#e.el.isConnected && this.triggerDisconnected(), this.triggerDestroy();
2065
+ }
2066
+ // Register a lifecycle callback
2067
+ onConnected(e) {
2068
+ this.#n.push(e);
2069
+ }
2070
+ onDisconnected(e) {
2071
+ this.#t.push(e);
2072
+ }
2073
+ onLoad(e) {
2074
+ this.#o.push(e);
2075
+ }
2076
+ onLoaded(e) {
2077
+ this.#c.push(e);
2078
+ }
2079
+ onUpdate(e) {
2080
+ this.#u.push(e);
2081
+ }
2082
+ onUpdated(e) {
2083
+ this.#l.push(e);
2084
+ }
2085
+ onDestroy(e) {
2086
+ process.env.NODE_ENV !== "production" && U() && this.#e.manager.devOnly$ensureHasDestroy?.(), this.#d.push(e);
2087
+ }
2088
+ onLifecycle(e) {
2089
+ this.#h.push(e), this.connectedCalled && this.#e.el.isConnected && this.#p(e);
2090
+ }
2091
+ // Call each lifecycle hook
2092
+ /** @private */
2093
+ triggerConnected() {
2094
+ const e = this;
2095
+ e.hostConnected && x(e.hostConnected, e), e.#n.forEach(x), e.triggerLifecycle(), e.connectedCalled = !0;
2096
+ }
2097
+ /** @private */
2098
+ triggerDisconnected() {
2099
+ const e = this;
2100
+ e.hostDisconnected && x(e.hostDisconnected, e), e.#t.forEach(x), e.#i.forEach(x), e.#i = [];
2101
+ }
2102
+ /** @private */
2103
+ async triggerLoad() {
2104
+ if (this.#a)
2105
+ return;
2106
+ this.#a = !0;
2107
+ const e = this;
2108
+ e.hostLoad && await lt(e.hostLoad, e), this.#o.length > 0 && await Promise.allSettled(this.#o.map(lt)), this.P.resolve(this.#r);
2109
+ }
2110
+ /** @private */
2111
+ triggerLoaded() {
2112
+ this.loadedCalled || (this.hostLoaded && x(this.hostLoaded, this), this.#c.forEach(x), this.loadedCalled = !0);
2113
+ }
2114
+ /** @private */
2115
+ triggerUpdate(e) {
2116
+ this.hostUpdate && x(this.hostUpdate, this, e), this.#u.forEach(en, e);
2117
+ }
2118
+ /** @private */
2119
+ triggerUpdated(e) {
2120
+ this.hostUpdated && x(this.hostUpdated, this, e), this.#l.forEach(en, e);
2121
+ }
2122
+ /** @private */
2123
+ triggerDestroy() {
2124
+ this.hostDestroy && x(this.hostDestroy, this), this.#d.forEach(x);
2125
+ }
2126
+ /** @private */
2127
+ triggerLifecycle() {
2128
+ this.hostLifecycle && this.#p(() => this.hostLifecycle()), this.#h.forEach(this.#p, this);
2129
+ }
2130
+ #p(e) {
2131
+ ke(this.#e);
2132
+ const t = x(e);
2133
+ (Array.isArray(t) ? t : [t]).forEach((r) => {
2134
+ typeof r == "function" ? this.#i.push(r) : typeof r == "object" && typeof r.remove == "function" && this.#i.push(r.remove);
2135
+ });
2136
+ }
2137
+ }
2138
+ function en(s) {
2139
+ x(s, void 0, this);
2140
+ }
2141
+ const vo = go, tn = (s) => {
2142
+ if (typeof s != "object" && typeof s != "function" || s === null)
2143
+ return s;
2144
+ const e = {
2145
+ get(o, r, c) {
2146
+ if (!((r === "exports" || r === "_exports") && r in o && o[r] === t)) {
2147
+ if (r in o || r in Promise.prototype || typeof r == "symbol")
2148
+ return typeof o == "function" ? o[r] : Reflect.get(o, r, c);
2149
+ if (process.env.NODE_ENV !== "production" && U()) {
2150
+ if (process.env.NODE_ENV === "test" && (r.startsWith("$$") || r.startsWith("@@") || r === "nodeType" || r === "tagName" || r === "toJSON" || r === "hasAttribute"))
2151
+ return;
2152
+ console.error(
2153
+ `Trying to access "${r.toString()}" on the controller before it's loaded. ${nn}`
2154
+ );
2155
+ }
2156
+ }
2157
+ }
2158
+ };
2159
+ process.env.NODE_ENV !== "production" && U() && (e.set = (o, r, c, u) => (console.error(`Trying to set "${r.toString()}" on the controller before it's loaded. ${nn}`), Reflect.set(o, r, c, u)));
2160
+ const t = new Proxy(s, e);
2161
+ return t;
2162
+ }, nn = process.env.NODE_ENV !== "production" && U() ? [
2163
+ "This might be the case if you are trying to access an async controller in ",
2164
+ "connectedCallback(). Or, if you are using it inside of ",
2165
+ "componentWillLoad()/another controller without controller.use. Example correct ",
2166
+ `usage:
2167
+ `,
2168
+ "makeController(async (component, controller)=>{ await controller.use(someOtherController); });"
2169
+ ].join("") : void 0, Eo = 1, _o = 2, wo = 4, bo = 8, $o = 16, Ao = 32, Co = 64;
2170
+ function Oo(s) {
2171
+ const e = s.prototype, t = Object.getOwnPropertyDescriptor(e, "innerText");
2172
+ if (t !== void 0 && t.set?.name === "setWrapper")
2173
+ return;
2174
+ const o = /* @__PURE__ */ new Set([
2175
+ // We shouldn't be overwriting this property
2176
+ "constructor",
2177
+ // Called by Lit - we proxy it to this.el in ProxyComponent
2178
+ "setAttribute",
2179
+ // Called by Lit SSR - we proxy it to this.el in ProxyComponent
2180
+ "removeAttribute",
2181
+ // Called by Lit - we proxy it to this.el in ProxyComponent
2182
+ "isConnected",
2183
+ // Called by Lit, but only in dev mode for warnings, so we don't have to proxy.
2184
+ "localName",
2185
+ // Called by Lit Context - we proxy it to this.el in ProxyComponent.
2186
+ // Interestingly, they never call removeEventListener.
2187
+ "addEventListener"
2188
+ ]), r = {
2189
+ addEventListener: "use this.listen() or this.el.addEventListener()"
2190
+ };
2191
+ Object.entries({
2192
+ ...Object.getOwnPropertyDescriptors(HTMLElement.prototype),
2193
+ ...Object.getOwnPropertyDescriptors(Element.prototype),
2194
+ ...Object.getOwnPropertyDescriptors(Node.prototype),
2195
+ ...Object.getOwnPropertyDescriptors(EventTarget.prototype)
2196
+ }).forEach(([c, u]) => {
2197
+ if (o.has(c))
2198
+ return;
2199
+ function p(...h) {
2200
+ if (this !== this.el) {
2201
+ if (c === "hasAttribute" && h[0] === "defer-hydration")
2202
+ return !1;
2203
+ throw new Error(
2204
+ `You should not be trying to access this.${c} directly as it won't work correctly in lazy-builds. Instead, ${r[c] ?? `use this.el.${c}`}`
2205
+ );
2206
+ }
2207
+ }
2208
+ if (typeof u.value == "function")
2209
+ e[c] = function(...m) {
2210
+ return p.call(this, ...m) ?? u.value.call(this, ...m);
2211
+ };
2212
+ else if (typeof u.get == "function")
2213
+ Object.defineProperty(e, c, {
2214
+ get() {
2215
+ return p.call(this), u.get.call(this);
2216
+ },
2217
+ set: typeof u.set == "function" ? function(m) {
2218
+ p.call(this), u.set.call(this, m);
2219
+ } : void 0
2220
+ });
2221
+ else {
2222
+ if (c === c.toUpperCase() && typeof u.value == "number")
2223
+ return;
2224
+ throw new Error(`Unexpected value type for ${c}: ${u}`);
2225
+ }
2226
+ });
2227
+ }
2228
+ const fn = (s) => {
2229
+ let e = s;
2230
+ for (; e = e.parentNode ?? e.host; )
2231
+ if (e?.constructor?.lumina) {
2232
+ const t = e;
2233
+ return t.manager?.loadedCalled || (t.J ?? t._offspring).push(s), (t.I ?? t._postLoad).promise;
2234
+ }
2235
+ return !1;
2236
+ };
2237
+ if (process.env.NODE_ENV !== "production") {
2238
+ const s = globalThis;
2239
+ s.litIssuedWarnings ??= /* @__PURE__ */ new Set(), s.litIssuedWarnings.add("dev-mode"), s.litIssuedWarnings.add(
2240
+ "Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-create-property for more information."
2241
+ ), s.litIssuedWarnings.add(
2242
+ "Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-get-property-descriptor for more information."
2243
+ ), U() && (globalThis.calciteConfig ??= { version: " " });
2244
+ }
2245
+ const on = {};
2246
+ function _t() {
2247
+ }
2248
+ process.env.NODE_ENV !== "production" && U();
2249
+ const Ze = Object.defineProperty, So = globalThis.HTMLElement ?? _t;
2250
+ var z, Q, we, be, Je;
2251
+ const wt = class wt extends So {
2252
+ constructor() {
2253
+ var r;
2254
+ super();
2255
+ F(this, be);
2256
+ F(this, z);
2257
+ F(this, Q);
2258
+ F(this, we);
2259
+ V(this, Q, {}), V(this, we, []), this.I = new Ie(), this.H = new Ie(), this.J = [], process.env.NODE_ENV !== "production" && U() && (this.devOnly$hmrSetProps = /* @__PURE__ */ new Set(), this.devOnly$hmrSetAttributes = /* @__PURE__ */ new Set(), globalThis.devOnly$createdElements ??= [], globalThis.devOnly$createdElements.push(new WeakRef(this)), this.devOnly$InitializeComponent = ge(this, be, Je).bind(this), this.devOnly$hmrResetStore = (c) => {
2260
+ V(this, Q, c);
2261
+ });
2262
+ const t = this, o = t.constructor;
2263
+ t._offspring = t.J, t._postLoad = t.I, o.C?.forEach((c) => {
2264
+ Object.hasOwn(t, c) && (L(t, Q)[c] = t[c], delete t[c]);
2265
+ }), o.A ? ge(r = t, be, Je).call(r, { a: o.A }) : o.B.then(async (c) => {
2266
+ var u;
2267
+ await o.K.p, ge(u = t, be, Je).call(
2268
+ u,
2269
+ /**
2270
+ * "$$" is our top-level await polyfill due to broken top-level await
2271
+ * support in Safari. Only applies in CDN build.
2272
+ * See https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/3933
2273
+ * and https://bugs.webkit.org/show_bug.cgi?id=242740
2274
+ */
2275
+ await (c.default?.then(
2276
+ (p) => typeof p == "function" ? { a: p } : p
2277
+ ) ?? c)
2278
+ );
2279
+ }).catch((c) => {
2280
+ t.H.reject(c), setTimeout(() => {
2281
+ throw c;
2282
+ });
2283
+ }), process.env.NODE_ENV !== "production" && U() && (o.devOnly$hmrInstances ??= [], o.devOnly$hmrInstances.push(new WeakRef(this)));
2284
+ }
2285
+ static F() {
2286
+ for (const t of this.C ?? [])
2287
+ Ze(this.prototype, t, {
2288
+ configurable: !0,
2289
+ enumerable: !0,
2290
+ get() {
2291
+ return L(this, Q)[t];
2292
+ },
2293
+ set(o) {
2294
+ L(this, Q)[t] = o, process.env.NODE_ENV !== "production" && U() && this.devOnly$hmrSetProps.add(t);
2295
+ }
2296
+ });
2297
+ for (const t of this.E ?? [])
2298
+ Ze(this.prototype, t, {
2299
+ async value(...o) {
2300
+ return L(this, z) || await this.H.promise, await L(this, z)[t](...o);
2301
+ },
2302
+ configurable: !0
2303
+ });
2304
+ for (const t of this.D ?? [])
2305
+ Ze(this.prototype, t, {
2306
+ value(...o) {
2307
+ if (process.env.NODE_ENV !== "production" && !L(this, z)) {
2308
+ const c = this.constructor;
2309
+ throw new Error(
2310
+ `Tried to call method ${t}() on <${c.L}> component before it's fully loaded. Please do 'await component.componentOnReady();' before calling this method.`
2311
+ );
2312
+ }
2313
+ return L(this, z)[t](...o);
2314
+ },
2315
+ configurable: !0
2316
+ });
2317
+ }
2318
+ get manager() {
2319
+ return L(this, z)?.manager;
2320
+ }
2321
+ /*
2322
+ * This method must be statically present rather than added later, or else,
2323
+ * browsers won't call it. Same for connected and disconnected callbacks.
2324
+ */
2325
+ attributeChangedCallback(t, o, r) {
2326
+ L(this, z)?.attributeChangedCallback(t, o, r), L(this, z) || L(this, we).push(t), process.env.NODE_ENV !== "production" && U() && this.devOnly$hmrSetAttributes.add(t);
2327
+ }
2328
+ connectedCallback() {
2329
+ L(this, z) ? L(this, z).connectedCallback?.() : queueMicrotask(() => this.G = fn(this));
2330
+ }
2331
+ disconnectedCallback() {
2332
+ L(this, z)?.disconnectedCallback?.();
2333
+ }
2334
+ /**
2335
+ * Create a promise that resolves once component is fully loaded
2336
+ */
2337
+ async componentOnReady() {
2338
+ return await this.H.promise, this;
2339
+ }
2340
+ /**
2341
+ * Implemented on the proxy for compatibility with Lit Context.
2342
+ */
2343
+ addController() {
2344
+ }
2345
+ /**
2346
+ * Implemented on the proxy for compatibility with Lit Context.
2347
+ */
2348
+ requestUpdate() {
2349
+ L(this, z)?.requestUpdate();
2350
+ }
2351
+ };
2352
+ z = new WeakMap(), Q = new WeakMap(), we = new WeakMap(), be = new WeakSet(), Je = function(t) {
2353
+ const o = this.constructor, r = o.L, c = L(this, Q), u = Object.values(t).find(
2354
+ (D) => D.L === r
2355
+ );
2356
+ if (process.env.NODE_ENV !== "production" && U() && !u)
2357
+ throw new Error(
2358
+ `Unable to find the LitElement class for the "${r}" custom element in the lazy-loaded module`
2359
+ );
2360
+ const p = process.env.NODE_ENV !== "production" && U() ? (o.devOnly$hmrIndex ?? 0) === 0 ? `${r}--lazy` : `${r}--lazy-${o.devOnly$hmrIndex}` : `${r}--lazy`;
2361
+ let h = u;
2362
+ for (; h && !Object.hasOwn(h, "lumina"); )
2363
+ h = Object.getPrototypeOf(h);
2364
+ To(h), !o.A && (o.A = u, customElements.define(p, u)), u.N = this;
2365
+ const g = document.createElement(p);
2366
+ if (u.N = void 0, V(this, z, g), process.env.NODE_ENV !== "production" && U() && Object.defineProperty(this, "$component", { value: g, configurable: !0, enumerable: !1 }), V(this, Q, g), L(this, we).forEach(
2367
+ (D) => g.attributeChangedCallback(
2368
+ D,
2369
+ // Lit doesn't look at this value, thus even if attribute already exists, that's ok
2370
+ null,
2371
+ this.getAttribute(D)
2372
+ )
2373
+ ), Object.entries(c).forEach(Ro, g), process.env.NODE_ENV !== "production" && U()) {
2374
+ const D = u.observedAttributes ?? [], N = o.observedAttributes ?? [], I = D.filter((q) => !N.includes(q)), Z = N.filter((q) => !D.includes(q));
2375
+ I.length > 0 && console.warn(
2376
+ `The following attributes on <${o.L}> are present on the Lit element, but are missing from the lazy proxy component: ${I.join(", ")}. This either indicates a bug in Lumina, or you are creating the attribute dynamically in a way that compiler cannot infer statically. For these attributes, lazy-loading version of your component won't work correctly, thus this must be resolved`
2377
+ ), Z.length > 0 && console.warn(
2378
+ `The following attributes on <${o.L}> are defined on the lazy proxy component, but not on the actual Lit element: ${Z.join(", ")}. This either indicates a bug in Lumina, or you are creating the attribute dynamically in a way that compiler cannot infer statically. This is a non-critical issue, but does indicate that something is going wrong and should be fixed`
2379
+ );
2380
+ }
2381
+ const _ = this.isConnected;
2382
+ (_ || this.G) && (g.connectedCallback?.(), _ || g.disconnectedCallback());
2383
+ }, wt.lumina = !0;
2384
+ let rn = wt;
2385
+ function Ro([s, e]) {
2386
+ this[s] = e;
2387
+ }
2388
+ const To = (s) => {
2389
+ const e = s.prototype, t = Element.prototype;
2390
+ Object.hasOwn(e, "isConnected") || (e.setAttribute = function(r, c) {
2391
+ t.setAttribute.call(this.el, r, c);
2392
+ }, e.removeAttribute = function(r) {
2393
+ t.removeAttribute.call(this.el, r);
2394
+ }, Ze(e, "isConnected", {
2395
+ get() {
2396
+ return Reflect.get(t, "isConnected", this.el);
2397
+ }
2398
+ })), process.env.NODE_ENV !== "production" && U() && Oo(s);
2399
+ };
2400
+ class yn extends vo {
2401
+ constructor(e) {
2402
+ super(e), this.destroyed = !1, this.R = !1, this.V = W, this.T = [], this.#o = /* @__PURE__ */ new WeakMap(), this.#t = e, this.exports = void 0, this.hasDestroy = tt in e && typeof e.destroy == "function", re.prototype.addController.call(e, {
2403
+ // Lit will call these callbacks
2404
+ // We do not directly implement hostConnected and etc on ControllerManager
2405
+ // because ControllerManager is also included in the list of controllers
2406
+ // we manage - and for each controller we manage we call hostConnected
2407
+ // (from inside of .triggerConnected). So there would be an infinite
2408
+ // loop if Lit calls hostConnected which in turn calls
2409
+ // triggerConnected which calls hostConnected again.
2410
+ hostConnected: () => {
2411
+ if (this.destroyed) {
2412
+ const t = e.el.localName;
2413
+ throw e.el.remove(), new Error(
2414
+ `The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${tt} prop.`
2415
+ );
2416
+ }
2417
+ this.#n !== void 0 && clearTimeout(this.#n), Et();
2418
+ for (const t of e.M)
2419
+ "triggerConnected" in t ? t.triggerConnected() : x(t.hostConnected, t);
2420
+ },
2421
+ hostDisconnected: () => {
2422
+ for (const t of e.M)
2423
+ "triggerDisconnected" in t ? t.triggerDisconnected() : x(t.hostDisconnected, t);
2424
+ this.hasDestroy && !this.destroyed && this.U();
2425
+ },
2426
+ hostUpdate: () => {
2427
+ for (const t of e.M)
2428
+ "triggerUpdate" in t ? t.triggerUpdate(this.Q) : x(t.hostUpdate, t, this.Q);
2429
+ },
2430
+ hostUpdated: () => {
2431
+ for (const t of e.M)
2432
+ "triggerUpdated" in t ? t.triggerUpdated(this.Q) : x(t.hostUpdated, t, this.Q);
2433
+ this.Q = void 0;
2434
+ }
2435
+ }), queueMicrotask(() => this.R = !0), ke(e);
2436
+ }
2437
+ #n;
2438
+ #t;
2439
+ // Keep this method async needlessly for now to avoid a breaking change if we
2440
+ // would need to make it async in the future
2441
+ // eslint-disable-next-line @typescript-eslint/require-await
2442
+ async destroy() {
2443
+ if (process.env.NODE_ENV !== "production" && U() && this.devOnly$ensureHasDestroy?.(), !this.destroyed) {
2444
+ this.#t.el.isConnected && (this.hasDestroy = !1, this.#t.el.remove()), this.#n = void 0, this.destroyed = !0;
2445
+ for (const e of this.#t.M)
2446
+ "triggerDestroy" in e ? e.triggerDestroy() : x(e.hostDestroy, e);
2447
+ this.#t.M.splice(0);
2448
+ }
2449
+ }
2450
+ /** @private */
2451
+ U() {
2452
+ if (this.#n !== void 0 && clearTimeout(this.#n), !this.#t.el.isConnected && !this.#t.autoDestroyDisabled) {
2453
+ const e = () => void this.#t.destroy();
2454
+ process.env.NODE_ENV !== "production" && U() && sn === 0 || (this.#n = In(e, sn));
2455
+ }
2456
+ }
2457
+ /** @private */
2458
+ S(e, t) {
2459
+ const o = this.T;
2460
+ this.V = W, this.T = [], o.forEach((r) => r(e, t));
2461
+ }
2462
+ #o;
2463
+ /**
2464
+ * Associate an exports object with a controller for reverse lookup in
2465
+ * controller.use
2466
+ *
2467
+ * @private
2468
+ */
2469
+ W(e, t) {
2470
+ (typeof t == "object" && t !== null || typeof t == "function") && this.#o.set(t, e);
2471
+ }
2472
+ /** @private */
2473
+ X(e) {
2474
+ if (typeof e == "object" && e !== null || typeof e == "function")
2475
+ return this.#o.get(e);
2476
+ }
2477
+ }
2478
+ process.env.NODE_ENV !== "production" && U() && (yn.prototype.devOnly$ensureHasDestroy = function() {
2479
+ if (!this.hasDestroy)
2480
+ throw new Error(
2481
+ `
2482
+ If the component uses a controller that uses destroy() method, then the
2483
+ component must have the following properties:
2484
+ /**
2485
+ * If true, the component will not be destroyed automatically when it is
2486
+ * disconnected from the document. This is useful when you want to move the
2487
+ * component to a different place on the page, or temporarily hide it. If this
2488
+ * is set, make sure to call the \`destroy\` method when you are done to prevent
2489
+ * memory leaks.
2490
+ */
2491
+ @property() ${tt} = false;
2492
+
2493
+ /** Permanently destroy the component */
2494
+ @method()
2495
+ async destroy(): Promise<void> {
2496
+ await this.manager.destroy();
2497
+ }
2498
+ `.trim().split(`
2499
+ `).map((e) => e.trim()).join(`
2500
+ `)
2501
+ );
2502
+ });
2503
+ let sn = 1e3;
2504
+ const tt = "autoDestroyDisabled";
2505
+ process.env.NODE_ENV !== "production" && U();
2506
+ var le, xe, We, de, X, Ce, mn, gn;
2507
+ const Ue = class Ue extends re {
2508
+ constructor() {
2509
+ super();
2510
+ F(this, Ce);
2511
+ /**
2512
+ * The JS API's Accessor observables. This is used to integrate with the JS
2513
+ * API's reactivity system.
2514
+ *
2515
+ * @private
2516
+ */
2517
+ F(this, le);
2518
+ F(this, xe);
2519
+ F(this, We);
2520
+ F(this, de);
2521
+ F(this, X);
2522
+ this.M = [], this.manager = new yn(this);
2523
+ const t = this, o = t.constructor, r = o.N, c = o.K.o, u = Ue.prototype.shouldUpdate;
2524
+ if (V(t, de, r?.H ?? new Ie()), t.I = r?.I ?? new Ie(), t.J = r?.J ?? [], t._offspring = t.J, t._postLoad = t.I, t.el = r ?? t, V(t, We, t.enableUpdating), t.enableUpdating = _t, t.shouldUpdate !== u && (V(t, xe, t.shouldUpdate), t.shouldUpdate = u), process.env.NODE_ENV !== "production") {
2525
+ const p = globalThis.devOnly$ownTagNames?.has(t.el.localName), h = this.constructor, m = h.enabledWarnings !== re.enabledWarnings;
2526
+ !p && !m && h.disableWarning?.("change-in-update"), U() && (globalThis.devOnly$luminaComponentRefCallback?.(this), Object.entries({
2527
+ componentDidLoad: "loaded",
2528
+ componentDidRender: "updated",
2529
+ componentDidUpdate: "updated",
2530
+ componentShouldUpdate: "shouldUpdate",
2531
+ componentWillLoad: "load",
2532
+ componentWillRender: "willUpdate",
2533
+ componentWillUpdate: "willUpdate"
2534
+ }).forEach(([_, D]) => {
2535
+ if (_ in this)
2536
+ throw new Error(
2537
+ `Unexpected ${_}() in a Lit component ${this.el.localName}. In Lit, you should use ${D}() instead`
2538
+ );
2539
+ }));
2540
+ }
2541
+ c && (V(t, le, /* @__PURE__ */ new Map()), o.elementProperties.forEach((p, h) => L(t, le).set(h, c())));
2542
+ }
2543
+ /**
2544
+ * Customize Lit's default style handling to support non-shadow-root styles
2545
+ */
2546
+ static finalizeStyles(t) {
2547
+ process.env.NODE_ENV === "test" && Array.isArray(t) && (t = t.filter(Boolean));
2548
+ const o = super.finalizeStyles(t), r = this.shadowRootOptions === on;
2549
+ return this.K?.commonStyles === void 0 || r ? o : [this.K.commonStyles, ...o];
2550
+ }
2551
+ static createProperty(t, o) {
2552
+ const r = typeof o == "number" ? o : Array.isArray(o) ? o[0] : 0, c = Array.isArray(o) ? o[1] : void 0, u = c?.hasChanged ?? yt, p = {
2553
+ /**
2554
+ * By default to infer attribute name from property name, Lit just
2555
+ * converts property name to lowercase. That is consistent with
2556
+ * native DOM attributes.
2557
+ *
2558
+ * However, that is not consistent with Stencil and would be a
2559
+ * breaking change for us. Also, kebab-case is more common among the
2560
+ * web components. But the most important reason is that we have
2561
+ * some pretty long attribute names, which would be utterly
2562
+ * unreadable in lowercase.
2563
+ *
2564
+ * Also, if browsers add new attributes, that may cause a conflict
2565
+ * with our attributes.
2566
+ *
2567
+ * Thus, overwriting Lit's default behavior to use kebab-case:
2568
+ */
2569
+ attribute: r & Eo && typeof t == "string" ? Dn(t) : !1,
2570
+ reflect: !!(r & _o),
2571
+ type: r & wo ? Boolean : r & bo ? Number : void 0,
2572
+ /**
2573
+ * At the moment in Lit, state:true just means attribute:false, so this
2574
+ * line is technically redundant, but let's keep it here just in case Lit
2575
+ * will add more meaning to state:true in the future.
2576
+ */
2577
+ state: !!(r & $o),
2578
+ // Controllers add this option to Lit
2579
+ readOnly: !!(r & Ao),
2580
+ noAccessor: !!(r & Co),
2581
+ c: !1,
2582
+ ...c,
2583
+ hasChanged(h, m) {
2584
+ const g = u(h, m);
2585
+ return p.c = g, g;
2586
+ }
2587
+ };
2588
+ super.createProperty(t, p);
2589
+ }
2590
+ static getPropertyDescriptor(t, o, r) {
2591
+ const c = this.K, u = super.getPropertyDescriptor(t, o, r);
2592
+ return r.d = u, {
2593
+ ...u,
2594
+ get() {
2595
+ return c.t?.(L(this, le).get(t)), u.get?.call(this);
2596
+ },
2597
+ set(p) {
2598
+ const h = this.manager;
2599
+ if (r.readOnly && (h.R || h.connectedCalled))
2600
+ throw Error(
2601
+ `Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${p}"`
2602
+ );
2603
+ u.set.call(this, p ?? void 0), r.c && L(this, le)?.get(t)?.notify(), h.T.length > 0 && h?.S(t, p);
2604
+ }
2605
+ };
2606
+ }
2607
+ connectedCallback() {
2608
+ if (this.el.hasAttribute("defer-hydration"))
2609
+ return;
2610
+ const t = this.constructor.K.c?.(() => this.requestUpdate());
2611
+ V(this, X, t);
2612
+ const o = !this.manager.connectedCalled;
2613
+ super.connectedCallback(), o ? queueMicrotask(
2614
+ // eslint-disable-next-line @typescript-eslint/promise-function-async, @typescript-eslint/no-misused-promises
2615
+ () => ge(this, Ce, gn).call(this).catch((r) => {
2616
+ L(this, de).reject(r), setTimeout(() => {
2617
+ throw r;
2618
+ });
2619
+ })
2620
+ ) : t && this.requestUpdate();
2621
+ }
2622
+ disconnectedCallback() {
2623
+ super.disconnectedCallback(), L(this, X)?.destroy(), V(this, X, void 0);
2624
+ }
2625
+ /**
2626
+ * Overwrite Lit's default behavior of attaching shadow root to the lit
2627
+ * element, and instead use this.el to support lazy builds.
2628
+ *
2629
+ * Also, support the case when component asked to not use shadow root
2630
+ */
2631
+ createRenderRoot() {
2632
+ const t = this.el.shadowRoot, o = this.constructor, r = o.shadowRootOptions, u = t ?? (r === on ? this.el : this.el.attachShadow(r));
2633
+ if (t)
2634
+ return re.prototype.createRenderRoot.call(this), t;
2635
+ if (this.isConnected) {
2636
+ const p = u.getRootNode();
2637
+ process.env.NODE_ENV === "test" && (p.adoptedStyleSheets ??= []), p.adoptedStyleSheets = [
2638
+ ...p.adoptedStyleSheets,
2639
+ ...o.elementStyles.map((h) => "styleSheet" in h ? h.styleSheet : h)
2640
+ ];
2641
+ }
2642
+ return u;
2643
+ }
2644
+ /**
2645
+ * Overwriting default shouldUpdate simply to get access to
2646
+ * "changedProperties" so that we can later provide it to ControllerManager
2647
+ */
2648
+ shouldUpdate(t) {
2649
+ var o;
2650
+ return this.manager.Q = t, ((o = L(this, xe)) == null ? void 0 : o.call(this, t)) ?? !0;
2651
+ }
2652
+ update(t) {
2653
+ L(this, X) ? ge(this, Ce, mn).call(this, t) : super.update(t);
2654
+ }
2655
+ listen(t, o, r) {
2656
+ const c = o?.bind(this) ?? o;
2657
+ this.manager.onLifecycle(() => (this.el.addEventListener(t, c, r), () => this.el.removeEventListener(t, c, r)));
2658
+ }
2659
+ listenOn(t, o, r, c) {
2660
+ const u = r?.bind(this) ?? r;
2661
+ this.manager.onLifecycle(() => (t.addEventListener(o, u, c), () => t.removeEventListener(o, u, c)));
2662
+ }
2663
+ /**
2664
+ * Create a promise that resolves once component is fully loaded.
2665
+ *
2666
+ * @example
2667
+ * const map = document.createElement('arcgis-map');
2668
+ * document.body.append(map);
2669
+ * map.componentOnReady().then(() => {
2670
+ * console.log('Map is ready to go!');
2671
+ * });
2672
+ */
2673
+ async componentOnReady() {
2674
+ return await L(this, de).promise, this;
2675
+ }
2676
+ /**
2677
+ * Adds a controller to the host, which connects the controller's lifecycle
2678
+ * methods to the host's lifecycle.
2679
+ *
2680
+ * @remarks
2681
+ * Even though Lit's LitElement already has addController,
2682
+ * we overwrite it with a compatible version to have more control over
2683
+ * timing, and to add support for load/loaded lifecycle hooks.
2684
+ */
2685
+ addController(t) {
2686
+ this.M.push(t), !(ht in t) && this.renderRoot && this.el.isConnected && t.hostConnected?.();
2687
+ }
2688
+ /**
2689
+ * Removes a controller from the host.
2690
+ */
2691
+ removeController(t) {
2692
+ this.M.splice(this.M.indexOf(t), 1), t.controllerRemoved?.();
2693
+ }
2694
+ };
2695
+ le = new WeakMap(), xe = new WeakMap(), We = new WeakMap(), de = new WeakMap(), X = new WeakMap(), Ce = new WeakSet(), mn = function(t) {
2696
+ try {
2697
+ L(this, X).clear(), this.constructor.K.r(
2698
+ L(this, X),
2699
+ () => Mt(Ue.prototype, this, "update").call(this, t)
2700
+ );
2701
+ } catch (o) {
2702
+ throw L(this, X).clear(), o;
2703
+ }
2704
+ }, gn = async function() {
2705
+ const t = this.el.G ?? fn(this.el);
2706
+ t && await t;
2707
+ const o = [];
2708
+ for (const c of this.M)
2709
+ "triggerLoad" in c ? o.push(c.triggerLoad()) : o.push(lt(c.hostLoad, c));
2710
+ await Promise.all(o), await this.load?.(), this.manager.hasDestroy && this.manager.onUpdate(
2711
+ (c) => c.has(tt) && this.manager.U()
2712
+ ), L(this, We).call(this, !0), this.performUpdate(), this.I.resolve(), await Promise.resolve();
2713
+ const r = this.J.filter((c) => !c.manager?.loadedCalled);
2714
+ r.length && await Promise.allSettled(r.map(async (c) => await c.componentOnReady())), this.J.length = 0, this.el.setAttribute(this.constructor.K.hydratedAttribute, "");
2715
+ for (const c of this.M)
2716
+ "triggerLoaded" in c ? c.triggerLoaded() : x(c.hostLoaded, c);
2717
+ this.loaded?.(), L(this, de).resolve();
2718
+ }, Ue.lumina = !0;
2719
+ let an = Ue;
2720
+ const No = {}, Lo = (s, e) => (t) => {
2721
+ const o = t.tagName;
2722
+ let r = No;
2723
+ const c = {
2724
+ name: o,
2725
+ /**
2726
+ * Lit's createComponent tries to access the elementClass.prototype in
2727
+ * global scope (in development mode). The elementClass may not be defined
2728
+ * yet (because we are in a lazy loading build, or because current app
2729
+ * doesn't import a given custom element as it doesn't use it).
2730
+ *
2731
+ * Thus, we return an empty object as a fake prototype.
2732
+ *
2733
+ * Right after the call to `createComponent`, we set to
2734
+ * customElementPrototype undefined so that the next access of
2735
+ * `.prototype` tries to get the real prototype.
2736
+ * `createPrototypeProxy()` is called, this small proxy delays retrieving the custom
2737
+ * element prototype until it is actually needed, and caches the result for future calls.
2738
+ */
2739
+ get prototype() {
2740
+ if (r === void 0) {
2741
+ const p = customElements.get(o);
2742
+ if (!p)
2743
+ throw new Error(`Custom element "${o}" not found`);
2744
+ p.F?.(), p.F = _t, r = p.prototype, Object.defineProperty(c, "prototype", { value: r });
2745
+ }
2746
+ return r;
2747
+ }
2748
+ }, u = e({
2749
+ ...t,
2750
+ react: s,
2751
+ elementClass: c
2752
+ });
2753
+ return r = void 0, u;
2754
+ }, R = (s, e) => ({ tagName: s, events: e }), T = /* @__PURE__ */ Lo(Ln, kn), Do = /* @__PURE__ */ T(
2755
+ R(
2756
+ "instant-apps-app-guide",
2757
+ {}
2758
+ )
2759
+ ), Uo = /* @__PURE__ */ T(
2760
+ R(
2761
+ "instant-apps-control-panel",
2762
+ {}
2763
+ )
2764
+ ), Io = /* @__PURE__ */ T(
2765
+ R(
2766
+ "instant-apps-create",
2767
+ {}
2768
+ )
2769
+ ), Mo = /* @__PURE__ */ T(
2770
+ R(
2771
+ "instant-apps-export",
2772
+ {
2773
+ onExportOutputUpdated: "exportOutputUpdated"
2774
+ }
2775
+ )
2776
+ ), jo = /* @__PURE__ */ T(
2777
+ R(
2778
+ "instant-apps-export-views",
2779
+ {
2780
+ onExportOutputUpdated: "exportOutputUpdated"
2781
+ }
2782
+ )
2783
+ ), Ho = /* @__PURE__ */ T(
2784
+ R(
2785
+ "instant-apps-filter-list",
2786
+ {
2787
+ onFilterListReset: "filterListReset",
2788
+ onFilterUpdate: "filterUpdate"
2789
+ }
2790
+ )
2791
+ ), xo = /* @__PURE__ */ T(
2792
+ R(
2793
+ "instant-apps-header",
2794
+ {
2795
+ onInfoIsOpenChanged: "infoIsOpenChanged"
2796
+ }
2797
+ )
2798
+ ), Wo = /* @__PURE__ */ T(
2799
+ R(
2800
+ "instant-apps-interactive-legend",
2801
+ {}
2802
+ )
2803
+ ), zo = /* @__PURE__ */ T(
2804
+ R(
2805
+ "instant-apps-interactive-legend-classic",
2806
+ {}
2807
+ )
2808
+ ), qo = /* @__PURE__ */ T(
2809
+ R(
2810
+ "instant-apps-interactive-legend-count",
2811
+ {}
2812
+ )
2813
+ ), Yo = /* @__PURE__ */ T(
2814
+ R(
2815
+ "instant-apps-interactive-legend-group-legend-element",
2816
+ {}
2817
+ )
2818
+ ), Vo = /* @__PURE__ */ T(
2819
+ R(
2820
+ "instant-apps-interactive-legend-group-legend-element-caption",
2821
+ {
2822
+ onGroupLayerCaptionElementExpandUpdated: "groupLayerCaptionElementExpandUpdated"
2823
+ }
2824
+ )
2825
+ ), Bo = /* @__PURE__ */ T(
2826
+ R(
2827
+ "instant-apps-interactive-legend-layer-element",
2828
+ {}
2829
+ )
2830
+ ), Fo = /* @__PURE__ */ T(
2831
+ R(
2832
+ "instant-apps-interactive-legend-layer-element-caption",
2833
+ {
2834
+ onLayerCaptionElementExpandUpdated: "layerCaptionElementExpandUpdated"
2835
+ }
2836
+ )
2837
+ ), Ko = /* @__PURE__ */ T(
2838
+ R(
2839
+ "instant-apps-interactive-legend-legend-element",
2840
+ {}
2841
+ )
2842
+ ), Go = /* @__PURE__ */ T(
2843
+ R(
2844
+ "instant-apps-interactive-legend-legend-element-caption",
2845
+ {
2846
+ onLegendLayerExpandUpdated: "legendLayerExpandUpdated",
2847
+ onShowAllSelected: "showAllSelected"
2848
+ }
2849
+ )
2850
+ ), Qo = /* @__PURE__ */ T(
2851
+ R(
2852
+ "instant-apps-interactive-legend-relationship",
2853
+ {}
2854
+ )
2855
+ ), Xo = /* @__PURE__ */ T(
2856
+ R(
2857
+ "instant-apps-keyboard-shortcuts",
2858
+ {}
2859
+ )
2860
+ ), Zo = /* @__PURE__ */ T(
2861
+ R(
2862
+ "instant-apps-landing-page",
2863
+ {
2864
+ onLandingPageClose: "landingPageClose",
2865
+ onLandingPageOpen: "landingPageOpen"
2866
+ }
2867
+ )
2868
+ ), Jo = /* @__PURE__ */ T(
2869
+ R(
2870
+ "instant-apps-language-switcher",
2871
+ {
2872
+ onSelectedLanguageUpdated: "selectedLanguageUpdated"
2873
+ }
2874
+ )
2875
+ ), er = /* @__PURE__ */ T(
2876
+ R(
2877
+ "instant-apps-language-translator",
2878
+ {
2879
+ onTranslatorDataUpdated: "translatorDataUpdated"
2880
+ }
2881
+ )
2882
+ ), tr = /* @__PURE__ */ T(
2883
+ R(
2884
+ "instant-apps-ckeditor-wrapper",
2885
+ {
2886
+ onDataChanged: "dataChanged",
2887
+ onIsFocused: "isFocused"
2888
+ }
2889
+ )
2890
+ ), nr = /* @__PURE__ */ T(
2891
+ R(
2892
+ "instant-apps-language-translator-item",
2893
+ {
2894
+ onTranslatorItemDataUpdated: "translatorItemDataUpdated"
2895
+ }
2896
+ )
2897
+ ), or = /* @__PURE__ */ T(
2898
+ R(
2899
+ "instant-apps-language-translator-search",
2900
+ {
2901
+ onSuggestionSelected: "suggestionSelected"
2902
+ }
2903
+ )
2904
+ ), rr = /* @__PURE__ */ T(
2905
+ R(
2906
+ "instant-apps-measurement",
2907
+ {
2908
+ onMeasureActive: "measureActive"
2909
+ }
2910
+ )
2911
+ ), sr = /* @__PURE__ */ T(
2912
+ R(
2913
+ "instant-apps-measurement-tool",
2914
+ {}
2915
+ )
2916
+ ), ir = /* @__PURE__ */ T(
2917
+ R(
2918
+ "instant-apps-popover",
2919
+ {}
2920
+ )
2921
+ ), ar = /* @__PURE__ */ T(
2922
+ R(
2923
+ "instant-apps-popovers",
2924
+ {}
2925
+ )
2926
+ ), cr = /* @__PURE__ */ T(
2927
+ R(
2928
+ "instant-apps-scoreboard",
2929
+ {
2930
+ onScoreboardItemsUpdated: "scoreboardItemsUpdated"
2931
+ }
2932
+ )
2933
+ ), ur = /* @__PURE__ */ T(
2934
+ R(
2935
+ "instant-apps-sign-in",
2936
+ {}
2937
+ )
2938
+ ), lr = /* @__PURE__ */ T(
2939
+ R(
2940
+ "instant-apps-social-share",
2941
+ {}
2942
+ )
2943
+ ), dr = /* @__PURE__ */ T(
2944
+ R(
2945
+ "instant-apps-splash",
2946
+ {
2947
+ onSplashClose: "splashClose"
2948
+ }
2949
+ )
2950
+ ), hr = /* @__PURE__ */ T(
2951
+ R(
2952
+ "instant-apps-time-filter",
2953
+ {}
2954
+ )
2955
+ );
2956
+ export {
2957
+ Do as InstantAppsAppGuide,
2958
+ tr as InstantAppsCkeditorWrapper,
2959
+ Uo as InstantAppsControlPanel,
2960
+ Io as InstantAppsCreate,
2961
+ Mo as InstantAppsExport,
2962
+ jo as InstantAppsExportViews,
2963
+ Ho as InstantAppsFilterList,
2964
+ xo as InstantAppsHeader,
2965
+ Wo as InstantAppsInteractiveLegend,
2966
+ zo as InstantAppsInteractiveLegendClassic,
2967
+ qo as InstantAppsInteractiveLegendCount,
2968
+ Yo as InstantAppsInteractiveLegendGroupLegendElement,
2969
+ Vo as InstantAppsInteractiveLegendGroupLegendElementCaption,
2970
+ Bo as InstantAppsInteractiveLegendLayerElement,
2971
+ Fo as InstantAppsInteractiveLegendLayerElementCaption,
2972
+ Ko as InstantAppsInteractiveLegendLegendElement,
2973
+ Go as InstantAppsInteractiveLegendLegendElementCaption,
2974
+ Qo as InstantAppsInteractiveLegendRelationship,
2975
+ Xo as InstantAppsKeyboardShortcuts,
2976
+ Zo as InstantAppsLandingPage,
2977
+ Jo as InstantAppsLanguageSwitcher,
2978
+ er as InstantAppsLanguageTranslator,
2979
+ nr as InstantAppsLanguageTranslatorItem,
2980
+ or as InstantAppsLanguageTranslatorSearch,
2981
+ rr as InstantAppsMeasurement,
2982
+ sr as InstantAppsMeasurementTool,
2983
+ ir as InstantAppsPopover,
2984
+ ar as InstantAppsPopovers,
2985
+ cr as InstantAppsScoreboard,
2986
+ ur as InstantAppsSignIn,
2987
+ lr as InstantAppsSocialShare,
2988
+ dr as InstantAppsSplash,
2989
+ hr as InstantAppsTimeFilter
2990
+ };