ymy-components 0.0.0

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.
@@ -0,0 +1,2898 @@
1
+ import * as jt from "react";
2
+ import Lr, { useState as Ze, useRef as re, useEffect as ce, useLayoutEffect as Xn, forwardRef as Zn, useCallback as ei, useContext as zr, useMemo as Ge } from "react";
3
+ import { unstable_batchedUpdates as ti } from "react-dom";
4
+ var He = { exports: {} }, Re = {};
5
+ /**
6
+ * @license React
7
+ * react-jsx-runtime.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ var yr;
15
+ function ri() {
16
+ if (yr) return Re;
17
+ yr = 1;
18
+ var e = Lr, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function o(l, d, u) {
20
+ var m, p = {}, v = null, g = null;
21
+ u !== void 0 && (v = "" + u), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (g = d.ref);
22
+ for (m in d) n.call(d, m) && !a.hasOwnProperty(m) && (p[m] = d[m]);
23
+ if (l && l.defaultProps) for (m in d = l.defaultProps, d) p[m] === void 0 && (p[m] = d[m]);
24
+ return { $$typeof: t, type: l, key: v, ref: g, props: p, _owner: s.current };
25
+ }
26
+ return Re.Fragment = r, Re.jsx = o, Re.jsxs = o, Re;
27
+ }
28
+ var Se = {};
29
+ /**
30
+ * @license React
31
+ * react-jsx-runtime.development.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */
38
+ var br;
39
+ function ni() {
40
+ return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
41
+ var e = Lr, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), _ = Symbol.iterator, R = "@@iterator";
42
+ function x(i) {
43
+ if (i === null || typeof i != "object")
44
+ return null;
45
+ var c = _ && i[_] || i[R];
46
+ return typeof c == "function" ? c : null;
47
+ }
48
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ function b(i) {
50
+ {
51
+ for (var c = arguments.length, h = new Array(c > 1 ? c - 1 : 0), w = 1; w < c; w++)
52
+ h[w - 1] = arguments[w];
53
+ S("error", i, h);
54
+ }
55
+ }
56
+ function S(i, c, h) {
57
+ {
58
+ var w = y.ReactDebugCurrentFrame, C = w.getStackAddendum();
59
+ C !== "" && (c += "%s", h = h.concat([C]));
60
+ var O = h.map(function(T) {
61
+ return String(T);
62
+ });
63
+ O.unshift("Warning: " + c), Function.prototype.apply.call(console[i], console, O);
64
+ }
65
+ }
66
+ var k = !1, j = !1, X = !1, U = !1, de = !1, V;
67
+ V = Symbol.for("react.module.reference");
68
+ function oe(i) {
69
+ return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || de || i === s || i === u || i === m || U || i === g || k || j || X || typeof i == "object" && i !== null && (i.$$typeof === v || i.$$typeof === p || i.$$typeof === o || i.$$typeof === l || i.$$typeof === d || // This needs to include all possible module reference object
70
+ // types supported by any Flight configuration anywhere since
71
+ // we don't know which Flight build this will end up being used
72
+ // with.
73
+ i.$$typeof === V || i.getModuleId !== void 0));
74
+ }
75
+ function M(i, c, h) {
76
+ var w = i.displayName;
77
+ if (w)
78
+ return w;
79
+ var C = c.displayName || c.name || "";
80
+ return C !== "" ? h + "(" + C + ")" : h;
81
+ }
82
+ function Z(i) {
83
+ return i.displayName || "Context";
84
+ }
85
+ function D(i) {
86
+ if (i == null)
87
+ return null;
88
+ if (typeof i.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
89
+ return i.displayName || i.name || null;
90
+ if (typeof i == "string")
91
+ return i;
92
+ switch (i) {
93
+ case n:
94
+ return "Fragment";
95
+ case r:
96
+ return "Portal";
97
+ case a:
98
+ return "Profiler";
99
+ case s:
100
+ return "StrictMode";
101
+ case u:
102
+ return "Suspense";
103
+ case m:
104
+ return "SuspenseList";
105
+ }
106
+ if (typeof i == "object")
107
+ switch (i.$$typeof) {
108
+ case l:
109
+ var c = i;
110
+ return Z(c) + ".Consumer";
111
+ case o:
112
+ var h = i;
113
+ return Z(h._context) + ".Provider";
114
+ case d:
115
+ return M(i, i.render, "ForwardRef");
116
+ case p:
117
+ var w = i.displayName || null;
118
+ return w !== null ? w : D(i.type) || "Memo";
119
+ case v: {
120
+ var C = i, O = C._payload, T = C._init;
121
+ try {
122
+ return D(T(O));
123
+ } catch {
124
+ return null;
125
+ }
126
+ }
127
+ }
128
+ return null;
129
+ }
130
+ var ee = Object.assign, _e = 0, Ht, Jt, Kt, Xt, Zt, er, tr;
131
+ function rr() {
132
+ }
133
+ rr.__reactDisabledLog = !0;
134
+ function xn() {
135
+ {
136
+ if (_e === 0) {
137
+ Ht = console.log, Jt = console.info, Kt = console.warn, Xt = console.error, Zt = console.group, er = console.groupCollapsed, tr = console.groupEnd;
138
+ var i = {
139
+ configurable: !0,
140
+ enumerable: !0,
141
+ value: rr,
142
+ writable: !0
143
+ };
144
+ Object.defineProperties(console, {
145
+ info: i,
146
+ log: i,
147
+ warn: i,
148
+ error: i,
149
+ group: i,
150
+ groupCollapsed: i,
151
+ groupEnd: i
152
+ });
153
+ }
154
+ _e++;
155
+ }
156
+ }
157
+ function Pn() {
158
+ {
159
+ if (_e--, _e === 0) {
160
+ var i = {
161
+ configurable: !0,
162
+ enumerable: !0,
163
+ writable: !0
164
+ };
165
+ Object.defineProperties(console, {
166
+ log: ee({}, i, {
167
+ value: Ht
168
+ }),
169
+ info: ee({}, i, {
170
+ value: Jt
171
+ }),
172
+ warn: ee({}, i, {
173
+ value: Kt
174
+ }),
175
+ error: ee({}, i, {
176
+ value: Xt
177
+ }),
178
+ group: ee({}, i, {
179
+ value: Zt
180
+ }),
181
+ groupCollapsed: ee({}, i, {
182
+ value: er
183
+ }),
184
+ groupEnd: ee({}, i, {
185
+ value: tr
186
+ })
187
+ });
188
+ }
189
+ _e < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
+ }
191
+ }
192
+ var dt = y.ReactCurrentDispatcher, ht;
193
+ function We(i, c, h) {
194
+ {
195
+ if (ht === void 0)
196
+ try {
197
+ throw Error();
198
+ } catch (C) {
199
+ var w = C.stack.trim().match(/\n( *(at )?)/);
200
+ ht = w && w[1] || "";
201
+ }
202
+ return `
203
+ ` + ht + i;
204
+ }
205
+ }
206
+ var mt = !1, Be;
207
+ {
208
+ var An = typeof WeakMap == "function" ? WeakMap : Map;
209
+ Be = new An();
210
+ }
211
+ function nr(i, c) {
212
+ if (!i || mt)
213
+ return "";
214
+ {
215
+ var h = Be.get(i);
216
+ if (h !== void 0)
217
+ return h;
218
+ }
219
+ var w;
220
+ mt = !0;
221
+ var C = Error.prepareStackTrace;
222
+ Error.prepareStackTrace = void 0;
223
+ var O;
224
+ O = dt.current, dt.current = null, xn();
225
+ try {
226
+ if (c) {
227
+ var T = function() {
228
+ throw Error();
229
+ };
230
+ if (Object.defineProperty(T.prototype, "props", {
231
+ set: function() {
232
+ throw Error();
233
+ }
234
+ }), typeof Reflect == "object" && Reflect.construct) {
235
+ try {
236
+ Reflect.construct(T, []);
237
+ } catch (N) {
238
+ w = N;
239
+ }
240
+ Reflect.construct(i, [], T);
241
+ } else {
242
+ try {
243
+ T.call();
244
+ } catch (N) {
245
+ w = N;
246
+ }
247
+ i.call(T.prototype);
248
+ }
249
+ } else {
250
+ try {
251
+ throw Error();
252
+ } catch (N) {
253
+ w = N;
254
+ }
255
+ i();
256
+ }
257
+ } catch (N) {
258
+ if (N && w && typeof N.stack == "string") {
259
+ for (var P = N.stack.split(`
260
+ `), $ = w.stack.split(`
261
+ `), I = P.length - 1, F = $.length - 1; I >= 1 && F >= 0 && P[I] !== $[F]; )
262
+ F--;
263
+ for (; I >= 1 && F >= 0; I--, F--)
264
+ if (P[I] !== $[F]) {
265
+ if (I !== 1 || F !== 1)
266
+ do
267
+ if (I--, F--, F < 0 || P[I] !== $[F]) {
268
+ var z = `
269
+ ` + P[I].replace(" at new ", " at ");
270
+ return i.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", i.displayName)), typeof i == "function" && Be.set(i, z), z;
271
+ }
272
+ while (I >= 1 && F >= 0);
273
+ break;
274
+ }
275
+ }
276
+ } finally {
277
+ mt = !1, dt.current = O, Pn(), Error.prepareStackTrace = C;
278
+ }
279
+ var me = i ? i.displayName || i.name : "", ue = me ? We(me) : "";
280
+ return typeof i == "function" && Be.set(i, ue), ue;
281
+ }
282
+ function Tn(i, c, h) {
283
+ return nr(i, !1);
284
+ }
285
+ function Cn(i) {
286
+ var c = i.prototype;
287
+ return !!(c && c.isReactComponent);
288
+ }
289
+ function Ye(i, c, h) {
290
+ if (i == null)
291
+ return "";
292
+ if (typeof i == "function")
293
+ return nr(i, Cn(i));
294
+ if (typeof i == "string")
295
+ return We(i);
296
+ switch (i) {
297
+ case u:
298
+ return We("Suspense");
299
+ case m:
300
+ return We("SuspenseList");
301
+ }
302
+ if (typeof i == "object")
303
+ switch (i.$$typeof) {
304
+ case d:
305
+ return Tn(i.render);
306
+ case p:
307
+ return Ye(i.type, c, h);
308
+ case v: {
309
+ var w = i, C = w._payload, O = w._init;
310
+ try {
311
+ return Ye(O(C), c, h);
312
+ } catch {
313
+ }
314
+ }
315
+ }
316
+ return "";
317
+ }
318
+ var we = Object.prototype.hasOwnProperty, ir = {}, sr = y.ReactDebugCurrentFrame;
319
+ function Qe(i) {
320
+ if (i) {
321
+ var c = i._owner, h = Ye(i.type, i._source, c ? c.type : null);
322
+ sr.setExtraStackFrame(h);
323
+ } else
324
+ sr.setExtraStackFrame(null);
325
+ }
326
+ function kn(i, c, h, w, C) {
327
+ {
328
+ var O = Function.call.bind(we);
329
+ for (var T in i)
330
+ if (O(i, T)) {
331
+ var P = void 0;
332
+ try {
333
+ if (typeof i[T] != "function") {
334
+ var $ = Error((w || "React class") + ": " + h + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw $.name = "Invariant Violation", $;
336
+ }
337
+ P = i[T](c, T, w, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
+ } catch (I) {
339
+ P = I;
340
+ }
341
+ P && !(P instanceof Error) && (Qe(C), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", h, T, typeof P), Qe(null)), P instanceof Error && !(P.message in ir) && (ir[P.message] = !0, Qe(C), b("Failed %s type: %s", h, P.message), Qe(null));
342
+ }
343
+ }
344
+ }
345
+ var On = Array.isArray;
346
+ function pt(i) {
347
+ return On(i);
348
+ }
349
+ function In(i) {
350
+ {
351
+ var c = typeof Symbol == "function" && Symbol.toStringTag, h = c && i[Symbol.toStringTag] || i.constructor.name || "Object";
352
+ return h;
353
+ }
354
+ }
355
+ function Fn(i) {
356
+ try {
357
+ return ar(i), !1;
358
+ } catch {
359
+ return !0;
360
+ }
361
+ }
362
+ function ar(i) {
363
+ return "" + i;
364
+ }
365
+ function or(i) {
366
+ if (Fn(i))
367
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", In(i)), ar(i);
368
+ }
369
+ var ur = y.ReactCurrentOwner, jn = {
370
+ key: !0,
371
+ ref: !0,
372
+ __self: !0,
373
+ __source: !0
374
+ }, lr, cr;
375
+ function Vn(i) {
376
+ if (we.call(i, "ref")) {
377
+ var c = Object.getOwnPropertyDescriptor(i, "ref").get;
378
+ if (c && c.isReactWarning)
379
+ return !1;
380
+ }
381
+ return i.ref !== void 0;
382
+ }
383
+ function Dn(i) {
384
+ if (we.call(i, "key")) {
385
+ var c = Object.getOwnPropertyDescriptor(i, "key").get;
386
+ if (c && c.isReactWarning)
387
+ return !1;
388
+ }
389
+ return i.key !== void 0;
390
+ }
391
+ function $n(i, c) {
392
+ typeof i.ref == "string" && ur.current;
393
+ }
394
+ function Un(i, c) {
395
+ {
396
+ var h = function() {
397
+ lr || (lr = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
398
+ };
399
+ h.isReactWarning = !0, Object.defineProperty(i, "key", {
400
+ get: h,
401
+ configurable: !0
402
+ });
403
+ }
404
+ }
405
+ function Nn(i, c) {
406
+ {
407
+ var h = function() {
408
+ cr || (cr = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
409
+ };
410
+ h.isReactWarning = !0, Object.defineProperty(i, "ref", {
411
+ get: h,
412
+ configurable: !0
413
+ });
414
+ }
415
+ }
416
+ var qn = function(i, c, h, w, C, O, T) {
417
+ var P = {
418
+ // This tag allows us to uniquely identify this as a React Element
419
+ $$typeof: t,
420
+ // Built-in properties that belong on the element
421
+ type: i,
422
+ key: c,
423
+ ref: h,
424
+ props: T,
425
+ // Record the component responsible for creating this element.
426
+ _owner: O
427
+ };
428
+ return P._store = {}, Object.defineProperty(P._store, "validated", {
429
+ configurable: !1,
430
+ enumerable: !1,
431
+ writable: !0,
432
+ value: !1
433
+ }), Object.defineProperty(P, "_self", {
434
+ configurable: !1,
435
+ enumerable: !1,
436
+ writable: !1,
437
+ value: w
438
+ }), Object.defineProperty(P, "_source", {
439
+ configurable: !1,
440
+ enumerable: !1,
441
+ writable: !1,
442
+ value: C
443
+ }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
444
+ };
445
+ function Mn(i, c, h, w, C) {
446
+ {
447
+ var O, T = {}, P = null, $ = null;
448
+ h !== void 0 && (or(h), P = "" + h), Dn(c) && (or(c.key), P = "" + c.key), Vn(c) && ($ = c.ref, $n(c, C));
449
+ for (O in c)
450
+ we.call(c, O) && !jn.hasOwnProperty(O) && (T[O] = c[O]);
451
+ if (i && i.defaultProps) {
452
+ var I = i.defaultProps;
453
+ for (O in I)
454
+ T[O] === void 0 && (T[O] = I[O]);
455
+ }
456
+ if (P || $) {
457
+ var F = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
458
+ P && Un(T, F), $ && Nn(T, F);
459
+ }
460
+ return qn(i, P, $, C, w, ur.current, T);
461
+ }
462
+ }
463
+ var vt = y.ReactCurrentOwner, fr = y.ReactDebugCurrentFrame;
464
+ function he(i) {
465
+ if (i) {
466
+ var c = i._owner, h = Ye(i.type, i._source, c ? c.type : null);
467
+ fr.setExtraStackFrame(h);
468
+ } else
469
+ fr.setExtraStackFrame(null);
470
+ }
471
+ var gt;
472
+ gt = !1;
473
+ function yt(i) {
474
+ return typeof i == "object" && i !== null && i.$$typeof === t;
475
+ }
476
+ function dr() {
477
+ {
478
+ if (vt.current) {
479
+ var i = D(vt.current.type);
480
+ if (i)
481
+ return `
482
+
483
+ Check the render method of \`` + i + "`.";
484
+ }
485
+ return "";
486
+ }
487
+ }
488
+ function Ln(i) {
489
+ return "";
490
+ }
491
+ var hr = {};
492
+ function zn(i) {
493
+ {
494
+ var c = dr();
495
+ if (!c) {
496
+ var h = typeof i == "string" ? i : i.displayName || i.name;
497
+ h && (c = `
498
+
499
+ Check the top-level render call using <` + h + ">.");
500
+ }
501
+ return c;
502
+ }
503
+ }
504
+ function mr(i, c) {
505
+ {
506
+ if (!i._store || i._store.validated || i.key != null)
507
+ return;
508
+ i._store.validated = !0;
509
+ var h = zn(c);
510
+ if (hr[h])
511
+ return;
512
+ hr[h] = !0;
513
+ var w = "";
514
+ i && i._owner && i._owner !== vt.current && (w = " It was passed a child from " + D(i._owner.type) + "."), he(i), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, w), he(null);
515
+ }
516
+ }
517
+ function pr(i, c) {
518
+ {
519
+ if (typeof i != "object")
520
+ return;
521
+ if (pt(i))
522
+ for (var h = 0; h < i.length; h++) {
523
+ var w = i[h];
524
+ yt(w) && mr(w, c);
525
+ }
526
+ else if (yt(i))
527
+ i._store && (i._store.validated = !0);
528
+ else if (i) {
529
+ var C = x(i);
530
+ if (typeof C == "function" && C !== i.entries)
531
+ for (var O = C.call(i), T; !(T = O.next()).done; )
532
+ yt(T.value) && mr(T.value, c);
533
+ }
534
+ }
535
+ }
536
+ function Wn(i) {
537
+ {
538
+ var c = i.type;
539
+ if (c == null || typeof c == "string")
540
+ return;
541
+ var h;
542
+ if (typeof c == "function")
543
+ h = c.propTypes;
544
+ else if (typeof c == "object" && (c.$$typeof === d || // Note: Memo only checks outer props here.
545
+ // Inner props are checked in the reconciler.
546
+ c.$$typeof === p))
547
+ h = c.propTypes;
548
+ else
549
+ return;
550
+ if (h) {
551
+ var w = D(c);
552
+ kn(h, i.props, "prop", w, i);
553
+ } else if (c.PropTypes !== void 0 && !gt) {
554
+ gt = !0;
555
+ var C = D(c);
556
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
557
+ }
558
+ typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
559
+ }
560
+ }
561
+ function Bn(i) {
562
+ {
563
+ for (var c = Object.keys(i.props), h = 0; h < c.length; h++) {
564
+ var w = c[h];
565
+ if (w !== "children" && w !== "key") {
566
+ he(i), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), he(null);
567
+ break;
568
+ }
569
+ }
570
+ i.ref !== null && (he(i), b("Invalid attribute `ref` supplied to `React.Fragment`."), he(null));
571
+ }
572
+ }
573
+ var vr = {};
574
+ function gr(i, c, h, w, C, O) {
575
+ {
576
+ var T = oe(i);
577
+ if (!T) {
578
+ var P = "";
579
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
580
+ var $ = Ln();
581
+ $ ? P += $ : P += dr();
582
+ var I;
583
+ i === null ? I = "null" : pt(i) ? I = "array" : i !== void 0 && i.$$typeof === t ? (I = "<" + (D(i.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : I = typeof i, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, P);
584
+ }
585
+ var F = Mn(i, c, h, C, O);
586
+ if (F == null)
587
+ return F;
588
+ if (T) {
589
+ var z = c.children;
590
+ if (z !== void 0)
591
+ if (w)
592
+ if (pt(z)) {
593
+ for (var me = 0; me < z.length; me++)
594
+ pr(z[me], i);
595
+ Object.freeze && Object.freeze(z);
596
+ } else
597
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
598
+ else
599
+ pr(z, i);
600
+ }
601
+ if (we.call(c, "key")) {
602
+ var ue = D(i), N = Object.keys(c).filter(function(Kn) {
603
+ return Kn !== "key";
604
+ }), bt = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
605
+ if (!vr[ue + bt]) {
606
+ var Jn = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
607
+ b(`A props object containing a "key" prop is being spread into JSX:
608
+ let props = %s;
609
+ <%s {...props} />
610
+ React keys must be passed directly to JSX without using spread:
611
+ let props = %s;
612
+ <%s key={someKey} {...props} />`, bt, ue, Jn, ue), vr[ue + bt] = !0;
613
+ }
614
+ }
615
+ return i === n ? Bn(F) : Wn(F), F;
616
+ }
617
+ }
618
+ function Yn(i, c, h) {
619
+ return gr(i, c, h, !0);
620
+ }
621
+ function Qn(i, c, h) {
622
+ return gr(i, c, h, !1);
623
+ }
624
+ var Gn = Qn, Hn = Yn;
625
+ Se.Fragment = n, Se.jsx = Gn, Se.jsxs = Hn;
626
+ }()), Se;
627
+ }
628
+ var _r;
629
+ function ii() {
630
+ return _r || (_r = 1, process.env.NODE_ENV === "production" ? He.exports = ri() : He.exports = ni()), He.exports;
631
+ }
632
+ var J = ii(), Vt = Le(), E = (e) => Me(e, Vt), Dt = Le();
633
+ E.write = (e) => Me(e, Dt);
634
+ var it = Le();
635
+ E.onStart = (e) => Me(e, it);
636
+ var $t = Le();
637
+ E.onFrame = (e) => Me(e, $t);
638
+ var Ut = Le();
639
+ E.onFinish = (e) => Me(e, Ut);
640
+ var ve = [];
641
+ E.setTimeout = (e, t) => {
642
+ const r = E.now() + t, n = () => {
643
+ const a = ve.findIndex((o) => o.cancel == n);
644
+ ~a && ve.splice(a, 1), se -= ~a ? 1 : 0;
645
+ }, s = { time: r, handler: e, cancel: n };
646
+ return ve.splice(Wr(r), 0, s), se += 1, Br(), s;
647
+ };
648
+ var Wr = (e) => ~(~ve.findIndex((t) => t.time > e) || ~ve.length);
649
+ E.cancel = (e) => {
650
+ it.delete(e), $t.delete(e), Ut.delete(e), Vt.delete(e), Dt.delete(e);
651
+ };
652
+ E.sync = (e) => {
653
+ Pt = !0, E.batchedUpdates(e), Pt = !1;
654
+ };
655
+ E.throttle = (e) => {
656
+ let t;
657
+ function r() {
658
+ try {
659
+ e(...t);
660
+ } finally {
661
+ t = null;
662
+ }
663
+ }
664
+ function n(...s) {
665
+ t = s, E.onStart(r);
666
+ }
667
+ return n.handler = e, n.cancel = () => {
668
+ it.delete(r), t = null;
669
+ }, n;
670
+ };
671
+ var Nt = typeof window < "u" ? window.requestAnimationFrame : (
672
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
673
+ () => {
674
+ }
675
+ );
676
+ E.use = (e) => Nt = e;
677
+ E.now = typeof performance < "u" ? () => performance.now() : Date.now;
678
+ E.batchedUpdates = (e) => e();
679
+ E.catch = console.error;
680
+ E.frameLoop = "always";
681
+ E.advance = () => {
682
+ E.frameLoop !== "demand" ? console.warn(
683
+ "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
684
+ ) : Qr();
685
+ };
686
+ var ie = -1, se = 0, Pt = !1;
687
+ function Me(e, t) {
688
+ Pt ? (t.delete(e), e(0)) : (t.add(e), Br());
689
+ }
690
+ function Br() {
691
+ ie < 0 && (ie = 0, E.frameLoop !== "demand" && Nt(Yr));
692
+ }
693
+ function si() {
694
+ ie = -1;
695
+ }
696
+ function Yr() {
697
+ ~ie && (Nt(Yr), E.batchedUpdates(Qr));
698
+ }
699
+ function Qr() {
700
+ const e = ie;
701
+ ie = E.now();
702
+ const t = Wr(ie);
703
+ if (t && (Gr(ve.splice(0, t), (r) => r.handler()), se -= t), !se) {
704
+ si();
705
+ return;
706
+ }
707
+ it.flush(), Vt.flush(e ? Math.min(64, ie - e) : 16.667), $t.flush(), Dt.flush(), Ut.flush();
708
+ }
709
+ function Le() {
710
+ let e = /* @__PURE__ */ new Set(), t = e;
711
+ return {
712
+ add(r) {
713
+ se += t == e && !e.has(r) ? 1 : 0, e.add(r);
714
+ },
715
+ delete(r) {
716
+ return se -= t == e && e.has(r) ? 1 : 0, e.delete(r);
717
+ },
718
+ flush(r) {
719
+ t.size && (e = /* @__PURE__ */ new Set(), se -= t.size, Gr(t, (n) => n(r) && e.add(n)), se += e.size, t = e);
720
+ }
721
+ };
722
+ }
723
+ function Gr(e, t) {
724
+ e.forEach((r) => {
725
+ try {
726
+ t(r);
727
+ } catch (n) {
728
+ E.catch(n);
729
+ }
730
+ });
731
+ }
732
+ var ai = Object.defineProperty, oi = (e, t) => {
733
+ for (var r in t)
734
+ ai(e, r, { get: t[r], enumerable: !0 });
735
+ }, G = {};
736
+ oi(G, {
737
+ assign: () => li,
738
+ colors: () => ae,
739
+ createStringInterpolator: () => Mt,
740
+ skipAnimation: () => Jr,
741
+ to: () => Hr,
742
+ willAdvance: () => Lt
743
+ });
744
+ function At() {
745
+ }
746
+ var ui = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), f = {
747
+ arr: Array.isArray,
748
+ obj: (e) => !!e && e.constructor.name === "Object",
749
+ fun: (e) => typeof e == "function",
750
+ str: (e) => typeof e == "string",
751
+ num: (e) => typeof e == "number",
752
+ und: (e) => e === void 0
753
+ };
754
+ function te(e, t) {
755
+ if (f.arr(e)) {
756
+ if (!f.arr(t) || e.length !== t.length)
757
+ return !1;
758
+ for (let r = 0; r < e.length; r++)
759
+ if (e[r] !== t[r])
760
+ return !1;
761
+ return !0;
762
+ }
763
+ return e === t;
764
+ }
765
+ var A = (e, t) => e.forEach(t);
766
+ function K(e, t, r) {
767
+ if (f.arr(e)) {
768
+ for (let n = 0; n < e.length; n++)
769
+ t.call(r, e[n], `${n}`);
770
+ return;
771
+ }
772
+ for (const n in e)
773
+ e.hasOwnProperty(n) && t.call(r, e[n], n);
774
+ }
775
+ var L = (e) => f.und(e) ? [] : f.arr(e) ? e : [e];
776
+ function Te(e, t) {
777
+ if (e.size) {
778
+ const r = Array.from(e);
779
+ e.clear(), A(r, t);
780
+ }
781
+ }
782
+ var Ae = (e, ...t) => Te(e, (r) => r(...t)), qt = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Mt, Hr, ae = null, Jr = !1, Lt = At, li = (e) => {
783
+ e.to && (Hr = e.to), e.now && (E.now = e.now), e.colors !== void 0 && (ae = e.colors), e.skipAnimation != null && (Jr = e.skipAnimation), e.createStringInterpolator && (Mt = e.createStringInterpolator), e.requestAnimationFrame && E.use(e.requestAnimationFrame), e.batchedUpdates && (E.batchedUpdates = e.batchedUpdates), e.willAdvance && (Lt = e.willAdvance), e.frameLoop && (E.frameLoop = e.frameLoop);
784
+ }, Ce = /* @__PURE__ */ new Set(), B = [], _t = [], et = 0, st = {
785
+ get idle() {
786
+ return !Ce.size && !B.length;
787
+ },
788
+ /** Advance the given animation on every frame until idle. */
789
+ start(e) {
790
+ et > e.priority ? (Ce.add(e), E.onStart(ci)) : (Kr(e), E(Tt));
791
+ },
792
+ /** Advance all animations by the given time. */
793
+ advance: Tt,
794
+ /** Call this when an animation's priority changes. */
795
+ sort(e) {
796
+ if (et)
797
+ E.onFrame(() => st.sort(e));
798
+ else {
799
+ const t = B.indexOf(e);
800
+ ~t && (B.splice(t, 1), Xr(e));
801
+ }
802
+ },
803
+ /**
804
+ * Clear all animations. For testing purposes.
805
+ *
806
+ * ☠️ Never call this from within the frameloop.
807
+ */
808
+ clear() {
809
+ B = [], Ce.clear();
810
+ }
811
+ };
812
+ function ci() {
813
+ Ce.forEach(Kr), Ce.clear(), E(Tt);
814
+ }
815
+ function Kr(e) {
816
+ B.includes(e) || Xr(e);
817
+ }
818
+ function Xr(e) {
819
+ B.splice(
820
+ fi(B, (t) => t.priority > e.priority),
821
+ 0,
822
+ e
823
+ );
824
+ }
825
+ function Tt(e) {
826
+ const t = _t;
827
+ for (let r = 0; r < B.length; r++) {
828
+ const n = B[r];
829
+ et = n.priority, n.idle || (Lt(n), n.advance(e), n.idle || t.push(n));
830
+ }
831
+ return et = 0, _t = B, _t.length = 0, B = t, B.length > 0;
832
+ }
833
+ function fi(e, t) {
834
+ const r = e.findIndex(t);
835
+ return r < 0 ? e.length : r;
836
+ }
837
+ var di = {
838
+ transparent: 0,
839
+ aliceblue: 4042850303,
840
+ antiquewhite: 4209760255,
841
+ aqua: 16777215,
842
+ aquamarine: 2147472639,
843
+ azure: 4043309055,
844
+ beige: 4126530815,
845
+ bisque: 4293182719,
846
+ black: 255,
847
+ blanchedalmond: 4293643775,
848
+ blue: 65535,
849
+ blueviolet: 2318131967,
850
+ brown: 2771004159,
851
+ burlywood: 3736635391,
852
+ burntsienna: 3934150143,
853
+ cadetblue: 1604231423,
854
+ chartreuse: 2147418367,
855
+ chocolate: 3530104575,
856
+ coral: 4286533887,
857
+ cornflowerblue: 1687547391,
858
+ cornsilk: 4294499583,
859
+ crimson: 3692313855,
860
+ cyan: 16777215,
861
+ darkblue: 35839,
862
+ darkcyan: 9145343,
863
+ darkgoldenrod: 3095792639,
864
+ darkgray: 2846468607,
865
+ darkgreen: 6553855,
866
+ darkgrey: 2846468607,
867
+ darkkhaki: 3182914559,
868
+ darkmagenta: 2332068863,
869
+ darkolivegreen: 1433087999,
870
+ darkorange: 4287365375,
871
+ darkorchid: 2570243327,
872
+ darkred: 2332033279,
873
+ darksalmon: 3918953215,
874
+ darkseagreen: 2411499519,
875
+ darkslateblue: 1211993087,
876
+ darkslategray: 793726975,
877
+ darkslategrey: 793726975,
878
+ darkturquoise: 13554175,
879
+ darkviolet: 2483082239,
880
+ deeppink: 4279538687,
881
+ deepskyblue: 12582911,
882
+ dimgray: 1768516095,
883
+ dimgrey: 1768516095,
884
+ dodgerblue: 512819199,
885
+ firebrick: 2988581631,
886
+ floralwhite: 4294635775,
887
+ forestgreen: 579543807,
888
+ fuchsia: 4278255615,
889
+ gainsboro: 3705462015,
890
+ ghostwhite: 4177068031,
891
+ gold: 4292280575,
892
+ goldenrod: 3668254975,
893
+ gray: 2155905279,
894
+ green: 8388863,
895
+ greenyellow: 2919182335,
896
+ grey: 2155905279,
897
+ honeydew: 4043305215,
898
+ hotpink: 4285117695,
899
+ indianred: 3445382399,
900
+ indigo: 1258324735,
901
+ ivory: 4294963455,
902
+ khaki: 4041641215,
903
+ lavender: 3873897215,
904
+ lavenderblush: 4293981695,
905
+ lawngreen: 2096890111,
906
+ lemonchiffon: 4294626815,
907
+ lightblue: 2916673279,
908
+ lightcoral: 4034953471,
909
+ lightcyan: 3774873599,
910
+ lightgoldenrodyellow: 4210742015,
911
+ lightgray: 3553874943,
912
+ lightgreen: 2431553791,
913
+ lightgrey: 3553874943,
914
+ lightpink: 4290167295,
915
+ lightsalmon: 4288707327,
916
+ lightseagreen: 548580095,
917
+ lightskyblue: 2278488831,
918
+ lightslategray: 2005441023,
919
+ lightslategrey: 2005441023,
920
+ lightsteelblue: 2965692159,
921
+ lightyellow: 4294959359,
922
+ lime: 16711935,
923
+ limegreen: 852308735,
924
+ linen: 4210091775,
925
+ magenta: 4278255615,
926
+ maroon: 2147483903,
927
+ mediumaquamarine: 1724754687,
928
+ mediumblue: 52735,
929
+ mediumorchid: 3126187007,
930
+ mediumpurple: 2473647103,
931
+ mediumseagreen: 1018393087,
932
+ mediumslateblue: 2070474495,
933
+ mediumspringgreen: 16423679,
934
+ mediumturquoise: 1221709055,
935
+ mediumvioletred: 3340076543,
936
+ midnightblue: 421097727,
937
+ mintcream: 4127193855,
938
+ mistyrose: 4293190143,
939
+ moccasin: 4293178879,
940
+ navajowhite: 4292783615,
941
+ navy: 33023,
942
+ oldlace: 4260751103,
943
+ olive: 2155872511,
944
+ olivedrab: 1804477439,
945
+ orange: 4289003775,
946
+ orangered: 4282712319,
947
+ orchid: 3664828159,
948
+ palegoldenrod: 4008225535,
949
+ palegreen: 2566625535,
950
+ paleturquoise: 2951671551,
951
+ palevioletred: 3681588223,
952
+ papayawhip: 4293907967,
953
+ peachpuff: 4292524543,
954
+ peru: 3448061951,
955
+ pink: 4290825215,
956
+ plum: 3718307327,
957
+ powderblue: 2967529215,
958
+ purple: 2147516671,
959
+ rebeccapurple: 1714657791,
960
+ red: 4278190335,
961
+ rosybrown: 3163525119,
962
+ royalblue: 1097458175,
963
+ saddlebrown: 2336560127,
964
+ salmon: 4202722047,
965
+ sandybrown: 4104413439,
966
+ seagreen: 780883967,
967
+ seashell: 4294307583,
968
+ sienna: 2689740287,
969
+ silver: 3233857791,
970
+ skyblue: 2278484991,
971
+ slateblue: 1784335871,
972
+ slategray: 1887473919,
973
+ slategrey: 1887473919,
974
+ snow: 4294638335,
975
+ springgreen: 16744447,
976
+ steelblue: 1182971135,
977
+ tan: 3535047935,
978
+ teal: 8421631,
979
+ thistle: 3636451583,
980
+ tomato: 4284696575,
981
+ turquoise: 1088475391,
982
+ violet: 4001558271,
983
+ wheat: 4125012991,
984
+ white: 4294967295,
985
+ whitesmoke: 4126537215,
986
+ yellow: 4294902015,
987
+ yellowgreen: 2597139199
988
+ }, Q = "[-+]?\\d*\\.?\\d+", tt = Q + "%";
989
+ function at(...e) {
990
+ return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
991
+ }
992
+ var hi = new RegExp("rgb" + at(Q, Q, Q)), mi = new RegExp("rgba" + at(Q, Q, Q, Q)), pi = new RegExp("hsl" + at(Q, tt, tt)), vi = new RegExp(
993
+ "hsla" + at(Q, tt, tt, Q)
994
+ ), gi = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, yi = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, bi = /^#([0-9a-fA-F]{6})$/, _i = /^#([0-9a-fA-F]{8})$/;
995
+ function wi(e) {
996
+ let t;
997
+ return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = bi.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : ae && ae[e] !== void 0 ? ae[e] : (t = hi.exec(e)) ? (pe(t[1]) << 24 | // r
998
+ pe(t[2]) << 16 | // g
999
+ pe(t[3]) << 8 | // b
1000
+ 255) >>> // a
1001
+ 0 : (t = mi.exec(e)) ? (pe(t[1]) << 24 | // r
1002
+ pe(t[2]) << 16 | // g
1003
+ pe(t[3]) << 8 | // b
1004
+ Sr(t[4])) >>> // a
1005
+ 0 : (t = gi.exec(e)) ? parseInt(
1006
+ t[1] + t[1] + // r
1007
+ t[2] + t[2] + // g
1008
+ t[3] + t[3] + // b
1009
+ "ff",
1010
+ // a
1011
+ 16
1012
+ ) >>> 0 : (t = _i.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = yi.exec(e)) ? parseInt(
1013
+ t[1] + t[1] + // r
1014
+ t[2] + t[2] + // g
1015
+ t[3] + t[3] + // b
1016
+ t[4] + t[4],
1017
+ // a
1018
+ 16
1019
+ ) >>> 0 : (t = pi.exec(e)) ? (wr(
1020
+ Rr(t[1]),
1021
+ // h
1022
+ Je(t[2]),
1023
+ // s
1024
+ Je(t[3])
1025
+ // l
1026
+ ) | 255) >>> // a
1027
+ 0 : (t = vi.exec(e)) ? (wr(
1028
+ Rr(t[1]),
1029
+ // h
1030
+ Je(t[2]),
1031
+ // s
1032
+ Je(t[3])
1033
+ // l
1034
+ ) | Sr(t[4])) >>> // a
1035
+ 0 : null;
1036
+ }
1037
+ function wt(e, t, r) {
1038
+ return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
1039
+ }
1040
+ function wr(e, t, r) {
1041
+ const n = r < 0.5 ? r * (1 + t) : r + t - r * t, s = 2 * r - n, a = wt(s, n, e + 1 / 3), o = wt(s, n, e), l = wt(s, n, e - 1 / 3);
1042
+ return Math.round(a * 255) << 24 | Math.round(o * 255) << 16 | Math.round(l * 255) << 8;
1043
+ }
1044
+ function pe(e) {
1045
+ const t = parseInt(e, 10);
1046
+ return t < 0 ? 0 : t > 255 ? 255 : t;
1047
+ }
1048
+ function Rr(e) {
1049
+ return (parseFloat(e) % 360 + 360) % 360 / 360;
1050
+ }
1051
+ function Sr(e) {
1052
+ const t = parseFloat(e);
1053
+ return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
1054
+ }
1055
+ function Je(e) {
1056
+ const t = parseFloat(e);
1057
+ return t < 0 ? 0 : t > 100 ? 1 : t / 100;
1058
+ }
1059
+ function Er(e) {
1060
+ let t = wi(e);
1061
+ if (t === null)
1062
+ return e;
1063
+ t = t || 0;
1064
+ const r = (t & 4278190080) >>> 24, n = (t & 16711680) >>> 16, s = (t & 65280) >>> 8, a = (t & 255) / 255;
1065
+ return `rgba(${r}, ${n}, ${s}, ${a})`;
1066
+ }
1067
+ var Ie = (e, t, r) => {
1068
+ if (f.fun(e))
1069
+ return e;
1070
+ if (f.arr(e))
1071
+ return Ie({
1072
+ range: e,
1073
+ output: t,
1074
+ extrapolate: r
1075
+ });
1076
+ if (f.str(e.output[0]))
1077
+ return Mt(e);
1078
+ const n = e, s = n.output, a = n.range || [0, 1], o = n.extrapolateLeft || n.extrapolate || "extend", l = n.extrapolateRight || n.extrapolate || "extend", d = n.easing || ((u) => u);
1079
+ return (u) => {
1080
+ const m = Si(u, a);
1081
+ return Ri(
1082
+ u,
1083
+ a[m],
1084
+ a[m + 1],
1085
+ s[m],
1086
+ s[m + 1],
1087
+ d,
1088
+ o,
1089
+ l,
1090
+ n.map
1091
+ );
1092
+ };
1093
+ };
1094
+ function Ri(e, t, r, n, s, a, o, l, d) {
1095
+ let u = d ? d(e) : e;
1096
+ if (u < t) {
1097
+ if (o === "identity")
1098
+ return u;
1099
+ o === "clamp" && (u = t);
1100
+ }
1101
+ if (u > r) {
1102
+ if (l === "identity")
1103
+ return u;
1104
+ l === "clamp" && (u = r);
1105
+ }
1106
+ return n === s ? n : t === r ? e <= t ? n : s : (t === -1 / 0 ? u = -u : r === 1 / 0 ? u = u - t : u = (u - t) / (r - t), u = a(u), n === -1 / 0 ? u = -u : s === 1 / 0 ? u = u + n : u = u * (s - n) + n, u);
1107
+ }
1108
+ function Si(e, t) {
1109
+ for (var r = 1; r < t.length - 1 && !(t[r] >= e); ++r)
1110
+ ;
1111
+ return r - 1;
1112
+ }
1113
+ var Ei = {
1114
+ linear: (e) => e
1115
+ }, Fe = Symbol.for("FluidValue.get"), ye = Symbol.for("FluidValue.observers"), W = (e) => !!(e && e[Fe]), q = (e) => e && e[Fe] ? e[Fe]() : e, xr = (e) => e[ye] || null;
1116
+ function xi(e, t) {
1117
+ e.eventObserved ? e.eventObserved(t) : e(t);
1118
+ }
1119
+ function je(e, t) {
1120
+ const r = e[ye];
1121
+ r && r.forEach((n) => {
1122
+ xi(n, t);
1123
+ });
1124
+ }
1125
+ var Zr = class {
1126
+ constructor(e) {
1127
+ if (!e && !(e = this.get))
1128
+ throw Error("Unknown getter");
1129
+ Pi(this, e);
1130
+ }
1131
+ }, Pi = (e, t) => en(e, Fe, t);
1132
+ function be(e, t) {
1133
+ if (e[Fe]) {
1134
+ let r = e[ye];
1135
+ r || en(e, ye, r = /* @__PURE__ */ new Set()), r.has(t) || (r.add(t), e.observerAdded && e.observerAdded(r.size, t));
1136
+ }
1137
+ return t;
1138
+ }
1139
+ function Ve(e, t) {
1140
+ const r = e[ye];
1141
+ if (r && r.has(t)) {
1142
+ const n = r.size - 1;
1143
+ n ? r.delete(t) : e[ye] = null, e.observerRemoved && e.observerRemoved(n, t);
1144
+ }
1145
+ }
1146
+ var en = (e, t, r) => Object.defineProperty(e, t, {
1147
+ value: r,
1148
+ writable: !0,
1149
+ configurable: !0
1150
+ }), Ke = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ai = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Pr = new RegExp(`(${Ke.source})(%|[a-z]+)`, "i"), Ti = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, ot = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, tn = (e) => {
1151
+ const [t, r] = Ci(e);
1152
+ if (!t || qt())
1153
+ return e;
1154
+ const n = window.getComputedStyle(document.documentElement).getPropertyValue(t);
1155
+ if (n)
1156
+ return n.trim();
1157
+ if (r && r.startsWith("--")) {
1158
+ const s = window.getComputedStyle(document.documentElement).getPropertyValue(r);
1159
+ return s || e;
1160
+ } else {
1161
+ if (r && ot.test(r))
1162
+ return tn(r);
1163
+ if (r)
1164
+ return r;
1165
+ }
1166
+ return e;
1167
+ }, Ci = (e) => {
1168
+ const t = ot.exec(e);
1169
+ if (!t)
1170
+ return [,];
1171
+ const [, r, n] = t;
1172
+ return [r, n];
1173
+ }, Rt, ki = (e, t, r, n, s) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${s})`, rn = (e) => {
1174
+ Rt || (Rt = ae ? (
1175
+ // match color names, ignore partial matches
1176
+ new RegExp(`(${Object.keys(ae).join("|")})(?!\\w)`, "g")
1177
+ ) : (
1178
+ // never match
1179
+ /^\b$/
1180
+ ));
1181
+ const t = e.output.map((a) => q(a).replace(ot, tn).replace(Ai, Er).replace(Rt, Er)), r = t.map((a) => a.match(Ke).map(Number)), s = r[0].map(
1182
+ (a, o) => r.map((l) => {
1183
+ if (!(o in l))
1184
+ throw Error('The arity of each "output" value must be equal');
1185
+ return l[o];
1186
+ })
1187
+ ).map(
1188
+ (a) => Ie({ ...e, output: a })
1189
+ );
1190
+ return (a) => {
1191
+ var d;
1192
+ const o = !Pr.test(t[0]) && ((d = t.find((u) => Pr.test(u))) == null ? void 0 : d.replace(Ke, ""));
1193
+ let l = 0;
1194
+ return t[0].replace(
1195
+ Ke,
1196
+ () => `${s[l++](a)}${o || ""}`
1197
+ ).replace(Ti, ki);
1198
+ };
1199
+ }, zt = "react-spring: ", nn = (e) => {
1200
+ const t = e;
1201
+ let r = !1;
1202
+ if (typeof t != "function")
1203
+ throw new TypeError(`${zt}once requires a function parameter`);
1204
+ return (...n) => {
1205
+ r || (t(...n), r = !0);
1206
+ };
1207
+ }, Oi = nn(console.warn);
1208
+ function Ii() {
1209
+ Oi(
1210
+ `${zt}The "interpolate" function is deprecated in v9 (use "to" instead)`
1211
+ );
1212
+ }
1213
+ var Fi = nn(console.warn);
1214
+ function ji() {
1215
+ Fi(
1216
+ `${zt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
1217
+ );
1218
+ }
1219
+ function ut(e) {
1220
+ return f.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
1221
+ !qt() && ot.test(e) || e in (ae || {}));
1222
+ }
1223
+ var Wt = qt() ? ce : Xn, Vi = () => {
1224
+ const e = re(!1);
1225
+ return Wt(() => (e.current = !0, () => {
1226
+ e.current = !1;
1227
+ }), []), e;
1228
+ };
1229
+ function sn() {
1230
+ const e = Ze()[1], t = Vi();
1231
+ return () => {
1232
+ t.current && e(Math.random());
1233
+ };
1234
+ }
1235
+ function Di(e, t) {
1236
+ const [r] = Ze(
1237
+ () => ({
1238
+ inputs: t,
1239
+ result: e()
1240
+ })
1241
+ ), n = re(), s = n.current;
1242
+ let a = s;
1243
+ return a ? t && a.inputs && $i(t, a.inputs) || (a = {
1244
+ inputs: t,
1245
+ result: e()
1246
+ }) : a = r, ce(() => {
1247
+ n.current = a, s == r && (r.inputs = r.result = void 0);
1248
+ }, [a]), a.result;
1249
+ }
1250
+ function $i(e, t) {
1251
+ if (e.length !== t.length)
1252
+ return !1;
1253
+ for (let r = 0; r < e.length; r++)
1254
+ if (e[r] !== t[r])
1255
+ return !1;
1256
+ return !0;
1257
+ }
1258
+ var an = (e) => ce(e, Ui), Ui = [];
1259
+ function Ar(e) {
1260
+ const t = re();
1261
+ return ce(() => {
1262
+ t.current = e;
1263
+ }), t.current;
1264
+ }
1265
+ var De = Symbol.for("Animated:node"), Ni = (e) => !!e && e[De] === e, H = (e) => e && e[De], Bt = (e, t) => ui(e, De, t), lt = (e) => e && e[De] && e[De].getPayload(), on = class {
1266
+ constructor() {
1267
+ Bt(this, this);
1268
+ }
1269
+ /** Get every `AnimatedValue` used by this node. */
1270
+ getPayload() {
1271
+ return this.payload || [];
1272
+ }
1273
+ }, ze = class extends on {
1274
+ constructor(e) {
1275
+ super(), this._value = e, this.done = !0, this.durationProgress = 0, f.num(this._value) && (this.lastPosition = this._value);
1276
+ }
1277
+ /** @internal */
1278
+ static create(e) {
1279
+ return new ze(e);
1280
+ }
1281
+ getPayload() {
1282
+ return [this];
1283
+ }
1284
+ getValue() {
1285
+ return this._value;
1286
+ }
1287
+ setValue(e, t) {
1288
+ return f.num(e) && (this.lastPosition = e, t && (e = Math.round(e / t) * t, this.done && (this.lastPosition = e))), this._value === e ? !1 : (this._value = e, !0);
1289
+ }
1290
+ reset() {
1291
+ const { done: e } = this;
1292
+ this.done = !1, f.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null);
1293
+ }
1294
+ }, $e = class extends ze {
1295
+ constructor(e) {
1296
+ super(0), this._string = null, this._toString = Ie({
1297
+ output: [e, e]
1298
+ });
1299
+ }
1300
+ /** @internal */
1301
+ static create(e) {
1302
+ return new $e(e);
1303
+ }
1304
+ getValue() {
1305
+ const e = this._string;
1306
+ return e ?? (this._string = this._toString(this._value));
1307
+ }
1308
+ setValue(e) {
1309
+ if (f.str(e)) {
1310
+ if (e == this._string)
1311
+ return !1;
1312
+ this._string = e, this._value = 1;
1313
+ } else if (super.setValue(e))
1314
+ this._string = null;
1315
+ else
1316
+ return !1;
1317
+ return !0;
1318
+ }
1319
+ reset(e) {
1320
+ e && (this._toString = Ie({
1321
+ output: [this.getValue(), e]
1322
+ })), this._value = 0, super.reset();
1323
+ }
1324
+ }, rt = { dependencies: null }, ct = class extends on {
1325
+ constructor(e) {
1326
+ super(), this.source = e, this.setValue(e);
1327
+ }
1328
+ getValue(e) {
1329
+ const t = {};
1330
+ return K(this.source, (r, n) => {
1331
+ Ni(r) ? t[n] = r.getValue(e) : W(r) ? t[n] = q(r) : e || (t[n] = r);
1332
+ }), t;
1333
+ }
1334
+ /** Replace the raw object data */
1335
+ setValue(e) {
1336
+ this.source = e, this.payload = this._makePayload(e);
1337
+ }
1338
+ reset() {
1339
+ this.payload && A(this.payload, (e) => e.reset());
1340
+ }
1341
+ /** Create a payload set. */
1342
+ _makePayload(e) {
1343
+ if (e) {
1344
+ const t = /* @__PURE__ */ new Set();
1345
+ return K(e, this._addToPayload, t), Array.from(t);
1346
+ }
1347
+ }
1348
+ /** Add to a payload set. */
1349
+ _addToPayload(e) {
1350
+ rt.dependencies && W(e) && rt.dependencies.add(e);
1351
+ const t = lt(e);
1352
+ t && A(t, (r) => this.add(r));
1353
+ }
1354
+ }, un = class extends ct {
1355
+ constructor(e) {
1356
+ super(e);
1357
+ }
1358
+ /** @internal */
1359
+ static create(e) {
1360
+ return new un(e);
1361
+ }
1362
+ getValue() {
1363
+ return this.source.map((e) => e.getValue());
1364
+ }
1365
+ setValue(e) {
1366
+ const t = this.getPayload();
1367
+ return e.length == t.length ? t.map((r, n) => r.setValue(e[n])).some(Boolean) : (super.setValue(e.map(qi)), !0);
1368
+ }
1369
+ };
1370
+ function qi(e) {
1371
+ return (ut(e) ? $e : ze).create(e);
1372
+ }
1373
+ function Ct(e) {
1374
+ const t = H(e);
1375
+ return t ? t.constructor : f.arr(e) ? un : ut(e) ? $e : ze;
1376
+ }
1377
+ var Tr = (e, t) => {
1378
+ const r = (
1379
+ // Function components must use "forwardRef" to avoid being
1380
+ // re-rendered on every animation frame.
1381
+ !f.fun(e) || e.prototype && e.prototype.isReactComponent
1382
+ );
1383
+ return Zn((n, s) => {
1384
+ const a = re(null), o = r && // eslint-disable-next-line react-hooks/rules-of-hooks
1385
+ ei(
1386
+ (_) => {
1387
+ a.current = zi(s, _);
1388
+ },
1389
+ [s]
1390
+ ), [l, d] = Li(n, t), u = sn(), m = () => {
1391
+ const _ = a.current;
1392
+ if (r && !_)
1393
+ return;
1394
+ (_ ? t.applyAnimatedValues(_, l.getValue(!0)) : !1) === !1 && u();
1395
+ }, p = new Mi(m, d), v = re();
1396
+ Wt(() => (v.current = p, A(d, (_) => be(_, p)), () => {
1397
+ v.current && (A(
1398
+ v.current.deps,
1399
+ (_) => Ve(_, v.current)
1400
+ ), E.cancel(v.current.update));
1401
+ })), ce(m, []), an(() => () => {
1402
+ const _ = v.current;
1403
+ A(_.deps, (R) => Ve(R, _));
1404
+ });
1405
+ const g = t.getComponentProps(l.getValue());
1406
+ return /* @__PURE__ */ jt.createElement(e, { ...g, ref: o });
1407
+ });
1408
+ }, Mi = class {
1409
+ constructor(e, t) {
1410
+ this.update = e, this.deps = t;
1411
+ }
1412
+ eventObserved(e) {
1413
+ e.type == "change" && E.write(this.update);
1414
+ }
1415
+ };
1416
+ function Li(e, t) {
1417
+ const r = /* @__PURE__ */ new Set();
1418
+ return rt.dependencies = r, e.style && (e = {
1419
+ ...e,
1420
+ style: t.createAnimatedStyle(e.style)
1421
+ }), e = new ct(e), rt.dependencies = null, [e, r];
1422
+ }
1423
+ function zi(e, t) {
1424
+ return e && (f.fun(e) ? e(t) : e.current = t), t;
1425
+ }
1426
+ var Cr = Symbol.for("AnimatedComponent"), Wi = (e, {
1427
+ applyAnimatedValues: t = () => !1,
1428
+ createAnimatedStyle: r = (s) => new ct(s),
1429
+ getComponentProps: n = (s) => s
1430
+ } = {}) => {
1431
+ const s = {
1432
+ applyAnimatedValues: t,
1433
+ createAnimatedStyle: r,
1434
+ getComponentProps: n
1435
+ }, a = (o) => {
1436
+ const l = kr(o) || "Anonymous";
1437
+ return f.str(o) ? o = a[o] || (a[o] = Tr(o, s)) : o = o[Cr] || (o[Cr] = Tr(o, s)), o.displayName = `Animated(${l})`, o;
1438
+ };
1439
+ return K(e, (o, l) => {
1440
+ f.arr(e) && (l = kr(o)), a[l] = a(o);
1441
+ }), {
1442
+ animated: a
1443
+ };
1444
+ }, kr = (e) => f.str(e) ? e : e && f.str(e.displayName) ? e.displayName : f.fun(e) && e.name || null;
1445
+ function le(e, ...t) {
1446
+ return f.fun(e) ? e(...t) : e;
1447
+ }
1448
+ var ke = (e, t) => e === !0 || !!(t && e && (f.fun(e) ? e(t) : L(e).includes(t))), ln = (e, t) => f.obj(e) ? t && e[t] : e, cn = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, Bi = (e) => e, Yt = (e, t = Bi) => {
1449
+ let r = Yi;
1450
+ e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
1451
+ const n = {};
1452
+ for (const s of r) {
1453
+ const a = t(e[s], s);
1454
+ f.und(a) || (n[s] = a);
1455
+ }
1456
+ return n;
1457
+ }, Yi = [
1458
+ "config",
1459
+ "onProps",
1460
+ "onStart",
1461
+ "onChange",
1462
+ "onPause",
1463
+ "onResume",
1464
+ "onRest"
1465
+ ], Qi = {
1466
+ config: 1,
1467
+ from: 1,
1468
+ to: 1,
1469
+ ref: 1,
1470
+ loop: 1,
1471
+ reset: 1,
1472
+ pause: 1,
1473
+ cancel: 1,
1474
+ reverse: 1,
1475
+ immediate: 1,
1476
+ default: 1,
1477
+ delay: 1,
1478
+ onProps: 1,
1479
+ onStart: 1,
1480
+ onChange: 1,
1481
+ onPause: 1,
1482
+ onResume: 1,
1483
+ onRest: 1,
1484
+ onResolve: 1,
1485
+ // Transition props
1486
+ items: 1,
1487
+ trail: 1,
1488
+ sort: 1,
1489
+ expires: 1,
1490
+ initial: 1,
1491
+ enter: 1,
1492
+ update: 1,
1493
+ leave: 1,
1494
+ children: 1,
1495
+ onDestroyed: 1,
1496
+ // Internal props
1497
+ keys: 1,
1498
+ callId: 1,
1499
+ parentId: 1
1500
+ };
1501
+ function Gi(e) {
1502
+ const t = {};
1503
+ let r = 0;
1504
+ if (K(e, (n, s) => {
1505
+ Qi[s] || (t[s] = n, r++);
1506
+ }), r)
1507
+ return t;
1508
+ }
1509
+ function fn(e) {
1510
+ const t = Gi(e);
1511
+ if (t) {
1512
+ const r = { to: t };
1513
+ return K(e, (n, s) => s in t || (r[s] = n)), r;
1514
+ }
1515
+ return { ...e };
1516
+ }
1517
+ function Ue(e) {
1518
+ return e = q(e), f.arr(e) ? e.map(Ue) : ut(e) ? G.createStringInterpolator({
1519
+ range: [0, 1],
1520
+ output: [e, e]
1521
+ })(1) : e;
1522
+ }
1523
+ function Hi(e) {
1524
+ for (const t in e)
1525
+ return !0;
1526
+ return !1;
1527
+ }
1528
+ function kt(e) {
1529
+ return f.fun(e) || f.arr(e) && f.obj(e[0]);
1530
+ }
1531
+ function Ji(e, t) {
1532
+ var r;
1533
+ (r = e.ref) == null || r.delete(e), t == null || t.delete(e);
1534
+ }
1535
+ function Ki(e, t) {
1536
+ var r;
1537
+ t && e.ref !== t && ((r = e.ref) == null || r.delete(e), t.add(e), e.ref = t);
1538
+ }
1539
+ var Xi = {
1540
+ default: { tension: 170, friction: 26 }
1541
+ }, Ot = {
1542
+ ...Xi.default,
1543
+ mass: 1,
1544
+ damping: 1,
1545
+ easing: Ei.linear,
1546
+ clamp: !1
1547
+ }, Zi = class {
1548
+ constructor() {
1549
+ this.velocity = 0, Object.assign(this, Ot);
1550
+ }
1551
+ };
1552
+ function es(e, t, r) {
1553
+ r && (r = { ...r }, Or(r, t), t = { ...r, ...t }), Or(e, t), Object.assign(e, t);
1554
+ for (const o in Ot)
1555
+ e[o] == null && (e[o] = Ot[o]);
1556
+ let { frequency: n, damping: s } = e;
1557
+ const { mass: a } = e;
1558
+ return f.und(n) || (n < 0.01 && (n = 0.01), s < 0 && (s = 0), e.tension = Math.pow(2 * Math.PI / n, 2) * a, e.friction = 4 * Math.PI * s * a / n), e;
1559
+ }
1560
+ function Or(e, t) {
1561
+ if (!f.und(t.decay))
1562
+ e.duration = void 0;
1563
+ else {
1564
+ const r = !f.und(t.tension) || !f.und(t.friction);
1565
+ (r || !f.und(t.frequency) || !f.und(t.damping) || !f.und(t.mass)) && (e.duration = void 0, e.decay = void 0), r && (e.frequency = void 0);
1566
+ }
1567
+ }
1568
+ var Ir = [], ts = class {
1569
+ constructor() {
1570
+ this.changed = !1, this.values = Ir, this.toValues = null, this.fromValues = Ir, this.config = new Zi(), this.immediate = !1;
1571
+ }
1572
+ };
1573
+ function dn(e, { key: t, props: r, defaultProps: n, state: s, actions: a }) {
1574
+ return new Promise((o, l) => {
1575
+ let d, u, m = ke(r.cancel ?? (n == null ? void 0 : n.cancel), t);
1576
+ if (m)
1577
+ g();
1578
+ else {
1579
+ f.und(r.pause) || (s.paused = ke(r.pause, t));
1580
+ let _ = n == null ? void 0 : n.pause;
1581
+ _ !== !0 && (_ = s.paused || ke(_, t)), d = le(r.delay || 0, t), _ ? (s.resumeQueue.add(v), a.pause()) : (a.resume(), v());
1582
+ }
1583
+ function p() {
1584
+ s.resumeQueue.add(v), s.timeouts.delete(u), u.cancel(), d = u.time - E.now();
1585
+ }
1586
+ function v() {
1587
+ d > 0 && !G.skipAnimation ? (s.delayed = !0, u = E.setTimeout(g, d), s.pauseQueue.add(p), s.timeouts.add(u)) : g();
1588
+ }
1589
+ function g() {
1590
+ s.delayed && (s.delayed = !1), s.pauseQueue.delete(p), s.timeouts.delete(u), e <= (s.cancelId || 0) && (m = !0);
1591
+ try {
1592
+ a.start({ ...r, callId: e, cancel: m }, o);
1593
+ } catch (_) {
1594
+ l(_);
1595
+ }
1596
+ }
1597
+ });
1598
+ }
1599
+ var Qt = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ge(e.get()) : t.every((r) => r.noop) ? hn(e.get()) : Y(
1600
+ e.get(),
1601
+ t.every((r) => r.finished)
1602
+ ), hn = (e) => ({
1603
+ value: e,
1604
+ noop: !0,
1605
+ finished: !0,
1606
+ cancelled: !1
1607
+ }), Y = (e, t, r = !1) => ({
1608
+ value: e,
1609
+ finished: t,
1610
+ cancelled: r
1611
+ }), ge = (e) => ({
1612
+ value: e,
1613
+ cancelled: !0,
1614
+ finished: !1
1615
+ });
1616
+ function mn(e, t, r, n) {
1617
+ const { callId: s, parentId: a, onRest: o } = t, { asyncTo: l, promise: d } = r;
1618
+ return !a && e === l && !t.reset ? d : r.promise = (async () => {
1619
+ r.asyncId = s, r.asyncTo = e;
1620
+ const u = Yt(
1621
+ t,
1622
+ (x, y) => (
1623
+ // The `onRest` prop is only called when the `runAsync` promise is resolved.
1624
+ y === "onRest" ? void 0 : x
1625
+ )
1626
+ );
1627
+ let m, p;
1628
+ const v = new Promise(
1629
+ (x, y) => (m = x, p = y)
1630
+ ), g = (x) => {
1631
+ const y = (
1632
+ // The `cancel` prop or `stop` method was used.
1633
+ s <= (r.cancelId || 0) && ge(n) || // The async `to` prop was replaced.
1634
+ s !== r.asyncId && Y(n, !1)
1635
+ );
1636
+ if (y)
1637
+ throw x.result = y, p(x), x;
1638
+ }, _ = (x, y) => {
1639
+ const b = new Fr(), S = new jr();
1640
+ return (async () => {
1641
+ if (G.skipAnimation)
1642
+ throw Ne(r), S.result = Y(n, !1), p(S), S;
1643
+ g(b);
1644
+ const k = f.obj(x) ? { ...x } : { ...y, to: x };
1645
+ k.parentId = s, K(u, (X, U) => {
1646
+ f.und(k[U]) && (k[U] = X);
1647
+ });
1648
+ const j = await n.start(k);
1649
+ return g(b), r.paused && await new Promise((X) => {
1650
+ r.resumeQueue.add(X);
1651
+ }), j;
1652
+ })();
1653
+ };
1654
+ let R;
1655
+ if (G.skipAnimation)
1656
+ return Ne(r), Y(n, !1);
1657
+ try {
1658
+ let x;
1659
+ f.arr(e) ? x = (async (y) => {
1660
+ for (const b of y)
1661
+ await _(b);
1662
+ })(e) : x = Promise.resolve(e(_, n.stop.bind(n))), await Promise.all([x.then(m), v]), R = Y(n.get(), !0, !1);
1663
+ } catch (x) {
1664
+ if (x instanceof Fr)
1665
+ R = x.result;
1666
+ else if (x instanceof jr)
1667
+ R = x.result;
1668
+ else
1669
+ throw x;
1670
+ } finally {
1671
+ s == r.asyncId && (r.asyncId = a, r.asyncTo = a ? l : void 0, r.promise = a ? d : void 0);
1672
+ }
1673
+ return f.fun(o) && E.batchedUpdates(() => {
1674
+ o(R, n, n.item);
1675
+ }), R;
1676
+ })();
1677
+ }
1678
+ function Ne(e, t) {
1679
+ Te(e.timeouts, (r) => r.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
1680
+ }
1681
+ var Fr = class extends Error {
1682
+ constructor() {
1683
+ super(
1684
+ "An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."
1685
+ );
1686
+ }
1687
+ }, jr = class extends Error {
1688
+ constructor() {
1689
+ super("SkipAnimationSignal");
1690
+ }
1691
+ }, It = (e) => e instanceof Gt, rs = 1, Gt = class extends Zr {
1692
+ constructor() {
1693
+ super(...arguments), this.id = rs++, this._priority = 0;
1694
+ }
1695
+ get priority() {
1696
+ return this._priority;
1697
+ }
1698
+ set priority(e) {
1699
+ this._priority != e && (this._priority = e, this._onPriorityChange(e));
1700
+ }
1701
+ /** Get the current value */
1702
+ get() {
1703
+ const e = H(this);
1704
+ return e && e.getValue();
1705
+ }
1706
+ /** Create a spring that maps our value to another value */
1707
+ to(...e) {
1708
+ return G.to(this, e);
1709
+ }
1710
+ /** @deprecated Use the `to` method instead. */
1711
+ interpolate(...e) {
1712
+ return Ii(), G.to(this, e);
1713
+ }
1714
+ toJSON() {
1715
+ return this.get();
1716
+ }
1717
+ observerAdded(e) {
1718
+ e == 1 && this._attach();
1719
+ }
1720
+ observerRemoved(e) {
1721
+ e == 0 && this._detach();
1722
+ }
1723
+ /** Called when the first child is added. */
1724
+ _attach() {
1725
+ }
1726
+ /** Called when the last child is removed. */
1727
+ _detach() {
1728
+ }
1729
+ /** Tell our children about our new value */
1730
+ _onChange(e, t = !1) {
1731
+ je(this, {
1732
+ type: "change",
1733
+ parent: this,
1734
+ value: e,
1735
+ idle: t
1736
+ });
1737
+ }
1738
+ /** Tell our children about our new priority */
1739
+ _onPriorityChange(e) {
1740
+ this.idle || st.sort(this), je(this, {
1741
+ type: "priority",
1742
+ parent: this,
1743
+ priority: e
1744
+ });
1745
+ }
1746
+ }, fe = Symbol.for("SpringPhase"), pn = 1, vn = 2, gn = 4, St = (e) => (e[fe] & pn) > 0, ne = (e) => (e[fe] & vn) > 0, Ee = (e) => (e[fe] & gn) > 0, Vr = (e, t) => t ? e[fe] |= vn | pn : e[fe] &= -3, Dr = (e, t) => t ? e[fe] |= gn : e[fe] &= -5, ns = class extends Gt {
1747
+ constructor(e, t) {
1748
+ if (super(), this.animation = new ts(), this.defaultProps = {}, this._state = {
1749
+ paused: !1,
1750
+ delayed: !1,
1751
+ pauseQueue: /* @__PURE__ */ new Set(),
1752
+ resumeQueue: /* @__PURE__ */ new Set(),
1753
+ timeouts: /* @__PURE__ */ new Set()
1754
+ }, this._pendingCalls = /* @__PURE__ */ new Set(), this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !f.und(e) || !f.und(t)) {
1755
+ const r = f.obj(e) ? { ...e } : { ...t, from: e };
1756
+ f.und(r.default) && (r.default = !0), this.start(r);
1757
+ }
1758
+ }
1759
+ /** Equals true when not advancing on each frame. */
1760
+ get idle() {
1761
+ return !(ne(this) || this._state.asyncTo) || Ee(this);
1762
+ }
1763
+ get goal() {
1764
+ return q(this.animation.to);
1765
+ }
1766
+ get velocity() {
1767
+ const e = H(this);
1768
+ return e instanceof ze ? e.lastVelocity || 0 : e.getPayload().map((t) => t.lastVelocity || 0);
1769
+ }
1770
+ /**
1771
+ * When true, this value has been animated at least once.
1772
+ */
1773
+ get hasAnimated() {
1774
+ return St(this);
1775
+ }
1776
+ /**
1777
+ * When true, this value has an unfinished animation,
1778
+ * which is either active or paused.
1779
+ */
1780
+ get isAnimating() {
1781
+ return ne(this);
1782
+ }
1783
+ /**
1784
+ * When true, all current and future animations are paused.
1785
+ */
1786
+ get isPaused() {
1787
+ return Ee(this);
1788
+ }
1789
+ /**
1790
+ *
1791
+ *
1792
+ */
1793
+ get isDelayed() {
1794
+ return this._state.delayed;
1795
+ }
1796
+ /** Advance the current animation by a number of milliseconds */
1797
+ advance(e) {
1798
+ let t = !0, r = !1;
1799
+ const n = this.animation;
1800
+ let { toValues: s } = n;
1801
+ const { config: a } = n, o = lt(n.to);
1802
+ !o && W(n.to) && (s = L(q(n.to))), n.values.forEach((u, m) => {
1803
+ if (u.done)
1804
+ return;
1805
+ const p = (
1806
+ // Animated strings always go from 0 to 1.
1807
+ u.constructor == $e ? 1 : o ? o[m].lastPosition : s[m]
1808
+ );
1809
+ let v = n.immediate, g = p;
1810
+ if (!v) {
1811
+ if (g = u.lastPosition, a.tension <= 0) {
1812
+ u.done = !0;
1813
+ return;
1814
+ }
1815
+ let _ = u.elapsedTime += e;
1816
+ const R = n.fromValues[m], x = u.v0 != null ? u.v0 : u.v0 = f.arr(a.velocity) ? a.velocity[m] : a.velocity;
1817
+ let y;
1818
+ const b = a.precision || (R == p ? 5e-3 : Math.min(1, Math.abs(p - R) * 1e-3));
1819
+ if (f.und(a.duration))
1820
+ if (a.decay) {
1821
+ const S = a.decay === !0 ? 0.998 : a.decay, k = Math.exp(-(1 - S) * _);
1822
+ g = R + x / (1 - S) * (1 - k), v = Math.abs(u.lastPosition - g) <= b, y = x * k;
1823
+ } else {
1824
+ y = u.lastVelocity == null ? x : u.lastVelocity;
1825
+ const S = a.restVelocity || b / 10, k = a.clamp ? 0 : a.bounce, j = !f.und(k), X = R == p ? u.v0 > 0 : R < p;
1826
+ let U, de = !1;
1827
+ const V = 1, oe = Math.ceil(e / V);
1828
+ for (let M = 0; M < oe && (U = Math.abs(y) > S, !(!U && (v = Math.abs(p - g) <= b, v))); ++M) {
1829
+ j && (de = g == p || g > p == X, de && (y = -y * k, g = p));
1830
+ const Z = -a.tension * 1e-6 * (g - p), D = -a.friction * 1e-3 * y, ee = (Z + D) / a.mass;
1831
+ y = y + ee * V, g = g + y * V;
1832
+ }
1833
+ }
1834
+ else {
1835
+ let S = 1;
1836
+ a.duration > 0 && (this._memoizedDuration !== a.duration && (this._memoizedDuration = a.duration, u.durationProgress > 0 && (u.elapsedTime = a.duration * u.durationProgress, _ = u.elapsedTime += e)), S = (a.progress || 0) + _ / this._memoizedDuration, S = S > 1 ? 1 : S < 0 ? 0 : S, u.durationProgress = S), g = R + a.easing(S) * (p - R), y = (g - u.lastPosition) / e, v = S == 1;
1837
+ }
1838
+ u.lastVelocity = y, Number.isNaN(g) && (console.warn("Got NaN while animating:", this), v = !0);
1839
+ }
1840
+ o && !o[m].done && (v = !1), v ? u.done = !0 : t = !1, u.setValue(g, a.round) && (r = !0);
1841
+ });
1842
+ const l = H(this), d = l.getValue();
1843
+ if (t) {
1844
+ const u = q(n.to);
1845
+ (d !== u || r) && !a.decay ? (l.setValue(u), this._onChange(u)) : r && a.decay && this._onChange(d), this._stop();
1846
+ } else r && this._onChange(d);
1847
+ }
1848
+ /** Set the current value, while stopping the current animation */
1849
+ set(e) {
1850
+ return E.batchedUpdates(() => {
1851
+ this._stop(), this._focus(e), this._set(e);
1852
+ }), this;
1853
+ }
1854
+ /**
1855
+ * Freeze the active animation in time, as well as any updates merged
1856
+ * before `resume` is called.
1857
+ */
1858
+ pause() {
1859
+ this._update({ pause: !0 });
1860
+ }
1861
+ /** Resume the animation if paused. */
1862
+ resume() {
1863
+ this._update({ pause: !1 });
1864
+ }
1865
+ /** Skip to the end of the current animation. */
1866
+ finish() {
1867
+ if (ne(this)) {
1868
+ const { to: e, config: t } = this.animation;
1869
+ E.batchedUpdates(() => {
1870
+ this._onStart(), t.decay || this._set(e, !1), this._stop();
1871
+ });
1872
+ }
1873
+ return this;
1874
+ }
1875
+ /** Push props into the pending queue. */
1876
+ update(e) {
1877
+ return (this.queue || (this.queue = [])).push(e), this;
1878
+ }
1879
+ start(e, t) {
1880
+ let r;
1881
+ return f.und(e) ? (r = this.queue || [], this.queue = []) : r = [f.obj(e) ? e : { ...t, to: e }], Promise.all(
1882
+ r.map((n) => this._update(n))
1883
+ ).then((n) => Qt(this, n));
1884
+ }
1885
+ /**
1886
+ * Stop the current animation, and cancel any delayed updates.
1887
+ *
1888
+ * Pass `true` to call `onRest` with `cancelled: true`.
1889
+ */
1890
+ stop(e) {
1891
+ const { to: t } = this.animation;
1892
+ return this._focus(this.get()), Ne(this._state, e && this._lastCallId), E.batchedUpdates(() => this._stop(t, e)), this;
1893
+ }
1894
+ /** Restart the animation. */
1895
+ reset() {
1896
+ this._update({ reset: !0 });
1897
+ }
1898
+ /** @internal */
1899
+ eventObserved(e) {
1900
+ e.type == "change" ? this._start() : e.type == "priority" && (this.priority = e.priority + 1);
1901
+ }
1902
+ /**
1903
+ * Parse the `to` and `from` range from the given `props` object.
1904
+ *
1905
+ * This also ensures the initial value is available to animated components
1906
+ * during the render phase.
1907
+ */
1908
+ _prepareNode(e) {
1909
+ const t = this.key || "";
1910
+ let { to: r, from: n } = e;
1911
+ r = f.obj(r) ? r[t] : r, (r == null || kt(r)) && (r = void 0), n = f.obj(n) ? n[t] : n, n == null && (n = void 0);
1912
+ const s = { to: r, from: n };
1913
+ return St(this) || (e.reverse && ([r, n] = [n, r]), n = q(n), f.und(n) ? H(this) || this._set(r) : this._set(n)), s;
1914
+ }
1915
+ /** Every update is processed by this method before merging. */
1916
+ _update({ ...e }, t) {
1917
+ const { key: r, defaultProps: n } = this;
1918
+ e.default && Object.assign(
1919
+ n,
1920
+ Yt(
1921
+ e,
1922
+ (o, l) => /^on/.test(l) ? ln(o, r) : o
1923
+ )
1924
+ ), Ur(this, e, "onProps"), Pe(this, "onProps", e, this);
1925
+ const s = this._prepareNode(e);
1926
+ if (Object.isFrozen(this))
1927
+ throw Error(
1928
+ "Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"
1929
+ );
1930
+ const a = this._state;
1931
+ return dn(++this._lastCallId, {
1932
+ key: r,
1933
+ props: e,
1934
+ defaultProps: n,
1935
+ state: a,
1936
+ actions: {
1937
+ pause: () => {
1938
+ Ee(this) || (Dr(this, !0), Ae(a.pauseQueue), Pe(
1939
+ this,
1940
+ "onPause",
1941
+ Y(this, xe(this, this.animation.to)),
1942
+ this
1943
+ ));
1944
+ },
1945
+ resume: () => {
1946
+ Ee(this) && (Dr(this, !1), ne(this) && this._resume(), Ae(a.resumeQueue), Pe(
1947
+ this,
1948
+ "onResume",
1949
+ Y(this, xe(this, this.animation.to)),
1950
+ this
1951
+ ));
1952
+ },
1953
+ start: this._merge.bind(this, s)
1954
+ }
1955
+ }).then((o) => {
1956
+ if (e.loop && o.finished && !(t && o.noop)) {
1957
+ const l = yn(e);
1958
+ if (l)
1959
+ return this._update(l, !0);
1960
+ }
1961
+ return o;
1962
+ });
1963
+ }
1964
+ /** Merge props into the current animation */
1965
+ _merge(e, t, r) {
1966
+ if (t.cancel)
1967
+ return this.stop(!0), r(ge(this));
1968
+ const n = !f.und(e.to), s = !f.und(e.from);
1969
+ if (n || s)
1970
+ if (t.callId > this._lastToId)
1971
+ this._lastToId = t.callId;
1972
+ else
1973
+ return r(ge(this));
1974
+ const { key: a, defaultProps: o, animation: l } = this, { to: d, from: u } = l;
1975
+ let { to: m = d, from: p = u } = e;
1976
+ s && !n && (!t.default || f.und(m)) && (m = p), t.reverse && ([m, p] = [p, m]);
1977
+ const v = !te(p, u);
1978
+ v && (l.from = p), p = q(p);
1979
+ const g = !te(m, d);
1980
+ g && this._focus(m);
1981
+ const _ = kt(t.to), { config: R } = l, { decay: x, velocity: y } = R;
1982
+ (n || s) && (R.velocity = 0), t.config && !_ && es(
1983
+ R,
1984
+ le(t.config, a),
1985
+ // Avoid calling the same "config" prop twice.
1986
+ t.config !== o.config ? le(o.config, a) : void 0
1987
+ );
1988
+ let b = H(this);
1989
+ if (!b || f.und(m))
1990
+ return r(Y(this, !0));
1991
+ const S = (
1992
+ // When `reset` is undefined, the `from` prop implies `reset: true`,
1993
+ // except for declarative updates. When `reset` is defined, there
1994
+ // must exist a value to animate from.
1995
+ f.und(t.reset) ? s && !t.default : !f.und(p) && ke(t.reset, a)
1996
+ ), k = S ? p : this.get(), j = Ue(m), X = f.num(j) || f.arr(j) || ut(j), U = !_ && (!X || ke(o.immediate || t.immediate, a));
1997
+ if (g) {
1998
+ const M = Ct(m);
1999
+ if (M !== b.constructor)
2000
+ if (U)
2001
+ b = this._set(j);
2002
+ else
2003
+ throw Error(
2004
+ `Cannot animate between ${b.constructor.name} and ${M.name}, as the "to" prop suggests`
2005
+ );
2006
+ }
2007
+ const de = b.constructor;
2008
+ let V = W(m), oe = !1;
2009
+ if (!V) {
2010
+ const M = S || !St(this) && v;
2011
+ (g || M) && (oe = te(Ue(k), j), V = !oe), (!te(l.immediate, U) && !U || !te(R.decay, x) || !te(R.velocity, y)) && (V = !0);
2012
+ }
2013
+ if (oe && ne(this) && (l.changed && !S ? V = !0 : V || this._stop(d)), !_ && ((V || W(d)) && (l.values = b.getPayload(), l.toValues = W(m) ? null : de == $e ? [1] : L(j)), l.immediate != U && (l.immediate = U, !U && !S && this._set(d)), V)) {
2014
+ const { onRest: M } = l;
2015
+ A(ss, (D) => Ur(this, t, D));
2016
+ const Z = Y(this, xe(this, d));
2017
+ Ae(this._pendingCalls, Z), this._pendingCalls.add(r), l.changed && E.batchedUpdates(() => {
2018
+ var D;
2019
+ l.changed = !S, M == null || M(Z, this), S ? le(o.onRest, Z) : (D = l.onStart) == null || D.call(l, Z, this);
2020
+ });
2021
+ }
2022
+ S && this._set(k), _ ? r(mn(t.to, t, this._state, this)) : V ? this._start() : ne(this) && !g ? this._pendingCalls.add(r) : r(hn(k));
2023
+ }
2024
+ /** Update the `animation.to` value, which might be a `FluidValue` */
2025
+ _focus(e) {
2026
+ const t = this.animation;
2027
+ e !== t.to && (xr(this) && this._detach(), t.to = e, xr(this) && this._attach());
2028
+ }
2029
+ _attach() {
2030
+ let e = 0;
2031
+ const { to: t } = this.animation;
2032
+ W(t) && (be(t, this), It(t) && (e = t.priority + 1)), this.priority = e;
2033
+ }
2034
+ _detach() {
2035
+ const { to: e } = this.animation;
2036
+ W(e) && Ve(e, this);
2037
+ }
2038
+ /**
2039
+ * Update the current value from outside the frameloop,
2040
+ * and return the `Animated` node.
2041
+ */
2042
+ _set(e, t = !0) {
2043
+ const r = q(e);
2044
+ if (!f.und(r)) {
2045
+ const n = H(this);
2046
+ if (!n || !te(r, n.getValue())) {
2047
+ const s = Ct(r);
2048
+ !n || n.constructor != s ? Bt(this, s.create(r)) : n.setValue(r), n && E.batchedUpdates(() => {
2049
+ this._onChange(r, t);
2050
+ });
2051
+ }
2052
+ }
2053
+ return H(this);
2054
+ }
2055
+ _onStart() {
2056
+ const e = this.animation;
2057
+ e.changed || (e.changed = !0, Pe(
2058
+ this,
2059
+ "onStart",
2060
+ Y(this, xe(this, e.to)),
2061
+ this
2062
+ ));
2063
+ }
2064
+ _onChange(e, t) {
2065
+ t || (this._onStart(), le(this.animation.onChange, e, this)), le(this.defaultProps.onChange, e, this), super._onChange(e, t);
2066
+ }
2067
+ // This method resets the animation state (even if already animating) to
2068
+ // ensure the latest from/to range is used, and it also ensures this spring
2069
+ // is added to the frameloop.
2070
+ _start() {
2071
+ const e = this.animation;
2072
+ H(this).reset(q(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), ne(this) || (Vr(this, !0), Ee(this) || this._resume());
2073
+ }
2074
+ _resume() {
2075
+ G.skipAnimation ? this.finish() : st.start(this);
2076
+ }
2077
+ /**
2078
+ * Exit the frameloop and notify `onRest` listeners.
2079
+ *
2080
+ * Always wrap `_stop` calls with `batchedUpdates`.
2081
+ */
2082
+ _stop(e, t) {
2083
+ if (ne(this)) {
2084
+ Vr(this, !1);
2085
+ const r = this.animation;
2086
+ A(r.values, (s) => {
2087
+ s.done = !0;
2088
+ }), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), je(this, {
2089
+ type: "idle",
2090
+ parent: this
2091
+ });
2092
+ const n = t ? ge(this.get()) : Y(this.get(), xe(this, e ?? r.to));
2093
+ Ae(this._pendingCalls, n), r.changed && (r.changed = !1, Pe(this, "onRest", n, this));
2094
+ }
2095
+ }
2096
+ };
2097
+ function xe(e, t) {
2098
+ const r = Ue(t), n = Ue(e.get());
2099
+ return te(n, r);
2100
+ }
2101
+ function yn(e, t = e.loop, r = e.to) {
2102
+ const n = le(t);
2103
+ if (n) {
2104
+ const s = n !== !0 && fn(n), a = (s || e).reverse, o = !s || s.reset;
2105
+ return qe({
2106
+ ...e,
2107
+ loop: t,
2108
+ // Avoid updating default props when looping.
2109
+ default: !1,
2110
+ // Never loop the `pause` prop.
2111
+ pause: void 0,
2112
+ // For the "reverse" prop to loop as expected, the "to" prop
2113
+ // must be undefined. The "reverse" prop is ignored when the
2114
+ // "to" prop is an array or function.
2115
+ to: !a || kt(r) ? r : void 0,
2116
+ // Ignore the "from" prop except on reset.
2117
+ from: o ? e.from : void 0,
2118
+ reset: o,
2119
+ // The "loop" prop can return a "useSpring" props object to
2120
+ // override any of the original props.
2121
+ ...s
2122
+ });
2123
+ }
2124
+ }
2125
+ function qe(e) {
2126
+ const { to: t, from: r } = e = fn(e), n = /* @__PURE__ */ new Set();
2127
+ return f.obj(t) && $r(t, n), f.obj(r) && $r(r, n), e.keys = n.size ? Array.from(n) : null, e;
2128
+ }
2129
+ function is(e) {
2130
+ const t = qe(e);
2131
+ return f.und(t.default) && (t.default = Yt(t)), t;
2132
+ }
2133
+ function $r(e, t) {
2134
+ K(e, (r, n) => r != null && t.add(n));
2135
+ }
2136
+ var ss = [
2137
+ "onStart",
2138
+ "onRest",
2139
+ "onChange",
2140
+ "onPause",
2141
+ "onResume"
2142
+ ];
2143
+ function Ur(e, t, r) {
2144
+ e.animation[r] = t[r] !== cn(t, r) ? ln(t[r], e.key) : void 0;
2145
+ }
2146
+ function Pe(e, t, ...r) {
2147
+ var n, s, a, o;
2148
+ (s = (n = e.animation)[t]) == null || s.call(n, ...r), (o = (a = e.defaultProps)[t]) == null || o.call(a, ...r);
2149
+ }
2150
+ var as = ["onStart", "onChange", "onRest"], os = 1, us = class {
2151
+ constructor(e, t) {
2152
+ this.id = os++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
2153
+ paused: !1,
2154
+ pauseQueue: /* @__PURE__ */ new Set(),
2155
+ resumeQueue: /* @__PURE__ */ new Set(),
2156
+ timeouts: /* @__PURE__ */ new Set()
2157
+ }, this._events = {
2158
+ onStart: /* @__PURE__ */ new Map(),
2159
+ onChange: /* @__PURE__ */ new Map(),
2160
+ onRest: /* @__PURE__ */ new Map()
2161
+ }, this._onFrame = this._onFrame.bind(this), t && (this._flush = t), e && this.start({ default: !0, ...e });
2162
+ }
2163
+ /**
2164
+ * Equals `true` when no spring values are in the frameloop, and
2165
+ * no async animation is currently active.
2166
+ */
2167
+ get idle() {
2168
+ return !this._state.asyncTo && Object.values(this.springs).every((e) => e.idle && !e.isDelayed && !e.isPaused);
2169
+ }
2170
+ get item() {
2171
+ return this._item;
2172
+ }
2173
+ set item(e) {
2174
+ this._item = e;
2175
+ }
2176
+ /** Get the current values of our springs */
2177
+ get() {
2178
+ const e = {};
2179
+ return this.each((t, r) => e[r] = t.get()), e;
2180
+ }
2181
+ /** Set the current values without animating. */
2182
+ set(e) {
2183
+ for (const t in e) {
2184
+ const r = e[t];
2185
+ f.und(r) || this.springs[t].set(r);
2186
+ }
2187
+ }
2188
+ /** Push an update onto the queue of each value. */
2189
+ update(e) {
2190
+ return e && this.queue.push(qe(e)), this;
2191
+ }
2192
+ /**
2193
+ * Start the queued animations for every spring, and resolve the returned
2194
+ * promise once all queued animations have finished or been cancelled.
2195
+ *
2196
+ * When you pass a queue (instead of nothing), that queue is used instead of
2197
+ * the queued animations added with the `update` method, which are left alone.
2198
+ */
2199
+ start(e) {
2200
+ let { queue: t } = this;
2201
+ return e ? t = L(e).map(qe) : this.queue = [], this._flush ? this._flush(this, t) : (Sn(this, t), Ft(this, t));
2202
+ }
2203
+ /** @internal */
2204
+ stop(e, t) {
2205
+ if (e !== !!e && (t = e), t) {
2206
+ const r = this.springs;
2207
+ A(L(t), (n) => r[n].stop(!!e));
2208
+ } else
2209
+ Ne(this._state, this._lastAsyncId), this.each((r) => r.stop(!!e));
2210
+ return this;
2211
+ }
2212
+ /** Freeze the active animation in time */
2213
+ pause(e) {
2214
+ if (f.und(e))
2215
+ this.start({ pause: !0 });
2216
+ else {
2217
+ const t = this.springs;
2218
+ A(L(e), (r) => t[r].pause());
2219
+ }
2220
+ return this;
2221
+ }
2222
+ /** Resume the animation if paused. */
2223
+ resume(e) {
2224
+ if (f.und(e))
2225
+ this.start({ pause: !1 });
2226
+ else {
2227
+ const t = this.springs;
2228
+ A(L(e), (r) => t[r].resume());
2229
+ }
2230
+ return this;
2231
+ }
2232
+ /** Call a function once per spring value */
2233
+ each(e) {
2234
+ K(this.springs, e);
2235
+ }
2236
+ /** @internal Called at the end of every animation frame */
2237
+ _onFrame() {
2238
+ const { onStart: e, onChange: t, onRest: r } = this._events, n = this._active.size > 0, s = this._changed.size > 0;
2239
+ (n && !this._started || s && !this._started) && (this._started = !0, Te(e, ([l, d]) => {
2240
+ d.value = this.get(), l(d, this, this._item);
2241
+ }));
2242
+ const a = !n && this._started, o = s || a && r.size ? this.get() : null;
2243
+ s && t.size && Te(t, ([l, d]) => {
2244
+ d.value = o, l(d, this, this._item);
2245
+ }), a && (this._started = !1, Te(r, ([l, d]) => {
2246
+ d.value = o, l(d, this, this._item);
2247
+ }));
2248
+ }
2249
+ /** @internal */
2250
+ eventObserved(e) {
2251
+ if (e.type == "change")
2252
+ this._changed.add(e.parent), e.idle || this._active.add(e.parent);
2253
+ else if (e.type == "idle")
2254
+ this._active.delete(e.parent);
2255
+ else
2256
+ return;
2257
+ E.onFrame(this._onFrame);
2258
+ }
2259
+ };
2260
+ function Ft(e, t) {
2261
+ return Promise.all(t.map((r) => bn(e, r))).then(
2262
+ (r) => Qt(e, r)
2263
+ );
2264
+ }
2265
+ async function bn(e, t, r) {
2266
+ const { keys: n, to: s, from: a, loop: o, onRest: l, onResolve: d } = t, u = f.obj(t.default) && t.default;
2267
+ o && (t.loop = !1), s === !1 && (t.to = null), a === !1 && (t.from = null);
2268
+ const m = f.arr(s) || f.fun(s) ? s : void 0;
2269
+ m ? (t.to = void 0, t.onRest = void 0, u && (u.onRest = void 0)) : A(as, (R) => {
2270
+ const x = t[R];
2271
+ if (f.fun(x)) {
2272
+ const y = e._events[R];
2273
+ t[R] = ({ finished: b, cancelled: S }) => {
2274
+ const k = y.get(x);
2275
+ k ? (b || (k.finished = !1), S && (k.cancelled = !0)) : y.set(x, {
2276
+ value: null,
2277
+ finished: b || !1,
2278
+ cancelled: S || !1
2279
+ });
2280
+ }, u && (u[R] = t[R]);
2281
+ }
2282
+ });
2283
+ const p = e._state;
2284
+ t.pause === !p.paused ? (p.paused = t.pause, Ae(t.pause ? p.pauseQueue : p.resumeQueue)) : p.paused && (t.pause = !0);
2285
+ const v = (n || Object.keys(e.springs)).map(
2286
+ (R) => e.springs[R].start(t)
2287
+ ), g = t.cancel === !0 || cn(t, "cancel") === !0;
2288
+ (m || g && p.asyncId) && v.push(
2289
+ dn(++e._lastAsyncId, {
2290
+ props: t,
2291
+ state: p,
2292
+ actions: {
2293
+ pause: At,
2294
+ resume: At,
2295
+ start(R, x) {
2296
+ g ? (Ne(p, e._lastAsyncId), x(ge(e))) : (R.onRest = l, x(
2297
+ mn(
2298
+ m,
2299
+ R,
2300
+ p,
2301
+ e
2302
+ )
2303
+ ));
2304
+ }
2305
+ }
2306
+ })
2307
+ ), p.paused && await new Promise((R) => {
2308
+ p.resumeQueue.add(R);
2309
+ });
2310
+ const _ = Qt(e, await Promise.all(v));
2311
+ if (o && _.finished && !(r && _.noop)) {
2312
+ const R = yn(t, o, s);
2313
+ if (R)
2314
+ return Sn(e, [R]), bn(e, R, !0);
2315
+ }
2316
+ return d && E.batchedUpdates(() => d(_, e, e.item)), _;
2317
+ }
2318
+ function Nr(e, t) {
2319
+ const r = { ...e.springs };
2320
+ return t && A(L(t), (n) => {
2321
+ f.und(n.keys) && (n = qe(n)), f.obj(n.to) || (n = { ...n, to: void 0 }), Rn(r, n, (s) => wn(s));
2322
+ }), _n(e, r), r;
2323
+ }
2324
+ function _n(e, t) {
2325
+ K(t, (r, n) => {
2326
+ e.springs[n] || (e.springs[n] = r, be(r, e));
2327
+ });
2328
+ }
2329
+ function wn(e, t) {
2330
+ const r = new ns();
2331
+ return r.key = e, t && be(r, t), r;
2332
+ }
2333
+ function Rn(e, t, r) {
2334
+ t.keys && A(t.keys, (n) => {
2335
+ (e[n] || (e[n] = r(n)))._prepareNode(t);
2336
+ });
2337
+ }
2338
+ function Sn(e, t) {
2339
+ A(t, (r) => {
2340
+ Rn(e.springs, r, (n) => wn(n, e));
2341
+ });
2342
+ }
2343
+ var ft = ({
2344
+ children: e,
2345
+ ...t
2346
+ }) => {
2347
+ const r = zr(nt), n = t.pause || !!r.pause, s = t.immediate || !!r.immediate;
2348
+ t = Di(() => ({ pause: n, immediate: s }), [n, s]);
2349
+ const { Provider: a } = nt;
2350
+ return /* @__PURE__ */ jt.createElement(a, { value: t }, e);
2351
+ }, nt = ls(ft, {});
2352
+ ft.Provider = nt.Provider;
2353
+ ft.Consumer = nt.Consumer;
2354
+ function ls(e, t) {
2355
+ return Object.assign(e, jt.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
2356
+ }
2357
+ var cs = () => {
2358
+ const e = [], t = function(n) {
2359
+ ji();
2360
+ const s = [];
2361
+ return A(e, (a, o) => {
2362
+ if (f.und(n))
2363
+ s.push(a.start());
2364
+ else {
2365
+ const l = r(n, a, o);
2366
+ l && s.push(a.start(l));
2367
+ }
2368
+ }), s;
2369
+ };
2370
+ t.current = e, t.add = function(n) {
2371
+ e.includes(n) || e.push(n);
2372
+ }, t.delete = function(n) {
2373
+ const s = e.indexOf(n);
2374
+ ~s && e.splice(s, 1);
2375
+ }, t.pause = function() {
2376
+ return A(e, (n) => n.pause(...arguments)), this;
2377
+ }, t.resume = function() {
2378
+ return A(e, (n) => n.resume(...arguments)), this;
2379
+ }, t.set = function(n) {
2380
+ A(e, (s, a) => {
2381
+ const o = f.fun(n) ? n(a, s) : n;
2382
+ o && s.set(o);
2383
+ });
2384
+ }, t.start = function(n) {
2385
+ const s = [];
2386
+ return A(e, (a, o) => {
2387
+ if (f.und(n))
2388
+ s.push(a.start());
2389
+ else {
2390
+ const l = this._getProps(n, a, o);
2391
+ l && s.push(a.start(l));
2392
+ }
2393
+ }), s;
2394
+ }, t.stop = function() {
2395
+ return A(e, (n) => n.stop(...arguments)), this;
2396
+ }, t.update = function(n) {
2397
+ return A(e, (s, a) => s.update(this._getProps(n, s, a))), this;
2398
+ };
2399
+ const r = function(n, s, a) {
2400
+ return f.fun(n) ? n(a, s) : n;
2401
+ };
2402
+ return t._getProps = r, t;
2403
+ };
2404
+ function fs(e, t, r) {
2405
+ const n = f.fun(t) && t;
2406
+ n && !r && (r = []);
2407
+ const s = Ge(
2408
+ () => n || arguments.length == 3 ? cs() : void 0,
2409
+ []
2410
+ ), a = re(0), o = sn(), l = Ge(
2411
+ () => ({
2412
+ ctrls: [],
2413
+ queue: [],
2414
+ flush(y, b) {
2415
+ const S = Nr(y, b);
2416
+ return a.current > 0 && !l.queue.length && !Object.keys(S).some((j) => !y.springs[j]) ? Ft(y, b) : new Promise((j) => {
2417
+ _n(y, S), l.queue.push(() => {
2418
+ j(Ft(y, b));
2419
+ }), o();
2420
+ });
2421
+ }
2422
+ }),
2423
+ []
2424
+ ), d = re([...l.ctrls]), u = [], m = Ar(e) || 0;
2425
+ Ge(() => {
2426
+ A(d.current.slice(e, m), (y) => {
2427
+ Ji(y, s), y.stop(!0);
2428
+ }), d.current.length = e, p(m, e);
2429
+ }, [e]), Ge(() => {
2430
+ p(0, Math.min(m, e));
2431
+ }, r);
2432
+ function p(y, b) {
2433
+ for (let S = y; S < b; S++) {
2434
+ const k = d.current[S] || (d.current[S] = new us(null, l.flush)), j = n ? n(S, k) : t[S];
2435
+ j && (u[S] = is(j));
2436
+ }
2437
+ }
2438
+ const v = d.current.map((y, b) => Nr(y, u[b])), g = zr(ft), _ = Ar(g), R = g !== _ && Hi(g);
2439
+ Wt(() => {
2440
+ a.current++, l.ctrls = d.current;
2441
+ const { queue: y } = l;
2442
+ y.length && (l.queue = [], A(y, (b) => b())), A(d.current, (b, S) => {
2443
+ s == null || s.add(b), R && b.start({ default: g });
2444
+ const k = u[S];
2445
+ k && (Ki(b, k.ref), b.ref ? b.queue.push(k) : b.start(k));
2446
+ });
2447
+ }), an(() => () => {
2448
+ A(l.ctrls, (y) => y.stop(!0));
2449
+ });
2450
+ const x = v.map((y) => ({ ...y }));
2451
+ return s ? [x, s] : x;
2452
+ }
2453
+ function ds(e, t) {
2454
+ const r = f.fun(e), [[n], s] = fs(
2455
+ 1,
2456
+ r ? e : [e],
2457
+ r ? [] : t
2458
+ );
2459
+ return r || arguments.length == 2 ? [n, s] : n;
2460
+ }
2461
+ var hs = class extends Gt {
2462
+ constructor(e, t) {
2463
+ super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = Ie(...t);
2464
+ const r = this._get(), n = Ct(r);
2465
+ Bt(this, n.create(r));
2466
+ }
2467
+ advance(e) {
2468
+ const t = this._get(), r = this.get();
2469
+ te(t, r) || (H(this).setValue(t), this._onChange(t, this.idle)), !this.idle && qr(this._active) && Et(this);
2470
+ }
2471
+ _get() {
2472
+ const e = f.arr(this.source) ? this.source.map(q) : L(q(this.source));
2473
+ return this.calc(...e);
2474
+ }
2475
+ _start() {
2476
+ this.idle && !qr(this._active) && (this.idle = !1, A(lt(this), (e) => {
2477
+ e.done = !1;
2478
+ }), G.skipAnimation ? (E.batchedUpdates(() => this.advance()), Et(this)) : st.start(this));
2479
+ }
2480
+ // Observe our sources only when we're observed.
2481
+ _attach() {
2482
+ let e = 1;
2483
+ A(L(this.source), (t) => {
2484
+ W(t) && be(t, this), It(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
2485
+ }), this.priority = e, this._start();
2486
+ }
2487
+ // Stop observing our sources once we have no observers.
2488
+ _detach() {
2489
+ A(L(this.source), (e) => {
2490
+ W(e) && Ve(e, this);
2491
+ }), this._active.clear(), Et(this);
2492
+ }
2493
+ /** @internal */
2494
+ eventObserved(e) {
2495
+ e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority = L(this.source).reduce(
2496
+ (t, r) => Math.max(t, (It(r) ? r.priority : 0) + 1),
2497
+ 0
2498
+ ));
2499
+ }
2500
+ };
2501
+ function ms(e) {
2502
+ return e.idle !== !1;
2503
+ }
2504
+ function qr(e) {
2505
+ return !e.size || Array.from(e).every(ms);
2506
+ }
2507
+ function Et(e) {
2508
+ e.idle || (e.idle = !0, A(lt(e), (t) => {
2509
+ t.done = !0;
2510
+ }), je(e, {
2511
+ type: "idle",
2512
+ parent: e
2513
+ }));
2514
+ }
2515
+ G.assign({
2516
+ createStringInterpolator: rn,
2517
+ to: (e, t) => new hs(e, t)
2518
+ });
2519
+ var En = /^--/;
2520
+ function ps(e, t) {
2521
+ return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !En.test(e) && !(Oe.hasOwnProperty(e) && Oe[e]) ? t + "px" : ("" + t).trim();
2522
+ }
2523
+ var Mr = {};
2524
+ function vs(e, t) {
2525
+ if (!e.nodeType || !e.setAttribute)
2526
+ return !1;
2527
+ const r = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", {
2528
+ className: n,
2529
+ style: s,
2530
+ children: a,
2531
+ scrollTop: o,
2532
+ scrollLeft: l,
2533
+ viewBox: d,
2534
+ ...u
2535
+ } = t, m = Object.values(u), p = Object.keys(u).map(
2536
+ (v) => r || e.hasAttribute(v) ? v : Mr[v] || (Mr[v] = v.replace(
2537
+ /([A-Z])/g,
2538
+ // Attributes are written in dash case
2539
+ (g) => "-" + g.toLowerCase()
2540
+ ))
2541
+ );
2542
+ a !== void 0 && (e.textContent = a);
2543
+ for (const v in s)
2544
+ if (s.hasOwnProperty(v)) {
2545
+ const g = ps(v, s[v]);
2546
+ En.test(v) ? e.style.setProperty(v, g) : e.style[v] = g;
2547
+ }
2548
+ p.forEach((v, g) => {
2549
+ e.setAttribute(v, m[g]);
2550
+ }), n !== void 0 && (e.className = n), o !== void 0 && (e.scrollTop = o), l !== void 0 && (e.scrollLeft = l), d !== void 0 && e.setAttribute("viewBox", d);
2551
+ }
2552
+ var Oe = {
2553
+ animationIterationCount: !0,
2554
+ borderImageOutset: !0,
2555
+ borderImageSlice: !0,
2556
+ borderImageWidth: !0,
2557
+ boxFlex: !0,
2558
+ boxFlexGroup: !0,
2559
+ boxOrdinalGroup: !0,
2560
+ columnCount: !0,
2561
+ columns: !0,
2562
+ flex: !0,
2563
+ flexGrow: !0,
2564
+ flexPositive: !0,
2565
+ flexShrink: !0,
2566
+ flexNegative: !0,
2567
+ flexOrder: !0,
2568
+ gridRow: !0,
2569
+ gridRowEnd: !0,
2570
+ gridRowSpan: !0,
2571
+ gridRowStart: !0,
2572
+ gridColumn: !0,
2573
+ gridColumnEnd: !0,
2574
+ gridColumnSpan: !0,
2575
+ gridColumnStart: !0,
2576
+ fontWeight: !0,
2577
+ lineClamp: !0,
2578
+ lineHeight: !0,
2579
+ opacity: !0,
2580
+ order: !0,
2581
+ orphans: !0,
2582
+ tabSize: !0,
2583
+ widows: !0,
2584
+ zIndex: !0,
2585
+ zoom: !0,
2586
+ // SVG-related properties
2587
+ fillOpacity: !0,
2588
+ floodOpacity: !0,
2589
+ stopOpacity: !0,
2590
+ strokeDasharray: !0,
2591
+ strokeDashoffset: !0,
2592
+ strokeMiterlimit: !0,
2593
+ strokeOpacity: !0,
2594
+ strokeWidth: !0
2595
+ }, gs = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), ys = ["Webkit", "Ms", "Moz", "O"];
2596
+ Oe = Object.keys(Oe).reduce((e, t) => (ys.forEach((r) => e[gs(r, t)] = e[t]), e), Oe);
2597
+ var bs = /^(matrix|translate|scale|rotate|skew)/, _s = /^(translate)/, ws = /^(rotate|skew)/, xt = (e, t) => f.num(e) && e !== 0 ? e + t : e, Xe = (e, t) => f.arr(e) ? e.every((r) => Xe(r, t)) : f.num(e) ? e === t : parseFloat(e) === t, Rs = class extends ct {
2598
+ constructor({ x: e, y: t, z: r, ...n }) {
2599
+ const s = [], a = [];
2600
+ (e || t || r) && (s.push([e || 0, t || 0, r || 0]), a.push((o) => [
2601
+ `translate3d(${o.map((l) => xt(l, "px")).join(",")})`,
2602
+ // prettier-ignore
2603
+ Xe(o, 0)
2604
+ ])), K(n, (o, l) => {
2605
+ if (l === "transform")
2606
+ s.push([o || ""]), a.push((d) => [d, d === ""]);
2607
+ else if (bs.test(l)) {
2608
+ if (delete n[l], f.und(o))
2609
+ return;
2610
+ const d = _s.test(l) ? "px" : ws.test(l) ? "deg" : "";
2611
+ s.push(L(o)), a.push(
2612
+ l === "rotate3d" ? ([u, m, p, v]) => [
2613
+ `rotate3d(${u},${m},${p},${xt(v, d)})`,
2614
+ Xe(v, 0)
2615
+ ] : (u) => [
2616
+ `${l}(${u.map((m) => xt(m, d)).join(",")})`,
2617
+ Xe(u, l.startsWith("scale") ? 1 : 0)
2618
+ ]
2619
+ );
2620
+ }
2621
+ }), s.length && (n.transform = new Ss(s, a)), super(n);
2622
+ }
2623
+ }, Ss = class extends Zr {
2624
+ constructor(e, t) {
2625
+ super(), this.inputs = e, this.transforms = t, this._value = null;
2626
+ }
2627
+ get() {
2628
+ return this._value || (this._value = this._get());
2629
+ }
2630
+ _get() {
2631
+ let e = "", t = !0;
2632
+ return A(this.inputs, (r, n) => {
2633
+ const s = q(r[0]), [a, o] = this.transforms[n](
2634
+ f.arr(s) ? s : r.map(q)
2635
+ );
2636
+ e += " " + a, t = t && o;
2637
+ }), t ? "none" : e;
2638
+ }
2639
+ // Start observing our inputs once we have an observer.
2640
+ observerAdded(e) {
2641
+ e == 1 && A(
2642
+ this.inputs,
2643
+ (t) => A(
2644
+ t,
2645
+ (r) => W(r) && be(r, this)
2646
+ )
2647
+ );
2648
+ }
2649
+ // Stop observing our inputs once we have no observers.
2650
+ observerRemoved(e) {
2651
+ e == 0 && A(
2652
+ this.inputs,
2653
+ (t) => A(
2654
+ t,
2655
+ (r) => W(r) && Ve(r, this)
2656
+ )
2657
+ );
2658
+ }
2659
+ eventObserved(e) {
2660
+ e.type == "change" && (this._value = null), je(this, e);
2661
+ }
2662
+ }, Es = [
2663
+ "a",
2664
+ "abbr",
2665
+ "address",
2666
+ "area",
2667
+ "article",
2668
+ "aside",
2669
+ "audio",
2670
+ "b",
2671
+ "base",
2672
+ "bdi",
2673
+ "bdo",
2674
+ "big",
2675
+ "blockquote",
2676
+ "body",
2677
+ "br",
2678
+ "button",
2679
+ "canvas",
2680
+ "caption",
2681
+ "cite",
2682
+ "code",
2683
+ "col",
2684
+ "colgroup",
2685
+ "data",
2686
+ "datalist",
2687
+ "dd",
2688
+ "del",
2689
+ "details",
2690
+ "dfn",
2691
+ "dialog",
2692
+ "div",
2693
+ "dl",
2694
+ "dt",
2695
+ "em",
2696
+ "embed",
2697
+ "fieldset",
2698
+ "figcaption",
2699
+ "figure",
2700
+ "footer",
2701
+ "form",
2702
+ "h1",
2703
+ "h2",
2704
+ "h3",
2705
+ "h4",
2706
+ "h5",
2707
+ "h6",
2708
+ "head",
2709
+ "header",
2710
+ "hgroup",
2711
+ "hr",
2712
+ "html",
2713
+ "i",
2714
+ "iframe",
2715
+ "img",
2716
+ "input",
2717
+ "ins",
2718
+ "kbd",
2719
+ "keygen",
2720
+ "label",
2721
+ "legend",
2722
+ "li",
2723
+ "link",
2724
+ "main",
2725
+ "map",
2726
+ "mark",
2727
+ "menu",
2728
+ "menuitem",
2729
+ "meta",
2730
+ "meter",
2731
+ "nav",
2732
+ "noscript",
2733
+ "object",
2734
+ "ol",
2735
+ "optgroup",
2736
+ "option",
2737
+ "output",
2738
+ "p",
2739
+ "param",
2740
+ "picture",
2741
+ "pre",
2742
+ "progress",
2743
+ "q",
2744
+ "rp",
2745
+ "rt",
2746
+ "ruby",
2747
+ "s",
2748
+ "samp",
2749
+ "script",
2750
+ "section",
2751
+ "select",
2752
+ "small",
2753
+ "source",
2754
+ "span",
2755
+ "strong",
2756
+ "style",
2757
+ "sub",
2758
+ "summary",
2759
+ "sup",
2760
+ "table",
2761
+ "tbody",
2762
+ "td",
2763
+ "textarea",
2764
+ "tfoot",
2765
+ "th",
2766
+ "thead",
2767
+ "time",
2768
+ "title",
2769
+ "tr",
2770
+ "track",
2771
+ "u",
2772
+ "ul",
2773
+ "var",
2774
+ "video",
2775
+ "wbr",
2776
+ // SVG
2777
+ "circle",
2778
+ "clipPath",
2779
+ "defs",
2780
+ "ellipse",
2781
+ "foreignObject",
2782
+ "g",
2783
+ "image",
2784
+ "line",
2785
+ "linearGradient",
2786
+ "mask",
2787
+ "path",
2788
+ "pattern",
2789
+ "polygon",
2790
+ "polyline",
2791
+ "radialGradient",
2792
+ "rect",
2793
+ "stop",
2794
+ "svg",
2795
+ "text",
2796
+ "tspan"
2797
+ ];
2798
+ G.assign({
2799
+ batchedUpdates: ti,
2800
+ createStringInterpolator: rn,
2801
+ colors: di
2802
+ });
2803
+ var xs = Wi(Es, {
2804
+ applyAnimatedValues: vs,
2805
+ createAnimatedStyle: (e) => new Rs(e),
2806
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2807
+ getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
2808
+ }), Ps = xs.animated;
2809
+ function As(e) {
2810
+ const t = e.htmlElement ?? "div", [r, n] = Ze(!1), s = re(null), a = re(null), [o, l] = Ze(null), [d, u] = ds(() => ({
2811
+ from: {
2812
+ opacity: 0,
2813
+ transform: "scale(0)"
2814
+ },
2815
+ to: {
2816
+ opacity: 1,
2817
+ transform: "scale(1)"
2818
+ }
2819
+ })), m = (g, _) => Math.floor(Math.random() * (_ - g + 1)) + g;
2820
+ ce(() => {
2821
+ if (s.current && a.current) {
2822
+ const g = s.current.getBoundingClientRect(), _ = a.current.getBoundingClientRect(), R = Math.max(g.height, _.height);
2823
+ l(R);
2824
+ }
2825
+ }, []), ce(() => {
2826
+ if (!e.animate) return;
2827
+ const g = setTimeout(() => {
2828
+ u({
2829
+ opacity: 0,
2830
+ transform: "translateY(15px)",
2831
+ config: { duration: 200 },
2832
+ onRest: () => {
2833
+ n((_) => !_), u({
2834
+ opacity: 1,
2835
+ transform: "translateY(0px)",
2836
+ config: { duration: 200 }
2837
+ });
2838
+ }
2839
+ });
2840
+ }, m(3500, 15e3));
2841
+ return () => clearTimeout(g);
2842
+ }, [r, e.animate, u]);
2843
+ const p = e.animate && r ? e.content.simplified : e.content.english, v = {
2844
+ ...e.textStyles,
2845
+ minHeight: o !== null ? `${o}px` : void 0,
2846
+ display: "inline-block",
2847
+ // helps keep the bounding box stable,
2848
+ alignContent: "center"
2849
+ };
2850
+ return /* @__PURE__ */ J.jsxs(J.Fragment, { children: [
2851
+ /* @__PURE__ */ J.jsx(
2852
+ "div",
2853
+ {
2854
+ ref: s,
2855
+ style: {
2856
+ position: "absolute",
2857
+ visibility: "hidden",
2858
+ pointerEvents: "none",
2859
+ whiteSpace: "nowrap",
2860
+ // Keep text on one line if needed, or remove if multiline
2861
+ font: "inherit"
2862
+ // Inherit font styling to get accurate measurement
2863
+ },
2864
+ children: e.content.english
2865
+ }
2866
+ ),
2867
+ /* @__PURE__ */ J.jsx(
2868
+ "div",
2869
+ {
2870
+ ref: a,
2871
+ style: {
2872
+ position: "absolute",
2873
+ visibility: "hidden",
2874
+ pointerEvents: "none",
2875
+ whiteSpace: "nowrap",
2876
+ font: "inherit"
2877
+ },
2878
+ children: e.content.simplified
2879
+ }
2880
+ ),
2881
+ /* @__PURE__ */ J.jsx(Ps.div, { style: d, children: /* @__PURE__ */ J.jsx(t, { style: v, children: p }) })
2882
+ ] });
2883
+ }
2884
+ const ks = ({
2885
+ IconComponent: e,
2886
+ buttonText: t,
2887
+ buttonType: r = "primary"
2888
+ }) => {
2889
+ const n = r === "primary" ? "primary" : "secondary";
2890
+ return /* @__PURE__ */ J.jsx("div", { className: "banner-button-container", children: /* @__PURE__ */ J.jsxs("button", { className: `banner-button ${n}`, children: [
2891
+ e && /* @__PURE__ */ J.jsx(e, { className: "icon-component" }),
2892
+ /* @__PURE__ */ J.jsx(As, { textStyles: { minWidth: "3rem" }, content: t, animate: !0 })
2893
+ ] }) });
2894
+ };
2895
+ export {
2896
+ As as AnimatedText,
2897
+ ks as BannerButton
2898
+ };