@ssgoi/core 3.1.4 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,20 @@
1
1
  import { p as x, g as b } from "../jaemin-BWkrXq0V.js";
2
- import { a as Xt } from "../jaemin-BWkrXq0V.js";
3
- const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damping: 25 }, H = { stiffness: 75, damping: 25 }, N = 300, q = 10, G = "horizontal", j = "#000000", St = (t = {}) => {
2
+ import { a as Mt } from "../jaemin-BWkrXq0V.js";
3
+ const v = (t) => new Promise((n) => setTimeout(n, t));
4
+ function T() {
5
+ let t, n;
6
+ return { promise: new Promise((d, r) => {
7
+ t = d, n = r;
8
+ }), resolve: t, reject: n };
9
+ }
10
+ const H = { stiffness: 80, damping: 25 }, N = { stiffness: 75, damping: 25 }, q = 300, G = 10, j = "horizontal", K = "#000000", _t = (t = {}) => {
4
11
  const {
5
- inSpring: n = H,
6
- outSpring: a = B,
7
- transitionDelay: d = N,
8
- blindCount: r = q,
9
- direction: s = G,
10
- blindColor: l = j
12
+ inSpring: n = N,
13
+ outSpring: s = H,
14
+ transitionDelay: d = q,
15
+ blindCount: r = G,
16
+ direction: a = j,
17
+ blindColor: l = K
11
18
  } = t;
12
19
  let i, c = null;
13
20
  const o = (e, p, y = "left") => {
@@ -26,7 +33,7 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
26
33
  const u = [];
27
34
  for (let m = 0; m < r; m++) {
28
35
  const f = document.createElement("div");
29
- if (s === "horizontal") {
36
+ if (a === "horizontal") {
30
37
  const w = 100 / r, $ = `calc(${w}% + 1px)`;
31
38
  f.style.cssText = `
32
39
  position: absolute;
@@ -66,12 +73,12 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
66
73
  const p = (h) => {
67
74
  const g = 1 - h;
68
75
  return {
69
- transform: s === "horizontal" ? `scaleX(${g})` : `scaleY(${g})`
76
+ transform: a === "horizontal" ? `scaleX(${g})` : `scaleY(${g})`
70
77
  };
71
78
  };
72
79
  return {
73
80
  springs: Array.from({ length: r }, (h, g) => ({
74
- spring: a,
81
+ spring: s,
75
82
  offset: 0.2,
76
83
  css: {
77
84
  // Use getter for lazy element access (evaluated after prepare)
@@ -97,7 +104,7 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
97
104
  const p = (h) => {
98
105
  const g = 1 - h;
99
106
  return {
100
- transform: s === "horizontal" ? `scaleX(${g})` : `scaleY(${g})`
107
+ transform: a === "horizontal" ? `scaleX(${g})` : `scaleY(${g})`
101
108
  };
102
109
  };
103
110
  return {
@@ -119,7 +126,7 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
119
126
  onStart: () => {
120
127
  },
121
128
  wait: async () => {
122
- i && await i, await P(d);
129
+ i && await i, await v(d);
123
130
  },
124
131
  onEnd: () => {
125
132
  e && e.container && e.container.remove();
@@ -127,19 +134,19 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
127
134
  };
128
135
  }
129
136
  };
130
- }, K = {
137
+ }, Z = {
131
138
  stiffness: 150,
132
139
  damping: 20
133
- }, Z = {
140
+ }, J = {
134
141
  stiffness: 100,
135
142
  damping: 20
136
- }, _t = (t = {}) => {
137
- var s, l;
138
- const { opacity: n = !1, direction: a = "enter" } = t, d = a === "enter" ? K : Z, r = {
139
- stiffness: ((s = t.spring) == null ? void 0 : s.stiffness) ?? d.stiffness,
143
+ }, It = (t = {}) => {
144
+ var a, l;
145
+ const { opacity: n = !1, direction: s = "enter" } = t, d = s === "enter" ? Z : J, r = {
146
+ stiffness: ((a = t.spring) == null ? void 0 : a.stiffness) ?? d.stiffness,
140
147
  damping: ((l = t.spring) == null ? void 0 : l.damping) ?? d.damping
141
148
  };
142
- return a === "enter" ? {
149
+ return s === "enter" ? {
143
150
  in: (i) => ({
144
151
  spring: r,
145
152
  prepare: () => {
@@ -196,33 +203,35 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
196
203
  }
197
204
  })
198
205
  };
199
- }, J = { stiffness: 65, damping: 16 }, Q = { stiffness: 65, damping: 14 }, R = 0, It = (t = {}) => {
206
+ }, Q = { stiffness: 120, damping: 15 }, R = { stiffness: 100, damping: 20 }, tt = 0, Ot = (t = {}) => {
200
207
  const {
201
- inSpring: n = Q,
202
- outSpring: a = J,
203
- transitionDelay: d = R
208
+ inSpring: n = R,
209
+ outSpring: s = Q,
210
+ transitionDelay: d = tt
204
211
  } = t;
205
- let r, s = null;
212
+ let { promise: r, resolve: a } = T();
206
213
  return {
207
214
  in: (l) => ({
208
215
  spring: n,
209
216
  prepare: () => {
210
- l.style.willChange = "opacity";
217
+ l.style.opacity = "0", l.style.willChange = "opacity";
211
218
  },
212
219
  wait: async () => {
213
- r && (await r, await P(d));
220
+ if (r) {
221
+ await r;
222
+ const i = T();
223
+ r = i.promise, a = i.resolve, await v(d);
224
+ }
214
225
  },
215
226
  css: (i) => ({
216
227
  opacity: i
217
228
  }),
218
229
  onEnd: () => {
219
- l.style.willChange = "auto";
230
+ l.style.willChange = "auto", l.style.opacity = "1";
220
231
  }
221
232
  }),
222
- out: (l, i) => (r = new Promise((c) => {
223
- s = c;
224
- }), {
225
- spring: a,
233
+ out: (l, i) => ({
234
+ spring: s,
226
235
  css: (c) => ({
227
236
  opacity: c
228
237
  }),
@@ -230,39 +239,39 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
230
239
  x(l, i), l.style.willChange = "opacity";
231
240
  },
232
241
  onEnd: () => {
233
- s && s(), l.style.willChange = "auto";
242
+ a && a(), l.style.willChange = "auto";
234
243
  }
235
244
  })
236
245
  };
237
- }, tt = {
238
- scaleDown: { stiffness: 7, damping: 4 },
246
+ }, nt = {
247
+ scaleDown: { stiffness: 20, damping: 7 },
239
248
  // Soft start for cinematic scale
240
- translate: { stiffness: 5, damping: 3.5 },
249
+ translate: { stiffness: 15, damping: 7 },
241
250
  // Medium for movement
242
- scaleUp: { stiffness: 7, damping: 4 }
251
+ scaleUp: { stiffness: 20, damping: 7 }
243
252
  // Crisp return to full size
244
253
  }, E = {
245
254
  scaleDown: 0,
246
255
  // Start immediately
247
256
  translate: 0.2,
248
257
  // Start when scaleDown is 25% complete
249
- scaleUp: 0.9
258
+ scaleUp: 0.8
250
259
  // Start when translate is 70% complete
251
- }, nt = 0.8, et = "white", Ot = (t) => {
260
+ }, et = 0.8, it = "white", Dt = (t) => {
252
261
  var r;
253
- const n = tt, a = nt, d = ((r = t == null ? void 0 : t.border) == null ? void 0 : r.color) ?? et;
262
+ const n = nt, s = et, d = ((r = t == null ? void 0 : t.border) == null ? void 0 : r.color) ?? it;
254
263
  return {
255
- out: async (s, l) => {
256
- const i = T(l), c = b(document.body, l.positionedParent), o = st(d, {
264
+ out: async (a, l) => {
265
+ const i = k(l), c = b(document.body, l.positionedParent), o = at(d, {
257
266
  ...i,
258
267
  top: c.top
259
268
  }), e = {
260
269
  scale: 1,
261
270
  translateY: -i.top
262
271
  }, p = () => {
263
- s.style.transform = `translateY(${e.translateY}px) scale(${e.scale})`;
272
+ a.style.transform = `translateY(${e.translateY}px) scale(${e.scale})`;
264
273
  const y = (i.width - i.width * e.scale) / 2, h = (i.height - i.height * e.scale) / 2;
265
- it(o, y, h);
274
+ st(o, y, h);
266
275
  };
267
276
  return {
268
277
  springs: [
@@ -272,7 +281,7 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
272
281
  offset: E.scaleDown,
273
282
  tick: (y) => {
274
283
  const h = 1 - y;
275
- e.scale = 1 - (1 - a) * h, p();
284
+ e.scale = 1 - (1 - s) * h, p();
276
285
  }
277
286
  },
278
287
  // Spring 2: Translate (vertical movement)
@@ -290,30 +299,30 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
290
299
  offset: E.scaleUp,
291
300
  tick: (y) => {
292
301
  const h = 1 - y;
293
- e.scale = a + (1 - a) * h, p();
302
+ e.scale = s + (1 - s) * h, p();
294
303
  }
295
304
  }
296
305
  ],
297
306
  schedule: "stagger",
298
307
  prepare: () => {
299
- x(s), k(s, i), S(s, i), at(s, i);
308
+ x(a), S(a, i), _(a, i), rt(a, i);
300
309
  for (const y of o)
301
310
  l.positionedParent.appendChild(y);
302
311
  },
303
312
  onEnd: () => {
304
- s.style.clipPath = "", s.style.transformOrigin = "", setTimeout(() => {
313
+ a.style.clipPath = "", a.style.transformOrigin = "", setTimeout(() => {
305
314
  for (const y of o)
306
315
  l.positionedParent.removeChild(y);
307
316
  }, 1e3);
308
317
  }
309
318
  };
310
319
  },
311
- in: async (s, l) => {
312
- const i = T(l), c = {
313
- scale: a,
320
+ in: async (a, l) => {
321
+ const i = k(l), c = {
322
+ scale: s,
314
323
  translateY: -i.top + i.height
315
324
  }, o = () => {
316
- s.style.transform = `translateY(${c.translateY}px) scale(${c.scale})`;
325
+ a.style.transform = `translateY(${c.translateY}px) scale(${c.scale})`;
317
326
  };
318
327
  return {
319
328
  springs: [
@@ -322,7 +331,7 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
322
331
  spring: n.scaleDown,
323
332
  offset: E.scaleDown,
324
333
  tick: (e) => {
325
- c.scale = 1 - (1 - a) * e, o();
334
+ c.scale = 1 - (1 - s) * e, o();
326
335
  }
327
336
  },
328
337
  // Spring 2: Translate (vertical movement from bottom to top)
@@ -338,32 +347,32 @@ const P = (t) => new Promise((n) => setTimeout(n, t)), B = { stiffness: 80, damp
338
347
  spring: n.scaleUp,
339
348
  offset: E.scaleUp,
340
349
  tick: (e) => {
341
- c.scale = a + (1 - a) * e, o();
350
+ c.scale = s + (1 - s) * e, o();
342
351
  }
343
352
  }
344
353
  ],
345
354
  schedule: "stagger",
346
355
  prepare: () => {
347
- k(s, i), S(s, i), s.style.transform = `translateY(${-i.top + i.height}px) scale(${a})`;
356
+ S(a, i), _(a, i), a.style.transform = `translateY(${-i.top + i.height}px) scale(${s})`;
348
357
  },
349
358
  onEnd: () => {
350
- s.style.clipPath = "", s.style.transformOrigin = "", s.style.transform = "";
359
+ a.style.clipPath = "", a.style.transformOrigin = "", a.style.transform = "";
351
360
  }
352
361
  };
353
362
  }
354
363
  };
355
364
  };
356
- function it(t, n, a) {
357
- const d = n * 0.7, r = a * 0.7;
365
+ function st(t, n, s) {
366
+ const d = n * 0.7, r = s * 0.7;
358
367
  t.topLeft.style.transform = `translate(${d}px, ${r}px)`, t.topRight.style.transform = `translate(${-d}px, ${r}px)`, t.bottomLeft.style.transform = `translate(${d}px, ${-r}px)`, t.bottomRight.style.transform = `translate(${-d}px, ${-r}px)`;
359
368
  }
360
- function st(t = "white", n) {
369
+ function at(t = "white", n) {
361
370
  const r = document.createElement("div");
362
371
  r.style.position = "fixed", r.style.pointerEvents = "none", r.style.zIndex = "9999", r.style.top = `${n.top - 1}px`, r.style.left = `${n.left - 1}px`, r.style.width = "15px", r.style.height = "15px";
363
- const s = document.createElement("div");
364
- s.style.position = "absolute", s.style.width = "15px", s.style.height = "1px", s.style.backgroundColor = t, s.style.top = "0", s.style.left = "0";
372
+ const a = document.createElement("div");
373
+ a.style.position = "absolute", a.style.width = "15px", a.style.height = "1px", a.style.backgroundColor = t, a.style.top = "0", a.style.left = "0";
365
374
  const l = document.createElement("div");
366
- l.style.position = "absolute", l.style.width = "1px", l.style.height = "15px", l.style.backgroundColor = t, l.style.top = "0", l.style.left = "0", r.appendChild(s), r.appendChild(l);
375
+ l.style.position = "absolute", l.style.width = "1px", l.style.height = "15px", l.style.backgroundColor = t, l.style.top = "0", l.style.left = "0", r.appendChild(a), r.appendChild(l);
367
376
  const i = document.createElement("div");
368
377
  i.style.position = "fixed", i.style.pointerEvents = "none", i.style.zIndex = "9999", i.style.top = `${n.top - 1}px`, i.style.left = `${n.left + n.width - 15 + 1}px`, i.style.width = "15px", i.style.height = "15px";
369
378
  const c = document.createElement("div");
@@ -391,7 +400,7 @@ function st(t = "white", n) {
391
400
  }
392
401
  };
393
402
  }
394
- function T(t) {
403
+ function k(t) {
395
404
  const n = b(document.body, t.positionedParent);
396
405
  return {
397
406
  top: t.scroll.y,
@@ -400,11 +409,11 @@ function T(t) {
400
409
  height: window.innerHeight - n.top
401
410
  };
402
411
  }
403
- function k(t, n) {
404
- const a = n.left + n.width / 2, d = n.top + n.height / 2;
405
- t.style.transformOrigin = `${a}px ${d}px`;
406
- }
407
412
  function S(t, n) {
413
+ const s = n.left + n.width / 2, d = n.top + n.height / 2;
414
+ t.style.transformOrigin = `${s}px ${d}px`;
415
+ }
416
+ function _(t, n) {
408
417
  t.style.clipPath = `polygon(
409
418
  ${n.left}px ${n.top}px,
410
419
  ${n.left + n.width}px ${n.top}px,
@@ -412,19 +421,19 @@ function S(t, n) {
412
421
  ${n.left}px ${n.top + n.height}px
413
422
  )`;
414
423
  }
415
- function at(t, n) {
424
+ function rt(t, n) {
416
425
  t.style.transform = `translateY(${-n.top}px)`;
417
426
  }
418
- function rt(t, n) {
427
+ function lt(t, n) {
419
428
  return t.querySelector(`[data-hero-key="${n}"]`);
420
429
  }
421
- const Dt = (t = {}) => {
430
+ const Pt = (t = {}) => {
422
431
  var l, i;
423
432
  const n = {
424
433
  stiffness: ((l = t.spring) == null ? void 0 : l.stiffness) ?? 300,
425
434
  damping: ((i = t.spring) == null ? void 0 : i.damping) ?? 30
426
- }, a = t.timeout ?? 300, d = t.maxDistance ?? 700;
427
- let r = null, s = null;
435
+ }, s = t.timeout ?? 300, d = t.maxDistance ?? 700;
436
+ let r = null, a = null;
428
437
  return {
429
438
  in: async (c, o) => {
430
439
  const e = c, p = Array.from(e.querySelectorAll("[data-hero-key]"));
@@ -436,9 +445,9 @@ const Dt = (t = {}) => {
436
445
  // No hero elements, skip animation
437
446
  };
438
447
  if (!await new Promise((g) => {
439
- r ? g(!0) : (s = g, setTimeout(() => {
440
- s = null, g(!1);
441
- }, a));
448
+ r ? g(!0) : (a = g, setTimeout(() => {
449
+ a = null, g(!1);
450
+ }, s));
442
451
  }) || !r)
443
452
  return r = null, {
444
453
  spring: n,
@@ -449,20 +458,20 @@ const Dt = (t = {}) => {
449
458
  const h = p.map((g) => {
450
459
  const u = g.getAttribute("data-hero-key");
451
460
  if (!u) return null;
452
- const m = rt(r, u);
461
+ const m = lt(r, u);
453
462
  if (!m) return null;
454
- const f = g, w = b(r, m), $ = b(e, f), v = w.left - $.left - o.scrollOffset.x, F = w.top - $.top - o.scrollOffset.y, Y = w.width / $.width, U = w.height / $.height, V = f.style.transform, W = f.style.position, z = f.style.transformOrigin, X = f.style.zIndex, M = f.style.willChange;
463
+ const f = g, w = b(r, m), $ = b(e, f), F = w.left - $.left - o.scrollOffset.x, Y = w.top - $.top - o.scrollOffset.y, U = w.width / $.width, V = w.height / $.height, W = f.style.transform, z = f.style.position, X = f.style.transformOrigin, M = f.style.zIndex, B = f.style.willChange;
455
464
  return {
456
465
  toEl: f,
457
- dx: v,
458
- dy: F,
459
- dw: Y,
460
- dh: U,
461
- originalTransform: V,
462
- originalPosition: W,
463
- originalTransformOrigin: z,
464
- originalZIndex: X,
465
- originalWillChange: M
466
+ dx: F,
467
+ dy: Y,
468
+ dw: U,
469
+ dh: V,
470
+ originalTransform: W,
471
+ originalPosition: z,
472
+ originalTransformOrigin: X,
473
+ originalZIndex: M,
474
+ originalWillChange: B
466
475
  };
467
476
  }).filter(
468
477
  (g) => g !== null && Math.abs(g.dy) <= d
@@ -504,7 +513,7 @@ const Dt = (t = {}) => {
504
513
  out: async (c) => ({
505
514
  spring: n,
506
515
  onStart: () => {
507
- r = c, s && (s(!0), s = null);
516
+ r = c, a && (a(!0), a = null);
508
517
  },
509
518
  tick: () => {
510
519
  },
@@ -514,43 +523,43 @@ const Dt = (t = {}) => {
514
523
  })
515
524
  };
516
525
  };
517
- function lt({
526
+ function ot({
518
527
  detailRect: t,
519
528
  galleryRect: n,
520
- pageRect: a,
529
+ pageRect: s,
521
530
  scrollOffset: d
522
531
  }) {
523
- const r = n.left - t.left + (n.width - t.width) / 2 - d.x, s = n.top - t.top + (n.height - t.height) / 2 - d.y, l = n.width / t.width, i = n.height / t.height, c = Math.max(l, i), o = t.top / a.height * 100, e = (a.width - (t.left + t.width)) / a.width * 100, p = (a.height - (t.top + t.height)) / a.height * 100, y = t.left / a.width * 100;
532
+ const r = n.left - t.left + (n.width - t.width) / 2 - d.x, a = n.top - t.top + (n.height - t.height) / 2 - d.y, l = n.width / t.width, i = n.height / t.height, c = Math.max(l, i), o = t.top / s.height * 100, e = (s.width - (t.left + t.width)) / s.width * 100, p = (s.height - (t.top + t.height)) / s.height * 100, y = t.left / s.width * 100;
524
533
  return {
525
534
  transformOrigin: `${t.left + t.width / 2}px ${t.top + t.height / 2}px`,
526
535
  animate: (g) => {
527
536
  const u = 1 - g;
528
537
  return {
529
538
  clipPath: `inset(${o * u}% ${e * u}% ${p * u}% ${y * u}%)`,
530
- transform: `translate(${r * u}px, ${s * u}px) scale(${1 + (c - 1) * u})`
539
+ transform: `translate(${r * u}px, ${a * u}px) scale(${1 + (c - 1) * u})`
531
540
  };
532
541
  }
533
542
  };
534
543
  }
535
- function ot({
544
+ function ct({
536
545
  detailRect: t,
537
546
  galleryRect: n,
538
- pageRect: a,
547
+ pageRect: s,
539
548
  scrollOffset: d
540
549
  }) {
541
- const r = n.left - t.left + (n.width - t.width) / 2 + d.x, s = n.top - t.top + (n.height - t.height) / 2 + d.y, l = n.width / t.width, i = n.height / t.height, c = Math.min(l, i), o = t.top / a.height * 100, e = (a.width - (t.left + t.width)) / a.width * 100, p = (a.height - (t.top + t.height)) / a.height * 100, y = t.left / a.width * 100;
550
+ const r = n.left - t.left + (n.width - t.width) / 2 + d.x, a = n.top - t.top + (n.height - t.height) / 2 + d.y, l = n.width / t.width, i = n.height / t.height, c = Math.min(l, i), o = t.top / s.height * 100, e = (s.width - (t.left + t.width)) / s.width * 100, p = (s.height - (t.top + t.height)) / s.height * 100, y = t.left / s.width * 100;
542
551
  return {
543
552
  transformOrigin: `${t.left + t.width / 2}px ${t.top + t.height / 2}px`,
544
553
  animate: (g) => {
545
554
  const u = 1 - g;
546
555
  return {
547
556
  clipPath: `inset(${o * u}% ${e * u}% ${p * u}% ${y * u}%)`,
548
- transform: `translate(${r * u - d.x}px, ${s * u - d.y}px) scale(${1 + (c - 1) * u})`
557
+ transform: `translate(${r * u - d.x}px, ${a * u - d.y}px) scale(${1 + (c - 1) * u})`
549
558
  };
550
559
  }
551
560
  };
552
561
  }
553
- function ct(t, n, a) {
562
+ function dt(t, n, s) {
554
563
  const d = t.querySelector(
555
564
  "[data-instagram-detail-key]"
556
565
  ), r = n.querySelector(
@@ -558,31 +567,31 @@ function ct(t, n, a) {
558
567
  );
559
568
  if (t.querySelectorAll("[data-instagram-detail-key]").length > 1 || n.querySelectorAll("[data-instagram-detail-key]").length > 1)
560
569
  return null;
561
- let s = null, l = null, i = !1;
570
+ let a = null, l = null, i = !1;
562
571
  if (!d && r) {
563
572
  l = r;
564
573
  const e = l.getAttribute("data-instagram-detail-key");
565
574
  if (!e) return null;
566
- s = t.querySelector(
575
+ a = t.querySelector(
567
576
  `[data-instagram-gallery-key="${e}"]`
568
- ), s && (i = !0);
577
+ ), a && (i = !0);
569
578
  } else if (d && !r) {
570
579
  l = d;
571
580
  const e = l.getAttribute("data-instagram-detail-key");
572
581
  if (!e) return null;
573
- s = n.querySelector(
582
+ a = n.querySelector(
574
583
  `[data-instagram-gallery-key="${e}"]`
575
- ), s && (i = !1);
584
+ ), a && (i = !1);
576
585
  }
577
- if (!s || !l)
586
+ if (!a || !l)
578
587
  return null;
579
- const c = b(i ? t : n, s), o = b(i ? n : t, l);
588
+ const c = b(i ? t : n, a), o = b(i ? n : t, l);
580
589
  if (i) {
581
- const e = lt({
590
+ const e = ot({
582
591
  detailRect: o,
583
592
  galleryRect: c,
584
593
  pageRect: n.getBoundingClientRect(),
585
- scrollOffset: a
594
+ scrollOffset: s
586
595
  });
587
596
  return n.style.transformOrigin = e.transformOrigin, {
588
597
  isEnterMode: !0,
@@ -590,11 +599,11 @@ function ct(t, n, a) {
590
599
  // No outAnimation - gallery stays visible
591
600
  };
592
601
  } else {
593
- const e = ot({
602
+ const e = ct({
594
603
  detailRect: o,
595
604
  galleryRect: c,
596
605
  pageRect: t.getBoundingClientRect(),
597
- scrollOffset: a
606
+ scrollOffset: s
598
607
  });
599
608
  return t.style.transformOrigin = e.transformOrigin, {
600
609
  isEnterMode: !1,
@@ -603,26 +612,26 @@ function ct(t, n, a) {
603
612
  };
604
613
  }
605
614
  }
606
- const Pt = (t = {}) => {
615
+ const vt = (t = {}) => {
607
616
  var i, c;
608
617
  const n = {
609
618
  stiffness: ((i = t.spring) == null ? void 0 : i.stiffness) ?? 150,
610
619
  damping: ((c = t.spring) == null ? void 0 : c.damping) ?? 20
611
- }, a = t.timeout ?? 300;
612
- let d = null, r = null, s = null, l = null;
620
+ }, s = t.timeout ?? 300;
621
+ let d = null, r = null, a = null, l = null;
613
622
  return {
614
623
  in: async (o, { scrollOffset: e }) => {
615
624
  const p = o;
616
625
  return !await new Promise((h) => {
617
626
  d ? h(!0) : (r = h, setTimeout(() => {
618
627
  r = null, h(!1);
619
- }, a));
628
+ }, s));
620
629
  }) || !d ? (l == null || l(), l = null, d = null, {
621
630
  spring: n,
622
631
  css: () => ({})
623
- }) : (s = ct(d, p, e), l == null || l(), l = null, s ? (d = null, {
632
+ }) : (a = dt(d, p, e), l == null || l(), l = null, a ? (d = null, {
624
633
  spring: n,
625
- css: (h) => s != null && s.inAnimation ? s.inAnimation(h) : {}
634
+ css: (h) => a != null && a.inAnimation ? a.inAnimation(h) : {}
626
635
  }) : (d = null, {
627
636
  spring: n,
628
637
  css: () => ({})
@@ -635,57 +644,57 @@ const Pt = (t = {}) => {
635
644
  return {
636
645
  spring: n,
637
646
  prepare: (y) => {
638
- s != null && s.isEnterMode ? x(y) : (x(y, e), y.style.zIndex = "-1");
647
+ a != null && a.isEnterMode ? x(y) : (x(y, e), y.style.zIndex = "-1");
639
648
  },
640
649
  wait: async () => {
641
650
  d = o, r && (r(!0), r = null), await p;
642
651
  },
643
- css: (y) => s != null && s.outAnimation ? s.outAnimation(y) : {}
652
+ css: (y) => a != null && a.outAnimation ? a.outAnimation(y) : {}
644
653
  };
645
654
  }
646
655
  };
647
656
  };
648
- function dt({
657
+ function ht({
649
658
  detailRect: t,
650
659
  galleryRect: n,
651
- pageRect: a,
660
+ pageRect: s,
652
661
  scrollOffset: d
653
662
  }) {
654
- const r = n.left - t.left + (n.width - t.width) / 2 - d.x, s = n.top - t.top + (n.height - t.height) / 2 - d.y, l = n.width / t.width, i = n.height / t.height, c = Math.max(l, i), o = t.top / a.height * 100, e = (a.width - (t.left + t.width)) / a.width * 100, p = (a.height - (t.top + t.height)) / a.height * 100, y = t.left / a.width * 100;
663
+ const r = n.left - t.left + (n.width - t.width) / 2 - d.x, a = n.top - t.top + (n.height - t.height) / 2 - d.y, l = n.width / t.width, i = n.height / t.height, c = Math.max(l, i), o = t.top / s.height * 100, e = (s.width - (t.left + t.width)) / s.width * 100, p = (s.height - (t.top + t.height)) / s.height * 100, y = t.left / s.width * 100;
655
664
  return {
656
665
  transformOrigin: `${t.left + t.width / 2}px ${t.top + t.height / 2}px`,
657
666
  animate: (g) => {
658
667
  const u = 1 - g;
659
668
  return {
660
669
  clipPath: `inset(${o * u}% ${e * u}% ${p * u}% ${y * u}%)`,
661
- transform: `translate(${r * u}px, ${s * u}px) scale(${1 + (c - 1) * u})`
670
+ transform: `translate(${r * u}px, ${a * u}px) scale(${1 + (c - 1) * u})`
662
671
  };
663
672
  }
664
673
  };
665
674
  }
666
- function ht({
675
+ function pt({
667
676
  galleryRect: t,
668
677
  detailRect: n,
669
- scrollOffset: a
678
+ scrollOffset: s
670
679
  }) {
671
- const d = n.left - t.left + (n.width - t.width) / 2 + a.x, r = n.top - t.top + (n.height - t.height) / 2 + a.y, s = n.width / t.width, l = n.height / t.height, i = Math.max(s, l);
680
+ const d = n.left - t.left + (n.width - t.width) / 2 + s.x, r = n.top - t.top + (n.height - t.height) / 2 + s.y, a = n.width / t.width, l = n.height / t.height, i = Math.max(a, l);
672
681
  return {
673
682
  transformOrigin: `${t.left + t.width / 2}px ${t.top + t.height / 2}px`,
674
683
  animate: (o) => {
675
684
  const e = 1 - o;
676
685
  return {
677
- transform: `translate(${d * e - a.x}px, ${r * e - a.y}px) scale(${1 + (i - 1) * e})`,
686
+ transform: `translate(${d * e - s.x}px, ${r * e - s.y}px) scale(${1 + (i - 1) * e})`,
678
687
  opacity: `${1 - e}`
679
688
  };
680
689
  }
681
690
  };
682
691
  }
683
- function pt({
692
+ function yt({
684
693
  galleryRect: t,
685
694
  detailRect: n,
686
- scrollOffset: a
695
+ scrollOffset: s
687
696
  }) {
688
- const d = n.left - t.left + (n.width - t.width) / 2 - a.x, r = n.top - t.top + (n.height - t.height) / 2 - a.y, s = n.width / t.width, l = n.height / t.height, i = Math.max(s, l);
697
+ const d = n.left - t.left + (n.width - t.width) / 2 - s.x, r = n.top - t.top + (n.height - t.height) / 2 - s.y, a = n.width / t.width, l = n.height / t.height, i = Math.max(a, l);
689
698
  return {
690
699
  transformOrigin: `${t.left + t.width / 2}px ${t.top + t.height / 2}px`,
691
700
  animate: (o) => {
@@ -697,25 +706,25 @@ function pt({
697
706
  }
698
707
  };
699
708
  }
700
- function yt({
709
+ function gt({
701
710
  detailRect: t,
702
711
  galleryRect: n,
703
- pageRect: a,
712
+ pageRect: s,
704
713
  scrollOffset: d
705
714
  }) {
706
- const r = n.left - t.left + (n.width - t.width) / 2 + d.x, s = n.top - t.top + (n.height - t.height) / 2 + d.y, l = n.width / t.width, i = n.height / t.height, c = Math.min(l, i), o = t.top / a.height * 100, e = (a.width - (t.left + t.width)) / a.width * 100, p = (a.height - (t.top + t.height)) / a.height * 100, y = t.left / a.width * 100;
715
+ const r = n.left - t.left + (n.width - t.width) / 2 + d.x, a = n.top - t.top + (n.height - t.height) / 2 + d.y, l = n.width / t.width, i = n.height / t.height, c = Math.min(l, i), o = t.top / s.height * 100, e = (s.width - (t.left + t.width)) / s.width * 100, p = (s.height - (t.top + t.height)) / s.height * 100, y = t.left / s.width * 100;
707
716
  return {
708
717
  transformOrigin: `${t.left + t.width / 2}px ${t.top + t.height / 2}px`,
709
718
  animate: (g) => {
710
719
  const u = 1 - g;
711
720
  return {
712
721
  clipPath: `inset(${o * u}% ${e * u}% ${p * u}% ${y * u}%)`,
713
- transform: `translate(${r * u - d.x}px, ${s * u - d.y}px) scale(${1 + (c - 1) * u})`
722
+ transform: `translate(${r * u - d.x}px, ${a * u - d.y}px) scale(${1 + (c - 1) * u})`
714
723
  };
715
724
  }
716
725
  };
717
726
  }
718
- function gt(t, n, a) {
727
+ function ut(t, n, s) {
719
728
  const d = t.querySelector(
720
729
  "[data-pinterest-detail-key]"
721
730
  ), r = n.querySelector(
@@ -723,50 +732,50 @@ function gt(t, n, a) {
723
732
  );
724
733
  if (t.querySelectorAll("[data-pinterest-detail-key]").length > 1 || n.querySelectorAll("[data-pinterest-detail-key]").length > 1)
725
734
  return null;
726
- let s = null, l = null, i = !1;
735
+ let a = null, l = null, i = !1;
727
736
  if (!d && r) {
728
737
  l = r;
729
738
  const e = l.getAttribute("data-pinterest-detail-key");
730
739
  if (!e) return null;
731
- s = t.querySelector(
740
+ a = t.querySelector(
732
741
  `[data-pinterest-gallery-key="${e}"]`
733
- ), s && (i = !0);
742
+ ), a && (i = !0);
734
743
  } else if (d && !r) {
735
744
  l = d;
736
745
  const e = l.getAttribute("data-pinterest-detail-key");
737
746
  if (!e) return null;
738
- s = n.querySelector(
747
+ a = n.querySelector(
739
748
  `[data-pinterest-gallery-key="${e}"]`
740
- ), s && (i = !1);
749
+ ), a && (i = !1);
741
750
  }
742
- if (!s || !l)
751
+ if (!a || !l)
743
752
  return null;
744
- const c = b(i ? t : n, s), o = b(i ? n : t, l);
753
+ const c = b(i ? t : n, a), o = b(i ? n : t, l);
745
754
  if (i) {
746
- const e = dt({
755
+ const e = ht({
747
756
  detailRect: o,
748
757
  galleryRect: c,
749
758
  pageRect: n.getBoundingClientRect(),
750
- scrollOffset: a
751
- }), p = ht({
759
+ scrollOffset: s
760
+ }), p = pt({
752
761
  galleryRect: c,
753
762
  detailRect: o,
754
- scrollOffset: a
763
+ scrollOffset: s
755
764
  });
756
765
  return n.style.transformOrigin = e.transformOrigin, t.style.transformOrigin = p.transformOrigin, {
757
766
  inAnimation: e.animate,
758
767
  outAnimation: p.animate
759
768
  };
760
769
  } else {
761
- const e = pt({
770
+ const e = yt({
762
771
  galleryRect: c,
763
772
  detailRect: o,
764
- scrollOffset: a
765
- }), p = yt({
773
+ scrollOffset: s
774
+ }), p = gt({
766
775
  detailRect: o,
767
776
  galleryRect: c,
768
777
  pageRect: t.getBoundingClientRect(),
769
- scrollOffset: a
778
+ scrollOffset: s
770
779
  });
771
780
  return n.style.transformOrigin = e.transformOrigin, t.style.transformOrigin = p.transformOrigin, {
772
781
  inAnimation: e.animate,
@@ -774,26 +783,26 @@ function gt(t, n, a) {
774
783
  };
775
784
  }
776
785
  }
777
- const vt = (t = {}) => {
786
+ const Ft = (t = {}) => {
778
787
  var i, c;
779
788
  const n = {
780
789
  stiffness: ((i = t.spring) == null ? void 0 : i.stiffness) ?? 30,
781
790
  damping: ((c = t.spring) == null ? void 0 : c.damping) ?? 10
782
- }, a = t.timeout ?? 300;
783
- let d = null, r = null, s = null, l = null;
791
+ }, s = t.timeout ?? 300;
792
+ let d = null, r = null, a = null, l = null;
784
793
  return {
785
794
  in: async (o, { scrollOffset: e }) => {
786
795
  const p = o;
787
796
  return !await new Promise((h) => {
788
797
  d ? h(!0) : (r = h, setTimeout(() => {
789
798
  r = null, h(!1);
790
- }, a));
799
+ }, s));
791
800
  }) || !d ? (l == null || l(), l = null, d = null, {
792
801
  spring: n,
793
802
  css: () => ({})
794
- }) : (s = gt(d, p, e), l == null || l(), l = null, s ? (d = null, {
803
+ }) : (a = ut(d, p, e), l == null || l(), l = null, a ? (d = null, {
795
804
  spring: n,
796
- css: (h) => s ? s.inAnimation(h) : {}
805
+ css: (h) => a ? a.inAnimation(h) : {}
797
806
  }) : (d = null, {
798
807
  spring: n,
799
808
  css: () => ({})
@@ -811,29 +820,29 @@ const vt = (t = {}) => {
811
820
  wait: async () => {
812
821
  d = o, r && (r(!0), r = null), await e;
813
822
  },
814
- css: (p) => s ? s.outAnimation(p) : {}
823
+ css: (p) => a ? a.outAnimation(p) : {}
815
824
  };
816
825
  }
817
826
  };
818
- }, _ = {
827
+ }, I = {
819
828
  stiffness: 5,
820
829
  damping: 4
821
- }, Ft = (t = {}) => {
830
+ }, Yt = (t = {}) => {
822
831
  var c, o;
823
- const n = t.direction ?? "up", a = {
824
- stiffness: ((c = t.spring) == null ? void 0 : c.stiffness) ?? _.stiffness,
825
- damping: ((o = t.spring) == null ? void 0 : o.damping) ?? _.damping
832
+ const n = t.direction ?? "up", s = {
833
+ stiffness: ((c = t.spring) == null ? void 0 : c.stiffness) ?? I.stiffness,
834
+ damping: ((o = t.spring) == null ? void 0 : o.damping) ?? I.damping
826
835
  }, d = n === "up";
827
- let r = null, s = null, l = null;
836
+ let r = null, a = null, l = null;
828
837
  const i = () => {
829
- if (r === null || s === null)
838
+ if (r === null || a === null)
830
839
  return null;
831
- const e = Math.min(r, s), p = window.innerHeight;
840
+ const e = Math.min(r, a), p = window.innerHeight;
832
841
  return Math.max(e, p);
833
842
  };
834
843
  return {
835
- in: (e) => (s = e.offsetHeight, r !== null && (l = i()), {
836
- spring: a,
844
+ in: (e) => (a = e.offsetHeight, r !== null && (l = i()), {
845
+ spring: s,
837
846
  prepare: () => {
838
847
  e.style.willChange = "transform", e.style.backfaceVisibility = "hidden", e.style.contain = "layout paint";
839
848
  },
@@ -847,9 +856,9 @@ const vt = (t = {}) => {
847
856
  }
848
857
  }),
849
858
  out: (e, p) => ({
850
- spring: a,
859
+ spring: s,
851
860
  onStart: () => {
852
- r = e.offsetHeight, s !== null && (l = i());
861
+ r = e.offsetHeight, a !== null && (l = i());
853
862
  },
854
863
  tick: (y) => {
855
864
  l === null && (l = i());
@@ -861,18 +870,18 @@ const vt = (t = {}) => {
861
870
  }
862
871
  })
863
872
  };
864
- }, I = {
873
+ }, O = {
865
874
  stiffness: 15,
866
875
  damping: 7
867
- }, Yt = (t = {}) => {
868
- var r, s;
869
- const n = t.direction ?? "left", a = {
870
- stiffness: ((r = t.spring) == null ? void 0 : r.stiffness) ?? I.stiffness,
871
- damping: ((s = t.spring) == null ? void 0 : s.damping) ?? I.damping
876
+ }, Ut = (t = {}) => {
877
+ var r, a;
878
+ const n = t.direction ?? "left", s = {
879
+ stiffness: ((r = t.spring) == null ? void 0 : r.stiffness) ?? O.stiffness,
880
+ damping: ((a = t.spring) == null ? void 0 : a.damping) ?? O.damping
872
881
  }, d = n === "left";
873
882
  return {
874
883
  in: (l) => ({
875
- spring: a,
884
+ spring: s,
876
885
  prepare: () => {
877
886
  l.style.willChange = "transform", l.style.backfaceVisibility = "hidden", l.style.contain = "layout paint";
878
887
  },
@@ -884,7 +893,7 @@ const vt = (t = {}) => {
884
893
  }
885
894
  }),
886
895
  out: (l, i) => ({
887
- spring: a,
896
+ spring: s,
888
897
  css: (c) => ({
889
898
  transform: `translate3d(${d ? (1 - c) * -100 : (1 - c) * 100}%, 0, 0)`
890
899
  }),
@@ -893,46 +902,46 @@ const vt = (t = {}) => {
893
902
  }
894
903
  })
895
904
  };
896
- }, O = { stiffness: 17, damping: 6 }, L = 20, C = 800, Ut = () => {
905
+ }, D = { stiffness: 17, damping: 6 }, L = 20, C = 800, Vt = () => {
897
906
  let t, n = null;
898
907
  return {
899
- in: (a) => ({
900
- spring: O,
908
+ in: (s) => ({
909
+ spring: D,
901
910
  prepare: () => {
902
- a.style.willChange = "transform", a.style.backfaceVisibility = "hidden", a.style.contain = "layout paint", a.style.transform = `perspective(${C}px) rotateY(${L}deg) translate3d(-100%, 0, 0)`;
911
+ s.style.willChange = "transform", s.style.backfaceVisibility = "hidden", s.style.contain = "layout paint", s.style.transform = `perspective(${C}px) rotateY(${L}deg) translate3d(-100%, 0, 0)`;
903
912
  },
904
913
  wait: async () => {
905
914
  t && await t;
906
915
  },
907
916
  css: (d) => {
908
- const r = (1 - d) * L, s = -(1 - d) * 100;
917
+ const r = (1 - d) * L, a = -(1 - d) * 100;
909
918
  return {
910
- transform: `perspective(${C}px) rotateY(${r}deg) translate3d(${s}%, 0, 0)`
919
+ transform: `perspective(${C}px) rotateY(${r}deg) translate3d(${a}%, 0, 0)`
911
920
  };
912
921
  },
913
922
  onEnd: () => {
914
- a.style.transform = "", a.style.willChange = "auto", a.style.backfaceVisibility = "", a.style.contain = "";
923
+ s.style.transform = "", s.style.willChange = "auto", s.style.backfaceVisibility = "", s.style.contain = "";
915
924
  }
916
925
  }),
917
- out: (a, d) => (t = new Promise((r) => {
926
+ out: (s, d) => (t = new Promise((r) => {
918
927
  n = r;
919
928
  }), {
920
- spring: O,
929
+ spring: D,
921
930
  prepare: (r) => {
922
931
  x(r, d), r.style.willChange = "transform", r.style.backfaceVisibility = "hidden", r.style.contain = "layout paint", r.style.pointerEvents = "none", r.style.transform = `perspective(${C}px) rotateY(0deg) translate3d(0%, 0, 0)`;
923
932
  },
924
933
  css: (r) => {
925
- const s = 1 - r, l = s * L, i = s * 100;
934
+ const a = 1 - r, l = a * L, i = a * 100;
926
935
  return {
927
936
  transform: `perspective(${C}px) rotateY(${-l}deg) translate3d(${i}%, 0, 0)`
928
937
  };
929
938
  },
930
939
  onEnd: () => {
931
- n && n(), a.style.transform = "";
940
+ n && n(), s.style.transform = "";
932
941
  }
933
942
  })
934
943
  };
935
- }, ut = { stiffness: 1, damping: 1 }, ft = { stiffness: 20, damping: 25 }, $t = "#000000", mt = "circle", D = "CURTAIN_REVEAL_OVERLAY_ID", wt = {
944
+ }, ft = { stiffness: 1, damping: 1 }, $t = { stiffness: 20, damping: 25 }, mt = "#000000", wt = "circle", P = "CURTAIN_REVEAL_OVERLAY_ID", xt = {
936
945
  position: "fixed",
937
946
  inset: "0",
938
947
  width: "100vw",
@@ -942,17 +951,17 @@ const vt = (t = {}) => {
942
951
  alignItems: "center",
943
952
  justifyContent: "center",
944
953
  overflow: "hidden"
945
- }, xt = {
954
+ }, bt = {
946
955
  position: "relative",
947
956
  display: "inline-block",
948
957
  height: "5.5rem",
949
958
  overflow: "hidden"
950
- }, bt = {
959
+ }, Et = {
951
960
  display: "flex",
952
961
  height: "100%",
953
962
  willChange: "transform",
954
963
  transition: "transform 0.3s ease"
955
- }, Et = {
964
+ }, Ct = {
956
965
  display: "inline-flex",
957
966
  alignItems: "center",
958
967
  justifyContent: "center",
@@ -961,40 +970,40 @@ const vt = (t = {}) => {
961
970
  fontWeight: "900",
962
971
  letterSpacing: "0.02em",
963
972
  color: "#FFFFFF"
964
- }, Ct = 0.4, A = 0.5, At = 0.2;
965
- function Lt(t, n) {
973
+ }, At = 0.4, A = 0.5, Lt = 0.2;
974
+ function Tt(t, n) {
966
975
  switch (t) {
967
976
  case "circle":
968
977
  return `circle(${n * 100}% at 50% 50%)`;
969
978
  case "square":
970
979
  return `inset(${(1 - n) * 50}% round ${10 * n}%)`;
971
980
  case "triangle": {
972
- const a = n * 100;
973
- return `polygon(50% ${50 - a}%, ${50 - a}% ${50 + a}%, ${50 + a}% ${50 + a}%)`;
981
+ const s = n * 100;
982
+ return `polygon(50% ${50 - s}%, ${50 - s}% ${50 + s}%, ${50 + s}% ${50 + s}%)`;
974
983
  }
975
984
  }
976
985
  }
977
- const Tt = (t) => t.reduce((n, a) => n + a, 0), Vt = (t = {}) => {
986
+ const kt = (t) => t.reduce((n, s) => n + s, 0), Wt = (t = {}) => {
978
987
  const {
979
- background: n = $t,
980
- texts: a = [],
981
- shape: d = mt,
982
- inSpring: r = ft,
983
- outSpring: s = ut,
988
+ background: n = mt,
989
+ texts: s = [],
990
+ shape: d = wt,
991
+ inSpring: r = $t,
992
+ outSpring: a = ft,
984
993
  textStyle: l = {}
985
994
  } = t;
986
995
  return {
987
996
  out: (i, c) => {
988
997
  const o = i.style.opacity;
989
998
  return {
990
- spring: s,
999
+ spring: a,
991
1000
  from: 1,
992
1001
  to: 0,
993
1002
  prepare: (e) => {
994
1003
  x(e, c), e.style.opacity = "1";
995
1004
  },
996
1005
  tick: (e) => {
997
- const p = Math.max(0, e - Ct);
1006
+ const p = Math.max(0, e - At);
998
1007
  i.style.opacity = String(p);
999
1008
  },
1000
1009
  onEnd: () => {
@@ -1005,13 +1014,13 @@ const Tt = (t) => t.reduce((n, a) => n + a, 0), Vt = (t = {}) => {
1005
1014
  in: (i) => {
1006
1015
  let c = null, o = null, e = null;
1007
1016
  const p = document.body.style.overflow, y = document.getElementById(
1008
- D
1017
+ P
1009
1018
  );
1010
1019
  let h = [];
1011
1020
  const g = () => {
1012
- c = document.createElement("div"), c.id = D, Object.assign(c.style, wt, { background: n }), document.body.appendChild(c), o = document.createElement("div"), Object.assign(o.style, xt), c.appendChild(o), e = document.createElement("div"), Object.assign(e.style, bt), o.appendChild(e), a.forEach((u) => {
1021
+ c = document.createElement("div"), c.id = P, Object.assign(c.style, xt, { background: n }), document.body.appendChild(c), o = document.createElement("div"), Object.assign(o.style, bt), c.appendChild(o), e = document.createElement("div"), Object.assign(e.style, Et), o.appendChild(e), s.forEach((u) => {
1013
1022
  const m = document.createElement("div");
1014
- m.textContent = u, Object.assign(m.style, Et, l), e.appendChild(m);
1023
+ m.textContent = u, Object.assign(m.style, Ct, l), e.appendChild(m);
1015
1024
  }), h = Array.from(e.children).map(
1016
1025
  (u) => u.getBoundingClientRect().width
1017
1026
  );
@@ -1025,19 +1034,19 @@ const Tt = (t) => t.reduce((n, a) => n + a, 0), Vt = (t = {}) => {
1025
1034
  },
1026
1035
  tick: (u) => {
1027
1036
  if (!(!c || !o || !e)) {
1028
- if (u <= A && a.length > 0) {
1037
+ if (u <= A && s.length > 0) {
1029
1038
  const m = u / A, f = Math.min(
1030
- Math.floor(m * a.length),
1031
- a.length - 1
1032
- ), w = h[f] ?? 0, $ = Tt(h.slice(0, f));
1039
+ Math.floor(m * s.length),
1040
+ s.length - 1
1041
+ ), w = h[f] ?? 0, $ = kt(h.slice(0, f));
1033
1042
  o.style.width = `${w}px`, e.style.transform = `translateX(-${$}px)`;
1034
1043
  }
1035
1044
  if (u > A) {
1036
1045
  const f = 1 - Math.max(
1037
1046
  0,
1038
- Math.min(1, (u - A) / At)
1047
+ Math.min(1, (u - A) / Lt)
1039
1048
  );
1040
- c.style.clipPath = Lt(d, f), o.style.transform = `scale(${f})`;
1049
+ c.style.clipPath = Tt(d, f), o.style.transform = `scale(${f})`;
1041
1050
  }
1042
1051
  }
1043
1052
  },
@@ -1049,16 +1058,16 @@ const Tt = (t) => t.reduce((n, a) => n + a, 0), Vt = (t = {}) => {
1049
1058
  };
1050
1059
  };
1051
1060
  export {
1052
- St as blind,
1053
- Vt as curtainReveal,
1054
- _t as drill,
1055
- It as fade,
1056
- Ot as film,
1057
- Dt as hero,
1058
- Pt as instagram,
1059
- Xt as jaemin,
1060
- vt as pinterest,
1061
- Ft as scroll,
1062
- Yt as slide,
1063
- Ut as strip
1061
+ _t as blind,
1062
+ Wt as curtainReveal,
1063
+ It as drill,
1064
+ Ot as fade,
1065
+ Dt as film,
1066
+ Pt as hero,
1067
+ vt as instagram,
1068
+ Mt as jaemin,
1069
+ Ft as pinterest,
1070
+ Yt as scroll,
1071
+ Ut as slide,
1072
+ Vt as strip
1064
1073
  };