@ssgoi/core 7.1.3-beta.2 → 7.1.3-beta.3

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