@ssgoi/core 6.5.0-beta.0 → 6.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- var Ht = Object.defineProperty;
2
- var Mt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var $ = (e, t, n) => Mt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { P as G, V as _t, W as g, M as E, S as Ut } from "./multi-animation-CnxqLEka.js";
5
- import { A as As } from "./multi-animation-CnxqLEka.js";
1
+ var Mt = Object.defineProperty;
2
+ var Ut = (e, t, n) => t in e ? Mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var $ = (e, t, n) => Ut(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { P as K, V as Dt, W as m, M as C, S as Rt } from "./multi-animation-Ch5rI3rB.js";
5
+ import { A as Fs } from "./multi-animation-Ch5rI3rB.js";
6
6
  function v(e, t) {
7
7
  const n = [];
8
8
  for (let s = 0; s < e.length; s++)
@@ -17,7 +17,7 @@ function v(e, t) {
17
17
  }
18
18
  return n;
19
19
  }
20
- function Dt(e, t) {
20
+ function vt(e, t) {
21
21
  return [
22
22
  {
23
23
  from: e.exit,
@@ -31,7 +31,7 @@ function Dt(e, t) {
31
31
  }
32
32
  ];
33
33
  }
34
- function J(e, t, n) {
34
+ function G(e, t, n) {
35
35
  const s = [];
36
36
  for (let o = 0; o < e.length; o++)
37
37
  for (let i = o + 1; i < e.length; i++) {
@@ -51,7 +51,7 @@ function J(e, t, n) {
51
51
  }
52
52
  return s;
53
53
  }
54
- class Y {
54
+ class k {
55
55
  constructor(t) {
56
56
  $(this, "omega");
57
57
  // Angular frequency
@@ -60,7 +60,7 @@ class Y {
60
60
  $(this, "restDelta");
61
61
  $(this, "restSpeed");
62
62
  const { stiffness: n, damping: s } = t, o = 1;
63
- this.omega = Math.sqrt(n / o), this.zeta = s / (2 * Math.sqrt(n * o)), this.restDelta = t.restDelta ?? G, this.restSpeed = t.restSpeed ?? _t;
63
+ this.omega = Math.sqrt(n / o), this.zeta = s / (2 * Math.sqrt(n * o)), this.restDelta = t.restDelta ?? K, this.restSpeed = t.restSpeed ?? Dt;
64
64
  }
65
65
  step(t, n, s) {
66
66
  const o = Math.min(s, 0.033), { omega: i, zeta: r } = this, { position: l, velocity: c } = t, a = -2 * o * r * i * c, p = o * i * i * (n - l), d = c + a + p;
@@ -80,14 +80,14 @@ class Vt {
80
80
  $(this, "follower");
81
81
  $(this, "restDelta");
82
82
  $(this, "restSpeed");
83
- this.restDelta = t.restDelta ?? G, this.restSpeed = t.restSpeed ?? _t, this.leader = new Y({
83
+ this.restDelta = t.restDelta ?? K, this.restSpeed = t.restSpeed ?? Dt, this.leader = new k({
84
84
  stiffness: t.stiffness,
85
85
  damping: t.damping,
86
86
  restDelta: this.restDelta,
87
87
  restSpeed: this.restSpeed
88
88
  });
89
89
  let n, s, o, i;
90
- typeof t.follower == "number" ? (n = t.stiffness * t.follower, s = t.damping) : t.follower ? (n = t.follower.stiffness, s = t.follower.damping, o = t.follower.restDelta, i = t.follower.restSpeed) : (n = t.stiffness, s = t.damping), this.follower = new Y({
90
+ typeof t.follower == "number" ? (n = t.stiffness * t.follower, s = t.damping) : t.follower ? (n = t.follower.stiffness, s = t.follower.damping, o = t.follower.restDelta, i = t.follower.restSpeed) : (n = t.stiffness, s = t.damping), this.follower = new k({
91
91
  stiffness: n,
92
92
  damping: s,
93
93
  restDelta: o ?? this.restDelta,
@@ -115,7 +115,7 @@ class Vt {
115
115
  }
116
116
  }
117
117
  const zt = 0.01, Nt = 500, Xt = 10;
118
- class Rt {
118
+ class Bt {
119
119
  constructor(t) {
120
120
  $(this, "acceleration");
121
121
  $(this, "resistance");
@@ -131,8 +131,8 @@ class Rt {
131
131
  const o = Math.min(s, 0.033), { acceleration: i, resistance: r, resistanceType: l, min: c, max: a } = this, { position: p, velocity: d } = t, f = c !== void 0 && p < c, u = a !== void 0 && p > a;
132
132
  let y;
133
133
  if (f || u) {
134
- const b = p - (f ? c : a), x = -this.bounceStiffness * b, C = -this.bounceDamping * d;
135
- y = x + C;
134
+ const b = p - (f ? c : a), x = -this.bounceStiffness * b, E = -this.bounceDamping * d;
135
+ y = x + E;
136
136
  } else {
137
137
  const S = n > p ? 1 : -1;
138
138
  let b;
@@ -153,7 +153,7 @@ class Rt {
153
153
  return Math.abs(n - t.position) < this.restDelta;
154
154
  }
155
155
  }
156
- class m {
156
+ class g {
157
157
  /**
158
158
  * Create an Integrator from physics config
159
159
  *
@@ -167,7 +167,7 @@ class m {
167
167
  "Cannot use both 'spring' and 'inertia' together. Choose one physics type."
168
168
  );
169
169
  if (t.inertia)
170
- return new Rt({
170
+ return new Bt({
171
171
  acceleration: t.inertia.acceleration,
172
172
  resistance: t.inertia.resistance,
173
173
  resistanceType: t.inertia.resistanceType,
@@ -192,7 +192,7 @@ class m {
192
192
  restSpeed: n.restSpeed
193
193
  });
194
194
  }
195
- return new Y({
195
+ return new k({
196
196
  stiffness: n.stiffness,
197
197
  damping: n.damping,
198
198
  restDelta: n.restDelta,
@@ -204,10 +204,10 @@ class m {
204
204
  * @deprecated Use from({ spring: config }) instead
205
205
  */
206
206
  static fromSpring(t) {
207
- return m.from({ spring: t });
207
+ return g.from({ spring: t });
208
208
  }
209
209
  }
210
- class Bt {
210
+ class Wt {
211
211
  constructor(t) {
212
212
  $(this, "durationSec");
213
213
  this.durationSec = Math.max(1 / 60, t.durationSec);
@@ -219,10 +219,10 @@ class Bt {
219
219
  return (i > 0 ? c >= n : c <= n) ? { position: n, velocity: 0 } : { position: c, velocity: i * r };
220
220
  }
221
221
  isSettled(t, n) {
222
- return Math.abs(t.position - n) < G;
222
+ return Math.abs(t.position - n) < K;
223
223
  }
224
224
  }
225
- function A(e, t) {
225
+ function J(e, t) {
226
226
  function n(i) {
227
227
  let r = 0, l = 0;
228
228
  const c = i.offsetWidth, a = i.offsetHeight;
@@ -239,8 +239,17 @@ function A(e, t) {
239
239
  o.height
240
240
  );
241
241
  }
242
+ function tt(e, t) {
243
+ const n = e.getBoundingClientRect(), s = t.getBoundingClientRect(), o = e.offsetWidth > 0 ? n.width / e.offsetWidth : 1, i = e.offsetHeight > 0 ? n.height / e.offsetHeight : 1;
244
+ return new DOMRect(
245
+ (s.left - n.left) / o,
246
+ (s.top - n.top) / i,
247
+ s.width / o,
248
+ s.height / i
249
+ );
250
+ }
242
251
  function I(e, t) {
243
- const { scrollingElement: n, positionedParent: s } = e, o = n !== s && n.contains(s) ? A(n, s).top : 0;
252
+ const { scrollingElement: n, positionedParent: s } = e, o = n !== s && n.contains(s) ? J(n, s).top : 0;
244
253
  return {
245
254
  top: e[t].scroll.y,
246
255
  left: 0,
@@ -248,7 +257,7 @@ function I(e, t) {
248
257
  height: n.clientHeight - o
249
258
  };
250
259
  }
251
- const tt = 8, et = {
260
+ const et = 8, nt = {
252
261
  spring: {
253
262
  stiffness: 1e3,
254
263
  damping: 40,
@@ -257,10 +266,10 @@ const tt = 8, et = {
257
266
  restSpeed: 0.1
258
267
  }
259
268
  };
260
- function Wt({
269
+ function Zt({
261
270
  direction: e
262
271
  }) {
263
- const t = e === "forward" ? tt : -tt;
272
+ const t = e === "forward" ? et : -et;
264
273
  return {
265
274
  out: {
266
275
  willChange: "transform, opacity",
@@ -282,25 +291,25 @@ function Wt({
282
291
  }
283
292
  };
284
293
  }
285
- function Zt() {
294
+ function qt() {
286
295
  return {
287
- outPhysics: et,
288
- inPhysics: et,
296
+ outPhysics: nt,
297
+ inPhysics: nt,
289
298
  // Both sides run together — the cross-fade is the whole point of the
290
299
  // snappy feel. (fluid's sibling uses staggered fade-through.)
291
300
  composition: { mode: "parallel", startAt: [0, 0] },
292
- build: Wt
301
+ build: Zt
293
302
  };
294
303
  }
295
- const nt = 30, qt = {
304
+ const st = 30, jt = {
296
305
  inertia: { acceleration: 150, resistance: 1.5, restDelta: 0.1 }
297
- }, jt = {
306
+ }, Kt = {
298
307
  spring: { stiffness: 180, damping: 34, restDelta: 0.1, restSpeed: 0.1 }
299
308
  };
300
- function Kt({
309
+ function Gt({
301
310
  direction: e
302
311
  }) {
303
- const t = e === "forward" ? 1 : -1, n = -nt * t, s = nt * t;
312
+ const t = e === "forward" ? 1 : -1, n = -st * t, s = st * t;
304
313
  return {
305
314
  out: {
306
315
  willChange: "transform, opacity",
@@ -323,29 +332,29 @@ function Kt({
323
332
  }
324
333
  };
325
334
  }
326
- function Gt() {
335
+ function Jt() {
327
336
  return {
328
- outPhysics: qt,
329
- inPhysics: jt,
337
+ outPhysics: jt,
338
+ inPhysics: Kt,
330
339
  // Phased motion: outgoing falls away first under inertia, then incoming
331
340
  // springs in. The fade-through shape comes from the integrator curves
332
341
  // plus the sequence handoff, not from FADE_SPLIT inside animate(t).
333
342
  composition: { mode: "sequence" },
334
- build: Kt
343
+ build: Gt
335
344
  };
336
345
  }
337
- const Jt = {
338
- snappy: Zt(),
339
- fluid: Gt()
340
- }, st = 8, Qt = {
346
+ const Qt = {
347
+ snappy: qt(),
348
+ fluid: Jt()
349
+ }, ot = 8, te = {
341
350
  inertia: { acceleration: 150, resistance: 1.5, restDelta: 0.1 }
342
- }, te = {
351
+ }, ee = {
343
352
  spring: { stiffness: 180, damping: 34, restDelta: 0.1, restSpeed: 0.1 }
344
353
  };
345
- function ee({
354
+ function ne({
346
355
  direction: e
347
356
  }) {
348
- const t = e === "forward" ? 1 : -1, n = -st * t, s = st * t;
357
+ const t = e === "forward" ? 1 : -1, n = -ot * t, s = ot * t;
349
358
  return {
350
359
  out: {
351
360
  willChange: "transform, opacity",
@@ -368,21 +377,21 @@ function ee({
368
377
  }
369
378
  };
370
379
  }
371
- function ne() {
380
+ function se() {
372
381
  return {
373
- outPhysics: Qt,
374
- inPhysics: te,
382
+ outPhysics: te,
383
+ inPhysics: ee,
375
384
  composition: { mode: "sequence" },
376
- build: ee
385
+ build: ne
377
386
  };
378
387
  }
379
- const se = 8, oe = {
388
+ const oe = 8, ie = {
380
389
  inertia: { acceleration: 150, resistance: 1.5, restDelta: 0.1 }
381
- }, ie = {
390
+ }, re = {
382
391
  spring: { stiffness: 180, damping: 34, restDelta: 0.1, restSpeed: 0.1 }
383
392
  };
384
- function re(e) {
385
- const t = se;
393
+ function ae(e) {
394
+ const t = oe;
386
395
  return {
387
396
  out: {
388
397
  willChange: "opacity",
@@ -404,32 +413,32 @@ function re(e) {
404
413
  }
405
414
  };
406
415
  }
407
- function ae() {
416
+ function le() {
408
417
  return {
409
- outPhysics: oe,
410
- inPhysics: ie,
418
+ outPhysics: ie,
419
+ inPhysics: re,
411
420
  composition: { mode: "sequence" },
412
- build: re
421
+ build: ae
413
422
  };
414
423
  }
415
- const ot = ne(), le = {
416
- snappy: ot,
417
- directional: ot,
418
- "non-directional": ae()
419
- }, it = {
424
+ const it = se(), ce = {
425
+ snappy: it,
426
+ directional: it,
427
+ "non-directional": le()
428
+ }, rt = {
420
429
  spring: { stiffness: 280, damping: 30, restDelta: 0.1, restSpeed: 0.1 }
421
- }, U = 0.1, V = 1 / 3, rt = (e) => Math.max(0, Math.min(1, e));
422
- function ce({
430
+ }, M = 0.1, U = 1 / 3, at = (e) => Math.max(0, Math.min(1, e));
431
+ function pe({
423
432
  direction: e
424
433
  }) {
425
- const t = e === "forward" ? 1 : -1, n = 1 - t * U;
434
+ const t = e === "forward" ? 1 : -1, n = 1 - t * M;
426
435
  return {
427
436
  out: {
428
437
  willChange: "transform, opacity",
429
438
  startStyle: {},
430
439
  animate: (s) => ({
431
- transform: `scale(${1 + t * s * U})`,
432
- opacity: `${rt(1 - s / V)}`
440
+ transform: `scale(${1 + t * s * M})`,
441
+ opacity: `${at(1 - s / U)}`
433
442
  })
434
443
  },
435
444
  in: {
@@ -439,127 +448,127 @@ function ce({
439
448
  opacity: "0"
440
449
  },
441
450
  animate: (s) => ({
442
- transform: `scale(${n + t * s * U})`,
443
- opacity: `${rt((s - V) / (1 - V))}`
451
+ transform: `scale(${n + t * s * M})`,
452
+ opacity: `${at((s - U) / (1 - U))}`
444
453
  })
445
454
  }
446
455
  };
447
456
  }
448
- function pe() {
457
+ function de() {
449
458
  return {
450
- outPhysics: it,
451
- inPhysics: it,
459
+ outPhysics: rt,
460
+ inPhysics: rt,
452
461
  // Scale must move together on both sides; fade-through is encoded inside
453
462
  // each tick (piecewise), not via composition staggering — so parallel.
454
463
  composition: { mode: "parallel" },
455
- build: ce
464
+ build: pe
456
465
  };
457
466
  }
458
- const at = {
467
+ const lt = {
459
468
  spring: { stiffness: 280, damping: 30, restDelta: 0.1, restSpeed: 0.1 }
460
- }, z = 0.1, N = 1 / 3, lt = (e) => Math.max(0, Math.min(1, e));
461
- function de() {
469
+ }, R = 0.1, V = 1 / 3, ct = (e) => Math.max(0, Math.min(1, e));
470
+ function fe() {
462
471
  return {
463
472
  out: {
464
473
  willChange: "opacity",
465
474
  startStyle: {},
466
475
  animate: (e) => ({
467
- opacity: `${lt(1 - e / N)}`
476
+ opacity: `${ct(1 - e / V)}`
468
477
  })
469
478
  },
470
479
  in: {
471
480
  willChange: "transform, opacity",
472
481
  startStyle: {
473
- transform: `scale(${1 - z})`,
482
+ transform: `scale(${1 - R})`,
474
483
  opacity: "0"
475
484
  },
476
485
  animate: (e) => ({
477
- transform: `scale(${1 - z + e * z})`,
478
- opacity: `${lt((e - N) / (1 - N))}`
486
+ transform: `scale(${1 - R + e * R})`,
487
+ opacity: `${ct((e - V) / (1 - V))}`
479
488
  })
480
489
  }
481
490
  };
482
491
  }
483
- function fe() {
492
+ function ye() {
484
493
  return {
485
- outPhysics: at,
486
- inPhysics: at,
494
+ outPhysics: lt,
495
+ inPhysics: lt,
487
496
  composition: { mode: "parallel" },
488
- build: de
497
+ build: fe
489
498
  };
490
499
  }
491
- const ct = pe(), ye = {
492
- snappy: ct,
493
- directional: ct,
494
- "non-directional": fe()
495
- }, he = {
496
- x: Jt,
497
- y: le,
498
- z: ye
500
+ const pt = de(), he = {
501
+ snappy: pt,
502
+ directional: pt,
503
+ "non-directional": ye()
504
+ }, ue = {
505
+ x: Qt,
506
+ y: ce,
507
+ z: he
499
508
  };
500
- function ue(e, t) {
501
- const n = he[e];
509
+ function me(e, t) {
510
+ const n = ue[e];
502
511
  return n[t] ?? n.snappy;
503
512
  }
504
- const me = "x", ge = "snappy";
505
- function pt(e, t) {
513
+ const ge = "x", we = "snappy";
514
+ function dt(e, t) {
506
515
  e.style.willChange = t.willChange, e.style.backfaceVisibility = "hidden", e.style.contain = "layout paint";
507
516
  for (const [n, s] of Object.entries(t.startStyle))
508
517
  e.style[n] = s;
509
518
  }
510
- function vt(e) {
519
+ function It(e) {
511
520
  e.style.willChange = "auto", e.style.backfaceVisibility = "", e.style.contain = "", e.style.transform = "", e.style.opacity = "", e.style.clipPath = "";
512
521
  }
513
- function we(e) {
514
- vt(e), e.style.pointerEvents = "";
522
+ function Se(e) {
523
+ It(e), e.style.pointerEvents = "";
515
524
  }
516
- const Se = (e = {}) => {
517
- const t = e.direction ?? "forward", n = e.type ?? me, s = e.feel ?? ge, o = ue(n, s), i = o.build({ direction: t });
525
+ const be = (e = {}) => {
526
+ const t = e.direction ?? "forward", n = e.type ?? ge, s = e.feel ?? we, o = me(n, s), i = o.build({ direction: t });
518
527
  return {
519
528
  prepare: ({ from: r, to: l }) => (r.then((c) => {
520
- pt(c, i.out), c.style.pointerEvents = "none";
529
+ dt(c, i.out), c.style.pointerEvents = "none";
521
530
  }), l.then((c) => {
522
- pt(c, i.in);
531
+ dt(c, i.in);
523
532
  }), {}),
524
533
  animation: ({ from: r, to: l, context: c }) => {
525
534
  if (n === "z") {
526
535
  const d = I(c, "from"), f = I(c, "to");
527
536
  r.style.clipPath = `inset(${d.top}px 0 calc(100% - ${d.top + d.height}px) 0)`, l.style.clipPath = `inset(${f.top}px 0 calc(100% - ${f.top + f.height}px) 0)`;
528
537
  }
529
- const a = new g({
538
+ const a = new m({
530
539
  element: r,
531
- integrator: m.from(o.outPhysics),
540
+ integrator: g.from(o.outPhysics),
532
541
  style: (d) => i.out.animate(d),
533
542
  // Restore the reused from node's inline styles on complete. This
534
543
  // covers willChange/backfaceVisibility/contain/transform/opacity (from
535
544
  // applyStartStyle + the WAAPI final frame), pointerEvents (set in
536
545
  // prepare), and clipPath (set above for z; harmless no-op otherwise).
537
- onComplete: () => we(r)
538
- }), p = new g({
546
+ onComplete: () => Se(r)
547
+ }), p = new m({
539
548
  element: l,
540
- integrator: m.from(o.inPhysics),
549
+ integrator: g.from(o.inPhysics),
541
550
  style: (d) => i.in.animate(d),
542
- onComplete: () => vt(l)
551
+ onComplete: () => It(l)
543
552
  });
544
- return new E([a, p], o.composition);
553
+ return new C([a, p], o.composition);
545
554
  }
546
555
  };
547
556
  };
548
- function be(e, t, n) {
557
+ function $e(e, t, n) {
549
558
  return e === "y" ? t === "non-directional" ? "non-directional" : "directional" : e !== "x" || t === "snappy" || n === "snappy" ? "snappy" : "fluid";
550
559
  }
551
- function gs(e) {
552
- const { paths: t } = e, n = e.type ?? "x", s = e.variant, o = e.feel, i = be(n, s, o);
553
- return J(
560
+ function ws(e) {
561
+ const { paths: t } = e, n = e.type ?? "x", s = e.variant, o = e.feel, i = $e(n, s, o);
562
+ return G(
554
563
  t,
555
564
  { forward: "forward", backward: "backward" },
556
- (r) => Se({ type: n, direction: r, feel: i })
565
+ (r) => be({ type: n, direction: r, feel: i })
557
566
  );
558
567
  }
559
- const $e = {
568
+ const Ce = {
560
569
  spring: { stiffness: 200, damping: 22 }
561
- }, Ee = 10, Ce = "horizontal", xe = "#000000";
562
- function dt(e, t, n, s, o, i) {
570
+ }, Ee = 10, xe = "horizontal", Pe = "#000000";
571
+ function ft(e, t, n, s, o, i) {
563
572
  window.getComputedStyle(e).position === "static" && (e.style.position = "relative");
564
573
  const l = document.createElement("div");
565
574
  l.style.cssText = `
@@ -606,13 +615,13 @@ function dt(e, t, n, s, o, i) {
606
615
  }
607
616
  return e.appendChild(l), { container: l, blinds: c };
608
617
  }
609
- const Pe = (e = {}) => {
610
- const t = e.blindCount ?? Ee, n = e.direction ?? Ce, s = e.blindColor ?? xe, o = e.physics ?? $e;
618
+ const _e = (e = {}) => {
619
+ const t = e.blindCount ?? Ee, n = e.direction ?? xe, s = e.blindColor ?? Pe, o = e.physics ?? Ce;
611
620
  return {
612
621
  prepare: async ({ from: i, to: r }) => {
613
622
  const l = await i, c = await r;
614
623
  l.style.zIndex = "1000";
615
- const a = dt(
624
+ const a = ft(
616
625
  l,
617
626
  t,
618
627
  n,
@@ -621,7 +630,7 @@ const Pe = (e = {}) => {
621
630
  "left"
622
631
  );
623
632
  c.style.position = "relative", c.style.zIndex = "0";
624
- const p = dt(
633
+ const p = ft(
625
634
  c,
626
635
  t,
627
636
  n,
@@ -645,17 +654,17 @@ const Pe = (e = {}) => {
645
654
  toContainer: a
646
655
  }) => {
647
656
  const p = r.map(
648
- (y) => new g({
657
+ (y) => new m({
649
658
  element: y,
650
- integrator: m.from(o),
659
+ integrator: g.from(o),
651
660
  style: (h) => ({
652
661
  transform: n === "horizontal" ? `scaleX(${h})` : `scaleY(${h})`
653
662
  })
654
663
  })
655
664
  ), d = c.map(
656
- (y, h) => new g({
665
+ (y, h) => new m({
657
666
  element: y,
658
- integrator: m.from(o),
667
+ integrator: g.from(o),
659
668
  style: (w, S) => ({
660
669
  transform: n === "horizontal" ? `scaleX(${S})` : `scaleY(${S})`
661
670
  }),
@@ -663,22 +672,22 @@ const Pe = (e = {}) => {
663
672
  a.remove(), l.remove(), i.style.zIndex = "", i.style.position = "";
664
673
  } : void 0
665
674
  })
666
- ), f = new E(p, { mode: "parallel" }), u = new E(d, { mode: "parallel" });
667
- return new E([f, u], { mode: "sequence" });
675
+ ), f = new C(p, { mode: "parallel" }), u = new C(d, { mode: "parallel" });
676
+ return new C([f, u], { mode: "sequence" });
668
677
  }
669
678
  };
670
679
  };
671
- function ws(e) {
680
+ function Ss(e) {
672
681
  const { paths: t, type: n = "horizontal" } = e;
673
682
  return v(
674
683
  t,
675
- () => Pe({ direction: n })
684
+ () => _e({ direction: n })
676
685
  );
677
686
  }
678
- const _e = {
687
+ const De = {
679
688
  spring: { stiffness: 200, damping: 20, doubleSpring: 0.7 }
680
689
  }, O = 0.5;
681
- function De(e) {
690
+ function ve(e) {
682
691
  const t = e === "enter" ? -100 : 100, n = e === "enter" ? 100 : -100;
683
692
  return {
684
693
  out: {
@@ -702,16 +711,16 @@ function De(e) {
702
711
  }
703
712
  };
704
713
  }
705
- function ve() {
714
+ function Ie() {
706
715
  return {
707
- physics: _e,
708
- build: De
716
+ physics: De,
717
+ build: ve
709
718
  };
710
719
  }
711
- const Ie = {
720
+ const Te = {
712
721
  spring: { stiffness: 170, damping: 22 }
713
722
  };
714
- function Te(e) {
723
+ function Oe(e) {
715
724
  const t = e === "enter" ? -20 : 100, n = e === "enter" ? 100 : -20;
716
725
  return {
717
726
  out: {
@@ -732,33 +741,33 @@ function Te(e) {
732
741
  }
733
742
  };
734
743
  }
735
- function Oe() {
744
+ function Ae() {
736
745
  return {
737
- physics: Ie,
738
- build: Te
746
+ physics: Te,
747
+ build: Oe
739
748
  };
740
749
  }
741
- const Ae = {
742
- parallax: Oe(),
743
- crossfade: ve()
744
- }, Fe = "parallax";
745
- function ft(e, t) {
750
+ const Fe = {
751
+ parallax: Ae(),
752
+ crossfade: Ie()
753
+ }, ke = "parallax";
754
+ function yt(e, t) {
746
755
  e.style.willChange = t.willChange, e.style.backfaceVisibility = "hidden", e.style.contain = "layout paint";
747
756
  for (const [n, s] of Object.entries(t.startStyle))
748
757
  e.style[n] = s;
749
758
  }
750
- const ke = (e = {}) => {
751
- const t = e.direction ?? "enter", n = Ae[e.type ?? Fe], s = n.physics, o = n.build(t);
759
+ const Ye = (e = {}) => {
760
+ const t = e.direction ?? "enter", n = Fe[e.type ?? ke], s = n.physics, o = n.build(t);
752
761
  return {
753
762
  prepare: ({ from: i, to: r }) => (i.then((l) => {
754
- ft(l, o.out), l.style.pointerEvents = "none", l.style.zIndex = t === "enter" ? "-1" : "100";
763
+ yt(l, o.out), l.style.pointerEvents = "none", l.style.zIndex = t === "enter" ? "-1" : "100";
755
764
  }), r.then((l) => {
756
- ft(l, o.in);
765
+ yt(l, o.in);
757
766
  }), {}),
758
767
  animation: ({ from: i, to: r }) => {
759
- const l = new g({
768
+ const l = new m({
760
769
  element: i,
761
- integrator: m.from(s),
770
+ integrator: g.from(s),
762
771
  style: (a) => o.out.animate(a),
763
772
  // The outgoing node is the real, reused element (re-hidden on navigate),
764
773
  // so clear every inline style we set on it — mirroring the `to` cleanup,
@@ -766,65 +775,65 @@ const ke = (e = {}) => {
766
775
  onComplete: () => {
767
776
  i.style.willChange = "auto", i.style.backfaceVisibility = "", i.style.contain = "", i.style.transform = "", i.style.opacity = "", i.style.pointerEvents = "", i.style.zIndex = "";
768
777
  }
769
- }), c = new g({
778
+ }), c = new m({
770
779
  element: r,
771
- integrator: m.from(s),
780
+ integrator: g.from(s),
772
781
  style: (a) => o.in.animate(a),
773
782
  onComplete: () => {
774
783
  r.style.willChange = "auto", r.style.backfaceVisibility = "", r.style.contain = "", r.style.transform = "", r.style.opacity = "";
775
784
  }
776
785
  });
777
- return new E([l, c], { mode: "parallel" });
786
+ return new C([l, c], { mode: "parallel" });
778
787
  }
779
788
  };
780
789
  };
781
- function Ye(e) {
790
+ function Le(e) {
782
791
  return e === "slide" || e === "crossfade" ? "crossfade" : "parallax";
783
792
  }
784
- function Ss(e) {
785
- const { enter: t, exit: n } = e, s = e.type, o = Ye(s);
786
- return Dt(
793
+ function bs(e) {
794
+ const { enter: t, exit: n } = e, s = e.type, o = Le(s);
795
+ return vt(
787
796
  { enter: t, exit: n },
788
- (i) => ke({ direction: i, type: o })
797
+ (i) => Ye({ direction: i, type: o })
789
798
  );
790
799
  }
791
- const Le = {
800
+ const He = {
792
801
  spring: { stiffness: 180, damping: 20, doubleSpring: !0 }
793
- }, He = {
802
+ }, Me = {
794
803
  spring: { stiffness: 170, damping: 20, doubleSpring: !0 }
795
- }, Me = (e = {}) => {
796
- const t = e.physics ?? He, n = e.physics ?? Le;
804
+ }, Ue = (e = {}) => {
805
+ const t = e.physics ?? Me, n = e.physics ?? He;
797
806
  return {
798
807
  prepare: ({ to: s }) => (s.then((o) => {
799
808
  o.style.opacity = "0", o.style.willChange = "opacity";
800
809
  }), {}),
801
810
  animation: ({ from: s, to: o }) => {
802
- const i = new g({
811
+ const i = new m({
803
812
  element: s,
804
- integrator: m.from(n),
813
+ integrator: g.from(n),
805
814
  // Default bounds (0, 1). `u` runs 1→0 as the animation moves
806
815
  // forward, mapping opacity from fully visible to invisible.
807
816
  style: (l, c) => ({ opacity: c }),
808
817
  onComplete: () => {
809
818
  s.style.willChange = "auto", s.style.opacity = "";
810
819
  }
811
- }), r = new g({
820
+ }), r = new m({
812
821
  element: o,
813
- integrator: m.from(t),
822
+ integrator: g.from(t),
814
823
  style: (l) => ({ opacity: l }),
815
824
  onComplete: () => {
816
825
  o.style.willChange = "auto", o.style.opacity = "";
817
826
  }
818
827
  });
819
- return new E([i, r], { mode: "sequence" });
828
+ return new C([i, r], { mode: "sequence" });
820
829
  }
821
830
  };
822
831
  };
823
- function bs(e) {
832
+ function $s(e) {
824
833
  const { paths: t } = e;
825
- return v(t, () => Me());
834
+ return v(t, () => Ue());
826
835
  }
827
- const X = {
836
+ const z = {
828
837
  scaleDown: { stiffness: 20, damping: 7 },
829
838
  translate: { stiffness: 15, damping: 7 },
830
839
  scaleUp: { stiffness: 20, damping: 7 }
@@ -832,11 +841,11 @@ const X = {
832
841
  scaleDown: 0,
833
842
  translate: 0.2,
834
843
  scaleUp: 0.8
835
- }, Ue = 0.8, Ve = "white", yt = 1e3 / 60, ze = 600;
844
+ }, Re = 0.8, Ve = "white", ht = 1e3 / 60, ze = 600;
836
845
  function Ne(e) {
837
- const { items: t, from: n, to: s, recordFrame: o } = e, i = yt / 1e3, r = Math.abs(s - n), l = t.map((a) => ({
846
+ const { items: t, from: n, to: s, recordFrame: o } = e, i = ht / 1e3, r = Math.abs(s - n), l = t.map((a) => ({
838
847
  item: a,
839
- integrator: new Y({
848
+ integrator: new k({
840
849
  stiffness: a.spring.stiffness,
841
850
  damping: a.spring.damping
842
851
  }),
@@ -850,10 +859,10 @@ function Ne(e) {
850
859
  o(0);
851
860
  let c = 0;
852
861
  for (let a = 1; a <= ze; a++) {
853
- const p = a * yt;
862
+ const p = a * ht;
854
863
  c = p;
855
864
  for (const d of l)
856
- !d.started || d.settled || (d.state = d.integrator.step(d.state, s, i), d.integrator.isSettled(d.state, s) ? (d.settleTime += i, d.settleTime >= Ut && (d.state = { position: s, velocity: 0 }, d.settled = !0)) : d.settleTime = 0, d.item.tick(d.state.position));
865
+ !d.started || d.settled || (d.state = d.integrator.step(d.state, s, i), d.integrator.isSettled(d.state, s) ? (d.settleTime += i, d.settleTime >= Rt && (d.state = { position: s, velocity: 0 }, d.settled = !0)) : d.settleTime = 0, d.item.tick(d.state.position));
857
866
  for (let d = 1; d < l.length; d++) {
858
867
  const f = l[d];
859
868
  if (f.started) continue;
@@ -865,14 +874,14 @@ function Ne(e) {
865
874
  }
866
875
  return c;
867
876
  }
868
- function R(e, t) {
877
+ function N(e, t) {
869
878
  return e != null && e.spring ? {
870
879
  stiffness: e.spring.stiffness,
871
880
  damping: e.spring.damping
872
881
  } : t;
873
882
  }
874
- function ht(e) {
875
- const { rect: t, scale: n, direction: s, override: o } = e, i = s === "out" ? { scale: 1, translateY: -t.top } : { scale: n, translateY: -t.top + t.height }, r = R(o, X.scaleDown), l = R(o, X.translate), c = R(o, X.scaleUp), a = s === "out" ? 1 : 0, p = s === "out" ? 0 : 1, d = s === "out" ? [
883
+ function ut(e) {
884
+ const { rect: t, scale: n, direction: s, override: o } = e, i = s === "out" ? { scale: 1, translateY: -t.top } : { scale: n, translateY: -t.top + t.height }, r = N(o, z.scaleDown), l = N(o, z.translate), c = N(o, z.scaleUp), a = s === "out" ? 1 : 0, p = s === "out" ? 0 : 1, d = s === "out" ? [
876
885
  {
877
886
  spring: r,
878
887
  offset: T.scaleDown,
@@ -944,13 +953,13 @@ function Xe(e, t) {
944
953
  translateY: i.translateY + (r.translateY - i.translateY) * l
945
954
  };
946
955
  }
947
- const Re = [
956
+ const Be = [
948
957
  [1, 1],
949
958
  [-1, 1],
950
959
  [1, -1],
951
960
  [-1, -1]
952
961
  ];
953
- function Be(e, t) {
962
+ function We(e, t) {
954
963
  const o = (i, r, l) => {
955
964
  const c = document.createElement("div");
956
965
  Object.assign(c.style, {
@@ -1015,11 +1024,11 @@ function Be(e, t) {
1015
1024
  )
1016
1025
  };
1017
1026
  }
1018
- function ut(e, t) {
1027
+ function mt(e, t) {
1019
1028
  const n = t.left + t.width / 2, s = t.top + t.height / 2;
1020
1029
  e.style.transformOrigin = `${n}px ${s}px`;
1021
1030
  }
1022
- function mt(e, t) {
1031
+ function gt(e, t) {
1023
1032
  e.style.clipPath = `polygon(
1024
1033
  ${t.left}px ${t.top}px,
1025
1034
  ${t.left + t.width}px ${t.top}px,
@@ -1027,23 +1036,23 @@ function mt(e, t) {
1027
1036
  ${t.left}px ${t.top + t.height}px
1028
1037
  )`;
1029
1038
  }
1030
- function B(e, t, n, s, o) {
1039
+ function X(e, t, n, s, o) {
1031
1040
  const i = n / 1e3;
1032
- return new g({
1041
+ return new m({
1033
1042
  element: e,
1034
- integrator: new Bt({ durationSec: i }),
1043
+ integrator: new Wt({ durationSec: i }),
1035
1044
  lowerBound: 0,
1036
1045
  upperBound: 1,
1037
1046
  style: (r) => s(Xe(t, r)),
1038
1047
  onComplete: o
1039
1048
  });
1040
1049
  }
1041
- const We = (e = {}) => {
1050
+ const Ze = (e = {}) => {
1042
1051
  var o;
1043
- const t = ((o = e.border) == null ? void 0 : o.color) ?? Ve, n = Ue, s = e.physics;
1052
+ const t = ((o = e.border) == null ? void 0 : o.color) ?? Ve, n = Re, s = e.physics;
1044
1053
  return {
1045
1054
  prepare: ({ from: i, to: r, context: l }) => {
1046
- const c = I(l, "from"), a = I(l, "to"), p = A(document.body, l.positionedParent), d = Be(t, {
1055
+ const c = I(l, "from"), a = I(l, "to"), p = J(document.body, l.positionedParent), d = We(t, {
1047
1056
  ...c,
1048
1057
  top: p.top
1049
1058
  });
@@ -1055,23 +1064,23 @@ const We = (e = {}) => {
1055
1064
  ])
1056
1065
  l.positionedParent.appendChild(d[f]);
1057
1066
  return i.then((f) => {
1058
- ut(f, c), mt(f, c), f.style.transform = `translateY(${-c.top}px)`;
1067
+ mt(f, c), gt(f, c), f.style.transform = `translateY(${-c.top}px)`;
1059
1068
  }), r.then((f) => {
1060
- ut(f, a), mt(f, a), f.style.transform = `translateY(${-a.top + a.height}px) scale(${n})`;
1069
+ mt(f, a), gt(f, a), f.style.transform = `translateY(${-a.top + a.height}px) scale(${n})`;
1061
1070
  }), { borders: d, fromRect: c, toRect: a };
1062
1071
  },
1063
1072
  animation: ({ from: i, to: r, context: l, borders: c, fromRect: a, toRect: p }) => {
1064
- const d = ht({
1073
+ const d = ut({
1065
1074
  rect: a,
1066
1075
  scale: n,
1067
1076
  direction: "out",
1068
1077
  override: s
1069
- }), f = ht({
1078
+ }), f = ut({
1070
1079
  rect: p,
1071
1080
  scale: n,
1072
1081
  direction: "in",
1073
1082
  override: s
1074
- }), u = B(
1083
+ }), u = X(
1075
1084
  i,
1076
1085
  d.snapshots,
1077
1086
  d.totalDuration,
@@ -1081,7 +1090,7 @@ const We = (e = {}) => {
1081
1090
  () => {
1082
1091
  i.style.clipPath = "", i.style.transformOrigin = "", i.style.transform = "";
1083
1092
  }
1084
- ), y = B(
1093
+ ), y = X(
1085
1094
  r,
1086
1095
  f.snapshots,
1087
1096
  f.totalDuration,
@@ -1091,18 +1100,18 @@ const We = (e = {}) => {
1091
1100
  () => {
1092
1101
  r.style.clipPath = "", r.style.transformOrigin = "", r.style.transform = "";
1093
1102
  }
1094
- ), h = Re.map(([b, x], C) => {
1095
- const P = ["topLeft", "topRight", "bottomLeft", "bottomRight"][C];
1096
- return B(
1103
+ ), h = Be.map(([b, x], E) => {
1104
+ const P = ["topLeft", "topRight", "bottomLeft", "bottomRight"][E];
1105
+ return X(
1097
1106
  c[P],
1098
1107
  d.snapshots,
1099
1108
  d.totalDuration,
1100
1109
  (D) => {
1101
- const _ = (a.width - a.width * D.scale) / 2 * 0.7 * b, M = (a.height - a.height * D.scale) / 2 * 0.7 * x;
1102
- return { transform: `translate(${_}px, ${M}px)` };
1110
+ const _ = (a.width - a.width * D.scale) / 2 * 0.7 * b, H = (a.height - a.height * D.scale) / 2 * 0.7 * x;
1111
+ return { transform: `translate(${_}px, ${H}px)` };
1103
1112
  }
1104
1113
  );
1105
- }), w = new E([u, y, ...h], {
1114
+ }), w = new C([u, y, ...h], {
1106
1115
  mode: "parallel"
1107
1116
  }), S = w.onComplete;
1108
1117
  return w.onComplete = () => {
@@ -1114,19 +1123,19 @@ const We = (e = {}) => {
1114
1123
  "bottomLeft",
1115
1124
  "bottomRight"
1116
1125
  ]) {
1117
- const C = c[x];
1118
- C.parentElement === b && b.removeChild(C);
1126
+ const E = c[x];
1127
+ E.parentElement === b && b.removeChild(E);
1119
1128
  }
1120
1129
  }, w;
1121
1130
  }
1122
1131
  };
1123
1132
  };
1124
- function $s(e) {
1133
+ function Cs(e) {
1125
1134
  const { paths: t, options: n } = e, s = (n == null ? void 0 : n.borderColor) !== void 0 ? { border: { color: n.borderColor } } : void 0;
1126
- return v(t, () => We(s));
1135
+ return v(t, () => Ze(s));
1127
1136
  }
1128
- const gt = "data-hero-enter-key", wt = "data-hero-exit-key", W = "data-hero-key";
1129
- class Ze {
1137
+ const wt = "data-hero-enter-key", St = "data-hero-exit-key", B = "data-hero-key";
1138
+ class qe {
1130
1139
  constructor() {
1131
1140
  $(this, "previousFromOpacity", "");
1132
1141
  }
@@ -1141,38 +1150,38 @@ class Ze {
1141
1150
  }), [];
1142
1151
  }
1143
1152
  }
1144
- const qe = () => new Ze();
1145
- class je {
1153
+ const je = () => new qe();
1154
+ class Ke {
1146
1155
  contribute(t) {
1147
1156
  const { from: n, to: s, physics: o, onComplete: i } = t, r = n.style.opacity, l = s.style.opacity, c = n.style.willChange, a = s.style.willChange;
1148
1157
  return s.style.opacity = "0", n.style.willChange = "opacity", s.style.willChange = "opacity", i(() => {
1149
1158
  n.style.opacity = r, s.style.opacity = l, n.style.willChange = c, s.style.willChange = a;
1150
1159
  }), [
1151
- new g({
1160
+ new m({
1152
1161
  element: n,
1153
- integrator: m.from(o),
1162
+ integrator: g.from(o),
1154
1163
  style: (p, d) => ({ opacity: d })
1155
1164
  }),
1156
- new g({
1165
+ new m({
1157
1166
  element: s,
1158
- integrator: m.from(o),
1167
+ integrator: g.from(o),
1159
1168
  style: (p) => ({ opacity: p })
1160
1169
  })
1161
1170
  ];
1162
1171
  }
1163
1172
  }
1164
- const Ke = () => new je(), Ge = {
1165
- static: qe,
1166
- fade: Ke
1167
- }, Je = {
1173
+ const Ge = () => new Ke(), Je = {
1174
+ static: je,
1175
+ fade: Ge
1176
+ }, Qe = {
1168
1177
  spring: { stiffness: 320, damping: 30 }
1169
- }, Qe = () => Je, tn = {
1178
+ }, tn = () => Qe, en = {
1170
1179
  spring: { stiffness: 300, damping: 30, doubleSpring: 1 }
1171
- }, en = () => tn, nn = {
1172
- default: Qe,
1173
- smooth: en
1174
- }, sn = 700, on = "data-hero-aspect-ratio", rn = "data-hero-radius";
1175
- function an(e) {
1180
+ }, nn = () => en, sn = {
1181
+ default: tn,
1182
+ smooth: nn
1183
+ }, on = 700, rn = "data-hero-aspect-ratio", an = "data-hero-radius";
1184
+ function ln(e) {
1176
1185
  if (!e) return null;
1177
1186
  if (e.includes("/")) {
1178
1187
  const [n, s] = e.split("/"), o = parseFloat(n ?? ""), i = parseFloat(s ?? "");
@@ -1181,19 +1190,19 @@ function an(e) {
1181
1190
  const t = parseFloat(e);
1182
1191
  return Number.isFinite(t) && t > 0 ? t : null;
1183
1192
  }
1184
- function St(e) {
1185
- const t = e.getAttribute(rn);
1193
+ function bt(e) {
1194
+ const t = e.getAttribute(an);
1186
1195
  if (!t) return 0;
1187
1196
  const n = parseFloat(t);
1188
1197
  return Number.isFinite(n) && n > 0 ? n : 0;
1189
1198
  }
1190
- function L(e) {
1199
+ function Y(e) {
1191
1200
  return e.left + e.width / 2;
1192
1201
  }
1193
- function H(e) {
1202
+ function L(e) {
1194
1203
  return e.top + e.height / 2;
1195
1204
  }
1196
- function ln(e, t) {
1205
+ function cn(e, t) {
1197
1206
  return {
1198
1207
  top: Math.max(0, t.top - e.top),
1199
1208
  right: Math.max(0, e.left + e.width - (t.left + t.width)),
@@ -1201,7 +1210,7 @@ function ln(e, t) {
1201
1210
  left: Math.max(0, t.left - e.left)
1202
1211
  };
1203
1212
  }
1204
- function cn(e, t, n) {
1213
+ function pn(e, t, n) {
1205
1214
  const s = e.width / e.height;
1206
1215
  let o, i;
1207
1216
  return n === "contain" ? s > t ? (i = e.height, o = i * t) : (o = e.width, i = o / t) : s > t ? (o = e.width, i = o / t) : (i = e.height, o = i * t), {
@@ -1211,8 +1220,8 @@ function cn(e, t, n) {
1211
1220
  height: i
1212
1221
  };
1213
1222
  }
1214
- function bt(e, t, n) {
1215
- const s = A(e, t), o = an(t.getAttribute(on));
1223
+ function $t(e, t, n) {
1224
+ const s = J(e, t), o = ln(t.getAttribute(rn));
1216
1225
  if (o === null)
1217
1226
  return {
1218
1227
  bbox: s,
@@ -1220,16 +1229,16 @@ function bt(e, t, n) {
1220
1229
  window: s,
1221
1230
  clipInset: { top: 0, right: 0, bottom: 0, left: 0 }
1222
1231
  };
1223
- const i = cn(s, o, n), r = n === "cover" ? s : i;
1232
+ const i = pn(s, o, n), r = n === "cover" ? s : i;
1224
1233
  return {
1225
1234
  bbox: s,
1226
1235
  content: i,
1227
1236
  window: r,
1228
- clipInset: ln(i, r)
1237
+ clipInset: cn(i, r)
1229
1238
  };
1230
1239
  }
1231
- function pn(e, t, n, s) {
1232
- const o = n.width / s, i = n.height / s, r = e.width / 2 + (L(n) - L(t)) / s - o / 2, l = e.height / 2 + (H(n) - H(t)) / s - i / 2;
1240
+ function dn(e, t, n, s) {
1241
+ const o = n.width / s, i = n.height / s, r = e.width / 2 + (Y(n) - Y(t)) / s - o / 2, l = e.height / 2 + (L(n) - L(t)) / s - i / 2;
1233
1242
  return {
1234
1243
  top: Math.max(0, l),
1235
1244
  right: Math.max(0, e.width - r - o),
@@ -1237,7 +1246,7 @@ function pn(e, t, n, s) {
1237
1246
  left: Math.max(0, r)
1238
1247
  };
1239
1248
  }
1240
- function F(e, t) {
1249
+ function A(e, t) {
1241
1250
  const n = /* @__PURE__ */ new Map(), s = e.querySelectorAll(`[${t}]`);
1242
1251
  for (const o of Array.from(s)) {
1243
1252
  const i = o.getAttribute(t);
@@ -1245,8 +1254,8 @@ function F(e, t) {
1245
1254
  }
1246
1255
  return n;
1247
1256
  }
1248
- function dn(e, t) {
1249
- const n = [], s = F(t, gt), o = F(e, wt);
1257
+ function fn(e, t) {
1258
+ const n = [], s = A(t, wt), o = A(e, St);
1250
1259
  for (const [l, c] of s) {
1251
1260
  const a = o.get(l);
1252
1261
  a && n.push({
@@ -1257,7 +1266,7 @@ function dn(e, t) {
1257
1266
  toFit: "contain"
1258
1267
  });
1259
1268
  }
1260
- const i = F(e, gt), r = F(t, wt);
1269
+ const i = A(e, wt), r = A(t, St);
1261
1270
  for (const [l, c] of i) {
1262
1271
  const a = r.get(l);
1263
1272
  a && n.push({
@@ -1270,15 +1279,15 @@ function dn(e, t) {
1270
1279
  }
1271
1280
  return n;
1272
1281
  }
1273
- function fn(e, t) {
1282
+ function yn(e, t) {
1274
1283
  const n = [], s = Array.from(
1275
- t.querySelectorAll(`[${W}]`)
1284
+ t.querySelectorAll(`[${B}]`)
1276
1285
  );
1277
1286
  for (const o of s) {
1278
- const i = o.getAttribute(W);
1287
+ const i = o.getAttribute(B);
1279
1288
  if (!i) continue;
1280
1289
  const r = e.querySelector(
1281
- `[${W}="${i}"]`
1290
+ `[${B}="${i}"]`
1282
1291
  );
1283
1292
  r && n.push({
1284
1293
  key: i,
@@ -1290,20 +1299,20 @@ function fn(e, t) {
1290
1299
  }
1291
1300
  return n;
1292
1301
  }
1293
- function yn(e, t) {
1294
- const n = dn(e, t);
1295
- return n.length > 0 ? n : fn(e, t);
1302
+ function hn(e, t) {
1303
+ const n = fn(e, t);
1304
+ return n.length > 0 ? n : yn(e, t);
1296
1305
  }
1297
- function hn(e, t, n) {
1298
- const { fromEl: s, toEl: o } = t, i = bt(e, s, t.fromFit), r = bt(e, o, t.toFit), l = i.content, c = i.window, a = r.content, p = r.window, d = r.clipInset, f = St(s), u = St(o);
1306
+ function un(e, t, n) {
1307
+ const { fromEl: s, toEl: o } = t, i = $t(e, s, t.fromFit), r = $t(e, o, t.toFit), l = i.content, c = i.window, a = r.content, p = r.window, d = r.clipInset, f = bt(s), u = bt(o);
1299
1308
  if (l.width === 0 || l.height === 0 || c.width === 0 || c.height === 0 || a.width === 0 || a.height === 0 || p.width === 0 || p.height === 0)
1300
1309
  return null;
1301
1310
  const y = Math.max(
1302
1311
  l.width / a.width,
1303
1312
  l.height / a.height
1304
- ), h = L(l), w = H(l), S = L(a), b = H(a), x = h - S, C = w - b;
1305
- if (Math.abs(C) > n) return null;
1306
- const P = pn(
1313
+ ), h = Y(l), w = L(l), S = Y(a), b = L(a), x = h - S, E = w - b;
1314
+ if (Math.abs(E) > n) return null;
1315
+ const P = dn(
1307
1316
  a,
1308
1317
  l,
1309
1318
  c,
@@ -1313,32 +1322,32 @@ function hn(e, t, n) {
1313
1322
  toContent: a,
1314
1323
  hasRadius: f > 0 || u > 0,
1315
1324
  styleFor: (D, _) => {
1316
- const M = _ * x, Ot = _ * C, Q = D + _ * y, At = (f * _ + u * D) / Q, Ft = P.top * _ + d.top * D, kt = P.right * _ + d.right * D, Yt = P.bottom * _ + d.bottom * D, Lt = P.left * _ + d.left * D;
1325
+ const H = _ * x, At = _ * E, Q = D + _ * y, Ft = (f * _ + u * D) / Q, kt = P.top * _ + d.top * D, Yt = P.right * _ + d.right * D, Lt = P.bottom * _ + d.bottom * D, Ht = P.left * _ + d.left * D;
1317
1326
  return {
1318
- transform: `translate(${M}px, ${Ot}px) scale(${Q})`,
1319
- clipPath: `inset(${Ft}px ${kt}px ${Yt}px ${Lt}px round ${At}px)`
1327
+ transform: `translate(${H}px, ${At}px) scale(${Q})`,
1328
+ clipPath: `inset(${kt}px ${Yt}px ${Lt}px ${Ht}px round ${Ft}px)`
1320
1329
  };
1321
1330
  }
1322
1331
  };
1323
1332
  }
1324
- function un(e, t) {
1333
+ function mn(e, t) {
1325
1334
  e.style.transform = t.transform, e.style.clipPath = t.clipPath;
1326
1335
  }
1327
- class mn {
1336
+ class gn {
1328
1337
  contribute(t) {
1329
1338
  const { resolved: n, physics: s, positionedParent: o, maxDistance: i, onComplete: r } = t, l = [];
1330
1339
  for (const c of n.pairs) {
1331
- const { fromEl: a, toEl: p } = c, d = hn(o, c, i);
1340
+ const { fromEl: a, toEl: p } = c, d = un(o, c, i);
1332
1341
  if (!d) continue;
1333
1342
  const f = p.cloneNode(!0);
1334
- f.style.position = "absolute", f.style.left = `${d.toContent.left}px`, f.style.top = `${d.toContent.top}px`, f.style.width = `${d.toContent.width}px`, f.style.height = `${d.toContent.height}px`, f.style.margin = "0", f.style.transformOrigin = "center center", f.style.zIndex = "1000", f.style.willChange = "transform, clip-path", f.style.pointerEvents = "none", f.style.maxWidth = "none", f.style.maxHeight = "none", d.hasRadius && (f.style.borderRadius = "0"), un(f, d.styleFor(0, 1)), o.appendChild(f);
1343
+ f.style.position = "absolute", f.style.left = `${d.toContent.left}px`, f.style.top = `${d.toContent.top}px`, f.style.width = `${d.toContent.width}px`, f.style.height = `${d.toContent.height}px`, f.style.margin = "0", f.style.transformOrigin = "center center", f.style.zIndex = "1000", f.style.willChange = "transform, clip-path", f.style.pointerEvents = "none", f.style.maxWidth = "none", f.style.maxHeight = "none", d.hasRadius && (f.style.borderRadius = "0"), mn(f, d.styleFor(0, 1)), o.appendChild(f);
1335
1344
  const u = a.style.opacity, y = p.style.opacity;
1336
1345
  a.style.opacity = "0", p.style.opacity = "0", r(() => {
1337
1346
  a.style.opacity = u, p.style.opacity = y, f.parentElement && f.parentElement.removeChild(f);
1338
1347
  }), l.push(
1339
- new g({
1348
+ new m({
1340
1349
  element: f,
1341
- integrator: m.from(s),
1350
+ integrator: g.from(s),
1342
1351
  style: d.styleFor
1343
1352
  })
1344
1353
  );
@@ -1346,18 +1355,18 @@ class mn {
1346
1355
  return l;
1347
1356
  }
1348
1357
  }
1349
- function gn(e) {
1350
- return [new mn(), Ge[e.type]()];
1358
+ function wn(e) {
1359
+ return [new gn(), Je[e.type]()];
1351
1360
  }
1352
- const wn = (e) => {
1353
- const t = gn(e), n = nn[e.variant](), s = sn;
1361
+ const Sn = (e) => {
1362
+ const t = wn(e), n = sn[e.variant](), s = on;
1354
1363
  return {
1355
1364
  prepare: (o) => {
1356
1365
  var l;
1357
1366
  const i = Promise.all([
1358
1367
  o.from,
1359
1368
  o.to
1360
- ]).then(([c, a]) => ({ pairs: yn(c, a) })), r = {
1369
+ ]).then(([c, a]) => ({ pairs: hn(c, a) })), r = {
1361
1370
  from: o.from,
1362
1371
  to: o.to,
1363
1372
  resolved: i
@@ -1368,7 +1377,7 @@ const wn = (e) => {
1368
1377
  },
1369
1378
  animation: ({ from: o, to: i, context: r, resolved: l }) => {
1370
1379
  if (l.pairs.length === 0)
1371
- return new E([], { mode: "parallel" });
1380
+ return new C([], { mode: "parallel" });
1372
1381
  const c = [], a = (y) => {
1373
1382
  c.push(y);
1374
1383
  }, p = {
@@ -1383,8 +1392,8 @@ const wn = (e) => {
1383
1392
  for (const y of t)
1384
1393
  y.contribute && d.push(...y.contribute(p));
1385
1394
  if (d.length === 0)
1386
- return new E([], { mode: "parallel" });
1387
- const f = new E(d, { mode: "parallel" }), u = f.onComplete;
1395
+ return new C([], { mode: "parallel" });
1396
+ const f = new C(d, { mode: "parallel" }), u = f.onComplete;
1388
1397
  return f.onComplete = () => {
1389
1398
  u == null || u();
1390
1399
  for (const y of c)
@@ -1401,15 +1410,15 @@ function Es(e) {
1401
1410
  const { paths: t } = e, n = e.type ?? "static", s = e.variant ?? "default";
1402
1411
  return v(
1403
1412
  t,
1404
- () => wn({ type: n, variant: s })
1413
+ () => Sn({ type: n, variant: s })
1405
1414
  );
1406
1415
  }
1407
- const Sn = {
1416
+ const bn = {
1408
1417
  spring: { stiffness: 50, damping: 30 }
1409
- }, bn = {
1418
+ }, $n = {
1410
1419
  spring: { stiffness: 80, damping: 25 }
1411
- }, $n = (e = {}) => {
1412
- const t = e.physics ?? Sn, n = e.initialRotation ?? 45, s = e.initialScale ?? 0.01, o = e.rotationTriggerPoint ?? 0.8;
1420
+ }, Cn = (e = {}) => {
1421
+ const t = e.physics ?? bn, n = e.initialRotation ?? 45, s = e.initialScale ?? 0.01, o = e.rotationTriggerPoint ?? 0.8;
1413
1422
  return {
1414
1423
  prepare: ({ from: i, to: r, context: l }) => (i.then((c) => {
1415
1424
  c.style.opacity = "1";
@@ -1420,9 +1429,9 @@ const Sn = {
1420
1429
  c.style.transformOrigin = `${d}px ${f}px`, c.style.position = "fixed", c.style.top = `${a.top}px`, c.style.left = `${a.left}px`, c.style.width = `${a.width}px`, c.style.height = `${a.height}px`, c.style.zIndex = "1000", c.style.overflow = "hidden", c.style.transform = `rotate(${n}deg) scale(${s}) translateZ(0)`, c.style.borderRadius = "calc(var(--max-border-radius) * var(--border-radius-scale))", c.style.opacity = "1";
1421
1430
  }), {}),
1422
1431
  animation: ({ from: i, to: r }) => {
1423
- const l = new g({
1432
+ const l = new m({
1424
1433
  element: i,
1425
- integrator: m.from(bn),
1434
+ integrator: g.from($n),
1426
1435
  style: (a, p) => ({ opacity: p }),
1427
1436
  // The outgoing node is reused (re-hidden, shown again on the next
1428
1437
  // navigation), so reset every inline style we wrote to it — mirroring
@@ -1431,9 +1440,9 @@ const Sn = {
1431
1440
  onComplete: () => {
1432
1441
  i.style.opacity = "";
1433
1442
  }
1434
- }), c = new g({
1443
+ }), c = new m({
1435
1444
  element: r,
1436
- integrator: m.from(t),
1445
+ integrator: g.from(t),
1437
1446
  style: (a) => {
1438
1447
  let p;
1439
1448
  if (a <= 0.05)
@@ -1469,17 +1478,17 @@ const Sn = {
1469
1478
  r.style.willChange = "", r.style.backfaceVisibility = "", r.style.removeProperty("--max-border-radius"), r.style.removeProperty("--border-radius-scale"), r.style.transform = "", r.style.transformOrigin = "", r.style.position = "", r.style.zIndex = "", r.style.top = "", r.style.left = "", r.style.width = "", r.style.height = "", r.style.overflow = "", r.style.borderRadius = "";
1470
1479
  }
1471
1480
  });
1472
- return new E([l, c], { mode: "parallel" });
1481
+ return new C([l, c], { mode: "parallel" });
1473
1482
  }
1474
1483
  };
1475
1484
  };
1476
- function Cs(e) {
1485
+ function xs(e) {
1477
1486
  const { paths: t } = e;
1478
- return v(t, () => $n());
1487
+ return v(t, () => Cn());
1479
1488
  }
1480
1489
  const En = {
1481
1490
  spring: { stiffness: 100, damping: 30 }
1482
- }, Cn = (e = {}) => {
1491
+ }, xn = (e = {}) => {
1483
1492
  const t = e.physics ?? En;
1484
1493
  return {
1485
1494
  prepare: ({ from: n, to: s }) => (n.then((o) => {
@@ -1488,9 +1497,9 @@ const En = {
1488
1497
  o.style.opacity = "0", o.style.transform = "rotate(-180deg)", o.style.transformOrigin = "center center", o.style.willChange = "transform, opacity";
1489
1498
  }), {}),
1490
1499
  animation: ({ from: n, to: s }) => {
1491
- const o = new g({
1500
+ const o = new m({
1492
1501
  element: n,
1493
- integrator: m.from(t),
1502
+ integrator: g.from(t),
1494
1503
  style: (r) => ({
1495
1504
  transform: `rotate(${r * 180}deg)`,
1496
1505
  opacity: r < 0.5 ? 1 : 0
@@ -1501,9 +1510,9 @@ const En = {
1501
1510
  onComplete: () => {
1502
1511
  n.style.willChange = "auto", n.style.transform = "", n.style.transformOrigin = "", n.style.opacity = "";
1503
1512
  }
1504
- }), i = new g({
1513
+ }), i = new m({
1505
1514
  element: s,
1506
- integrator: m.from(t),
1515
+ integrator: g.from(t),
1507
1516
  // u runs 1→0, so -u*180 unwinds -180→0.
1508
1517
  style: (r, l) => ({
1509
1518
  transform: `rotate(${-l * 180}deg)`,
@@ -1513,15 +1522,15 @@ const En = {
1513
1522
  s.style.willChange = "auto", s.style.transform = "", s.style.transformOrigin = "", s.style.opacity = "";
1514
1523
  }
1515
1524
  });
1516
- return new E([o, i], { mode: "parallel" });
1525
+ return new C([o, i], { mode: "parallel" });
1517
1526
  }
1518
1527
  };
1519
1528
  };
1520
- function xs(e) {
1529
+ function Ps(e) {
1521
1530
  const { paths: t } = e;
1522
- return v(t, () => Cn());
1531
+ return v(t, () => xn());
1523
1532
  }
1524
- const xn = {
1533
+ const Pn = {
1525
1534
  spring: {
1526
1535
  stiffness: 20,
1527
1536
  damping: 8,
@@ -1529,8 +1538,8 @@ const xn = {
1529
1538
  restDelta: 1e-3,
1530
1539
  restSpeed: 1e-3
1531
1540
  }
1532
- }, $t = (e = {}) => {
1533
- const t = e.direction ?? "up", n = e.physics ?? xn, s = t === "up";
1541
+ }, Ct = (e = {}) => {
1542
+ const t = e.direction ?? "up", n = e.physics ?? Pn, s = t === "up";
1534
1543
  return {
1535
1544
  prepare: ({ from: o, to: i }) => (o.then((r) => {
1536
1545
  r.style.zIndex = s ? "-1" : "1", r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.pointerEvents = "none";
@@ -1538,9 +1547,9 @@ const xn = {
1538
1547
  r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint";
1539
1548
  }), {}),
1540
1549
  animation: ({ from: o, to: i }) => {
1541
- const r = o.offsetHeight, l = i.offsetHeight, c = window.innerHeight, a = Math.max(Math.min(r, l), c), p = new g({
1550
+ const r = o.offsetHeight, l = i.offsetHeight, c = window.innerHeight, a = Math.max(Math.min(r, l), c), p = new m({
1542
1551
  element: o,
1543
- integrator: m.from(n),
1552
+ integrator: g.from(n),
1544
1553
  style: (f) => ({ transform: `translate3d(0, ${s ? -a * f : a * f}px, 0)` }),
1545
1554
  // The outgoing node is the real, reused element (re-hidden then shown
1546
1555
  // again on the next navigation), so mirror the incoming cleanup and
@@ -1550,60 +1559,60 @@ const xn = {
1550
1559
  onComplete: () => {
1551
1560
  o.style.willChange = "auto", o.style.backfaceVisibility = "", o.style.contain = "", o.style.transform = "", o.style.pointerEvents = "", o.style.zIndex = "";
1552
1561
  }
1553
- }), d = new g({
1562
+ }), d = new m({
1554
1563
  element: i,
1555
- integrator: m.from(n),
1564
+ integrator: g.from(n),
1556
1565
  style: (f, u) => ({ transform: `translate3d(0, ${s ? u * a : u * -a}px, 0)` }),
1557
1566
  onComplete: () => {
1558
1567
  i.style.willChange = "auto", i.style.backfaceVisibility = "", i.style.contain = "", i.style.transform = "";
1559
1568
  }
1560
1569
  });
1561
- return new E([p, d], { mode: "parallel" });
1570
+ return new C([p, d], { mode: "parallel" });
1562
1571
  }
1563
1572
  };
1564
1573
  };
1565
- function Ps(e) {
1574
+ function _s(e) {
1566
1575
  const { paths: t, type: n = "directional" } = e;
1567
1576
  return n === "non-directional" ? v(
1568
1577
  t,
1569
- () => $t({ direction: "up" })
1570
- ) : J(
1578
+ () => Ct({ direction: "up" })
1579
+ ) : G(
1571
1580
  t,
1572
1581
  { forward: "up", backward: "down" },
1573
- (s) => $t({ direction: s })
1582
+ (s) => Ct({ direction: s })
1574
1583
  );
1575
1584
  }
1576
- const Pn = {
1585
+ const _n = {
1577
1586
  spring: { stiffness: 200, damping: 24 }
1578
- }, _n = {
1587
+ }, Dn = {
1579
1588
  inertia: { acceleration: 25, resistance: 1.2 }
1580
- }, Z = 0.2;
1581
- function Dn() {
1589
+ }, W = 0.2;
1590
+ function vn() {
1582
1591
  return {
1583
- enterPhysics: Pn,
1584
- exitPhysics: _n,
1592
+ enterPhysics: _n,
1593
+ exitPhysics: Dn,
1585
1594
  background: {
1586
1595
  willChange: "transform, opacity",
1587
1596
  enterStyle: (e, t) => ({
1588
- transform: `scale(${1 - Z * e})`,
1597
+ transform: `scale(${1 - W * e})`,
1589
1598
  opacity: t
1590
1599
  }),
1591
1600
  exitStyle: (e) => ({
1592
- transform: `scale(${1 - Z + Z * e})`,
1601
+ transform: `scale(${1 - W + W * e})`,
1593
1602
  opacity: e
1594
1603
  })
1595
1604
  }
1596
1605
  };
1597
1606
  }
1598
- const vn = {
1607
+ const In = {
1599
1608
  spring: { stiffness: 300, damping: 30 }
1600
- }, In = {
1609
+ }, Tn = {
1601
1610
  inertia: { acceleration: 30, resistance: 1 }
1602
1611
  };
1603
- function Tn() {
1612
+ function On() {
1604
1613
  return {
1605
- enterPhysics: vn,
1606
- exitPhysics: In,
1614
+ enterPhysics: In,
1615
+ exitPhysics: Tn,
1607
1616
  background: {
1608
1617
  willChange: "",
1609
1618
  enterStyle: () => ({}),
@@ -1611,16 +1620,16 @@ function Tn() {
1611
1620
  }
1612
1621
  };
1613
1622
  }
1614
- const On = {
1615
- static: Tn(),
1616
- "background-scale": Dn()
1617
- }, An = "static", Fn = "transform", kn = (e = {}) => {
1618
- const t = e.direction ?? "enter", n = On[e.type ?? An], s = t === "enter" ? n.enterPhysics : n.exitPhysics, o = n.background, i = o.willChange !== "";
1623
+ const An = {
1624
+ static: On(),
1625
+ "background-scale": vn()
1626
+ }, Fn = "static", kn = "transform", Yn = (e = {}) => {
1627
+ const t = e.direction ?? "enter", n = An[e.type ?? Fn], s = t === "enter" ? n.enterPhysics : n.exitPhysics, o = n.background, i = o.willChange !== "";
1619
1628
  return {
1620
1629
  prepare: ({ from: r, to: l }) => {
1621
1630
  const c = t === "enter" ? l : r, a = t === "enter" ? r : l;
1622
1631
  return c.then((p) => {
1623
- p.style.willChange = Fn, p.style.backfaceVisibility = "hidden", p.style.contain = "layout paint", t === "exit" && (p.style.pointerEvents = "none", p.style.zIndex = "100");
1632
+ p.style.willChange = kn, p.style.backfaceVisibility = "hidden", p.style.contain = "layout paint", t === "exit" && (p.style.pointerEvents = "none", p.style.zIndex = "100");
1624
1633
  }), a.then((p) => {
1625
1634
  i && (p.style.willChange = o.willChange, p.style.backfaceVisibility = "hidden", p.style.contain = "layout paint"), t === "enter" && (p.style.pointerEvents = "none", p.style.zIndex = "-1");
1626
1635
  }), {};
@@ -1633,28 +1642,28 @@ const On = {
1633
1642
  r.style.pointerEvents = "", r.style.zIndex = "";
1634
1643
  };
1635
1644
  a.style.clipPath = `inset(${d.top}px 0 calc(100% - ${d.top + d.height}px) 0)`;
1636
- const u = t === "enter" ? (C, P) => ({
1645
+ const u = t === "enter" ? (E, P) => ({
1637
1646
  transform: `translate3d(0, ${P * d.height}px, 0)`
1638
- }) : (C) => ({
1639
- transform: `translate3d(0, ${C * d.height}px, 0)`
1640
- }), y = new g({
1647
+ }) : (E) => ({
1648
+ transform: `translate3d(0, ${E * d.height}px, 0)`
1649
+ }), y = new m({
1641
1650
  element: a,
1642
- integrator: m.from(s),
1651
+ integrator: g.from(s),
1643
1652
  style: u,
1644
1653
  onComplete: () => {
1645
1654
  a.style.willChange = "auto", a.style.backfaceVisibility = "", a.style.contain = "", a.style.clipPath = "", a.style.transform = "", f();
1646
1655
  }
1647
1656
  });
1648
1657
  if (!i)
1649
- return new E([y], { mode: "parallel" });
1658
+ return new C([y], { mode: "parallel" });
1650
1659
  const h = I(
1651
1660
  c,
1652
1661
  t === "enter" ? "from" : "to"
1653
1662
  ), w = h.left + h.width / 2, S = h.top + h.height / 2;
1654
1663
  p.style.clipPath = `inset(${h.top}px 0 calc(100% - ${h.top + h.height}px) 0)`, p.style.transformOrigin = `${w}px ${S}px`;
1655
- const b = t === "enter" ? (C, P) => o.enterStyle(C, P) : (C) => o.exitStyle(C), x = new g({
1664
+ const b = t === "enter" ? (E, P) => o.enterStyle(E, P) : (E) => o.exitStyle(E), x = new m({
1656
1665
  element: p,
1657
- integrator: m.from(s),
1666
+ integrator: g.from(s),
1658
1667
  style: b,
1659
1668
  // On `exit` the background is the incoming (`to`) node; on `enter` it is
1660
1669
  // the reused outgoing (`from`) node — in both cases its inline styles
@@ -1668,24 +1677,24 @@ const On = {
1668
1677
  p.style.willChange = "auto", p.style.backfaceVisibility = "", p.style.contain = "", p.style.clipPath = "", p.style.transformOrigin = "", p.style.transform = "", p.style.opacity = "";
1669
1678
  }
1670
1679
  });
1671
- return new E([y, x], { mode: "parallel" });
1680
+ return new C([y, x], { mode: "parallel" });
1672
1681
  }
1673
1682
  };
1674
1683
  };
1675
- function Yn(e) {
1684
+ function Ln(e) {
1676
1685
  return e === "scale" || e === "background-scale" ? "background-scale" : "static";
1677
1686
  }
1678
- function _s(e) {
1679
- const { enter: t, exit: n } = e, s = e.type, o = Yn(s);
1680
- return Dt(
1687
+ function Ds(e) {
1688
+ const { enter: t, exit: n } = e, s = e.type, o = Ln(s);
1689
+ return vt(
1681
1690
  { enter: t, exit: n },
1682
- (i) => kn({ direction: i, type: o })
1691
+ (i) => Yn({ direction: i, type: o })
1683
1692
  );
1684
1693
  }
1685
- const Ln = {
1694
+ const Hn = {
1686
1695
  spring: { stiffness: 170, damping: 22, doubleSpring: 0.8 }
1687
- }, Hn = (e = {}) => {
1688
- const t = e.direction ?? "left", n = e.physics ?? Ln, s = t === "left";
1696
+ }, Mn = (e = {}) => {
1697
+ const t = e.direction ?? "left", n = e.physics ?? Hn, s = t === "left";
1689
1698
  return {
1690
1699
  prepare: ({ from: o, to: i }) => (o.then((r) => {
1691
1700
  r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.pointerEvents = "none";
@@ -1694,9 +1703,9 @@ const Ln = {
1694
1703
  r.style.transform = `translate3d(${l}%, 0, 0)`, r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint";
1695
1704
  }), {}),
1696
1705
  animation: ({ from: o, to: i }) => {
1697
- const r = new g({
1706
+ const r = new m({
1698
1707
  element: o,
1699
- integrator: m.from(n),
1708
+ integrator: g.from(n),
1700
1709
  style: (c) => ({ transform: `translate3d(${s ? -100 * c : 100 * c}%, 0, 0)` }),
1701
1710
  // The outgoing node is the real Activity page and gets reused on the
1702
1711
  // next navigation, so reset every inline style we wrote to it (mirror
@@ -1704,44 +1713,44 @@ const Ln = {
1704
1713
  onComplete: () => {
1705
1714
  o.style.willChange = "auto", o.style.backfaceVisibility = "", o.style.contain = "", o.style.transform = "", o.style.pointerEvents = "";
1706
1715
  }
1707
- }), l = new g({
1716
+ }), l = new m({
1708
1717
  element: i,
1709
- integrator: m.from(n),
1718
+ integrator: g.from(n),
1710
1719
  style: (c, a) => ({ transform: `translate3d(${s ? a * 100 : a * -100}%, 0, 0)` }),
1711
1720
  onComplete: () => {
1712
1721
  i.style.willChange = "auto", i.style.backfaceVisibility = "", i.style.contain = "", i.style.transform = "";
1713
1722
  }
1714
1723
  });
1715
- return new E([r, l], { mode: "parallel" });
1724
+ return new C([r, l], { mode: "parallel" });
1716
1725
  }
1717
1726
  };
1718
1727
  };
1719
- function Ds(e) {
1728
+ function vs(e) {
1720
1729
  const { paths: t } = e;
1721
- return J(
1730
+ return G(
1722
1731
  t,
1723
1732
  { forward: "left", backward: "right" },
1724
- (n) => Hn({ direction: n })
1733
+ (n) => Mn({ direction: n })
1725
1734
  );
1726
1735
  }
1727
- const Mn = {
1736
+ const Un = {
1728
1737
  spring: { stiffness: 17, damping: 6 }
1729
- }, q = 20, k = 800, Un = (e = {}) => {
1730
- const t = e.physics ?? Mn;
1738
+ }, Z = 20, F = 800, Rn = (e = {}) => {
1739
+ const t = e.physics ?? Un;
1731
1740
  return {
1732
1741
  prepare: ({ from: n, to: s }) => (n.then((o) => {
1733
- o.style.willChange = "transform", o.style.backfaceVisibility = "hidden", o.style.contain = "layout paint", o.style.pointerEvents = "none", o.style.transform = `perspective(${k}px) rotateY(0deg) translate3d(0%, 0, 0)`;
1742
+ o.style.willChange = "transform", o.style.backfaceVisibility = "hidden", o.style.contain = "layout paint", o.style.pointerEvents = "none", o.style.transform = `perspective(${F}px) rotateY(0deg) translate3d(0%, 0, 0)`;
1734
1743
  }), s.then((o) => {
1735
- o.style.willChange = "transform", o.style.backfaceVisibility = "hidden", o.style.contain = "layout paint", o.style.transform = `perspective(${k}px) rotateY(${q}deg) translate3d(-100%, 0, 0)`;
1744
+ o.style.willChange = "transform", o.style.backfaceVisibility = "hidden", o.style.contain = "layout paint", o.style.transform = `perspective(${F}px) rotateY(${Z}deg) translate3d(-100%, 0, 0)`;
1736
1745
  }), {}),
1737
1746
  animation: ({ from: n, to: s }) => {
1738
- const o = new g({
1747
+ const o = new m({
1739
1748
  element: n,
1740
- integrator: m.from(t),
1749
+ integrator: g.from(t),
1741
1750
  style: (r) => {
1742
- const l = -r * q, c = r * 100;
1751
+ const l = -r * Z, c = r * 100;
1743
1752
  return {
1744
- transform: `perspective(${k}px) rotateY(${l}deg) translate3d(${c}%, 0, 0)`
1753
+ transform: `perspective(${F}px) rotateY(${l}deg) translate3d(${c}%, 0, 0)`
1745
1754
  };
1746
1755
  },
1747
1756
  // The outgoing node is reused (Activity/cacheComponents re-hide it),
@@ -1750,26 +1759,26 @@ const Mn = {
1750
1759
  onComplete: () => {
1751
1760
  n.style.transform = "", n.style.willChange = "auto", n.style.backfaceVisibility = "", n.style.contain = "", n.style.pointerEvents = "";
1752
1761
  }
1753
- }), i = new g({
1762
+ }), i = new m({
1754
1763
  element: s,
1755
- integrator: m.from(t),
1764
+ integrator: g.from(t),
1756
1765
  style: (r, l) => {
1757
- const c = l * q, a = -l * 100;
1766
+ const c = l * Z, a = -l * 100;
1758
1767
  return {
1759
- transform: `perspective(${k}px) rotateY(${c}deg) translate3d(${a}%, 0, 0)`
1768
+ transform: `perspective(${F}px) rotateY(${c}deg) translate3d(${a}%, 0, 0)`
1760
1769
  };
1761
1770
  },
1762
1771
  onComplete: () => {
1763
1772
  s.style.transform = "", s.style.willChange = "auto", s.style.backfaceVisibility = "", s.style.contain = "";
1764
1773
  }
1765
1774
  });
1766
- return new E([o, i], { mode: "sequence" });
1775
+ return new C([o, i], { mode: "sequence" });
1767
1776
  }
1768
1777
  };
1769
1778
  };
1770
- function vs(e) {
1779
+ function Is(e) {
1771
1780
  const { paths: t } = e;
1772
- return v(t, () => Un());
1781
+ return v(t, () => Rn());
1773
1782
  }
1774
1783
  function Vn({
1775
1784
  enterRect: e,
@@ -1817,30 +1826,30 @@ const Nn = {
1817
1826
  damping: 33,
1818
1827
  doubleSpring: 1
1819
1828
  }
1820
- }, It = 0.12, Xn = 18;
1821
- function Rn() {
1829
+ }, Tt = 0.12, Xn = 18;
1830
+ function Bn() {
1822
1831
  return {
1823
1832
  transformOrigin: "50% 50%",
1824
1833
  animate: (e) => {
1825
1834
  const t = 1 - e;
1826
1835
  return {
1827
- transform: `scale(${1 - It * t})`
1836
+ transform: `scale(${1 - Tt * t})`
1828
1837
  };
1829
1838
  }
1830
1839
  };
1831
1840
  }
1832
- function Bn() {
1841
+ function Wn() {
1833
1842
  return {
1834
1843
  transformOrigin: "50% 50%",
1835
1844
  animate: (e) => {
1836
1845
  const t = 1 - e;
1837
1846
  return {
1838
- transform: `scale(${1 - It * t})`
1847
+ transform: `scale(${1 - Tt * t})`
1839
1848
  };
1840
1849
  }
1841
1850
  };
1842
1851
  }
1843
- const j = {
1852
+ const q = {
1844
1853
  willChange: "backdrop-filter",
1845
1854
  initialStyle: {
1846
1855
  position: "absolute",
@@ -1864,45 +1873,45 @@ const j = {
1864
1873
  };
1865
1874
  }
1866
1875
  };
1867
- class Wn {
1876
+ class Zn {
1868
1877
  constructor() {
1869
1878
  $(this, "physics", Nn);
1870
1879
  }
1871
1880
  contribute(t) {
1872
- const { from: n, to: s, resolved: o, physics: i } = t, r = o.mode === "enter", l = r ? n : s, c = r ? Rn() : Bn();
1881
+ const { from: n, to: s, resolved: o, physics: i } = t, r = o.mode === "enter", l = r ? n : s, c = r ? Bn() : Wn();
1873
1882
  return c && (l.style.transformOrigin = c.transformOrigin), [
1874
- new g({
1883
+ new m({
1875
1884
  element: l,
1876
- integrator: m.from(i),
1885
+ integrator: g.from(i),
1877
1886
  style: r ? (a, p) => c.animate(p) : (a) => c.animate(a)
1878
1887
  })
1879
1888
  ];
1880
1889
  }
1881
1890
  }
1882
- class Zn {
1891
+ class qn {
1883
1892
  prepare(t) {
1884
1893
  const n = t.createElement("zoom-overlay");
1885
- return Object.assign(n.style, j.initialStyle), n.style.willChange = j.willChange, t.context.positionedParent.appendChild(n), { overlay: n };
1894
+ return Object.assign(n.style, q.initialStyle), n.style.willChange = q.willChange, t.context.positionedParent.appendChild(n), { overlay: n };
1886
1895
  }
1887
1896
  contribute(t) {
1888
1897
  const n = t.extras.overlay;
1889
1898
  return n ? (n.style.zIndex = t.resolved.mode === "enter" ? "-1" : "1", [
1890
- new g({
1899
+ new m({
1891
1900
  element: n,
1892
- integrator: m.from(t.physics),
1893
- style: (s) => j.style(t.resolved.mode, s)
1901
+ integrator: g.from(t.physics),
1902
+ style: (s) => q.style(t.resolved.mode, s)
1894
1903
  })
1895
1904
  ]) : [];
1896
1905
  }
1897
1906
  }
1898
- const qn = {
1907
+ const jn = {
1899
1908
  spring: {
1900
1909
  stiffness: 430,
1901
1910
  damping: 33,
1902
1911
  doubleSpring: 1
1903
1912
  }
1904
1913
  };
1905
- function jn({
1914
+ function Kn({
1906
1915
  enterRect: e,
1907
1916
  exitRect: t,
1908
1917
  scrollOffset: n
@@ -1918,7 +1927,7 @@ function jn({
1918
1927
  }
1919
1928
  };
1920
1929
  }
1921
- function Kn({
1930
+ function Gn({
1922
1931
  enterRect: e,
1923
1932
  exitRect: t,
1924
1933
  scrollOffset: n
@@ -1934,52 +1943,52 @@ function Kn({
1934
1943
  }
1935
1944
  };
1936
1945
  }
1937
- class Gn {
1946
+ class Jn {
1938
1947
  constructor() {
1939
- $(this, "physics", qn);
1948
+ $(this, "physics", jn);
1940
1949
  }
1941
1950
  contribute(t) {
1942
- const { from: n, to: s, resolved: o, input: i, physics: r } = t, l = o.mode === "enter", c = l ? n : s, a = l ? jn(i) : Kn(i);
1951
+ const { from: n, to: s, resolved: o, input: i, physics: r } = t, l = o.mode === "enter", c = l ? n : s, a = l ? Kn(i) : Gn(i);
1943
1952
  return a && (c.style.transformOrigin = a.transformOrigin), [
1944
- new g({
1953
+ new m({
1945
1954
  element: c,
1946
- integrator: m.from(r),
1955
+ integrator: g.from(r),
1947
1956
  style: l ? (p, d) => a.animate(d) : (p) => a.animate(p)
1948
1957
  })
1949
1958
  ];
1950
1959
  }
1951
1960
  }
1952
- const Jn = {
1961
+ const Qn = {
1953
1962
  spring: {
1954
1963
  stiffness: 530,
1955
1964
  damping: 34,
1956
1965
  doubleSpring: 1
1957
1966
  }
1958
1967
  };
1959
- class Qn {
1968
+ class ts {
1960
1969
  constructor() {
1961
- $(this, "physics", Jn);
1970
+ $(this, "physics", Qn);
1962
1971
  }
1963
1972
  contribute(t) {
1964
1973
  return [];
1965
1974
  }
1966
1975
  }
1967
- const ts = {
1968
- expand: () => new Gn(),
1969
- static: () => new Qn(),
1970
- blur: () => new Wn()
1976
+ const es = {
1977
+ expand: () => new Jn(),
1978
+ static: () => new ts(),
1979
+ blur: () => new Zn()
1971
1980
  };
1972
- function es(e) {
1973
- return ts[e]();
1981
+ function ns(e) {
1982
+ return es[e]();
1974
1983
  }
1975
- const K = "data-zoom-enter-key", Et = "data-zoom-exit-key", ns = "data-zoom-radius";
1976
- function Ct(e) {
1977
- const t = e.getAttribute(ns);
1984
+ const j = "data-zoom-enter-key", Et = "data-zoom-exit-key", ss = "data-zoom-radius";
1985
+ function xt(e) {
1986
+ const t = e.getAttribute(ss);
1978
1987
  if (!t) return 0;
1979
1988
  const n = parseFloat(t);
1980
1989
  return Number.isFinite(n) && n > 0 ? n : 0;
1981
1990
  }
1982
- function ss(e, t) {
1991
+ function os(e, t) {
1983
1992
  const n = [];
1984
1993
  let s = t;
1985
1994
  for (; s && s !== e; ) {
@@ -1991,50 +2000,50 @@ function ss(e, t) {
1991
2000
  }
1992
2001
  return n;
1993
2002
  }
1994
- function xt(e) {
1995
- const t = e.querySelectorAll(`[${K}]`);
2003
+ function Pt(e) {
2004
+ const t = e.querySelectorAll(`[${j}]`);
1996
2005
  return t.length !== 1 ? null : t[0];
1997
2006
  }
1998
- function Pt(e, t) {
2007
+ function _t(e, t) {
1999
2008
  const n = e.querySelectorAll(`[${Et}]`);
2000
2009
  for (const s of n)
2001
2010
  if (s.getAttribute(Et) === t)
2002
2011
  return s;
2003
2012
  return null;
2004
2013
  }
2005
- function os(e, t) {
2006
- const n = xt(e), s = xt(t);
2014
+ function is(e, t) {
2015
+ const n = Pt(e), s = Pt(t);
2007
2016
  if (!n && s) {
2008
- const o = s.getAttribute(K);
2017
+ const o = s.getAttribute(j);
2009
2018
  if (!o) return null;
2010
- const i = Pt(e, o);
2019
+ const i = _t(e, o);
2011
2020
  return i ? { mode: "enter", enterEl: s, exitEl: i } : null;
2012
2021
  }
2013
2022
  if (n && !s) {
2014
- const o = n.getAttribute(K);
2023
+ const o = n.getAttribute(j);
2015
2024
  if (!o) return null;
2016
- const i = Pt(t, o);
2025
+ const i = _t(t, o);
2017
2026
  return i ? { mode: "exit", enterEl: n, exitEl: i } : null;
2018
2027
  }
2019
2028
  return null;
2020
2029
  }
2021
- function is(e, t, n, s) {
2030
+ function rs(e, t, n, s) {
2022
2031
  return {
2023
- enterRect: A(
2032
+ enterRect: tt(
2024
2033
  e.mode === "enter" ? n : t,
2025
2034
  e.enterEl
2026
2035
  ),
2027
- exitRect: A(
2036
+ exitRect: tt(
2028
2037
  e.mode === "enter" ? t : n,
2029
2038
  e.exitEl
2030
2039
  ),
2031
2040
  pageRect: e.mode === "enter" ? n.getBoundingClientRect() : t.getBoundingClientRect(),
2032
2041
  scrollOffset: s,
2033
- enterRadius: Ct(e.enterEl),
2034
- exitRadius: Ct(e.exitEl)
2042
+ enterRadius: xt(e.enterEl),
2043
+ exitRadius: xt(e.exitEl)
2035
2044
  };
2036
2045
  }
2037
- class rs {
2046
+ class as {
2038
2047
  prepare(t) {
2039
2048
  t.from.then((n) => {
2040
2049
  n.style.willChange = "transform, clip-path, opacity", n.style.backfaceVisibility = "hidden", n.style.contain = "layout paint";
@@ -2047,9 +2056,9 @@ class rs {
2047
2056
  return n.style.zIndex = f, l(() => {
2048
2057
  p.style.willChange = "auto", p.style.backfaceVisibility = "", p.style.transformOrigin = "", p.style.contain = "", n.style.zIndex = u, n.style.willChange = "auto", n.style.backfaceVisibility = "", n.style.transformOrigin = "", n.style.contain = "", n.style.transform = "", n.style.clipPath = "";
2049
2058
  }), [
2050
- new g({
2059
+ new m({
2051
2060
  element: p,
2052
- integrator: m.from(r),
2061
+ integrator: g.from(r),
2053
2062
  // Enter: tile expands as `t` (0 → 1). Exit: tile shrinks as `u` —
2054
2063
  // the legacy convention from v5's outAnim path. Either way, feed
2055
2064
  // the progress that matches the tileConfig's authored direction.
@@ -2058,9 +2067,9 @@ class rs {
2058
2067
  ];
2059
2068
  }
2060
2069
  }
2061
- class as {
2070
+ class ls {
2062
2071
  contribute(t) {
2063
- const { resolved: n, physics: s, from: o, to: i, onComplete: r } = t, l = n.mode === "enter" ? i : o, c = ss(l, n.enterEl);
2072
+ const { resolved: n, physics: s, from: o, to: i, onComplete: r } = t, l = n.mode === "enter" ? i : o, c = os(l, n.enterEl);
2064
2073
  if (c.length === 0) return [];
2065
2074
  const a = c.map((p) => p.style.opacity);
2066
2075
  if (n.mode === "enter")
@@ -2071,9 +2080,9 @@ class as {
2071
2080
  d && (d.style.opacity = a[p] ?? "");
2072
2081
  }
2073
2082
  }), c.map(
2074
- (p) => new g({
2083
+ (p) => new m({
2075
2084
  element: p,
2076
- integrator: m.from(s),
2085
+ integrator: g.from(s),
2077
2086
  style: (d, f) => ({
2078
2087
  opacity: n.mode === "enter" ? d : f
2079
2088
  })
@@ -2081,35 +2090,35 @@ class as {
2081
2090
  );
2082
2091
  }
2083
2092
  }
2084
- class Tt {
2093
+ class Ot {
2085
2094
  contribute() {
2086
2095
  return [];
2087
2096
  }
2088
2097
  }
2089
- const ls = {
2090
- default: () => new Tt(),
2091
- fade: () => new as()
2098
+ const cs = {
2099
+ default: () => new Ot(),
2100
+ fade: () => new ls()
2092
2101
  };
2093
- function cs(e) {
2094
- return ls[e]();
2102
+ function ps(e) {
2103
+ return cs[e]();
2095
2104
  }
2096
- class ps extends Tt {
2105
+ class ds extends Ot {
2097
2106
  }
2098
- function ds(e) {
2099
- const t = es(e.type);
2107
+ function fs(e) {
2108
+ const t = ns(e.type);
2100
2109
  return { strategies: [
2101
- new rs(),
2110
+ new as(),
2102
2111
  t,
2103
- cs(e.variant),
2104
- new ps(),
2112
+ ps(e.variant),
2113
+ new ds(),
2105
2114
  // Overlay is intrinsically tied to backdrop-filter-driven types. Today
2106
2115
  // that's only `blur`; the table-driven factory above owns the mapping
2107
2116
  // so this conditional is the single line that knows the relationship.
2108
- ...e.type === "blur" ? [new Zn()] : []
2117
+ ...e.type === "blur" ? [new qn()] : []
2109
2118
  ], physics: t.physics };
2110
2119
  }
2111
- const fs = (e) => {
2112
- const { strategies: t, physics: n } = ds(e);
2120
+ const ys = (e) => {
2121
+ const { strategies: t, physics: n } = fs(e);
2113
2122
  return {
2114
2123
  prepare: (s) => {
2115
2124
  const o = {
@@ -2129,10 +2138,10 @@ const fs = (e) => {
2129
2138
  return i;
2130
2139
  },
2131
2140
  animation: ({ from: s, to: o, context: i, ...r }) => {
2132
- const l = os(s, o);
2141
+ const l = is(s, o);
2133
2142
  if (!l)
2134
- return new E([], { mode: "parallel" });
2135
- const c = is(l, s, o, i.scrollOffset), a = [], d = {
2143
+ return new C([], { mode: "parallel" });
2144
+ const c = rs(l, s, o, i.scrollOffset), a = [], d = {
2136
2145
  from: s,
2137
2146
  to: o,
2138
2147
  resolved: l,
@@ -2158,36 +2167,43 @@ const fs = (e) => {
2158
2167
  }
2159
2168
  };
2160
2169
  }
2161
- return new E(f, { mode: "parallel" });
2170
+ for (const y of f) {
2171
+ if (!(y instanceof m)) continue;
2172
+ const h = y.onComplete;
2173
+ y.onComplete = () => {
2174
+ h == null || h(), y.releaseFill();
2175
+ };
2176
+ }
2177
+ return new C(f, { mode: "parallel" });
2162
2178
  }
2163
2179
  };
2164
2180
  };
2165
- function ys(e) {
2181
+ function hs(e) {
2166
2182
  const t = e.type ?? "static", n = e.variant ?? (e.fade ? "fade" : "default");
2167
2183
  return { type: t, variant: n };
2168
2184
  }
2169
- function Is(e) {
2170
- const t = ys(e);
2185
+ function Ts(e) {
2186
+ const t = hs(e);
2171
2187
  return v(
2172
2188
  e.paths,
2173
- () => fs(t)
2189
+ () => ys(t)
2174
2190
  );
2175
2191
  }
2176
2192
  export {
2177
- As as Animation,
2178
- E as MultiAnimation,
2179
- g as WebAnimation,
2180
- gs as axis,
2181
- ws as blind,
2182
- Ss as drill,
2183
- bs as fade,
2184
- $s as film,
2193
+ Fs as Animation,
2194
+ C as MultiAnimation,
2195
+ m as WebAnimation,
2196
+ ws as axis,
2197
+ Ss as blind,
2198
+ bs as drill,
2199
+ $s as fade,
2200
+ Cs as film,
2185
2201
  Es as hero,
2186
- Cs as jaemin,
2187
- xs as rotate,
2188
- Ps as scroll,
2189
- _s as sheet,
2190
- Ds as slide,
2191
- vs as strip,
2192
- Is as zoom
2202
+ xs as jaemin,
2203
+ Ps as rotate,
2204
+ _s as scroll,
2205
+ Ds as sheet,
2206
+ vs as slide,
2207
+ Is as strip,
2208
+ Ts as zoom
2193
2209
  };