@frontify/fondue-components 28.0.0 → 29.0.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 (306) hide show
  1. package/dist/fondue-components.js +60 -56
  2. package/dist/fondue-components.js.map +1 -1
  3. package/dist/fondue-components10.js +1 -1
  4. package/dist/fondue-components100.js +22 -16
  5. package/dist/fondue-components100.js.map +1 -1
  6. package/dist/fondue-components101.js +34 -151
  7. package/dist/fondue-components101.js.map +1 -1
  8. package/dist/fondue-components102.js +10 -44
  9. package/dist/fondue-components102.js.map +1 -1
  10. package/dist/fondue-components103.js +67 -13
  11. package/dist/fondue-components103.js.map +1 -1
  12. package/dist/fondue-components104.js +13 -13
  13. package/dist/fondue-components105.js +26 -111
  14. package/dist/fondue-components105.js.map +1 -1
  15. package/dist/fondue-components106.js +18 -12
  16. package/dist/fondue-components106.js.map +1 -1
  17. package/dist/fondue-components107.js +25 -17
  18. package/dist/fondue-components107.js.map +1 -1
  19. package/dist/fondue-components108.js +8 -12
  20. package/dist/fondue-components108.js.map +1 -1
  21. package/dist/fondue-components109.js +30 -16
  22. package/dist/fondue-components109.js.map +1 -1
  23. package/dist/fondue-components11.js +3 -3
  24. package/dist/fondue-components110.js +7 -6
  25. package/dist/fondue-components110.js.map +1 -1
  26. package/dist/fondue-components111.js +4 -11
  27. package/dist/fondue-components111.js.map +1 -1
  28. package/dist/fondue-components112.js +4 -70
  29. package/dist/fondue-components112.js.map +1 -1
  30. package/dist/fondue-components113.js +16 -14
  31. package/dist/fondue-components113.js.map +1 -1
  32. package/dist/fondue-components114.js +14 -7
  33. package/dist/fondue-components114.js.map +1 -1
  34. package/dist/fondue-components115.js +14 -88
  35. package/dist/fondue-components115.js.map +1 -1
  36. package/dist/fondue-components116.js +108 -78
  37. package/dist/fondue-components116.js.map +1 -1
  38. package/dist/fondue-components117.js +12 -30
  39. package/dist/fondue-components117.js.map +1 -1
  40. package/dist/fondue-components118.js +17 -29
  41. package/dist/fondue-components118.js.map +1 -1
  42. package/dist/fondue-components119.js +16 -0
  43. package/dist/fondue-components119.js.map +1 -0
  44. package/dist/fondue-components12.js +3 -3
  45. package/dist/fondue-components120.js +127 -41
  46. package/dist/fondue-components120.js.map +1 -1
  47. package/dist/fondue-components121.js +11 -19
  48. package/dist/fondue-components121.js.map +1 -1
  49. package/dist/fondue-components122.js +33 -18
  50. package/dist/fondue-components122.js.map +1 -1
  51. package/dist/fondue-components123.js +215 -38
  52. package/dist/fondue-components123.js.map +1 -1
  53. package/dist/fondue-components124.js +18 -67
  54. package/dist/fondue-components124.js.map +1 -1
  55. package/dist/fondue-components125.js +16 -30
  56. package/dist/fondue-components125.js.map +1 -1
  57. package/dist/fondue-components126.js +151 -9
  58. package/dist/fondue-components126.js.map +1 -1
  59. package/dist/fondue-components127.js +44 -152
  60. package/dist/fondue-components127.js.map +1 -1
  61. package/dist/fondue-components128.js +168 -106
  62. package/dist/fondue-components128.js.map +1 -1
  63. package/dist/fondue-components129.js +61 -17
  64. package/dist/fondue-components129.js.map +1 -1
  65. package/dist/fondue-components13.js +61 -35
  66. package/dist/fondue-components13.js.map +1 -1
  67. package/dist/fondue-components130.js +8 -15
  68. package/dist/fondue-components130.js.map +1 -1
  69. package/dist/fondue-components131.js +255 -28
  70. package/dist/fondue-components131.js.map +1 -1
  71. package/dist/fondue-components132.js +29 -13
  72. package/dist/fondue-components132.js.map +1 -1
  73. package/dist/fondue-components134.js +44 -0
  74. package/dist/fondue-components134.js.map +1 -0
  75. package/dist/fondue-components135.js +9 -0
  76. package/dist/fondue-components135.js.map +1 -0
  77. package/dist/fondue-components136.js +15 -0
  78. package/dist/fondue-components136.js.map +1 -0
  79. package/dist/fondue-components137.js +74 -0
  80. package/dist/fondue-components137.js.map +1 -0
  81. package/dist/fondue-components138.js +18 -0
  82. package/dist/fondue-components138.js.map +1 -0
  83. package/dist/fondue-components139.js +10 -0
  84. package/dist/fondue-components139.js.map +1 -0
  85. package/dist/fondue-components14.js +36 -121
  86. package/dist/fondue-components14.js.map +1 -1
  87. package/dist/fondue-components140.js +92 -0
  88. package/dist/fondue-components140.js.map +1 -0
  89. package/dist/fondue-components141.js +84 -0
  90. package/dist/fondue-components141.js.map +1 -0
  91. package/dist/fondue-components142.js +34 -0
  92. package/dist/fondue-components142.js.map +1 -0
  93. package/dist/fondue-components143.js +22 -0
  94. package/dist/fondue-components143.js.map +1 -0
  95. package/dist/fondue-components144.js +73 -0
  96. package/dist/fondue-components144.js.map +1 -0
  97. package/dist/fondue-components145.js +1355 -0
  98. package/dist/fondue-components145.js.map +1 -0
  99. package/dist/fondue-components146.js +944 -0
  100. package/dist/fondue-components146.js.map +1 -0
  101. package/dist/fondue-components147.js +201 -0
  102. package/dist/fondue-components147.js.map +1 -0
  103. package/dist/fondue-components148.js +24 -0
  104. package/dist/fondue-components148.js.map +1 -0
  105. package/dist/fondue-components149.js +43 -0
  106. package/dist/fondue-components149.js.map +1 -0
  107. package/dist/fondue-components15.js +121 -36
  108. package/dist/fondue-components15.js.map +1 -1
  109. package/dist/fondue-components150.js +71 -0
  110. package/dist/fondue-components150.js.map +1 -0
  111. package/dist/fondue-components151.js +34 -0
  112. package/dist/fondue-components151.js.map +1 -0
  113. package/dist/fondue-components152.js +12 -0
  114. package/dist/fondue-components152.js.map +1 -0
  115. package/dist/fondue-components153.js +156 -0
  116. package/dist/fondue-components153.js.map +1 -0
  117. package/dist/fondue-components154.js +111 -0
  118. package/dist/fondue-components154.js.map +1 -0
  119. package/dist/fondue-components155.js +19 -0
  120. package/dist/fondue-components155.js.map +1 -0
  121. package/dist/fondue-components156.js +19 -0
  122. package/dist/fondue-components156.js.map +1 -0
  123. package/dist/fondue-components157.js +32 -0
  124. package/dist/fondue-components157.js.map +1 -0
  125. package/dist/fondue-components158.js +16 -0
  126. package/dist/fondue-components158.js.map +1 -0
  127. package/dist/{fondue-components133.js → fondue-components159.js} +1 -1
  128. package/dist/{fondue-components133.js.map → fondue-components159.js.map} +1 -1
  129. package/dist/fondue-components16.js +30 -39
  130. package/dist/fondue-components16.js.map +1 -1
  131. package/dist/fondue-components17.js +44 -41
  132. package/dist/fondue-components17.js.map +1 -1
  133. package/dist/fondue-components18.js +42 -57
  134. package/dist/fondue-components18.js.map +1 -1
  135. package/dist/fondue-components19.js +55 -41
  136. package/dist/fondue-components19.js.map +1 -1
  137. package/dist/fondue-components20.js +39 -16
  138. package/dist/fondue-components20.js.map +1 -1
  139. package/dist/fondue-components21.js +17 -43
  140. package/dist/fondue-components21.js.map +1 -1
  141. package/dist/fondue-components22.js +42 -69
  142. package/dist/fondue-components22.js.map +1 -1
  143. package/dist/fondue-components23.js +69 -17
  144. package/dist/fondue-components23.js.map +1 -1
  145. package/dist/fondue-components24.js +71 -74
  146. package/dist/fondue-components24.js.map +1 -1
  147. package/dist/fondue-components25.js +18 -36
  148. package/dist/fondue-components25.js.map +1 -1
  149. package/dist/fondue-components26.js +72 -50
  150. package/dist/fondue-components26.js.map +1 -1
  151. package/dist/fondue-components27.js +36 -23
  152. package/dist/fondue-components27.js.map +1 -1
  153. package/dist/fondue-components28.js +50 -50
  154. package/dist/fondue-components28.js.map +1 -1
  155. package/dist/fondue-components29.js +23 -100
  156. package/dist/fondue-components29.js.map +1 -1
  157. package/dist/fondue-components3.js +1 -1
  158. package/dist/fondue-components30.js +50 -28
  159. package/dist/fondue-components30.js.map +1 -1
  160. package/dist/fondue-components31.js +92 -188
  161. package/dist/fondue-components31.js.map +1 -1
  162. package/dist/fondue-components32.js +31 -144
  163. package/dist/fondue-components32.js.map +1 -1
  164. package/dist/fondue-components33.js +192 -129
  165. package/dist/fondue-components33.js.map +1 -1
  166. package/dist/fondue-components34.js +141 -27
  167. package/dist/fondue-components34.js.map +1 -1
  168. package/dist/fondue-components35.js +123 -71
  169. package/dist/fondue-components35.js.map +1 -1
  170. package/dist/fondue-components36.js +28 -120
  171. package/dist/fondue-components36.js.map +1 -1
  172. package/dist/fondue-components37.js +80 -35
  173. package/dist/fondue-components37.js.map +1 -1
  174. package/dist/fondue-components38.js +119 -52
  175. package/dist/fondue-components38.js.map +1 -1
  176. package/dist/fondue-components39.js +36 -20
  177. package/dist/fondue-components39.js.map +1 -1
  178. package/dist/fondue-components4.js +3 -3
  179. package/dist/fondue-components40.js +56 -25
  180. package/dist/fondue-components40.js.map +1 -1
  181. package/dist/fondue-components41.js +20 -7
  182. package/dist/fondue-components41.js.map +1 -1
  183. package/dist/fondue-components42.js +25 -8
  184. package/dist/fondue-components42.js.map +1 -1
  185. package/dist/fondue-components43.js +8 -41
  186. package/dist/fondue-components43.js.map +1 -1
  187. package/dist/fondue-components44.js +8 -4
  188. package/dist/fondue-components44.js.map +1 -1
  189. package/dist/fondue-components45.js +41 -5
  190. package/dist/fondue-components45.js.map +1 -1
  191. package/dist/fondue-components46.js +3 -11
  192. package/dist/fondue-components46.js.map +1 -1
  193. package/dist/fondue-components47.js +5 -32
  194. package/dist/fondue-components47.js.map +1 -1
  195. package/dist/fondue-components48.js +12 -53
  196. package/dist/fondue-components48.js.map +1 -1
  197. package/dist/fondue-components49.js +32 -131
  198. package/dist/fondue-components49.js.map +1 -1
  199. package/dist/fondue-components5.js +2 -2
  200. package/dist/fondue-components50.js +53 -20
  201. package/dist/fondue-components50.js.map +1 -1
  202. package/dist/fondue-components51.js +131 -53
  203. package/dist/fondue-components51.js.map +1 -1
  204. package/dist/fondue-components52.js +20 -7
  205. package/dist/fondue-components52.js.map +1 -1
  206. package/dist/fondue-components53.js +53 -13
  207. package/dist/fondue-components53.js.map +1 -1
  208. package/dist/fondue-components54.js +7 -16
  209. package/dist/fondue-components54.js.map +1 -1
  210. package/dist/fondue-components55.js +13 -5
  211. package/dist/fondue-components55.js.map +1 -1
  212. package/dist/fondue-components56.js +17 -18
  213. package/dist/fondue-components56.js.map +1 -1
  214. package/dist/fondue-components57.js +4 -18
  215. package/dist/fondue-components57.js.map +1 -1
  216. package/dist/fondue-components58.js +18 -44
  217. package/dist/fondue-components58.js.map +1 -1
  218. package/dist/fondue-components59.js +18 -24
  219. package/dist/fondue-components59.js.map +1 -1
  220. package/dist/fondue-components6.js +1 -1
  221. package/dist/fondue-components60.js +43 -22
  222. package/dist/fondue-components60.js.map +1 -1
  223. package/dist/fondue-components61.js +24 -4
  224. package/dist/fondue-components61.js.map +1 -1
  225. package/dist/fondue-components62.js +22 -12
  226. package/dist/fondue-components62.js.map +1 -1
  227. package/dist/fondue-components63.js +6 -4
  228. package/dist/fondue-components63.js.map +1 -1
  229. package/dist/fondue-components64.js +4 -17
  230. package/dist/fondue-components64.js.map +1 -1
  231. package/dist/fondue-components65.js +12 -10
  232. package/dist/fondue-components65.js.map +1 -1
  233. package/dist/fondue-components66.js +4 -36
  234. package/dist/fondue-components66.js.map +1 -1
  235. package/dist/fondue-components67.js +17 -6
  236. package/dist/fondue-components67.js.map +1 -1
  237. package/dist/fondue-components68.js +10 -4
  238. package/dist/fondue-components68.js.map +1 -1
  239. package/dist/fondue-components69.js +34 -10
  240. package/dist/fondue-components69.js.map +1 -1
  241. package/dist/fondue-components7.js +1 -1
  242. package/dist/fondue-components70.js +6 -8
  243. package/dist/fondue-components70.js.map +1 -1
  244. package/dist/fondue-components71.js +4 -12
  245. package/dist/fondue-components71.js.map +1 -1
  246. package/dist/fondue-components72.js +11 -3
  247. package/dist/fondue-components72.js.map +1 -1
  248. package/dist/fondue-components73.js +50 -23
  249. package/dist/fondue-components73.js.map +1 -1
  250. package/dist/fondue-components74.js +44 -17
  251. package/dist/fondue-components74.js.map +1 -1
  252. package/dist/fondue-components75.js +6 -20
  253. package/dist/fondue-components75.js.map +1 -1
  254. package/dist/fondue-components76.js +6 -20
  255. package/dist/fondue-components76.js.map +1 -1
  256. package/dist/fondue-components77.js +12 -19
  257. package/dist/fondue-components77.js.map +1 -1
  258. package/dist/fondue-components78.js +24 -16
  259. package/dist/fondue-components78.js.map +1 -1
  260. package/dist/fondue-components79.js +13 -19
  261. package/dist/fondue-components79.js.map +1 -1
  262. package/dist/fondue-components8.js +5 -5
  263. package/dist/fondue-components80.js +5 -8
  264. package/dist/fondue-components80.js.map +1 -1
  265. package/dist/fondue-components81.js +12 -10
  266. package/dist/fondue-components81.js.map +1 -1
  267. package/dist/fondue-components82.js +47 -10
  268. package/dist/fondue-components82.js.map +1 -1
  269. package/dist/fondue-components83.js +20 -4
  270. package/dist/fondue-components83.js.map +1 -1
  271. package/dist/fondue-components84.js +628 -12
  272. package/dist/fondue-components84.js.map +1 -1
  273. package/dist/fondue-components85.js +8 -22
  274. package/dist/fondue-components85.js.map +1 -1
  275. package/dist/fondue-components86.js +13 -34
  276. package/dist/fondue-components86.js.map +1 -1
  277. package/dist/fondue-components87.js +4 -10
  278. package/dist/fondue-components87.js.map +1 -1
  279. package/dist/fondue-components88.js +23 -66
  280. package/dist/fondue-components88.js.map +1 -1
  281. package/dist/fondue-components89.js +14 -12
  282. package/dist/fondue-components89.js.map +1 -1
  283. package/dist/fondue-components9.js +5 -5
  284. package/dist/fondue-components90.js +20 -25
  285. package/dist/fondue-components90.js.map +1 -1
  286. package/dist/fondue-components91.js +20 -19
  287. package/dist/fondue-components91.js.map +1 -1
  288. package/dist/fondue-components92.js +20 -25
  289. package/dist/fondue-components92.js.map +1 -1
  290. package/dist/fondue-components93.js +20 -9
  291. package/dist/fondue-components93.js.map +1 -1
  292. package/dist/fondue-components94.js +19 -31
  293. package/dist/fondue-components94.js.map +1 -1
  294. package/dist/fondue-components95.js +8 -7
  295. package/dist/fondue-components95.js.map +1 -1
  296. package/dist/fondue-components96.js +10 -4
  297. package/dist/fondue-components96.js.map +1 -1
  298. package/dist/fondue-components97.js +10 -4
  299. package/dist/fondue-components97.js.map +1 -1
  300. package/dist/fondue-components98.js +6 -216
  301. package/dist/fondue-components98.js.map +1 -1
  302. package/dist/fondue-components99.js +12 -18
  303. package/dist/fondue-components99.js.map +1 -1
  304. package/dist/index.d.ts +100 -2
  305. package/dist/style.css +1 -1
  306. package/package.json +6 -4
@@ -0,0 +1,944 @@
1
+ import { Rectangle as it } from "./fondue-components147.js";
2
+ var vt = (t) => {
3
+ throw TypeError(t);
4
+ }, ot = (t, n, e) => n.has(t) || vt("Cannot " + e), f = (t, n, e) => (ot(t, n, "read from private field"), n.get(t)), _ = (t, n, e) => n.has(t) ? vt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, e), R = (t, n, e, i) => (ot(t, n, "write to private field"), n.set(t, e), e), gt = (t, n, e) => (ot(t, n, "access private method"), e);
5
+ function q(t) {
6
+ return t ? t instanceof KeyframeEffect ? !0 : "getKeyframes" in t && typeof t.getKeyframes == "function" : !1;
7
+ }
8
+ function Wt(t, n) {
9
+ const e = t.getAnimations();
10
+ if (e.length > 0)
11
+ for (const i of e) {
12
+ if (i.playState !== "running") continue;
13
+ const { effect: o } = i, r = (q(o) ? o.getKeyframes() : []).filter(n);
14
+ if (r.length > 0)
15
+ return [r[r.length - 1], i];
16
+ }
17
+ return null;
18
+ }
19
+ function j(t) {
20
+ const { width: n, height: e, top: i, left: o, bottom: s, right: r } = t.getBoundingClientRect();
21
+ return { width: n, height: e, top: i, left: o, bottom: s, right: r };
22
+ }
23
+ function st(t) {
24
+ const n = Object.prototype.toString.call(t);
25
+ return n === "[object Window]" || // In Electron context the Window object serializes to [object global]
26
+ n === "[object global]";
27
+ }
28
+ function X(t) {
29
+ return "nodeType" in t;
30
+ }
31
+ function E(t) {
32
+ var n, e, i;
33
+ return t ? st(t) ? t : X(t) ? "defaultView" in t ? (n = t.defaultView) != null ? n : window : (i = (e = t.ownerDocument) == null ? void 0 : e.defaultView) != null ? i : window : window : window;
34
+ }
35
+ function yt(t) {
36
+ const { Document: n } = E(t);
37
+ return t instanceof n || "nodeType" in t && t.nodeType === Node.DOCUMENT_NODE;
38
+ }
39
+ function V(t) {
40
+ return !t || st(t) ? !1 : t instanceof E(t).HTMLElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("html");
41
+ }
42
+ function mt(t) {
43
+ return t instanceof E(t).SVGElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("svg");
44
+ }
45
+ function rt(t) {
46
+ return t ? st(t) ? t.document : X(t) ? yt(t) ? t : V(t) || mt(t) ? t.ownerDocument : document : document : document;
47
+ }
48
+ function Ct(t) {
49
+ var n, e, i, o;
50
+ const { documentElement: s } = rt(t), r = E(t).visualViewport, c = (n = r == null ? void 0 : r.width) != null ? n : s.clientWidth, l = (e = r == null ? void 0 : r.height) != null ? e : s.clientHeight, a = (i = r == null ? void 0 : r.offsetTop) != null ? i : 0, u = (o = r == null ? void 0 : r.offsetLeft) != null ? o : 0;
51
+ return {
52
+ top: a,
53
+ left: u,
54
+ right: u + c,
55
+ bottom: a + l,
56
+ width: c,
57
+ height: l
58
+ };
59
+ }
60
+ function It(t, n) {
61
+ if (Nt(t) && t.open === !1)
62
+ return !1;
63
+ const { overflow: e, overflowX: i, overflowY: o } = getComputedStyle(t);
64
+ return e === "visible" && i === "visible" && o === "visible";
65
+ }
66
+ function Nt(t) {
67
+ return t.tagName === "DETAILS";
68
+ }
69
+ function D(t, n = t.getBoundingClientRect(), e = 0) {
70
+ var i, o, s, r, c;
71
+ let l = n;
72
+ const { ownerDocument: a } = t, u = (i = a.defaultView) != null ? i : window;
73
+ let h = t.parentElement;
74
+ for (; h && h !== a.documentElement; ) {
75
+ if (!It(h)) {
76
+ const g = h.getBoundingClientRect(), M = e * (g.bottom - g.top), m = e * (g.right - g.left), G = e * (g.bottom - g.top), J = e * (g.right - g.left);
77
+ l = {
78
+ top: Math.max(l.top, g.top - M),
79
+ right: Math.min(l.right, g.right + m),
80
+ bottom: Math.min(l.bottom, g.bottom + G),
81
+ left: Math.max(l.left, g.left - J),
82
+ width: 0,
83
+ // Will be calculated next
84
+ height: 0
85
+ // Will be calculated next
86
+ }, l.width = l.right - l.left, l.height = l.bottom - l.top;
87
+ }
88
+ h = h.parentElement;
89
+ }
90
+ const v = u.visualViewport, y = (o = v == null ? void 0 : v.offsetTop) != null ? o : 0, w = (s = v == null ? void 0 : v.offsetLeft) != null ? s : 0, d = (r = v == null ? void 0 : v.width) != null ? r : u.innerWidth, x = (c = v == null ? void 0 : v.height) != null ? c : u.innerHeight, b = e * x, p = e * d;
91
+ return l = {
92
+ top: Math.max(l.top, y - b),
93
+ right: Math.min(
94
+ l.right,
95
+ w + d + p
96
+ ),
97
+ bottom: Math.min(
98
+ l.bottom,
99
+ y + x + b
100
+ ),
101
+ left: Math.max(l.left, w - p),
102
+ width: 0,
103
+ // Will be calculated next
104
+ height: 0
105
+ // Will be calculated next
106
+ }, l.width = l.right - l.left, l.height = l.bottom - l.top, l.width < 0 && (l.width = 0), l.height < 0 && (l.height = 0), l;
107
+ }
108
+ function ye(t) {
109
+ return {
110
+ x: t.clientX,
111
+ y: t.clientY
112
+ };
113
+ }
114
+ var wt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
115
+ function at(t = document, n = /* @__PURE__ */ new Set()) {
116
+ if (n.has(t)) return [];
117
+ n.add(t);
118
+ const e = [t];
119
+ for (const i of Array.from(
120
+ t.querySelectorAll("iframe, frame")
121
+ ))
122
+ try {
123
+ const o = i.contentDocument;
124
+ o && !n.has(o) && e.push(...at(o, n));
125
+ } catch {
126
+ }
127
+ try {
128
+ const i = t.defaultView;
129
+ if (i && i !== window.top) {
130
+ const o = i.parent;
131
+ o && o.document && o.document !== t && e.push(...at(o.document, n));
132
+ }
133
+ } catch {
134
+ }
135
+ return e;
136
+ }
137
+ function bt() {
138
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
139
+ }
140
+ function me() {
141
+ var t, n;
142
+ const e = bt() ? window.visualViewport : null;
143
+ return {
144
+ x: (t = e == null ? void 0 : e.offsetLeft) != null ? t : 0,
145
+ y: (n = e == null ? void 0 : e.offsetTop) != null ? n : 0
146
+ };
147
+ }
148
+ function xt(t) {
149
+ return !t || !X(t) ? !1 : t instanceof E(t).ShadowRoot;
150
+ }
151
+ function we(t) {
152
+ if (t && X(t)) {
153
+ let n = t.getRootNode();
154
+ if (xt(n))
155
+ return n;
156
+ if (n instanceof Document)
157
+ return n;
158
+ }
159
+ return rt(t);
160
+ }
161
+ function be(t) {
162
+ return t.matchMedia("(prefers-reduced-motion: reduce)").matches;
163
+ }
164
+ function xe(t) {
165
+ const n = "input, textarea, select, canvas, [contenteditable]", e = t.cloneNode(!0), i = Array.from(t.querySelectorAll(n));
166
+ return Array.from(e.querySelectorAll(n)).forEach((s, r) => {
167
+ const c = i[r];
168
+ if (ut(s) && ut(c) && (s.type !== "file" && (s.value = c.value), s.type === "radio" && s.name && (s.name = `Cloned__${s.name}`)), ft(s) && ft(c) && c.width > 0 && c.height > 0) {
169
+ const l = s.getContext("2d");
170
+ l == null || l.drawImage(c, 0, 0);
171
+ }
172
+ }), e;
173
+ }
174
+ function ut(t) {
175
+ return "value" in t;
176
+ }
177
+ function ft(t) {
178
+ return t.tagName === "CANVAS";
179
+ }
180
+ function Lt(t, { x: n, y: e }) {
181
+ const i = t.elementFromPoint(n, e);
182
+ if (Ft(i)) {
183
+ const { contentDocument: o } = i;
184
+ if (o) {
185
+ const { left: s, top: r } = i.getBoundingClientRect();
186
+ return Lt(o, {
187
+ x: n - s,
188
+ y: e - r
189
+ });
190
+ }
191
+ }
192
+ return i;
193
+ }
194
+ function Ft(t) {
195
+ return (t == null ? void 0 : t.tagName) === "IFRAME";
196
+ }
197
+ var Te = /* @__PURE__ */ new WeakMap();
198
+ function _e(t) {
199
+ return !!t.closest(`
200
+ input:not([disabled]),
201
+ select:not([disabled]),
202
+ textarea:not([disabled]),
203
+ button:not([disabled]),
204
+ a[href],
205
+ [contenteditable]:not([contenteditable="false"])
206
+ `);
207
+ }
208
+ var Re = class {
209
+ constructor() {
210
+ this.entries = /* @__PURE__ */ new Set(), this.clear = () => {
211
+ for (const t of this.entries) {
212
+ const [n, { type: e, listener: i, options: o }] = t;
213
+ n.removeEventListener(e, i, o);
214
+ }
215
+ this.entries.clear();
216
+ };
217
+ }
218
+ bind(t, n) {
219
+ const e = Array.isArray(t) ? t : [t], i = Array.isArray(n) ? n : [n], o = [];
220
+ for (const s of e)
221
+ for (const r of i) {
222
+ const { type: c, listener: l, options: a } = r, u = [s, r];
223
+ s.addEventListener(c, l, a), this.entries.add(u), o.push(u);
224
+ }
225
+ return function() {
226
+ for (const [r, { type: c, listener: l, options: a }] of o)
227
+ r.removeEventListener(c, l, a);
228
+ };
229
+ }
230
+ };
231
+ function H(t) {
232
+ const n = t == null ? void 0 : t.ownerDocument.defaultView;
233
+ if (n && n.self !== n.parent)
234
+ return n.frameElement;
235
+ }
236
+ function Pt(t) {
237
+ const n = /* @__PURE__ */ new Set();
238
+ let e = H(t);
239
+ for (; e; )
240
+ n.add(e), e = H(e);
241
+ return n;
242
+ }
243
+ function Vt(t, n) {
244
+ const e = setTimeout(t, n);
245
+ return () => clearTimeout(e);
246
+ }
247
+ function Tt(t, n) {
248
+ const e = () => performance.now();
249
+ let i, o;
250
+ return function(...s) {
251
+ const r = this;
252
+ o ? (i == null || i(), i = Vt(
253
+ () => {
254
+ t.apply(r, s), o = e();
255
+ },
256
+ n - (e() - o)
257
+ )) : (t.apply(r, s), o = e());
258
+ };
259
+ }
260
+ function Xt(t, n) {
261
+ return t === n ? !0 : !t || !n ? !1 : t.top == n.top && t.left == n.left && t.right == n.right && t.bottom == n.bottom;
262
+ }
263
+ function Yt(t, n = t.getBoundingClientRect()) {
264
+ const { width: e, height: i } = D(
265
+ t,
266
+ n
267
+ );
268
+ return e > 0 && i > 0;
269
+ }
270
+ var Ot = wt ? ResizeObserver : class {
271
+ observe() {
272
+ }
273
+ unobserve() {
274
+ }
275
+ disconnect() {
276
+ }
277
+ }, z, zt = class extends Ot {
278
+ constructor(t) {
279
+ super((n) => {
280
+ if (!f(this, z)) {
281
+ R(this, z, !0);
282
+ return;
283
+ }
284
+ t(n, this);
285
+ }), _(this, z, !1);
286
+ }
287
+ };
288
+ z = /* @__PURE__ */ new WeakMap();
289
+ var ht = Array.from({ length: 100 }, (t, n) => n / 100), _t = 75, A, $, S, W, C, T, F, I, K, Rt, Mt, Et = class {
290
+ constructor(t, n, e = {
291
+ debug: !1,
292
+ skipInitial: !1
293
+ }) {
294
+ this.element = t, this.callback = n, _(this, K), this.disconnect = () => {
295
+ var s, r, c;
296
+ R(this, F, !0), (s = f(this, S)) == null || s.disconnect(), (r = f(this, W)) == null || r.disconnect(), f(this, C).disconnect(), (c = f(this, T)) == null || c.remove();
297
+ }, _(this, A, !0), _(this, $), _(this, S), _(this, W), _(this, C), _(this, T), _(this, F, !1), _(this, I, Tt(() => {
298
+ var s, r, c;
299
+ const { element: l } = this;
300
+ if ((s = f(this, W)) == null || s.disconnect(), f(this, F) || !f(this, A) || !l.isConnected)
301
+ return;
302
+ const a = (r = l.ownerDocument) != null ? r : document, { innerHeight: u, innerWidth: h } = (c = a.defaultView) != null ? c : window, v = l.getBoundingClientRect(), y = D(l, v), { top: w, left: d, bottom: x, right: b } = y, p = -Math.floor(w), g = -Math.floor(d), M = -Math.floor(h - b), m = -Math.floor(u - x), G = `${p}px ${M}px ${m}px ${g}px`;
303
+ this.boundingClientRect = v, R(this, W, new IntersectionObserver(
304
+ (J) => {
305
+ const [Q] = J, { intersectionRect: At } = Q;
306
+ (Q.intersectionRatio !== 1 ? Q.intersectionRatio : it.intersectionRatio(
307
+ At,
308
+ D(l)
309
+ )) !== 1 && f(this, I).call(this);
310
+ },
311
+ {
312
+ threshold: ht,
313
+ rootMargin: G,
314
+ root: a
315
+ }
316
+ )), f(this, W).observe(l), gt(this, K, Rt).call(this);
317
+ }, _t)), this.boundingClientRect = t.getBoundingClientRect(), R(this, A, Yt(t, this.boundingClientRect));
318
+ let i = !0;
319
+ this.callback = (s) => {
320
+ i && (i = !1, e.skipInitial) || n(s);
321
+ };
322
+ const o = t.ownerDocument;
323
+ e != null && e.debug && (R(this, T, document.createElement("div")), f(this, T).style.background = "rgba(0,0,0,0.15)", f(this, T).style.position = "fixed", f(this, T).style.pointerEvents = "none", o.body.appendChild(f(this, T))), R(this, C, new IntersectionObserver(
324
+ (s) => {
325
+ var r, c;
326
+ const l = s[s.length - 1], { boundingClientRect: a, isIntersecting: u } = l, { width: h, height: v } = a, y = f(this, A);
327
+ R(this, A, u), !(!h && !v) && (y && !u ? ((r = f(this, W)) == null || r.disconnect(), this.callback(null), (c = f(this, S)) == null || c.disconnect(), R(this, S, void 0), f(this, T) && (f(this, T).style.visibility = "hidden")) : f(this, I).call(this), u && !f(this, S) && (R(this, S, new zt(f(this, I))), f(this, S).observe(t)));
328
+ },
329
+ {
330
+ threshold: ht,
331
+ root: o
332
+ }
333
+ )), f(this, A) && !e.skipInitial && this.callback(this.boundingClientRect), f(this, C).observe(t);
334
+ }
335
+ };
336
+ A = /* @__PURE__ */ new WeakMap();
337
+ $ = /* @__PURE__ */ new WeakMap();
338
+ S = /* @__PURE__ */ new WeakMap();
339
+ W = /* @__PURE__ */ new WeakMap();
340
+ C = /* @__PURE__ */ new WeakMap();
341
+ T = /* @__PURE__ */ new WeakMap();
342
+ F = /* @__PURE__ */ new WeakMap();
343
+ I = /* @__PURE__ */ new WeakMap();
344
+ K = /* @__PURE__ */ new WeakSet();
345
+ Rt = function() {
346
+ f(this, F) || (gt(this, K, Mt).call(this), !Xt(this.boundingClientRect, f(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
347
+ };
348
+ Mt = function() {
349
+ if (f(this, T)) {
350
+ const { top: t, left: n, width: e, height: i } = D(
351
+ this.element
352
+ );
353
+ f(this, T).style.overflow = "hidden", f(this, T).style.visibility = "visible", f(this, T).style.top = `${Math.floor(t)}px`, f(this, T).style.left = `${Math.floor(n)}px`, f(this, T).style.width = `${Math.floor(e)}px`, f(this, T).style.height = `${Math.floor(i)}px`;
354
+ }
355
+ };
356
+ var Y = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap();
357
+ function Bt(t, n) {
358
+ let e = Y.get(t);
359
+ return e || (e = { disconnect: new Et(
360
+ t,
361
+ (o) => {
362
+ const s = Y.get(t);
363
+ s && s.callbacks.forEach((r) => r(o));
364
+ },
365
+ { skipInitial: !0 }
366
+ ).disconnect, callbacks: /* @__PURE__ */ new Set() }), e.callbacks.add(n), Y.set(t, e), () => {
367
+ e.callbacks.delete(n), e.callbacks.size === 0 && (Y.delete(t), e.disconnect());
368
+ };
369
+ }
370
+ function Dt(t, n) {
371
+ const e = /* @__PURE__ */ new Set();
372
+ for (const i of t) {
373
+ const o = Bt(i, n);
374
+ e.add(o);
375
+ }
376
+ return () => e.forEach((i) => i());
377
+ }
378
+ function Ht(t, n) {
379
+ var e;
380
+ const i = t.ownerDocument;
381
+ if (!O.has(i)) {
382
+ const r = new AbortController(), c = /* @__PURE__ */ new Set();
383
+ document.addEventListener(
384
+ "scroll",
385
+ (l) => c.forEach((a) => a(l)),
386
+ {
387
+ capture: !0,
388
+ passive: !0,
389
+ signal: r.signal
390
+ }
391
+ ), O.set(i, { disconnect: () => r.abort(), listeners: c });
392
+ }
393
+ const { listeners: o, disconnect: s } = (e = O.get(i)) != null ? e : {};
394
+ return !o || !s ? () => {
395
+ } : (o.add(n), () => {
396
+ o.delete(n), o.size === 0 && (s(), O.delete(i));
397
+ });
398
+ }
399
+ var N, L, B, et, Ee = class {
400
+ constructor(t, n, e) {
401
+ this.callback = n, _(this, N), _(this, L, !1), _(this, B), _(this, et, Tt((r) => {
402
+ if (!f(this, L) && r.target && "contains" in r.target && typeof r.target.contains == "function") {
403
+ for (const c of f(this, B))
404
+ if (r.target.contains(c)) {
405
+ this.callback(f(this, N).boundingClientRect);
406
+ break;
407
+ }
408
+ }
409
+ }, _t));
410
+ const i = Pt(t), o = Dt(i, n), s = Ht(t, f(this, et));
411
+ R(this, B, i), R(this, N, new Et(t, n, e)), this.disconnect = () => {
412
+ f(this, L) || (R(this, L, !0), o(), s(), f(this, N).disconnect());
413
+ };
414
+ }
415
+ };
416
+ N = /* @__PURE__ */ new WeakMap();
417
+ L = /* @__PURE__ */ new WeakMap();
418
+ B = /* @__PURE__ */ new WeakMap();
419
+ et = /* @__PURE__ */ new WeakMap();
420
+ function $t(t) {
421
+ return "showPopover" in t && "hidePopover" in t && typeof t.showPopover == "function" && typeof t.hidePopover == "function";
422
+ }
423
+ function Se(t) {
424
+ try {
425
+ $t(t) && t.isConnected && t.hasAttribute("popover") && // This selector can throw an error in browsers that don't support it
426
+ !t.matches(":popover-open") && t.showPopover();
427
+ } catch {
428
+ }
429
+ }
430
+ function dt(t) {
431
+ return !wt || !t ? !1 : t === rt(t).scrollingElement;
432
+ }
433
+ function St(t) {
434
+ var n, e;
435
+ const i = E(t), o = dt(t) ? Ct(t) : j(t), s = i.visualViewport, r = dt(t) ? {
436
+ height: (n = s == null ? void 0 : s.height) != null ? n : i.innerHeight,
437
+ width: (e = s == null ? void 0 : s.width) != null ? e : i.innerWidth
438
+ } : {
439
+ height: t.clientHeight,
440
+ width: t.clientWidth
441
+ }, c = {
442
+ current: {
443
+ x: t.scrollLeft,
444
+ y: t.scrollTop
445
+ },
446
+ max: {
447
+ x: t.scrollWidth - r.width,
448
+ y: t.scrollHeight - r.height
449
+ }
450
+ }, l = c.current.y <= 0, a = c.current.x <= 0, u = c.current.y >= c.max.y, h = c.current.x >= c.max.x;
451
+ return {
452
+ rect: o,
453
+ position: c,
454
+ isTop: l,
455
+ isLeft: a,
456
+ isBottom: u,
457
+ isRight: h
458
+ };
459
+ }
460
+ function ke(t, n) {
461
+ const { isTop: e, isBottom: i, isLeft: o, isRight: s, position: r } = St(t), { x: c, y: l } = n ?? { x: 0, y: 0 }, a = !e && r.current.y + l > 0, u = !i && r.current.y + l < r.max.y, h = !o && r.current.x + c > 0, v = !s && r.current.x + c < r.max.x;
462
+ return {
463
+ top: a,
464
+ bottom: u,
465
+ left: h,
466
+ right: v,
467
+ x: h || v,
468
+ y: a || u
469
+ };
470
+ }
471
+ var ct = class {
472
+ constructor(t) {
473
+ this.scheduler = t, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
474
+ const { tasks: n, resolvers: e } = this;
475
+ this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
476
+ for (const i of n)
477
+ i();
478
+ for (const i of e)
479
+ i();
480
+ };
481
+ }
482
+ schedule(t) {
483
+ return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((n) => this.resolvers.add(n));
484
+ }
485
+ }, Ae = new ct((t) => {
486
+ typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : t();
487
+ }), Kt = new ct((t) => setTimeout(t, 50)), U = /* @__PURE__ */ new Map(), Ut = U.clear.bind(U);
488
+ function k(t, n = !1) {
489
+ if (!n) return pt(t);
490
+ let e = U.get(t);
491
+ return e || (e = pt(t), U.set(t, e), Kt.schedule(Ut), e);
492
+ }
493
+ function pt(t) {
494
+ return E(t).getComputedStyle(t);
495
+ }
496
+ function qt(t, n = k(t, !0)) {
497
+ return n.position === "fixed" || n.position === "sticky";
498
+ }
499
+ function jt(t, n = k(t, !0)) {
500
+ const e = /(auto|scroll|overlay)/;
501
+ return ["overflow", "overflowX", "overflowY"].some((o) => {
502
+ const s = n[o];
503
+ return typeof s == "string" ? e.test(s) : !1;
504
+ });
505
+ }
506
+ var Gt = {
507
+ excludeElement: !0,
508
+ escapeShadowDOM: !0
509
+ };
510
+ function Jt(t, n = Gt) {
511
+ const { limit: e, excludeElement: i, escapeShadowDOM: o } = n, s = /* @__PURE__ */ new Set();
512
+ function r(c) {
513
+ if (e != null && s.size >= e || !c)
514
+ return s;
515
+ if (yt(c) && c.scrollingElement != null && !s.has(c.scrollingElement))
516
+ return s.add(c.scrollingElement), s;
517
+ if (o && xt(c))
518
+ return r(c.host);
519
+ if (!V(c))
520
+ return mt(c) ? r(c.parentElement) : s;
521
+ if (s.has(c))
522
+ return s;
523
+ const l = k(c, !0);
524
+ if (i && c === t || jt(c, l) && s.add(c), qt(c, l)) {
525
+ const { scrollingElement: a } = c.ownerDocument;
526
+ return a && s.add(a), s;
527
+ }
528
+ return r(c.parentNode);
529
+ }
530
+ return t ? r(t) : s;
531
+ }
532
+ function Qt(t) {
533
+ const [n] = Jt(t, { limit: 1 });
534
+ return n ?? null;
535
+ }
536
+ function kt(t, n = window.frameElement) {
537
+ const e = {
538
+ x: 0,
539
+ y: 0,
540
+ scaleX: 1,
541
+ scaleY: 1
542
+ };
543
+ if (!t) return e;
544
+ let i = H(t);
545
+ for (; i; ) {
546
+ if (i === n)
547
+ return e;
548
+ const o = j(i), { x: s, y: r } = Zt(i, o);
549
+ e.x = e.x + o.left, e.y = e.y + o.top, e.scaleX = e.scaleX * s, e.scaleY = e.scaleY * r, i = H(i);
550
+ }
551
+ return e;
552
+ }
553
+ function Zt(t, n = j(t)) {
554
+ const e = Math.round(n.width), i = Math.round(n.height);
555
+ if (V(t))
556
+ return {
557
+ x: e / t.offsetWidth,
558
+ y: i / t.offsetHeight
559
+ };
560
+ const o = k(t, !0);
561
+ return {
562
+ x: (parseFloat(o.width) || e) / e,
563
+ y: (parseFloat(o.height) || i) / i
564
+ };
565
+ }
566
+ function te(t) {
567
+ if (t === "none")
568
+ return null;
569
+ const n = t.split(" "), e = parseFloat(n[0]), i = parseFloat(n[1]);
570
+ return isNaN(e) && isNaN(i) ? null : {
571
+ x: isNaN(e) ? i : e,
572
+ y: isNaN(i) ? e : i
573
+ };
574
+ }
575
+ function nt(t) {
576
+ if (t === "none")
577
+ return null;
578
+ const [n, e, i = "0"] = t.split(" "), o = { x: parseFloat(n), y: parseFloat(e), z: parseInt(i, 10) };
579
+ return isNaN(o.x) && isNaN(o.y) ? null : {
580
+ x: isNaN(o.x) ? 0 : o.x,
581
+ y: isNaN(o.y) ? 0 : o.y,
582
+ z: isNaN(o.z) ? 0 : o.z
583
+ };
584
+ }
585
+ function lt(t) {
586
+ var n, e, i, o, s, r, c, l, a;
587
+ const { scale: u, transform: h, translate: v } = t, y = te(u), w = nt(v), d = ee(h);
588
+ if (!d && !y && !w)
589
+ return null;
590
+ const x = {
591
+ x: (n = y == null ? void 0 : y.x) != null ? n : 1,
592
+ y: (e = y == null ? void 0 : y.y) != null ? e : 1
593
+ }, b = {
594
+ x: (i = w == null ? void 0 : w.x) != null ? i : 0,
595
+ y: (o = w == null ? void 0 : w.y) != null ? o : 0
596
+ }, p = {
597
+ x: (s = d == null ? void 0 : d.x) != null ? s : 0,
598
+ y: (r = d == null ? void 0 : d.y) != null ? r : 0,
599
+ scaleX: (c = d == null ? void 0 : d.scaleX) != null ? c : 1,
600
+ scaleY: (l = d == null ? void 0 : d.scaleY) != null ? l : 1
601
+ };
602
+ return {
603
+ x: b.x + p.x,
604
+ y: b.y + p.y,
605
+ z: (a = w == null ? void 0 : w.z) != null ? a : 0,
606
+ scaleX: x.x * p.scaleX,
607
+ scaleY: x.y * p.scaleY
608
+ };
609
+ }
610
+ function ee(t) {
611
+ if (t.startsWith("matrix3d(")) {
612
+ const n = t.slice(9, -1).split(/, /);
613
+ return {
614
+ x: +n[12],
615
+ y: +n[13],
616
+ scaleX: +n[0],
617
+ scaleY: +n[5]
618
+ };
619
+ } else if (t.startsWith("matrix(")) {
620
+ const n = t.slice(7, -1).split(/, /);
621
+ return {
622
+ x: +n[4],
623
+ y: +n[5],
624
+ scaleX: +n[0],
625
+ scaleY: +n[3]
626
+ };
627
+ }
628
+ return null;
629
+ }
630
+ var ne = /* @__PURE__ */ ((t) => (t[t.Idle = 0] = "Idle", t[t.Forward = 1] = "Forward", t[t.Reverse = -1] = "Reverse", t))(ne || {}), ie = {
631
+ x: 0.2,
632
+ y: 0.2
633
+ }, oe = {
634
+ x: 10,
635
+ y: 10
636
+ };
637
+ function We(t, n, e, i = 25, o = ie, s = oe) {
638
+ const { x: r, y: c } = n, { rect: l, isTop: a, isBottom: u, isLeft: h, isRight: v } = St(t), y = kt(t), w = k(t, !0), d = lt(w), x = d !== null ? (d == null ? void 0 : d.scaleX) < 0 : !1, b = d !== null ? (d == null ? void 0 : d.scaleY) < 0 : !1, p = new it(
639
+ l.left * y.scaleX + y.x,
640
+ l.top * y.scaleY + y.y,
641
+ l.width * y.scaleX,
642
+ l.height * y.scaleY
643
+ ), g = {
644
+ x: 0,
645
+ y: 0
646
+ /* Idle */
647
+ }, M = {
648
+ x: 0,
649
+ y: 0
650
+ }, m = {
651
+ height: p.height * o.y,
652
+ width: p.width * o.x
653
+ };
654
+ return (!a || b && !u) && c <= p.top + m.height && (e == null ? void 0 : e.y) !== 1 && r >= p.left - s.x && r <= p.right + s.x ? (g.y = b ? 1 : -1, M.y = i * Math.abs(
655
+ (p.top + m.height - c) / m.height
656
+ )) : (!u || b && !a) && c >= p.bottom - m.height && (e == null ? void 0 : e.y) !== -1 && r >= p.left - s.x && r <= p.right + s.x && (g.y = b ? -1 : 1, M.y = i * Math.abs(
657
+ (p.bottom - m.height - c) / m.height
658
+ )), (!v || x && !h) && r >= p.right - m.width && (e == null ? void 0 : e.x) !== -1 && c >= p.top - s.y && c <= p.bottom + s.y ? (g.x = x ? -1 : 1, M.x = i * Math.abs(
659
+ (p.right - m.width - r) / m.width
660
+ )) : (!h || x && !v) && r <= p.left + m.width && (e == null ? void 0 : e.x) !== 1 && c >= p.top - s.y && c <= p.bottom + s.y && (g.x = x ? 1 : -1, M.x = i * Math.abs(
661
+ (p.left + m.width - r) / m.width
662
+ )), {
663
+ direction: g,
664
+ speed: M
665
+ };
666
+ }
667
+ function se(t) {
668
+ return "scrollIntoViewIfNeeded" in t && typeof t.scrollIntoViewIfNeeded == "function";
669
+ }
670
+ function Ce(t, n = !1) {
671
+ if (se(t)) {
672
+ t.scrollIntoViewIfNeeded(n);
673
+ return;
674
+ }
675
+ if (!V(t))
676
+ return t.scrollIntoView();
677
+ var e = Qt(t);
678
+ if (!V(e))
679
+ return;
680
+ const i = k(e, !0), o = parseInt(
681
+ i.getPropertyValue("border-top-width")
682
+ ), s = parseInt(
683
+ i.getPropertyValue("border-left-width")
684
+ ), r = t.offsetTop - e.offsetTop < e.scrollTop, c = t.offsetTop - e.offsetTop + t.clientHeight - o > e.scrollTop + e.clientHeight, l = t.offsetLeft - e.offsetLeft < e.scrollLeft, a = t.offsetLeft - e.offsetLeft + t.clientWidth - s > e.scrollLeft + e.clientWidth, u = r && !c;
685
+ (r || c) && n && (e.scrollTop = t.offsetTop - e.offsetTop - e.clientHeight / 2 - o + t.clientHeight / 2), (l || a) && n && (e.scrollLeft = t.offsetLeft - e.offsetLeft - e.clientWidth / 2 - s + t.clientWidth / 2), (r || c || l || a) && !n && t.scrollIntoView(u);
686
+ }
687
+ function re(t, n, e) {
688
+ const { scaleX: i, scaleY: o, x: s, y: r } = n, c = t.left + s + (1 - i) * parseFloat(e), l = t.top + r + (1 - o) * parseFloat(e.slice(e.indexOf(" ") + 1)), a = i ? t.width * i : t.width, u = o ? t.height * o : t.height;
689
+ return {
690
+ width: a,
691
+ height: u,
692
+ top: l,
693
+ right: c + a,
694
+ bottom: l + u,
695
+ left: c
696
+ };
697
+ }
698
+ function ce(t, n, e) {
699
+ const { scaleX: i, scaleY: o, x: s, y: r } = n, c = t.left - s - (1 - i) * parseFloat(e), l = t.top - r - (1 - o) * parseFloat(e.slice(e.indexOf(" ") + 1)), a = i ? t.width / i : t.width, u = o ? t.height / o : t.height;
700
+ return {
701
+ width: a,
702
+ height: u,
703
+ top: l,
704
+ right: c + a,
705
+ bottom: l + u,
706
+ left: c
707
+ };
708
+ }
709
+ function Ie({ element: t, keyframes: n, options: e }) {
710
+ return t.animate(n, e).finished;
711
+ }
712
+ function Ne(t, n = k(t).translate, e = !0) {
713
+ if (e) {
714
+ const i = Wt(
715
+ t,
716
+ (o) => "translate" in o
717
+ );
718
+ if (i) {
719
+ const { translate: o = "" } = i[0];
720
+ if (typeof o == "string") {
721
+ const s = nt(o);
722
+ if (s)
723
+ return s;
724
+ }
725
+ }
726
+ }
727
+ if (n) {
728
+ const i = nt(n);
729
+ if (i)
730
+ return i;
731
+ }
732
+ return { x: 0, y: 0, z: 0 };
733
+ }
734
+ var le = new ct((t) => setTimeout(t, 0)), P = /* @__PURE__ */ new Map(), ae = P.clear.bind(P);
735
+ function ue(t) {
736
+ const n = t.ownerDocument;
737
+ let e = P.get(n);
738
+ if (e) return e;
739
+ e = n.getAnimations(), P.set(n, e), le.schedule(ae);
740
+ const i = e.filter(
741
+ (o) => q(o.effect) && o.effect.target === t
742
+ );
743
+ return P.set(t, i), e;
744
+ }
745
+ function fe(t, n) {
746
+ const e = ue(t).filter((i) => {
747
+ var o, s;
748
+ if (q(i.effect)) {
749
+ const { target: r } = i.effect;
750
+ if ((s = r && ((o = n.isValidTarget) == null ? void 0 : o.call(n, r))) != null ? s : !0)
751
+ return i.effect.getKeyframes().some((l) => {
752
+ for (const a of n.properties)
753
+ if (l[a]) return !0;
754
+ });
755
+ }
756
+ }).map((i) => {
757
+ const { effect: o, currentTime: s } = i, r = o == null ? void 0 : o.getComputedTiming().duration;
758
+ if (!(i.pending || i.playState === "finished") && typeof r == "number" && typeof s == "number" && s < r)
759
+ return i.currentTime = r, () => {
760
+ i.currentTime = s;
761
+ };
762
+ });
763
+ if (e.length > 0)
764
+ return () => e.forEach((i) => i == null ? void 0 : i());
765
+ }
766
+ var Le = class extends it {
767
+ constructor(t, n = {}) {
768
+ var e, i, o, s;
769
+ const {
770
+ frameTransform: r = kt(t),
771
+ ignoreTransforms: c,
772
+ getBoundingClientRect: l = j
773
+ } = n, a = fe(t, {
774
+ properties: ["transform", "translate", "scale", "width", "height"],
775
+ isValidTarget: (m) => (m !== t || bt()) && m.contains(t)
776
+ }), u = l(t);
777
+ let { top: h, left: v, width: y, height: w } = u, d;
778
+ const x = k(t), b = lt(x), p = {
779
+ x: (e = b == null ? void 0 : b.scaleX) != null ? e : 1,
780
+ y: (i = b == null ? void 0 : b.scaleY) != null ? i : 1
781
+ }, g = he(t, x);
782
+ a == null || a(), b && (d = ce(
783
+ u,
784
+ b,
785
+ x.transformOrigin
786
+ ), (c || g) && (h = d.top, v = d.left, y = d.width, w = d.height));
787
+ const M = {
788
+ width: (o = d == null ? void 0 : d.width) != null ? o : y,
789
+ height: (s = d == null ? void 0 : d.height) != null ? s : w
790
+ };
791
+ if (g && !c && d) {
792
+ const m = re(
793
+ d,
794
+ g,
795
+ x.transformOrigin
796
+ );
797
+ h = m.top, v = m.left, y = m.width, w = m.height, p.x = g.scaleX, p.y = g.scaleY;
798
+ }
799
+ r && (c || (v *= r.scaleX, y *= r.scaleX, h *= r.scaleY, w *= r.scaleY), v += r.x, h += r.y), super(v, h, y, w), this.scale = p, this.intrinsicWidth = M.width, this.intrinsicHeight = M.height;
800
+ }
801
+ };
802
+ function he(t, n) {
803
+ var e;
804
+ const i = t.getAnimations();
805
+ let o = null;
806
+ if (!i.length) return null;
807
+ for (const s of i) {
808
+ if (s.playState !== "running") continue;
809
+ const r = q(s.effect) ? s.effect.getKeyframes() : [], c = r[r.length - 1];
810
+ if (!c) continue;
811
+ const { transform: l, translate: a, scale: u } = c;
812
+ if (l || a || u) {
813
+ const h = lt({
814
+ transform: typeof l == "string" && l ? l : n.transform,
815
+ translate: typeof a == "string" && a ? a : n.translate,
816
+ scale: typeof u == "string" && u ? u : n.scale
817
+ });
818
+ h && (o = o ? {
819
+ x: o.x + h.x,
820
+ y: o.y + h.y,
821
+ z: (e = o.z) != null ? e : h.z,
822
+ scaleX: o.scaleX * h.scaleX,
823
+ scaleY: o.scaleY * h.scaleY
824
+ } : h);
825
+ }
826
+ }
827
+ return o;
828
+ }
829
+ function Z(t) {
830
+ return "style" in t && typeof t.style == "object" && t.style !== null && "setProperty" in t.style && "removeProperty" in t.style && typeof t.style.setProperty == "function" && typeof t.style.removeProperty == "function";
831
+ }
832
+ var Fe = class {
833
+ constructor(t) {
834
+ this.element = t, this.initial = /* @__PURE__ */ new Map();
835
+ }
836
+ set(t, n = "") {
837
+ const { element: e } = this;
838
+ if (Z(e))
839
+ for (const [i, o] of Object.entries(t)) {
840
+ const s = `${n}${i}`;
841
+ this.initial.has(s) || this.initial.set(s, e.style.getPropertyValue(s)), e.style.setProperty(
842
+ s,
843
+ typeof o == "string" ? o : `${o}px`
844
+ );
845
+ }
846
+ }
847
+ remove(t, n = "") {
848
+ const { element: e } = this;
849
+ if (Z(e))
850
+ for (const i of t) {
851
+ const o = `${n}${i}`;
852
+ e.style.removeProperty(o);
853
+ }
854
+ }
855
+ reset() {
856
+ const { element: t } = this;
857
+ if (Z(t)) {
858
+ for (const [n, e] of this.initial)
859
+ t.style.setProperty(n, e);
860
+ t.getAttribute("style") === "" && t.removeAttribute("style");
861
+ }
862
+ }
863
+ };
864
+ function de(t) {
865
+ return t ? t instanceof E(t).Element || X(t) && t.nodeType === Node.ELEMENT_NODE : !1;
866
+ }
867
+ function Pe(t) {
868
+ if (!t) return !1;
869
+ const { KeyboardEvent: n } = E(t.target);
870
+ return t instanceof n;
871
+ }
872
+ function Ve(t) {
873
+ if (!t) return !1;
874
+ const { PointerEvent: n } = E(t.target);
875
+ return t instanceof n;
876
+ }
877
+ function Xe(t) {
878
+ if (!de(t)) return !1;
879
+ const { tagName: n } = t;
880
+ return n === "INPUT" || n === "TEXTAREA" || pe(t);
881
+ }
882
+ function pe(t) {
883
+ return t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false";
884
+ }
885
+ var tt = {};
886
+ function Ye(t) {
887
+ const n = tt[t] == null ? 0 : tt[t] + 1;
888
+ return tt[t] = n, `${t}-${n}`;
889
+ }
890
+ export {
891
+ Le as DOMRectangle,
892
+ Re as Listeners,
893
+ Ee as PositionObserver,
894
+ Te as ProxiedElements,
895
+ zt as ResizeNotifier,
896
+ ct as Scheduler,
897
+ ne as ScrollDirection,
898
+ Fe as Styles,
899
+ Ie as animateTransform,
900
+ ke as canScroll,
901
+ wt as canUseDOM,
902
+ xe as cloneElement,
903
+ Ne as computeTranslate,
904
+ We as detectScrollIntent,
905
+ Ye as generateUniqueId,
906
+ j as getBoundingRectangle,
907
+ k as getComputedStyles,
908
+ rt as getDocument,
909
+ at as getDocuments,
910
+ Lt as getElementFromPoint,
911
+ ye as getEventCoordinates,
912
+ Wt as getFinalKeyframe,
913
+ Qt as getFirstScrollableAncestor,
914
+ me as getFixedPositionOffset,
915
+ H as getFrameElement,
916
+ kt as getFrameTransform,
917
+ we as getRoot,
918
+ Jt as getScrollableAncestors,
919
+ Ct as getViewportBoundingRectangle,
920
+ D as getVisibleBoundingRectangle,
921
+ E as getWindow,
922
+ ce as inverseTransform,
923
+ yt as isDocument,
924
+ dt as isDocumentScrollingElement,
925
+ de as isElement,
926
+ V as isHTMLElement,
927
+ _e as isInteractiveElement,
928
+ Pe as isKeyboardEvent,
929
+ q as isKeyframeEffect,
930
+ Ve as isPointerEvent,
931
+ bt as isSafari,
932
+ xt as isShadowRoot,
933
+ Xe as isTextInput,
934
+ lt as parseTransform,
935
+ nt as parseTranslate,
936
+ be as prefersReducedMotion,
937
+ Ae as scheduler,
938
+ Ce as scrollIntoViewIfNeeded,
939
+ Se as showPopover,
940
+ $t as supportsPopover,
941
+ Z as supportsStyle,
942
+ Vt as timeout
943
+ };
944
+ //# sourceMappingURL=fondue-components146.js.map