@ssgoi/core 5.2.2 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/README.md +5 -6
  2. package/dist/animation/animation.d.ts +68 -0
  3. package/dist/animation/animation.d.ts.map +1 -0
  4. package/dist/animation/host-animation.d.ts +45 -0
  5. package/dist/animation/host-animation.d.ts.map +1 -0
  6. package/dist/animation/index.d.ts +6 -0
  7. package/dist/animation/index.d.ts.map +1 -0
  8. package/dist/animation/integrator/double-spring-integrator.d.ts.map +1 -0
  9. package/dist/{animator → animation}/integrator/index.d.ts +1 -0
  10. package/dist/animation/integrator/index.d.ts.map +1 -0
  11. package/dist/animation/integrator/inertia-integrator.d.ts.map +1 -0
  12. package/dist/animation/integrator/linear-integrator.d.ts +23 -0
  13. package/dist/animation/integrator/linear-integrator.d.ts.map +1 -0
  14. package/dist/{animator → animation}/integrator/provider.d.ts +1 -1
  15. package/dist/animation/integrator/provider.d.ts.map +1 -0
  16. package/dist/animation/integrator/spring-integrator.d.ts.map +1 -0
  17. package/dist/animation/integrator/types.d.ts.map +1 -0
  18. package/dist/animation/multi-animation.d.ts +55 -0
  19. package/dist/animation/multi-animation.d.ts.map +1 -0
  20. package/dist/animation/web-animation.d.ts +65 -0
  21. package/dist/animation/web-animation.d.ts.map +1 -0
  22. package/dist/index.cjs +35 -1
  23. package/dist/index.d.ts +4 -7
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +1702 -1186
  26. package/dist/internal.cjs +1 -0
  27. package/dist/internal.d.ts +4 -0
  28. package/dist/internal.d.ts.map +1 -0
  29. package/dist/internal.js +511 -0
  30. package/dist/multi-animation-CnxqLEka.js +322 -0
  31. package/dist/multi-animation-Dw2JTJI2.cjs +1 -0
  32. package/dist/ssgoi-transition/create-context-manager.d.ts +1 -1
  33. package/dist/ssgoi-transition/create-context-manager.d.ts.map +1 -1
  34. package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts +18 -31
  35. package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts.map +1 -1
  36. package/dist/ssgoi-transition/find-matching-transition.d.ts +4 -4
  37. package/dist/ssgoi-transition/find-matching-transition.d.ts.map +1 -1
  38. package/dist/ssgoi-transition/navigation-detector-strategy.d.ts +5 -15
  39. package/dist/ssgoi-transition/navigation-detector-strategy.d.ts.map +1 -1
  40. package/dist/ssgoi-transition/process-symmetric-transitions.d.ts +2 -2
  41. package/dist/ssgoi-transition/process-symmetric-transitions.d.ts.map +1 -1
  42. package/dist/ssgoi-transition/unmount-observer.d.ts +17 -0
  43. package/dist/ssgoi-transition/unmount-observer.d.ts.map +1 -0
  44. package/dist/transitions/axis/index.d.ts +43 -0
  45. package/dist/transitions/axis/index.d.ts.map +1 -0
  46. package/dist/transitions/axis/provider/index.d.ts +8 -0
  47. package/dist/transitions/axis/provider/index.d.ts.map +1 -0
  48. package/dist/transitions/axis/provider/x/fluid.d.ts +3 -0
  49. package/dist/transitions/axis/provider/x/fluid.d.ts.map +1 -0
  50. package/dist/transitions/axis/provider/x/index.d.ts +3 -0
  51. package/dist/transitions/axis/provider/x/index.d.ts.map +1 -0
  52. package/dist/transitions/axis/provider/x/snappy.d.ts +3 -0
  53. package/dist/transitions/axis/provider/x/snappy.d.ts.map +1 -0
  54. package/dist/transitions/axis/provider/y.d.ts +3 -0
  55. package/dist/transitions/axis/provider/y.d.ts.map +1 -0
  56. package/dist/transitions/axis/provider/z.d.ts +3 -0
  57. package/dist/transitions/axis/provider/z.d.ts.map +1 -0
  58. package/dist/transitions/axis/transition.d.ts +5 -0
  59. package/dist/transitions/axis/transition.d.ts.map +1 -0
  60. package/dist/transitions/axis/types.d.ts +52 -0
  61. package/dist/transitions/axis/types.d.ts.map +1 -0
  62. package/dist/transitions/blind/index.d.ts +15 -0
  63. package/dist/transitions/blind/index.d.ts.map +1 -0
  64. package/dist/transitions/blind/transition.d.ts +16 -0
  65. package/dist/transitions/blind/transition.d.ts.map +1 -0
  66. package/dist/transitions/drill/index.d.ts +40 -0
  67. package/dist/transitions/drill/index.d.ts.map +1 -0
  68. package/dist/transitions/drill/provider/crossfade.d.ts +3 -0
  69. package/dist/transitions/drill/provider/crossfade.d.ts.map +1 -0
  70. package/dist/transitions/drill/provider/index.d.ts +3 -0
  71. package/dist/transitions/drill/provider/index.d.ts.map +1 -0
  72. package/dist/transitions/drill/provider/parallax.d.ts +3 -0
  73. package/dist/transitions/drill/provider/parallax.d.ts.map +1 -0
  74. package/dist/transitions/drill/transition.d.ts +5 -0
  75. package/dist/transitions/drill/transition.d.ts.map +1 -0
  76. package/dist/transitions/drill/types.d.ts +33 -0
  77. package/dist/transitions/drill/types.d.ts.map +1 -0
  78. package/dist/transitions/fade/index.d.ts +16 -0
  79. package/dist/transitions/fade/index.d.ts.map +1 -0
  80. package/dist/transitions/fade/transition.d.ts +6 -0
  81. package/dist/transitions/fade/transition.d.ts.map +1 -0
  82. package/dist/transitions/fade/types.d.ts +14 -0
  83. package/dist/transitions/fade/types.d.ts.map +1 -0
  84. package/dist/transitions/film/index.d.ts +16 -0
  85. package/dist/transitions/film/index.d.ts.map +1 -0
  86. package/dist/transitions/film/transition.d.ts +27 -0
  87. package/dist/transitions/film/transition.d.ts.map +1 -0
  88. package/dist/transitions/film/types.d.ts +16 -0
  89. package/dist/transitions/film/types.d.ts.map +1 -0
  90. package/dist/transitions/hero/index.d.ts +17 -0
  91. package/dist/transitions/hero/index.d.ts.map +1 -0
  92. package/dist/transitions/hero/transition.d.ts +7 -0
  93. package/dist/transitions/hero/transition.d.ts.map +1 -0
  94. package/dist/transitions/hero/types.d.ts +12 -0
  95. package/dist/transitions/hero/types.d.ts.map +1 -0
  96. package/dist/transitions/index.d.ts +11 -12
  97. package/dist/transitions/index.d.ts.map +1 -1
  98. package/dist/transitions/jaemin/index.d.ts +16 -0
  99. package/dist/transitions/jaemin/index.d.ts.map +1 -0
  100. package/dist/transitions/jaemin/transition.d.ts +18 -0
  101. package/dist/transitions/jaemin/transition.d.ts.map +1 -0
  102. package/dist/transitions/jaemin/types.d.ts +9 -0
  103. package/dist/transitions/jaemin/types.d.ts.map +1 -0
  104. package/dist/transitions/rotate/index.d.ts +15 -0
  105. package/dist/transitions/rotate/index.d.ts.map +1 -0
  106. package/dist/transitions/rotate/transition.d.ts +6 -0
  107. package/dist/transitions/rotate/transition.d.ts.map +1 -0
  108. package/dist/transitions/rotate/types.d.ts +9 -0
  109. package/dist/transitions/rotate/types.d.ts.map +1 -0
  110. package/dist/transitions/scroll/index.d.ts +15 -0
  111. package/dist/transitions/scroll/index.d.ts.map +1 -0
  112. package/dist/transitions/scroll/transition.d.ts +7 -0
  113. package/dist/transitions/scroll/transition.d.ts.map +1 -0
  114. package/dist/transitions/sheet/index.d.ts +41 -0
  115. package/dist/transitions/sheet/index.d.ts.map +1 -0
  116. package/dist/transitions/sheet/provider/background-scale.d.ts +3 -0
  117. package/dist/transitions/sheet/provider/background-scale.d.ts.map +1 -0
  118. package/dist/transitions/sheet/provider/index.d.ts +3 -0
  119. package/dist/transitions/sheet/provider/index.d.ts.map +1 -0
  120. package/dist/transitions/sheet/provider/static.d.ts +3 -0
  121. package/dist/transitions/sheet/provider/static.d.ts.map +1 -0
  122. package/dist/transitions/sheet/transition.d.ts +5 -0
  123. package/dist/transitions/sheet/transition.d.ts.map +1 -0
  124. package/dist/transitions/sheet/types.d.ts +29 -0
  125. package/dist/transitions/sheet/types.d.ts.map +1 -0
  126. package/dist/transitions/slide/index.d.ts +16 -0
  127. package/dist/transitions/slide/index.d.ts.map +1 -0
  128. package/dist/transitions/slide/transition.d.ts +7 -0
  129. package/dist/transitions/slide/transition.d.ts.map +1 -0
  130. package/dist/transitions/slide/types.d.ts +10 -0
  131. package/dist/transitions/slide/types.d.ts.map +1 -0
  132. package/dist/transitions/strip/index.d.ts +16 -0
  133. package/dist/transitions/strip/index.d.ts.map +1 -0
  134. package/dist/transitions/strip/transition.d.ts +6 -0
  135. package/dist/transitions/strip/transition.d.ts.map +1 -0
  136. package/dist/transitions/strip/types.d.ts +9 -0
  137. package/dist/transitions/strip/types.d.ts.map +1 -0
  138. package/dist/transitions/utils.d.ts +25 -5
  139. package/dist/transitions/utils.d.ts.map +1 -1
  140. package/dist/transitions/zoom/index.d.ts +22 -0
  141. package/dist/transitions/zoom/index.d.ts.map +1 -0
  142. package/dist/transitions/zoom/provider/blur.d.ts +14 -0
  143. package/dist/transitions/zoom/provider/blur.d.ts.map +1 -0
  144. package/dist/transitions/zoom/provider/expand.d.ts +10 -0
  145. package/dist/transitions/zoom/provider/expand.d.ts.map +1 -0
  146. package/dist/transitions/zoom/provider/index.d.ts +12 -0
  147. package/dist/transitions/zoom/provider/index.d.ts.map +1 -0
  148. package/dist/transitions/zoom/provider/static.d.ts +10 -0
  149. package/dist/transitions/zoom/provider/static.d.ts.map +1 -0
  150. package/dist/transitions/zoom/transition.d.ts +5 -0
  151. package/dist/transitions/zoom/transition.d.ts.map +1 -0
  152. package/dist/transitions/zoom/types.d.ts +109 -0
  153. package/dist/transitions/zoom/types.d.ts.map +1 -0
  154. package/dist/transitions/zoom/zoom-element.d.ts +4 -0
  155. package/dist/transitions/zoom/zoom-element.d.ts.map +1 -0
  156. package/dist/types/index.d.ts +174 -0
  157. package/dist/types/index.d.ts.map +1 -0
  158. package/dist/types.cjs +1 -1
  159. package/dist/types.d.ts +2 -504
  160. package/dist/types.js +3 -77
  161. package/dist/utils/get-viewport-rect.d.ts +17 -0
  162. package/dist/utils/get-viewport-rect.d.ts.map +1 -0
  163. package/dist/utils/index.d.ts +2 -0
  164. package/dist/utils/index.d.ts.map +1 -1
  165. package/dist/utils/prepare-outgoing.d.ts +2 -2
  166. package/dist/utils/prepare-outgoing.d.ts.map +1 -1
  167. package/dist/utils/promise-all.d.ts +18 -0
  168. package/dist/utils/promise-all.d.ts.map +1 -0
  169. package/package.json +7 -19
  170. package/dist/animator/integrator/double-spring-integrator.d.ts.map +0 -1
  171. package/dist/animator/integrator/index.d.ts.map +0 -1
  172. package/dist/animator/integrator/inertia-integrator.d.ts.map +0 -1
  173. package/dist/animator/integrator/provider.d.ts.map +0 -1
  174. package/dist/animator/integrator/spring-integrator.d.ts.map +0 -1
  175. package/dist/animator/integrator/types.d.ts.map +0 -1
  176. package/dist/animator/multi-animator.d.ts +0 -101
  177. package/dist/animator/multi-animator.d.ts.map +0 -1
  178. package/dist/animator/runner/css-runner.d.ts +0 -17
  179. package/dist/animator/runner/css-runner.d.ts.map +0 -1
  180. package/dist/animator/runner/keyframes-runner.d.ts +0 -14
  181. package/dist/animator/runner/keyframes-runner.d.ts.map +0 -1
  182. package/dist/animator/runner/provider.d.ts +0 -44
  183. package/dist/animator/runner/provider.d.ts.map +0 -1
  184. package/dist/animator/runner/tick-runner.d.ts +0 -16
  185. package/dist/animator/runner/tick-runner.d.ts.map +0 -1
  186. package/dist/animator/runner/ticker.d.ts +0 -38
  187. package/dist/animator/runner/ticker.d.ts.map +0 -1
  188. package/dist/animator/runner/types.d.ts +0 -34
  189. package/dist/animator/runner/types.d.ts.map +0 -1
  190. package/dist/animator/single-animator.d.ts +0 -65
  191. package/dist/animator/single-animator.d.ts.map +0 -1
  192. package/dist/animator/types.d.ts +0 -57
  193. package/dist/animator/types.d.ts.map +0 -1
  194. package/dist/presets/index.cjs +0 -1
  195. package/dist/presets/index.d.ts +0 -22
  196. package/dist/presets/index.d.ts.map +0 -1
  197. package/dist/presets/index.js +0 -50
  198. package/dist/provider-B2B8CK6H.js +0 -142
  199. package/dist/provider-BKaONTeg.cjs +0 -1
  200. package/dist/spring-integrator-95Mh7mdw.cjs +0 -1
  201. package/dist/spring-integrator-BM4a-82c.js +0 -33
  202. package/dist/transition/create-transition-callback.d.ts +0 -8
  203. package/dist/transition/create-transition-callback.d.ts.map +0 -1
  204. package/dist/transition/transition-scope.d.ts +0 -36
  205. package/dist/transition/transition-scope.d.ts.map +0 -1
  206. package/dist/transition/transition-strategy.d.ts +0 -75
  207. package/dist/transition/transition-strategy.d.ts.map +0 -1
  208. package/dist/transition/transition.d.ts +0 -51
  209. package/dist/transition/transition.d.ts.map +0 -1
  210. package/dist/transition/unmount-observer.d.ts +0 -43
  211. package/dist/transition/unmount-observer.d.ts.map +0 -1
  212. package/dist/transitions/blur.d.ts +0 -12
  213. package/dist/transitions/blur.d.ts.map +0 -1
  214. package/dist/transitions/bounce.d.ts +0 -13
  215. package/dist/transitions/bounce.d.ts.map +0 -1
  216. package/dist/transitions/fade.d.ts +0 -10
  217. package/dist/transitions/fade.d.ts.map +0 -1
  218. package/dist/transitions/fly.d.ts +0 -11
  219. package/dist/transitions/fly.d.ts.map +0 -1
  220. package/dist/transitions/index.cjs +0 -1
  221. package/dist/transitions/index.js +0 -285
  222. package/dist/transitions/mask.d.ts +0 -12
  223. package/dist/transitions/mask.d.ts.map +0 -1
  224. package/dist/transitions/none.d.ts +0 -8
  225. package/dist/transitions/none.d.ts.map +0 -1
  226. package/dist/transitions/rotate.d.ts +0 -15
  227. package/dist/transitions/rotate.d.ts.map +0 -1
  228. package/dist/transitions/scale.d.ts +0 -11
  229. package/dist/transitions/scale.d.ts.map +0 -1
  230. package/dist/transitions/slide.d.ts +0 -13
  231. package/dist/transitions/slide.d.ts.map +0 -1
  232. package/dist/types.d.ts.map +0 -1
  233. package/dist/view-transitions/blind.d.ts +0 -11
  234. package/dist/view-transitions/blind.d.ts.map +0 -1
  235. package/dist/view-transitions/curtain-reveal.d.ts +0 -18
  236. package/dist/view-transitions/curtain-reveal.d.ts.map +0 -1
  237. package/dist/view-transitions/depth.d.ts +0 -21
  238. package/dist/view-transitions/depth.d.ts.map +0 -1
  239. package/dist/view-transitions/drill.d.ts +0 -9
  240. package/dist/view-transitions/drill.d.ts.map +0 -1
  241. package/dist/view-transitions/fade.d.ts +0 -8
  242. package/dist/view-transitions/fade.d.ts.map +0 -1
  243. package/dist/view-transitions/film.d.ts +0 -10
  244. package/dist/view-transitions/film.d.ts.map +0 -1
  245. package/dist/view-transitions/hero.d.ts +0 -9
  246. package/dist/view-transitions/hero.d.ts.map +0 -1
  247. package/dist/view-transitions/index.cjs +0 -35
  248. package/dist/view-transitions/index.d.ts +0 -18
  249. package/dist/view-transitions/index.d.ts.map +0 -1
  250. package/dist/view-transitions/index.js +0 -1614
  251. package/dist/view-transitions/instagram.d.ts +0 -8
  252. package/dist/view-transitions/instagram.d.ts.map +0 -1
  253. package/dist/view-transitions/jaemin.d.ts +0 -21
  254. package/dist/view-transitions/jaemin.d.ts.map +0 -1
  255. package/dist/view-transitions/pinterest.d.ts +0 -8
  256. package/dist/view-transitions/pinterest.d.ts.map +0 -1
  257. package/dist/view-transitions/rotate.d.ts +0 -6
  258. package/dist/view-transitions/rotate.d.ts.map +0 -1
  259. package/dist/view-transitions/scroll.d.ts +0 -8
  260. package/dist/view-transitions/scroll.d.ts.map +0 -1
  261. package/dist/view-transitions/sheet.d.ts +0 -21
  262. package/dist/view-transitions/sheet.d.ts.map +0 -1
  263. package/dist/view-transitions/slide.d.ts +0 -8
  264. package/dist/view-transitions/slide.d.ts.map +0 -1
  265. package/dist/view-transitions/snap.d.ts +0 -16
  266. package/dist/view-transitions/snap.d.ts.map +0 -1
  267. package/dist/view-transitions/strip.d.ts +0 -7
  268. package/dist/view-transitions/strip.d.ts.map +0 -1
  269. package/dist/view-transitions/swap.d.ts +0 -15
  270. package/dist/view-transitions/swap.d.ts.map +0 -1
  271. /package/dist/{animator → animation}/integrator/double-spring-integrator.d.ts +0 -0
  272. /package/dist/{animator → animation}/integrator/inertia-integrator.d.ts +0 -0
  273. /package/dist/{animator → animation}/integrator/spring-integrator.d.ts +0 -0
  274. /package/dist/{animator → animation}/integrator/types.d.ts +0 -0
@@ -1,285 +0,0 @@
1
- import { a as v } from "../spring-integrator-BM4a-82c.js";
2
- import { D as j, a as q, I as A } from "../provider-B2B8CK6H.js";
3
- function y(e, t) {
4
- return e != null && e.spring || e != null && e.inertia || e != null && e.integrator ? e : { spring: t.spring };
5
- }
6
- const k = (e = {}) => {
7
- const { from: t = 0, to: n = 1, key: c } = e, r = y(e.physics, {
8
- spring: { stiffness: 300, damping: 30 }
9
- });
10
- return {
11
- in: () => ({
12
- physics: r,
13
- css: (s) => ({
14
- opacity: t + (n - t) * s
15
- })
16
- }),
17
- out: () => ({
18
- physics: r,
19
- css: (s) => ({
20
- opacity: t + (n - t) * s
21
- })
22
- }),
23
- ...c && { key: c }
24
- };
25
- }, S = (e = {}) => {
26
- const { start: t = 0, opacity: n = 0, axis: c = "both", key: r } = e, s = y(e.physics, {
27
- spring: { stiffness: 300, damping: 30 }
28
- }), $ = (a) => {
29
- switch (c) {
30
- case "x":
31
- return `scaleX(${a})`;
32
- case "y":
33
- return `scaleY(${a})`;
34
- case "both":
35
- default:
36
- return `scale(${a})`;
37
- }
38
- }, u = (a) => {
39
- const o = t + (1 - t) * a;
40
- return {
41
- transform: $(o),
42
- opacity: n + (1 - n) * a
43
- };
44
- };
45
- return {
46
- in: () => ({ physics: s, css: u }),
47
- out: () => ({ physics: s, css: u }),
48
- ...r && { key: r }
49
- };
50
- }, w = (e = {}) => {
51
- const {
52
- direction: t,
53
- distance: n = 100,
54
- opacity: c = 0,
55
- fade: r = !0,
56
- axis: s,
57
- key: $
58
- } = e, u = y(e.physics, {
59
- spring: { stiffness: 400, damping: 35 }
60
- }), o = t || (s === "x" ? "left" : s === "y" ? "up" : "left"), l = (p) => {
61
- const i = 1 - p;
62
- if (typeof n == "number") {
63
- const d = i * n;
64
- switch (o) {
65
- case "left":
66
- return `translate3d(${-d}px, 0, 0)`;
67
- case "right":
68
- return `translate3d(${d}px, 0, 0)`;
69
- case "up":
70
- return `translate3d(0, ${-d}px, 0)`;
71
- case "down":
72
- return `translate3d(0, ${d}px, 0)`;
73
- }
74
- } else
75
- switch (o) {
76
- case "left":
77
- return `translate3d(calc(-1 * ${n} * ${i}), 0, 0)`;
78
- case "right":
79
- return `translate3d(calc(${n} * ${i}), 0, 0)`;
80
- case "up":
81
- return `translate3d(0, calc(-1 * ${n} * ${i}), 0)`;
82
- case "down":
83
- return `translate3d(0, calc(${n} * ${i}), 0)`;
84
- }
85
- }, f = (p) => {
86
- const i = {
87
- transform: l(p)
88
- };
89
- return r && (i.opacity = c + (1 - c) * p), i;
90
- };
91
- return {
92
- in: () => ({ physics: u, css: f }),
93
- out: () => ({ physics: u, css: f }),
94
- ...$ && { key: $ }
95
- };
96
- }, C = (e = {}) => {
97
- const {
98
- degrees: t = 360,
99
- clockwise: n = !0,
100
- scale: c = !1,
101
- fade: r = !0,
102
- origin: s = "center",
103
- axis: $ = "2d",
104
- perspective: u = 800,
105
- key: a
106
- } = e, o = y(e.physics, {
107
- spring: { stiffness: 500, damping: 25 }
108
- }), l = n ? t : -t, f = (i) => {
109
- const d = (1 - i) * l;
110
- switch ($) {
111
- case "x":
112
- return `perspective(${u}px) rotateX(${d}deg)`;
113
- case "y":
114
- return `perspective(${u}px) rotateY(${d}deg)`;
115
- case "z":
116
- return `rotateZ(${d}deg)`;
117
- case "2d":
118
- default:
119
- return `rotate(${d}deg)`;
120
- }
121
- }, p = (i) => {
122
- const d = {}, m = [f(i)];
123
- return c && m.push(`scale(${i})`), d.transform = m.join(" "), d.transformOrigin = s, r && (d.opacity = i), d;
124
- };
125
- return {
126
- in: () => ({ physics: o, css: p }),
127
- out: () => ({ physics: o, css: p }),
128
- ...a && { key: a }
129
- };
130
- }, I = (e = {}) => {
131
- const {
132
- height: t = 20,
133
- intensity: n = 1,
134
- scale: c = !0,
135
- fade: r = !0,
136
- direction: s = "up",
137
- key: $
138
- } = e, u = y(e.physics, {
139
- spring: { stiffness: 800, damping: 15 }
140
- }), a = (o) => {
141
- const l = {}, f = [], p = Math.sin(o * Math.PI * (1 + n)), i = 1 - o, d = p * t * i;
142
- if (s === "up" ? f.push(`translateY(${-Math.abs(d)}px)`) : f.push(`translateY(${Math.abs(d)}px)`), c) {
143
- const m = 0.8 + o * 0.2 + p * 0.05 * i;
144
- f.push(`scale(${m})`);
145
- }
146
- return l.transform = f.join(" "), r && (l.opacity = o), l;
147
- };
148
- return {
149
- in: () => ({ physics: u, css: a }),
150
- out: () => ({ physics: u, css: a }),
151
- ...$ && { key: $ }
152
- };
153
- }, P = (e = {}) => {
154
- const { amount: t = 10, opacity: n = 0, scale: c = !1, fade: r = !0, key: s } = e, $ = y(e.physics, {
155
- spring: { stiffness: 300, damping: 30 }
156
- }), u = (a) => {
157
- const o = 1 - a, l = {};
158
- return typeof t == "number" ? l.filter = `blur(${o * t}px)` : l.filter = `blur(calc(${t} * ${o}))`, c && (l.transform = `scale(${0.8 + a * 0.2})`), r && (l.opacity = n + (1 - n) * a), l;
159
- };
160
- return {
161
- in: () => ({ physics: $, css: u }),
162
- out: () => ({ physics: $, css: u }),
163
- ...s && { key: s }
164
- };
165
- }, D = (e = {}) => {
166
- const { x: t = 0, y: n = -100, opacity: c = 0, spring: r, key: s } = e, $ = {
167
- stiffness: (r == null ? void 0 : r.stiffness) ?? 400,
168
- damping: (r == null ? void 0 : r.damping) ?? 35,
169
- doubleSpring: (r == null ? void 0 : r.doubleSpring) ?? !1
170
- }, u = (a) => {
171
- const o = 1 - a;
172
- let l, f;
173
- return typeof t == "number" ? l = `${o * t}px` : l = `calc(${t} * ${o})`, typeof n == "number" ? f = `${o * n}px` : f = `calc(${n} * ${o})`, {
174
- transform: `translate3d(${l}, ${f}, 0)`,
175
- opacity: c + (1 - c) * a
176
- };
177
- };
178
- return {
179
- in: () => ({
180
- spring: $,
181
- css: u
182
- }),
183
- out: () => ({
184
- spring: $,
185
- css: u
186
- }),
187
- ...s && { key: s }
188
- };
189
- }, M = (e = {}) => {
190
- const {
191
- shape: t = "circle",
192
- origin: n = "center",
193
- scale: c = 1.5,
194
- fade: r = !1,
195
- spring: s,
196
- key: $
197
- } = e, u = {
198
- stiffness: (s == null ? void 0 : s.stiffness) ?? 300,
199
- damping: (s == null ? void 0 : s.damping) ?? 30,
200
- doubleSpring: (s == null ? void 0 : s.doubleSpring) ?? !1
201
- }, a = () => {
202
- switch (n) {
203
- case "top":
204
- return "50% 0%";
205
- case "bottom":
206
- return "50% 100%";
207
- case "left":
208
- return "0% 50%";
209
- case "right":
210
- return "100% 50%";
211
- case "top-left":
212
- return "0% 0%";
213
- case "top-right":
214
- return "100% 0%";
215
- case "bottom-left":
216
- return "0% 100%";
217
- case "bottom-right":
218
- return "100% 100%";
219
- case "center":
220
- default:
221
- return "50% 50%";
222
- }
223
- }, o = (f) => {
224
- const p = f * c * 100, i = a();
225
- switch (t) {
226
- case "ellipse":
227
- return `ellipse(${p}% ${p * 0.75}% at ${i})`;
228
- case "square": {
229
- const d = f * c * 100, [m, x] = i.split(" "), b = parseFloat(m), h = parseFloat(x), g = d / 2;
230
- return `polygon(${b - g}% ${h - g}%, ${b + g}% ${h - g}%, ${b + g}% ${h + g}%, ${b - g}% ${h + g}%)`;
231
- }
232
- case "circle":
233
- default:
234
- return `circle(${p}% at ${i})`;
235
- }
236
- }, l = (f) => {
237
- const p = {
238
- clipPath: o(f)
239
- };
240
- return r && (p.opacity = f), p;
241
- };
242
- return {
243
- in: () => ({
244
- spring: u,
245
- css: l
246
- }),
247
- out: () => ({
248
- spring: u,
249
- css: l
250
- }),
251
- ...$ && { key: $ }
252
- };
253
- }, z = (e = {}) => {
254
- const { spring: t, key: n } = e, c = {
255
- stiffness: (t == null ? void 0 : t.stiffness) ?? 1e3,
256
- damping: (t == null ? void 0 : t.damping) ?? 100,
257
- doubleSpring: (t == null ? void 0 : t.doubleSpring) ?? !1
258
- };
259
- return {
260
- in: () => ({
261
- spring: c,
262
- css: () => ({})
263
- }),
264
- out: () => ({
265
- spring: c,
266
- css: () => ({})
267
- }),
268
- ...n && { key: n }
269
- };
270
- };
271
- export {
272
- j as DoubleSpringIntegrator,
273
- q as InertiaIntegrator,
274
- A as IntegratorProvider,
275
- v as SpringIntegrator,
276
- P as blur,
277
- I as bounce,
278
- k as fade,
279
- D as fly,
280
- M as mask,
281
- z as none,
282
- C as rotate,
283
- S as scale,
284
- w as slide
285
- };
@@ -1,12 +0,0 @@
1
- import { SpringConfig, Transition, TransitionKey } from '../types';
2
- interface MaskOptions {
3
- shape?: "circle" | "ellipse" | "square";
4
- origin?: "center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
5
- scale?: number;
6
- fade?: boolean;
7
- spring?: Partial<SpringConfig>;
8
- key?: TransitionKey;
9
- }
10
- export declare const mask: (options?: MaskOptions) => Transition;
11
- export {};
12
- //# sourceMappingURL=mask.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,UAAU,EACV,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxC,MAAM,CAAC,EACH,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,UAwFhD,CAAC"}
@@ -1,8 +0,0 @@
1
- import { SpringConfig, Transition, TransitionKey } from '../types';
2
- interface NoneOptions {
3
- spring?: Partial<SpringConfig>;
4
- key?: TransitionKey;
5
- }
6
- export declare const none: (options?: NoneOptions) => Transition;
7
- export {};
8
- //# sourceMappingURL=none.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"none.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/none.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,UAAU,EACV,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,UAoBhD,CAAC"}
@@ -1,15 +0,0 @@
1
- import { PhysicsOptions, Transition, TransitionKey } from '../types';
2
- type RotateOptions = {
3
- degrees?: number;
4
- clockwise?: boolean;
5
- scale?: boolean;
6
- fade?: boolean;
7
- origin?: string;
8
- axis?: "2d" | "x" | "y" | "z";
9
- perspective?: number;
10
- physics?: PhysicsOptions;
11
- key?: TransitionKey;
12
- };
13
- export declare const rotate: (options?: RotateOptions) => Transition;
14
- export {};
15
- //# sourceMappingURL=rotate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rotate.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/rotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,UAAU,EACV,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,KAAK,aAAa,GAAG;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,KAAG,UAuDpD,CAAC"}
@@ -1,11 +0,0 @@
1
- import { PhysicsOptions, Transition, TransitionKey } from '../types';
2
- type ScaleOptions = {
3
- start?: number;
4
- opacity?: number;
5
- axis?: "x" | "y" | "both";
6
- physics?: PhysicsOptions;
7
- key?: TransitionKey;
8
- };
9
- export declare const scale: (options?: ScaleOptions) => Transition;
10
- export {};
11
- //# sourceMappingURL=scale.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,UAAU,EACV,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,KAAK,YAAY,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,UA+BlD,CAAC"}
@@ -1,13 +0,0 @@
1
- import { PhysicsOptions, Transition, TransitionKey } from '../types';
2
- type SlideOptions = {
3
- direction?: "left" | "right" | "up" | "down";
4
- distance?: number | string;
5
- opacity?: number;
6
- fade?: boolean;
7
- axis?: "x" | "y";
8
- physics?: PhysicsOptions;
9
- key?: TransitionKey;
10
- };
11
- export declare const slide: (options?: SlideOptions) => Transition;
12
- export {};
13
- //# sourceMappingURL=slide.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slide.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/slide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,UAAU,EACV,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,KAAK,YAAY,GAAG;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAA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AAM,KAAK,IAAI,CAAC;IAClC,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,WAAW,CAAA;KAAE,CAAC;IACzE,SAAS,CAAC,EAAE;QACV,OAAO,EAAE,WAAW,CAAC;QACrB,MAAM,EAAE,QAAQ,EAAE,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,oBAAoB,EACpB,OAAO,GAAG,UAAU,CACrB,GAAG;IACF,KAAK,EAAE,uBAAuB,EAAE,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,WAAW,GACpB,8BAA8B,CAsDhC;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
@@ -1,11 +0,0 @@
1
- import { SggoiTransition, PhysicsOptions } from '../types';
2
- interface BlindOptions {
3
- physics?: PhysicsOptions;
4
- transitionDelay?: number;
5
- blindCount?: number;
6
- direction?: "horizontal" | "vertical";
7
- blindColor?: string;
8
- }
9
- export declare const blind: (options?: BlindOptions) => SggoiTransition;
10
- export {};
11
- //# sourceMappingURL=blind.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blind.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/blind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAGf,cAAc,EACf,MAAM,UAAU,CAAC;AAelB,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eA0MlD,CAAC"}
@@ -1,18 +0,0 @@
1
- import { SggoiTransition, PhysicsOptions } from '../types';
2
- type CurtainShape = "circle" | "square" | "triangle";
3
- interface CurtainRevealOptions {
4
- /** Background style.
5
- *
6
- * Supports both:
7
- * - Solid colors (e.g., `"#000000"`, `"rgb(255, 0, 0)"`)
8
- * - CSS gradients (e.g., `"linear-gradient(to right, #000, #fff)"`)
9
- */
10
- background?: string;
11
- texts?: string[];
12
- shape?: CurtainShape;
13
- textStyle?: Partial<CSSStyleDeclaration>;
14
- physics?: PhysicsOptions;
15
- }
16
- export declare const curtainReveal: (options?: CurtainRevealOptions) => SggoiTransition;
17
- export {};
18
- //# sourceMappingURL=curtain-reveal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"curtain-reveal.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/curtain-reveal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAqDhE,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAErD,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAmBD,eAAO,MAAM,aAAa,GACxB,UAAS,oBAAyB,KACjC,eA6HF,CAAC"}
@@ -1,21 +0,0 @@
1
- import { PhysicsOptions, SggoiTransition } from '../types';
2
- interface DepthOptions {
3
- direction?: "enter" | "exit";
4
- physics?: PhysicsOptions;
5
- /** Scale offset as a fraction (default: 0.05 = 5%) */
6
- scaleOffset?: number;
7
- }
8
- /**
9
- * Material Design Z-Axis depth transition
10
- *
11
- * Enter direction (forward navigation):
12
- * - IN: New page scales up from 0.8 → 1 with fade in (coming forward)
13
- * - OUT: Old page scales up to 1.2 with fade out (going backward), z-index: -1
14
- *
15
- * Exit direction (back navigation):
16
- * - IN: Returning page scales down from 1.2 → 1 with fade in (coming forward from behind)
17
- * - OUT: Current page scales down to 0.8 with fade out (going backward), z-index: 100
18
- */
19
- export declare const depth: (options?: DepthOptions) => SggoiTransition;
20
- export {};
21
- //# sourceMappingURL=depth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAGhB,MAAM,UAAU,CAAC;AA4BlB,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAoBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eA+JlD,CAAC"}
@@ -1,9 +0,0 @@
1
- import { PhysicsOptions, SggoiTransition } from '../types';
2
- interface DrillOptions {
3
- opacity?: boolean;
4
- direction?: "enter" | "exit";
5
- physics?: PhysicsOptions;
6
- }
7
- export declare const drill: (options?: DrillOptions) => SggoiTransition;
8
- export {};
9
- //# sourceMappingURL=drill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drill.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/drill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAmB7E,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAoHlD,CAAC"}
@@ -1,8 +0,0 @@
1
- import { SggoiTransition, PhysicsOptions } from '../types';
2
- interface FadeOptions {
3
- transitionDelay?: number;
4
- physics?: PhysicsOptions;
5
- }
6
- export declare const fade: (options?: FadeOptions) => SggoiTransition;
7
- export {};
8
- //# sourceMappingURL=fade.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,cAAc,EAAE,MAAM,UAAU,CAAC;AAY7E,UAAU,WAAW;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAwDhD,CAAC"}
@@ -1,10 +0,0 @@
1
- import { PhysicsOptions, SggoiTransition } from '../types';
2
- interface FilmOptions {
3
- border?: {
4
- color?: string;
5
- };
6
- physics?: PhysicsOptions;
7
- }
8
- export declare const film: (options?: FilmOptions) => SggoiTransition;
9
- export {};
10
- //# sourceMappingURL=film.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/film.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,eAAe,EAGhB,MAAM,UAAU,CAAC;AA4BlB,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AA8QD,eAAO,MAAM,IAAI,GAAI,UAAU,WAAW,KAAG,eAmH5C,CAAC"}
@@ -1,9 +0,0 @@
1
- import { SggoiTransition, PhysicsOptions } from '../types';
2
- interface HeroOptions {
3
- physics?: PhysicsOptions;
4
- timeout?: number;
5
- maxDistance?: number;
6
- }
7
- export declare const hero: (options?: HeroOptions) => SggoiTransition;
8
- export {};
9
- //# sourceMappingURL=hero.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAShE,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAwIhD,CAAC"}
@@ -1,35 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../spring-integrator-95Mh7mdw.cjs"),$=(t,e)=>{var o;t.style.position="absolute",t.style.width="100%",t.style.top=`${-1*(((o=e==null?void 0:e.scrollOffset)==null?void 0:o.y)??0)}px`,t.style.left="0"},U=t=>new Promise(e=>setTimeout(e,t));function x(t,e){function o(n){let a=0,i=0;const c=n.offsetWidth,p=n.offsetHeight;let r=n;for(;r;)a+=r.offsetTop,i+=r.offsetLeft,r=r.offsetParent;return a-=window.scrollY,i-=window.scrollX,{top:a,left:i,width:c,height:p}}const l=o(t),s=o(e);return new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height)}function E(){let t,e;return{promise:new Promise((l,s)=>{t=l,e=s}),resolve:t,reject:e}}const B={spring:{stiffness:200,damping:22}},q={spring:{stiffness:200,damping:22}},j=300,N=10,G="horizontal",Z="#000000",K=(t={})=>{const{transitionDelay:e=j,blindCount:o=N,direction:l=G,blindColor:s=Z}=t,n=t.physics??q,a=t.physics??B;let i,c=null;const p=(r,y,f="left")=>{window.getComputedStyle(r).position==="static"&&(r.style.position="relative");const d=document.createElement("div");d.className="blind-container",d.style.cssText=`
2
- position: absolute;
3
- top: 0;
4
- left: 0;
5
- width: 100%;
6
- height: 100%;
7
- pointer-events: none;
8
- z-index: 9999;
9
- overflow: hidden;
10
- `;const h=[];for(let g=0;g<o;g++){const w=document.createElement("div");if(l==="horizontal"){const b=100/o,C=`calc(${b}% + 1px)`;w.style.cssText=`
11
- position: absolute;
12
- top: ${b*g}%;
13
- left: 0;
14
- width: 100%;
15
- height: ${C};
16
- background: ${s};
17
- transform: scaleX(${y==="hidden"?0:1});
18
- transform-origin: ${f} center;
19
- will-change: transform;
20
- `}else{const b=100/o,C=`calc(${b}% + 1px)`;w.style.cssText=`
21
- position: absolute;
22
- top: 0;
23
- left: ${b*g}%;
24
- width: ${C};
25
- height: 100%;
26
- background: ${s};
27
- transform: scaleY(${y==="hidden"?0:1});
28
- transform-origin: ${f==="left"?"top":"bottom"} center;
29
- will-change: transform;
30
- `}h.push(w),d.appendChild(w)}return r.appendChild(d),{container:d,blinds:h}};return{out:r=>{let y=null;i=new Promise(d=>{c=d});const f=d=>{const h=1-d;return{transform:l==="horizontal"?`scaleX(${h})`:`scaleY(${h})`}};return{items:Array.from({length:o},(d,h)=>({physics:a,offset:.2,css:{get element(){return y==null?void 0:y.blinds[h]},style:f}})),schedule:"stagger",prepare:()=>{$(r),r.style.zIndex="1000",y=p(r,"hidden","left")},onStart:()=>{},onEnd:()=>{c&&c()}}},in:r=>{let y=null;const f=d=>{const h=1-d;return{transform:l==="horizontal"?`scaleX(${h})`:`scaleY(${h})`}};return{items:Array.from({length:o},(d,h)=>({physics:n,offset:.2,css:{get element(){return y==null?void 0:y.blinds[h]},style:f}})),schedule:"stagger",prepare:()=>{r.style.position="relative",r.style.zIndex="0",y=p(r,"closed","right")},onStart:()=>{},wait:async()=>{i&&await i,await U(e)},onEnd:()=>{y&&y.container&&y.container.remove()}}}}},J={spring:{stiffness:1,damping:1}},Q={spring:{stiffness:20,damping:25}},R="#000000",tt="circle",F="CURTAIN_REVEAL_OVERLAY_ID",st={position:"fixed",inset:"0",width:"100vw",height:"100%",zIndex:"9999",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},it={position:"relative",display:"inline-block",height:"5.5rem",overflow:"hidden"},nt={display:"flex",height:"100%",willChange:"transform",transition:"transform 0.3s ease"},et={display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:"5.5rem",fontWeight:"900",letterSpacing:"0.02em",color:"#FFFFFF"},at=.4,O=.5,ot=.2;function rt(t,e){switch(t){case"circle":return`circle(${e*100}% at 50% 50%)`;case"square":return`inset(${(1-e)*50}% round ${10*e}%)`;case"triangle":{const o=e*100;return`polygon(50% ${50-o}%, ${50-o}% ${50+o}%, ${50+o}% ${50+o}%)`}}}const lt=t=>t.reduce((e,o)=>e+o,0),ct=(t={})=>{const{background:e=R,texts:o=[],shape:l=tt,textStyle:s={}}=t,n=t.physics??Q,a=t.physics??J;return{out:(i,c)=>{const p=i.style.opacity;return{physics:a,from:1,to:0,prepare:()=>{$(i,c),i.style.opacity="1"},tick:r=>{const y=Math.max(0,r-at);i.style.opacity=String(y)},onEnd:()=>{i.style.opacity=p}}},in:i=>{let c=null,p=null,r=null;const y=document.body.style.overflow,f=document.getElementById(F);let u=[];const d=()=>{c=document.createElement("div"),c.id=F,Object.assign(c.style,st,{background:e}),document.body.appendChild(c),p=document.createElement("div"),Object.assign(p.style,it),c.appendChild(p),r=document.createElement("div"),Object.assign(r.style,nt),p.appendChild(r),o.forEach(h=>{const g=document.createElement("div");g.textContent=h,Object.assign(g.style,et,s),r.appendChild(g)}),u=Array.from(r.children).map(h=>h.getBoundingClientRect().width)};return{physics:n,from:0,to:1,prepare:()=>{document.body.style.overflow="hidden",i.style.opacity="1",f==null||f.remove(),d(),c&&p&&(c.style.clipPath="none",p.style.transform="scale(1)")},tick:h=>{if(!(!c||!p||!r)){if(h<=O&&o.length>0){const g=h/O,w=Math.min(Math.floor(g*o.length),o.length-1),b=u[w]??0,C=lt(u.slice(0,w));p.style.width=`${b}px`,r.style.transform=`translateX(-${C}px)`}if(h>O){const w=1-Math.max(0,Math.min(1,(h-O)/ot));c.style.clipPath=rt(l,w),p.style.transform=`scale(${w})`}}},onEnd:()=>{c==null||c.remove(),c=p=r=null,document.body.style.overflow=y}}}}},yt={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:1e14}},pt={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:1e14}},ht=.05;function A(t){const e=x(document.body,t.positionedParent),o=t.scroll.y,l=window.innerHeight-e.top;return{top:o,left:0,width:e.width,height:l}}const dt=(t={})=>{const{direction:e="enter"}=t,o=t.physics??(e==="enter"?yt:pt),l=t.scaleOffset??ht;let{promise:s,resolve:n}=E();return e==="enter"?{in:(a,i)=>{const c=A(i),p=c.left+c.width/2,r=c.top+c.height/2;return{physics:o,prepare:()=>{a.style.opacity="0",a.style.willChange="transform, opacity",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.transformOrigin=`${p}px ${r}px`},wait:async()=>{if(s){await s;const y=E();s=y.promise,n=y.resolve}},css:y=>({transform:`scale(${1-l+y*l})`,opacity:y}),onEnd:()=>{a.style.opacity="1",a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transformOrigin=""}}},out:(a,i)=>{const c=A(i),p=c.left+c.width/2,r=c.top+c.height/2+i.scrollOffset.y;return{physics:o,prepare:()=>{$(a,i),a.style.zIndex="-1",a.style.willChange="transform, opacity",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.pointerEvents="none",a.style.transformOrigin=`${p}px ${r}px`},css:y=>({transform:`scale(${1+(1-y)*l})`,opacity:y}),onEnd:()=>{n&&n()}}}}:{in:(a,i)=>{const c=A(i),p=c.left+c.width/2,r=c.top+c.height/2;return{physics:o,prepare:()=>{a.style.opacity="0",a.style.willChange="transform, opacity",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.transformOrigin=`${p}px ${r}px`},wait:async()=>{if(s){await s;const y=E();s=y.promise,n=y.resolve}},css:y=>({transform:`scale(${1+l-y*l})`,opacity:y}),onEnd:()=>{a.style.opacity="1",a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transformOrigin=""}}},out:(a,i)=>{const c=A(i),p=c.left+c.width/2,r=c.top+c.height/2+i.scrollOffset.y;return{physics:o,prepare:()=>{$(a,i),a.style.zIndex="100",a.style.willChange="transform, opacity",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.pointerEvents="none",a.style.transformOrigin=`${p}px ${r}px`},css:y=>({transform:`scale(${1-(1-y)*l})`,opacity:y}),onEnd:()=>{n&&n()}}}}},ft={spring:{stiffness:170,damping:22}},ut={spring:{stiffness:170,damping:22}},gt=(t={})=>{const{opacity:e=!1,direction:o="enter"}=t,l=t.physics??(o==="enter"?ft:ut);return o==="enter"?{in:s=>({physics:l,prepare:()=>{s.style.willChange=e?"transform, opacity":"transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"},css:n=>{const a={transform:`translate3d(${(1-n)*100}%, 0, 0)`};return e&&(a.opacity=n),a},onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain=""}}),out:(s,n)=>({physics:l,prepare:()=>{$(s,n),s.style.zIndex="-1",s.style.willChange=e?"transform, opacity":"transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"},css:a=>{const i={transform:`translate3d(${-(1-a)*20}%, 0, 0)`};return e&&(i.opacity=a),i}})}:{in:s=>({physics:l,prepare:()=>{s.style.willChange=e?"transform, opacity":"transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"},css:n=>{const a={transform:`translate3d(${-(1-n)*20}%, 0, 0)`};return e&&(a.opacity=n),a},onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain=""}}),out:(s,n)=>({physics:l,prepare:()=>{$(s,n),s.style.zIndex="100",s.style.willChange=e?"transform, opacity":"transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"},css:a=>{const i={transform:`translate3d(${(1-a)*100}%, 0, 0)`};return e&&(i.opacity=a),i}})}},wt={spring:{stiffness:180,damping:20,doubleSpring:!0}},$t={spring:{stiffness:170,damping:20,doubleSpring:!0}},bt=0,xt=(t={})=>{const{transitionDelay:e=bt}=t,o=t.physics??$t,l=t.physics??wt;let{promise:s,resolve:n}=E();return{in:a=>({physics:o,prepare:()=>{a.style.opacity="0",a.style.willChange="opacity"},wait:async()=>{if(s){await s;const i=E();s=i.promise,n=i.resolve,await U(e)}},css:i=>({opacity:i}),onEnd:()=>{a.style.willChange="auto",a.style.opacity="1"}}),out:(a,i)=>({physics:l,css:c=>({opacity:c}),prepare:()=>{$(a,i),a.style.willChange="opacity"},onEnd:()=>{n&&n(),a.style.willChange="auto"}})}},Et={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},S={scaleDown:0,translate:.2,scaleUp:.8},Ct=.8,St="white",I=1e3/60,Ot=600;function At(t){const{items:e,from:o,to:l,recordFrame:s}=t,n=I/1e3,a=Math.abs(l-o),i=e.map(p=>({item:p,integrator:new v.SpringIntegrator({stiffness:p.spring.stiffness,damping:p.spring.damping}),state:{position:o,velocity:0},started:!1,settled:!1,settleTime:0}));for(let p=0;p<i.length;p++)(p===0||i[p].item.offset===0)&&(i[p].started=!0);s(0);let c=0;for(let p=1;p<=Ot;p++){const r=p*I;c=r;for(const y of i)!y.started||y.settled||(y.state=y.integrator.step(y.state,l,n),y.integrator.isSettled(y.state,l)?(y.settleTime+=n,y.settleTime>=v.SETTLE_THRESHOLD&&(y.state={position:l,velocity:0},y.settled=!0)):y.settleTime=0,y.item.tick(y.state.position));for(let y=1;y<i.length;y++){const f=i[y];if(f.started)continue;const u=i[y-1];if(!u.started)continue;(a===0?1:Math.abs(u.state.position-o)/a)>=f.item.offset&&(f.started=!0)}if(s(r),i.every(y=>y.settled))return r}return c}function P(t,e){return t!=null&&t.spring?{stiffness:t.spring.stiffness,damping:t.spring.damping}:e}function _(t){const{rect:e,springs:o,scale:l,direction:s,override:n}=t,a=s==="out"?{scale:1,translateY:-e.top}:{scale:l,translateY:-e.top+e.height},i=P(n,o.scaleDown),c=P(n,o.translate),p=P(n,o.scaleUp),r=s==="out"?1:0,y=s==="out"?0:1,f=s==="out"?[{spring:i,offset:S.scaleDown,tick:h=>{const g=1-h;a.scale=1-(1-l)*g}},{spring:c,offset:S.translate,tick:h=>{const g=1-h;a.translateY=-e.top-e.height*g}},{spring:p,offset:S.scaleUp,tick:h=>{const g=1-h;a.scale=l+(1-l)*g}}]:[{spring:i,offset:S.scaleDown,tick:h=>{a.scale=1-(1-l)*h}},{spring:c,offset:S.translate,tick:h=>{a.translateY=-e.top+e.height*(1-h)}},{spring:p,offset:S.scaleUp,tick:h=>{a.scale=l+(1-l)*h}}],u=[],d=At({items:f,from:r,to:y,recordFrame:h=>{u.push({time:h,scale:a.scale,translateY:a.translateY})}});return{snapshots:u,totalDuration:d}}function m(t,e,o){return t.length===0||e===0?[]:t.map(l=>({...o(l),offset:Math.min(1,Math.max(0,l.time/e))}))}const Tt=t=>{var s;const e=Et,o=Ct,l=((s=t==null?void 0:t.border)==null?void 0:s.color)??St;return{out:async(n,a)=>{const i=D(a),c=x(document.body,a.positionedParent),p=mt(l,{...i,top:c.top}),{snapshots:r,totalDuration:y}=_({rect:i,springs:e,scale:o,direction:"out",override:t==null?void 0:t.physics}),f=m(r,y,d=>({transform:`translateY(${d.translateY}px) scale(${d.scale})`})),u=kt.map(([d,h])=>m(r,y,g=>{const w=(i.width-i.width*g.scale)/2*.7*d,b=(i.height-i.height*g.scale)/2*.7*h;return{transform:`translate(${w}px, ${b}px)`}}));return{items:[{keyframes:{element:n,frames:f,duration:y}},...u.map((d,h)=>({keyframes:{element:Pt[h](p),frames:d,duration:y}}))],schedule:"parallel",prepare:()=>{$(n),Y(n,i),V(n,i),Lt(n,i);for(const d of p)a.positionedParent.appendChild(d)},onEnd:()=>{n.style.clipPath="",n.style.transformOrigin="",setTimeout(()=>{for(const d of p)a.positionedParent.removeChild(d)},1e3)}}},in:async(n,a)=>{const i=D(a),{snapshots:c,totalDuration:p}=_({rect:i,springs:e,scale:o,direction:"in",override:t==null?void 0:t.physics}),r=m(c,p,y=>({transform:`translateY(${y.translateY}px) scale(${y.scale})`}));return{items:[{keyframes:{element:n,frames:r,duration:p}}],schedule:"parallel",prepare:()=>{Y(n,i),V(n,i),n.style.transform=`translateY(${-i.top+i.height}px) scale(${o})`},onEnd:()=>{n.style.clipPath="",n.style.transformOrigin="",n.style.transform=""}}}}},kt=[[1,1],[-1,1],[1,-1],[-1,-1]],Pt=[t=>t.topLeft,t=>t.topRight,t=>t.bottomLeft,t=>t.bottomRight];function mt(t="white",e){const s=document.createElement("div");s.style.position="fixed",s.style.pointerEvents="none",s.style.zIndex="9999",s.style.top=`${e.top-1}px`,s.style.left=`${e.left-1}px`,s.style.width="15px",s.style.height="15px";const n=document.createElement("div");n.style.position="absolute",n.style.width="15px",n.style.height="1px",n.style.backgroundColor=t,n.style.top="0",n.style.left="0";const a=document.createElement("div");a.style.position="absolute",a.style.width="1px",a.style.height="15px",a.style.backgroundColor=t,a.style.top="0",a.style.left="0",s.appendChild(n),s.appendChild(a);const i=document.createElement("div");i.style.position="fixed",i.style.pointerEvents="none",i.style.zIndex="9999",i.style.top=`${e.top-1}px`,i.style.left=`${e.left+e.width-15+1}px`,i.style.width="15px",i.style.height="15px";const c=document.createElement("div");c.style.position="absolute",c.style.width="15px",c.style.height="1px",c.style.backgroundColor=t,c.style.top="0",c.style.right="0";const p=document.createElement("div");p.style.position="absolute",p.style.width="1px",p.style.height="15px",p.style.backgroundColor=t,p.style.top="0",p.style.right="0",i.appendChild(c),i.appendChild(p);const r=document.createElement("div");r.style.position="fixed",r.style.pointerEvents="none",r.style.zIndex="9999",r.style.top=`${e.top+e.height-15+1}px`,r.style.left=`${e.left-1}px`,r.style.width="15px",r.style.height="15px";const y=document.createElement("div");y.style.position="absolute",y.style.width="15px",y.style.height="1px",y.style.backgroundColor=t,y.style.bottom="0",y.style.left="0";const f=document.createElement("div");f.style.position="absolute",f.style.width="1px",f.style.height="15px",f.style.backgroundColor=t,f.style.bottom="0",f.style.left="0",r.appendChild(y),r.appendChild(f);const u=document.createElement("div");u.style.position="fixed",u.style.pointerEvents="none",u.style.zIndex="9999",u.style.top=`${e.top+e.height-15+1}px`,u.style.left=`${e.left+e.width-15+1}px`,u.style.width="15px",u.style.height="15px";const d=document.createElement("div");d.style.position="absolute",d.style.width="15px",d.style.height="1px",d.style.backgroundColor=t,d.style.bottom="0",d.style.right="0";const h=document.createElement("div");return h.style.position="absolute",h.style.width="1px",h.style.height="15px",h.style.backgroundColor=t,h.style.top="0",h.style.right="0",u.appendChild(d),u.appendChild(h),{topLeft:s,topRight:i,bottomLeft:r,bottomRight:u,*[Symbol.iterator](){yield s,yield i,yield r,yield u}}}function D(t){const e=x(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:e.width,height:window.innerHeight-e.top}}function Y(t,e){const o=e.left+e.width/2,l=e.top+e.height/2;t.style.transformOrigin=`${o}px ${l}px`}function V(t,e){t.style.clipPath=`polygon(
31
- ${e.left}px ${e.top}px,
32
- ${e.left+e.width}px ${e.top}px,
33
- ${e.left+e.width}px ${e.top+e.height}px,
34
- ${e.left}px ${e.top+e.height}px
35
- )`}function Lt(t,e){t.style.transform=`translateY(${-e.top}px)`}const vt={spring:{stiffness:300,damping:30}};function Ft(t,e){return t.querySelector(`[data-hero-key="${e}"]`)}const It=(t={})=>{const e=t.physics??vt,o=t.maxDistance??700;let l=null,s=E();return{in:async(n,a)=>{const i=n,c=Array.from(i.querySelectorAll("[data-hero-key]"));await s.promise;const p=c.map(r=>{const y=r.getAttribute("data-hero-key");if(!y)return null;const f=Ft(l,y);if(!f)return null;const u=r,d=x(l,f),h=x(i,u),g=d.left-h.left-a.scrollOffset.x,w=d.top-h.top-a.scrollOffset.y,b=d.width/h.width,C=d.height/h.height,H=u.style.transform,M=u.style.position,X=u.style.transformOrigin,z=u.style.zIndex,W=u.style.willChange;return{toEl:u,dx:g,dy:w,dw:b,dh:C,originalTransform:H,originalPosition:M,originalTransformOrigin:X,originalZIndex:z,originalWillChange:W}}).filter(r=>r!==null&&Math.abs(r.dy)<=o);return l=null,s=E(),p.length===0?{physics:e,tick:()=>{}}:{items:p.map(({toEl:r,dx:y,dy:f,dw:u,dh:d})=>({physics:e,tick:h=>{r.style.transform=`translate(${(1-h)*y}px, ${(1-h)*f}px) scale(${h+(1-h)*u}, ${h+(1-h)*d})`}})),schedule:"parallel",prepare:()=>{p.forEach(({toEl:r})=>{r.style.position="relative",r.style.transformOrigin="top left",r.style.zIndex="1000",r.style.willChange="transform"})},onEnd:()=>{p.forEach(({toEl:r,originalTransform:y,originalPosition:f,originalTransformOrigin:u,originalZIndex:d,originalWillChange:h})=>{r.style.transform=y,r.style.position=f,r.style.transformOrigin=u,r.style.zIndex=d,r.style.willChange=h})}}},out:async n=>({physics:e,tick:()=>{},prepare:()=>{l=n,s.resolve(),$(n),n.style.opacity="0"}})}},_t={spring:{stiffness:420,damping:34}};function Dt({detailRect:t,galleryRect:e,pageRect:o,scrollOffset:l}){const s=e.left-t.left+(e.width-t.width)/2-l.x,n=e.top-t.top+(e.height-t.height)/2-l.y,a=e.width/t.width,i=e.height/t.height,c=Math.max(a,i),p=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,y=(o.height-(t.top+t.height))/o.height*100,f=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:d=>{const h=1-d;return{clipPath:`inset(${p*h}% ${r*h}% ${y*h}% ${f*h}%)`,transform:`translate(${s*h}px, ${n*h}px) scale(${1+(c-1)*h})`}}}}function Yt({detailRect:t,galleryRect:e,pageRect:o,scrollOffset:l}){const s=e.left-t.left+(e.width-t.width)/2+l.x,n=e.top-t.top+(e.height-t.height)/2+l.y,a=e.width/t.width,i=e.height/t.height,c=Math.min(a,i),p=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,y=(o.height-(t.top+t.height))/o.height*100,f=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:d=>{const h=1-d;return{clipPath:`inset(${p*h}% ${r*h}% ${y*h}% ${f*h}%)`,transform:`translate(${s*h-l.x}px, ${n*h-l.y}px) scale(${1+(c-1)*h})`}}}}function Vt(t,e,o){const l=t.querySelector("[data-instagram-detail-key]"),s=e.querySelector("[data-instagram-detail-key]");if(t.querySelectorAll("[data-instagram-detail-key]").length>1||e.querySelectorAll("[data-instagram-detail-key]").length>1)return null;let n=null,a=null,i=!1;if(!l&&s){a=s;const r=a.getAttribute("data-instagram-detail-key");if(!r)return null;n=t.querySelector(`[data-instagram-gallery-key="${r}"]`),n&&(i=!0)}else if(l&&!s){a=l;const r=a.getAttribute("data-instagram-detail-key");if(!r)return null;n=e.querySelector(`[data-instagram-gallery-key="${r}"]`),n&&(i=!1)}if(!n||!a)return null;const c=x(i?t:e,n),p=x(i?e:t,a);if(i){const r=Dt({detailRect:p,galleryRect:c,pageRect:e.getBoundingClientRect(),scrollOffset:o});return e.style.transformOrigin=r.transformOrigin,{isEnterMode:!0,inAnimation:r.animate}}else{const r=Yt({detailRect:p,galleryRect:c,pageRect:t.getBoundingClientRect(),scrollOffset:o});return t.style.transformOrigin=r.transformOrigin,{isEnterMode:!1,outAnimation:r.animate}}}const Ut=(t={})=>{const e=t.physics??_t,o=t.timeout??300;let l=null,s=null,n=null,a=null;return{in:async(i,{scrollOffset:c})=>{const p=i;return!await new Promise(y=>{l?y(!0):(s=y,setTimeout(()=>{s=null,y(!1)},o))})||!l?(a==null||a(),a=null,l=null,{physics:e,css:()=>({})}):(n=Vt(l,p,c),a==null||a(),a=null,n?(l=null,{physics:e,prepare:()=>{i.style.willChange="transform, clip-path",i.style.backfaceVisibility="hidden",i.style.contain="layout paint"},css:y=>n!=null&&n.inAnimation?n.inAnimation(y):{},onEnd:()=>{i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}}):(l=null,{physics:e,css:()=>({})}))},out:async(i,c)=>{const p=new Promise(r=>{a=r});return{physics:e,prepare:()=>{n!=null&&n.isEnterMode?$(i):($(i,c),i.style.zIndex="-1"),i.style.willChange="transform, clip-path",i.style.backfaceVisibility="hidden",i.style.contain="layout paint"},wait:async()=>{l=i,s&&(s(!0),s=null),await p},css:r=>n!=null&&n.outAnimation?n.outAnimation(r):{},onEnd:()=>{i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}}}}},Ht={spring:{stiffness:50,damping:30}};function Mt(t){const e=x(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:e.width,height:window.innerHeight-e.top}}const Xt=(t={})=>{const e=t.physics??Ht,o=t.initialRotation??45,l=t.initialScale??.01,s=t.rotationTriggerPoint??.8;return{out:async(n,a)=>{const i=n.style.opacity;return{physics:{spring:{stiffness:80,damping:25}},from:1,to:0,prepare:()=>{$(n,a),n.style.opacity="1"},tick:c=>{n.style.opacity=String(c)},onEnd:()=>{n.style.opacity=i}}},in:async(n,a)=>{const i=Mt(a),c=n.style.transform,p=n.style.transformOrigin,r=n.style.position,y=n.style.zIndex;return{physics:e,from:0,to:1,prepare:()=>{const f=Math.min(i.width,i.height)*.4;n.style.setProperty("--max-border-radius",`${f}px`),n.style.setProperty("--border-radius-scale","1"),n.style.willChange="transform",n.style.backfaceVisibility="hidden";const u=i.left+i.width/2,d=i.top+i.height/2;n.style.transformOrigin=`${u}px ${d}px`,n.style.position="fixed",n.style.top=`${i.top}px`,n.style.left=`${i.left}px`,n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.zIndex="1000",n.style.overflow="hidden",n.style.transform=`rotate(${o}deg) scale(${l}) translateZ(0)`,n.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",n.style.opacity="1"},tick:f=>{let u;if(f<=.05)u=l;else if(f<=s){const w=(f-.05)/(s-.05),b=Math.pow(w,9);u=l+(.8-l)*b}else{const w=(f-s)/(1-s);u=.8+.2*(1-Math.pow(1-w,3))}let d;const h=.7;if(f<=h)d=o;else{const w=(f-h)/(1-h),b=1-Math.pow(1-w,2);d=o*(1-b)}let g;if(f<=h)g=1;else{const w=(f-h)/(1-h);g=1-Math.pow(w,.5)}n.style.transform=`rotate(${d.toFixed(2)}deg) scale(${u.toFixed(4)}) translateZ(0)`,n.style.setProperty("--border-radius-scale",g.toFixed(4))},onEnd:()=>{n.style.willChange="",n.style.backfaceVisibility="",n.style.removeProperty("--max-border-radius"),n.style.removeProperty("--border-radius-scale"),n.style.transform=c,n.style.transformOrigin=p,n.style.position=r,n.style.zIndex=y,n.style.top="",n.style.left="",n.style.width="",n.style.height="",n.style.overflow="",n.style.borderRadius=""}}}}},zt={spring:{stiffness:340,damping:30,doubleSpring:1}};function Wt({detailRect:t,galleryRect:e,pageRect:o,scrollOffset:l}){const s=e.left-t.left+(e.width-t.width)/2-l.x,n=e.top-t.top+(e.height-t.height)/2-l.y,a=e.width/t.width,i=e.height/t.height,c=Math.max(a,i),p=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,y=(o.height-(t.top+t.height))/o.height*100,f=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:d=>{const h=1-d;return{clipPath:`inset(${p*h}% ${r*h}% ${y*h}% ${f*h}%)`,transform:`translate(${s*h}px, ${n*h}px) scale(${1+(c-1)*h})`}}}}function Bt({galleryRect:t,detailRect:e,scrollOffset:o}){const l=e.left-t.left+(e.width-t.width)/2+o.x,s=e.top-t.top+(e.height-t.height)/2+o.y,n=e.width/t.width,a=e.height/t.height,i=Math.max(n,a);return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:p=>{const r=1-p;return{transform:`translate(${l*r-o.x}px, ${s*r-o.y}px) scale(${1+(i-1)*r})`,opacity:`${1-r}`}}}}function qt({galleryRect:t,detailRect:e,scrollOffset:o}){const l=e.left-t.left+(e.width-t.width)/2-o.x,s=e.top-t.top+(e.height-t.height)/2-o.y,n=e.width/t.width,a=e.height/t.height,i=Math.max(n,a);return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:p=>{const r=1-p,y=p;return{transform:`translate(${l*r}px, ${s*r}px) scale(${1+(i-1)*r})`,opacity:`${y}`}}}}function jt({detailRect:t,galleryRect:e,pageRect:o,scrollOffset:l}){const s=e.left-t.left+(e.width-t.width)/2+l.x,n=e.top-t.top+(e.height-t.height)/2+l.y,a=e.width/t.width,i=e.height/t.height,c=Math.min(a,i),p=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,y=(o.height-(t.top+t.height))/o.height*100,f=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:d=>{const h=1-d;return{clipPath:`inset(${p*h}% ${r*h}% ${y*h}% ${f*h}%)`,transform:`translate(${s*h-l.x}px, ${n*h-l.y}px) scale(${1+(c-1)*h})`}}}}function Nt(t,e,o){const l=t.querySelector("[data-pinterest-detail-key]"),s=e.querySelector("[data-pinterest-detail-key]");if(t.querySelectorAll("[data-pinterest-detail-key]").length>1||e.querySelectorAll("[data-pinterest-detail-key]").length>1)return null;let n=null,a=null,i=!1;if(!l&&s){a=s;const r=a.getAttribute("data-pinterest-detail-key");if(!r)return null;n=t.querySelector(`[data-pinterest-gallery-key="${r}"]`),n&&(i=!0)}else if(l&&!s){a=l;const r=a.getAttribute("data-pinterest-detail-key");if(!r)return null;n=e.querySelector(`[data-pinterest-gallery-key="${r}"]`),n&&(i=!1)}if(!n||!a)return null;const c=x(i?t:e,n),p=x(i?e:t,a);if(i){const r=Wt({detailRect:p,galleryRect:c,pageRect:e.getBoundingClientRect(),scrollOffset:o}),y=Bt({galleryRect:c,detailRect:p,scrollOffset:o});return e.style.transformOrigin=r.transformOrigin,t.style.transformOrigin=y.transformOrigin,{inAnimation:r.animate,outAnimation:y.animate}}else{const r=qt({galleryRect:c,detailRect:p,scrollOffset:o}),y=jt({detailRect:p,galleryRect:c,pageRect:t.getBoundingClientRect(),scrollOffset:o});return e.style.transformOrigin=r.transformOrigin,t.style.transformOrigin=y.transformOrigin,{inAnimation:r.animate,outAnimation:y.animate}}}const Gt=(t={})=>{const e=t.physics??zt,o=t.timeout??300;let l=null,s=null,n=null,a=null;return{in:async(i,{scrollOffset:c})=>{const p=i;return!await new Promise(y=>{l?y(!0):(s=y,setTimeout(()=>{s=null,y(!1)},o))})||!l?(a==null||a(),a=null,l=null,{physics:e,css:()=>({})}):(n=Nt(l,p,c),a==null||a(),a=null,n?(l=null,{physics:e,prepare:()=>{i.style.willChange="transform, clip-path",i.style.backfaceVisibility="hidden",i.style.contain="layout paint"},css:y=>n?n.inAnimation(y):{},onEnd:()=>{i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}}):(l=null,{physics:e,css:()=>({})}))},out:async i=>{const c=new Promise(p=>{a=p});return{physics:e,prepare:()=>{$(i),i.style.zIndex="-1",i.style.willChange="transform, clip-path, opacity",i.style.backfaceVisibility="hidden",i.style.contain="layout paint",l=i,s&&(s(!0),s=null)},wait:async()=>{await c},css:p=>n?n.outAnimation(p):{},onEnd:()=>{i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}}}}},Zt={spring:{stiffness:100,damping:30}},Kt=(t={})=>{const e=t.physics??Zt;return{in:o=>({physics:e,prepare:()=>{o.style.opacity="0",o.style.transform="rotate(-180deg)",o.style.transformOrigin="center center",o.style.willChange="transform, opacity"},css:l=>({transform:`rotate(${(l-1)*180}deg)`,opacity:l>.5?1:0}),onEnd:()=>{o.style.willChange="auto",o.style.transform="",o.style.transformOrigin="",o.style.opacity=""}}),out:(o,l)=>({physics:e,prepare:()=>{$(o,l),o.style.transformOrigin="center center",o.style.willChange="transform, opacity"},css:s=>({transform:`rotate(${(1-s)*180}deg)`,opacity:s>.5?1:0}),onEnd:()=>{o.style.willChange="auto"}})}},Jt={spring:{stiffness:5,damping:4}},Qt=(t={})=>{const e=t.direction??"up",o=t.physics??Jt,l=e==="up";let s=null,n=null,a=null;const i=()=>{if(s===null||n===null)return null;const c=Math.min(s,n),p=window.innerHeight;return Math.max(c,p)};return{in:c=>(n=c.offsetHeight,s!==null&&(a=i()),{physics:o,prepare:()=>{c.style.willChange="transform",c.style.backfaceVisibility="hidden",c.style.contain="layout paint"},tick:p=>{a===null&&(a=i());const r=a??window.innerHeight,y=l?(1-p)*r:(1-p)*-r;c.style.transform=`translate3d(0, ${y}px, 0)`},onEnd:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain=""}}),out:(c,p)=>({physics:o,tick:r=>{a===null&&(a=i());const y=a??window.innerHeight,f=l?(1-r)*-y:(1-r)*y;c.style.transform=`translate3d(0, ${f}px, 0)`},prepare:()=>{s=c.offsetHeight,n!==null&&(a=i()),$(c,p),c.style.zIndex=l?"-1":"1",c.style.willChange="transform",c.style.backfaceVisibility="hidden",c.style.contain="layout paint",c.style.pointerEvents="none"}})}},Rt={spring:{stiffness:200,damping:24}},ts={inertia:{acceleration:25,resistance:1.2}},ss=.2;function T(t){const e=x(document.body,t.positionedParent),o=t.scroll.y,l=t.scrollingElement.offsetHeight-e.top,s={top:o,left:0,width:e.width,height:l};return{...s,centerX:s.left+s.width/2,centerY:s.top+s.height/2}}const is=(t={})=>{const{direction:e="enter"}=t,o=t.physics??(e==="enter"?Rt:ts),l=t.scaleOffset??ss;return e==="enter"?{in:(s,n)=>{const a=T(n);return{physics:o,prepare:()=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.clipPath=`inset(${a.top}px 0 calc(100% - ${a.top+a.height}px) 0)`},css:i=>({transform:`translate3d(0, ${(1-i)*a.height}px, 0)`}),onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain="",s.style.clipPath=""}}},out:(s,n)=>{const a=T(n),i=a.left+a.width/2,c=a.top+a.height/2;return{physics:o,prepare:()=>{$(s,n),s.style.zIndex="-1",s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none",s.style.transformOrigin=`${i}px ${c}px`,s.style.clipPath=`inset(${a.top}px 0 calc(100% - ${a.top+a.height}px) 0)`},css:p=>({transform:`scale(${1-l+p*l})`,opacity:p})}}}:{in:(s,n)=>{const a=T(n),i=a.left+a.width/2,c=a.top+a.height/2;return{physics:o,prepare:()=>{s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.transformOrigin=`${i}px ${c}px`,s.style.clipPath=`inset(${a.top}px 0 calc(100% - ${a.top+a.height}px) 0)`},css:p=>({transform:`scale(${1-l+p*l})`,opacity:p}),onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain="",s.style.transformOrigin="",s.style.clipPath=""}}},out:(s,n)=>{const i=T(n).height,c=n.scroll.y;return{physics:o,prepare:()=>{$(s,n),s.style.zIndex="100",s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none",s.style.clipPath=`inset(${c}px 0 calc(100% - ${c+i}px) 0)`},css:p=>({transform:`translate3d(0, ${(1-p)*i}px, 0)`})}}}},ns={spring:{stiffness:170,damping:22,doubleSpring:.8}},es=(t={})=>{const e=t.direction??"left",o=t.physics??ns,l=e==="left";return{in:s=>({physics:o,prepare:()=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"},css:n=>({transform:`translate3d(${l?(1-n)*100:(1-n)*-100}%, 0, 0)`}),onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain=""}}),out:(s,n)=>({physics:o,css:a=>({transform:`translate3d(${l?(1-a)*-100:(1-a)*100}%, 0, 0)`}),prepare:()=>{$(s,n),s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"}})}},as=8,os={spring:{stiffness:400,damping:30,restDelta:.1,restSpeed:1e14}},rs=(t={})=>{const e=t.direction??"left",o=t.physics??os,l=t.translateOffset??as,s=e==="left";let{promise:n,resolve:a}=E();return{in:i=>({physics:o,prepare:()=>{i.style.opacity="0",i.style.willChange="transform, opacity",i.style.backfaceVisibility="hidden",i.style.contain="layout paint"},wait:async()=>{if(n){await n;const c=E();n=c.promise,a=c.resolve}},css:c=>{const p=s?(1-c)*l:(1-c)*-l,r=`${c}`;return{transform:`translate3d(${p}px, 0, 0)`,opacity:r}},onEnd:()=>{i.style.opacity="1",i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}}),out:(i,c)=>({physics:o,prepare:()=>{$(i,c),i.style.willChange="transform, opacity",i.style.backfaceVisibility="hidden",i.style.contain="layout paint",i.style.pointerEvents="none"},css:p=>{const r=s?(1-p)*-l:(1-p)*l,y=`${p}`;return{transform:`translate3d(${r}px, 0, 0)`,opacity:y}},onEnd:()=>{a&&a(),i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}})}},ls={spring:{stiffness:17,damping:6}},L=20,k=800,cs=(t={})=>{const e=t.physics??ls;let o,l=null;return{in:s=>({physics:e,prepare:()=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.transform=`perspective(${k}px) rotateY(${L}deg) translate3d(-100%, 0, 0)`},wait:async()=>{o&&await o},css:n=>{const a=(1-n)*L,i=-(1-n)*100;return{transform:`perspective(${k}px) rotateY(${a}deg) translate3d(${i}%, 0, 0)`}},onEnd:()=>{s.style.transform="",s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain=""}}),out:(s,n)=>(o=new Promise(a=>{l=a}),{physics:e,prepare:()=>{$(s,n),s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none",s.style.transform=`perspective(${k}px) rotateY(0deg) translate3d(0%, 0, 0)`},css:a=>{const i=1-a,c=i*L,p=i*100;return{transform:`perspective(${k}px) rotateY(${-c}deg) translate3d(${p}%, 0, 0)`}},onEnd:()=>{l&&l(),s.style.transform=""}})}},ys={spring:{stiffness:350,damping:32,restDelta:.1,restSpeed:1e14}},ps=.05;function hs(t){const e=x(document.body,t.positionedParent),o=t.scroll.y,l=window.innerHeight-e.top;return{top:o,left:0,width:e.width,height:l}}const ds=(t={})=>{const e=t.physics??ys,o=t.scaleOffset??ps;let{promise:l,resolve:s}=E();return{in:(n,a)=>{const i=hs(a),c=i.left+i.width/2,p=i.top+i.height/2;return{physics:e,prepare:()=>{n.style.opacity="0",n.style.willChange="transform, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.transformOrigin=`${c}px ${p}px`},wait:async()=>{if(l){await l;const r=E();l=r.promise,s=r.resolve}},css:r=>({transform:`scale(${1-o+r*o})`,opacity:r}),onEnd:()=>{n.style.opacity="1",n.style.willChange="auto",n.style.backfaceVisibility="",n.style.contain="",n.style.transformOrigin=""}}},out:(n,a)=>({physics:e,prepare:()=>{$(n,a),n.style.willChange="opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none"},css:i=>({opacity:i}),onEnd:()=>{s&&s()}})}};exports.blind=K;exports.curtainReveal=ct;exports.depth=dt;exports.drill=gt;exports.fade=xt;exports.film=Tt;exports.hero=It;exports.instagram=Ut;exports.jaemin=Xt;exports.pinterest=Gt;exports.rotate=Kt;exports.scroll=Qt;exports.sheet=is;exports.slide=es;exports.snap=rs;exports.strip=cs;exports.swap=ds;