@ssgoi/core 7.1.3-beta.0 → 7.1.3-beta.1

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,12 +1,12 @@
1
- var Se = Object.defineProperty;
2
- var Ce = (t, e, n) => e in t ? Se(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var R = (t, e, n) => Ce(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { d as I, w as A } from "./index-B_K3Vnj-.js";
1
+ var Ce = Object.defineProperty;
2
+ var Ee = (t, e, n) => e in t ? Ce(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var R = (t, e, n) => Ee(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { d as I, w as _ } from "./index-B_K3Vnj-.js";
5
5
  import { W as w, M as P } from "./multi-animation-Du9W3ZS_.js";
6
- import { A as Zi } from "./multi-animation-Du9W3ZS_.js";
7
- import { P as xe, I as C, S as yt, a as Ee, b as mt, s as $e, D as Pe } from "./provider-Cea0Pfm1.js";
8
- import { F as ve, a as Re, p as J, S as Ie } from "./page-motion-MEazegOU.js";
9
- class Ae {
6
+ import { A as Ji } from "./multi-animation-Du9W3ZS_.js";
7
+ import { P as $e, I as C, S as mt, a as Pe, b as gt, s as ve, D as Ae } from "./provider-Cea0Pfm1.js";
8
+ import { F as Re, a as Ie, p as et, S as _e } from "./page-motion-MEazegOU.js";
9
+ class Oe {
10
10
  constructor(e) {
11
11
  R(this, "durationSec");
12
12
  this.durationSec = Math.max(1 / 60, e.durationSec);
@@ -18,10 +18,10 @@ class Ae {
18
18
  return (r > 0 ? l >= n : l <= n) ? { position: n, velocity: 0 } : { position: l, velocity: r * c };
19
19
  }
20
20
  isSettled(e, n) {
21
- return Math.abs(e.position - n) < xe;
21
+ return Math.abs(e.position - n) < $e;
22
22
  }
23
23
  }
24
- function Et(t, e) {
24
+ function $t(t, e) {
25
25
  function n(r) {
26
26
  let c = 0, s = 0;
27
27
  const l = r.offsetWidth, a = r.offsetHeight;
@@ -38,7 +38,7 @@ function Et(t, e) {
38
38
  i.height
39
39
  );
40
40
  }
41
- function V(t, e) {
41
+ function L(t, e) {
42
42
  const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), i = (s, l) => l > 0 && Math.abs(s - l) > 0.5 ? s / l : 1, r = i(n.width, t.offsetWidth), c = i(n.height, t.offsetHeight);
43
43
  return new DOMRect(
44
44
  (o.left - n.left) / r,
@@ -47,8 +47,8 @@ function V(t, e) {
47
47
  o.height / c
48
48
  );
49
49
  }
50
- function Y(t, e) {
51
- const { scrollingElement: n, positionedParent: o } = t, i = n !== o && n.contains(o) ? Et(n, o).top : 0;
50
+ function H(t, e) {
51
+ const { scrollingElement: n, positionedParent: o } = t, i = n !== o && n.contains(o) ? $t(n, o).top : 0;
52
52
  return {
53
53
  top: t[e].scroll.y,
54
54
  left: 0,
@@ -56,8 +56,8 @@ function Y(t, e) {
56
56
  height: n.clientHeight - i
57
57
  };
58
58
  }
59
- function Qt(t, e) {
60
- const { scrollingElement: n, positionedParent: o } = t, i = n !== o && n.contains(o) ? Et(n, o).top : 0;
59
+ function te(t, e) {
60
+ const { scrollingElement: n, positionedParent: o } = t, i = n !== o && n.contains(o) ? $t(n, o).top : 0;
61
61
  return {
62
62
  top: t[e].scroll.y - i,
63
63
  height: n.clientHeight
@@ -70,7 +70,7 @@ const Rt = 8, It = {
70
70
  doubleSpring: 1.2
71
71
  }
72
72
  };
73
- function _e({
73
+ function Fe({
74
74
  direction: t
75
75
  }) {
76
76
  const e = t === "forward" ? Rt : -Rt;
@@ -95,25 +95,25 @@ function _e({
95
95
  }
96
96
  };
97
97
  }
98
- function Oe() {
98
+ function ke() {
99
99
  return {
100
100
  outPhysics: It,
101
101
  inPhysics: It,
102
102
  // Both sides run together — the cross-fade is the whole point of the
103
103
  // snappy feel. (fluid's sibling uses staggered fade-through.)
104
104
  composition: { mode: "parallel", startAt: [0, 0] },
105
- build: _e
105
+ build: Fe
106
106
  };
107
107
  }
108
- const At = 30, Fe = {
108
+ const _t = 30, Te = {
109
109
  inertia: { acceleration: 150, resistance: 1.5, restDelta: 0.1 }
110
- }, Te = {
110
+ }, Me = {
111
111
  spring: { stiffness: 180, damping: 34, restDelta: 0.1, restSpeed: 0.1 }
112
112
  };
113
- function ke({
113
+ function De({
114
114
  direction: t
115
115
  }) {
116
- const e = t === "forward" ? 1 : -1, n = -At * e, o = At * e;
116
+ const e = t === "forward" ? 1 : -1, n = -_t * e, o = _t * e;
117
117
  return {
118
118
  out: {
119
119
  willChange: "transform, opacity",
@@ -136,29 +136,29 @@ function ke({
136
136
  }
137
137
  };
138
138
  }
139
- function Me() {
139
+ function Ye() {
140
140
  return {
141
- outPhysics: Fe,
142
- inPhysics: Te,
141
+ outPhysics: Te,
142
+ inPhysics: Me,
143
143
  // Phased motion: outgoing falls away first under inertia, then incoming
144
144
  // springs in. The fade-through shape comes from the integrator curves
145
145
  // plus the sequence handoff, not from FADE_SPLIT inside animate(t).
146
146
  composition: { mode: "sequence" },
147
- build: ke
147
+ build: De
148
148
  };
149
149
  }
150
- const De = {
151
- snappy: Oe(),
152
- fluid: Me()
153
- }, _t = 8, Ye = {
150
+ const Le = {
151
+ snappy: ke(),
152
+ fluid: Ye()
153
+ }, Ot = 8, He = {
154
154
  inertia: { acceleration: 150, resistance: 1.5, restDelta: 0.1 }
155
- }, Le = {
155
+ }, Ne = {
156
156
  spring: { stiffness: 180, damping: 34, restDelta: 0.1, restSpeed: 0.1 }
157
157
  };
158
- function He({
158
+ function ze({
159
159
  direction: t
160
160
  }) {
161
- const e = t === "forward" ? 1 : -1, n = -_t * e, o = _t * e;
161
+ const e = t === "forward" ? 1 : -1, n = -Ot * e, o = Ot * e;
162
162
  return {
163
163
  out: {
164
164
  willChange: "transform, opacity",
@@ -181,17 +181,17 @@ function He({
181
181
  }
182
182
  };
183
183
  }
184
- function Ne() {
184
+ function We() {
185
185
  return {
186
- outPhysics: Ye,
187
- inPhysics: Le,
186
+ outPhysics: He,
187
+ inPhysics: Ne,
188
188
  composition: { mode: "sequence" },
189
- build: He
189
+ build: ze
190
190
  };
191
191
  }
192
- const ze = 40, Ve = {
192
+ const Xe = 40, Ve = {
193
193
  inertia: { acceleration: 150, resistance: 1.5, restDelta: 0.1 }
194
- }, Xe = {
194
+ }, Be = {
195
195
  spring: {
196
196
  stiffness: 400,
197
197
  damping: 30,
@@ -200,8 +200,8 @@ const ze = 40, Ve = {
200
200
  restSpeed: 0.1
201
201
  }
202
202
  };
203
- function We(t) {
204
- const e = ze;
203
+ function Ue(t) {
204
+ const e = Xe;
205
205
  return {
206
206
  out: {
207
207
  willChange: "opacity",
@@ -223,32 +223,32 @@ function We(t) {
223
223
  }
224
224
  };
225
225
  }
226
- function Ue() {
226
+ function Ze() {
227
227
  return {
228
228
  outPhysics: Ve,
229
- inPhysics: Xe,
229
+ inPhysics: Be,
230
230
  composition: { mode: "parallel", startAt: [0, 0] },
231
- build: We
231
+ build: Ue
232
232
  };
233
233
  }
234
- const Ot = Ne(), Be = {
235
- snappy: Ot,
236
- directional: Ot,
237
- "non-directional": Ue()
238
- }, Ft = {
234
+ const Ft = We(), je = {
235
+ snappy: Ft,
236
+ directional: Ft,
237
+ "non-directional": Ze()
238
+ }, kt = {
239
239
  spring: { stiffness: 280, damping: 30, restDelta: 0.1, restSpeed: 0.1 }
240
- }, et = 0.1, nt = 1 / 3, Tt = (t) => Math.max(0, Math.min(1, t));
241
- function Ze({
240
+ }, nt = 0.1, ot = 1 / 3, Tt = (t) => Math.max(0, Math.min(1, t));
241
+ function Ge({
242
242
  direction: t
243
243
  }) {
244
- const e = t === "forward" ? 1 : -1, n = 1 - e * et;
244
+ const e = t === "forward" ? 1 : -1, n = 1 - e * nt;
245
245
  return {
246
246
  out: {
247
247
  willChange: "transform, opacity",
248
248
  startStyle: {},
249
249
  animate: (o) => ({
250
- transform: `scale(${1 + e * o * et})`,
251
- opacity: `${Tt(1 - o / nt)}`
250
+ transform: `scale(${1 + e * o * nt})`,
251
+ opacity: `${Tt(1 - o / ot)}`
252
252
  })
253
253
  },
254
254
  in: {
@@ -258,108 +258,108 @@ function Ze({
258
258
  opacity: "0"
259
259
  },
260
260
  animate: (o) => ({
261
- transform: `scale(${n + e * o * et})`,
262
- opacity: `${Tt((o - nt) / (1 - nt))}`
261
+ transform: `scale(${n + e * o * nt})`,
262
+ opacity: `${Tt((o - ot) / (1 - ot))}`
263
263
  })
264
264
  }
265
265
  };
266
266
  }
267
- function Ge() {
267
+ function qe() {
268
268
  return {
269
- outPhysics: Ft,
270
- inPhysics: Ft,
269
+ outPhysics: kt,
270
+ inPhysics: kt,
271
271
  // Scale must move together on both sides; fade-through is encoded inside
272
272
  // each tick (piecewise), not via composition staggering — so parallel.
273
273
  composition: { mode: "parallel" },
274
- build: Ze
274
+ build: Ge
275
275
  };
276
276
  }
277
- const kt = {
277
+ const Mt = {
278
278
  spring: { stiffness: 280, damping: 30, restDelta: 0.1, restSpeed: 0.1 }
279
- }, ot = 0.1, it = 1 / 3, Mt = (t) => Math.max(0, Math.min(1, t));
280
- function je() {
279
+ }, it = 0.1, rt = 1 / 3, Dt = (t) => Math.max(0, Math.min(1, t));
280
+ function Ke() {
281
281
  return {
282
282
  out: {
283
283
  willChange: "opacity",
284
284
  startStyle: {},
285
285
  animate: (t) => ({
286
- opacity: `${Mt(1 - t / it)}`
286
+ opacity: `${Dt(1 - t / rt)}`
287
287
  })
288
288
  },
289
289
  in: {
290
290
  willChange: "transform, opacity",
291
291
  startStyle: {
292
- transform: `scale(${1 - ot})`,
292
+ transform: `scale(${1 - it})`,
293
293
  opacity: "0"
294
294
  },
295
295
  animate: (t) => ({
296
- transform: `scale(${1 - ot + t * ot})`,
297
- opacity: `${Mt((t - it) / (1 - it))}`
296
+ transform: `scale(${1 - it + t * it})`,
297
+ opacity: `${Dt((t - rt) / (1 - rt))}`
298
298
  })
299
299
  }
300
300
  };
301
301
  }
302
- function qe() {
302
+ function Je() {
303
303
  return {
304
- outPhysics: kt,
305
- inPhysics: kt,
304
+ outPhysics: Mt,
305
+ inPhysics: Mt,
306
306
  composition: { mode: "parallel" },
307
- build: je
307
+ build: Ke
308
308
  };
309
309
  }
310
- const Dt = Ge(), Ke = {
311
- snappy: Dt,
312
- directional: Dt,
313
- "non-directional": qe()
314
- }, Je = {
315
- x: De,
316
- y: Be,
317
- z: Ke
310
+ const Yt = qe(), Qe = {
311
+ snappy: Yt,
312
+ directional: Yt,
313
+ "non-directional": Je()
314
+ }, tn = {
315
+ x: Le,
316
+ y: je,
317
+ z: Qe
318
318
  };
319
- function Qe(t, e) {
320
- const n = Je[t];
319
+ function en(t, e) {
320
+ const n = tn[t];
321
321
  return n[e] ?? n.snappy;
322
322
  }
323
- const tn = "x", en = "snappy";
324
- function Yt(t, e) {
323
+ const nn = "x", on = "snappy";
324
+ function Lt(t, e) {
325
325
  t.style.willChange = e.willChange, t.style.backfaceVisibility = "hidden", t.style.contain = "layout paint";
326
326
  for (const [n, o] of Object.entries(e.startStyle))
327
327
  t.style[n] = o;
328
328
  }
329
- function te(t) {
329
+ function ee(t) {
330
330
  t.style.willChange = "auto", t.style.backfaceVisibility = "", t.style.contain = "", t.style.transform = "", t.style.opacity = "", t.style.clipPath = "";
331
331
  }
332
- function nn(t) {
333
- te(t), t.style.pointerEvents = "";
332
+ function rn(t) {
333
+ ee(t), t.style.pointerEvents = "";
334
334
  }
335
- const on = (t = {}) => {
336
- const e = t.type ?? tn, n = t.feel ?? en, o = Qe(e, n), i = (r) => {
335
+ const sn = (t = {}) => {
336
+ const e = t.type ?? nn, n = t.feel ?? on, o = en(e, n), i = (r) => {
337
337
  const c = o.build({ direction: r });
338
338
  return {
339
339
  prepare: ({ from: s, to: l }) => (s.then((a) => {
340
- Yt(a, c.out), a.style.pointerEvents = "none";
340
+ Lt(a, c.out), a.style.pointerEvents = "none";
341
341
  }), l.then((a) => {
342
- Yt(a, c.in);
342
+ Lt(a, c.in);
343
343
  }), {}),
344
344
  animation: ({ from: s, to: l, context: a }) => {
345
345
  if (e === "z") {
346
- const u = Y(a, "from"), f = Y(a, "to");
347
- s.style.clipPath = `inset(${u.top}px 0 calc(100% - ${u.top + u.height}px) 0)`, l.style.clipPath = `inset(${f.top}px 0 calc(100% - ${f.top + f.height}px) 0)`;
346
+ const m = H(a, "from"), u = H(a, "to");
347
+ s.style.clipPath = `inset(${m.top}px 0 calc(100% - ${m.top + m.height}px) 0)`, l.style.clipPath = `inset(${u.top}px 0 calc(100% - ${u.top + u.height}px) 0)`;
348
348
  }
349
349
  const p = new w({
350
350
  element: s,
351
351
  integrator: C.from(o.outPhysics),
352
- style: (u) => c.out.animate(u),
352
+ style: (m) => c.out.animate(m),
353
353
  // Restore the reused from node's inline styles on complete. This
354
354
  // covers willChange/backfaceVisibility/contain/transform/opacity (from
355
355
  // applyStartStyle + the WAAPI final frame), pointerEvents (set in
356
356
  // prepare), and clipPath (set above for z; harmless no-op otherwise).
357
- onComplete: () => nn(s)
357
+ onComplete: () => rn(s)
358
358
  }), d = new w({
359
359
  element: l,
360
360
  integrator: C.from(o.inPhysics),
361
- style: (u) => c.in.animate(u),
362
- onComplete: () => te(l)
361
+ style: (m) => c.in.animate(m),
362
+ onComplete: () => ee(l)
363
363
  });
364
364
  return new P(
365
365
  { out: p, in: d },
@@ -373,20 +373,20 @@ const on = (t = {}) => {
373
373
  backward: i("backward")
374
374
  });
375
375
  };
376
- function rn(t, e, n) {
376
+ function an(t, e, n) {
377
377
  return t === "y" ? e === "non-directional" ? "non-directional" : "directional" : t !== "x" || e === "snappy" || n === "snappy" ? "snappy" : "fluid";
378
378
  }
379
- function Pi(t = {}, e = {}) {
380
- const n = t.type ?? "x", o = t.variant, i = t.feel, r = rn(n, o, i);
381
- return A(
382
- on({ type: n, feel: r }),
379
+ function _i(t = {}, e = {}) {
380
+ const n = t.type ?? "x", o = t.variant, i = t.feel, r = an(n, o, i);
381
+ return _(
382
+ sn({ type: n, feel: r }),
383
383
  e.override
384
384
  );
385
385
  }
386
- const sn = {
386
+ const cn = {
387
387
  spring: { stiffness: 200, damping: 22 }
388
- }, an = 10, cn = "horizontal", ln = "#000000";
389
- function Lt(t, e, n, o, i, r) {
388
+ }, ln = 10, pn = "horizontal", dn = "#000000";
389
+ function Ht(t, e, n, o, i, r) {
390
390
  window.getComputedStyle(t).position === "static" && (t.style.position = "relative");
391
391
  const s = document.createElement("div");
392
392
  s.style.cssText = `
@@ -433,12 +433,12 @@ function Lt(t, e, n, o, i, r) {
433
433
  }
434
434
  return t.appendChild(s), { container: s, blinds: l };
435
435
  }
436
- const pn = (t = {}) => {
437
- const e = t.blindCount ?? an, n = t.direction ?? cn, o = t.blindColor ?? ln, i = t.physics ?? sn, r = {
436
+ const un = (t = {}) => {
437
+ const e = t.blindCount ?? ln, n = t.direction ?? pn, o = t.blindColor ?? dn, i = t.physics ?? cn, r = {
438
438
  prepare: async ({ from: c, to: s }) => {
439
439
  const l = await c, a = await s;
440
440
  l.style.zIndex = "1000";
441
- const p = Lt(
441
+ const p = Ht(
442
442
  l,
443
443
  e,
444
444
  n,
@@ -447,7 +447,7 @@ const pn = (t = {}) => {
447
447
  "left"
448
448
  );
449
449
  a.style.position = "relative", a.style.zIndex = "0";
450
- const d = Lt(
450
+ const d = Ht(
451
451
  a,
452
452
  e,
453
453
  n,
@@ -471,38 +471,38 @@ const pn = (t = {}) => {
471
471
  toContainer: p
472
472
  }) => {
473
473
  const d = s.map(
474
- (y) => new w({
475
- element: y,
474
+ (h) => new w({
475
+ element: h,
476
476
  integrator: C.from(i),
477
- style: (h) => ({
478
- transform: n === "horizontal" ? `scaleX(${h})` : `scaleY(${h})`
477
+ style: (f) => ({
478
+ transform: n === "horizontal" ? `scaleX(${f})` : `scaleY(${f})`
479
479
  })
480
480
  })
481
- ), u = a.map(
482
- (y, h) => new w({
483
- element: y,
481
+ ), m = a.map(
482
+ (h, f) => new w({
483
+ element: h,
484
484
  integrator: C.from(i),
485
485
  style: (b, g) => ({
486
486
  transform: n === "horizontal" ? `scaleX(${g})` : `scaleY(${g})`
487
487
  }),
488
- onComplete: h === a.length - 1 ? () => {
488
+ onComplete: f === a.length - 1 ? () => {
489
489
  p.remove(), l.remove(), c.style.zIndex = "", c.style.position = "";
490
490
  } : void 0
491
491
  })
492
- ), f = new P(d, { mode: "parallel" }), m = new P(u, { mode: "parallel" });
492
+ ), u = new P(d, { mode: "parallel" }), y = new P(m, { mode: "parallel" });
493
493
  return new P(
494
- { out: f, in: m },
494
+ { out: u, in: y },
495
495
  { mode: "sequence" }
496
496
  );
497
497
  }
498
498
  };
499
499
  return I({ forward: r, backward: r });
500
500
  };
501
- function vi(t = {}, e = {}) {
501
+ function Oi(t = {}, e = {}) {
502
502
  const { type: n = "horizontal" } = t;
503
- return A(pn({ direction: n }), e.override);
503
+ return _(un({ direction: n }), e.override);
504
504
  }
505
- function W(t, e = {}) {
505
+ function Z(t, e = {}) {
506
506
  const n = Object.fromEntries(
507
507
  Object.entries(t).map(([o, i]) => {
508
508
  const r = i;
@@ -514,20 +514,20 @@ function W(t, e = {}) {
514
514
  );
515
515
  return new P(n, e);
516
516
  }
517
- function U(t) {
517
+ function j(t) {
518
518
  const e = t.onComplete;
519
519
  t.onComplete = () => {
520
520
  e == null || e(), t.releaseFill();
521
521
  };
522
522
  }
523
- const dn = {
523
+ const fn = {
524
524
  spring: {
525
525
  stiffness: 250,
526
526
  damping: 23,
527
527
  doubleSpring: 0.7
528
528
  }
529
- }, z = 0.5;
530
- function un(t) {
529
+ }, B = 0.5;
530
+ function hn(t) {
531
531
  const e = t === "enter" ? -100 : 100, n = t === "enter" ? 100 : -100;
532
532
  return {
533
533
  out: {
@@ -535,29 +535,29 @@ function un(t) {
535
535
  startStyle: {},
536
536
  animate: (o) => ({
537
537
  transform: `translate3d(${e * o}%, 0, 0)`,
538
- opacity: `${z + (1 - z) * (1 - o)}`
538
+ opacity: `${B + (1 - B) * (1 - o)}`
539
539
  })
540
540
  },
541
541
  in: {
542
542
  willChange: "transform, opacity",
543
543
  startStyle: {
544
544
  transform: `translate3d(${n}%, 0, 0)`,
545
- opacity: `${z}`
545
+ opacity: `${B}`
546
546
  },
547
547
  animate: (o) => ({
548
548
  transform: `translate3d(${n * (1 - o)}%, 0, 0)`,
549
- opacity: `${z + (1 - z) * o}`
549
+ opacity: `${B + (1 - B) * o}`
550
550
  })
551
551
  }
552
552
  };
553
553
  }
554
- function fn() {
554
+ function yn() {
555
555
  return {
556
- physics: dn,
557
- build: un
556
+ physics: fn,
557
+ build: hn
558
558
  };
559
559
  }
560
- const hn = {
560
+ const mn = {
561
561
  spring: {
562
562
  stiffness: 230,
563
563
  damping: 25,
@@ -567,7 +567,7 @@ const hn = {
567
567
  }
568
568
  }
569
569
  };
570
- function yn(t) {
570
+ function gn(t) {
571
571
  const e = t === "enter" ? -20 : 100, n = t === "enter" ? 100 : -20;
572
572
  return {
573
573
  out: {
@@ -588,51 +588,51 @@ function yn(t) {
588
588
  }
589
589
  };
590
590
  }
591
- function mn() {
591
+ function bn() {
592
592
  return {
593
- physics: hn,
594
- build: yn
593
+ physics: mn,
594
+ build: gn
595
595
  };
596
596
  }
597
- const gn = {
598
- parallax: mn(),
599
- crossfade: fn()
600
- }, T = "0", ee = "1", k = "2", bn = "parallax";
601
- function Ht(t, e) {
597
+ const wn = {
598
+ parallax: bn(),
599
+ crossfade: yn()
600
+ }, T = "0", ne = "1", M = "2", Sn = "parallax";
601
+ function Nt(t, e) {
602
602
  t.style.willChange = e.willChange, t.style.backfaceVisibility = "hidden", t.style.contain = "layout paint";
603
603
  for (const [n, o] of Object.entries(e.startStyle))
604
604
  t.style[n] = o;
605
605
  }
606
- const wn = (t = {}) => {
607
- const e = gn[t.type ?? bn], n = e.physics, o = (i) => {
608
- const r = i === "forward" ? "enter" : "exit", c = e.build(r), s = r === "enter" ? T : k, l = r === "enter" ? k : T;
606
+ const xn = (t = {}) => {
607
+ const e = wn[t.type ?? Sn], n = e.physics, o = (i) => {
608
+ const r = i === "forward" ? "enter" : "exit", c = e.build(r), s = r === "enter" ? T : M, l = r === "enter" ? M : T;
609
609
  return {
610
610
  prepare: ({ from: a, to: p }) => (a.then((d) => {
611
- Ht(d, c.out), d.style.pointerEvents = "none", d.style.zIndex = s;
611
+ Nt(d, c.out), d.style.pointerEvents = "none", d.style.zIndex = s;
612
612
  }), p.then((d) => {
613
- Ht(d, c.in), d.style.position = "relative", d.style.zIndex = l;
613
+ Nt(d, c.in), d.style.position = "relative", d.style.zIndex = l;
614
614
  }), {}),
615
615
  animation: ({ from: a, to: p }) => {
616
616
  const d = new w({
617
617
  element: a,
618
618
  integrator: C.from(n),
619
- style: (f) => c.out.animate(f),
619
+ style: (u) => c.out.animate(u),
620
620
  // The outgoing node is the real, reused element (re-hidden on navigate),
621
621
  // so clear every inline style we set on it — mirroring the `to` cleanup,
622
622
  // plus the out-only `pointerEvents` / `zIndex`.
623
623
  onComplete: () => {
624
624
  a.style.willChange = "auto", a.style.backfaceVisibility = "", a.style.contain = "", a.style.transform = "", a.style.opacity = "", a.style.pointerEvents = "", a.style.zIndex = "";
625
625
  }
626
- }), u = new w({
626
+ }), m = new w({
627
627
  element: p,
628
628
  integrator: C.from(n),
629
- style: (f) => c.in.animate(f),
629
+ style: (u) => c.in.animate(u),
630
630
  onComplete: () => {
631
631
  p.style.willChange = "auto", p.style.backfaceVisibility = "", p.style.contain = "", p.style.transform = "", p.style.opacity = "", p.style.position === "relative" && (p.style.position = ""), p.style.zIndex === l && (p.style.zIndex = "");
632
632
  }
633
633
  });
634
- return [d, u].forEach(U), new P(
635
- { out: d, in: u },
634
+ return [d, m].forEach(j), new P(
635
+ { out: d, in: m },
636
636
  { mode: "parallel" }
637
637
  );
638
638
  }
@@ -643,15 +643,15 @@ const wn = (t = {}) => {
643
643
  backward: o("backward")
644
644
  });
645
645
  };
646
- function Sn(t) {
646
+ function Cn(t) {
647
647
  return t === "slide" || t === "crossfade" ? "crossfade" : "parallax";
648
648
  }
649
- function Ri(t = {}, e = {}) {
650
- const n = t.type, o = Sn(n);
651
- return A(wn({ type: o }), e.override);
649
+ function Fi(t = {}, e = {}) {
650
+ const n = t.type, o = Cn(n);
651
+ return _(xn({ type: o }), e.override);
652
652
  }
653
- const Cn = (t = {}) => {
654
- const e = t.physics ?? ve, n = t.physics ?? Re, o = {
653
+ const En = (t = {}) => {
654
+ const e = t.physics ?? Re, n = t.physics ?? Ie, o = {
655
655
  prepare: ({ to: i }) => (i.then((r) => {
656
656
  r.style.opacity = "0", r.style.willChange = "opacity";
657
657
  }), {}),
@@ -662,7 +662,7 @@ const Cn = (t = {}) => {
662
662
  // Default bounds (0, 1). `u` runs 1→0 as the animation moves
663
663
  // forward, mapping opacity from fully visible to invisible.
664
664
  style: (l) => ({
665
- opacity: J("fade", "out", "forward", l).opacity
665
+ opacity: et("fade", "out", "forward", l).opacity
666
666
  }),
667
667
  onComplete: () => {
668
668
  i.style.willChange = "auto", i.style.opacity = "";
@@ -671,7 +671,7 @@ const Cn = (t = {}) => {
671
671
  element: r,
672
672
  integrator: C.from(e),
673
673
  style: (l) => ({
674
- opacity: J("fade", "in", "forward", l).opacity
674
+ opacity: et("fade", "in", "forward", l).opacity
675
675
  }),
676
676
  onComplete: () => {
677
677
  r.style.willChange = "auto", r.style.opacity = "";
@@ -685,22 +685,22 @@ const Cn = (t = {}) => {
685
685
  };
686
686
  return I({ forward: o, backward: o });
687
687
  };
688
- function Ii(t = {}, e = {}) {
689
- return A(Cn(), e.override);
688
+ function ki(t = {}, e = {}) {
689
+ return _(En(), e.override);
690
690
  }
691
- const rt = {
691
+ const st = {
692
692
  scaleDown: { stiffness: 20, damping: 7 },
693
693
  translate: { stiffness: 15, damping: 7 },
694
694
  scaleUp: { stiffness: 20, damping: 7 }
695
- }, H = {
695
+ }, W = {
696
696
  scaleDown: 0,
697
697
  translate: 0.2,
698
698
  scaleUp: 0.8
699
- }, xn = 0.8, En = "white", Nt = 1e3 / 60, $n = 600;
700
- function Pn(t) {
701
- const { items: e, from: n, to: o, recordFrame: i } = t, r = Nt / 1e3, c = Math.abs(o - n), s = e.map((a) => ({
699
+ }, $n = 0.8, Pn = "white", zt = 1e3 / 60, vn = 600;
700
+ function An(t) {
701
+ const { items: e, from: n, to: o, recordFrame: i } = t, r = zt / 1e3, c = Math.abs(o - n), s = e.map((a) => ({
702
702
  item: a,
703
- integrator: new yt({
703
+ integrator: new mt({
704
704
  stiffness: a.spring.stiffness,
705
705
  damping: a.spring.damping
706
706
  }),
@@ -713,89 +713,89 @@ function Pn(t) {
713
713
  (a === 0 || s[a].item.offset === 0) && (s[a].started = !0);
714
714
  i(0);
715
715
  let l = 0;
716
- for (let a = 1; a <= $n; a++) {
717
- const p = a * Nt;
716
+ for (let a = 1; a <= vn; a++) {
717
+ const p = a * zt;
718
718
  l = p;
719
719
  for (const d of s)
720
- !d.started || d.settled || (d.state = d.integrator.step(d.state, o, r), d.integrator.isSettled(d.state, o) ? (d.settleTime += r, d.settleTime >= Ee && (d.state = { position: o, velocity: 0 }, d.settled = !0)) : d.settleTime = 0, d.item.tick(d.state.position));
720
+ !d.started || d.settled || (d.state = d.integrator.step(d.state, o, r), d.integrator.isSettled(d.state, o) ? (d.settleTime += r, d.settleTime >= Pe && (d.state = { position: o, velocity: 0 }, d.settled = !0)) : d.settleTime = 0, d.item.tick(d.state.position));
721
721
  for (let d = 1; d < s.length; d++) {
722
- const u = s[d];
723
- if (u.started) continue;
724
- const f = s[d - 1];
725
- if (!f.started) continue;
726
- (c === 0 ? 1 : Math.abs(f.state.position - n) / c) >= u.item.offset && (u.started = !0);
722
+ const m = s[d];
723
+ if (m.started) continue;
724
+ const u = s[d - 1];
725
+ if (!u.started) continue;
726
+ (c === 0 ? 1 : Math.abs(u.state.position - n) / c) >= m.item.offset && (m.started = !0);
727
727
  }
728
728
  if (i(p), s.every((d) => d.settled)) return p;
729
729
  }
730
730
  return l;
731
731
  }
732
- function st(t, e) {
732
+ function at(t, e) {
733
733
  return t != null && t.spring ? {
734
734
  stiffness: t.spring.stiffness,
735
735
  damping: t.spring.damping
736
736
  } : e;
737
737
  }
738
- function zt(t) {
739
- const { rect: e, scale: n, direction: o, override: i } = t, r = o === "out" ? { scale: 1, translateY: -e.top } : { scale: n, translateY: -e.top + e.height }, c = st(i, rt.scaleDown), s = st(i, rt.translate), l = st(i, rt.scaleUp), a = o === "out" ? 1 : 0, p = o === "out" ? 0 : 1, d = o === "out" ? [
738
+ function Wt(t) {
739
+ const { rect: e, scale: n, direction: o, override: i } = t, r = o === "out" ? { scale: 1, translateY: -e.top } : { scale: n, translateY: -e.top + e.height }, c = at(i, st.scaleDown), s = at(i, st.translate), l = at(i, st.scaleUp), a = o === "out" ? 1 : 0, p = o === "out" ? 0 : 1, d = o === "out" ? [
740
740
  {
741
741
  spring: c,
742
- offset: H.scaleDown,
743
- tick: (m) => {
744
- const y = 1 - m;
745
- r.scale = 1 - (1 - n) * y;
742
+ offset: W.scaleDown,
743
+ tick: (y) => {
744
+ const h = 1 - y;
745
+ r.scale = 1 - (1 - n) * h;
746
746
  }
747
747
  },
748
748
  {
749
749
  spring: s,
750
- offset: H.translate,
751
- tick: (m) => {
752
- const y = 1 - m;
753
- r.translateY = -e.top - e.height * y;
750
+ offset: W.translate,
751
+ tick: (y) => {
752
+ const h = 1 - y;
753
+ r.translateY = -e.top - e.height * h;
754
754
  }
755
755
  },
756
756
  {
757
757
  spring: l,
758
- offset: H.scaleUp,
759
- tick: (m) => {
760
- const y = 1 - m;
761
- r.scale = n + (1 - n) * y;
758
+ offset: W.scaleUp,
759
+ tick: (y) => {
760
+ const h = 1 - y;
761
+ r.scale = n + (1 - n) * h;
762
762
  }
763
763
  }
764
764
  ] : [
765
765
  {
766
766
  spring: c,
767
- offset: H.scaleDown,
768
- tick: (m) => {
769
- r.scale = 1 - (1 - n) * m;
767
+ offset: W.scaleDown,
768
+ tick: (y) => {
769
+ r.scale = 1 - (1 - n) * y;
770
770
  }
771
771
  },
772
772
  {
773
773
  spring: s,
774
- offset: H.translate,
775
- tick: (m) => {
776
- r.translateY = -e.top + e.height * (1 - m);
774
+ offset: W.translate,
775
+ tick: (y) => {
776
+ r.translateY = -e.top + e.height * (1 - y);
777
777
  }
778
778
  },
779
779
  {
780
780
  spring: l,
781
- offset: H.scaleUp,
782
- tick: (m) => {
783
- r.scale = n + (1 - n) * m;
781
+ offset: W.scaleUp,
782
+ tick: (y) => {
783
+ r.scale = n + (1 - n) * y;
784
784
  }
785
785
  }
786
- ], u = [], f = Pn({
786
+ ], m = [], u = An({
787
787
  items: d,
788
788
  from: a,
789
789
  to: p,
790
- recordFrame: (m) => u.push({
791
- time: m,
790
+ recordFrame: (y) => m.push({
791
+ time: y,
792
792
  scale: r.scale,
793
793
  translateY: r.translateY
794
794
  })
795
795
  });
796
- return { snapshots: u, totalDuration: f };
796
+ return { snapshots: m, totalDuration: u };
797
797
  }
798
- function vn(t, e) {
798
+ function Rn(t, e) {
799
799
  if (t.length === 0) return { time: 0, scale: 1, translateY: 0 };
800
800
  if (t.length === 1 || e <= 0) return t[0];
801
801
  if (e >= 1) return t[t.length - 1];
@@ -808,13 +808,13 @@ function vn(t, e) {
808
808
  translateY: r.translateY + (c.translateY - r.translateY) * s
809
809
  };
810
810
  }
811
- const Rn = [
811
+ const In = [
812
812
  [1, 1],
813
813
  [-1, 1],
814
814
  [1, -1],
815
815
  [-1, -1]
816
816
  ];
817
- function In(t, e) {
817
+ function _n(t, e) {
818
818
  const i = (r, c, s) => {
819
819
  const l = document.createElement("div");
820
820
  Object.assign(l.style, {
@@ -879,11 +879,11 @@ function In(t, e) {
879
879
  )
880
880
  };
881
881
  }
882
- function Vt(t, e) {
882
+ function Xt(t, e) {
883
883
  const n = e.left + e.width / 2, o = e.top + e.height / 2;
884
884
  t.style.transformOrigin = `${n}px ${o}px`;
885
885
  }
886
- function Xt(t, e) {
886
+ function Vt(t, e) {
887
887
  t.style.clipPath = `polygon(
888
888
  ${e.left}px ${e.top}px,
889
889
  ${e.left + e.width}px ${e.top}px,
@@ -891,88 +891,88 @@ function Xt(t, e) {
891
891
  ${e.left}px ${e.top + e.height}px
892
892
  )`;
893
893
  }
894
- function at(t, e, n, o, i) {
894
+ function ct(t, e, n, o, i) {
895
895
  const r = n / 1e3;
896
896
  return new w({
897
897
  element: t,
898
- integrator: new Ae({ durationSec: r }),
898
+ integrator: new Oe({ durationSec: r }),
899
899
  lowerBound: 0,
900
900
  upperBound: 1,
901
- style: (c) => o(vn(e, c)),
901
+ style: (c) => o(Rn(e, c)),
902
902
  onComplete: i
903
903
  });
904
904
  }
905
- const An = (t = {}) => {
905
+ const On = (t = {}) => {
906
906
  var r;
907
- const e = ((r = t.border) == null ? void 0 : r.color) ?? En, n = xn, o = t.physics, i = {
907
+ const e = ((r = t.border) == null ? void 0 : r.color) ?? Pn, n = $n, o = t.physics, i = {
908
908
  prepare: ({ from: c, to: s, context: l }) => {
909
- const a = Y(l, "from"), p = Y(l, "to"), d = Et(document.body, l.positionedParent), u = In(e, {
909
+ const a = H(l, "from"), p = H(l, "to"), d = $t(document.body, l.positionedParent), m = _n(e, {
910
910
  ...a,
911
911
  top: d.top
912
912
  });
913
- for (const f of [
913
+ for (const u of [
914
914
  "topLeft",
915
915
  "topRight",
916
916
  "bottomLeft",
917
917
  "bottomRight"
918
918
  ])
919
- l.positionedParent.appendChild(u[f]);
920
- return c.then((f) => {
921
- Vt(f, a), Xt(f, a), f.style.transform = `translateY(${-a.top}px)`;
922
- }), s.then((f) => {
923
- Vt(f, p), Xt(f, p), f.style.transform = `translateY(${-p.top + p.height}px) scale(${n})`;
924
- }), { borders: u, fromRect: a, toRect: p };
919
+ l.positionedParent.appendChild(m[u]);
920
+ return c.then((u) => {
921
+ Xt(u, a), Vt(u, a), u.style.transform = `translateY(${-a.top}px)`;
922
+ }), s.then((u) => {
923
+ Xt(u, p), Vt(u, p), u.style.transform = `translateY(${-p.top + p.height}px) scale(${n})`;
924
+ }), { borders: m, fromRect: a, toRect: p };
925
925
  },
926
926
  animation: ({ from: c, to: s, context: l, borders: a, fromRect: p, toRect: d }) => {
927
- const u = zt({
927
+ const m = Wt({
928
928
  rect: p,
929
929
  scale: n,
930
930
  direction: "out",
931
931
  override: o
932
- }), f = zt({
932
+ }), u = Wt({
933
933
  rect: d,
934
934
  scale: n,
935
935
  direction: "in",
936
936
  override: o
937
- }), m = at(
937
+ }), y = ct(
938
938
  c,
939
- u.snapshots,
940
- u.totalDuration,
941
- (x) => ({
942
- transform: `translateY(${x.translateY}px) scale(${x.scale})`
939
+ m.snapshots,
940
+ m.totalDuration,
941
+ (S) => ({
942
+ transform: `translateY(${S.translateY}px) scale(${S.scale})`
943
943
  }),
944
944
  () => {
945
945
  c.style.clipPath = "", c.style.transformOrigin = "", c.style.transform = "";
946
946
  }
947
- ), y = at(
947
+ ), h = ct(
948
948
  s,
949
- f.snapshots,
950
- f.totalDuration,
951
- (x) => ({
952
- transform: `translateY(${x.translateY}px) scale(${x.scale})`
949
+ u.snapshots,
950
+ u.totalDuration,
951
+ (S) => ({
952
+ transform: `translateY(${S.translateY}px) scale(${S.scale})`
953
953
  }),
954
954
  () => {
955
955
  s.style.clipPath = "", s.style.transformOrigin = "", s.style.transform = "";
956
956
  }
957
- ), h = Rn.map(([x, $], v) => {
958
- const _ = ["topLeft", "topRight", "bottomLeft", "bottomRight"][v];
959
- return at(
960
- a[_],
961
- u.snapshots,
962
- u.totalDuration,
963
- (S) => {
964
- const E = (p.width - p.width * S.scale) / 2 * 0.7 * x, O = (p.height - p.height * S.scale) / 2 * 0.7 * $;
965
- return { transform: `translate(${E}px, ${O}px)` };
957
+ ), f = In.map(([S, $], v) => {
958
+ const O = ["topLeft", "topRight", "bottomLeft", "bottomRight"][v];
959
+ return ct(
960
+ a[O],
961
+ m.snapshots,
962
+ m.totalDuration,
963
+ (x) => {
964
+ const E = (p.width - p.width * x.scale) / 2 * 0.7 * S, F = (p.height - p.height * x.scale) / 2 * 0.7 * $;
965
+ return { transform: `translate(${E}px, ${F}px)` };
966
966
  }
967
967
  );
968
- }), b = W({
969
- out: m,
970
- in: y,
971
- borders: h
968
+ }), b = Z({
969
+ out: y,
970
+ in: h,
971
+ borders: f
972
972
  }), g = b.onComplete;
973
973
  return b.onComplete = () => {
974
974
  g == null || g();
975
- const x = l.positionedParent;
975
+ const S = l.positionedParent;
976
976
  for (const $ of [
977
977
  "topLeft",
978
978
  "topRight",
@@ -980,18 +980,18 @@ const An = (t = {}) => {
980
980
  "bottomRight"
981
981
  ]) {
982
982
  const v = a[$];
983
- v.parentElement === x && x.removeChild(v);
983
+ v.parentElement === S && S.removeChild(v);
984
984
  }
985
985
  }, b;
986
986
  }
987
987
  };
988
988
  return I({ forward: i, backward: i });
989
989
  };
990
- function Ai(t = {}, e = {}) {
990
+ function Ti(t = {}, e = {}) {
991
991
  const { options: n } = t, o = (n == null ? void 0 : n.borderColor) !== void 0 ? { border: { color: n.borderColor } } : void 0;
992
- return A(An(o), e.override);
992
+ return _(On(o), e.override);
993
993
  }
994
- function _n(t) {
994
+ function Fn(t) {
995
995
  if (!t) return null;
996
996
  if (t.includes("/")) {
997
997
  const n = t.split("/");
@@ -1002,37 +1002,37 @@ function _n(t) {
1002
1002
  const e = Number.parseFloat(t);
1003
1003
  return Number.isFinite(e) && e > 0 ? e : null;
1004
1004
  }
1005
- function On(t) {
1005
+ function kn(t) {
1006
1006
  return t === "contain" || t === "cover" ? t : null;
1007
1007
  }
1008
- function gt(t) {
1008
+ function bt(t) {
1009
1009
  return t.tagName === "IMG";
1010
1010
  }
1011
- function ne(t) {
1012
- if (gt(t)) return t;
1011
+ function oe(t) {
1012
+ if (bt(t)) return t;
1013
1013
  if (t.tagName === "PICTURE" || t.tagName === "VIDEO")
1014
1014
  return null;
1015
1015
  const e = [];
1016
1016
  for (const n of Array.from(t.children)) {
1017
1017
  const o = n;
1018
- gt(o) && e.push(o);
1018
+ bt(o) && e.push(o);
1019
1019
  }
1020
1020
  return e.length === 1 ? e[0] ?? null : null;
1021
1021
  }
1022
- function Fn(t) {
1022
+ function Tn(t) {
1023
1023
  var l, a;
1024
- if (!gt(t)) return null;
1024
+ if (!bt(t)) return null;
1025
1025
  const e = t, n = e.naturalWidth, o = e.naturalHeight;
1026
1026
  if (typeof n == "number" && typeof o == "number" && Number.isFinite(n) && Number.isFinite(o) && n > 0 && o > 0)
1027
1027
  return n / o;
1028
1028
  const i = ((l = t.getAttribute("width")) == null ? void 0 : l.trim()) ?? "", r = ((a = t.getAttribute("height")) == null ? void 0 : a.trim()) ?? "", c = i === "" ? Number.NaN : Number(i), s = r === "" ? Number.NaN : Number(r);
1029
1029
  return Number.isFinite(c) && Number.isFinite(s) && c > 0 && s > 0 ? c / s : null;
1030
1030
  }
1031
- function Tn(t) {
1031
+ function Mn(t) {
1032
1032
  const e = t.trim().toLowerCase().replace(/\s+/g, " ");
1033
1033
  return e === "" || e === "center" || e === "center center" || e === "50% 50%";
1034
1034
  }
1035
- function Z(t) {
1035
+ function K(t) {
1036
1036
  if (typeof getComputedStyle == "function")
1037
1037
  try {
1038
1038
  return getComputedStyle(t);
@@ -1040,27 +1040,27 @@ function Z(t) {
1040
1040
  }
1041
1041
  return t.style;
1042
1042
  }
1043
- function kn(t) {
1044
- const e = Z(t), n = Tn(e.objectPosition ?? "");
1043
+ function Dn(t) {
1044
+ const e = K(t), n = Mn(e.objectPosition ?? "");
1045
1045
  return {
1046
- fit: n ? On(e.objectFit ?? null) : null,
1046
+ fit: n ? kn(e.objectFit ?? null) : null,
1047
1047
  centered: n
1048
1048
  };
1049
1049
  }
1050
- function $t(t) {
1050
+ function Pt(t) {
1051
1051
  if (!t) return 0;
1052
1052
  const e = /^(-?(?:\d+\.?\d*|\.\d+))px$/.exec(t.trim());
1053
1053
  if (!e) return null;
1054
1054
  const n = Number.parseFloat(e[1] ?? "");
1055
1055
  return Number.isFinite(n) && n >= 0 ? n : null;
1056
1056
  }
1057
- function bt(t) {
1058
- const e = Z(t), n = [
1057
+ function wt(t) {
1058
+ const e = K(t), n = [
1059
1059
  e.borderTopLeftRadius,
1060
1060
  e.borderTopRightRadius,
1061
1061
  e.borderBottomRightRadius,
1062
1062
  e.borderBottomLeftRadius
1063
- ].map($t), o = n[0];
1063
+ ].map(Pt), o = n[0];
1064
1064
  if (o == null)
1065
1065
  return { radius: 0, supported: !1 };
1066
1066
  const i = n.every(
@@ -1068,7 +1068,7 @@ function bt(t) {
1068
1068
  );
1069
1069
  return { radius: i ? o : 0, supported: i };
1070
1070
  }
1071
- function Mn(t, e) {
1071
+ function Yn(t, e) {
1072
1072
  var i;
1073
1073
  if (!e) return null;
1074
1074
  const n = (i = t.getAttribute(e)) == null ? void 0 : i.trim();
@@ -1076,8 +1076,8 @@ function Mn(t, e) {
1076
1076
  const o = Number.parseFloat(n);
1077
1077
  return Number.isFinite(o) && o >= 0 ? o : null;
1078
1078
  }
1079
- function Dn(t) {
1080
- const e = Z(t);
1079
+ function Ln(t) {
1080
+ const e = K(t);
1081
1081
  return [
1082
1082
  e.paddingTop,
1083
1083
  e.paddingRight,
@@ -1087,19 +1087,19 @@ function Dn(t) {
1087
1087
  e.borderRightWidth,
1088
1088
  e.borderBottomWidth,
1089
1089
  e.borderLeftWidth
1090
- ].every((o) => o ? $t(o) === 0 : !0);
1090
+ ].every((o) => o ? Pt(o) === 0 : !0);
1091
1091
  }
1092
- function Yn(t) {
1093
- const e = Z(t), n = (o) => o === "hidden" || o === "clip";
1092
+ function Hn(t) {
1093
+ const e = K(t), n = (o) => o === "hidden" || o === "clip";
1094
1094
  return n(e.overflowX) && n(e.overflowY);
1095
1095
  }
1096
- function M(t) {
1096
+ function D(t) {
1097
1097
  return t.left + t.width / 2;
1098
1098
  }
1099
- function D(t) {
1099
+ function Y(t) {
1100
1100
  return t.top + t.height / 2;
1101
1101
  }
1102
- function B(t, e) {
1102
+ function G(t, e) {
1103
1103
  return {
1104
1104
  top: Math.max(0, e.top - t.top),
1105
1105
  right: Math.max(0, t.left + t.width - (e.left + e.width)),
@@ -1107,14 +1107,14 @@ function B(t, e) {
1107
1107
  left: Math.max(0, e.left - t.left)
1108
1108
  };
1109
1109
  }
1110
- function wt(t, e) {
1110
+ function St(t, e) {
1111
1111
  const n = Math.max(t.left, e.left), o = Math.max(t.top, e.top), i = Math.min(t.left + t.width, e.left + e.width), r = Math.min(t.top + t.height, e.top + e.height);
1112
1112
  return i > n && r > o ? { left: n, top: o, width: i - n, height: r - o } : null;
1113
1113
  }
1114
- function X(t, e) {
1114
+ function U(t, e) {
1115
1115
  return Math.abs(t.left - e.left) < 0.01 && Math.abs(t.top - e.top) < 0.01 && Math.abs(t.width - e.width) < 0.01 && Math.abs(t.height - e.height) < 0.01;
1116
1116
  }
1117
- function Ln(t, e, n) {
1117
+ function Nn(t, e, n) {
1118
1118
  const o = t.width / t.height;
1119
1119
  let i, r;
1120
1120
  return n === "contain" ? o > e ? (r = t.height, i = r * e) : (i = t.width, r = i / e) : o > e ? (i = t.width, r = i / e) : (r = t.height, i = r * e), {
@@ -1124,13 +1124,13 @@ function Ln(t, e, n) {
1124
1124
  height: r
1125
1125
  };
1126
1126
  }
1127
- function oe(t, e, n) {
1128
- const o = e !== null && n !== null && t.width > 0 && t.height > 0 ? Ln(t, e, n) : t, i = n === "contain" ? o : t;
1127
+ function ie(t, e, n) {
1128
+ const o = e !== null && n !== null && t.width > 0 && t.height > 0 ? Nn(t, e, n) : t, i = n === "contain" ? o : t;
1129
1129
  return {
1130
1130
  bbox: t,
1131
1131
  content: o,
1132
1132
  window: i,
1133
- clipInset: B(o, i),
1133
+ clipInset: G(o, i),
1134
1134
  aspectRatio: e,
1135
1135
  fit: n,
1136
1136
  radius: 0,
@@ -1141,52 +1141,52 @@ function oe(t, e, n) {
1141
1141
  mediaElement: null
1142
1142
  };
1143
1143
  }
1144
- function St(t, e, n) {
1144
+ function xt(t, e, n) {
1145
1145
  return {
1146
- ...oe(t, null, null),
1146
+ ...ie(t, null, null),
1147
1147
  radius: e,
1148
1148
  radiusSource: n,
1149
1149
  bboxRadius: e,
1150
1150
  bboxRadiusSource: n
1151
1151
  };
1152
1152
  }
1153
- function ie(t, e) {
1153
+ function re(t, e) {
1154
1154
  const n = t.aspectRatio, o = e.aspectRatio;
1155
1155
  return t.contentAware && e.contentAware && n !== null && o !== null && Math.abs(n - o) / Math.max(n, o) < 0.01;
1156
1156
  }
1157
- function Wt(t) {
1158
- return St(
1157
+ function Bt(t) {
1158
+ return xt(
1159
1159
  t.bbox,
1160
1160
  t.bboxRadius,
1161
1161
  t.bboxRadiusSource
1162
1162
  );
1163
1163
  }
1164
- function re(t, e) {
1165
- return ie(t, e) ? [t, e] : [Wt(t), Wt(e)];
1164
+ function se(t, e) {
1165
+ return re(t, e) ? [t, e] : [Bt(t), Bt(e)];
1166
1166
  }
1167
- function Hn(t, e, n, o) {
1168
- const i = ne(t), r = i ? n(i) : e, c = o.legacyAspectRatioAttribute ? _n(
1167
+ function zn(t, e, n, o) {
1168
+ const i = oe(t), r = i ? n(i) : e, c = o.legacyAspectRatioAttribute ? Fn(
1169
1169
  t.getAttribute(o.legacyAspectRatioAttribute) ?? (i == null ? void 0 : i.getAttribute(o.legacyAspectRatioAttribute)) ?? null
1170
- ) : null, s = c ?? (i ? Fn(i) : null), l = i ? kn(i) : { fit: null, centered: !0 }, a = l.centered && (i === null || Dn(i)) ? l.fit ?? (c !== null ? o.fallbackFit ?? null : null) : null, p = oe(r, s, a), d = Yn(t), f = i !== null && i !== t && d ? wt(p.window, e) : p.window, m = Mn(t, o.legacyRadiusAttribute), y = i === t || d, h = y ? bt(t) : { radius: 0, supported: !0 }, b = m ?? h.radius, g = m !== null ? "legacy" : h.supported ? h.radius > 0 ? "computed" : "none" : "unsupported", x = [];
1171
- f && y && X(f, e) && x.push(h), f && i && X(f, r) && x.push(bt(i));
1172
- const $ = x.every((E) => E.supported), v = Math.max(
1170
+ ) : null, s = c ?? (i ? Tn(i) : null), l = i ? Dn(i) : { fit: null, centered: !0 }, a = l.centered && (i === null || Ln(i)) ? l.fit ?? (c !== null ? o.fallbackFit ?? null : null) : null, p = ie(r, s, a), d = Hn(t), u = i !== null && i !== t && d ? St(p.window, e) : p.window, y = Yn(t, o.legacyRadiusAttribute), h = i === t || d, f = h ? wt(t) : { radius: 0, supported: !0 }, b = y ?? f.radius, g = y !== null ? "legacy" : f.supported ? f.radius > 0 ? "computed" : "none" : "unsupported", S = [];
1171
+ u && h && U(u, e) && S.push(f), u && i && U(u, r) && S.push(wt(i));
1172
+ const $ = S.every((E) => E.supported), v = Math.max(
1173
1173
  0,
1174
- ...x.map((E) => E.radius)
1175
- ), _ = m ?? v, S = m !== null ? "legacy" : $ ? v > 0 ? "computed" : "none" : "unsupported";
1176
- return !f || S === "unsupported" ? St(e, b, g) : {
1174
+ ...S.map((E) => E.radius)
1175
+ ), O = y ?? v, x = y !== null ? "legacy" : $ ? v > 0 ? "computed" : "none" : "unsupported";
1176
+ return !u || x === "unsupported" ? xt(e, b, g) : {
1177
1177
  ...p,
1178
1178
  bbox: e,
1179
- window: f,
1180
- clipInset: B(p.content, f),
1181
- radius: _,
1182
- radiusSource: S,
1179
+ window: u,
1180
+ clipInset: G(p.content, u),
1181
+ radius: O,
1182
+ radiusSource: x,
1183
1183
  bboxRadius: b,
1184
1184
  bboxRadiusSource: g,
1185
1185
  mediaElement: p.contentAware ? i : null
1186
1186
  };
1187
1187
  }
1188
1188
  function Ct(t, e, n, o) {
1189
- const i = Hn(
1189
+ const i = zn(
1190
1190
  t,
1191
1191
  e,
1192
1192
  n,
@@ -1196,85 +1196,165 @@ function Ct(t, e, n, o) {
1196
1196
  return i;
1197
1197
  let r = i.window, c = i.radius, s = [c, c, c, c], l = i.radiusSource, a = t.parentElement;
1198
1198
  for (; a && a !== o.clipRoot; ) {
1199
- const d = Z(a), u = (y) => y === "hidden" || y === "clip" || y === "auto" || y === "scroll", f = u(d.overflowX), m = u(d.overflowY);
1200
- if (f || m) {
1199
+ const d = K(a), m = (h) => h === "hidden" || h === "clip" || h === "auto" || h === "scroll", u = m(d.overflowX), y = m(d.overflowY);
1200
+ if (u || y) {
1201
1201
  if (![
1202
1202
  d.borderTopWidth,
1203
1203
  d.borderRightWidth,
1204
1204
  d.borderBottomWidth,
1205
1205
  d.borderLeftWidth
1206
- ].every((S) => $t(S) === 0) || a.offsetWidth && a.clientWidth && a.offsetWidth - a.clientWidth > 1 || a.offsetHeight && a.clientHeight && a.offsetHeight - a.clientHeight > 1)
1206
+ ].every((x) => Pt(x) === 0) || a.offsetWidth && a.clientWidth && a.offsetWidth - a.clientWidth > 1 || a.offsetHeight && a.clientHeight && a.offsetHeight - a.clientHeight > 1)
1207
1207
  return i;
1208
- const h = n(a), b = {
1209
- left: f ? h.left : r.left,
1210
- top: m ? h.top : r.top,
1211
- width: f ? h.width : r.width,
1212
- height: m ? h.height : r.height
1213
- }, g = wt(r, b);
1208
+ const f = n(a), b = {
1209
+ left: u ? f.left : r.left,
1210
+ top: y ? f.top : r.top,
1211
+ width: u ? f.width : r.width,
1212
+ height: y ? f.height : r.height
1213
+ }, g = St(r, b);
1214
1214
  if (!g) return i;
1215
- const x = bt(a);
1216
- if (!x.supported) return i;
1217
- if (f && m && X(r, h))
1218
- l !== "legacy" && (c = Math.max(c, x.radius), s = s.map(
1219
- (S) => Math.max(S, x.radius)
1215
+ const S = wt(a);
1216
+ if (!S.supported) return i;
1217
+ if (u && y && U(r, f))
1218
+ l !== "legacy" && (c = Math.max(c, S.radius), s = s.map(
1219
+ (x) => Math.max(x, S.radius)
1220
1220
  ), c > 0 && (l = "computed"));
1221
- else if (x.radius > 0) {
1222
- const S = {
1223
- left: h.left + x.radius,
1224
- top: h.top + x.radius,
1225
- width: h.width - 2 * x.radius,
1226
- height: h.height - 2 * x.radius
1221
+ else if (S.radius > 0) {
1222
+ const x = {
1223
+ left: f.left + S.radius,
1224
+ top: f.top + S.radius,
1225
+ width: f.width - 2 * S.radius,
1226
+ height: f.height - 2 * S.radius
1227
1227
  };
1228
- if (!X(wt(r, S) ?? h, r))
1228
+ if (!U(St(r, x) ?? f, r))
1229
1229
  return i;
1230
1230
  }
1231
- const $ = B(r, g), v = [
1231
+ const $ = G(r, g), v = [
1232
1232
  [$.top, $.left],
1233
1233
  [$.top, $.right],
1234
1234
  [$.bottom, $.right],
1235
1235
  [$.bottom, $.left]
1236
1236
  ];
1237
- for (let S = 0; S < 4; S++) {
1238
- const E = Math.max(...v[S]), O = s[S];
1239
- if (E > 0.01 && E < O) return i;
1240
- E > 0.01 && (s[S] = 0);
1237
+ for (let x = 0; x < 4; x++) {
1238
+ const E = Math.max(...v[x]), F = s[x];
1239
+ if (E > 0.01 && E < F) return i;
1240
+ E > 0.01 && (s[x] = 0);
1241
1241
  }
1242
- const _ = Math.max(...s);
1243
- if (g.width < _ || g.height < _)
1242
+ const O = Math.max(...s);
1243
+ if (g.width < O || g.height < O)
1244
1244
  return i;
1245
1245
  r = g;
1246
1246
  }
1247
1247
  a = a.parentElement;
1248
1248
  }
1249
- const p = X(i.bbox, r);
1249
+ const p = U(i.bbox, r);
1250
1250
  return {
1251
1251
  ...i,
1252
1252
  window: r,
1253
- clipInset: B(i.content, r),
1253
+ clipInset: G(i.content, r),
1254
1254
  radius: c,
1255
1255
  radiusSource: l,
1256
1256
  ...s.some((d) => d !== c) ? { cornerRadii: s } : {},
1257
1257
  ...p ? { bboxRadius: c, bboxRadiusSource: l } : {}
1258
1258
  };
1259
1259
  }
1260
- function se(t, e, n, o, i) {
1260
+ function ae(t, e, n, o, i) {
1261
1261
  const r = n.width / o, c = n.height / i;
1262
1262
  return {
1263
- left: M(t) + (M(n) - M(e)) / o - r / 2,
1264
- top: D(t) + (D(n) - D(e)) / i - c / 2,
1263
+ left: D(t) + (D(n) - D(e)) / o - r / 2,
1264
+ top: Y(t) + (Y(n) - Y(e)) / i - c / 2,
1265
1265
  width: r,
1266
1266
  height: c
1267
1267
  };
1268
1268
  }
1269
- const Nn = {
1269
+ const Wn = {
1270
1270
  enter: "contain",
1271
1271
  exit: "cover",
1272
1272
  legacy: "contain"
1273
1273
  };
1274
- function N(t) {
1275
- return Nn[t];
1274
+ function X(t) {
1275
+ return Wn[t];
1276
+ }
1277
+ function q(t, e) {
1278
+ const n = e.map((o) => ({
1279
+ name: o,
1280
+ value: t.style.getPropertyValue(o),
1281
+ priority: t.style.getPropertyPriority(o)
1282
+ }));
1283
+ return () => {
1284
+ for (const { name: o, value: i, priority: r } of n)
1285
+ i ? t.style.setProperty(o, i, r) : t.style.removeProperty(o);
1286
+ };
1287
+ }
1288
+ function Xn(t) {
1289
+ const e = t.getAttribute("data-hero-transitioning");
1290
+ return t.setAttribute("data-hero-transitioning", ""), () => {
1291
+ e === null ? t.removeAttribute("data-hero-transitioning") : t.setAttribute("data-hero-transitioning", e);
1292
+ };
1293
+ }
1294
+ function Vn(t, e) {
1295
+ const n = q(t, ["z-index"]), o = q(e, ["z-index", "position"]);
1296
+ return t.style.zIndex = T, e.style.zIndex = M, getComputedStyle(e).position === "static" && (e.style.position = "relative"), () => {
1297
+ n(), o();
1298
+ };
1276
1299
  }
1277
- function Pt(t, e, n) {
1300
+ function Bn(t, e, n) {
1301
+ if (t.tagName !== "IMG") return () => {
1302
+ };
1303
+ const o = getComputedStyle(t), i = (m) => Number.parseFloat(m) || 0, r = o.boxSizing === "border-box", c = i(o.width) + (r ? 0 : i(o.paddingLeft) + i(o.paddingRight) + i(o.borderLeftWidth) + i(o.borderRightWidth)), s = i(o.height) + (r ? 0 : i(o.paddingTop) + i(o.paddingBottom) + i(o.borderTopWidth) + i(o.borderBottomWidth)), l = e.width * c / n.width, a = e.height * s / n.height;
1304
+ let p = null;
1305
+ o.position !== "absolute" && o.position !== "fixed" && (p = document.createElement("span"), p.setAttribute("data-hero-placeholder", ""), p.setAttribute("aria-hidden", "true"), Object.assign(p.style, {
1306
+ display: o.display === "inline" ? "inline-block" : o.display,
1307
+ boxSizing: "border-box",
1308
+ width: `${c}px`,
1309
+ height: `${s}px`,
1310
+ margin: o.margin,
1311
+ flex: o.flex,
1312
+ alignSelf: o.alignSelf,
1313
+ gridArea: o.gridArea,
1314
+ order: o.order,
1315
+ verticalAlign: o.verticalAlign,
1316
+ visibility: "hidden",
1317
+ pointerEvents: "none"
1318
+ }), t.before(p));
1319
+ const d = q(t, [
1320
+ "position",
1321
+ "left",
1322
+ "top",
1323
+ "right",
1324
+ "bottom",
1325
+ "width",
1326
+ "height",
1327
+ "min-width",
1328
+ "min-height",
1329
+ "max-width",
1330
+ "max-height",
1331
+ "box-sizing",
1332
+ "margin-top",
1333
+ "margin-right",
1334
+ "margin-bottom",
1335
+ "margin-left",
1336
+ "flex"
1337
+ ]);
1338
+ return Object.assign(t.style, {
1339
+ position: "absolute",
1340
+ left: "0",
1341
+ top: "0",
1342
+ right: "auto",
1343
+ bottom: "auto",
1344
+ boxSizing: "border-box",
1345
+ width: `${l}px`,
1346
+ height: `${a}px`,
1347
+ minWidth: "0",
1348
+ minHeight: "0",
1349
+ maxWidth: "none",
1350
+ maxHeight: "none",
1351
+ margin: "0",
1352
+ flex: "none"
1353
+ }), () => {
1354
+ d(), p == null || p.remove();
1355
+ };
1356
+ }
1357
+ function vt(t, e, n) {
1278
1358
  const o = (s, l) => `${l > 0 ? s / l * 100 : 0}%`, i = [
1279
1359
  o(e.top, t.height),
1280
1360
  o(e.right, t.width),
@@ -1283,8 +1363,8 @@ function Pt(t, e, n) {
1283
1363
  ].join(" "), r = n.map((s) => o(s.x, t.width)).join(" "), c = n.map((s) => o(s.y, t.height)).join(" ");
1284
1364
  return `inset(${i} round ${r} / ${c})`;
1285
1365
  }
1286
- const Ut = "data-hero-enter-key", Bt = "data-hero-exit-key", ct = "data-hero-key";
1287
- class zn {
1366
+ const Ut = "data-hero-enter-key", Zt = "data-hero-exit-key", lt = "data-hero-key";
1367
+ class Un {
1288
1368
  constructor() {
1289
1369
  R(this, "previousFromOpacity", "");
1290
1370
  }
@@ -1299,66 +1379,82 @@ class zn {
1299
1379
  }), {};
1300
1380
  }
1301
1381
  }
1302
- const Vn = () => new zn();
1303
- function Xn(t, e) {
1304
- const n = new Set(
1305
- e.map((c) => ne(c) ?? c)
1306
- ), o = /* @__PURE__ */ new Set();
1382
+ const Zn = () => new Un();
1383
+ function jn(t, e) {
1384
+ const n = new Set(e), o = /* @__PURE__ */ new Set();
1307
1385
  for (const c of n) {
1308
1386
  let s = c.parentElement;
1309
1387
  for (; s && s !== t; )
1310
1388
  o.add(s), s = s.parentElement;
1311
1389
  }
1312
1390
  const i = [], r = (c) => {
1313
- if (!n.has(c)) {
1391
+ var s;
1392
+ if (!(n.has(c) || ((s = c.getAttribute) == null ? void 0 : s.call(c, "data-hero-placeholder")) != null)) {
1314
1393
  if (c !== t && !o.has(c)) {
1315
1394
  i.push(c);
1316
1395
  return;
1317
1396
  }
1318
- for (const s of Array.from(c.children))
1319
- s instanceof HTMLElement && r(s);
1397
+ for (const l of Array.from(c.children))
1398
+ l instanceof HTMLElement && r(l);
1320
1399
  }
1321
1400
  };
1322
1401
  return r(t), i;
1323
1402
  }
1324
- class Wn {
1403
+ class Gn {
1325
1404
  contribute(e) {
1326
- const { from: n, to: o, resolved: i, physics: r, onComplete: c } = e, s = Xn(
1327
- o,
1328
- i.pairs.map((u) => u.toEl)
1329
- ).map((u) => ({
1405
+ const { from: n, to: o, resolved: i, physics: r, onComplete: c } = e, s = i.pairs.map(
1406
+ (u) => oe(u.toEl) ?? u.toEl
1407
+ ), l = (s.length ? jn(o, s) : [o]).map((u) => ({
1330
1408
  element: u,
1331
1409
  opacity: u.style.opacity,
1332
1410
  willChange: u.style.willChange,
1333
1411
  targetOpacity: Number.parseFloat(getComputedStyle(u).opacity) || 0
1334
- })), l = n.style.opacity, a = o.style.opacity, p = n.style.willChange, d = o.style.willChange;
1335
- o.style.opacity = "0", n.style.willChange = "opacity", o.style.willChange = "opacity";
1336
- for (const { element: u } of s)
1412
+ })), a = /* @__PURE__ */ new Set();
1413
+ for (const u of s)
1414
+ for (let y = u.parentElement; y && (a.add(y), y !== o); y = y.parentElement)
1415
+ ;
1416
+ const p = Array.from(a).map((u) => ({
1417
+ element: u,
1418
+ color: getComputedStyle(u).backgroundColor,
1419
+ previousColor: u.style.backgroundColor
1420
+ })).filter(
1421
+ ({ color: u }) => u && u !== "transparent" && u !== "rgba(0, 0, 0, 0)"
1422
+ ), d = n.style.opacity, m = n.style.willChange;
1423
+ n.style.willChange = "opacity";
1424
+ for (const { element: u } of l)
1337
1425
  u.style.opacity = "0", u.style.willChange = "opacity";
1426
+ for (const { element: u } of p)
1427
+ u.style.backgroundColor = "transparent";
1338
1428
  return c(() => {
1339
- n.style.opacity = l, o.style.opacity = a, n.style.willChange = p, o.style.willChange = d;
1340
- for (const { element: u, opacity: f, willChange: m } of s)
1341
- u.style.opacity = f, u.style.willChange = m;
1429
+ n.style.opacity = d, n.style.willChange = m;
1430
+ for (const { element: u, opacity: y, willChange: h } of l)
1431
+ u.style.opacity = y, u.style.willChange = h;
1432
+ for (const { element: u, previousColor: y } of p)
1433
+ u.style.backgroundColor = y;
1342
1434
  }), {
1343
1435
  out: [
1344
1436
  new w({
1345
1437
  element: n,
1346
1438
  integrator: C.from(r),
1347
- style: (u, f) => ({ opacity: f })
1439
+ style: (u, y) => ({ opacity: y })
1348
1440
  })
1349
1441
  ],
1350
1442
  in: [
1351
- new w({
1352
- element: o,
1353
- integrator: C.from(r),
1354
- style: (u) => ({ opacity: u })
1355
- }),
1356
- ...s.map(
1357
- ({ element: u, targetOpacity: f }) => new w({
1443
+ ...l.map(
1444
+ ({ element: u, targetOpacity: y }) => new w({
1358
1445
  element: u,
1359
1446
  integrator: C.from(r),
1360
- style: (m) => ({
1361
- opacity: Math.min(1, Math.max(0, m)) * f
1447
+ style: (h) => ({
1448
+ opacity: Math.min(1, Math.max(0, h)) * y
1449
+ })
1450
+ })
1451
+ ),
1452
+ ...p.map(
1453
+ ({ element: u, color: y }) => new w({
1454
+ element: u,
1455
+ integrator: C.from(r),
1456
+ style: (h) => ({
1457
+ backgroundColor: `color-mix(in srgb, ${y} ${Math.min(1, Math.max(0, h)) * 100}%, transparent)`
1362
1458
  })
1363
1459
  })
1364
1460
  )
@@ -1366,20 +1462,20 @@ class Wn {
1366
1462
  };
1367
1463
  }
1368
1464
  }
1369
- const Un = () => new Wn(), Bn = {
1370
- static: Vn,
1371
- fade: Un
1372
- }, Zn = {
1465
+ const qn = () => new Gn(), Kn = {
1466
+ static: Zn,
1467
+ fade: qn
1468
+ }, Jn = {
1373
1469
  spring: { stiffness: 320, damping: 30 }
1374
- }, Gn = () => Zn, jn = {
1470
+ }, Qn = () => Jn, to = {
1375
1471
  spring: { stiffness: 300, damping: 30, doubleSpring: 1 }
1376
- }, qn = () => jn, Kn = {
1377
- default: Gn,
1378
- smooth: qn
1379
- }, Jn = 700, Qn = "data-hero-aspect-ratio", to = "data-hero-radius";
1380
- function Zt(t, e, n, o) {
1472
+ }, eo = () => to, no = {
1473
+ default: Qn,
1474
+ smooth: eo
1475
+ }, oo = 700, io = "data-hero-aspect-ratio", ro = "data-hero-radius";
1476
+ function jt(t, e, n, o) {
1381
1477
  const i = (c) => {
1382
- const s = V(t, c);
1478
+ const s = L(t, c);
1383
1479
  return {
1384
1480
  left: s.left + t.scrollLeft,
1385
1481
  top: s.top + t.scrollTop,
@@ -1390,11 +1486,11 @@ function Zt(t, e, n, o) {
1390
1486
  return Ct(e, r, i, {
1391
1487
  clipRoot: o,
1392
1488
  fallbackFit: n,
1393
- legacyAspectRatioAttribute: Qn,
1394
- legacyRadiusAttribute: to
1489
+ legacyAspectRatioAttribute: io,
1490
+ legacyRadiusAttribute: ro
1395
1491
  });
1396
1492
  }
1397
- function q(t, e) {
1493
+ function Q(t, e) {
1398
1494
  const n = /* @__PURE__ */ new Map(), o = t.querySelectorAll(`[${e}]`);
1399
1495
  for (const i of Array.from(o)) {
1400
1496
  const r = i.getAttribute(e);
@@ -1402,155 +1498,180 @@ function q(t, e) {
1402
1498
  }
1403
1499
  return n;
1404
1500
  }
1405
- function eo(t, e) {
1406
- const n = [], o = q(e, Ut), i = q(t, Bt);
1501
+ function so(t, e) {
1502
+ const n = [], o = Q(e, Ut), i = Q(t, Zt);
1407
1503
  for (const [s, l] of o) {
1408
1504
  const a = i.get(s);
1409
1505
  a && n.push({
1410
1506
  key: s,
1411
1507
  fromEl: a,
1412
1508
  toEl: l,
1413
- fromFit: N("exit"),
1414
- toFit: N("enter")
1509
+ fromFit: X("exit"),
1510
+ toFit: X("enter")
1415
1511
  });
1416
1512
  }
1417
- const r = q(t, Ut), c = q(e, Bt);
1513
+ const r = Q(t, Ut), c = Q(e, Zt);
1418
1514
  for (const [s, l] of r) {
1419
1515
  const a = c.get(s);
1420
1516
  a && n.push({
1421
1517
  key: s,
1422
1518
  fromEl: l,
1423
1519
  toEl: a,
1424
- fromFit: N("enter"),
1425
- toFit: N("exit")
1520
+ fromFit: X("enter"),
1521
+ toFit: X("exit")
1426
1522
  });
1427
1523
  }
1428
1524
  return n;
1429
1525
  }
1430
- function no(t, e) {
1526
+ function ao(t, e) {
1431
1527
  const n = [], o = Array.from(
1432
- e.querySelectorAll(`[${ct}]`)
1528
+ e.querySelectorAll(`[${lt}]`)
1433
1529
  );
1434
1530
  for (const i of o) {
1435
- const r = i.getAttribute(ct);
1531
+ const r = i.getAttribute(lt);
1436
1532
  if (!r) continue;
1437
1533
  const c = t.querySelector(
1438
- `[${ct}="${r}"]`
1534
+ `[${lt}="${r}"]`
1439
1535
  );
1440
1536
  c && n.push({
1441
1537
  key: r,
1442
1538
  fromEl: c,
1443
1539
  toEl: i,
1444
- fromFit: N("legacy"),
1445
- toFit: N("legacy")
1540
+ fromFit: X("legacy"),
1541
+ toFit: X("legacy")
1446
1542
  });
1447
1543
  }
1448
1544
  return n;
1449
1545
  }
1450
- function oo(t, e) {
1451
- const n = eo(t, e);
1452
- return n.length > 0 ? n : no(t, e);
1546
+ function co(t, e) {
1547
+ const n = so(t, e);
1548
+ return n.length > 0 ? n : ao(t, e);
1453
1549
  }
1454
- function io(t, e) {
1455
- return re(t, e);
1550
+ function lo(t, e) {
1551
+ return se(t, e);
1456
1552
  }
1457
- function ro(t, e) {
1553
+ function po(t, e) {
1458
1554
  return t.radiusSource === "unsupported" || e.radiusSource === "unsupported" ? !1 : t.mediaElement !== null || e.mediaElement !== null || t.radiusSource === "computed" || t.radiusSource === "legacy" || e.radiusSource === "computed" || e.radiusSource === "legacy";
1459
1555
  }
1460
- function so(t, e, n, o, i) {
1461
- const { fromEl: r, toEl: c } = e, [s, l] = io(
1462
- Zt(t, r, e.fromFit, o),
1463
- Zt(t, c, e.toFit, i)
1464
- ), a = s.content, p = s.window, d = l.content, u = l.window, f = l.clipInset, m = s.radiusSource === "unsupported" || l.radiusSource === "unsupported", y = m ? 0 : s.radius, h = m ? 0 : l.radius;
1465
- if (a.width === 0 || a.height === 0 || p.width === 0 || p.height === 0 || d.width === 0 || d.height === 0 || u.width === 0 || u.height === 0)
1556
+ function uo(t, e, n, o, i) {
1557
+ const { fromEl: r, toEl: c } = e, [s, l] = lo(
1558
+ jt(t, r, e.fromFit, o),
1559
+ jt(t, c, e.toFit, i)
1560
+ ), a = s.content, p = s.window, d = l.content, m = l.window, u = l.clipInset, y = s.radiusSource === "unsupported" || l.radiusSource === "unsupported", h = y ? 0 : s.radius, f = y ? 0 : l.radius;
1561
+ if (a.width === 0 || a.height === 0 || p.width === 0 || p.height === 0 || d.width === 0 || d.height === 0 || m.width === 0 || m.height === 0)
1466
1562
  return null;
1467
1563
  const b = Math.max(
1468
1564
  a.width / d.width,
1469
1565
  a.height / d.height
1470
- ), g = M(a), x = D(a), $ = M(d), v = D(d), _ = g - $, S = x - v;
1471
- if (Math.abs(S) > n) return null;
1472
- const E = B(
1566
+ ), g = D(a), S = Y(a), $ = D(d), v = Y(d), O = g - $, x = S - v;
1567
+ if (Math.abs(x) > n) return null;
1568
+ const E = G(
1473
1569
  d,
1474
- se(d, a, p, b, b)
1570
+ ae(d, a, p, b, b)
1475
1571
  );
1476
1572
  return {
1477
1573
  toContent: d,
1478
1574
  fromVisualEl: s.mediaElement ?? r,
1479
1575
  toVisualEl: l.mediaElement ?? c,
1480
- resetCloneRadius: ro(s, l),
1481
- styleFor: (O, F) => {
1482
- const Q = F * _, j = F * S, L = O + F * b, tt = s.cornerRadii ?? [
1483
- y,
1484
- y,
1485
- y,
1486
- y
1487
- ], ue = l.cornerRadii ?? [
1576
+ resetRadius: po(s, l),
1577
+ styleFor: (F, k, A) => {
1578
+ const V = (k * O + (A ? $ - D(A.box) : 0)) / ((A == null ? void 0 : A.scaleX) ?? 1), N = (k * x + (A ? v - Y(A.box) : 0)) / ((A == null ? void 0 : A.scaleY) ?? 1), z = F + k * b, fe = s.cornerRadii ?? [
1488
1579
  h,
1489
1580
  h,
1490
1581
  h,
1491
1582
  h
1492
- ], fe = tt.map((be, we) => {
1493
- const vt = Math.max(0, be * F + ue[we] * O) / Math.max(Math.abs(L), 1e-6);
1494
- return { x: vt, y: vt };
1495
- }), he = E.top * F + f.top * O, ye = E.right * F + f.right * O, me = E.bottom * F + f.bottom * O, ge = E.left * F + f.left * O;
1583
+ ], he = l.cornerRadii ?? [
1584
+ f,
1585
+ f,
1586
+ f,
1587
+ f
1588
+ ], ye = fe.map((Se, xe) => {
1589
+ const At = Math.max(0, Se * k + he[xe] * F) / Math.max(Math.abs(z), 1e-6);
1590
+ return { x: At, y: At };
1591
+ }), me = E.top * k + u.top * F, ge = E.right * k + u.right * F, be = E.bottom * k + u.bottom * F, we = E.left * k + u.left * F;
1496
1592
  return {
1497
- transform: `translate(${Q}px, ${j}px) scale(${L})`,
1498
- clipPath: Pt(
1593
+ transform: A ? `translate(${V}px, ${N}px) scale(${z * d.width / A.box.width}, ${z * d.height / A.box.height})` : `translate(${V}px, ${N}px) scale(${z})`,
1594
+ clipPath: vt(
1499
1595
  d,
1500
1596
  {
1501
- top: he,
1502
- right: ye,
1503
- bottom: me,
1504
- left: ge
1597
+ top: me,
1598
+ right: ge,
1599
+ bottom: be,
1600
+ left: we
1505
1601
  },
1506
- fe
1602
+ ye
1507
1603
  )
1508
1604
  };
1509
1605
  }
1510
1606
  };
1511
1607
  }
1512
- function ao(t, e) {
1608
+ function fo(t, e) {
1513
1609
  t.style.transform = e.transform, t.style.clipPath = e.clipPath;
1514
1610
  }
1515
- class co {
1611
+ class ho {
1516
1612
  contribute(e) {
1517
- const { resolved: n, physics: o, positionedParent: i, maxDistance: r, onComplete: c } = e, s = [];
1518
- for (const l of n.pairs) {
1519
- const a = so(
1613
+ const { resolved: n, physics: o, positionedParent: i, maxDistance: r, onComplete: c } = e;
1614
+ c(Vn(e.from, e.to));
1615
+ const s = n.pairs.flatMap((a) => {
1616
+ const p = uo(
1520
1617
  i,
1521
- l,
1618
+ a,
1522
1619
  r,
1523
1620
  e.from,
1524
1621
  e.to
1525
1622
  );
1526
- if (!a) continue;
1527
- const { fromVisualEl: p, toVisualEl: d } = a, u = d.cloneNode(!0);
1528
- u.style.position = "absolute", u.style.left = `${a.toContent.left}px`, u.style.top = `${a.toContent.top}px`, u.style.width = `${a.toContent.width}px`, u.style.height = `${a.toContent.height}px`, u.style.margin = "0", u.style.transformOrigin = "center center", u.style.zIndex = "1000", u.style.willChange = "transform, clip-path", u.style.pointerEvents = "none", u.style.maxWidth = "none", u.style.maxHeight = "none", a.resetCloneRadius && (u.style.borderRadius = "0"), ao(u, a.styleFor(0, 1)), i.appendChild(u);
1529
- const f = p.style.opacity, m = d.style.opacity;
1530
- p.style.opacity = "0", d.style.opacity = "0", c(() => {
1531
- p.style.opacity = f, d.style.opacity = m, u.parentElement && u.parentElement.removeChild(u);
1532
- }), s.push(
1623
+ return p ? [{ pair: a, plan: p }] : [];
1624
+ });
1625
+ e.resolved = { pairs: s.map(({ pair: a }) => a) };
1626
+ const l = [];
1627
+ for (const { plan: a } of s) {
1628
+ const { fromVisualEl: p, toVisualEl: d } = a, m = Xn(d), u = q(p, ["opacity"]), y = q(d, [
1629
+ "transform",
1630
+ "transform-origin",
1631
+ "clip-path",
1632
+ "object-fit",
1633
+ "border-radius",
1634
+ "will-change"
1635
+ ]);
1636
+ d.style.transform = "none", d.style.transformOrigin = "center center", d.style.willChange = "transform, clip-path", a.resetRadius && (d.style.borderRadius = "0");
1637
+ const h = Bn(
1638
+ d,
1639
+ a.toContent,
1640
+ L(i, d)
1641
+ ), f = L(i, d), b = {
1642
+ box: {
1643
+ left: f.left + i.scrollLeft,
1644
+ top: f.top + i.scrollTop,
1645
+ width: f.width,
1646
+ height: f.height
1647
+ },
1648
+ scaleX: d.offsetWidth && Math.abs(f.width - d.offsetWidth) > 0.5 ? f.width / d.offsetWidth : 1,
1649
+ scaleY: d.offsetHeight && Math.abs(f.height - d.offsetHeight) > 0.5 ? f.height / d.offsetHeight : 1
1650
+ }, g = (S, $) => a.styleFor(S, $, b);
1651
+ fo(d, g(0, 1)), p.style.opacity = "0", c(() => {
1652
+ h(), y(), u(), m();
1653
+ }), l.push(
1533
1654
  new w({
1534
- element: u,
1655
+ element: d,
1535
1656
  integrator: C.from(o),
1536
- style: a.styleFor
1657
+ style: g
1537
1658
  })
1538
1659
  );
1539
1660
  }
1540
- return { shared: s };
1661
+ return { shared: l };
1541
1662
  }
1542
1663
  }
1543
- function lo(t) {
1544
- return [new co(), Bn[t.type]()];
1664
+ function yo(t) {
1665
+ return [new ho(), Kn[t.type]()];
1545
1666
  }
1546
- const po = (t) => {
1547
- const e = Kn[t.variant](), n = Jn, o = {
1667
+ const mo = (t) => {
1668
+ const e = no[t.variant](), n = oo, o = {
1548
1669
  prepare: (i) => {
1549
1670
  var l;
1550
- const r = lo(t), c = Promise.all([
1671
+ const r = yo(t), c = Promise.all([
1551
1672
  i.from,
1552
1673
  i.to
1553
- ]).then(([a, p]) => ({ pairs: oo(a, p) })), s = {
1674
+ ]).then(([a, p]) => ({ pairs: co(a, p) })), s = {
1554
1675
  from: i.from,
1555
1676
  to: i.to,
1556
1677
  resolved: c
@@ -1560,11 +1681,11 @@ const po = (t) => {
1560
1681
  return c.then((a) => ({ resolved: a, strategies: r }));
1561
1682
  },
1562
1683
  animation: ({ from: i, to: r, context: c, resolved: s, strategies: l }) => {
1563
- var y;
1684
+ var h;
1564
1685
  if (s.pairs.length === 0)
1565
- return W({ shared: [], out: [], in: [] });
1566
- const a = [], p = (h) => {
1567
- a.push(h);
1686
+ return Z({ shared: [], out: [], in: [] });
1687
+ const a = [], p = (f) => {
1688
+ a.push(f);
1568
1689
  }, d = {
1569
1690
  from: i,
1570
1691
  to: r,
@@ -1573,27 +1694,29 @@ const po = (t) => {
1573
1694
  positionedParent: c.positionedParent,
1574
1695
  maxDistance: n,
1575
1696
  onComplete: p
1576
- }, u = {
1697
+ }, m = {
1577
1698
  shared: [],
1578
1699
  out: [],
1579
1700
  in: []
1580
1701
  };
1581
- for (const h of l) {
1582
- const b = (y = h.contribute) == null ? void 0 : y.call(h, d);
1702
+ for (const f of l) {
1703
+ const b = (h = f.contribute) == null ? void 0 : h.call(f, d);
1583
1704
  if (b)
1584
- for (const g of Object.keys(u))
1585
- u[g].push(...b[g] ?? []);
1705
+ for (const g of Object.keys(m))
1706
+ m[g].push(...b[g] ?? []);
1586
1707
  }
1587
- const f = W(u), m = f.onComplete;
1588
- return f.onComplete = () => {
1589
- m == null || m();
1590
- for (const h of a)
1708
+ const u = Z(m), y = u.onComplete;
1709
+ return u.onComplete = () => {
1710
+ y == null || y();
1711
+ for (const f of Object.values(m).flat())
1712
+ f instanceof w && f.releaseFill();
1713
+ for (const f of a)
1591
1714
  try {
1592
- h();
1715
+ f();
1593
1716
  } catch (b) {
1594
1717
  console.error("[hero] cleanup error", b);
1595
1718
  }
1596
- }, f;
1719
+ }, u;
1597
1720
  }
1598
1721
  };
1599
1722
  return I({
@@ -1601,28 +1724,28 @@ const po = (t) => {
1601
1724
  backward: o
1602
1725
  });
1603
1726
  };
1604
- function _i(t = {}, e = {}) {
1727
+ function Mi(t = {}, e = {}) {
1605
1728
  const n = t.type ?? "static", o = t.variant ?? "default";
1606
- return A(po({ type: n, variant: o }), e.override);
1729
+ return _(mo({ type: n, variant: o }), e.override);
1607
1730
  }
1608
- const uo = {
1731
+ const go = {
1609
1732
  spring: { stiffness: 50, damping: 30 }
1610
- }, fo = {
1733
+ }, bo = {
1611
1734
  spring: { stiffness: 80, damping: 25 }
1612
- }, ho = (t = {}) => {
1613
- const e = t.physics ?? uo, n = t.initialRotation ?? 45, o = t.initialScale ?? 0.01, i = t.rotationTriggerPoint ?? 0.8, r = {
1735
+ }, wo = (t = {}) => {
1736
+ const e = t.physics ?? go, n = t.initialRotation ?? 45, o = t.initialScale ?? 0.01, i = t.rotationTriggerPoint ?? 0.8, r = {
1614
1737
  prepare: ({ from: c, to: s, context: l }) => (c.then((a) => {
1615
1738
  a.style.opacity = "1";
1616
1739
  }), s.then((a) => {
1617
- const p = Y(l, "to"), d = Math.min(p.width, p.height) * 0.4;
1740
+ const p = H(l, "to"), d = Math.min(p.width, p.height) * 0.4;
1618
1741
  a.style.setProperty("--max-border-radius", `${d}px`), a.style.setProperty("--border-radius-scale", "1"), a.style.willChange = "transform", a.style.backfaceVisibility = "hidden";
1619
- const u = p.left + p.width / 2, f = p.top + p.height / 2;
1620
- a.style.transformOrigin = `${u}px ${f}px`, a.style.position = "fixed", a.style.top = `${p.top}px`, a.style.left = `${p.left}px`, a.style.width = `${p.width}px`, a.style.height = `${p.height}px`, a.style.zIndex = "1000", a.style.overflow = "hidden", a.style.transform = `rotate(${n}deg) scale(${o}) translateZ(0)`, a.style.borderRadius = "calc(var(--max-border-radius) * var(--border-radius-scale))", a.style.opacity = "1";
1742
+ const m = p.left + p.width / 2, u = p.top + p.height / 2;
1743
+ a.style.transformOrigin = `${m}px ${u}px`, a.style.position = "fixed", a.style.top = `${p.top}px`, a.style.left = `${p.left}px`, a.style.width = `${p.width}px`, a.style.height = `${p.height}px`, a.style.zIndex = "1000", a.style.overflow = "hidden", a.style.transform = `rotate(${n}deg) scale(${o}) translateZ(0)`, a.style.borderRadius = "calc(var(--max-border-radius) * var(--border-radius-scale))", a.style.opacity = "1";
1621
1744
  }), {}),
1622
1745
  animation: ({ from: c, to: s }) => {
1623
1746
  const l = new w({
1624
1747
  element: c,
1625
- integrator: C.from(fo),
1748
+ integrator: C.from(bo),
1626
1749
  style: (p, d) => ({ opacity: d }),
1627
1750
  // The outgoing node is reused (re-hidden, shown again on the next
1628
1751
  // navigation), so reset every inline style we wrote to it — mirroring
@@ -1639,30 +1762,30 @@ const uo = {
1639
1762
  if (p <= 0.05)
1640
1763
  d = o;
1641
1764
  else if (p <= i) {
1642
- const y = (p - 0.05) / (i - 0.05), h = Math.pow(y, 9);
1643
- d = o + (0.8 - o) * h;
1765
+ const h = (p - 0.05) / (i - 0.05), f = Math.pow(h, 9);
1766
+ d = o + (0.8 - o) * f;
1644
1767
  } else {
1645
- const y = (p - i) / (1 - i);
1646
- d = 0.8 + 0.2 * (1 - Math.pow(1 - y, 3));
1768
+ const h = (p - i) / (1 - i);
1769
+ d = 0.8 + 0.2 * (1 - Math.pow(1 - h, 3));
1647
1770
  }
1648
- const u = 0.7;
1649
- let f;
1650
- if (p <= u)
1651
- f = n;
1771
+ const m = 0.7;
1772
+ let u;
1773
+ if (p <= m)
1774
+ u = n;
1652
1775
  else {
1653
- const y = (p - u) / (1 - u), h = 1 - Math.pow(1 - y, 2);
1654
- f = n * (1 - h);
1776
+ const h = (p - m) / (1 - m), f = 1 - Math.pow(1 - h, 2);
1777
+ u = n * (1 - f);
1655
1778
  }
1656
- let m;
1657
- if (p <= u)
1658
- m = 1;
1779
+ let y;
1780
+ if (p <= m)
1781
+ y = 1;
1659
1782
  else {
1660
- const y = (p - u) / (1 - u);
1661
- m = 1 - Math.pow(y, 0.5);
1783
+ const h = (p - m) / (1 - m);
1784
+ y = 1 - Math.pow(h, 0.5);
1662
1785
  }
1663
1786
  return {
1664
- transform: `rotate(${f.toFixed(2)}deg) scale(${d.toFixed(4)}) translateZ(0)`,
1665
- "--border-radius-scale": m.toFixed(4)
1787
+ transform: `rotate(${u.toFixed(2)}deg) scale(${d.toFixed(4)}) translateZ(0)`,
1788
+ "--border-radius-scale": y.toFixed(4)
1666
1789
  };
1667
1790
  },
1668
1791
  onComplete: () => {
@@ -1677,13 +1800,13 @@ const uo = {
1677
1800
  };
1678
1801
  return I({ forward: r, backward: r });
1679
1802
  };
1680
- function Oi(t = {}, e = {}) {
1681
- return A(ho(), e.override);
1803
+ function Di(t = {}, e = {}) {
1804
+ return _(wo(), e.override);
1682
1805
  }
1683
- const yo = {
1806
+ const So = {
1684
1807
  spring: { stiffness: 100, damping: 30 }
1685
- }, mo = (t = {}) => {
1686
- const e = t.physics ?? yo, n = {
1808
+ }, xo = (t = {}) => {
1809
+ const e = t.physics ?? So, n = {
1687
1810
  prepare: ({ from: o, to: i }) => (o.then((r) => {
1688
1811
  r.style.transformOrigin = "center center", r.style.willChange = "transform, opacity";
1689
1812
  }), i.then((r) => {
@@ -1723,10 +1846,10 @@ const yo = {
1723
1846
  };
1724
1847
  return I({ forward: n, backward: n });
1725
1848
  };
1726
- function Fi(t = {}, e = {}) {
1727
- return A(mo(), e.override);
1849
+ function Yi(t = {}, e = {}) {
1850
+ return _(xo(), e.override);
1728
1851
  }
1729
- const go = {
1852
+ const Co = {
1730
1853
  spring: {
1731
1854
  stiffness: 20,
1732
1855
  damping: 8,
@@ -1734,9 +1857,9 @@ const go = {
1734
1857
  restDelta: 1e-3,
1735
1858
  restSpeed: 1e-3
1736
1859
  }
1737
- }, bo = (t = {}) => {
1738
- const e = t.physics ?? go, n = t.directional ?? !0, o = (i) => {
1739
- const r = !n || i === "forward", c = r ? T : k, s = r ? k : T;
1860
+ }, Eo = (t = {}) => {
1861
+ const e = t.physics ?? Co, n = t.directional ?? !0, o = (i) => {
1862
+ const r = !n || i === "forward", c = r ? T : M, s = r ? M : T;
1740
1863
  return {
1741
1864
  prepare: ({ from: l, to: a }) => (l.then((p) => {
1742
1865
  p.style.zIndex = c, p.style.willChange = "transform", p.style.backfaceVisibility = "hidden", p.style.contain = "layout paint", p.style.pointerEvents = "none";
@@ -1744,10 +1867,10 @@ const go = {
1744
1867
  p.style.willChange = "transform", p.style.backfaceVisibility = "hidden", p.style.contain = "layout paint", p.style.position = "relative", p.style.zIndex = s;
1745
1868
  }), {}),
1746
1869
  animation: ({ from: l, to: a }) => {
1747
- const p = l.offsetHeight, d = a.offsetHeight, u = window.innerHeight, f = Math.max(Math.min(p, d), u), m = new w({
1870
+ const p = l.offsetHeight, d = a.offsetHeight, m = window.innerHeight, u = Math.max(Math.min(p, d), m), y = new w({
1748
1871
  element: l,
1749
1872
  integrator: C.from(e),
1750
- style: (h) => ({ transform: `translate3d(0, ${r ? -f * h : f * h}px, 0)` }),
1873
+ style: (f) => ({ transform: `translate3d(0, ${r ? -u * f : u * f}px, 0)` }),
1751
1874
  // The outgoing node is the real, reused element (re-hidden then shown
1752
1875
  // again on the next navigation), so mirror the incoming cleanup and
1753
1876
  // also reset the out-only props applied in prepare (zIndex,
@@ -1756,16 +1879,16 @@ const go = {
1756
1879
  onComplete: () => {
1757
1880
  l.style.willChange = "auto", l.style.backfaceVisibility = "", l.style.contain = "", l.style.transform = "", l.style.pointerEvents = "", l.style.zIndex = "";
1758
1881
  }
1759
- }), y = new w({
1882
+ }), h = new w({
1760
1883
  element: a,
1761
1884
  integrator: C.from(e),
1762
- style: (h, b) => ({ transform: `translate3d(0, ${r ? b * f : b * -f}px, 0)` }),
1885
+ style: (f, b) => ({ transform: `translate3d(0, ${r ? b * u : b * -u}px, 0)` }),
1763
1886
  onComplete: () => {
1764
1887
  a.style.willChange = "auto", a.style.backfaceVisibility = "", a.style.contain = "", a.style.transform = "", a.style.position === "relative" && (a.style.position = ""), a.style.zIndex === s && (a.style.zIndex = "");
1765
1888
  }
1766
1889
  });
1767
- return [m, y].forEach(U), new P(
1768
- { out: m, in: y },
1890
+ return [y, h].forEach(j), new P(
1891
+ { out: y, in: h },
1769
1892
  { mode: "parallel" }
1770
1893
  );
1771
1894
  }
@@ -1776,57 +1899,57 @@ const go = {
1776
1899
  backward: o("backward")
1777
1900
  });
1778
1901
  };
1779
- function Ti(t = {}, e = {}) {
1902
+ function Li(t = {}, e = {}) {
1780
1903
  const { type: n = "directional" } = t;
1781
- return A(
1782
- bo({ directional: n === "directional" }),
1904
+ return _(
1905
+ Eo({ directional: n === "directional" }),
1783
1906
  e.override
1784
1907
  );
1785
1908
  }
1786
- const wo = {
1909
+ const $o = {
1787
1910
  spring: { stiffness: 200, damping: 24 }
1788
- }, So = {
1911
+ }, Po = {
1789
1912
  inertia: { acceleration: 25, resistance: 1.2 }
1790
- }, lt = 0.2;
1791
- function Co() {
1913
+ }, pt = 0.2;
1914
+ function vo() {
1792
1915
  return {
1793
- enterPhysics: wo,
1794
- exitPhysics: So,
1916
+ enterPhysics: $o,
1917
+ exitPhysics: Po,
1795
1918
  background: {
1796
1919
  willChange: "transform, opacity",
1797
1920
  enterStyle: (t, e) => ({
1798
- transform: `scale(${1 - lt * t})`,
1921
+ transform: `scale(${1 - pt * t})`,
1799
1922
  opacity: e
1800
1923
  }),
1801
1924
  exitStyle: (t) => ({
1802
- transform: `scale(${1 - lt + lt * t})`,
1925
+ transform: `scale(${1 - pt + pt * t})`,
1803
1926
  opacity: t
1804
1927
  })
1805
1928
  }
1806
1929
  };
1807
1930
  }
1808
- const xo = {
1931
+ const Ao = {
1809
1932
  spring: { stiffness: 200, damping: 24 }
1810
- }, Eo = {
1933
+ }, Ro = {
1811
1934
  inertia: { acceleration: 25, resistance: 1.2 }
1812
- }, pt = 0.08, $o = 16, dt = 0.6, Po = (t) => `blur(${Math.max(0, t).toFixed(2)}px)`;
1813
- function vo() {
1935
+ }, dt = 0.08, Io = 16, ut = 0.6, _o = (t) => `blur(${Math.max(0, t).toFixed(2)}px)`;
1936
+ function Oo() {
1814
1937
  return {
1815
- enterPhysics: xo,
1816
- exitPhysics: Eo,
1938
+ enterPhysics: Ao,
1939
+ exitPhysics: Ro,
1817
1940
  background: {
1818
1941
  willChange: "transform, opacity",
1819
1942
  // enter: t 0 → 1 as the sheet rises. At rest (t = 0) the page is
1820
1943
  // untouched; at peak it is shrunk and dimmed.
1821
1944
  enterStyle: (t) => ({
1822
- transform: `scale(${1 - pt * t})`,
1823
- opacity: 1 - (1 - dt) * t
1945
+ transform: `scale(${1 - dt * t})`,
1946
+ opacity: 1 - (1 - ut) * t
1824
1947
  }),
1825
1948
  // exit: t 0 → 1 as the sheet falls away and the page returns to rest —
1826
1949
  // the inverse ramp of enter.
1827
1950
  exitStyle: (t) => ({
1828
- transform: `scale(${1 - pt + pt * t})`,
1829
- opacity: dt + (1 - dt) * t
1951
+ transform: `scale(${1 - dt + dt * t})`,
1952
+ opacity: ut + (1 - ut) * t
1830
1953
  })
1831
1954
  },
1832
1955
  overlay: {
@@ -1844,27 +1967,27 @@ function vo() {
1844
1967
  // enter: 0 → MAX as the sheet rises (progress 0 → 1).
1845
1968
  // exit: MAX → 0 as it falls (progress 0 → 1, so the visual is inverted).
1846
1969
  style: (t, e) => {
1847
- const n = t === "enter" ? e : 1 - e, o = Po($o * n);
1970
+ const n = t === "enter" ? e : 1 - e, o = _o(Io * n);
1848
1971
  return { backdropFilter: o, WebkitBackdropFilter: o };
1849
1972
  }
1850
1973
  }
1851
1974
  };
1852
1975
  }
1853
- const Ro = {
1976
+ const Fo = {
1854
1977
  spring: {
1855
1978
  stiffness: 190,
1856
1979
  damping: 25
1857
1980
  }
1858
- }, Io = {
1981
+ }, ko = {
1859
1982
  spring: {
1860
1983
  stiffness: 190,
1861
1984
  damping: 25
1862
1985
  }
1863
1986
  };
1864
- function Ao() {
1987
+ function To() {
1865
1988
  return {
1866
- enterPhysics: Ro,
1867
- exitPhysics: Io,
1989
+ enterPhysics: Fo,
1990
+ exitPhysics: ko,
1868
1991
  background: {
1869
1992
  willChange: "",
1870
1993
  enterStyle: () => ({}),
@@ -1872,80 +1995,80 @@ function Ao() {
1872
1995
  }
1873
1996
  };
1874
1997
  }
1875
- const _o = {
1876
- static: Ao(),
1877
- "background-scale": Co(),
1878
- blur: vo()
1879
- }, Oo = "static", Fo = "transform", To = (t = {}) => {
1880
- const e = _o[t.type ?? Oo], n = e.background, o = e.overlay, i = n.willChange !== "", r = (c) => {
1998
+ const Mo = {
1999
+ static: To(),
2000
+ "background-scale": vo(),
2001
+ blur: Oo()
2002
+ }, Do = "static", Yo = "transform", Lo = (t = {}) => {
2003
+ const e = Mo[t.type ?? Do], n = e.background, o = e.overlay, i = n.willChange !== "", r = (c) => {
1881
2004
  const s = c === "forward" ? "enter" : "exit", l = s === "enter" ? "to" : "from", a = s === "enter" ? "from" : "to", p = s === "enter" ? e.enterPhysics : e.exitPhysics;
1882
2005
  return {
1883
- prepare: ({ from: d, to: u, context: f, createElement: m }) => {
1884
- const y = { from: d, to: u }[l], h = { from: d, to: u }[a];
1885
- y.then((g) => {
1886
- g.style.willChange = Fo, g.style.backfaceVisibility = "hidden", g.style.contain = "layout paint", g.style.zIndex = k, s === "enter" ? g.style.position = "relative" : g.style.pointerEvents = "none";
1887
- }), h.then((g) => {
2006
+ prepare: ({ from: d, to: m, context: u, createElement: y }) => {
2007
+ const h = { from: d, to: m }[l], f = { from: d, to: m }[a];
2008
+ h.then((g) => {
2009
+ g.style.willChange = Yo, g.style.backfaceVisibility = "hidden", g.style.contain = "layout paint", g.style.zIndex = M, s === "enter" ? g.style.position = "relative" : g.style.pointerEvents = "none";
2010
+ }), f.then((g) => {
1888
2011
  i && (g.style.willChange = n.willChange, g.style.backfaceVisibility = "hidden", g.style.contain = "layout paint"), g.style.zIndex = T, s === "enter" ? g.style.pointerEvents = "none" : g.style.position = "relative";
1889
2012
  });
1890
2013
  let b;
1891
- return o && (b = m("sheet-overlay"), Object.assign(b.style, o.initialStyle), b.style.willChange = o.willChange, f.positionedParent.appendChild(b)), { overlay: b };
2014
+ return o && (b = y("sheet-overlay"), Object.assign(b.style, o.initialStyle), b.style.willChange = o.willChange, u.positionedParent.appendChild(b)), { overlay: b };
1892
2015
  },
1893
- animation: ({ from: d, to: u, context: f, overlay: m }) => {
1894
- const y = { from: d, to: u }[l], h = { from: d, to: u }[a], b = Y(f, l), g = () => {
2016
+ animation: ({ from: d, to: m, context: u, overlay: y }) => {
2017
+ const h = { from: d, to: m }[l], f = { from: d, to: m }[a], b = H(u, l), g = () => {
1895
2018
  d.style.pointerEvents = "", d.style.zIndex = "";
1896
- }, x = () => {
1897
- const S = s === "enter" ? k : T;
1898
- u.style.position === "relative" && (u.style.position = ""), u.style.zIndex === S && (u.style.zIndex = "");
2019
+ }, S = () => {
2020
+ const x = s === "enter" ? M : T;
2021
+ m.style.position === "relative" && (m.style.position = ""), m.style.zIndex === x && (m.style.zIndex = "");
1899
2022
  };
1900
- y.style.clipPath = `inset(${b.top}px 0 calc(100% - ${b.top + b.height}px) 0)`;
1901
- const $ = s === "enter" ? (S, E) => ({
2023
+ h.style.clipPath = `inset(${b.top}px 0 calc(100% - ${b.top + b.height}px) 0)`;
2024
+ const $ = s === "enter" ? (x, E) => ({
1902
2025
  transform: `translate3d(0, ${E * b.height}px, 0)`
1903
- }) : (S) => ({
1904
- transform: `translate3d(0, ${S * b.height}px, 0)`
2026
+ }) : (x) => ({
2027
+ transform: `translate3d(0, ${x * b.height}px, 0)`
1905
2028
  }), v = new w({
1906
- element: y,
2029
+ element: h,
1907
2030
  integrator: C.from(p),
1908
2031
  style: $,
1909
2032
  onComplete: () => {
1910
- y.style.willChange = "auto", y.style.backfaceVisibility = "", y.style.contain = "", y.style.clipPath = "", y.style.transform = "", g(), x();
2033
+ h.style.willChange = "auto", h.style.backfaceVisibility = "", h.style.contain = "", h.style.clipPath = "", h.style.transform = "", g(), S();
1911
2034
  }
1912
2035
  });
1913
- U(v);
1914
- const _ = {
2036
+ j(v);
2037
+ const O = {
1915
2038
  sheet: v,
1916
2039
  background: new P([]),
1917
2040
  overlay: new P([])
1918
2041
  };
1919
2042
  if (i) {
1920
- const S = h.scrollHeight;
1921
- S > 0 && (h.style.height = `${S}px`);
1922
- const E = Y(f, a), O = E.left + E.width / 2, F = E.top + E.height / 2;
1923
- h.style.clipPath = `inset(${E.top}px 0 calc(100% - ${E.top + E.height}px) 0)`, h.style.transformOrigin = `${O}px ${F}px`;
1924
- const Q = s === "enter" ? (L, tt) => n.enterStyle(L, tt) : (L) => n.exitStyle(L), j = new w({
1925
- element: h,
2043
+ const x = f.scrollHeight;
2044
+ x > 0 && (f.style.height = `${x}px`);
2045
+ const E = H(u, a), F = E.left + E.width / 2, k = E.top + E.height / 2;
2046
+ f.style.clipPath = `inset(${E.top}px 0 calc(100% - ${E.top + E.height}px) 0)`, f.style.transformOrigin = `${F}px ${k}px`;
2047
+ const A = s === "enter" ? (N, z) => n.enterStyle(N, z) : (N) => n.exitStyle(N), V = new w({
2048
+ element: f,
1926
2049
  integrator: C.from(p),
1927
- style: Q,
2050
+ style: A,
1928
2051
  // The background is the reused outgoing (`from`) node on `enter` and
1929
2052
  // the surviving incoming (`to`) node on `exit` — in both cases its
1930
2053
  // inline styles must be cleared on settle so the reused node is not
1931
2054
  // left scaled/faded/clipped the next time it is shown. releaseFill
1932
2055
  // below drops the WAAPI fill so these resets actually take effect.
1933
2056
  onComplete: () => {
1934
- h.style.willChange = "auto", h.style.backfaceVisibility = "", h.style.contain = "", h.style.clipPath = "", h.style.transformOrigin = "", h.style.transform = "", h.style.opacity = "", h.style.height = "";
2057
+ f.style.willChange = "auto", f.style.backfaceVisibility = "", f.style.contain = "", f.style.clipPath = "", f.style.transformOrigin = "", f.style.transform = "", f.style.opacity = "", f.style.height = "";
1935
2058
  }
1936
2059
  });
1937
- U(j), _.background = j;
2060
+ j(V), O.background = V;
1938
2061
  }
1939
- if (m && o) {
1940
- m.style.zIndex = ee;
1941
- const S = Qt(f, "to");
1942
- m.style.top = `${S.top}px`, m.style.height = `${S.height}px`, _.overlay = new w({
1943
- element: m,
2062
+ if (y && o) {
2063
+ y.style.zIndex = ne;
2064
+ const x = te(u, "to");
2065
+ y.style.top = `${x.top}px`, y.style.height = `${x.height}px`, O.overlay = new w({
2066
+ element: y,
1944
2067
  integrator: C.from(p),
1945
2068
  style: (E) => o.style(s, E)
1946
2069
  });
1947
2070
  }
1948
- return new P(_, { mode: "parallel" });
2071
+ return new P(O, { mode: "parallel" });
1949
2072
  }
1950
2073
  };
1951
2074
  };
@@ -1954,15 +2077,15 @@ const _o = {
1954
2077
  backward: r("backward")
1955
2078
  });
1956
2079
  };
1957
- function ko(t) {
2080
+ function Ho(t) {
1958
2081
  return t === "scale" || t === "background-scale" ? "background-scale" : t === "blur" ? "blur" : "static";
1959
2082
  }
1960
- function ki(t = {}, e = {}) {
1961
- const n = t.type, o = ko(n);
1962
- return A(To({ type: o }), e.override);
2083
+ function Hi(t = {}, e = {}) {
2084
+ const n = t.type, o = Ho(n);
2085
+ return _(Lo({ type: o }), e.override);
1963
2086
  }
1964
- const Mo = (t = {}) => {
1965
- const e = t.physics ?? Ie, n = (o) => {
2087
+ const No = (t = {}) => {
2088
+ const e = t.physics ?? _e, n = (o) => {
1966
2089
  const i = o === "forward" ? 100 : -100;
1967
2090
  return {
1968
2091
  prepare: ({ from: r, to: c }) => (r.then((s) => {
@@ -1974,7 +2097,7 @@ const Mo = (t = {}) => {
1974
2097
  const s = new w({
1975
2098
  element: r,
1976
2099
  integrator: C.from(e),
1977
- style: (a) => ({ transform: `translate3d(${100 * J("slide", "out", o, a).x}%, 0, 0)` }),
2100
+ style: (a) => ({ transform: `translate3d(${100 * et("slide", "out", o, a).x}%, 0, 0)` }),
1978
2101
  // The outgoing node is the real Activity page and gets reused on the
1979
2102
  // next navigation, so reset every inline style we wrote to it (mirror
1980
2103
  // the incoming cleanup, plus the out-only pointerEvents).
@@ -1984,7 +2107,7 @@ const Mo = (t = {}) => {
1984
2107
  }), l = new w({
1985
2108
  element: c,
1986
2109
  integrator: C.from(e),
1987
- style: (a) => ({ transform: `translate3d(${100 * J("slide", "in", o, a).x}%, 0, 0)` }),
2110
+ style: (a) => ({ transform: `translate3d(${100 * et("slide", "in", o, a).x}%, 0, 0)` }),
1988
2111
  onComplete: () => {
1989
2112
  c.style.willChange = "auto", c.style.backfaceVisibility = "", c.style.contain = "", c.style.transform = "";
1990
2113
  }
@@ -2001,26 +2124,26 @@ const Mo = (t = {}) => {
2001
2124
  backward: n("backward")
2002
2125
  });
2003
2126
  };
2004
- function Mi(t = {}, e = {}) {
2005
- return A(Mo(), e.override);
2127
+ function Ni(t = {}, e = {}) {
2128
+ return _(No(), e.override);
2006
2129
  }
2007
- const Do = {
2130
+ const zo = {
2008
2131
  spring: { stiffness: 17, damping: 6 }
2009
- }, ut = 20, K = 800, Yo = (t = {}) => {
2010
- const e = t.physics ?? Do, n = {
2132
+ }, ft = 20, tt = 800, Wo = (t = {}) => {
2133
+ const e = t.physics ?? zo, n = {
2011
2134
  prepare: ({ from: o, to: i }) => (o.then((r) => {
2012
- r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.pointerEvents = "none", r.style.transform = `perspective(${K}px) rotateY(0deg) translate3d(0%, 0, 0)`;
2135
+ r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.pointerEvents = "none", r.style.transform = `perspective(${tt}px) rotateY(0deg) translate3d(0%, 0, 0)`;
2013
2136
  }), i.then((r) => {
2014
- r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.transform = `perspective(${K}px) rotateY(${ut}deg) translate3d(-100%, 0, 0)`;
2137
+ r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.transform = `perspective(${tt}px) rotateY(${ft}deg) translate3d(-100%, 0, 0)`;
2015
2138
  }), {}),
2016
2139
  animation: ({ from: o, to: i }) => {
2017
2140
  const r = new w({
2018
2141
  element: o,
2019
2142
  integrator: C.from(e),
2020
2143
  style: (s) => {
2021
- const l = -s * ut, a = s * 100;
2144
+ const l = -s * ft, a = s * 100;
2022
2145
  return {
2023
- transform: `perspective(${K}px) rotateY(${l}deg) translate3d(${a}%, 0, 0)`
2146
+ transform: `perspective(${tt}px) rotateY(${l}deg) translate3d(${a}%, 0, 0)`
2024
2147
  };
2025
2148
  },
2026
2149
  // The outgoing node is reused (Activity/cacheComponents re-hide it),
@@ -2033,9 +2156,9 @@ const Do = {
2033
2156
  element: i,
2034
2157
  integrator: C.from(e),
2035
2158
  style: (s, l) => {
2036
- const a = l * ut, p = -l * 100;
2159
+ const a = l * ft, p = -l * 100;
2037
2160
  return {
2038
- transform: `perspective(${K}px) rotateY(${a}deg) translate3d(${p}%, 0, 0)`
2161
+ transform: `perspective(${tt}px) rotateY(${a}deg) translate3d(${p}%, 0, 0)`
2039
2162
  };
2040
2163
  },
2041
2164
  onComplete: () => {
@@ -2050,13 +2173,13 @@ const Do = {
2050
2173
  };
2051
2174
  return I({ forward: n, backward: n });
2052
2175
  };
2053
- function Di(t = {}, e = {}) {
2054
- return A(Yo(), e.override);
2176
+ function zi(t = {}, e = {}) {
2177
+ return _(Wo(), e.override);
2055
2178
  }
2056
- function Lo(t, e) {
2179
+ function Xo(t, e) {
2057
2180
  return e.left >= t.left - 0.01 && e.top >= t.top - 0.01 && e.left + e.width <= t.left + t.width + 0.01 && e.top + e.height <= t.top + t.height + 0.01;
2058
2181
  }
2059
- function ae(t) {
2182
+ function ce(t) {
2060
2183
  const e = () => ({
2061
2184
  enterContent: t.enterRect,
2062
2185
  exitContent: t.exitRect,
@@ -2064,18 +2187,18 @@ function ae(t) {
2064
2187
  scaleX: t.exitRect.width / t.enterRect.width,
2065
2188
  scaleY: t.exitRect.height / t.enterRect.height
2066
2189
  }), { enterMedia: n, exitMedia: o } = t;
2067
- if (!n || !o || !ie(n, o)) return e();
2190
+ if (!n || !o || !re(n, o)) return e();
2068
2191
  const i = n.content, r = o.content;
2069
2192
  if (i.width <= 0 || i.height <= 0 || r.width <= 0 || r.height <= 0)
2070
2193
  return e();
2071
- const c = r.width / i.width, s = r.height / i.height, l = se(
2194
+ const c = r.width / i.width, s = r.height / i.height, l = ae(
2072
2195
  i,
2073
2196
  r,
2074
2197
  o.window,
2075
2198
  c,
2076
2199
  s
2077
2200
  );
2078
- return Lo(n.window, l) ? {
2201
+ return Xo(n.window, l) ? {
2079
2202
  enterContent: i,
2080
2203
  exitContent: r,
2081
2204
  startWindow: l,
@@ -2084,7 +2207,7 @@ function ae(t) {
2084
2207
  exitCornerRadii: o.cornerRadii
2085
2208
  } : e();
2086
2209
  }
2087
- function ce(t, e) {
2210
+ function le(t, e) {
2088
2211
  return {
2089
2212
  top: t.top,
2090
2213
  right: e.width - (t.left + t.width),
@@ -2092,80 +2215,80 @@ function ce(t, e) {
2092
2215
  left: t.left
2093
2216
  };
2094
2217
  }
2095
- function Ho(t, e, n) {
2218
+ function Vo(t, e, n) {
2096
2219
  return {
2097
2220
  x: t / Math.max(Math.abs(e), 1e-6),
2098
2221
  y: t / Math.max(Math.abs(n), 1e-6)
2099
2222
  };
2100
2223
  }
2101
- function le(t, e, n, o, i, r) {
2224
+ function pe(t, e, n, o, i, r) {
2102
2225
  return (n ?? [t]).map(
2103
- (c) => Ho(
2226
+ (c) => Vo(
2104
2227
  Math.max(0, c * o + e * (1 - o)),
2105
2228
  i,
2106
2229
  r
2107
2230
  )
2108
2231
  );
2109
2232
  }
2110
- function No(t) {
2111
- const { pageRect: e, scrollOffset: n, enterRadius: o, exitRadius: i } = t, r = ae(t), { enterContent: c, exitContent: s, startWindow: l, scaleX: a, scaleY: p } = r, d = s.left - c.left + (s.width - c.width) / 2 - n.x, u = s.top - c.top + (s.height - c.height) / 2 - n.y, f = ce(l, e);
2233
+ function Bo(t) {
2234
+ const { pageRect: e, scrollOffset: n, enterRadius: o, exitRadius: i } = t, r = ce(t), { enterContent: c, exitContent: s, startWindow: l, scaleX: a, scaleY: p } = r, d = s.left - c.left + (s.width - c.width) / 2 - n.x, m = s.top - c.top + (s.height - c.height) / 2 - n.y, u = le(l, e);
2112
2235
  return {
2113
- transformOrigin: `${M(c)}px ${D(c)}px`,
2114
- animate: (m) => {
2115
- const y = 1 - m, h = 1 + (a - 1) * y, b = 1 + (p - 1) * y, g = le(
2236
+ transformOrigin: `${D(c)}px ${Y(c)}px`,
2237
+ animate: (y) => {
2238
+ const h = 1 - y, f = 1 + (a - 1) * h, b = 1 + (p - 1) * h, g = pe(
2116
2239
  i,
2117
2240
  o,
2118
2241
  r.exitCornerRadii,
2119
- y,
2120
2242
  h,
2243
+ f,
2121
2244
  b
2122
2245
  );
2123
2246
  return {
2124
- clipPath: Pt(
2247
+ clipPath: vt(
2125
2248
  e,
2126
2249
  {
2127
- top: f.top * y,
2128
- right: f.right * y,
2129
- bottom: f.bottom * y,
2130
- left: f.left * y
2250
+ top: u.top * h,
2251
+ right: u.right * h,
2252
+ bottom: u.bottom * h,
2253
+ left: u.left * h
2131
2254
  },
2132
2255
  g
2133
2256
  ),
2134
- transform: `translate(${d * y}px, ${u * y}px) scale(${h}, ${b})`
2257
+ transform: `translate(${d * h}px, ${m * h}px) scale(${f}, ${b})`
2135
2258
  };
2136
2259
  }
2137
2260
  };
2138
2261
  }
2139
- function zo(t) {
2140
- const { pageRect: e, scrollOffset: n, enterRadius: o, exitRadius: i } = t, r = ae(t), { enterContent: c, exitContent: s, startWindow: l, scaleX: a, scaleY: p } = r, d = s.left - c.left + (s.width - c.width) / 2 + n.x, u = s.top - c.top + (s.height - c.height) / 2 + n.y, f = ce(l, e);
2262
+ function Uo(t) {
2263
+ const { pageRect: e, scrollOffset: n, enterRadius: o, exitRadius: i } = t, r = ce(t), { enterContent: c, exitContent: s, startWindow: l, scaleX: a, scaleY: p } = r, d = s.left - c.left + (s.width - c.width) / 2 + n.x, m = s.top - c.top + (s.height - c.height) / 2 + n.y, u = le(l, e);
2141
2264
  return {
2142
- transformOrigin: `${M(c)}px ${D(c)}px`,
2143
- animate: (m) => {
2144
- const y = 1 - m, h = 1 + (a - 1) * y, b = 1 + (p - 1) * y, g = le(
2265
+ transformOrigin: `${D(c)}px ${Y(c)}px`,
2266
+ animate: (y) => {
2267
+ const h = 1 - y, f = 1 + (a - 1) * h, b = 1 + (p - 1) * h, g = pe(
2145
2268
  i,
2146
2269
  o,
2147
2270
  r.exitCornerRadii,
2148
- y,
2149
2271
  h,
2272
+ f,
2150
2273
  b
2151
2274
  );
2152
2275
  return {
2153
- clipPath: Pt(
2276
+ clipPath: vt(
2154
2277
  e,
2155
2278
  {
2156
- top: f.top * y,
2157
- right: f.right * y,
2158
- bottom: f.bottom * y,
2159
- left: f.left * y
2279
+ top: u.top * h,
2280
+ right: u.right * h,
2281
+ bottom: u.bottom * h,
2282
+ left: u.left * h
2160
2283
  },
2161
2284
  g
2162
2285
  ),
2163
- transform: `translate(${d * y - n.x}px, ${u * y}px) scale(${h}, ${b})`
2286
+ transform: `translate(${d * h - n.x}px, ${m * h}px) scale(${f}, ${b})`
2164
2287
  };
2165
2288
  }
2166
2289
  };
2167
2290
  }
2168
- const Vo = {
2291
+ const Zo = {
2169
2292
  spring: {
2170
2293
  stiffness: 380,
2171
2294
  damping: 30,
@@ -2176,30 +2299,30 @@ const Vo = {
2176
2299
  damping: 30
2177
2300
  }
2178
2301
  }
2179
- }, pe = 0.12, Xo = 18;
2180
- function Wo() {
2302
+ }, de = 0.12, jo = 18;
2303
+ function Go() {
2181
2304
  return {
2182
2305
  transformOrigin: "50% 50%",
2183
2306
  animate: (t) => {
2184
2307
  const e = 1 - t;
2185
2308
  return {
2186
- transform: `scale(${1 - pe * e})`
2309
+ transform: `scale(${1 - de * e})`
2187
2310
  };
2188
2311
  }
2189
2312
  };
2190
2313
  }
2191
- function Uo() {
2314
+ function qo() {
2192
2315
  return {
2193
2316
  transformOrigin: "50% 50%",
2194
2317
  animate: (t) => {
2195
2318
  const e = 1 - t;
2196
2319
  return {
2197
- transform: `scale(${1 - pe * e})`
2320
+ transform: `scale(${1 - de * e})`
2198
2321
  };
2199
2322
  }
2200
2323
  };
2201
2324
  }
2202
- const ft = {
2325
+ const ht = {
2203
2326
  willChange: "backdrop-filter",
2204
2327
  // `top` + `height` are set per-transition in OverlayStrategy.contribute (they
2205
2328
  // track the live scroll position), so they are intentionally omitted here.
@@ -2215,20 +2338,20 @@ const ft = {
2215
2338
  WebkitBackdropFilter: "blur(0px)"
2216
2339
  },
2217
2340
  style: (t, e) => {
2218
- const n = t === "enter" ? e : 1 - e, o = `blur(${Xo * n}px)`;
2341
+ const n = t === "enter" ? e : 1 - e, o = `blur(${jo * n}px)`;
2219
2342
  return {
2220
2343
  backdropFilter: o,
2221
2344
  WebkitBackdropFilter: o
2222
2345
  };
2223
2346
  }
2224
2347
  };
2225
- class Bo {
2348
+ class Ko {
2226
2349
  constructor() {
2227
2350
  R(this, "name", "background");
2228
- R(this, "physics", Vo);
2351
+ R(this, "physics", Zo);
2229
2352
  }
2230
2353
  contribute(e) {
2231
- const { from: n, to: o, resolved: i, physics: r } = e, c = i.mode === "enter", s = c ? n : o, l = c ? Wo() : Uo();
2354
+ const { from: n, to: o, resolved: i, physics: r } = e, c = i.mode === "enter", s = c ? n : o, l = c ? Go() : qo();
2232
2355
  return l && (s.style.transformOrigin = l.transformOrigin), [
2233
2356
  new w({
2234
2357
  element: s,
@@ -2238,29 +2361,29 @@ class Bo {
2238
2361
  ];
2239
2362
  }
2240
2363
  }
2241
- class Zo {
2364
+ class Jo {
2242
2365
  constructor() {
2243
2366
  R(this, "name", "overlay");
2244
2367
  }
2245
2368
  prepare(e) {
2246
2369
  const n = e.createElement("zoom-overlay");
2247
- return Object.assign(n.style, ft.initialStyle), n.style.willChange = ft.willChange, e.context.positionedParent.appendChild(n), { overlay: n };
2370
+ return Object.assign(n.style, ht.initialStyle), n.style.willChange = ht.willChange, e.context.positionedParent.appendChild(n), { overlay: n };
2248
2371
  }
2249
2372
  contribute(e) {
2250
2373
  const n = e.extras.overlay;
2251
2374
  if (!n) return [];
2252
- n.style.zIndex = ee;
2253
- const o = Qt(e.context, "to");
2375
+ n.style.zIndex = ne;
2376
+ const o = te(e.context, "to");
2254
2377
  return n.style.top = `${o.top}px`, n.style.height = `${o.height}px`, [
2255
2378
  new w({
2256
2379
  element: n,
2257
2380
  integrator: C.from(e.physics),
2258
- style: (i) => ft.style(e.resolved.mode, i)
2381
+ style: (i) => ht.style(e.resolved.mode, i)
2259
2382
  })
2260
2383
  ];
2261
2384
  }
2262
2385
  }
2263
- const Go = {
2386
+ const Qo = {
2264
2387
  spring: {
2265
2388
  stiffness: 380,
2266
2389
  damping: 30,
@@ -2270,7 +2393,7 @@ const Go = {
2270
2393
  }
2271
2394
  }
2272
2395
  };
2273
- function jo({
2396
+ function ti({
2274
2397
  enterRect: t,
2275
2398
  exitRect: e,
2276
2399
  scrollOffset: n
@@ -2286,7 +2409,7 @@ function jo({
2286
2409
  }
2287
2410
  };
2288
2411
  }
2289
- function qo({
2412
+ function ei({
2290
2413
  enterRect: t,
2291
2414
  exitRect: e,
2292
2415
  scrollOffset: n
@@ -2302,13 +2425,13 @@ function qo({
2302
2425
  }
2303
2426
  };
2304
2427
  }
2305
- class Ko {
2428
+ class ni {
2306
2429
  constructor() {
2307
2430
  R(this, "name", "background");
2308
- R(this, "physics", Go);
2431
+ R(this, "physics", Qo);
2309
2432
  }
2310
2433
  contribute(e) {
2311
- const { from: n, to: o, resolved: i, input: r, physics: c } = e, s = i.mode === "enter", l = s ? n : o, a = s ? jo(r) : qo(r);
2434
+ const { from: n, to: o, resolved: i, input: r, physics: c } = e, s = i.mode === "enter", l = s ? n : o, a = s ? ti(r) : ei(r);
2312
2435
  return a && (l.style.transformOrigin = a.transformOrigin), [
2313
2436
  new w({
2314
2437
  element: l,
@@ -2318,35 +2441,35 @@ class Ko {
2318
2441
  ];
2319
2442
  }
2320
2443
  }
2321
- const Jo = {
2444
+ const oi = {
2322
2445
  spring: {
2323
2446
  stiffness: 530,
2324
2447
  damping: 34,
2325
2448
  doubleSpring: 1
2326
2449
  }
2327
2450
  };
2328
- class Qo {
2451
+ class ii {
2329
2452
  constructor() {
2330
2453
  R(this, "name", "background");
2331
- R(this, "physics", Jo);
2454
+ R(this, "physics", oi);
2332
2455
  }
2333
2456
  contribute(e) {
2334
2457
  return [];
2335
2458
  }
2336
2459
  }
2337
- const ti = {
2338
- expand: () => new Ko(),
2339
- static: () => new Qo(),
2340
- blur: () => new Bo()
2460
+ const ri = {
2461
+ expand: () => new ni(),
2462
+ static: () => new ii(),
2463
+ blur: () => new Ko()
2341
2464
  };
2342
- function ei(t) {
2343
- return ti[t]();
2465
+ function si(t) {
2466
+ return ri[t]();
2344
2467
  }
2345
- const xt = "data-zoom-enter-key", Gt = "data-zoom-exit-key", jt = "data-zoom-radius";
2346
- function ni(t, e) {
2468
+ const Et = "data-zoom-enter-key", Gt = "data-zoom-exit-key", qt = "data-zoom-radius";
2469
+ function ai(t, e) {
2347
2470
  return Math.abs(t.left - e.left) < 0.01 && Math.abs(t.top - e.top) < 0.01 && Math.abs(t.width - e.width) < 0.01 && Math.abs(t.height - e.height) < 0.01;
2348
2471
  }
2349
- function oi(t, e) {
2472
+ function ci(t, e) {
2350
2473
  const n = [];
2351
2474
  let o = e;
2352
2475
  for (; o && o !== t; ) {
@@ -2358,82 +2481,82 @@ function oi(t, e) {
2358
2481
  }
2359
2482
  return n;
2360
2483
  }
2361
- function qt(t) {
2362
- const e = t.querySelectorAll(`[${xt}]`);
2484
+ function Kt(t) {
2485
+ const e = t.querySelectorAll(`[${Et}]`);
2363
2486
  return e.length !== 1 ? null : e[0];
2364
2487
  }
2365
- function Kt(t, e) {
2488
+ function Jt(t, e) {
2366
2489
  const n = t.querySelectorAll(`[${Gt}]`);
2367
2490
  for (const o of n)
2368
2491
  if (o.getAttribute(Gt) === e)
2369
2492
  return o;
2370
2493
  return null;
2371
2494
  }
2372
- function ii(t, e, n) {
2495
+ function li(t, e, n) {
2373
2496
  if (n === "forward") {
2374
- const c = qt(e);
2497
+ const c = Kt(e);
2375
2498
  if (!c) return null;
2376
- const s = c.getAttribute(xt);
2499
+ const s = c.getAttribute(Et);
2377
2500
  if (!s) return null;
2378
- const l = Kt(t, s);
2501
+ const l = Jt(t, s);
2379
2502
  return l ? { mode: "enter", enterEl: c, exitEl: l } : null;
2380
2503
  }
2381
- const o = qt(t);
2504
+ const o = Kt(t);
2382
2505
  if (!o) return null;
2383
- const i = o.getAttribute(xt);
2506
+ const i = o.getAttribute(Et);
2384
2507
  if (!i) return null;
2385
- const r = Kt(e, i);
2508
+ const r = Jt(e, i);
2386
2509
  return r ? { mode: "exit", enterEl: o, exitEl: r } : null;
2387
2510
  }
2388
- function ri(t, e, n, o) {
2389
- const i = t.mode === "enter" ? n : e, r = t.mode === "enter" ? e : n, c = V(i, t.enterEl), s = V(r, t.exitEl), l = Ct(
2511
+ function pi(t, e, n, o) {
2512
+ const i = t.mode === "enter" ? n : e, r = t.mode === "enter" ? e : n, c = L(i, t.enterEl), s = L(r, t.exitEl), l = Ct(
2390
2513
  t.enterEl,
2391
2514
  c,
2392
- (h) => V(i, h),
2515
+ (f) => L(i, f),
2393
2516
  {
2394
2517
  clipRoot: i,
2395
- legacyRadiusAttribute: jt
2518
+ legacyRadiusAttribute: qt
2396
2519
  }
2397
2520
  ), a = Ct(
2398
2521
  t.exitEl,
2399
2522
  s,
2400
- (h) => V(r, h),
2523
+ (f) => L(r, f),
2401
2524
  {
2402
2525
  clipRoot: r,
2403
- legacyRadiusAttribute: jt
2526
+ legacyRadiusAttribute: qt
2404
2527
  }
2405
- ), [p, d] = re(l, a), u = p.contentAware && d.contentAware, f = t.mode === "enter" ? n.getBoundingClientRect() : e.getBoundingClientRect(), m = {
2528
+ ), [p, d] = se(l, a), m = p.contentAware && d.contentAware, u = t.mode === "enter" ? n.getBoundingClientRect() : e.getBoundingClientRect(), y = {
2406
2529
  left: 0,
2407
2530
  top: 0,
2408
- width: f.width,
2409
- height: f.height
2410
- }, y = p.radiusSource === "legacy" || ni(p.window, m) ? p.radius : 0;
2531
+ width: u.width,
2532
+ height: u.height
2533
+ }, h = p.radiusSource === "legacy" || ai(p.window, y) ? p.radius : 0;
2411
2534
  return {
2412
2535
  enterRect: c,
2413
2536
  exitRect: s,
2414
- ...u ? {
2537
+ ...m ? {
2415
2538
  enterMedia: p,
2416
2539
  exitMedia: d
2417
2540
  } : {},
2418
- pageRect: f,
2541
+ pageRect: u,
2419
2542
  scrollOffset: o,
2420
- enterRadius: y,
2543
+ enterRadius: h,
2421
2544
  exitRadius: d.radius
2422
2545
  };
2423
2546
  }
2424
- const ht = /* @__PURE__ */ new WeakMap();
2425
- function si(t) {
2426
- const e = ht.get(t) ?? {
2547
+ const yt = /* @__PURE__ */ new WeakMap();
2548
+ function di(t) {
2549
+ const e = yt.get(t) ?? {
2427
2550
  opacity: t.style.opacity,
2428
2551
  users: 0
2429
2552
  };
2430
- e.users++, ht.set(t, e), t.style.opacity = "0";
2553
+ e.users++, yt.set(t, e), t.style.opacity = "0";
2431
2554
  let n = !1;
2432
2555
  return () => {
2433
- n || (n = !0, !(--e.users > 0) && (t.style.opacity === "0" && (t.style.opacity = e.opacity), ht.delete(t)));
2556
+ n || (n = !0, !(--e.users > 0) && (t.style.opacity === "0" && (t.style.opacity = e.opacity), yt.delete(t)));
2434
2557
  };
2435
2558
  }
2436
- class ai {
2559
+ class ui {
2437
2560
  constructor() {
2438
2561
  R(this, "name", "tile");
2439
2562
  }
@@ -2443,13 +2566,13 @@ class ai {
2443
2566
  });
2444
2567
  }
2445
2568
  contribute(e) {
2446
- const { from: n, to: o, resolved: i, input: r, physics: c, onComplete: s } = e, l = i.mode === "enter", a = l ? No(r) : zo(r), p = l ? o : n, d = l ? "t" : "u";
2447
- s(si(i.exitEl)), a && (p.style.transformOrigin = a.transformOrigin);
2448
- const u = l ? T : k, f = l ? k : T, m = n.style.zIndex;
2449
- n.style.zIndex = u;
2450
- const y = o.style.zIndex, h = o.style.position;
2451
- return o.style.zIndex = f, o.style.position = "relative", s(() => {
2452
- p.style.willChange = "auto", p.style.backfaceVisibility = "", p.style.transformOrigin = "", p.style.contain = "", n.style.zIndex = m, o.style.zIndex === f && (o.style.zIndex = y), o.style.position === "relative" && (o.style.position = h), o.style.transformOrigin = "", n.style.willChange = "auto", n.style.backfaceVisibility = "", n.style.transformOrigin = "", n.style.contain = "", n.style.transform = "", n.style.clipPath = "";
2569
+ const { from: n, to: o, resolved: i, input: r, physics: c, onComplete: s } = e, l = i.mode === "enter", a = l ? Bo(r) : Uo(r), p = l ? o : n, d = l ? "t" : "u";
2570
+ s(di(i.exitEl)), a && (p.style.transformOrigin = a.transformOrigin);
2571
+ const m = l ? T : M, u = l ? M : T, y = n.style.zIndex;
2572
+ n.style.zIndex = m;
2573
+ const h = o.style.zIndex, f = o.style.position;
2574
+ return o.style.zIndex = u, o.style.position = "relative", s(() => {
2575
+ p.style.willChange = "auto", p.style.backfaceVisibility = "", p.style.transformOrigin = "", p.style.contain = "", n.style.zIndex = y, o.style.zIndex === u && (o.style.zIndex = h), o.style.position === "relative" && (o.style.position = f), o.style.transformOrigin = "", n.style.willChange = "auto", n.style.backfaceVisibility = "", n.style.transformOrigin = "", n.style.contain = "", n.style.transform = "", n.style.clipPath = "";
2453
2576
  }), [
2454
2577
  new w({
2455
2578
  element: p,
@@ -2462,12 +2585,12 @@ class ai {
2462
2585
  ];
2463
2586
  }
2464
2587
  }
2465
- class ci {
2588
+ class fi {
2466
2589
  constructor() {
2467
2590
  R(this, "name", "content");
2468
2591
  }
2469
2592
  contribute(e) {
2470
- const { resolved: n, physics: o, from: i, to: r, onComplete: c } = e, s = n.mode === "enter" ? r : i, l = oi(s, n.enterEl);
2593
+ const { resolved: n, physics: o, from: i, to: r, onComplete: c } = e, s = n.mode === "enter" ? r : i, l = ci(s, n.enterEl);
2471
2594
  if (l.length === 0) return [];
2472
2595
  const a = l.map((p) => p.style.opacity);
2473
2596
  if (n.mode === "enter")
@@ -2481,14 +2604,14 @@ class ci {
2481
2604
  (p) => new w({
2482
2605
  element: p,
2483
2606
  integrator: C.from(o),
2484
- style: (d, u) => ({
2485
- opacity: n.mode === "enter" ? d : u
2607
+ style: (d, m) => ({
2608
+ opacity: n.mode === "enter" ? d : m
2486
2609
  })
2487
2610
  })
2488
2611
  );
2489
2612
  }
2490
2613
  }
2491
- class li {
2614
+ class hi {
2492
2615
  constructor() {
2493
2616
  R(this, "name", "content");
2494
2617
  }
@@ -2496,27 +2619,27 @@ class li {
2496
2619
  return [];
2497
2620
  }
2498
2621
  }
2499
- const pi = {
2500
- default: () => new li(),
2501
- fade: () => new ci()
2622
+ const yi = {
2623
+ default: () => new hi(),
2624
+ fade: () => new fi()
2502
2625
  };
2503
- function di(t) {
2504
- return pi[t]();
2626
+ function mi(t) {
2627
+ return yi[t]();
2505
2628
  }
2506
- function ui(t) {
2507
- const e = ei(t.type);
2629
+ function gi(t) {
2630
+ const e = si(t.type);
2508
2631
  return { strategies: [
2509
- new ai(),
2632
+ new ui(),
2510
2633
  e,
2511
- di(t.variant),
2634
+ mi(t.variant),
2512
2635
  // Overlay is intrinsically tied to backdrop-filter-driven types. Today
2513
2636
  // that's only `blur`; the table-driven factory above owns the mapping
2514
2637
  // so this conditional is the single line that knows the relationship.
2515
- ...t.type === "blur" ? [new Zo()] : []
2638
+ ...t.type === "blur" ? [new Jo()] : []
2516
2639
  ], physics: e.physics };
2517
2640
  }
2518
- const fi = (t) => {
2519
- const { strategies: e, physics: n } = ui(t), o = (i) => ({
2641
+ const bi = (t) => {
2642
+ const { strategies: e, physics: n } = gi(t), o = (i) => ({
2520
2643
  prepare: (r) => {
2521
2644
  const c = {
2522
2645
  from: r.from,
@@ -2536,15 +2659,15 @@ const fi = (t) => {
2536
2659
  },
2537
2660
  animation: ({ from: r, to: c, context: s, ...l }) => {
2538
2661
  var b;
2539
- const a = ii(r, c, i);
2662
+ const a = li(r, c, i);
2540
2663
  if (!a)
2541
- return W({
2664
+ return Z({
2542
2665
  tile: [],
2543
2666
  background: [],
2544
2667
  content: [],
2545
2668
  overlay: []
2546
2669
  });
2547
- const p = ri(a, r, c, s.scrollOffset), d = [], f = {
2670
+ const p = pi(a, r, c, s.scrollOffset), d = [], u = {
2548
2671
  from: r,
2549
2672
  to: c,
2550
2673
  resolved: a,
@@ -2555,26 +2678,26 @@ const fi = (t) => {
2555
2678
  onComplete: (g) => {
2556
2679
  d.push(g);
2557
2680
  }
2558
- }, m = {
2681
+ }, y = {
2559
2682
  tile: [],
2560
2683
  background: [],
2561
2684
  content: [],
2562
2685
  overlay: []
2563
2686
  };
2564
2687
  for (const g of e)
2565
- m[g.name].push(...((b = g.contribute) == null ? void 0 : b.call(g, f)) ?? []);
2566
- const y = Object.values(m).flat(), h = W(m);
2567
- h.onComplete = () => {
2688
+ y[g.name].push(...((b = g.contribute) == null ? void 0 : b.call(g, u)) ?? []);
2689
+ const h = Object.values(y).flat(), f = Z(y);
2690
+ f.onComplete = () => {
2568
2691
  for (const g of d)
2569
2692
  try {
2570
2693
  g();
2571
- } catch (x) {
2572
- console.error("[zoom] cleanup error", x);
2694
+ } catch (S) {
2695
+ console.error("[zoom] cleanup error", S);
2573
2696
  }
2574
2697
  };
2575
- for (const g of y)
2576
- g instanceof w && U(g);
2577
- return h;
2698
+ for (const g of h)
2699
+ g instanceof w && j(g);
2700
+ return f;
2578
2701
  }
2579
2702
  });
2580
2703
  return I({
@@ -2582,20 +2705,20 @@ const fi = (t) => {
2582
2705
  backward: o("backward")
2583
2706
  });
2584
2707
  };
2585
- function hi(t) {
2708
+ function wi(t) {
2586
2709
  const e = t.type ?? "static", n = t.variant ?? (t.fade ? "fade" : "default");
2587
2710
  return { type: e, variant: n };
2588
2711
  }
2589
- function Yi(t = {}, e = {}) {
2590
- const n = hi(t);
2591
- return A(fi(n), e.override);
2712
+ function Wi(t = {}, e = {}) {
2713
+ const n = wi(t);
2714
+ return _(bi(n), e.override);
2592
2715
  }
2593
- const Jt = 1 / 60, yi = 600;
2594
- function mi(t, e) {
2716
+ const Qt = 1 / 60, Si = 600;
2717
+ function xi(t, e) {
2595
2718
  const n = Math.sqrt(t), o = e / (2 * n), i = 2 * Math.PI / n, r = o <= 1 ? 1 - o : 1 / o - 1;
2596
2719
  return { duration: i, bounce: r, zeta: o };
2597
2720
  }
2598
- function G(t) {
2721
+ function J(t) {
2599
2722
  if (!Number.isFinite(t.stiffness) || t.stiffness <= 0)
2600
2723
  throw new Error("spring(): stiffness must be finite and > 0");
2601
2724
  if (!Number.isFinite(t.damping) || t.damping < 0)
@@ -2608,29 +2731,29 @@ function G(t) {
2608
2731
  throw new Error(`spring(): ${e} must be finite and > 0`);
2609
2732
  return C.from({ spring: t });
2610
2733
  }
2611
- function gi(t) {
2734
+ function Ci(t) {
2612
2735
  let e = { position: 0, velocity: 0 };
2613
- for (let n = 1; n <= yi; n++)
2614
- if (e = t.step(e, 1, Jt), e.position >= 1) return n * Jt * 1e3;
2736
+ for (let n = 1; n <= Si; n++)
2737
+ if (e = t.step(e, 1, Qt), e.position >= 1) return n * Qt * 1e3;
2615
2738
  return 1 / 0;
2616
2739
  }
2617
- function bi(t) {
2740
+ function Ei(t) {
2618
2741
  const { duration: e, resistance: n = 1.5, restDelta: o } = t;
2619
2742
  if (!Number.isFinite(e) || !(e > 0))
2620
2743
  throw new Error("easeIn(): duration must be finite and > 0");
2621
2744
  const i = e * 1e3;
2622
2745
  let r = 0.01, c = 1e6;
2623
2746
  for (let s = 0; s < 60; s++) {
2624
- const l = Math.sqrt(r * c), a = new mt({
2747
+ const l = Math.sqrt(r * c), a = new gt({
2625
2748
  acceleration: l,
2626
2749
  resistance: n,
2627
2750
  restDelta: o
2628
2751
  });
2629
- gi(a) > i ? r = l : c = l;
2752
+ Ci(a) > i ? r = l : c = l;
2630
2753
  }
2631
- return new mt({ acceleration: c, resistance: n, restDelta: o });
2754
+ return new gt({ acceleration: c, resistance: n, restDelta: o });
2632
2755
  }
2633
- class de {
2756
+ class ue {
2634
2757
  constructor(e, n) {
2635
2758
  if (this.inner = e, this.factor = n, !Number.isFinite(n) || !(n > 0))
2636
2759
  throw new Error("scale(): factor must be finite and > 0");
@@ -2651,13 +2774,13 @@ class de {
2651
2774
  );
2652
2775
  }
2653
2776
  }
2654
- function Li(t, e) {
2655
- return new de(t, e);
2777
+ function Xi(t, e) {
2778
+ return new ue(t, e);
2656
2779
  }
2657
- function wi(t) {
2658
- const e = $e(t, 0, 1, 0), n = e.length ? e[e.length - 1].time : 0;
2659
- if (t instanceof de) {
2660
- const o = wi(t.inner);
2780
+ function $i(t) {
2781
+ const e = ve(t, 0, 1, 0), n = e.length ? e[e.length - 1].time : 0;
2782
+ if (t instanceof ue) {
2783
+ const o = $i(t.inner);
2661
2784
  return {
2662
2785
  ...o,
2663
2786
  kind: "scaled",
@@ -2665,61 +2788,61 @@ function wi(t) {
2665
2788
  settleMs: n
2666
2789
  };
2667
2790
  }
2668
- return t instanceof yt || t instanceof Pe ? {
2669
- kind: t instanceof yt ? "spring" : "double-spring",
2670
- ...mi(t.stiffness, t.damping),
2791
+ return t instanceof mt || t instanceof Ae ? {
2792
+ kind: t instanceof mt ? "spring" : "double-spring",
2793
+ ...xi(t.stiffness, t.damping),
2671
2794
  settleMs: n
2672
- } : t instanceof mt ? { kind: "inertia", settleMs: n } : { kind: "custom", settleMs: n };
2795
+ } : t instanceof gt ? { kind: "inertia", settleMs: n } : { kind: "custom", settleMs: n };
2673
2796
  }
2674
- const Hi = G({
2797
+ const Vi = J({
2675
2798
  stiffness: 246.74011002723395,
2676
2799
  damping: 31.41592653589793
2677
- }), Ni = G({
2800
+ }), Bi = J({
2678
2801
  stiffness: 438.6490844928604,
2679
2802
  damping: 35.604716740684324
2680
- }), zi = G({
2803
+ }), Ui = J({
2681
2804
  stiffness: 194.9551486634935,
2682
2805
  damping: 19.54768762233649
2683
- }), Vi = G({
2806
+ }), Zi = J({
2684
2807
  stiffness: 130.5071656342394,
2685
2808
  damping: 22.84794657156213
2686
- }), Xi = G({
2809
+ }), ji = J({
2687
2810
  stiffness: 986.9604401089358,
2688
2811
  damping: 62.83185307179586
2689
- }), Wi = bi({ duration: 0.2 });
2812
+ }), Gi = Ei({ duration: 0.2 });
2690
2813
  export {
2691
- Zi as Animation,
2692
- Pe as DoubleSpringIntegrator,
2693
- mt as InertiaIntegrator,
2814
+ Ji as Animation,
2815
+ Ae as DoubleSpringIntegrator,
2816
+ gt as InertiaIntegrator,
2694
2817
  C as IntegratorProvider,
2695
- Ae as LinearIntegrator,
2818
+ Oe as LinearIntegrator,
2696
2819
  P as MultiAnimation,
2697
- de as ScaledIntegrator,
2698
- yt as SpringIntegrator,
2820
+ ue as ScaledIntegrator,
2821
+ mt as SpringIntegrator,
2699
2822
  w as WebAnimation,
2700
- Wi as accelerate,
2701
- Pi as axis,
2702
- vi as blind,
2703
- zi as bouncy,
2823
+ Gi as accelerate,
2824
+ _i as axis,
2825
+ Oi as blind,
2826
+ Ui as bouncy,
2704
2827
  I as defineTransition,
2705
- wi as describeIntegrator,
2706
- Ri as drill,
2707
- bi as easeIn,
2708
- Ii as fade,
2709
- Ai as film,
2710
- Vi as gentle,
2711
- _i as hero,
2712
- Oi as jaemin,
2713
- Fi as rotate,
2714
- Li as scale,
2715
- Ti as scroll,
2716
- ki as sheet,
2717
- Mi as slide,
2718
- Hi as smooth,
2719
- Ni as snappy,
2720
- G as spring,
2721
- Di as strip,
2722
- Xi as swift,
2723
- A as withOverride,
2724
- Yi as zoom
2828
+ $i as describeIntegrator,
2829
+ Fi as drill,
2830
+ Ei as easeIn,
2831
+ ki as fade,
2832
+ Ti as film,
2833
+ Zi as gentle,
2834
+ Mi as hero,
2835
+ Di as jaemin,
2836
+ Yi as rotate,
2837
+ Xi as scale,
2838
+ Li as scroll,
2839
+ Hi as sheet,
2840
+ Ni as slide,
2841
+ Vi as smooth,
2842
+ Bi as snappy,
2843
+ J as spring,
2844
+ zi as strip,
2845
+ ji as swift,
2846
+ _ as withOverride,
2847
+ Wi as zoom
2725
2848
  };