@g4rcez/components 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/MotionConfigContext-C7MqlSdv.js +2713 -0
  2. package/dist/MotionConfigContext-C7MqlSdv.js.map +1 -0
  3. package/dist/autocomplete-Boida9R7.js +375 -0
  4. package/dist/autocomplete-Boida9R7.js.map +1 -0
  5. package/dist/calendar-BswV66Nx.js +1719 -0
  6. package/dist/calendar-BswV66Nx.js.map +1 -0
  7. package/dist/chevron-down-BBFYYzZq.js +6 -0
  8. package/dist/chevron-down-BBFYYzZq.js.map +1 -0
  9. package/dist/chevron-right-DvXGOiS_.js +6 -0
  10. package/dist/chevron-right-DvXGOiS_.js.map +1 -0
  11. package/dist/circle-check-big-3M5lhTxx.js +9 -0
  12. package/dist/circle-check-big-3M5lhTxx.js.map +1 -0
  13. package/dist/components/core/button.js +76 -0
  14. package/dist/components/core/button.js.map +1 -0
  15. package/dist/components/core/tag.js +67 -0
  16. package/dist/components/core/tag.js.map +1 -0
  17. package/dist/components/display/alert.js +94 -0
  18. package/dist/components/display/alert.js.map +1 -0
  19. package/dist/components/display/calendar.js +15 -0
  20. package/dist/components/display/calendar.js.map +1 -0
  21. package/dist/components/display/card.js +84 -0
  22. package/dist/components/display/card.js.map +1 -0
  23. package/dist/components/display/list.js +93 -0
  24. package/dist/components/display/list.js.map +1 -0
  25. package/dist/components/display/notifications.js +15 -0
  26. package/dist/components/display/notifications.js.map +1 -0
  27. package/dist/components/display/stats.js +16 -0
  28. package/dist/components/display/stats.js.map +1 -0
  29. package/dist/components/display/tabs.js +12 -0
  30. package/dist/components/display/tabs.js.map +1 -0
  31. package/dist/components/display/timeline.js +29 -0
  32. package/dist/components/display/timeline.js.map +1 -0
  33. package/dist/components/floating/dropdown.js +58 -0
  34. package/dist/components/floating/dropdown.js.map +1 -0
  35. package/dist/components/floating/expand.js +41 -0
  36. package/dist/components/floating/expand.js.map +1 -0
  37. package/dist/components/floating/menu.js +177 -0
  38. package/dist/components/floating/menu.js.map +1 -0
  39. package/dist/components/floating/modal.js +297 -0
  40. package/dist/components/floating/modal.js.map +1 -0
  41. package/dist/components/floating/tooltip.js +73 -0
  42. package/dist/components/floating/tooltip.js.map +1 -0
  43. package/dist/components/form/autocomplete.js +16 -0
  44. package/dist/components/form/autocomplete.js.map +1 -0
  45. package/dist/components/form/checkbox.js +44 -0
  46. package/dist/components/form/checkbox.js.map +1 -0
  47. package/dist/components/form/date-picker.js +12 -0
  48. package/dist/components/form/date-picker.js.map +1 -0
  49. package/dist/components/form/file-upload.js +11 -0
  50. package/dist/components/form/file-upload.js.map +1 -0
  51. package/dist/components/form/form.js +8 -0
  52. package/dist/components/form/form.js.map +1 -0
  53. package/dist/components/form/input.js +5 -0
  54. package/dist/components/form/input.js.map +1 -0
  55. package/dist/components/form/radiobox.js +30 -0
  56. package/dist/components/form/radiobox.js.map +1 -0
  57. package/dist/components/form/select.js +106 -0
  58. package/dist/components/form/select.js.map +1 -0
  59. package/dist/components/form/switch.js +65 -0
  60. package/dist/components/form/switch.js.map +1 -0
  61. package/dist/components/form/task-list.js +68 -0
  62. package/dist/components/form/task-list.js.map +1 -0
  63. package/dist/components/form/transfer-list.js +55 -0
  64. package/dist/components/form/transfer-list.js.map +1 -0
  65. package/dist/components/table/table.js +10 -0
  66. package/dist/components/table/table.js.map +1 -0
  67. package/dist/constants-r-AHn273.js +6 -0
  68. package/dist/constants-r-AHn273.js.map +1 -0
  69. package/dist/context-BFXNJVn2.js +161 -0
  70. package/dist/context-BFXNJVn2.js.map +1 -0
  71. package/dist/createLucideIcon-CP-mMPfa.js +76 -0
  72. package/dist/createLucideIcon-CP-mMPfa.js.map +1 -0
  73. package/dist/date-picker-BxPTdZPy.js +1598 -0
  74. package/dist/date-picker-BxPTdZPy.js.map +1 -0
  75. package/dist/dom-Dl8XH0CK.js +2833 -0
  76. package/dist/dom-Dl8XH0CK.js.map +1 -0
  77. package/dist/file-CBCP85VI.js +15 -0
  78. package/dist/file-CBCP85VI.js.map +1 -0
  79. package/dist/file-upload-BB6BdGcE.js +3118 -0
  80. package/dist/file-upload-BB6BdGcE.js.map +1 -0
  81. package/dist/floating-ui.react-DycKASR0.js +3706 -0
  82. package/dist/floating-ui.react-DycKASR0.js.map +1 -0
  83. package/dist/fns-D2eyJKd5.js +33 -0
  84. package/dist/fns-D2eyJKd5.js.map +1 -0
  85. package/dist/index-0YMC-_Lt.js +20 -0
  86. package/dist/index-0YMC-_Lt.js.map +1 -0
  87. package/dist/index-BJ1ayTam.js +126 -0
  88. package/dist/index-BJ1ayTam.js.map +1 -0
  89. package/dist/index-BtlhELJ3.js +3416 -0
  90. package/dist/index-BtlhELJ3.js.map +1 -0
  91. package/dist/index-ChfR6F8d.js +1590 -0
  92. package/dist/index-ChfR6F8d.js.map +1 -0
  93. package/dist/index-DE4shK8D.js +215 -0
  94. package/dist/index-DE4shK8D.js.map +1 -0
  95. package/dist/index-DJSMaZR4.js +35 -0
  96. package/dist/index-DJSMaZR4.js.map +1 -0
  97. package/dist/index-t1qLJTt5.js +351 -0
  98. package/dist/index-t1qLJTt5.js.map +1 -0
  99. package/dist/index.esm-BaIwleSE.js +343 -0
  100. package/dist/index.esm-BaIwleSE.js.map +1 -0
  101. package/dist/index.js +8049 -27
  102. package/dist/index.js.map +1 -1
  103. package/dist/info-N5jWZg2A.js +10 -0
  104. package/dist/info-N5jWZg2A.js.map +1 -0
  105. package/dist/input-CoJoHIhd.js +441 -0
  106. package/dist/input-CoJoHIhd.js.map +1 -0
  107. package/dist/input-field-DTeIrwpK.js +146 -0
  108. package/dist/input-field-DTeIrwpK.js.map +1 -0
  109. package/dist/notifications-NPuFDsBp.js +2550 -0
  110. package/dist/notifications-NPuFDsBp.js.map +1 -0
  111. package/dist/polymorph-B5n9fs_K.js +10 -0
  112. package/dist/polymorph-B5n9fs_K.js.map +1 -0
  113. package/dist/proxy-BZcQiBrp.js +2495 -0
  114. package/dist/proxy-BZcQiBrp.js.map +1 -0
  115. package/dist/skeleton-D75GFBV6.js +10 -0
  116. package/dist/skeleton-D75GFBV6.js.map +1 -0
  117. package/dist/slot-CQW8ZzBb.js +79 -0
  118. package/dist/slot-CQW8ZzBb.js.map +1 -0
  119. package/dist/styles/common.js +29 -0
  120. package/dist/styles/dark.js +214 -0
  121. package/dist/styles/design-tokens.js +98 -0
  122. package/dist/styles/light.js +214 -0
  123. package/dist/styles/theme.js +4 -0
  124. package/dist/styles/theme.types.js +1 -0
  125. package/dist/tabs-ccIA7vMo.js +106 -0
  126. package/dist/tabs-ccIA7vMo.js.map +1 -0
  127. package/dist/triangle-alert-CHMhQ6yd.js +16 -0
  128. package/dist/triangle-alert-CHMhQ6yd.js.map +1 -0
  129. package/dist/use-motion-value-eGwNuWuw.js +14 -0
  130. package/dist/use-motion-value-eGwNuWuw.js.map +1 -0
  131. package/dist/use-stable-ref-CYh-YkID.js +11 -0
  132. package/dist/use-stable-ref-CYh-YkID.js.map +1 -0
  133. package/dist/use-translations-BwLKTrZv.js +10 -0
  134. package/dist/use-translations-BwLKTrZv.js.map +1 -0
  135. package/dist/x-B9bYxG31.js +9 -0
  136. package/dist/x-B9bYxG31.js.map +1 -0
  137. package/package.json +3 -4
  138. package/dist/index.mjs +0 -37108
  139. package/dist/index.mjs.map +0 -1
  140. package/dist/index.umd.js +0 -28
  141. package/dist/index.umd.js.map +0 -1
@@ -0,0 +1,215 @@
1
+ import D from "react";
2
+ var V = { exports: {} }, w = {}, A = { exports: {} }, b = {};
3
+ var I;
4
+ function W() {
5
+ if (I) return b;
6
+ I = 1;
7
+ var c = D;
8
+ function d(n, u) {
9
+ return n === u && (n !== 0 || 1 / n === 1 / u) || n !== n && u !== u;
10
+ }
11
+ var v = typeof Object.is == "function" ? Object.is : d, L = c.useState, l = c.useEffect, m = c.useLayoutEffect, h = c.useDebugValue;
12
+ function y(n, u) {
13
+ var e = u(), r = L({ inst: { value: e, getSnapshot: u } }), t = r[0].inst, a = r[1];
14
+ return m(
15
+ function() {
16
+ t.value = e, t.getSnapshot = u, O(t) && a({ inst: t });
17
+ },
18
+ [n, e, u]
19
+ ), l(
20
+ function() {
21
+ return O(t) && a({ inst: t }), n(function() {
22
+ O(t) && a({ inst: t });
23
+ });
24
+ },
25
+ [n]
26
+ ), h(e), e;
27
+ }
28
+ function O(n) {
29
+ var u = n.getSnapshot;
30
+ n = n.value;
31
+ try {
32
+ var e = u();
33
+ return !v(n, e);
34
+ } catch {
35
+ return !0;
36
+ }
37
+ }
38
+ function i(n, u) {
39
+ return u();
40
+ }
41
+ var o = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : y;
42
+ return b.useSyncExternalStore = c.useSyncExternalStore !== void 0 ? c.useSyncExternalStore : o, b;
43
+ }
44
+ var G = {};
45
+ var M;
46
+ function N() {
47
+ return M || (M = 1, process.env.NODE_ENV !== "production" && (function() {
48
+ function c(e, r) {
49
+ return e === r && (e !== 0 || 1 / e === 1 / r) || e !== e && r !== r;
50
+ }
51
+ function d(e, r) {
52
+ o || l.startTransition === void 0 || (o = !0, console.error(
53
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
54
+ ));
55
+ var t = r();
56
+ if (!n) {
57
+ var a = r();
58
+ m(t, a) || (console.error(
59
+ "The result of getSnapshot should be cached to avoid an infinite loop"
60
+ ), n = !0);
61
+ }
62
+ a = h({
63
+ inst: { value: t, getSnapshot: r }
64
+ });
65
+ var s = a[0].inst, S = a[1];
66
+ return O(
67
+ function() {
68
+ s.value = t, s.getSnapshot = r, v(s) && S({ inst: s });
69
+ },
70
+ [e, t, r]
71
+ ), y(
72
+ function() {
73
+ return v(s) && S({ inst: s }), e(function() {
74
+ v(s) && S({ inst: s });
75
+ });
76
+ },
77
+ [e]
78
+ ), i(t), t;
79
+ }
80
+ function v(e) {
81
+ var r = e.getSnapshot;
82
+ e = e.value;
83
+ try {
84
+ var t = r();
85
+ return !m(e, t);
86
+ } catch {
87
+ return !0;
88
+ }
89
+ }
90
+ function L(e, r) {
91
+ return r();
92
+ }
93
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
94
+ var l = D, m = typeof Object.is == "function" ? Object.is : c, h = l.useState, y = l.useEffect, O = l.useLayoutEffect, i = l.useDebugValue, o = !1, n = !1, u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? L : d;
95
+ G.useSyncExternalStore = l.useSyncExternalStore !== void 0 ? l.useSyncExternalStore : u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
96
+ })()), G;
97
+ }
98
+ var j;
99
+ function C() {
100
+ return j || (j = 1, process.env.NODE_ENV === "production" ? A.exports = W() : A.exports = N()), A.exports;
101
+ }
102
+ var B;
103
+ function U() {
104
+ if (B) return w;
105
+ B = 1;
106
+ var c = D, d = C();
107
+ function v(i, o) {
108
+ return i === o && (i !== 0 || 1 / i === 1 / o) || i !== i && o !== o;
109
+ }
110
+ var L = typeof Object.is == "function" ? Object.is : v, l = d.useSyncExternalStore, m = c.useRef, h = c.useEffect, y = c.useMemo, O = c.useDebugValue;
111
+ return w.useSyncExternalStoreWithSelector = function(i, o, n, u, e) {
112
+ var r = m(null);
113
+ if (r.current === null) {
114
+ var t = { hasValue: !1, value: null };
115
+ r.current = t;
116
+ } else t = r.current;
117
+ r = y(
118
+ function() {
119
+ function s(f) {
120
+ if (!S) {
121
+ if (S = !0, E = f, f = u(f), e !== void 0 && t.hasValue) {
122
+ var _ = t.value;
123
+ if (e(_, f))
124
+ return p = _;
125
+ }
126
+ return p = f;
127
+ }
128
+ if (_ = p, L(E, f)) return _;
129
+ var T = u(f);
130
+ return e !== void 0 && e(_, T) ? (E = f, _) : (E = f, p = T);
131
+ }
132
+ var S = !1, E, p, R = n === void 0 ? null : n;
133
+ return [
134
+ function() {
135
+ return s(o());
136
+ },
137
+ R === null ? void 0 : function() {
138
+ return s(R());
139
+ }
140
+ ];
141
+ },
142
+ [o, n, u, e]
143
+ );
144
+ var a = l(i, r[0], r[1]);
145
+ return h(
146
+ function() {
147
+ t.hasValue = !0, t.value = a;
148
+ },
149
+ [a]
150
+ ), O(a), a;
151
+ }, w;
152
+ }
153
+ var g = {};
154
+ var H;
155
+ function x() {
156
+ return H || (H = 1, process.env.NODE_ENV !== "production" && (function() {
157
+ function c(i, o) {
158
+ return i === o && (i !== 0 || 1 / i === 1 / o) || i !== i && o !== o;
159
+ }
160
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
161
+ var d = D, v = C(), L = typeof Object.is == "function" ? Object.is : c, l = v.useSyncExternalStore, m = d.useRef, h = d.useEffect, y = d.useMemo, O = d.useDebugValue;
162
+ g.useSyncExternalStoreWithSelector = function(i, o, n, u, e) {
163
+ var r = m(null);
164
+ if (r.current === null) {
165
+ var t = { hasValue: !1, value: null };
166
+ r.current = t;
167
+ } else t = r.current;
168
+ r = y(
169
+ function() {
170
+ function s(f) {
171
+ if (!S) {
172
+ if (S = !0, E = f, f = u(f), e !== void 0 && t.hasValue) {
173
+ var _ = t.value;
174
+ if (e(_, f))
175
+ return p = _;
176
+ }
177
+ return p = f;
178
+ }
179
+ if (_ = p, L(E, f))
180
+ return _;
181
+ var T = u(f);
182
+ return e !== void 0 && e(_, T) ? (E = f, _) : (E = f, p = T);
183
+ }
184
+ var S = !1, E, p, R = n === void 0 ? null : n;
185
+ return [
186
+ function() {
187
+ return s(o());
188
+ },
189
+ R === null ? void 0 : function() {
190
+ return s(R());
191
+ }
192
+ ];
193
+ },
194
+ [o, n, u, e]
195
+ );
196
+ var a = l(i, r[0], r[1]);
197
+ return h(
198
+ function() {
199
+ t.hasValue = !0, t.value = a;
200
+ },
201
+ [a]
202
+ ), O(a), a;
203
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
204
+ })()), g;
205
+ }
206
+ var K;
207
+ function z() {
208
+ return K || (K = 1, process.env.NODE_ENV === "production" ? V.exports = U() : V.exports = x()), V.exports;
209
+ }
210
+ var $ = z(), k = C();
211
+ export {
212
+ k as s,
213
+ $ as w
214
+ };
215
+ //# sourceMappingURL=index-DE4shK8D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DE4shK8D.js","sources":["../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/shim/index.js","../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js","../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js","../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n"],"names":["React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production","didWarnOld18Alpha","didWarnUncachedGetSnapshot","cachedValue","useSyncExternalStoreShim_development","shimModule","require$$1","useSyncExternalStore","useRef","useMemo","withSelector_production","getServerSnapshot","selector","isEqual","instRef","memoizedSelector","nextSnapshot","hasMemo","memoizedSnapshot","currentSelection","memoizedSelection","nextSelection","maybeGetServerSnapshot","withSelector_development","withSelectorModule"],"mappings":";;;;;;AAWA,MAAIA,IAAQC;AACZ,WAASC,EAAGC,GAAGC,GAAG;AAChB,WAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA,EACxE;AACA,MAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,GAC3DI,IAAWN,EAAM,UACjBO,IAAYP,EAAM,WAClBQ,IAAkBR,EAAM,iBACxBS,IAAgBT,EAAM;AACxB,WAASU,EAAuBC,GAAWC,GAAa;AACtD,QAAIC,IAAQD,EAAW,GACrBE,IAAYR,EAAS,EAAE,MAAM,EAAE,OAAOO,GAAO,aAAaD,EAAW,GAAI,GACzEG,IAAOD,EAAU,CAAC,EAAE,MACpBE,IAAcF,EAAU,CAAC;AAC3B,WAAAN;AAAA,MACE,WAAY;AACV,QAAAO,EAAK,QAAQF,GACbE,EAAK,cAAcH,GACnBK,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE;AAAA;MAE5D,CAACJ,GAAWE,GAAOD,CAAW;AAAA,OAEhCL;AAAA,MACE,WAAY;AACV,eAAAU,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,CAAE,GACnDJ,EAAU,WAAY;AAC3B,UAAAM,EAAuBF,CAAI,KAAKC,EAAY,EAAE,MAAMD,EAAI,C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" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
+ var u;
4
+ if (l?.variants == null) return y(e, n?.class, n?.className);
5
+ const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
6
+ const a = n?.[t], s = d?.[t];
7
+ if (a === null) return null;
8
+ const i = m(a) || m(s);
9
+ return r[t][i];
10
+ }), v = n && Object.entries(n).reduce((t, a) => {
11
+ let [s, i] = a;
12
+ return i === void 0 || (t[s] = i), t;
13
+ }, {}), N = l == null || (u = l.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((t, a) => {
14
+ let { class: s, className: i, ...f } = a;
15
+ return Object.entries(f).every((C) => {
16
+ let [c, o] = C;
17
+ return Array.isArray(o) ? o.includes({
18
+ ...d,
19
+ ...v
20
+ }[c]) : {
21
+ ...d,
22
+ ...v
23
+ }[c] === o;
24
+ }) ? [
25
+ ...t,
26
+ s,
27
+ i
28
+ ] : t;
29
+ }, []);
30
+ return y(e, V, N, n?.class, n?.className);
31
+ };
32
+ export {
33
+ j as c
34
+ };
35
+ //# sourceMappingURL=index-DJSMaZR4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DJSMaZR4.js","sources":["../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions"],"mappings":";AAeA,MAAMA,IAAgB,CAACC,MAAQ,OAAOA,KAAU,YAAY,GAAGA,CAAK,KAAKA,MAAU,IAAI,MAAMA,GAChFC,IAAKC,GACLC,IAAM,CAACC,GAAMC,MAAS,CAACC,MAAQ;AACpC,MA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AsBS,GAA4Eb,GAAM,OAAqDA,GAAM,SAAS;AACpM;","x_google_ignoreList":[0]}
@@ -0,0 +1,351 @@
1
+ import { a as nt, V as it, c as st, r as at, m as rt, b as Q, d as U, f as ot, g as lt, j as ut, k as ct, s as ft, l as Y, n as mt, o as ht, q as pt, S as gt, H as dt, v as j, t as yt, x as At, y as St, z as Et } from "./MotionConfigContext-C7MqlSdv.js";
2
+ const vt = (e, t, n) => {
3
+ const i = t - e;
4
+ return ((n - e) % i + i) % i + e;
5
+ };
6
+ function Z(e, t) {
7
+ return nt(e) ? e[vt(0, e.length, t)] : e;
8
+ }
9
+ class Vt {
10
+ constructor(t) {
11
+ this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
12
+ }
13
+ get finished() {
14
+ return Promise.all(this.animations.map((t) => t.finished));
15
+ }
16
+ /**
17
+ * TODO: Filter out cancelled or stopped animations before returning
18
+ */
19
+ getAll(t) {
20
+ return this.animations[0][t];
21
+ }
22
+ setAll(t, n) {
23
+ for (let i = 0; i < this.animations.length; i++)
24
+ this.animations[i][t] = n;
25
+ }
26
+ attachTimeline(t) {
27
+ const n = this.animations.map((i) => i.attachTimeline(t));
28
+ return () => {
29
+ n.forEach((i, a) => {
30
+ i && i(), this.animations[a].stop();
31
+ });
32
+ };
33
+ }
34
+ get time() {
35
+ return this.getAll("time");
36
+ }
37
+ set time(t) {
38
+ this.setAll("time", t);
39
+ }
40
+ get speed() {
41
+ return this.getAll("speed");
42
+ }
43
+ set speed(t) {
44
+ this.setAll("speed", t);
45
+ }
46
+ get state() {
47
+ return this.getAll("state");
48
+ }
49
+ get startTime() {
50
+ return this.getAll("startTime");
51
+ }
52
+ get duration() {
53
+ return k(this.animations, "duration");
54
+ }
55
+ get iterationDuration() {
56
+ return k(this.animations, "iterationDuration");
57
+ }
58
+ runAll(t) {
59
+ this.animations.forEach((n) => n[t]());
60
+ }
61
+ play() {
62
+ this.runAll("play");
63
+ }
64
+ pause() {
65
+ this.runAll("pause");
66
+ }
67
+ cancel() {
68
+ this.runAll("cancel");
69
+ }
70
+ complete() {
71
+ this.runAll("complete");
72
+ }
73
+ }
74
+ function k(e, t) {
75
+ let n = 0;
76
+ for (let i = 0; i < e.length; i++) {
77
+ const a = e[i][t];
78
+ a !== null && a > n && (n = a);
79
+ }
80
+ return n;
81
+ }
82
+ class bt extends Vt {
83
+ then(t, n) {
84
+ return this.finished.finally(t).then(() => {
85
+ });
86
+ }
87
+ }
88
+ function Dt(e, t) {
89
+ return e in t;
90
+ }
91
+ class Mt extends it {
92
+ constructor() {
93
+ super(...arguments), this.type = "object";
94
+ }
95
+ readValueFromInstance(t, n) {
96
+ if (Dt(n, t)) {
97
+ const i = t[n];
98
+ if (typeof i == "string" || typeof i == "number")
99
+ return i;
100
+ }
101
+ }
102
+ getBaseTargetFromProps() {
103
+ }
104
+ removeValueFromRenderState(t, n) {
105
+ delete n.output[t];
106
+ }
107
+ measureInstanceViewportBox() {
108
+ return st();
109
+ }
110
+ build(t, n) {
111
+ Object.assign(t.output, n);
112
+ }
113
+ renderInstance(t, { output: n }) {
114
+ Object.assign(t, n);
115
+ }
116
+ sortInstanceNodePosition() {
117
+ return 0;
118
+ }
119
+ }
120
+ function L(e) {
121
+ return typeof e == "object" && !Array.isArray(e);
122
+ }
123
+ function $(e, t, n, i) {
124
+ return e == null ? [] : typeof e == "string" && L(t) ? at(e, n, i) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((a) => a != null) : [e];
125
+ }
126
+ function Tt(e, t, n) {
127
+ return e * (t + 1);
128
+ }
129
+ function q(e, t, n, i) {
130
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : i.get(t) ?? e;
131
+ }
132
+ function xt(e, t, n) {
133
+ for (let i = 0; i < e.length; i++) {
134
+ const a = e[i];
135
+ a.at > t && a.at < n && (Q(e, a), i--);
136
+ }
137
+ }
138
+ function Ot(e, t, n, i, a, c) {
139
+ xt(e, a, c);
140
+ for (let s = 0; s < t.length; s++)
141
+ e.push({
142
+ value: t[s],
143
+ at: rt(a, c, i[s]),
144
+ easing: Z(n, s)
145
+ });
146
+ }
147
+ function wt(e, t) {
148
+ for (let n = 0; n < e.length; n++)
149
+ e[n] = e[n] / (t + 1);
150
+ }
151
+ function Gt(e, t) {
152
+ return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
153
+ }
154
+ const It = "easeInOut", Ft = 20;
155
+ function Nt(e, { defaultTransition: t = {}, ...n } = {}, i, a) {
156
+ const c = t.duration || 0.3, s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), r = {}, f = /* @__PURE__ */ new Map();
157
+ let S = 0, u = 0, N = 0;
158
+ for (let D = 0; D < e.length; D++) {
159
+ const p = e[D];
160
+ if (typeof p == "string") {
161
+ f.set(p, u);
162
+ continue;
163
+ } else if (!Array.isArray(p)) {
164
+ f.set(p.name, q(u, p.at, S, f));
165
+ continue;
166
+ }
167
+ let [V, g, m = {}] = p;
168
+ m.at !== void 0 && (u = q(u, m.at, S, f));
169
+ let h = 0;
170
+ const M = (d, T, E, b = 0, x = 0) => {
171
+ const o = Bt(d), { delay: O = 0, times: y = ot(o), type: C = t.type || "keyframes", repeat: w, repeatType: Ht, repeatDelay: kt = 0, ...et } = T;
172
+ let { ease: v = t.ease || "easeOut", duration: A } = T;
173
+ const R = typeof O == "function" ? O(b, x) : O, P = o.length, W = ct(C) ? C : a?.[C || "keyframes"];
174
+ if (P <= 2 && W) {
175
+ let G = 100;
176
+ if (P === 2 && Ct(o)) {
177
+ const I = o[1] - o[0];
178
+ G = Math.abs(I);
179
+ }
180
+ const B = {
181
+ ...t,
182
+ ...et
183
+ };
184
+ A !== void 0 && (B.duration = ft(A));
185
+ const K = lt(B, G, W);
186
+ v = K.ease, A = K.duration;
187
+ }
188
+ A ?? (A = c);
189
+ const _ = u + R;
190
+ y.length === 1 && y[0] === 0 && (y[1] = 1);
191
+ const z = y.length - o.length;
192
+ if (z > 0 && ut(y, z), o.length === 1 && o.unshift(null), w) {
193
+ Y(w < Ft, "Repeat count too high, must be less than 20", "repeat-count-high"), A = Tt(A, w);
194
+ const G = [...o], B = [...y];
195
+ v = Array.isArray(v) ? [...v] : [v];
196
+ const K = [...v];
197
+ for (let I = 0; I < w; I++) {
198
+ o.push(...G);
199
+ for (let F = 0; F < G.length; F++)
200
+ y.push(B[F] + (I + 1)), v.push(F === 0 ? "linear" : Z(K, F - 1));
201
+ }
202
+ wt(y, w);
203
+ }
204
+ const H = _ + A;
205
+ Ot(E, o, v, y, _, H), h = Math.max(R + A, h), N = Math.max(H, N);
206
+ };
207
+ if (U(V)) {
208
+ const d = X(V, l);
209
+ M(g, m, J("default", d));
210
+ } else {
211
+ const d = $(V, g, i, r), T = d.length;
212
+ for (let E = 0; E < T; E++) {
213
+ g = g, m = m;
214
+ const b = d[E], x = X(b, l);
215
+ for (const o in g)
216
+ M(g[o], Kt(m, o), J(o, x), E, T);
217
+ }
218
+ }
219
+ S = u, u += h;
220
+ }
221
+ return l.forEach((D, p) => {
222
+ for (const V in D) {
223
+ const g = D[V];
224
+ g.sort(Gt);
225
+ const m = [], h = [], M = [];
226
+ for (let b = 0; b < g.length; b++) {
227
+ const { at: x, value: o, easing: O } = g[b];
228
+ m.push(o), h.push(mt(0, N, x)), M.push(O || "easeOut");
229
+ }
230
+ h[0] !== 0 && (h.unshift(0), m.unshift(m[0]), M.unshift(It)), h[h.length - 1] !== 1 && (h.push(1), m.push(null)), s.has(p) || s.set(p, {
231
+ keyframes: {},
232
+ transition: {}
233
+ });
234
+ const d = s.get(p);
235
+ d.keyframes[V] = m;
236
+ const { type: T, ...E } = t;
237
+ d.transition[V] = {
238
+ ...E,
239
+ duration: N,
240
+ ease: M,
241
+ times: h,
242
+ ...n
243
+ };
244
+ }
245
+ }), s;
246
+ }
247
+ function X(e, t) {
248
+ return !t.has(e) && t.set(e, {}), t.get(e);
249
+ }
250
+ function J(e, t) {
251
+ return t[e] || (t[e] = []), t[e];
252
+ }
253
+ function Bt(e) {
254
+ return Array.isArray(e) ? e : [e];
255
+ }
256
+ function Kt(e, t) {
257
+ return e && e[t] ? {
258
+ ...e,
259
+ ...e[t]
260
+ } : { ...e };
261
+ }
262
+ const jt = (e) => typeof e == "number", Ct = (e) => e.every(jt);
263
+ function Lt(e) {
264
+ const t = {
265
+ presenceContext: null,
266
+ props: {},
267
+ visualState: {
268
+ renderState: {
269
+ transform: {},
270
+ transformOrigin: {},
271
+ style: {},
272
+ vars: {},
273
+ attrs: {}
274
+ },
275
+ latestValues: {}
276
+ }
277
+ }, n = ht(e) && !pt(e) ? new gt(t) : new dt(t);
278
+ n.mount(e), j.set(e, n);
279
+ }
280
+ function Rt(e) {
281
+ const t = {
282
+ presenceContext: null,
283
+ props: {},
284
+ visualState: {
285
+ renderState: {
286
+ output: {}
287
+ },
288
+ latestValues: {}
289
+ }
290
+ }, n = new Mt(t);
291
+ n.mount(e), j.set(e, n);
292
+ }
293
+ function Pt(e, t) {
294
+ return U(e) || typeof e == "number" || typeof e == "string" && !L(t);
295
+ }
296
+ function tt(e, t, n, i) {
297
+ const a = [];
298
+ if (Pt(e, t))
299
+ a.push(yt(e, L(t) && t.default || t, n && (n.default || n)));
300
+ else {
301
+ if (e == null)
302
+ return a;
303
+ const c = $(e, t, i), s = c.length;
304
+ Y(!!s, "No valid elements provided.", "no-valid-elements");
305
+ for (let l = 0; l < s; l++) {
306
+ const r = c[l], f = r instanceof Element ? Lt : Rt;
307
+ j.has(r) || f(r);
308
+ const S = j.get(r), u = { ...n };
309
+ "delay" in u && typeof u.delay == "function" && (u.delay = u.delay(l, s)), a.push(...At(S, { ...t, transition: u }, {}));
310
+ }
311
+ }
312
+ return a;
313
+ }
314
+ function Wt(e, t, n) {
315
+ const i = [], a = e.map((s) => {
316
+ if (Array.isArray(s) && typeof s[0] == "function") {
317
+ const l = s[0], r = St(0);
318
+ return r.on("change", l), s.length === 1 ? [r, [0, 1]] : s.length === 2 ? [r, [0, 1], s[1]] : [r, s[1], s[2]];
319
+ }
320
+ return s;
321
+ });
322
+ return Nt(a, t, n, { spring: Et }).forEach(({ keyframes: s, transition: l }, r) => {
323
+ i.push(...tt(r, s, l));
324
+ }), i;
325
+ }
326
+ function _t(e) {
327
+ return Array.isArray(e) && e.some(Array.isArray);
328
+ }
329
+ function zt(e = {}) {
330
+ const { scope: t, reduceMotion: n } = e;
331
+ function i(a, c, s) {
332
+ let l = [], r;
333
+ if (_t(a))
334
+ l = Wt(a, n !== void 0 ? { reduceMotion: n, ...c } : c, t);
335
+ else {
336
+ const { onComplete: S, ...u } = s || {};
337
+ typeof S == "function" && (r = S), l = tt(a, c, n !== void 0 ? { reduceMotion: n, ...u } : u, t);
338
+ }
339
+ const f = new bt(l);
340
+ return r && f.finished.then(r), t && (t.animations.push(f), f.finished.then(() => {
341
+ Q(t.animations, f);
342
+ })), f;
343
+ }
344
+ return i;
345
+ }
346
+ const Xt = zt();
347
+ export {
348
+ Xt as a,
349
+ zt as c
350
+ };
351
+ //# sourceMappingURL=index-t1qLJTt5.js.map